Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frama-C
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Frama-C
Commits
56b8fb8c
Commit
56b8fb8c
authored
Apr 5, 2022
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Lattice_bounds: removes the coercion for functions [equal] and [compare].
parent
df8f7447
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/abstract_interp/lattice_bounds.ml
+8
-27
8 additions, 27 deletions
src/kernel_services/abstract_interp/lattice_bounds.ml
with
8 additions
and
27 deletions
src/kernel_services/abstract_interp/lattice_bounds.ml
+
8
−
27
View file @
56b8fb8c
...
...
@@ -60,15 +60,15 @@ struct
|
`Bottom
,
`Bottom
->
true
|
`Top
,
`Top
->
true
|
`Value
vx
,
`Value
vy
->
equal_value
vx
vy
|
_
->
false
|
(
`Value
_
|
`Bottom
|
`Top
)
,
(
`Value
_
|
`Bottom
|
`Top
)
->
false
let
compare
compare_value
a
b
=
match
a
,
b
with
|
`Bottom
,
`Bottom
->
0
|
`Bottom
,
_
->
-
1
|
_
,
`Bottom
->
1
|
`Bottom
,
(
`Top
|
`Value
_
)
->
-
1
|
(
`Top
|
`Value
_
)
,
`Bottom
->
1
|
`Top
,
`Top
->
0
|
`Top
,
_
->
-
1
|
_
,
`Top
->
1
|
`Top
,
`Value
_
->
-
1
|
`Value
_
,
`Top
->
1
|
`Value
vx
,
`Value
vy
->
compare_value
vx
vy
end
...
...
@@ -91,14 +91,6 @@ module Bottom = struct
|
`Value
v
->
v
|
`Bottom
->
bottom
(** Datatype *)
let
hash
=
(
Common
.
hash
:>
'
f
->
'
a
t
->
int
)
let
equal
=
(
Common
.
equal
:>
'
f
->
'
a
t
->
'
a
t
->
bool
)
let
compare
=
(
Common
.
compare
:>
'
f
->
'
a
t
->
'
a
t
->
int
)
let
pretty
=
(
Common
.
pretty
:>
'
f
->
Format
.
formatter
->
'
a
t
->
unit
)
let
pretty_bottom
=
pretty_bottom
(* Lattice operators *)
let
is_included
is_included
x
y
=
match
x
,
y
with
...
...
@@ -231,6 +223,8 @@ module Top =
struct
type
'
a
t
=
'
a
or_top
include
Common
(** Access *)
let
is_top
=
function
...
...
@@ -245,14 +239,6 @@ struct
|
`Value
v
->
v
|
`Top
->
top
(** Datatype *)
let
hash
=
(
Common
.
hash
:>
'
f
->
'
a
t
->
int
)
let
equal
=
(
Common
.
equal
:>
'
f
->
'
a
t
->
'
a
t
->
bool
)
let
compare
=
(
Common
.
compare
:>
'
f
->
'
a
t
->
'
a
t
->
int
)
let
pretty
=
(
Common
.
pretty
:>
'
f
->
Format
.
formatter
->
'
a
t
->
unit
)
let
pretty_top
=
Common
.
pretty_top
(** Combination *)
let
zip
x
y
=
...
...
@@ -295,12 +281,7 @@ module TopBottom =
struct
type
'
a
t
=
'
a
or_top_bottom
(** Datatype *)
let
hash
=
(
Common
.
hash
:>
'
f
->
'
a
t
->
int
)
let
equal
=
(
Common
.
equal
:>
'
f
->
'
a
t
->
'
a
t
->
bool
)
let
compare
=
(
Common
.
compare
:>
'
f
->
'
a
t
->
'
a
t
->
int
)
let
pretty
=
(
Common
.
pretty
:>
'
f
->
Format
.
formatter
->
'
a
t
->
unit
)
include
Common
(* Lattice operators *)
...
...
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