| 1 |
; COMMAND-LINE: --macros-quant |
| 2 |
; EXPECT: (error "argument type is not a subtype of the function's argument type: |
| 3 |
; EXPECT: argument: x |
| 4 |
; EXPECT: has type: (List Int) |
| 5 |
; EXPECT: not subtype: (List Real) |
| 6 |
; EXPECT: in term : (R (as x (List Real)))") |
| 7 |
; EXIT: 1 |
| 8 |
|
| 9 |
(set-logic ALL) |
| 10 |
|
| 11 |
(declare-datatypes ((List 1)) ((par (T) ((cons (hd T) (tl (List T))) (nil))))) |
| 12 |
|
| 13 |
(declare-fun R ((List Real)) Bool) |
| 14 |
(assert (forall ((x (List Int))) (R x))) |
| 15 |
(declare-fun j1 () (List Real)) |
| 16 |
(assert (not (R j1))) |
| 17 |
|
| 18 |
(declare-fun Q ((Array Int Real)) Bool) |
| 19 |
(assert (forall ((x (Array Real Int))) (Q x))) |
| 20 |
(declare-fun j2 () (Array Real Real)) |
| 21 |
(assert (not (Q j2))) |
| 22 |
|
| 23 |
(check-sat) |