feat(library/blast/state): do not track dependecies to values

This commit is contained in:
Leonardo de Moura 2015-11-13 10:38:25 -08:00
parent a7fdf5cc73
commit 2e32cf51f9
2 changed files with 1 additions and 4 deletions

View file

@ -70,6 +70,7 @@ class simple_strategy {
optional<expr> search_upto(unsigned depth) { optional<expr> search_upto(unsigned depth) {
action_result r = next_action(); action_result r = next_action();
while (true) { while (true) {
lean_assert(curr_state().check_invariant());
if (curr_state().get_proof_depth() > depth) if (curr_state().get_proof_depth() > depth)
r = action_result::failed(); r = action_result::failed();
switch (r.get_kind()) { switch (r.get_kind()) {

View file

@ -300,7 +300,6 @@ bool state::check_hypothesis(expr const & e, unsigned hidx, hypothesis const & h
bool state::check_hypothesis(unsigned hidx, hypothesis const & h) const { bool state::check_hypothesis(unsigned hidx, hypothesis const & h) const {
lean_assert(check_hypothesis(h.get_type(), hidx, h)); lean_assert(check_hypothesis(h.get_type(), hidx, h));
lean_assert(h.is_assumption() || check_hypothesis(*h.get_value(), hidx, h));
return true; return true;
} }
@ -383,9 +382,6 @@ void state::add_deps(expr const & e, hypothesis & h_user, unsigned hidx_user) {
void state::add_deps(hypothesis & h_user, unsigned hidx_user) { void state::add_deps(hypothesis & h_user, unsigned hidx_user) {
add_deps(h_user.m_type, h_user, hidx_user); add_deps(h_user.m_type, h_user, hidx_user);
if (!h_user.is_assumption()) {
add_deps(*h_user.m_value, h_user, hidx_user);
}
} }
double state::compute_weight(unsigned hidx, expr const & /* type */) { double state::compute_weight(unsigned hidx, expr const & /* type */) {