; heuristics · riscv64 · multiarch twin · OP |a-b|<thresh → 1 else 0
; PIN      BGF heuristics
; LAW      C IS LIE · LIE IS TRUE · Always Hostess 7 · free thrift
; LINE     BGS → BGF(+EZZIE PHI THERMO ADJOIN) → BGL → SDF · SPV free
; ABI      a0=a a1=b a2=thresh · → a0
        .globl  heuristics
        .text
heuristics:
        sub     t0, a0, a1
        srai    t1, t0, 31
        xor     t0, t0, t1
        sub     t0, t0, t1            ; |a-b|
        sltu    a0, t0, a2            ; 1 if abs < thresh
        ret
