extract optimaze from expr_tree