Skip to content
Snippets Groups Projects
Commit 3a8a27fa authored by Per's avatar Per
Browse files

works

parent 4631e286
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
#![no_main]
#[cfg(feature = "klee-analysis")]
use klee_sys::{klee_abort, klee_make_symbolic};
use klee_sys::{klee_abort, klee_assert, klee_assert_eq, klee_make_symbolic};
#[cfg(not(feature = "klee-analysis"))]
use panic_halt as _;
......@@ -18,11 +18,16 @@ fn main() {
#[no_mangle]
fn main() {
let mut a = 0;
klee_make_symbolic(&mut a, "a");
klee_make_symbolic!(&mut a, "a");
match a {
0 => klee_abort(),
2 => klee_abort(),
0 => klee_abort!(),
1 => klee_abort!(),
2 => panic!(),
3 => panic!("3"), // just one instance of panic! will be spotted
4 => klee_assert!(false),
5 => klee_assert_eq!(false, true),
6 => klee_assert_eq!(false, true),
_ => (),
};
panic();
panic!("at end"); // just one instane of panic! will be spotted
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment