use crate::libafl::observers::value::RefCellValueObserver;
use serde::{Deserialize, Serialize};
use std::cell::RefCell;
#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
pub struct InstructionCountMap {
pub max_instructions: u64,
pub current_instructions: u64,
pub increased: bool,
}
pub static mut INSTRUCTION_MAP: RefCell<InstructionCountMap> = RefCell::new(InstructionCountMap {
max_instructions: 0,
current_instructions: 0,
increased: false,
});
pub type InstructionCountObserver<'a> = RefCellValueObserver<'a, InstructionCountMap>;
pub const INSTRUCTION_COUNT_OBSERVER_NAME: &str = "InstructionCountObserver";