Skip to content
Snippets Groups Projects
Commit fce480b1 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

Merge branch 'fix/acsl-cast--to-unsigned-short-int' into 'master'

[ACSL] fixes casts to unsigned short int

See merge request frama-c/frama-c!2575
parents d62b2ff6 88668f6b
No related branches found
No related tags found
No related merge requests found
......@@ -812,6 +812,9 @@ type_spec:
| SHORT { LTint IShort } /** [short] */
| SIGNED SHORT { LTint IShort } /** [short] */
| UNSIGNED SHORT { LTint IUShort } /** [unsigned short] */
| SHORT INT { LTint IShort } /** [short] */
| SIGNED SHORT INT { LTint IShort } /** [short] */
| UNSIGNED SHORT INT { LTint IUShort } /** [unsigned short] */
| LONG { LTint ILong } /** [long] */
| SIGNED LONG { LTint ILong } /** [long] */
| UNSIGNED LONG { LTint IULong } /** [unsigned long] */
......
unsigned short int toto;
/*@ensures toto==(unsigned short int)param;*/
int F(int param){
return 0;
}
[kernel] Parsing tests/spec/cast_int.i (no preprocessing)
/* Generated by Frama-C */
unsigned short toto;
/*@ ensures toto ≡ (unsigned short)\old(param); */
int F(int param)
{
int __retres;
__retres = 0;
return __retres;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment