| 1 |
; REQUIRES: cocoa |
| 2 |
; EXPECT: sat |
| 3 |
; EXPECT: unsat |
| 4 |
; EXPECT: sat |
| 5 |
; EXPECT: sat |
| 6 |
; COMMAND-LINE: --incremental |
| 7 |
; Tests the ff rewriter |
| 8 |
(set-info :smt-lib-version 2.6) |
| 9 |
(set-info :category "crafted") |
| 10 |
(set-logic QF_FF) |
| 11 |
; all disjuncts should be false |
| 12 |
(define-sort F () (_ FiniteField 17)) |
| 13 |
(declare-fun a () F) |
| 14 |
(declare-fun b () F) |
| 15 |
(assert (= (ff.mul a a) b)) |
| 16 |
(assert (= a (as ff1 F))) |
| 17 |
(check-sat) |
| 18 |
(push) |
| 19 |
(declare-fun c () F) |
| 20 |
(assert (= (ff.mul c c) c)) |
| 21 |
(assert (= (ff.mul c c) (ff.mul (as ff2 F) b))) |
| 22 |
(check-sat) |
| 23 |
(pop) |
| 24 |
(push) |
| 25 |
(declare-fun c () F) |
| 26 |
(assert (= (ff.mul c c) c)) |
| 27 |
(assert (= (ff.mul c c) b)) |
| 28 |
(check-sat) |
| 29 |
(check-sat) |
| 30 |
(pop) |