fix(library/simplifier/rewrite_rule_set): avoid compiler specific behavior

This commit is contained in:
Leonardo de Moura 2015-06-01 22:23:34 -07:00
parent d6997300f1
commit b2f8d2000c
2 changed files with 4 additions and 2 deletions

View file

@ -28,7 +28,9 @@ format rewrite_rule::pp(formatter const & fmt) const {
r += format("#") + format(length(m_metas));
if (m_is_permutation)
r += space() + format("perm");
r += group(comma() + space() + fmt(m_lhs) + space() + format("") + pp_indent_expr(fmt, m_rhs));
format r1 = comma() + space() + fmt(m_lhs);
r1 += space() + format("") + pp_indent_expr(fmt, m_rhs);
r += group(r1);
return r;
}

View file

@ -1,2 +1,2 @@
rewrite rules for eq
#2 perm, nat.add ?M_2 ?M_1 ↦ nat.add ?M_1 ?M_2
#2 perm, nat.add ?M_1 ?M_2 ↦ nat.add ?M_2 ?M_1