Generate statement identifiers