code wiki / _hdl_build / rv64im_min_alu_proof.nx

rv64im_min_alu_proof.nx

buildroot/runtime/_hdl_build/rv64im_min_alu_proof.nx

3577 B115 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic rv64im
docsdependenciesstructsconstsfunctions

about

nx_rv64im_alu_proof.nx -- vector dumper to PROVE the RV64IM ALU. Runs nx_rv64im_alu_compute over every ALU op (1..28) across a deterministic mix of edge values + LCG-generated 64-bit operands, and writes "<op_dec>\t<a_hex16>\t<b_hex16>\t<r_hex16>\n" lines to the proof folder. An independent Python implementation of the RV64IM spec then recomputes each result and diffs -- 1:1 proof, not "assertions PASS". expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx rv64im_min_alu.nx rv64im_min_alu_proof.nx

imports: nx_syscalls.nxrv64im_min_alu.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap _dec2 sys_write _emit_vec nx_rv64im_alu_compute nx_rv64im_lshr nx_rv64im_ltu nx_rv64im_sext32 nx_rv64im_mulh_signed nx_rv64im_mulh_unsigned nx_rv64im_lshr ↻ nx_rv64im_mulh_signed_unsi nx_rv64im_mulh_unsigned ↻ nx_rv64im_mulh_unsigned ↻ nx_rv64im_udiv nx_rv64im_ltu ↻ nx_rv64im_urem nx_rv64im_udiv ↻ _dec2 ↻ _hex16 sys_openat_wr sys_close

structs

none

consts

none

functions

16func _hex16(v: i64, out: *u8, pos: i64) -> i64
called by 1: _emit_vec
29func _dec2(v: i64, out: *u8, pos: i64) -> i64
called by 2: _emit_vecmain
37func _emit_vec(op: i64, a: i64, b: i64, out: *u8, pos: i64) -> i64
51func main() -> i64