=== alexandria_math-0.5.1 === >>> curl -sSLf https://scarbs.xyz/api/v1/dl/alexandria_math/0.5.1 -o archive-590090331956658176.tar.zstd >>> tar --zstd -xf archive-590090331956658176.tar.zstd --strip-components 1 >>> maat-check-versions [out] Name Version Source Installed [out] nodejs 23.11.0 ASDF_NODEJS_VERSION true [out] scarb 2.11.4 ASDF_SCARB_VERSION true [out] starknet-foundry 0.45.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..2a6f4fc 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" # 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" # 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" # NOTE: added by maat-patch, was: None [out] +starknet = "2.11.4" # NOTE: added by maat-patch, was: None [out] +cairo_test = "2.11.4" # NOTE: added by maat-patch, was: None [out] +snforge_std = "0.45.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.45.0" # NOTE: added by maat-patch, was: None [out] + [out] +[patch."https://github.com/foundry-rs/starknet-foundry.git"] [out] +snforge_std = "0.45.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.45.0" # NOTE: added by maat-patch, was: None >>> scarb fetch >>> scarb tree -q --workspace [out] error: no such command: `tree` [out] [out] Stack backtrace: [out] 0: anyhow::kind::Adhoc::new [out] 1: anyhow::__private::format_err.100642 [out] 2: scarb::commands::run [out] 3: scarb::main [out] 4: std::sys::backtrace::__rust_begin_short_backtrace [out] 5: main [out] 6: __libc_start_call_main [out] 7: __libc_start_main_impl [out] 8: _start Process finished with exit code 1 >>> scarb build --workspace --test [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 11 seconds >>> scarb lint --workspace --deny-warnings [err] error: unexpected argument '--deny-warnings' found [err] [err] tip: a similar argument exists: '--no-warnings' [err] [err] Usage: scarb lint --workspace --no-warnings [err] [err] For more information, try '--help'. Process finished with exit code 2 >>> SNFORGE_FUZZER_SEED=1 SNFORGE_IGNORE_FORK_TESTS=1 scarb test --workspace [out] Running test alexandria_math (scarb cairo-test) [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 11 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.: 1983) [out] test alexandria_math::tests::aliquot_sum_test::zero_test ... ok (gas usage est.: 700) [out] test alexandria_math::tests::trigonometry_test::tan_negative_test_1 ... ok (gas usage est.: 46340) [out] test alexandria_math::tests::perfect_number_test::perfect_big_number_test ... ok (gas usage est.: 2325730) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_2 ... ok (gas usage est.: 1983) [out] test alexandria_math::tests::aliquot_sum_test::one_test ... ok (gas usage est.: 700) [out] test alexandria_math::tests::u512_arithmetics_test::test_u512_add ... ok (gas usage est.: 7150) [out] test alexandria_math::tests::perfect_number_test::not_perfect_small_number_test ... ok (gas usage est.: 418290) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_3 ... ok (gas usage est.: 2483) [out] test alexandria_math::tests::u512_arithmetics_test::test_u512_sub ... ok (gas usage est.: 15940) [out] test alexandria_math::tests::aliquot_sum_test::two_test ... ok (gas usage est.: 3140) [out] test alexandria_math::tests::perfect_number_test::not_perfect_big_number_test ... ok (gas usage est.: 2327500) [out] test alexandria_math::tests::is_power_of_two_test::is_power_of_two_test_4 ... ok (gas usage est.: 1983) [out] test alexandria_math::tests::perfect_number_test::perfect_numbers_test ... ok (gas usage est.: 194080) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_to_ray_conversion ... ok (gas usage est.: 332470) [out] test alexandria_math::tests::aliquot_sum_test::one_digit_number_test ... ok (gas usage est.: 13460) [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.: 31820) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_to_wad_conversion ... ok (gas usage est.: 325850) [out] test alexandria_math::tests::sha256_test::sha256_empty_test ... ok (gas usage est.: 8215452) [out] test alexandria_math::tests::is_prime_test::is_prime_test_1 ... ok (gas usage est.: 3140) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_wad_mul_overflow ... ok (gas usage est.: 435470) [out] test alexandria_math::tests::aliquot_sum_test::three_digit_number_test ... ok (gas usage est.: 784580) [out] test alexandria_math::tests::sha256_test::sha256_random_data_test ... ok (gas usage est.: 8149172) [out] test alexandria_math::tests::is_prime_test::is_prime_test_2 ... ok (gas usage est.: 2570) [out] test alexandria_math::tests::aliquot_sum_test::two_digit_prime_number_test ... ok (gas usage est.: 35270) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_trivial ... ok (gas usage est.: 538260) [out] test alexandria_math::tests::sha256_test::sha256_lorem_ipsum_test ... ok (gas usage est.: 46893152) [out] test alexandria_math::tests::is_prime_test::is_prime_test_3 ... ok (gas usage est.: 2570) [out] test alexandria_math::tests::armstrong_number_test::one_digit_armstrong_number_test ... ok (gas usage est.: 16600) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_fractions ... ok (gas usage est.: 226790) [out] test alexandria_math::tests::is_prime_test::is_prime_test_4 ... ok (gas usage est.: 227160) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_wad_div_zero ... ok (gas usage est.: 30810) [out] test alexandria_math::tests::armstrong_number_test::two_digit_numbers_are_not_armstrong_numbers_test ... ok (gas usage est.: 26440) [out] test alexandria_math::tests::sha256_test::sha256_url ... ok (gas usage est.: 31344148) [out] test alexandria_math::tests::armstrong_number_test::three_digit_armstrong_number_test ... ok (gas usage est.: 75590) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_div_trivial ... ok (gas usage est.: 728770) [out] test alexandria_math::tests::karatsuba_test::multiply_same_size_positive_number ... ok (gas usage est.: 7805860) [out] test alexandria_math::tests::sha512_test::test_sha512_lorem_ipsum ... ok (gas usage est.: 30343638) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_div_fractions ... ok (gas usage est.: 106090) [out] test alexandria_math::tests::armstrong_number_test::three_digit_non_armstrong_number_test ... ok (gas usage est.: 33990) [out] test alexandria_math::tests::karatsuba_test::multiply_distinct_size_positive_number ... ok (gas usage est.: 692680) [out] test alexandria_math::tests::sha512_test::test_sha512_size_one ... ok (gas usage est.: 10679030) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_rounding ... ok (gas usage est.: 46320) [out] test alexandria_math::tests::bip340_test::test_0 ... ok (gas usage est.: 31154470) [out] test alexandria_math::tests::karatsuba_test::multiply_by_zero ... ok (gas usage est.: 14494330) [out] test alexandria_math::tests::sha512_test::test_size_zero ... ok (gas usage est.: 10681740) [out] test alexandria_math::tests::wad_ray_math_test::test_wad_mul_rounding_up ... ok (gas usage est.: 183940) [out] test alexandria_math::tests::bip340_test::test_1 ... ok (gas usage est.: 31155780) [out] test alexandria_math::tests::karatsuba_test::multiply_by_number_lt_ten ... ok (gas usage est.: 176880) [out] test alexandria_math::tests::test_keccak256::test_keccak256_empty_bytes ... ok (gas usage est.: 254044) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_ray_mul_overflow ... ok (gas usage est.: 435470) [out] test alexandria_math::tests::bip340_test::test_2 ... ok (gas usage est.: 31155260) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test ... ok (gas usage est.: 74180) [out] test alexandria_math::tests::test_keccak256::test_keccak256_partial_bytes ... ok (gas usage est.: 279554) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_trivial ... ok (gas usage est.: 538260) [out] test alexandria_math::tests::bip340_test::test_3 ... ok (gas usage est.: 31155260) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_tryinto ... ok (gas usage est.: 64220) [out] test alexandria_math::tests::test_keccak256::test_keccak256_full_u256 ... ok (gas usage est.: 398924) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_fractions ... ok (gas usage est.: 241790) [out] test alexandria_math::tests::bip340_test::test_4 ... ok (gas usage est.: 31155260) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_inverse ... ok (gas usage est.: 65630) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_1 ... ok (gas usage est.: 25070) [out] test alexandria_math::tests::wad_ray_math_test::test_revertWhen_ray_div_zero ... ok (gas usage est.: 30810) [out] test alexandria_math::tests::bip340_test::test_5 ... ok (gas usage est.: 79790) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_3 ... ok (gas usage est.: 55580) [out] test alexandria_math::tests::trigonometry_test::sin_negative_test_1 ... ok (gas usage est.: 25070) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_div_trivial ... ok (gas usage est.: 728770) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_test_4 ... ok (gas usage est.: 55580) [out] test alexandria_math::tests::bip340_test::test_6 ... ok (gas usage est.: 31154830) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_2 ... ok (gas usage est.: 25070) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_div_fractions ... ok (gas usage est.: 106090) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_single_test ... ok (gas usage est.: 5480) [out] test alexandria_math::tests::bip340_test::test_7 ... ok (gas usage est.: 31154830) [out] test alexandria_math::tests::trigonometry_test::sin_negative_test_2 ... ok (gas usage est.: 25070) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_rounding ... ok (gas usage est.: 501220) [out] test alexandria_math::tests::lcm_of_n_numbers_test::lcm_empty_input_test ... ok (gas usage est.: 2100) [out] test alexandria_math::tests::bip340_test::test_8 ... ok (gas usage est.: 31155580) [out] test alexandria_math::tests::trigonometry_test::sin_positive_test_3 ... ok (gas usage est.: 25070) [out] test alexandria_math::tests::wad_ray_math_test::test_ray_mul_rounding_up ... ok (gas usage est.: 213940) [out] test alexandria_math::tests::math_test::test_pow_power_2_all ... ok (gas usage est.: 6867930) [out] test alexandria_math::tests::bip340_test::test_9 ... ok (gas usage est.: 31150030) [out] test alexandria_math::tests::trigonometry_test::cos_positive_test_1 ... ok (gas usage est.: 24940) [out] test alexandria_math::tests::zellers_congruence_test::zellers_congruence_test ... ok (gas usage est.: 114620) [out] test alexandria_math::tests::math_test::pow_test ... ok (gas usage est.: 201340) [out] test alexandria_math::tests::bip340_test::test_10 ... ok (gas usage est.: 31149510) [out] test alexandria_math::tests::trigonometry_test::cos_negative_test_1 ... ok (gas usage est.: 24940) [out] test alexandria_math::tests::zellers_congruence_test::zellers_congruence_invalid_parameters_test ... ok (gas usage est.: 141400) [out] test alexandria_math::tests::math_test::count_digits_of_base_test ... ok (gas usage est.: 121870) [out] test alexandria_math::tests::bip340_test::test_11 ... ok (gas usage est.: 31155580) [out] test alexandria_math::tests::trigonometry_test::tan_positive_test_1 ... ok (gas usage est.: 46340) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_right_priority_at_index ... ok (gas usage est.: 250324) [out] test alexandria_math::tests::math_test::shl_should_not_overflow ... ok (gas usage est.: 521092) [out] test alexandria_math::tests::bip340_test::test_12 ... ok (gas usage est.: 39760) [out] test alexandria_math::tests::fast_power_test::fast_power_mod_test ... ok (gas usage est.: 1879520) [out] test alexandria_math::tests::collatz_sequence_test::collatz_sequence_10_test ... ok (gas usage est.: 39970) [out] test alexandria_math::tests::math_test::test_rotl_min ... ok (gas usage est.: 864650) [out] test alexandria_math::tests::bip340_test::test_13 ... ok (gas usage est.: 41230) [out] test alexandria_math::tests::fast_root_test::fast_sqrt_test_1 ... ok (gas usage est.: 195750) [out] test alexandria_math::tests::math_test::test_rotl_max ... ok (gas usage est.: 1017710) [out] test alexandria_math::tests::collatz_sequence_test::collatz_sequence_15_test ... ok (gas usage est.: 111200) [out] test alexandria_math::tests::bip340_test::test_14 ... ok (gas usage est.: 38290) [out] test alexandria_math::tests::fast_root_test::fast_sqrt_test_2 ... ok (gas usage est.: 199070) [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.: 1499830) [out] test alexandria_math::tests::bip340_test::test_15 ... ok (gas usage est.: 30656220) [out] test alexandria_math::tests::fast_root_test::fast_curt_test_1 ... ok (gas usage est.: 278290) [out] test alexandria_math::tests::math_test::test_rotr_max ... ok (gas usage est.: 540570) [out] test alexandria_math::tests::const_pow_test::pow2_test ... ok (gas usage est.: 13520) [out] test alexandria_math::tests::bip340_test::test_16 ... ok (gas usage est.: 30668290) [out] test alexandria_math::tests::fast_root_test::fast_nr_optimize_test_1 ... ok (gas usage est.: 947430) [out] test alexandria_math::tests::math_test::test_wrapping_math_non_wrapping ... ok (gas usage est.: 136708) [out] test alexandria_math::tests::const_pow_test::pow2_u256_test ... ok (gas usage est.: 17640) [out] test alexandria_math::tests::bip340_test::test_17 ... ok (gas usage est.: 30894410) [out] test alexandria_math::tests::fast_root_test::fast_nr_optimize_test_2 ... ok (gas usage est.: 900) [out] test alexandria_math::tests::math_test::test_wrapping_math_wrapping ... ok (gas usage est.: 98774) [out] test alexandria_math::tests::const_pow_test::pow10_test ... ok (gas usage est.: 11550) [out] test alexandria_math::tests::bip340_test::test_18 ... ok (gas usage est.: 33108530) [out] test alexandria_math::tests::fibonacci_test::fibonacci_test ... ok (gas usage est.: 29700) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_p_test ... ok (gas usage est.: 52220) [out] test alexandria_math::tests::const_pow_test::pow10_u256_test ... ok (gas usage est.: 11680) [out] test alexandria_math::tests::bip340_test::test_19 ... ok (gas usage est.: 31155260) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test ... ok (gas usage est.: 50030) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_2_test ... ok (gas usage est.: 14300) [out] test alexandria_math::tests::const_pow_test::pow2_out_of_range_test ... ok (gas usage est.: 2270) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_0 ... ok (gas usage est.: 21856) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test_inverse ... ok (gas usage est.: 47180) [out] test alexandria_math::tests::mod_arithmetics_test::add_mod_1_test ... ok (gas usage est.: 21620) [out] test alexandria_math::tests::const_pow_test::pow2_u256_out_of_range_test ... ok (gas usage est.: 4010) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_1 ... ok (gas usage est.: 35936) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_test_3 ... ok (gas usage est.: 39290) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_test ... ok (gas usage est.: 140770) [out] test alexandria_math::tests::const_pow_test::pow10_out_of_range_test ... ok (gas usage est.: 2270) [out] test alexandria_math::tests::bitmap_test::test_bitmap_get_bit_at_10 ... ok (gas usage est.: 138866) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_single_test ... ok (gas usage est.: 7070) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_1_test ... ok (gas usage est.: 127200) [out] test alexandria_math::tests::const_pow_test::pow10_u256_out_of_range_test ... ok (gas usage est.: 2370) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_0 ... ok (gas usage est.: 42372) [out] test alexandria_math::tests::gcd_of_n_numbers_test::gcd_empty_input_test ... ok (gas usage est.: 23240) [out] test alexandria_math::tests::mod_arithmetics_test::sub_mod_2_test ... ok (gas usage est.: 129910) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_1 ... ok (gas usage est.: 71172) [out] test alexandria_math::tests::i257_test::i257_test_add ... ok (gas usage est.: 47600) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_test ... ok (gas usage est.: 318320) [out] test alexandria_math::tests::bitmap_test::test_bitmap_set_bit_at_10 ... ok (gas usage est.: 276592) [out] test alexandria_math::tests::i257_test::i257_test_sub ... ok (gas usage est.: 108840) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_1_test ... ok (gas usage est.: 317920) [out] test alexandria_math::tests::bitmap_test::test_bitmap_most_significant_bit ... ok (gas usage est.: 23460) [out] test alexandria_math::tests::i257_test::i257_test_mul ... ok (gas usage est.: 74760) [out] test alexandria_math::tests::mod_arithmetics_test::mult_mod_2_test ... ok (gas usage est.: 318720) [out] test alexandria_math::tests::bitmap_test::test_bitmap_least_significant_bit ... ok (gas usage est.: 42958) [out] test alexandria_math::tests::i257_test::i257_test_is_zero ... ok (gas usage est.: 1300) [out] test alexandria_math::tests::mod_arithmetics_test::sqr_mod_test ... ok (gas usage est.: 198420) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_left_significant_bit ... ok (gas usage est.: 130201) [out] test alexandria_math::tests::mod_arithmetics_test::div_mod_test ... ok (gas usage est.: 205780) [out] test alexandria_math::tests::i257_test::i257_test_div_no_rem ... ok (gas usage est.: 236650) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_right_significant_bit ... ok (gas usage est.: 94163) [out] test alexandria_math::tests::i257_test::i257_test_div_rem ... ok (gas usage est.: 623550) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_0 ... ok (gas usage est.: 293015978) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_left_priority ... ok (gas usage est.: 227574) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_test ... ok (gas usage est.: 24275690) [out] test alexandria_math::tests::i257_test::i257_test_partial_ord ... ok (gas usage est.: 101440) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_right_priority ... ok (gas usage est.: 229214) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_1_test ... ok (gas usage est.: 24277210) [out] test alexandria_math::tests::i257_test::i257_test_eq_not_eq ... ok (gas usage est.: 15640) [out] test alexandria_math::tests::bitmap_test::test_bitmap_nearest_significant_bit_left_priority_at_index ... ok (gas usage est.: 248684) [out] test alexandria_math::tests::i257_test::i257_test_equality ... ok (gas usage est.: 22860) [out] test alexandria_math::tests::mod_arithmetics_test::pow_mod_2_test ... ok (gas usage est.: 24277210) [out] test alexandria_math::tests::i257_test::i257_test_div_sign_zero ... ok (gas usage est.: 47570) [out] test alexandria_math::tests::i257_test::i257_test_into ... ok (gas usage est.: 4740) [out] test alexandria_math::tests::perfect_number_test::perfect_small_number_test ... ok (gas usage est.: 152240) [out] test alexandria_math::tests::ed25519_test::verify_signature_invalid_length ... ok (gas usage est.: 10480) [out] test alexandria_math::tests::ed25519_test::affine_point_op ... ok (gas usage est.: 361120) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_1 ... ok (gas usage est.: 284396048) [out] test alexandria_math::tests::extended_euclidean_algorithm_test::extended_euclidean_algorithm_test ... ok (gas usage est.: 540230) [out] test alexandria_math::tests::fast_power_test::fast_power_test ... ok (gas usage est.: 1161670) [out] test alexandria_math::tests::ed25519_test::verify_signature_invalid ... ok (gas usage est.: 291712088) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_with_pub_key_having_consecutive_identical_bytes ... ok (gas usage est.: 320668192) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_2 ... ok (gas usage est.: 285226608) [out] test alexandria_math::tests::ed25519_test::verify_signature_test_3 ... ok (gas usage est.: 311164048) [out] test result: ok. 179 passed; 0 failed; 0 ignored; 0 filtered out; >>> maat-test-ls [err] 0.003915138s 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] - `alexandria_math`: `["/mnt/maat-workbench/src/lib.cairo"]` [out] ```rust [out] CrateSettings { [out] name: Some( [out] "alexandria_math", [out] ), [out] edition: V2023_11, [out] version: Some( [out] Version { [out] major: 0, [out] minor: 5, [out] patch: 1, [out] }, [out] ), [out] cfg_set: Some( [out] CfgSet( [out] target: "lib", [out] target: "test", [out] test, [out] ), [out] ), [out] dependencies: { [out] "alexandria_math": DependencySettings { [out] discriminator: Some( [out] "alexandria_math 0.5.1 (path+file:///mnt/maat-workbench/Scarb.toml)", [out] ), [out] }, [out] "core": DependencySettings { [out] discriminator: None, [out] }, [out] }, [out] experimental_features: ExperimentalFeaturesConfig { [out] negative_impls: false, [out] associated_item_constraints: false, [out] coupons: false, [out] }, [out] } [out] ``` [out] - `core`: `["/mnt/maat-cache/scarb/registry/std/v2.11.4/core/src/lib.cairo"]` [out] ```rust [out] CrateSettings { [out] name: Some( [out] "core", [out] ), [out] edition: V2024_07, [out] version: Some( [out] Version { [out] major: 2, [out] minor: 11, [out] patch: 4, [out] }, [out] ), [out] cfg_set: Some( [out] CfgSet( [out] target: "lib", [out] target: "test", [out] ), [out] ), [out] dependencies: { [out] "core": DependencySettings { [out] discriminator: None, [out] }, [out] }, [out] experimental_features: ExperimentalFeaturesConfig { [out] negative_impls: true, [out] associated_item_constraints: true, [out] coupons: true, [out] }, [out] } [out] ``` [out] [out] [out] ============================== [out] file:///mnt/maat-workbench/src/aliquot_sum.cairo (1) [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 15, Col 11] [out] file:///mnt/maat-workbench/src/bip340.cairo (1) [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: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 210, Col 15] [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] file:///mnt/maat-workbench/src/keccak256.cairo (1) [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 54, Col 10] [out] file:///mnt/maat-workbench/src/sha256.cairo (2) [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 159, Col 11] [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 164, Col 11] [out] file:///mnt/maat-workbench/src/sha512.cairo (3) [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 270, Col 11] [out] (W) Plugin diagnostic: using [`<`, `<=`, `>=`, `>`] exit conditions is inefficient. Consider switching to `!=` or using ArrayTrait::multi_pop_front. [Ln 282, Col 11] [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: Leaving `panic` in the code is discouraged. [Ln 57, Col 20] [out] (W) Plugin diagnostic: Leaving `panic` in the code is discouraged. [Ln 88, Col 20] [out] total: 0 errors, 19 warnings, 0 infos, 0 hints [out] [out] ============================== [out] CairoLS process exited with code: 0