loopy/symbolic.py
def register_subst_rule(self, original_name, args, body):
        """Returns a name (as a string) for a newly created substitution
        rule.
        """
        key = (args, body)
        reg_value = self.subst_rule_registry.get(key)

        if reg_value is None:
            new_name = self.make_unique_var_name(original_name)
            self.subst_rule_registry[key] = (new_name, original_name)
        else:
            new_name, _ = reg_value

        self.subst_rule_use_count[key] = self.subst_rule_use_count.get(key, 0) + 1
        return new_name
Returns a name (as a string) for a newly created substitution
        rule.
        
Returns a name (as a string) for a newly created substitution
rule.
Returns a name ( as a string ) for a newly created substitution rule .
def register_subst_rule(self, original_name, args, body):
        key = (args, body)
        reg_value = self.subst_rule_registry.get(key)
        if reg_value is None:
            new_name = self.make_unique_var_name(original_name)
            self.subst_rule_registry[key] = (new_name, original_name)
        else:
            new_name, _ = reg_value
        self.subst_rule_use_count[key] = self.subst_rule_use_count.get(key, 0) + 1
        return new_name
def register_subst_rule ( self , original_name , args , body ) : key = ( args , body ) reg_value = self . subst_rule_registry . get ( key ) if reg_value is None : new_name = self . make_unique_var_name ( original_name ) self . subst_rule_registry [ key ] = ( new_name , original_name ) else : new_name , _ = reg_value self . subst_rule_use_count [ key ] = self . subst_rule_use_count . get ( key , 0 ) + 1 return new_name
Returns a name (as a string) for a newly created substitution
rule.
Returns a name ( as a string ) for a newly created substitution rule .
"""Returns a name (as a string) for a newly created substitution
        rule.
        """
self
original_name
args
body