clang  mainline
Public Member Functions | Static Public Member Functions | Protected Attributes
clang::ento::SymbolicRegion Class Reference

SymbolicRegion - A special, "non-concrete" region. More...

#include <MemRegion.h>

Inheritance diagram for clang::ento::SymbolicRegion:
Inheritance graph
Collaboration diagram for clang::ento::SymbolicRegion:
Collaboration graph

List of all members.

Public Member Functions

 SymbolicRegion (const SymbolRef s, const MemRegion *sreg)
SymbolRef getSymbol () const
bool isBoundable () const override
DefinedOrUnknownSVal getExtent (SValBuilder &svalBuilder) const override
 getExtent - Returns the size of the region in bytes.
void Profile (llvm::FoldingSetNodeID &ID) const override
void dumpToStream (raw_ostream &os) const override

Static Public Member Functions

static void ProfileRegion (llvm::FoldingSetNodeID &ID, SymbolRef sym, const MemRegion *superRegion)
static bool classof (const MemRegion *R)

Protected Attributes

const SymbolRef sym

Detailed Description

SymbolicRegion - A special, "non-concrete" region.

Unlike other region classes, SymbolicRegion represents a region that serves as an alias for either a real region, a NULL pointer, etc. It essentially is used to map the concept of symbolic values into the domain of regions. Symbolic regions do not need to be typed.

Definition at line 711 of file MemRegion.h.

Constructor & Destructor Documentation

clang::ento::SymbolicRegion::SymbolicRegion ( const SymbolRef  s,
const MemRegion sreg 
) [inline]

Definition at line 716 of file MemRegion.h.

Member Function Documentation

static bool clang::ento::SymbolicRegion::classof ( const MemRegion R) [inline, static]
void SymbolicRegion::dumpToStream ( raw_ostream &  os) const [override, virtual]

Reimplemented from clang::ento::MemRegion.

Definition at line 520 of file MemRegion.cpp.

References sym.

DefinedOrUnknownSVal SymbolicRegion::getExtent ( SValBuilder svalBuilder) const [override, virtual]

getExtent - Returns the size of the region in bytes.

Reimplemented from clang::ento::SubRegion.

Definition at line 220 of file MemRegion.cpp.

References clang::ento::SymbolManager::getExtentSymbol(), and clang::ento::SValBuilder::getSymbolManager().

Definition at line 719 of file MemRegion.h.

References sym.

bool clang::ento::SymbolicRegion::isBoundable ( ) const [inline, override, virtual]

Reimplemented from clang::ento::MemRegion.

Definition at line 723 of file MemRegion.h.

void SymbolicRegion::Profile ( llvm::FoldingSetNodeID &  ID) const [override, virtual]

Implements clang::ento::MemRegion.

Definition at line 343 of file MemRegion.cpp.

References clang::ento::SubRegion::getSuperRegion(), ProfileRegion(), and sym.

void SymbolicRegion::ProfileRegion ( llvm::FoldingSetNodeID &  ID,
SymbolRef  sym,
const MemRegion superRegion 
) [static]

Definition at line 336 of file MemRegion.cpp.

References clang::ento::MemRegion::SymbolicRegionKind.

Referenced by Profile().

Member Data Documentation

Definition at line 713 of file MemRegion.h.

Referenced by dumpToStream(), getSymbol(), and Profile().

The documentation for this class was generated from the following files: