@@ -35,8 +35,8 @@ namespace libsemigroups {
3535 Iterator2 last1,
3636 Iterator3 first2,
3737 Iterator4 last2) const {
38- throw_if_letter_out_of_bounds <Subclass>(first1, last1);
39- throw_if_letter_out_of_bounds <Subclass>(first2, last2);
38+ throw_if_letter_not_in_alphabet <Subclass>(first1, last1);
39+ throw_if_letter_not_in_alphabet <Subclass>(first2, last2);
4040 return static_cast <Subclass const &>(*this ).currently_contains_no_checks (
4141 first1, last1, first2, last2);
4242 }
@@ -87,8 +87,8 @@ namespace libsemigroups {
8787 Iterator3 first2,
8888 Iterator4 last2) {
8989 throw_if_started ();
90- throw_if_letter_out_of_bounds <Subclass>(first1, last1);
91- throw_if_letter_out_of_bounds <Subclass>(first2, last2);
90+ throw_if_letter_not_in_alphabet <Subclass>(first1, last1);
91+ throw_if_letter_not_in_alphabet <Subclass>(first2, last2);
9292 return static_cast <Subclass&>(*this ).add_generating_pair_no_checks (
9393 first1, last1, first2, last2);
9494 }
@@ -100,7 +100,7 @@ namespace libsemigroups {
100100 OutputIterator CongruenceCommon::reduce_no_run (OutputIterator d_first,
101101 Iterator1 first,
102102 Iterator2 last) const {
103- throw_if_letter_out_of_bounds <Subclass>(first, last);
103+ throw_if_letter_not_in_alphabet <Subclass>(first, last);
104104 if (finished () && !success ()) { // for Kambites
105105 LIBSEMIGROUPS_EXCEPTION (
106106 " cannot reduce words, the algorithm failed to finish successfully!" )
@@ -116,7 +116,7 @@ namespace libsemigroups {
116116 OutputIterator CongruenceCommon::reduce (OutputIterator d_first,
117117 InputIterator1 first,
118118 InputIterator2 last) {
119- throw_if_letter_out_of_bounds <Subclass>(first, last);
119+ throw_if_letter_not_in_alphabet <Subclass>(first, last);
120120 run ();
121121 if (!success ()) { // for Kambites
122122 LIBSEMIGROUPS_EXCEPTION (
0 commit comments