Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
0bebd680
Commit
0bebd680
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/transformations/utils.ml
+6
-2
6 additions, 2 deletions
src/transformations/utils.ml
with
6 additions
and
2 deletions
src/transformations/utils.ml
+
6
−
2
View file @
0bebd680
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment