ELSEIF
Your brief EB
344 stories from 101 feeds 299 clusters Refreshed 5 minutes ago next pull 01:21

TECH Signal 400

Decades-old bug found in Knuth's Algorithm D, "bug" in LLVM implementation

An author implementing Knuth's Algorithm D discovered a decades-old bug in the algorithm's correctness proof and a related "bug" in LLVM's implementation.

WHY IT MATTERS

Algorithm D is the standard reference for multiprecision long division, so a bug in its correctness proof affects foundational assumptions in cryptographic and systems programming. The LLVM implementation bug means production compilers may currently handle this specific division case incorrectly.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

A counterexample was found to Theorem B, which proves the correctness of Knuth's Algorithm D.

02

The bug in Algorithm D had passed as correct for decades before this discovery.

03

A related "bug" was found in LLVM's implementation of this long division algorithm.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
kolja.rs via Lobsters A long division story Open ↗