FileChecker()
Constructor.
virtual bool runOnModule(SVFIR *pag)
We start from here.
void reportBug(ProgSlice *slice)
Report file/close bugs.
bool isSinkLikeFun(const SVFFunction *fun)
Whether the function is a heap deallocator (free/release memory)
virtual ~FileChecker()
Destructor.
bool isSourceLikeFun(const SVFFunction *fun)
Whether the function is a heap allocator/reallocator (allocate memory)
bool isFOpen(const SVFFunction *fun) const
Return true if this call is a file open.
bool isFClose(const SVFFunction *fun) const
Return true if this call is a file close.
static SaberCheckerAPI * getCheckerAPI()
Return a static reference.
virtual void analyze(SVFModule *module)
Start analysis here.
llvm::IRBuilder IRBuilder