Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Verifying recursive functions


Frama-c reports a fatal error when I run it on the following code:

  requires n >= 0;
  ensures \result == \sum(0,n, \lambda integer i; i);
int sum(int n) {
  if(n==0) return 0;
  else return n + sum(n-1);

This is the output:

~/progs/fc/sum> frama-c -jessie-analysis sum.c
[preprocessing] running gcc -C -E -I. -include C:\Frama-C\share\frama-c\jessie\jessie_prolog.h -dD sum.c
Cleaning unused parts
Symbolic link
Starting semantical analysis
Starting Jessie translation
Fatal error: exception Assert_failure("src/jessie/", 564, 19)

Is this a bug in Jessie?