code wiki / _hdl_build / nx_partid_gate.nx
nx_partid_gate.nx
buildroot/runtime/_hdl_build/nx_partid_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func 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 } |
| 9 | func dg_putn(v: i64) -> i64 |
| 22 | func dg_tooth(name: *u8, pass: i64, fails: *i64) -> i64 |
| 29 | func dg_dist(a: *i64, b: *i64) -> i64 called by 1: main |
| 37 | func main() -> i64 |