Static Value-Flow Analysis
Loading...
Searching...
No Matches
Functions
wpa.cpp File Reference
#include "SVF-LLVM/LLVMUtil.h"
#include "SVF-LLVM/SVFIRBuilder.h"
#include "WPA/WPAPass.h"
#include "Util/CommandLine.h"
#include "Util/Options.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Build SVFIR

Definition at line 40 of file wpa.cpp.

41{
42 auto moduleNameVec =
43 OptionBase::parseOptions(argc, argv, "Whole Program Points-to Analysis",
44 "[options] <input-bitcode...>");
45
46 // Refers to content of a singleton unique_ptr<SVFIR> in SVFIR.
47 SVFIR* pag;
48
50
53 pag = builder.build();
54
56 wpa.runOnModule(pag);
57
59 return 0;
60}
static std::vector< std::string > parseOptions(int argc, char *argv[], std::string description, std::string callFormat)
Definition CommandLine.h:75
static void releaseLLVMModuleSet()
Definition LLVMModule.h:138
static void buildSVFModule(Module &mod)
virtual void runOnModule(SVFIR *svfModule)
Run pointer analysis on SVFModule.
Definition WPAPass.cpp:68
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74