Skip to content

Commit f387b89

Browse files
dkrenngalipnik
andauthored
fix early return by mandel/simon-algo
Co-authored-by: Gabriel Lipnik <[email protected]>
1 parent b1afceb commit f387b89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/combinat/regular_sequence_bounded.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ def regular_sequence_is_bounded(S):
543543
return False
544544

545545
try:
546-
return is_bounded_via_mandel_simon_algorithm(make_positive(matricesProd))
546+
if not is_bounded_via_mandel_simon_algorithm(make_positive(matricesProd)):
547+
return False
547548
except ValueError:
548549
pass
549550

0 commit comments

Comments
 (0)