The invention belongs to but is not limited to the technical field of
software development, and particularly relates to a multi-round reasoning and feedback optimization method and
system for
industrial software codes, and the method comprises the steps: S1, vector code
library establishment: the establishment of a vector code
library is composed of three parts of feedback establishment, vector
database establishment and format summarization; s2, code reasoning optimization: the code reasoning optimization mainly comprises four aspects:
control flow graph analysis, multi-query generation and reciprocal
ranking fusion retrieval, reasoning generation subtask and code chain submodule generation, and code combination completion; and S3, feedback optimization: the feedback optimization is composed of
score feedback optimization and log feedback optimization. According to the method, an automatic
verification mechanism is introduced, logic consistency check and performance evaluation are carried out on the generated and optimized codes, and the
correctness and execution efficiency of the codes are ensured. The
verification mechanism can find and correct errors in real time in each stage of generation, so that the cost of manual
verification is reduced, and the development efficiency is improved.