mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 10:54:02 +08:00
862ac1f90d
Other directories in lit-test will host various parts of the test harness.
14 lines
309 B
Python
14 lines
309 B
Python
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
|
|
|
def _gcd(a, b):
|
|
if a < 0:
|
|
a = -a
|
|
while a:
|
|
c = a
|
|
a = b % a
|
|
b = c
|
|
return b
|
|
|
|
# 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)
|
|
_gcd(10, 25)
|