{"name": "tests_create_orphan", "code": "__int64 __fastcall tests_create_orphan ( unsigned int @@a1@@ ) { int @@v2@@ ; char @@s@@ [ Number ] ; unsigned int @@v4@@ ; int @@v5@@ ; int @@oflag@@ ; sprintf ( @@s@@ , String , @@a1@@ ) ; @@oflag@@ = tests_maybe_sync_flag ( ) | Number ; @@v5@@ = Number ; @@v4@@ = open ( @@s@@ , @@oflag@@ , Number L ) ; if ( @@v4@@ == Number && ( * __errno_location ( ) == Number || * __errno_location ( ) == Number ) ) return @@v4@@ ; tests_test ( @@v4@@ != Number , String , String , Number ) ; tests_sync_directory ( @@s@@ ) ; @@v2@@ = unlink ( @@s@@ ) ; tests_test ( @@v2@@ != Number , String , String , Number ) ; return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "s", "t": {"T": 2, "n": 260, "s": 1, "t": "char"}, "location": "s272"}, {"n": "oflag", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "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_sync_directory", "code": "void __fastcall tests_sync_directory ( const char * @@a1@@ ) { char * v1 ; int v2 ; int v3 ; int v4 ; int @@fd@@ ; const char * @@file@@ ; if ( tests_ok_to_sync ) { v1 = strdup ( @@a1@@ ) ; @@file@@ = dirname ( v1 ) ; v2 = tests_maybe_sync_flag ( ) ; @@fd@@ = open ( @@file@@ , v2 ) ; tests_test ( @@fd@@ != Number , String , String , Number ) ; v3 = fsync ( @@fd@@ ) ; tests_test ( v3 != Number , String , String , Number ) ; v4 = close ( @@fd@@ ) ; tests_test ( v4 != Number , String , String , Number ) ; free ( v1 ) ; } }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "file", "t": {"T": 3, "t": "const char"}, "location": "s16"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}]} {"name": "tests_maybe_sync", "code": "void __fastcall tests_maybe_sync ( int @@a1@@ ) { int @@v1@@ ; if ( tests_ok_to_sync ) { @@v1@@ = fsync ( @@a1@@ ) ; tests_test ( @@v1@@ != Number , String , String , Number ) ; } }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}]} {"name": "tests_maybe_sync_flag", "code": "__int64 tests_maybe_sync_flag ( ) { __int64 @@result@@ ; if ( tests_ok_to_sync ) @@result@@ = Number L ; else @@result@@ = Number L ; return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}