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] Getting a node from its id for a particular pdg
- Subject: [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: jcdemay at rennes.supelec.fr (Jonathan-Christofer Demay)
- Date: Fri, 20 Mar 2009 17:06:28 +0100
- In-reply-to: <49C360A4.3010406@sophia.inria.fr>
- References: <1237387890.3508.114.camel@supelec> <49C116F4.5050507@sophia.inria.fr> <1237402185.3508.226.camel@supelec> <49C360A4.3010406@sophia.inria.fr>
On Fri, 2009-03-20 at 10:23 +0100, Anne Pacalet wrote: > But if you _did_ have to try to do these computations, it is probably > because something went wrong... > So, let's try to find out want. > On the file : > -------------------------- > int toto (int x, int y); > > void main (int a, int b, int c, int z, int e) { > int e = 3; > b += z; > c = toto(b,a); > c++; > e = toto(c,a); > } > -------------------------- > and you can see that you get (among others) : [Elem] 11 : b += z; > which is the node that you want, don't you ? Indeed, that was the one I was missing (in this small example), so it works, I now have all the nodes I want (thanks !). Now I think I figured out why I didn't get all of them before, it was caused by the way toto's declaration was written. If I replace in the C file 'int toto (int x, int y);' by 'int toto (int,int);' (which is still a valid C syntax I think, right ?), then '[Elem] 11 : b += z' (among other nodes) will no longer appear. Do you happen to get a similar result ? If you don't, well I have to figure out what's wrong in my frama-c's setup. If you do, well is it the intended behavior ? Anyway, thanks a lot for your time !
- Follow-Ups:
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: Pascal.Cuoq at cea.fr (Pascal Cuoq)
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- References:
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: jcdemay at rennes.supelec.fr (Jonathan-Christofer Demay)
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: anne.pacalet at sophia.inria.fr (Anne Pacalet)
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: jcdemay at rennes.supelec.fr (Jonathan-Christofer Demay)
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- From: anne.pacalet at sophia.inria.fr (Anne Pacalet)
- [Frama-c-discuss] Getting a node from its id for a particular pdg
- Prev by Date: [Frama-c-discuss] Getting a node from its id for a particular pdg
- Next by Date: [Frama-c-discuss] Issue to prove a precondition for user call
- Previous by thread: [Frama-c-discuss] Getting a node from its id for a particular pdg
- Next by thread: [Frama-c-discuss] Getting a node from its id for a particular pdg
- Index(es):