test/regress/cli/regress0/ho/fun-subtyping.smt2
raw| 1 | ; EXPECT: sat |
| 2 | (set-logic HO_ALL) |
| 3 | (declare-fun g (Int) Real) |
| 4 | (declare-fun h (Int) Real) |
| 5 | (assert (not (= g h))) |
| 6 | ; g will be given a model value of lambda x. 0.0, which is interpreted as |
| 7 | ; a function Int -> Int; however since function types T -> U are subtypes of |
| 8 | ; T -> U' where U is a subtype of U', this example works. |
| 9 | (assert (= (g 0) 0.0)) |
| 10 | (assert (= (h 0) 0.5)) |
| 11 | (check-sat) |