Skip to content

Commit 5cf64e1

Browse files
committed
Merge remote-tracking branch 'rv/master' into full-correctness
2 parents 50d55de + 6c05519 commit 5cf64e1

File tree

6 files changed

+11
-20
lines changed

6 files changed

+11
-20
lines changed

kore/src/Kore/Exec.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ exec
339339
infoExecDepth (maximum (ExecDepth 0 : depths))
340340
let finalConfigs' =
341341
MultiOr.make $
342-
catMaybes $
343-
extractProgramState
344-
<$> finalConfigs
342+
mapMaybe extractProgramState finalConfigs
345343
exitCode <- getExitCode verifiedModule finalConfigs'
346344
let finalTerm =
347345
MultiOr.map getRewritingPattern finalConfigs'

kore/src/Kore/Log/KoreLogOptions.hs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -485,16 +485,10 @@ unparseKoreLogOptions
485485
["--sqlog", file]
486486

487487
debugApplyEquationOptionsFlag (DebugApplyEquationOptions set) =
488-
concat $
489-
("--debug-apply-equation" :) . (: []) . Text.unpack
490-
<$> toList set
488+
concatMap (("--debug-apply-equation" :) . (: []) . Text.unpack) (toList set)
491489

492490
debugAttemptEquationOptionsFlag (DebugAttemptEquationOptions set) =
493-
concat $
494-
("--debug-attempt-equation" :) . (: []) . Text.unpack
495-
<$> toList set
491+
concatMap (("--debug-attempt-equation" :) . (: []) . Text.unpack) (toList set)
496492

497493
debugEquationOptionsFlag (DebugEquationOptions set) =
498-
concat $
499-
("--debug-equation" :) . (: []) . Text.unpack
500-
<$> toList set
494+
concatMap (("--debug-equation" :) . (: []) . Text.unpack) (toList set)

kore/src/Kore/Validate/PatternVerifier.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,9 @@ verifyDomainValue domain = do
484484
verified <- Internal.DomainValueF <$> sequence domain
485485
let freeVariables' :: FreeVariables VariableName =
486486
foldMap
487-
freeVariables
488-
(Internal.extractAttributes <$> verified)
487+
( freeVariables . Internal.extractAttributes
488+
)
489+
verified
489490
unless
490491
(nullFreeVariables freeVariables')
491492
(koreFail "Domain value must not contain free variables.")

kore/test/Test/Data/Sup.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ hprop_transitiveOrd =
4949

5050
hprop_reflexiveOrd :: Property
5151
hprop_reflexiveOrd =
52-
(property . sequence_)
53-
(reflexive <$> sups)
52+
property (mapM_ reflexive sups)
5453
where
5554
reflexive x = do
5655
annotateShow x
@@ -67,8 +66,7 @@ hprop_antisymmetricOrd =
6766

6867
hprop_reflexiveEq :: Property
6968
hprop_reflexiveEq =
70-
(property . sequence_)
71-
(reflexive <$> sups)
69+
property (mapM_ reflexive sups)
7270
where
7371
reflexive x = do
7472
annotateShow x

kore/test/Test/Kore/Attribute/Axiom/Concrete.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test_concrete_selectx2 =
6262
, concreteAttribute [inject Mock.z]
6363
]
6464
where
65-
freeVars = foldMap freeVariable $ inject <$> [Mock.x, Mock.y, Mock.z]
65+
freeVars = foldMap (freeVariable . inject) [Mock.x, Mock.y, Mock.z]
6666
concreteVars = foldMap (freeVariable . inject) [Mock.x, Mock.z]
6767

6868
test_Attributes :: TestTree

kore/test/Test/Kore/Attribute/Axiom/Symbolic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test_symbolic_selectx2 =
6060
, symbolicAttribute [inject Mock.z]
6161
]
6262
where
63-
freeVars = foldMap freeVariable $ inject <$> [Mock.x, Mock.y, Mock.z]
63+
freeVars = foldMap (freeVariable . inject) [Mock.x, Mock.y, Mock.z]
6464
symbolicVars = foldMap (freeVariable . inject) [Mock.x, Mock.z]
6565

6666
test_Attributes :: TestTree

0 commit comments

Comments
 (0)