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] dead code after an assertion unknown status


  • Subject: [Frama-c-discuss] dead code after an assertion unknown status
  • From: stephane.duprat at atosorigin.com (Stéphane Duprat)
  • Date: Tue, 13 Oct 2009 23:50:06 +0200

Hi,

I cannot explain why the code immediately following the assert is seen
as dead code.
Status of the assert is "unknown" for the value analysis.

thx in advance,

St?phane


char tab[10];
int f1(char* buf, int v)
{
  int i;
  //@ assert buf==tab;
  i++;
  memcpy(buf, &v, sizeof(int));
  i++;
  return *((int*)buf);
}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20091013/30190156/attachment.htm