File tree 2 files changed +28
-0
lines changed
regression/cbmc-incr-smt2/nondeterministic-int-assert 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ int main ()
3
+ {
4
+ int x , y ;
5
+ if (x != 0 )
6
+ __CPROVER_assert (y != 4 , "Assert of inequality to 4." );
7
+ else
8
+ __CPROVER_assert (y != 2 , "Assert of inequality to 2." );
9
+ int z = y ;
10
+ return 0 ;
11
+ }
Original file line number Diff line number Diff line change
1
+ CORE winbug
2
+ trace.c
3
+ --incremental-smt2-solver "z3 --smt2 -in" --trace
4
+ Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
5
+ Assert of inequality to 4\.: FAILURE
6
+ Assert of inequality to 2\.: FAILURE
7
+ y=4
8
+ y=2
9
+ VERIFICATION FAILED
10
+ ^EXIT=10$
11
+ ^SIGNAL=0$
12
+ --
13
+ type: pointer
14
+ --
15
+ Test that running cbmc with the `--incremental-smt2-solver` argument can be used
16
+ to send a valid SMT2 formula to a sub-process solver for an example input file
17
+ which include control flow constructs.
You can’t perform that action at this time.
0 commit comments