Static Value-Flow Analysis
Functions
mta.cpp File Reference
#include "SVF-LLVM/LLVMUtil.h"
#include "SVF-LLVM/SVFIRBuilder.h"
#include "MTA/MTA.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 
)

Definition at line 33 of file mta.cpp.

34 {
35 
36  std::vector<std::string> moduleNameVec;
37  moduleNameVec = OptionBase::parseOptions(
38  argc, argv, "MTA Analysis", "[options] <input-bitcode...>"
39  );
40 
41  if (Options::WriteAnder() == "ir_annotator")
42  {
43  LLVMModuleSet::preProcessBCs(moduleNameVec);
44  }
45 
46  SVFModule* svfModule = LLVMModuleSet::buildSVFModule(moduleNameVec);
47  SVFIRBuilder builder(svfModule);
48  SVFIR* pag = builder.build();
49 
50 
51  MTA mta;
52  mta.runOnModule(pag);
53 
54  LLVMModuleSet::releaseLLVMModuleSet();
55 
56 
57  return 0;
58 }
static std::vector< std::string > parseOptions(int argc, char *argv[], std::string description, std::string callFormat)
Definition: CommandLine.h:75
Definition: MTA.h:57
virtual bool runOnModule(SVFIR *module)
We start the pass here.
Definition: MTA.cpp:61