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 (Stéphane Duprat)
  • Date: Tue, 13 Oct 2009 23:50:06 +0200


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,


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

-------------- next part --------------
An HTML attachment was scrubbed...