@@ -854,14 +854,9 @@ private module MethodCalls {
854854 private predicate directCall_join (
855855 CallNode call , string functionName , Class cls , AttrRead attr , Node self
856856 ) {
857- (
858- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
859- attr .accesses ( classTracker ( cls ) , functionName )
860- or
861- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
862- attr .accesses ( classInstanceTracker ( cls ) , functionName )
863- ) and
864- attr .accesses ( self , functionName )
857+ call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
858+ attr .accesses ( self , functionName ) and
859+ self in [ classTracker ( cls ) , classInstanceTracker ( cls ) ]
865860 }
866861
867862 /**
@@ -886,14 +881,9 @@ private module MethodCalls {
886881 private predicate callWithinMethodImplicitSelfOrCls_join (
887882 CallNode call , string functionName , Class classWithMethod , AttrRead attr , Node self
888883 ) {
889- (
890- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
891- attr .accesses ( clsTracker ( classWithMethod ) , functionName )
892- or
893- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
894- attr .accesses ( selfTracker ( classWithMethod ) , functionName )
895- ) and
896- attr .accesses ( self , functionName )
884+ call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
885+ attr .accesses ( self , functionName ) and
886+ self in [ clsTracker ( classWithMethod ) , selfTracker ( classWithMethod ) ]
897887 }
898888
899889 /**
0 commit comments