code: def clear(self):
          
          if not self._clear:
              self.lib._jit_clear_state(self.state)
              self._clear = True
docs: Clears state so it can be used for generating entirely new
          instructions.