vyre-reference 0.4.1

Pure-Rust CPU reference interpreter for vyre IR — byte-identical oracle for backend conformance and small-data fallback
Documentation
//! Dual CPU references for `primitive.bitwise.xor`.

use crate::dual::DualReference;

/// Operation ID for the XOR primitive.
pub const OP_ID: &str = "primitive.bitwise.xor";

/// docs
pub mod reference_a;
/// docs
pub mod reference_b;

/// Dual-reference marker for the XOR primitive.
pub struct XorDualReference;

impl DualReference for XorDualReference {
    fn reference_a(input: &[u8]) -> Vec<u8> {
        reference_a::reference(input)
    }

    fn reference_b(input: &[u8]) -> Vec<u8> {
        reference_b::reference(input)
    }
}