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

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  

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