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] Issue with non terminating function
- Subject: [Frama-c-discuss] Issue with non terminating function
- From: guillaume.melquiond at inria.fr (Guillaume Melquiond)
- Date: Mon, 02 Mar 2009 19:03:04 +0100
- In-reply-to: <3d13dcfc0903020839r58d84331x4f0e789740310739@mail.gmail.com>
- References: <3d13dcfc0903020839r58d84331x4f0e789740310739@mail.gmail.com>
Le lundi 02 mars 2009 ? 17:39 +0100, David MENTRE a ?crit : > In above code, using Alt-Ergo 0.8, alt-ergo is unable to prove > property "assert rand_fd >= 0;". It seems obvious to me that the > exit() function never terminates. So, the only case that goes past the > "if (rand_fd < 0)" should be when "rand_fd >= 0", thus proving the > assert clause. This is apparently not the case. What have I missed? By the time function "main" is analyzed, the tools have forgotten the body of "exit"; they only have its (empty) specification. Try with the following specification, it should work: /*@ ensures \false; */ void exit(int err_code) ... Best regards, Guillaume
- Follow-Ups:
- [Frama-c-discuss] Issue with non terminating function
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Issue with non terminating function
- References:
- [Frama-c-discuss] Issue with non terminating function
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Issue with non terminating function
- Prev by Date: [Frama-c-discuss] Issue with non terminating function
- Next by Date: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Previous by thread: [Frama-c-discuss] Issue with non terminating function
- Next by thread: [Frama-c-discuss] Issue with non terminating function
- Index(es):