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] EVA postcondition propagation
- Subject: [Frama-c-discuss] EVA postcondition propagation
- From: Arthur.CLAVIERE at student.isae-supaero.fr (CLAVIERE Arthur)
- Date: Thu, 22 Jun 2017 15:52:20 +0200
When using a specification instead of a function, it seems that EVA propagates postconditions for double variables but not for float variables. With the following example, we obtain : x in [-1.79769313486e+308 .. 1.79769313486e+308] y in {1.} /*@  @ assigns \nothing;  @ ensures \result == 1.0f;  @*/ float foo(); /*@  @ assigns \nothing;  @ ensures \result == 1.0;  @*/ double foo_d(); int main(int argc, char *argv[]) {    float x = foo();    double y = foo_d();    return 0; } Regards, Arthur --   Arthur CLAVIÃRE Elève ingénieur SUPAERO - 2A ISAE SUPAERO - Institut Supérieur de l'Aéronautique et de l'Espace 10 avenue Edouard Belin - BP 54032 - 31055 TOULOUSE CEDEX 4 FRANCE - http://www.isae-supaero.fr Tel +33 5 61 33 80 80 - Fax (+33) 5 61 33 83 30 Plan d'accès/Access map -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20170622/00539c53/attachment.html>
- Prev by Date: [Frama-c-discuss] \is_finite and \is_NaN assert
- Next by Date: [Frama-c-discuss] two interesting posts on learning Frama-C WP
- Previous by thread: [Frama-c-discuss] \is_finite and \is_NaN assert
- Next by thread: [Frama-c-discuss] two interesting posts on learning Frama-C WP
- Index(es):