The console log below shows a faulty grade for 6 out of 8 tests passed.
cm: grader (grader *)$ python grader/self.py bitwise-shift-2
executing test 'base'
[PASSED] cc compiles selfie.c
[PASSED] self-compilation does not lead to warnings or syntax errors
executing test 'bitwise-shift-2'
==== STAGE 1 ====
[PASSED] bitwise-right-shift operator with literals does compile
[PASSED] bitwise-right-shift operator with variables does compile
[PASSED] biwise-right-shift operator with invalid syntax does not compile
[PASSED] bitwise-left-shift operator with literals does compile
[PASSED] bitwise-left-shift operator with variables does compile
[PASSED] biwise-left-shift operator with invalid syntax does not compile
==== STAGE 2 ====
[PASSED] bitwise-right-shift operator has right RISC-V encoding
[FAILED] bitwise-right-shift operator calculates the right result for literals when executed with MIPSTER
./selfie -c grader/bitwise-right-shift-literals.c -m 128
> Execution terminated with wrong exit code 13 instead of 2 <
>> ./selfie: Max Göttl's selfie compiling grader/../grader/bitwise-right-shift-literals.c with starc
>> ./selfie: 65 characters read in 3 lines and 0 comments
>> ./selfie: with 53(81.53%) characters in 17 actual symbols
>> ./selfie: 0 global variables, 1 procedures, 0 string literals
>> ./selfie: 1 calls, 0 assignments, 0 while, 0 if, 1 return
>> ./selfie: symbol table search time was 3 iterations on average and 18 in total
>> ./selfie: 384 bytes generated with 94 instructions and 8 bytes of data
>> ./selfie: init: lui: 1(1.06%), addi: 45(47.87%)
>> ./selfie: memory: ld: 16(17.02%), sd: 6(6.38%)
>> ./selfie: compute: add: 1(1.06%), sub: 2(2.12%), mul: 0(0.00%), divu: 0(0.00%), remu: 2(2.12%)
>> ./selfie: control: sltu: 0(0.00%), beq: 4(4.25%), jal: 2(2.12%), jalr: 6(6.38%), ecall: 8(8.51%)
>> ./selfie: selfie executing grader/../grader/bitwise-right-shift-literals.c with 128MB physical memory on mipster
>> ./selfie: context grader/../grader/bitwise-right-shift-literals.c throws uncaught unknown instruction
>> ./selfie: selfie terminating grader/../grader/bitwise-right-shift-literals.c with exit code 13
>> ./selfie: summary: 25 executed instructions and 0.00MB(0.00%) mapped memory
>> ./selfie: init: lui: 1(4.00%), addi: 15(60.00%)
>> ./selfie: memory: ld: 0(0.00%), sd: 4(16.00%)
>> ./selfie: compute: add: 0(0.00%), sub: 1(4.00%), mul: 0(0.00%), divu: 0(0.00%), remu: 1(4.00%)
>> ./selfie: control: sltu: 0(0.00%), beq: 0(0.00%), jal: 1(4.00%), jalr: 0(0.00%), ecall: 2(8.00%)
>> ./selfie: profile: total,max(ratio%)@addr(line#),2max,3max
>> ./selfie: calls: 1,1(100.00%)@0x138(~2),0(0.00%),0(0.00%)
>> ./selfie: loops: 0,0(0.00%),0(0.00%),0(0.00%)
>> ./selfie: loads: 0,0(0.00%),0(0.00%),0(0.00%)
>> ./selfie: stores: 4,1(25.00%)@0x30(~1),1(25.00%)@0x40(~1),1(25.00%)@0x13C(~2)
[PASSED] bitwise-right-shift operator has right RISC-V encoding
[FAILED] bitwise-right-shift operator calculates the right result for variables when executed with MIPSTER
./selfie -c grader/bitwise-right-shift-variables.c -m 128
> Execution terminated with wrong exit code 13 instead of 2 <
>> ./selfie: Max Göttl's selfie compiling grader/../grader/bitwise-right-shift-variables.c with starc
>> ./selfie: 113 characters read in 9 lines and 0 comments
>> ./selfie: with 81(71.68%) characters in 31 actual symbols
>> ./selfie: 0 global variables, 1 procedures, 0 string literals
>> ./selfie: 1 calls, 2 assignments, 0 while, 0 if, 1 return
>> ./selfie: symbol table search time was 2 iterations on average and 24 in total
>> ./selfie: 408 bytes generated with 100 instructions and 8 bytes of data
>> ./selfie: init: lui: 1(1.00%), addi: 47(47.00%)
>> ./selfie: memory: ld: 18(18.00%), sd: 8(8.00%)
>> ./selfie: compute: add: 1(1.00%), sub: 2(2.00%), mul: 0(0.00%), divu: 0(0.00%), remu: 2(2.00%)
>> ./selfie: control: sltu: 0(0.00%), beq: 4(4.00%), jal: 2(2.00%), jalr: 6(6.00%), ecall: 8(8.00%)
>> ./selfie: selfie executing grader/../grader/bitwise-right-shift-variables.c with 128MB physical memory on mipster
>> ./selfie: context grader/../grader/bitwise-right-shift-variables.c throws uncaught unknown instruction
>> ./selfie: selfie terminating grader/../grader/bitwise-right-shift-variables.c with exit code 13
>> ./selfie: summary: 30 executed instructions and 0.00MB(0.00%) mapped memory
>> ./selfie: init: lui: 1(3.33%), addi: 16(53.33%)
>> ./selfie: memory: ld: 2(6.66%), sd: 6(20.00%)
>> ./selfie: compute: add: 0(0.00%), sub: 1(3.33%), mul: 0(0.00%), divu: 0(0.00%), remu: 1(3.33%)
>> ./selfie: control: sltu: 0(0.00%), beq: 0(0.00%), jal: 1(3.33%), jalr: 0(0.00%), ecall: 2(6.66%)
>> ./selfie: profile: total,max(ratio%)@addr(line#),2max,3max
>> ./selfie: calls: 1,1(100.00%)@0x138(~5),0(0.00%),0(0.00%)
>> ./selfie: loops: 0,0(0.00%),0(0.00%),0(0.00%)
>> ./selfie: loads: 2,1(50.00%)@0x160(~8),1(50.00%)@0x164(~8),0(0.00%)
>> ./selfie: stores: 6,1(16.66%)@0x30(~1),1(16.66%)@0x40(~1),1(16.66%)@0x13C(~5)
[PASSED] bitwise-left-shift operator has right RISC-V encoding
[PASSED] bitwise-left-shift operator calculates the right result for literals when executed with MIPSTER
[PASSED] bitwise-left-shift operator has right RISC-V encoding
[PASSED] bitwise-left-shift operator calculates the right result for variables when executed with MIPSTER
tests of stage 1 passed: 100.0%
tests of stage 2 passed: 0.0%
your grade is: 5