1 19 20 package soot.jimple.toolkits.pointer; 21 import soot.*; 22 23 25 public class DumbPointerAnalysis implements PointsToAnalysis { 26 public DumbPointerAnalysis( Singletons.Global g ) {} 27 public static DumbPointerAnalysis v() { return G.v().soot_jimple_toolkits_pointer_DumbPointerAnalysis(); } 28 29 30 public PointsToSet reachingObjects( Local l ) { 31 Type t = l.getType(); 32 if( t instanceof RefType ) return FullObjectSet.v((RefType) t); 33 return FullObjectSet.v(); 34 } 35 36 37 public PointsToSet reachingObjects( Context c, Local l ) { 38 return reachingObjects(null, l); 39 } 40 41 42 public PointsToSet reachingObjects( SootField f ) { 43 Type t = f.getType(); 44 if( t instanceof RefType ) return FullObjectSet.v((RefType) t); 45 return FullObjectSet.v(); 46 } 47 48 50 public PointsToSet reachingObjects( PointsToSet s, SootField f ) { 51 return reachingObjects(f); 52 } 53 54 56 public PointsToSet reachingObjects( Local l, SootField f ) { 57 return reachingObjects(f); 58 } 59 60 62 public PointsToSet reachingObjects( Context c, Local l, SootField f ) { 63 return reachingObjects(f); 64 } 65 66 68 public PointsToSet reachingObjectsOfArrayElement( PointsToSet s ) { 69 return FullObjectSet.v(); 70 } 71 } 72 73 | Popular Tags |