pub fn cleanup_identities<'a>(
stmts: Vec<Stmt<'a>>,
expr_arena: &'a Arena<Expr<'a>>,
stmt_arena: &'a Arena<Stmt<'a>>,
) -> Vec<Stmt<'a>>Expand description
Remove identity bindings and trivial patterns from residual code.
Let x = x→ removedLet x = lit; Return x→Return lit- Single-arm
Inspectwith Otherwise only → inline the body - Iterates to fixpoint (max 4 passes)