Closed RyanGlScott closed 4 months ago
On second thought, I am mistaken: we already have special support for is_null
as of https://github.com/GaloisInc/crucible/commit/93c803177ceb96a3af2240df4340b0b08b6d702e. (I mistakenly concluded that we didn't because I invoked crux-mir
without first setting CRUX_RUST_LIBRARY_PATH
.)
It would be helpful to have
crucible-mir
overrides for theis_null
family of functions. There is one such function for constant pointers, and another such function for mutable pointers, both of which have nearly identical implementations. Thecrucible-mir
overrides themselves would be simple: just check if a reference is equal toMirIntegerToRef
with a payload of0
, as that is how the overrides forptr::null
andptr::null_mut
work.