diff options
| author | Pierre Roux | 2020-04-11 15:14:15 +0200 |
|---|---|---|
| committer | Pierre Roux | 2020-05-22 12:15:22 +0200 |
| commit | fff80866a5a61d8d53e34a1afdbe6475dc6ea5d9 (patch) | |
| tree | 58d92efc6a84ee202661cbd9d15bd79ed73ac586 /checker | |
| parent | ea9463bc10e83759586a41d562e996e1d34e627f (diff) | |
[coqchk] Change list to set
Diffstat (limited to 'checker')
| -rw-r--r-- | checker/check_stat.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/checker/check_stat.ml b/checker/check_stat.ml index ee7170df48..a9136a225d 100644 --- a/checker/check_stat.ml +++ b/checker/check_stat.ml @@ -39,7 +39,8 @@ let pr_assumptions ass axs = hv 2 (str ass ++ str ":" ++ fnl() ++ prlist_with_sep fnl str axs) let pr_axioms env = - let csts = fold_constants (fun c cb acc -> if not (Declareops.constant_has_body cb) then Constant.to_string c :: acc else acc) env [] in + let csts = fold_constants (fun c cb acc -> if not (Declareops.constant_has_body cb) then Cset.add c acc else acc) env Cset.empty in + let csts = Cset.fold (fun c acc -> Constant.to_string c :: acc) csts [] in pr_assumptions "Axioms" csts let pr_type_in_type env = |
