-
Notifications
You must be signed in to change notification settings - Fork 1
/
c1.txt
58 lines (58 loc) · 922 Bytes
/
c1.txt
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
Syntax tree:
FuncK
IntK
IdK: gcd
ParamsK
ParamK
IntK
IdK: u
ParamK
IntK
IdK: v
CompK
If
Op: ==
IdK: v
ConstK: 0
Return
IdK: u
Return
CallK
IdK: gcd
ArgsK
IdK: v
Op: -
IdK: u
Op: *
Op: /
IdK: u
IdK: v
IdK: v
FuncK
VoidK
IdK: main
ParamsK
VoidK
CompK
Var_DeclK
IntK
IdK: x
Var_DeclK
IntK
IdK: y
Assign
IdK: x
CallK
IdK: input
Assign
IdK: y
CallK
IdK: input
CallK
IdK: output
ArgsK
CallK
IdK: gcd
ArgsK
IdK: x
IdK: y