Skip to content

Commit d9d21f1

Browse files
committed
Cleans up test descs from contracts regression
Avoid escaping unnecessary characters. Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent 9e73175 commit d9d21f1

File tree

20 files changed

+54
-54
lines changed

20 files changed

+54
-54
lines changed

regression/contracts/assigns_enforce_17/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--enforce-all-contracts
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\[main.assertion.\d+\] line \d+ assertion x \=\= 0\: SUCCESS$
6+
^\[main.assertion.\d+\] line \d+ assertion x \=\= 0: SUCCESS$
77
^VERIFICATION SUCCESSFUL$
88
--
99
--

regression/contracts/assigns_enforce_structs_04/test.desc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ main.c
33
--enforce-all-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[f1.\d+\] line \d+ Check that p\-\>y is assignable\: FAILURE$
7-
^\[f2.\d+\] line \d+ Check that p\-\>x is assignable\: FAILURE$
8-
^\[f3.\d+\] line \d+ Check that p\-\>y is assignable\: SUCCESS$
9-
^\[f4.\d+\] line \d+ Check that p is assignable\: FAILURE$
6+
^\[f1.\d+\] line \d+ Check that p->y is assignable: FAILURE$
7+
^\[f2.\d+\] line \d+ Check that p->x is assignable: FAILURE$
8+
^\[f3.\d+\] line \d+ Check that p->y is assignable: SUCCESS$
9+
^\[f4.\d+\] line \d+ Check that p is assignable: FAILURE$
1010
^VERIFICATION FAILED$
1111
--
1212
--

regression/contracts/assigns_enforce_structs_05/test.desc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ main.c
33
--enforce-all-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[f1.\d+\] line \d+ Check that p\-\>y is assignable\: FAILURE$
7-
^\[f1.\d+\] line \d+ Check that p\-\>x\[\(.*\)0\] is assignable\: SUCCESS$
8-
^\[f1.\d+\] line \d+ Check that p\-\>x\[\(.*\)1\] is assignable\: SUCCESS$
9-
^\[f1.\d+\] line \d+ Check that p\-\>x\[\(.*\)2\] is assignable\: SUCCESS$
6+
^\[f1.\d+\] line \d+ Check that p->y is assignable: FAILURE$
7+
^\[f1.\d+\] line \d+ Check that p->x\[\(.*\)0\] is assignable: SUCCESS$
8+
^\[f1.\d+\] line \d+ Check that p->x\[\(.*\)1\] is assignable: SUCCESS$
9+
^\[f1.\d+\] line \d+ Check that p->x\[\(.*\)2\] is assignable: SUCCESS$
1010
^VERIFICATION FAILED$
1111
--
1212
--

regression/contracts/assigns_enforce_structs_06/test.desc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ main.c
33
--enforce-all-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[f1.\d+\] line \d+ Check that p\-\>buf\[\(.*\)0\] is assignable\: SUCCESS$
7-
^\[f1.\d+\] line \d+ Check that p\-\>buf\[\(.*\)1\] is assignable\: SUCCESS$
8-
^\[f1.\d+\] line \d+ Check that p\-\>buf\[\(.*\)2\] is assignable\: SUCCESS$
9-
^\[f1.\d+\] line \d+ Check that p\-\>size is assignable\: FAILURE$
10-
^\[f2.\d+\] line \d+ Check that p\-\>buf\[\(.*\)0\] is assignable\: FAILURE$
11-
^\[f2.\d+\] line \d+ Check that p\-\>size is assignable\: SUCCESS$
12-
^\[f3.\d+\] line \d+ Check that p\-\>buf is assignable\: SUCCESS$
13-
^\[f3.\d+\] line \d+ Check that p\-\>size is assignable\: SUCCESS$
6+
^\[f1.\d+\] line \d+ Check that p->buf\[\(.*\)0\] is assignable: SUCCESS$
7+
^\[f1.\d+\] line \d+ Check that p->buf\[\(.*\)1\] is assignable: SUCCESS$
8+
^\[f1.\d+\] line \d+ Check that p->buf\[\(.*\)2\] is assignable: SUCCESS$
9+
^\[f1.\d+\] line \d+ Check that p->size is assignable: FAILURE$
10+
^\[f2.\d+\] line \d+ Check that p->buf\[\(.*\)0\] is assignable: FAILURE$
11+
^\[f2.\d+\] line \d+ Check that p->size is assignable: SUCCESS$
12+
^\[f3.\d+\] line \d+ Check that p->buf is assignable: SUCCESS$
13+
^\[f3.\d+\] line \d+ Check that p->size is assignable: SUCCESS$
1414
^VERIFICATION FAILED$
1515
--
1616
--

regression/contracts/assigns_enforce_structs_07/test.desc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ main.c
33
--enforce-all-contracts _ --pointer-check
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[f1.\d+\] line \d+ Check that p\-\>buf\[\(.*\)0\] is assignable\: FAILURE$
7-
^\[f1.pointer\_dereference.\d+\] line \d+ dereference failure\: pointer NULL in p\-\>buf\: FAILURE$
8-
^\[f2.\d+\] line \d+ Check that pp\-\>p\-\>buf\[\(.*\)0\] is assignable\: FAILURE$
9-
^\[f2.pointer\_dereference.\d+\] line \d+ dereference failure\: pointer NULL in pp\-\>p\-\>buf\: FAILURE$
6+
^\[f1.\d+\] line \d+ Check that p->buf\[\(.*\)0\] is assignable: FAILURE$
7+
^\[f1.pointer\_dereference.\d+\] line \d+ dereference failure: pointer NULL in p->buf: FAILURE$
8+
^\[f2.\d+\] line \d+ Check that pp->p->buf\[\(.*\)0\] is assignable: FAILURE$
9+
^\[f2.pointer\_dereference.\d+\] line \d+ dereference failure: pointer NULL in pp->p->buf: FAILURE$
1010
^VERIFICATION FAILED$
1111
--
1212
--

regression/contracts/assigns_replace_07/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--replace-all-calls-with-contracts _ --pointer-check
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[pointer\_dereference.\d+\] file main.c line \d+ dereference failure\: pointer NULL in p\-\>buf\: FAILURE$
7-
^\[main.assertion.\d+\] line \d+ assertion p \!\= NULL \=\=\> p\-\>buf\[0\] \=\= 0\: FAILURE$
6+
^\[pointer\_dereference.\d+\] file main.c line \d+ dereference failure: pointer NULL in p->buf: FAILURE$
7+
^\[main.assertion.\d+\] line \d+ assertion p \!\= NULL \=\=> p->buf\[0\] \=\= 0: FAILURE$
88
^VERIFICATION FAILED$
99
--
1010
--

regression/contracts/assigns_type_checking_valid_cases/test.desc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[foo1.\d+\] line \d+ Check that a is assignable: SUCCESS$
7-
^\[foo10.\d+\] line \d+ Check that buffer\-\>len is assignable: SUCCESS$
8-
^\[foo10.\d+\] line \d+ Check that buffer\-\>aux\.allocated is assignable: SUCCESS$
7+
^\[foo10.\d+\] line \d+ Check that buffer->len is assignable: SUCCESS$
8+
^\[foo10.\d+\] line \d+ Check that buffer->aux\.allocated is assignable: SUCCESS$
99
^\[foo2.\d+\] line \d+ Check that b is assignable: SUCCESS$
1010
^\[foo3.\d+\] line \d+ Check that b is assignable: SUCCESS$
1111
^\[foo3.\d+\] line \d+ Check that y is assignable: SUCCESS$
@@ -14,10 +14,10 @@ main.c
1414
^\[foo4.\d+\] line \d+ Check that \*x is assignable: SUCCESS$
1515
^\[foo5.\d+\] line \d+ Check that buffer.data is assignable: SUCCESS$
1616
^\[foo5.\d+\] line \d+ Check that buffer.len is assignable: SUCCESS$
17-
^\[foo6.\d+\] line \d+ Check that \*buffer\-\>data is assignable: SUCCESS$
18-
^\[foo6.\d+\] line \d+ Check that buffer\-\>len is assignable: SUCCESS$
19-
^\[foo7.\d+\] line \d+ Check that \*buffer\-\>data is assignable: SUCCESS$
20-
^\[foo7.\d+\] line \d+ Check that buffer\-\>len is assignable: SUCCESS$
17+
^\[foo6.\d+\] line \d+ Check that \*buffer->data is assignable: SUCCESS$
18+
^\[foo6.\d+\] line \d+ Check that buffer->len is assignable: SUCCESS$
19+
^\[foo7.\d+\] line \d+ Check that \*buffer->data is assignable: SUCCESS$
20+
^\[foo7.\d+\] line \d+ Check that buffer->len is assignable: SUCCESS$
2121
^\[foo8.\d+\] line \d+ Check that array\[\(.* int\)0\] is assignable: SUCCESS$
2222
^\[foo8.\d+\] line \d+ Check that array\[\(.* int\)1\] is assignable: SUCCESS$
2323
^\[foo8.\d+\] line \d+ Check that array\[\(.* int\)2\] is assignable: SUCCESS$

regression/contracts/assigns_validity_pointer_03/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ main.c
77
// bar
88
ASSERT \*x > 0
99
IF !\(\*x == 3\) THEN GOTO \d
10-
tmp_if_expr = \*y == 5 \? true \: false;
10+
tmp_if_expr = \*y == 5 \? true : false;
1111
ASSUME tmp_if_expr
1212
// baz
1313
ASSUME \*z == 7

regression/contracts/history-pointer-enforce-09/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS$
7-
^\[foo.\d+\] line \d+ Check that p\-\>y is assignable\: SUCCESS$
7+
^\[foo.\d+\] line \d+ Check that p->y is assignable: SUCCESS$
88
^VERIFICATION SUCCESSFUL$
99
--
1010
--

regression/contracts/history-pointer-enforce-10/test.desc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ main.c
33
--enforce-all-contracts
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause\: SUCCESS$
7-
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause\: SUCCESS$
8-
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause\: SUCCESS$
9-
^\[bar.\d+\] line \d+ Check that p\-\>y is assignable\: SUCCESS$
10-
^\[baz.\d+\] line \d+ Check that p is assignable\: SUCCESS$
11-
^\[baz.\d+\] line \d+ Check that p is assignable\: SUCCESS$
12-
^\[foo.\d+\] line \d+ Check that \*p\-\>y is assignable\: SUCCESS$
13-
^\[foo.\d+\] line \d+ Check that z is assignable\: SUCCESS$
14-
^\[main.assertion.\d+\] line \d+ assertion \*\(p\-\>y\) == 7\: SUCCESS$
15-
^\[main.assertion.\d+\] line \d+ assertion \*\(p\-\>y\) == -1\: SUCCESS$
6+
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS$
7+
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS$
8+
^\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS$
9+
^\[bar.\d+\] line \d+ Check that p->y is assignable: SUCCESS$
10+
^\[baz.\d+\] line \d+ Check that p is assignable: SUCCESS$
11+
^\[baz.\d+\] line \d+ Check that p is assignable: SUCCESS$
12+
^\[foo.\d+\] line \d+ Check that \*p->y is assignable: SUCCESS$
13+
^\[foo.\d+\] line \d+ Check that z is assignable: SUCCESS$
14+
^\[main.assertion.\d+\] line \d+ assertion \*\(p->y\) == 7: SUCCESS$
15+
^\[main.assertion.\d+\] line \d+ assertion \*\(p->y\) == -1: SUCCESS$
1616
^VERIFICATION SUCCESSFUL$
1717
--
1818
--

regression/contracts/history-pointer-enforce-11/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--enforce-all-contracts
44
^EXIT=0$
55
^SIGNAL=0$
6-
^\[postcondition.\d+\] Check ensures clause\: SUCCESS$
7-
^\[foo.\d+\] line \d+ Check that p\-\>y is assignable\: SUCCESS$
6+
^\[postcondition.\d+\] Check ensures clause: SUCCESS$
7+
^\[foo.\d+\] line \d+ Check that p->y is assignable: SUCCESS$
88
^VERIFICATION SUCCESSFUL$
99
--
1010
--

regression/contracts/history-pointer-replace-04/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--replace-all-calls-with-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[precondition.\d+\] file main.c line \d+ Check requires clause\: SUCCESS$
7-
^\[main.assertion.\d+\] line \d+ assertion p\-\>y \!\= 7\: FAILURE$
6+
^\[precondition.\d+\] file main.c line \d+ Check requires clause: SUCCESS$
7+
^\[main.assertion.\d+\] line \d+ assertion p->y \!\= 7: FAILURE$
88
^VERIFICATION FAILED$
99
--
1010
--

regression/contracts/test_array_memory_replace/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
\[precondition.\d+\] file main.c line \d+ Check requires clause: SUCCESS
7-
\[main.assertion.\d+\] line \d+ assertion o \>\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
7+
\[main.assertion.\d+\] line \d+ assertion o >\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
88
\[main.assertion.\d+\] line \d+ assertion n\[9\] == 113: SUCCESS
99
^VERIFICATION SUCCESSFUL$
1010
--

regression/contracts/test_array_memory_too_small_replace/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main.c
44
^EXIT=10$
55
^SIGNAL=0$
66
\[precondition.\d+\] file main.c line \d+ Check requires clause: FAILURE
7-
\[main.assertion.\d+\] line \d+ assertion o \>\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
7+
\[main.assertion.\d+\] line \d+ assertion o >\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
88
^VERIFICATION FAILED$
99
--
1010
--

regression/contracts/test_scalar_memory_replace/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main.c
55
^SIGNAL=0$
66
\[precondition.\d+\] file main.c line \d+ Check requires clause: SUCCESS
77
\[main.assertion.\d+\] line \d+ assertion \_\_CPROVER\_r\_ok\(n, sizeof\(int\)\): SUCCESS
8-
\[main.assertion.\d+\] line \d+ assertion o \>\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
8+
\[main.assertion.\d+\] line \d+ assertion o >\= 10 \&\& o \=\= \*n \+ 5: SUCCESS
99
^VERIFICATION SUCCESSFUL$
1010
--
1111
--

regression/contracts/test_struct_enforce/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS
7-
\[foo.\d+\] line \d+ Check that x-\>baz is assignable: SUCCESS
8-
\[foo.\d+\] line \d+ Check that x-\>qux is assignable: SUCCESS
7+
\[foo.\d+\] line \d+ Check that x->baz is assignable: SUCCESS
8+
\[foo.\d+\] line \d+ Check that x->qux is assignable: SUCCESS
99
\[main.assertion.\d+\] line \d+ assertion rval \=\= 10: SUCCESS
1010
^VERIFICATION SUCCESSFUL$
1111
--

regression/contracts/test_struct_member_enforce/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
\[postcondition.\d+\] file main.c line \d+ Check ensures clause: SUCCESS
7-
\[foo.\d+\] line \d+ Check that x-\>str\[\(.*\)\(x-\>len - 1\)\] is assignable: SUCCESS
7+
\[foo.\d+\] line \d+ Check that x->str\[\(.*\)\(x->len - 1\)\] is assignable: SUCCESS
88
\[main.assertion.\d+\] line \d+ assertion rval \=\= 128: SUCCESS
99
^VERIFICATION SUCCESSFUL$
1010
--

regression/contracts/test_struct_replace/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main.c
44
^EXIT=0$
55
^SIGNAL=0$
66
\[precondition.\d+\] file main.c line \d+ Check requires clause: SUCCESS
7-
\[main.assertion.\d+\] line \d+ assertion rval \=\= x-\>baz \+ x-\>qux: SUCCESS
7+
\[main.assertion.\d+\] line \d+ assertion rval \=\= x->baz \+ x->qux: SUCCESS
88
\[main.assertion.\d+\] line \d+ assertion \*x \=\= \*y: SUCCESS
99
^VERIFICATION SUCCESSFUL$
1010
--

regression/contracts/trivial_contract_enforce/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--enforce-all-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main.assertion.\d+\] line \d+ assertion foo\(\&n\) != 15\: FAILURE$
6+
^\[main.assertion.\d+\] line \d+ assertion foo\(\&n\) != 15: FAILURE$
77
^VERIFICATION FAILED$
88
--
99
--

regression/contracts/trivial_contract_replace/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--enforce-all-contracts
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\[main.assertion.\d+\] line \d+ assertion foo\(\&n\) != 15\: FAILURE$
6+
^\[main.assertion.\d+\] line \d+ assertion foo\(\&n\) != 15: FAILURE$
77
^VERIFICATION FAILED$
88
--
99
--

0 commit comments

Comments
 (0)