A processor implemented method, comprising: receiving, by an intermediate representation mapping system,IRMS, via one or more hardware processors, a current version and a previous version of a computer program, and an intermediate representation,IR, associated with each of the current version and the previous version of the computer program, wherein the IR associated with each of the current version and the previous version comprises one or more IR objects; extracting, by the IRMS via the one or more hardware processors, one or more attributes associated with each IR object of the one or more IR objects present in the previous version of the computer program, the one or more attributes comprising a line number, an object type, an identification number, ID, and a name; creating, by the IRMS via the one or more hardware processors, a data structure for storing the one or more IR objects present in the previous version of the computer program, wherein each IR object is stored in the data structure based on the one or more attributes extracted for a respective IR object; comparing, by the IRMS via the one or more hardware processors, the current version and the previous version of the computer program using a data comparison tool to determine one or more lines that are unchanged between the current version and the previous version of the computer program; creating, by the IRMS via the one or more hardware processors, a line number map based on the one or more unchanged lines, the line number map comprising a line number-based mapping between each unchanged line in the current version and a respective unchanged line in the previous version of the computer program; creating, by the IRMS via the one or more hardware processors, an ID-based IR mapping between the ID of each unchanged IR object of one or more unchanged IR objects present in each unchanged line in the current version and the ID of each IR object stored in the data structure using the created line number map, wherein each unchanged IR object of the one or more unchanged IR objects comprises the one or more attributes; and using, by the IRMS via the one or more hardware processors, the ID-based IR mapping for performing incremental analysis of the computer program. receiving, by an intermediate representation mapping system,IRMS, via one or more hardware processors, a current version and a previous version of a computer program, and an intermediate representation,IR, associated with each of the current version and the previous version of the computer program, wherein the IR associated with each of the current version and the previous version comprises one or more IR objects; extracting, by the IRMS via the one or more hardware processors, one or more attributes associated with each IR object of the one or more IR objects present in the previous version of the computer program, the one or more attributes comprising a line number, an object type, an identification number, ID, and a name; creating, by the IRMS via the one or more hardware processors, a data structure for storing the one or more IR objects present in the previous version of the computer program, wherein each IR object is stored in the data structure based on the one or more attributes extracted for a respective IR object; comparing, by the IRMS via the one or more hardware processors, the current version and the previous version of the computer program using a data comparison tool to determine one or more lines that are unchanged between the current version and the previous version of the computer program; creating, by the IRMS via the one or more hardware processors, a line number map based on the one or more unchanged lines, the line number map comprising a line number-based mapping between each unchanged line in the current version and a respective unchanged line in the previous version of the computer program; creating, by the IRMS via the one or more hardware processors, an ID-based IR mapping between the ID of each unchanged IR object of one or more unchanged IR objects present in each unchanged line in the current version and the ID of each IR object stored in the data structure using the created line number map, wherein each unchanged IR object of the one or more unchanged IR objects comprises the one or more attributes; and using, by the IRMS via the one or more hardware processors, the ID-based IR mapping for performing incremental analysis of the computer program.