Skip to content
Snippets Groups Projects
Commit 289f6d07 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[wp] Warn once when WP meets a \from

parent cf01dcb0
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment