|
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 44 of file SaberCheckerAPI.h.
| typedef Map<std::string, CHECKER_TYPE> SVF::SaberCheckerAPI::TDAPIMap |
Definition at line 57 of file SaberCheckerAPI.h.
|
inlineprivate |
|
inlinestatic |
Return a static reference.
Definition at line 89 of file SaberCheckerAPI.h.
|
inlineprivate |
Get the function type of a function.
Definition at line 76 of file SaberCheckerAPI.h.
|
private |
Initialize the map.
initialize the map
Definition at line 144 of file SaberCheckerAPI.cpp.
|
inline |
Definition at line 140 of file SaberCheckerAPI.h.
Return true if this call is a file close.
Definition at line 136 of file SaberCheckerAPI.h.
|
inline |
Definition at line 128 of file SaberCheckerAPI.h.
Return true if this call is a file open.
Definition at line 124 of file SaberCheckerAPI.h.
|
inline |
Definition at line 104 of file SaberCheckerAPI.h.
Return true if this call is a memory allocation.
Definition at line 100 of file SaberCheckerAPI.h.
|
inline |
Definition at line 116 of file SaberCheckerAPI.h.
Return true if this call is a memory deallocation.
Definition at line 112 of file SaberCheckerAPI.h.
|
staticprivate |
Static reference.
Definition at line 73 of file SaberCheckerAPI.h.
|
private |
API map, from a string to threadAPI type.
Definition at line 61 of file SaberCheckerAPI.h.