rems-project / cerberus

Cerberus C semantics
https://www.cl.cam.ac.uk/~pes20/cerberus/
Other
51 stars 28 forks source link

CN: add ghost arguments #540

Open cassiatorczon opened 1 month ago

cassiatorczon commented 1 month ago

Motivating example: C string operations that require knowing the size of the available buffer (e.g., for concatenation by copying the second string into the unused space in the buffer of the first string). The buffer size isn't passed as an argument to the C function, but it's necessary for the spec and (if the function is being used safely) is known at the call site

dc-mak commented 1 month ago

Any motivating examples? Would be good for having test cases :-)