git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1241
e59a4935-1847-0410-ae03-
e826735625c1
if (children[0].isConstant() && CONSTANTBV::BitVector_is_empty(children[0].GetBVConst()))
result = children[1];
+
+ if (children[1].isConstant() && CONSTANTBV::BitVector_is_full(children[1].GetBVConst()))
+ result = NodeFactory::CreateTerm(BEEV::BVNEG, width, children[0]);
+
+ if (children[0].isConstant() && CONSTANTBV::BitVector_is_full(children[0].GetBVConst()))
+ result = NodeFactory::CreateTerm(BEEV::BVNEG, width, children[1]);
+
}
break;