#include <DPItem.h>
Context Condition
Definition at line 207 of file DPItem.h.
◆ const_iterator
◆ ContextCond() [1/3]
| SVF::ContextCond::ContextCond |
( |
| ) |
|
|
inline |
◆ ContextCond() [2/3]
| SVF::ContextCond::ContextCond |
( |
const ContextCond & | cond | ) |
|
|
inline |
Copy Constructor.
Definition at line 216 of file DPItem.h.
◆ ContextCond() [3/3]
| SVF::ContextCond::ContextCond |
( |
ContextCond && | cond | ) |
|
|
inlinenoexcept |
Move Constructor.
Definition at line 220 of file DPItem.h.
◆ ~ContextCond()
| virtual SVF::ContextCond::~ContextCond |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
Begin iterators.
Definition at line 351 of file DPItem.h.
◆ containCallStr()
| bool SVF::ContextCond::containCallStr |
( |
NodeID | cxt | ) |
const |
|
inline |
Whether contains callstring cxt.
Definition at line 256 of file DPItem.h.
◆ cxtSize()
| u32_t SVF::ContextCond::cxtSize |
( |
| ) |
const |
|
inline |
Get context size.
Definition at line 261 of file DPItem.h.
◆ end()
End iterators.
Definition at line 356 of file DPItem.h.
◆ getContexts() [1/2]
◆ getContexts() [2/2]
| const CallStrCxt & SVF::ContextCond::getContexts |
( |
| ) |
const |
|
inline |
◆ getMaxPathLen()
| u32_t SVF::ContextCond::getMaxPathLen |
( |
| ) |
const |
|
inline |
Definition at line 275 of file DPItem.h.
276 {
278 }
static u32_t maximumPathLen
◆ isConcreteCxt()
| bool SVF::ContextCond::isConcreteCxt |
( |
| ) |
const |
|
inline |
Whether it is an concrete context.
Definition at line 246 of file DPItem.h.
◆ matchContext()
| virtual bool SVF::ContextCond::matchContext |
( |
NodeID | ctx | ) |
|
|
inlinevirtual |
Match context.
if context is empty, then it is the unbalanced parentheses match
otherwise, we perform balanced parentheses matching
Definition at line 304 of file DPItem.h.
305 {
308 return true;
311 {
313 return true;
314 }
315 return false;
316 }
◆ operator!=()
| bool SVF::ContextCond::operator!= |
( |
const ContextCond & | rhs | ) |
const |
|
inline |
Overloading operator!=.
Definition at line 346 of file DPItem.h.
347 {
348 return !(*this==rhs);
349 }
◆ operator<()
| bool SVF::ContextCond::operator< |
( |
const ContextCond & | 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 320 of file DPItem.h.
◆ operator=() [1/2]
Overloading operator=.
Definition at line 331 of file DPItem.h.
332 {
333 if(*this!=rhs)
334 {
337 }
338 return *this;
339 }
◆ operator=() [2/2]
Move operator=.
Definition at line 222 of file DPItem.h.
223 {
224 if(this!=&cond)
225 {
226 context = std::move(cond.context);
228 }
229 return *this;
230 }
◆ operator==()
| bool SVF::ContextCond::operator== |
( |
const ContextCond & | rhs | ) |
const |
|
inline |
Overloading operator==.
Definition at line 341 of file DPItem.h.
342 {
343 return (
context == rhs.getContexts());
344 }
◆ operator[]()
| NodeID SVF::ContextCond::operator[] |
( |
const u32_t | index | ) |
const |
|
inline |
Overloading operator[].
Definition at line 325 of file DPItem.h.
◆ pushContext()
| virtual bool SVF::ContextCond::pushContext |
( |
NodeID | ctx | ) |
|
|
inlinevirtual |
Push context.
handle out of context limit case
Definition at line 280 of file DPItem.h.
281 {
282
284 {
286
289 return true;
290 }
291 else
292 {
294 {
298 }
299 return false;
300 }
301 }
static u32_t maximumCxtLen
void setNonConcreteCxt()
Whether it is an concrete context.
◆ setMaxCxtLen()
| void SVF::ContextCond::setMaxCxtLen |
( |
u32_t | max | ) |
|
|
inlinestatic |
set max context limit
Definition at line 266 of file DPItem.h.
◆ setMaxPathLen()
| void SVF::ContextCond::setMaxPathLen |
( |
u32_t | max | ) |
|
|
inlinestatic |
set max path limit
Definition at line 271 of file DPItem.h.
◆ setNonConcreteCxt()
| void SVF::ContextCond::setNonConcreteCxt |
( |
| ) |
|
|
inline |
Whether it is an concrete context.
Definition at line 251 of file DPItem.h.
◆ toString()
| std::string SVF::ContextCond::toString |
( |
| ) |
const |
|
inline |
Dump context condition.
Definition at line 361 of file DPItem.h.
362 {
363 std::string str;
364 std::stringstream rawstr(str);
365 rawstr << "[:";
366 for(CallStrCxt::const_iterator it =
context.begin(), eit =
context.end(); it!=eit; ++it)
367 {
368 rawstr << *it << " ";
369 }
370 rawstr << " ]";
371 return rawstr.str();
372 }
◆ concreteCxt
| bool SVF::ContextCond::concreteCxt |
|
protected |
◆ context
◆ maximumCxt
| u32_t ContextCond::maximumCxt = 0 |
|
static |
◆ maximumCxtLen
| u32_t ContextCond::maximumCxtLen = 0 |
|
staticprotected |
◆ maximumPath
| u32_t ContextCond::maximumPath = 0 |
|
static |
◆ maximumPathLen
| u32_t ContextCond::maximumPathLen = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: