Suppose that you need to give a problem specification of some problem P and you have an implementation of P, in C.
I have 2 questions:
- Can you obtain the formal specification of the problem if you compute the invariant of the external for cycle?
- What is the relation between the specification and the C code invariant?