--- layout: fc_discuss_archives title: Message 24 from Frama-C-discuss on July 2009 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] (jessie) type casting and assertions



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