@@ -370,20 +370,20 @@ dummy_func(void) {
370
370
res = sym_new_type (ctx , & PyUnicode_Type );
371
371
}
372
372
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 ));
378
378
assert (index >= 0 );
379
- int tuple_length = sym_tuple_length (left );
379
+ int tuple_length = sym_tuple_length (tuple_st );
380
380
if (tuple_length == -1 ) {
381
381
// Unknown length
382
382
res = sym_new_not_null (ctx );
383
383
}
384
384
else {
385
385
assert (index < tuple_length );
386
- res = sym_tuple_getitem (ctx , left , index );
386
+ res = sym_tuple_getitem (ctx , tuple_st , index );
387
387
}
388
388
}
389
389
else {
0 commit comments