Skip to content

Commit 85558fe

Browse files
author
Enrico Steffinlongo
committed
Add regression tests for --export-symex-ready-goto
1 parent 753311a commit 85558fe

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE gcc_only
2+
test.c
3+
--export-symex-ready-goto ""
4+
^ERROR: Please provide a filename to write the goto-binary to.$
5+
^EXIT=6$
6+
^SIGNAL=0$
7+
--
8+
--
9+
Ensure that --export-symex-ready-goto exported.symex-ready.goto terminates with error when incorrectly used.
10+
The reason why we use gcc_only is that it fails on certain windows system probably due to
11+
different interpretation of "".
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CORE
2+
test.c
3+
--export-symex-ready-goto exported.symex.ready.goto
4+
^Parsing test.c$
5+
^Converting$
6+
^Type-checking test$
7+
^Generating GOTO Program$
8+
^Removal of function pointers and virtual functions$
9+
^Generic Property Instrumentation$
10+
Exported goto-program in symex-ready-goto form at exported.symex.ready.goto
11+
^EXIT=0$
12+
^SIGNAL=0$
13+
--
14+
--
15+
Ensure that --export-symex-ready-goto exported.symex.ready.goto terminates successfully and logs this.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int main(int argc, char **argv)
2+
{
3+
int arr[] = {0, 1, 2, 3, 4};
4+
__CPROVER_assert(arr[0] == 1, "expected failure: 0 != 1");
5+
return 0;
6+
}

0 commit comments

Comments
 (0)