@@ -370,20 +370,20 @@ dummy_func(void) {
370370 res = sym_new_type (ctx , & PyUnicode_Type );
371371 }
372372
373- op (_BINARY_OP_SUBSCR_TUPLE_INT , (left , right -- res )) {
374- assert (sym_matches_type (left , & PyTuple_Type ));
375- if (sym_is_const (ctx , right )) {
376- assert (PyLong_CheckExact (sym_get_const (ctx , right )));
377- long index = PyLong_AsLong (sym_get_const (ctx , right ));
373+ op (_BINARY_OP_SUBSCR_TUPLE_INT , (tuple_st , sub_st -- res )) {
374+ assert (sym_matches_type (tuple_st , & PyTuple_Type ));
375+ if (sym_is_const (ctx , sub_st )) {
376+ assert (PyLong_CheckExact (sym_get_const (ctx , sub_st )));
377+ long index = PyLong_AsLong (sym_get_const (ctx , sub_st ));
378378 assert (index >= 0 );
379- int tuple_length = sym_tuple_length (left );
379+ int tuple_length = sym_tuple_length (tuple_st );
380380 if (tuple_length == -1 ) {
381381 // Unknown length
382382 res = sym_new_not_null (ctx );
383383 }
384384 else {
385385 assert (index < tuple_length );
386- res = sym_tuple_getitem (ctx , left , index );
386+ res = sym_tuple_getitem (ctx , tuple_st , index );
387387 }
388388 }
389389 else {
0 commit comments