Skip to content

Commit

Permalink
fixup hax
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Dec 28, 2024
1 parent c18be26 commit 834b7f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: ⤵ Install FStar
run: nix profile install github:FStarLang/FStar/v2024.09.05
run: nix profile install github:FStarLang/FStar/v2024.12.03

- name: ⤵ Clone HACL-star repository
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let _ =
(* This module has implicit dependencies, here we make them explicit. *)
(* The implicit dependencies arise from typeclasses instances. *)
let open Libcrux_ml_dsa.Simd.Avx2.Vector_type in
let open Libcrux_ml_dsa.Simd.Traits in
()

[@@ FStar.Tactics.Typeclasses.tcinstance]
Expand Down Expand Up @@ -576,9 +575,7 @@ Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit =
Libcrux_ml_dsa.Simd.Avx2.Ntt.ntt re
in
let out:t_Array Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit (sz 32) =
Rust_primitives.Hax.repeat (Libcrux_ml_dsa.Simd.Traits.f_ZERO #Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit
#FStar.Tactics.Typeclasses.solve
()
Rust_primitives.Hax.repeat (Libcrux_ml_dsa.Simd.Avx2.Vector_type.v_ZERO ()
<:
Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit)
(sz 32)
Expand Down Expand Up @@ -651,9 +648,7 @@ Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit =
Libcrux_ml_dsa.Simd.Avx2.Invntt.invert_ntt_montgomery re
in
let out:t_Array Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit (sz 32) =
Rust_primitives.Hax.repeat (Libcrux_ml_dsa.Simd.Traits.f_ZERO #Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit
#FStar.Tactics.Typeclasses.solve
()
Rust_primitives.Hax.repeat (Libcrux_ml_dsa.Simd.Avx2.Vector_type.v_ZERO ()
<:
Libcrux_ml_dsa.Simd.Avx2.Vector_type.t_AVX2SIMDUnit)
(sz 32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let _ =
(* This module has implicit dependencies, here we make them explicit. *)
(* The implicit dependencies arise from typeclasses instances. *)
let open Libcrux_ml_dsa.Simd.Avx2.Vector_type in
let open Libcrux_ml_dsa.Simd.Traits in
()

[@@ FStar.Tactics.Typeclasses.tcinstance]
Expand Down
4 changes: 2 additions & 2 deletions libcrux-ml-dsa/src/simd/avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Operations for AVX2SIMDUnit {
}
let result = ntt::ntt(re);

let mut out = [Self::ZERO(); SIMD_UNITS_IN_RING_ELEMENT];
let mut out = [vector_type::ZERO(); SIMD_UNITS_IN_RING_ELEMENT];
for i in 0..result.len() {
out[i] = Self {
coefficients: result[i],
Expand All @@ -158,7 +158,7 @@ impl Operations for AVX2SIMDUnit {
}
let result = invntt::invert_ntt_montgomery(re);

let mut out = [Self::ZERO(); SIMD_UNITS_IN_RING_ELEMENT];
let mut out = [vector_type::ZERO(); SIMD_UNITS_IN_RING_ELEMENT];
for i in 0..result.len() {
out[i] = Self {
coefficients: result[i],
Expand Down

0 comments on commit 834b7f5

Please sign in to comment.