def rw_z
import bend-collections@1.0.0.0/src/math/f64.bend as F64import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@1.0.0.0/src/math/w64.bend as X
663def rw_z(+s: Bool, +x: Nat, +w: W.U64, z: Bool) -> F64:
664 match z:
665 case True{}:
666 zero(s)
667 case False{}:
668 rw_top(s, x, w, X.le(W.U64{0, 2147483648}, w))