package archetype

  1. Overview
  2. Docs
val show_lident : lident -> Ppx_deriving_runtime.string
type currency =
  1. | Tz
  2. | Mtz
  3. | Utz
val show_currency : currency -> Ppx_deriving_runtime.string
type container =
  1. | Collection
  2. | Aggregate
  3. | Partition
  4. | View
val show_container : container -> Ppx_deriving_runtime.string
type btyp =
  1. | Bbool
  2. | Bint
  3. | Brational
  4. | Bdate
  5. | Bduration
  6. | Btimestamp
  7. | Bstring
  8. | Baddress
  9. | Brole
  10. | Bcurrency
  11. | Bsignature
  12. | Bkey
  13. | Bkeyhash
  14. | Bbytes
  15. | Bnat
type vset =
  1. | VSremoved
  2. | VSadded
  3. | VSstable
  4. | VSbefore
  5. | VSafter
  6. | VSfixed
type trtyp =
  1. | TRentry
  2. | TRaction
  3. | TRasset
  4. | TRfield
type type_ =
  1. | Tasset of lident
  2. | Tenum of lident
  3. | Tstate
  4. | Tcontract of lident
  5. | Tbuiltin of btyp
  6. | Tcontainer of type_ * container
  7. | Tlist of type_
  8. | Toption of type_
  9. | Ttuple of type_ list
  10. | Tset of btyp
  11. | Tmap of btyp * type_
  12. | Trecord of (Ident.ident * type_) list
  13. | Tunit
  14. | Tstorage
  15. | Toperation
  16. | Tentry
  17. | Tprog of type_
  18. | Tvset of vset * type_
  19. | Ttrace of trtyp
type 'id pattern_node =
  1. | Pwild
  2. | Pconst of 'id
type 'id pattern_gen = {
  1. node : 'id pattern_node;
  2. loc : Location.t;
}
type pattern = lident pattern_gen
val show_pattern : pattern -> Ppx_deriving_runtime.string
type comparison_operator =
  1. | Gt
  2. | Ge
  3. | Lt
  4. | Le
val show_comparison_operator : comparison_operator -> Ppx_deriving_runtime.string
type rat_arith_op =
  1. | Rplus
  2. | Rminus
  3. | Rmult
  4. | Rdiv
val show_rat_arith_op : rat_arith_op -> Ppx_deriving_runtime.string
type assignment_operator =
  1. | ValueAssign
  2. | PlusAssign
  3. | MinusAssign
  4. | MultAssign
  5. | DivAssign
  6. | AndAssign
  7. | OrAssign
val show_assignment_operator : assignment_operator -> Ppx_deriving_runtime.string
type ('id, 'qualid) qualid_node =
  1. | Qident of 'id
  2. | Qdot of 'qualid * 'id
type 'id qualid_gen = {
  1. node : ('id, 'id qualid_gen) qualid_node;
  2. type_ : type_;
  3. loc : Location.t;
}
type qualid = lident qualid_gen
val show_qualid : qualid -> Ppx_deriving_runtime.string
type sort_kind =
  1. | SKasc
  2. | SKdesc
val show_sort_kind : sort_kind -> Ppx_deriving_runtime.string
type ('id, 'term) assign_kind_gen =
  1. | Avar of 'id
  2. | Avarstore of 'id
  3. | Afield of 'id * 'id * 'term
  4. | Astate
  5. | Aassetstate of Ident.ident * 'term
type 'term var_kind_gen =
  1. | Vassetstate of 'term
  2. | Vstorevar
  3. | Vstorecol
  4. | Venumval
  5. | Vlocal
  6. | Vparam
  7. | Vfield
  8. | Vstate
  9. | Vthe
type 'term container_kind_gen =
  1. | CKcoll
  2. | CKview of 'term
  3. | CKfield of Ident.ident * Ident.ident * 'term
type 'term iter_container_kind_gen =
  1. | ICKcoll of Ident.ident
  2. | ICKview of 'term
  3. | ICKfield of Ident.ident * Ident.ident * 'term
  4. | ICKlist of 'term
type ('id, 'term) mterm_node =
  1. | Mletin of 'id list * 'term * type_ option * 'term * 'term option
  2. | Mdeclvar of 'id list * type_ option * 'term
  3. | Mapp of 'id * 'term list
  4. | Massign of assignment_operator * ('id, 'term) assign_kind_gen * 'term
  5. | Mif of 'term * 'term * 'term option
  6. | Mmatchwith of 'term * ('id pattern_gen * 'term) list
  7. | Mfor of 'id * 'term iter_container_kind_gen * 'term * Ident.ident option
  8. | Miter of 'id * 'term * 'term * 'term * Ident.ident option
  9. | Mseq of 'term list
  10. | Mreturn of 'term
  11. | Mlabel of 'id
  12. | Mmark of 'id * 'term
  13. | Mfail of 'id fail_type_gen
  14. | Mtransfer of 'term * 'term
  15. | Mentrycall of 'term * 'term * Ident.ident * 'id * ('id * 'term) list
  16. | Mint of Core.big_int
  17. | Muint of Core.big_int
  18. | Mbool of bool
  19. | Menum of string
  20. | Mrational of Core.big_int * Core.big_int
  21. | Mstring of string
  22. | Mcurrency of Core.big_int * currency
  23. | Maddress of string
  24. | Mdate of Core.date
  25. | Mduration of Core.duration
  26. | Mtimestamp of Core.big_int
  27. | Mbytes of string
  28. | Mexprif of 'term * 'term * 'term
  29. | Mexprmatchwith of 'term * ('id pattern_gen * 'term) list
  30. | Mnone
  31. | Msome of 'term
  32. | Mtuple of 'term list
  33. | Masset of 'term list
  34. | Massets of 'term list
  35. | Mlitset of 'term list
  36. | Mlitlist of 'term list
  37. | Mlitmap of ('term * 'term) list
  38. | Mlitrecord of (Ident.ident * 'term) list
  39. | Mdot of 'term * 'id
  40. | Mdotassetfield of 'id * 'term * 'id
  41. | Mdotcontract of 'term * 'id
  42. | Maccestuple of 'term * Core.big_int
  43. | Mequal of 'term * 'term
  44. | Mnequal of 'term * 'term
  45. | Mgt of 'term * 'term
  46. | Mge of 'term * 'term
  47. | Mlt of 'term * 'term
  48. | Mle of 'term * 'term
  49. | Mmulticomp of 'term * (comparison_operator * 'term) list
  50. | Mand of 'term * 'term
  51. | Mor of 'term * 'term
  52. | Mnot of 'term
  53. | Mplus of 'term * 'term
  54. | Mminus of 'term * 'term
  55. | Mmult of 'term * 'term
  56. | Mdivrat of 'term * 'term
  57. | Mdiveuc of 'term * 'term
  58. | Mmodulo of 'term * 'term
  59. | Muplus of 'term
  60. | Muminus of 'term
  61. | Maddasset of Ident.ident * 'term
  62. | Maddfield of Ident.ident * Ident.ident * 'term * 'term
  63. | Mremoveasset of Ident.ident * 'term
  64. | Mremovefield of Ident.ident * Ident.ident * 'term * 'term
  65. | Mremoveall of Ident.ident * Ident.ident * 'term
  66. | Mremoveif of Ident.ident * 'term container_kind_gen * (Ident.ident * type_) list * 'term * 'term list
  67. | Mclear of Ident.ident * 'term container_kind_gen
  68. | Mset of Ident.ident * Ident.ident list * 'term * 'term
  69. | Mupdate of Ident.ident * 'term * ('id * assignment_operator * 'term) list
  70. | Maddupdate of Ident.ident * 'term container_kind_gen * 'term * ('id * assignment_operator * 'term) list
  71. | Mget of Ident.ident * 'term container_kind_gen * 'term
  72. | Mselect of Ident.ident * 'term container_kind_gen * (Ident.ident * type_) list * 'term * 'term list
  73. | Msort of Ident.ident * 'term container_kind_gen * (Ident.ident * sort_kind) list
  74. | Mcontains of Ident.ident * 'term container_kind_gen * 'term
  75. | Mnth of Ident.ident * 'term container_kind_gen * 'term
  76. | Mcount of Ident.ident * 'term container_kind_gen
  77. | Msum of Ident.ident * 'term container_kind_gen * 'term
  78. | Mhead of Ident.ident * 'term container_kind_gen * 'term
  79. | Mtail of Ident.ident * 'term container_kind_gen * 'term
  80. | Mcast of type_ * type_ * 'term
  81. | Mlistprepend of type_ * 'term * 'term
  82. | Mlistcontains of type_ * 'term * 'term
  83. | Mlistcount of type_ * 'term
  84. | Mlistnth of type_ * 'term * 'term
  85. | Mmin of 'term * 'term
  86. | Mmax of 'term * 'term
  87. | Mabs of 'term
  88. | Mconcat of 'term * 'term
  89. | Mslice of 'term * 'term * 'term
  90. | Mlength of 'term
  91. | Misnone of 'term
  92. | Missome of 'term
  93. | Mgetopt of 'term
  94. | Mfloor of 'term
  95. | Mceil of 'term
  96. | Mpack of 'term
  97. | Munpack of type_ * 'term
  98. | Mblake2b of 'term
  99. | Msha256 of 'term
  100. | Msha512 of 'term
  101. | Mhashkey of 'term
  102. | Mchecksignature of 'term * 'term * 'term
  103. | Mnow
  104. | Mtransferred
  105. | Mcaller
  106. | Mbalance
  107. | Msource
  108. | Mvar of 'id * 'term var_kind_gen
  109. | Mrateq of 'term * 'term
  110. | Mratcmp of comparison_operator * 'term * 'term
  111. | Mratarith of rat_arith_op * 'term * 'term
  112. | Mratuminus of 'term
  113. | Mrattez of 'term * 'term
  114. | Mdivtez of 'term * 'term
  115. | Minttorat of 'term
  116. | Mratdur of 'term * 'term
  117. | Mfold of 'id * 'id list * 'term * 'term
  118. | Mbreak
  119. | Mforall of 'id * type_ * 'term option * 'term
  120. | Mexists of 'id * type_ * 'term option * 'term
  121. | Mimply of 'term * 'term
  122. | Mequiv of 'term * 'term
  123. | Msetbefore of 'term
  124. | Msetat of Ident.ident * 'term
  125. | Msetunmoved of 'term
  126. | Msetadded of 'term
  127. | Msetremoved of 'term
  128. | Msetiterated of 'term iter_container_kind_gen
  129. | Msettoiterate of 'term iter_container_kind_gen
  130. | Msubsetof of Ident.ident * 'term container_kind_gen * 'term
  131. | Misempty of Ident.ident * 'term
and assign_kind = (lident, mterm) assign_kind_gen
and var_kind = mterm var_kind_gen
and container_kind = mterm container_kind_gen
and iter_container_kind = mterm iter_container_kind_gen
and 'id mterm_gen = {
  1. node : ('id, 'id mterm_gen) mterm_node;
  2. type_ : type_;
  3. loc : Location.t;
}
and mterm = lident mterm_gen
and mterm__node = (lident, mterm) mterm_node
and 'id fail_type_gen =
  1. | Invalid of 'id mterm_gen
  2. | InvalidCaller
  3. | InvalidCondition of Ident.ident option
  4. | NoTransfer
  5. | InvalidState
and fail_type = lident fail_type_gen
and api_container_kind =
  1. | Coll
  2. | View
  3. | Field of Ident.ident * Ident.ident
and api_list =
  1. | Lprepend of type_
  2. | Lcontains of type_
  3. | Lcount of type_
  4. | Lnth of type_
and api_builtin =
  1. | Bmin of type_
  2. | Bmax of type_
  3. | Babs of type_
  4. | Bconcat of type_
  5. | Bslice of type_
  6. | Blength of type_
  7. | Bisnone of type_
  8. | Bissome of type_
  9. | Bgetopt of type_
  10. | Bfloor
  11. | Bceil
and api_internal =
  1. | RatEq
  2. | RatCmp
  3. | RatArith
  4. | RatUminus
  5. | RatTez
  6. | DivTez
  7. | RatDur
and api_storage_node =
  1. | APIAsset of api_asset
  2. | APIList of api_list
  3. | APIBuiltin of api_builtin
  4. | APIInternal of api_internal
and api_loc =
  1. | OnlyFormula
  2. | OnlyExec
  3. | ExecFormula
and api_storage = {
  1. node_item : api_storage_node;
  2. api_loc : api_loc;
}
and api_verif =
  1. | StorageInvariant of Ident.ident * Ident.ident * mterm
and entry_description =
  1. | ADany
  2. | ADadd of Ident.ident
  3. | ADremove of Ident.ident
  4. | ADupdate of Ident.ident
  5. | ADtransfer of Ident.ident
  6. | ADget of Ident.ident
  7. | ADiterate of Ident.ident
  8. | ADcall of Ident.ident
and security_role = lident
and security_entry =
  1. | Sany
  2. | Sentry of lident list
val show_assign_kind : assign_kind -> Ppx_deriving_runtime.string
val show_var_kind : var_kind -> Ppx_deriving_runtime.string
val show_container_kind : container_kind -> Ppx_deriving_runtime.string
val show_iter_container_kind : iter_container_kind -> Ppx_deriving_runtime.string
val show_mterm__node : mterm__node -> Ppx_deriving_runtime.string
val show_fail_type : fail_type -> Ppx_deriving_runtime.string
val show_api_container_kind : api_container_kind -> Ppx_deriving_runtime.string
val show_api_asset : api_asset -> Ppx_deriving_runtime.string
val show_api_list : api_list -> Ppx_deriving_runtime.string
val show_api_builtin : api_builtin -> Ppx_deriving_runtime.string
val show_api_internal : api_internal -> Ppx_deriving_runtime.string
val show_api_storage_node : api_storage_node -> Ppx_deriving_runtime.string
val show_api_loc : api_loc -> Ppx_deriving_runtime.string
val show_api_storage : api_storage -> Ppx_deriving_runtime.string
val show_api_verif : api_verif -> Ppx_deriving_runtime.string
val show_entry_description : entry_description -> Ppx_deriving_runtime.string
val show_security_role : security_role -> Ppx_deriving_runtime.string
val show_security_entry : security_entry -> Ppx_deriving_runtime.string
type 'id label_term_gen = {
  1. label : 'id;
  2. term : 'id mterm_gen;
  3. loc : Location.t;
}
type label_term = lident label_term_gen
val show_label_term : label_term -> Ppx_deriving_runtime.string
type model_type =
  1. | MTvar
  2. | MTconst
  3. | MTasset of Ident.ident
  4. | MTstate
  5. | MTenum of Ident.ident
val show_model_type : model_type -> Ppx_deriving_runtime.string
type 'id storage_item_gen = {
  1. id : 'id;
  2. model_type : model_type;
  3. typ : type_;
  4. const : bool;
  5. ghost : bool;
  6. default : 'id mterm_gen;
  7. loc : Location.t;
}
type storage_item = lident storage_item_gen
type 'id storage_gen = 'id storage_item_gen list
type storage = lident storage_gen
val show_storage : storage -> Ppx_deriving_runtime.string
type 'id enum_item_gen = {
  1. name : 'id;
  2. invariants : 'id label_term_gen list;
}
type enum_item = lident enum_item_gen
val show_enum_item : enum_item -> Ppx_deriving_runtime.string
type 'id var_gen = {
  1. name : 'id;
  2. type_ : type_;
  3. original_type : type_;
  4. constant : bool;
  5. default : 'id mterm_gen option;
  6. invariants : 'id label_term_gen list;
  7. loc : Location.t;
}
type var = lident var_gen
type 'id enum_gen = {
  1. name : 'id;
  2. values : 'id enum_item_gen list;
  3. initial : 'id;
}
type enum = lident enum_gen
type 'id asset_item_gen = {
  1. name : 'id;
  2. type_ : type_;
  3. original_type : type_;
  4. default : 'id mterm_gen option;
  5. shadow : bool;
  6. loc : Location.t;
}
type asset_item = lident asset_item_gen
val show_asset_item : asset_item -> Ppx_deriving_runtime.string
type 'id asset_gen = {
  1. name : 'id;
  2. values : 'id asset_item_gen list;
  3. key : Ident.ident;
  4. sort : Ident.ident list;
  5. state : lident option;
  6. invariants : lident label_term_gen list;
  7. init : 'id mterm_gen list;
  8. loc : Location.t;
}
type asset = lident asset_gen
type 'id contract_signature_gen = {
  1. name : 'id;
  2. args : (lident * type_) list;
  3. loc : Location.t;
}
type contract_signature = lident contract_signature_gen
val show_contract_signature : contract_signature -> Ppx_deriving_runtime.string
type 'id contract_gen = {
  1. name : 'id;
  2. signatures : 'id contract_signature_gen list;
  3. init : 'id mterm_gen option;
  4. loc : Location.t;
}
type contract = lident contract_gen
val show_contract : contract -> Ppx_deriving_runtime.string
type 'id function_ = {
  1. name : 'id;
}
type 'id entry = {
  1. name : 'id;
}
type 'id argument_gen = 'id * type_ * 'id mterm_gen option
type argument = lident argument_gen
val show_argument : argument -> Ppx_deriving_runtime.string
type 'id function_struct_gen = {
  1. name : 'id;
  2. args : 'id argument_gen list;
  3. body : 'id mterm_gen;
  4. loc : Location.t;
}
type function_struct = lident function_struct_gen
val show_function_struct : function_struct -> Ppx_deriving_runtime.string
type 'id function_node_gen =
  1. | Function of 'id function_struct_gen * type_
  2. | Entry of 'id function_struct_gen
type function_node = lident function_node_gen
val show_function_node : function_node -> Ppx_deriving_runtime.string
type 'id signature_gen = {
  1. name : 'id;
  2. args : 'id argument_gen list;
  3. ret : type_ option;
}
type signature = lident signature_gen
val show_signature : signature -> Ppx_deriving_runtime.string
type 'id variable_gen = {
  1. decl : 'id argument_gen;
  2. constant : bool;
  3. from : 'id qualid_gen option;
  4. to_ : 'id qualid_gen option;
  5. loc : Location.t;
}
type variable = lident variable_gen
val show_variable : variable -> Ppx_deriving_runtime.string
type 'id predicate_gen = {
  1. name : 'id;
  2. args : ('id * type_) list;
  3. body : 'id mterm_gen;
  4. loc : Location.t;
}
type predicate = lident predicate_gen
val show_predicate : predicate -> Ppx_deriving_runtime.string
type 'id definition_gen = {
  1. name : 'id;
  2. typ : type_;
  3. var : 'id;
  4. body : 'id mterm_gen;
  5. loc : Location.t;
}
type definition = lident definition_gen
val show_definition : definition -> Ppx_deriving_runtime.string
type 'id invariant_gen = {
  1. label : 'id;
  2. formulas : 'id mterm_gen list;
}
type invariant = lident invariant_gen
val show_invariant : invariant -> Ppx_deriving_runtime.string
type spec_mode =
  1. | Post
  2. | Assert
val show_spec_mode : spec_mode -> Ppx_deriving_runtime.string
type 'id postcondition_gen = {
  1. name : 'id;
  2. mode : spec_mode;
  3. formula : 'id mterm_gen;
  4. invariants : 'id invariant_gen list;
  5. uses : 'id list;
}
type postcondition = lident postcondition_gen
val show_postcondition : postcondition -> Ppx_deriving_runtime.string
type 'id assert_gen = {
  1. name : 'id;
  2. label : 'id;
  3. formula : 'id mterm_gen;
  4. invariants : 'id invariant_gen list;
  5. uses : 'id list;
}
type assert_ = lident assert_gen
val show_assert_ : assert_ -> Ppx_deriving_runtime.string
type 'id specification_gen = {
  1. predicates : 'id predicate_gen list;
  2. definitions : 'id definition_gen list;
  3. lemmas : 'id label_term_gen list;
  4. theorems : 'id label_term_gen list;
  5. variables : 'id variable_gen list;
  6. invariants : ('id * 'id label_term_gen list) list;
  7. effects : 'id mterm_gen list;
  8. postconditions : 'id postcondition_gen list;
  9. loc : Location.t;
}
type security_node =
  1. | SonlyByRole of entry_description * security_role list
  2. | SonlyInEntry of entry_description * security_entry
  3. | SonlyByRoleInEntry of entry_description * security_role list * security_entry
  4. | SnotByRole of entry_description * security_role list
  5. | SnotInEntry of entry_description * security_entry
  6. | SnotByRoleInEntry of entry_description * security_role list * security_entry
  7. | StransferredBy of entry_description
  8. | StransferredTo of entry_description
  9. | SnoStorageFail of security_entry
val show_security_node : security_node -> Ppx_deriving_runtime.string
type security_predicate = {
  1. s_node : security_node;
  2. loc : Location.t;
}
val show_security_predicate : security_predicate -> Ppx_deriving_runtime.string
type security_item = {
  1. label : lident;
  2. predicate : security_predicate;
  3. loc : Location.t;
}
val show_security_item : security_item -> Ppx_deriving_runtime.string
type security = {
  1. items : security_item list;
  2. loc : Location.t;
}
val show_security : security -> Ppx_deriving_runtime.string
type specification = lident specification_gen
val show_specification : specification -> Ppx_deriving_runtime.string
type 'id function__gen = {
  1. node : 'id function_node_gen;
  2. spec : 'id specification_gen option;
}
type function__ = lident function__gen
val show_function__ : function__ -> Ppx_deriving_runtime.string
type 'id decl_node_gen =
  1. | Dvar of 'id var_gen
  2. | Denum of 'id enum_gen
  3. | Dasset of 'id asset_gen
  4. | Dcontract of 'id contract_gen
type decl_node = lident decl_node_gen
val show_decl_node : decl_node -> Ppx_deriving_runtime.string
type 'id model_gen = {
  1. name : lident;
  2. api_items : api_storage list;
  3. api_verif : api_verif list;
  4. decls : 'id decl_node_gen list;
  5. storage : 'id storage_gen;
  6. functions : 'id function__gen list;
  7. specification : 'id specification_gen;
  8. security : security;
  9. loc : Location.t;
}
type property =
  1. | Ppostcondition of postcondition * Ident.ident option
  2. | PstorageInvariant of label_term * Ident.ident
  3. | PsecurityPredicate of security_item
val show_property : property -> Ppx_deriving_runtime.string
type model = lident model_gen
val mk_qualid : ?loc:Location.t -> ('id, 'id qualid_gen) qualid_node -> type_ -> 'id0 qualid_gen
val mk_pattern : ?loc:Location.t -> 'id pattern_node -> 'id0 pattern_gen
val mk_mterm : ?loc:Location.t -> ('id, 'id mterm_gen) mterm_node -> type_ -> 'id0 mterm_gen
val mk_label_term : ?loc:Location.t -> 'id mterm_gen -> 'id0 -> 'id1 label_term_gen
val mk_variable : ?constant:bool -> ?from:'a qualid_gen -> ?to_:'b qualid_gen -> ?loc:Location.t -> 'c argument_gen -> 'c variable_gen
val mk_predicate : ?args:('a * type_) list -> ?loc:Location.t -> 'b -> 'c mterm_gen -> 'd predicate_gen
val mk_definition : ?loc:Location.t -> 'a -> type_ -> 'b -> 'c mterm_gen -> 'd definition_gen
val mk_invariant : ?formulas:'a mterm_gen list -> 'b -> 'c invariant_gen
val mk_postcondition : ?invariants:'a invariant_gen list -> ?uses:'b list -> 'c -> spec_mode -> 'd mterm_gen -> 'e postcondition_gen
val mk_assert : ?invariants:'a invariant_gen list -> ?uses:'b list -> 'c -> 'd -> 'e mterm_gen -> 'f assert_gen
val mk_specification : ?predicates:'a predicate_gen list -> ?definitions:'b definition_gen list -> ?lemmas:'c label_term_gen list -> ?theorems:'d label_term_gen list -> ?variables:'e variable_gen list -> ?invariants:('f * 'f label_term_gen list) list -> ?effects:'g mterm_gen list -> ?postconditions:'h postcondition_gen list -> ?loc:Location.t -> unit -> 'a specification_gen
val mk_security_predicate : ?loc:Location.t -> security_node -> security_predicate
val mk_security_item : ?loc:Location.t -> lident -> security_predicate -> security_item
val mk_security : ?items:security_item list -> ?loc:Location.t -> unit -> security
val mk_var : ?constant:bool -> ?invariants:'id label_term_gen list -> ?default:'id0 mterm_gen -> ?loc:Location.t -> 'id1 -> type_ -> type_ -> 'id2 var_gen
val mk_enum : ?values:'id enum_item_gen list -> 'id0 -> 'id1 -> 'id2 enum_gen
val mk_enum_item : ?invariants:'id label_term_gen list -> 'id0 -> 'id1 enum_item_gen
val mk_asset : ?values:'id asset_item_gen list -> ?sort:Ident.ident list -> ?state:lident -> ?invariants:lident label_term_gen list -> ?init:'id0 mterm_gen list -> ?loc:Location.t -> 'id1 -> Ident.ident -> 'id2 asset_gen
val mk_asset_item : ?default:'id mterm_gen -> ?shadow:bool -> ?loc:Location.t -> 'id0 -> type_ -> type_ -> 'id1 asset_item_gen
val mk_contract_signature : ?args:(lident * type_) list -> ?loc:Location.t -> 'id -> 'id0 contract_signature_gen
val mk_contract : ?signatures:'id contract_signature_gen list -> ?init:'id0 mterm_gen -> ?loc:Location.t -> 'id1 -> 'id2 contract_gen
val mk_storage_item : ?const:bool -> ?ghost:bool -> ?loc:Location.t -> 'id -> model_type -> type_ -> 'id0 mterm_gen -> 'id1 storage_item_gen
val mk_function_struct : ?args:lident argument_gen list -> ?loc:Location.t -> lident -> lident mterm_gen -> function_struct
val mk_function : ?spec:'id specification_gen -> 'id0 function_node_gen -> 'id1 function__gen
val mk_signature : ?args:'id argument_gen list -> ?ret:type_ -> 'id0 -> 'id1 signature_gen
val mk_api_item : api_storage_node -> api_loc -> api_storage
val mk_model : ?api_items:api_storage list -> ?api_verif:api_verif list -> ?decls:lident decl_node_gen list -> ?functions:lident function__gen list -> ?storage:lident storage_gen -> ?specification:lident specification_gen -> ?security:security -> ?loc:Location.t -> lident -> model
val cmp_ident : Ident.ident -> Ident.ident -> bool
val cmp_lident : lident -> lident -> bool
val cmp_bool : bool -> bool -> bool
val cmp_assign_op : assignment_operator -> assignment_operator -> bool
val cmp_currency : currency -> currency -> bool
val cmp_container : container -> container -> bool
val cmp_btyp : btyp -> btyp -> bool
val cmp_vset : vset -> vset -> bool
val cmp_trtyp : trtyp -> trtyp -> bool
val cmp_comparison_operator : comparison_operator -> comparison_operator -> bool
val cmp_rat_arith_op : rat_arith_op -> rat_arith_op -> bool
val cmp_entry_description : entry_description -> entry_description -> bool
val cmp_security_role : lident -> lident -> bool
val cmp_security_entry : security_entry -> security_entry -> bool
val cmp_fail_type : ('id mterm_gen -> 'id mterm_gen -> bool) -> 'id0 fail_type_gen -> 'id1 fail_type_gen -> bool
val cmp_type : type_ -> type_ -> bool
val cmp_pattern_node : ('id -> 'id -> bool) -> 'id0 pattern_node -> 'id1 pattern_node -> bool
val cmp_pattern : lident pattern_gen -> lident pattern_gen -> bool
val cmp_qualid_node : ('q -> 'q -> bool) -> ('id -> 'id -> bool) -> ('id0, 'q0) qualid_node -> ('id1, 'q1) qualid_node -> bool
val cmp_qualid : lident qualid_gen -> lident qualid_gen -> bool
val cmp_mterm_node : (mterm -> mterm -> bool) -> (lident -> lident -> bool) -> (lident, mterm) mterm_node -> (lident, mterm) mterm_node -> bool
val cmp_mterm : mterm -> mterm -> bool
val cmp_container_kind : api_container_kind -> api_container_kind -> bool
val cmp_api_item_node : api_storage_node -> api_storage_node -> bool
val cmp_api_loc : api_loc -> api_loc -> bool
val cmp_api_storage : api_storage -> api_storage -> bool
val cmp_api_verif : api_verif -> api_verif -> bool
val map_type : (type_ -> type_) -> type_ -> type_
val map_assign_kind : (Ident.ident -> Ident.ident) -> ('id -> 'id) -> ('a -> 'b) -> ('id0, 'c) assign_kind_gen -> ('id1, 'd) assign_kind_gen
val map_var_kind : ('a -> 'b) -> 'c var_kind_gen -> 'd var_kind_gen
val map_container_kind : (Ident.ident -> Ident.ident) -> ('a -> 'b) -> 'c container_kind_gen -> 'd container_kind_gen
val map_iter_container_kind : (Ident.ident -> Ident.ident) -> ('a -> 'b) -> 'c iter_container_kind_gen -> 'd iter_container_kind_gen
val map_term_node_internal : (Ident.ident -> Ident.ident) -> ('id -> 'id) -> (type_ -> type_) -> ('id0 mterm_gen -> 'id0 mterm_gen) -> ('id1, 'id0 mterm_gen) mterm_node -> ('id2, 'id0 mterm_gen) mterm_node
val map_gen_mterm : ('a -> ('id, 'id mterm_gen) mterm_node -> ('id0, 'id0 mterm_gen) mterm_node) -> 'b -> 'id1 mterm_gen -> 'id2 mterm_gen
type ('id, 't) ctx_model_gen = {
  1. formula : bool;
  2. fs : 'id function_struct_gen option;
  3. label : 'id option;
  4. spec_id : 'id option;
  5. invariant_id : 'id option;
  6. custom : 't;
}
type ctx_model = (lident, unit) ctx_model_gen
val mk_ctx_model : ?formula:bool -> ?fs:'id function_struct_gen -> ?label:'id0 -> ?spec_id:'id1 -> ?invariant_id:'id2 -> 't -> ('id3, 't0) ctx_model_gen
val map_mterm_model_exec : 't -> ((lident, 't0) ctx_model_gen -> mterm -> mterm) -> model -> model
val map_specification : (lident, 't) ctx_model_gen -> ((lident, 't0) ctx_model_gen -> mterm -> mterm) -> specification -> specification
val map_mterm_model_formula : 't -> ((lident, 't0) ctx_model_gen -> mterm -> mterm) -> model -> model
val map_mterm_model_gen : 't -> ((lident, 't0) ctx_model_gen -> mterm -> mterm) -> model -> model
val map_mterm_model : ((lident, unit) ctx_model_gen -> mterm -> mterm) -> model -> model
val fold_assign_kind : ('a -> 'b -> 'c) -> 'd -> ('e, 'f) assign_kind_gen -> 'g
val fold_var_kind : ('a -> 'b -> 'c) -> 'd -> 'e var_kind_gen -> 'f
val fold_container_kind : ('a -> 'b -> 'c) -> 'd -> 'e container_kind_gen -> 'f
val fold_iter_container_kind : ('a -> 'b -> 'c) -> 'd -> 'e iter_container_kind_gen -> 'f
val fold_term : ('a -> 'id mterm_gen -> 'a) -> 'a0 -> 'id0 mterm_gen -> 'a1
val fold_map_term_list : ('a -> 'b -> 'term * 'a0) -> 'a1 -> 'c list -> 'term0 list * 'a2
val fold_map_assign_kind : ('a -> 'b -> 'c * 'd) -> 'e -> ('f, 'g) assign_kind_gen -> ('h, 'i) assign_kind_gen * 'j
val fold_map_var_kind : ('a -> 'b -> 'c * 'd) -> 'e -> 'f var_kind_gen -> 'g var_kind_gen * 'h
val fold_map_container_kind : ('a -> 'b -> 'c * 'd) -> 'e -> 'f container_kind_gen -> 'g container_kind_gen * 'h
val fold_map_iter_container_kind : ('a -> 'b -> 'c * 'd) -> 'e -> 'f iter_container_kind_gen -> 'g iter_container_kind_gen * 'h
val fold_map_term : (('id, 'id mterm_gen) mterm_node -> 'id mterm_gen) -> ('a -> 'id0 mterm_gen -> 'id0 mterm_gen * 'a) -> 'a0 -> 'id1 mterm_gen -> 'id2 mterm_gen * 'a1
val fold_left : ('a -> 'b -> 'c) -> 'd list -> 'e -> 'f
val fold_label_term : ('id, 't) ctx_model_gen -> (('id0, 't0) ctx_model_gen -> 'a -> 'id0 mterm_gen -> 'a) -> 'id1 label_term_gen -> 'a0 -> 'a1
val fold_specification : ('id, 't) ctx_model_gen -> (('id0, 't0) ctx_model_gen -> 'a -> 'id0 mterm_gen -> 'a) -> 'id1 specification_gen -> 'a0 -> 'a1
val fold_model : ((lident, unit) ctx_model_gen -> 'a -> lident mterm_gen -> 'a) -> lident model_gen -> 'a0 -> 'a1
type kind_ident =
  1. | KIarchetype
  2. | KIdeclvarname
  3. | KIassetname
  4. | KIassetfield
  5. | KIassetstate
  6. | KIassetinit
  7. | KIparamlambda
  8. | KIenumname
  9. | KIenumvalue
  10. | KIcontractname
  11. | KIcontractentry
  12. | KIstoragefield
  13. | KIentry
  14. | KIfunction
  15. | KIargument
  16. | KIlocalvar
  17. | KIlabel
  18. | KIpredicate
  19. | KIdefinition
  20. | KIdefinitionvar
  21. | KIinvariant
  22. | KIpostcondition
  23. | KIpostconditionuse
  24. | KIsecurityad
  25. | KIsecurityrole
  26. | KIsecurityentry
  27. | KImterm
val replace_ident_model : (kind_ident -> Ident.ident -> Ident.ident) -> model -> model
val merge_seq : mterm -> mterm -> mterm
val extract_list : mterm -> mterm -> mterm list
module Utils : sig ... end
OCaml

Innovation. Community. Security.