Skip to content

Commit 00dba5d

Browse files
Test for printing multiple goto traces from one counterexample
The traces need to be correctly truncated so that the failing property comes last. The traces are printed in the same order as the properties are listed in the result report.
1 parent 33b4395 commit 00dba5d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <assert.h>
2+
3+
int main(int argc, char** argv)
4+
{
5+
assert(4 != argc);
6+
argc++;
7+
argc--;
8+
assert(argc >= 1);
9+
assert(argc != 4);
10+
argc++;
11+
argc--;
12+
assert(argc + 1 != 5);
13+
return 0;
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CORE
2+
main.c
3+
--trace
4+
activate-multi-line-match
5+
EXIT=10
6+
SIGNAL=0
7+
VERIFICATION FAILED
8+
Trace for main\.assertion\.1:(\n.*){16} assertion 4 \!= argc(\n.*){5}Trace for main\.assertion\.3:(\n.*){30} assertion argc != 4(\n.*){5}Trace for main\.assertion\.4:(\n.*){44} assertion argc \+ 1 != 5
9+
\*\* 3 of 4 failed
10+
--
11+
^warning: ignoring
12+
--
13+
We have one counterexample violating multiple properties.
14+
Make sure the traces are correctly truncated.

0 commit comments

Comments
 (0)