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
7b761861
Commit
7b761861
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Results: minor simplification.
parent
bdc04dc4
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/plugins/value/utils/results.ml
+4
-8
4 additions, 8 deletions
src/plugins/value/utils/results.ml
with
4 additions
and
8 deletions
src/plugins/value/utils/results.ml
+
4
−
8
View file @
7b761861
...
@@ -381,7 +381,7 @@ struct
...
@@ -381,7 +381,7 @@ struct
assert
(
Int_Base
.
equal
loc2
.
size
size
);
assert
(
Int_Base
.
equal
loc2
.
size
size
);
make_loc
loc
size
make_loc
loc
size
and
extract
loc
=
and
extract
loc
=
loc
>>>-:
get
>>>-:
Precise_locs
.
imprecise_location
loc
>>>-:
get
>>>-:
Precise_locs
.
imprecise_location
in
in
extract_loc
res
|>
fst
|>
Response
.
map_join'
extract
join
|>
convert
extract_loc
res
|>
fst
|>
Response
.
map_join'
extract
join
|>
convert
...
@@ -429,14 +429,10 @@ struct
...
@@ -429,14 +429,10 @@ struct
match
r
with
match
r
with
|
`Bottom
|
`Top
->
[]
|
`Bottom
|
`Top
->
[]
|
`Value
alarmset
->
|
`Value
alarmset
->
let
open
Alarmset
in
let
add
alarm
status
acc
=
let
l
=
ref
[]
in
if
status
<>
Alarmset
.
True
then
alarm
::
acc
else
acc
let
add
alarm
=
function
|
True
->
()
|
False
|
Unknown
->
l
:=
alarm
::
!
l
in
in
Alarmset
.
iter
add
alarmset
;
Alarmset
.
fold
add
[]
alarmset
!
l
let
is_bottom
:
type
a
c
.
(
a
,
c
)
evaluation
->
bool
=
let
is_bottom
:
type
a
c
.
(
a
,
c
)
evaluation
->
bool
=
fun
res
->
fun
res
->
...
...
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