bug fix
authorbdemsky <bdemsky@uci.edu>
Thu, 20 Sep 2018 04:33:57 +0000 (21:33 -0700)
committerbdemsky <bdemsky@uci.edu>
Thu, 20 Sep 2018 04:33:57 +0000 (21:33 -0700)
src/ASTTransform/elementopt.cc

index 4477379..b0866ed 100644 (file)
@@ -184,7 +184,8 @@ void ElementOpt::replaceVarWithConst(BooleanPredicate *pred, ElementSet *var, El
                                        solver->boolMap.remove(newpred);
                                        newpred->inputs.set(j, value);
                                        solver->boolMap.put(newpred, newpred);
-                                       workList.push(newpred);
+                                       if (newpred->isTrue() || newpred->isFalse())
+                                               workList.push(newpred);
                                        break;
                                }
                        }