Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
  • #2493

Closed
Open
Created Jul 14, 2009 by mantis-gitlab-migration@mantis-gitlab-migration

Indicates errors in annotations when should not

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


Id Project Category View Due Date Updated
ID0000188 Frama-C Plug-in > slicing public 2009-07-14 2009-07-15
Reporter lukaszc Assigned To Anne Resolution won't fix
Priority normal Severity major Reproducibility always
Platform - OS - OS Version -
Product Version - Target Version - Fixed in Version -

Description :

  • jessie accepts this code and properly infers based on it, the slicing plug-in on the other hand indicates an error in the annotations

test.c

#include "test.h"

/@ @ requires y == CONS_FROM_TEST_H_DEFINED_USING_DEFINE; @ ensures @ \result == 2y; @/ int x(int y, int z) { /@ slice pragma ctrl; / //@ assert y == 1; //@ assert y + z == 3; return 2y*z1(); }

int main() { x(1,2); return 0; }

int z1() { return 1; }

test.h

#define CONS_FROM_TEST_H_DEFINED_USING_DEFINE 1

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