pub fn tree_complexity(tree: &ExprTree, log2_sizes: &[f64]) -> (f64, f64, f64)
Compute the total tree complexity (time, space, read-write).