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
b49a4a18
Commit
b49a4a18
authored
2 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[inout] Uses the new Eva API instead of Db.Properties.Interp.loc_to_loc*.
parent
1da88da9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/inout/operational_inputs.ml
+26
-32
26 additions, 32 deletions
src/plugins/inout/operational_inputs.ml
with
26 additions
and
32 deletions
src/plugins/inout/operational_inputs.ml
+
26
−
32
View file @
b49a4a18
...
@@ -121,41 +121,35 @@ let eval_assigns kf state assigns =
...
@@ -121,41 +121,35 @@ let eval_assigns kf state assigns =
in
in
let
out_term
=
out
.
it_content
in
let
out_term
=
out
.
it_content
in
let
outputs_under
,
outputs_over
,
deps
=
let
outputs_under
,
outputs_over
,
deps
=
try
if
Logic_const
.(
is_result
out_term
||
is_exit_status
out_term
)
if
Logic_const
.(
is_result
out_term
||
is_exit_status
out_term
)
then
(
Zone
.
bottom
,
Zone
.
bottom
,
Zone
.
bottom
)
then
(
Zone
.
bottom
,
Zone
.
bottom
,
Zone
.
bottom
)
else
else
let
output
=
Eva
.
Logic_inout
.
assigns_tlval_to_zones
state
Write
out_term
in
let
loc_out_under
,
loc_out_over
,
deps
=
match
output
with
!
Db
.
Properties
.
Interp
.
loc_to_loc_under_over
~
result
:
None
state
out_term
|
Some
output
->
output
.
under
,
output
.
over
,
clean_deps
output
.
deps
in
|
None
->
(
enumerate_valid_bits_under
Write
loc_out_under
,
Inout_parameters
.
warning
~
current
:
true
~
once
:
true
enumerate_valid_bits
Write
loc_out_over
,
"failed to interpret assigns clause '%a'"
Printer
.
pp_term
out_term
;
clean_deps
deps
)
(
Zone
.
bottom
,
Zone
.
top
,
Zone
.
top
)
with
Db
.
Properties
.
Interp
.
No_conversion
->
Inout_parameters
.
warning
~
current
:
true
~
once
:
true
"failed to interpret assigns clause '%a'"
Printer
.
pp_term
out_term
;
(
Zone
.
bottom
,
Zone
.
top
,
Zone
.
top
)
in
in
(* Compute all inputs as a zone *)
(* Compute all inputs as a zone *)
let
inputs
=
let
inputs
=
try
match
froms
with
match
froms
with
|
FromAny
->
Zone
.
top
|
FromAny
->
Zone
.
top
|
From
l
->
|
From
l
->
let
aux
acc
{
it_content
=
from
}
=
let
aux
acc
{
it_content
=
from
}
=
let
inputs
=
Eva
.
Logic_inout
.
assigns_tlval_to_zones
state
Read
from
in
let
_
,
loc
,
deps
=
match
inputs
with
!
Db
.
Properties
.
Interp
.
loc_to_loc_under_over
~
result
:
None
state
from
|
Some
inputs
->
in
let
acc
=
Zone
.
join
(
clean_deps
inputs
.
deps
)
acc
in
let
acc
=
Zone
.
join
(
clean_deps
deps
)
acc
in
Zone
.
join
inputs
.
over
acc
let
z
=
enumerate_valid_bits
Read
loc
in
|
_
->
Zone
.
join
z
acc
Inout_parameters
.
warning
~
current
:
true
~
once
:
true
in
"failed to interpret inputs in assigns clause '%a'"
List
.
fold_left
aux
deps
l
Printer
.
pp_from
asgn
;
with
Db
.
Properties
.
Interp
.
No_conversion
->
Zone
.
top
Inout_parameters
.
warning
~
current
:
true
~
once
:
true
in
"failed to interpret inputs in assigns clause '%a'"
List
.
fold_left
aux
deps
l
Printer
.
pp_from
asgn
;
Zone
.
top
in
in
(* Fuse all outputs. An output is sure if it was certainly
(* Fuse all outputs. An output is sure if it was certainly
overwritten (i.e. is in the left part of an assign clause,
overwritten (i.e. is in the left part of an assign clause,
...
...
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