SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
|
Implements the core theory of the booleans. More...
#include <Core.h>
Public Types | |
using | OperatorType = boost::variant< carl::FormulaType > |
Public Member Functions | |
CoreTheory (ParserState *state) | |
bool | declareVariable (const std::string &name, const carl::Sort &sort, types::VariableType &result, TheoryError &errors) |
Declare a new variable with the given name and the given sort. More... | |
bool | handleITE (const FormulaT &ifterm, const types::TermType &thenterm, const types::TermType &elseterm, types::TermType &result, TheoryError &errors) |
Resolve an if-then-else operator. More... | |
bool | handleDistinct (const std::vector< types::TermType > &arguments, types::TermType &result, TheoryError &errors) |
Resolve a distinct operator. More... | |
bool | functionCall (const Identifier &identifier, const std::vector< types::TermType > &arguments, types::TermType &result, TheoryError &errors) |
Resolve another unknown function call. More... | |
virtual bool | resolveSymbol (const Identifier &, types::TermType &, TheoryError &errors) |
Resolve a symbol that was not declared within the ParserState. More... | |
template<typename T , typename Builder > | |
FormulaT | expandDistinct (const std::vector< T > &values, const Builder &neqBuilder) |
virtual bool | instantiate (const types::VariableType &, const types::TermType &, types::TermType &, TheoryError &errors) |
Instantiate a variable within a term. More... | |
virtual bool | refreshVariable (const types::VariableType &, types::VariableType &, TheoryError &errors) |
virtual bool | declareQuantifiedTerm (const std::vector< std::pair< std::string, carl::Sort >> &, const carl::FormulaType &, const types::TermType &, types::TermType &, TheoryError &errors) |
Resolve a quantified term. More... | |
Static Public Member Functions | |
static void | addSimpleSorts (qi::symbols< char, carl::Sort > &sorts) |
static void | addConstants (qi::symbols< char, types::ConstType > &constants) |
Data Fields | |
ParserState * | state |
using smtrat::parser::CoreTheory::OperatorType = boost::variant<carl::FormulaType> |
smtrat::parser::CoreTheory::CoreTheory | ( | ParserState * | state | ) |
|
static |
|
static |
|
inlinevirtualinherited |
Resolve a quantified term.
Reimplemented in smtrat::parser::ArithmeticTheory.
Definition at line 103 of file AbstractTheory.h.
|
virtual |
Declare a new variable with the given name and the given sort.
Reimplemented from smtrat::parser::AbstractTheory.
Definition at line 97 of file Core.cpp.
|
inlineinherited |
|
virtual |
Resolve another unknown function call.
Reimplemented from smtrat::parser::AbstractTheory.
Definition at line 136 of file Core.cpp.
|
virtual |
Resolve a distinct operator.
Reimplemented from smtrat::parser::AbstractTheory.
Definition at line 127 of file Core.cpp.
|
virtual |
Resolve an if-then-else operator.
Reimplemented from smtrat::parser::AbstractTheory.
Definition at line 113 of file Core.cpp.
|
inlinevirtualinherited |
Instantiate a variable within a term.
Reimplemented in smtrat::parser::BitvectorTheory, and smtrat::parser::ArithmeticTheory.
Definition at line 84 of file AbstractTheory.h.
|
inlinevirtualinherited |
Reimplemented in smtrat::parser::BitvectorTheory.
Definition at line 88 of file AbstractTheory.h.
|
inlinevirtualinherited |
Resolve a symbol that was not declared within the ParserState.
This might be a symbol that actually uses indices, for example bitvector constants.
Reimplemented in smtrat::parser::BitvectorTheory.
Definition at line 53 of file AbstractTheory.h.
|
inherited |
Definition at line 37 of file AbstractTheory.h.