Skip to content
Snippets Groups Projects
Commit 0bebd680 authored by Michele Alberti's avatar Michele Alberti
Browse files

[trans] Fix utility count_nn_classifiers to count only different classifier symbols.

parent ce07c066
No related branches found
No related tags found
No related merge requests found
...@@ -42,10 +42,14 @@ let count_nn_classifiers = ...@@ -42,10 +42,14 @@ let count_nn_classifiers =
| Term.Tapp (ls, _) -> ( | Term.Tapp (ls, _) -> (
match Language.lookup_nn_classifier ls with match Language.lookup_nn_classifier ls with
| None -> acc | None -> acc
| Some _ -> acc + 1) | Some _ -> Term.Sls.add ls acc)
| _ -> acc | _ -> acc
in in
Trans.fold_decl (fun decl acc -> Decl.decl_fold aux acc decl) 0 Trans.bind
(Trans.fold_decl
(fun decl acc -> Decl.decl_fold aux acc decl)
Term.Sls.empty)
(fun s -> Trans.return (Term.Sls.cardinal s))
let get_input_variables = let get_input_variables =
let add i acc = function let add i acc = function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment