souffle
2.0.2-371-g6315b36
|
Eliminates duplicated conjunctive terms. More...
#include <EliminateDuplicates.h>
Public Member Functions | |
bool | eliminateDuplicates (Program &program) |
Eliminate duplicated conjunctive terms. 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... | |
Eliminates duplicated conjunctive terms.
For example ..
will be rewritten to
assuming that C1 and C2 are equal.
Definition at line 53 of file EliminateDuplicates.h.
bool souffle::ram::transform::EliminateDuplicatesTransformer::eliminateDuplicates | ( | Program & | program | ) |
Eliminate duplicated conjunctive terms.
program | Program that is transformed |
Definition at line 35 of file EliminateDuplicates.cpp.
References souffle::clone(), souffle::filter(), i, j, souffle::ram::toCondition(), and souffle::ram::toConjunctionList().
|
inlineoverridevirtual |
@Brief get name of the transformer
Implements souffle::ram::transform::Transformer.
Definition at line 55 of file EliminateDuplicates.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 67 of file EliminateDuplicates.h.