dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
opt_loglevel_16438
opt_loglevel
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv6.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_0 = alloca i8*, align 8 %sv_1 = alloca i64, align 8 %3 = ptrtoint i64* %sv_1 to i64 %4 = inttoptr i64 %arg3 to i8* store i64 0, i64* %indvars.iv6.reg2mem br label LBL_1 LBL_1: %indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem %5 = mul i64 %indvars.iv6.reload, 16 %6 = add i64 %5, %3 %7 = add i64 %6, -144 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = inttoptr i64 %9 to i8* %11 = call i32 @strcmp(i8* %10, i8* %4) %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = add i64 %6, -136 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 8 %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64 %17) br label LBL_9 LBL_3: %indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1 %19 = icmp ult i64 %indvars.iv.next7, 8 store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem br i1 %19, label LBL_1, label LBL_4 LBL_4: %20 = call i32 @strtol(i8* %4, i8** nonnull %sv_0, i32 10) %21 = load i8*, i8** %sv_0, align 8 %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 0 br i1 %23, label LBL_8, label LBL_5 LBL_5: %24 = call i64 @FUNC(i64 0, i64 2, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %2, i64 %1) %25 = add i64 %3, -144 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %26 = mul i64 %indvars.iv.reload, 16 %27 = add i64 %25, %26 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = call i64 @FUNC(i64 0, i64 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %29, i64 %2, i64 %1) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 8 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: call void @exit(i32 1) unreachable LBL_8: %31 = zext i32 %20 to i64 %32 = call i64 @FUNC(i64 %31) br label LBL_9 LBL_9: ret i64 0 uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv6.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64 (i64)* @av_log_set_level, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
do_lrm_query_4034
do_lrm_query
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = load i32, i32* @gv_0, align 4 %1 = zext i32 %0 to i64 %2 = call i64 @FUNC(i64 %1, i64 1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %spec.select = zext i1 %4 to i64 %5 = load i64, i64* @gv_1, align 8 %6 = select i1 %4, i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64 ptrtoint ([9 x i8]* @gv_3 to i64) %7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 %6, i64 %spec.select, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0)) %8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_8, i64 0, i64 0)) %9 = load i64, i64* @gv_9, align 8 %10 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_10, i64 0, i64 0), i64 %9) %11 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_11, i64 0, i64 0)) %12 = call i64 @FUNC(i64 %11) %13 = trunc i64 %arg1 to i32 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_2, label LBL_1 LBL_1: %15 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_12, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_8 to i64)) br label LBL_2 LBL_2: %16 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_13, i64 0, i64 0)) %17 = call i64 @FUNC(i64 %7) %18 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_14, i64 0, i64 0)) ret i64 %16 uselistorder i64 %7, { 3, 2, 1, 0, 4 } uselistorder i64 (i64, i8*, i64)* @crm_xml_add, { 1, 0 } uselistorder i64 (i64, i8*)* @create_xml_node, { 1, 0 } uselistorder [4 x i8]* @gv_8, { 1, 0 } uselistorder [7 x i8]* @gv_2, { 1, 0 } uselistorder i32 0, { 4, 5, 0, 1, 2, 3 } }
0
BinRealVul
get_arg_page_11428
get_arg_page
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %2 = load i64, i64* %0 %3 = trunc i64 %arg3 to i32 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %1, i64 %arg2) %6 = trunc i64 %5 to i32 %7 = icmp slt i32 %6, 0 %8 = icmp eq i1 %7, false store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_7 LBL_2: %sext = mul i64 %arg3, 4294967296 %9 = ashr exact i64 %sext, 32 %10 = add i64 %1, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = load i64, i64* @gv_0, align 8 %14 = and i64 %9, 4294967295 %15 = call i64 @FUNC(i64 %13, i64 %12, i64 %arg2, i64 1, i64 %14, i64 1) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = icmp slt i32 %16, 0 %19 = icmp eq i1 %18, false %20 = icmp eq i1 %17, false %21 = icmp eq i1 %19, %20 store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_3, label LBL_7 LBL_3: %22 = trunc i64 %9 to i32 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_7, label LBL_4 LBL_4: %24 = add i64 %13, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = sub i64 %26, %13 %28 = icmp ult i64 %27, 4097 br i1 %28, label LBL_7, label LBL_5 LBL_5: %29 = load i64, i64* @gv_0, align 8 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = inttoptr i64 %33 to i64* %35 = load i64, i64* %34, align 8 %36 = udiv i64 %35, 4 %37 = icmp ugt i64 %27, %36 br i1 %37, label LBL_6, label LBL_7 LBL_6: %38 = call i64 @FUNC(i64 %2) 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 i32 %16, { 1, 0 } uselistorder i64 %13, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_7, { 5, 1, 2, 0, 3, 4 } }
1
BinRealVul
mux_chr_accept_input_15620
mux_chr_accept_input
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = inttoptr i64 %5 to i32* %sext = mul i64 %1, 4294967296 %7 = ashr exact i64 %sext, 29 %8 = add nsw i64 %7, 8 %9 = add i64 %8, %5 %10 = inttoptr i64 %9 to i64* %11 = add i64 %5, 16 %12 = inttoptr i64 %11 to i64* %13 = load i32, i32* %6, align 4 %14 = add i64 %5, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = zext i32 %16 to i64 %18 = icmp eq i32 %13, %16 store i32 %16, i32* %.reg2mem store i64 %17, i64* %rax.0.reg2mem br i1 %18, label LBL_5, label LBL_2 LBL_1: %.reload = load i32, i32* %.reg2mem %19 = add i32 %.reload, 1 store i32 %19, i32* %15, align 4 %20 = load i32, i32* %6, align 4 %21 = icmp eq i32 %20, %19 store i32 %19, i32* %.reg2mem br i1 %21, label LBL_4, label LBL_2 LBL_2: %22 = load i64, i64* %10, align 8 %23 = icmp eq i64 %22, 0 store i64 0, i64* %rax.0.reg2mem br i1 %23, label LBL_5, label LBL_3 LBL_3: %24 = load i64, i64* %12, align 8 %25 = add i64 %24, %7 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = trunc i64 %27 to i32 %29 = icmp eq i32 %28, 0 %30 = icmp eq i1 %29, false store i64 %27, i64* %rax.0.reg2mem br i1 %30, label LBL_1, label LBL_5 LBL_4: %31 = zext i32 %19 to i64 store i64 %31, 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 i32 %19, { 1, 0, 2, 3 } uselistorder i32* %15, { 1, 0 } uselistorder i32* %6, { 1, 0 } uselistorder i64 %5, { 2, 1, 0, 3 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder label LBL_5, { 2, 1, 0, 3 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
print_reply_packet_10874
print_reply_packet
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %1 = add i64 %indvars.iv.reload, %0 %2 = inttoptr i64 %1 to i8* %3 = load i8, i8* %2, align 1 %4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %5 = zext i8 %3 to i32 %6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 %5) %7 = urem i64 %indvars.iv.reload, 16 %8 = icmp eq i64 %7, 15 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %11 = call i32 @fputc(i32 10, %_IO_FILE* %10) br label LBL_3 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 68 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_1 LBL_4: %12 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %13 = call i32 @fputc(i32 10, %_IO_FILE* %12) %14 = sext i32 %13 to i64 ret i64 %14 uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32 10, { 1, 0 } uselistorder %_IO_FILE** @gv_0, { 2, 1, 0 } }
0
BinRealVul
tci_out_label_16063
tci_out_label
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 28 %2 = add i64 %1, %0 %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 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %0, i64 %8) %10 = load i64, i64* %7, align 8 %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 %10, i64* %rax.0.reg2mem br i1 %12, label LBL_4, label LBL_2 LBL_2: call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0)) br label LBL_3 LBL_3: %13 = and i64 %arg2, 4294967295 %14 = add i64 %0, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %0, i64 %16, i64 8, i64 %13, i64 0) %18 = call i64 @FUNC(i64 %0, i64 0) 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 %0, { 3, 4, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @tcg_out_i, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
1
BinRealVul
vhost_dev_enable_notifiers_2450
vhost_dev_enable_notifiers
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge24.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_1, label LBL_3 LBL_1: %8 = trunc i64 %1 to i32 %9 = icmp eq i32 %8, 0 store i64 0, i64* %storemerge.reg2mem br i1 %9, label LBL_7, label LBL_2 LBL_2: %10 = trunc i64 %5 to i32 %11 = icmp slt i32 %10, 0 %12 = icmp eq i1 %11, false %13 = and i64 %1, 4294967295 store i32 0, i32* %storemerge24.reg2mem br label LBL_4 LBL_3: %14 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %15 = call i32 @fwrite(i64* bitcast ([41 x i8]* @gv_1 to i64*), i32 1, i32 40, %_IO_FILE* %14) store i64 4294967218, i64* %storemerge.reg2mem br label LBL_7 LBL_4: br i1 %12, label LBL_5, label LBL_6 LBL_5: %storemerge24.reload = load i32, i32* %storemerge24.reg2mem %16 = add i32 %storemerge24.reload, 1 %17 = sext i32 %16 to i64 %18 = icmp sgt i64 %13, %17 store i32 %16, i32* %storemerge24.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %18, label LBL_4, label LBL_7 LBL_6: %19 = sub i64 0, %5 %20 = and i64 %19, 4294967295 %21 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %22 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %21, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 %20) %phitmp = and i64 %5, 4294967295 store i64 %phitmp, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %5, { 2, 1, 0, 3 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %storemerge24.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 4, 2 } uselistorder %_IO_FILE** @gv_0, { 1, 0 } uselistorder i32 0, { 0, 2, 1 } uselistorder label LBL_7, { 3, 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
qemu_laio_process_completion_16342
qemu_laio_process_completion
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, -125 br i1 %3, label LBL_0.LBL_6_crit_edge, label LBL_2 LBL_1: %.pre = ptrtoint i32* %arg1 to i64 store i64 %.pre, i64* %.pre-phi.reg2mem store i32 -125, i32* %sv_0.0.reg2mem br label LBL_6 LBL_2: %sext = mul i64 %1, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = ptrtoint i32* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, %4 %10 = icmp eq i1 %9, false store i64 %5, i64* %.pre-phi.reg2mem store i32 0, i32* %sv_0.0.reg2mem br i1 %10, label LBL_3, label LBL_6 LBL_3: %11 = icmp slt i32 %2, 0 store i64 %5, i64* %.pre-phi.reg2mem store i32 %2, i32* %sv_0.0.reg2mem br i1 %11, label LBL_6, label LBL_4 LBL_4: %12 = add i64 %5, 16 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 store i64 %5, i64* %.pre-phi.reg2mem store i32 -28, i32* %sv_0.0.reg2mem br i1 %15, label LBL_6, label LBL_5 LBL_5: %16 = add i64 %5, 24 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = sub i64 %20, %4 %22 = call i64 @FUNC(i64 %18, i32 %2, i64 0, i64 %21) store i64 %5, i64* %.pre-phi.reg2mem store i32 %2, i32* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem store i32 %sv_0.0.reload, i32* %arg1, align 4 %23 = add i64 %.pre-phi.reload, 32 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = icmp eq i64 %25, 0 br i1 %26, label LBL_9, label LBL_7 LBL_7: %27 = call i64 @FUNC() %28 = icmp eq i64 %25, %27 store i64 %25, i64* %rax.0.reg2mem br i1 %28, label LBL_10, label LBL_8 LBL_8: %29 = load i64, i64* %24, align 8 %30 = call i64 @FUNC(i64 %29) store i64 %30, i64* %rax.0.reg2mem br label LBL_10 LBL_9: %31 = call i64 @FUNC(i64 %.pre-phi.reload) store i64 %31, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %5, { 1, 4, 3, 5, 0, 2, 6 } uselistorder i64 %4, { 1, 0 } uselistorder i32 %2, { 1, 4, 0, 3, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 4, 1, 3, 5 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 4, 1, 3, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 32, { 1, 0 } uselistorder i32* %arg1, { 2, 1, 0 } uselistorder label LBL_6, { 3, 1, 4, 2, 0 } }
1
BinRealVul
wavpack_decode_flush_1493
wavpack_decode_flush
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %rdi.01.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge2.reg2mem store i64 %0, i64* %rdi.01.reg2mem store i64 0, i64* %.lcssa.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %rdi.01.reload = load i64, i64* %rdi.01.reg2mem %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload = load i64, i64* %.reg2mem %5 = mul i64 %.reload, 8 %6 = add i64 %rdi.01.reload, %5 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %8) %10 = add i32 %storemerge2.reload, 1 %11 = load i32, i32* %2, align 4 %12 = zext i32 %11 to i64 %13 = sext i32 %10 to i64 %14 = icmp slt i64 %13, %12 store i64 %13, i64* %.reg2mem store i32 %10, i32* %storemerge2.reg2mem store i64 %8, i64* %rdi.01.reg2mem store i64 %12, i64* %.lcssa.reg2mem br i1 %14, label LBL_1, label LBL_2 LBL_2: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i32* %2, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
nfc_dep_link_down_5950
nfc_dep_link_down
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64* %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %1) %3 = call i64 @FUNC(i64 %0) %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i8* %6 = load i8, i8* %5, align 1 %7 = icmp eq i8 %6, 0 store i64* inttoptr (i32 2 to i64*), i64** %sv_0.0.reg2mem br i1 %7, label LBL_1, label LBL_4 LBL_1: %8 = add i64 %0, 9 %9 = inttoptr i64 %8 to i8* %10 = load i8, i8* %9, align 1 %11 = icmp eq i8 %10, 1 store i64* inttoptr (i32 3 to i64*), i64** %sv_0.0.reg2mem br i1 %11, label LBL_2, label LBL_4 LBL_2: %12 = trunc i64 %0 to i32 %13 = and i64 %0, 4294967295 %14 = inttoptr i64 %13 to i64* %15 = icmp eq i32 %12, 0 %16 = icmp eq i1 %15, false store i64* %14, i64** %sv_0.0.reg2mem br i1 %16, label LBL_4, label LBL_3 LBL_3: store i8 0, i8* %9, align 1 %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i64* store i64 0, i64* %18, align 8 %19 = add i64 %0, 24 %20 = inttoptr i64 %19 to i32* store i32 0, i32* %20, align 4 %21 = call i64 @FUNC(i64 %0) %22 = call i64 @FUNC(i64 %0) store i64* %14, i64** %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem %23 = call i64 @FUNC(i64 %0) %24 = ptrtoint i64* %sv_0.0.reload to i64 %25 = and i64 %24, 4294967295 ret i64 %25 uselistorder i64 %0, { 4, 1, 0, 2, 3, 6, 7, 5, 9, 8, 10 } uselistorder i64** %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 } uselistorder label LBL_4, { 3, 2, 0, 1 } }
0
BinRealVul
free_ep_req_11927
free_ep_req
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %arg2) %2 = call i64 @FUNC(i64 %0, i64 %arg2) ret i64 %2 }
1
BinRealVul
visit_type_size_1852
visit_type_size
define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null store i64 %0, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_3 LBL_1: %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 store i64 %0, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_3 LBL_2: %6 = ptrtoint i64* %arg2 to i64 store i64 %6, i64* %arg2, align 8 store i64 %6, 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 %0, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
_unpack_network_callerid_msg_4636
_unpack_network_callerid_msg
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %4 = trunc i64 %arg2 to i16 %5 = icmp eq i64* %arg1, null %6 = icmp eq i1 %5, false %7 = zext i1 %6 to i64 %8 = call i64 @FUNC(i64 %7) %9 = call i64 @FUNC(i64 44) store i64 %9, i64* %arg1, align 8 %10 = icmp eq i16 %4, 0 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = bitcast i32* %sv_1 to i64* %12 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %11) %13 = load i32, i32* %sv_1, align 4 %14 = load i64, i64* %sv_0, align 8 %15 = inttoptr i64 %9 to i64* %16 = inttoptr i64 %14 to i64* %17 = call i64* @memcpy(i64* %15, i64* %16, i32 %13) %18 = load i64, i64* %sv_0, align 8 %19 = call i64 @FUNC(i64 %18) %20 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %11) %21 = load i32, i32* %sv_1, align 4 %22 = load i64, i64* %sv_0, align 8 %23 = add i64 %9, 16 %24 = inttoptr i64 %23 to i64* %25 = inttoptr i64 %22 to i64* %26 = call i64* @memcpy(i64* %24, i64* %25, i32 %21) %27 = load i64, i64* %sv_0, align 8 %28 = call i64 @FUNC(i64 %27) %29 = add i64 %9, 32 %30 = call i64 @FUNC(i64 %29) %31 = add i64 %9, 36 %32 = call i64 @FUNC(i64 %31) %33 = add i64 %9, 40 %34 = call i64 @FUNC(i64 %33) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %35 = urem i64 %arg2, 65536 %36 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %35, i64 %3, i64 %2, i64 %1) %37 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %35, i64 %3, i64 %2, i64 %1) store i64 0, i64* %arg1, align 8 %38 = load i64, i64* %sv_0, align 8 %39 = call i64 @FUNC(i64 %38) %40 = call i64 @FUNC(i64 %9) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %35, { 1, 0 } uselistorder i64 %9, { 5, 2, 1, 0, 3, 4, 6 } uselistorder i32* %sv_1, { 1, 0, 2 } uselistorder i64* %sv_0, { 2, 3, 4, 0, 5, 6, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @safe_unpack32, { 2, 1, 0 } uselistorder i64 (i64)* @xfree, { 3, 2, 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i64 (i64*, i64*)* @safe_unpackmem_xmalloc, { 1, 0 } uselistorder i64 (i64)* @xmalloc, { 1, 0 } uselistorder i64* %arg1, { 0, 2, 1 } }
0
BinRealVul
cfi_staa_writev_17861
cfi_staa_writev
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.4.reg2mem = alloca i64* %sv_1.4.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %sv_0.2.reg2mem = alloca i64* %sv_1.2.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64* %sv_1.1.reg2mem = alloca i64 %sv_3.0.reg2mem = alloca i64 %sv_4.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i64* %sv_1.0.reg2mem = alloca i64 %sv_1.311.reg2mem = alloca i64 %sv_0.312.reg2mem = alloca i64* %sv_2.113.reg2mem = alloca i32 %storemerge414.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 1024, i64 0) store i64 %2, i64* @gv_0, align 8 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_19 LBL_1: %5 = icmp eq i64 %arg3, 0 store i64 0, i64* %sv_1.4.reg2mem store i64* null, i64** %sv_0.4.reg2mem br i1 %5, label LBL_16, label LBL_2 LBL_2: %6 = ptrtoint i64* %arg2 to i64 %7 = ptrtoint i64* %arg1 to i64 %8 = trunc i64 %7 to i32 %9 = and i64 %7, 4294967295 %10 = inttoptr i64 %9 to i64* %11 = icmp eq i32 %8, 0 %12 = icmp eq i64 %1, 1024 %13 = icmp eq i1 %11, %12 %14 = trunc i64 %1 to i32 %15 = icmp eq i1 %11, false store i64 0, i64* %storemerge414.reg2mem store i32 0, i32* %sv_2.113.reg2mem store i64* null, i64** %sv_0.312.reg2mem store i64 0, i64* %sv_1.311.reg2mem br label LBL_3 LBL_3: %sv_1.311.reload = load i64, i64* %sv_1.311.reg2mem %sv_0.312.reload = load i64*, i64** %sv_0.312.reg2mem %sv_2.113.reload = load i32, i32* %sv_2.113.reg2mem %storemerge414.reload = load i64, i64* %storemerge414.reg2mem %16 = mul i64 %storemerge414.reload, 16 %17 = add i64 %16, %6 %18 = add i64 %17, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %17 to i64* %22 = load i64, i64* %21, align 8 %23 = icmp eq i64 %20, 0 store i64 %sv_1.311.reload, i64* %sv_1.2.reg2mem store i64* %sv_0.312.reload, i64** %sv_0.2.reg2mem store i32 %sv_2.113.reload, i32* %sv_2.0.reg2mem br i1 %23, label LBL_14, label LBL_4 LBL_4: %24 = trunc i64 %20 to i32 %25 = icmp eq i32 %sv_2.113.reload, 0 store i64 %sv_1.311.reload, i64* %sv_1.0.reg2mem store i64* %sv_0.312.reload, i64** %sv_0.0.reg2mem store i32 %24, i32* %sv_4.0.reg2mem store i64 %22, i64* %sv_3.0.reg2mem br i1 %25, label LBL_9, label LBL_5 LBL_5: %26 = sext i32 %sv_2.113.reload to i64 %sext = mul i64 %20, 4294967296 %27 = ashr exact i64 %sext, 32 %28 = add nsw i64 %27, %26 %29 = icmp ult i64 %28, 1024 br i1 %29, label LBL_6, label LBL_7 LBL_6: %30 = load i64, i64* @gv_0, align 8 %31 = add i64 %30, %26 %32 = inttoptr i64 %31 to i64* %33 = inttoptr i64 %22 to i64* %34 = call i64* @memcpy(i64* %32, i64* %33, i32 %24) %35 = add i32 %sv_2.113.reload, %24 store i64 %sv_1.311.reload, i64* %sv_1.2.reg2mem store i64* %sv_0.312.reload, i64** %sv_0.2.reg2mem store i32 %35, i32* %sv_2.0.reg2mem br label LBL_14 LBL_7: %36 = sub i32 1024, %sv_2.113.reload %37 = load i64, i64* @gv_0, align 8 %38 = add i64 %37, %26 %39 = inttoptr i64 %38 to i64* %40 = inttoptr i64 %22 to i64* %41 = call i64* @memcpy(i64* %39, i64* %40, i32 %36) %42 = add i64 %sv_1.311.reload, %1 store i64 %42, i64* %sv_1.4.reg2mem store i64* %10, i64** %sv_0.4.reg2mem br i1 %13, label LBL_8, label LBL_16 LBL_8: %43 = sub i32 %sv_2.113.reload, %14 %44 = add i32 %43, %24 %45 = sub nsw i64 1024, %26 %46 = add i64 %45, %22 store i64 %42, i64* %sv_1.0.reg2mem store i64* %10, i64** %sv_0.0.reg2mem store i32 %44, i32* %sv_4.0.reg2mem store i64 %46, i64* %sv_3.0.reg2mem br label LBL_9 LBL_9: %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem %sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %47 = sext i32 %sv_4.0.reload to i64 %48 = call i64 @FUNC(i64 %47) %49 = icmp eq i64 %48, 0 store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem store i64* %sv_0.0.reload, i64** %sv_0.1.reg2mem br i1 %49, label LBL_12, label LBL_10 LBL_10: %50 = call i64 @FUNC(i64 %47) %51 = add i64 %sv_1.0.reload, %1 store i64 %51, i64* %sv_1.4.reg2mem store i64* %10, i64** %sv_0.4.reg2mem br i1 %15, label LBL_16, label LBL_11 LBL_11: %52 = call i64 @FUNC(i64 %47) %53 = icmp eq i64 %52, %1 %54 = icmp eq i1 %53, false store i64 %51, i64* %sv_1.1.reg2mem store i64* %10, i64** %sv_0.1.reg2mem store i64 %51, i64* %sv_1.4.reg2mem store i64* %10, i64** %sv_0.4.reg2mem br i1 %54, label LBL_16, label LBL_12 LBL_12: %sv_0.1.reload = load i64*, i64** %sv_0.1.reg2mem %sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem %55 = call i64 @FUNC(i64 %47) %56 = icmp eq i64 %55, 0 store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem store i64* %sv_0.1.reload, i64** %sv_0.2.reg2mem store i32 0, i32* %sv_2.0.reg2mem br i1 %56, label LBL_14, label LBL_13 LBL_13: %57 = trunc i64 %55 to i32 %58 = load i64, i64* @gv_0, align 8 %59 = inttoptr i64 %58 to i64* %60 = call i64* @memset(i64* %59, i32 255, i32 1024) %61 = add i64 %sv_3.0.reload, %1 %62 = load i64, i64* @gv_0, align 8 %63 = inttoptr i64 %62 to i64* %64 = inttoptr i64 %61 to i64* %65 = call i64* @memcpy(i64* %63, i64* %64, i32 %57) store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem store i64* %sv_0.1.reload, i64** %sv_0.2.reg2mem store i32 %57, i32* %sv_2.0.reg2mem br label LBL_14 LBL_14: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_0.2.reload = load i64*, i64** %sv_0.2.reg2mem %sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem %66 = add nuw i64 %storemerge414.reload, 1 %67 = icmp ult i64 %66, %arg3 store i64 %66, i64* %storemerge414.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.113.reg2mem store i64* %sv_0.2.reload, i64** %sv_0.312.reg2mem store i64 %sv_1.2.reload, i64* %sv_1.311.reg2mem br i1 %67, label LBL_3, label LBL_15 LBL_15: %68 = icmp eq i32 %sv_2.0.reload, 0 %69 = select i1 %68, i64 0, i64 %1 %spec.select = add i64 %69, %sv_1.2.reload %spec.select27 = select i1 %68, i64* %sv_0.2.reload, i64* %10 store i64 %spec.select, i64* %sv_1.4.reg2mem store i64* %spec.select27, i64** %sv_0.4.reg2mem br label LBL_16 LBL_16: %sv_0.4.reload = load i64*, i64** %sv_0.4.reg2mem %70 = icmp eq i64* %arg5, null br i1 %70, label LBL_18, label LBL_17 LBL_17: %sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem store i64 %sv_1.4.reload, i64* %arg5, align 8 br label LBL_18 LBL_18: %71 = ptrtoint i64* %sv_0.4.reload to i64 %72 = and i64 %71, 4294967295 store i64 %72, i64* %storemerge.reg2mem br label LBL_19 LBL_19: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i1 %68, { 1, 0 } uselistorder i64 %51, { 0, 2, 1 } uselistorder i64 %47, { 2, 0, 1, 3 } uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i64 %42, { 1, 0 } uselistorder i64 %26, { 0, 2, 1, 3 } uselistorder i32 %24, { 2, 1, 3, 0 } uselistorder i64 %22, { 1, 2, 3, 0 } uselistorder i32 %sv_2.113.reload, { 4, 3, 5, 2, 1, 0 } uselistorder i64* %sv_0.312.reload, { 0, 2, 1 } uselistorder i64 %sv_1.311.reload, { 3, 0, 2, 1 } uselistorder i1 %11, { 1, 0 } uselistorder i64* %10, { 5, 0, 3, 1, 4, 2 } uselistorder i64 %7, { 1, 0 } uselistorder i64 %1, { 3, 6, 0, 5, 4, 1, 2 } uselistorder i64* %storemerge414.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.113.reg2mem, { 1, 0, 2 } uselistorder i64** %sv_0.312.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.311.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i64** %sv_0.2.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i64* %sv_1.4.reg2mem, { 0, 4, 1, 2, 3, 5 } uselistorder i64** %sv_0.4.reg2mem, { 0, 4, 1, 2, 3, 5 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @ECCBUF_DIV, { 2, 1, 0 } uselistorder i32 1024, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 2, 1 } uselistorder i32 0, { 3, 0, 2, 1, 4 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64* null, { 2, 1, 0 } uselistorder i64 1024, { 2, 4, 3, 5, 0, 1 } uselistorder i64 %arg3, { 1, 0 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_16, { 3, 0, 1, 2, 4 } uselistorder label LBL_14, { 1, 2, 3, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
dn_create_4262
dn_create
define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %arg3 to i32 %3 = icmp ult i32 %2, 256 store i64 1, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_6 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 %4, i64 4210733) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false store i64 2, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_6 LBL_2: %9 = trunc i64 %1 to i32 store i64 4, i64* %rax.0.reg2mem switch i32 %9, label LBL_6 [ i32 1, label LBL_3 i32 2, label LBL_4 ] LBL_3: %10 = icmp eq i32 %2, 1 store i64 3, i64* %rax.0.reg2mem br i1 %10, label LBL_4, label LBL_6 LBL_4: %11 = and i64 %arg4, 4294967295 %12 = ptrtoint i32* %arg2 to i64 %13 = call i64 @FUNC(i64 %4, i64 %12, i64 0, i64 %11) %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false store i64 5, i64* %rax.0.reg2mem br i1 %15, label LBL_5, label LBL_6 LBL_5: %16 = inttoptr i64 %13 to i32* store i32 %2, i32* %16, align 4 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 i32 %2, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 3, 2, 4, 5 } uselistorder label LBL_6, { 5, 0, 2, 1, 3, 4 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
tcg_exec_init_18691
tcg_exec_init
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() %1 = call i64 @FUNC(i64 %arg1) %2 = call i64 @FUNC() %3 = call i64 @FUNC(i64* nonnull @gv_0) ret i64 %3 }
1
BinRealVul
create_data_segment_10276
create_data_segment
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rdi.2.lcssa.reg2mem = alloca i64 %sv_0.2.lcssa.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_0.21.reg2mem = alloca i64 %rdi.22.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 store i64 0, i64* %sv_1, align 8 %1 = icmp eq i64 %arg3, 0 store i64 0, i64* %sv_0.2.lcssa.reg2mem store i64 %0, i64* %rdi.2.lcssa.reg2mem br i1 %1, label LBL_14, label LBL_1 LBL_1: %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %sv_1 to i64 store i64 0, i64* %storemerge3.reg2mem store i64 %0, i64* %rdi.22.reg2mem store i64 0, i64* %sv_0.21.reg2mem br label LBL_2 LBL_2: %sv_0.21.reload = load i64, i64* %sv_0.21.reg2mem %rdi.22.reload = load i64, i64* %rdi.22.reg2mem %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %4 = mul i64 %storemerge3.reload, 40 %5 = add i64 %4, %2 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 3 br i1 %8, label LBL_11, label LBL_3 LBL_3: %9 = icmp sgt i32 %7, 3 store i64 %sv_0.21.reload, i64* %sv_0.1.reg2mem store i64 %rdi.22.reload, i64* %rdi.1.reg2mem br i1 %9, label LBL_13, label LBL_4 LBL_4: store i64 %sv_0.21.reload, i64* %sv_0.1.reg2mem store i64 %rdi.22.reload, i64* %rdi.1.reg2mem switch i32 %7, label LBL_13 [ i32 1, label LBL_5 i32 2, label LBL_9 ] LBL_5: %10 = add i64 %5, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 store i64 %sv_0.21.reload, i64* %sv_0.0.reg2mem store i64 %rdi.22.reload, i64* %rdi.0.reg2mem br i1 %13, label LBL_7, label LBL_6 LBL_6: %14 = call i64 @FUNC(i64 1, i64 4202512) %15 = load i64, i64* %11, align 8 %16 = add i64 %5, 16 %17 = call i64 @FUNC(i64* nonnull %sv_1, i64 %sv_0.21.reload, i64 %16, i64 %15) %18 = add i64 %17, %sv_0.21.reload store i64 %18, i64* %sv_0.0.reg2mem store i64 %3, i64* %rdi.0.reg2mem br label LBL_7 LBL_7: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %19 = add i64 %5, 24 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem store i64 %rdi.0.reload, i64* %rdi.1.reg2mem br i1 %22, label LBL_13, label LBL_8 LBL_8: %23 = call i64 @FUNC(i64 1, i64 ptrtoint (i64* @gv_0 to i64)) %24 = load i64, i64* %20, align 8 %25 = add i64 %5, 32 %26 = call i64 @FUNC(i64* nonnull %sv_1, i64 %sv_0.0.reload, i64 %25, i64 %24) %27 = add i64 %26, %sv_0.0.reload store i64 %27, i64* %sv_0.1.reg2mem store i64 %3, i64* %rdi.1.reg2mem br label LBL_13 LBL_9: %28 = add i64 %5, 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = icmp eq i64 %30, 0 store i64 %sv_0.21.reload, i64* %sv_0.1.reg2mem store i64 %rdi.22.reload, i64* %rdi.1.reg2mem br i1 %31, label LBL_13, label LBL_10 LBL_10: %32 = call i64 @FUNC(i64 1, i64 ptrtoint (i64* @gv_0 to i64)) %33 = load i64, i64* %29, align 8 %34 = add i64 %5, 16 %35 = call i64 @FUNC(i64* nonnull %sv_1, i64 %sv_0.21.reload, i64 %34, i64 %33) %36 = add i64 %35, %sv_0.21.reload store i64 %36, i64* %sv_0.1.reg2mem store i64 %3, i64* %rdi.1.reg2mem br label LBL_13 LBL_11: %37 = add i64 %5, 8 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = icmp eq i64 %39, 0 store i64 %sv_0.21.reload, i64* %sv_0.1.reg2mem store i64 %rdi.22.reload, i64* %rdi.1.reg2mem br i1 %40, label LBL_13, label LBL_12 LBL_12: %41 = call i64 @FUNC(i64 1, i64 ptrtoint (i64* @gv_0 to i64)) %42 = load i64, i64* %38, align 8 %43 = add i64 %5, 16 %44 = call i64 @FUNC(i64* nonnull %sv_1, i64 %sv_0.21.reload, i64 %43, i64 %42) %45 = add i64 %44, %sv_0.21.reload store i64 %45, i64* %sv_0.1.reg2mem store i64 %3, i64* %rdi.1.reg2mem br label LBL_13 LBL_13: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %46 = add nuw i64 %storemerge3.reload, 1 %exitcond = icmp eq i64 %46, %arg3 store i64 %46, i64* %storemerge3.reg2mem store i64 %rdi.1.reload, i64* %rdi.22.reg2mem store i64 %sv_0.1.reload, i64* %sv_0.21.reg2mem store i64 %sv_0.1.reload, i64* %sv_0.2.lcssa.reg2mem store i64 %rdi.1.reload, i64* %rdi.2.lcssa.reg2mem br i1 %exitcond, label LBL_14, label LBL_2 LBL_14: %rdi.2.lcssa.reload = load i64, i64* %rdi.2.lcssa.reg2mem %sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem %47 = add i64 %rdi.2.lcssa.reload, %sv_0.2.lcssa.reload %48 = add i64 %0, 8 %49 = inttoptr i64 %48 to i64* store i64 %47, i64* %49, align 8 %50 = load i64, i64* %sv_1, align 8 ret i64 %50 uselistorder i64 %sv_0.0.reload, { 2, 1, 0 } uselistorder i64 %5, { 6, 7, 0, 1, 3, 4, 2, 5, 8 } uselistorder i64 %rdi.22.reload, { 3, 1, 4, 0, 2 } uselistorder i64 %sv_0.21.reload, { 10, 7, 3, 8, 5, 1, 9, 6, 4, 0, 2 } uselistorder i64 %3, { 2, 0, 1, 3 } uselistorder i64* %sv_1, { 4, 0, 1, 2, 3, 5, 6 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.22.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.21.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.1.reg2mem, { 0, 7, 8, 2, 3, 4, 5, 1, 6 } uselistorder i64* %rdi.1.reg2mem, { 0, 7, 8, 2, 3, 4, 5, 1, 6 } uselistorder i64 (i64*, i64, i64, i64)* @add_data_segment, { 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @ef_debug, { 3, 2, 1, 0 } uselistorder i64 8, { 3, 0, 1, 2 } uselistorder i32 3, { 1, 0 } uselistorder label LBL_13, { 2, 1, 4, 3, 6, 5, 0, 7 } }
0
BinRealVul
vqf_probe_1191
vqf_probe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 1313429332 store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_4 LBL_1: %3 = add i64 %0, 4 %4 = inttoptr i64 %3 to i64* %5 = call i32 @memcmp(i64* %4, i64* bitcast ([9 x i8]* @gv_0 to i64*), i32 8) %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false store i64 100, i64* %rax.0.reg2mem br i1 %7, label LBL_2, label LBL_4 LBL_2: %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* %10 = call i32 @memcmp(i64* %9, i64* bitcast ([9 x i8]* @gv_1 to i64*), i32 8) %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 100, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_4 LBL_3: %13 = add i64 %0, 20 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp ult i32 %15, 134217729 %. = select i1 %16, i64 50, i64 25 store i64 %., i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
pass0_18723
pass0
define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg4 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 store i64 %0, i64* %sv_2, align 8 store i32 0, i32* %sv_1, align 4 store i64 0, i64* %sv_0, align 8 %1 = call i64 @FUNC(i32* nonnull %sv_1, i64 0, i64 %0, i64 0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = ptrtoint i64* %sv_2 to i64 %5 = call i64 @FUNC(i64 %arg1, i64 %arg2) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false %9 = add i64 %4, -16 %10 = inttoptr i64 %9 to i64* %11 = ptrtoint i64* %sv_0 to i64 br i1 %8, label LBL_3, label LBL_4 LBL_2: %12 = call i64 @FUNC(i32* nonnull %sv_1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_3: %13 = load i32, i32* %sv_1, align 4 %14 = add i32 %13, 1 store i32 %14, i32* %sv_1, align 4 store i64 %11, i64* %10, align 8 %15 = call i64 @FUNC(i32* nonnull %sv_1, i64 %arg1, i32 %14, i64 1, i64 0, i64 0) %16 = call i64 @FUNC(i64 %arg1, i64 %arg2) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_3, label LBL_4 LBL_4: br label LBL_5 LBL_5: %20 = load i32, i32* %sv_1, align 4 store i64 %11, i64* %10, align 8 %21 = call i64 @FUNC(i32* nonnull %sv_1, i64 0, i32 %20, i64 1, i64 0, i64 0) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_6 LBL_6: %25 = load i32, i32* %sv_1, align 4 %26 = zext i32 %25 to i64 %27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0), i64 %26) %28 = call i64 @FUNC(i32* nonnull %sv_1) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_8, label LBL_7 LBL_7: %31 = call i64 @FUNC(i32* nonnull %sv_1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0)) unreachable LBL_8: %32 = load i64, i64* %sv_0, align 8 ret i64 %32 uselistorder i64* %sv_2, { 1, 0 } uselistorder i32* %sv_1, { 0, 1, 6, 2, 7, 3, 8, 9, 4, 5, 10 } uselistorder i64 (i32*, i8*)* @die_codec, { 1, 0 } uselistorder i64 (i64, i64)* @vpx_img_read, { 1, 0 } uselistorder i32 0, { 2, 3, 4, 0, 5, 1 } uselistorder i64 %arg2, { 1, 0 } uselistorder i64 %arg1, { 2, 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
nouveau_gem_object_open_18246
nouveau_gem_object_open
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.shrunk.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %1) %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %2 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 %14 = icmp eq i1 %13, false store i64 0, i64* %rax.0.shrunk.reg2mem br i1 %14, label LBL_1, label LBL_10 LBL_1: %15 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 0, i64 0) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 store i64 %15, i64* %rax.0.shrunk.reg2mem br i1 %17, label LBL_2, label LBL_10 LBL_2: %18 = load i64, i64* %11, align 8 %19 = call i64 @FUNC(i64 %3, i64 %18) %20 = icmp eq i64 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_8, label LBL_3 LBL_3: %22 = call i64 @FUNC(i64 4, i64 0) %23 = icmp eq i64 %22, 0 %24 = icmp eq i1 %23, false store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %24, label LBL_4, label LBL_9 LBL_4: %25 = call i64 @FUNC(i64 %10) %26 = trunc i64 %25 to i32 %27 = icmp slt i32 %26, 0 %28 = icmp eq i32 %26, -13 %29 = icmp eq i1 %28, false %or.cond = icmp eq i1 %27, %29 store i64 %25, i64* %sv_0.0.reg2mem br i1 %or.cond, label LBL_9, label LBL_5 LBL_5: %30 = load i64, i64* %11, align 8 %31 = call i64 @FUNC(i64 %3, i64 %30, i64 %22) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_7, label LBL_6 LBL_6: %34 = call i64 @FUNC(i64 %22) br label LBL_7 LBL_7: %35 = call i64 @FUNC(i64 %10) %36 = call i64 @FUNC(i64 %10) store i64 %31, i64* %sv_0.0.reg2mem br label LBL_9 LBL_8: %37 = inttoptr i64 %19 to i32* %38 = load i32, i32* %37, align 4 %39 = add i32 %38, 1 store i32 %39, i32* %37, align 4 store i64 %15, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %40 = call i64 @FUNC(i64 %3) store i64 %sv_0.0.reload, i64* %rax.0.shrunk.reg2mem br label LBL_10 LBL_10: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i32* %37, { 1, 0 } uselistorder i64 %15, { 1, 0, 2 } uselistorder i64 %10, { 1, 0, 2 } uselistorder i64 %3, { 1, 0, 2, 3, 4 } uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_10, { 2, 0, 1 } uselistorder label LBL_9, { 2, 3, 0, 1 } }
1
BinRealVul
qio_channel_command_finalize_18678
qio_channel_command_finalize
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, -1 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i32 @close(i32 %2) %5 = bitcast i64* %arg1 to i32* store i32 -1, i32* %5, align 4 br label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, -1 br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i32 @close(i32 %9) store i32 -1, i32* %8, align 4 br label LBL_4 LBL_4: %12 = add i64 %6, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = zext i32 %14 to i64 %16 = icmp slt i32 %14, 1 store i64 %15, i64* %rax.0.reg2mem br i1 %16, label LBL_6, label LBL_5 LBL_5: %17 = call i64 @FUNC(i64 %6, i64 0) store i64 %17, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %2, { 1, 0 } uselistorder i32 (i32)* @close, { 1, 0 } uselistorder i32 -1, { 2, 0, 3, 1 } uselistorder i64* %arg1, { 1, 0 } }
1
BinRealVul
pci_bridge_update_mappings_382
pci_bridge_update_mappings
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64 @FUNC(i64 %0, i64 %0) %3 = call i64 @FUNC(i64 %0) store i64 %3, i64* %arg1, align 8 %4 = call i64 @FUNC() %5 = call i64 @FUNC(i64 %0, i64 %0) ret i64 %5 uselistorder i64 %0, { 3, 0, 1, 4, 2 } }
0
BinRealVul
readUInt32_6925
readUInt32
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1) %1 = urem i64 %0, 256 %2 = call i64 @FUNC(i64 %arg1) %3 = mul i64 %2, 256 %4 = and i64 %3, 65280 %5 = or i64 %4, %1 %6 = call i64 @FUNC(i64 %arg1) %7 = mul i64 %6, 65536 %8 = and i64 %7, 16711680 %9 = or i64 %5, %8 %10 = call i64 @FUNC(i64 %arg1) %11 = trunc i64 %10 to i32 %12 = mul i32 %11, 16777216 %13 = sext i32 %12 to i64 %14 = or i64 %9, %13 ret i64 %14 uselistorder i64 (i64)* @readUInt8, { 3, 2, 1, 0 } }
0
BinRealVul
add_bytes_l2_c_16727
add_bytes_l2_c
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %sv_0.01.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = sext i32 %arg4 to i64 %4 = add nsw i64 %3, -8 store i64 0, i64* %storemerge2.reg2mem br label LBL_1 LBL_1: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %5 = add i64 %storemerge2.reload, %1 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = add i64 %storemerge2.reload, %0 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = urem i64 %7, 128 %12 = urem i64 %10, 128 %13 = add nuw nsw i64 %12, %11 %14 = xor i64 %10, %7 %15 = and i64 %14, 128 %16 = add i64 %storemerge2.reload, %2 %17 = xor i64 %13, %15 %18 = inttoptr i64 %16 to i64* store i64 %17, i64* %18, align 8 %19 = add i64 %storemerge2.reload, 8 %20 = icmp ult i64 %4, %19 %21 = icmp eq i1 %20, false store i64 %19, i64* %storemerge2.reg2mem br i1 %21, label LBL_1, label LBL_2 LBL_2: %22 = icmp slt i64 %19, %3 store i64 %19, i64* %sv_0.01.reg2mem br i1 %22, label LBL_3, label LBL_4 LBL_3: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %23 = add i64 %sv_0.01.reload, %1 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = add i64 %sv_0.01.reload, %0 %27 = inttoptr i64 %26 to i8* %28 = load i8, i8* %27, align 1 %29 = add i64 %sv_0.01.reload, %2 %30 = add i8 %28, %25 %31 = inttoptr i64 %29 to i8* store i8 %30, i8* %31, align 1 %32 = add nsw i64 %sv_0.01.reload, 1 %exitcond = icmp eq i64 %32, %3 store i64 %32, i64* %sv_0.01.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: ret i64 %3 uselistorder i64 %sv_0.01.reload, { 0, 3, 2, 1 } uselistorder i64 %19, { 0, 2, 1, 3 } uselistorder i64 %10, { 1, 0 } uselistorder i64 %7, { 1, 0 } uselistorder i64 %storemerge2.reload, { 0, 3, 2, 1 } uselistorder i64 %3, { 1, 0, 2, 3 } uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 } uselistorder i64 128, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
vnc_convert_pixel_9056
vnc_convert_pixel
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = udiv i32 %arg3, 65536 %4 = urem i32 %3, 256 %5 = trunc i64 %1 to i32 %6 = urem i32 %5, 32 %7 = shl i32 %4, %6 %8 = udiv i32 %7, 256 %9 = urem i32 %8, 256 %10 = udiv i32 %arg3, 256 %11 = urem i32 %10, 256 %12 = ptrtoint i32* %arg1 to i64 %13 = add i64 %12, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = urem i32 %15, 32 %17 = shl i32 %11, %16 %18 = udiv i32 %17, 256 %19 = urem i32 %18, 256 %20 = urem i32 %arg3, 256 %21 = add i64 %12, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = urem i32 %23, 32 %25 = shl i32 %20, %24 %26 = udiv i32 %25, 256 %27 = urem i32 %26, 256 %28 = add i64 %12, 12 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = urem i32 %30, 32 %32 = shl i32 %9, %31 %33 = add i64 %12, 16 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = urem i32 %35, 32 %37 = shl i32 %19, %36 %38 = or i32 %37, %32 %39 = add i64 %12, 20 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = urem i32 %41, 32 %43 = shl i32 %27, %42 %44 = or i32 %38, %43 %45 = add i64 %12, 24 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = icmp eq i32 %47, 1 br i1 %48, label LBL_2, label LBL_1 LBL_1: %49 = icmp eq i32 %47, 2 %50 = add i64 %12, 28 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp eq i32 %52, 0 br i1 %49, label LBL_3, label LBL_6 LBL_2: %54 = trunc i32 %44 to i8 %55 = bitcast i64* %arg2 to i8* store i8 %54, i8* %55, align 1 store i64 %2, i64* %rax.0.reg2mem br label LBL_9 LBL_3: %56 = udiv i32 %44, 256 br i1 %53, label LBL_5, label LBL_4 LBL_4: %57 = trunc i32 %56 to i8 %58 = bitcast i64* %arg2 to i8* store i8 %57, i8* %58, align 1 %59 = add i64 %2, 1 %60 = trunc i32 %44 to i8 %61 = inttoptr i64 %59 to i8* store i8 %60, i8* %61, align 1 store i64 %59, i64* %rax.0.reg2mem br label LBL_9 LBL_5: %62 = add i64 %2, 1 %63 = trunc i32 %56 to i8 %64 = inttoptr i64 %62 to i8* store i8 %63, i8* %64, align 1 %65 = trunc i32 %44 to i8 %66 = bitcast i64* %arg2 to i8* store i8 %65, i8* %66, align 1 store i64 %2, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %67 = udiv i32 %44, 16777216 br i1 %53, label LBL_8, label LBL_7 LBL_7: %68 = trunc i32 %67 to i8 %69 = bitcast i64* %arg2 to i8* store i8 %68, i8* %69, align 1 %70 = udiv i32 %44, 65536 %71 = add i64 %2, 1 %72 = trunc i32 %70 to i8 %73 = inttoptr i64 %71 to i8* store i8 %72, i8* %73, align 1 %74 = udiv i32 %44, 256 %75 = add i64 %2, 2 %76 = trunc i32 %74 to i8 %77 = inttoptr i64 %75 to i8* store i8 %76, i8* %77, align 1 %78 = add i64 %2, 3 %79 = trunc i32 %44 to i8 %80 = inttoptr i64 %78 to i8* store i8 %79, i8* %80, align 1 store i64 %78, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %81 = add i64 %2, 3 %82 = trunc i32 %67 to i8 %83 = inttoptr i64 %81 to i8* store i8 %82, i8* %83, align 1 %84 = udiv i32 %44, 65536 %85 = add i64 %2, 2 %86 = trunc i32 %84 to i8 %87 = inttoptr i64 %85 to i8* store i8 %86, i8* %87, align 1 %88 = udiv i32 %44, 256 %89 = add i64 %2, 1 %90 = trunc i32 %88 to i8 %91 = inttoptr i64 %89 to i8* store i8 %90, i8* %91, align 1 %92 = trunc i32 %44 to i8 %93 = bitcast i64* %arg2 to i8* store i8 %92, i8* %93, align 1 store i64 %2, 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 i32 %44, { 7, 0, 1, 6, 2, 3, 4, 9, 8, 5, 10 } uselistorder i64 %2, { 0, 6, 7, 8, 3, 4, 5, 1, 10, 9, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 5 } uselistorder i32 256, { 0, 1, 2, 7, 3, 8, 9, 4, 10, 5, 11, 6, 12 } uselistorder i32 %arg3, { 2, 0, 1 } uselistorder i64* %arg2, { 3, 4, 1, 2, 0, 5 } uselistorder label LBL_9, { 1, 0, 2, 3, 4 } }
0
BinRealVul
io_req_free_batch_7194
io_req_free_batch
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi3.reg2mem = alloca i32* %.reg2mem9 = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 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 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 %2) store i64 %8, i64* %rax.0.reg2mem br label LBL_13 LBL_2: %9 = urem i64 %1, 2 %10 = icmp eq i64 %9, 0 br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %2) br label LBL_4 LBL_4: %12 = ptrtoint i64* %arg1 to i64 %13 = add i64 %2, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, %2 br i1 %16, label LBL_4.LBL_9_crit_edge, label LBL_6 LBL_5: %.pre1 = add i64 %12, 8 %.pre2 = inttoptr i64 %.pre1 to i32* %.pre8 = load i32, i32* %.pre2, align 4 %phitmp = add i32 %.pre8, 1 store i32 %phitmp, i32* %.reg2mem9 store i32* %.pre2, i32** %.pre-phi3.reg2mem br label LBL_9 LBL_6: %17 = icmp eq i64* %arg2, null %.pre4 = add i64 %12, 8 %.pre6 = inttoptr i64 %.pre4 to i32* store i64 %15, i64* %.reg2mem br i1 %17, label LBL_8, label LBL_7 LBL_7: %18 = load i32, i32* %.pre6, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19, i64 %2) %21 = load i32, i32* %.pre6, align 4 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 %19, i64 %22) %.pre = load i64, i64* %14, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_8 LBL_8: %.reload = load i64, i64* %.reg2mem store i64 %.reload, i64* %arg1, align 8 store i32 0, i32* %.pre6, align 4 store i32 1, i32* %.reg2mem9 store i32* %.pre6, i32** %.pre-phi3.reg2mem br label LBL_9 LBL_9: %.pre-phi3.reload = load i32*, i32** %.pre-phi3.reg2mem %.reload10 = load i32, i32* %.reg2mem9 store i32 %.reload10, i32* %.pre-phi3.reload, align 4 %24 = call i64 @FUNC(i64 %2) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 br i1 %26, label LBL_11, label LBL_10 LBL_10: %27 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %28 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %27) br label LBL_11 LBL_11: %29 = add i64 %12, 16 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = add i64 %12, 24 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = add i32 %34, 1 store i32 %35, i32* %33, align 4 %36 = sext i32 %34 to i64 %37 = mul i64 %36, 8 %38 = add i64 %37, %31 %39 = inttoptr i64 %38 to i64* store i64 %2, i64* %39, align 8 %40 = load i32, i32* %33, align 4 %41 = icmp eq i32 %40, 1 %42 = icmp eq i1 %41, false store i64 0, i64* %rax.0.reg2mem br i1 %42, label LBL_13, label LBL_12 LBL_12: %43 = add i64 %2, 16 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = call i64 @FUNC(i64 %45, i64 %12) store i64 %46, 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* %.pre6, { 0, 1, 3, 2 } uselistorder i64 %12, { 2, 4, 3, 0, 1 } uselistorder i64 %2, { 4, 5, 6, 0, 1, 7, 3, 2, 8 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 0 } }
0
BinRealVul
dns_HTTPS_add_ipv6hint_12938
dns_HTTPS_add_ipv6hint
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %sv_0 = alloca i16, align 2 %1 = mul i64 %arg3, 16 %2 = and i64 %1, 4294967280 %3 = or i64 %2, 3 %4 = call i64 @FUNC(i64 %0) %5 = icmp slt i64 %3, %4 store i64 4294967295, i64* %storemerge.reg2mem br i1 %5, label LBL_1, label LBL_4 LBL_1: store i16 28, i16* %sv_0, align 2 %6 = call i64 @FUNC(i64 %0, i16* nonnull %sv_0, i64 2) %arg3.tr = trunc i64 %arg3 to i16 %7 = mul i16 %arg3.tr, 16 store i16 %7, i16* %sv_0, align 2 %8 = call i64 @FUNC(i64 %0, i16* nonnull %sv_0, i64 2) %9 = trunc i64 %arg3 to i32 %10 = icmp sgt i32 %9, 0 store i64 0, i64* %storemerge.reg2mem br i1 %10, label LBL_2, label LBL_4 LBL_2: %11 = ptrtoint i64* %arg2 to i64 %wide.trip.count = and i64 %arg3, 4294967295 store i64 0, i64* %indvars.iv.reg2mem br label LBL_3 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %12 = mul i64 %indvars.iv.reload, 16 %13 = add i64 %12, %11 %14 = inttoptr i64 %13 to i16* %15 = call i64 @FUNC(i64 %0, i16* %14, i64 16) %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 0, i64* %storemerge.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i16* %sv_0, { 0, 2, 1, 3 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64 (i64, i16*, i64)* @dns_add_rr_nested_memcpy, { 2, 1, 0 } uselistorder i64 16, { 2, 0, 1 } uselistorder i64 %arg3, { 1, 3, 2, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ide_sector_write_8402
ide_sector_write
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = bitcast i64* %arg1 to i32* store i32 7, i32* %1, align 4 %2 = call i64 @FUNC(i64 %0) %3 = add i64 %0, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = sext i32 %5 to i64 %11 = icmp sgt i64 %10, %9 %spec.select = select i1 %11, i32 %8, i32 %5 %12 = call i64 @FUNC(i64 %0, i64 %2, i32 %spec.select) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_2, label LBL_1 LBL_1: %16 = call i64 @FUNC(i64 %0) store i64 %16, i64* %rax.0.reg2mem br label LBL_3 LBL_2: %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = add i64 %0, 24 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = mul i32 %spec.select, 512 %23 = sext i32 %22 to i64 %24 = add i64 %0, 32 %25 = inttoptr i64 %24 to i64* store i64 %23, i64* %25, align 8 %26 = add i64 %0, 64 %27 = call i64 @FUNC(i64 %26, i64 %20, i64 1) %28 = add i64 %0, 56 %29 = add i64 %0, 40 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %31) %33 = call i64 @FUNC(i64 %32, i64 %28, i64 %23, i64 0) %34 = load i64, i64* %30, align 8 %35 = zext i32 %spec.select to i64 %36 = call i64 @FUNC(i64 %34, i64 %2, i64 %26, i64 %35, i64 4198829, i64 %0) %37 = add i64 %0, 48 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 store i64 %36, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %spec.select, { 2, 0, 1 } uselistorder i64 %0, { 0, 1, 3, 2, 4, 5, 7, 6, 8, 9, 10, 11, 12 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64 1, { 1, 0 } }
0
BinRealVul
lock_fdc_7225
lock_fdc
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 4210740) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %5 = call i32 @fwrite(i64* bitcast ([40 x i8]* @gv_1 to i64*), i32 1, i32 39, %_IO_FILE* %4) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %6 = call i64 @FUNC(i64 0, i64* nonnull @gv_2) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 %9 = load i32, i32* inttoptr (i64 4210772 to i32*), align 4 %10 = zext i1 %8 to i64 %11 = zext i32 %9 to i64 %12 = call i64 @FUNC(i64 %11, i64 %10) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i64 4294967292, i64* %rax.0.reg2mem br i1 %14, label LBL_3, label LBL_4 LBL_3: %15 = and i64 %arg1, 4294967295 store i32 0, i32* bitcast (i64* @gv_3 to i32*), align 8 %16 = call i64 @FUNC(i64 %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0)) %17 = call i64 @FUNC(i64 %15) store i64 0, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
skipSpaces_11925
skipSpaces
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i8 %sv_0.0.ph.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext2 = mul i64 %arg3, 4294967296 store i64 %0, i64* %sv_0.0.ph.reg2mem br label LBL_1 LBL_1: %sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem %1 = inttoptr i64 %sv_0.0.ph.reload to i8* %2 = load i8, i8* %1, align 1 %3 = icmp eq i8 %2, 32 %4 = add i64 %sv_0.0.ph.reload, 1 store i64 %4, i64* %sv_0.0.ph.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_2: %5 = icmp eq i8 %2, 35 %6 = icmp eq i1 %5, false store i8 %2, i8* %.lcssa.reg2mem br i1 %6, label LBL_5, label LBL_3 LBL_3: %7 = ashr exact i64 %sext2, 32 %8 = icmp sgt i64 %sv_0.0.ph.reload, %7 br i1 %8, label LBL_12, label LBL_4 LBL_4: store i8 0, i8* %1, align 1 store i8 0, i8* %.lcssa.reg2mem br label LBL_5 LBL_5: %.lcssa.reload = load i8, i8* %.lcssa.reg2mem %9 = sext i8 %.lcssa.reload to i64 %10 = and i64 %9, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_8, label LBL_6 LBL_6: %sext = mul i64 %arg2, 4294967296 %14 = ashr exact i64 %sext, 32 %15 = icmp slt i64 %sv_0.0.ph.reload, %14 br i1 %15, label LBL_7, label LBL_12 LBL_7: %16 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_8: %17 = load i8, i8* %1, align 1 switch i8 %17, label LBL_9 [ i8 0, label LBL_10 i8 10, label LBL_10 ] LBL_9: %18 = icmp eq i8 %17, 13 %19 = icmp eq i1 %18, false br i1 %19, label LBL_11, label LBL_10 LBL_10: store i8 46, i8* inttoptr (i64 2 to i8*), align 2 store i8 46, i8* inttoptr (i64 1 to i8*), align 1 call void @llvm.trap() unreachable LBL_11: %20 = icmp eq i8 %17, 9 %21 = icmp eq i1 %20, false %22 = select i1 %21, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0) %23 = call i64 @FUNC(i8* %22) unreachable LBL_12: ret i64 %sv_0.0.ph.reload uselistorder i8 %17, { 1, 2, 0 } uselistorder i8* %1, { 1, 0, 2 } uselistorder i64 %sv_0.0.ph.reload, { 4, 3, 2, 1, 0 } uselistorder i64* %sv_0.0.ph.reg2mem, { 2, 0, 1 } uselistorder i8* %.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64 (i8*)* @CV_PARSE_ERROR_CPP, { 1, 0 } uselistorder i8 0, { 1, 0, 3, 2 } uselistorder i1 false, { 1, 2, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 2, 0, 1 } }
1
BinRealVul
tc6393xb_init_2648
tc6393xb_init
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 88) %1 = trunc i64 %arg3 to i32 %2 = inttoptr i64 %0 to i32* store i32 %1, i32* %2, align 4 %3 = call i64 @FUNC(i64 4198983, i64 %0, i64 16) %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* store i64 %3, i64* %5, align 8 %6 = call i64 @FUNC(i64 4198990, i64 %0, i64 0) %7 = add i64 %0, 16 %8 = inttoptr i64 %7 to i64* store i64 %6, i64* %8, align 8 %9 = add i64 %0, 24 %10 = inttoptr i64 %9 to i32* store i32 1, i32* %10, align 4 %11 = call i64 @FUNC(i64 4198997, i64 %0, i64 32) %12 = add i64 %0, 32 %13 = inttoptr i64 %12 to i64* store i64 %11, i64* %13, align 8 %14 = call i64 @FUNC(i64 0, i64 0, i64 0) %15 = icmp eq i64 %14, 0 store i64 0, i64* %storemerge.reg2mem br i1 %15, label LBL_2, label LBL_1 LBL_1: %16 = call i64 @FUNC(i64 %14) store i64 %16, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %17 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %18 = ashr exact i64 %sext, 32 %storemerge.reload = load i64, i64* %storemerge.reg2mem %19 = call i64 @FUNC(i64 %storemerge.reload, i64 118, i64 118) %20 = add i64 %0, 40 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = add i64 %0, 48 %23 = call i64 @FUNC(i64 %22, i64 0, i64* nonnull @gv_0, i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 65536) %24 = and i64 %18, 4294967295 %25 = call i64 @FUNC(i64 %17, i64 %24, i64 %22) %26 = add i64 %0, 56 %27 = call i64 @FUNC(i64 %26, i64 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 1048576, i64 4199004) %28 = call i64 @FUNC(i64 %26) %29 = call i64 @FUNC(i64 %26) %30 = add i64 %0, 64 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 %32 = add nsw i64 %18, 1048576 %33 = and i64 %32, 4294967295 %34 = call i64 @FUNC(i64 %17, i64 %33, i64 %26) %35 = add i64 %0, 72 %36 = inttoptr i64 %35 to i32* store i32 480, i32* %36, align 4 %37 = add i64 %0, 76 %38 = inttoptr i64 %37 to i32* store i32 640, i32* %38, align 4 %39 = call i64 @FUNC(i64 0, i64 0, i64* nonnull @gv_3, i64 %0) %40 = add i64 %0, 80 %41 = inttoptr i64 %40 to i64* store i64 %39, i64* %41, align 8 ret i64 %0 uselistorder i64 %0, { 0, 2, 1, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i64)* @memory_region_add_subregion, { 1, 0 } uselistorder i64 118, { 1, 0 } uselistorder i64 32, { 0, 2, 1 } uselistorder i64 (i64, i64, i64)* @qemu_allocate_irqs, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
v9fs_getattr_15811
v9fs_getattr
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i32 %sv_0.1.reg2mem = alloca i64 %.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %2 = load i32, i32* %0 %3 = load i32, i32* %0 %4 = load i32, i32* %0 %5 = load i32, i32* %0 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 %sv_3 = alloca i32, align 4 %sv_4 = alloca i32, align 4 %6 = bitcast i32* %sv_3 to i64* %7 = bitcast i32* %sv_4 to i64* %8 = call i64 @FUNC(i64 %1, i64 7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %6, i64* nonnull %7) %9 = load i32, i32* %sv_3, align 4 %10 = zext i32 %9 to i64 %11 = call i64 @FUNC(i64 %1, i64 %10) %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 -2, i64* %sv_0.1.reg2mem br i1 %13, label LBL_1, label LBL_7 LBL_1: %14 = call i64 @FUNC(i64 %1, i64 %11, i64* nonnull %sv_2) %15 = icmp slt i64 %14, 0 store i64 %14, i64* %sv_0.0.reg2mem br i1 %15, label LBL_6, label LBL_2 LBL_2: %16 = bitcast i32* %sv_1 to i64* %17 = call i64 @FUNC(i64 %1, i64* nonnull %sv_2, i64* nonnull %16) %18 = load i32, i32* %sv_4, align 4 %19 = urem i32 %18, 2 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_5, label LBL_3 LBL_3: %21 = call i64 @FUNC(i64 %1, i64 %11, i32 %5, i64* nonnull %16) %22 = icmp slt i64 %21, 0 store i64 %21, i64* %sv_0.0.reg2mem br i1 %22, label LBL_6, label LBL_4 LBL_4: %23 = load i32, i32* %sv_1, align 4 %24 = or i32 %23, 1 store i32 %24, i32* %sv_1, align 4 br label LBL_5 LBL_5: %25 = call i64 @FUNC(i64 %1, i64 7, i64 4202528, i64* nonnull %16) %26 = add i64 %25, 7 store i64 %26, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %27 = call i64 @FUNC(i64 %1, i64 %11) %.pre = load i32, i32* %sv_1, align 4 store i32 %.pre, i32* %.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_7 LBL_7: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %.reload = load i32, i32* %.reg2mem %28 = zext i32 %.reload to i64 %29 = add i64 %1, 12 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i64 %1, 8 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = zext i32 %4 to i64 %36 = zext i32 %3 to i64 %37 = zext i32 %34 to i64 %38 = call i64 @FUNC(i64 %37, i32 %31, i64 %28, i32 %2, i64 %36, i64 %35) %39 = call i64 @FUNC(i64 %1, i64 %1, i64 %sv_0.1.reload) ret i64 %39 uselistorder i64* %16, { 1, 0, 2 } uselistorder i64 %11, { 1, 0, 2, 3 } uselistorder i32* %sv_1, { 0, 2, 1, 3 } uselistorder i64 %1, { 4, 3, 6, 5, 7, 1, 0, 2, 8, 9, 10 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i32* %0, { 3, 2, 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_6, { 2, 0, 1 } }
1
BinRealVul
cil_reset_perm_6314
cil_reset_perm
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 0) ret i64 %1 }
0
BinRealVul
_parse_dns_reply_6252
_parse_dns_reply
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.122.reg2mem = alloca i64 %storemerge23.reg2mem = alloca i32 %sv_0.0.lcssa.reg2mem = alloca i64 %storemerge228.reg2mem = alloca i32 %sv_0.029.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0.027 = add i64 %2, 4 %3 = trunc i64 %1 to i16 %4 = call i16 @ntohs(i16 %3) %5 = icmp eq i16 %4, 0 store i64 %sv_0.027, i64* %sv_0.029.reg2mem store i32 0, i32* %storemerge228.reg2mem store i64 %sv_0.027, i64* %sv_0.0.lcssa.reg2mem br i1 %5, label LBL_3, label LBL_1 LBL_1: %sv_0.029.reload = load i64, i64* %sv_0.029.reg2mem %6 = call i64 @FUNC(i64 %2, i64 %arg2, i64 %sv_0.029.reload) %7 = icmp slt i64 %6, 0 %8 = icmp eq i1 %7, false store i64 %6, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_16 LBL_2: %storemerge228.reload = load i32, i32* %storemerge228.reg2mem %9 = add nuw nsw i32 %storemerge228.reload, 1 %10 = add i64 %sv_0.029.reload, 4 %sv_0.0 = add i64 %10, %6 %11 = call i16 @ntohs(i16 %3) %12 = zext i16 %11 to i32 %13 = icmp ult i32 %9, %12 store i64 %sv_0.0, i64* %sv_0.029.reg2mem store i32 %9, i32* %storemerge228.reg2mem store i64 %sv_0.0, i64* %sv_0.0.lcssa.reg2mem br i1 %13, label LBL_1, label LBL_3 LBL_3: %14 = add i64 %2, 2 %15 = inttoptr i64 %14 to i16* %16 = load i16, i16* %15, align 2 %17 = call i16 @ntohs(i16 %16) %18 = icmp eq i16 %17, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %18, label LBL_16, label LBL_4 LBL_4: %19 = add i64 %2, %arg2 %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %20 = trunc i64 %arg4 to i32 %21 = icmp eq i32 %20, 10 %22 = icmp eq i32 %20, 2 store i32 0, i32* %storemerge23.reg2mem store i64 %sv_0.0.lcssa.reload, i64* %sv_0.122.reg2mem br label LBL_5 LBL_5: %sv_0.122.reload = load i64, i64* %sv_0.122.reg2mem %23 = call i64 @FUNC(i64 %2, i64 %arg2, i64 %sv_0.122.reload) %24 = icmp slt i64 %23, 0 %25 = icmp eq i1 %24, false store i64 %23, i64* %rax.0.reg2mem br i1 %25, label LBL_6, label LBL_16 LBL_6: %26 = add i64 %23, %sv_0.122.reload %27 = add i64 %26, 8 %28 = icmp ugt i64 %19, %27 store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_7, label LBL_16 LBL_7: %storemerge23.reload = load i32, i32* %storemerge23.reg2mem %29 = call i64 @FUNC(i64 %26) %30 = trunc i64 %29 to i16 %31 = call i16 @ntohs(i16 %30) %32 = add i64 %26, 2 %33 = call i64 @FUNC(i64 %32) %34 = trunc i64 %33 to i16 %35 = call i16 @ntohs(i16 %34) %36 = call i64 @FUNC(i64 %27) %37 = trunc i64 %36 to i16 %38 = call i16 @ntohs(i16 %37) %39 = icmp eq i16 %35, 1 %40 = icmp eq i1 %39, false %41 = icmp eq i16 %31, 1 %or.cond7 = icmp eq i1 %21, %41 %or.cond46 = or i1 %or.cond7, %40 %42 = icmp eq i16 %31, 28 %or.cond9 = icmp eq i1 %22, %42 %or.cond47 = or i1 %or.cond9, %or.cond46 br i1 %or.cond47, label LBL_9, label LBL_8 LBL_8: switch i16 %31, label LBL_9 [ i16 28, label LBL_11 i16 1, label LBL_11 ] LBL_9: %43 = zext i16 %38 to i64 %44 = icmp ugt i64 %43, %arg2 %45 = icmp eq i1 %44, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %45, label LBL_10, label LBL_16 LBL_10: %46 = add i64 %27, %43 %47 = add nuw nsw i32 %storemerge23.reload, 1 %48 = load i16, i16* %15, align 2 %49 = call i16 @ntohs(i16 %48) %50 = zext i16 %49 to i32 %51 = icmp ult i32 %47, %50 store i32 %47, i32* %storemerge23.reg2mem store i64 %46, i64* %sv_0.122.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %51, label LBL_5, label LBL_16 LBL_11: %52 = icmp ne i16 %38, 4 %or.cond = icmp eq i1 %22, %52 %53 = icmp ne i16 %38, 16 %or.cond12 = icmp eq i1 %21, %53 %or.cond13 = or i1 %or.cond, %or.cond12 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond13, label LBL_16, label LBL_12 LBL_12: switch i16 %38, label LBL_13 [ i16 16, label LBL_14 i16 4, label LBL_14 ] LBL_13: %54 = icmp eq i32 %20, 0 %55 = icmp eq i1 %54, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %55, label LBL_14, label LBL_16 LBL_14: %56 = add i64 %26, 10 %57 = zext i16 %38 to i64 %58 = add i64 %56, %57 %59 = icmp ugt i64 %19, %58 store i64 4294967295, i64* %rax.0.reg2mem br i1 %59, label LBL_15, label LBL_16 LBL_15: %60 = zext i16 %38 to i32 %61 = inttoptr i64 %56 to i64* %62 = call i64* @memcpy(i64* %arg3, i64* %61, i32 %60) store i64 %57, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %56, { 1, 0 } uselistorder i16 %38, { 4, 2, 1, 0, 3, 5 } uselistorder i16 %31, { 2, 0, 1 } uselistorder i64 %26, { 0, 2, 1, 3 } uselistorder i64 %23, { 1, 0, 2 } uselistorder i64 %sv_0.122.reload, { 1, 0 } uselistorder i16* %15, { 1, 0 } uselistorder i64 %6, { 1, 0, 2 } uselistorder i64 %sv_0.029.reload, { 1, 0 } uselistorder i64 %2, { 1, 4, 2, 3, 0 } uselistorder i64* %sv_0.029.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge228.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.122.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 10, 7, 8, 9, 5, 4, 3, 2, 6, 1 } uselistorder i16 16, { 1, 0 } uselistorder i16 28, { 1, 0 } uselistorder i16 1, { 1, 0, 2 } uselistorder i64 (i64)* @_get_short, { 2, 1, 0 } uselistorder i64 (i64, i64, i64)* @_skip_hostname, { 1, 0 } uselistorder i16 (i16)* @ntohs, { 3, 6, 5, 4, 1, 2, 0 } uselistorder i64 %arg2, { 0, 1, 3, 2 } uselistorder label LBL_16, { 9, 6, 7, 8, 4, 3, 2, 1, 5, 0 } uselistorder label LBL_14, { 2, 0, 1 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
qemu_coroutine_enter_14034
qemu_coroutine_enter
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() %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %1, i64 %0, i64 %4) %6 = icmp eq i64 %1, 0 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 ([35 x i8]* @gv_1 to i64*), i32 1, i32 34, %_IO_FILE* %7) call void @abort() unreachable LBL_2: store i64 0, i64* %arg1, align 8 %9 = call i64 @FUNC() %10 = add i64 %0, 16 %11 = inttoptr i64 %10 to i64* store i64 %9, i64* %11, align 8 %12 = call i64 @FUNC() %13 = call i64 @FUNC(i64 0, i64 %0, i64 2) %14 = trunc i64 %13 to i32 %15 = call i64 @FUNC(i64 %0) %16 = icmp eq i32 %14, 0 store i64 %15, i64* %rax.0.reg2mem br i1 %16, label LBL_8, label LBL_3 LBL_3: %17 = icmp eq i32 %14, 1 %18 = icmp eq i1 %17, false br i1 %18, label LBL_7, label LBL_4 LBL_4: %19 = add i64 %0, 24 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0)) br label LBL_6 LBL_6: %23 = call i64 @FUNC(i64 %0) %24 = call i64 @FUNC(i64 %0) store i64 %24, i64* %rax.0.reg2mem br label LBL_8 LBL_7: call void @abort() unreachable LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 1, 0, 2, 4, 3, 5, 6, 7 } uselistorder void ()* @abort, { 1, 0 } uselistorder label LBL_8, { 1, 0 } }
1
BinRealVul
zfcp_erp_rports_del_18452
zfcp_erp_rports_del
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge1.lcssa.reg2mem = alloca i64 %storemerge12.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %storemerge12.reg2mem store i64 %0, i64* %storemerge1.lcssa.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %storemerge12.reload = load i64, i64* %storemerge12.reg2mem %3 = add i64 %storemerge12.reload, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) store i64 0, i64* %4, align 8 %7 = inttoptr i64 %storemerge12.reload to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false store i64 %8, i64* %storemerge12.reg2mem store i64 %8, i64* %storemerge1.lcssa.reg2mem br i1 %10, label LBL_1, label LBL_2 LBL_2: %storemerge1.lcssa.reload = load i64, i64* %storemerge1.lcssa.reg2mem ret i64 %storemerge1.lcssa.reload uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
bfd_rtalloc_18411
bfd_rtalloc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %storemerge1 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %storemerge1, 0 %2 = icmp eq i1 %1, false store i64 %storemerge1, i64* %storemerge2.reg2mem br i1 %2, label LBL_1, label LBL_3 LBL_1: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %3 = inttoptr i64 %storemerge2.reload to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, %0 %6 = icmp eq i1 %5, false store i64 98, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_13 LBL_2: %7 = add i64 %storemerge2.reload, 16 %8 = inttoptr i64 %7 to i64* %storemerge = load i64, i64* %8, align 8 %9 = icmp eq i64 %storemerge, 0 %10 = icmp eq i1 %9, false store i64 %storemerge, i64* %storemerge2.reg2mem br i1 %10, label LBL_1, label LBL_3 LBL_3: %11 = call i64 @FUNC(i64* nonnull @gv_1, i64 3) %12 = icmp eq i64 %11, 0 br i1 %12, label LBL_10, label LBL_4 LBL_4: %13 = call i64 @FUNC(i64* nonnull @gv_2, i64 3) %14 = add i64 %11, 8 %15 = inttoptr i64 %14 to i64* store i64 %13, i64* %15, align 8 %16 = icmp eq i64 %13, 0 br i1 %16, label LBL_12, label LBL_5 LBL_5: %17 = inttoptr i64 %11 to i64* store i64 %0, i64* %17, align 8 %18 = call i64 @FUNC(i64 %11) %19 = load i64, i64* %15, align 8 %20 = call i64 @FUNC() %21 = trunc i64 %20 to i32 %22 = add i64 %19, 48 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = add i64 %11, 24 %25 = call i64 @FUNC(i64 %24) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_7, label LBL_6 LBL_6: %29 = call i64 @FUNC(i64 %24, i64 4198845, i64 %11) br label LBL_7 LBL_7: %30 = add i64 %11, 32 %31 = call i64 @FUNC(i64 %30) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 %34 = icmp eq i1 %33, false br i1 %34, label LBL_9, label LBL_8 LBL_8: %35 = call i64 @FUNC(i64 %30, i64 4198856, i64 %11) br label LBL_9 LBL_9: %36 = add i64 %11, 40 %37 = call i64 @FUNC(i64 %36, i64 4198912, i64 %11) %38 = load i64, i64* @gv_3, align 8 %39 = call i64 @FUNC(i64 %38, i64 %36) %40 = add i64 %11, 16 %41 = inttoptr i64 %40 to i64* store i64 0, i64* %41, align 8 %42 = load i64*, i64** @gv_4, align 8 store i64 %11, i64* %42, align 8 store i64 %40, i64* bitcast (i64** @gv_4 to i64*), align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_13 LBL_10: %.pr = load i64, i64* inttoptr (i64 8 to i64*), align 8 %43 = icmp eq i64 %.pr, 0 store i64 12, i64* %rax.0.reg2mem br i1 %43, label LBL_13, label LBL_11 LBL_11: %44 = call i64 @FUNC(i64* nonnull @gv_2, i64 %.pr) store i64 12, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %45 = call i64 @FUNC(i64* nonnull @gv_1, i64 %11) store i64 12, 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 %.pr, { 1, 0 } uselistorder i64 %11, { 11, 2, 3, 5, 4, 1, 6, 0, 7, 8, 9, 10, 12 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 5, 1 } uselistorder i64 (i64*, i64)* @pool_put, { 1, 0 } uselistorder i64 12, { 2, 1, 0 } uselistorder i64** @gv_4, { 1, 0 } uselistorder i64 (i64, i64, i64)* @timeout_set, { 1, 0 } uselistorder i64 (i64)* @timeout_initialized, { 1, 0 } uselistorder i64 (i64*, i64)* @pool_get, { 1, 0 } uselistorder i1 false, { 1, 3, 4, 2, 0 } uselistorder label LBL_13, { 3, 2, 1, 4, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
DetectTlsVersionParse_4452
DetectTlsVersionParse
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i16 %sv_1.0.reg2mem = alloca i8* %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %0 = inttoptr i64 %arg1 to i8* %1 = call i32 @strlen(i8* %0) %2 = load i64, i64* @gv_0, align 8 %3 = load [16 x i8]*, [16 x i8]** @gv_1, align 8 %4 = ptrtoint [16 x i8]* %3 to i64 %5 = zext i32 %1 to i64 %6 = call i64 @FUNC(i64 %4, i64 %2, i64 %arg1, i64 %5, i64 0, i64 0) %7 = trunc i64 %6 to i32 %.off = add i32 %7, -1 %8 = icmp ult i32 %.off, 3 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0)) store i64 0, i64* %storemerge.reg2mem br label LBL_15 LBL_2: %10 = icmp slt i32 %7, 2 store i64 0, i64* %storemerge.reg2mem br i1 %10, label LBL_15, label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_3, i64 30, i64 1, i64* nonnull %sv_2) %12 = trunc i64 %11 to i32 %13 = icmp slt i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0)) store i64 0, i64* %storemerge.reg2mem br label LBL_15 LBL_5: %16 = call i64 @FUNC(i64 2) %cond = icmp eq i64 %16, 0 store i64 0, i64* %storemerge.reg2mem br i1 %cond, label LBL_15, label LBL_6 LBL_6: %17 = load i64, i64* %sv_2, align 8 %18 = call i64 @FUNC(i64 %17) %19 = icmp eq i64 %18, 0 br i1 %19, label LBL_14, label LBL_7 LBL_7: %20 = inttoptr i64 %18 to i8* %21 = load i8, i8* %20, align 1 %22 = icmp eq i8 %21, 34 %23 = icmp eq i1 %22, false store i8* %20, i8** %sv_1.0.reg2mem br i1 %23, label LBL_9, label LBL_8 LBL_8: %24 = call i32 @strlen(i8* nonnull %20) %25 = sext i32 %24 to i64 %26 = add i64 %18, -1 %27 = add i64 %26, %25 %28 = inttoptr i64 %27 to i8* store i8 0, i8* %28, align 1 %29 = add i64 %18, 1 %30 = inttoptr i64 %29 to i8* store i8* %30, i8** %sv_1.0.reg2mem br label LBL_9 LBL_9: %sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem %31 = call i32 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i8* %sv_1.0.reload) %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i16 256, i16* %sv_0.0.reg2mem br i1 %33, label LBL_10, label LBL_13 LBL_10: %34 = call i32 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* %sv_1.0.reload) %35 = icmp eq i32 %34, 0 %36 = icmp eq i1 %35, false store i16 257, i16* %sv_0.0.reg2mem br i1 %36, label LBL_11, label LBL_13 LBL_11: %37 = call i32 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i8* %sv_1.0.reload) %38 = icmp eq i32 %37, 0 %39 = icmp eq i1 %38, false store i16 258, i16* %sv_0.0.reg2mem br i1 %39, label LBL_12, label LBL_13 LBL_12: %40 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_7, i64 0, i64 0)) br label LBL_14 LBL_13: %41 = inttoptr i64 %16 to i16* %sv_0.0.reload = load i16, i16* %sv_0.0.reg2mem store i16 %sv_0.0.reload, i16* %41, align 2 %42 = call i64 @FUNC(i64 %18) %43 = load i16, i16* %41, align 2 %44 = urem i16 %43, 256 %45 = zext i16 %44 to i64 %46 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 %45) store i64 %16, i64* %storemerge.reg2mem br label LBL_15 LBL_14: %47 = call i64 @FUNC(i64 %16) store i64 0, i64* %storemerge.reg2mem br label LBL_15 LBL_15: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i16* %41, { 1, 0 } uselistorder i8* %sv_1.0.reload, { 2, 1, 0 } uselistorder i8* %20, { 1, 0, 2 } uselistorder i64 %18, { 2, 1, 0, 3, 4 } uselistorder i64 %16, { 2, 0, 3, 1 } uselistorder i32 %7, { 1, 0 } uselistorder i64* %sv_2, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 6, 4, 1, 3, 5, 2 } uselistorder i64 (i64)* @SCFree, { 1, 0 } uselistorder i16 256, { 1, 0 } uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 (i64, i8*)* @SCLogError, { 2, 1, 0 } uselistorder label LBL_15, { 5, 4, 0, 2, 3, 1 } }
0
BinRealVul
virtio_config_writeb_15995
virtio_config_writeb
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %arg2, 4294967295 %3 = and i64 %1, 4294967295 %4 = add nsw i64 %3, -1 %5 = icmp ugt i64 %2, %4 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = urem i64 %arg3, 256 %7 = ptrtoint i32* %arg1 to i64 %8 = add i64 %7, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = add i64 %10, %2 %12 = call i64 @FUNC(i64 %11, i64 %6) %13 = icmp eq i64 %11, 0 %spec.select = select i1 %13, i64 0, i64 %7 ret i64 %spec.select LBL_2: ret i64 %4 }
1
BinRealVul
proc_pid_readdir_6614
proc_pid_readdir
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge24.reg2mem = alloca i64 %storemerge5.reg2mem = alloca i64 %0 = icmp ugt i64* %arg1, inttoptr (i64 32767 to i64*) br i1 %0, label LBL_8, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %1, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %6) %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_8, label LBL_2 LBL_2: %9 = add i64 %1, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %15, i64 0, i64 %6) %17 = icmp eq i64 %16, 0 %18 = icmp eq i1 %17, false store i64 %6, i64* %storemerge5.reg2mem store i64 %16, i64* %storemerge24.reg2mem br i1 %18, label LBL_3, label LBL_6 LBL_3: %storemerge24.reload = load i64, i64* %storemerge24.reg2mem %storemerge5.reload = load i64, i64* %storemerge5.reg2mem store i64 %storemerge5.reload, i64* %arg1, align 8 %19 = call i64 @FUNC(i64 %1, i64 %arg2, i64 %arg3, i64 %storemerge24.reload, i64 %storemerge5.reload) %20 = trunc i64 %19 to i32 %21 = icmp slt i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = call i64 @FUNC(i64 %storemerge24.reload) br label LBL_7 LBL_5: %24 = add i64 %storemerge5.reload, 1 %25 = call i64 @FUNC(i64 %15, i64 %storemerge24.reload, i64 %24) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 %24, i64* %storemerge5.reg2mem store i64 %25, i64* %storemerge24.reg2mem br i1 %27, label LBL_3, label LBL_6 LBL_6: store i64 32768, i64* %arg1, align 8 br label LBL_7 LBL_7: %28 = call i64 @FUNC(i64 %7) br label LBL_8 LBL_8: ret i64 0 uselistorder i64 %storemerge24.reload, { 0, 2, 1 } uselistorder i64* %storemerge5.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge24.reg2mem, { 2, 0, 1 } uselistorder i64 (i64)* @put_task_struct, { 1, 0 } uselistorder i1 false, { 2, 1, 0 } uselistorder i64 (i64, i64, i64)* @next_tgid, { 1, 0 } uselistorder i64* %arg1, { 1, 0, 3, 2 } uselistorder label LBL_8, { 2, 0, 1 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
spapr_rtc_class_init_15144
spapr_rtc_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198662, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8 %3 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 4198669) %4 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 4198676) ret i64 %4 uselistorder i64 (i64, i8*, i64)* @spapr_rtas_register, { 1, 0 } }
1
BinRealVul
EncodeLabImage_7971
EncodeLabImage
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.1.lcssa.reg2mem = alloca i32 %rdi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i64 %storemerge12.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_0.13.reg2mem = alloca i32 %rdi.14.reg2mem = alloca i64 %storemerge5.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = icmp sgt i64* %arg1, null store i32 1, i32* %sv_0.1.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_12 LBL_1: %4 = add i64 %1, 8 %5 = inttoptr i64 %4 to i64* store i64 0, i64* %storemerge5.reg2mem store i64 %1, i64* %rdi.14.reg2mem store i32 1, i32* %sv_0.13.reg2mem br label LBL_2 LBL_2: %sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem %rdi.14.reload = load i64, i64* %rdi.14.reg2mem %storemerge5.reload = load i64, i64* %storemerge5.reg2mem %6 = icmp eq i32 %sv_0.13.reload, 0 store i32 0, i32* %sv_0.0.reg2mem store i64 %rdi.14.reload, i64* %rdi.0.reg2mem br i1 %6, label LBL_11, label LBL_3 LBL_3: %7 = load i64, i64* %5, align 8 %8 = call i64 @FUNC(i64 %2, i64 0, i64 %storemerge5.reload, i64 %7, i64 1, i64 %0, i64 %storemerge5.reload) %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false store i32 0, i32* %sv_0.0.reg2mem store i64 %2, i64* %rdi.0.reg2mem br i1 %10, label LBL_4, label LBL_11 LBL_4: %11 = load i64, i64* %5, align 8 %12 = icmp sgt i64 %11, 0 store i64 %11, i64* %.reg2mem store i64 0, i64* %storemerge12.reg2mem br i1 %12, label LBL_5, label LBL_10 LBL_5: %storemerge12.reload = load i64, i64* %storemerge12.reg2mem %.reload = load i64, i64* %.reg2mem %13 = call i128 @FUNC(i64 %8) %14 = call i64 @FUNC(i128 %13) %15 = call i128 @__asm_movsd.1(i64 4602678819172646912) %16 = call i128 @__asm_movq.2(i64 %14) %17 = call i128 @FUNC(i128 %16, i128 %15) %18 = call i64 @FUNC(i128 %17) %19 = call i128 @FUNC(i128 %17, i128 %17) %20 = sext i64 %18 to i128 call void @FUNC(i128 %19, i128 %20) %21 = icmp ugt i64 %storemerge12.reload, %.reload store i64 %18, i64* %sv_2.0.reg2mem br i1 %21, label LBL_6, label LBL_7 LBL_6: %22 = call i128 @__asm_movsd.1(i64 %18) %23 = call i128 @__asm_movsd.1(i64 4607182418800017408) %24 = call i128 @FUNC(i128 %23, i128 %22) %25 = call i64 @FUNC(i128 %24) store i64 %25, i64* %sv_2.0.reg2mem br label LBL_7 LBL_7: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %26 = call i128 @FUNC(i64 %8) %27 = call i64 @FUNC(i128 %26) %28 = call i128 @__asm_movsd.1(i64 4602678819172646912) %29 = call i128 @__asm_movq.2(i64 %27) %30 = call i128 @FUNC(i128 %29, i128 %28) %31 = call i64 @FUNC(i128 %30) %32 = call i128 @FUNC(i128 %30, i128 %30) %33 = sext i64 %31 to i128 call void @FUNC(i128 %32, i128 %33) store i64 %31, i64* %sv_1.0.reg2mem br i1 %21, label LBL_8, label LBL_9 LBL_8: %34 = call i128 @__asm_movsd.1(i64 %31) %35 = call i128 @__asm_movsd.1(i64 4607182418800017408) %36 = call i128 @FUNC(i128 %35, i128 %34) %37 = call i64 @FUNC(i128 %36) store i64 %37, i64* %sv_1.0.reg2mem br label LBL_9 LBL_9: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %38 = call i128 @__asm_movq.2(i64 %sv_2.0.reload) %39 = call i64 @FUNC(i64 %8) %40 = call i128 @__asm_movq.2(i64 %sv_1.0.reload) %41 = call i64 @FUNC(i64 %8) %42 = add nuw nsw i64 %storemerge12.reload, 1 %43 = load i64, i64* %5, align 8 %44 = icmp slt i64 %42, %43 store i64 %43, i64* %.reg2mem store i64 %42, i64* %storemerge12.reg2mem br i1 %44, label LBL_5, label LBL_10 LBL_10: %45 = call i64 @FUNC(i64 %2, i64 %0) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false %spec.select = select i1 %48, i32 %sv_0.13.reload, i32 0 store i32 %spec.select, i32* %sv_0.0.reg2mem store i64 %2, i64* %rdi.0.reg2mem br label LBL_11 LBL_11: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %49 = add nuw nsw i64 %storemerge5.reload, 1 %50 = icmp slt i64 %49, %rdi.0.reload store i64 %49, i64* %storemerge5.reg2mem store i64 %rdi.0.reload, i64* %rdi.14.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem br i1 %50, label LBL_2, label LBL_12 LBL_12: %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %51 = call i64 @FUNC(i64 %2) %52 = zext i32 %sv_0.1.lcssa.reload to i64 ret i64 %52 uselistorder i64 %rdi.0.reload, { 1, 0 } uselistorder i64 %31, { 1, 0, 2 } uselistorder i128 %30, { 2, 1, 0 } uselistorder i64 %18, { 1, 0, 2 } uselistorder i128 %17, { 2, 1, 0 } uselistorder i64 %storemerge12.reload, { 1, 0 } uselistorder i64 %8, { 1, 0, 2, 3, 4 } uselistorder i64 %storemerge5.reload, { 0, 2, 1 } uselistorder i64* %5, { 1, 0, 2 } uselistorder i64 %2, { 2, 0, 3, 1, 4 } uselistorder i64* %storemerge5.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.14.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 } uselistorder i64 1, { 2, 3, 1, 0 } uselistorder i32 0, { 2, 5, 0, 1, 6, 3, 4 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
dns_question_matches_rr_4311
dns_question_matches_rr
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg2, null %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = trunc i64 %1 to i32 %5 = icmp eq i64* %arg1, null %6 = icmp eq i32 %4, 0 %or.cond = or i1 %5, %6 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_7, label LBL_3 LBL_3: %7 = ptrtoint i64* %arg2 to i64 %8 = ptrtoint i64* %arg1 to i64 %9 = add i64 %8, 8 %10 = inttoptr i64 %9 to i64* %11 = and i64 %1, 4294967295 store i64 0, i64* %indvars.iv.reg2mem br label LBL_4 LBL_4: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %12 = load i64, i64* %10, align 8 %13 = mul i64 %indvars.iv.reload, 8 %14 = add i64 %12, %13 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %16, i64 %7) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 br i1 %19, label LBL_6, label LBL_5 LBL_5: %20 = and i64 %17, 4294967295 store i64 %20, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %21 = icmp ult i64 %indvars.iv.next, %11 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_4, label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 } uselistorder i32 0, { 1, 0 } uselistorder i64* %arg2, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_7, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
set_input_output_native_6829
set_input_output_native
define i64 @FUNC(i32* %arg1, i32* %arg2, i8* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge612.reg2mem = alloca i32 %.reg2mem21 = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge714.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 1 store i64 1, i64* %rax.0.reg2mem br i1 %3, label LBL_16, label LBL_1 LBL_1: %4 = ptrtoint i32* %arg1 to i64 %5 = add i64 %4, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 %9 = icmp slt i32 %7, 0 %10 = icmp eq i1 %9, false %11 = icmp eq i1 %8, false %12 = icmp ne i1 %10, %11 %brmerge = or i1 %8, %12 store i64 1, i64* %rax.0.reg2mem br i1 %brmerge, label LBL_16, label LBL_2 LBL_2: %13 = ptrtoint i64* %arg4 to i64 %sext = mul i64 %arg5, 4294967296 %14 = ashr exact i64 %sext, 32 %15 = add i64 %4, 8 %16 = inttoptr i64 %15 to i64* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge714.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %17 = load i64, i64* %16, align 8 %18 = mul nsw i64 %.reload, 48 %19 = add i64 %17, %18 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = inttoptr i64 %21 to i8* %23 = call i32 @strcmp(i8* %22, i8* %arg3) %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_5, label LBL_4 LBL_4: %26 = add i64 %19, 8 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %28, 1 %30 = icmp eq i64 %19, 0 %31 = icmp eq i1 %30, false %or.cond = icmp eq i1 %31, %29 store i64 1, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_6, label LBL_16 LBL_5: %storemerge714.reload = load i32, i32* %storemerge714.reg2mem %32 = add i32 %storemerge714.reload, 1 %33 = load i32, i32* %6, 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* %storemerge714.reg2mem store i64 1, i64* %rax.0.reg2mem br i1 %36, label LBL_3, label LBL_16 LBL_6: %37 = add i64 %19, 12 %38 = inttoptr i64 %37 to i32* store i32 1, i32* %38, align 4 %39 = bitcast i64* %rsi to i32* %40 = load i32, i32* %39, align 8 %41 = add i64 %19, 16 %42 = inttoptr i64 %41 to i32* store i32 %40, i32* %42, align 4 %43 = ptrtoint i32* %arg2 to i64 %44 = add i64 %43, 4 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = add i64 %19, 20 %48 = inttoptr i64 %47 to i32* store i32 %46, i32* %48, align 4 %49 = add i64 %43, 8 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = add i64 %19, 24 %53 = inttoptr i64 %52 to i32* store i32 %51, i32* %53, align 4 %54 = add i64 %19, 32 %55 = call i64 @FUNC(i64 %54) %56 = call i64 @FUNC(i64 %19) %57 = trunc i64 %56 to i32 %58 = add i64 %19, 40 %59 = inttoptr i64 %58 to i32* store i32 %57, i32* %59, align 4 %60 = icmp eq i32 %57, 0 %61 = icmp slt i32 %57, 0 %62 = icmp eq i1 %61, false %63 = icmp eq i1 %60, false %64 = icmp eq i1 %62, %63 store i64 1, i64* %rax.0.reg2mem br i1 %64, label LBL_7, label LBL_16 LBL_7: %sext9 = mul i64 %56, 4294967296 %65 = ashr exact i64 %sext9, 32 %66 = call i64 @FUNC(i64 %65) %67 = inttoptr i64 %54 to i64* store i64 %66, i64* %67, align 8 %68 = icmp eq i64 %66, 0 %69 = icmp eq i1 %68, false store i64 1, i64* %rax.0.reg2mem br i1 %69, label LBL_8, label LBL_16 LBL_8: %70 = add i64 %43, 16 %71 = inttoptr i64 %70 to i64* store i64 %66, i64* %71, align 8 %72 = add i64 %4, 16 %73 = inttoptr i64 %72 to i32* store i32 0, i32* %73, align 4 %74 = add i64 %4, 24 %75 = call i64 @FUNC(i64 %74) %76 = and i64 %14, 4294967295 %77 = call i64 @FUNC(i64 %76, i64 4) %78 = inttoptr i64 %74 to i64* store i64 %77, i64* %78, align 8 %79 = icmp eq i64 %77, 0 %80 = icmp eq i1 %79, false store i64 1, i64* %rax.0.reg2mem br i1 %80, label LBL_9, label LBL_16 LBL_9: %81 = trunc i64 %14 to i32 %82 = icmp eq i32 %81, 0 store i64 0, i64* %indvars.iv.reg2mem br i1 %82, label LBL_15, label LBL_10 LBL_10: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %83 = mul i64 %indvars.iv.reload, 8 %84 = add i64 %83, %13 %85 = inttoptr i64 %84 to i64* %86 = load i64, i64* %85, align 8 %87 = inttoptr i64 %86 to i8* %88 = load i32, i32* %6, align 4 %89 = icmp eq i32 %88, 0 store i64 0, i64* %.reg2mem21 store i32 0, i32* %storemerge612.reg2mem br i1 %89, label LBL_14, label LBL_11 LBL_11: %storemerge612.reload = load i32, i32* %storemerge612.reg2mem %.reload22 = load i64, i64* %.reg2mem21 %90 = load i64, i64* %16, align 8 %91 = mul nsw i64 %.reload22, 48 %92 = add i64 %90, %91 %93 = inttoptr i64 %92 to i64* %94 = load i64, i64* %93, align 8 %95 = inttoptr i64 %94 to i8* %96 = call i32 @strcmp(i8* %95, i8* %87) %97 = icmp eq i32 %96, 0 %98 = icmp eq i1 %97, false br i1 %98, label LBL_13, label LBL_12 LBL_12: %99 = load i64, i64* %78, align 8 %100 = load i32, i32* %73, align 4 %101 = add i32 %100, 1 store i32 %101, i32* %73, align 4 %102 = zext i32 %100 to i64 %103 = mul i64 %102, 4 %104 = add i64 %103, %99 %105 = inttoptr i64 %104 to i32* store i32 %storemerge612.reload, i32* %105, align 4 br label LBL_14 LBL_13: %106 = add i32 %storemerge612.reload, 1 %107 = load i32, i32* %6, align 4 %108 = zext i32 %107 to i64 %109 = sext i32 %106 to i64 %110 = icmp slt i64 %109, %108 store i64 %109, i64* %.reg2mem21 store i32 %106, i32* %storemerge612.reg2mem br i1 %110, label LBL_11, label LBL_14 LBL_14: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %76 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_15, label LBL_10 LBL_15: %111 = load i32, i32* %73, align 4 %112 = icmp ne i32 %111, %81 %. = zext i1 %112 to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %73, { 0, 2, 1, 3 } uselistorder i64 %66, { 1, 0, 2 } uselistorder i64 %19, { 5, 6, 7, 4, 3, 2, 1, 0, 8, 9 } uselistorder i32 %7, { 1, 0 } uselistorder i32* %6, { 1, 0, 2, 3 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge714.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem21, { 2, 0, 1 } uselistorder i32* %storemerge612.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 1, 6, 8, 7 } uselistorder i1 false, { 3, 4, 5, 6, 1, 0, 7, 8, 2 } uselistorder label LBL_16, { 2, 3, 4, 5, 0, 6, 1, 7 } uselistorder label LBL_14, { 0, 2, 1 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
queue_push_7766
queue_push
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi.3.reg2mem = alloca i64 %rdi.2.reg2mem = alloca i64 %.pre-phi8.reg2mem = alloca i64* %rdi.1.reg2mem = alloca i64* %rdi.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = icmp eq i64 %arg2, 0 br i1 %3, label LBL_15, label LBL_1 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 = sub i64 %7, %4 %9 = add i64 %4, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %4, 24 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp ult i64 %14, %11 br i1 %15, label LBL_3, label LBL_2 LBL_2: %16 = sub i64 %14, %11 %.pre = mul i64 %8, 4294967296 %.pre7 = ashr exact i64 %.pre, 32 store i64 %.pre7, i64* %.pre-phi.reg2mem store i64 %16, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %sext4 = mul i64 %8, 4294967296 %17 = ashr exact i64 %sext4, 32 %18 = sub i64 %14, %11 %19 = add i64 %18, %17 store i64 %17, i64* %.pre-phi.reg2mem store i64 %19, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %20 = call i64 @FUNC(i64 1) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 store i64 1, i64* %rdi.0.reg2mem br i1 %22, label LBL_6, label LBL_5 LBL_5: %23 = and i64 %arg2, 4294967295 %24 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %23, i64 %arg3, i64 %23, i64 %2, i64 %1) store i64 %23, i64* %rcx.0.reg2mem store i64 ptrtoint ([28 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem br label LBL_6 LBL_6: %25 = sub i64 0, %storemerge.reload %26 = sub i64 %25, 1 %27 = add i64 %.pre-phi.reload, %26 %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %28 = icmp ult i64 %27, %arg2 store i64 %rdi.0.reload, i64* %rdi.3.reg2mem br i1 %28, label LBL_7, label LBL_13 LBL_7: %29 = add i64 %arg2, 1024 %30 = add i64 %29, %.pre-phi.reload %31 = sub i64 %30, %27 %32 = call i64 @FUNC(i64 %31, i64 1) %33 = call i64 @FUNC(i64 1) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 store i64* inttoptr (i64 1 to i64*), i64** %rdi.1.reg2mem br i1 %35, label LBL_9, label LBL_8 LBL_8: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %36 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0), i64 1, i64 %32, i64 %rcx.0.reload, i64 %2, i64 %1) store i64* bitcast ([31 x i8]* @gv_1 to i64*), i64** %rdi.1.reg2mem br label LBL_9 LBL_9: %37 = load i64, i64* %10, align 8 %38 = load i64, i64* %13, align 8 %39 = icmp ugt i64 %37, %38 br i1 %39, label LBL_10, label LBL_11 LBL_10: %40 = load i64, i64* %6, align 8 %41 = sub i64 %40, %37 %42 = inttoptr i64 %32 to i64* %43 = inttoptr i64 %37 to i64* %44 = trunc i64 %41 to i32 %45 = call i64* @memcpy(i64* %42, i64* %43, i32 %44) %46 = load i64, i64* %13, align 8 %47 = sub i64 %46, %32 %48 = add i64 %41, %32 %49 = inttoptr i64 %48 to i64* %50 = trunc i64 %47 to i32 %51 = call i64* @memcpy(i64* %49, i64* %42, i32 %50) %52 = add i64 %32, %storemerge.reload store i64 %52, i64* %13, align 8 store i64 %32, i64* %10, align 8 store i64* %49, i64** %.pre-phi8.reg2mem store i64 %48, i64* %rdi.2.reg2mem br label LBL_12 LBL_11: %53 = trunc i64 %31 to i32 %rdi.1.reload = load i64*, i64** %rdi.1.reg2mem %54 = inttoptr i64 %32 to i64* %55 = call i64* @memcpy(i64* %54, i64* %rdi.1.reload, i32 %53) store i64* %54, i64** %.pre-phi8.reg2mem store i64 %32, i64* %rdi.2.reg2mem br label LBL_12 LBL_12: %rdi.2.reload = load i64, i64* %rdi.2.reg2mem %.pre-phi8.reload = load i64*, i64** %.pre-phi8.reg2mem call void @free(i64* %.pre-phi8.reload) %sext3 = mul i64 %31, 4294967296 %56 = ashr exact i64 %sext3, 32 %57 = add i64 %32, %56 store i64 %57, i64* %6, align 8 store i64 %32, i64* %arg1, align 8 store i64 %rdi.2.reload, i64* %rdi.3.reg2mem br label LBL_13 LBL_13: %rdi.3.reload = load i64, i64* %rdi.3.reg2mem %58 = load i64, i64* %10, align 8 %59 = sub i64 %58, %rdi.3.reload %60 = icmp ult i64 %59, %arg2 %61 = select i1 %60, i64 %59, i64 %arg2 %62 = add i64 %arg3, %arg2 %63 = sub i64 %62, %61 %64 = sub i64 %58, %61 store i64 %64, i64* %10, align 8 %65 = inttoptr i64 %64 to i64* %66 = inttoptr i64 %63 to i64* %67 = trunc i64 %61 to i32 %68 = call i64* @memcpy(i64* %65, i64* %66, i32 %67) store i64 %arg2, i64* %rax.0.reg2mem br i1 %60, label LBL_14, label LBL_15 LBL_14: %69 = sub i64 %arg2, %59 %70 = load i64, i64* %6, align 8 %71 = sub i64 %70, %69 store i64 %71, i64* %10, align 8 %72 = inttoptr i64 %71 to i64* %73 = inttoptr i64 %arg3 to i64* %74 = trunc i64 %69 to i32 %75 = call i64* @memcpy(i64* %72, i64* %73, i32 %74) %76 = ptrtoint i64* %75 to i64 store i64 %76, 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 %69, { 1, 0 } uselistorder i64 %61, { 2, 1, 0 } uselistorder i64 %59, { 1, 2, 0 } uselistorder i64 %32, { 6, 1, 0, 5, 7, 2, 3, 9, 8, 4 } uselistorder i64 %31, { 0, 2, 1 } uselistorder i64 %23, { 0, 2, 1 } uselistorder i64 %14, { 0, 2, 1 } uselistorder i64 %11, { 0, 2, 1 } uselistorder i64 %4, { 1, 0, 2, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64** %.pre-phi8.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.2.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.3.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 4, 3, 2, 1 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @message, { 1, 0 } uselistorder [28 x i8]* @gv_0, { 1, 0 } uselistorder i64 (i64)* @message_show, { 1, 0 } uselistorder i64 1, { 3, 2, 4, 5, 1, 0, 6 } uselistorder i64 32, { 2, 1, 0 } uselistorder i64 %arg3, { 2, 0, 1 } uselistorder i64 %arg2, { 6, 0, 1, 7, 3, 2, 4, 5, 8 } uselistorder label LBL_15, { 2, 1, 0 } uselistorder label LBL_13, { 1, 0 } }
1
BinRealVul
mrb_class_real_11359
mrb_class_real
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.03.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false store i64 0, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_3 LBL_1: %2 = inttoptr i64 %arg1 to i32* %3 = load i32, i32* %2, align 4 %.off1 = add i32 %3, -1 %switch2 = icmp ult i32 %.off1, 2 store i64 %arg1, i64* %sv_0.03.reg2mem store i64 %arg1, i64* %storemerge.reg2mem br i1 %switch2, label LBL_2, label LBL_3 LBL_2: %sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem %4 = add i64 %sv_0.03.reload, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %.off = add i32 %8, -1 %switch = icmp ult i32 %.off, 2 store i64 %6, i64* %sv_0.03.reg2mem store i64 %6, i64* %storemerge.reg2mem br i1 %switch, label LBL_2, label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 } uselistorder i32 -1, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
test_10968
test
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() %1 = trunc i64 %0 to i32 %2 = call i64 @FUNC() %3 = trunc i64 %2 to i32 %4 = add i32 %3, %1 %5 = call i64 @FUNC() %6 = trunc i64 %5 to i32 %7 = add i32 %4, %6 %8 = call i64 @FUNC() %9 = trunc i64 %8 to i32 %10 = add i32 %7, %9 %11 = call i64 @FUNC() %12 = trunc i64 %11 to i32 %13 = add i32 %10, %12 %14 = call i64 @FUNC() %15 = trunc i64 %14 to i32 %16 = add i32 %13, %15 %17 = call i64 @FUNC() %18 = trunc i64 %17 to i32 %19 = add i32 %16, %18 %20 = call i64 @FUNC() %21 = trunc i64 %20 to i32 %22 = add i32 %19, %21 %23 = call i64 @FUNC() %24 = trunc i64 %23 to i32 %25 = sub i32 0, %24 %26 = icmp ne i32 %22, %25 %. = zext i1 %26 to i64 ret i64 %. }
1
BinRealVul
rfcomm_sock_kill_8240
rfcomm_sock_kill
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 %arg1, i64 1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 store i64 %2, i64* %rax.0.reg2mem br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = add i64 %arg1, 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 store i64 %7, i64* %rax.0.reg2mem br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = trunc i64 %1 to i32 %11 = add i64 %arg1, 4 %12 = call i64 @FUNC(i64 %11) %13 = and i64 %12, 4294967295 %14 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i32 %10, i64 %13) %15 = call i64 @FUNC(i64* nonnull @gv_1, i64 %arg1) %16 = call i64 @FUNC(i64 %arg1, i64 2) %17 = call i64 @FUNC(i64 %arg1) store i64 %17, 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 4294967295, { 1, 0 } uselistorder i64 %arg1, { 1, 2, 3, 4, 0, 5, 6 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
smb2_find_context_vals_6156
smb2_find_context_vals
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 %sv_1.0.reg2mem = alloca i32* %sv_2.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = and i64 %4, 4294967295 %6 = add i64 %5, %2 %7 = inttoptr i64 %6 to i32* %8 = add i64 %2, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = zext i32 %10 to i64 %12 = call i64 @FUNC(i64 %11) %13 = trunc i64 %12 to i32 %14 = trunc i64 %arg3 to i32 store i64 0, i64* %sv_2.0.reg2mem store i32* %7, i32** %sv_1.0.reg2mem store i32 %13, i32* %sv_0.0.reg2mem br label LBL_1 LBL_1: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %15 = icmp ult i32 %sv_0.0.reload, 16 br i1 %15, label LBL_2, label LBL_3 LBL_2: %16 = call i64 @FUNC(i64 4294967274) store i64 %16, i64* %rax.0.reg2mem br label LBL_13 LBL_3: %sv_1.0.reload = load i32*, i32** %sv_1.0.reg2mem %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %17 = and i64 %sv_2.0.reload, 4294967295 %18 = ptrtoint i32* %sv_1.0.reload to i64 %19 = add i64 %17, %18 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 %22) %24 = trunc i64 %23 to i32 %25 = add i64 %19, 4 %26 = inttoptr i64 %25 to i16* %27 = load i16, i16* %26, align 2 %28 = zext i16 %27 to i64 %29 = call i64 @FUNC(i64 %28) %30 = add i64 %19, 6 %31 = inttoptr i64 %30 to i16* %32 = load i16, i16* %31, align 2 %33 = zext i16 %32 to i64 %34 = call i64 @FUNC(i64 %33) %35 = add i64 %19, 8 %36 = inttoptr i64 %35 to i16* %37 = load i16, i16* %36, align 2 %38 = zext i16 %37 to i64 %39 = call i64 @FUNC(i64 %38) %40 = add i64 %19, 12 %41 = inttoptr i64 %40 to i32* %42 = load i32, i32* %41, align 4 %43 = zext i32 %42 to i64 %44 = call i64 @FUNC(i64 %43) %45 = urem i32 %24, 8 %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false %48 = icmp ult i32 %sv_0.0.reload, %24 %or.cond4 = or i1 %48, %47 br i1 %or.cond4, label LBL_9, label LBL_4 LBL_4: %49 = trunc i64 %29 to i32 %50 = trunc i64 %34 to i32 %51 = icmp eq i32 %49, 16 %52 = icmp eq i1 %51, false %53 = icmp ult i32 %50, 4 %or.cond = or i1 %52, %53 br i1 %or.cond, label LBL_9, label LBL_5 LBL_5: %54 = icmp eq i32 %24, 0 %storemerge.in = select i1 %54, i32 %sv_0.0.reload, i32 %24 %55 = add i32 %50, %49 %56 = icmp ult i32 %storemerge.in, %55 br i1 %56, label LBL_9, label LBL_6 LBL_6: %57 = trunc i64 %39 to i32 %58 = urem i32 %57, 8 %59 = icmp eq i32 %58, 0 %60 = icmp eq i1 %59, false br i1 %60, label LBL_9, label LBL_7 LBL_7: %61 = icmp ne i32 %57, 0 %62 = icmp ugt i32 %55, %57 %or.cond5 = icmp eq i1 %61, %62 br i1 %or.cond5, label LBL_9, label LBL_8 LBL_8: %63 = and i64 %39, 4294967295 %64 = and i64 %44, 4294967295 %65 = add nuw nsw i64 %64, %63 %66 = zext i32 %storemerge.in to i64 %67 = icmp ugt i64 %65, %66 br i1 %67, label LBL_9, label LBL_10 LBL_9: %68 = call i64 @FUNC(i64 4294967274) store i64 %68, i64* %rax.0.reg2mem br label LBL_13 LBL_10: %69 = icmp eq i32 %50, %14 %70 = icmp eq i1 %69, false br i1 %70, label LBL_12, label LBL_11 LBL_11: %71 = and i64 %29, 4294967295 %72 = add i64 %71, %19 %73 = inttoptr i64 %72 to i64* %74 = call i32 @memcmp(i64* %73, i64* %arg2, i32 %50) %75 = icmp eq i32 %74, 0 %76 = icmp eq i1 %75, false store i64 %19, i64* %rax.0.reg2mem br i1 %76, label LBL_12, label LBL_13 LBL_12: %77 = sub i32 %sv_0.0.reload, %24 %78 = icmp eq i1 %54, false store i64 %23, i64* %sv_2.0.reg2mem store i32* %20, i32** %sv_1.0.reg2mem store i32 %77, i32* %sv_0.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %78, label LBL_1, label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %57, { 1, 2, 0 } uselistorder i32 %50, { 2, 1, 0, 3 } uselistorder i32 %24, { 2, 3, 4, 1, 0 } uselistorder i32 %sv_0.0.reload, { 2, 1, 3, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 } uselistorder i32** %sv_1.0.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 } uselistorder i32 0, { 0, 1, 2, 4, 3 } uselistorder i64 (i64)* @le16_to_cpu, { 2, 1, 0 } uselistorder i64 (i64)* @ERR_PTR, { 1, 0 } uselistorder i64 (i64)* @le32_to_cpu, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 2, 3, 4, 5, 0, 6 } uselistorder label LBL_9, { 1, 0, 2, 3, 4, 5 } }
0
BinRealVul
handle_sw_breakpoint_1260
handle_sw_breakpoint
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 = add i64 %0, -4 %3 = call i64 @FUNC(i64 %0, i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 4294967294, i64* %storemerge.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: store i64 %2, i64* %arg1, align 8 store i64 1, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
padlock_sha1_final_nano_8930
padlock_sha1_final_nano
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %2 = call i64 @FUNC(i64 %1) %3 = add i64 %2, 24 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = mul i64 %5, 8 %7 = call i64 @FUNC(i64 %6) store i64 %7, i64* %sv_0, align 8 %8 = load i64, i64* %4, align 8 %9 = trunc i64 %8 to i32 %10 = urem i32 %9, 64 %11 = icmp ult i32 %10, 56 %storemerge.in.v = select i1 %11, i32 56, i32 120 %storemerge.in = sub nsw i32 %storemerge.in.v, %10 %12 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @padding_used_in_hashing_algorithms__0x80_0_____0__at_402020, i64 0, i64 0), i32 %storemerge.in) %13 = bitcast i64* %sv_0 to i8* %14 = call i64 @FUNC(i64 %1, i8* nonnull %13, i32 8) %15 = call i64 @FUNC(i64 %2, i64 %0, i64 5) ret i64 0 uselistorder i32 %10, { 1, 0 } uselistorder i64 %1, { 1, 0, 2 } uselistorder i64 (i64, i8*, i32)* @padlock_sha1_update_nano, { 1, 0 } }
0
BinRealVul
ext4_quota_enable_18253
ext4_quota_enable
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = zext i32 %5 to i64 %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i64 %0) %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = add i64 %10, 4 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = zext i32 %13 to i64 %15 = call i64 @FUNC(i64 %14) %16 = call i64 @FUNC(i64 %0, i64 1) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_2, label LBL_1 LBL_1: call void @exit(i32 1) unreachable LBL_2: %sext = mul i64 %arg2, 4294967296 %20 = ptrtoint i64* %sv_0 to i64 %21 = ashr exact i64 %sext, 29 %22 = add nsw i64 %21, -32 %23 = add i64 %22, %20 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %27, label LBL_3, label LBL_6 LBL_3: %28 = call i64 @FUNC(i64 %0, i64 %25) %29 = icmp eq i64 %28, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_5, label LBL_4 LBL_4: %31 = load i64, i64* %24, align 8 %32 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %31) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %33 = trunc i64 %arg4 to i32 %34 = trunc i64 %arg3 to i32 %35 = trunc i64 %arg2 to i32 %36 = call i64 @FUNC(i64 %28, i32 %35, i32 %34, i32 %33) %37 = call i64 @FUNC(i64 %28) %38 = and i64 %36, 4294967295 store i64 %38, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %28, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 } uselistorder i64 (i64)* @EXT4_SB, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_6, { 2, 0, 1 } }
1
BinRealVul
bdrv_named_nodes_list_14703
bdrv_named_nodes_list
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0.01.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge2.reg2mem store i64 0, i64* %sv_0.01.reg2mem br label LBL_1 LBL_1: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %0 = call i64 @FUNC(i64 16) %1 = call i64 @FUNC(i64 %storemerge2.reload) %2 = inttoptr i64 %0 to i64* store i64 %1, i64* %2, align 8 %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* store i64 %sv_0.01.reload, i64* %4, align 8 %5 = add i64 %storemerge2.reload, 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 store i64 %7, i64* %storemerge2.reg2mem store i64 %0, i64* %sv_0.01.reg2mem br i1 %9, label LBL_1, label LBL_2 LBL_2: ret i64 %0 uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
error_propagate_2224
error_propagate
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.1.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i64* %arg1, null %spec.select = select i1 %3, i64 %1, i64 %2 %4 = icmp eq i64 %arg2, 0 store i64 %spec.select, i64* %rax.1.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %arg2) store i64 %5, i64* %rax.1.reg2mem br label LBL_2 LBL_2: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64 %arg2, { 1, 0 } }
0
BinRealVul
helper_addqv_15487
helper_addqv
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = add i64 %arg3, %arg2 %1 = xor i64 %arg2, -9223372036854775808 %2 = xor i64 %1, %arg3 %3 = xor i64 %0, %arg2 %4 = and i64 %3, %2 %5 = icmp sgt i64 %4, -1 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC() %8 = call i64 @FUNC(i64 %6, i64 %7, i64 1, i64 0) br label LBL_2 LBL_2: ret i64 %0 uselistorder i64 %0, { 1, 0 } uselistorder i64 %arg3, { 1, 0 } uselistorder i64 %arg2, { 0, 2, 1 } }
1
BinRealVul
get_ctl_id_hash_12022
get_ctl_id_hash
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %storemerge.in3.reg2mem = alloca i64 %.reg2mem7 = alloca i8 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = mul i64 %0, 31 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = add i64 %4, %1 %6 = mul i64 %5, 31 %7 = add i64 %0, 16 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = add i64 %6, %9 %11 = add i64 %0, 24 %storemerge2 = inttoptr i64 %11 to i8* %12 = load i8, i8* %storemerge2, align 1 %13 = icmp eq i8 %12, 0 %14 = icmp eq i1 %13, false %15 = mul i64 %10, 31 store i64 %15, i64* %.reg2mem store i8 %12, i8* %.reg2mem7 store i64 %11, i64* %storemerge.in3.reg2mem store i64 %15, i64* %.lcssa.reg2mem br i1 %14, label LBL_1, label LBL_2 LBL_1: %storemerge.in3.reload = load i64, i64* %storemerge.in3.reg2mem %.reload8 = load i8, i8* %.reg2mem7 %.reload = load i64, i64* %.reg2mem %16 = zext i8 %.reload8 to i64 %17 = add i64 %.reload, %16 %18 = add i64 %storemerge.in3.reload, 1 %storemerge = inttoptr i64 %18 to i8* %19 = load i8, i8* %storemerge, align 1 %20 = icmp eq i8 %19, 0 %21 = icmp eq i1 %20, false %22 = mul i64 %17, 31 store i64 %22, i64* %.reg2mem store i8 %19, i8* %.reg2mem7 store i64 %18, i64* %storemerge.in3.reg2mem store i64 %22, i64* %.lcssa.reg2mem br i1 %21, label LBL_1, label LBL_2 LBL_2: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %23 = add i64 %0, 56 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = add i64 %25, %.lcssa.reload ret i64 %26 uselistorder i64 %0, { 0, 2, 3, 4, 1 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i8* %.reg2mem7, { 2, 0, 1 } uselistorder i64* %storemerge.in3.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 31, { 1, 0, 2, 3 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
term_down_char_16766
term_down_char
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4 %6 = icmp eq i32 %5, 9 store i64 9, i64* %rax.0.reg2mem br i1 %6, label LBL_6, label LBL_1 LBL_1: %7 = load i32, i32* @gv_0, align 4 %8 = icmp eq i32 %7, -1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %8, label LBL_6, label LBL_2 LBL_2: store i32 ptrtoint (i32* @gv_1 to i32), i32* @gv_0, align 4 %9 = load i64, i64* inttoptr (i64 add (i64 ptrtoint (i64* @gv_2 to i64), i64 mul (i64 sext (i32 ptrtoint (i32* @gv_1 to i32) to i64), i64 8)) to i64*), align 8 %10 = icmp eq i64 %9, 0 br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = load i64, i64* inttoptr (i64 add (i64 shl (i64 sext (i32 ptrtoint (i32* @gv_1 to i32) to i64), i64 3), i64 ptrtoint (i64* @gv_2 to i64)) to i64*), align 8 %12 = inttoptr i64 %11 to i8* %13 = call i8* @strcpy(i8* bitcast (i8** @gv_3 to i8*), i8* %12) store i64 %11, i64* %rsi.0.reg2mem br label LBL_5 LBL_4: store i32 -1, i32* @gv_0, align 4 br label LBL_5 LBL_5: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %14 = call i64 @FUNC(i64* nonnull @gv_4, i64 %rsi.0.reload, i64 %3, i64 %4, i64 %2, i64 %1) %15 = call i64 @FUNC(i64* bitcast (i8** @gv_3 to i64*)) %16 = call i32 @strlen(i8* bitcast (i8** @gv_3 to i8*)) %17 = sext i32 %16 to i64 store i64 %17, i64* @gv_5, align 8 store i64 %17, i64* @gv_6, align 8 store i64 %17, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i32 1, { 4, 3, 2, 5, 1, 0 } uselistorder label LBL_6, { 2, 1, 0 } }
1
BinRealVul
server_client_msg_dispatch_7629
server_client_msg_dispatch
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %r8.2.reg2mem = alloca i64 %rcx.2.reg2mem = alloca i64 %r8.1.reg2mem = alloca i64 %rcx.1.reg2mem = alloca i64 %.reg2mem6 = alloca i32 %rcx.03.reg2mem = alloca i64 %r8.04.reg2mem = alloca i64 %.reg2mem = alloca i64 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %4 = load i32, i32* %1 %5 = load i32, i32* %1 %6 = load i64, i64* %0 %7 = load i64, i64* %0 %sv_2 = alloca i32, align 4 %8 = add i64 %3, 4 %9 = call i64 @FUNC(i64 %8) %10 = icmp ne i64 %9, -1 %11 = icmp eq i64 %9, 0 %12 = icmp eq i1 %11, false %or.cond = icmp eq i1 %10, %12 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_39 LBL_1: %13 = bitcast i32* %sv_2 to i64* %14 = call i64 @FUNC(i64 %8, i64* nonnull %13) %15 = icmp eq i64 %14, -1 %16 = icmp eq i1 %15, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %16, label LBL_2, label LBL_39 LBL_2: %17 = add i64 %6, -8 %18 = bitcast i64* %rdi to i32* %19 = bitcast i64* %arg1 to i32* %20 = icmp eq i32 %5, -1 %21 = inttoptr i64 %8 to i32* %22 = zext i32 %4 to i64 %23 = icmp eq i64 %17, 0 %24 = add i64 %3, 48 %25 = inttoptr i64 %24 to %timeval* %26 = add i64 %3, 40 %27 = inttoptr i64 %26 to i64* %28 = add i64 %3, 8 %29 = icmp eq i64 %17, 264 %30 = inttoptr i64 %7 to i64* %31 = add i64 %3, 16 %32 = inttoptr i64 %31 to i64* %33 = add i64 %3, 32 %34 = inttoptr i64 %33 to i32* %35 = add i64 %3, 64 %36 = inttoptr i64 %35 to i64* store i64 %14, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %37 = icmp eq i64 %.reload, 0 %38 = icmp eq i1 %37, false store i64 0, i64* %rax.0.reg2mem br i1 %38, label LBL_4, label LBL_39 LBL_4: %r8.04.reload = load i64, i64* %r8.04.reg2mem %39 = load i32, i32* %sv_2, align 4 %40 = icmp eq i32 %39, 1 br i1 %40, label LBL_8, label LBL_5 LBL_5: %41 = call i64 @FUNC(i64 %3, i64 1, i64 0, i64 0) %42 = load i32, i32* %18, align 8 %43 = or i32 %42, 1 store i32 %43, i32* %19, align 4 br i1 %20, label LBL_7, label LBL_6 LBL_6: %44 = call i32 @close(i32 %5) br label LBL_7 LBL_7: %45 = call i64 @FUNC(i64* nonnull %13) store i64 0, i64* %rcx.2.reg2mem store i64 %r8.04.reload, i64* %r8.2.reg2mem br label LBL_38 LBL_8: %rcx.03.reload = load i64, i64* %rcx.03.reg2mem %46 = load i32, i32* %21, align 4 %47 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %22, i32 %46, i64 %rcx.03.reload, i64 %r8.04.reload, i64 %2) store i64 %22, i64* @0, align 8 store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem switch i32 %4, label LBL_37 [ i32 2, label LBL_9 i32 3, label LBL_9 i32 4, label LBL_9 i32 5, label LBL_9 i32 6, label LBL_9 i32 7, label LBL_9 i32 8, label LBL_9 i32 9, label LBL_10 i32 10, label LBL_11 i32 11, label LBL_18 i32 12, label LBL_23 i32 13, label LBL_26 i32 14, label LBL_26 i32 15, label LBL_34 ] LBL_9: %48 = call i64 @FUNC(i64 %3, i64* nonnull %13) store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_10: %49 = call i64 @FUNC(i64 %3, i64* nonnull %13) store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_11: br i1 %29, label LBL_13, label LBL_12 LBL_12: %50 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0)) unreachable LBL_13: %51 = call i64* @memcpy(i64* nonnull %sv_1, i64* %30, i32 264) %52 = load i64, i64* %32, align 8 %53 = icmp eq i64 %52, 0 store i64 %r8.04.reload, i64* %r8.1.reg2mem br i1 %53, label LBL_37, label LBL_14 LBL_14: %54 = load i64, i64* %sv_1, align 8 %55 = icmp eq i64 %54, 0 %56 = icmp eq i1 %55, false br i1 %56, label LBL_16, label LBL_15 LBL_15: store i32 1, i32* %34, align 4 store i32 1, i32* %.reg2mem6 br label LBL_17 LBL_16: %57 = load i64, i64* %36, align 8 %58 = call i64 @FUNC(i64 %57, i64* nonnull %sv_0, i64 %54) %.pre = load i32, i32* %34, align 4 store i32 %.pre, i32* %.reg2mem6 br label LBL_17 LBL_17: %.reload7 = load i32, i32* %.reg2mem6 %59 = load i64, i64* %32, align 8 %60 = zext i32 %.reload7 to i64 store i64 %60, i64* %rcx.1.reg2mem store i64 %59, i64* %r8.1.reg2mem br label LBL_37 LBL_18: br i1 %23, label LBL_20, label LBL_19 LBL_19: %61 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) unreachable LBL_20: %62 = load i32, i32* %18, align 8 %63 = and i32 %62, 2 %64 = icmp eq i32 %63, 0 %65 = icmp eq i1 %64, false store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br i1 %65, label LBL_37, label LBL_21 LBL_21: %66 = call i64 @FUNC(i64 %28) %67 = trunc i64 %66 to i32 %68 = icmp eq i32 %67, 0 store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br i1 %68, label LBL_37, label LBL_22 LBL_22: %69 = call i64 @FUNC() %70 = call i64 @FUNC(i64 %3) store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_23: br i1 %23, label LBL_25, label LBL_24 LBL_24: %71 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_25: store i64 0, i64* %27, align 8 %72 = call i64 @FUNC(i64 %28) %73 = call i64 @FUNC(i64 %3, i64 16, i64 0, i64 0) store i64 0, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_26: br i1 %23, label LBL_28, label LBL_27 LBL_27: %74 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0)) unreachable LBL_28: %75 = load i32, i32* %18, align 8 %76 = and i32 %75, 4 %77 = icmp eq i32 %76, 0 store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br i1 %77, label LBL_37, label LBL_29 LBL_29: %78 = and i32 %75, -5 store i32 %78, i32* %19, align 4 %79 = call i32 @gettimeofday(%timeval* %25, %timezone* null) %80 = icmp eq i32 %79, 0 br i1 %80, label LBL_31, label LBL_30 LBL_30: %81 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0)) unreachable LBL_31: %82 = load i64, i64* %27, align 8 %83 = icmp eq i64 %82, 0 br i1 %83, label LBL_33, label LBL_32 LBL_32: %84 = call i64 @FUNC(i64 %82) br label LBL_33 LBL_33: %85 = call i64 @FUNC(i64 %28) %86 = call i64 @FUNC(i64 %3) %87 = call i64 @FUNC() store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_34: br i1 %23, label LBL_36, label LBL_35 LBL_35: %88 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_6, i64 0, i64 0)) unreachable LBL_36: %89 = call i64 @FUNC(i64 %3) store i64 %rcx.03.reload, i64* %rcx.1.reg2mem store i64 %r8.04.reload, i64* %r8.1.reg2mem br label LBL_37 LBL_37: %r8.1.reload = load i64, i64* %r8.1.reg2mem %rcx.1.reload = load i64, i64* %rcx.1.reg2mem %90 = call i64 @FUNC(i64* nonnull %13) store i64 %rcx.1.reload, i64* %rcx.2.reg2mem store i64 %r8.1.reload, i64* %r8.2.reg2mem br label LBL_38 LBL_38: %r8.2.reload = load i64, i64* %r8.2.reg2mem %rcx.2.reload = load i64, i64* %rcx.2.reg2mem %91 = call i64 @FUNC(i64 %8, i64* nonnull %13) %92 = icmp eq i64 %91, -1 %93 = icmp eq i1 %92, false store i64 %91, i64* %.reg2mem store i64 %r8.2.reload, i64* %r8.04.reg2mem store i64 %rcx.2.reload, i64* %rcx.03.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %93, label LBL_3, label LBL_39 LBL_39: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rcx.03.reload, { 7, 5, 6, 2, 3, 4, 1, 0, 8, 9 } uselistorder i64 %r8.04.reload, { 10, 8, 9, 7, 4, 5, 6, 3, 2, 1, 11, 12, 0 } uselistorder i64 %28, { 2, 1, 0 } uselistorder i64* %27, { 1, 0 } uselistorder i1 %23, { 3, 2, 1, 0 } uselistorder i32* %18, { 1, 0, 2 } uselistorder i64* %13, { 5, 4, 2, 3, 1, 0 } uselistorder i64 %8, { 2, 1, 0, 3 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i64 %3, { 11, 7, 6, 5, 1, 0, 12, 3, 4, 2, 8, 9, 10, 13 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %r8.04.reg2mem, { 1, 0 } uselistorder i64* %rcx.03.reg2mem, { 1, 0 } uselistorder i32* %.reg2mem6, { 0, 2, 1 } uselistorder i64* %rcx.1.reg2mem, { 0, 10, 8, 9, 7, 4, 5, 6, 3, 2, 1, 11 } uselistorder i64* %r8.1.reg2mem, { 0, 11, 9, 10, 8, 5, 6, 7, 3, 4, 2, 1, 12 } uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 } uselistorder i64* %r8.2.reg2mem, { 0, 2, 1 } uselistorder i32* %1, { 1, 0 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @server_redraw_client, { 1, 0 } uselistorder i64 ()* @recalculate_sizes, { 1, 0 } uselistorder i64 (i8*)* @fatalx, { 4, 3, 2, 1, 0 } uselistorder i32 4, { 1, 0 } uselistorder i32 2, { 1, 0 } uselistorder i64 (i64*)* @imsg_free, { 1, 0 } uselistorder i64 (i64, i64, i64, i64)* @server_write_client, { 1, 0 } uselistorder i64 (i64, i64*)* @imsg_get, { 1, 0 } uselistorder i64 -1, { 1, 0, 2 } uselistorder label LBL_37, { 5, 6, 0, 7, 2, 1, 3, 8, 4, 9, 10, 11 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
decode0_17011
decode0
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = trunc i64 %arg5 to i32 %1 = icmp eq i32 %0, 0 %2 = icmp eq i1 %1, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %sext = mul i64 %arg3, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = and i64 %arg5, 4294967295 %6 = add i64 %3, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = and i64 %4, 4294967295 %10 = mul i64 %8, %9 %11 = udiv i64 %10, %5 %12 = add i64 %3, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = mul i64 %11, 4294967296 %sext6 = add i64 %15, 4294967296 %16 = ashr exact i64 %sext6, 32 %17 = add i64 %16, %14 store i64 %17, i64* %13, align 8 %18 = load i64, i64* %7, align 8 %19 = add i64 %4, %arg4 %20 = and i64 %19, 4294967295 %21 = mul i64 %18, %20 %22 = udiv i64 %21, %5 %23 = sub i64 %22, %16 store i64 %23, i64* %7, align 8 %24 = icmp ult i64 %23, 4294967295 store i64 0, i64* %storemerge.reg2mem br i1 %24, label LBL_2, label LBL_5 LBL_2: %25 = ptrtoint i64* %arg1 to i64 %26 = mul i64 %5, 256 br label LBL_4 LBL_3: %27 = call i64 @FUNC(i64 %25) %28 = and i64 %27, 4294967295 %29 = or i64 %28, %26 store i64 %29, i64* %arg2, align 8 %30 = load i64, i64* %13, align 8 %31 = mul i64 %30, 256 store i64 %31, i64* %13, align 8 %32 = load i64, i64* %7, align 8 %33 = mul i64 %32, 256 store i64 %33, i64* %7, align 8 %34 = icmp ult i64 %33, 4294967295 store i64 0, i64* %storemerge.reg2mem br i1 %34, label LBL_4, label LBL_5 LBL_4: %35 = call i64 @FUNC(i64 %25) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 0 %38 = icmp eq i1 %37, false store i64 0, i64* %storemerge.reg2mem br i1 %38, label LBL_3, label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %25, { 1, 0 } uselistorder i64 %16, { 1, 0 } uselistorder i64* %13, { 1, 0, 2, 3 } uselistorder i64* %7, { 1, 2, 0, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64 4294967296, { 2, 0, 1 } uselistorder label LBL_5, { 1, 0, 2, 3 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
btrfs_wait_for_commit_17681
btrfs_wait_for_commit
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.2.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_1.2.reg2mem = alloca i64 %storemerge1.in921.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i32 %storemerge1.in9.lcssa.reg2mem = alloca i64 %storemerge110.lcssa.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %storemerge.in.in.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64 %arg2, 0 br i1 %1, label LBL_8, label LBL_1 LBL_1: %2 = icmp ult i64 %0, %arg2 store i32 0, i32* %sv_0.2.reg2mem br i1 %2, label LBL_2, label LBL_16 LBL_2: %3 = add i64 %0, 8 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %0, 24 store i64 %5, i64* %storemerge.in.in.in.reg2mem br label LBL_6 LBL_3: %6 = inttoptr i64 %storemerge to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, %arg2 %9 = icmp eq i1 %8, false br i1 %9, label LBL_5, label LBL_4 LBL_4: %10 = add i64 %storemerge.in, -4 %11 = call i64 @FUNC(i64 %10) store i64 %storemerge, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem store i64 %10, i64* %rdi.0.reg2mem br label LBL_7 LBL_5: %12 = icmp ugt i64 %7, %arg2 %13 = icmp eq i1 %12, false store i64 %storemerge.in, i64* %storemerge.in.in.in.reg2mem store i64 0, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem store i64 %3, i64* %rdi.0.reg2mem br i1 %13, label LBL_6, label LBL_7 LBL_6: %storemerge.in.in.in.reload = load i64, i64* %storemerge.in.in.in.reg2mem %storemerge.in.in = inttoptr i64 %storemerge.in.in.in.reload to i64* %storemerge.in = load i64, i64* %storemerge.in.in, align 8 %storemerge = add i64 %storemerge.in, -16 %14 = icmp eq i64 %storemerge, %3 %15 = icmp eq i1 %14, false store i64 0, i64* %sv_1.0.reg2mem store i32 -22, i32* %sv_0.0.reg2mem store i64 %3, i64* %rdi.0.reg2mem br i1 %15, label LBL_3, label LBL_7 LBL_7: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %16 = add i64 %rdi.0.reload, 8 %17 = call i64 @FUNC(i64 %16) %18 = icmp eq i64 %sv_1.0.reload, 0 %19 = icmp eq i1 %18, false store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem br i1 %19, label LBL_15, label LBL_16 LBL_8: %20 = add i64 %0, 8 %21 = call i64 @FUNC(i64 %20) %22 = add i64 %0, 32 %storemerge1.in.in6 = inttoptr i64 %22 to i64* %storemerge1.in7 = load i64, i64* %storemerge1.in.in6, align 8 %storemerge18 = add i64 %storemerge1.in7, -16 %23 = icmp eq i64 %storemerge18, %20 %24 = icmp eq i1 %23, false br i1 %24, label LBL_9, label LBL_13 LBL_9: %25 = add i64 %storemerge1.in7, -8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp slt i32 %27, 1 store i64 %storemerge18, i64* %storemerge110.lcssa.reg2mem store i64 %storemerge1.in7, i64* %storemerge1.in9.lcssa.reg2mem store i32 %27, i32* %.lcssa.reg2mem store i64 %storemerge1.in7, i64* %storemerge1.in921.reg2mem br i1 %28, label LBL_12, label LBL_11 LBL_10: %29 = add i64 %storemerge1.in, -8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp slt i32 %31, 1 store i64 %storemerge1, i64* %storemerge110.lcssa.reg2mem store i64 %storemerge1.in, i64* %storemerge1.in9.lcssa.reg2mem store i32 %31, i32* %.lcssa.reg2mem store i64 %storemerge1.in, i64* %storemerge1.in921.reg2mem br i1 %32, label LBL_12, label LBL_11 LBL_11: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %33 = icmp eq i32 %.lcssa.reload, 2 br i1 %33, label LBL_13, label LBL_14 LBL_12: %storemerge1.in921.reload = load i64, i64* %storemerge1.in921.reg2mem %34 = add i64 %storemerge1.in921.reload, 8 %storemerge1.in.in = inttoptr i64 %34 to i64* %storemerge1.in = load i64, i64* %storemerge1.in.in, align 8 %storemerge1 = add i64 %storemerge1.in, -16 %35 = icmp eq i64 %storemerge1, %20 %36 = icmp eq i1 %35, false br i1 %36, label LBL_10, label LBL_13 LBL_13: %37 = add i64 %0, 16 %38 = call i64 @FUNC(i64 %37) store i32 0, i32* %sv_0.2.reg2mem br label LBL_16 LBL_14: %storemerge1.in9.lcssa.reload = load i64, i64* %storemerge1.in9.lcssa.reg2mem %storemerge110.lcssa.reload = load i64, i64* %storemerge110.lcssa.reg2mem %39 = add i64 %storemerge1.in9.lcssa.reload, -4 %40 = call i64 @FUNC(i64 %39) %41 = add i64 %storemerge1.in9.lcssa.reload, 4 %42 = call i64 @FUNC(i64 %41) %43 = icmp eq i64 %storemerge110.lcssa.reload, 0 store i64 %storemerge110.lcssa.reload, i64* %sv_1.2.reg2mem store i32 0, i32* %sv_0.1.reg2mem store i32 0, i32* %sv_0.2.reg2mem br i1 %43, label LBL_16, label LBL_15 LBL_15: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem %44 = call i64 @FUNC(i64 %0, i64 %sv_1.2.reload) %45 = call i64 @FUNC(i64 %sv_1.2.reload) store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem br label LBL_16 LBL_16: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %46 = zext i32 %sv_0.2.reload to i64 ret i64 %46 uselistorder i64 %storemerge1, { 1, 0 } uselistorder i64 %storemerge1.in, { 3, 2, 1, 0 } uselistorder i64 %20, { 1, 0, 2 } uselistorder i64 %storemerge, { 2, 1, 0 } uselistorder i64 %storemerge.in, { 2, 1, 0 } uselistorder i64 %3, { 1, 2, 0, 3 } uselistorder i64 %0, { 4, 0, 6, 5, 3, 2, 1 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %storemerge1.in921.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.2.reg2mem, { 0, 4, 5, 1, 3, 2 } uselistorder i64 -8, { 1, 0 } uselistorder i64 (i64)* @spin_unlock, { 2, 0, 1 } uselistorder i64 -16, { 1, 0, 2 } uselistorder i64 (i64)* @atomic_inc, { 1, 0 } uselistorder i1 false, { 1, 0, 4, 5, 2, 3 } uselistorder i64 (i64)* @spin_lock, { 1, 0 } uselistorder i32 0, { 2, 3, 0, 4, 5, 1 } uselistorder label LBL_16, { 4, 1, 0, 3, 2 } uselistorder label LBL_13, { 0, 2, 1 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_7, { 1, 0, 2 } }
1
BinRealVul
nntp_hcache_namer_6710
nntp_hcache_namer
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %0 = bitcast i64* %arg2 to i8* %1 = trunc i64 %arg3 to i32 %2 = inttoptr i64 %arg1 to i8* %3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* %2) %4 = call i8* @strchr(i8* %0, i32 47) %5 = call i8* @strrchr(i8* %0, i32 47) %6 = icmp ne i8* %4, null %7 = icmp ult i8* %4, %5 %or.cond3 = icmp eq i1 %6, %7 store i32 %3, i32* %sv_0.0.reg2mem br i1 %or.cond3, label LBL_1, label LBL_2 LBL_1: %8 = ptrtoint i8* %4 to i64 %9 = call i32 @strlen(i8* %5) %10 = add i32 %9, 1 %11 = bitcast i8* %4 to i64* %12 = bitcast i8* %5 to i64* %13 = call i64* @memmove(i64* %11, i64* %12, i32 %10) %14 = ptrtoint i8* %5 to i64 %15 = sub i64 %14, %8 %16 = trunc i64 %15 to i32 %17 = sub i32 %3, %16 store i32 %17, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %18 = zext i32 %sv_0.0.reload to i64 ret i64 %18 uselistorder i8* %5, { 1, 3, 2, 0 } uselistorder i8* %4, { 1, 3, 0, 2 } uselistorder i32 %3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
sdsMakeRoomFor_13272
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_7 LBL_1: %5 = urem i8 %3, 16 %6 = call i64 @FUNC(i64 %arg1) %7 = icmp eq i8 %5, 0 %8 = icmp eq i1 %7, false %. = select i1 %8, i64 -2, i64 -1 %9 = add i64 %., %arg1 %10 = add i64 %6, %arg2 %11 = icmp ult i64 %10, 1048576 %12 = add i64 %10, 1048576 %13 = mul i64 %10, 2 %storemerge2 = select i1 %11, i64 %13, i64 %12 %14 = call i64 @FUNC(i64 %storemerge2) %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 %20 = icmp eq i8 %5, %spec.select %21 = icmp eq i1 %20, false %22 = select i1 %19, i64 2, i64 1 %23 = add i64 %storemerge2, 1 %24 = add i64 %23, %22 br i1 %21, label LBL_4, label LBL_2 LBL_2: %25 = call i64 @FUNC(i64 %9, i64 %24) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_3, label LBL_7 LBL_3: %28 = add i64 %25, %22 store i64 %28, i64* %sv_0.0.reg2mem br label LBL_6 LBL_4: %29 = call i64 @FUNC(i64 %24) %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_5, label LBL_7 LBL_5: %32 = add i64 %29, %22 %33 = inttoptr i64 %32 to i64* %34 = inttoptr i64 %arg1 to i64* %35 = trunc i64 %6 to i32 %36 = add i32 %35, 1 %37 = call i64* @memcpy(i64* %33, i64* %34, i32 %36) %38 = call i64 @FUNC(i64 %9) %39 = add i64 %32, -1 %40 = inttoptr i64 %39 to i8* store i8 %spec.select, i8* %40, align 1 %41 = call i64 @FUNC(i64 %32, i64 %6) store i64 %32, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %42 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %storemerge2) store i64 %sv_0.0.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 %32, { 0, 2, 1, 3 } uselistorder i64 %24, { 1, 0 } uselistorder i64 %9, { 1, 0 } uselistorder i64 %6, { 1, 2, 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 2, { 1, 0 } uselistorder i64 1048576, { 1, 0 } uselistorder i32 1, { 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 3, 0, 4, 5 } uselistorder label LBL_7, { 3, 0, 1, 2 } }
1
BinRealVul
av_open_input_stream_17377
av_open_input_stream
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %2 = icmp eq i64 %arg5, 0 %3 = icmp eq i1 %2, false store i64 %arg5, i64* %sv_1.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = ptrtoint i64* %sv_4 to i64 %5 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 4) store i64 %4, i64* %sv_1.0.reg2mem br label LBL_2 LBL_2: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %6 = call i64 @FUNC(i64 %sv_1.0.reload) store i64 %6, i64* %sv_3, align 8 %7 = inttoptr i64 %sv_1.0.reload to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 %sv_1.0.reload, i64* %.reg2mem br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i64 @FUNC() store i64 %11, i64* %.reg2mem br label LBL_4 LBL_4: %.reload = load i64, i64* %.reg2mem store i64 %.reload, i64* %sv_2, align 8 %12 = icmp eq i64 %.reload, 0 %13 = icmp eq i1 %12, false store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %13, label LBL_5, label LBL_9 LBL_5: %14 = icmp eq i64 %arg2, 0 %15 = urem i64 %arg4, 2 %16 = icmp eq i64 %15, 0 %or.cond4 = or i1 %14, %16 br i1 %or.cond4, label LBL_7, label LBL_6 LBL_6: %17 = call i64 @FUNC(i64 %.reload, i64 1, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %arg5, i64 %1) br label LBL_8 LBL_7: %18 = inttoptr i64 %.reload to i64* store i64 %arg2, i64* %18, align 8 br label LBL_8 LBL_8: %19 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg3, i64 %arg4, i64* nonnull %sv_3) %20 = load i64, i64* %sv_2, align 8 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = icmp eq i64 %22, 0 %arg2. = select i1 %23, i64 %arg2, i64 %22 store i64 %arg2., i64* %21, align 8 %24 = load i64, i64* %sv_2, align 8 store i64 %24, i64* %arg1, align 8 %phitmp = and i64 %19, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = call i64 @FUNC(i64* nonnull %sv_3) ret i64 %sv_0.0.reload uselistorder i64 %.reload, { 3, 2, 1, 0 } uselistorder i64* %sv_2, { 2, 3, 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 1, 0 } uselistorder i64 %arg5, { 1, 0, 2 } uselistorder i64 %arg4, { 2, 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
nsim_bpf_map_alloc_5587
nsim_bpf_map_alloc
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %rdi.1.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %.off = add i32 %2, -1 %switch = icmp ugt i32 %.off, 1 %spec.select = zext i1 %switch to i64 %3 = call i64 @FUNC(i64 %spec.select) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 4294967274, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_12 LBL_1: %6 = ptrtoint i64* %arg2 to i64 %7 = add i64 %6, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp slt i32 %9, 1025 store i64 4294967284, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_12 LBL_2: %11 = add i64 %6, 8 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = icmp eq i32 %13, 0 store i64 4294967274, i64* %rax.0.reg2mem br i1 %14, label LBL_3, label LBL_12 LBL_3: %15 = call i64 @FUNC(i64 16416, i64 0) %16 = icmp eq i64 %15, 0 %17 = icmp eq i1 %16, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %17, label LBL_4, label LBL_12 LBL_4: %18 = ptrtoint i64* %arg1 to i64 %19 = bitcast i64* %rsi to i32* %20 = add i64 %6, 24 %21 = inttoptr i64 %20 to i64* store i64 %15, i64* %21, align 8 %22 = inttoptr i64 %15 to i64* store i64 %18, i64* %22, align 8 %23 = add i64 %15, 8 %24 = inttoptr i64 %23 to i64* store i64 %6, i64* %24, align 8 %25 = add i64 %15, 16 %26 = call i64 @FUNC(i64 %25) %27 = load i32, i32* %19, align 8 %28 = icmp eq i32 %27, 1 %29 = icmp eq i1 %28, false store i64 %25, i64* %rdi.1.reg2mem br i1 %29, label LBL_9, label LBL_5 LBL_5: %30 = add i64 %6, 16 %31 = inttoptr i64 %30 to i64* store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %32 = call i64 @FUNC(i64 %6, i64 %indvars.iv.reload) %33 = trunc i64 %32 to i32 %34 = icmp eq i32 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_7, label LBL_8 LBL_7: %36 = trunc i64 %indvars.iv.reload to i32 %37 = add i32 %36, -1 %38 = icmp slt i32 %37, 0 %39 = icmp eq i1 %38, false store i32 %37, i32* %.reg2mem br i1 %39, label LBL_10, label LBL_11 LBL_8: %40 = mul i64 %indvars.iv.reload, 16 %41 = add i64 %40, %25 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = inttoptr i64 %43 to i32* %45 = trunc i64 %indvars.iv.reload to i32 store i32 %45, i32* %44, align 4 %46 = load i64, i64* %31, align 8 %47 = add i64 %41, 8 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = inttoptr i64 %49 to i64* %51 = trunc i64 %46 to i32 %52 = call i64* @memset(i64* %50, i32 0, i32 %51) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %53 = icmp ult i64 %indvars.iv.next, 1024 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %49, i64* %rdi.1.reg2mem br i1 %53, label LBL_6, label LBL_9 LBL_9: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %54 = add i64 %6, 32 %55 = inttoptr i64 %54 to i64* store i64 4210749, i64* %55, align 8 %56 = add i64 %15, 16400 %57 = call i64 @FUNC(i64 %56, i64 %rdi.1.reload) store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_10: %.reload = load i32, i32* %.reg2mem %58 = sext i32 %.reload to i64 %59 = mul i64 %58, 16 %60 = add i64 %59, %25 %61 = inttoptr i64 %60 to i64* %62 = load i64, i64* %61, align 8 %63 = call i64 @FUNC(i64 %62) %64 = add i64 %60, 8 %65 = inttoptr i64 %64 to i64* %66 = load i64, i64* %65, align 8 %67 = call i64 @FUNC(i64 %66) %68 = add i32 %.reload, -1 %69 = icmp slt i32 %68, 0 %70 = icmp eq i1 %69, false store i32 %68, i32* %.reg2mem br i1 %70, label LBL_10, label LBL_11 LBL_11: %71 = call i64 @FUNC(i64 %15) %72 = and i64 %32, 4294967295 store i64 %72, 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 i32 %.reload, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 1, 4, 3, 2 } uselistorder i64 %25, { 1, 2, 0, 3 } uselistorder i64 %6, { 2, 1, 0, 3, 4, 6, 5 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 1, 2, 3, 4 } uselistorder i64 (i64)* @kfree, { 0, 2, 1 } uselistorder i1 false, { 1, 0, 2, 3, 4 } uselistorder i32 0, { 2, 1, 0, 3, 4, 5 } uselistorder i32 -1, { 2, 0, 1 } uselistorder label LBL_12, { 4, 5, 0, 1, 2, 3 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
key_notify_sa_flush_11306
key_notify_sa_flush
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 32, i64 0) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967191, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_2 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i64 %2, i64 16) %7 = and i64 %1, 4294967295 %8 = call i64 @FUNC(i64 %7) %9 = trunc i64 %8 to i8 %10 = add i64 %6, 3 %11 = inttoptr i64 %10 to i8* store i8 %9, i8* %11, align 1 %12 = add i64 %6, 1 %13 = inttoptr i64 %12 to i8* store i8 0, i8* %13, align 1 %14 = add i64 %5, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i64 %6, 8 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = add i64 %5, 8 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = add i64 %6, 12 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = inttoptr i64 %6 to i8* store i8 2, i8* %24, align 1 %25 = add i64 %6, 2 %26 = inttoptr i64 %25 to i8* store i8 0, i8* %26, align 1 %27 = add i64 %6, 4 %28 = inttoptr i64 %27 to i32* store i32 2, i32* %28, align 4 %29 = add i64 %5, 16 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64 0, i64 %31) store i64 0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
cp15_tls_load_store_2351
cp15_tls_load_store
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 1) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false %5 = and i32 %arg3, 983055 %6 = icmp eq i32 %5, 851968 %or.cond = icmp eq i1 %6, %4 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_16 LBL_1: %7 = ptrtoint i64* %arg2 to i64 %8 = udiv i32 %arg3, 32 %9 = urem i32 %8, 8 %10 = udiv i32 %arg3, 262144 %11 = and i32 %10, 56 %12 = or i32 %11, %9 %13 = trunc i32 %arg3 to i8 %14 = icmp sgt i8 %13, -1 br i1 %14, label LBL_9, label LBL_2 LBL_2: %15 = icmp eq i32 %12, 4 br i1 %15, label LBL_7, label LBL_3 LBL_3: %16 = icmp ugt i32 %12, 4 store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_16, label LBL_4 LBL_4: store i64 0, i64* %rax.0.reg2mem switch i32 %12, label LBL_16 [ i32 2, label LBL_5 i32 3, label LBL_6 ] LBL_5: %17 = load i32, i32* @gv_0, align 4 %18 = zext i32 %17 to i64 %19 = call i64 @FUNC(i64 %18) store i64 %19, i64* %sv_0.0.in.reg2mem br label LBL_8 LBL_6: %20 = load i32, i32* @gv_1, align 4 %21 = zext i32 %20 to i64 %22 = call i64 @FUNC(i64 %21) store i64 %22, i64* %sv_0.0.in.reg2mem br label LBL_8 LBL_7: %23 = load i32, i32* @gv_2, align 4 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64 %24) store i64 %25, 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 %26 = zext i32 %arg4 to i64 %27 = call i64 @FUNC(i64 %7, i64 %26, i32 %sv_0.0) store i64 1, i64* %rax.0.reg2mem br label LBL_16 LBL_9: %28 = zext i32 %arg4 to i64 %29 = call i64 @FUNC(i64 %7, i64 %28) %30 = icmp eq i32 %12, 4 br i1 %30, label LBL_14, label LBL_10 LBL_10: %31 = icmp ugt i32 %12, 4 br i1 %31, label LBL_15, label LBL_11 LBL_11: switch i32 %12, label LBL_15 [ i32 2, label LBL_12 i32 3, label LBL_13 ] LBL_12: %32 = load i32, i32* @gv_0, align 4 %33 = zext i32 %32 to i64 %34 = and i64 %29, 4294967295 %35 = call i64 @FUNC(i64 %34, i64 %33) store i64 1, i64* %rax.0.reg2mem br label LBL_16 LBL_13: %36 = load i32, i32* @gv_1, align 4 %37 = zext i32 %36 to i64 %38 = and i64 %29, 4294967295 %39 = call i64 @FUNC(i64 %38, i64 %37) store i64 1, i64* %rax.0.reg2mem br label LBL_16 LBL_14: %40 = load i32, i32* @gv_2, align 4 %41 = zext i32 %40 to i64 %42 = and i64 %29, 4294967295 %43 = call i64 @FUNC(i64 %42, i64 %41) store i64 1, i64* %rax.0.reg2mem br label LBL_16 LBL_15: %44 = and i64 %29, 4294967295 %45 = call i64 @FUNC(i64 %44) store i64 0, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %29, { 3, 0, 2, 1 } uselistorder i32 %12, { 0, 2, 5, 1, 3, 4 } uselistorder i64 %7, { 1, 0 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 8, 4, 3, 2, 1, 6, 5, 7 } uselistorder i64 (i64, i64)* @store_cpu_field, { 2, 1, 0 } uselistorder i32* @gv_2, { 1, 0 } uselistorder i32* @gv_1, { 1, 0 } uselistorder i64 (i64)* @load_cpu_field, { 2, 1, 0 } uselistorder i32* @gv_0, { 1, 0 } uselistorder i32 4, { 0, 2, 1, 3 } uselistorder i64 1, { 3, 2, 1, 0, 5, 4 } uselistorder i32 %arg4, { 1, 0 } uselistorder i32 %arg3, { 3, 0, 1, 2 } uselistorder label LBL_16, { 7, 3, 2, 1, 0, 5, 4, 6 } }
0
BinRealVul
dma_rx_5475
dma_rx
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_3.0.in.reg2mem = alloca i16 %.lcssa10.reg2mem = alloca i64 %sv_4.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = load i64, i64* %0 %5 = add i64 %3, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = add i64 %4, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %3, i64 %10, i32 %7) %12 = inttoptr i64 %4 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = inttoptr i64 %15 to i16* %17 = load i16, i16* %16, align 2 %18 = zext i16 %17 to i64 %19 = call i64 @FUNC(i64 %18) %20 = trunc i64 %19 to i16 %21 = icmp eq i16 %20, 0 %22 = icmp eq i1 %21, false store i32 0, i32* %sv_4.0.reg2mem store i16 %20, i16* %sv_3.0.in.reg2mem br i1 %22, label LBL_5, label LBL_1 LBL_1: %23 = call i64 @FUNC(i64 2) %24 = call i64 @FUNC() %25 = load i16, i16* %16, align 2 %26 = zext i16 %25 to i64 %27 = call i64 @FUNC(i64 %26) %28 = trunc i64 %27 to i16 %29 = icmp eq i16 %28, 0 %30 = icmp eq i1 %29, false store i64 0, i64* %.lcssa10.reg2mem br i1 %30, label LBL_3, label LBL_2 LBL_2: %sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem %31 = add nuw nsw i32 %sv_4.0.reload, 1 %32 = icmp ult i32 %sv_4.0.reload, 5 store i32 %31, i32* %sv_4.0.reg2mem store i64 1, i64* %.lcssa10.reg2mem br i1 %32, label LBL_1, label LBL_3 LBL_3: %.lcssa10.reload = load i64, i64* %.lcssa10.reg2mem %33 = call i64 @FUNC(i64 %.lcssa10.reload) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 store i16 %28, i16* %sv_3.0.in.reg2mem br i1 %35, label LBL_5, label LBL_4 LBL_4: %36 = load i64, i64* %9, align 8 store i64 %36, i64* %sv_0.0.reg2mem br label LBL_14 LBL_5: %37 = call i64 @FUNC(i64 %3, i64 %13) %38 = and i64 %37, 4294967295 %39 = call i64 @FUNC(i64 %38) %40 = trunc i64 %39 to i32 %41 = icmp eq i32 %40, 0 br i1 %41, label LBL_7, label LBL_6 LBL_6: %42 = add i64 %3, 16 %43 = inttoptr i64 %42 to i64* %44 = load i64, i64* %43, align 8 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = call i64 @FUNC(i64 %46, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %10, i64 %3, i64 %1) %48 = load i64, i64* %9, align 8 store i64 %48, i64* %sv_0.0.reg2mem br label LBL_14 LBL_7: %sv_3.0.in.reload = load i16, i16* %sv_3.0.in.reg2mem %sv_3.04 = zext i16 %sv_3.0.in.reload to i32 %49 = add i64 %3, 12 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = add i32 %51, %sv_3.04 %53 = load i32, i32* %6, align 4 %54 = sub i32 %52, %53 %55 = xor i32 %52, %53 %56 = xor i32 %54, %52 %57 = and i32 %56, %55 %58 = icmp slt i32 %57, 0 %59 = icmp eq i32 %54, 0 %60 = icmp slt i32 %54, 0 %61 = icmp eq i1 %60, %58 %62 = icmp eq i1 %59, false %63 = icmp eq i1 %61, %62 %64 = zext i1 %63 to i64 %65 = call i64 @FUNC(i64 %64) %66 = trunc i64 %65 to i32 %67 = icmp eq i32 %66, 0 br i1 %67, label LBL_11, label LBL_8 LBL_8: %68 = and i64 %2, 4294967295 store i32 0, i32* %sv_2.0.reg2mem store i32 %sv_3.04, i32* %sv_1.0.reg2mem br label LBL_9 LBL_9: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %69 = load i64, i64* %12, align 8 %70 = call i64 @FUNC(i64 %3, i64 %69) %71 = load i32, i32* %6, align 4 %72 = load i64, i64* %9, align 8 %73 = call i64 @FUNC(i64 %3, i64 %72, i32 %71) %74 = call i64 @FUNC(i64 %3, i64 %68) %75 = trunc i64 %74 to i32 store i32 %75, i32* %arg2, align 4 %76 = add i32 %sv_2.0.reload, 1 %77 = load i32, i32* %6, align 4 %78 = sub i32 %sv_1.0.reload, %77 %79 = icmp slt i32 %78, 1 store i32 %76, i32* %sv_2.0.reg2mem store i32 %78, i32* %sv_1.0.reg2mem br i1 %79, label LBL_10, label LBL_9 LBL_10: %80 = add i64 %3, 16 %81 = inttoptr i64 %80 to i64* %82 = load i64, i64* %81, align 8 %83 = inttoptr i64 %82 to i64* %84 = load i64, i64* %83, align 8 %85 = zext i32 %76 to i64 %86 = call i64 @FUNC(i64 %84, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_1, i64 0, i64 0), i16 %sv_3.0.in.reload, i32 %77, i64 %85, i64 %1) store i64 %86, i64* %rax.0.reg2mem br label LBL_15 LBL_11: %87 = load i64, i64* %9, align 8 %88 = call i64 @FUNC(i64 %3, i64 %3, i64 %4, i64 0) %89 = and i64 %88, 4294967295 %90 = call i64 @FUNC(i64 %89) %91 = trunc i64 %90 to i32 %92 = icmp eq i32 %91, 0 br i1 %92, label LBL_13, label LBL_12 LBL_12: %93 = add i64 %3, 16 %94 = inttoptr i64 %93 to i64* %95 = load i64, i64* %94, align 8 %96 = inttoptr i64 %95 to i64* %97 = load i64, i64* %96, align 8 %98 = call i64 @FUNC(i64 %97, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 0, i64 %3, i64 %1) store i64 %87, i64* %sv_0.0.reg2mem br label LBL_14 LBL_13: %99 = load i32, i32* %6, align 4 %100 = call i64 @FUNC(i64 %3, i64 %87, i32 %99, i64 0) %101 = load i32, i32* %50, align 4 %102 = add i32 %101, %sv_3.04 %103 = zext i32 %102 to i64 %104 = call i64 @FUNC(i64 %13, i64 %103) %105 = load i32, i32* %50, align 4 %106 = zext i32 %105 to i64 %107 = call i64 @FUNC(i64 %13, i64 %106) %108 = add i64 %3, 16 %109 = inttoptr i64 %108 to i64* %110 = load i64, i64* %109, align 8 %111 = call i64 @FUNC(i64 %110, i64 %13, i64 %15) store i64 %111, i64* %rax.0.reg2mem br label LBL_15 LBL_14: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %112 = call i64 @FUNC(i64 %3, i64 %13) %113 = load i32, i32* %6, align 4 %114 = call i64 @FUNC(i64 %3, i64 %sv_0.0.reload, i32 %113) store i64 %114, 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 %87, { 1, 0 } uselistorder i32 %76, { 1, 0 } uselistorder i32 %54, { 1, 2, 0 } uselistorder i32 %sv_3.04, { 1, 0, 2 } uselistorder i64 %13, { 1, 2, 3, 4, 0, 5, 6 } uselistorder i64* %9, { 3, 2, 1, 0, 4 } uselistorder i32* %6, { 0, 3, 1, 2, 4, 5 } uselistorder i64 %4, { 3, 0, 1, 2 } uselistorder i64 %3, { 7, 6, 9, 10, 8, 11, 13, 12, 2, 4, 3, 5, 14, 0, 1, 15, 16, 17 } uselistorder i64 %1, { 2, 0, 1 } uselistorder i32* %sv_4.0.reg2mem, { 2, 0, 1 } uselistorder i64* %.lcssa10.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64, i32)* @sync_descbuffer_for_device, { 1, 0 } uselistorder i64 (i64, i64)* @b43_poison_rx_buffer, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @b43dbg, { 1, 0 } uselistorder i64 4294967295, { 1, 0, 2, 3, 4 } uselistorder i64 (i64)* @unlikely, { 3, 2, 1, 0 } uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
virtio_gpu_cleanup_mapping_15732
virtio_gpu_cleanup_mapping
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = zext i32 %3 to i64 %5 = call i64 @FUNC(i64 %0, i64 %4) %6 = call i64 @FUNC(i64 %0) store i64 0, i64* %arg1, align 8 store i32 0, i32* %2, align 4 ret i64 %0 }
1
BinRealVul
git_repository_config__weakptr_4528
git_repository_config__weakptr
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %1 = icmp eq i64* %arg2, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: store i64 0, i64* %sv_2, align 8 store i64 0, i64* %sv_1, align 8 store i64 0, i64* %sv_0, align 8 %3 = call i64 @FUNC(i64* nonnull %sv_2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false %7 = load i64, i64* %sv_2, align 8 %spec.select = select i1 %6, i64 0, i64 %7 %8 = call i64 @FUNC(i64* nonnull %sv_1) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false %12 = load i64, i64* %sv_1, align 8 %sv_3.0 = select i1 %11, i64 0, i64 %12 %13 = call i64 @FUNC(i64* nonnull %sv_0) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false %17 = load i64, i64* %sv_0, align 8 %spec.select1 = select i1 %16, i64 0, i64 %17 %18 = call i64 @FUNC(i64 %0, i64 %0, i64 %spec.select, i64 %sv_3.0, i64 %spec.select1) %19 = trunc i64 %18 to i32 %20 = call i64 @FUNC(i64* nonnull %sv_2) %21 = call i64 @FUNC(i64* nonnull %sv_1) %22 = call i64 @FUNC(i64* nonnull %sv_0) %23 = icmp slt i32 %19, 0 %24 = icmp eq i1 %23, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %24, label LBL_2, label LBL_3 LBL_2: store i64 %0, i64* %arg1, align 8 store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_2, { 0, 2, 1, 3 } uselistorder i64* %sv_1, { 0, 2, 1, 3 } uselistorder i64* %sv_0, { 0, 2, 1, 3 } uselistorder i64 %0, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64*)* @git_buf_free, { 2, 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
uv__pipe_close_18195
uv__pipe_close
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 = inttoptr i64 %arg1 to i8* %2 = call i32 @unlink(i8* %1) %3 = inttoptr i64 %arg1 to i64* call void @free(i64* %3) br label LBL_2 LBL_2: %4 = call i64 @FUNC(i64 %arg1) ret i64 %4 uselistorder i64 %arg1, { 2, 1, 0, 3 } }
1
BinRealVul
neigh_forced_gc_10127
neigh_forced_gc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.ph.lcssa.reg2mem = alloca i32 %sv_1.09.reg2mem = alloca i64 %.reg2mem40 = alloca i64* %.in16.reg2mem = alloca i64 %sv_0.0.ph11.reg2mem = alloca i32 %sv_1.0.ph12.reg2mem = alloca i64 %.reg2mem38 = alloca i64* %.in.reg2mem = alloca i64 %sv_0.114.reg2mem = alloca i32 %storemerge15.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 80 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = add i32 %3, 1 store i32 %4, i32* %2, align 4 %5 = add i64 %0, 16 %6 = call i64 @FUNC(i64 %5) %7 = bitcast i64* %rdi to i32* %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge15.reg2mem store i32 0, i32* %sv_0.114.reg2mem br label LBL_1 LBL_1: %sv_0.114.reload = load i32, i32* %sv_0.114.reg2mem %storemerge15.reload = load i32, i32* %storemerge15.reg2mem %.reload = load i64, i64* %.reg2mem %10 = load i64, i64* %9, align 8 %11 = mul i64 %.reload, 8 %12 = add i64 %10, %11 %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* %.in.reg2mem store i64* %13, i64** %.reg2mem38 store i64 %12, i64* %sv_1.0.ph12.reg2mem store i32 %sv_0.114.reload, i32* %sv_0.0.ph11.reg2mem store i32 %sv_0.114.reload, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %16, label LBL_2, label LBL_7 LBL_2: %sv_0.0.ph11.reload = load i32, i32* %sv_0.0.ph11.reg2mem %sv_1.0.ph12.reload = load i64, i64* %sv_1.0.ph12.reg2mem %.reload39 = load i64*, i64** %.reg2mem38 %.in.reload = load i64, i64* %.in.reg2mem store i64 %.in.reload, i64* %.in16.reg2mem store i64* %.reload39, i64** %.reg2mem40 store i64 %sv_1.0.ph12.reload, i64* %sv_1.09.reg2mem br label LBL_3 LBL_3: %.in16.reload = load i64, i64* %.in16.reg2mem %17 = add i64 %.in16.reload, 24 %18 = call i64 @FUNC(i64 %17) %19 = add i64 %.in16.reload, 8 %20 = call i64 @FUNC(i64 %19) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 1 %23 = icmp eq i1 %22, false br i1 %23, label LBL_6, label LBL_4 LBL_4: %24 = add i64 %.in16.reload, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = urem i32 %26, 2 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_6, label LBL_5 LBL_5: %sv_1.09.reload = load i64, i64* %sv_1.09.reg2mem %.reload41 = load i64*, i64** %.reg2mem40 %30 = inttoptr i64 %.in16.reload to i32* %31 = add i64 %.in16.reload, 16 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 store i64 %33, i64* %.reload41, align 8 store i32 1, i32* %30, align 4 %34 = call i64 @FUNC(i64 %17) %35 = call i64 @FUNC(i64 %.in16.reload) %36 = inttoptr i64 %sv_1.09.reload to i64* %37 = load i64, i64* %36, align 8 %38 = icmp eq i64 %37, 0 %39 = icmp eq i1 %38, false store i64 %37, i64* %.in.reg2mem store i64* %36, i64** %.reg2mem38 store i64 %sv_1.09.reload, i64* %sv_1.0.ph12.reg2mem store i32 1, i32* %sv_0.0.ph11.reg2mem store i32 1, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %39, label LBL_2, label LBL_7 LBL_6: %40 = call i64 @FUNC(i64 %17) %41 = add i64 %.in16.reload, 16 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = icmp eq i64 %43, 0 %45 = icmp eq i1 %44, false store i64 %43, i64* %.in16.reg2mem store i64* %42, i64** %.reg2mem40 store i64 %41, i64* %sv_1.09.reg2mem store i32 %sv_0.0.ph11.reload, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %45, label LBL_3, label LBL_7 LBL_7: %sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem %46 = add i32 %storemerge15.reload, 1 %47 = load i32, i32* %7, align 8 %48 = zext i32 %47 to i64 %49 = sext i32 %46 to i64 %50 = icmp sgt i64 %49, %48 store i64 %49, i64* %.reg2mem store i32 %46, i32* %storemerge15.reg2mem store i32 %sv_0.0.ph.lcssa.reload, i32* %sv_0.114.reg2mem br i1 %50, label LBL_8, label LBL_1 LBL_8: %51 = load i64, i64* @gv_0, align 8 %52 = add i64 %0, 72 %53 = inttoptr i64 %52 to i64* store i64 %51, i64* %53, align 8 %54 = call i64 @FUNC(i64 %5) %55 = zext i32 %sv_0.0.ph.lcssa.reload to i64 ret i64 %55 uselistorder i64 %sv_1.09.reload, { 1, 0 } uselistorder i64 %17, { 1, 0, 2 } uselistorder i64 %.in16.reload, { 0, 5, 6, 4, 3, 2, 1 } uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.114.reg2mem, { 1, 0, 2 } uselistorder i64* %.in.reg2mem, { 2, 0, 1 } uselistorder i64** %.reg2mem38, { 2, 0, 1 } uselistorder i64* %sv_1.0.ph12.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.ph11.reg2mem, { 2, 0, 1 } uselistorder i64* %.in16.reg2mem, { 1, 0, 2 } uselistorder i64** %.reg2mem40, { 1, 0, 2 } uselistorder i64* %sv_1.09.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.0.ph.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64)* @write_unlock, { 1, 0 } uselistorder i1 false, { 4, 1, 2, 3, 0 } uselistorder i32 0, { 2, 0, 1 } uselistorder i64 8, { 1, 0, 2 } uselistorder label LBL_7, { 1, 0, 2 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
update_stats_18720
update_stats
define i64 @FUNC(i64* %arg1, i64* %arg2) 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 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false store i64 %3, i64* %rax.0.reg2mem br i1 %6, label LBL_9, label LBL_1 LBL_1: %7 = add i64 %2, 84 %8 = and i64 %1, 4294967295 %9 = call i64 @FUNC(i64 %7, i64 %8, i64 0) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 %9, i64* %rax.0.reg2mem br i1 %12, label LBL_9, label LBL_2 LBL_2: %13 = ptrtoint i64* %arg2 to i64 %14 = call i64 @FUNC(i64 %13) %15 = trunc i64 %14 to i32 %16 = call i64 @FUNC(i64 %13) %sext = mul i64 %14, 4294967296 %17 = ashr exact i64 %sext, 32 %sext1 = mul i64 %16, 4294967296 %18 = ashr exact i64 %sext1, 31 %19 = add nsw i64 %18, %17 %20 = mul i64 %19, 4 %21 = add i64 %20, %2 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = add i32 %23, 1 store i32 %24, i32* %22, align 4 %25 = icmp eq i32 %15, 0 store i64 %19, i64* %rax.0.reg2mem br i1 %25, label LBL_9, label LBL_3 LBL_3: %26 = add i64 %13, 4 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = add i64 %2, 80 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp eq i32 %31, 1 %33 = icmp eq i1 %32, false br i1 %33, label LBL_5, label LBL_4 LBL_4: %34 = call i64 @FUNC(i64 %2, i64 %13) %35 = call i64 @FUNC(i64 %13) %sext4 = mul i64 %35, 4294967296 %36 = ashr exact i64 %sext4, 32 %sext5 = mul i64 %34, 4294967296 %37 = ashr exact i64 %sext5, 31 %38 = add nsw i64 %36, %37 %39 = mul i64 %38, 4 %40 = add i64 %2, 16 %41 = add i64 %40, %39 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = add i32 %43, 1 store i32 %44, i32* %42, align 4 br label LBL_5 LBL_5: %45 = call i64 @FUNC(i64 %13) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 br i1 %47, label LBL_7, label LBL_6 LBL_6: %48 = call i64 @FUNC(i64 %2, i64 %13) %49 = icmp eq i32 %28, 1 %50 = zext i1 %49 to i64 %sext8 = mul i64 %48, 4294967296 %51 = ashr exact i64 %sext8, 31 %52 = or i64 %51, %50 %53 = mul i64 %52, 4 %54 = add i64 %2, 32 %55 = add i64 %54, %53 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = add i32 %57, 1 %59 = add nsw i64 %52, 8 %60 = mul i64 %59, 4 %61 = add i64 %60, %2 %62 = inttoptr i64 %61 to i32* store i32 %58, i32* %62, align 4 store i64 %59, i64* %rax.0.reg2mem br label LBL_9 LBL_7: %63 = call i64 @FUNC(i64 %13) %64 = icmp eq i32 %28, 2 %65 = icmp eq i1 %64, false %66 = zext i1 %65 to i64 %sext10 = mul i64 %63, 4294967296 %67 = ashr exact i64 %sext10, 30 %68 = or i64 %67, %66 %69 = mul i64 %68, 4 %70 = add i64 %2, 48 %71 = add i64 %70, %69 %72 = inttoptr i64 %71 to i32* %73 = load i32, i32* %72, align 4 %74 = add i32 %73, 1 %75 = add nsw i64 %68, 12 %76 = mul i64 %75, 4 %77 = add i64 %76, %2 %78 = inttoptr i64 %77 to i32* store i32 %74, i32* %78, align 4 store i64 %75, i64* %rax.0.reg2mem br i1 %64, label LBL_9, label LBL_8 LBL_8: %79 = call i64 @FUNC(i64 %13) %80 = icmp eq i32 %28, 1 %81 = icmp eq i1 %80, false %82 = zext i1 %81 to i64 %sext12 = mul i64 %79, 4294967296 %83 = ashr exact i64 %sext12, 30 %84 = or i64 %83, %82 %85 = mul i64 %84, 4 %86 = add i64 %2, 56 %87 = add i64 %86, %85 %88 = inttoptr i64 %87 to i32* %89 = load i32, i32* %88, align 4 %90 = add i32 %89, 1 %91 = add nsw i64 %84, 14 %92 = mul i64 %91, 4 %93 = add i64 %92, %2 %94 = inttoptr i64 %93 to i32* store i32 %90, i32* %94, align 4 store i64 %91, 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 %84, { 1, 0 } uselistorder i64 %68, { 1, 0 } uselistorder i64 %52, { 1, 0 } uselistorder i32 %28, { 1, 2, 0 } uselistorder i64 %13, { 2, 3, 4, 5, 0, 1, 6, 7, 8 } uselistorder i64 %2, { 0, 4, 1, 5, 2, 6, 8, 7, 10, 9, 3, 11, 12 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4, 5, 6 } uselistorder i64 (i64)* @has_second_ref, { 1, 0 } uselistorder i64 4, { 0, 1, 2, 3, 4, 5, 6, 8, 7 } }
1
BinRealVul
xfs_attr_shortform_addname_11805
xfs_attr_shortform_addname
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 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = trunc i64 %1 to i32 %7 = urem i32 %6, 2 %8 = icmp eq i32 %7, 0 %9 = icmp eq i32 %5, 1 %10 = icmp eq i1 %9, false %or.cond = or i1 %8, %10 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %11 = and i64 %4, 4294967295 store i64 %11, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %12 = icmp eq i32 %5, 2 %13 = icmp eq i1 %12, false br i1 %13, label LBL_6, label LBL_3 LBL_3: %14 = and i32 %6, 2 %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = and i64 %4, 4294967295 store i64 %16, i64* %rax.0.reg2mem br label LBL_10 LBL_5: %17 = call i64 @FUNC(i64 %2) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = zext i1 %19 to i64 %21 = call i64 @FUNC(i64 %20) br label LBL_6 LBL_6: %22 = add i64 %2, 4 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = icmp sgt i32 %24, 255 store i64 3, i64* %rax.0.reg2mem br i1 %25, label LBL_10, label LBL_7 LBL_7: %26 = add i64 %2, 8 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp slt i32 %28, 256 store i64 3, i64* %rax.0.reg2mem br i1 %29, label LBL_8, label LBL_10 LBL_8: %30 = add i64 %2, 16 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = call i64 @FUNC(i64 %32) %34 = load i32, i32* %27, align 4 %35 = load i32, i32* %23, align 4 %36 = zext i32 %34 to i64 %37 = zext i32 %35 to i64 %38 = call i64 @FUNC(i64 %37, i64 %36) %39 = add i64 %38, %33 %40 = load i64, i64* %31, align 8 %41 = and i64 %39, 4294967295 %42 = call i64 @FUNC(i64 %40, i64 %41) %43 = trunc i64 %42 to i32 %44 = icmp eq i32 %43, 0 %45 = icmp eq i1 %44, false store i64 3, i64* %rax.0.reg2mem br i1 %45, label LBL_9, label LBL_10 LBL_9: %46 = and i64 %42, 4294967295 %47 = call i64 @FUNC(i64 %2, i64 %46) store i64 0, 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 %6, { 1, 0 } uselistorder i32 %5, { 1, 0 } uselistorder i64 %2, { 1, 4, 3, 2, 0, 5, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 3, 2, 5, 4 } uselistorder i64 3, { 0, 2, 1 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder i32 2, { 2, 1, 0 } uselistorder label LBL_10, { 3, 0, 2, 1, 4, 5 } }
1
BinRealVul
crypto_shash_report_5263
crypto_shash_report
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %1 = ptrtoint i32* %arg2 to i64 %2 = call i64 @FUNC(i64 %1) store i32 1935763571, i32* %sv_0, align 4 %3 = call i64 @FUNC(i64 %0, i64 1, i64 16, i32* nonnull %sv_0) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false %. = select i1 %6, i64 4294967295, i64 0 ret i64 %. }
0
BinRealVul
ffm_is_avail_data_17851
ffm_is_avail_data
define i64 @FUNC(i64* %arg1, i64 %arg2) 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 %arg2 to i32 %4 = trunc i64 %1 to i32 %5 = add i64 %2, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = sub i32 %4, %7 %9 = icmp slt i32 %8, %3 store i64 1, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_6 LBL_1: %10 = add i64 %2, 8 %11 = call i64 @FUNC(i64 %10) %12 = inttoptr i64 %10 to i32* %13 = load i32, i32* %12, align 4 %14 = sext i32 %13 to i64 %15 = icmp eq i64 %11, %14 %16 = icmp eq i1 %15, false store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_2, label LBL_6 LBL_2: %17 = icmp slt i64 %11, %14 br i1 %17, label LBL_3, label LBL_4 LBL_3: br label LBL_5 LBL_4: br label LBL_5 LBL_5: %sext = mul i64 %arg2, 4294967296 %18 = sext i32 %8 to i64 %19 = ashr exact i64 %sext, 32 %20 = icmp sle i64 %19, %18 %. = zext i1 %20 to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
1
BinRealVul
qemu_co_rwlock_unlock_16456
qemu_co_rwlock_unlock
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC() %3 = trunc i64 %2 to i8 %4 = icmp eq i8 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 27, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 4 %8 = inttoptr i64 %7 to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, 0 br i1 %10, label LBL_4, label LBL_3 LBL_3: store i8 0, i8* %8, align 1 %11 = add i64 %6, 8 %12 = call i64 @FUNC(i64 %11) store i64 %12, i64* %rax.0.reg2mem br label LBL_8 LBL_4: %13 = trunc i64 %1 to i32 %14 = add i32 %13, -1 %15 = bitcast i64* %arg1 to i32* store i32 %14, i32* %15, align 4 %16 = icmp slt i32 %13, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 33, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0)) br label LBL_6 LBL_6: %18 = and i64 %1, 4294967295 %19 = icmp eq i32 %13, 0 %20 = icmp eq i1 %19, false store i64 %18, i64* %rax.0.reg2mem br i1 %20, label LBL_8, label LBL_7 LBL_7: %21 = add i64 %6, 8 %22 = call i64 @FUNC(i64 %21) store i64 %22, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %13, { 0, 2, 1 } uselistorder i64 %6, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } }
1
BinRealVul
color_esycc_to_rgb_9551
color_esycc_to_rgb
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %xmm0.06.reg2mem = alloca i128 %xmm2.07.reg2mem = alloca i128 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp ult i32 %3, 3 br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = add i64 %0, 20 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = add i64 %0, 52 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %7, %10 %12 = icmp eq i1 %11, false br i1 %12, label LBL_5, label LBL_2 LBL_2: %13 = add i64 %0, 84 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %7, %15 %17 = icmp eq i1 %16, false br i1 %17, label LBL_5, label LBL_3 LBL_3: %18 = add i64 %0, 24 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i64 %0, 56 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %20, %23 %25 = icmp eq i1 %24, false br i1 %25, label LBL_5, label LBL_4 LBL_4: %26 = add i64 %0, 88 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %20, %28 br i1 %29, label LBL_6, label LBL_5 LBL_5: %30 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %31 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %30, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_2, i64 0, i64 0), i64 34) %32 = sext i32 %31 to i64 store i64 %32, i64* %rax.0.reg2mem br label LBL_16 LBL_6: %33 = add i64 %0, 12 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = mul i32 %35, %3 %37 = icmp eq i32 %36, 0 br i1 %37, label LBL_15, label LBL_7 LBL_7: %38 = add i64 %0, 16 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = add i32 %40, 31 %42 = urem i32 %41, 32 %43 = shl i32 1, %42 %44 = urem i32 %40, 32 %45 = icmp eq i32 %44, 0 %notmask = shl nsw i32 -1, %44 %46 = sub i32 0, %notmask %phitmp = sub i32 %46, 1 %storemerge = select i1 %45, i32 0, i32 %phitmp %47 = add i64 %0, 92 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = add i64 %0, 60 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = add i64 %0, 32 %54 = inttoptr i64 %53 to i64* %55 = add i64 %0, 64 %56 = inttoptr i64 %55 to i64* %57 = icmp eq i32 %52, 0 %58 = icmp eq i1 %57, false %59 = select i1 %58, i32 0, i32 %43 %60 = icmp eq i32 %49, 0 %61 = icmp eq i1 %60, false %62 = select i1 %61, i32 0, i32 %43 %wide.trip.count = zext i32 %36 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_8 LBL_8: %xmm0.06.reload = load i128, i128* %xmm0.06.reg2mem %xmm2.07.reload = load i128, i128* %xmm2.07.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %63 = mul i64 %indvars.iv.reload, 4 %64 = add i64 %63, %0 %65 = inttoptr i64 %64 to i32* %66 = load i32, i32* %65, align 4 %67 = load i64, i64* %54, align 8 %68 = add i64 %67, %63 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = load i64, i64* %56, align 8 %72 = add i64 %71, %63 %73 = inttoptr i64 %72 to i32* %74 = load i32, i32* %73, align 4 %spec.select = sub i32 %70, %59 %sv_1.0 = sub i32 %74, %62 %75 = call i128 @FUNC(i128 %xmm0.06.reload, i128 %xmm0.06.reload) %76 = call i128 @FUNC(i32 %66) %77 = call i128 @FUNC(i128 %xmm2.07.reload, i128 %xmm2.07.reload) %78 = call i128 @FUNC(i32 %spec.select) %79 = call i128 @FUNC(i32 941250995) %80 = call i128 @FUNC(i128 %78, i128 %79) %81 = call i128 @FUNC(i128 %76) %82 = call i128 @FUNC(i128 %81, i128 %80) %83 = call i128 @FUNC(i128 %80, i128 %80) %84 = call i128 @FUNC(i32 %sv_1.0) %85 = call i128 @FUNC(i32 1068725353) %86 = call i128 @FUNC(i128 %85, i128 %84) %87 = call i128 @FUNC(i128 %82, i128 %86) %88 = call i128 @FUNC(i32 1056964608) %89 = call i128 @FUNC(i128 %88, i128 %87) %90 = call i32 @FUNC(i128 %89) %91 = icmp sgt i32 %90, %storemerge store i32 %storemerge, i32* %sv_0.0.reg2mem br i1 %91, label LBL_10, label LBL_9 LBL_9: %92 = icmp slt i32 %90, 0 %93 = icmp eq i1 %92, false %spec.select3 = select i1 %93, i32 %90, i32 0 store i32 %spec.select3, i32* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem store i32 %sv_0.0.reload, i32* %65, align 4 %94 = call i128 @FUNC(i128 %87, i128 %87) %95 = call i128 @FUNC(i32 %66) %96 = call i128 @FUNC(i32 1065355733) %97 = call i128 @FUNC(i128 %96, i128 %95) %98 = call i128 @FUNC(i128 %84, i128 %84) %99 = call i128 @FUNC(i32 %spec.select) %100 = call i128 @FUNC(i32 1051734311) %101 = call i128 @FUNC(i128 %100, i128 %99) %102 = call i128 @FUNC(i128 %97, i128 %101) %103 = call i128 @FUNC(i128 %99, i128 %99) %104 = call i128 @FUNC(i32 %sv_1.0) %105 = call i128 @FUNC(i32 1060556825) %106 = call i128 @FUNC(i128 %104, i128 %105) %107 = call i128 @FUNC(i128 %102) %108 = call i128 @FUNC(i128 %107, i128 %106) %109 = call i128 @FUNC(i32 1056964608) %110 = call i128 @FUNC(i128 %109, i128 %108) %111 = call i32 @FUNC(i128 %110) %112 = icmp sgt i32 %111, %storemerge store i32 %storemerge, i32* %sv_0.1.reg2mem br i1 %112, label LBL_12, label LBL_11 LBL_11: %113 = icmp slt i32 %111, 0 %114 = icmp eq i1 %113, false %spec.select4 = select i1 %114, i32 %111, i32 0 store i32 %spec.select4, i32* %sv_0.1.reg2mem br label LBL_12 LBL_12: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %115 = load i64, i64* %54, align 8 %116 = add i64 %115, %63 %117 = inttoptr i64 %116 to i32* store i32 %sv_0.1.reload, i32* %117, align 4 %118 = call i128 @FUNC(i128 %108, i128 %108) %119 = call i128 @FUNC(i32 %66) %120 = call i128 @FUNC(i32 1065350246) %121 = call i128 @FUNC(i128 %119, i128 %120) %122 = call i128 @FUNC(i128 %106, i128 %106) %123 = call i128 @FUNC(i32 %spec.select) %124 = call i128 @FUNC(i32 1071829557) %125 = call i128 @FUNC(i128 %124, i128 %123) %126 = call i128 @FUNC(i128 %125, i128 %121) %127 = call i128 @FUNC(i128 %123, i128 %123) %128 = call i128 @FUNC(i32 %sv_1.0) %129 = load i32, i32* inttoptr (i64 4202672 to i32*), align 16 %130 = call i128 @FUNC(i32 %129) %131 = call i128 @FUNC(i128 %128, i128 %130) %132 = call i128 @FUNC(i128 %126) %133 = call i128 @FUNC(i128 %132, i128 %131) %134 = call i128 @FUNC(i32 1056964608) %135 = call i128 @FUNC(i128 %134, i128 %133) %136 = call i32 @FUNC(i128 %135) %137 = icmp sgt i32 %136, %storemerge store i32 %storemerge, i32* %sv_0.2.reg2mem br i1 %137, label LBL_14, label LBL_13 LBL_13: %138 = icmp slt i32 %136, 0 %139 = icmp eq i1 %138, false %spec.select5 = select i1 %139, i32 %136, i32 0 store i32 %spec.select5, i32* %sv_0.2.reg2mem br label LBL_14 LBL_14: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %140 = load i64, i64* %56, align 8 %141 = add i64 %140, %63 %142 = inttoptr i64 %141 to i32* store i32 %sv_0.2.reload, i32* %142, align 4 %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 i128 %131, i128* %xmm2.07.reg2mem store i128 %135, i128* %xmm0.06.reg2mem br i1 %exitcond, label LBL_15, label LBL_8 LBL_15: store i32 0, i32* %34, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i128 %123, { 2, 1, 0 } uselistorder i128 %108, { 1, 0, 2 } uselistorder i128 %106, { 1, 0, 2 } uselistorder i128 %99, { 2, 1, 0 } uselistorder i128 %87, { 1, 0, 2 } uselistorder i128 %84, { 1, 0, 2 } uselistorder i128 %80, { 2, 1, 0 } uselistorder i64 %63, { 4, 3, 2, 1, 0 } uselistorder i128 %xmm2.07.reload, { 1, 0 } uselistorder i128 %xmm0.06.reload, { 1, 0 } uselistorder i32 %storemerge, { 0, 3, 1, 4, 2, 5 } uselistorder i64 %0, { 0, 1, 2, 3, 12, 11, 14, 10, 9, 7, 8, 6, 5, 4, 13 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i128* %xmm2.07.reg2mem, { 1, 0 } uselistorder i128* %xmm0.06.reg2mem, { 1, 0 } }
0
BinRealVul
clean_path_19214
clean_path
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.reg2mem11 = alloca i8* %.reg2mem9 = alloca i64 %sv_0.1.in.reg2mem = alloca i64 %.reg2mem = alloca i8 %sv_0.04.reg2mem = alloca i64 %.in.in.reg2mem = alloca i64 %.pre.reg2mem = alloca i8 %0 = bitcast i64* %arg1 to i8* %1 = call i32 @strlen(i8* %0) %2 = sext i32 %1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = inttoptr i64 %3 to i8* %5 = load i8, i8* %0, align 1 store i8 %5, i8* %4, align 1 %6 = load i8, i8* %0, align 1 %7 = icmp eq i8 %6, 0 br i1 %7, label LBL_4, label LBL_1 LBL_1: %8 = ptrtoint i64* %arg1 to i64 store i8 %6, i8* %.pre.reg2mem store i64 %3, i64* %.in.in.reg2mem store i64 %8, i64* %sv_0.04.reg2mem br label LBL_3 LBL_2: %9 = load i8, i8* %.pre8, align 1 store i8 %9, i8* %12, align 1 %10 = load i8, i8* %.pre8, align 1 %11 = icmp eq i8 %10, 0 store i8 %10, i8* %.pre.reg2mem store i64 %.in, i64* %.in.in.reg2mem store i64 %sv_0.1, i64* %sv_0.04.reg2mem br i1 %11, label LBL_4, label LBL_3 LBL_3: %sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem %.in.in.reload = load i64, i64* %.in.in.reg2mem %.pre.reload = load i8, i8* %.pre.reg2mem %.in = add i64 %.in.in.reload, 1 %12 = inttoptr i64 %.in to i8* store i8 %.pre.reload, i8* %.reg2mem store i64 %sv_0.04.reload, i64* %sv_0.1.in.reg2mem br label LBL_5 LBL_4: %13 = call i8* @strrchr(i8* %4, i32 47) %14 = ptrtoint i8* %13 to i64 %15 = icmp eq i8* %13, null %16 = icmp eq i64 %3, %14 %or.cond3 = or i1 %15, %16 store i64 %14, i64* %.reg2mem9 store i8* %13, i8** %.reg2mem11 br i1 %or.cond3, label LBL_9, label LBL_7 LBL_5: %sv_0.1.in.reload = load i64, i64* %sv_0.1.in.reg2mem %.reload = load i8, i8* %.reg2mem %sv_0.1 = add i64 %sv_0.1.in.reload, 1 %17 = icmp eq i8 %.reload, 47 %18 = icmp eq i1 %17, false %.pre8 = inttoptr i64 %sv_0.1 to i8* br i1 %18, label LBL_2, label LBL_6 LBL_6: %19 = load i8, i8* %.pre8, align 1 %20 = icmp eq i8 %19, 47 store i8 47, i8* %.reg2mem store i64 %sv_0.1, i64* %sv_0.1.in.reg2mem br i1 %20, label LBL_5, label LBL_2 LBL_7: %.reload10 = load i64, i64* %.reg2mem9 %21 = add i64 %.reload10, 1 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = icmp eq i8 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_9, label LBL_8 LBL_8: %.reload12 = load i8*, i8** %.reg2mem11 store i8 0, i8* %.reload12, align 1 %26 = call i8* @strrchr(i8* %4, i32 47) %27 = ptrtoint i8* %26 to i64 %28 = icmp eq i8* %26, null %29 = icmp eq i64 %3, %27 %or.cond = or i1 %28, %29 store i64 %27, i64* %.reg2mem9 store i8* %26, i8** %.reg2mem11 br i1 %or.cond, label LBL_9, label LBL_7 LBL_9: ret i64 %3 uselistorder i8* %.pre8, { 2, 1, 0 } uselistorder i64 %sv_0.1, { 0, 2, 1 } uselistorder i64 %.in, { 1, 0 } uselistorder i8* %4, { 2, 1, 0 } uselistorder i64 %3, { 3, 2, 1, 0, 4 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.1.in.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem9, { 2, 0, 1 } uselistorder i8** %.reg2mem11, { 2, 0, 1 } uselistorder i8* null, { 1, 0 } uselistorder i8* (i8*, i32)* @strrchr, { 1, 0 } uselistorder i32 47, { 1, 0 } uselistorder i64 1, { 2, 1, 0 } uselistorder i8 0, { 2, 3, 4, 0, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_9, { 1, 0, 2 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
gstate_to_update_9236
gstate_to_update
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = icmp eq i64* %arg2, null store i64 %0, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_2 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i64 %0) %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* store i32 1, i32* %5, align 4 %6 = inttoptr i64 %4 to i64* %7 = load i64, i64* %6, align 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = icmp eq i64 %9, 0 %spec.select = select i1 %10, i64 %0, i64 %7 store i64 %spec.select, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 3, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
__page_symlink_9271
__page_symlink
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %1 = ptrtoint i64* %sv_3 to i64 %2 = icmp eq i32 %arg4, 0 %spec.select = select i1 %2, i64 1, i64 3 %3 = add i32 %arg3, -1 %4 = add i64 %1, -8 %5 = inttoptr i64 %4 to i64* %6 = ptrtoint i64* %sv_1 to i64 %7 = zext i32 %3 to i64 %8 = inttoptr i64 %arg2 to i64* %9 = add i64 %1, -16 %10 = inttoptr i64 %9 to i64* br label LBL_1 LBL_1: store i64 %6, i64* %5, align 8 %11 = call i64 @FUNC(i64 0, i64 %0, i64 0, i64 %7, i64 %spec.select, i64* nonnull %sv_2) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 %11, i64* %sv_0.0.reg2mem br i1 %14, label LBL_5, label LBL_2 LBL_2: %15 = load i64, i64* %sv_2, align 8 %16 = call i64 @FUNC(i64 %15, i64 0) %17 = inttoptr i64 %16 to i64* %18 = call i64* @memcpy(i64* %17, i64* %8, i32 %3) %19 = call i64 @FUNC(i64 %16, i64 0) %20 = load i64, i64* %sv_1, align 8 %21 = load i64, i64* %sv_2, align 8 store i64 %20, i64* %10, align 8 %22 = call i64 @FUNC(i64 0, i64 %0, i64 0, i64 %7, i64 %7, i64 %21) %23 = trunc i64 %22 to i32 %24 = icmp slt i32 %23, 0 store i64 %22, i64* %sv_0.0.reg2mem br i1 %24, label LBL_5, label LBL_3 LBL_3: %sext = mul i64 %22, 4294967296 %25 = ashr exact i64 %sext, 32 %26 = icmp slt i64 %25, %7 br i1 %26, label LBL_1, label LBL_4 LBL_4: %27 = call i64 @FUNC(i64 %0) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %28 = and i64 %sv_0.0.reload, 4294967295 store i64 %28, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %22, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_2, { 1, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
strtrimch_3763
strtrimch
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false store i64 0, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_7 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 store i64 %2, i64* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %4 = inttoptr i64 %storemerge2.reload to i8* %5 = load i8, i8* %4, align 1 %6 = sext i8 %5 to i32 %7 = icmp eq i32 %3, %6 %8 = add i64 %storemerge2.reload, 1 store i64 %8, i64* %storemerge2.reg2mem br i1 %7, label LBL_2, label LBL_3 LBL_3: %9 = call i32 @strlen(i8* %4) %10 = inttoptr i64 %storemerge2.reload to i64* %11 = call i64* @memmove(i64* %arg1, i64* %10, i32 %9) %12 = bitcast i64* %arg1 to i8* %13 = call i32 @strlen(i8* %12) store i32 %13, i32* %sv_0.0.reg2mem br label LBL_5 LBL_4: %14 = sext i32 %21 to i64 %15 = add i64 %14, %2 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = sext i8 %17 to i32 %19 = icmp eq i32 %3, %18 %20 = icmp eq i1 %19, false store i32 %21, i32* %sv_0.0.reg2mem br i1 %20, label LBL_6, label LBL_5 LBL_5: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %21 = add i32 %sv_0.0.reload, -1 %22 = icmp slt i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_4, label LBL_6 LBL_6: %24 = sext i32 %sv_0.0.reload to i64 %25 = add i64 %24, %2 %26 = inttoptr i64 %25 to i8* store i8 0, i8* %26, align 1 store i64 %2, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %21, { 2, 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64 %storemerge2.reload, { 2, 1, 0 } uselistorder i64 %2, { 0, 2, 3, 1 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64* %arg1, { 0, 1, 3, 2 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
vnc_listen_read_1416
vnc_listen_read
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 store i32 16, i32* %sv_1, align 4 %2 = call i64 @FUNC() %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i32* nonnull %sv_1) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, -1 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = ptrtoint i32* %arg1 to i64 %8 = and i64 %4, 4294967295 %9 = call i64 @FUNC(i64 %7, i64 %8) store i64 %9, 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 %4, { 1, 0, 2 } uselistorder i64 4294967295, { 1, 0 } }
0
BinRealVul
decode_close_2496
decode_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = call i64 @FUNC(i64 %1) %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %3) br label LBL_2 LBL_2: ret i64 0 }
0
BinRealVul
do_cp14_32_6245
do_cp14_32
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %1 = ptrtoint i32* %arg1 to i64 %2 = load i32, i32* %0 %3 = load i32, i32* %0 %4 = and i64 %arg2, 4294967295 %5 = call i64 @FUNC(i64 %1, i64 %4) %6 = load i64, i64* @gv_0, align 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %1) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64 %1) store i64 %13, i64* %rax.0.reg2mem br label LBL_14 LBL_2: %14 = trunc i64 %arg2 to i32 %15 = urem i32 %14, 256 %16 = icmp ult i32 %15, 12 br i1 %16, label LBL_3, label LBL_12 LBL_3: %17 = inttoptr i64 %5 to i32* %18 = icmp ult i32 %15, 3 %19 = icmp eq i1 %18, false br i1 %19, label LBL_10, label LBL_4 LBL_4: %20 = icmp eq i32 %15, 0 br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = add nsw i32 %15, -1 %22 = icmp ult i32 %21, 2 br i1 %22, label LBL_8, label LBL_12 LBL_6: %23 = icmp eq i32 %3, 0 br i1 %23, label LBL_12, label LBL_7 LBL_7: %24 = inttoptr i64 %8 to i32* store i32 17104896, i32* %17, align 4 %25 = load i32, i32* %24, align 4 %26 = udiv i32 %25, 1048576 %27 = or i32 %26, %25 %28 = urem i32 %27, 16 %29 = or i32 %28, 17104896 store i32 %29, i32* %17, align 4 br label LBL_13 LBL_8: %30 = icmp eq i32 %3, 0 br i1 %30, label LBL_13, label LBL_9 LBL_9: store i32 0, i32* %17, align 4 br label LBL_13 LBL_10: %31 = icmp eq i32 %3, 0 br i1 %31, label LBL_13, label LBL_11 LBL_11: store i32 0, i32* %17, align 4 br label LBL_13 LBL_12: %32 = and i64 %arg3, 4294967295 %33 = icmp eq i32 %3, 0 %. = select i1 %33, i64 ptrtoint ([4 x i8]* @gv_1 to i64), i64 ptrtoint ([4 x i8]* @gv_2 to i64) %34 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_3, i64 0, i64 0), i64 %., i64 %32, i64 %4, i32 %2) %35 = urem i64 %arg2, 256 %36 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i64 %35, i64 %32, i64 %4, i32 %2) %37 = call i64 @FUNC(i64 %1, i64 %4) store i64 %37, i64* %rax.0.reg2mem br label LBL_14 LBL_13: %38 = call i64 @FUNC(i64 %1) store i64 %38, 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 %32, { 1, 0 } uselistorder i32 %25, { 1, 0 } uselistorder i32* %17, { 3, 0, 1, 2 } uselistorder i32 %2, { 1, 0 } uselistorder i64 %1, { 2, 1, 0, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %0, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i32)* @gdprintk, { 1, 0 } uselistorder i64 (i64)* @advance_pc, { 1, 0 } uselistorder label LBL_13, { 1, 0, 3, 2, 4 } }
0
BinRealVul
ppc_spapr_reset_906
ppc_spapr_reset
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC() %3 = load i64, i64* @gv_0, align 8 %4 = add i64 %3, 16 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %3, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = inttoptr i64 %3 to i64* %11 = load i64, i64* %10, align 8 %12 = call i64 @FUNC(i64 %3, i64 %11, i64 %9, i64 %6) %13 = load i64, i64* @gv_0, align 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = load i64, i64* @gv_1, align 8 %17 = add i64 %16, 24 %18 = inttoptr i64 %17 to i64* store i64 %15, i64* %18, align 8 %19 = load i64, i64* @gv_1, align 8 %20 = add i64 %19, 40 %21 = inttoptr i64 %20 to i64* store i64 0, i64* %21, align 8 %22 = load i64, i64* @gv_1, align 8 %23 = add i64 %22, 256 %24 = inttoptr i64 %23 to i32* store i32 0, i32* %24, align 4 %25 = load i64, i64* @gv_0, align 8 %26 = load i64, i64* @gv_1, align 8 %27 = add i64 %25, 24 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %26, 264 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 ret i64 %26 uselistorder i64 %26, { 1, 0 } uselistorder i64 %3, { 1, 0, 2, 3 } }
0
BinRealVul
__munlock_pagevec_5524
__munlock_pagevec
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.3.reg2mem = alloca i64 %rdi.42.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_0.24.reg2mem = alloca i32 %rdi.25.reg2mem = alloca i64 %indvars.iv7.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i32, align 4 %2 = call i64 @FUNC(i64 %1) %3 = trunc i64 %2 to i32 %4 = sub i32 0, %3 store i32 0, i32* %sv_2, align 4 %5 = call i64 @FUNC(i64* nonnull %sv_1, i64 0) %6 = call i64 @FUNC(i64 %0) %7 = call i64 @FUNC(i64 %6) %8 = icmp sgt i32 %3, 0 %9 = ptrtoint i64* %sv_1 to i64 br i1 %8, label LBL_1, label LBL_13 LBL_1: %wide.trip.count9 = and i64 %2, 4294967295 store i64 0, i64* %indvars.iv7.reg2mem store i64 %6, i64* %rdi.25.reg2mem store i32 %4, i32* %sv_0.24.reg2mem br label LBL_2 LBL_2: %sv_0.24.reload = load i32, i32* %sv_0.24.reg2mem %rdi.25.reload = load i64, i64* %rdi.25.reg2mem %indvars.iv7.reload = load i64, i64* %indvars.iv7.reg2mem %10 = mul i64 %indvars.iv7.reload, 8 %11 = add i64 %10, %rdi.25.reload %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_5, label LBL_3 LBL_3: %17 = call i64 @FUNC(i64 %13, i64 0) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false store i32 %sv_0.24.reload, i32* %sv_0.1.reg2mem store i64 %13, i64* %rdi.1.reg2mem br i1 %20, label LBL_7, label LBL_4 LBL_4: %21 = call i64 @FUNC(i64 %13) store i32 %sv_0.24.reload, i32* %sv_0.0.reg2mem br label LBL_6 LBL_5: %22 = add i32 %sv_0.24.reload, 1 store i32 %22, i32* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %23 = add i64 %13, %10 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = call i64 @FUNC(i64* nonnull %sv_1, i64 %25) %27 = add i64 %10, %9 %28 = inttoptr i64 %27 to i64* store i64 0, i64* %28, align 8 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem store i64 %9, i64* %rdi.1.reg2mem br label LBL_7 LBL_7: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %indvars.iv.next8 = add nuw nsw i64 %indvars.iv7.reload, 1 %exitcond10 = icmp eq i64 %indvars.iv.next8, %wide.trip.count9 store i64 %indvars.iv.next8, i64* %indvars.iv7.reg2mem store i64 %rdi.1.reload, i64* %rdi.25.reg2mem store i32 %sv_0.1.reload, i32* %sv_0.24.reg2mem br i1 %exitcond10, label LBL_8, label LBL_2 LBL_8: %29 = call i64 @FUNC(i64 %0, i64 0, i32 %sv_0.1.reload) %30 = call i64 @FUNC(i64 %0) %31 = call i64 @FUNC(i64 %30) %32 = call i64 @FUNC(i64* nonnull %sv_1) store i64 0, i64* %indvars.iv.reg2mem store i64 %9, i64* %rdi.42.reg2mem br label LBL_9 LBL_9: %rdi.42.reload = load i64, i64* %rdi.42.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %33 = mul i64 %indvars.iv.reload, 8 %34 = add i64 %33, %rdi.42.reload %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = icmp eq i64 %36, 0 store i64 %rdi.42.reload, i64* %rdi.3.reg2mem br i1 %37, label LBL_12, label LBL_10 LBL_10: %38 = call i64 @FUNC(i64 %36) %39 = call i64 @FUNC(i64 %36, i64* nonnull %sv_1, i32* nonnull %sv_2) %40 = trunc i64 %39 to i32 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false store i64 %36, i64* %rdi.3.reg2mem br i1 %42, label LBL_12, label LBL_11 LBL_11: %43 = call i64 @FUNC(i64 %36) %44 = call i64 @FUNC(i64 %36) %45 = call i64 @FUNC(i64 %36) %46 = call i64 @FUNC(i64 %36) store i64 %36, i64* %rdi.3.reg2mem br label LBL_12 LBL_12: %rdi.3.reload = load i64, i64* %rdi.3.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count9 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %rdi.3.reload, i64* %rdi.42.reg2mem br i1 %exitcond, label LBL_14, label LBL_9 LBL_13: %47 = call i64 @FUNC(i64 %0, i64 0, i32 %4) %48 = call i64 @FUNC(i64 %0) %49 = call i64 @FUNC(i64 %48) %50 = call i64 @FUNC(i64* nonnull %sv_1) br label LBL_14 LBL_14: %51 = call i64 @FUNC(i64 %9) %52 = trunc i64 %51 to i32 %53 = icmp eq i32 %52, 0 store i64 %51, i64* %rax.0.reg2mem br i1 %53, label LBL_16, label LBL_15 LBL_15: %54 = load i32, i32* %sv_2, align 4 %55 = zext i32 %54 to i64 %56 = call i64 @FUNC(i64* nonnull %sv_1, i64 %55) store i64 %56, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %36, { 0, 5, 4, 3, 2, 1, 7, 6, 8 } uselistorder i64 %13, { 1, 2, 0, 3, 4 } uselistorder i64 %10, { 2, 1, 0 } uselistorder i32 %sv_0.24.reload, { 2, 1, 0 } uselistorder i64 %9, { 3, 0, 1, 2 } uselistorder i32 %4, { 1, 0 } uselistorder i32* %sv_2, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0, 2, 3, 4, 6, 5 } uselistorder i64 %0, { 0, 1, 3, 2, 4 } uselistorder i64* %indvars.iv7.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.25.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.24.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.42.reg2mem, { 2, 0, 1 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @zone_lru_lock, { 0, 2, 1 } uselistorder i32 0, { 3, 2, 4, 5, 0, 1, 6 } uselistorder i64 (i64)* @pagevec_count, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
twd_fxsr_to_i387_7931
twd_fxsr_to_i387
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.02.reg2mem = alloca i32 %sv_2.03.reg2mem = alloca i32 %sv_3.04.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = udiv i32 %3, 2048 %5 = add i64 %2, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 store i32 0, i32* %sv_3.04.reg2mem store i32 -65536, i32* %sv_2.03.reg2mem store i32 %7, i32* %sv_1.02.reg2mem br label LBL_1 LBL_1: %sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem %sv_2.03.reload = load i32, i32* %sv_2.03.reg2mem %sv_3.04.reload = load i32, i32* %sv_3.04.reg2mem %8 = urem i32 %sv_1.02.reload, 2 %9 = icmp eq i32 %8, 0 store i32 3, i32* %sv_0.0.reg2mem br i1 %9, label LBL_10, label LBL_2 LBL_2: %10 = sub nsw i32 %sv_3.04.reload, %4 %11 = urem i32 %10, 8 %12 = mul nuw nsw i32 %11, 10 %narrow = add nuw nsw i32 %12, 8 %13 = zext i32 %narrow to i64 %14 = add i64 %13, %2 %15 = inttoptr i64 %14 to i16* %16 = load i16, i16* %15, align 2 %17 = urem i16 %16, -32768 %18 = icmp eq i16 %17, 0 br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = icmp eq i16 %17, 32767 %20 = icmp eq i1 %19, false store i32 2, i32* %sv_0.0.reg2mem br i1 %20, label LBL_9, label LBL_10 LBL_4: %21 = add i64 %14, 2 %22 = inttoptr i64 %21 to i16* %23 = load i16, i16* %22, align 2 %24 = icmp eq i16 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_8, label LBL_5 LBL_5: %26 = add i64 %14, 4 %27 = inttoptr i64 %26 to i16* %28 = load i16, i16* %27, align 2 %29 = icmp eq i16 %28, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_8, label LBL_6 LBL_6: %31 = add i64 %14, 6 %32 = inttoptr i64 %31 to i16* %33 = load i16, i16* %32, align 2 %34 = icmp eq i16 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_8, label LBL_7 LBL_7: %36 = add i64 %14, 8 %37 = inttoptr i64 %36 to i16* %38 = load i16, i16* %37, align 2 %39 = icmp eq i16 %38, 0 %40 = icmp eq i1 %39, false store i32 1, i32* %sv_0.0.reg2mem br i1 %40, label LBL_8, label LBL_10 LBL_8: store i32 2, i32* %sv_0.0.reg2mem br label LBL_10 LBL_9: %41 = add i64 %14, 8 %42 = inttoptr i64 %41 to i16* %43 = load i16, i16* %42, align 2 %44 = icmp slt i16 %43, 0 %45 = icmp eq i1 %44, false %. = select i1 %45, i32 2, i32 0 store i32 %., i32* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %46 = mul i32 %sv_3.04.reload, 2 %47 = shl i32 %sv_0.0.reload, %46 %48 = or i32 %47, %sv_2.03.reload %49 = add nuw nsw i32 %sv_3.04.reload, 1 %50 = udiv i32 %sv_1.02.reload, 2 %exitcond = icmp eq i32 %49, 8 store i32 %49, i32* %sv_3.04.reg2mem store i32 %48, i32* %sv_2.03.reg2mem store i32 %50, i32* %sv_1.02.reg2mem br i1 %exitcond, label LBL_11, label LBL_1 LBL_11: %51 = zext i32 %48 to i64 ret i64 %51 uselistorder i32 %48, { 1, 0 } uselistorder i64 %14, { 0, 4, 3, 2, 1, 5 } uselistorder i32 %sv_3.04.reload, { 0, 2, 1 } uselistorder i32 %sv_1.02.reload, { 1, 0 } uselistorder i32* %sv_3.04.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.03.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 5, 3, 4, 1 } uselistorder i16 0, { 1, 2, 3, 4, 5, 0 } uselistorder i32 8, { 1, 2, 0 } uselistorder i32 2, { 3, 2, 5, 1, 0, 4 } uselistorder label LBL_10, { 1, 4, 2, 3, 0 } }
0
BinRealVul
sctp_sf_violation_ctsn_11596
sctp_sf_violation_ctsn
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg5 to i64 %1 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 store i64 8461548343504758868, i64* %sv_0, align 8 %2 = call i64 @FUNC(i64 %1, i64 %arg4, i64 %0, i64* nonnull %sv_0, i64 58) ret i64 %2 }
1
BinRealVul
nntp_hcache_namer_12762
nntp_hcache_namer
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = bitcast i64* %arg2 to i8* %1 = trunc i64 %arg3 to i32 %2 = inttoptr i64 %arg1 to i8* %3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* %2) %4 = sext i32 %3 to i64 ret i64 %4 }
1
BinRealVul
find_signature_12610
find_signature
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.0.in.reg2mem = alloca i64 %storemerge.in18.reg2mem = alloca i64 %storemerge19.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext5 = mul i64 %arg3, 4294967296 %1 = ashr exact i64 %sext5, 32 %2 = add i64 %1, %0 %3 = inttoptr i64 %2 to i8* %4 = load i8, i8* %3, align 1 %5 = icmp eq i8 %4, -35 %6 = icmp eq i1 %5, false store i64 %1, i64* %rax.0.in.reg2mem br i1 %6, label LBL_1, label LBL_10 LBL_1: %7 = trunc i64 %1 to i32 %8 = trunc i64 %arg2 to i32 %9 = icmp slt i32 %7, %8 store i64 %1, i64* %rax.0.in.reg2mem br i1 %9, label LBL_2, label LBL_10 LBL_2: %10 = trunc i64 %arg5 to i8 %11 = trunc i64 %arg4 to i32 store i64 %1, i64* %storemerge19.reg2mem store i64 %sext5, i64* %storemerge.in18.reg2mem br label LBL_3 LBL_3: %storemerge.in18.reload = load i64, i64* %storemerge.in18.reg2mem %storemerge19.reload = load i64, i64* %storemerge19.reg2mem %12 = add i64 %storemerge19.reload, %0 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = icmp eq i8 %14, -35 %16 = icmp eq i1 %15, false br i1 %16, label LBL_9, label LBL_4 LBL_4: %17 = add i64 %12, 15 %18 = inttoptr i64 %17 to i8* %19 = load i8, i8* %18, align 1 %20 = icmp eq i8 %19, -30 %21 = icmp eq i1 %20, false %22 = add i64 %12, 4 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = icmp eq i8 %24, %10 %26 = icmp eq i1 %25, false br i1 %21, label LBL_7, label LBL_5 LBL_5: br i1 %26, label LBL_9, label LBL_6 LBL_6: %27 = add i64 %12, 1 %28 = call i64 @FUNC(i64 %27) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, %11 %31 = icmp eq i1 %30, false store i64 %storemerge19.reload, i64* %rax.0.in.reg2mem br i1 %31, label LBL_9, label LBL_10 LBL_7: br i1 %26, label LBL_9, label LBL_8 LBL_8: %32 = add i64 %12, 1 %33 = call i64 @FUNC(i64 %32) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, %11 %36 = icmp eq i1 %35, false store i64 %storemerge19.reload, i64* %rax.0.in.reg2mem br i1 %36, label LBL_9, label LBL_10 LBL_9: %sext14 = add i64 %storemerge.in18.reload, 4294967296 %storemerge = ashr exact i64 %sext14, 32 %37 = trunc i64 %storemerge to i32 %38 = icmp slt i32 %37, %8 store i64 %storemerge, i64* %storemerge19.reg2mem store i64 %sext14, i64* %storemerge.in18.reg2mem store i64 %1, i64* %rax.0.in.reg2mem br i1 %38, label LBL_3, label LBL_10 LBL_10: %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 i1 %26, { 1, 0 } uselistorder i64 %storemerge19.reload, { 1, 0, 2 } uselistorder i32 %8, { 1, 0 } uselistorder i64 %1, { 0, 3, 1, 5, 2, 4 } uselistorder i64* %storemerge19.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.in18.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i64 (i64)* @pletoh24, { 1, 0 } uselistorder i1 false, { 0, 2, 1, 3, 4, 5 } uselistorder i64 4294967296, { 1, 0 } uselistorder label LBL_10, { 2, 1, 0, 3, 4 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
find_start_code_1550
find_start_code
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i8* %sv_0.23.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 1 %2 = add i64 %arg2, -3 %3 = icmp ugt i64 %2, %1 store i64 %1, i64* %sv_0.23.in.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %sv_0.23.in.reload = load i64, i64* %sv_0.23.in.reg2mem %sv_0.23 = inttoptr i64 %sv_0.23.in.reload to i8* %4 = load i8, i8* %sv_0.23, align 1 %5 = icmp eq i8 %4, 0 %6 = icmp eq i1 %5, false store i8* %sv_0.23, i8** %sv_0.0.reg2mem store i64 %sv_0.23.in.reload, i64* %.pre-phi.reg2mem br i1 %6, label LBL_7, label LBL_2 LBL_2: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %7 = ptrtoint i8* %sv_0.0.reload to i64 %8 = icmp ugt i64 %2, %7 %9 = icmp eq i1 %8, false br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = add i64 %7, 1 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 0 store i8* %11, i8** %sv_0.0.reg2mem br i1 %13, label LBL_2, label LBL_4 LBL_4: %14 = add i64 %7, -1 %15 = inttoptr i64 %14 to i8* %16 = load i8, i8* %15, align 1 %17 = icmp eq i8 %16, 0 %18 = icmp eq i1 %17, false store i64 %7, i64* %.pre-phi.reg2mem br i1 %18, label LBL_7, label LBL_5 LBL_5: %19 = add i64 %7, 1 %20 = inttoptr i64 %19 to i8* %21 = load i8, i8* %20, align 1 %22 = icmp eq i8 %21, 1 %23 = icmp eq i1 %22, false store i64 %7, i64* %.pre-phi.reg2mem br i1 %23, label LBL_7, label LBL_6 LBL_6: %24 = add i64 %7, 3 store i64 %24, i64* %arg1, align 8 %25 = add i64 %7, 2 %26 = inttoptr i64 %25 to i8* %27 = load i8, i8* %26, align 1 %28 = zext i8 %27 to i64 %29 = or i64 %28, 256 store i64 %29, i64* %storemerge.reg2mem br label LBL_9 LBL_7: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %30 = add i64 %.pre-phi.reload, 2 %31 = icmp ugt i64 %2, %30 store i64 %30, i64* %sv_0.23.in.reg2mem br i1 %31, label LBL_1, label LBL_8 LBL_8: store i64 %arg2, i64* %arg1, align 8 store i64 4294967295, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %7, { 2, 3, 1, 5, 0, 4, 6, 7 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64* %sv_0.23.in.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %arg1, { 1, 0, 2 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 2, 0 } uselistorder label LBL_2, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
headerSprintf_18178
headerSprintf
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.2.lcssa.reg2mem = alloca i8* %sv_0.1.reg2mem = alloca i8* %sv_1.0.reg2mem = alloca i32 %sv_2.2.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i8* %sv_2.1.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_2.35.reg2mem = alloca i32 %sv_1.16.reg2mem = alloca i32 %sv_0.27.reg2mem = alloca i8* %storemerge48.reg2mem = alloca i32 %sv_3 = alloca i64, align 8 %sv_4 = alloca i32, align 4 %0 = inttoptr i64 %arg2 to i8* %1 = call i8* @strdup(i8* %0) %2 = ptrtoint i8* %1 to i64 %3 = bitcast i32* %sv_4 to i64* %4 = call i64 @FUNC(i64 %2, i64 %arg3, i64 %arg4, i64* nonnull %sv_3, i64* nonnull %3, i64 0) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = bitcast i8* %1 to i64* call void @free(i64* %7) store i64 0, i64* %storemerge.reg2mem br label LBL_10 LBL_2: %8 = call i64 @FUNC(i64 %arg4) %9 = call i64* @malloc(i32 1024) %10 = bitcast i64* %9 to i8* store i8 0, i8* %10, align 1 %11 = load i32, i32* %sv_4, align 4 %12 = icmp eq i32 %11, 0 store i32 0, i32* %storemerge48.reg2mem store i8* %10, i8** %sv_0.27.reg2mem store i32 0, i32* %sv_1.16.reg2mem store i32 1024, i32* %sv_2.35.reg2mem store i8* %10, i8** %sv_0.2.lcssa.reg2mem br i1 %12, label LBL_9, label LBL_3 LBL_3: %sv_2.35.reload = load i32, i32* %sv_2.35.reg2mem %sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem %sv_0.27.reload = load i8*, i8** %sv_0.27.reg2mem %storemerge48.reload = load i32, i32* %storemerge48.reg2mem %13 = load i64, i64* %sv_3, align 8 %14 = call i64 @FUNC(i64 %arg1, i64 %13, i64 %arg4, i64 %8, i64 0) %15 = icmp eq i64 %14, 0 store i32 %sv_2.35.reload, i32* %sv_2.2.reg2mem store i32 %sv_1.16.reload, i32* %sv_1.0.reg2mem store i8* %sv_0.27.reload, i8** %sv_0.1.reg2mem br i1 %15, label LBL_8, label LBL_4 LBL_4: %16 = inttoptr i64 %14 to i8* %17 = call i32 @strlen(i8* %16) %18 = add i32 %17, %sv_1.16.reload %19 = zext i32 %18 to i64 %20 = sext i32 %sv_2.35.reload to i64 %21 = icmp sgt i64 %20, %19 store i32 %sv_2.35.reload, i32* %sv_2.0.reg2mem store i32 %sv_2.35.reload, i32* %sv_2.1.reg2mem store i8* %sv_0.27.reload, i8** %sv_0.0.reg2mem br i1 %21, label LBL_7, label LBL_5 LBL_5: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %22 = sext i32 %sv_2.0.reload to i64 %23 = icmp sgt i64 %22, %19 %24 = add i32 %sv_2.0.reload, 1024 store i32 %24, i32* %sv_2.0.reg2mem br i1 %23, label LBL_6, label LBL_5 LBL_6: %25 = bitcast i8* %sv_0.27.reload to i64* %26 = call i64* @realloc(i64* %25, i32 %sv_2.0.reload) %27 = bitcast i64* %26 to i8* store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem store i8* %27, i8** %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem %28 = call i8* @strcat(i8* %sv_0.0.reload, i8* %16) store i32 %sv_2.1.reload, i32* %sv_2.2.reg2mem store i32 %18, i32* %sv_1.0.reg2mem store i8* %sv_0.0.reload, i8** %sv_0.1.reg2mem br label LBL_8 LBL_8: %sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem %29 = add i32 %storemerge48.reload, 1 %30 = load i32, i32* %sv_4, align 4 %31 = zext i32 %30 to i64 %32 = sext i32 %29 to i64 %33 = icmp slt i64 %32, %31 store i32 %29, i32* %storemerge48.reg2mem store i8* %sv_0.1.reload, i8** %sv_0.27.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.16.reg2mem store i32 %sv_2.2.reload, i32* %sv_2.35.reg2mem store i8* %sv_0.1.reload, i8** %sv_0.2.lcssa.reg2mem br i1 %33, label LBL_3, label LBL_9 LBL_9: %sv_0.2.lcssa.reload = load i8*, i8** %sv_0.2.lcssa.reg2mem %34 = bitcast i8* %1 to i64* call void @free(i64* %34) %35 = call i64 @FUNC(i64 %arg4, i64 %8) %36 = load i64, i64* %sv_3, align 8 %37 = inttoptr i64 %36 to i64* call void @free(i64* %37) %38 = ptrtoint i8* %sv_0.2.lcssa.reload to i64 store i64 %38, i64* %storemerge.reg2mem br label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_2.0.reload, { 0, 3, 1, 2 } uselistorder i8* %sv_0.27.reload, { 2, 1, 0 } uselistorder i32 %sv_1.16.reload, { 1, 0 } uselistorder i32 %sv_2.35.reload, { 1, 2, 3, 0 } uselistorder i32* %sv_4, { 1, 0, 2 } uselistorder i64* %sv_3, { 1, 2, 0 } uselistorder i32* %storemerge48.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.27.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.16.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.35.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* (i32)* @malloc, { 1, 0 } uselistorder i32 1024, { 2, 0, 1 } uselistorder i32 0, { 0, 1, 2, 4, 3, 5 } uselistorder i8* (i8*)* @strdup, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
SkipRGBMipmaps_13679
SkipRGBMipmaps
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.08.reg2mem = alloca i64 %sv_1.0.off09.reg2mem = alloca i64 %storemerge10.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = and i32 %2, 4194304 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_7, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = and i32 %2, 4096 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = add i64 %5, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = and i32 %11, 512 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_7, label LBL_3 LBL_3: %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp slt i32 %16, 0 %18 = zext i1 %17 to i32 %19 = add i32 %16, %18 %20 = ashr i32 %19, 1 %21 = add i64 %5, 12 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp slt i32 %23, 0 %25 = zext i1 %24 to i32 %26 = add i32 %23, %25 %27 = ashr i32 %26, 1 %28 = add i64 %5, 16 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp sgt i32 %30, 1 %32 = icmp ne i32 %20, 0 %or.cond.not6 = icmp eq i1 %31, %32 %33 = icmp eq i32 %27, 0 %34 = icmp eq i1 %33, false %or.cond57 = icmp eq i1 %or.cond.not6, %34 br i1 %or.cond57, label LBL_4, label LBL_7 LBL_4: %35 = ptrtoint i64* %arg1 to i64 %36 = sext i32 %arg3 to i64 %extract.t = sext i32 %27 to i64 %37 = sext i32 %20 to i64 store i64 1, i64* %storemerge10.reg2mem store i64 %extract.t, i64* %sv_1.0.off09.reg2mem store i64 %37, i64* %sv_0.08.reg2mem br label LBL_5 LBL_5: %sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem %sv_1.0.off09.reload = load i64, i64* %sv_1.0.off09.reg2mem %38 = mul i64 %sv_1.0.off09.reload, %36 %39 = mul i64 %38, %sv_0.08.reload %40 = call i64 @FUNC(i64 %35, i64 %39, i64 1) %41 = icmp slt i64 %40, 0 br i1 %41, label LBL_7, label LBL_6 LBL_6: %storemerge10.reload = load i64, i64* %storemerge10.reg2mem %42 = udiv i64 %sv_0.08.reload, 2 %43 = udiv i64 %sv_1.0.off09.reload, 2 %44 = add nuw nsw i64 %storemerge10.reload, 1 %45 = load i32, i32* %29, align 4 %46 = sext i32 %45 to i64 %47 = icmp slt i64 %44, %46 %48 = icmp ugt i64 %sv_0.08.reload, 1 %or.cond.not = icmp eq i1 %48, %47 %49 = icmp ult i64 %sv_1.0.off09.reload, 2 %50 = icmp eq i1 %49, false %or.cond5 = icmp eq i1 %50, %or.cond.not store i64 %44, i64* %storemerge10.reg2mem store i64 %43, i64* %sv_1.0.off09.reg2mem store i64 %42, i64* %sv_0.08.reg2mem br i1 %or.cond5, label LBL_5, label LBL_7 LBL_7: ret i64 1 uselistorder i64 %sv_1.0.off09.reload, { 2, 1, 0 } uselistorder i64 %sv_0.08.reload, { 2, 1, 0 } uselistorder i32* %29, { 1, 0 } uselistorder i32 %27, { 1, 0 } uselistorder i32 %20, { 1, 0 } uselistorder i64 %5, { 1, 2, 3, 0 } uselistorder i32 %2, { 1, 0 } uselistorder i64* %storemerge10.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.0.off09.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.08.reg2mem, { 1, 0, 2 } uselistorder i64 1, { 1, 2, 4, 3, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 0, { 2, 3, 0, 1, 4, 5, 6 } uselistorder label LBL_7, { 1, 0, 2, 3, 4 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
get_xref_linear_skipped_9367
get_xref_linear_skipped
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.1.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i32 %0 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %1 = icmp eq i64* %arg2, null %2 = icmp eq i1 %1, false store i64 %0, i64* %rax.1.reg2mem br i1 %2, label LBL_13, label LBL_1 LBL_1: %3 = add i64 %0, 16 %4 = inttoptr i64 %3 to i32* store i32 1, i32* %4, align 4 %5 = call i64 @FUNC(i64 %arg1) %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i64* store i64 %5, i64* %7, align 8 %8 = icmp slt i64 %5, 0 store i64 %5, i64* %rax.1.reg2mem br i1 %8, label LBL_13, label LBL_2 LBL_2: %9 = inttoptr i64 %arg1 to %_IO_FILE* %10 = call i32 @ferror(%_IO_FILE* %9) %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i32 %10, i32* %.lcssa.reg2mem br i1 %12, label LBL_7, label LBL_3 LBL_3: %13 = bitcast i64* %sv_0 to i8* br label LBL_8 LBL_4: %14 = call i32 @strncmp(i8* nonnull %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i32 7) %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_9, label LBL_5 LBL_5: %16 = call i32 @ftell(%_IO_FILE* %9) %17 = icmp slt i32 %16, 9 br i1 %17, label LBL_12, label LBL_6 LBL_6: %18 = call i32 @fseek(%_IO_FILE* %9, i32 -9, i32 1) %19 = call i32 @ferror(%_IO_FILE* %9) %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false store i32 %19, i32* %.lcssa.reg2mem br i1 %21, label LBL_7, label LBL_8 LBL_7: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %rax.01 = sext i32 %.lcssa.reload to i64 store i64 %rax.01, i64* %rax.1.reg2mem br label LBL_13 LBL_8: %22 = call i32 @fread(i64* nonnull %sv_0, i32 1, i32 8, %_IO_FILE* %9) %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_4, label LBL_9 LBL_9: %25 = call i32 @fgetc(%_IO_FILE* %9) %26 = trunc i32 %25 to i8 %27 = icmp eq i8 %26, 120 %28 = icmp eq i1 %27, false br i1 %28, label LBL_10, label LBL_11 LBL_10: %29 = call i32 @fseek(%_IO_FILE* %9, i32 -2, i32 1) %30 = call i32 @fgetc(%_IO_FILE* %9) %31 = trunc i32 %30 to i8 %32 = icmp eq i8 %31, 120 %33 = icmp eq i1 %32, false br i1 %33, label LBL_10, label LBL_11 LBL_11: %34 = call i32 @ftell(%_IO_FILE* %9) %35 = sext i32 %34 to i64 %36 = add nsw i64 %35, -1 store i64 %36, i64* %arg2, align 8 %37 = call i32 @fseek(%_IO_FILE* %9, i32 -1, i32 1) %38 = call i32 @fseek(%_IO_FILE* %9, i32 -1, i32 0) %39 = sext i32 %38 to i64 store i64 %39, i64* %rax.1.reg2mem br label LBL_13 LBL_12: %40 = sext i32 %16 to i64 store i64 %40, i64* %rax.1.reg2mem br label LBL_13 LBL_13: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder %_IO_FILE* %9, { 0, 1, 3, 4, 2, 5, 9, 10, 7, 8, 6 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64* %rax.1.reg2mem, { 0, 1, 3, 2, 4, 5 } uselistorder i8 120, { 1, 0 } uselistorder i32 (%_IO_FILE*)* @fgetc, { 1, 0 } uselistorder i32 (%_IO_FILE*, i32, i32)* @fseek, { 4, 2, 3, 1, 0 } uselistorder i32 (%_IO_FILE*)* @ftell, { 2, 1, 0 } uselistorder i32 0, { 2, 1, 5, 4, 0, 3 } uselistorder i32 (%_IO_FILE*)* @ferror, { 1, 0 } uselistorder label LBL_13, { 0, 4, 1, 2, 3 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 0 } }
0
BinRealVul
xc_dom_parse_zimage64_kernel_12178
xc_dom_parse_zimage64_kernel
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = mul i64 %0, 4096 %2 = add i64 %0, 64 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = inttoptr i64 %4 to i64* %6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64* %5) %7 = add i64 %0, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %11, %1 %13 = add i64 %0, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = add i64 %12, %15 %17 = add i64 %0, 24 %18 = inttoptr i64 %17 to i64* store i64 %12, i64* %18, align 8 %19 = add i64 %0, 32 %20 = inttoptr i64 %19 to i64* store i64 %16, i64* %20, align 8 %21 = add i64 %0, 40 %22 = inttoptr i64 %21 to i64* store i64 %12, i64* %22, align 8 %23 = add i64 %0, 48 %24 = inttoptr i64 %23 to i64* store i64 %1, i64* %24, align 8 %25 = add i64 %0, 56 %26 = inttoptr i64 %25 to i64* store i64 ptrtoint ([16 x i8]* @gv_1 to i64), i64* %26, align 8 %27 = load i64, i64* %20, align 8 %28 = load i64, i64* %18, align 8 %29 = trunc i64 %28 to i32 %30 = trunc i64 %27 to i32 %31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i32 %29, i32 %30) ret i64 0 uselistorder i64 %0, { 1, 2, 3, 4, 5, 6, 7, 8, 0 } }
1
BinRealVul
kvm_vcpu_on_spin_10425
kvm_vcpu_on_spin
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.111.reg2mem = alloca i32 %storemerge12.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = call i64 @FUNC(i64 %2, i64 1) %5 = add i64 %2, 56 %6 = icmp slt i32 %3, 4 %7 = add i64 %2, 64 %8 = inttoptr i64 %7 to i32* %9 = add i64 %2, 68 store i32 0, i32* %storemerge12.reg2mem store i32 3, i32* %sv_0.111.reg2mem br label LBL_10 LBL_1: %10 = icmp ne i32 %storemerge12.reload, 0 %or.cond2 = icmp eq i1 %6, %10 br i1 %or.cond2, label LBL_11, label LBL_2 LBL_2: %11 = load i32, i32* %8, align 4 %12 = icmp eq i32 %11, 0 store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %12, label LBL_9, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %9) %14 = trunc i64 %13 to i8 %15 = icmp eq i8 %14, 0 %16 = icmp eq i1 %15, false store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %16, label LBL_9, label LBL_4 LBL_4: %17 = call i64 @FUNC(i64 %5) %18 = trunc i64 %17 to i8 %19 = icmp eq i8 %18, 1 %20 = icmp eq i1 %19, false store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %20, label LBL_9, label LBL_5 LBL_5: %21 = call i64 @FUNC(i64 %5) %22 = trunc i64 %21 to i32 %23 = icmp slt i32 %22, 1 br i1 %23, label LBL_7, label LBL_6 LBL_6: %24 = bitcast i64* %arg1 to i32* store i32 4, i32* %24, align 4 br label LBL_11 LBL_7: %25 = icmp ne i32 %22, 0 %26 = icmp eq i1 %25, false store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %26, label LBL_9, label LBL_8 LBL_8: %27 = add i32 %sv_0.111.reload, -1 %28 = icmp eq i32 %27, 0 store i32 %22, i32* %sv_1.0.reg2mem store i32 %27, i32* %sv_0.0.reg2mem br i1 %28, label LBL_11, label LBL_9 LBL_9: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %29 = icmp ne i32 %storemerge12.reload, 1 %30 = icmp eq i32 %sv_1.0.reload, 0 %or.cond5.not = icmp eq i1 %29, %30 %31 = icmp eq i32 %sv_0.0.reload, 0 %32 = icmp eq i1 %31, false %or.cond7 = icmp eq i1 %or.cond5.not, %32 store i32 1, i32* %storemerge12.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem br i1 %or.cond7, label LBL_10, label LBL_11 LBL_10: %sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem %storemerge12.reload = load i32, i32* %storemerge12.reg2mem %33 = icmp eq i32 %storemerge12.reload, 0 %34 = icmp eq i1 %33, false %or.cond = or i1 %6, %34 store i32 0, i32* %sv_1.0.reg2mem store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_9 LBL_11: %35 = call i64 @FUNC(i64 %2, i64 0) %36 = call i64 @FUNC(i64 %2, i64 0) ret i64 %36 uselistorder i32 %storemerge12.reload, { 1, 0, 2 } uselistorder i32 %sv_0.111.reload, { 5, 1, 2, 3, 4, 0 } uselistorder i1 %6, { 1, 0 } uselistorder i64 %2, { 4, 3, 0, 1, 2, 5 } uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2, 3, 4, 5, 6 } uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2, 3, 4, 5, 6 } uselistorder i1 false, { 4, 0, 1, 2, 3 } uselistorder i32 0, { 1, 12, 6, 7, 9, 2, 8, 3, 4, 5, 10, 11, 0 } uselistorder i32 4, { 1, 0 } uselistorder i64 (i64, i64)* @kvm_vcpu_set_in_spin_loop, { 1, 0 } uselistorder i64 1, { 2, 0, 1 } uselistorder label LBL_11, { 0, 2, 3, 1 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_9, { 0, 4, 5, 1, 2, 3 } }
0
BinRealVul
gen_neon_mull_15555
gen_neon_mull
define i64 @FUNC(i64 %arg1, i32 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.1.reg2mem = alloca i64 %rax.0.reg2mem = alloca i64 %sext = mul i64 %arg3, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = mul i64 %arg4, 2 %2 = or i64 %1, %arg5 %3 = and i64 %2, 4294967295 store i64 %3, i64* @0, align 8 %trunc = trunc i64 %2 to i32 switch i32 %trunc, label LBL_7 [ i32 0, label LBL_1 i32 1, label LBL_2 i32 2, label LBL_3 i32 3, label LBL_4 i32 4, label LBL_5 i32 5, label LBL_6 ] LBL_1: %4 = trunc i64 %0 to i32 %5 = zext i32 %arg2 to i64 %6 = call i64 @FUNC(i64 %arg1, i64 %5, i32 %4) store i64 %6, i64* %rax.0.reg2mem br label LBL_8 LBL_2: %7 = trunc i64 %0 to i32 %8 = zext i32 %arg2 to i64 %9 = call i64 @FUNC(i64 %arg1, i64 %8, i32 %7) store i64 %9, i64* %rax.0.reg2mem br label LBL_8 LBL_3: %10 = trunc i64 %0 to i32 %11 = zext i32 %arg2 to i64 %12 = call i64 @FUNC(i64 %arg1, i64 %11, i32 %10) store i64 %12, i64* %rax.0.reg2mem br label LBL_8 LBL_4: %13 = trunc i64 %0 to i32 %14 = zext i32 %arg2 to i64 %15 = call i64 @FUNC(i64 %arg1, i64 %14, i32 %13) store i64 %15, i64* %rax.0.reg2mem br label LBL_8 LBL_5: %16 = and i64 %0, 4294967295 %17 = zext i32 %arg2 to i64 %18 = call i64 @FUNC(i64 %17, i64 %16) %19 = call i64 @FUNC(i64 %arg1, i64 %18) store i64 %19, i64* %rax.0.reg2mem br label LBL_8 LBL_6: %20 = and i64 %0, 4294967295 %21 = zext i32 %arg2 to i64 %22 = call i64 @FUNC(i64 %21, i64 %20) %23 = call i64 @FUNC(i64 %arg1, i64 %22) store i64 %23, i64* %rax.0.reg2mem br label LBL_8 LBL_7: call void @abort() unreachable LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem %24 = trunc i64 %arg4 to i32 %25 = icmp sgt i32 %24, 1 store i64 %rax.0.reload, i64* %rax.1.reg2mem br i1 %25, label LBL_10, label LBL_9 LBL_9: %26 = zext i32 %arg2 to i64 %27 = call i64 @FUNC(i64 %26) %28 = and i64 %0, 4294967295 %29 = call i64 @FUNC(i64 %28) store i64 %29, i64* %rax.1.reg2mem br label LBL_10 LBL_10: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64 %0, { 5, 6, 4, 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 } uselistorder i64 (i64)* @tcg_temp_free_i32, { 1, 0 } uselistorder i64 (i64, i64)* @tcg_gen_mov_i64, { 1, 0 } uselistorder i64 4294967295, { 1, 2, 0, 3 } uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg4, { 1, 0 } uselistorder i32 %arg2, { 5, 6, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
_nfs4_do_open_8685
_nfs4_do_open
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64* %arg6, i64* %arg7) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg6 to i64 %1 = ptrtoint i64* %arg5 to i64 %2 = call i64* @malloc(i32 4) %3 = ptrtoint i64* %2 to i64 %4 = call i64 @FUNC(i64 %3, i64 %0, i64 0) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 0, i64 %0, i64 %1, i64 %0) store i64 4294967284, i64* %sv_0.2.reg2mem br label LBL_17 LBL_2: %8 = call i64 @FUNC(i64 %3) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false store i64 %8, i64* %sv_0.1.reg2mem br i1 %11, label LBL_16, label LBL_3 LBL_3: %sext = mul i64 %arg3, 4294967296 %12 = ashr exact i64 %sext, 32 %13 = icmp eq i64* %arg6, null br i1 %13, label LBL_5, label LBL_4 LBL_4: %14 = and i64 %12, 4294967295 %15 = call i64 @FUNC(i64 %0, i64 %14) br label LBL_5 LBL_5: %16 = ptrtoint i64* %arg2 to i64 %17 = trunc i64 %arg4 to i32 %18 = trunc i64 %12 to i32 %19 = call i64 @FUNC(i64 %16, i64 %4, i32 %18, i32 %17, i64 %1, i64 0, i32 -12) %20 = icmp eq i64 %19, 0 store i64 4294967284, i64* %sv_0.1.reg2mem br i1 %20, label LBL_16, label LBL_6 LBL_6: %21 = call i64 @FUNC(i64 %4, i64 %4) %22 = add i64 %19, 8 %23 = inttoptr i64 %22 to i64* store i64 %21, i64* %23, align 8 %24 = call i64 @FUNC(i64 %19) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 %27 = icmp eq i1 %26, false store i64 %24, i64* %sv_0.0.reg2mem br i1 %27, label LBL_15, label LBL_7 LBL_7: %28 = call i64 @FUNC(i64 %19) %29 = icmp eq i64 %28, 0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %29, label LBL_15, label LBL_8 LBL_8: %30 = bitcast i64* %2 to i32* %31 = load i32, i32* %30, align 4 %32 = urem i32 %31, 2 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_10, label LBL_9 LBL_9: %34 = add i64 %28, 8 %35 = call i64 @FUNC(i64 1, i64 %34) br label LBL_10 LBL_10: %36 = inttoptr i64 %19 to i32* %37 = load i32, i32* %36, align 4 %38 = urem i32 %37, 2 %39 = icmp eq i32 %38, 0 br i1 %39, label LBL_14, label LBL_11 LBL_11: %40 = call i64 @FUNC(i64 %19, i64 %1) %41 = add i64 %19, 16 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = zext i32 %43 to i64 %45 = call i64 @FUNC(i64 %44) %46 = load i32, i32* %42, align 4 %47 = inttoptr i64 %28 to i64* %48 = load i64, i64* %47, align 8 %49 = call i64 @FUNC(i64 %48, i64 %0, i32 %46, i64 %1, i64 %28) %50 = trunc i64 %49 to i32 %51 = icmp eq i32 %50, 0 %52 = icmp eq i1 %51, false br i1 %52, label LBL_13, label LBL_12 LBL_12: %53 = load i64, i64* %47, align 8 %54 = call i64 @FUNC(i64 %53, i64 %1) br label LBL_13 LBL_13: %55 = load i32, i32* %42, align 4 %56 = load i64, i64* %47, align 8 %57 = zext i32 %55 to i64 %58 = call i64 @FUNC(i64 %56, i64 %57) br label LBL_14 LBL_14: %59 = call i64 @FUNC(i64 %19) %60 = call i64 @FUNC(i64 %4) store i64 %28, i64* %arg7, align 8 store i64 0, i64* %storemerge.reg2mem br label LBL_18 LBL_15: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %61 = call i64 @FUNC(i64 %19) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_16 LBL_16: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %62 = call i64 @FUNC(i64 %4) store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem br label LBL_17 LBL_17: %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem store i64 0, i64* %arg7, align 8 %63 = and i64 %sv_0.2.reload, 4294967295 store i64 %63, i64* %storemerge.reg2mem br label LBL_18 LBL_18: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %47, { 1, 0, 2 } uselistorder i64 %28, { 3, 2, 1, 0, 4 } uselistorder i64 %19, { 0, 1, 2, 3, 7, 4, 5, 6, 8 } uselistorder i64 %12, { 1, 0 } uselistorder i64 %4, { 4, 1, 0, 2, 3, 5 } uselistorder i64 %1, { 1, 2, 3, 4, 0 } uselistorder i64 %0, { 3, 4, 0, 1, 2, 5 } uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @nfs4_put_state_owner, { 1, 0 } uselistorder i64 (i64)* @nfs4_opendata_put, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0 } uselistorder i64 4294967284, { 1, 0 } uselistorder i64* (i32)* @malloc, { 4, 3, 2, 1, 0 } uselistorder i64* %arg7, { 1, 0 } uselistorder label LBL_16, { 2, 0, 1 } }
0
BinRealVul
xvag_read_header_15777
xvag_read_header
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 4) %2 = call i64 @FUNC(i64 %0, i64 0) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_11 LBL_1: %5 = inttoptr i64 %2 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to i32* store i32 1, i32* %7, align 4 %8 = call i64 @FUNC(i64 %0) %9 = trunc i64 %8 to i32 %10 = and i64 %8, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp ule i32 %9, %12 %14 = icmp ne i1 %13, true %15 = icmp eq i1 %14, false br i1 %15, label LBL_3, label LBL_2 LBL_2: %16 = call i64 @FUNC(i64 %10) %17 = call i64 @FUNC(i64 %10, i64 28) %18 = call i64 @FUNC(i64 %10) %19 = call i64 @FUNC(i64 %10) %20 = trunc i64 %19 to i32 %21 = load i64, i64* %5, align 8 %22 = add i64 %21, 4 %23 = inttoptr i64 %22 to i32* store i32 %20, i32* %23, align 4 %24 = call i64 @FUNC(i64 %10, i64 4) %25 = call i64 @FUNC(i64 %10) %26 = trunc i64 %25 to i32 %27 = add i64 %2, 8 %28 = inttoptr i64 %27 to i32* store i32 %26, i32* %28, align 4 %29 = call i64 @FUNC(i64 %10, i64 8) %30 = call i64 @FUNC(i64 %10) %31 = trunc i64 %30 to i32 %32 = load i64, i64* %5, align 8 %33 = add i64 %32, 8 %34 = inttoptr i64 %33 to i32* store i32 %31, i32* %34, align 4 store i64 %16, i64* %sv_1.0.reg2mem store i64 %18, i64* %sv_0.0.in.reg2mem br label LBL_4 LBL_3: %35 = call i64 @FUNC(i64 %10, i64 28) %36 = call i64 @FUNC(i64 %10) %37 = call i64 @FUNC(i64 %10) %38 = trunc i64 %37 to i32 %39 = load i64, i64* %5, align 8 %40 = add i64 %39, 4 %41 = inttoptr i64 %40 to i32* store i32 %38, i32* %41, align 4 %42 = call i64 @FUNC(i64 %10, i64 4) %43 = call i64 @FUNC(i64 %10) %44 = trunc i64 %43 to i32 %45 = add i64 %2, 8 %46 = inttoptr i64 %45 to i32* store i32 %44, i32* %46, align 4 %47 = call i64 @FUNC(i64 %10, i64 8) %48 = call i64 @FUNC(i64 %10) %49 = trunc i64 %48 to i32 %50 = load i64, i64* %5, align 8 %51 = add i64 %50, 8 %52 = inttoptr i64 %51 to i32* store i32 %49, i32* %52, align 4 store i64 %8, i64* %sv_1.0.reg2mem store i64 %36, i64* %sv_0.0.in.reg2mem br label LBL_4 LBL_4: %53 = load i64, i64* %5, align 8 %54 = add i64 %53, 8 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 %57 = icmp eq i32 %56, 0 %58 = icmp slt i32 %56, 0 %59 = icmp eq i1 %58, false %60 = icmp eq i1 %57, false %61 = icmp eq i1 %59, %60 store i64 4294967295, i64* %rax.0.reg2mem br i1 %61, label LBL_5, label LBL_11 LBL_5: %62 = add i64 %53, 4 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = icmp eq i32 %64, 0 %66 = icmp slt i32 %64, 0 %67 = icmp eq i1 %66, false %68 = icmp eq i1 %65, false %69 = icmp eq i1 %67, %68 store i64 4294967295, i64* %rax.0.reg2mem br i1 %69, label LBL_6, label LBL_11 LBL_6: %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 %70 = icmp eq i32 %sv_0.0, 28 %71 = icmp eq i1 %70, false br i1 %71, label LBL_8, label LBL_7 LBL_7: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %72 = add i64 %53, 12 %73 = inttoptr i64 %72 to i32* store i32 1, i32* %73, align 4 %74 = load i64, i64* %5, align 8 %75 = add i64 %74, 4 %76 = inttoptr i64 %75 to i32* %77 = load i32, i32* %76, align 4 %78 = mul i32 %77, 16 %79 = add i64 %74, 16 %80 = inttoptr i64 %79 to i32* store i32 %78, i32* %80, align 4 %81 = call i64 @FUNC(i64 %10) %82 = sub i64 %sv_1.0.reload, %81 %83 = and i64 %82, 4294967295 %84 = call i64 @FUNC(i64 %10, i64 %83) %85 = call i64 @FUNC(i64 %10) %86 = trunc i64 %85 to i32 %87 = icmp eq i32 %86, 65531 %88 = icmp eq i1 %87, false br i1 %88, label LBL_10, label LBL_9 LBL_8: %89 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 %sv_0.0) store i64 4294967294, i64* %rax.0.reg2mem br label LBL_11 LBL_9: %90 = load i64, i64* %5, align 8 %91 = add i64 %90, 12 %92 = inttoptr i64 %91 to i32* store i32 2, i32* %92, align 4 %93 = load i64, i64* %5, align 8 %94 = add i64 %93, 16 %95 = inttoptr i64 %94 to i32* store i32 4096, i32* %95, align 4 %96 = add i64 %2, 12 %97 = inttoptr i64 %96 to i32* store i32 1, i32* %97, align 4 br label LBL_10 LBL_10: %98 = call i64 @FUNC(i64 %10, i64 4294967294) %99 = load i64, i64* %5, align 8 %100 = add i64 %99, 8 %101 = inttoptr i64 %100 to i32* %102 = load i32, i32* %101, align 4 %103 = zext i32 %102 to i64 %104 = call i64 @FUNC(i64 %2, i64 64, i64 1, i64 %103) 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 i32 %64, { 1, 0 } uselistorder i32 %56, { 1, 0 } uselistorder i64 %10, { 3, 0, 1, 2, 18, 17, 16, 15, 14, 13, 12, 4, 5, 6, 7, 8, 9, 10, 11, 19 } uselistorder i64* %5, { 4, 2, 3, 5, 6, 7, 8, 0, 1, 9 } uselistorder i64 %2, { 2, 1, 3, 0, 4, 5 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 1, 2, 3 } uselistorder i64 4294967294, { 1, 0 } uselistorder i64 8, { 2, 3, 4, 0, 5, 6, 1, 7 } uselistorder i64 (i64)* @avio_rb32, { 3, 2, 1, 0 } uselistorder i64 (i64)* @av_bswap32, { 1, 0 } uselistorder i64 (i64)* @avio_rl32, { 4, 3, 2, 1, 0 } uselistorder i1 false, { 3, 4, 5, 1, 6, 2, 0, 7 } uselistorder i64 (i64, i64)* @avio_skip, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 4, { 3, 4, 0, 5, 1, 6, 2 } uselistorder label LBL_11, { 3, 4, 0, 1, 2 } }
1
BinRealVul
skcipher_next_slow_9110
skcipher_next_slow
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.in.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32*, align 8 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = urem i64 %1, 2 %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 br i1 %6, label LBL_5, label LBL_1 LBL_1: %10 = add i64 %2, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 %14 = icmp eq i1 %13, false store i64 %12, i64* %.reg2mem br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = add i64 %2, 16 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 store i64 %17, i64* %11, align 8 store i64 %17, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %18 = icmp eq i64 %.reload, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_3.LBL_10_crit_edge, label LBL_5 LBL_4: %.pre = trunc i64 %3 to i32 store i32 %.pre, i32* %.pre-phi.reg2mem store i64 %.reload, i64* %.in.reg2mem br label LBL_10 LBL_5: %20 = call i64 @FUNC() %21 = trunc i64 %20 to i32 %22 = add i32 %21, -1 %23 = icmp eq i1 %6, false %24 = urem i32 %22, 16 %sext6 = add i64 %sext, 68719476736 %sv_1.0 = select i1 %23, i32 %22, i32 %24 %sv_2.0.in = select i1 %23, i64 %sext, i64 %sext6 %25 = udiv i64 %sv_2.0.in, 4294967296 %26 = sub i32 0, %sv_1.0 %27 = sub i32 %26, 1 %28 = and i32 %9, %27 %29 = trunc i64 %25 to i32 %30 = add i32 %28, %29 %31 = trunc i64 %3 to i32 %32 = add i32 %31, -1 %33 = or i32 %sv_1.0, %9 %34 = sub i32 0, %33 %35 = sub i32 %34, 1 %36 = and i32 %32, %35 %37 = add i32 %30, %36 %38 = call i64 @FUNC(i64 %2) %39 = zext i32 %37 to i64 %40 = and i64 %38, 4294967295 %41 = call i64 @FUNC(i64 %39, i64 %40) %42 = inttoptr i64 %41 to i32* store i32* %42, i32** %sv_0, align 8 %43 = icmp eq i64 %41, 0 %44 = icmp eq i1 %43, false br i1 %44, label LBL_7, label LBL_6 LBL_6: %45 = call i64 @FUNC(i64 %2, i64 4294967284) store i64 %45, i64* %storemerge.reg2mem br label LBL_11 LBL_7: br i1 %23, label LBL_9, label LBL_8 LBL_8: store i32 %31, i32* %42, align 4 %46 = call i64 @FUNC(i64 %2, i64 %41) %47 = add i64 %41, 8 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 store i32 %31, i32* %.pre-phi.reg2mem store i64 %49, i64* %.in.reg2mem br label LBL_10 LBL_9: %50 = add i64 %2, 8 %51 = inttoptr i64 %50 to i64* store i64 %41, i64* %51, align 8 %52 = load i32*, i32** %sv_0, align 8 %53 = ptrtoint i32* %52 to i64 store i32 %31, i32* %.pre-phi.reg2mem store i64 %53, i64* %.in.reg2mem br label LBL_10 LBL_10: %54 = bitcast i64* %rdi to i32* %.in.reload = load i64, i64* %.in.reg2mem %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %55 = add i32 %9, 1 %56 = zext i32 %55 to i64 %57 = call i64 @FUNC(i64 %.in.reload, i64 %56) %58 = add i64 %2, 24 %59 = inttoptr i64 %58 to i64* store i64 %57, i64* %59, align 8 %60 = and i64 %3, 4294967295 %61 = call i64 @FUNC(i64 %57, i64 %60) store i64 %61, i64* %59, align 8 %62 = add i64 %2, 32 %63 = inttoptr i64 %62 to i64* store i64 %61, i64* %63, align 8 %64 = add i64 %2, 48 %65 = call i64 @FUNC(i64 %61, i64 %64, i32 %.pre-phi.reload, i64 0) %66 = add i64 %2, 40 %67 = inttoptr i64 %66 to i32* store i32 %.pre-phi.reload, i32* %67, align 4 %68 = load i32, i32* %54, align 8 %69 = or i32 %68, 2 %70 = bitcast i64* %arg1 to i32* store i32 %69, i32* %70, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %41, { 2, 0, 1, 4, 3 } uselistorder i32 %31, { 1, 0, 2, 3 } uselistorder i32 %sv_1.0, { 1, 0 } uselistorder i32 %22, { 1, 0 } uselistorder i32 %9, { 2, 1, 0 } uselistorder i64 %3, { 1, 2, 0 } uselistorder i64 %sext, { 2, 1, 0 } uselistorder i64 %2, { 4, 5, 6, 7, 8, 3, 2, 9, 1, 0, 10 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %.in.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4, { 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64 4294967296, { 1, 0 } uselistorder label LBL_10, { 1, 2, 0 } }
0