As we can see, even in the case of a single inheritance, the LLVM IR that is generated can appear…