Project

General

Profile

Download (5.57 KB) Statistics
| Branch: | Tag: | Revision:
1 b38ffff3 ploc
(********************************************************************)
2
(*                                                                  *)
3
(*  The LustreC compiler toolset   /  The LustreC Development Team  *)
4
(*  Copyright 2012 -    --   ONERA - CNRS - INPT                    *)
5
(*                                                                  *)
6
(*  LustreC is free software, distributed WITHOUT ANY WARRANTY      *)
7
(*  under the terms of the GNU Lesser General Public License        *)
8
(*  version 2.1.                                                    *)
9
(*                                                                  *)
10
(********************************************************************)
11 0cbf0839 ploc
12
13 b38ffff3 ploc
open LustreSpec
14 0cbf0839 ploc
15 d3e4c22f xthirioux
exception Error of Location.t * error
16 0cbf0839 ploc
17 0038002e ploc
val dummy_type_dec: type_dec
18
val dummy_clock_dec: clock_dec
19
20 0cbf0839 ploc
val mktyp: Location.t -> type_dec_desc -> type_dec
21
val mkclock: Location.t -> clock_dec_desc -> clock_dec
22 01d48bb0 xthirioux
val mkvar_decl: Location.t -> ?orig:bool -> ident * type_dec * clock_dec * bool (* is const *) * expr option (* value *) -> var_decl
23
24 0cbf0839 ploc
val var_decl_of_const: const_desc -> var_decl
25
val mkexpr: Location.t ->  expr_desc -> expr
26
val mkeq: Location.t -> ident list * expr -> eq
27
val mkassert: Location.t -> expr -> assert_t
28 70e1006b xthirioux
val mktop_decl: Location.t -> ident -> bool -> top_decl_desc -> top_decl
29 0cbf0839 ploc
val mkpredef_call: Location.t -> ident -> expr list -> expr
30 1eda3e78 xthirioux
val mk_new_name: (ident -> bool) -> ident -> ident
31 b3f91fdb xthirioux
val mk_new_node_name: node_desc -> ident -> ident
32 0cbf0839 ploc
33
val node_table : (ident, top_decl) Hashtbl.t
34 70e1006b xthirioux
val print_node_table:  Format.formatter -> unit -> unit
35 0cbf0839 ploc
val node_name: top_decl -> ident
36
val node_inputs: top_decl -> var_decl list
37
val node_from_name: ident -> top_decl
38
val is_generic_node: top_decl -> bool
39
val is_imported_node: top_decl -> bool
40
41 70e1006b xthirioux
val consts_table: (ident, top_decl) Hashtbl.t
42
val print_consts_table:  Format.formatter -> unit -> unit
43
val type_table: (type_dec_desc, top_decl) Hashtbl.t
44
val print_type_table:  Format.formatter -> unit -> unit
45 01d48bb0 xthirioux
val is_clock_dec_type: type_dec_desc -> bool
46 0cbf0839 ploc
val get_repr_type: type_dec_desc -> type_dec_desc
47
val is_user_type: type_dec_desc -> bool
48 6aeb3388 xthirioux
val coretype_equal: type_dec_desc -> type_dec_desc -> bool
49 0cbf0839 ploc
val tag_true: label
50
val tag_false: label
51 7dd90f72 xthirioux
val tag_default: label
52 70e1006b xthirioux
val tag_table: (label, top_decl) Hashtbl.t
53
val field_table: (label, top_decl) Hashtbl.t
54 0cbf0839 ploc
55
val get_enum_type_tags: type_dec_desc -> label list
56
57 6560bb94 xthirioux
val get_struct_type_fields: type_dec_desc -> (label * type_dec_desc) list
58
59 70e1006b xthirioux
val consts_of_enum_type: top_decl -> top_decl list
60
61 0cbf0839 ploc
val const_of_bool: bool -> constant
62
val const_is_bool: constant -> bool
63
val const_negation: constant -> constant
64
val const_or: constant -> constant -> constant
65
val const_and: constant -> constant -> constant
66
val const_xor: constant -> constant -> constant
67
val const_impl: constant -> constant -> constant
68
69 0038002e ploc
val get_node_vars: node_desc -> var_decl list
70
val get_node_var: ident -> node_desc -> var_decl
71 1eda3e78 xthirioux
val get_node_eqs: node_desc -> eq list
72 0038002e ploc
val get_node_eq: ident -> node_desc -> eq
73 7dedc5f0 xthirioux
val get_node_interface: node_desc -> imported_node_desc
74 0cbf0839 ploc
75
(* val get_const: ident -> constant *)
76
77
val sort_handlers : (label * 'a) list -> (label * 'a) list
78
79
val is_eq_expr: expr -> expr -> bool
80
81
val pp_error :  Format.formatter -> error -> unit
82
83
(* Caution, returns an untyped, unclocked, etc, expression *)
84 14d694c7 xthirioux
val is_tuple_expr : expr -> bool
85 7ecdb0aa xthirioux
val ident_of_expr : expr -> ident
86 b3f91fdb xthirioux
val expr_of_vdecl : var_decl -> expr
87 0cbf0839 ploc
val expr_of_ident : ident -> Location.t -> expr
88
val expr_list_of_expr : expr -> expr list
89
val expr_of_expr_list : Location.t -> expr list -> expr
90 6a1a01d2 xthirioux
val call_of_expr: expr -> (ident * expr list * expr option)
91 0cbf0839 ploc
val expr_of_dimension: Dimension.dim_expr -> expr
92
val dimension_of_expr: expr -> Dimension.dim_expr
93
val dimension_of_const: Location.t -> constant -> Dimension.dim_expr
94
95
(* REMOVED, pushed in utils.ml   val new_tag : unit -> tag *)
96
97
val add_internal_funs: unit -> unit
98
99
val pp_prog_type : Format.formatter -> program -> unit
100
101
val pp_prog_clock : Format.formatter -> program -> unit
102
103 70e1006b xthirioux
val const_of_top: top_decl -> const_desc
104
val node_of_top: top_decl -> node_desc
105
val imported_node_of_top: top_decl -> imported_node_desc
106
val typedef_of_top: top_decl -> typedef_desc
107
val dependency_of_top: top_decl -> (bool * ident)
108
109
val get_nodes : program -> top_decl list
110
val get_imported_nodes : program -> top_decl list
111
val get_consts : program -> top_decl list
112
val get_typedefs: program -> top_decl list
113
val get_dependencies : program -> top_decl list
114 59294251 ploc
(* val prog_unfold_consts: program -> program *)
115
116 01d48bb0 xthirioux
val rename_static: (ident -> Dimension.dim_expr) -> type_dec_desc -> type_dec_desc
117
val rename_carrier: (ident -> ident) -> clock_dec_desc -> clock_dec_desc
118
119 29ced7be xthirioux
val get_expr_vars: Utils.ISet.t -> expr -> Utils.ISet.t
120 0cbf0839 ploc
val expr_replace_var: (ident -> ident) -> expr -> expr
121
val eq_replace_rhs_var: (ident -> bool) -> (ident -> ident) -> eq -> eq
122
123 c02d255e ploc
(** rename_prog f_node f_var f_const prog *)
124
val rename_prog: (ident -> ident) -> (ident -> ident) -> (ident -> ident) -> program -> program
125 15003796 ploc
val substitute_expr: ?open_pre:bool -> ident list -> eq list -> expr -> expr
126 0cbf0839 ploc
127 01d48bb0 xthirioux
val copy_var_decl: var_decl -> var_decl
128
val copy_const: const_desc -> const_desc
129
val copy_node: node_desc -> node_desc
130
val copy_top: top_decl -> top_decl
131
val copy_prog: top_decl list -> top_decl list
132
133 0038002e ploc
(** Annotation expression related functions *)
134
val mkeexpr: Location.t ->  expr -> eexpr
135
val merge_node_annot: node_annot -> node_annot -> node_annot 
136
val extend_eexpr: (quantifier_type * var_decl list) list -> eexpr -> eexpr
137 6394042a ploc
val update_expr_annot: ident -> expr -> LustreSpec.expr_annot -> expr
138 0038002e ploc
(* val mkpredef_call: Location.t -> ident -> eexpr list -> eexpr*)
139
140 0cbf0839 ploc
(* Local Variables: *)
141
(* compile-command:"make -C .." *)
142
(* End: *)