[Soot-list] How compare 2 Stmt objects for equality?
John Dean
jdean4 at kc.rr.com
Wed Jul 11 17:14:10 EDT 2012
All,
1. Can someone tell me the best way to compare two Stmt objects for
equality?
I looked for an equals method for Stmt and also for some of Stmt's
implementing classes, and all I see in the API is the standard equals method
from the Object class (and testing for reference equality doesn't help me).
I also looked for get methods so I could compare fields within a Stmt, and
that doesn't appear to help.
2. To test for Stmt equality, I even looked at the Stmt class's toString
method, but I'm having a hard time understanding it. What is its UnitPrinter
parameter for? Why is the return type void?
Thanks,
John
More information about the Soot-list
mailing list