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
c6d61b96
Commit
c6d61b96
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Prove main requires
parent
94f2f7cc
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/cfgCalculus.ml
+6
-0
6 additions, 0 deletions
src/plugins/wp/cfgCalculus.ml
with
6 additions
and
0 deletions
src/plugins/wp/cfgCalculus.ml
+
6
−
0
View file @
c6d61b96
...
@@ -363,6 +363,11 @@ struct
...
@@ -363,6 +363,11 @@ struct
let
req
=
default_requires
mode
kf
in
let
req
=
default_requires
mode
kf
in
let
bhv
=
CfgAnnot
.
get_behavior
kf
Kglobal
has_exit
~
active
:
[]
mode
.
bhv
in
let
bhv
=
CfgAnnot
.
get_behavior
kf
Kglobal
has_exit
~
active
:
[]
mode
.
bhv
in
let
prove_if_main
env
ps
=
if
not
@@
WpStrategy
.
is_main_init
kf
then
Extlib
.
id
else
List
.
fold_right
(
prove_property
env
)
ps
in
env
.
we
,
env
.
we
,
(* global init *)
(* global init *)
W
.
close
env
.
we
@@
W
.
close
env
.
we
@@
...
@@ -372,6 +377,7 @@ struct
...
@@ -372,6 +377,7 @@ struct
W
.
label
env
.
we
None
Clabels
.
pre
@@
W
.
label
env
.
we
None
Clabels
.
pre
@@
List
.
fold_right
(
use_property
env
)
req
@@
List
.
fold_right
(
use_property
env
)
req
@@
List
.
fold_right
(
use_property
env
)
bhv
.
bhv_assumes
@@
List
.
fold_right
(
use_property
env
)
bhv
.
bhv_assumes
@@
prove_if_main
env
bhv
.
bhv_requires
@@
List
.
fold_right
(
use_property
env
)
bhv
.
bhv_requires
@@
List
.
fold_right
(
use_property
env
)
bhv
.
bhv_requires
@@
List
.
fold_right
(
use_property
env
)
(
behaviors
kf
)
@@
List
.
fold_right
(
use_property
env
)
(
behaviors
kf
)
@@
List
.
fold_right
(
prove_property
env
)
(
complete
mode
kf
)
@@
List
.
fold_right
(
prove_property
env
)
(
complete
mode
kf
)
@@
...
...
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