diff options
author | Tim King <taking@cs.nyu.edu> | 2010-11-15 21:15:45 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-11-15 21:15:45 +0000 |
commit | ec4e1bdba56565d6372cb19ded12c9cadc506870 (patch) | |
tree | c263b7bf2e38034885089633677513e2ceff366e /src/prop | |
parent | 24b8c7f104ae9bebbbb04b973d62337c43c6adb8 (diff) |
This commit merges the arith-prop-opt branch into the main trunk. This was done by way of the intermediate branch arith-prop-tmp. Both arith-prop-opt and arith-prop-tmp will now be phased out.
Diffstat (limited to 'src/prop')
-rw-r--r-- | src/prop/prop_engine.cpp | 7 | ||||
-rw-r--r-- | src/prop/prop_engine.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/prop/prop_engine.cpp b/src/prop/prop_engine.cpp index d89b8ec2f..f3caead8b 100644 --- a/src/prop/prop_engine.cpp +++ b/src/prop/prop_engine.cpp @@ -87,6 +87,13 @@ void PropEngine::assertLemma(TNode node) { d_cnfStream->convertAndAssert(node, true, false); } +void PropEngine::assertSafeLemma(TNode node) { + if(d_inCheckSat){ + assertLemma(node); + }else{ + assertFormula(node); + } +} void PropEngine::printSatisfyingAssignment(){ const CnfStream::TranslationCache& transCache = diff --git a/src/prop/prop_engine.h b/src/prop/prop_engine.h index b43c2d859..c0483e943 100644 --- a/src/prop/prop_engine.h +++ b/src/prop/prop_engine.h @@ -103,6 +103,7 @@ public: * @param node the formula to assert */ void assertLemma(TNode node); + void assertSafeLemma(TNode node); /** * Checks the current context for satisfiability. |