abs := fn(x: int): int { mask := x >> 31 return (x ^ mask) - mask } min := fn(a: int, b: int): int { return b + (a - b & a - b >> 31) }