I need to find the loop invariant of gcd (euclid algorithm) but i don't know from where to start or what to look
int f(int x, int y) {
while (true) {
int m = x % y;
if(m == 0) return y;
x = y;
y = m;
}
}