Debian Codegraph @

test/regress/cli/regress1/quantifiers/subtype-param-unk.smt2

raw
1 ; EXPECT: (error "argument type is not a subtype of the function's argument type:
2 ; EXPECT: argument: x
3 ; EXPECT: has type: (List Int)
4 ; EXPECT: not subtype: (List Real)
5 ; EXPECT: in term : (R (as x (List Real)))")
6 ; EXIT: 1
7
8 ; this will fail if type rule for APPLY_UF requires arguments to be subtypes
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 Int Int))) (Q x)))
20 (declare-fun j2 () (Array Int Real))
21 (assert (not (Q j2)))
22
23 (check-sat)