diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-02 17:03:33 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-02 17:03:33 -0800 |
commit | 748dadbc72ae9905585f07bae111c2b29c8d764e (patch) | |
tree | e586e6d79c822c14d4ac089af5273b754dbc3497 /tests/fuzz | |
parent | 0a4bc063c35aa5d70b7aaae72029b16a56432563 (diff) |
emit C code size in fuzzer
Diffstat (limited to 'tests/fuzz')
-rwxr-xr-x | tests/fuzz/csmith_driver.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fuzz/csmith_driver.py b/tests/fuzz/csmith_driver.py index 404324a2..6e1c0764 100755 --- a/tests/fuzz/csmith_driver.py +++ b/tests/fuzz/csmith_driver.py @@ -33,6 +33,7 @@ while 1: shared.execute([CSMITH, '--no-volatiles', '--no-math64', '--no-packed-struct'] + ['--max-block-depth', '2', '--max-block-size', '2', '--max-expr-complexity', '2', '--max-funcs', '2'], stdout=open(filename + '.c', 'w')) + print '1) Generate C... %.2f K of C source' % (len(open(filename + '.c').read())/1024.) print '2) Compile natively' shared.try_delete(filename) |