alonso.torres 50dc444e71 🐛 Turn a shape without flipping it on a large rotation
A transform reads its flip flags from the shape's edges: when both edges
reverse, both flags flip. A rotation by more than 90 degrees reverses both
edges too, and its structure modifier then adds the angle to the rotation,
so the half turn was counted twice. A rect rotated 135 or 180 degrees showed
as flipped on both axes, and flip-y, rotate 180 degrees, flip-x left an
unrotated shape stored with rotation 180 and no flags.

Pass the turn a transform's structure modifiers add into the flip
adjustment. Without a reflection, both flags flip only for a half turn the
rotation does not count, as a resize by -1 on both axes.

A fourth re-run of the seed-20261101 library dependency property found this;
it also fails on earlier commits. The regression fails before the fix
(135 and 180 degrees set both flags; the sequence ends inconsistent) and
passes after it; a -1 resize on both axes still flips both. Full common
passes lint, JVM, JavaScript and formatting: JVM 2081 tests / 33910
assertions; JavaScript 2017 / 32557. All six component properties pass 40
programs each at seed 712 in both runtimes.

Compare lower-quantile milliseconds with the saved baseline; keep that
baseline unchanged. The machine/JVM warning makes ratios rough. No world
is flagged.

World                      Baseline       Now    Ratio
Main into 10 copies           1.790     0.985     0.55
Main into 100 copies         15.415    10.150     0.66
Main into 1000 copies       153.086   104.892     0.69
Three nesting levels         35.215    19.738     0.56
Dependency chain             68.931    48.772     0.71
Library update               83.083    49.020     0.59
Many plain shapes             4.837     2.576     0.53
Variant switch               32.052    20.357     0.64

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:45 +01:00
..