Skip to content

Commit

Permalink
Merge pull request #8259 from diffblue/range-constants
Browse files Browse the repository at this point in the history
`format_expr` can now print range-typed constants
  • Loading branch information
tautschnig authored Apr 22, 2024
2 parents e8ebba3 + e531806 commit e64ef86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/format_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static std::ostream &format_rec(std::ostream &os, const constant_exprt &src)
type == ID_unsignedbv || type == ID_signedbv || type == ID_c_bool ||
type == ID_c_bit_field)
return os << *numeric_cast<mp_integer>(src);
else if(type == ID_integer || type == ID_natural)
else if(type == ID_integer || type == ID_natural || type == ID_range)
return os << src.get_value();
else if(type == ID_string)
return os << '"' << escape(id2string(src.get_value())) << '"';
Expand Down

0 comments on commit e64ef86

Please sign in to comment.