Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance on bit vectors #7295

Open
Heaven2024 opened this issue Jul 18, 2024 · 0 comments
Open

performance on bit vectors #7295

Heaven2024 opened this issue Jul 18, 2024 · 0 comments

Comments

@Heaven2024
Copy link

for this case :

(declare-fun n () (_ BitVec 32))
(declare-fun y () (_ BitVec 32))
(declare-fun z () (_ BitVec 32))
(declare-fun cond () (_ BitVec 32))

(assert (= cond (ite (= (bvadd (_ bv6 32) (bvmul (_ bv6 32) n)) z) (_ bv1 32) (_ bv0 32))))
(assert (let ((cse0 (bvmul (_ bv3 32) (bvmul n n))))
          (and (= (bvadd z y) (bvadd (_ bv7 32) cse0 (bvmul (_ bv9 32) n)))
               (= (bvadd (bvmul (_ bv3 32) n) cse0 (_ bv1 32)) y))))
(assert (not (= (_ bv1 32) cond)))
(check-sat)
timeout 20s  z3 test.smt2
z3 interrupted by SIGTERM. 

For other solvers:

cvc5 test.smt2
unsat
stp test.smt2
unsat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant