dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
kvm_exit_8486
kvm_exit
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64* nonnull @gv_1) %3 = load i64, i64* @gv_2, align 8 %4 = call i64 @FUNC(i64 %3) %5 = call i64 @FUNC() %6 = call i64 @FUNC(i64* nonnull @gv_3) %7 = call i64 @FUNC(i64* nonnull @gv_4) %8 = load i32, i32* @gv_5, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = call i64 @FUNC(i64 4198752, i64 0, i64 1) %12 = call i64 @FUNC() %13 = call i64 @FUNC() %14 = call i64 @FUNC() %15 = load i64, i64* @gv_6, align 8 %16 = call i64 @FUNC(i64 %15) %17 = call i64 @FUNC() ret i64 %17 }
0
BinRealVul
snd_ctl_add_11318
snd_ctl_add
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.02.reg2mem = alloca i32 %storemerge.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %1 = load i32, i32* %0 %sv_3 = alloca i64, align 8 %2 = icmp eq i64* %arg2, null %3 = icmp eq i1 %2, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_11 LBL_1: %4 = ptrtoint i64* %arg2 to i64 %5 = icmp eq i64* %arg1, null store i64 1, i64* %storemerge.reg2mem br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = add i64 %4, 56 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %spec.select = zext i1 %9 to i64 store i64 %spec.select, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem %10 = call i64 @FUNC(i64 %storemerge.reload) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 4294967274, i64* %sv_0.0.reg2mem br i1 %13, label LBL_10, label LBL_4 LBL_4: %14 = ptrtoint i64* %arg1 to i64 %15 = add i64 %4, 8 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 store i64 %4, i64* %sv_3, align 8 %18 = add i64 %14, 16 %19 = call i64 @FUNC(i64 %18) %20 = call i64 @FUNC(i64 %14, i64* nonnull %sv_3) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_6, label LBL_5 LBL_5: %23 = call i64 @FUNC(i64 %18) %24 = and i64 %17, 4294967295 %25 = load i64, i64* %sv_3, align 8 %26 = and i64 %25, 4294967295 %27 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %26, i32 %1, i64 %24, i64* nonnull %sv_2) store i64 4294967280, i64* %sv_0.0.reg2mem br label LBL_10 LBL_6: %28 = add i64 %4, 52 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = zext i32 %30 to i64 %32 = call i64 @FUNC(i64 %14, i64 %31) %33 = trunc i64 %32 to i32 %34 = icmp slt i32 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_8, label LBL_7 LBL_7: %36 = call i64 @FUNC(i64 %18) store i64 4294967284, i64* %sv_0.0.reg2mem br label LBL_10 LBL_8: %37 = add i64 %14, 24 %38 = add i64 %4, 64 %39 = call i64 @FUNC(i64 %38, i64 %37) %40 = add i64 %14, 12 %41 = inttoptr i64 %40 to i32* %42 = load i32, i32* %41, align 4 %43 = load i32, i32* %29, align 4 %44 = add i32 %43, %42 store i32 %44, i32* %41, align 4 %45 = add i64 %14, 8 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = add i32 %47, 1 %49 = add i64 %4, 48 %50 = inttoptr i64 %49 to i32* store i32 %48, i32* %50, align 4 %51 = load i32, i32* %46, align 4 %52 = load i32, i32* %29, align 4 %53 = add i32 %52, %51 store i32 %53, i32* %46, align 4 %54 = load i32, i32* %29, align 4 %55 = call i64 @FUNC(i64 %18) %56 = icmp eq i32 %54, 0 store i32 0, i32* %sv_1.02.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %56, label LBL_11, label LBL_9 LBL_9: %sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem %57 = call i64 @FUNC(i64 %14, i64 1, i64* nonnull %sv_3) %58 = add nuw i32 %sv_1.02.reload, 1 %exitcond = icmp eq i32 %58, %54 store i32 %58, i32* %sv_1.02.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %exitcond, label LBL_11, label LBL_9 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %59 = call i64 @FUNC(i64 %4) store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %46, { 1, 0, 2 } uselistorder i64 %18, { 3, 2, 1, 0, 4 } uselistorder i64 %14, { 0, 1, 3, 2, 4, 6, 5 } uselistorder i64 %4, { 6, 1, 2, 3, 4, 5, 0 } uselistorder i64* %sv_3, { 0, 2, 1, 3 } uselistorder i32* %sv_1.02.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64)* @up_write, { 2, 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 4294967274, { 1, 0 } uselistorder i64* %arg2, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_11, { 3, 0, 1, 2 } uselistorder label LBL_10, { 1, 2, 0 } uselistorder label LBL_9, { 1, 0 } }
1
BinRealVul
msPostGISLayerInitItemInfo_10348
msPostGISLayerInitItemInfo
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i32 %.reg2mem2 = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0)) br label LBL_2 LBL_2: %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 0, i64* %rax.0.reg2mem br i1 %10, label LBL_3, label LBL_9 LBL_3: %11 = add i64 %5, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 store i32 %8, i32* %.reg2mem br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = inttoptr i64 %13 to i64* call void @free(i64* %15) %.pre = load i32, i32* %7, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_5 LBL_5: %.reload = load i32, i32* %.reg2mem %16 = sext i32 %.reload to i64 %17 = mul i64 %16, 4 %18 = call i64 @FUNC(i64 %17) store i64 %18, i64* %12, align 8 %19 = icmp eq i64 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_7 LBL_6: %21 = load i32, i32* %7, align 4 %22 = icmp eq i32 %21, 0 store i64 0, i64* %.reg2mem2 store i32 0, i32* %storemerge1.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_9, label LBL_8 LBL_7: %23 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %.reload3 = load i64, i64* %.reg2mem2 %24 = mul i64 %.reload3, 4 %25 = add i64 %24, %18 %26 = inttoptr i64 %25 to i32* store i32 %storemerge1.reload, i32* %26, align 4 %27 = add i32 %storemerge1.reload, 1 %28 = load i32, i32* %7, align 4 %29 = zext i32 %28 to i64 %30 = sext i32 %27 to i64 %31 = icmp slt i64 %30, %29 store i64 %30, i64* %.reg2mem2 store i32 %27, i32* %storemerge1.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_8, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %7, { 2, 1, 0, 3 } uselistorder i64 %5, { 1, 0 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem2, { 2, 0, 1 } uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 } uselistorder label LBL_9, { 0, 3, 1, 2 } uselistorder label LBL_8, { 1, 0 } }
0
BinRealVul
jas_stream_write_4168
jas_stream_write
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge2.lcssa.reg2mem = alloca i32 %sv_0.03.reg2mem = alloca i64 %storemerge24.reg2mem = alloca i32 %0 = trunc i64 %arg3 to i32 %1 = icmp slt i32 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = ptrtoint i64* %arg1 to i64 %5 = icmp sgt i32 %0, 0 store i32 0, i32* %storemerge24.reg2mem store i64 %arg2, i64* %sv_0.03.reg2mem store i32 0, i32* %storemerge2.lcssa.reg2mem br i1 %5, label LBL_3, label LBL_5 LBL_3: %sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem %storemerge24.reload = load i32, i32* %storemerge24.reg2mem %6 = inttoptr i64 %sv_0.03.reload to i8* %7 = load i8, i8* %6, align 1 %8 = sext i8 %7 to i64 %9 = and i64 %8, 4294967295 %10 = call i64 @FUNC(i64 %4, i64 %9) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, -1 %13 = icmp eq i1 %12, false store i32 %storemerge24.reload, i32* %storemerge2.lcssa.reg2mem br i1 %13, label LBL_4, label LBL_5 LBL_4: %14 = add i64 %sv_0.03.reload, 1 %15 = add nuw nsw i32 %storemerge24.reload, 1 %16 = icmp slt i32 %15, %0 store i32 %15, i32* %storemerge24.reg2mem store i64 %14, i64* %sv_0.03.reg2mem store i32 %15, i32* %storemerge2.lcssa.reg2mem br i1 %16, label LBL_3, label LBL_5 LBL_5: %storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem %storemerge = zext i32 %storemerge2.lcssa.reload to i64 ret i64 %storemerge uselistorder i32 %storemerge24.reload, { 1, 0 } uselistorder i32 %0, { 1, 0, 2 } uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 } uselistorder label LBL_5, { 1, 0, 2 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
dump_syscall_15289
dump_syscall
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 128 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = add i64 %2, 24 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %2, 20 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %2, 16 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = add i64 %2, 12 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = trunc i64 %1 to i32 %19 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %20 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %19, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @gv_1, i64 0, i64 0), i32 %18, i32 %17, i32 %14, i32 %11, i32 %8, i32 %5) %21 = sext i32 %20 to i64 ret i64 %21 }
1
BinRealVul
init_once_9417
init_once
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = add i64 %0, 16 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %0, 32 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %0, 48 %8 = call i64 @FUNC(i64 %7, i64 0) %9 = inttoptr i64 %7 to i32* store i32 0, i32* %9, align 4 %10 = add i64 %0, 52 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 %12 = add i64 %0, 56 %13 = call i64 @FUNC(i64 %12, i64 1) %14 = add i64 %0, 64 %15 = call i64 @FUNC(i64 %14) %16 = add i64 %0, 72 %17 = call i64 @FUNC(i64 %16) %18 = call i64 @FUNC(i64 %0) ret i64 %18 uselistorder i64 %0, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @INIT_LIST_HEAD, { 2, 1, 0 } }
0
BinRealVul
GetModuleInfo_9487
GetModuleInfo
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_5 LBL_1: %5 = load i64, i64* @gv_0, align 8 %6 = call i64 @FUNC(i64 %5) %7 = load i64, i64* @gv_1, align 8 %8 = call i64 @FUNC(i64 %7) %9 = icmp eq i64* %arg1, null br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = ptrtoint i64* %arg1 to i64 %11 = call i64 @FUNC(i64 %10, i64* nonnull @gv_2) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = load i64, i64* @gv_1, align 8 %16 = call i64 @FUNC(i64 %15) %17 = load i64, i64* @gv_0, align 8 %18 = call i64 @FUNC(i64 %17) store i64 %16, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %19 = load i64, i64* @gv_1, align 8 %20 = call i64 @FUNC(i64 %19, i64 %10) %21 = load i64, i64* @gv_0, align 8 %22 = call i64 @FUNC(i64 %21) store i64 %20, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64 (i64)* @UnlockSemaphoreInfo, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0 } }
0
BinRealVul
openpic_save_IRQ_queue_827
openpic_save_IRQ_queue
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %2 = mul i64 %indvars.iv.reload, 4 %3 = add i64 %2, %0 %4 = call i64 @FUNC(i64 %1, i64 %3) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: %5 = add i64 %0, 40 %6 = call i64 @FUNC(i64 %1, i64 %5) %7 = add i64 %0, 44 %8 = call i64 @FUNC(i64 %1, i64 %7) ret i64 %8 uselistorder i64 %1, { 1, 0, 2 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64)* @qemu_put_sbe32s, { 1, 0 } }
0
BinRealVul
BuildTestPacket_11067
BuildTestPacket
define i64 @FUNC(i64 %arg1, i16 %arg2, i32 %arg3, i8 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i32, align 4 %0 = call i64 @FUNC(i64 1, i64 1532) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_14 LBL_1: %sext = mul i64 %arg5, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = inttoptr i64 %0 to %timeval* %5 = call i64 @FUNC(i64 %0) %6 = call i32 @gettimeofday(%timeval* %4, %timezone* null) store i32 69, i32* %sv_0, align 4 %7 = trunc i64 %3 to i16 %8 = add i16 %7, 20 %9 = call i16 @htons(i16 %8) %10 = trunc i64 %arg1 to i16 %11 = call i16 @htons(i16 %10) %12 = call i16 @htons(i16 %arg2) %13 = icmp eq i32 %arg3, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = or i16 %arg2, 8192 %15 = call i16 @htons(i16 %14) br label LBL_4 LBL_3: %16 = call i16 @htons(i16 %arg2) br label LBL_4 LBL_4: %17 = bitcast i32* %sv_0 to i8* %18 = call i64 @FUNC(i64 %0, i8* nonnull %17, i64 24) %19 = call i64 @FUNC(i64 %0) %20 = add i64 %0, 16 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = add i64 %0, 24 %23 = call i64 @FUNC(i64 %0, i64 %22) %24 = add i64 %0, 28 %25 = call i64 @FUNC(i64 %0, i64 %24) %26 = call i64 @FUNC(i64 1, i64 %3) %27 = icmp eq i64 %26, 0 %28 = icmp eq i1 %27, false store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_5, label LBL_14 LBL_5: %29 = trunc i64 %3 to i32 %30 = sext i8 %arg4 to i32 %31 = inttoptr i64 %26 to i64* %32 = call i64* @memset(i64* %31, i32 %30, i32 %29) %33 = call i64 @FUNC(i64 %0, i32 20, i64 %26, i64 %3) %34 = add nsw i64 %3, 20 %35 = and i64 %34, 4294967295 %36 = call i64 @FUNC(i64 %0, i64 %35) %37 = call i64 @FUNC(i64 %26) %38 = call i64 @FUNC(i64 %0) %39 = load i64, i64* %21, align 8 %40 = call i64 @FUNC(i64 %38, i64 20) %41 = trunc i64 %40 to i16 %42 = add i64 %39, 20 %43 = inttoptr i64 %42 to i16* store i16 %41, i16* %43, align 2 %44 = call i64 @FUNC(i64 %0) %45 = trunc i64 %44 to i16 %46 = icmp eq i16 %45, 4 %47 = icmp eq i1 %46, false br i1 %47, label LBL_13, label LBL_6 LBL_6: %48 = call i64 @FUNC(i64 %0) %49 = urem i64 %48, 65536 %50 = icmp eq i64 %49, 20 %51 = icmp eq i1 %50, false br i1 %51, label LBL_13, label LBL_7 LBL_7: %52 = call i64 @FUNC(i64 %0) %53 = trunc i64 %52 to i32 %54 = add i32 %29, 20 %55 = urem i32 %53, 65536 %56 = icmp eq i32 %55, %54 %57 = icmp eq i1 %56, false br i1 %57, label LBL_13, label LBL_8 LBL_8: %58 = call i64 @FUNC(i64 %0) %59 = trunc i64 %58 to i16 %60 = icmp eq i16 %10, %59 %61 = icmp eq i1 %60, false br i1 %61, label LBL_13, label LBL_9 LBL_9: %62 = call i64 @FUNC(i64 %0) %63 = trunc i64 %62 to i16 %64 = icmp eq i16 %63, %arg2 %65 = icmp eq i1 %64, false br i1 %65, label LBL_13, label LBL_10 LBL_10: %66 = call i64 @FUNC(i64 %0) %67 = trunc i64 %66 to i32 %68 = urem i32 %67, 65536 %69 = icmp eq i32 %68, %arg3 %70 = icmp eq i1 %69, false br i1 %70, label LBL_13, label LBL_11 LBL_11: %71 = call i64 @FUNC(i64 %0) %72 = urem i64 %71, 65536 %73 = icmp eq i64 %72, 64 %74 = icmp eq i1 %73, false br i1 %74, label LBL_13, label LBL_12 LBL_12: %75 = call i64 @FUNC(i64 %0) %76 = trunc i64 %75 to i16 %77 = icmp eq i16 %76, 1 %78 = icmp eq i1 %77, false store i64 %0, i64* %rax.0.reg2mem br i1 %78, label LBL_13, label LBL_14 LBL_13: %79 = call i64 @FUNC(i64 %0) store i64 0, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 2, 0, 4, 1, 3 } uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 } uselistorder i32* %sv_0, { 1, 0 } uselistorder i32 65536, { 0, 1, 5, 3, 2, 4 } uselistorder i64 (i64)* @SCFree, { 1, 0 } uselistorder i64 4294967295, { 2, 0, 1 } uselistorder i64 20, { 0, 3, 2, 1 } uselistorder i64 (i64)* @GET_PKT_DATA, { 1, 0 } uselistorder i64 24, { 1, 0, 2 } uselistorder i16 8192, { 1, 0 } uselistorder i16 (i16)* @htons, { 5, 1, 3, 4, 2, 0 } uselistorder i1 false, { 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 11, 0 } uselistorder i64 (i64, i64)* @SCCalloc, { 1, 0 } uselistorder i32 1, { 9, 2, 1, 0, 8, 10, 11, 7, 6, 5, 4, 3 } uselistorder i16 %arg2, { 1, 2, 0, 3 } uselistorder label LBL_13, { 7, 6, 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
vhost_vdpa_config_put_13282
vhost_vdpa_config_put
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null store i64 %0, i64* %rax.0.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 %0) store i64 %2, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
of_get_probes_17947
of_get_probes
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.in5.reg2mem = alloca i64 %storemerge36.reg2mem = alloca i32 %sv_1.1.lcssa.reg2mem = alloca i64 %sv_1.17.reg2mem = alloca i32 %storemerge48.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i32, align 4 %1 = bitcast i32* %sv_2 to i64* %2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %1) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_1, label LBL_2 LBL_1: %5 = load i32, i32* %sv_2, align 4 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false store i32 0, i32* %storemerge48.reg2mem store i32 0, i32* %sv_1.17.reg2mem store i64 8, i64* %sv_1.1.lcssa.reg2mem br i1 %7, label LBL_3, label LBL_5 LBL_2: %8 = load i64, i64* @gv_1, align 8 store i64 %8, i64* %storemerge.reg2mem br label LBL_7 LBL_3: %sv_1.17.reload = load i32, i32* %sv_1.17.reg2mem %storemerge48.reload = load i32, i32* %storemerge48.reg2mem %9 = zext i32 %storemerge48.reload to i64 %10 = add i64 %2, %9 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 0 %14 = zext i1 %13 to i32 %spec.select = add i32 %sv_1.17.reload, %14 %15 = add i32 %storemerge48.reload, 1 %16 = icmp eq i32 %15, %5 %17 = icmp eq i1 %16, false store i32 %15, i32* %storemerge48.reg2mem store i32 %spec.select, i32* %sv_1.17.reg2mem br i1 %17, label LBL_3, label LBL_4 LBL_4: %phitmp = add i32 %spec.select, 1 %phitmp9 = zext i32 %phitmp to i64 %phitmp10 = mul i64 %phitmp9, 8 store i64 %phitmp10, i64* %sv_1.1.lcssa.reg2mem br label LBL_5 LBL_5: %sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem %18 = call i64 @FUNC(i64 %sv_1.1.lcssa.reload, i64 0) %19 = load i32, i32* %sv_2, align 4 %20 = icmp eq i32 %19, 0 %21 = icmp slt i32 %19, 0 %22 = icmp eq i1 %21, false %23 = icmp eq i1 %20, false %24 = icmp eq i1 %22, %23 store i32 0, i32* %storemerge36.reg2mem store i64 %2, i64* %sv_0.0.in5.reg2mem store i64 %18, i64* %storemerge.reg2mem br i1 %24, label LBL_6, label LBL_7 LBL_6: %sv_0.0.in5.reload = load i64, i64* %sv_0.0.in5.reg2mem %storemerge36.reload = load i32, i32* %storemerge36.reg2mem %sv_0.0 = inttoptr i64 %sv_0.0.in5.reload to i8* %25 = zext i32 %storemerge36.reload to i64 %26 = mul i64 %25, 8 %27 = add i64 %26, %18 %28 = inttoptr i64 %27 to i64* store i64 %sv_0.0.in5.reload, i64* %28, align 8 %29 = call i32 @strlen(i8* %sv_0.0) %30 = add i32 %29, 1 %31 = zext i32 %30 to i64 %32 = add i64 %sv_0.0.in5.reload, %31 %33 = load i32, i32* %sv_2, align 4 %34 = sub i32 %33, %30 store i32 %34, i32* %sv_2, align 4 %35 = add i32 %storemerge36.reload, 1 %36 = icmp eq i32 %34, 0 %37 = icmp slt i32 %34, 0 %38 = icmp eq i1 %37, false %39 = icmp eq i1 %36, false %40 = icmp eq i1 %38, %39 store i32 %35, i32* %storemerge36.reg2mem store i64 %32, i64* %sv_0.0.in5.reg2mem store i64 %18, i64* %storemerge.reg2mem br i1 %40, label LBL_6, label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %30, { 1, 0 } uselistorder i64 %sv_0.0.in5.reload, { 2, 0, 1 } uselistorder i64 %18, { 0, 2, 1 } uselistorder i32 %spec.select, { 1, 0 } uselistorder i32* %sv_2, { 3, 2, 1, 0, 4 } uselistorder i32* %storemerge48.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.17.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.1.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge36.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.in5.reg2mem, { 2, 0, 1 } uselistorder i64 8, { 1, 2, 0 } uselistorder i32 0, { 6, 7, 0, 4, 5, 1, 2, 3, 8 } uselistorder i1 false, { 4, 3, 1, 2, 5, 0, 6 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
__netlink_seq_next_8652
__netlink_seq_next
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 8 %4 = trunc i64 %1 to i32 %5 = add i32 %4, 1 %6 = bitcast i64* %arg1 to i32* %7 = icmp slt i32 %4, 10 br label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 %3) %9 = icmp ult i64 %8, -1000 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = icmp eq i64 %8, -11 store i64 %8, i64* %rax.0.reg2mem br i1 %10, label LBL_1.backedge, label LBL_9 LBL_3: %11 = icmp eq i64 %8, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_8, label LBL_4 LBL_4: %13 = call i64 @FUNC(i64 %2) store i32 %5, i32* %6, align 4 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_5, label LBL_9 LBL_5: %14 = call i64 @FUNC(i64 %2) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_1.backedge, label LBL_7 LBL_6: br label LBL_1 LBL_7: %sext = mul i64 %14, 4294967296 %17 = ashr exact i64 %sext, 32 store i64 %17, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %18 = call i64 @FUNC(i64 %8) %19 = call i64 @FUNC(i64 %2) %20 = icmp eq i64 %18, %19 %21 = icmp eq i1 %20, false store i64 %8, i64* %rax.0.reg2mem br i1 %21, label LBL_1.backedge, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %8, { 0, 2, 3, 1, 4, 5 } uselistorder i32 %4, { 1, 0 } uselistorder i64 %2, { 2, 0, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 } uselistorder label LBL_9, { 0, 3, 1, 2 } uselistorder label LBL_1.backedge, { 1, 0, 2 } }
0
BinRealVul
aspeed_soc_class_init_2759
aspeed_soc_class_init
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198662, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* store i32 0, i32* %2, align 4 ret i64 %0 uselistorder i64 %0, { 1, 0 } }
0
BinRealVul
decode_frame_18748
decode_frame
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi3.reg2mem = alloca i64* %.pre-phi5.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg4 to i64 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %5 = call i64 @FUNC(i64 %3, i64 0, i64 0) %6 = add i64 %3, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp sgt i32 %8, 133 br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_11 LBL_2: %11 = add i64 %4, 1072 %12 = call i64 @FUNC(i64 %11, i64 %3, i32 %8) %13 = add i64 %4, 36 %14 = inttoptr i64 %13 to i32* store i32 3, i32* %14, align 4 %15 = trunc i64 %4 to i32 %16 = icmp slt i32 %15, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_4, label LBL_3 LBL_3: %18 = and i64 %4, 4294967295 %19 = add i64 %4, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0), i64 %21, i64 %2, i64 %1) store i64 %18, i64* %rax.0.reg2mem br label LBL_11 LBL_4: %23 = call i64 @FUNC(i64 %11, i64 4) %24 = call i64 @FUNC(i64 %11, i64* nonnull %sv_0, i64 128) %25 = call i64 @FUNC(i64 %11, i64 1) %26 = call i64 @FUNC(i64 %11) %27 = trunc i64 %26 to i32 %28 = urem i32 %27, 256 %29 = icmp eq i32 %28, 16 %30 = icmp eq i1 %29, false %31 = add i64 %4, 20 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %4, 16 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = add i64 %4, 24 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 br i1 %30, label LBL_6, label LBL_5 LBL_5: %40 = zext i32 %33 to i64 %41 = call i64 @FUNC(i64 %4, i64 %4, i32 %39, i32 %36, i64 %40) br label LBL_7 LBL_6: %42 = call i64 @FUNC(i64 %4, i64 %4, i32 %39, i32 %36, i32 %33, i32 %28) br label LBL_7 LBL_7: %43 = icmp eq i64 %5, 0 br i1 %43, label LBL_7.LBL_10_crit_edge, label LBL_9 LBL_8: %.pre = add i64 %4, 48 %.pre2 = inttoptr i64 %.pre to i64* %.pre4 = add i64 %4, 40 store i64 %.pre4, i64* %.pre-phi5.reg2mem store i64* %.pre2, i64** %.pre-phi3.reg2mem br label LBL_10 LBL_9: %44 = add i64 %4, 40 %45 = inttoptr i64 %44 to i32* store i32 1, i32* %45, align 4 %46 = add i64 %4, 48 %47 = inttoptr i64 %46 to i64* %48 = inttoptr i64 %5 to i64* %49 = call i64* @memcpy(i64* %47, i64* %48, i32 1024) store i64 %44, i64* %.pre-phi5.reg2mem store i64* %47, i64** %.pre-phi3.reg2mem br label LBL_10 LBL_10: %50 = ptrtoint i64* %arg2 to i64 %.pre-phi3.reload = load i64*, i64** %.pre-phi3.reg2mem %.pre-phi5.reload = load i64, i64* %.pre-phi5.reg2mem %51 = add i64 %4, 8 %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 %54 = inttoptr i64 %53 to i64* %55 = call i64* @memcpy(i64* %54, i64* %.pre-phi3.reload, i32 1024) %56 = bitcast i64* %arg3 to i32* store i32 1, i32* %56, align 4 %57 = load i64, i64* %52, align 8 store i64 %53, i64* %arg2, align 8 %58 = add i64 %50, 8 %59 = inttoptr i64 %58 to i64* store i64 %57, i64* %59, align 8 %60 = inttoptr i64 %34 to i64* %61 = load i64, i64* %60, align 8 %62 = inttoptr i64 %37 to i64* %63 = load i64, i64* %62, align 8 %64 = add i64 %50, 16 %65 = inttoptr i64 %64 to i64* store i64 %61, i64* %65, align 8 %66 = add i64 %50, 24 %67 = inttoptr i64 %66 to i64* store i64 %63, i64* %67, align 8 %68 = add i64 %4, 32 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = inttoptr i64 %.pre-phi5.reload to i64* %72 = load i64, i64* %71, align 8 %73 = add i64 %50, 32 %74 = inttoptr i64 %73 to i64* store i64 %70, i64* %74, align 8 %75 = add i64 %50, 40 %76 = inttoptr i64 %75 to i64* store i64 %72, i64* %76, align 8 %77 = load i32, i32* %7, align 4 %78 = zext i32 %77 to i64 store i64 %78, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %39, { 1, 0 } uselistorder i32 %36, { 1, 0 } uselistorder i32 %33, { 1, 0 } uselistorder i32 %28, { 1, 0 } uselistorder i64 %11, { 0, 3, 2, 1, 4 } uselistorder i64 %4, { 7, 8, 5, 6, 0, 1, 9, 11, 4, 12, 10, 14, 13, 3, 15, 17, 16, 18, 19, 2 } uselistorder i64 %3, { 1, 0, 2, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 40, { 1, 2, 0 } uselistorder i64 48, { 1, 0 } uselistorder i64 (i64, i64)* @bytestream2_skip, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder label LBL_10, { 1, 0 } }
1
BinRealVul
nic_cleanup_15945
nic_cleanup
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = zext i32 %5 to i64 %7 = call i64 @FUNC(i64 %6) %8 = add i64 %3, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10) %12 = load i64, i64* %9, align 8 %13 = call i64 @FUNC(i64 %12) %14 = call i64 @FUNC(i64 %3) ret i64 %14 }
1
BinRealVul
fts_build_parse_content_type_18741
fts_build_parse_content_type
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %3, i64 %6, i64 0) %8 = call i64 @FUNC(i64* nonnull %sv_0) %9 = call i64 @FUNC(i64 64) %10 = call i64 @FUNC(i64* nonnull %sv_0, i64 %9) %11 = call i64 @FUNC(i64 %9) %12 = call i64 @FUNC(i64 %11) %13 = call i64 @FUNC(i64 %12) store i64 %13, i64* %arg1, align 8 store i64 %13, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i1 false, { 2, 3, 0, 4, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
naludmx_set_dolby_vision_5794
naludmx_set_dolby_vision
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_10, label LBL_1 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp sgt i32 %7, 1 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = zext i32 %7 to i64 %10 = icmp slt i32 %7, 0 %11 = icmp eq i1 %10, false store i64 %9, i64* %rax.0.reg2mem br i1 %11, label LBL_10, label LBL_6 LBL_3: %12 = icmp eq i32 %7, 2 %13 = icmp eq i1 %12, false br i1 %13, label LBL_6, label LBL_4 LBL_4: %14 = add i64 %4, 36 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = add i64 %4, 40 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 0 store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_10, label LBL_6 LBL_6: %23 = add i64 %4, 24 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = add i64 %4, 20 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = add i64 %4, 16 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i64 %4, 12 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = add i64 %4, 8 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = zext i32 %25 to i64 %39 = zext i32 %37 to i64 %40 = call i64 @FUNC(i64 %39, i32 %34, i32 %31, i32 %28, i64 %38) %41 = add i64 %4, 28 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = icmp eq i32 %43, 8 %45 = icmp eq i1 %44, false %.pre1 = add i64 %4, 32 %.pre2 = inttoptr i64 %.pre1 to i32* store i32 %2, i32* %.reg2mem br i1 %45, label LBL_9, label LBL_7 LBL_7: %46 = load i32, i32* %.pre2, align 4 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false store i32 %2, i32* %.reg2mem br i1 %48, label LBL_9, label LBL_8 LBL_8: %49 = bitcast i64* %rdi to i32* %50 = add i64 %4, 48 %51 = inttoptr i64 %50 to i64* %52 = load i64, i64* %51, align 8 %53 = inttoptr i64 %52 to i8* %54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_0, i64 0, i64 0), i8* %53) store i32 2, i32* %.pre2, align 4 %.pre = load i32, i32* %49, align 8 store i32 %.pre, i32* %.reg2mem br label LBL_9 LBL_9: %.reload = load i32, i32* %.reg2mem %55 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 24) %56 = call i64 @FUNC(i64* nonnull %sv_0, i64 24, i64 1) %57 = call i64 @FUNC(i64 %56, i64 1) %58 = call i64 @FUNC(i64 %56, i64 0) %59 = load i32, i32* %42, align 4 %60 = zext i32 %59 to i64 %61 = call i64 @FUNC(i64 %56, i64 %60, i64 7) %62 = and i64 %40, 4294967295 %63 = call i64 @FUNC(i64 %56, i64 %62, i64 6) %64 = add i64 %4, 36 %65 = inttoptr i64 %64 to i32* %66 = load i32, i32* %65, align 4 %67 = icmp eq i32 %66, 0 %68 = icmp eq i1 %67, false %69 = zext i1 %68 to i64 %70 = call i64 @FUNC(i64 %56, i64 %69, i64 1) %71 = add i64 %4, 40 %72 = inttoptr i64 %71 to i32* %73 = load i32, i32* %72, align 4 %74 = icmp eq i32 %73, 0 %75 = icmp eq i1 %74, false %76 = zext i1 %75 to i64 %77 = call i64 @FUNC(i64 %56, i64 %76, i64 1) %78 = call i64 @FUNC(i64 %56, i64 1, i64 1) %79 = load i32, i32* %.pre2, align 4 %80 = zext i32 %79 to i64 %81 = call i64 @FUNC(i64 %56, i64 %80, i64 4) %82 = call i64 @FUNC(i64 %56, i64 0, i64 28) %83 = call i64 @FUNC(i64 %56, i64 0) %84 = call i64 @FUNC(i64 %56, i64 0) %85 = call i64 @FUNC(i64 %56, i64 0) %86 = call i64 @FUNC(i64 %56, i64 0) %87 = call i64 @FUNC(i64 %56) %88 = zext i32 %.reload to i64 %89 = call i64 @FUNC(i64 %88, i64 2, i64* nonnull %sv_0) store i64 %89, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %.pre2, { 0, 2, 1 } uselistorder i32 %7, { 0, 1, 3, 2 } uselistorder i64 %4, { 3, 4, 6, 0, 5, 11, 9, 10, 8, 7, 2, 1, 12 } uselistorder i32 %2, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64 (i64, i64)* @gf_bs_write_u32, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i64, i64, i64)* @gf_bs_write_int, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @gf_bs_write_u8, { 1, 0 } uselistorder i32 8, { 2, 0, 1 } uselistorder i64 8, { 3, 0, 1, 4, 2, 5 } uselistorder i32 2, { 1, 0 } uselistorder i32 0, { 4, 5, 3, 6, 7, 8, 9, 10, 0, 1, 2 } uselistorder label LBL_10, { 3, 0, 1, 2 } uselistorder label LBL_9, { 1, 2, 0 } uselistorder label LBL_6, { 1, 0, 3, 2 } }
0
BinRealVul
u32_destroy_key_12529
u32_destroy_key
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1) %1 = add i64 %arg1, 8 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %1) %4 = icmp eq i64 %0, 0 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = inttoptr i64 %0 to i32* %6 = load i32, i32* %5, align 4 %7 = add i32 %6, -1 store i32 %7, i32* %5, align 4 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %0) br label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %arg1) ret i64 0 uselistorder i32* %5, { 1, 0 } uselistorder i64 (i64)* @kfree, { 1, 0 } }
1
BinRealVul
sample_dump_778
sample_dump
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i32 %xmm0.018.reg2mem = alloca i128 %rcx.019.reg2mem = alloca i64 %indvars.iv23.reg2mem = alloca i64 %r8.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %sext = mul i64 %arg1, 4294967296 %2 = ashr exact i64 %sext, 32 %3 = ashr exact i64 %sext, 29 %4 = add i64 %3, ptrtoint (i64* @gv_0 to i64) %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to %_IO_FILE* store %_IO_FILE* %7, %_IO_FILE** @gv_1, align 8 %8 = icmp eq i64 %6, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_1 LBL_1: %10 = and i64 %2, 4294967295 %11 = bitcast i64* %sv_1 to i8* %12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %11, i32 512, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0)) %13 = call %_IO_FILE* @fopen(i8* nonnull %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0)) store %_IO_FILE* %13, %_IO_FILE** @gv_1, align 8 %14 = ptrtoint %_IO_FILE* %13 to i64 %15 = icmp eq %_IO_FILE* %13, null store i64 %14, i64* %rax.0.reg2mem br i1 %15, label LBL_14, label LBL_2 LBL_2: store i64 %14, i64* %5, align 8 store i64 ptrtoint ([3 x i8]* @gv_3 to i64), i64* %r8.0.reg2mem br label LBL_3 LBL_3: %16 = ptrtoint i64* %arg2 to i64 %sext4 = mul i64 %arg3, 4294967296 %17 = ashr exact i64 %sext4, 32 %18 = trunc i64 %2 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_3.LBL_11_crit_edge, label LBL_5 LBL_4: %.pre = trunc i64 %17 to i32 store i32 %.pre, i32* %.pre-phi.reg2mem br label LBL_11 LBL_5: %r8.0.reload = load i64, i64* %r8.0.reg2mem %21 = load i32, i32* @gv_5, align 4 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 %22, i64 %r8.0.reload, i64 %1) %24 = trunc i64 %17 to i32 %25 = icmp sgt i32 %24, 0 br i1 %25, label LBL_6, label LBL_10 LBL_6: %wide.trip.count25 = and i64 %17, 4294967295 store i64 0, i64* %indvars.iv23.reg2mem store i64 %22, i64* %rcx.019.reg2mem br label LBL_7 LBL_7: %xmm0.018.reload = load i128, i128* %xmm0.018.reg2mem %rcx.019.reload = load i64, i64* %rcx.019.reg2mem %indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem %26 = mul i64 %indvars.iv23.reload, 4 %27 = add i64 %26, %16 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = call i128 @FUNC(i128 %xmm0.018.reload, i128 %xmm0.018.reload) %31 = call i128 @FUNC(i32 %29) %32 = call i128 @FUNC(i64 4710765210229538816) %33 = call i128 @FUNC(i128 %31, i128 %32) %34 = call i64 @FUNC(i128 %33) %35 = call i128 @__asm_movq.1(i64 %34) %36 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0), i64 %rcx.019.reload, i64 %r8.0.reload, i64 %1) %37 = mul nuw nsw i64 %indvars.iv23.reload, 954437177 %38 = udiv i64 %37, 17179869184 %39 = trunc i64 %38 to i32 %40 = trunc i64 %indvars.iv23.reload to i32 %41 = ashr i32 %40, 31 %42 = sub nsw i32 %39, %41 %43 = mul i32 %42, -18 %44 = add i32 %43, %40 %45 = zext i32 %44 to i64 %46 = icmp eq i32 %44, 17 %47 = icmp eq i1 %46, false br i1 %47, label LBL_9, label LBL_8 LBL_8: %48 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_8, i64 0, i64 0), i64 %45, i64 %r8.0.reload, i64 %1) br label LBL_9 LBL_9: %indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1 %exitcond26 = icmp eq i64 %indvars.iv.next24, %wide.trip.count25 store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem store i64 %45, i64* %rcx.019.reg2mem store i128 %35, i128* %xmm0.018.reg2mem br i1 %exitcond26, label LBL_10, label LBL_7 LBL_10: %49 = load i32, i32* @gv_5, align 4 %50 = add i32 %49, %24 store i32 %50, i32* @gv_5, align 4 store i32 %24, i32* %.pre-phi.reg2mem br label LBL_11 LBL_11: %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %51 = icmp sgt i32 %.pre-phi.reload, 0 store i64 0, i64* %rax.0.reg2mem br i1 %51, label LBL_12, label LBL_14 LBL_12: %52 = bitcast i32* %sv_0 to i64* %wide.trip.count = zext i32 %.pre-phi.reload to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_13 LBL_13: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %53 = mul i64 %indvars.iv.reload, 4 %54 = add i64 %53, %16 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 store i32 %56, i32* %sv_0, align 4 %57 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %58 = call i32 @fwrite(i64* nonnull %52, i32 1, i32 4, %_IO_FILE* %57) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %wide.trip.count, i64* %rax.0.reg2mem br i1 %exitcond, label LBL_14, label LBL_13 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i128 %xmm0.018.reload, { 1, 0 } uselistorder i64 %r8.0.reload, { 2, 1, 0 } uselistorder i64 %17, { 0, 2, 1 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i32* %sv_0, { 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %indvars.iv23.reg2mem, { 2, 0, 1 } uselistorder i64* %rcx.019.reg2mem, { 2, 0, 1 } uselistorder i128* %xmm0.018.reg2mem, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 } uselistorder i32* @gv_5, { 2, 1, 0 } uselistorder i32 0, { 0, 1, 3, 2 } uselistorder [3 x i8]* @gv_3, { 1, 0 } uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
read_huffman_tables_1974
read_huffman_tables
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i32 %sv_1.0.lcssa.reg2mem = alloca i32 %.reg2mem79 = alloca i32 %sv_1.013.reg2mem = alloca i32 %sv_0.014.reg2mem = alloca i32 %.reg2mem77 = alloca i64 %.reg2mem75 = alloca i32* %.reg2mem73 = alloca i32 %indvars.iv46.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i32 %sv_4.0.reg2mem = alloca i32 %sv_5.0.reg2mem = alloca i32 %sv_5.117.reg2mem = alloca i32 %sv_4.118.reg2mem = alloca i32 %sv_3.119.reg2mem = alloca i32 %sv_2.120.reg2mem = alloca i32 %indvars.iv43.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %.reg2mem71 = alloca i64 %.lcssa10.reg2mem = alloca i8 %.lcssa11.reg2mem = alloca i8* %.lcssa12.reg2mem = alloca i64 %.reg2mem69 = alloca i8* %.reg2mem = alloca i8 %indvars.iv48.reg2mem = alloca i64 %storemerge.in.in.reg2mem = alloca i8* %sv_6.0.in.reg2mem = alloca i8 %sv_7.0.in.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg2 to i64 %sv_8 = alloca i64, align 8 %sv_9 = alloca i64, align 8 %sv_10 = alloca i64, align 8 %sv_11 = alloca i64, align 8 %5 = ptrtoint i64* %sv_11 to i64 %6 = call i64* @memset(i64* nonnull %sv_10, i32 0, i32 2048) %7 = call i64* @memset(i64* nonnull %sv_9, i32 -1, i32 2048) %8 = add i64 %4, 1 %9 = trunc i64 %3 to i8 %10 = inttoptr i64 %8 to i8* %11 = add i64 %5, -2096 store i64 %4, i64* %sv_7.0.in.in.reg2mem store i8 %9, i8* %sv_6.0.in.reg2mem store i8* %10, i8** %storemerge.in.in.reg2mem br label LBL_1 LBL_1: %storemerge.in.in.reload = load i8*, i8** %storemerge.in.in.reg2mem %sv_6.0.in.reload = load i8, i8* %sv_6.0.in.reg2mem %sv_7.0.in.in.reload = load i64, i64* %sv_7.0.in.in.reg2mem %sv_7.0.in = add i64 %sv_7.0.in.in.reload, 2 %sv_7.0 = inttoptr i64 %sv_7.0.in to i8* %storemerge.in = load i8, i8* %storemerge.in.in.reload, align 1 %12 = icmp ugt i8 %sv_6.0.in.reload, %storemerge.in %13 = add i64 %sv_7.0.in.in.reload, 3 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %sv_7.0, align 1 store i64 %sv_7.0.in, i64* %.lcssa12.reg2mem store i8* %14, i8** %.lcssa11.reg2mem store i8 %15, i8* %.lcssa10.reg2mem br i1 %12, label LBL_4, label LBL_2 LBL_2: %storemerge = zext i8 %storemerge.in to i64 %16 = zext i8 %sv_6.0.in.reload to i64 store i64 %16, i64* %indvars.iv48.reg2mem store i8 %15, i8* %.reg2mem store i8* %14, i8** %.reg2mem69 br label LBL_3 LBL_3: %.reload70 = load i8*, i8** %.reg2mem69 %.reload = load i8, i8* %.reg2mem %indvars.iv48.reload = load i64, i64* %indvars.iv48.reg2mem %17 = zext i8 %.reload to i32 %18 = mul i64 %indvars.iv48.reload, 4 %19 = add i64 %18, %11 %20 = inttoptr i64 %19 to i32* store i32 %17, i32* %20, align 4 %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48.reload, 1 %21 = ptrtoint i8* %.reload70 to i64 %22 = add i64 %21, 1 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %.reload70, align 1 %exitcond50 = icmp eq i64 %indvars.iv48.reload, %storemerge store i64 %indvars.iv.next49, i64* %indvars.iv48.reg2mem store i8 %24, i8* %.reg2mem store i8* %23, i8** %.reg2mem69 store i64 %21, i64* %.lcssa12.reg2mem store i8* %23, i8** %.lcssa11.reg2mem store i8 %24, i8* %.lcssa10.reg2mem br i1 %exitcond50, label LBL_4, label LBL_3 LBL_4: %.lcssa10.reload = load i8, i8* %.lcssa10.reg2mem %.lcssa11.reload = load i8*, i8** %.lcssa11.reg2mem %.lcssa12.reload = load i64, i64* %.lcssa12.reg2mem %25 = icmp eq i8 %.lcssa10.reload, 0 store i64 %.lcssa12.reload, i64* %sv_7.0.in.in.reg2mem store i8 %.lcssa10.reload, i8* %sv_6.0.in.reg2mem store i8* %.lcssa11.reload, i8** %storemerge.in.in.reg2mem br i1 %25, label LBL_5, label LBL_1 LBL_5: %26 = ptrtoint i8* %.lcssa11.reload to i64 %27 = sub i64 %26, %4 %28 = urem i64 %27, 4 %29 = icmp eq i64 %28, 0 %30 = icmp eq i1 %29, false store i64 %26, i64* %.reg2mem71 store i64 %26, i64* %.lcssa.reg2mem br i1 %30, label LBL_6, label LBL_7 LBL_6: %.reload72 = load i64, i64* %.reg2mem71 %31 = add i64 %.reload72, 1 %32 = sub i64 %31, %4 %33 = urem i64 %32, 4 %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false store i64 %31, i64* %.reg2mem71 store i64 %31, i64* %.lcssa.reg2mem br i1 %35, label LBL_6, label LBL_7 LBL_7: %36 = ptrtoint i64* %arg1 to i64 %37 = ptrtoint i64* %sv_9 to i64 %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %38 = add i64 %5, -2608 %39 = add i64 %5, -4656 store i64 257, i64* %indvars.iv46.reg2mem br label LBL_8.lr.ph LBL_8: %sv_5.117.reload = load i32, i32* %sv_5.117.reg2mem %sv_4.118.reload = load i32, i32* %sv_4.118.reg2mem %sv_3.119.reload = load i32, i32* %sv_3.119.reg2mem %sv_2.120.reload = load i32, i32* %sv_2.120.reg2mem %indvars.iv43.reload = load i64, i64* %indvars.iv43.reg2mem %40 = mul i64 %indvars.iv43.reload, 4 %41 = add i64 %40, %11 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = icmp ne i32 %43, 0 %45 = icmp ult i32 %43, %sv_4.118.reload %or.cond = icmp eq i1 %44, %45 store i32 %sv_5.117.reload, i32* %sv_5.0.reg2mem store i32 %sv_4.118.reload, i32* %sv_4.0.reg2mem store i32 %sv_3.119.reload, i32* %sv_3.0.reg2mem store i32 %sv_2.120.reload, i32* %sv_2.0.reg2mem br i1 %or.cond, label LBL_9, label LBL_10 LBL_9: %46 = icmp ult i32 %43, %sv_5.117.reload %spec.select = select i1 %46, i32 %43, i32 %sv_5.117.reload %spec.select7 = select i1 %46, i32 %sv_5.117.reload, i32 %43 %47 = trunc i64 %indvars.iv43.reload to i32 %spec.select8 = select i1 %46, i32 %47, i32 %sv_3.119.reload %spec.select9 = select i1 %46, i32 %sv_3.119.reload, i32 %47 store i32 %spec.select, i32* %sv_5.0.reg2mem store i32 %spec.select7, i32* %sv_4.0.reg2mem store i32 %spec.select8, i32* %sv_3.0.reg2mem store i32 %spec.select9, i32* %sv_2.0.reg2mem br label LBL_10 LBL_10: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem %sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem %sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43.reload, 1 %exitcond45 = icmp eq i64 %indvars.iv.next44, %indvars.iv46.reload store i64 %indvars.iv.next44, i64* %indvars.iv43.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.120.reg2mem store i32 %sv_3.0.reload, i32* %sv_3.119.reg2mem store i32 %sv_4.0.reload, i32* %sv_4.118.reg2mem store i32 %sv_5.0.reload, i32* %sv_5.117.reg2mem br i1 %exitcond45, label LBL_11, label LBL_8 LBL_11: %48 = icmp eq i32 %sv_4.0.reload, 65536 br i1 %48, label LBL_14, label LBL_12 LBL_12: %49 = add i32 %sv_4.0.reload, %sv_5.0.reload %50 = mul i64 %indvars.iv46.reload, 4 %51 = add i64 %50, %11 %52 = inttoptr i64 %51 to i32* store i32 %49, i32* %52, align 4 %53 = sext i32 %sv_3.0.reload to i64 %54 = add i64 %38, %53 %55 = inttoptr i64 %54 to i8* store i8 0, i8* %55, align 1 %56 = sext i32 %sv_2.0.reload to i64 %57 = add i64 %38, %56 %58 = inttoptr i64 %57 to i8* store i8 1, i8* %58, align 1 %59 = mul i64 %56, 4 %60 = add i64 %59, %39 %61 = inttoptr i64 %60 to i32* %62 = trunc i64 %indvars.iv46.reload to i32 store i32 %62, i32* %61, align 4 %63 = mul i64 %53, 4 %64 = add i64 %63, %39 %65 = inttoptr i64 %64 to i32* store i32 %62, i32* %65, align 4 %66 = add i64 %59, %11 %67 = inttoptr i64 %66 to i32* store i32 0, i32* %67, align 4 %68 = add i64 %63, %11 %69 = inttoptr i64 %68 to i32* store i32 0, i32* %69, align 4 %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46.reload, 1 %70 = icmp ult i64 %indvars.iv.next47, 512 store i64 %indvars.iv.next47, i64* %indvars.iv46.reg2mem br i1 %70, label LBL_8.lr.ph, label LBL_14 LBL_13: %indvars.iv46.reload = load i64, i64* %indvars.iv46.reg2mem store i64 0, i64* %indvars.iv43.reg2mem store i32 0, i32* %sv_2.120.reg2mem store i32 0, i32* %sv_3.119.reg2mem store i32 65536, i32* %sv_4.118.reg2mem store i32 65536, i32* %sv_5.117.reg2mem br label LBL_8 LBL_14: %71 = add i64 %5, -5968 %72 = add i64 %5, -4928 store i64 0, i64* %indvars.iv.reg2mem br label LBL_19 LBL_15: %sv_1.013.reload = load i32, i32* %sv_1.013.reg2mem %sv_0.014.reload = load i32, i32* %sv_0.014.reg2mem %.reload78 = load i64, i64* %.reg2mem77 %.reload74 = load i32, i32* %.reg2mem73 %73 = add i64 %.reload78, %38 %74 = inttoptr i64 %73 to i8* %75 = load i8, i8* %74, align 1 %76 = add i32 %sv_1.013.reload, 1 %77 = icmp slt i32 %76, 32 store i32 %.reload74, i32* %.reg2mem79 br i1 %77, label LBL_17, label LBL_16 LBL_16: %.reload76 = load i32*, i32** %.reg2mem75 %78 = zext i32 %sv_1.013.reload to i64 %79 = call i64 @FUNC(i64 %37, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %78, i64 %2, i64 %1) %.pre = load i32, i32* %.reload76, align 4 store i32 %.pre, i32* %.reg2mem79 br label LBL_17 LBL_17: %80 = zext i8 %75 to i32 %81 = urem i32 %sv_1.013.reload, 32 %82 = shl i32 %80, %81 %83 = add i32 %82, %sv_0.014.reload %.reload80 = load i32, i32* %.reg2mem79 %84 = sext i32 %.reload80 to i64 %85 = mul i64 %84, 4 %86 = add i64 %85, %39 %87 = inttoptr i64 %86 to i32* %88 = load i32, i32* %87, align 4 %89 = icmp eq i32 %88, -1 %90 = icmp eq i1 %89, false store i32 %88, i32* %.reg2mem73 store i32* %87, i32** %.reg2mem75 store i64 %84, i64* %.reg2mem77 store i32 %83, i32* %sv_0.014.reg2mem store i32 %76, i32* %sv_1.013.reg2mem store i32 %76, i32* %sv_1.0.lcssa.reg2mem store i32 %83, i32* %sv_0.0.lcssa.reg2mem br i1 %90, label LBL_15, label LBL_18 LBL_18: %sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem %sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem %91 = add i64 %71, %96 %92 = inttoptr i64 %91 to i32* store i32 %sv_0.0.lcssa.reload, i32* %92, align 4 %93 = trunc i32 %sv_1.0.lcssa.reload to i8 %94 = add i64 %72, %indvars.iv.reload %95 = inttoptr i64 %94 to i8* store i8 %93, i8* %95, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 257 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_20, label LBL_19 LBL_19: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %96 = mul i64 %indvars.iv.reload, 4 %97 = add i64 %96, %39 %98 = inttoptr i64 %97 to i32* %99 = load i32, i32* %98, align 4 %100 = icmp eq i32 %99, -1 %101 = icmp eq i1 %100, false store i32 %99, i32* %.reg2mem73 store i32* %98, i32** %.reg2mem75 store i64 %indvars.iv.reload, i64* %.reg2mem77 store i32 0, i32* %sv_0.014.reg2mem store i32 0, i32* %sv_1.013.reg2mem store i32 0, i32* %sv_1.0.lcssa.reg2mem store i32 0, i32* %sv_0.0.lcssa.reg2mem br i1 %101, label LBL_15, label LBL_18 LBL_20: %102 = add i64 %36, 8 %103 = call i64 @FUNC(i64 %102, i64 8, i64 257, i64* nonnull %sv_8, i64 1, i64 1) ret i64 %.lcssa.reload uselistorder i64 %96, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 3, 2, 1, 0 } uselistorder i32 %sv_1.013.reload, { 2, 1, 0 } uselistorder i64 %indvars.iv46.reload, { 2, 3, 1, 0 } uselistorder i64 %63, { 1, 0 } uselistorder i64 %59, { 1, 0 } uselistorder i32 %sv_4.0.reload, { 1, 0, 2 } uselistorder i32 %43, { 0, 1, 3, 2, 4 } uselistorder i32 %sv_3.119.reload, { 1, 2, 0 } uselistorder i32 %sv_5.117.reload, { 1, 2, 3, 0 } uselistorder i64 %39, { 1, 0, 2, 3 } uselistorder i64 %38, { 2, 0, 1 } uselistorder i8 %.lcssa10.reload, { 1, 0 } uselistorder i64 %indvars.iv48.reload, { 1, 0, 2 } uselistorder i8* %.reload70, { 1, 0 } uselistorder i8 %15, { 1, 0 } uselistorder i8* %14, { 1, 0 } uselistorder i64 %sv_7.0.in.in.reload, { 1, 0 } uselistorder i8 %sv_6.0.in.reload, { 1, 0 } uselistorder i64 %5, { 3, 4, 1, 2, 0 } uselistorder i64* %sv_9, { 1, 0 } uselistorder i64 %4, { 2, 1, 0, 3 } uselistorder i64* %sv_7.0.in.in.reg2mem, { 1, 0, 2 } uselistorder i8* %sv_6.0.in.reg2mem, { 1, 0, 2 } uselistorder i8** %storemerge.in.in.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv48.reg2mem, { 1, 0, 2 } uselistorder i8* %.reg2mem, { 1, 0, 2 } uselistorder i8** %.reg2mem69, { 1, 0, 2 } uselistorder i64* %.reg2mem71, { 2, 0, 1 } uselistorder i64* %indvars.iv43.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_2.120.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_3.119.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_4.118.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_5.117.reg2mem, { 2, 1, 0 } uselistorder i32* %.reg2mem73, { 1, 2, 0 } uselistorder i32** %.reg2mem75, { 1, 2, 0 } uselistorder i64* %.reg2mem77, { 1, 2, 0 } uselistorder i32* %sv_0.014.reg2mem, { 1, 2, 0 } uselistorder i32* %sv_1.013.reg2mem, { 1, 2, 0 } uselistorder i32* %.reg2mem79, { 0, 2, 1 } uselistorder i32* %sv_1.0.lcssa.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.lcssa.reg2mem, { 2, 0, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 257, { 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 0 } uselistorder i8 0, { 1, 0, 2 } uselistorder i64 4, { 0, 1, 2, 3, 4, 5, 7, 8, 6 } uselistorder i64 1, { 5, 4, 3, 1, 2, 6, 7, 0, 8 } uselistorder i32 0, { 0, 1, 2, 3, 4, 5, 6, 9, 8, 7 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
qemu_show_nic_models_15823
qemu_show_nic_models
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i32 %.reg2mem4 = alloca i64 %.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 store i64 0, i64* %storemerge.reg2mem br i1 %0, label LBL_5, label LBL_1 LBL_1: %1 = inttoptr i64 %arg1 to i8* %2 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %3 = icmp eq i32 %2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_2, label LBL_5 LBL_2: %4 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %5 = call i32 @fwrite(i64* bitcast ([29 x i8]* @gv_2 to i64*), i32 1, i32 28, %_IO_FILE* %4) %6 = load i64, i64* %arg2, align 8 %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false store i64 1, i64* %storemerge.reg2mem br i1 %8, label LBL_3, label LBL_5 LBL_3: %9 = ptrtoint i64* %arg2 to i64 %10 = add i64 %9, 8 store i64 %6, i64* %.reg2mem store i64 0, i64* %.reg2mem4 store i32 0, i32* %storemerge13.reg2mem br label LBL_4 LBL_4: %storemerge13.reload = load i32, i32* %storemerge13.reg2mem %.reload5 = load i64, i64* %.reg2mem4 %.reload = load i64, i64* %.reg2mem %11 = add i64 %10, %.reload5 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 %. = select i1 %14, i8 10, i8 44 %15 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %16 = inttoptr i64 %.reload to i8* %17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i8* %16, i8 %.) %18 = add i32 %storemerge13.reload, 1 %19 = sext i32 %18 to i64 %20 = mul i64 %19, 8 %21 = add i64 %20, %9 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp eq i64 %23, 0 %25 = icmp eq i1 %24, false store i64 %23, i64* %.reg2mem store i64 %20, i64* %.reg2mem4 store i32 %18, i32* %storemerge13.reg2mem store i64 1, i64* %storemerge.reg2mem br i1 %25, label LBL_4, label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem4, { 2, 0, 1 } uselistorder i32* %storemerge13.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 1, 2, 4, 3 } uselistorder i1 false, { 1, 0 } uselistorder %_IO_FILE** @gv_1, { 1, 0 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_5, { 0, 1, 3, 2 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
write_header_1857
write_header
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %2 = trunc i64 %arg3 to i32 %3 = icmp sgt i32 %2, 4 store i64 4294967295, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = ptrtoint i64* %arg2 to i64 %sext = mul i64 %arg3, 4294967296 %5 = ashr exact i64 %sext, 32 %6 = trunc i64 %1 to i32 %7 = trunc i64 %5 to i32 %8 = call i64 @FUNC(i64* nonnull %sv_0, i64 %4, i32 %7) %9 = ashr i32 %6, 4 %10 = add nsw i32 %9, -1 %11 = zext i32 %10 to i64 %12 = call i64 @FUNC(i64* nonnull %sv_0, i64 4, i64 %11) %13 = ptrtoint i32* %arg1 to i64 %14 = add i64 %13, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64* nonnull %sv_0, i64 12, i64 %17) %19 = add i64 %13, 8 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = ashr i32 %21, 4 %23 = add nsw i32 %22, -1 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64* nonnull %sv_0, i64 4, i64 %24) %26 = add i64 %13, 12 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = zext i32 %28 to i64 %30 = call i64 @FUNC(i64* nonnull %sv_0, i64 12, i64 %29) %31 = call i64 @FUNC(i64* nonnull %sv_0) %32 = add i64 %4, 4 %33 = add i64 %13, 16 %34 = inttoptr i64 %33 to i8* %35 = load i8, i8* %34, align 1 %36 = inttoptr i64 %32 to i8* store i8 %35, i8* %36, align 1 %37 = load i8, i8* %34, align 1 %38 = urem i8 %37, 2 %39 = icmp eq i8 %38, 0 store i64 5, i64* %rax.0.reg2mem br i1 %39, label LBL_4, label LBL_2 LBL_2: %40 = add nsw i64 %5, 4294967291 %41 = and i64 %40, 4294967295 %42 = add i64 %4, 5 %43 = call i64 @FUNC(i64 %13, i64 %42, i64 %41) %44 = trunc i64 %43 to i32 %45 = icmp slt i32 %44, 0 %46 = icmp eq i1 %45, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %46, label LBL_3, label LBL_4 LBL_3: %47 = add i64 %43, 5 %phitmp = and i64 %47, 4294967295 store i64 %phitmp, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 } uselistorder i64 5, { 1, 2, 0 } uselistorder i64 12, { 0, 2, 1, 3, 4 } uselistorder i64 (i64*, i64, i64)* @put_bits, { 3, 2, 1, 0 } uselistorder i64 4, { 0, 1, 3, 2 } uselistorder i32 4, { 1, 2, 0 } uselistorder label LBL_4, { 1, 2, 0, 3 } }
0
BinRealVul
getPakVersion_3632
getPakVersion
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 store i64 %arg2, i64* %sv_0, align 8 %2 = icmp eq i64 %arg2, 0 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %arg2, i64* nonnull @gv_0) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_8, label LBL_2 LBL_2: %6 = trunc i64 %1 to i8 %7 = call i64 @FUNC(i64 %arg1) %8 = call i64 @FUNC(i64 %7, i64* nonnull @gv_1, i64* nonnull %sv_0) %9 = icmp eq i8 %6, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_8, label LBL_3 LBL_3: %11 = load i64, i64* @gv_2, align 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13, i64 %8) %15 = call i64 @FUNC(i64 %14, i64 1) %16 = call i64 @FUNC(i64 %15, i64 4198945, i64 0) %17 = call i64 @FUNC(i64 %15) %18 = icmp eq i64 %17, 0 br i1 %18, label LBL_3.LBL_6_crit_edge, label LBL_5 LBL_4: %.pre = load i64, i64* %sv_0, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_6 LBL_5: %19 = inttoptr i64 %17 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20) store i64 %21, i64* %sv_0, align 8 store i64 %21, i64* %.reg2mem br label LBL_6 LBL_6: %.reload = load i64, i64* %.reg2mem %22 = icmp eq i64 %.reload, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %8) store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_8: %25 = load i64, i64* %sv_0, align 8 store i64 %25, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0, { 2, 3, 0, 1, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i8 0, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
r_trie_free_7275
r_trie_free
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1) call void @free(i64* nonnull %arg1) store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %arg1, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
mov_stsc_index_valid_15970
mov_stsc_index_valid
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg2 to i32 %1 = add i64 %arg1, 1 %2 = trunc i64 %1 to i32 %3 = sub i32 %0, %2 %4 = xor i64 %1, %arg2 %5 = trunc i64 %4 to i32 %6 = xor i32 %3, %0 %7 = and i32 %6, %5 %8 = icmp slt i32 %7, 0 %9 = icmp eq i32 %3, 0 %10 = icmp slt i32 %3, 0 %11 = icmp eq i1 %10, %8 %12 = icmp eq i1 %9, false %13 = icmp eq i1 %11, %12 %14 = zext i1 %13 to i64 ret i64 %14 uselistorder i32 %3, { 1, 2, 0 } }
1
BinRealVul
regime_is_user_15557
regime_is_user
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = trunc i64 %arg2 to i32 %1 = icmp ult i32 %0, 2 store i64 1, i64* %storemerge.reg2mem br i1 %1, label LBL_3, label LBL_1 LBL_1: %2 = or i32 %0, 1 %3 = icmp eq i32 %2, 3 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_2, label LBL_3 LBL_2: %4 = call i64 @FUNC() unreachable LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload }
1
BinRealVul
write_refcount_block_590
write_refcount_block
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %3, i64 %3, i64 %8, i64 %0) %10 = icmp slt i64 %9, 0 %11 = icmp eq i1 %10, false %. = select i1 %11, i64 0, i64 4294967291 store i64 %., i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 1, 0, 2 } uselistorder i64 %0, { 1, 0, 2 } }
0
BinRealVul
ieee80211_ifdetach_3778
ieee80211_ifdetach
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %0) %4 = call i64 @FUNC(i64 %0) %5 = call i64 @FUNC(i64 %0, i64 0) %6 = add i64 %0, 4 %7 = call i64 @FUNC(i64 %6, i64 0) %8 = call i64 @FUNC(i64 %0) ret i64 %8 uselistorder i64 %0, { 0, 6, 5, 1, 2, 3, 4 } }
0
BinRealVul
qemu_fill_buffer_1387
qemu_fill_buffer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 23, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %6 = trunc i64 %1 to i32 %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = sub i32 %6, %9 %11 = icmp slt i32 %10, 1 br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = add i64 %2, 16 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = sext i32 %9 to i64 %16 = add i64 %14, %15 %17 = inttoptr i64 %14 to i64* %18 = inttoptr i64 %16 to i64* %19 = call i64* @memmove(i64* %17, i64* %18, i32 %10) br label LBL_4 LBL_4: store i32 0, i32* %8, align 4 %20 = bitcast i64* %arg1 to i32* store i32 %10, i32* %20, align 4 %21 = add i64 %2, 8 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = trunc i64 %23 to i32 %25 = icmp slt i32 %24, 1 br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = bitcast i64* %rdi to i32* %27 = load i32, i32* %26, align 8 %28 = add i32 %27, %24 store i32 %28, i32* %20, align 4 %29 = add i64 %2, 32 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i32 %31, %24 store i32 %32, i32* %30, align 4 br label LBL_10 LBL_6: %33 = icmp eq i32 %24, 0 %34 = icmp eq i1 %33, false br i1 %34, label LBL_8, label LBL_7 LBL_7: %35 = call i64 @FUNC(i64 %2, i64 4294967291) br label LBL_10 LBL_8: %36 = icmp eq i32 %24, -11 br i1 %36, label LBL_10, label LBL_9 LBL_9: %37 = and i64 %23, 4294967295 %38 = call i64 @FUNC(i64 %2, i64 %37) br label LBL_10 LBL_10: %sext = mul i64 %23, 4294967296 %39 = ashr exact i64 %sext, 32 ret i64 %39 uselistorder i32 %24, { 2, 3, 0, 1, 4 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %2, { 3, 2, 1, 4, 0, 5, 6 } uselistorder i64 (i64, i64)* @qemu_file_set_error, { 1, 0 } }
0
BinRealVul
create_argv_command_18774
create_argv_command
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.1.lcssa.reg2mem = alloca i64 %rsi.3.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rsi.2.reg2mem = alloca i64 %sv_0.19.reg2mem = alloca i64 %rsi.410.reg2mem = alloca i64 %storemerge11.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %storemerge4.in.reg2mem = alloca i64 %storemerge5.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 store i64 0, i64* %storemerge6.reg2mem br label LBL_1 LBL_1: %storemerge6.reload = load i64, i64* %storemerge6.reg2mem %1 = mul i64 %storemerge6.reload, 8 %2 = add i64 %1, %0 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %7 = add i64 %storemerge6.reload, 1 store i64 %7, i64* %storemerge6.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_2: %8 = icmp eq i64* %arg1, null %9 = icmp eq i1 %8, false br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = call i64 @FUNC(i64 %7, i64 8) store i64 %7, i64* %rdi.0.reg2mem store i64 %10, i64* %storemerge5.reg2mem br label LBL_5 LBL_4: %11 = add i64 %storemerge6.reload, 5 %12 = call i64 @FUNC(i64 %11, i64 8) store i64 %11, i64* %rdi.0.reg2mem store i64 %12, i64* %storemerge5.reg2mem br label LBL_5 LBL_5: %13 = ptrtoint i64* %arg1 to i64 %storemerge5.reload = load i64, i64* %storemerge5.reg2mem %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %14 = icmp eq i64 %rdi.0.reload, 0 br i1 %14, label LBL_7, label LBL_6 LBL_6: %15 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0)) %16 = inttoptr i64 %storemerge5.reload to i64* store i64 %15, i64* %16, align 8 %17 = add i64 %storemerge5.reload, 8 %18 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %19 = inttoptr i64 %17 to i64* store i64 %18, i64* %19, align 8 %20 = add i64 %storemerge5.reload, 16 %21 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %22 = inttoptr i64 %20 to i64* store i64 %21, i64* %22, align 8 %23 = add i64 %storemerge5.reload, 24 %24 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0)) %25 = inttoptr i64 %23 to i64* store i64 %24, i64* %25, align 8 %26 = add i64 %storemerge5.reload, 32 %27 = add i64 %13, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = inttoptr i64 %26 to i64* store i64 %29, i64* %30, align 8 store i64 8, i64* %rsi.1.reg2mem store i64 5, i64* %storemerge3.reg2mem br label LBL_11 LBL_7: %31 = add i64 %13, 8 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = inttoptr i64 %33 to i8* %35 = call i8* @strrchr(i8* %34, i32 47) %36 = icmp eq i8* %35, null %37 = icmp eq i1 %36, false br i1 %37, label LBL_9, label LBL_8 LBL_8: %38 = load i64, i64* %32, align 8 store i64 %38, i64* %storemerge4.in.reg2mem br label LBL_10 LBL_9: %39 = ptrtoint i8* %35 to i64 %40 = add i64 %39, 1 store i64 %40, i64* %storemerge4.in.reg2mem br label LBL_10 LBL_10: %storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem %storemerge4 = inttoptr i64 %storemerge4.in.reload to i8* %41 = call i64 @FUNC(i8* %storemerge4) %42 = inttoptr i64 %storemerge5.reload to i64* store i64 %41, i64* %42, align 8 store i64 47, i64* %rsi.1.reg2mem store i64 1, i64* %storemerge3.reg2mem br label LBL_11 LBL_11: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %43 = add i64 %13, 16 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = icmp eq i32 %45, -1 %47 = icmp eq i1 %46, false %48 = sext i32 %45 to i64 %49 = add i64 %storemerge6.reload, -1 %storemerge2 = select i1 %47, i64 %48, i64 %49 %50 = icmp ugt i64 %storemerge6.reload, 1 store i64 1, i64* %storemerge11.reg2mem store i64 %rsi.1.reload, i64* %rsi.410.reg2mem store i64 %storemerge3.reload, i64* %sv_0.19.reg2mem store i64 %storemerge3.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %50, label LBL_12, label LBL_22 LBL_12: %sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem %rsi.410.reload = load i64, i64* %rsi.410.reg2mem %storemerge11.reload = load i64, i64* %storemerge11.reg2mem %51 = mul i64 %storemerge11.reload, 8 %52 = add i64 %51, %0 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = add i64 %54, 8 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = icmp eq i64 %storemerge11.reload, %storemerge2 %61 = icmp eq i1 %60, false br i1 %61, label LBL_17, label LBL_13 LBL_13: %62 = call i64 @FUNC() store i64 %62, i64* %arg2, align 8 %63 = icmp eq i64 %rsi.410.reload, 0 %64 = icmp eq i1 %63, false br i1 %64, label LBL_15, label LBL_14 LBL_14: %65 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_15: %66 = call i64 @FUNC(i64 %rsi.410.reload, i64 %56, i64 %59) %67 = trunc i64 %66 to i32 %68 = icmp slt i32 %67, 0 %69 = icmp eq i1 %68, false store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem store i64 %56, i64* %rsi.3.reg2mem br i1 %69, label LBL_21, label LBL_16 LBL_16: %70 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_4, i64 0, i64 0)) unreachable LBL_17: %71 = icmp eq i64 %59, 0 %72 = icmp eq i1 %71, false %73 = mul i64 %sv_0.19.reload, 8 %74 = add i64 %73, %storemerge5.reload br i1 %72, label LBL_19, label LBL_18 LBL_18: %75 = call i64 @FUNC(i8* bitcast (i8** @gv_5 to i8*)) %76 = inttoptr i64 %74 to i64* store i64 %75, i64* %76, align 8 store i64 %rsi.410.reload, i64* %rsi.2.reg2mem br label LBL_20 LBL_19: %77 = call i64 @FUNC(i64 %56, i64 %59) %78 = inttoptr i64 %74 to i64* store i64 %77, i64* %78, align 8 store i64 %59, i64* %rsi.2.reg2mem br label LBL_20 LBL_20: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %79 = add i64 %sv_0.19.reload, 1 store i64 %79, i64* %sv_0.0.reg2mem store i64 %rsi.2.reload, i64* %rsi.3.reg2mem br label LBL_21 LBL_21: %rsi.3.reload = load i64, i64* %rsi.3.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %80 = add nuw i64 %storemerge11.reload, 1 %81 = icmp ult i64 %80, %storemerge6.reload store i64 %80, i64* %storemerge11.reg2mem store i64 %rsi.3.reload, i64* %rsi.410.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.19.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %81, label LBL_12, label LBL_22 LBL_22: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %82 = mul i64 %sv_0.1.lcssa.reload, 8 %83 = add i64 %82, %storemerge5.reload %84 = inttoptr i64 %83 to i64* store i64 0, i64* %84, align 8 ret i64 %storemerge5.reload uselistorder i64 %74, { 1, 0 } uselistorder i64 %59, { 0, 2, 3, 1 } uselistorder i64 %56, { 2, 0, 1 } uselistorder i64 %rsi.410.reload, { 0, 2, 1 } uselistorder i64 %sv_0.19.reload, { 1, 2, 0 } uselistorder i64 %storemerge5.reload, { 1, 8, 7, 0, 6, 5, 4, 3, 2 } uselistorder i64 %13, { 1, 2, 0 } uselistorder i64 %7, { 0, 2, 1 } uselistorder i64 %storemerge6.reload, { 2, 4, 3, 1, 0, 5 } uselistorder i64* %storemerge6.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge4.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge11.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.410.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.19.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.2.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.3.reg2mem, { 0, 2, 1 } uselistorder i64 (i8*)* @die, { 1, 0 } uselistorder i64 (i8*)* @xstrdup, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @xcalloc, { 1, 0 } uselistorder i64 1, { 3, 4, 0, 2, 1, 5, 6 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_21, { 1, 0 } uselistorder label LBL_12, { 1, 0 } }
1
BinRealVul
register_page_bootmem_info_section_9227
register_page_bootmem_info_section
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_5, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %3) %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %6, i64 %3) %8 = call i64 @FUNC(i64 %7) %9 = call i64 @FUNC(i64 0) %10 = udiv i64 %9, 4096 %11 = icmp ult i64 %9, 4096 store i64 0, i64* %storemerge13.reg2mem br i1 %11, label LBL_3, label LBL_2 LBL_2: %storemerge13.reload = load i64, i64* %storemerge13.reg2mem %12 = call i64 @FUNC(i64 %3, i64 %8, i64 0) %13 = add nuw nsw i64 %storemerge13.reload, 1 %exitcond4 = icmp eq i64 %13, %10 store i64 %13, i64* %storemerge13.reg2mem br i1 %exitcond4, label LBL_3, label LBL_2 LBL_3: %14 = call i64 @FUNC(i64 %3) %15 = add i64 %14, 8 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = call i64 @FUNC(i64 %17) %19 = call i64 @FUNC() %20 = call i64 @FUNC(i64 %19) %21 = udiv i64 %20, 4096 %22 = icmp ult i64 %20, 4096 store i64 0, i64* %storemerge2.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_5, label LBL_4 LBL_4: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %23 = call i64 @FUNC(i64 %3, i64 %18, i64 1) %24 = add nuw nsw i64 %storemerge2.reload, 1 %exitcond = icmp eq i64 %24, %21 store i64 %24, i64* %storemerge2.reg2mem store i64 %21, i64* %rax.0.reg2mem br i1 %exitcond, label LBL_5, label LBL_4 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64 1, { 1, 0, 2 } uselistorder i64 (i64, i64, i64)* @get_page_bootmem, { 1, 0 } uselistorder i64 4096, { 0, 2, 1, 3 } uselistorder i64 (i64)* @PAGE_ALIGN, { 1, 0 } uselistorder i64 (i64)* @virt_to_page, { 1, 0 } uselistorder i64 (i64)* @__nr_to_section, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
kvm_vcpu_destroy_12001
kvm_vcpu_destroy
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = add i64 %arg1, 16 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %arg1) %3 = add i64 %arg1, 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = sext i32 %5 to i64 %7 = call i64 @FUNC(i64 %6, i64 1) %8 = and i64 %7, 4294967295 %9 = call i64 @FUNC(i64 %8) %10 = call i64 @FUNC(i64 %8) %11 = load i64, i64* @gv_0, align 8 %12 = call i64 @FUNC(i64 %11, i64 %arg1) ret i64 %12 uselistorder i64 %8, { 1, 0 } }
1
BinRealVul
bpf_int_jit_compile_6306
bpf_int_jit_compile
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem85 = alloca i64 %sv_0.2.reg2mem = alloca i32 %.reg2mem83 = alloca i64 %sv_1.152.reg2mem = alloca i32* %sv_1.0.reg2mem = alloca i32* %.pre.reg2mem = alloca i64 %sv_1.161.reg2mem = alloca i32* %sv_2.062.reg2mem = alloca i32 %storemerge63.reg2mem = alloca i32 %.pre64.reg2mem = alloca i64 %sv_0.021.reg2mem = alloca i32 %storemerge222.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %sv_3 = alloca i64, align 8 %sv_4 = alloca i32, align 4 store i32 0, i32* %sv_4, align 4 store i64 0, i64* %sv_3, align 8 %2 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %3 = zext i32 %2 to i64 %4 = icmp eq i32 %2, 0 %5 = icmp eq i64* %arg1, null %or.cond = or i1 %5, %4 store i64 %3, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_20, label LBL_1 LBL_1: %6 = trunc i64 %1 to i32 %7 = icmp eq i32 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_20, label LBL_2 LBL_2: %8 = ptrtoint i64* %arg1 to i64 %9 = bitcast i64* %rdi to i32* %sext = mul i64 %1, 4294967296 %10 = ashr exact i64 %sext, 30 %11 = call i64 @FUNC(i64 %10, i64 0) %12 = icmp eq i64 %11, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge222.reg2mem store i32 0, i32* %sv_0.021.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_20, label LBL_3 LBL_3: %sv_0.021.reload = load i32, i32* %sv_0.021.reg2mem %storemerge222.reload = load i32, i32* %storemerge222.reg2mem %.reload = load i64, i64* %.reg2mem %13 = add i32 %sv_0.021.reload, 64 %14 = mul i64 %.reload, 4 %15 = add i64 %14, %11 %16 = inttoptr i64 %15 to i32* store i32 %13, i32* %16, align 4 %17 = add i32 %storemerge222.reload, 1 %18 = load i32, i32* %9, align 8 %19 = zext i32 %18 to i64 %20 = sext i32 %17 to i64 %21 = icmp slt i64 %20, %19 store i64 %20, i64* %.reg2mem store i32 %17, i32* %storemerge222.reg2mem store i32 %13, i32* %sv_0.021.reg2mem br i1 %21, label LBL_3, label LBL_4 LBL_4: store i32 %13, i32* %sv_4, align 4 %.pre60 = load i64, i64* %sv_3, align 8 store i64 %.pre60, i64* %.pre64.reg2mem store i32 0, i32* %storemerge63.reg2mem store i32 0, i32* %sv_2.062.reg2mem store i32* null, i32** %sv_1.161.reg2mem br label LBL_5 LBL_5: %sv_1.161.reload = load i32*, i32** %sv_1.161.reg2mem %sv_2.062.reload = load i32, i32* %sv_2.062.reg2mem %.pre64.reload = load i64, i64* %.pre64.reg2mem %22 = call i64 @FUNC(i64 %8, i64 %11, i64 %.pre64.reload, i32 %sv_2.062.reload, i32* nonnull %sv_4) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp slt i32 %23, 0 %26 = icmp eq i1 %25, false %27 = icmp eq i1 %24, false %28 = icmp eq i1 %26, %27 br i1 %28, label LBL_8, label LBL_6 LBL_6: store i64 0, i64* %sv_3, align 8 %29 = icmp eq i32* %sv_1.161.reload, null br i1 %29, label LBL_19, label LBL_7 LBL_7: %30 = ptrtoint i32* %sv_1.161.reload to i64 %31 = call i64 @FUNC(i64 %30) br label LBL_19 LBL_8: %32 = load i64, i64* %sv_3, align 8 %33 = icmp eq i64 %32, 0 %34 = icmp eq i32 %sv_2.062.reload, %23 br i1 %33, label LBL_11, label LBL_9 LBL_9: store i32* %sv_1.161.reload, i32** %sv_1.152.reg2mem store i64 %32, i64* %.reg2mem83 store i32 %sv_2.062.reload, i32* %sv_0.2.reg2mem br i1 %34, label LBL_15, label LBL_10 LBL_10: %35 = and i64 %22, 4294967295 %36 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %35, i32 %sv_2.062.reload) br label LBL_19 LBL_11: %storemerge63.reload = load i32, i32* %storemerge63.reg2mem %37 = icmp eq i1 %34, false store i64 0, i64* %.pre.reg2mem store i32* %sv_1.161.reload, i32** %sv_1.0.reg2mem br i1 %37, label LBL_14, label LBL_12 LBL_12: %38 = and i64 %22, 4294967295 %39 = call i64 @FUNC(i64 %38, i64* nonnull %sv_3, i64 1, i64 4199037) %40 = icmp eq i64 %39, 0 br i1 %40, label LBL_19, label LBL_12.LBL_14_crit_edge LBL_13: %41 = inttoptr i64 %39 to i32* %.pre.pre = load i64, i64* %sv_3, align 8 store i64 %.pre.pre, i64* %.pre.reg2mem store i32* %41, i32** %sv_1.0.reg2mem br label LBL_14 LBL_14: %sv_1.0.reload = load i32*, i32** %sv_1.0.reg2mem %.pre.reload = load i64, i64* %.pre.reg2mem %42 = add i32 %storemerge63.reload, 1 %43 = icmp slt i32 %42, 10 %44 = icmp eq i64 %.pre.reload, 0 %45 = icmp eq i1 %44, false %or.cond39 = or i1 %43, %45 store i64 %.pre.reload, i64* %.pre64.reg2mem store i32 %42, i32* %storemerge63.reg2mem store i32 %23, i32* %sv_2.062.reg2mem store i32* %sv_1.0.reload, i32** %sv_1.161.reg2mem store i32* %sv_1.0.reload, i32** %sv_1.152.reg2mem store i64 %.pre.reload, i64* %.reg2mem83 store i32 %23, i32* %sv_0.2.reg2mem br i1 %or.cond39, label LBL_5, label LBL_15 LBL_15: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %.reload84 = load i64, i64* %.reg2mem83 %sv_1.152.reload = load i32*, i32** %sv_1.152.reg2mem %46 = load i32, i32* @gv_1, align 4 %47 = icmp slt i32 %46, 2 store i64 %.reload84, i64* %.reg2mem85 br i1 %47, label LBL_17, label LBL_16 LBL_16: %48 = call i64 @FUNC(i64 %19, i32 %sv_0.2.reload, i64 0, i64 %.reload84) %.pre37 = load i64, i64* %sv_3, align 8 store i64 %.pre37, i64* %.reg2mem85 br label LBL_17 LBL_17: %.reload86 = load i64, i64* %.reg2mem85 %49 = icmp eq i64 %.reload86, 0 br i1 %49, label LBL_19, label LBL_18 LBL_18: %50 = sext i32 %sv_0.2.reload to i64 %51 = add i64 %.reload86, %50 %52 = ptrtoint i32* %sv_1.152.reload to i64 %53 = call i64 @FUNC(i64 %52, i64 %51) %54 = load i32, i32* %sv_1.152.reload, align 4 %55 = zext i32 %54 to i64 %56 = call i64 @FUNC(i64 %52, i64 %55) %57 = load i64, i64* %sv_3, align 8 %58 = add i64 %8, 8 %59 = inttoptr i64 %58 to i64* store i64 %57, i64* %59, align 8 %60 = add i64 %8, 16 %61 = inttoptr i64 %60 to i32* store i32 1, i32* %61, align 4 br label LBL_19 LBL_19: %62 = call i64 @FUNC(i64 %11) store i64 %62, i64* %rax.0.reg2mem br label LBL_20 LBL_20: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %.reload86, { 1, 0 } uselistorder i32* %sv_1.152.reload, { 1, 0 } uselistorder i64 %.reload84, { 1, 0 } uselistorder i64 %.pre.reload, { 0, 2, 1 } uselistorder i1 %34, { 1, 0 } uselistorder i32 %23, { 0, 1, 2, 4, 3 } uselistorder i64 %22, { 1, 0, 2 } uselistorder i32 %sv_2.062.reload, { 3, 0, 1, 2 } uselistorder i32* %sv_1.161.reload, { 1, 0, 2, 3 } uselistorder i32 %13, { 1, 0, 2 } uselistorder i64 %11, { 1, 2, 0, 3 } uselistorder i64* %sv_3, { 4, 2, 0, 3, 5, 6, 1, 7 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge222.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.021.reg2mem, { 2, 0, 1 } uselistorder i64* %.pre64.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge63.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.062.reg2mem, { 1, 0, 2 } uselistorder i32** %sv_1.161.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem85, { 0, 2, 1 } uselistorder i1 false, { 0, 2, 3, 1 } uselistorder i32* null, { 1, 0 } uselistorder i32 0, { 5, 6, 0, 1, 2, 3, 7, 8, 4, 9 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_20, { 3, 0, 1, 2 } uselistorder label LBL_19, { 4, 1, 0, 5, 3, 2 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
dtls1_stop_timer_11605
dtls1_stop_timer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 4 %2 = inttoptr i64 %1 to i64* %3 = call i64* @memset(i64* %2, i32 0, i32 8) %4 = add i64 %0, 16 %5 = inttoptr i64 %4 to i64* %6 = call i64* @memset(i64* %5, i32 0, i32 8) %7 = inttoptr i64 %4 to i32* store i32 1, i32* %7, align 4 %8 = add i64 %0, 28 %9 = call i64 @FUNC(i64 %0) %10 = call i64 @FUNC(i64 %9, i64 1, i64 0, i64 %8) %11 = call i64 @FUNC(i64 %0) ret i64 %11 uselistorder i64 %0, { 2, 3, 0, 1, 4 } uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 } }
1
BinRealVul
cg3_reg_read_14741
cg3_reg_read
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = icmp ult i64 %arg2, 32 br i1 %4, label LBL_1, label LBL_8 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = icmp ult i64 %arg2, 16 %7 = icmp eq i1 %6, false br i1 %7, label LBL_7, label LBL_2 LBL_2: %8 = icmp eq i64 %arg2, 3 br i1 %8, label LBL_6, label LBL_3 LBL_3: %9 = icmp ult i64 %arg2, 4 br i1 %9, label LBL_4, label LBL_8 LBL_4: %10 = icmp ult i64 %arg2, 2 store i32 0, i32* %sv_0.0.reg2mem br i1 %10, label LBL_9, label LBL_5 LBL_5: %11 = trunc i64 %3 to i32 %12 = icmp eq i64 %arg2, 2 store i32 %11, i32* %sv_0.0.reg2mem br i1 %12, label LBL_9, label LBL_8 LBL_6: %13 = add i64 %5, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = or i32 %15, 12 store i32 %16, i32* %sv_0.0.reg2mem br label LBL_9 LBL_7: %17 = mul i64 %arg2, 4 %18 = add i64 %5, -64 %19 = add i64 %18, %17 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 store i32 %21, i32* %sv_0.0.reg2mem br label LBL_9 LBL_8: %22 = zext i32 %arg3 to i64 %23 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %22, i64 %2, i64 %1) store i32 0, i32* %sv_0.0.reg2mem store i64 %22, i64* %rcx.0.reg2mem br label LBL_9 LBL_9: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %24 = zext i32 %sv_0.0.reload to i64 %25 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %arg2, i64 %rcx.0.reload, i64 %2, i64 %1) %26 = sext i32 %sv_0.0.reload to i64 ret i64 %26 uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 5, 4, 1, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i64 4, { 0, 2, 1 } uselistorder i64 %arg2, { 2, 1, 0, 7, 6, 5, 4, 3, 8 } uselistorder label LBL_9, { 2, 3, 4, 0, 1 } }
1
BinRealVul
read_bus_info_block_7529
read_bus_info_block
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %storemerge2.lcssa.reg2mem = alloca i32 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_1.112.reg2mem = alloca i32 %storemerge213.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %sv_2.015.reg2mem = alloca i32 %sv_1.216.reg2mem = alloca i32 %indvars.iv19.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_3 = alloca i64, align 8 %4 = call i64 @FUNC(i64 2048, i64 0) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %6, label LBL_1, label LBL_31 LBL_1: %7 = ptrtoint i64* %arg1 to i64 %8 = trunc i64 %3 to i32 %9 = add i64 %4, 1024 %10 = bitcast i64* %arg1 to i32* store i32 100, i32* %10, align 4 %11 = trunc i64 %arg2 to i32 store i64 0, i64* %indvars.iv19.reg2mem br label LBL_2 LBL_2: %indvars.iv19.reload = load i64, i64* %indvars.iv19.reg2mem %12 = mul i64 %indvars.iv19.reload, 4 %13 = add i64 %12, %4 %14 = trunc i64 %indvars.iv19.reload to i32 %15 = call i64 @FUNC(i64 %7, i32 %11, i32 %14, i64 %13) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %18, label LBL_30, label LBL_3 LBL_3: %19 = icmp eq i64 %indvars.iv19.reload, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = inttoptr i64 %13 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, 0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %23, label LBL_30, label LBL_5 LBL_5: %indvars.iv.next20 = add nuw nsw i64 %indvars.iv19.reload, 1 %24 = icmp ult i64 %indvars.iv.next20, 5 store i64 %indvars.iv.next20, i64* %indvars.iv19.reg2mem br i1 %24, label LBL_2, label LBL_6 LBL_6: %25 = add i64 %7, 16 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 store i32 %29, i32* %10, align 4 %30 = add i64 %4, 8 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = urem i32 %32, 8 %34 = icmp ult i32 %33, %8 %35 = icmp eq i32 %8, 200 %or.cond = or i1 %35, %34 br i1 %or.cond, label LBL_8, label LBL_7 LBL_7: %36 = add i64 %7, 8 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %38, 8 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = icmp eq i32 %41, 0 br i1 %42, label LBL_13, label LBL_8 LBL_8: %43 = icmp eq i1 %35, false br i1 %43, label LBL_10, label LBL_9 LBL_9: %44 = add i64 %7, 8 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = add i64 %46, 4 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 store i32 %49, i32* %10, align 4 br label LBL_10 LBL_10: %50 = icmp sgt i32 %8, 100 br i1 %50, label LBL_11, label LBL_13 LBL_11: %51 = ptrtoint i64* %sv_3 to i64 %52 = add i32 %8, -1 %53 = call i64 @FUNC(i64 %7, i32 %11, i32 0, i64 %51) %54 = trunc i64 %53 to i32 %55 = icmp eq i32 %54, 0 br i1 %55, label LBL_13, label LBL_12 LBL_12: store i32 %52, i32* %10, align 4 %56 = call i64 @FUNC(i64 %7, i32 %11, i32 0, i64 %51) %57 = trunc i64 %56 to i32 %58 = icmp eq i32 %57, 0 br i1 %58, label LBL_13, label LBL_12 LBL_13: %59 = trunc i64 %indvars.iv.next20 to i32 %60 = inttoptr i64 %9 to i32* store i32 -1073741819, i32* %60, align 4 store i32 1, i32* %sv_1.216.reg2mem store i32 %59, i32* %sv_2.015.reg2mem br label LBL_14 LBL_14: %sv_1.216.reload = load i32, i32* %sv_1.216.reg2mem %61 = add i32 %sv_1.216.reload, -1 %62 = zext i32 %61 to i64 %63 = mul i64 %62, 4 %64 = add i64 %63, %9 %65 = inttoptr i64 %64 to i32* %66 = load i32, i32* %65, align 4 %67 = urem i32 %66, 16777216 %68 = add nsw i32 %67, -255 %69 = icmp eq i32 %68, 0 %70 = icmp slt i32 %68, 0 %71 = icmp eq i1 %70, false %72 = icmp eq i1 %69, false %73 = icmp eq i1 %71, %72 %74 = zext i1 %73 to i64 %75 = call i64 @FUNC(i64 %74) %76 = trunc i64 %75 to i32 %77 = icmp eq i32 %76, 0 %78 = icmp eq i1 %77, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %78, label LBL_30, label LBL_15 LBL_15: %79 = mul i32 %67, 4 %80 = zext i32 %79 to i64 %81 = add i64 %4, %80 %82 = call i64 @FUNC(i64 %7, i32 %11, i32 %67, i64 %81) %83 = trunc i64 %82 to i32 %84 = icmp eq i32 %83, 0 %85 = icmp eq i1 %84, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %85, label LBL_30, label LBL_16 LBL_16: %sv_2.015.reload = load i32, i32* %sv_2.015.reg2mem %86 = inttoptr i64 %81 to i32* %87 = load i32, i32* %86, align 4 %88 = udiv i32 %87, 65536 %89 = add nuw nsw i32 %67, 1 %90 = add nuw nsw i32 %88, %89 %91 = icmp ult i32 %90, 257 br i1 %91, label LBL_18, label LBL_17 LBL_17: %92 = zext i32 %87 to i64 %93 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %92, i64 %80, i64 %80, i64 %2, i64 %1) store i32 0, i32* %86, align 4 store i32 %61, i32* %sv_1.1.lcssa.reg2mem store i32 %89, i32* %storemerge2.lcssa.reg2mem br label LBL_27 LBL_18: %94 = icmp ult i32 %87, 65536 store i32 %61, i32* %sv_1.1.lcssa.reg2mem store i32 %89, i32* %storemerge2.lcssa.reg2mem br i1 %94, label LBL_27, label LBL_19 LBL_19: %95 = icmp ugt i32 %66, -1073741825 %96 = icmp eq i1 %95, false %97 = zext i32 %89 to i64 store i64 %97, i64* %indvars.iv.reg2mem store i32 %89, i32* %storemerge213.reg2mem store i32 %61, i32* %sv_1.112.reg2mem br label LBL_20 LBL_20: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %98 = mul i64 %indvars.iv.reload, 4 %99 = add i64 %98, %4 %100 = trunc i64 %indvars.iv.reload to i32 %101 = call i64 @FUNC(i64 %7, i32 %11, i32 %100, i64 %99) %102 = trunc i64 %101 to i32 %103 = icmp eq i32 %102, 0 %104 = icmp eq i1 %103, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %104, label LBL_30, label LBL_21 LBL_21: %sv_1.112.reload = load i32, i32* %sv_1.112.reg2mem %storemerge213.reload = load i32, i32* %storemerge213.reg2mem store i32 %sv_1.112.reload, i32* %sv_1.0.reg2mem br i1 %96, label LBL_26, label LBL_22 LBL_22: %105 = inttoptr i64 %99 to i32* %106 = load i32, i32* %105, align 4 %107 = icmp sgt i32 %106, -1 store i32 %sv_1.112.reload, i32* %sv_1.0.reg2mem br i1 %107, label LBL_26, label LBL_23 LBL_23: %108 = urem i32 %106, 16777216 %109 = add i32 %108, %100 %110 = icmp ult i32 %109, 256 br i1 %110, label LBL_25, label LBL_24 LBL_24: %111 = zext i32 %106 to i64 %112 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i64 %111, i64 %98, i64 %98, i64 %2, i64 %1) store i32 0, i32* %105, align 4 store i32 %sv_1.112.reload, i32* %sv_1.0.reg2mem br label LBL_26 LBL_25: %113 = add i32 %sv_1.112.reload, 1 %114 = zext i32 %sv_1.112.reload to i64 %115 = mul i64 %114, 4 %116 = add i64 %115, %9 %117 = add i32 %106, %100 %118 = inttoptr i64 %116 to i32* store i32 %117, i32* %118, align 4 store i32 %113, i32* %sv_1.0.reg2mem br label LBL_26 LBL_26: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %storemerge2 = add i32 %storemerge213.reload, 1 %119 = icmp ult i32 %storemerge2, %90 %indvars.iv.next = add i64 %indvars.iv.reload, 1 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %storemerge2, i32* %storemerge213.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.112.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem store i32 %storemerge2, i32* %storemerge2.lcssa.reg2mem br i1 %119, label LBL_20, label LBL_27 LBL_27: %storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %120 = icmp ult i32 %sv_2.015.reload, %storemerge2.lcssa.reload %spec.select = select i1 %120, i32 %storemerge2.lcssa.reload, i32 %sv_2.015.reload %121 = icmp eq i32 %sv_1.1.lcssa.reload, 0 %122 = icmp eq i1 %121, false store i32 %sv_1.1.lcssa.reload, i32* %sv_1.216.reg2mem store i32 %spec.select, i32* %sv_2.015.reg2mem br i1 %122, label LBL_14, label LBL_28 LBL_28: %123 = add i64 %7, 24 %124 = inttoptr i64 %123 to i64* %125 = load i64, i64* %124, align 8 %126 = mul i32 %spec.select, 4 %127 = sext i32 %126 to i64 %128 = call i64 @FUNC(i64 %4, i64 %127, i64 0) %129 = icmp eq i64 %128, 0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %129, label LBL_30, label LBL_29 LBL_29: %130 = call i64 @FUNC(i64* nonnull @gv_2) store i64 %128, i64* %124, align 8 %131 = add i64 %7, 32 %132 = inttoptr i64 %131 to i32* store i32 %spec.select, i32* %132, align 4 %133 = call i64 @FUNC(i64* nonnull @gv_2) %134 = call i64 @FUNC(i64 %125) %135 = load i32, i32* %31, align 4 %136 = udiv i32 %135, 4096 %137 = urem i32 %136, 16 %138 = add i64 %7, 36 %139 = inttoptr i64 %138 to i32* store i32 %137, i32* %139, align 4 %140 = load i32, i32* %31, align 4 %141 = udiv i32 %140, 1073741824 %142 = urem i32 %141, 2 %143 = add i64 %7, 40 %144 = inttoptr i64 %143 to i32* store i32 %142, i32* %144, align 4 %145 = load i32, i32* %31, align 4 %146 = icmp slt i32 %145, 0 %147 = zext i1 %146 to i32 %148 = add i64 %7, 44 %149 = inttoptr i64 %148 to i32* store i32 %147, i32* %149, align 4 store i64 0, i64* %sv_0.0.reg2mem br label LBL_30 LBL_30: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %150 = call i64 @FUNC(i64 %4) store i64 %sv_0.0.reload, i64* %storemerge.reg2mem br label LBL_31 LBL_31: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %spec.select, { 2, 1, 0 } uselistorder i32 %sv_1.1.lcssa.reload, { 1, 0 } uselistorder i32 %106, { 1, 2, 0, 3 } uselistorder i32 %sv_1.112.reload, { 4, 3, 0, 1, 2 } uselistorder i32 %89, { 2, 4, 1, 0, 3 } uselistorder i32 %87, { 0, 2, 1 } uselistorder i64 %80, { 1, 2, 0 } uselistorder i32 %68, { 1, 0 } uselistorder i32 %67, { 3, 2, 0, 1 } uselistorder i32 %66, { 1, 0 } uselistorder i32 %61, { 2, 1, 0, 3 } uselistorder i64 %51, { 1, 0 } uselistorder i1 %35, { 1, 0 } uselistorder i64 %indvars.iv.next20, { 1, 0, 2 } uselistorder i32 %11, { 2, 1, 3, 0, 4 } uselistorder i32* %10, { 1, 0, 2, 3 } uselistorder i32 %8, { 1, 0, 3, 2 } uselistorder i64 %7, { 3, 4, 5, 6, 7, 8, 9, 10, 0, 2, 1, 11, 12 } uselistorder i64 %4, { 5, 3, 1, 0, 4, 2, 6, 7 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv19.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.216.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.015.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge213.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.112.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i32* %sv_1.1.lcssa.reg2mem, { 0, 1, 3, 2 } uselistorder i32* %storemerge2.lcssa.reg2mem, { 0, 1, 3, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 7, 5, 3, 4, 1, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @kfree, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @fw_error, { 1, 0 } uselistorder i32 -1, { 1, 2, 0 } uselistorder i64 1, { 1, 0 } uselistorder i32 0, { 0, 11, 4, 5, 6, 7, 8, 9, 10, 12, 3, 1, 2, 15, 13, 14 } uselistorder i64 (i64, i32, i32, i64)* @read_rom, { 4, 3, 2, 0, 1 } uselistorder i64 4, { 0, 1, 2, 4, 3 } uselistorder i1 false, { 6, 2, 1, 3, 4, 5, 0, 9, 7, 8, 10 } uselistorder label LBL_31, { 1, 0 } uselistorder label LBL_30, { 6, 5, 4, 2, 3, 0, 1 } uselistorder label LBL_26, { 2, 3, 1, 0 } uselistorder label LBL_20, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_13, { 1, 0, 2, 3 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
io_tee_12928
io_tee
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.12.reg2mem = alloca i64 %sv_0.11.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = urem i64 %arg2, 2 %5 = icmp eq i64 %4, 0 store i64 4294967285, i64* %storemerge.reg2mem br i1 %5, label LBL_1, label LBL_9 LBL_1: %6 = urem i32 %3, 2 %7 = zext i32 %6 to i64 %8 = add i64 %0, 12 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = add i64 %0, 24 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13, i64 %0, i32 %10, i64 %7) %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false store i64 -9, i64* %sv_0.11.reg2mem br i1 %16, label LBL_2, label LBL_7 LBL_2: %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %20, label LBL_4, label LBL_3 LBL_3: %21 = and i32 %3, -2 %22 = call i64 @FUNC(i64 %14, i64 %0, i32 %19, i32 %21) store i64 %22, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %23 = load i32, i32* %2, align 4 %24 = urem i32 %23, 2 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_6, label LBL_5 LBL_5: %27 = call i64 @FUNC(i64 %14) br label LBL_6 LBL_6: %28 = load i32, i32* %18, align 4 %29 = zext i32 %28 to i64 %30 = icmp eq i64 %sv_0.0.reload, %29 store i64 %sv_0.0.reload, i64* %sv_0.11.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem br i1 %30, label LBL_8, label LBL_7 LBL_7: %sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem %31 = call i64 @FUNC(i64 %0) store i64 %sv_0.11.reload, i64* %sv_0.12.reg2mem br label LBL_8 LBL_8: %sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem %32 = call i64 @FUNC(i64 %0, i64 %sv_0.12.reload) store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %3, { 1, 0 } uselistorder i64 %0, { 2, 1, 0, 3, 5, 4, 6, 7 } uselistorder i64* %sv_0.11.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.12.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 1, 2, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
mp_mul_2d_12121
mp_mul_2d
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.in10.reg2mem = alloca i64 %sv_1.011.reg2mem = alloca i32 %storemerge712.reg2mem = alloca i32 %rdx = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg3 to i64 %3 = bitcast i64* %arg3 to i32* %4 = icmp eq i32* %3, %arg1 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = ptrtoint i32* %arg1 to i64 %6 = call i64 @FUNC(i64 %5, i64 %2) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = and i64 %6, 4294967295 store i64 %9, i64* %rax.0.reg2mem br label LBL_15 LBL_3: %sext = mul i64 %arg2, 4294967296 %10 = ashr exact i64 %sext, 32 %11 = add i64 %2, 4 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = sext i32 %13 to i64 %sext17 = mul i64 %1, 4294967296 %15 = ashr exact i64 %sext17, 32 %16 = udiv i64 %10, 32 %17 = add nuw nsw i64 %16, 1 %18 = add nsw i64 %15, %17 %19 = icmp ugt i64 %18, %14 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_4 LBL_4: %21 = add i64 %1, %17 %22 = and i64 %21, 4294967295 %23 = call i64 @FUNC(i64 %2, i64 %22) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = and i64 %23, 4294967295 store i64 %26, i64* %rax.0.reg2mem br label LBL_15 LBL_6: %27 = trunc i64 %10 to i32 %28 = icmp ult i32 %27, 32 br i1 %28, label LBL_9, label LBL_7 LBL_7: %29 = and i64 %16, 4294967295 %30 = call i64 @FUNC(i64 %2, i64 %29) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 br i1 %32, label LBL_9, label LBL_8 LBL_8: %33 = and i64 %30, 4294967295 store i64 %33, i64* %rax.0.reg2mem br label LBL_15 LBL_9: %34 = urem i32 %27, 32 %35 = icmp eq i32 %34, 0 br i1 %35, label LBL_14, label LBL_10 LBL_10: %36 = bitcast i64* %rdx to i32* %37 = shl i32 1, %34 %38 = zext i32 %37 to i64 store i64 %38, i64* %rdx, align 8 %39 = add i32 %37, -1 %40 = add i64 %2, 8 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = sub i32 0, %27 %44 = urem i32 %43, 32 store i32 0, i32* %storemerge712.reg2mem store i32 0, i32* %sv_1.011.reg2mem store i64 %42, i64* %sv_0.0.in10.reg2mem br label LBL_11 LBL_11: %sv_0.0.in10.reload = load i64, i64* %sv_0.0.in10.reg2mem %sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem %storemerge712.reload = load i32, i32* %storemerge712.reg2mem %sv_0.013 = inttoptr i64 %sv_0.0.in10.reload to i32* %45 = load i32, i32* %sv_0.013, align 4 %46 = lshr i32 %45, %44 %storemerge = zext i32 %46 to i64 store i64 %storemerge, i64* %rdx, align 8 %47 = and i32 %46, %39 %48 = load i32, i32* %sv_0.013, align 4 %49 = shl i32 %48, %34 %storemerge8 = zext i32 %49 to i64 store i64 %storemerge8, i64* %rdx, align 8 %50 = or i32 %49, %sv_1.011.reload store i32 %50, i32* %sv_0.013, align 4 %51 = add i64 %sv_0.0.in10.reload, 4 %52 = add i32 %storemerge712.reload, 1 %53 = load i32, i32* %36, align 8 %54 = zext i32 %53 to i64 %55 = sext i32 %52 to i64 %56 = icmp slt i64 %55, %54 store i32 %52, i32* %storemerge712.reg2mem store i32 %47, i32* %sv_1.011.reg2mem store i64 %51, i64* %sv_0.0.in10.reg2mem br i1 %56, label LBL_11, label LBL_12 LBL_12: %57 = icmp eq i32 %47, 0 br i1 %57, label LBL_14, label LBL_13 LBL_13: %58 = load i64, i64* %41, align 8 %59 = add i32 %53, 1 store i32 %59, i32* %3, align 4 %60 = sext i32 %53 to i64 %61 = mul i64 %60, 4 %62 = add i64 %58, %61 %63 = inttoptr i64 %62 to i32* store i32 %47, i32* %63, align 4 br label LBL_14 LBL_14: %64 = call i64 @FUNC(i64 %2) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %53, { 1, 0, 2 } uselistorder i32 %47, { 1, 2, 0 } uselistorder i32* %sv_0.013, { 2, 1, 0 } uselistorder i32 %34, { 2, 1, 0 } uselistorder i32 %27, { 1, 0, 2 } uselistorder i64 %16, { 1, 0 } uselistorder i64 %10, { 1, 0 } uselistorder i64 %2, { 2, 1, 0, 4, 3, 5 } uselistorder i32* %storemerge712.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.011.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.in10.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 4294967295, { 1, 4, 2, 0, 3 } uselistorder label LBL_11, { 1, 0 } }
1
BinRealVul
virtio_ccw_blk_init_2367
virtio_ccw_blk_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = call i64 @FUNC(i64 %0, i64 %1) %3 = call i64 @FUNC(i64 %0) %4 = trunc i64 %3 to i32 %5 = icmp slt i32 %4, 0 %6 = icmp eq i1 %5, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_1: %7 = call i64 @FUNC(i64 %0, i64 %0) store i64 %7, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0, 4, 3, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
io_mem_read_17113
io_mem_read
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i32* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %arg2, i64 %0, i32 %arg4) ret i64 %2 }
1
BinRealVul
celt_search_for_intensity_14183
celt_search_for_intensity
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa4.reg2mem = alloca i128 %sv_0.1.lcssa.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %xmm0.0.reg2mem = alloca i128 %sv_1.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_0.15.reg2mem = alloca i32 %sv_1.16.reg2mem = alloca i32 %zf.08.reg2mem = alloca i1 %storemerge9.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %sv_2 = alloca i32, align 4 %sv_3 = alloca i64, align 8 %2 = icmp ult i64* %sv_3, inttoptr (i64 48 to i64*) %3 = call i128 @__asm_movss.1(i32 2139095039) %4 = call i64 @FUNC(i128 %3) %5 = call i128 @FUNC(i128 %3, i128 %3) %6 = call i64 @FUNC(i128 %5) %7 = trunc i64 %6 to i32 %8 = trunc i64 %1 to i32 %9 = call i128 @FUNC(i128 %5, i128 %5) %10 = call i128 @FUNC(i32 %8) call void @FUNC(i128 %10, i32 %7) %11 = icmp eq i1 %2, false %12 = ptrtoint i32* %arg2 to i64 %13 = add i64 %12, 4 %14 = inttoptr i64 %13 to i32* br i1 %11, label LBL_2, label LBL_0.LBL_6_crit_edge LBL_1: %.pre = ptrtoint i32* %arg1 to i64 store i64 %.pre, i64* %.pre-phi.reg2mem store i32 15, i32* %sv_0.1.lcssa.reg2mem store i128 %10, i128* %.lcssa4.reg2mem br label LBL_6 LBL_2: %15 = trunc i64 %4 to i32 %16 = icmp eq i64* %sv_3, inttoptr (i64 48 to i64*) %17 = ptrtoint i32* %arg1 to i64 %18 = bitcast i32* %sv_2 to i64* store i32 %8, i32* %storemerge9.reg2mem store i1 %16, i1* %zf.08.reg2mem store i32 %15, i32* %sv_1.16.reg2mem store i32 15, i32* %sv_0.15.reg2mem br label LBL_3 LBL_3: %sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem %sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem %zf.08.reload = load i1, i1* %zf.08.reg2mem %storemerge9.reload = load i32, i32* %storemerge9.reg2mem store i32 %storemerge9.reload, i32* %14, align 4 %19 = call i64 @FUNC(i64 %17, i64 %12, i64* nonnull %18) %20 = load i32, i32* %sv_2, align 4 %21 = call i128 @__asm_movss.1(i32 %20) %22 = call i128 @__asm_movss.1(i32 %sv_1.16.reload) call void @__asm_comiss.2(i128 %22, i128 %21) store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem store i32 %sv_1.16.reload, i32* %sv_1.0.reg2mem store i128 %22, i128* %xmm0.0.reg2mem br i1 %zf.08.reload, label LBL_5, label LBL_4 LBL_4: %23 = load i32, i32* %sv_2, align 4 %24 = call i128 @__asm_movss.1(i32 %23) %25 = call i64 @FUNC(i128 %24) %26 = trunc i64 %25 to i32 store i32 %storemerge9.reload, i32* %sv_0.0.reg2mem store i32 %26, i32* %sv_1.0.reg2mem store i128 %24, i128* %xmm0.0.reg2mem br label LBL_5 LBL_5: %xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %27 = add i32 %storemerge9.reload, -1 %28 = icmp eq i32 %storemerge9.reload, 0 %29 = icmp eq i32 %27, 0 %30 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload) %31 = call i128 @FUNC(i32 %27) call void @FUNC(i128 %31, i32 %7) %32 = icmp eq i1 %28, false store i32 %27, i32* %storemerge9.reg2mem store i1 %29, i1* %zf.08.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.16.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.15.reg2mem store i64 %17, i64* %.pre-phi.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem store i128 %31, i128* %.lcssa4.reg2mem br i1 %32, label LBL_3, label LBL_6 LBL_6: %.lcssa4.reload = load i128, i128* %.lcssa4.reg2mem %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem store i32 %sv_0.1.lcssa.reload, i32* %14, align 4 %33 = bitcast i64* %rdi to i32* %34 = load i32, i32* %33, align 8 %35 = call i128 @__asm_movss.1(i32 %34) %36 = load i32, i32* %14, align 4 %37 = call i128 @FUNC(i128 %.lcssa4.reload, i128 %.lcssa4.reload) %38 = call i128 @FUNC(i32 %36) %39 = call i128 @FUNC(i128 %38, i128 %35) %40 = load i32, i32* inttoptr (i64 4202572 to i32*), align 4 %41 = call i128 @__asm_movss.1(i32 %40) %42 = call i128 @FUNC(i128 %39, i128 %41) %43 = call i64 @FUNC(i128 %42) %44 = trunc i64 %43 to i32 store i32 %44, i32* %arg1, align 4 ret i64 %.pre-phi.reload uselistorder i128 %.lcssa4.reload, { 1, 0 } uselistorder i128 %xmm0.0.reload, { 1, 0 } uselistorder i32 %storemerge9.reload, { 1, 3, 0, 2 } uselistorder i32 %7, { 1, 0 } uselistorder i128 %3, { 2, 1, 0 } uselistorder i32* %sv_2, { 1, 0, 2 } uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 } uselistorder i1* %zf.08.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.16.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.15.reg2mem, { 1, 0, 2 } uselistorder i32 0, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder void (i128, i32)* @__asm_comiss, { 1, 0 } uselistorder i128 (i32)* @__asm_cvtsi2ss, { 1, 2, 0, 3, 4 } uselistorder i32* %arg1, { 1, 2, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ncq_err_4046
ncq_err
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 store i64 %0, i64* %rdi, align 8 %1 = add i64 %0, 4 %2 = inttoptr i64 %1 to i32* store i32 1, i32* %2, align 4 %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i32* store i32 6, i32* %4, align 4 %5 = bitcast i64* %rdi to i32* %6 = load i32, i32* %5, align 8 %7 = load i64, i64* %rdi, align 8 %8 = or i32 %6, 64 %9 = inttoptr i64 %7 to i32* store i32 %8, i32* %9, align 4 %10 = add i64 %0, 12 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 ret i64 %0 uselistorder i64* %rdi, { 1, 0, 2 } }
0
BinRealVul
ff_rv34_decode_init_thread_copy_13048
ff_rv34_decode_init_thread_copy
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i64* store i64 %0, i64* %4, align 8 %5 = bitcast i64* %rdi to i32* %6 = load i32, i32* %5, align 8 %7 = icmp eq i32 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_5, label LBL_1 LBL_1: %8 = add i64 %3, 8 %9 = inttoptr i64 %8 to i64* store i64 0, i64* %9, align 8 %10 = call i64 @FUNC(i64 %3) %11 = call i64 @FUNC(i64 %3) %12 = trunc i64 %11 to i32 %13 = icmp slt i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = and i64 %11, 4294967295 store i64 %15, i64* %rax.0.reg2mem br label LBL_5 LBL_3: %16 = call i64 @FUNC(i64 %3) %17 = trunc i64 %16 to i32 %18 = icmp slt i32 %17, 0 %19 = icmp eq i1 %18, false store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = call i64 @FUNC(i64 %3) %21 = and i64 %16, 4294967295 store i64 %21, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 0, 1, 3, 2, 4, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 3, 1 } uselistorder label LBL_5, { 2, 1, 3, 0 } }
1
BinRealVul
virtio_net_has_buffers_17068
virtio_net_has_buffers
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_4, label LBL_2 LBL_2: %9 = and i64 %arg2, 4294967295 %10 = call i64 @FUNC(i64 %0, i64 %9, i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 %0, i64 1) store i64 0, i64* %storemerge.reg2mem br label LBL_5 LBL_4: %15 = call i64 @FUNC(i64 %0, i64 0) store i64 1, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 3, 0, 2, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @virtio_queue_set_notification, { 1, 0 } uselistorder i64 1, { 0, 2, 1 } }
1
BinRealVul
genl_register_family_11677
genl_register_family
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = and i64 %1, 4294967295 store i64 %4, i64* %rax.0.reg2mem br label LBL_17 LBL_2: %5 = call i64 @FUNC() %6 = call i64 @FUNC(i64 %0) %7 = icmp eq i64 %6, 0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %7, label LBL_3, label LBL_16 LBL_3: %8 = icmp eq i64* %arg1, @gv_0 %9 = icmp eq i1 %8, false store i32 0, i32* %sv_2.0.reg2mem store i64 1, i64* %sv_1.0.reg2mem br i1 %9, label LBL_4, label LBL_6 LBL_4: %10 = bitcast i64* %arg1 to i8* %11 = call i32 @strcmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0)) %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i32 1, i32* %sv_2.0.reg2mem store i64 2, i64* %sv_1.0.reg2mem br i1 %13, label LBL_5, label LBL_6 LBL_5: %14 = call i32 @strcmp(i8* %10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false %spec.select = select i1 %16, i32 1, i32 2 %spec.select1 = select i1 %16, i64 256, i64 3 store i32 %spec.select, i32* %sv_2.0.reg2mem store i64 %spec.select1, i64* %sv_1.0.reg2mem br label LBL_6 LBL_6: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %17 = add i64 %0, 8 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_9, label LBL_7 LBL_7: %21 = add i64 %0, 12 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_9, label LBL_8 LBL_8: %26 = add i32 %19, 1 %27 = sext i32 %26 to i64 %28 = call i64 @FUNC(i64 %27, i64 8, i64 0) %29 = add i64 %0, 24 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 %31 = icmp eq i64 %28, 0 %32 = icmp eq i1 %31, false store i64 4294967294, i64* %sv_0.0.reg2mem br i1 %32, label LBL_10, label LBL_16 LBL_9: %33 = add i64 %0, 24 %34 = inttoptr i64 %33 to i64* store i64 0, i64* %34, align 8 br label LBL_10 LBL_10: %35 = call i64 @FUNC(i64* nonnull @gv_3, i64 %0, i32 %sv_2.0.reload, i64 %sv_1.0.reload, i64 0) %36 = trunc i64 %35 to i32 %37 = add i64 %0, 16 %38 = inttoptr i64 %37 to i32* store i32 %36, i32* %38, align 4 %39 = icmp slt i32 %36, 0 %40 = icmp eq i1 %39, false store i64 %35, i64* %sv_0.0.reg2mem br i1 %40, label LBL_11, label LBL_16 LBL_11: %41 = call i64 @FUNC(i64 %0) %42 = trunc i64 %41 to i32 %43 = icmp eq i32 %42, 0 %44 = icmp eq i1 %43, false br i1 %44, label LBL_15, label LBL_12 LBL_12: %45 = call i64 @FUNC() %46 = call i64 @FUNC(i64 3, i64 %0, i64 0, i64 0) %47 = add i64 %0, 32 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = icmp eq i32 %49, 0 store i64 0, i64* %rax.0.reg2mem br i1 %50, label LBL_17, label LBL_13 LBL_13: %51 = add i64 %0, 48 %52 = inttoptr i64 %51 to i32* %53 = add i64 %0, 40 %54 = inttoptr i64 %53 to i64* store i32 0, i32* %storemerge2.reg2mem br label LBL_14 LBL_14: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %55 = load i32, i32* %52, align 4 %56 = add i32 %55, %storemerge2.reload %57 = zext i32 %56 to i64 %58 = load i64, i64* %54, align 8 %59 = call i64 @FUNC(i64 4, i64 %0, i64 %58, i64 %57) %60 = add i32 %storemerge2.reload, 1 %61 = load i32, i32* %48, align 4 %62 = zext i32 %61 to i64 %63 = sext i32 %60 to i64 %64 = icmp slt i64 %63, %62 store i32 %60, i32* %storemerge2.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %64, label LBL_14, label LBL_17 LBL_15: %65 = load i32, i32* %38, align 4 %66 = zext i32 %65 to i64 %67 = call i64 @FUNC(i64* nonnull @gv_3, i64 %66) %68 = add i64 %0, 24 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = call i64 @FUNC(i64 %70) store i64 %41, i64* %sv_0.0.reg2mem br label LBL_16 LBL_16: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %72 = call i64 @FUNC() %73 = and i64 %sv_0.0.reload, 4294967295 store i64 %73, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %48, { 1, 0 } uselistorder i64 %0, { 6, 3, 4, 2, 1, 5, 7, 9, 8, 10, 0, 12, 11, 13, 14 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64, i64, i64, i64)* @genl_ctrl_event, { 1, 0 } uselistorder i64 ()* @genl_unlock_all, { 1, 0 } uselistorder i64 3, { 1, 0 } uselistorder i32 0, { 0, 2, 3, 4, 5, 6, 7, 8, 1, 9 } uselistorder label LBL_17, { 2, 0, 1, 3 } uselistorder label LBL_16, { 3, 0, 1, 2 } uselistorder label LBL_14, { 1, 0 } }
1
BinRealVul
compile_tree_13494
compile_tree
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %sv_1.15.reg2mem = alloca i32 %sv_0.16.reg2mem = alloca i64 %storemerge27.reg2mem = alloca i32* %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_11 LBL_1: %3 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %4 = call i32 @fwrite(i64* bitcast ([26 x i8]* @gv_2 to i64*), i32 1, i32 25, %_IO_FILE* %3) %5 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %6 = call i32 @fflush(%_IO_FILE* %5) %7 = call i64 @FUNC(i64* nonnull @gv_0) %8 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %9 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_3 to i64*), i32 1, i32 8, %_IO_FILE* %8) %10 = call i64 @FUNC() store i32* bitcast (i32** @gv_4 to i32*), i32** %storemerge27.reg2mem store i64 0, i64* %sv_0.16.reg2mem store i32 1, i32* %sv_1.15.reg2mem br label LBL_2 LBL_2: %sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem %sv_0.16.reload = load i64, i64* %sv_0.16.reg2mem %storemerge27.reload = load i32*, i32** %storemerge27.reg2mem %11 = load i32, i32* %storemerge27.reload, align 4 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_2.LBL_7_crit_edge, label LBL_4 LBL_3: %.pre = ptrtoint i32* %storemerge27.reload to i64 store i64 %.pre, i64* %.pre-phi.reg2mem store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem store i64 %sv_0.16.reload, i64* %sv_0.0.reg2mem br label LBL_7 LBL_4: %14 = mul i32 %sv_1.15.reload, 4 %15 = inttoptr i64 %sv_0.16.reload to i64* %16 = call i64* @realloc(i64* %15, i32 %14) %17 = icmp eq i64* %16, null %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: call void @free(i64* %15) call void @exit(i32 1) unreachable LBL_6: %19 = ptrtoint i64* %16 to i64 %20 = ptrtoint i32* %storemerge27.reload to i64 %21 = add i64 %20, 4 %22 = sext i32 %sv_1.15.reload to i64 %23 = mul i64 %22, 4 %24 = add nsw i64 %23, -4 %25 = add i64 %24, %19 %26 = inttoptr i64 %21 to i32* %27 = load i32, i32* %26, align 4 %28 = inttoptr i64 %25 to i32* store i32 %27, i32* %28, align 4 %29 = add i32 %sv_1.15.reload, 1 store i64 %20, i64* %.pre-phi.reg2mem store i32 %29, i32* %sv_1.0.reg2mem store i64 %19, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %30 = add i64 %.pre-phi.reload, 8 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = inttoptr i64 %32 to i32* %34 = icmp eq i64 %32, 0 %35 = icmp eq i1 %34, false store i32* %33, i32** %storemerge27.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.16.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem br i1 %35, label LBL_2, label LBL_8 LBL_8: %36 = mul i32 %sv_1.0.reload, 4 %37 = inttoptr i64 %sv_0.0.reload to i64* %38 = call i64* @realloc(i64* %37, i32 %36) %39 = icmp eq i64* %38, null %40 = icmp eq i1 %39, false br i1 %40, label LBL_10, label LBL_9 LBL_9: call void @free(i64* %37) call void @exit(i32 1) unreachable LBL_10: %41 = ptrtoint i64* %38 to i64 %42 = sext i32 %sv_1.0.reload to i64 %43 = mul i64 %42, 4 %44 = add nsw i64 %43, -4 %45 = add i64 %44, %41 %46 = inttoptr i64 %45 to i32* store i32 0, i32* %46, align 4 store i64 %41, i64* %arg1, align 8 store i64 %42, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %41, { 1, 0 } uselistorder i64* %38, { 1, 0 } uselistorder i64* %16, { 1, 0 } uselistorder i32* %storemerge27.reload, { 0, 2, 1 } uselistorder i64 %sv_0.16.reload, { 1, 0 } uselistorder i32 %sv_1.15.reload, { 1, 2, 3, 0 } uselistorder i32** %storemerge27.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.16.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.15.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* null, { 1, 0 } uselistorder i64* (i64*, i32)* @realloc, { 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 } uselistorder i1 false, { 2, 3, 0, 1, 4 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
bdrv_qiov_is_aligned_15401
bdrv_qiov_is_aligned
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 store i64 1, i64* %rax.0.reg2mem br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = zext i32 %3 to i64 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge1.reg2mem br label LBL_2 LBL_2: %.reload = load i64, i64* %.reg2mem %7 = mul i64 %.reload, 16 %8 = add i64 %7, %0 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = urem i64 %10, %5 %12 = icmp eq i64 %11, 0 store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_5 LBL_3: %13 = add i64 %8, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = urem i64 %15, %5 %17 = icmp eq i64 %16, 0 store i64 0, i64* %rax.0.reg2mem br i1 %17, label LBL_4, label LBL_5 LBL_4: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %18 = add i32 %storemerge1.reload, 1 %19 = sext i32 %18 to i64 %20 = icmp slt i64 %19, %6 store i64 %19, i64* %.reg2mem store i32 %18, i32* %storemerge1.reg2mem store i64 1, i64* %rax.0.reg2mem br i1 %20, label LBL_2, label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %5, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder label LBL_5, { 2, 1, 0, 3 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
check_hw_exists_10933
check_hw_exists
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %rdx.2.reg2mem = alloca i64 %rcx.3.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %rdx.1.reg2mem = alloca i64 %rcx.2.reg2mem = alloca i64 %rcx.1.reg2mem = alloca i64 %storemerge9.reg2mem = alloca i32 %storemerge210.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 store i64 0, i64* %sv_2, align 8 %3 = load i32, i32* @gv_0, align 4 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = bitcast i32* %sv_1 to i64* store i32 0, i32* %storemerge210.reg2mem br label LBL_2 LBL_2: %storemerge210.reload = load i32, i32* %storemerge210.reg2mem %6 = zext i32 %storemerge210.reload to i64 %7 = call i64 @FUNC(i64 %6) %8 = and i64 %7, 4294967295 %9 = call i64 @FUNC(i64 %8, i64* nonnull %5) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_17, label LBL_3 LBL_3: %13 = load i32, i32* %sv_1, align 4 %14 = urem i32 %13, 2 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_143, label LBL_4 LBL_4: %17 = add i32 %storemerge210.reload, 1 %18 = load i32, i32* @gv_0, align 4 %19 = zext i32 %18 to i64 %20 = sext i32 %17 to i64 %21 = icmp slt i64 %20, %19 store i32 %17, i32* %storemerge210.reg2mem br i1 %21, label LBL_2, label LBL_5 LBL_5: %22 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_12, label LBL_6 LBL_6: %24 = ptrtoint i32* %sv_1 to i64 %25 = bitcast i32* %sv_1 to i64* %26 = call i64 @FUNC(i64 909, i64* nonnull %25) %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false store i64 %24, i64* %rdx.2.reg2mem store i64 %24, i64* %rsi.1.reg2mem br i1 %29, label LBL_18, label LBL_7 LBL_7: %30 = load i32, i32* @gv_1, align 4 %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_12, label LBL_8 LBL_8: %32 = load i32, i32* %sv_1, align 4 %33 = zext i32 %30 to i64 store i32 0, i32* %storemerge9.reg2mem br label LBL_9 LBL_9: %storemerge9.reload = load i32, i32* %storemerge9.reg2mem %34 = mul i32 %storemerge9.reload, 4 %35 = and i32 %34, 28 %36 = shl i32 3, %35 %37 = and i32 %36, %32 %38 = icmp eq i32 %37, 0 %39 = icmp eq i1 %38, false br i1 %39, label LBL_14, label LBL_10 LBL_10: %40 = add i32 %storemerge9.reload, 1 %41 = sext i32 %40 to i64 %42 = icmp slt i64 %41, %33 store i32 %40, i32* %storemerge9.reg2mem br i1 %42, label LBL_9, label LBL_11 LBL_11: %43 = zext i32 %34 to i64 store i64 %43, i64* %rcx.1.reg2mem br label LBL_12 LBL_12: %rcx.1.reload = load i64, i64* %rcx.1.reg2mem store i32 43981, i32* %sv_1, align 4 %44 = call i64 @FUNC(i64 0) %45 = and i64 %44, 4294967295 %46 = call i64 @FUNC(i64 %45, i64 43981) %47 = call i64 @FUNC(i64 0) %48 = and i64 %47, 4294967295 %49 = ptrtoint i64* %sv_2 to i64 %50 = call i64 @FUNC(i64 %48, i64* nonnull %sv_2) %51 = or i64 %50, %46 %52 = trunc i64 %51 to i32 %53 = icmp eq i32 %52, 0 %54 = icmp eq i1 %53, false store i64 %rcx.1.reload, i64* %rcx.3.reg2mem store i64 %48, i64* %rdx.2.reg2mem store i64 %49, i64* %rsi.1.reg2mem br i1 %54, label LBL_18, label LBL_13 LBL_13: %55 = load i32, i32* %sv_1, align 4 %56 = sext i32 %55 to i64 %57 = load i64, i64* %sv_2, align 8 %58 = icmp eq i64 %57, %56 %59 = icmp eq i1 %58, false store i64 %rcx.1.reload, i64* %rcx.3.reg2mem store i64 %56, i64* %rdx.2.reg2mem store i64 %49, i64* %rsi.1.reg2mem store i64 1, i64* %rax.0.reg2mem br i1 %59, label LBL_18, label LBL_19 LBL_14: %60 = zext i32 %34 to i64 %rdx.0 = zext i32 %36 to i64 store i64 %60, i64* %rcx.2.reg2mem store i64 %rdx.0, i64* %rdx.1.reg2mem store i64 %24, i64* %rsi.0.reg2mem store i64 909, i64* %sv_0.0.reg2mem br label LBL_16 LBL_15: %61 = ptrtoint i32* %sv_1 to i64 store i64 %61, i64* %rdx.1.reg2mem store i64 %61, i64* %rsi.0.reg2mem store i64 %8, i64* %sv_0.0.reg2mem br label LBL_16 LBL_16: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %rdx.1.reload = load i64, i64* %rdx.1.reg2mem %rcx.2.reload = load i64, i64* %rcx.2.reg2mem %62 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i64 %rsi.0.reload, i64 %rdx.1.reload, i64 %rcx.2.reload, i64 %2, i64 %1) %63 = load i32, i32* %sv_1, align 4 %64 = sext i32 %63 to i64 %65 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_3, i64 0, i64 0), i64 %sv_0.0.reload, i64 %64, i64 %rcx.2.reload, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_17: %66 = ptrtoint i32* %sv_1 to i64 store i64 %66, i64* %rdx.2.reg2mem store i64 %66, i64* %rsi.1.reg2mem br label LBL_18 LBL_18: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %rdx.2.reload = load i64, i64* %rdx.2.reg2mem %rcx.3.reload = load i64, i64* %rcx.3.reg2mem %67 = call i64 @FUNC(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_4, i64 0, i64 0), i64 %rsi.1.reload, i64 %rdx.2.reload, i64 %rcx.3.reload, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rcx.2.reload, { 1, 0 } uselistorder i32 %34, { 2, 1, 0 } uselistorder i64 %24, { 2, 0, 1 } uselistorder i64* %sv_2, { 1, 0, 2, 3 } uselistorder i32* %sv_1, { 0, 7, 1, 6, 5, 4, 9, 3, 2, 8 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i32* %storemerge210.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 } uselistorder i64* %rdx.2.reg2mem, { 0, 1, 3, 4, 2 } uselistorder i64* %rsi.1.reg2mem, { 0, 1, 3, 4, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @printk, { 2, 1, 0 } uselistorder i64 (i64)* @x86_pmu_event_addr, { 1, 0 } uselistorder i1 false, { 1, 2, 0, 5, 3, 4 } uselistorder i64 (i64, i64*)* @rdmsrl_safe, { 2, 0, 1 } uselistorder i64 4294967295, { 1, 2, 0, 3, 4 } uselistorder i32 0, { 6, 2, 0, 3, 8, 9, 5, 7, 1, 4 } uselistorder i32* @gv_0, { 1, 0 } uselistorder i32 1, { 16, 17, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_19, { 1, 2, 0 } uselistorder label LBL_18, { 0, 2, 1, 3 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
vrrp_print_data_13788
vrrp_print_data
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load [14 x i8]*, [14 x i8]** @gv_0, align 8 %3 = ptrtoint [14 x i8]* %2 to i64 %4 = call i64 @FUNC(i64 %3, i64* nonnull @gv_1) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i32* @__errno_location() %8 = load i32, i32* %7, align 4 %9 = call i8* @strerror(i32 %8) %10 = ptrtoint i8* %9 to i64 %11 = call i32* @__errno_location() %12 = load i32, i32* %11, align 4 %13 = load [14 x i8]*, [14 x i8]** @gv_0, align 8 %14 = ptrtoint [14 x i8]* %13 to i64 %15 = zext i32 %12 to i64 %16 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 %15, i64 %10, i64 %1) store i64 %16, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %17 = inttoptr i64 %4 to %_IO_FILE* %18 = call i64 @FUNC(i64 %4) %19 = call i32 @fclose(%_IO_FILE* %17) %20 = sext i32 %19 to i64 store i64 %20, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32* ()* @__errno_location, { 1, 0 } uselistorder i32 1, { 4, 3, 2, 5, 1, 0 } }
0
BinRealVul
write_syslog_7690
write_syslog
define i64 @FUNC(i64 %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %rax.2.reg2mem = alloca i64 %sv_0.0.ph11.reg2mem = alloca i8* %sv_1.0.ph12.reg2mem = alloca i32 %sv_2.0.ph13.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i32 %.pre-phi21.reg2mem = alloca i8* %storemerge.in.reg2mem = alloca i32 %sv_0.08.reg2mem = alloca i8* %sv_1.09.reg2mem = alloca i32 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %0 = call i32 @strlen(i8* %arg2) %1 = load i32, i32* @gv_0, align 4 %2 = icmp eq i32 %1, 0 store i64 0, i64* %rax.2.reg2mem br i1 %2, label LBL_38, label LBL_1 LBL_1: %3 = load i8, i8* bitcast (i32* @gv_1 to i8*), align 4 %4 = icmp eq i8 %3, 1 br i1 %4, label LBL_20, label LBL_2 LBL_2: %5 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0)) %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_3 LBL_3: store i32 16, i32* inttoptr (i64 4210836 to i32*), align 4 br label LBL_4 LBL_4: %8 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0)) %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_6, label LBL_5 LBL_5: store i32 17, i32* @gv_5, align 4 br label LBL_6 LBL_6: %11 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0)) %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_8, label LBL_7 LBL_7: store i32 18, i32* @gv_5, align 4 br label LBL_8 LBL_8: %14 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0)) %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_10, label LBL_9 LBL_9: store i32 19, i32* @gv_5, align 4 br label LBL_10 LBL_10: %17 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_8, i64 0, i64 0)) %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_12, label LBL_11 LBL_11: store i32 20, i32* @gv_5, align 4 br label LBL_12 LBL_12: %20 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_9, i64 0, i64 0)) %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_14, label LBL_13 LBL_13: store i32 21, i32* @gv_5, align 4 br label LBL_14 LBL_14: %23 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0)) %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_16, label LBL_15 LBL_15: store i32 22, i32* @gv_5, align 4 br label LBL_16 LBL_16: %26 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_11, i64 0, i64 0)) %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_16.LBL_19_crit_edge, label LBL_18 LBL_17: %.pre = load i32, i32* @gv_5, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_19 LBL_18: store i32 23, i32* @gv_5, align 4 store i32 23, i32* %.reg2mem br label LBL_19 LBL_19: %.reload = load i32, i32* %.reg2mem call void @openlog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_12, i64 0, i64 0), i32 9, i32 %.reload) store i8 1, i8* bitcast (i32* @gv_1 to i8*), align 4 br label LBL_20 LBL_20: %sext = mul i64 %arg1, 4294967296 %29 = ashr exact i64 %sext, 32 %30 = load i32, i32* @gv_13, align 4 %31 = sext i32 %30 to i64 %32 = add nsw i64 %31, 1 %33 = trunc i64 %32 to i32 store i32 %33, i32* @gv_13, align 4 %34 = icmp sgt i32 %0, 1024 store i64 %32, i64* %rax.0.reg2mem br i1 %34, label LBL_22, label LBL_21 LBL_21: %35 = call i8* @strchr(i8* %arg2, i32 10) %36 = ptrtoint i8* %35 to i64 %37 = icmp eq i8* %35, null store i64 %36, i64* %rax.0.reg2mem br i1 %37, label LBL_35, label LBL_22 LBL_22: %rax.0.reload = load i64, i64* %rax.0.reg2mem %38 = icmp eq i32 %0, 0 %39 = icmp slt i32 %0, 0 %40 = icmp eq i1 %39, false %41 = icmp eq i1 %38, false %42 = icmp eq i1 %40, %41 store i64 %rax.0.reload, i64* %rax.2.reg2mem br i1 %42, label LBL_23, label LBL_38 LBL_23: %43 = ptrtoint i64* %sv_5 to i64 %44 = bitcast i64* %sv_4 to i8* %45 = add i64 %43, -1056 %46 = trunc i64 %29 to i32 store i32 0, i32* %sv_2.0.ph13.reg2mem store i32 %0, i32* %sv_1.0.ph12.reg2mem store i8* %arg2, i8** %sv_0.0.ph11.reg2mem br label LBL_24.lr.ph LBL_24: %sv_0.08.reload = load i8*, i8** %sv_0.08.reg2mem %sv_1.09.reload = load i32, i32* %sv_1.09.reg2mem %47 = load i8, i8* %sv_0.08.reload, align 1 %48 = icmp eq i8 %47, 10 %49 = icmp eq i1 %48, false br i1 %49, label LBL_26, label LBL_25 LBL_25: %50 = ptrtoint i8* %sv_0.08.reload to i64 %51 = add i64 %50, 1 %52 = inttoptr i64 %51 to i8* %53 = add i32 %sv_1.09.reload, -1 %54 = icmp eq i32 %53, 0 %55 = icmp slt i32 %53, 0 %56 = icmp eq i1 %55, false %57 = icmp eq i1 %54, false %58 = icmp eq i1 %56, %57 store i32 %53, i32* %sv_1.09.reg2mem store i8* %52, i8** %sv_0.08.reg2mem br i1 %58, label LBL_24, label LBL_37 LBL_26: %59 = call i8* @strncpy(i8* nonnull %44, i8* nonnull %sv_0.08.reload, i32 1024) %60 = call i8* @strchr(i8* nonnull %44, i32 10) %61 = icmp eq i8* %60, null br i1 %61, label LBL_28, label LBL_27 LBL_27: %62 = call i8* @strchr(i8* nonnull %44, i32 10) store i8 0, i8* %62, align 1 br label LBL_28 LBL_28: %63 = call i32 @strlen(i8* nonnull %44) %64 = zext i32 %63 to i64 %65 = call i64 @FUNC(i64* nonnull %sv_4, i64 %64, i32 %63) %sext3 = mul i64 %65, 4294967296 %66 = ashr exact i64 %sext3, 32 %67 = add i64 %66, %45 %68 = inttoptr i64 %67 to i8* store i8 0, i8* %68, align 1 %69 = call i32 @strlen(i8* nonnull %44) %70 = call i16** @__ctype_b_loc() %71 = load i16*, i16** %70, align 8 %72 = ptrtoint i16* %71 to i64 %73 = sext i32 %69 to i64 %74 = ptrtoint i8* %sv_0.08.reload to i64 %75 = add i64 %73, %74 %76 = inttoptr i64 %75 to i8* %77 = load i8, i8* %76, align 1 %78 = zext i8 %77 to i64 %79 = mul i64 %78, 2 %80 = add i64 %79, %72 %81 = inttoptr i64 %80 to i16* %82 = load i16, i16* %81, align 2 %83 = and i16 %82, 8192 %84 = icmp eq i16 %83, 0 %85 = icmp eq i8 %77, 0 %86 = icmp eq i1 %85, false %or.cond = icmp eq i1 %86, %84 store i32 %69, i32* %storemerge.in.reg2mem store i8* %76, i8** %.pre-phi21.reg2mem store i32 %69, i32* %sv_3.0.reg2mem br i1 %or.cond, label LBL_29, label LBL_33 LBL_29: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = add i32 %storemerge.in.reload, -1 %87 = icmp slt i32 %storemerge, 1 br i1 %87, label LBL_31, label LBL_30 LBL_30: %88 = call i16** @__ctype_b_loc() %89 = load i16*, i16** %88, align 8 %90 = ptrtoint i16* %89 to i64 %91 = sext i32 %storemerge to i64 %92 = add i64 %45, %91 %93 = inttoptr i64 %92 to i8* %94 = load i8, i8* %93, align 1 %95 = zext i8 %94 to i64 %96 = mul i64 %95, 2 %97 = add i64 %96, %90 %98 = inttoptr i64 %97 to i16* %99 = load i16, i16* %98, align 2 %100 = and i16 %99, 8192 %101 = icmp eq i16 %100, 0 store i32 %storemerge, i32* %storemerge.in.reg2mem br i1 %101, label LBL_29, label LBL_31 LBL_31: %102 = icmp eq i32 %storemerge, 0 %103 = icmp slt i32 %storemerge, 0 %104 = icmp eq i1 %103, false %105 = icmp eq i1 %102, false %106 = icmp eq i1 %104, %105 store i8* %76, i8** %.pre-phi21.reg2mem store i32 %69, i32* %sv_3.0.reg2mem br i1 %106, label LBL_32, label LBL_33 LBL_32: %107 = sext i32 %storemerge to i64 %108 = add i64 %45, %107 %109 = inttoptr i64 %108 to i8* store i8 0, i8* %109, align 1 %.pre18 = add i64 %107, %74 %.pre20 = inttoptr i64 %.pre18 to i8* store i8* %.pre20, i8** %.pre-phi21.reg2mem store i32 %storemerge, i32* %sv_3.0.reg2mem br label LBL_33 LBL_33: %sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem %.pre-phi21.reload = load i8*, i8** %.pre-phi21.reg2mem %110 = add i32 %sv_2.0.ph13.reload, 1 %111 = load i32, i32* @gv_13, align 4 %112 = zext i32 %110 to i64 call void (i32, i8*, ...) @syslog(i32 %46, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_14, i64 0, i64 0), i32 %111, i64 %112, i64* nonnull %sv_4) %113 = sub i32 %sv_1.09.reload, %sv_3.0.reload %114 = icmp eq i32 %113, 0 %115 = icmp slt i32 %113, 0 %116 = icmp eq i1 %115, false %117 = icmp eq i1 %114, false %118 = icmp eq i1 %116, %117 store i32 %110, i32* %sv_2.0.ph13.reg2mem store i32 %113, i32* %sv_1.0.ph12.reg2mem store i8* %.pre-phi21.reload, i8** %sv_0.0.ph11.reg2mem br i1 %118, label LBL_24.lr.ph, label LBL_36 LBL_34: %sv_0.0.ph11.reload = load i8*, i8** %sv_0.0.ph11.reg2mem %sv_1.0.ph12.reload = load i32, i32* %sv_1.0.ph12.reg2mem %sv_2.0.ph13.reload = load i32, i32* %sv_2.0.ph13.reg2mem store i32 %sv_1.0.ph12.reload, i32* %sv_1.09.reg2mem store i8* %sv_0.0.ph11.reload, i8** %sv_0.08.reg2mem br label LBL_24 LBL_35: %119 = load i32, i32* @gv_13, align 4 %120 = trunc i64 %29 to i32 call void (i32, i8*, ...) @syslog(i32 %120, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_15, i64 0, i64 0), i32 %119, i8* %arg2) store i64 ptrtoint (i32* @0 to i64), i64* %rax.2.reg2mem br label LBL_38 LBL_36: %121 = zext i32 %sv_3.0.reload to i64 store i64 %121, i64* %rax.2.reg2mem br label LBL_38 LBL_37: %122 = zext i8 %47 to i64 store i64 %122, i64* %rax.2.reg2mem br label LBL_38 LBL_38: %rax.2.reload = load i64, i64* %rax.2.reg2mem ret i64 %rax.2.reload uselistorder i32 %113, { 0, 2, 1 } uselistorder i32 %sv_3.0.reload, { 1, 0 } uselistorder i64 %107, { 1, 0 } uselistorder i32 %storemerge, { 0, 4, 3, 2, 1, 5, 6 } uselistorder i32 %sv_1.09.reload, { 1, 0 } uselistorder i8* %sv_0.08.reload, { 3, 2, 0, 1 } uselistorder i8* %44, { 1, 2, 0, 3, 4 } uselistorder i32* %sv_1.09.reg2mem, { 2, 1, 0 } uselistorder i8** %sv_0.08.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge.in.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.2.reg2mem, { 0, 3, 2, 4, 1, 5 } uselistorder void (i32, i8*, ...)* @syslog, { 1, 0 } uselistorder i8 0, { 1, 0, 2, 3 } uselistorder i8* (i8*, i32)* @strchr, { 2, 1, 0 } uselistorder i32* @gv_13, { 3, 2, 1, 0 } uselistorder i32* @gv_5, { 7, 0, 6, 5, 4, 3, 2, 1 } uselistorder i32 16, { 1, 0 } uselistorder i1 false, { 2, 3, 7, 5, 4, 9, 6, 8, 0, 1, 10, 11, 12, 13, 14, 15, 16, 17 } uselistorder i32 (i8*, i8*)* @strcasecmp, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i8 1, { 1, 0 } uselistorder i8* bitcast (i32* @gv_1 to i8*), { 1, 0 } uselistorder i32 (i8*)* @strlen, { 2, 1, 0 } uselistorder i32 1, { 15, 11, 14, 13, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12 } uselistorder i8* %arg2, { 1, 0, 2, 3 } uselistorder label LBL_38, { 0, 1, 4, 2, 3 } uselistorder label LBL_24.lr.ph, { 1, 0 } uselistorder label LBL_33, { 2, 1, 0 } uselistorder label LBL_29, { 1, 0 } uselistorder label LBL_19, { 1, 0 } }
1
BinRealVul
mi_child_init_17512
mi_child_init
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i32, i32* @gv_0, align 4 %1 = icmp eq i32 %0, 0 store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_5 LBL_1: %2 = load i32, i32* @gv_1, align 4 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_4, label LBL_2 LBL_2: %4 = load i64, i64* @gv_2, align 8 store i64 %4, i64* @gv_3, align 8 %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_4, label LBL_3 LBL_3: %7 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_4, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_5 LBL_4: store i32 1, i32* @gv_0, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* @gv_0, { 1, 0 } uselistorder i32 1, { 2, 0, 1 } uselistorder label LBL_5, { 1, 2, 0 } }
1
BinRealVul
helper_ldda_asi_14493
helper_ldda_asi
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = trunc i64 %arg2 to i32 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 32 %2 = icmp sgt i32 %0, 127 %.pre = load i32*, i32** @gv_0, align 8 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = load i32, i32* %.pre, align 4 %4 = urem i32 %3, 2 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_5, label LBL_2 LBL_2: %6 = ptrtoint i32* %.pre to i64 %7 = add i64 %6, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = and i32 %11, 4 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_6, label LBL_3 LBL_3: %14 = trunc i64 %1 to i32 %.off = add i32 %14, -48 %15 = icmp ugt i32 %.off, 79 br i1 %15, label LBL_6, label LBL_4 LBL_4: %16 = add i64 %6, 16 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = and i32 %18, 8 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_6, label LBL_5 LBL_5: %22 = call i64 @FUNC(i64 2) br label LBL_6 LBL_6: %sext2 = mul i64 %arg3, 4294967296 %23 = ashr exact i64 %sext2, 32 %24 = trunc i64 %1 to i32 %25 = icmp ne i32 %24, 36 %26 = icmp eq i32 %24, 44 %27 = icmp eq i1 %26, false %or.cond16 = icmp eq i1 %25, %27 br i1 %or.cond16, label LBL_15, label LBL_7 LBL_7: %28 = call i64 @FUNC(i64 %arg1, i64 15) %29 = trunc i64 %23 to i32 %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false br i1 %31, label LBL_10, label LBL_8 LBL_8: %32 = add i64 %arg1, 8 %33 = load i32*, i32** @gv_0, align 8 %34 = ptrtoint i32* %33 to i64 %35 = call i64 @FUNC(i64 %32) %36 = add i64 %34, 32 %37 = inttoptr i64 %36 to i64* store i64 %35, i64* %37, align 8 store i64 %35, i64* %rax.0.reg2mem br i1 %27, label LBL_20, label LBL_9 LBL_9: %38 = load i32*, i32** @gv_0, align 8 %39 = ptrtoint i32* %38 to i64 %40 = add i64 %39, 32 %41 = call i64 @FUNC(i64 %40) store i64 %41, i64* %rax.0.reg2mem br label LBL_20 LBL_10: %42 = icmp sgt i32 %29, 7 %43 = load i32*, i32** @gv_0, align 8 %44 = ptrtoint i32* %43 to i64 br i1 %42, label LBL_13, label LBL_11 LBL_11: %45 = call i64 @FUNC(i64 %arg1) %46 = ashr exact i64 %sext2, 29 %47 = add nsw i64 %46, 24 %48 = add i64 %47, %44 %49 = inttoptr i64 %48 to i64* store i64 %45, i64* %49, align 8 %50 = add i64 %arg1, 8 %51 = load i32*, i32** @gv_0, align 8 %52 = ptrtoint i32* %51 to i64 %53 = call i64 @FUNC(i64 %50) %sext4 = add i64 %sext2, 4294967296 %54 = ashr exact i64 %sext4, 29 %55 = add nsw i64 %54, 24 %56 = add i64 %55, %52 %57 = inttoptr i64 %56 to i64* store i64 %53, i64* %57, align 8 store i64 %53, i64* %rax.0.reg2mem br i1 %27, label LBL_20, label LBL_12 LBL_12: %58 = load i32*, i32** @gv_0, align 8 %59 = ptrtoint i32* %58 to i64 %60 = add i64 %47, %59 %61 = call i64 @FUNC(i64 %60) %62 = load i32*, i32** @gv_0, align 8 %63 = ptrtoint i32* %62 to i64 %64 = add i64 %55, %63 %65 = call i64 @FUNC(i64 %64) store i64 %65, i64* %rax.0.reg2mem br label LBL_20 LBL_13: %66 = add i64 %44, 88 %67 = inttoptr i64 %66 to i64* %68 = load i64, i64* %67, align 8 %69 = ashr exact i64 %sext2, 29 %70 = add i64 %68, %69 %71 = call i64 @FUNC(i64 %arg1) %72 = inttoptr i64 %70 to i64* store i64 %71, i64* %72, align 8 %73 = add i64 %arg1, 8 %74 = load i32*, i32** @gv_0, align 8 %75 = ptrtoint i32* %74 to i64 %76 = add i64 %75, 88 %77 = inttoptr i64 %76 to i64* %78 = load i64, i64* %77, align 8 %79 = add nsw i64 %69, 8 %80 = add i64 %78, %79 %81 = call i64 @FUNC(i64 %73) %82 = inttoptr i64 %80 to i64* store i64 %81, i64* %82, align 8 store i64 %81, i64* %rax.0.reg2mem br i1 %27, label LBL_20, label LBL_14 LBL_14: %83 = load i32*, i32** @gv_0, align 8 %84 = ptrtoint i32* %83 to i64 %85 = add i64 %84, 88 %86 = inttoptr i64 %85 to i64* %87 = load i64, i64* %86, align 8 %88 = add i64 %87, %69 %89 = call i64 @FUNC(i64 %88) %90 = load i32*, i32** @gv_0, align 8 %91 = ptrtoint i32* %90 to i64 %92 = add i64 %91, 88 %93 = inttoptr i64 %92 to i64* %94 = load i64, i64* %93, align 8 %95 = add i64 %94, %79 %96 = call i64 @FUNC(i64 %95) store i64 %96, i64* %rax.0.reg2mem br label LBL_20 LBL_15: %97 = call i64 @FUNC(i64 %arg1, i64 3) %98 = trunc i64 %23 to i32 %99 = icmp eq i32 %98, 0 %100 = icmp eq i1 %99, false br i1 %100, label LBL_17, label LBL_16 LBL_16: %101 = add i64 %arg1, 4 %102 = load i32*, i32** @gv_0, align 8 %103 = ptrtoint i32* %102 to i64 %104 = and i64 %1, 4294967295 %105 = call i64 @FUNC(i64 %101, i64 %104, i64 4, i64 0) %106 = add i64 %103, 32 %107 = inttoptr i64 %106 to i64* store i64 %105, i64* %107, align 8 store i64 %105, i64* %rax.0.reg2mem br label LBL_20 LBL_17: %108 = icmp sgt i32 %98, 7 %109 = load i32*, i32** @gv_0, align 8 %110 = ptrtoint i32* %109 to i64 br i1 %108, label LBL_19, label LBL_18 LBL_18: %111 = and i64 %1, 4294967295 %112 = call i64 @FUNC(i64 %arg1, i64 %111, i64 4, i64 0) %113 = ashr exact i64 %sext2, 29 %114 = add nsw i64 %113, 24 %115 = add i64 %114, %110 %116 = inttoptr i64 %115 to i64* store i64 %112, i64* %116, align 8 %117 = add i64 %arg1, 4 %118 = load i32*, i32** @gv_0, align 8 %119 = ptrtoint i32* %118 to i64 %120 = call i64 @FUNC(i64 %117, i64 %111, i64 4, i64 0) %sext12 = add i64 %sext2, 4294967296 %121 = ashr exact i64 %sext12, 29 %122 = add nsw i64 %121, 24 %123 = add i64 %122, %119 %124 = inttoptr i64 %123 to i64* store i64 %120, i64* %124, align 8 store i64 %120, i64* %rax.0.reg2mem br label LBL_20 LBL_19: %125 = add i64 %110, 88 %126 = inttoptr i64 %125 to i64* %127 = load i64, i64* %126, align 8 %128 = ashr exact i64 %sext2, 29 %129 = add i64 %127, %128 %130 = and i64 %1, 4294967295 %131 = call i64 @FUNC(i64 %arg1, i64 %130, i64 4, i64 0) %132 = inttoptr i64 %129 to i64* store i64 %131, i64* %132, align 8 %133 = add i64 %arg1, 4 %134 = load i32*, i32** @gv_0, align 8 %135 = ptrtoint i32* %134 to i64 %136 = add i64 %135, 88 %137 = inttoptr i64 %136 to i64* %138 = load i64, i64* %137, align 8 %139 = add nsw i64 %128, 8 %140 = add i64 %139, %138 %141 = call i64 @FUNC(i64 %133, i64 %130, i64 4, i64 0) %142 = inttoptr i64 %140 to i64* store i64 %141, i64* %142, align 8 store i64 %141, i64* %rax.0.reg2mem br label LBL_20 LBL_20: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %128, { 1, 0 } uselistorder i64 %110, { 1, 0 } uselistorder i64 %69, { 0, 2, 1 } uselistorder i64 %44, { 1, 0 } uselistorder i1 %27, { 3, 2, 1, 0 } uselistorder i64 %sext2, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 4, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 8, 9, 6, 7, 4, 5 } uselistorder i64 (i64, i64, i64, i64)* @helper_ld_asi, { 4, 3, 2, 1, 0 } uselistorder i64 4, { 0, 5, 1, 2, 6, 3, 4, 7 } uselistorder i64 (i64)* @bswap64s, { 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @ldq_kernel, { 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @helper_check_align, { 1, 0 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder i64 32, { 2, 3, 4, 0, 1 } uselistorder i64 4294967296, { 2, 3, 0, 1 } uselistorder i64 %arg1, { 3, 4, 1, 2, 0, 5, 9, 10, 7, 8, 6, 11 } uselistorder label LBL_20, { 6, 7, 8, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
set_control_7648
set_control
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rsi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg2 to i64 store i64 %5, i64* %rsi, align 8 %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 40 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = and i64 %5, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_2, label LBL_1 LBL_1: %sext = mul i64 %5, 4294967296 %14 = ashr exact i64 %sext, 32 %15 = call i64 @FUNC(i64 %14, i64 %5, i64 %3, i64 %4, i64 %2, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_19 LBL_2: %16 = inttoptr i64 %11 to i32* %17 = call i64 @FUNC(i64 %6) %18 = load i32, i32* %16, align 4 %19 = add i32 %18, -1 %20 = icmp ult i32 %19, 3 br i1 %20, label LBL_3, label LBL_7 LBL_3: %21 = add i64 %5, 4 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = add i64 %11, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp ult i32 %23, %26 store i32 %23, i32* %.reg2mem br i1 %27, label LBL_4, label LBL_5 LBL_4: store i32 %26, i32* %22, align 4 store i32 %26, i32* %.reg2mem br label LBL_5 LBL_5: %.reload = load i32, i32* %.reg2mem %28 = zext i32 %.reload to i64 %29 = add i64 %11, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp ugt i32 %.reload, %31 store i64 %28, i64* %rdx.0.reg2mem br i1 %32, label LBL_6, label LBL_7 LBL_6: %33 = zext i32 %31 to i64 store i32 %31, i32* %22, align 4 store i64 %33, i64* %rdx.0.reg2mem br label LBL_7 LBL_7: %34 = bitcast i64* %rsi to i32* %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %35 = load i32, i32* %34, align 8 %36 = add i32 %35, -10 %37 = zext i32 %36 to i64 store i64 %37, i64* @0, align 8 store i64 4294967274, i64* %rax.0.reg2mem switch i32 %35, label LBL_19 [ i32 10, label LBL_8 i32 11, label LBL_9 i32 12, label LBL_10 i32 13, label LBL_11 i32 14, label LBL_14 ] LBL_8: %38 = call i64 @FUNC(i64 %6, i64 1) %39 = trunc i64 %38 to i32 %40 = urem i32 %39, 16777216 %41 = add i64 %5, 4 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = mul i32 %43, 16777216 %45 = or i32 %40, %44 %46 = call i64 @FUNC(i64 %6, i64 1, i32 %45) %47 = call i64 @FUNC(i64 %6, i64 2, i32 12) br label LBL_17 LBL_9: %48 = call i64 @FUNC(i64 %6, i64 1) %49 = trunc i64 %48 to i32 %50 = and i32 %49, -16711681 %51 = add i64 %5, 4 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = mul i32 %53, 65536 %55 = or i32 %50, %54 %56 = call i64 @FUNC(i64 %6, i64 1, i32 %55) %57 = call i64 @FUNC(i64 %6, i64 2, i32 12) br label LBL_17 LBL_10: %58 = call i64 @FUNC(i64 %6, i64 1) %59 = trunc i64 %58 to i32 %60 = and i32 %59, -256 %61 = add i64 %5, 4 %62 = inttoptr i64 %61 to i32* %63 = load i32, i32* %62, align 4 %64 = or i32 %60, %63 %65 = call i64 @FUNC(i64 %6, i64 1, i32 %64) %66 = call i64 @FUNC(i64 %6, i64 2, i32 12) br label LBL_17 LBL_11: %67 = call i64 @FUNC(i64 %6) %68 = trunc i64 %67 to i32 %69 = icmp eq i32 %68, 0 br i1 %69, label LBL_13, label LBL_12 LBL_12: %70 = load i64, i64* %rsi, align 8 %71 = call i64 @FUNC(i64 ptrtoint ([38 x i8]* @gv_0 to i64), i64 %70, i64 %rdx.0.reload, i64 %4, i64 %2, i64 %1) %72 = call i64 @FUNC(i64 %6) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_19 LBL_13: %73 = inttoptr i64 %9 to i32* %74 = add i64 %5, 4 %75 = inttoptr i64 %74 to i32* %76 = load i32, i32* %75, align 4 store i32 %76, i32* %73, align 4 br label LBL_17 LBL_14: %77 = call i64 @FUNC(i64 %6) %78 = trunc i64 %77 to i32 %79 = icmp eq i32 %78, 0 br i1 %79, label LBL_16, label LBL_15 LBL_15: %80 = load i64, i64* %rsi, align 8 %81 = call i64 @FUNC(i64 ptrtoint ([38 x i8]* @gv_1 to i64), i64 %80, i64 %rdx.0.reload, i64 %4, i64 %2, i64 %1) %82 = call i64 @FUNC(i64 %6) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_19 LBL_16: %83 = add i64 %5, 4 %84 = inttoptr i64 %83 to i32* %85 = load i32, i32* %84, align 4 %86 = add i64 %9, 4 %87 = inttoptr i64 %86 to i32* store i32 %85, i32* %87, align 4 br label LBL_17 LBL_17: %88 = call i64 @FUNC(i64 %6) %89 = call i64 @FUNC(i64 %6) %90 = trunc i64 %89 to i32 %91 = icmp eq i32 %90, 0 store i64 0, i64* %rax.0.reg2mem br i1 %91, label LBL_19, label LBL_18 LBL_18: %92 = call i64 @FUNC(i64 %6) %93 = call i64 @FUNC(i64 %6) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %31, { 1, 0, 2 } uselistorder i64 %6, { 13, 12, 14, 15, 11, 16, 9, 10, 7, 6, 8, 4, 3, 5, 1, 0, 2, 17, 18 } uselistorder i64 %5, { 7, 6, 5, 4, 3, 8, 2, 0, 1, 9 } uselistorder i64 %4, { 2, 1, 0 } uselistorder i64* %rsi, { 3, 2, 0, 1 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %rdx.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 6, 5, 3, 4 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64)* @mutex_unlock, { 0, 2, 1 } uselistorder i32 0, { 2, 0, 1, 3 } uselistorder i64 (i64)* @IS_CAPTURE_ACTIVE, { 1, 0 } uselistorder i64 (i64, i64, i32)* @saa7146_write, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @saa7146_read, { 2, 1, 0 } uselistorder i32 12, { 3, 2, 1, 0 } uselistorder i64 4294967274, { 3, 2, 0, 1 } uselistorder i64 (i64, i64, i64, i64, i64, i64)* @DEB_D, { 2, 1, 0 } uselistorder label LBL_19, { 1, 0, 3, 4, 2, 5 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
blit_is_unsafe_12640
blit_is_unsafe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp slt i32 %2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 br i1 %7, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 20, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %8 = ptrtoint i64* %arg1 to i64 %9 = add i64 %8, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 %13 = icmp slt i32 %11, 0 %14 = icmp eq i1 %13, false %15 = icmp eq i1 %12, false %16 = icmp eq i1 %14, %15 br i1 %16, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 21, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %17 = add i64 %8, 12 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = add i64 %8, 24 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = and i32 %22, %19 %24 = add i64 %8, 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = zext i32 %26 to i64 %28 = call i64 @FUNC(i64 %8, i64 %27, i32 %23) %29 = trunc i64 %28 to i8 %30 = icmp eq i8 %29, 0 store i64 1, i64* %rax.0.reg2mem br i1 %30, label LBL_5, label LBL_6 LBL_5: %31 = add i64 %8, 20 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = load i32, i32* %21, align 4 %35 = and i32 %34, %33 %36 = add i64 %8, 16 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = zext i32 %38 to i64 %40 = call i64 @FUNC(i64 %8, i64 %39, i32 %35) %41 = trunc i64 %40 to i8 %42 = icmp ne i8 %41, 0 %. = zext i1 %42 to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %11, { 1, 0 } uselistorder i64 %8, { 1, 2, 0, 5, 6, 4, 3, 7 } uselistorder i64 (i64, i64, i32)* @blit_region_is_unsafe, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i64 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9 } uselistorder i1 false, { 2, 0, 3, 1 } }
1
BinRealVul
decode_init_17724
decode_init
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %rdi = alloca i64, align 8 %0 = ptrtoint i32* %arg1 to i64 %1 = add i64 %0, 16 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i64* store i64 %0, i64* %4, align 8 %5 = bitcast i64* %rdi to i32* %6 = load i32, i32* %5, align 8 %7 = add i64 %3, 8 %8 = inttoptr i64 %7 to i32* store i32 %6, i32* %8, align 4 %9 = add i64 %0, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %3, 12 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = add i64 %0, 8 %15 = inttoptr i64 %14 to i32* store i32 0, i32* %15, align 4 %16 = add i64 %3, 16 %17 = call i64 @FUNC(i64 %16) %18 = call i64 @FUNC() %19 = add i64 %3, 24 %20 = call i64 @FUNC(i64 %19, i64 %0) %21 = call i64 @FUNC(i64 %3, i64 %0) ret i64 %21 }
1
BinRealVul
bq24190_remove_12943
bq24190_remove
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = load i64, i64* %2, align 8 %9 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i32 %5) br label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %1) %11 = add i64 %1, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 %13) br label LBL_4 LBL_4: %16 = add i64 %1, 16 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %18) br i1 %6, label LBL_6, label LBL_5 LBL_5: %20 = load i64, i64* %2, align 8 %21 = call i64 @FUNC(i64 %20) br label LBL_6 LBL_6: %22 = load i64, i64* %2, align 8 %23 = call i64 @FUNC(i64 %22) %24 = load i64, i64* %2, align 8 %25 = call i64 @FUNC(i64 %24) ret i64 %25 uselistorder i64* %2, { 3, 2, 1, 0, 4 } uselistorder i64 %1, { 0, 2, 1, 3 } uselistorder i64 (i64)* @power_supply_unregister, { 1, 0 } }
1
BinRealVul
tls1_set_shared_sigalgs_19243
tls1_set_shared_sigalgs
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 48 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 store i64 %0, i64* %rdi.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 %4) store i64 0, i64* %3, align 8 store i64 %4, i64* %rdi.0.reg2mem br label LBL_2 LBL_2: %7 = trunc i64 %1 to i32 %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %8 = add i64 %0, 12 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i64 %rdi.0.reload, 0 %12 = or i32 %10, %7 %13 = icmp eq i32 %12, 0 %14 = icmp ne i1 %13, true %15 = or i1 %11, %14 br i1 %15, label LBL_4, label LBL_3 LBL_3: store i64 %rdi.0.reload, i64* %sv_1, align 8 %16 = add i64 %0, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 store i64 %rdi.0.reload, i64* %.reg2mem store i64 %18, i64* %sv_0.0.reg2mem br label LBL_7 LBL_4: %19 = icmp eq i32 %7, 0 %20 = icmp eq i1 %19, false %21 = add i64 %0, 16 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp eq i64 %23, 0 %or.cond7 = or i1 %20, %24 br i1 %or.cond7, label LBL_6, label LBL_5 LBL_5: store i64 %23, i64* %sv_1, align 8 %25 = add i64 %0, 24 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 store i64 %23, i64* %.reg2mem store i64 %27, i64* %sv_0.0.reg2mem br label LBL_7 LBL_6: %28 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1) %.pre = load i64, i64* %sv_1, align 8 store i64 %.pre, i64* %.reg2mem store i64 %28, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %.reload = load i64, i64* %.reg2mem %29 = add i64 %0, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = urem i32 %31, 2 %33 = or i32 %32, %7 %34 = icmp eq i32 %33, 0 %35 = add i64 %0, 32 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = add i64 %0, 40 %39 = inttoptr i64 %38 to i64* %40 = load i64, i64* %39, align 8 %. = select i1 %34, i64 %37, i64 %.reload %.stack_var_-48.0 = select i1 %34, i64 %40, i64 %sv_0.0.reload %.8 = select i1 %34, i64 %.reload, i64 %37 %sv_0.0. = select i1 %34, i64 %sv_0.0.reload, i64 %40 %41 = call i64 @FUNC(i64 0, i64 %., i64 %.stack_var_-48.0, i64 %.8, i64 %sv_0.0.) %42 = icmp eq i64 %41, 0 %43 = icmp eq i1 %42, false store i64 1, i64* %rax.0.reg2mem br i1 %43, label LBL_8, label LBL_10 LBL_8: %44 = call i64 @FUNC(i64 0) %45 = icmp eq i64 %44, 0 %46 = icmp eq i1 %45, false store i64 0, i64* %rax.0.reg2mem br i1 %46, label LBL_9, label LBL_10 LBL_9: %47 = call i64 @FUNC(i64 %44, i64 %., i64 %.stack_var_-48.0, i64 %.8, i64 %sv_0.0.) store i64 %44, i64* %3, align 8 %48 = add i64 %0, 56 %49 = inttoptr i64 %48 to i64* store i64 %47, i64* %49, align 8 store i64 1, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %44, { 1, 0, 2 } uselistorder i64 %sv_0.0., { 1, 0 } uselistorder i64 %.8, { 1, 0 } uselistorder i64 %.stack_var_-48.0, { 1, 0 } uselistorder i64 %., { 1, 0 } uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i32 %7, { 0, 2, 1 } uselistorder i64* %3, { 1, 0, 2 } uselistorder i64 %0, { 2, 4, 3, 5, 6, 8, 7, 1, 9, 0, 10, 11 } uselistorder i64* %.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64, i64, i64, i64, i64)* @tls12_do_shared_sigalgs, { 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 0, { 2, 1, 0 } uselistorder label LBL_10, { 2, 0, 1 } }
1
BinRealVul
shortlog_5303
shortlog
define i64 @FUNC(i8* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.ph.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_2 = alloca i64, align 8 store i64 0, i64* %sv_2, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %2, i64 %1, i64 40) %4 = icmp eq i64 %3, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_19, label LBL_1 LBL_1: %5 = add i64 %3, 20 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 %9 = icmp eq i32 %7, 1 %10 = icmp eq i1 %9, false store i64 %8, i64* %rax.0.reg2mem br i1 %10, label LBL_19, label LBL_2 LBL_2: %11 = ptrtoint i64* %arg4 to i64 %12 = ptrtoint i64* %arg3 to i64 %13 = call i64 @FUNC(i64 0, i64 0, i64 %11, i64 0) %14 = bitcast i64* %arg4 to i32* store i32 1, i32* %14, align 4 %15 = ptrtoint i8* %arg1 to i64 %16 = call i64 @FUNC(i64 %11, i64 %3, i64 %15) %17 = call i64 @FUNC(i64 %11, i64 %12, i64 ptrtoint ([6 x i8]* @gv_0 to i64)) %18 = add i64 %12, 24 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = or i32 %20, 1 store i32 %21, i32* %19, align 4 %22 = call i64 @FUNC(i64 %11) %23 = trunc i64 %arg5 to i32 %24 = icmp slt i32 %23, 0 store i32 0, i32* %sv_0.0.ph.reg2mem br label LBL_13 LBL_3: %25 = add i64 %66, 32 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = icmp eq i64 %27, 0 br i1 %28, label LBL_5, label LBL_4 LBL_4: %29 = add i64 %27, 8 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = icmp eq i64 %31, 0 br i1 %32, label LBL_5, label LBL_14 LBL_5: br i1 %24, label LBL_6, label LBL_7 LBL_6: %33 = add i32 %sv_0.0.ph.reload, 1 store i32 %33, i32* %sv_0.0.ph.reg2mem br label LBL_13 LBL_7: %34 = add i64 %66, 40 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = inttoptr i64 %36 to i8* %38 = call i8* @strstr(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %39 = icmp eq i8* %38, null %40 = icmp eq i1 %39, false br i1 %40, label LBL_9, label LBL_8 LBL_8: %41 = call i64 @FUNC(i64 %66) %42 = inttoptr i64 %41 to i8* %43 = call i8* @strdup(i8* %42) %44 = ptrtoint i8* %43 to i64 %45 = call i64 @FUNC(i64* nonnull %sv_2, i64 %44, i64 0) br label LBL_6 LBL_9: %46 = ptrtoint i8* %38 to i64 %47 = add i64 %46, 2 %48 = inttoptr i64 %47 to i8* %49 = call i8* @strchr(i8* %48, i32 10) %50 = icmp eq i8* %49, null br i1 %50, label LBL_11, label LBL_10 LBL_10: %51 = ptrtoint i8* %49 to i64 %52 = sub i64 %51, %47 %53 = trunc i64 %52 to i32 %54 = mul i64 %52, 4294967296 %sext5 = add i64 %54, 4294967296 %55 = ashr exact i64 %sext5, 32 %56 = call i64 @FUNC(i64 %55) %57 = inttoptr i64 %56 to i64* %58 = inttoptr i64 %47 to i64* %59 = call i64* @memcpy(i64* %57, i64* %58, i32 %53) %60 = ashr exact i64 %54, 32 %61 = add i64 %56, %60 %62 = inttoptr i64 %61 to i8* store i8 0, i8* %62, align 1 store i64 %56, i64* %sv_1.0.reg2mem br label LBL_12 LBL_11: %63 = call i8* @strdup(i8* %48) %64 = ptrtoint i8* %63 to i64 store i64 %64, i64* %sv_1.0.reg2mem br label LBL_12 LBL_12: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %65 = call i64 @FUNC(i64* nonnull %sv_2, i64 %sv_1.0.reload, i64 0) br label LBL_6 LBL_13: %sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem br label LBL_14 LBL_14: %66 = call i64 @FUNC(i64 %11) %67 = icmp eq i64 %66, 0 %68 = icmp eq i1 %67, false br i1 %68, label LBL_3, label LBL_15 LBL_15: %69 = icmp sgt i32 %sv_0.0.ph.reload, %23 br i1 %69, label LBL_16, label LBL_17 LBL_16: %70 = zext i32 %sv_0.0.ph.reload to i64 %71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i8* %arg1, i64 %70) br label LBL_18 LBL_17: %72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i8* %arg1) br label LBL_18 LBL_18: %73 = call i64 @FUNC(i64 %3, i64 31) %74 = call i64 @FUNC(i64 %12, i64 31) %75 = add i64 %11, 8 %76 = inttoptr i64 %75 to i64* %77 = load i64, i64* %76, align 8 %78 = call i64 @FUNC(i64 %77) store i64 0, i64* %76, align 8 %79 = add i64 %11, 16 %80 = inttoptr i64 %79 to i32* store i32 0, i32* %80, align 4 %81 = call i64 @FUNC(i64* nonnull %sv_2) store i64 %81, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %66, { 3, 2, 1, 0 } uselistorder i32 %sv_0.0.ph.reload, { 2, 1, 0 } uselistorder i64 %54, { 1, 0 } uselistorder i8* %49, { 1, 0 } uselistorder i64 %12, { 0, 2, 1 } uselistorder i64 %11, { 0, 1, 2, 3, 5, 4, 6 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @clear_commit_marks, { 1, 0 } uselistorder i64 31, { 1, 0 } uselistorder i32 (i8*, ...)* @printf, { 1, 0 } uselistorder i64 4294967296, { 1, 0 } uselistorder i64 (i64*, i64, i64)* @append_to_list, { 1, 0 } uselistorder i8* (i8*)* @strdup, { 1, 0 } uselistorder i32 0, { 2, 0, 1 } uselistorder i64 (i64, i64, i64)* @add_pending_object, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 40, { 1, 0 } uselistorder i64 (i64)* @sha1_to_hex, { 1, 0 } uselistorder label LBL_19, { 2, 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_6, { 1, 2, 0 } }
0
BinRealVul
ASN1_template_d2i_4430
ASN1_template_d2i
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %2 = call i64 @FUNC(i64* nonnull %sv_0) %3 = call i64 @FUNC(i64 %1, i64 %0, i64 %arg3, i64 %arg4, i64 0, i64* nonnull %sv_0) ret i64 %3 }
0
BinRealVul
rpcrdma_max_call_header_size_11997
rpcrdma_max_call_header_size
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = mul i64 %arg1, 512 %1 = add i64 %0, 1032 %2 = and i64 %1, 4294966792 ret i64 %2 }
1
BinRealVul
vmxnet3_pop_rxc_descr_3542
vmxnet3_pop_rxc_descr
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 29 %2 = add i64 %1, %0 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %0) %5 = bitcast i32* %sv_0 to i64* %6 = call i64 @FUNC(i64 %4, i64 %3, i64* nonnull %5, i64 4) %7 = add i64 %4, %1 %8 = call i64 @FUNC(i64 %7) %9 = trunc i64 %8 to i32 %10 = load i32, i32* %sv_0, align 4 %11 = urem i32 %9, 256 %12 = icmp eq i32 %10, %11 store i64 0, i64* %storemerge.reg2mem br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = and i64 %arg2, 4294967295 %14 = bitcast i64* %arg3 to i32* store i32 %11, i32* %14, align 4 %15 = call i64 @FUNC(i64 %0, i64 %13) store i64 %3, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %11, { 1, 0 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
i2c_slave_post_load_2699
i2c_slave_post_load
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %3) %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = trunc i64 %1 to i32 %8 = icmp ne i32 %6, %7 %9 = icmp eq i32 %6, 255 %10 = icmp eq i1 %9, false %or.cond = icmp eq i1 %8, %10 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64 16) %12 = add i64 %11, 8 %13 = inttoptr i64 %12 to i64* store i64 %2, i64* %13, align 8 %14 = add i64 %4, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %11 to i64* store i64 %16, i64* %17, align 8 store i64 %11, i64* %15, align 8 br label LBL_2 LBL_2: ret i64 0 uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
_single_string_alloc_and_copy_11060
_single_string_alloc_and_copy
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i32 %.reg2mem10 = alloca i32 %.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false store i32 0, i32* %sv_0.0.reg2mem store i64 %arg1, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_5 LBL_1: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %2 = sext i32 %sv_0.0.reload to i64 %3 = mul i64 %2, 4 %4 = add i64 %3, %arg1 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false %9 = add i32 %sv_0.0.reload, 1 store i32 %9, i32* %sv_0.0.reg2mem br i1 %8, label LBL_1, label LBL_2 LBL_2: %10 = call i64* @malloc(i32 %9) %11 = ptrtoint i64* %10 to i64 %12 = inttoptr i64 %arg1 to i32* %13 = load i32, i32* %12, align 4 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false store i64 %11, i64* %.reg2mem store i32 %13, i32* %.reg2mem10 store i32 0, i32* %storemerge13.reg2mem store i64 %11, i64* %.lcssa.reg2mem br i1 %15, label LBL_3, label LBL_4 LBL_3: %storemerge13.reload = load i32, i32* %storemerge13.reg2mem %.reload11 = load i32, i32* %.reg2mem10 %.reload = load i64, i64* %.reg2mem %16 = trunc i32 %.reload11 to i8 %17 = inttoptr i64 %.reload to i8* store i8 %16, i8* %17, align 1 %18 = add i32 %storemerge13.reload, 1 %19 = sext i32 %18 to i64 %20 = mul i64 %19, 4 %21 = add i64 %20, %arg1 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false %26 = add i64 %19, %11 store i64 %26, i64* %.reg2mem store i32 %23, i32* %.reg2mem10 store i32 %18, i32* %storemerge13.reg2mem store i64 %26, i64* %.lcssa.reg2mem br i1 %25, label LBL_3, label LBL_4 LBL_4: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %27 = inttoptr i64 %.lcssa.reload to i8* store i8 0, i8* %27, align 1 store i64 %11, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %19, { 1, 0 } uselistorder i64 %11, { 0, 3, 1, 2 } uselistorder i32 %9, { 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem10, { 2, 0, 1 } uselistorder i32* %storemerge13.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 3, 0, 2, 4, 1 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder i32 1, { 6, 7, 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 1, 3, 2, 0, 4 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
prefetch_dec_11913
prefetch_dec
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64* nonnull @gv_0, i64 8) ret i64 %0 }
1
BinRealVul
nfc_dev_up_12011
nfc_dev_up
define i64 @FUNC(i8* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.reg2mem13 = alloca i8* %.reg2mem11 = alloca i8* %.reg2mem9 = alloca i64 %.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i64, i64* %0 %6 = ptrtoint i8* %arg1 to i64 %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %4, i64 %5, i64 %2, i64 %1) %9 = call i64 @FUNC(i64 %6) %10 = call i64 @FUNC(i64 %6) %11 = trunc i64 %10 to i8 %12 = icmp eq i8 %11, 1 store i8* inttoptr (i32 -19 to i8*), i8** %.reg2mem13 br i1 %12, label LBL_1, label LBL_10 LBL_1: %13 = add i64 %6, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = call i64 @FUNC(i64 %15) %18 = trunc i64 %17 to i8 %19 = icmp eq i8 %18, 0 store i8* inttoptr (i32 -100 to i8*), i8** %.reg2mem13 br i1 %19, label LBL_3, label LBL_10 LBL_3: %20 = add i64 %6, 16 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 0 store i8* inttoptr (i32 -16 to i8*), i8** %.reg2mem13 br i1 %23, label LBL_4, label LBL_10 LBL_4: %24 = trunc i64 %3 to i8 %25 = icmp eq i8 %24, 0 store i8* inttoptr (i32 -114 to i8*), i8** %.reg2mem13 br i1 %25, label LBL_5, label LBL_10 LBL_5: %26 = add i64 %6, 24 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = icmp eq i64 %30, 0 %.pre8 = trunc i64 %6 to i32 store i8* null, i8** %.reg2mem br i1 %31, label LBL_7, label LBL_6 LBL_6: %phitmp5 = icmp eq i32 %.pre8, 0 %phitmp6 = icmp eq i1 %phitmp5, false store i8* %arg1, i8** %.reg2mem store i64 %28, i64* %.reg2mem9 store i8* %arg1, i8** %.reg2mem11 br i1 %phitmp6, label LBL_8, label LBL_7 LBL_7: %.reload = load i8*, i8** %.reg2mem store i8 1, i8* %arg1, align 1 %.pre = load i64, i64* %27, align 8 store i64 %.pre, i64* %.reg2mem9 store i8* %.reload, i8** %.reg2mem11 br label LBL_8 LBL_8: %.reload12 = load i8*, i8** %.reg2mem11 %.reload10 = load i64, i64* %.reg2mem9 %32 = add i64 %.reload10, 8 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = icmp eq i64 %34, 0 %36 = icmp eq i32 %.pre8, 0 %or.cond = or i1 %36, %35 store i8* %.reload12, i8** %.reg2mem13 br i1 %or.cond, label LBL_10, label LBL_9 LBL_9: %37 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %34, i64 %5, i64 %2, i64 %1) store i8* %.reload12, i8** %.reg2mem13 br label LBL_10 LBL_10: %.reload14 = load i8*, i8** %.reg2mem13 %38 = call i64 @FUNC(i64 %6) %39 = ptrtoint i8* %.reload14 to i64 %40 = and i64 %39, 4294967295 ret i64 %40 uselistorder i64 %6, { 1, 0, 3, 2, 4, 5, 6, 7 } uselistorder i8** %.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem9, { 0, 2, 1 } uselistorder i8** %.reg2mem11, { 0, 2, 1 } uselistorder i8** %.reg2mem13, { 0, 5, 6, 1, 2, 3, 4 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i8 1, { 1, 0 } uselistorder i8* %arg1, { 2, 0, 1, 3 } uselistorder label LBL_10, { 5, 4, 0, 1, 2, 3 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
format_CT_8332
format_CT
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.03.reg2mem = alloca i32* %sv_1.04.reg2mem = alloca i64 %r8.1.reg2mem = alloca i64 %r8.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg2 to i64 %5 = load i64*, i64** @gv_0, align 8 %6 = ptrtoint i64* %5 to i64 %7 = load i64, i64* inttoptr (i64 4210784 to i64*), align 32 %8 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %6, i64 %2, i64 %1) %9 = urem i64 %3, 2 %10 = icmp eq i64 %9, 0 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = load i64*, i64** @gv_0, align 8 %12 = ptrtoint i64* %11 to i64 %13 = load i64, i64* bitcast ([3 x i8*]* @gv_2 to i64*), align 16 %14 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i64 %13, i64 %12, i64 %2, i64 %1) br label LBL_2 LBL_2: %15 = ptrtoint i64* %arg1 to i64 %16 = add i64 %15, 4 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = icmp eq i8 %18, -1 br i1 %19, label LBL_4, label LBL_3 LBL_3: %20 = load i64*, i64** @gv_0, align 8 %21 = ptrtoint i64* %20 to i64 %22 = load i64, i64* bitcast ([2 x i8*]* @gv_4 to i64*), align 8 %23 = zext i8 %18 to i64 %24 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_5, i64 0, i64 0), i64 %22, i64 %21, i64 %23, i64 %1) store i64 %23, i64* %r8.0.reg2mem br label LBL_4 LBL_4: %r8.0.reload = load i64, i64* %r8.0.reg2mem %25 = add i64 %15, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, 0 br i1 %28, label LBL_6, label LBL_5 LBL_5: %29 = load i64*, i64** @gv_0, align 8 %30 = ptrtoint i64* %29 to i64 %31 = load [6 x i8]*, [6 x i8]** @gv_6, align 8 %32 = ptrtoint [6 x i8]* %31 to i64 %33 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i64 %32, i64 %30, i64 %r8.0.reload, i64 %1) %34 = call i64 @FUNC(i64 %25, i64 %4) %35 = call i64 @FUNC(i64 %4, i64 44) store i64 %r8.0.reload, i64* %r8.1.reg2mem br label LBL_8 LBL_6: %36 = add i64 %15, 12 %37 = inttoptr i64 %36 to i16* %38 = load i16, i16* %37, align 2 %39 = icmp eq i16 %38, 0 store i64 %r8.0.reload, i64* %r8.1.reg2mem br i1 %39, label LBL_8, label LBL_7 LBL_7: %40 = load i64*, i64** @gv_0, align 8 %41 = ptrtoint i64* %40 to i64 %42 = load [6 x i8]*, [6 x i8]** @gv_6, align 8 %43 = ptrtoint [6 x i8]* %42 to i64 %44 = zext i16 %38 to i64 %45 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_8, i64 0, i64 0), i64 %43, i64 %41, i64 %44, i64 %1) store i64 %44, i64* %r8.1.reg2mem br label LBL_8 LBL_8: %r8.1.reload = load i64, i64* %r8.1.reg2mem %46 = add i64 %15, 16 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = call i64 @FUNC(i64 %15) %50 = icmp eq i64 %49, 0 br i1 %50, label LBL_12, label LBL_9 LBL_9: %51 = inttoptr i64 %48 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp eq i32 %52, 1 %54 = icmp eq i1 %53, false store i64 %49, i64* %sv_1.04.reg2mem store i32* %51, i32** %sv_0.03.reg2mem br i1 %54, label LBL_11, label LBL_10 LBL_10: %55 = call i64 @FUNC(i64 %48, i64 %4) %56 = call i64 @FUNC(i64 %4, i64 44) %57 = add i64 %48, 8 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = add i64 %59, 3 %61 = and i64 %60, -4 %62 = sub i64 %49, %61 %63 = add i64 %61, %48 %64 = inttoptr i64 %63 to i32* %65 = icmp eq i64 %62, 0 store i64 %62, i64* %sv_1.04.reg2mem store i32* %64, i32** %sv_0.03.reg2mem br i1 %65, label LBL_12, label LBL_11 LBL_11: %sv_0.03.reload = load i32*, i32** %sv_0.03.reg2mem %sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem %66 = load i64*, i64** @gv_0, align 8 %67 = ptrtoint i64* %66 to i64 %68 = load i64, i64* @gv_9, align 8 %69 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0), i64 %68, i64 %67, i64 %r8.1.reload, i64 %1) %70 = ptrtoint i32* %sv_0.03.reload to i64 %71 = call i64 @FUNC(i64 %70, i64 %sv_1.04.reload, i64 %4) %72 = load i64*, i64** @gv_0, align 8 %73 = ptrtoint i64* %72 to i64 %74 = load i64, i64* @gv_9, align 8 %75 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_11, i64 0, i64 0), i64 %74, i64 %73, i64 %r8.1.reload, i64 %1) br label LBL_12 LBL_12: %76 = add i64 %15, 24 %77 = inttoptr i64 %76 to i32* %78 = load i32, i32* %77, align 4 %79 = zext i32 %78 to i64 %80 = call i64 @FUNC(i64 %79, i64 %4) %81 = call i64 @FUNC(i64 %4, i64 44) %82 = load i64*, i64** @gv_0, align 8 %83 = ptrtoint i64* %82 to i64 %84 = load i64, i64* @gv_9, align 8 %85 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_12, i64 0, i64 0), i64 %84, i64 %83, i64 %r8.1.reload, i64 %1) ret i64 %85 uselistorder i64 %49, { 1, 0, 2 } uselistorder i64 %r8.1.reload, { 0, 2, 1 } uselistorder i64 %r8.0.reload, { 1, 0, 2 } uselistorder i64 %15, { 0, 2, 1, 4, 3, 5 } uselistorder i64 %4, { 11, 13, 12, 8, 10, 9, 7, 6, 5, 2, 4, 3, 1, 0, 14 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %r8.1.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %sv_1.04.reg2mem, { 0, 2, 1 } uselistorder i32** %sv_0.03.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64)* @ds_put_char, { 1, 0 } uselistorder i64 8, { 1, 2, 0 } uselistorder i32 0, { 6, 0, 1, 2, 3, 4, 5 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @ds_put_format, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_12, { 1, 2, 0 } uselistorder label LBL_11, { 1, 0 } }
0
BinRealVul
ntlm_av_pair_add_17965
ntlm_av_pair_add
define i64 @FUNC(i64 %arg1, i64 %arg2, i16* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1, i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %sext5 = mul i64 %arg4, 281474976710656 %3 = ashr exact i64 %sext5, 48 %4 = inttoptr i64 %0 to i32* %5 = trunc i64 %arg2 to i32 store i32 %5, i32* %4, align 4 %6 = trunc i64 %3 to i16 %7 = add i64 %0, 4 %8 = inttoptr i64 %7 to i16* store i16 %6, i16* %8, align 2 %9 = call i64 @FUNC(i64 %0) %10 = ptrtoint i16* %arg3 to i64 %11 = urem i64 %3, 65536 %12 = call i64 @FUNC(i64 %9, i64 %10, i64 %11) store i64 %0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 3, 2, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
rgb8tobgr8_17222
rgb8tobgr8
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %0 = icmp sgt i64 %arg3, 0 store i64 0, i64* %storemerge1.reg2mem store i64 0, i64* %storemerge.lcssa.reg2mem br i1 %0, label LBL_1, label LBL_2 LBL_1: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %1 = add i64 %storemerge1.reload, %arg1 %2 = inttoptr i64 %1 to i8* %3 = load i8, i8* %2, align 1 %4 = udiv i8 %3, 64 %narrow = mul i8 %4, 2 %5 = and i8 %3, 56 %6 = mul i8 %3, 64 %7 = add i64 %storemerge1.reload, %arg2 %8 = or i8 %6, %5 %9 = or i8 %8, %narrow %10 = inttoptr i64 %7 to i8* store i8 %9, i8* %10, align 1 %11 = add nuw nsw i64 %storemerge1.reload, 1 %exitcond = icmp eq i64 %11, %arg3 store i64 %11, i64* %storemerge1.reg2mem store i64 %arg3, i64* %storemerge.lcssa.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem ret i64 %storemerge.lcssa.reload uselistorder i8 %3, { 0, 2, 1 } uselistorder i64 %storemerge1.reload, { 0, 2, 1 } uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
install_user_keyrings_6080
install_user_keyrings
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %.pre-phi12.reg2mem = alloca i64 %sv_1.0.in.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %0 = call i64 @FUNC() %1 = inttoptr i64 %0 to i64* %2 = load i64, i64* %1, align 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = zext i32 %4 to i64 %9 = call i64 @FUNC(i64 %7, i64 %8) %10 = trunc i64 %9 to i32 %11 = inttoptr i64 %2 to i64* %12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64* %11, i32 %10) %13 = add i64 %2, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 br i1 %16, label LBL_3, label LBL_1 LBL_1: %17 = add i64 %2, 16 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %19, 0 br i1 %20, label LBL_3, label LBL_2 LBL_2: %21 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_3: %22 = call i64 @FUNC(i64* nonnull @gv_2) %23 = load i64, i64* %14, align 8 %24 = icmp eq i64 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_11, label LBL_4 LBL_4: %26 = bitcast i64* %sv_2 to i8* %27 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i32 %10) %28 = call i64 @FUNC(i64* nonnull %sv_2, i64 1) %29 = icmp ult i64 %28, -1000 store i64 %28, i64* %sv_1.0.in.reg2mem br i1 %29, label LBL_6, label LBL_5 LBL_5: %30 = load i32, i32* %3, align 4 %31 = call i64 @FUNC(i64* nonnull %sv_2, i32 %30, i64 0, i64 %0, i64 31, i64 0) %32 = icmp ult i64 %31, -1000 store i64 %31, i64* %sv_1.0.in.reg2mem store i64 %31, i64* %sv_0.1.reg2mem br i1 %32, label LBL_6, label LBL_14 LBL_6: %sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem %33 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i32 %10) %34 = call i64 @FUNC(i64* nonnull %sv_2, i64 1) %35 = icmp ult i64 %34, -1000 br i1 %35, label LBL_6.LBL_10_crit_edge, label LBL_8 LBL_7: %.pre = mul i64 %sv_1.0.in.reload, 4294967296 %.pre9 = ashr exact i64 %.pre, 32 %.pre10 = mul i64 %34, 4294967296 %.pre11 = ashr exact i64 %.pre10, 32 store i64 %.pre11, i64* %.pre-phi12.reg2mem store i64 %.pre9, i64* %.pre-phi.reg2mem br label LBL_10 LBL_8: %36 = load i32, i32* %3, align 4 %37 = call i64 @FUNC(i64* nonnull %sv_2, i32 %36, i64 0, i64 %0, i64 31, i64 0) %38 = icmp ult i64 %37, -1000 %sext4 = mul i64 %sv_1.0.in.reload, 4294967296 %39 = ashr exact i64 %sext4, 32 store i64 %37, i64* %sv_0.0.reg2mem br i1 %38, label LBL_9, label LBL_13 LBL_9: %sext5 = mul i64 %37, 4294967296 %40 = ashr exact i64 %sext5, 32 %41 = call i64 @FUNC(i64 %40, i64 %39) %42 = trunc i64 %41 to i32 %43 = icmp slt i32 %42, 0 store i64 %40, i64* %.pre-phi12.reg2mem store i64 %39, i64* %.pre-phi.reg2mem br i1 %43, label LBL_12, label LBL_10 LBL_10: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi12.reload = load i64, i64* %.pre-phi12.reg2mem store i64 %.pre-phi.reload, i64* %14, align 8 %44 = add i64 %2, 16 %45 = inttoptr i64 %44 to i64* store i64 %.pre-phi12.reload, i64* %45, align 8 br label LBL_11 LBL_11: %46 = call i64 @FUNC(i64* nonnull @gv_2) %47 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_12: %48 = call i64 @FUNC(i64 %40) store i64 %41, i64* %sv_0.0.reg2mem br label LBL_13 LBL_13: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %49 = call i64 @FUNC(i64 %39) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_14 LBL_14: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %50 = call i64 @FUNC(i64* nonnull @gv_2) %51 = and i64 %sv_0.1.reload, 4294967295 %52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0), i64 %51) store i64 %51, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %40, { 1, 0, 2 } uselistorder i64 %39, { 1, 0, 2 } uselistorder i64 %37, { 1, 0, 2 } uselistorder i64 %sv_1.0.in.reload, { 1, 0 } uselistorder i32* %3, { 1, 0, 2 } uselistorder i64 %2, { 0, 1, 3, 4, 2 } uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64 (i64)* @key_put, { 1, 0 } uselistorder i64 (i64*)* @mutex_unlock, { 1, 0 } uselistorder i64 32, { 2, 3, 0, 1 } uselistorder i64 (i64*, i32, i64, i64, i64, i64)* @keyring_alloc, { 1, 0 } uselistorder i64 (i64*, i64)* @find_keyring_by_name, { 1, 0 } uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 } uselistorder i64* @gv_2, { 1, 0, 2 } uselistorder i32 (i8*)* @puts, { 1, 0 } uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
qemu_chr_fe_write_buffer_14431
qemu_chr_fe_write_buffer
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg3, 4294967296 %3 = bitcast i64* %arg4 to i32* store i32 0, i32* %3, align 4 %4 = add i64 %2, 8 %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %1 to i32 %7 = and i64 %1, 4294967295 %8 = ashr exact i64 %sext, 32 %9 = icmp sgt i64 %8, %7 store i64 0, i64* %sv_0.1.reg2mem br i1 %9, label LBL_1, label LBL_9 LBL_1: %10 = trunc i64 %2 to i32 %11 = icmp eq i32 %10, -1 %12 = icmp eq i1 %11, false %13 = icmp slt i32 %10, 1 %14 = add i32 %6, %10 br label LBL_7 LBL_2: %15 = call i32* @__errno_location() %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 11 %18 = icmp eq i1 %17, false br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = call i64 @FUNC(i64 100) br label LBL_4 LBL_4: %20 = call i32* @__errno_location() %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 11 br i1 %22, label LBL_2, label LBL_5 LBL_5: br i1 %13, label LBL_5.LBL_9_crit_edge, label LBL_6 LBL_6: store i32 %14, i32* %3, align 4 br label LBL_7 LBL_7: br i1 %12, label LBL_5, label LBL_2 LBL_8: %23 = and i64 %2, 4294967295 store i64 %23, i64* %sv_0.1.reg2mem br label LBL_9 LBL_9: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %24 = icmp slt i32 %6, 1 br i1 %24, label LBL_11, label LBL_10 LBL_10: %25 = ptrtoint i64* %arg2 to i64 %26 = call i64 @FUNC(i64 %2, i64 %25, i32 %6) br label LBL_11 LBL_11: %27 = call i64 @FUNC(i64 %4) ret i64 %sv_0.1.reload uselistorder i32 %6, { 1, 2, 0 } uselistorder i64 %2, { 1, 0, 2, 3 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
mixer_init_9307
mixer_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %sv_0.05.reg2mem = alloca i32 %storemerge16.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %5 = call i64 @FUNC(i64 %4) %6 = load i64, i64* @gv_0, align 8 %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false store i64 0, i64* %storemerge.reg2mem br i1 %8, label LBL_1, label LBL_12 LBL_1: %9 = bitcast i64* %sv_1 to i8* store i64 %6, i64* %.reg2mem store i32 0, i32* %storemerge16.reg2mem br label LBL_2 LBL_2: %storemerge16.reload = load i32, i32* %storemerge16.reg2mem %.reload = load i64, i64* %.reg2mem %10 = inttoptr i64 %.reload to i32* %11 = load i32, i32* %10, align 4 %12 = zext i32 %11 to i64 %13 = call i64 @FUNC(i64 %4, i64 %12) %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_10, label LBL_3 LBL_3: %16 = call i64 @FUNC(i64 %12) %17 = icmp eq i64 %16, 0 %18 = icmp eq i1 %17, false store i32 0, i32* %sv_0.05.reg2mem store i64 %16, i64* %.lcssa.reg2mem br i1 %18, label LBL_7, label LBL_4 LBL_4: %sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem %19 = add nuw nsw i32 %sv_0.05.reload, 1 %20 = icmp ult i32 %19, 6 br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 %12, i64 %3, i64 %2, i64 %1) br label LBL_11 LBL_6: %22 = call i32 @usleep(i32 100000) %23 = call i64 @FUNC(i64 %12) %24 = icmp eq i64 %23, 0 %25 = icmp eq i1 %24, false store i32 %19, i32* %sv_0.05.reg2mem store i64 %23, i64* %.lcssa.reg2mem br i1 %25, label LBL_7, label LBL_4 LBL_7: %26 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %9, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %12) %27 = call i64 @FUNC(i64 %12, i64* nonnull %sv_1) %28 = icmp eq i64 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_9, label LBL_8 LBL_8: %30 = call i64 @FUNC(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 %12, i64 %3, i64 %2, i64 %1) br label LBL_11 LBL_9: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %31 = call i64* @calloc(i32 1, i32 40) %32 = ptrtoint i64* %31 to i64 %33 = bitcast i64* %31 to i32* store i32 %11, i32* %33, align 4 %34 = add i64 %32, 8 %35 = inttoptr i64 %34 to i64* store i64 %.lcssa.reload, i64* %35, align 8 %36 = add i64 %32, 16 %37 = inttoptr i64 %36 to i64* store i64 %27, i64* %37, align 8 %38 = add i64 %32, 24 %39 = call i64 @FUNC(i64 %4, i64 %38) br label LBL_10 LBL_10: %40 = add i32 %storemerge16.reload, 1 %41 = sext i32 %40 to i64 %42 = mul i64 %41, 8 %43 = add i64 %42, ptrtoint (i64* @gv_0 to i64) %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = icmp eq i64 %45, 0 %47 = icmp eq i1 %46, false store i64 %45, i64* %.reg2mem store i32 %40, i32* %storemerge16.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %47, label LBL_2, label LBL_12 LBL_11: %48 = call i64 @FUNC(i64 %4) store i64 4294967277, i64* %storemerge.reg2mem br label LBL_12 LBL_12: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %12, { 0, 4, 3, 5, 1, 2, 6 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge16.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.05.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @ALOGE, { 1, 0 } uselistorder i64 (i64)* @mixer_open, { 1, 0 } uselistorder i1 false, { 5, 2, 3, 1, 4, 0 } uselistorder i64* @gv_0, { 1, 0 } uselistorder label LBL_12, { 2, 0, 1 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
_libssh2_check_length_11923
_libssh2_check_length
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp ult i64 %0, %arg2 store i64 0, i64* %storemerge.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = add i64 %0, 16 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = sub i64 %4, %7 %9 = trunc i64 %8 to i32 %10 = sub i64 %0, %arg2 %11 = trunc i64 %10 to i32 %12 = sub i32 %9, %11 %13 = xor i64 %8, %10 %14 = trunc i64 %13 to i32 %15 = xor i32 %12, %9 %16 = and i32 %15, %14 %17 = icmp slt i32 %16, 0 %18 = icmp eq i32 %12, 0 %19 = icmp slt i32 %12, 0 %20 = icmp ne i1 %19, %17 %21 = or i1 %18, %20 %22 = zext i1 %21 to i64 store i64 %22, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %12, { 1, 2, 0 } uselistorder i64 %0, { 0, 2, 1, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
usb_del_gadget_udc_18557
usb_del_gadget_udc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null store i64 %0, i64* %rax.0.reg2mem br i1 %1, label LBL_4, label LBL_1 LBL_1: %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0)) %6 = call i64 @FUNC(i64* nonnull @gv_1) %7 = add i64 %0, 16 %8 = call i64 @FUNC(i64 %7) %9 = icmp eq i64 %7, 0 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %0) %11 = call i64 @FUNC(i64 %7, i64* nonnull @gv_2) br label LBL_3 LBL_3: %12 = call i64 @FUNC(i64* nonnull @gv_1) %13 = call i64 @FUNC(i64 %2, i64 0) %14 = call i64 @FUNC(i64 %7) %15 = call i64 @FUNC(i64 %2) %16 = call i64 @FUNC(i64 %2) store i64 %16, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 0, 2, 1, 3 } uselistorder i64 %0, { 1, 2, 3, 0 } uselistorder i64 (i64)* @device_unregister, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
duplicate_mode_info_in_sb_18721
duplicate_mode_info_in_sb
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i64 %storemerge8.reg2mem = alloca i32 %rsi.3.reg2mem = alloca i64 %rsi.2.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %storemerge56.reg2mem = alloca i32 %rsi.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = mul i64 %arg5, 4 %1 = and i64 %0, 17179869180 %2 = add i64 %1, ptrtoint (i32** @gv_0 to i64) %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %1, ptrtoint (i32** @gv_1 to i64) %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp sgt i32 %7, 0 store i64 0, i64* %storemerge.lcssa.reg2mem br i1 %8, label LBL_1, label LBL_10 LBL_1: %9 = ptrtoint i64* %arg2 to i64 %10 = icmp sgt i32 %4, 0 %11 = trunc i64 %arg3 to i32 %12 = bitcast i64* %rdi to i32* %13 = trunc i64 %arg4 to i32 %14 = ptrtoint i32* %arg1 to i64 %15 = add i64 %14, 4 %16 = inttoptr i64 %15 to i32* %17 = add i64 %9, 8 %18 = inttoptr i64 %17 to i32* store i64 %9, i64* %rsi.3.reg2mem store i32 0, i32* %storemerge8.reg2mem br label LBL_7 LBL_2: %storemerge56.reload = load i32, i32* %storemerge56.reg2mem %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %19 = load i32, i32* %12, align 8 %20 = icmp ult i32 %34, %19 store i64 %rsi.0.reload, i64* %rsi.1.reg2mem br i1 %20, label LBL_3, label LBL_5 LBL_3: %21 = add i32 %storemerge56.reload, %13 %22 = load i32, i32* %16, align 4 %23 = icmp ult i32 %21, %22 store i64 %rsi.0.reload, i64* %rsi.1.reg2mem br i1 %23, label LBL_4, label LBL_5 LBL_4: %24 = load i32, i32* %18, align 4 %25 = mul i32 %24, %storemerge8.reload %26 = zext i32 %25 to i64 %27 = add i32 %25, %storemerge56.reload %28 = sext i32 %27 to i64 %29 = mul i64 %28, 4 %30 = add i64 %29, %rsi.0.reload %31 = inttoptr i64 %30 to i32* store i32 %25, i32* %31, align 4 store i64 %26, i64* %rsi.1.reg2mem br label LBL_5 LBL_5: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %32 = add nuw nsw i32 %storemerge56.reload, 1 %exitcond = icmp eq i32 %32, %4 store i64 %rsi.1.reload, i64* %rsi.0.reg2mem store i32 %32, i32* %storemerge56.reg2mem store i64 %rsi.1.reload, i64* %rsi.2.reg2mem br i1 %exitcond, label LBL_6, label LBL_2 LBL_6: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %33 = add nuw nsw i32 %storemerge8.reload, 1 %exitcond10 = icmp eq i32 %33, %7 store i64 %rsi.2.reload, i64* %rsi.3.reg2mem store i32 %33, i32* %storemerge8.reg2mem br i1 %exitcond10, label LBL_9, label LBL_7 LBL_7: %storemerge8.reload = load i32, i32* %storemerge8.reg2mem %rsi.3.reload = load i64, i64* %rsi.3.reg2mem store i64 %rsi.3.reload, i64* %rsi.2.reg2mem br i1 %10, label LBL_2.lr.ph, label LBL_6 LBL_8: %34 = add i32 %storemerge8.reload, %11 store i64 %rsi.3.reload, i64* %rsi.0.reg2mem store i32 0, i32* %storemerge56.reg2mem br label LBL_2 LBL_9: %phitmp = zext i32 %7 to i64 store i64 %phitmp, i64* %storemerge.lcssa.reg2mem br label LBL_10 LBL_10: %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem ret i64 %storemerge.lcssa.reload uselistorder i32 %storemerge8.reload, { 1, 2, 0 } uselistorder i32 %25, { 1, 0, 2 } uselistorder i64 %rsi.0.reload, { 2, 1, 0 } uselistorder i32 %storemerge56.reload, { 0, 2, 1 } uselistorder i64* %rsi.0.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge56.reg2mem, { 2, 1, 0 } uselistorder i64* %rsi.1.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rsi.2.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 1, 0, 2, 3 } uselistorder i64 4, { 0, 2, 1 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
__local_bh_enable_13352
__local_bh_enable
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = call i64 @FUNC() %2 = call i64 @FUNC() %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %0, %3 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 0) br label LBL_2 LBL_2: %7 = and i64 %arg1, 4294967295 %8 = call i64 @FUNC(i64 %7) ret i64 %8 }
1
BinRealVul
vu_message_read_832
vu_message_read
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i1 %.lcssa5.reg2mem = alloca i32 %.reg2mem = alloca i32 %storemerge20.reg2mem = alloca %cmsghdr* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 store i64 0, i64* %sv_1, align 8 store i64 0, i64* %sv_0, align 8 %3 = ptrtoint i64* %sv_0 to i64 %4 = trunc i64 %arg2 to i32 %5 = bitcast i64* %sv_0 to %msghdr* %6 = call i32 @recvmsg(i32 %4, %msghdr* nonnull %5, i32 0) %7 = icmp slt i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_5, label LBL_1 LBL_1: %9 = call i32* @__errno_location() %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 4 br i1 %11, label LBL_2, label LBL_3 LBL_2: %12 = call i32 @recvmsg(i32 %4, %msghdr* nonnull %5, i32 0) %13 = icmp slt i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_5, label LBL_1 LBL_3: %15 = call i32* @__errno_location() %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 11 br i1 %17, label LBL_2, label LBL_4 LBL_4: %18 = call i32* @__errno_location() %19 = load i32, i32* %18, align 4 %20 = call i8* @strerror(i32 %19) %21 = ptrtoint i8* %20 to i64 %22 = ptrtoint i32* %arg1 to i64 %23 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %21, i64 %3, i64 %2, i64 %1) unreachable LBL_5: %24 = ptrtoint i64* %arg3 to i64 %25 = bitcast i64* %arg3 to i32* store i32 0, i32* %25, align 4 %26 = bitcast i64* %sv_1 to %cmsghdr* store %cmsghdr* %26, %cmsghdr** %storemerge20.reg2mem br label LBL_6 LBL_6: %storemerge20.reload = load %cmsghdr*, %cmsghdr** %storemerge20.reg2mem %27 = ptrtoint %cmsghdr* %storemerge20.reload to i64 %28 = add i64 %27, 8 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 1 %32 = icmp eq i1 %31, false br i1 %32, label LBL_9, label LBL_7 LBL_7: %33 = add i64 %27, 12 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = icmp eq i32 %35, 1 %37 = icmp eq i1 %36, false br i1 %37, label LBL_9, label LBL_8 LBL_8: %38 = bitcast %cmsghdr* %storemerge20.reload to i64* %39 = load i64, i64* %38, align 8 %40 = add i64 %39, -16 %41 = udiv i64 %40, 4 %42 = trunc i64 %41 to i32 store i32 %42, i32* %25, align 4 %43 = add i64 %27, 16 %44 = add i64 %24, 4 %45 = inttoptr i64 %44 to i64* %46 = inttoptr i64 %43 to i64* %47 = trunc i64 %40 to i32 %48 = call i64* @memcpy(i64* %45, i64* %46, i32 %47) br label LBL_10 LBL_9: %49 = call %cmsghdr* @__cmsg_nxthdr(%msghdr* nonnull %5, %cmsghdr* %storemerge20.reload) %50 = icmp eq %cmsghdr* %49, null %51 = icmp eq i1 %50, false store %cmsghdr* %49, %cmsghdr** %storemerge20.reg2mem br i1 %51, label LBL_6, label LBL_10 LBL_10: %52 = add i64 %24, 72 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = icmp ult i64 %54, 257 br i1 %55, label LBL_12, label LBL_11 LBL_11: %56 = add i64 %24, 336 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = zext i32 %58 to i64 %60 = ptrtoint i32* %arg1 to i64 %61 = call i64 @FUNC(i64 %60, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @gv_1, i64 0, i64 0), i64 %59, i64 %54, i64 256, i64 %1) unreachable LBL_12: %62 = icmp eq i64 %54, 0 br i1 %62, label LBL_21, label LBL_13 LBL_13: %63 = add i64 %24, 80 %64 = inttoptr i64 %63 to i64* %65 = trunc i64 %54 to i32 %66 = call i32 @read(i32 %4, i64* %64, i32 %65) %67 = icmp slt i32 %66, 0 %68 = icmp eq i1 %67, false store i32 %66, i32* %.reg2mem store i32 %66, i32* %.lcssa5.reg2mem store i1 true, i1* %.lcssa.reg2mem br i1 %68, label LBL_17, label LBL_14 LBL_14: %69 = call i32* @__errno_location() %70 = load i32, i32* %69, align 4 %71 = icmp eq i32 %70, 4 br i1 %71, label LBL_15, label LBL_16 LBL_15: %72 = load i64, i64* %53, align 8 %73 = trunc i64 %72 to i32 %74 = call i32 @read(i32 %4, i64* %64, i32 %73) %75 = icmp slt i32 %74, 0 %76 = icmp eq i1 %75, false store i32 %74, i32* %.reg2mem store i32 %74, i32* %.lcssa5.reg2mem store i1 true, i1* %.lcssa.reg2mem br i1 %76, label LBL_17, label LBL_14 LBL_16: %.reload = load i32, i32* %.reg2mem %77 = call i32* @__errno_location() %78 = load i32, i32* %77, align 4 %79 = icmp eq i32 %78, 11 store i32 %.reload, i32* %.lcssa5.reg2mem store i1 false, i1* %.lcssa.reg2mem br i1 %79, label LBL_15, label LBL_17 LBL_17: %.lcssa.reload = load i1, i1* %.lcssa.reg2mem %.lcssa5.reload = load i32, i32* %.lcssa5.reg2mem %80 = icmp eq i32 %.lcssa5.reload, 0 %81 = icmp eq i1 %80, false %82 = icmp eq i1 %.lcssa.reload, %81 br i1 %82, label LBL_19, label LBL_18 LBL_18: %83 = call i32* @__errno_location() %84 = load i32, i32* %83, align 4 %85 = call i8* @strerror(i32 %84) %86 = ptrtoint i8* %85 to i64 %87 = ptrtoint i32* %arg1 to i64 %88 = call i64 @FUNC(i64 %87, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %86, i64 %63, i64 %2, i64 %1) unreachable LBL_19: %89 = sext i32 %.lcssa5.reload to i64 %90 = load i64, i64* %53, align 8 %91 = icmp eq i64 %90, %89 br i1 %91, label LBL_21, label LBL_20 LBL_20: call void @__assert_fail(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_4, i64 0, i64 0), i32 85, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0)) br label LBL_21 LBL_21: ret i64 1 uselistorder i32 %.lcssa5.reload, { 1, 0 } uselistorder i64* %64, { 1, 0 } uselistorder i64 %40, { 1, 0 } uselistorder %cmsghdr* %storemerge20.reload, { 1, 2, 0 } uselistorder i64 %24, { 0, 2, 1, 3 } uselistorder %msghdr* %5, { 0, 2, 1 } uselistorder i32 %4, { 0, 1, 3, 2 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder %cmsghdr** %storemerge20.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i32 (i32, i64*, i32)* @read, { 1, 0 } uselistorder i64 4, { 2, 1, 0, 3 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @vu_panic, { 2, 1, 0 } uselistorder i8* (i32)* @strerror, { 1, 0 } uselistorder i32* ()* @__errno_location, { 3, 4, 5, 0, 1, 2 } uselistorder i1 false, { 3, 0, 4, 2, 7, 5, 6, 8, 1 } uselistorder i32 (i32, %msghdr*, i32)* @recvmsg, { 1, 0 } uselistorder i32* %arg1, { 2, 1, 0 } uselistorder label LBL_17, { 1, 0, 2 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_2, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
rx_queue_add_kobject_7340
rx_queue_add_kobject
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.in.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 28 %4 = add i64 %3, %2 %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = inttoptr i64 %4 to i64* store i64 %7, i64* %8, align 8 %9 = and i64 %arg2, 4294967295 %10 = call i64 @FUNC(i64 %4, i64* nonnull @gv_0, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %1) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 store i64 %10, i64* %rax.0.in.reg2mem br i1 %12, label LBL_1, label LBL_5 LBL_1: %13 = add i64 %4, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %15) %17 = add i64 %2, 16 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %19, 0 store i64 %10, i64* %sv_0.0.reg2mem br i1 %20, label LBL_4, label LBL_2 LBL_2: %21 = call i64 @FUNC(i64 %4, i64 %19) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i64 %21, i64* %sv_0.0.reg2mem br i1 %23, label LBL_4, label LBL_3 LBL_3: %24 = call i64 @FUNC(i64 %4) store i64 %21, i64* %rax.0.in.reg2mem br label LBL_5 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = call i64 @FUNC(i64 %4, i64 1) store i64 %sv_0.0.reload, i64* %rax.0.in.reg2mem br label LBL_5 LBL_5: %rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem %rax.0 = and i64 %rax.0.in.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %10, { 1, 0, 2 } uselistorder i64 %4, { 2, 0, 1, 3, 4, 5 } uselistorder i64 %2, { 1, 2, 0 } uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 2, 1 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0 } }
0
BinRealVul
sctp_auth_destroy_keys_9790
sctp_auth_destroy_keys
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false %spec.select = select i1 %4, i64 %1, i64 %0 ret i64 %spec.select }
0
BinRealVul
cardos_have_verifyrc_package_12950
cardos_have_verifyrc_package
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.05.reg2mem = alloca i64 %sv_1.06.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %3 = ptrtoint i64* %sv_5 to i64 store i64 0, i64* %sv_4, align 8 store i64 0, i64* %sv_3, align 8 %4 = call i64 @FUNC(i64 %2, i64* nonnull %sv_2, i64 0, i64 202, i64 1, i64 136) store i64 %3, i64* %sv_2, align 8 %5 = call i64 @FUNC(i64 %2, i64* nonnull %sv_2) %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = and i64 %5, 4294967295 %10 = call i64 @FUNC(i64 %8, i64 %9, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0)) %11 = trunc i64 %1 to i32 %12 = icmp eq i32 %11, 2 %13 = icmp eq i32 %11, 1 %14 = icmp eq i1 %13, false %15 = icmp eq i1 %12, false store i64 256, i64* %sv_1.06.reg2mem store i64 %3, i64* %sv_0.05.reg2mem br label LBL_1 LBL_1: %sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem %sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem %16 = load i64, i64* %7, align 8 %17 = call i64 @FUNC(i64 %16, i64 %sv_0.05.reload, i64 %sv_1.06.reload, i64 225, i64* nonnull %sv_4) %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_2, label LBL_9 LBL_2: br i1 %14, label LBL_5, label LBL_3 LBL_3: %20 = load i64, i64* %sv_4, align 8 %21 = load i64, i64* %7, align 8 %22 = call i64 @FUNC(i64 %21, i64 %17, i64 %20, i64 1, i64* nonnull %sv_3) %23 = icmp ne i64 %22, 0 %24 = load i64, i64* %sv_3, align 8 %25 = icmp eq i64 %24, 4 %or.cond = icmp eq i1 %23, %25 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_4, label LBL_9 LBL_4: %26 = inttoptr i64 %22 to i8* %27 = load i8, i8* %26, align 1 %28 = icmp eq i8 %27, 7 %29 = icmp eq i1 %28, false store i64 1, i64* %rax.0.reg2mem br i1 %29, label LBL_8, label LBL_9 LBL_5: store i64 0, i64* %rax.0.reg2mem br i1 %15, label LBL_9, label LBL_6 LBL_6: %30 = load i64, i64* %sv_4, align 8 %31 = load i64, i64* %7, align 8 %32 = call i64 @FUNC(i64 %31, i64 %17, i64 %30, i64 3, i64* nonnull %sv_3) %33 = icmp ne i64 %32, 0 %34 = load i64, i64* %sv_3, align 8 %35 = icmp eq i64 %34, 4 %or.cond4 = icmp eq i1 %33, %35 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond4, label LBL_7, label LBL_9 LBL_7: %36 = inttoptr i64 %32 to i8* %37 = load i8, i8* %36, align 1 %38 = icmp eq i8 %37, 2 %39 = icmp eq i1 %38, false store i64 1, i64* %rax.0.reg2mem br i1 %39, label LBL_8, label LBL_9 LBL_8: %40 = load i64, i64* %sv_4, align 8 %41 = add i64 %40, %17 %42 = add i64 %sv_1.06.reload, -2 %43 = sub i64 %42, %40 %44 = icmp eq i64 %43, 0 %45 = icmp eq i1 %44, false store i64 %43, i64* %sv_1.06.reg2mem store i64 %41, i64* %sv_0.05.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %45, label LBL_1, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %17, { 0, 2, 1, 3 } uselistorder i64* %7, { 1, 0, 2, 3 } uselistorder i64* %sv_4, { 1, 2, 3, 0, 4 } uselistorder i64* %sv_3, { 0, 2, 1, 3, 4 } uselistorder i64* %sv_2, { 0, 2, 1 } uselistorder i64* %sv_1.06.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.05.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5, 6, 7 } uselistorder i64 (i64, i64, i64, i64, i64*)* @sc_asn1_find_tag, { 2, 1, 0 } uselistorder i1 false, { 5, 0, 2, 4, 1, 3, 6 } uselistorder label LBL_9, { 0, 2, 3, 1, 4, 5, 6 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
do_sched_cfs_period_timer_12740
do_sched_cfs_period_timer
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, inttoptr (i64 -1 to i64*) store i64 1, i64* %rax.0.reg2mem br i1 %0, label LBL_9, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %1, 48 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = add i64 %1, 24 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = trunc i64 %arg2 to i32 %10 = add i32 %8, %9 store i32 %10, i32* %7, align 4 %11 = add i64 %1, 32 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = icmp ne i32 %13, 0 %15 = icmp eq i1 %5, false %or.cond = icmp eq i1 %15, %14 store i64 1, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_9, label LBL_2 LBL_2: %16 = call i64 @FUNC(i64 %1) %17 = icmp eq i1 %15, false br i1 %17, label LBL_4, label LBL_3 LBL_3: store i32 1, i32* %12, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_4: %18 = add i64 %1, 28 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i32 %20, %9 store i32 %21, i32* %19, align 4 %22 = add i64 %1, 16 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = add i64 %1, 8 %26 = inttoptr i64 %25 to i64* %27 = add i64 %1, 36 %28 = inttoptr i64 %27 to i32* %29 = add i64 %1, 40 br label LBL_6 LBL_5: store i32 1, i32* %28, align 4 %30 = call i64 @FUNC(i64 %29, i64 %arg3) %31 = call i64 @FUNC(i64 %1, i64 %38, i64 %24) %32 = call i64 @FUNC(i64 %29, i64 %arg3) store i32 0, i32* %28, align 4 %33 = call i64 @FUNC(i64 %2) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 %36 = call i64 @FUNC(i64 %25, i64 %31) %37 = icmp eq i1 %35, false br i1 %37, label LBL_8, label LBL_6 LBL_6: %38 = load i64, i64* %26, align 8 %39 = icmp eq i64 %38, 0 br i1 %39, label LBL_8, label LBL_7 LBL_7: %40 = load i32, i32* %28, align 4 %41 = icmp eq i32 %40, 0 br i1 %41, label LBL_5, label LBL_8 LBL_8: store i32 0, i32* %12, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %38, { 1, 0 } uselistorder i32* %28, { 2, 0, 1 } uselistorder i1 %15, { 1, 0 } uselistorder i32* %12, { 1, 0, 2 } uselistorder i64 %1, { 0, 1, 3, 2, 4, 5, 7, 6, 8, 9 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i1 false, { 0, 2, 1 } uselistorder i32 0, { 2, 3, 0, 1, 4, 5 } uselistorder i64 (i64)* @list_empty, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_9, { 2, 3, 1, 0 } uselistorder label LBL_8, { 2, 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
mallocAndJoin2Dir_12924
mallocAndJoin2Dir
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %rsi = alloca i64, align 8 %0 = inttoptr i64 %arg1 to i8* %1 = call i32 @strlen(i8* %0) %2 = inttoptr i64 %arg2 to i8* %3 = call i32 @strlen(i8* %2) %4 = icmp ne i64 %arg1, 0 %5 = icmp eq i64 %arg2, 0 %6 = icmp eq i1 %5, false %or.cond = icmp eq i1 %4, %6 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %7 = add i32 %1, 2 %8 = add i32 %7, %3 %9 = call i64* @malloc(i32 %8) %10 = icmp eq i64* %9, null %11 = icmp eq i1 %10, false br i1 %11, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %12 = ptrtoint i64* %9 to i64 %13 = inttoptr i64 %arg1 to i64* %14 = call i64* @memcpy(i64* %9, i64* %13, i32 %1) %15 = sext i32 %1 to i64 %16 = add i64 %12, %15 %17 = inttoptr i64 %16 to i8* store i8 0, i8* %17, align 1 %18 = bitcast i64* %rsi to i8* %19 = load i8, i8* %18, align 8 %20 = icmp eq i8 %19, 46 %21 = icmp eq i1 %20, false br i1 %21, label LBL_5, label LBL_8 LBL_5: %22 = add i64 %16, -1 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = icmp eq i8 %24, 47 store i64 %16, i64* %sv_0.0.reg2mem br i1 %25, label LBL_7, label LBL_6 LBL_6: store i8 47, i8* %17, align 1 %26 = add i64 %16, 1 store i64 %26, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %27 = inttoptr i64 %sv_0.0.reload to i64* %28 = inttoptr i64 %arg2 to i64* %29 = call i64* @memcpy(i64* %27, i64* %28, i32 %3) %30 = sext i32 %3 to i64 %31 = add i64 %sv_0.0.reload, %30 %32 = inttoptr i64 %31 to i8* store i8 0, i8* %32, align 1 br label LBL_8 LBL_8: ret i64 %12 uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64 %16, { 2, 0, 1, 3 } uselistorder i64 %12, { 1, 0 } uselistorder i64* %9, { 0, 2, 1 } uselistorder i32 %3, { 2, 1, 0 } uselistorder i32 %1, { 2, 1, 0 } uselistorder i8 47, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 1, { 1, 0 } uselistorder i64 %arg2, { 1, 0, 2 } uselistorder i64 %arg1, { 0, 2, 1 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
set_cpu_sd_state_idle_9515
set_cpu_sd_state_idle
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() %sext = mul i64 %arg1, 4294967296 %1 = ashr exact i64 %sext, 29 %2 = add i64 %1, ptrtoint (i64* @gv_0 to i64) %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4) %6 = icmp eq i64 %5, 0 br i1 %6, label LBL_3, label LBL_1 LBL_1: %7 = add i64 %5, 8 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_3, label LBL_2 LBL_2: store i32 1, i32* %8, align 4 %12 = inttoptr i64 %5 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13) br label LBL_3 LBL_3: %15 = call i64 @FUNC() ret i64 %15 uselistorder i32 1, { 3, 2, 1, 0 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
AppLayerProtoDetectSupportedAppProtocols_10382
AppLayerProtoDetectSupportedAppProtocols
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64* @memset(i64* %arg1, i32 0, i32 40) store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %3 = mul i64 %indvars.iv.reload, 8 %4 = add i64 %3, ptrtoint (i64* @gv_0 to i64) %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp eq i64 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = mul i64 %indvars.iv.reload, 4 %9 = add i64 %8, %0 %10 = inttoptr i64 %9 to i32* store i32 1, i32* %10, align 4 store i64 %9, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_1 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } }
0
BinRealVul
node_set_country_9972
node_set_country
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 store i64 0, i64* %sv_0, align 8 %1 = icmp eq i64* %arg1, null br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = and i64 %0, 4294967295 %3 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2) br label LBL_4 LBL_2: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp eq i64 %6, 0 br i1 %7, label LBL_4, label LBL_3 LBL_3: %8 = inttoptr i64 %6 to i32* %9 = load i32, i32* %8, align 4 %10 = zext i32 %9 to i64 %11 = call i64 @FUNC(i64* nonnull %sv_0, i64 %10) br label LBL_4 LBL_4: %12 = call i64 @FUNC(i64* nonnull %sv_0) %13 = add i64 %0, 16 %14 = inttoptr i64 %13 to i64* store i64 %12, i64* %14, align 8 ret i64 %12 uselistorder i64 %12, { 1, 0 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64 (i64*, i64)* @tor_addr_from_ipv4h, { 1, 0 } }
0
BinRealVul
kvm_set_user_memory_region_3350
kvm_set_user_memory_region
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i32, align 4 %3 = trunc i64 %1 to i32 store i32 %3, i32* %sv_0, align 4 %4 = add i64 %2, 24 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = add i64 %2, 32 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = icmp eq i64 %9, 0 %11 = and i32 %6, 2 %12 = icmp eq i32 %11, 0 %or.cond = or i1 %10, %12 %.pre = ptrtoint i32* %arg1 to i64 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64 %.pre, i64 0, i32* nonnull %sv_0) br label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %.pre, i64 0, i32* nonnull %sv_0) ret i64 %14 uselistorder i64 (i64, i64, i32*)* @kvm_vm_ioctl, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
format_timestamp_9893
format_timestamp
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = icmp ugt i32 %0, -16777217 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = urem i32 %0, 16777216 %4 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* bitcast (i8** @gv_0 to i8*), i32 32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i32 %3) br label LBL_3 LBL_2: %5 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* bitcast (i8** @gv_0 to i8*), i32 32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i32 %0) br label LBL_3 LBL_3: ret i64 ptrtoint (i8** @gv_0 to i64) uselistorder i32 %0, { 1, 0, 2 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 } uselistorder i8** @gv_0, { 1, 0 } }
0
BinRealVul
pl080_class_init_2419
pl080_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = bitcast i64* %arg1 to i8* store i8 1, i8* %1, align 1 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %3, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0 } }
0
BinRealVul
fd_revalidate_14643
fd_revalidate
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i64, i64* %0 %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1) %8 = call i64 @FUNC(i64 ptrtoint ([12 x i8]* @gv_0 to i64)) %9 = trunc i64 %8 to i8 %10 = add i64 %6, 8 %11 = inttoptr i64 %10 to i8* store i8 %9, i8* %11, align 1 %12 = call i64 @FUNC(i64 ptrtoint ([12 x i8]* @gv_0 to i64)) %13 = trunc i64 %12 to i8 %14 = icmp eq i8 %13, 1 br i1 %14, label LBL_2, label LBL_1 LBL_1: %15 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %6, i64 %5, i64 %2, i64 %1) %16 = add i64 %6, 28 %17 = inttoptr i64 %16 to i32* store i32 0, i32* %17, align 4 store i64 %6, i64* %rax.0.reg2mem br label LBL_6 LBL_2: %18 = add i64 %6, 9 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = icmp eq i8 %20, 1 store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_6, label LBL_3 LBL_3: %22 = call i64 @FUNC(i64 %6) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %6, i64 %5, i64 %2, i64 %1) store i64 %25, i64* %rax.0.reg2mem br label LBL_6 LBL_5: store i8 1, i8* %19, align 1 %26 = load i8, i8* %11, align 1 %27 = icmp eq i8 %26, 0 %. = select i1 %27, i64 ptrtoint ([3 x i8]* @gv_3 to i64), i64 ptrtoint ([3 x i8]* @gv_4 to i64) %28 = add i64 %6, 16 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = zext i32 %30 to i64 %32 = add i64 %6, 12 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = zext i32 %34 to i64 %36 = add i64 %6, 20 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = urem i32 %38, 2 %40 = icmp eq i32 %39, 0 %storemerge = select i1 %40, i64 1, i64 2 %41 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_5, i64 0, i64 0), i64 %storemerge, i64 %35, i64 %31, i64 %., i64 %1) store i64 %41, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %6, { 4, 6, 5, 3, 7, 8, 0, 1, 2, 9 } uselistorder i64 %5, { 2, 1, 0 } uselistorder i64 %3, { 1, 2, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i8 1, { 2, 0, 1 } uselistorder i64 ptrtoint ([12 x i8]* @gv_0 to i64), { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @FLOPPY_DPRINTF, { 3, 2, 1, 0 } uselistorder [12 x i8]* @gv_0, { 1, 0 } }
1
BinRealVul
aux_bus_map_device_1248
aux_bus_map_device
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %arg3, i64 %0) ret i64 %2 }
0
BinRealVul
ftrace_regex_lseek_18939
ftrace_regex_lseek
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = urem i64 %1, 2 %4 = icmp eq i64 %3, 0 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = trunc i64 %arg3 to i32 %6 = call i64 @FUNC(i64 %2, i64 %arg2, i32 %5) store i64 %6, i64* %sv_0.0.reg2mem br label LBL_3 LBL_2: %7 = add i64 %2, 8 %8 = inttoptr i64 %7 to i64* store i64 1, i64* %8, align 8 store i64 1, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64 %2, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } }
1
BinRealVul
bt_sock_register_9015
bt_sock_register
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = icmp ult i32 %0, 256 store i64 4294967274, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_4 LBL_1: %sext = mul i64 %arg1, 4294967296 %2 = call i64 @FUNC(i64* nonnull @gv_0) %3 = ashr exact i64 %sext, 29 %4 = add i64 %3, ptrtoint (i64* @gv_1 to i64) %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp eq i64 %6, 0 store i64 4294967279, i64* %sv_0.0.reg2mem br i1 %7, label LBL_2, label LBL_3 LBL_2: %8 = ptrtoint i64* %arg2 to i64 store i64 %8, i64* %5, align 8 store i64 0, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %9 = call i64 @FUNC(i64* nonnull @gv_0) store i64 %sv_0.0.reload, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
asf_read_metadata_3832
asf_read_metadata
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8*, align 8 %sv_1 = alloca i64, align 8 store i64 %arg2, i64* %sv_1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %0) %5 = trunc i64 %4 to i32 %6 = icmp sgt i32 %5, 0 store i64 0, i64* %storemerge.reg2mem br i1 %6, label LBL_1, label LBL_13 LBL_1: %7 = ptrtoint i64* %sv_1 to i64 %8 = add i64 %7, -16 %9 = inttoptr i64 %8 to i64* %10 = add i64 %7, -24 %11 = inttoptr i64 %10 to i64* %12 = add i64 %7, -32 %13 = inttoptr i64 %12 to i64* %14 = add i64 %3, 4 %15 = bitcast i8** %sv_0 to i64* %sext7 = mul i64 %4, 4294967296 %16 = ashr exact i64 %sext7, 32 store i64 0, i64* %indvars.iv.reg2mem br label LBL_2 LBL_2: %17 = call i64 @FUNC(i64 %0) %18 = call i64 @FUNC(i64 %0) %19 = call i64 @FUNC(i64 %0) %20 = trunc i64 %19 to i32 %21 = call i64 @FUNC(i64 %0) %22 = call i64 @FUNC(i64 %0) %23 = mul i32 %20, 2 %24 = or i32 %23, 1 %25 = zext i32 %24 to i64 %26 = call i64 @FUNC(i64 %25) %sext = mul i64 %26, 4294967296 %27 = ashr exact i64 %sext, 32 %28 = inttoptr i64 %27 to i8* store i8* %28, i8** %sv_0, align 8 %29 = icmp eq i64 %sext, 0 %30 = icmp eq i1 %29, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %30, label LBL_3, label LBL_13 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %31 = call i64 @FUNC(i64 %0, i32 %20, i64 %27, i32 %24) %32 = trunc i64 %31 to i32 %33 = icmp sgt i32 %20, %32 br i1 %33, label LBL_4, label LBL_5 LBL_4: %34 = sub i64 %19, %31 %35 = and i64 %34, 4294967295 %36 = call i64 @FUNC(i64 %0, i64 %35) br label LBL_5 LBL_5: %37 = trunc i64 %18 to i32 %38 = load i8*, i8** %sv_0, align 8 %39 = ptrtoint i8* %38 to i64 store i64 %39, i64* %9, align 8 %40 = and i64 %22, 4294967295 store i64 %40, i64* %11, align 8 %41 = and i64 %21, 4294967295 store i64 %41, i64* %13, align 8 %42 = and i64 %19, 4294967295 %43 = and i64 %18, 4294967295 %44 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_0, i64 0, i64 0), i64 %indvars.iv.reload, i64 %43, i64 %42) %45 = load i8*, i8** %sv_0, align 8 %46 = call i32 @strcmp(i8* %45, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0)) %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false br i1 %48, label LBL_8, label LBL_6 LBL_6: %49 = ptrtoint i8* %45 to i64 %50 = call i64 @FUNC(i64 %49, i64 %41, i64 16) %51 = icmp sgt i32 %37, 127 br i1 %51, label LBL_12, label LBL_7 LBL_7: %52 = trunc i64 %50 to i32 %sext3 = mul i64 %18, 4294967296 %53 = ashr exact i64 %sext3, 29 %54 = add i64 %53, %3 %55 = inttoptr i64 %54 to i32* store i32 %52, i32* %55, align 4 br label LBL_12 LBL_8: %56 = load i8*, i8** %sv_0, align 8 %57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0)) %58 = icmp eq i32 %57, 0 %59 = icmp eq i1 %58, false br i1 %59, label LBL_11, label LBL_9 LBL_9: %60 = ptrtoint i8* %56 to i64 %61 = call i64 @FUNC(i64 %60, i64 %41, i64 16) %62 = icmp sgt i32 %37, 127 br i1 %62, label LBL_12, label LBL_10 LBL_10: %63 = trunc i64 %61 to i32 %sext4 = mul i64 %18, 4294967296 %64 = ashr exact i64 %sext4, 29 %65 = add i64 %14, %64 %66 = inttoptr i64 %65 to i32* store i32 %63, i32* %66, align 4 br label LBL_12 LBL_11: %67 = trunc i64 %21 to i32 %68 = trunc i64 %22 to i32 %69 = load i8*, i8** %sv_0, align 8 %70 = ptrtoint i8* %69 to i64 %71 = call i64 @FUNC(i64 %0, i64 %70, i32 %67, i32 %68, i64 16) br label LBL_12 LBL_12: %72 = call i64 @FUNC(i64* nonnull %15) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %73 = icmp slt i64 %indvars.iv.next, %16 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %73, label LBL_2, label LBL_13 LBL_13: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8* %56, { 1, 0 } uselistorder i8* %45, { 1, 0 } uselistorder i64 %41, { 1, 0, 2 } uselistorder i32 %37, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i32 %24, { 1, 0 } uselistorder i64 %22, { 1, 0 } uselistorder i64 %21, { 1, 0 } uselistorder i32 %20, { 2, 1, 0 } uselistorder i64 %19, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i8** %sv_0, { 4, 3, 2, 1, 0, 5 } uselistorder i64 %0, { 0, 1, 2, 3, 5, 4, 8, 7, 6, 9, 10 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64, i64)* @get_value, { 1, 0 } uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 } uselistorder i64 4294967295, { 1, 2, 3, 4, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64 (i64)* @avio_rl16, { 4, 3, 2, 1, 0 } uselistorder label LBL_13, { 1, 0, 2 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
decode_stream_header_7557
decode_stream_header
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %3, 16 %5 = call i64 @FUNC(i64 %3, i64 %4, i64 1) %6 = call i64 @FUNC(i64 %4) %7 = inttoptr i64 %4 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %sext = mul i64 %6, 4294967296 %10 = ashr exact i64 %sext, 32 %11 = icmp slt i64 %10, %9 store i64 4294967295, i64* %rax.0.reg2mem br i1 %11, label LBL_1, label LBL_19 LBL_1: %12 = ashr exact i64 %sext, 29 %13 = add i64 %12, %4 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %16, label LBL_2, label LBL_19 LBL_2: %17 = and i64 %6, 4294967295 %18 = call i64 @FUNC(i64 %3, i64 %17) %19 = icmp eq i64 %18, 0 %20 = icmp eq i1 %19, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %20, label LBL_3, label LBL_19 LBL_3: %21 = inttoptr i64 %18 to i32* %22 = call i64 @FUNC(i64 %4) %23 = trunc i64 %22 to i32 %24 = call i64 @FUNC(i64 %4) %25 = add i64 %18, 8 %26 = inttoptr i64 %25 to i64* store i64 %24, i64* %26, align 8 switch i32 %23, label LBL_8 [ i32 0, label LBL_4 i32 32, label LBL_6 ] LBL_4: store i32 0, i32* %21, align 4 %27 = call i64 @FUNC(i64 %24) %28 = trunc i64 %27 to i32 %29 = add i64 %18, 4 %30 = inttoptr i64 %29 to i32* store i32 %28, i32* %30, align 4 %31 = icmp eq i32 %28, -1 %32 = icmp eq i1 %31, false br i1 %32, label LBL_9, label LBL_5 LBL_5: %33 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) br label LBL_9 LBL_6: store i32 1, i32* %21, align 4 %34 = call i64 @FUNC(i64 %24) %35 = trunc i64 %34 to i32 %36 = add i64 %18, 4 %37 = inttoptr i64 %36 to i32* store i32 %35, i32* %37, align 4 %38 = icmp eq i32 %35, -1 %39 = icmp eq i1 %38, false br i1 %39, label LBL_9, label LBL_7 LBL_7: %40 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) br label LBL_9 LBL_8: %41 = and i64 %22, 4294967295 %42 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %41, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_19 LBL_9: %43 = call i64 @FUNC(i64 %4) %44 = trunc i64 %43 to i32 %45 = add i64 %3, 8 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = add i32 %47, %44 store i32 %48, i32* %46, align 4 %49 = call i64 @FUNC(i64 %4) %50 = call i64 @FUNC(i64 %4) %51 = call i64 @FUNC(i64 %4) %52 = inttoptr i64 %45 to i64* %53 = load i64, i64* %52, align 8 %54 = ashr exact i64 %sext, 28 %55 = add i64 %53, %54 %56 = call i64 @FUNC(i64 %4) %57 = trunc i64 %56 to i32 %58 = inttoptr i64 %55 to i32* store i32 %57, i32* %58, align 4 %59 = load i64, i64* %52, align 8 %60 = call i64 @FUNC(i64 %4) %61 = trunc i64 %60 to i32 %62 = or i64 %54, 4 %63 = add i64 %59, %62 %64 = inttoptr i64 %63 to i32* store i32 %61, i32* %64, align 4 %65 = call i64 @FUNC(i64 %4) %66 = call i64 @FUNC(i64 %4) %67 = trunc i64 %66 to i32 %68 = icmp eq i32 %67, 0 %69 = icmp eq i1 %68, false br i1 %69, label LBL_10, label LBL_12 LBL_10: %70 = add i64 %18, 16 %71 = inttoptr i64 %70 to i32* %72 = add i64 %18, 24 %73 = inttoptr i64 %72 to i64* br label LBL_11 LBL_11: %74 = call i64 @FUNC(i64 %4) %75 = trunc i64 %74 to i32 store i32 %75, i32* %71, align 4 %sext8 = mul i64 %74, 4294967296 %76 = ashr exact i64 %sext8, 32 %77 = call i64 @FUNC(i64 %76) store i64 %77, i64* %73, align 8 %78 = load i32, i32* %71, align 4 %79 = call i64 @FUNC(i64 %4, i64 %77, i32 %78) %80 = call i64 @FUNC(i64 %4) %81 = trunc i64 %80 to i32 %82 = icmp eq i32 %81, 0 %83 = icmp eq i1 %82, false br i1 %83, label LBL_11, label LBL_12 LBL_12: %84 = trunc i64 %50 to i32 %85 = trunc i64 %51 to i32 %86 = icmp eq i32 %23, 0 %87 = icmp eq i1 %86, false br i1 %87, label LBL_14, label LBL_13 LBL_13: %88 = call i64 @FUNC(i64 %4) %89 = trunc i64 %88 to i32 %90 = add i64 %18, 32 %91 = inttoptr i64 %90 to i32* store i32 %89, i32* %91, align 4 %92 = call i64 @FUNC(i64 %4) %93 = trunc i64 %92 to i32 %94 = add i64 %18, 36 %95 = inttoptr i64 %94 to i32* store i32 %93, i32* %95, align 4 %96 = call i64 @FUNC(i64 %4) %97 = trunc i64 %96 to i32 %98 = add i64 %18, 40 %99 = inttoptr i64 %98 to i32* store i32 %97, i32* %99, align 4 %100 = call i64 @FUNC(i64 %4) %101 = trunc i64 %100 to i32 %102 = add i64 %18, 44 %103 = inttoptr i64 %102 to i32* store i32 %101, i32* %103, align 4 %104 = call i64 @FUNC(i64 %4) %105 = add i64 %18, 48 %106 = inttoptr i64 %105 to i32* store i32 %84, i32* %106, align 4 %107 = add i64 %18, 52 %108 = inttoptr i64 %107 to i32* store i32 %85, i32* %108, align 4 br label LBL_14 LBL_14: %109 = icmp eq i32 %23, 32 %110 = icmp eq i1 %109, false br i1 %110, label LBL_16, label LBL_15 LBL_15: %111 = call i64 @FUNC(i64 %4) %112 = trunc i64 %111 to i32 %113 = add i64 %18, 56 %114 = inttoptr i64 %113 to i32* store i32 %112, i32* %114, align 4 %115 = call i64 @FUNC(i64 %4) %116 = call i64 @FUNC(i64 %4) %117 = trunc i64 %116 to i32 %118 = add i64 %18, 60 %119 = inttoptr i64 %118 to i32* store i32 %117, i32* %119, align 4 br label LBL_16 LBL_16: %120 = call i64 @FUNC(i64 %4) %121 = trunc i64 %120 to i32 %122 = icmp eq i32 %121, 0 br i1 %122, label LBL_18, label LBL_17 LBL_17: %123 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %17, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_19 LBL_18: %124 = load i64, i64* %14, align 8 %125 = call i64 @FUNC(i64 %124, i64 60, i32 %85, i32 %84) %126 = load i64, i64* %52, align 8 %127 = or i64 %54, 8 %128 = add i64 %126, %127 %129 = inttoptr i64 %128 to i32* store i32 %84, i32* %129, align 4 %130 = load i64, i64* %52, align 8 %131 = or i64 %54, 12 %132 = add i64 %130, %131 %133 = inttoptr i64 %132 to i32* store i32 %85, i32* %133, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %85, { 1, 2, 0 } uselistorder i32 %84, { 1, 2, 0 } uselistorder i64 %54, { 1, 2, 3, 0 } uselistorder i32 %23, { 1, 2, 0 } uselistorder i64 %18, { 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 11, 0, 12, 13, 14 } uselistorder i64 %sext, { 2, 1, 0 } uselistorder i64 %6, { 1, 0 } uselistorder i64 %4, { 12, 9, 10, 11, 4, 5, 6, 7, 8, 15, 13, 14, 1, 16, 17, 18, 19, 20, 21, 22, 2, 3, 23, 24, 0, 25, 26, 27 } uselistorder i64 %3, { 3, 4, 0, 1, 2, 5, 6, 7 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 1, 2, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 } uselistorder i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i32 32, { 1, 0 } uselistorder i32 0, { 2, 3, 4, 0, 5, 1 } uselistorder i64 (i64)* @get_vb, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 0, 4, 5, 6 } uselistorder i64 32, { 2, 0, 1 } uselistorder i64 (i64)* @get_v, { 17, 16, 15, 13, 12, 11, 10, 9, 8, 14, 0, 7, 6, 5, 4, 3, 2, 1 } uselistorder i64 16, { 0, 4, 1, 2, 3, 5 } uselistorder label LBL_19, { 3, 4, 5, 0, 1, 2 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_9, { 1, 0, 3, 2 } }
1
BinRealVul
usb_bt_handle_data_2964
usb_bt_handle_data
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %2, label LBL_11, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %1 to i32 store i64 4294967295, i64* %sv_0.0.reg2mem switch i32 %4, label LBL_11 [ i32 1, label LBL_2 i32 2, label LBL_8 ] LBL_2: %5 = ptrtoint i32* %arg2 to i64 %6 = add i64 %5, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = urem i32 %8, 16 %10 = icmp eq i32 %9, 3 br i1 %10, label LBL_7, label LBL_3 LBL_3: %11 = icmp ugt i32 %9, 3 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %11, label LBL_11, label LBL_4 LBL_4: store i64 4294967295, i64* %sv_0.0.reg2mem switch i32 %9, label LBL_11 [ i32 1, label LBL_5 i32 2, label LBL_6 ] LBL_5: %12 = add i64 %3, 8 %13 = call i64 @FUNC(i64 %12, i64 %5) store i64 %13, i64* %sv_0.0.reg2mem br label LBL_11 LBL_6: %14 = add i64 %3, 16 %15 = call i64 @FUNC(i64 %14, i64 %5) store i64 %15, i64* %sv_0.0.reg2mem br label LBL_11 LBL_7: %16 = add i64 %3, 24 %17 = call i64 @FUNC(i64 %16, i64 %5) store i64 %17, i64* %sv_0.0.reg2mem br label LBL_11 LBL_8: %18 = ptrtoint i32* %arg2 to i64 %19 = add i64 %18, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = urem i32 %21, 16 store i64 4294967295, i64* %sv_0.0.reg2mem switch i32 %22, label LBL_11 [ i32 2, label LBL_9 i32 3, label LBL_10 ] LBL_9: %23 = add i64 %3, 48 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = add i64 %3, 32 %29 = call i64 @FUNC(i64 %3, i64 %28, i64 %27, i64 4198772, i64 %18) store i64 0, i64* %sv_0.0.reg2mem br label LBL_11 LBL_10: %30 = add i64 %3, 48 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = add i64 %32, 8 %34 = inttoptr i64 %33 to i64* %35 = load i64, i64* %34, align 8 %36 = add i64 %3, 40 %37 = call i64 @FUNC(i64 %3, i64 %36, i64 %35, i64 4198779, i64 %18) store i64 0, i64* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %38 = and i64 %sv_0.0.reload, 4294967295 ret i64 %38 uselistorder i32 %9, { 2, 1, 0 } uselistorder i64 %5, { 2, 0, 1, 3 } uselistorder i64 %3, { 1, 2, 0, 5, 4, 3, 8, 6, 7 } uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 7, 5, 10, 8, 9, 4, 2, 3, 1 } uselistorder i64 (i64, i64, i64, i64, i64)* @usb_bt_fifo_out_enqueue, { 1, 0 } uselistorder i64 (i64, i64)* @usb_bt_fifo_dequeue, { 2, 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_11, { 6, 5, 4, 9, 8, 7, 3, 1, 2, 0 } }
0
BinRealVul
vmxnet_tx_pkt_parse_headers_7873
vmxnet_tx_pkt_parse_headers
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %rdi.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 85, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([4 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem br label LBL_2 LBL_2: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %3 = add i64 %0, 40 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %0, 32 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %8, i64 %5, i64 0, i64 %rdi.0.reload, i64 1500) %10 = icmp ult i64 %9, 2 %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* br i1 %10, label LBL_3, label LBL_4 LBL_3: store i64 0, i64* %12, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_4: store i64 2, i64* %12, align 8 %13 = call i64 @FUNC(i64 %8) %14 = inttoptr i64 %13 to i16* %15 = load i16, i16* %14, align 2 %16 = zext i16 %15 to i64 %17 = call i64 @FUNC(i64 %16) %18 = load i64, i64* %12, align 8 %19 = icmp ult i64 %9, %18 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_5 LBL_5: store i64 0, i64* %12, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_6: %21 = add i64 %0, 16 %22 = call i64 @FUNC(i64 %16, i64 %18) %trunc = trunc i64 %22 to i16 switch i16 %trunc, label LBL_16 [ i16 2048, label LBL_7 i16 -31011, label LBL_11 ] LBL_7: %23 = call i64 @FUNC(i64 60) %24 = inttoptr i64 %21 to i64* store i64 %23, i64* %24, align 8 %25 = load i64, i64* %12, align 8 %26 = load i64, i64* %4, align 8 %27 = load i64, i64* %7, align 8 %28 = call i64 @FUNC(i64 %27, i64 %26, i64 %25, i64 %23, i64 1) %29 = icmp eq i64 %28, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_9, label LBL_8 LBL_8: %31 = add i64 %0, 24 %32 = inttoptr i64 %31 to i64* store i64 0, i64* %32, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_9: %33 = load i64, i64* %24, align 8 %34 = call i64 @FUNC(i64 %33) %35 = urem i64 %34, 256 %36 = add i64 %0, 24 %37 = inttoptr i64 %36 to i64* store i64 %35, i64* %37, align 8 %38 = load i64, i64* %24, align 8 %39 = inttoptr i64 %38 to i8* %40 = load i8, i8* %39, align 1 %41 = add i64 %0, 48 %42 = inttoptr i64 %41 to i8* store i8 %40, i8* %42, align 1 %43 = load i64, i64* %37, align 8 %44 = add i64 %43, -1 %45 = load i64, i64* %24, align 8 %46 = add i64 %45, 1 %47 = load i64, i64* %12, align 8 %48 = add i64 %47, 1 %49 = load i64, i64* %4, align 8 %50 = load i64, i64* %7, align 8 %51 = call i64 @FUNC(i64 %50, i64 %49, i64 %48, i64 %46, i64 %44) %52 = load i64, i64* %37, align 8 %53 = add i64 %52, -1 %54 = icmp ult i64 %51, %53 %55 = icmp eq i1 %54, false br i1 %55, label LBL_17, label LBL_10 LBL_10: store i64 0, i64* %37, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_11: %56 = add i64 %0, 48 %57 = load i64, i64* %12, align 8 %58 = load i64, i64* %4, align 8 %59 = load i64, i64* %7, align 8 %60 = call i64 @FUNC(i64 %59, i64 %58, i64 %57, i64 %56, i64* nonnull %sv_0) %61 = trunc i64 %60 to i8 %62 = icmp eq i8 %61, 1 br i1 %62, label LBL_13, label LBL_12 LBL_12: %63 = add i64 %0, 24 %64 = inttoptr i64 %63 to i64* store i64 0, i64* %64, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_13: %65 = load i64, i64* %sv_0, align 8 %66 = call i64 @FUNC(i64 %65) %67 = inttoptr i64 %21 to i64* store i64 %66, i64* %67, align 8 %68 = load i64, i64* %sv_0, align 8 %69 = load i64, i64* %12, align 8 %70 = load i64, i64* %4, align 8 %71 = load i64, i64* %7, align 8 %72 = call i64 @FUNC(i64 %71, i64 %70, i64 %69, i64 %66, i64 %68) %73 = load i64, i64* %sv_0, align 8 %74 = icmp ult i64 %72, %73 %75 = icmp eq i1 %74, false %76 = add i64 %0, 24 %77 = inttoptr i64 %76 to i64* br i1 %75, label LBL_15, label LBL_14 LBL_14: store i64 0, i64* %77, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_15: store i64 %73, i64* %77, align 8 br label LBL_17 LBL_16: %78 = add i64 %0, 24 %79 = inttoptr i64 %78 to i64* store i64 0, i64* %79, align 8 br label LBL_17 LBL_17: %80 = call i64 @FUNC(i64 %0) %81 = call i64 @FUNC(i64 %0) %82 = trunc i64 %81 to i32 %83 = add i64 %0, 52 %84 = inttoptr i64 %83 to i32* store i32 %82, i32* %84, align 4 store i64 1, i64* %rax.0.reg2mem br label LBL_18 LBL_18: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %77, { 1, 0 } uselistorder i64* %37, { 1, 0, 2, 3 } uselistorder i64* %12, { 0, 1, 2, 3, 5, 4, 6, 7 } uselistorder i64* %sv_0, { 1, 2, 3, 0 } uselistorder i64 %0, { 9, 8, 7, 5, 3, 4, 6, 10, 1, 2, 13, 11, 12, 14, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 3, 2, 5, 4, 1, 7 } uselistorder i64 256, { 1, 0, 3, 2 } uselistorder i64 24, { 4, 2, 3, 0, 1 } uselistorder i64 1, { 0, 4, 5, 3, 1, 2 } uselistorder i64 (i64)* @g_malloc, { 1, 0 } uselistorder i64 2, { 1, 0 } uselistorder i64 (i64, i64, i64, i64, i64)* @iov_to_buf, { 3, 2, 1, 0 } uselistorder [4 x i8]* @gv_0, { 1, 0 } uselistorder label LBL_17, { 1, 2, 0 } }
1
BinRealVul
parserule_19137
parserule
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.ph4.lcssa35.reg2mem = alloca i8 %sv_1.0.lcssa36.reg2mem = alloca i8 %sv_1.0.lcssa.reg2mem = alloca i8 %sv_0.0.ph4.lcssa.reg2mem = alloca i8 %sv_0.0.ph415.reg2mem = alloca i8 %sv_1.0.ph516.reg2mem = alloca i8 %sv_1.09.reg2mem = alloca i8 %sv_2.0.ph23.reg2mem = alloca i32 %sv_0.0.ph24.reg2mem = alloca i8 %sv_1.0.ph25.reg2mem = alloca i8 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_3 = alloca i64, align 8 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %1) %5 = call i64 @FUNC(i64 %1) %6 = trunc i64 %5 to i8 %7 = icmp eq i8 %6, 0 %8 = icmp eq i1 %7, false store i8 0, i8* %sv_1.0.ph25.reg2mem store i8 0, i8* %sv_0.0.ph24.reg2mem store i32 0, i32* %sv_2.0.ph23.reg2mem br i1 %8, label LBL_2, label LBL_9 LBL_1: %9 = call i64 @FUNC(i64 %1) %10 = trunc i64 %9 to i8 %11 = icmp eq i8 %10, 0 %12 = icmp eq i1 %11, false store i8 %sv_1.09.reload, i8* %sv_1.0.ph25.reg2mem store i8 %sv_0.0.ph415.reload, i8* %sv_0.0.ph24.reg2mem store i32 1, i32* %sv_2.0.ph23.reg2mem store i8 %sv_1.09.reload, i8* %sv_1.0.lcssa36.reg2mem store i8 %sv_0.0.ph415.reload, i8* %sv_0.0.ph4.lcssa35.reg2mem br i1 %12, label LBL_2, label LBL_10 LBL_2: %sv_2.0.ph23.reload = load i32, i32* %sv_2.0.ph23.reg2mem %sv_0.0.ph24.reload = load i8, i8* %sv_0.0.ph24.reg2mem %sv_1.0.ph25.reload = load i8, i8* %sv_1.0.ph25.reg2mem store i8 %sv_1.0.ph25.reload, i8* %sv_1.0.ph516.reg2mem store i8 %sv_0.0.ph24.reload, i8* %sv_0.0.ph415.reg2mem br label LBL_3.lr.ph LBL_3: %sv_1.09.reload = load i8, i8* %sv_1.09.reg2mem %13 = call i64 @FUNC(i64 %1) %14 = inttoptr i64 %13 to i8* %15 = call i64 @FUNC(i64 %1, i64* nonnull %sv_3) %16 = load i64, i64* %sv_3, align 8 %17 = call i64 @FUNC(i64 %3, i64 %13, i64 %16) %18 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0)) %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_4, label LBL_1 LBL_4: %21 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0)) %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_7, label LBL_5 LBL_5: %24 = call i64 @FUNC(i64 %1) %25 = trunc i64 %24 to i8 %26 = icmp eq i8 %25, 0 %27 = icmp eq i1 %26, false store i8 %sv_1.09.reload, i8* %sv_1.0.ph516.reg2mem store i8 1, i8* %sv_0.0.ph415.reg2mem store i8 1, i8* %sv_0.0.ph4.lcssa.reg2mem store i8 %sv_1.09.reload, i8* %sv_1.0.lcssa.reg2mem br i1 %27, label LBL_3.lr.ph, label LBL_8 LBL_6: %sv_0.0.ph415.reload = load i8, i8* %sv_0.0.ph415.reg2mem %sv_1.0.ph516.reload = load i8, i8* %sv_1.0.ph516.reg2mem store i8 %sv_1.0.ph516.reload, i8* %sv_1.09.reg2mem br label LBL_3 LBL_7: %28 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) %29 = icmp eq i32 %28, 0 %30 = icmp eq i1 %29, false %spec.select = select i1 %30, i8 %sv_1.09.reload, i8 1 %31 = call i64 @FUNC(i64 %1) %32 = trunc i64 %31 to i8 %33 = icmp eq i8 %32, 0 %34 = icmp eq i1 %33, false store i8 %spec.select, i8* %sv_1.09.reg2mem store i8 %sv_0.0.ph415.reload, i8* %sv_0.0.ph4.lcssa.reg2mem store i8 %spec.select, i8* %sv_1.0.lcssa.reg2mem br i1 %34, label LBL_3, label LBL_8 LBL_8: %sv_1.0.lcssa.reload = load i8, i8* %sv_1.0.lcssa.reg2mem %sv_0.0.ph4.lcssa.reload = load i8, i8* %sv_0.0.ph4.lcssa.reg2mem %35 = icmp eq i32 %sv_2.0.ph23.reload, 1 store i8 %sv_1.0.lcssa.reload, i8* %sv_1.0.lcssa36.reg2mem store i8 %sv_0.0.ph4.lcssa.reload, i8* %sv_0.0.ph4.lcssa35.reg2mem br i1 %35, label LBL_10, label LBL_9 LBL_9: %36 = inttoptr i64 %3 to i64* %37 = load i64, i64* %36, align 8 %38 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %37) unreachable LBL_10: %sv_0.0.ph4.lcssa35.reload = load i8, i8* %sv_0.0.ph4.lcssa35.reg2mem %sv_1.0.lcssa36.reload = load i8, i8* %sv_1.0.lcssa36.reg2mem %39 = icmp eq i8 %sv_0.0.ph4.lcssa35.reload, %sv_1.0.lcssa36.reload br i1 %39, label LBL_12, label LBL_11 LBL_11: %40 = inttoptr i64 %3 to i64* %41 = load i64, i64* %40, align 8 %42 = call i64 @FUNC(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_4, i64 0, i64 0), i64 %41) unreachable LBL_12: %43 = call i64 @FUNC(i64 %0, i64 %3) ret i64 %43 uselistorder i8 %sv_0.0.ph415.reload, { 1, 2, 0 } uselistorder i64 %13, { 1, 0 } uselistorder i8 %sv_1.09.reload, { 3, 1, 2, 4, 0 } uselistorder i64 %3, { 1, 2, 0, 3 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i64 %1, { 5, 2, 4, 3, 1, 0, 6, 7 } uselistorder i8* %sv_1.0.ph25.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_0.0.ph24.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_2.0.ph23.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_1.09.reg2mem, { 1, 2, 0 } uselistorder i8* %sv_0.0.ph4.lcssa.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_1.0.lcssa36.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_0.0.ph4.lcssa35.reg2mem, { 0, 2, 1 } uselistorder i64 (i8*, i64)* @fatal, { 1, 0 } uselistorder i8 1, { 2, 0, 1 } uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder i1 false, { 6, 3, 2, 4, 5, 1, 0 } uselistorder i8 0, { 6, 4, 3, 0, 1, 2, 5 } uselistorder i64 (i64)* @scanindent, { 3, 2, 1, 0 } uselistorder i64 (i64)* @scanname, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_3.lr.ph, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
build_segment_manager_13329
build_segment_manager
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.shrunk.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 72, i64 0) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 4294967284, i64* %rax.0.shrunk.reg2mem br i1 %5, label LBL_1, label LBL_12 LBL_1: %6 = inttoptr i64 %3 to i32* %7 = inttoptr i64 %1 to i32* %8 = inttoptr i64 %2 to i32* store i64 %3, i64* %arg1, align 8 %9 = load i32, i32* %7, align 4 %10 = zext i32 %9 to i64 %11 = call i64 @FUNC(i64 %10) %12 = trunc i64 %11 to i32 store i32 %12, i32* %6, align 4 %13 = add i64 %1, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = zext i32 %15 to i64 %17 = call i64 @FUNC(i64 %16) %18 = trunc i64 %17 to i32 %19 = add i64 %3, 4 %20 = inttoptr i64 %19 to i32* store i32 %18, i32* %20, align 4 %21 = add i64 %1, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64 %24) %26 = trunc i64 %25 to i32 %27 = add i64 %3, 8 %28 = inttoptr i64 %27 to i32* store i32 %26, i32* %28, align 4 %29 = load i32, i32* %8, align 4 %30 = zext i32 %29 to i64 %31 = call i64 @FUNC(i64 %30) %32 = trunc i64 %31 to i32 %33 = add i64 %3, 12 %34 = inttoptr i64 %33 to i32* store i32 %32, i32* %34, align 4 %35 = add i64 %2, 4 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = zext i32 %37 to i64 %39 = call i64 @FUNC(i64 %38) %40 = trunc i64 %39 to i32 %41 = add i64 %3, 16 %42 = inttoptr i64 %41 to i32* store i32 %40, i32* %42, align 4 %43 = add i64 %1, 12 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = zext i32 %45 to i64 %47 = call i64 @FUNC(i64 %46) %48 = trunc i64 %47 to i32 %49 = add i64 %3, 20 %50 = inttoptr i64 %49 to i32* store i32 %48, i32* %50, align 4 %51 = add i64 %1, 16 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = zext i32 %53 to i64 %55 = call i64 @FUNC(i64 %54) %56 = trunc i64 %55 to i32 %57 = add i64 %3, 24 %58 = inttoptr i64 %57 to i32* store i32 %56, i32* %58, align 4 %59 = load i32, i32* %50, align 4 %60 = mul i32 %59, 10 %61 = udiv i32 %60, 100 %62 = add i64 %3, 28 %63 = inttoptr i64 %62 to i32* %64 = icmp ult i32 %61, 100 %spec.store.select = select i1 %64, i32 %61, i32 100 store i32 %spec.store.select, i32* %63, align 4 %65 = call i64 @FUNC(i64 %0, i64 1) %66 = trunc i64 %65 to i32 %67 = icmp eq i32 %66, 0 %68 = icmp eq i1 %67, false br i1 %68, label LBL_3, label LBL_2 LBL_2: %69 = add i64 %3, 32 %70 = inttoptr i64 %69 to i32* store i32 1, i32* %70, align 4 br label LBL_3 LBL_3: %71 = add i64 %3, 36 %72 = inttoptr i64 %71 to i32* store i32 1, i32* %72, align 4 %73 = add i64 %3, 40 %74 = inttoptr i64 %73 to i32* store i32 1, i32* %74, align 4 %75 = add i64 %3, 44 %76 = inttoptr i64 %75 to i32* store i32 1, i32* %76, align 4 %77 = add i64 %3, 48 %78 = inttoptr i64 %77 to i32* store i32 1, i32* %78, align 4 %79 = add i64 %3, 56 %80 = call i64 @FUNC(i64 %79) %81 = call i64 @FUNC(i64 %0, i64 2) %82 = trunc i64 %81 to i32 %83 = icmp eq i32 %82, 0 br i1 %83, label LBL_6, label LBL_4 LBL_4: %84 = add i64 %0, 8 %85 = inttoptr i64 %84 to i64* %86 = load i64, i64* %85, align 8 %87 = call i64 @FUNC(i64 %86) %88 = trunc i64 %87 to i32 %89 = icmp eq i32 %88, 0 %90 = icmp eq i1 %89, false br i1 %90, label LBL_6, label LBL_5 LBL_5: %91 = call i64 @FUNC(i64 %0) %92 = trunc i64 %91 to i32 %93 = icmp eq i32 %92, 0 store i64 %91, i64* %rax.0.shrunk.reg2mem br i1 %93, label LBL_6, label LBL_12 LBL_6: %94 = call i64 @FUNC(i64 %0) %95 = trunc i64 %94 to i32 %96 = icmp eq i32 %95, 0 store i64 %94, i64* %rax.0.shrunk.reg2mem br i1 %96, label LBL_7, label LBL_12 LBL_7: %97 = call i64 @FUNC(i64 %0) %98 = trunc i64 %97 to i32 %99 = icmp eq i32 %98, 0 store i64 %97, i64* %rax.0.shrunk.reg2mem br i1 %99, label LBL_8, label LBL_12 LBL_8: %100 = call i64 @FUNC(i64 %0) %101 = trunc i64 %100 to i32 %102 = icmp eq i32 %101, 0 store i64 %100, i64* %rax.0.shrunk.reg2mem br i1 %102, label LBL_9, label LBL_12 LBL_9: %103 = call i64 @FUNC(i64 %0) %104 = trunc i64 %103 to i32 %105 = icmp eq i32 %104, 0 store i64 %103, i64* %rax.0.shrunk.reg2mem br i1 %105, label LBL_10, label LBL_12 LBL_10: %106 = call i64 @FUNC(i64 %0) %107 = call i64 @FUNC(i64 %0) %108 = call i64 @FUNC(i64 %0) %109 = trunc i64 %108 to i32 %110 = icmp eq i32 %109, 0 store i64 %108, i64* %rax.0.shrunk.reg2mem br i1 %110, label LBL_11, label LBL_12 LBL_11: %111 = call i64 @FUNC(i64 %0) store i64 0, i64* %rax.0.shrunk.reg2mem br label LBL_12 LBL_12: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i32 %61, { 1, 0 } uselistorder i64 %0, { 2, 5, 4, 3, 6, 7, 8, 9, 0, 1, 10, 11, 12, 13 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 8, 1, 2, 3, 4, 5, 6, 7 } uselistorder i64 (i64, i64)* @test_opt, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i32 100, { 1, 2, 0 } uselistorder i64 (i64)* @le32_to_cpu, { 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_12, { 7, 0, 1, 2, 3, 4, 5, 6 } }
1
BinRealVul
smb2_flush_11108
smb2_flush
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i16, align 2 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %1 = bitcast i16* %sv_0 to i64* %2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %1, i64* nonnull %sv_1, i64* nonnull %sv_2, i64* nonnull %sv_3) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %5 = load i16, i16* %sv_0, align 2 %6 = icmp eq i16 %5, 24 %or.cond = icmp eq i1 %4, %6 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_6 LBL_1: %7 = call i64 @FUNC(i64 %0, i64* nonnull %sv_3) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = and i64 %7, 4294967295 %11 = call i64 @FUNC(i64 %0, i64 %10) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %12 = add i64 %0, 16 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = urem i32 %18, 2 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_5, label LBL_4 LBL_4: %22 = add i64 %14, 8 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = call i64 @FUNC(i64 %0, i64 %24, i64 %16) br label LBL_5 LBL_5: %26 = add i64 %0, 8 %27 = call i64 @FUNC(i64 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 4, i64 0) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 2, 1, 3, 0, 4, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_6, { 1, 2, 0 } }
1
BinRealVul
elf_fdpic_dump_segments_3709
elf_fdpic_dump_segments
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %storemerge2.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i64 %0 = ptrtoint i64* %arg4 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 %0, i64* %sv_2, align 8 %1 = load i64, i64* @gv_0, align 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %storemerge.in4 = inttoptr i64 %3 to i64* %storemerge5 = load i64, i64* %storemerge.in4, align 8 %4 = icmp eq i64 %storemerge5, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %storemerge2.reg2mem br i1 %5, label LBL_1, label LBL_14 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = ptrtoint i64* %sv_2 to i64 %8 = add i64 %7, -8 %9 = inttoptr i64 %8 to i64* %10 = ptrtoint i64* %sv_1 to i64 %11 = add i64 %7, -16 %12 = inttoptr i64 %11 to i64* %13 = ptrtoint i64* %sv_0 to i64 store i64 %storemerge5, i64* %storemerge6.reg2mem br label LBL_2 LBL_2: %storemerge6.reload = load i64, i64* %storemerge6.reg2mem %14 = call i64 @FUNC(i64 %storemerge6.reload) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_13, label LBL_3 LBL_3: %17 = inttoptr i64 %storemerge6.reload to i64* %18 = load i64, i64* %17, align 8 %19 = add i64 %storemerge6.reload, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp ult i64 %18, %21 store i64 %18, i64* %storemerge13.reg2mem br i1 %22, label LBL_4, label LBL_13 LBL_4: %storemerge13.reload = load i64, i64* %storemerge13.reg2mem %23 = load i64, i64* @gv_0, align 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 store i64 %10, i64* %9, align 8 store i64 %13, i64* %12, align 8 %26 = call i64 @FUNC(i64 %23, i64 %25, i64 %storemerge13.reload, i64 1, i64 0, i64 1) %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 %29 = icmp slt i32 %27, 0 %30 = icmp eq i1 %29, false %31 = icmp eq i1 %28, false %32 = icmp eq i1 %30, %31 br i1 %32, label LBL_6, label LBL_5 LBL_5: %33 = add i64 %23, 4096 store i64 %33, i64* %arg1, align 8 br label LBL_12 LBL_6: %34 = load i64, i64* %sv_0, align 8 %35 = icmp eq i64 %34, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_8, label LBL_7 LBL_7: %37 = call i64 @FUNC(i64 %34) %38 = add i64 %34, 4096 store i64 %38, i64* %arg1, align 8 br label LBL_12 LBL_8: %39 = call i64 @FUNC(i64 %34) %40 = load i64, i64* %sv_1, align 8 %41 = call i64 @FUNC(i64 %40, i64 %storemerge13.reload, i64 %39) %42 = load i64, i64* %sv_0, align 8 %43 = call i64 @FUNC(i64 %42) %44 = add i64 %39, 4096 store i64 %44, i64* %arg3, align 8 %45 = icmp ugt i64 %44, %storemerge13.reload br i1 %45, label LBL_10, label LBL_9 LBL_9: %46 = call i64 @FUNC(i64 %6, i64 %43, i64 4096) %47 = trunc i64 %46 to i32 %48 = icmp eq i32 %47, 0 %49 = icmp eq i1 %48, false br i1 %49, label LBL_11, label LBL_10 LBL_10: %50 = load i64, i64* %sv_0, align 8 %51 = call i64 @FUNC(i64 %50) %52 = load i64, i64* %sv_0, align 8 %53 = call i64 @FUNC(i64 %52) store i64 4294967291, i64* %storemerge2.reg2mem br label LBL_14 LBL_11: %54 = load i64, i64* %sv_0, align 8 %55 = call i64 @FUNC(i64 %54) %56 = load i64, i64* %sv_0, align 8 %57 = call i64 @FUNC(i64 %56) br label LBL_12 LBL_12: %58 = add i64 %storemerge13.reload, 4096 %59 = load i64, i64* %20, align 8 %60 = icmp ult i64 %58, %59 store i64 %58, i64* %storemerge13.reg2mem br i1 %60, label LBL_4, label LBL_13 LBL_13: %61 = add i64 %storemerge6.reload, 16 %storemerge.in = inttoptr i64 %61 to i64* %storemerge = load i64, i64* %storemerge.in, align 8 %62 = icmp eq i64 %storemerge, 0 %63 = icmp eq i1 %62, false store i64 %storemerge, i64* %storemerge6.reg2mem store i64 0, i64* %storemerge2.reg2mem br i1 %63, label LBL_2, label LBL_14 LBL_14: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem ret i64 %storemerge2.reload uselistorder i32 %27, { 1, 0 } uselistorder i64 %storemerge13.reload, { 0, 2, 1, 3 } uselistorder i64* %20, { 1, 0 } uselistorder i64 %storemerge6.reload, { 3, 0, 1, 2 } uselistorder i64 %7, { 1, 0 } uselistorder i64* %sv_2, { 1, 0 } uselistorder i64* %storemerge6.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge2.reg2mem, { 0, 1, 3, 2 } uselistorder i64 (i64)* @kunmap, { 1, 0 } uselistorder i64 (i64)* @page_cache_release, { 2, 1, 0 } uselistorder i64 4096, { 1, 0, 2, 3, 4 } uselistorder i64 1, { 3, 2, 0, 1 } uselistorder i1 false, { 5, 2, 3, 4, 1, 0 } uselistorder label LBL_14, { 0, 2, 1 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
e1000_reset_task_3766
e1000_reset_task
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 0, i64 %0) %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 0 %4 = icmp eq i1 %3, false store i64 %1, i64* %rax.0.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %0) store i64 %5, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder label LBL_2, { 1, 0 } }
0