code wiki / _hdl_build / nx_real_page_gate.nx

nx_real_page_gate.nx

buildroot/runtime/_hdl_build/nx_real_page_gate.nx

10404 B171 linesdepth 8pulls 28 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_real_page_gate.nx -- VERDICT gate that LOCKS IN the real-page (Wikipedia) render against regression. Runs the FULL render pipeline on a stable 420KB Wikipedia snapshot (knowledge/fixtures/wiki_tbl_snapshot .html) -- the same buffer construction _rh_to_fb uses (HTML + page inline <style> @media-filtered + UA sheet) -- and asserts the structural wins this session earned: - pipeline renders a real page (box count > 1000, no crash) - the <h1> title text "Tim Berners-Lee" is present (title renders) - the .infobox table is NOT collapsed (h > 200) -- the td/th table-cell containment fix - the "vector-dropdown" chrome is DROPPED (no such class box) -- layout-level chrome drop - the display:none short-description "English computer scientist" is DROPPED (no such text) LIAR-KILL: asserts a guaranteed-absent token is reported absent (the checker has teeth). 100% sovereign. license_tier: ORIGINAL

dependencies 15 imports · 0 importers

nx_syscalls.nx nx_css_tokenize.nx nx_css_parse.nx nx_css_apply.nx nx_css_color_decode.nx nx_css_dimension_to_px.nx nx_css_selector_match.nx nx_html_tokenizer.nx nx_html_entities.nx nx_dom_query.nx nx_real_page_gate.nx

diagram shows first 10 each side; +5 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_parse.nxnx_css_apply.nxnx_css_color_decode.nxnx_css_dimension_to_px.nxnx_css_selector_match.nxnx_html_tokenizer.nxnx_html_entities.nxnx_dom_query.nxnx_layout_box.nxnx_layout_default_display.nxnx_layout_from_dom.nxnx_layout_block.nxnx_render_html.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 g_w sys_write sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close chk g_w ↻ pn sys_mmap ↻ sys_write ↻ sys_exit rh_extract_styles sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc nx_html_is_raw_text_tag _lc ↻ nx_html_consume_raw_text _lc ↻ _is_ws _lfd_name_eq _lfd_lc _rh_copy_css rh_filter_media sys_mmap ↻ rh_find rh_media_matches rh_find ↻ rh_num_after rh_digit cx_expand

structs

none

consts

none

functions

28func 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 }
called by 2: chkmain calls 1: sys_write
29func 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 }
called by 1: main calls 2: sys_mmapsys_write
30func chk(cond: i64, label: *u8, pass: *i64) -> i64
called by 1: main calls 1: g_w
36func has_sub(src: *u8, a: i64, alen: i64, needle: *u8) -> i64
called by 1: main
51func main() -> i64