Higher Subleq | Error | Output | Subleq | ITR |
void main()
{
int k=50;
__out k;
}
|
|
2
|
top:top top sqmain
_main:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c1 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t3 (-1)
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
sqmain:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _main; . ?; inc sp
Z Z (-1)
. c1:50
. t1:0 t2:0 t3:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
|
Root (mg_8_6.hsq:6)
Function:1 [main] (mg_8_6.hsq:1)
Keyword [void] (mg_8_6.hsq:1)
Param-type-list (mg_8_6.hsq:1)
Block (mg_8_6.hsq:2)
Declaration (mg_8_6.hsq:3)
Keyword [int] (mg_8_6.hsq:3)
Declarator [=] (mg_8_6.hsq:3)
Stackvar:1 [k] (mg_8_6.hsq:3)
Const [50] (mg_8_6.hsq:3)
OperatorIO [__out] (mg_8_6.hsq:4)
Unary [*] (mg_8_6.hsq:4) k:3
Additive [+] (mg_8_6.hsq:4) k:3
Variable [@bp] (mg_8_6.hsq:4) k:3
Const [1] (mg_8_6.hsq:4) k:3
|