LL and LR parser generates different derivation, and as such it is deterministically non-deterministic, hence UB.