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] ACSL annotation for making function calls
- Subject: [Frama-c-discuss] ACSL annotation for making function calls
- From: Dillon.Pariente at dassault-aviation.com (Pariente Dillon)
- Date: Fri, 13 Dec 2013 08:09:01 +0000
- In-reply-to: <BAY169-W60BD5B8E8F4E1CDCB8140E97DF0@phx.gbl>
- References: <BAY169-W771217BCA36D7DA9FBA4D997DC0@phx.gbl>, <1A32855E5FA08141A8C56E7CF24D442C134A0EF2@SCTEX101.st-cloud.dassault-avion.fr> <BAY169-W60BD5B8E8F4E1CDCB8140E97DF0@phx.gbl>
Hi Xiao-Lei, > but? by right-click on the "y = bar1();" , I did not have the option > "insert callees contract (all calls)"? in context menu.? This feature is at least available in Frama-C v. Fluorine. > ?? WP indeed work something out by itself, for example, foo.c below, > there is no annotation for function foo(). The result from below shows > the pre-condition of callees are checked and proved. But the callee > will affect the post-condition of caller, what then? could be done to > specify the caller's post-conditions properly? As David mentioned before, it depends on what one wants to prove as post-condition for the caller (and thus the behavior of the caller function from the given callsite to the return control point(s)). In your example, (without any consideration to ACSL behavior feature or even assigns - side-effects - clauses) one might simply specify foo() as: /*@ ensures x==0 ==> \result==x; ensures x!=0 ==> \result==-x; */ int foo(int x){ ...} As Lo?c said, one may give a look to the Fraunhofer ACSL tutorial (which requires before to invest a bit in deductive verification theory, Hoare's logic principles, ...). Best, D.
- Follow-Ups:
- [Frama-c-discuss] ACSL annotation for making function calls
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] ACSL annotation for making function calls
- References:
- [Frama-c-discuss] ACSL annotation for making function calls
- From: x_cui at hotmail.com (Xiao-lei Cui)
- [Frama-c-discuss] ACSL annotation for making function calls
- From: Dillon.Pariente at dassault-aviation.com (Pariente Dillon)
- [Frama-c-discuss] ACSL annotation for making function calls
- From: x_cui at hotmail.com (Xiao-lei Cui)
- [Frama-c-discuss] ACSL annotation for making function calls
- Prev by Date: [Frama-c-discuss] ACSL annotation for making function calls
- Next by Date: [Frama-c-discuss] ACSL annotation for making function calls
- Previous by thread: [Frama-c-discuss] ACSL annotation for making function calls
- Next by thread: [Frama-c-discuss] ACSL annotation for making function calls
- Index(es):