Static Value-Flow Analysis
Loading...
Searching...
No Matches
AEWTO.h
Go to the documentation of this file.
1//===- AEWTO.h -- WTO + pointer-analysis prep for Abstract Interpretation ---//
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 * AEWTO.h
25 *
26 * Created on: Feb 25, 2026
27 * Author: Jiawei Wang
28 *
29 * Runs Andersen's pointer analysis and builds the per-function WTO
30 * (Weak Topological Order) consumed by Abstract Interpretation. Also
31 * caches per-cycle ValVar sets for the semi-sparse loop helpers.
32 */
33
34#ifndef INCLUDE_AE_SVFEXE_AEWTO_H_
35#define INCLUDE_AE_SVFEXE_AEWTO_H_
36
37#include "SVFIR/SVFIR.h"
38#include "Graphs/ICFG.h"
39#include "Graphs/CallGraph.h"
40#include "Graphs/SCC.h"
41#include "AE/Core/ICFGWTO.h"
42#include "WPA/Andersen.h"
43
44namespace SVF
45{
46
103
104} // End namespace SVF
105
106#endif /* INCLUDE_AE_SVFEXE_AEWTO_H_ */
ICFG * icfg
Definition AEWTO.h:91
void initCycleValVars()
Definition AEWTO.cpp:98
const Map< const FunObjVar *, const ICFGWTO * > & getFuncToWTO() const
Accessors for WTO data.
Definition AEWTO.h:72
AndersenWaveDiff * getPointerAnalysis() const
Accessors for Andersen's results.
Definition AEWTO.h:56
SVFIR * svfir
Definition AEWTO.h:90
AndersenWaveDiff * pta
Definition AEWTO.h:92
CallGraph * getCallGraph() const
Definition AEWTO.h:60
virtual ~AEWTO()
Definition AEWTO.cpp:45
CallGraph * callGraph
Definition AEWTO.h:93
CallGraphSCC * getCallGraphSCC() const
Definition AEWTO.h:64
Map< const ICFGCycleWTO *, Set< const ValVar * > > cycleToValVars
Definition AEWTO.h:101
const Set< const ValVar * > getCycleValVars(const ICFGCycleWTO *cycle) const
Definition AEWTO.h:83
SCCDetection< CallGraph * > CallGraphSCC
Definition AEWTO.h:50
CallGraphSCC * callGraphSCC
Definition AEWTO.h:94
Map< const FunObjVar *, const ICFGWTO * > funcToWTO
Definition AEWTO.h:96
void initWTO()
Build WTO for each function using call graph SCC.
Definition AEWTO.cpp:51
for isBitcode
Definition BasicTypes.h:70
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76