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] a floating-point program example in WP
- Subject: [Frama-c-discuss] a floating-point program example in WP
- From: loic.correnson at cea.fr (Loïc Correnson)
- Date: Mon, 4 Sep 2017 11:02:04 +0200
- In-reply-to: <1D0C1BBD-02DD-4CC4-89FB-23CD4DCA6FE0@gmail.com>
- References: <1D0C1BBD-02DD-4CC4-89FB-23CD4DCA6FE0@gmail.com>
Hi, There is no definition (yetâ¦) for the ACSL \exp builtin in WP. You shall define a logical function instead, and use axioms and/or WP drivers (see documentation) to feed SMT solvers with suitable properties of exponential⦠L. > Le 31 juil. 2017 à 21:07, Junkil âDavidâ Park <juki14 at gmail.com> a écrit : > > Hi, > > I try to use WP to verify a floating-point program example excerpted from the IJCAR10 paper by Ali Ayad and Claude Marche, listed as follows: > > /*@ requires \abs(x) <= 1.0; > @ ensures \abs(\result - \exp(x)) <= 0x1p-4; */ > double my_exp(double x) { > /*@ assert \abs(0.9890365552 + 1.130258690*x + > @ 0.5540440796*x*x - \exp(x)) <= 0x0.FFFFp-4; */ > return 0.9890365552 + 1.130258690*x + 0.5540440796*x*x; > } > > However, WP says that: > [wp] warning: Builtin \exp(real) not defined. > > Is there a way to verify this example with WP? Do I have to use Jessie for this? > > Thanks, > Junkil > > _______________________________________________ > Frama-c-discuss mailing list > Frama-c-discuss at lists.gforge.inria.fr > https://lists.gforge.inria.fr/mailman/listinfo/frama-c-discuss
- Prev by Date: [Frama-c-discuss] Frama-C/WP and CVC4 (version 1.5)
- Next by Date: [Frama-c-discuss] Proving properties with land?
- Previous by thread: [Frama-c-discuss] Frama-C/WP and CVC4 (version 1.5)
- Next by thread: [Frama-c-discuss] Proving properties with land?
- Index(es):