File tree Expand file tree Collapse file tree 6 files changed +11
-20
lines changed
Expand file tree Collapse file tree 6 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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." )
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ hprop_transitiveOrd =
4949
5050hprop_reflexiveOrd :: Property
5151hprop_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
6867hprop_reflexiveEq :: Property
6968hprop_reflexiveEq =
70- (property . sequence_ )
71- (reflexive <$> sups)
69+ property (mapM_ reflexive sups)
7270 where
7371 reflexive x = do
7472 annotateShow x
Original file line number Diff line number Diff 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
6868test_Attributes :: TestTree
Original file line number Diff line number Diff 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
6666test_Attributes :: TestTree
You can’t perform that action at this time.
0 commit comments