creusot-std 0.14.0

Standard library of Creusot: provides specification macros, contracts for Rust standard library and logic helpers
Documentation
use crate::prelude::*;

#[cfg(creusot)]
pub use creusot_std_proc::Default;

#[cfg(not(creusot))]
pub use core::default::Default;

extern_spec! {
    mod core {
        mod default {
            trait Default {
                fn default() -> Self;
            }
        }
    }

    impl Default for bool {
        #[check(ghost)]
        #[ensures(result == false)]
        fn default() -> bool;
    }
}