congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IfStmt.setTarget
Code IndexAdd Tabnine to your IDE (free)

How to use
setTarget
method
in
soot.jimple.IfStmt

Best Java code snippets using soot.jimple.IfStmt.setTarget (Showing top 20 results out of 315)

origin: Sable/soot

public void caseIfStmt(IfStmt s) {
 IfStmt newStmt = (IfStmt) (oldToNew.get(s));
 newStmt.setTarget(oldToNew.get(newStmt.getTarget()));
}
origin: Sable/soot

private void transformBody(Body b, Stmt next) {
 // change target of stmts 0 and 1 to target of stmt 5
 // remove stmts 2, 3, 4, 5
 Stmt newTarget = null;
 Stmt oldTarget = null;
 if (sameGoto) {
  newTarget = ((IfStmt) stmtSeq[5]).getTarget();
 } else {
  newTarget = next;
  oldTarget = ((IfStmt) stmtSeq[5]).getTarget();
 }
 ((IfStmt) stmtSeq[0]).setTarget(newTarget);
 ((IfStmt) stmtSeq[1]).setTarget(newTarget);
 for (int i = 2; i <= 5; i++) {
  b.getUnits().remove(stmtSeq[i]);
 }
 if (!sameGoto) {
  b.getUnits().insertAfter(Jimple.v().newGotoStmt(oldTarget), stmtSeq[1]);
 }
}
origin: Sable/soot

 ((IfStmt) s).setTarget(b.succ.elementAt(1).getHeadJStmt());
} else {
 ((IfStmt) s).setTarget(b.succ.firstElement().getHeadJStmt());
origin: Sable/soot

@Override
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {
 for (Iterator<Unit> unitIt = b.getUnits().snapshotIterator(); unitIt.hasNext();) {
  Unit u = unitIt.next();
  if (u instanceof GotoStmt) {
   GotoStmt stmt = (GotoStmt) u;
   while (stmt.getTarget() instanceof GotoStmt) {
    GotoStmt nextTarget = (GotoStmt) stmt.getTarget();
    stmt.setTarget(nextTarget.getTarget());
   }
  } else if (u instanceof IfStmt) {
   IfStmt stmt = (IfStmt) u;
   while (stmt.getTarget() instanceof GotoStmt) {
    GotoStmt nextTarget = (GotoStmt) stmt.getTarget();
    stmt.setTarget(nextTarget.getTarget());
   }
  }
 }
}
origin: Sable/soot

} else if (loopTail instanceof IfStmt) {
 if (((IfStmt) loopTail).getTarget() == condition.getHead()) {
  ((IfStmt) loopTail).setTarget(copiedHead);
 } else {
  insertGotoAfter(loopTail, copiedHead);
origin: Sable/soot

 ((IfStmt) ns).setTarget(newTgt);
} else {
 ((IfStmt) ns).setTarget(target);
origin: Sable/soot

  newTarget = stmt;
 ((IfStmt) stmt).setTarget(newTarget);
 updateCounters(2, true);
} else if (target instanceof IfStmt) {
origin: Sable/soot

Unit newTarget = (Unit) t.clone();
body.getUnits().addLast(newTarget);
ifstmt.setTarget(newTarget);
origin: Sable/soot

ifstmt.setTarget(u);
origin: Sable/soot

units.insertBefore(Jimple.v().newAssignStmt(Jimple.v().newStaticFieldRef(classCacher.makeRef()), l), target);
ifStmt.setTarget(target);
return l;
origin: Sable/soot

((IfStmt) insertee).setTarget(s);
origin: Sable/soot

ifs.setTarget(newDst);
origin: Sable/soot

ifs.setTarget((Unit) jumper);
origin: Sable/soot

((IfStmt) insertee).setTarget(toInline);
origin: Sable/soot

u.setTarget(addt);
origin: ibinti/bugvm

else if (loopTail instanceof IfStmt) {
 if (((IfStmt)loopTail).getTarget() == condition.getHead())
  ((IfStmt)loopTail).setTarget(copiedHead);
 else
  insertGotoAfter(loopTail, copiedHead);
origin: com.bugvm/bugvm-soot

else if (loopTail instanceof IfStmt) {
 if (((IfStmt)loopTail).getTarget() == condition.getHead())
  ((IfStmt)loopTail).setTarget(copiedHead);
 else
  insertGotoAfter(loopTail, copiedHead);
origin: ibinti/bugvm

((IfStmt)s).setTarget(b.succ.elementAt(1).getHeadJStmt());
((IfStmt)s).setTarget(b.succ.firstElement().getHeadJStmt());
origin: ibinti/bugvm

if (newTarget == null)
  newTarget = stmt;
((IfStmt)stmt).setTarget(newTarget);
updateCounters(2, true);
origin: com.bugvm/bugvm-soot

if (newTarget == null)
  newTarget = stmt;
((IfStmt)stmt).setTarget(newTarget);
updateCounters(2, true);
soot.jimpleIfStmtsetTarget

Popular methods of IfStmt

  • getTarget
  • getCondition
  • addAllTagsOf
  • getConditionBox
  • getTargetBox
  • setCondition
    condition must be soot.jimple.ConditionExpr

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFileChooser (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now