(self, variable: SimVariable, unified: SimVariable)
Set the unified variable for a given SSA variable.

        :param variable:    The SSA variable.
        :param unified:     The unified variable.
        :return:            None
Set the unified variable for a given SSA variable.
Set the unified variable for a given SSA variable .
def set_unified_variable(self, variable: SimVariable, unified: SimVariable) -> None:
        """
        Set the unified variable for a given SSA variable.

        :param variable:    The SSA variable.
        :param unified:     The unified variable.
        :return:            None
        """
        old_unified = self._variables_to_unified_variables.get(variable, None)
        if old_unified is not None and old_unified is not unified:
            self._unified_variables.discard(old_unified)
            if old_unified.name is not None and not unified.renamed:
                unified.name = old_unified.name
                unified.renamed = old_unified.renamed

        self._unified_variables.add(unified)
        self._variables_to_unified_variables[variable] = unified
def set_unified_variable ( self , variable : SimVariable , unified : SimVariable ) -> None : old_unified = self . _variables_to_unified_variables . get ( variable , None ) if old_unified is not None and old_unified is not unified : self . _unified_variables . discard ( old_unified ) if old_unified . name is not None and not unified . renamed : unified . name = old_unified . name unified . renamed = old_unified . renamed self . _unified_variables . add ( unified ) self . _variables_to_unified_variables [ variable ] = unified