dlinear
0.0.1
Delta-complete SMT solver for linear programming
|
IfThenElseEliminator class. More...
#include <IfThenElseEliminator.h>
Public Member Functions | |
Formula | Process (const Formula &f) |
Returns a equisatisfiable formula by eliminating if-then-expressions in f by introducing new variables. | |
Public Member Functions inherited from dlinear::GenericFormulaVisitor< Formula, Args... > | |
const IterationStats & | stats () const |
Get read-only access to the statistics of the FormulaVisitor. | |
const Config & | config () const |
Get read-only access to the configuration of the FormulaVisitor. | |
Public Member Functions inherited from dlinear::GenericExpressionVisitor< Expression, const Formula & > | |
const IterationStats & | stats () const |
Get read-only access to the statistics of the GenericExpressionVisitor. | |
const Config & | config () const |
Get read-only access to the configuration of the GenericExpressionVisitor. | |
Private Attributes | |
std::vector< Formula > | added_formulas_ |
The added formulas introduced by the elimination process. | |
std::unordered_set< Variable > | ite_variables_ |
The variables introduced by the elimination process. | |
std::unordered_map< Expression, Variable > | ite_to_var_ |
Mapping from ITE to the corresponding variable obtained by ITE elimination. | |
std::unordered_map< Variable, Formula > | ite_var_to_formulas_ |
Mapping from ITE to the corresponding variable obtained by ITE elimination. | |
std::size_t | counter_ |
Counter for the number of introduced variables. | |
Additional Inherited Members | |
Protected Member Functions inherited from dlinear::FormulaVisitor< const Formula & > | |
FormulaVisitor (const Config &config, const std::string &class_name="FormulaVisitor") | |
Construct a new FormulaVisitor object with the given config . | |
Protected Member Functions inherited from dlinear::GenericFormulaVisitor< Formula, Args... > | |
GenericFormulaVisitor (const Config &config, const std::string &class_name="GenericFormulaVisitor") | |
Construct a new FormulaVisitor object with the given config . | |
Protected Attributes inherited from dlinear::GenericFormulaVisitor< Formula, Args... > | |
const Config & | config_ |
Configuration. | |
IterationStats | stats_ |
Statistics. | |
Protected Attributes inherited from dlinear::GenericExpressionVisitor< Expression, const Formula & > | |
const Config & | config_ |
Configuration. | |
IterationStats | stats_ |
Statistics. | |
IfThenElseEliminator class.
Eliminate If-Then-Else expressions by introducing new variables.
Definition at line 28 of file IfThenElseEliminator.h.
Returns a equisatisfiable formula by eliminating if-then-expressions in f
by introducing new variables.
f | Formula to be processed. |
Definition at line 21 of file IfThenElseEliminator.cpp.
|
mutableprivate |
The added formulas introduced by the elimination process.
Resets after each call to Process.
Definition at line 93 of file IfThenElseEliminator.h.