code wiki / _hdl_build / nx_border_gate.nx
nx_border_gate.nx
buildroot/runtime/_hdl_build/nx_border_gate.nx
about
nx_border_gate.nx -- VERDICT gate for the box-border PAINT rung. Renders a bordered box + a table with
bordered cells, reads the BMP back, and asserts each border color is present AS AN OUTLINE (not a fill:
the red box border count must be a perimeter, far less than the box area) + dimensions + box count.
Proves the `border` shorthand (unblocked by the CSS multi-token fix) actually PAINTS edges. LIAR-KILL:
a never-used color (#00ff00) must be absent. Expectations MEASURED via nx_border_probe. 100% sovereign.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_render_html.nxnx_layout_block.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
| none |
functions
| 11 | func g_w(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} sys_write(1,s,k); return 0 } |
| 12 | func pn(v0: i64) -> i64 { var v: i64=v0; if v<0 { let m: *u8=sys_mmap(8); m[0]=45 as u8; sys_write(1,m,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 } |
| 13 | func u32le(d: *u8, p: i64) -> i64 { return (d[p]&0xff) + ((d[p+1]&0xff)<<8) + ((d[p+2]&0xff)<<16) + ((d[p+3]&0xff)<<24) } called by 1: main |
| 14 | func col_count(data: *u8, off: i64, w: i64, h: i64, R: i64, G: i64, B: i64) -> i64 called by 1: main |
| 32 | func chk(cond: i64, label: *u8, pass: *i64) -> i64 |
| 37 | func chkv(got: i64, want: i64, label: *u8, pass: *i64) -> i64 |
| 44 | func main() -> i64 |