code wiki / (root) / nx_field_gate.nx

nx_field_gate.nx

buildroot/runtime/nx_field_gate.nx

11607 B189 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic field
docsdependenciesstructsconstsfunctions

about

nx_field_gate.nx -- THE GATE FOR THE FIELD DISCOVERY CORE (nx_field_lib, /compare/fieldwatch FW1). Drives the extractors IN-PROCESS on fixtures assembled at RUNTIME (no network, no evidence-store writes), so every tooth is mutation-provable and none can find its pattern in source. What it must catch: a wiki extractor that harvests citation links (a CNET reference is not a rival), one that harvests namespace links (Category: File:), a dedupe that lets case variants through as two rivals, a seeds mask that cannot tell one seed from two, an emit order that ignores the evidence, and a GitHub extractor that reads any anchor as a repository. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_field_lib.nx nx_field_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_field_lib.nx

imported by: nobody (leaf or entry point)

structs

none

consts

13const FG_WORD: i64 = 8
14const FG_CAP: i64 = 65536
15const FG_SEED_A: i64 = 0
16const FG_SEED_B: i64 = 1
17const FG_SEED_C: i64 = 2
18const FG_WIKI: *u8 = "Modding tools include [[BepInEx]] and [[MelonLoader|Melon Loader]] and [[BepInEx]] again.<ref>{{cite web |title=x |publisher=[[CNET]]}}</ref>\n{{Infobox software | name = [[Template link]] }}\n* [[Category:Video game mods]]\n* [[File:Icon.png]]\n* [[Nexus Mods]] hosts files; see [[Nexus Mods#History]].\n<ref name=a/> tail [[LOOT]]\n"
19const FG_WIKI_B: *u8 = "Loaders: [[bepinex]] and [[LOOT]].\n"
20const FG_GH: *u8 = "<a href=\x22/BepInEx/BepInEx\x22 data-view-component=\x22true\x22 class=\x22Link text-bold wb-break-word\x22>BepInEx</a> junk <a href=\x22/sponsors/x\x22 class=\x22Link\x22>sponsor</a> <a href=\x22/ebkr/r2modmanPlus\x22 data-view-component=\x22true\x22 class=\x22Link text-bold wb-break-word\x22>r2modmanPlus</a>"
21const FG_MD: *u8 = "# awesome\n- [Vortex](https://example.org/vortex) - a manager\n* [LOOT](https://example.org/loot)\nnot an item [Nope](x)\n"
22const FG_NS_ONLY: *u8 = "* [[Category:Only]] and [[File:Only.png]] and [[Help:Only]]\n"
23const FG_REF_ONLY: *u8 = "text<ref>[[Inside Ref]]</ref> and {{cite|[[Inside Template]]}}\n"
24const FG_OUT: *u8 = "/tmp/nx_field_gate.out"
25const FG_MODEDIR: i64 = 493

functions

27func fg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
28func fg_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
30func fg_idx(t: *i64, name: *u8) -> i64
35func fg_has(t: *i64, name: *u8) -> i64 { if fg_idx(t, name) >= 0 { return 1 } return 0 }
37func main(argc: i64, argv: *i64) -> i64