| CPC G06F 11/3636 (2013.01) [G06F 8/35 (2013.01); G06F 8/36 (2013.01); G06N 20/00 (2019.01)] | 26 Claims |

|
1. A method comprising:
forming a set of one or more prompts for a generative model to generate a set of one or more patches to fix a detected flaw in a program code body, wherein forming a prompt comprises,
arranging a code fragment corresponding to the detected flaw, contextual code for the code fragment, a flawed reference code, and a fixed reference code with delineating markers to form the prompt, wherein the generative model has been fine-tuned to constrain a generated response to a modification of the code fragment;
running the generative model on the set of one or more prompts; and
applying a first generated patch from the generative model to the program code body.
|