We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57de946 commit 0a157ddCopy full SHA for 0a157dd
src/ansi-c/c_typecheck_expr.cpp
@@ -2671,10 +2671,11 @@ exprt c_typecheck_baset::do_special_functions(
2671
if(
2672
tmp1.id() == ID_typecast &&
2673
to_typecast_expr(tmp1).op().id() == ID_address_of &&
2674
- to_typecast_expr(tmp1).op().operands().size() == 1 &&
2675
- to_typecast_expr(tmp1).op().op0().id() == ID_index &&
2676
- to_typecast_expr(tmp1).op().op0().operands().size() == 2 &&
2677
- to_typecast_expr(tmp1).op().op0().op0().id() == ID_string_constant)
+ to_address_of_expr(to_typecast_expr(tmp1).op()).object().id() ==
+ ID_index &&
+ to_index_expr(to_address_of_expr(to_typecast_expr(tmp1).op()).object())
+ .array()
2678
+ .id() == ID_string_constant)
2679
{
2680
is_constant=true;
2681
}
0 commit comments