@@ -68,7 +68,7 @@ class IFDSToIDETabulationProblem;
6868 * @param <N> The type of nodes in the interprocedural control-flow graph.
6969 * @param <D> The type of data-flow facts to be computed by the tabulation
7070 * problem.
71- * @param <F> The type of objects used to represent methods .
71+ * @param <F> The type of objects used to represent functions .
7272 * @param <T> The type of user-defined types that the type hierarchy consists of
7373 * @param <V> The type of values on which points-to information are computed
7474 * @param <L> The type of values to be computed along flow edges.
@@ -935,11 +935,11 @@ class IDESolver {
935935 << ideTabulationProblem.NtoString (edge.getTarget ()));
936936 N n = edge.getTarget (); // an exit node; line 21...
937937 std::shared_ptr<EdgeFunction<L>> f = jumpFunction (edge);
938- F methodThatNeedsSummary = ICF->getFunctionOf (n);
938+ F functionThatNeedsSummary = ICF->getFunctionOf (n);
939939 D d1 = edge.factAtSource ();
940940 D d2 = edge.factAtTarget ();
941941 // for each of the method's start points, determine incoming calls
942- std::set<N> startPointsOf = ICF->getStartPointsOf (methodThatNeedsSummary );
942+ std::set<N> startPointsOf = ICF->getStartPointsOf (functionThatNeedsSummary );
943943 std::map<N, std::set<D>> inc;
944944 for (N sP : startPointsOf) {
945945 // line 21.1 of Naeem/Lhotak/Rodriguez
@@ -961,7 +961,7 @@ class IDESolver {
961961 // compute return-flow function
962962 std::shared_ptr<FlowFunction<D>> retFunction =
963963 cachedFlowEdgeFunctions.getRetFlowFunction (
964- c, methodThatNeedsSummary , n, retSiteC);
964+ c, functionThatNeedsSummary , n, retSiteC);
965965 INC_COUNTER (" FF Queries" , 1 , PAMM_SEVERITY_LEVEL::Full);
966966 // for each incoming-call value
967967 for (D d4 : entry.second ) {
@@ -1033,12 +1033,12 @@ class IDESolver {
10331033 // condition
10341034 if (SolverConfig.followReturnsPastSeeds && inc.empty () &&
10351035 ideTabulationProblem.isZeroValue (d1)) {
1036- std::set<N> callers = ICF->getCallersOf (methodThatNeedsSummary );
1036+ std::set<N> callers = ICF->getCallersOf (functionThatNeedsSummary );
10371037 for (N c : callers) {
10381038 for (N retSiteC : ICF->getReturnSitesOfCallAt (c)) {
10391039 std::shared_ptr<FlowFunction<D>> retFunction =
10401040 cachedFlowEdgeFunctions.getRetFlowFunction (
1041- c, methodThatNeedsSummary , n, retSiteC);
1041+ c, functionThatNeedsSummary , n, retSiteC);
10421042 INC_COUNTER (" FF Queries" , 1 , PAMM_SEVERITY_LEVEL::Full);
10431043 std::set<D> targets = computeReturnFlowFunction (
10441044 retFunction, d1, d2, c, std::set<D>{zeroValue});
@@ -1072,7 +1072,7 @@ class IDESolver {
10721072 if (callers.empty ()) {
10731073 std::shared_ptr<FlowFunction<D>> retFunction =
10741074 cachedFlowEdgeFunctions.getRetFlowFunction (
1075- nullptr , methodThatNeedsSummary , n, nullptr );
1075+ nullptr , functionThatNeedsSummary , n, nullptr );
10761076 INC_COUNTER (" FF Queries" , 1 , PAMM_SEVERITY_LEVEL::Full);
10771077 retFunction->computeTargets (d2);
10781078 }
0 commit comments