Skip to content

struct not supported as logic argument

ID0001160: This issue was created automatically from Mantis Issue 1160. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001160 Frama-C Plug-in > jessie public 2012-04-16 2013-03-27
Reporter nmuller Assigned To cmarche Resolution won't fix
Priority normal Severity feature Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C GIT, precise the release id Target Version - Fixed in Version -

Description :

This annotation seems not to be accepted by jessie :

struct S { char *x; int *y; };

/@ logic set<char> footprint(struct S s) = \union(s.x, (char*)s.y + (0 .. sizeof(int) - 1)) ; */

Additional Information :

frama-c -jessie -jessie-atp alt-ergo footprint.c [kernel] preprocessing with "gcc -C -E -I. -dD footprint.c" [jessie] Starting Jessie translation footprint.c:6:[jessie] failure: Jessie plugin does not support struct or union as parameter to logic functions. Please use a pointer instead. [jessie] warning: Unsupported feature(s). Jessie plugin can not be used on your code.

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information