Debian Codegraph @

test/regress/cli/regress0/ff/with_uf3.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 f (FF) FF)
8 (declare-fun a () FF)
9 (declare-fun b () FF)
10 (declare-fun c () FF)
11 (assert (not (= (f a) (f c))))
12
13 ; b = c
14 (assert (= (ff.mul c c) c))
15 (assert (= (ff.mul b b) b))
16 (assert (= (ff.add (as ff1 FF) (ff.neg c) (ff.neg b) (ff.mul (as ff2 FF) c b)) (as ff1 FF)))
17
18 ; a = b
19 (assert (= (ff.mul a a) a))
20 (assert (= (ff.mul b b) b))
21 (assert (= (ff.add (as ff1 FF) (ff.neg a) (ff.neg b) (ff.mul (as ff2 FF) a b)) (as ff1 FF)))
22 (check-sat)
23