+let demod rdb metasenv subst context s goal =
+ (* let stamp = Unix.gettimeofday () in *)
+ match P.demod s goal with
+ | P.Error _ | P.GaveUp | P.Timeout _ -> []
+ | P.Unsatisfiable solutions ->
+ (* print (lazy (Printf.sprintf "Got solutions in %fs"
+ (Unix.gettimeofday() -. stamp))); *)
+ List.map (readback ~demod:true rdb metasenv subst context) solutions
+;;
+