summaryrefslogtreecommitdiff
path: root/Source/Predication
diff options
context:
space:
mode:
authorGravatar Unknown <afd@afd-THINK>2012-11-29 17:17:09 +0000
committerGravatar Unknown <afd@afd-THINK>2012-11-29 17:17:09 +0000
commit66931c81ab8871dab357d01448ef1c9dec0b53fd (patch)
treeeb56e57cacfff22d7f1f3e37191ba8527d5e2483 /Source/Predication
parent02ba1499b9a2e71bd26166f23fc083c98f5c36d9 (diff)
A simplification to predication of requires and ensures.
Diffstat (limited to 'Source/Predication')
-rw-r--r--Source/Predication/SmartBlockPredicator.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Predication/SmartBlockPredicator.cs b/Source/Predication/SmartBlockPredicator.cs
index 9478595b..2150f72d 100644
--- a/Source/Predication/SmartBlockPredicator.cs
+++ b/Source/Predication/SmartBlockPredicator.cs
@@ -494,15 +494,11 @@ public class SmartBlockPredicator {
.ToArray());
if (impl == null) {
- var newRequires = new RequiresSeq();
foreach (Requires r in proc.Requires) {
- newRequires.Add(new Requires(r.Free,
- new EnabledReplacementVisitor(new IdentifierExpr(Token.NoToken, fpVar)).VisitExpr(r.Condition)));
+ new EnabledReplacementVisitor(new IdentifierExpr(Token.NoToken, fpVar)).VisitExpr(r.Condition);
}
- var newEnsures = new EnsuresSeq();
foreach (Ensures e in proc.Ensures) {
- newEnsures.Add(new Ensures(e.Free,
- new EnabledReplacementVisitor(new IdentifierExpr(Token.NoToken, fpVar)).VisitExpr(e.Condition)));
+ new EnabledReplacementVisitor(new IdentifierExpr(Token.NoToken, fpVar)).VisitExpr(e.Condition);
}
}
}