ificmpne to ificmpeq

This commit is contained in:
Adam
2016-01-30 11:31:52 -05:00
parent d24411e63f
commit f96f9b6c02

View File

@@ -24,6 +24,10 @@ public class IfICmpNe extends If
if (o instanceof Integer && (int) o == 0) if (o instanceof Integer && (int) o == 0)
return true; return true;
} }
else if (s.getPushed().getInstruction() instanceof IfICmpEq)
{
return true;
}
return false; return false;
} }
@@ -43,6 +47,10 @@ public class IfICmpNe extends If
if (isZero(s1) || isZero(s2)) if (isZero(s1) || isZero(s2))
return true; return true;
} }
else if (otherIc.getInstruction() instanceof IfICmpEq)
{
return true;
}
return false; return false;
} }