|
ESBMC
Efficient SMT-based Context-Bounded Model Checker
|
Minimal representation of a Python-like object. More...
#include <python_types.h>
Public Attributes | |
| const void * | value |
| Pointer to object data. | |
| size_t | float_idx |
| size_t | type_id |
| size_t | size |
Minimal representation of a Python-like object.
In CPython, PyObject includes only a pointer to its type object. Most user-defined types embed this as their header, allowing any instance to be safely cast to PyObject* for type inspection.
This simplified version keeps both the type information and the data pointer explicit. The long-term goal is to embed only a type pointer, enabling more lightweight polymorphic casts.
| size_t __ESBMC_PyObj::float_idx |
| size_t __ESBMC_PyObj::size |
| size_t __ESBMC_PyObj::type_id |
| const void* __ESBMC_PyObj::value |
Pointer to object data.