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] Value Analysis and the modulo operator
- Subject: [Frama-c-discuss] Value Analysis and the modulo operator
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- Date: Thu, 26 Jul 2012 17:19:44 +0200
- In-reply-to: <1A32855E5FA08141A8C56E7CF24D442C0872DD00@SCTEX101.st-cloud.dassault-avion.fr>
- References: <CAK2NOcUZisRrJ2jpehYhkRP9Z+UsPxo5OnA5HdeFHwxJ5y05PA@mail.gmail.com> <1A32855E5FA08141A8C56E7CF24D442C0872DD00@SCTEX101.st-cloud.dassault-avion.fr>
Le jeudi 26 juillet 2012, Pariente Dillon < Dillon.Pariente at dassault-aviation.com> a ?crit : > > > > > Maybe the explanation is that the relation between y==27 and b==1 is not stored by the analyzer after the if/else instr and the call to f in the main function, but only the intervals are kept (the domain of VA is interval abstract domain). > Hello, This explanation is completely correct, but you should be able to prove the original assertion with value, by adding another one before the if: //@ assert y < 27 ?? y == 27 ?? y > 27; Detailed explanation is hidden somewhere on the blog, but it boils down to the fact that y!=27 is not representable as an interval: you have to explicitely split the else branch in two parts (less and greater) which is done by the assert -- E tutto per oggi, a la prossima volta Virgile -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120726/2fc59262/attachment.html>
- References:
- [Frama-c-discuss] Value Analysis and the modulo operator
- From: arenis at informatik.uni-freiburg.de (Sergio Feo)
- [Frama-c-discuss] Value Analysis and the modulo operator
- From: Dillon.Pariente at dassault-aviation.com (Pariente Dillon)
- [Frama-c-discuss] Value Analysis and the modulo operator
- Prev by Date: [Frama-c-discuss] Dynamic Plugin Enabled in Linux but Failed in Windows
- Next by Date: [Frama-c-discuss] Jessie plug-in
- Previous by thread: [Frama-c-discuss] Value Analysis and the modulo operator
- Next by thread: [Frama-c-discuss] Jessie plug-in
- Index(es):