Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::SVFOtherType Class Reference

#include <SVFType.h>

Inheritance diagram for SVF::SVFOtherType:
SVF::SVFType

Public Member Functions

 SVFOtherType (u32_t i, bool isSingleValueTy, u32_t byteSize=1)
 Field representation for printing.
const std::string & getRepr ()
void setRepr (std::string &&r)
void setRepr (const std::string &r)
void print (std::ostream &os) const override
Public Member Functions inherited from SVF::SVFType
 SVFType (void)=delete
virtual ~SVFType ()
GNodeK getKind () const
std::string toString () const
u32_t getId () const
void setTypeInfo (StInfo *ti)
StInfo * getTypeInfo ()
const StInfo * getTypeInfo () const
u32_t getByteSize () const
bool isPointerTy () const
bool isArrayTy () const
bool isStructTy () const
bool isSingleValueType () const

Static Public Member Functions

static bool classof (const SVFType *node)
Static Public Member Functions inherited from SVF::SVFType
static SVFType * getSVFPtrType ()
static SVFType * getSVFInt8Type ()

Protected Member Functions

const std::string & getRepr () const
Protected Member Functions inherited from SVF::SVFType
 SVFType (bool svt, SVFTyKind k, u32_t i=0, u32_t Sz=1)

Private Attributes

std::string repr

Friends

class GraphDBClient

Additional Inherited Members

Public Types inherited from SVF::SVFType
enum  SVFTyKind {
  SVFTy , SVFPointerTy , SVFIntegerTy , SVFFunctionTy ,
  SVFStructTy , SVFArrayTy , SVFOtherTy
}
typedef s64_t GNodeK
Static Protected Member Functions inherited from SVF::SVFType
static void setSVFPtrType (SVFType *ptrTy)
 set svfptrty and svfi8ty when initializing SVFType from db query results
static void setSVFInt8Type (SVFType *i8Ty)

Detailed Description

Definition at line 519 of file SVFType.h.

Constructor & Destructor Documentation

◆ SVFOtherType()

SVF::SVFOtherType::SVFOtherType ( u32_t i,
bool isSingleValueTy,
u32_t byteSize = 1 )
inline

Field representation for printing.

Definition at line 533 of file SVFType.h.

533: SVFType(isSingleValueTy, SVFOtherTy, i, byteSize) {}
u32_t byteSize
LLVM Byte Size.
Definition SVFType.h:237
SVFType(void)=delete

Member Function Documentation

◆ classof()

bool SVF::SVFOtherType::classof ( const SVFType * node)
inlinestatic

Definition at line 535 of file SVFType.h.

536 {
537 return node->getKind() == SVFOtherTy;
538 }

◆ getRepr() [1/2]

const std::string & SVF::SVFOtherType::getRepr ( )
inline

Definition at line 540 of file SVFType.h.

541 {
542 return repr;
543 }
std::string repr
Definition SVFType.h:530

◆ getRepr() [2/2]

const std::string & SVF::SVFOtherType::getRepr ( ) const
inlineprotected

Definition at line 524 of file SVFType.h.

525 {
526 return repr;
527 }

◆ print()

void SVF::SVFOtherType::print ( std::ostream & os) const
overridevirtual

Implements SVF::SVFType.

Definition at line 86 of file SVFType.cpp.

87{
88 os << repr;
89}

◆ setRepr() [1/2]

void SVF::SVFOtherType::setRepr ( const std::string & r)
inline

Definition at line 550 of file SVFType.h.

551 {
552 repr = r;
553 }

◆ setRepr() [2/2]

void SVF::SVFOtherType::setRepr ( std::string && r)
inline

Definition at line 545 of file SVFType.h.

546 {
547 repr = std::move(r);
548 }

◆ GraphDBClient

friend class GraphDBClient
friend

Definition at line 521 of file SVFType.h.

Member Data Documentation

◆ repr

std::string SVF::SVFOtherType::repr
private

Definition at line 530 of file SVFType.h.


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