code: def _get_var_name(self, register_name, mode):
          
          var_name = {
              "pre": self._translator.get_name_init(register_name),
              "post": self._translator.get_name_curr(register_name),
          }
  
          return var_name[mode]
docs: Get variable name for a register considering pre and post mode.