Skip to content

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

Merged
merged 3 commits into from
May 25, 2022

Conversation

NlightNFotis
Copy link
Contributor

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.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

nmanthey added 2 commits April 6, 2022 10:14
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)
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 82b1600

@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #6783 (82b1600) into develop (f1dd8db) will increase coverage by 0.89%.
The diff coverage is n/a.

@@             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     
Impacted Files Coverage Δ
src/util/find_symbols.cpp 65.71% <0.00%> (-18.45%) ⬇️
src/goto-instrument/contracts/utils.h 83.92% <0.00%> (-16.08%) ⬇️
src/ansi-c/cprover_library.cpp 87.50% <0.00%> (-10.12%) ⬇️
src/goto-checker/cover_goals_report_util.cpp 90.09% <0.00%> (-8.61%) ⬇️
src/solvers/flattening/pointer_logic.h 72.72% <0.00%> (-7.28%) ⬇️
src/goto-programs/show_properties.cpp 64.42% <0.00%> (-5.82%) ⬇️
src/ansi-c/c_typecheck_code.cpp 77.15% <0.00%> (-2.78%) ⬇️
src/goto-symex/ssa_step.cpp 81.08% <0.00%> (-2.03%) ⬇️
src/util/validate_expressions.cpp 93.75% <0.00%> (-1.71%) ⬇️
src/util/format_expr.cpp 87.35% <0.00%> (-1.61%) ⬇️
... and 185 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce7e74c...82b1600. Read the comment docs.

@NlightNFotis NlightNFotis merged commit 124c4b8 into diffblue:develop May 25, 2022
@NlightNFotis NlightNFotis deleted the link-minisat branch May 25, 2022 09:23
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

Successfully merging this pull request may close these issues.

5 participants