A machine learning guided rewriting approach for asp logic programs