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

Closed
Open
Created Jul 09, 2009 by Fabrice Derepas@fderepas

type error in generated why file

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


Id Project Category View Due Date Updated
ID0000178 Frama-C Plug-in > jessie public 2009-07-09 2009-07-09
Reporter derepas Assigned To cmarche Resolution open
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Beryllium-20090601-beta1 Target Version - Fixed in Version -

Description :

Let us consider the following program 'simple.c': void g(int * j, int *k) { int tmp= *j; *j=*k; *k=tmp; }

void f(int * vector, int size) { int i=0; if (i<size) g (&vector[i],&vector[i+1]); }

The command line 'frama-c -main f -jessie simple.c' generates the following error: [kernel...] preprocessing with "gcc -C -E -I. -dD simple.c" Starting Jessie translation Producing Jessie files in subdir simple.jessie File simple.jessie/simple.jc written. File simple.jessie/simple.cloc written. Calling Jessie tool in subdir simple.jessie Generating Why function g Generating Why function f Calling VCs generator. gwhy-bin [...] why/simple.why Computation of VCs... File "why/simple.why", line 552, characters 9-49: Term i is expected to have type int make: *** [simple.stat] Erreur 1 Jessie subprocess failed: make -f simple.makefile gui

The funny thing is that when the body of function g is empty this error does not occur (though the error seems to be in function f).

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