File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
bvt boolbvt::convert_array (const exprt &expr)
14
14
{
15
- std::size_t width=boolbv_width (expr.type ());
15
+ const std::size_t width = boolbv_width (expr.type ());
16
+ const exprt::operandst &operands = expr.operands ();
16
17
17
- if (width== 0 )
18
- return conversion_failed (expr );
18
+ if (operands. empty () && width == 0 )
19
+ return bvt ( );
19
20
20
21
if (expr.type ().id ()==ID_array)
21
22
{
@@ -24,7 +25,7 @@ bvt boolbvt::convert_array(const exprt &expr)
24
25
" the bit width being nonzero implies that the array has a nonzero size "
25
26
" in which case the array shall have operands" );
26
27
const exprt::operandst &operands=expr.operands ();
27
- std::size_t op_width= width/ operands.size ();
28
+ const std::size_t op_width = width / operands.size ();
28
29
29
30
bvt bv;
30
31
bv.reserve (width);
You can’t perform that action at this time.
0 commit comments