A network protocol code automatic generation method and system based on formal verification
By combining formal verification and large language models, network protocol code is automatically generated, which solves the shortcomings of existing code generation and verification technologies, realizes the automated generation and verification of high-quality code, reduces human intervention, and improves the correctness and efficiency of protocol implementation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- EAST CHINA NORMAL UNIV
- Filing Date
- 2026-02-02
- Publication Date
- 2026-06-02
AI Technical Summary
Existing technologies struggle to automatically generate high-quality network protocol code from natural language protocol specifications and ensure code correctness through formal verification, especially in complex network protocol development scenarios where human involvement is high and verification methods lack completeness.
A formal verification-based method for automatically generating network protocol code is adopted. Intermediate verification code is generated through semantic analysis and large language models, and formal verification tools are used for automatic verification, forming an iterative optimization process to ensure code correctness.
It achieves automated conversion from natural language protocol specifications to reliable code, significantly improving the correctness and engineering applicability of network protocol code, reducing the degree of human intervention, and shortening development time.
Smart Images

Figure CN122132021A_ABST