16 template <
typename ExpSet>
18 is_valid(
const ExpSet&
rs,
const typename ExpSet::value_t& e)
27 catch (
const std::runtime_error& e)
31 if (std::strstr(e.what(),
"not supported:"))
32 raise(
"is_valid", strchr(e.what(),
':'));
34 if (!std::strstr(e.what(),
"value is not starrable"))
35 std::cerr <<
"warning: is_valid: unexpected error: "
46 template <
typename ExpSet>
50 const auto& e = exp->as<ExpSet>();
bool is_valid_expression(const expression &exp)
Bridge (is_valid).
bool is_valid(const Aut &aut)
weight_t_of< ExpSet > constant_term(const ExpSet &rs, const typename ExpSet::value_t &e)
The constant term of e.
value_impl< detail::expression_tag > expression