summaryrefslogtreecommitdiff
path: root/test/regress/regress1/nl/bug698.smt2
blob: 221a5613d1494a4f004dc71a4af7870a7bfc4090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
; COMMAND-LINE: --incremental --nl-ext=full --fmf-fun-rlv --no-check-models
(set-logic UFNIA)
(set-info :smt-lib-version 2.6)

; EXPECT: sat
(declare-fun fixedAdd() Int)
(assert (= fixedAdd (+ 2 (+ 2 (+ 2 0)))))
(check-sat)

(define-fun-rec $$add$$ ((a Int)(b Int)) Int 
    (ite (= b 0) 
         0 
         (+ a ($$add$$ a (- b 1)))))

; EXPECT: sat
(declare-fun variableAdd() Int)
(assert (= variableAdd ($$add$$ 2 3)))
(check-sat)

; EXPECT: sat
(declare-fun fixedTimes() Int)
(assert (= fixedTimes (* 2 (* 2 (* 2 1)))))
(check-sat)
        
; EXPECT: sat
(define-fun-rec $$pow$$ ((a Int)(b Int)) Int 
    (ite (= b 0) 
         1 
         (* a ($$pow$$ a (- b 1)))))

(declare-fun variableTimes() Int)
(assert (= variableTimes ($$pow$$ 2 3)))
(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback