| 123 | } |
| 124 | } |
| 125 | |
| 126 | /// Read and reset the thread-local op counters (call at each constant boundary). |
| 127 | pub fn take_op_counts() -> OpCounts { |
| 128 | #[cfg(not(target_os = "zkvm"))] |
| 129 | { |
| 130 | OpCounts { |
| 131 | subst_nodes: SUBST_NODES.with(|c| c.replace(0)), |
| 132 | whnf_calls: WHNF_CALLS.with(|c| c.replace(0)), |
| 133 | def_eq_calls: DEF_EQ_CALLS.with(|c| c.replace(0)), |
| 134 | nat_arith: NAT_ARITH.with(|c| c.replace(0)), |
| 135 | intern_nodes: INTERN_NODES.with(|c| c.replace(0)), |
| 136 | } |
| 137 | } |
| 138 | #[cfg(target_os = "zkvm")] |
| 139 | OpCounts::default() |
| 140 | } |
| 141 |
nothing calls this directly
no outgoing calls
no test coverage detected