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] YASE logic integer functions


  • Subject: [Frama-c-discuss] YASE logic integer functions
  • From: Christoph.Weber at first.fraunhofer.de (Christoph Weber)
  • Date: Tue Oct 21 08:58:21 2008

Salut, yesterday I asked how I write own functions in FramaC,
 I want to create a function, that counts occurences of a value in an array:

/*

logic integer occ_value(int* a, int index, int length, int value) =

(index == length) ? 0 : ( 

(a[index] == value) ? 1 + list_length(a, index+1, length, value) :

list_length(a, index+1, length, value)) ;

*/

Does Jessie support it yet, will it support it or has it to be done somehow else?



Merci d'avance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20081021/4c4d416b/attachment.html