feat(kernel/replace_visitor): check interrupted flag and stackoverflow

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-05 05:42:12 -08:00
parent 43ef8b9a4b
commit 873a07d34c

View file

@ -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;