File tree 1 file changed +21
-11
lines changed 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ std::ostream &format_rec(
165
165
<< to_member_expr (expr).get_component_name ();
166
166
else if (id == ID_symbol)
167
167
return os << to_symbol_expr (expr).get_identifier ();
168
+ else if (id == ID_type)
169
+ return format_rec (os, expr.type ());
168
170
else if (id == ID_forall || id == ID_exists)
169
171
return os << id << ' ' << format (to_quantifier_expr (expr).symbol ()) << " : "
170
172
<< format (to_quantifier_expr (expr).symbol ().type ()) << " . "
@@ -199,22 +201,30 @@ std::ostream &format_rec(
199
201
}
200
202
else
201
203
{
202
- if (!expr.has_operands ())
203
- return os << id;
204
+ os << id;
204
205
205
- os << id << ' (' ;
206
- bool first = true ;
206
+ for (const auto &s : expr.get_named_sub ())
207
+ if (s.first !=ID_type)
208
+ os << ' ' << s.first << " =\" " << s.second .id () << ' "' ;
207
209
208
- for ( const auto &op : expr.operands ())
210
+ if ( expr.has_operands ())
209
211
{
210
- if (first)
211
- first = false ;
212
- else
213
- os << " , " ;
212
+ os << id << ' (' ;
213
+ bool first = true ;
214
214
215
- os << format (op);
215
+ for (const auto &op : expr.operands ())
216
+ {
217
+ if (first)
218
+ first = false ;
219
+ else
220
+ os << " , " ;
221
+
222
+ os << format (op);
223
+ }
224
+
225
+ os << ' )' ;
216
226
}
217
227
218
- return os << ' ) ' ;
228
+ return os;
219
229
}
220
230
}
You can’t perform that action at this time.
0 commit comments