22 {
"binary",
"trivial"},
27 {
"series",
"distributive"},
49 return "distributive";
66 while (is && isalnum(is.peek()))
74 return std::max(i1, i2);
Associative plus commutativity, and "idempotence" for add.
Linear plus distribution. Used for series identities.
An expressionset can implement several different sets of identities on expressions.
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
identities(ids_t id=deflt)
Distributive plus optimizations.
identities meet(identities i1, identities i2)
More restricted of these identities (min).
A mapping from strings to Values.
Trivial, plus associativity of add and product.
std::istream & operator>>(std::istream &is, identities &i)
Read from string form.
#define BUILTIN_UNREACHABLE()
std::string to_string(identities i)
Wrapper around operator<<.
std::ostream & operator<<(std::ostream &o, type_t t)
Print a expression type.
Strictly obey to the syntax.