congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
IfStmt.getTarget
Code IndexAdd Tabnine to your IDE (free)

How to use
getTarget
method
in
soot.jimple.IfStmt

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

origin: Sable/soot

private boolean sameTarget(Stmt s1, Stmt s2) {
 IfStmt is1 = (IfStmt) s1;
 IfStmt is2 = (IfStmt) s2;
 if (is1.getTarget().equals(is2.getTarget())) {
  return true;
 }
 return false;
}
origin: Sable/soot

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

public IfStmt newIfStmt(IfStmt s) {
 return new GIfStmt(s.getCondition(), s.getTarget());
}
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

@Override
public void caseIfStmt(IfStmt stmt) {
 Stmt target = stmt.getTarget();
 exprV.setOrigStmt(stmt);
 exprV.setTargetForOffset(target);
 stmt.getCondition().apply(exprV);
}
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

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

public void caseIfStmt(IfStmt stmt) {
 String varName = printValueAssignment(stmt.getCondition(), "condition");
 Unit target = stmt.getTarget();
 vtp.suggestVariableName("target");
 String targetName = vtp.getLastAssignedVarName();
 p.println("Unit " + targetName + "=" + nameOfJumpTarget(target) + ";");
 printStmt(stmt, varName, targetName);
}
origin: Sable/soot

Unit target = ((IfStmt) os).getTarget(), newTgt = null;
origin: Sable/soot

AugmentedStmt succIf = asg.get_AugStmt(ifs.getTarget()), succElse = (AugmentedStmt) as.bsuccs.get(0);
origin: Sable/soot

target = ((IfStmt) stmt).getTarget();
origin: Sable/soot

Unit t = ifstmt.getTarget();
origin: Sable/soot

Stmt targetUnit = ifstmt.getTarget();
Block targetBlock = (Block) succs.get(0);
Block nextBlock = (Block) succs.get(1);
origin: Sable/soot

Stmt newStmt = Jimple.v().newGotoStmt(ifs.getTarget());
units.insertAfter(newStmt, stmt);
numTrue++;
origin: Sable/soot

IfStmt ifs = (IfStmt) src;
if (ifs.getTarget() == oldDst) {
 ifs.setTarget(newDst);
origin: Sable/soot

units.insertAfter(jgs, u);
JGotoStmt jumper = new JGotoStmt((Unit) ifs.getTarget());
units.insertAfter(jumper, jgs);
ifs.setTarget((Unit) jumper);
origin: Sable/soot

if (isTarget(((IfStmt) stmtSeq[0]).getTarget(), s) && sameLocal(stmtSeq[2], s)) {
 stmtSeq[pos] = s;
 return true;
origin: Sable/soot

public void piHandleIfStmt(Local local, IfStmt u) {
 Unit target = u.getTarget();
origin: Sable/soot

newstmt = Jimple.v().newGotoStmt(is.getTarget());
origin: Sable/soot

if (cycle_body.contains(asg.get_AugStmt(condition.getTarget())) == false) {
 condition.setCondition(ConditionFlipper.flip((ConditionExpr) condition.getCondition()));
soot.jimpleIfStmtgetTarget

Popular methods of IfStmt

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

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • 21 Best IntelliJ Plugins
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