Patent ID: 11899566
Assignee: GOOGLE LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 18:
19. The method of claim 15, further comprising, subsequent to updating the policy network based on the reward and other rewards determined bad on other base source code, target source code pairs:
identifying an additional base source code that is programmed in the base programming language;
identifying an additional target source code that is in the target programming language and that is generated based on automatically translating the additional base source code;
processing the additional base source code, using the code-to-embedding machine learning model, to generate an additional base source code embedding in a latent space;
processing the additional target source code, using the code-to-embedding machine learning model, to generate an additional target source code embedding in the latent space;
processing, using the policy network, the additional base source code embedding and the additional target source code embedding, to generate an additional predicted test input,
executing the additional base source code using the predicted test input to generate an additional base output;
executing the additional target source code using the predicted test input to generate an additional target output; and
determining, based on comparing the additional base output and the additional target output, whether one or more branches of the additional target source code are a valid translation of the base source code.