| 1 |
; COMMAND-LINE: --dump-instantiations --produce-proofs --print-inst-full |
| 2 |
; EXPECT: unsat |
| 3 |
; EXPECT: (instantiations (forall ((x Int)) (or (P x) (Q x))) |
| 4 |
; EXPECT: ( 2 ) |
| 5 |
; EXPECT: ) |
| 6 |
; EXPECT: (instantiations (forall ((x Int)) (or (not (S x)) (not (Q x)))) |
| 7 |
; EXPECT: ( 2 ) |
| 8 |
; EXPECT: ) |
| 9 |
(set-logic UFLIA) |
| 10 |
(set-info :status unsat) |
| 11 |
(declare-fun P (Int) Bool) |
| 12 |
(declare-fun Q (Int) Bool) |
| 13 |
(declare-fun R (Int) Bool) |
| 14 |
(declare-fun S (Int) Bool) |
| 15 |
(declare-fun W (Int) Bool) |
| 16 |
(declare-fun U (Int) Bool) |
| 17 |
(assert (forall ((x Int)) (or (P x) (Q x)))) |
| 18 |
(assert (forall ((x Int)) (or (R x) (W x)))) |
| 19 |
(assert (forall ((x Int)) (or (S x) (U x)))) |
| 20 |
(assert (forall ((x Int)) (or (not (S x)) (not (Q x))))) |
| 21 |
(assert (and (not (R 0)) (not (R 10)) (not (S 1)) (not (P 2)))) |
| 22 |
(assert (S 2)) |
| 23 |
; This tests that --produce-unsat-cores minimizes the instantiations |
| 24 |
; printed out. This regression should require only the 2 |
| 25 |
; instantiations above, but may try more. |
| 26 |
(check-sat) |