src/Tools/Code/code_ml.ML
changeset 77703 0262155d2743
parent 77232 6cad6ed2700a
child 77707 a6a81f848135
equal deleted inserted replaced
77702:b5fbe9837aee 77703:0262155d2743
   127       if is_constr sym then
   127       if is_constr sym then
   128         let val wanted = length dom in
   128         let val wanted = length dom in
   129           if wanted < 2 orelse length ts = wanted
   129           if wanted < 2 orelse length ts = wanted
   130           then (str o deresolve) sym
   130           then (str o deresolve) sym
   131             :: the_list (tuplify (print_term is_pseudo_fun some_thm vars) BR ts)
   131             :: the_list (tuplify (print_term is_pseudo_fun some_thm vars) BR ts)
   132           else [print_term is_pseudo_fun some_thm vars BR (Code_Thingol.satisfied_application wanted app)]
   132           else [print_term is_pseudo_fun some_thm vars BR (Code_Thingol.saturated_application wanted app)]
   133         end
   133         end
   134       else if is_pseudo_fun sym
   134       else if is_pseudo_fun sym
   135         then (str o deresolve) sym @@ str "()"
   135         then (str o deresolve) sym @@ str "()"
   136       else (str o deresolve) sym :: map_filter (print_dicts is_pseudo_fun BR) dicts
   136       else (str o deresolve) sym :: map_filter (print_dicts is_pseudo_fun BR) dicts
   137         @ map (print_term is_pseudo_fun some_thm vars BR) ts
   137         @ map (print_term is_pseudo_fun some_thm vars BR) ts
   450       if is_constr sym then
   450       if is_constr sym then
   451         let val wanted = length dom in
   451         let val wanted = length dom in
   452           if length ts = wanted
   452           if length ts = wanted
   453           then (str o deresolve) sym
   453           then (str o deresolve) sym
   454             :: the_list (tuplify (print_term is_pseudo_fun some_thm vars) BR ts)
   454             :: the_list (tuplify (print_term is_pseudo_fun some_thm vars) BR ts)
   455           else [print_term is_pseudo_fun some_thm vars BR (Code_Thingol.satisfied_application wanted app)]
   455           else [print_term is_pseudo_fun some_thm vars BR (Code_Thingol.saturated_application wanted app)]
   456         end
   456         end
   457       else if is_pseudo_fun sym
   457       else if is_pseudo_fun sym
   458         then (str o deresolve) sym @@ str "()"
   458         then (str o deresolve) sym @@ str "()"
   459       else (str o deresolve) sym :: map_filter (print_dicts is_pseudo_fun BR) dicts
   459       else (str o deresolve) sym :: map_filter (print_dicts is_pseudo_fun BR) dicts
   460         @ map (print_term is_pseudo_fun some_thm vars BR) ts
   460         @ map (print_term is_pseudo_fun some_thm vars BR) ts