2015-07-03 00:35:35 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
2015-06-15 21:55:13 +08:00
|
|
|
|
|
|
|
def _gcd(a, b):
|
|
|
|
if a < 0:
|
|
|
|
a = -a
|
2015-07-22 23:35:14 +08:00
|
|
|
while a:
|
2015-06-15 21:55:13 +08:00
|
|
|
c = a
|
|
|
|
a = b % a
|
|
|
|
b = c
|
|
|
|
return b
|
|
|
|
|
2015-06-15 22:16:44 +08:00
|
|
|
# CHECK-L: _gcd:(a:int(width='a), b:int(width='a))->int(width='a)(10:int(width='a), 25:int(width='a)):int(width='a)
|
2015-06-15 21:55:13 +08:00
|
|
|
_gcd(10, 25)
|