File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ fn HEY(x, y) -> (z) {
2
+ z = addmod(x, y, 3)
3
+ }
Original file line number Diff line number Diff line change @@ -258,12 +258,14 @@ impl BackwardsMachine {
258
258
} ;
259
259
260
260
if undoing_as_variant {
261
- let operands: Vec < _ > = info. nodes [ id] . operands . iter ( ) . rev ( ) . collect ( ) ;
262
- info. variants [ id]
261
+ let variant = info. variants [ id]
263
262
. as_ref ( )
264
- . expect ( "undoing_as_variant flag without variant" )
263
+ . expect ( "undoing_as_variant flag without variant" ) ;
264
+ let operands = & info. nodes [ id] . operands ;
265
+ variant
265
266
. iter ( )
266
- . for_each ( |op_index| push_to_stack ( operands[ * op_index] ) ) ;
267
+ . rev ( )
268
+ . for_each ( |op_index| push_to_stack ( & operands[ * op_index] ) ) ;
267
269
} else {
268
270
info. nodes [ id] . operands . iter ( ) . rev ( ) . for_each ( push_to_stack) ;
269
271
}
You can’t perform that action at this time.
0 commit comments