SMT-RAT  24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
smtrat::ShortFormulaEncoder Class Reference

#include <ShortFormulaEncoder.h>

Inheritance diagram for smtrat::ShortFormulaEncoder:
Collaboration diagram for smtrat::ShortFormulaEncoder:

Public Member Functions

 ShortFormulaEncoder ()
 
bool canEncode (const ConstraintT &constraint)
 
Rational encodingSize (const ConstraintT &constraint)
 
std::string name ()
 
std::optional< FormulaTencode (const ConstraintT &constraint)
 Encodes an arbitrary constraint. More...
 

Data Fields

std::size_t problem_size
 

Protected Member Functions

std::optional< FormulaTdoEncode (const ConstraintT &constraint)
 
FormulaT generateVarChain (const std::set< carl::Variable > &vars, carl::FormulaType type)
 

Private Member Functions

ConstraintT normalizeLessConstraint (const ConstraintT &constraint)
 

Detailed Description

Definition at line 6 of file ShortFormulaEncoder.h.

Constructor & Destructor Documentation

◆ ShortFormulaEncoder()

smtrat::ShortFormulaEncoder::ShortFormulaEncoder ( )
inline

Definition at line 8 of file ShortFormulaEncoder.h.

Member Function Documentation

◆ canEncode()

bool smtrat::ShortFormulaEncoder::canEncode ( const ConstraintT constraint)
virtual

Implements smtrat::PseudoBoolEncoder.

Definition at line 103 of file ShortFormulaEncoder.cpp.

Here is the caller graph for this function:

◆ doEncode()

std::optional< FormulaT > smtrat::ShortFormulaEncoder::doEncode ( const ConstraintT constraint)
protectedvirtual

Implements smtrat::PseudoBoolEncoder.

Definition at line 4 of file ShortFormulaEncoder.cpp.

◆ encode()

std::optional< FormulaT > smtrat::PseudoBoolEncoder::encode ( const ConstraintT constraint)
inherited

Encodes an arbitrary constraint.

Returns
encoded formula

Definition at line 5 of file PseudoBoolEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ encodingSize()

Rational smtrat::ShortFormulaEncoder::encodingSize ( const ConstraintT constraint)
virtual

Reimplemented from smtrat::PseudoBoolEncoder.

Definition at line 107 of file ShortFormulaEncoder.cpp.

Here is the call graph for this function:

◆ generateVarChain()

FormulaT smtrat::PseudoBoolEncoder::generateVarChain ( const std::set< carl::Variable > &  vars,
carl::FormulaType  type 
)
protectedinherited

Definition at line 38 of file PseudoBoolEncoder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

std::string smtrat::ShortFormulaEncoder::name ( )
inlinevirtual

Reimplemented from smtrat::PseudoBoolEncoder.

Definition at line 14 of file ShortFormulaEncoder.h.

◆ normalizeLessConstraint()

ConstraintT smtrat::PseudoBoolEncoder::normalizeLessConstraint ( const ConstraintT constraint)
privateinherited

Definition at line 25 of file PseudoBoolEncoder.cpp.

Here is the caller graph for this function:

Field Documentation

◆ problem_size

std::size_t smtrat::PseudoBoolEncoder::problem_size
inherited

Definition at line 20 of file PseudoBoolEncoder.h.


The documentation for this class was generated from the following files: