Intermediate Representation Intermediate representation = internal representation Is language-independent and machine-independent High IR: captures high-level language constructs…