@@ -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),
@@ -166,10 +166,8 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
166
166
// REQUIRE(!has_subexpr(lower_be, ID_byte_extract_little_endian));
167
167
// REQUIRE(!has_subexpr(lower_be, ID_byte_extract_big_endian));
168
168
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);
173
171
}
174
172
}
175
173
}
0 commit comments