Skip to content

Commit a986139

Browse files
committed
Flattening: support index expressions over zero bitwidth arrays
There is not really anything wrong in having empty bitvectors, which we otherwise already support (as of e021eef).
1 parent bd45729 commit a986139

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/solvers/flattening/boolbv_index.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ bvt boolbvt::convert_index(const index_exprt &expr)
3636

3737
std::size_t width=boolbv_width(expr.type());
3838

39-
if(width==0)
40-
return conversion_failed(expr);
41-
4239
// see if the array size is constant
4340

4441
if(is_unbounded_array(array_type))
@@ -290,9 +287,6 @@ bvt boolbvt::convert_index(
290287

291288
std::size_t width = boolbv_width(array_type.element_type());
292289

293-
if(width==0)
294-
return conversion_failed(array);
295-
296290
// TODO: If the underlying array can use one of the
297291
// improvements given above then it may be better to use
298292
// the array theory for short chains of updates and then

0 commit comments

Comments
 (0)