IntersectMBO / IntersectMBO/plutus

Figure out how an inferred PIR type corresponds to the PLC type of the compiled term and test that

Open
#6,072 0 comments 0 reactions 0 assignees View on GitHub
Internal Plutus IR status: triaged Test
Dominant language
Haskell
Stars
1.6k
Forks
508
Avg merge
3d 10h
Merged PRs (30d)
22

Description

`PlutusIR.Test.compileAndMaybeTypecheck` type checks the given IR term, compiles it and infers the PLC type of the result. For better test coverage it would be good to establish the relation between the two and test that it holds. Maybe not only in `compileAndMaybeTypecheck` but in other functions too (which ones needs to be figured out as well).

Michael commented:

> This will be non-trivial because of the escaping types issue. Many of our example PIR terms have datatypes in their top-level types, whereas the compiled PLC term will have the compiled equivalent of that type (which will be something very complicated).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.