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
bcd4d8a9
Commit
bcd4d8a9
authored
5 months ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Lmap.add_binding does not check if the written value is bottom.
This case should be processed by the caller if needed.
parent
aad4fc32
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/kernel_services/abstract_interp/cvalue.ml
+5
-0
5 additions, 0 deletions
src/kernel_services/abstract_interp/cvalue.ml
src/kernel_services/abstract_interp/lmap.ml
+8
-11
8 additions, 11 deletions
src/kernel_services/abstract_interp/lmap.ml
with
13 additions
and
11 deletions
src/kernel_services/abstract_interp/cvalue.ml
+
5
−
0
View file @
bcd4d8a9
...
...
@@ -1058,6 +1058,11 @@ module Model = struct
let
v
=
find_indeterminate
~
conflate_bottom
state
loc
in
V_Or_Uninitialized
.
get_v
v
let
add_binding
~
exact
mem
loc
v
=
if
V_Or_Uninitialized
.
is_bottom
v
then
bottom
else
add_binding
~
exact
mem
loc
v
let
add_indeterminate_binding
~
exact
mem
loc
v
=
add_binding
~
exact
mem
loc
v
...
...
This diff is collapsed.
Click to expand it.
src/kernel_services/abstract_interp/lmap.ml
+
8
−
11
View file @
bcd4d8a9
...
...
@@ -656,17 +656,14 @@ struct
|
Map
m
->
Map
(
M
.
add_base_value
base
~
size
v
~
size_v
m
)
let
add_binding
~
exact
m
loc
v
=
(* TODO: this should depend on bottom being strict. *)
if
V
.
equal
v
V
.
bottom
then
Bottom
else
match
m
with
|
Top
->
Top
|
Bottom
->
Bottom
|
Map
m
->
try
let
non_bottom
,
r
=
M
.
add_binding
~
exact
m
loc
v
in
if
non_bottom
then
Map
r
else
Bottom
with
M
.
Result_is_top
->
Top
match
m
with
|
Top
->
Top
|
Bottom
->
Bottom
|
Map
m
->
try
let
non_bottom
,
r
=
M
.
add_binding
~
exact
m
loc
v
in
if
non_bottom
then
Map
r
else
Bottom
with
M
.
Result_is_top
->
Top
let
find
?
(
conflate_bottom
=
true
)
m
loc
=
match
m
with
...
...
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