1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Algebraic / peephole catalog (Phase 4A).
//!
//! Cost-monotone-down rewrites derived from algebraic identities:
//! constant folding, strength reduction, spec-driven rule firing,
//! canonical-form normalization, and atomic-shape normalization.
/// Collapse identity-op Relaxed atomic RMW to plain `Expr::Load`
/// (ROADMAP A36 - narrow atomic minimization that needs no alias
/// proof).
/// Canonical-form rewrite (audit P0 #32 - registered ProgramPass).
/// Canonicalization transform engine - pure IR-to-IR fn body used by the
/// `CanonicalizePass` ProgramPass.
/// Compile-time constant folding.
/// Hardware quirk normalization (atomic ordering / scope edge cases).
/// Mixed-precision + transcendental fast-path emit hints
/// (ROADMAP G1 + G5 foundation half).
/// Algebraic rewrites derived from operation specifications.
/// Multiplication strength reduction.
use crateProgram;
use cratePassAnalysis;
pub