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] problem with pre-processing
- Subject: [Frama-c-discuss] problem with pre-processing
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Mon, 11 Apr 2011 15:37:03 +0200
- In-reply-to: <22822_1302528270_4DA3010E_22822_291_2_12615CBFF54930468079CF80A7B13553361127DF88@DE0-MAILMBX-P13.res.airbus.corp>
- References: <13076_1302517051_4DA2D53B_13076_26_2_12615CBFF54930468079CF80A7B13553361127D900@DE0-MAILMBX-P13.res.airbus.corp> <989_1302517535_4DA2D718_989_108_2_BANLkTi=UC+p_cUmwcphFxauyKmVKacF0GA@mail.gmail.com> <22822_1302528270_4DA3010E_22822_291_2_12615CBFF54930468079CF80A7B13553361127DF88@DE0-MAILMBX-P13.res.airbus.corp>
On Mon, Apr 11, 2011 at 3:24 PM, SENE, Sali <sali.sene at airbus.com> wrote: > Thank you Pascal it solve the problem. > I have another question: does Frama-c support pointer on function? The framework handles function pointers. Then, for this kind of difficult construct, it is up to each plug-in to decide and document whether it is supported in that plug-in or not. Function pointers are supported in the value analysis plug-in, which can analyse the example below and tell with the command-line frama-c -val -main f t.c that h1() and h3() are called. Pascal typedef void (*T_FUN)(); extern void h0(), h1(), h2(), h3(), h4(); const T_FUN t[]={h0,h1,h2,h3,h4}; int g; volatile int v; void f(int a, int *b, int *c, int *d) { int i=*d; *b=i; if (*b) *b=g; else *c=g+a; v=*b; while (v && i>314) i/=3; for (i=0; i<5; i++) if (*c && i%2) (*t[i])(); }
- References:
- [Frama-c-discuss] problem with pre-processing
- From: sali.sene at airbus.com (SENE, Sali)
- [Frama-c-discuss] problem with pre-processing
- From: sali.sene at airbus.com (SENE, Sali)
- [Frama-c-discuss] problem with pre-processing
- Prev by Date: [Frama-c-discuss] problem with pre-processing
- Next by Date: [Frama-c-discuss] problem with pre-processing
- Previous by thread: [Frama-c-discuss] problem with pre-processing
- Next by thread: [Frama-c-discuss] problem with pre-processing
- Index(es):