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

Adding a new literal and immediately watching it causes an assertion. #192

Closed
rkaminsk opened this issue Feb 4, 2020 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@rkaminsk
Copy link
Member

rkaminsk commented Feb 4, 2020

The following program causes an assertion.

import clingo

class Propagator:
    def init(self, init):
        init.add_watch(init.add_literal())

ctl = clingo.Control()
ctl.register_propagator(Propagator())
ctl.solve()
@rkaminsk rkaminsk self-assigned this Feb 4, 2020
@rkaminsk rkaminsk added the bug label Feb 4, 2020
@rkaminsk rkaminsk added this to the v5.4.1 milestone Feb 4, 2020
rkaminsk added a commit that referenced this issue Feb 8, 2020
@rkaminsk rkaminsk closed this as completed Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant