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
  • #1277

typing rule of \old(tab) or tab[index] construct

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


Id Project Category View Due Date Updated
ID0000761 Frama-C Kernel > ACSL implementation public 2011-03-22 2014-02-12
Reporter patrick Assigned To virgile Resolution fixed
Priority normal Severity minor Reproducibility have not tried
Platform - OS - OS Version -
Product Version Frama-C Carbon-20110201 Target Version - Fixed in Version Frama-C Nitrogen-20111001

Description :

\old(t)[0] is interpreted as \old((int*)t)[0] when t is a C variable declared as follow: int t[10];

That raises a problem when using such constructs combined with \let constructs. It is mainly accepted that \old(\let x = t ; x) is equivalent to \let x = \old(t) ; x That propagation rule implies the type of t should be the same than the type of \old(t).

That isn't the case with the current ACSL implementation: \old(\let x = t ; x) has type int[10] and \let x = \old(t) ; x has type int* The issue is more significant on theses expressions \old(\let x = t ; x)[0] and (\let x = \old(t) ; x)[0].

So, is the problem with a typing rule or with the propagation rule.

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