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

[wp] Fixes stmt assigns handling in CFG

parent 58c2c6f0
No related branches found
No related tags found
No related merge requests found
...@@ -392,7 +392,7 @@ let get_stmt_assigns kf stmt = ...@@ -392,7 +392,7 @@ let get_stmt_assigns kf stmt =
) l s.spec_behavior ) l s.spec_behavior
| _ -> l | _ -> l
end stmt [] end stmt []
in if asgn = [] then [WpPropId.empty_assigns_info] else asgn in if asgn = [] then [WpPropId.mk_stmt_any_assigns_info stmt] else asgn
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
(* --- Code Assertions --- *) (* --- Code Assertions --- *)
......
void automaton_state_accessor() {
__asm__("");
//@ assert \false ;
}
# frama-c -wp [...]
[kernel] Parsing tests/wp/default-stmt-assigns.i (no preprocessing)
[wp] Running WP plugin...
[wp] Warning: Missing RTE guards
[wp] tests/wp/default-stmt-assigns.i:2: Warning:
Missing assigns clause (assigns 'everything' instead)
------------------------------------------------------------
Function automaton_state_accessor
------------------------------------------------------------
Goal Assertion (file tests/wp/default-stmt-assigns.i, line 3):
Prove: false.
------------------------------------------------------------
# frama-c -wp [...]
[kernel] Parsing tests/wp/default-stmt-assigns.i (no preprocessing)
[wp] Running WP plugin...
[wp] Warning: Missing RTE guards
[wp] tests/wp/default-stmt-assigns.i:2: Warning:
Missing assigns clause (assigns 'everything' instead)
[wp] 1 goal scheduled
[wp] [Alt-Ergo] Goal typed_automaton_state_accessor_assert : Unsuccess
[wp] Proved goals: 0 / 1
Alt-Ergo: 0 (unsuccess: 1)
------------------------------------------------------------
Functions WP Alt-Ergo Total Success
automaton_state_accessor - - 1 0.0%
------------------------------------------------------------
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