Higher Subleq | Error | Output | Subleq | ITR |
int a=48,b=50;
void main()
{
if( b != a ) __out a;
if( a != b ) __out a+1;
if( a != a ) __out b;
}
|
|
01
|
top:top top sqmain
. _a:48 _b:50
_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
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
t1; _b Z; Z t1; _a t1 ?+3; Z Z ?+15
Z; t1 Z ?+9; Z; t1; inc t1
Z t1 l1
_a (-1)
l1:
t2; _a Z; Z t2; _b t2 ?+3; Z Z ?+15
Z; t2 Z ?+9; Z; t2; inc t2
Z t2 l2
t1; t2; _a t1; dec t1; t1 t2
t2 (-1)
l2:
t1; _a Z; Z t1; _a t1 ?+3; Z Z ?+15
Z; t1 Z ?+9; Z; t1; inc t1
Z t1 l3
_b (-1)
l3:
?+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)
. t1:0 t2:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
|
Root (mg_14_3.hsq:8)
Declaration (mg_14_3.hsq:1)
Keyword [int] (mg_14_3.hsq:1)
Declarator [=] (mg_14_3.hsq:1)
Id [a] (mg_14_3.hsq:1)
Const [48] (mg_14_3.hsq:1)
Declarator [=] (mg_14_3.hsq:1)
Id [b] (mg_14_3.hsq:1)
Const [50] (mg_14_3.hsq:1)
Function:0 [main] (mg_14_3.hsq:2)
Keyword [void] (mg_14_3.hsq:2)
Param-type-list (mg_14_3.hsq:2)
Block (mg_14_3.hsq:3)
Keyword-statement [if] (mg_14_3.hsq:4)
Equality [!=] (mg_14_3.hsq:4)
Variable [b] (mg_14_3.hsq:4) =:1
Variable [a] (mg_14_3.hsq:4) =:1
OperatorIO [__out] (mg_14_3.hsq:4)
Variable [a] (mg_14_3.hsq:4) =:1
Keyword-statement [if] (mg_14_3.hsq:5)
Equality [!=] (mg_14_3.hsq:5)
Variable [a] (mg_14_3.hsq:5) =:1
Variable [b] (mg_14_3.hsq:5) =:1
OperatorIO [__out] (mg_14_3.hsq:5)
Additive [+] (mg_14_3.hsq:5)
Variable [a] (mg_14_3.hsq:5) =:1
Const [1] (mg_14_3.hsq:5)
Keyword-statement [if] (mg_14_3.hsq:6)
Equality [!=] (mg_14_3.hsq:6)
Variable [a] (mg_14_3.hsq:6) =:1
Variable [a] (mg_14_3.hsq:6) =:1
OperatorIO [__out] (mg_14_3.hsq:6)
Variable [b] (mg_14_3.hsq:6) =:1
|