OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ExpressionRewrite.cpp} Namespace Reference


class  OrToInVisitor
class  RecursiveOrToInVisitor
class  ArrayElementStringLiteralEncodingVisitor
class  ConstantFoldingVisitor


const Analyzer::Exprstrip_likelihood (const Analyzer::Expr *expr)

Function Documentation

const Analyzer::Expr* anonymous_namespace{ExpressionRewrite.cpp}::strip_likelihood ( const Analyzer::Expr expr)

Definition at line 755 of file ExpressionRewrite.cpp.

Referenced by fold_expr(), and rewrite_expr().

755  {
756  const auto with_likelihood = dynamic_cast<const Analyzer::LikelihoodExpr*>(expr);
757  if (!with_likelihood) {
758  return expr;
759  }
760  return with_likelihood->get_arg();
761 }

+ Here is the caller graph for this function: