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

klee_only_test

parent d3b92f3b
Branches
No related tags found
No related merge requests found
...@@ -10,10 +10,13 @@ use panic_klee as _; ...@@ -10,10 +10,13 @@ use panic_klee as _;
fn main() { fn main() {
let mut a = 0; let mut a = 0;
klee_make_symbolic!(&mut a, "a"); klee_make_symbolic!(&mut a, "a");
match a { // Rust panic on a == 200;
let _ = 100 / (a - 200);
let _ = match a {
0 => klee_abort!(), 0 => klee_abort!(),
1 => klee_abort!(), 1 => klee_abort!(),
2 => panic!(), 2 => klee_abort!(),
3 => panic!("3"), // just one instance of panic! will be spotted 3 => panic!("3"), // just one instance of panic! will be spotted
4 => klee_assert!(false), 4 => klee_assert!(false),
5 => klee_assert_eq!(false, true), 5 => klee_assert_eq!(false, true),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment