fix(library/simplifier/simplifier): bug in cache_lookup
This commit is contained in:
parent
14d4ae7e97
commit
e7bcb89314
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ public:
|
|||
/* Cache */
|
||||
|
||||
optional<result> simplifier::cache_lookup(expr const & e) {
|
||||
/* cache_lookup is based on congr_lemma, and assumes \c e is an application */
|
||||
if (!is_app(e)) return optional<result>();
|
||||
auto it = m_cache.find(key(m_rel, e));
|
||||
if (it == m_cache.end()) return optional<result>();
|
||||
/* The cache ignores subsingletons, so we may need to
|
||||
|
|
Loading…
Reference in a new issue