]> matita.cs.unibo.it Git - fireball-separation.git/commitdiff
Bug fixed in pretty-printing of original names under lambdas
authoracondolu <andrea.condoluci@unibo.it>
Tue, 25 Jul 2017 14:57:26 +0000 (16:57 +0200)
committeracondolu <andrea.condoluci@unibo.it>
Mon, 28 May 2018 09:12:07 +0000 (11:12 +0200)
ocaml/num.ml

index 66bdd8598f0d3ced253a46bce4d66ac2088080bd..e7b6290fc64afb7efb7212ac1bc0536067c3a3ab 100644 (file)
@@ -118,7 +118,7 @@ let rec string_of_term =
  let boundvar x = "v" ^ string_of_int x in
  let varname lev l n =
   if n < lev then boundvar (lev-n-1)
-   else if n < List.length l then List.nth l (n-lev)
+   else if n - lev < List.length l then List.nth l (n-lev)
     else "`" ^ string_of_int (n-lev) in
  let rec string_of_term_w_pars lev l  = function
   | `Var(n,ar) -> varname lev l n ^ (if debug_display_arities then ":" ^ string_of_int ar else "")