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] can we collect referenced variables with frama-c?


  • Subject: [Frama-c-discuss] can we collect referenced variables with frama-c?
  • From: xu.deng at intel.com (Deng, Xu)
  • Date: Wed, 16 Feb 2011 13:03:09 +0800

Hi,
Can we use frama-c to collect the referenced (used/modified) global variables of a function, including the global variables referenced by the functions called in this function?
For example:
struct S0{
  Int a;
  Int b;
};

struct S{
  Int a;
  Struct S0 *p;
};

struct S s1;
struct S0 s0;
void func()
{
  s1.a=1;
  s1.p=&s0;
  struct S0 *p = s1.p;
  func2(p);
}

Void func2(struct S0 *p)
{
   p->a = 0;
}

The func() actually has modified S.a, S.p and S.a, can frama-c support collecting this information?

Thanks

Xu Deng
8621-7069

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20110216/fed11289/attachment.htm>