change minmax CR0 to be a compared with b, not the result compared with 0