Best Use & Engineering Application Guide

Engineering Category: Deterministic Sovereign Compute Kernel

Best Use in Production: Pure-Rust C64-bounded integer transformation kernel verified across 64 canonical test vectors for deterministic Snap-Circuit composition.

When to Select This Capsule: Holds the #1 Equivalence Crown across 2 functionally identical implementations (fastest verified hardware _rdtsc). Multi-step compute kernel (8644891/200000 cyc/op); best used at frame, block, or batch aggregation boundaries.

Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(&str)->bool` — wire matching input pins via `snap_dag` or `snap_pipeline`.

Hardware _rdtsc: 8644891/200000 cycles/op
Latency: 1172609/100000 ns/op
Throughput: 100000000/1172609 ops/us
Compiled ELF64 .text: 1311 B (331 x86_64 insns)
C64 64KB RAM Budget: 27/4096 (432 B source)
Ternary Vote: + (score 1) | Salience: 505/6
Pure-Rust Capsule Source Code (432 B)
pub fn is_dropped_legacy_web_feature(feature_or_tag: &str) -> bool {
    let lower = feature_or_tag.trim().to_ascii_lowercase();
    matches!(
        lower.as_str(),
        "frameset"
            | "frame"
            | "applet"
            | "marquee"
            | "blink"
            | "keygen"
            | "document.write"
            | "xpath"
            | "xslt"
            | "websql"
            | "quirks-mode"
    )
}
rustc -C opt-level=3 x86_64 Disassembly (1311 B .text / 331 insns)
is_dropped_legacy_web_feature:
    push    r15
    push    r14
    push    r12
    push    rbx
    push    rax
    mov    r14, rdi
    lea    rax, [rdi + rsi]
    xor    ebx, ebx
    test    rsi, rsi
    je    .LBB7_24
    mov    rdx, qword ptr [rip + _RNvNtNtNtCscNqnBmBaIcL_4core7unicode12unicode_data11white_space14WHITESPACE_MAP@GOTPCREL]
    mov    rcx, r14
    jmp    .LBB7_5
.LBB7_2:
    movzx    esi, sil
    movzx    esi, byte ptr [rdx + rsi]
    shr    sil
.LBB7_3:
    test    sil, 1
    je    .LBB7_25
.LBB7_4:
    cmp    rcx, rax
    je    .LBB7_23
.LBB7_5:
    mov    rdi, rcx
    mov    r12, rbx
    movzx    esi, byte ptr [rcx]
    test    sil, sil
    js    .LBB7_7
    lea    rcx, [rdi + 1]
    jmp    .LBB7_12
.LBB7_7:
    mov    r8d, esi
    and    r8d, 31
    movzx    r10d, byte ptr [rdi + 1]
    and    r10d, 63
    cmp    sil, -33
    jbe    .LBB7_10
    movzx    r9d, byte ptr [rdi + 2]
    shl    r10d, 6
    and    r9d, 63
    or    r9d, r10d
    cmp    sil, -16
    jb    .LBB7_11
    lea    rcx, [rdi + 4]
    movzx    esi, byte ptr [rdi + 3]
    and    r8d, 7
    shl    r8d, 18
    shl    r9d, 6
    and    esi, 63
    or    esi, r9d
    or    esi, r8d
    jmp    .LBB7_12
.LBB7_10:
    lea    rcx, [rdi + 2]
    shl    r8d, 6
    or    r8d, r10d
    mov    esi, r8d
    jmp    .LBB7_12
.LBB7_11:
    lea    rcx, [rdi + 3]
    shl    r8d, 12
    or    r9d, r8d
    mov    esi, r9d
.LBB7_12:
    mov    rbx, rcx
    sub    rbx, rdi
    add    rbx, r12
    lea    edi, [rsi - 9]
    cmp    edi, 5
    jb    .LBB7_4
    cmp    esi, 32
    je    .LBB7_4
    cmp    esi, 133
    jb    .LBB7_25
    mov    edi, esi
    shr    edi, 8
    cmp    edi, 31
    jg    .LBB7_19
    test    edi, edi
    je    .LBB7_22
    cmp    edi, 22
    jne    .LBB7_25
    cmp    esi, 5760
    sete    sil
    jmp    .LBB7_3
.LBB7_19:
    cmp    edi, 32
    je    .LBB7_2
    cmp    edi, 48
    jne    .LBB7_25
    cmp    esi, 12288
    sete    sil
    jmp    .LBB7_3
.LBB7_22:
    movzx    esi, sil
    movzx    esi, byte ptr [rdx + rsi]
    jmp    .LBB7_3
.LBB7_24:
    mov    rcx, r14
    xor    r12d, r12d
.LBB7_25:
    cmp    rcx, rax
    je    .LBB7_50
    mov    rdx, qword ptr [rip + _RNvNtNtNtCscNqnBmBaIcL_4core7unicode12unicode_data11white_space14WHITESPACE_MAP@GOTPCREL]
    jmp    .LBB7_30
.LBB7_27:
    movzx    edi, dil
    movzx    edi, byte ptr [rdx + rdi]
    shr    dil
.LBB7_28:
    test    dil, 1
    je    .LBB7_49
.LBB7_29:
    cmp    rcx, rax
    je    .LBB7_50
.LBB7_30:
    mov    rsi, rax
    movsx    edi, byte ptr [rax - 1]
    test    edi, edi
    js    .LBB7_32
    lea    rax, [rsi - 1]
    lea    r8d, [rdi - 9]
    cmp    r8d, 5
    jb    .LBB7_29
    jmp    .LBB7_39
.LBB7_32:
    movzx    r8d, byte ptr [rsi - 2]
    cmp    r8b, -64
    jge    .LBB7_35
    movzx    r9d, byte ptr [rsi - 3]
    cmp    r9b, -64
    jge    .LBB7_36
    lea    rax, [rsi - 4]
    movzx    r10d, byte ptr [rsi - 4]
    and    r10d, 7
    shl    r10d, 6
    and    r9d, 63
    or    r9d, r10d
    jmp    .LBB7_37
.LBB7_35:
    lea    rax, [rsi - 2]
    and    r8d, 31
    jmp    .LBB7_38
.LBB7_36:
    lea    rax, [rsi - 3]
    and    r9d, 15
.LBB7_37:
    shl    r9d, 6
    and    r8d, 63
    or    r8d, r9d
.LBB7_38:
    shl    r8d, 6
    and    edi, 63
    or    edi, r8d
    lea    r8d, [rdi - 9]
    cmp    r8d, 5
    jb    .LBB7_29
.LBB7_39:
    cmp    edi, 32
    je    .LBB7_29
    cmp    edi, 133
    jb    .LBB7_49
    mov    r8d, edi
    shr    r8d, 8
    cmp    r8d, 31
    jg    .LBB7_45
    test    r8d, r8d
    je    .LBB7_48
    cmp    r8d, 22
    jne    .LBB7_49
    cmp    edi, 5760
    sete    dil
    jmp    .LBB7_28
.LBB7_45:
    cmp    r8d, 32
    je    .LBB7_27
    cmp    r8d, 48
    jne    .LBB7_49
    cmp    edi, 12288
    sete    dil
    jmp    .LBB7_28
.LBB7_48:
    movzx    edi, dil
    movzx    edi, byte ptr [rdx + rdi]
    jmp    .LBB7_28
.LBB7_49:
    sub    rbx, rcx
    add    rbx, rsi
.LBB7_50:
    sub    rbx, r12
    jne    .LBB7_52
.LBB7_23:
    xor    eax, eax
    jmp    .LBB7_82
.LBB7_52:
    call    qword ptr [rip + _RNvCs19qJvbSQqYX_7___rustc35___rust_no_alloc_shim_is_unstable_v2@GOTPCREL]
    mov    esi, 1
    mov    rdi, rbx
    call    qword ptr [rip + _RNvCs19qJvbSQqYX_7___rustc12___rust_alloc@GOTPCREL]
    test    rax, rax
    je    .LBB7_63
    mov    r15, rax
    add    r14, r12
    mov    rdi, rax
    mov    rsi, r14
    mov    rdx, rbx
    call    qword ptr [rip + memcpy@GOTPCREL]
    cmp    rbx, 8
    jae    .LBB7_55
    xor    eax, eax
    jmp    .LBB7_64
.LBB7_55:
    cmp    rbx, 32
    jae    .LBB7_57
    xor    eax, eax
    jmp    .LBB7_61
.LBB7_57:
    mov    rax, rbx
    and    rax, -32
    xor    ecx, ecx
    movdqa    xmm0, xmmword ptr [rip + .LCPI7_0]
    movdqa    xmm1, xmmword ptr [rip + .LCPI7_1]
    movdqa    xmm2, xmmword ptr [rip + .LCPI7_2]
.LBB7_58:
    movdqu    xmm3, xmmword ptr [r15 + rcx]
    movdqu    xmm4, xmmword ptr [r15 + rcx + 16]
    movdqa    xmm5, xmm3
    paddb    xmm5, xmm0
    movdqa    xmm6, xmm4
    paddb    xmm6, xmm0
    movdqa    xmm7, xmm5
    pminub    xmm7, xmm1
    pcmpeqb    xmm7, xmm5
    pand    xmm7, xmm2
    movdqa    xmm5, xmm6
    pminub    xmm5, xmm1
    pcmpeqb    xmm5, xmm6
    pand    xmm5, xmm2
    por    xmm7, xmm3
    por    xmm5, xmm4
    movdqu    xmmword ptr [r15 + rcx], xmm7
    movdqu    xmmword ptr [r15 + rcx + 16], xmm5
    add    rcx, 32
    cmp    rax, rcx
    jne    .LBB7_58
    cmp    rbx, rax
    je    .LBB7_66
    test    bl, 24
    je    .LBB7_64
.LBB7_61:
    mov    rcx, rax
    mov    rax, rbx
    and    rax, -8
    movdqa    xmm0, xmmword ptr [rip + .LCPI7_3]
    movdqa    xmm1, xmmword ptr [rip + .LCPI7_4]
    movdqa    xmm2, xmmword ptr [rip + .LCPI7_5]
.LBB7_62:
    movq    xmm3, qword ptr [r15 + rcx]
    movdqa    xmm4, xmm3
    paddb    xmm4, xmm0
    movdqa    xmm5, xmm4
    pmaxub    xmm5, xmm1
    pcmpeqb    xmm5, xmm4
    pandn    xmm5, xmm2
    por    xmm5, xmm3
    movq    qword ptr [r15 + rcx], xmm5
    add    rcx, 8
    cmp    rax, rcx
    jne    .LBB7_62
    jmp    .LBB7_65
.LBB7_63:
    mov    edi, 1
    mov    rsi, rbx
    call    qword ptr [rip + _RNvNtCseyxFaS8hpVE_5alloc7raw_vec12handle_error@GOTPCREL]
.LBB7_64:
    movzx    ecx, byte ptr [r15 + rax]
    lea    edx, [rcx - 65]
    cmp    dl, 26
    setb    dl
    shl    dl, 5
    or    dl, cl
    mov    byte ptr [r15 + rax], dl
    inc    rax
.LBB7_65:
    cmp    rbx, rax
    jne    .LBB7_64
.LBB7_66:
    xor    eax, eax
    lea    rcx, [rbx - 4]
    cmp    rcx, 10
    ja    .LBB7_81
    lea    rdx, [rip + .LJTI7_0]
    movsxd    rcx, dword ptr [rdx + 4*rcx]
    add    rcx, rdx
    jmp    rcx
.LBB7_68:
    cmp    dword ptr [r15], 1953264504
    jmp    .LBB7_80
.LBB7_69:
    movabs    rax, 7867071029404333425
    xor    rax, qword ptr [r15]
    movabs    rcx, 7306087010206444402
    xor    rcx, qword ptr [r15 + 3]
    jmp    .LBB7_74
.LBB7_70:
    mov    ecx, 1835102822
    xor    ecx, dword ptr [r15]
    movzx    edx, byte ptr [r15 + 4]
    xor    edx, 101
    mov    al, 1
    or    edx, ecx
    je    .LBB7_81
    mov    ecx, 1852402786
    xor    ecx, dword ptr [r15]
    movzx    edx, byte ptr [r15 + 4]
    xor    edx, 107
    or    edx, ecx
    je    .LBB7_81
    mov    eax, 1952542840
    xor    eax, dword ptr [r15]
    movzx    ecx, byte ptr [r15 + 4]
    xor    ecx, 104
    or    ecx, eax
    jmp    .LBB7_80
.LBB7_73:
    movabs    rax, 8389754676633104228
    xor    rax, qword ptr [r15]
    movabs    rcx, 7310584035475879022
    xor    rcx, qword ptr [r15 + 6]
.LBB7_74:
    or    rcx, rax
    jmp    .LBB7_80
.LBB7_75:
    mov    ecx, 1819308129
    xor    ecx, dword ptr [r15]
    movzx    edx, word ptr [r15 + 4]
    xor    edx, 29797
    mov    al, 1
    or    edx, ecx
    je    .LBB7_81
    mov    ecx, 1736009067
    xor    ecx, dword ptr [r15]
    movzx    edx, word ptr [r15 + 4]
    xor    edx, 28261
    or    edx, ecx
    je    .LBB7_81
    mov    eax, 1935828343
    xor    eax, dword ptr [r15]
    movzx    ecx, word ptr [r15 + 4]
    xor    ecx, 27761
    or    ecx, eax
    jmp    .LBB7_80
.LBB7_78:
    mov    eax, 1903321453
    xor    eax, dword ptr [r15]
    mov    ecx, 1701148017
    xor    ecx, dword ptr [r15 + 3]
    or    ecx, eax
    jmp    .LBB7_80
.LBB7_79:
    movabs    rax, 8387236760511410790
    cmp    qword ptr [r15], rax
.LBB7_80:
    sete    al
.LBB7_81:
    mov    edx, 1
    mov    rdi, r15
    mov    rsi, rbx
    mov    ebx, eax
    call    qword ptr [rip + _RNvCs19qJvbSQqYX_7___rustc14___rust_dealloc@GOTPCREL]
    mov    eax, ebx
.LBB7_82:
    add    rsp, 8
    pop    rbx
    pop    r12
    pop    r14
    pop    r15
    ret

Head-to-Head Functional Equivalence Class Peers (2 Implementation(s) Matching 64 Test Vectors)

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#1685is_dropped_legacy_web_feature (THIS CAPSULE)
domain: ayecast-x86_64 | id: c63d21901bd3fd9c5fc576bd4d0e60f2
8644891/200000 cyc/op1172609/100000 ns/op100000000/1172609 ops/us1311 B .text (331 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#2040looks_like_instruction
domain: smart-tree-x86_64 | id: a157033af2b57fd86544bd50582cd790
92775119/200000 cyc/op60401631/400000 ns/op400000000/60401631 ops/us3266 B .text (674 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz