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

Regression in 4.8.3 #2079

Closed
yav opened this issue Jan 9, 2019 · 2 comments
Closed

Regression in 4.8.3 #2079

yav opened this issue Jan 9, 2019 · 2 comments

Comments

@yav
Copy link

yav commented Jan 9, 2019

The following example demonstrates a regression, that seems to appear first in version 4.8.3:

(declare-fun f ((Int)) Int
(declare-fun L () Int)
(declare-fun w () Int)

(assert (>= w 1))
(assert (>= L 0))
(assert (>= w (f L))) ; comment out to get an answer (but slower than before)

(assert (not  (<= (* (div L (* 2 w)) (* 2 w)) L)))
(check-sat)

Symptoms:

  • Previously, Z3 could solve this immediately, coming up with unsat.
  • Versions starting with 4.8.3 don't seem to stop, although I didn't wait very long.
  • If you comment out the marked line, which is not needed to complete the proof, then Z3 manages to come up with unsat, but it is much slower than in previous versions.
NikolajBjorner added a commit that referenced this issue Jan 11, 2019
Signed-off-by: Nikolaj Bjorner <[email protected]>
@NikolajBjorner
Copy link
Contributor

Seems as a reasonable case for expanding division lemmas. One helpful lemma is added where the divisor is positive.

@NikolajBjorner
Copy link
Contributor

There are very likely other useful lemmas that should be instantiated when I see a non-linear div. This is one of them.

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