diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-02-10 10:27:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 10:27:44 -0600 |
commit | b6df05346a3bd8c1c68ef74635711ff3e6bd5791 (patch) | |
tree | 19d7fc01ebe2435cc3bbdc9756e01e55bd143e3c /test/regress/regress1 | |
parent | e9408ca21267616bb799ef5f7fda85a1fee9c07c (diff) |
Fix open proof for factoring lemma (#5885)
We need to add to the current proof, regardless of whether we have used the factor skolem previously.
Fixes bugs found by @HanielB on SMT-LIB runs.
Diffstat (limited to 'test/regress/regress1')
-rw-r--r-- | test/regress/regress1/nl/ufnia-factor-open-proof.smt2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/regress1/nl/ufnia-factor-open-proof.smt2 b/test/regress/regress1/nl/ufnia-factor-open-proof.smt2 new file mode 100644 index 000000000..bcb077f4f --- /dev/null +++ b/test/regress/regress1/nl/ufnia-factor-open-proof.smt2 @@ -0,0 +1,14 @@ +(set-logic QF_UFNIA) +(set-info :status unsat) +(declare-fun pow2 (Int) Int) +(define-fun intmax ((k Int)) Int (- (pow2 k) 1)) +(define-fun intmodtotal ((pow2 Int) (a Int) (b Int)) Int (mod a b)) +(define-fun intneg ((k Int) (a Int)) Int 1) +(define-fun intmul ((k Int) (a Int) (b Int)) Int (mod (* a b) (pow2 k))) +(declare-fun k () Int) +(assert (> k 0)) +(assert (= 1 (pow2 1))) +(declare-fun %x () Int) +(assert (> %x 0)) +(assert (not (= (intmul k %x (intmax k)) (mod (- (pow2 k) %x) (pow2 k))))) +(check-sat) |