A Practical Approach to Automated Software Correctness Enhancement