File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ #include <assert.h>
2+
3+ int main ()
4+ {
5+ unsigned int non_det ;
6+ assert (non_det * non_det != 9u );
7+ return 0 ;
8+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ invalid.c
3+ --trace --smt2 --z3
4+ ^EXIT=10$
5+ ^SIGNAL=0$
6+ line 6 assertion non_det \* non_det != 9u: FAILURE
7+ non_det=\d+u
8+ VERIFICATION FAILED
9+ --
10+ line 6 assertion non_det \* non_det != 9u: ERROR
11+ error running SMT2 solver
12+ --
13+ Run cbmc with the --z3 option to confirm that support for the Z3 solver is
14+ available and working for an invalid program where the assertion may fail.
Original file line number Diff line number Diff line change 1+ #include <assert.h>
2+
3+ int main ()
4+ {
5+ unsigned int non_det ;
6+ assert (non_det * non_det != 12u );
7+ return 0 ;
8+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ valid.c
3+ --trace --smt2 --z3
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ line 6 assertion non_det \* non_det != 12u: SUCCESS
7+ VERIFICATION SUCCESSFUL
8+ --
9+ line 6 assertion non_det \* non_det != 12u: ERROR
10+ error running SMT2 solver
11+ --
12+ Run cbmc with the --z3 option to confirm that support for the Z3 solver is
13+ available and working for a valid program.
You can’t perform that action at this time.
0 commit comments