projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0fa28
)
Correctly handle negated assertions for assumption-based unsat cores. (#6579)
author
Mathias Preiner
<mathias.preiner@gmail.com>
Wed, 19 May 2021 23:32:25 +0000
(16:32 -0700)
committer
GitHub
<noreply@github.com>
Wed, 19 May 2021 23:32:25 +0000
(18:32 -0500)
src/prop/prop_engine.cpp
patch
|
blob
|
history
diff --git
a/src/prop/prop_engine.cpp
b/src/prop/prop_engine.cpp
index 63591e74bce8e4569ffb043186571769a6980c22..b71c728e7e49f40f201f347b3ba6c14bd4454552 100644
(file)
--- a/
src/prop/prop_engine.cpp
+++ b/
src/prop/prop_engine.cpp
@@
-271,9
+271,15
@@
void PropEngine::assertInternal(
{
if (input)
{
- Assert(!negated);
d_cnfStream->ensureLiteral(node);
- d_assumptions.push_back(node);
+ if (negated)
+ {
+ d_assumptions.push_back(node.notNode());
+ }
+ else
+ {
+ d_assumptions.push_back(node);
+ }
}
else
{