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] (jessie) type casting and assertions


  • Subject: [Frama-c-discuss] (jessie) type casting and assertions
  • From: lc at adelard.com (Lukasz Cyra)
  • Date: Wed, 22 Jul 2009 10:19:44 +0100

Hi,

I encountered a problem related to type casting. Namely, no solver is able to prove the assertion in the given below piece of code:

void fun(float x) {
 int y;
 y = (int) x;
/*@ assert y == (int)x; */
}

Is it possible to work this problem around somehow?

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20090722/181c1ea3/attachment.htm