[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question:
Hi,
For the code given below, can somebody enlighten me as to what is the equivalent code in soot 2.0?
The code snippet worked in a very old version of Soot. I know things have changed since then, but now it seems
that one needs to have a SootResolver, JimpleInputStream, JimpleAST, and a whole lot of other classes
to get the job done.
public static JimpleBody getJimpleBody(SootMethod sm) {
JimpleBody result;
if (sm.isBodyStored(jimple)) {
result = (JimpleBody) sm.getBody(jimple);
} else {
result = new JimpleBody(sm, sm.getBody(ClassFile.v()), 0);
sm.storeBody(jimple, result);
}
return result;
}
Also, it would be useful if the Soot developers speand some time writing some informative and useful
javadoc-style documentation. Without such documentation Soot is a paradise on Mars.
waiting for reply,
--
Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad