dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
af_alg_release_19025
af_alg_release
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = icmp eq i64 %arg1, 0 br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 %arg1) br label LBL_2 LBL_2: ret i64 0 }
1
BinRealVul
assign_guest_irq_17602
assign_guest_irq
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.shrunk.reg2mem = alloca i64 %sv_0.01.reg2mem = alloca i64 %.reg2mem = alloca i32 %sv_0.0.in.reg2mem = alloca i64 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = urem i64 %1, 2 %3 = icmp eq i64 %2, 0 store i64 4294967295, i64* %rax.0.shrunk.reg2mem br i1 %3, label LBL_1, label LBL_13 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %5 to i32 %7 = icmp slt i32 %6, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %rax.0.shrunk.reg2mem br i1 %8, label LBL_2, label LBL_13 LBL_2: %9 = ptrtoint i64* %arg3 to i64 %10 = ptrtoint i64* %arg2 to i64 %11 = add i64 %10, 4 %12 = inttoptr i64 %11 to i32* store i32 %6, i32* %12, align 4 %13 = icmp eq i64 %arg4, 3 br i1 %13, label LBL_7, label LBL_3 LBL_3: %14 = icmp ult i64 %arg4, 4 store i32 %6, i32* %.reg2mem store i64 4294967294, i64* %sv_0.01.reg2mem br i1 %14, label LBL_4, label LBL_12 LBL_4: store i32 %6, i32* %.reg2mem store i64 4294967294, i64* %sv_0.01.reg2mem switch i64 %arg4, label LBL_12 [ i64 1, label LBL_5 i64 2, label LBL_6 ] LBL_5: %15 = call i64 @FUNC(i64 %4, i64 %10, i64 %9) store i64 %15, i64* %sv_0.0.in.reg2mem br label LBL_8 LBL_6: %16 = call i64 @FUNC(i64 %4, i64 %10, i64 %9) store i64 %16, i64* %sv_0.0.in.reg2mem br label LBL_8 LBL_7: %17 = call i64 @FUNC(i64 %4, i64 %10, i64 %9) store i64 %17, i64* %sv_0.0.in.reg2mem br label LBL_8 LBL_8: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem %sv_0.0 = trunc i64 %sv_0.0.in.reload to i32 %18 = icmp eq i32 %sv_0.0, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_8.LBL_12_crit_edge, label LBL_10 LBL_9: %.pre = load i32, i32* %12, align 4 store i32 %.pre, i32* %.reg2mem store i64 %sv_0.0.in.reload, i64* %sv_0.01.reg2mem br label LBL_12 LBL_10: %20 = bitcast i64* %rsi to i32* %21 = load i32, i32* %20, align 8 %22 = trunc i64 %arg4 to i32 %23 = or i32 %21, %22 %24 = bitcast i64* %arg2 to i32* store i32 %23, i32* %24, align 4 %25 = add i64 %10, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, -1 store i64 %sv_0.0.in.reload, i64* %rax.0.shrunk.reg2mem br i1 %28, label LBL_13, label LBL_11 LBL_11: %29 = call i64 @FUNC(i64 %4, i64 %25) store i64 %sv_0.0.in.reload, i64* %rax.0.shrunk.reg2mem br label LBL_13 LBL_12: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %.reload = load i32, i32* %.reg2mem %30 = zext i32 %.reload to i64 %31 = call i64 @FUNC(i64 %4, i64 %30) store i64 %sv_0.01.reload, i64* %rax.0.shrunk.reg2mem br label LBL_13 LBL_13: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %sv_0.0.in.reload, { 1, 0, 2, 3 } uselistorder i64 %10, { 2, 3, 0, 1, 4 } uselistorder i64 %9, { 2, 0, 1 } uselistorder i32 %6, { 1, 0, 2, 3 } uselistorder i64 %4, { 3, 2, 4, 0, 1, 5 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %sv_0.01.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i64 4294967294, { 1, 0 } uselistorder i64 2, { 1, 0 } uselistorder i64 %arg4, { 1, 0, 3, 2 } uselistorder label LBL_13, { 2, 1, 0, 3, 4 } uselistorder label LBL_12, { 0, 2, 1 } }
1
BinRealVul
sdhci_data_transfer_17101
sdhci_data_transfer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = urem i32 %3, 2 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_19, label LBL_1 LBL_1: %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 3 br i1 %12, label LBL_14, label LBL_2 LBL_2: %13 = icmp ult i32 %11, 4 br i1 %13, label LBL_3, label LBL_18 LBL_3: switch i32 %11, label LBL_18 [ i32 2, label LBL_11 i32 0, label LBL_4 i32 1, label LBL_8 ] LBL_4: %14 = add i64 %2, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 1 br i1 %17, label LBL_6, label LBL_5 LBL_5: %18 = and i32 %3, 2 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = call i64 @FUNC(i64 %2) store i64 %21, i64* %rax.0.reg2mem br label LBL_23 LBL_7: %22 = call i64 @FUNC(i64 %2) store i64 %22, i64* %rax.0.reg2mem br label LBL_23 LBL_8: %23 = add i64 %2, 12 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = urem i32 %25, 2 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_10, label LBL_9 LBL_9: %29 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0)) store i64 %29, i64* %rax.0.reg2mem br label LBL_23 LBL_10: %30 = call i64 @FUNC(i64 %2) store i64 %30, i64* %rax.0.reg2mem br label LBL_23 LBL_11: %31 = add i64 %2, 12 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = and i32 %33, 2 %35 = icmp eq i32 %34, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_13, label LBL_12 LBL_12: %37 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0)) store i64 %37, i64* %rax.0.reg2mem br label LBL_23 LBL_13: %38 = call i64 @FUNC(i64 %2) store i64 %38, i64* %rax.0.reg2mem br label LBL_23 LBL_14: %39 = add i64 %2, 12 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = and i32 %41, 2 %43 = icmp eq i32 %42, 0 br i1 %43, label LBL_16, label LBL_15 LBL_15: %44 = and i32 %41, 4 %45 = icmp eq i32 %44, 0 %46 = icmp eq i1 %45, false br i1 %46, label LBL_17, label LBL_16 LBL_16: %47 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0)) store i64 %47, i64* %rax.0.reg2mem br label LBL_23 LBL_17: %48 = call i64 @FUNC(i64 %2) store i64 %48, i64* %rax.0.reg2mem br label LBL_23 LBL_18: %49 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0)) store i64 %49, i64* %rax.0.reg2mem br label LBL_23 LBL_19: %50 = and i32 %3, 4 %51 = icmp eq i32 %50, 0 br i1 %51, label LBL_22, label LBL_20 LBL_20: %52 = add i64 %2, 20 %53 = call i64 @FUNC(i64 %52) %54 = trunc i64 %53 to i32 %55 = icmp eq i32 %54, 0 br i1 %55, label LBL_22, label LBL_21 LBL_21: %56 = add i64 %2, 16 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = or i32 %58, 7 store i32 %59, i32* %57, align 4 %60 = call i64 @FUNC(i64 %2) store i64 %60, i64* %rax.0.reg2mem br label LBL_23 LBL_22: %61 = add i64 %2, 16 %62 = inttoptr i64 %61 to i32* %63 = load i32, i32* %62, align 4 %64 = or i32 %63, 30 store i32 %64, i32* %62, align 4 %65 = call i64 @FUNC(i64 %2) store i64 %65, i64* %rax.0.reg2mem br label LBL_23 LBL_23: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %3, { 2, 1, 0 } uselistorder i64 %2, { 11, 12, 9, 10, 14, 8, 7, 6, 5, 1, 0, 4, 2, 3, 13 } uselistorder i64* %rax.0.reg2mem, { 0, 11, 10, 1, 8, 9, 7, 6, 3, 2, 4, 5 } uselistorder i64 (i64)* @sdhci_do_adma, { 2, 1, 0 } uselistorder i64 (i8*)* @ERRPRINT, { 3, 2, 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i32 4, { 1, 2, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 0, 8 } uselistorder i32 2, { 3, 4, 0, 5, 2, 1 } }
1
BinRealVul
mov_write_hdlr_tag_15728
mov_write_hdlr_tag
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i8* %sv_1.0.reg2mem = alloca i8* %sv_2.0.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = icmp eq i32* %arg2, null %5 = icmp eq i1 %4, false %6 = trunc i64 %1 to i32 store i8* null, i8** %sv_2.0.reg2mem store i8* null, i8** %sv_1.0.reg2mem br i1 %5, label LBL_7, label LBL_1 LBL_1: %7 = icmp eq i32 %6, 1 %8 = icmp eq i1 %7, false %9 = select i1 %8, i8* bitcast (i64* @gv_0 to i8*), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0) %10 = ptrtoint i32* %arg2 to i64 %11 = add i64 %10, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 1 %17 = icmp eq i1 %16, false store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i8** %sv_2.0.reg2mem store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i8** %sv_1.0.reg2mem store i8* %9, i8** %sv_0.0.reg2mem br i1 %17, label LBL_2, label LBL_7 LBL_2: %18 = icmp eq i32 %15, 2 %19 = icmp eq i1 %18, false store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0), i8** %sv_2.0.reg2mem store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i8** %sv_1.0.reg2mem store i8* %9, i8** %sv_0.0.reg2mem br i1 %19, label LBL_3, label LBL_7 LBL_3: %20 = icmp eq i32 %15, 3 %21 = icmp eq i1 %20, false br i1 %21, label LBL_5, label LBL_4 LBL_4: %22 = add i64 %10, 16 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = icmp eq i32 %24, 1954034535 %26 = icmp eq i1 %25, false %.6 = select i1 %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0) store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_8, i64 0, i64 0), i8** %sv_2.0.reg2mem store i8* %.6, i8** %sv_1.0.reg2mem store i8* %9, i8** %sv_0.0.reg2mem br label LBL_7 LBL_5: %27 = add i64 %13, 4 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = icmp eq i32 %29, 1920233504 %31 = icmp eq i1 %30, false store i8* null, i8** %sv_2.0.reg2mem store i8* null, i8** %sv_1.0.reg2mem store i8* %9, i8** %sv_0.0.reg2mem br i1 %31, label LBL_7, label LBL_6 LBL_6: store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_9, i64 0, i64 0), i8** %sv_2.0.reg2mem store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_10, i64 0, i64 0), i8** %sv_1.0.reg2mem store i8* %9, i8** %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem %sv_2.0.reload = load i8*, i8** %sv_2.0.reg2mem %32 = call i64 @FUNC(i64 %2, i64 0) %33 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_11, i64 0, i64 0)) %34 = call i64 @FUNC(i64 %2, i64 0) %35 = ptrtoint i8* %sv_0.0.reload to i64 %36 = call i64 @FUNC(i64 %2, i64 %35, i64 4) %37 = call i64 @FUNC(i64 %2, i8* %sv_1.0.reload) %38 = call i64 @FUNC(i64 %2, i64 0) %39 = call i64 @FUNC(i64 %2, i64 0) %40 = call i64 @FUNC(i64 %2, i64 0) %.not = icmp ne i1 %4, true %41 = icmp eq i32 %6, 1 %42 = icmp eq i1 %41, false %or.cond = icmp eq i1 %42, %.not br i1 %or.cond, label LBL_9, label LBL_8 LBL_8: %43 = call i32 @strlen(i8* %sv_2.0.reload) %44 = zext i32 %43 to i64 %45 = call i64 @FUNC(i64 %2, i64 %44) br label LBL_9 LBL_9: %46 = call i32 @strlen(i8* %sv_2.0.reload) %47 = sext i32 %46 to i64 %48 = ptrtoint i8* %sv_2.0.reload to i64 %49 = call i64 @FUNC(i64 %2, i64 %48, i64 %47) %or.cond8 = or i1 %4, %41 br i1 %or.cond8, label LBL_11, label LBL_10 LBL_10: %50 = call i64 @FUNC(i64 %2, i64 0) br label LBL_11 LBL_11: %sext = mul i64 %3, 4294967296 %51 = ashr exact i64 %sext, 32 %52 = call i64 @FUNC(i64 %2, i64 %51) ret i64 %52 uselistorder i8* %sv_2.0.reload, { 1, 2, 0 } uselistorder i8* %9, { 3, 4, 2, 0, 1 } uselistorder i1 %4, { 1, 0, 2 } uselistorder i64 %2, { 1, 0, 2, 3, 7, 6, 5, 4, 11, 10, 9, 8, 12 } uselistorder i8** %sv_2.0.reg2mem, { 0, 4, 5, 3, 1, 2, 6 } uselistorder i8** %sv_1.0.reg2mem, { 0, 4, 5, 3, 1, 2, 6 } uselistorder i8** %sv_0.0.reg2mem, { 0, 4, 5, 3, 1, 2 } uselistorder i64 (i64, i64)* @avio_w8, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i64 (i64, i64, i64)* @avio_write, { 2, 1, 0 } uselistorder i64 (i64, i8*)* @ffio_wfourcc, { 1, 0 } uselistorder i64 (i64, i64)* @avio_wb32, { 4, 3, 2, 1, 0 } uselistorder i64 4, { 0, 2, 1 } uselistorder i8* null, { 0, 2, 1, 3 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 2, 3, 4, 0, 1, 5 } }
1
BinRealVul
sched_clock_cpu_5675
sched_clock_cpu
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC() %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC() store i64 %3, i64* %rax.0.reg2mem br label LBL_7 LBL_2: %4 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %5 = icmp eq i32 %4, 0 %6 = zext i1 %5 to i64 %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_3, label LBL_7 LBL_3: %sext = mul i64 %arg1, 4294967296 %10 = ashr exact i64 %sext, 32 %11 = call i64 @FUNC() %12 = and i64 %10, 4294967295 %13 = call i64 @FUNC(i64 %12) %14 = call i64 @FUNC() %15 = trunc i64 %10 to i32 %16 = trunc i64 %14 to i32 %17 = icmp eq i32 %15, %16 br i1 %17, label LBL_5, label LBL_4 LBL_4: %18 = call i64 @FUNC(i64 %13) store i64 %18, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %19 = call i64 @FUNC(i64 %13) store i64 %19, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem %20 = call i64 @FUNC() store i64 %storemerge.reload, 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 %10, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder label LBL_7, { 1, 0, 2 } }
0
BinRealVul
path_name_11034
path_name
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_0.12.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_1.15.reg2mem = alloca i32 %storemerge16.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = inttoptr i64 %arg2 to i8* %2 = call i32 @strlen(i8* %1) %3 = add i32 %2, 1 %4 = icmp eq i64* %arg1, null %5 = icmp eq i1 %4, false store i64 %0, i64* %storemerge16.reg2mem store i32 %3, i32* %sv_1.15.reg2mem store i32 %3, i32* %sv_1.1.lcssa.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem %storemerge16.reload = load i64, i64* %storemerge16.reg2mem %6 = add i64 %storemerge16.reload, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = add i32 %8, 1 %11 = select i1 %9, i32 0, i32 %10 %sv_1.0 = add i32 %11, %sv_1.15.reload %12 = add i64 %storemerge16.reload, 16 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false store i64 %14, i64* %storemerge16.reg2mem store i32 %sv_1.0, i32* %sv_1.15.reg2mem store i32 %sv_1.0, i32* %sv_1.1.lcssa.reg2mem br i1 %16, label LBL_1, label LBL_2 LBL_2: %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %17 = sext i32 %sv_1.1.lcssa.reload to i64 %18 = call i64 @FUNC(i64 %17) %19 = sub i32 0, %2 %20 = sub i32 %19, 1 %21 = sext i32 %20 to i64 %22 = add nsw i64 %17, %21 %23 = add i64 %22, %18 %24 = inttoptr i64 %23 to i8* %25 = call i8* @strcpy(i8* %24, i8* %1) store i64 %0, i64* %storemerge3.reg2mem store i64 %23, i64* %sv_0.12.reg2mem br i1 %5, label LBL_3, label LBL_6 LBL_3: %sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %26 = add i64 %storemerge3.reload, 8 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %28, 0 store i64 %sv_0.12.reload, i64* %sv_0.0.reg2mem br i1 %29, label LBL_5, label LBL_4 LBL_4: %30 = sub i32 0, %28 %31 = sub i32 %30, 1 %32 = sext i32 %31 to i64 %33 = add i64 %sv_0.12.reload, %32 %34 = inttoptr i64 %storemerge3.reload to i64* %35 = load i64, i64* %34, align 8 %36 = inttoptr i64 %33 to i64* %37 = inttoptr i64 %35 to i64* %38 = call i64* @memcpy(i64* %36, i64* %37, i32 %28) %39 = load i32, i32* %27, align 4 %40 = sext i32 %39 to i64 %41 = add i64 %33, %40 %42 = inttoptr i64 %41 to i8* store i8 47, i8* %42, align 1 store i64 %33, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %43 = add i64 %storemerge3.reload, 16 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = icmp eq i64 %45, 0 %47 = icmp eq i1 %46, false store i64 %45, i64* %storemerge3.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem br i1 %47, label LBL_3, label LBL_6 LBL_6: ret i64 %18 uselistorder i32 %28, { 1, 0, 2 } uselistorder i64 %storemerge3.reload, { 2, 0, 1 } uselistorder i64 %sv_0.12.reload, { 1, 0 } uselistorder i64 %18, { 1, 0 } uselistorder i64* %storemerge16.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.15.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.12.reg2mem, { 2, 0, 1 } uselistorder i32 0, { 0, 3, 1, 2, 4 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
get_stream_info_155
get_stream_info
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %sv_0.3.reg2mem = alloca i64 %rcx.2.reg2mem = alloca i64 %sv_1.2.reg2mem = alloca i32 %sv_0.2.reg2mem = alloca i64 %rcx.1.reg2mem = alloca i64 %sv_1.1.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i64 %.reg2mem7 = alloca i32 %storemerge5.reg2mem = alloca i32 %.reg2mem = alloca i64 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = load i32, i32* %1 %6 = load i32, i32* %1 %7 = load i32, i32* %1 %8 = load i32, i32* %1 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %9 = call i64 @FUNC(i64 %4) %10 = bitcast i64* %sv_2 to i8* call void @FUNC(i8* nonnull %10, i64 0, i64 18) %11 = icmp eq i64 %9, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %3, i64 %2) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_37 LBL_2: %14 = inttoptr i64 %9 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 0 %17 = icmp slt i32 %15, 0 %18 = icmp eq i1 %17, false %19 = icmp eq i1 %16, false %20 = icmp eq i1 %18, %19 br i1 %20, label LBL_4, label LBL_3 LBL_3: %21 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %3, i64 %2) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_37 LBL_4: %22 = add i64 %4, 8 %23 = inttoptr i64 %22 to i32* store i32 %15, i32* %23, align 4 %24 = add i64 %9, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = add i64 %4, 12 %28 = inttoptr i64 %27 to i32* store i32 %26, i32* %28, align 4 %29 = add i64 %9, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp eq i32 %31, 0 store i32 0, i32* %.reg2mem7 br i1 %32, label LBL_9, label LBL_5 LBL_5: %33 = ptrtoint i64* %sv_3 to i64 %34 = add i64 %9, 16 %35 = inttoptr i64 %34 to i64* %36 = add i64 %33, -192 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge5.reg2mem br label LBL_6 LBL_6: %.reload = load i64, i64* %.reg2mem %37 = load i64, i64* %35, align 8 %38 = mul i64 %.reload, 4 %39 = add i64 %37, %38 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %.off = add i32 %41, -1 %42 = icmp ult i32 %.off, 36 br i1 %42, label LBL_8, label LBL_7 LBL_7: %43 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 %3, i64 %2) %.pre = load i32, i32* %30, align 4 store i32 %.pre, i32* %.reg2mem7 br label LBL_9 LBL_8: %storemerge5.reload = load i32, i32* %storemerge5.reg2mem %44 = zext i32 %41 to i64 %45 = mul i64 %44, 4 %46 = add i64 %36, %45 %47 = inttoptr i64 %46 to i32* %48 = load i32, i32* %47, align 4 %49 = add i32 %48, 1 store i32 %49, i32* %47, align 4 %50 = add i32 %storemerge5.reload, 1 %51 = load i32, i32* %30, align 4 %52 = zext i32 %51 to i64 %53 = sext i32 %50 to i64 %54 = icmp slt i64 %53, %52 store i64 %53, i64* %.reg2mem store i32 %50, i32* %storemerge5.reg2mem store i32 %51, i32* %.reg2mem7 br i1 %54, label LBL_6, label LBL_9 LBL_9: %.reload8 = load i32, i32* %.reg2mem7 %55 = zext i32 %6 to i64 %56 = zext i32 %5 to i64 %57 = zext i32 %.reload8 to i64 %58 = call i64 @FUNC(i64 %4, i64 2, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i64 %57, i64 %56, i64 %55) %59 = icmp eq i32 %5, 4 store i64 15, i64* %sv_0.0.reg2mem store i32 0, i32* %sv_1.0.reg2mem store i64 %57, i64* %rcx.0.reg2mem br i1 %59, label LBL_15, label LBL_10 LBL_10: %60 = icmp sgt i32 %5, 4 br i1 %60, label LBL_13, label LBL_11 LBL_11: store i64 19, i64* %sv_0.0.reg2mem store i32 0, i32* %sv_1.0.reg2mem store i64 %57, i64* %rcx.0.reg2mem switch i32 %5, label LBL_13 [ i32 3, label LBL_15 i32 1, label LBL_12 i32 2, label LBL_14 ] LBL_12: store i64 16, i64* %sv_0.0.reg2mem store i32 0, i32* %sv_1.0.reg2mem store i64 %57, i64* %rcx.0.reg2mem br label LBL_15 LBL_13: %61 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_4, i64 0, i64 0), i64 %56, i64 %56, i64 %55) store i64 0, i64* %sv_0.0.reg2mem store i32 1, i32* %sv_1.0.reg2mem store i64 %56, i64* %rcx.0.reg2mem br label LBL_15 LBL_14: store i64 3, i64* %sv_0.0.reg2mem store i32 0, i32* %sv_1.0.reg2mem store i64 %57, i64* %rcx.0.reg2mem br label LBL_15 LBL_15: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %62 = icmp slt i32 %6, 1 store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem store i64 %rcx.0.reload, i64* %rcx.1.reg2mem br i1 %62, label LBL_19, label LBL_16 LBL_16: %63 = icmp eq i32 %6, 2 %64 = icmp eq i1 %63, false br i1 %64, label LBL_18, label LBL_17 LBL_17: %65 = or i64 %sv_0.0.reload, 96 store i64 %65, i64* %sv_0.1.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem store i64 %rcx.0.reload, i64* %rcx.1.reg2mem br label LBL_19 LBL_18: %66 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_5, i64 0, i64 0), i64 %55, i64 %56, i64 %55) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem store i32 1, i32* %sv_1.1.reg2mem store i64 %55, i64* %rcx.1.reg2mem br label LBL_19 LBL_19: %rcx.1.reload = load i64, i64* %rcx.1.reg2mem %sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %67 = icmp slt i32 %7, 1 store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rcx.1.reload, i64* %rcx.2.reg2mem br i1 %67, label LBL_27, label LBL_20 LBL_20: %68 = icmp eq i32 %7, 3 br i1 %68, label LBL_23, label LBL_21 LBL_21: %69 = icmp sgt i32 %7, 3 br i1 %69, label LBL_26, label LBL_22 LBL_22: switch i32 %7, label LBL_26 [ i32 1, label LBL_25 i32 2, label LBL_24 ] LBL_23: %70 = or i64 %sv_0.1.reload, 896 store i64 %70, i64* %sv_0.2.reg2mem store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rcx.1.reload, i64* %rcx.2.reg2mem br label LBL_27 LBL_24: %71 = or i64 %sv_0.1.reload, 384 store i64 %71, i64* %sv_0.2.reg2mem store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rcx.1.reload, i64* %rcx.2.reg2mem br label LBL_27 LBL_25: %72 = or i64 %sv_0.1.reload, 512 store i64 %72, i64* %sv_0.2.reg2mem store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rcx.1.reload, i64* %rcx.2.reg2mem br label LBL_27 LBL_26: %73 = zext i32 %7 to i64 %74 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_6, i64 0, i64 0), i64 %73, i64 %56, i64 %55) store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem store i32 1, i32* %sv_1.2.reg2mem store i64 %73, i64* %rcx.2.reg2mem br label LBL_27 LBL_27: %rcx.2.reload = load i64, i64* %rcx.2.reg2mem %sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem %75 = icmp slt i32 %8, 1 store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem br i1 %75, label LBL_31, label LBL_28 LBL_28: %76 = icmp eq i32 %8, 1 %77 = icmp eq i1 %76, false br i1 %77, label LBL_30, label LBL_29 LBL_29: %78 = or i64 %sv_0.2.reload, 1024 store i64 %78, i64* %sv_0.3.reg2mem br label LBL_31 LBL_30: %79 = zext i32 %8 to i64 %80 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_7, i64 0, i64 0), i64 %79, i64 %56, i64 %55) br label LBL_34 LBL_31: %81 = icmp eq i32 %sv_1.2.reload, 0 %82 = icmp eq i1 %81, false br i1 %82, label LBL_34, label LBL_32 LBL_32: %sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem %83 = call i64 @FUNC(i64 %sv_0.3.reload) %84 = load i32, i32* %30, align 4 %85 = trunc i64 %83 to i32 %86 = icmp eq i32 %84, %85 br i1 %86, label LBL_35, label LBL_33 LBL_33: %87 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_8, i64 0, i64 0), i64 %rcx.2.reload, i64 %56, i64 %55) br label LBL_34 LBL_34: %.in = add i64 %4, 16 %88 = inttoptr i64 %.in to i64* store i64 0, i64* %88, align 8 br label LBL_36 LBL_35: %89 = add i64 %4, 16 %90 = inttoptr i64 %89 to i64* store i64 %sv_0.3.reload, i64* %90, align 8 br label LBL_36 LBL_36: %91 = load i32, i32* %30, align 4 %92 = add i64 %4, 24 %93 = inttoptr i64 %92 to i32* store i32 %91, i32* %93, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_37 LBL_37: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_0.3.reload, { 1, 0 } uselistorder i64 %sv_0.2.reload, { 1, 0 } uselistorder i64 %sv_0.1.reload, { 0, 3, 4, 2, 1 } uselistorder i32 %sv_1.1.reload, { 1, 0, 2, 3 } uselistorder i64 %rcx.1.reload, { 1, 0, 2, 3 } uselistorder i64 %sv_0.0.reload, { 0, 2, 1 } uselistorder i64 %57, { 0, 3, 1, 2, 4 } uselistorder i64 %56, { 6, 5, 4, 3, 0, 2, 1, 7 } uselistorder i64 %55, { 6, 5, 4, 0, 3, 1, 2, 7 } uselistorder i32 %41, { 1, 0 } uselistorder i32* %30, { 1, 2, 4, 0, 3 } uselistorder i32 %15, { 0, 2, 1 } uselistorder i32 %7, { 0, 4, 1, 2, 3 } uselistorder i32 %5, { 3, 0, 1, 2 } uselistorder i64 %4, { 9, 1, 0, 8, 7, 6, 5, 4, 10, 11, 12, 13, 3, 2, 14 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem7, { 0, 1, 3, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 5, 4, 2, 3 } uselistorder i32* %sv_1.0.reg2mem, { 0, 1, 5, 4, 2, 3 } uselistorder i64* %rcx.0.reg2mem, { 0, 1, 5, 4, 2, 3 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rcx.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %sv_0.2.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i32* %sv_1.2.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i64* %rcx.2.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %1, { 3, 2, 1, 0 } uselistorder i64* %0, { 1, 0 } uselistorder i32 2, { 1, 2, 0 } uselistorder i32 3, { 2, 1, 0 } uselistorder i32 4, { 1, 0 } uselistorder i64 16, { 2, 1, 0, 3 } uselistorder i32 0, { 7, 0, 3, 1, 2, 5, 4, 6, 8, 9 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 8, 7, 6, 5, 4, 2, 3, 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 0, 5 } uselistorder i64 0, { 0, 30, 14, 15, 12, 13, 16, 17, 10, 11, 1, 18, 19, 20, 21, 7, 8, 9, 2, 6, 26, 22, 23, 5, 27, 24, 25, 31, 28, 3, 4, 29 } uselistorder label LBL_34, { 2, 0, 1 } uselistorder label LBL_15, { 1, 3, 4, 0, 2 } uselistorder label LBL_9, { 0, 2, 1 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
decode_tsw1_15730
decode_tsw1
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_0.14.reg2mem = alloca i64 %sv_2.15.reg2mem = alloca i32 %sv_1.16.reg2mem = alloca i32 %.in.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sext1 = mul i64 %arg3, 4294967296 %sext2 = mul i64 %arg4, 4294967296 %1 = ashr exact i64 %sext2, 32 %sext3 = mul i64 %sext1, %1 %2 = ashr exact i64 %sext3, 32 %3 = call i64 @FUNC(i64 %0) %4 = trunc i64 %3 to i32 %5 = call i64 @FUNC(i64 %0) %6 = icmp eq i32 %4, 0 %.pre = and i64 %5, 4294967295 %7 = icmp eq i64 %.pre, %2 %8 = icmp eq i1 %6, %7 store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_13, label LBL_1 LBL_1: %9 = icmp sle i64 %2, %.pre %brmerge = or i1 %6, %9 %.mux = select i1 %9, i64 4294967295, i64 0 store i64 %.mux, i64* %rax.0.reg2mem br i1 %brmerge, label LBL_13, label LBL_2 LBL_2: %10 = ptrtoint i64* %arg2 to i64 %11 = add i64 %2, %10 %12 = add i64 %.pre, %10 store i32 %4, i32* %.in.reg2mem store i32 0, i32* %sv_1.16.reg2mem store i32 65536, i32* %sv_2.15.reg2mem store i64 %12, i64* %sv_0.14.reg2mem br label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %0) %14 = trunc i64 %13 to i32 %15 = icmp sgt i32 %14, 1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %15, label LBL_4, label LBL_13 LBL_4: %sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem %sv_2.15.reload = load i32, i32* %sv_2.15.reg2mem %sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem %.in.reload = load i32, i32* %.in.reg2mem %16 = icmp eq i32 %sv_2.15.reload, 65536 %17 = icmp eq i1 %16, false store i32 %sv_2.15.reload, i32* %sv_2.0.reg2mem store i32 %sv_1.16.reload, i32* %sv_1.0.reg2mem br i1 %17, label LBL_6, label LBL_5 LBL_5: %18 = call i64 @FUNC(i64 %0) %19 = trunc i64 %18 to i32 store i32 1, i32* %sv_2.0.reg2mem store i32 %19, i32* %sv_1.0.reg2mem br label LBL_6 LBL_6: %20 = sub i64 %11, %sv_0.14.reload %21 = icmp sgt i64 %20, 1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %21, label LBL_7, label LBL_13 LBL_7: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %22 = and i32 %sv_1.0.reload, %sv_2.0.reload %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_11, label LBL_8 LBL_8: %24 = call i64 @FUNC(i64 %0) %25 = mul i64 %24, 2 %26 = and i64 %25, 16382 %27 = sub i64 %sv_0.14.reload, %10 %28 = icmp slt i64 %27, %26 store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_13, label LBL_9 LBL_9: %29 = trunc i64 %24 to i32 %30 = ashr i32 %29, 13 %31 = mul i32 %30, 2 %32 = add nsw i32 %31, 4 %33 = sext i32 %32 to i64 %34 = icmp slt i64 %20, %33 store i64 4294967295, i64* %rax.0.reg2mem br i1 %34, label LBL_13, label LBL_10 LBL_10: %35 = call i64 @FUNC(i64 %sv_0.14.reload, i64 %26, i32 %32) %36 = add i64 %sv_0.14.reload, %33 store i64 %36, i64* %sv_0.0.reg2mem br label LBL_12 LBL_11: %37 = add i64 %sv_0.14.reload, 1 %38 = call i64 @FUNC(i64 %0) %39 = trunc i64 %38 to i8 %40 = inttoptr i64 %sv_0.14.reload to i8* store i8 %39, i8* %40, align 1 %41 = add i64 %sv_0.14.reload, 2 %42 = call i64 @FUNC(i64 %0) %43 = trunc i64 %42 to i8 %44 = inttoptr i64 %37 to i8* store i8 %43, i8* %44, align 1 store i64 %41, i64* %sv_0.0.reg2mem br label LBL_12 LBL_12: %45 = add i32 %.in.reload, -1 %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %46 = mul i32 %sv_2.0.reload, 2 %47 = icmp eq i32 %45, 0 %48 = icmp eq i1 %47, false store i32 %45, i32* %.in.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.16.reg2mem store i32 %46, i32* %sv_2.15.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.14.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %48, label LBL_3, label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %26, { 1, 0 } uselistorder i64 %24, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 1, 0 } uselistorder i64 %sv_0.14.reload, { 2, 4, 3, 6, 1, 0, 5 } uselistorder i64 %10, { 2, 1, 0 } uselistorder i1 %9, { 1, 0 } uselistorder i1 %6, { 1, 0 } uselistorder i64 %2, { 0, 2, 1 } uselistorder i64 %0, { 2, 3, 1, 0, 4, 5, 6 } uselistorder i32* %.in.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.16.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.15.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.14.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 4, 2, 1, 7, 6 } uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 } uselistorder i64 2, { 2, 0, 1 } uselistorder i64 1, { 4, 3, 0, 1, 2 } uselistorder i64 (i64)* @bytestream2_get_le16u, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder i32 65536, { 1, 0 } uselistorder i32 0, { 3, 2, 0, 4, 1 } uselistorder i64 (i64)* @bytestream2_get_le32, { 1, 0 } uselistorder label LBL_13, { 4, 2, 3, 1, 0, 6, 5 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
msRemoveStyle_4629
msRemoveStyle
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i32 %rdi.013.reg2mem = alloca i64 %storemerge.in14.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 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 1 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_2: %sext = mul i64 %arg2, 4294967296 %11 = ashr exact i64 %sext, 32 %12 = trunc i64 %11 to i32 %13 = icmp sgt i32 %12, -1 %14 = zext i32 %7 to i64 %15 = icmp slt i64 %11, %14 %or.cond = icmp eq i1 %13, %15 br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %16 = and i64 %11, 4294967295 %17 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %16, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_4: %18 = call i64* @malloc(i32 4) %19 = icmp eq i64* %18, null %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_4, i64 0, i64 0), i64 %3, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %22 = bitcast i64* %18 to i32* %23 = ashr exact i64 %sext, 30 %24 = add nsw i64 %23, 4 %25 = ptrtoint i64* %18 to i64 %26 = call i64 @FUNC(i64 %25, i64 %24) store i32 0, i32* %22, align 4 %27 = load i32, i32* %6, align 4 %28 = add i32 %27, -1 %29 = zext i32 %28 to i64 %30 = icmp slt i64 %11, %29 store i64 %sext, i64* %storemerge.in14.reg2mem store i64 %25, i64* %rdi.013.reg2mem store i32 %28, i32* %.lcssa.reg2mem br i1 %30, label LBL_7, label LBL_8 LBL_7: %rdi.013.reload = load i64, i64* %rdi.013.reg2mem %storemerge.in14.reload = load i64, i64* %storemerge.in14.reg2mem %31 = ashr exact i64 %storemerge.in14.reload, 30 %32 = add i64 %31, %rdi.013.reload %33 = add i64 %32, 4 %34 = call i64 @FUNC(i64 %32, i64 %33) %sext10 = add i64 %storemerge.in14.reload, 4294967296 %storemerge = ashr exact i64 %sext10, 32 %35 = load i32, i32* %6, align 4 %36 = add i32 %35, -1 %37 = zext i32 %36 to i64 %38 = icmp slt i64 %storemerge, %37 store i64 %sext10, i64* %storemerge.in14.reg2mem store i64 %32, i64* %rdi.013.reg2mem store i32 %36, i32* %.lcssa.reg2mem br i1 %38, label LBL_7, label LBL_8 LBL_8: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem store i32 %.lcssa.reload, i32* %6, align 4 store i64 %25, 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* %18, { 0, 2, 1 } uselistorder i64 %11, { 0, 2, 1, 3 } uselistorder i64 %sext, { 0, 2, 1 } uselistorder i32* %6, { 2, 1, 0, 3 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %storemerge.in14.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.013.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64)* @msCopyStyle, { 1, 0 } uselistorder i32 -1, { 2, 0, 1 } uselistorder i64 4294967296, { 1, 0 } uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @msSetError, { 2, 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
__reg64_bound_u32_6826
__reg64_bound_u32
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %arg1.off = add i64 %arg1, -1 %0 = icmp ult i64 %arg1.off, 4294967294 %storemerge = zext i1 %0 to i64 ret i64 %storemerge }
0
BinRealVul
lookup_one_len_9148
lookup_one_len
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %sv_2 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %8 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %7) br label LBL_2 LBL_2: %sext = mul i64 %arg3, 4294967296 %9 = ashr exact i64 %sext, 32 store i64 %arg1, i64* %sv_2, align 8 %10 = and i64 %9, 4294967295 %11 = call i64 @FUNC(i64 %arg1, i64 %10) %12 = trunc i64 %9 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 -13, i64* %rax.0.reg2mem br i1 %14, label LBL_3, label LBL_17 LBL_3: %15 = trunc i64 %1 to i8 %16 = icmp eq i8 %15, 46 %17 = icmp eq i1 %16, false br i1 %17, label LBL_7, label LBL_4 LBL_4: %18 = icmp slt i32 %12, 2 store i64 -13, i64* %rax.0.reg2mem br i1 %18, label LBL_17, label LBL_5 LBL_5: %19 = icmp eq i32 %12, 2 %20 = icmp eq i1 %19, false br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = add i64 %arg1, 1 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = icmp eq i8 %23, 46 %25 = icmp eq i1 %24, false store i64 -13, i64* %rax.0.reg2mem br i1 %25, label LBL_7, label LBL_17 LBL_7: store i64 %arg1, i64* %sv_1.0.reg2mem store i64 %9, i64* %sv_0.0.reg2mem br label LBL_10 LBL_8: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %26 = inttoptr i64 %sv_1.0.reload to i8* %27 = load i8, i8* %26, align 1 %28 = icmp eq i8 %27, 47 store i64 -13, i64* %rax.0.reg2mem br i1 %28, label LBL_17, label LBL_9 LBL_9: %29 = mul i64 %sv_0.0.reload, 4294967296 %sext3 = add i64 %29, -4294967296 %30 = ashr exact i64 %sext3, 32 %31 = add i64 %sv_1.0.reload, 1 %32 = icmp eq i8 %27, 0 %33 = icmp eq i1 %32, false store i64 %31, i64* %sv_1.0.reg2mem store i64 %30, i64* %sv_0.0.reg2mem store i64 -13, i64* %rax.0.reg2mem br i1 %33, label LBL_10, label LBL_17 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %34 = icmp eq i64 %sv_0.0.reload, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_8, label LBL_11 LBL_11: %36 = add i64 %2, 8 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = urem i32 %38, 2 %40 = icmp eq i32 %39, 0 store i64 %10, i64* %rsi.0.reg2mem br i1 %40, label LBL_14, label LBL_12 LBL_12: %41 = ptrtoint i64* %sv_2 to i64 %42 = trunc i64 %2 to i32 %43 = icmp slt i32 %42, 0 %44 = icmp eq i1 %43, false store i64 %41, i64* %rsi.0.reg2mem br i1 %44, label LBL_14, label LBL_13 LBL_13: %sext4 = mul i64 %2, 4294967296 %45 = ashr exact i64 %sext4, 32 store i64 %45, i64* %rax.0.reg2mem br label LBL_17 LBL_14: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %46 = call i64 @FUNC(i64 %rsi.0.reload, i64 1) %47 = trunc i64 %46 to i32 %48 = icmp eq i32 %47, 0 br i1 %48, label LBL_16, label LBL_15 LBL_15: %sext5 = mul i64 %46, 4294967296 %49 = ashr exact i64 %sext5, 32 store i64 %49, i64* %rax.0.reg2mem br label LBL_17 LBL_16: %50 = call i64 @FUNC(i64* nonnull %sv_2, i64 %2, i64 0) store i64 %50, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %12, { 1, 0, 2 } uselistorder i64 %9, { 0, 2, 1 } uselistorder i64 %2, { 1, 0, 3, 2, 4 } uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 2, 1, 4, 3, 5 } uselistorder i64 1, { 2, 3, 4, 0, 1 } uselistorder i64 -13, { 1, 0, 3, 2, 4 } uselistorder i64 4294967295, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0 } uselistorder i64 %arg1, { 0, 1, 3, 2 } uselistorder label LBL_17, { 5, 6, 7, 1, 0, 3, 2, 4 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 2, 1, 0 } }
0
BinRealVul
alloc_aio_bitmap_15001
alloc_aio_bitmap
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 %1, 511 %3 = add i64 %1, 1022 %4 = icmp slt i64 %2, 0 %5 = select i1 %4, i64 %3, i64 %2 %6 = ashr i64 %5, 9 %7 = call i64 @FUNC(i64 %6) %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 ret i64 %7 uselistorder i64 %7, { 1, 0 } uselistorder i64 %2, { 1, 0 } }
1
BinRealVul
mptsas_reply_8798
mptsas_reply
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = bitcast i64* %arg1 to i32* store i32 0, i32* %6, align 4 %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* store i32 0, i32* %8, align 4 %9 = bitcast i64* %rsi to i32* %10 = load i32, i32* %9, align 8 %11 = mul i32 %10, 2 %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = mul i32 %10, 4 %15 = add i64 %2, 12 %16 = inttoptr i64 %15 to i64* %17 = bitcast i32* %arg2 to i64* %18 = call i64* @memcpy(i64* %16, i64* %17, i32 %14) %19 = add i64 %2, 268 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = or i32 %21, 1 store i32 %22, i32* %20, align 4 %23 = call i64 @FUNC(i64 %2) store i64 %23, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %24 = ptrtoint i32* %arg2 to i64 %25 = call i64 @FUNC(i64 %2, i64 %24) store i64 %25, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 5, 0, 1, 2, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32* %arg2, { 1, 0 } }
0
BinRealVul
get_buffer_sao_16936
get_buffer_sao
define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.reg2mem13 = alloca i32 %.pre-phi8.reg2mem = alloca i32* %storemerge34.reg2mem = alloca i32 %.reg2mem11 = alloca i64 %.reg2mem9 = alloca i64* %.reg2mem = 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 = trunc i64 %1 to i32 %5 = add i32 %4, 2 %6 = bitcast i64* %arg2 to i32* store i32 %5, i32* %6, align 4 %7 = add i64 %3, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i32 %9, 2 %11 = add i64 %2, 4 %12 = inttoptr i64 %11 to i32* store i32 %10, i32* %12, align 4 store i64 %3, i64* %rdi, align 8 %13 = call i64 @FUNC(i64 %3, i64 %2, i64 1) %14 = trunc i64 %13 to i32 %15 = icmp slt i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_1, label LBL_3 LBL_1: %17 = trunc i64 %3 to i32 %18 = add i64 %2, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = icmp eq i64 %20, 0 %22 = icmp eq i1 %21, false store i32* %8, i32** %.pre-phi8.reg2mem store i32 %17, i32* %.reg2mem13 br i1 %22, label LBL_2, label LBL_6 LBL_2: %23 = bitcast i64* %rdi to i32* %24 = add i64 %2, 72 store i64 %20, i64* %.reg2mem store i64* %19, i64** %.reg2mem9 store i64 0, i64* %.reg2mem11 store i32 0, i32* %storemerge34.reg2mem br label LBL_4 LBL_3: %25 = and i64 %13, 4294967295 store i64 %25, i64* %storemerge.reg2mem br label LBL_7 LBL_4: %storemerge34.reload = load i32, i32* %storemerge34.reg2mem %.reload12 = load i64, i64* %.reg2mem11 %.reload10 = load i64*, i64** %.reg2mem9 %.reload = load i64, i64* %.reg2mem %26 = mul i64 %.reload12, 4 %27 = add i64 %24, %26 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = urem i32 %29, 32 %31 = shl i32 1, %30 %32 = add i32 %31, %29 %33 = sext i32 %32 to i64 %34 = mul i64 %33, 4 %35 = add i64 %34, %.reload store i64 %35, i64* %.reload10, align 8 %36 = add i32 %storemerge34.reload, 1 %37 = sext i32 %36 to i64 %38 = mul i64 %37, 8 %39 = add i64 %38, %18 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = icmp eq i64 %41, 0 %43 = icmp eq i1 %42, false store i64 %41, i64* %.reg2mem store i64* %40, i64** %.reg2mem9 store i64 %37, i64* %.reg2mem11 store i32 %36, i32* %storemerge34.reg2mem br i1 %43, label LBL_4, label LBL_5 LBL_5: %.pre = load i32, i32* %23, align 8 %.pre5 = load i64, i64* %rdi, align 8 %.pre6 = add i64 %.pre5, 4 %.pre7 = inttoptr i64 %.pre6 to i32* store i32* %.pre7, i32** %.pre-phi8.reg2mem store i32 %.pre, i32* %.reg2mem13 br label LBL_6 LBL_6: %.reload14 = load i32, i32* %.reg2mem13 %.pre-phi8.reload = load i32*, i32** %.pre-phi8.reg2mem store i32 %.reload14, i32* %6, align 4 %44 = load i32, i32* %.pre-phi8.reload, align 4 store i32 %44, i32* %12, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %29, { 1, 0 } uselistorder i64* %rdi, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64** %.reg2mem9, { 1, 0, 2 } uselistorder i64* %.reg2mem11, { 1, 0, 2 } uselistorder i32* %storemerge34.reg2mem, { 1, 0, 2 } uselistorder i32** %.pre-phi8.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem13, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 8, { 0, 3, 2, 1, 4 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder i64 1, { 2, 1, 0 } uselistorder i64 4, { 3, 0, 1, 4, 5, 2, 6 } uselistorder i32 2, { 1, 2, 3, 0, 4 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
sdsMakeRoomFor_6363
sdsMakeRoomFor
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = add i64 %arg1, -1 %2 = inttoptr i64 %1 to i8* %3 = load i8, i8* %2, align 1 %4 = icmp ult i64 %0, %arg2 store i64 %arg1, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_11 LBL_1: %5 = urem i8 %3, 16 %6 = call i64 @FUNC(i64 %arg1) %7 = zext i8 %5 to i64 %8 = call i64 @FUNC(i64 %7) %9 = add i64 %6, %arg2 %10 = icmp ult i64 %9, %6 br i1 %10, label LBL_2, label LBL_3 LBL_2: call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 59, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_3 LBL_3: %11 = icmp ult i64 %9, 1048576 %12 = add i64 %9, 1048576 %13 = mul i64 %9, 2 %storemerge5 = select i1 %11, i64 %13, i64 %12 %14 = call i64 @FUNC(i64 %storemerge5) %15 = trunc i64 %14 to i8 %16 = sext i8 %15 to i32 %17 = icmp eq i8 %15, 0 %18 = icmp eq i1 %17, false %spec.select = select i1 %18, i32 %16, i32 1 %19 = zext i32 %spec.select to i64 %20 = call i64 @FUNC(i64 %19) %sext4 = mul i64 %20, 4294967296 %21 = ashr exact i64 %sext4, 32 %22 = add i64 %storemerge5, 1 %23 = add i64 %22, %21 %24 = icmp ult i64 %9, %23 br i1 %24, label LBL_5, label LBL_4 LBL_4: call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 67, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_5 LBL_5: %sext3 = mul i64 %8, 4294967296 %25 = ashr exact i64 %sext3, 32 %26 = sub i64 %arg1, %25 %27 = trunc i32 %spec.select to i8 %28 = icmp eq i8 %5, %27 %29 = icmp eq i1 %28, false br i1 %29, label LBL_8, label LBL_6 LBL_6: %30 = call i64 @FUNC(i64 %26, i64 %23) %31 = icmp eq i64 %30, 0 %32 = icmp eq i1 %31, false store i64 0, i64* %rax.0.reg2mem br i1 %32, label LBL_7, label LBL_11 LBL_7: %33 = add i64 %30, %21 store i64 %33, i64* %sv_0.0.reg2mem br label LBL_10 LBL_8: %34 = call i64 @FUNC(i64 %23) %35 = icmp eq i64 %34, 0 %36 = icmp eq i1 %35, false store i64 0, i64* %rax.0.reg2mem br i1 %36, label LBL_9, label LBL_11 LBL_9: %37 = add i64 %34, %21 %38 = inttoptr i64 %37 to i64* %39 = inttoptr i64 %arg1 to i64* %40 = trunc i64 %6 to i32 %41 = add i32 %40, 1 %42 = call i64* @memcpy(i64* %38, i64* %39, i32 %41) %43 = call i64 @FUNC(i64 %26) %44 = add i64 %37, -1 %45 = inttoptr i64 %44 to i8* store i8 %27, i8* %45, align 1 %46 = call i64 @FUNC(i64 %37, i64 %6) store i64 %37, i64* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %47 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %storemerge5) 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 %37, { 0, 2, 1, 3 } uselistorder i64 %26, { 1, 0 } uselistorder i8 %15, { 1, 0 } uselistorder i64 %9, { 1, 0, 3, 2, 4 } uselistorder i64 %6, { 1, 2, 3, 0 } uselistorder i8 %5, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 1048576, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i32 1, { 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 1, 2, 3, 0, 4, 5 } uselistorder label LBL_11, { 3, 0, 1, 2 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
CreatePCPPeer_9887
CreatePCPPeer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge7.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 46) %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: call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 46) br label LBL_5 LBL_2: %5 = add i64 %0, 48 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 store i32 -1, i32* %storemerge7.reg2mem br i1 %8, label LBL_3, label LBL_4 LBL_3: %9 = call i64 @FUNC(i64 %0) %10 = trunc i64 %9 to i32 store i32 %10, i32* %storemerge7.reg2mem br label LBL_4 LBL_4: %storemerge7.reload = load i32, i32* %storemerge7.reg2mem %11 = add i64 %0, 368 %12 = inttoptr i64 %11 to i32* store i32 %storemerge7.reload, i32* %12, align 4 %13 = add i64 %0, 104 %14 = add i64 %0, 56 %15 = inttoptr i64 %14 to i16* %16 = load i16, i16* %15, align 2 %17 = add i64 %0, 54 %18 = inttoptr i64 %17 to i16* %19 = load i16, i16* %18, align 2 %20 = add i64 %0, 52 %21 = inttoptr i64 %20 to i16* %22 = load i16, i16* %21, align 2 %23 = add i64 %0, 58 %24 = add i64 %0, 364 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 6 %28 = icmp eq i1 %27, false %29 = icmp eq i32 %storemerge7.reload, 0 %30 = icmp eq i1 %29, false %31 = inttoptr i64 %13 to i8* %32 = select i1 %30, i32 3, i32 6 %33 = select i1 %30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0) %34 = select i1 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0) %35 = inttoptr i64 %23 to i8* call void (i32, i8*, ...) @syslog(i32 %32, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_5, i64 0, i64 0), i8* %33, i8* %34, i8* %35, i16 %22, i16 %19, i64* nonnull %sv_0, i16 %16, i8* %31) br label LBL_5 LBL_5: ret i64 ptrtoint (i32* @0 to i64) uselistorder i1 %30, { 1, 0 } uselistorder i32 %storemerge7.reload, { 1, 0 } uselistorder i64 %0, { 1, 0, 3, 2, 5, 4, 6, 8, 7, 9 } uselistorder i32* %storemerge7.reg2mem, { 0, 2, 1 } uselistorder void (i32, i8*, ...)* @syslog, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
is_git_directory_5317
is_git_directory
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi2.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %4 = inttoptr i64 %arg1 to i8* %5 = call i32 @strlen(i8* %4) %6 = sext i32 %5 to i64 %7 = add nsw i64 %6, 8 %8 = icmp ult i64 %7, 4095 %9 = icmp eq i32 %5, 4087 %10 = or i1 %9, %8 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 60, i64 %arg1, i64 %3, i64 %2, i64 %1) unreachable LBL_2: %12 = bitcast i64* %sv_0 to i8* %13 = call i8* @strcpy(i8* nonnull %12, i8* %4) %14 = call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0)) %15 = icmp eq i8* %14, null br i1 %15, label LBL_5, label LBL_3 LBL_3: %16 = call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0)) %17 = call i32 @access(i8* %16, i32 1) %18 = icmp eq i32 %17, 0 store i64 0, i64* %rax.0.reg2mem br i1 %18, label LBL_3.LBL_6_crit_edge, label LBL_8 LBL_4: %.pre = ptrtoint i64* %sv_0 to i64 %.pre1 = add i64 %6, %.pre store i64 %.pre1, i64* %.pre-phi2.reg2mem br label LBL_6 LBL_5: %19 = ptrtoint i64* %sv_0 to i64 %20 = add i64 %6, %19 %21 = inttoptr i64 %20 to i64* store i64 8319383698887831343, i64* %21, align 8 %22 = add i64 %20, 8 %23 = inttoptr i64 %22 to i8* store i8 0, i8* %23, align 1 %24 = call i32 @access(i8* nonnull %12, i32 1) %25 = icmp eq i32 %24, 0 store i64 %20, i64* %.pre-phi2.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %25, label LBL_6, label LBL_8 LBL_6: %.pre-phi2.reload = load i64, i64* %.pre-phi2.reg2mem %26 = inttoptr i64 %.pre-phi2.reload to i32* store i32 1717924399, i32* %26, align 4 %27 = add i64 %.pre-phi2.reload, 4 %28 = inttoptr i64 %27 to i16* store i16 115, i16* %28, align 2 %29 = call i32 @access(i8* nonnull %12, i32 1) %30 = icmp eq i32 %29, 0 store i64 0, i64* %rax.0.reg2mem br i1 %30, label LBL_7, label LBL_8 LBL_7: store i32 1095059503, i32* %26, align 4 store i16 68, i16* %28, align 2 %31 = call i64 @FUNC(i64* nonnull %sv_0) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 %. = zext i1 %33 to i64 store i64 %., 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 i64 %.pre-phi2.reload, { 1, 0 } uselistorder i64 %20, { 0, 2, 1 } uselistorder i64* %sv_0, { 1, 3, 0, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 (i8*, i32)* @access, { 2, 1, 0 } uselistorder i8* (i8*)* @getenv, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
ext4_valid_extent_17607
ext4_valid_extent
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = and i64 %1, 4294967295 %7 = call i64 @FUNC(i64 %6) %8 = and i64 %3, 4294967295 %9 = and i64 %7, 4294967295 %10 = call i64 @FUNC(i64 %9, i64 %8, i32 %5) ret i64 %10 }
1
BinRealVul
create_argv_command_5196
create_argv_command
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.1.lcssa.reg2mem = alloca i64 %rsi.3.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rsi.2.reg2mem = alloca i64 %sv_0.19.reg2mem = alloca i64 %rsi.410.reg2mem = alloca i64 %storemerge11.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %storemerge4.in.reg2mem = alloca i64 %storemerge5.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 store i64 0, i64* %storemerge6.reg2mem br label LBL_1 LBL_1: %storemerge6.reload = load i64, i64* %storemerge6.reg2mem %1 = mul i64 %storemerge6.reload, 8 %2 = add i64 %1, %0 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %7 = add i64 %storemerge6.reload, 1 store i64 %7, i64* %storemerge6.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_2: %8 = icmp eq i64* %arg1, null %9 = icmp eq i1 %8, false br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = call i64 @FUNC(i64 %7, i64 8) store i64 %7, i64* %rdi.0.reg2mem store i64 %10, i64* %storemerge5.reg2mem br label LBL_5 LBL_4: %11 = add i64 %storemerge6.reload, 5 %12 = call i64 @FUNC(i64 %11, i64 8) store i64 %11, i64* %rdi.0.reg2mem store i64 %12, i64* %storemerge5.reg2mem br label LBL_5 LBL_5: %13 = ptrtoint i64* %arg1 to i64 %storemerge5.reload = load i64, i64* %storemerge5.reg2mem %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %14 = icmp eq i64 %rdi.0.reload, 0 br i1 %14, label LBL_7, label LBL_6 LBL_6: %15 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0)) %16 = inttoptr i64 %storemerge5.reload to i64* store i64 %15, i64* %16, align 8 %17 = add i64 %storemerge5.reload, 8 %18 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %19 = inttoptr i64 %17 to i64* store i64 %18, i64* %19, align 8 %20 = add i64 %storemerge5.reload, 16 %21 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %22 = inttoptr i64 %20 to i64* store i64 %21, i64* %22, align 8 %23 = add i64 %storemerge5.reload, 24 %24 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0)) %25 = inttoptr i64 %23 to i64* store i64 %24, i64* %25, align 8 %26 = add i64 %13, 8 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = add i64 %storemerge5.reload, 32 %30 = inttoptr i64 %28 to i8* %31 = call i64 @FUNC(i8* %30) %32 = inttoptr i64 %29 to i64* store i64 %31, i64* %32, align 8 store i64 8, i64* %rsi.1.reg2mem store i64 5, i64* %storemerge3.reg2mem br label LBL_11 LBL_7: %33 = add i64 %13, 8 %34 = inttoptr i64 %33 to i64* %35 = load i64, i64* %34, align 8 %36 = inttoptr i64 %35 to i8* %37 = call i8* @strrchr(i8* %36, i32 47) %38 = icmp eq i8* %37, null %39 = icmp eq i1 %38, false br i1 %39, label LBL_9, label LBL_8 LBL_8: %40 = load i64, i64* %34, align 8 store i64 %40, i64* %storemerge4.in.reg2mem br label LBL_10 LBL_9: %41 = ptrtoint i8* %37 to i64 %42 = add i64 %41, 1 store i64 %42, i64* %storemerge4.in.reg2mem br label LBL_10 LBL_10: %storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem %storemerge4 = inttoptr i64 %storemerge4.in.reload to i8* %43 = call i64 @FUNC(i8* %storemerge4) %44 = inttoptr i64 %storemerge5.reload to i64* store i64 %43, i64* %44, align 8 store i64 47, i64* %rsi.1.reg2mem store i64 1, i64* %storemerge3.reg2mem br label LBL_11 LBL_11: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %45 = add i64 %13, 16 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = icmp eq i32 %47, -1 %49 = icmp eq i1 %48, false %50 = sext i32 %47 to i64 %51 = add i64 %storemerge6.reload, -1 %storemerge2 = select i1 %49, i64 %50, i64 %51 %52 = icmp ugt i64 %storemerge6.reload, 1 store i64 1, i64* %storemerge11.reg2mem store i64 %rsi.1.reload, i64* %rsi.410.reg2mem store i64 %storemerge3.reload, i64* %sv_0.19.reg2mem store i64 %storemerge3.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %52, label LBL_12, label LBL_22 LBL_12: %sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem %rsi.410.reload = load i64, i64* %rsi.410.reg2mem %storemerge11.reload = load i64, i64* %storemerge11.reg2mem %53 = mul i64 %storemerge11.reload, 8 %54 = add i64 %53, %0 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = add i64 %56, 8 %60 = inttoptr i64 %59 to i64* %61 = load i64, i64* %60, align 8 %62 = icmp eq i64 %storemerge11.reload, %storemerge2 %63 = icmp eq i1 %62, false br i1 %63, label LBL_17, label LBL_13 LBL_13: %64 = call i64 @FUNC() store i64 %64, i64* %arg2, align 8 %65 = icmp eq i64 %rsi.410.reload, 0 %66 = icmp eq i1 %65, false br i1 %66, label LBL_15, label LBL_14 LBL_14: %67 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_15: %68 = call i64 @FUNC(i64 %rsi.410.reload, i64 %58, i64 %61) %69 = trunc i64 %68 to i32 %70 = icmp slt i32 %69, 0 %71 = icmp eq i1 %70, false store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem store i64 %58, i64* %rsi.3.reg2mem br i1 %71, label LBL_21, label LBL_16 LBL_16: %72 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_4, i64 0, i64 0)) unreachable LBL_17: %73 = icmp eq i64 %61, 0 %74 = icmp eq i1 %73, false %75 = mul i64 %sv_0.19.reload, 8 %76 = add i64 %75, %storemerge5.reload br i1 %74, label LBL_19, label LBL_18 LBL_18: %77 = call i64 @FUNC(i8* bitcast (i8** @gv_5 to i8*)) %78 = inttoptr i64 %76 to i64* store i64 %77, i64* %78, align 8 store i64 %rsi.410.reload, i64* %rsi.2.reg2mem br label LBL_20 LBL_19: %79 = call i64 @FUNC(i64 %58, i64 %61) %80 = inttoptr i64 %76 to i64* store i64 %79, i64* %80, align 8 store i64 %61, i64* %rsi.2.reg2mem br label LBL_20 LBL_20: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %81 = add i64 %sv_0.19.reload, 1 store i64 %81, i64* %sv_0.0.reg2mem store i64 %rsi.2.reload, i64* %rsi.3.reg2mem br label LBL_21 LBL_21: %rsi.3.reload = load i64, i64* %rsi.3.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %82 = add nuw i64 %storemerge11.reload, 1 %83 = icmp ult i64 %82, %storemerge6.reload store i64 %82, i64* %storemerge11.reg2mem store i64 %rsi.3.reload, i64* %rsi.410.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.19.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %83, label LBL_12, label LBL_22 LBL_22: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %84 = mul i64 %sv_0.1.lcssa.reload, 8 %85 = add i64 %84, %storemerge5.reload %86 = inttoptr i64 %85 to i64* store i64 0, i64* %86, align 8 ret i64 %storemerge5.reload uselistorder i64 %76, { 1, 0 } uselistorder i64 %61, { 0, 2, 3, 1 } uselistorder i64 %58, { 2, 0, 1 } uselistorder i64 %rsi.410.reload, { 0, 2, 1 } uselistorder i64 %sv_0.19.reload, { 1, 2, 0 } uselistorder i64 %storemerge5.reload, { 1, 8, 7, 0, 6, 5, 4, 3, 2 } uselistorder i64 %13, { 1, 2, 0 } uselistorder i64 %7, { 0, 2, 1 } uselistorder i64 %storemerge6.reload, { 2, 4, 3, 1, 0, 5 } uselistorder i64* %storemerge6.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge4.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge11.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.410.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.19.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.2.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.3.reg2mem, { 0, 2, 1 } uselistorder i64 (i8*)* @die, { 1, 0 } uselistorder i64 (i8*)* @xstrdup, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @xcalloc, { 1, 0 } uselistorder i64 1, { 3, 4, 0, 2, 1, 5, 6 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_21, { 1, 0 } uselistorder label LBL_12, { 1, 0 } }
0
BinRealVul
paravirt_patch_jmp_11083
paravirt_patch_jmp
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = icmp ult i32 %arg4, 5 br i1 %0, label LBL_1, label LBL_2 LBL_1: %1 = zext i32 %arg4 to i64 store i64 %1, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %arg2, -5 %4 = sub i64 %3, %arg3 %5 = bitcast i64* %arg1 to i8* store i8 -23, i8* %5, align 1 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* store i64 %4, i64* %7, align 8 store i64 5, 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 } }
1
BinRealVul
pi_next_pcrl_7771
pi_next_pcrl
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge10.reg2mem = alloca i64 %.reg2mem68 = alloca i32 %.reg2mem66 = alloca i32 %.reg2mem64 = alloca i32 %sv_0.3.reg2mem = alloca i32* %.pre-phi30.reg2mem = alloca i64 %.reg2mem62 = alloca i32 %sv_0.2.reg2mem = alloca i32* %.pre-phi41.reg2mem = alloca i64 %.pre-phi43.reg2mem = alloca i32* %sv_0.1.reg2mem = alloca i32* %.pre-phi31.reg2mem = alloca i64 %.reg2mem60 = alloca i32 %sv_0.0.reg2mem = alloca i32* %.pre-phi33.reg2mem = alloca i64 %.pre-phi35.reg2mem = alloca i32* %.reg2mem58 = alloca i32 %.pre-phi39.reg2mem = alloca i32* %.reg2mem56 = alloca i32 %storemerge13.reg2mem = alloca i64 %storemerge14.reg2mem = alloca i64 %storemerge1226.reg2mem = alloca i32 %.reg2mem54 = alloca i32 %.reg2mem52 = alloca i64 %storemerge1127.reg2mem = alloca i32 %.reg2mem50 = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = add i64 %2, 48 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = add i64 %2, 24 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = sext i32 %11 to i64 %13 = mul nsw i64 %12, 24 %14 = add i64 %13, %8 %15 = inttoptr i64 %14 to i32* %.pre32 = add i64 %2, 36 %.pre34 = inttoptr i64 %.pre32 to i32* %.pre49 = load i32, i32* %.pre34, align 4 store i32 %.pre49, i32* %.reg2mem58 store i32* %.pre34, i32** %.pre-phi35.reg2mem store i64 %.pre32, i64* %.pre-phi33.reg2mem store i32* %15, i32** %sv_0.0.reg2mem br label LBL_34 LBL_2: %16 = bitcast i64* %arg1 to i32* store i32 0, i32* %16, align 4 %17 = add i64 %2, 4 %18 = inttoptr i64 %17 to i32* store i32 0, i32* %18, align 4 %19 = add i64 %2, 8 %20 = inttoptr i64 %19 to i32* store i32 0, i32* %20, align 4 %21 = add i64 %2, 40 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_13, label LBL_3 LBL_3: %25 = add i64 %2, 48 %26 = inttoptr i64 %25 to i64* store i32 %23, i32* %.reg2mem store i64 0, i64* %.reg2mem50 store i32 0, i32* %storemerge1127.reg2mem br label LBL_4 LBL_4: %storemerge1127.reload = load i32, i32* %storemerge1127.reg2mem %.reload51 = load i64, i64* %.reg2mem50 %.reload = load i32, i32* %.reg2mem %27 = load i64, i64* %26, align 8 %28 = mul nsw i64 %.reload51, 24 %29 = add i64 %27, %28 %30 = add i64 %29, 8 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = icmp eq i32 %32, 0 store i32 %.reload, i32* %.reg2mem56 br i1 %33, label LBL_12, label LBL_5 LBL_5: %34 = inttoptr i64 %29 to i32* %35 = add i64 %29, 16 %36 = inttoptr i64 %35 to i64* %37 = add i64 %29, 4 %38 = inttoptr i64 %37 to i32* store i64 0, i64* %.reg2mem52 store i32 %32, i32* %.reg2mem54 store i32 0, i32* %storemerge1226.reg2mem br label LBL_6 LBL_6: %storemerge1226.reload = load i32, i32* %storemerge1226.reg2mem %.reload55 = load i32, i32* %.reg2mem54 %.reload53 = load i64, i64* %.reg2mem52 %39 = load i64, i64* %36, align 8 %40 = mul i64 %.reload53, 16 %41 = add i64 %39, %40 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %34, align 4 %44 = load i32, i32* %42, align 4 %45 = xor i32 %storemerge1226.reload, 31 %46 = add i32 %45, %.reload55 %47 = add i32 %44, %46 %48 = urem i32 %47, 32 %49 = shl i32 %43, %48 %50 = load i32, i32* %38, align 4 %51 = add i64 %41, 4 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = load i32, i32* %18, align 4 %55 = icmp eq i32 %54, 0 %56 = zext i32 %49 to i64 store i64 %56, i64* %storemerge14.reg2mem br i1 %55, label LBL_8, label LBL_7 LBL_7: %57 = zext i32 %54 to i64 %58 = call i64 @FUNC(i64 %57, i64 %56) store i64 %58, i64* %storemerge14.reg2mem br label LBL_8 LBL_8: %59 = add i32 %53, %46 %60 = urem i32 %59, 32 %61 = shl i32 %50, %60 %storemerge14.reload = load i64, i64* %storemerge14.reg2mem %62 = trunc i64 %storemerge14.reload to i32 store i32 %62, i32* %18, align 4 %63 = load i32, i32* %20, align 4 %64 = icmp eq i32 %63, 0 %65 = zext i32 %61 to i64 store i64 %65, i64* %storemerge13.reg2mem br i1 %64, label LBL_10, label LBL_9 LBL_9: %66 = zext i32 %63 to i64 %67 = call i64 @FUNC(i64 %66, i64 %65) store i64 %67, i64* %storemerge13.reg2mem br label LBL_10 LBL_10: %storemerge13.reload = load i64, i64* %storemerge13.reg2mem %68 = trunc i64 %storemerge13.reload to i32 store i32 %68, i32* %20, align 4 %69 = add i32 %storemerge1226.reload, 1 %70 = load i32, i32* %31, align 4 %71 = zext i32 %70 to i64 %72 = sext i32 %69 to i64 %73 = icmp slt i64 %72, %71 store i64 %72, i64* %.reg2mem52 store i32 %70, i32* %.reg2mem54 store i32 %69, i32* %storemerge1226.reg2mem br i1 %73, label LBL_6, label LBL_11 LBL_11: %.pre = load i32, i32* %22, align 4 store i32 %.pre, i32* %.reg2mem56 br label LBL_12 LBL_12: %.reload57 = load i32, i32* %.reg2mem56 %74 = add i32 %storemerge1127.reload, 1 %75 = zext i32 %.reload57 to i64 %76 = sext i32 %74 to i64 %77 = icmp slt i64 %76, %75 store i32 %.reload57, i32* %.reg2mem store i64 %76, i64* %.reg2mem50 store i32 %74, i32* %storemerge1127.reg2mem br i1 %77, label LBL_4, label LBL_13 LBL_13: %78 = add i64 %2, 12 %79 = inttoptr i64 %78 to i32* %80 = load i32, i32* %79, align 4 %81 = icmp eq i32 %80, 0 %82 = icmp eq i1 %81, false br i1 %82, label LBL_13.LBL_16_crit_edge, label LBL_15 LBL_14: %.pre36 = add i64 %2, 56 %.pre38 = inttoptr i64 %.pre36 to i32* store i32* %.pre38, i32** %.pre-phi39.reg2mem br label LBL_16 LBL_15: %83 = add i64 %2, 140 %84 = inttoptr i64 %83 to i32* %85 = load i32, i32* %84, align 4 %86 = add i64 %2, 56 %87 = inttoptr i64 %86 to i32* store i32 %85, i32* %87, align 4 %88 = add i64 %2, 136 %89 = inttoptr i64 %88 to i32* %90 = load i32, i32* %89, align 4 %91 = add i64 %2, 60 %92 = inttoptr i64 %91 to i32* store i32 %90, i32* %92, align 4 %93 = add i64 %2, 148 %94 = inttoptr i64 %93 to i32* %95 = load i32, i32* %94, align 4 %96 = add i64 %2, 64 %97 = inttoptr i64 %96 to i32* store i32 %95, i32* %97, align 4 %98 = add i64 %2, 144 %99 = inttoptr i64 %98 to i32* %100 = load i32, i32* %99, align 4 %101 = add i64 %2, 68 %102 = inttoptr i64 %101 to i32* store i32 %100, i32* %102, align 4 store i32* %87, i32** %.pre-phi39.reg2mem br label LBL_16 LBL_16: %.pre-phi39.reload = load i32*, i32** %.pre-phi39.reg2mem %103 = load i32, i32* %.pre-phi39.reload, align 4 %104 = add i64 %2, 16 %105 = inttoptr i64 %104 to i32* store i32 %103, i32* %105, align 4 store i32 %103, i32* %.reg2mem68 br label LBL_44 LBL_17: %106 = add i64 %2, 60 %107 = inttoptr i64 %106 to i32* %108 = load i32, i32* %107, align 4 %109 = add i64 %2, 20 %110 = inttoptr i64 %109 to i32* store i32 %108, i32* %110, align 4 store i32 %108, i32* %.reg2mem66 br label LBL_42 LBL_18: %111 = add i64 %2, 72 %112 = inttoptr i64 %111 to i32* %113 = load i32, i32* %112, align 4 %114 = add i64 %2, 24 %115 = inttoptr i64 %114 to i32* store i32 %113, i32* %115, align 4 store i32 %113, i32* %.reg2mem64 br label LBL_40 LBL_19: %116 = add i64 %2, 48 %117 = inttoptr i64 %116 to i64* %118 = load i64, i64* %117, align 8 %119 = sext i32 %.reload65 to i64 %120 = mul nsw i64 %119, 24 %121 = add i64 %118, %120 %122 = inttoptr i64 %121 to i32* %123 = add i64 %2, 80 %124 = inttoptr i64 %123 to i32* %125 = load i32, i32* %124, align 4 %126 = add i64 %2, 28 %127 = inttoptr i64 %126 to i32* store i32 %125, i32* %127, align 4 store i32 %125, i32* %.reg2mem62 store i64 %126, i64* %.pre-phi30.reg2mem store i32* %122, i32** %sv_0.3.reg2mem br label LBL_38 LBL_20: %.pre-phi30.reload = load i64, i64* %.pre-phi30.reg2mem %128 = inttoptr i64 %.pre-phi30.reload to i32* %129 = add i64 %346, 16 %130 = inttoptr i64 %129 to i64* %131 = load i64, i64* %130, align 8 %132 = load i32, i32* %128, align 4 %133 = sext i32 %132 to i64 %134 = mul i64 %133, 16 %135 = add i64 %134, %131 %136 = inttoptr i64 %135 to i32* %137 = load i32, i32* %348, align 4 %138 = sub i32 0, %132 %139 = sub i32 %138, 1 %140 = add i32 %137, %139 %141 = load i32, i32* %sv_0.3.reload, align 4 %142 = urem i32 %140, 32 %143 = shl i32 %141, %142 %rdx.2 = zext i32 %143 to i64 %144 = add i64 %2, 136 %145 = inttoptr i64 %144 to i32* %146 = load i32, i32* %145, align 4 %147 = zext i32 %146 to i64 %148 = call i64 @FUNC(i64 %147, i64 %rdx.2) %149 = add i64 %346, 4 %150 = inttoptr i64 %149 to i32* %151 = load i32, i32* %150, align 4 %152 = shl i32 %151, %142 %rdx.3 = zext i32 %152 to i64 %153 = add i64 %2, 140 %154 = inttoptr i64 %153 to i32* %155 = load i32, i32* %154, align 4 %156 = zext i32 %155 to i64 %157 = call i64 @FUNC(i64 %156, i64 %rdx.3) %158 = load i32, i32* %sv_0.3.reload, align 4 %159 = shl i32 %158, %142 %rdx.4 = zext i32 %159 to i64 %160 = add i64 %2, 144 %161 = inttoptr i64 %160 to i32* %162 = load i32, i32* %161, align 4 %163 = zext i32 %162 to i64 %164 = call i64 @FUNC(i64 %163, i64 %rdx.4) %165 = load i32, i32* %150, align 4 %166 = shl i32 %165, %142 %rdx.5 = zext i32 %166 to i64 %167 = add i64 %2, 148 %168 = inttoptr i64 %167 to i32* %169 = load i32, i32* %168, align 4 %170 = zext i32 %169 to i64 %171 = call i64 @FUNC(i64 %170, i64 %rdx.5) %172 = load i32, i32* %136, align 4 %173 = add i32 %172, %140 %174 = add i64 %135, 4 %175 = inttoptr i64 %174 to i32* %176 = load i32, i32* %175, align 4 %177 = icmp sgt i32 %173, 30 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %177, label LBL_37, label LBL_21 LBL_21: %178 = add i32 %176, %140 %179 = load i32, i32* %sv_0.3.reload, align 4 %180 = urem i32 %173, 32 %181 = shl i32 %179, %180 %182 = ashr i32 %181, %180 %183 = icmp eq i32 %179, %182 %184 = icmp eq i1 %183, false %185 = icmp sgt i32 %178, 30 %or.cond = or i1 %185, %184 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %or.cond, label LBL_37, label LBL_22 LBL_22: %186 = load i32, i32* %150, align 4 %187 = urem i32 %178, 32 %188 = shl i32 %186, %187 %189 = ashr i32 %188, %187 %190 = icmp eq i32 %189, %186 %191 = icmp eq i1 %190, false store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %191, label LBL_37, label LBL_23 LBL_23: %192 = icmp eq i32 %142, 0 %193 = trunc i64 %157 to i32 %194 = add i64 %2, 16 %195 = inttoptr i64 %194 to i32* %196 = load i32, i32* %195, align 4 %197 = zext i32 %196 to i64 %rsi.0 = zext i32 %188 to i64 %198 = ashr i32 %196, 31 %199 = zext i32 %198 to i64 %200 = mul i64 %199, 4294967296 %201 = or i64 %200, %197 %202 = srem i64 %201, %rsi.0 %203 = trunc i64 %202 to i32 %204 = icmp eq i32 %203, 0 br i1 %204, label LBL_26, label LBL_24 LBL_24: %205 = load i32, i32* %154, align 4 %206 = icmp eq i32 %196, %205 %207 = icmp eq i1 %206, false store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %207, label LBL_37, label LBL_25 LBL_25: %208 = and i64 %157, 4294967295 %209 = shl i32 %193, %142 %210 = zext i32 %209 to i64 %rdx.10 = select i1 %192, i64 %208, i64 %210 %211 = shl i32 1, %187 %storemerge = zext i32 %211 to i64 %212 = trunc i64 %rdx.10 to i32 %213 = ashr i32 %212, 31 %214 = zext i32 %213 to i64 %215 = mul i64 %214, 4294967296 %216 = or i64 %215, %rdx.10 %217 = srem i64 %216, %storemerge %218 = trunc i64 %217 to i32 %219 = icmp eq i32 %218, 0 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %219, label LBL_37, label LBL_26 LBL_26: %220 = trunc i64 %148 to i32 %221 = add i64 %2, 20 %222 = inttoptr i64 %221 to i32* %223 = load i32, i32* %222, align 4 %224 = zext i32 %223 to i64 %rsi.1 = zext i32 %181 to i64 %225 = ashr i32 %223, 31 %226 = zext i32 %225 to i64 %227 = mul i64 %226, 4294967296 %228 = or i64 %227, %224 %229 = srem i64 %228, %rsi.1 %230 = trunc i64 %229 to i32 %231 = icmp eq i32 %230, 0 br i1 %231, label LBL_29, label LBL_27 LBL_27: %232 = load i32, i32* %145, align 4 %233 = icmp eq i32 %223, %232 %234 = icmp eq i1 %233, false store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %234, label LBL_37, label LBL_28 LBL_28: %235 = and i64 %148, 4294967295 %236 = shl i32 %220, %142 %237 = zext i32 %236 to i64 %rdx.11 = select i1 %192, i64 %235, i64 %237 %238 = shl i32 1, %180 %storemerge9 = zext i32 %238 to i64 %239 = trunc i64 %rdx.11 to i32 %240 = ashr i32 %239, 31 %241 = zext i32 %240 to i64 %242 = mul i64 %241, 4294967296 %243 = or i64 %242, %rdx.11 %244 = srem i64 %243, %storemerge9 %245 = trunc i64 %244 to i32 %246 = icmp eq i32 %245, 0 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %246, label LBL_37, label LBL_29 LBL_29: %247 = add i64 %135, 8 %248 = inttoptr i64 %247 to i32* %249 = load i32, i32* %248, align 4 %250 = icmp eq i32 %249, 0 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %250, label LBL_37, label LBL_30 LBL_30: %251 = trunc i64 %164 to i32 %252 = trunc i64 %171 to i32 %253 = add i64 %135, 12 %254 = inttoptr i64 %253 to i32* %255 = load i32, i32* %254, align 4 %256 = icmp eq i32 %255, 0 %257 = icmp eq i32 %220, %251 %or.cond21 = or i1 %257, %256 %258 = icmp eq i32 %193, %252 %or.cond22 = or i1 %258, %or.cond21 store i32* %128, i32** %.pre-phi43.reg2mem store i64 %.pre-phi30.reload, i64* %.pre-phi41.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem br i1 %or.cond22, label LBL_37, label LBL_31 LBL_31: %259 = zext i32 %172 to i64 %260 = shl i32 %179, %142 %rdx.12 = zext i32 %260 to i64 %261 = call i64 @FUNC(i64 %224, i64 %rdx.12) %262 = and i64 %261, 4294967295 %263 = call i64 @FUNC(i64 %262, i64 %259) %264 = trunc i64 %263 to i32 %265 = load i32, i32* %136, align 4 %266 = zext i32 %265 to i64 %267 = and i64 %148, 4294967295 %268 = call i64 @FUNC(i64 %267, i64 %266) %269 = trunc i64 %268 to i32 %270 = sub i32 %264, %269 %271 = load i32, i32* %175, align 4 %272 = zext i32 %271 to i64 %273 = load i32, i32* %150, align 4 %274 = shl i32 %273, %142 %rdx.13 = zext i32 %274 to i64 %275 = load i32, i32* %195, align 4 %276 = zext i32 %275 to i64 %277 = call i64 @FUNC(i64 %276, i64 %rdx.13) %278 = and i64 %277, 4294967295 %279 = call i64 @FUNC(i64 %278, i64 %272) %280 = load i32, i32* %175, align 4 %281 = zext i32 %280 to i64 %282 = and i64 %157, 4294967295 %283 = call i64 @FUNC(i64 %282, i64 %281) %284 = sub i64 %279, %283 %285 = load i32, i32* %248, align 4 %286 = trunc i64 %284 to i32 %287 = mul i32 %285, %286 %288 = add i32 %270, %287 %289 = add i64 %2, 32 %290 = inttoptr i64 %289 to i32* store i32 %288, i32* %290, align 4 %291 = add i64 %2, 88 %292 = inttoptr i64 %291 to i32* %293 = load i32, i32* %292, align 4 %294 = add i64 %2, 36 %295 = inttoptr i64 %294 to i32* store i32 %293, i32* %295, align 4 store i32 %293, i32* %.reg2mem60 store i64 %294, i64* %.pre-phi31.reg2mem store i32* %sv_0.3.reload, i32** %sv_0.1.reg2mem br label LBL_35 LBL_32: %.pre-phi31.reload = load i64, i64* %.pre-phi31.reg2mem %296 = inttoptr i64 %.pre-phi31.reload to i32* %297 = add i64 %2, 104 %298 = inttoptr i64 %297 to i64* %299 = load i64, i64* %298, align 8 %300 = sext i32 %.reload61 to i64 %301 = mul i64 %299, %300 %302 = add i64 %2, 28 %303 = inttoptr i64 %302 to i32* %304 = load i32, i32* %303, align 4 %305 = add i64 %2, 112 %306 = inttoptr i64 %305 to i64* %307 = load i64, i64* %306, align 8 %308 = sext i32 %304 to i64 %309 = mul i64 %307, %308 %310 = add i64 %309, %301 %311 = add i64 %2, 24 %312 = inttoptr i64 %311 to i32* %313 = load i32, i32* %312, align 4 %314 = add i64 %2, 120 %315 = inttoptr i64 %314 to i64* %316 = load i64, i64* %315, align 8 %317 = sext i32 %313 to i64 %318 = mul i64 %316, %317 %319 = add i64 %310, %318 %320 = add i64 %2, 32 %321 = inttoptr i64 %320 to i32* %322 = load i32, i32* %321, align 4 %323 = add i64 %2, 128 %324 = inttoptr i64 %323 to i64* %325 = load i64, i64* %324, align 8 %326 = sext i32 %322 to i64 %327 = mul i64 %325, %326 %328 = add i64 %319, %327 %329 = add i64 %2, 96 %330 = inttoptr i64 %329 to i64* %331 = load i64, i64* %330, align 8 %332 = mul i64 %328, 4 %333 = add i64 %332, %331 %334 = inttoptr i64 %333 to i32* %335 = load i32, i32* %334, align 4 %336 = icmp eq i32 %335, 0 %337 = icmp eq i1 %336, false store i32 %.reload61, i32* %.reg2mem58 store i32* %296, i32** %.pre-phi35.reg2mem store i64 %.pre-phi31.reload, i64* %.pre-phi33.reg2mem store i32* %sv_0.1.reload, i32** %sv_0.0.reg2mem br i1 %337, label LBL_34, label LBL_33 LBL_33: store i32 1, i32* %334, align 4 store i64 1, i64* %storemerge10.reg2mem br label LBL_45 LBL_34: %sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem %.pre-phi33.reload = load i64, i64* %.pre-phi33.reg2mem %.pre-phi35.reload = load i32*, i32** %.pre-phi35.reg2mem %.reload59 = load i32, i32* %.reg2mem58 %338 = add i32 %.reload59, 1 store i32 %338, i32* %.pre-phi35.reload, align 4 store i32 %338, i32* %.reg2mem60 store i64 %.pre-phi33.reload, i64* %.pre-phi31.reg2mem store i32* %sv_0.0.reload, i32** %sv_0.1.reg2mem br label LBL_35 LBL_35: %sv_0.1.reload = load i32*, i32** %sv_0.1.reg2mem %.reload61 = load i32, i32* %.reg2mem60 %339 = add i64 %2, 92 %340 = inttoptr i64 %339 to i32* %341 = load i32, i32* %340, align 4 %342 = icmp ult i32 %.reload61, %341 br i1 %342, label LBL_32, label LBL_35.LBL_37_crit_edge LBL_36: %.pre40 = add i64 %2, 28 %.pre42 = inttoptr i64 %.pre40 to i32* store i32* %.pre42, i32** %.pre-phi43.reg2mem store i64 %.pre40, i64* %.pre-phi41.reg2mem store i32* %sv_0.1.reload, i32** %sv_0.2.reg2mem br label LBL_37 LBL_37: %sv_0.2.reload = load i32*, i32** %sv_0.2.reg2mem %.pre-phi41.reload = load i64, i64* %.pre-phi41.reg2mem %.pre-phi43.reload = load i32*, i32** %.pre-phi43.reg2mem %343 = load i32, i32* %.pre-phi43.reload, align 4 %344 = add i32 %343, 1 store i32 %344, i32* %.pre-phi43.reload, align 4 store i32 %344, i32* %.reg2mem62 store i64 %.pre-phi41.reload, i64* %.pre-phi30.reg2mem store i32* %sv_0.2.reload, i32** %sv_0.3.reg2mem br label LBL_38 LBL_38: %sv_0.3.reload = load i32*, i32** %sv_0.3.reg2mem %.reload63 = load i32, i32* %.reg2mem62 %345 = zext i32 %.reload63 to i64 %346 = ptrtoint i32* %sv_0.3.reload to i64 %347 = add i64 %346, 8 %348 = inttoptr i64 %347 to i32* %349 = load i32, i32* %348, align 4 %350 = add i64 %2, 84 %351 = inttoptr i64 %350 to i32* %352 = load i32, i32* %351, align 4 %353 = zext i32 %349 to i64 %354 = zext i32 %352 to i64 %355 = call i64 @FUNC(i64 %354, i64 %353) %356 = icmp sgt i64 %355, %345 br i1 %356, label LBL_20, label LBL_39 LBL_39: %357 = add i64 %2, 24 %358 = inttoptr i64 %357 to i32* %359 = load i32, i32* %358, align 4 %360 = add i32 %359, 1 store i32 %360, i32* %358, align 4 store i32 %360, i32* %.reg2mem64 br label LBL_40 LBL_40: %.reload65 = load i32, i32* %.reg2mem64 %361 = add i64 %2, 76 %362 = inttoptr i64 %361 to i32* %363 = load i32, i32* %362, align 4 %364 = icmp ult i32 %.reload65, %363 br i1 %364, label LBL_19, label LBL_41 LBL_41: %365 = add i64 %2, 20 %366 = inttoptr i64 %365 to i32* %367 = load i32, i32* %366, align 4 %368 = add i64 %2, 4 %369 = inttoptr i64 %368 to i32* %370 = load i32, i32* %369, align 4 %371 = ashr i32 %367, 31 %372 = zext i32 %367 to i64 %373 = zext i32 %371 to i64 %374 = mul i64 %373, 4294967296 %375 = or i64 %374, %372 %376 = zext i32 %370 to i64 %377 = srem i64 %375, %376 %378 = trunc i64 %377 to i32 %379 = add i32 %370, %367 %380 = sub i32 %379, %378 store i32 %380, i32* %366, align 4 store i32 %380, i32* %.reg2mem66 br label LBL_42 LBL_42: %.reload67 = load i32, i32* %.reg2mem66 %381 = add i64 %2, 68 %382 = inttoptr i64 %381 to i32* %383 = load i32, i32* %382, align 4 %384 = icmp ult i32 %.reload67, %383 br i1 %384, label LBL_18, label LBL_43 LBL_43: %385 = add i64 %2, 16 %386 = inttoptr i64 %385 to i32* %387 = load i32, i32* %386, align 4 %388 = add i64 %2, 8 %389 = inttoptr i64 %388 to i32* %390 = load i32, i32* %389, align 4 %391 = ashr i32 %387, 31 %392 = zext i32 %387 to i64 %393 = zext i32 %391 to i64 %394 = mul i64 %393, 4294967296 %395 = or i64 %394, %392 %396 = zext i32 %390 to i64 %397 = srem i64 %395, %396 %398 = trunc i64 %397 to i32 %399 = add i32 %390, %387 %400 = sub i32 %399, %398 store i32 %400, i32* %386, align 4 store i32 %400, i32* %.reg2mem68 br label LBL_44 LBL_44: %.reload69 = load i32, i32* %.reg2mem68 %401 = add i64 %2, 64 %402 = inttoptr i64 %401 to i32* %403 = load i32, i32* %402, align 4 %404 = icmp ult i32 %.reload69, %403 store i64 0, i64* %storemerge10.reg2mem br i1 %404, label LBL_17, label LBL_45 LBL_45: %storemerge10.reload = load i64, i64* %storemerge10.reg2mem ret i64 %storemerge10.reload uselistorder i32 %387, { 0, 2, 1 } uselistorder i32 %367, { 0, 2, 1 } uselistorder i32 %.reload65, { 1, 0 } uselistorder i32* %348, { 1, 0 } uselistorder i64 %346, { 2, 1, 0 } uselistorder i32* %sv_0.3.reload, { 0, 1, 2, 11, 3, 12, 13, 9, 10, 7, 8, 5, 6, 4 } uselistorder i32 %.reload61, { 1, 0, 2 } uselistorder i64 %.pre-phi31.reload, { 1, 0 } uselistorder i64 %224, { 1, 0 } uselistorder i1 %192, { 1, 0 } uselistorder i32 %187, { 2, 1, 0 } uselistorder i32 %180, { 2, 1, 0 } uselistorder i32 %172, { 1, 0 } uselistorder i32 %142, { 6, 5, 7, 8, 0, 4, 3, 2, 1 } uselistorder i32 %140, { 1, 2, 0 } uselistorder i32* %128, { 7, 8, 5, 6, 3, 4, 0, 1, 2, 9 } uselistorder i64 %.pre-phi30.reload, { 2, 1, 4, 3, 6, 5, 9, 8, 7, 0 } uselistorder i32 %.reload57, { 1, 0 } uselistorder i64 %65, { 1, 0 } uselistorder i64 %56, { 1, 0 } uselistorder i32* %31, { 1, 0 } uselistorder i64 %29, { 0, 1, 3, 2 } uselistorder i64 %2, { 40, 37, 36, 35, 33, 32, 31, 9, 28, 0, 11, 10, 17, 18, 15, 16, 13, 14, 12, 20, 19, 21, 22, 23, 24, 25, 26, 27, 30, 29, 34, 38, 39, 41, 42, 43, 4, 3, 6, 5, 8, 7, 47, 48, 1, 45, 46, 44, 49, 50, 2, 51, 52 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem50, { 1, 0, 2 } uselistorder i32* %storemerge1127.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem52, { 1, 0, 2 } uselistorder i32* %.reg2mem54, { 1, 0, 2 } uselistorder i32* %storemerge1226.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge14.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge13.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem58, { 0, 2, 1 } uselistorder i32** %.pre-phi35.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi33.reg2mem, { 0, 2, 1 } uselistorder i32** %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi31.reg2mem, { 1, 0, 2 } uselistorder i32** %.pre-phi43.reg2mem, { 0, 10, 8, 9, 6, 7, 4, 5, 1, 2, 3 } uselistorder i64* %.pre-phi41.reg2mem, { 0, 10, 8, 9, 6, 7, 4, 5, 1, 2, 3 } uselistorder i32** %sv_0.2.reg2mem, { 0, 10, 8, 9, 6, 7, 4, 5, 1, 2, 3 } uselistorder i64* %.pre-phi30.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem68, { 0, 2, 1 } uselistorder i64 32, { 1, 0 } uselistorder i64 (i64, i64)* @int_floordivpow2, { 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @int_ceildiv, { 5, 4, 3, 2, 1, 0 } uselistorder i64 28, { 0, 2, 1 } uselistorder i64 20, { 2, 1, 0 } uselistorder i64 56, { 1, 0 } uselistorder i64 (i64, i64)* @int_min, { 2, 1, 0 } uselistorder i32 31, { 5, 6, 1, 2, 3, 4, 0, 7 } uselistorder i64 36, { 1, 0 } uselistorder i64 24, { 4, 5, 1, 3, 0, 2, 6 } uselistorder i1 false, { 4, 0, 1, 2, 3, 5, 6 } uselistorder label LBL_42, { 1, 0 } uselistorder label LBL_40, { 1, 0 } uselistorder label LBL_38, { 1, 0 } uselistorder label LBL_37, { 0, 2, 1, 4, 3, 6, 5, 9, 8, 7 } uselistorder label LBL_35, { 1, 0 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
mp3_write_packet_383
mp3_write_packet
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = trunc i64 %3 to i32 %9 = inttoptr i64 %7 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, %8 %12 = icmp eq i1 %11, false br i1 %12, label LBL_10, label LBL_1 LBL_1: %13 = add i64 %7, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_9, label LBL_2 LBL_2: %17 = call i64 @FUNC(i64 16) store i64 %17, i64* %sv_0, align 8 %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %19, label LBL_3, label LBL_18 LBL_3: %20 = ptrtoint i32* %arg2 to i64 %21 = call i64 @FUNC(i64 %17, i64 %20) %22 = trunc i64 %21 to i32 %23 = icmp slt i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = call i64 @FUNC(i64* nonnull %sv_0) %26 = and i64 %21, 4294967295 store i64 %26, i64* %rax.0.reg2mem br label LBL_18 LBL_5: %27 = add i64 %7, 16 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = icmp eq i64 %29, 0 br i1 %30, label LBL_7, label LBL_6 LBL_6: %31 = add i64 %29, 8 %32 = inttoptr i64 %31 to i64* store i64 %17, i64* %32, align 8 br label LBL_8 LBL_7: %33 = add i64 %7, 8 %34 = inttoptr i64 %33 to i64* store i64 %17, i64* %34, align 8 br label LBL_8 LBL_8: %35 = load i64, i64* %sv_0, align 8 store i64 %35, i64* %28, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_9: %36 = ptrtoint i32* %arg2 to i64 %37 = call i64 @FUNC(i64 %4, i64 %36) store i64 %37, i64* %rax.0.reg2mem br label LBL_18 LBL_10: %sext = mul i64 %3, 4294967296 %38 = ashr exact i64 %sext, 29 %39 = add i64 %38, %4 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = icmp eq i32 %43, 1 %45 = icmp eq i1 %44, false br i1 %45, label LBL_12, label LBL_11 LBL_11: %46 = and i64 %3, 4294967295 %47 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i64 %46, i64 %2, i64 %1) br label LBL_12 LBL_12: %48 = add i64 %7, 4 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = icmp eq i32 %50, 0 store i64 0, i64* %rax.0.reg2mem br i1 %51, label LBL_18, label LBL_13 LBL_13: %52 = load i64, i64* %40, align 8 %53 = inttoptr i64 %52 to i32* %54 = load i32, i32* %53, align 4 %55 = icmp slt i32 %54, 1 store i64 0, i64* %rax.0.reg2mem br i1 %55, label LBL_14, label LBL_18 LBL_14: %56 = add i64 %7, 24 %57 = ptrtoint i32* %arg2 to i64 %58 = call i64 @FUNC(i64 %4, i64 %56, i64 %57) %59 = trunc i64 %58 to i32 %60 = icmp slt i32 %59, 0 %61 = icmp eq i1 %60, false br i1 %61, label LBL_16, label LBL_15 LBL_15: %62 = and i64 %58, 4294967295 store i64 %62, i64* %rax.0.reg2mem br label LBL_18 LBL_16: %63 = load i32, i32* %49, align 4 %64 = add i32 %63, -1 store i32 %64, i32* %49, align 4 %65 = icmp eq i32 %64, 0 %66 = icmp eq i1 %65, false store i64 0, i64* %rax.0.reg2mem br i1 %66, label LBL_18, label LBL_17 LBL_17: %67 = call i64 @FUNC(i64 %4) %68 = trunc i64 %67 to i32 %69 = icmp slt i32 %68, 0 %70 = icmp eq i1 %69, false %71 = and i64 %67, 4294967295 %spec.select = select i1 %70, i64 0, i64 %71 ret i64 %spec.select LBL_18: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %49, { 1, 0, 2 } uselistorder i64 %7, { 3, 2, 1, 0, 4, 5 } uselistorder i64* %sv_0, { 1, 0, 2 } uselistorder i64 %4, { 3, 4, 2, 0, 1, 5 } uselistorder i64 %3, { 1, 2, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 8, 4, 3, 7, 1, 6, 5 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder i32* %arg2, { 2, 1, 0 } uselistorder label LBL_18, { 1, 5, 3, 2, 6, 0, 7, 4 } }
0
BinRealVul
mp_copy_18827
mp_copy
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem23 = alloca i32 %sv_0.02.reg2mem = alloca i32 %rbx.13.reg2mem = alloca i64 %storemerge.lcssa.reg2mem = alloca i32 %rbx.0.lcssa.reg2mem = alloca i64 %.reg2mem21 = alloca i32 %.reg2mem19 = alloca i32 %.pre-phi.reg2mem = alloca i32* %.reg2mem17 = alloca i64 %rbx.04.reg2mem = alloca i64 %r12.05.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i32 %.reg2mem15 = alloca i64 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = load i64, i64* %0 %3 = bitcast i64* %arg2 to i32* %4 = icmp eq i32* %3, %arg1 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_14 LBL_1: %6 = ptrtoint i64* %arg2 to i64 %7 = trunc i64 %1 to i32 %8 = add i64 %6, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = bitcast i64* %rdi to i32* %12 = icmp ult i32 %10, %7 br i1 %12, label LBL_2, label LBL_5 LBL_2: %13 = and i64 %1, 4294967295 %14 = call i64 @FUNC(i64 %6, i64 %13) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_3, label LBL_4 LBL_3: %17 = ptrtoint i32* %arg1 to i64 %18 = add i64 %6, 16 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 store i64 %20, i64* %.reg2mem store i64 %17, i64* %.reg2mem15 br label LBL_7 LBL_4: %21 = and i64 %14, 4294967295 store i64 %21, i64* %rax.0.reg2mem br label LBL_14 LBL_5: %22 = ptrtoint i32* %arg1 to i64 %23 = add i64 %6, 16 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = icmp eq i32 %7, 0 store i64 %25, i64* %.reg2mem store i64 %22, i64* %.reg2mem15 br i1 %26, label LBL_5.LBL_10_crit_edge, label LBL_7 LBL_6: %27 = trunc i64 %2 to i32 %.pre10 = bitcast i64* %rsi to i32* store i64 %22, i64* %.reg2mem17 store i32* %.pre10, i32** %.pre-phi.reg2mem store i32 0, i32* %.reg2mem19 store i32 %27, i32* %.reg2mem21 store i64 %25, i64* %rbx.0.lcssa.reg2mem store i32 0, i32* %storemerge.lcssa.reg2mem br label LBL_10 LBL_7: %.reload16 = load i64, i64* %.reg2mem15 %.reload = load i64, i64* %.reg2mem %28 = add i64 %.reload16, 16 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 store i32 0, i32* %storemerge6.reg2mem store i64 %30, i64* %r12.05.reg2mem store i64 %.reload, i64* %rbx.04.reg2mem br label LBL_8 LBL_8: %rbx.04.reload = load i64, i64* %rbx.04.reg2mem %r12.05.reload = load i64, i64* %r12.05.reg2mem %storemerge6.reload = load i32, i32* %storemerge6.reg2mem %31 = add i64 %r12.05.reload, 8 %32 = add i64 %rbx.04.reload, 8 %33 = inttoptr i64 %r12.05.reload to i64* %34 = load i64, i64* %33, align 8 %35 = inttoptr i64 %rbx.04.reload to i64* store i64 %34, i64* %35, align 8 %36 = add i32 %storemerge6.reload, 1 %37 = load i32, i32* %11, align 8 %38 = zext i32 %37 to i64 %39 = sext i32 %36 to i64 %40 = icmp slt i64 %39, %38 store i32 %36, i32* %storemerge6.reg2mem store i64 %31, i64* %r12.05.reg2mem store i64 %32, i64* %rbx.04.reg2mem br i1 %40, label LBL_8, label LBL_9 LBL_9: %.phi.trans.insert = bitcast i64* %rsi to i32* %.pre = load i32, i32* %.phi.trans.insert, align 8 store i64 %.reload16, i64* %.reg2mem17 store i32* %.phi.trans.insert, i32** %.pre-phi.reg2mem store i32 %37, i32* %.reg2mem19 store i32 %.pre, i32* %.reg2mem21 store i64 %32, i64* %rbx.0.lcssa.reg2mem store i32 %36, i32* %storemerge.lcssa.reg2mem br label LBL_10 LBL_10: %storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem %rbx.0.lcssa.reload = load i64, i64* %rbx.0.lcssa.reg2mem %.reload22 = load i32, i32* %.reg2mem21 %.reload20 = load i32, i32* %.reg2mem19 %.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem %.reload18 = load i64, i64* %.reg2mem17 %41 = zext i32 %.reload22 to i64 %42 = sext i32 %storemerge.lcssa.reload to i64 %43 = icmp slt i64 %42, %41 store i64 %rbx.0.lcssa.reload, i64* %rbx.13.reg2mem store i32 %storemerge.lcssa.reload, i32* %sv_0.02.reg2mem store i32 %.reload20, i32* %.reg2mem23 br i1 %43, label LBL_11, label LBL_13 LBL_11: %sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem %rbx.13.reload = load i64, i64* %rbx.13.reg2mem %44 = add i64 %rbx.13.reload, 8 %45 = inttoptr i64 %rbx.13.reload to i64* store i64 0, i64* %45, align 8 %46 = add i32 %sv_0.02.reload, 1 %47 = load i32, i32* %.pre-phi.reload, align 8 %48 = zext i32 %47 to i64 %49 = sext i32 %46 to i64 %50 = icmp slt i64 %49, %48 store i64 %44, i64* %rbx.13.reg2mem store i32 %46, i32* %sv_0.02.reg2mem br i1 %50, label LBL_11, label LBL_12 LBL_12: %.pre9 = load i32, i32* %11, align 8 store i32 %.pre9, i32* %.reg2mem23 br label LBL_13 LBL_13: %.reload24 = load i32, i32* %.reg2mem23 store i32 %.reload24, i32* %3, align 4 %51 = add i64 %.reload18, 8 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = add i64 %6, 8 %55 = inttoptr i64 %54 to i32* store i32 %53, i32* %55, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %6, { 1, 2, 0, 3, 4 } uselistorder i64* %rsi, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 } uselistorder i64* %r12.05.reg2mem, { 1, 0, 2 } uselistorder i64* %rbx.04.reg2mem, { 1, 0, 2 } uselistorder i64* %rbx.13.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem23, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 16, { 2, 1, 0, 3 } uselistorder i64 4294967295, { 2, 1, 0 } uselistorder i64* %arg2, { 1, 0 } uselistorder i32* %arg1, { 1, 0, 2 } uselistorder label LBL_14, { 1, 2, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
GetXMLTreeChild_8506
GetXMLTreeChild
define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i8* %sv_0.03.reg2mem = alloca i8* %.reg2mem10 = alloca i64 %.reg2mem8 = alloca i64 %.reg2mem6 = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false %3 = trunc i64 %0 to i32 store i64 %0, i64* %.reg2mem store i32 %3, i32* %.reg2mem6 br i1 %2, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([33 x i8]* @gv_0 to i64), i64* %.reg2mem store i32 ptrtoint ([33 x i8]* @gv_0 to i32), i32* %.reg2mem6 br label LBL_2 LBL_2: %.reload7 = load i32, i32* %.reg2mem6 %.reload = load i64, i64* %.reg2mem %4 = add i64 %0, 24 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 305419896 %8 = icmp eq i32 %.reload7, 305419896 %or.cond = or i1 %8, %7 store i64 %.reload, i64* %.reg2mem8 br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([103 x i8]* @gv_3 to i64), i64* %.reg2mem8 br label LBL_4 LBL_4: %.reload9 = load i64, i64* %.reg2mem8 %9 = add i64 %0, 28 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 store i64 %.reload9, i64* %.reg2mem10 br i1 %12, label LBL_6, label LBL_5 LBL_5: %13 = call i64 @FUNC() %14 = call i64 @FUNC(i64 1, i64 %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0)) store i64 1, i64* %.reg2mem10 br label LBL_6 LBL_6: %.reload11 = load i64, i64* %.reg2mem10 %15 = inttoptr i64 %.reload11 to i8* %16 = icmp eq i8* %arg2, null store i8* %15, i8** %sv_0.1.reg2mem br i1 %16, label LBL_10, label LBL_7 LBL_7: %17 = icmp eq i64 %.reload11, 0 store i8* %15, i8** %sv_0.03.reg2mem store i8* null, i8** %sv_0.1.reg2mem br i1 %17, label LBL_10, label LBL_9 LBL_8: %18 = add i64 %23, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i8* %22 = icmp eq i64 %20, 0 store i8* %21, i8** %sv_0.03.reg2mem store i8* null, i8** %sv_0.1.reg2mem br i1 %22, label LBL_10, label LBL_9 LBL_9: %sv_0.03.reload = load i8*, i8** %sv_0.03.reg2mem %23 = ptrtoint i8* %sv_0.03.reload to i64 %24 = add i64 %23, 16 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = inttoptr i64 %26 to i8* %28 = call i32 @strcmp(i8* %27, i8* nonnull %arg2) %29 = icmp eq i32 %28, 0 %30 = icmp eq i1 %29, false store i8* %sv_0.03.reload, i8** %sv_0.1.reg2mem br i1 %30, label LBL_8, label LBL_10 LBL_10: %sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem %31 = ptrtoint i8* %sv_0.1.reload to i64 ret i64 %31 uselistorder i64 %23, { 1, 0 } uselistorder i8* %15, { 1, 0 } uselistorder i64 %0, { 2, 3, 0, 1 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem6, { 0, 2, 1 } uselistorder i64* %.reg2mem8, { 0, 2, 1 } uselistorder i64* %.reg2mem10, { 0, 2, 1 } uselistorder i8** %sv_0.03.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 } uselistorder [103 x i8]* @gv_3, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder [33 x i8]* @gv_0, { 0, 2, 1 } uselistorder label LBL_10, { 1, 0, 2, 3 } uselistorder label LBL_9, { 1, 0 } }
0
BinRealVul
copy_chapters_3022
copy_chapters
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.2.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %storemerge4.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %rdi.35.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %1, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = add i32 %7, %4 %9 = sext i32 %8 to i64 %10 = mul i64 %9, 8 %11 = call i64 @FUNC(i64 %0, i64 %10) %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %13, label LBL_1, label LBL_13 LBL_1: store i64 %11, i64* %arg2, align 8 %14 = load i32, i32* %3, align 4 %15 = icmp eq i32 %14, 0 store i64 0, i64* %rax.0.reg2mem br i1 %15, label LBL_13, label LBL_2 LBL_2: %16 = inttoptr i64 %5 to i64* %17 = inttoptr i64 %2 to i64* %18 = add i64 %0, 16 %19 = inttoptr i64 %18 to i64* %20 = trunc i64 %arg3 to i32 %21 = icmp eq i32 %20, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge6.reg2mem store i64 %0, i64* %rdi.35.reg2mem br label LBL_3 LBL_3: %rdi.35.reload = load i64, i64* %rdi.35.reg2mem %storemerge6.reload = load i32, i32* %storemerge6.reg2mem %.reload = load i64, i64* %.reg2mem %22 = mul i64 %.reload, 8 %23 = add i64 %rdi.35.reload, %22 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = load i64, i64* %16, align 8 %27 = load i64, i64* %17, align 8 %28 = sub i64 %26, %27 %29 = add i64 %25, 4 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %28, i64 4294967296000001, i64 %31) %33 = load i64, i64* %19, align 8 %34 = icmp eq i64 %33, 9223372036854775807 store i64 %28, i64* %rdi.0.reg2mem store i64 9223372036854775807, i64* %storemerge4.reg2mem br i1 %34, label LBL_5, label LBL_4 LBL_4: %35 = load i64, i64* %30, align 8 %36 = call i64 @FUNC(i64 %33, i64 4294967296000001, i64 %35) store i64 %33, i64* %rdi.0.reg2mem store i64 %36, i64* %storemerge4.reg2mem br label LBL_5 LBL_5: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %37 = add i64 %25, 24 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = icmp sgt i64 %32, %39 store i64 %rdi.0.reload, i64* %rdi.2.reg2mem br i1 %40, label LBL_12, label LBL_6 LBL_6: %storemerge4.reload = load i64, i64* %storemerge4.reg2mem %41 = icmp eq i64 %storemerge4.reload, 9223372036854775807 br i1 %41, label LBL_8, label LBL_7 LBL_7: %42 = add i64 %25, 16 %43 = inttoptr i64 %42 to i64* %44 = load i64, i64* %43, align 8 %45 = add i64 %storemerge4.reload, %32 %46 = icmp sgt i64 %44, %45 store i64 0, i64* %rax.0.reg2mem br i1 %46, label LBL_13, label LBL_8 LBL_8: %47 = call i64 @FUNC(i64 40) %48 = icmp eq i64 %47, 0 %49 = icmp eq i1 %48, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %49, label LBL_9, label LBL_13 LBL_9: %50 = inttoptr i64 %25 to i32* %51 = inttoptr i64 %47 to i32* %52 = load i32, i32* %50, align 4 store i32 %52, i32* %51, align 4 %53 = load i64, i64* %30, align 8 %54 = add i64 %47, 4 %55 = inttoptr i64 %54 to i64* store i64 %53, i64* %55, align 8 %56 = add i64 %25, 16 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = sub i64 %58, %32 %60 = icmp slt i64 %59, 0 %61 = icmp eq i1 %60, false %62 = select i1 %61, i64 %59, i64 0 %63 = add i64 %47, 16 %64 = inttoptr i64 %63 to i64* store i64 %62, i64* %64, align 8 %65 = load i64, i64* %38, align 8 %66 = sub i64 %65, %32 %67 = sub i64 %66, %storemerge4.reload %68 = xor i64 %66, %storemerge4.reload %69 = xor i64 %67, %66 %70 = and i64 %69, %68 %71 = icmp slt i64 %70, 0 %72 = icmp eq i64 %67, 0 %73 = icmp slt i64 %67, 0 %74 = icmp eq i1 %73, %71 %75 = icmp eq i1 %72, false %76 = icmp eq i1 %74, %75 %77 = select i1 %76, i64 %storemerge4.reload, i64 %66 %78 = add i64 %47, 24 %79 = inttoptr i64 %78 to i64* store i64 %77, i64* %79, align 8 store i64 4294967296000001, i64* %rsi.1.reg2mem store i64 40, i64* %rdi.1.reg2mem br i1 %21, label LBL_11, label LBL_10 LBL_10: %80 = add i64 %25, 32 %81 = inttoptr i64 %80 to i64* %82 = load i64, i64* %81, align 8 %83 = add i64 %47, 32 %84 = call i64 @FUNC(i64 %83, i64 %82, i64 0) store i64 %82, i64* %rsi.1.reg2mem store i64 %83, i64* %rdi.1.reg2mem br label LBL_11 LBL_11: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %85 = load i32, i32* %6, align 4 %86 = add i32 %85, 1 store i32 %86, i32* %6, align 4 %87 = sext i32 %85 to i64 %88 = mul i64 %87, 8 %89 = add i64 %88, %rsi.1.reload %90 = inttoptr i64 %89 to i64* store i64 %47, i64* %90, align 8 store i64 %rdi.1.reload, i64* %rdi.2.reg2mem br label LBL_12 LBL_12: %rdi.2.reload = load i64, i64* %rdi.2.reg2mem %91 = add i32 %storemerge6.reload, 1 %92 = load i32, i32* %3, align 4 %93 = zext i32 %92 to i64 %94 = sext i32 %91 to i64 %95 = icmp slt i64 %94, %93 store i64 %94, i64* %.reg2mem store i32 %91, i32* %storemerge6.reg2mem store i64 %rdi.2.reload, i64* %rdi.35.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %95, label LBL_3, label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %67, { 1, 2, 0 } uselistorder i64 %66, { 3, 0, 1, 2 } uselistorder i64 %59, { 1, 0 } uselistorder i64 %storemerge4.reload, { 2, 4, 1, 3, 0 } uselistorder i64 %32, { 1, 2, 0, 3 } uselistorder i64* %30, { 1, 0, 2 } uselistorder i64 %25, { 0, 1, 4, 2, 3, 5 } uselistorder i32* %6, { 1, 0, 2 } uselistorder i32* %3, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.35.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4, 5 } uselistorder i64 32, { 2, 3, 0, 1 } uselistorder i64 9223372036854775807, { 1, 0, 2 } uselistorder i64 (i64, i64, i64)* @av_rescale_q, { 1, 0 } uselistorder i32 0, { 0, 2, 1 } uselistorder label LBL_13, { 2, 0, 1, 3, 4 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
first_tid_18068
first_tid
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %sv_0.2.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_1.08.reg2mem = alloca i64 %sv_0.09.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %sext3 = mul i64 %arg3, 4294967296 %2 = ashr exact i64 %sext3, 32 %3 = call i64 @FUNC() %4 = icmp eq i32 %1, 0 %5 = trunc i64 %2 to i32 %6 = icmp slt i32 %5, 1 %or.cond = or i1 %4, %6 br i1 %or.cond, label LBL_3, label LBL_1 LBL_1: %7 = and i64 %arg2, 4294967295 %8 = ptrtoint i64* %arg4 to i64 %9 = call i64 @FUNC(i64 %7, i64 %8) %10 = icmp eq i64 %9, 0 br i1 %10, label LBL_4, label LBL_2 LBL_2: %11 = inttoptr i64 %9 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, %0 store i64 %9, i64* %sv_0.1.reg2mem br i1 %13, label LBL_8, label LBL_4 LBL_3: %14 = icmp eq i32 %5, 0 br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = call i64 @FUNC(i64 %0) %16 = icmp slt i64 %2, %15 store i64 0, i64* %sv_0.2.reg2mem br i1 %16, label LBL_5, label LBL_9 LBL_5: %17 = icmp eq i32 %5, 0 %18 = icmp slt i32 %5, 0 %19 = icmp eq i1 %18, false %20 = icmp eq i1 %17, false %21 = icmp eq i1 %19, %20 store i64 %0, i64* %sv_0.09.reg2mem store i64 %2, i64* %sv_1.08.reg2mem store i64 %0, i64* %sv_0.1.reg2mem br i1 %21, label LBL_6, label LBL_8 LBL_6: %sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem %22 = call i64 @FUNC(i64 %sv_0.09.reload) %23 = icmp eq i64 %22, %0 %24 = icmp eq i1 %23, false store i64 0, i64* %sv_0.2.reg2mem br i1 %24, label LBL_7, label LBL_9 LBL_7: %sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem %25 = mul i64 %sv_1.08.reload, 4294967296 %sext5 = add i64 %25, -4294967296 %26 = ashr exact i64 %sext5, 32 %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 %29 = icmp slt i32 %27, 0 %30 = icmp eq i1 %29, false %31 = icmp eq i1 %28, false %32 = icmp eq i1 %30, %31 store i64 %22, i64* %sv_0.09.reg2mem store i64 %26, i64* %sv_1.08.reg2mem store i64 %22, i64* %sv_0.1.reg2mem br i1 %32, label LBL_6, label LBL_8 LBL_8: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %33 = call i64 @FUNC(i64 %sv_0.1.reload) store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem br label LBL_9 LBL_9: %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem %34 = call i64 @FUNC() ret i64 %sv_0.2.reload uselistorder i32 %27, { 1, 0 } uselistorder i32 %5, { 1, 0, 2, 3 } uselistorder i64 %0, { 4, 0, 1, 3, 2 } uselistorder i64* %sv_0.09.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.08.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.2.reg2mem, { 0, 3, 1, 2 } uselistorder i1 false, { 4, 2, 3, 0, 1 } uselistorder i32 0, { 2, 3, 0, 1, 4, 5 } uselistorder label LBL_9, { 2, 0, 1 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 2, 1, 0 } }
1
BinRealVul
cifs_negotiate_protocol_10204
cifs_negotiate_protocol
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %4 = ptrtoint i64* %arg2 to i64 %5 = and i64 %arg1, 4294967295 %6 = call i64 @FUNC(i64 %5, i64 %4) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, -11 %9 = icmp eq i1 %8, false store i32 %7, i32* %sv_0.0.reg2mem br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %5, i64 %4) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, -11 %13 = icmp eq i1 %12, false %spec.store.select = select i1 %13, i32 %11, i32 -112 store i32 %spec.store.select, i32* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %14 = icmp eq i32 %sv_0.0.reload, 0 %15 = icmp eq i1 %14, false store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem br i1 %15, label LBL_7, label LBL_4 LBL_4: %16 = call i64 @FUNC(i64* nonnull @gv_0) %17 = add i64 %4, 4 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 0 store i32 -112, i32* %sv_0.1.reg2mem br i1 %20, label LBL_6, label LBL_5 LBL_5: store i32 1, i32* %18, align 4 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_6 LBL_6: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %21 = call i64 @FUNC(i64* nonnull @gv_0) store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem br label LBL_7 LBL_7: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %22 = zext i32 %sv_0.2.reload to i64 store i64 %22, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_0.0.reload, { 1, 0, 2 } uselistorder i64 %4, { 1, 0, 2 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @CIFSSMBNegotiate, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
decode_ref_idx_lX_13097
decode_ref_idx_lX
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.0.in.be.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = trunc i64 %arg2 to i32 %6 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) %7 = add i32 %5, -1 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_2: %11 = ptrtoint i64* %arg1 to i64 %12 = add i64 %11, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = call i64 @FUNC(i64 %11, i64 %14) %sv_1.01 = trunc i64 %15 to i32 %16 = icmp eq i32 %sv_1.01, 0 %17 = icmp eq i1 %16, false store i32 0, i32* %sv_0.02.reg2mem store i32 0, i32* %sv_0.1.reg2mem br i1 %17, label LBL_3, label LBL_8 LBL_3: %sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem %18 = add i32 %sv_0.02.reload, 1 %19 = icmp eq i32 %18, %7 store i32 %7, i32* %sv_0.1.reg2mem br i1 %19, label LBL_8, label LBL_4 LBL_4: %20 = icmp eq i32 %sv_0.02.reload, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_7, label LBL_5 LBL_5: %22 = load i64, i64* %13, align 8 %23 = add i64 %22, 1 %24 = call i64 @FUNC(i64 %11, i64 %23) store i64 %24, i64* %sv_1.0.in.be.reg2mem br label LBL_6 LBL_6: %sv_1.0.in.be.reload = load i64, i64* %sv_1.0.in.be.reg2mem %sv_1.0 = trunc i64 %sv_1.0.in.be.reload to i32 %25 = icmp eq i32 %sv_1.0, 0 %26 = icmp eq i1 %25, false store i32 %18, i32* %sv_0.02.reg2mem store i32 %18, i32* %sv_0.1.reg2mem br i1 %26, label LBL_3, label LBL_8 LBL_7: %27 = call i64 @FUNC(i64 %11) store i64 %27, i64* %sv_1.0.in.be.reg2mem br label LBL_6 LBL_8: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %28 = zext i32 %sv_0.1.reload to i64 %29 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %28, i64 %4, i64 %2, i64 %1) %30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0), i64 %28, i64 %4, i64 %2, i64 %1) store i64 %28, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %11, { 0, 1, 3, 2 } uselistorder i64 %4, { 2, 3, 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 3, 1, 0 } uselistorder i64 %1, { 2, 3, 1, 0 } uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.0.in.be.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 1, { 2, 3, 0, 1 } uselistorder i64 (i64, i64)* @decode_CABAC_bit, { 1, 0 } uselistorder i1 false, { 2, 1, 0, 3 } uselistorder i32 0, { 4, 3, 0, 1, 2, 5 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @logtrace, { 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
lance_init_3574
lance_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0, i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 4) %2 = load i64, i64* @gv_2, align 8 %3 = call i64 @FUNC(i64 %0, i64 %2, i64 1) %4 = call i64 @FUNC(i64 %0, i64 %0) %5 = add i64 %0, 8 %6 = call i64 @FUNC(i64 %0, i64 %5) %7 = load i64, i64* @gv_3, align 8 %8 = add i64 %0, 16 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = load i64, i64* @gv_4, align 8 %11 = add i64 %0, 24 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 %13 = call i64 @FUNC(i64 %0, i64 %0, i64* nonnull @gv_5) ret i64 %13 uselistorder i64 %0, { 10, 0, 9, 8, 1, 7, 6, 2, 3, 4, 5 } }
0
BinRealVul
qemu_chr_open_spice_14342
qemu_chr_open_spice
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64* %.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 0) %3 = call i64 @FUNC() %4 = icmp eq i64 %1, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_1, label LBL_3 LBL_1: %6 = inttoptr i64 %3 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_7 LBL_2: %10 = inttoptr i64 %1 to i8* %11 = inttoptr i64 %7 to i8* %12 = call i32 @strcmp(i8* %10, i8* %11) %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 %3, i64* %.in.reg2mem store i64* %6, i64** %.lcssa.reg2mem br i1 %14, label LBL_5, label LBL_6 LBL_3: %15 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %16 = call i32 @fwrite(i64* bitcast ([41 x i8]* @gv_3 to i64*), i32 1, i32 40, %_IO_FILE* %15) %17 = call i64 @FUNC() store i64 4294967274, i64* %rax.0.reg2mem br label LBL_11 LBL_4: %18 = inttoptr i64 %24 to i8* %19 = call i32 @strcmp(i8* %10, i8* %18) %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false store i64 %22, i64* %.in.reg2mem store i64* %23, i64** %.lcssa.reg2mem br i1 %21, label LBL_5, label LBL_6 LBL_5: %.in.reload = load i64, i64* %.in.reg2mem %22 = add i64 %.in.reload, 8 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = icmp eq i64 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_4, label LBL_7 LBL_6: %.lcssa.reload = load i64*, i64** %.lcssa.reg2mem %27 = load i64, i64* %.lcssa.reload, align 8 %28 = icmp eq i64 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_8, label LBL_7 LBL_7: %30 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %31 = call i32 @fwrite(i64* bitcast ([35 x i8]* @gv_4 to i64*), i32 1, i32 34, %_IO_FILE* %30) %32 = call i64 @FUNC() store i64 4294967274, i64* %rax.0.reg2mem br label LBL_11 LBL_8: %33 = trunc i64 %2 to i32 %34 = inttoptr i64 %27 to i8* %35 = call i64 @FUNC(i64 40) %36 = call i64 @FUNC(i64 24) %37 = inttoptr i64 %36 to i64* store i64 %35, i64* %37, align 8 %38 = add i64 %36, 8 %39 = inttoptr i64 %38 to i32* store i32 %33, i32* %39, align 4 %40 = add i64 %36, 12 %41 = inttoptr i64 %40 to i32* store i32 0, i32* %41, align 4 %42 = add i64 %36, 16 %43 = inttoptr i64 %42 to i64* store i64 %27, i64* %43, align 8 %44 = inttoptr i64 %35 to i64* store i64 %36, i64* %44, align 8 %45 = add i64 %35, 8 %46 = inttoptr i64 %45 to i64* store i64 4198861, i64* %46, align 8 %47 = add i64 %35, 16 %48 = inttoptr i64 %47 to i64* store i64 4198872, i64* %48, align 8 %49 = add i64 %35, 24 %50 = inttoptr i64 %49 to i64* store i64 4198883, i64* %50, align 8 %51 = add i64 %35, 32 %52 = inttoptr i64 %51 to i64* store i64 4198894, i64* %52, align 8 %53 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0)) %54 = icmp eq i32 %53, 0 %55 = icmp eq i1 %54, false br i1 %55, label LBL_10, label LBL_9 LBL_9: %56 = call i64 @FUNC(i64 %35) br label LBL_10 LBL_10: store i64 %35, i64* %arg2, align 8 store i64 0, 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 %35, { 1, 0, 2, 3, 4, 5, 6, 7 } uselistorder i64 %27, { 0, 2, 1 } uselistorder i64 %24, { 1, 0 } uselistorder i64* %23, { 1, 0 } uselistorder i64 %22, { 1, 0 } uselistorder i8* %10, { 1, 0 } uselistorder i64* %.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 24, { 1, 0 } uselistorder i64 (i64)* @g_malloc0, { 1, 0 } uselistorder i64 8, { 1, 2, 0 } uselistorder i64 4294967274, { 1, 0 } uselistorder i64 ()* @print_allowed_subtypes, { 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 2, 1, 0 } uselistorder %_IO_FILE** @gv_2, { 2, 1, 0 } uselistorder i32 0, { 5, 6, 7, 0, 1, 2, 3, 4 } uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 } uselistorder i1 false, { 2, 4, 5, 3, 0, 1, 6 } uselistorder i64 0, { 0, 5, 6, 4, 13, 3, 14, 11, 7, 8, 9, 10, 1, 2, 12 } uselistorder label LBL_7, { 2, 0, 1 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
gstd_read_9471
gstd_read
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %.pre-phi11.reg2mem = alloca i64 %.reg2mem13 = alloca i64 %.pre-phi9.reg2mem = alloca i64* %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i32, align 4 %3 = add i64 %2, 24 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = icmp eq i32 %5, -1 br i1 %6, label LBL_0.LBL_4_crit_edge, label LBL_2 LBL_1: %.pre = add i64 %2, 16 %.pre8 = inttoptr i64 %.pre to i64* %.pr = load i64, i64* %.pre8, align 8 store i64 %.pr, i64* %.reg2mem store i64* %.pre8, i64** %.pre-phi9.reg2mem br label LBL_4 LBL_2: %7 = sext i32 %5 to i64 %8 = add i64 %2, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp ugt i64 %10, %7 store i64 %10, i64* %.reg2mem store i64* %9, i64** %.pre-phi9.reg2mem br i1 %11, label LBL_2.LBL_11_crit_edge, label LBL_4 LBL_3: %.pre10 = add i64 %2, 8 store i64 %10, i64* %.reg2mem13 store i64 %.pre10, i64* %.pre-phi11.reg2mem store i32 %5, i32* %sv_0.0.reg2mem br label LBL_11 LBL_4: %.pre-phi9.reload = load i64*, i64** %.pre-phi9.reg2mem %.reload = load i64, i64* %.reg2mem %12 = icmp eq i64 %.reload, 0 br i1 %12, label LBL_6, label LBL_5 LBL_5: %13 = add i64 %2, 8 %14 = bitcast i32* %sv_2 to i64* %15 = call i64 @FUNC(i64* nonnull %14, i64 %13) br label LBL_6 LBL_6: %16 = and i64 %1, 4294967295 %17 = call i64 @FUNC(i64 %16, i64* nonnull %sv_1, i64 0, i64 0) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp slt i32 %18, 0 %21 = icmp eq i1 %20, false %22 = icmp eq i1 %19, false %23 = icmp eq i1 %21, %22 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = and i64 %17, 4294967295 store i64 %24, i64* %rax.0.reg2mem br label LBL_12 LBL_8: %25 = add i64 %2, 8 %26 = add i64 %2, 32 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = bitcast i32* %sv_2 to i64* %30 = call i64 @FUNC(i64* nonnull %29, i64 %28, i64* nonnull %sv_1, i64 %25, i64 0, i64 0) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 br i1 %32, label LBL_10, label LBL_9 LBL_9: %33 = load i32, i32* %sv_2, align 4 %34 = zext i32 %33 to i64 %35 = call i64 @FUNC(i64 3, i64 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_12 LBL_10: %36 = ptrtoint i64* %sv_1 to i64 %37 = call i64 @FUNC(i64* nonnull %29, i64 %36) %.pre12 = load i64, i64* %.pre-phi9.reload, align 8 store i64 %.pre12, i64* %.reg2mem13 store i64 %25, i64* %.pre-phi11.reg2mem store i32 0, i32* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sext = mul i64 %arg3, 4294967296 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %.pre-phi11.reload = load i64, i64* %.pre-phi11.reg2mem %.reload14 = load i64, i64* %.reg2mem13 %38 = sext i32 %sv_0.0.reload to i64 %39 = sub i64 %.reload14, %38 %40 = ashr exact i64 %sext, 32 %41 = icmp ugt i64 %39, %40 %42 = select i1 %41, i64 %40, i64 %39 %43 = trunc i64 %42 to i32 %44 = inttoptr i64 %.pre-phi11.reload to i64* %45 = load i64, i64* %44, align 8 %46 = add i64 %45, %38 %47 = inttoptr i64 %46 to i64* %48 = call i64* @memcpy(i64* %arg2, i64* %47, i32 %43) %49 = add i32 %sv_0.0.reload, %43 store i32 %49, i32* %4, align 4 %sext5 = mul i64 %42, 4294967296 %50 = ashr exact i64 %sext5, 32 %51 = call i64 @FUNC(i64 7, i64 %50) %52 = and i64 %42, 4294967295 store i64 %52, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %42, { 1, 0, 2 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i32 %18, { 1, 0 } uselistorder i32* %sv_2, { 0, 2, 1 } uselistorder i64* %sv_1, { 2, 0, 1 } uselistorder i64 %2, { 4, 3, 5, 0, 2, 1, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64*, i64)* @gss_release_buffer, { 1, 0 } uselistorder i64 8, { 1, 2, 0 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
timer_enable_2463
timer_enable
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = urem i64 %5, 2 %7 = and i64 %1, 4294967295 %8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %6) %9 = add i64 %2, 88 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = call i64 @FUNC(i64 %11) %13 = load i64, i64* %4, align 8 %14 = urem i64 %13, 2 %15 = icmp eq i64 %14, 0 %16 = add i64 %2, 16 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = sext i1 %15 to i64 %storemerge = xor i64 %18, %19 %20 = load i64, i64* %10, align 8 %21 = call i64 @FUNC(i64 %20, i64 %storemerge, i64 1) %22 = load i64, i64* %10, align 8 %23 = call i64 @FUNC(i64 %22, i64 1) ret i64 %23 uselistorder i64* %10, { 1, 0, 2 } }
0
reposvul_c_test
cac_fill_object_info_228
cac_fill_object_info
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = call i64* @memset(i64* %arg3, i32 0, i32 56) ret i64 4294967295 }
0
BinRealVul
blk_root_inactivate_14784
blk_root_inactivate
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 i8 %3 = icmp eq i8 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_5 LBL_1: %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 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = add i64 %4, 16 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 0 %14 = icmp eq i1 %13, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %14, label LBL_3, label LBL_5 LBL_3: %15 = bitcast i64* %arg1 to i8* store i8 1, i8* %15, align 1 %16 = add i64 %4, 272 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = icmp eq i64 %18, 0 store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = call i64 @FUNC(i64 %18, i64 0, i64 1, i64* nonnull @gv_0) store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder label LBL_5, { 1, 0, 2, 3 } }
1
BinRealVul
blit_is_unsafe_1004
blit_is_unsafe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp slt i32 %2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 br i1 %7, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 23, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %8 = ptrtoint i64* %arg1 to i64 %9 = add i64 %8, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 %13 = icmp slt i32 %11, 0 %14 = icmp eq i1 %13, false %15 = icmp eq i1 %12, false %16 = icmp eq i1 %14, %15 br i1 %16, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %17 = icmp slt i32 %2, 1025 store i64 1, i64* %rax.0.reg2mem br i1 %17, label LBL_5, label LBL_7 LBL_5: %18 = add i64 %8, 12 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i64 %8, 24 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = and i32 %23, %20 %25 = add i64 %8, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = zext i32 %27 to i64 %29 = call i64 @FUNC(i64 %8, i64 %28, i32 %24) %30 = trunc i64 %29 to i8 %31 = icmp eq i8 %30, 0 store i64 1, i64* %rax.0.reg2mem br i1 %31, label LBL_6, label LBL_7 LBL_6: %32 = add i64 %8, 20 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = load i32, i32* %22, align 4 %36 = and i32 %35, %34 %37 = add i64 %8, 16 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = zext i32 %39 to i64 %41 = call i64 @FUNC(i64 %8, i64 %40, i32 %36) %42 = trunc i64 %41 to i8 %43 = icmp ne i8 %42, 0 %. = zext i1 %43 to i64 store i64 %., 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 i32 %11, { 1, 0 } uselistorder i64 %8, { 1, 2, 0, 5, 6, 4, 3, 7 } uselistorder i64 (i64, i64, i32)* @blit_region_is_unsafe, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 2, 0, 3, 1 } }
0
BinRealVul
run_commit_hook_11470
run_commit_hook
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 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %3 = ptrtoint i64* %sv_1 to i64 store i64 %3, i64* %sv_0, align 8 %4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %5 = urem i32 %4, 4 %6 = icmp eq i32 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_1, label LBL_8 LBL_1: %7 = ptrtoint i64* %arg1 to i64 %8 = ptrtoint i8* %arg3 to i64 %9 = bitcast i64* %sv_1 to i8* %10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %9, i32 4096, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i8* %arg3) %11 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %12 = and i32 %11, 4 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = add i64 %7, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = sext i32 %16 to i64 %18 = mul i64 %17, 8 %19 = add i64 %18, ptrtoint ([2 x i8*]* @gv_2 to i64) %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_1, i64 %21, i64 %8, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_8 LBL_3: %23 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %24 = icmp slt i32 %23, 2 br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = add i64 %7, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = sext i32 %27 to i64 %29 = mul i64 %28, 8 %30 = add i64 %29, ptrtoint ([2 x i8*]* @gv_2 to i64) %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_1, i64 %32, i64 %8, i64 %2, i64 %1) br label LBL_5 LBL_5: %34 = call i64 @FUNC(i64 %7, i64* nonnull %sv_1, i64* nonnull %sv_0) %35 = trunc i64 %34 to i32 %36 = icmp slt i32 %35, 0 %37 = icmp eq i1 %36, false br i1 %37, label LBL_7, label LBL_6 LBL_6: %38 = add i64 %7, 8 %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 store i64 4294967294, i64* %rax.0.reg2mem br i1 %42, label LBL_7, label LBL_8 LBL_7: 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 i64 %8, { 1, 0 } uselistorder i64 %7, { 2, 3, 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i8*, i64*, i64, i64, i64, i64)* @apk_message, { 1, 0 } uselistorder i64 8, { 2, 0, 3, 1, 4 } uselistorder i32 0, { 4, 5, 6, 7, 0, 1, 2, 3 } uselistorder i32 4, { 1, 0 } uselistorder i8* %arg3, { 1, 0 } uselistorder label LBL_8, { 2, 0, 3, 1 } }
1
BinRealVul
isdn_net_addphone_17434
isdn_net_addphone
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 store i64 4294967277, i64* %rax.0.reg2mem br i1 %2, label LBL_3, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 32, i64 0) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_3 LBL_2: %6 = inttoptr i64 %3 to i8* %7 = add i64 %0, 20 %8 = inttoptr i64 %7 to i8* %9 = call i8* @strcpy(i8* %6, i8* %8) %10 = inttoptr i64 %1 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %0, 40 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = mul i32 %14, 8 %16 = and i32 %15, 8 %17 = zext i32 %16 to i64 %18 = add i64 %11, %17 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = add i64 %3, 24 %22 = inttoptr i64 %21 to i64* store i64 %20, i64* %22, align 8 %23 = load i64, i64* %10, align 8 %24 = load i32, i32* %13, align 4 %25 = mul i32 %24, 8 %26 = and i32 %25, 8 %27 = zext i32 %26 to i64 %28 = add i64 %23, %27 %29 = inttoptr i64 %28 to i64* store i64 %3, i64* %29, align 8 store i64 0, 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* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32 8, { 2, 0, 3, 1 } uselistorder label LBL_3, { 2, 1, 0 } }
1
BinRealVul
migration_has_failed_14414
migration_has_failed
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 1 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = icmp eq i32 %2, 2 %spec.select = zext i1 %4 to i64 ret i64 %spec.select LBL_2: ret i64 1 uselistorder i32 %2, { 1, 0 } }
1
BinRealVul
set_fdc_12542
set_fdc
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %0 = trunc i64 %arg1 to i32 %1 = icmp slt i32 %0, 0 br i1 %1, label LBL_3, label LBL_1 LBL_1: %sext = mul i64 %arg1, 4294967296 %2 = ashr exact i64 %sext, 32 %3 = trunc i64 %2 to i32 %4 = icmp sgt i32 %3, 1 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = and i64 %2, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = trunc i64 %6 to i32 store i32 %7, i32* @gv_0, align 4 store i32 %3, i32* bitcast (i64* @gv_1 to i32*), align 8 store i32 %7, i32* %.reg2mem br label LBL_4 LBL_3: %.pr = load i32, i32* @gv_0, align 4 store i32 %.pr, i32* %.reg2mem br label LBL_4 LBL_4: %.reload = load i32, i32* %.reg2mem %8 = icmp ult i32 %.reload, 2 br i1 %8, label LBL_6, label LBL_5 LBL_5: %9 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0)) store i64 %9, i64* %rax.0.reg2mem br label LBL_10 LBL_6: %10 = zext i32 %.reload to i64 %11 = call i64 @FUNC(i64 %10, i64 4294967295, i64 8) %12 = load i32, i32* @gv_0, align 4 %13 = sub i32 1, %12 %14 = zext i32 %13 to i64 %15 = call i64 @FUNC(i64 %14, i64 4294967287, i64 0) %16 = load i64, i64* @gv_3, align 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = icmp eq i32 %18, 2 %20 = icmp eq i1 %19, false br i1 %20, label LBL_8, label LBL_7 LBL_7: %21 = call i64 @FUNC(i64 1) br label LBL_8 LBL_8: %22 = call i64 @FUNC(i64 0) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 1 store i64 %22, i64* %rax.0.reg2mem br i1 %24, label LBL_10, label LBL_9 LBL_9: %25 = load i64, i64* @gv_3, align 8 %26 = add i64 %25, 4 %27 = inttoptr i64 %26 to i32* store i32 1, i32* %27, align 4 store i64 %25, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %.reload, { 1, 0 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64, i64, i64)* @set_dor, { 1, 0 } uselistorder i32 2, { 1, 0 } uselistorder i32* @gv_0, { 2, 0, 1 } uselistorder i64 4294967295, { 2, 0, 1 } uselistorder i32 1, { 7, 4, 5, 6, 3, 2, 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
gen_waiti_1496
gen_waiti
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = zext i32 %5 to i64 %7 = call i64 @FUNC(i64 %6) %8 = and i64 %arg2, 4294967295 %9 = call i64 @FUNC(i64 %8) %10 = and i64 %1, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = urem i64 %11, 2 %13 = icmp eq i64 %12, 0 br i1 %13, label LBL_2, label LBL_1 LBL_1: %14 = call i64 @FUNC() br label LBL_2 LBL_2: %15 = trunc i64 %9 to i32 %16 = load i64, i64* @gv_0, align 8 %17 = and i64 %7, 4294967295 %18 = call i64 @FUNC(i64 %16, i64 %17, i32 %15) %19 = call i64 @FUNC(i64 %10) %20 = urem i64 %19, 2 %21 = icmp eq i64 %20, 0 br i1 %21, label LBL_4, label LBL_3 LBL_3: %22 = call i64 @FUNC() br label LBL_4 LBL_4: %23 = call i64 @FUNC(i64 %17) %24 = and i64 %9, 4294967295 %25 = call i64 @FUNC(i64 %24) %26 = call i64 @FUNC(i64 %2, i64 0) ret i64 %26 uselistorder i64 %10, { 1, 0 } uselistorder i64 (i64)* @tcg_temp_free, { 1, 0 } uselistorder i64 (i64)* @tb_cflags, { 1, 0 } uselistorder i64 4294967295, { 1, 2, 0, 3, 4 } uselistorder i64 (i64)* @tcg_const_i32, { 1, 0 } }
0
BinRealVul
tls_finish_handshake_11606
tls_finish_handshake
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = call i64 @FUNC(i64 %arg1) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_4, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_4, label LBL_2 LBL_2: %7 = call i64 @FUNC(i64 %arg1) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = and i64 %7, 4294967295 store i64 %10, i64* %storemerge.reg2mem br label LBL_15 LBL_4: %11 = call i64 @FUNC(i64 %arg1) %12 = call i64 @FUNC(i64 %arg1) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_6, label LBL_5 LBL_5: %16 = add i64 %arg1, 40 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %18) store i64 0, i64* %17, align 8 br label LBL_6 LBL_6: %20 = call i64 @FUNC(i64 %arg1) %21 = add i64 %arg1, 48 %22 = inttoptr i64 %21 to i32* store i32 0, i32* %22, align 4 %23 = bitcast i64* %rdi to i32* %24 = load i32, i32* %23, align 8 %25 = icmp eq i32 %24, 0 %.pre = add i64 %arg1, 4 %.pre1 = inttoptr i64 %.pre to i32* br i1 %25, label LBL_8, label LBL_7 LBL_7: %26 = load i32, i32* %.pre1, align 4 %27 = icmp eq i32 %26, 2 %28 = icmp eq i1 %27, false store i64 1, i64* %storemerge.reg2mem br i1 %28, label LBL_15, label LBL_8 LBL_8: store i32 0, i32* %.pre1, align 4 %29 = add i64 %arg1, 8 %30 = inttoptr i64 %29 to i32* store i32 0, i32* %30, align 4 %31 = load i32, i32* %23, align 8 %32 = icmp eq i32 %31, 0 br i1 %32, label LBL_10, label LBL_9 LBL_9: %33 = call i64 @FUNC(i64 %arg1, i64 1) %34 = add i64 %arg1, 24 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = add i32 %38, 1 store i32 %39, i32* %37, align 4 %40 = add i64 %arg1, 56 %41 = inttoptr i64 %40 to i64* store i64 4198789, i64* %41, align 8 br label LBL_13 LBL_10: %42 = call i64 @FUNC(i64 %arg1, i64 2) %43 = add i64 %arg1, 12 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = icmp eq i32 %45, 0 %.pre3 = add i64 %arg1, 24 %.pre5 = inttoptr i64 %.pre3 to i64* br i1 %46, label LBL_12, label LBL_11 LBL_11: %47 = load i64, i64* %.pre5, align 8 %48 = add i64 %47, 4 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = add i32 %50, 1 store i32 %51, i32* %49, align 4 br label LBL_12 LBL_12: %52 = add i64 %arg1, 56 %53 = inttoptr i64 %52 to i64* store i64 4198796, i64* %53, align 8 %54 = load i64, i64* %.pre5, align 8 %55 = add i64 %54, 8 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = add i32 %57, 1 store i32 %58, i32* %56, align 4 br label LBL_13 LBL_13: %59 = call i64 @FUNC(i64 %arg1) %60 = trunc i64 %59 to i32 %61 = icmp eq i32 %60, 0 store i64 1, i64* %storemerge.reg2mem br i1 %61, label LBL_15, label LBL_14 LBL_14: %62 = add i64 %arg1, 32 %63 = inttoptr i64 %62 to i64* %64 = load i64, i64* %63, align 8 %65 = inttoptr i64 %64 to i32* store i32 0, i32* %65, align 4 %66 = load i64, i64* %63, align 8 %67 = add i64 %66, 4 %68 = inttoptr i64 %67 to i32* store i32 0, i32* %68, align 4 %69 = load i64, i64* %63, align 8 %70 = add i64 %69, 8 %71 = inttoptr i64 %70 to i32* store i32 0, i32* %71, align 4 store i64 1, i64* %storemerge.reg2mem br label LBL_15 LBL_15: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64 (i64, i64)* @ssl_update_cache, { 1, 0 } uselistorder i64 1, { 2, 1, 3, 0 } uselistorder i64 (i64)* @SSL_IS_DTLS, { 2, 1, 0 } uselistorder i64 %arg1, { 7, 8, 9, 0, 10, 11, 5, 6, 12, 13, 1, 14, 15, 4, 16, 17, 2, 3, 18 } uselistorder label LBL_15, { 2, 1, 0, 3 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_8, { 1, 0 } }
1
BinRealVul
kvm_s390_flic_class_init_15414
kvm_s390_flic_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = add i64 %0, 16 %4 = inttoptr i64 %3 to i64* store i64 4198676, i64* %arg1, align 8 store i64 4198683, i64* %2, align 8 store i64 4198690, i64* %4, align 8 %5 = add i64 %0, 24 %6 = inttoptr i64 %5 to i64* store i64 4198697, i64* %6, align 8 %7 = add i64 %0, 32 %8 = inttoptr i64 %7 to i64* store i64 4198704, i64* %8, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0, 2, 3, 4 } }
1
BinRealVul
_destroy_conf_18465
_destroy_conf
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = inttoptr i64 %0 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %3) %5 = load i64, i64* @gv_0, 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) %10 = load i64, i64* @gv_0, align 8 %11 = add i64 %10, 16 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13) %15 = load i64, i64* @gv_0, align 8 %16 = add i64 %15, 24 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %18) %20 = load i64, i64* @gv_0, align 8 %21 = add i64 %20, 32 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = call i64 @FUNC(i64 %23) %25 = load i64, i64* @gv_0, align 8 %26 = add i64 %25, 40 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28) %30 = load i64, i64* @gv_0, align 8 %31 = add i64 %30, 48 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = call i64 @FUNC(i64 %33) %35 = load i64, i64* @gv_0, align 8 %36 = add i64 %35, 56 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = call i64 @FUNC(i64 %38) %40 = load i64, i64* @gv_0, align 8 %41 = add i64 %40, 64 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = call i64 @FUNC(i64 %43) %45 = load i64, i64* @gv_0, align 8 %46 = add i64 %45, 72 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = call i64 @FUNC(i64 %48) %50 = load i64, i64* @gv_0, align 8 %51 = add i64 %50, 80 %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 %54 = call i64 @FUNC(i64 %53) %55 = load i64, i64* @gv_0, align 8 %56 = add i64 %55, 88 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = call i64 @FUNC(i64 %58) %60 = load i64, i64* @gv_0, align 8 %61 = add i64 %60, 96 %62 = inttoptr i64 %61 to i64* %63 = load i64, i64* %62, align 8 %64 = call i64 @FUNC(i64 %63) %65 = load i64, i64* @gv_0, align 8 %66 = add i64 %65, 104 %67 = inttoptr i64 %66 to i64* %68 = load i64, i64* %67, align 8 %69 = call i64 @FUNC(i64 %68) %70 = load i64, i64* @gv_0, align 8 %71 = add i64 %70, 112 %72 = inttoptr i64 %71 to i64* %73 = load i64, i64* %72, align 8 %74 = call i64 @FUNC(i64 %73) %75 = load i64, i64* @gv_0, align 8 %76 = add i64 %75, 120 %77 = inttoptr i64 %76 to i64* %78 = load i64, i64* %77, align 8 %79 = call i64 @FUNC(i64 %78) %80 = load i64, i64* @gv_0, align 8 %81 = add i64 %80, 128 %82 = inttoptr i64 %81 to i64* %83 = load i64, i64* %82, align 8 %84 = call i64 @FUNC(i64 %83) %85 = load i64, i64* @gv_0, align 8 %86 = add i64 %85, 136 %87 = inttoptr i64 %86 to i64* %88 = load i64, i64* %87, align 8 %89 = call i64 @FUNC(i64 %88) %90 = load i64, i64* @gv_0, align 8 %91 = add i64 %90, 144 %92 = inttoptr i64 %91 to i64* %93 = load i64, i64* %92, align 8 %94 = call i64 @FUNC(i64 %93) %95 = load i64, i64* @gv_0, align 8 %96 = add i64 %95, 152 %97 = inttoptr i64 %96 to i64* %98 = load i64, i64* %97, align 8 %99 = call i64 @FUNC(i64 %98) %100 = load i64, i64* @gv_0, align 8 %101 = add i64 %100, 160 %102 = inttoptr i64 %101 to i64* %103 = load i64, i64* %102, align 8 %104 = call i64 @FUNC(i64 %103) %105 = load i64, i64* @gv_0, align 8 %106 = add i64 %105, 168 %107 = inttoptr i64 %106 to i64* %108 = load i64, i64* %107, align 8 %109 = call i64 @FUNC(i64 %108) %110 = load i64, i64* @gv_0, align 8 %111 = add i64 %110, 176 %112 = inttoptr i64 %111 to i64* %113 = load i64, i64* %112, align 8 %114 = call i64 @FUNC(i64 %113) %115 = load i64, i64* @gv_0, align 8 %116 = add i64 %115, 184 %117 = inttoptr i64 %116 to i64* %118 = load i64, i64* %117, align 8 %119 = call i64 @FUNC(i64 %118) %120 = load i64, i64* @gv_0, align 8 %121 = add i64 %120, 192 %122 = inttoptr i64 %121 to i64* %123 = load i64, i64* %122, align 8 %124 = call i64 @FUNC(i64 %123) %125 = load i64, i64* @gv_0, align 8 %126 = add i64 %125, 200 %127 = inttoptr i64 %126 to i64* %128 = load i64, i64* %127, align 8 %129 = call i64 @FUNC(i64 %128) %130 = load i64, i64* @gv_0, align 8 %131 = add i64 %130, 208 %132 = inttoptr i64 %131 to i64* %133 = load i64, i64* %132, align 8 %134 = call i64 @FUNC(i64 %133) %135 = load i64, i64* @gv_0, align 8 %136 = add i64 %135, 216 %137 = inttoptr i64 %136 to i64* %138 = load i64, i64* %137, align 8 %139 = call i64 @FUNC(i64 %138) %140 = load i64, i64* @gv_0, align 8 %141 = add i64 %140, 224 %142 = call i64 @FUNC(i64 %141) %143 = load i64, i64* @gv_0, align 8 %144 = add i64 %143, 264 %145 = inttoptr i64 %144 to i64* %146 = load i64, i64* %145, align 8 %147 = call i64 @FUNC(i64 %146) %148 = load i64, i64* @gv_0, align 8 %149 = add i64 %148, 272 %150 = call i64 @FUNC(i64 %149) %151 = load i64, i64* @gv_0, align 8 %152 = add i64 %151, 312 %153 = inttoptr i64 %152 to i64* %154 = call i32 @pthread_cond_destroy(i64* %153) %155 = load i64, i64* @gv_0, align 8 %156 = add i64 %155, 360 %157 = inttoptr i64 %156 to i64* %158 = load i64, i64* %157, align 8 %159 = call i64 @FUNC(i64 %158) %160 = load i64, i64* @gv_0, align 8 %161 = add i64 %160, 368 %162 = call i64 @FUNC(i64 %161) %163 = load i64, i64* @gv_0, align 8 %164 = add i64 %163, 408 %165 = inttoptr i64 %164 to i64* %166 = call i32 @pthread_cond_destroy(i64* %165) %167 = load i64, i64* @gv_0, align 8 %168 = add i64 %167, 456 %169 = inttoptr i64 %168 to i64* %170 = load i64, i64* %169, align 8 %171 = call i64 @FUNC(i64 %170) %172 = load i64, i64* @gv_0, align 8 %173 = call i64 @FUNC(i64 %172) store i64 %173, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 (i64*)* @pthread_cond_destroy, { 1, 0 } uselistorder i64 (i64)* @list_destroy, { 1, 0 } uselistorder i64 (i64)* @slurm_mutex_destroy, { 2, 1, 0 } uselistorder i64 (i64)* @xfree, { 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 1, { 2, 1, 0 } }
1
BinRealVul
hal2_gain_put_4363
hal2_gain_put
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %storemerge1.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i32* %arg1 to i64 %5 = call i64 @FUNC(i64 %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 = trunc i64 %1 to i32 store i64 4294967274, i64* %storemerge.reg2mem switch i32 %10, label LBL_7 [ i32 0, label LBL_1 i32 1, label LBL_5 ] LBL_1: %11 = call i64 @FUNC(i64 %5, i64 0) %12 = trunc i64 %11 to i32 %13 = or i32 %9, %6 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = and i32 %12, -8 %16 = sub i32 31, %6 %17 = mul i32 %9, 2 %18 = sub i32 62, %17 %19 = or i32 %18, %16 %20 = or i32 %19, %15 store i32 %20, i32* %storemerge1.reg2mem br label LBL_4 LBL_3: %21 = or i32 %12, 7 store i32 %21, i32* %storemerge1.reg2mem br label LBL_4 LBL_4: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %22 = call i64 @FUNC(i64 %5, i64 0, i32 %storemerge1.reload) store i32 %12, i32* %sv_1.0.reg2mem store i32 %storemerge1.reload, i32* %sv_0.0.reg2mem br label LBL_6 LBL_5: %23 = call i64 @FUNC(i64 %5, i64 4) %24 = trunc i64 %23 to i32 %25 = and i32 %24, -25 %26 = mul i32 %6, 4 %27 = mul i32 %9, 8 %28 = or i32 %27, %26 %29 = or i32 %28, %25 %30 = call i64 @FUNC(i64 %5, i64 4, i32 %29) store i32 %24, i32* %sv_1.0.reg2mem store i32 %29, 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 %31 = icmp eq i32 %sv_1.0.reload, %sv_0.0.reload %32 = icmp eq i1 %31, false %33 = zext i1 %32 to i64 store i64 %33, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %6, { 0, 2, 1 } uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i32)* @hal2_i_write32, { 1, 0 } uselistorder i64 (i64, i64)* @hal2_i_read32, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
snd_compress_check_input_5495
snd_compress_check_input
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_5, label LBL_1 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = udiv i32 2147483647, %2 %9 = icmp ugt i32 %7, %8 br i1 %9, label LBL_5, label LBL_2 LBL_2: %10 = add i64 %4, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = icmp ne i32 %12, 0 %14 = icmp slt i32 %12, 256 %or.cond = icmp eq i1 %13, %14 br i1 %or.cond, label LBL_3, label LBL_5 LBL_3: %15 = add i64 %4, 12 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = add i64 %4, 16 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false %spec.select = select i1 %23, i64 0, i64 4294967274 ret i64 %spec.select LBL_5: ret i64 4294967274 uselistorder i32 %2, { 1, 0 } uselistorder label LBL_5, { 0, 1, 3, 2 } }
0
BinRealVul
usb_serial_handle_data_1708
usb_serial_handle_data
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i64, i64* %0 %6 = ptrtoint i64* %arg2 to i64 %7 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8, align 1 %8 = trunc i64 %6 to i8 %9 = add i64 %6, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 switch i32 %11, label LBL_16 [ i32 0, label LBL_1 i32 1, label LBL_6 ] LBL_1: %12 = icmp eq i8 %8, 2 %13 = icmp eq i1 %12, false br i1 %13, label LBL_17, label LBL_2 LBL_2: %14 = add i64 %6, 16 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_5, label LBL_3 LBL_3: %18 = add i64 %6, 24 %19 = inttoptr i64 %18 to i64* %20 = add i64 %7, 16 %21 = inttoptr i64 %20 to i64* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge3.reg2mem br label LBL_4 LBL_4: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %.reload = load i64, i64* %.reg2mem %22 = load i64, i64* %19, align 8 %23 = mul i64 %.reload, 16 %24 = add i64 %22, %23 %25 = add i64 %24, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = inttoptr i64 %24 to i64* %29 = load i64, i64* %28, align 8 %30 = load i64, i64* %21, align 8 %31 = call i64 @FUNC(i64 %30, i64 %29, i32 %27) %32 = add i32 %storemerge3.reload, 1 %33 = load i32, i32* %15, align 4 %34 = zext i32 %33 to i64 %35 = sext i32 %32 to i64 %36 = icmp slt i64 %35, %34 store i64 %35, i64* %.reg2mem store i32 %32, i32* %storemerge3.reg2mem br i1 %36, label LBL_4, label LBL_5 LBL_5: %37 = add i64 %6, 32 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = add i64 %6, 40 %41 = inttoptr i64 %40 to i32* store i32 %39, i32* %41, align 4 store i64 %6, i64* %rax.0.reg2mem br label LBL_18 LBL_6: %42 = icmp eq i8 %8, 1 %43 = icmp eq i1 %42, false br i1 %43, label LBL_17, label LBL_7 LBL_7: %44 = add i64 %6, 32 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = icmp sgt i32 %46, 2 br i1 %47, label LBL_9, label LBL_8 LBL_8: %48 = add i64 %6, 44 %49 = inttoptr i64 %48 to i32* store i32 1, i32* %49, align 4 store i64 %6, i64* %rax.0.reg2mem br label LBL_18 LBL_9: %50 = call i64 @FUNC(i64 %7) %51 = trunc i64 %50 to i8 %52 = or i8 %51, 1 store i8 %52, i8* %sv_0, align 1 %53 = add i64 %7, 8 %54 = inttoptr i64 %53 to i32* %55 = load i32, i32* %54, align 4 %56 = urem i32 %55, 2 %57 = icmp eq i32 %56, 0 br i1 %57, label LBL_11, label LBL_10 LBL_10: %58 = and i32 %55, -2 store i32 %58, i32* %54, align 4 %59 = call i64 @FUNC(i64 %6, i8* nonnull %sv_0, i64 2) store i64 %59, i64* %rax.0.reg2mem br label LBL_18 LBL_11: %60 = add i32 %46, -2 %61 = add i64 %7, 4 %62 = inttoptr i64 %61 to i32* %63 = load i32, i32* %62, align 4 %64 = zext i32 %63 to i64 %65 = sext i32 %60 to i64 %66 = icmp sgt i64 %65, %64 %spec.select = select i1 %66, i32 %63, i32 %60 %67 = icmp eq i32 %spec.select, 0 %68 = icmp eq i1 %67, false br i1 %68, label LBL_13, label LBL_12 LBL_12: %69 = add i64 %6, 44 %70 = inttoptr i64 %69 to i32* store i32 1, i32* %70, align 4 store i64 %6, i64* %rax.0.reg2mem br label LBL_18 LBL_13: %71 = trunc i64 %3 to i32 %72 = sub i32 256, %71 %73 = icmp sgt i32 %72, %spec.select %spec.select1 = select i1 %73, i32 %spec.select, i32 %72 %74 = call i64 @FUNC(i64 %6, i8* nonnull %sv_0, i64 2) %75 = add i64 %7, 24 %sext = mul i64 %3, 4294967296 %76 = ashr exact i64 %sext, 32 %77 = add i64 %76, %75 %78 = zext i32 %spec.select1 to i64 %79 = inttoptr i64 %77 to i8* %80 = call i64 @FUNC(i64 %6, i8* %79, i64 %78) %81 = icmp sgt i32 %spec.select, %72 br i1 %81, label LBL_14, label LBL_15 LBL_14: %82 = sub i32 %spec.select, %spec.select1 %83 = zext i32 %82 to i64 %84 = inttoptr i64 %75 to i8* %85 = call i64 @FUNC(i64 %6, i8* %84, i64 %83) br label LBL_15 LBL_15: %86 = bitcast i64* %rdi to i32* %87 = load i32, i32* %62, align 4 %88 = sub i32 %87, %spec.select store i32 %88, i32* %62, align 4 %89 = load i32, i32* %86, align 8 %90 = add i32 %89, %spec.select %91 = srem i32 %90, 256 %92 = bitcast i64* %arg1 to i32* store i32 %91, i32* %92, align 4 store i64 %7, i64* %rax.0.reg2mem br label LBL_18 LBL_16: %93 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %4, i64 %5, i64 %2, i64 %1) br label LBL_17 LBL_17: %94 = add i64 %6, 44 %95 = inttoptr i64 %94 to i32* store i32 2, i32* %95, align 4 store i64 %6, 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 %75, { 1, 0 } uselistorder i32 %spec.select1, { 1, 0 } uselistorder i32 %spec.select, { 0, 6, 5, 1, 2, 3, 4 } uselistorder i32* %62, { 1, 0, 2 } uselistorder i32 %55, { 1, 0 } uselistorder i32* %15, { 1, 0 } uselistorder i8 %8, { 1, 0 } uselistorder i64 %7, { 0, 1, 2, 4, 3, 5 } uselistorder i64 %6, { 3, 17, 5, 9, 10, 11, 1, 8, 7, 0, 6, 12, 2, 15, 14, 16, 13, 18, 4 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 3, 2, 1, 5 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } uselistorder i64 (i64, i8*, i64)* @usb_packet_copy, { 3, 2, 1, 0 } uselistorder i32 2, { 2, 0, 1 } uselistorder i32 0, { 4, 2, 0, 1, 3 } uselistorder label LBL_17, { 2, 0, 1 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
url_box_read_6352
url_box_read
define i64 @FUNC(i64* %arg1, i64* %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 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_4, label LBL_1 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = and i64 %1, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %4, 8 %8 = inttoptr i64 %7 to i64* store i64 %6, i64* %8, align 8 %9 = icmp eq i64 %6, 0 %10 = icmp eq i1 %9, false store i64 1, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_4 LBL_2: %11 = ptrtoint i64* %arg2 to i64 %12 = bitcast i64* %rdi to i32* %13 = load i32, i32* %12, align 8 %14 = call i64 @FUNC(i64 %11, i64 %6, i32 %13) %15 = load i64, i64* %8, align 8 %16 = add i32 %13, -1 %17 = zext i32 %16 to i64 %18 = add i64 %15, %17 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = icmp eq i8 %20, 0 store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_4, label LBL_3 LBL_3: %22 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_0, i64 0, i64 0)) store i64 2, 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 %6, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 3, 1 } uselistorder label LBL_4, { 3, 1, 2, 0 } }
0
BinRealVul
get_current_cpu_18705
get_current_cpu
define i64 @FUNC() local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = inttoptr i64 %0 to i64* %4 = load i64, i64* %3, align 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = zext i32 %6 to i64 store i64 %7, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
pidfile_write_13381
pidfile_write
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = inttoptr i64 %arg1 to i8* %1 = call i32 (i8*, i32, ...) @open(i8* %0, i32 131649) %2 = icmp eq i32 %1, -1 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call %_IO_FILE* @fdopen(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %4 = icmp eq %_IO_FILE* %3, null %5 = icmp eq i1 %4, false br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0), i64 %arg1) store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %7 = and i64 %arg2, 4294967295 %8 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %7) %9 = call i32 @fclose(%_IO_FILE* %3) store i64 1, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder %_IO_FILE* %3, { 2, 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 0, { 5, 6, 0, 7, 8, 1, 2, 3, 4, 9 } uselistorder i32 1, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
x509_verify_7466
x509_verify
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_1.28.reg2mem = alloca i64 %sv_2.29.reg2mem = alloca i64 %sv_3.210.reg2mem = alloca i64 %sv_3.2.reg2mem = alloca i64 %sv_2.2.reg2mem = alloca i64 %sv_1.2.reg2mem = alloca i64 %rsi.3.ph.reg2mem = alloca i64 %sv_4.0.ph.reg2mem = alloca i32 %rsi.2.reg2mem = alloca i64 %rsi.1.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %sv_5.0.reg2mem = alloca i8 %sv_3.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_6 = alloca i64, align 8 %2 = icmp eq i64 %arg2, 0 %3 = icmp eq i1 %2, false store i32 1, i32* %sv_0.2.reg2mem br i1 %3, label LBL_1, label LBL_31 LBL_1: %4 = add i64 %arg2, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %arg2, i64 %6) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 0, i64* %sv_1.0.reg2mem store i64 0, i64* %sv_2.0.reg2mem store i64 0, i64* %sv_3.0.reg2mem store i8 0, i8* %sv_5.0.reg2mem br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = add i64 %arg2, 16 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = add i64 %13, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = add i64 %13, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 store i64 %15, i64* %sv_1.0.reg2mem store i64 %18, i64* %sv_2.0.reg2mem store i64 %21, i64* %sv_3.0.reg2mem store i8 1, i8* %sv_5.0.reg2mem br label LBL_3 LBL_3: %22 = bitcast i64* %sv_6 to %timeval* %23 = call i32 @gettimeofday(%timeval* nonnull %22, %timezone* null) %24 = load i64, i64* %sv_6, align 8 %25 = add i64 %arg2, 24 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = sext i32 %27 to i64 %29 = icmp slt i64 %24, %28 store i32 2, i32* %sv_0.2.reg2mem br i1 %29, label LBL_31, label LBL_4 LBL_4: %30 = add i64 %arg2, 28 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = sext i32 %32 to i64 %34 = icmp sgt i64 %24, %33 store i32 3, i32* %sv_0.2.reg2mem br i1 %34, label LBL_31, label LBL_5 LBL_5: %35 = trunc i64 %1 to i32 %sv_5.0.reload = load i8, i8* %sv_5.0.reg2mem %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %36 = add i64 %arg2, 32 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = icmp eq i32 %38, 0 store i64 0, i64* %rsi.2.reg2mem br i1 %39, label LBL_13, label LBL_6 LBL_6: %40 = add i64 %arg2, 36 %41 = inttoptr i64 %40 to i32* %42 = load i32, i32* %41, align 4 %43 = icmp eq i32 %42, 0 %44 = icmp eq i1 %43, false store i32 %42, i32* %.reg2mem store i64 0, i64* %rsi.0.reg2mem br i1 %44, label LBL_9, label LBL_7 LBL_7: %45 = call i64 @FUNC(i64 %arg2, i64 32) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 store i32 4, i32* %sv_0.2.reg2mem br i1 %47, label LBL_8, label LBL_31 LBL_8: %.pr = load i32, i32* %41, align 4 store i32 %.pr, i32* %.reg2mem store i64 32, i64* %rsi.0.reg2mem br label LBL_9 LBL_9: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %.reload = load i32, i32* %.reg2mem %48 = icmp eq i32 %.reload, 0 store i64 %rsi.0.reload, i64* %rsi.2.reg2mem br i1 %48, label LBL_13, label LBL_10 LBL_10: %49 = add i64 %arg2, 44 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = icmp eq i32 %51, 0 store i64 %rsi.0.reload, i64* %rsi.1.reg2mem br i1 %52, label LBL_12, label LBL_11 LBL_11: %53 = call i64 @FUNC(i64 %arg2, i64 32) %54 = trunc i64 %53 to i32 %55 = icmp eq i32 %54, 0 store i64 32, i64* %rsi.1.reg2mem store i64 32, i64* %rsi.2.reg2mem br i1 %55, label LBL_13, label LBL_12 LBL_12: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %56 = add i64 %arg2, 40 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = add i32 %58, 1 %60 = icmp ult i32 %59, %35 store i64 %rsi.1.reload, i64* %rsi.2.reg2mem store i32 4, i32* %sv_0.2.reg2mem br i1 %60, label LBL_31, label LBL_13 LBL_13: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %61 = add i64 %arg2, 72 %62 = inttoptr i64 %61 to i64* %63 = load i64, i64* %62, align 8 %64 = icmp eq i64 %63, 0 %65 = icmp eq i1 %64, false br i1 %65, label LBL_23, label LBL_14 LBL_14: %66 = icmp eq i64 %arg1, 0 store i32 0, i32* %sv_4.0.ph.reg2mem store i64 %rsi.2.reload, i64* %rsi.3.ph.reg2mem br i1 %66, label LBL_22, label LBL_19 LBL_15: %67 = load i32, i32* %37, align 4 %68 = icmp eq i32 %67, 0 br i1 %68, label LBL_17, label LBL_16 LBL_16: %69 = add i64 %99, 36 %70 = inttoptr i64 %69 to i32* %71 = load i32, i32* %70, align 4 %72 = icmp eq i32 %71, 0 %73 = icmp eq i1 %72, false br i1 %73, label LBL_17, label LBL_20 LBL_17: %74 = add i64 %99, 8 %75 = inttoptr i64 %74 to i64* %76 = load i64, i64* %75, align 8 %77 = call i64 @FUNC(i64 %rsi.3.ph.reload, i64 %76) %78 = trunc i64 %77 to i32 %79 = icmp eq i32 %78, 0 %80 = icmp eq i1 %79, false %81 = add nuw i32 %sv_4.0.ph.reload, 1 store i32 %81, i32* %sv_4.0.ph.reg2mem store i64 %76, i64* %rsi.3.ph.reg2mem br i1 %80, label LBL_19, label LBL_18 LBL_18: %82 = load i64, i64* %98, align 8 %83 = add i64 %82, 16 %84 = inttoptr i64 %83 to i64* %85 = load i64, i64* %84, align 8 %86 = inttoptr i64 %85 to i64* %87 = load i64, i64* %86, align 8 %88 = add i64 %85, 8 %89 = inttoptr i64 %88 to i64* %90 = load i64, i64* %89, align 8 %91 = add i64 %85, 16 %92 = inttoptr i64 %91 to i64* %93 = load i64, i64* %92, align 8 store i64 %93, i64* %sv_3.210.reg2mem store i64 %90, i64* %sv_2.29.reg2mem store i64 %87, i64* %sv_1.28.reg2mem br label LBL_26 LBL_19: %rsi.3.ph.reload = load i64, i64* %rsi.3.ph.reg2mem %sv_4.0.ph.reload = load i32, i32* %sv_4.0.ph.reg2mem %94 = icmp ugt i32 %sv_4.0.ph.reload, 9 %95 = sext i32 %sv_4.0.ph.reload to i64 %96 = mul i64 %95, 8 %97 = add i64 %96, %arg1 %98 = inttoptr i64 %97 to i64* br label LBL_20 LBL_20: br i1 %94, label LBL_22, label LBL_21 LBL_21: %99 = load i64, i64* %98, align 8 %100 = icmp eq i64 %99, 0 %101 = icmp eq i1 %100, false br i1 %101, label LBL_15, label LBL_22 LBL_22: %102 = icmp eq i8 %sv_5.0.reload, 0 %103 = icmp eq i1 %102, false store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem store i64 %sv_2.0.reload, i64* %sv_2.2.reg2mem store i64 %sv_3.0.reload, i64* %sv_3.2.reg2mem store i32 1, i32* %sv_0.2.reg2mem br i1 %103, label LBL_25, label LBL_31 LBL_23: %104 = add i64 %63, 8 %105 = inttoptr i64 %104 to i64* %106 = load i64, i64* %105, align 8 %107 = call i64 @FUNC(i64 %rsi.2.reload, i64 %106) %108 = trunc i64 %107 to i32 %109 = icmp eq i32 %108, 0 store i32 5, i32* %sv_0.2.reg2mem br i1 %109, label LBL_24, label LBL_31 LBL_24: %110 = add i64 %63, 16 %111 = inttoptr i64 %110 to i64* %112 = load i64, i64* %111, align 8 %113 = inttoptr i64 %112 to i64* %114 = load i64, i64* %113, align 8 %115 = add i64 %112, 8 %116 = inttoptr i64 %115 to i64* %117 = load i64, i64* %116, align 8 %118 = add i64 %112, 16 %119 = inttoptr i64 %118 to i64* %120 = load i64, i64* %119, align 8 store i64 %114, i64* %sv_1.2.reg2mem store i64 %117, i64* %sv_2.2.reg2mem store i64 %120, i64* %sv_3.2.reg2mem br label LBL_25 LBL_25: %sv_3.2.reload = load i64, i64* %sv_3.2.reg2mem %sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem %sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem %121 = icmp eq i8 %sv_5.0.reload, 0 store i64 %sv_3.2.reload, i64* %sv_3.210.reg2mem store i64 %sv_2.2.reload, i64* %sv_2.29.reg2mem store i64 %sv_1.2.reload, i64* %sv_1.28.reg2mem store i32 6, i32* %sv_0.2.reg2mem br i1 %121, label LBL_26, label LBL_31 LBL_26: %sv_1.28.reload = load i64, i64* %sv_1.28.reg2mem %sv_2.29.reload = load i64, i64* %sv_2.29.reg2mem %sv_3.210.reload = load i64, i64* %sv_3.210.reg2mem %122 = call i64 @FUNC(i64 %sv_1.28.reload, i64 %sv_3.210.reload) %123 = call i64 @FUNC(i64 %sv_1.28.reload, i64 %sv_2.29.reload) %124 = add i64 %arg2, 56 %125 = inttoptr i64 %124 to i32* %126 = load i32, i32* %125, align 4 %127 = add i64 %arg2, 48 %128 = inttoptr i64 %127 to i64* %129 = load i64, i64* %128, align 8 %130 = call i64 @FUNC(i64 %sv_1.28.reload, i64 %129, i32 %126, i64 %123, i64 %122) %131 = icmp eq i64 %130, 0 store i32 7, i32* %sv_0.1.reg2mem br i1 %131, label LBL_29, label LBL_27 LBL_27: %132 = add i64 %arg2, 64 %133 = inttoptr i64 %132 to i64* %134 = load i64, i64* %133, align 8 %135 = icmp eq i64 %134, 0 store i32 7, i32* %sv_0.1.reg2mem br i1 %135, label LBL_29, label LBL_28 LBL_28: %136 = call i64 @FUNC(i64 %130, i64 %134) %137 = trunc i64 %136 to i32 %138 = icmp eq i32 %137, 0 %spec.select = select i1 %138, i32 0, i32 7 %139 = call i64 @FUNC(i64 %sv_1.28.reload, i64 %130) store i32 %spec.select, i32* %sv_0.1.reg2mem br label LBL_29 LBL_29: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %140 = call i64 @FUNC(i64 %sv_1.28.reload) %141 = icmp eq i32 %sv_0.1.reload, 0 %142 = icmp eq i1 %141, false %or.cond3 = or i1 %64, %142 store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem br i1 %or.cond3, label LBL_31, label LBL_30 LBL_30: %143 = add i32 %35, 1 %144 = inttoptr i64 %arg3 to i32* store i32 %143, i32* %144, align 4 %145 = call i64 @FUNC(i64 %arg1, i64 %63, i64 %arg3) %146 = trunc i64 %145 to i32 store i32 %146, i32* %sv_0.2.reg2mem br label LBL_31 LBL_31: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %147 = zext i32 %sv_0.2.reload to i64 ret i64 %147 uselistorder i64 %sv_1.28.reload, { 3, 4, 2, 0, 1 } uselistorder i64 %99, { 2, 1, 0 } uselistorder i64* %98, { 1, 0 } uselistorder i32 %sv_4.0.ph.reload, { 2, 1, 0 } uselistorder i64 %rsi.2.reload, { 1, 0 } uselistorder i64 %rsi.0.reload, { 1, 0 } uselistorder i64* %sv_6, { 1, 0 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.2.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i32* %sv_4.0.ph.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.3.ph.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_2.2.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_3.2.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_0.2.reg2mem, { 0, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8 } uselistorder i32 7, { 2, 1, 0 } uselistorder i64 (i64, i64)* @bi_clone, { 1, 0 } uselistorder i64 (i64, i64)* @IS_SET_KEY_USAGE_FLAG, { 1, 0 } uselistorder i64 32, { 0, 1, 3, 2, 4, 5 } uselistorder i8 0, { 2, 1, 0 } uselistorder i64 (i64, i64)* @asn1_compare_dn, { 2, 1, 0 } uselistorder i64 8, { 1, 2, 0, 3, 4, 5, 6 } uselistorder i1 false, { 1, 0, 4, 2, 3, 5, 6, 7, 8 } uselistorder i64 %arg2, { 4, 6, 5, 7, 1, 3, 2, 12, 11, 10, 9, 8, 0, 13, 14, 15 } uselistorder i64 %arg1, { 2, 0, 1 } uselistorder label LBL_31, { 9, 8, 0, 1, 2, 3, 4, 5, 6, 7 } uselistorder label LBL_29, { 2, 1, 0 } uselistorder label LBL_26, { 1, 0 } uselistorder label LBL_19, { 1, 0 } }
1
BinRealVul
nand_scan_bbt_3804
nand_scan_bbt
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %1 to i32* %5 = load i32, i32* %4, align 4 %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i32 %8, 2 %10 = urem i32 %9, 32 %11 = ashr i32 %5, %10 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false %rdx.0.op.op = sext i32 %11 to i64 %14 = select i1 %13, i64 %rdx.0.op.op, i64 1 %15 = call i64 @FUNC(i64 %14, i64 0) %16 = add i64 %0, 24 %17 = inttoptr i64 %16 to i64* store i64 %15, i64* %17, align 8 %18 = icmp eq i64 %15, 0 %19 = icmp eq i1 %18, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %19, label LBL_1, label LBL_13 LBL_1: %20 = icmp eq i64* %arg1, null %21 = icmp eq i1 %20, false br i1 %21, label LBL_4, label LBL_2 LBL_2: %22 = ptrtoint i32* %arg2 to i64 %23 = call i64 @FUNC(i64 %0, i64 %22) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 store i64 0, i64* %rax.0.reg2mem br i1 %25, label LBL_13, label LBL_3 LBL_3: %26 = call i64 @FUNC(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0)) store i64 %23, i64* %sv_0.0.reg2mem br label LBL_12 LBL_4: %27 = call i64 @FUNC(i64 %0, i64 %0) %28 = call i64 @FUNC(i64 %0, i64 %3) %29 = load i32, i32* %7, align 4 %30 = urem i32 %29, 32 %31 = shl i32 1, %30 %32 = add i64 %0, 20 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = urem i32 %34, 32 %36 = ashr i32 %31, %35 %37 = add i64 %0, 12 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = mul i32 %36, %39 %41 = add i32 %40, %31 %42 = sext i32 %41 to i64 %43 = call i64 @FUNC(i64 %42) %44 = icmp eq i64 %43, 0 %45 = icmp eq i1 %44, false store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %45, label LBL_5, label LBL_12 LBL_5: %46 = bitcast i64* %rdi to i32* %47 = load i32, i32* %46, align 8 %48 = urem i32 %47, 2 %49 = icmp eq i32 %48, 0 br i1 %49, label LBL_7, label LBL_6 LBL_6: %50 = call i64 @FUNC(i64 %0, i64 %43, i64 %0, i64 %3) br label LBL_8 LBL_7: %51 = call i64 @FUNC(i64 %0, i64 %43, i64 %0, i64 %3) br label LBL_8 LBL_8: %52 = ptrtoint i32* %arg2 to i64 %53 = call i64 @FUNC(i64 %0, i64 %43, i64 %52) %54 = trunc i64 %53 to i32 %55 = icmp eq i32 %54, 0 %56 = icmp eq i1 %55, false store i64 %53, i64* %sv_0.0.reg2mem br i1 %56, label LBL_12, label LBL_9 LBL_9: %57 = call i64 @FUNC(i64 %0, i64 %0) %58 = icmp eq i64 %3, 0 br i1 %58, label LBL_11, label LBL_10 LBL_10: %59 = call i64 @FUNC(i64 %0, i64 %3) br label LBL_11 LBL_11: %60 = call i64 @FUNC(i64 %43) store i64 0, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %61 = load i64, i64* %17, align 8 %62 = call i64 @FUNC(i64 %61) store i64 0, i64* %17, align 8 %63 = and i64 %sv_0.0.reload, 4294967295 store i64 %63, 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 i64* %17, { 1, 0, 2 } uselistorder i64 %3, { 1, 0, 2, 3, 4 } uselistorder i64 %0, { 1, 3, 2, 4, 7, 5, 8, 6, 9, 10, 12, 13, 11, 0, 14, 15, 16 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64 (i64, i64)* @mark_bbt_region, { 1, 0 } uselistorder i64 (i64, i64)* @verify_bbt_descr, { 1, 0 } uselistorder i64 4294967284, { 1, 0 } uselistorder i32* %arg2, { 1, 0 } uselistorder label LBL_13, { 2, 3, 0, 1 } uselistorder label LBL_12, { 1, 0, 2 } }
0
BinRealVul
saa7134_ts_fini_13220
saa7134_ts_fini
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = call i64 @FUNC(i64 %0, i64 %1) ret i64 0 uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
flask_security_context_6103
flask_security_context
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.in.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %0 = load i32*, i32** @gv_0, align 8 %1 = load i32, i32* %0, align 4 %2 = zext i32 %1 to i64 %3 = call i64 @FUNC(i64 %2, i64 1) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 %3, i64* %rax.0.in.reg2mem br i1 %5, label LBL_1, label LBL_3 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0, i64 %9, i64 4096) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 store i64 %10, i64* %rax.0.in.reg2mem br i1 %12, label LBL_2, label LBL_3 LBL_2: %13 = add i64 %6, 16 %14 = load i64, i64* %8, align 8 %15 = load i64, i64* %sv_0, align 8 %16 = call i64 @FUNC(i64 %15, i64 %14, i64 %13) %17 = load i64, i64* %sv_0, align 8 %18 = call i64 @FUNC(i64 %17) store i64 %16, i64* %rax.0.in.reg2mem br label LBL_3 LBL_3: %rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem %rax.0 = and i64 %rax.0.in.reload, 4294967295 ret i64 %rax.0 uselistorder i64* %sv_0, { 1, 2, 0 } uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
syscall_cryp_state_copy_12384
syscall_cryp_state_copy
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %0 = call i64 @FUNC(i64* nonnull %sv_2) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = and i64 %0, 4294967295 store i64 %3, i64* %rax.0.reg2mem br label LBL_15 LBL_2: %4 = call i64 @FUNC(i64 %arg1) %5 = load i64, i64* %sv_2, align 8 %6 = call i64 @FUNC(i64 %5, i64 %4, i64* nonnull %sv_1) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = and i64 %6, 4294967295 store i64 %9, i64* %rax.0.reg2mem br label LBL_15 LBL_4: %10 = call i64 @FUNC(i64 %arg2) %11 = load i64, i64* %sv_2, align 8 %12 = call i64 @FUNC(i64 %11, i64 %10, i64* nonnull %sv_0) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_6, label LBL_5 LBL_5: %15 = and i64 %12, 4294967295 store i64 %15, i64* %rax.0.reg2mem br label LBL_15 LBL_6: %16 = load i64, i64* %sv_1, align 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = load i64, i64* %sv_0, align 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %18, %21 %23 = icmp eq i1 %22, false store i64 1, i64* %rax.0.reg2mem br i1 %23, label LBL_15, label LBL_7 LBL_7: %24 = add i64 %16, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = add i64 %19, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = icmp eq i64 %26, %29 store i64 1, i64* %rax.0.reg2mem br i1 %30, label LBL_8, label LBL_15 LBL_8: %31 = call i64 @FUNC(i64 %21) %32 = icmp eq i64 %31, 4 br i1 %32, label LBL_14, label LBL_9 LBL_9: %33 = icmp ult i64 %31, 5 store i64 2, i64* %rax.0.reg2mem br i1 %33, label LBL_10, label LBL_15 LBL_10: store i64 2, i64* %rax.0.reg2mem switch i64 %31, label LBL_15 [ i64 3, label LBL_13 i64 1, label LBL_11 i64 2, label LBL_12 ] LBL_11: %34 = load i64, i64* %sv_0, align 8 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = add i64 %34, 16 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = load i64, i64* %sv_1, align 8 %41 = add i64 %40, 16 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = call i64 @FUNC(i64 %43, i64 %39, i64 %36) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_12: %45 = load i64, i64* %sv_0, align 8 %46 = inttoptr i64 %45 to i64* %47 = load i64, i64* %46, align 8 %48 = add i64 %45, 16 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 %51 = load i64, i64* %sv_1, align 8 %52 = add i64 %51, 16 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = call i64 @FUNC(i64 %54, i64 %50, i64 %47) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_13: %56 = load i64, i64* %sv_0, align 8 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = add i64 %56, 16 %60 = inttoptr i64 %59 to i64* %61 = load i64, i64* %60, align 8 %62 = load i64, i64* %sv_1, align 8 %63 = add i64 %62, 16 %64 = inttoptr i64 %63 to i64* %65 = load i64, i64* %64, align 8 %66 = call i64 @FUNC(i64 %65, i64 %61, i64 %58) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_14: %67 = load i64, i64* %sv_0, align 8 %68 = inttoptr i64 %67 to i64* %69 = load i64, i64* %68, align 8 %70 = add i64 %67, 16 %71 = inttoptr i64 %70 to i64* %72 = load i64, i64* %71, align 8 %73 = load i64, i64* %sv_1, align 8 %74 = add i64 %73, 16 %75 = inttoptr i64 %74 to i64* %76 = load i64, i64* %75, align 8 %77 = call i64 @FUNC(i64 %76, i64 %72, i64 %69) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %sv_2, { 1, 2, 0 } uselistorder i64* %sv_1, { 1, 2, 3, 4, 5, 0 } uselistorder i64* %sv_0, { 1, 2, 3, 4, 5, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1, 6, 8, 7, 11, 10, 9 } uselistorder i64 (i64, i64, i64*)* @tee_svc_cryp_get_state, { 1, 0 } uselistorder i64 (i64)* @tee_svc_uref_to_vaddr, { 1, 0 } uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_15, { 4, 3, 2, 1, 0, 5, 7, 6, 8, 9, 10 } }
1
BinRealVul
smp_fetch_url_param_val_8618
smp_fetch_url_param_val
define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i8* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i64 %1, i64 %0, i64 %arg4) %4 = trunc i64 %3 to i32 %5 = icmp slt i32 %4, 1 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = bitcast i64* %arg2 to i32* store i32 1, i32* %6, align 4 %7 = add i64 %1, 16 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = add i64 %1, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %12, i64 %9) %14 = trunc i64 %13 to i32 %15 = inttoptr i64 %10 to i32* store i32 %14, i32* %15, align 4 br label LBL_2 LBL_2: %16 = and i64 %3, 4294967295 ret i64 %16 uselistorder i64 %1, { 1, 0, 2 } }
0
BinRealVul
delete_path_13161
delete_path
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = call i64 @FUNC(i64 %arg1) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = load [14 x i8]*, [14 x i8]** @gv_0, align 8 %9 = ptrtoint [14 x i8]* %8 to i64 %10 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i64 %arg1, i64 %9, i64 %3, i64 %2, i64 %1) store i64 400, i64* %rax.0.reg2mem br label LBL_7 LBL_2: %11 = load i32, i32* inttoptr (i64 4210768 to i32*), align 16 %12 = zext i32 %11 to i64 %13 = call i64 @FUNC(i64 %arg1, i64 %12) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_6, label LBL_3 LBL_3: %17 = call i32* @__errno_location() %18 = load i32, i32* %17, align 4 %19 = icmp eq i32 %18, 20 %20 = icmp eq i1 %19, false br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 %12, i64 %3, i64 %2, i64 %1) store i64 404, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %22 = load i32, i32* @gv_3, align 4 %23 = zext i32 %22 to i64 %24 = call i64 @FUNC(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_4, i64 0, i64 0), i64 %arg1, i64 %23, i64 %3, i64 %2, i64 %1) store i64 403, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %25 = call i64 @FUNC(i64 %arg1) 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 %3, { 2, 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_msg, { 2, 1, 0 } uselistorder i32 1, { 3, 2, 4, 1, 0 } uselistorder i64 %arg1, { 3, 2, 1, 4, 0, 5 } }
1
BinRealVul
hns_gmac_get_sset_count_12728
hns_gmac_get_sset_count
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = icmp eq i32 %0, 1 %2 = icmp eq i1 %1, false %. = select i1 %2, i64 0, i64 3 ret i64 %. }
1
BinRealVul
jio_snprintf_19060
jio_snprintf
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %2 = load i64, i64* %1 %3 = load i128, i128* %0 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %sv_0 = alloca i32, align 4 %11 = trunc i64 %2 to i8 %12 = icmp eq i8 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i128 %10) %14 = call i64 @FUNC(i128 %9) %15 = call i64 @FUNC(i128 %8) %16 = call i64 @FUNC(i128 %7) %17 = call i64 @FUNC(i128 %6) %18 = call i64 @FUNC(i128 %5) %19 = call i64 @FUNC(i128 %4) %20 = call i64 @FUNC(i128 %3) br label LBL_2 LBL_2: %21 = call i64 @FUNC() store i32 24, i32* %sv_0, align 4 %22 = ptrtoint i32* %sv_0 to i64 %23 = bitcast i64* %arg1 to i8* %24 = call i32 @vsprintf(i8* %23, i8* %arg3, i64 %22) %25 = zext i32 %24 to i64 %26 = call i64 @FUNC(i64 %25) ret i64 %25 uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
decode_dds1_16367
decode_dds1
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.013.reg2mem = alloca i64 %storemerge14.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_0.215.reg2mem = alloca i64 %sv_2.116.reg2mem = alloca i32 %sv_1.117.reg2mem = alloca i32 %.in.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_17 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %sext = mul i64 %arg3, 4294967296 %6 = ashr exact i64 %sext, 32 %sext4 = mul i64 %arg4, 4294967296 %7 = ashr exact i64 %sext4, 32 %sext5 = mul i64 %7, %sext %8 = ashr exact i64 %sext5, 32 %9 = add i64 %8, %5 %10 = trunc i64 %6 to i32 %11 = add nsw i64 %6, 1 %sext8 = add i64 %sext, 12884901888 %12 = ashr exact i64 %sext8, 32 store i32 %2, i32* %.in.reg2mem store i32 0, i32* %sv_1.117.reg2mem store i32 65536, i32* %sv_2.116.reg2mem store i64 %5, i64* %sv_0.215.reg2mem br label LBL_2 LBL_2: %13 = call i64 @FUNC(i64 %0) %14 = trunc i64 %13 to i32 %15 = icmp sgt i32 %14, 1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %15, label LBL_3, label LBL_17 LBL_3: %sv_0.215.reload = load i64, i64* %sv_0.215.reg2mem %sv_2.116.reload = load i32, i32* %sv_2.116.reg2mem %sv_1.117.reload = load i32, i32* %sv_1.117.reg2mem %.in.reload = load i32, i32* %.in.reg2mem %16 = icmp eq i32 %sv_2.116.reload, 65536 %17 = icmp eq i1 %16, false store i32 %sv_2.116.reload, i32* %sv_2.0.reg2mem store i32 %sv_1.117.reload, i32* %sv_1.0.reg2mem br i1 %17, label LBL_5, label LBL_4 LBL_4: %18 = call i64 @FUNC(i64 %0) %19 = trunc i64 %18 to i32 store i32 1, i32* %sv_2.0.reg2mem store i32 %19, i32* %sv_1.0.reg2mem br label LBL_5 LBL_5: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %20 = and i32 %sv_1.0.reload, %sv_2.0.reload %21 = icmp eq i32 %20, 0 br i1 %21, label LBL_11, label LBL_6 LBL_6: %22 = call i64 @FUNC(i64 %0) %23 = trunc i64 %22 to i32 %24 = mul i32 %23, 4 %25 = and i32 %24, 32764 %26 = sub i64 %sv_0.215.reload, %5 %27 = zext i32 %25 to i64 %28 = icmp slt i64 %26, %27 store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_17, label LBL_7 LBL_7: %29 = ashr i32 %23, 13 %30 = mul i32 %29, 2 %31 = add nsw i32 %30, 4 %32 = sub i64 %9, %sv_0.215.reload %33 = mul i32 %31, 2 %34 = add i32 %33, %10 %35 = sext i32 %34 to i64 %36 = icmp slt i64 %32, %35 store i64 4294967295, i64* %rax.0.reg2mem br i1 %36, label LBL_17, label LBL_8 LBL_8: %37 = icmp sgt i32 %31, 0 store i64 %sv_0.215.reload, i64* %sv_0.1.reg2mem br i1 %37, label LBL_9, label LBL_16 LBL_9: %38 = sub nsw i32 0, %25 %39 = sext i32 %38 to i64 store i32 0, i32* %storemerge14.reg2mem store i64 %sv_0.215.reload, i64* %sv_0.013.reg2mem br label LBL_10 LBL_10: %sv_0.013.reload = load i64, i64* %sv_0.013.reg2mem %storemerge14.reload = load i32, i32* %storemerge14.reg2mem %40 = add i64 %sv_0.013.reload, %39 %41 = add i64 %sv_0.013.reload, %11 %42 = inttoptr i64 %40 to i8* %43 = load i8, i8* %42, align 1 %44 = inttoptr i64 %41 to i8* store i8 %43, i8* %44, align 1 %45 = add i64 %sv_0.013.reload, %6 %46 = inttoptr i64 %45 to i8* store i8 %43, i8* %46, align 1 %47 = add i64 %sv_0.013.reload, 1 %48 = inttoptr i64 %47 to i8* store i8 %43, i8* %48, align 1 %49 = inttoptr i64 %sv_0.013.reload to i8* store i8 %43, i8* %49, align 1 %50 = add i64 %sv_0.013.reload, 2 %51 = add nuw nsw i32 %storemerge14.reload, 1 %exitcond = icmp eq i32 %51, %31 store i32 %51, i32* %storemerge14.reg2mem store i64 %50, i64* %sv_0.013.reg2mem store i64 %50, i64* %sv_0.1.reg2mem br i1 %exitcond, label LBL_16, label LBL_10 LBL_11: %52 = mul i32 %sv_2.0.reload, 2 %53 = and i32 %52, %sv_1.0.reload %54 = icmp eq i32 %53, 0 br i1 %54, label LBL_14, label LBL_12 LBL_12: %55 = call i64 @FUNC(i64 %0) %56 = trunc i64 %55 to i32 %57 = mul i32 %56, 2 %58 = sub i64 %sv_0.215.reload, %9 %59 = sext i32 %57 to i64 %60 = icmp slt i64 %58, %59 store i64 4294967295, i64* %rax.0.reg2mem br i1 %60, label LBL_17, label LBL_13 LBL_13: %61 = add i64 %sv_0.215.reload, %59 store i64 %61, i64* %sv_0.1.reg2mem br label LBL_16 LBL_14: %62 = sub i64 %9, %sv_0.215.reload %63 = icmp slt i64 %62, %12 store i64 4294967295, i64* %rax.0.reg2mem br i1 %63, label LBL_17, label LBL_15 LBL_15: %64 = call i64 @FUNC(i64 %0) %65 = add i64 %sv_0.215.reload, %11 %66 = trunc i64 %64 to i8 %67 = inttoptr i64 %65 to i8* store i8 %66, i8* %67, align 1 %68 = add i64 %sv_0.215.reload, %6 %69 = inttoptr i64 %68 to i8* store i8 %66, i8* %69, align 1 %70 = add i64 %sv_0.215.reload, 1 %71 = inttoptr i64 %70 to i8* store i8 %66, i8* %71, align 1 %72 = inttoptr i64 %sv_0.215.reload to i8* store i8 %66, i8* %72, align 1 %73 = add i64 %sv_0.215.reload, 2 %74 = call i64 @FUNC(i64 %0) %75 = add i64 %73, %11 %76 = trunc i64 %74 to i8 %77 = inttoptr i64 %75 to i8* store i8 %76, i8* %77, align 1 %78 = add i64 %73, %6 %79 = inttoptr i64 %78 to i8* store i8 %76, i8* %79, align 1 %80 = add i64 %sv_0.215.reload, 3 %81 = inttoptr i64 %80 to i8* store i8 %76, i8* %81, align 1 %82 = inttoptr i64 %73 to i8* store i8 %76, i8* %82, align 1 %83 = add i64 %sv_0.215.reload, 4 store i64 %83, i64* %sv_0.1.reg2mem br label LBL_16 LBL_16: %84 = add i32 %.in.reload, -1 %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %85 = mul i32 %sv_2.0.reload, 4 %86 = icmp eq i32 %84, 0 %87 = icmp eq i1 %86, false store i32 %84, i32* %.in.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.117.reg2mem store i32 %85, i32* %sv_2.116.reg2mem store i64 %sv_0.1.reload, i64* %sv_0.215.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %87, label LBL_2, label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %73, { 2, 0, 1 } uselistorder i8 %66, { 2, 1, 0, 3 } uselistorder i8 %43, { 2, 1, 0, 3 } uselistorder i64 %sv_0.013.reload, { 0, 1, 2, 5, 4, 3 } uselistorder i32 %31, { 1, 2, 0 } uselistorder i32 %23, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 2, 1, 0 } uselistorder i32 %sv_1.0.reload, { 2, 0, 1 } uselistorder i64 %sv_0.215.reload, { 7, 6, 5, 8, 9, 12, 11, 10, 13, 4, 1, 0, 3, 2 } uselistorder i64 %9, { 2, 1, 0 } uselistorder i64 %sext, { 1, 2, 0 } uselistorder i64 %5, { 2, 0, 1 } uselistorder i64 %0, { 3, 4, 2, 1, 0, 5, 6 } uselistorder i32* %.in.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.117.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.116.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.215.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.013.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.1.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 5, 4, 6, 7 } uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 } uselistorder i32 4, { 0, 2, 1 } uselistorder i32 65536, { 1, 0 } uselistorder i64 1, { 2, 3, 4, 0, 1 } uselistorder i1 false, { 2, 1, 0 } uselistorder i32 0, { 7, 4, 0, 5, 2, 6, 1, 3 } uselistorder i64 (i64)* @bytestream2_get_le16, { 2, 1, 0 } uselistorder label LBL_17, { 5, 4, 3, 1, 2, 0, 6 } uselistorder label LBL_16, { 2, 3, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
mxf_read_index_table_segment_2780
mxf_read_index_table_segment
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = add i64 %arg3, 4294951163 %2 = and i64 %1, 4294967295 store i64 %2, i64* @0, align 8 %trunc = trunc i64 %1 to i32 switch i32 %trunc, label LBL_7 [ i32 0, label LBL_1 i32 1, label LBL_2 i32 2, label LBL_3 i32 6, label LBL_4 i32 7, label LBL_5 i32 8, label LBL_6 ] LBL_1: %3 = call i64 @FUNC(i64 %0) %4 = and i64 %3, 4294967295 %5 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %4) br label LBL_7 LBL_2: %6 = call i64 @FUNC(i64 %0) %7 = and i64 %6, 4294967295 %8 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %7) br label LBL_7 LBL_3: %9 = call i64 @FUNC(i64 %0) %10 = and i64 %9, 4294967295 %11 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %10) br label LBL_7 LBL_4: %12 = call i64 @FUNC(i64 %0) %13 = call i64 @FUNC(i64 %0) %14 = and i64 %12, 4294967295 %15 = and i64 %13, 4294967295 %16 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i64 %15, i64 %14) br label LBL_7 LBL_5: %17 = call i64 @FUNC(i64 %0) %18 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i64 %17) br label LBL_7 LBL_6: %19 = call i64 @FUNC(i64 %0) %20 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_5, i64 0, i64 0), i64 %19) br label LBL_7 LBL_7: ret i64 0 uselistorder i64 %0, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @get_be64, { 1, 0 } uselistorder i32 (i32, i8*, ...)* @dprintf, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @get_be32, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 4294967295, { 3, 4, 2, 1, 0, 5 } }
0
BinRealVul
get_channel_idx_624
get_channel_idx
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %3 = trunc i64 %arg3 to i32 %sext4 = mul i32 %3, 16777216 %4 = ashr exact i32 %sext4, 24 %5 = zext i32 %4 to i64 %6 = call i64 @FUNC(i64 %2, i64 %5) store i32 0, i32* %sv_0, align 4 %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = trunc i64 %arg3 to i8 %10 = icmp eq i8 %9, 45 %11 = icmp eq i1 %10, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %11, label LBL_2, label LBL_6 LBL_2: %12 = icmp eq i64* %arg1, null %13 = icmp eq i1 %12, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %13, label LBL_3, label LBL_6 LBL_3: %14 = trunc i64 %1 to i32 %15 = bitcast i64* %arg1 to i8* %16 = call i32 @strlen(i8* %15) %17 = call i32 (i8*, i8*, ...) @sscanf(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* %arg2, i32* nonnull %sv_0) %18 = load i32, i32* %sv_0, align 4 %19 = icmp ne i32 %16, %18 %20 = icmp slt i32 %14, 0 %or.cond = or i1 %20, %19 store i64 4294967274, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_6, label LBL_4 LBL_4: %sext = mul i64 %arg4, 4294967296 %21 = and i64 %1, 4294967295 %22 = ashr exact i64 %sext, 32 %23 = icmp slt i64 %22, %21 store i64 4294967274, i64* %rax.0.reg2mem br i1 %23, label LBL_6, label LBL_5 LBL_5: store i64 %6, i64* %arg1, align 8 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 i8* %15, { 1, 0 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 } uselistorder label LBL_6, { 4, 1, 0, 2, 3 } }
0
BinRealVul
handle_vmread_19313
handle_vmread
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %1 = call i64 @FUNC(i64 0) %2 = call i64 @FUNC(i64 1) store i64 0, i64* %sv_1, align 8 %3 = call i64 @FUNC(i64 %0) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false store i64 1, i64* %rax.0.reg2mem br i1 %6, label LBL_1, label LBL_10 LBL_1: %7 = call i64 @FUNC(i64 %0) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = call i64 @FUNC(i64 %0) store i64 %11, i64* %rax.0.reg2mem br label LBL_10 LBL_3: %12 = udiv i64 %2, 268435456 %13 = urem i64 %12, 16 %14 = call i64 @FUNC(i64 %0, i64 %13) %15 = call i64 @FUNC(i64 %0, i64 %14, i64* nonnull %sv_0) %16 = trunc i64 %15 to i32 %17 = icmp slt 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 %0, i64 2) %20 = call i64 @FUNC(i64 %0) store i64 %20, i64* %rax.0.reg2mem br label LBL_10 LBL_5: %21 = trunc i64 %2 to i32 %22 = and i32 %21, 1024 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_7, label LBL_6 LBL_6: %24 = load i64, i64* %sv_0, align 8 %25 = udiv i64 %2, 8 %26 = urem i64 %25, 16 %27 = call i64 @FUNC(i64 %0, i64 %26, i64 %24) br label LBL_9 LBL_7: %28 = call i64 @FUNC(i64 %0, i64 %1, i32 %21, i64 1, i64* nonnull %sv_1) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 store i64 1, i64* %rax.0.reg2mem br i1 %30, label LBL_8, label LBL_10 LBL_8: %31 = call i64 @FUNC(i64 %0) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 %. = select i1 %33, i64 4, i64 8 %34 = load i64, i64* %sv_1, align 8 %35 = call i64 @FUNC(i64 %0, i64 %34, i64* nonnull %sv_0, i64 %., i64 0) br label LBL_9 LBL_9: %36 = call i64 @FUNC(i64 %0) %37 = call i64 @FUNC(i64 %0) store i64 %37, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %21, { 1, 0 } uselistorder i64 %2, { 0, 2, 1 } uselistorder i64* %sv_1, { 1, 0, 2 } uselistorder i64* %sv_0, { 0, 2, 1 } uselistorder i64 %0, { 5, 4, 6, 7, 8, 3, 2, 1, 10, 9, 0, 11, 12 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 } uselistorder i64 8, { 1, 0 } uselistorder i64 (i64)* @kvm_skip_emulated_instruction, { 2, 1, 0 } uselistorder i64 1, { 0, 5, 1, 6, 2, 3, 4 } uselistorder label LBL_10, { 2, 0, 3, 4, 1 } }
1
BinRealVul
read_seek_14403
read_seek
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 29 %2 = add i64 %1, %0 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp slt i64 %arg3, 0 %6 = icmp eq i1 %5, false %7 = inttoptr i64 %4 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = sext i32 %10 to i64 %12 = add i64 %8, 4 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = sext i32 %14 to i64 %arg3.op = mul i64 %arg3, 4 %16 = select i1 %6, i64 %arg3.op, i64 0 %17 = mul i64 %16, %11 %18 = mul i64 %17, %15 %19 = add i64 %0, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21, i64 %18, i64 0) ret i64 0 uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
ehci_state_fetchitd_9676
ehci_state_fetchitd
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i32, align 4 %0 = trunc i64 %arg2 to i32 %1 = icmp eq i32 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %2 = ptrtoint i64* %arg1 to i64 %3 = and i64 %arg2, 4294967295 %4 = call i64 @FUNC(i64 %2, i64 %3) %5 = trunc i64 %4 to i32 %6 = bitcast i32* %sv_0 to i64* %7 = call i64 @FUNC(i64 %2, i32 %5, i64* nonnull %6, i64 1) %8 = trunc i64 %7 to i32 %9 = icmp slt i32 %8, 0 %10 = icmp eq i1 %9, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_3, label LBL_5 LBL_3: %11 = and i64 %4, 4294967295 %12 = call i64 @FUNC(i64 %2, i64 %11, i64* nonnull %6) %13 = call i64 @FUNC(i64 %2, i64* nonnull %6, i32 %5) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %15, label LBL_4, label LBL_5 LBL_4: %16 = call i64 @FUNC(i64 %2, i32 %5, i64* nonnull %6, i64 1) %17 = load i32, i32* %sv_0, align 4 %18 = zext i32 %17 to i64 %19 = call i64 @FUNC(i64 %2, i64 %3, i64 %18) %20 = call i64 @FUNC(i64 %2, i64 %3, i64 0) store i64 1, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 1, 0, 2 } uselistorder i64 %2, { 1, 2, 0, 4, 3, 6, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_5, { 2, 0, 1 } }
0
BinRealVul
meson_efuse_read_18866
meson_efuse_read
define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = trunc i64 %arg2 to i32 %2 = call i64 @FUNC(i64 %0, i64 0, i32 %1, i64 %arg4, i64 0, i64 0) %3 = trunc i64 %2 to i32 %4 = icmp slt i32 %3, 0 %5 = icmp eq i1 %4, false %6 = and i64 %2, 4294967295 %storemerge = select i1 %5, i64 0, i64 %6 ret i64 %storemerge }
1
BinRealVul
ff_lzf_uncompress_15597
ff_lzf_uncompress
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.shrunk.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %.pn.reg2mem = alloca i64 %sv_1.03.reg2mem = alloca i64 %sv_0.04.reg2mem = alloca i64 %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 sgt i32 %3, 2 store i64 0, i64* %sv_0.04.reg2mem store i64 %0, i64* %sv_1.03.reg2mem store i64 0, i64* %sv_0.0.lcssa.reg2mem br i1 %4, label LBL_1, label LBL_10 LBL_1: %sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem %sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem %5 = call i64 @FUNC(i64 %1) %6 = trunc i64 %5 to i8 %7 = icmp ult i8 %6, -32 br i1 %7, label LBL_2, label LBL_6 LBL_2: %8 = add i8 %6, 1 %9 = zext i8 %8 to i64 %10 = sub i64 %9, %sv_0.04.reload %11 = icmp slt i64 %10, %9 br i1 %11, label LBL_3, label LBL_4 LBL_3: %12 = udiv i64 %9, 2 %13 = add nuw nsw i64 %12, %9 store i64 %13, i64* %arg3, align 8 %14 = call i64 @FUNC(i64 %0, i64 %13) %15 = trunc i64 %14 to i32 %16 = icmp slt i32 %15, 0 %17 = icmp eq i1 %16, false store i64 %14, i64* %rax.0.shrunk.reg2mem br i1 %17, label LBL_4, label LBL_11 LBL_4: %18 = call i64 @FUNC(i64 %1, i64 %sv_1.03.reload, i8 %8) store i64 %9, i64* %.pn.reg2mem br label LBL_5 LBL_5: %.pn.reload = load i64, i64* %.pn.reg2mem %sv_0.0.be = add i64 %.pn.reload, %sv_0.04.reload %sv_1.0.be = add i64 %.pn.reload, %sv_1.03.reload %19 = call i64 @FUNC(i64 %1) %20 = trunc i64 %19 to i32 %21 = icmp sgt i32 %20, 2 store i64 %sv_0.0.be, i64* %sv_0.04.reg2mem store i64 %sv_1.0.be, i64* %sv_1.03.reg2mem store i64 %sv_0.0.be, i64* %sv_0.0.lcssa.reg2mem br i1 %21, label LBL_1, label LBL_10 LBL_6: %22 = sext i8 %6 to i32 %23 = mul i32 %22, 256 %24 = and i32 %23, 7936 %25 = or i32 %24, 1 %26 = call i64 @FUNC(i64 %1) %27 = trunc i64 %26 to i32 %28 = urem i32 %27, 256 %29 = add nuw nsw i32 %28, %25 %30 = zext i32 %29 to i64 %31 = icmp slt i64 %sv_0.04.reload, %30 store i64 4294967295, i64* %rax.0.shrunk.reg2mem br i1 %31, label LBL_11, label LBL_7 LBL_7: %32 = udiv i32 %22, 32 %33 = urem i32 %32, 8 %34 = add nuw nsw i32 %33, 2 %35 = zext i32 %34 to i64 %36 = sub i64 %35, %sv_0.04.reload %37 = icmp slt i64 %36, %35 br i1 %37, label LBL_8, label LBL_9 LBL_8: %38 = udiv i64 %35, 2 %39 = add nuw nsw i64 %38, %35 store i64 %39, i64* %arg3, align 8 %40 = call i64 @FUNC(i64 %0, i64 %39) %41 = trunc i64 %40 to i32 %42 = icmp slt i32 %41, 0 %43 = icmp eq i1 %42, false store i64 %40, i64* %rax.0.shrunk.reg2mem br i1 %43, label LBL_9, label LBL_11 LBL_9: %44 = call i64 @FUNC(i64 %sv_1.03.reload, i64 %30, i32 %34) store i64 %35, i64* %.pn.reg2mem br label LBL_5 LBL_10: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem store i64 %sv_0.0.lcssa.reload, i64* %arg3, align 8 store i64 0, i64* %rax.0.shrunk.reg2mem br label LBL_11 LBL_11: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %35, { 0, 2, 1, 4, 3 } uselistorder i32 %34, { 1, 0 } uselistorder i32 %22, { 1, 0 } uselistorder i64 %.pn.reload, { 1, 0 } uselistorder i64 %9, { 0, 2, 1, 3, 4 } uselistorder i8 %6, { 2, 0, 1 } uselistorder i64 %sv_0.04.reload, { 0, 1, 3, 2 } uselistorder i64 %sv_1.03.reload, { 0, 2, 1 } uselistorder i64 %1, { 1, 4, 2, 3, 0 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 } uselistorder i64* %.pn.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i32 256, { 1, 0 } uselistorder i64 (i64, i64)* @av_reallocp, { 1, 0 } uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 } uselistorder i32 2, { 2, 1, 0 } uselistorder i64 (i64)* @bytestream2_get_bytes_left, { 1, 0 } uselistorder i64* %arg3, { 2, 1, 0 } uselistorder label LBL_11, { 3, 0, 1, 2 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
journal_importer_cleanup_3913
journal_importer_cleanup
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = trunc i64 %3 to i32 %6 = icmp slt i32 %5, 0 br i1 %6, label LBL_3, label LBL_1 LBL_1: %7 = add i64 %arg1, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = add i64 %arg1, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false %spec.select = select i1 %16, i64 %14, i64 ptrtoint ([9 x i8]* @gv_0 to i64) %17 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %spec.select, i32 %5, i64 %4, i64 %2, i64 %1) %18 = and i64 %3, 4294967295 %19 = call i64 @FUNC(i64 %18) br label LBL_3 LBL_3: %20 = add i64 %arg1, 8 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = inttoptr i64 %22 to i64* call void @free(i64* %23) %24 = add i64 %arg1, 16 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = inttoptr i64 %26 to i64* call void @free(i64* %27) %28 = add i64 %arg1, 24 %29 = call i64 @FUNC(i64 %28) ret i64 %29 uselistorder i32 %5, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i32 1, { 3, 2, 4, 1, 0 } uselistorder i64 %arg1, { 1, 3, 2, 0, 4 } }
0
BinRealVul
my_log2_15097
my_log2
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge2.reg2mem = alloca i32 %sext = mul i64 %arg1, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = trunc i64 %0 to i32 store i32 0, i32* %storemerge2.reg2mem br label LBL_1 LBL_1: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %2 = urem i32 %storemerge2.reload, 32 %3 = icmp eq i32 %2, 0 %4 = lshr i32 %1, %2 %5 = zext i32 %4 to i64 %storemerge = select i1 %3, i64 %0, i64 %5 %6 = trunc i64 %storemerge to i32 %7 = icmp ult i32 %6, 2 %8 = add i32 %storemerge2.reload, 1 store i32 %8, i32* %storemerge2.reg2mem br i1 %7, label LBL_2, label LBL_1 LBL_2: %9 = zext i32 %storemerge2.reload to i64 ret i64 %9 uselistorder i32 %2, { 1, 0 } uselistorder i32 %storemerge2.reload, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i32 0, { 1, 0 } }
1
BinRealVul
write16_19277
write16
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = add i64 %arg3, 1 %1 = and i64 %0, 4294967295 %sext7 = mul i64 %arg2, 4294967296 %2 = ashr exact i64 %sext7, 32 %3 = icmp sgt i64 %2, %1 store i64 %1, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %sext5 = mul i64 %arg4, 281474976710656 %4 = ashr exact i64 %sext5, 48 %sext = mul i64 %arg3, 4294967296 %5 = ptrtoint i64* %arg1 to i64 %6 = ashr exact i64 %sext, 32 %7 = add i64 %6, %5 %8 = inttoptr i64 %7 to i8* %9 = trunc i64 %arg5 to i8 %10 = icmp eq i8 %9, 0 br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = trunc i64 %4 to i8 store i8 %11, i8* %8, align 1 %12 = udiv i64 %4, 256 %13 = trunc i64 %12 to i8 %14 = add i64 %7, 1 %15 = inttoptr i64 %14 to i8* store i8 %13, i8* %15, align 1 store i64 %14, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %16 = udiv i64 %4, 256 %17 = trunc i64 %16 to i8 store i8 %17, i8* %8, align 1 %18 = add i64 %7, 1 %19 = trunc i64 %4 to i8 %20 = inttoptr i64 %18 to i8* store i8 %19, i8* %20, align 1 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 i8* %8, { 1, 0 } uselistorder i64 %7, { 1, 0, 2 } uselistorder i64 %4, { 2, 0, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_4, { 1, 2, 0 } }
1
BinRealVul
fast_get_data_ready_12166
fast_get_data_ready
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = call i64 @FUNC(i64 %0) %4 = trunc i64 %3 to i32 %5 = sub i32 %2, %4 %6 = sext i32 %5 to i64 %7 = icmp ult i64 %6, %arg2 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = zext i32 %5 to i64 store i64 %8, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %9 = call i64 @FUNC(i64 %0, i64 1) %10 = call i64 @FUNC(i64 %0) %11 = call i64 @FUNC(i64 %0) %12 = sub i64 %10, %11 %13 = and i64 %12, 4294967295 store i64 %13, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 2, 1, 0, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @rd_cons, { 1, 0 } uselistorder i64 (i64)* @rd_prod, { 1, 0 } }
1
BinRealVul
gen9_init_indirectctx_bb_19103
gen9_init_indirectctx_bb
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.01.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i32* %arg1 to i64 %2 = add i64 %0, 4 %3 = bitcast i64* %arg2 to i32* store i32 4097, i32* %3, align 4 %4 = call i64 @FUNC(i64 %1, i64 %2) %5 = call i64 @FUNC(i64 %4, i64* nonnull @gv_0, i64 3) %6 = add i64 %5, 4 %7 = inttoptr i64 %5 to i32* store i32 57072, i32* %7, align 4 %8 = add i64 %5, 8 %9 = inttoptr i64 %6 to i32* store i32 4369, i32* %9, align 4 %10 = add i64 %5, 12 %11 = inttoptr i64 %8 to i32* store i32 7827456, i32* %11, align 4 %12 = add i64 %5, 16 %13 = inttoptr i64 %10 to i32* store i32 0, i32* %13, align 4 %14 = add i64 %5, 20 %15 = inttoptr i64 %12 to i32* store i32 0, i32* %15, align 4 %16 = add i64 %5, 24 %17 = inttoptr i64 %14 to i32* store i32 0, i32* %17, align 4 %18 = add i64 %5, 28 %19 = inttoptr i64 %16 to i32* store i32 4098, i32* %19, align 4 %20 = urem i64 %18, 64 %21 = icmp eq i64 %20, 0 %22 = icmp eq i1 %21, false store i64 %18, i64* %sv_0.01.reg2mem store i64 %18, i64* %sv_0.0.lcssa.reg2mem br i1 %22, label LBL_1, label LBL_2 LBL_1: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %23 = add i64 %sv_0.01.reload, 4 %24 = inttoptr i64 %sv_0.01.reload to i32* store i32 0, i32* %24, align 4 %25 = urem i64 %23, 64 %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 %23, i64* %sv_0.01.reg2mem store i64 %23, i64* %sv_0.0.lcssa.reg2mem br i1 %27, label LBL_1, label LBL_2 LBL_2: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem ret i64 %sv_0.0.lcssa.reload uselistorder i64 %sv_0.01.reload, { 1, 0 } uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i64 8, { 1, 2, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
mov_stsc_index_valid_2262
mov_stsc_index_valid
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = trunc i64 %arg2 to i32 %2 = add i32 %1, -1 %3 = icmp ugt i32 %2, %0 %4 = zext i1 %3 to i64 ret i64 %4 }
0
BinRealVul
janus_rtp_header_extension_get_from_id_7348
janus_rtp_header_extension_get_from_id
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 store i64 %3, i64* %sv_2, align 8 %4 = icmp eq i64 %arg1, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_19, label LBL_1 LBL_1: %5 = trunc i64 %3 to i32 %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_2, label LBL_19 LBL_2: %8 = and i64 %3, 4294967295 %9 = call i64 @FUNC(i64* nonnull %sv_1, i64 100, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %2, i64 %1) %10 = inttoptr i64 %arg1 to i8* %11 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %12 = icmp eq i8* %11, null %13 = icmp eq i1 %12, false store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_3, label LBL_19 LBL_3: %14 = bitcast i64* %sv_1 to i8* store i8* %11, i8** %storemerge6.reg2mem br label LBL_4 LBL_4: %storemerge6.reload = load i8*, i8** %storemerge6.reg2mem %15 = call i8* @strchr(i8* %storemerge6.reload, i32 10) %16 = icmp eq i8* %15, null br i1 %16, label LBL_18, label LBL_5 LBL_5: store i8 0, i8* %15, align 1 %17 = call i8* @strstr(i8* %storemerge6.reload, i8* nonnull %14) %18 = icmp eq i8* %17, null br i1 %18, label LBL_17, label LBL_6 LBL_6: %19 = call i32 (i8*, i8*, ...) @sscanf(i8* %storemerge6.reload, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_2, i64* nonnull %sv_0) %20 = icmp eq i32 %19, 2 %21 = icmp eq i1 %20, false br i1 %21, label LBL_17, label LBL_7 LBL_7: store i8 10, i8* %15, align 1 %22 = bitcast i64* %sv_0 to i8* %23 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_3, i64 0, i64 0)) %24 = icmp eq i8* %23, null store i64 ptrtoint ([39 x i8]* @gv_3 to i64), i64* %rax.0.reg2mem br i1 %24, label LBL_8, label LBL_19 LBL_8: %25 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_4, i64 0, i64 0)) %26 = icmp eq i8* %25, null store i64 ptrtoint ([45 x i8]* @gv_4 to i64), i64* %rax.0.reg2mem br i1 %26, label LBL_9, label LBL_19 LBL_9: %27 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_5, i64 0, i64 0)) %28 = icmp eq i8* %27, null store i64 ptrtoint ([41 x i8]* @gv_5 to i64), i64* %rax.0.reg2mem br i1 %28, label LBL_10, label LBL_19 LBL_10: %29 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_6, i64 0, i64 0)) %30 = icmp eq i8* %29, null store i64 ptrtoint ([35 x i8]* @gv_6 to i64), i64* %rax.0.reg2mem br i1 %30, label LBL_11, label LBL_19 LBL_11: %31 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_7, i64 0, i64 0)) %32 = icmp eq i8* %31, null store i64 ptrtoint ([41 x i8]* @gv_7 to i64), i64* %rax.0.reg2mem br i1 %32, label LBL_12, label LBL_19 LBL_12: %33 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_8, i64 0, i64 0)) %34 = icmp eq i8* %33, null store i64 ptrtoint ([50 x i8]* @gv_8 to i64), i64* %rax.0.reg2mem br i1 %34, label LBL_13, label LBL_19 LBL_13: %35 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_9, i64 0, i64 0)) %36 = icmp eq i8* %35, null store i64 ptrtoint ([31 x i8]* @gv_9 to i64), i64* %rax.0.reg2mem br i1 %36, label LBL_14, label LBL_19 LBL_14: %37 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_10, i64 0, i64 0)) %38 = icmp eq i8* %37, null store i64 ptrtoint ([31 x i8]* @gv_10 to i64), i64* %rax.0.reg2mem br i1 %38, label LBL_15, label LBL_19 LBL_15: %39 = call i8* @strstr(i8* nonnull %22, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_11, i64 0, i64 0)) %40 = icmp eq i8* %39, null store i64 ptrtoint ([40 x i8]* @gv_11 to i64), i64* %rax.0.reg2mem br i1 %40, label LBL_16, label LBL_19 LBL_16: %41 = ptrtoint i64* %sv_0 to i64 %42 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_12, i64 0, i64 0), i64* nonnull %sv_0, i64 %41, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_17: store i8 10, i8* %15, align 1 br label LBL_18 LBL_18: %43 = ptrtoint i8* %15 to i64 %44 = add i64 %43, 1 %45 = inttoptr i64 %44 to i8* %46 = select i1 %16, i8* null, i8* %45 %47 = icmp eq i8* %46, null %48 = icmp eq i1 %47, false store i8* %46, i8** %storemerge6.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %48, label LBL_4, label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8* %15, { 2, 1, 0, 3, 4 } uselistorder i64* %sv_2, { 1, 0 } uselistorder i64* %sv_0, { 2, 0, 3, 1 } uselistorder i8** %storemerge6.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 14, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 13, 12 } uselistorder i64* %0, { 1, 0 } uselistorder [40 x i8]* @gv_11, { 1, 0 } uselistorder [31 x i8]* @gv_10, { 1, 0 } uselistorder [31 x i8]* @gv_9, { 1, 0 } uselistorder [50 x i8]* @gv_8, { 1, 0 } uselistorder [41 x i8]* @gv_7, { 1, 0 } uselistorder [35 x i8]* @gv_6, { 1, 0 } uselistorder [41 x i8]* @gv_5, { 1, 0 } uselistorder [45 x i8]* @gv_4, { 1, 0 } uselistorder [39 x i8]* @gv_3, { 1, 0 } uselistorder i8 0, { 1, 2, 3, 0 } uselistorder i8* null, { 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0 } uselistorder i8* (i8*, i8*)* @strstr, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i1 false, { 2, 1, 0, 3 } uselistorder i32 1, { 7, 9, 8, 6, 5, 4, 10, 3, 1, 11, 2, 0 } uselistorder label LBL_19, { 0, 13, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 12, 11 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
k_ascii_19019
k_ascii
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = and i64 %arg3, 4294967295 %1 = trunc i64 %arg3 to i8 %2 = icmp eq i8 %1, 0 %3 = icmp eq i1 %2, false store i64 %0, i64* %rax.0.reg2mem br i1 %3, label LBL_4, label LBL_1 LBL_1: %sext = mul i64 %arg2, 72057594037927936 %4 = ashr exact i64 %sext, 56 %5 = trunc i64 %4 to i8 %6 = icmp ult i8 %5, 10 %sext2 = add i64 %sext, -720575940379279360 %7 = ashr exact i64 %sext2, 56 %sv_0.0 = select i1 %6, i64 %4, i64 %7 %8 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %9 = icmp eq i32 %8, -1 %10 = icmp eq i1 %9, false br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = urem i64 %sv_0.0, 256 %12 = trunc i64 %11 to i32 store i32 %12, i32* @gv_0, align 4 store i64 %11, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %storemerge = select i1 %6, i32 10, i32 16 %13 = load i32, i32* @gv_0, align 4 %14 = mul i32 %13, %storemerge %15 = trunc i64 %sv_0.0 to i32 %16 = urem i32 %15, 256 %17 = add i32 %14, %16 %18 = zext i32 %17 to i64 store i32 %17, i32* @gv_0, align 4 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 %sv_0.0, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder label LBL_4, { 1, 2, 0 } }
1
BinRealVul
vhost_net_flush_17409
vhost_net_flush
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 0) %2 = call i64 @FUNC(i64 %0, i64 1) %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %0) %8 = add i64 %0, 32 %9 = inttoptr i64 %8 to i8* store i8 1, i8* %9, align 1 %10 = call i64 @FUNC(i64 %0) %11 = load i64, i64* %4, align 8 %12 = call i64 @FUNC(i64 %11) %13 = call i64 @FUNC(i64 %0) store i8 0, i8* %9, align 1 %14 = load i64, i64* %4, align 8 %15 = call i64 @FUNC(i64 %14) %16 = call i64 @FUNC(i64 %0) store i64 %16, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 0, 2, 1, 4, 3, 5, 6, 7 } uselistorder i64 (i64)* @mutex_unlock, { 1, 0 } uselistorder i64 (i64)* @mutex_lock, { 1, 0 } uselistorder i64 (i64, i64)* @vhost_net_flush_vq, { 1, 0 } }
1
BinRealVul
hbitmap_serialization_granularity_1358
hbitmap_serialization_granularity
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 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %7 = trunc i64 %1 to i32 %8 = urem i32 %7, 64 %9 = icmp eq i32 %8, 0 %10 = zext i32 %8 to i64 %11 = shl i64 64, %10 %storemerge = select i1 %9, i64 64, i64 %11 ret i64 %storemerge }
0
BinRealVul
alloc_buffers_53
alloc_buffers
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv13.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge4.reg2mem = alloca i32 %storemerge58.reg2mem = alloca i32 %storemerge12.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = and i64 %1, 4294967295 %7 = call i64 @FUNC(i64 %2, i64 %6, i32 %5) %8 = trunc i64 %7 to i32 %9 = icmp slt i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = and i64 %7, 4294967295 store i64 %11, i64* %rax.0.reg2mem br label LBL_14 LBL_2: %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = add i64 %2, 16 %16 = inttoptr i64 %15 to i32* store i32 %14, i32* %16, align 4 %17 = add i64 %2, 32 %18 = add i64 %2, 28 %19 = zext i32 %14 to i64 %20 = call i64 @FUNC(i64 %19, i64 %18, i64 %17) %21 = load i32, i32* %16, align 4 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 %22) %24 = trunc i64 %23 to i32 %25 = icmp sgt i32 %24, 0 br i1 %25, label LBL_3, label LBL_13 LBL_3: %26 = inttoptr i64 %18 to i32* %27 = add i64 %2, 12 %28 = inttoptr i64 %27 to i32* %29 = inttoptr i64 %17 to i32* store i32 0, i32* %storemerge12.reg2mem br label LBL_4 LBL_4: %storemerge12.reload = load i32, i32* %storemerge12.reg2mem %30 = icmp eq i32 %storemerge12.reload, 0 %31 = load i32, i32* %13, align 4 br i1 %30, label LBL_5, label LBL_6 LBL_5: %32 = load i32, i32* %28, align 4 store i32 %31, i32* %storemerge58.reg2mem store i32 %32, i32* %storemerge4.reg2mem br label LBL_7 LBL_6: %33 = load i32, i32* %26, align 4 %34 = urem i32 %33, 32 %35 = ashr i32 %31, %34 %36 = load i32, i32* %28, align 4 %37 = load i32, i32* %29, align 4 %38 = urem i32 %37, 32 %39 = ashr i32 %36, %38 store i32 %35, i32* %storemerge58.reg2mem store i32 %39, i32* %storemerge4.reg2mem br label LBL_7 LBL_7: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %storemerge58.reload = load i32, i32* %storemerge58.reg2mem %40 = add i32 %storemerge58.reload, 7 %41 = icmp slt i32 %storemerge58.reload, 0 %42 = select i1 %41, i32 %40, i32 %storemerge58.reload %43 = add i32 %42, 56 %44 = and i32 %43, -64 %45 = add i32 %storemerge4.reload, 7 %46 = icmp slt i32 %storemerge4.reload, 0 %47 = select i1 %46, i32 %45, i32 %storemerge4.reload %48 = add i32 %47, 8 %49 = and i32 %48, -16 %50 = sext i32 %storemerge12.reload to i64 %51 = mul nsw i64 %50, 304 %52 = add i64 %51, %2 %53 = add i64 %52, 40 %54 = inttoptr i64 %53 to i32* store i32 %storemerge58.reload, i32* %54, align 4 %55 = add i64 %52, 44 %56 = inttoptr i64 %55 to i32* store i32 %49, i32* %56, align 4 %57 = add i64 %52, 48 %58 = inttoptr i64 %57 to i32* store i32 %44, i32* %58, align 4 %59 = load i32, i32* %54, align 4 %60 = load i32, i32* %56, align 4 %61 = mul i32 %49, %44 %62 = sext i32 %61 to i64 %63 = call i64 @FUNC(i64 %62, i64 1) %64 = add i64 %52, 56 %65 = inttoptr i64 %64 to i64* store i64 %63, i64* %65, align 8 %66 = call i64 @FUNC(i64 %62, i64 1) %67 = add i64 %52, 64 %68 = inttoptr i64 %67 to i64* store i64 %66, i64* %68, align 8 %69 = load i64, i64* %65, align 8 %70 = icmp ne i64 %69, 0 %71 = icmp eq i64 %66, 0 %72 = icmp eq i1 %71, false %or.cond = icmp eq i1 %72, %70 store i64 4294967284, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_8, label LBL_14 LBL_8: %73 = sdiv i32 %59, 128 %74 = add nsw i32 %73, 7 %75 = and i32 %74, -8 %76 = sdiv i32 %60, 128 %77 = add nsw i32 %76, 1 %78 = and i32 %77, -2 %79 = mul i32 %78, 4 %80 = mul i32 %75, 4 %81 = mul i32 %78, 2 %82 = mul i32 %75, 2 %83 = add i64 %52, 72 %84 = inttoptr i64 %83 to i64* store i64 %69, i64* %84, align 8 %85 = load i64, i64* %65, align 8 %86 = mul i32 %78, %75 %87 = mul i32 %86, 2 %88 = sext i32 %87 to i64 %89 = add i64 %85, %88 %90 = add i64 %52, 80 %91 = inttoptr i64 %90 to i64* store i64 %89, i64* %91, align 8 %92 = load i64, i64* %65, align 8 %93 = sext i32 %86 to i64 %94 = add i64 %92, %93 %95 = add i64 %52, 88 %96 = inttoptr i64 %95 to i64* store i64 %94, i64* %96, align 8 %97 = load i64, i64* %65, align 8 %98 = mul i32 %86, 3 %99 = sext i32 %98 to i64 %100 = add i64 %97, %99 %101 = add i64 %52, 96 %102 = inttoptr i64 %101 to i64* store i64 %100, i64* %102, align 8 %103 = load i64, i64* %65, align 8 %104 = mul i32 %81, %82 %105 = mul i32 %104, 2 %106 = sext i32 %105 to i64 %107 = add i64 %103, %106 %108 = add i64 %52, 104 %109 = inttoptr i64 %108 to i64* store i64 %107, i64* %109, align 8 %110 = load i64, i64* %65, align 8 %111 = sext i32 %104 to i64 %112 = add i64 %110, %111 %113 = add i64 %52, 112 %114 = inttoptr i64 %113 to i64* store i64 %112, i64* %114, align 8 %115 = load i64, i64* %65, align 8 %116 = mul i32 %104, 3 %117 = sext i32 %116 to i64 %118 = add i64 %115, %117 %119 = add i64 %52, 120 %120 = inttoptr i64 %119 to i64* store i64 %118, i64* %120, align 8 %121 = load i64, i64* %65, align 8 %122 = mul i32 %79, %80 %123 = mul i32 %122, 2 %124 = sext i32 %123 to i64 %125 = add i64 %121, %124 %126 = add i64 %52, 128 %127 = inttoptr i64 %126 to i64* store i64 %125, i64* %127, align 8 %128 = load i64, i64* %65, align 8 %129 = sext i32 %122 to i64 %130 = add i64 %128, %129 %131 = add i64 %52, 136 %132 = inttoptr i64 %131 to i64* store i64 %130, i64* %132, align 8 %133 = load i64, i64* %65, align 8 %134 = mul i32 %122, 3 %135 = sext i32 %134 to i64 %136 = add i64 %133, %135 %137 = add i64 %52, 144 %138 = inttoptr i64 %137 to i64* store i64 %136, i64* %138, align 8 %139 = mul nsw i64 %50, 38 store i64 0, i64* %indvars.iv13.reg2mem br label LBL_11 LBL_9: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %140 = add nuw nsw i64 %150, %indvars.iv.reload %141 = mul i64 %140, 8 %142 = add i64 %141, %2 %143 = add i64 %142, 152 %144 = inttoptr i64 %143 to i32* store i32 %148, i32* %144, align 4 %145 = add i64 %142, 156 %146 = inttoptr i64 %145 to i32* store i32 %151, i32* %146, align 4 %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 br i1 %exitcond, label LBL_10, label LBL_9 LBL_10: %indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 1 %exitcond15 = icmp eq i64 %indvars.iv.next14, 4 store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem br i1 %exitcond15, label LBL_12, label LBL_11 LBL_11: %indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem %147 = trunc i64 %indvars.iv13.reload to i32 %148 = shl i32 %75, %147 %149 = mul i64 %indvars.iv13.reload, 4 %150 = add nuw nsw i64 %149, %139 %151 = shl i32 %78, %147 store i64 0, i64* %indvars.iv.reg2mem br label LBL_9 LBL_12: %152 = load i64, i64* %68, align 8 %153 = add i64 %52, 280 %154 = inttoptr i64 %153 to i64* store i64 %152, i64* %154, align 8 %155 = load i64, i64* %68, align 8 %156 = add i64 %155, %88 %157 = add i64 %52, 288 %158 = inttoptr i64 %157 to i64* store i64 %156, i64* %158, align 8 %159 = load i64, i64* %68, align 8 %160 = add i64 %52, 304 %161 = inttoptr i64 %160 to i64* store i64 %159, i64* %161, align 8 %162 = load i64, i64* %68, align 8 %163 = add i64 %162, %106 %164 = add i64 %52, 312 %165 = inttoptr i64 %164 to i64* store i64 %163, i64* %165, align 8 %166 = load i64, i64* %68, align 8 %167 = add i64 %52, 328 %168 = inttoptr i64 %167 to i64* store i64 %166, i64* %168, align 8 %169 = load i64, i64* %68, align 8 %170 = add i64 %169, %124 %171 = add i64 %52, 336 %172 = inttoptr i64 %171 to i64* store i64 %170, i64* %172, align 8 %173 = add nuw i32 %storemerge12.reload, 1 %174 = icmp slt i32 %173, %24 store i32 %173, i32* %storemerge12.reg2mem br i1 %174, label LBL_4, label LBL_13 LBL_13: %175 = bitcast i64* %rdi to i32* %176 = load i32, i32* %4, align 4 %177 = add i64 %2, 20 %178 = inttoptr i64 %177 to i32* store i32 %176, i32* %178, align 4 %179 = load i32, i32* %175, align 8 store i32 %179, i32* %16, align 4 %180 = load i32, i32* %13, align 4 %181 = add i64 %2, 24 %182 = inttoptr i64 %181 to i32* store i32 %180, i32* %182, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %indvars.iv13.reload, { 2, 1, 0 } uselistorder i32 %122, { 1, 2, 0 } uselistorder i32 %104, { 1, 2, 0 } uselistorder i32 %86, { 1, 2, 0 } uselistorder i32 %78, { 3, 2, 0, 1 } uselistorder i32 %75, { 3, 2, 0, 1 } uselistorder i64 %52, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } uselistorder i32 %storemerge58.reload, { 3, 2, 1, 0 } uselistorder i32 %31, { 1, 0 } uselistorder i32* %28, { 1, 0 } uselistorder i32 %24, { 1, 0 } uselistorder i64 %2, { 2, 3, 0, 1, 4, 6, 5, 7, 8, 9, 10 } uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge58.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64, i64)* @av_malloc_array, { 1, 0 } uselistorder i64 304, { 1, 0 } uselistorder i32 7, { 2, 0, 1 } uselistorder label LBL_14, { 1, 0, 2 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
njs_array_convert_to_slow_array_18967
njs_array_convert_to_slow_array
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %rdi.1.lcssa.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rsi = alloca i64, align 8 %0 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %1 = add i64 %0, 16 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 %5 = zext i1 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_1, label LBL_8 LBL_1: %9 = ptrtoint i64* %sv_1 to i64 %10 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0) store i32 0, i32* %2, align 4 %11 = bitcast i64* %rsi to i32* %12 = load i32, i32* %11, align 8 %13 = icmp eq i32 %12, 0 %14 = add i64 %0, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 store i64 %9, i64* %rdi.1.lcssa.reg2mem store i64 %16, i64* %.lcssa.reg2mem br i1 %13, label LBL_7, label LBL_2 LBL_2: %17 = ptrtoint i64* %arg1 to i64 %18 = zext i32 %12 to i64 store i64 0, i64* %indvars.iv.reg2mem store i64 %16, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %19 = mul i64 %indvars.iv.reload, 4 %20 = add i64 %19, %.reload %21 = call i64 @FUNC(i64 %20) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i64 %20, i64* %rdi.0.reg2mem br i1 %23, label LBL_6, label LBL_4 LBL_4: %24 = call i64 @FUNC(i64* nonnull %sv_0, i64 %indvars.iv.reload) %25 = call i64 @FUNC(i64 %17, i64* nonnull %sv_1, i64* nonnull %sv_0, i64 0) %26 = icmp eq i64 %25, 0 %27 = zext i1 %26 to i64 %28 = call i64 @FUNC(i64 %27) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %30, label LBL_5, label LBL_8 LBL_5: %31 = inttoptr i64 %25 to i32* %32 = load i64, i64* %15, align 8 %33 = add i64 %32, %19 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 store i32 %35, i32* %31, align 4 store i64 %27, i64* %rdi.0.reg2mem br label LBL_6 LBL_6: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %36 = icmp ult i64 %indvars.iv.next, %18 %37 = load i64, i64* %15, align 8 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %37, i64* %.reg2mem store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem store i64 %37, i64* %.lcssa.reg2mem br i1 %36, label LBL_3, label LBL_7 LBL_7: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem %38 = call i64 @FUNC(i64 %rdi.1.lcssa.reload, i64 %.lcssa.reload) store i64 0, i64* %15, align 8 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 i64 %19, { 1, 0 } uselistorder i64 %16, { 1, 0 } uselistorder i64* %15, { 0, 3, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64)* @njs_slow_path, { 1, 0 } uselistorder i32 0, { 1, 2, 0, 3, 4, 5 } uselistorder label LBL_8, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
fd_chr_update_read_handler_16687
fd_chr_update_read_handler
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = and i64 %1, 4294967295 %5 = call i64 @FUNC(i64 %4) %6 = bitcast i64* %arg1 to i32* store i32 0, i32* %6, align 4 br label LBL_2 LBL_2: %7 = ptrtoint i64* %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 store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = zext i32 %10 to i64 %13 = call i64 @FUNC(i64 %12, i64 4198688, i64 4198695, i64 %7) %14 = trunc i64 %13 to i32 %15 = bitcast i64* %arg1 to i32* store i32 %14, i32* %15, align 4 store i64 %13, 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 i32 %10, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %arg1, { 0, 2, 1 } }
1
BinRealVul
brcmf_get_bwcap_8426
brcmf_get_bwcap
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 store i32 0, i32* %sv_1, align 4 %3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32* nonnull %sv_1) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_4, label LBL_1 LBL_1: %7 = load i32, i32* %sv_1, align 4 store i32 %7, i32* %arg2, align 4 store i32 1, i32* %sv_1, align 4 %8 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32* nonnull %sv_1) %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 = ptrtoint i32* %arg2 to i64 %13 = add i64 %12, 4 %14 = load i32, i32* %sv_1, align 4 %15 = zext i32 %14 to i64 %16 = inttoptr i64 %13 to i32* store i32 %14, i32* %16, align 4 store i64 %15, i64* %rax.0.reg2mem br label LBL_13 LBL_3: %17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i8* bitcast (i8** @gv_2 to i8*)) %18 = sext i32 %17 to i64 store i64 %18, i64* %rax.0.reg2mem br label LBL_13 LBL_4: %19 = trunc i64 %1 to i32 %20 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0)) store i32 0, i32* %sv_0, align 4 %21 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i32* nonnull %sv_0) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_6, label LBL_5 LBL_5: store i32 0, i32* %sv_0, align 4 store i32 %19, i32* %.reg2mem br label LBL_11 LBL_6: %.pr = load i32, i32* %sv_0, align 4 %24 = icmp eq i32 %.pr, 2 br i1 %24, label LBL_10, label LBL_7 LBL_7: %25 = icmp ult i32 %.pr, 3 br i1 %25, label LBL_8, label LBL_12 LBL_8: %26 = icmp eq i32 %.pr, 0 store i32 %19, i32* %.reg2mem br i1 %26, label LBL_11, label LBL_9 LBL_9: %27 = or i32 %19, 2 store i32 %27, i32* %arg2, align 4 br label LBL_10 LBL_10: %.phi.trans.insert.pre-phi = bitcast i64* %rsi to i32* %28 = ptrtoint i32* %arg2 to i64 %29 = add i64 %28, 4 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = or i32 %31, 2 store i32 %32, i32* %30, align 4 %.pre = load i32, i32* %.phi.trans.insert.pre-phi, align 8 store i32 %.pre, i32* %.reg2mem br label LBL_11 LBL_11: %.reload = load i32, i32* %.reg2mem %33 = or i32 %.reload, 1 store i32 %33, i32* %arg2, align 4 %34 = ptrtoint i32* %arg2 to i64 %35 = add i64 %34, 4 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = or i32 %37, 1 store i32 %38, i32* %36, align 4 store i64 %35, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %39 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0)) %40 = sext i32 %39 to i64 store i64 %40, 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 %19, { 2, 0, 1 } uselistorder i32* %sv_1, { 2, 0, 3, 4, 1, 5 } uselistorder i32* %sv_0, { 0, 2, 1, 3 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 } uselistorder i32 2, { 1, 2, 0, 3 } uselistorder i32 (i8*)* @puts, { 1, 0 } uselistorder i64 (i64, i8*, i32*)* @brcmf_fil_iovar_int_get, { 2, 1, 0 } uselistorder i32* %arg2, { 4, 3, 5, 2, 0, 1 } uselistorder label LBL_11, { 1, 2, 0 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
estimate_qp_16822
estimate_qp
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 32 %2 = add i64 %0, 12 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_3, label LBL_1 LBL_1: %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i32* store i32 %4, i32* %7, align 4 %8 = bitcast i64* %arg1 to i32* store i32 %4, i32* %8, align 4 %9 = trunc i64 %1 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_5, label LBL_2 LBL_2: store i32 0, i32* %3, align 4 br label LBL_5 LBL_3: %12 = add i64 %0, 16 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_5, label LBL_4 LBL_4: %17 = and i64 %1, 4294967295 %18 = call i64 @FUNC(i64 %0, i64 %17) %19 = trunc i64 %18 to i32 %20 = add i64 %0, 8 %21 = inttoptr i64 %20 to i32* store i32 %19, i32* %21, align 4 %22 = bitcast i64* %arg1 to i32* store i32 %19, i32* %22, align 4 %23 = load i32, i32* %21, align 4 %24 = icmp slt i32 %23, 0 %25 = icmp eq i1 %24, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %25, label LBL_5, label LBL_14 LBL_5: %26 = add i64 %0, 20 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %28, 0 br i1 %29, label LBL_12, label LBL_6 LBL_6: %30 = add i64 %0, 24 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = icmp eq i32 %32, 1 br i1 %33, label LBL_8, label LBL_7 LBL_7: %34 = icmp sgt i32 %32, 0 %.off = add i32 %32, -2 %switch = icmp ult i32 %.off, 3 %or.cond = icmp eq i1 %34, %switch br i1 %or.cond, label LBL_9, label LBL_10 LBL_8: %35 = call i64 @FUNC(i64 %0) br label LBL_11 LBL_9: %36 = call i64 @FUNC(i64 %0) br label LBL_11 LBL_10: %37 = call i64 @FUNC(i64 %0) br label LBL_11 LBL_11: %38 = add i64 %0, 32 %39 = inttoptr i64 %38 to i64* %40 = load i64, i64* %39, align 8 %41 = inttoptr i64 %40 to i32* %42 = load i32, i32* %41, align 4 %43 = add i64 %0, 28 %44 = inttoptr i64 %43 to i32* store i32 %42, i32* %44, align 4 br label LBL_13 LBL_12: %45 = add i64 %0, 8 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = add i64 %0, 28 %49 = inttoptr i64 %48 to i32* store i32 %47, i32* %49, align 4 br label LBL_13 LBL_13: %50 = call i64 @FUNC(i64 %0) store i64 0, i64* %storemerge.reg2mem br label LBL_14 LBL_14: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %32, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 5, 8, 9, 3, 2, 1, 0, 4, 7, 6, 12, 13, 10, 11, 14 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 32, { 1, 0 } uselistorder label LBL_14, { 1, 0 } }
1
BinRealVul
buf_close_1669
buf_close
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1) %1 = call i64 @FUNC(i64 %arg1) ret i64 0 }
0
BinRealVul
vmxnet3_pci_uninit_10768
vmxnet3_pci_uninit
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0)) %1 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %arg1) %2 = call i64 @FUNC(i64 %arg1) %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %arg1) %5 = call i64 @FUNC(i64 %arg1) %6 = add i64 %arg1, 8 %7 = call i64 @FUNC(i64 %6) %8 = add i64 %arg1, 16 %9 = call i64 @FUNC(i64 %8) ret i64 %9 uselistorder i64 (i64)* @memory_region_destroy, { 2, 1, 0 } uselistorder i64 %arg1, { 0, 1, 2, 3, 4, 5, 7, 6 } }
0
BinRealVul
io_mem_read_3422
io_mem_read
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i32* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %arg2, i64 %0, i32 %arg4, i64 0) ret i64 %2 }
0
BinRealVul
ff_get_wav_header_14231
ff_get_wav_header
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.1.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = trunc i64 %arg3 to i32 %3 = call i64 @FUNC(i64 %1) %4 = trunc i64 %3 to i32 %5 = bitcast i64* %arg2 to i32* store i32 1, i32* %5, align 4 %6 = add i64 %0, 4 %7 = inttoptr i64 %6 to i32* store i32 %4, i32* %7, align 4 %8 = call i64 @FUNC(i64 %1) %9 = trunc i64 %8 to i32 %10 = add i64 %0, 8 %11 = inttoptr i64 %10 to i32* store i32 %9, i32* %11, align 4 %12 = call i64 @FUNC(i64 %1) %13 = trunc i64 %12 to i32 %14 = add i64 %0, 12 %15 = inttoptr i64 %14 to i32* store i32 %13, i32* %15, align 4 %16 = call i64 @FUNC(i64 %1) %.tr = trunc i64 %16 to i32 %17 = mul i32 %.tr, 8 %18 = add i64 %0, 16 %19 = inttoptr i64 %18 to i32* store i32 %17, i32* %19, align 4 %20 = call i64 @FUNC(i64 %1) %21 = trunc i64 %20 to i32 %22 = add i64 %0, 20 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = icmp eq i32 %2, 14 %25 = icmp eq i1 %24, false br i1 %25, label LBL_2, label LBL_1 LBL_1: %26 = add i64 %0, 24 %27 = inttoptr i64 %26 to i32* store i32 8, i32* %27, align 4 br label LBL_3 LBL_2: %28 = call i64 @FUNC(i64 %1) %29 = trunc i64 %28 to i32 %30 = add i64 %0, 24 %31 = inttoptr i64 %30 to i32* store i32 %29, i32* %31, align 4 br label LBL_3 LBL_3: %32 = icmp slt i32 %2, 18 store i32 %4, i32* %sv_0.1.reg2mem br i1 %32, label LBL_10, label LBL_4 LBL_4: %33 = call i64 @FUNC(i64 %1) %34 = add i32 %2, -18 %35 = sext i32 %34 to i64 %36 = trunc i64 %33 to i32 %37 = sub i32 %36, %34 %38 = xor i32 %34, %36 %39 = xor i32 %37, %36 %40 = and i32 %39, %38 %41 = icmp slt i32 %40, 0 %42 = icmp eq i32 %37, 0 %43 = icmp slt i32 %37, 0 %44 = icmp ne i1 %43, %41 %45 = or i1 %42, %44 %46 = select i1 %45, i32 %36, i32 %34 %47 = icmp slt i32 %46, 22 %48 = icmp eq i32 %4, 65534 %49 = icmp eq i1 %48, false %or.cond = or i1 %49, %47 store i64 %35, i64* %sv_1.0.reg2mem store i32 %4, i32* %sv_0.0.reg2mem store i32 %46, i32* %sv_2.0.reg2mem br i1 %or.cond, label LBL_6, label LBL_5 LBL_5: %50 = call i64 @FUNC(i64 %1) %51 = trunc i64 %50 to i32 %52 = add i64 %0, 24 %53 = inttoptr i64 %52 to i32* store i32 %51, i32* %53, align 4 %54 = call i64 @FUNC(i64 %1) %55 = trunc i64 %54 to i32 %56 = add i64 %0, 28 %57 = inttoptr i64 %56 to i32* store i32 %55, i32* %57, align 4 %58 = call i64 @FUNC(i64 %1) %59 = trunc i64 %58 to i32 %60 = call i64 @FUNC(i64 %1, i64 12) %61 = add i32 %46, -22 %62 = mul i64 %35, 4294967296 %sext2 = add i64 %62, -94489280512 %63 = ashr exact i64 %sext2, 32 store i64 %63, i64* %sv_1.0.reg2mem store i32 %59, i32* %sv_0.0.reg2mem store i32 %61, i32* %sv_2.0.reg2mem br label LBL_6 LBL_6: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %64 = add i64 %0, 32 %65 = inttoptr i64 %64 to i32* store i32 %sv_2.0.reload, i32* %65, align 4 %66 = icmp slt i32 %sv_2.0.reload, 1 store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem br i1 %66, label LBL_8, label LBL_7 LBL_7: %67 = add i32 %sv_2.0.reload, 32 %68 = sext i32 %67 to i64 %69 = call i64 @FUNC(i64 %68) %70 = add i64 %0, 40 %71 = inttoptr i64 %70 to i64* store i64 %69, i64* %71, align 8 %72 = load i32, i32* %65, align 4 %73 = call i64 @FUNC(i64 %1, i64 %69, i32 %72) %74 = trunc i64 %sv_1.0.reload to i32 %75 = sub i32 %74, %sv_2.0.reload %76 = sext i32 %75 to i64 store i64 %76, i64* %sv_1.1.reg2mem br label LBL_8 LBL_8: %sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem %77 = trunc i64 %sv_1.1.reload to i32 %78 = icmp slt i32 %77, 1 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %78, label LBL_10, label LBL_9 LBL_9: %79 = and i64 %sv_1.1.reload, 4294967295 %80 = call i64 @FUNC(i64 %1, i64 %79) store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_10 LBL_10: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %81 = add i64 %0, 24 %82 = inttoptr i64 %81 to i32* %83 = load i32, i32* %82, align 4 %84 = zext i32 %83 to i64 %85 = zext i32 %sv_0.1.reload to i64 %86 = call i64 @FUNC(i64 %85, i64 %84) %87 = trunc i64 %86 to i32 %88 = add i64 %0, 48 %89 = inttoptr i64 %88 to i32* store i32 %87, i32* %89, align 4 %90 = and i64 %86, 4294967295 %91 = icmp eq i32 %87, 2 %92 = icmp eq i1 %91, false store i64 %90, i64* %rax.0.reg2mem br i1 %92, label LBL_12, label LBL_11 LBL_11: store i32 0, i32* %11, align 4 store i32 0, i32* %15, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 2, 3, 1, 0 } uselistorder i32 %46, { 1, 0, 2 } uselistorder i32 %37, { 1, 2, 0 } uselistorder i32 %36, { 2, 1, 0, 3 } uselistorder i64 %35, { 1, 0 } uselistorder i32 %34, { 1, 0, 2, 3 } uselistorder i32 %4, { 1, 2, 0, 3 } uselistorder i32 %2, { 1, 0, 2 } uselistorder i64 %1, { 5, 4, 1, 0, 2, 3, 6, 7, 8, 9, 10, 11, 12 } uselistorder i64 %0, { 0, 6, 7, 4, 5, 2, 3, 8, 1, 9, 10, 11, 12, 13 } uselistorder i64 32, { 1, 0 } uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 8, { 1, 0 } uselistorder i64 (i64)* @avio_rl32, { 3, 2, 1, 0 } uselistorder i64 (i64)* @avio_rl16, { 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
decodingXOR_12454
decodingXOR
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.in.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv8.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg4, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = load i32, i32* @gv_0, align 4 %5 = icmp eq i32 %4, 0 %6 = trunc i64 %3 to i32 %7 = icmp sgt i32 %6, 0 br i1 %5, label LBL_3, label LBL_1 LBL_1: store i64 0, i64* %rax.0.in.reg2mem br i1 %7, label LBL_2, label LBL_7 LBL_2: %wide.trip.count10 = and i64 %3, 4294967295 store i64 0, i64* %indvars.iv8.reg2mem br label LBL_5 LBL_3: store i64 0, i64* %rax.0.in.reg2mem br i1 %7, label LBL_4, label LBL_7 LBL_4: %wide.trip.count = and i64 %3, 4294967295 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_5: %indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem %8 = add i64 %indvars.iv8.reload, %1 %9 = inttoptr i64 %8 to i8* %10 = load i8, i8* %9, align 1 %11 = urem i8 %10, 16 %12 = add i64 %indvars.iv8.reload, %2 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = zext i8 %14 to i64 %16 = zext i8 %11 to i64 %17 = mul i64 %16, 256 %18 = or i64 %17, %15 %19 = add i64 %18, ptrtoint (i8** @gv_1 to i64) %20 = inttoptr i64 %19 to i8* %21 = load i8, i8* %20, align 1 %22 = add i64 %indvars.iv8.reload, %0 %23 = xor i8 %21, %10 %24 = inttoptr i64 %22 to i8* store i8 %23, i8* %24, align 1 %indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1 %exitcond11 = icmp eq i64 %indvars.iv.next9, %wide.trip.count10 store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem store i64 %wide.trip.count10, i64* %rax.0.in.reg2mem br i1 %exitcond11, label LBL_7, label LBL_5 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %25 = add i64 %indvars.iv.reload, %1 %26 = inttoptr i64 %25 to i8* %27 = load i8, i8* %26, align 1 %28 = urem i8 %27, 16 %29 = add i64 %indvars.iv.reload, %2 %30 = inttoptr i64 %29 to i8* %31 = load i8, i8* %30, align 1 %32 = xor i8 %31, %27 %33 = zext i8 %32 to i64 %34 = zext i8 %28 to i64 %35 = mul i64 %34, 256 %36 = or i64 %35, %33 %37 = add i64 %36, ptrtoint (i8** @gv_1 to i64) %38 = inttoptr i64 %37 to i8* %39 = load i8, i8* %38, align 1 %40 = add i64 %indvars.iv.reload, %0 %41 = inttoptr i64 %40 to i8* store i8 %39, i8* %41, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %3, i64* %rax.0.in.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: %rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem %rax.0 = and i64 %rax.0.in.reload, 4294967295 ret i64 %rax.0 uselistorder i8 %27, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 } uselistorder i8 %10, { 1, 0 } uselistorder i64 %indvars.iv8.reload, { 0, 3, 2, 1 } uselistorder i1 %7, { 1, 0 } uselistorder i64* %indvars.iv8.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.in.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i64 4294967295, { 2, 0, 1 } uselistorder i32 0, { 0, 2, 1 } uselistorder label LBL_7, { 1, 0, 3, 2 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
io_uring_flush_7196
io_uring_flush
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = load i32*, i32** @gv_0, align 8 %1 = ptrtoint i32* %0 to i64 %2 = call i64 @FUNC(i64 %1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = load i32*, i32** @gv_0, align 8 %7 = load i32, i32* %6, align 4 %8 = urem i32 %7, 2 %9 = icmp eq i32 %8, 0 store i64 %arg2, i64* %sv_0.0.reg2mem br i1 %9, label LBL_3, label LBL_2 LBL_2: store i64 0, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %10 = ptrtoint i64* %arg1 to i64 %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %11 = call i64 @FUNC(i64 %10, i64 %sv_0.0.reload) %12 = icmp eq i64 %sv_0.0.reload, 0 %13 = zext i1 %12 to i64 %14 = call i64 @FUNC(i64 %10, i64 %13) ret i64 0 uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } }
0
BinRealVul
page_zip_validate_17925
page_zip_validate
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %sv_0.4.reg2mem = alloca i64 %sv_0.3.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i64* %arg1 to i64 %5 = load i32, i32* %1 %6 = load i32, i32* %1 %sv_1 = alloca i64, align 8 %7 = add i64 %4, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 store i64 %4, i64* %sv_1, align 8 %10 = add i64 %4, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %3) %14 = and i64 %13, 4294967295 %15 = call i64 @FUNC(i64 %14) %16 = trunc i64 %13 to i8 %17 = trunc i64 %2 to i8 %18 = icmp eq i8 %16, %17 %19 = icmp eq i1 %18, false br i1 %19, label LBL_3, label LBL_1 LBL_1: %20 = add i64 %3, 16 %21 = add nuw nsw i64 %14, 2 %22 = inttoptr i64 %21 to i64* %23 = inttoptr i64 %20 to i64* %24 = call i32 @memcmp(i64* %22, i64* %23, i32 2) %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_3, label LBL_2 LBL_2: %27 = add nuw nsw i64 %14, 5 %28 = inttoptr i64 %27 to i8* %29 = load i8, i8* %28, align 1 %30 = add i64 %3, 24 %31 = inttoptr i64 %30 to i8* %32 = load i8, i8* %31, align 1 %33 = icmp eq i8 %29, %32 br i1 %33, label LBL_4, label LBL_3 LBL_3: %34 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %35 = call i32 @fwrite(i64* bitcast ([43 x i8]* @gv_1 to i64*), i32 1, i32 42, %_IO_FILE* %34) store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_4: %36 = load i32, i32* inttoptr (i64 4210796 to i32*), align 4 %37 = icmp eq i32 %36, 0 store i64 1, i64* %rax.0.reg2mem br i1 %37, label LBL_5, label LBL_18 LBL_5: %38 = call i64 @FUNC(i64 8192) %39 = call i64 @FUNC(i64 %38, i64 4096) %40 = call i64 @FUNC(i64* nonnull %sv_1, i64 %39) %41 = trunc i64 %40 to i32 %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false br i1 %43, label LBL_7, label LBL_6 LBL_6: %44 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %45 = call i32 @fwrite(i64* bitcast ([43 x i8]* @gv_2 to i64*), i32 1, i32 42, %_IO_FILE* %44) store i64 %40, i64* %sv_0.4.reg2mem br label LBL_17 LBL_7: %46 = trunc i64 %9 to i32 %47 = inttoptr i64 %7 to i32* %48 = load i32, i32* %47, align 4 %49 = icmp eq i32 %48, %46 store i64 %40, i64* %sv_0.0.reg2mem br i1 %49, label LBL_9, label LBL_8 LBL_8: %50 = and i64 %9, 4294967295 %51 = zext i32 %48 to i64 %52 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %53 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %52, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_3, i64 0, i64 0), i64 %51, i64 %50) store i64 0, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %54 = add i64 %4, 12 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 %57 = icmp eq i32 %56, %6 store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br i1 %57, label LBL_11, label LBL_10 LBL_10: %58 = zext i32 %6 to i64 %59 = zext i32 %56 to i64 %60 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %61 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %60, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_4, i64 0, i64 0), i64 %59, i64 %58) store i64 0, i64* %sv_0.1.reg2mem br label LBL_11 LBL_11: %62 = trunc i64 %12 to i32 %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %63 = inttoptr i64 %10 to i32* %64 = load i32, i32* %63, align 4 %65 = icmp eq i32 %64, %62 store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem br i1 %65, label LBL_13, label LBL_12 LBL_12: %66 = and i64 %12, 4294967295 %67 = zext i32 %64 to i64 %68 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %69 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %68, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_5, i64 0, i64 0), i64 %67, i64 %66) store i64 0, i64* %sv_0.2.reg2mem br label LBL_13 LBL_13: %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem %70 = add i64 %4, 20 %71 = inttoptr i64 %70 to i32* %72 = load i32, i32* %71, align 4 %73 = icmp eq i32 %72, %5 store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem br i1 %73, label LBL_15, label LBL_14 LBL_14: %74 = zext i32 %5 to i64 %75 = zext i32 %72 to i64 %76 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %77 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %76, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_6, i64 0, i64 0), i64 %75, i64 %74) store i64 0, i64* %sv_0.3.reg2mem br label LBL_15 LBL_15: %sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem %78 = add i64 %39, 40 %79 = add i64 %3, 40 %80 = inttoptr i64 %79 to i64* %81 = inttoptr i64 %78 to i64* %82 = call i32 @memcmp(i64* %80, i64* %81, i32 4085) %83 = icmp eq i32 %82, 0 store i64 %sv_0.3.reload, i64* %sv_0.4.reg2mem br i1 %83, label LBL_17, label LBL_16 LBL_16: %84 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %85 = call i32 @fwrite(i64* bitcast ([39 x i8]* @gv_7 to i64*), i32 1, i32 38, %_IO_FILE* %84) store i64 0, i64* %sv_0.4.reg2mem br label LBL_17 LBL_17: %sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem %86 = call i64 @FUNC(i64 %38) %87 = and i64 %sv_0.4.reload, 4294967295 store i64 %87, 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 %40, { 1, 0, 2 } uselistorder i64 %4, { 0, 1, 4, 2, 3 } uselistorder i64* %sv_0.4.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %1, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 3, 2, 1, 0 } uselistorder i64 0, { 1, 2, 6, 7, 3, 8, 9, 4, 10, 11, 5, 12, 13, 0, 14 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 3, 2, 1, 0 } uselistorder %_IO_FILE** @gv_0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 } uselistorder label LBL_18, { 1, 0, 2 } uselistorder label LBL_17, { 1, 0, 2 } }
1
BinRealVul
mpc8_read_header_3466
mpc8_read_header
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %rcx.0.lcssa17.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 store i32 0, i32* %sv_1, align 4 %8 = call i64 @FUNC(i64 %7) %sext = mul i64 %8, 4294967296 %9 = ashr exact i64 %sext, 32 %10 = add i64 %4, 16 %11 = inttoptr i64 %10 to i64* store i64 %9, i64* %11, align 8 %12 = call i64 @FUNC(i64 %7) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 1297105739 br i1 %14, label LBL_1, label LBL_2 LBL_1: %15 = inttoptr i64 %7 to i32* %16 = call i64 @FUNC(i64 %7) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_3, label LBL_8 LBL_2: %19 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_17 LBL_3: %20 = call i64 @FUNC(i64 %7) %21 = call i64 @FUNC(i64 %7, i32* nonnull %sv_1, i64* nonnull %sv_0) %22 = load i64, i64* %sv_0, align 8 %23 = icmp slt i64 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = ptrtoint i32* %sv_1 to i64 %26 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %25, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_17 LBL_5: %27 = load i32, i32* %sv_1, align 4 %28 = icmp eq i32 %27, 1937011309 br i1 %28, label LBL_9, label LBL_6 LBL_6: %sext10 = mul i64 %20, 4294967296 %29 = ashr exact i64 %sext10, 32 %30 = call i64 @FUNC(i64 %4, i32 %27, i64 %29, i64 %22) %31 = call i64 @FUNC(i64 %7) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_3, label LBL_7 LBL_7: %.pr.pre = load i32, i32* %sv_1, align 4 %phitmp16 = icmp eq i32 %.pr.pre, 1937011309 store i64 %22, i64* %rcx.0.lcssa17.reg2mem br i1 %phitmp16, label LBL_9, label LBL_8 LBL_8: %rcx.0.lcssa17.reload = load i64, i64* %rcx.0.lcssa17.reg2mem %34 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 %rcx.0.lcssa17.reload, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_17 LBL_9: %35 = call i64 @FUNC(i64 %7) %36 = call i64 @FUNC(i64 %7, i64 4) %37 = call i64 @FUNC(i64 %7) %38 = trunc i64 %37 to i32 %39 = bitcast i64* %arg1 to i32* store i32 %38, i32* %39, align 4 %40 = bitcast i64* %rdi to i32* %41 = load i32, i32* %40, align 8 %42 = icmp eq i32 %41, 8 br i1 %42, label LBL_11, label LBL_10 LBL_10: %43 = zext i32 %41 to i64 %44 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i64 %43, i64 %2, i64 %1) store i64 4294967294, i64* %rax.0.reg2mem br label LBL_17 LBL_11: %45 = call i64 @FUNC(i64 %7) %sext3 = mul i64 %45, 4294967296 %46 = ashr exact i64 %sext3, 32 store i64 %46, i64* %6, align 8 %47 = call i64 @FUNC(i64 %7) %48 = call i64 @FUNC(i64 %4, i64 0) %49 = icmp eq i64 %48, 0 %50 = icmp eq i1 %49, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %50, label LBL_12, label LBL_17 LBL_12: %51 = inttoptr i64 %48 to i64* %52 = load i64, i64* %51, align 8 %53 = inttoptr i64 %52 to i32* store i32 1, i32* %53, align 4 %54 = load i64, i64* %51, align 8 %55 = add i64 %54, 4 %56 = inttoptr i64 %55 to i32* store i32 2, i32* %56, align 4 %57 = load i64, i64* %51, align 8 %58 = add i64 %57, 8 %59 = inttoptr i64 %58 to i32* store i32 16, i32* %59, align 4 %60 = load i64, i64* %51, align 8 %61 = call i64 @FUNC(i64 %60, i64 %7, i64 2) %62 = trunc i64 %61 to i32 %63 = icmp slt i32 %62, 0 %64 = icmp eq i1 %63, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %64, label LBL_13, label LBL_17 LBL_13: %65 = load i64, i64* %51, align 8 %66 = add i64 %65, 24 %67 = inttoptr i64 %66 to i64* %68 = load i64, i64* %67, align 8 %69 = add i64 %68, 1 %70 = inttoptr i64 %69 to i8* %71 = load i8, i8* %70, align 1 %72 = udiv i8 %71, 16 %narrow = add nuw nsw i8 %72, 1 %73 = zext i8 %narrow to i32 %74 = add i64 %65, 12 %75 = inttoptr i64 %74 to i32* store i32 %73, i32* %75, align 4 %76 = load i64, i64* %51, align 8 %77 = add i64 %76, 24 %78 = inttoptr i64 %77 to i64* %79 = load i64, i64* %78, align 8 %80 = inttoptr i64 %79 to i8* %81 = load i8, i8* %80, align 1 %82 = udiv i8 %81, 32 %83 = mul i8 %82, 4 %84 = zext i8 %83 to i64 %85 = add i64 %84, ptrtoint (i32** @gv_4 to i64) %86 = inttoptr i64 %85 to i32* %87 = load i32, i32* %86, align 4 %88 = add i64 %76, 16 %89 = inttoptr i64 %88 to i32* store i32 %87, i32* %89, align 4 %90 = load i64, i64* %51, align 8 %91 = add i64 %90, 16 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = add i64 %90, 24 %95 = inttoptr i64 %94 to i64* %96 = load i64, i64* %95, align 8 %97 = add i64 %96, 1 %98 = inttoptr i64 %97 to i8* %99 = load i8, i8* %98, align 1 %100 = mul i8 %99, 2 %101 = and i8 %100, 6 %102 = icmp eq i8 %101, 0 store i64 1152, i64* %storemerge.reg2mem br i1 %102, label %107, label %103 LBL_14: %137 = call i64 @FUNC(i64 %7, i64 %135) br label LBL_15 LBL_15: %138 = load i32, i32* %15, align 4 %139 = icmp eq i32 %138, 0 store i64 0, i64* %rax.0.reg2mem br i1 %139, label LBL_17, label LBL_16 LBL_16: %140 = load i64, i64* %6, align 8 %141 = call i64 @FUNC(i64 %140) %sext8 = mul i64 %141, 4294967296 %142 = ashr exact i64 %sext8, 32 %143 = call i64 @FUNC(i64 %4) %sext9 = mul i64 %143, 4294967296 %144 = ashr exact i64 %sext9, 32 %145 = add i64 %4, 24 %146 = inttoptr i64 %145 to i64* store i64 %144, i64* %146, align 8 %147 = load i64, i64* %6, align 8 %148 = call i64 @FUNC(i64 %147, i64 %142, i64 0) store i64 0, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %121, { 1, 0 } uselistorder i8 %101, { 1, 0 } uselistorder i64 %48, { 0, 2, 1, 3, 4 } uselistorder i64 %7, { 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 0, 12, 13, 14 } uselistorder i32* %sv_1, { 0, 2, 3, 1, 4 } uselistorder i64* %sv_0, { 1, 2, 3, 0 } uselistorder i64 %4, { 5, 6, 7, 4, 3, 2, 1, 0, 8, 9 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge6.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 8, 7, 6, 5 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @ffio_read_varlen, { 1, 0 } uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 } uselistorder i64 (i64)* @avio_feof, { 1, 0 } uselistorder i64 32, { 1, 2, 3, 5, 7, 4, 0, 6 } uselistorder i64 4294967296, { 0, 1, 2, 4, 3, 5, 6 } uselistorder i64 (i64)* @avio_tell, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 2, 3, 4, 0, 1 } uselistorder i64 8, { 1, 2, 3, 0 } uselistorder label LBL_17, { 1, 0, 2, 3, 4, 5, 6, 7 } uselistorder label %126, { 1, 0 } uselistorder label %107, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
_sdsMakeRoomFor_19010
_sdsMakeRoomFor
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %0 = call i64 @FUNC(i64 %arg1) %1 = add i64 %arg1, -1 %2 = inttoptr i64 %1 to i8* %3 = load i8, i8* %2, align 1 %4 = icmp ult i64 %0, %arg2 store i64 %arg1, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_15 LBL_1: %5 = call i64 @FUNC(i64 %arg1) %6 = add i64 %5, %arg2 %7 = icmp ult i64 %6, %5 br i1 %7, label LBL_2, label LBL_3 LBL_2: call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 62, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) br label LBL_3 LBL_3: %8 = trunc i64 %arg3 to i32 %9 = icmp eq i32 %8, 1 %10 = icmp eq i1 %9, false store i64 %6, i64* %sv_1.0.reg2mem br i1 %10, label LBL_7, label LBL_4 LBL_4: %11 = icmp ult i64 %6, 1048576 br i1 %11, label LBL_5, label LBL_6 LBL_5: %12 = mul i64 %6, 2 store i64 %12, i64* %sv_1.0.reg2mem br label LBL_7 LBL_6: %13 = add i64 %6, 1048576 store i64 %13, i64* %sv_1.0.reg2mem br label LBL_7 LBL_7: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %14 = call i64 @FUNC(i64 %sv_1.0.reload) %15 = trunc i64 %14 to i8 %16 = icmp eq i8 %15, 0 %17 = icmp eq i1 %16, false %spec.select = select i1 %17, i8 %15, i8 1 %18 = icmp eq i8 %spec.select, 0 %19 = icmp eq i1 %18, false %storemerge5 = select i1 %19, i64 8, i64 5 %20 = add i64 %sv_1.0.reload, 1 %21 = add i64 %20, %storemerge5 %22 = icmp ult i64 %5, %21 br i1 %22, label LBL_9, label LBL_8 LBL_8: call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) br label LBL_9 LBL_9: %23 = urem i8 %3, 4 %24 = icmp eq i8 %23, 0 %25 = icmp eq i1 %24, false %. = select i1 %25, i64 -8, i64 -5 %26 = add i64 %., %arg1 %27 = icmp eq i8 %23, %spec.select %28 = icmp eq i1 %27, false br i1 %28, label LBL_12, label LBL_10 LBL_10: %29 = call i64 @FUNC(i64 %26, i64 %21, i64* nonnull %sv_2) %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_11, label LBL_15 LBL_11: %32 = add i64 %29, %storemerge5 store i64 %32, i64* %sv_0.0.reg2mem br label LBL_14 LBL_12: %33 = call i64 @FUNC(i64 %21, i64* nonnull %sv_2) %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false store i64 0, i64* %rax.0.reg2mem br i1 %35, label LBL_13, label LBL_15 LBL_13: %36 = add i64 %33, %storemerge5 %37 = inttoptr i64 %36 to i64* %38 = inttoptr i64 %arg1 to i64* %39 = trunc i64 %5 to i32 %40 = add i32 %39, 1 %41 = call i64* @memcpy(i64* %37, i64* %38, i32 %40) %42 = call i64 @FUNC(i64 %26) %43 = add i64 %36, -1 %44 = inttoptr i64 %43 to i8* store i8 %spec.select, i8* %44, align 1 %45 = call i64 @FUNC(i64 %36, i64 %5) store i64 %36, i64* %sv_0.0.reg2mem br label LBL_14 LBL_14: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %46 = load i64, i64* %sv_2, align 8 %47 = sub i64 0, %storemerge5 %48 = sub i64 %47, 1 %49 = add i64 %46, %48 %.7 = select i1 %19, i64 256, i64 32 %50 = icmp ult i64 %.7, %49 %51 = icmp eq i1 %50, false %spec.select9 = select i1 %51, i64 %49, i64 %.7 store i64 %spec.select9, i64* %sv_2, align 8 %52 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %spec.select9) store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %spec.select9, { 1, 0 } uselistorder i64 %36, { 0, 2, 1, 3 } uselistorder i64 %26, { 1, 0 } uselistorder i8 %23, { 1, 0 } uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i64 %6, { 3, 1, 2, 0, 4 } uselistorder i64 %5, { 1, 2, 3, 4, 0 } uselistorder i64* %sv_2, { 0, 3, 1, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 1048576, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i32 1, { 4, 5, 6, 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 3, 0, 4, 5 } uselistorder label LBL_15, { 3, 0, 1, 2 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
fixup_bad_iret_8002
fixup_bad_iret
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = load i64, i64* @gv_0, align 8 %2 = call i64 @FUNC(i64 %1) %3 = add i64 %2, -16 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %3 to i64* %8 = inttoptr i64 %6 to i64* %9 = call i64* @memmove(i64* %7, i64* %8, i32 40) %10 = call i64 @FUNC(i64 %3) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = zext i1 %12 to i64 %14 = call i64 @FUNC(i64 %13) ret i64 %3 uselistorder i64 %3, { 2, 1, 0 } }
0
BinRealVul
crypto_rfc4309_crypt_8150
crypto_rfc4309_crypt
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %2) %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i64 %6) %9 = add i64 %1, 80 %10 = add i64 %9, %7 %11 = add i64 %10, %8 %12 = call i64 @FUNC(i64 %6) %13 = sub i64 0, %12 %14 = sub i64 %13, 1 %15 = and i64 %11, %14 %16 = inttoptr i64 %15 to i8* store i8 3, i8* %16, align 1 %17 = add i64 %15, 1 %18 = inttoptr i64 %17 to i64* %19 = inttoptr i64 %3 to i64* %20 = call i64* @memcpy(i64* %18, i64* %19, i32 3) %21 = add i64 %0, 64 %22 = add i64 %15, 4 %23 = inttoptr i64 %21 to i64* %24 = load i64, i64* %23, align 8 %25 = inttoptr i64 %22 to i64* store i64 %24, i64* %25, align 8 %26 = call i64 @FUNC(i64 %1, i64 %6) %27 = add i64 %0, 56 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %0, 48 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = add i64 %0, 40 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = call i64 @FUNC(i64 %1, i32 %35, i64 %32, i64 %29) %37 = add i64 %0, 24 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = add i64 %0, 8 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = call i64 @FUNC(i64 %1, i64 %1, i64 %42, i64 %39, i64 %15) %44 = add i64 %0, 32 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = add i64 %0, 16 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = call i64 @FUNC(i64 %1, i64 %49, i64 %46) ret i64 %1 uselistorder i64 %1, { 1, 2, 4, 3, 5, 6, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 80, { 1, 0 } uselistorder i64 (i64)* @crypto_aead_alignmask, { 1, 0 } }
0
BinRealVul
qxl_reset_surfaces_17102
qxl_reset_surfaces
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %1) %5 = bitcast i64* %arg1 to i32* store i32 0, i32* %5, align 4 %6 = call i64 @FUNC() %7 = call i64 @FUNC() %8 = add i64 %3, 16 %9 = inttoptr i64 %8 to i64* %10 = call i64* @memset(i64* %9, i32 0, i32 4) %11 = ptrtoint i64* %10 to i64 ret i64 %11 uselistorder i64* %0, { 1, 0 } }
1
BinRealVul
curl_easy_escape_11120
curl_easy_escape
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.2.lcssa.reg2mem = alloca i64 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i64 %sv_3.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_3.0.reg2mem = alloca i64 %sv_4.08.reg2mem = alloca i64 %sv_3.29.reg2mem = alloca i64 %sv_2.110.reg2mem = alloca i64 %sv_1.111.reg2mem = alloca i32 %sv_0.212.reg2mem = alloca i64 %.in.reg2mem = alloca i64 %storemerge.in.reg2mem = alloca i64 %sv_5 = alloca i32, align 4 %0 = trunc i64 %arg3 to i32 %1 = icmp eq i32 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: %sext = mul i64 %arg3, 4294967296 %2 = ashr exact i64 %sext, 32 store i64 %2, i64* %storemerge.in.reg2mem br label LBL_3 LBL_2: %3 = inttoptr i64 %arg2 to i8* %4 = call i32 @strlen(i8* %3) %5 = sext i32 %4 to i64 store i64 %5, i64* %storemerge.in.reg2mem br label LBL_3 LBL_3: %storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem %storemerge = add nsw i64 %storemerge.in.reload, 1 %6 = trunc i64 %storemerge to i32 %7 = call i64* @malloc(i32 %6) %8 = icmp eq i64* %7, null %9 = icmp eq i1 %8, false store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_4, label LBL_17 LBL_4: %10 = ptrtoint i64* %7 to i64 %11 = icmp eq i64 %storemerge.in.reload, 0 %12 = icmp eq i1 %11, false store i32 0, i32* %sv_1.1.lcssa.reg2mem store i64 %10, i64* %sv_0.2.lcssa.reg2mem br i1 %12, label LBL_5, label LBL_16 LBL_5: %13 = bitcast i32* %sv_5 to i8* store i64 %storemerge.in.reload, i64* %.in.reg2mem store i64 %10, i64* %sv_0.212.reg2mem store i32 0, i32* %sv_1.111.reg2mem store i64 %storemerge, i64* %sv_2.110.reg2mem store i64 %storemerge, i64* %sv_3.29.reg2mem store i64 %arg2, i64* %sv_4.08.reg2mem br label LBL_6 LBL_6: %sv_4.08.reload = load i64, i64* %sv_4.08.reg2mem %sv_3.29.reload = load i64, i64* %sv_3.29.reg2mem %sv_2.110.reload = load i64, i64* %sv_2.110.reg2mem %sv_1.111.reload = load i32, i32* %sv_1.111.reg2mem %sv_0.212.reload = load i64, i64* %sv_0.212.reg2mem %.in.reload = load i64, i64* %.in.reg2mem %14 = inttoptr i64 %sv_4.08.reload to i8* %15 = load i8, i8* %14, align 1 %16 = sext i8 %15 to i32 store i32 %16, i32* %sv_5, align 4 %17 = zext i8 %15 to i64 %18 = call i64 @FUNC(i64 %17) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_8, label LBL_7 LBL_7: %21 = load i32, i32* %sv_5, align 4 %22 = add i32 %sv_1.111.reload, 1 %23 = sext i32 %sv_1.111.reload to i64 %24 = add i64 %sv_0.212.reload, %23 %25 = trunc i32 %21 to i8 %26 = inttoptr i64 %24 to i8* store i8 %25, i8* %26, align 1 store i64 %sv_3.29.reload, i64* %sv_3.1.reg2mem store i64 %sv_2.110.reload, i64* %sv_2.0.reg2mem store i32 %22, i32* %sv_1.0.reg2mem store i64 %sv_0.212.reload, i64* %sv_0.1.reg2mem br label LBL_15 LBL_8: %27 = add i64 %sv_2.110.reload, 2 %28 = icmp ugt i64 %27, %sv_3.29.reload store i64 %sv_3.29.reload, i64* %sv_3.0.reg2mem store i64 %sv_0.212.reload, i64* %sv_0.0.reg2mem br i1 %28, label LBL_9, label LBL_12 LBL_9: %29 = mul i64 %sv_3.29.reload, 2 %30 = inttoptr i64 %sv_0.212.reload to i64* %31 = trunc i64 %29 to i32 %32 = call i64* @realloc(i64* %30, i32 %31) %33 = icmp eq i64* %32, null %34 = icmp eq i1 %33, false br i1 %34, label LBL_11, label LBL_10 LBL_10: call void @free(i64* %30) store i64 0, i64* %rax.0.reg2mem br label LBL_17 LBL_11: %35 = ptrtoint i64* %32 to i64 store i64 %29, i64* %sv_3.0.reg2mem store i64 %35, i64* %sv_0.0.reg2mem br label LBL_12 LBL_12: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %36 = call i64 @FUNC(i64 %arg1, i8* nonnull %13, i64 1) %37 = trunc i64 %36 to i32 %38 = icmp eq i32 %37, 0 br i1 %38, label LBL_14, label LBL_13 LBL_13: %39 = inttoptr i64 %sv_0.0.reload to i64* call void @free(i64* %39) store i64 0, i64* %rax.0.reg2mem br label LBL_17 LBL_14: %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %40 = load i32, i32* %sv_5, align 4 %41 = sext i32 %sv_1.111.reload to i64 %42 = add i64 %sv_0.0.reload, %41 %43 = urem i32 %40, 256 %44 = inttoptr i64 %42 to i8* %45 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %44, i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 %43) %46 = add i32 %sv_1.111.reload, 3 store i64 %sv_3.0.reload, i64* %sv_3.1.reg2mem store i64 %27, i64* %sv_2.0.reg2mem store i32 %46, i32* %sv_1.0.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_15 LBL_15: %47 = add i64 %.in.reload, -1 %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem %48 = add i64 %sv_4.08.reload, 1 %49 = icmp eq i64 %47, 0 %50 = icmp eq i1 %49, false store i64 %47, i64* %.in.reg2mem store i64 %sv_0.1.reload, i64* %sv_0.212.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.111.reg2mem store i64 %sv_2.0.reload, i64* %sv_2.110.reg2mem store i64 %sv_3.1.reload, i64* %sv_3.29.reg2mem store i64 %48, i64* %sv_4.08.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem store i64 %sv_0.1.reload, i64* %sv_0.2.lcssa.reg2mem br i1 %50, label LBL_6, label LBL_16 LBL_16: %sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %51 = sext i32 %sv_1.1.lcssa.reload to i64 %52 = add i64 %sv_0.2.lcssa.reload, %51 %53 = inttoptr i64 %52 to i8* store i8 0, i8* %53, align 1 store i64 %sv_0.2.lcssa.reload, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %32, { 1, 0 } uselistorder i64 %sv_0.212.reload, { 2, 1, 0, 3 } uselistorder i32 %sv_1.111.reload, { 2, 3, 1, 0 } uselistorder i64 %sv_2.110.reload, { 1, 0 } uselistorder i64 %sv_3.29.reload, { 3, 1, 2, 0 } uselistorder i64 %10, { 1, 0 } uselistorder i64* %7, { 1, 0 } uselistorder i64 %storemerge.in.reload, { 0, 2, 1 } uselistorder i32* %sv_5, { 2, 1, 0, 3 } uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 } uselistorder i64* %.in.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.212.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.111.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.110.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_3.29.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_4.08.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_3.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_3.1.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 } uselistorder i1 false, { 2, 1, 0, 3 } uselistorder i64 1, { 3, 2, 1, 0 } uselistorder i32 1, { 16, 17, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_17, { 3, 1, 2, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
gdi_CopyOverlap_18066
gdi_CopyOverlap
define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i32 %1 = load i32, i32* %0 %2 = load i32, i32* %0 %3 = load i32, i32* %0 %4 = load i32, i32* %0 %5 = load i32, i32* %0 %6 = load i32, i32* %0 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 %7 = trunc i64 %arg6 to i32 %8 = and i64 %arg1, 4294967295 %9 = bitcast i32* %sv_1 to i64* %10 = call i64 @FUNC(i64 %8, i32 %arg2, i32 %arg3, i32 %arg4, i64* nonnull %9) %11 = and i64 %arg5, 4294967295 %12 = bitcast i32* %sv_0 to i64* %13 = call i64 @FUNC(i64 %11, i32 %7, i32 %arg3, i32 %arg4, i64* nonnull %12) %14 = load i32, i32* %sv_0, align 4 %15 = icmp ugt i32 %6, %14 %16 = load i32, i32* %sv_1, align 4 %17 = icmp ult i32 %16, %5 %or.cond = icmp eq i1 %15, %17 %18 = icmp ugt i32 %4, %3 %or.cond4 = icmp eq i1 %18, %or.cond %19 = icmp ult i32 %2, %1 %or.cond5 = icmp eq i1 %19, %or.cond4 %storemerge = zext i1 %or.cond5 to i64 ret i64 %storemerge uselistorder i32* %0, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i32, i32, i32, i64*)* @gdi_CRgnToRect, { 1, 0 } uselistorder i32 1, { 1, 2, 0 } }
1
reposvul_c_test
nfs_file_set_open_context_60
nfs_file_set_open_context
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) store i64 %1, i64* %arg1, align 8 %2 = call i64 @FUNC(i64 0, i64 %0) %3 = add i64 %0, 8 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %0) store i64 %7, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
aio_ctx_finalize_578
aio_ctx_finalize
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rdi.0.reg2mem = alloca i64 %rdi.12.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 = call i64 @FUNC(i64 %3) %5 = add i64 %0, 16 %6 = call i64 @FUNC(i64 %5) %7 = icmp eq i64 %5, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %rdi.12.reg2mem br i1 %8, label LBL_1, label LBL_4 LBL_1: %rdi.12.reload = load i64, i64* %rdi.12.reg2mem %9 = add i64 %rdi.12.reload, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 %rdi.12.reload, i64* %rdi.0.reg2mem br i1 %13, label LBL_3, label LBL_2 LBL_2: call void @__assert_fail(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([23 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem br label LBL_3 LBL_3: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %14 = call i64 @FUNC(i64 %rdi.0.reload) store i64 %rdi.12.reload, i64* %arg1, align 8 %15 = icmp eq i64 %rdi.0.reload, 0 %16 = icmp eq i1 %15, false store i64 %rdi.0.reload, i64* %rdi.12.reg2mem br i1 %16, label LBL_1, label LBL_4 LBL_4: %17 = call i64 @FUNC(i64 %5) %18 = add i64 %0, 24 %19 = call i64 @FUNC(i64 %0, i64 %18, i64 0) %20 = call i64 @FUNC(i64 %18) %21 = add i64 %0, 32 %22 = call i64 @FUNC(i64 %21) %23 = call i64 @FUNC(i64 %5) %24 = add i64 %0, 40 %25 = call i64 @FUNC(i64 %24) ret i64 %25 uselistorder i64 %rdi.0.reload, { 2, 1, 0 } uselistorder i64 %rdi.12.reload, { 1, 0, 2 } uselistorder i64 %5, { 2, 3, 0, 1, 4 } uselistorder i64 %0, { 1, 0, 3, 2, 4, 5 } uselistorder i64* %rdi.12.reg2mem, { 2, 0, 1 } uselistorder [23 x i8]* @gv_0, { 1, 0 } uselistorder i1 false, { 2, 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
coeff_unpack_golomb_194
coeff_unpack_golomb
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = icmp eq i32 %2, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = trunc i64 %4 to i32 %7 = trunc i64 %arg2 to i32 %8 = mul i32 %2, %7 %9 = mul i32 %8, %6 %10 = add i32 %9, %arg3 %11 = udiv i32 %10, 4 %12 = mul i32 %11, %6 %phitmp = zext i32 %12 to i64 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i32 0, { 1, 0, 2, 3 } }
0
BinRealVul
cifs_compose_mount_options_7685
cifs_compose_mount_options
define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64* %sv_1.1.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_2.0.ph.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i8* %1 = load i64, i64* %0 %sv_3 = alloca i8, align 1 %sv_4 = alloca i8*, align 8 store i8* null, i8** %sv_4, align 8 store i8 44, i8* %sv_3, align 1 %2 = icmp eq i64 %arg1, 0 %3 = icmp eq i1 %2, false store i64 -22, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_23 LBL_1: %4 = ptrtoint i64* %arg4 to i64 %5 = ptrtoint i64* %arg3 to i64 %6 = inttoptr i64 %arg2 to i8* %7 = call i32 @strlen(i8* %6) %8 = add i64 %5, 8 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = sext i32 %10 to i64 %12 = icmp eq i32 %7, %10 %13 = add i64 %11, %arg2 %spec.select = select i1 %12, i64 0, i64 %13 %14 = call i64 @FUNC(i64 %11, i64 %spec.select) store i64 %14, i64* %arg4, align 8 %15 = icmp slt i64* %arg4, null %16 = icmp eq i1 %15, false br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = and i64 %4, 4294967295 %18 = inttoptr i64 %17 to i64* store i64 0, i64* %arg4, align 8 store i64 0, i64* %sv_1.1.reg2mem store i64* %18, i64** %sv_0.0.reg2mem br label LBL_22 LBL_3: %19 = bitcast i8** %sv_4 to i64* %20 = call i64 @FUNC(i64 %4, i64* nonnull %19) %21 = trunc i64 %20 to i32 %22 = icmp slt i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_5, label LBL_4 LBL_4: %24 = and i64 %20, 4294967295 %25 = inttoptr i64 %24 to i64* %26 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %24, i64 %1) store i64 0, i64* %sv_1.1.reg2mem store i64* %25, i64** %sv_0.0.reg2mem br label LBL_22 LBL_5: %27 = inttoptr i64 %arg1 to i8* %28 = call i32 @strlen(i8* %27) %29 = add i32 %28, 47 %30 = sext i32 %29 to i64 %31 = call i64 @FUNC(i64 %30, i64 0) %32 = icmp eq i64 %31, 0 %33 = icmp eq i1 %32, false store i64 %31, i64* %sv_1.1.reg2mem store i64* inttoptr (i32 -12 to i64*), i64** %sv_0.0.reg2mem br i1 %33, label LBL_6, label LBL_22 LBL_6: %34 = call i32 @strncmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i32 4) %35 = icmp eq i32 %34, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_6.LBL_9_crit_edge, label LBL_8 LBL_7: %.pre = inttoptr i64 %31 to i8* store i8* %.pre, i8** %.pre-phi.reg2mem store i32 0, i32* %sv_2.0.ph.reg2mem br label LBL_9 LBL_8: %37 = add i64 %arg1, 4 %38 = inttoptr i64 %37 to i8* %39 = load i8, i8* %38, align 1 store i8 %39, i8* %sv_3, align 1 %40 = inttoptr i64 %31 to i8* %41 = call i8* @strncpy(i8* %40, i8* %27, i32 5) store i8* %40, i8** %.pre-phi.reg2mem store i32 5, i32* %sv_2.0.ph.reg2mem br label LBL_9 LBL_9: %42 = add i32 %28, 46 %sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem %.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem store i32 %sv_2.0.ph.reload, i32* %sv_2.0.reg2mem br label LBL_10 LBL_10: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %43 = load i8, i8* %sv_3, align 1 %44 = sext i32 %sv_2.0.reload to i64 %45 = add i64 %44, %arg1 %46 = sext i8 %43 to i32 %47 = inttoptr i64 %45 to i8* %48 = call i8* @strchr(i8* %47, i32 %46) %49 = icmp eq i8* %48, null %50 = icmp eq i1 %49, false br i1 %50, label LBL_12, label LBL_11 LBL_11: %51 = call i32 @strlen(i8* %47) store i32 %51, i32* %storemerge3.reg2mem br label LBL_13 LBL_12: %52 = ptrtoint i8* %48 to i64 %53 = zext i32 %sv_2.0.reload to i64 %54 = add i64 %53, %arg1 %55 = sub i64 %52, %54 %56 = trunc i64 %55 to i32 %57 = add i32 %56, 1 store i32 %57, i32* %storemerge3.reg2mem br label LBL_13 LBL_13: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %58 = call i32 @strncasecmp(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i32 4) %59 = icmp eq i32 %58, 0 %60 = icmp eq i1 %59, false br i1 %60, label LBL_14, label LBL_17 LBL_14: %61 = call i32 @strncasecmp(i8* %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i32 3) %62 = icmp eq i32 %61, 0 %63 = icmp eq i1 %62, false br i1 %63, label LBL_15, label LBL_17 LBL_15: %64 = call i32 @strncasecmp(i8* %47, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0), i32 11) %65 = icmp eq i32 %64, 0 %66 = icmp eq i1 %65, false br i1 %66, label LBL_16, label LBL_17 LBL_16: %67 = call i8* @strncat(i8* %.pre-phi.reload, i8* %47, i32 %storemerge3.reload) br label LBL_17 LBL_17: %sv_2.1 = add i32 %storemerge3.reload, %sv_2.0.reload store i32 %sv_2.1, i32* %sv_2.0.reg2mem br i1 %50, label LBL_10, label LBL_18 LBL_18: %68 = sext i32 %sv_2.1 to i64 %69 = add i64 %68, %arg1 %70 = inttoptr i64 %69 to i8* %71 = call i8* @strcat(i8* %.pre-phi.reload, i8* %70) %72 = sext i32 %42 to i64 %73 = add i64 %31, %72 %74 = inttoptr i64 %73 to i8* store i8 0, i8* %74, align 1 %75 = call i32 @strlen(i8* %.pre-phi.reload) %76 = sext i32 %75 to i64 %77 = add i64 %31, -1 %78 = add i64 %77, %76 %79 = inttoptr i64 %78 to i8* %80 = load i8, i8* %79, align 1 %81 = load i8, i8* %sv_3, align 1 %82 = icmp eq i8 %80, %81 br i1 %82, label LBL_20, label LBL_19 LBL_19: %83 = call i8* @strncat(i8* %.pre-phi.reload, i8* nonnull %sv_3, i32 1) br label LBL_20 LBL_20: %84 = call i32 @strlen(i8* %.pre-phi.reload) %85 = sext i32 %84 to i64 %86 = add i64 %31, %85 %87 = inttoptr i64 %86 to i32* store i32 4026473, i32* %87, align 4 %88 = load i8*, i8** %sv_4, align 8 %89 = call i8* @strcat(i8* %.pre-phi.reload, i8* %88) store i64 %31, i64* %sv_1.0.reg2mem br label LBL_21 LBL_21: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %90 = load i8*, i8** %sv_4, align 8 %91 = ptrtoint i8* %90 to i64 %92 = call i64 @FUNC(i64 %91) store i64 %sv_1.0.reload, i64* %storemerge.reg2mem br label LBL_23 LBL_22: %sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem %sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem %93 = call i64 @FUNC(i64 %sv_1.1.reload) %94 = ptrtoint i64* %sv_0.0.reload to i64 %sext = mul i64 %94, 4294967296 %95 = ashr exact i64 %sext, 32 %96 = call i64 @FUNC(i64 %4) store i64 0, i64* %arg4, align 8 store i64 %95, i64* %sv_1.0.reg2mem br label LBL_21 LBL_23: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_2.1, { 1, 0 } uselistorder i32 %storemerge3.reload, { 1, 0 } uselistorder i8* %48, { 1, 0 } uselistorder i8* %47, { 1, 2, 3, 4, 0, 5 } uselistorder i32 %sv_2.0.reload, { 2, 1, 0 } uselistorder i8* %.pre-phi.reload, { 3, 2, 4, 1, 0, 5 } uselistorder i64 %31, { 1, 2, 5, 3, 6, 4, 0, 7 } uselistorder i32 %28, { 1, 0 } uselistorder i64 %11, { 1, 0 } uselistorder i64 %4, { 1, 0, 3, 2 } uselistorder i8** %sv_4, { 2, 1, 3, 0 } uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.1.reg2mem, { 0, 1, 3, 2 } uselistorder i64** %sv_0.0.reg2mem, { 0, 1, 3, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @kfree, { 2, 1, 0 } uselistorder i8* (i8*, i8*, i32)* @strncat, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 0, 4, 5 } uselistorder i32 (i8*)* @strlen, { 3, 2, 1, 0, 4 } uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_17, { 3, 0, 1, 2 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_9, { 1, 0 } }
1
BinRealVul
av_parser_change_17905
av_parser_change
define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i32* %arg4, i64* %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg5 to i64 %sext5 = mul i64 %arg6, 4294967296 %3 = ashr exact i64 %sext5, 32 %4 = icmp eq i64* %arg1, null %5 = urem i64 %1, 2 %6 = icmp eq i64 %5, 0 %or.cond12 = or i1 %4, %6 %.pre = ptrtoint i32* %arg2 to i64 store i64 %2, i64* %sv_1.0.reg2mem store i64 %3, i64* %sv_0.0.reg2mem br i1 %or.cond12, label LBL_3, label LBL_1 LBL_1: %7 = add i64 %.pre, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = and i32 %9, 2 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 %2, i64* %sv_1.0.reg2mem store i64 %3, i64* %sv_0.0.reg2mem br i1 %12, label LBL_3, label LBL_2 LBL_2: %sext6 = mul i64 %.pre, 4294967296 %13 = ashr exact i64 %sext6, 32 %14 = add i64 %13, %2 %15 = sub i64 %3, %.pre %sext7 = mul i64 %15, 4294967296 %16 = ashr exact i64 %sext7, 32 store i64 %14, i64* %sv_1.0.reg2mem store i64 %16, 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 store i64 %sv_1.0.reload, i64* %arg3, align 8 %17 = trunc i64 %sv_0.0.reload to i32 store i32 %17, i32* %arg4, align 4 %18 = add i64 %.pre, 16 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = icmp eq i64 %20, 0 %22 = trunc i64 %arg7 to i32 %23 = icmp eq i32 %22, 0 %or.cond = or i1 %23, %21 store i64 0, i64* %storemerge.reg2mem br i1 %or.cond, label LBL_6, label LBL_4 LBL_4: %24 = add i64 %.pre, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = and i32 %26, 2 %28 = icmp eq i32 %27, 0 store i64 0, i64* %storemerge.reg2mem br i1 %28, label LBL_6, label LBL_5 LBL_5: %29 = add i64 %.pre, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i32 %31, %17 store i32 %32, i32* %arg4, align 4 %33 = add i32 %32, 32 %34 = sext i32 %33 to i64 %35 = call i64 @FUNC(i64 %34) store i64 %35, i64* %arg3, align 8 %36 = load i32, i32* %30, align 4 %37 = sext i32 %36 to i64 %38 = load i64, i64* %19, align 8 %39 = inttoptr i64 %37 to i64* %40 = inttoptr i64 %38 to i64* %41 = call i64* @memcpy(i64* %39, i64* %40, i32 %36) %42 = load i32, i32* %30, align 4 %43 = sext i32 %42 to i64 %44 = add nsw i64 %sv_0.0.reload, %43 %45 = inttoptr i64 %44 to i64* %46 = inttoptr i64 %sv_1.0.reload to i64* %47 = call i64* @memcpy(i64* %45, i64* %46, i32 %17) store i64 1, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %17, { 1, 0, 2 } uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64 %.pre, { 1, 2, 3, 5, 0, 4 } uselistorder i64 %3, { 2, 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_6, { 2, 1, 0 } uselistorder label LBL_3, { 1, 2, 0 } }
1