Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frama-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
361
Issues
361
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
pub
frama-c
Commits
10494aac
Commit
10494aac
authored
Jan 14, 2020
by
David Bühler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaces Pervasives.compare by Transitioning.Stdlib.compare.
Avoids a compilation warning with ocaml >= 4.08.
parent
5453a262
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
src/plugins/server/doc.ml
src/plugins/server/doc.ml
+1
-1
src/plugins/wp/Cfloat.ml
src/plugins/wp/Cfloat.ml
+1
-1
src/plugins/wp/Layout.ml
src/plugins/wp/Layout.ml
+2
-2
src/plugins/wp/MemRegion.ml
src/plugins/wp/MemRegion.ml
+4
-3
src/plugins/wp/Region.ml
src/plugins/wp/Region.ml
+1
-1
No files found.
src/plugins/server/doc.ml
View file @
10494aac
...
...
@@ -123,7 +123,7 @@ let table_of_contents () =
module
Cmap
=
Map
.
Make
(
struct
type
t
=
string
list
let
compare
=
Pervasives
.
compare
let
compare
=
Transitioning
.
Stdlib
.
compare
end
)
let
index_entry
(
title
,
href
)
=
...
...
src/plugins/wp/Cfloat.ml
View file @
10494aac
...
...
@@ -305,7 +305,7 @@ module Compute = WpContext.StaticGenerator
(
struct
type
t
=
model
*
c_float
*
op
let
compare
=
Pervasives
.
compare
let
compare
=
Transitioning
.
Stdlib
.
compare
let
pretty
fmt
(
m
,
ft
,
op
)
=
Format
.
fprintf
fmt
"%s_%a_%s"
(
model_name
m
)
pp_suffix
ft
(
op_name
op
)
...
...
src/plugins/wp/Layout.ml
View file @
10494aac
...
...
@@ -52,7 +52,7 @@ struct
|
_
,
Field
_
->
1
|
Index
(
ta
,
n
)
,
Index
(
tb
,
m
)
->
let
cmp
=
Typ
.
compare
ta
tb
in
if
cmp
<>
0
then
cmp
else
Pervasives
.
compare
n
m
if
cmp
<>
0
then
cmp
else
Transitioning
.
Stdlib
.
compare
n
m
let
equal
a
b
=
(
compare
a
b
=
0
)
...
...
@@ -175,7 +175,7 @@ struct
Usage
.
pretty
fmt
usage
let
compare
((
da
,
ta
)
:
t
)
((
db
,
tb
)
:
t
)
=
let
cmp
=
Pervasives
.
compare
da
db
in
let
cmp
=
Transitioning
.
Stdlib
.
compare
da
db
in
if
cmp
<>
0
then
cmp
else
Typ
.
compare
ta
tb
let
equal
a
b
=
(
compare
a
b
=
0
)
...
...
src/plugins/wp/MemRegion.ml
View file @
10494aac
...
...
@@ -234,7 +234,7 @@ struct
Format
.
fprintf
fmt
"}@]"
;
end
let
compare
=
Pervasives
.
compare
let
compare
=
Transitioning
.
Stdlib
.
compare
(* Extract constant offset *)
let
offset
k
=
...
...
@@ -300,7 +300,7 @@ module ARRAY =
struct
type
t
=
int
*
int
list
let
compare
=
Pervasives
.
compare
let
compare
=
Transitioning
.
Stdlib
.
compare
let
pretty
fmt
(
s
,
ds
)
=
Format
.
fprintf
fmt
"%d%a"
s
Layout
.
Matrix
.
pretty
ds
(* Coefficient from Matrix dimensions: c_i = \Pi_{i<j} d_j *)
...
...
@@ -636,7 +636,8 @@ struct
|
Mu_alloc
->
Region
.
noid
let
hash
m
=
id
m
let
compare
m
m'
=
if
m
==
m
then
0
else
Pervasives
.
compare
(
id
m
)
(
id
m'
)
let
compare
m
m'
=
if
m
==
m
then
0
else
Transitioning
.
Stdlib
.
compare
(
id
m
)
(
id
m'
)
let
equal
m
m'
=
m
==
m'
||
(
id
m
=
id
m'
)
let
tau_of_value
=
function
...
...
src/plugins/wp/Region.ml
View file @
10494aac
...
...
@@ -128,7 +128,7 @@ struct
type
t
=
region
let
id
a
=
a
.
id
let
equal
a
b
=
(
a
.
id
=
b
.
id
)
let
compare
a
b
=
Pervasives
.
compare
a
.
id
b
.
id
let
compare
a
b
=
Transitioning
.
Stdlib
.
compare
a
.
id
b
.
id
let
pp_rid
fmt
id
=
Format
.
fprintf
fmt
"R%03d"
id
let
pretty
fmt
r
=
pp_rid
fmt
r
.
id
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment