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

Slow performance on simple inequality #7329

Closed
r0ayane opened this issue Aug 3, 2024 · 1 comment
Closed

Slow performance on simple inequality #7329

r0ayane opened this issue Aug 3, 2024 · 1 comment

Comments

@r0ayane
Copy link

r0ayane commented Aug 3, 2024

Hi, z3 runs slowly on this instance:

$ cat slow.smt2
(declare-fun i0 () Int)
(assert (<= 1 (- i0 (* 32 32 32 i0 i0 i0 i0))))
(check-sat)
$ timeout -s 9 30 z3 slow.smt2
Killed

while cvc5 can solve it immediately.

$ time cvc5 slow.smt2
unsat

real    0m0.018s
user    0m0.014s
sys     0m0.005s
NikolajBjorner added a commit that referenced this issue Aug 3, 2024
@NikolajBjorner
Copy link
Contributor

It is a general issue with the qfnia tactic. It uses a SAT solver to check for small models, but this solver may take all resources.
It is not obvious the SAT solver should run first (or at all). I am setting a max-conflict on this to throttle it.
It is generally observed that the SAT tactic can even be removed and the solver then handles more qfnia benchmarks.
Fine tuning and experimentation with how to optimize tactic use or harness the SAT backend is more effort than adding this throttle.

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

2 participants