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] Semantics of \valid

As a minor remark about \valid_range, I would like to add that I find  
it always a bit odd
that I have to specify

\valid_range(a, 0, n-1)

to express an array of length n. I would prefer "\valid_range(a, 0,  
n)"  or even shorter "\valid_range(a, n)".
In other words, I think that right open ranges fit better to C.

Regards Jens

> Concerning \valid_range, I don't see why this predicate is  
> necessary. I think it just makes it more difficult for the user as  
> he has to read both the definitions of \valid and \valid_range and  
> ponder what the difference is.
> How about removing \valid_range? In this case, the user can define  
> his own predicate, eg \valid_range(a,l,r) <==> l < r && \valid(a+ 
> (l..r))
> Regards,
> Boris
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at


Dr.-Ing. Jens Gerlach
Eingebettete Systeme - EST
Tel.: +49 (0)30 6392 1841
Fax.: +49 (0)30 6392 1805
E-Mail: jens.gerlach at

Fraunhofer-Institut f?r Rechnerarchitektur und Softwaretechnik, FIRST
Kekul?stra?e 7
12489 Berlin

-------------- next part --------------
An HTML attachment was scrubbed...