Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SVF::CxtDPItem Class Reference

#include <DPItem.h>

Inheritance diagram for SVF::CxtDPItem:
SVF::DPItem

Public Member Functions

 CxtDPItem (NodeID c, const ContextCond &cxt)
 Constructor.
 
 CxtDPItem (const CxtVar &var)
 
 CxtDPItem (const CxtDPItem &dps)
 Copy constructor.
 
 CxtDPItem (CxtDPItem &&dps) noexcept
 Move constructor.
 
CxtDPItemoperator= (CxtDPItem &&dps) noexcept
 Move operator=.
 
virtual ~CxtDPItem ()
 Destructor.
 
const ContextCondgetContexts () const
 Get context.
 
void pushContext (NodeID cxt)
 Push context.
 
virtual bool matchContext (NodeID cxt)
 Match context.
 
bool operator< (const CxtDPItem &rhs) const
 
CxtDPItemoperator= (const CxtDPItem &rhs)
 Overloading Operator=.
 
bool operator== (const CxtDPItem &rhs) const
 Overloading Operator==.
 
bool operator!= (const CxtDPItem &rhs) const
 Overloading Operator!=.
 
- Public Member Functions inherited from SVF::DPItem
 DPItem (NodeID c)
 Constructor.
 
 DPItem (const DPItem &dps)
 Copy constructor.
 
 DPItem (DPItem &&dps) noexcept
 Move constructor.
 
DPItemoperator= (DPItem &&rhs) noexcept
 Move operator=.
 
virtual ~DPItem ()
 Destructor.
 
NodeID getCurNodeID () const
 
void setCurNodeID (NodeID c)
 
bool operator< (const DPItem &rhs) const
 
DPItemoperator= (const DPItem &rhs)
 Overloading Operator=.
 
bool operator== (const DPItem &rhs) const
 Overloading Operator==.
 
bool operator!= (const DPItem &rhs) const
 Overloading Operator!=.
 
void dump () const
 

Private Attributes

ContextCond context
 

Additional Inherited Members

- Static Public Member Functions inherited from SVF::DPItem
static void setMaxBudget (u32_t max)
 set max step budge per query
 
static u32_t getMaxBudget ()
 
- Protected Attributes inherited from SVF::DPItem
NodeID cur
 
- Static Protected Attributes inherited from SVF::DPItem
static u64_t maximumBudget = ULONG_MAX - 1
 

Detailed Description

Definition at line 478 of file DPItem.h.

Constructor & Destructor Documentation

◆ CxtDPItem() [1/4]

SVF::CxtDPItem::CxtDPItem ( NodeID  c,
const ContextCond cxt 
)
inline

Constructor.

Definition at line 485 of file DPItem.h.

485 : DPItem(c),context(cxt)
486 {
487 }
ContextCond context
Definition DPItem.h:481
DPItem(NodeID c)
Constructor.
Definition DPItem.h:53
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ CxtDPItem() [2/4]

SVF::CxtDPItem::CxtDPItem ( const CxtVar var)
inline

Definition at line 488 of file DPItem.h.

488 : DPItem(var.get_id()),context(var.get_cond())
489 {
490 }

◆ CxtDPItem() [3/4]

SVF::CxtDPItem::CxtDPItem ( const CxtDPItem dps)
inline

Copy constructor.

Definition at line 492 of file DPItem.h.

492 :
493 DPItem(dps.getCurNodeID()), context(dps.context)
494 {
495 }

◆ CxtDPItem() [4/4]

SVF::CxtDPItem::CxtDPItem ( CxtDPItem &&  dps)
inlinenoexcept

Move constructor.

Definition at line 497 of file DPItem.h.

497 : DPItem(dps), context(std::move(dps.context))
498 {
499 }

◆ ~CxtDPItem()

virtual SVF::CxtDPItem::~CxtDPItem ( )
inlinevirtual

Destructor.

Definition at line 511 of file DPItem.h.

512 {
513 }

Member Function Documentation

◆ getContexts()

const ContextCond & SVF::CxtDPItem::getContexts ( ) const
inline

Get context.

Definition at line 516 of file DPItem.h.

517 {
518 return context;
519 }

◆ matchContext()

virtual bool SVF::CxtDPItem::matchContext ( NodeID  cxt)
inlinevirtual

Match context.

Definition at line 527 of file DPItem.h.

528 {
529 return context.matchContext(cxt);
530 }
virtual bool matchContext(NodeID ctx)
Match context.
Definition DPItem.h:304

◆ operator!=()

bool SVF::CxtDPItem::operator!= ( const CxtDPItem rhs) const
inline

Overloading Operator!=.

Definition at line 557 of file DPItem.h.

558 {
559 return !(*this == rhs);
560 }

◆ operator<()

bool SVF::CxtDPItem::operator< ( const CxtDPItem rhs) const
inline

Enable compare operator to avoid duplicated item insertion in map or set to be noted that two vectors can also overload operator()

Definition at line 534 of file DPItem.h.

535 {
536 if (cur != rhs.cur)
537 return cur < rhs.cur;
538 else
539 return context < rhs.context;
540 }
CallStrCxt context
Definition DPItem.h:374
NodeID cur
Definition DPItem.h:48

◆ operator=() [1/2]

CxtDPItem & SVF::CxtDPItem::operator= ( const CxtDPItem rhs)
inline

Overloading Operator=.

Definition at line 542 of file DPItem.h.

543 {
544 if(*this!=rhs)
545 {
546 cur = rhs.cur;
548 }
549 return *this;
550 }

◆ operator=() [2/2]

CxtDPItem & SVF::CxtDPItem::operator= ( CxtDPItem &&  dps)
inlinenoexcept

Move operator=.

Definition at line 501 of file DPItem.h.

502 {
503 if (this != &dps)
504 {
506 context = std::move(dps.context);
507 }
508 return *this;
509 }
DPItem & operator=(DPItem &&rhs) noexcept
Move operator=.
Definition DPItem.h:66

◆ operator==()

bool SVF::CxtDPItem::operator== ( const CxtDPItem rhs) const
inline

Overloading Operator==.

Definition at line 552 of file DPItem.h.

553 {
554 return (cur == rhs.cur) && (context == rhs.context);
555 }

◆ pushContext()

void SVF::CxtDPItem::pushContext ( NodeID  cxt)
inline

Push context.

Definition at line 521 of file DPItem.h.

522 {
523 context.pushContext(cxt);
524 }
virtual bool pushContext(NodeID ctx)
Push context.
Definition DPItem.h:280

Member Data Documentation

◆ context

ContextCond SVF::CxtDPItem::context
private

Definition at line 481 of file DPItem.h.


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