souffle
2.0.2-371-g6315b36
|
Transforms Conjunctions into consecutive filter operations. More...
#include <ExpandFilter.h>
Public Member Functions | |
bool | expandFilters (Program &program) |
Expand filter operations. More... | |
std::string | getName () const override |
@Brief get name of the transformer More... | |
Public Member Functions inherited from souffle::ram::transform::Transformer | |
bool | apply (TranslationUnit &translationUnit) |
@Brief apply the transformer to a translation unit @Param translationUnit that will be transformed. More... | |
virtual | ~Transformer ()=default |
Protected Member Functions | |
bool | transform (TranslationUnit &translationUnit) override |
@Brief transform the translation unit / used by apply @Param translationUnit that will be transformed. More... | |
Transforms Conjunctions into consecutive filter operations.
For example ..
will be rewritten to
Definition at line 52 of file ExpandFilter.h.
bool souffle::ram::transform::ExpandFilterTransformer::expandFilters | ( | Program & | program | ) |
Expand filter operations.
program | Program that is transformed |
Definition at line 37 of file ExpandFilter.cpp.
References souffle::clone(), souffle::filter(), and souffle::ram::toConjunctionList().
|
inlineoverridevirtual |
@Brief get name of the transformer
Implements souffle::ram::transform::Transformer.
Definition at line 54 of file ExpandFilter.h.
|
inlineoverrideprotectedvirtual |
@Brief transform the translation unit / used by apply @Param translationUnit that will be transformed.
@Return flag reporting whether the RAM program has changed
Implements souffle::ram::transform::Transformer.
Definition at line 66 of file ExpandFilter.h.