def _generic_filter_execs(self, module):
        """Filters the specified dict of executables to include only those that are not referenced
        in a derived type or an interface.
        
        :arg module: the module whose executables should be filtered.
        """
        interface_execs = []
        for ikey in module.interfaces:
            interface_execs.extend(module.interfaces[ikey].procedures)

        return {k: module.executables[k] for k in module.executables if 
                ("{}.{}".format(module.name, k) not in interface_execs and 
                 not module.executables[k].is_type_target)}
Filters the specified dict of executables to include only those that are not referenced
        in a derived type or an interface.
        
        :arg module: the module whose executables should be filtered.