[WIP] cross-aware clamp_in/clamp_out