Skip to content

Merge type_map and restrictions into rmc-metadata.json #690

@tedinski

Description

@tedinski

We previously introduced type_map.json and restrictions.json as output files from rmc-rustc. And now for proof harnesses (and more) we have rmc-metadata.json.

We should merge the above two into rmc-metadata.json.

In the end, we'll just have:

  1. symtab.json for cbmc's consumption.
  2. rmc-metadata.json for consumption by our tools, which contains everything else we want to know.

As part of this, we should have a crate use to serialize/deserialize this format. Currently, this is mixed around in a few different places:

  1. compiler/rustc_codegen_rmc/src/context/metadata.rs
  2. library/rmc_restrictions/

We should create an rmc_metadata crate to house all these schemas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] InternalTracks some internal work. I.e.: Users should not be affected.[I] Refactoring / Clean UpRefactoring or cleaning up of existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions