Commit 6d7560d3 authored by Andre Maroneze's avatar Andre Maroneze 💬
Browse files

[ioccc] add 2020 IOCCC winners

parent fef53ef7
......@@ -60,6 +60,7 @@ TARGETS=\
gzip124 \
hiredis \
icpc \
ioccc \
itc-benchmarks \
jsmn \
kgflags \
......
......@@ -131,6 +131,8 @@ when available. We also summarize the license of each directory below.
- `gzip124`: GPL
- `hiredis`: Redis license (BSD-style), see `COPYING`
- `icpc`: Unlicense
- `ioccc`: Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0),
see `COPYING`
- `itc-benchmarks`: BSD 2-clause, see `COPYING`
- `jsmn`: MIT
- `kgflags`: MIT, see `LICENSE`
......
directory file line function property kind status property
2020/burton prog.c 1 main division_by_zero Unknown (long long)b ≢ 0
2020/burton prog.c 1 main mem_access Unknown \valid_read(i)
2020/burton prog.c 1 main precondition of atoi Unknown valid_nptr: \valid_read(nptr)
2020/burton prog.c 1 main signed_overflow Unknown (long long)(a ^ (long long)(n / (long long)b)) * (long long)(y >> 0) ≤ 9223372036854775807
2020/burton prog.c 1 main signed_overflow Unknown -9223372036854775808 ≤ (long long)(a ^ (long long)(n / (long long)b)) * (long long)(y >> 0)
FRAMAC_SHARE/libc stdlib.h 78 atoi precondition Unknown valid_nptr: \valid_read(nptr)
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] Statements analyzed by Eva
--------------------------
12 stmts in analyzed functions, 12 stmts analyzed (100.0%)
main: 12 stmts out of 12 (100.0%)
/* Generated by Frama-C */
#include "errno.h"
#include "stdarg.h"
#include "stdio.h"
#include "stdlib.h"
/*@ requires valid_read_string(format);
requires valid_read_nstring(param0, 8);
assigns \result, __fc_stdout->__fc_FILE_data;
assigns \result
\from (indirect: __fc_stdout->__fc_FILE_id),
(indirect: __fc_stdout->__fc_FILE_data),
(indirect: *(format + (0 ..))), (indirect: *(param0 + (0 ..)));
assigns __fc_stdout->__fc_FILE_data
\from (indirect: __fc_stdout->__fc_FILE_id),
__fc_stdout->__fc_FILE_data, (indirect: *(format + (0 ..))),
*(param0 + (0 ..));
*/
int printf_va_1(char const * __restrict format, char *param0);
int main(int b, char **i)
{
int __retres;
int tmp;
long long n = 6945503773712347754LL;
long long a = 5859838231191962459LL ^ n;
long long r = (a / (long long)b & a) >> 4;
i ++;
;
tmp = atoi((char const *)*i);
long long y = (long long)tmp;
long long _ =
(((a ^ n / (long long)b) * (y >> 0) | (y >> 7)) & r) | (a ^ r);
printf("%.8s\n",(char *)(& _)); /* printf_va_1 */
__retres = 0;
return __retres;
}
[metrics] Defined functions (1)
=====================
main (0 call);
Specified-only functions (0)
============================
Undefined and unspecified functions (0)
=======================================
'Extern' global variables (0)
=============================
Potential entry points (1)
==========================
main;
Global metrics
==============
Sloc = 12
Decision point = 0
Global variables = 0
If = 0
Loop = 0
Goto = 0
Assignment = 8
Exit point = 1
Function = 1
Function call = 2
Pointer dereferencing = 1
Cyclomatic complexity = 1
This diff is collapsed.
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] References to non-analyzed functions
------------------------------------
[metrics] Statements analyzed by Eva
--------------------------
461 stmts in analyzed functions, 461 stmts analyzed (100.0%)
main: 461 stmts out of 461 (100.0%)
This diff is collapsed.
[metrics] Defined functions (1)
=====================
main (0 call);
Specified-only functions (0)
============================
Undefined and unspecified functions (0)
=======================================
'Extern' global variables (0)
=============================
Potential entry points (1)
==========================
main;
Global metrics
==============
Sloc = 461
Decision point = 79
Global variables = 1
If = 79
Loop = 5
Goto = 8
Assignment = 317
Exit point = 1
Function = 1
Function call = 32
Pointer dereferencing = 211
Cyclomatic complexity = 80
2020/giles/prog.c:33:[kernel:parser:decimal-float] warning: Floating-point constant 0.994 is not represented exactly. Will use 0x1.fced916872b02p-1.
(warn-once: no further messages from category 'parser:decimal-float' will be emitted)
directory file line function property kind status property
2020/kurdyukov1 prog.c 19 main index_bound Unknown 0 ≤ (long)(4 + (long)(n / 4))
2020/kurdyukov1 prog.c 20 main signed_overflow Unknown -9223372036854775808 ≤ n - 1
2020/kurdyukov1 prog.c 20 main signed_overflow Unknown g + 8 ≤ 9223372036854775807
2020/kurdyukov1 prog.c 21 main shift Invalid or unreachable 0 ≤ (long)(~e)
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] Statements analyzed by Eva
--------------------------
107 stmts in analyzed functions, 60 stmts analyzed (56.1%)
main: 60 stmts out of 107 (56.1%)
2020/kurdyukov1/prog.c:17:[nonterm] warning: non-terminating loop
stack: main
2020/kurdyukov1/prog.c:21:[nonterm] warning: non-terminating statement
stack: main
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment