MIR: Add minimal typechecker
Context
This builds on changes from !10006 (merged) and !9999 (merged) adds a minimal typechecker on top of the generated AST. The typechecker just returns a boolean to indicate the result. Also it only checks for a minimal subset of Michelson instructions which is required to process the Fibonacci listing from !9906 (merged).
Related: #6213 (closed), !10006 (merged), !9999 (merged)
Closes #6212 (closed).
Manually testing the MR
Please run cargo test typecheck_test_expect to run the relavant tests. cargo test will run all the included tests.
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Nicolas Ayache