@@ -104,8 +104,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
104
104
constant_exprt size = from_integer (8 , size_type ());
105
105
106
106
std::vector<typet> types = {
107
- // struct_typet({{"comp1", u16}, {"comp2", u16}}),
108
- // struct_typet({{"comp1", u32}, {"comp2", u64}}),
107
+ struct_typet ({{" comp1" , u16}, {" comp2" , u16}}),
108
+ struct_typet ({{" comp1" , u32}, {" comp2" , u64}}),
109
109
#if 0
110
110
// not currently handled: components not byte aligned
111
111
struct_typet({{"comp1", u32},
@@ -114,8 +114,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
114
114
{"comp2", u8}}),
115
115
#endif
116
116
// union_typet({{"compA", u32}, {"compB", u64}}),
117
- // c_enum_typet(u16),
118
- // c_enum_typet(unsignedbv_typet(128)),
117
+ c_enum_typet (u16),
118
+ c_enum_typet (unsignedbv_typet (128 )),
119
119
// array_typet(u8, size),
120
120
// array_typet(s32, size),
121
121
// array_typet(u64, size),
@@ -193,10 +193,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
193
193
REQUIRE (!has_subexpr (lower_be, ID_byte_extract_little_endian));
194
194
REQUIRE (!has_subexpr (lower_be, ID_byte_extract_big_endian));
195
195
REQUIRE (lower_be.type () == be.type ());
196
- // TODO: does not currently hold
197
- // REQUIRE(lower_be == r);
198
- // TODO: does not currently hold
199
- // REQUIRE(lower_be_s == r);
196
+ REQUIRE (lower_be == r);
197
+ REQUIRE (lower_be_s == r);
200
198
}
201
199
}
202
200
}
0 commit comments