summaryrefslogtreecommitdiff
path: root/Source/VCGeneration/VC.cs
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2011-08-20 22:04:10 -0700
committerGravatar qadeer <qadeer@microsoft.com>2011-08-20 22:04:10 -0700
commitd8b239c0c3bd5d33f683eafb735aef41dac28760 (patch)
treeef4ec99f794ae60458af330f57e5ba61dfda24f4 /Source/VCGeneration/VC.cs
parent54c75d7af7051fdaebcb4140560ed9a7f5d4060c (diff)
added code to handle irreducible graphs
Diffstat (limited to 'Source/VCGeneration/VC.cs')
-rw-r--r--Source/VCGeneration/VC.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/VCGeneration/VC.cs b/Source/VCGeneration/VC.cs
index 79fdaaa2..8ee2a6f6 100644
--- a/Source/VCGeneration/VC.cs
+++ b/Source/VCGeneration/VC.cs
@@ -1505,7 +1505,7 @@ namespace VC {
vcgen.CurrentLocalVariables = codeExpr.LocVars;
// codeExpr.Blocks.PruneUnreachableBlocks(); // This is needed for VCVariety.BlockNested, and is otherwise just an optimization
- vcgen.ComputePredecessors(codeExpr.Blocks);
+ ResetPredecessors(codeExpr.Blocks);
vcgen.AddBlocksBetween(codeExpr.Blocks);
Hashtable/*TransferCmd->ReturnCmd*/ gotoCmdOrigins = vcgen.ConvertBlocks2PassiveCmd(codeExpr.Blocks, new IdentifierExprSeq(), new ModelViewInfo(codeExpr));
VCExpr startCorrect = VCGen.LetVC(
@@ -2084,7 +2084,7 @@ namespace VC {
}
#endregion
- ComputePredecessors(impl.Blocks);
+ ResetPredecessors(impl.Blocks);
#region Convert program CFG into a DAG