100 switch(
event.getEventType())
104 SVFUtil::errs() <<
"\t\t callsite at : ( " <<
event.getEventLoc() <<
" )\n";
161 SVFUtil::errs() <<
"\t\t --> (" << (*eventIt).getEventLoc() <<
"|" << (*eventIt).getEventDescription() <<
") \n";
198 SVFUtil::errs() <<
"\t\t --> (" << (*eventIt).getEventLoc() <<
"|" << (*eventIt).getEventDescription() <<
") \n";
248 SVFUtil::errs() <<
"\t\t --> (" << (*eventIt).getEventLoc() <<
"|" << (*eventIt).getEventDescription() <<
") \n";
305 std::string description(
"calls ");
306 assert(SVFUtil::isa<CallICFGNode>(
eventInst) &&
"not a call ICFGNode?");
310 description +=
"<unknown>";
325 assert(
false &&
"No such type of event!");
366 if (bugLoc ==
nullptr)
373 bugPtr->getFuncName().c_str());
377 bugPtr->getBugDescription());
399 event.getFuncName().c_str());
410 event.getEventDescription().c_str());
cJSON * getBugDescription() const
static bool classof(const GenericBug *bug)
ClassOf.
void printBugToTerminal() const
cJSON * getBugDescription() const
void printBugToTerminal() const
cJSON * getBugDescription() const
void printBugToTerminal() const
cJSON * getBugDescription() const
void printBugToTerminal() const
static bool classof(const GenericBug *bug)
ClassOf.
cJSON * getBugDescription() const
void printBugToTerminal() const
static const std::map< GenericBug::BugType, std::string > BugType2Str
@ PARTIALNULLPTRDEREFERENCE
const std::string getLoc() const
returns bug location as json format string
const EventStack bugEventStack
std::vector< SVFBugEvent > EventStack
const std::string getFuncName() const
return bug source function name
virtual const SVFFunction * getFun() const
Return the function of this ICFGNode.
cJSON * getBugDescription() const
void printBugToTerminal() const
void printBugToTerminal() const
cJSON * getBugDescription() const
cJSON * getBugDescription() const
void printBugToTerminal() const
virtual const std::string getSourceLoc() const
virtual const std::string getEventLoc() const
virtual const std::string getEventDescription() const
u32_t getEventType() const
const ICFGNode * eventInst
virtual const std::string getFuncName() const
void dumpToJsonFile(const std::string &filePath) const
const std::string & getName() const
std::string bugMsg1(const std::string &msg)
std::ostream & errs()
Overwrite llvm::errs()
std::string bugMsg2(const std::string &msg)
llvm::IRBuilder IRBuilder