summaryrefslogtreecommitdiff
path: root/Source/Core/InterProceduralReachabilityGraph.cs
diff options
context:
space:
mode:
authorGravatar Ally Donaldson <unknown>2013-07-22 18:05:27 +0100
committerGravatar Ally Donaldson <unknown>2013-07-22 18:05:27 +0100
commitafaeb081ffcc1c258db6eb7c34ba0b04c493919a (patch)
treed0b07c3e3082f323e17523a3e695dc18ee61062d /Source/Core/InterProceduralReachabilityGraph.cs
parent858d43ff93a0cc9bc30ce55906499fb9157124c9 (diff)
More refactoring towards replacing PureCollections.Sequence with List
Diffstat (limited to 'Source/Core/InterProceduralReachabilityGraph.cs')
-rw-r--r--Source/Core/InterProceduralReachabilityGraph.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InterProceduralReachabilityGraph.cs b/Source/Core/InterProceduralReachabilityGraph.cs
index 0c026757..e103c628 100644
--- a/Source/Core/InterProceduralReachabilityGraph.cs
+++ b/Source/Core/InterProceduralReachabilityGraph.cs
@@ -71,13 +71,13 @@ namespace Microsoft.Boogie
#region Add call and return edges
foreach (var n in nodes)
{
- if (n.Cmds.Length == 1 && n.Cmds[0] is CallCmd)
+ if (n.Cmds.Count == 1 && n.Cmds[0] is CallCmd)
{
string proc = ((CallCmd)n.Cmds[0]).callee;
GotoCmd gotoCmd = n.TransferCmd as GotoCmd;
Debug.Assert(gotoCmd != null);
- for (int i = 0; i < gotoCmd.labelTargets.Length; i++)
+ for (int i = 0; i < gotoCmd.labelTargets.Count; i++)
{
(newProcedureExitNodes[proc].TransferCmd as GotoCmd).labelTargets.Add(gotoCmd.labelTargets[i]);
(newProcedureExitNodes[proc].TransferCmd as GotoCmd).labelNames.Add(gotoCmd.labelNames[i]);
@@ -171,7 +171,7 @@ namespace Microsoft.Boogie
}
Debug.Assert(prev != null);
if (b.TransferCmd is ReturnCmd || (b.TransferCmd is GotoCmd &&
- ((GotoCmd)b.TransferCmd).labelTargets.Length == 0))
+ ((GotoCmd)b.TransferCmd).labelTargets.Count == 0))
{
prev.TransferCmd = new GotoCmd(Token.NoToken, new StringSeq { exitLabel }, new BlockSeq { newExit });
}