find_morphism_path(): always advance with direct morph, even if complex decomposition from goal exists

This commit is contained in:
Michael Sippel 2025-04-02 23:11:40 +02:00
parent 72705e824e
commit ce0103c04f
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -91,10 +91,10 @@ impl<'a, M:SugaredMorphism+Clone> SugaredShortestPathProblem<'a, M> {
self.morphism_base.complex_morphism_decomposition( &cur_path.cur_type, &self.goal )
{
self.advance(&cur_path, complex_morph);
} else {
for next_morph_inst in self.morphism_base.enum_morphisms_from(&cur_path.cur_type) {
self.advance(&cur_path, next_morph_inst);
}
}
for next_morph_inst in self.morphism_base.enum_morphisms_from(&cur_path.cur_type) {
self.advance(&cur_path, next_morph_inst);
}
}
}