Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias alias Import alias Import alias FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign NameStore SubscriptLoad Call NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assert Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Return Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Str body Return Call NameLoad Str orelse Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Str ListLoad NameLoad Delete NameDel Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num Assert CompareLt NameLoad Num Delete NameDel Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Delete NameDel Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Delete NameDel Delete NameDel Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad Num body Assert CompareIs NameLoad NameLoad orelse Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareGt NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad BinOpFloorDiv NameLoad NameLoad For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assert CompareGtE BinOpSub NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Index Num Assert CompareEq NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Index Num Assert CompareEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad NameLoad body Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num keyword Str Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad ListLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Num Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Import alias If CompareEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias If CompareEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad keyword ListLoad Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Delete NameDel Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Assert UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Delete NameDel Assert UnaryOpNot NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Print Call NameLoad Print Call NameLoad NameLoad Assert CompareNotEq NameLoad Num Assert CompareEq BinOpMod NameLoad Num Num decorator_list decorator_list
N/A N/A  Tests of libffi wrappers and dl* friends
 pypy.rpython.test.test_llinterp interpret pypy.translator.c.test.test_genc compile pypy.rlib.libffi * pypy.rlib.objectmodel keepalive_until_here pypy.rpython.lltypesystem.ll2ctypes ALLOCATED pypy.rpython.lltypesystem rffi lltype N/A os sys N/A py N/A time setup_module N/A N/A mod N/A N/A N/A name type_names N/A N/A ffistruct N/A N/A globals N/A name N/A N/A N/A rffi cast N/A rffi VOIDP ffistruct N/A TestDLOperations N/A N/A setup_method N/A N/A self meth N/A N/A N/A N/A N/A ALLOCATED clear N/A test_dlopen N/A N/A self N/A N/A N/A N/A N/A N/A py test raises OSError dlopen(rffi.str2charp('xxxxxxxxxxxx')) N/A N/A dlopen N/A N/A rffi str2charp N/A get_libc_name N/A get_libc N/A N/A self N/A N/A N/A N/A CDLL N/A get_libc_name N/A get_libm N/A N/A self N/A N/A N/A N/A N/A sys platform win32 N/A N/A N/A CDLL msvcrt.dll N/A N/A N/A N/A sys platform darwin N/A N/A N/A CDLL libm.dylib N/A N/A N/A CDLL libm.so N/A test_library_open N/A N/A self N/A N/A N/A lib N/A N/A self get_libc N/A lib N/A N/A ALLOCATED N/A test_library_get_func N/A N/A self N/A N/A N/A lib N/A N/A self get_libc N/A ptr N/A N/A lib getpointer fopen N/A ffi_type_void N/A N/A N/A N/A py test raises KeyError N/A lib getpointer xxxxxxxxxxxxxxx N/A ffi_type_void N/A ptr N/A lib N/A N/A ALLOCATED N/A test_library_func_call N/A N/A self N/A N/A N/A lib N/A N/A self get_libc N/A ptr N/A N/A lib getpointer rand N/A ffi_type_sint N/A zeroes 0 N/A first N/A N/A ptr call N/A rffi INT N/A i N/A range 100 N/A N/A res N/A N/A ptr call N/A rffi INT N/A N/A res first N/A N/A zeroes 1 N/A N/A zeroes 90 N/A ptr N/A lib N/A N/A ALLOCATED N/A test_call_args N/A N/A self N/A N/A N/A libm N/A N/A self get_libm N/A pow N/A N/A libm getpointer pow N/A ffi_type_double ffi_type_double ffi_type_double N/A N/A N/A pow push_arg 2.0 N/A N/A N/A pow push_arg 2.0 N/A res N/A N/A pow call N/A rffi DOUBLE N/A N/A res 4.0 N/A N/A N/A pow push_arg 3.0 N/A N/A N/A pow push_arg 3.0 N/A res N/A N/A pow call N/A rffi DOUBLE N/A N/A res 27.0 N/A pow N/A libm N/A N/A ALLOCATED N/A test_wrong_args N/A N/A self N/A N/A N/A libc N/A N/A self get_libc N/A ulong N/A cast_type_to_ffitype N/A rffi ULONG N/A ctime N/A N/A libc getpointer fopen N/A ffi_type_pointer ulong N/A x N/A N/A lltype malloc N/A N/A lltype GcStruct xxx N/A y N/A N/A lltype malloc N/A N/A lltype GcArray N/A rffi LONG 3 N/A z N/A N/A lltype malloc N/A N/A lltype Array N/A rffi LONG 4 flavor raw N/A N/A N/A N/A py test raises ValueError ctime.push_arg(x) N/A N/A N/A N/A py test raises ValueError ctime.push_arg(y) N/A N/A N/A N/A py test raises ValueError ctime.push_arg(z) N/A ctime N/A libc N/A N/A N/A lltype free z flavor raw N/A test_unichar N/A N/A self N/A N/A pypy.rlib.runicode MAXUNICODE N/A wchar N/A cast_type_to_ffitype N/A lltype UniChar N/A N/A MAXUNICODE 65535 N/A N/A N/A wchar ffi_type_uint32 N/A N/A N/A wchar ffi_type_uint16 N/A test_call_time N/A N/A self N/A N/A N/A libc N/A N/A self get_libc N/A ulong N/A cast_type_to_ffitype N/A rffi ULONG N/A N/A N/A ctime N/A N/A libc getpointer time N/A ffi_type_pointer ulong N/A N/A N/A KeyError N/A N/A ctime N/A N/A libc getpointer _time32 N/A ffi_type_pointer ulong N/A N/A N/A ctime push_arg N/A N/A lltype nullptr N/A N/A rffi CArray N/A rffi LONG N/A t0 N/A N/A ctime call N/A rffi LONG N/A N/A N/A time sleep 2 N/A N/A N/A ctime push_arg N/A N/A lltype nullptr N/A N/A rffi CArray N/A rffi LONG N/A t1 N/A N/A ctime call N/A rffi LONG N/A N/A t1 t0 N/A l_t N/A N/A lltype malloc N/A N/A rffi CArray N/A rffi LONG 1 flavor raw N/A N/A N/A ctime push_arg l_t N/A t1 N/A N/A ctime call N/A rffi LONG N/A N/A N/A l_t N/A 0 t1 N/A N/A N/A lltype free l_t flavor raw N/A ctime N/A libc N/A N/A ALLOCATED N/A test_closure_heap N/A N/A self N/A N/A N/A ch N/A ClosureHeap N/A N/A N/A ch free_list N/A a N/A N/A ch alloc N/A N/A ch free_list N/A b N/A N/A ch alloc N/A chunks N/A a b N/A p N/A ch free_list N/A p N/A N/A N/A N/A chunks append p N/A p N/A N/A N/A rffi cast N/A rffi VOIDPP p N/A 0 N/A closure_size N/A N/A rffi sizeof N/A FFI_CLOSUREP TO N/A N/A N/A len chunks N/A CHUNK closure_size N/A i N/A range N/A N/A len chunks 1 N/A N/A s N/A N/A rffi cast N/A rffi UINT N/A chunks N/A N/A i 1 N/A e N/A N/A rffi cast N/A rffi UINT N/A chunks N/A i N/A N/A N/A e s N/A N/A rffi sizeof N/A FFI_CLOSUREP TO N/A N/A N/A ch free a N/A N/A N/A ch free_list N/A N/A rffi cast N/A rffi VOIDP a N/A snd N/A N/A N/A rffi cast N/A rffi VOIDPP a N/A 0 N/A N/A snd N/A chunks N/A 2 N/A N/A N/A ch free b N/A N/A N/A ch free_list N/A N/A rffi cast N/A rffi VOIDP b N/A snd N/A N/A N/A rffi cast N/A rffi VOIDPP b N/A 0 N/A N/A snd N/A N/A rffi cast N/A rffi VOIDP a N/A test_callback N/A N/A self N/A N/A N/A slong N/A cast_type_to_ffitype N/A rffi LONG N/A libc N/A N/A self get_libc N/A qsort N/A N/A libc getpointer qsort N/A ffi_type_pointer slong slong ffi_type_pointer ffi_type_void callback N/A N/A ll_args ll_res stuff N/A N/A N/A p_a1 N/A N/A N/A rffi cast N/A rffi VOIDPP N/A ll_args N/A 0 N/A 0 N/A p_a2 N/A N/A N/A rffi cast N/A rffi VOIDPP N/A ll_args N/A 1 N/A 0 N/A a1 N/A N/A N/A rffi cast N/A rffi INTP p_a1 N/A 0 N/A a2 N/A N/A N/A rffi cast N/A rffi INTP p_a2 N/A 0 N/A res N/A N/A rffi cast N/A rffi INTP ll_res N/A N/A a1 a2 N/A N/A N/A res N/A 0 N/A N/A rffi cast N/A rffi INT 1 N/A N/A N/A res N/A 0 N/A N/A rffi cast N/A rffi INT -1 N/A N/A ptr N/A CallbackFuncPtr N/A ffi_type_pointer ffi_type_pointer ffi_type_sint callback N/A TP N/A N/A rffi CArray N/A rffi INT N/A to_sort N/A N/A lltype malloc TP 4 flavor raw N/A N/A to_sort N/A 0 N/A N/A rffi cast N/A rffi INT 4 N/A N/A to_sort N/A 1 N/A N/A rffi cast N/A rffi INT 3 N/A N/A to_sort N/A 2 N/A N/A rffi cast N/A rffi INT 1 N/A N/A to_sort N/A 3 N/A N/A rffi cast N/A rffi INT 2 N/A N/A N/A qsort push_arg N/A N/A rffi cast N/A rffi VOIDP to_sort N/A N/A N/A qsort push_arg N/A N/A rffi sizeof N/A rffi INT N/A N/A N/A qsort push_arg 4 N/A N/A N/A qsort push_arg N/A ptr ll_closure N/A N/A N/A qsort call N/A lltype Void N/A N/A N/A N/A N/A rffi cast N/A lltype Signed N/A to_sort N/A i N/A i N/A range 4 N/A 1 2 3 4 N/A N/A N/A lltype free to_sort flavor raw N/A N/A keepalive_until_here ptr N/A test_compile N/A N/A self N/A N/A N/A py N/A N/A N/A N/A py test skip Segfaulting test, skip f N/A N/A x y N/A N/A N/A libm N/A N/A self get_libm N/A c_pow N/A N/A libm getpointer pow N/A ffi_type_double ffi_type_double ffi_type_double N/A N/A N/A c_pow push_arg x N/A N/A N/A c_pow push_arg y N/A res N/A N/A c_pow call N/A rffi DOUBLE N/A res N/A N/A fn N/A compile f N/A float float N/A res N/A fn 2.0 4.0 N/A N/A res 16.0 N/A test_rawfuncptr N/A N/A self N/A N/A N/A libm N/A N/A self get_libm N/A pow N/A N/A libm getrawpointer pow N/A ffi_type_double ffi_type_double ffi_type_double N/A buffer N/A N/A lltype malloc N/A N/A rffi DOUBLEP TO 3 flavor raw N/A N/A buffer N/A 0 2.0 N/A N/A buffer N/A 1 3.0 N/A N/A buffer N/A 2 43.5 N/A N/A N/A pow call N/A N/A N/A rffi cast N/A rffi VOIDP buffer N/A N/A rffi cast N/A rffi VOIDP N/A N/A rffi ptradd buffer 1 N/A N/A rffi cast N/A rffi VOIDP N/A N/A rffi ptradd buffer 2 N/A N/A N/A buffer N/A 2 8.0 N/A N/A N/A lltype free buffer flavor raw N/A pow N/A libm N/A N/A ALLOCATED N/A test_make_struct_fftiype N/A N/A self N/A N/A N/A tp N/A make_struct_ffitype 6 2 N/A N/A N/A tp c_type FFI_TYPE_STRUCT N/A N/A N/A tp c_size 6 N/A N/A N/A tp c_alignment 2 N/A N/A N/A lltype free tp flavor raw N/A test_struct_by_val N/A N/A self N/A N/A N/A platform N/A N/A N/A N/A platform machine x86_64 N/A N/A N/A N/A N/A py test skip Segfaults on x86_64 because small structures may be passed in registers and c_elements must not be null pypy.translator.tool.cbuild ExternalCompilationInfo pypy.translator.platform platform pypy.tool.udir udir N/A c_file N/A N/A N/A N/A udir ensure test_libffi dir 1 join xlib.c N/A N/A N/A c_file write N/A N/A N/A py code Source 
        #include <stdlib.h>
        #include <stdio.h>

        struct x_y {
            long x;
            long y;
        };

        long sum_x_y(struct x_y s) {
            return s.x + s.y;
        }

        long sum_x_y_p(struct x_y *p) {
            return p->x + p->y;
        }
        
         N/A eci N/A ExternalCompilationInfo export_symbols N/A sum_x_y N/A lib_name N/A str N/A N/A platform compile N/A c_file eci x standalone False N/A lib N/A CDLL lib_name N/A slong N/A cast_type_to_ffitype N/A rffi LONG N/A size N/A N/A slong c_size 2 N/A alignment N/A slong c_alignment N/A tp N/A make_struct_ffitype size alignment N/A sum_x_y N/A N/A lib getrawpointer sum_x_y N/A tp slong N/A buffer N/A N/A lltype malloc N/A N/A rffi LONGP TO 3 flavor raw N/A N/A buffer N/A 0 200 N/A N/A buffer N/A 1 220 N/A N/A buffer N/A 2 666 N/A N/A N/A sum_x_y call N/A N/A N/A rffi cast N/A rffi VOIDP buffer N/A N/A rffi cast N/A rffi VOIDP N/A N/A rffi ptradd buffer 2 N/A N/A N/A buffer N/A 2 420 N/A N/A N/A lltype free buffer flavor raw N/A sum_x_y N/A N/A N/A lltype free tp flavor raw N/A lib N/A N/A ALLOCATED N/A test_ret_struct_val N/A N/A self N/A N/A N/A platform N/A N/A N/A N/A platform machine x86_64 N/A N/A N/A N/A N/A py test skip Segfaults on x86_64 because small structures may be passed in registers and c_elements must not be null pypy.translator.tool.cbuild ExternalCompilationInfo pypy.translator.platform platform pypy.tool.udir udir N/A c_file N/A N/A N/A N/A udir ensure test_libffi dir 1 join xlib.c N/A N/A N/A c_file write N/A N/A N/A py code Source 
        #include <stdlib.h>
        #include <stdio.h>

        struct s2h {
            short x;
            short y;
        };

        struct s2h give(short x, short y) {
            struct s2h out;
            out.x = x;
            out.y = y;
            return out;
        }

        struct s2h perturb(struct s2h inp) {
            inp.x *= 2;
            inp.y *= 3;
            return inp;
        }
        
         N/A eci N/A ExternalCompilationInfo export_symbols N/A give perturb N/A lib_name N/A str N/A N/A platform compile N/A c_file eci x standalone False N/A lib N/A CDLL lib_name N/A size N/A N/A ffi_type_sshort c_size 2 N/A alignment N/A ffi_type_sshort c_alignment N/A tp N/A make_struct_ffitype size alignment N/A give N/A N/A lib getrawpointer give N/A ffi_type_sshort ffi_type_sshort tp N/A inbuffer N/A N/A lltype malloc N/A N/A rffi SHORTP TO 2 flavor raw N/A N/A inbuffer N/A 0 N/A N/A rffi cast N/A rffi SHORT 40 N/A N/A inbuffer N/A 1 N/A N/A rffi cast N/A rffi SHORT 72 N/A outbuffer N/A N/A lltype malloc N/A N/A rffi SHORTP TO 2 flavor raw N/A N/A N/A give call N/A N/A N/A rffi cast N/A rffi VOIDP inbuffer N/A N/A rffi cast N/A rffi VOIDP N/A N/A rffi ptradd inbuffer 1 N/A N/A rffi cast N/A rffi VOIDP outbuffer N/A N/A N/A outbuffer N/A 0 40 N/A N/A N/A outbuffer N/A 1 72 N/A perturb N/A N/A lib getrawpointer perturb N/A tp tp N/A N/A inbuffer N/A 0 N/A N/A rffi cast N/A rffi SHORT 7 N/A N/A inbuffer N/A 1 N/A N/A rffi cast N/A rffi SHORT 11 N/A N/A N/A perturb call N/A N/A N/A rffi cast N/A rffi VOIDP inbuffer N/A N/A rffi cast N/A rffi VOIDP outbuffer N/A N/A N/A inbuffer N/A 0 7 N/A N/A N/A inbuffer N/A 1 11 N/A N/A N/A outbuffer N/A 0 14 N/A N/A N/A outbuffer N/A 1 33 N/A N/A N/A lltype free outbuffer flavor raw N/A N/A N/A lltype free inbuffer flavor raw N/A give N/A perturb N/A N/A N/A lltype free tp flavor raw N/A lib N/A N/A ALLOCATED N/A test_cdll_life_time N/A N/A self N/A N/A pypy.translator.tool.cbuild ExternalCompilationInfo pypy.translator.platform platform pypy.tool.udir udir N/A c_file N/A N/A N/A N/A udir ensure test_libffi dir 1 join xlib.c N/A N/A N/A c_file write N/A N/A N/A py code Source 
        long fun(long i) {
            return i + 42;
        }
         N/A eci N/A ExternalCompilationInfo export_symbols N/A fun N/A lib_name N/A str N/A N/A platform compile N/A c_file eci x standalone False N/A lib N/A CDLL lib_name N/A slong N/A cast_type_to_ffitype N/A rffi LONG N/A fun N/A N/A lib getrawpointer fun N/A slong slong N/A lib N/A buffer N/A N/A lltype malloc N/A N/A rffi LONGP TO 2 flavor raw N/A N/A buffer N/A 0 200 N/A N/A buffer N/A 1 -1 N/A N/A N/A fun call N/A N/A N/A rffi cast N/A rffi VOIDP buffer N/A N/A rffi cast N/A rffi VOIDP N/A N/A rffi ptradd buffer 1 N/A N/A N/A buffer N/A 1 242 N/A N/A N/A lltype free buffer flavor raw N/A fun N/A N/A ALLOCATED N/A N/A TestWin32Handles N/A N/A setup_class N/A N/A cls N/A N/A N/A N/A N/A sys platform win32 N/A N/A N/A N/A N/A py test skip Handle to libc library, Win-only test N/A test_get_libc_handle N/A N/A self N/A N/A N/A handle N/A get_libc_handle N/A N/A get_libc_name N/A N/A hex handle N/A N/A handle 0 N/A N/A N/A handle 4096 0 N/A N/A