11 template<
typename T,
typename Rational,
typename Poly>
12 T
substitute(
const T& t,
const Model<Rational,Poly>& m);
14 template<
typename T,
typename Rational,
typename Poly>
15 ModelValue<Rational,Poly>
evaluate(
const T& t,
const Model<Rational,Poly>& m);
35 template<
typename T,
typename Rational,
typename Poly>
46 template<
typename T,
typename Rational,
typename Poly>
52 res = res.
asRAN().value();
57 template<
typename T,
typename Rational,
typename Poly>
61 return mv.asBool() ? 1 : 0;
carl is the main namespace for the library.
unsigned satisfied_by(const BasicConstraint< Pol > &c, const Assignment< typename Pol::NumberType > &_assignment)
Checks whether the given assignment satisfies this constraint.
bool evaluate(const BasicConstraint< Poly > &c, const Assignment< Number > &m)
Coeff substitute(const Monomial &m, const std::map< Variable, Coeff > &substitutions)
Applies the given substitutions to a monomial.
void evaluate_inplace(ModelValue< Rational, Poly > &res, BVTerm &bvt, const Model< Rational, Poly > &m)
Evaluates a bitvector term to a ModelValue over a Model.
void substitute_inplace(MultivariateRoot< Poly > &mr, Variable var, const Poly &poly)
Create a copy of the underlying polynomial with the given variable replaced by the given polynomial.
Represent a collection of assignments/mappings from variables to values.
Represent a sum type/variant over the different kinds of values that can be assigned to the different...
const Poly::RootType & asRAN() const