Skip to content

Commit 7513449

Browse files
authored
Fix remaining int62l references (#640)
The type has been renamed to `UnsatInt`, and the functions to `unsatint`
1 parent 6b58de4 commit 7513449

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/modular/bernstein_yang.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,14 +587,14 @@ mod tests {
587587
}
588588

589589
#[test]
590-
fn int62l_add() {
590+
fn unsatint_add() {
591591
assert_eq!(UnsatInt::ZERO, UnsatInt::ZERO.add(&UnsatInt::ZERO));
592592
assert_eq!(UnsatInt::ONE, UnsatInt::ONE.add(&UnsatInt::ZERO));
593593
assert_eq!(UnsatInt::ZERO, UnsatInt::MINUS_ONE.add(&UnsatInt::ONE));
594594
}
595595

596596
#[test]
597-
fn int62l_mul() {
597+
fn unsatint_mul() {
598598
assert_eq!(UnsatInt::ZERO, UnsatInt::ZERO.mul(0));
599599
assert_eq!(UnsatInt::ZERO, UnsatInt::ZERO.mul(1));
600600
assert_eq!(UnsatInt::ZERO, UnsatInt::ONE.mul(0));
@@ -604,21 +604,21 @@ mod tests {
604604
}
605605

606606
#[test]
607-
fn int62l_neg() {
607+
fn unsatint_neg() {
608608
assert_eq!(UnsatInt::ZERO, UnsatInt::ZERO.neg());
609609
assert_eq!(UnsatInt::MINUS_ONE, UnsatInt::ONE.neg());
610610
assert_eq!(UnsatInt::ONE, UnsatInt::MINUS_ONE.neg());
611611
}
612612

613613
#[test]
614-
fn int62l_is_negative() {
614+
fn unsatint_is_negative() {
615615
assert!(!UnsatInt::ZERO.is_negative().to_bool_vartime());
616616
assert!(!UnsatInt::ONE.is_negative().to_bool_vartime());
617617
assert!(UnsatInt::MINUS_ONE.is_negative().to_bool_vartime());
618618
}
619619

620620
#[test]
621-
fn int62l_shr() {
621+
fn unsatint_shr() {
622622
let n = super::UnsatInt([
623623
0,
624624
1211048314408256470,

src/modular/bernstein_yang/boxed.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ mod tests {
587587
}
588588

589589
#[test]
590-
fn boxed_int62l_is_zero() {
590+
fn boxed_unsatint_is_zero() {
591591
let zero = BoxedUnsatInt::from(&U256::ZERO.into());
592592
assert!(bool::from(zero.is_zero()));
593593

@@ -596,7 +596,7 @@ mod tests {
596596
}
597597

598598
#[test]
599-
fn boxed_int62l_is_one() {
599+
fn boxed_unsatint_is_one() {
600600
let zero = BoxedUnsatInt::from(&U256::ZERO.into());
601601
assert!(!bool::from(zero.is_one()));
602602

@@ -605,7 +605,7 @@ mod tests {
605605
}
606606

607607
#[test]
608-
fn int62l_shr_assign() {
608+
fn unsatint_shr_assign() {
609609
let mut n = BoxedUnsatInt(
610610
vec![
611611
0,
@@ -641,7 +641,7 @@ mod tests {
641641
proptest! {
642642
#[test]
643643
#[cfg(not(miri))]
644-
fn boxed_int62l_add(x in u256(), y in u256()) {
644+
fn boxed_unsatint_add(x in u256(), y in u256()) {
645645
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
646646
let y_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&y);
647647
let mut x_boxed = BoxedUnsatInt::from(&x.into());
@@ -654,7 +654,7 @@ mod tests {
654654

655655
#[test]
656656
#[cfg(not(miri))]
657-
fn boxed_int62l_mul(x in u256(), y in any::<i64>()) {
657+
fn boxed_unsatint_mul(x in u256(), y in any::<i64>()) {
658658
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
659659
let x_boxed = BoxedUnsatInt::from(&x.into());
660660

@@ -665,7 +665,7 @@ mod tests {
665665

666666
#[test]
667667
#[cfg(not(miri))]
668-
fn boxed_int62l_neg(x in u256()) {
668+
fn boxed_unsatint_neg(x in u256()) {
669669
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
670670
let x_boxed = BoxedUnsatInt::from(&x.into());
671671

@@ -676,7 +676,7 @@ mod tests {
676676

677677
#[test]
678678
#[cfg(not(miri))]
679-
fn boxed_int62l_shr(x in u256()) {
679+
fn boxed_unsatint_shr(x in u256()) {
680680
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
681681
let mut x_boxed = BoxedUnsatInt::from(&x.into());
682682
x_boxed.shr_assign();
@@ -688,7 +688,7 @@ mod tests {
688688
#[test]
689689
#[cfg(not(miri))]
690690

691-
fn boxed_int62l_is_negative(x in u256()) {
691+
fn boxed_unsatint_is_negative(x in u256()) {
692692
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
693693
let x_boxed = BoxedUnsatInt::from(&x.into());
694694
assert_eq!(x_ref.is_negative().to_bool_vartime(), bool::from(x_boxed.is_negative()));
@@ -697,7 +697,7 @@ mod tests {
697697
#[test]
698698
#[cfg(not(miri))]
699699

700-
fn boxed_int62l_is_minus_one(x in u256()) {
700+
fn boxed_unsatint_is_minus_one(x in u256()) {
701701
let x_ref = UnsatInt::<{ bernstein_yang_nlimbs!(256usize) }>::from_uint(&x);
702702
let x_boxed = BoxedUnsatInt::from(&x.into());
703703
assert!(bool::from(x_boxed.is_minus_one().ct_eq(&x_ref.eq(&UnsatInt::MINUS_ONE).into())));

0 commit comments

Comments
 (0)