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
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)