-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more regressions that demonstrate proof holes (cvc5#11515)
Accumulated this week when testing proofs. Also includes a few fixes for benchmarks taken from my dev branch for benchmarks with unexpected content.
- Loading branch information
Showing
12 changed files
with
78 additions
and
2 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
13 changes: 13 additions & 0 deletions
13
test/regress/cli/regress0/arith/arith-min-max-static-learn-real.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; EXPECT: unsat | ||
(set-logic ALL) | ||
(declare-fun a () Real) | ||
(define-fun b () Real 1.1) | ||
(declare-fun d () Real) | ||
(define-fun c () Real 2.1) | ||
(declare-fun f () Real) | ||
(define-fun e () Real 3.1) | ||
(declare-fun g () Real) | ||
(define-fun h () Real 4.1) | ||
(assert (let ((x (ite (< a b) a b)) (y (ite (<= c d) c d)) (z (ite (> e f) e f)) (w (ite (>= g h) g h))) | ||
(or (> x a) (> x b) (> y c) (> y d) (< z e) (< z f) (< w g) (< w h)))) | ||
(check-sat) |
13 changes: 13 additions & 0 deletions
13
test/regress/cli/regress0/arith/arith-min-max-static-learn.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; EXPECT: unsat | ||
(set-logic ALL) | ||
(declare-fun a () Int) | ||
(define-fun b () Int 1) | ||
(declare-fun d () Int) | ||
(define-fun c () Int 2) | ||
(declare-fun f () Int) | ||
(define-fun e () Int 3) | ||
(declare-fun g () Int) | ||
(define-fun h () Int 4) | ||
(assert (let ((x (ite (< a b) a b)) (y (ite (<= c d) c d)) (z (ite (> e f) e f)) (w (ite (>= g h) g h))) | ||
(or (> x a) (> x b) (> y c) (> y d) (< z e) (< z f) (< w g) (< w h)))) | ||
(check-sat) |
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,5 @@ | ||
; EXPECT: unsat | ||
(set-logic ALL) | ||
(declare-fun n () String) | ||
(assert (>= (+ (- (- 1) 1) (ite (< (str.len n) 1) (str.len n) 1)) 0)) | ||
(check-sat) |
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
1 change: 1 addition & 0 deletions
1
test/regress/cli/regress0/proofs/proj-issue430-coverings-double-negation.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,3 +1,4 @@ | ||
; COMMAND-LINE: --nl-cov --nl-ext=light | ||
; REQUIRES: poly | ||
; EXPECT: unsat | ||
; EXPECT: unsat | ||
|
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 @@ | ||
; EXPECT: unsat | ||
(set-logic ALL) | ||
(assert (= (str.to_int "0007") (- 1))) | ||
(check-sat) |
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,5 @@ | ||
(set-logic QF_SLIA) | ||
(set-info :status unsat) | ||
(declare-fun x () String) | ||
(assert (not (= (str.replace "ABCDEF" "C" x) (str.++ "AB" x "DEF")))) | ||
(check-sat) |
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,5 @@ | ||
; EXPECT: unsat | ||
(set-logic ALL) | ||
(declare-fun x () String) | ||
(assert (= 30 (+ (str.len x) (str.len (str.++ "\u{" (str.replace x ".g" "")))))) | ||
(check-sat) |
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
14 changes: 14 additions & 0 deletions
14
test/regress/cli/regress1/quantifiers/dd_full_xor-rcons-open.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; EXPECT: unsat | ||
(set-logic UFNIA) | ||
(declare-fun p (Int) Int) | ||
(declare-fun k () Int) | ||
(assert (> k 0)) | ||
(assert (and (= 1 (p 0)) (forall ((i Int)) (or (= i 0) (= (p i) (* 2 (p (- i 1)))))))) | ||
(declare-fun C () Int) | ||
(assert (and (>= C 0) (<= C (- (p k) 1)))) | ||
(declare-fun j () Int) | ||
(assert (<= j (- (p k) 1))) | ||
(declare-fun C2 () Int) | ||
(assert (and (>= C2 0))) | ||
(assert (and (< (- (* 2 (mod C (p (- k 1)))) C) (- (* 2 (mod C2 (p (- k 1)))) C2)) (distinct (< (- (* 2 (mod j (p (- k 1)))) j) (- (* 2 (mod C (p (- k 1)))) C)) (and (distinct j C2) (< (- (* 2 (mod j (p (- k 1)))) j) (- (* 2 (mod C (p (- k 1)))) C)))))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
test/regress/cli/regress1/quantifiers/dd_ghc_macro_quant_prenex.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
; EXPECT: unsat | ||
; DISABLE-TESTER: alethe | ||
(set-logic ALL) | ||
(declare-const x Bool) | ||
(declare-sort u 0) | ||
(declare-fun i (u) Int) | ||
(assert (exists ((r Int)) (and (not true) (exists ((r Int)) (forall ((j Int)) (forall ((o Bool)) (exists ((j Int)) (exists ((o Int)) (exists ((o Int)) (exists ((p Bool)) (ite p (exists ((o Int)) (exists ((o u)) (= 0 (i o)))) (and x (exists ((o Int)) (exists ((o u)) (= 0 (i o)))))))))))))))) | ||
(check-sat) |