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

assertion failure in Clasp::Asp::LogicProgram::finalizeDisjunctions #13

Closed
tkren opened this issue Nov 3, 2017 · 2 comments
Closed

Comments

@tkren
Copy link

tkren commented Nov 3, 2017

The following program breaks clasp 3.3.2 (and clingo 5.2.1):

 a|b:-not c.
 c|d:-not a.

Observe:

$ gringo <<EOF | clasp
a|b:-not c.
c|d:-not a.
EOF
clasp version 3.3.2
Reading from stdin
*** ERROR: (clasp): void Clasp::Asp::LogicProgram::finalizeDisjunctions(Clasp::Asp::Preprocessor&, Clasp::uint32)@1280: assertion failure: check('dx == bot || getRootAtom(supportLit.var())->var() == dx.var()') failed
UNKNOWN

Models       : 0+
Calls        : 1
Time         : 0.000s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s)
CPU Time     : 0.000s
$ echo $?               
65
BenKaufmann added a commit that referenced this issue Nov 3, 2017
  * The assertion failed to consider the case where
    a disjunction was eq to some atom that itself
    was part of a disjunction.

Fixes #13
@BenKaufmann
Copy link
Contributor

Hi Thomas,
thank you for the report.
Fixed in dev.

@tkren
Copy link
Author

tkren commented Nov 4, 2017

works as expected, cherry-picked into clasp 3.3.2-4 and gringo 5.2.1-3

@tkren tkren closed this as completed Nov 4, 2017
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

2 participants