Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SVF::MTA::RacePair Struct Reference

A race pair: two statements that may race. More...

#include <MTA.h>

Public Member Functions

 RacePair (const SVFStmt *s1, const SVFStmt *s2)
 
bool operator< (const RacePair &other) const
 

Static Public Member Functions

static bool statementLess (const SVFStmt *lhs, const SVFStmt *rhs)
 

Public Attributes

const SVFStmtstmt1
 
const SVFStmtstmt2
 

Detailed Description

A race pair: two statements that may race.

Definition at line 111 of file MTA.h.

Constructor & Destructor Documentation

◆ RacePair()

SVF::MTA::RacePair::RacePair ( const SVFStmt s1,
const SVFStmt s2 
)
inline

Definition at line 115 of file MTA.h.

116 : stmt1(statementLess(s2, s1) ? s2 : s1),
118 {
119 }
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76
const SVFStmt * stmt2
Definition MTA.h:114
static bool statementLess(const SVFStmt *lhs, const SVFStmt *rhs)
Definition MTA.h:121
const SVFStmt * stmt1
Definition MTA.h:113

Member Function Documentation

◆ operator<()

bool SVF::MTA::RacePair::operator< ( const RacePair other) const
inline

Definition at line 126 of file MTA.h.

127 {
128 if (stmt1->getEdgeID() != other.stmt1->getEdgeID())
129 return stmt1->getEdgeID() < other.stmt1->getEdgeID();
130 return stmt2->getEdgeID() < other.stmt2->getEdgeID();
131 }
EdgeID getEdgeID() const
Return Edge ID.

◆ statementLess()

static bool SVF::MTA::RacePair::statementLess ( const SVFStmt lhs,
const SVFStmt rhs 
)
inlinestatic

Definition at line 121 of file MTA.h.

122 {
123 return lhs->getEdgeID() < rhs->getEdgeID();
124 }

Member Data Documentation

◆ stmt1

const SVFStmt* SVF::MTA::RacePair::stmt1

Definition at line 113 of file MTA.h.

◆ stmt2

const SVFStmt* SVF::MTA::RacePair::stmt2

Definition at line 114 of file MTA.h.


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