We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5fc351 commit 2064849Copy full SHA for 2064849
src/solvers/flattening/boolbv_width.cpp
@@ -194,10 +194,7 @@ const boolbv_widtht::entryt &boolbv_widtht::get_entry(const typet &type) const
194
// no width
195
}
196
else if(type_id==ID_pointer)
197
- {
198
- entry.total_width=to_pointer_type(type).get_width();
199
- DATA_INVARIANT(entry.total_width!=0, "pointer must have width");
200
- }
+ entry.total_width = type_checked_cast<pointer_typet>(type).get_width();
201
else if(type_id==ID_symbol)
202
entry=get_entry(ns.follow(type));
203
else if(type_id==ID_struct_tag)
0 commit comments