Method and system for mapping intermediate representation objects for facilitating incremental analysis

    公开(公告)号:US12112162B2

    公开(公告)日:2024-10-08

    申请号:US18146702

    申请日:2022-12-27

    IPC分类号: G06F9/44 G06F8/75

    CPC分类号: G06F8/75

    摘要: For performing incremental analysis, analysis tools may reuse analysis information computed earlier for intermediate representation (IR) objects that remain unchanged between versions of program. But identification numbers (IDs) of unchanged IR objects change over versions due to changes with each run of incremental analysis, thereby making it difficult to reuse analysis information as tools require IDs of unchanged IR objects from previous versions. Present disclosure provides method and system for mapping IR objects for facilitating incremental analysis. The system first extracts attributes associated with each IR object present in previous version to create data structure for storing IR objects. The system then determines unchanged lines between versions to create line number map. Thereafter, system uses line number map to create ID-based IR mapping between ID of each unchanged IR object present in each unchanged line in current version and ID of each IR object stored in data structure.