Skip to content

Commit a6b3123

Browse files
Daniel Kroeningchrisr-diffblue
Daniel Kroening
authored andcommitted
enable --validate-goto-model for all cbmc regressions
This will prevent the introduction of changes that violate the checks in the goto-validation procedure.
1 parent 1597b39 commit a6b3123

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

regression/cbmc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
add_test_pl_tests(
2-
"$<TARGET_FILE:cbmc>" -X smt-backend
2+
"$<TARGET_FILE:cbmc> --validate-goto-model" -X smt-backend
33
)

regression/cbmc/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
default: tests.log
1+
default: test
22

33
test:
4-
@../test.pl -p -c ../../../src/cbmc/cbmc -X smt-backend
4+
@../test.pl -p -c "../../../src/cbmc/cbmc --validate-goto-model" -X smt-backend
55

66
test-cprover-smt2:
77
@../test.pl -p -c "../../../src/cbmc/cbmc --cprover-smt2"
88

9-
tests.log: ../test.pl
10-
@../test.pl -p -c ../../../src/cbmc/cbmc -X smt-backend
9+
tests.log: ../test.pl test
1110

1211
show:
1312
@for dir in *; do \

regression/cbmc/trace-values/trace-values.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <stdlib.h>
2+
13
int global_var;
24

35
struct S

0 commit comments

Comments
 (0)