{"name": "test__all_tracepoints", "code": "__int64 __fastcall test__all_tracepoints ( __int64 @@a1@@ ) { if ( ( unsigned int ) count_tracepoints ( ) == * ( _DWORD * ) ( @@a1@@ + Number ) ) return test__checkevent_tracepoint_multi ( ( __int64 * * ) @@a1@@ ) ; eprintf ( Number L , String , String , Number L , String ) ; return Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "test__checkevent_tracepoint", "code": "__int64 __fastcall test__checkevent_tracepoint ( __int64 @@a1@@ ) { __int64 @@result@@ ; __int64 @@v2@@ ; @@v2@@ = perf_evlist__first ( @@a1@@ ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) == Number ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } else if ( * ( _DWORD * ) ( @@v2@@ + Number ) == Number ) { if ( * ( _QWORD * ) ( @@v2@@ + Number ) == Number L ) { if ( * ( _QWORD * ) ( @@v2@@ + Number ) == Number L ) { @@result@@ = Number L ; } else { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } } else { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } } else { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } } else { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]} {"name": "test__checkevent_tracepoint_multi", "code": "__int64 __fastcall test__checkevent_tracepoint_multi ( __int64 * * @@a1@@ ) { __int64 @@result@@ ; __int64 * * @@i@@ ; if ( * ( ( int * ) @@a1@@ + Number ) > Number ) { if ( * ( ( _DWORD * ) @@a1@@ + Number ) ) { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } else { for ( @@i@@ = ( __int64 * * ) * @@a1@@ ; @@i@@ != @@a1@@ ; @@i@@ = ( __int64 * * ) * @@i@@ ) { if ( * ( ( _DWORD * ) @@i@@ + Number ) != Number ) { eprintf ( Number L , String , String , Number L , String ) ; return Number ; } if ( @@i@@ [ Number ] != ( __int64 * ) ( ( char * ) & loc_583 + Number ) ) { eprintf ( Number L , String , String , Number L , String ) ; return Number ; } if ( @@i@@ [ Number ] != ( __int64 * ) & loc_1 ) { eprintf ( Number L , String , String , Number L , String ) ; return Number ; } } @@result@@ = Number L ; } } else { eprintf ( Number L , String , String , Number L , String ) ; @@result@@ = Number ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__int64 *"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 3, "t": "__int64 *"}, "location": "s32"}]} {"name": "count_tracepoints", "code": "__int64 count_tracepoints ( ) { __int64 v0 ; __int64 @@v1@@ ; __int64 v2 ; __int64 result ; __int64 v4 ; unsigned int @@v5@@ ; DIR * @@v6@@ ; struct dirent64 * @@v7@@ ; DIR * @@dirp@@ ; struct dirent64 * @@v9@@ ; char @@name@@ [ Number ] ; char @@v11@@ [ Number ] ; unsigned __int64 @@v12@@ ; @@v12@@ = __readfsqword ( Number ) ; @@v5@@ = Number ; v0 = debugfs_find_mountpoint ( ) ; scnprintf ( @@name@@ , Number L , String , v0 , @@v1@@ , v2 ) ; @@v6@@ = opendir ( @@name@@ ) ; if ( @@v6@@ ) { while ( Number ) { @@v7@@ = readdir64 ( @@v6@@ ) ; if ( ! @@v7@@ ) break ; if ( strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) ) { scnprintf ( @@v11@@ , Number L , String , ( __int64 ) @@name@@ , ( __int64 ) @@v7@@ -> d_name , v4 ) ; @@dirp@@ = opendir ( @@v11@@ ) ; if ( ! @@dirp@@ ) { eprintf ( Number L , String , String , Number L , String ) ; return Number ; } while ( Number ) { @@v9@@ = readdir64 ( @@dirp@@ ) ; if ( ! @@v9@@ ) break ; if ( strcmp ( @@v9@@ -> d_name , String ) && strcmp ( @@v9@@ -> d_name , String ) && strcmp ( @@v9@@ -> d_name , String ) ) { if ( strcmp ( @@v9@@ -> d_name , String ) ) ++ @@v5@@ ; } } closedir ( @@dirp@@ ) ; } } closedir ( @@v6@@ ) ; result = @@v5@@ ; } else { eprintf ( Number L , String , String , Number L , String ) ; result = Number ; } return result ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v11", "t": {"T": 2, "n": 4104, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v12", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "name", "t": {"T": 2, "n": 4096, "s": 1, "t": "char"}, "location": "s8208"}, {"n": "v9", "t": {"T": 3, "t": "struct dirent64"}, "location": "s8216"}, {"n": "dirp", "t": {"T": 3, "t": "DIR"}, "location": "s8224"}, {"n": "v7", "t": {"T": 3, "t": "struct dirent64"}, "location": "s8232"}, {"n": "v6", "t": {"T": 3, "t": "DIR"}, "location": "s8240"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8244"}]}