[kernel] Parsing safearrays.i (no preprocessing) [rte:annot] annotating function main /* Generated by Frama-C */ struct S { int val ; struct S *next ; }; struct C { struct S cell[5] ; int (*f)(int ) ; }; struct ArrayStruct { struct C data[10] ; }; unsigned int i; unsigned int j; int main(void) { int __retres; int a; struct ArrayStruct buff; /*@ assert rte: index_bound: i < 10; */ /*@ assert rte: index_bound: j < 5; */ /*@ assert rte: mem_access: \valid_read(&(buff.data[i].cell[j].next)->val); */ a = (buff.data[i].cell[j].next)->val; /*@ assert rte: index_bound: i < 10; */ /*@ assert rte: function_pointer: \valid_function(buff.data[i].f); */ (*(buff.data[i].f))(a); __retres = 0; return __retres; }