Commit 3ef9ccea authored by Philipp Meyer's avatar Philipp Meyer

Make protocol generator produce correct remainder predicate

parent c3f3c6f4
...@@ -281,7 +281,7 @@ createModuloProtocol n c = PopulationProtocol { states = [Mod i | i <- [0..(n-1) ...@@ -281,7 +281,7 @@ createModuloProtocol n c = PopulationProtocol { states = [Mod i | i <- [0..(n-1)
modPredicate = "( " ++ modPredicate = "( " ++
(intercalate " + " [ show i ++ " * " ++ toVar (Mod i) | i <- [0..(n-1)] ]) ++ (intercalate " + " [ show i ++ " * " ++ toVar (Mod i) | i <- [0..(n-1)] ]) ++
" ) % " ++ show n ++ " = " ++ show c " ) =% " ++ show n ++ " " ++ show c
createMajorityProtocol :: MajorityProtocol createMajorityProtocol :: MajorityProtocol
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment