Skip to content

Commit 3c6de1d

Browse files
authored
Merge branch 'dev' into bg/construct-graph-ptxt
2 parents 934b04f + afe00ef commit 3c6de1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

iris-mpc-cpu/src/execution/hawk_main/matching.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl Step3 {
397397
///
398398
/// LUC *OR* policy: "Local" irises match if either side matches.
399399
///
400-
/// Intra-batch *OR* policy: match against requests before this request in the same batch.
400+
/// Intra-batch *AND* policy: match against requests before this request in the same batch.
401401
///
402402
/// Partial matches: set `eyes: Only(Left)` or `eyes: Only(Right)`.
403403
///
@@ -449,7 +449,7 @@ impl Filter {
449449
}
450450

451451
fn intra_rule(&self, left: bool, right: bool) -> bool {
452-
self.intra_batch && self.luc_rule(left, right)
452+
self.intra_batch && self.search_rule(left, right)
453453
}
454454
}
455455
#[cfg(test)]
@@ -549,10 +549,10 @@ mod tests {
549549
#[test]
550550
fn test_intra_rule() {
551551
for x in [false, true] {
552-
// Matching within a batch: OR rule.
553-
assert_eq!(FILTER_INTRA.intra_rule(true, x), true);
554-
assert_eq!(FILTER_INTRA.intra_rule(x, true), true);
555-
assert_eq!(FILTER_INTRA.intra_rule(false, false), false);
552+
// Matching within a batch: AND rule.
553+
assert_eq!(FILTER_INTRA.intra_rule(false, x), false);
554+
assert_eq!(FILTER_INTRA.intra_rule(x, false), false);
555+
assert_eq!(FILTER_INTRA.intra_rule(true, true), true);
556556

557557
// If intra-batch is not requested, always false.
558558
for y in [false, true] {

0 commit comments

Comments
 (0)