generator: update setDefaultID function for cpp imll