code wiki / _hdl_build / nx_research_query.nx

nx_research_query.nx

buildroot/runtime/_hdl_build/nx_research_query.nx

3353 B65 linesdepth 10pulls 12 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

about

nx_research_query.nx -- RESEARCH SURFACING over the sovereign Nishi library: at a juncture point, search our OWN no-link-rot corpus for a term and return the hits as REPRODUCIBLE, CID-cited knowledge chunks (the citation is a content CID, retrievable byte-identical forever -- a citation that cannot rot). This is the first rung of the research engine: nx_library (corpus) + this (find) -> nx_researcher/nx_scientist (reason + reproducibility-review) -> nx_race_referee (measured grade). Composes nx_library. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_library.nx nx_research_query.nx

imports: nx_syscalls.nxnx_library.nx

imported by: nobody (leaf or entry point)

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

main rq_w sys_write rq_search rq_w ↻ 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 ↻ lib_list cat_list ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 ssc_retire_handle cat_idx_load sys_mmap ↻ ss_hget sys_mmap ↻ ss_len ss_hlocate ss_r32 ss_idx_find

structs

none

consts

none

functions

9func rq_w(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 2: rq_searchmain calls 1: sys_write
10func rq_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: rq_find
11func rq_pfx(cid: *u8, k: i64) -> i64 { var i: i64=0; while i<k { if cid[i]==(0 as u8){break} let o: *u8=sys_mmap(1); o[0]=cid[i]; sys_write(1,o,1); i=i+1 } return 0 }
called by 1: rq_search calls 2: sys_mmapsys_write
14func rq_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: rq_search calls 1: rq_strlen
58func main() -> i64