-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lltz_codegen): change of version + type and other fixes for smartpy compatibility #29
base: main
Are you sure you want to change the base?
Conversation
…tpy compatibilityi
1e14806
to
43ef79c
Compare
(* Computes a map from free variables to their types in the given expression *) | ||
let free_vars_with_types (expr : LLTZ.E.t) : LLTZ.T.t String.Map.t = | ||
let empty = String.Map.empty in | ||
|
||
let () = Printexc.record_backtrace true in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove debug
) | ||
with | ||
| e -> | ||
let backtrace = Printexc.get_backtrace () in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backtrace
|
||
(* prim m n instr stack: m elements are consumed from the stack, n elements are produced *) | ||
let prim m n instr stack = | ||
M.pp Format.err_formatter instr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove pp
Context
https://app.asana.com/0/1207308081067689/1207308081144596
Description
This PR changes the OCaml version, adds support for annotations, fixes some type issues, adds optimisation for removing tuple variable via a single drop and also make multiple smaller adjustments/ bug fixes to make LLTZ compatible with Michel->LLTZ compilation.
Manual testing
./build test-scenario-mockup-lltz -j8 > temp.out from smartpy