FAILURE MAP
← Case archive

FA-91635 / Digital signal filters / Member archive

SOS cascade clamps only the final output · case 05

Intermediate stages exceed the limit, so later stages see values the hardware could never produce.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Input [gain, sections, limit, samples]; each section [b0, b1, b2, a1, a2] is a direct-form-I biquad (a0 = 1) with its own state. The input is scaled by gain, each section output is clamped to [-limit, limit] and the clamped value is both stored as that section's output state and fed to the next section. Return exact fraction strings.

Why this case matters

Cascaded second-order sections with per-stage saturation model fixed-point IIR hardware; state sharing or gain staging slips change clipping.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: random cascade 24["1", "5/4", "-3", "17/64", "-609/256"]["1", "5/4", "-3", "1/8", "-53/32"]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗