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.
2 parents 59730ab + 3c117db commit 9f021d1Copy full SHA for 9f021d1
src/ansi-c/c_typecheck_expr.cpp
@@ -2672,10 +2672,11 @@ exprt c_typecheck_baset::do_special_functions(
2672
if(
2673
tmp1.id() == ID_typecast &&
2674
to_typecast_expr(tmp1).op().id() == ID_address_of &&
2675
- to_typecast_expr(tmp1).op().operands().size() == 1 &&
2676
- to_typecast_expr(tmp1).op().op0().id() == ID_index &&
2677
- to_typecast_expr(tmp1).op().op0().operands().size() == 2 &&
2678
- 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()
2679
+ .id() == ID_string_constant)
2680
{
2681
is_constant=true;
2682
}
0 commit comments