In the interpreter, run_jump and run_jumpi were not throwing the correct exceptions. This PR changes the two functions so that they correspond to the logic in operation.rs.
Note that this also removes an unnecessary assert_ne! which suggests to calm KECCAK256 if the segment is MainMemory in KECCAK_GENERAL; since the sys_keccak256 calls KECCAK_GENERAL and the interpreter now relies directly on the kernel syscalls, the assert is no longer useful (and causes unnecessary failures).
In the interpreter,
run_jump
andrun_jumpi
were not throwing the correct exceptions. This PR changes the two functions so that they correspond to the logic inoperation.rs
.Note that this also removes an unnecessary
assert_ne!
which suggests to calmKECCAK256
if the segment isMainMemory
inKECCAK_GENERAL
; since thesys_keccak256
callsKECCAK_GENERAL
and the interpreter now relies directly on the kernel syscalls, the assert is no longer useful (and causes unnecessary failures).