Skip to content

Commit

Permalink
Demote Abort log to Warn
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Oct 23, 2024
1 parent 7455041 commit 5bec591
Show file tree
Hide file tree
Showing 2 changed files with 401 additions and 1 deletion.
2 changes: 1 addition & 1 deletion booster/library/Booster/Pattern/Rewrite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ applyRule pat@Pattern{ceilConditions} rule =
solver <- lift $ RewriteT $ (.smtSolver) <$> ask
SMT.checkPredicates solver pat.constraints pat.substitution (Set.fromList stillUnclear) >>= \case
SMT.IsUnknown reason -> do
withContext CtxAbort $ logMessage reason
withContext CtxWarn $ logMessage reason
-- return unclear rewrite rule condition if the condition is indeterminate
withContext CtxConstraint . withContext CtxWarn . logMessage $
WithJsonMessage (object ["conditions" .= (externaliseTerm . coerce <$> stillUnclear)]) $
Expand Down
Loading

0 comments on commit 5bec591

Please sign in to comment.