| 1 |
(set-logic QF_ALL) |
| 2 |
(set-info :status unsat) |
| 3 |
(define-sort Elt () Int) |
| 4 |
(define-sort mySet () (Set Elt )) |
| 5 |
(define-fun smt_set_emp () mySet (as set.empty mySet)) |
| 6 |
|
| 7 |
(declare-fun S () (Set Int)) |
| 8 |
(declare-fun T () (Set Int)) |
| 9 |
|
| 10 |
(assert (not (= S T))) |
| 11 |
(assert (= T (set.union smt_set_emp S))) |
| 12 |
(check-sat) |
| 13 |
|
| 14 |
; What was the bug? |
| 15 |
; |
| 16 |
; When two sets were disequal, the corresponding lemma |
| 17 |
; was not being generated (stating there in an element |
| 18 |
; in one, but not in the other). |