Skip to content

[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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Heitor Toledo Lassarote de Paula

Merge request reports