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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
289f6d07
"src/plugins/variadic/frama-c-variadic.opam" did not exist on "af6b48ccf14a09fb4bfc6a1e3a3c850bb7e78065"
Commit
289f6d07
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Warn once when WP meets a \from
parent
cf01dcb0
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/wpStrategy.ml
+10
-0
10 additions, 0 deletions
src/plugins/wp/wpStrategy.ml
with
10 additions
and
0 deletions
src/plugins/wp/wpStrategy.ml
+
10
−
0
View file @
289f6d07
...
...
@@ -318,6 +318,11 @@ let add_prop_dead_call kf stmt acc_posts acc_exits =
(* -------------------------------------------------------------------------- *)
let
from_has_deps
=
function
_
,
FromAny
->
false
|
_
,
From
_
->
true
let
assigns_has_deps
=
function
|
WritesAny
->
false
|
Writes
l
->
List
.
exists
from_has_deps
l
let
add_assigns
acc
kind
id
a_desc
=
let
take_assigns
()
=
debug
"take %a %a"
WpPropId
.
pp_propid
id
WpPropId
.
pp_assigns_desc
a_desc
;
...
...
@@ -334,6 +339,11 @@ let add_assigns acc kind id a_desc =
|
Agoal
->
true
,
{
info
with
a_goal
=
take_assigns
()
}
|
_
->
Wp_parameters
.
fatal
"Assigns prop can only be Hyp or Goal"
in
let
acc
=
{
acc
with
info
=
info
}
in
if
goal
&&
assigns_has_deps
a_desc
.
a_assigns
then
Wp_parameters
.
warning
~
once
:
true
~
current
:
false
~
wkey
:
AssignsCompleteness
.
wkey_pedantic
"WP uses
\\
from to compute precise hypotheses but their proof is not yet \
supported"
;
if
goal
then
{
acc
with
has_asgn_goal
=
true
}
else
acc
let
add_assigns_any
acc
kind
asgn
=
...
...
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