clang  3.9.0svn
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 685 of file MemRegion.h.

Constructor & Destructor Documentation

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

Definition at line 690 of file MemRegion.h.

Member Function Documentation

static bool clang::ento::SymbolicRegion::classof ( const MemRegion R) [inline, static]

Reimplemented from clang::ento::SubRegion.

Definition at line 709 of file MemRegion.h.

References clang::ento::MemRegion::getKind().

void SymbolicRegion::dumpToStream ( raw_ostream &  os) const [override, virtual]

Reimplemented from clang::ento::MemRegion.

Definition at line 516 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 216 of file MemRegion.cpp.

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

SymbolRef clang::ento::SymbolicRegion::getSymbol ( ) const [inline]

Definition at line 693 of file MemRegion.h.

References sym.

Referenced by clang::ento::SValExplainer::VisitSymbolicRegion().

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

Reimplemented from clang::ento::MemRegion.

Definition at line 697 of file MemRegion.h.

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

Implements clang::ento::MemRegion.

Definition at line 339 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 332 of file MemRegion.cpp.

Referenced by Profile().

Member Data Documentation

Definition at line 687 of file MemRegion.h.

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

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