projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c83ce8f
)
Fix warning (#3053)
author
Haniel Barbosa
<hanielbbarbosa@gmail.com>
Thu, 13 Jun 2019 06:33:17 +0000
(
01:33
-0500)
committer
Andres Noetzli
<andres.noetzli@gmail.com>
Thu, 13 Jun 2019 06:33:16 +0000
(23:33 -0700)
src/proof/er/er_proof.cpp
patch
|
blob
|
history
diff --git
a/src/proof/er/er_proof.cpp
b/src/proof/er/er_proof.cpp
index 9160546f942e0d225c98736c9b846337138cbfa9..7b966f2c634f78bc66f79adc13ae16b7cf1c58c7 100644
(file)
--- a/
src/proof/er/er_proof.cpp
+++ b/
src/proof/er/er_proof.cpp
@@
-333,7
+333,7
@@
prop::SatLiteral resolveModify(
std::unordered_set<prop::SatLiteral, prop::SatLiteralHashFunction>& dest,
const prop::SatClause& src)
{
- bool foundPivot = false;
+
CVC4_UNUSED
bool foundPivot = false;
prop::SatLiteral pivot(0, false);
for (prop::SatLiteral lit : src)
@@
-341,8
+341,10
@@
prop::SatLiteral resolveModify(
auto negationLocation = dest.find(~lit);
if (negationLocation != dest.end())
{
+#ifdef CVC4_ASSERTIONS
Assert(!foundPivot);
foundPivot = true;
+#endif
dest.erase(negationLocation);
pivot = ~lit;
}