SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
|
The input formula a module has to consider for it's satisfiability check. More...
#include <ModuleInput.h>
Data Structures | |
struct | IteratorCompare |
Public Types | |
typedef super::iterator | iterator |
Passing through the list::iterator. More... | |
typedef super::const_iterator | const_iterator |
Passing through the list::const_iterator. More... | |
Public Member Functions | |
ModuleInput () | |
Constructs a module input. More... | |
carl::Condition | properties () const |
bool | is_constraint_conjunction () const |
bool | isConstraintLiteralConjunction () const |
bool | is_real_constraint_conjunction () const |
bool | isRealConstraintLiteralConjunction () const |
bool | is_integer_constraint_conjunction () const |
bool | isIntegerConstraintLiteralConjunction () const |
bool | containsBitVectorConstraints () const |
bool | containsBooleanVariables () const |
bool | containsRealVariables () const |
bool | containsIntegerVariables () const |
bool | containsUninterpretedEquations () const |
bool | is_only_propositional () const |
unsigned | satisfiedBy (const Model &_assignment) const |
unsigned | satisfiedBy (const RationalAssignment &_assignment) const |
const auto & | back () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
auto | rbegin () const |
auto | rend () const |
bool | empty () const |
size_t | size () const |
iterator | find (const FormulaT &_formula) |
const_iterator | find (const FormulaT &_formula) const |
iterator | find (const_iterator _hint, const FormulaT &_formula) |
const_iterator | find (const_iterator _hint, const FormulaT &_formula) const |
bool | contains (const FormulaT &_subformula) const |
void | updateProperties () |
Updates all properties of the formula underlying this module input. More... | |
void | gatherVariables (carl::carlVariables &vars) const |
operator FormulaT () const | |
void | addOrigin (iterator _formula, const FormulaT &_origin) |
iterator | erase (iterator _formula) |
void | clearOrigins (iterator _formula) |
bool | removeOrigin (iterator _formula, const FormulaT &_origin) |
bool | removeOrigins (iterator _formula, const std::shared_ptr< FormulasT > &_origins) |
std::pair< iterator, bool > | add (const FormulaT &_formula, bool _mightBeConjunction=true) |
std::pair< iterator, bool > | add (const FormulaT &_formula, const FormulaT &_origins, bool _mightBeConjunction=true) |
std::pair< iterator, bool > | add (const FormulaT &_formula, const std::shared_ptr< FormulasT > &_origins, bool _mightBeConjunction=true) |
std::pair< iterator, bool > | add (const FormulaT &_formula, bool _hasSingleOrigin, const FormulaT &_origin, const std::shared_ptr< FormulasT > &_origins, bool _mightBeConjunction=true) |
Private Types | |
typedef std::list< FormulaWithOrigins > | super |
Private Attributes | |
carl::Condition | mProperties |
Store some properties about the conjunction of the stored formulas. More... | |
bool | mPropertiesUpdated |
A flag indicating whether the properties of this module input are updated. More... | |
carl::FastMap< FormulaT, iterator > | mFormulaPositionMap |
Maps all formulas occurring (in the origins) at pos i in this module input to i. This is for a faster access. More... | |
T | elements |
STL member. More... | |
Friends | |
class | Module |
class | Manager |
The input formula a module has to consider for it's satisfiability check.
It is a list of formulas and semantically considered as their conjunction.
Definition at line 130 of file ModuleInput.h.
typedef super::const_iterator smtrat::ModuleInput::const_iterator |
Passing through the list::const_iterator.
Definition at line 146 of file ModuleInput.h.
typedef super::iterator smtrat::ModuleInput::iterator |
Passing through the list::iterator.
Definition at line 144 of file ModuleInput.h.
|
private |
Definition at line 138 of file ModuleInput.h.
|
inline |
Constructs a module input.
Definition at line 163 of file ModuleInput.h.
std::pair<iterator,bool> smtrat::ModuleInput::add | ( | const FormulaT & | _formula, |
bool | _hasSingleOrigin, | ||
const FormulaT & | _origin, | ||
const std::shared_ptr< FormulasT > & | _origins, | ||
bool | _mightBeConjunction = true |
||
) |
Definition at line 404 of file ModuleInput.h.
|
inline |
Definition at line 317 of file ModuleInput.h.
|
inline |
|
inline |
Definition at line 331 of file ModuleInput.h.
|
inline |
Definition at line 417 of file ModuleInput.h.
|
inline |
_subformula | The formula for which to check whether it is one of the stored formulas. |
Definition at line 372 of file ModuleInput.h.
|
inline |
Definition at line 245 of file ModuleInput.h.
|
inline |
Definition at line 254 of file ModuleInput.h.
|
inline |
Definition at line 272 of file ModuleInput.h.
|
inline |
Definition at line 263 of file ModuleInput.h.
|
inline |
Definition at line 281 of file ModuleInput.h.
|
inline |
|
inline |
|
inline |
Definition at line 336 of file ModuleInput.h.
ModuleInput::iterator smtrat::ModuleInput::erase | ( | iterator | _formula | ) |
Definition at line 98 of file ModuleInput.cpp.
ModuleInput::iterator smtrat::ModuleInput::find | ( | const FormulaT & | _formula | ) |
Definition at line 46 of file ModuleInput.cpp.
ModuleInput::const_iterator smtrat::ModuleInput::find | ( | const FormulaT & | _formula | ) | const |
ModuleInput::iterator smtrat::ModuleInput::find | ( | const_iterator | _hint, |
const FormulaT & | _formula | ||
) |
ModuleInput::const_iterator smtrat::ModuleInput::find | ( | const_iterator | _hint, |
const FormulaT & | _formula | ||
) | const |
|
inline |
|
inline |
Definition at line 185 of file ModuleInput.h.
|
inline |
Definition at line 227 of file ModuleInput.h.
|
inline |
Definition at line 290 of file ModuleInput.h.
|
inline |
Definition at line 209 of file ModuleInput.h.
|
inline |
Definition at line 197 of file ModuleInput.h.
|
inline |
Definition at line 236 of file ModuleInput.h.
|
inline |
Definition at line 218 of file ModuleInput.h.
|
inlineexplicit |
Definition at line 396 of file ModuleInput.h.
|
inline |
Definition at line 175 of file ModuleInput.h.
|
inline |
Definition at line 341 of file ModuleInput.h.
Definition at line 106 of file ModuleInput.cpp.
bool smtrat::ModuleInput::removeOrigins | ( | iterator | _formula, |
const std::shared_ptr< FormulasT > & | _origins | ||
) |
Definition at line 140 of file ModuleInput.cpp.
|
inline |
Definition at line 345 of file ModuleInput.h.
unsigned smtrat::ModuleInput::satisfiedBy | ( | const Model & | _assignment | ) | const |
_assignment | The model to check conjunction of the stored formulas against. |
Definition at line 33 of file ModuleInput.cpp.
unsigned smtrat::ModuleInput::satisfiedBy | ( | const RationalAssignment & | _assignment | ) | const |
_assignment | The assignment to check conjunction of the stored formulas against. |
Definition at line 15 of file ModuleInput.cpp.
|
inline |
Definition at line 354 of file ModuleInput.h.
void smtrat::ModuleInput::updateProperties | ( | ) |
Updates all properties of the formula underlying this module input.
Definition at line 167 of file ModuleInput.cpp.
|
friend |
Definition at line 134 of file ModuleInput.h.
|
friend |
Definition at line 132 of file ModuleInput.h.
|
inherited |
STL member.
Maps all formulas occurring (in the origins) at pos i in this module input to i. This is for a faster access.
Definition at line 156 of file ModuleInput.h.
|
private |
Store some properties about the conjunction of the stored formulas.
Definition at line 152 of file ModuleInput.h.
|
private |
A flag indicating whether the properties of this module input are updated.
Definition at line 154 of file ModuleInput.h.