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.