Examples of GotoStmt


Examples of soot.jimple.GotoStmt

  UnitBox getTarget(Unit input){
    if(input instanceof IfStmt){
      IfStmt if_stmt = (IfStmt) input;
      return if_stmt.getTargetBox();
    } else if(input instanceof GotoStmt){
      GotoStmt goto_stmt = (GotoStmt) input;
      return goto_stmt.getTargetBox();
    }
    return null;
  }
View Full Code Here

Examples of soot.jimple.GotoStmt

  private boolean unitEquals(Unit lhs, Unit rhs){
    if(lhs.equals(rhs))
      return true;
    if(lhs instanceof GotoStmt && rhs instanceof GotoStmt){
      GotoStmt lhs_goto = (GotoStmt) lhs;
      GotoStmt rhs_goto = (GotoStmt) rhs;
      if(lhs_goto.getTarget().equals(rhs_goto.getTarget()))
        return true;
    }
    return false;
  }
View Full Code Here

Examples of soot.jimple.GotoStmt

      Unit curr = iter.next();
      if(curr instanceof IfStmt){
        IfStmt ifstmt = (IfStmt) curr;
        m_labels.add(ifstmt.getTarget());
      } else if(curr instanceof GotoStmt){
        GotoStmt gotostmt = (GotoStmt) curr;
        m_labels.add(gotostmt.getTarget());
      } else if(curr instanceof LookupSwitchStmt){
        LookupSwitchStmt lookup = (LookupSwitchStmt) curr;
        addTargets(lookup.getTargets());
        m_labels.add(lookup.getDefaultTarget());
      } else if(curr instanceof TableSwitchStmt){
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.