Skip to content

Commit 890be45

Browse files
committed
Make nondet function arg regression tests independent of variable output order
1 parent 255c6bd commit 890be45

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

regression/cbmc/pointer-function-parameters-2/test.desc

+12-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ main.c
33
--function fun --cover branch
44
^\*\* 7 of 7 covered \(100.0%\)$
55
^Test suite:$
6-
^a=\(\(signed int \*\*\)NULL\), tmp(\$\d+)?=[^,]*, tmp(\$\d+)?=[^,]*$
7-
^a=&tmp(\$\d+)?!0, tmp(\$\d+)?=\(\(signed int \*\)NULL\), tmp(\$\d+)?=[^,]*$
8-
^a=&tmp(\$\d+)?!0, tmp(\$\d+)?=&tmp\$\d+!0, tmp(\$\d+)?=(-[0-9]+|[012356789][0-9]*|4[0-9]+)$
9-
^a=&tmp(\$\d+)?!0, tmp(\$\d+)?=&tmp(\$\d+)?!0, tmp(\$\d+)?=4$
6+
a=\(\(signed int \*\*\)NULL\)
7+
tmp(\$\d+)?=[^,]*
8+
tmp(\$\d+)?=[^,]*
9+
a=&tmp(\$\d+)?!0
10+
tmp(\$\d+)?=\(\(signed int \*\)NULL\)
11+
tmp(\$\d+)?=[^,]*
12+
a=&tmp(\$\d+)?!0
13+
tmp(\$\d+)?=&tmp\$\d+!0
14+
tmp(\$\d+)?=(-[0-9]+|[012356789][0-9]*|4[0-9]+)
15+
a=&tmp(\$\d+)?!0
16+
tmp(\$\d+)?=&tmp(\$\d+)?!0
17+
tmp(\$\d+)?=4
1018
^EXIT=0$
1119
^SIGNAL=0$
1220
--

regression/cbmc/pointer-function-parameters/test.desc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ main.c
33
--function fun --cover branch
44
^\*\* 5 of 5 covered \(100\.0%\)$
55
^Test suite:$
6-
^a=\(\(signed int \*\)NULL\), tmp(\$\d+)?=[^,]*$
7-
^a=&tmp(\$\d+)?!0, tmp(\$\d+)?=4$
8-
^a=&tmp(\$\d+)?!0, tmp(\$\d+)?=([012356789][0-9]*|4[0-9]+)$
6+
^(tmp(\$\d+)?=[^,]*, a=\(\(signed int \*\)NULL\))|(a=\(\(signed int \*\)NULL\), tmp(\$\d+)?=[^,]*)$
7+
^(a=&tmp(\$\d+)?!0, tmp(\$\d+)?=4)|(tmp(\$\d+)?=4, a=&tmp(\$\d+)?!0)$
8+
^(a=&tmp(\$\d+)?!0, tmp(\$\d+)?=([012356789][0-9]*|4[0-9]+))|(tmp(\$\d+)?=([012356789][0-9]*|4[0-9]+), a=&tmp(\$\d+)?!0)$
99
^EXIT=0$
1010
^SIGNAL=0$
1111
--

0 commit comments

Comments
 (0)