Static Value-Flow Analysis
Functions | Variables
dda.cpp File Reference
#include "SVF-LLVM/LLVMUtil.h"
#include "SVF-LLVM/SVFIRBuilder.h"
#include "DDA/DDAPass.h"
#include "Util/Options.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Variables

static Option< bool > DAA ("daa", "Demand-Driven Alias Analysis Pass", false)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 48 of file dda.cpp.

49 {
50  std::vector<std::string> moduleNameVec;
51  moduleNameVec = OptionBase::parseOptions(
52  argc, argv, "Demand-Driven Points-to Analysis", "[options] <input-bitcode...>"
53  );
54 
55  if (Options::WriteAnder() == "ir_annotator")
56  {
57  LLVMModuleSet::preProcessBCs(moduleNameVec);
58  }
59 
60  SVFModule* svfModule = LLVMModuleSet::buildSVFModule(moduleNameVec);
61  SVFIRBuilder builder(svfModule);
62  SVFIR* pag = builder.build();
63 
64  DDAPass dda;
65  dda.runOnModule(pag);
66 
67  LLVMModuleSet::releaseLLVMModuleSet();
68  return 0;
69 
70 }
static std::vector< std::string > parseOptions(int argc, char *argv[], std::string description, std::string callFormat)
Definition: CommandLine.h:75
virtual void runOnModule(SVFIR *module)
We start from here.
Definition: DDAPass.cpp:55

Variable Documentation

◆ DAA

Option<bool> DAA("daa", "Demand-Driven Alias Analysis Pass", false) ( "daa"  ,
"Demand-Driven Alias Analysis Pass"  ,
false   
)
static