@@ -39,8 +39,8 @@ struct IDESecureHeapPropagationAnalysisDomain : LLVMAnalysisDomainDefault {
3939class IDESecureHeapPropagation
4040 : public IDETabulationProblem<IDESecureHeapPropagationAnalysisDomain> {
4141
42- const llvm::StringLiteral initializerFn = " CRYPTO_secure_malloc_init" ;
43- const llvm::StringLiteral shutdownFn = " CRYPTO_secure_malloc_done" ;
42+ const llvm::StringLiteral InitializerFn = " CRYPTO_secure_malloc_init" ;
43+ const llvm::StringLiteral ShutdownFn = " CRYPTO_secure_malloc_done" ;
4444
4545public:
4646 using IDETabProblemType =
@@ -58,107 +58,107 @@ class IDESecureHeapPropagation
5858 std::set<std::string> EntryPoints = {" main" });
5959 ~IDESecureHeapPropagation () override = default ;
6060
61- FlowFunctionPtrType getNormalFlowFunction (n_t curr , n_t succ ) override ;
61+ FlowFunctionPtrType getNormalFlowFunction (n_t Curr , n_t Succ ) override ;
6262
63- FlowFunctionPtrType getCallFlowFunction (n_t callSite , f_t destMthd ) override ;
63+ FlowFunctionPtrType getCallFlowFunction (n_t CallSite , f_t DestFunc ) override ;
6464
65- FlowFunctionPtrType getRetFlowFunction (n_t callSite , f_t calleeMthd ,
66- n_t exitInst , n_t retSite ) override ;
65+ FlowFunctionPtrType getRetFlowFunction (n_t CallSite , f_t CalleeMthd ,
66+ n_t ExitInst , n_t RetSite ) override ;
6767
68- FlowFunctionPtrType getCallToRetFlowFunction (n_t callSite , n_t retSite ,
69- std::set<f_t > callees ) override ;
68+ FlowFunctionPtrType getCallToRetFlowFunction (n_t CallSite , n_t RetSite ,
69+ std::set<f_t > Callees ) override ;
7070
71- FlowFunctionPtrType getSummaryFlowFunction (n_t callSite ,
72- f_t destMthd ) override ;
71+ FlowFunctionPtrType getSummaryFlowFunction (n_t CallSite ,
72+ f_t DestMthd ) override ;
7373
7474 InitialSeeds<n_t , d_t , l_t > initialSeeds () override ;
7575
7676 [[nodiscard]] d_t createZeroValue () const override ;
7777
78- bool isZeroValue (d_t d ) const override ;
78+ [[nodiscard]] bool isZeroValue (d_t Fact ) const override ;
7979
80- void printNode (std::ostream &os , n_t n ) const override ;
80+ void printNode (std::ostream &OS , n_t Stmt ) const override ;
8181
82- void printDataFlowFact (std::ostream &os , d_t d ) const override ;
82+ void printDataFlowFact (std::ostream &OS , d_t Fact ) const override ;
8383
84- void printFunction (std::ostream &os , f_t f ) const override ;
84+ void printFunction (std::ostream &OS , f_t Func ) const override ;
8585
8686 // in addition provide specifications for the IDE parts
8787
8888 std::shared_ptr<EdgeFunction<l_t >>
89- getNormalEdgeFunction (n_t curr , d_t currNode , n_t succ ,
90- d_t succNode ) override ;
89+ getNormalEdgeFunction (n_t Curr , d_t CurrNode , n_t Succ ,
90+ d_t SuccNode ) override ;
9191
92- std::shared_ptr<EdgeFunction<l_t >> getCallEdgeFunction (n_t callSite ,
93- d_t srcNode ,
94- f_t destinationMethod ,
95- d_t destNode ) override ;
92+ std::shared_ptr<EdgeFunction<l_t >> getCallEdgeFunction (n_t CallSite ,
93+ d_t SrcNode ,
94+ f_t DestinationMethod ,
95+ d_t DestNode ) override ;
9696
9797 std::shared_ptr<EdgeFunction<l_t >>
98- getReturnEdgeFunction (n_t callSite , f_t calleeMethod , n_t exitInst ,
99- d_t exitNode , n_t reSite , d_t retNode ) override ;
98+ getReturnEdgeFunction (n_t CallSite , f_t CalleeMethod , n_t ExitInst ,
99+ d_t ExitNode , n_t RetSite , d_t RetNode ) override ;
100100
101101 std::shared_ptr<EdgeFunction<l_t >>
102- getCallToRetEdgeFunction (n_t callSite , d_t callNode , n_t retSite ,
103- d_t retSiteNode , std::set<f_t > callees ) override ;
102+ getCallToRetEdgeFunction (n_t CallSite , d_t CallNode , n_t RetSite ,
103+ d_t RetSiteNode , std::set<f_t > Callees ) override ;
104104
105105 std::shared_ptr<EdgeFunction<l_t >>
106- getSummaryEdgeFunction (n_t callSite , d_t callNode , n_t retSite ,
107- d_t retSiteNode ) override ;
106+ getSummaryEdgeFunction (n_t CallSite , d_t CallNode , n_t RetSite ,
107+ d_t RetSiteNode ) override ;
108108
109109 l_t topElement () override ;
110110
111111 l_t bottomElement () override ;
112112
113- l_t join (l_t lhs , l_t rhs ) override ;
113+ l_t join (l_t Lhs , l_t Rhs ) override ;
114114
115115 std::shared_ptr<EdgeFunction<l_t >> allTopFunction () override ;
116116
117- void printEdgeFact (std::ostream &os , l_t l ) const override ;
117+ void printEdgeFact (std::ostream &OS , l_t L ) const override ;
118118
119119 void emitTextReport (const SolverResults<n_t , d_t , l_t > &SR,
120- std::ostream &os ) override ;
120+ std::ostream &OS ) override ;
121121
122122 struct SHPEdgeFn : public EdgeFunction <l_t >,
123123 public std::enable_shared_from_this<SHPEdgeFn> {
124124 ~SHPEdgeFn () override = default ;
125125
126126 std::shared_ptr<EdgeFunction<l_t >>
127- joinWith (std::shared_ptr<EdgeFunction<l_t >> otherFunction ) override ;
127+ joinWith (std::shared_ptr<EdgeFunction<l_t >> OtherFunction ) override ;
128128 };
129129
130130 struct SHPEdgeFunctionComposer
131131 : public EdgeFunctionComposer<l_t >,
132132 public std::enable_shared_from_this<SHPEdgeFn> {
133133 ~SHPEdgeFunctionComposer () override = default ;
134134 std::shared_ptr<EdgeFunction<l_t >>
135- joinWith (std::shared_ptr<EdgeFunction<l_t >> otherFunction ) override ;
135+ joinWith (std::shared_ptr<EdgeFunction<l_t >> OtherFunction ) override ;
136136 };
137137 struct SHPGenEdgeFn : public SHPEdgeFn {
138- SHPGenEdgeFn (l_t val );
138+ SHPGenEdgeFn (l_t Val );
139139 ~SHPGenEdgeFn () override = default ;
140140
141- l_t computeTarget (l_t source ) override ;
141+ l_t computeTarget (l_t Source ) override ;
142142
143- bool equal_to (std::shared_ptr<EdgeFunction<l_t >> other ) const override ;
143+ bool equal_to (std::shared_ptr<EdgeFunction<l_t >> Other ) const override ;
144144 std::shared_ptr<EdgeFunction<l_t >>
145- composeWith (std::shared_ptr<EdgeFunction<l_t >> secondFunction ) override ;
146- void print (std::ostream &OS, bool isForDebug = false ) const override ;
147- static std::shared_ptr<SHPGenEdgeFn> getInstance (l_t val );
145+ composeWith (std::shared_ptr<EdgeFunction<l_t >> SecondFunction ) override ;
146+ void print (std::ostream &OS, bool IsForDebug = false ) const override ;
147+ static std::shared_ptr<SHPGenEdgeFn> getInstance (l_t Val );
148148
149149 private:
150- l_t value ;
150+ l_t Value ;
151151 };
152152
153153 struct IdentityEdgeFunction : public SHPEdgeFn {
154154 ~IdentityEdgeFunction () override = default ;
155155
156- l_t computeTarget (l_t source ) override ;
156+ l_t computeTarget (l_t Source ) override ;
157157 std::shared_ptr<EdgeFunction<l_t >>
158- composeWith (std::shared_ptr<EdgeFunction<l_t >> secondFunction ) override ;
159- bool equal_to (std::shared_ptr<EdgeFunction<l_t >> other ) const override ;
158+ composeWith (std::shared_ptr<EdgeFunction<l_t >> SecondFunction ) override ;
159+ bool equal_to (std::shared_ptr<EdgeFunction<l_t >> Other ) const override ;
160160
161- void print (std::ostream &OS, bool isForDebug = false ) const override ;
161+ void print (std::ostream &OS, bool IsForDebug = false ) const override ;
162162
163163 static std::shared_ptr<IdentityEdgeFunction> getInstance ();
164164 };
0 commit comments