File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2453,6 +2453,9 @@ iteration_statement:
2453
2453
statement ($$, ID_while);
2454
2454
parser_stack ($$).add_to_operands (std::move (parser_stack ($3 )), std::move (parser_stack ($8 )));
2455
2455
2456
+ if (!parser_stack ($5 ).operands ().empty ())
2457
+ static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_assigns)).operands ().swap (parser_stack ($5 ).operands ());
2458
+
2456
2459
if (!parser_stack ($6 ).operands ().empty ())
2457
2460
static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_loop_invariant)).operands ().swap (parser_stack ($6 ).operands ());
2458
2461
@@ -2468,6 +2471,9 @@ iteration_statement:
2468
2471
statement ($$, ID_dowhile);
2469
2472
parser_stack ($$).add_to_operands (std::move (parser_stack ($5 )), std::move (parser_stack ($2 )));
2470
2473
2474
+ if (!parser_stack ($7 ).operands ().empty ())
2475
+ static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_assigns)).operands ().swap (parser_stack ($7 ).operands ());
2476
+
2471
2477
if (!parser_stack ($8 ).operands ().empty ())
2472
2478
static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_loop_invariant)).operands ().swap (parser_stack ($8 ).operands ());
2473
2479
@@ -2499,6 +2505,9 @@ iteration_statement:
2499
2505
mto ($$, $7 );
2500
2506
mto ($$, $12 );
2501
2507
2508
+ if (!parser_stack ($9 ).operands ().empty ())
2509
+ static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_assigns)).operands ().swap (parser_stack ($9 ).operands ());
2510
+
2502
2511
if (!parser_stack ($10 ).operands ().empty ())
2503
2512
static_cast <exprt &>(parser_stack ($$).add (ID_C_spec_loop_invariant)).operands ().swap (parser_stack ($10 ).operands ());
2504
2513
You can’t perform that action at this time.
0 commit comments