Skip to content

Commit

Permalink
debug cpgenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
hadipourh committed Dec 17, 2024
1 parent 579d014 commit 357a5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sboxanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ def generate_cp_constraints(self, propagation_dictionary, input_variables=None,
if len(output_variables) != n:
raise ValueError(f"The size of output variables should be {n}")
output_variables = output_variables
last_condition = " /\\ ".join([f"output_variables{i} = -1" for i in range(n)])
last_condition = " /\\ ".join([f"{output_variables[i]} = -1" for i in range(n)])
constraints = ""
for i, (input, output) in enumerate(propagation_dictionary.items()):
input_str = [f"{input_variables[i]} == {input[i]}" for i in range(m)]
Expand Down

0 comments on commit 357a5c6

Please sign in to comment.