-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not automatically parse rational constants from NEG and DIVISION (c…
…vc5#10472) This eliminates an optimization in our parser where terms that specific rational or numeral values are automatically. This increases our proof size by 0.1% (985k steps vs. 984k steps) and our number of trusted rewrite steps by 0.08% (135742 vs 135632). This includes cvc5#10471, review that PR first. Some benchmarks that used array constants required changing. In particular ((as const (Array Real Real)) (/ 1 4)) is no longer a valid term, since (/ 1 4) is the division of 1 and 4 and not a rational value. Due to our partial, experimental support of array constants that only accept values, the required syntax for this is now ((as const (Array Real Real)) 1/4). FYI @barrettcw This PR also introduces --print-arith-lit-token (disabled by default) which prints rational values and negative arithmetic values using the new syntax. Based on these changes, it simplifies and improves the ALF printer.
- Loading branch information
Showing
9 changed files
with
72 additions
and
91 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
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
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
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
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,7 +1,8 @@ | ||
; COMMAND-LINE: --print-arith-lit-token | ||
(set-logic QF_AUFLIRA) | ||
(set-info :status sat) | ||
(declare-fun a () (Array Int Real)) | ||
(assert (= a ((as const (Array Int Real)) 0.0))) | ||
(declare-fun b () (Array Int Real)) | ||
(assert (= b ((as const (Array Int Real)) (/ 1 3)))) | ||
(assert (= b ((as const (Array Int Real)) 1/3))) | ||
(check-sat) |
3 changes: 2 additions & 1 deletion
3
test/regress/cli/regress0/arrays/issue7596-define-array-uminus.smt2
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,5 +1,6 @@ | ||
; COMMAND-LINE: --print-arith-lit-token | ||
(set-logic ALL) | ||
(set-info :status sat) | ||
(define-fun foo () (Array Int Int) ((as const (Array Int Int)) (- 1))) | ||
(define-fun foo () (Array Int Int) ((as const (Array Int Int)) -1)) | ||
(assert (= (select foo 0) (- 1))) | ||
(check-sat) |