Witch heuristic
Function lost in merge