code wiki / (root) / nx_optenforce_gate.nx

nx_optenforce_gate.nx

buildroot/runtime/nx_optenforce_gate.nx

7697 B139 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_optenforce_gate.nx -- GATE for LN2 option / null enforcement (lang.plan rung LN2, symbol opt_enforce_unwrap). The rung's done-rule: a pointer or Option value must be unwrapped through a checked path before deref in checked mode; the sentinel-zero deref class is REFUSED at compile time on a fixture, and the stdlib still builds. Subjects: the toolchain compiler (argv[1], default the live builder) + runtime/nx_option_enforce.nx (hazard) + nx_option_enforce_ok.nx (every narrowing idiom, the positive control) + nx_option_enforce_reassign.nx (un-narrowing). Driver = nx_ccgate_lib. Data captures in /tmp/nxoe/, RUNNABLES under _build/ (NAS /tmp noexec). Usage: nx_optenforce_gate [compiler_elf] (CWD = the tree root, like nx_cc_equiv_gate) license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_ccgate_lib.nx nx_optenforce_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_ccgate_lib.nx

imported by: nobody (leaf or entry point)

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

main ccg_anchor_root sys_openat_rd sys_close sys_chdir sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_mkdir ccg_pid ccg_path sys_mmap ↻ gv_ctr sys_mmap ↻ gv_head gv_puts sys_write ↻ ccg_build ccg_compile sys_mmap ↻ sys_openat_wr ccg_run sys_fork sys_dup3 sys_mmap ↻ sys_execve sys_exit ↻ sys_wait4

structs

none

consts

none

functions

15func main(argc: i64, argv: *i64) -> i64