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] question about treatment of assigns clauses in WP (Neon)
- Subject: [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- Date: Tue, 22 Apr 2014 13:49:16 +0200
- In-reply-to: <CAOH62JikVJ=bXd1COPwp571wttUq3AtJ5StpC6s9a6JLa-m93g@mail.gmail.com>
- References: <A246AA9F-4050-4278-A52E-9E9CDC45AD7B@fokus.fraunhofer.de> <CA+yPOVhMvDsmkYo8VgqcZ7Zgp=h8yVBpwu2Gy90_TA7ZWhUaKw@mail.gmail.com> <CAOH62Jg-17POufDxq3Q8bwZ_zFqkY2h6BaaPrKTWFFW_+cxLdg@mail.gmail.com> <CA+yPOVg32eEO+F-WD9vDTmEK7jfj=PNCQLyJTOEoA+mrQj9shA@mail.gmail.com> <CAOH62JikVJ=bXd1COPwp571wttUq3AtJ5StpC6s9a6JLa-m93g@mail.gmail.com>
2014-04-22 10:47 GMT+02:00 Pascal Cuoq <pascal.cuoq at gmail.com>: > On Tue, Apr 22, 2014 at 10:30 AM, Virgile Prevosto > <virgile.prevosto at m4x.org> wrote: > /*@ ... > requires endptr == \null || \valid(endptr) ; > assigns *endptr \from nptr[0 ..] ; > ... > */ > double strtod(const char *restrict nptr, char **restrict endptr); > > /*@ ... > requires \valid_string(src) ; > requires \valid(dst + (0 .. max(n, \string_length(src))) ; > assigns dst[0 .. n-1] ; > ... > */ > char * strncpy(char *restrict dst, const char *restrict src, size_t n); > OK, so it seems that my example is not purely theoretical after all. I agree that under these conditions, emitting a warning that won't be triggered by perfectly legitimate specs too often will be tricky at best. Best regards, -- E tutto per oggi, a la prossima volta Virgile
- References:
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- Prev by Date: [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- Next by Date: [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- Previous by thread: [Frama-c-discuss] question about treatment of assigns clauses in WP (Neon)
- Next by thread: [Frama-c-discuss] ignoring status of type invariant
- Index(es):