#include <ExplainProvenance.h>
|
virtual Own< TreeNode > | explain (std::string relName, std::vector< std::string > tuple, size_t depthLimit)=0 |
|
virtual Own< TreeNode > | explainNegation (std::string relName, size_t ruleNum, const std::vector< std::string > &tuple, std::map< std::string, std::string > &bodyVariables)=0 |
|
virtual std::vector< std::string > | explainNegationGetVariables (std::string relName, std::vector< std::string > args, size_t ruleNum)=0 |
|
| ExplainProvenance (SouffleProgram &prog) |
|
virtual Own< TreeNode > | explainSubproof (std::string relName, RamDomain label, size_t depthLimit)=0 |
|
virtual std::string | getRule (std::string relName, size_t ruleNum)=0 |
|
virtual std::vector< std::string > | getRules (const std::string &relName)=0 |
|
virtual std::string | measureRelation (std::string relName)=0 |
|
virtual void | printRulesJSON (std::ostream &os)=0 |
|
virtual void | queryProcess (const std::vector< std::pair< std::string, std::vector< std::string >>> &rels)=0 |
| Process query with given arguments. More...
|
|
virtual void | setup ()=0 |
|
virtual | ~ExplainProvenance ()=default |
|
|
std::vector< RamDomain > | argsToNums (const std::string &relName, const std::vector< std::string > &args) const |
|
std::vector< std::string > | decodeArguments (const std::string &relName, const std::vector< RamDomain > &nums) const |
| Decode arguments from their ram representation and return as strings. More...
|
|
RamDomain | valueRead (const char type, const std::string &value) const |
|
std::string | valueShow (const char type, const RamDomain value) const |
|
Definition at line 165 of file ExplainProvenance.h.
◆ ExplainProvenance()
souffle::ExplainProvenance::ExplainProvenance |
( |
SouffleProgram & |
prog | ) |
|
|
inline |
◆ ~ExplainProvenance()
virtual souffle::ExplainProvenance::~ExplainProvenance |
( |
| ) |
|
|
virtualdefault |
◆ argsToNums()
std::vector<RamDomain> souffle::ExplainProvenance::argsToNums |
( |
const std::string & |
relName, |
|
|
const std::vector< std::string > & |
args |
|
) |
| const |
|
inlineprotected |
Definition at line 200 of file ExplainProvenance.h.
214 const std::string& relName,
const std::vector<RamDomain>& nums)
const {
◆ decodeArguments()
std::vector<std::string> souffle::ExplainProvenance::decodeArguments |
( |
const std::string & |
relName, |
|
|
const std::vector< RamDomain > & |
nums |
|
) |
| const |
|
inlineprotected |
Decode arguments from their ram representation and return as strings.
Definition at line 219 of file ExplainProvenance.h.
231 case 'i':
return tfm::format(
"%d", ramBitCast<RamSigned>(value));
232 case 'u':
return tfm::format(
"%d", ramBitCast<RamUnsigned>(value));
233 case 'f':
return tfm::format(
"%f", ramBitCast<RamFloat>(value));
◆ explain()
virtual Own<TreeNode> souffle::ExplainProvenance::explain |
( |
std::string |
relName, |
|
|
std::vector< std::string > |
tuple, |
|
|
size_t |
depthLimit |
|
) |
| |
|
pure virtual |
◆ explainNegation()
virtual Own<TreeNode> souffle::ExplainProvenance::explainNegation |
( |
std::string |
relName, |
|
|
size_t |
ruleNum, |
|
|
const std::vector< std::string > & |
tuple, |
|
|
std::map< std::string, std::string > & |
bodyVariables |
|
) |
| |
|
pure virtual |
◆ explainNegationGetVariables()
virtual std::vector<std::string> souffle::ExplainProvenance::explainNegationGetVariables |
( |
std::string |
relName, |
|
|
std::vector< std::string > |
args, |
|
|
size_t |
ruleNum |
|
) |
| |
|
pure virtual |
◆ explainSubproof()
virtual Own<TreeNode> souffle::ExplainProvenance::explainSubproof |
( |
std::string |
relName, |
|
|
RamDomain |
label, |
|
|
size_t |
depthLimit |
|
) |
| |
|
pure virtual |
◆ getRule()
virtual std::string souffle::ExplainProvenance::getRule |
( |
std::string |
relName, |
|
|
size_t |
ruleNum |
|
) |
| |
|
pure virtual |
◆ getRules()
virtual std::vector<std::string> souffle::ExplainProvenance::getRules |
( |
const std::string & |
relName | ) |
|
|
pure virtual |
◆ measureRelation()
virtual std::string souffle::ExplainProvenance::measureRelation |
( |
std::string |
relName | ) |
|
|
pure virtual |
◆ printRulesJSON()
virtual void souffle::ExplainProvenance::printRulesJSON |
( |
std::ostream & |
os | ) |
|
|
pure virtual |
◆ queryProcess()
virtual void souffle::ExplainProvenance::queryProcess |
( |
const std::vector< std::pair< std::string, std::vector< std::string >>> & |
rels | ) |
|
|
pure virtual |
◆ setup()
virtual void souffle::ExplainProvenance::setup |
( |
| ) |
|
|
pure virtual |
◆ valueRead()
RamDomain souffle::ExplainProvenance::valueRead |
( |
const char |
type, |
|
|
const std::string & |
value |
|
) |
| const |
|
inlineprotected |
◆ valueShow()
std::string souffle::ExplainProvenance::valueShow |
( |
const char |
type, |
|
|
const RamDomain |
value |
|
) |
| const |
|
inlineprotected |
◆ prog
◆ symTable
The documentation for this class was generated from the following file: