feat(kernel/normalizer): let normalizer ignore 'undefined' constants
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
75cf751959
commit
1a0f0c1609
1 changed files with 3 additions and 3 deletions
|
@ -202,10 +202,10 @@ class normalizer::imp {
|
|||
r = lookup(s, var_idx(a));
|
||||
break;
|
||||
case expr_kind::Constant: {
|
||||
object const & obj = env()->get_object(const_name(a));
|
||||
if (should_unfold(obj, m_unfold_opaque)) {
|
||||
optional<object> obj = env()->find_object(const_name(a));
|
||||
if (obj && should_unfold(*obj, m_unfold_opaque)) {
|
||||
freset<cache> reset(m_cache);
|
||||
r = normalize(obj.get_value(), value_stack(), 0);
|
||||
r = normalize(obj->get_value(), value_stack(), 0);
|
||||
} else {
|
||||
r = a;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue