summaryrefslogtreecommitdiff
path: root/Source/VCGeneration/VC.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2014-02-28 18:35:56 -0800
committerGravatar Rustan Leino <unknown>2014-02-28 18:35:56 -0800
commit9c8243d39c4fc029d830dbdc4e7d6c4d7f08e3f5 (patch)
tree5af7aa9d087919f47b135a83000d05b31b8c2987 /Source/VCGeneration/VC.cs
parent739e49544b79c5c685a257554002b47a78dbe22e (diff)
Changed all lambda-expression rewriting to be done as a pre-processing step before real verification.
Fixed treatment of lambda-expression attributes.
Diffstat (limited to 'Source/VCGeneration/VC.cs')
-rw-r--r--Source/VCGeneration/VC.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/Source/VCGeneration/VC.cs b/Source/VCGeneration/VC.cs
index 49ae68e3..d2ab910b 100644
--- a/Source/VCGeneration/VC.cs
+++ b/Source/VCGeneration/VC.cs
@@ -2638,32 +2638,6 @@ namespace VC {
}
#endregion Peep-hole optimizations
- if (CommandLineOptions.Clo.ExpandLambdas)
- {
- List<Expr> axioms;
- List<Function> functions;
- lock (program.TopLevelDeclarations)
- {
- LambdaHelper.Desugar(impl, out axioms, out functions);
- program.TopLevelDeclarations.AddRange(functions);
- }
-
- if (axioms.Count > 0) {
- List<Cmd> cmds = new List<Cmd>();
- foreach (Expr ax in axioms) {
- Contract.Assert(ax != null);
- cmds.Add(new AssumeCmd(ax.tok, ax));
- }
- Block entryBlock = cce.NonNull( impl.Blocks[0]);
- cmds.AddRange(entryBlock.Cmds);
- entryBlock.Cmds = cmds;
- // Make sure that all added commands are passive commands.
- Dictionary<Variable, Expr> incarnationMap = ComputeIncarnationMap(entryBlock, new Dictionary<Block, Dictionary<Variable, Expr>>());
- TurnIntoPassiveBlock(entryBlock, incarnationMap, mvInfo,
- ComputeOldExpressionSubstitution(impl.Proc.Modifies));
- }
- }
-
HandleSelectiveChecking(impl);