Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CoPaR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Informatik 8
CoPaR
Commits
182e88da
Commit
182e88da
authored
6 years ago
by
Hans-Peter Deifel
Browse files
Options
Downloads
Patches
Plain Diff
Fix more hlint suggestions
parent
7f0d3699
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Copar/Algorithm/Split.hs
+3
-3
3 additions, 3 deletions
src/Copar/Algorithm/Split.hs
with
3 additions
and
3 deletions
src/Copar/Algorithm/Split.hs
+
3
−
3
View file @
182e88da
...
@@ -74,7 +74,7 @@ updateBlock b v0 = ask >>= \(as, _) -> lift $ do
...
@@ -74,7 +74,7 @@ updateBlock b v0 = ask >>= \(as, _) -> lift $ do
!
pc
<-
(
fromEdgeRef
.
head
<$>
VM
.
read
(
toSub
as
)
x
)
!
pc
<-
(
fromEdgeRef
.
head
<$>
VM
.
read
(
toSub
as
)
x
)
>>=
VM
.
read
(
lastW
as
)
>>=
VM
.
read
(
lastW
as
)
labelsToS
<-
VM
.
read
(
toSub
as
)
x
>>=
(
mapM
$
\
e
->
do
labelsToS
<-
VM
.
read
(
toSub
as
)
x
>>=
mapM
(
\
e
->
do
let
Edge
_
!
lab
_
=
graph
(
encoding
as
)
e
let
Edge
_
!
lab
_
=
graph
(
encoding
as
)
e
return
$!
lab
)
return
$!
lab
)
...
@@ -109,7 +109,7 @@ splitBlock b = ask >>= \(as, _) -> lift $ do
...
@@ -109,7 +109,7 @@ splitBlock b = ask >>= \(as, _) -> lift $ do
-- We can use unsafeStatesOfBlock here, since the resulting vector is
-- We can use unsafeStatesOfBlock here, since the resulting vector is
-- immediatly consumed and not referenced afterwards.
-- immediatly consumed and not referenced afterwards.
!
pmc
<-
(
possibleMajorityCandidateBy'
unsafeF3
)
<$>
!
pmc
<-
possibleMajorityCandidateBy'
unsafeF3
<$>
Partition
.
unsafeStatesOfBlock
(
partition
as
)
b1
Partition
.
unsafeStatesOfBlock
(
partition
as
)
b1
-- the pmc occurs in b1, so b1' has to be non-empty
-- the pmc occurs in b1, so b1' has to be non-empty
...
@@ -162,7 +162,7 @@ collectTouchedBlocks blockS = do
...
@@ -162,7 +162,7 @@ collectTouchedBlocks blockS = do
sizeOfB
<-
Partition
.
blockSize
(
partition
as
)
b
sizeOfB
<-
Partition
.
blockSize
(
partition
as
)
b
when
(
sizeOfB
==
1
)
$
do
when
(
sizeOfB
==
1
)
$
-- We found an edge with an outgoing block that has only one state.
-- We found an edge with an outgoing block that has only one state.
modifySTRef'
(
size1Count
as
)
(
+
1
)
modifySTRef'
(
size1Count
as
)
(
+
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment