{"name": "validate_classifier_full", "code": "__int64 __fastcall validate_classifier_full ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { unsigned int v3 ; __int64 v4 ; __int64 v5 ; __int64 v6 ; __int64 v7 ; __int64 result ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; __int64 @@v13@@ ; __int64 @@v14@@ ; unsigned int @@v15@@ ; __int64 @@v16@@ ; __int64 @@v17@@ ; char * @@haystack@@ ; unsigned int @@v19@@ ; _DWORD * @@v20@@ ; int @@v21@@ ; __int64 @@v22@@ ; int * @@v23@@ ; __int64 @@v24@@ ; unsigned int @@v25@@ ; unsigned int @@v26@@ ; __int64 @@v27@@ ; __int64 @@v28@@ ; __int64 @@v29@@ ; int @@v30@@ ; float @@v31@@ ; float @@v32@@ ; int @@j@@ ; unsigned int @@i@@ ; parse_network_cfg ( & @@v13@@ , @@a2@@ ) ; set_batch_network ( & @@v13@@ , Number L ) ; if ( @@a3@@ ) load_weights ( & @@v13@@ , @@a3@@ ) ; v3 = time ( Number L ) ; srand ( v3 ) ; @@v29@@ = read_data_cfg ( @@a1@@ ) ; @@v28@@ = option_find_str ( @@v29@@ , String , String ) ; @@v27@@ = option_find_str ( @@v29@@ , String , String ) ; @@v26@@ = option_find_int ( @@v29@@ , String , Number L ) ; @@v25@@ = option_find_int ( @@v29@@ , String , Number L ) ; @@v24@@ = get_labels ( @@v28@@ ) ; @@v23@@ = ( int * ) get_paths ( @@v27@@ ) ; @@v22@@ = list_to_array ( @@v23@@ ) ; @@v21@@ = * @@v23@@ ; free_list ( @@v23@@ ) ; @@v32@@ = Number ; @@v31@@ = Number ; @@v20@@ = calloc ( ( int ) @@v25@@ , Number ) ; @@v19@@ = @@v15@@ ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { result = @@i@@ ; if ( ( int ) @@i@@ >= @@v21@@ ) break ; @@v30@@ = Number ; @@haystack@@ = * ( char * * ) ( Number L * ( int ) @@i@@ + @@v22@@ ) ; for ( @@j@@ = Number ; @@j@@ < ( int ) @@v26@@ ; ++ @@j@@ ) { if ( strstr ( @@haystack@@ , * ( const char * * ) ( Number L * @@j@@ + @@v24@@ ) ) ) { @@v30@@ = @@j@@ ; break ; } } load_image_color ( & @@v12@@ , * ( _QWORD * ) ( Number L * ( int ) @@i@@ + @@v22@@ ) , Number L , Number L ) ; resize_min ( & @@v10@@ , @@v19@@ ) ; v4 = ( unsigned int ) @@v10@@ ; resize_network ( & @@v13@@ , ( unsigned int ) @@v10@@ , HIDWORD ( @@v10@@ ) ) ; v5 = @@v11@@ ; @@v17@@ = network_predict ( @@v11@@ ) ; if ( @@v16@@ ) { v4 = HIDWORD ( @@v14@@ ) ; v5 = @@v17@@ ; hierarchy_predictions ( @@v17@@ , HIDWORD ( @@v14@@ ) , @@v16@@ , Number L , Number L ) ; } free_image ( v5 , v4 , v6 ) ; free_image ( v5 , v4 , v7 ) ; top_k ( @@v17@@ , @@v26@@ , @@v25@@ , @@v20@@ ) ; if ( @@v30@@ == * @@v20@@ ) @@v32@@ = @@v32@@ + Number ; for ( @@j@@ = Number ; @@j@@ < ( int ) @@v25@@ ; ++ @@j@@ ) { if ( @@v30@@ == @@v20@@ [ @@j@@ ] ) @@v31@@ = @@v31@@ + Number ; } printf ( String , @@i@@ , ( float ) ( @@v32@@ / ( float ) ( int ) ( @@i@@ + Number ) ) , @@v25@@ , ( float ) ( @@v31@@ / ( float ) ( int ) ( @@i@@ + Number ) ) ) ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v19", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s100"}, {"n": "haystack", "t": {"T": 3, "t": "char"}, "location": "s112"}, {"n": "v32", "t": {"T": 1, "n": "float", "s": 4}, "location": "s12"}, {"n": "v17", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s120"}, {"n": "v31", "t": {"T": 1, "n": "float", "s": 4}, "location": "s16"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s192"}, {"n": "v30", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s236"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s256"}, {"n": "v29", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s384"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v28", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s416"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s432"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s448"}, {"n": "v27", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v26", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s52"}, {"n": "v25", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s56"}, {"n": "v24", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v23", "t": {"T": 3, "t": "int"}, "location": "s72"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}, {"n": "v22", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v21", "t": {"T": 1, "n": "int", "s": 4}, "location": "s84"}, {"n": "v20", "t": {"T": 3, "t": "_DWORD"}, "location": "s96"}]}
{"name": "run_classifier", "code": "void __fastcall run_classifier ( int @@a1@@ , __int64 @@a2@@ ) { __int64 v2 ; const char * v3 ; char * v4 ; int v5 ; int v6 ; unsigned int @@v7@@ [ Number ] ; char * @@nptr@@ ; const char * @@v9@@ ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; unsigned int @@v13@@ ; int @@v14@@ ; int @@v15@@ ; __int64 @@v16@@ ; __int64 @@v17@@ ; if ( @@a1@@ > Number ) { @@v17@@ = find_char_arg ( ( unsigned int ) @@a1@@ , @@a2@@ , String , Number L ) ; @@v16@@ = read_intlist ( @@v17@@ , @@v7@@ , gpu_index ) ; @@v15@@ = find_int_arg ( ( unsigned int ) @@a1@@ , @@a2@@ , String , Number L ) ; @@v14@@ = find_int_arg ( ( unsigned int ) @@a1@@ , @@a2@@ , String , Number L ) ; @@v13@@ = find_arg ( ( unsigned int ) @@a1@@ , @@a2@@ , String ) ; @@v12@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; @@v11@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; if ( @@a1@@ <= Number ) v2 = Number L ; else v2 = * ( _QWORD * ) ( @@a2@@ + Number ) ; @@v10@@ = v2 ; if ( @@a1@@ <= Number ) v3 = Number L ; else v3 = * ( const char * * ) ( @@a2@@ + Number ) ; @@v9@@ = v3 ; if ( @@a1@@ <= Number ) v4 = Number L ; else v4 = * ( char * * ) ( @@a2@@ + Number ) ; @@nptr@@ = v4 ; if ( v4 ) v5 = atoi ( @@nptr@@ ) ; else v5 = Number ; @@v7@@ [ Number ] = v5 ; if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { predict_classifier ( @@v12@@ , @@v11@@ , @@v10@@ , @@v9@@ , @@v14@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { v6 = atoi ( @@nptr@@ ) ; try_classifier ( @@v12@@ , @@v11@@ , @@v10@@ , @@v9@@ , v6 ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { train_classifier ( @@v12@@ , @@v11@@ , @@v10@@ , @@v16@@ , @@v7@@ [ Number ] , @@v13@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { demo_classifier ( ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { gun_classifier ( ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { threat_classifier ( ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { test_classifier ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { label_classifier ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { validate_classifier_single ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { validate_classifier_multi ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { validate_classifier_10 ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { validate_classifier_crop ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } else if ( ! strcmp ( * ( const char * * ) ( @@a2@@ + Number ) , String ) ) { validate_classifier_full ( @@v12@@ , @@v11@@ , @@v10@@ ) ; } } else { fprintf ( stderr , String , * ( const char * * ) @@a2@@ , * ( const char * * ) ( @@a2@@ + Number ) ) ; } }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v9", "t": {"T": 3, "t": "const char"}, "location": "s64"}, {"n": "nptr", "t": {"T": 3, "t": "char"}, "location": "s72"}, {"n": "v17", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}, {"n": "v7", "t": {"T": 2, "n": 2, "s": 4, "t": "unsigned int"}, "location": "s80"}]}