HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/mypyc/test-data/irbuild-math.test
[case testMathLiteralsAreInlined]
import math
from math import pi, e, tau, inf, nan

def f1() -> float:
    return pi

def f2() -> float:
    return math.pi

def f3() -> float:
    return math.e

def f4() -> float:
    return math.e

def f5() -> float:
    return math.tau

def f6() -> float:
    return math.tau

def f7() -> float:
    return math.inf
def f8() -> float:
    return math.inf

def f9() -> float:
    return math.nan

def f10() -> float:
    return math.nan

[out]
def f1():
L0:
    return 3.141592653589793
def f2():
L0:
    return 3.141592653589793
def f3():
L0:
    return 2.718281828459045
def f4():
L0:
    return 2.718281828459045
def f5():
L0:
    return 6.283185307179586
def f6():
L0:
    return 6.283185307179586
def f7():
L0:
    return inf
def f8():
L0:
    return inf
def f9():
L0:
    return nan
def f10():
L0:
    return nan