File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
regression/cbmc-incr-smt2/nondeterministic-int-assert
src/solvers/smt2_incremental Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,17 @@ Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool \(|=| |main::1::x!0
1010Sending command to SMT2 solver - \(assert \(|not| \(|not| \(|=| |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)\)
1111Sending command to SMT2 solver - \(define-fun |B2| \(\) Bool \(|not| false\)\)
1212Sending command to SMT2 solver - \(assert |B2|\)
13+ Sending command to SMT2 solver - \(check-sat\)
14+ Solver response - sat
1315^EXIT=(0|127|134|137)$
1416^SIGNAL=0$
15- identifier: main::1::x
1617--
1718type: pointer
1819--
1920Test that running cbmc with the `--incremental-smt2-solver` argument causes the
2021incremental smt2 solving to be used. Note that at the time of adding this test,
21- an invariant violation is expected due to the unimplemented solving .
22- Regexes matching the printing in the expected failed invariant are included in
23- order to test that `--slice- formula` is causing the first unimplemented
24- expression passed to `smt2_incremental_decision_proceduret` to relate to the
25- variable `x` in function `main` and not to `cprover_initialise` .
22+ an invariant violation is expected due to the unimplemented response parsing .
23+
24+ The sliced formula is expected to use only the implemented subset of exprts.
25+ This is implementation is sufficient to send this example to the solver and
26+ receive a "sat" response .
Original file line number Diff line number Diff line change @@ -196,7 +196,10 @@ void smt2_incremental_decision_proceduret::pop()
196196decision_proceduret::resultt smt2_incremental_decision_proceduret::dec_solve ()
197197{
198198 ++number_of_solver_calls;
199- UNIMPLEMENTED_FEATURE (" solving." );
199+ send_to_solver (smt_check_sat_commandt{});
200+ const auto result = solver_process.wait_receive ();
201+ log.debug () << " Solver response - " << result << messaget::eom;
202+ UNIMPLEMENTED_FEATURE (" parsing of solver response." );
200203}
201204
202205void smt2_incremental_decision_proceduret::send_to_solver (
You can’t perform that action at this time.
0 commit comments