X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=blobdiff_plain;f=Robust%2Fsrc%2FAnalysis%2FSSJava%2FBuildLattice.java;fp=Robust%2Fsrc%2FAnalysis%2FSSJava%2FBuildLattice.java;h=754db0887ee07c6c214dbf7cc2c84c3c845b2b49;hp=f8b5e14ab09b3c4c911d1043c1381d0cb4311f65;hb=5e5c10a2592a9acd282a1ae27bdf7468beb12e90;hpb=7becd1f25e9936c0aabe197eadff78ebb73ba3e9 diff --git a/Robust/src/Analysis/SSJava/BuildLattice.java b/Robust/src/Analysis/SSJava/BuildLattice.java index f8b5e14a..754db088 100644 --- a/Robust/src/Analysis/SSJava/BuildLattice.java +++ b/Robust/src/Analysis/SSJava/BuildLattice.java @@ -64,17 +64,20 @@ public class BuildLattice { // ///////////////////////////////////////////////////////////////////////////////////// // lattice generation for the native approach - BasisSet naiveBasisSet = naiveGraph.computeBasisSet(nodeSetWithCompositeLocation); - // debug_print(inputGraph); - Family naiveFamily = generateFamily(naiveBasisSet); - Map, Set>> naive_mapImSucc = - coveringGraph(naiveBasisSet, naiveFamily); + if (infer.state.SSJAVA_INFER_NAIVE_WRITEDOTS) { + BasisSet naiveBasisSet = naiveGraph.computeBasisSet(nodeSetWithCompositeLocation); + + Family naiveFamily = generateFamily(naiveBasisSet); + Map, Set>> naive_mapImSucc = + coveringGraph(naiveBasisSet, naiveFamily); + + SSJavaLattice naive_lattice = + buildLattice(desc, naiveBasisSet, naiveGraph, null, naive_mapImSucc); + LocationInference.numLocationsNaive += naive_lattice.getKeySet().size(); + infer.addNaiveLattice(desc, naive_lattice); + } - SSJavaLattice naive_lattice = - buildLattice(desc, naiveBasisSet, naiveGraph, null, naive_mapImSucc); - LocationInference.numLocationsNaive += naive_lattice.getKeySet().size(); - infer.addNaiveLattice(desc, naive_lattice); // ///////////////////////////////////////////////////////////////////////////////////// // lattice generation for the proposed approach