Skip to content

Commit

Permalink
feat(engine/specialize): monorphize to_int into from_machine
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Feb 18, 2025
1 parent 96967d4 commit 927c221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/lib/phases/phase_specialize.ml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ module Make (F : Features.T) =
rint_rint_any Core__cmp__PartialEq__eq Rust_primitives__hax__int__eq;
any_int Hax_lib__abstraction__Abstraction__lift
Rust_primitives__hax__int__from_machine;
any_int Hax_lib__int__ToInt__to_int
Rust_primitives__hax__int__from_machine;
int_any Hax_lib__abstraction__Concretization__concretize
Rust_primitives__hax__int__into_machine;
]
Expand Down
1 change: 1 addition & 0 deletions engine/names/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ fn dummy_hax_concrete_ident_wrapper<I: core::iter::Iterator<Item = u8>>(x: I, mu
{
use hax_lib::*;
let a: Int = 3u8.lift();
let _: Int = 3u8.to_int();
let _ = a.clone().pow2();
let _ = Int::_unsafe_from_str("1");
let _: u32 = a.concretize();
Expand Down

0 comments on commit 927c221

Please sign in to comment.