Skip to content

Commit 9c94cb3

Browse files
Correcting initialization of floatbv_typecast_exprt
This was calling initializer of binary_exprt that resize the operators to size 2 without filling them up, which resulted in 4 operands instead of 2 for floatbv_typecast_exprt, with two of them being empty.
1 parent 4a2876b commit 9c94cb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util/std_expr.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1790,9 +1790,8 @@ class floatbv_typecast_exprt:public binary_exprt
17901790
floatbv_typecast_exprt(
17911791
const exprt &op,
17921792
const exprt &rounding,
1793-
const typet &_type):binary_exprt(ID_floatbv_typecast, _type)
1793+
const typet &_type):binary_exprt(op, ID_floatbv_typecast, rounding, _type)
17941794
{
1795-
copy_to_operands(op, rounding);
17961795
}
17971796

17981797
exprt &op()

0 commit comments

Comments
 (0)