use crate::spec::types::ParityFailure;
use std::fs;
use std::io::{self, Write};
use std::path::PathBuf;
use std::sync::atomic::{AtomicU64, Ordering};
use std::time::{SystemTime, UNIX_EPOCH};
#[cfg(loom)]
use loom::sync::Mutex as LoomMutex;
use super::hex::*;
/// Load regressions for a specific version of an operation.
///
/// Returns regressions tagged with the version they were recorded under.
#[inline]
pub fn load_versioned(op_id: &str, version: u32) -> Vec<(String, Vec<u8>)> {
let dir = versioned_regression_dir(op_id, version);
load_from_dir(&dir, &format!("v{version}"))
}