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

valid_assignment() assertion violation #42

Closed
daniel-j-h opened this issue Apr 16, 2015 · 1 comment
Closed

valid_assignment() assertion violation #42

daniel-j-h opened this issue Apr 16, 2015 · 1 comment

Comments

@daniel-j-h
Copy link
Contributor

To get a better feeing for z3 I wanted to do constraint-based layouting.
https://gist.github.com/daniel-j-h/499c50455929ab6aa755

Surprisingly though, I stumbled upon a strange assertion.
This is triggered only when I set the enclosing box to a resolution of 1366,768 and use the area function (i.e. multiplication). Setting the box to 1365,768 or switching the area constraint with width and height constraints does give me a valid model.

ASSERTION VIOLATION
File: ../src/smt/theory_arith_aux.h
Line: 1996
valid_assignment()
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
A

I could only trace it back to theory_arith_inv.h's valid_assignment, and then satisfy_integrality. I can see no reason why this assertion could happen. Would you be so kind and have a look at it? Is the multiplication the problem? As far as I read the Ints theory spec, there is an (* Int Int Int :left-assoc) symbol.

This is tested with

Z3 [version 4.4.0 - 64 bit - build hashcode bd162588b28c1ca38980bfd0df040539df176370].

and also with the latest (as of now)

Z3 [version 4.4.0 - 64 bit - build hashcode 3ba2e712b21bb5c8e987243c118adbd8b30b185d]

Thanks,
Daniel

@daniel-j-h
Copy link
Contributor Author

I am unable to reproduce this with latest versions of unstable (or opt)

You are right, with the latest opt branch I do not get the assertion. Closing this. Thanks for your help.

NikolajBjorner added a commit to NikolajBjorner/z3 that referenced this issue Apr 27, 2017
* local

Signed-off-by: Nikolaj Bjorner <[email protected]>

* cleanup

Signed-off-by: Nikolaj Bjorner <[email protected]>

* got the legacy build going for release mode

Signed-off-by: Nikolaj Bjorner <[email protected]>

* microtune

Signed-off-by: Nikolaj Bjorner <[email protected]>

* optimize

Signed-off-by: Nikolaj Bjorner <[email protected]>
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