let mono_aliases = true, aliases, Some DisambiguateTypes.Environment.empty in
let passes = (* <fresh_instances?, aliases, coercions?> *)
if !only_one_pass then
- [ (false, mono_aliases, false) ]
+ [ (true, mono_aliases, false) ]
else
- [ (false, mono_aliases, false);
- (false, multi_aliases, false);
- (true, mono_aliases, false);
+ [ (true, mono_aliases, false);
(true, multi_aliases, false);
(true, mono_aliases, true);
(true, multi_aliases, true);
else
drop_aliases_and_clear_diff res
in
- let rec aux errors =
- function
- | [ pass ] ->
+ let rec aux i errors passes =
+(*prerr_endline ("Pass: " ^ string_of_int i);*)
+ match passes with
+ [ pass ] ->
(try
set_aliases pass (try_pass pass)
with Disambiguate.NoWellTypedInterpretation (offset,newerrors) ->
(try
set_aliases hd (try_pass hd)
with Disambiguate.NoWellTypedInterpretation (_offset,newerrors) ->
- aux (errors @ [newerrors]) tl)
+ aux (i+1) (errors @ [newerrors]) tl)
| [] -> assert false
in
let saved_insert_coercions = !CicRefine.insert_coercions in
try
- let res = aux [] passes in
+ let res = aux 1 [] passes in
CicRefine.insert_coercions := saved_insert_coercions;
res
with exn ->