-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to limit function size #166
Comments
Have you experimented with (This is off the top of my head; it has been a while since I've really used Csmith a lot!) |
I know that we have ways to reduce the size of functions, if it's not what Eric said you can play around with likely-looking options or perhaps Xuejun will chime in. but also, it often works to just discard generated code that has properties that you don't like, unless it has those properties almost all of the time in which case this becomes slow |
I can't find a max-block-size setting unfortunately, but . I played around with some options and was able to reduce function sizes significantly. --max-block-depth was useful of course, and setting --partial-expand to 'assignment' made a notable difference. |
glad you made some progress on this. the issue with Csmith hacking is we don't have any Csmith hackers right now, the PhD students who did this have graduated long ago and neither Eric nor I has any time for this project now |
Is there a way to limit the size of generated functions? I want smaller functions with fewer local variables, but none of the flags are useful to me.
The text was updated successfully, but these errors were encountered: