Asllib.StaticEnvSourceStatic Environment used for type-checking (cf Typing.
type global = {declared_types : AST.ty ASTUtils.IMap.t;Maps a type name t to its declaration.
*)constant_values : AST.literal ASTUtils.IMap.t;Maps a global constant name to its value.
*)storage_types : (AST.ty * AST.global_decl_keyword) ASTUtils.IMap.t;Maps global declared storage elements to their types.
*)subtypes : AST.identifier ASTUtils.IMap.t;Maps an identifier s to its parent in the subtype relation.
*)subprograms : AST.func ASTUtils.IMap.t;Maps each subprogram runtime name to its signature.
*)subprogram_renamings : ASTUtils.ISet.t ASTUtils.IMap.t;Maps each subprogram declared name to the equivalence class of all the subprogram runtime names that were declared with this name.
*)}Store all the global environment information at compile-time.
type local = {constant_values : AST.literal ASTUtils.IMap.t;Maps a local constant to its value.
*)storage_types : (AST.ty * AST.local_decl_keyword) ASTUtils.IMap.t;Maps an locally declared names to their type.
*)return_type : AST.ty option;Local return type, None for procedures, global constants, or setters.
}Store all the local environment information at compile-time.