-
Notifications
You must be signed in to change notification settings - Fork 0
/
mytest.mitbc
85 lines (84 loc) · 1.49 KB
/
mytest.mitbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
function
{
functions =
[
function
{
functions = [],
constants = [],
parameter_count = 1,
local_vars = [],
local_ref_vars = [],
free_vars = [],
names = [],
labels = {},
instructions =
[
]
},
function
{
functions = [],
constants = [],
parameter_count = 0,
local_vars = [],
local_ref_vars = [],
free_vars = [],
names = [],
labels = {},
instructions =
[
]
},
function
{
functions = [],
constants = [],
parameter_count = 1,
local_vars = [],
local_ref_vars = [],
free_vars = [],
names = [],
labels = {},
instructions =
[
]
},
function
{
functions = [],
constants = [],
parameter_count = 1,
local_vars = [x],
local_ref_vars = [x],
free_vars = [],
names = [],
labels = {},
instructions =
[
push_ref 0
]
}
],
constants = [3, None, -5, "hi", true, false],
parameter_count = 0,
local_vars = [],
local_ref_vars = [],
free_vars = [],
names = [f, input, intcast, print, result, x],
labels = {},
instructions =
[
load_const 0
load_const 1
load_const 2
load_const 3
load_const 4
load_const 5
alloc_record
load_func 3
alloc_closure 0
load_const 4
call 1
]
}