diff options
author | Ally Donaldson <unknown> | 2013-07-22 18:05:27 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2013-07-22 18:05:27 +0100 |
commit | afaeb081ffcc1c258db6eb7c34ba0b04c493919a (patch) | |
tree | d0b07c3e3082f323e17523a3e695dc18ee61062d /Source/Doomed/DoomedStrategy.cs | |
parent | 858d43ff93a0cc9bc30ce55906499fb9157124c9 (diff) |
More refactoring towards replacing PureCollections.Sequence with List
Diffstat (limited to 'Source/Doomed/DoomedStrategy.cs')
-rw-r--r-- | Source/Doomed/DoomedStrategy.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Doomed/DoomedStrategy.cs b/Source/Doomed/DoomedStrategy.cs index eb5716bb..9e280873 100644 --- a/Source/Doomed/DoomedStrategy.cs +++ b/Source/Doomed/DoomedStrategy.cs @@ -111,14 +111,14 @@ namespace VC private List<int> __leavespp = new List<int>();
protected void m_GatherInfo(Block b, int branchingdepth, int leavespp, int plen)
{
- if (b.Predecessors.Length > 1) branchingdepth--;
+ if (b.Predecessors.Count > 1) branchingdepth--;
GotoCmd gc = b.TransferCmd as GotoCmd;
if (__DEBUG_minelements.Contains(b)) leavespp++;
plen++;
- if (gc != null && gc.labelTargets.Length>0)
+ if (gc != null && gc.labelTargets.Count>0)
{
- if (gc.labelTargets.Length > 1) branchingdepth++;
+ if (gc.labelTargets.Count > 1) branchingdepth++;
m_MaxBranchingDepth = (branchingdepth > m_MaxBranchingDepth) ? branchingdepth : m_MaxBranchingDepth;
foreach (Block s in gc.labelTargets)
{
|