Comment
Comment by eliteraspberrie
Here's an example in a getline implementation: https://github.com/eliteraspberries/ttyprompt/blob/master/ge...
Loop invariants are part of the ACSL specification language, and they can be verified automatically with Frama-C. http://frama-c.com/acsl.html