@@ -76,8 +76,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
76
76
constant_exprt size = from_integer (8 , size_type ());
77
77
78
78
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}}),
81
81
#if 0
82
82
// not currently handled: components not byte aligned
83
83
struct_typet({{"comp1", u32},
@@ -86,8 +86,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
86
86
{"comp2", u8}}),
87
87
#endif
88
88
// 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 )),
91
91
// array_typet(u8, size),
92
92
// array_typet(s32, size),
93
93
// array_typet(u64, size),
@@ -157,10 +157,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
157
157
// TODO: does not currently hold
158
158
// REQUIRE(!has_subexpr(lower_be, ID_byte_extract_little_endian));
159
159
REQUIRE (lower_be.type () == be.type ());
160
- // TODO: does not currently hold
161
- // REQUIRE(lower_be == r);
162
- // TODO: does not currently hold
163
- // REQUIRE(lower_be_s == r);
160
+ REQUIRE (lower_be == r);
161
+ REQUIRE (lower_be_s == r);
164
162
}
165
163
}
166
164
}
0 commit comments