summaryrefslogtreecommitdiff
path: root/src/expr/proof.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-04-20 14:53:07 -0500
committerGitHub <noreply@github.com>2020-04-20 14:53:07 -0500
commita76b222149e828ed0fe7fb6e91684552dc7b64ec (patch)
treedaed349df6924755c2a1e32d601f03328aa00da7 /src/expr/proof.cpp
parentecf3e9c874095e836b5ea4d9bed6b063b2a5f108 (diff)
Add SCOPE proof rule (#4332)
This rule is dual to ASSUME. It is a way of closing free assumptions to conclude an implication. It also changes getId -> getRule.
Diffstat (limited to 'src/expr/proof.cpp')
-rw-r--r--src/expr/proof.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/proof.cpp b/src/expr/proof.cpp
index 6d2d70543..eff222b92 100644
--- a/src/expr/proof.cpp
+++ b/src/expr/proof.cpp
@@ -49,7 +49,7 @@ bool CDProof::addStep(Node expected,
if (it != d_nodes.end())
{
if (!forceOverwrite
- && ((*it).second->getId() != PfRule::ASSUME || id == PfRule::ASSUME))
+ && ((*it).second->getRule() != PfRule::ASSUME || id == PfRule::ASSUME))
{
// we do not overwrite if forceOverwrite is false and the previously
// provided step was not an assumption, or if the currently provided step
@@ -144,7 +144,7 @@ bool CDProof::addProof(ProofNode* pn, bool forceOverwrite)
}
// can ensure children at this point
bool res = addStep(curFact,
- cur->getId(),
+ cur->getRule(),
pexp,
cur->getArguments(),
true,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback