[morley-debugger#4] Fix annotations discarded in some instructions
Description
Problem: Currently, some instructions such as IF_NONE are discarding annotations. According to tezos-client, they should be kept.
Solution: Change the interpreter so that annotations are preserved, in some cases restoring the old annotations. In some polymorphic instructions such as ITER and MAP, create a new method responsible for extracting notes for the polymorphic's value element annotations.
This MR is split in two parts. The second part can be found in morley-debugger!3 (merged).
Related issue(s)
This is a pre-requisite for resolving morley-debugger#4 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.