Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

env_state.ml 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(*-----------------------------------------------------------------------
** Copyright (C) 2001 - Verimag.
** This file may only be copied under the terms of the GNU Library General
** Public License 
**-----------------------------------------------------------------------

** File: env_state.ml
** Main author: jahier@imag.fr
*)


open Lurette_stub
open Graph
open Formula
open Wtree

(****************************************************************************)


(* 
** The environment is a list of graphs whose arcs are labelled by weighted 
** formula. 
*)

type env_stateT = {
  (* var names and types given file by file *)
  mutable var_names: (string * (vnt list * vnt list * vnt list)) list;
28
29
30
31
32
33
  mutable pre_expr: vne list;
  mutable pre_form: vnf list;
  mutable current_nodes: node list list;
  mutable graph: (node, arc_info) Graph.t ;
  mutable formula_table: Wtree.formula_table ;
  mutable wtree_table: Wtree.wtree_table ;
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

  (* 
  ** Used to store the values of variables under a pre 
  *)
  mutable input : env_in ;
  mutable output: env_out ;
  mutable local : env_loc 
}


(* XXX suis-je oblig d'initialiser des choses ici alors que je dois 
   le faire plus tard ??? 
*)
let (env_state:env_stateT) = {
  var_names = [] ;
49
50
  pre_expr = [] ;
  pre_form = [] ;
51
52
53
54
55
56
57
58
59
  current_nodes = [];
  graph = Graph.create () ;
  formula_table = Hashtbl.create 0 ;
  wtree_table = Hashtbl.create 0 ;
  input = sut_out_init ;
  output = sut_in_init ;
  local = [] 
}