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] Problem with Jessie and float division


  • Subject: [Frama-c-discuss] Problem with Jessie and float division
  • From: hollas at informatik.htw-dresden.de (Boris Hollas)
  • Date: Mon, 08 Oct 2012 11:05:22 +0200

Hello,

the code below doesn't verify with Jessie because 0.8 * x > 0.0 can't be 
verified.

#pragma JessieFloatModel(math)

//@ requires 1 <= x < 10;
void foo(int x) {
   double y = 1.0 / (0.8 * x);
}


If I add
//@ lemma pos: \forall integer x; x > 0 ==> 0.8 * x > 0.0;
then this lemma can't be verified. This happens with Alt-Ergo and 
Simplify and both the why2 and the why3-backend.
-- 
Best regards,
Boris