-
Notifications
You must be signed in to change notification settings - Fork 273
propt: change interface for solving under assumptions #7976
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
Conversation
c34852e
to
211e778
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable and stateless does make things simpler. I wonder if there is a way to tweak the API so that you can also get back the set of necessary assumptions if it is UNSAT.
b2ff37e
to
9097886
Compare
That would be nice -- I can't think of a nice way to do that without state however. Note we already have |
9097886
to
d6c8899
Compare
This changes the interface offered by propt for 'solving under assumptions' from a state-ful variant to the state-less API that MiniSat uses.
d6c8899
to
9508799
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #7976 +/- ##
===========================================
- Coverage 78.45% 78.06% -0.39%
===========================================
Files 1701 1701
Lines 196270 196325 +55
===========================================
- Hits 153976 153258 -718
- Misses 42294 43067 +773
☔ View full report in Codecov by Sentry. |
static const bvt empty_assumptions; | ||
++number_of_solver_calls; | ||
return do_prop_solve(); | ||
return do_prop_solve(empty_assumptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just using {}
as an argument here instead of the static
local?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that the static prevents the creation of a new object, and hence, would be a tiny bit more efficient. But that may well not be measurable.
This changes the interface offered by
propt
for 'solving under assumptions' from a state-ful variant to the state-less API that MiniSat uses.