|
15 | 15 |
|
16 | 16 | #include <solvers/lowering/expr_lowering.h> |
17 | 17 |
|
18 | | -#include "bv_endianness_map.h" |
19 | | - |
20 | 18 | bvt boolbvt::convert_byte_update(const byte_update_exprt &expr) |
21 | 19 | { |
22 | 20 | // if we update (from) an unbounded array, lower the expression as the array |
@@ -67,8 +65,8 @@ bvt boolbvt::convert_byte_update(const byte_update_exprt &expr) |
67 | 65 | } |
68 | 66 | else |
69 | 67 | { |
70 | | - bv_endianness_mapt map_op(op.type(), false, ns, boolbv_width); |
71 | | - bv_endianness_mapt map_value(value.type(), false, ns, boolbv_width); |
| 68 | + endianness_mapt map_op = endianness_map(op.type(), false); |
| 69 | + endianness_mapt map_value = endianness_map(value.type(), false); |
72 | 70 |
|
73 | 71 | const std::size_t offset_i = numeric_cast_v<std::size_t>(offset); |
74 | 72 |
|
@@ -99,8 +97,8 @@ bvt boolbvt::convert_byte_update(const byte_update_exprt &expr) |
99 | 97 | offset_expr, from_integer(offset / byte_width, offset_expr.type())); |
100 | 98 | literalt equal=convert(equality); |
101 | 99 |
|
102 | | - bv_endianness_mapt map_op(op.type(), little_endian, ns, boolbv_width); |
103 | | - bv_endianness_mapt map_value(value.type(), little_endian, ns, boolbv_width); |
| 100 | + endianness_mapt map_op = endianness_map(op.type(), little_endian); |
| 101 | + endianness_mapt map_value = endianness_map(value.type(), little_endian); |
104 | 102 |
|
105 | 103 | for(std::size_t bit=0; bit<update_width; bit++) |
106 | 104 | if(offset+bit<bv.size()) |
|
0 commit comments