csmith-project / csmith

Csmith, a random generator of C programs
http://embed.cs.utah.edu/csmith/
Other
1.02k stars 146 forks source link

How to Disable control flow #173

Open carrotProgrammer opened 3 months ago

carrotProgrammer commented 3 months ago

How can I disable conditional statements or loop statements when generating C code

jxyang commented 3 months ago

There is no command line options for that. You will need to hack the code.

The easiest way is modifying the StatementFilter so that for any control type or loop type statement, return false.

carrotProgrammer commented 3 months ago

Thanks