19 static void addConstants(qi::symbols<char, types::ConstType>& constants);
void sort(T *array, int size, LessThan lt)
carl::mpl_variant_of< TermTypes >::type TermType
Variant type for all terms.
carl::mpl_variant_of< VariableTypes >::type VariableType
Variant type for all variables.
Class to create the formulas for axioms.
carl::Formula< Poly > FormulaT
Base class for all theories.
Implements the core theory of the booleans.
static void addConstants(qi::symbols< char, types::ConstType > &constants)
bool handleITE(const FormulaT &ifterm, const types::TermType &thenterm, const types::TermType &elseterm, types::TermType &result, TheoryError &errors)
Resolve an if-then-else operator.
static void addSimpleSorts(qi::symbols< char, carl::Sort > &sorts)
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.
boost::variant< carl::FormulaType > OperatorType
bool handleDistinct(const std::vector< types::TermType > &arguments, types::TermType &result, TheoryError &errors)
Resolve a distinct operator.
bool functionCall(const Identifier &identifier, const std::vector< types::TermType > &arguments, types::TermType &result, TheoryError &errors)
Resolve another unknown function call.