@@ -241,14 +241,14 @@ std::ostream &format_rec(std::ostream &os, const exprt &expr)
241
241
id == ID_byte_extract_little_endian || id == ID_byte_extract_big_endian)
242
242
{
243
243
const auto &byte_extract_expr = to_byte_extract_expr (expr);
244
- return os << id << " ( " << format (byte_extract_expr.op ()) << " , "
244
+ return os << id << ' ( ' << format (byte_extract_expr.op ()) << " , "
245
245
<< format (byte_extract_expr.offset ()) << " , "
246
246
<< format (byte_extract_expr.type ()) << ' )' ;
247
247
}
248
248
else if (id == ID_byte_update_little_endian || id == ID_byte_update_big_endian)
249
249
{
250
250
const auto &byte_update_expr = to_byte_update_expr (expr);
251
- return os << id << " ( " << format (byte_update_expr.op ()) << " , "
251
+ return os << id << ' ( ' << format (byte_update_expr.op ()) << " , "
252
252
<< format (byte_update_expr.offset ()) << " , "
253
253
<< format (byte_update_expr.value ()) << " , "
254
254
<< format (byte_update_expr.type ()) << ' )' ;
@@ -299,8 +299,9 @@ std::ostream &format_rec(std::ostream &os, const exprt &expr)
299
299
else if (id == ID_if)
300
300
{
301
301
const auto &if_expr = to_if_expr (expr);
302
- return os << format (if_expr.cond ()) << ' ?' << format (if_expr.true_case ())
303
- << ' :' << format (if_expr.false_case ());
302
+ return os << ' (' << format (if_expr.cond ()) << " ? "
303
+ << format (if_expr.true_case ()) << " : "
304
+ << format (if_expr.false_case ()) << ' )' ;
304
305
}
305
306
else if (id == ID_code)
306
307
{
0 commit comments