summaryrefslogtreecommitdiff
path: root/src/TranslateCore.ml
diff options
context:
space:
mode:
authorSon Ho2022-05-04 21:05:47 +0200
committerSon Ho2022-05-04 21:05:47 +0200
commit30085b15a3ef07bc7179a60cd42085270dbc9351 (patch)
treedc67df37860d66b65f7dd639f2c79eada51eaaa6 /src/TranslateCore.ml
parentc699758eaf67a58df3fd30c01bf2d05dd17586f5 (diff)
Start implementing divergence, can_fail, statefullness analyses
Diffstat (limited to 'src/TranslateCore.ml')
-rw-r--r--src/TranslateCore.ml11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/TranslateCore.ml b/src/TranslateCore.ml
index 6e5204f6..17c35cbf 100644
--- a/src/TranslateCore.ml
+++ b/src/TranslateCore.ml
@@ -6,11 +6,20 @@ module T = Types
module A = LlbcAst
module M = Modules
module SA = SymbolicAst
+module FA = FunsAnalysis
(** The local logger *)
let log = L.translate_log
-type trans_ctx = { type_context : C.type_context; fun_context : C.fun_context }
+type type_context = C.type_context [@@deriving show]
+
+type fun_context = {
+ fun_decls : A.fun_decl A.FunDeclId.Map.t;
+ fun_infos : FA.fun_info A.FunDeclId.Map.t;
+}
+[@@deriving show]
+
+type trans_ctx = { type_context : type_context; fun_context : fun_context }
type pure_fun_translation = Pure.fun_decl * Pure.fun_decl list