DEBSOURCES
Skip Quicknav
sources / why3 / 1.8.2-3 / examples / python / pgcd.py
123456789101112
def pgcd(a, b): #@ requires a > 0 and b > 0 while a != b: #@ invariant a > 0 and b > 0 #@ variant a + b if a < b: b -= a else: a -= b return a