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] "\at(var, Pre)" before a loop
- Subject: [Frama-c-discuss] "\at(var, Pre)" before a loop
- From: Thomas.PAREAUD at astrium.eads.net (PAREAUD, Thomas)
- Date: Thu, 2 Apr 2009 18:14:51 +0200
- In-reply-to: <1238683464.7692.346.camel@localhost>
- References: <A6FD74D4A6DA4247AD801E3943634063034C343A@sctex002.st-cloud.dassault-avion.fr><5030C1BB-9A4C-458A-B0CB-DA49C3EABB13@cea.fr><1238682330.7692.339.camel@localhost><3d13dcfc0904020731y7bfae28fo750d100e0fbccf40@mail.gmail.com> <1238683464.7692.346.camel@localhost>
Dear all, I have a qestion regarding the value of \at(var, Pre) before a loop. In the following example, is the value of \at(pString, Pre) in the loop invariant annotations before the loop has a constant value during all iterations and is equal to the value of the pString original argument? In other words, is this loop invariant correct? /*@ [...] */ void myFunction(char *pString, int nbBytes) { /*@ loop invariant i == pString - \at(pString, Pre); */ for (i=0 ; i<nbBytes ; i++) { if (*pString == '\0') { break; } pString++; } } Thanks in advance, -- Thomas P. Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Astrium decline toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique. This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. --------------------------------------------------------------------- Astrium SAS (393 341 516 RCS Paris) - Siege social: 6 rue Laurent Pichat, 75016 Paris, France
- Follow-Ups:
- [Frama-c-discuss] "\at(var, Pre)" before a loop
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] "\at(var, Pre)" before a loop
- References:
- [Frama-c-discuss] Frama-C: GUI's response time
- From: Dillon.Pariente at dassault-aviation.com (Pariente Dillon)
- [Frama-c-discuss] Frama-C: GUI's response time
- From: Pascal.Cuoq at cea.fr (Pascal Cuoq)
- [Frama-c-discuss] Frama-C: GUI's response time
- From: julien.signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Frama-C: GUI's response time
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Frama-C: GUI's response time
- From: julien.signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Frama-C: GUI's response time
- Prev by Date: [Frama-c-discuss] Frama-C: GUI's response time
- Next by Date: [Frama-c-discuss] "\at(var, Pre)" before a loop
- Previous by thread: [Frama-c-discuss] Frama-C: GUI's response time
- Next by thread: [Frama-c-discuss] "\at(var, Pre)" before a loop
- Index(es):