You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crucible-LLVM runs into a translation error on some rustc-produced LLVM bitcode:
use std::alloc::{Layout, dealloc};#[inline(never)]#[no_mangle]pubfnfree(p:*mutusize){unsafe{dealloc(p.cast(),Layout::new::<usize>());}}#[inline(never)]#[no_mangle]pubfntest(p:*mutusize,x:usize){if x > 0 && x < 10 && x % 2 == 0{free(p);}if x % 3 == 0{free(p);}}fnmain(){test(Box::leak(Box::new(5)),7);}
internal: error: in test
Arithmetic comparison on incompatible values
Comparison operation: Iugt
Value 1: $1
Value 2: extensionApp(pointerExpr natLit(0) bVLit(64, BV 0))
cabal run exe:crux-llvm -- --no-compile prog.bc --entry-point=foo
[Crux] Using pointer width: 64 for file prog.bc
[Crux] Simulating function foo
[Crux] All goals discharged through internal simplification.
[Crux] Overall status: Valid.
Crucible-LLVM runs into a translation error on some
rustc
-produced LLVM bitcode:Here's the bitcode for
@test
:And the bitcode itself:
double-free.zip
The text was updated successfully, but these errors were encountered: