Prevents duplicate locations for same number of instructions and nodes.