My goal is to create a ghost field in a non-ghost structure. What I understand from the ACSL manual (v.1.17) is, that this is possible in ACSL:
If a structure has ghost fields, the sizeof of the structure is the same as the structure without ghost fields. Also, alignment of fields remains unchanged. (p. 82)
So my questions are:
- How does a valid ACSL annotation look like to create a ghost field in a non-ghost structure?
- Is it possible to programmatically create a ghost field as well?
I'm currently using Frama-C 25.0-beta (installed via opam).
Edit: added ACSL version