Higher Subleq | Error | Output | Subleq | ITR |
void main()
{
if(1) __out 49;
else __out 50;
if(0) __out 51;
else __out 52;
__out 53;
}
|
|
145
|
top:top top sqmain
_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
t1; dec Z; Z t1 ?+3; Z Z ?+9; Z; dec t1; dec t1
Z t1 l1
c1 (-1)
Z Z l2
l1:
c2 (-1)
l2:
t1; c3 Z; Z t1 ?+3; Z Z ?+9; Z; c3 t1; c3 t1
Z t1 l3
c4 (-1)
Z Z l4
l3:
c5 (-1)
l4:
c6 (-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)
. c3:0 c1:49 c2:50 c4:51 c5:52 c6:53
. t1:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
|
Root (mg_9_4.hsq:9)
Function:0 [main] (mg_9_4.hsq:1)
Keyword [void] (mg_9_4.hsq:1)
Param-type-list (mg_9_4.hsq:1)
Block (mg_9_4.hsq:2)
Keyword-statement [if] (mg_9_4.hsq:3)
Equality [!=] (mg_9_4.hsq:3)
Const [1] (mg_9_4.hsq:3)
Const [0] (mg_9_4.hsq:3)
OperatorIO [__out] (mg_9_4.hsq:3)
Const [49] (mg_9_4.hsq:3)
OperatorIO [__out] (mg_9_4.hsq:4)
Const [50] (mg_9_4.hsq:4)
Keyword-statement [if] (mg_9_4.hsq:5)
Equality [!=] (mg_9_4.hsq:5)
Const [0] (mg_9_4.hsq:5)
Const [0] (mg_9_4.hsq:5)
OperatorIO [__out] (mg_9_4.hsq:5)
Const [51] (mg_9_4.hsq:5)
OperatorIO [__out] (mg_9_4.hsq:6)
Const [52] (mg_9_4.hsq:6)
OperatorIO [__out] (mg_9_4.hsq:7)
Const [53] (mg_9_4.hsq:7)
|