Static Value-Flow Analysis
PAGBuilderFromFile.h
Go to the documentation of this file.
1 //===- PAGBuilderFromFile.h -- Building SVFIR from File--------------------------------//
2 //
3 // SVF: Static Value-Flow Analysis
4 //
5 // Copyright (C) <2013-> <Yulei Sui>
6 //
7 
8 // This program is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU Affero General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
12 
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU Affero General Public License for more details.
17 
18 // You should have received a copy of the GNU Affero General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 //
21 //===----------------------------------------------------------------------===//
22 
23 /*
24  * PAGBuilderFromFile.h
25  *
26  * Created on: 20 Sep. 2018
27  * Author: Yulei Sui
28  */
29 
30 #ifndef INCLUDE_SVFIR_PAGBUILDERFROMFILE_H_
31 #define INCLUDE_SVFIR_PAGBUILDERFROMFILE_H_
32 
33 #include "SVFIR/SVFIR.h"
34 
35 namespace SVF
36 {
37 
42 {
43 
44 private:
47 public:
50  pag(SVFIR::getPAG(true)), file(f)
51  {
52  }
55  {
56  }
57 
59  SVFIR* getPAG() const
60  {
61  return pag;
62  }
63 
66  {
67  return file;
68  }
69 
71  SVFIR* build();
72 
73  // Add edges
74  void addEdge(NodeID nodeSrc, NodeID nodeDst, APOffset offset,
75  std::string edge);
76 };
77 
78 } // End namespace SVF
79 
80 #endif /* INCLUDE_SVFIR_PAGBUILDERFROMFILE_H_ */
return true
Definition: cJSON.cpp:2295
buffer offset
Definition: cJSON.cpp:1113
const char *const string
Definition: cJSON.h:172
void addEdge(NodeID nodeSrc, NodeID nodeDst, APOffset offset, std::string edge)
std::string getFileName() const
Return file name.
PAGBuilderFromFile(std::string f)
Constructor.
SVFIR * build()
Start building.
SVFIR * getPAG() const
Return SVFIR.
for isBitcode
Definition: BasicTypes.h:68
u32_t NodeID
Definition: GeneralType.h:55
s64_t APOffset
Definition: GeneralType.h:60