Debian Codegraph @

test/regress/cli/regress1/quantifiers/subtype-param.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: (Array Int Int)
4 ; EXPECT: not subtype: (Array Int Real)
5 ; EXPECT: in term : (Q (as x (Array Int Real)))")
6 ; EXIT: 1
7
8 (set-logic ALL)
9 (set-info :status unsat)
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 Real))) (R x)))
15
16 (declare-fun Q ((Array Int Real)) Bool)
17 (assert (forall ((x (Array Int Int))) (Q x)))
18
19 (declare-fun k1 () (List Int))
20 (declare-fun k2 () (Array Real Int))
21 (assert (or (not (R k1)) (not (Q k2))))
22
23 (check-sat)