Unified and Flexible SRGM Framework Incorporating Two Types of Imperfect Debugging