From d30c6b2c9d7d74733f33ecf7ba1eb52d31a159c5 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 22 Aug 2013 15:41:03 -0700 Subject: [PATCH] Fix spaces Signed-off-by: Leonardo de Moura --- src/library/max_sharing.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/library/max_sharing.cpp b/src/library/max_sharing.cpp index d855fc3f4..e1bc84750 100644 --- a/src/library/max_sharing.cpp +++ b/src/library/max_sharing.cpp @@ -9,7 +9,10 @@ Author: Leonardo de Moura #include "max_sharing.h" namespace lean { - +/** + \brief Implementation of the functional object for creating expressions with maximally + shared sub-expressions. +*/ struct max_sharing_fn::imp { struct expr_struct_eq { unsigned operator()(expr const & e1, expr const & e2) const { return e1 == e2; }}; typedef typename std::unordered_set expr_cache; @@ -62,7 +65,6 @@ struct max_sharing_fn::imp { expr operator()(expr const & a) { return apply(a); } }; - max_sharing_fn::max_sharing_fn():m_imp(new imp) {} max_sharing_fn::~max_sharing_fn() {} expr max_sharing_fn::operator()(expr const & a) { return (*m_imp)(a); } @@ -74,5 +76,4 @@ expr max_sharing(expr const & a) { else return max_sharing_fn::imp()(a); } - } // namespace lean