Skip to content
Snippets Groups Projects
Commit 6d7560d3 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[ioccc] add 2020 IOCCC winners

parent fef53ef7
No related branches found
No related tags found
No related merge requests found
Showing
with 1105 additions and 0 deletions
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 = 746
Decision point = 137
Global variables = 0
If = 137
Loop = 36
Goto = 21
Assignment = 346
Exit point = 1
Function = 1
Function call = 16
Pointer dereferencing = 75
Cyclomatic complexity = 138
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:18:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:26:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:26:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
2020/kurdyukov2/prog.ppm.c:26:[kernel:typing:implicit-conv-void-ptr] warning: implicit conversion from void * to FILE *
directory file line function property kind status property
2020/kurdyukov3 prog.c 7 main initialization Unknown \initialized(&a)
2020/kurdyukov3 prog.c 8 main initialization Unknown \initialized(&a)
2020/kurdyukov3 prog.c 8 main initialization Unknown \initialized(&t[j])
2020/kurdyukov3 prog.c 9 main initialization Unknown \initialized(&t[i])
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] Statements analyzed by Eva
--------------------------
59 stmts in analyzed functions, 59 stmts analyzed (100.0%)
main: 59 stmts out of 59 (100.0%)
/* Generated by Frama-C */
#include "errno.h"
#include "signal.h"
#include "stdarg.h"
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
int main(void)
{
int __retres;
unsigned int a;
unsigned int t[64];
time_t tmp;
unsigned int i = (unsigned int)1;
unsigned int j = (unsigned int)0;
tmp = time((time_t *)0);
srand((unsigned int)tmp);
while (i)
if (j) {
unsigned int tmp_5;
i --;
if (i < (unsigned int)1) {
if (a >> 8) tmp_5 = (unsigned int)0; else goto _LAND;
}
else {
unsigned int tmp_4;
unsigned int tmp_0;
unsigned int tmp_1;
_LAND:
{
if (i) tmp_0 = t[j]; else tmp_0 = a;
putchar((int)tmp_0);
tmp_1 = i;
i ++;
if (tmp_1) {
unsigned int tmp_3;
i --;
t[j] = t[i];
if (i > (unsigned int)2) {
int tmp_2;
tmp_2 = rand();
tmp_3 = (unsigned int)tmp_2 % (i - (unsigned int)2) + (unsigned int)2;
}
else tmp_3 = (unsigned int)1;
tmp_4 = tmp_3;
}
else tmp_4 = (unsigned int)0;
}
tmp_5 = tmp_4;
}
j = tmp_5;
}
else {
int tmp_8;
int tmp_6;
tmp_6 = getchar();
a = (unsigned int)tmp_6;
if ((unsigned int)26 > (a | (unsigned int)32) - (unsigned int)97)
goto _LOR;
else
if ((unsigned int)1 == a >> 7) {
_LOR: ;
if (i < (unsigned int)64) {
unsigned int tmp_7;
tmp_7 = i;
i ++;
t[tmp_7] = a;
tmp_8 = 0;
}
else tmp_8 = 1;
}
else tmp_8 = 1;
j = (unsigned int)tmp_8;
}
__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 = 59
Decision point = 10
Global variables = 0
If = 10
Loop = 1
Goto = 2
Assignment = 28
Exit point = 1
Function = 1
Function call = 5
Pointer dereferencing = 0
Cyclomatic complexity = 11
directory file line function property kind status property
2020/kurdyukov3 prog.extra.c 13 main initialization Unknown \initialized(&a)
2020/kurdyukov3 prog.extra.c 14 main initialization Unknown \initialized(&a)
2020/kurdyukov3 prog.extra.c 14 main initialization Unknown \initialized(&t[j])
2020/kurdyukov3 prog.extra.c 15 main initialization Unknown \initialized(&t[i])
2020/kurdyukov3 prog.extra.c 15 main index_bound Unknown i < 256
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] Statements analyzed by Eva
--------------------------
53 stmts in analyzed functions, 53 stmts analyzed (100.0%)
main: 53 stmts out of 53 (100.0%)
/* Generated by Frama-C */
#include "errno.h"
#include "signal.h"
#include "stdarg.h"
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
int main(void)
{
int __retres;
unsigned int a;
unsigned int t[256];
time_t tmp;
unsigned int i = (unsigned int)1;
unsigned int j = (unsigned int)0;
tmp = time((time_t *)0);
srand((unsigned int)tmp);
while (i)
if (j) {
unsigned int tmp_2;
i --;
if (i) goto _LOR;
else
if (~ a >> 8) {
unsigned int tmp_0;
unsigned int tmp_1;
_LOR:
{
if (i) tmp_0 = t[j]; else tmp_0 = a;
putchar((int)tmp_0);
tmp_1 = i;
i ++;
}
tmp_2 = tmp_1;
}
else tmp_2 = (unsigned int)0;
if (tmp_2) {
i --;
t[j] = t[i];
if (i > (unsigned int)2) {
int tmp_3;
tmp_3 = rand();
j = (unsigned int)tmp_3 % (i - (unsigned int)2) + (unsigned int)2;
}
else j = (unsigned int)1;
}
else {
j --;
unsigned int tmp_4 = j;
}
}
else {
int tmp_4_0;
tmp_4_0 = getchar();
a = (unsigned int)tmp_4_0;
if ((unsigned int)1 == a >> 7) goto _LOR_0;
else
if ((unsigned int)26 > (a | (unsigned int)32) - (unsigned int)97) {
_LOR_0: ;
if ((unsigned int)256 > i) {
unsigned int tmp_5;
tmp_5 = i;
i ++;
t[tmp_5] = a;
}
else goto _LAND;
}
else {
_LAND: j ++;
unsigned int tmp_6 = j;
}
}
__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 = 53
Decision point = 10
Global variables = 0
If = 10
Loop = 1
Goto = 3
Assignment = 25
Exit point = 1
Function = 1
Function call = 5
Pointer dereferencing = 0
Cyclomatic complexity = 11
directory file line function property kind status property
2020/kurdyukov3 prog.orig.c 15 main index_bound Unknown tmp_0 < 64
2020/kurdyukov3 prog.orig.c 15 main initialization Unknown \initialized(&t[j])
2020/kurdyukov3 prog.orig.c 15 main index_bound Unknown j < 64
2020/kurdyukov3 prog.orig.c 15 main initialization Unknown \initialized(&t[tmp_4])
2020/kurdyukov3 prog.orig.c 15 main index_bound Unknown tmp_4 < 64
[metrics] Eva coverage statistics
=======================
Syntactically reachable functions = 1 (out of 1)
Semantically reached functions = 1
Coverage estimation = 100.0%
[metrics] Statements analyzed by Eva
--------------------------
45 stmts in analyzed functions, 45 stmts analyzed (100.0%)
main: 45 stmts out of 45 (100.0%)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment