Skip to content

Add interpretation of SMT check-sat responses for incremental SMT solving support #6474

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 9 commits into from
Nov 26, 2021

Conversation

thomasspriggs
Copy link
Contributor

@thomasspriggs thomasspriggs commented Nov 24, 2021

This PR adds interpretation of SMT check-sat responses for incremental SMT solving support. This is such that CBMC can report something useful rather than just reaching an UNIMPLEMENTED, when solving is complete.The contents of this PR is sufficient for CMBC to complete successfully when the response is UNSAT and the validation is successful.

  • 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.

This function is intended to be pure, where the result - whether it is
success or failure is returned in the return value. Therefore the result
value should always be used rather than discarded.
Counts greater than zero are untested in this point in the commit
history, due to incomplete implementation of
`smt2_incremental_decision_proceduret::dec_solve()`. Futher tests to be
added on implementing this member function.
So that CBMC can report something useful rather than just reaching an
UNIMPLEMENTED, when solving is complete.
Because this can now be tested without hitting an `UNREACHABLE`.
To confirm that this case works end-to-end
To avoid duplicating the same setup for every test.
@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #6474 (1441111) into develop (6c3d1da) will increase coverage by 0.03%.
The diff coverage is 91.12%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6474      +/-   ##
===========================================
+ Coverage    76.01%   76.05%   +0.03%     
===========================================
  Files         1546     1546              
  Lines       165274   165443     +169     
===========================================
+ Hits        125634   125825     +191     
+ Misses       39640    39618      -22     
Impacted Files Coverage Δ
...solvers/smt2_incremental/smt_response_validation.h 100.00% <ø> (ø)
src/solvers/smt2_incremental/smt_solver_process.h 100.00% <ø> (+33.33%) ⬆️
...rc/solvers/smt2_incremental/smt_solver_process.cpp 74.07% <50.00%> (+49.07%) ⬆️
...ncremental/smt2_incremental_decision_procedure.cpp 96.15% <95.29%> (+0.15%) ⬆️
...ncremental/smt2_incremental_decision_procedure.cpp 89.68% <96.29%> (+11.25%) ⬆️
src/ansi-c/c_typecheck_base.cpp 78.23% <0.00%> (-0.02%) ⬇️
src/util/exception_utils.h 100.00% <0.00%> (ø)
src/ansi-c/c_typecheck_base.h 100.00% <0.00%> (ø)
src/goto-instrument/contracts/utils.h 100.00% <0.00%> (ø)
src/ansi-c/parser.y 79.28% <0.00%> (+0.01%) ⬆️
... and 13 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 516f109...1441111. Read the comment docs.

@thomasspriggs thomasspriggs changed the title [DRAFT] Add interpretation of SMT check-sat responses for incremental SMT solving support [DRAFT] Add interpretation of SMT check-sat responses for incremental SMT solving support Nov 24, 2021
@thomasspriggs thomasspriggs marked this pull request as ready for review November 24, 2021 16:37
@NlightNFotis NlightNFotis merged commit 8a720e0 into diffblue:develop Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants