| 1 |
(set-logic QF_ALL) |
| 2 |
(set-info :status unsat) |
| 3 |
|
| 4 |
; Observed |
| 5 |
; |
| 6 |
; sat as output instead of unsat |
| 7 |
; |
| 8 |
; What was going on? |
| 9 |
; |
| 10 |
; The solver was unable to reason that (set.empty) cannot equal |
| 11 |
; (set.singleton 0). There were no membership predicates anywhere, just |
| 12 |
; equalities. |
| 13 |
; |
| 14 |
; Fix |
| 15 |
; |
| 16 |
; Add the propagation rule: (true) => (set.member x (set.singleton x)) |
| 17 |
|
| 18 |
(declare-fun z3f70 (Int) (Set Int)) |
| 19 |
(declare-fun z3v85 () Int) |
| 20 |
(declare-fun z3v86 () Int) |
| 21 |
(declare-fun z3v87 () Int) |
| 22 |
(declare-fun z3v90 () Int) |
| 23 |
|
| 24 |
(assert (= (z3f70 z3v90) (set.union (z3f70 z3v85) (set.union (as set.empty (Set Int)) (set.singleton z3v86))))) |
| 25 |
(assert (= (z3f70 z3v90) (z3f70 z3v87))) |
| 26 |
(assert (= (as set.empty (Set Int)) (z3f70 z3v87))) |
| 27 |
(check-sat) |