Function assert

Source
pub const fn assert(cond: bool, msg: &'static str)
Expand description

Creates an assertion of the specified condition and message.

ยงExample:

let x: bool = kani::any();
let y = !x;
kani::assert(x || y, "ORing a boolean variable with its negation must be true")