(self)
Translate solutions in type variables to solutions in SimTypes.
Translate solutions in type variables to solutions in SimTypes.
Translate solutions in type variables to solutions in SimTypes .
def _translate_to_simtypes(self):
        """
        Translate solutions in type variables to solutions in SimTypes.
        """

        simtypes_solution = { }
        translator = TypeTranslator(arch=self.project.arch)
        needs_backpatch = set()

        for tv, sol in self.solution.items():
            simtypes_solution[tv], has_nonexistent_ref = translator.tc2simtype(sol)
            if has_nonexistent_ref:
                needs_backpatch.add(tv)

        # back patch
        for tv in needs_backpatch:
            translator.backpatch(simtypes_solution[tv], simtypes_solution)

        self.simtypes_solution = simtypes_solution
        self.structs = translator.structs
def _translate_to_simtypes ( self ) : simtypes_solution = { } translator = TypeTranslator ( arch = self . project . arch ) needs_backpatch = set ( ) for tv , sol in self . solution . items ( ) : simtypes_solution [ tv ] , has_nonexistent_ref = translator . tc2simtype ( sol ) if has_nonexistent_ref : needs_backpatch . add ( tv ) # back patch for tv in needs_backpatch : translator . backpatch ( simtypes_solution [ tv ] , simtypes_solution ) self . simtypes_solution = simtypes_solution self . structs = translator . structs