<div dir="ltr">Thanks, for your help, I actually used the second way but now I have problem with line numbers. I used SourcLnPos tag to get the source line number of units but with this code this tag is empty. Do you know why this tag is empty?<div><br></div><div>public static void main(String[] args) {<br></div><div>Transform t = new Transform(&quot;jtp.myTransform&quot;, new BodyTransformer() {</div><div><div>       protected void internalTransform(Body body, String phase,Map options) {</div><div>             MyAnalyzer myAnalysis = newMyAnalyzer(newEnhancedUnitGraph(body), body, sourceCode, sc, classPath, className);<br></div><div><span style="white-space:pre">        </span><br></div><div><span class="" style="white-space:pre">                </span>}</div><div><span style="white-space:pre">      </span>});</div><div>PackManager.v().getPack(&quot;jtp&quot;).add(t);</div><div>Options.v().allow_phantom_refs();</div><div>Options.v().set_full_resolver(false);</div><div>Options.v().set_keep_line_number(true);</div><div>Options.v().no_bodies_for_excluded();</div><div>Options.v().app();</div><div>Options.v().setPhaseOption(&quot;jb&quot;, &quot;use-original-names:true&quot;);</div><div>soot.Main.main(args);</div></div><div><br><div><br></div><div>Thanks for your help</div><div><br></div><div><br></div></div></div>