diff --git a/core/engine/src/context/mod.rs b/core/engine/src/context/mod.rs index dd27ebf8f63..2ebc23bd37b 100644 --- a/core/engine/src/context/mod.rs +++ b/core/engine/src/context/mod.rs @@ -527,6 +527,13 @@ impl Context { Ok(self.enter_realm(old_realm)) } + /// Get the remaining instruction count + #[cfg(feature = "fuzz")] + #[inline] + pub const fn instructions_remaining(&self) -> usize { + self.instructions_remaining + } + /// Get the [`RootShape`]. #[inline] #[must_use]