=== alexandria_math-0.5.1 === >>> curl -sSLf https://scarbs.xyz/api/v1/dl/alexandria_math/0.5.1 -o archive-589895200426594304.tar.zstd >>> tar --zstd -xf archive-589895200426594304.tar.zstd --strip-components 1 >>> maat-check-versions [out] Name Version Source Installed [out] nodejs 23.11.0 ASDF_NODEJS_VERSION true [out] scarb nightly-2025-06-16 ASDF_SCARB_VERSION true [out] starknet-foundry 0.44.0 ASDF_STARKNET-FOUNDRY_VERSION true >>> maat-patch [err] Installed 1 package in 2ms [out] diff --git a/Scarb.toml b/Scarb.toml [out] index 66faf4c..3fe5203 100644 [out] --- a/Scarb.toml [out] +++ b/Scarb.toml [out] @@ -16,7 +16,7 @@ edition = "2023_11" [out] description = "A set of math libraries and algorithms" [out] homepage = "https://github.com/keep-starknet-strange/alexandria/tree/main/packages/math" [out] readme = "README.md" [out] -cairo-version = "^2.11.2" [out] +cairo-version = "2.11.4+nightly-2025-06-16" # NOTE: added by maat-patch, was: '^2.11.2' [out] re-export-cairo-plugins = [] [out] [out] [dependencies] [out] @@ -24,3 +24,22 @@ re-export-cairo-plugins = [] [out] [tool.fmt] [out] sort-module-level-items = true [out] [out] +[tool.scarb] [out] +allow-prebuilt-plugins = ["snforge_std"] # NOTE: maat-patch added 'snforge_std' [out] + [out] +[dev-dependencies] [out] +cairo_test = "2.11.4+nightly-2025-06-16" # NOTE: added by maat-patch, was: None [out] + [out] +[scripts] [out] +test = "scarb cairo-test" # NOTE: added by maat-patch, was: None [out] + [out] +[patch.scarbs-xyz] [out] +assert_macros = "2.11.4+nightly-2025-06-16" # NOTE: added by maat-patch, was: None [out] +starknet = "2.11.4+nightly-2025-06-16" # NOTE: added by maat-patch, was: None [out] +cairo_test = "2.11.4+nightly-2025-06-16" # NOTE: added by maat-patch, was: None [out] +snforge_std = "0.44.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.44.0" # NOTE: added by maat-patch, was: None [out] + [out] +[patch."https://github.com/foundry-rs/starknet-foundry.git"] [out] +snforge_std = "0.44.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.44.0" # NOTE: added by maat-patch, was: None >>> scarb fetch [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used >>> scarb tree -q --workspace [out] alexandria_math v0.5.1 (/mnt/maat-workbench/Scarb.toml) [out] └── [dev-dependencies] [out] └── cairo_test v2.11.4 (std) >>> SCARB_IGNORE_CAIRO_VERSION=true scarb build --workspace --test [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] Compiling test(alexandria_math_unittest) alexandria_math v0.5.1 (/mnt/maat-workbench/Scarb.toml) [out] warn: Usage of deprecated feature `"corelib-internal-use"` with no `#[feature("corelib-internal-use")]` attribute. Note: "Use `starknet` directly" [out] --> /mnt/maat-workbench/src/bip340.cairo:3:11 [out] use core::starknet::SyscallResultTrait; [out] ^^^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:7:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:51:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:417:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:667:26 [out] let result = sha256::sha256(data); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-keccak"` with no `#[feature("deprecated-keccak")]` attribute. Note: "Use `core::keccak::compute_keccak_byte_array`." [out] --> /mnt/maat-workbench/src/tests/test_keccak256.cairo:1:33 [out] use alexandria_math::keccak256::keccak256; [out] ^^^^^^^^^ [out] [out] Finished `dev` profile target(s) in 19 seconds >>> SCARB_IGNORE_CAIRO_VERSION=true scarb lint --workspace --deny-warnings [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] Linting alexandria_math v0.5.1 (/mnt/maat-workbench/Scarb.toml) [out] warn: Plugin diagnostic: Manual `unwrap_or` detected. Consider using `unwrap_or()` instead. [out] --> /mnt/maat-workbench/src/bip340.cairo:85:9-89:5 [out] match Secp256Trait::::secp256_ec_get_point_from_x_syscall(px, false) [out] _________^ [out] | ... [out] | }; [out] |_____^ [out] [out] warn: Usage of deprecated feature `"corelib-internal-use"` with no `#[feature("corelib-internal-use")]` attribute. Note: "Use `starknet` directly" [out] --> /mnt/maat-workbench/src/bip340.cairo:3:11 [out] use core::starknet::SyscallResultTrait; [out] ^^^^^^^^ [out] [out] warn: Plugin diagnostic: You seem to be trying to use `&` for parity check. Consider using `DivRem::div_rem()` instead. [out] --> /mnt/maat-workbench/src/bitmap.cairo:152:13 [out] if (x & 0x1) > 0 { [out] ^^^^^^^ [out] [out] warn: Plugin diagnostic: Each `if`-statement adds one level of nesting, which makes code look more complex than it really is. [out] --> /mnt/maat-workbench/src/ed25519.cairo:285:9-289:9 [out] if (x == 0) { [out] _________^ [out] | ... [out] | } [out] |_________^ [out] [out] warn: Plugin diagnostic: You seem to be trying to use `&` for parity check. Consider using `DivRem::div_rem()` instead. [out] --> /mnt/maat-workbench/src/ed25519.cairo:245:25 [out] let x_0: u256 = (last_byte.into() / 128) & 1; // bitshift of 255 [out] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [out] [out] warn: Plugin diagnostic: using `clone` on type which implements `Copy` trait [out] --> /mnt/maat-workbench/src/ed25519.cairo:402:20 [out] res.append(v.clone()); [out] ^^^^^^^^^ [out] [out] warn: Plugin diagnostic: Manual `unwrap_or` detected. Consider using `unwrap_or()` instead. [out] --> /mnt/maat-workbench/src/sha512.cairo:128:25-131:9 [out] let data: u64 = match data.try_into() { [out] _________________________^ [out] | ... [out] | }; [out] |_________^ [out] [out] warn: Plugin diagnostic: This operation doesn't change the value and can be simplified. [out] --> /mnt/maat-workbench/src/sha512.cairo:284:64 [out] let new_word: u64 = math_shl_precomputed::((*data[i + 0]).into(), TWO_POW_56) [out] ^^^^^ [out] [out] warn: Plugin diagnostic: Manual assert detected. Consider using assert!() macro instead. [out] --> /mnt/maat-workbench/src/u512_arithmetics.cairo:57:17-59:17 [out] if did_overflow { [out] _________________^ [out] | panic!("u512 add overflow"); [out] | } [out] |_________________^ [out] [out] warn: Plugin diagnostic: Manual assert detected. Consider using assert!() macro instead. [out] --> /mnt/maat-workbench/src/u512_arithmetics.cairo:88:17-90:17 [out] if did_overflow { [out] _________________^ [out] | panic!("u512 sub overflow"); [out] | } [out] |_________________^ [out] [out] error: lint checking `alexandria_math` failed due to previous errors [out] [out] Stack backtrace: [out] 0: anyhow::kind::Adhoc::new [out] 1: anyhow::__private::format_err.104784 [out] 2: scarb::ops::lint::lint [out] 3: scarb::commands::lint::do_lint [out] 4: scarb::commands::run [out] 5: scarb::main [out] 6: std::sys::backtrace::__rust_begin_short_backtrace [out] 7: main [out] 8: __libc_start_call_main [out] 9: __libc_start_main_impl [out] 10: _start Process finished with exit code 1 >>> SCARB_IGNORE_CAIRO_VERSION=true SNFORGE_FUZZER_SEED=1 SNFORGE_IGNORE_FORK_TESTS=1 scarb test --workspace [out] Running test alexandria_math (scarb cairo-test) [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] Compiling test(alexandria_math_unittest) alexandria_math v0.5.1 (/mnt/maat-workbench/Scarb.toml) [out] warn: Usage of deprecated feature `"corelib-internal-use"` with no `#[feature("corelib-internal-use")]` attribute. Note: "Use `starknet` directly" [out] --> /mnt/maat-workbench/src/bip340.cairo:3:11 [out] use core::starknet::SyscallResultTrait; [out] ^^^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:7:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:51:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:417:26 [out] let result = sha256::sha256(input); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [out] --> /mnt/maat-workbench/src/tests/sha256_test.cairo:667:26 [out] let result = sha256::sha256(data); [out] ^^^^^^ [out] [out] warn: Usage of deprecated feature `"deprecated-keccak"` with no `#[feature("deprecated-keccak")]` attribute. Note: "Use `core::keccak::compute_keccak_byte_array`." [out] --> /mnt/maat-workbench/src/tests/test_keccak256.cairo:1:33 [out] use alexandria_math::keccak256::keccak256; [out] ^^^^^^^^^ [out] [out] Finished `dev` profile target(s) in 20 seconds [out] Testing alexandria_math [out] running 179 tests [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_1 ... ok (gas usage est.: 2383) [out] test alexandria_math::tests::aliquot_sum_test::zero_test ... ok (gas usage est.: 300) [out] test alexandria_math::tests::trigonometry_test::tan_negative_test_1 ... ok (gas usage est.: 24600) [out] test alexandria_math::tests::perfect_number_test::perfect_big_number_test ... ok (gas usage est.: 2304900) [out] test alexandria_math::tests::perfect_number_test::not_perfect_small_number_test ... ok (gas usage est.: 414070) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_2 ... ok (gas usage est.: 2383) [out] test alexandria_math::tests::u512_arithmetics_test::test_u512_add ... ok (gas usage est.: 4500) [out] test alexandria_math::tests::aliquot_sum_test::one_test ... ok (gas usage est.: 300) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_3 ... ok (gas usage est.: 2883) [out] test alexandria_math::tests::u512_arithmetics_test::test_u512_sub ... ok (gas usage est.: 8100) [out] test alexandria_math::tests::aliquot_sum_test::two_test ... ok (gas usage est.: 3440) [out] test alexandria_math::tests::perfect_number_test::not_perfect_big_number_test ... ok (gas usage est.: 2307230) [out] test alexandria_math::tests::perfect_number_test::perfect_numbers_test ... ok (gas usage est.: 189370) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_4 ... ok (gas usage est.: 2383) [out] test alexandria_math::tests::aliquot_sum_test::one_digit_number_test ... ok (gas usage est.: 13220) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_to_ray_conversion ... ok (gas usage est.: 315320) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_5 ... ok (gas usage est.: 1300) [out] test alexandria_math::tests::aliquot_sum_test::two_digit_number_test ... ok (gas usage est.: 30900) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_to_wad_conversion ... ok (gas usage est.: 310060) [out] test alexandria_math::tests::sha256_test::sha256_empty_test ... ok (gas usage est.: 7764022) [out] test alexandria_math::tests::is_prime_test::is_prime_test_1 ... ok (gas usage est.: 300) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_wad_mul_overflow ... ok (gas usage est.: 425540) [out] test alexandria_math::tests::aliquot_sum_test::three_digit_number_test ... ok (gas usage est.: 755780) [out] test alexandria_math::tests::sha256_test::sha256_random_data_test ... ok (gas usage est.: 7700962) [out] test alexandria_math::tests::is_prime_test::is_prime_test_2 ... ok (gas usage est.: 900) [out] test alexandria_math::tests::aliquot_sum_test::two_digit_prime_number_test ... ok (gas usage est.: 34380) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_trivial ... ok (gas usage est.: 521540) [out] test alexandria_math::tests::armstrong_number_test::one_digit_armstrong_number_test ... ok (gas usage est.: 14630) [out] test alexandria_math::tests::is_prime_test::is_prime_test_3 ... ok (gas usage est.: 900) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_fractions ... ok (gas usage est.: 216790) [out] test alexandria_math::tests::sha256_test::sha256_lorem_ipsum_test ... ok (gas usage est.: 44443312) [out] test alexandria_math::tests::armstrong_number_test::two_digit_numbers_are_not_armstrong_numbers_test ... ok (gas usage est.: 24600) [out] test alexandria_math::tests::is_prime_test::is_prime_test_4 ... ok (gas usage est.: 240370) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_wad_div_zero ... ok (gas usage est.: 22640) [out] test alexandria_math::tests::sha256_test::sha256_url ... ok (gas usage est.: 29697368) [out] test alexandria_math::tests::armstrong_number_test::three_digit_armstrong_number_test ... ok (gas usage est.: 68780) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_div_trivial ... ok (gas usage est.: 698050) [out] test alexandria_math::tests::karatsuba_test::multiply_same_size_positive_number ... ok (gas usage est.: 9971150) [out] test alexandria_math::tests::armstrong_number_test::three_digit_non_armstrong_number_test ... ok (gas usage est.: 31780) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_div_fractions ... ok (gas usage est.: 97450) [out] test alexandria_math::tests::karatsuba_test::multiply_distinct_size_positive_number ... ok (gas usage est.: 644600) [out] test alexandria_math::tests::sha512_test::test_sha512_lorem_ipsum ... ok (gas usage est.: 31900618) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_rounding ... ok (gas usage est.: 47100) [out] test alexandria_math::tests::bip340_test::test_0 ... ok (gas usage est.: 31051650) [out] test alexandria_math::tests::sha512_test::test_sha512_size_one ... ok (gas usage est.: 11137110) [out] test alexandria_math::tests::karatsuba_test::multiply_by_zero ... ok (gas usage est.: 19997020) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_rounding_up ... ok (gas usage est.: 178850) [out] test alexandria_math::tests::bip340_test::test_1 ... ok (gas usage est.: 31052530) [out] test alexandria_math::tests::karatsuba_test::multiply_by_number_lt_ten ... ok (gas usage est.: 164280) [out] test alexandria_math::tests::sha512_test::test_size_zero ... ok (gas usage est.: 11139650) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_ray_mul_overflow ... ok (gas usage est.: 425540) [out] test alexandria_math::tests::bip340_test::test_2 ... ok (gas usage est.: 31052440) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test ... ok (gas usage est.: 62000) [out] test alexandria_math::tests::test_keccak256::test_keccak256_empty_bytes ... ok (gas usage est.: 248014) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_trivial ... ok (gas usage est.: 521540) [out] test alexandria_math::tests::bip340_test::test_3 ... ok (gas usage est.: 31052440) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_tryinto ... ok (gas usage est.: 51640) [out] test alexandria_math::tests::test_keccak256::test_keccak256_partial_bytes ... ok (gas usage est.: 266794) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_fractions ... ok (gas usage est.: 231370) [out] test alexandria_math::tests::bip340_test::test_4 ... ok (gas usage est.: 31052440) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_inverse ... ok (gas usage est.: 54350) [out] test alexandria_math::tests::test_keccak256::test_keccak256_full_u256 ... ok (gas usage est.: 354694) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_ray_div_zero ... ok (gas usage est.: 22640) [out] test alexandria_math::tests::bip340_test::test_5 ... ok (gas usage est.: 69320) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_3 ... ok (gas usage est.: 46200) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_1 ... ok (gas usage est.: 8290) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_div_trivial ... ok (gas usage est.: 698050) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_4 ... ok (gas usage est.: 46200) [out] test alexandria_math::tests::bip340_test::test_6 ... ok (gas usage est.: 31052340) [out] test alexandria_math::tests::trigonometry_test::sin_negative_test_1 ... ok (gas usage est.: 9230) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_div_fractions ... ok (gas usage est.: 97450) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_single_test ... ok (gas usage est.: 3900) [out] test alexandria_math::tests::bip340_test::test_7 ... ok (gas usage est.: 31052340) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_2 ... ok (gas usage est.: 11010) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_empty_input_test ... ok (gas usage est.: 1200) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_rounding ... ok (gas usage est.: 479680) [out] test alexandria_math::tests::bip340_test::test_8 ... ok (gas usage est.: 31052740) [out] test alexandria_math::tests::trigonometry_test::sin_negative_test_2 ... ok (gas usage est.: 11950) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_rounding_up ... ok (gas usage est.: 208010) [out] test alexandria_math::tests::math_test::test_pow_power_2_all ... ok (gas usage est.: 6277410) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_3 ... ok (gas usage est.: 8290) [out] test alexandria_math::tests::bip340_test::test_9 ... ok (gas usage est.: 31046840) [out] test alexandria_math::tests::zellers_congruence_test::zellers_congruence_test ... ok (gas usage est.: 118100) [out] test alexandria_math::tests::math_test::pow_test ... ok (gas usage est.: 186720) [out] test alexandria_math::tests::trigonometry_test::cos_positive_test_1 ... ok (gas usage est.: 8290) [out] test alexandria_math::tests::bip340_test::test_10 ... ok (gas usage est.: 31046750) [out] test alexandria_math::tests::zellers_congruence_test::zellers_congruence_invalid_parameters_test ... ok (gas usage est.: 146200) [out] test alexandria_math::tests::trigonometry_test::cos_negative_test_1 ... ok (gas usage est.: 9230) [out] test alexandria_math::tests::math_test::count_digits_of_base_test ... ok (gas usage est.: 114840) [out] test alexandria_math::tests::bip340_test::test_11 ... ok (gas usage est.: 31052740) [out] test alexandria_math::tests::trigonometry_test::tan_positive_test_1 ... ok (gas usage est.: 24400) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_right_priority_at_index ... ok (gas usage est.: 234224) [out] test alexandria_math::tests::math_test::shl_should_not_overflow ... ok (gas usage est.: 486542) [out] test alexandria_math::tests::bip340_test::test_12 ... ok (gas usage est.: 27880) [out] test alexandria_math::tests::collatz_sequence_test::collatz_sequence_10_test ... ok (gas usage est.: 35900) [out] test alexandria_math::tests::fast_power_test::fast_power_mod_test ... ok (gas usage est.: 1795970) [out] test alexandria_math::tests::math_test::test_rotl_min ... ok (gas usage est.: 818720) [out] test alexandria_math::tests::bip340_test::test_13 ... ok (gas usage est.: 27880) [out] test alexandria_math::tests::fast_root_test::fast_sqrt_test_1 ... ok (gas usage est.: 222970) [out] test alexandria_math::tests::collatz_sequence_test::collatz_sequence_15_test ... ok (gas usage est.: 100650) [out] test alexandria_math::tests::math_test::test_rotl_max ... ok (gas usage est.: 952960) [out] test alexandria_math::tests::bip340_test::test_14 ... ok (gas usage est.: 27880) [out] test alexandria_math::tests::fast_root_test::fast_sqrt_test_2 ... ok (gas usage est.: 224370) [out] test alexandria_math::tests::collatz_sequence_test::collatz_sequence_empty_test ... ok (gas usage est.: 800) [out] test alexandria_math::tests::math_test::test_rotr_min ... ok (gas usage est.: 1410080) [out] test alexandria_math::tests::bip340_test::test_15 ... ok (gas usage est.: 30577380) [out] test alexandria_math::tests::fast_root_test::fast_curt_test_1 ... ok (gas usage est.: 297570) [out] test alexandria_math::tests::const_pow_test::pow2_test ... ok (gas usage est.: 11620) [out] test alexandria_math::tests::math_test::test_rotr_max ... ok (gas usage est.: 510240) [out] test alexandria_math::tests::bip340_test::test_16 ... ok (gas usage est.: 30589390) [out] test alexandria_math::tests::fast_root_test::fast_nr_optimize_test_1 ... ok (gas usage est.: 997470) [out] test alexandria_math::tests::const_pow_test::pow2_u256_test ... ok (gas usage est.: 6840) [out] test alexandria_math::tests::math_test::test_wrapping_math_non_wrapping ... ok (gas usage est.: 64740) [out] test alexandria_math::tests::bip340_test::test_17 ... ok (gas usage est.: 30810190) [out] test alexandria_math::tests::fast_root_test::fast_nr_optimize_test_2 ... ok (gas usage est.: 300) [out] test alexandria_math::tests::const_pow_test::pow10_test ... ok (gas usage est.: 9950) [out] test alexandria_math::tests::math_test::test_wrapping_math_wrapping ... ok (gas usage est.: 33520) [out] test alexandria_math::tests::bip340_test::test_18 ... ok (gas usage est.: 32945770) [out] test alexandria_math::tests::fibonacci_test::fibonacci_test ... ok (gas usage est.: 25500) [out] test alexandria_math::tests::const_pow_test::pow10_u256_test ... ok (gas usage est.: 9880) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_p_test ... ok (gas usage est.: 48750) [out] test alexandria_math::tests::bip340_test::test_19 ... ok (gas usage est.: 31052440) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test ... ok (gas usage est.: 38050) [out] test alexandria_math::tests::const_pow_test::pow2_out_of_range_test ... ok (gas usage est.: 2470) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_2_test ... ok (gas usage est.: 13800) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_0 ... ok (gas usage est.: 19346) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test_inverse ... ok (gas usage est.: 35500) [out] test alexandria_math::tests::const_pow_test::pow2_u256_out_of_range_test ... ok (gas usage est.: 2470) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_1_test ... ok (gas usage est.: 20150) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_1 ... ok (gas usage est.: 32816) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test_3 ... ok (gas usage est.: 29510) [out] test alexandria_math::tests::const_pow_test::pow10_out_of_range_test ... ok (gas usage est.: 2470) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_test ... ok (gas usage est.: 133770) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_10 ... ok (gas usage est.: 132756) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_single_test ... ok (gas usage est.: 3890) [out] test alexandria_math::tests::const_pow_test::pow10_u256_out_of_range_test ... ok (gas usage est.: 2570) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_1_test ... ok (gas usage est.: 125780) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_0 ... ok (gas usage est.: 36882) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_empty_input_test ... ok (gas usage est.: 17810) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_2_test ... ok (gas usage est.: 127140) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_1 ... ok (gas usage est.: 64842) [out] test alexandria_math::tests::i257_test::i257_test_add ... ok (gas usage est.: 10400) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_test ... ok (gas usage est.: 314340) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_10 ... ok (gas usage est.: 263902) [out] test alexandria_math::tests::i257_test::i257_test_sub ... ok (gas usage est.: 76810) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_1_test ... ok (gas usage est.: 313940) [out] test alexandria_math::tests::bitmap_test::test_bitmap_most_significant_bit ... ok (gas usage est.: 24630) [out] test alexandria_math::tests::i257_test::i257_test_mul ... ok (gas usage est.: 54520) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_2_test ... ok (gas usage est.: 314740) [out] test alexandria_math::tests::bitmap_test::test_bitmap_least_significant_bit ... ok (gas usage est.: 38498) [out] test alexandria_math::tests::i257_test::i257_test_is_zero ... ok (gas usage est.: 1400) [out] test alexandria_math::tests::mod_arithmetics_test::sqr_mod_test ... ok (gas usage est.: 193930) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_left_significant_bit ... ok (gas usage est.: 121221) [out] test alexandria_math::tests::i257_test::i257_test_div_no_rem ... ok (gas usage est.: 229050) [out] test alexandria_math::tests::mod_arithmetics_test::div_mod_test ... ok (gas usage est.: 207050) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_right_significant_bit ... ok (gas usage est.: 89553) [out] test alexandria_math::tests::i257_test::i257_test_div_rem ... ok (gas usage est.: 568610) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_test ... ok (gas usage est.: 23923340) [out] test alexandria_math::tests::i257_test::i257_test_partial_ord ... ok (gas usage est.: 41800) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_left_priority ... ok (gas usage est.: 212384) [out] test alexandria_math::tests::i257_test::i257_test_eq_not_eq ... ok (gas usage est.: 5300) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_right_priority ... ok (gas usage est.: 213624) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_1_test ... ok (gas usage est.: 23921940) [out] test alexandria_math::tests::i257_test::i257_test_equality ... ok (gas usage est.: 6600) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_left_priority_at_index ... ok (gas usage est.: 232984) [out] test alexandria_math::tests::i257_test::i257_test_div_sign_zero ... ok (gas usage est.: 46130) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_0 ... ok (gas usage est.: 290347168) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_2_test ... ok (gas usage est.: 23921940) [out] test alexandria_math::tests::i257_test::i257_test_into ... ok (gas usage est.: 4240) [out] test alexandria_math::tests::perfect_number_test::perfect_small_number_test ... ok (gas usage est.: 149900) [out] test alexandria_math::tests::ed25519_test::verify_signature_invalid_length ... ok (gas usage est.: 10290) [out] test alexandria_math::tests::ed25519_test::affine_point_op ... ok (gas usage est.: 355790) [out] test alexandria_math::tests::extended_euclidean_algorithm_test::extended_euclidean_algorithm_test ... ok (gas usage est.: 515030) [out] test alexandria_math::tests::fast_power_test::fast_power_test ... ok (gas usage est.: 1105200) [out] test alexandria_math::tests::ed25519_test::verify_signature_invalid ... ok (gas usage est.: 289059058) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_with_pub_key_having_consecutive_identical_bytes ... ok (gas usage est.: 318273772) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_1 ... ok (gas usage est.: 281825788) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_2 ... ok (gas usage est.: 282669148) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_3 ... ok (gas usage est.: 308243698) [out] test result: ok. 179 passed; 0 failed; 0 ignored; 0 filtered out; >>> SCARB_IGNORE_CAIRO_VERSION=true maat-test-ls [err] 0.003791218s WARN cairo_language_server::config: client does not support `workspace/configuration` requests, config will not be reloaded [out] Opening file:///mnt/maat-workbench/src/lib.cairo [out] [out] ============================== [out] Analysis completed, server is idle. [out] [out] ============================== [out] # Analyzed Crates [out] --- [out] ```json [out] { [out] "name": "alexandria_math", [out] "source_paths": [ [out] "/mnt/maat-workbench/src/lib.cairo" [out] ], [out] "settings": { [out] "name": "alexandria_math", [out] "edition": "2023_11", [out] "version": "0.5.1", [out] "cfg_set": [ [out] [ [out] "target", [out] "lib" [out] ], [out] [ [out] "target", [out] "test" [out] ], [out] "test" [out] ], [out] "dependencies": { [out] "alexandria_math": { [out] "discriminator": "alexandria_math 0.5.1 (path+file:///mnt/maat-workbench/Scarb.toml)" [out] }, [out] "core": { [out] "discriminator": null [out] } [out] }, [out] "experimental_features": { [out] "negative_impls": false, [out] "associated_item_constraints": false, [out] "coupons": false, [out] "user_defined_inline_macros": false [out] } [out] }, [out] "linter_configuration": { [out] "include_compiler_generated_files": false [out] }, [out] "plugins": { [out] "builtin_plugins": [ [out] "CairoTest" [out] ] [out] } [out] } [out] [out] { [out] "name": "core", [out] "source_paths": [ [out] "/mnt/maat-cache/scarb/registry/std/d5f083c33/core/src/lib.cairo" [out] ], [out] "settings": { [out] "name": "core", [out] "edition": "2024_07", [out] "version": "2.11.4", [out] "cfg_set": [ [out] [ [out] "target", [out] "lib" [out] ], [out] [ [out] "target", [out] "test" [out] ] [out] ], [out] "dependencies": { [out] "core": { [out] "discriminator": null [out] } [out] }, [out] "experimental_features": { [out] "negative_impls": true, [out] "associated_item_constraints": true, [out] "coupons": true, [out] "user_defined_inline_macros": false [out] } [out] }, [out] "linter_configuration": { [out] "include_compiler_generated_files": false [out] }, [out] "plugins": { [out] "builtin_plugins": [ [out] "Executable", [out] "CairoTest" [out] ] [out] } [out] } [out] ``` [out] [out] ============================== [out] file:///mnt/maat-workbench/src/bip340.cairo (2) [out] (W) Plugin diagnostic: Manual `unwrap_or` detected. Consider using `unwrap_or()` instead. [Ln 84, Col 8] [out] (W) Usage of deprecated feature `"corelib-internal-use"` with no `#[feature("corelib-internal-use")]` attribute. Note: "Use `starknet` directly" [Ln 2, Col 10] [out] file:///mnt/maat-workbench/src/bitmap.cairo (1) [out] (W) Plugin diagnostic: You seem to be trying to use `&` for parity check. Consider using `DivRem::div_rem()` instead. [Ln 151, Col 12] [out] file:///mnt/maat-workbench/src/ed25519.cairo (3) [out] (W) Plugin diagnostic: Each `if`-statement adds one level of nesting, which makes code look more complex than it really is. [Ln 284, Col 8] [out] (W) Plugin diagnostic: You seem to be trying to use `&` for parity check. Consider using `DivRem::div_rem()` instead. [Ln 244, Col 24] [out] (W) Plugin diagnostic: using `clone` on type which implements `Copy` trait [Ln 401, Col 19] [out] file:///mnt/maat-workbench/src/sha512.cairo (2) [out] (W) Plugin diagnostic: Manual `unwrap_or` detected. Consider using `unwrap_or()` instead. [Ln 127, Col 24] [out] (W) Plugin diagnostic: This operation doesn't change the value and can be simplified. [Ln 283, Col 63] [out] file:///mnt/maat-workbench/src/tests/sha256_test.cairo (4) [out] (W) Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [Ln 6, Col 25] [out] (W) Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [Ln 50, Col 25] [out] (W) Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [Ln 416, Col 25] [out] (W) Usage of deprecated feature `"deprecated-sha256"` with no `#[feature("deprecated-sha256")]` attribute. Note: "Use `core::sha256::compute_sha256_byte_array`." [Ln 666, Col 25] [out] file:///mnt/maat-workbench/src/tests/test_keccak256.cairo (1) [out] (W) Usage of deprecated feature `"deprecated-keccak"` with no `#[feature("deprecated-keccak")]` attribute. Note: "Use `core::keccak::compute_keccak_byte_array`." [Ln 0, Col 32] [out] file:///mnt/maat-workbench/src/u512_arithmetics.cairo (2) [out] (W) Plugin diagnostic: Manual assert detected. Consider using assert!() macro instead. [Ln 56, Col 16] [out] (W) Plugin diagnostic: Manual assert detected. Consider using assert!() macro instead. [Ln 87, Col 16] [out] total: 0 errors, 15 warnings, 0 infos, 0 hints [out] [out] ============================== [out] CairoLS process exited with code: 0