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] Frama C path sensitiveness


  • Subject: [Frama-c-discuss] Frama C path sensitiveness
  • From: m.vijay at nus.edu.sg (Vijayaraghavan Murali)
  • Date: Mon, 23 May 2011 11:00:43 +0800

Hi,

I'm just wondering if Frama C's analyses are path-sensitive or not. 
Consider the following program:

extern int n1,n2;
int main() {
      int a = 0, b;

      if(n1 < n2) { a = 4; }
      else if(n1 < n2) { a = 5; }

      b = a+1;
      return b;
}

Clearly the 2nd branch is infeasible, so a = 5 is essentially dead code. 
But the domain of 'a' is reported to be {0, 4, 5} and use-def analysis 
on the assignment to 'b' returns {a = 0; a = 4; a = 5;}. From this it 
looks like Frama C is not path-sensitive. Can someone explain?

Thank you!

------
Vijayaraghavan Murali
http://www.comp.nus.edu.sg/~mvijayar