pub fn set_divergence_handler(&mut self, handler: DivergenceHandler) {
        if let Some(shadow) = self.shadow.get_mut() {
            shadow.divergence_handler = handler;
        }
    }
Sets the divergence handler to be used by this VM.
core/lib/vm_interface/src/utils/shadow.rs