Skip to content

Commit e967fd0

Browse files
committed
Don't warn on array_of_expr with zero length
These result from array_set instructions, which when targeting variable-length arrays can end up targeting zero-sized arrays.
1 parent ae74767 commit e967fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/flattening/boolbv_array_of.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bvt boolbvt::convert_array_of(const array_of_exprt &expr)
2525
std::size_t width=boolbv_width(array_type);
2626

2727
if(width==0)
28-
return conversion_failed(expr);
28+
return bvt();
2929

3030
const exprt &array_size=array_type.size();
3131

0 commit comments

Comments
 (0)