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

SIGSEGV caused by wrong var_order values #27

Open
jachymb opened this issue Sep 1, 2021 · 0 comments
Open

SIGSEGV caused by wrong var_order values #27

jachymb opened this issue Sep 1, 2021 · 0 comments

Comments

@jachymb
Copy link

jachymb commented Sep 1, 2021

The following code (adapted from the README) produces a SIGSEGV error:

from pysdd.sdd import SddManager, Vtree

vtree = Vtree(var_count=2, var_order=[1,1])
a,b = SddManager.from_vtree(vtree).vars

wmc = (a|b).wmc()

The cause is apparently the nonsencial var_order=[1,1]. Raising a ValueError or something would be better than crashing the entire thing.

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