We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b3d18 commit 7849645Copy full SHA for 7849645
src/solvers/flattening/boolbv_abs.cpp
@@ -16,24 +16,20 @@ Author: Daniel Kroening, [email protected]
16
17
bvt boolbvt::convert_abs(const exprt &expr)
18
{
19
- std::size_t width=boolbv_width(expr.type());
+ const std::size_t width = boolbv_width(expr.type());
20
21
if(width==0)
22
return conversion_failed(expr);
23
24
const exprt::operandst &operands=expr.operands();
25
-
26
- if(operands.size()!=1)
27
- throw "abs takes one operand";
28
+ DATA_INVARIANT(operands.size() == 1, "abs takes one operand");
29
const exprt &op0=expr.op0();
30
31
const bvt &op_bv=convert_bv(op0);
32
33
if(op0.type()!=expr.type())
34
35
36
- bvtypet bvtype=get_bvtype(expr.type());
+ const bvtypet bvtype = get_bvtype(expr.type());
37
38
if(bvtype==bvtypet::IS_FIXED ||
39
bvtype==bvtypet::IS_SIGNED ||
0 commit comments