(self, st, translated)
:param sim_type.SimType st:
        :param dict translated:
        :return:
def backpatch(self, st, translated):
        """

        :param sim_type.SimType st:
        :param dict translated:
        :return:
        """

        if isinstance(st, sim_type.SimTypePointer):
            self.backpatch(st.pts_to, translated)

        elif isinstance(st, sim_type.SimStruct):
            fields_patch = { }
            for offset, fld in st.fields.items():
                if isinstance(fld, SimTypeTempRef) and fld.typevar in translated:
                    fields_patch[offset] = translated[fld.typevar]
                st.fields.update(fields_patch)
def backpatch ( self , st , translated ) : if isinstance ( st , sim_type . SimTypePointer ) : self . backpatch ( st . pts_to , translated ) elif isinstance ( st , sim_type . SimStruct ) : fields_patch = { } for offset , fld in st . fields . items ( ) : if isinstance ( fld , SimTypeTempRef ) and fld . typevar in translated : fields_patch [ offset ] = translated [ fld . typevar ] st . fields . update ( fields_patch )