# A Vada procedure's scalar `out` and `in out` parameters are its results, seen from Vibe
# (vibe-syntax 5.4): the call passes the inputs, and its targets take the results in order
import foreign as ops
from foreign import Twice


def main() -> None:
    value: int = 1
    value = ops.Increment(value)
    print(value)
    a, b = ops.Split(7)
    print(a, b)
    a2: int = Twice(4)
    print(a2)
    x: int = 1
    y: int = 2
    x, y = ops.Swap(x, y)
    print(x, y)
    y, x = ops.Swap(x, y)
    print(x, y)
    z: int = ops.Increment(x)
    print(z, x)
    c: int = ops.Twice(Value=5)
    print(c)
    a, b = ops.Split(N=11)
    print(a, b)


if __name__ == "__main__":
    main()
