code wiki / (root) / nx_eye_detect_test.nx

nx_eye_detect_test.nx

buildroot/runtime/nx_eye_detect_test.nx

2809 B82 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

Inline-in-main smoke for nx_eye_detect algorithm. The wrapper-call pattern in nx_eye_detect.nx hits the documented nxc2 codegen bug with struct-pointer returns clobbered across function calls; this test runs the algorithm directly in main() to prove correctness while the library file documents the API.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_image.nx nx_geom.nx nx_eye_detect.nx nx_eye_detect_test.nx

imports: nx_syscalls.nxnx_image.nxnx_geom.nxnx_eye_detect.nx

imported by: nobody (leaf or entry point)

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

main nx_image_alloc sys_mmap nx_image_set sys_mmap ↻ nx_geom_fill_trig draw_circle_perimeter nx_image_set ↻ nx_image_sobel_x sys_mmap ↻ nx_image_convolve_3x3 nx_image_s64_alloc sys_mmap ↻ nx_image_get nx_image_s64_set nx_image_sobel_y sys_mmap ↻ nx_image_convolve_3x3 ↻ nx_geom_hough_circle_r nx_image_get ↻ nx_image_s64_get nx_math_isqrt

structs

none

consts

none

functions

12func draw_circle_perimeter(edge: *Image, cx: i64, cy: i64, r: i64,
called by 1: main calls 1: nx_image_set
29func main() -> i64