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
da4f3da9
Commit
da4f3da9
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Factorize normalization in initialized MemVar
parent
51c9d57f
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/wp/MemVar.ml
+6
-5
6 additions, 5 deletions
src/plugins/wp/MemVar.ml
with
6 additions
and
5 deletions
src/plugins/wp/MemVar.ml
+
6
−
5
View file @
da4f3da9
...
@@ -1104,12 +1104,13 @@ struct
...
@@ -1104,12 +1104,13 @@ struct
M
.
initialized
sigma
.
mem
(
Rrange
(
l
,
elt
,
Some
a
,
Some
b
))
M
.
initialized
sigma
.
mem
(
Rrange
(
l
,
elt
,
Some
a
,
Some
b
))
else
else
let
rec
normalize
obj
=
function
let
rec
normalize
obj
=
function
|
[]
->
[]
,
Extlib
.
id
|
[]
->
[]
,
a
,
b
|
[
Shift
(
elt
,
i
)]
when
Ctypes
.
equal
obj
elt
->
[]
,
F
.
e_add
i
|
[
Shift
(
elt
,
i
)]
when
Ctypes
.
equal
obj
elt
->
|
f
::
ofs
->
let
l
,
fn
=
normalize
obj
ofs
in
f
::
l
,
fn
[]
,
F
.
e_add
a
i
,
F
.
e_add
b
i
|
f
::
ofs
->
let
l
,
a
,
b
=
normalize
obj
ofs
in
f
::
l
,
a
,
b
in
in
let
p
,
shift
=
normalize
elt
p
in
let
p
,
a
,
b
=
normalize
elt
p
in
let
a
=
shift
a
and
b
=
shift
b
in
let
in_array
=
valid_range
RW
(
vobject
m
x
)
p
(
elt
,
a
,
b
)
in
let
in_array
=
valid_range
RW
(
vobject
m
x
)
p
(
elt
,
a
,
b
)
in
let
initialized
=
let
initialized
=
if
x
.
vformal
||
x
.
vglob
then
p_true
if
x
.
vformal
||
x
.
vglob
then
p_true
...
...
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