c code transformation for OptimalString automatically generated