fix(library/type_context): check for stack overflow
This commit is contained in:
parent
5ab28548b8
commit
d5c7d078eb
1 changed files with 1 additions and 0 deletions
|
|
@ -2718,6 +2718,7 @@ bool type_context::on_is_def_eq_failure(expr const & e1, expr const & e2) {
|
|||
|
||||
/* If e is a numeral, then return it. Otherwise return none. */
|
||||
static optional<mpz> eval_num(expr const & e) {
|
||||
check_system("eval_num");
|
||||
if (is_constant(e, get_nat_zero_name())) {
|
||||
return some(mpz(0));
|
||||
} else if (is_app_of(e, get_has_zero_zero_name(), 2)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue