def _update_const_dict_iter(self, unresolved):
        const_visitor = ConstantVisitor(self.const_dict)
        next_unresolved = OrderedDict()
        
        for name, param in unresolved.items():
            value = const_visitor.visit(param.value)
            
            if not check_constant(value):
                next_unresolved[name] = param
                continue

            if name not in self.const_dict:
                const_visitor.update_const(name, value)
    
        self.const_dict = const_visitor.get_const_dict()
    
        return next_unresolved
dataset/ETHPy150Open PyHDI/veriloggen/veriloggen/resolver/resolver.py/ModuleReplaceVisitor._update_const_dict_iter/original