Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
frama-c
Commits
82db9ea9
Commit
82db9ea9
authored
6 months ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[extlib] remove obsolete functions
parent
0c99b337
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/libraries/stdlib/extlib.ml
+0
-16
0 additions, 16 deletions
src/libraries/stdlib/extlib.ml
src/libraries/stdlib/extlib.mli
+0
-6
0 additions, 6 deletions
src/libraries/stdlib/extlib.mli
src/plugins/eva/domains/traces_domain.ml
+1
-1
1 addition, 1 deletion
src/plugins/eva/domains/traces_domain.ml
with
1 addition
and
23 deletions
src/libraries/stdlib/extlib.ml
+
0
−
16
View file @
82db9ea9
...
...
@@ -100,22 +100,6 @@ let replace cmp x l =
|
y
::
l
->
if
cmp
x
y
then
x
::
l
else
y
::
aux
l
in
aux
l
let
rec
fold_map
f
acc
=
function
|
[]
->
acc
,
[]
|
x
::
tl
->
let
(
acc
,
x
)
=
f
acc
x
in
let
(
acc
,
tl
)
=
fold_map
f
acc
tl
in
(
acc
,
x
::
tl
)
let
rec
fold_map_opt
f
acc
=
function
|
[]
->
acc
,
[]
|
x
::
tl
->
match
f
acc
x
with
|
acc
,
None
->
fold_map_opt
f
acc
tl
|
acc
,
Some
x
->
let
(
acc
,
tl
)
=
fold_map_opt
f
acc
tl
in
(
acc
,
x
::
tl
)
let
product_fold
f
acc
e1
e2
=
List
.
fold_left
(
fun
acc
e1
->
List
.
fold_left
(
fun
acc
e2
->
f
acc
e1
e2
)
acc
e2
)
...
...
This diff is collapsed.
Click to expand it.
src/libraries/stdlib/extlib.mli
+
0
−
6
View file @
82db9ea9
...
...
@@ -99,12 +99,6 @@ val replace: ('a -> 'a -> bool) -> 'a -> 'a list -> 'a list
@since Neon-20140301
*)
val
fold_map
:
(
'
a
->
'
b
->
'
a
*
'
c
)
->
'
a
->
'
b
list
->
'
a
*
'
c
list
(** Combines [fold_left] and [map] *)
val
fold_map_opt
:
(
'
a
->
'
b
->
'
a
*
'
c
option
)
->
'
a
->
'
b
list
->
'
a
*
'
c
list
(** Combines [filter] [fold_left] and [map] *)
val
product_fold
:
(
'
a
->
'
b
->
'
c
->
'
a
)
->
'
a
->
'
b
list
->
'
c
list
->
'
a
(** [product f acc l1 l2] is similar to [fold_left f acc l12] with l12 the
list of all pairs of an elt of [l1] and an elt of [l2]
...
...
This diff is collapsed.
Click to expand it.
src/plugins/eva/domains/traces_domain.ml
+
1
−
1
View file @
82db9ea9
...
...
@@ -826,7 +826,7 @@ module GraphDot = OCamlGraph.Graphviz.Dot(struct
let
rec
complete_graph
(
graph
:
Graph
.
t
)
=
Graph
.
fold
(
fun
k
l
graph
->
let
graph
,
l
=
Extlib
.
fold
_map
(
fun
graph
e
->
List
.
fold_left
_map
(
fun
graph
e
->
let
m
=
Graph
.
singleton
(
Edge
.
succ
e
)
[]
in
let
e
=
match
e
.
edge_trans
with
|
Assign
(
_
,
_
,_,_
)
...
...
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