GH-111485: Test the new cases generator (GH-113252)

This commit is contained in:
Mark Shannon 2023-12-18 11:14:40 +00:00 committed by GitHub
parent 4a24bf9a13
commit 771903596b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 116 additions and 88 deletions

View file

@ -1126,7 +1126,7 @@
}
null = NULL;
stack_pointer[0] = res;
if (oparg & 1) stack_pointer[1] = null;
if (oparg & 1) stack_pointer[1] = null;
stack_pointer += 1 + ((oparg & 1));
break;
}
@ -1162,7 +1162,7 @@
STAT_INC(LOAD_GLOBAL, hit);
null = NULL;
stack_pointer[0] = res;
if (oparg & 1) stack_pointer[1] = null;
if (oparg & 1) stack_pointer[1] = null;
stack_pointer += 1 + ((oparg & 1));
break;
}
@ -1180,7 +1180,7 @@
STAT_INC(LOAD_GLOBAL, hit);
null = NULL;
stack_pointer[0] = res;
if (oparg & 1) stack_pointer[1] = null;
if (oparg & 1) stack_pointer[1] = null;
stack_pointer += 1 + ((oparg & 1));
break;
}
@ -1612,7 +1612,7 @@
if (attr == NULL) goto pop_1_error_tier_two;
}
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = self_or_null;
if (oparg & 1) stack_pointer[0] = self_or_null;
stack_pointer += ((oparg & 1));
break;
}
@ -1652,7 +1652,7 @@
null = NULL;
Py_DECREF(owner);
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = null;
if (oparg & 1) stack_pointer[0] = null;
stack_pointer += ((oparg & 1));
break;
}
@ -1686,7 +1686,7 @@
null = NULL;
Py_DECREF(owner);
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = null;
if (oparg & 1) stack_pointer[0] = null;
stack_pointer += ((oparg & 1));
break;
}
@ -1730,7 +1730,7 @@
null = NULL;
Py_DECREF(owner);
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = null;
if (oparg & 1) stack_pointer[0] = null;
stack_pointer += ((oparg & 1));
break;
}
@ -1750,7 +1750,7 @@
null = NULL;
Py_DECREF(owner);
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = null;
if (oparg & 1) stack_pointer[0] = null;
stack_pointer += ((oparg & 1));
break;
}
@ -1778,7 +1778,7 @@
null = NULL;
Py_DECREF(owner);
stack_pointer[-1] = attr;
if (oparg & 1) stack_pointer[0] = null;
if (oparg & 1) stack_pointer[0] = null;
stack_pointer += ((oparg & 1));
break;
}
@ -2467,7 +2467,7 @@
assert(_PyType_HasFeature(Py_TYPE(attr), Py_TPFLAGS_METHOD_DESCRIPTOR));
self = owner;
stack_pointer[-1] = attr;
if (1) stack_pointer[0] = self;
if (1) stack_pointer[0] = self;
stack_pointer += (((1) ? 1 : 0));
break;
}
@ -2487,7 +2487,7 @@
attr = Py_NewRef(descr);
self = owner;
stack_pointer[-1] = attr;
if (1) stack_pointer[0] = self;
if (1) stack_pointer[0] = self;
stack_pointer += (((1) ? 1 : 0));
break;
}
@ -2550,7 +2550,7 @@
attr = Py_NewRef(descr);
self = owner;
stack_pointer[-1] = attr;
if (1) stack_pointer[0] = self;
if (1) stack_pointer[0] = self;
stack_pointer += (((1) ? 1 : 0));
break;
}
@ -3199,7 +3199,7 @@
PyObject *start;
PyObject *slice;
oparg = CURRENT_OPARG();
if (oparg == 3) { step = stack_pointer[-(((oparg == 3) ? 1 : 0))]; }
if (oparg == 3) { step = stack_pointer[-(((oparg == 3) ? 1 : 0))]; }
stop = stack_pointer[-1 - (((oparg == 3) ? 1 : 0))];
start = stack_pointer[-2 - (((oparg == 3) ? 1 : 0))];
slice = PySlice_New(start, stop, step);