carl
24.04
Computer ARithmetic Library
|
#include <FormulaContent.h>
Public Member Functions | |
~FormulaContent () | |
Destructor. More... | |
std::size_t | hash () const |
std::size_t | id () const |
bool | is_nary () const |
bool | operator== (const FormulaContent &_content) const |
Private Member Functions | |
FormulaContent ()=delete | |
FormulaContent (const FormulaContent &)=delete | |
FormulaContent (FormulaContent &&o) | |
FormulaContent (FormulaType _type, std::size_t _id=0) | |
Constructs the formula (true), if the given bool is true and the formula (false) otherwise. More... | |
FormulaContent (Variable _variable) | |
Constructs a formula being a variable. More... | |
FormulaContent (Constraint< Pol > &&_constraint) | |
Constructs a formula being a constraint. More... | |
FormulaContent (VariableComparison< Pol > &&_variableComparison) | |
FormulaContent (VariableAssignment< Pol > &&_variableAssignment) | |
FormulaContent (BVConstraint &&_constraint) | |
Constructs a formula being a bitvector constraint. More... | |
FormulaContent (UEquality &&_ueq) | |
Constructs a formula being an uninterpreted equality. More... | |
FormulaContent (FormulaType _type, Formula< Pol > &&_subformula) | |
Constructs a formula of the given type with a single subformula. More... | |
FormulaContent (FormulaType _type, const std::initializer_list< Formula< Pol >> &_subformula) | |
FormulaContent (FormulaType _type, Formulas< Pol > &&_subformula) | |
FormulaContent (FormulaType _type, std::vector< carl::Variable > &&_vars, const Formula< Pol > &_term) | |
Constructs a quantifier expression: (exists (vars) term) or (forall (vars) term) More... | |
Private Attributes | |
size_t | mHash = 0 |
The hash value. More... | |
size_t | mId = 0 |
The unique id. More... | |
double | mActivity = 0.0 |
The activity for this formula, which means, how much is this formula involved in the solving procedure. More... | |
size_t | mUsages = 0 |
The number of formulas existing with this content. More... | |
FormulaType | mType |
The type of this formula. More... | |
std::variant< carl::Variable, Constraint< Pol >, VariableComparison< Pol >, VariableAssignment< Pol >, BVConstraint, UEquality, Formula< Pol >, Formulas< Pol >, QuantifierContent< Pol > > | mContent |
The content of this formula. More... | |
const FormulaContent< Pol > * | mNegation = nullptr |
The negation. More... | |
Condition | mProperties |
The propositions of this formula. More... | |
Variables * | mpVariables = nullptr |
Container collecting the variables which occur in this formula. More... | |
Friends | |
class | Formula< Pol > |
class | FormulaPool< Pol > |
template<typename P > | |
std::ostream & | operator<< (std::ostream &os, const FormulaContent< P > &f) |
Definition at line 124 of file FormulaContent.h.
|
privatedelete |
|
privatedelete |
|
inlineprivate |
Definition at line 169 of file FormulaContent.h.
|
private |
Constructs the formula (true), if the given bool is true and the formula (false) otherwise.
_true | Specifies whether to create the formula (true) or (false). |
_id | A unique id of the formula to create. |
|
private |
Constructs a formula being a variable.
_variable |
|
private |
Constructs a formula being a constraint.
_constraint | The pointer to the constraint. |
|
private |
|
private |
|
private |
Constructs a formula being a bitvector constraint.
_constraint | The pointer to the constraint. |
|
private |
Constructs a formula being an uninterpreted equality.
_ueq | The pointer to the constraint. |
|
private |
Constructs a formula of the given type with a single subformula.
This is usually a negation.
|
private |
|
private |
|
private |
Constructs a quantifier expression: (exists (vars) term) or (forall (vars) term)
_type | The type of the quantifier to construct. |
_vars | The variables that are bound. |
_term | The term in which the variables are bound. |
|
inline |
Destructor.
Definition at line 229 of file FormulaContent.h.
|
inline |
|
inline |
Definition at line 237 of file FormulaContent.h.
|
inline |
bool carl::FormulaContent< Pol >::operator== | ( | const FormulaContent< Pol > & | _content | ) | const |
Definition at line 117 of file FormulaContent.h.
|
friend |
Definition at line 117 of file FormulaContent.h.
|
friend |
|
mutableprivate |
The activity for this formula, which means, how much is this formula involved in the solving procedure.
Definition at line 139 of file FormulaContent.h.
|
private |
The content of this formula.
Definition at line 153 of file FormulaContent.h.
|
private |
The hash value.
Definition at line 135 of file FormulaContent.h.
|
private |
The unique id.
Definition at line 137 of file FormulaContent.h.
|
private |
The negation.
Definition at line 155 of file FormulaContent.h.
|
private |
The propositions of this formula.
Definition at line 157 of file FormulaContent.h.
|
mutableprivate |
Container collecting the variables which occur in this formula.
Definition at line 165 of file FormulaContent.h.
|
private |
The type of this formula.
Definition at line 143 of file FormulaContent.h.
|
mutableprivate |
The number of formulas existing with this content.
Definition at line 141 of file FormulaContent.h.