Static Value-Flow Analysis
Loading...
Searching...
No Matches
svf
include
SVFIR
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
41
class
PAGBuilderFromFile
42
{
43
44
private
:
45
SVFIR
*
pag
;
46
std::string
file
;
47
public
:
49
PAGBuilderFromFile
(std::string
f
) :
50
pag
(
SVFIR
::
getPAG
(
true
)),
file
(
f
)
51
{
52
}
54
~PAGBuilderFromFile
()
55
{
56
}
57
59
SVFIR
*
getPAG
()
const
60
{
61
return
pag
;
62
}
63
65
std::string
getFileName
()
const
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_ */
SVFIR.h
true
#define true
Definition
cJSON.cpp:65
offset
buffer offset
Definition
cJSON.cpp:1113
SVF::PAGBuilderFromFile
Definition
PAGBuilderFromFile.h:42
SVF::PAGBuilderFromFile::getPAG
SVFIR * getPAG() const
Return SVFIR.
Definition
PAGBuilderFromFile.h:59
SVF::PAGBuilderFromFile::addEdge
void addEdge(NodeID nodeSrc, NodeID nodeDst, APOffset offset, std::string edge)
Definition
PAGBuilderFromFile.cpp:148
SVF::PAGBuilderFromFile::pag
SVFIR * pag
Definition
PAGBuilderFromFile.h:45
SVF::PAGBuilderFromFile::file
std::string file
Definition
PAGBuilderFromFile.h:46
SVF::PAGBuilderFromFile::getFileName
std::string getFileName() const
Return file name.
Definition
PAGBuilderFromFile.h:65
SVF::PAGBuilderFromFile::PAGBuilderFromFile
PAGBuilderFromFile(std::string f)
Constructor.
Definition
PAGBuilderFromFile.h:49
SVF::PAGBuilderFromFile::build
SVFIR * build()
Start building.
Definition
PAGBuilderFromFile.cpp:61
SVF::PAGBuilderFromFile::~PAGBuilderFromFile
~PAGBuilderFromFile()
Destructor.
Definition
PAGBuilderFromFile.h:54
SVF::SVFIR
Definition
SVFIR.h:45
SVF
for isBitcode
Definition
BasicTypes.h:68
SVF::NodeID
u32_t NodeID
Definition
GeneralType.h:55
SVF::APOffset
s64_t APOffset
Definition
GeneralType.h:60
SVF::IRBuilder
llvm::IRBuilder IRBuilder
Definition
BasicTypes.h:74
Generated by
1.9.8