changeset 238:632c18c86fde

secret_if, now computing the right branches Before I had the branches switched around... embarrassing.
author Sigurd Meldgaard <stm@daimi.au.dk>
date Tue, 05 Jan 2010 14:41:09 +0100
parents 95721959e087
children f4a00d87e209
files pysmcl/secret_ifs.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/secret_ifs.py	Tue Jan 05 13:44:42 2010 +0100
+++ b/pysmcl/secret_ifs.py	Tue Jan 05 14:41:09 2010 +0100
@@ -145,15 +145,15 @@
                 right_hand = loc(ast.BinOp(
                         op=ast.Mult(),
                         left=loc(ast.BinOp(op=ast.Sub(),
-                                             left=v2,
-                                             right=v1)),
+                                             left=v1,
+                                             right=v2)),
                         right=cond_load))
 
                 combine = loc(ast.Assign(
                         targets=[loc(ast.Name(id=id, ctx=ast.Store))],
                         value=
                         loc(ast.BinOp(op=ast.Add(),
-                                      left=v1,
+                                      left=v2,
                                       right=right_hand))))
 
                 # combine.synthetic = False the combination of the two