(self)
Heuristics to make types more natural and more readable.

        - structs where every element is of the same type will be converted to an array of that element type.
Heuristics to make types more natural and more readable.
Heuristics to make types more natural and more readable .
def _specialize(self):
        """
        Heuristics to make types more natural and more readable.

        - structs where every element is of the same type will be converted to an array of that element type.
        """

        for tv in list(self.solution.keys()):
            if self._must_struct and tv in self._must_struct:
                continue
            sol = self.solution[tv]
            specialized = self._specialize_struct(sol)
            if specialized is not None:
                self.solution[tv] = specialized
def _specialize ( self ) : for tv in list ( self . solution . keys ( ) ) : if self . _must_struct and tv in self . _must_struct : continue sol = self . solution [ tv ] specialized = self . _specialize_struct ( sol ) if specialized is not None : self . solution [ tv ] = specialized