1{module, call_last}.  %% version = 0
2
3{exports, [{a,1},{b,1},{bar,1},{foo,1},{module_info,0},{module_info,1}]}.
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
57{function, module_info, 0, 10}.
58  {label,9}.
59    {func_info,{atom,t},{atom,module_info},0}.
60  {label,10}.
61    {move,{atom,t},{x,0}}.
62    {call_ext_only,1,{extfunc,erlang,get_module_info,1}}.
63
64
65{function, module_info, 1, 12}.
66  {label,11}.
67    {func_info,{atom,t},{atom,module_info},1}.
68  {label,12}.
69    {move,{x,0},{x,1}}.
70    {move,{atom,t},{x,0}}.
71    {call_ext_only,2,{extfunc,erlang,get_module_info,2}}.
72