; RUN: sed 's/OP1/store i32 0/g' %s | not llubi --verbose 2>&1 | FileCheck %s ; RUN: sed 's/OP1/%res = load i32/g' %s | not llubi --verbose 2>&1 | FileCheck %s define void @main() { %alloc = alloca [2 x i32], align 8 %gep = getelementptr inbounds [2 x i32], ptr %alloc, i64 0, i64 1 OP1, ptr %gep, align 8 ret void } ; CHECK: Entering function: main ; CHECK-NEXT: %alloc = alloca [2 x i32], align 8 => ptr 0x8 [alloc] ; CHECK-NEXT: %gep = getelementptr inbounds [2 x i32], ptr %alloc, i64 0, i64 1 => ptr 0xC [alloc + 4] ; CHECK-NEXT: Stacktrace: ; CHECK-NEXT: #0 {{store i32 0|%res = load i32}}, ptr %gep, align 8 at @main :7 ; CHECK-NEXT: Immediate UB detected: Misaligned memory access. ; CHECK-NEXT: error: Execution of function 'main' failed.