sub find_solution {
my ($self) = @_;
my $state = $self->current_search_state;
- while ($state and $state->next_proposition) {
+ while ($state and (not $state->is_solution_state)) {
$state = $state->with_one_step;
}
return undef unless $state;
current_hypothesis => $first_alt->[0],
alternatives => \@rest_alt,
next_step => $first_alt->[1],
- is_solution_step => 0,
+ is_solution_state => 0,
);
}