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

#include <ExactlyOneCommanderEncoder.h>

Inheritance diagram for smtrat::ExactlyOneCommanderEncoder:
Collaboration diagram for smtrat::ExactlyOneCommanderEncoder:

Public Member Functions

 ExactlyOneCommanderEncoder ()
 
Rational encodingSize (const ConstraintT &constraint)
 
bool canEncode (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

std::map< carl::Variable, std::vector< carl::Variable > > partition (carl::Variables)
 
ConstraintT normalizeLessConstraint (const ConstraintT &constraint)
 

Private Attributes

CardinalityEncoder mCardinalityEncoder
 

Detailed Description

Definition at line 8 of file ExactlyOneCommanderEncoder.h.

Constructor & Destructor Documentation

◆ ExactlyOneCommanderEncoder()

smtrat::ExactlyOneCommanderEncoder::ExactlyOneCommanderEncoder ( )
inline

Definition at line 13 of file ExactlyOneCommanderEncoder.h.

Member Function Documentation

◆ canEncode()

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

Implements smtrat::PseudoBoolEncoder.

Definition at line 17 of file ExactlyOneCommanderEncoder.cpp.

Here is the caller graph for this function:

◆ doEncode()

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

Implements smtrat::PseudoBoolEncoder.

Definition at line 32 of file ExactlyOneCommanderEncoder.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::ExactlyOneCommanderEncoder::encodingSize ( const ConstraintT constraint)
virtual

Reimplemented from smtrat::PseudoBoolEncoder.

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

Reimplemented from smtrat::PseudoBoolEncoder.

Definition at line 19 of file ExactlyOneCommanderEncoder.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:

◆ partition()

std::map< carl::Variable, std::vector< carl::Variable > > smtrat::ExactlyOneCommanderEncoder::partition ( carl::Variables  vars)
private

Definition at line 76 of file ExactlyOneCommanderEncoder.cpp.

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

Field Documentation

◆ mCardinalityEncoder

CardinalityEncoder smtrat::ExactlyOneCommanderEncoder::mCardinalityEncoder
private

Definition at line 10 of file ExactlyOneCommanderEncoder.h.

◆ 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: