my $new_hyp = $self->_apply_to_hyp($old_hyp);
return (undef, $self->alternative_step) unless $new_hyp;
trace 'step.apply.new_hyp '.$self => $new_hyp;
- return ($ss->but(current_hypothesis => $new_hyp), $self->alternative_step);
+ my $ns = DX::Step::InvokeNextPredicate->new(
+ proposition => $ss->next_proposition($new_hyp)
+ );
+ return (
+ $ss->but(
+ current_hypothesis => $new_hyp,
+ next_step => $ns,
+ ),
+ $self->alternative_step
+ );
}
sub _apply_to_hyp {