code wiki / (root) / nx_christus_integration_test.nx

nx_christus_integration_test.nx

buildroot/runtime/nx_christus_integration_test.nx

5998 B146 linesdepth 13pulls 31 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_christus_integration_test.nx -- Phase B2 of S-class hardening. Real-input integration test on a Christus-class geometry: tall narrow cone-tetrahedron (10mm × 10mm base × 40mm tall apex). Three slanted faces; base 5mm radius × 40mm tall -> tipover ratio 8.0 >> Qidi tipover threshold 0.98. HONEST GEOMETRY NOTE: this cone-tet has APEX-UP orientation, so each Z slice shrinks toward the apex. Layers are STRICTLY INSIDE the previous, meaning auto-supports legitimately do NOT fire (no overhang by geometry; the slant goes inward as z rises). A real Christus STL with cantilever arms would have growing-layer regions where supports DO fire -- queued as Phase B2.1. What this test composes end-to-end: 1. Build the cone-tet mesh manually (substrate primitives) 2. nx_slice_pipe_run_v2 produces G-code on real geometry 3. nx_klipper_gcode_validate confirms output is syntactically valid Klipper 4. G-code contains expected preamble + skirt + postamble markers 5. Sensible byte count + layer count This validates the FULL stack the operator would use to print a Christus statue, exercised on a tall-narrow-but-shrinking geometry that's a real graceful-handling test for the substrate. expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_machine_graph.nx nx_material_profile.nx nx_gcode_emit.nx nx_slice_pipeline.nx nx_klipper_gcode_validator.nx nx_christus_integration_test.n

imports: nx_syscalls.nxnx_mesh.nxnx_machine_graph.nxnx_material_profile.nxnx_gcode_emit.nxnx_slice_pipeline.nxnx_klipper_gcode_validator.nx

imported by: nobody (leaf or entry point)

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

main nx_machine_graph_qidi_xmax nx_machine_graph_alloc sys_mmap nx_material_profile_generi nx_material_profile_alloc sys_mmap ↻ build_christus_cone nx_mesh_alloc sys_mmap ↻ nx_mesh_set_vertex nx_mesh_set_triangle nx_gemit_new sys_mmap ↻ nx_gcex_filament_xsect_q14 nx_muldiv_i64 nx_i128_alloc nx_i128_mul_i64 nx_i128_mul_u64 nx_i128_neg nx_i128_div_i64 nx_i128_is_neg nx_i128_neg ↻ nx_i128_udiv_u64 nx_gemit_preamble nx_gemit_cstr nx_gemit_byte nx_gemit_int sys_mmap ↻ nx_int_to_decimal nx_fmt_reverse nx_gemit_bytes nx_gemit_byte ↻ nx_gemit_q14 sys_mmap ↻ nx_q14_to_decimal nx_int_to_decimal ↻ nx_gemit_bytes ↻ nx_slice_pipe_run_v2 nx_mesh_bbox_compute

structs

none

consts

38const Q14: i64 = 16384

functions

40func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
70func build_christus_cone() -> *NxMesh
85func main() -> i64