FAILURE MAP
← Case archive

FA-5779 / Planar geometry / Member archive

Rectangle union area · case 04

Overlapping area is counted twice.

Member previewVariant 4 · 3 implementations · 4 checks per implementation

Case contract

Integer coordinates and lengths, with exact arithmetic except for indicated division results. Lengths are nonnegative. Rectangles are (xmin,ymin,xmax,ymax) with ordered bounds; coordinate vectors have matching dimensions. Rectangle union area. Exact operational definition: (a[2]-a[0])*(a[3]-a[1])+(b[2]-b[0])*(b[3]-b[1])-max(0,min(a[2],b[2])-max(a[0],b[0]))*max(0,min(a[3],b[3])-max(a[1],b[1]))

Why this case matters

Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Planar geometry results depend on the stated convention.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
fixture 1: ((0, 0, 2, 2), (1, 1, 3, 3))87Failed

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 ↗