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] inline expansion of inline function
- Subject: [Frama-c-discuss] inline expansion of inline function
- From: junkil.park at cis.upenn.edu (Junkil (David) Park)
- Date: Mon, 30 Mar 2015 13:06:16 -0400
- In-reply-to: <7D7E35BC-9E90-42C8-9E0B-B3C491B5A1BE@trust-in-soft.com>
- References: <CAL+X0em9N9g6an1hZWn=pmoRoSHGPes+WAfyK6SS0mLZf8rUGQ@mail.gmail.com> <7D7E35BC-9E90-42C8-9E0B-B3C491B5A1BE@trust-in-soft.com>
Hi Benjamin, Thank you for your quick response. Can the WP plugin also do that? It is because I'd like to get proof obligations and discharge them with other provers. Thanks, Junkil On Mon, Mar 30, 2015 at 1:01 PM, Benjamin Monate < benjamin.monate at trust-in-soft.com> wrote: > Hi, > > frama-c -val -main verif > > proves your assertion automatically. > > HTH, > Benjamin Monate > CTO -- TrustInSoft > > > Le 30 mars 2015 ? 18:58, Junkil (David) Park <junkil.park at cis.upenn.edu> > a ?crit : > > > > Hi, > > > > Is there a way to verify the assertion in the example below without > specifying the function contract of the step function as "//@ ensures x == > 1;". I'd like to expand the function body in the place where it is invoked > in the function verif(), and let it be simulated there. Is there any > Frama-C option to do this job for me? > > > > int x; > > > > inline void step() > > { > > x = 1; > > } > > > > void verif() > > { > > step(); > > //@ assert x == 1; > > } > > > > Thanks, > > Junkil > _______________________________________________ > Frama-c-discuss mailing list > Frama-c-discuss at lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150330/ca911cca/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] inline expansion of inline function
- From: loic.correnson at cea.fr (Loïc Correnson)
- [Frama-c-discuss] inline expansion of inline function
- References:
- [Frama-c-discuss] inline expansion of inline function
- From: junkil.park at cis.upenn.edu (Junkil (David) Park)
- [Frama-c-discuss] inline expansion of inline function
- From: benjamin.monate at trust-in-soft.com (Benjamin Monate)
- [Frama-c-discuss] inline expansion of inline function
- Prev by Date: [Frama-c-discuss] inline expansion of inline function
- Next by Date: [Frama-c-discuss] recursive function int overflow
- Previous by thread: [Frama-c-discuss] inline expansion of inline function
- Next by thread: [Frama-c-discuss] inline expansion of inline function
- Index(es):