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
ddd1c41f
Commit
ddd1c41f
authored
1 year ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] fix double assumes normalization
parent
e9369722
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/wp/cfgAnnot.ml
+5
-5
5 additions, 5 deletions
src/plugins/wp/cfgAnnot.ml
with
5 additions
and
5 deletions
src/plugins/wp/cfgAnnot.ml
+
5
−
5
View file @
ddd1c41f
...
@@ -59,8 +59,7 @@ type behavior = {
...
@@ -59,8 +59,7 @@ type behavior = {
let
normalize_assumes
h
=
let
normalize_assumes
h
=
let
module
L
=
NormAtLabels
in
let
module
L
=
NormAtLabels
in
let
labels
=
L
.
labels_fct_pre
in
L
.
preproc_annot
L
.
labels_fct_pre
h
L
.
preproc_annot
labels
h
let
implies
?
assumes
p
=
let
implies
?
assumes
p
=
match
assumes
with
None
->
p
|
Some
h
->
Logic_const
.
pimplies
(
h
,
p
)
match
assumes
with
None
->
p
|
Some
h
->
Logic_const
.
pimplies
(
h
,
p
)
...
@@ -77,7 +76,8 @@ let normalize_pre ~goal kf bhv ?assumes ip =
...
@@ -77,7 +76,8 @@ let normalize_pre ~goal kf bhv ?assumes ip =
let
id
=
WpPropId
.
mk_pre_id
kf
Kglobal
bhv
ip
in
let
id
=
WpPropId
.
mk_pre_id
kf
Kglobal
bhv
ip
in
let
pre
=
ip
.
ip_content
.
tp_statement
in
let
pre
=
ip
.
ip_content
.
tp_statement
in
let
assumes
=
Option
.
map
normalize_assumes
assumes
in
let
assumes
=
Option
.
map
normalize_assumes
assumes
in
Some
(
id
,
L
.
preproc_annot
labels
@@
implies
?
assumes
pre
)
let
precond
=
L
.
preproc_annot
labels
pre
in
Some
(
id
,
implies
?
assumes
precond
)
else
None
else
None
let
normalize_post
~
goal
kf
bhv
tk
?
assumes
(
itk
,
ip
)
=
let
normalize_post
~
goal
kf
bhv
tk
?
assumes
(
itk
,
ip
)
=
...
@@ -87,8 +87,8 @@ let normalize_post ~goal kf bhv tk ?assumes (itk,ip) =
...
@@ -87,8 +87,8 @@ let normalize_post ~goal kf bhv tk ?assumes (itk,ip) =
let
assumes
=
Option
.
map
(
fun
p
->
normalize_assumes
@@
at_pre
p
)
assumes
in
let
assumes
=
Option
.
map
(
fun
p
->
normalize_assumes
@@
at_pre
p
)
assumes
in
let
labels
=
L
.
labels_fct_post
~
exit
:
(
tk
=
Exits
)
in
let
labels
=
L
.
labels_fct_post
~
exit
:
(
tk
=
Exits
)
in
let
id
=
WpPropId
.
mk_post_id
kf
Kglobal
bhv
(
tk
,
ip
)
in
let
id
=
WpPropId
.
mk_post_id
kf
Kglobal
bhv
(
tk
,
ip
)
in
let
p
=
L
.
preproc_annot
labels
ip
.
ip_content
.
tp_statement
in
let
p
ost
=
L
.
preproc_annot
labels
ip
.
ip_content
.
tp_statement
in
Some
(
id
,
implies
?
assumes
p
)
Some
(
id
,
implies
?
assumes
p
ost
)
else
None
else
None
let
normalize_decreases
(
d
,
li
)
=
let
normalize_decreases
(
d
,
li
)
=
...
...
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