try
f p i
with Backtrack s ->
-prerr_endline ("!!BACKTRACK!! " ^ s);
+prerr_endline (">>>>>> BACKTRACK (reason: " ^ s ^") measure=$ ");
List.iter (fun (r,l) -> r := l) (List.combine p.deltas (List.hd p.trail)) ;
prerr_endline("Now trying var="^string_of_var var^" i="^string_of_int i);
aux (i+1)
let cast_to_ps =
function
#i_num_var as y -> (y : i_num_var)
- | `Bottom | `Pacman -> raise (Backtrack "foo")
+ | `Bottom | `Pacman -> raise (Backtrack "BOT/PAC in ps")
| t ->
prerr_endline (print (t :> nf));
assert false (* algorithm failed *)