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] [wp] unproved goals for strlen() function
- Subject: [Frama-c-discuss] [wp] unproved goals for strlen() function
- From: kahl at cas.mcmaster.ca (Wolfram Kahl)
- Date: Sat, 11 Jan 2014 10:14:11 -0500
- In-reply-to: <BAY169-W52B876ABED797CD32641A097B20@phx.gbl>
- References: <CAA1cxuhydGEd8bf0rb=JXUo2Xr5RmTqzoumwWXb=veO2ZLOjZw@mail.gmail.com> <BAY169-W52B876ABED797CD32641A097B20@phx.gbl>
> > /*@ > loop assigns s; > */ > while (*s++ !=((signed char) '\0')) > { > ; > } > This will discharge the following proof obligation: > [wp] [Z3] Goal typed_strlen_loop_assign_part3. > > But the post condition is still left unproved. You cannot expect very much without a loop invariant --- the only thing known after the loop right now is probably *(s - 1) == '\0' (I haven't done C in a long time) if I remember correctly that the ++ increments after the use in the expression... Your postcondition probably does not follow from that alone... Wolfram
- Follow-Ups:
- [Frama-c-discuss] [wp] unproved goals for strlen() function
- From: dmentre at linux-france.org (David MENTRÉ)
- [Frama-c-discuss] [wp] unproved goals for strlen() function
- References:
- [Frama-c-discuss] [wp] unproved goals for strlen() function
- From: abiao.yang at gmail.com (David Yang)
- [Frama-c-discuss] [wp] unproved goals for strlen() function
- From: x_cui at hotmail.com (Xiao-lei Cui)
- [Frama-c-discuss] [wp] unproved goals for strlen() function
- Prev by Date: [Frama-c-discuss] some questions about the "-lib-entry -main " option while value analysis a partial application
- Next by Date: [Frama-c-discuss] some questions about the "-lib-entry -main " option while value analysis a partial application
- Previous by thread: [Frama-c-discuss] [wp] unproved goals for strlen() function
- Next by thread: [Frama-c-discuss] [wp] unproved goals for strlen() function
- Index(es):