Generating functional error-resistant code precision