Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Charles Southerland
frama-c
Commits
289f6d07
Commit
289f6d07
authored
Nov 06, 2020
by
Allan Blanchard
Browse files
[wp] Warn once when WP meets a \from
parent
cf01dcb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/wp/wpStrategy.ml
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
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment