code wiki / _hdl_build / nx_charjudge.nx

nx_charjudge.nx

buildroot/runtime/_hdl_build/nx_charjudge.nx

2723 B56 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_charjudge.nx -- CLI for the v2 character-image judge (core = nx_charjudge_lib, gate = nx_charjudge_gate). Decodes a PNG sovereignly, judges it, prints all axes as JSON. HEADLINE = MIN(composition, palette, contour, face) -- see the lib header for why each axis exists and which adversarial input it kills. Thresholds ride knowledge/charjudge.conf. license_tier: ORIGINAL nx_charjudge <img.png> <label>

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_png_decoder.nx nx_charjudge_lib.nx nx_charjudge.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_png_decoder.nxnx_charjudge_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cjc_hw sys_write nx_png_decode sys_mmap ↻ _png_check_signature _png_read_u32_be nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at _png_n_channels _png_bytes_per_pixel _png_n_channels ↻ _png_a7_expected _png_a7_col0 _png_a7_coli _png_a7_row0 _png_a7_rowi nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_bits_remainin _bs_peek_byte nx_bitstream_byte_align nx_bitstream_read_byte_ali nx_bitstream_byte_align ↻ _deflate_build_static_litl

structs

none

consts

none

functions

11func cjc_hw(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
12func cjc_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
14func main(argc: i64, argv: *i64) -> i64