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] about volatile variable in value analysis plugin and "Volatile" plugin
- Subject: [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: abiao.yang at gmail.com (David Yang)
- Date: Tue, 15 Oct 2013 20:27:13 +0100
- In-reply-to: <CAOH62JgtG294Q0UL=E9Qb4znZsuZ+x4+Y=ONVYr782JcQSG0+A@mail.gmail.com>
- References: <CAA1cxugCoVcCFSd4joSnq9Pnk5EstakSnTK6MuGZTKEvArK21Q@mail.gmail.com> <CAC3Lx=Z4f502mN3oLgXms6i5=NGExb32PbDdGxXczGuEEHHjkQ@mail.gmail.com> <CAA1cxujEDb5WjiLsyHn6D92O+9g133-QC9dfSfxyScF41dJaCg@mail.gmail.com> <CABbVA-DJ-P9cRKZn-f-gQZYfethHDdfzcfMn3RW2RWkrPbLf1Q@mail.gmail.com> <CAA1cxuj8a+cvM_GqgY8nEGqWM4qqHOko7jkS3X7M1P5COO3xNg@mail.gmail.com> <CAOH62JgtG294Q0UL=E9Qb4znZsuZ+x4+Y=ONVYr782JcQSG0+A@mail.gmail.com>
Dear Pascal, Thank you very much for your suggestion and solution. On 15 October 2013 18:11, Pascal Cuoq <pascal.cuoq at gmail.com> wrote: > Hello, > > On Tue, Oct 15, 2013 at 12:12 PM, David Yang <abiao.yang at gmail.com> wrote: > >> The interpret function is the function in eval.c file of gawk-3.0.2 >> software system. >> > > According to the NEWS file in gawk, ?Uses volatile declaration if STDC > 0 > to avoid problems due to longjmp.? > > The bad news is that it would be an enormous amount of work to correctly > and precisely model longjmp so that you can analyze a gawk program that > uses it. > > The good news is that since you are not going to model longjmp anyway, you > can effectively ignore the volatile qualifier in the source files of gawk. > Adding the option -Dvolatile= to the pre-processor's command-line options > should do it. > Yeah, I only want to get the pdg of these functions. So delete those volatiles is good suggestion. > Without the ?volatile? qualifier, those pointers that are inputs of the > analysis' entry point have variables generated for them to point to > according to -context-width and similar options. > > The pointer arguments for functions that are not the entry point of the > analysis will behave as you would expect. > Not the entry point? I am sorry i don't understand it exactly. What do you mean? not using the -lib-entry option? Thanks again. Best regards, David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20131015/daf72886/attachment.html>
- References:
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: abiao.yang at gmail.com (David Yang)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: abiao.yang at gmail.com (David Yang)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: boris at yakobowski.org (Boris Yakobowski)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: abiao.yang at gmail.com (David Yang)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- Prev by Date: [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- Next by Date: [Frama-c-discuss] [FEATURE REQUEST] Context insensitive for Value analysis plugin
- Previous by thread: [Frama-c-discuss] about volatile variable in value analysis plugin and "Volatile" plugin
- Next by thread: [Frama-c-discuss] value analysis of function contain shift operations seems unable to stop
- Index(es):