Skip to content
GitLab
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 173
    • Issues 173
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • 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
  • #332
Closed
Open
Issue created Jun 26, 2015 by mantis-gitlab-migration@mantis-gitlab-migration

value analysis introduces weird pointer assert with variable length arrays

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


Id Project Category View Due Date Updated
ID0002137 Frama-C Plug-in > Eva public 2015-06-26 2017-06-15
Reporter rcl Assigned To yakobowski Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Sodium Target Version Frama-C 15-Phosphorus Fixed in Version Frama-C 15-Phosphorus

Description :

The value analysis plugin generates an assertion of the form

/*@ assert Value: ptr_comparison: \pointer_comparable((void )(arr+0), (void *)val); */

when arr is a VLA. This assertion looks bogus; it doesn't make any sense and doesn't even type check.

Steps To Reproduce :

Run the value analysis plugin on the attached source code form.

Attachments

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