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

DIMACS output bug #7165

Closed
CoolA1d opened this issue Mar 16, 2024 · 0 comments
Closed

DIMACS output bug #7165

CoolA1d opened this issue Mar 16, 2024 · 0 comments

Comments

@CoolA1d
Copy link

CoolA1d commented Mar 16, 2024

Getting a weird error with the following script:

from z3 import *

a = BitVec('a', 32)
b = BitVec('b', 32)

equation1 = a + b == 0xdeadbeef % 2 ** 32
equation2 = b == 2 * a

g = Goal()
g.add(equation1, equation2)

t = Then('simplify', 'bit-blast', 'tseitin-cnf')

r = t(g)
print(r[0].dimacs())

It's saying "b'Goal is not converted into CNF. Preprocess by optional bit-blasting and applying tseitin-cnf'". However as you can see in the code I apply the tactic right before I query dimacs. Is there an error in my code somewhere?

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