SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
|
#include <MixedSignEncoder.h>
Public Member Functions | |
MixedSignEncoder () | |
bool | canEncode (const ConstraintT &constraint) |
Rational | encodingSize (const ConstraintT &constraint) |
std::string | name () |
std::optional< FormulaT > | encode (const ConstraintT &constraint) |
Encodes an arbitrary constraint. More... | |
Data Fields | |
std::size_t | problem_size |
Protected Member Functions | |
std::optional< FormulaT > | doEncode (const ConstraintT &constraint) |
FormulaT | generateVarChain (const std::set< carl::Variable > &vars, carl::FormulaType type) |
Private Member Functions | |
FormulaT | findSubEncoding (const ConstraintT &constraint) |
std::vector< Rational > | calculateSubsetsums (const std::vector< TermT > &terms) |
void | calculateSubsetsums (const std::vector< TermT > &terms, size_t leftIndex, std::set< Rational > &result, Rational sum=0) |
ConstraintT | normalizeLessConstraint (const ConstraintT &constraint) |
Private Attributes | |
LongFormulaEncoder | mLongFormulaEncoder |
ShortFormulaEncoder | mShortFormulaEncoder |
CardinalityEncoder | mCardinalityEncoder |
PseudoBoolNormalizer | mNormalizer |
Definition at line 10 of file MixedSignEncoder.h.
|
inline |
Definition at line 12 of file MixedSignEncoder.h.
|
virtual |
Implements smtrat::PseudoBoolEncoder.
Definition at line 99 of file MixedSignEncoder.cpp.
|
protectedvirtual |
Implements smtrat::PseudoBoolEncoder.
Definition at line 4 of file MixedSignEncoder.cpp.
|
inherited |
Encodes an arbitrary constraint.
Definition at line 5 of file PseudoBoolEncoder.cpp.
|
virtual |
Reimplemented from smtrat::PseudoBoolEncoder.
Definition at line 118 of file MixedSignEncoder.cpp.
|
private |
Definition at line 165 of file MixedSignEncoder.cpp.
|
protectedinherited |
Definition at line 38 of file PseudoBoolEncoder.cpp.
|
inlinevirtual |
Reimplemented from smtrat::PseudoBoolEncoder.
Definition at line 17 of file MixedSignEncoder.h.
|
privateinherited |
|
private |
Definition at line 26 of file MixedSignEncoder.h.
|
private |
Definition at line 24 of file MixedSignEncoder.h.
|
private |
Definition at line 27 of file MixedSignEncoder.h.
|
private |
Definition at line 25 of file MixedSignEncoder.h.
|
inherited |
Definition at line 20 of file PseudoBoolEncoder.h.