commit-reach: make can_all_from_reach... linear