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
129d6a0a
Commit
129d6a0a
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Moves the notion of update init from model to MemLoader
parent
e1a9e36a
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/plugins/wp/MemLoader.ml
+2
-1
2 additions, 1 deletion
src/plugins/wp/MemLoader.ml
src/plugins/wp/MemTyped.ml
+1
-5
1 addition, 5 deletions
src/plugins/wp/MemTyped.ml
with
3 additions
and
6 deletions
src/plugins/wp/MemLoader.ml
+
2
−
1
View file @
129d6a0a
...
...
@@ -455,7 +455,8 @@ struct
(* -------------------------------------------------------------------------- *)
let
updated_init_atom
seq
loc
value
=
let
chunk_init
,
mem_init
=
M
.
set_init_atom
seq
.
pre
loc
value
in
let
new_value
=
e_or
[
M
.
is_init_atom
seq
.
pre
loc
;
value
]
in
let
chunk_init
,
mem_init
=
M
.
set_init_atom
seq
.
pre
loc
new_value
in
Set
(
Sigma
.
value
seq
.
post
chunk_init
,
mem_init
)
let
updated_atom
seq
obj
loc
value
=
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/MemTyped.ml
+
1
−
5
View file @
129d6a0a
...
...
@@ -993,11 +993,7 @@ struct
let
store_float
sigma
f
l
v
=
updated
sigma
(
m_float
f
)
l
v
let
store_pointer
sigma
_ty
l
v
=
updated
sigma
M_pointer
l
v
let
set_init_atom
sigma
l
v
=
(* updated sigma T_init l v *)
let
value
=
Sigma
.
value
sigma
T_init
in
let
current
=
F
.
e_get
value
l
in
T_init
,
F
.
e_set
value
l
(
F
.
e_if
current
e_true
v
)
let
set_init_atom
sigma
l
v
=
updated
sigma
T_init
l
v
let
is_init_atom
sigma
l
=
F
.
e_get
(
Sigma
.
value
sigma
T_init
)
l
end
...
...
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