souffle
2.0.2-371-g6315b36
|
A Ram Analysis for determining the number of relational operations in a condition / expression. More...
#include <Complexity.h>
Public Member Functions | |
ComplexityAnalysis (const char *id) | |
int | getComplexity (const Node *value) const |
Get complexity of a RAM expression/condition. More... | |
void | run (const TranslationUnit &tUnit) override |
Run analysis for a RAM translation unit. More... | |
Public Member Functions inherited from souffle::ram::analysis::Analysis | |
Analysis (const char *id) | |
virtual const std::string & | getName () const |
get name of the analysis More... | |
virtual void | print (std::ostream &) const |
Print the analysis result in HTML format. More... | |
virtual | ~Analysis ()=default |
Static Public Attributes | |
static constexpr const char * | name = "complexity-analysis" |
Protected Attributes | |
RelationAnalysis * | ra {nullptr} |
Protected Attributes inherited from souffle::ram::analysis::Analysis | |
std::string | identifier |
name of analysis instance More... | |
A Ram Analysis for determining the number of relational operations in a condition / expression.
Definition at line 41 of file Complexity.h.
|
inline |
Definition at line 43 of file Complexity.h.
int souffle::ram::analysis::ComplexityAnalysis::getComplexity | ( | const Node * | value | ) | const |
Get complexity of a RAM expression/condition.
Definition at line 38 of file Complexity.cpp.
References souffle::ram::Conjunction::getLHS(), and souffle::ram::Conjunction::getRHS().
|
inlineoverridevirtual |
Run analysis for a RAM translation unit.
Implements souffle::ram::analysis::Analysis.
Definition at line 47 of file Complexity.h.
|
staticconstexpr |
Definition at line 45 of file Complexity.h.
|
protected |
Definition at line 57 of file Complexity.h.