]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/acic_procedural/acic2Procedural.ml
- Procedural: more support for the Debug inline option (does not work yet)
[helm.git] / helm / software / components / acic_procedural / acic2Procedural.ml
index 68c88496ba91fbfe3e735a0264f2eb9be266b166..9152d7a436234d68eb7bb29776ed7e5b21268af0 100644 (file)
@@ -134,3 +134,8 @@ let procedural_of_acic_term ~ids_to_inner_sorts ~ids_to_inner_types params
    in
    HLog.debug "Procedural: grafite rendering";
    List.rev (T.render_steps [] steps)
+
+let rec is_debug n = function
+   | []                   -> false
+   | G.IPDebug debug :: _ -> debug <= n
+   | _ :: tl              -> is_debug n tl