{"name": "tests_fill_fragment_file", "code": "ssize_t __fastcall tests_fill_fragment_file ( unsigned int @@a1@@ , unsigned int @@a2@@ , unsigned int @@a3@@ ) { __off_t @@v5@@ ; @@v5@@ = lseek ( @@a2@@ , Number L , Number ) ; tests_test ( @@v5@@ != Number , String , String , Number ) ; return tests_write_fragment_file ( @@a1@@ , @@a2@@ , @@v5@@ , @@a3@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "__off_t", "s": 8}, "location": "s8"}]}
{"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_write_fragment_file", "code": "ssize_t __fastcall tests_write_fragment_file ( unsigned int @@a1@@ , unsigned int @@a2@@ , __off_t @@a3@@ , unsigned int @@a4@@ ) { int * @@v5@@ ; unsigned int @@n@@ ; char @@buf@@ [ Number ] ; int @@v10@@ ; __int64 @@v11@@ ; __off_t @@v12@@ ; ssize_t @@v13@@ ; unsigned int @@i@@ ; @@n@@ = @@a4@@ ; if ( @@a4@@ > Number ) @@n@@ = Number ; @@v12@@ = lseek ( @@a2@@ , Number L , Number ) ; tests_test ( @@v12@@ != Number , String , String , Number ) ; if ( @@a3@@ > @@v12@@ ) @@a3@@ = @@v12@@ ; @@v12@@ = lseek ( @@a2@@ , @@a3@@ , Number ) ; tests_test ( @@v12@@ != Number , String , String , Number ) ; tests_test ( @@v12@@ == @@a3@@ , String , String , Number ) ; srand ( @@a1@@ ) ; while ( @@a3@@ -- ) rand ( ) ; @@v11@@ = Number ; @@v10@@ = Number ; for ( @@i@@ = Number ; @@n@@ > @@i@@ ; ++ @@i@@ ) @@buf@@ [ @@i@@ ] = rand ( ) / @@v10@@ ; @@v13@@ = write ( @@a2@@ , @@buf@@ , @@n@@ ) ; if ( @@v13@@ <= Number ) { @@v5@@ = __errno_location ( ) ; tests_test ( * @@v5@@ == Number , String , String , Number ) ; * __errno_location ( ) = Number ; @@v13@@ = Number L ; } tests_maybe_sync ( @@a2@@ ) ; return @@v13@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__off_t", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 3, "t": "int"}, "location": "r8"}, {"n": "v13", "t": {"T": 1, "n": "ssize_t", "s": 8}, "location": "s16"}, {"n": "v12", "t": {"T": 1, "n": "__off_t", "s": 8}, "location": "s24"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "buf", "t": {"T": 2, "n": 32780, "s": 1, "t": "char"}, "location": "s32816"}, {"n": "n", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s32836"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "tests_append_to_fragment_file", "code": "__int64 __fastcall tests_append_to_fragment_file ( unsigned int @@a1@@ , unsigned int @@a2@@ , int @@a3@@ ) { int v3 ; __int64 result ; int v5 ; char @@s@@ [ Number ] ; unsigned int @@v8@@ ; int @@fd@@ ; int @@v10@@ ; int @@oflag@@ ; sprintf ( @@s@@ , String , @@a1@@ ) ; if ( @@a3@@ ) { v3 = tests_maybe_sync_flag ( ) ; LOBYTE ( v3 ) = v3 | Number ; @@oflag@@ = v3 ; } else { @@oflag@@ = tests_maybe_sync_flag ( ) | Number ; } @@v10@@ = Number ; @@fd@@ = open ( @@s@@ , @@oflag@@ , Number L ) ; if ( @@fd@@ == Number && * __errno_location ( ) == Number ) { * __errno_location ( ) = Number ; result = Number L ; } else { tests_test ( @@fd@@ != Number , String , String , Number ) ; @@v8@@ = tests_fill_fragment_file ( @@a1@@ , @@fd@@ , @@a2@@ ) ; v5 = close ( @@fd@@ ) ; tests_test ( v5 != Number , String , String , Number ) ; if ( @@a3@@ ) { if ( ! @@v8@@ ) tests_delete_fragment_file ( @@a1@@ ) ; } result = @@v8@@ ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "s", "t": {"T": 2, "n": 256, "s": 1, "t": "char"}, "location": "s272"}, {"n": "oflag", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}