code wiki / _hdl_build / nx_partid_gate.nx

nx_partid_gate.nx

buildroot/runtime/_hdl_build/nx_partid_gate.nx

6047 B118 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_partid_gate.nx -- benchmark geometric part identification (cadtwin P5). A catalog of distinct shape classes (rod / plate / cube) gets rotation+scale-invariant descriptors; then prove (a) the classes are DISTINCT, (b) ROTATING a part leaves its descriptor unchanged, (c) SCALING leaves it unchanged, (d) a rotated+scaled query part is correctly IDENTIFIED against the catalog. This is coarse shape-class recognition for the flip chain (segment -> identify -> NHTSA/thickness lookup). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_partid.nx nx_partid_gate.nx

imports: nx_partid.nx

imported by: nobody (leaf or entry point)

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

main dg_puts m3_bytes m3_init m3_hdr m3_box m3_add_vert m3_hdr ↻ m3_vert m3_add_tri m3_hdr ↻ m3_tri pid_descriptor pid_cov m3_hdr ↻ m3_vert ↻ pid_eigvals ep_eig_dom ep_abs r3_normalize r3_isqrt ep_mv pid_rayleigh ep_mv ↻ pid_deflate dg_putn dg_puts ↻ dg_dist dg_tooth dg_puts ↻ pid_rotate_mesh m3_init ↻ m3_hdr ↻ m3_vert ↻ m3_add_vert ↻ m3_tri ↻ m3_add_tri ↻ pid_match

structs

none

consts

none

functions

8func dg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: dg_putndg_toothmain
9func dg_putn(v: i64) -> i64
called by 1: main calls 1: dg_puts
22func dg_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: dg_puts
29func dg_dist(a: *i64, b: *i64) -> i64
called by 1: main
37func main() -> i64