Contrained decoding with several references