1{module, merge_undefined}. %% version = 0 2 3{exports, [{bar,2},{foo,1},{handle_call,2},{module_info,0},{module_info,1}]}. 4 5{attributes, []}. 6 7{labels, 15}. 8 9 10{function, handle_call, 2, 2}. 11 {label,1}. 12 {func_info,{atom,t},{atom,handle_call},2}. 13 {label,2}. 14 {test,is_atom,{f,1},[{x,0}]}. 15 {select_val,{x,0},{f,1},{list,[{atom,gurka},{f,3},{atom,delete},{f,4}]}}. 16 {label,3}. 17 {allocate_heap,2,6,2}. 18 %% The Y registers are not initialized here. 19 {test,is_eq_exact,{f,5},[{x,0},{atom,ok}]}. 20 {move,{atom,nisse},{x,0}}. 21 {call_ext,1,{extfunc,erlang,exit,1}}. 22 {label,4}. 23 {allocate_heap,1,6,2}. 24 {move,{x,1},{y,0}}. 25 {put_list,{integer,112},nil,{x,0}}. 26 {put_list,{integer,126},{x,0},{x,0}}. 27 {put_list,{y,0},nil,{x,1}}. 28 {'%live',2}. 29 {call_ext,2,{extfunc,io,format,2}}. 30 {test,is_ne_exact,{f,6},[{x,0},{atom,ok}]}. 31 {label,5}. 32 {move,{atom,logReader},{x,1}}. 33 {move,{atom,console},{x,0}}. 34 {call_ext,2,{extfunc,debug,filter,2}}. 35 {test_heap,14,1}. 36 {put_list,{atom,logReader},nil,{x,1}}. 37 {put_list,{atom,console},{x,1},{x,1}}. 38 {put_tuple,3,{x,2}}. 39 {put,{atom,debug}}. 40 {put,{atom,filter}}. 41 {put,{x,1}}. 42 {put_tuple,2,{x,1}}. 43 {put,{x,2}}. 44 {put,{x,0}}. 45 {put_tuple,2,{x,0}}. 46 {put,{atom,badmatch}}. 47 {put,{x,1}}. 48 {'%live',1}. 49 {call_ext,1,{extfunc,erlang,exit,1}}. 50 {label,6}. 51 {move,{y,0},{x,0}}. 52 {call_last,1,{f,8},1}. 53 54 55{function, foo, 1, 8}. 56 {label,7}. 57 {func_info,{atom,t},{atom,foo},1}. 58 {label,8}. 59 {move,{atom,ok},{x,0}}. 60 return. 61 62 63{function, bar, 2, 10}. 64 {label,9}. 65 {func_info,{atom,t},{atom,bar},2}. 66 {label,10}. 67 {move,{atom,ok},{x,0}}. 68 return. 69 70 71{function, module_info, 0, 12}. 72 {label,11}. 73 {func_info,{atom,t},{atom,module_info},0}. 74 {label,12}. 75 {move,{atom,t},{x,0}}. 76 {call_ext_only,1,{extfunc,erlang,get_module_info,1}}. 77 78 79{function, module_info, 1, 14}. 80 {label,13}. 81 {func_info,{atom,t},{atom,module_info},1}. 82 {label,14}. 83 {move,{x,0},{x,1}}. 84 {move,{atom,t},{x,0}}. 85 {call_ext_only,2,{extfunc,erlang,get_module_info,2}}. 86