class LiveVarsTagger extends BodyTransformer {

  public LiveVarsTagger(Singletons.Global g) {
  }

  public static LiveVarsTagger v() {
    return G.v().soot_jimple_toolkits_annotation_liveness_LiveVarsTagger();
  }

  protected void internalTransform(Body b, String phaseName, Map options) {<FILL_FUNCTION_BODY>}
}


    LiveLocals sll = new SimpleLiveLocals(ExceptionalUnitGraphFactory.createExceptionalUnitGraph(b));

    Iterator it = b.getUnits().iterator();
    while (it.hasNext()) {
      Stmt s = (Stmt) it.next();
      // System.out.println("stmt: "+s);
      Iterator liveLocalsIt = sll.getLiveLocalsAfter(s).iterator();
      while (liveLocalsIt.hasNext()) {
        Value v = (Value) liveLocalsIt.next();
        s.addTag(new StringTag("Live Variable: " + v, "Live Variable"));

        Iterator usesIt = s.getUseBoxes().iterator();
        while (usesIt.hasNext()) {
          ValueBox use = (ValueBox) usesIt.next();
          if (use.getValue().equals(v)) {
            use.addTag(new ColorTag(ColorTag.GREEN, "Live Variable"));
          }
        }
        Iterator defsIt = s.getDefBoxes().iterator();
        while (defsIt.hasNext()) {
          ValueBox def = (ValueBox) defsIt.next();
          if (def.getValue().equals(v)) {
            def.addTag(new ColorTag(ColorTag.GREEN, "Live Variable"));
          }
        }
      }
    }
  
<methods>public non-sealed void <init>() ,public final void transform(soot.Body, java.lang.String, Map<java.lang.String,java.lang.String>) ,public final void transform(soot.Body, java.lang.String) ,public final void transform(soot.Body) <variables>private static final Map<java.lang.String,java.lang.String> enabledOnlyMap