While
Input Source
int main()
{
int i;
while(i < 5){}
}
3AC (Three-Address Code)
DATA , - , - , -
TEXT , - , - , -
CALL , main , 4 , -
LLAC , 4 , - , -
BR , PROG_END , - , -
#
# int main()
main:
# {
# int i;
# while(i < 5){}
label_00000:
LW , ireg_00000 , 0($fp) , -
ADDIU , ireg_00001 , $zero , 5
LT , ireg_00002 , ireg_00000 , ireg_00001
BRNE , label_00001 , $zero , ireg_00002
BR , label_00002 , - , -
label_00001:
BR , label_00000 , - , -
label_00002:
JR , $RA , - , -
PROG_END:
# }
#