3 #include "../ModelSubstitution.h"
4 #include "../evaluation/ModelEvaluation.h"
7 template<
typename Rational,
typename Poly>
20 return createSubstitutionPtr<Rational,Poly,ModelMVRootSubstitution>(
mRoot);
33 virtual void print(std::ostream& os)
const {
carl is the main namespace for the library.
std::unique_ptr< ModelSubstitution< Rational, Poly > > ModelSubstitutionPtr
const Poly & poly() const noexcept
Represent a sum type/variant of an (in)equality between a variable on the left-hand side and multivar...
Represent a collection of assignments/mappings from variables to values.
virtual ModelValue< Rational, Poly > evaluateSubstitution(const Model< Rational, Poly > &m) const
Evaluate this substitution with respect to the given model.
virtual void multiplyBy(const Rational &)
Multiply this model substitution by a rational.
virtual void print(std::ostream &os) const
Print this substitution to the given output stream.
virtual Formula< Poly > representingFormula(const ModelVariable &mv)
virtual bool dependsOn(const ModelVariable &var) const
Check if this substitution needs the given model variable.
ModelMVRootSubstitution(const MVRoot &r)
virtual void add(const Rational &)
Add a rational to this model substitution.
virtual ModelSubstitutionPtr< Rational, Poly > clone() const
Create a copy of this model substitution.
Represent a expression for a ModelValue with variables as placeholders, where the final expression's ...
const ModelValue< Rational, Poly > & evaluate(const Model< Rational, Poly > &model) const
Represent a sum type/variant over the different kinds of values that can be assigned to the different...
Represent a sum type/variant over the different kinds of variables that exist in CARL to use them in ...
carl::Variable asVariable() const