1{module, call_last}. %% version = 0 2 3{exports, [{a,1},{b,1},{bar,1},{foo,1},{baz,2},{biz,2}]}. 4 5{attributes, []}. 6 7{labels, 13}. 8 9 10{function, a, 1, 2}. 11 {label,1}. 12 {func_info,{atom,t},{atom,a},1}. 13 {label,2}. 14 {allocate,1,1}. 15 {move,{x,0},{y,0}}. 16 {bif,'+',{f,0},[{y,0},{integer,1}],{x,0}}. 17 {'%live',1}. 18 {call,1,{f,6}}. 19 {bif,'+',{f,0},[{y,0},{integer,2}],{x,0}}. 20 {'%live',1}. 21 {call_last,1,{f,8},2}. 22 23 24{function, b, 1, 4}. 25 {label,3}. 26 {func_info,{atom,t},{atom,b},1}. 27 {label,4}. 28 {allocate,1,1}. 29 {move,{x,0},{y,0}}. 30 {bif,'+',{f,0},[{y,0},{integer,1}],{x,0}}. 31 {'%live',1}. 32 {call,1,{f,6}}. 33 {move,{y,0},{x,1}}. 34 {move,{integer,0},{x,0}}. 35 {call_ext_last,2,{extfunc,lists,seq,2},2}. 36 37 38{function, foo, 1, 6}. 39 {label,5}. 40 {func_info,{atom,t},{atom,foo},1}. 41 {label,6}. 42 {move,{x,0},{x,1}}. 43 {move,{atom,glurf},{x,0}}. 44 {call_ext_only,2,{extfunc,erlang,put,2}}. 45 46 47{function, bar, 1, 8}. 48 {label,7}. 49 {func_info,{atom,t},{atom,bar},1}. 50 {label,8}. 51 {bif,get,{f,0},[{atom,glurf}],{x,1}}. 52 {bif,'+',{f,0},[{x,0},{x,1}],{x,0}}. 53 {'%live',1}. 54 return. 55 56{function, baz, 2, 10}. 57 {label,9}. 58 {func_info,{atom,t},{atom,baz},2}. 59 {label,10}. 60 {allocate,0,2}. 61 {call_ext_only,2,{extfunc,erlang,put,2}}. 62 63{function, biz, 2, 12}. 64 {label,11}. 65 {func_info,{atom,t},{atom,biz},2}. 66 {label,12}. 67 {allocate,0,2}. 68 {call_only,2,{f,10}}. 69