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: dmentre at (David MENTRE)
  • Date: Fri, 28 Aug 2015 15:55:04 +0200


Considering following code:

int b, c, d, e;

void double_assign(void)
   int x = d;
   e = b;
   e = c;

void loop_branch(int a)
   if (a)
     b = c;
     while (1)
       d = e;

void main(int param)
   c = 3;

"frama-c -deps in_out.c" produces:
[from] Function double_assign:
   e FROM c
[from] Function loop_branch:
   b FROM c
[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.

I found no explanation in §6.1 of Value analysis manual or in whole 
chapter 6.

I also tried various options from the "from" plug-in without success.

Best regards,