def half_g
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64add.bend as W64addimport Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU
238def half_g(+l: U32, +h: U32, +c: U32) -> WU.U64:
239 WU.U64{U32.add(U32.shr(l), U32.mul(U32.and(h, 1), c)), U32.shr(h)}