Coverage Report

Created: 2026-09-01 06:32

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/cpython3/Objects/enumobject.c
Line
Count
Source
1
/* enumerate object */
2
3
#include "Python.h"
4
#include "pycore_call.h"          // _PyObject_CallNoArgs()
5
#include "pycore_long.h"          // _PyLong_GetOne()
6
#include "pycore_modsupport.h"    // _PyArg_NoKwnames()
7
#include "pycore_object.h"        // _PyObject_GC_TRACK()
8
#include "pycore_unicodeobject.h" // _PyUnicode_EqualToASCIIString
9
#include "pycore_tuple.h"         // _PyTuple_Recycle()
10
11
#include "clinic/enumobject.c.h"
12
13
/*[clinic input]
14
class enumerate "enumobject *" "&PyEnum_Type"
15
class reversed "reversedobject *" "&PyReversed_Type"
16
[clinic start generated code]*/
17
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=d2dfdf1a88c88975]*/
18
19
typedef struct {
20
    PyObject_HEAD
21
    Py_ssize_t en_index;           /* current index of enumeration */
22
    PyObject* en_sit;              /* secondary iterator of enumeration */
23
    PyObject* en_result;           /* result tuple  */
24
    PyObject* en_longindex;        /* index for sequences >= PY_SSIZE_T_MAX */
25
    PyObject* one;                 /* borrowed reference */
26
} enumobject;
27
28
13.4M
#define _enumobject_CAST(op)    ((enumobject *)(op))
29
30
/*[clinic input]
31
@classmethod
32
enumerate.__new__ as enum_new
33
34
    iterable: object
35
        an object supporting iteration
36
    start: object = 0
37
38
Return an enumerate object.
39
40
The enumerate object yields pairs containing a count (from start, which
41
defaults to zero) and a value yielded by the iterable argument.
42
43
enumerate is useful for obtaining an indexed list:
44
    (0, seq[0]), (1, seq[1]), (2, seq[2]), ...
45
[clinic start generated code]*/
46
47
static PyObject *
48
enum_new_impl(PyTypeObject *type, PyObject *iterable, PyObject *start)
49
/*[clinic end generated code: output=e95e6e439f812c10 input=782e4911efcb8acf]*/
50
3.23M
{
51
3.23M
    enumobject *en;
52
53
3.23M
    en = (enumobject *)type->tp_alloc(type, 0);
54
3.23M
    if (en == NULL)
55
0
        return NULL;
56
3.23M
    if (start != NULL) {
57
0
        start = PyNumber_Index(start);
58
0
        if (start == NULL) {
59
0
            Py_DECREF(en);
60
0
            return NULL;
61
0
        }
62
0
        assert(PyLong_Check(start));
63
0
        en->en_index = PyLong_AsSsize_t(start);
64
0
        if (en->en_index == -1 && PyErr_Occurred()) {
65
0
            PyErr_Clear();
66
0
            en->en_index = PY_SSIZE_T_MAX;
67
0
            en->en_longindex = start;
68
0
        } else {
69
0
            en->en_longindex = NULL;
70
0
            Py_DECREF(start);
71
0
        }
72
3.23M
    } else {
73
3.23M
        en->en_index = 0;
74
3.23M
        en->en_longindex = NULL;
75
3.23M
    }
76
3.23M
    en->en_sit = PyObject_GetIter(iterable);
77
3.23M
    if (en->en_sit == NULL) {
78
0
        Py_DECREF(en);
79
0
        return NULL;
80
0
    }
81
3.23M
    en->en_result = _PyTuple_FromPairSteal(Py_None, Py_None);
82
3.23M
    if (en->en_result == NULL) {
83
0
        Py_DECREF(en);
84
0
        return NULL;
85
0
    }
86
3.23M
    en->one = _PyLong_GetOne();    /* borrowed reference */
87
3.23M
    return (PyObject *)en;
88
3.23M
}
89
90
static int check_keyword(PyObject *kwnames, int index,
91
                         const char *name)
92
0
{
93
0
    PyObject *kw = PyTuple_GET_ITEM(kwnames, index);
94
0
    if (!_PyUnicode_EqualToASCIIString(kw, name)) {
95
0
        PyErr_Format(PyExc_TypeError,
96
0
            "'%S' is an invalid keyword argument for enumerate()", kw);
97
0
        return 0;
98
0
    }
99
0
    return 1;
100
0
}
101
102
// TODO: Use AC when bpo-43447 is supported
103
static PyObject *
104
enumerate_vectorcall(PyObject *type, PyObject *const *args,
105
                     size_t nargsf, PyObject *kwnames)
106
3.23M
{
107
3.23M
    PyTypeObject *tp = _PyType_CAST(type);
108
3.23M
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
109
3.23M
    Py_ssize_t nkwargs = 0;
110
3.23M
    if (kwnames != NULL) {
111
0
        nkwargs = PyTuple_GET_SIZE(kwnames);
112
0
    }
113
114
    // Manually implement enumerate(iterable, start=...)
115
3.23M
    if (nargs + nkwargs == 2) {
116
0
        if (nkwargs == 1) {
117
0
            if (!check_keyword(kwnames, 0, "start")) {
118
0
                return NULL;
119
0
            }
120
0
        } else if (nkwargs == 2) {
121
0
            PyObject *kw0 = PyTuple_GET_ITEM(kwnames, 0);
122
0
            if (_PyUnicode_EqualToASCIIString(kw0, "start")) {
123
0
                if (!check_keyword(kwnames, 1, "iterable")) {
124
0
                    return NULL;
125
0
                }
126
0
                return enum_new_impl(tp, args[1], args[0]);
127
0
            }
128
0
            if (!check_keyword(kwnames, 0, "iterable") ||
129
0
                !check_keyword(kwnames, 1, "start")) {
130
0
                return NULL;
131
0
            }
132
133
0
        }
134
0
        return enum_new_impl(tp, args[0], args[1]);
135
0
    }
136
137
3.23M
    if (nargs + nkwargs == 1) {
138
3.23M
        if (nkwargs == 1 && !check_keyword(kwnames, 0, "iterable")) {
139
0
            return NULL;
140
0
        }
141
3.23M
        return enum_new_impl(tp, args[0], NULL);
142
3.23M
    }
143
144
0
    if (nargs == 0) {
145
0
        PyErr_SetString(PyExc_TypeError,
146
0
            "enumerate() missing required argument 'iterable'");
147
0
        return NULL;
148
0
    }
149
150
0
    PyErr_Format(PyExc_TypeError,
151
0
        "enumerate() takes at most 2 arguments (%zd given)", nargs + nkwargs);
152
0
    return NULL;
153
0
}
154
155
static void
156
enum_dealloc(PyObject *op)
157
3.23M
{
158
3.23M
    enumobject *en = _enumobject_CAST(op);
159
3.23M
    PyObject_GC_UnTrack(en);
160
3.23M
    Py_XDECREF(en->en_sit);
161
3.23M
    Py_XDECREF(en->en_result);
162
3.23M
    Py_XDECREF(en->en_longindex);
163
3.23M
    Py_TYPE(en)->tp_free(en);
164
3.23M
}
165
166
static int
167
enum_traverse(PyObject *op, visitproc visit, void *arg)
168
639k
{
169
639k
    enumobject *en = _enumobject_CAST(op);
170
639k
    Py_VISIT(en->en_sit);
171
639k
    Py_VISIT(en->en_result);
172
639k
    Py_VISIT(en->en_longindex);
173
639k
    return 0;
174
639k
}
175
176
// increment en_longindex with lock held, return the next index to be used
177
// or NULL on error
178
static inline PyObject *
179
increment_longindex_lock_held(enumobject *en)
180
0
{
181
0
    if (en->en_longindex == NULL) {
182
0
        en->en_longindex = PyLong_FromSsize_t(PY_SSIZE_T_MAX);
183
0
        if (en->en_longindex == NULL) {
184
0
            return NULL;
185
0
        }
186
0
    }
187
0
    assert(en->en_longindex != NULL);
188
    // We hold one reference to "next_index" (a.k.a. the old value of
189
    // en->en_longindex); we'll either return it or keep it in en->en_longindex
190
0
    PyObject *next_index = en->en_longindex;
191
0
    PyObject *stepped_up = PyNumber_Add(next_index, en->one);
192
0
    if (stepped_up == NULL) {
193
0
        return NULL;
194
0
    }
195
0
    en->en_longindex = stepped_up;
196
0
    return next_index;
197
0
}
198
199
static PyObject *
200
enum_next_long(enumobject *en, PyObject* next_item)
201
0
{
202
0
    PyObject *result = en->en_result;
203
0
    PyObject *next_index;
204
0
    PyObject *old_index;
205
0
    PyObject *old_item;
206
207
208
0
    Py_BEGIN_CRITICAL_SECTION(en);
209
0
    next_index = increment_longindex_lock_held(en);
210
0
    Py_END_CRITICAL_SECTION();
211
0
    if (next_index == NULL) {
212
0
        Py_DECREF(next_item);
213
0
        return NULL;
214
0
    }
215
216
0
    if (_PyObject_IsUniquelyReferenced(result)) {
217
0
        Py_INCREF(result);
218
0
        old_index = PyTuple_GET_ITEM(result, 0);
219
0
        old_item = PyTuple_GET_ITEM(result, 1);
220
0
        PyTuple_SET_ITEM(result, 0, next_index);
221
0
        PyTuple_SET_ITEM(result, 1, next_item);
222
0
        Py_DECREF(old_index);
223
0
        Py_DECREF(old_item);
224
        // bpo-42536: The GC may have untracked this result tuple. Since we're
225
        // recycling it, make sure it's tracked again:
226
0
        _PyTuple_Recycle(result);
227
0
        return result;
228
0
    }
229
0
    return _PyTuple_FromPairSteal(next_index, next_item);
230
0
}
231
232
static PyObject *
233
enum_next(PyObject *op)
234
9.61M
{
235
9.61M
    enumobject *en = _enumobject_CAST(op);
236
9.61M
    PyObject *next_index;
237
9.61M
    PyObject *next_item;
238
9.61M
    PyObject *result = en->en_result;
239
9.61M
    PyObject *it = en->en_sit;
240
9.61M
    PyObject *old_index;
241
9.61M
    PyObject *old_item;
242
243
9.61M
    next_item = (*Py_TYPE(it)->tp_iternext)(it);
244
9.61M
    if (next_item == NULL)
245
3.19M
        return NULL;
246
247
6.41M
    Py_ssize_t en_index = FT_ATOMIC_LOAD_SSIZE_RELAXED(en->en_index);
248
6.41M
    if (en_index == PY_SSIZE_T_MAX)
249
0
        return enum_next_long(en, next_item);
250
251
6.41M
    next_index = PyLong_FromSsize_t(en_index);
252
6.41M
    if (next_index == NULL) {
253
0
        Py_DECREF(next_item);
254
0
        return NULL;
255
0
    }
256
6.41M
    FT_ATOMIC_STORE_SSIZE_RELAXED(en->en_index, en_index + 1);
257
258
6.41M
    if (_PyObject_IsUniquelyReferenced(result)) {
259
6.41M
        Py_INCREF(result);
260
6.41M
        old_index = PyTuple_GET_ITEM(result, 0);
261
6.41M
        old_item = PyTuple_GET_ITEM(result, 1);
262
6.41M
        PyTuple_SET_ITEM(result, 0, next_index);
263
6.41M
        PyTuple_SET_ITEM(result, 1, next_item);
264
6.41M
        Py_DECREF(old_index);
265
6.41M
        Py_DECREF(old_item);
266
        // bpo-42536: The GC may have untracked this result tuple. Since we're
267
        // recycling it, make sure it's tracked again:
268
6.41M
        _PyTuple_Recycle(result);
269
6.41M
        return result;
270
6.41M
    }
271
0
    return _PyTuple_FromPairSteal(next_index, next_item);
272
6.41M
}
273
274
static PyObject *
275
enum_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
276
0
{
277
0
    enumobject *en = _enumobject_CAST(op);
278
0
    PyObject *result;
279
0
    Py_BEGIN_CRITICAL_SECTION(en);
280
0
    if (en->en_longindex != NULL) {
281
0
        result = Py_BuildValue("O(OO)", Py_TYPE(en), en->en_sit, en->en_longindex);
282
0
    }
283
0
    else {
284
0
        Py_ssize_t en_index = FT_ATOMIC_LOAD_SSIZE_RELAXED(en->en_index);
285
0
        result = Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en_index);
286
0
    }
287
0
    Py_END_CRITICAL_SECTION();
288
0
    return result;
289
0
}
290
291
PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
292
293
static PyMethodDef enum_methods[] = {
294
    {"__reduce__", enum_reduce, METH_NOARGS, reduce_doc},
295
    {"__class_getitem__",    Py_GenericAlias,
296
    METH_O|METH_CLASS,       PyDoc_STR("'enumerate' objects are generic over the type of their values")},
297
    {NULL,              NULL}           /* sentinel */
298
};
299
300
PyTypeObject PyEnum_Type = {
301
    PyVarObject_HEAD_INIT(&PyType_Type, 0)
302
    "enumerate",                    /* tp_name */
303
    sizeof(enumobject),             /* tp_basicsize */
304
    0,                              /* tp_itemsize */
305
    /* methods */
306
    enum_dealloc,                   /* tp_dealloc */
307
    0,                              /* tp_vectorcall_offset */
308
    0,                              /* tp_getattr */
309
    0,                              /* tp_setattr */
310
    0,                              /* tp_as_async */
311
    0,                              /* tp_repr */
312
    0,                              /* tp_as_number */
313
    0,                              /* tp_as_sequence */
314
    0,                              /* tp_as_mapping */
315
    0,                              /* tp_hash */
316
    0,                              /* tp_call */
317
    0,                              /* tp_str */
318
    PyObject_GenericGetAttr,        /* tp_getattro */
319
    0,                              /* tp_setattro */
320
    0,                              /* tp_as_buffer */
321
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
322
        Py_TPFLAGS_BASETYPE,        /* tp_flags */
323
    enum_new__doc__,                /* tp_doc */
324
    enum_traverse,                  /* tp_traverse */
325
    0,                              /* tp_clear */
326
    0,                              /* tp_richcompare */
327
    0,                              /* tp_weaklistoffset */
328
    PyObject_SelfIter,              /* tp_iter */
329
    enum_next,                      /* tp_iternext */
330
    enum_methods,                   /* tp_methods */
331
    0,                              /* tp_members */
332
    0,                              /* tp_getset */
333
    0,                              /* tp_base */
334
    0,                              /* tp_dict */
335
    0,                              /* tp_descr_get */
336
    0,                              /* tp_descr_set */
337
    0,                              /* tp_dictoffset */
338
    0,                              /* tp_init */
339
    PyType_GenericAlloc,            /* tp_alloc */
340
    enum_new,                       /* tp_new */
341
    PyObject_GC_Del,                /* tp_free */
342
    .tp_vectorcall = enumerate_vectorcall
343
};
344
345
/* Reversed Object ***************************************************************/
346
347
typedef struct {
348
    PyObject_HEAD
349
    Py_ssize_t      index;
350
    PyObject* seq;
351
} reversedobject;
352
353
0
#define _reversedobject_CAST(op)    ((reversedobject *)(op))
354
355
/*[clinic input]
356
@classmethod
357
reversed.__new__ as reversed_new
358
359
    object as seq: object
360
    /
361
362
Return a reverse iterator over the values of the given sequence.
363
[clinic start generated code]*/
364
365
static PyObject *
366
reversed_new_impl(PyTypeObject *type, PyObject *seq)
367
/*[clinic end generated code: output=f7854cc1df26f570 input=4781869729e3ba50]*/
368
383
{
369
383
    Py_ssize_t n;
370
383
    PyObject *reversed_meth;
371
383
    reversedobject *ro;
372
373
383
    reversed_meth = _PyObject_LookupSpecial(seq, &_Py_ID(__reversed__));
374
383
    if (reversed_meth == Py_None) {
375
0
        Py_DECREF(reversed_meth);
376
0
        PyErr_Format(PyExc_TypeError,
377
0
                     "'%.200s' object is not reversible",
378
0
                     Py_TYPE(seq)->tp_name);
379
0
        return NULL;
380
0
    }
381
383
    if (reversed_meth != NULL) {
382
383
        PyObject *res = _PyObject_CallNoArgs(reversed_meth);
383
383
        Py_DECREF(reversed_meth);
384
383
        return res;
385
383
    }
386
0
    else if (PyErr_Occurred())
387
0
        return NULL;
388
389
0
    if (!PySequence_Check(seq)) {
390
0
        PyErr_Format(PyExc_TypeError,
391
0
                     "'%.200s' object is not reversible",
392
0
                     Py_TYPE(seq)->tp_name);
393
0
        return NULL;
394
0
    }
395
396
0
    n = PySequence_Size(seq);
397
0
    if (n == -1)
398
0
        return NULL;
399
400
0
    ro = (reversedobject *)type->tp_alloc(type, 0);
401
0
    if (ro == NULL)
402
0
        return NULL;
403
404
0
    ro->index = n-1;
405
0
    ro->seq = Py_NewRef(seq);
406
0
    return (PyObject *)ro;
407
0
}
408
409
static PyObject *
410
reversed_vectorcall(PyObject *type, PyObject * const*args,
411
                size_t nargsf, PyObject *kwnames)
412
383
{
413
383
    if (!_PyArg_NoKwnames("reversed", kwnames)) {
414
0
        return NULL;
415
0
    }
416
417
383
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
418
383
    if (!_PyArg_CheckPositional("reversed", nargs, 1, 1)) {
419
0
        return NULL;
420
0
    }
421
422
383
    return reversed_new_impl(_PyType_CAST(type), args[0]);
423
383
}
424
425
static void
426
reversed_dealloc(PyObject *op)
427
0
{
428
0
    reversedobject *ro = _reversedobject_CAST(op);
429
0
    PyObject_GC_UnTrack(ro);
430
0
    Py_XDECREF(ro->seq);
431
0
    Py_TYPE(ro)->tp_free(ro);
432
0
}
433
434
static int
435
reversed_traverse(PyObject *op, visitproc visit, void *arg)
436
0
{
437
0
    reversedobject *ro = _reversedobject_CAST(op);
438
0
    Py_VISIT(ro->seq);
439
0
    return 0;
440
0
}
441
442
static PyObject *
443
reversed_next(PyObject *op)
444
0
{
445
0
    reversedobject *ro = _reversedobject_CAST(op);
446
0
    PyObject *item;
447
0
    Py_ssize_t index = FT_ATOMIC_LOAD_SSIZE_RELAXED(ro->index);
448
449
0
    if (index >= 0) {
450
0
        item = PySequence_GetItem(ro->seq, index);
451
0
        if (item != NULL) {
452
0
            FT_ATOMIC_STORE_SSIZE_RELAXED(ro->index, index - 1);
453
0
            return item;
454
0
        }
455
0
        if (PyErr_ExceptionMatches(PyExc_IndexError) ||
456
0
            PyErr_ExceptionMatches(PyExc_StopIteration))
457
0
            PyErr_Clear();
458
0
    }
459
0
    FT_ATOMIC_STORE_SSIZE_RELAXED(ro->index, -1);
460
0
#ifndef Py_GIL_DISABLED
461
0
    Py_CLEAR(ro->seq);
462
0
#endif
463
0
    return NULL;
464
0
}
465
466
static PyObject *
467
reversed_len(PyObject *op, PyObject *Py_UNUSED(ignored))
468
0
{
469
0
    reversedobject *ro = _reversedobject_CAST(op);
470
0
    Py_ssize_t position, seqsize;
471
0
    Py_ssize_t index = FT_ATOMIC_LOAD_SSIZE_RELAXED(ro->index);
472
473
0
    if (index == -1)
474
0
        return PyLong_FromLong(0);
475
0
    assert(ro->seq != NULL);
476
0
    seqsize = PySequence_Size(ro->seq);
477
0
    if (seqsize == -1)
478
0
        return NULL;
479
0
    position = index + 1;
480
0
    return PyLong_FromSsize_t((seqsize < position)  ?  0  :  position);
481
0
}
482
483
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
484
485
static PyObject *
486
reversed_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
487
0
{
488
0
    reversedobject *ro = _reversedobject_CAST(op);
489
0
    Py_ssize_t index = FT_ATOMIC_LOAD_SSIZE_RELAXED(ro->index);
490
0
    if (index != -1) {
491
0
        return Py_BuildValue("O(O)n", Py_TYPE(ro), ro->seq, ro->index);
492
0
    }
493
0
    else {
494
0
        return Py_BuildValue("O(())", Py_TYPE(ro));
495
0
    }
496
0
}
497
498
static PyObject *
499
reversed_setstate(PyObject *op, PyObject *state)
500
0
{
501
0
    reversedobject *ro = _reversedobject_CAST(op);
502
0
    Py_ssize_t index = PyLong_AsSsize_t(state);
503
0
    if (index == -1 && PyErr_Occurred())
504
0
        return NULL;
505
0
    Py_ssize_t ro_index = FT_ATOMIC_LOAD_SSIZE_RELAXED(ro->index);
506
    // if the iterator is exhausted we do not set the state
507
    // this is for backwards compatibility reasons. in practice this situation
508
    // will not occur, see gh-120971
509
0
    if (ro_index != -1) {
510
0
        Py_ssize_t n = PySequence_Size(ro->seq);
511
0
        if (n < 0)
512
0
            return NULL;
513
0
        if (index < -1)
514
0
            index = -1;
515
0
        else if (index > n-1)
516
0
            index = n-1;
517
0
        FT_ATOMIC_STORE_SSIZE_RELAXED(ro->index, index);
518
0
    }
519
0
    Py_RETURN_NONE;
520
0
}
521
522
PyDoc_STRVAR(setstate_doc, "Set state information for unpickling.");
523
524
static PyMethodDef reversediter_methods[] = {
525
    {"__length_hint__", reversed_len, METH_NOARGS, length_hint_doc},
526
    {"__reduce__", reversed_reduce, METH_NOARGS, reduce_doc},
527
    {"__setstate__", reversed_setstate, METH_O, setstate_doc},
528
    {NULL,              NULL}           /* sentinel */
529
};
530
531
PyTypeObject PyReversed_Type = {
532
    PyVarObject_HEAD_INIT(&PyType_Type, 0)
533
    "reversed",                     /* tp_name */
534
    sizeof(reversedobject),         /* tp_basicsize */
535
    0,                              /* tp_itemsize */
536
    /* methods */
537
    reversed_dealloc,               /* tp_dealloc */
538
    0,                              /* tp_vectorcall_offset */
539
    0,                              /* tp_getattr */
540
    0,                              /* tp_setattr */
541
    0,                              /* tp_as_async */
542
    0,                              /* tp_repr */
543
    0,                              /* tp_as_number */
544
    0,                              /* tp_as_sequence */
545
    0,                              /* tp_as_mapping */
546
    0,                              /* tp_hash */
547
    0,                              /* tp_call */
548
    0,                              /* tp_str */
549
    PyObject_GenericGetAttr,        /* tp_getattro */
550
    0,                              /* tp_setattro */
551
    0,                              /* tp_as_buffer */
552
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
553
        Py_TPFLAGS_BASETYPE,        /* tp_flags */
554
    reversed_new__doc__,            /* tp_doc */
555
    reversed_traverse,              /* tp_traverse */
556
    0,                              /* tp_clear */
557
    0,                              /* tp_richcompare */
558
    0,                              /* tp_weaklistoffset */
559
    PyObject_SelfIter,              /* tp_iter */
560
    reversed_next,                  /* tp_iternext */
561
    reversediter_methods,           /* tp_methods */
562
    0,                              /* tp_members */
563
    0,                              /* tp_getset */
564
    0,                              /* tp_base */
565
    0,                              /* tp_dict */
566
    0,                              /* tp_descr_get */
567
    0,                              /* tp_descr_set */
568
    0,                              /* tp_dictoffset */
569
    0,                              /* tp_init */
570
    PyType_GenericAlloc,            /* tp_alloc */
571
    reversed_new,                   /* tp_new */
572
    PyObject_GC_Del,                /* tp_free */
573
    .tp_vectorcall = reversed_vectorcall,
574
};