Generating Equivalent Representations of Code By A Self-Reflection Approach