code wiki / _hdl_build / nx_browser_forms_e2e_gate.nx

nx_browser_forms_e2e_gate.nx

buildroot/runtime/_hdl_build/nx_browser_forms_e2e_gate.nx

7735 B124 linesdepth 18pulls 79 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

dependencies 5 imports · 0 importers

nx_gate_base.nx nx_docportal_admin_daemon.nx nx_browser_forms.nx nx_modern_auth_flow.nx nx_syscalls.nx nx_browser_forms_e2e_gate.nx

imports: nx_gate_base.nxnx_docportal_admin_daemon.nxnx_browser_forms.nxnx_modern_auth_flow.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_openat_wr sys_close sys_mmap nx_uas_server_keys_load_or sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ _uas_hex_dec _uas_nib nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_opq_derive_keypair sys_mmap ↻ _voprf_load_context_string u256_alloc nx_scratch nx_scratch_init sys_mmap ↻ nx_scratch_oom sys_write ↻ sys_exit sys_mmap ↻ nx_opq_hash_to_scalar sys_mmap ↻ nx_h2c_expand_message_xmd_ sys_mmap ↻ _h2c_i2osp_1 _h2c_i2osp_2 u256_alloc ↻

structs

none

consts

none

functions

12func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
14func gln(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
15func gcat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){d[o+i]=s[i];i=i+1} return o+i }
called by 3: gcontainsgbodymain calls 1: gln
16func gfind(hay: *u8, n: i64, needle: *u8) -> i64 { let nn: i64=gln(needle); var i: i64=0; while i+nn<=n { var m: i64=1; var j: i64=0; while j<nn { if (hay[i+j] as i64)!=(needle[j] as i64){m=0;j=nn} else {j=j+1} } if m==1 {return i} i=i+1 } return 0-1 }
called by 1: main calls 1: gfind
17func gcontains(hay: *u8, n: i64, needle: *u8) -> i64 { if gfind(hay,n,needle) >= 0 {return 1} return 0 }
called by 1: main calls 1: gw
18func gcell(ok: i64, id: *u8, txt: *u8) -> i64 { if ok==1 {gw(" PASS " as *u8)} else {gw(" FAIL " as *u8)} gw(id); gw(" " as *u8); gw(txt); gw("\n" as *u8); return ok }
20func gbody(resp: *u8, n: i64) -> i64 { let p: i64=gfind(resp,n,"\r\n\r\n" as *u8); if p<0 {return n} return p+4 }
22func gfield(forms: *BrForm, fi: i64, fields: *BrField, name: *u8) -> i64
38func main() -> i64
124func gstreq_local(a: *u8, b: *u8) -> i64 { var i: i64=0; while 1==1 { if (a[i] as i64)!=(b[i] as i64){return 0} if (a[i] as i64)==0 {return 1} i=i+1 } return 0 }