{"name": "tests_create_entry", "code": "__int64 __fastcall tests_create_entry ( char * @@a1@@ ) { unsigned int v1 ; unsigned __int64 v2 ; __int64 result ; int * v4 ; char @@s@@ [ Number ] ; int @@fd@@ ; while ( Number ) { v1 = tests_random_no ( Number ) ; sprintf ( @@s@@ , String , v1 ) ; @@fd@@ = open ( @@s@@ , Number ) ; if ( @@fd@@ == Number ) break ; close ( @@fd@@ ) ; } if ( @@a1@@ ) strcpy ( @@a1@@ , @@s@@ ) ; if ( tests_random_no ( Number ) ) { v2 = tests_random_no ( Number ) ; result = tests_create_file ( @@s@@ , v2 ) ; } else if ( mkdir ( @@s@@ , Number ) == Number ) { v4 = __errno_location ( ) ; tests_test ( * v4 == Number , String , String , Number ) ; * __errno_location ( ) = Number ; result = Number L ; } else { result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "s", "t": {"T": 2, "n": 268, "s": 1, "t": "char"}, "location": "s272"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"name": "tests_test", "code": "void __fastcall tests_test ( int @@a1@@ , const char * @@a2@@ , const char * @@a3@@ , unsigned int @@a4@@ ) { char * v4 ; char * v5 ; time_t @@timer@@ ; int @@errnum@@ ; if ( ! @@a1@@ ) { @@errnum@@ = * __errno_location ( ) ; time ( & @@timer@@ ) ; v4 = ctime ( & @@timer@@ ) ; fprintf ( stderr , String , program_name , v4 , @@a2@@ , @@a3@@ , @@a4@@ ) ; if ( @@errnum@@ ) { fprintf ( stderr , String , ( unsigned int ) @@errnum@@ ) ; v5 = strerror ( @@errnum@@ ) ; fprintf ( stderr , String , v5 ) ; } exit ( Number ) ; } }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "timer", "t": {"T": 1, "n": "time_t", "s": 8}, "location": "s16"}, {"n": "errnum", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "tests_create_file", "code": "__int64 __fastcall tests_create_file ( const char * @@a1@@ , size_t @@a2@@ ) { __int64 result ; int v3 ; __int64 @@v4@@ ; int @@fd@@ ; int @@oflag@@ ; @@oflag@@ = tests_maybe_sync_flag ( ) | Number ; @@fd@@ = open ( @@a1@@ , @@oflag@@ , Number L ) ; if ( @@fd@@ == Number && * __errno_location ( ) == Number ) { * __errno_location ( ) = Number ; result = Number L ; } else { tests_test ( @@fd@@ != Number , String , String , Number ) ; @@v4@@ = tests_fill_file ( @@fd@@ , @@a2@@ ) ; v3 = close ( @@fd@@ ) ; tests_test ( v3 != Number , String , String , Number ) ; if ( ! @@a2@@ || @@v4@@ ) tests_sync_directory ( @@a1@@ ) ; else tests_delete_file ( @@a1@@ ) ; result = @@v4@@ ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r64"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "oflag", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "tests_random_no", "code": "unsigned __int64 __fastcall tests_random_no ( unsigned __int64 @@a1@@ ) { unsigned __int64 @@v2@@ ; unsigned __int64 @@v3@@ ; unsigned __int64 @@v4@@ ; unsigned __int64 v5 ; __int64 v6 ; if ( ! @@a1@@ ) return Number L ; if ( @@a1@@ - Number >= Number ) { v6 = ( __int64 ) rand ( ) << Number ; v5 = rand ( ) + v6 ; @@v4@@ = Number ; tests_test ( @@a1@@ <= Number , String , String , Number ) ; } else { v5 = rand ( ) ; @@v4@@ = Number ; } if ( @@a1@@ <= Number ) return @@a1@@ * v5 / @@v4@@ ; if ( v5 >= @@a1@@ ) { @@v3@@ = @@a1@@ ; @@v2@@ = v5 ; } else { @@v3@@ = v5 ; @@v2@@ = @@a1@@ ; } return @@v3@@ * ( @@v2@@ / @@v4@@ ) + @@v3@@ * ( @@v2@@ % @@v4@@ ) / @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s32"}]}