2015-11-13 00:30:22 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2015 Daniel Selsam. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
Author: Daniel Selsam
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "kernel/expr.h"
|
|
|
|
#include "library/fun_info_manager.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
|
|
|
|
/** \brief Abstract expression manager, to allow comparing expressions while ignoring subsingletons. */
|
|
|
|
|
|
|
|
class abstract_expr_manager {
|
|
|
|
fun_info_manager & m_fun_info_manager;
|
|
|
|
|
|
|
|
public:
|
|
|
|
abstract_expr_manager(fun_info_manager & f_info_manager):
|
|
|
|
m_fun_info_manager(f_info_manager) { }
|
|
|
|
|
2015-11-13 00:43:57 +00:00
|
|
|
unsigned hash(expr const & e);
|
2015-11-13 00:30:22 +00:00
|
|
|
bool is_equal(expr const & a, expr const & b);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|