Package soot

Examples of soot.UnitBox


      Unit input = m_inputUnits.get(i);
      Unit output = m_outputUnits.get(i);
      List<UnitBox> input_boxes = input.getUnitBoxes();
      List<UnitBox> output_boxes = output.getUnitBoxes();
      for(int j = 0; j < input_boxes.size(); ++j){
        UnitBox input_box = input_boxes.get(j);
        UnitBox output_box = output_boxes.get(j);

        Unit input_target = input_box.getUnit();
        //using the addIf method makes targets null
        if(input_target == null)
          continue;
       
        int target_i = findTarget(input_target);
        output_box.setUnit(m_outputUnits.get(target_i));
      }
    }
  }
View Full Code Here


  public Unit unitClone(Unit input){
    Unit output = (Unit) input.clone();
    List<UnitBox> input_boxes = input.getUnitBoxes();
    List<UnitBox> output_boxes = output.getUnitBoxes();
    for(int i = 0; i < input_boxes.size(); ++i){
      UnitBox input_box = input_boxes.get(i);
      UnitBox output_box = output_boxes.get(i);
      try {
        int j = findTarget(input_box.getUnit());
        output_box.setUnit(m_inputUnits.get(j));
      } catch(Exception ex){
        ex.printStackTrace();
        continue;
      }
    }
View Full Code Here

    boxes.add(unit_box);
    m_labelToUnitBoxMap.put(label, boxes);
  }

  public void addIf(Value condition, String target_label) {
    UnitBox target = m_jimple.newStmtBox(null);
    addLabelToUnitBox(target_label, target);
    Unit u = m_jimple.newIfStmt(condition, target);
    add(u);
  }
View Full Code Here

    Unit u = m_jimple.newIfStmt(condition, target);
    add(u);
  }

  public void addGoto(String target_label){
    UnitBox target = m_jimple.newStmtBox(null);
    addLabelToUnitBox(target_label, target);
    Unit u = m_jimple.newGotoStmt(target);
    add(u);
  }
View Full Code Here

TOP

Related Classes of soot.UnitBox

Copyright © 2018 www.massapicom. 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.