code wiki / _hdl_build / nx_ciq_field_imagegen.nx
nx_ciq_field_imagegen.nx
buildroot/runtime/_hdl_build/nx_ciq_field_imagegen.nx
about
nx_ciq_field_imagegen.nx -- CIQ field INGEST for the IMAGE-GENERATION market (breadth: proves the engine
generalizes "against all the market"). Writes the entity x capability matrix into the SOVEREIGN seg_store
(market namespace "imagegen") + read-appends "imagegen" to the markets registry. NO TSV. Cells are HONEST:
Nishi's image-gen is a REAL product (local ggml fork = elder_sdcpp, beauty.db 548k quality evals, rights
spine) -- strong on LOCAL / no-surveillance / quality-eval / censorship-free, but HONESTLY level-1 (not the
quality king) on raw photoreal vs Midjourney/Flux, and only partial sovereignty (a ggml fork, not a
from-scratch sovereign stack like the .nx organs). Incumbent levels = publicly-established facts
(ev="public"); Nishi level-2 cells cite the real product organ; unknown -> U. The engine will place Nishi
DIFFERENTLY here than in Connect -- the honest point of breadth (Nishi is not always #1). license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_canon_cid.nxnx_seg_store.nxnx_uxf_decode.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const FI_MAGIC_2048: i64 = 2048 |
| 15 | const FI_MAGIC_8192: i64 = 8192 |
| 16 | const FI_MAGIC_1024: i64 = 1024 |
| 18 | const FI_STORE: *u8 = "knowledge/store/ciq-" |
functions
| 20 | func fw(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 } |
| 21 | func fi_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 } called by 1: main |
| 22 | func fi_copy(src: *u8, dst: *u8) -> i64 { var i: i64=0; while src[i]!=(0 as u8){ dst[i]=src[i]; i=i+1 } dst[i]=0 as u8; return i } called by 1: main |
| 23 | func fi_contains(hay: *u8, needle: *u8) -> i64 { var i: i64=0; while hay[i]!=(0 as u8){ var j: i64=0; var ok: i64=1; while needle[j]!=(0 as u8){ if hay[i+j]!=needle[j]{ ok=0; j=0; while needle[j]!=(0 as u8){j=j+1} } else { j=j+1 } } if ok==1 { return 1 } i=i+1 } return 0 } called by 1: main |
| 25 | func fi_row(w: *i64, caps: *u8, coff: *i64, nm: *u8, axs: *u8, wts: *u8, cells: *u8) -> i64 |
| 46 | func main() -> i64 |