Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . Thank you!

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