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] Translation of unary operators by FRAMA-C
- Subject: [Frama-c-discuss] Translation of unary operators by FRAMA-C
- From: loic.correnson at cea.fr (Loïc Correnson)
- Date: Wed, 29 Feb 2012 13:47:35 +0100
- In-reply-to: <CAEm-Qw0q1ssEe_9KUjY_kJRG9GYk-BBeCX-jvknXz7xL8YfB-A@mail.gmail.com>
- References: <CAEm-Qw0q1ssEe_9KUjY_kJRG9GYk-BBeCX-jvknXz7xL8YfB-A@mail.gmail.com>
Hi, Thanks for the bug report. However, there is no specification (yet) for bitwise operators in WP, since SMT solvers are generally in troubles to reason about them. You may add ACSL axioms of your own if you want to specify additional properties. Thanks, L. Le 28 f?vr. 12 ? 14:10, mohamed belasri a ?crit : > Hi, I'm a new member in this forum and I hope to find answers to my > problems and to be, in the same time, useful for the other members. > So, my question is about the plug-in WP; I tried to prove the > following assertion : > > int main() > { > char a = 5; > char b = ~a; > > //@ assert b == ~a; > > return 0; > } > but frama-c try to prove that : 5 = bnot(5) which is false of > course. It seems that frama-c has some problems to translate the > unary operator "~", so it replaces "b" by "a" and try to verify that > a=~a. So, if anyone know why frama-c doesn't translate "~"... > > Regards. > > _______________________________________________ > Frama-c-discuss mailing list > Frama-c-discuss at lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss
- References:
- [Frama-c-discuss] Translation of unary operators by FRAMA-C
- From: belasri89 at gmail.com (mohamed belasri)
- [Frama-c-discuss] Translation of unary operators by FRAMA-C
- Prev by Date: [Frama-c-discuss] Accessing results of the value analysis for arrays/structs
- Previous by thread: [Frama-c-discuss] Translation of unary operators by FRAMA-C
- Index(es):