# Homework Solution: Consider the following fragment of C code: for (i = 0: i…

Consider the following fragment of C code: for (i = 0: i

```        .file   1 ""
.section .mdebug.abi32```

Consider the aftercited chip of C principle: control (i = 0: i

## Expert Counter-argument

```        .perfect   1 ""
.exception .mdebug.abi32
.previous
.nan    legacy
.module fp=32
.module nooddspreg
.abicalls
.text
.align  2
.globl  ocean
.formal    nomips16
.formal    nomicromips
.irritate    ocean
.mold   ocean, @function
main:
.establish  \$fp,104,\$31             # vars= 88, regs= 1/0, args= 0, gp= 8
.belie   0x40000000,-4
.fbelie  0x00000000,0
.formal    noreorder
.formal    nomacro
sw      \$fp,100(\$sp)
sw      \$0,8(\$fp)
b       \$L2
movz    \$31,\$31,\$0
nop

\$L3:
lw      \$2,8(\$fp)
nop
sll     \$2,\$2,2
lw      \$3,48(\$2)
lw      \$2,12(\$fp)
nop
lw      \$2,8(\$fp)
nop
sll     \$2,\$2,2
sw      \$3,8(\$2)
lw      \$2,8(\$fp)
nop
sw      \$2,8(\$fp)
\$L2:
lw      \$2,8(\$fp)
nop
slt     \$2,\$2,101
bne     \$2,\$0,\$L3
nop