Adding substitution size cap.
authorTim King <taking@cs.nyu.edu>
Wed, 23 Jan 2013 21:34:07 +0000 (16:34 -0500)
committerTim King <taking@cs.nyu.edu>
Wed, 23 Jan 2013 22:12:47 +0000 (17:12 -0500)
src/theory/arith/theory_arith.cpp

index 7f7ee3bb16480a05c1dfc9c442b438d02c492a20..39ded799124c4ea9b0c4c384f5842085e9728314 100644 (file)
@@ -752,8 +752,8 @@ Theory::PPAssertStatus TheoryArith::ppAssert(TNode in, SubstitutionMap& outSubst
       Assert(elim == Rewriter::rewrite(elim));
 
 
-      static const unsigned MAX_SUB_SIZE = 20;
-      if(false && right.size() > MAX_SUB_SIZE){
+      static const unsigned MAX_SUB_SIZE = 2;
+      if(right.size() > MAX_SUB_SIZE){
         Debug("simplify") << "TheoryArith::solve(): did not substitute due to the right hand side containing too many terms: " << minVar << ":" << elim << endl;
         Debug("simplify") << right.size() << endl;
       }else if(elim.hasSubterm(minVar)){