Debian Codegraph @

test/regress/cli/regress1/fmf/issue916-fmf-or.smt2

raw
1 ; COMMAND-LINE: --fmf-fun
2 ; EXPECT: sat
3 ; DISABLE-TESTER: model
4
5 (set-logic UFDTLIA)
6 (set-info :smt-lib-version 2.6)
7
8 (define-funs-rec
9 (
10 (validIdValue ((x Int)(v Int)) Bool)
11 )
12 (
13 (or
14 (and (= x 0) (< (- 10) v 10) )
15 (and (= x 1) (<= (- 100) v (- 10)) )
16 (and (= x 2) (<= 10 v 100) )
17 (and (= x 3) (< (- 1000) v (- 100)) )
18 (and (= x 4) (< 100 v 1000) )
19 (and (= x 5) (<= (- 1000) v) )
20 (and (= x 6) (<= v 1000) )
21 (validIdValue (- x 7) v)
22 )
23 )
24 )
25
26 (declare-datatypes ((List 1)) ((par (T)((Nil) (Cstr (head T) (tail (List T)))))))
27 (declare-datatypes ((Pair 2)) ((par (T S)((mkPair (first T) (second S))))))
28
29 (define-funs-rec
30 (
31 (validList ((l (List (Pair Int Int)))) Bool)
32 )
33 (
34 (ite (= l (as Nil (List (Pair Int Int))) )
35 true
36 (let ((hd (head l))) (and (>= (first hd) 0)
37 (validIdValue (first hd) (second hd))
38 (validList (tail l))
39 )
40 )
41 )
42 )
43 )
44
45
46 (declare-const myList (List (Pair Int Int)))
47 (assert (distinct myList (as Nil (List (Pair Int Int)))))
48 (assert (validList myList))
49 (check-sat)