forked from WebAssembly/spec
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c960b9
commit 9fedb89
Showing
6 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
open Il.Ast | ||
|
||
type reduction_group = (exp * exp * (premise list)) list | ||
|
||
val transform_expr : (exp -> exp) -> exp -> exp | ||
val is_unified_id : string -> bool | ||
|
||
val unify_lhs : string * reduction_group -> string * reduction_group | ||
val unify_defs : clause list -> clause list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
val name_of_rule : Il.Ast.rule -> string | ||
val name2kwd : string -> Il.Ast.typ -> string * string | ||
val get_params : Il.Ast.exp -> Il.Ast.exp list | ||
val exp2expr : Il.Ast.exp -> Al.Ast.expr | ||
val exp2args : Il.Ast.exp -> Al.Ast.expr list | ||
val translate : Il.Ast.script -> Al.Ast.algorithm list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
open Al.Ast | ||
|
||
val merge : instr list -> instr list -> instr list | ||
val push_either :instr -> instr list | ||
val simplify_record_concat : expr -> expr | ||
val enhance_readability : instr list -> instr list | ||
val remove_state : algorithm -> algorithm | ||
val infer_assert : instr list -> instr list | ||
val enforce_return : instr list -> instr list |