code wiki / (root) / nx_qc_svc_test.nx

nx_qc_svc_test.nx

buildroot/runtime/nx_qc_svc_test.nx

19414 B369 linesdepth 8pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic qc
docsdependenciesstructsconstsfunctions

about

nx_qc_svc_test.nx -- gate for the QC/analytical facade. The decisive test is T3: synthesise the doubly-charged peak a spiked BPC-157 sample really shows, screen it, and prove the facade identifies it as prohibited -- the exact peak a [M+H]+-only method reports as clean. Third facade, same base. expect_exit: 0 license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_service.nx nx_peptide.nx nx_supplement_screen.nx nx_qc_svc.nx nx_qc_svc_test.nx

imports: nx_syscalls.nxnx_service.nxnx_peptide.nxnx_supplement_screen.nxnx_qc_svc.nx

imported by: nobody (leaf or entry point)

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

main nx_json_new sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ mk_argv sys_mmap ↻ qc_dispatch nsvc_arg qc_describe nsvc_ok_open nj_putc nj_kv_int nj_key nj_putstr nj_putc ↻ nj_puti nj_putc ↻ sys_mmap ↻ nj_comma nj_putc ↻ nj_kv_str nj_key ↻ nj_putstr ↻ nj_kv_bool nj_key ↻ nj_puts nj_putc ↻

structs

none

consts

none

functions

12func t_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
13func t_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
15func j_has(j: *NxJson, needle: *u8) -> i64
called by 1: main
36func mk_argv(a0: *u8, a1: *u8, a2: *u8, a3: *u8) -> *i64
called by 1: main calls 1: sys_mmap
46func numstr(v: i64) -> *u8
called by 1: main calls 1: sys_mmap
59func main() -> i64