diff options
author | qadeer <qadeer@microsoft.com> | 2011-08-20 22:04:10 -0700 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2011-08-20 22:04:10 -0700 |
commit | d8b239c0c3bd5d33f683eafb735aef41dac28760 (patch) | |
tree | ef4ec99f794ae60458af330f57e5ba61dfda24f4 /Source/VCGeneration/ConditionGeneration.cs | |
parent | 54c75d7af7051fdaebcb4140560ed9a7f5d4060c (diff) |
added code to handle irreducible graphs
Diffstat (limited to 'Source/VCGeneration/ConditionGeneration.cs')
-rw-r--r-- | Source/VCGeneration/ConditionGeneration.cs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/Source/VCGeneration/ConditionGeneration.cs b/Source/VCGeneration/ConditionGeneration.cs index 8f8f145e..d654b635 100644 --- a/Source/VCGeneration/ConditionGeneration.cs +++ b/Source/VCGeneration/ConditionGeneration.cs @@ -984,29 +984,7 @@ namespace VC { #endregion
}
- /// <summary>
- /// Helperfunction to restore the predecessor relations after loop unrolling
- /// </summary>
- protected void ComputePredecessors(List<Block>/*!>!*/ blocks) {
- Contract.Requires(cce.NonNullElements(blocks));
- #region Compute and store the Predecessor Relation on the blocks
- // This code just here to try things out.
- // Compute the predecessor relation for each block
- // Store it in the Predecessors field within each block
- foreach (Block b in blocks) {
- GotoCmd gtc = b.TransferCmd as GotoCmd;
- if (gtc != null) {
- Contract.Assume(gtc.labelTargets != null);
- foreach (Block dest in gtc.labelTargets) {
- Contract.Assert(dest != null);
- dest.Predecessors.Add(b);
- }
- }
- }
- #endregion Compute and store the Predecessor Relation on the blocks
- }
-
- protected static void ResetPredecessors(List<Block/*!>!*/> blocks) {
+ protected static void ResetPredecessors(List<Block> blocks) {
Contract.Requires(blocks != null);
foreach (Block b in blocks) {
Contract.Assert(b != null);
|