Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #1022

double puzzle - precondition not proved using WP/Val plugin

ID0001664: This issue was created automatically from Mantis Issue 1664. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001664 Frama-C Plug-in > Eva public 2014-02-28 2014-06-06
Reporter dharma Assigned To yakobowski Resolution no change required
Priority normal Severity major Reproducibility always
Platform Ubuntu OS Linux OS Version 64 bit
Product Version Frama-C Fluorine-20130601 Target Version - Fixed in Version -

Description :

#include <stdio.h> #include <limits.h>

/*@ requires x != 0; assigns \nothing; */ void assert(int x);

int x = 0;

int main() { assert(x == (int)(double)x); return 0; }

Additional Information :

[kernel] preprocessing with "gcc -C -E -I. -dD double_casting_puzzle.c" [value] Analyzing an incomplete application starting at main [value] Computing initial state [value] Initial state computed [value] Values of globals at initialization x ∈ -..- [value] computing for function assert <- main. Called from double_casting_puzzle.c:13. [value] using specification for function assert double_casting_puzzle.c:4:[value] Function assert: precondition got status unknown. [value] Done for function assert [value] Recording results for main [value] done for function main [value] ====== VALUES COMPUTED ====== [value] Values at end of function main: __retres ∈ {0}

Steps To Reproduce :

frama-c -val double_casting_puzzle.c -pp-annot -lib-entry

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking