Evolutionary programming of loop-based programs