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