SPO600 Project Stage 3 - Identify clones of multiple functions and compare them
In the previous parts, I created a GCC pass to identify function clones and compare them. Now, I would like to modify the pass so that it could handle program that has multiple functions which are cloned. Moreover, I personally want to organize the static variables. Instead of using parallel vectors/multiples map to store the characteristics of the clone variant1, I would like to use a struct to store that of clone of variant 1 of every cloned function. Step 1. Revise the code to handle program with multiple functions cloned in x86 server Here is the revised pass. The pass and critical files are also uploaded to GitHub . /* Test Pass Jeff Yau, Seneca Polytechnic College Student ID :142466234 Modelled on tree-nrv.cc and tree-ctyler.cc by Chris Tyler, Seneca Polytechnic College, 2024-11 This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Sof...