clang
3.9.0
|
Symbolic value. More...
#include <SymExpr.h>
Classes | |
class | symbol_iterator |
Iterator over symbols that the current symbol depends on. More... | |
Public Types | |
enum | Kind |
Public Member Functions | |
virtual | ~SymExpr () |
Kind | getKind () const |
virtual void | dump () const |
virtual void | dumpToStream (raw_ostream &os) const |
virtual QualType | getType () const =0 |
virtual void | Profile (llvm::FoldingSetNodeID &profile)=0 |
symbol_iterator | symbol_begin () const |
unsigned | computeComplexity () const |
virtual const MemRegion * | getOriginRegion () const |
Find the region from which this symbol originates. More... | |
Static Public Member Functions | |
static symbol_iterator | symbol_end () |
Protected Member Functions | |
SymExpr (Kind k) | |
Symbolic value.
These values used to capture symbolic execution of the program.
unsigned SymExpr::computeComplexity | ( | ) | const |
Definition at line 143 of file SymbolManager.cpp.
References E, I, symbol_begin(), and symbol_end().
Referenced by clang::ento::SValBuilder::makeSymExprValNN().
|
virtual |
Definition at line 26 of file SymbolManager.cpp.
References dumpToStream().
|
inlinevirtual |
Reimplemented in clang::ento::SymSymExpr, clang::ento::IntSymExpr, clang::ento::SymIntExpr, clang::ento::SymbolCast, clang::ento::SymbolMetadata, clang::ento::SymbolExtent, clang::ento::SymbolDerived, clang::ento::SymbolConjured, and clang::ento::SymbolRegionValue.
Definition at line 52 of file SymExpr.h.
Referenced by dump(), clang::ento::SymbolCast::dumpToStream(), clang::ento::SymIntExpr::dumpToStream(), clang::ento::IntSymExpr::dumpToStream(), clang::ento::SymSymExpr::dumpToStream(), llvm::operator<<(), and clang::ento::SValExplainer::VisitSymExpr().
|
inline |
Definition at line 48 of file SymExpr.h.
Referenced by clang::ento::SymbolRegionValue::classof(), clang::ento::SymbolConjured::classof(), clang::ento::SymbolData::classof(), clang::ento::SymbolDerived::classof(), clang::ento::SymbolExtent::classof(), clang::ento::SymbolMetadata::classof(), clang::ento::SymbolCast::classof(), clang::ento::BinarySymExpr::classof(), clang::ento::SymIntExpr::classof(), clang::ento::IntSymExpr::classof(), clang::ento::SymSymExpr::classof(), clang::ento::SymbolReaper::isLive(), clang::ento::ScanReachableSymbols::scan(), and clang::ento::SymExprVisitor< SValExplainer, std::string >::Visit().
|
inlinevirtual |
Find the region from which this symbol originates.
Whenever the symbol was constructed to denote an unknown value of a certain memory region, return this region. This method allows checkers to make decisions depending on the origin of the symbol. Symbol classes for which the origin region is known include SymbolRegionValue which denotes the value of the region before the beginning of the analysis, and SymbolDerived which denotes the value of a certain memory region after its super region (a memory space or a larger record region) is default-bound with a certain symbol.
Reimplemented in clang::ento::SymbolDerived, and clang::ento::SymbolRegionValue.
|
pure virtual |
Implemented in clang::ento::BinarySymExpr, clang::ento::SymbolCast, clang::ento::SymbolMetadata, clang::ento::SymbolExtent, clang::ento::SymbolDerived, clang::ento::SymbolConjured, and clang::ento::SymbolRegionValue.
Referenced by clang::ento::SimpleConstraintManager::assumeAuxForSymbol(), clang::ento::SimpleConstraintManager::assumeSymRel(), clang::ento::SimpleConstraintManager::assumeSymWithinInclusiveRange(), clang::ento::ConstraintManager::checkNull(), clang::ento::getDynamicTypeInfo(), clang::ento::SymbolManager::getType(), and clang::ento::SValBuilder::haveSameType().
|
pure virtual |
|
inline |
Definition at line 77 of file SymExpr.h.
Referenced by computeComplexity(), clang::ento::ProgramState::isTainted(), and clang::ento::SVal::symbol_begin().
|
inlinestatic |
Definition at line 78 of file SymExpr.h.
Referenced by computeComplexity(), clang::ento::ProgramState::isTainted(), and clang::ento::SVal::symbol_end().