summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.nyu.edu>2012-06-11 11:43:55 +0000
committerClark Barrett <barrett@cs.nyu.edu>2012-06-11 11:43:55 +0000
commit022a5e927ecab4f217b3f26529b09e569bd35d94 (patch)
tree2d0ddd6a9e3c34d249b369df44c6b393147fc22f
parent15396a6a276baac5773905651f3fb66c3b675919 (diff)
Fixed bug 352
-rw-r--r--src/theory/unconstrained_simplifier.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/unconstrained_simplifier.cpp b/src/theory/unconstrained_simplifier.cpp
index 70be74442..b310de425 100644
--- a/src/theory/unconstrained_simplifier.cpp
+++ b/src/theory/unconstrained_simplifier.cpp
@@ -665,8 +665,10 @@ void UnconstrainedSimplifier::processUnconstrained()
// back-substitution and cache-invalidation. So we do these last.
while (!delayQueueLeft.empty()) {
left = delayQueueLeft.back();
- right = d_substitutions.apply(delayQueueRight.back());
- d_substitutions.addSubstitution(delayQueueLeft.back(), right, true, true, false);
+ if (!d_substitutions.hasSubstitution(left)) {
+ right = d_substitutions.apply(delayQueueRight.back());
+ d_substitutions.addSubstitution(delayQueueLeft.back(), right, true, true, false);
+ }
delayQueueLeft.pop_back();
delayQueueRight.pop_back();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback