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] Valid physical address


  • Subject: [Frama-c-discuss] Valid physical address
  • From: anne.pacalet at free.fr (Anne Pacalet)
  • Date: Fri, 04 May 2012 09:50:27 +0200

Hello,

I am trying to use frama-c value analysis on an application
that reads the memory using some physical addresses.
Something like :

unsigned char * p = 0xABCD;
if (*(p + 10) == 1) {
 ...
}

Of course, the value analysis emit an alarm : assert \valid(p+10);
Status: **NOT** VALID according to value analysis (under hypotheses)

The problem is that the test is then considered to be always false
ie. the if branch is said to be dead code.
I don't really understand why...
Is there a way to tell the value analysis to consider the test
to be either true or false ?

Thanks in advance for your help,
-- 
Anne.