dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
hmp_info_cpustats_15201
hmp_info_cpustats
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64 @FUNC(i64 %1, i64 %0, i64 4198684, i64 0) ret i64 %2 }
1
BinRealVul
RegisterMPCImage_19266
RegisterMPCImage
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0)) %1 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0)) %2 = inttoptr i64 %0 to i64* store i64 %1, i64* %2, align 8 %3 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0)) %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* store i64 %3, i64* %5, align 8 %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i32* store i32 1, i32* %7, align 4 %8 = call i64 @FUNC(i64 %0) %9 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0)) %10 = add i64 %9, 24 %11 = inttoptr i64 %10 to i64* store i64 4198865, i64* %11, align 8 %12 = add i64 %9, 32 %13 = inttoptr i64 %12 to i64* store i64 4198876, i64* %13, align 8 %14 = add i64 %9, 40 %15 = inttoptr i64 %14 to i64* store i64 4198887, i64* %15, align 8 %16 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0)) %17 = inttoptr i64 %9 to i64* store i64 %16, i64* %17, align 8 %18 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0)) %19 = add i64 %9, 8 %20 = inttoptr i64 %19 to i64* store i64 %18, i64* %20, align 8 %21 = call i64 @FUNC(i64 %9) %22 = load i64, i64* @gv_3, align 8 ret i64 %22 uselistorder i64 (i64)* @RegisterMagickInfo, { 1, 0 } uselistorder i32 1, { 1, 0 } uselistorder i64 (i8*)* @ConstantString, { 3, 2, 1, 0 } uselistorder i64 (i8*)* @SetMagickInfo, { 1, 0 } }
1
BinRealVul
qeth_l3_shutdown_3856
qeth_l3_shutdown
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 4 %4 = call i64 @FUNC(i64 %3) %5 = call i64 @FUNC(i64 %4, i64 0, i64 1) %6 = trunc i64 %1 to i32 %7 = icmp eq i32 %6, 1 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_1 LBL_1: %9 = inttoptr i64 %4 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %4, i64 0) br label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %4, i64 0) %14 = call i64 @FUNC(i64 %4) %15 = call i64 @FUNC(i64 %4) %16 = and i64 %15, 4294967295 %17 = call i64 @FUNC(i64 %16) ret i64 %17 }
0
BinRealVul
V1_minix_update_inode_8349
V1_minix_update_inode
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2) %4 = add i64 %2, 32 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %2, 40 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %9, i64 %6, i64* nonnull %sv_0) %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 0, i64* %storemerge.reg2mem br i1 %12, label LBL_1, label LBL_6 LBL_1: %13 = trunc i64 %1 to i32 %14 = inttoptr i64 %10 to i32* %15 = bitcast i64* %rdi to i32* store i32 %13, i32* %14, align 4 %16 = add i64 %2, 4 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19) %21 = trunc i64 %20 to i32 %22 = add i64 %10, 4 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = add i64 %2, 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 %27) %29 = trunc i64 %28 to i32 %30 = add i64 %10, 8 %31 = inttoptr i64 %30 to i32* store i32 %29, i32* %31, align 4 %32 = add i64 %2, 12 %33 = inttoptr i64 %32 to i16* %34 = load i16, i16* %33, align 2 %35 = add i64 %10, 12 %36 = inttoptr i64 %35 to i16* store i16 %34, i16* %36, align 2 %37 = add i64 %2, 16 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = add i64 %10, 16 %41 = inttoptr i64 %40 to i64* store i64 %39, i64* %41, align 8 %42 = add i64 %2, 24 %43 = inttoptr i64 %42 to i64* %44 = load i64, i64* %43, align 8 %45 = add i64 %10, 24 %46 = inttoptr i64 %45 to i64* store i64 %44, i64* %46, align 8 %47 = load i32, i32* %15, align 8 %48 = and i32 %47, 61440 %49 = icmp ne i32 %48, 8192 %50 = icmp eq i32 %48, 24576 %51 = icmp eq i1 %50, false %or.cond = icmp eq i1 %49, %51 br i1 %or.cond, label LBL_2, label LBL_3 LBL_2: %52 = add i64 %10, 32 store i64 0, i64* %indvars.iv.reg2mem br label LBL_4 LBL_3: %53 = add i64 %2, 48 %54 = inttoptr i64 %53 to i64* %55 = load i64, i64* %54, align 8 %56 = call i64 @FUNC(i64 %55) %57 = add i64 %10, 32 %58 = inttoptr i64 %57 to i64* store i64 %56, i64* %58, align 8 br label LBL_5 LBL_4: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %59 = mul i64 %indvars.iv.reload, 8 %60 = add i64 %59, %3 %61 = inttoptr i64 %60 to i64* %62 = load i64, i64* %61, align 8 %63 = add i64 %52, %59 %64 = inttoptr i64 %63 to i64* store i64 %62, i64* %64, align 8 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 9 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_5, label LBL_4 LBL_5: %65 = load i64, i64* %sv_0, align 8 %66 = call i64 @FUNC(i64 %65) %67 = load i64, i64* %sv_0, align 8 store i64 %67, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %10, { 1, 0, 2, 3, 4, 5, 6, 7, 8 } uselistorder i64* %sv_0, { 1, 2, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 32, { 1, 0, 2 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
batadv_iv_ogm_orig_get_18203
batadv_iv_ogm_orig_get
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = ptrtoint i32* %arg2 to i64 %4 = call i64 @FUNC(i64 %2, i64 %3) %5 = icmp eq i64 %4, 0 store i64 %4, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_7 LBL_1: %6 = call i64 @FUNC(i64 %2, i64 %3) %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_7 LBL_2: %9 = trunc i64 %1 to i32 %10 = add i64 %6, 16 %11 = call i64 @FUNC(i64 %10) %12 = mul i32 %9, 32 %13 = sext i32 %12 to i64 %14 = call i64 @FUNC(i64 %13, i64 0) %15 = inttoptr i64 %6 to i64* store i64 %14, i64* %15, align 8 %16 = icmp eq i64 %14, 0 br i1 %16, label LBL_6, label LBL_3 LBL_3: %17 = bitcast i64* %rdi to i32* %18 = load i32, i32* %17, align 8 %19 = sext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19, i64 0) %21 = add i64 %6, 8 %22 = inttoptr i64 %21 to i64* store i64 %20, i64* %22, align 8 %23 = icmp eq i64 %20, 0 br i1 %23, label LBL_5, label LBL_4 LBL_4: %24 = add i64 %6, 24 %25 = add i64 %2, 8 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = call i64 @FUNC(i64 %27, i64 4198908, i64 4198919, i64 %6, i64 %24) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false store i64 %6, i64* %rax.0.reg2mem br i1 %31, label LBL_5, label LBL_7 LBL_5: %32 = load i64, i64* %15, align 8 %33 = call i64 @FUNC(i64 %32) br label LBL_6 LBL_6: %34 = call i64 @FUNC(i64 %6) store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %6, { 4, 0, 1, 2, 3, 5, 6, 7 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 } uselistorder label LBL_7, { 3, 0, 1, 2 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
remove_path_3910
remove_path
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = inttoptr i64 %arg1 to i8* %1 = call i32 @unlink(i8* %0) %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = call i32 @strlen(i8* %0) %4 = add i32 %3, 1 %5 = sext i32 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = inttoptr i64 %6 to i64* %8 = inttoptr i64 %arg1 to i64* %9 = call i64* @memcpy(i64* %7, i64* %8, i32 %3) %10 = sext i32 %3 to i64 %11 = add i64 %6, %10 %12 = inttoptr i64 %11 to i8* store i8 0, i8* %12, align 1 br label LBL_3 LBL_2: store i8 0, i8* %16, align 1 %13 = call i32 @rmdir(i8* %0) %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_4, label LBL_3 LBL_3: %16 = call i8* @strrchr(i8* %0, i32 47) %17 = icmp eq i8* %16, null %18 = icmp eq i1 %17, false br i1 %18, label LBL_2, label LBL_4 LBL_4: call void @free(i64* %7) br label LBL_5 LBL_5: %storemerge = zext i32 %1 to i64 ret i64 %storemerge uselistorder i8* %16, { 1, 0 } uselistorder i8* %0, { 1, 0, 2, 3 } uselistorder i8 0, { 1, 2, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
sendInputPacketOnControlStream_13108
sendInputPacketOnControlStream
define i64 @FUNC(i16* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %1 = icmp sgt i32 %0, 4 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_3 LBL_2: %3 = and i64 %arg2, 4294967295 %4 = load i32, i32* @gv_2, align 4 %5 = ptrtoint i16* %arg1 to i64 %6 = urem i32 %4, 256 %7 = zext i32 %6 to i64 %8 = call i64 @FUNC(i64 %7, i64 %3, i64 %5) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false %. = select i1 %11, i64 0, i64 4294967295 store i64 %., i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 0, { 1, 0 } }
1
BinRealVul
luaT_getvarargs_17362
luaT_getvarargs
define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %storemerge.lcssa.reg2mem = alloca i32 %indvars.iv9.reg2mem = alloca i64 %sv_1.0.in.in.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg4 to i32 %4 = trunc i64 %1 to i32 %5 = icmp slt i32 %3, 0 %6 = icmp eq i1 %5, false store i32 %3, i32* %.pre-phi.reg2mem store i64 %arg4, i64* %sv_1.0.in.in.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = and i64 %1, 4294967295 %8 = call i64 @FUNC(i64 %2, i64 %7, i64 %arg3) %9 = mul i64 %1, 4 %10 = add i64 %9, %arg3 %11 = trunc i64 %10 to i32 %12 = bitcast i64* %arg1 to i32* store i32 %11, i32* %12, align 4 store i32 %4, i32* %.pre-phi.reg2mem br label LBL_2 LBL_2: %sv_1.0.in.in.reload = load i64, i64* %sv_1.0.in.in.reg2mem %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %sv_1.0.in = mul i64 %sv_1.0.in.in.reload, 4294967296 %13 = icmp sgt i32 %.pre-phi.reload, 0 %14 = icmp sgt i32 %4, 0 %or.cond4 = icmp eq i1 %14, %13 store i32 0, i32* %storemerge.lcssa.reg2mem br i1 %or.cond4, label LBL_3, label LBL_6 LBL_3: %15 = ptrtoint i32* %arg2 to i64 %16 = add i64 %15, 4 %17 = inttoptr i64 %16 to i32* %sext13 = mul i64 %1, 4294967296 %18 = ashr exact i64 %sext13, 32 %19 = ashr exact i64 %sv_1.0.in, 32 store i64 0, i64* %indvars.iv9.reg2mem br label LBL_4 LBL_4: %indvars.iv9.reload = load i64, i64* %indvars.iv9.reg2mem %20 = load i32, i32* %17, align 4 %21 = trunc i64 %indvars.iv9.reload to i32 %22 = sub i32 %21, %4 %23 = add i32 %22, %20 %24 = mul i64 %indvars.iv9.reload, 4 %25 = add i64 %24, %arg3 %26 = call i64 @FUNC(i64 %2, i64 %25, i32 %23) %indvars.iv.next10 = add nuw nsw i64 %indvars.iv9.reload, 1 %27 = icmp slt i64 %indvars.iv.next10, %19 %28 = icmp slt i64 %indvars.iv.next10, %18 %or.cond = icmp eq i1 %27, %28 store i64 %indvars.iv.next10, i64* %indvars.iv9.reg2mem br i1 %or.cond, label LBL_4, label LBL_5 LBL_5: %29 = trunc i64 %indvars.iv.next10 to i32 store i32 %29, i32* %storemerge.lcssa.reg2mem br label LBL_6 LBL_6: %storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem %30 = icmp slt i32 %storemerge.lcssa.reload, %.pre-phi.reload store i32 %storemerge.lcssa.reload, i32* %sv_0.0.lcssa.reg2mem br i1 %30, label LBL_7, label LBL_9 LBL_7: %31 = zext i32 %storemerge.lcssa.reload to i64 %wide.trip.count = ashr exact i64 %sv_1.0.in, 32 store i64 %31, i64* %indvars.iv.reg2mem br label LBL_8 LBL_8: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %32 = mul i64 %indvars.iv.reload, 4 %33 = add i64 %32, %arg3 %34 = call i64 @FUNC(i64 %33) %35 = call i64 @FUNC(i64 %34) %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 i32 %.pre-phi.reload, i32* %sv_0.0.lcssa.reg2mem br i1 %exitcond, label LBL_9, label LBL_8 LBL_9: %sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem %36 = zext i32 %sv_0.0.lcssa.reload to i64 ret i64 %36 uselistorder i32 %storemerge.lcssa.reload, { 2, 0, 1 } uselistorder i64 %indvars.iv.next10, { 1, 0, 3, 2 } uselistorder i64 %indvars.iv9.reload, { 0, 2, 1 } uselistorder i64 %sv_1.0.in, { 1, 0 } uselistorder i32 %4, { 1, 2, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv9.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 1, { 1, 0 } uselistorder i64 32, { 2, 0, 1 } uselistorder i64 4, { 0, 1, 3, 2 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
gen_pusha_2283
gen_pusha
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 0) %3 = trunc i64 %1 to i32 %4 = urem i32 %3, 32 %5 = shl i32 -8, %4 %storemerge = zext i32 %5 to i64 %6 = call i64 @FUNC(i64 %storemerge) %7 = ptrtoint i32* %arg1 to i64 %8 = add i64 %7, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = load i32, i32* @gv_0, align 4 %14 = zext i32 %13 to i64 %15 = call i64 @FUNC(i64 %14, i64 %14) br label LBL_2 LBL_2: %16 = load i32, i32* @gv_0, align 4 %17 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %18 = zext i32 %16 to i64 %19 = zext i32 %17 to i64 %20 = call i64 @FUNC(i64 %19, i64 %18) %21 = add i64 %7, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_4, label LBL_3 LBL_3: %25 = call i64 @FUNC(i64 %7, i64 1) br label LBL_4 LBL_4: %26 = shl i32 1, %4 %27 = zext i32 %26 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_5 LBL_5: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %28 = sub nuw nsw i64 7, %indvars.iv.reload %29 = load i32, i32* @gv_1, align 4 %30 = zext i32 %29 to i64 %31 = call i64 @FUNC(i64 2, i64 %30, i64 %28) %32 = load i32, i32* @gv_0, align 4 %33 = load i32, i32* @gv_1, align 4 %34 = call i64 @FUNC(i64 %7, i32 %3, i32 %33, i32 %32) %35 = call i64 @FUNC(i64 %27) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 8 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_6, label LBL_5 LBL_6: %36 = load i32, i32* @gv_2, align 4 %37 = load i32, i32* %9, align 4 %38 = add i32 %37, 3 %39 = zext i32 %36 to i64 %40 = zext i32 %38 to i64 %41 = call i64 @FUNC(i64 %40, i64 0, i64 %39) ret i64 %41 uselistorder i64 %14, { 1, 0 } uselistorder i64 %7, { 0, 2, 1, 3 } uselistorder i32 %4, { 1, 0 } uselistorder i32 %3, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* @gv_1, { 1, 0 } uselistorder i32* @gv_0, { 2, 1, 0 } uselistorder i64 (i64)* @gen_op_addl_A0_im, { 1, 0 } }
0
BinRealVul
helper_rdhwr_cpunum_16923
helper_rdhwr_cpunum
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 0) %2 = urem i64 %0, 1024 ret i64 %2 }
1
BinRealVul
qeth_mdio_read_10476
qeth_mdio_read
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg3, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = add i64 %2, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = and i64 %3, 4294967295 store i64 %7, i64* @0, align 8 %trunc = trunc i64 %3 to i32 store i32 0, i32* %sv_0.0.reg2mem switch i32 %trunc, label LBL_8 [ i32 0, label LBL_1 i32 1, label LBL_2 i32 2, label LBL_3 i32 3, label LBL_4 i32 4, label LBL_5 i32 5, label LBL_6 i32 10, label LBL_7 ] LBL_1: %8 = inttoptr i64 %6 to i32* %9 = load i32, i32* %8, align 4 %.off = add i32 %9, -1 %switch = icmp ult i32 %.off, 3 %spec.select = select i1 %switch, i32 256, i32 8448 store i32 %spec.select, i32* %sv_0.0.reg2mem br label LBL_8 LBL_2: store i32 63, i32* %sv_0.0.reg2mem br label LBL_8 LBL_3: %10 = trunc i64 %1 to i32 %11 = mul i32 %10, 65536 %12 = add i64 %2, 1 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = zext i8 %14 to i32 %16 = mul i32 %15, 256 %17 = or i32 %16, %11 %18 = add i64 %2, 2 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = zext i8 %20 to i32 %22 = or i32 %17, %21 %23 = udiv i32 %22, 32 %24 = urem i32 %23, 65536 store i32 %24, i32* %sv_0.0.reg2mem br label LBL_8 LBL_4: %25 = add i64 %2, 2 %26 = inttoptr i64 %25 to i8* %27 = load i8, i8* %26, align 1 %28 = zext i8 %27 to i32 %29 = mul i32 %28, 1024 %30 = and i32 %29, 64512 store i32 %30, i32* %sv_0.0.reg2mem br label LBL_8 LBL_5: store i32 65535, i32* %sv_0.0.reg2mem br label LBL_8 LBL_6: store i32 63, i32* %sv_0.0.reg2mem br label LBL_8 LBL_7: %31 = add i64 %6, 4 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 store i32 %33, i32* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %34 = zext i32 %sv_0.0.reload to i64 ret i64 %34 uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0, 3 } uselistorder i32* %sv_0.0.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1, 8 } uselistorder i32 65536, { 1, 0 } uselistorder i32 63, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder label LBL_8, { 2, 3, 4, 5, 6, 7, 0, 1 } }
0
BinRealVul
resume_all_vcpus_1735
resume_all_vcpus
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.lcssa.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32* %0 = load i32*, i32** @gv_0, align 8 %1 = ptrtoint i32* %0 to i64 %2 = icmp eq i32* %0, null %3 = icmp eq i1 %2, false store i32* %0, i32** %storemerge2.reg2mem store i64 %1, i64* %rax.0.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %storemerge2.reload = load i32*, i32** %storemerge2.reg2mem store i32 0, i32* %storemerge2.reload, align 4 %4 = ptrtoint i32* %storemerge2.reload to i64 %5 = add i64 %4, 4 %6 = inttoptr i64 %5 to i32* store i32 0, i32* %6, align 4 %7 = call i64 @FUNC(i64 %4) %8 = add i64 %4, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %10 to i32* %12 = icmp eq i64 %10, 0 %13 = icmp eq i1 %12, false store i32* %11, i32** %storemerge2.reg2mem store i64 %10, i64* %rax.0.lcssa.reg2mem br i1 %13, label LBL_1, label LBL_2 LBL_2: %rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem ret i64 %rax.0.lcssa.reload uselistorder i64 %4, { 1, 0, 2 } uselistorder i32* %storemerge2.reload, { 1, 0 } uselistorder i32** %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
pdf_load_xrefs_13399
pdf_load_xrefs
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem23 = alloca i32 %.reg2mem21 = alloca i64 %.ph.reg2mem = alloca i32 %storemerge3.reg2mem = alloca i8* %sv_0.0.lcssa13.reg2mem = alloca i32 %sv_0.05.reg2mem = alloca i64 %.reg2mem19 = alloca i64 %storemerge714.reg2mem = alloca i32 %sv_1.0615.reg2mem = alloca i32 %.reg2mem = alloca i64 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %2 = bitcast i64* %arg2 to i32* store i32 0, i32* %2, align 4 %3 = inttoptr i64 %arg1 to %_IO_FILE* %4 = call i32 @fseek(%_IO_FILE* %3, i32 0, i32 0) %5 = call i64 @FUNC(i64 %arg1) %6 = icmp slt i64 %5, 0 %7 = icmp eq i1 %6, false %8 = trunc i64 %1 to i32 br i1 %7, label LBL_1, label LBL_3 LBL_1: %9 = add i32 %8, 1 br label LBL_2 LBL_2: store i32 %9, i32* %2, align 4 %10 = call i64 @FUNC(i64 %arg1) %11 = icmp slt i64 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_2, label LBL_3 LBL_3: %13 = icmp eq i32 %8, 0 %14 = icmp eq i1 %13, false store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_4, label LBL_26 LBL_4: %15 = ptrtoint i64* %arg2 to i64 %16 = bitcast i64* %rsi to i32* %17 = call i32 @fseek(%_IO_FILE* %3, i32 0, i32 0) %sext12 = mul i64 %1, 4294967296 %18 = ashr exact i64 %sext12, 27 %19 = call i64 @FUNC(i64 %18) %20 = add i64 %15, 8 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = load i32, i32* %16, align 8 %23 = icmp eq i32 %22, 0 store i64 %19, i64* %.reg2mem21 store i32 0, i32* %.reg2mem23 br i1 %23, label LBL_23, label LBL_5 LBL_5: %24 = bitcast i64* %sv_2 to i8* %25 = call i64 @FUNC(i64 %arg1) %26 = icmp slt i64 %25, 0 store i64 %25, i64* %.reg2mem store i32 1, i32* %sv_1.0615.reg2mem store i32 0, i32* %storemerge714.reg2mem store i64 0, i64* %.reg2mem19 store i32 %22, i32* %.ph.reg2mem br i1 %26, label LBL_22, label LBL_7 LBL_6: %27 = call i64 @FUNC(i64 %arg1) %28 = icmp slt i64 %27, 0 store i64 %27, i64* %.reg2mem store i32 %50, i32* %sv_1.0615.reg2mem store i32 %106, i32* %storemerge714.reg2mem store i64 %109, i64* %.reg2mem19 store i32 %107, i32* %.ph.reg2mem br i1 %28, label LBL_22, label LBL_7 LBL_7: %.reload20 = load i64, i64* %.reg2mem19 %storemerge714.reload = load i32, i32* %storemerge714.reg2mem %sv_1.0615.reload = load i32, i32* %sv_1.0615.reg2mem %.reload = load i64, i64* %.reg2mem %29 = load i64, i64* %21, align 8 %30 = mul i64 %.reload20, 32 %31 = add i64 %29, %30 %32 = inttoptr i64 %31 to i32* store i32 %sv_1.0615.reload, i32* %32, align 4 %33 = call i32 @fgetc(%_IO_FILE* %3) %34 = trunc i32 %33 to i8 %35 = icmp eq i8 %34, 102 %36 = icmp eq i1 %35, false store i64 0, i64* %sv_0.05.reg2mem store i32 0, i32* %sv_0.0.lcssa13.reg2mem br i1 %36, label LBL_8, label LBL_11 LBL_8: %sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem %sext = mul i64 %sv_0.05.reload, 4294967296 %37 = ashr exact i64 %sext, 32 %38 = add nsw i64 %37, 1 %39 = sub i64 %.reload, %38 %40 = trunc i64 %39 to i32 %41 = call i32 @fseek(%_IO_FILE* %3, i32 %40, i32 0) %42 = call i32 @fgetc(%_IO_FILE* %3) %43 = trunc i32 %42 to i8 %44 = icmp eq i8 %43, 102 %45 = icmp eq i1 %44, false store i64 %38, i64* %sv_0.05.reg2mem br i1 %45, label LBL_8, label LBL_9 LBL_9: %46 = trunc i64 %38 to i32 %47 = icmp ult i32 %46, 256 store i32 %46, i32* %sv_0.0.lcssa13.reg2mem br i1 %47, label LBL_11, label LBL_10 LBL_10: %48 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %49 = call i32 @fwrite(i64* bitcast ([68 x i8]* @gv_1 to i64*), i32 1, i32 67, %_IO_FILE* %48) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_26 LBL_11: %50 = add i32 %sv_1.0615.reload, 1 %sv_0.0.lcssa13.reload = load i32, i32* %sv_0.0.lcssa13.reg2mem %51 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 256) %52 = call i32 @fread(i64* nonnull %sv_2, i32 1, i32 %sv_0.0.lcssa13.reload, %_IO_FILE* %3) %53 = icmp eq i32 %52, %sv_0.0.lcssa13.reload store i8* %24, i8** %storemerge3.reg2mem br i1 %53, label LBL_14, label LBL_12 LBL_12: %54 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %55 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_2 to i64*), i32 1, i32 26, %_IO_FILE* %54) call void @exit(i32 1) unreachable LBL_13: %56 = ptrtoint i8* %storemerge3.reload to i64 %57 = add i64 %56, 1 %58 = inttoptr i64 %57 to i8* store i8* %58, i8** %storemerge3.reg2mem br label LBL_14 LBL_14: %storemerge3.reload = load i8*, i8** %storemerge3.reg2mem %59 = load i8, i8* %storemerge3.reload, align 1 switch i8 %59, label LBL_15 [ i8 32, label LBL_13 i8 10, label LBL_13 i8 13, label LBL_13 ] LBL_15: %60 = load i64, i64* %21, align 8 %61 = call i32 @atol(i8* %storemerge3.reload) %62 = sext i32 %61 to i64 %63 = or i64 %30, 8 %64 = add i64 %60, %63 %65 = inttoptr i64 %64 to i64* store i64 %62, i64* %65, align 8 %66 = load i64, i64* %21, align 8 %67 = add i64 %66, %30 %68 = add i64 %67, 8 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = icmp eq i64 %70, 0 %72 = icmp eq i1 %71, false br i1 %72, label LBL_17, label LBL_16 LBL_16: %73 = call i64 @FUNC(i64 %arg1, i64 %67) br label LBL_18 LBL_17: %74 = call i32 @ftell(%_IO_FILE* %3) %75 = load i64, i64* %21, align 8 %76 = add i64 %75, %63 %77 = inttoptr i64 %76 to i64* %78 = load i64, i64* %77, align 8 %79 = trunc i64 %78 to i32 %80 = call i32 @fseek(%_IO_FILE* %3, i32 %79, i32 0) %81 = load i64, i64* %21, align 8 %82 = call i64 @FUNC(i64 %arg1) %83 = or i64 %30, 16 %84 = add i64 %81, %83 %85 = inttoptr i64 %84 to i64* store i64 %82, i64* %85, align 8 %86 = call i32 @fseek(%_IO_FILE* %3, i32 %74, i32 0) br label LBL_18 LBL_18: %87 = load i64, i64* %21, align 8 %88 = add i64 %87, %30 %89 = call i64 @FUNC(i64 %arg1, i64 %15, i64 %88) %90 = trunc i64 %89 to i32 %91 = icmp eq i32 %90, 0 %92 = icmp eq i1 %91, false %93 = load i64, i64* %21, align 8 %94 = add i64 %93, %30 br i1 %92, label LBL_20, label LBL_19 LBL_19: %95 = add i64 %94, 24 %96 = inttoptr i64 %95 to i32* %97 = load i32, i32* %96, align 4 %98 = inttoptr i64 %94 to i64* %99 = call i64* @memset(i64* %98, i32 0, i32 32) %100 = load i64, i64* %21, align 8 %101 = or i64 %30, 24 %102 = add i64 %100, %101 %103 = inttoptr i64 %102 to i32* store i32 %97, i32* %103, align 4 call void @rewind(%_IO_FILE* %3) %104 = call i64 @FUNC(i64 %arg1) br label LBL_21 LBL_20: %105 = call i64 @FUNC(i64 %arg1, i64 %94) br label LBL_21 LBL_21: %106 = add i32 %storemerge714.reload, 1 %107 = load i32, i32* %16, align 8 %108 = zext i32 %107 to i64 %109 = sext i32 %106 to i64 %110 = icmp slt i64 %109, %108 store i32 %107, i32* %.ph.reg2mem br i1 %110, label LBL_6, label LBL_22 LBL_22: %.ph.reload = load i32, i32* %.ph.reg2mem %.pre = load i64, i64* %21, align 8 store i64 %.pre, i64* %.reg2mem21 store i32 %.ph.reload, i32* %.reg2mem23 br label LBL_23 LBL_23: %.reload24 = load i32, i32* %.reg2mem23 %.reload22 = load i64, i64* %.reg2mem21 %111 = add i64 %.reload22, 24 %112 = inttoptr i64 %111 to i32* %113 = load i32, i32* %112, align 4 %114 = icmp eq i32 %113, 0 br i1 %114, label LBL_25, label LBL_24 LBL_24: %115 = call i64 @FUNC(i64 %15) br label LBL_25 LBL_25: %116 = call i64 @FUNC(i64 %arg1, i64 %15) %117 = zext i32 %.reload24 to i64 store i64 %117, i64* %rax.0.reg2mem br label LBL_26 LBL_26: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %109, { 1, 0 } uselistorder i32 %107, { 0, 2, 1 } uselistorder i32 %106, { 1, 0 } uselistorder i64 %94, { 2, 1, 0 } uselistorder i8* %storemerge3.reload, { 2, 0, 1 } uselistorder i32 %sv_0.0.lcssa13.reload, { 1, 0 } uselistorder i64 %38, { 1, 0, 2 } uselistorder i64 %30, { 1, 6, 5, 2, 4, 0, 3 } uselistorder i32 %sv_1.0615.reload, { 1, 0 } uselistorder i64 %15, { 1, 2, 0, 3 } uselistorder %_IO_FILE* %3, { 1, 2, 3, 4, 5, 7, 6, 0, 8, 9 } uselistorder i64* %sv_2, { 1, 2, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.0615.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge714.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem19, { 0, 2, 1 } uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.lcssa13.reg2mem, { 0, 2, 1 } uselistorder i8** %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 24, { 1, 0, 2 } uselistorder void (i32)* @exit, { 1, 0 } uselistorder i32 256, { 1, 0 } uselistorder i8 102, { 1, 0 } uselistorder i32 (%_IO_FILE*)* @fgetc, { 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64 8, { 1, 0, 2 } uselistorder i64 (i64)* @get_next_eof, { 5, 4, 3, 0, 2, 1 } uselistorder i32 (%_IO_FILE*, i32, i32)* @fseek, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 13, 7, 14, 5, 6, 8, 4, 1, 2, 0, 3, 9, 10, 15, 11, 12, 16 } uselistorder i64* %arg2, { 1, 0 } uselistorder i64 %arg1, { 7, 4, 3, 5, 6, 2, 8, 0, 9, 1, 10 } uselistorder label LBL_26, { 1, 2, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
defaultRealloc_12338
defaultRealloc
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64 %arg2, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %0, i64 %arg3) store i64 %3, i64* %storemerge.reg2mem br label LBL_4 LBL_2: %4 = call i64 @FUNC(i64 %arg2, i64 %arg3) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false store i64 %4, i64* %storemerge.reg2mem br i1 %6, label LBL_4, label LBL_3 LBL_3: %7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
msm_gem_new_4461
msm_gem_new
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %sv_1 = alloca i64, align 8 store i64 0, i64* %sv_1, align 8 %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_2, label LBL_1 LBL_1: %5 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %6 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %5) br label LBL_2 LBL_2: %7 = and i64 %arg3, 4294967295 %8 = trunc i64 %arg2 to i32 %9 = add i32 %8, 4095 %10 = and i32 %9, -4096 %11 = call i64 @FUNC(i64 %0, i32 %10, i64 %7, i64* nonnull %sv_1) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 %11, i64* %sv_0.0.reg2mem br i1 %14, label LBL_7, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64* nonnull @gv_2) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = load i64, i64* %sv_1, align 8 br i1 %17, label LBL_5, label LBL_4 LBL_4: %19 = call i64 @FUNC(i64 %0, i64 %18, i32 %10) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 store i64 %19, i64* %sv_0.0.reg2mem br i1 %21, label LBL_6, label LBL_7 LBL_5: %22 = call i64 @FUNC(i64 %0, i64 %18, i32 %10) br label LBL_6 LBL_6: %23 = load i64, i64* %sv_1, align 8 store i64 %23, i64* %storemerge.reg2mem br label LBL_10 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %24 = load i64, i64* %sv_1, align 8 %25 = icmp eq i64 %24, 0 br i1 %25, label LBL_9, label LBL_8 LBL_8: %26 = call i64 @FUNC(i64 %24) br label LBL_9 LBL_9: %sext4 = mul i64 %sv_0.0.reload, 4294967296 %27 = ashr exact i64 %sext4, 32 store i64 %27, i64* %storemerge.reg2mem br label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %18, { 1, 0 } uselistorder i32 %10, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 2, 3, 0, 4 } uselistorder i64 4294967295, { 1, 2, 0 } uselistorder i32 0, { 1, 2, 3, 4, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
xan_decode_frame_18749
xan_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 %storemerge.in.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = bitcast i64* %arg1 to i32* store i32 1, i32* %4, align 4 %5 = add i64 %3, 4 %6 = inttoptr i64 %5 to i32* store i32 7, i32* %6, align 4 %7 = add i64 %3, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = trunc i64 %3 to i32 %11 = icmp eq i32 %10, 0 br i1 %11, label LBL_2, label LBL_1 LBL_1: %12 = call i64 @FUNC(i64 %9, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %2, i64 %1) %13 = and i64 %3, 4294967295 store i64 %13, i64* %rax.0.reg2mem br label LBL_9 LBL_2: %14 = ptrtoint i64* %arg4 to i64 %15 = add i64 %14, 8 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i64 %3, 16 %19 = call i64 @FUNC(i64 %18, i64 %9, i32 %17) %20 = call i64 @FUNC(i64 %18) %21 = trunc i64 %20 to i32 switch i32 %21, label LBL_5 [ i32 0, label LBL_3 i32 1, label LBL_4 ] LBL_3: %22 = call i64 @FUNC(i64 %3) store i64 %22, i64* %storemerge.in.in.reg2mem br label LBL_6 LBL_4: %23 = call i64 @FUNC(i64 %3) store i64 %23, i64* %storemerge.in.in.reg2mem br label LBL_6 LBL_5: %24 = and i64 %20, 4294967295 %25 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %storemerge.in.in.reload = load i64, i64* %storemerge.in.in.reg2mem %26 = trunc i64 %storemerge.in.in.reload to i32 %27 = icmp eq i32 %26, 0 br i1 %27, label LBL_8, label LBL_7 LBL_7: %storemerge.in = and i64 %storemerge.in.in.reload, 4294967295 store i64 %storemerge.in, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %28 = bitcast i64* %arg3 to i32* store i32 1, i32* %28, align 4 store i64 %3, i64* %arg2, align 8 %29 = load i32, i32* %16, align 4 %30 = zext i32 %29 to i64 store i64 %30, 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 %9, { 2, 1, 0 } uselistorder i64 %3, { 1, 2, 3, 4, 5, 0, 6, 7, 8 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder i32 0, { 1, 0, 2 } }
1
BinRealVul
chase_port_11303
chase_port
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i64 %sv_0.15.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %3 = load i64, i64* %0 %4 = add i64 %2, 8 %5 = call i64 @FUNC(i64 %4) %6 = icmp eq i64 %arg2, 0 %7 = icmp eq i1 %6, false %spec.select = select i1 %7, i64 %arg2, i64 500 %8 = add i64 %2, 16 %9 = call i64 @FUNC(i64 %8, i64 %3) %10 = load i64, i64* @gv_0, align 8 %11 = call i64 @FUNC(i64* nonnull %sv_1, i64 %10) %12 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1) %13 = call i64 @FUNC(i64 0) %14 = add i64 %2, 56 %15 = call i64 @FUNC(i64 %14) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = icmp eq i64 %spec.select, 0 %or.cond4 = or i1 %18, %17 store i64 %spec.select, i64* %sv_0.15.reg2mem store i64 %spec.select, i64* %sv_0.1.lcssa.reg2mem br i1 %or.cond4, label LBL_3, label LBL_1 LBL_1: %sv_0.15.reload = load i64, i64* %sv_0.15.reg2mem %19 = load i64, i64* @gv_0, align 8 %20 = call i64 @FUNC(i64 %19) %21 = or i64 %20, %1 %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i64 %sv_0.15.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %23, label LBL_2, label LBL_3 LBL_2: %24 = call i64 @FUNC(i64 %8, i64 %3) %25 = call i64 @FUNC(i64 %sv_0.15.reload) %26 = call i64 @FUNC(i64 %8, i64 %3) %27 = call i64 @FUNC(i64 0) %28 = call i64 @FUNC(i64 %14) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 %31 = icmp eq i64 %25, 0 %or.cond = or i1 %31, %30 store i64 %25, i64* %sv_0.15.reg2mem store i64 %25, i64* %sv_0.1.lcssa.reg2mem br i1 %or.cond, label LBL_3, label LBL_1 LBL_3: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %32 = call i64 @FUNC(i64 1) %33 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1) %34 = trunc i64 %arg3 to i32 %35 = icmp eq i32 %34, 0 br i1 %35, label LBL_5, label LBL_4 LBL_4: %36 = call i64 @FUNC(i64 %14) br label LBL_5 LBL_5: %37 = trunc i64 %1 to i32 %38 = sub i64 0, %sv_0.1.lcssa.reload %39 = call i64 @FUNC(i64 %8, i64 %3) %40 = call i64 @FUNC(i64 %5) %41 = icmp slt i64 %38, 0 %42 = icmp eq i1 %41, false br i1 %42, label LBL_12, label LBL_6 LBL_6: %43 = load i64, i64* @gv_1, align 8 %44 = icmp eq i32 %37, 0 %45 = add i64 %43, %sv_0.1.lcssa.reload br label LBL_9 LBL_7: %46 = call i64 @FUNC(i64 %2) %47 = trunc i64 %46 to i32 %48 = icmp eq i32 %47, 0 br i1 %48, label LBL_13, label LBL_8 LBL_8: %49 = call i64 @FUNC(i64 10) %50 = load i64, i64* @gv_1, align 8 %51 = sub i64 %50, %45 %52 = icmp slt i64 %51, 0 %53 = icmp eq i1 %52, false br i1 %53, label LBL_13, label LBL_9 LBL_9: %54 = load i64, i64* @gv_0, align 8 %55 = call i64 @FUNC(i64 %54) %56 = trunc i64 %55 to i32 %57 = icmp eq i32 %56, 0 %58 = icmp eq i1 %57, false br i1 %58, label LBL_12, label LBL_10 LBL_10: br i1 %44, label LBL_7, label LBL_11 LBL_11: %59 = and i64 %1, 4294967295 store i64 %59, i64* %rax.0.reg2mem br label LBL_14 LBL_12: %60 = and i64 %1, 4294967295 %61 = icmp eq i32 %37, 0 %62 = icmp eq i1 %61, false store i64 %60, i64* %rax.0.reg2mem br i1 %62, label LBL_14, label LBL_13 LBL_13: %63 = inttoptr i64 %4 to i32* %64 = load i32, i32* %63, align 4 %65 = icmp eq i32 %64, 0 %66 = icmp eq i1 %65, false %67 = zext i32 %64 to i64 %68 = select i1 %66, i64 %67, i64 50 %69 = call i64 @FUNC(i64 10000, i64 %68) %70 = and i64 %69, 4294967295 %71 = call i64 @FUNC(i64 1, i64 %70) %72 = and i64 %71, 4294967295 %73 = call i64 @FUNC(i64 %72) store i64 %73, 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 %sv_0.1.lcssa.reload, { 1, 0 } uselistorder i64 %sv_0.15.reload, { 1, 0 } uselistorder i64 %14, { 0, 2, 1 } uselistorder i64 %8, { 2, 0, 1, 3 } uselistorder i64 %1, { 1, 2, 0, 3 } uselistorder i64* %sv_0.15.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 4294967295, { 3, 4, 1, 0, 5, 6, 7, 2, 8 } uselistorder i64 (i64)* @msleep, { 1, 0 } uselistorder i64 (i64, i64)* @spin_unlock_irqrestore, { 1, 0 } uselistorder i64 (i64)* @signal_pending, { 1, 0 } uselistorder i32 0, { 2, 3, 6, 4, 5, 7, 8, 0, 1, 9, 10 } uselistorder i64 (i64)* @kfifo_len, { 1, 0 } uselistorder i64 (i64)* @set_current_state, { 2, 1, 0 } uselistorder i64 (i64, i64)* @spin_lock_irqsave, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 0, 5 } uselistorder label LBL_14, { 2, 1, 0 } uselistorder label LBL_13, { 2, 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_3, { 1, 0, 2 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
host_net_remove_completion_1853
host_net_remove_completion
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge36.reg2mem = alloca i32 %.reg2mem10 = alloca i64 %storemerge7.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i32, align 4 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %1 = ptrtoint i64* %sv_4 to i64 %2 = trunc i64 %arg2 to i32 %3 = inttoptr i64 %arg3 to i8* %4 = call i32 @strlen(i8* %3) %5 = zext i32 %4 to i64 %6 = call i64 @FUNC(i64 %0, i64 %5) %7 = icmp eq i32 %2, 2 %8 = icmp eq i1 %7, false br i1 %8, label LBL_7, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 0, i64* nonnull %sv_3, i64 0, i64 10) %10 = trunc i64 %9 to i32 %11 = add i32 %10, -10 %12 = sub i32 9, %10 %13 = and i32 %12, %10 %14 = icmp slt i32 %13, 0 %15 = icmp eq i32 %11, 0 %16 = icmp slt i32 %11, 0 %17 = icmp eq i1 %16, %14 %18 = icmp eq i1 %15, false %19 = icmp eq i1 %17, %18 %20 = and i64 %9, 4294967295 %21 = select i1 %19, i64 10, i64 %20 %22 = icmp eq i64 %21, 0 store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_15, label LBL_2 LBL_2: %23 = add i64 %1, -112 %24 = bitcast i32* %sv_2 to i64* %25 = bitcast i64* %sv_1 to i8* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge7.reg2mem br label LBL_3 LBL_3: %storemerge7.reload = load i32, i32* %storemerge7.reg2mem %.reload = load i64, i64* %.reg2mem %26 = mul i64 %.reload, 8 %27 = add i64 %23, %26 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = call i64 @FUNC(i64 %29, i64* nonnull %24) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false br i1 %33, label LBL_6, label LBL_4 LBL_4: %34 = load i32, i32* %sv_2, align 4 %35 = zext i32 %34 to i64 %36 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %25, i32 16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %35) %37 = call i32 @strncmp(i8* %3, i8* nonnull %25, i32 %4) %38 = icmp eq i32 %37, 0 %39 = icmp eq i1 %38, false br i1 %39, label LBL_6, label LBL_5 LBL_5: %40 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1) br label LBL_6 LBL_6: %41 = add i32 %storemerge7.reload, 1 %42 = sext i32 %41 to i64 %43 = icmp sgt i64 %21, %42 store i64 %42, i64* %.reg2mem store i32 %41, i32* %storemerge7.reg2mem store i64 %21, i64* %rax.0.reg2mem br i1 %43, label LBL_3, label LBL_15 LBL_7: %44 = icmp eq i32 %2, 3 %45 = icmp eq i1 %44, false store i64 %6, i64* %rax.0.reg2mem br i1 %45, label LBL_15, label LBL_8 LBL_8: %46 = call i64 @FUNC(i64 0, i64* nonnull %sv_3, i64 1, i64 10) %47 = trunc i64 %46 to i32 %48 = add i32 %47, -10 %49 = sub i32 9, %47 %50 = and i32 %49, %47 %51 = icmp slt i32 %50, 0 %52 = icmp eq i32 %48, 0 %53 = icmp slt i32 %48, 0 %54 = icmp eq i1 %53, %51 %55 = icmp eq i1 %52, false %56 = icmp eq i1 %54, %55 %57 = and i64 %46, 4294967295 %58 = select i1 %56, i64 10, i64 %57 %59 = icmp eq i64 %58, 0 store i64 0, i64* %rax.0.reg2mem br i1 %59, label LBL_15, label LBL_9 LBL_9: %60 = add i64 %1, -112 store i64 0, i64* %.reg2mem10 store i32 0, i32* %storemerge36.reg2mem br label LBL_10 LBL_10: %storemerge36.reload = load i32, i32* %storemerge36.reg2mem %.reload11 = load i64, i64* %.reg2mem10 %61 = mul i64 %.reload11, 8 %62 = add i64 %60, %61 %63 = inttoptr i64 %62 to i64* %64 = load i64, i64* %63, align 8 %65 = add i64 %64, 8 %66 = inttoptr i64 %65 to i64* %67 = load i64, i64* %66, align 8 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = icmp eq i32 %69, 2 br i1 %70, label LBL_14, label LBL_11 LBL_11: %71 = call i64 @FUNC(i64 %64, i64* nonnull %sv_0) %72 = trunc i64 %71 to i32 %73 = icmp eq i32 %72, 0 %74 = icmp eq i1 %73, false br i1 %74, label LBL_14, label LBL_12 LBL_12: %75 = load i64, i64* %63, align 8 %76 = inttoptr i64 %75 to i64* %77 = load i64, i64* %76, align 8 %78 = inttoptr i64 %77 to i8* %79 = call i32 @strncmp(i8* %3, i8* %78, i32 %4) %80 = icmp eq i32 %79, 0 %81 = icmp eq i1 %80, false br i1 %81, label LBL_14, label LBL_13 LBL_13: %82 = inttoptr i64 %77 to i64* %83 = call i64 @FUNC(i64 %0, i64* %82) br label LBL_14 LBL_14: %84 = add i32 %storemerge36.reload, 1 %85 = sext i32 %84 to i64 %86 = icmp sgt i64 %58, %85 store i64 %85, i64* %.reg2mem10 store i32 %84, i32* %storemerge36.reg2mem store i64 %58, i64* %rax.0.reg2mem br i1 %86, label LBL_10, label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %58, { 0, 2, 1 } uselistorder i32 %48, { 1, 0 } uselistorder i32 %47, { 0, 2, 1 } uselistorder i64 %21, { 0, 2, 1 } uselistorder i32 %11, { 1, 0 } uselistorder i32 %10, { 0, 2, 1 } uselistorder i32 %4, { 1, 0, 2 } uselistorder i8* %3, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem10, { 1, 0, 2 } uselistorder i32* %storemerge36.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 5, 1, 3 } uselistorder i64 (i64, i64*)* @readline_add_completion, { 1, 0 } uselistorder i32 (i8*, i8*, i32)* @strncmp, { 1, 0 } uselistorder i64 (i64, i64*)* @net_hub_id_for_client, { 1, 0 } uselistorder i64 8, { 2, 0, 1 } uselistorder i32 0, { 2, 3, 0, 4, 5, 6, 7, 8, 1, 9, 10, 11 } uselistorder i64 (i64, i64*, i64, i64)* @qemu_find_net_clients_except, { 1, 0 } uselistorder i64 10, { 0, 2, 1, 3 } uselistorder label LBL_15, { 1, 3, 4, 0, 2 } uselistorder label LBL_14, { 2, 3, 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_6, { 1, 2, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
mdbJsToMyTime_9599
mdbJsToMyTime
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i32 %2 = load i128, i128* %0 %3 = load i128, i128* %0 %4 = load i32, i32* %1 %5 = load i32, i32* %1 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %6 = call i64 @FUNC(i128 %3) %7 = trunc i64 %arg2 to i32 %8 = call i128 @__asm_movsd.1(i64 %6) %9 = call i128 @__asm_movsd.1(i64 4652007308841189376) %10 = call i128 @FUNC(i128 %8, i128 %9) %11 = call i64 @FUNC(i128 %10) store i64 %11, i64* %sv_1, align 8 %12 = icmp eq i32 %7, 0 %13 = bitcast i64* %sv_1 to i32* %14 = bitcast i32* %sv_0 to %tm* br i1 %12, label LBL_2, label LBL_1 LBL_1: %15 = call %tm* @gmtime_r(i32* nonnull %13, %tm* nonnull %14) br label LBL_3 LBL_2: %16 = call %tm* @localtime_r(i32* nonnull %13, %tm* nonnull %14) br label LBL_3 LBL_3: %17 = load i32, i32* %sv_0, align 4 %18 = inttoptr i64 %arg1 to i32* store i32 %17, i32* %18, align 4 %19 = add i64 %arg1, 4 %20 = inttoptr i64 %19 to i32* %21 = add i64 %arg1, 8 %22 = inttoptr i64 %21 to i32* %23 = add i64 %arg1, 12 %24 = inttoptr i64 %23 to i32* %25 = add i32 %5, 1 %26 = add i64 %arg1, 16 %27 = inttoptr i64 %26 to i32* store i32 %25, i32* %27, align 4 %28 = add i32 %4, 1900 %29 = add i64 %arg1, 20 %30 = inttoptr i64 %29 to i32* store i32 %28, i32* %30, align 4 %31 = load i64, i64* %sv_1, align 8 %32 = call i128 @FUNC(i128 %10, i128 %10) %33 = call i128 @FUNC(i64 %31) %34 = call i128 @__asm_movsd.1(i64 4652007308841189376) %35 = call i128 @FUNC(i128 %33, i128 %34) %36 = call i64 @FUNC(i128 %35) %37 = call i128 @__asm_movsd.1(i64 %36) %38 = call i32 @__asm_cvttsd2si.2(i128 %37) %39 = call i128 @FUNC(i128 %2, i128 %2) %40 = call i128 @__asm_cvtsi2sd.3(i32 %38) %41 = call i128 @__asm_movsd.1(i64 %36) %42 = call i128 @FUNC(i128 %41) %43 = call i128 @FUNC(i128 %42, i128 %40) %44 = call i128 @__asm_movsd.1(i64 4696837146684686336) %45 = call i128 @FUNC(i128 %44, i128 %43) %46 = call i32 @__asm_cvttsd2si.2(i128 %45) %47 = add i64 %arg1, 24 %48 = inttoptr i64 %47 to i32* store i32 %46, i32* %48, align 4 ret i64 %arg1 uselistorder i64 %36, { 1, 0 } uselistorder %tm* %14, { 1, 0 } uselistorder i32* %13, { 1, 0 } uselistorder i128 %10, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0, 2 } uselistorder i32* %1, { 1, 0 } uselistorder i128* %0, { 1, 0 } }
0
BinRealVul
spatial_compose53i_dy_buffered_15815
spatial_compose53i_dy_buffered
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = add i32 %arg4, -1 %5 = add i64 %1, 4294967295 %6 = zext i32 %4 to i64 %7 = and i64 %5, 4294967295 %8 = call i64 @FUNC(i64 %7, i64 %6) %9 = and i64 %1, 4294967295 %10 = call i64 @FUNC(i64 %9, i64 %6) %11 = trunc i64 %10 to i32 %12 = add i64 %1, 1 %13 = and i64 %12, 4294967295 %14 = call i64 @FUNC(i64 %13, i64 %6) %15 = add i64 %1, 2 %16 = and i64 %15, 4294967295 %17 = call i64 @FUNC(i64 %16, i64 %6) %18 = trunc i64 %17 to i32 %19 = add i64 %3, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %3, 16 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %sext = mul i64 %14, 4294967296 %25 = ashr exact i64 %sext, 32 %sext1 = mul i64 %arg5, 4294967296 %26 = ashr exact i64 %sext1, 32 %27 = mul nsw i64 %25, %26 %28 = and i64 %27, 4294967295 %29 = call i64 @FUNC(i64 %2, i64 %28) %sext2 = mul i64 %17, 4294967296 %30 = ashr exact i64 %sext2, 32 %31 = mul nsw i64 %30, %26 %32 = and i64 %31, 4294967295 %33 = call i64 @FUNC(i64 %2, i64 %32) %34 = icmp sgt i32 %11, %18 br i1 %34, label LBL_2, label LBL_1 LBL_1: %35 = call i64 @FUNC(i64 %24, i64 %29, i64 %33, i32 %arg3) br label LBL_2 LBL_2: %36 = trunc i64 %8 to i32 %37 = trunc i64 %14 to i32 %38 = icmp sgt i32 %36, %37 br i1 %38, label LBL_4, label LBL_3 LBL_3: %39 = call i64 @FUNC(i64 %21, i64 %24, i64 %29, i32 %arg3) br label LBL_4 LBL_4: %40 = trunc i64 %1 to i32 %41 = icmp slt i32 %40, 1 br i1 %41, label LBL_6, label LBL_5 LBL_5: %42 = zext i32 %arg3 to i64 %43 = call i64 @FUNC(i64 %21, i64 %42) br label LBL_6 LBL_6: br i1 %38, label LBL_8, label LBL_7 LBL_7: %44 = zext i32 %arg3 to i64 %45 = call i64 @FUNC(i64 %24, i64 %44) br label LBL_8 LBL_8: %46 = bitcast i64* %rdi to i32* store i64 %29, i64* %20, align 8 store i64 %33, i64* %23, align 8 %47 = load i32, i32* %46, align 8 %48 = add i32 %47, 2 %49 = bitcast i64* %arg1 to i32* store i32 %48, i32* %49, align 4 ret i64 %3 uselistorder i64 %29, { 2, 1, 0 } uselistorder i64 %24, { 2, 1, 0 } uselistorder i64 %21, { 1, 0 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %1, { 0, 4, 3, 2, 1 } uselistorder i64 (i64, i64)* @horizontal_compose53i, { 1, 0 } uselistorder i64 (i64, i64)* @slice_buffer_get_line, { 1, 0 } uselistorder i64 (i64, i64)* @mirror, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 5, 6, 0, 1, 2, 3, 4, 7 } uselistorder i32 %arg3, { 3, 2, 1, 0 } }
1
BinRealVul
tg3_phy_start_8344
tg3_phy_start
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 = urem i32 %2, 2 %4 = icmp eq i32 %3, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = and i32 %2, 2 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = inttoptr i64 %12 to i32* %16 = and i32 %2, -3 %17 = bitcast i64* %arg1 to i32* store i32 %16, i32* %17, align 4 %18 = add i64 %5, 16 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 store i32 %20, i32* %15, align 4 %21 = add i64 %5, 20 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = add i64 %12, 4 %25 = inttoptr i64 %24 to i32* store i32 %23, i32* %25, align 4 %26 = add i64 %5, 24 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = add i64 %12, 8 %30 = inttoptr i64 %29 to i32* store i32 %28, i32* %30, align 4 %31 = add i64 %5, 28 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %12, 12 %35 = inttoptr i64 %34 to i32* store i32 %33, i32* %35, align 4 br label LBL_3 LBL_3: %36 = call i64 @FUNC(i64 %12) %37 = call i64 @FUNC(i64 %12) store i64 %37, 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 %5, { 0, 1, 3, 2, 4 } uselistorder i32 %2, { 1, 2, 0 } uselistorder i32 2, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
tipc_bearer_stop_6595
tipc_bearer_stop
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.2.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv4.reg2mem = alloca i64 store i64 0, i64* %indvars.iv4.reg2mem br label LBL_1 LBL_1: %indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem %0 = mul nuw nsw i64 %indvars.iv4.reload, 28 %1 = add i64 %0, ptrtoint (i32** @gv_0 to i64) %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = add i64 %0, ptrtoint (i32** @gv_1 to i64) %6 = inttoptr i64 %5 to i32* store i32 1, i32* %6, align 4 br label LBL_3 LBL_3: %indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1 %exitcond6 = icmp eq i64 %indvars.iv.next5, 10 store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem store i64 0, i64* %indvars.iv.reg2mem br i1 %exitcond6, label LBL_4, label LBL_1 LBL_4: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %7 = mul nuw nsw i64 %indvars.iv.reload, 28 %8 = add i64 %7, ptrtoint (i32** @gv_0 to i64) %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 store i64 0, i64* %rax.2.reg2mem br i1 %11, label LBL_6, label LBL_5 LBL_5: %12 = add i64 %7, add (i64 ptrtoint (i32** @gv_0 to i64), i64 8) %13 = call i64 @FUNC(i64 %12) store i64 %13, i64* %rax.2.reg2mem br label LBL_6 LBL_6: %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_7, label LBL_4 LBL_7: %rax.2.reload = load i64, i64* %rax.2.reg2mem store i32 0, i32* bitcast (i64* @gv_2 to i32*), align 8 ret i64 %rax.2.reload uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i32 0, { 1, 0, 2 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
usb_msd_init_3043
usb_msd_init
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %2 = load i32, i32* @gv_0, align 4 store i32 ptrtoint (i64* @gv_1 to i32), i32* @gv_0, align 4 %3 = zext i32 %2 to i64 %4 = bitcast i64* %sv_4 to i8* %5 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %4, i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64 %3) %6 = call i64 @FUNC(i64* nonnull @gv_3, i64* nonnull %sv_4, i64 0) %7 = inttoptr i64 %arg1 to i8* %8 = call i8* @strchr(i8* %7, i32 58) %9 = icmp eq i8* %8, null store i64 %arg1, i64* %sv_0.0.reg2mem br i1 %9, label LBL_5, label LBL_1 LBL_1: %10 = ptrtoint i8* %8 to i64 %11 = add i64 %10, 1 %12 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_3) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = load i64, i64* %sv_3, align 8 %16 = sub i64 %11, %15 %17 = icmp ult i64 %16, 32 %18 = select i1 %17, i64 %16, i64 32 %19 = call i64 @FUNC(i64* nonnull %sv_2, i64 %18, i64 %15) %20 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i64* nonnull %sv_2) store i64 %11, i64* %sv_0.0.reg2mem br label LBL_5 LBL_3: %21 = trunc i64 %1 to i8 %22 = icmp eq i8 %21, 58 store i64 %11, i64* %sv_0.0.reg2mem br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_6, i64 0, i64 0), i8* %7) store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %24 = inttoptr i64 %sv_0.0.reload to i8* %25 = load i8, i8* %24, align 1 %26 = icmp eq i8 %25, 0 %27 = icmp eq i1 %26, false br i1 %27, label LBL_7, label LBL_6 LBL_6: %28 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_7: %29 = inttoptr i64 %sv_0.0.reload to i64* %30 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_8, i64 0, i64 0), i64* %29) %31 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0), i64* bitcast ([5 x i8]* @gv_10 to i64*)) %32 = call i64 @FUNC(i64 %6, i64 0, i64* nonnull %sv_1) %33 = icmp eq i64 %32, 0 %34 = icmp eq i1 %33, false br i1 %34, label LBL_9, label LBL_8 LBL_8: %35 = call i64 @FUNC(i64 %6) store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_9: %36 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_11, i64 0, i64 0)) %37 = icmp eq i64 %36, 0 %38 = icmp eq i1 %37, false store i64 0, i64* %rax.0.reg2mem br i1 %38, label LBL_10, label LBL_11 LBL_10: %39 = call i64 @FUNC(i64 %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_12, i64 0, i64 0), i64 %32) %40 = call i64 @FUNC(i64 %36) %41 = trunc i64 %40 to i32 %42 = icmp slt i32 %41, 0 %43 = icmp eq i1 %42, false %. = select i1 %43, i64 %36, i64 0 store i64 %., 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 i64 %36, { 0, 2, 1, 3 } uselistorder i64 %11, { 1, 0, 2 } uselistorder i8* %8, { 1, 0 } uselistorder i64 %6, { 1, 4, 3, 2, 0 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3 } uselistorder i64 (i64, i8*, i64*)* @qemu_opt_set, { 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder i32* @gv_0, { 1, 0 } uselistorder i64 %arg1, { 1, 0, 2 } uselistorder label LBL_5, { 1, 0, 2 } }
0
BinRealVul
evaluate_utility_inc_17247
evaluate_utility_inc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i64 %sv_0.11.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i32 %.reg2mem6 = alloca i32 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 %4 = icmp eq i32 %2, 0 store i64 %3, i64* %.lcssa.reg2mem br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = bitcast i64* %rdi to i32* %7 = add i64 %5, 8 %8 = inttoptr i64 %7 to i64* %9 = add i64 %5, 24 %10 = inttoptr i64 %9 to i32* %11 = add i64 %5, 16 %12 = inttoptr i64 %11 to i64* store i64 0, i64* %.reg2mem store i32 %2, i32* %.reg2mem6 store i32 0, i32* %storemerge2.reg2mem store i32 0, i32* %sv_0.11.reg2mem br label LBL_2 LBL_2: %sv_0.11.reload = load i32, i32* %sv_0.11.reg2mem %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload7 = load i32, i32* %.reg2mem6 %.reload = load i64, i64* %.reg2mem %13 = load i64, i64* %8, align 8 %14 = mul i64 %.reload, 4 %15 = add i64 %13, %14 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = mul i32 %17, %.reload7 %19 = load i32, i32* %10, align 4 %20 = icmp ugt i32 %18, %19 %21 = select i1 %20, i32 %17, i32 0 %spec.select = add i32 %21, %sv_0.11.reload %22 = load i64, i64* %12, align 8 %23 = add i64 %22, %14 %24 = inttoptr i64 %23 to i32* store i32 %spec.select, i32* %24, align 4 %25 = add i32 %storemerge2.reload, 1 %26 = load i32, i32* %6, align 8 %27 = zext i32 %26 to i64 %28 = sext i32 %25 to i64 %29 = icmp slt i64 %28, %27 store i64 %28, i64* %.reg2mem store i32 %26, i32* %.reg2mem6 store i32 %25, i32* %storemerge2.reg2mem store i32 %spec.select, i32* %sv_0.11.reg2mem store i64 %27, i64* %.lcssa.reg2mem br i1 %29, label LBL_2, label LBL_3 LBL_3: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i32 %17, { 1, 0 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %5, { 0, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem6, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.11.reg2mem, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
trusted_update_6050
trusted_update
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = ptrtoint i64* %arg1 to i64 store i64 %3, i64* %rdi, align 8 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 1, i64* %rax.0.reg2mem br i1 %6, label LBL_1, label LBL_18 LBL_1: %7 = trunc i64 %3 to i32 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false store i64 2, i64* %rax.0.reg2mem br i1 %9, label LBL_2, label LBL_18 LBL_2: %10 = icmp ne i64* %arg2, null %11 = icmp ult i64* %arg2, inttoptr (i64 32768 to i64*) %or.cond = icmp eq i1 %10, %11 store i64 3, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_3, label LBL_18 LBL_3: %12 = ptrtoint i64* %arg2 to i64 %13 = add i64 %12, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 %17 = icmp eq i1 %16, false store i64 3, i64* %rax.0.reg2mem br i1 %17, label LBL_4, label LBL_18 LBL_4: %18 = add i64 %12, 1 %19 = call i64 @FUNC(i64 %18, i64 0) %20 = icmp eq i64 %19, 0 %21 = icmp eq i1 %20, false store i64 4, i64* %rax.0.reg2mem br i1 %21, label LBL_5, label LBL_18 LBL_5: %22 = call i64 @FUNC() %23 = icmp eq i64 %22, 0 %24 = icmp eq i1 %23, false store i64 4, i64* %sv_0.1.reg2mem br i1 %24, label LBL_6, label LBL_17 LBL_6: %25 = call i64 @FUNC(i64 %3) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 4, i64* %sv_0.1.reg2mem br i1 %27, label LBL_7, label LBL_17 LBL_7: %28 = load i64, i64* %14, align 8 %29 = inttoptr i64 %19 to i64* %30 = inttoptr i64 %28 to i64* %31 = trunc i64 %12 to i32 %32 = call i64* @memcpy(i64* %29, i64* %30, i32 %31) %33 = add i64 %19, %12 %34 = inttoptr i64 %33 to i8* store i8 0, i8* %34, align 1 %35 = call i64 @FUNC(i64 %19, i64 %25, i64 %22) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 1 br i1 %37, label LBL_9, label LBL_8 LBL_8: %38 = call i64 @FUNC(i64 %25) store i64 3, i64* %sv_0.1.reg2mem br label LBL_17 LBL_9: %39 = inttoptr i64 %22 to i32* %40 = load i32, i32* %39, align 4 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false br i1 %42, label LBL_11, label LBL_10 LBL_10: %43 = call i64 @FUNC(i64 %25) store i64 3, i64* %sv_0.1.reg2mem br label LBL_17 LBL_11: %44 = bitcast i64* %rdi to i32* %45 = inttoptr i64 %25 to i32* %46 = load i32, i32* %44, align 8 store i32 %46, i32* %45, align 4 %47 = add i64 %3, 8 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = add i64 %25, 8 %51 = inttoptr i64 %50 to i64* store i64 %49, i64* %51, align 8 %52 = load i64, i64* %48, align 8 %53 = add i64 %3, 16 %54 = add i64 %25, 16 %55 = inttoptr i64 %54 to i64* %56 = inttoptr i64 %53 to i64* %57 = trunc i64 %52 to i32 %58 = call i64* @memcpy(i64* %55, i64* %56, i32 %57) %59 = call i64 @FUNC(i64 %3) %60 = call i64 @FUNC(i64 %25) %61 = call i64 @FUNC(i64 %25, i64 %22) %62 = trunc i64 %61 to i32 %63 = icmp slt i32 %62, 0 %64 = icmp eq i1 %63, false br i1 %64, label LBL_13, label LBL_12 LBL_12: %65 = and i64 %61, 4294967295 %66 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %65, i64 %22, i64 %54, i64 %2, i64 %1) %67 = call i64 @FUNC(i64 %25) store i64 %61, i64* %sv_0.1.reg2mem br label LBL_17 LBL_13: %68 = add i64 %22, 4 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = icmp eq i32 %70, 0 store i64 %61, i64* %sv_0.0.reg2mem br i1 %71, label LBL_16, label LBL_14 LBL_14: %72 = zext i32 %70 to i64 %73 = call i64 @FUNC(i64 %72) %74 = trunc i64 %73 to i32 %75 = icmp slt i32 %74, 0 %76 = icmp eq i1 %75, false store i64 %73, i64* %sv_0.0.reg2mem br i1 %76, label LBL_16, label LBL_15 LBL_15: %77 = and i64 %73, 4294967295 %78 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %77, i64 %22, i64 %54, i64 %2, i64 %1) %79 = call i64 @FUNC(i64 %25) store i64 %73, i64* %sv_0.1.reg2mem br label LBL_17 LBL_16: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %80 = call i64 @FUNC(i64 %3, i64 %25) %81 = add i64 %3, 272 %82 = call i64 @FUNC(i64 %81, i64 4198961) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_17 LBL_17: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %83 = call i64 @FUNC(i64 %19) %84 = call i64 @FUNC(i64 %22) %85 = and i64 %sv_0.1.reload, 4294967295 store i64 %85, 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 %73, { 0, 2, 1, 3 } uselistorder i64 %61, { 1, 0, 2, 3 } uselistorder i64 %54, { 1, 0, 2 } uselistorder i64 %25, { 0, 1, 2, 3, 4, 5, 6, 10, 7, 8, 9, 11 } uselistorder i64 %22, { 5, 2, 0, 1, 3, 6, 4, 7 } uselistorder i64 %19, { 1, 2, 0, 3, 4 } uselistorder i64 %12, { 0, 1, 3, 2 } uselistorder i64 %3, { 4, 5, 3, 2, 1, 6, 0, 7, 8 } uselistorder i64* %rdi, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_0.1.reg2mem, { 0, 7, 6, 5, 4, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_info, { 1, 0 } uselistorder i64 (i64)* @dump_payload, { 1, 0 } uselistorder i64 (i64)* @kzfree, { 5, 4, 3, 2, 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i64 4, { 3, 1, 2, 0 } uselistorder i64 (i64, i64)* @kmalloc, { 2, 1, 0 } uselistorder i64 8, { 1, 2, 3, 0 } uselistorder i64 3, { 3, 2, 0, 1 } uselistorder i64 1, { 2, 0, 1 } uselistorder i64* %arg2, { 2, 0, 1 } uselistorder label LBL_18, { 5, 0, 1, 2, 3, 4 } uselistorder label LBL_17, { 2, 3, 4, 5, 6, 0, 1 } }
0
BinRealVul
XBMInteger_12112
XBMInteger
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %.reg2mem12 = alloca i64 %.reg2mem = alloca i32 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, -1 %5 = icmp eq i1 %4, false store i32 %3, i32* %.reg2mem store i64 %2, i64* %.reg2mem12 store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_8 LBL_1: %.reload13 = load i64, i64* %.reg2mem12 %.reload = load i32, i32* %.reg2mem store i64 %.reload13, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem switch i32 %.reload, label LBL_3 [ i32 32, label LBL_2 i32 13, label LBL_2 i32 10, label LBL_2 i32 9, label LBL_2 ] LBL_2: %6 = call i64 @FUNC(i64 %1) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, -1 %9 = icmp eq i1 %8, false store i32 %7, i32* %.reg2mem store i64 %6, i64* %.reg2mem12 store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_8 LBL_3: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %10 = icmp ult i32 %sv_0.0.reload, 214748365 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %10, label LBL_4, label LBL_7 LBL_4: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %11 = mul i32 %sv_0.0.reload, 16 %12 = mul i64 %sv_1.0.reload, 2 %13 = and i64 %12, 510 %14 = add i64 %13, %0 %15 = inttoptr i64 %14 to i16* %16 = load i16, i16* %15, align 2 %17 = sext i16 %16 to i32 %18 = sub i32 2147483647, %17 %19 = icmp ugt i32 %11, %18 store i32 %11, i32* %sv_0.1.reg2mem br i1 %19, label LBL_7, label LBL_5 LBL_5: %20 = call i64 @FUNC(i64 %1) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, -1 %23 = icmp eq i1 %22, false store i64 0, i64* %rax.0.reg2mem br i1 %23, label LBL_6, label LBL_8 LBL_6: %24 = add i32 %11, %17 %sext = mul i64 %20, 4294967296 %25 = ashr exact i64 %sext, 31 %26 = add i64 %25, %0 %27 = inttoptr i64 %26 to i16* %28 = load i16, i16* %27, align 2 %29 = icmp slt i16 %28, 0 %30 = icmp eq i1 %29, false store i64 %20, i64* %sv_1.0.reg2mem store i32 %24, i32* %sv_0.0.reg2mem store i32 %24, i32* %sv_0.1.reg2mem br i1 %30, label LBL_3, label LBL_7 LBL_7: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %31 = zext i32 %sv_0.1.reload to i64 store i64 %31, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %11, { 2, 0, 1 } uselistorder i32 %sv_0.0.reload, { 2, 0, 1 } uselistorder i64 %1, { 1, 2, 0 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem12, { 2, 0, 1 } uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 } uselistorder i1 false, { 1, 2, 3, 0 } uselistorder i32 -1, { 1, 2, 0 } uselistorder i64 (i64)* @ReadBlobByte, { 2, 1, 0 } uselistorder label LBL_8, { 3, 1, 0, 2 } uselistorder label LBL_7, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
alloc_largest_available_18327
alloc_largest_available
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %0 = call i64 @FUNC(i64 16, i64 0) %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_8 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i64* %arg1 to i64 %5 = load i32, i32* inttoptr (i64 4210824 to i32*), align 8 %6 = icmp eq i32 %5, 0 store i32 0, i32* %storemerge2.reg2mem br i1 %6, label LBL_7, label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %7 = sext i32 %storemerge2.reload to i64 %8 = mul i64 %7, 4 %9 = add i64 %8, ptrtoint (i32** @gv_0 to i64) %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = zext i32 %11 to i64 %13 = call i64 @FUNC(i64 %12) %14 = icmp ugt i64 %13, %arg3 br i1 %14, label LBL_6, label LBL_3 LBL_3: %15 = load i32, i32* %10, align 4 %16 = icmp ugt i32 %15, %arg4 br i1 %16, label LBL_6, label LBL_4 LBL_4: %17 = call i64 @FUNC(i64 %4, i64 %3, i32 %15) %18 = icmp eq i64 %17, 0 br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = inttoptr i64 %0 to i64* store i64 %17, i64* %19, align 8 %20 = load i32, i32* %10, align 4 %21 = add i64 %0, 8 %22 = inttoptr i64 %21 to i32* store i32 %20, i32* %22, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_8 LBL_6: %23 = add nuw i32 %storemerge2.reload, 1 %24 = load i32, i32* inttoptr (i64 4210824 to i32*), align 8 %25 = icmp ult i32 %23, %24 store i32 %23, i32* %storemerge2.reg2mem br i1 %25, label LBL_2, label LBL_7 LBL_7: %26 = call i64 @FUNC(i64 %0) store i64 0, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %15, { 1, 0 } uselistorder i64 %0, { 1, 0, 2, 3, 4 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i32* inttoptr (i64 4210824 to i32*), { 1, 0 } uselistorder label LBL_8, { 2, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
gen_inc_8424
gen_inc
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %.pre-phi11.reg2mem = alloca i64 %.pre-phi12.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %.pre-phi10.reg2mem = alloca i64 %1 = load i64, i64* %0 %sext = mul i64 %arg2, 4294967296 %2 = ashr exact i64 %sext, 32 %sext6 = mul i64 %arg4, 4294967296 %3 = ashr exact i64 %sext6, 32 %4 = urem i64 %1, 2 %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = trunc i64 %3 to i32 %7 = icmp slt i32 %6, 1 %. = select i1 %7, i64 4294967295, i64 1 %8 = call i64 @FUNC(i64 0, i64 %.) %9 = ptrtoint i32* %arg1 to i64 %10 = add i64 %9, 4 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = and i64 %2, 4294967294 %14 = or i64 %13, 1 %15 = zext i32 %12 to i64 %16 = call i64 @FUNC(i64 0, i64 0, i64 0, i64 %15, i64 %14) store i32 %6, i32* %.pre-phi12.reg2mem store i64 %9, i64* %.pre-phi11.reg2mem br label LBL_6 LBL_2: %17 = trunc i64 %arg3 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = and i64 %2, 4294967295 %20 = call i64 @FUNC(i64 %19, i64 0, i32 %17) %.pre = ptrtoint i32* %arg1 to i64 store i64 %19, i64* %.pre-phi10.reg2mem store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_5 LBL_4: %21 = trunc i64 %2 to i32 %22 = ptrtoint i32* %arg1 to i64 %23 = call i64 @FUNC(i64 %22, i32 %21, i64 0, i64 0) %.pre9 = and i64 %2, 4294967295 store i64 %.pre9, i64* %.pre-phi10.reg2mem store i64 %22, i64* %.pre-phi.reg2mem br label LBL_5 LBL_5: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi10.reload = load i64, i64* %.pre-phi10.reg2mem %24 = trunc i64 %3 to i32 %25 = icmp slt i32 %24, 1 %.8 = select i1 %25, i64 4294967295, i64 1 %26 = call i64 @FUNC(i64 0, i64 0, i64 %.8) %27 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %.pre-phi10.reload, i32 %17) store i32 %24, i32* %.pre-phi12.reg2mem store i64 %.pre-phi.reload, i64* %.pre-phi11.reg2mem br label LBL_6 LBL_6: %.pre-phi11.reload = load i64, i64* %.pre-phi11.reg2mem %.pre-phi12.reload = load i32, i32* %.pre-phi12.reg2mem %28 = call i64 @FUNC(i64 %.pre-phi11.reload, i64 0) %29 = call i64 @FUNC(i64 0, i64 0) %30 = icmp slt i32 %.pre-phi12.reload, 1 %31 = zext i1 %30 to i64 %32 = add nsw i64 %2, %31 %33 = and i64 %32, 4294967295 %34 = call i64 @FUNC(i64 %.pre-phi11.reload, i64 %33) ret i64 %34 uselistorder i64 %2, { 0, 1, 4, 3, 2 } uselistorder i64* %.pre-phi10.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i32* %.pre-phi12.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi11.reg2mem, { 0, 2, 1 } uselistorder i64 4294967295, { 4, 1, 0, 3, 2 } uselistorder i32* %arg1, { 2, 0, 1 } }
0
BinRealVul
hub_ioctl_10468
hub_ioctl
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge2.reg2mem = alloca i64 %.reg2mem4 = alloca i32 %storemerge3.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdx = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 %4 = call i64 @FUNC(i64 %2) %5 = call i64 @FUNC(i64 %4) %6 = icmp eq i32 %3, 1 %7 = icmp eq i1 %6, false store i64 4294967295, i64* %storemerge2.reg2mem br i1 %7, label LBL_10, label LBL_1 LBL_1: %8 = trunc i64 %1 to i32 %9 = inttoptr i64 %4 to i32* %10 = call i64 @FUNC(i64* nonnull @gv_0) %11 = load i32, i32* %9, 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_3, label LBL_2 LBL_2: %17 = bitcast i64* %arg3 to i32* store i32 0, i32* %17, align 4 store i32 %8, i32* %.reg2mem4 br label LBL_9 LBL_3: %18 = add i64 %4, 4 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = bitcast i64* %arg3 to i32* store i32 %20, i32* %21, align 4 %22 = icmp eq i32 %8, 0 store i32 0, i32* %.reg2mem4 br i1 %22, label LBL_9, label LBL_4 LBL_4: %23 = ptrtoint i64* %arg3 to i64 %24 = bitcast i64* %rdx to i32* %25 = inttoptr i64 %5 to i64* %26 = add i64 %23, 4 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge3.reg2mem br label LBL_5 LBL_5: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %.reload = load i64, i64* %.reg2mem %27 = load i64, i64* %25, align 8 %28 = mul i64 %.reload, 8 %29 = add i64 %27, %28 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_7, label LBL_6 LBL_6: %36 = mul i64 %.reload, 4 %37 = add i64 %36, %26 %38 = inttoptr i64 %37 to i32* store i32 0, i32* %38, align 4 br label LBL_8 LBL_7: %39 = inttoptr i64 %33 to i32* %40 = load i32, i32* %39, align 4 %41 = mul i64 %.reload, 4 %42 = add i64 %41, %26 %43 = inttoptr i64 %42 to i32* store i32 %40, i32* %43, align 4 br label LBL_8 LBL_8: %44 = add i32 %storemerge3.reload, 1 %45 = load i32, i32* %24, align 8 %46 = zext i32 %45 to i64 %47 = sext i32 %44 to i64 %48 = icmp slt i64 %47, %46 store i64 %47, i64* %.reg2mem store i32 %44, i32* %storemerge3.reg2mem store i32 %45, i32* %.reg2mem4 br i1 %48, label LBL_5, label LBL_9 LBL_9: %.reload5 = load i32, i32* %.reg2mem4 %49 = call i64 @FUNC(i64* nonnull @gv_0) %50 = add i32 %.reload5, 1 %51 = zext i32 %50 to i64 store i64 %51, i64* %storemerge2.reg2mem br label LBL_10 LBL_10: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem ret i64 %storemerge2.reload uselistorder i64 %.reload, { 2, 1, 0 } uselistorder i32 %11, { 1, 0 } uselistorder i32 %8, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 3, 1, 0, 2, 4, 5, 6 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder i64* %arg3, { 2, 0, 1 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
ff_ivi_decode_close_3089
ff_ivi_decode_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = call i64 @FUNC(i64 %1) %3 = icmp eq i64 %1, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %0) br label LBL_2 LBL_2: %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = call i64 @FUNC(i64 %5) br label LBL_4 LBL_4: %10 = add i64 %0, 24 %11 = call i64 @FUNC(i64 %10) ret i64 0 uselistorder i64 %0, { 1, 2, 0, 3 } uselistorder i64 (i64)* @ff_free_vlc, { 1, 0 } }
0
BinRealVul
build_huff_14639
build_huff
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %sv_0.06.reg2mem = alloca i32 %storemerge7.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i32 %sv_1.08.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %2 = load i32, i32* %0 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %3 = ptrtoint i64* %sv_4 to i64 %4 = bitcast i64* %arg3 to i32* store i32 -1, i32* %4, align 4 %5 = add i64 %3, -2064 %6 = add i64 %3, -2060 store i64 0, i64* %indvars.iv.reg2mem store i64 %1, i64* %sv_1.08.reg2mem br label LBL_1 LBL_1: %sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %7 = mul i64 %indvars.iv.reload, 8 %8 = add i64 %7, %5 %9 = inttoptr i64 %8 to i32* %10 = trunc i64 %indvars.iv.reload to i32 store i32 %10, i32* %9, align 8 %11 = add i64 %sv_1.08.reload, 1 %12 = inttoptr i64 %sv_1.08.reload to i8* %13 = load i8, i8* %12, align 1 %14 = zext i8 %13 to i32 %15 = add i64 %7, %6 %16 = inttoptr i64 %15 to i32* store i32 %14, i32* %16, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 256 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %11, i64* %sv_1.08.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: call void @qsort(i64* nonnull %sv_3, i32 256, i32 8, i32 (i64*, i64*)* inttoptr (i64 4198694 to i32 (i64*, i64*)*)) %17 = icmp eq i32 %2, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = load i64, i64* %sv_3, align 8 %20 = trunc i64 %19 to i32 store i32 %20, i32* %4, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_4: %21 = ptrtoint i64* %arg2 to i64 %22 = icmp slt i32 %2, 33 store i32 255, i32* %storemerge2.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %22, label LBL_5, label LBL_11 LBL_5: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %23 = sext i32 %storemerge2.reload to i64 %24 = mul i64 %23, 8 %25 = add i64 %24, %6 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, 255 %29 = icmp eq i32 %storemerge2.reload, 0 %30 = icmp eq i1 %29, false %or.cond = icmp eq i1 %28, %30 %31 = add i32 %storemerge2.reload, -1 store i32 %31, i32* %storemerge2.reg2mem br i1 %or.cond, label LBL_5, label LBL_6 LBL_6: %32 = icmp slt i32 %storemerge2.reload, 0 %33 = icmp eq i1 %32, false store i32 %27, i32* %.reg2mem br i1 %33, label LBL_7, label LBL_10 LBL_7: %34 = add i64 %3, -3088 store i32 %storemerge2.reload, i32* %storemerge7.reg2mem store i32 1, i32* %sv_0.06.reg2mem br label LBL_8 LBL_8: %sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem %storemerge7.reload = load i32, i32* %storemerge7.reg2mem %35 = sext i32 %storemerge7.reload to i64 %36 = mul i64 %35, 8 %37 = add i64 %36, %6 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = sub i32 0, %39 %41 = urem i32 %40, 32 %42 = lshr i32 %sv_0.06.reload, %41 %43 = mul i64 %35, 4 %44 = add i64 %34, %43 %45 = inttoptr i64 %44 to i32* store i32 %42, i32* %45, align 4 %46 = load i32, i32* %38, align 4 %47 = trunc i32 %46 to i8 %48 = add i64 %35, %3 %49 = add i64 %48, -3344 %50 = inttoptr i64 %49 to i8* store i8 %47, i8* %50, align 1 %51 = add i64 %36, %5 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 8 %54 = trunc i32 %53 to i8 %55 = add i64 %48, -3600 %56 = inttoptr i64 %55 to i8* store i8 %54, i8* %56, align 1 %57 = load i32, i32* %38, align 4 %58 = add i32 %57, 31 %59 = urem i32 %58, 32 %60 = lshr i32 -2147483648, %59 %61 = add i32 %60, %sv_0.06.reload %62 = add i32 %storemerge7.reload, -1 %63 = icmp slt i32 %62, 0 %64 = icmp eq i1 %63, false store i32 %62, i32* %storemerge7.reg2mem store i32 %61, i32* %sv_0.06.reg2mem br i1 %64, label LBL_8, label LBL_9 LBL_9: %.pre = load i32, i32* %26, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_10 LBL_10: %.reload = load i32, i32* %.reg2mem %65 = add i32 %storemerge2.reload, 1 %66 = add i32 %.reload, -11 %67 = sub i32 10, %.reload %68 = and i32 %67, %.reload %69 = icmp slt i32 %68, 0 %70 = icmp eq i32 %66, 0 %71 = icmp slt i32 %66, 0 %72 = icmp ne i1 %71, %69 %73 = or i1 %70, %72 %74 = select i1 %73, i32 %.reload, i32 11 %75 = zext i32 %65 to i64 %76 = call i64 @FUNC(i64 %21, i32 %74, i64 %75, i64* nonnull %sv_2, i64 1, i64 1) store i64 %76, 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 %66, { 1, 0 } uselistorder i32 %.reload, { 1, 3, 0, 2 } uselistorder i64 %36, { 1, 0 } uselistorder i64 %35, { 2, 0, 1 } uselistorder i32 %sv_0.06.reload, { 1, 0 } uselistorder i32 %storemerge2.reload, { 5, 0, 4, 2, 3, 1 } uselistorder i64 %7, { 1, 0 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.08.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 255, { 1, 0 } uselistorder i1 false, { 2, 0, 1, 3 } uselistorder i32 0, { 3, 4, 5, 6, 2, 0, 1, 7 } uselistorder i64 1, { 2, 1, 0, 3 } uselistorder i32 -1, { 1, 0, 2 } uselistorder label LBL_11, { 1, 0, 2 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
skb_orphan_partial_8343
skb_orphan_partial
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 = and i64 %1, 4294967295 %4 = icmp slt i32 %2, 3 store i64 %3, i64* %rax.0.reg2mem br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 4198768 %10 = icmp eq i1 %9, false br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = add i64 %5, 16 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %1, 4294967295 %15 = and i64 %14, 4294967295 %16 = call i64 @FUNC(i64 %15, i64 %13) %17 = bitcast i64* %arg1 to i32* store i32 1, i32* %17, align 4 store i64 %5, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %18 = call i64 @FUNC(i64 %5) store i64 %18, 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 %5, { 3, 0, 2, 1 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder label LBL_4, { 1, 2, 0 } }
0
BinRealVul
wsrep_order_and_check_continuity_10205
wsrep_order_and_check_continuity
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: ret i64 0 }
0
BinRealVul
cpu_handle_ioreq_3133
cpu_handle_ioreq
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = icmp eq i64 %1, 0 store i64 %2, i64* %rax.0.reg2mem br i1 %3, label LBL_9, label LBL_1 LBL_1: %4 = inttoptr i64 %1 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %1, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 store i64 %5, i64* %sv_0, align 8 %9 = call i64 @FUNC() %10 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0) store i64 %8, i64* %7, align 8 %11 = add i64 %1, 28 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = icmp eq i32 %13, 1 br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = add i64 %1, 24 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i64 %1, 20 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i64 %1, 16 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = load i64, i64* %4, align 8 %25 = add i64 %1, 32 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %29 = trunc i64 %24 to i32 %30 = trunc i64 %8 to i32 %31 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([111 x i8], [111 x i8]* @gv_1, i64 0, i64 0), i32 %13, i32 %27, i32 %29, i32 %30, i32 %23, i32 %20, i32 %17) %32 = call i64 @FUNC(i64 0) store i64 %32, i64* %rax.0.reg2mem br label LBL_9 LBL_3: %33 = call i64 @FUNC() %34 = call i64 @FUNC() %35 = trunc i64 %34 to i8 %36 = icmp eq i8 %35, 0 store i64 %0, i64* %rdi.1.reg2mem br i1 %36, label LBL_8, label LBL_4 LBL_4: %37 = call i64 @FUNC() %38 = trunc i64 %37 to i8 %39 = icmp eq i8 %38, 0 store i64 %0, i64* %rdi.0.reg2mem br i1 %39, label LBL_6, label LBL_5 LBL_5: %40 = call i64 @FUNC(i64 0) store i64 0, i64* %rdi.0.reg2mem br label LBL_6 LBL_6: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %41 = call i64 @FUNC() %42 = trunc i64 %41 to i32 %43 = icmp eq i32 %42, 0 store i64 %rdi.0.reload, i64* %rdi.1.reg2mem br i1 %43, label LBL_8, label LBL_7 LBL_7: %44 = and i64 %41, 4294967295 %45 = call i64 @FUNC(i64 %44) %46 = call i64 @FUNC(i64 1) store i64 1, i64* %rdi.1.reg2mem br label LBL_8 LBL_8: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem store i32 2, i32* %12, align 4 %47 = add i64 %0, 8 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = add i64 %0, 16 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = sext i32 %52 to i64 %54 = mul i64 %53, 4 %55 = add i64 %54, %49 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = sext i32 %57 to i64 %59 = call i64 @FUNC(i64 %rdi.1.reload, i64 %58) store i64 %59, 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 %1, { 4, 3, 1, 2, 0, 5, 6, 7 } uselistorder i64 %0, { 3, 2, 1, 0, 4, 5, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64 1, { 0, 2, 1 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64 (i64)* @destroy_hvm_domain, { 2, 1, 0 } }
0
BinRealVul
replace_map_fd_with_map_ptr_19240
replace_map_fd_with_map_ptr
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %rdx.1.reg2mem = alloca i64 %rcx.1.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %rsi.0.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %storemerge32.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_1.134.reg2mem = alloca i32 %rcx.235.reg2mem = alloca i64 %rdx.236.reg2mem = alloca i64 %rsi.237.reg2mem = alloca i64 %sv_0.138.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp sgt i32 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_1, label LBL_31 LBL_1: %8 = add i32 %6, -1 %9 = add i64 %3, 1032 %10 = inttoptr i64 %9 to i32* store i64 %3, i64* %sv_0.138.reg2mem store i32 0, i32* %sv_1.134.reg2mem br label LBL_2 LBL_2: %sv_1.134.reload = load i32, i32* %sv_1.134.reg2mem %rcx.235.reload = load i64, i64* %rcx.235.reg2mem %rdx.236.reload = load i64, i64* %rdx.236.reg2mem %rsi.237.reload = load i64, i64* %rsi.237.reg2mem %sv_0.138.reload = load i64, i64* %sv_0.138.reg2mem %11 = inttoptr i64 %sv_0.138.reload to i32* %12 = load i32, i32* %11, align 4 %13 = urem i32 %12, 8 %14 = icmp eq i32 %13, 1 %15 = icmp eq i1 %14, false br i1 %15, label LBL_6, label LBL_3 LBL_3: %16 = and i32 %12, 56 %17 = icmp eq i32 %16, 48 %18 = icmp eq i1 %17, false br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = add i64 %sv_0.138.reload, 16 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_6, label LBL_5 LBL_5: %23 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %rsi.237.reload, i64 %rdx.236.reload, i64 %rcx.235.reload, i64 %2, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_31 LBL_6: %24 = icmp eq i32 %13, 2 %25 = icmp eq i1 %24, false br i1 %25, label LBL_10, label LBL_7 LBL_7: %26 = and i32 %12, 56 %27 = icmp ne i32 %26, 48 %28 = icmp eq i32 %26, 56 %29 = icmp eq i1 %28, false %or.cond = icmp eq i1 %27, %29 br i1 %or.cond, label LBL_9, label LBL_8 LBL_8: %30 = add i64 %sv_0.138.reload, 16 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_10, label LBL_9 LBL_9: %34 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %rsi.237.reload, i64 %rdx.236.reload, i64 %rcx.235.reload, i64 %2, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_31 LBL_10: %35 = icmp eq i32 %12, 7 %36 = icmp eq i1 %35, false store i32 %sv_1.134.reload, i32* %sv_1.0.reg2mem store i64 %rcx.235.reload, i64* %rcx.1.reg2mem store i64 %rdx.236.reload, i64* %rdx.1.reg2mem store i64 %rsi.237.reload, i64* %rsi.1.reg2mem store i64 %sv_0.138.reload, i64* %sv_0.0.reg2mem br i1 %36, label LBL_30, label LBL_11 LBL_11: %37 = icmp eq i32 %sv_1.134.reload, %8 br i1 %37, label LBL_16, label LBL_12 LBL_12: %38 = add i64 %sv_0.138.reload, 20 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false br i1 %42, label LBL_16, label LBL_13 LBL_13: %43 = add i64 %sv_0.138.reload, 24 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false br i1 %47, label LBL_16, label LBL_14 LBL_14: %48 = add i64 %sv_0.138.reload, 28 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = icmp eq i32 %50, 0 %52 = icmp eq i1 %51, false br i1 %52, label LBL_16, label LBL_15 LBL_15: %53 = add i64 %sv_0.138.reload, 32 %54 = inttoptr i64 %53 to i32* %55 = load i32, i32* %54, align 4 %56 = icmp eq i32 %55, 0 br i1 %56, label LBL_17, label LBL_16 LBL_16: %57 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %rsi.237.reload, i64 %rdx.236.reload, i64 %rcx.235.reload, i64 %2, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_31 LBL_17: %58 = add i64 %sv_0.138.reload, 8 %59 = inttoptr i64 %58 to i32* %60 = load i32, i32* %59, align 4 store i64 %rcx.235.reload, i64* %rcx.0.reg2mem store i64 %rdx.236.reload, i64* %rdx.0.reg2mem store i64 %rsi.237.reload, i64* %rsi.0.reg2mem switch i32 %60, label LBL_18 [ i32 0, label LBL_29 i32 8, label LBL_19 ] LBL_18: %61 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_3, i64 0, i64 0), i64 %rsi.237.reload, i64 %rdx.236.reload, i64 %rcx.235.reload, i64 %2, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_31 LBL_19: %62 = add i64 %sv_0.138.reload, 16 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = zext i32 %64 to i64 %66 = call i64 @FUNC(i64 %65) %67 = call i64 @FUNC() %68 = call i64 @FUNC(i64 %67) %69 = trunc i64 %68 to i32 %70 = icmp eq i32 %69, 0 br i1 %70, label LBL_21, label LBL_20 LBL_20: %71 = load i32, i32* %63, align 4 %72 = zext i32 %71 to i64 %73 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_4, i64 0, i64 0), i64 %72, i64 %rdx.236.reload, i64 %rcx.235.reload, i64 %2, i64 %1) %sext = mul i64 %67, 4294967296 %74 = ashr exact i64 %sext, 32 %75 = call i64 @FUNC(i64 %74) store i64 %75, i64* %rax.0.reg2mem br label LBL_31 LBL_21: %76 = trunc i64 %67 to i32 store i32 %76, i32* %63, align 4 %77 = ashr i32 %76, 31 %78 = add i64 %sv_0.138.reload, 36 %79 = inttoptr i64 %78 to i32* store i32 %77, i32* %79, align 4 %80 = load i32, i32* %10, align 4 %81 = icmp eq i32 %80, 0 %.pre = mul i64 %67, 4294967296 %.pre113 = ashr exact i64 %.pre, 32 br i1 %81, label LBL_28, label LBL_22 LBL_22: %82 = zext i32 %80 to i64 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge32.reg2mem br label LBL_23 LBL_23: %.reload = load i64, i64* %.reg2mem %83 = mul i64 %.reload, 8 %84 = add i64 %83, %4 %85 = inttoptr i64 %84 to i64* %86 = load i64, i64* %85, align 8 %87 = icmp eq i64 %86, %.pre113 %88 = icmp eq i1 %87, false br i1 %88, label LBL_25, label LBL_24 LBL_24: %89 = call i64 @FUNC() store i64 %rcx.235.reload, i64* %rcx.0.reg2mem store i64 %.reload, i64* %rdx.0.reg2mem store i64 %rsi.237.reload, i64* %rsi.0.reg2mem br label LBL_29 LBL_25: %storemerge32.reload = load i32, i32* %storemerge32.reg2mem %90 = add i32 %storemerge32.reload, 1 %91 = sext i32 %90 to i64 %92 = icmp slt i64 %91, %82 store i64 %91, i64* %.reg2mem store i32 %90, i32* %storemerge32.reg2mem br i1 %92, label LBL_23, label LBL_26 LBL_26: %93 = icmp slt i32 %80, 128 br i1 %93, label LBL_28, label LBL_27 LBL_27: %94 = call i64 @FUNC() store i64 4294967289, i64* %rax.0.reg2mem br label LBL_31 LBL_28: %95 = add i32 %80, 1 store i32 %95, i32* %10, align 4 %96 = sext i32 %80 to i64 %97 = mul i64 %96, 8 %98 = add i64 %97, %4 %99 = inttoptr i64 %98 to i64* store i64 %.pre113, i64* %99, align 8 %100 = call i64 @FUNC(i64 %.pre113, i64 0) %101 = call i64 @FUNC() store i64 %.pre113, i64* %rcx.0.reg2mem store i64 %3, i64* %rdx.0.reg2mem store i64 0, i64* %rsi.0.reg2mem br label LBL_29 LBL_29: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %102 = add i32 %sv_1.134.reload, 1 store i32 %102, i32* %sv_1.0.reg2mem store i64 %rcx.0.reload, i64* %rcx.1.reg2mem store i64 %rdx.0.reload, i64* %rdx.1.reg2mem store i64 %rsi.0.reload, i64* %rsi.1.reg2mem store i64 %38, i64* %sv_0.0.reg2mem br label LBL_30 LBL_30: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %rdx.1.reload = load i64, i64* %rdx.1.reg2mem %rcx.1.reload = load i64, i64* %rcx.1.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %103 = add i32 %sv_1.0.reload, 1 %104 = add i64 %sv_0.0.reload, 20 %105 = icmp slt i32 %103, %6 store i64 %104, i64* %sv_0.138.reg2mem store i64 %rsi.1.reload, i64* %rsi.237.reg2mem store i64 %rdx.1.reload, i64* %rdx.236.reg2mem store i64 %rcx.1.reload, i64* %rcx.235.reg2mem store i32 %103, i32* %sv_1.134.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %105, label LBL_2, label LBL_31 LBL_31: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %80, { 1, 0, 2, 3, 4 } uselistorder i64 %67, { 0, 2, 1, 3 } uselistorder i32* %63, { 1, 0, 2 } uselistorder i32 %13, { 1, 0 } uselistorder i32 %12, { 1, 2, 3, 0 } uselistorder i64 %sv_0.138.reload, { 10, 4, 5, 6, 7, 8, 9, 0, 1, 3, 2 } uselistorder i64 %rsi.237.reload, { 1, 5, 2, 6, 0, 4, 3 } uselistorder i64 %rdx.236.reload, { 4, 5, 1, 6, 0, 3, 2 } uselistorder i64 %rcx.235.reload, { 1, 5, 6, 2, 7, 0, 4, 3 } uselistorder i32 %sv_1.134.reload, { 1, 2, 0 } uselistorder i32 %6, { 2, 1, 0 } uselistorder i64 %2, { 4, 3, 2, 1, 0 } uselistorder i64 %1, { 4, 3, 2, 1, 0 } uselistorder i64* %sv_0.138.reg2mem, { 1, 0, 2 } uselistorder i64* %rsi.237.reg2mem, { 1, 0 } uselistorder i64* %rdx.236.reg2mem, { 1, 0 } uselistorder i64* %rcx.235.reg2mem, { 1, 0 } uselistorder i32* %sv_1.134.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge32.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 7, 6, 5, 8, 4, 3, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 ()* @fdput, { 2, 0, 1 } uselistorder i64 4294967274, { 2, 3, 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @verbose, { 4, 3, 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6, 7, 8 } uselistorder i32 8, { 1, 0 } uselistorder i32 0, { 0, 2, 5, 4, 6, 7, 8, 9, 10, 11, 1, 3 } uselistorder label LBL_31, { 0, 2, 3, 4, 5, 6, 7, 1 } uselistorder label LBL_29, { 1, 2, 0 } uselistorder label LBL_28, { 1, 0 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
handle_sw_breakpoint_14965
handle_sw_breakpoint
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, -4 %3 = call i64 @FUNC(i64 %0, 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: store i64 %2, i64* %arg1, align 8 br label LBL_2 LBL_2: ret i64 1 uselistorder i64 %0, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
qmp_query_blockstats_3506
qmp_query_blockstats
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.reg2mem2 = alloca i64 %sv_0.01.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 store i64 0, i64* %sv_1, align 8 %0 = call i64 @FUNC(i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %.reg2mem2 br i1 %2, label LBL_1, label LBL_4 LBL_1: %3 = ptrtoint i64* %sv_1 to i64 store i64 %0, i64* %.reg2mem store i64 %3, i64* %sv_0.01.reg2mem br label LBL_2 LBL_2: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %.reload = load i64, i64* %.reg2mem %4 = call i64 @FUNC(i64 16) %5 = call i64 @FUNC(i64 %.reload) %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64 %.reload) %8 = inttoptr i64 %4 to i64* store i64 %7, i64* %8, align 8 %9 = call i64 @FUNC(i64 %5) %10 = inttoptr i64 %sv_0.01.reload to i64* store i64 %4, i64* %10, align 8 %11 = add i64 %4, 8 %12 = call i64 @FUNC(i64 %.reload) %13 = icmp eq i64 %12, 0 %14 = icmp eq i1 %13, false store i64 %12, i64* %.reg2mem store i64 %11, i64* %sv_0.01.reg2mem br i1 %14, label LBL_2, label LBL_3 LBL_3: %.pre = load i64, i64* %sv_1, align 8 store i64 %.pre, i64* %.reg2mem2 br label LBL_4 LBL_4: %.reload3 = load i64, i64* %.reg2mem2 ret i64 %.reload3 uselistorder i64 %.reload, { 2, 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem2, { 0, 2, 1 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64)* @bdrv_next, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
s_mp_mul_digs_12120
s_mp_mul_digs
define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i32* %storemerge9.lcssa.reg2mem = alloca i32 %sv_1.0.lcssa.reg2mem = alloca i32 %sv_1.011.reg2mem = alloca i64 %sv_0.0.in12.reg2mem = alloca i64 %sv_2.0.in13.reg2mem = alloca i64 %storemerge914.reg2mem = alloca i32 %sv_0.015.reg2mem = alloca i32* %indvars.iv.reg2mem = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg3 to i64 %4 = load i64, i64* %0 %sv_3 = alloca i64, align 8 %5 = trunc i64 %arg4 to i32 %sext = mul i64 %arg4, 4294967296 %6 = ashr exact i64 %sext, 32 %7 = icmp eq i32 %5, 0 %8 = icmp slt i32 %5, 0 %9 = icmp eq i1 %8, false %10 = icmp eq i1 %7, false %11 = icmp eq i1 %9, %10 %12 = trunc i64 %2 to i32 %13 = trunc i64 %1 to i32 br i1 %11, label LBL_3, label LBL_1 LBL_1: %14 = sub i32 %12, %13 %15 = xor i64 %2, %1 %16 = trunc i64 %15 to i32 %17 = xor i32 %14, %12 %18 = and i32 %17, %16 %19 = icmp slt i32 %18, 0 %20 = icmp eq i32 %14, 0 %21 = icmp slt i32 %14, 0 %22 = icmp ne i1 %21, %19 %23 = or i1 %20, %22 %24 = select i1 %23, i32 %12, i32 %13 %25 = icmp eq i32 %24, 0 %26 = icmp slt i32 %24, 0 %27 = icmp eq i1 %26, false %28 = icmp eq i1 %25, false %29 = icmp eq i1 %27, %28 br i1 %29, label LBL_3, label LBL_2 LBL_2: %30 = trunc i64 %6 to i32 %31 = ptrtoint i32* %arg2 to i64 %32 = ptrtoint i32* %arg1 to i64 %33 = call i64 @FUNC(i64 %32, i64 %31, i64 %3, i32 %30) store i64 %33, i64* %rax.0.reg2mem br label LBL_16 LBL_3: %34 = and i64 %6, 4294967295 %35 = call i64 @FUNC(i64* nonnull %sv_3, i64 %34) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 0 br i1 %37, label LBL_5, label LBL_4 LBL_4: %38 = and i64 %35, 4294967295 store i64 %38, i64* %rax.0.reg2mem br label LBL_16 LBL_5: store i64 %6, i64* %sv_3, align 8 %39 = icmp sgt i32 %13, 0 br i1 %39, label LBL_6, label LBL_15 LBL_6: %40 = trunc i64 %6 to i32 %41 = bitcast i64* %rsi to i32* %42 = ptrtoint i32* %arg1 to i64 %43 = add i64 %42, 8 %44 = inttoptr i64 %43 to i64* %45 = ptrtoint i32* %arg2 to i64 %46 = add i64 %45, 8 %47 = inttoptr i64 %46 to i64* %wide.trip.count = and i64 %1, 4294967295 store i32 %12, i32* %.reg2mem store i64 0, i64* %indvars.iv.reg2mem br label LBL_7 LBL_7: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %.reload = load i32, i32* %.reg2mem %48 = trunc i64 %indvars.iv.reload to i32 %49 = sub i32 %40, %48 %50 = sub i32 %49, %.reload %51 = xor i32 %49, %.reload %52 = xor i32 %50, %49 %53 = and i32 %52, %51 %54 = icmp slt i32 %53, 0 %55 = icmp eq i32 %50, 0 %56 = icmp slt i32 %50, 0 %57 = icmp ne i1 %56, %54 %58 = or i1 %55, %57 %59 = select i1 %58, i32 %49, i32 %.reload %60 = load i64, i64* %44, align 8 %61 = mul i64 %indvars.iv.reload, 4 %62 = add i64 %60, %61 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = add i64 %61, %4 %sv_0.010 = inttoptr i64 %65 to i32* %66 = icmp sgt i32 %59, 0 store i32 0, i32* %sv_1.0.lcssa.reg2mem store i32 0, i32* %storemerge9.lcssa.reg2mem store i32* %sv_0.010, i32** %sv_0.0.lcssa.reg2mem br i1 %66, label LBL_8, label LBL_11 LBL_8: %67 = zext i32 %64 to i64 %68 = load i64, i64* %47, align 8 store i32* %sv_0.010, i32** %sv_0.015.reg2mem store i32 0, i32* %storemerge914.reg2mem store i64 %68, i64* %sv_2.0.in13.reg2mem store i64 %65, i64* %sv_0.0.in12.reg2mem store i64 0, i64* %sv_1.011.reg2mem br label LBL_9 LBL_9: %sv_1.011.reload = load i64, i64* %sv_1.011.reg2mem %sv_0.0.in12.reload = load i64, i64* %sv_0.0.in12.reg2mem %sv_2.0.in13.reload = load i64, i64* %sv_2.0.in13.reg2mem %storemerge914.reload = load i32, i32* %storemerge914.reg2mem %sv_0.015.reload = load i32*, i32** %sv_0.015.reg2mem %sv_2.0 = inttoptr i64 %sv_2.0.in13.reload to i32* %69 = load i32, i32* %sv_0.015.reload, align 4 %70 = zext i32 %69 to i64 %71 = add i64 %sv_2.0.in13.reload, 4 %72 = load i32, i32* %sv_2.0, align 4 %73 = zext i32 %72 to i64 %74 = mul nuw i64 %73, %67 %75 = add nuw nsw i64 %sv_1.011.reload, %70 %76 = add i64 %75, %74 %77 = add i64 %sv_0.0.in12.reload, 4 %78 = trunc i64 %76 to i32 store i32 %78, i32* %sv_0.015.reload, align 4 %79 = udiv i64 %76, 4294967296 %80 = add nuw nsw i32 %storemerge914.reload, 1 %sv_0.0 = inttoptr i64 %77 to i32* %exitcond = icmp eq i32 %80, %59 store i32* %sv_0.0, i32** %sv_0.015.reg2mem store i32 %80, i32* %storemerge914.reg2mem store i64 %71, i64* %sv_2.0.in13.reg2mem store i64 %77, i64* %sv_0.0.in12.reg2mem store i64 %79, i64* %sv_1.011.reg2mem br i1 %exitcond, label LBL_10, label LBL_9 LBL_10: %81 = trunc i64 %79 to i32 store i32 %81, i32* %sv_1.0.lcssa.reg2mem store i32 %59, i32* %storemerge9.lcssa.reg2mem store i32* %sv_0.0, i32** %sv_0.0.lcssa.reg2mem br label LBL_11 LBL_11: %storemerge9.lcssa.reload = load i32, i32* %storemerge9.lcssa.reg2mem %82 = add i32 %storemerge9.lcssa.reload, %48 %83 = zext i32 %82 to i64 %84 = icmp sgt i64 %6, %83 br i1 %84, label LBL_12, label LBL_13 LBL_12: %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 store i32 %sv_1.0.lcssa.reload, i32* %sv_0.0.lcssa.reload, align 4 br label LBL_13 LBL_13: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond22 = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond22, label LBL_15, label LBL_13.LBL_7_crit_edge LBL_14: %.pre = load i32, i32* %41, align 8 store i32 %.pre, i32* %.reg2mem store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br label LBL_7 LBL_15: %85 = call i64 @FUNC(i64* nonnull %sv_3) %86 = call i64 @FUNC(i64* nonnull %sv_3, i64 %3) %87 = call i64 @FUNC(i64* nonnull %sv_3) store i64 0, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %79, { 1, 0 } uselistorder i32* %sv_0.015.reload, { 1, 0 } uselistorder i32* %sv_0.010, { 1, 0 } uselistorder i64 %61, { 1, 0 } uselistorder i32 %50, { 1, 2, 0 } uselistorder i32 %49, { 2, 0, 1, 3 } uselistorder i32 %.reload, { 0, 2, 1 } uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i32 %24, { 1, 0 } uselistorder i32 %14, { 1, 2, 0 } uselistorder i32 %13, { 0, 2, 1 } uselistorder i32 %12, { 0, 3, 1, 2 } uselistorder i64 %6, { 0, 2, 1, 3, 4 } uselistorder i32 %5, { 1, 0 } uselistorder i64* %sv_3, { 0, 1, 2, 4, 3 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 2, 0 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32** %sv_0.015.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge914.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.0.in13.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.in12.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.011.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge9.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32** %sv_0.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 4, { 1, 2, 0 } uselistorder i64 4294967295, { 1, 2, 3, 0 } uselistorder i64 4294967296, { 2, 0, 1 } uselistorder i32* %arg2, { 1, 0 } uselistorder i32* %arg1, { 1, 0 } uselistorder label LBL_13, { 1, 0 } }
1
BinRealVul
filter_addr_9294
filter_addr
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null %3 = icmp eq i1 %2, false %4 = trunc i64 %1 to i16 %5 = icmp eq i16 %4, 2 %or.cond = icmp eq i1 %3, %5 store i64 1, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_6 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = call i32 @htonl(i32 0) %11 = icmp eq i32 %9, %10 %12 = icmp eq i1 %11, false store i64 1, i64* %rax.0.reg2mem br i1 %12, label LBL_2, label LBL_6 LBL_2: %13 = load i32, i32* %8, align 4 %14 = call i32 @htonl(i32 2130706433) %15 = icmp eq i32 %13, %14 %16 = icmp eq i1 %15, false store i64 1, i64* %rax.0.reg2mem br i1 %16, label LBL_3, label LBL_6 LBL_3: %17 = call i64 @FUNC(i64 %6) %18 = icmp eq i64 %17, 0 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = add i64 %17, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = call i32 @htonl(i32 0) %23 = icmp eq i32 %21, %22 store i64 1, i64* %rax.0.reg2mem br i1 %23, label LBL_5, label LBL_6 LBL_5: 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* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_6, { 4, 0, 1, 2, 3 } }
0
BinRealVul
btrfs_find_device_by_devspec_10988
btrfs_find_device_by_devspec
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) 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 = icmp eq i64 %arg2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %2, i64 %arg2, i64 0, i64 0) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %. = select i1 %6, i64 %4, i64 -2 store i64 %., i64* %rax.0.reg2mem br label LBL_5 LBL_2: %7 = trunc i64 %1 to i8 %8 = icmp ne i8* %arg3, null %9 = icmp eq i8 %7, 0 %10 = icmp eq i1 %9, false %or.cond = icmp eq i1 %8, %10 store i64 -22, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_3, label LBL_5 LBL_3: %11 = call i32 @strcmp(i8* nonnull %arg3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0)) %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 -2, i64* %rax.0.reg2mem br i1 %13, label LBL_4, label LBL_5 LBL_4: %14 = ptrtoint i8* %arg3 to i64 %15 = call i64 @FUNC(i64 %2, i64 %14) store i64 %15, 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 %2, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder label LBL_5, { 3, 1, 0, 2 } }
1
BinRealVul
perf_event_exit_cpu_12587
perf_event_exit_cpu
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sext = mul i64 %arg1, 4294967296 %0 = ashr exact i64 %sext, 29 %1 = add i64 %0, ptrtoint (i8** @gv_0 to i64) %2 = and i64 %arg1, 4294967295 %3 = call i64 @FUNC(i64 %2) %4 = add i64 %0, add (i64 ptrtoint (i8** @gv_0 to i64), i64 4) %5 = call i64 @FUNC(i64 %4) %6 = inttoptr i64 %1 to i8* store i8 0, i8* %6, align 8 %7 = call i64 @FUNC(i64 %1) %8 = call i64 @FUNC(i64 %4) ret i64 %8 uselistorder i64 %arg1, { 1, 0 } }
1
BinRealVul
carddav_writecard_7678
carddav_writecard
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_1.19.reg2mem = alloca i32 %storemerge410.reg2mem = alloca i64 %storemerge11.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 store i64 0, i64* %sv_3, align 8 store i64 0, i64* %sv_2, align 8 %1 = icmp eq i64* %arg3, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_1, label LBL_28 LBL_1: %3 = ptrtoint i64* %arg3 to i64 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i64* %8 = add i64 %0, 24 %9 = inttoptr i64 %8 to i64* %10 = add i64 %0, 36 %11 = inttoptr i64 %10 to i32* store i64 %3, i64* %storemerge11.reg2mem br label LBL_2 LBL_2: %storemerge11.reload = load i64, i64* %storemerge11.reg2mem %12 = inttoptr i64 %storemerge11.reload to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %storemerge11.reload, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %13, 0 %18 = icmp eq i64 %16, 0 %or.cond = or i1 %17, %18 br i1 %or.cond, label LBL_27, label LBL_3 LBL_3: %19 = inttoptr i64 %13 to i8* %20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0)) %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_5, label LBL_4 LBL_4: store i64 %16, i64* %arg2, align 8 br label LBL_27 LBL_5: %23 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0)) %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_7, label LBL_6 LBL_6: store i64 %16, i64* %5, align 8 br label LBL_27 LBL_7: %26 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0)) %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_9, label LBL_8 LBL_8: store i64 %16, i64* %7, align 8 br label LBL_27 LBL_9: %29 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0)) %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false br i1 %31, label LBL_11, label LBL_10 LBL_10: store i64 %16, i64* %9, align 8 br label LBL_27 LBL_11: %32 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0)) %33 = icmp eq i32 %32, 0 %34 = icmp eq i1 %33, false br i1 %34, label LBL_18, label LBL_12 LBL_12: %storemerge4.in.in6 = add i64 %storemerge11.reload, 16 %storemerge4.in7 = inttoptr i64 %storemerge4.in.in6 to i64* %storemerge48 = load i64, i64* %storemerge4.in7, align 8 %35 = icmp eq i64 %storemerge48, 0 %36 = icmp eq i1 %35, false store i64 %storemerge48, i64* %storemerge410.reg2mem store i32 0, i32* %sv_1.19.reg2mem br i1 %36, label LBL_14, label LBL_13 LBL_13: %37 = call i64 @FUNC(i64* nonnull %sv_3, i64 %16) br label %55 LBL_14: %sv_1.19.reload = load i32, i32* %sv_1.19.reg2mem %storemerge410.reload = load i64, i64* %storemerge410.reg2mem %38 = inttoptr i64 %storemerge410.reload to i64* %39 = load i64, i64* %38, align 8 %40 = inttoptr i64 %39 to i8* %41 = call i32 @strcasecmp(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0)) %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem br i1 %43, label LBL_16, label LBL_15 LBL_15: %44 = add i64 %storemerge410.reload, 8 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = inttoptr i64 %46 to i8* %48 = call i32 @strcasecmp(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0)) %49 = icmp eq i32 %48, 0 %50 = icmp eq i1 %49, false %spec.select = select i1 %50, i32 %sv_1.19.reload, i32 1 store i32 %spec.select, i32* %sv_1.0.reg2mem br label LBL_16 LBL_16: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %storemerge4.in.in = add i64 %storemerge410.reload, 16 %storemerge4.in = inttoptr i64 %storemerge4.in.in to i64* %storemerge4 = load i64, i64* %storemerge4.in, align 8 %51 = icmp eq i64 %storemerge4, 0 %52 = icmp eq i1 %51, false store i64 %storemerge4, i64* %storemerge410.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.19.reg2mem br i1 %52, label LBL_14, label LBL_17 LBL_17: %53 = call i64 @FUNC(i64* nonnull %sv_3, i64 %16) %54 = icmp eq i32 %sv_1.0.reload, 0 store i64 ptrtoint (i64* @gv_7 to i64), i64* %.reg2mem br i1 %54, label %55, label %56 LBL_18: %58 = inttoptr i64 %16 to i8* %59 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_8, i64 0, i64 0)) %60 = icmp eq i32 %59, 0 %61 = icmp eq i1 %60, false br i1 %61, label LBL_21, label LBL_19 LBL_19: %62 = call i32 @strncmp(i8* %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0), i32 9) %63 = icmp eq i32 %62, 0 %64 = icmp eq i1 %63, false br i1 %64, label LBL_27, label LBL_20 LBL_20: %65 = add i64 %16, 9 %66 = call i64 @FUNC(i64* nonnull %sv_2, i64 %65) %67 = call i64 @FUNC(i64* nonnull %sv_2, i64 ptrtoint (i64* @gv_10 to i64)) br label LBL_27 LBL_21: %68 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_11, i64 0, i64 0)) %69 = icmp eq i32 %68, 0 %70 = icmp eq i1 %69, false br i1 %70, label LBL_24, label LBL_22 LBL_22: %71 = call i32 @strncmp(i8* %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0), i32 9) %72 = icmp eq i32 %71, 0 %73 = icmp eq i1 %72, false br i1 %73, label LBL_27, label LBL_23 LBL_23: %74 = call i64 @FUNC(i64 %storemerge11.reload, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_12, i64 0, i64 0)) %75 = add i64 %16, 9 %76 = call i64 @FUNC(i64* nonnull %sv_2, i64 %75) %77 = add i64 %74, 8 %78 = inttoptr i64 %77 to i64* %79 = load i64, i64* %78, align 8 %80 = call i64 @FUNC(i64* nonnull %sv_2, i64 %79) br label LBL_27 LBL_24: %81 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_13, i64 0, i64 0)) %82 = icmp eq i32 %81, 0 %83 = icmp eq i1 %82, false br i1 %83, label LBL_27, label LBL_25 LBL_25: %84 = call i32 @strcasecmp(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_14, i64 0, i64 0)) %85 = icmp eq i32 %84, 0 %86 = icmp eq i1 %85, false br i1 %86, label LBL_27, label LBL_26 LBL_26: store i32 1, i32* %11, align 4 br label LBL_27 LBL_27: %87 = add i64 %storemerge11.reload, 24 %88 = inttoptr i64 %87 to i64* %89 = load i64, i64* %88, align 8 %90 = icmp eq i64 %89, 0 %91 = icmp eq i1 %90, false store i64 %89, i64* %storemerge11.reg2mem br i1 %91, label LBL_2, label LBL_28 LBL_28: %92 = ptrtoint i64* %arg1 to i64 %93 = call i64 @FUNC(i64 %92, i64 %0) %94 = trunc i64 %93 to i32 %95 = icmp eq i32 %94, 0 %96 = icmp eq i1 %95, false store i32 %94, i32* %sv_0.0.reg2mem br i1 %96, label LBL_30, label LBL_29 LBL_29: %97 = add i64 %0, 32 %98 = inttoptr i64 %97 to i32* %99 = load i32, i32* %98, align 4 %100 = zext i32 %99 to i64 %101 = call i64 @FUNC(i64 %92, i64 %100, i64* nonnull %sv_3) %102 = trunc i64 %101 to i32 store i32 %102, i32* %sv_0.0.reg2mem br label LBL_30 LBL_30: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %103 = icmp eq i32 %sv_0.0.reload, 0 %104 = icmp eq i1 %103, false store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %104, label LBL_32, label LBL_31 LBL_31: %105 = add i64 %0, 32 %106 = inttoptr i64 %105 to i32* %107 = load i32, i32* %106, align 4 %108 = zext i32 %107 to i64 %109 = call i64 @FUNC(i64 %92, i64 %108, i64* nonnull %sv_2) %110 = trunc i64 %109 to i32 store i32 %110, i32* %sv_0.1.reg2mem br label LBL_32 LBL_32: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %111 = call i64 @FUNC(i64* nonnull %sv_3) %112 = call i64 @FUNC(i64* nonnull %sv_2) %113 = zext i32 %sv_0.1.reload to i64 ret i64 %113 uselistorder i64 %92, { 1, 0, 2 } uselistorder i8* %58, { 2, 1, 0 } uselistorder i64 %storemerge410.reload, { 2, 0, 1 } uselistorder i32 %sv_1.19.reload, { 1, 0 } uselistorder i64 %16, { 1, 2, 9, 3, 0, 4, 5, 6, 7, 8 } uselistorder i64 %storemerge11.reload, { 4, 1, 0, 3, 2 } uselistorder i64* %sv_3, { 1, 2, 3, 4, 0, 5 } uselistorder i64 %0, { 1, 0, 2, 6, 5, 4, 3 } uselistorder i64* %storemerge11.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge410.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.19.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64 (i64*)* @strarray_fini, { 1, 0 } uselistorder i32 (i8*, i8*, i32)* @strncmp, { 1, 0 } uselistorder i64 ptrtoint (i64* @gv_10 to i64), { 1, 0 } uselistorder i32 (i8*, i8*)* @strcasecmp, { 2, 1, 0 } uselistorder i64 (i64*, i64)* @strarray_append, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 0, { 1, 16, 2, 3, 4, 5, 6, 7, 10, 8, 9, 0, 11, 12, 13, 14, 15 } uselistorder i32 (i8*, i8*)* @strcmp, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 16, { 1, 0, 2 } uselistorder i64 8, { 0, 1, 3, 2 } uselistorder i1 false, { 2, 17, 18, 3, 4, 5, 6, 7, 8, 11, 9, 10, 1, 12, 13, 14, 15, 16, 0 } uselistorder i64* %arg3, { 1, 0 } uselistorder label LBL_27, { 3, 4, 5, 6, 0, 7, 1, 8, 9, 10, 11, 12, 2 } uselistorder label %56, { 1, 0 } uselistorder label %55, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
vfio_msi_setup_15570
vfio_msi_setup
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.shrunk.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %3 = add i64 %2, 32 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %5, %arg2 %7 = trunc i64 %1 to i32 %8 = trunc i64 %6 to i32 %9 = call i32 @pread(i32 %7, i64* nonnull %sv_0, i32 2, i32 %8) %10 = icmp eq i32 %9, 2 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = call i32* @__errno_location() %12 = load i32, i32* %11, align 4 %13 = sub i32 0, %12 store i32 %13, i32* %rax.0.shrunk.reg2mem br label LBL_6 LBL_2: %14 = and i64 %arg2, 4294967295 %15 = load i64, i64* %sv_0, align 8 %16 = urem i64 %15, 65536 %17 = call i64 @FUNC(i64 %16) %sext4 = mul i64 %17, 281474976710656 %18 = ashr exact i64 %sext4, 48 store i64 %18, i64* %sv_0, align 8 %19 = udiv i64 %18, 32768 %20 = trunc i64 %19 to i8 %21 = urem i8 %20, 2 %22 = and i64 %17, 16384 %23 = icmp eq i64 %22, 0 %24 = icmp eq i1 %23, false %25 = udiv i64 %18, 2 %26 = trunc i64 %25 to i32 %27 = urem i32 %26, 2 %28 = shl i32 1, %27 %29 = add i64 %2, 8 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %31, i64 %14) %33 = add i64 %2, 24 %34 = zext i1 %24 to i64 %35 = call i64 @FUNC(i64 %33, i64 %14, i32 %28, i8 %21, i64 %34) %36 = trunc i64 %35 to i32 %37 = icmp slt i32 %36, 0 %38 = icmp eq i1 %37, false br i1 %38, label LBL_5, label LBL_3 LBL_3: %39 = icmp eq i32 %36, -95 %40 = icmp eq i1 %39, false store i32 0, i32* %rax.0.shrunk.reg2mem br i1 %40, label LBL_4, label LBL_6 LBL_4: %41 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0)) store i32 %36, i32* %rax.0.shrunk.reg2mem br label LBL_6 LBL_5: %42 = icmp eq i1 %24, false %43 = mul i8 %21, 4 %44 = select i1 %42, i32 10, i32 20 %45 = zext i8 %43 to i32 %46 = add nuw nsw i32 %44, %45 %47 = add i64 %2, 16 %48 = inttoptr i64 %47 to i32* store i32 %46, i32* %48, align 4 store i32 0, i32* %rax.0.shrunk.reg2mem br label LBL_6 LBL_6: %rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem %rax.0 = zext i32 %rax.0.shrunk.reload to i64 ret i64 %rax.0 uselistorder i64 %17, { 1, 0 } uselistorder i64* %sv_0, { 1, 2, 0 } uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i32 0, { 1, 0, 2, 3 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_6, { 1, 2, 0, 3 } }
1
BinRealVul
jsvGetString_12366
jsvGetString
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_1.0.lcssa.reg2mem = alloca i64 %sv_1.03.reg2mem = alloca i64 %sv_0.04.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i8* %storemerge.lcssa.reg2mem = alloca i64 %storemerge7.reg2mem = alloca i64 %.reg2mem27 = alloca i8 %.reg2mem = alloca i8* %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %2 = icmp eq i64 %arg3, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = call i64 @FUNC(i64 %arg1) %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_6, label LBL_3 LBL_3: %6 = add i64 %arg3, -1 %7 = inttoptr i64 %4 to i8* %8 = load i8, i8* %7, align 1 %9 = icmp ne i8 %8, 0 %10 = icmp ne i64 %6, 0 %or.cond6 = icmp eq i1 %10, %9 %11 = inttoptr i64 %arg2 to i8* store i8* %11, i8** %.reg2mem store i8 %8, i8* %.reg2mem27 store i64 0, i64* %storemerge7.reg2mem store i64 0, i64* %storemerge.lcssa.reg2mem store i8* %11, i8** %.lcssa.reg2mem br i1 %or.cond6, label LBL_4, label LBL_5 LBL_4: %storemerge7.reload = load i64, i64* %storemerge7.reg2mem %.reload28 = load i8, i8* %.reg2mem27 %.reload = load i8*, i8** %.reg2mem store i8 %.reload28, i8* %.reload, align 1 %12 = add nuw i64 %storemerge7.reload, 1 %13 = add i64 %12, %4 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 %16 = icmp ne i8 %15, 0 %17 = icmp ult i64 %12, %6 %or.cond = icmp eq i1 %17, %16 %18 = add i64 %12, %arg2 %19 = inttoptr i64 %18 to i8* store i8* %19, i8** %.reg2mem store i8 %15, i8* %.reg2mem27 store i64 %12, i64* %storemerge7.reg2mem store i64 %12, i64* %storemerge.lcssa.reg2mem store i8* %19, i8** %.lcssa.reg2mem br i1 %or.cond, label LBL_4, label LBL_5 LBL_5: %.lcssa.reload = load i8*, i8** %.lcssa.reg2mem %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem store i8 0, i8* %.lcssa.reload, align 1 store i64 %storemerge.lcssa.reload, i64* %rax.0.reg2mem br label LBL_21 LBL_6: %20 = call i64 @FUNC(i64 %arg1) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_8, label LBL_7 LBL_7: %23 = and i64 %1, 4294967295 %24 = call i64 @FUNC(i64 %23, i64 %arg2, i64 10) %25 = inttoptr i64 %arg2 to i8* %26 = call i32 @strlen(i8* %25) %27 = sext i32 %26 to i64 store i64 %27, i64* %rax.0.reg2mem br label LBL_21 LBL_8: %28 = call i64 @FUNC(i64 %arg1) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_10, label LBL_9 LBL_9: %31 = trunc i64 %1 to i32 %32 = call i128 @FUNC(i32 %31) %33 = call i64 @FUNC(i64 %arg2, i64 %arg3) %34 = inttoptr i64 %arg2 to i8* %35 = call i32 @strlen(i8* %34) %36 = sext i32 %35 to i64 store i64 %36, i64* %rax.0.reg2mem br label LBL_21 LBL_10: %37 = call i64 @FUNC(i64 %arg1) %38 = trunc i64 %37 to i32 %39 = icmp eq i32 %38, 0 br i1 %39, label LBL_18, label LBL_11 LBL_11: %40 = call i64 @FUNC(i64 %arg1) %41 = trunc i64 %40 to i32 %42 = icmp eq i32 %41, 0 br i1 %42, label LBL_13, label LBL_12 LBL_12: call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0)) br label LBL_13 LBL_13: %43 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg1, i64 0) %44 = call i64 @FUNC(i64* nonnull %sv_2) %45 = trunc i64 %44 to i32 %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false store i64 %arg3, i64* %sv_0.04.reg2mem store i64 %arg2, i64* %sv_1.03.reg2mem store i64 %arg2, i64* %sv_1.0.lcssa.reg2mem store i64 %arg3, i64* %sv_0.0.lcssa.reg2mem br i1 %47, label LBL_14, label LBL_17 LBL_14: %sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem %sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem %48 = icmp ult i64 %sv_0.04.reload, 2 br i1 %48, label LBL_15, label LBL_16 LBL_15: %49 = inttoptr i64 %sv_1.03.reload to i8* store i8 0, i8* %49, align 1 %50 = call i64 @FUNC(i64* nonnull %sv_2) store i64 %arg3, i64* %rax.0.reg2mem br label LBL_21 LBL_16: %51 = add i64 %sv_0.04.reload, -1 %52 = add i64 %sv_1.03.reload, 1 %53 = call i64 @FUNC(i64* nonnull %sv_2) %54 = trunc i64 %53 to i8 %55 = inttoptr i64 %sv_1.03.reload to i8* store i8 %54, i8* %55, align 1 %56 = call i64 @FUNC(i64* nonnull %sv_2) %57 = call i64 @FUNC(i64* nonnull %sv_2) %58 = trunc i64 %57 to i32 %59 = icmp eq i32 %58, 0 %60 = icmp eq i1 %59, false store i64 %51, i64* %sv_0.04.reg2mem store i64 %52, i64* %sv_1.03.reg2mem store i64 %52, i64* %sv_1.0.lcssa.reg2mem store i64 %51, i64* %sv_0.0.lcssa.reg2mem br i1 %60, label LBL_14, label LBL_17 LBL_17: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem %61 = call i64 @FUNC(i64* nonnull %sv_2) %62 = inttoptr i64 %sv_1.0.lcssa.reload to i8* store i8 0, i8* %62, align 1 %63 = sub i64 %arg3, %sv_0.0.lcssa.reload store i64 %63, i64* %rax.0.reg2mem br label LBL_21 LBL_18: %64 = call i64 @FUNC(i64 %arg1) %65 = icmp eq i64 %64, 0 br i1 %65, label LBL_20, label LBL_19 LBL_19: %66 = call i64 @FUNC(i64 %64, i64 %arg2, i64 %arg3) store i64 %66, i64* %sv_2, align 8 %67 = call i64 @FUNC(i64 %64) %68 = load i64, i64* %sv_2, align 8 store i64 %68, i64* %rax.0.reg2mem br label LBL_21 LBL_20: %69 = inttoptr i64 %arg2 to i8* store i8 0, i8* %69, align 1 %70 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_21: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %64, { 1, 0, 2 } uselistorder i64 %sv_1.03.reload, { 1, 0, 2 } uselistorder i64 %12, { 0, 1, 2, 4, 3 } uselistorder i64 %6, { 1, 0 } uselistorder i64* %sv_2, { 7, 8, 1, 2, 3, 4, 5, 0, 6 } uselistorder i8** %.reg2mem, { 2, 0, 1 } uselistorder i8* %.reg2mem27, { 2, 0, 1 } uselistorder i64* %storemerge7.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 4, 5, 3, 2, 1 } uselistorder i64 (i64*)* @jsvStringIteratorHasChar, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i32 0, { 1, 0, 2, 3, 4, 5 } uselistorder i8 0, { 1, 3, 2, 4, 5, 0 } uselistorder i64 -1, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 %arg3, { 6, 5, 0, 1, 2, 4, 3, 7 } uselistorder i64 %arg2, { 9, 8, 0, 1, 7, 6, 5, 4, 2, 3 } uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6 } uselistorder label LBL_21, { 0, 1, 3, 2, 4, 5, 6 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
ff_h264_decode_extradata_14453
ff_h264_decode_extradata
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.19.reg2mem = alloca i64 %storemerge10.reg2mem = alloca i32 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.011.reg2mem = alloca i64 %storemerge112.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = icmp eq i64* %arg2, null store i64 4294967295, i64* %rax.0.reg2mem br i1 %5, label LBL_20, label LBL_1 LBL_1: %6 = icmp eq i32 %arg3, 0 %7 = icmp slt i32 %arg3, 0 %8 = icmp eq i1 %7, false %9 = icmp eq i1 %6, false %10 = icmp eq i1 %8, %9 store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_20 LBL_2: %11 = ptrtoint i64* %arg2 to i64 %12 = ptrtoint i64* %arg1 to i64 %13 = trunc i64 %3 to i8 %14 = icmp eq i8 %13, 1 %15 = icmp eq i1 %14, false %16 = add i64 %12, 8 %17 = inttoptr i64 %16 to i32* br i1 %15, label LBL_18, label LBL_3 LBL_3: store i32 1, i32* %17, align 4 %18 = icmp sgt i32 %arg3, 6 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_20 LBL_5: %20 = add i64 %12, 12 %21 = inttoptr i64 %20 to i32* store i32 2, i32* %21, align 4 %22 = add i64 %11, 5 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = urem i8 %24, 32 %26 = add i64 %11, 6 %27 = icmp eq i8 %25, 0 store i64 %26, i64* %sv_0.0.lcssa.reg2mem br i1 %27, label LBL_11, label LBL_6 LBL_6: %28 = zext i8 %25 to i32 %29 = sext i32 %arg3 to i64 %30 = add i64 %29, %11 store i32 0, i32* %storemerge112.reg2mem store i64 %26, i64* %sv_0.011.reg2mem br label LBL_7 LBL_7: %sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem %31 = call i64 @FUNC(i64 %sv_0.011.reload) %32 = trunc i64 %31 to i32 %33 = add i32 %32, 2 %34 = sext i32 %33 to i64 %35 = sub i64 %30, %sv_0.011.reload %36 = icmp slt i64 %35, %34 store i64 4294967295, i64* %rax.0.reg2mem br i1 %36, label LBL_20, label LBL_8 LBL_8: %storemerge112.reload = load i32, i32* %storemerge112.reg2mem %37 = call i64 @FUNC(i64 %12, i64 %sv_0.011.reload, i32 %33) %38 = trunc i64 %37 to i32 %39 = icmp slt i32 %38, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_10, label LBL_9 LBL_9: %41 = zext i32 %storemerge112.reload to i64 %42 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %41, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_20 LBL_10: %43 = add i64 %sv_0.011.reload, %34 %44 = add nuw nsw i32 %storemerge112.reload, 1 %45 = icmp ult i32 %44, %28 store i32 %44, i32* %storemerge112.reg2mem store i64 %43, i64* %sv_0.011.reg2mem store i64 %43, i64* %sv_0.0.lcssa.reg2mem br i1 %45, label LBL_7, label LBL_11 LBL_11: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %46 = inttoptr i64 %sv_0.0.lcssa.reload to i8* %47 = load i8, i8* %46, align 1 %48 = icmp eq i8 %47, 0 br i1 %48, label LBL_17, label LBL_12 LBL_12: %49 = zext i8 %47 to i32 %50 = add i64 %sv_0.0.lcssa.reload, 1 %51 = sext i32 %arg3 to i64 %52 = add i64 %51, %11 store i32 0, i32* %storemerge10.reg2mem store i64 %50, i64* %sv_0.19.reg2mem br label LBL_13 LBL_13: %sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem %53 = call i64 @FUNC(i64 %sv_0.19.reload) %54 = trunc i64 %53 to i32 %55 = add i32 %54, 2 %56 = sext i32 %55 to i64 %57 = sub i64 %52, %sv_0.19.reload %58 = icmp slt i64 %57, %56 store i64 4294967295, i64* %rax.0.reg2mem br i1 %58, label LBL_20, label LBL_14 LBL_14: %storemerge10.reload = load i32, i32* %storemerge10.reg2mem %59 = call i64 @FUNC(i64 %12, i64 %sv_0.19.reload, i32 %55) %60 = trunc i64 %59 to i32 %61 = icmp slt i32 %60, 0 %62 = icmp eq i1 %61, false br i1 %62, label LBL_16, label LBL_15 LBL_15: %63 = zext i32 %storemerge10.reload to i64 %64 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i64 %63, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_20 LBL_16: %65 = add i64 %sv_0.19.reload, %56 %66 = add nuw nsw i32 %storemerge10.reload, 1 %67 = icmp ult i32 %66, %49 store i32 %66, i32* %storemerge10.reg2mem store i64 %65, i64* %sv_0.19.reg2mem br i1 %67, label LBL_13, label LBL_17 LBL_17: %68 = add i64 %11, 4 %69 = inttoptr i64 %68 to i8* %70 = load i8, i8* %69, align 1 %71 = urem i8 %70, 4 %narrow = add nuw nsw i8 %71, 1 %72 = zext i8 %narrow to i32 store i32 %72, i32* %21, align 4 br label LBL_19 LBL_18: store i32 0, i32* %17, align 4 %73 = call i64 @FUNC(i64 %12, i64 %11, i32 %arg3) %74 = trunc i64 %73 to i32 %75 = icmp slt i32 %74, 0 %76 = icmp eq i1 %75, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %76, label LBL_19, label LBL_20 LBL_19: %77 = zext i32 %arg3 to i64 store i64 %77, 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 %sv_0.19.reload, { 3, 0, 2, 1 } uselistorder i8 %47, { 1, 0 } uselistorder i64 %sv_0.011.reload, { 3, 0, 2, 1 } uselistorder i64 %26, { 1, 0 } uselistorder i32* %17, { 1, 0 } uselistorder i64 %12, { 6, 1, 2, 3, 4, 5, 0, 7 } uselistorder i64 %11, { 5, 2, 0, 1, 3, 4 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i32* %storemerge112.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge10.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.19.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 9, 3, 7, 2, 8, 1, 6, 5, 4 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i64, i32)* @decode_nal_units, { 2, 1, 0 } uselistorder i64 (i64)* @AV_RB16, { 1, 0 } uselistorder i8 0, { 0, 1, 3, 2 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 5, 0 } uselistorder i32 0, { 2, 3, 4, 0, 5, 1, 6, 7 } uselistorder i32 %arg3, { 3, 4, 0, 1, 2, 6, 5 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_20, { 5, 2, 6, 1, 7, 0, 8, 4, 3 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
GetPSDRowSize_11086
GetPSDRowSize
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 1 %5 = icmp eq i1 %4, false %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 br i1 %5, label LBL_2, label LBL_1 LBL_1: %9 = add i64 %8, 7 %10 = udiv i64 %9, 8 store i64 %10, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %11 = call i64 @FUNC(i64 %2) %12 = mul i64 %11, %8 store i64 %12, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } }
1
BinRealVul
compliance_mode_recovery_timer_quirk_check_4019
compliance_mode_recovery_timer_quirk_check
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 1) %1 = call i64 @FUNC(i64 2) %2 = icmp ne i64 %0, 0 %3 = icmp eq i64 %1, 0 %4 = icmp eq i1 %3, false %or.cond = icmp eq i1 %2, %4 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_5 LBL_1: %5 = inttoptr i64 %1 to i8* %6 = call i8* @strstr(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0)) %7 = icmp eq i8* %6, null %8 = icmp eq i1 %7, false store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_5 LBL_2: %9 = inttoptr i64 %0 to i8* %10 = call i8* @strstr(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %11 = icmp eq i8* %10, null %12 = icmp eq i1 %11, false store i64 1, i64* %rax.0.reg2mem br i1 %12, label LBL_5, label LBL_3 LBL_3: %13 = call i8* @strstr(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0)) %14 = icmp eq i8* %13, null %15 = icmp eq i1 %14, false store i64 1, i64* %rax.0.reg2mem br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = call i8* @strstr(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0)) %17 = icmp ne i8* %16, null %spec.select = zext i1 %17 to i64 ret i64 %spec.select LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i8* (i8*, i8*)* @strstr, { 1, 3, 2, 0 } uselistorder i1 false, { 1, 2, 3, 0, 4, 5 } uselistorder i64 (i64)* @dmi_get_system_info, { 1, 0 } uselistorder i64 1, { 1, 0, 2 } uselistorder i32 1, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0, 2, 3 } }
0
BinRealVul
usb_hid_handle_destroy_15409
usb_hid_handle_destroy
define i64 @FUNC(i32* %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, 1 store i64 1, i64* %rax.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: %.cast = ptrtoint i32* %arg1 to i64 %4 = add i64 %.cast, 4 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = zext i32 %6 to i64 %8 = call i64 @FUNC(i64 %7) store i64 %8, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
1
BinRealVul
server_connection_input_one_17473
server_connection_input_one
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 %5, i64* %sv_2, align 8 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %8, i64* nonnull %sv_1) %10 = load i64, i64* %sv_1, align 8 %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_1, label LBL_19 LBL_1: %13 = ptrtoint i64* %sv_1 to i64 %14 = trunc i64 %3 to i32 %15 = call i64 @FUNC(i64 %5) %16 = icmp eq i32 %14, 2 br i1 %16, label LBL_6, label LBL_2 LBL_2: %17 = icmp sgt i32 %14, 2 br i1 %17, label LBL_18, label LBL_3 LBL_3: switch i32 %14, label LBL_18 [ i32 0, label LBL_4 i32 1, label LBL_5 ] LBL_4: %18 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %13, i64 %4, i64 %2, i64 %1) %19 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_5: %20 = load i64, i64* %sv_1, align 8 %21 = call i64 @FUNC(i64 %5, i64 %9, i64 %20) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_6: %.pre2 = load i64, i64* %7, align 8 %22 = call i64 @FUNC(i64 %.pre2) %23 = icmp eq i64 %22, 0 %24 = icmp eq i1 %23, false store i64 0, i64* %rax.0.reg2mem br i1 %24, label LBL_7, label LBL_19 LBL_7: %25 = inttoptr i64 %22 to i8* %26 = load i8, i8* %25, align 1 %27 = icmp eq i8 %26, 43 %28 = icmp eq i1 %27, false br i1 %28, label LBL_9, label LBL_8 LBL_8: %29 = load i64, i64* %sv_2, align 8 %30 = call i64 @FUNC(i64 %29, i64 0, i64* nonnull @gv_1) br label LBL_16 LBL_9: %31 = icmp eq i8 %26, 45 %32 = icmp eq i1 %31, false br i1 %32, label LBL_15, label LBL_10 LBL_10: %33 = add i64 %22, 1 %34 = call i64 @FUNC(i64 %33) %35 = trunc i64 %34 to i32 store i32 %35, i32* %sv_0, align 4 %36 = icmp eq i32 %35, -1 %37 = icmp eq i1 %36, false store i32 %35, i32* %.reg2mem br i1 %37, label LBL_14, label LBL_11 LBL_11: %38 = call i64 @FUNC(i64 %33, i32* nonnull %sv_0) %39 = trunc i64 %38 to i32 %40 = icmp slt i32 %39, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_11.LBL_14_crit_edge, label LBL_13 LBL_12: %.pre3 = load i32, i32* %sv_0, align 4 store i32 %.pre3, i32* %.reg2mem br label LBL_14 LBL_13: store i32 1, i32* %sv_0, align 4 store i32 1, i32* %.reg2mem br label LBL_14 LBL_14: %.reload = load i32, i32* %.reg2mem %42 = load i64, i64* %sv_2, align 8 %43 = zext i32 %.reload to i64 %44 = inttoptr i64 %33 to i64* %45 = call i64 @FUNC(i64 %42, i64 %43, i64* %44) br label LBL_16 LBL_15: %46 = call i64 @FUNC(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_2, i64 0, i64 0), i64 %22, i64 %13, i64 %4, i64 %2, i64 %1) %47 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_16: %48 = load i64, i64* %sv_2, align 8 %49 = add i64 %48, 16 %50 = inttoptr i64 %49 to i64* %51 = load i64, i64* %50, align 8 %52 = icmp eq i64 %51, 0 %53 = icmp eq i1 %52, false store i64 1, i64* %rax.0.reg2mem br i1 %53, label LBL_19, label LBL_17 LBL_17: %54 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_18: %55 = call i64 @FUNC() store i64 %55, 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 %14, { 2, 1, 0 } uselistorder i64* %sv_2, { 0, 3, 1, 4, 5, 2, 6 } uselistorder i64* %sv_1, { 1, 3, 2, 0 } uselistorder i32* %sv_0, { 2, 0, 1, 3 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 1, 8, 2, 3, 5, 4 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i64, i64*)* @server_connection_callback, { 1, 0 } uselistorder i64 (i64*)* @server_connection_destroy, { 2, 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @i_error, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32 2, { 1, 0 } uselistorder i64 0, { 4, 14, 5, 10, 11, 12, 0, 15, 1, 3, 8, 9, 2, 16, 6, 7, 17, 13 } uselistorder label LBL_19, { 4, 5, 1, 6, 2, 0, 7, 3 } uselistorder label LBL_14, { 1, 0, 2 } }
1
BinRealVul
mp_property_video_frame_info_5425
mp_property_video_frame_info
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0 = alloca i8*, align 8 %0 = icmp eq i64* %arg1, null store i64 4294967295, i64* %storemerge.reg2mem br i1 %0, label LBL_3, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %4, label LBL_2, label LBL_3 LBL_2: %5 = bitcast i8** %sv_0 to i8* call void @FUNC(i8* nonnull %5, i64 0, i64 15) store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0, align 8 %6 = call i64 @FUNC(i64 %2) %7 = zext i32 %arg3 to i64 %8 = bitcast i8** %sv_0 to i64* %9 = call i64 @FUNC(i64* nonnull %8, i64 %7, i64 %arg4) store i64 %9, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 1, 0 } uselistorder i8** %sv_0, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder i1 false, { 1, 3, 2, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
ohci_bus_stop_15022
ohci_bus_stop
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 %4) %7 = load i64, i64* %3, align 8 %8 = call i64 @FUNC(i64 %7) br label LBL_2 LBL_2: store i64 0, i64* %3, align 8 ret i64 %0 uselistorder i64* %3, { 1, 0, 2 } }
1
BinRealVul
vp9_select_in_frame_q_segment_5141
vp9_select_in_frame_q_segment
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.lcssa.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i32 %storemerge312.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i8 %storemerge9.in.in.in.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 %4 = trunc i64 %arg3 to i32 %5 = trunc i64 %arg4 to i32 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = load i32, i32* @gv_0, align 4 %10 = load i32, i32* @gv_1, align 4 %11 = sub i32 %8, %4 %12 = sub i32 %9, %11 %13 = xor i32 %9, %11 %14 = xor i32 %12, %9 %15 = and i32 %14, %13 %16 = icmp slt i32 %15, 0 %17 = icmp eq i32 %12, 0 %18 = icmp slt i32 %12, 0 %19 = icmp ne i1 %18, %16 %20 = or i1 %17, %19 %21 = select i1 %20, i32 %9, i32 %11 %22 = add i64 %2, 12 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = sub i32 %24, %3 %26 = sub i32 %10, %25 %27 = xor i32 %25, %10 %28 = xor i32 %26, %10 %29 = and i32 %28, %27 %30 = icmp slt i32 %29, 0 %31 = icmp eq i32 %26, 0 %32 = icmp slt i32 %26, 0 %33 = icmp ne i1 %32, %30 %34 = or i1 %31, %33 %35 = select i1 %34, i32 %10, i32 %25 %36 = icmp eq i32 %5, 0 %37 = icmp eq i1 %36, false store i8 64, i8* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem br i1 %37, label LBL_1, label LBL_7 LBL_1: %sext = mul i64 %arg5, 4294967296 %38 = add i64 %2, 16 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = mul i32 %21, 256 %42 = mul i32 %41, %35 %43 = mul i32 %42, %40 %44 = mul i32 %10, %9 %45 = ashr i32 %43, 31 %46 = zext i32 %43 to i64 %47 = zext i32 %45 to i64 %48 = mul i64 %47, 4294967296 %49 = or i64 %48, %46 %50 = zext i32 %44 to i64 %51 = sdiv i64 %49, %50 %52 = trunc i64 %51 to i32 %53 = add i64 %2, 4 %54 = inttoptr i64 %53 to i32* %55 = load i32, i32* %54, align 4 %56 = zext i32 %55 to i64 %57 = and i64 %1, 4294967295 %58 = call i64 @FUNC(i64 %57, i64 %56) %sext4 = mul i64 %58, 4294967296 %59 = ashr exact i64 %sext4, 30 %60 = add i64 %59, ptrtoint (i32** @gv_2 to i64) %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = ashr exact i64 %sext, 32 store i32 %62, i32* %storemerge9.in.in.in.reg2mem br label LBL_3 LBL_2: %64 = urem i32 %storemerge9, 256 %65 = zext i32 %64 to i64 %66 = add nsw i64 %59, %65 %67 = mul i64 %66, 4 %68 = add i64 %67, ptrtoint (i32** @gv_3 to i64) %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = mul i32 %70, %52 %72 = zext i32 %71 to i64 %73 = icmp slt i64 %63, %72 store i32 %storemerge9, i32* %storemerge9.in.in.in.reg2mem br i1 %73, label LBL_4, label LBL_3 LBL_3: %storemerge9.in.in.in.reload = load i32, i32* %storemerge9.in.in.in.reg2mem %storemerge9.in.in = mul i32 %storemerge9.in.in.in.reload, 16777216 %storemerge9.in = add i32 %storemerge9.in.in, -16777216 %storemerge9 = ashr exact i32 %storemerge9.in, 24 %74 = trunc i32 %storemerge9 to i8 %75 = icmp eq i8 %74, 0 %76 = icmp eq i1 %75, false br i1 %76, label LBL_2, label LBL_4 LBL_4: %77 = icmp slt i32 %52, 1 store i8 64, i8* %sv_1.0.reg2mem store i32 %storemerge9, i32* %sv_0.0.reg2mem br i1 %77, label LBL_7, label LBL_5 LBL_5: %78 = ashr exact i64 %sext, 26 %79 = trunc i64 %78 to i32 %80 = ashr i32 %79, 31 %81 = and i64 %78, 4294967232 %82 = zext i32 %80 to i64 %83 = mul i64 %82, 4294967296 %84 = or i64 %83, %81 %85 = and i64 %51, 4294967295 %86 = sdiv i64 %84, %85 %87 = trunc i64 %86 to i32 %88 = icmp slt i32 %87, 16 store i8 16, i8* %sv_1.0.reg2mem store i32 %storemerge9, i32* %sv_0.0.reg2mem br i1 %88, label LBL_7, label LBL_6 LBL_6: %89 = add i32 %87, -255 %90 = sub i32 254, %87 %91 = and i32 %90, %87 %92 = icmp slt i32 %91, 0 %93 = icmp eq i32 %89, 0 %94 = icmp slt i32 %89, 0 %95 = icmp ne i1 %94, %92 %96 = or i1 %93, %95 %97 = trunc i64 %86 to i8 %phitmp11 = select i1 %96, i8 %97, i8 -1 store i8 %phitmp11, i8* %sv_1.0.reg2mem store i32 %storemerge9, i32* %sv_0.0.reg2mem br label LBL_7 LBL_7: %98 = icmp sgt i32 %35, 0 store i64 0, i64* %storemerge.lcssa.reg2mem br i1 %98, label LBL_8, label LBL_13 LBL_8: %99 = mul i32 %8, %3 %100 = add i32 %99, %4 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem %101 = icmp sgt i32 %21, 0 %102 = add i64 %2, 24 %103 = inttoptr i64 %102 to i64* %104 = trunc i32 %sv_0.0.reload to i8 %105 = add i64 %2, 32 %106 = inttoptr i64 %105 to i64* store i32 0, i32* %storemerge13.reg2mem br label LBL_11 LBL_9: %storemerge312.reload = load i32, i32* %storemerge312.reg2mem %107 = load i64, i64* %103, align 8 %108 = load i32, i32* %7, align 4 %109 = mul i32 %108, %storemerge13.reload %110 = add i32 %100, %storemerge312.reload %111 = add i32 %109, %110 %112 = sext i32 %111 to i64 %113 = add i64 %107, %112 %114 = inttoptr i64 %113 to i8* store i8 %104, i8* %114, align 1 %115 = load i64, i64* %106, align 8 %116 = load i32, i32* %7, align 4 %117 = mul i32 %116, %storemerge13.reload %118 = add i32 %117, %110 %119 = sext i32 %118 to i64 %120 = add i64 %115, %119 %121 = inttoptr i64 %120 to i8* store i8 %sv_1.0.reload, i8* %121, align 1 %122 = add nuw nsw i32 %storemerge312.reload, 1 %exitcond = icmp eq i32 %122, %21 store i32 %122, i32* %storemerge312.reg2mem br i1 %exitcond, label LBL_10, label LBL_9 LBL_10: %123 = add nuw nsw i32 %storemerge13.reload, 1 %exitcond15 = icmp eq i32 %123, %35 store i32 %123, i32* %storemerge13.reg2mem br i1 %exitcond15, label LBL_12, label LBL_11 LBL_11: %storemerge13.reload = load i32, i32* %storemerge13.reg2mem store i32 0, i32* %storemerge312.reg2mem br i1 %101, label LBL_9, label LBL_10 LBL_12: %phitmp = zext i32 %35 to i64 store i64 %phitmp, i64* %storemerge.lcssa.reg2mem br label LBL_13 LBL_13: %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem ret i64 %storemerge.lcssa.reload uselistorder i32 %storemerge13.reload, { 1, 2, 0 } uselistorder i32 %89, { 1, 0 } uselistorder i32 %87, { 0, 2, 1, 3 } uselistorder i64 %78, { 1, 0 } uselistorder i32 %storemerge9, { 1, 0, 2, 5, 4, 3 } uselistorder i32 %52, { 1, 0 } uselistorder i32 %43, { 1, 0 } uselistorder i32 %26, { 1, 2, 0 } uselistorder i32 %25, { 1, 0, 2 } uselistorder i32 %21, { 1, 2, 0 } uselistorder i32 %12, { 1, 2, 0 } uselistorder i32 %10, { 0, 3, 1, 2, 4 } uselistorder i32 %9, { 0, 2, 1, 3, 4 } uselistorder i8* %sv_1.0.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i32* %storemerge312.reg2mem, { 1, 2, 0 } uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64 32, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i32 256, { 1, 0 } uselistorder i8 64, { 1, 0 } uselistorder i32 0, { 1, 0, 3, 4, 5, 6, 7, 2, 8, 9, 10, 11, 12, 13, 14 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 0, 1, 3, 2 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
iscsi_if_transport_ep_17523
iscsi_if_transport_ep
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg3 to i32 %4 = icmp eq i32 %3, 4 br i1 %4, label LBL_8, label LBL_1 LBL_1: %5 = icmp sgt i32 %3, 4 store i64 0, i64* %sv_0.0.reg2mem br i1 %5, label LBL_10, label LBL_2 LBL_2: %6 = ptrtoint i64* %arg2 to i64 %7 = icmp sgt i32 %3, 2 br i1 %7, label LBL_5, label LBL_3 LBL_3: %8 = icmp eq i32 %3, 0 %9 = icmp slt i32 %3, 0 %10 = icmp eq i1 %9, false %11 = icmp eq i1 %8, false %12 = icmp eq i1 %10, %11 store i64 0, i64* %sv_0.0.reg2mem br i1 %12, label LBL_4, label LBL_10 LBL_4: %13 = call i64 @FUNC(i64 %2, i64 %6, i32 %3) %phitmp = and i64 %13, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_10 LBL_5: %14 = icmp eq i64* %arg1, null %15 = icmp eq i1 %14, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %15, label LBL_6, label LBL_11 LBL_6: %16 = and i64 %1, 4294967295 %17 = call i64 @FUNC(i64 %16) %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %19, label LBL_7, label LBL_11 LBL_7: %20 = trunc i64 %17 to i32 %21 = add i64 %6, 8 %22 = inttoptr i64 %21 to i32* store i32 %20, i32* %22, align 4 store i64 0, i64* %sv_0.0.reg2mem br label LBL_10 LBL_8: %23 = add i64 %2, 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %27, label LBL_9, label LBL_11 LBL_9: %28 = and i64 %1, 4294967295 %29 = call i64 @FUNC(i64 %28) %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 0, i64* %sv_0.0.reg2mem store i64 4294967274, i64* %rax.0.reg2mem br i1 %31, label LBL_10, label LBL_11 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem 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 i64 %6, { 1, 0 } uselistorder i32 %3, { 4, 2, 3, 1, 0, 5 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 3, 2, 1, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 } uselistorder i64 (i64)* @iscsi_lookup_endpoint, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 5, 0 } uselistorder i32 4, { 2, 0, 1 } uselistorder label LBL_11, { 4, 0, 1, 2, 3 } uselistorder label LBL_10, { 0, 2, 3, 1, 4 } }
1
BinRealVul
parse_mb_skip_5169
parse_mb_skip
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1124.reg2mem = alloca i32 %storemerge1023.reg2mem = alloca i32 %storemerge925.reg2mem = alloca i32 %.reg2mem83 = alloca i32 %storemerge730.reg2mem = alloca i32 %storemerge629.reg2mem = alloca i32 %storemerge531.reg2mem = alloca i32 %.reg2mem81 = alloca i32 %storemerge41.reg2mem = alloca i32 %.reg2mem79 = alloca i32 %.reg2mem77 = alloca i32 %.reg2mem75 = alloca i32 %.reg2mem73 = alloca i32 %storemerge140.reg2mem = alloca i32 %storemerge337.reg2mem = alloca i32 %.reg2mem71 = alloca i32 %.reg2mem69 = alloca i32 %.reg2mem67 = alloca i32 %.reg2mem = alloca i32 %storemerge436.reg2mem = alloca i32 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %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* %5 = load i64, i64* %4, align 8 %6 = add i64 %0, 24 %7 = call i64 @FUNC(i64 %6, i64 2) %8 = trunc i64 %7 to i32 %9 = add i64 %0, 32 %10 = inttoptr i64 %9 to i32* store i32 %8, i32* %10, align 4 %11 = icmp eq i32 %8, 3 br i1 %11, label LBL_1, label LBL_3 LBL_1: %12 = bitcast i64* %rdi to i32* %13 = load i32, i32* %12, align 8 %14 = icmp eq i32 %13, 0 store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_31, label LBL_2 LBL_2: %15 = add i64 %0, 4 %16 = inttoptr i64 %15 to i32* %17 = add i64 %0, 8 %18 = inttoptr i64 %17 to i32* store i32 0, i32* %storemerge925.reg2mem br label LBL_25 LBL_3: %19 = and i64 %7, 4294967295 %20 = icmp sgt i32 %8, 3 store i64 %19, i64* %rax.0.reg2mem br i1 %20, label LBL_31, label LBL_4 LBL_4: store i64 %19, i64* %rax.0.reg2mem switch i32 %8, label LBL_31 [ i32 2, label LBL_9 i32 0, label LBL_7 i32 1, label LBL_5 ] LBL_5: %21 = add i64 %0, 4 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 0 store i64 0, i64* %rax.0.reg2mem br i1 %24, label LBL_31, label LBL_6 LBL_6: %25 = bitcast i64* %rdi to i32* %26 = add i64 %0, 8 %27 = inttoptr i64 %26 to i32* %.pre = load i32, i32* %25, align 8 store i32 %23, i32* %.reg2mem77 store i32 %.pre, i32* %.reg2mem79 store i32 0, i32* %storemerge41.reg2mem br label LBL_18 LBL_7: %28 = add i64 %0, 4 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 0 store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_31, label LBL_8 LBL_8: %32 = bitcast i64* %rdi to i32* %33 = add i64 %0, 8 %34 = inttoptr i64 %33 to i32* %.pre49 = load i32, i32* %32, align 8 store i32 %30, i32* %.reg2mem69 store i32 %.pre49, i32* %.reg2mem71 store i32 0, i32* %storemerge337.reg2mem br label LBL_14 LBL_9: %35 = add i64 %0, 4 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = icmp eq i32 %37, 0 store i64 0, i64* %rax.0.reg2mem br i1 %38, label LBL_31, label LBL_10 LBL_10: %39 = bitcast i64* %rdi to i32* %40 = add i64 %0, 8 %41 = inttoptr i64 %40 to i32* %.pre66 = load i32, i32* %39, align 8 store i32 %.pre66, i32* %.reg2mem81 store i32 0, i32* %storemerge531.reg2mem br label LBL_19 LBL_11: %storemerge436.reload = load i32, i32* %storemerge436.reg2mem %42 = load i32, i32* %34, align 4 %43 = mul i32 %42, %storemerge337.reload %44 = add i32 %43, %storemerge436.reload %45 = sext i32 %44 to i64 %46 = mul i64 %45, 4 %47 = add i64 %46, %5 %48 = inttoptr i64 %47 to i32* store i32 3, i32* %48, align 4 %49 = add i32 %storemerge436.reload, 1 %50 = load i32, i32* %32, align 8 %51 = zext i32 %50 to i64 %52 = sext i32 %49 to i64 %53 = icmp slt i64 %52, %51 store i32 %49, i32* %storemerge436.reg2mem br i1 %53, label LBL_11, label LBL_12 LBL_12: %.pre50 = load i32, i32* %29, align 4 store i32 %.pre50, i32* %.reg2mem store i32 %50, i32* %.reg2mem67 br label LBL_13 LBL_13: %.reload68 = load i32, i32* %.reg2mem67 %.reload = load i32, i32* %.reg2mem %54 = add i32 %storemerge337.reload, 1 %55 = zext i32 %.reload to i64 %56 = sext i32 %54 to i64 %57 = icmp slt i64 %56, %55 store i32 %.reload, i32* %.reg2mem69 store i32 %.reload68, i32* %.reg2mem71 store i32 %54, i32* %storemerge337.reg2mem store i64 %55, i64* %rax.0.reg2mem br i1 %57, label LBL_14, label LBL_31 LBL_14: %storemerge337.reload = load i32, i32* %storemerge337.reg2mem %.reload72 = load i32, i32* %.reg2mem71 %.reload70 = load i32, i32* %.reg2mem69 %58 = icmp eq i32 %.reload72, 0 store i32 0, i32* %storemerge436.reg2mem store i32 %.reload70, i32* %.reg2mem store i32 0, i32* %.reg2mem67 br i1 %58, label LBL_13, label LBL_11 LBL_15: %storemerge140.reload = load i32, i32* %storemerge140.reg2mem %59 = call i64 @FUNC(i64 %6) %60 = trunc i64 %59 to i32 %61 = icmp eq i32 %60, 0 %62 = load i32, i32* %27, align 4 %63 = mul i32 %62, %storemerge41.reload %64 = add i32 %63, %storemerge140.reload %65 = sext i32 %64 to i64 %66 = mul i64 %65, 4 %67 = add i64 %66, %5 %68 = select i1 %61, i32 3, i32 7 %69 = inttoptr i64 %67 to i32* store i32 %68, i32* %69, align 4 %70 = add i32 %storemerge140.reload, 1 %71 = load i32, i32* %25, align 8 %72 = zext i32 %71 to i64 %73 = sext i32 %70 to i64 %74 = icmp slt i64 %73, %72 store i32 %70, i32* %storemerge140.reg2mem br i1 %74, label LBL_15, label LBL_16 LBL_16: %.pre48 = load i32, i32* %22, align 4 store i32 %.pre48, i32* %.reg2mem73 store i32 %71, i32* %.reg2mem75 br label LBL_17 LBL_17: %.reload76 = load i32, i32* %.reg2mem75 %.reload74 = load i32, i32* %.reg2mem73 %75 = add i32 %storemerge41.reload, 1 %76 = zext i32 %.reload74 to i64 %77 = sext i32 %75 to i64 %78 = icmp slt i64 %77, %76 store i32 %.reload74, i32* %.reg2mem77 store i32 %.reload76, i32* %.reg2mem79 store i32 %75, i32* %storemerge41.reg2mem store i64 %76, i64* %rax.0.reg2mem br i1 %78, label LBL_18, label LBL_31 LBL_18: %storemerge41.reload = load i32, i32* %storemerge41.reg2mem %.reload80 = load i32, i32* %.reg2mem79 %.reload78 = load i32, i32* %.reg2mem77 %79 = icmp eq i32 %.reload80, 0 store i32 0, i32* %storemerge140.reg2mem store i32 %.reload78, i32* %.reg2mem73 store i32 0, i32* %.reg2mem75 br i1 %79, label LBL_17, label LBL_15 LBL_19: %storemerge531.reload = load i32, i32* %storemerge531.reg2mem %.reload82 = load i32, i32* %.reg2mem81 %80 = call i64 @FUNC(i64 %6) %81 = trunc i64 %80 to i32 %82 = icmp eq i32 %81, 0 %83 = icmp eq i32 %.reload82, 0 br i1 %82, label LBL_21, label LBL_20 LBL_20: store i32 0, i32* %storemerge629.reg2mem store i32 0, i32* %.reg2mem83 br i1 %83, label LBL_24, label LBL_22 LBL_21: store i32 0, i32* %storemerge730.reg2mem store i32 0, i32* %.reg2mem83 br i1 %83, label LBL_24, label LBL_23 LBL_22: %storemerge629.reload = load i32, i32* %storemerge629.reg2mem %84 = load i32, i32* %41, align 4 %85 = mul i32 %84, %storemerge531.reload %86 = add i32 %85, %storemerge629.reload %87 = sext i32 %86 to i64 %88 = mul i64 %87, 4 %89 = add i64 %88, %5 %90 = inttoptr i64 %89 to i32* store i32 7, i32* %90, align 4 %91 = add i32 %storemerge629.reload, 1 %92 = load i32, i32* %39, align 8 %93 = zext i32 %92 to i64 %94 = sext i32 %91 to i64 %95 = icmp slt i64 %94, %93 store i32 %91, i32* %storemerge629.reg2mem store i32 %92, i32* %.reg2mem83 br i1 %95, label LBL_22, label LBL_24 LBL_23: %storemerge730.reload = load i32, i32* %storemerge730.reg2mem %96 = call i64 @FUNC(i64 %6) %97 = trunc i64 %96 to i32 %98 = icmp eq i32 %97, 0 %99 = load i32, i32* %41, align 4 %100 = mul i32 %99, %storemerge531.reload %101 = add i32 %100, %storemerge730.reload %102 = sext i32 %101 to i64 %103 = mul i64 %102, 4 %104 = add i64 %103, %5 %105 = select i1 %98, i32 3, i32 7 %106 = inttoptr i64 %104 to i32* store i32 %105, i32* %106, align 4 %107 = add i32 %storemerge730.reload, 1 %108 = load i32, i32* %39, align 8 %109 = zext i32 %108 to i64 %110 = sext i32 %107 to i64 %111 = icmp slt i64 %110, %109 store i32 %107, i32* %storemerge730.reg2mem store i32 %108, i32* %.reg2mem83 br i1 %111, label LBL_23, label LBL_24 LBL_24: %.reload84 = load i32, i32* %.reg2mem83 %112 = add i32 %storemerge531.reload, 1 %113 = load i32, i32* %36, align 4 %114 = zext i32 %113 to i64 %115 = sext i32 %112 to i64 %116 = icmp slt i64 %115, %114 store i32 %.reload84, i32* %.reg2mem81 store i32 %112, i32* %storemerge531.reg2mem store i64 %114, i64* %rax.0.reg2mem br i1 %116, label LBL_19, label LBL_31 LBL_25: %storemerge925.reload = load i32, i32* %storemerge925.reg2mem %117 = call i64 @FUNC(i64 %6) %118 = trunc i64 %117 to i32 %119 = icmp eq i32 %118, 0 %120 = load i32, i32* %16, align 4 %121 = icmp eq i32 %120, 0 br i1 %119, label LBL_27, label LBL_26 LBL_26: store i32 0, i32* %storemerge1023.reg2mem br i1 %121, label LBL_30, label LBL_28 LBL_27: store i32 0, i32* %storemerge1124.reg2mem br i1 %121, label LBL_30, label LBL_29 LBL_28: %storemerge1023.reload = load i32, i32* %storemerge1023.reg2mem %122 = load i32, i32* %18, align 4 %123 = mul i32 %122, %storemerge1023.reload %124 = add i32 %123, %storemerge925.reload %125 = sext i32 %124 to i64 %126 = mul i64 %125, 4 %127 = add i64 %126, %5 %128 = inttoptr i64 %127 to i32* store i32 7, i32* %128, align 4 %129 = add i32 %storemerge1023.reload, 1 %130 = load i32, i32* %16, align 4 %131 = zext i32 %130 to i64 %132 = sext i32 %129 to i64 %133 = icmp slt i64 %132, %131 store i32 %129, i32* %storemerge1023.reg2mem br i1 %133, label LBL_28, label LBL_30 LBL_29: %storemerge1124.reload = load i32, i32* %storemerge1124.reg2mem %134 = call i64 @FUNC(i64 %6) %135 = trunc i64 %134 to i32 %136 = icmp eq i32 %135, 0 %137 = load i32, i32* %18, align 4 %138 = mul i32 %137, %storemerge1124.reload %139 = add i32 %138, %storemerge925.reload %140 = sext i32 %139 to i64 %141 = mul i64 %140, 4 %142 = add i64 %141, %5 %143 = select i1 %136, i32 3, i32 7 %144 = inttoptr i64 %142 to i32* store i32 %143, i32* %144, align 4 %145 = add i32 %storemerge1124.reload, 1 %146 = load i32, i32* %16, align 4 %147 = zext i32 %146 to i64 %148 = sext i32 %145 to i64 %149 = icmp slt i64 %148, %147 store i32 %145, i32* %storemerge1124.reg2mem br i1 %149, label LBL_29, label LBL_30 LBL_30: %150 = add i32 %storemerge925.reload, 1 %151 = load i32, i32* %12, align 8 %152 = zext i32 %151 to i64 %153 = sext i32 %150 to i64 %154 = icmp slt i64 %153, %152 store i32 %150, i32* %storemerge925.reg2mem store i64 %152, i64* %rax.0.reg2mem br i1 %154, label LBL_25, label LBL_31 LBL_31: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i1 %121, { 1, 0 } uselistorder i32 %storemerge925.reload, { 0, 2, 1 } uselistorder i1 %83, { 1, 0 } uselistorder i32 %storemerge531.reload, { 0, 2, 1 } uselistorder i32 %storemerge41.reload, { 1, 0 } uselistorder i32 %storemerge337.reload, { 1, 0 } uselistorder i32* %39, { 1, 2, 0 } uselistorder i32* %36, { 1, 0 } uselistorder i32* %32, { 1, 0 } uselistorder i32* %25, { 1, 0 } uselistorder i32* %16, { 0, 2, 1 } uselistorder i32* %12, { 1, 0 } uselistorder i32 %8, { 0, 2, 1, 3 } uselistorder i64 %6, { 3, 4, 1, 2, 0, 5 } uselistorder i64 %5, { 0, 1, 2, 3, 5, 4 } uselistorder i64 %0, { 4, 5, 2, 3, 0, 1, 7, 6, 8, 10, 9 } uselistorder i64* %rdi, { 2, 0, 1, 3 } uselistorder i32* %storemerge436.reg2mem, { 1, 2, 0 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem67, { 2, 0, 1 } uselistorder i32* %storemerge140.reg2mem, { 1, 2, 0 } uselistorder i32* %.reg2mem73, { 2, 0, 1 } uselistorder i32* %.reg2mem75, { 2, 0, 1 } uselistorder i32* %.reg2mem81, { 1, 0, 2 } uselistorder i32* %storemerge531.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge629.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge730.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem83, { 0, 2, 1, 3, 4 } uselistorder i32* %storemerge925.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge1023.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge1124.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2, 7, 6, 5, 9, 10, 8 } uselistorder i32 7, { 0, 3, 1, 4, 2 } uselistorder i64 (i64)* @get_bits1, { 4, 3, 2, 1, 0 } uselistorder i64 8, { 1, 3, 2, 0 } uselistorder i64 4, { 0, 1, 2, 3, 4, 5, 7, 9, 8, 6 } uselistorder i32 0, { 23, 0, 1, 14, 24, 25, 3, 5, 4, 6, 16, 26, 9, 10, 20, 27, 12, 13, 18, 7, 17, 11, 19, 8, 21, 22, 2, 15 } uselistorder i32 3, { 0, 1, 2, 5, 4, 3 } uselistorder label LBL_31, { 3, 2, 0, 1, 6, 5, 4, 8, 9, 7 } uselistorder label LBL_30, { 1, 0, 3, 2 } uselistorder label LBL_29, { 1, 0 } uselistorder label LBL_28, { 1, 0 } uselistorder label LBL_25, { 1, 0 } uselistorder label LBL_24, { 1, 0, 3, 2 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_22, { 1, 0 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_14, { 1, 0 } }
0
BinRealVul
usb_braille_init_13989
usb_braille_init
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), 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: %3 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0)) %4 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 %0) %5 = call i64 @FUNC(i64 %3) store i64 %3, 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 i32 1, { 2, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
do_sigreturn_13861
do_sigreturn
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %2 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %3 = load i64, i64* %0 %4 = add i64 %1, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %6, 128 %8 = call i64 @FUNC(i64 0, i64 0, i64 %7, i64 1) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_3, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64 %3, i64 0) %12 = call i64 @FUNC(i64 %2, i64 32) %13 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1) %14 = call i64 @FUNC(i64* nonnull %sv_0) %15 = call i64 @FUNC(i64 0, i64 40) %16 = call i64 @FUNC(i64 0, i64 0, i64 0, i64 1) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_3, label LBL_2 LBL_2: %19 = call i64 @FUNC(i64 %1, i64 0, i64 1) %20 = call i64 @FUNC(i64 0, i64 0, i64 1) %21 = call i64 @FUNC(i64 0, i64 %7, i64 1) store i64 1, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %22 = call i64 @FUNC(i64 0, i64 0, i64 1) %23 = call i64 @FUNC(i64 0, i64 %7, i64 1) %24 = call i64 @FUNC(i64 11) store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %7, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @__get_user, { 2, 1, 0 } uselistorder i64 (i64, i64, i64, i64)* @lock_user_struct, { 1, 0 } uselistorder i64 1, { 2, 3, 0, 4, 5, 6, 7, 8, 1 } }
1
BinRealVul
mrb_remove_method_5791
mrb_remove_method
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = icmp eq i64* %arg2, null %.pre = ptrtoint i32* %arg1 to i64 br i1 %1, label LBL_3, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 %.pre, i64 %0, i32 %arg3) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = call i64 @FUNC(i64 %.pre, i64 %0) store i64 %5, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %6 = zext i32 %arg3 to i64 %7 = call i64 @FUNC(i64 %.pre, i32 %arg3, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %0) store i64 %7, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %.pre, { 0, 2, 1 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 %arg3, { 2, 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
get_submv_prob_14766
get_submv_prob
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.shrunk.reg2mem = alloca i8 %sext = mul i64 %arg1, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = trunc i64 %arg2 to i32 %2 = trunc i64 %arg1 to i32 %3 = icmp eq i32 %2, %1 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = trunc i64 %0 to i32 %6 = icmp eq i32 %5, 0 %7 = select i1 %6, i8* inttoptr (i64 or (i64 ptrtoint (i8** @gv_0 to i64), i64 4) to i8*), i8* inttoptr (i64 or (i64 ptrtoint (i8** @gv_0 to i64), i64 3) to i8*) %8 = load i8, i8* %7, align 1 store i8 %8, i8* %rax.0.shrunk.reg2mem br label LBL_4 LBL_2: %9 = icmp eq i32 %1, 0 %10 = icmp eq i1 %9, false store i8 2, i8* %rax.0.shrunk.reg2mem br i1 %10, label LBL_3, label LBL_4 LBL_3: %11 = trunc i64 %0 to i32 %12 = icmp eq i32 %11, 0 %13 = select i1 %12, i8* inttoptr (i64 add (i64 ptrtoint (i8** @gv_0 to i64), i64 1) to i8*), i8* bitcast (i8** @gv_0 to i8*) %14 = load i8, i8* %13, align 1 store i8 %14, i8* %rax.0.shrunk.reg2mem br label LBL_4 LBL_4: %rax.0.shrunk.reload = load i8, i8* %rax.0.shrunk.reg2mem %rax.0 = zext i8 %rax.0.shrunk.reload to i64 ret i64 %rax.0 uselistorder i64 %0, { 1, 0 } uselistorder i8* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 } uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 2, 0, 1 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
disable_device_339
disable_device
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = or i32 %3, 1 %5 = bitcast i64* %arg1 to i32* store i32 %4, i32* %5, align 4 %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = trunc i64 %arg2 to i32 %10 = urem i32 %9, 32 %11 = shl i32 1, %10 %12 = or i32 %8, %11 store i32 %12, i32* %7, align 4 ret i64 %2 }
0
BinRealVul
iov_iter_advance_5688
iov_iter_advance
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %sv_2.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 uge i64 %3, %arg2 %5 = icmp ne i1 %4, true %6 = zext i1 %5 to i64 %7 = call i64 @FUNC(i64 %6) %8 = add i64 %0, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 1 %12 = zext i1 %11 to i64 %13 = call i64 @FUNC(i64 %12) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = add i64 %0, 24 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 store i64 %arg2, i64* %sv_2.0.reg2mem store i64 %12, i64* %sv_1.0.reg2mem store i64 %18, i64* %sv_0.0.reg2mem br i1 %15, label LBL_3, label LBL_1 LBL_1: %19 = add i64 %18, %arg2 store i64 %19, i64* %17, align 8 %20 = load i64, i64* %2, align 8 %21 = sub i64 %20, %arg2 store i64 %21, i64* %2, align 8 br label LBL_9 LBL_2: %22 = add i64 %sv_1.0.reload, 8 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = sub i64 %24, %sv_0.0.reload %26 = call i64 @FUNC(i64 %sv_2.0.reload, i64 %25) %27 = load i64, i64* %2, align 8 %28 = icmp eq i64 %27, 0 %.pre = mul i64 %26, 4294967296 %.pre6 = ashr exact i64 %.pre, 32 %29 = icmp ult i64 %27, %.pre6 %narrow = or i1 %28, %29 %storemerge = zext i1 %narrow to i64 %30 = call i64 @FUNC(i64 %storemerge) %31 = load i64, i64* %2, align 8 %32 = sub i64 %31, %.pre6 store i64 %32, i64* %2, align 8 %33 = sub i64 %sv_2.0.reload, %.pre6 %34 = add i64 %.pre6, %sv_0.0.reload %35 = load i64, i64* %23, align 8 %36 = icmp eq i64 %34, %35 %37 = icmp eq i1 %36, false %38 = add i64 %sv_1.0.reload, 16 %spec.select4 = select i1 %37, i64 %sv_1.0.reload, i64 %38 %spec.select5 = select i1 %37, i64 %34, i64 0 store i64 %33, i64* %sv_2.0.reg2mem store i64 %spec.select4, i64* %sv_1.0.reg2mem store i64 %spec.select5, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %39 = icmp eq i64 %sv_2.0.reload, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_2, label LBL_4 LBL_4: %41 = load i64, i64* %2, align 8 %42 = icmp eq i64 %41, 0 br i1 %42, label LBL_6, label LBL_5 LBL_5: %43 = add i64 %sv_1.0.reload, 8 %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 1, i64* %storemerge1.reg2mem br i1 %47, label LBL_6, label LBL_7 LBL_6: store i64 0, i64* %storemerge1.reg2mem br label LBL_7 LBL_7: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %48 = call i64 @FUNC(i64 %storemerge1.reload) %49 = trunc i64 %48 to i32 %50 = icmp eq i32 %49, 0 %51 = icmp eq i1 %50, false br i1 %51, label LBL_2, label LBL_8 LBL_8: store i64 %sv_1.0.reload, i64* %arg1, align 8 store i64 %sv_0.0.reload, i64* %17, align 8 br label LBL_9 LBL_9: ret i64 %0 uselistorder i64 %sv_1.0.reload, { 4, 2, 0, 1, 3 } uselistorder i64 %sv_0.0.reload, { 2, 0, 1 } uselistorder i64 %18, { 1, 0 } uselistorder i64* %2, { 2, 4, 3, 5, 1, 0, 6 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 0, 2, 3, 1 } uselistorder i64 (i64)* @BUG_ON, { 1, 0 } uselistorder i64 8, { 1, 0, 2 } uselistorder i64 %arg2, { 2, 1, 0, 3 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
hmp_info_local_apic_2741
hmp_info_local_apic
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC() %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) store i64 %9, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %10 = call i64 @FUNC(i64 %6, i64 %5, i64 4198905, i64 0) store i64 %10, 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 i64* %0, { 3, 2, 1, 0 } }
0
BinRealVul
resizer_configure_output_win_17859
resizer_configure_output_win
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i32, align 4 %sv_2 = alloca i32, align 4 %sv_3 = alloca i32, align 4 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 store i32 %5, i32* %sv_3, align 4 %6 = call i64 @FUNC(i64 %2, i64 0, i32* nonnull %sv_3, i64 0, i64 0) %7 = add i64 %2, 12 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i32 %9, 1 %11 = add i64 %2, 8 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = add i32 %13, 1 %15 = zext i32 %14 to i64 %16 = zext i32 %10 to i64 %17 = and i64 %1, 4294967295 %18 = bitcast i32* %sv_1 to i64* %19 = bitcast i32* %sv_2 to i64* %20 = call i64 @FUNC(i64 %17, i64 %15, i64 %16, i64* nonnull %18, i64* nonnull %19) %21 = load i32, i32* %sv_1, align 4 %22 = add i64 %2, 16 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = load i32, i32* %sv_2, align 4 %25 = add i64 %2, 20 %26 = inttoptr i64 %25 to i32* store i32 %24, i32* %26, align 4 %27 = call i64 @FUNC(i64 %2, i64 0) %28 = add i64 %2, 28 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_2, label LBL_1 LBL_1: %32 = call i64 @FUNC(i64 %2, i64 1) br label LBL_2 LBL_2: %33 = bitcast i64* %rdi to i32* %34 = load i32, i32* %33, align 8 %35 = icmp eq i32 %34, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_4, label LBL_3 LBL_3: %37 = call i64 @FUNC(i64 %3, i64 0, i64 1) br label LBL_5 LBL_4: %38 = call i64 @FUNC(i64 %3, i64 0, i64 0) br label LBL_5 LBL_5: %39 = call i64 @FUNC(i64 %2, i64 0) %40 = trunc i64 %39 to i32 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false store i32 %40, i32* %sv_0.0.reg2mem br i1 %42, label LBL_8, label LBL_6 LBL_6: %43 = load i32, i32* %29, align 4 %44 = icmp eq i32 %43, 0 store i32 %40, i32* %sv_0.0.reg2mem br i1 %44, label LBL_8, label LBL_7 LBL_7: %45 = call i64 @FUNC(i64 %2, i64 1) %46 = trunc i64 %45 to i32 store i32 %46, i32* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %47 = icmp eq i32 %sv_0.0.reload, 0 br i1 %47, label LBL_10, label LBL_9 LBL_9: %48 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0)) br label LBL_10 LBL_10: %49 = zext i32 %sv_0.0.reload to i64 ret i64 %49 uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64 %2, { 6, 7, 5, 0, 8, 1, 2, 3, 4, 9, 10 } uselistorder i64 (i64, i64)* @resizer_calculate_sdram_offsets, { 1, 0 } uselistorder i64 (i64, i64, i64)* @resizer_enable_422_420_conversion, { 1, 0 } uselistorder i64 (i64, i64)* @resizer_calculate_resize_ratios, { 1, 0 } }
1
BinRealVul
ff_vorbis_floor1_render_list_3868
ff_vorbis_floor1_render_list
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64 %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_1.2.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_1.18.reg2mem = alloca i32 %sv_0.19.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg6 to i64 %sext = mul i64 %arg7, 4294967296 %3 = ashr exact i64 %sext, 32 %sext5 = mul i64 %arg5, 4294967296 %4 = ashr exact i64 %sext5, 32 %5 = urem i64 %1, 65536 %6 = mul nsw i64 %5, %4 %7 = trunc i64 %6 to i32 %8 = trunc i64 %arg2 to i32 %9 = icmp sgt i32 %8, 1 br i1 %9, label LBL_2, label LBL_0.LBL_7_crit_edge LBL_1: %.pre = trunc i64 %3 to i32 store i32 %.pre, i32* %.pre-phi.reg2mem store i32 0, i32* %sv_1.2.reg2mem store i32 %7, i32* %sv_0.2.reg2mem br label LBL_7 LBL_2: %10 = ptrtoint i64* %arg4 to i64 %11 = ptrtoint i64* %arg3 to i64 %12 = ptrtoint i64* %arg1 to i64 %13 = add i64 %12, 4 %14 = trunc i64 %3 to i32 %sext16 = mul i64 %arg2, 4294967296 %15 = ashr exact i64 %sext16, 32 store i64 1, i64* %indvars.iv.reg2mem store i32 %7, i32* %sv_0.19.reg2mem store i32 0, i32* %sv_1.18.reg2mem br label LBL_3 LBL_3: %sv_1.18.reload = load i32, i32* %sv_1.18.reg2mem %sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %16 = mul i64 %indvars.iv.reload, 8 %17 = add i64 %16, %12 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = sext i32 %19 to i64 %21 = mul i64 %20, 4 %22 = add i64 %21, %10 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = icmp eq i32 %24, 0 store i32 %sv_1.18.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem br i1 %25, label LBL_6, label LBL_4 LBL_4: %26 = mul i64 %20, 8 %27 = add i64 %13, %26 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = mul i64 %20, 2 %31 = add i64 %30, %11 %32 = inttoptr i64 %31 to i16* %33 = load i16, i16* %32, align 2 %34 = zext i16 %33 to i64 %35 = mul nsw i64 %4, %34 %36 = trunc i64 %35 to i32 %37 = icmp slt i32 %sv_1.18.reload, %14 store i32 %29, i32* %sv_1.0.reg2mem store i32 %36, i32* %sv_0.0.reg2mem br i1 %37, label LBL_5, label LBL_6 LBL_5: %38 = sub i32 %14, %29 %39 = xor i32 %29, %14 %40 = xor i32 %38, %14 %41 = and i32 %40, %39 %42 = icmp slt i32 %41, 0 %43 = icmp eq i32 %38, 0 %44 = icmp slt i32 %38, 0 %45 = icmp eq i1 %44, %42 %46 = icmp eq i1 %43, false %47 = icmp eq i1 %45, %46 %48 = select i1 %47, i32 %29, i32 %14 %49 = zext i32 %sv_1.18.reload to i64 %50 = call i64 @FUNC(i64 %49, i32 %sv_0.19.reload, i32 %48, i32 %36, i64 %2) store i32 %29, i32* %sv_1.0.reg2mem store i32 %36, i32* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %51 = icmp slt i32 %sv_1.0.reload, %14 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %52 = icmp slt i64 %indvars.iv.next, %15 %or.cond = icmp eq i1 %52, %51 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.19.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.18.reg2mem store i32 %14, i32* %.pre-phi.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem br i1 %or.cond, label LBL_3, label LBL_7 LBL_7: %sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %53 = zext i32 %sv_1.2.reload to i64 %54 = icmp slt i32 %sv_1.2.reload, %.pre-phi.reload store i64 %53, i64* %rax.0.reg2mem br i1 %54, label LBL_8, label LBL_9 LBL_8: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %55 = call i64 @FUNC(i64 %53, i32 %sv_0.2.reload, i32 %.pre-phi.reload, i32 %sv_0.2.reload, i64 %2) store i64 %55, 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 %53, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 0, 2, 1 } uselistorder i32 %38, { 1, 2, 0 } uselistorder i32 %36, { 0, 2, 1 } uselistorder i32 %29, { 0, 4, 2, 3, 1 } uselistorder i32 %sv_0.19.reload, { 1, 0 } uselistorder i32 %sv_1.18.reload, { 2, 1, 0 } uselistorder i32 %14, { 0, 3, 4, 1, 2, 5, 6 } uselistorder i32 %7, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.19.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.18.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i32, i32, i32, i64)* @render_line, { 1, 0 } uselistorder label LBL_9, { 1, 0 } }
0
BinRealVul
pop_output_configuration_14862
pop_output_configuration
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, 12 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 1 store i64 1, i64* %rax.0.reg2mem br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = trunc i64 %0 to i32 %6 = icmp eq i32 %5, 1 %7 = icmp eq i1 %6, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = inttoptr i64 %1 to i64* store i64 %0, i64* %8, align 8 %9 = add i64 %0, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %0, 20 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = add i64 %0, 24 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = inttoptr i64 %16 to i32* store i32 %19, i32* %20, align 4 %21 = load i64, i64* %15, align 8 %22 = load i32, i32* %13, align 4 %23 = add i64 %21, 4 %24 = inttoptr i64 %23 to i32* store i32 %22, i32* %24, align 4 store i64 %21, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %25 = add i64 %0, 24 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = inttoptr i64 %27 to i32* store i32 0, i32* %28, align 4 %29 = load i64, i64* %26, align 8 %30 = add i64 %29, 4 %31 = inttoptr i64 %30 to i32* store i32 0, i32* %31, align 4 store i64 %29, 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 %0, { 4, 3, 2, 6, 5, 0, 1, 7 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } }
1
BinRealVul
av_reduce_476
av_reduce
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %.reg2mem = alloca i64 %0 = sub i64 0, %arg4 %1 = icmp slt i64 %arg4, 0 %2 = select i1 %1, i64 %0, i64 %arg4 %3 = sub i64 0, %arg3 %4 = icmp slt i64 %3, 0 %5 = icmp eq i1 %4, false %6 = select i1 %5, i64 %3, i64 %arg3 %7 = call i64 @FUNC(i64 %6, i64 %2) store i64 1, i64* %.reg2mem br i1 false, label LBL_1, label LBL_9 LBL_1: br i1 undef, label LBL_2, label LBL_8 LBL_2: br i1 undef, label LBL_4, label LBL_3 LBL_3: br label LBL_4 LBL_4: br i1 undef, label LBL_6, label LBL_5 LBL_5: br label LBL_6 LBL_6: store i64 0, i64* %.reg2mem br i1 undef, label LBL_7, label LBL_9 LBL_7: store i64 0, i64* %.reg2mem br label LBL_9 LBL_8: store i64 1, i64* %.reg2mem br i1 undef, label LBL_1, label LBL_9 LBL_9: %8 = udiv i64 %6, %7 %9 = sext i64 %8 to i128 %10 = icmp sgt i64 %8, %arg5 %11 = icmp slt i64 %arg5, 0 %or.cond = or i1 %10, %11 %spec.select27 = select i1 %or.cond, i128 1, i128 %9 %extract.t1743 = trunc i128 %spec.select27 to i64 %.reload = load i64, i64* %.reg2mem %12 = call i64 @FUNC(i64 %extract.t1743, i64 0) %13 = icmp eq i64 %12, 1 br i1 %13, label LBL_11, label LBL_10 LBL_10: call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) br label LBL_11 LBL_11: %14 = xor i64 %arg4, %arg3 %extract.t1342 = trunc i128 %spec.select27 to i32 %15 = icmp sgt i64 %14, -1 %16 = sub i32 0, %extract.t1342 %storemerge.in = select i1 %15, i32 %extract.t1342, i32 %16 %17 = bitcast i64* %arg1 to i32* store i32 %storemerge.in, i32* %17, align 4 %18 = bitcast i64* %arg2 to i32* store i32 0, i32* %18, align 4 ret i64 %.reload uselistorder i128 %spec.select27, { 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 1, 4, 3, 2 } uselistorder i64 1, { 2, 0, 1 } uselistorder i64 (i64, i64)* @ff_gcd, { 1, 0 } uselistorder i1 false, { 0, 2, 3, 1 } uselistorder i64 %arg3, { 0, 2, 1 } uselistorder label LBL_9, { 0, 3, 2, 1 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
gen_mtmsrd_5061
gen_mtmsrd
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %1, 65536 %3 = icmp eq i64 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC() %5 = and i64 %1, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = mul i64 %6, 8 %8 = add i64 %7, ptrtoint (i64* @gv_0 to i64) %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %4, i64 %10, i64 3) %12 = load i64, i64* @gv_1, align 8 %13 = call i64 @FUNC(i64 %12, i64 %12, i64 -4) %14 = load i64, i64* @gv_1, align 8 %15 = call i64 @FUNC(i64 %14, i64 %14, i64 %4) %16 = call i64 @FUNC(i64 %4) store i64 %16, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %17 = ptrtoint i64* %arg1 to i64 %18 = add i64 %17, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %17, i64 %20) %22 = and i64 %1, 4294967295 %23 = call i64 @FUNC(i64 %22) %24 = mul i64 %23, 8 %25 = add i64 %24, ptrtoint (i64* @gv_0 to i64) %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = load i64, i64* @gv_2, align 8 %29 = call i64 @FUNC(i64 %28, i64 %27) %30 = call i64 @FUNC(i64 %17) store i64 %30, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %17, { 0, 2, 1 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %12, { 1, 0 } uselistorder i64 %1, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i64)* @tcg_gen_andi_tl, { 1, 0 } uselistorder i64 8, { 0, 2, 1 } uselistorder i64 (i64)* @rS, { 1, 0 } }
0
BinRealVul
sorecvoob_16591
sorecvoob
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 %arg1) %3 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0)) %4 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %arg1) %5 = call i64 @FUNC(i64 %arg1) %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = trunc i64 %1 to i32 %10 = add i32 %8, %9 %11 = inttoptr i64 %2 to i32* store i32 %10, i32* %11, align 4 %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i32* store i32 1, i32* %13, align 4 %14 = call i64 @FUNC(i64 %2) store i32 0, i32* %13, align 4 ret i64 %2 uselistorder i32 1, { 3, 2, 1, 0 } }
1
BinRealVul
av_fast_realloc_1082
av_fast_realloc
define i64 @FUNC(i64 %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %1, 4294967295 %3 = icmp ugt i64 %2, %arg3 %4 = icmp eq i1 %3, false store i64 %arg1, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_2 LBL_1: %5 = udiv i64 %arg3, 16 %6 = add i64 %arg3, 32 %7 = add i64 %6, %5 %8 = icmp ugt i64 %7, %arg3 %9 = select i1 %8, i64 %7, i64 %arg3 %10 = call i64 @FUNC(i64 %arg1, i64 %9) %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false %13 = trunc i64 %9 to i32 %14 = select i1 %12, i32 %13, i32 0 store i32 %14, i32* %arg2, align 4 store i64 %10, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %7, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 %arg3, { 3, 2, 1, 0, 4 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
readline_hist_add_1026
readline_hist_add
define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem50 = alloca i8* %sv_0.3.reg2mem = alloca i32 %rdi.226.reg2mem = alloca i64 %.pre-phi49.reg2mem = alloca i64* %sv_0.111.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %.reg2mem = alloca i64 %.pre-phi23.reg2mem = alloca i64 %.pre-phi25.reg2mem = alloca i64* %storemerge12.reg2mem = alloca i32 %1 = load i64, i64* %0 %sv_1 = alloca i8*, align 8 %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_16, label LBL_1 LBL_1: %4 = ptrtoint i64* %arg1 to i64 store i8* null, i8** %sv_1, align 8 %5 = add i64 %4, 80 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, -1 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = sext i32 %7 to i64 %10 = mul i64 %9, 8 %11 = add i64 %10, %4 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i8* %15 = call i32 @strcmp(i8* %14, i8* %arg2) %16 = icmp eq i32 %15, 0 store i64* %12, i64** %.pre-phi25.reg2mem store i64 %11, i64* %.pre-phi23.reg2mem store i64 %13, i64* %.reg2mem store i32 %7, i32* %sv_0.0.reg2mem br i1 %16, label LBL_6, label LBL_3 LBL_3: store i32 0, i32* %storemerge12.reg2mem br label LBL_4 LBL_4: %storemerge12.reload = load i32, i32* %storemerge12.reg2mem %17 = sext i32 %storemerge12.reload to i64 %18 = mul i64 %17, 8 %19 = add i64 %18, %4 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 store i32 %storemerge12.reload, i32* %sv_0.3.reg2mem br i1 %22, label LBL_13, label LBL_5 LBL_5: %23 = inttoptr i64 %21 to i8* %24 = call i32 @strcmp(i8* %23, i8* %arg2) %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false store i64* %20, i64** %.pre-phi25.reg2mem store i64 %19, i64* %.pre-phi23.reg2mem store i64 %21, i64* %.reg2mem store i32 %storemerge12.reload, i32* %sv_0.0.reg2mem br i1 %26, label LBL_9, label LBL_6 LBL_6: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %.reload = load i64, i64* %.reg2mem %.pre-phi23.reload = load i64, i64* %.pre-phi23.reg2mem %.pre-phi25.reload = load i64*, i64** %.pre-phi25.reg2mem %27 = bitcast i8** %sv_1 to i64* store i64 %.reload, i64* %27, align 8 %28 = mul i32 %sv_0.0.reload, 8 %29 = sub i32 72, %28 %30 = add i32 %sv_0.0.reload, 1 %31 = sext i32 %30 to i64 %32 = mul i64 %31, 8 %33 = add i64 %32, %4 %34 = inttoptr i64 %33 to i64* %35 = call i64* @memmove(i64* %.pre-phi25.reload, i64* %34, i32 %29) %36 = add i64 %4, 72 %37 = inttoptr i64 %36 to i64* store i64 0, i64* %37, align 8 %38 = icmp slt i32 %sv_0.0.reload, 10 store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem br i1 %38, label LBL_7, label LBL_10 LBL_7: %sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem %39 = sext i32 %sv_0.111.reload to i64 %40 = mul i64 %39, 8 %41 = add i64 %40, %4 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = icmp eq i64 %43, 0 store i32 %sv_0.111.reload, i32* %sv_0.3.reg2mem br i1 %44, label LBL_13, label LBL_8 LBL_8: %45 = add i32 %sv_0.111.reload, 1 %46 = icmp slt i32 %45, 10 store i32 %45, i32* %sv_0.111.reg2mem store i64* %37, i64** %.pre-phi49.reg2mem store i64 %.pre-phi23.reload, i64* %rdi.226.reg2mem br i1 %46, label LBL_7, label LBL_12 LBL_9: %47 = add nuw i32 %storemerge12.reload, 1 %48 = icmp ult i32 %47, 10 store i32 %47, i32* %storemerge12.reg2mem br i1 %48, label LBL_4, label LBL_11 LBL_10: %49 = icmp eq i32 %sv_0.0.reload, 10 %50 = icmp eq i1 %49, false store i64* %37, i64** %.pre-phi49.reg2mem store i64 %.pre-phi23.reload, i64* %rdi.226.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.3.reg2mem br i1 %50, label LBL_13, label LBL_12 LBL_11: %.pre = add i64 %4, 72 %.pre48 = inttoptr i64 %.pre to i64* store i64* %.pre48, i64** %.pre-phi49.reg2mem store i64 %21, i64* %rdi.226.reg2mem br label LBL_12 LBL_12: %rdi.226.reload = load i64, i64* %rdi.226.reg2mem %.pre-phi49.reload = load i64*, i64** %.pre-phi49.reg2mem %51 = inttoptr i64 %rdi.226.reload to i64* call void @free(i64* %51) %52 = add i64 %4, 8 %53 = inttoptr i64 %52 to i64* %54 = call i64* @memcpy(i64* %arg1, i64* %53, i32 72) store i64 0, i64* %.pre-phi49.reload, align 8 store i32 9, i32* %sv_0.3.reg2mem br label LBL_13 LBL_13: %sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem %55 = load i8*, i8** %sv_1, align 8 %56 = icmp eq i8* %55, null %57 = icmp eq i1 %56, false store i8* %55, i8** %.reg2mem50 br i1 %57, label LBL_15, label LBL_14 LBL_14: %58 = call i8* @strdup(i8* %arg2) store i8* %58, i8** %sv_1, align 8 store i8* %58, i8** %.reg2mem50 br label LBL_15 LBL_15: %.reload51 = load i8*, i8** %.reg2mem50 %59 = sext i32 %sv_0.3.reload to i64 %60 = ptrtoint i8* %.reload51 to i64 %61 = mul i64 %59, 8 %62 = add i64 %61, %4 %63 = inttoptr i64 %62 to i64* store i64 %60, i64* %63, align 8 store i32 -1, i32* %6, align 4 store i64 %4, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %sv_0.111.reload, { 2, 0, 1 } uselistorder i64* %37, { 1, 0, 2 } uselistorder i64 %.pre-phi23.reload, { 1, 0 } uselistorder i32 %sv_0.0.reload, { 0, 4, 1, 3, 2, 5 } uselistorder i32 %storemerge12.reload, { 2, 1, 0, 3 } uselistorder i64 %4, { 0, 2, 8, 1, 3, 7, 4, 5, 6, 9 } uselistorder i8** %sv_1, { 3, 2, 0, 1 } uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.111.reg2mem, { 2, 0, 1 } uselistorder i64** %.pre-phi49.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rdi.226.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_0.3.reg2mem, { 0, 3, 4, 2, 1 } uselistorder i8** %.reg2mem50, { 0, 2, 1 } uselistorder i32 10, { 2, 3, 1, 0 } uselistorder i32 72, { 1, 0 } uselistorder i32 0, { 1, 0, 2 } uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i8* %arg2, { 2, 1, 0 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_13, { 2, 3, 1, 0 } uselistorder label LBL_12, { 1, 2, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
uhci_process_frame_7412
uhci_process_frame
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.110.reg2mem = alloca i32 %sv_0.212.reg2mem = alloca i32 %storemerge14.reg2mem = alloca i32 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = load i32, i32* %1 %sv_2 = alloca i32, align 4 %5 = load i32, i32* %1 %sv_3 = alloca i32, align 4 %sv_4 = alloca i32, align 4 %sv_5 = alloca i32, align 4 %sv_6 = alloca i32, align 4 %sv_7 = alloca i32, align 4 %6 = trunc i64 %2 to i32 %7 = add i64 %3, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = mul i32 %9, 4 %11 = and i32 %10, 4092 %12 = add i32 %11, %6 %13 = add i64 %3, 16 %14 = zext i32 %12 to i64 %15 = bitcast i32* %sv_7 to i64* %16 = call i64 @FUNC(i64 %13, i64 %14, i64* nonnull %15, i64 4) %17 = call i64 @FUNC(i64* nonnull %15) store i32 0, i32* %sv_6, align 4 %18 = bitcast i32* %sv_5 to i64* %19 = call i64 @FUNC(i64* nonnull %18) %20 = load i32, i32* %sv_7, align 4 %21 = zext i32 %20 to i64 %22 = call i64 @FUNC(i64 %21) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_25, label LBL_1 LBL_1: %25 = add i64 %3, 8 %26 = inttoptr i64 %25 to i32* %27 = add i64 %3, 12 %28 = inttoptr i64 %27 to i32* %29 = bitcast i32* %sv_4 to i64* %30 = bitcast i32* %sv_3 to i64* %31 = zext i32 %5 to i64 store i32 1000, i32* %storemerge14.reg2mem store i32 0, i32* %sv_0.212.reg2mem store i32 0, i32* %sv_1.110.reg2mem br label LBL_2 LBL_2: %32 = load i32, i32* %26, align 4 %33 = load i32, i32* %28, align 4 %34 = icmp ult i32 %32, %33 br i1 %34, label LBL_4, label LBL_3 LBL_3: %35 = call i64 @FUNC() br label LBL_25 LBL_4: %sv_0.212.reload = load i32, i32* %sv_0.212.reg2mem %storemerge14.reload = load i32, i32* %storemerge14.reg2mem %36 = load i32, i32* %sv_7, align 4 %37 = zext i32 %36 to i64 %38 = call i64 @FUNC(i64 %37) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 %41 = load i32, i32* %sv_7, align 4 br i1 %40, label LBL_12, label LBL_5 LBL_5: %42 = and i32 %41, -16 %43 = zext i32 %42 to i64 %44 = call i64 @FUNC(i64 %43) %45 = load i32, i32* %sv_7, align 4 %46 = zext i32 %45 to i64 %47 = call i64 @FUNC(i64* nonnull %18, i64 %46) %48 = trunc i64 %47 to i32 %49 = icmp eq i32 %48, 0 store i32 %sv_0.212.reload, i32* %sv_0.0.reg2mem br i1 %49, label LBL_9, label LBL_6 LBL_6: %50 = icmp eq i32 %sv_0.212.reload, 0 %51 = icmp eq i1 %50, false br i1 %51, label LBL_8, label LBL_7 LBL_7: %52 = call i64 @FUNC() br label LBL_25 LBL_8: %53 = call i64 @FUNC() %54 = call i64 @FUNC(i64* nonnull %18) %55 = load i32, i32* %sv_7, align 4 %56 = zext i32 %55 to i64 %57 = call i64 @FUNC(i64* nonnull %18, i64 %56) store i32 0, i32* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %58 = load i32, i32* %sv_7, align 4 %59 = and i32 %58, -16 %60 = zext i32 %59 to i64 %61 = call i64 @FUNC(i64 %13, i64 %60, i64* nonnull %18, i64 8) %62 = call i64 @FUNC(i64* nonnull %18) %63 = call i64 @FUNC(i64* nonnull %29) %64 = load i32, i32* %sv_4, align 4 %65 = zext i32 %64 to i64 %66 = call i64 @FUNC(i64 %65) %67 = trunc i64 %66 to i32 %68 = icmp eq i32 %67, 0 %69 = icmp eq i1 %68, false br i1 %69, label LBL_11, label LBL_10 LBL_10: %70 = load i32, i32* %sv_5, align 4 store i32 %70, i32* %sv_7, align 4 store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_24 LBL_11: %71 = load i32, i32* %sv_7, align 4 %72 = load i32, i32* %sv_4, align 4 store i32 %72, i32* %sv_7, align 4 store i32 %71, i32* %sv_1.0.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_24 LBL_12: %sv_1.110.reload = load i32, i32* %sv_1.110.reg2mem %73 = zext i32 %41 to i64 %74 = call i64 @FUNC(i64 %3, i64* nonnull %30, i64 %73) %75 = load i32, i32* %sv_3, align 4 %76 = load i32, i32* %sv_7, align 4 %77 = and i32 %76, -16 %78 = zext i32 %77 to i64 %79 = and i32 %sv_1.110.reload, -16 %80 = zext i32 %79 to i64 %81 = zext i32 %75 to i64 %82 = call i64 @FUNC(i64 %80, i64 %78, i64 %81, i64 %31) %83 = load i32, i32* %sv_3, align 4 %84 = load i32, i32* %sv_7, align 4 %85 = zext i32 %84 to i64 %86 = call i64 @FUNC(i64 %3, i64 0, i64* nonnull %30, i64 %85, i32* nonnull %sv_6) %87 = load i32, i32* %sv_3, align 4 %88 = icmp eq i32 %83, %87 br i1 %88, label LBL_14, label LBL_13 LBL_13: %89 = zext i32 %87 to i64 %90 = call i64 @FUNC(i64 %89) %91 = trunc i64 %90 to i32 store i32 %91, i32* %sv_2, align 4 %92 = load i32, i32* %sv_7, align 4 %93 = and i32 %92, -16 %94 = or i32 %93, 4 %95 = zext i32 %94 to i64 %96 = call i64 @FUNC(i64 %13, i64 %95, i32* nonnull %sv_2, i64 4) br label LBL_14 LBL_14: %97 = trunc i64 %86 to i32 %98 = icmp eq i32 %97, 4 br i1 %98, label LBL_20, label LBL_15 LBL_15: %99 = icmp sgt i32 %97, 4 br i1 %99, label LBL_23, label LBL_16 LBL_16: switch i32 %97, label LBL_17 [ i32 3, label LBL_19 i32 0, label LBL_25 ] LBL_17: %100 = icmp sgt i32 %97, -1 %101 = add i32 %97, -1 %102 = icmp ult i32 %101, 2 %or.cond = icmp eq i1 %100, %102 br i1 %or.cond, label LBL_18, label LBL_23 LBL_18: %103 = load i32, i32* %sv_7, align 4 %104 = and i32 %103, -16 %105 = zext i32 %104 to i64 %106 = call i64 @FUNC(i64 %80, i64 %105) %107 = icmp eq i32 %sv_1.110.reload, 0 %108 = load i32, i32* %sv_5, align 4 %storemerge5.in = select i1 %107, i32 %4, i32 %108 store i32 %storemerge5.in, i32* %sv_7, align 4 store i32 %sv_1.110.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.212.reload, i32* %sv_0.1.reg2mem br label LBL_24 LBL_19: %109 = load i32, i32* %sv_7, align 4 %110 = and i32 %109, -16 %111 = zext i32 %110 to i64 %112 = call i64 @FUNC(i64 %80, i64 %111) %113 = icmp eq i32 %sv_1.110.reload, 0 %114 = load i32, i32* %sv_5, align 4 %storemerge6.in = select i1 %113, i32 %4, i32 %114 store i32 %storemerge6.in, i32* %sv_7, align 4 store i32 %sv_1.110.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.212.reload, i32* %sv_0.1.reg2mem br label LBL_24 LBL_20: %115 = load i32, i32* %sv_7, align 4 %116 = and i32 %115, -16 %117 = zext i32 %116 to i64 %118 = call i64 @FUNC(i64 %80, i64 %117) %119 = add i32 %sv_0.212.reload, 1 %120 = load i32, i32* %26, align 4 %121 = load i32, i32* %sv_3, align 4 %122 = urem i32 %121, 2048 %123 = add i32 %120, 1 %124 = add i32 %123, %122 store i32 %124, i32* %26, align 4 %125 = icmp eq i32 %sv_1.110.reload, 0 store i32 0, i32* %sv_1.0.reg2mem store i32 %119, i32* %sv_0.1.reg2mem br i1 %125, label LBL_24, label LBL_21 LBL_21: %126 = load i32, i32* %sv_7, align 4 store i32 %126, i32* %sv_4, align 4 %127 = zext i32 %126 to i64 %128 = call i64 @FUNC(i64 %127) %129 = trunc i64 %128 to i32 store i32 %129, i32* %sv_2, align 4 %130 = or i32 %79, 4 %131 = zext i32 %130 to i64 %132 = call i64 @FUNC(i64 %13, i64 %131, i32* nonnull %sv_2, i64 4) %133 = load i32, i32* %sv_7, align 4 %134 = zext i32 %133 to i64 %135 = call i64 @FUNC(i64 %134) %136 = trunc i64 %135 to i32 %137 = icmp eq i32 %136, 0 %138 = icmp eq i1 %137, false store i32 %sv_1.110.reload, i32* %sv_1.0.reg2mem store i32 %119, i32* %sv_0.1.reg2mem br i1 %138, label LBL_24, label LBL_22 LBL_22: %139 = load i32, i32* %sv_5, align 4 store i32 %139, i32* %sv_7, align 4 store i32 0, i32* %sv_1.0.reg2mem store i32 %119, i32* %sv_0.1.reg2mem br label LBL_24 LBL_23: call void @__assert_fail(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 188, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) store i32 %sv_1.110.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.212.reload, i32* %sv_0.1.reg2mem br label LBL_24 LBL_24: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %140 = add i32 %storemerge14.reload, -1 %141 = load i32, i32* %sv_7, align 4 %142 = zext i32 %141 to i64 %143 = call i64 @FUNC(i64 %142) %144 = trunc i64 %143 to i32 %145 = icmp ne i32 %144, 0 %146 = icmp eq i32 %140, 0 %147 = icmp eq i1 %146, false %or.cond9 = icmp eq i1 %147, %145 store i32 %140, i32* %storemerge14.reg2mem store i32 %sv_0.1.reload, i32* %sv_0.212.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.110.reg2mem br i1 %or.cond9, label LBL_2, label LBL_25 LBL_25: %148 = add i64 %3, 24 %149 = inttoptr i64 %148 to i32* %150 = load i32, i32* %149, align 4 %151 = load i32, i32* %sv_6, align 4 %152 = or i32 %151, %150 store i32 %152, i32* %149, align 4 ret i64 %3 uselistorder i32 %97, { 2, 0, 1, 4, 3 } uselistorder i64 %80, { 2, 1, 0, 3 } uselistorder i32 %sv_1.110.reload, { 2, 3, 6, 1, 5, 0, 4, 7 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i32 %41, { 1, 0 } uselistorder i32 %sv_0.212.reload, { 2, 5, 1, 0, 4, 3 } uselistorder i32* %26, { 1, 0, 2 } uselistorder i64* %18, { 2, 3, 0, 1, 4, 5 } uselistorder i64 %13, { 2, 1, 0, 3 } uselistorder i32* %sv_7, { 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 7, 6, 5, 4, 3, 2, 8, 1, 0, 21 } uselistorder i32* %sv_6, { 1, 0, 2 } uselistorder i32* %sv_5, { 3, 2, 1, 0, 4 } uselistorder i32* %sv_4, { 2, 1, 0, 3 } uselistorder i32* %sv_3, { 3, 2, 1, 0, 4 } uselistorder i32* %sv_2, { 0, 2, 1, 3 } uselistorder i64 %3, { 5, 4, 0, 1, 3, 2, 6, 7 } uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.212.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.110.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.0.reg2mem, { 0, 5, 6, 7, 8, 4, 3, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 5, 6, 7, 8, 4, 3, 2, 1 } uselistorder i32* %1, { 1, 0 } uselistorder i32 -1, { 2, 1, 0 } uselistorder i64 (i64, i64, i32*, i64)* @pci_dma_write, { 1, 0 } uselistorder i64 (i64)* @cpu_to_le32, { 1, 0 } uselistorder i64 (i64*, i64)* @qhdb_insert, { 1, 0 } uselistorder i64 (i64)* @is_valid, { 1, 2, 0 } uselistorder i64 (i64*)* @qhdb_reset, { 1, 0 } uselistorder i32 0, { 8, 18, 1, 10, 2, 11, 12, 13, 7, 0, 14, 3, 15, 16, 17, 4, 5, 6, 9 } uselistorder i64 (i64*)* @le32_to_cpus, { 2, 1, 0 } uselistorder i64 (i64, i64, i64*, i64)* @pci_dma_read, { 1, 0 } uselistorder i32 4, { 1, 4, 2, 3, 0 } uselistorder i64 4, { 1, 2, 3, 4, 0 } uselistorder label LBL_25, { 0, 1, 3, 4, 2 } uselistorder label LBL_24, { 3, 2, 1, 0, 4, 5, 6, 7 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
rv34_idct_add_c_2534
rv34_idct_add_c
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.01.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %2 = ptrtoint i64* %sv_2 to i64 %3 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0) %4 = call i64* @memset(i64* %arg3, i32 0, i32 64) %5 = add i64 %2, -96 store i64 0, i64* %indvars.iv.reg2mem store i64 %1, i64* %sv_0.01.reg2mem br label LBL_1 LBL_1: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %6 = mul i64 %indvars.iv.reload, 4 %7 = add i64 %6, %5 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %7, 32 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i32 %12, %9 %14 = mul i32 %13, 13 %15 = add i32 %14, 512 %16 = sub i32 %9, %12 %17 = mul i32 %16, 13 %18 = add i32 %17, 512 %19 = add i64 %7, 16 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = mul i32 %21, 7 %23 = add i64 %7, 48 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = mul i32 %25, -17 %27 = add i32 %26, %22 %28 = mul i32 %21, 17 %29 = mul i32 %25, 7 %30 = add i32 %29, %28 %31 = inttoptr i64 %sv_0.01.reload to i8* %32 = load i8, i8* %31, align 1 %33 = add i32 %30, %15 %34 = ashr i32 %33, 10 %35 = zext i8 %32 to i32 %36 = add nsw i32 %34, %35 %37 = sext i32 %36 to i64 %38 = add i64 %37, ptrtoint (i64* @gv_0 to i64) %39 = inttoptr i64 %38 to i8* %40 = load i8, i8* %39, align 1 store i8 %40, i8* %31, align 1 %41 = add i64 %sv_0.01.reload, 1 %42 = inttoptr i64 %41 to i8* %43 = load i8, i8* %42, align 1 %44 = add i32 %27, %18 %45 = ashr i32 %44, 10 %46 = zext i8 %43 to i32 %47 = add nsw i32 %45, %46 %48 = sext i32 %47 to i64 %49 = add i64 %48, ptrtoint (i64* @gv_0 to i64) %50 = inttoptr i64 %49 to i8* %51 = load i8, i8* %50, align 1 store i8 %51, i8* %42, align 1 %52 = add i64 %sv_0.01.reload, 2 %53 = inttoptr i64 %52 to i8* %54 = load i8, i8* %53, align 1 %55 = sub i32 %18, %27 %56 = ashr i32 %55, 10 %57 = zext i8 %54 to i32 %58 = add nsw i32 %56, %57 %59 = sext i32 %58 to i64 %60 = add i64 %59, ptrtoint (i64* @gv_0 to i64) %61 = inttoptr i64 %60 to i8* %62 = load i8, i8* %61, align 1 store i8 %62, i8* %53, align 1 %63 = add i64 %sv_0.01.reload, 3 %64 = inttoptr i64 %63 to i8* %65 = load i8, i8* %64, align 1 %66 = sub i32 %15, %30 %67 = ashr i32 %66, 10 %68 = zext i8 %65 to i32 %69 = add nsw i32 %67, %68 %70 = sext i32 %69 to i64 %71 = add i64 %70, ptrtoint (i64* @gv_0 to i64) %72 = inttoptr i64 %71 to i8* %73 = load i8, i8* %72, align 1 store i8 %73, i8* %64, align 1 %74 = add i64 %sv_0.01.reload, %arg2 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %74, i64* %sv_0.01.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: ret i64 %arg2 uselistorder i32 %30, { 1, 0 } uselistorder i32 %27, { 1, 0 } uselistorder i32 %18, { 1, 0 } uselistorder i32 %15, { 1, 0 } uselistorder i32 %12, { 1, 0 } uselistorder i32 %9, { 1, 0 } uselistorder i64 %sv_0.01.reload, { 4, 0, 1, 2, 3 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 } uselistorder i64 %arg2, { 1, 0 } }
0
BinRealVul
hmp_drive_add_14488
hmp_drive_add
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.1.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg2 to i64 %6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %7 = call i64 @FUNC(i64 %6) %8 = icmp eq i64 %7, 0 store i64 0, i64* %rax.1.reg2mem br i1 %8, label LBL_7, label LBL_1 LBL_1: %9 = ptrtoint i64* %arg1 to i64 %10 = inttoptr i64 %7 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 br i1 %12, label LBL_3, label LBL_2 LBL_2: %13 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) br label LBL_6 LBL_3: %14 = add i64 %7, 8 %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_5, label LBL_4 LBL_4: %19 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) store i64 %19, i64* %rax.1.reg2mem br label LBL_7 LBL_5: %20 = call i64 @FUNC(i64 %9, i64 %5, i64 %7) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 store i64 %20, i64* %rax.1.reg2mem br i1 %22, label LBL_7, label LBL_6 LBL_6: %23 = call i64 @FUNC(i64 %7) %24 = call i64 @FUNC(i64 %23) store i64 %24, i64* %rax.1.reg2mem br label LBL_7 LBL_7: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64 %9, { 2, 1, 0 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.1.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @monitor_printf, { 1, 0 } uselistorder label LBL_7, { 3, 2, 1, 0 } }
1
BinRealVul
nbd_close_3531
nbd_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4) %6 = call i64 @FUNC(i64 %0) ret i64 %6 uselistorder i64 (i64)* @qemu_free, { 1, 0 } }
0
BinRealVul
md_allow_write_9060
md_allow_write
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_9 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = icmp eq i32 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_9 LBL_2: %7 = add i64 %2, 32 %8 = call i64 @FUNC(i64 %7) %9 = add i64 %2, 12 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 br i1 %12, label LBL_7, label LBL_3 LBL_3: store i32 0, i32* %10, align 4 %13 = add i64 %2, 24 %14 = call i64 @FUNC(i64 0, i64 %13) %15 = call i64 @FUNC(i64 1, i64 %13) %16 = add i64 %2, 20 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = icmp eq i32 %18, 0 br i1 %19, label LBL_6, label LBL_4 LBL_4: %20 = add i64 %2, 16 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_6, label LBL_5 LBL_5: store i32 1, i32* %21, align 4 br label LBL_6 LBL_6: %25 = call i64 @FUNC(i64 %7) %26 = call i64 @FUNC(i64 %2) %27 = call i64 @FUNC(i64 %2, i64 0) %28 = call i64 @FUNC(i64 %2) %29 = add i64 %2, 72 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %31) store i64 %13, i64* %.pre-phi.reg2mem br label LBL_8 LBL_7: %33 = call i64 @FUNC(i64 %7) %.pre = add i64 %2, 24 store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_8 LBL_8: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %34 = call i64 @FUNC(i64 1, i64 %.pre-phi.reload) %35 = trunc i64 %34 to i32 %36 = icmp eq i32 %35, 0 %. = select i1 %36, i64 0, i64 4294967285 store i64 %., 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 %7, { 1, 0, 2 } uselistorder i64 %2, { 0, 2, 4, 3, 5, 1, 7, 6, 9, 8, 10 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @mddev_is_clustered, { 1, 0 } uselistorder i64 (i64)* @spin_unlock, { 1, 0 } uselistorder i64 1, { 1, 2, 0, 3 } uselistorder i64 (i64, i64)* @set_bit, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
checkout_verify_paths_13501
checkout_verify_paths
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = and i64 %arg2, 4 %3 = icmp eq i64 %2, 0 br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = zext i32 %6 to i64 %8 = call i64 @FUNC(i64 %1, i64 %7, i64 %7, i32 3) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 8, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %7) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %13 = and i64 %arg2, 4294967291 %14 = icmp eq i64 %13, 0 store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_6, label LBL_4 LBL_4: %15 = add i64 %0, 24 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = zext i32 %17 to i64 %19 = add i64 %0, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %1, i64 %21, i64 %18, i32 3) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false store i64 0, i64* %rax.0.reg2mem br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = load i64, i64* %20, align 8 %27 = call i64 @FUNC(i64 8, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i64 %26) store i64 4294967295, 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 %7, { 0, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 } uselistorder i64 (i64, i8*, i64)* @git_error_set, { 1, 0 } uselistorder i64 (i64, i64, i64, i32)* @git_path_isvalid, { 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder label LBL_6, { 2, 1, 0, 3 } }
0
BinRealVul
do_free_upto_11206
do_free_upto
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = icmp eq i64 %arg2, 0 store i64 %arg1, i64* %sv_0.0.reg2mem br i1 %0, label LBL_2, label LBL_1 LBL_1: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %1 = call i64 @FUNC(i64 %sv_0.0.reload) %2 = call i64 @FUNC(i64 %sv_0.0.reload) %3 = icmp eq i64 %1, %arg2 %4 = icmp eq i1 %3, false store i64 %1, i64* %sv_0.0.reg2mem store i64 %1, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_3 LBL_2: %5 = call i64 @FUNC(i64 %arg1) store i64 %5, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder i64 (i64)* @BIO_free, { 1, 0 } uselistorder i64 (i64)* @BIO_pop, { 1, 0 } uselistorder i32 1, { 1, 0, 3, 2, 4 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
saa711x_attach_7541
saa711x_attach
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi7.reg2mem = alloca i32* %indvars.iv.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_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %5 = call i64 @FUNC(i64 %4, i64 1) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_1, label LBL_20 LBL_1: %9 = call i64 @FUNC(i64 40, i64 0) %10 = icmp eq i64 %9, 0 %11 = icmp eq i1 %10, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %11, label LBL_2, label LBL_20 LBL_2: %12 = ptrtoint i64* %sv_1 to i64 %13 = inttoptr i64 %9 to i32* %14 = trunc i64 %arg2 to i32 store i32 %14, i32* %13, align 4 %15 = add i64 %9, 8 %16 = inttoptr i64 %15 to i64* store i64 %4, i64* %16, align 8 %17 = add i64 %9, 16 %18 = inttoptr i64 %17 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %18, align 8 %19 = add i64 %9, 24 %20 = call i64 @FUNC(i64 %19, i64 15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1) %21 = add i64 %12, -80 store i64 0, i64* %indvars.iv.reg2mem br label LBL_3 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %22 = trunc i64 %indvars.iv.reload to i32 %23 = call i64 @FUNC(i64 %9, i64 0, i32 %22) %24 = call i64 @FUNC(i64 %9, i64 0) %25 = trunc i64 %24 to i8 %26 = urem i8 %25, 16 %27 = or i8 %26, 48 %28 = add i64 %21, %indvars.iv.reload %29 = inttoptr i64 %28 to i8* %30 = icmp ult i8 %27, 58 %31 = add nuw nsw i8 %27, 39 %spec.select = select i1 %30, i8 %27, i8 %31 store i8 %spec.select, i8* %29, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 15 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %32 = add i64 %12, -65 %33 = inttoptr i64 %32 to i8* store i8 0, i8* %33, align 1 %34 = call i64 @FUNC(i64 %9, i64 0, i32 5) %35 = call i64 @FUNC(i64 %9, i64 0) %36 = call i32 @memcmp(i64* nonnull %sv_0, i64* bitcast ([6 x i8]* @gv_2 to i64*), i32 5) %37 = icmp eq i32 %36, 0 br i1 %37, label LBL_6, label LBL_5 LBL_5: %38 = mul i64 %arg2, 2 %39 = load i32, i32* @gv_3, align 4 %40 = and i64 %38, 4294967294 %41 = zext i32 %39 to i64 %42 = call i64 @FUNC(i64 1, i64 %41, i64 %9, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_4, i64 0, i64 0), i64 %40, i64* nonnull %sv_0) store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_6: %43 = trunc i64 %35 to i32 %44 = urem i32 %43, 16 %45 = zext i32 %44 to i64 %46 = call i64 @FUNC(i64 %19, i64 15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0), i64 %45, i64 %2, i64 %1) %47 = mul i64 %arg2, 2 %48 = trunc i32 %44 to i8 %49 = and i64 %47, 4294967294 %50 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_6, i64 0, i64 0), i8 %48, i64* nonnull %sv_0, i64 %49, i64 %4) %51 = call i64 @FUNC(i64 44, i64 0) %52 = call i64 @FUNC(i64 %9, i64 %51) %53 = icmp eq i64 %51, 0 %54 = icmp eq i1 %53, false br i1 %54, label LBL_8, label LBL_7 LBL_7: %55 = call i64 @FUNC(i64 %9) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_20 LBL_8: %56 = inttoptr i64 %51 to i32* store i32 -1, i32* %56, align 4 %57 = add i64 %51, 4 %58 = inttoptr i64 %57 to i32* store i32 1, i32* %58, align 4 %59 = add i64 %51, 8 %60 = inttoptr i64 %59 to i32* store i32 1, i32* %60, align 4 %61 = add i64 %51, 12 %62 = inttoptr i64 %61 to i32* store i32 0, i32* %62, align 4 %63 = add i64 %51, 16 %64 = inttoptr i64 %63 to i32* store i32 128, i32* %64, align 4 %65 = add i64 %51, 20 %66 = inttoptr i64 %65 to i32* store i32 64, i32* %66, align 4 %67 = add i64 %51, 24 %68 = inttoptr i64 %67 to i32* store i32 0, i32* %68, align 4 %69 = add i64 %51, 28 %70 = inttoptr i64 %69 to i32* store i32 64, i32* %70, align 4 store i64 %45, i64* @0, align 8 switch i32 %44, label LBL_14 [ i32 1, label LBL_9 i32 3, label LBL_10 i32 4, label LBL_11 i32 5, label LBL_12 i32 8, label LBL_13 ] LBL_9: %71 = add i64 %51, 32 %72 = inttoptr i64 %71 to i32* store i32 1, i32* %72, align 4 store i32* %72, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_10: %73 = add i64 %51, 32 %74 = inttoptr i64 %73 to i32* store i32 3, i32* %74, align 4 store i32* %74, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_11: %75 = add i64 %51, 32 %76 = inttoptr i64 %75 to i32* store i32 4, i32* %76, align 4 store i32* %76, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_12: %77 = add i64 %51, 32 %78 = inttoptr i64 %77 to i32* store i32 5, i32* %78, align 4 store i32* %78, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_13: %79 = add i64 %51, 32 %80 = inttoptr i64 %79 to i32* store i32 8, i32* %80, align 4 store i32* %80, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_14: %81 = add i64 %51, 32 %82 = inttoptr i64 %81 to i32* store i32 1, i32* %82, align 4 %83 = trunc i64 %51 to i8 %84 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_7, i64 0, i64 0), i8 %83, i64* nonnull %sv_0, i64 %49, i64 %4) store i32* %82, i32** %.pre-phi7.reg2mem br label LBL_15 LBL_15: %.pre-phi7.reload = load i32*, i32** %.pre-phi7.reg2mem %85 = add i64 %51, 36 %86 = inttoptr i64 %85 to i32* store i32 48000, i32* %86, align 4 %87 = load i32, i32* @gv_3, align 4 %88 = zext i32 %87 to i64 %89 = call i64 @FUNC(i64 1, i64 %88, i64 %9, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 %49, i64* %arg1) %90 = add i64 %51, 40 %91 = inttoptr i64 %90 to i32* store i32 1, i32* %91, align 4 %92 = load i32, i32* %.pre-phi7.reload, align 4 switch i32 %92, label LBL_18 [ i32 1, label LBL_16 i32 3, label LBL_17 ] LBL_16: %93 = load i64, i64* @gv_9, align 8 %94 = call i64 @FUNC(i64 %9, i64 %93) br label LBL_19 LBL_17: %95 = load i64, i64* @gv_10, align 8 %96 = call i64 @FUNC(i64 %9, i64 %95) br label LBL_19 LBL_18: store i32 2, i32* %91, align 4 %97 = load i64, i64* @gv_11, align 8 %98 = call i64 @FUNC(i64 %9, i64 %97) br label LBL_19 LBL_19: %99 = load i64, i64* @gv_12, align 8 %100 = call i64 @FUNC(i64 %9, i64 %99) %101 = call i64 @FUNC(i64 %9, i64 1) %102 = call i64 @FUNC(i64 %9) %103 = call i64 @FUNC(i64 %9, i64 31) %104 = call i64 @FUNC(i64 %9, i64 30) %105 = load i32, i32* @gv_3, align 4 %106 = urem i64 %103, 256 %107 = urem i64 %104, 256 %108 = zext i32 %105 to i64 %109 = inttoptr i64 %106 to i64* %110 = call i64 @FUNC(i64 1, i64 %108, i64 %9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_13, i64 0, i64 0), i64 %107, i64* %109) store i64 0, 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 %51, { 5, 6, 15, 0, 7, 4, 3, 2, 1, 8, 9, 10, 11, 12, 13, 14, 16, 18, 17 } uselistorder i32 %44, { 2, 0, 1 } uselistorder i8 %27, { 0, 2, 1 } uselistorder i64 %9, { 5, 6, 7, 8, 9, 10, 11, 4, 3, 12, 2, 13, 14, 15, 16, 17, 18, 0, 1, 19, 20, 21, 22, 23 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32** %.pre-phi7.reg2mem, { 0, 1, 6, 5, 4, 3, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 1, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64)* @saa711x_writeregs, { 3, 2, 1, 0 } uselistorder i32 8, { 1, 0 } uselistorder i32 4, { 1, 0 } uselistorder i32 3, { 0, 2, 1 } uselistorder i64 (i64, i8*, i8, i64*, i64, i64)* @v4l_info, { 1, 0 } uselistorder i64 (i64, i64, i64, i8*, i64, i64*)* @v4l_dbg, { 2, 1, 0 } uselistorder i32* @gv_3, { 2, 1, 0 } uselistorder i32 5, { 3, 0, 1, 2 } uselistorder i64 (i64, i64)* @saa711x_read, { 3, 2, 0, 1 } uselistorder i64 15, { 1, 0, 2 } uselistorder i64 4294967284, { 1, 0 } uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 } uselistorder i64 40, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 0 } uselistorder i64 1, { 2, 3, 4, 5, 1, 6, 0 } uselistorder label LBL_20, { 2, 3, 4, 0, 1 } uselistorder label LBL_15, { 5, 0, 1, 2, 3, 4 } }
1
BinRealVul
ogg_save_17267
ogg_save
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge2.reg2mem = alloca i32 %.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 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = add i32 %5, -1 %7 = sext i32 %6 to i64 %8 = mul nsw i64 %7, 24 %9 = add nsw i64 %8, 24 %10 = call i64 @FUNC(i64 %9) %11 = call i64 @FUNC(i64 %9) %12 = trunc i64 %11 to i32 %13 = inttoptr i64 %10 to i32* store i32 %12, i32* %13, align 4 %14 = add i64 %3, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i64 %10, 4 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = add i64 %3, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %10, 8 %23 = inttoptr i64 %22 to i64* store i64 %21, i64* %23, align 8 %24 = load i32, i32* %4, align 4 %25 = add i64 %10, 16 %26 = inttoptr i64 %25 to i32* store i32 %24, i32* %26, align 4 %27 = load i32, i32* %4, align 4 %28 = mul i32 %27, 24 %29 = add i64 %3, 8 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = add i64 %10, 24 %33 = inttoptr i64 %32 to i64* %34 = inttoptr i64 %31 to i64* %35 = call i64* @memcpy(i64* %33, i64* %34, i32 %28) %36 = load i32, i32* %4, align 4 %37 = icmp eq i32 %36, 0 br i1 %37, label LBL_3, label LBL_1 LBL_1: %38 = add i64 %10, 32 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload = load i64, i64* %.reg2mem %39 = load i64, i64* %30, align 8 %40 = mul nsw i64 %.reload, 24 %41 = add i64 %39, %40 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = sext i32 %43 to i64 %45 = call i64 @FUNC(i64 %44) %46 = add i64 %41, 8 %47 = inttoptr i64 %46 to i64* store i64 %45, i64* %47, align 8 %48 = load i32, i32* %42, align 4 %49 = inttoptr i64 %45 to i64* %50 = call i64* @memset(i64* %49, i32 0, i32 %48) %51 = add i64 %41, 16 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = add i64 %38, %40 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = load i64, i64* %47, align 8 %58 = inttoptr i64 %57 to i64* %59 = inttoptr i64 %56 to i64* %60 = call i64* @memcpy(i64* %58, i64* %59, i32 %53) %61 = add i32 %storemerge2.reload, 1 %62 = load i32, i32* %4, align 4 %63 = zext i32 %62 to i64 %64 = sext i32 %61 to i64 %65 = icmp slt i64 %64, %63 store i64 %64, i64* %.reg2mem store i32 %61, i32* %storemerge2.reg2mem br i1 %65, label LBL_2, label LBL_3 LBL_3: store i64 %10, i64* %20, align 8 ret i64 0 uselistorder i64 %40, { 1, 0 } uselistorder i64 %10, { 1, 0, 2, 3, 4, 5, 6 } uselistorder i64 %9, { 1, 0 } uselistorder i32* %4, { 1, 0, 2, 3, 4 } uselistorder i64 %3, { 1, 2, 3, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
qdict_get_try_bool_17127
qdict_get_try_bool
define i64 @FUNC(i64 %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i8* %arg2 to i64 %1 = urem i64 %arg3, 256 %2 = call i64 @FUNC(i64 %arg1, i64 %0) %3 = icmp eq i64 %2, 0 store i64 %1, i64* %storemerge.reg2mem br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 1 store i64 %1, i64* %storemerge.reg2mem br i1 %6, label LBL_2, label LBL_3 LBL_2: %7 = call i64 @FUNC(i64 %2) %8 = call i64 @FUNC(i64 %7) store i64 %8, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 2, 1, 0 } }
1
BinRealVul
av_copy_packet_side_data_16019
av_copy_packet_side_data
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rsi.01.reg2mem = alloca i64 %rdi.02.reg2mem = alloca i64 %storemerge3.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 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = sext i32 %3 to i64 %7 = mul i64 %6, 16 %8 = call i64 @FUNC(i64 %5, i64 %0, i64 %7, i64 1) store i64 %8, i64* %arg1, align 8 %9 = load i32, i32* %2, align 4 %10 = mul i32 %9, 16 %11 = call i64* @memset(i64* %arg1, i32 0, i32 %10) %12 = load i32, i32* %2, align 4 %13 = icmp eq i32 %12, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge3.reg2mem store i64 %5, i64* %rdi.02.reg2mem store i64 0, i64* %rsi.01.reg2mem br i1 %13, label LBL_3, label LBL_2 LBL_2: %rsi.01.reload = load i64, i64* %rsi.01.reg2mem %rdi.02.reload = load i64, i64* %rdi.02.reg2mem %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %.reload = load i64, i64* %.reg2mem %14 = mul i64 %.reload, 16 %15 = add i64 %rsi.01.reload, %14 %16 = add i64 %15, 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = sext i32 %18 to i64 %20 = inttoptr i64 %15 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %rdi.02.reload, %14 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = call i64 @FUNC(i64 %24, i64 %21, i64 %19, i64 1) store i64 %25, i64* %23, align 8 %26 = add i64 %21, %14 %27 = add i64 %24, %14 %28 = add i64 %26, 8 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = add i64 %27, 8 %32 = inttoptr i64 %31 to i32* store i32 %30, i32* %32, align 4 %33 = add i64 %26, 12 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = add i64 %27, 12 %37 = inttoptr i64 %36 to i32* store i32 %35, i32* %37, align 4 %38 = add i32 %storemerge3.reload, 1 %39 = load i32, i32* %2, align 4 %40 = zext i32 %39 to i64 %41 = sext i32 %38 to i64 %42 = icmp slt i64 %41, %40 store i64 %41, i64* %.reg2mem store i32 %38, i32* %storemerge3.reg2mem store i64 %24, i64* %rdi.02.reg2mem store i64 %21, i64* %rsi.01.reg2mem br i1 %42, label LBL_2, label LBL_3 LBL_3: ret i64 0 uselistorder i64 %14, { 3, 2, 1, 0 } uselistorder i32* %2, { 1, 0, 2, 3 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.02.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.01.reg2mem, { 2, 0, 1 } uselistorder i64 (i64, i64, i64, i64)* @dup_data, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
secure_decrypt_6140
secure_decrypt
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i32, align 4 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 32 %2 = bitcast i32* %sv_2 to i64* %3 = call i64 @FUNC(i64* nonnull %2, i64* nonnull %sv_3, i64* nonnull %sv_4, i64* nonnull %sv_5) %4 = call i64 @FUNC() %5 = icmp eq i32 %arg3, 0 br i1 %5, label LBL_0.LBL_4_crit_edge, label LBL_2 LBL_1: %.pre = and i64 %1, 4294967295 store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_4 LBL_2: %6 = load i32, i32* %sv_2, align 4 %7 = zext i32 %6 to i64 %8 = and i64 %1, 4294967295 %9 = call i64 @FUNC(i64 %8, i64 %0, i64* nonnull %sv_1, i64 %7, i64* nonnull %sv_4) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %12, label LBL_5, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %8) %14 = and i64 %13, 4294967295 %15 = add i64 %14, %0 %16 = call i64 @FUNC(i64 %15, i64* nonnull %sv_1, i64 16) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 store i64 %8, i64* %.pre-phi.reg2mem store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %18, label LBL_5, label LBL_4 LBL_4: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %19 = load i32, i32* %sv_2, align 4 %20 = zext i32 %19 to i64 %21 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %0, i64 %0, i64 0, i64 %20, i64* nonnull %sv_3) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false %spec.select = select i1 %24, i64 4294967295, i64 0 store i64 %spec.select, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = call i64 @FUNC() %26 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 32) %27 = call i64* @memset(i64* nonnull %sv_3, i32 0, i32 32) %28 = call i64* @memset(i64* nonnull %sv_5, i32 0, i32 16) ret i64 %sv_0.0.reload uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_2, { 1, 0, 2 } uselistorder i64 %0, { 2, 3, 0, 1 } uselistorder i64* (i64*, i32, i32)* @memset, { 5, 4, 3, 2, 1, 0 } uselistorder i32 0, { 0, 1, 2, 6, 7, 8, 9, 10, 3, 4, 5, 11 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
recalc_intercepts_5785
recalc_intercepts
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv4.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 0) %2 = add i64 %0, 1044 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 %3, i64* %rax.0.reg2mem br i1 %5, label LBL_10, label LBL_1 LBL_1: %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 store i64 0, i64* %indvars.iv4.reg2mem br label LBL_2 LBL_2: %indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem %9 = mul i64 %indvars.iv4.reload, 4 %10 = add i64 %9, %8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i64 %9, %2 %14 = inttoptr i64 %13 to i32* store i32 %12, i32* %14, align 4 %indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1 %exitcond6 = icmp eq i64 %indvars.iv.next5, 256 store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem br i1 %exitcond6, label LBL_3, label LBL_2 LBL_3: %15 = add i64 %0, 1040 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = urem i32 %17, 2 %19 = icmp eq i32 %18, 0 br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = call i64 @FUNC(i64 %2, i64 2) %21 = call i64 @FUNC(i64 %2, i64 4) %22 = call i64 @FUNC(i64 %2, i64 8) br label LBL_5 LBL_5: %23 = add i64 %0, 16 %24 = call i64 @FUNC(i64 %2, i64 16) store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %25 = mul i64 %indvars.iv.reload, 4 %26 = add i64 %25, %2 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = add i64 %23, %25 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = or i32 %31, %28 store i32 %32, i32* %27, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 256 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: %33 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %34 = icmp eq i32 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_9, label LBL_8 LBL_8: %36 = call i64 @FUNC(i64 %2, i64 32) br label LBL_9 LBL_9: %37 = call i64 @FUNC(i64 %2, i64 64) %38 = call i64 @FUNC(i64 %2, i64 128) store i64 %38, 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 %9, { 1, 0 } uselistorder i64 %2, { 7, 6, 5, 0, 8, 4, 3, 2, 1, 9 } uselistorder i64 %0, { 2, 0, 1, 3, 4 } uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64)* @vmcb_set_intercept, { 1, 0 } uselistorder i64 (i64, i64)* @vmcb_clr_intercept, { 4, 3, 2, 1, 0 } uselistorder i64 256, { 1, 0 } uselistorder i64 1, { 2, 1, 0 } uselistorder i64 4, { 0, 2, 1 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
ff_h261_encode_init_16057
ff_h261_encode_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = load i32, i32* @gv_0, align 4 %1 = icmp eq i32 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: store i32 1, i32* @gv_0, align 4 %3 = call i64 @FUNC(i64* nonnull @gv_1) br label LBL_2 LBL_2: %4 = ptrtoint i64* %arg1 to i64 %5 = bitcast i64* %arg1 to i32* store i32 -127, i32* %5, align 4 %6 = add i64 %4, 4 %7 = inttoptr i64 %6 to i32* store i32 127, i32* %7, align 4 %8 = load i64, i64* @gv_2, align 8 %9 = add i64 %4, 16 %10 = inttoptr i64 %9 to i64* store i64 %8, i64* %10, align 8 %11 = add i64 %4, 8 %12 = inttoptr i64 %11 to i64* store i64 %8, i64* %12, align 8 ret i64 %4 uselistorder i64 %4, { 1, 0, 2, 3 } uselistorder i32 0, { 1, 0 } uselistorder i32* @gv_0, { 1, 0 } }
1
BinRealVul
i915_interrupt_info_7751
i915_interrupt_info
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = call i64 @FUNC(i64 %5) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = and i64 %6, 4294967295 store i64 %9, i64* %storemerge.reg2mem br label LBL_9 LBL_2: %10 = call i64 @FUNC(i64 %4) %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 1) %15 = and i64 %14, 4294967295 %16 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %3, i64 %2, i64 %1) %17 = call i64 @FUNC(i64 2) %18 = and i64 %17, 4294967295 %19 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %18, i64 %3, i64 %2, i64 %1) %20 = call i64 @FUNC(i64 3) %21 = and i64 %20, 4294967295 %22 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %21, i64 %3, i64 %2, i64 %1) %23 = call i64 @FUNC(i64 4) %24 = and i64 %23, 4294967295 %25 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i64 %24, i64 %3, i64 %2, i64 %1) %26 = call i64 @FUNC(i64 5) %27 = and i64 %26, 4294967295 %28 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_4, i64 0, i64 0), i64 %27, i64 %3, i64 %2, i64 %1) br label LBL_5 LBL_4: %29 = call i64 @FUNC(i64 6) %30 = and i64 %29, 4294967295 %31 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_5, i64 0, i64 0), i64 %30, i64 %3, i64 %2, i64 %1) %32 = call i64 @FUNC(i64 7) %33 = and i64 %32, 4294967295 %34 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %33, i64 %3, i64 %2, i64 %1) %35 = call i64 @FUNC(i64 8) %36 = and i64 %35, 4294967295 %37 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_7, i64 0, i64 0), i64 %36, i64 %3, i64 %2, i64 %1) %38 = call i64 @FUNC(i64 9) %39 = and i64 %38, 4294967295 %40 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_8, i64 0, i64 0), i64 %39, i64 %3, i64 %2, i64 %1) %41 = call i64 @FUNC(i64 10) %42 = and i64 %41, 4294967295 %43 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_9, i64 0, i64 0), i64 %42, i64 %3, i64 %2, i64 %1) %44 = call i64 @FUNC(i64 11) %45 = and i64 %44, 4294967295 %46 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_10, i64 0, i64 0), i64 %45, i64 %3, i64 %2, i64 %1) %47 = call i64 @FUNC(i64 12) %48 = and i64 %47, 4294967295 %49 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_11, i64 0, i64 0), i64 %48, i64 %3, i64 %2, i64 %1) %50 = call i64 @FUNC(i64 13) %51 = and i64 %50, 4294967295 %52 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_12, i64 0, i64 0), i64 %51, i64 %3, i64 %2, i64 %1) %53 = call i64 @FUNC(i64 14) %54 = and i64 %53, 4294967295 %55 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_13, i64 0, i64 0), i64 %54, i64 %3, i64 %2, i64 %1) br label LBL_5 LBL_5: %56 = call i64 @FUNC(i64 %4) %57 = and i64 %56, 4294967295 %58 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_14, i64 0, i64 0), i64 %57, i64 %3, i64 %2, i64 %1) %59 = add i64 %4, 24 %60 = inttoptr i64 %59 to i64* %61 = load i64, i64* %60, align 8 %62 = icmp eq i64 %61, 0 br i1 %62, label LBL_7, label LBL_6 LBL_6: %63 = call i64 @FUNC(i64 %4, i64 %59) %64 = and i64 %63, 4294967295 %65 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_15, i64 0, i64 0), i64 %64, i64 %3, i64 %2, i64 %1) br label LBL_8 LBL_7: %66 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_16, i64 0, i64 0), i64 %57, i64 %3, i64 %2, i64 %1) br label LBL_8 LBL_8: %67 = add i64 %4, 16 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = zext i32 %69 to i64 %71 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_17, i64 0, i64 0), i64 %70, i64 %3, i64 %2, i64 %1) %72 = add i64 %4, 20 %73 = inttoptr i64 %72 to i32* %74 = load i32, i32* %73, align 4 %75 = zext i32 %74 to i64 %76 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_18, i64 0, i64 0), i64 %75, i64 %3, i64 %2, i64 %1) %77 = call i64 @FUNC(i64 %5) store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %4, { 7, 8, 9, 10, 11, 5, 6, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0, 1, 2, 3, 4, 24, 25 } uselistorder i64 %3, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %2, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %1, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @I915_READ, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 4294967295, { 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 1, 0, 18 } }
1
BinRealVul
udf_sb_free_partitions_17488
udf_sb_free_partitions
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 store i64 %7, i64* %.lcssa.reg2mem br i1 %4, label LBL_3, label LBL_1 LBL_1: %8 = and i64 %1, 4294967295 store i64 %7, i64* %.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload = load i64, i64* %.reg2mem %9 = call i64 @FUNC(i64 %.reload) %10 = add i32 %storemerge2.reload, 1 %11 = sext i32 %10 to i64 %12 = icmp sgt i64 %8, %11 %13 = load i64, i64* %6, align 8 store i64 %13, i64* %.reg2mem store i32 %10, i32* %storemerge2.reg2mem store i64 %13, i64* %.lcssa.reg2mem br i1 %12, label LBL_2, label LBL_3 LBL_3: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %14 = call i64 @FUNC(i64 %.lcssa.reload) store i64 0, i64* %6, align 8 ret i64 %2 uselistorder i64 %7, { 1, 0 } uselistorder i64* %6, { 0, 2, 1 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
iommu_init_2760
iommu_init
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg2 to i32 %1 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0)) %2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i32 %0) %3 = call i64 @FUNC(i64 %1) %4 = call i64 @FUNC(i64 %1) %5 = call i64 @FUNC(i64 %4, i64 0, i64 %arg3) %6 = call i64 @FUNC(i64 %4, i64 0, i64 %arg1) ret i64 %4 }
0
BinRealVul
fatal_log_check_3888
fatal_log_check
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.in.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 0) %2 = inttoptr i64 %1 to i8* %3 = call i32 (i8*, i32, ...) @open(i8* %2, i32 0) %4 = icmp eq i32 %3, -1 store i32 -1, i32* %rax.0.in.reg2mem br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = call i32 @read(i32 %3, i64* nonnull %sv_0, i32 1023) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = inttoptr i64 %1 to i64* %9 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64* %8) unreachable LBL_3: %10 = sext i32 %5 to i64 %11 = ptrtoint i64* %sv_0 to i64 %12 = add i64 %10, %11 %13 = inttoptr i64 %12 to i8* store i8 0, i8* %13, align 1 %14 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %15 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_0) %16 = call i32 @close(i32 %3) %17 = call i32 @unlink(i8* %2) %18 = icmp slt i32 %17, 0 %19 = icmp eq i1 %18, false store i32 %17, i32* %rax.0.in.reg2mem br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = inttoptr i64 %1 to i64* %21 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i64* %20) unreachable LBL_5: %rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem %rax.0 = sext i32 %rax.0.in.reload to i64 ret i64 %rax.0 uselistorder i32 %5, { 1, 0 } uselistorder i64* %sv_0, { 0, 2, 1 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 } uselistorder %_IO_FILE** @gv_2, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 (i8*, i64*)* @i_error, { 2, 1, 0 } uselistorder i32 0, { 3, 1, 2, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
minf_Read_12746
minf_Read
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_1.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0, i64 4198882) %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false store i64 %2, i64* %sv_0.0.reg2mem br i1 %4, label LBL_12, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0)) %6 = call i64 @FUNC(i64 3) %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false store i64 1, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_13 LBL_2: %9 = add i64 %1, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 store i32 0, i32* %sv_1.0.reg2mem br i1 %12, label LBL_4, label LBL_3 LBL_3: %13 = add i64 %1, 24 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %15, i64 %11) %17 = trunc i64 %16 to i32 %18 = icmp sgt i32 %17, -1 %spec.select = zext i1 %18 to i32 store i32 %spec.select, i32* %sv_1.0.reg2mem br label LBL_4 LBL_4: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %19 = add i64 %1, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem br i1 %22, label LBL_6, label LBL_5 LBL_5: %23 = add i64 %1, 24 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = call i64 @FUNC(i64 %25, i64 %21) %27 = trunc i64 %26 to i32 %28 = icmp slt i32 %27, 0 %spec.select2 = select i1 %28, i32 %sv_1.0.reload, i32 1 store i32 %spec.select2, i32* %sv_1.1.reg2mem br label LBL_6 LBL_6: store i64 %6, i64* %arg1, align 8 %29 = call i64 @FUNC(i64 4) %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 1, i64* %rax.0.reg2mem br i1 %31, label LBL_7, label LBL_13 LBL_7: %32 = call i64 @FUNC(i64 %6, i64 %29) %33 = call i64 @FUNC(i64 5) %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false store i64 1, i64* %rax.0.reg2mem br i1 %35, label LBL_8, label LBL_13 LBL_8: %sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem %36 = inttoptr i64 %33 to i32* store i32 1, i32* %36, align 4 %37 = call i64 @FUNC(i64 %29, i64 %33) %38 = icmp eq i32 %sv_1.1.reload, 0 store i64 %37, i64* %sv_0.0.reg2mem br i1 %38, label LBL_12, label LBL_9 LBL_9: %39 = add i64 %1, 24 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = call i64 @FUNC(i64 %41, i64 %29) %43 = inttoptr i64 %6 to i64* %44 = load i64, i64* %43, align 8 %45 = icmp eq i64 %44, 0 %46 = icmp eq i1 %45, false store i64 %44, i64* %.reg2mem br i1 %46, label LBL_11, label LBL_10 LBL_10: %47 = call i64 @FUNC() store i64 %47, i64* %43, align 8 store i64 %47, i64* %.reg2mem br label LBL_11 LBL_11: %.reload = load i64, i64* %.reg2mem %48 = call i64 @FUNC(i64 %.reload, i64 %29) store i64 %37, i64* %sv_0.0.reg2mem br label LBL_12 LBL_12: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %49 = and i64 %sv_0.0.reload, 4294967295 store i64 %49, i64* %rax.0.reg2mem br label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %sv_1.0.reload, { 1, 0 } uselistorder i64 %1, { 0, 2, 1, 4, 3, 5 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i64, i64)* @gf_list_add, { 1, 0 } uselistorder i64 (i64, i64)* @gf_list_find, { 1, 0 } uselistorder i64 (i64)* @gf_isom_box_new, { 2, 1, 0 } uselistorder i64 0, { 9, 10, 11, 12, 13, 14, 4, 5, 6, 7, 0, 1, 2, 3, 8 } uselistorder label LBL_13, { 3, 0, 1, 2 } }
1
BinRealVul
async_complete_17171
async_complete
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.ph.lcssa.reg2mem = alloca i32 %sv_0.0.ph4.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = load i64, i64* %0 %4 = trunc i64 %1 to i32 %5 = call i32 (i32, i32, ...) @ioctl(i32 %4, i32 1074287885) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %7, label LBL_1, label LBL_3 LBL_1: %8 = bitcast i64* %rdi to i32* %9 = add i64 %3, 4 %10 = inttoptr i64 %9 to i32* %11 = inttoptr i64 %3 to i32* %12 = inttoptr i64 %3 to i64* %13 = add i64 %3, 16 %14 = inttoptr i64 %13 to i32* %15 = add i64 %3, 24 %16 = inttoptr i64 %15 to i64* %17 = add i64 %3, 12 %18 = inttoptr i64 %17 to i32* %19 = add i64 %2, 8 %20 = add i64 %3, 32 %21 = inttoptr i64 %20 to i32* %22 = add i64 %3, 8 %23 = inttoptr i64 %22 to i32* store i32 0, i32* %sv_0.0.ph4.reg2mem br label LBL_2 LBL_2: %sv_0.0.ph4.reload = load i32, i32* %sv_0.0.ph4.reg2mem br label LBL_10 LBL_3: %24 = call i32* @__errno_location() %25 = load i32, i32* %24, align 4 %26 = icmp eq i32 %25, 11 %27 = icmp eq i1 %26, false br i1 %27, label LBL_6, label LBL_4 LBL_4: %sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem %28 = zext i32 %25 to i64 %29 = icmp slt i32 %sv_0.0.ph.lcssa.reload, 3 store i64 %28, i64* %rax.0.reg2mem br i1 %29, label LBL_28, label LBL_5 LBL_5: %30 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %31 = zext i32 %sv_0.0.ph.lcssa.reload to i64 %32 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %30, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %31) %33 = sext i32 %32 to i64 store i64 %33, i64* %rax.0.reg2mem br label LBL_28 LBL_6: %34 = call i32* @__errno_location() %35 = load i32, i32* %34, align 4 %36 = icmp eq i32 %35, 19 %37 = icmp eq i1 %36, false br i1 %37, label LBL_9, label LBL_7 LBL_7: %38 = add i64 %2, 4 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false br i1 %42, label LBL_9, label LBL_8 LBL_8: %43 = call i64 @FUNC(i64 %2) store i64 %43, i64* %rax.0.reg2mem br label LBL_28 LBL_9: %44 = call i32* @__errno_location() %45 = load i32, i32* %44, align 4 %46 = zext i32 %45 to i64 %47 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %48 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %47, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i64 %46) %49 = sext i32 %48 to i64 store i64 %49, i64* %rax.0.reg2mem br label LBL_28 LBL_10: %50 = load i32, i32* %10, align 4 %51 = load i32, i32* %11, align 4 %52 = zext i32 %51 to i64 %53 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %54 = zext i32 %50 to i64 %55 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %53, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_3, i64 0, i64 0), i64* %12, i64 %52, i64 %54) %56 = load i32, i32* %14, align 4 %57 = icmp eq i32 %56, -1 %58 = icmp eq i1 %57, false br i1 %58, label LBL_16, label LBL_11 LBL_11: %59 = load i32, i32* %11, align 4 %60 = icmp eq i32 %59, -32 %61 = icmp eq i1 %60, false br i1 %61, label LBL_13, label LBL_12 LBL_12: %62 = load i32, i32* %23, align 4 %63 = urem i32 %62, 16 %64 = zext i32 %63 to i64 %65 = call i64 @FUNC(i64 %2, i64 %64) br label LBL_13 LBL_13: store i32 0, i32* %14, align 4 %66 = load i32, i32* %23, align 4 %67 = urem i32 %66, 16 %68 = zext i32 %67 to i64 %69 = call i64 @FUNC(i64 %2, i64 %68, i64 4294967295) %70 = trunc i64 %69 to i32 %71 = icmp eq i32 %70, 0 %72 = icmp eq i1 %71, false br i1 %72, label LBL_27, label LBL_14 LBL_14: %73 = load i32, i32* %23, align 4 %74 = urem i32 %73, 16 %75 = zext i32 %74 to i64 %76 = call i64 @FUNC(i64 %2, i64 %75) %77 = trunc i64 %76 to i32 %78 = icmp eq i32 %77, 0 br i1 %78, label LBL_27, label LBL_15 LBL_15: %79 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %80 = call i32 @fwrite(i64* bitcast ([37 x i8]* @gv_4 to i64*), i32 1, i32 36, %_IO_FILE* %79) br label LBL_27 LBL_16: %81 = load i64, i64* %16, align 8 %82 = icmp eq i64 %81, 0 br i1 %82, label LBL_26, label LBL_17 LBL_17: %83 = inttoptr i64 %81 to i32* %84 = load i32, i32* %11, align 4 %85 = icmp eq i32 %84, -32 br i1 %85, label LBL_20, label LBL_18 LBL_18: %86 = icmp eq i32 %84, 0 %87 = icmp eq i1 %86, false br i1 %87, label LBL_21, label LBL_19 LBL_19: %88 = load i32, i32* %83, align 4 %89 = load i32, i32* %10, align 4 %90 = add i32 %89, %88 store i32 %90, i32* %83, align 4 br label LBL_22 LBL_20: %91 = add i64 %81, 4 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = zext i32 %93 to i64 %95 = call i64 @FUNC(i64 %2, i64 %94) store i32 -1, i32* %83, align 4 br label LBL_22 LBL_21: store i32 -2, i32* %83, align 4 br label LBL_22 LBL_22: %96 = load i32, i32* %18, align 4 %97 = icmp eq i32 %96, 2 %98 = icmp eq i1 %97, false br i1 %98, label LBL_24, label LBL_23 LBL_23: %99 = call i64 @FUNC(i64 %19, i64 %81) br label LBL_26 LBL_24: %100 = load i32, i32* %21, align 4 %101 = icmp eq i32 %100, 0 %102 = icmp eq i1 %101, false br i1 %102, label LBL_26, label LBL_25 LBL_25: %103 = call i64 @FUNC(i64 %19, i64 %81) br label LBL_26 LBL_26: %104 = call i64 @FUNC(i64 %3) %105 = load i32, i32* %8, align 8 %106 = call i32 (i32, i32, ...) @ioctl(i32 %105, i32 1074287885) %107 = icmp slt i32 %106, 0 %108 = icmp eq i1 %107, false store i32 %sv_0.0.ph4.reload, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %108, label LBL_10, label LBL_3 LBL_27: %109 = add i32 %sv_0.0.ph4.reload, 1 %110 = load i32, i32* %8, align 8 %111 = call i32 (i32, i32, ...) @ioctl(i32 %110, i32 1074287885) %112 = icmp slt i32 %111, 0 %113 = icmp eq i1 %112, false store i32 %109, i32* %sv_0.0.ph4.reg2mem store i32 %109, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %113, label LBL_2, label LBL_3 LBL_28: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %83, { 0, 3, 2, 1 } uselistorder i64 %81, { 1, 2, 0, 3, 4 } uselistorder i32 %25, { 1, 0 } uselistorder i32 %sv_0.0.ph4.reload, { 1, 0 } uselistorder i32* %23, { 1, 0, 2 } uselistorder i32* %11, { 1, 0, 2 } uselistorder i64 %3, { 0, 3, 1, 2, 4, 6, 5, 7, 8 } uselistorder i64 %2, { 6, 3, 4, 2, 1, 0, 5 } uselistorder i32* %sv_0.0.ph4.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.0.ph.lcssa.reg2mem, { 1, 2, 0, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64)* @set_halt, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 2, 0 } uselistorder %_IO_FILE** @gv_0, { 3, 2, 1, 0 } uselistorder i32* ()* @__errno_location, { 2, 0, 1 } uselistorder i64 8, { 1, 0 } uselistorder i64 4, { 0, 2, 1 } uselistorder i1 false, { 1, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 } uselistorder i32 0, { 3, 10, 4, 5, 6, 7, 8, 9, 1, 0, 2 } uselistorder i32 (i32, i32, ...)* @ioctl, { 1, 2, 0 } uselistorder i32 1074287885, { 1, 2, 0 } uselistorder label LBL_28, { 2, 3, 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
r3d_read_rdvo_166
r3d_read_rdvo
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.reg2mem29 = alloca i64 %rcx.1.reg2mem = alloca i64 %.reg2mem27 = alloca i32 %storemerge3719.reg2mem = alloca i32 %.reg2mem = alloca i32 %storemerge37.lcssa.reg2mem = alloca i32 %.lcssa16.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rsi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = inttoptr i64 %7 to i32* %9 = add i64 %4, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = bitcast i64* %rsi to i32* %15 = trunc i64 %3 to i32 %16 = add i32 %15, -8 %17 = add i32 %15, -5 %18 = icmp slt i32 %16, 0 %19 = select i1 %18, i32 %17, i32 %16 %20 = ashr i32 %19, 2 store i32 %20, i32* %8, align 4 %21 = load i32, i32* %14, align 8 %22 = sext i32 %21 to i64 %23 = call i64 @FUNC(i64 %22) %24 = add i64 %7, 8 %25 = inttoptr i64 %24 to i64* store i64 %23, i64* %25, align 8 %26 = icmp eq i64 %23, 0 %27 = icmp eq i1 %26, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %27, label LBL_1, label LBL_11 LBL_1: %28 = load i32, i32* %8, align 4 %29 = icmp eq i32 %28, 0 store i32 0, i32* %.reg2mem27 br i1 %29, label LBL_7, label LBL_2 LBL_2: %30 = call i64 @FUNC(i64 %22) %31 = trunc i64 %30 to i32 %32 = inttoptr i64 %23 to i32* store i32 %31, i32* %32, align 4 %33 = load i64, i64* %25, align 8 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = icmp eq i32 %35, 0 %37 = icmp eq i1 %36, false store i64 %23, i64* %.lcssa16.reg2mem store i32 0, i32* %storemerge37.lcssa.reg2mem store i32 %35, i32* %.reg2mem store i32 0, i32* %storemerge3719.reg2mem br i1 %37, label LBL_4, label LBL_3 LBL_3: %storemerge37.lcssa.reload = load i32, i32* %storemerge37.lcssa.reg2mem %.lcssa16.reload = load i64, i64* %.lcssa16.reg2mem store i32 %storemerge37.lcssa.reload, i32* %8, align 4 store i32 %storemerge37.lcssa.reload, i32* %.reg2mem27 store i64 %.lcssa16.reload, i64* %rcx.1.reg2mem br label LBL_7 LBL_4: %storemerge3719.reload = load i32, i32* %storemerge3719.reg2mem %.reload = load i32, i32* %.reg2mem %38 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i32 %storemerge3719.reload, i32 %.reload, i64 %2, i64 %1) %39 = add i32 %storemerge3719.reload, 1 %40 = load i32, i32* %8, align 4 %41 = zext i32 %40 to i64 %42 = sext i32 %39 to i64 %43 = icmp slt i64 %42, %41 br i1 %43, label LBL_4.dec_label_pc_401253_crit_edge, label LBL_6 LBL_5: %.pre = load i64, i64* %25, align 8 %44 = mul i64 %42, 4 %45 = add i64 %44, %.pre %46 = call i64 @FUNC(i64 %4) %47 = trunc i64 %46 to i32 %48 = inttoptr i64 %45 to i32* store i32 %47, i32* %48, align 4 %49 = load i64, i64* %25, align 8 %50 = add i64 %49, %44 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp eq i32 %52, 0 %54 = icmp eq i1 %53, false store i64 %.pre, i64* %.lcssa16.reg2mem store i32 %39, i32* %storemerge37.lcssa.reg2mem store i32 %52, i32* %.reg2mem store i32 %39, i32* %storemerge3719.reg2mem br i1 %54, label LBL_4, label LBL_3 LBL_6: %55 = zext i32 %.reload to i64 store i32 %40, i32* %.reg2mem27 store i64 %55, i64* %rcx.1.reg2mem br label LBL_7 LBL_7: %rcx.1.reload = load i64, i64* %rcx.1.reg2mem %56 = add i64 %13, 8 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = icmp eq i32 %58, 0 br i1 %59, label LBL_7.LBL_10_crit_edge, label LBL_9 LBL_8: %.pre13 = inttoptr i64 %13 to i64* %.pre26 = load i64, i64* %.pre13, align 8 store i64 %.pre26, i64* %.reg2mem29 br label LBL_10 LBL_9: %.reload28 = load i32, i32* %.reg2mem27 %60 = add i64 %13, 12 %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = zext i32 %58 to i64 %64 = mul i64 %63, 4294967296 %65 = zext i32 %62 to i64 %66 = or i64 %64, %65 %67 = sext i32 %.reload28 to i64 %68 = add i64 %13, 16 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = call i64 @FUNC(i64 %67, i64 %66, i64 %70) %72 = inttoptr i64 %13 to i64* store i64 %71, i64* %72, align 8 store i64 %71, i64* %.reg2mem29 br label LBL_10 LBL_10: %.reload30 = load i64, i64* %.reg2mem29 %73 = trunc i64 %.reload30 to i32 %74 = trunc i64 %rcx.1.reload to i32 %75 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i32 %73, i32 %74, i64 %2, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %44, { 1, 0 } uselistorder i32 %.reload, { 1, 0 } uselistorder i64* %25, { 2, 1, 0, 3 } uselistorder i32 %15, { 1, 0 } uselistorder i64 %13, { 3, 4, 2, 0, 1 } uselistorder i32* %8, { 2, 1, 0, 3 } uselistorder i64 %7, { 1, 0 } uselistorder i64 %4, { 1, 0, 2, 3, 4 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.lcssa16.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge37.lcssa.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge3719.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem27, { 0, 2, 3, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i8*, i32, i32, i64, i64)* @av_dlog, { 1, 0 } uselistorder i64 (i64)* @avio_rb32, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 0, { 6, 5, 1, 2, 3, 0, 4, 7 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
qemu_accept_5447
qemu_accept
define i64 @FUNC(i64 %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %storemerge.in.reg2mem = alloca i32 %0 = trunc i64 %arg1 to i32 %1 = bitcast i64* %arg2 to %sockaddr* %2 = call i32 @accept4(i32 %0, %sockaddr* %1, i32* %arg3, i32 524288) %3 = icmp eq i32 %2, -1 %4 = icmp eq i1 %3, false store i32 %2, i32* %storemerge.in.reg2mem br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = call i32* @__errno_location() %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 22 store i32 %2, i32* %storemerge.in.reg2mem br i1 %7, label LBL_2, label LBL_4 LBL_2: %8 = call i32 @accept(i32 %0, %sockaddr* %1, i32* %arg3) %9 = icmp slt i32 %8, 0 store i32 %8, i32* %storemerge.in.reg2mem br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = zext i32 %8 to i64 %11 = call i64 @FUNC(i64 %10) store i32 %8, i32* %storemerge.in.reg2mem br label LBL_4 LBL_4: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = zext i32 %storemerge.in.reload to i64 ret i64 %storemerge uselistorder i32 %8, { 1, 2, 0, 3 } uselistorder i32 %2, { 1, 0, 2 } uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1, 4, 3 } uselistorder label LBL_4, { 1, 0, 3, 2 } }
0
BinRealVul
sctp_transport_init_13851
sctp_transport_init
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rsi = alloca i64, align 8 %0 = ptrtoint i64* %arg2 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %arg1 to i64* store i64 %0, i64* %4, align 8 %5 = add i64 %arg1, 8 %6 = inttoptr i64 %5 to i64* store i64 %3, i64* %6, align 8 %7 = bitcast i64* %rsi to i16* %8 = load i16, i16* %7, align 8 %9 = zext i16 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = add i64 %arg1, 16 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 %13 = add i64 %arg1, 24 %14 = inttoptr i64 %13 to i64* store i64 0, i64* %14, align 8 %15 = add i64 %arg1, 32 %16 = inttoptr i64 %15 to i64* store i64 0, i64* %16, align 8 %17 = add i64 %arg1, 40 %18 = inttoptr i64 %17 to i64* %19 = call i64* @memset(i64* %18, i32 0, i32 16) %20 = call i64 @FUNC(i64 2000) %21 = add i64 %arg1, 56 %22 = inttoptr i64 %21 to i64* store i64 %20, i64* %22, align 8 %23 = add i64 %arg1, 64 %24 = inttoptr i64 %23 to i64* store i64 0, i64* %24, align 8 %25 = add i64 %arg1, 72 %26 = inttoptr i64 %25 to i64* store i64 0, i64* %26, align 8 %27 = add i64 %arg1, 80 %28 = inttoptr i64 %27 to i64* store i64 0, i64* %28, align 8 %29 = add i64 %arg1, 88 %30 = inttoptr i64 %29 to i64* store i64 0, i64* %30, align 8 %31 = add i64 %arg1, 96 %32 = inttoptr i64 %31 to i64* store i64 0, i64* %32, align 8 %33 = add i64 %arg1, 104 %34 = inttoptr i64 %33 to i64* store i64 0, i64* %34, align 8 %35 = call i32 @time(i32* null) %36 = sext i32 %35 to i64 %37 = add i64 %arg1, 112 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 %39 = call i32 @time(i32* null) %40 = sext i32 %39 to i64 %41 = add i64 %arg1, 120 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = add i64 %arg1, 128 %44 = inttoptr i64 %43 to i64* store i64 0, i64* %44, align 8 %45 = add i64 %arg1, 136 %46 = inttoptr i64 %45 to i64* store i64 7, i64* %46, align 8 %47 = add i64 %arg1, 144 %48 = inttoptr i64 %47 to i64* store i64 0, i64* %48, align 8 %49 = add i64 %arg1, 152 %50 = inttoptr i64 %49 to i64* store i64 5, i64* %50, align 8 %51 = add i64 %arg1, 160 %52 = inttoptr i64 %51 to i64* store i64 0, i64* %52, align 8 %53 = add i64 %arg1, 168 %54 = inttoptr i64 %53 to i64* store i64 %53, i64* %54, align 8 %55 = add i64 %arg1, 176 %56 = inttoptr i64 %55 to i64* store i64 %55, i64* %56, align 8 %57 = add i64 %arg1, 184 %58 = inttoptr i64 %57 to i64* store i64 %57, i64* %58, align 8 %59 = add i64 %arg1, 192 %60 = inttoptr i64 %59 to i64* store i64 0, i64* %60, align 8 %61 = add i64 %arg1, 200 %62 = inttoptr i64 %61 to i64* store i64 0, i64* %62, align 8 %63 = call i64 @FUNC(i64 %59, i64 4198804, i64 %arg1) %64 = call i64 @FUNC(i64 %61, i64 4198815, i64 %arg1) %65 = add i64 %arg1, 208 %66 = call i64 @FUNC(i64 %65, i64 4198826, i64 %arg1) %67 = add i64 %arg1, 216 %68 = call i64 @FUNC(i64 %67, i64 8) %69 = add i64 %arg1, 224 %70 = call i64 @FUNC(i64 %69, i64 1) %71 = add i64 %arg1, 228 %72 = inttoptr i64 %71 to i32* store i32 0, i32* %72, align 4 %73 = add i64 %arg1, 232 %74 = inttoptr i64 %73 to i32* store i32 0, i32* %74, align 4 %75 = add i64 %arg1, 240 %76 = inttoptr i64 %75 to i32* store i32 0, i32* %76, align 4 %77 = add i64 %arg1, 244 %78 = inttoptr i64 %77 to i32* store i32 0, i32* %78, align 4 %79 = add i64 %arg1, 248 %80 = inttoptr i64 %79 to i64* store i64 0, i64* %80, align 8 %81 = add i64 %arg1, 256 %82 = inttoptr i64 %81 to i32* store i32 0, i32* %82, align 4 ret i64 %arg1 uselistorder i64 %57, { 1, 0 } uselistorder i64 %55, { 1, 0 } uselistorder i64 %53, { 1, 0 } uselistorder i64 (i64, i64, i64)* @setup_timer, { 2, 1, 0 } uselistorder i32 (i32*)* @time, { 1, 0 } uselistorder i64 %arg1, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 36 } }
0
BinRealVul
start_tty_8268
start_tty
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = load i64, i64* %0 %4 = add i64 %2, 32 %5 = call i64 @FUNC(i64 %4, i64 %3) %6 = trunc i64 %1 to i32 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = add i64 %2, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %4, i64 %3) store i64 %12, i64* %storemerge.reg2mem br label LBL_7 LBL_3: %13 = bitcast i64* %arg1 to i32* store i32 0, i32* %13, align 4 %14 = add i64 %2, 24 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 br i1 %17, label LBL_6, label LBL_4 LBL_4: %18 = inttoptr i64 %16 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %19, 0 br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = add i64 %2, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = and i32 %23, -4 %25 = or i32 %24, 2 store i32 %25, i32* %22, align 4 %26 = load i64, i64* %15, align 8 %27 = add i64 %26, 8 %28 = call i64 @FUNC(i64 %27, i64 1) br label LBL_6 LBL_6: %29 = call i64 @FUNC(i64 %4, i64 %3) %30 = call i64 @FUNC(i64 %2) store i64 %30, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 0, 2, 1, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64)* @spin_unlock_irqrestore, { 1, 0 } }
0
BinRealVul
irias_seq_idx_10223
irias_seq_idx
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i64 %arg1, 0 %or.cond1 = or i1 %3, %2 store i64 %arg1, i64* %sv_0.02.reg2mem store i64 %1, i64* %storemerge.lcssa.reg2mem br i1 %or.cond1, label LBL_2, label LBL_1 LBL_1: %sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem %4 = add i64 %sv_0.02.reload, -1 %5 = load i64, i64* @gv_0, align 8 %6 = call i64 @FUNC(i64 %5) %7 = icmp eq i64 %6, 0 %8 = icmp eq i64 %4, 0 %or.cond = or i1 %8, %7 store i64 %4, i64* %sv_0.02.reg2mem store i64 %6, i64* %storemerge.lcssa.reg2mem br i1 %or.cond, label LBL_2, label LBL_1 LBL_2: %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem ret i64 %storemerge.lcssa.reload uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
dims_dump_8926
dims_dump
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %arg2) %4 = and i64 %1, 4294967295 %5 = inttoptr i64 %arg2 to %_IO_FILE* %6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %4) %7 = add i64 %2, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = icmp eq i64 %9, 0 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64 %9, i64 %arg2) br label LBL_2 LBL_2: %12 = add i64 %2, 16 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp eq i64 %14, 0 br i1 %15, label LBL_4, label LBL_3 LBL_3: %16 = call i64 @FUNC(i64 %14, i64 %arg2) br label LBL_4 LBL_4: %17 = add i64 %2, 24 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = call i64 @FUNC(i64 %19, i64 %arg2) %21 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %arg2) ret i64 0 uselistorder i64 (i64, i64)* @gf_isom_box_dump, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 2, 0 } uselistorder i64 %arg2, { 3, 2, 1, 0, 4, 5 } }
0
BinRealVul
do_load_6xx_tlb_5455
do_load_6xx_tlb
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = load i64, i64* @gv_0, align 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i32 %0, 0 %sv_0.0.in.in.in.v = select i1 %4, i64 24, i64 8 %sv_0.0.in.in.in = add i64 %1, %sv_0.0.in.in.in.v %sv_0.0.in.in = inttoptr i64 %sv_0.0.in.in.in to i64* %sv_0.0.in = load i64, i64* %sv_0.0.in.in, align 8 %5 = add i64 %1, 40 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = udiv i64 %7, 131072 %9 = trunc i64 %8 to i32 %10 = urem i32 %9, 2 %11 = load i32, i32* @gv_1, align 4 %12 = icmp eq i32 %11, 0 store i64 %1, i64* %.reg2mem br i1 %12, label LBL_2, label LBL_1 LBL_1: %storemerge.in.in.in.v = select i1 %4, i64 32, i64 16 %storemerge.in.in.in = add i64 %1, %storemerge.in.in.in.v %sv_0.0 = trunc i64 %sv_0.0.in to i32 %storemerge.in.in = inttoptr i64 %storemerge.in.in.in to i64* %storemerge.in = load i64, i64* %storemerge.in.in, align 8 %storemerge = trunc i64 %storemerge.in to i32 %13 = load i32, i32* @gv_2, align 4 %14 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %15 = zext i32 %10 to i64 %16 = trunc i64 %3 to i32 %17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0), i32 %13, i32 %storemerge, i32 %sv_0.0, i32 %16, i64 %15) %.pre = load i64, i64* @gv_0, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_2 LBL_2: %.reload = load i64, i64* %.reg2mem %18 = load i32, i32* @gv_2, align 4 %19 = and i32 %18, -4096 %20 = zext i32 %19 to i64 %sext5 = mul i64 %sv_0.0.in, 4294967296 %21 = ashr exact i64 %sext5, 32 %22 = call i64 @FUNC(i64 %.reload, i64 %20, i32 %10, i32 %0, i64 %21, i64 %3) ret i64 %22 uselistorder i32 %10, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %1, { 1, 0, 3, 2, 4 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64 32, { 1, 0 } }
0
BinRealVul
region16_intersect_rect_11954
region16_intersect_rect
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %rdi.1.lcssa.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i32 %sv_1.1.lcssa.reg2mem = alloca i32 %rdi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i64 %sv_0.11022.reg2mem = alloca i32 %sv_1.1923.reg2mem = alloca i32 %sv_2.1824.reg2mem = alloca i64 %sv_3.0725.reg2mem = alloca i64 %1 = load i32, i32* %0 %sv_4 = alloca i32, align 4 %sv_5 = alloca i32, align 4 %sv_6 = alloca i32, align 4 %2 = icmp eq i64* %arg2, null %3 = icmp eq i1 %2, false br i1 %3, 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 ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 80, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = ptrtoint i64* %arg2 to i64 %5 = ptrtoint i64* %arg1 to i64 %6 = bitcast i32* %sv_6 to i64* %7 = call i64 @FUNC(i64 %4, i64* nonnull %6) %8 = load i32, i32* %sv_6, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %5) store i64 1, i64* %rax.0.reg2mem br label LBL_20 LBL_4: %12 = ptrtoint i64* %arg3 to i64 %13 = call i64 @FUNC(i64 %4) %14 = load i32, i32* %sv_6, align 4 %15 = icmp eq i32 %14, 1 %16 = icmp eq i1 %15, false br i1 %16, label LBL_7, label LBL_5 LBL_5: %17 = bitcast i32* %sv_5 to i64* %18 = call i64 @FUNC(i64 %13, i64 %12, i64* nonnull %17) %19 = trunc i64 %18 to i32 %20 = call i64 @FUNC(i64 %5) %21 = icmp eq i32 %19, 0 store i64 1, i64* %rax.0.reg2mem br i1 %21, label LBL_20, label LBL_6 LBL_6: %22 = call i64 @FUNC(i64 %5, i64 %5, i64* nonnull %17) store i64 %22, i64* %rax.0.reg2mem br label LBL_20 LBL_7: %23 = zext i32 %14 to i64 %24 = call i64 @FUNC(i64 %23) %25 = icmp eq i64 %24, 0 %26 = icmp eq i1 %25, false store i64 0, i64* %rax.0.reg2mem br i1 %26, label LBL_8, label LBL_20 LBL_8: %27 = ptrtoint i32* %sv_4 to i64 %28 = bitcast i32* %sv_4 to i64* %29 = call i64 @FUNC(i64* nonnull %28, i64 16) %30 = load i32, i32* %sv_6, align 4 %31 = zext i32 %30 to i64 %32 = mul i64 %31, 16 %33 = add i64 %32, %7 %34 = icmp ult i64 %7, %33 %35 = icmp eq i1 %34, false store i32 0, i32* %sv_1.1.lcssa.reg2mem store i64 %27, i64* %rdi.1.lcssa.reg2mem br i1 %35, label LBL_17, label LBL_9 LBL_9: %36 = add i64 %12, 8 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = inttoptr i64 %7 to i32* %40 = load i32, i32* %39, align 4 %41 = icmp ugt i32 %38, %40 store i32 0, i32* %sv_1.1.lcssa.reg2mem store i64 %27, i64* %rdi.1.lcssa.reg2mem br i1 %41, label LBL_10, label LBL_17 LBL_10: %42 = bitcast i32* %sv_5 to i64* %43 = sext i32 %1 to i64 %44 = add i64 %24, 8 store i64 %7, i64* %sv_3.0725.reg2mem store i64 %44, i64* %sv_2.1824.reg2mem store i32 0, i32* %sv_1.1923.reg2mem br label LBL_11 LBL_11: %sv_0.11022.reload = load i32, i32* %sv_0.11022.reg2mem %sv_1.1923.reload = load i32, i32* %sv_1.1923.reg2mem %sv_2.1824.reload = load i64, i64* %sv_2.1824.reg2mem %sv_3.0725.reload = load i64, i64* %sv_3.0725.reg2mem %45 = call i64 @FUNC(i64 %sv_3.0725.reload, i64 %12, i64* nonnull %42) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 store i64 %sv_2.1824.reload, i64* %sv_2.0.reg2mem store i32 %sv_1.1923.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.11022.reload, i32* %sv_0.0.reg2mem store i64 %sv_3.0725.reload, i64* %rdi.0.reg2mem br i1 %47, label LBL_15, label LBL_12 LBL_12: %48 = load i32, i32* %sv_5, align 4 %49 = sext i32 %48 to i64 %50 = inttoptr i64 %sv_2.1824.reload to i64* store i64 %49, i64* %50, align 8 %51 = add i64 %sv_2.1824.reload, 8 %52 = inttoptr i64 %51 to i64* store i64 %43, i64* %52, align 8 %53 = add i32 %sv_1.1923.reload, 1 %54 = add i64 %sv_2.1824.reload, 16 %55 = call i64 @FUNC(i64* nonnull %28) %56 = trunc i64 %55 to i32 %57 = icmp eq i32 %56, 0 br i1 %57, label LBL_14, label LBL_13 LBL_13: %58 = load i32, i32* %sv_5, align 4 store i32 %58, i32* %sv_4, align 4 store i64 %54, i64* %sv_2.0.reg2mem store i32 %53, i32* %sv_1.0.reg2mem store i64 %27, i64* %rdi.0.reg2mem br label LBL_15 LBL_14: %59 = load i32, i32* %sv_4, align 4 %60 = load i32, i32* %sv_5, align 4 %61 = sub i32 %59, %60 %62 = xor i32 %60, %59 %63 = xor i32 %61, %59 %64 = and i32 %63, %62 %65 = icmp slt i32 %64, 0 %66 = icmp eq i32 %61, 0 %67 = icmp slt i32 %61, 0 %68 = icmp ne i1 %67, %65 %69 = or i1 %66, %68 %70 = select i1 %69, i32 %59, i32 %60 store i32 %70, i32* %sv_4, align 4 %71 = sub i32 %sv_0.11022.reload, %1 %72 = xor i32 %sv_0.11022.reload, %1 %73 = xor i32 %71, %sv_0.11022.reload %74 = and i32 %73, %72 %75 = icmp slt i32 %74, 0 %76 = icmp slt i32 %71, 0 %77 = icmp eq i1 %76, %75 %78 = select i1 %77, i32 %sv_0.11022.reload, i32 %1 store i64 %54, i64* %sv_2.0.reg2mem store i32 %53, i32* %sv_1.0.reg2mem store i32 %78, i32* %sv_0.0.reg2mem store i64 %27, i64* %rdi.0.reg2mem br label LBL_15 LBL_15: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %79 = add i64 %sv_3.0725.reload, 16 %80 = icmp ult i64 %79, %33 %81 = icmp eq i1 %80, false store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem br i1 %81, label LBL_17, label LBL_16 LBL_16: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %82 = load i32, i32* %37, align 4 %83 = inttoptr i64 %79 to i32* %84 = load i32, i32* %83, align 4 %85 = icmp ugt i32 %82, %84 store i64 %79, i64* %sv_3.0725.reg2mem store i64 %sv_2.0.reload, i64* %sv_2.1824.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1923.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.11022.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem br i1 %85, label LBL_11, label LBL_17 LBL_17: %rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %86 = inttoptr i64 %24 to i32* store i32 %sv_1.1.lcssa.reload, i32* %86, align 4 %87 = mul i32 %sv_1.1.lcssa.reload, 16 %88 = or i32 %87, 8 %89 = add i64 %24, 4 %90 = inttoptr i64 %89 to i32* store i32 %88, i32* %90, align 4 %91 = add i64 %rdi.1.lcssa.reload, 4 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = icmp eq i32 %93, 0 %95 = icmp eq i64 %rdi.1.lcssa.reload, ptrtoint (i64* @gv_3 to i64) %or.cond = or i1 %95, %94 store i32 %88, i32* %.reg2mem br i1 %or.cond, label LBL_19, label LBL_18 LBL_18: %96 = inttoptr i64 %rdi.1.lcssa.reload to i64* call void @free(i64* %96) %.pre = load i32, i32* %90, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_19 LBL_19: %.reload = load i32, i32* %.reg2mem %97 = inttoptr i64 %24 to i64* %98 = call i64* @realloc(i64* %97, i32 %.reload) %99 = ptrtoint i64* %98 to i64 store i64 %99, i64* %arg1, align 8 %100 = load i32, i32* %sv_4, align 4 %101 = sext i32 %100 to i64 %102 = sext i32 %sv_0.1.lcssa.reload to i64 %103 = add i64 %5, 8 %104 = inttoptr i64 %103 to i64* store i64 %101, i64* %104, align 8 %105 = add i64 %5, 16 %106 = inttoptr i64 %105 to i64* store i64 %102, i64* %106, align 8 %107 = call i64 @FUNC(i64 %5) store i64 %107, 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 i32 %sv_1.1.lcssa.reload, { 1, 0 } uselistorder i64 %rdi.1.lcssa.reload, { 2, 1, 0 } uselistorder i32 %sv_1.0.reload, { 1, 2, 0 } uselistorder i32 %sv_0.0.reload, { 1, 2, 0 } uselistorder i64 %rdi.0.reload, { 1, 0 } uselistorder i32 %71, { 1, 0 } uselistorder i32 %61, { 1, 2, 0 } uselistorder i32 %60, { 1, 0, 2 } uselistorder i32 %59, { 2, 0, 1, 3 } uselistorder i64 %54, { 1, 0 } uselistorder i32 %53, { 1, 0 } uselistorder i64 %sv_3.0725.reload, { 2, 0, 1 } uselistorder i64 %sv_2.1824.reload, { 3, 2, 1, 0 } uselistorder i32 %sv_1.1923.reload, { 1, 0 } uselistorder i32 %sv_0.11022.reload, { 3, 1, 2, 4, 0 } uselistorder i32* %37, { 1, 0 } uselistorder i64 %33, { 1, 0 } uselistorder i64 %27, { 3, 2, 0, 1 } uselistorder i64 %12, { 2, 1, 0 } uselistorder i64 %7, { 0, 1, 3, 2 } uselistorder i64 %5, { 4, 5, 6, 1, 2, 3, 0 } uselistorder i32* %sv_6, { 2, 1, 0, 3 } uselistorder i32* %sv_5, { 2, 1, 0, 4, 3 } uselistorder i32* %sv_4, { 4, 3, 2, 1, 5, 0 } uselistorder i32 %1, { 1, 3, 2, 0 } uselistorder i64* %sv_3.0725.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.1824.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.1923.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.11022.reg2mem, { 1, 0 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %sv_1.1.lcssa.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i32* %sv_0.1.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.1.lcssa.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 } uselistorder i64 8, { 0, 1, 3, 2, 4 } uselistorder i64 16, { 2, 3, 4, 0, 1 } uselistorder i64 (i64, i64, i64*)* @rectangles_intersection, { 1, 0 } uselistorder i64 (i64)* @region16_clear, { 1, 0 } uselistorder i32 0, { 11, 4, 5, 6, 7, 8, 9, 10, 2, 0, 1, 12, 13, 3, 14 } uselistorder i1 false, { 1, 0, 2, 3, 4, 5 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_20, { 2, 0, 3, 1, 4 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_17, { 1, 2, 0, 3 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
to_dev_type_10430
to_dev_type
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, 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 = 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 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = add i64 %5, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = icmp slt i32 %12, 2 store i64 1, i64* %storemerge.reg2mem br i1 %13, label LBL_3, label LBL_4 LBL_3: %14 = and i64 %1, 4294967295 store i64 %14, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
mpfree_17730
mpfree
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i32 %indvars.iv.reg2mem = alloca i64 %1 = load i32, i32* %0 %2 = icmp slt i32 %1, 10 br i1 %2, label LBL_1, label LBL_3 LBL_1: %3 = sext i32 %1 to i64 store i64 %3, i64* %indvars.iv.reg2mem br label LBL_2 LBL_2: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %4 = mul i64 %indvars.iv.reload, 8 %5 = add i64 %4, %arg1 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = inttoptr i64 %7 to i64* call void @free(i64* %8) store i64 0, i64* %6, align 8 %indvars.iv.next = add 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_3, label LBL_2 LBL_3: %9 = inttoptr i64 %arg1 to i64* call void @free(i64* %9) ret i64 ptrtoint (i32* @0 to i64) uselistorder i32 %1, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 %arg1, { 1, 0 } }
1
BinRealVul
grackle_pci_class_init_15881
grackle_pci_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 4183, i32* %2, align 4 %3 = add i64 %0, 12 %4 = inttoptr i64 %3 to i32* store i32 1, i32* %4, align 4 %5 = add i64 %0, 16 %6 = inttoptr i64 %5 to i8* store i8 0, i8* %6, align 1 %7 = add i64 %0, 20 %8 = inttoptr i64 %7 to i32* store i32 394240, i32* %8, align 4 %9 = bitcast i64* %arg1 to i32* store i32 1, i32* %9, align 4 ret i64 %0 }
1