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

#include <LongFormulaEncoder.h>

Inheritance diagram for smtrat::LongFormulaEncoder:
Collaboration diagram for smtrat::LongFormulaEncoder:

Public Member Functions

 LongFormulaEncoder ()
 
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 LongFormulaEncoder.h.

Constructor & Destructor Documentation

◆ LongFormulaEncoder()

smtrat::LongFormulaEncoder::LongFormulaEncoder ( )
inline

Definition at line 8 of file LongFormulaEncoder.h.

Member Function Documentation

◆ canEncode()

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

Implements smtrat::PseudoBoolEncoder.

Definition at line 96 of file LongFormulaEncoder.cpp.

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

◆ doEncode()

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

Implements smtrat::PseudoBoolEncoder.

Definition at line 4 of file LongFormulaEncoder.cpp.

Here is the call graph for this function:

◆ 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::LongFormulaEncoder::encodingSize ( const ConstraintT constraint)
virtual

Reimplemented from smtrat::PseudoBoolEncoder.

Definition at line 117 of file LongFormulaEncoder.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::LongFormulaEncoder::name ( )
inlinevirtual

Reimplemented from smtrat::PseudoBoolEncoder.

Definition at line 13 of file LongFormulaEncoder.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: