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] Using Frama-C as Caduceus
- Subject: [Frama-c-discuss] Using Frama-C as Caduceus
- From: diman.soap at gmail.com (Дмитрий Ручкин)
- Date: Sun, 29 Nov 2009 11:28:32 +0300
- In-reply-to: <4B0BF680.5020900@inria.fr>
- References: <d3b498150911211341h4afa1ac5n310508168cc9ba68@mail.gmail.com> <4B0AAA94.5020201@inria.fr> <4B0AAB70.1000507@inria.fr> <d3b498150911230854pb125813t2896df5352d77588@mail.gmail.com> <4B0BF680.5020900@inria.fr>
Wow, thanks! It really seems to work. But I'm not sure I got the idea in its entirety. Do you mean that Jessie restricts "a" and "b" to be in the same block just when it comes across any order relation between these pointers? So, for example, if I want these pointers to be in the same block, but don't want to specify any restriction (so that pointers can overlap and all that), I'll just need to write something like "requires (a == b) || (a < b) || (a > b)", right? - Dmitry 2009/11/24 Claude Marche <Claude.Marche at inria.fr> > > The reason is that swap is first interpreted as if a and b were in > different block, whereas you call it on pointers to the same block. > A work around is to add a precondition that restrict a and b to be in > the same block, and anyway you need something to specify that they do > not overlap, e.g > > requires (a==b) || (a + size <= b) || (b + size <= a); > > > - Claude -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20091129/a33a6fcd/attachment.htm
- Follow-Ups:
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Using Frama-C as Caduceus
- References:
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: diman.soap at gmail.com (Дмитрий Ручкин)
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: diman.soap at gmail.com (Дмитрий Ручкин)
- [Frama-c-discuss] Using Frama-C as Caduceus
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Using Frama-C as Caduceus
- Prev by Date: [Frama-c-discuss] Frama-C Examples
- Next by Date: [Frama-c-discuss] Using Frama-C as Caduceus
- Previous by thread: [Frama-c-discuss] Using Frama-C as Caduceus
- Next by thread: [Frama-c-discuss] Using Frama-C as Caduceus
- Index(es):