Software Salvaging Based on Conditions