]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/src/common/ccs.ml
when sort inclusion is enabled, we can produce conversion constraints in xml
[helm.git] / helm / software / lambda-delta / src / common / ccs.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 L = List
13 module U = NUri
14 module C = Cps
15 module E = Entity
16 module G = Options
17
18 type csys = {
19            uri: E.uri;
20    mutable is : int list
21 }
22
23 let mark a = E.mark C.err C.start a
24
25 (* interface functions ******************************************************)
26
27 let init () = {
28    uri = U.uri_of_string (G.get_baseuri ());
29    is = [];
30 }
31
32 let add_infinite s a = 
33    if !G.si && !G.cc then
34       let i = abs (mark a) in
35       if L.mem i s.is then () else s.is <- i :: s.is
36    else ()