|
Static Value-Flow Analysis
|
#include <SaberCheckerAPI.h>
Public Types | |
| enum | CHECKER_TYPE { CK_DUMMY = 0 , CK_ALLOC , CK_FREE , CK_FOPEN , CK_FCLOSE } |
| typedef Map< std::string, CHECKER_TYPE > | TDAPIMap |
Public Member Functions | |
| bool | isMemAlloc (const FunObjVar *fun) const |
| Return true if this call is a memory allocation. | |
| bool | isMemAlloc (const CallICFGNode *cs) const |
| bool | isMemDealloc (const FunObjVar *fun) const |
| Return true if this call is a memory deallocation. | |
| bool | isMemDealloc (const CallICFGNode *cs) const |
| bool | isFOpen (const FunObjVar *fun) const |
| Return true if this call is a file open. | |
| bool | isFOpen (const CallICFGNode *cs) const |
| bool | isFClose (const FunObjVar *fun) const |
| Return true if this call is a file close. | |
| bool | isFClose (const CallICFGNode *cs) const |
Static Public Member Functions | |
| static SaberCheckerAPI * | getCheckerAPI () |
| Return a static reference. | |
Private Member Functions | |
| SaberCheckerAPI () | |
| Constructor. | |
| void | init () |
| Initialize the map. | |
| CHECKER_TYPE | getType (const FunObjVar *F) const |
| Get the function type of a function. | |
Private Attributes | |
| TDAPIMap | tdAPIMap |
| API map, from a string to threadAPI type. | |
Static Private Attributes | |
| static SaberCheckerAPI * | ckAPI = nullptr |
| Static reference. | |
Definition at line 45 of file SaberCheckerAPI.h.
| typedef Map<std::string, CHECKER_TYPE> SVF::SaberCheckerAPI::TDAPIMap |
Definition at line 58 of file SaberCheckerAPI.h.
|
inlineprivate |
|
inlinestatic |
Return a static reference.
Definition at line 90 of file SaberCheckerAPI.h.
|
inlineprivate |
Get the function type of a function.
Definition at line 77 of file SaberCheckerAPI.h.
|
private |
Initialize the map.
initialize the map
Definition at line 144 of file SaberCheckerAPI.cpp.
|
inline |
Definition at line 141 of file SaberCheckerAPI.h.
Return true if this call is a file close.
Definition at line 137 of file SaberCheckerAPI.h.
|
inline |
Definition at line 129 of file SaberCheckerAPI.h.
Return true if this call is a file open.
Definition at line 125 of file SaberCheckerAPI.h.
|
inline |
Definition at line 105 of file SaberCheckerAPI.h.
Return true if this call is a memory allocation.
Definition at line 101 of file SaberCheckerAPI.h.
|
inline |
Definition at line 117 of file SaberCheckerAPI.h.
Return true if this call is a memory deallocation.
Definition at line 113 of file SaberCheckerAPI.h.
|
staticprivate |
Static reference.
Definition at line 74 of file SaberCheckerAPI.h.
|
private |
API map, from a string to threadAPI type.
Definition at line 62 of file SaberCheckerAPI.h.