'Perform any intermediate representation rewrites after type
inference.'

def stage_nopython_rewrites(self):

    assert self.func_ir
    assert isinstance(getattr(self, 'typemap', None), dict)
    assert isinstance(getattr(self, 'calltypes', None), dict)
    with self.fallback_context(('Internal    error    in    post-inference    rewriting    pass    encountered    during    compilation    of    function    "%s"' % (self.func_id.func_name,))):
        rewrites.rewrite_registry.apply('after-inference', self, self.func_ir)
