# 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] What is wrong with this inductive sum definition?

*Subject*: [Frama-c-discuss] What is wrong with this inductive sum definition?*From*: dclist at gmail.com (dclist)*Date*: Sun, 27 Feb 2011 09:10:59 -0500

/*@ inductive is_sum{L}(integer i, int* t, int s) { case is_sum_base{L}: \forall integer i, int* t, int s; i <= 0 ==> \at(*t,L) == s; case is_sum_left{L}: \forall integer i, int* t, int s; i > 0 && is_sum(i, t, s) ==> is_sum(i-1,t,s-\at(*(t + i),L)); } */ gives me the error foo.h:6:[kernel] user error: Error during annotations analysis: invalid implicit conversion from ? to int What am I doing wrong?

**Follow-Ups**:**[Frama-c-discuss] What is wrong with this inductive sum definition?***From:*virgile.prevosto at cea.fr (Virgile Prevosto)

- Prev by Date:
**[Frama-c-discuss] RE : RTE plugin** - Next by Date:
**[Frama-c-discuss] What is wrong with this inductive sum definition?** - Previous by thread:
**[Frama-c-discuss] RE : RTE plugin** - Next by thread:
**[Frama-c-discuss] What is wrong with this inductive sum definition?** - Index(es):