Skip to content

Commit 15c1ea3

Browse files
committed
MethodPrinter -> FunctionPrinter
1 parent 8851fe9 commit 15c1ea3

47 files changed

Lines changed: 76 additions & 72 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/FlowEdgeFunctionCache.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class FlowEdgeFunctionCache {
141141
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
142142
<< "(N) Call Stmt : " << problem.NtoString(callStmt));
143143
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
144-
<< "(M) Dest Mthd : " << problem.MtoString(destMthd));
144+
<< "(M) Dest Mthd : " << problem.FtoString(destMthd));
145145
auto key = std::tie(callStmt, destMthd);
146146
if (CallFlowFunctionCache.count(key)) {
147147
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
@@ -172,7 +172,7 @@ class FlowEdgeFunctionCache {
172172
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
173173
<< "(N) Call Site : " << problem.NtoString(callSite));
174174
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
175-
<< "(M) Callee : " << problem.MtoString(calleeMthd));
175+
<< "(M) Callee : " << problem.FtoString(calleeMthd));
176176
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
177177
<< "(N) Exit Stmt : " << problem.NtoString(exitStmt));
178178
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
@@ -213,7 +213,7 @@ class FlowEdgeFunctionCache {
213213
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG) << "(M) Callee's : ");
214214
for (auto callee : callees) {
215215
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
216-
<< " " << problem.MtoString(callee));
216+
<< " " << problem.FtoString(callee));
217217
}
218218
auto key = std::tie(callSite, retSite, callees);
219219
if (CallToRetFlowFunctionCache.count(key)) {
@@ -248,7 +248,7 @@ class FlowEdgeFunctionCache {
248248
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
249249
<< "(N) Call Stmt : " << problem.NtoString(callStmt));
250250
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
251-
<< "(M) Dest Mthd : " << problem.MtoString(destMthd));
251+
<< "(M) Dest Mthd : " << problem.FtoString(destMthd));
252252
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG) << ' ');
253253
auto ff = problem.getSummaryFlowFunction(callStmt, destMthd);
254254
return ff;
@@ -297,7 +297,7 @@ class FlowEdgeFunctionCache {
297297
<< "(D) Src Node : " << problem.DtoString(srcNode));
298298
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
299299
<< "(M) Dest Mthd : "
300-
<< problem.MtoString(destinationMethod));
300+
<< problem.FtoString(destinationMethod));
301301
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
302302
<< "(D) Dest Node : " << problem.DtoString(destNode));
303303
auto key = std::tie(callStmt, srcNode, destinationMethod, destNode);
@@ -329,7 +329,7 @@ class FlowEdgeFunctionCache {
329329
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
330330
<< "(N) Call Site : " << problem.NtoString(callSite));
331331
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
332-
<< "(M) Callee : " << problem.MtoString(calleeMethod));
332+
<< "(M) Callee : " << problem.FtoString(calleeMethod));
333333
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
334334
<< "(N) Exit Stmt : " << problem.NtoString(exitStmt));
335335
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
@@ -375,7 +375,7 @@ class FlowEdgeFunctionCache {
375375
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG) << "(M) Callee's : ");
376376
for (auto callee : callees) {
377377
LOG_IF_ENABLE(BOOST_LOG_SEV(lg, DEBUG)
378-
<< " " << problem.MtoString(callee));
378+
<< " " << problem.FtoString(callee));
379379
}
380380
auto key = std::tie(callSite, callNode, retSite, retSiteNode);
381381
if (CallToRetEdgeFunctionCache.count(key)) {

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/IFDSTabulationProblem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ template <typename N, typename D, typename M, typename T, typename V,
4242
class IFDSTabulationProblem : public virtual FlowFunctions<N, D, M>,
4343
public virtual NodePrinter<N>,
4444
public virtual DataFlowFactPrinter<D>,
45-
public virtual MethodPrinter<M> {
45+
public virtual FunctionPrinter<M> {
4646
static_assert(std::is_base_of_v<ICFG<N, M>, I>,
4747
"I must implement the ICFG interface!");
4848

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDEInstInteractionAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class IDEInstInteractionAnalysis
128128

129129
void printDataFlowFact(std::ostream &os, d_t d) const override;
130130

131-
void printMethod(std::ostream &os, m_t m) const override;
131+
void printFunction(std::ostream &os, m_t m) const override;
132132

133133
void printEdgeFact(std::ostream &os, l_t l) const override;
134134
};

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDELinearConstantAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class IDELinearConstantAnalysis
239239

240240
void printDataFlowFact(std::ostream &os, d_t d) const override;
241241

242-
void printMethod(std::ostream &os, m_t m) const override;
242+
void printFunction(std::ostream &os, m_t m) const override;
243243

244244
void printEdgeFact(std::ostream &os, l_t l) const override;
245245

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDEProtoAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class IDEProtoAnalysis
126126

127127
void printDataFlowFact(std::ostream &os, d_t d) const override;
128128

129-
void printMethod(std::ostream &os, m_t m) const override;
129+
void printFunction(std::ostream &os, m_t m) const override;
130130

131131
void printEdgeFact(std::ostream &os, l_t l) const override;
132132
};

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDESolverTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class IDESolverTest
129129

130130
void printDataFlowFact(std::ostream &os, d_t d) const override;
131131

132-
void printMethod(std::ostream &os, m_t m) const override;
132+
void printFunction(std::ostream &os, m_t m) const override;
133133

134134
void printEdgeFact(std::ostream &os, l_t l) const override;
135135
};

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDETaintAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class IDETaintAnalysis
131131

132132
void printNode(std::ostream &os, n_t n) const override;
133133

134-
void printMethod(std::ostream &os, m_t m) const override;
134+
void printFunction(std::ostream &os, m_t m) const override;
135135

136136
void printEdgeFact(std::ostream &os, l_t l) const override;
137137
};

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IDETypeStateAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class IDETypeStateAnalysis
171171

172172
void printDataFlowFact(std::ostream &os, d_t d) const override;
173173

174-
void printMethod(std::ostream &os, m_t m) const override;
174+
void printFunction(std::ostream &os, m_t m) const override;
175175

176176
void printEdgeFact(std::ostream &os, l_t l) const override;
177177

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IFDSConstAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class IFDSConstAnalysis
169169

170170
void printDataFlowFact(std::ostream &os, d_t d) const override;
171171

172-
void printMethod(std::ostream &os, m_t m) const override;
172+
void printFunction(std::ostream &os, m_t m) const override;
173173

174174
void emitTextReport(std::ostream &os,
175175
const SolverResults<n_t, d_t, BinaryDomain> &SR) override;

include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/IFDSFieldSensTaintAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class IFDSFieldSensTaintAnalysis
116116
}
117117
}
118118

119-
void printMethod(std::ostream &os, const llvm::Function *m) const override {
119+
void printFunction(std::ostream &os, const llvm::Function *m) const override {
120120
os << m->getName().str();
121121
}
122122

0 commit comments

Comments
 (0)