Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
i7
peregrine
Commits
c896169b
Commit
c896169b
authored
Aug 06, 2018
by
Philipp Meyer
Browse files
Add initial predicate to solver
parent
7b8da344
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PopulationProtocol.hs
View file @
c896169b
...
...
@@ -6,7 +6,7 @@ module PopulationProtocol
Configuration
,
FlowVector
,
RConfiguration
,
RFlowVector
,
renameState
,
renameTransition
,
renameStatesAndTransitions
,
invertPopulationProtocol
,
name
,
showNetName
,
states
,
transitions
,
initialStates
,
trueStates
,
falseStates
,
predicate
,
name
,
showNetName
,
states
,
transitions
,
initialStates
,
trueStates
,
falseStates
,
predicate
,
initialPredicate
,
pre
,
lpre
,
post
,
lpost
,
mpre
,
mpost
,
context
,
makePopulationProtocol
,
makePopulationProtocolWithTrans
,
makePopulationProtocolFromStrings
,
makePopulationProtocolWithTransFromStrings
,
...
...
src/Solver/StrongConsensus.hs
View file @
c896169b
...
...
@@ -48,7 +48,8 @@ terminalConstraints pp m =
initialConfiguration
::
PopulationProtocol
->
SIMap
State
->
SBool
initialConfiguration
pp
m0
=
(
sum
(
mval
m0
(
initialStates
pp
))
.>=
2
)
&&&
(
sum
(
mval
m0
(
states
pp
\\
initialStates
pp
))
.==
0
)
(
sum
(
mval
m0
(
states
pp
\\
initialStates
pp
))
.==
0
)
&&&
(
evaluateFormula
(
initialPredicate
pp
)
m0
)
differentConsensusConstraints
::
Bool
->
PopulationProtocol
->
SIMap
State
->
SIMap
State
->
SIMap
State
->
SIMap
State
->
SIMap
State
->
SBool
differentConsensusConstraints
checkCorrectness
pp
m0
m1
m2
qe
qa
=
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment