Closed gunjanaggarwal closed 9 years ago
Hi,
There's currently some on-going research that we're doing that should let you do that. Please stay tuned.
I'll post back a reply to this post once it's ready to ship.
cheers, Karim
Hi Karim,
Have you recently added the above functionality? If not, have you dropped the idea of adding this functionality?
Thanks, Gunjan
Hi Gunjan,
We haven't dropped that idea. It's still part of on-going work right now. I'll post back here on this thread once the work is ready to be released (sometime later this year).
Ok. Thanks for your reply.
Hi, I use WALA to generate forward and backward slices. I have been trying to use averroes to reduce the size of call-graph. So I started with a very simple-example:
In the above example, I set line 13
String s1 = br.readLine();
as Source and uses WALA to generate forward slice. When I don't use averroes generated placeholder files I get following lines in forward slice:13, 14, 16, 19, 22 and 25
. But when I use averroes generated library files I get lines13 and 14
in forward slice, which is not correct.So to understand this behavior a bit more I looked at the averroes placeholder libraries mainly java.io.BufferedReader and java.lang.Integer
In java.lang.integer, following is the content of parseInt method :
So it seems like the return value of parseInt method doesn't depend on method argument
paramString
, which is probably why forward slice ends at line 14. Is this the correct behavior?In java.io.BufferedReader, it seems like method readLine doesn't return a constant value:
Can we somehow get the same behavior as readLine() for other methods like parseInt method, so that return value is not a constant? Or is there a WALA flag, that we can set so that the value returned by parseInt method gets include in forward slice?
Following is the link to Zip file, which contains application jar and some of the libraries generated by averroes: https://www.dropbox.com/s/lo7mc03rzttm4qx/Example.zip?dl=0