Frama-C Bug Tracking System - Frama-C
View Issue Details
0002482Frama-CPlug-in > wppublic2019-10-22 19:472020-02-17 18:08
Assigned Tocorrenson 
StatusclosedResolutionno change required 
PlatformOSLinux, macOSOS Version
Product VersionFrama-C 19-Potassium 
Target VersionFixed in VersionFrama-C 20-Calcium 
Summary0002482: WP warning not clear
DescriptionWhen I run
   frama-c -wp -wp-rte -wp-model Typed f.c
on the attached file, I obtain the warning

[wp] Warning: Memory model hypotheses for function 'f':
  /*@ behavior typed: requires \separated(p+(..),a); */
  void f(int *a);

However, when I add this requirement by removing the corresponding comment in the contract,
then the warning still occurs.

What can I do to make this warning disappear?
TagsNo tags attached.
Attached Filesc f.c (184) 2019-10-22 19:47

2019-10-22 23:30   
(Last edited: 2019-10-22 23:32)
These warnings are emitted because WP is not able to verify them on its own since it assumes these assumptions (or something weaker) to proceed.

If you are confident that such requirements are still valid, you can turn off their emission with option

Roadmap: in the future « Region » memory model, such hypotheses would be checked by WP on its own.

2019-10-22 23:34   
(Last edited: 2019-10-22 23:35)
Side note: some requirements are too strong as they are printed.
For instance, you can see a requirement like « \valid(a + (..)) » although maybe it is sufficient to have
« \valid(a + (0..n)) » for some well-chosen « n ». The same for separation hypotheses.

This is why we do not add them to preconditions automatically.

2020-02-17 18:08   
Fixed in Frama-C 20.0 (Calcium).

Issue History
2019-10-22 19:47jensNew Issue
2019-10-22 19:47jensStatusnew => assigned
2019-10-22 19:47jensAssigned To => correnson
2019-10-22 19:47jensFile Added: f.c
2019-10-22 23:30corrensonNote Added: 0006914
2019-10-22 23:32corrensonNote Edited: 0006914bug_revision_view_page.php?bugnote_id=6914#r433
2019-10-22 23:32corrensonStatusassigned => resolved
2019-10-22 23:32corrensonResolutionopen => no change required
2019-10-22 23:34corrensonNote Added: 0006915
2019-10-22 23:35corrensonNote Edited: 0006915bug_revision_view_page.php?bugnote_id=6915#r435
2020-02-17 18:06signolesFixed in Version => Frama-C 20-Calcium
2020-02-17 18:08signolesStatusresolved => closed
2020-02-17 18:08signolesNote Added: 0006939