Skip to content
Snippets Groups Projects
Commit 015e53e8 authored by Edvin Åkerfeldt's avatar Edvin Åkerfeldt
Browse files

cargo_klee_examples/array.rs, B

parent 94bfd3b8
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ use panic_klee as _; ...@@ -10,7 +10,7 @@ use panic_klee as _;
fn sum_first_elements(arr: &[u8], index: usize) -> u8 { fn sum_first_elements(arr: &[u8], index: usize) -> u8 {
let mut acc = 0; let mut acc = 0;
for i in 0..index { for i in 0..arr.len() {
acc += arr[i as usize]; acc += arr[i as usize];
} }
acc acc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment