A Function-Level Fault Injection and Machine Learning Framework for Reliability Analysis (IEEE Access, 2026)