Skip to content

Commit 7278e36

Browse files
committed
Fix tests to admit unquoted symbols and change solver to cvc5 for CI compatibility.
1 parent 42ffbef commit 7278e36

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

regression/cbmc-incr-smt2/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ add_test_pl_profile(
1313
)
1414

1515
add_test_pl_profile(
16-
"cbmc-new-smt-backend-cv4"
17-
"$<TARGET_FILE:cbmc> --incremental-smt2-solver 'cvc4 --lang smt' --validate-goto-model --validate-ssa-equation --slice-formula ${exclude_win_broken_tests}"
18-
"-C;-s;new-smt-cvc4"
16+
"cbmc-new-smt-backend-cvc5"
17+
"$<TARGET_FILE:cbmc> --incremental-smt2-solver 'cvc5 --lang smt --incremental' --validate-goto-model --validate-ssa-equation --slice-formula ${exclude_win_broken_tests}"
18+
"-C;-X;broken-cvc5;-s;new-smt-cvc5"
1919
"CORE"
2020
)

regression/cbmc-incr-smt2/nondeterministic-int-assert/control_flow.desc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
CORE
22
control_flow.c
33
--verbosity 10
4-
Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
4+
Passing problem to incremental SMT2 solving via
55
Sending command to SMT2 solver - \(set-option :produce-models true\)
66
Sending command to SMT2 solver - \(set-logic QF_UFBV\)
77
Sending command to SMT2 solver - \(declare-fun |goto_symex::&92;guard#1| \(\) Bool\)
88
Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool |goto_symex::&92;guard#1|\)
99
Sending command to SMT2 solver - \(declare-fun |main::1::x!0@1#1| \(\) \(_ BitVec 32\)\)
10-
Sending command to SMT2 solver - \(assert \(|=| |goto_symex::&92;guard#1| \(|not| \(|=| |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)\)
10+
Sending command to SMT2 solver - \(assert \(= |goto_symex::&92;guard#1| \(not \(= |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)\)
1111
Sending command to SMT2 solver - \(declare-fun |main::1::y!0@1#4| \(\) \(_ BitVec 32\)\)
12-
Sending command to SMT2 solver - \(assert \(|=| |main::1::y!0@1#4| \(|ite| |goto_symex::&92;guard#1| \(_ bv9 32\) \(_ bv4 32\)\)\)\)
12+
Sending command to SMT2 solver - \(assert \(= |main::1::y!0@1#4| \(|ite| |goto_symex::&92;guard#1| \(_ bv9 32\) \(_ bv4 32\)\)\)\)
1313
Sending command to SMT2 solver - \(declare-fun |main::1::x!0@1#3| \(\) \(_ BitVec 32\)\)
14-
Sending command to SMT2 solver - \(assert \(|=| |main::1::x!0@1#3| \(|ite| |goto_symex::&92;guard#1| |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)
14+
Sending command to SMT2 solver - \(assert \(= |main::1::x!0@1#3| \(|ite| |goto_symex::&92;guard#1| |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)
1515
Sending command to SMT2 solver - \(declare-fun |main::1::z!0@1#2| \(\) \(_ BitVec 32\)\)
16-
Sending command to SMT2 solver - \(assert \(|=| |main::1::z!0@1#2| |main::1::y!0@1#4|\)\)
17-
Sending command to SMT2 solver - \(define-fun |B3| \(\) Bool \(|=| |main::1::x!0@1#1| \(_ bv0 32\)\)\)
18-
Sending command to SMT2 solver - \(assert \(|not| \(|not| \(|=| |main::1::x!0@1#3| |main::1::z!0@1#2|\)\)\)\)
19-
Sending command to SMT2 solver - \(define-fun |B4| \(\) Bool \(|not| false\)\)
16+
Sending command to SMT2 solver - \(assert \(= |main::1::z!0@1#2| |main::1::y!0@1#4|\)\)
17+
Sending command to SMT2 solver - \(define-fun |B3| \(\) Bool \(= |main::1::x!0@1#1| \(_ bv0 32\)\)\)
18+
Sending command to SMT2 solver - \(assert \(not \(not \(= |main::1::x!0@1#3| |main::1::z!0@1#2|\)\)\)\)
19+
Sending command to SMT2 solver - \(define-fun |B4| \(\) Bool \(not false\)\)
2020
Sending command to SMT2 solver - \(assert |B4|\)
2121
Sending command to SMT2 solver - \(check-sat\)
2222
Solver response - sat

regression/cbmc-incr-smt2/nondeterministic-int-assert/incremental_solver_called.desc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
CORE
22
test.c
33
--verbosity 10
4-
Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
4+
Passing problem to incremental SMT2 solving via
55
Sending command to SMT2 solver - \(set-option :produce-models true\)
66
Sending command to SMT2 solver - \(set-logic QF_UFBV\)
77
Sending command to SMT2 solver - \(define-fun |B0| \(\) Bool true\)
88
Sending command to SMT2 solver - \(declare-fun |main::1::x!0@1#1| \(\) \(_ BitVec 32\)\)
9-
Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool \(|=| |main::1::x!0@1#1| |main::1::x!0@1#1|\)\)
10-
Sending command to SMT2 solver - \(assert \(|not| \(|not| \(|=| |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)\)
11-
Sending command to SMT2 solver - \(define-fun |B2| \(\) Bool \(|not| false\)\)
9+
Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool \(= |main::1::x!0@1#1| |main::1::x!0@1#1|\)\)
10+
Sending command to SMT2 solver - \(assert \(not \(not \(= |main::1::x!0@1#1| \(_ bv0 32\)\)\)\)\)
11+
Sending command to SMT2 solver - \(define-fun |B2| \(\) Bool \(not false\)\)
1212
Sending command to SMT2 solver - \(assert |B2|\)
1313
Sending command to SMT2 solver - \(check-sat\)
1414
Solver response - sat

regression/cbmc-incr-smt2/nondeterministic-int-assert/stdbool.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
stdbool_example.c
33
--trace
4-
Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
4+
Passing problem to incremental SMT2 solving via
55
VERIFICATION FAILED
66
equal=FALSE\s*\([0 ]+\)
77
equal=TRUE\s*\([0 ]+1\)

regression/cbmc-incr-smt2/nondeterministic-int-assert/trace.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
trace.c
33
--trace
4-
Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
4+
Passing problem to incremental SMT2 solving via
55
Assert of inequality to 4\.: FAILURE
66
Assert of inequality to 2\.: FAILURE
77
y=4

regression/cbmc-incr-smt2/nondeterministic-int-assert/valid_unsat.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
valid_unsat.c
33
--verbosity 10
4-
Passing problem to incremental SMT2 solving via "z3 --smt2 -in"
4+
Passing problem to incremental SMT2 solving via
55
Sending command to SMT2 solver - \(check-sat\)
66
Solver response - unsat
77
VERIFICATION SUCCESSFUL

0 commit comments

Comments
 (0)