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
9e9cca2a
Commit
9e9cca2a
authored
11 months ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Sets the current location in the engine, not in the cvalue domain.
parent
94f1dd54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/eva/domains/cvalue/cvalue_init.ml
+0
-2
0 additions, 2 deletions
src/plugins/eva/domains/cvalue/cvalue_init.ml
src/plugins/eva/engine/initialization.ml
+6
-1
6 additions, 1 deletion
src/plugins/eva/engine/initialization.ml
with
6 additions
and
3 deletions
src/plugins/eva/domains/cvalue/cvalue_init.ml
+
0
−
2
View file @
9e9cca2a
...
@@ -111,8 +111,6 @@ let reject_empty_struct b offset typ =
...
@@ -111,8 +111,6 @@ let reject_empty_struct b offset typ =
(** [initialize_var_using_type varinfo state] uses the type of [varinfo]
(** [initialize_var_using_type varinfo state] uses the type of [varinfo]
to create an initial value in [state]. *)
to create an initial value in [state]. *)
let
initialize_var_using_type
varinfo
state
=
let
initialize_var_using_type
varinfo
state
=
let
open
Current_loc
.
Operators
in
let
<>
UpdatedCurrentLoc
=
varinfo
.
vdecl
in
let
rec
add_offsetmap
depth
b
name_desc
name
typ
offset_orig
typ_orig
state
=
let
rec
add_offsetmap
depth
b
name_desc
name
typ
offset_orig
typ_orig
state
=
let
typ
=
Cil
.
unrollType
typ
in
let
typ
=
Cil
.
unrollType
typ
in
let
loc
=
lazy
(
loc_of_typoffset
b
typ_orig
offset_orig
)
in
let
loc
=
lazy
(
loc_of_typoffset
b
typ_orig
offset_orig
)
in
...
...
This diff is collapsed.
Click to expand it.
src/plugins/eva/engine/initialization.ml
+
6
−
1
View file @
9e9cca2a
...
@@ -267,7 +267,12 @@ module Make
...
@@ -267,7 +267,12 @@ module Make
else
else
let
var_kind
=
Abstract_domain
.
Formal
kf
in
let
var_kind
=
Abstract_domain
.
Formal
kf
in
let
state
=
Domain
.
enter_scope
var_kind
l
state
in
let
state
=
Domain
.
enter_scope
var_kind
l
state
in
List
.
fold_right
(
Domain
.
initialize_variable_using_type
var_kind
)
l
state
let
init
vi
state
=
let
open
Current_loc
.
Operators
in
let
<>
UpdatedCurrentLoc
=
vi
.
vdecl
in
Domain
.
initialize_variable_using_type
var_kind
vi
state
in
List
.
fold_right
init
l
state
(* Use the values supplied in [actuals] for the formals of [kf], and
(* Use the values supplied in [actuals] for the formals of [kf], and
bind them in [state] *)
bind them in [state] *)
...
...
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