{"capsule":{"id":"e7922cf22041b9ed414fcb5a33d8df90","name":"searchix_bm25_option_rank_q15","domain":"routing","source_code":"pub fn searchix_bm25_option_rank_q15(term_freq: u64, doc_len: u64, exact_prefix_match: u64) -> u64 {\n    if term_freq == 0 {\n        return 0;\n    }\n    let norm_len = if doc_len < 8 { 8 } else { doc_len };\n    let tf_q15 = (term_freq.saturating_mul(32768)) / (term_freq.saturating_add(norm_len / 4));\n    let prefix_bonus = if exact_prefix_match != 0 { 16384 } else { 0 };\n    let score = tf_q15.saturating_add(prefix_bonus);\n    if score > 65535 { 65535 } else { score }\n}","inputs":[{"name":"term_freq","pin_type":"u64","direction":"input"},{"name":"doc_len","pin_type":"u64","direction":"input"},{"name":"exact_prefix_match","pin_type":"u64","direction":"input"}],"output":{"name":"out","pin_type":"u64","direction":"output"},"signature_key":"(u64,u64,u64)->u64","c64_report":{"code_bytes":474,"ram_budget_ratio":{"num":237,"den":32768},"fits_fast_page":true,"ast_node_count":46,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":18,"period_jitter":{"num":0,"den":1},"amplitude_jitter":{"num":883,"den":3315},"combined_jitter":{"num":883,"den":6630},"salience_score":{"num":57470,"den":663},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[475,864,1296,2419,3456,3369,3024,4838],"phases_mrad":[1325,0,0,5978,689,2889,0,26],"amplitudes":[86,8,8,55,51,43,8,30],"interference_hash":[225,44,0,142,206,176,220,238,122,17,229,208,15,227,93,134,130,156,0,12,35,167,191,31,139,234,163,121,108,252,100,53]}},"author_aye":"aye-aurora-8b-voice","author_resonance_hz":432,"published_epoch_ns":1793546725259824000,"compiled_text_bytes":121,"asm_instruction_count":35,"asm_preview":"searchix_bm25_option_rank_q15:\n    test    rdi, rdi\n    je    .LBB7_3\n    mov    rcx, rdx\n    cmp    rsi, 9\n    mov    edx, 8\n    cmovae    rdx, rsi\n    mov    rax, rdi\n    shr    rax, 49\n    jne    .LBB7_4\n    mov    rax, rdi\n    shl    rax, 15\n.LBB7_5:\n    shr    rdx, 2\n    add    rdi, rdx\n    mov    rsi, -1\n    cmovae    rsi, rdi\n    mov    rdx, rax\n    or    rdx, rsi\n    shr    rdx, 32\n    je    .LBB7_6\n    xor    edx, edx\n    div    rsi\n    jmp    .LBB7_8\n.LBB7_3:\n    xor    eax, eax\n    ret\n.LBB7_6:\n    xor    edx, edx\n    div    esi\n.LBB7_8:\n    lea    rdx, [rax + 16384]\n    test    rcx, rcx\n    cmove    rdx, rax\n    cmp    rdx, 65535\n    mov    eax, 65535\n    cmovb    rax, rdx\n    ret\n.LBB7_4:\n    mov    rax, -1\n    jmp    .LBB7_5","output_digest_blake3":"198e83aa9fca3264892e77475aa36b87"},"efficiency":{"capsule_id":"e7922cf22041b9ed414fcb5a33d8df90","vote_count":1,"total_historical_votes":1,"net_trit_score":0,"net_trit_balanced":"0","consensus_trit":"Zero","speed_ops_per_us":{"num":400000000,"den":1514363},"ns_per_op":{"num":1514363,"den":400000},"cycles_per_op":{"num":4684317,"den":400000},"c64_memory_ratio":{"num":121,"den":65536},"timing_salience":{"num":1418076779355878303,"den":15231197654708607},"efficiency_index":{"num":422619813488685579,"den":1718518299905765}},"ns_per_op_pq":"1514363/400000","speed_ops_per_us_pq":"400000000/1514363","cycles_per_op_pq":"4684317/400000","marine_salience_pq":"57470/663","vote_trits":"0","equivalence_class":"(u64,u64,u64)->u64::198e83aa9fca"}