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

Consider performing some preprocessing #736

Open
bclement-ocp opened this issue Jul 12, 2023 · 1 comment
Open

Consider performing some preprocessing #736

bclement-ocp opened this issue Jul 12, 2023 · 1 comment
Labels

Comments

@bclement-ocp
Copy link
Collaborator

QF_BV/uclid/catchconv/convert-jpg2gif-query-1213.smt2 is a fairly trivial problem. Even when replacing all bitvector functions with uninterpreted symbols, Z3 is able to solve it in hundreds of ms using the solve-eqs tactic, which (as far as I can tell) simply substitute equalities, which means that there must be an "obvious" contradiction somewhere.

On the other hand, Alt-Ergo takes more than 30s on the same problem, and there is definitely something we can do there. For one, we could aggressively substitute variables with their definition at least when the definition is either a variable or a constant. This would help with hash-consing.

@bclement-ocp
Copy link
Collaborator Author

Note that when everything is uninterpreted, we do solve much faster (2s).

Reintroducing ony bvadd as interpreted causes the issues to pop up again, so this is due to a difference in the way we treat (bvadd t u) and (int2bv (+ (bv2nat t) (bv2nat u))).

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

No branches or pull requests

1 participant