Skip to content

GitLab

  • Menu
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 209
    • Issues 209
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #635

Closed
Open
Created Jun 01, 2015 by Virgile Prevosto@virgileOwner

WP crashes on generation of PO for assigns clause (assertion failure in MemVar.ml)

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


Id Project Category View Due Date Updated
ID0002124 Frama-Clang Plug-in > wp public 2015-06-01 2015-06-02
Reporter virgile Assigned To correnson Resolution duplicate
Priority normal Severity major Reproducibility always
Platform - OS - OS Version -
Product Version - Target Version - Fixed in Version -

Description :

On the example source below, frama-c -wp reduced.i crashes with the following error: File "src/wp/MemVar.ml", line 491, characters 54-60: Assertion failed

Apparently (by inferring why the offending function in MemVar got called), the p1+0 in the assigns for fn1 leads WP to think that p1 should be instantiated with an array (in particular, if you remove the +0, everything is fine).

-- reduced.i /*@ assigns *(p1); */ int fn1(char *p1);

/*@ assigns \nothing; */ void fn2(void) { char pcr_index; fn1(&pcr_index); }

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