Hi, I want to enable soot soot optimization for dead code elimination, so I insert some code into org.clyze.doop.soot.Main.produceFacts(), But after running, it is found that the generated fact has not been optimized, and dead code still exists
here is my test case
public class A {
public static String source() {
return new String();
}
public static void sink(String var) {
;
}
public static void main(String[] args) throws Exception {
String str = source();
String bar;
int x = 123;
if (x==456){
bar = str;
}else{
bar = "XXX";
}
sink(bar);
}
}
if I directly run soot with cmd soot -f S -pp -cp . A -optimize, the shimple which soot generated is optimized:
Hi, I want to enable soot soot optimization for dead code elimination, so I insert some code into
org.clyze.doop.soot.Main.produceFacts()
, But after running, it is found that the generated fact has not been optimized, and dead code still existshere is my test case
if I directly run soot with cmd
soot -f S -pp -cp . A -optimize
, the shimple which soot generated is optimized:I don't why those pack setting don't work in doop