@@ -132,7 +132,6 @@ trait TemplateGenerator { self: Templates =>
132
132
))
133
133
134
134
val newBlocker : Variable = Variable .fresh(" bm" , BooleanType (), true )
135
- // TODO: make this a method in Builder similar to storeCond
136
135
builder.storeConds(thenBlockers ++ elseBlockers, newBlocker)
137
136
builder.iff(orJoin((thenBlockers ++ elseBlockers).toSeq), newBlocker)
138
137
@@ -450,16 +449,16 @@ trait TemplateGenerator { self: Templates =>
450
449
storeExpr(condVar)
451
450
452
451
val crec = rec(pathVar, cond, None )
453
- val (trec, tClauses) = mkExprClauses(newBool1, thenn, localSubst, pol)
454
- val (erec, eClauses) = mkExprClauses(newBool2, elze, localSubst, pol)
455
- builder ++= mergeCalls(pathVar, condVar, localSubst, tClauses, eClauses)
456
-
457
452
storeGuarded(pathVar, Equals (condVar, crec))
458
453
iff(and(pathVar, condVar), newBool1)
459
454
iff(and(pathVar, not(condVar)), newBool2)
460
455
461
- storeGuarded(newBool1, Equals (newExpr, trec))
462
- storeGuarded(newBool2, Equals (newExpr, erec))
456
+ val (trec, tClauses) = mkExprClauses(newBool1, thenn, localSubst, pol)
457
+ val (erec, eClauses) = mkExprClauses(newBool2, elze, localSubst, pol)
458
+ builder ++= mergeCalls(pathVar, condVar, localSubst,
459
+ tClauses + (newBool1 -> Equals (newExpr, trec)),
460
+ eClauses + (newBool2 -> Equals (newExpr, erec)))
461
+
463
462
newExpr
464
463
}
465
464
}
0 commit comments