Skip to content

Commit 49516fc

Browse files
committed
Recover from TooManyIterations when simplifying during rewriting
1 parent 1103673 commit 49516fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

booster/library/Booster/Pattern/Rewrite.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,9 @@ performRewrite doTracing def mLlvmLibrary mSolver mbMaxDepth cutLabels terminalL
761761
Left r@UndefinedTerm{} -> do
762762
emitRewriteTrace $ RewriteSimplified (Just r)
763763
pure Nothing
764+
Left r@(TooManyIterations _ _ end) -> do
765+
emitRewriteTrace $ RewriteSimplified (Just r)
766+
pure $ Just p{term = end}
764767
Left other -> do
765768
emitRewriteTrace $ RewriteSimplified (Just other)
766769
pure $ Just p

0 commit comments

Comments
 (0)