code wiki / (root) / nx_sequence_fm_test.nx

nx_sequence_fm_test.nx

buildroot/runtime/nx_sequence_fm_test.nx

5350 B168 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic sequence
docsdependenciesstructsconstsfunctions

about

nx_sequence_fm_test.nx -- KAT for FM-index construction + backward search. Canonical "BANANA$" reference (Ferragina-Manzini 2000, textbook across every IR / bioinformatics intro): Suffixes (sorted lexicographically, $=0x24 < A < B < N): 6 $ 5 A$ 3 ANA$ 1 ANANA$ 0 BANANA$ 4 NA$ 2 NANA$ SA = [6, 5, 3, 1, 0, 4, 2] BWT = [A, N, N, B, $, A, A] = "ANNB$AA" C[$] = 0 ; C[A] = 1 ; C[B] = 4 ; C[N] = 5 ; C[anything > N] = 7 fm_count("ANA") = 2 (positions 1, 3) fm_count("BAN") = 1 (position 0) fm_count("NAB") = 0 (not in text) fm_count("A") = 3 Plus DNA "ACGT$" KAT and a not-in-text refusal. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_sequence_fm.nx nx_sequence_fm_test.nx

imports: nx_syscalls.nxnx_sequence_fm.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 fm_check_sentinel fm_build_sa fm_suffix_compare fm_build_bwt fm_build_c fm_count fm_occ

structs

none

consts

none

functions

31func main() -> i64