This invention relates to the field of intelligent code
rewriting and discloses a code
rewriting method for a domestic IT innovation platform based on a self-iterative model. The method operates in a code
rewriting system comprising a basic
database and a multi-link space. The multi-link space includes a rewriting space, a splitting space, and a
virtual space. The method includes acquiring the target code,
parsing the logical chain of the target code based on a neural symbolic self-iterative model, splitting the target code into sub-code segments, performing
error factor analysis on the sub-code segments, executing the rewriting in the rewriting space, running the rewritten code in the
virtual space, cross-validating the code execution results with the expected rewriting results, and controlling the asynchronous execution of code splitting, code rewriting, and virtual execution through an asynchronous
clock and state
signal mechanism to ensure that the execution results in the
virtual space are consistent with the expected results, and outputting the rewritten code.