2 files + 4 − 4 Side-by-side Compare changes Side-by-side Inline Show whitespace changes Files 2 src/lib.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,7 @@ //! TODO: better documentation (as always) //! TODO: better documentation (as always) #![no_std] #![no_std] #![cfg_attr(feature = "inline-asm", feature(llvm_asm))] //#![cfg_attr(feature = "inline-asm", feature(llvm_asm))] // re-exports for klee-analysis // re-exports for klee-analysis #[cfg(feature = "klee-analysis")] #[cfg(feature = "klee-analysis")] Loading src/lib_klee_replay.rs +3 −3 Original line number Original line Diff line number Diff line #[cfg(not(feature = "inline-asm"))] //#[cfg(not(feature = "inline-asm"))] compile_error!("klee-replay requires feature `inline-asm`"); //compile_error!("klee-replay requires feature `inline-asm`"); /// suppress assumption /// suppress assumption #[inline(always)] #[inline(always)] Loading @@ -9,7 +9,7 @@ pub fn klee_assume(_cond: bool) {} pub fn klee_make_symbolic<T>(t: &mut T) { pub fn klee_make_symbolic<T>(t: &mut T) { // force LLVM to consider data to be mutated // force LLVM to consider data to be mutated unsafe { unsafe { llvm_asm!("bkpt #0" : /* output */: /* input */ "r"(t): /* clobber */ : "volatile") core::arch::asm!("bkpt #2") } } } } Loading
src/lib.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,7 @@ //! TODO: better documentation (as always) //! TODO: better documentation (as always) #![no_std] #![no_std] #![cfg_attr(feature = "inline-asm", feature(llvm_asm))] //#![cfg_attr(feature = "inline-asm", feature(llvm_asm))] // re-exports for klee-analysis // re-exports for klee-analysis #[cfg(feature = "klee-analysis")] #[cfg(feature = "klee-analysis")] Loading
src/lib_klee_replay.rs +3 −3 Original line number Original line Diff line number Diff line #[cfg(not(feature = "inline-asm"))] //#[cfg(not(feature = "inline-asm"))] compile_error!("klee-replay requires feature `inline-asm`"); //compile_error!("klee-replay requires feature `inline-asm`"); /// suppress assumption /// suppress assumption #[inline(always)] #[inline(always)] Loading @@ -9,7 +9,7 @@ pub fn klee_assume(_cond: bool) {} pub fn klee_make_symbolic<T>(t: &mut T) { pub fn klee_make_symbolic<T>(t: &mut T) { // force LLVM to consider data to be mutated // force LLVM to consider data to be mutated unsafe { unsafe { llvm_asm!("bkpt #0" : /* output */: /* input */ "r"(t): /* clobber */ : "volatile") core::arch::asm!("bkpt #2") } } } } Loading