Skip to content

Commit 6360b25

Browse files
authored
Merge pull request #7180 from diffblue/cprover-regression
enable cprover regression tests
2 parents 1383819 + d6dbb06 commit 6360b25

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

regression/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ endmacro(add_test_pl_tests)
2626
add_subdirectory(cbmc)
2727
add_subdirectory(cbmc-library)
2828
add_subdirectory(goto-analyzer)
29+
add_subdirectory(cprover)
2930
add_subdirectory(ansi-c)
3031
add_subdirectory(goto-instrument)
3132
add_subdirectory(cpp)

regression/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# listed with decreasing runtimes (i.e. longest running at the top)
44
DIRS = cbmc \
55
cbmc-library \
6+
cprover \
67
crangler \
78
goto-analyzer \
89
ansi-c \

regression/cprover/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_test_pl_tests(
2+
"$<TARGET_FILE:cprover>"
3+
)

regression/cprover/arrays/array1.desc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ array1.c
33
--text --solve --inline --no-safety
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\(\d+\) ∀ ς : state \. S20\(ς\) ⇒ S21\(ς\[element_address\(❝array❞, 1\):=10\]\)$
7-
^\(\d+\) ∀ ς : state \. S21\(ς\) ⇒ S22\(ς\[element_address\(❝array❞, 2\):=20\]\)$
8-
^\(\d+\) ∀ ς : state \. S22\(ς\) ⇒ \(ς\(element_address\(❝array❞, 1\)\) = 10\)$
9-
^\(\d+\) ∀ ς : state \. S23\(ς\) ⇒ \(ς\(element_address\(❝array❞, 2\)\) = 20\)$
10-
^\(\d+\) ∀ ς : state \. S24\(ς\) ⇒ \(ς\(element_address\(❝array❞, 2\)\) = 30\)$
6+
^\(\d+\) ∀ ς : state \. S20\(ς\) ⇒ S21\(ς\[element_address\(❝array❞, .*1.*\):=10\]\)$
7+
^\(\d+\) ∀ ς : state \. S21\(ς\) ⇒ S22\(ς\[element_address\(❝array❞, .*2.*\):=20\]\)$
8+
^\(\d+\) ∀ ς : state \. S22\(ς\) ⇒ \(ς\(element_address\(❝array❞, .*1.*\)\) = 10\)$
9+
^\(\d+\) ∀ ς : state \. S23\(ς\) ⇒ \(ς\(element_address\(❝array❞, .*2.*\)\) = 20\)$
10+
^\(\d+\) ∀ ς : state \. S24\(ς\) ⇒ \(ς\(element_address\(❝array❞, .*2.*\)\) = 30\)$
1111
^\[main\.assertion\.1\] line \d+ property 1: SUCCESS$
1212
^\[main\.assertion\.2\] line \d+ property 2: SUCCESS$
1313
^\[main\.assertion\.3\] line \d+ property 3: REFUTED$

regression/cprover/function_pointers/malloc_wrapper.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
malloc_wrapper.c
33

44
^EXIT=0$

regression/cprover/safety/dynamic_object1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int main()
22
{
3-
void *p, *q;
3+
char *p, *q;
44
// functional consistency of dynamic_object
55
__CPROVER_assume(p == q);
66

regression/cprover/safety/live_object1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int main()
22
{
3-
void *p, *q;
3+
char *p, *q;
44
// functional consistency of live_object
55
__CPROVER_assume(__CPROVER_LIVE_OBJECT(p));
66
__CPROVER_assume(p == q);

regression/cprover/safety/object_size1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int main()
22
{
3-
void *p, *q;
3+
char *p, *q;
44
// functional consistency of object_size
55
__CPROVER_assume(p == q);
66

0 commit comments

Comments
 (0)