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

Variable overflow when writing dDNNF to file #3

Open
raabh opened this issue Jul 30, 2023 · 0 comments
Open

Variable overflow when writing dDNNF to file #3

raabh opened this issue Jul 30, 2023 · 0 comments

Comments

@raabh
Copy link

raabh commented Jul 30, 2023

Hey,

While working with d4v2 I have encountered a bug, when writing to a file.

With the following minimal CNF example and the usage of d4v2 as ./build/d4 -i in.cnf -m ddnnf-compiler --dump-ddnnf out.nnf

p cnf 129 1
129 0

I get

o 1 0
t 2 0
1 2 1 0

as a result, but I would expect:

o 1 0
t 2 0
1 2 129 0

I am able to reproduce that bug while the total number of variables, declared in the CNF head as well as the variables in the clauses are either between 128 and 254 or between 2^15 and 2^16-2.

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