-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an error for models of incremental problems
Plus some re-organizing of tests
- Loading branch information
Showing
16 changed files
with
127 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
tests/model/error/bad_div_zero.expected → tests/model/int/bad_div_zero.expected
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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 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
File renamed without changes.
This file contains 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,8 +1,8 @@ | ||
File "tests/model/error/fo.rsmt2", line 3, character 15-22: | ||
File "tests/model/misc/fo.rsmt2", line 3, character 15-22: | ||
3 | (define-fun p ((x Int)) Bool true) | ||
^^^^^^^ | ||
Warning The following function parameter is unused: `x` | ||
File "tests/model/error/fo.smt2", line 3, character 0-33: | ||
File "tests/model/misc/fo.smt2", line 3, character 0-33: | ||
3 | (assert (forall ((x Int)) (p x))) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Error Models cannot be checked for formulas that contain quantifiers |
File renamed without changes.
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
File "tests/model/misc/incr.smt2", line 8, character 0-22: | ||
8 | (assert (< 0 (* a b))) | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
Error Incremental problems are not supported |
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sat | ||
( | ||
(define-fun a () Int (- 1)) | ||
(define-fun b () Int 1) | ||
) | ||
sat | ||
( | ||
; This is not a correct model, as this only | ||
; satisfies the last assertion (a*b>0), and not | ||
; the first one (a < 0). | ||
(define-fun a () Int 1) | ||
(define-fun b () Int 1) | ||
) |
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(set-logic ALL) | ||
(declare-fun a () Int) | ||
(declare-fun b () Int) | ||
|
||
(assert (< a 0)) | ||
(check-sat) | ||
|
||
(assert (< 0 (* a b))) | ||
(check-sat) | ||
|
2 changes: 1 addition & 1 deletion
2
tests/model/error/missing_answer.expected → tests/model/misc/missing_answer.expected
This file contains 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
File renamed without changes.
File renamed without changes.