def _on_simgr_selected(self, *args, src=None, **kwargs) -> None:  # pylint: disable=unused-argument
        """Listener for when a new simgr is selected in the symexec view"""
        if src in ["clicked", "from above"]:
            # The "from above" event is emitted when you create a new simgr via right click menu in disasm view
            self.passthrough_counts = defaultdict(int)
            self.addr_to_active_states = defaultdict(list)
            self.returning_to_here_states = defaultdict(list)
            if not self.current_simgr.am_none:
                self.count_active_states(self.current_simgr)
            self._refresh_gui()
Listener for when a new simgr is selected in the symexec view
angrmanagement/plugins/execution_statistics_viewer/execution_statistics_viewer.py