-
Notifications
You must be signed in to change notification settings - Fork 280
Mark a test that uses --smt2 as needing the smt-backend #6244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
martin-cs
merged 5 commits into
diffblue:develop
from
martin-cs:fix/tag-z3-regression-tests-3
Jul 27, 2021
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a49e08c
Mark a test that uses --smt2 as needing the smt-backend
16436f6
Support the SMT tags in the contract regression tests
90ba5d9
Fix indenting in a Makefile
9fab445
Correctly tag a test case that requires Z3
3493061
Add corresponding changes to the CMake test configuration
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
regression/cbmc/issue_5952_soundness_bug_smt_encoding/test_short.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CORE | ||
CORE smt-backend | ||
short.c | ||
--smt2 | ||
^EXIT=0$ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
default: tests.log | ||
default: test | ||
|
||
include ../../src/config.inc | ||
include ../../src/common | ||
|
||
ifeq ($(BUILD_ENV_),MSVC) | ||
exe=../../../src/goto-cc/goto-cl | ||
is_windows=true | ||
GCC_ONLY = -X gcc-only | ||
else | ||
exe=../../../src/goto-cc/goto-cc | ||
is_windows=false | ||
GCC_ONLY = | ||
endif | ||
|
||
test: | ||
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)' | ||
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)' -X smt-backend $(GCC_ONLY) | ||
|
||
test-cprover-smt2: | ||
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument "../../../src/cbmc/cbmc --cprover-smt2" $(is_windows)' \ | ||
-X broken-smt-backend -X thorough-smt-backend \ | ||
-X broken-cprover-smt-backend -X thorough-cprover-smt-backend \ | ||
-s cprover-smt2 $(GCC_ONLY) | ||
|
||
test-z3: | ||
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument "../../../src/cbmc/cbmc --z3" $(is_windows)' \ | ||
-X broken-smt-backend -X thorough-smt-backend \ | ||
-X broken-z3-smt-backend -X thorough-z3-smt-backend \ | ||
-s z3 $(GCC_ONLY) | ||
|
||
tests.log: ../test.pl test | ||
|
||
tests.log: | ||
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)' | ||
|
||
clean: | ||
@for dir in *; do \ | ||
$(RM) tests.log; \ | ||
if [ -d "$$dir" ]; then \ | ||
cd "$$dir"; \ | ||
$(RM) *.out *.gb; \ | ||
$(RM) *.out *.gb *.smt2; \ | ||
cd ..; \ | ||
fi \ | ||
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CORE smt-backend | ||
CORE smt-backend broken-cprover-smt-backend | ||
main.c | ||
--apply-loop-contracts _ --z3 | ||
^EXIT=0$ | ||
|
@@ -14,9 +14,5 @@ This test case checks the handling of a universal quantifier, with a symbolic | |
upper bound, within a loop invariant. | ||
|
||
TODO: This test should: | ||
- be tagged `smt-backend`: | ||
because the SAT backend does not support (simply ignores) `forall` in negative (e.g. assume) contexts. | ||
- be tagged `broken-cprover-smt-backend`: | ||
because the CPROVER SMT2 solver cannot handle (errors out on) `forall` in negative (e.g. assume) contexts. | ||
- not use the `_ --z3` parameters: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See @TGWDB 's request above. |
||
once SMT-related tags are supported by the `Makefile`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.