Debian Codegraph @

test/regress/cli/regress0/datatypes/model-semi-eval.smt2

raw
1 ; COMMAND-LINE: --produce-models
2 ; EXPECT: sat
3 ; EXPECT: (((head (node (- x 1))) 4))
4 (set-logic ALL)
5 (declare-datatype list ((node (data Int)) (cons (head Int) (tail list))))
6 (declare-fun x () Int)
7 (declare-fun y () Int)
8 (assert (> y 100))
9 (assert (= (head (node y)) 4))
10 (assert (<= y x (+ y 1)))
11 (assert (not (= x y)))
12 (check-sat)
13 (get-value ((head (node (- x 1)))))