Analysis of the Impact Scope of Code Changes Based on DAST and GCN
Identifying the impact scope of code changes in a program is crucial for ensuring the correctness,secu-rity,and reliability of software.Code change impact analysis primarily focuses on recognizing the affected parts based on inter-code dependencies,with less involvement in the weight analysis of the affected sections.This pa-per proposes a method for analyzing the impact scope of code changes based on DAST and GCN.Firstly,this pa-per expands the content of DAST to record relevant information related to code changes.Then the code dependen-cy analysis types and methods based on DAST are proposed.After constructing the DAST node weight matrix,the impact scope of code changes based on GCN is used to determine the impact range of code changes.Experimental results show that the foundation for code dependency analysis can be established by expanding the token informa-tion in DAST.After combining the DAST node weight matrix with attention mechanisms,better results in code change impact analysis can be yielded using a 2-layer GCN.