Package jadx.core.dex.regions.conditions

Examples of jadx.core.dex.regions.conditions.IfCondition.second()


    IfCondition b = makeSimpleCondition();
    IfCondition c = merge(Mode.OR, a, b);

    assertEquals(c.getMode(), Mode.OR);
    assertEquals(c.first(), a);
    assertEquals(c.second(), b);
  }

  @Test
  public void testSimplifyNot() {
    // !(!a) => a
View Full Code Here


    IfCondition c = not(merge(Mode.OR, not(a), not(b)));
    IfCondition simp = simplify(c);

    assertEquals(simp.getMode(), Mode.AND);
    assertEquals(simp.first(), a);
    assertEquals(simp.second(), b);
  }

  @Test
  public void testSimplify2() {
    // '(!a || !b) && !c' => '!((a && b) || c)'
View Full Code Here

    IfCondition f = simp.first();
    assertEquals(f.getMode(), Mode.OR);
    assertEquals(f.first().getMode(), Mode.AND);
    assertEquals(f.first().first(), a);
    assertEquals(f.first().second(), b);
    assertEquals(f.second(), c);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.