summaryrefslogtreecommitdiff
path: root/compiler/InterpreterStatements.mli
diff options
context:
space:
mode:
authorSon HO2023-11-22 15:06:43 +0100
committerGitHub2023-11-22 15:06:43 +0100
commitbacf3f5f6f5f6a9aa650d5ae8d12a132fd747039 (patch)
tree9953d7af1fe406cdc750030a43a5e4d6245cd763 /compiler/InterpreterStatements.mli
parent587f1ebc0178acb19029d3fc9a729c197082aba7 (diff)
parent01cfd899119174ef7c5941c99dd251711f4ee701 (diff)
Merge pull request #45 from AeneasVerif/son_merge_types
Big cleanup
Diffstat (limited to 'compiler/InterpreterStatements.mli')
-rw-r--r--compiler/InterpreterStatements.mli35
1 files changed, 14 insertions, 21 deletions
diff --git a/compiler/InterpreterStatements.mli b/compiler/InterpreterStatements.mli
index e65758ae..d84e8be6 100644
--- a/compiler/InterpreterStatements.mli
+++ b/compiler/InterpreterStatements.mli
@@ -1,15 +1,8 @@
-module T = Types
-module PV = PrimitiveValues
-module V = Values
-module E = Expressions
-module C = Contexts
-module Subst = Substitute
-module A = LlbcAst
-module L = Logging
-module Inv = Invariants
-module S = SynthesizeSymbolic
+open Types
+open Values
+open Contexts
+open LlbcAst
open Cps
-open InterpreterExpressions
(** Pop the current frame.
@@ -17,13 +10,13 @@ open InterpreterExpressions
dummy variables, after ending the proper borrows of course) but the return
variable, move the return value out of the return variable, remove all the
local variables (but preserve the abstractions!), remove the
- {!constructor:C.env_elem.Frame} indicator delimiting the current frame and
+ {!constructor:env_elem.Frame} indicator delimiting the current frame and
handle the return value to the continuation.
If the boolean is false, we don't move the return value, and call the
continuation with [None].
*)
-val pop_frame : C.config -> bool -> (V.typed_value option -> m_fun) -> m_fun
+val pop_frame : config -> bool -> (typed_value option -> m_fun) -> m_fun
(** Helper.
@@ -44,15 +37,15 @@ val pop_frame : C.config -> bool -> (V.typed_value option -> m_fun) -> m_fun
- [ctx]
*)
val create_push_abstractions_from_abs_region_groups :
- (T.RegionGroupId.id -> V.abs_kind) ->
- LA.abs_region_group list ->
- (T.RegionGroupId.id -> bool) ->
- (V.abs -> C.eval_ctx -> C.eval_ctx * V.typed_avalue list) ->
- C.eval_ctx ->
- C.eval_ctx
+ (RegionGroupId.id -> abs_kind) ->
+ abs_region_group list ->
+ (RegionGroupId.id -> bool) ->
+ (abs -> eval_ctx -> eval_ctx * typed_avalue list) ->
+ eval_ctx ->
+ eval_ctx
(** Evaluate a statement *)
-val eval_statement : C.config -> LA.statement -> st_cm_fun
+val eval_statement : config -> statement -> st_cm_fun
(** Evaluate a statement seen as a function body *)
-val eval_function_body : C.config -> LA.statement -> st_cm_fun
+val eval_function_body : config -> statement -> st_cm_fun