Skip to content

Commit cab0016

Browse files
committed
Debug remainder
1 parent c11397f commit cab0016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kore/src/Kore/Rewrite/RewriteStep.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module Kore.Rewrite.RewriteStep (
1818
import Control.Monad.State.Strict qualified as State
1919
import Control.Monad.Trans.Class qualified as Monad.Trans
2020
import Data.Sequence qualified as Seq
21+
import Data.Text qualified as Text
2122
import Kore.Attribute.Label (
2223
Label (..),
2324
)
@@ -42,6 +43,7 @@ import Kore.Internal.TermLike as TermLike
4243
import Kore.Log.DebugAppliedRewriteRules (
4344
debugAppliedRewriteRules,
4445
)
46+
import Kore.Log.DebugContext
4547
import Kore.Log.DebugCreatedSubstitution (debugCreatedSubstitution)
4648
import Kore.Log.DebugRewriteRulesRemainder (debugRewriteRulesRemainder)
4749
import Kore.Log.DebugRewriteTrace (
@@ -85,6 +87,7 @@ import Kore.Simplify.Simplify (
8587
simplifyCondition,
8688
)
8789
import Kore.Substitute
90+
import Log
8891
import Logic (
8992
LogicT,
9093
)
@@ -298,6 +301,7 @@ finalizeRulesParallel
298301
remainderPredicate = Remainder.remainder' unifications
299302
-- FIXME pass the actual unified rules, rather than their count, to the debug function
300303
debugRewriteRulesRemainder initial (length unifiedRules) remainderPredicate
304+
inContext "combined-remainder" $ logInfo (Text.pack $ show remainderPredicate)
301305
-- evaluate the remainder predicate to make sure it is actually satisfiable
302306
SMT.evalPredicate
303307
(ErrorDecidePredicateUnknown $srcLoc Nothing)

0 commit comments

Comments
 (0)