Higher Subleq | Error | Output | Subleq | ITR |
int a=0,b=1;
int main()
{
__out a?48:49;
__out b?50:51;
}
|
|
12
|
top:top top sqmain
. _a:0 _b:1
_main:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
Z _a l1
t1; c1 Z; Z t1; Z
Z Z l2
l1:
t1; c2 Z; Z t1; Z
l2:
t1 (-1)
Z _b l3
t1; c3 Z; Z t1; Z
Z Z l4
l3:
t1; c4 Z; Z t1; Z
l4:
t1 (-1)
?+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:48 c2:49 c3:50 c4:51
. t1:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
|
Root (mg_12_1.hsq:7)
Declaration (mg_12_1.hsq:1)
Keyword [int] (mg_12_1.hsq:1)
Declarator [=] (mg_12_1.hsq:1)
Id [a] (mg_12_1.hsq:1)
Const [0] (mg_12_1.hsq:1)
Declarator [=] (mg_12_1.hsq:1)
Id [b] (mg_12_1.hsq:1)
Const [1] (mg_12_1.hsq:1)
Function:0 [main] (mg_12_1.hsq:2)
Keyword [int] (mg_12_1.hsq:2)
Param-type-list (mg_12_1.hsq:2)
Block (mg_12_1.hsq:3)
OperatorIO [__out] (mg_12_1.hsq:4)
Conditional [?] (mg_12_1.hsq:4)
Variable [a] (mg_12_1.hsq:4) =:1
Const [48] (mg_12_1.hsq:4)
Const [49] (mg_12_1.hsq:4)
OperatorIO [__out] (mg_12_1.hsq:5)
Conditional [?] (mg_12_1.hsq:5)
Variable [b] (mg_12_1.hsq:5) =:1
Const [50] (mg_12_1.hsq:5)
Const [51] (mg_12_1.hsq:5)
|