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 0
    • Merge requests 0
  • 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
  • #2612

Closed
Open
Created May 12, 2022 by JaeD-Shin@JaeD-Shin

e-acsl-gcc.sh syntax error

my test code is cat2.i

#include <stdio.h>

char buf[128*1024];

int main()
{
  size_t count;
  /*@ assert buf==11; */
  while ((count = fread(buf, 1, sizeof(buf), stdin)) > 0)
    fwrite(buf, 1, count, stdout);
  return 0;
}

when i run e-acsl-gcc.sh -Omonitored_cat2.i cat2.i, happened problem.

+ /home/.opam/default/bin/frama-c -remove-unused-specified-functions -machdep gcc_x86_64 -cpp-extra-args= -std=c99 -D_DEFAULT_SOURCE -D__NO_CTYPE -D__FC_MACHDEP_X86_64  -no-frama-c-stdlib cat2.i -e-acsl -e-acsl-share=/home/.opam/default/bin/../share/frama-c/e-acsl -then-last -print -ocode a.out.frama.c
[kernel] Parsing cat2.i (no preprocessing)
[kernel] cat2.i:6: 
  syntax error:
  Location: between lines 6 and 7, before or at token: count
  4     
  5     int main()
  
  6     {
  7       size_t count;
  
  8       /*@ assert buf==11; */
  9       while ((count = fread(buf, 1, sizeof(buf), stdin)) > 0)
[kernel] Frama-C aborted: invalid user input.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking