pub fn infer_and_validate_lifetimes( function: &IrFunction, ) -> Result<Vec<String>, String>
Perform lifetime inference and validation