Closed naure closed 2 weeks ago
SRLI and SRAI have a function code that was forgotten. So their circuits are unsound because they can be used for the other instruction.
Bug discovered during refactoring of the internal encoding: https://github.com/scroll-tech/ceno/pull/538
And fixed in this same PR.
Great find! The switch to saner decoding, like using InsnKind is already paying dividends.
InsnKind
SRLI and SRAI have a function code that was forgotten. So their circuits are unsound because they can be used for the other instruction.
Bug discovered during refactoring of the internal encoding: https://github.com/scroll-tech/ceno/pull/538
And fixed in this same PR.