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] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Subject: [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Fri, 28 Aug 2015 16:07:08 +0200
- In-reply-to: <55E06838.2010902@linux-france.org>
- References: <55E06838.2010902@linux-france.org>
Hello David, On Fri, Aug 28, 2015 at 3:55 PM, David MENTRE <dmentre at linux-france.org> wrote: > > void main(int param) > { > c = 3; > > [from] Function main: > b FROM \nothing > c FROM \nothing > e FROM \nothing > """ > > For main(), why -deps gives "b FROM \nothing" and "e FROM \nothing"? I > would have expected "e FROM c" and "b FROM c" due to calls to loop_branch() > and double_assign() and corresponding -deps analysis of those functions. > Option -deps show the dependencies, when the function under consideration terminates, of the values of the variables when the function terminates with respect to the values of variables when the function begins. b FROM c for function main() would mean that b is computed from the value c had when main() was entered. This is not the case because the first thing does is to assign c, so as a consequence, b is really from âwhatever c was computed from when it was assigned at the beginning of main()â. The assignment is in fact âc = 3;â, meaning that c is computed from nothing, and this is why when the end of main() is reached, b has been computed from nothing. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150828/88620791/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- References:
- [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Prev by Date: [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Next by Date: [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Previous by thread: [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Next by thread: [Frama-c-discuss] Meaning of "FROM \nothing" for function calls in -deps analysis?
- Index(es):