{"name": "test__parse_events", "code": "__int64 test__parse_events ( ) { unsigned int @@v1@@ ; unsigned int v2 ; unsigned int v3 ; unsigned int @@v4@@ ; @@v1@@ = test_events ( ( __int64 ) & test__events , Number ) ; if ( test_pmu ( ) ) { v2 = test_events ( ( __int64 ) & test__events_pmu , Number ) ; if ( ! @@v1@@ ) @@v1@@ = v2 ; } if ( test_pmu ( ) ) { @@v4@@ = test_pmu_events ( ) ; if ( @@v4@@ ) return @@v4@@ ; } v3 = test_terms ( ( __int64 ) & test__terms , Number ) ; if ( ! @@v1@@ ) @@v1@@ = v3 ; return @@v1@@ ; }", "source": [{"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}]}
{"name": "test_event", "code": "__int64 __fastcall test_event ( _QWORD * @@a1@@ ) { unsigned int @@v2@@ ; __int64 @@v3@@ ; @@v3@@ = perf_evlist__new ( ) ; if ( ! @@v3@@ ) return Number L ; @@v2@@ = parse_events ( @@v3@@ , * @@a1@@ ) ; if ( @@v2@@ ) { eprintf ( Number L , String , ( const char * ) * @@a1@@ , @@v2@@ ) ; } else { @@v2@@ = ( ( __int64 ( __fastcall * ) ( __int64 ) ) @@a1@@ [ Number ] ) ( @@v3@@ ) ; perf_evlist__delete ( @@v3@@ ) ; } return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}]} {"name": "test_events", "code": "__int64 __fastcall test_events ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@i@@ ; unsigned int @@v5@@ ; const char * * @@v6@@ ; @@v3@@ = Number ; for ( @@i@@ = Number ; @@i@@ < @@a2@@ ; ++ @@i@@ ) { @@v6@@ = ( const char * * ) ( Number L * @@i@@ + @@a1@@ ) ; eprintf ( Number L , String , @@i@@ , * @@v6@@ ) ; @@v5@@ = test_event ( @@v6@@ ) ; if ( @@v5@@ ) @@v3@@ = @@v5@@ ; } return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v6", "t": {"T": 3, "t": "const char *"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}]} {"name": "test_term", "code": "__int64 __fastcall test_term ( _QWORD * @@a1@@ ) { unsigned int @@v2@@ ; _QWORD * @@v3@@ ; @@v3@@ = malloc ( Number ) ; if ( ! @@v3@@ ) return Number L ; INIT_LIST_HEAD ( @@v3@@ ) ; @@v2@@ = parse_events_terms ( @@v3@@ , * @@a1@@ ) ; if ( @@v2@@ ) { eprintf ( Number L , String , ( const char * ) * @@a1@@ , @@v2@@ ) ; } else { @@v2@@ = ( ( __int64 ( __fastcall * ) ( _QWORD * ) ) @@a1@@ [ Number ] ) ( @@v3@@ ) ; parse_events__free_terms ( @@v3@@ ) ; } return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}]} {"name": "test_terms", "code": "__int64 __fastcall test_terms ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@i@@ ; const char * * @@v5@@ ; @@v3@@ = Number ; for ( @@i@@ = Number ; @@i@@ < @@a2@@ ; ++ @@i@@ ) { @@v5@@ = ( const char * * ) ( Number L * @@i@@ + @@a1@@ ) ; eprintf ( Number L , String , @@i@@ , * @@v5@@ ) ; @@v3@@ = test_term ( @@v5@@ ) ; if ( @@v3@@ ) break ; } return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 3, "t": "const char *"}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}]} {"name": "test_pmu", "code": "_BOOL8 test_pmu ( ) { const char * @@v0@@ ; int @@v2@@ ; struct stat64 @@v3@@ ; char @@s@@ [ Number ] ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; @@v0@@ = ( const char * ) sysfs_find_mountpoint ( ) ; snprintf ( @@s@@ , Number , String , @@v0@@ ) ; @@v2@@ = stat64 ( @@s@@ , & @@v3@@ ) ; if ( @@v2@@ ) eprintf ( Number L , String ) ; return @@v2@@ == Number ; }", "source": [{"n": "v0", "t": {"T": 3, "t": "const char"}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 4104, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v3", "t": {"T": 6, "n": "struct stat64", "l": [{"T": 4, "n": "st_dev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_ino", "t": "__ino64_t", "s": 8}, {"T": 4, "n": "st_nlink", "t": "__nlink_t", "s": 8}, {"T": 4, "n": "st_mode", "t": "__mode_t", "s": 4}, {"T": 4, "n": "st_uid", "t": "__uid_t", "s": 4}, {"T": 4, "n": "st_gid", "t": "__gid_t", "s": 4}, {"T": 4, "n": "__pad0", "t": "int", "s": 4}, {"T": 4, "n": "st_rdev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_size", "t": "__off_t", "s": 8}, {"T": 4, "n": "st_blksize", "t": "__blksize_t", "s": 8}, {"T": 4, "n": "st_blocks", "t": "__blkcnt64_t", "s": 8}, {"T": 4, "n": "st_atim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_mtim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_ctim", "t": "timespec", "s": 16}, {"T": 4, "n": "__unused", "t": "__syscall_slong_t[3]", "s": 24}]}, "location": "s4256"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4260"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "test_pmu_events", "code": "__int64 test_pmu_events ( ) { const char * v0 ; __int64 result ; unsigned int @@v2@@ ; DIR * @@dirp@@ ; struct dirent64 * @@v4@@ ; __int64 @@v5@@ [ Number ] ; struct stat64 @@v6@@ ; char @@v7@@ [ Number ] ; char @@s@@ [ Number ] ; unsigned __int64 @@v9@@ ; @@v9@@ = __readfsqword ( Number ) ; v0 = ( const char * ) sysfs_find_mountpoint ( ) ; snprintf ( @@s@@ , Number , String , v0 ) ; @@v2@@ = stat64 ( @@s@@ , & @@v6@@ ) ; if ( @@v2@@ ) { eprintf ( Number L , String ) ; result = Number L ; } else { @@dirp@@ = opendir ( @@s@@ ) ; if ( @@dirp@@ ) { while ( ! @@v2@@ ) { @@v4@@ = readdir64 ( @@dirp@@ ) ; if ( ! @@v4@@ ) break ; if ( strcmp ( @@v4@@ -> d_name , String ) ) { if ( strcmp ( @@v4@@ -> d_name , String ) ) { snprintf ( @@v7@@ , Number , String , @@v4@@ -> d_name ) ; @@v5@@ [ Number ] = ( __int64 ) @@v7@@ ; @@v5@@ [ Number ] = ( __int64 ) test__checkevent_pmu_events ; @@v2@@ = test_event ( @@v5@@ ) ; } } } closedir ( @@dirp@@ ) ; result = @@v2@@ ; } else { eprintf ( Number L , String ) ; result = Number ; } } return result ; }", "source": [{"n": "s", "t": {"T": 2, "n": 4104, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v7", "t": {"T": 2, "n": 112, "s": 1, "t": "char"}, "location": "s4224"}, {"n": "v6", "t": {"T": 6, "n": "struct stat64", "l": [{"T": 4, "n": "st_dev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_ino", "t": "__ino64_t", "s": 8}, {"T": 4, "n": "st_nlink", "t": "__nlink_t", "s": 8}, {"T": 4, "n": "st_mode", "t": "__mode_t", "s": 4}, {"T": 4, "n": "st_uid", "t": "__uid_t", "s": 4}, {"T": 4, "n": "st_gid", "t": "__gid_t", "s": 4}, {"T": 4, "n": "__pad0", "t": "int", "s": 4}, {"T": 4, "n": "st_rdev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_size", "t": "__off_t", "s": 8}, {"T": 4, "n": "st_blksize", "t": "__blksize_t", "s": 8}, {"T": 4, "n": "st_blocks", "t": "__blkcnt64_t", "s": 8}, {"T": 4, "n": "st_atim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_mtim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_ctim", "t": "timespec", "s": 16}, {"T": 4, "n": "__unused", "t": "__syscall_slong_t[3]", "s": 24}]}, "location": "s4368"}, {"n": "v5", "t": {"T": 2, "n": 4, "s": 8, "t": "__int64"}, "location": "s4400"}, {"n": "v4", "t": {"T": 3, "t": "struct dirent64"}, "location": "s4408"}, {"n": "dirp", "t": {"T": 3, "t": "DIR"}, "location": "s4416"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4420"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}