diff options
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)
{
|