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



Hello,

> The documentation states "\valid(s) holds if and only if  
> dereferencing any p \in s is safe." However, it's not clear what  
> dereferencing means wrt structs.

If p is a pointer to struct B,

\valid(p) means that it is safe to do

struct B s;
s = *p;

in your program. It's not really different from validity for
a pointer to int or char.

Pascal