Skip to content

Commit cc27808

Browse files
committed
Make cbmc-incr-smt2 test patterns platform-agnostic
Not all platforms have 32-bit int, and the size of long int may be the same as int.
1 parent 5eb8a94 commit cc27808

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

regression/cbmc-incr-smt2/arrays_traces/array_write.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ array_write.c
33
--trace
44
Passing problem to incremental SMT2 solving
55
^Trace for main\.assertion\.2
6-
example_array\[\d{1,4}ll?\]=42
6+
example_array\[\d{1,4}l?l?\]=42
77
^EXIT=10$
88
^SIGNAL=0$
99
--

regression/cbmc-incr-smt2/enums/enum_in_array.desc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ enum_in_array.c
44
Passing problem to incremental SMT2 solving
55
line 18 Array at index 0 is V0, so this should fail: FAILURE
66
i=0u \(00000000 00000000 00000000 00000000\)
7-
e\[0l+\]=/\*enum\*/V0 \(00000000 00000000 00000000 00000000\)
8-
e\[1l+\]=/\*enum\*/V1 \(00000000 00000000 00000000 00000001\)
9-
e\[2l+\]=/\*enum\*/V2 \(00000000 00000000 00000000 00000010\)
7+
e\[0l*\]=/\*enum\*/V0 \(00000000 00000000 00000000 00000000\)
8+
e\[1l*\]=/\*enum\*/V1 \(00000000 00000000 00000000 00000001\)
9+
e\[2l*\]=/\*enum\*/V2 \(00000000 00000000 00000000 00000010\)
1010
^EXIT=10$
1111
^SIGNAL=0$
1212
--

regression/cbmc-incr-smt2/nondeterministic-int-assert/stdout-match.desc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ test.c
44
Starting Bounded Model Checking
55
^\(set-option :produce-models true\)$
66
^\(set-logic ALL\)$
7-
^\(declare-fun size_of_object \(\(_ BitVec 8\)\) \(_ BitVec 64\)\)$
7+
^\(declare-fun size_of_object \(\(_ BitVec 8\)\) \(_ BitVec \d+\)\)$
88
^Passing problem to incremental SMT2 solving via SMT2 incremental dry-run$
99
^\(define-fun B0 \(\) Bool true\)$
1010
^\(define-fun B2 \(\) Bool \(not false\)\)$
1111
^\(assert B2\)$
12-
^\(assert \(= \(size_of_object \(_ bv1 8\)\) \(_ bv0 64\)\)\)$
13-
^\(assert \(= \(size_of_object \(_ bv0 8\)\) \(_ bv0 64\)\)\)$
12+
^\(assert \(= \(size_of_object \(_ bv1 8\)\) \(_ bv0 \d+\)\)\)$
13+
^\(assert \(= \(size_of_object \(_ bv0 8\)\) \(_ bv0 \d+\)\)\)$
1414
^\(check-sat\)$
1515
^EXIT=0$
1616
^SIGNAL=0$

regression/cbmc-incr-smt2/pointers/object_size.desc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ line 12 Expected int sizes\.: SUCCESS
55
line 13 Size is always 2\. \(Can be disproved\.\): FAILURE
66
line 14 Size is always 4\. \(Can be disproved\.\): FAILURE
77
line 16 Size of NULL\.: FAILURE
8-
size=2ul
9-
size=4ul
10-
null_size=0ul
8+
size=2ul*
9+
size=4ul*
10+
null_size=0ul*
1111
^EXIT=10$
1212
^SIGNAL=0$
1313
--

0 commit comments

Comments
 (0)