Skip to content

Commit 1b9a1d3

Browse files
author
Daniel Kroening
committed
solver back-end can now do floatbv_typecast from c_bit_field
1 parent 37a8720 commit 1b9a1d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/solvers/flattening/boolbv_floatbv_op.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ bvt boolbvt::convert_floatbv_typecast(const floatbv_typecast_exprt &expr)
2929
if(src_type==dest_type) // redundant type cast?
3030
return bv0;
3131

32+
if(src_type.id()==ID_c_bit_field)
33+
{
34+
// go through underlying type
35+
return convert_floatbv_typecast(
36+
floatbv_typecast_exprt(typecast_exprt(op0, src_type.subtype()), op1, dest_type));
37+
}
38+
3239
float_utilst float_utils(prop);
3340

3441
float_utils.set_rounding_mode(convert_bv(op1));

0 commit comments

Comments
 (0)