pub fn convert_expr_to_bool( expr: &Expr, state: &mut StateManager, functions: &FunctionMap, ) -> bool