Skip to content
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

keep going when the solver stops? #85

Closed
regehr opened this issue Oct 12, 2014 · 3 comments
Closed

keep going when the solver stops? #85

regehr opened this issue Oct 12, 2014 · 3 comments

Comments

@regehr
Copy link
Collaborator

regehr commented Oct 12, 2014

For some time, souper's default behavior has been to continue optimizing a file if the solver times out, but to abort if the solver exits for any other reason. I think perhaps this is the wrong way to do things. In a few hours of Csmith tests, Souper in integer synthesis mode successfully optimized almost zero programs because at some point, the solver would use all RAM and be stopped by the OS, and then souper would give up.

Should we have souper keep going when the solver dies? The only drawback I can think of is that this can hide bugs. For example, if we mis-print an SMTLIB query, we'll miss optmizations and see no overt symptom. It may be possible to distinguish OOM crashes from other errors, but I've played that game before and don't like it.

@chenyang78
Copy link
Contributor

Probably we could first try hard to simplify the quries sent to the solver? I have a little concern about hiding bugs because I had a very bad experience on that when I did our optimization harvester stuff long time ago.

@regehr
Copy link
Collaborator Author

regehr commented Oct 12, 2014

I agree that hiding bugs is very bad. Perhaps there is some reliable way to distinguish OOM errors. I'll think about it. Yang, I'm sure you remember from Csmith/C-Reduce how hard it can be to determine why something crashed, though here we're solving a more constrained problem.

I'm personally not interested in trying to simplify queries. Solvers such as Z3 already have very sophisticated optimizers.

We should, of course, ensure that Souper's output is not gratuitously stupid in any way.

@chenyang78
Copy link
Contributor

You are right. I agree that we shouldn't put more effort on simplifying queries.

@regehr regehr closed this as completed Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants