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

[Frama-c-discuss] using mathematical modulo in acsl specification



Hello,

Finally I've defined my own operator and axioms in an axiomatic block in ACSL.
There was a mistake in my first message, math_mod and % are equal if a>=0 and b>0.

Regards,

St?phane

-----Message d'origine-----
De?: frama-c-discuss-bounces at lists.gforge.inria.fr [mailto:frama-c-discuss-bounces at lists.gforge.inria.fr] De la part de DUPRAT Stephane
Envoy??: jeudi 29 novembre 2012 22:51
??: Frama-c-discuss at lists.gforge.inria.fr
Objet?: [Frama-c-discuss] using mathematical modulo in acsl specification


Hello,

As mentioned in ACSL Doc for Oxygen ?2.2.4, the % operator of ACSL is mapped to the modulo semantic of the ANSI_C that differs from the mathematical modulo.
The modulo operation originating from source code and acsl are both traduced by computer_mod in proof obligations.

First question is how to use mathematical modulo in ACSL specification if it is possible ?

Secondly, is there a gateway between computer_mod and the mathematical modulo (for a%b if a>0 and b<>0) that could allow to use the % operator for modulo of Alt-Ergo in po generated !

Thanks in advance,

St?phane

________________________________


Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

_______________________________________________
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