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] Frama-C: Detecting unreachable code?



Hi,

I ran the below code, which is a representative of the code snippet in a real code base.

frama-c -wp -wp-rte cast.c -wp-proof=z3

Got this "This term has type real but is expected to have type int"


float a = 0.0;
float b = 1.5;

int main()
{
  a = (int)b;

  return 0;
}


Looks like type-casting seems to be a problem, but not sure.

Any comments?
Dharma



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20140123/3f48bad3/attachment.html>