Research

What the Topaz studies found

First experiment

Does the generated body preserve values and overflow faults for every signed 64-bit input? One Topaz function that branches at the largest signed 64-bit integer.

Topaz revision dab00d2b1

Two solvers agreed that the original pair preserved the specified observations over the full input domain. Both deliberate changes yielded counterexamples that were reproduced by compiling and running the changed Rust.

The result assumes normal frame entry and normalization under the stated premises. The study found no new Topaz defect.

Four Topaz functions

Do the values and faults survive these compiler transformations? Four functions covering liveness analysis, slot reuse, short-circuit evaluation, and division with early return.

Topaz revision dab00d2b1

The study recorded 16 cases and detected six deliberate changes. A separate model check agreed with the solver verdicts in the cases it resolved.

Normalization depends on the stated premises. The model check left two full-domain cases unresolved. The study found no new Topaz defect.

Minimal specs and a second boundary

Can separate checks show whether a defect arose in the plan or in code generation? The same four functions, their ABI plans, and the generated Rust.

Topaz revision dab00d2b1

All 21 earlier verdicts were reproduced. All 23 cases matched their expected verdicts at each boundary. The checks identified the stage where deliberate defects were introduced.

The new boundary reused all 18 semantic operations it needed. The Lena core specification and implementation each had zero lines changed.

Normalization at both boundaries depends on the stated premises. The counterexamples came from deliberate changes. The study found no new Topaz defect.