zisk-core 1.1.0-alpha

Core types and proving primitives for the ZisK zkVM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{zisk_ops::OpStats, InstContext};

pub fn opc_profile(ctx: &mut InstContext) {
    ctx.c = 0;
    ctx.flag = false;
}

/// Unimplemented.  Profile can only be called from the system call context via InstContext.
/// This is provided just for completeness.
#[inline(always)]
pub fn op_profile(_a: u64, _b: u64) -> (u64, bool) {
    unimplemented!("op_profile() is not implemented");
}

#[inline(always)]
pub fn ops_profile(_ctx: &InstContext, _stats: &mut dyn OpStats) {}