add cmp_branch_inner()