sync split rule with C code.