@@ -36,43 +36,48 @@ IDETabulationProblemTestPlugin::IDETabulationProblemTestPlugin(
3636 const LLVMBasedICFG *ICF, LLVMPointsToInfo *PT,
3737 std::set<std::string> EntryPoints)
3838 : IDETabulationProblemPlugin(IRDB, TH, ICF, PT, std::move(EntryPoints)) {
39- ZeroValue = createZeroValue ();
39+ ZeroValue = IDETabulationProblemTestPlugin:: createZeroValue ();
4040}
4141
4242const FlowFact *IDETabulationProblemTestPlugin::createZeroValue () const {
43- static auto zero = new ValueFlowFactWrapper (nullptr );
44- return zero ;
43+ static auto *Zero = new ValueFlowFactWrapper (nullptr );
44+ return Zero ;
4545}
4646
4747IDETabulationProblemTestPlugin::FlowFunctionPtrType
4848IDETabulationProblemTestPlugin::getNormalFlowFunction (
49- const llvm::Instruction *Curr, const llvm::Instruction *Succ) {
49+ const llvm::Instruction * /* Curr*/ , const llvm::Instruction * /* Succ*/ ) {
5050 return Identity<const FlowFact *>::getInstance ();
5151}
5252
5353IDETabulationProblemTestPlugin::FlowFunctionPtrType
5454IDETabulationProblemTestPlugin::getCallFlowFunction (
55- const llvm::Instruction *CallSite, const llvm::Function *DestFun) {
55+ const llvm::Instruction * /* CallSite*/ ,
56+ const llvm::Function * /* DestFun*/ ) {
5657 return Identity<const FlowFact *>::getInstance ();
5758}
5859
5960IDETabulationProblemTestPlugin::FlowFunctionPtrType
6061IDETabulationProblemTestPlugin::getRetFlowFunction (
61- const llvm::Instruction *CallSite, const llvm::Function *CalleeFun,
62- const llvm::Instruction *ExitSite, const llvm::Instruction *RetSite) {
62+ const llvm::Instruction * /* CallSite*/ ,
63+ const llvm::Function * /* CalleeFun*/ ,
64+ const llvm::Instruction * /* ExitSite*/ ,
65+ const llvm::Instruction * /* RetSite*/ ) {
6366 return Identity<const FlowFact *>::getInstance ();
6467}
6568
6669IDETabulationProblemTestPlugin::FlowFunctionPtrType
6770IDETabulationProblemTestPlugin::getCallToRetFlowFunction (
68- const llvm::Instruction *CallSite, const llvm::Instruction *RetSite,
69- set<const llvm::Function *> Callees) {
71+ const llvm::Instruction * /* CallSite*/ ,
72+ const llvm::Instruction * /* RetSite*/ ,
73+ set<const llvm::Function *> /* Callees*/ ) {
7074 return Identity<const FlowFact *>::getInstance ();
7175}
7276
7377IDETabulationProblemTestPlugin::FlowFunctionPtrType
7478IDETabulationProblemTestPlugin::getSummaryFlowFunction (
75- const llvm::Instruction *CallSite, const llvm::Function *DestFun) {
79+ const llvm::Instruction * /* CallSite*/ ,
80+ const llvm::Function * /* DestFun*/ ) {
7681 return nullptr ;
7782}
7883
@@ -93,51 +98,54 @@ IDETabulationProblemTestPlugin::initialSeeds() {
9398}
9499
95100IDETabulationProblemTestPlugin::EdgeFunctionPtrType
96- IDETabulationProblemTestPlugin::getNormalEdgeFunction (n_t curr, d_t currNode,
97- n_t succ, d_t succNode) {
101+ IDETabulationProblemTestPlugin::getNormalEdgeFunction (n_t /* Curr*/ ,
102+ d_t /* CurrNode*/ ,
103+ n_t /* Succ*/ ,
104+ d_t /* SuccNode*/ ) {
98105 return EdgeIdentity<l_t >::getInstance ();
99106}
100107IDETabulationProblemTestPlugin::EdgeFunctionPtrType
101- IDETabulationProblemTestPlugin::getCallEdgeFunction (n_t callSite, d_t srcNode,
102- f_t destinationFunction,
103- d_t destNode) {
108+ IDETabulationProblemTestPlugin::getCallEdgeFunction (n_t /* CallSite*/ ,
109+ d_t /* SrcNode*/ ,
110+ f_t /* DestinationFunction*/ ,
111+ d_t /* DestNode*/ ) {
104112 return EdgeIdentity<l_t >::getInstance ();
105113}
106114IDETabulationProblemTestPlugin::EdgeFunctionPtrType
107- IDETabulationProblemTestPlugin::getReturnEdgeFunction (n_t callSite,
108- f_t calleeFunction,
109- n_t exitSite,
110- d_t exitNode, n_t reSite,
111- d_t retNode) {
115+ IDETabulationProblemTestPlugin::getReturnEdgeFunction (
116+ n_t /* CallSite*/ , f_t /* CalleeFunction*/ , n_t /* ExitSite*/ ,
117+ d_t /* ExitNode*/ , n_t /* RetSite*/ , d_t /* RetNode*/ ) {
112118 return EdgeIdentity<l_t >::getInstance ();
113119}
114120IDETabulationProblemTestPlugin::EdgeFunctionPtrType
115121IDETabulationProblemTestPlugin::getCallToRetEdgeFunction (
116- n_t callSite , d_t callNode , n_t retSite , d_t retSiteNode ,
117- std::set<f_t > callees ) {
122+ n_t /* CallSite */ , d_t /* CallNode */ , n_t /* RetSite */ , d_t /* RetSiteNode */ ,
123+ std::set<f_t > /* Callees */ ) {
118124 return EdgeIdentity<l_t >::getInstance ();
119125}
120126IDETabulationProblemTestPlugin::EdgeFunctionPtrType
121- IDETabulationProblemTestPlugin::getSummaryEdgeFunction (n_t curr, d_t currNode,
122- n_t succ, d_t succNode) {
127+ IDETabulationProblemTestPlugin::getSummaryEdgeFunction (n_t /* Curr*/ ,
128+ d_t /* CurrNode*/ ,
129+ n_t /* Succ*/ ,
130+ d_t /* SuccNode*/ ) {
123131 return nullptr ;
124132}
125133
126134IDETabulationProblemTestPlugin::l_t
127135IDETabulationProblemTestPlugin::topElement () {
128- return efManager .getOrCreateEdgeFact (-1 );
136+ return EFManager .getOrCreateEdgeFact (-1 );
129137}
130138IDETabulationProblemTestPlugin::l_t
131139IDETabulationProblemTestPlugin::bottomElement () {
132- return efManager .getOrCreateEdgeFact (0 );
140+ return EFManager .getOrCreateEdgeFact (0 );
133141}
134142IDETabulationProblemTestPlugin::l_t
135- IDETabulationProblemTestPlugin::join (l_t lhs , l_t rhs ) {
136- if (lhs == rhs || rhs == topElement ()) {
137- return lhs ;
143+ IDETabulationProblemTestPlugin::join (l_t Lhs , l_t Rhs ) {
144+ if (Lhs == Rhs || Rhs == topElement ()) {
145+ return Lhs ;
138146 }
139- if (lhs == topElement ()) {
140- return rhs ;
147+ if (Lhs == topElement ()) {
148+ return Rhs ;
141149 }
142150 return bottomElement ();
143151}
0 commit comments