FStarLang / FStar

A Proof-oriented Programming Language
https://fstar-lang.org
Apache License 2.0
2.7k stars 234 forks source link

Add a cast from size_t to uint64_t #3507

Closed tahina-pro closed 1 month ago

tahina-pro commented 1 month ago

Just like FStar.SizeT.sizet_to_uint32 defines a cast from size_t to uint32_t, this PR adds FStar.SizeT.sizet_to_uint64 to support casts from size_t to uint64_t, along with the corresponding Karamel extraction rule.