--- layout: fc_discuss_archives title: Message 116 from Frama-C-discuss on February 2012 ---
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