feat(kernel/replace_visitor): check interrupted flag and stackoverflow
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
43ef8b9a4b
commit
873a07d34c
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <tuple>
|
||||
#include "util/interrupt.h"
|
||||
#include "kernel/replace_visitor.h"
|
||||
|
||||
namespace lean {
|
||||
|
@ -62,6 +63,7 @@ expr replace_visitor::visit_let(expr const & e, context const & ctx) {
|
|||
});
|
||||
}
|
||||
expr replace_visitor::visit(expr const & e, context const & ctx) {
|
||||
check_system();
|
||||
bool shared = false;
|
||||
if (is_shared(e)) {
|
||||
shared = true;
|
||||
|
|
Loading…
Reference in a new issue