code: def copy(self):
          
  
          if self._global_condition is not None:
              raise SimStateError("global condition was not cleared before state.copy().")
  
          c_plugins = self._copy_plugins()
          state = SimState(project=self.project, arch=self.arch, plugins=c_plugins, options=self.options.copy(),
                           mode=self.mode, os_name=self.os_name)
  
          if self._is_java_jni_project:
              state.ip_is_soot_addr = self.ip_is_soot_addr
  
          state.uninitialized_access_handler = self.uninitialized_access_handler
          state._special_memory_filler = self._special_memory_filler
          state.ip_constraints = self.ip_constraints
  
          return state
docs: Returns a copy of the state.