pass by reference
fix smart-merge to count reassigned players properly
scan-build instructions