@@ -76,8 +76,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
7676 constant_exprt size = from_integer (8 , size_type ());
7777
7878 std::vector<typet> types = {
79- // struct_typet({{"comp1", u16}, {"comp2", u16}}),
80- // struct_typet({{"comp1", u32}, {"comp2", u64}}),
79+ struct_typet ({{" comp1" , u16 }, {" comp2" , u16 }}),
80+ struct_typet ({{" comp1" , u32 }, {" comp2" , u64 }}),
8181#if 0
8282 // not currently handled: components not byte aligned
8383 struct_typet({{"comp1", u32},
@@ -86,8 +86,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
8686 {"comp2", u8}}),
8787#endif
8888 // union_typet({{"compA", u32}, {"compB", u64}}),
89- // c_enum_typet(u16),
90- // c_enum_typet(unsignedbv_typet(128)),
89+ c_enum_typet (u16 ),
90+ c_enum_typet (unsignedbv_typet (128 )),
9191 // array_typet(u8, size),
9292 // array_typet(s32, size),
9393 // array_typet(u64, size),
@@ -166,10 +166,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
166166 // REQUIRE(!has_subexpr(lower_be, ID_byte_extract_little_endian));
167167 // REQUIRE(!has_subexpr(lower_be, ID_byte_extract_big_endian));
168168 REQUIRE (lower_be.type () == be.type ());
169- // TODO: does not currently hold
170- // REQUIRE(lower_be == r);
171- // TODO: does not currently hold
172- // REQUIRE(lower_be_s == r);
169+ REQUIRE (lower_be == r);
170+ REQUIRE (lower_be_s == r);
173171 }
174172 }
175173 }
0 commit comments