Working on all tests again, hitting more ifconds not lining up

This commit is contained in:
Adam
2016-02-05 15:54:33 -05:00
parent 54b83ebda5
commit e2afbd3b98
3 changed files with 12 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ public class IfACmpNe extends If
if (super.isSame(thisIc, otherIc))
return true;
if (otherIc.getInstruction() instanceof IfNonNull)
if (otherIc.getInstruction() instanceof IfNonNull || otherIc.getInstruction() instanceof IfNull)
{
StackContext s1 = thisIc.getPops().get(0),
s2 = thisIc.getPops().get(1);
@@ -44,7 +44,7 @@ public class IfACmpNe extends If
@Override
public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other)
{
if (other.getInstruction() instanceof IfACmpEq)
if (other.getInstruction() instanceof IfACmpEq || other.getInstruction() instanceof IfNull)
{
super.mapOtherBranch(mapping, ctx, other);
}

View File

@@ -38,8 +38,6 @@ public class ParallellMappingExecutor
if (e.frames.isEmpty())
return false;
assert !e2.frames.isEmpty();
Frame f1 = e.frames.get(0),
f2 = f1.other;