def rename_register(llvmir):
 def repl(mat):
  return '%_dot_.{0}'.format(mat.group(1))
 return re_regname.sub(repl, llvmir)

def rename_register ( llvmir ) : def repl ( mat ) : return '%_dot_.{0}' . format ( mat . group ( 1 ) ) return re_regname . sub ( repl , llvmir )
hlc does not like variable with .