creusot-std 0.12.0

Standard library of Creusot: provides specification macros, contracts for Rust standard library and logic helpers
Documentation
use crate::prelude::*;
#[cfg(creusot)]
use core::fmt;

extern_spec! {
    mod std {
        mod io {
            /// This is an implementation detail of `std`: we specify it so that we can use
            /// `print!` and `println!`.
            #[check(terminates)]
            #[ensures(true)]
            fn _print(args: fmt::Arguments<'_>) {}

            /// This is an implementation detail of `std`: we specify it so that we can use
            /// `eprint!` and `eprintln!`.
            #[check(terminates)]
            #[ensures(true)]
            fn _eprint(args: fmt::Arguments<'_>) {}
        }
    }
}