[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.178.162: ~ $
U

ل=^2��@s@ddlZddlZddlmZddlmZGdd�de�ZdZdS)�N�)�model��VerificationErrorc@seZdZdZdZdd�Zdd�Zdd�Zd	d
�Zdndd
�Z	dd�Z
dd�Zdd�Zdodd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�ZeZeZeZeZeZd)d*�Zd+d,�Zd-d.�ZeZd/d0�Z eZ!d1d2�Z"d3d4�Z#d5d6�Z$d7d8�Z%eZ&d9d:�Z'd;d<�Z(d=d>�Z)d?d@�Z*dAdB�Z+dCdD�Z,dEdF�Z-dGdH�Z.eZ/dIdJ�Z0dKdL�Z1dMdN�Z2dOdP�Z3dpdSdT�Z4dUdV�Z5dWdX�Z6eZ7eZ8eZ9dqdYdZ�Z:d[d\�Z;drd^d_�Z<eZ=eZ>d`da�Z?dbdc�Z@ddde�ZAeZBeZCeZDeZEdfdg�ZFdhdi�ZGeZHeZIdjdk�ZJdldm�ZKdS)s�VCPythonEngine�xTcCs||_|j|_i|_i|_dS�N)�verifier�ffi�_struct_pending_verification�_types_of_builtin_functions)�selfr	�r�/vengine_cpy.py�__init__
szVCPythonEngine.__init__cCsdSrr)r
�kwdsrrr�patch_extension_kwdssz#VCPythonEngine.patch_extension_kwdscCsRzt�||�\}}}Wntk
r,YdSX|dk	r>|��|d|krNdS|S�Nr)�imp�find_module�ImportError�close)r
Zmodule_name�pathZso_suffixes�f�filenameZdescrrrrrszVCPythonEngine.find_modulecCsi|_|�d�dS)NZcollecttype)�
_typesdict�	_generate�r
rrr�
collect_types$szVCPythonEngine.collect_types�cCs|j�|d�dS)N�
)Z_f�write)r
Zwhatrrr�_prnt(szVCPythonEngine._prntcCs
|j|Sr)r)r
�typerrr�_gettypenum+szVCPythonEngine._gettypenumcCs8t|tj�r|jdkr4||jkr4t|j�}||j|<dS)N�long double)�
isinstancer�
PrimitiveType�namer�len)r
�tpZnumrrr�_do_collect_type/s��
zVCPythonEngine._do_collect_typecCs�|��ddg|_|j}|t�|�||jj�|�|�d�|��|�|d�|�d�|d�|d�|d�|�|j��}|jd}|d	�|�|d
�|d�|d|�|d
�|d�|d�|d�|d�|�|d�|d|�|d�|d�|d�|d�|d�|d|f�|d�|d�|d�|d�|d�|�|d�|�|d�|d|�|d�|d�|d|�|d�|d �|d!|f�|d �|d"�|d�|�|d#�dS)$Nz
((void)lib,0)�declz&static PyMethodDef _cffi_methods[] = {�methodz3  {"_cffi_setup", _cffi_setup, METH_VARARGS, NULL},z)  {NULL, NULL, 0, NULL}    /* Sentinel */z};Fz#if PY_MAJOR_VERSION >= 3z.static struct PyModuleDef _cffi_module_def = {z  PyModuleDef_HEAD_INIT,z  "%s",z  NULL,z  -1,z  _cffi_methods,z  NULL, NULL, NULL, NULLZPyMODINIT_FUNCzPyInit_%s(void)�{z  PyObject *lib;z+  lib = PyModule_Create(&_cffi_module_def);z  if (lib == NULL)�    return NULL;z#  if (%s < 0 || _cffi_init() < 0) {z    Py_DECREF(lib);�  }z
  return lib;�}z#elsezinit%s(void)z+  lib = Py_InitModule("%s", _cffi_methods);z    return;z!  if (%s < 0 || _cffi_init() < 0)z	  return;z#endif)	r�_chained_list_constantsr"�cffimod_headerr	Zpreambler�_generate_setup_custom�get_module_name)r
�prnt�modnameZ	constantsrrr�write_source_to_f6st




z VCPythonEngine.write_source_to_fNc
svt��z�ttd�rt��}zvz6ttd�r<|dk	r<t�|�t��j�	��jj
��Wn:tk
r�}zd�jj
|f}t|��W5d}~XYnXW5ttd�r�t�|�XW5t��X��
�d�tdd��j��D����fdd�tt���D�}tt�jj|��}G���fdd	�d	t����}��|t|��rRd
dl}|�d�j�	���j
�d|d
��j�_�j�_|S)N�getdlopenflags�setdlopenflagszimporting %r: %sZloadingcSsg|]\}}||f�qSrr)�.0�key�valuerrr�
<listcomp>�s�z/VCPythonEngine.load_library.<locals>.<listcomp>csg|]}�|�qSrr�r;�i)�
revmappingrrr>�scs&eZdZ�Z�jZgZ�fdd�ZdS)z/VCPythonEngine.load_library.<locals>.FFILibrarycs�jt|j�Sr)�	_cffi_dir�list�__dict__r)�
FFILibraryrr�__dir__�sz7VCPythonEngine.load_library.<locals>.FFILibrary.__dir__N)�__name__�
__module__�__qualname__Z_cffi_python_moduler
Z	_cffi_ffirBrFr)rE�moduler
rrrE�srErz0reimporting %r might overwrite older definitionsZloaded��library)r�acquire_lock�release_lock�hasattr�sysr9r:Zload_dynamicr	r5Zmodulefilenamerr�_load�dictr�items�ranger)rC�mapr
�_get_cached_btype�objectZ_cffi_setup�warnings�warnZ_cffi_original_ffirZ_cffi_types_of_builtin_funcs)r
�flagsZprevious_flags�e�error�lstrLrXr)rErJrAr
r�load_library�sB

�

��zVCPythonEngine.load_librarycCs$dd�|jjj��D�}|��|S)NcSsg|]\}\}}||f�qSrr)r;r<r*Zqualrrrr>�s
z4VCPythonEngine._get_declarations.<locals>.<listcomp>)r
Z_parserZ
_declarationsrS�sort)r
r]rrr�_get_declarations�s
�z VCPythonEngine._get_declarationscCs�|��D]�\}}|�dd�\}}zt|d||f�}Wn tk
rVtd|��YnXz|||�Wqtk
r�}zt�||��W5d}~XYqXqdS)N� rz_generate_cpy_%s_%sznot implemented in verify(): %r)r`�split�getattr�AttributeErrorr�	Exceptionr�attach_exception_info)r
�	step_namer(r*�kind�realnamer-r[rrrr�s��
zVCPythonEngine._generatec
Ks~|��D]p\}}|�dd�\}}t|d||f�}z||||f|�Wqtk
rv}	zt�|	|��W5d}	~	XYqXqdS)Nrarz
_%s_cpy_%s)r`rbrcrerrf)
r
rJrgrr(r*rhrir-r[rrrrQ�szVCPythonEngine._loadcCsdSrr�r
r*r(rrr�_generate_nothing�sz VCPythonEngine._generate_nothingcKsdSrr�r
r*r(rJrrrr�_loaded_noop�szVCPythonEngine._loaded_noopcCs*d}t|tj�rT|��r2|jdkr2d}d|j}nd|�d�|j�dd�f}d}n�t|tj�rt|�||||�dSt|tj	tj
f�r�|�d	||�|�|f�|�d
|�dSt|tj
�r�d|�d�}d|�|�}d
}nt|��|�d||||f�|�d||�d�|f�|�d
|�dS)Nr�_BoolZ_cffi_to_c_intz, %sz(%s)_cffi_to_c_%sra�_z-1z6  if (_cffi_to_c((char *)&%s, _cffi_type(%d), %s) < 0)z    %s;z(%s)_cffi_to_c_pointerz, _cffi_type(%d)ZNULLz  %s = %s(%s%s);z'  if (%s == (%s)%s && PyErr_Occurred()))r&rr'�is_integer_typer(�
get_c_name�replace�PointerType�"_convert_funcarg_to_c_ptr_or_array�
StructOrUnion�EnumTyper"r$�FunctionPtrType�NotImplementedError)r
r*�fromvar�tovar�errcodeZextraargZ	converterZerrvaluerrr�_convert_funcarg_to_c�sB
����z$VCPythonEngine._convert_funcarg_to_ccCs.t|tj�r*|�d�|�d�|�d�dS)NzPy_ssize_t datasizez-struct _cffi_freeme_s *large_args_free = NULLzIif (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);)r&rrs�add)r
r*�	localvars�	freelinesrrr�_extra_local_variabless

z%VCPythonEngine._extra_local_variablescCs~|�d�|�d|�|�||f�|�d�|�d|f�|�d|�|�||f�|�d�|�d|�|�d�dS)	Nz1  datasize = _cffi_prepare_pointer_call_argument(z(      _cffi_type(%d), %s, (char **)&%s);z  if (datasize != 0) {zE    %s = ((size_t)datasize) <= 640 ? alloca((size_t)datasize) : NULL;zF    if (_cffi_convert_array_argument(_cffi_type(%d), %s, (char **)&%s,z,            datasize, &large_args_free) < 0)z	      %s;r0)r"r$)r
r*ryrzr{rrrrts 
�
��
z1VCPythonEngine._convert_funcarg_to_c_ptr_or_arraycCst|tj�r`|��r,|jdkr,d||jfS|jdkrLd|j�dd�|fSd||�|�fSn�t|tjtjf�r�d||�|�fSt|tj	�r�d||�t�|j
��fSt|tj�r�|jdkr�t
d	|��|f��d
||�|�fSt|tj��rd||�|�fSt|��dS)Nrnz_cffi_from_c_int(%s, %s)r%z_cffi_from_c_%s(%s)raroz/_cffi_from_c_deref((char *)&%s, _cffi_type(%d))z0_cffi_from_c_pointer((char *)%s, _cffi_type(%d))z!'%s' is used as %s, but is opaquez0_cffi_from_c_struct((char *)&%s, _cffi_type(%d)))r&rr'rpr(rrr$rsrw�	ArrayType�itemru�fldnames�	TypeError�_get_c_namervrx)r
r*�var�contextrrr�_convert_expr_from_c*sF
���
���z#VCPythonEngine._convert_expr_from_ccCsHt|tj�st�|jr"|�|�n"|jD]}|�|�q(|�|j�dSr)r&rrw�AssertionError�ellipsisr+�args�result)r
r*r(r#rrr�"_generate_cpy_function_collecttypeQs
z1VCPythonEngine._generate_cpy_function_collecttypec
Cs�t|tj�st�|jr(|�d||�dS|j}t|j�}|dkrFd}n|dkrTd}nd}|d�|d||f�|d	�d
|}t	|j�D] \}}|d|�
d||��q�t�}	t�}
|jD]}|�||	|
�q�t
|	�D]}|d|f�q�t|jtj��s*d
}d|}|d|j�
d|��|d�nd}t|j�dk�r�tt|j��}
|
D]}|d|��qP|�|dd||d�dd�|
D��f�|d�|�t	|j�D](\}}|�|d|d|d�|��q�|d�|d�|d||d�dd�tt|j��D��f�|d �|d!�|�|d"�|dk�r>|d#�|�r~|d$|�|jd%d&��|
D]}|d'|��q`|d(�n(|
D]}|d'|��q�|d)�|d*�|d+�|�dS),NFrZnoargrZarg0r��static PyObject *z(_cffi_f_%s(PyObject *self, PyObject *%s)r.zargument of %s�  %s;z x%dz	result = zresult of %sz resultz  PyObject *pyresult;rz  PyObject *arg%d;z+  if (!PyArg_ParseTuple(args, "%s:%s", %s))�Oz, cSsg|]}d|�qS)z&arg%drr?rrrr>�sz>VCPythonEngine._generate_cpy_function_decl.<locals>.<listcomp>r/zarg%d�x%dzreturn NULLz  Py_BEGIN_ALLOW_THREADSz  _cffi_restore_errno();z  { %s%s(%s); }cSsg|]}d|�qS)r�rr?rrrr>�sz  _cffi_save_errno();z  Py_END_ALLOW_THREADS�  (void)self; /* unused */�  (void)noarg; /* unused */z  pyresult = %s;r�zresult typez  z  return pyresult;z  Py_INCREF(Py_None);z  return Py_None;r1)r&rrwr�r��_generate_cpy_constr"r)r��	enumeraterq�setr��sortedr�ZVoidTyperT�joinr|r�)r
r*r(r6�numargs�argnamer�r@r#r~rr,Zresult_code�rngZfreelinerrr�_generate_cpy_function_decl\s�


��
�
�
z*VCPythonEngine._generate_cpy_function_declcCsL|jr
dSt|j�}|dkr"d}n|dkr0d}nd}|�d|||f�dS)NrZMETH_NOARGSrZMETH_OZMETH_VARARGSz  {"%s", _cffi_f_%s, %s, NULL},)r�r)r�r")r
r*r(r�Zmethrrr�_generate_cpy_function_method�s
z,VCPythonEngine._generate_cpy_function_methodcCs.|jr
dSt||�}t|||�||j|<dSr)r�rc�setattrr)r
r*r(rJrL�funcrrr�_loaded_cpy_function�s

z#VCPythonEngine._loaded_cpy_functioncCs ||jkst�|�|d|�dS�N�struct�r(r��_generate_struct_or_union_declrjrrr�_generate_cpy_struct_decl�sz(VCPythonEngine._generate_cpy_struct_declcCs|�|d|�dSr��� _generate_struct_or_union_methodrjrrr�_generate_cpy_struct_method�sz*VCPythonEngine._generate_cpy_struct_methodcCs|�|d||�dSr���_loading_struct_or_union�r
r*r(rJrrr�_loading_cpy_struct�sz"VCPythonEngine._loading_cpy_structcKs|�|�dSr��_loaded_struct_or_unionrlrrr�_loaded_cpy_struct�sz!VCPythonEngine._loaded_cpy_structcCs ||jkst�|�|d|�dS�N�unionr�rjrrr�_generate_cpy_union_decl�sz'VCPythonEngine._generate_cpy_union_declcCs|�|d|�dSr�r�rjrrr�_generate_cpy_union_method�sz)VCPythonEngine._generate_cpy_union_methodcCs|�|d||�dSr�r�r�rrr�_loading_cpy_union�sz!VCPythonEngine._loading_cpy_unioncKs|�|�dSrr�rlrrr�_loaded_cpy_union�sz VCPythonEngine._loaded_cpy_unionc
Cs|jdkrdSd||f}d||f}d||f��}|j}|d||f�|d�|d�|d�|��D]�\}}	}
}t|	tj�r�|	��s�|
dkr�|d	|�qlz$|d
|	jdd||d
�|f�Wqlt	k
r�}z|dt
|��W5d}~XYqlXql|d�|d�|d|f�|d�|d|�|d�|d|�|d�|��D]h\}}	}
}|
dk�rl�qR|d||f�t|	tj��r�|	jdk�r�|d|	�
��n|d||f��qR|d�|d�|d�|d�|d�|d�|d|f�|d�|�dS) Nz_cffi_check_%s_%s�_cffi_layout_%s_%s�%s %szstatic void %s(%s *p)r.z8  /* only to generate compile-time warnings or errors */z
  (void)p;rz  (void)((p->%s) << 1);z  { %s = &p->%s; (void)tmp; }z*tmpzfield %r)Zqualsz
  /* %s */r1r�z#%s(PyObject *self, PyObject *noarg)z,  struct _cffi_aligncheck { char x; %s y; };z  static Py_ssize_t nums[] = {z    sizeof(%s),z)    offsetof(struct _cffi_aligncheck, y),z    offsetof(%s, %s),z    0,  /* %s */z    sizeof(((%s *)0)->%s),z    -1z  };r�r�z'  return _cffi_get_struct_layout(nums);z3  /* the next line is not executed, but compiled */z  %s(0);)r��stripr"�
enumfieldsr&rr'rprqr�strr��lengthr�)
r
r*�prefixr(Z
checkfuncname�layoutfuncname�cnamer6�fname�ftype�fbitsize�fqualr[rrrr��s`
���$
z-VCPythonEngine._generate_struct_or_union_declcCs0|jdkrdSd||f}|�d||f�dS)Nr�z   {"%s", %s, METH_NOARGS, NULL},)r�r")r
r*r�r(r�rrrr�
s
�z/VCPythonEngine._generate_struct_or_union_methodc
Cs�|jdkrdSd||f}t||�}|�}t|tj�r�|jr�|d}|d}	|ddd�}
|ddd�}|��t|
�t|�kr�t|j�ks�nt�|
|||	f|_	nd||f�
�}||f|j|<dS)Nr�rr��r�)r�rcr&rru�partialZ
force_flattenr)r�Zfixedlayoutr�r)
r
r*r�r(rJr�Zfunction�layoutZ	totalsizeZtotalalignmentZfieldofsZ	fieldsizer�rrrr�s

(z'VCPythonEngine._loading_struct_or_unionc
Cs|jdkrdS|j�|�||jk�rdd�}|j}|�|�}|j�|�\}}||d|�|�d�||d|�|�d�d}|��D]v\}}	}
}|
dkr�q�||||�||�d|f�||ddkr�|�|	�}|||d|�|�d	|f�|d7}q�|t	|�k�st
�dS)
NcSs||krtd|||f��dS)Nz'%s (we have %d, but C compiler says %d)r)Z	realvalueZ
expectedvalue�msgrrr�check0s��z5VCPythonEngine._loaded_struct_or_union.<locals>.checkrzwrong total sizerzwrong total alignmentr�zwrong offset for field %rzwrong size for field %r)r�r
rVr�pop�sizeofZalignofr�Zoffsetofr)r�)
r
r*r�r
ZBStructr�r�r@r�r�r�r�ZBFieldrrrr�)s0

�
�
z&VCPythonEngine._loaded_struct_or_unioncCs.t|tj�r|�||d�n|�|d|�dS�Nr)r&rrv�_generate_cpy_enum_declr�rjrrr�_generate_cpy_anonymous_declMsz+VCPythonEngine._generate_cpy_anonymous_declcCst|tj�s|�|d|�dSr�)r&rrvr�rjrrr�_generate_cpy_anonymous_methodSsz-VCPythonEngine._generate_cpy_anonymous_methodcCs0t|tj�r|�|||�n|�|d||�dSr�)r&rrv�_loading_cpy_enumr�r�rrr�_loading_cpy_anonymousWsz%VCPythonEngine._loading_cpy_anonymouscKs.t|tj�r |j|||f|�n
|�|�dSr)r&rrv�_loaded_cpy_enumr�rlrrr�_loaded_cpy_anonymous]sz$VCPythonEngine._loaded_cpy_anonymous�constFc	Cst|j}	d||f}
|	d|
�|	d�|	d�|	d�|sT|	d|pD|�d|��n|dks`t�|dk	rt|�||�|s�|d	kr�d
|}n|}|	d|f�|	d|�|d
d�f�|s�t�n|	d|�|	d�|	d�|�r|	d�|	d�|	d|f�|	d�|	d�|	d�|	d�|	d|�|	d�|	d�|	d�|	d|j|�|
d|j|<|	d�|	�dS)Nz_cffi_%s_%s�static int %s(PyObject *lib)r.z  PyObject *o;z
  int res;r�z ir�r��&z  i = (%s);z	  o = %s;r@z
variable typez!  o = _cffi_from_c_int_const(%s);z  if (o == NULL)�    return -1;z  {z    PyObject *o1 = o;z8    o = Py_BuildValue("On", o1, (Py_ssize_t)sizeof(%s));z    Py_DECREF(o1);z    if (o == NULL)z      return -1;r0z-  res = PyObject_SetAttrString(lib, "%s", o);z  Py_DECREF(o);z  if (res < 0)�  return %s;�(lib)r1)r"rqr��_check_int_constant_valuer�r2)r
�is_intr(r*�category�vartp�delayed�size_too�check_valuer6�funcnameZrealexprrrrr�fsR
�

�z"VCPythonEngine._generate_cpy_constcCs&t|tj�o|��}|s"|�|�dSr)r&rr'rpr+�r
r*r(r�rrr�"_generate_cpy_constant_collecttype�sz1VCPythonEngine._generate_cpy_constant_collecttypecCs&t|tj�o|��}|�|||�dSr)r&rr'rpr�r�rrr�_generate_cpy_constant_decl�sz*VCPythonEngine._generate_cpy_constant_declcCs�|j}|dkr"|d|||f�n|d|||f�|d�|d|�|d|�|d�|d|�|d	�|d
�|d|||f�|d�|d
�dS)Nrz&  if ((%s) > 0 || (long)(%s) != %dL) {z1  if ((%s) <= 0 || (unsigned long)(%s) != %dUL) {z    char buf[64];z    if ((%s) <= 0)z.        snprintf(buf, 63, "%%ld", (long)(%s));z    elsez7        snprintf(buf, 63, "%%lu", (unsigned long)(%s));z)    PyErr_Format(_cffi_VerificationError,z6                 "%s%s has the real value %s, not %s",z(                 "%s", "%s", buf, "%d");r�r0)r")r
r(r=Z
err_prefixr6rrrr��s8�
���z(VCPythonEngine._check_int_constant_valuecCs|�dd�}d||fS)N�$Z___D_z
_cffi_e_%s_%s)rr)r
r�r(rrr�_enum_funcname�szVCPythonEngine._enum_funcname�enumcCs�|jr&|jD]}|jd|dd�qdS|�||�}|j}|d|�|d�t|j|j�D]\}}|�||d|�qZ|d|jd�|d|jd<|d	�|�dS)
NTF)r�r�r.z	enum %s: r�r�r1)	r��enumeratorsr�r�r"�zip�
enumvaluesr�r2)r
r*r(r��
enumeratorr�r6�	enumvaluerrrr��s 
�z&VCPythonEngine._generate_cpy_enum_declcs.|jr*�fdd�|jD�}t|�|_d|_dS)Ncsg|]}t�|��qSr)rc)r;r��rJrrr>�s�z4VCPythonEngine._loading_cpy_enum.<locals>.<listcomp>T)r�r��tupler�Zpartial_resolved)r
r*r(rJr�rr�rr��s
�
z VCPythonEngine._loading_cpy_enumcCs(t|j|j�D]\}}t|||�qdSr)r�r�r�r�)r
r*r(rJrLr�r�rrrr��szVCPythonEngine._loaded_cpy_enumcCs&|dkrd}n|}|jd||d�dS)N�...T)r�)r�)r
r*r(r�rrr�_generate_cpy_macro_decl�sz'VCPythonEngine._generate_cpy_macro_declcCs2t|tj�rt�|j�}n
t�|�}|�|�dSr)r&rr�rsr�r+�r
r*r(Ztp_ptrrrr�"_generate_cpy_variable_collecttype�s
z1VCPythonEngine._generate_cpy_variable_collecttypecCsTt|tj�r4t�|j�}|jd||||jdkd�nt�|�}|jd||dd�dS)NFr�)r�r�r�)r�)r&rr�rsr�r�r�r�rrr�_generate_cpy_variable_decl�s�
z*VCPythonEngine._generate_cpy_variable_declc
st||�}t|tj�r�|jdkr~t|t�s.t�|\}}|j�|j	�}t
||j�|��\}}	|	dkrttd||j	f��|�
|�}|jdk	r�|j�|�}
|j�|
|�}t|||�dS|�t||��fdd�}�fdd�}tt|�|t||��t|�j�|�dS)Nr�rz/bad size: %r does not seem to be an array of %scs�dSrrrK�Zptrrr�gettersz3VCPythonEngine._loaded_cpy_variable.<locals>.gettercs|�d<dSrr)rLr=r�rr�setter sz3VCPythonEngine._loaded_cpy_variable.<locals>.setter)rcr&rr�r�r�r�r
rVr��divmodr�rZresolve_length�castr��delattrr#�propertyrB�append)
r
r*r(rJrLr=�sizeZ	BItemTyper��restZBArrayr�r�rr�r�_loaded_cpy_variables2

��


z#VCPythonEngine._loaded_cpy_variablecCs4|j}|d�|d�|d|jd�|d�dS)Nz,static int _cffi_setup_custom(PyObject *lib)r.r�Tr1)r"r2)r
r6rrrr4's
z%VCPythonEngine._generate_setup_custom)r)N)Nr�NTFN)r)r�)LrGrHrIZ
_class_keyZ_gen_python_modulerrrrr"r$r+r8r^r`rrQrkrmr|r�rtr�Z!_generate_cpy_typedef_collecttypeZ_generate_cpy_typedef_declZ_generate_cpy_typedef_methodZ_loading_cpy_typedefZ_loaded_cpy_typedefr�r�r�Z_loading_cpy_functionr�Z _generate_cpy_struct_collecttyper�r�r�r�Z_generate_cpy_union_collecttyper�r�r�r�r�r�r�r�Z#_generate_cpy_anonymous_collecttyper�r�r�r�r�r�r�Z_generate_cpy_constant_methodZ_loading_cpy_constantZ_loaded_cpy_constantr�r�r�Z_generate_cpy_enum_collecttypeZ_generate_cpy_enum_methodr�r�r�Z_generate_cpy_macro_collecttypeZ_generate_cpy_macro_methodZ_loading_cpy_macroZ_loaded_cpy_macror�r�Z_generate_cpy_variable_methodZ_loading_cpy_variabler�r4rrrrr	s�
[
:
$
P
3"	�
0

	"ra�(
#include <Python.h>
#include <stddef.h>

/* this block of #ifs should be kept exactly identical between
   c/_cffi_backend.c, cffi/vengine_cpy.py, cffi/vengine_gen.py
   and cffi/_cffi_include.h */
#if defined(_MSC_VER)
# include <malloc.h>   /* for alloca() */
# if _MSC_VER < 1600   /* MSVC < 2010 */
   typedef __int8 int8_t;
   typedef __int16 int16_t;
   typedef __int32 int32_t;
   typedef __int64 int64_t;
   typedef unsigned __int8 uint8_t;
   typedef unsigned __int16 uint16_t;
   typedef unsigned __int32 uint32_t;
   typedef unsigned __int64 uint64_t;
   typedef __int8 int_least8_t;
   typedef __int16 int_least16_t;
   typedef __int32 int_least32_t;
   typedef __int64 int_least64_t;
   typedef unsigned __int8 uint_least8_t;
   typedef unsigned __int16 uint_least16_t;
   typedef unsigned __int32 uint_least32_t;
   typedef unsigned __int64 uint_least64_t;
   typedef __int8 int_fast8_t;
   typedef __int16 int_fast16_t;
   typedef __int32 int_fast32_t;
   typedef __int64 int_fast64_t;
   typedef unsigned __int8 uint_fast8_t;
   typedef unsigned __int16 uint_fast16_t;
   typedef unsigned __int32 uint_fast32_t;
   typedef unsigned __int64 uint_fast64_t;
   typedef __int64 intmax_t;
   typedef unsigned __int64 uintmax_t;
# else
#  include <stdint.h>
# endif
# if _MSC_VER < 1800   /* MSVC < 2013 */
#  ifndef __cplusplus
    typedef unsigned char _Bool;
#  endif
# endif
#else
# include <stdint.h>
# if (defined (__SVR4) && defined (__sun)) || defined(_AIX) || defined(__hpux)
#  include <alloca.h>
# endif
#endif

#if PY_MAJOR_VERSION < 3
# undef PyCapsule_CheckExact
# undef PyCapsule_GetPointer
# define PyCapsule_CheckExact(capsule) (PyCObject_Check(capsule))
# define PyCapsule_GetPointer(capsule, name) \
    (PyCObject_AsVoidPtr(capsule))
#endif

#if PY_MAJOR_VERSION >= 3
# define PyInt_FromLong PyLong_FromLong
#endif

#define _cffi_from_c_double PyFloat_FromDouble
#define _cffi_from_c_float PyFloat_FromDouble
#define _cffi_from_c_long PyInt_FromLong
#define _cffi_from_c_ulong PyLong_FromUnsignedLong
#define _cffi_from_c_longlong PyLong_FromLongLong
#define _cffi_from_c_ulonglong PyLong_FromUnsignedLongLong
#define _cffi_from_c__Bool PyBool_FromLong

#define _cffi_to_c_double PyFloat_AsDouble
#define _cffi_to_c_float PyFloat_AsDouble

#define _cffi_from_c_int_const(x)                                        \
    (((x) > 0) ?                                                         \
        ((unsigned long long)(x) <= (unsigned long long)LONG_MAX) ?      \
            PyInt_FromLong((long)(x)) :                                  \
            PyLong_FromUnsignedLongLong((unsigned long long)(x)) :       \
        ((long long)(x) >= (long long)LONG_MIN) ?                        \
            PyInt_FromLong((long)(x)) :                                  \
            PyLong_FromLongLong((long long)(x)))

#define _cffi_from_c_int(x, type)                                        \
    (((type)-1) > 0 ? /* unsigned */                                     \
        (sizeof(type) < sizeof(long) ?                                   \
            PyInt_FromLong((long)x) :                                    \
         sizeof(type) == sizeof(long) ?                                  \
            PyLong_FromUnsignedLong((unsigned long)x) :                  \
            PyLong_FromUnsignedLongLong((unsigned long long)x)) :        \
        (sizeof(type) <= sizeof(long) ?                                  \
            PyInt_FromLong((long)x) :                                    \
            PyLong_FromLongLong((long long)x)))

#define _cffi_to_c_int(o, type)                                          \
    ((type)(                                                             \
     sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o)        \
                                         : (type)_cffi_to_c_i8(o)) :     \
     sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o)       \
                                         : (type)_cffi_to_c_i16(o)) :    \
     sizeof(type) == 4 ? (((type)-1) > 0 ? (type)_cffi_to_c_u32(o)       \
                                         : (type)_cffi_to_c_i32(o)) :    \
     sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o)       \
                                         : (type)_cffi_to_c_i64(o)) :    \
     (Py_FatalError("unsupported size for type " #type), (type)0)))

#define _cffi_to_c_i8                                                    \
                 ((int(*)(PyObject *))_cffi_exports[1])
#define _cffi_to_c_u8                                                    \
                 ((int(*)(PyObject *))_cffi_exports[2])
#define _cffi_to_c_i16                                                   \
                 ((int(*)(PyObject *))_cffi_exports[3])
#define _cffi_to_c_u16                                                   \
                 ((int(*)(PyObject *))_cffi_exports[4])
#define _cffi_to_c_i32                                                   \
                 ((int(*)(PyObject *))_cffi_exports[5])
#define _cffi_to_c_u32                                                   \
                 ((unsigned int(*)(PyObject *))_cffi_exports[6])
#define _cffi_to_c_i64                                                   \
                 ((long long(*)(PyObject *))_cffi_exports[7])
#define _cffi_to_c_u64                                                   \
                 ((unsigned long long(*)(PyObject *))_cffi_exports[8])
#define _cffi_to_c_char                                                  \
                 ((int(*)(PyObject *))_cffi_exports[9])
#define _cffi_from_c_pointer                                             \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[10])
#define _cffi_to_c_pointer                                               \
    ((char *(*)(PyObject *, CTypeDescrObject *))_cffi_exports[11])
#define _cffi_get_struct_layout                                          \
    ((PyObject *(*)(Py_ssize_t[]))_cffi_exports[12])
#define _cffi_restore_errno                                              \
    ((void(*)(void))_cffi_exports[13])
#define _cffi_save_errno                                                 \
    ((void(*)(void))_cffi_exports[14])
#define _cffi_from_c_char                                                \
    ((PyObject *(*)(char))_cffi_exports[15])
#define _cffi_from_c_deref                                               \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[16])
#define _cffi_to_c                                                       \
    ((int(*)(char *, CTypeDescrObject *, PyObject *))_cffi_exports[17])
#define _cffi_from_c_struct                                              \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[18])
#define _cffi_to_c_wchar_t                                               \
    ((wchar_t(*)(PyObject *))_cffi_exports[19])
#define _cffi_from_c_wchar_t                                             \
    ((PyObject *(*)(wchar_t))_cffi_exports[20])
#define _cffi_to_c_long_double                                           \
    ((long double(*)(PyObject *))_cffi_exports[21])
#define _cffi_to_c__Bool                                                 \
    ((_Bool(*)(PyObject *))_cffi_exports[22])
#define _cffi_prepare_pointer_call_argument                              \
    ((Py_ssize_t(*)(CTypeDescrObject *, PyObject *, char **))_cffi_exports[23])
#define _cffi_convert_array_from_object                                  \
    ((int(*)(char *, CTypeDescrObject *, PyObject *))_cffi_exports[24])
#define _CFFI_NUM_EXPORTS 25

typedef struct _ctypedescr CTypeDescrObject;

static void *_cffi_exports[_CFFI_NUM_EXPORTS];
static PyObject *_cffi_types, *_cffi_VerificationError;

static int _cffi_setup_custom(PyObject *lib);   /* forward */

static PyObject *_cffi_setup(PyObject *self, PyObject *args)
{
    PyObject *library;
    int was_alive = (_cffi_types != NULL);
    (void)self; /* unused */
    if (!PyArg_ParseTuple(args, "OOO", &_cffi_types, &_cffi_VerificationError,
                                       &library))
        return NULL;
    Py_INCREF(_cffi_types);
    Py_INCREF(_cffi_VerificationError);
    if (_cffi_setup_custom(library) < 0)
        return NULL;
    return PyBool_FromLong(was_alive);
}

union _cffi_union_alignment_u {
    unsigned char m_char;
    unsigned short m_short;
    unsigned int m_int;
    unsigned long m_long;
    unsigned long long m_longlong;
    float m_float;
    double m_double;
    long double m_longdouble;
};

struct _cffi_freeme_s {
    struct _cffi_freeme_s *next;
    union _cffi_union_alignment_u alignment;
};

#ifdef __GNUC__
  __attribute__((unused))
#endif
static int _cffi_convert_array_argument(CTypeDescrObject *ctptr, PyObject *arg,
                                        char **output_data, Py_ssize_t datasize,
                                        struct _cffi_freeme_s **freeme)
{
    char *p;
    if (datasize < 0)
        return -1;

    p = *output_data;
    if (p == NULL) {
        struct _cffi_freeme_s *fp = (struct _cffi_freeme_s *)PyObject_Malloc(
            offsetof(struct _cffi_freeme_s, alignment) + (size_t)datasize);
        if (fp == NULL)
            return -1;
        fp->next = *freeme;
        *freeme = fp;
        p = *output_data = (char *)&fp->alignment;
    }
    memset((void *)p, 0, (size_t)datasize);
    return _cffi_convert_array_from_object(p, ctptr, arg);
}

#ifdef __GNUC__
  __attribute__((unused))
#endif
static void _cffi_free_array_arguments(struct _cffi_freeme_s *freeme)
{
    do {
        void *p = (void *)freeme;
        freeme = freeme->next;
        PyObject_Free(p);
    } while (freeme != NULL);
}

static int _cffi_init(void)
{
    PyObject *module, *c_api_object = NULL;

    module = PyImport_ImportModule("_cffi_backend");
    if (module == NULL)
        goto failure;

    c_api_object = PyObject_GetAttrString(module, "_C_API");
    if (c_api_object == NULL)
        goto failure;
    if (!PyCapsule_CheckExact(c_api_object)) {
        PyErr_SetNone(PyExc_ImportError);
        goto failure;
    }
    memcpy(_cffi_exports, PyCapsule_GetPointer(c_api_object, "cffi"),
           _CFFI_NUM_EXPORTS * sizeof(void *));

    Py_DECREF(module);
    Py_DECREF(c_api_object);
    return 0;

  failure:
    Py_XDECREF(module);
    Py_XDECREF(c_api_object);
    return -1;
}

#define _cffi_type(num) ((CTypeDescrObject *)PyList_GET_ITEM(_cffi_types, num))

/**********/
)	rPrrrr\rrWrr3rrrr�<module>s+

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 452 B 0644
__init__.cpython-38.pyc File 452 B 0644
api.cpython-38.opt-1.pyc File 33.25 KB 0644
api.cpython-38.pyc File 33.3 KB 0644
backend_ctypes.cpython-38.opt-1.pyc File 38.74 KB 0644
backend_ctypes.cpython-38.pyc File 39.04 KB 0644
cffi_opcode.cpython-38.opt-1.pyc File 4.54 KB 0644
cffi_opcode.cpython-38.pyc File 4.59 KB 0644
commontypes.cpython-38.opt-1.pyc File 1.75 KB 0644
commontypes.cpython-38.pyc File 1.8 KB 0644
cparser.cpython-38.opt-1.pyc File 21.75 KB 0644
cparser.cpython-38.pyc File 21.88 KB 0644
error.cpython-38.opt-1.pyc File 1.41 KB 0644
error.cpython-38.pyc File 1.41 KB 0644
ffiplatform.cpython-38.opt-1.pyc File 3.38 KB 0644
ffiplatform.cpython-38.pyc File 3.38 KB 0644
lock.cpython-38.opt-1.pyc File 346 B 0644
lock.cpython-38.pyc File 346 B 0644
model.cpython-38.opt-1.pyc File 18.94 KB 0644
model.cpython-38.pyc File 19.11 KB 0644
pkgconfig.cpython-38.opt-1.pyc File 5 KB 0644
pkgconfig.cpython-38.pyc File 5 KB 0644
recompiler.cpython-38.opt-1.pyc File 44.86 KB 0644
recompiler.cpython-38.pyc File 45.34 KB 0644
setuptools_ext.cpython-38.opt-1.pyc File 6.94 KB 0644
setuptools_ext.cpython-38.pyc File 6.97 KB 0644
vengine_cpy.cpython-38.opt-1.pyc File 34.38 KB 0644
vengine_cpy.cpython-38.pyc File 34.63 KB 0644
vengine_gen.cpython-38.opt-1.pyc File 20.21 KB 0644
vengine_gen.cpython-38.pyc File 20.5 KB 0644
verifier.cpython-38.opt-1.pyc File 8.93 KB 0644
verifier.cpython-38.pyc File 8.96 KB 0644