--- layout: fc_discuss_archives title: Message 113 from Frama-C-discuss on February 2012 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Translation of unary operators by FRAMA-C



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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120228/2cefe1ef/attachment.htm>