Static Value-Flow Analysis
Loading...
Searching...
No Matches
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
49 LLVMModuleSet::buildSVFModule(moduleNameVec);
50
52 SVFIRBuilder builder;
53 pag = builder.build();
54
55 WPAPass wpa;
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:144
static void buildSVFModule(Module &mod)
virtual SVFIR * build()
Start building SVFIR here.
virtual void runOnModule(SVFIR *svfModule)
Run pointer analysis on SVFModule.
Definition WPAPass.cpp:69