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 | |
parent | 858d43ff93a0cc9bc30ce55906499fb9157124c9 (diff) |
More refactoring towards replacing PureCollections.Sequence with List
Diffstat (limited to 'Source/Doomed')
-rw-r--r-- | Source/Doomed/DoomCheck.cs | 2 | ||||
-rw-r--r-- | Source/Doomed/DoomedStrategy.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Doomed/DoomCheck.cs b/Source/Doomed/DoomCheck.cs index 6b9f91cf..83de03ff 100644 --- a/Source/Doomed/DoomCheck.cs +++ b/Source/Doomed/DoomCheck.cs @@ -375,7 +375,7 @@ void ObjectInvariant() }
} else {
Contract.Assert( gotocmd.labelTargets != null);
- List<VCExpr> SuccCorrectVars = new List<VCExpr>(gotocmd.labelTargets.Length);
+ List<VCExpr> SuccCorrectVars = new List<VCExpr>(gotocmd.labelTargets.Count);
foreach (Block successor in gotocmd.labelTargets) {
Contract.Assert(successor != null);
int ac;
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)
{
|