@@ -3,7 +3,7 @@ import python
33
44private import semmle.python.objects.TObject
55private import semmle.python.objects.ObjectInternal
6- private import semmle.python.pointsto.PointsTo2
6+ private import semmle.python.pointsto.PointsTo
77private import semmle.python.pointsto.MRO2
88private import semmle.python.pointsto.PointsToContext
99private import semmle.python.types.Builtins
@@ -77,7 +77,7 @@ class SpecificInstanceInternal extends TSpecificInstance, ObjectInternal {
7777 }
7878
7979 override predicate attribute ( string name , ObjectInternal value , CfgOrigin origin ) {
80- PointsTo2 :: attributeRequired ( this , name ) and
80+ PointsToInternal :: attributeRequired ( this , name ) and
8181 instance_getattr ( this , Types:: getMro ( this .getClass ( ) ) , name , value , origin )
8282 }
8383
@@ -90,7 +90,7 @@ class SpecificInstanceInternal extends TSpecificInstance, ObjectInternal {
9090 override predicate binds ( ObjectInternal instance , string name , ObjectInternal descriptor ) {
9191 this = instance and descriptor .isDescriptor ( ) = true and
9292 exists ( AttrNode attr |
93- PointsTo2 :: pointsTo ( attr .getObject ( name ) , _, instance , _) and
93+ PointsToInternal :: pointsTo ( attr .getObject ( name ) , _, instance , _) and
9494 this .getClass ( ) .attribute ( name , descriptor , _)
9595 )
9696 }
@@ -186,7 +186,7 @@ class SelfInstanceInternal extends TSelfInstance, ObjectInternal {
186186 }
187187
188188 override predicate attribute ( string name , ObjectInternal value , CfgOrigin origin ) {
189- PointsTo2 :: attributeRequired ( this , name ) and
189+ PointsToInternal :: attributeRequired ( this , name ) and
190190 instance_getattr ( this , Types:: getMro ( this .getClass ( ) ) , name , value , origin )
191191 }
192192
@@ -200,7 +200,7 @@ class SelfInstanceInternal extends TSelfInstance, ObjectInternal {
200200 descriptor .isDescriptor ( ) = true and
201201 this = instance and
202202 exists ( AttrNode attr |
203- PointsTo2 :: pointsTo ( attr .getObject ( name ) , _, this , _) and
203+ PointsToInternal :: pointsTo ( attr .getObject ( name ) , _, this , _) and
204204 this .getClass ( ) .attribute ( name , descriptor , _)
205205 )
206206 }
@@ -277,7 +277,7 @@ class UnknownInstanceInternal extends TUnknownInstance, ObjectInternal {
277277 }
278278
279279 override predicate attribute ( string name , ObjectInternal value , CfgOrigin origin ) {
280- PointsTo2 :: attributeRequired ( this , name ) and
280+ PointsToInternal :: attributeRequired ( this , name ) and
281281 instance_getattr ( this , Types:: getMro ( this .getClass ( ) ) , name , value , origin )
282282 }
283283
@@ -291,7 +291,7 @@ class UnknownInstanceInternal extends TUnknownInstance, ObjectInternal {
291291 descriptor .isDescriptor ( ) = true and
292292 this = instance and
293293 exists ( AttrNode attr |
294- PointsTo2 :: pointsTo ( attr .getObject ( name ) , _, this , _) and
294+ PointsToInternal :: pointsTo ( attr .getObject ( name ) , _, this , _) and
295295 this .getClass ( ) .attribute ( name , descriptor , _)
296296 )
297297 }
@@ -355,7 +355,7 @@ class SuperInstance extends TSuperInstance, ObjectInternal {
355355 override predicate descriptorGet ( ObjectInternal instance , ObjectInternal value , CfgOrigin origin ) { none ( ) }
356356
357357 override predicate attribute ( string name , ObjectInternal value , CfgOrigin origin ) {
358- PointsTo2 :: attributeRequired ( this , name ) and
358+ PointsToInternal :: attributeRequired ( this , name ) and
359359 instance_getattr ( this .getSelf ( ) , this .getMro ( ) , name , value , origin )
360360 }
361361
@@ -366,7 +366,7 @@ class SuperInstance extends TSuperInstance, ObjectInternal {
366366 override predicate binds ( ObjectInternal instance , string name , ObjectInternal descriptor ) {
367367 descriptor .isDescriptor ( ) = true and
368368 exists ( AttrNode attr |
369- PointsTo2 :: pointsTo ( attr .getObject ( name ) , _, this , _) and
369+ PointsToInternal :: pointsTo ( attr .getObject ( name ) , _, this , _) and
370370 instance = this .getSelf ( ) and
371371 Types:: declaredAttribute ( this .getMro ( ) .findDeclaringClass ( name ) , name , descriptor , _)
372372 )
0 commit comments