{"name": "handle_interactive", "code": "__int64 __fastcall handle_interactive ( __int64 @@a1@@ ) { char * @@ptr@@ ; void * @@v4@@ ; const char * @@v5@@ ; unsigned int @@i@@ ; unsigned int @@v7@@ ; @@v5@@ = String ; @@v7@@ = Number ; rl_initialize ( ) ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { asprintf ( & @@ptr@@ , String , @@i@@ , @@v5@@ ) ; @@v4@@ = ( void * ) readline ( @@ptr@@ ) ; if ( ! @@v4@@ && ! * ( _BYTE * ) init_default_objects ) break ; if ( * ( _BYTE * ) @@v4@@ ) add_history ( @@v4@@ ) ; duk_push_string ( @@a1@@ , @@v4@@ ) ; free ( @@v4@@ ) ; @@v4@@ = Number L ; duk_push_string ( @@a1@@ , @@ptr@@ ) ; free ( @@ptr@@ ) ; interactive_mode = Number ; if ( ( unsigned int ) duk_safe_call ( @@a1@@ , wrapped_compile_execute , Number L , Number L ) ) { print_error ( @@a1@@ , stdout ) ; @@v7@@ = Number ; } else { duk_pop ( @@a1@@ ) ; } } return @@v7@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v5", "t": {"T": 3, "t": "const char"}, "location": "s16"}, {"n": "v4", "t": {"T": 3, "t": "void"}, "location": "s24"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "ptr", "t": {"T": 3, "t": "char"}, "location": "s40"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}
{"name": "init_default_objects", "code": "__int64 __fastcall init_default_objects ( __int64 @@a1@@ ) { init_env ( @@a1@@ ) ; init_modules ( @@a1@@ ) ; return init_workers ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "print_error", "code": "__int64 __fastcall print_error ( __int64 @@a1@@ , FILE * @@a2@@ ) { const char * @@v2@@ ; duk_safe_call ( @@a1@@ , get_stack_raw , Number L , Number L ) ; @@v2@@ = ( const char * ) duk_safe_to_lstring ( @@a1@@ , Number , Number L ) ; fprintf ( @@a2@@ , String , @@v2@@ ) ; fflush ( @@a2@@ ) ; return duk_pop ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "FILE"}, "location": "r64"}, {"n": "v2", "t": {"T": 3, "t": "const char"}, "location": "r8"}]} {"name": "wrapped_compile_execute", "code": "__int64 __fastcall wrapped_compile_execute ( __int64 @@a1@@ ) { const char * @@v1@@ ; duk_compile_raw ( @@a1@@ , Number L , Number L , Number L ) ; duk_push_global_object ( @@a1@@ ) ; duk_call_method ( @@a1@@ , Number L ) ; if ( interactive_mode ) { @@v1@@ = ( const char * ) duk_safe_to_lstring ( @@a1@@ , Number , Number L ) ; fprintf ( stdout , String , @@v1@@ ) ; fflush ( stdout ) ; } duk_pop ( @@a1@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 3, "t": "const char"}, "location": "r8"}]} {"name": "main", "code": "int __cdecl main ( int @@argc@@ , const char * * @@argv@@ , const char * * @@envp@@ ) { const char * * @@argva@@ ; int @@argca@@ ; char * @@s@@ ; __int64 @@v7@@ ; int @@v8@@ ; int @@i@@ ; char @@v10@@ ; int @@v11@@ ; @@v11@@ = Number ; @@v10@@ = Number ; if ( @@argc@@ <= Number ) usage ( @@argc@@ , @@argv@@ , @@envp@@ ) ; while ( Number ) { @@v8@@ = getopt ( @@argc@@ , ( char * const * ) @@argv@@ , String ) ; if ( @@v8@@ == Number ) break ; if ( @@v8@@ == Number ) { @@v10@@ = Number ; } else if ( @@v8@@ != Number ) { ( ( void ( * ) ( void ) ) usage ) ( ) ; } } @@argca@@ = @@argc@@ - optind ; @@argva@@ = & @@argv@@ [ optind ] ; @@v7@@ = duk_create_heap ( Number L , Number L , Number L , Number L , Number L ) ; init_default_objects ( @@v7@@ ) ; duk_push_global_object ( @@v7@@ ) ; duk_push_array ( @@v7@@ ) ; for ( @@i@@ = Number ; @@i@@ < @@argca@@ ; ++ @@i@@ ) { duk_push_int ( @@v7@@ , ( unsigned int ) ( @@i@@ - Number ) ) ; duk_push_string ( @@v7@@ , @@argva@@ [ @@i@@ ] ) ; duk_put_prop ( @@v7@@ , Number L ) ; } duk_put_prop_string ( @@v7@@ , Number L , String ) ; duk_pop ( @@v7@@ ) ; duk_push_global_object ( @@v7@@ ) ; duk_push_array ( @@v7@@ ) ; if ( @@argca@@ > Number ) { @@s@@ = ( char * ) * @@argva@@ ; if ( strlen ( * @@argva@@ ) == Number && * @@s@@ == Number ) { @@v10@@ = Number ; } else if ( ( unsigned int ) handle_file ( @@v7@@ , @@s@@ ) ) { @@v11@@ = Number ; @@v10@@ = Number ; } else { @@v10@@ = Number ; run_message_loop ( @@v7@@ ) ; } } if ( @@v10@@ ) { if ( ( unsigned int ) handle_interactive ( @@v7@@ ) ) @@v11@@ = Number ; fwrite ( String , Number , Number , stderr ) ; fflush ( stderr ) ; } duk_destroy_heap ( @@v7@@ ) ; return @@v11@@ ; }", "source": [{"n": "envp", "t": {"T": 3, "t": "const char *"}, "location": "r16"}, {"n": "argc", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "argv", "t": {"T": 3, "t": "const char *"}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s40"}, {"n": "v10", "t": {"T": 1, "n": "char", "s": 1}, "location": "s5"}, {"n": "argca", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "argva", "t": {"T": 3, "t": "const char *"}, "location": "s64"}]}