Go to the source code of this file.
◆ main()
Definition at line 42 of file saber.cpp.
43{
44
47 argc,
argv,
"Source-Sink Bug Detector",
"[options] <input-bitcode...>"
48 );
49
51 {
53 }
54
58
59
60 std::unique_ptr<LeakChecker>
saber;
61
63 saber = std::make_unique<LeakChecker>();
65 saber = std::make_unique<FileChecker>();
67 saber = std::make_unique<DoubleFreeChecker>();
68 else
69 saber = std::make_unique<LeakChecker>();
70
71 saber->runOnModule(pag);
73
74
75 return 0;
76
77}
static std::vector< std::string > parseOptions(int argc, char *argv[], std::string description, std::string callFormat)
static void releaseLLVMModuleSet()
static void preProcessBCs(std::vector< std::string > &moduleNameVec)
static SVFModule * buildSVFModule(Module &mod)
static const Option< bool > DFreeCheck
double free checker, Default: false
static const Option< bool > FileCheck
file open close checker, Default: false
static const Option< std::string > WriteAnder
static const Option< bool > MemoryLeakCheck
memory leak check, Default: false
llvm::IRBuilder IRBuilder