acsl-language / acsl

Sources for the ANSI/ISO C Specification Language manual
Other
49 stars 8 forks source link

String literal in ACSL #1

Open vprevosto opened 7 years ago

vprevosto commented 7 years ago

What is the semantics of a string literal in an ACSL annotation?

Proposal: it is equivalent to declare a new ghost variable: assert P("foo") would then become assert P(ghost_foo);, with a global declaration /*@ ghost const char ghost_foo[4] = "foo"; */ inserted before.