{"name": "DArray_heapsort", "code": "__int64 __fastcall DArray_heapsort ( _DWORD * @@a1@@ , __int64 @@a2@@ ) { int * v2 ; char * v3 ; int * v4 ; char * v5 ; int @@i@@ ; if ( ! @@a1@@ ) { if ( * __errno_location ( ) ) { v2 = __errno_location ( ) ; v3 = strerror ( * v2 ) ; } else { v3 = String ; } fprintf ( stderr , String , String , Number L , String , v3 ) ; * __errno_location ( ) = Number ; return Number L ; } if ( ! @@a2@@ ) { if ( * __errno_location ( ) ) { v4 = __errno_location ( ) ; v5 = strerror ( * v4 ) ; } else { v5 = String ; } fprintf ( stderr , String , String , Number L , String , v5 ) ; * __errno_location ( ) = Number ; return Number L ; } if ( * @@a1@@ == Number ) return Number L ; _DArray_heapsort_hepify ( @@a1@@ , @@a2@@ ) ; for ( @@i@@ = * @@a1@@ - Number ; @@i@@ > Number ; _DArray_heapsort_siftdown ( @@a1@@ , Number L , ( unsigned int ) @@i@@ , @@a2@@ ) ) DArray_swap ( ( __int64 ) @@a1@@ , Number , @@i@@ -- ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"name": "DArray_swap", "code": "__int64 __fastcall DArray_swap ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ ) { __int64 @@result@@ ; __int64 @@v4@@ ; @@v4@@ = * ( _QWORD * ) ( Number L * @@a2@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@a2@@ ) = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@a3@@ ) ; @@result@@ = @@v4@@ ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@a3@@ ) = @@v4@@ ; return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "__DArray_heapsort_hepify", "code": "__int64 __fastcall _DArray_heapsort_hepify ( int * @@a1@@ , __int64 @@a2@@ ) { double @@v2@@ ; __int64 @@result@@ ; int @@i@@ ; @@v2@@ = floor ( ( ( double ) * @@a1@@ - Number ) / Number ) ; @@result@@ = ( unsigned int ) ( int ) @@v2@@ ; for ( @@i@@ = ( int ) @@v2@@ ; @@i@@ >= Number ; -- @@i@@ ) @@result@@ = _DArray_heapsort_siftdown ( @@a1@@ , ( unsigned int ) @@i@@ , ( unsigned int ) ( * @@a1@@ - Number ) , @@a2@@ ) ; return @@result@@ ; }", "source": [{"n": "v2", "t": {"T": 1, "n": "double", "s": 8}, "location": "r496"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "__DArray_heapsort_siftdown", "code": "__int64 __fastcall _DArray_heapsort_siftdown ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ , int ( __fastcall * @@a4@@ ) ( __int64 , __int64 ) ) { __int64 @@result@@ ; int @@v7@@ ; int @@v8@@ ; while ( Number ) { @@result@@ = ( unsigned int ) ( Number * @@a2@@ ) ; if ( @@a3@@ <= ( int ) @@result@@ ) break ; @@v7@@ = Number * @@a2@@ + Number ; @@v8@@ = @@a2@@ ; if ( @@a4@@ ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@a2@@ , * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@v7@@ ) < Number ) @@v8@@ = Number * @@a2@@ + Number ; if ( @@v7@@ < @@a3@@ && @@a4@@ ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * @@v8@@ , * ( _QWORD * ) ( @@a1@@ + Number ) + Number * ( @@v7@@ + Number L ) ) < Number ) @@v8@@ = Number * @@a2@@ + Number ; @@result@@ = ( unsigned int ) @@v8@@ ; if ( @@v8@@ == @@a2@@ ) break ; DArray_swap ( @@a1@@ , @@a2@@ , @@v8@@ ) ; @@a2@@ = @@v8@@ ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 9, "n": "int (__fastcall *)(__int64, __int64)"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}