Skip to content

Commit 9b0e20d

Browse files
committed
sca: print same inputs
1 parent 5f72e5e commit 9b0e20d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

patronus-sca/src/rewrite.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ pub fn backwards_sub(
3333
println!("XOR/AND: {xor_and_pairs:?}");
3434

3535
let same_input = find_expr_with_same_inputs(ctx, gate_level_expr);
36-
println!("SAME INPUT: {same_input:?}");
36+
println!("Expressions that have the same input:");
37+
for (a, b) in same_input {
38+
println!("{:?} and {:?}", &ctx[a], &ctx[b]);
39+
}
3740

3841
// empirically, it looks like we should not use a stack
3942
let mut todo: VecDeque<_> = todo.into();

0 commit comments

Comments
 (0)