Skip to content

[TM-259] Update annotation printing

Roman Melnikov requested to merge rvem/tm259-upd-ann-printing into master

Description

Problem: We explicitly print empty annotations when there are two of them with the same type (basically field or variable) within a single instruction. Such approach increases contract size, which is pretty sad.

Solution: Explicitly print empty annotations only when they are coming along with non-empty annotation of the same type.

Related issue(s)

https://issues.serokell.io/issue/TM-259

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:

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports