The invention discloses a minimization modification program repairing method, device and
system based on a large
language model and a storage medium. The method comprises the steps that a to-be-repaired program and
problem description are obtained; initializing the modification line number to be limited to be 1, and setting the temperature of the large
language model to be 0; determining all information of the current defect code; based on the set maximum modification line number, reasoning is conducted through a large
language model to generate a repair result; verifying the
correctness of the repair result by using the
test case; when the repair result is correct, the correct repair result is stored in a
database, and when the repair result is wrong, 1 is added to the number of modification lines, the large language model conducts reasoning again based on all information of the current defect code, the repair result is updated, and the
correctness of the updated repair result is verified through a
test case; and if the current modification line number is greater than the set maximum modification line number, directly ending the repair process. According to the method, the program repairing
correctness can be effectively improved.