SOL-PMAT-003 // pmat

Dead-Code & Unreachable Symbol Detector

Identify unused functions, stale feature branches, and orphaned modules before release tagging.

Measured delta: 0 unreachable symbols; 100% live callgraph & 100% line coverage

Dead-Code & Unreachable Symbol Detector receipt poster
Verified CLI Version
pmat 3.47.0
Receipt SHA-256
e55241760f4a2e31cbfd538d5e872708a8ad386b4b363a07b2477a57e23c1198

Before (Failing Anti-Pattern)

#[allow(dead_code)]
fn legacy_hash_v1(s: &str) -> &str { &s[..8] } // unreachable orphan

After (Verified Code)

pub fn sha256_prefix(hex: &str) -> &str {
    &hex[..hex.len().min(16)]
}

Verification Contract

schema: pmat.dead-code.v1
max_dead_ratio: 0.0
ignore_tests: false

Verified CLI Command & Output

$ pmat analyze dead-code --path site/prerender/src
pmat dead-code: 0 unreachable symbols (100% live callgraph)