Skip to content

Commit

Permalink
make all logging data types non-strict (#3125)
Browse files Browse the repository at this point in the history
  • Loading branch information
jberthold committed Jun 30, 2022
1 parent 6f10410 commit c86e9d2
Show file tree
Hide file tree
Showing 39 changed files with 127 additions and 10 deletions.
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugAppliedRewriteRules.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugAttemptedRewriteRules.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugBeginClaim.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugCreatedSubstitution.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2022
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugEvaluateCondition.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugProven.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugRetrySolverQuery.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugSolver.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugSubstitutionSimplifier.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugTransition.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down
7 changes: 5 additions & 2 deletions kore/src/Kore/Log/DebugUnification.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand All @@ -23,9 +26,9 @@ import Pretty (
import Pretty qualified

data DebugUnification
= DebugUnificationWhile !WhileDebugUnification
= DebugUnificationWhile WhileDebugUnification
| DebugUnificationSolved UnificationSolved
| DebugUnificationUnsolved !UnificationUnsolved
| DebugUnificationUnsolved UnificationUnsolved
deriving stock (Show)

instance Pretty DebugUnification where
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/DebugUnifyBottom.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorBottomTotalFunction.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorDecidePredicateUnknown.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorEquationRightFunction.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorEquationsSameMatch.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorException.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorOutOfDate.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorParse.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorRewriteLoop.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorRewritesInstantiation.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/ErrorVerify.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/InfoAttemptUnification.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/InfoExecBreadth.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/InfoExecDepth.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/InfoProofDepth.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/InfoReachability.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnBoundedModelChecker.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnClaimRHSIsBottom.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnDepthLimitExceeded.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnFunctionWithoutEvaluators.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnIfLowProductivity.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnNotImplemented.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnRestartSolver.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2022
License : BSD-3-Clause
Expand Down
7 changes: 5 additions & 2 deletions kore/src/Kore/Log/WarnStuckClaimState.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand All @@ -24,10 +27,10 @@ The warning message distinguishes for the user the ways that a proof can be stuc
data WarnStuckClaimState
= -- | The terms of the left- and right-hand sides do not unify,
-- and the left-hand side cannot be rewritten any further.
TermsUnifiableStuck !SomeClaim
TermsUnifiableStuck SomeClaim
| -- | The left- and right-hand side terms are unifiable, but the left-hand side
-- condition does not imply the right-hand side condition.
TermsNotUnifiableStuck !SomeClaim
TermsNotUnifiableStuck SomeClaim
deriving stock (Show)

instance Pretty WarnStuckClaimState where
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnSymbolSMTRepresentation.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions kore/src/Kore/Log/WarnTrivialClaim.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Expand Down
15 changes: 9 additions & 6 deletions kore/src/Kore/Log/WarnUnsimplified.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2021
License : BSD-3-Clause
Expand Down Expand Up @@ -34,16 +37,16 @@ import Pretty (
import Pretty qualified

data WarnUnsimplifiedPredicate = WarnUnsimplifiedPredicate
{ limit :: !Int
, original :: !(Predicate RewritingVariableName)
, output :: !(MultiOr (MultiAnd (Predicate RewritingVariableName)))
{ limit :: Int
, original :: (Predicate RewritingVariableName)
, output :: (MultiOr (MultiAnd (Predicate RewritingVariableName)))
}
deriving stock (Show)

data WarnUnsimplifiedCondition = WarnUnsimplifiedCondition
{ limit :: !Int
, original :: !(Condition RewritingVariableName)
, output :: !(Condition RewritingVariableName)
{ limit :: Int
, original :: (Condition RewritingVariableName)
, output :: (Condition RewritingVariableName)
}
deriving stock (Show)

Expand Down
3 changes: 3 additions & 0 deletions kore/src/Log.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}

{- |
Copyright : (c) Runtime Verification, 2018-2021
License : BSD-3-Clause
Expand Down

0 comments on commit c86e9d2

Please sign in to comment.