Static Value-Flow Analysis
Loading...
Searching...
No Matches
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#include "Util/GeneralType.h"
35
36namespace SVF
37{
38
43{
44
45private:
47 std::string file;
48public:
50 PAGBuilderFromFile(std::string f) :
52 {
53 }
58
60 SVFIR* getPAG() const
61 {
62 return pag;
63 }
64
66 std::string getFileName() const
67 {
68 return file;
69 }
70
72 SVFIR* build();
73
74 // Add edges
76 std::string edge);
77};
78
79} // End namespace SVF
80
81#endif /* INCLUDE_SVFIR_PAGBUILDERFROMFILE_H_ */
#define true
Definition cJSON.cpp:65
buffer offset
Definition cJSON.cpp:1113
SVFIR * getPAG() const
Return SVFIR.
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.
for isBitcode
Definition BasicTypes.h:70
u32_t NodeID
Definition GeneralType.h:76
s64_t APOffset
Definition GeneralType.h:80
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76