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

path enumeration now works

parent c9430189
Branches
Tags
No related merge requests found
...@@ -27,6 +27,18 @@ ...@@ -27,6 +27,18 @@
"$rustc" "$rustc"
] ]
}, },
{
"label": "xargo build --example empty2 --features klee_mode --target x86_64-unknown-linux-gnu",
"type": "shell",
"command": "xargo build --example empty2 --features klee_mode --target x86_64-unknown-linux-gnu",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$rustc"
]
},
{ {
"label": "xargo build --example empty --release --target thumbv7m-none-eabi", "label": "xargo build --example empty --release --target thumbv7m-none-eabi",
"type": "shell", "type": "shell",
......
...@@ -42,6 +42,7 @@ cm7-r0p1 = ["cortex-m/cm7-r0p1"] ...@@ -42,6 +42,7 @@ cm7-r0p1 = ["cortex-m/cm7-r0p1"]
[profile.dev] [profile.dev]
codegen-units = 1 codegen-units = 1
incremental = false incremental = false
lto = true
panic = "abort" panic = "abort"
[profile.release] [profile.release]
......
...@@ -21,20 +21,37 @@ app! { ...@@ -21,20 +21,37 @@ app! {
} }
#[inline(never)] #[inline(never)]
fn init(_p: init::Peripherals) { fn t() -> i32 {
let mut x = unsafe { core::mem::uninitialized() }; let mut x = unsafe { core::mem::uninitialized() };
let mut y = 0; let mut y = 0;
k_symbol!(x, "x"); k_symbol!(x, "x");
if x < 10 { if x < 10 {
for _ in 0..x { for _ in 0..x {
y += 1; y += 1;
unsafe { core::ptr::read_volatile(&y) }; // unsafe { core::ptr::read_volatile(&y) };
// k_abort();
} }
} }
y
unsafe {
k_assert(core::ptr::read_volatile(&y) == 0);
} }
#[inline(never)]
fn init(_p: init::Peripherals) {
// let mut x = unsafe { core::mem::uninitialized() };
// let mut y = 0;
// k_symbol!(x, "x");
// if x < 10 {
// for _ in 0..x {
// y += 1;
// unsafe { core::ptr::read_volatile(&y) };
// // k_abort();
// }
// }
// unsafe {
// k_assert(core::ptr::read_volatile(&y) == 0);
// }
t();
} }
// The idle loop. // The idle loop.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment