code wiki / (root) / _u256_cmov_gate.nx

_u256_cmov_gate.nx

buildroot/runtime/_u256_cmov_gate.nx

1967 B48 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic u256
docsdependenciesstructsconstsfunctions

about

_u256_cmov_gate.nx -- KAT for u256_cmov (the SEC-CT-001 foundation primitive). flag=0 -> dst unchanged; flag=1 -> dst becomes src; src NEVER mutated; all 8 limbs covered. NEG control: a flag=0 then flag=1 on the SAME pair must yield two DIFFERENT dst states (teeth). Sovereign native lane: exit 0 = GREEN, N = first failed assertion.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_u256.nx _u256_cmov_gate.nx

imports: nx_syscalls.nxnx_u256.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main u256_alloc nx_scratch nx_scratch_init sys_mmap nx_scratch_oom sys_write sys_exit sys_mmap ↻ u256_copy u256_cmov u256_eq gw sys_write ↻ sys_openat_append sys_close

structs

none

consts

8const UCG_LOG: *u8 = "knowledge/status/speed_gate.log"

functions

10func gw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
12func main() -> i64