From: trevor_hansen Date: Thu, 2 Feb 2012 12:29:35 +0000 (+0000) Subject: Search for a AND (NOT a), a OR (NOT a), when doing node creation. This is necessary... X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=40a07505b404fcd11f664b51f4faab912107cdda;p=francis%2Fstp.git Search for a AND (NOT a), a OR (NOT a), when doing node creation. This is necessary on some sage benchmarks. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1550 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/AST/NodeFactory/SimplifyingNodeFactory.cpp b/src/AST/NodeFactory/SimplifyingNodeFactory.cpp index 1302198..e52ce5a 100644 --- a/src/AST/NodeFactory/SimplifyingNodeFactory.cpp +++ b/src/AST/NodeFactory/SimplifyingNodeFactory.cpp @@ -338,6 +338,10 @@ SimplifyingNodeFactory::CreateSimpleAndOr(bool IsAnd, const ASTVec &children) else next_it = it_end; + if (nextexists) + if (next_it->GetKind() == BEEV::NOT && (*next_it)[0] == *it) + return annihilator; + if (*it == annihilator) { return annihilator;