| 1 |
; COMMAND-LINE: --fmf-bound --finite-model-find |
| 2 |
; EXPECT: sat |
| 3 |
(set-logic ALL) |
| 4 |
(set-info :status sat) |
| 5 |
(declare-sort U 0) |
| 6 |
(declare-fun P (Int Int U) Bool) |
| 7 |
|
| 8 |
(declare-fun S () (Set Int)) |
| 9 |
|
| 10 |
(declare-fun f (Int) U) |
| 11 |
(declare-fun g (Int) U) |
| 12 |
|
| 13 |
(declare-fun h (U) Int) |
| 14 |
|
| 15 |
(assert (set.member 77 S)) |
| 16 |
(assert (>= (h (f 77)) 3)) |
| 17 |
(assert (>= (h (g 77)) 2)) |
| 18 |
(assert (not (= (g 77) (f 77)))) |
| 19 |
|
| 20 |
(assert (forall ((x Int) (z U)) (=> |
| 21 |
(or (= z (f x)) (= z (g x))) |
| 22 |
(=> (set.member x S) |
| 23 |
(P x 0 z))))) |
| 24 |
|
| 25 |
(assert (forall ((x Int) (y Int) (z U)) (=> |
| 26 |
(or (= x 5) (= x 6)) |
| 27 |
(=> (and (<= 0 y) (<= y x)) |
| 28 |
(P x y z))))) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
(declare-fun Q (U Int) Bool) |
| 33 |
(declare-const a U) |
| 34 |
(declare-const b U) |
| 35 |
(declare-const c U) |
| 36 |
(assert (distinct a b c)) |
| 37 |
(assert (forall ((x U) (y Int)) (=> (and (<= 3 y) (<= y 10) (or (= x c) (= x (f y)))) (Q x y)))) |
| 38 |
(assert (not (Q b 6))) |
| 39 |
|
| 40 |
(check-sat) |