Skip to content

Commit

Permalink
enable --validate-goto-model for all cbmc regressions
Browse files Browse the repository at this point in the history
This will prevent the introduction of changes that violate the checks
in the goto-validation procedure.
  • Loading branch information
Daniel Kroening authored and chrisr-diffblue committed Jan 28, 2019
1 parent 1d40d38 commit 933c2ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion regression/cbmc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
add_test_pl_tests(
"$<TARGET_FILE:cbmc>" -X smt-backend
"$<TARGET_FILE:cbmc> --validate-goto-model" -X smt-backend
)
7 changes: 3 additions & 4 deletions regression/cbmc/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
default: tests.log
default: test

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

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

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

show:
@for dir in *; do \
Expand Down
2 changes: 2 additions & 0 deletions regression/cbmc/trace-values/trace-values.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdlib.h>

int global_var;

struct S
Expand Down

0 comments on commit 933c2ef

Please sign in to comment.