Repository navigation
fix: allowing unit conflict explanation - #82
Closed
ImkoMarijnissen wants to merge 2 commits into
Closed
ImkoMarijnissen wants to merge 2 commits into
ImkoMarijnissen wants to merge 2 commits into
Conversation
…ion + adding clausereference to explanation
Contributor
|
Two quick comments:
(The solver internally already keeps track of clause references that are created as part of explanations, and deletes them after conflict analysis.)
If we eventually switch to the revamp, it does not matter that much, so perhaps it does not matter too much how we implement this now, as long as it works? (p.s. I also made some comments to the issue, please have a look!) |
Contributor
|
After discussion, we decided to implement the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #81
This is a proposal, any feedback is more than welcome!
Currently, we do not handle unit conflict explanations which can interfere with the workings of the proof logging but could also inhibit the behaviour of propagators in the future.
This PR proposes to update the existing
explanation_clause_managerto keep track of its own internally allocated clauses during conflict analysis such that they do not have to be allocated by theclause_allocator. This allows us to handle the cases where a conflict explanation is unit (and it could reduce the memory overhead slightly since we are not storing aClauseBasicbut aVec<Literal>).Additionally, to use the compact representation of a
ClauseReference, a new type of this struct is used (with the 31st bit not set and the 30th bit set) which indicates an explanation clause.