We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb28030 commit 25ef8c4Copy full SHA for 25ef8c4
src/solvers/flattening/boolbv_array.cpp
@@ -11,17 +11,16 @@ Author: Daniel Kroening, [email protected]
11
12
bvt boolbvt::convert_array(const exprt &expr)
13
{
14
- std::size_t width=boolbv_width(expr.type());
+ const std::size_t width = boolbv_width(expr.type());
15
+ const exprt::operandst &operands = expr.operands();
16
- if(width==0)
17
- return conversion_failed(expr);
+ if(operands.empty() && width == 0)
18
+ return bvt();
19
20
if(expr.type().id()==ID_array)
21
- assert(expr.has_operands());
22
- const exprt::operandst &operands=expr.operands();
23
assert(!operands.empty());
24
- std::size_t op_width=width/operands.size();
+ const std::size_t op_width = width / operands.size();
25
26
bvt bv;
27
bv.reserve(width);
0 commit comments