Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
i7
peregrine
Commits
d3719a77
Commit
d3719a77
authored
May 16, 2017
by
Philipp Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stronger constraints for initial configuration
parent
612a3cfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/Solver/StrongConsensus.hs
src/Solver/StrongConsensus.hs
+2
-1
No files found.
src/Solver/StrongConsensus.hs
View file @
d3719a77
...
...
@@ -46,7 +46,8 @@ terminalConstraints pp m =
initialConfiguration
::
PopulationProtocol
->
SIMap
State
->
SBool
initialConfiguration
pp
m0
=
sum
(
mval
m0
(
states
pp
\\
initialStates
pp
))
.==
0
(
sum
(
mval
m0
(
initialStates
pp
))
.>=
2
)
&&&
(
sum
(
mval
m0
(
states
pp
\\
initialStates
pp
))
.==
0
)
differentConsensusConstraints
::
PopulationProtocol
->
SIMap
State
->
SIMap
State
->
SBool
differentConsensusConstraints
pp
m1
m2
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment