Codota Logo
IfStmt.setTarget
Code IndexAdd Codota 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)

  • Common ways to obtain IfStmt
private void myMethod () {
IfStmt i =
  • Codota IconValue condition;Jimple.v().newIfStmt(condition, new FutureStmt())
  • Codota IconValue condition;Unit target;new JIfStmt(condition, target)
  • Codota IconValue condition;UnitBox target;new JIfStmt(condition, target)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Menu (java.awt)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now