part 2 multiply test failure

42 views
Skip to first unread message

Taha Liaqat

unread,
Oct 9, 2020, 7:26:48 PM10/9/20
to cmpt-295-sfu
SFU ID: tliaqat
Github username: tliaqat
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor) https://github.com/CMPT-295-SFU/assignment-2-tliaqat

Line and file:  load function - part2.c
Expected behavior: multiply test finishes properly
Observed behavior: multiply test says "IndexError: list index out of range"
Question: Why does my multiply test go out of bounds? All of the actual vs expected addresses are quite close, so Im assuming it has something to with incrementing my PC, but I do increment in all my functions. And all of my individual tests do pass. The test that fails is for load. 
The expected output is lw x19, 0(x2) vs my output which is lw x19, 2(x0)


Regards,
Taha Liaqat


Screen Shot 2020-10-09 at 11.55.18 AM.png

Arrvindh Shriraman

unread,
Oct 9, 2020, 8:58:43 PM10/9/20
to cmpt-295-sfu
that just means your trace is broken beyond the point which our script can say anything meaningful.
Do not pay attention to the list index msg; fix your program.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages