]> matita.cs.unibo.it Git - helm.git/blob - helm/software/helena/src/common/status.ml
- commit completed :)
[helm.git] / helm / software / helena / src / common / status.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 module G = Options
13 module Q = Ccs
14
15 type status = {
16    ll: int;      (* log level *)
17    delta: bool;  (* global delta-expansion *)
18    rt: bool;     (* reference typing *)
19    si: bool;     (* sort inclusion *)
20    expand: bool; (* always expand global definitions *)
21    cc: Q.csys;   (* conversion constraints *)
22    tc: bool;     (* trace constraints *)
23 }
24
25 (* helpers ******************************************************************)
26
27 let initial_status () = {
28    ll = 0; delta = false; rt = false; tc = false;
29    si = !G.si; expand = !G.expand; cc = Q.init ()
30 }
31
32 let refresh_status st = {st with
33    si = !G.si; expand = !G.expand; cc = Q.init ()
34 }