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

[wp] Populate terminates true for declarations

parent c5578b46
No related branches found
No related tags found
No related merge requests found
...@@ -215,8 +215,6 @@ let get_terminates_clause kf = ...@@ -215,8 +215,6 @@ let get_terminates_clause kf =
| None when Kernel_function.is_in_libc kf -> | None when Kernel_function.is_in_libc kf ->
if not @@ Wp_parameters.TerminatesFCDeclarations.get () if not @@ Wp_parameters.TerminatesFCDeclarations.get ()
then Assumed Logic_const.pfalse then Assumed Logic_const.pfalse
else if not @@ Kernel_function.is_definition kf
then Assumed Logic_const.ptrue
else populate_true () else populate_true ()
| None when Kernel_function.is_definition kf -> | None when Kernel_function.is_definition kf ->
if not @@ Wp_parameters.TerminatesDefinitions.get () if not @@ Wp_parameters.TerminatesDefinitions.get ()
...@@ -225,7 +223,7 @@ let get_terminates_clause kf = ...@@ -225,7 +223,7 @@ let get_terminates_clause kf =
| None -> | None ->
if not @@ Wp_parameters.TerminatesExtDeclarations.get () if not @@ Wp_parameters.TerminatesExtDeclarations.get ()
then Assumed Logic_const.pfalse then Assumed Logic_const.pfalse
else Assumed Logic_const.ptrue else populate_true ()
| Some p -> | Some p ->
defined p defined p
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
Missing terminates clause for definition, populates 'terminates \true' Missing terminates clause for definition, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:32: Warning: [wp] tests/wp_acsl/terminates_call_options.c:32: Warning:
Missing terminates clause for no_spec_generates_goal, populates 'terminates \true' Missing terminates clause for no_spec_generates_goal, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:24: Warning: [wp] tests/wp_acsl/terminates_call_options.c:17: Warning:
Missing terminates clause on call to declaration, defaults to \true Missing terminates clause for declaration, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:33: Warning: [wp] tests/wp_acsl/terminates_call_options.c:33: Warning:
Missing assigns clause (assigns 'everything' instead) Missing assigns clause (assigns 'everything' instead)
[wp] tests/wp_acsl/terminates_call_options.c:39: Warning: [wp] FRAMAC_SHARE/libc/stdlib.h:475: Warning:
Missing terminates clause on call to exit, defaults to \true Missing terminates clause for exit, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:38: Warning: [wp] FRAMAC_SHARE/libc/stdlib.h:606: Warning:
Missing terminates clause on call to div, defaults to \true Missing terminates clause for div, populates 'terminates \true'
------------------------------------------------------------ ------------------------------------------------------------
Function call_declaration Function call_declaration
------------------------------------------------------------ ------------------------------------------------------------
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
Missing terminates clause for definition, populates 'terminates \true' Missing terminates clause for definition, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:32: Warning: [wp] tests/wp_acsl/terminates_call_options.c:32: Warning:
Missing terminates clause for no_spec_generates_goal, populates 'terminates \true' Missing terminates clause for no_spec_generates_goal, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:24: Warning: [wp] tests/wp_acsl/terminates_call_options.c:17: Warning:
Missing terminates clause on call to declaration, defaults to \true Missing terminates clause for declaration, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:33: Warning: [wp] tests/wp_acsl/terminates_call_options.c:33: Warning:
Missing assigns clause (assigns 'everything' instead) Missing assigns clause (assigns 'everything' instead)
[wp] tests/wp_acsl/terminates_call_options.c:39: Warning: [wp] FRAMAC_SHARE/libc/stdlib.h:475: Warning:
Missing terminates clause on call to exit, defaults to \true Missing terminates clause for exit, populates 'terminates \true'
[wp] tests/wp_acsl/terminates_call_options.c:38: Warning: [wp] FRAMAC_SHARE/libc/stdlib.h:606: Warning:
Missing terminates clause on call to div, defaults to \true Missing terminates clause for div, populates 'terminates \true'
[wp] 5 goals scheduled [wp] 5 goals scheduled
[wp] [Qed] Goal typed_definition_assigns : Valid [wp] [Qed] Goal typed_definition_assigns : Valid
[wp] [Qed] Goal typed_call_declaration_terminates : Valid [wp] [Qed] Goal typed_call_declaration_terminates : Valid
......
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