xpile 0.1.615

Polyglot transpile workbench (Python/C/C++/Rust/Ruchy/Lean ↔ Rust/Ruchy/PTX/WGSL/SPIR-V) with provable contracts at every layer.
1
2
3
4
5
6
7
8
9
10
def m3(a: int, b: int, c: int) -> int:
    return max(a, b, c)


def n4(a: int, b: int, c: int, d: int) -> int:
    return min(a, b, c, d)


def fm(a: float, b: float, c: float) -> float:
    return max(a, b, c)