Debian Codegraph @

test/regress/cli/regress0/ff/with_uf7.smt2

raw
1 ; REQUIRES: cocoa
2 ; EXPECT: unsat
3 (set-info :smt-lib-version 2.6)
4 (set-info :category "crafted")
5 (set-logic QF_UFFF)
6 (define-sort FF () (_ FiniteField 17))
7 (declare-fun g (FF) FF)
8 (declare-fun f (FF) FF)
9 (declare-fun a () FF)
10 (declare-fun b () FF)
11 (declare-fun c () FF)
12 (declare-fun d () FF)
13 (declare-fun e () FF)
14 (assert (= a (g c)))
15 (assert (= b (g d)))
16
17 ; c = d
18 (assert (= (ff.mul c c) c))
19 (assert (= (ff.mul d d) d))
20 (assert (= (ff.add (as ff1 FF) (ff.neg c) (ff.neg d) (ff.mul (as ff2 FF) c d)) (as ff1 FF)))
21
22 ; b = e
23 (assert (= (ff.mul b b) b))
24 (assert (= (ff.mul e e) e))
25 (assert (= (ff.add (as ff1 FF) (ff.neg b) (ff.neg e) (ff.mul (as ff2 FF) b e)) (as ff1 FF)))
26
27 (assert (not (= (f a) (f e))))
28
29 (check-sat)
30