Skip to content

Commit 782e9a9

Browse files
committed
constant_interval_exprt now recognizes integer_typet
This enables using unbounded integers instead of bitvectors for architecture-independent constants.
1 parent d8b909b commit 782e9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/interval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ bool constant_interval_exprt::is_numeric(
10941094

10951095
bool constant_interval_exprt::is_int(const typet &type)
10961096
{
1097-
return (is_signed(type) || is_unsigned(type));
1097+
return is_signed(type) || is_unsigned(type) || type.id() == ID_integer;
10981098
}
10991099

11001100
bool constant_interval_exprt::is_float(const typet &src)

0 commit comments

Comments
 (0)