8 template<
typename Rational,
typename Poly>
11 for (
auto var: vars) {
12 if (model.
find(var) == model.
end())
continue;
15 map.emplace(var, mv.
asRAN());
carl is the main namespace for the library.
std::map< Variable, T > Assignment
Assignment< typename Poly::RootType > collectRANIR(const std::set< Variable > &vars, const Model< Rational, Poly > &model)
Represent a collection of assignments/mappings from variables to values.
auto find(const typename Map::key_type &key) const
const ModelValue< Rational, Poly > & evaluated(const typename Map::key_type &key) const
Return the ModelValue for the given key, evaluated if it's a ModelSubstitution and evaluatable,...
Represent a sum type/variant over the different kinds of values that can be assigned to the different...
const Poly::RootType & asRAN() const