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] don't want unitialized padding fields, -initialized-padding-globals
- Subject: [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Thu, 6 Nov 2014 13:25:18 +0100
- In-reply-to: <92E955FB11B73345B1C0441574CE559C0141EC16@FRAUVJ99EX1MSX.ww931.my-it-solutions.net>
- References: <92E955FB11B73345B1C0441574CE559C0141E893@FRAUVJ99EX1MSX.ww931.my-it-solutions.net> <545B42B6.2080104@linux-france.org> <92E955FB11B73345B1C0441574CE559C0141EC16@FRAUVJ99EX1MSX.ww931.my-it-solutions.net>
It works for me. Did you provide the specification for Frama_C_make_unknown that David gave? It doesn't work if it's not provided. ~ $ cat t.c int Frama_C_entropy_source; typedef unsigned long size_t; /*@ requires \valid(p + (0 .. l-1)); assigns p[0 .. l-1] \from Frama_C_entropy_source; assigns Frama_C_entropy_source \from Frama_C_entropy_source; ensures \initialized(p + (0 .. l-1)); */ void Frama_C_make_unknown(char *p, size_t l); typedef struct { char a[3]; int b; } T_S1; typedef T_S1 T_T1[1000]; T_T1 Gtab1; T_T1 Gtab_witness; T_S1 G2; void f1(T_S1* p1) { Frama_C_make_unknown(Gtab1, sizeof(T_T1)); Frama_C_make_unknown(&G2, sizeof(T_S1)); Frama_C_dump_each(); } ~ $ frama-c -val t.c -main f1 ? [value] DUMPING STATE of file t.c line 27 Frama_C_entropy_source ? [--..--] Gtab1[0..999] ? [--..--] Gtab_witness[0..999] ? {0} G2 ? [--..--] p1 ? {{ NULL ; &S_p1[0] }} S_p1[0].a[0..2] ? [--..--] [0].[bits 24 to 31] ? UNINITIALIZED {[0].b; [1].a[0..2]} ? [--..--] [1].[bits 24 to 31] ? UNINITIALIZED [1].b ? [--..--] =END OF DUMP== -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20141106/5f95426c/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- From: stephane.duprat at atos.net (DUPRAT, STEPHANE)
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- References:
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- From: stephane.duprat at atos.net (DUPRAT, STEPHANE)
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- From: stephane.duprat at atos.net (DUPRAT, STEPHANE)
- [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- Prev by Date: [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- Next by Date: [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- Previous by thread: [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- Next by thread: [Frama-c-discuss] don't want unitialized padding fields, -initialized-padding-globals
- Index(es):