Procedure 3 was worth 3 points. There were three main
deductions:
- Adding three instead of twelve.
- Forgetting the last dereference (returning i[3] rather than *i[3]).
- Not spilling if you used r2 or r3.
- Misloading i.
The first deduction was worth 1 point. Remaining deductions were 0.5 each.