| 1 |
; COMMAND-LINE: --finite-model-find |
| 2 |
; EXPECT: sat |
| 3 |
; this problem produced a model where incorrectly card(a)=1 due to --mbqi=fmc |
| 4 |
(set-logic ALL) |
| 5 |
|
| 6 |
(declare-sort a 0) |
| 7 |
(declare-datatypes ((tree 0)) (((Leaf (lab a))))) |
| 8 |
|
| 9 |
(declare-sort alpha 0) |
| 10 |
(declare-fun alphabet (tree a) Bool) |
| 11 |
(declare-fun g1 (alpha) tree) |
| 12 |
(declare-fun g2 (alpha) a) |
| 13 |
|
| 14 |
(assert |
| 15 |
(forall ((x alpha)) |
| 16 |
(=> |
| 17 |
(= (lab (g1 x)) (g2 x)) |
| 18 |
(alphabet (g1 x) (g2 x))))) |
| 19 |
|
| 20 |
(declare-fun x () a) |
| 21 |
(declare-fun y () a) |
| 22 |
; (assert (= x y)) |
| 23 |
(assert |
| 24 |
(and |
| 25 |
(exists ((b alpha)) (and (= (Leaf y) (g1 b)) (= x (g2 b)))) |
| 26 |
(not (alphabet (Leaf y) x)))) |
| 27 |
(check-sat) |