Changeset 16147 for src/typechecker/alpha.ml
- Timestamp:
- 12/04/08 18:41:26 (4 years ago)
- File:
-
- 1 edited
-
src/typechecker/alpha.ml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/typechecker/alpha.ml
r16132 r16147 60 60 get_fresh_name n (String_set.singleton n) 61 61 62 62 let add_symbols_bound sl = List.fold_left (fun a b -> match b with 63 S_Symbol(S_Sym_Ident x) -> String_set.union a (String_set.singleton x) 64 | _ -> raise (Invalid_argument "add_symbols_bound: got a non-string in identifier list for quantifier")) String_set.empty sl 63 65 64 66 … … 77 79 78 80 let list_union list = List.fold_left String_set.union String_set.empty list 81 82 let rec bound_spass c = match c with 83 S_Term(_, sl, st) -> String_set.union (bound_spass st) (add_symbols_bound sl) 84 | S_Symbol_Term(_, sl) -> List.fold_left (fun a b -> String_set.union a (bound_spass b)) String_set.empty sl 85 | S_Symbol(S_Sym_Ident s) -> if (String.compare s "ok") = 0 then 86 String_set.singleton s else String_set.empty 87 | S_Symbol _ -> String_set.empty 79 88 80 89 let rec free_spass c = match c with
Note: See TracChangeset
for help on using the changeset viewer.
