-
Notifications
You must be signed in to change notification settings - Fork 273
solvers: also link MiniSat2 options #6783
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
To be able to parse options again when setting up a solver, the parseOption method has to be present. Hence, link against the Options.cc file of MiniSat2 as well. Signed-off-by: Norbert Manthey <[email protected]>
CBMC compiles with more strict compiler warnings. To make the compiler happy, extend the MiniSat patch to fix the Option.cc file as well.
@@ -17,7 +17,7 @@ endif | |||
ifneq ($(MINISAT2),) | |||
MINISAT2_SRC=sat/satcheck_minisat2.cpp | |||
MINISAT2_INCLUDE=-I $(MINISAT2) | |||
MINISAT2_LIB=$(MINISAT2)/minisat/simp/SimpSolver$(OBJEXT) $(MINISAT2)/minisat/core/Solver$(OBJEXT) | |||
MINISAT2_LIB=$(MINISAT2)/minisat/simp/SimpSolver$(OBJEXT) $(MINISAT2)/minisat/core/Solver$(OBJEXT) $(MINISAT2)/minisat/utils/Options$(OBJEXT) |
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.
scripts/minisat2_CMakeLists.txt also needs updating.
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.
Addressed in 82b1600
Codecov Report
@@ Coverage Diff @@
## develop #6783 +/- ##
===========================================
+ Coverage 76.90% 77.79% +0.89%
===========================================
Files 1590 1567 -23
Lines 183970 179841 -4129
===========================================
- Hits 141485 139913 -1572
+ Misses 42485 39928 -2557
Continue to review full report at Codecov.
|
This PR is created to supersede #3243.
It's object is to link against one of the object files of
Minisat that we're currently missing (
options.cc
).For a more extensive discussion of the pros/cons of the change,
please refer to the original PR.