From 66931c81ab8871dab357d01448ef1c9dec0b53fd Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 29 Nov 2012 17:17:09 +0000 Subject: A simplification to predication of requires and ensures. --- Source/Predication/SmartBlockPredicator.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/Predication') 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); } } } -- cgit v1.2.3