| 1 |
; COMMAND-LINE: --finite-model-find --sort-inference |
| 2 |
; EXPECT: unknown |
| 3 |
(set-logic UFLIRA) |
| 4 |
(set-info :status sat) |
| 5 |
(declare-fun f (Int) Int) |
| 6 |
(declare-fun g (Int) Real) |
| 7 |
(declare-fun h (Real) Int) |
| 8 |
(assert (forall ((x Int)) (or (= (f x) (h (to_real x))) (= (f x) (to_int (g x)))))) |
| 9 |
(assert (not (= (f 3) (h 3.0)))) |
| 10 |
(assert (not (= (f 5) (to_int (g 5))))) |
| 11 |
(assert (= (to_real (f 4)) (g 8))) |
| 12 |
(assert (= (to_real (h 5.0)) 0.0)) |
| 13 |
; Sort inference fails to infer that x can be uninterpreted in this example, |
| 14 |
; fmf is unable to show sat due to use of to_real. |
| 15 |
(check-sat) |