@@ -103,20 +103,20 @@ module TypeTrackingBasedCallGraph {
103103 /** A call that can be resolved by type-tracking. */
104104 class ResolvableCall extends RelevantCall {
105105 ResolvableCall ( ) {
106- exists ( TT:: TNormalCall ( this , _, _) )
106+ TT:: resolveCall ( this , _, _)
107107 or
108108 TT:: resolveClassCall ( this , _)
109109 }
110110
111111 /** Gets a resolved target of this call. */
112112 Target getTarget ( ) {
113- exists ( TT:: DataFlowCall call , TT :: CallType ct , Function targetFunc |
114- call = TT:: TNormalCall ( this , targetFunc , ct ) and
113+ exists ( TT:: CallType ct , Function targetFunc |
114+ TT:: resolveCall ( this , targetFunc , ct ) and
115115 not ct instanceof TT:: CallTypeClass and
116116 targetFunc = result .( TargetFunction ) .getFunction ( )
117117 )
118118 or
119- // a TT::TNormalCall only exists when the call can be resolved to a function.
119+ // TT::resolveCall only holds when the call can be resolved to a function.
120120 // Since points-to just says the call goes directly to the class itself, and
121121 // type-tracking based wants to resolve this to the constructor, which might not
122122 // exist. So to do a proper comparison, we don't require the call to be resolve to
0 commit comments