File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2801,16 +2801,16 @@ std::string expr2ct::convert_code_for(
2801
2801
std::string dest=indent_str (indent);
2802
2802
dest+=" for(" ;
2803
2803
2804
- if (!src.op0 ().is_nil ())
2805
- dest+= convert (src.op0 ());
2804
+ if (!src.init ().is_nil ())
2805
+ dest += convert (src.init ());
2806
2806
else
2807
2807
dest+=' ' ;
2808
2808
dest+=" ; " ;
2809
- if (!src.op1 ().is_nil ())
2810
- dest+= convert (src.op1 ());
2809
+ if (!src.cond ().is_nil ())
2810
+ dest += convert (src.cond ());
2811
2811
dest+=" ; " ;
2812
- if (!src.op2 ().is_nil ())
2813
- dest+= convert (src.op2 ());
2812
+ if (!src.iter ().is_nil ())
2813
+ dest += convert (src.iter ());
2814
2814
2815
2815
if (src.body ().is_nil ())
2816
2816
dest+=" );\n " ;
Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ void goto_convertt::convert_for(
952
952
// do the x label
953
953
goto_programt tmp_x;
954
954
955
- if (code.op2 ().is_nil ())
955
+ if (code.iter ().is_nil ())
956
956
{
957
957
tmp_x.add_instruction (SKIP);
958
958
tmp_x.instructions .back ().source_location =code.source_location ();
You can’t perform that action at this time.
0 commit comments