mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
GH-111485: Test the new cases generator (GH-113252)
This commit is contained in:
parent
4a24bf9a13
commit
771903596b
8 changed files with 116 additions and 88 deletions
30
Python/generated_cases.c.h
generated
30
Python/generated_cases.c.h
generated
|
@ -678,7 +678,7 @@
|
|||
PyObject *stop;
|
||||
PyObject *start;
|
||||
PyObject *slice;
|
||||
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);
|
||||
|
@ -1161,7 +1161,7 @@
|
|||
PyObject *callargs;
|
||||
PyObject *func;
|
||||
PyObject *result;
|
||||
if (oparg & 1) { kwargs = stack_pointer[-((oparg & 1))]; }
|
||||
if (oparg & 1) { kwargs = stack_pointer[-((oparg & 1))]; }
|
||||
callargs = stack_pointer[-1 - ((oparg & 1))];
|
||||
func = stack_pointer[-3 - ((oparg & 1))];
|
||||
// DICT_MERGE is called before this opcode if there are kwargs.
|
||||
|
@ -3385,7 +3385,7 @@
|
|||
}
|
||||
}
|
||||
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));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3418,7 +3418,7 @@
|
|||
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));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3494,7 +3494,7 @@
|
|||
}
|
||||
/* Skip 5 cache entries */
|
||||
stack_pointer[-1] = attr;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
stack_pointer += ((oparg & 1));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3536,7 +3536,7 @@
|
|||
self = owner;
|
||||
}
|
||||
stack_pointer[-1] = attr;
|
||||
if (1) stack_pointer[0] = self;
|
||||
if (1) stack_pointer[0] = self;
|
||||
stack_pointer += (((1) ? 1 : 0));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3571,7 +3571,7 @@
|
|||
self = owner;
|
||||
}
|
||||
stack_pointer[-1] = attr;
|
||||
if (1) stack_pointer[0] = self;
|
||||
if (1) stack_pointer[0] = self;
|
||||
stack_pointer += (((1) ? 1 : 0));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3618,7 +3618,7 @@
|
|||
self = owner;
|
||||
}
|
||||
stack_pointer[-1] = attr;
|
||||
if (1) stack_pointer[0] = self;
|
||||
if (1) stack_pointer[0] = self;
|
||||
stack_pointer += (((1) ? 1 : 0));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3657,7 +3657,7 @@
|
|||
}
|
||||
/* Skip 5 cache entries */
|
||||
stack_pointer[-1] = attr;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
stack_pointer += ((oparg & 1));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3799,7 +3799,7 @@
|
|||
}
|
||||
/* Skip 5 cache entries */
|
||||
stack_pointer[-1] = attr;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
stack_pointer += ((oparg & 1));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -3855,7 +3855,7 @@
|
|||
}
|
||||
/* Skip 5 cache entries */
|
||||
stack_pointer[-1] = attr;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
if (oparg & 1) stack_pointer[0] = null;
|
||||
stack_pointer += ((oparg & 1));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -4083,7 +4083,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));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -4124,7 +4124,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));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -4158,7 +4158,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));
|
||||
DISPATCH();
|
||||
}
|
||||
|
@ -4286,7 +4286,7 @@
|
|||
null = NULL;
|
||||
}
|
||||
stack_pointer[-3] = attr;
|
||||
if (oparg & 1) stack_pointer[-2] = null;
|
||||
if (oparg & 1) stack_pointer[-2] = null;
|
||||
stack_pointer += -2 + ((oparg & 1));
|
||||
DISPATCH();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue