CCG is a random C Code Generator
C Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
README
TODO
block.c
ccg.c
ccg.h
commandline.c
constant.c
expression.c
function.c
integer.c
label.c
operand.c
pointer.c
reported_bugs
statement.c
types.h
utils.c
variable.c

README

CCG is the C Code Generator. It aims to produce chaotic and random C89 code in order to stress a bit compilers (just as csmith does).
The generated code is not meant to be run (yet), so CCG can only be used to search for crashes, not miscompilations.

UPDATE: compilers have now caught up with ccg (since it's been pretty hard to spot crashes last time I tried) so I may come up with a more robust approach in the future to generate more evil structures :-)