File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,20 @@ Author: Daniel Kroening, kroening@kroening.com
16
16
17
17
bvt boolbvt::convert_abs (const exprt &expr)
18
18
{
19
- std::size_t width= boolbv_width (expr.type ());
19
+ const std::size_t width = boolbv_width (expr.type ());
20
20
21
21
if (width==0 )
22
22
return conversion_failed (expr);
23
23
24
24
const exprt::operandst &operands=expr.operands ();
25
-
26
- if (operands.size ()!=1 )
27
- throw " abs takes one operand" ;
28
-
25
+ DATA_INVARIANT (operands.size () == 1 , " abs takes one operand" );
29
26
const exprt &op0=expr.op0 ();
30
-
31
27
const bvt &op_bv=convert_bv (op0);
32
28
33
29
if (op0.type ()!=expr.type ())
34
30
return conversion_failed (expr);
35
31
36
- bvtypet bvtype= get_bvtype (expr.type ());
32
+ const bvtypet bvtype = get_bvtype (expr.type ());
37
33
38
34
if (bvtype==bvtypet::IS_FIXED ||
39
35
bvtype==bvtypet::IS_SIGNED ||
You can’t perform that action at this time.
0 commit comments