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] Integer-arithmetics, rational postconditions
- Subject: [Frama-c-discuss] Integer-arithmetics, rational postconditions
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Wed, 25 Aug 2010 09:33:52 +0200
- In-reply-to: <4C74BA23.30401@googlemail.com>
- References: <4C73DA9C.6040003@googlemail.com> <AANLkTi=CzGdRbWgSPB60onvz87jFrvmVsBdatG7EFz=N@mail.gmail.com> <4C74BA23.30401@googlemail.com>
> The syntax ((real)\result) indeed gives the error "cannot cast to logic > type" you mentioned. However when I tried (\result + 0.0), I get the > following: > "Fatal error: exception Assert_failure("cil/src/logic/logic_typing.ml", 763, > 59) I couldn't reproduce this with Frama-C Boron 20100401 (one of the binary packages from http://frama-c.com including Why 2.26). Here is the complete C file I used: /*@ requires 0 < x <= 1000000000; ensures ((\result + 0.0) / 2 > x); */ int function1(int x) { return (2*x + 1); }
- Follow-Ups:
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- From: michaelschausten at googlemail.com (Michael Schausten)
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- References:
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- From: michaelschausten at googlemail.com (Michael Schausten)
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- From: michaelschausten at googlemail.com (Michael Schausten)
- [Frama-c-discuss] Integer-arithmetics, rational postconditions
- Prev by Date: [Frama-c-discuss] Integer-arithmetics, rational postconditions
- Next by Date: [Frama-c-discuss] Integer-arithmetics, rational postconditions
- Previous by thread: [Frama-c-discuss] Integer-arithmetics, rational postconditions
- Next by thread: [Frama-c-discuss] Integer-arithmetics, rational postconditions
- Index(es):