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

BMC engine is slow compared to Z3 #76

Open
blishko opened this issue Jul 17, 2024 · 1 comment
Open

BMC engine is slow compared to Z3 #76

blishko opened this issue Jul 17, 2024 · 1 comment

Comments

@blishko
Copy link
Member

blishko commented Jul 17, 2024

On the following benchmark, Golem is much slower than Z3: chc22/LIA-lin/chc-LIA-Lin_442.smt2
It looks like Z3 can successfully simplify the system in preprocessing.
We should try to do something similar.

@blishko
Copy link
Member Author

blishko commented Jul 18, 2024

Looks like Z3 is doing some interesting preprocessing where it detects that a recursive clause cannot be taken more than once (because its tail does not unify with its head).
Z3 can then resolve this clause and delete it completely, effectively removing one cycle from the graph.
We could do something similar, check all the cycles and if we detect that the recursive clause cannot be taken, we can (in the graph terminology) split the vertex into "in" and "out" version, and change the self loop edge into a bridge from "in" to "out".

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