]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
If there are unapplied substitutions before starting unconstrained variable eliminati...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Mar 2011 03:17:02 +0000 (03:17 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Mar 2011 03:17:02 +0000 (03:17 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1228 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/RemoveUnconstrained.cpp

index f15a1e8cf293aad71e2cf2c0e22df5bc20ae829a..78798ea75002b65f8483a31bfc2e875406ce7a57 100644 (file)
@@ -26,7 +26,6 @@ namespace BEEV
 
   const bool debug_unconstrained = false;
 
-  // There should be no unapplied simplifications.
   ASTNode
   RemoveUnconstrained::topLevel(const ASTNode &n, Simplifier *simplifier)
   {
@@ -35,7 +34,9 @@ namespace BEEV
     bm.GetRunTimes()->start(RunTimes::RemoveUnconstrained);
 
     //All the simplifications should be written through before we get here.
-    assert(result == simplifier->applySubstitutionMap(result));
+
+    if(simplifier->hasUnappliedSubstitutions())
+      result = simplifier->applySubstitutionMap(result);
 
     result = topLevel_other(result, simplifier);