Skip to content

Commit 5b8a3d2

Browse files
authored
Merge pull request #6006 from tautschnig/invariant-set-todo
Add TODO in invariant_set seeking to understand magic number
2 parents 366989f + 0a8d1c8 commit 5b8a3d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/analyses/invariant_set.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ void invariant_sett::add_type_bounds(const exprt &expr, const typet &type)
364364
{
365365
std::size_t op_width=to_unsignedbv_type(type).get_width();
366366

367+
// TODO - 8 appears to be a magic number here -- or perhaps this should say
368+
// ">=" instead, and is meant to restrict types larger than a single byte?
367369
if(op_width<=8)
368370
{
369371
unsigned a;

0 commit comments

Comments
 (0)