Polarised intermediate representation of lambda calculus with sums