dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
arcmsr_stop_adapter_bgrb_10508
arcmsr_stop_adapter_bgrb
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 4 br i1 %3, label LBL_6, label LBL_1 LBL_1: %4 = and i64 %1, 4294967295 %5 = icmp sgt i32 %2, 4 store i64 %4, i64* %rax.0.reg2mem br i1 %5, label LBL_7, label LBL_2 LBL_2: store i64 %4, i64* %rax.0.reg2mem switch i32 %2, label LBL_7 [ i32 3, label LBL_5 i32 1, label LBL_3 i32 2, label LBL_4 ] LBL_3: %6 = ptrtoint i32* %arg1 to i64 %7 = call i64 @FUNC(i64 %6) store i64 %7, i64* %rax.0.reg2mem br label LBL_7 LBL_4: %8 = ptrtoint i32* %arg1 to i64 %9 = call i64 @FUNC(i64 %8) store i64 %9, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %10 = ptrtoint i32* %arg1 to i64 %11 = call i64 @FUNC(i64 %10) store i64 %11, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %12 = ptrtoint i32* %arg1 to i64 %13 = call i64 @FUNC(i64 %12) store i64 %13, 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 %2, { 2, 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 2, 3, 1, 5 } uselistorder i32* %arg1, { 3, 2, 0, 1 } uselistorder label LBL_7, { 1, 2, 3, 4, 0, 5 } }
0
BinRealVul
av_packet_split_side_data_16807
av_packet_split_side_data
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %rdi.0.reg2mem = alloca i64 %sv_0.1.in.reg2mem = alloca i64 %sv_0.0.in8.reg2mem = alloca i64 %storemerge9.reg2mem = alloca i32 %.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 12 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_16, label LBL_1 LBL_1: %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp slt i32 %8, 13 store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_16, label LBL_2 LBL_2: %10 = sext i32 %8 to i64 %11 = add i64 %10, %0 %12 = add i64 %11, -8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp eq i64 %14, 305419896 %16 = icmp eq i1 %15, false store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_16, label LBL_3 LBL_3: %17 = add i64 %11, -13 %sv_0.07 = inttoptr i64 %17 to i32* %18 = load i32, i32* %sv_0.07, align 4 %19 = icmp slt i32 %18, 0 store i32 %18, i32* %.reg2mem store i32 1, i32* %storemerge9.reg2mem store i64 %17, i64* %sv_0.0.in8.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_16, label LBL_4 LBL_4: %sv_0.0.in8.reload = load i64, i64* %sv_0.0.in8.reg2mem %.reload = load i32, i32* %.reg2mem %20 = sub i64 %sv_0.0.in8.reload, %0 %21 = zext i32 %.reload to i64 %22 = icmp slt i64 %20, %21 store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_16, label LBL_5 LBL_5: %storemerge9.reload = load i32, i32* %storemerge9.reg2mem %23 = add i64 %sv_0.0.in8.reload, 4 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = icmp slt i8 %25, 0 br i1 %26, label LBL_7, label LBL_6 LBL_6: %27 = add i32 %.reload, 5 %28 = zext i32 %27 to i64 %29 = sub i64 %sv_0.0.in8.reload, %28 %30 = add i32 %storemerge9.reload, 1 %sv_0.0 = inttoptr i64 %29 to i32* %31 = load i32, i32* %sv_0.0, align 4 %32 = icmp slt i32 %31, 0 store i32 %31, i32* %.reg2mem store i32 %30, i32* %storemerge9.reg2mem store i64 %29, i64* %sv_0.0.in8.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %32, label LBL_16, label LBL_4 LBL_7: %33 = sext i32 %storemerge9.reload to i64 %34 = call i64 @FUNC(i64 %33, i64 16) %35 = add i64 %0, 16 %36 = inttoptr i64 %35 to i64* store i64 %34, i64* %36, align 8 %37 = icmp eq i64 %34, 0 %38 = icmp eq i1 %37, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %38, label LBL_8, label LBL_16 LBL_8: %39 = load i32, i32* %7, align 4 %40 = sext i32 %39 to i64 %41 = add nsw i64 %33, -13 %42 = add nsw i64 %41, %40 store i64 %42, i64* %sv_0.1.in.reg2mem store i64 %33, i64* %rdi.0.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_9 LBL_9: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %sv_0.1.in.reload = load i64, i64* %sv_0.1.in.reg2mem %sv_0.1 = inttoptr i64 %sv_0.1.in.reload to i32* %43 = load i32, i32* %sv_0.1, align 4 %44 = icmp slt i32 %43, 0 br i1 %44, label LBL_11, label LBL_10 LBL_10: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %45 = sub i64 %sv_0.1.in.reload, %rdi.0.reload %46 = zext i32 %43 to i64 %47 = icmp slt i64 %45, %46 store i64 1, i64* %storemerge3.reg2mem br i1 %47, label LBL_11, label LBL_12 LBL_11: store i64 0, i64* %storemerge3.reg2mem br label LBL_12 LBL_12: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %48 = call i64 @FUNC(i64 %storemerge3.reload) %49 = add i32 %43, 32 %50 = zext i32 %49 to i64 %51 = load i64, i64* %36, align 8 %52 = sext i32 %storemerge2.reload to i64 %53 = mul i64 %52, 16 %54 = add i64 %51, %53 %55 = call i64 @FUNC(i64 %50) %56 = inttoptr i64 %54 to i64* store i64 %55, i64* %56, align 8 %57 = load i64, i64* %36, align 8 %58 = or i64 %53, 8 %59 = add i64 %57, %58 %60 = inttoptr i64 %59 to i32* store i32 %43, i32* %60, align 4 %61 = add i64 %sv_0.1.in.reload, 4 %62 = inttoptr i64 %61 to i8* %63 = load i8, i8* %62, align 1 %64 = load i64, i64* %36, align 8 %65 = urem i8 %63, -128 %66 = zext i8 %65 to i32 %67 = or i64 %53, 12 %68 = add i64 %64, %67 %69 = inttoptr i64 %68 to i32* store i32 %66, i32* %69, align 4 %70 = load i64, i64* %36, align 8 %71 = add i64 %70, %53 %72 = inttoptr i64 %71 to i64* %73 = load i64, i64* %72, align 8 %74 = icmp eq i64 %73, 0 %75 = icmp eq i1 %74, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %75, label LBL_13, label LBL_16 LBL_13: %76 = zext i32 %43 to i64 %77 = sub i64 %sv_0.1.in.reload, %76 %78 = inttoptr i64 %73 to i64* %79 = inttoptr i64 %77 to i64* %80 = call i64* @memcpy(i64* %78, i64* %79, i32 %43) %81 = load i32, i32* %7, align 4 %82 = sub i32 %81, %43 %83 = add i32 %82, -5 store i32 %83, i32* %7, align 4 %84 = load i8, i8* %62, align 1 %85 = icmp slt i8 %84, 0 br i1 %85, label LBL_15, label LBL_14 LBL_14: %86 = add i32 %43, 5 %87 = zext i32 %86 to i64 %88 = sub i64 %sv_0.1.in.reload, %87 %89 = add i32 %storemerge2.reload, 1 store i64 %88, i64* %sv_0.1.in.reg2mem store i64 %73, i64* %rdi.0.reg2mem store i32 %89, i32* %storemerge2.reg2mem br label LBL_9 LBL_15: %90 = add i32 %82, -13 store i32 %90, i32* %7, align 4 %91 = add i32 %storemerge2.reload, 1 store i32 %91, i32* %2, align 4 store i64 1, 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 %53, { 3, 1, 0, 2 } uselistorder i32 %43, { 0, 1, 3, 2, 4, 5, 6, 7 } uselistorder i64 %sv_0.1.in.reload, { 4, 3, 2, 1, 0 } uselistorder i32 %storemerge2.reload, { 2, 1, 0 } uselistorder i32 %storemerge9.reload, { 1, 0 } uselistorder i32* %7, { 0, 2, 1, 3, 4 } uselistorder i64 %0, { 1, 2, 0, 3, 4 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge9.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.in8.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.1.in.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.0.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 9, 3, 8, 2, 1, 4, 7, 6, 5 } uselistorder i64 16, { 0, 2, 1 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64 -13, { 1, 0 } uselistorder i32 0, { 3, 0, 4, 1, 5, 6, 2 } uselistorder label LBL_16, { 8, 2, 7, 1, 0, 3, 6, 5, 4 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
gvconfig_plugin_install_from_config_13142
gvconfig_plugin_install_from_config
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.reg2mem16 = alloca i32 %storemerge1.reg2mem = alloca i32 %.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 store i64 %arg2, i64* %sv_1, align 8 store i32 0, i32* %sv_0, align 4 %3 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) %4 = trunc i64 %1 to i8 %5 = icmp eq i8 %4, 0 %6 = icmp eq i1 %5, false store i64 1, i64* %storemerge.reg2mem br i1 %6, label LBL_1, label LBL_12 LBL_1: %7 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) %8 = load i32, i32* %sv_0, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge2.reg2mem br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) store i64 %11, i64* %storemerge2.reg2mem br label LBL_3 LBL_3: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %12 = call i64 @FUNC(i64 %2, i64 %7, i64 %storemerge2.reload) br label LBL_4 LBL_4: %13 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) %14 = call i64 @FUNC(i64 %13) %15 = trunc i64 %14 to i32 %.pre = load i32, i32* %sv_0, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_5 LBL_5: %.reload = load i32, i32* %.reg2mem %16 = icmp eq i32 %.reload, 2 %17 = icmp eq i1 %16, false store i32 %.reload, i32* %.reg2mem16 br i1 %17, label LBL_11, label LBL_6 LBL_6: %18 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) %19 = load i32, i32* %sv_0, align 4 %20 = icmp eq i32 %19, 2 %21 = icmp eq i1 %20, false store i32 0, i32* %storemerge1.reg2mem br i1 %21, label LBL_8, label LBL_7 LBL_7: %22 = call i64 @FUNC(i32* nonnull %sv_0, i64* nonnull %sv_1) %23 = inttoptr i64 %22 to i8* %24 = call i32 @atoi(i8* %23) store i32 %24, i32* %storemerge1.reg2mem br label LBL_8 LBL_8: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %25 = call i64 @FUNC(i64 %2, i32 %15, i64 %18, i32 %storemerge1.reload, i64 %12, i64 0) %26 = trunc i64 %25 to i8 %27 = icmp eq i8 %26, 1 br i1 %27, label LBL_10, label LBL_9 LBL_9: %28 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %13, i64 %18, i64 0) store i64 0, i64* %storemerge.reg2mem br label LBL_12 LBL_10: %.pr = load i32, i32* %sv_0, align 4 store i32 %.pr, i32* %.reg2mem16 br label LBL_11 LBL_11: %.reload17 = load i32, i32* %.reg2mem16 store i32 2, i32* %.reg2mem switch i32 %.reload17, label LBL_1 [ i32 2, label LBL_5 i32 1, label LBL_4 ] LBL_12: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %sv_0, { 1, 2, 8, 3, 0, 4, 5, 9, 6, 7, 10 } uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem16, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 2, { 1, 0, 2, 3 } uselistorder i64 (i32*, i64*)* @token, { 4, 3, 2, 1, 0 } uselistorder i64 1, { 2, 0, 1 } uselistorder i1 false, { 1, 2, 3, 0 } uselistorder i32 0, { 0, 2, 1 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
floppy_revalidate_13280
floppy_revalidate
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %storemerge26.reg2mem = alloca i1 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = load i64, i64* @gv_0, align 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = urem i32 %3, 2 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_4, label LBL_1 LBL_1: %7 = and i32 %3, 2 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_4, label LBL_2 LBL_2: %10 = load i32, i32* inttoptr (i64 4210804 to i32*), align 4 %11 = trunc i64 %0 to i32 %12 = urem i32 %11, 32 %13 = shl i32 1, %12 %14 = and i32 %10, %13 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_4, label LBL_3 LBL_3: %17 = and i64 %0, 4294967295 %18 = call i64 @FUNC(i64 %17) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %20, label LBL_21, label LBL_4 LBL_4: %21 = load i32, i32* @gv_1, align 4 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_6, label LBL_5 LBL_5: %24 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %25 = call i32 @fwrite(i64* bitcast ([44 x i8]* @gv_3 to i64*), i32 1, i32 43, %_IO_FILE* %24) store i64 4294967282, i64* %rax.0.reg2mem br label LBL_22 LBL_6: %26 = and i64 %0, 4294967295 %27 = call i64 @FUNC(i64 %26, i64 0) %28 = load i64, i64* @gv_0, align 8 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = urem i32 %30, 2 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i64 %28, i64* %.reg2mem store i1 false, i1* %storemerge26.reg2mem br i1 %33, label LBL_12, label LBL_7 LBL_7: %34 = and i32 %30, 2 %35 = icmp ne i32 %34, 0 %phitmp4 = icmp eq i1 %35, false %36 = icmp eq i1 %phitmp4, false store i64 %28, i64* %.reg2mem store i1 false, i1* %storemerge26.reg2mem br i1 %36, label LBL_12, label LBL_8 LBL_8: %37 = load i32, i32* @gv_4, align 4 %38 = trunc i64 %0 to i32 %39 = urem i32 %38, 32 %40 = shl i32 1, %39 %41 = and i32 %37, %40 %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false store i64 %28, i64* %.reg2mem store i1 true, i1* %storemerge26.reg2mem br i1 %43, label LBL_12, label LBL_9 LBL_9: %44 = call i64 @FUNC(i64 %26) %45 = trunc i64 %44 to i32 %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false br i1 %47, label LBL_9.LBL_12_crit_edge, label LBL_11 LBL_10: %.pre = load i64, i64* @gv_0, align 8 store i64 %.pre, i64* %.reg2mem store i1 true, i1* %storemerge26.reg2mem br label LBL_12 LBL_11: %48 = call i64 @FUNC() store i64 0, i64* %rax.0.reg2mem br label LBL_22 LBL_12: %storemerge26.reload = load i1, i1* %storemerge26.reg2mem %.reload = load i64, i64* %.reg2mem %49 = add i64 %.reload, 4 %50 = inttoptr i64 %49 to i32* store i32 0, i32* %50, align 4 %51 = load i64, i64* @gv_0, align 8 %52 = add i64 %51, 8 %53 = inttoptr i64 %52 to i32* store i32 0, i32* %53, align 4 %54 = load i32, i32* @gv_5, align 4 %55 = trunc i64 %0 to i32 %56 = icmp eq i32 %54, %55 %57 = icmp eq i1 %56, false br i1 %57, label LBL_14, label LBL_13 LBL_13: store i32 -1, i32* bitcast (i64* @gv_6 to i32*), align 8 br label LBL_14 LBL_14: %58 = urem i32 %55, 32 %59 = shl i32 -1, %58 %60 = add i32 %59, -1 %61 = load i32, i32* @gv_4, align 4 %62 = and i32 %61, %60 store i32 %62, i32* @gv_4, align 4 %63 = load i64, i64* @gv_0, align 8 %64 = inttoptr i64 %63 to i32* %65 = load i32, i32* %64, align 4 %66 = and i32 %65, -2 store i32 %66, i32* %64, align 4 br i1 %storemerge26.reload, label LBL_16, label LBL_15 LBL_15: %67 = load i64, i64* @gv_0, align 8 %68 = add i64 %67, 12 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = add i32 %70, 1 store i32 %71, i32* %69, align 4 br label LBL_16 LBL_16: %72 = call i64 @FUNC(i64 %26) %73 = trunc i64 %72 to i32 %74 = icmp eq i32 %73, 0 br i1 %74, label LBL_18, label LBL_17 LBL_17: %75 = load i64, i64* @gv_7, align 8 %sext = mul i64 %0, 4294967296 %76 = ashr exact i64 %sext, 30 %77 = add i64 %75, %76 %78 = inttoptr i64 %77 to i32* %79 = load i32, i32* %78, align 4 %80 = zext i32 %79 to i64 %81 = call i64 @FUNC(i64 %80, i64 %26) %phitmp = and i64 %81, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_21 LBL_18: br i1 %storemerge26.reload, label LBL_20, label LBL_19 LBL_19: %82 = call i64 @FUNC(i64 0, i64 1) br label LBL_20 LBL_20: %83 = call i64 @FUNC() store i64 0, i64* %sv_0.0.reg2mem br label LBL_21 LBL_21: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %84 = load i64, i64* @gv_8, align 8 %85 = load i64, i64* @gv_0, align 8 %86 = add i64 %85, 16 %87 = inttoptr i64 %86 to i32* %88 = load i32, i32* %87, align 4 %89 = sext i32 %88 to i64 %90 = mul i64 %89, 4 %91 = add i64 %90, %84 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = add i64 %0, 8 %95 = inttoptr i64 %94 to i32* store i32 %93, i32* %95, align 4 store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_22 LBL_22: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i1 %storemerge26.reload, { 1, 0 } uselistorder i32 %30, { 1, 0 } uselistorder i64 %28, { 2, 1, 0, 3 } uselistorder i64 %26, { 1, 2, 0, 3 } uselistorder i32 %3, { 1, 0 } uselistorder i64 %0, { 6, 0, 4, 3, 5, 1, 2 } uselistorder i64* %.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i1* %storemerge26.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 ()* @process_fd_request, { 1, 0 } uselistorder i1 true, { 1, 0 } uselistorder i32* @gv_4, { 2, 1, 0 } uselistorder i64 (i64)* @drive_no_geom, { 2, 1, 0 } uselistorder i1 false, { 3, 4, 5, 1, 6, 2, 0, 7, 8, 9, 10, 11 } uselistorder i32 0, { 5, 6, 7, 8, 0, 9, 10, 11, 12, 1, 13, 14, 2, 3, 4 } uselistorder i32 2, { 2, 0, 3, 1 } uselistorder label LBL_12, { 0, 2, 3, 1 } }
1
BinRealVul
alloc_18150
alloc
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = add i32 %0, 16 %2 = call i64* @malloc(i32 %1) %3 = icmp eq i64* %2, null %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_2: %6 = ptrtoint i64* %arg2 to i64 %7 = ptrtoint i64* %2 to i64 store i64 %6, i64* %2, align 8 %8 = add i64 %7, 8 %9 = inttoptr i64 %8 to i64* store i64 0, i64* %9, align 8 %10 = icmp eq i64* %arg2, null br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = add i64 %6, 8 %12 = inttoptr i64 %11 to i64* store i64 %7, i64* %12, align 8 br label LBL_4 LBL_4: store i64 %7, i64* %arg2, align 8 %13 = call i64 @FUNC(i64 %7) ret i64 %13 uselistorder i64 %7, { 1, 2, 0, 3 } uselistorder i64* %2, { 0, 2, 1 } }
1
BinRealVul
mcf_fec_receive_14843
mcf_fec_receive
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %storemerge.reg2mem = alloca i64 %sv_0.08.reg2mem = alloca i32 %sv_0.0.be.reg2mem = alloca i32 %sv_1.03.reg2mem = alloca i64 %rcx.05.reg2mem = alloca i64 %storemerge15.reg2mem = alloca i32 %sv_1.04.reg2mem = alloca i64 %rcx.06.reg2mem = alloca i64 %sv_1.19.reg2mem = alloca i64 %sv_0.010.reg2mem = alloca i32 %rcx.111.reg2mem = alloca i64 %sv_2.112.reg2mem = alloca i64 %sv_3.013.reg2mem = alloca i64 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %6 = load i32, i32* %1 %sv_4 = alloca i32, align 4 %sv_5 = alloca i32, align 4 %7 = call i64 @FUNC(i64 %5) %8 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %arg3, i64 %4, i64 %3, i64 %2) %9 = inttoptr i64 %7 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 -1, i64* %storemerge.reg2mem br i1 %12, label LBL_1, label LBL_15 LBL_1: %13 = ptrtoint i64* %arg2 to i64 %14 = add i64 %arg3, 4 %15 = call i64 @FUNC(i64 4294967295, i64 %13, i64 %14) %16 = and i64 %15, 4294967295 %17 = call i64 @FUNC(i64 %16) %18 = trunc i64 %17 to i32 store i32 %18, i32* %sv_5, align 4 %19 = icmp ult i64 %14, 1519 %spec.select2 = select i1 %19, i64 %14, i64 1518 %20 = add i64 %7, 12 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i64 %spec.select2, 0 %24 = icmp eq i1 %23, false store i32 %22, i32* %sv_0.08.reg2mem br i1 %24, label LBL_2, label LBL_14 LBL_2: %spec.select = select i1 %19, i32 0, i32 3 %25 = add i64 %7, 4 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = udiv i32 %27, 65536 %29 = zext i32 %28 to i64 %30 = icmp ugt i64 %spec.select2, %29 %31 = or i32 %spec.select, 2 %sv_6.1 = select i1 %30, i32 %31, i32 %spec.select %32 = ptrtoint i32* %sv_5 to i64 %33 = bitcast i32* %sv_4 to i64* %34 = add i64 %7, 8 %35 = inttoptr i64 %34 to i32* %36 = zext i32 %6 to i64 %37 = add i64 %7, 16 %38 = inttoptr i64 %37 to i32* %39 = add i64 %7, 20 %40 = inttoptr i64 %39 to i32* store i64 %13, i64* %sv_3.013.reg2mem store i64 %spec.select2, i64* %sv_2.112.reg2mem store i32 %22, i32* %sv_0.010.reg2mem store i64 %32, i64* %sv_1.19.reg2mem br label LBL_3 LBL_3: %sv_0.010.reload = load i32, i32* %sv_0.010.reg2mem %41 = zext i32 %sv_0.010.reload to i64 %42 = call i64 @FUNC(i64* nonnull %33, i64 %41) %43 = load i32, i32* %sv_4, align 4 %44 = and i32 %43, 4 %45 = icmp eq i32 %44, 0 %46 = icmp eq i1 %45, false br i1 %46, label LBL_5, label LBL_4 LBL_4: %47 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %48 = call i32 @fwrite(i64* bitcast ([28 x i8]* @gv_2 to i64*), i32 1, i32 27, %_IO_FILE* %47) store i32 %sv_0.010.reload, i32* %sv_0.08.reg2mem br label LBL_14 LBL_5: %sv_1.19.reload = load i64, i64* %sv_1.19.reg2mem %rcx.111.reload = load i64, i64* %rcx.111.reg2mem %sv_2.112.reload = load i64, i64* %sv_2.112.reg2mem %sv_3.013.reload = load i64, i64* %sv_3.013.reg2mem %49 = load i32, i32* %35, align 4 %50 = zext i32 %49 to i64 %51 = icmp ult i64 %sv_2.112.reload, %50 %52 = select i1 %51, i64 %sv_2.112.reload, i64 %50 %53 = trunc i64 %52 to i32 %54 = sub i64 %sv_2.112.reload, %52 %55 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %41, i64 %52, i64 %rcx.111.reload, i64 %3, i64 %2) %56 = icmp ult i64 %54, 4 %57 = trunc i64 %54 to i32 %58 = add i32 %53, -4 %59 = add i32 %58, %57 %sv_7.0 = select i1 %56, i32 %59, i32 %53 %60 = call i64 @FUNC(i64 %36, i64 %sv_3.013.reload, i32 %sv_7.0) br i1 %56, label LBL_7, label LBL_6 LBL_6: %61 = load i32, i32* %sv_4, align 4 %62 = and i32 %61, -5 store i32 %62, i32* %sv_4, align 4 store i64 %sv_3.013.reload, i64* %rcx.06.reg2mem store i64 %sv_1.19.reload, i64* %sv_1.04.reg2mem br label LBL_9 LBL_7: %63 = sub i64 4, %54 %64 = add i32 %sv_7.0, %6 %65 = zext i32 %64 to i64 %66 = trunc i64 %63 to i32 %67 = call i64 @FUNC(i64 %65, i64 %sv_1.19.reload, i32 %66) %68 = add i64 %63, %sv_1.19.reload %69 = load i32, i32* %sv_4, align 4 %70 = and i32 %69, -5 store i32 %70, i32* %sv_4, align 4 %71 = icmp eq i64 %54, 0 %72 = icmp eq i1 %71, false store i64 %65, i64* %rcx.06.reg2mem store i64 %68, i64* %sv_1.04.reg2mem br i1 %72, label LBL_9, label LBL_8 LBL_8: %73 = and i64 %63, 4294967295 %74 = or i32 %sv_6.1, %70 %75 = or i32 %74, 8 store i32 %75, i32* %sv_4, align 4 %76 = zext i32 %75 to i64 %77 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i64 %76, i64 %73, i64 %65, i64 %3, i64 %2) %78 = load i32, i32* %38, align 4 %79 = or i32 %78, 16 store i32 %79, i32* %storemerge15.reg2mem store i64 %65, i64* %rcx.05.reg2mem store i64 %68, i64* %sv_1.03.reg2mem br label LBL_10 LBL_9: %sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem %rcx.06.reload = load i64, i64* %rcx.06.reg2mem %80 = load i32, i32* %38, align 4 %81 = or i32 %80, 32 store i32 %81, i32* %storemerge15.reg2mem store i64 %rcx.06.reload, i64* %rcx.05.reg2mem store i64 %sv_1.04.reload, i64* %sv_1.03.reg2mem br label LBL_10 LBL_10: %sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem %rcx.05.reload = load i64, i64* %rcx.05.reg2mem %storemerge15.reload = load i32, i32* %storemerge15.reg2mem store i32 %storemerge15.reload, i32* %38, align 4 %82 = call i64 @FUNC(i64* nonnull %33, i64 %41) %83 = load i32, i32* %sv_4, align 4 %84 = trunc i32 %83 to i8 %85 = icmp sgt i8 %84, -1 br i1 %85, label LBL_13, label LBL_11 LBL_11: %86 = load i32, i32* %40, align 4 store i32 %86, i32* %sv_0.0.be.reg2mem br label LBL_12 LBL_12: %87 = zext i32 %sv_7.0 to i64 %88 = add i64 %sv_3.013.reload, %87 %sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem %89 = icmp eq i64 %54, 0 %90 = icmp eq i1 %89, false store i64 %88, i64* %sv_3.013.reg2mem store i64 %54, i64* %sv_2.112.reg2mem store i64 %rcx.05.reload, i64* %rcx.111.reg2mem store i32 %sv_0.0.be.reload, i32* %sv_0.010.reg2mem store i64 %sv_1.03.reload, i64* %sv_1.19.reg2mem store i32 %sv_0.0.be.reload, i32* %sv_0.08.reg2mem br i1 %90, label LBL_3, label LBL_14 LBL_13: %91 = add i32 %sv_0.010.reload, 8 store i32 %91, i32* %sv_0.0.be.reg2mem br label LBL_12 LBL_14: %sv_0.08.reload = load i32, i32* %sv_0.08.reg2mem store i32 %sv_0.08.reload, i32* %21, align 4 %92 = call i64 @FUNC(i64 %7) %93 = call i64 @FUNC(i64 %7) store i64 %spec.select2, i64* %storemerge.reg2mem br label LBL_15 LBL_15: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %65, { 0, 2, 1, 3 } uselistorder i64 %63, { 2, 0, 1 } uselistorder i32 %sv_7.0, { 2, 0, 1 } uselistorder i64 %sv_3.013.reload, { 2, 0, 1 } uselistorder i64 %sv_2.112.reload, { 2, 1, 0 } uselistorder i64 %sv_1.19.reload, { 2, 1, 0 } uselistorder i32 %sv_0.010.reload, { 1, 0, 2 } uselistorder i32 %22, { 1, 0 } uselistorder i64 %spec.select2, { 0, 1, 3, 2 } uselistorder i1 %19, { 1, 0 } uselistorder i64 %7, { 1, 0, 3, 2, 4, 6, 5, 7 } uselistorder i32* %sv_4, { 6, 5, 4, 3, 0, 1, 2, 7 } uselistorder i32 %6, { 1, 0 } uselistorder i64 %3, { 2, 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64* %sv_3.013.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.112.reg2mem, { 1, 0, 2 } uselistorder i64* %rcx.111.reg2mem, { 1, 0 } uselistorder i32* %sv_0.010.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.19.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge15.reg2mem, { 0, 2, 1 } uselistorder i64* %rcx.05.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.03.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.be.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.08.reg2mem, { 0, 1, 3, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 8, { 2, 0, 1 } uselistorder i32 -5, { 1, 0 } uselistorder i64 (i64, i64, i32)* @cpu_physical_memory_write, { 1, 0 } uselistorder %_IO_FILE** @gv_1, { 1, 0 } uselistorder i64 4294967295, { 0, 1, 3, 2 } uselistorder i1 false, { 3, 1, 2, 0, 4 } uselistorder i32 0, { 1, 0, 2 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 2, 1, 0 } uselistorder i64 %arg3, { 0, 2, 1 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_14, { 0, 2, 1 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
mtk3301_rate_switcher_10681
mtk3301_rate_switcher
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i128 %sv_0.0.reg2mem = alloca i32 %1 = load i128, i128* %0 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %2 = call i64 @FUNC(i128 %1) %3 = call i128 @__asm_movsd.1(i64 %2) %4 = call i128 @__asm_movsd.1(i64 4652007308841189376) %5 = call i128 @FUNC(i128 %4, i128 %3) %6 = call i64 @FUNC(i128 %5) %7 = call i128 @__asm_movsd.1(i64 %2) %8 = call i128 @__asm_movsd.1(i64 4607182418800017408) call void @FUNC(i128 %7, i128 %8) %9 = icmp ugt i64* %sv_2, inttoptr (i64 112 to i64*) store i32 1000, i32* %sv_0.0.reg2mem br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = trunc i64 %6 to i32 %11 = call i128 @__asm_movsd.1(i64 4596373779694328218) %12 = sext i64 %2 to i128 call void @FUNC(i128 %11, i128 %12) store i32 %10, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %13 = ptrtoint i64* %arg1 to i64 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %14 = bitcast i64* %sv_1 to i8* %15 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %14, i32 78, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i32 %sv_0.0.reload) %16 = call i64 @FUNC(i64 %13, i64* nonnull %sv_1) ret i64 1 uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
force_sigsegv_670
force_sigsegv
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sv_0 = alloca i32, align 4 %0 = trunc i64 %arg1 to i32 %1 = load i64, i64* @gv_0, align 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i32 %0, 11 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %sext = mul i64 %arg1, 4294967296 %sext2 = add i64 %sext, -4294967296 %6 = ashr exact i64 %sext2, 29 %7 = add i64 %6, ptrtoint (i64* @gv_1 to i64) %8 = inttoptr i64 %7 to i64* store i64 0, i64* %8, align 8 br label LBL_2 LBL_2: store i32 11, i32* %sv_0, align 4 %9 = call i64 @FUNC(i64 %3, i32 11, i64 0, i32* nonnull %sv_0) ret i64 %9 uselistorder i32 11, { 0, 2, 1 } }
0
BinRealVul
cpu_common_realizefn_1108
cpu_common_realizefn
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %1 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 %3) %7 = call i64 @FUNC(i64 %3) br label LBL_2 LBL_2: %8 = call i64 @FUNC(i64 %3) ret i64 %8 uselistorder i64 %3, { 0, 2, 1 } uselistorder i32 0, { 1, 0 } }
0
BinRealVul
xml_init_6083
xml_init
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg2, null %1 = icmp eq i1 %0, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_4 LBL_1: %2 = ptrtoint i64* %arg1 to i64 store i64 0, i64* %arg2, align 8 %3 = call i64 @FUNC(i64 %2, i64 0) %4 = add i64 %2, 8 %5 = inttoptr i64 %4 to i64* store i64 %3, i64* %5, align 8 %6 = icmp eq i64 %3, 0 %7 = icmp eq i1 %6, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %7, label LBL_2, label LBL_4 LBL_2: %8 = add i64 %2, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 1, i64* %rax.0.reg2mem br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 4198793) store i64 1, 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, 2, 1, 3, 4 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2, 3 } }
0
BinRealVul
utf16le_to_utf8_6073
utf16le_to_utf8
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %.reg2mem = alloca i64 %sv_0.0.lcssa.in.reg2mem = alloca i64 %sv_1.29.ph35.reg2mem = alloca i64 %sv_2.019.reg2mem = alloca i32 %sv_0.0.in20.reg2mem = alloca i64 %sv_2.0.ph.ph.reg2mem = alloca i32 %sv_1.29.ph.ph.reg2mem = alloca i64 %sv_3.112.ph.ph.reg2mem = alloca i32 %sv_1.2.reg2mem = alloca i64 %sv_1.322.reg2mem = alloca i64 %sv_0.123.in.reg2mem = alloca i64 %sv_4.0.lcssa.reg2mem = alloca i32 %sv_4.0.be.reg2mem = alloca i32 %sv_1.1.be.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %sv_1.125.reg2mem = alloca i64 %sv_4.026.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = icmp slt i64 %arg2, 0 %2 = trunc i64 %arg2 to i32 %3 = zext i1 %1 to i32 %4 = add i32 %3, %2 %5 = urem i32 %4, 2 %6 = sub nsw i32 %5, %3 %7 = icmp eq i32 %6, 1 %8 = icmp eq i1 %7, false %sext3 = add i64 %sext, -4294967296 %spec.select = select i1 %8, i64 %sext, i64 %sext3 %9 = udiv i64 %spec.select, 4294967296 %10 = trunc i64 %9 to i32 %11 = lshr i64 %spec.select, 63 %12 = trunc i64 %11 to i32 %13 = add i32 %12, %10 %14 = ashr i32 %13, 1 %15 = zext i32 %14 to i64 %16 = mul i64 %15, 2 %17 = add i64 %16, %0 %18 = icmp ugt i64 %17, %0 store i32 0, i32* %sv_4.026.reg2mem store i64 %0, i64* %sv_1.125.reg2mem br i1 %18, label LBL_2, label LBL_1 LBL_1: %19 = call i64 @FUNC(i64 0, i64 0) store i64 %19, i64* %.reg2mem br label LBL_25 LBL_2: %sv_1.125.reload = load i64, i64* %sv_1.125.reg2mem %sv_4.026.reload = load i32, i32* %sv_4.026.reg2mem %20 = add i64 %sv_1.125.reload, 2 %21 = inttoptr i64 %sv_1.125.reload to i16* %22 = load i16, i16* %21, align 2 %23 = and i16 %22, -1024 %24 = icmp eq i16 %23, -10240 %25 = icmp eq i1 %24, false store i64 %20, i64* %sv_1.0.reg2mem br i1 %25, label LBL_5, label LBL_3 LBL_3: %26 = icmp ult i64 %20, %17 %27 = icmp eq i1 %26, false store i32 %sv_4.026.reload, i32* %sv_4.0.lcssa.reg2mem br i1 %27, label LBL_12, label LBL_4 LBL_4: %28 = add i64 %sv_1.125.reload, 4 %29 = inttoptr i64 %20 to i16* %30 = load i16, i16* %29, align 2 %31 = and i16 %30, -1024 %32 = icmp eq i16 %31, -9216 %33 = icmp eq i1 %32, false store i64 %28, i64* %sv_1.0.reg2mem br i1 %33, label LBL_5, label LBL_11 LBL_5: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %34 = icmp ult i16 %22, 128 br i1 %34, label LBL_6, label LBL_8 LBL_6: %35 = add i32 %sv_4.026.reload, 1 store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem store i32 %35, i32* %sv_4.0.be.reg2mem br label LBL_7 LBL_7: %sv_4.0.be.reload = load i32, i32* %sv_4.0.be.reg2mem %sv_1.1.be.reload = load i64, i64* %sv_1.1.be.reg2mem %36 = icmp ult i64 %sv_1.1.be.reload, %17 store i32 %sv_4.0.be.reload, i32* %sv_4.026.reg2mem store i64 %sv_1.1.be.reload, i64* %sv_1.125.reg2mem store i32 %sv_4.0.be.reload, i32* %sv_4.0.lcssa.reg2mem br i1 %36, label LBL_2, label LBL_12 LBL_8: %37 = icmp ult i16 %22, 2048 br i1 %37, label LBL_9, label LBL_10 LBL_9: %38 = add i32 %sv_4.026.reload, 2 store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem store i32 %38, i32* %sv_4.0.be.reg2mem br label LBL_7 LBL_10: %39 = add i32 %sv_4.026.reload, 3 store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem store i32 %39, i32* %sv_4.0.be.reg2mem br label LBL_7 LBL_11: %40 = add i32 %sv_4.026.reload, 4 store i64 %28, i64* %sv_1.1.be.reg2mem store i32 %40, i32* %sv_4.0.be.reg2mem br label LBL_7 LBL_12: %sv_4.0.lcssa.reload = load i32, i32* %sv_4.0.lcssa.reg2mem %41 = zext i32 %sv_4.0.lcssa.reload to i64 %42 = call i64 @FUNC(i64 0, i64 %41) store i64 %42, i64* %sv_0.123.in.reg2mem store i64 %0, i64* %sv_1.322.reg2mem br label LBL_13 LBL_13: %sv_1.322.reload = load i64, i64* %sv_1.322.reg2mem %sv_0.123.in.reload = load i64, i64* %sv_0.123.in.reg2mem %sv_0.123 = inttoptr i64 %sv_0.123.in.reload to i8* %43 = add i64 %sv_1.322.reload, 2 %44 = inttoptr i64 %sv_1.322.reload to i16* %45 = load i16, i16* %44, align 2 %46 = zext i16 %45 to i32 %47 = and i32 %46, 64512 %48 = icmp eq i32 %47, 55296 %49 = icmp eq i1 %48, false store i64 %43, i64* %sv_1.2.reg2mem br i1 %49, label LBL_16, label LBL_14 LBL_14: %50 = icmp ult i64 %43, %17 %51 = icmp eq i1 %50, false store i64 %42, i64* %.reg2mem br i1 %51, label LBL_25, label LBL_15 LBL_15: %52 = add i64 %sv_1.322.reload, 4 %53 = inttoptr i64 %43 to i16* %54 = load i16, i16* %53, align 2 %55 = zext i16 %54 to i32 %56 = and i32 %55, 64512 %57 = icmp eq i32 %56, 56320 %58 = icmp eq i1 %57, false store i64 %52, i64* %sv_1.2.reg2mem br i1 %58, label LBL_16, label LBL_19 LBL_16: %sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem %59 = icmp ult i16 %45, 128 br i1 %59, label LBL_21, label LBL_17 LBL_17: %60 = icmp ult i16 %45, 2048 br i1 %60, label LBL_18, label LBL_20 LBL_18: %61 = udiv i16 %45, 64 %62 = trunc i16 %61 to i8 %63 = urem i8 %62, 32 %64 = or i8 %63, -64 store i8 %64, i8* %sv_0.123, align 1 store i32 %46, i32* %sv_3.112.ph.ph.reg2mem store i64 %sv_1.2.reload, i64* %sv_1.29.ph.ph.reg2mem store i32 0, i32* %sv_2.0.ph.ph.reg2mem br label LBL_22 LBL_19: %65 = mul i32 %46, 1024 %66 = and i32 %65, 1047552 %67 = urem i32 %55, 1024 %68 = or i32 %67, %66 %69 = add nuw nsw i32 %68, 65536 %70 = udiv i32 %69, 262144 %71 = trunc i32 %70 to i8 %72 = or i8 %71, -16 store i8 %72, i8* %sv_0.123, align 1 store i32 %69, i32* %sv_3.112.ph.ph.reg2mem store i64 %52, i64* %sv_1.29.ph.ph.reg2mem store i32 12, i32* %sv_2.0.ph.ph.reg2mem br label LBL_22 LBL_20: %73 = udiv i16 %45, 4096 %74 = trunc i16 %73 to i8 %75 = or i8 %74, -32 store i8 %75, i8* %sv_0.123, align 1 store i32 %46, i32* %sv_3.112.ph.ph.reg2mem store i64 %sv_1.2.reload, i64* %sv_1.29.ph.ph.reg2mem store i32 6, i32* %sv_2.0.ph.ph.reg2mem br label LBL_22 LBL_21: %76 = trunc i16 %45 to i8 store i8 %76, i8* %sv_0.123, align 1 %sv_0.0.in17 = add i64 %sv_0.123.in.reload, 1 store i64 %sv_1.2.reload, i64* %sv_1.29.ph35.reg2mem store i64 %sv_0.0.in17, i64* %sv_0.0.lcssa.in.reg2mem br label LBL_24 LBL_22: %sv_2.0.ph.ph.reload = load i32, i32* %sv_2.0.ph.ph.reg2mem %sv_1.29.ph.ph.reload = load i64, i64* %sv_1.29.ph.ph.reg2mem %sv_3.112.ph.ph.reload = load i32, i32* %sv_3.112.ph.ph.reg2mem %sv_0.0.in1732 = add i64 %sv_0.123.in.reload, 1 store i64 %sv_0.0.in1732, i64* %sv_0.0.in20.reg2mem store i32 %sv_2.0.ph.ph.reload, i32* %sv_2.019.reg2mem br label LBL_23 LBL_23: %sv_2.019.reload = load i32, i32* %sv_2.019.reg2mem %sv_0.0.in20.reload = load i64, i64* %sv_0.0.in20.reg2mem %sv_0.021 = inttoptr i64 %sv_0.0.in20.reload to i8* %77 = and i32 %sv_2.019.reload, 30 %78 = lshr i32 %sv_3.112.ph.ph.reload, %77 %79 = trunc i32 %78 to i8 %80 = urem i8 %79, 64 %81 = or i8 %80, -128 store i8 %81, i8* %sv_0.021, align 1 %82 = add i32 %sv_2.019.reload, -6 %sv_0.0.in = add i64 %sv_0.0.in20.reload, 1 %83 = icmp slt i32 %82, 0 %84 = icmp eq i1 %83, false store i64 %sv_0.0.in, i64* %sv_0.0.in20.reg2mem store i32 %82, i32* %sv_2.019.reg2mem store i64 %sv_1.29.ph.ph.reload, i64* %sv_1.29.ph35.reg2mem store i64 %sv_0.0.in, i64* %sv_0.0.lcssa.in.reg2mem br i1 %84, label LBL_23, label LBL_24 LBL_24: %sv_0.0.lcssa.in.reload = load i64, i64* %sv_0.0.lcssa.in.reg2mem %sv_1.29.ph35.reload = load i64, i64* %sv_1.29.ph35.reg2mem %85 = icmp ult i64 %sv_1.29.ph35.reload, %17 store i64 %sv_0.0.lcssa.in.reload, i64* %sv_0.123.in.reg2mem store i64 %sv_1.29.ph35.reload, i64* %sv_1.322.reg2mem store i64 %42, i64* %.reg2mem br i1 %85, label LBL_13, label LBL_25 LBL_25: %.reload = load i64, i64* %.reg2mem ret i64 %.reload uselistorder i64 %sv_1.29.ph35.reload, { 1, 0 } uselistorder i32 %46, { 0, 2, 1, 3 } uselistorder i16 %45, { 2, 0, 1, 3, 4, 5 } uselistorder i64 %43, { 2, 1, 0 } uselistorder i8* %sv_0.123, { 1, 3, 0, 2 } uselistorder i64 %sv_0.123.in.reload, { 1, 2, 0 } uselistorder i64 %sv_1.322.reload, { 0, 2, 1 } uselistorder i64 %sv_1.1.be.reload, { 1, 0 } uselistorder i16 %22, { 1, 2, 0 } uselistorder i64 %20, { 2, 1, 0 } uselistorder i32 %sv_4.026.reload, { 1, 4, 3, 2, 0 } uselistorder i64 %sv_1.125.reload, { 0, 2, 1 } uselistorder i64 %17, { 2, 1, 4, 3, 0 } uselistorder i64 %spec.select, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i64 %0, { 0, 1, 3, 2 } uselistorder i32* %sv_4.026.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.125.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.1.be.reg2mem, { 1, 2, 3, 0, 4 } uselistorder i32* %sv_4.0.be.reg2mem, { 1, 2, 3, 0, 4 } uselistorder i64* %sv_0.123.in.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.322.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_3.112.ph.ph.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %sv_1.29.ph.ph.reg2mem, { 0, 2, 1, 3 } uselistorder i32* %sv_2.0.ph.ph.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %sv_0.0.in20.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.019.reg2mem, { 1, 0, 2 } uselistorder i64 1, { 2, 0, 1 } uselistorder i32 1024, { 1, 0 } uselistorder i16 2048, { 1, 0 } uselistorder i16 128, { 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64)* @sdsnewlen, { 1, 0 } uselistorder i32 0, { 2, 0, 1 } uselistorder i64 2, { 1, 2, 0 } uselistorder i32 2, { 1, 0 } uselistorder i64 4294967296, { 1, 0 } uselistorder i64 %arg2, { 2, 1, 0 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_22, { 1, 0, 2 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_7, { 3, 2, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
post_xfer_18865
post_xfer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %1, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = zext i32 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = trunc i64 %6 to i32 %8 = add i64 %1, 12 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = sub i32 0, %10 %12 = sub i32 %11, 1 %13 = and i32 %12, %7 %14 = load i32, i32* %3, align 4 %15 = zext i32 %13 to i64 %16 = zext i32 %14 to i64 %17 = call i64 @FUNC(i64 %16, i64 %15) %18 = load i32, i32* %3, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19) %21 = add i64 %1, 16 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64 %24) %26 = trunc i64 %25 to i32 %27 = add i64 %1, 20 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = sub i32 0, %29 %31 = sub i32 %30, 1 %32 = and i32 %31, %26 %33 = load i32, i32* %22, align 4 %34 = zext i32 %32 to i64 %35 = zext i32 %33 to i64 %36 = call i64 @FUNC(i64 %35, i64 %34) %37 = load i32, i32* %22, align 4 %38 = zext i32 %37 to i64 %39 = call i64 @FUNC(i64 %38) ret i64 %39 uselistorder i64 (i64, i64)* @WREG32, { 1, 0 } uselistorder i64 (i64)* @RREG32, { 3, 2, 1, 0 } }
1
BinRealVul
udp_push_pending_frames_9630
udp_push_pending_frames
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(i64 %0) %3 = call i64 @FUNC(i64 %0, i64 %2) %4 = icmp eq i64 %3, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %3, i64 %2) %phitmp = and i64 %5, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %6 = inttoptr i64 %1 to i32* %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem store i32 0, i32* %6, align 4 %7 = add i64 %1, 4 %8 = inttoptr i64 %7 to i32* store i32 0, i32* %8, align 4 ret i64 %sv_0.0.reload uselistorder i32 0, { 1, 2, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
ff_dct_common_init_15537
ff_dct_common_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.pre-phi.reg2mem = alloca i64* %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = add i64 %0, 16 %5 = call i64 @FUNC(i64 %4, i64 %3) %6 = add i64 %0, 24 %7 = call i64 @FUNC(i64 %6, i64 8) %8 = load i64, i64* @gv_0, align 8 %9 = add i64 %0, 32 %10 = inttoptr i64 %9 to i64* store i64 %8, i64* %10, align 8 %11 = load i64, i64* @gv_1, align 8 %12 = add i64 %0, 40 %13 = inttoptr i64 %12 to i64* store i64 %11, i64* %13, align 8 %14 = load i64, i64* @gv_2, align 8 %15 = add i64 %0, 48 %16 = inttoptr i64 %15 to i64* store i64 %14, i64* %16, align 8 %17 = load i64, i64* @gv_3, align 8 %18 = add i64 %0, 56 %19 = inttoptr i64 %18 to i64* store i64 %17, i64* %19, align 8 %20 = load i64, i64* @gv_4, align 8 %21 = add i64 %0, 64 %22 = inttoptr i64 %21 to i64* store i64 %20, i64* %22, align 8 %23 = bitcast i64* %rdi to i32* %24 = load i32, i32* %23, align 8 %25 = urem i32 %24, 2 %26 = icmp eq i32 %25, 0 br i1 %26, label LBL_2, label LBL_1 LBL_1: %27 = load i64, i64* @gv_5, align 8 store i64 %27, i64* %22, align 8 br label LBL_2 LBL_2: %28 = load i64, i64* @gv_6, align 8 %29 = add i64 %0, 72 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 %31 = call i64 @FUNC(i64 %0) %32 = add i64 %0, 80 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = icmp eq i32 %34, 0 br i1 %35, label LBL_4, label LBL_3 LBL_3: %36 = load i64, i64* @gv_7, align 8 %37 = add i64 %0, 88 %38 = inttoptr i64 %4 to i64* %39 = load i64, i64* %38, align 8 %40 = call i64 @FUNC(i64 %39, i64 %37, i64 %36) %41 = load i64, i64* @gv_7, align 8 %42 = add i64 %0, 96 %43 = load i64, i64* %38, align 8 %44 = call i64 @FUNC(i64 %43, i64 %42, i64 %41) store i64* %38, i64** %.pre-phi.reg2mem br label LBL_5 LBL_4: %45 = load i64, i64* @gv_8, align 8 %46 = add i64 %0, 88 %47 = inttoptr i64 %4 to i64* %48 = load i64, i64* %47, align 8 %49 = call i64 @FUNC(i64 %48, i64 %46, i64 %45) %50 = load i64, i64* @gv_8, align 8 %51 = add i64 %0, 96 %52 = load i64, i64* %47, align 8 %53 = call i64 @FUNC(i64 %52, i64 %51, i64 %50) store i64* %47, i64** %.pre-phi.reg2mem br label LBL_5 LBL_5: %.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem %54 = load i64, i64* @gv_9, align 8 %55 = add i64 %0, 104 %56 = load i64, i64* %.pre-phi.reload, align 8 %57 = call i64 @FUNC(i64 %56, i64 %55, i64 %54) %58 = load i64, i64* @gv_7, align 8 %59 = add i64 %0, 112 %60 = load i64, i64* %.pre-phi.reload, align 8 %61 = call i64 @FUNC(i64 %60, i64 %59, i64 %58) ret i64 0 uselistorder i64 %4, { 1, 0, 2 } uselistorder i64 %0, { 2, 3, 4, 5, 0, 1, 7, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16 } uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i64)* @ff_init_scantable, { 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
vp8_idct_dc_add_c_15514
vp8_idct_dc_add_c
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.02.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %sext = mul i32 %3, 65536 %4 = ashr exact i32 %sext, 16 %5 = add nsw i32 %4, 4 %6 = ashr i32 %5, 3 %7 = sext i32 %6 to i64 %8 = add i64 %7, ptrtoint (i8** @gv_0 to i64) %9 = bitcast i64* %arg2 to i16* store i16 0, i16* %9, align 2 store i32 0, i32* %storemerge3.reg2mem store i64 %2, i64* %sv_0.02.reg2mem br label LBL_1 LBL_1: %sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %10 = inttoptr i64 %sv_0.02.reload to i8* %11 = load i8, i8* %10, align 1 %12 = zext i8 %11 to i64 %13 = add i64 %8, %12 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 store i8 %15, i8* %10, align 1 %16 = add i64 %sv_0.02.reload, 1 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = zext i8 %18 to i64 %20 = add i64 %8, %19 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 store i8 %22, i8* %17, align 1 %23 = add i64 %sv_0.02.reload, 2 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = zext i8 %25 to i64 %27 = add i64 %8, %26 %28 = inttoptr i64 %27 to i8* %29 = load i8, i8* %28, align 1 store i8 %29, i8* %24, align 1 %30 = add i64 %sv_0.02.reload, 3 %31 = inttoptr i64 %30 to i8* %32 = load i8, i8* %31, align 1 %33 = zext i8 %32 to i64 %34 = add i64 %8, %33 %35 = inttoptr i64 %34 to i8* %36 = load i8, i8* %35, align 1 store i8 %36, i8* %31, align 1 %37 = add i64 %sv_0.02.reload, %arg3 %38 = add nuw nsw i32 %storemerge3.reload, 1 %exitcond = icmp eq i32 %38, 4 store i32 %38, i32* %storemerge3.reg2mem store i64 %37, i64* %sv_0.02.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: ret i64 %arg3 uselistorder i64 %sv_0.02.reload, { 4, 0, 1, 2, 3 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 } uselistorder i64 %arg3, { 1, 0 } }
1
BinRealVul
jas_stream_printf_18972
jas_stream_printf
define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %2 = load i64, i64* %1 %3 = load i128, i128* %0 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %11 = trunc i64 %2 to i8 %12 = icmp eq i8 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i128 %10) %14 = call i64 @FUNC(i128 %9) %15 = call i64 @FUNC(i128 %8) %16 = call i64 @FUNC(i128 %7) %17 = call i64 @FUNC(i128 %6) %18 = call i64 @FUNC(i128 %5) %19 = call i64 @FUNC(i128 %4) %20 = call i64 @FUNC(i128 %3) br label LBL_2 LBL_2: %21 = ptrtoint i64* %arg1 to i64 store i32 16, i32* %sv_1, align 4 %22 = ptrtoint i32* %sv_1 to i64 %23 = bitcast i64* %sv_0 to i8* %24 = call i32 @vsprintf(i8* nonnull %23, i8* %arg2, i64 %22) %25 = call i64 @FUNC(i64 %21, i64* nonnull %sv_0) %26 = zext i32 %24 to i64 ret i64 %26 uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i8 0, { 1, 0 } }
1
BinRealVul
multiwrite_cb_1354
multiwrite_cb
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %arg2 to i32 %3 = icmp slt i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = trunc i64 %1 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = inttoptr i64 %arg1 to i32* store i32 %2, i32* %8, align 4 %9 = call i64 @FUNC(i64 %arg1) br label LBL_3 LBL_3: %10 = add i64 %arg1, 4 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i32 %12, -1 store i32 %13, i32* %11, align 4 %14 = zext i32 %13 to i64 %15 = icmp eq i32 %13, 0 %16 = icmp eq i1 %15, false store i64 %14, i64* %rax.0.reg2mem br i1 %16, label LBL_7, label LBL_4 LBL_4: %17 = bitcast i64* %rdi to i32* %18 = load i32, i32* %17, align 8 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = call i64 @FUNC(i64 %arg1) br label LBL_6 LBL_6: %22 = call i64 @FUNC(i64 %arg1) store i64 %22, 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 %13, { 1, 0, 2 } uselistorder i64 (i64)* @multiwrite_user_cb, { 1, 0 } uselistorder i64 %arg1, { 2, 1, 3, 0, 4 } }
0
BinRealVul
warnf_5829
warnf
define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %rax.1.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.0.ph8.reg2mem = alloca i8* %sv_1.0.ph10.reg2mem = alloca i32 %2 = load i64, i64* %1 %3 = load i64, i64* %1 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %11 = load i128, i128* %0 %sv_2 = alloca i64, align 8 %sv_3 = alloca i32, align 4 %12 = trunc i64 %3 to i8 %13 = icmp eq i8 %12, 0 br i1 %13, label LBL_2, label LBL_1 LBL_1: %14 = call i64 @FUNC(i128 %11) %15 = call i64 @FUNC(i128 %10) %16 = call i64 @FUNC(i128 %9) %17 = call i64 @FUNC(i128 %8) %18 = call i64 @FUNC(i128 %7) %19 = call i64 @FUNC(i128 %6) %20 = call i64 @FUNC(i128 %5) %21 = call i64 @FUNC(i128 %4) br label LBL_2 LBL_2: %22 = trunc i64 %2 to i32 %23 = urem i32 %22, 2 %24 = zext i32 %23 to i64 %25 = icmp eq i32 %23, 0 %26 = icmp eq i1 %25, false store i64 %24, i64* %rax.1.reg2mem br i1 %26, label LBL_12, label LBL_3 LBL_3: store i32 16, i32* %sv_3, align 4 %27 = ptrtoint i32* %sv_3 to i64 %28 = bitcast i64* %sv_2 to i8* %29 = call i32 @vsnprintf(i8* nonnull %28, i32 256, i8* %arg2, i64 %27) %30 = ptrtoint i64* %sv_2 to i64 %31 = icmp eq i32 %29, 0 %32 = icmp slt i32 %29, 0 %33 = icmp eq i1 %32, false %34 = icmp eq i1 %31, false %35 = icmp eq i1 %33, %34 store i64 %30, i64* %rax.1.reg2mem br i1 %35, label LBL_4, label LBL_12 LBL_4: %36 = ptrtoint i64* %arg1 to i64 %37 = add i64 %36, 8 %38 = inttoptr i64 %37 to i64* store i32 %29, i32* %sv_1.0.ph10.reg2mem store i8* %28, i8** %sv_0.0.ph8.reg2mem br label LBL_5 LBL_5: %sv_0.0.ph8.reload = load i8*, i8** %sv_0.0.ph8.reg2mem %sv_1.0.ph10.reload = load i32, i32* %sv_1.0.ph10.reg2mem %39 = load i64, i64* %38, align 8 %40 = inttoptr i64 %39 to %_IO_FILE* %41 = call i32 @fwrite(i64* bitcast ([10 x i8]* @gv_0 to i64*), i32 1, i32 9, %_IO_FILE* %40) %42 = icmp slt i32 %sv_1.0.ph10.reload, 81 br i1 %42, label LBL_11, label LBL_6 LBL_6: %43 = ptrtoint i8* %sv_0.0.ph8.reload to i64 store i64 79, i64* %indvars.iv.reg2mem br label LBL_7 LBL_7: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %44 = add i64 %indvars.iv.reload, %43 %45 = inttoptr i64 %44 to i8* %46 = load i8, i8* %45, align 1 switch i8 %46, label LBL_8 [ i8 32, label LBL_9 i8 9, label LBL_9 i8 10, label LBL_9 ] LBL_8: %47 = icmp eq i64 %indvars.iv.reload, 0 %48 = icmp eq i1 %47, false %indvars.iv.next = add nsw i64 %indvars.iv.reload, -1 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %48, label LBL_7, label LBL_9 LBL_9: %49 = trunc i64 %indvars.iv.reload to i32 %50 = icmp eq i32 %49, 0 %51 = icmp eq i1 %50, false %spec.select = select i1 %51, i32 %49, i32 79 %52 = load i64, i64* %38, align 8 %53 = add i32 %spec.select, 1 %54 = bitcast i8* %sv_0.0.ph8.reload to i64* %55 = inttoptr i64 %52 to %_IO_FILE* %56 = call i32 @fwrite(i64* %54, i32 %53, i32 1, %_IO_FILE* %55) %57 = load i64, i64* %38, align 8 %58 = inttoptr i64 %57 to %_IO_FILE* %59 = call i32 @fputc(i32 10, %_IO_FILE* %58) %60 = sext i32 %spec.select to i64 %61 = add i64 %43, 1 %62 = add i64 %61, %60 %63 = inttoptr i64 %62 to i8* %64 = sub i32 %sv_1.0.ph10.reload, %spec.select %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 i32 %64, i32* %sv_1.0.ph10.reg2mem store i8* %63, i8** %sv_0.0.ph8.reg2mem br i1 %69, label LBL_5, label LBL_10 LBL_10: %70 = zext i32 %spec.select to i64 store i64 %70, i64* %rax.1.reg2mem br label LBL_12 LBL_11: %71 = load i64, i64* %38, align 8 %72 = inttoptr i64 %71 to %_IO_FILE* %73 = call i32 @fputs(i8* %sv_0.0.ph8.reload, %_IO_FILE* %72) %74 = sext i32 %73 to i64 store i64 %74, i64* %rax.1.reg2mem br label LBL_12 LBL_12: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i32 %64, { 0, 2, 1 } uselistorder i32 %spec.select, { 0, 3, 2, 1 } uselistorder i64 %indvars.iv.reload, { 3, 0, 1, 2 } uselistorder i64 %43, { 1, 0 } uselistorder i8* %sv_0.0.ph8.reload, { 2, 1, 0 } uselistorder i64* %38, { 2, 1, 0, 3 } uselistorder i32 %23, { 1, 0 } uselistorder i64* %sv_2, { 1, 0 } uselistorder i32* %sv_1.0.ph10.reg2mem, { 1, 0, 2 } uselistorder i8** %sv_0.0.ph8.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.1.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64* %1, { 1, 0 } uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder i1 false, { 2, 3, 4, 5, 0, 1, 6 } uselistorder i32 0, { 2, 3, 4, 0, 1, 5 } uselistorder i8 0, { 1, 0 } uselistorder label LBL_9, { 3, 0, 1, 2 } }
0
BinRealVul
zfcp_erp_rports_del_4848
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_4 LBL_1: %storemerge12.reload = load i64, i64* %storemerge12.reg2mem %3 = inttoptr i64 %storemerge12.reload to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = call i64 @FUNC(i64 %4) store i64 0, i64* %3, align 8 br label LBL_3 LBL_3: %7 = add i64 %storemerge12.reload, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = icmp eq i64 %9, 0 %11 = icmp eq i1 %10, false store i64 %9, i64* %storemerge12.reg2mem store i64 %9, i64* %storemerge1.lcssa.reg2mem br i1 %11, label LBL_1, label LBL_4 LBL_4: %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_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
bdrv_aio_multiwrite_14271
bdrv_aio_multiwrite
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv8.reg2mem = alloca i64 %0 = icmp eq i32 %arg3, 0 %1 = icmp eq i1 %0, false store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_11 LBL_1: %2 = ptrtoint i64* %arg2 to i64 %3 = sext i32 %arg3 to i64 %4 = mul i64 %3, 16 %5 = add nsw i64 %4, 32 %6 = call i64 @FUNC(i64 %5) %7 = inttoptr i64 %6 to i32* store i32 0, i32* %7, align 4 %8 = add i64 %6, 4 %9 = inttoptr i64 %8 to i32* store i32 %arg3, i32* %9, align 4 %10 = icmp sgt i32 %arg3, 0 br i1 %10, label LBL_2, label LBL_4 LBL_2: %wide.trip.count = zext i32 %arg3 to i64 store i64 0, i64* %indvars.iv8.reg2mem br label LBL_3 LBL_3: %indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem %11 = mul nuw nsw i64 %indvars.iv8.reload, 40 %12 = add i64 %11, %2 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = mul i64 %indvars.iv8.reload, 16 %16 = add i64 %15, %6 %17 = add i64 %16, 8 %18 = inttoptr i64 %17 to i64* store i64 %14, i64* %18, align 8 %19 = add i64 %12, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %16, 16 %23 = inttoptr i64 %22 to i64* store i64 %21, i64* %23, align 8 %indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next9, %wide.trip.count store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %24 = ptrtoint i64* %arg1 to i64 %25 = call i64 @FUNC(i64 %24, i64 %2, i32 %arg3, i64 %6) %26 = trunc i64 %25 to i32 %27 = icmp sgt i32 %26, 0 store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_5, label LBL_11 LBL_5: %sext = mul i64 %25, 4294967296 %28 = ashr exact i64 %sext, 32 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %29 = mul nuw nsw i64 %indvars.iv.reload, 40 %30 = add i64 %29, %2 %31 = add i64 %30, 32 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %30, 24 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = add i64 %30, 16 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = call i64 @FUNC(i64 %24, i32 %39, i64 %36, i32 %33, i64 4198822, i64 %6) %41 = icmp eq i64 %40, 0 %42 = icmp eq i1 %41, false %43 = load i32, i32* %7, align 4 br i1 %42, label LBL_10, label LBL_7 LBL_7: %44 = icmp eq i32 %43, 0 %45 = icmp eq i1 %44, false br i1 %45, label LBL_9, label LBL_8 LBL_8: %46 = add i64 %30, 36 %47 = inttoptr i64 %46 to i32* store i32 -5, i32* %47, align 4 %48 = inttoptr i64 %6 to i64* call void @free(i64* %48) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_11 LBL_9: %49 = add i64 %6, 24 %50 = inttoptr i64 %49 to i32* store i32 -5, i32* %50, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_10: %51 = add i32 %43, 1 store i32 %51, i32* %7, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %52 = icmp slt i64 %indvars.iv.next, %28 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %52, label LBL_6, label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %43, { 1, 0 } uselistorder i64 %indvars.iv8.reload, { 0, 2, 1 } uselistorder i32* %7, { 1, 0, 2 } uselistorder i64 %6, { 2, 1, 3, 4, 0, 5, 6 } uselistorder i64 %2, { 0, 2, 1 } uselistorder i64* %indvars.iv8.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 5, 2, 4 } uselistorder i64 1, { 1, 0 } uselistorder i64 40, { 1, 0 } uselistorder i64 32, { 2, 0, 1 } uselistorder i64 16, { 2, 3, 0, 1 } uselistorder i32 0, { 2, 0, 1, 3, 4 } uselistorder i32 %arg3, { 2, 0, 1, 3, 4, 5 } uselistorder label LBL_11, { 0, 2, 4, 1, 3 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
mptsas_config_manufacturing_3_9683
mptsas_config_manufacturing_3
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: ret i64 0 }
0
BinRealVul
gvirt_to_maddr_6122
gvirt_to_maddr
define i64 @FUNC(i64 %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = zext i32 %arg3 to i64 %1 = call i64 @FUNC(i64 %arg1, i64 %0) %2 = urem i64 %1, 2 %3 = icmp eq i64 %2, 0 store i64 4294967282, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = and i64 %1, -4096 %5 = urem i64 %arg1, 4096 %6 = or i64 %4, %5 store i64 %6, i64* %arg2, align 8 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 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
cmd_save_to_mailbox_7735
cmd_save_to_mailbox
define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i8 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg2 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %6 = call i64 @FUNC(i64 %5) %7 = trunc i64 %3 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = ptrtoint i32* %arg3 to i64 %10 = call i64 @FUNC(i64 %9) %11 = call i64 @FUNC(i64 %9) %12 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %10, i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_22 LBL_2: %13 = ptrtoint i64* %arg1 to i64 %14 = call i64 @FUNC(i64 %5) %15 = trunc i64 %14 to i32 %16 = icmp slt i32 %15, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_4, label LBL_3 LBL_3: %18 = call i64 @FUNC(i64 %5, i64 0) %19 = call i64 @FUNC(i64 %5) %20 = and i64 %18, 4294967295 %21 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 %20, i64 %4, i64 %2, i64 %1) %22 = call i64 @FUNC(i64 %13, i64 %6) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_22 LBL_4: %23 = call i64 @FUNC(i64 %5, i64 1) store i64 %23, i64* %sv_3, align 8 %24 = call i64 @FUNC(i64 %23) store i64 %24, i64* %sv_2, align 8 %25 = ptrtoint i32* %arg3 to i64 %26 = call i64 @FUNC(i64* nonnull %sv_2, i64 %25) %27 = trunc i64 %26 to i32 %28 = icmp slt i32 %27, 0 %29 = icmp eq i1 %28, false %30 = trunc i64 %25 to i32 br i1 %29, label LBL_6, label LBL_5 LBL_5: %31 = call i64 @FUNC(i64 %5, i64 0) %32 = and i64 %31, 4294967295 %33 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %32, i64 %25, i64 %4, i64 %2, i64 %1) %34 = call i64 @FUNC(i64 %13, i64 %6) %35 = call i64 @FUNC(i64* nonnull %sv_3) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_22 LBL_6: %36 = load i64, i64* %sv_2, align 8 %37 = call i64 @FUNC(i64 %36) %38 = trunc i64 %37 to i32 %39 = icmp slt i32 %38, 0 %40 = icmp eq i1 %39, false store i8 1, i8* %sv_1.0.reg2mem store i64 -1, i64* %sv_0.0.reg2mem br i1 %40, label LBL_7, label LBL_9 LBL_7: %41 = call i64 @FUNC(i64 %25) %sext = mul i64 %41, 4294967296 %42 = icmp eq i64 %sext, 0 %43 = icmp slt i64 %sext, 0 %44 = icmp eq i1 %43, false %45 = icmp eq i1 %42, false %46 = icmp eq i1 %44, %45 br i1 %46, label LBL_6, label LBL_8 LBL_8: %47 = ashr exact i64 %sext, 32 store i8 0, i8* %sv_1.0.reg2mem store i64 %47, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %48 = icmp eq i64 %sv_0.0.reload, -1 %49 = zext i1 %48 to i64 %50 = call i64 @FUNC(i64 %49) %51 = icmp eq i32 %30, 0 br i1 %51, label LBL_11, label LBL_10 LBL_10: %52 = call i64 @FUNC(i64 %25) %53 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i64 %52, i64 %25, i64 %4, i64 %2, i64 %1) %54 = call i64 @FUNC(i64 %13, i64 1) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_17 LBL_11: %sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem %55 = icmp eq i8 %sv_1.0.reload, 0 br i1 %55, label LBL_13, label LBL_12 LBL_12: %56 = call i64 @FUNC(i64 %5, i64 0) %57 = and i64 %56, 4294967295 %58 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %57, i64 %25, i64 %4, i64 %2, i64 %1) %59 = call i64 @FUNC(i64 %13, i64 %6) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_17 LBL_13: %60 = call i64 @FUNC(i64* nonnull %sv_2) %61 = trunc i64 %60 to i32 %62 = icmp slt i32 %61, 0 %63 = icmp eq i1 %62, false br i1 %63, label LBL_15, label LBL_14 LBL_14: %64 = call i64 @FUNC(i64 %5, i64 0) %65 = and i64 %64, 4294967295 %66 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %65, i64 %25, i64 %4, i64 %2, i64 %1) %67 = call i64 @FUNC(i64 %13, i64 %6) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_17 LBL_15: %68 = call i64 @FUNC(i64* nonnull %sv_3) %69 = trunc i64 %68 to i32 %70 = icmp slt i32 %69, 0 %71 = icmp eq i1 %70, false store i64 0, i64* %sv_0.1.reg2mem br i1 %71, label LBL_17, label LBL_16 LBL_16: %72 = call i64 @FUNC(i64 %5, i64 0) %73 = and i64 %72, 4294967295 %74 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_4, i64 0, i64 0), i64 %73, i64 %25, i64 %4, i64 %2, i64 %1) %75 = call i64 @FUNC(i64 %13, i64 %6) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_17 LBL_17: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %76 = load i64, i64* %sv_2, align 8 %77 = icmp eq i64 %76, 0 br i1 %77, label LBL_19, label LBL_18 LBL_18: %78 = call i64 @FUNC(i64* nonnull %sv_2) br label LBL_19 LBL_19: %79 = load i64, i64* %sv_3, align 8 %80 = icmp eq i64 %79, 0 br i1 %80, label LBL_21, label LBL_20 LBL_20: %81 = call i64 @FUNC(i64* nonnull %sv_3) br label LBL_21 LBL_21: %82 = add i64 %25, 4 %83 = inttoptr i64 %82 to i8* %84 = load i8, i8* %83, align 1 %85 = zext i8 %84 to i64 %86 = call i64 @FUNC(i64 %85) %87 = icmp slt i64 %sv_0.1.reload, 0 %88 = icmp eq i1 %87, false %. = select i1 %88, i64 0, i64 4294967295 store i64 %., i64* %rax.0.reg2mem br label LBL_22 LBL_22: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_0.0.reload, { 3, 2, 1, 0, 4 } uselistorder i64 %sext, { 2, 1, 0 } uselistorder i64 %25, { 7, 0, 1, 2, 3, 6, 8, 5, 4, 9 } uselistorder i64 %13, { 5, 4, 3, 2, 1, 0 } uselistorder i64 %6, { 4, 3, 2, 1, 0 } uselistorder i64* %sv_3, { 0, 3, 1, 2, 4 } uselistorder i64* %sv_2, { 0, 3, 1, 4, 2, 5 } uselistorder i64 %5, { 3, 2, 1, 0, 4, 5, 6, 7, 8 } uselistorder i64 %4, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i8* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.1.reg2mem, { 0, 5, 1, 4, 3, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 3, 2 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64)* @i_assert, { 1, 0 } uselistorder i8 0, { 1, 0, 2 } uselistorder i64 -1, { 1, 0 } uselistorder i64 (i64*)* @mailbox_transaction_rollback, { 1, 0 } uselistorder i64 (i64, i64)* @doveadm_mail_failed_storage, { 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @mailbox_get_last_error, { 4, 3, 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6, 7 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @i_error, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @i_stream_get_error, { 1, 0 } uselistorder i32* %arg3, { 1, 0 } uselistorder label LBL_17, { 1, 0, 2, 3, 4 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
gen_intermediate_code_7707
gen_intermediate_code
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %5 = ptrtoint i64* %sv_1 to i64 store i64 %3, i64* %sv_1, align 8 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* store i64 %4, i64* %7, align 8 %8 = add i64 %5, 16 %9 = inttoptr i64 %8 to i32* store i32 0, i32* %9, align 8 %10 = add i64 %5, 24 %11 = inttoptr i64 %10 to i64* store i64 %3, i64* %11, align 8 %12 = add i64 %5, 32 %13 = inttoptr i64 %12 to i32* store i32 1, i32* %13, align 8 %14 = add i64 %5, 36 %15 = inttoptr i64 %14 to i32* store i32 1, i32* %15, align 4 %16 = add i64 %4, 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = add i64 %5, 40 %20 = inttoptr i64 %19 to i32* store i32 %18, i32* %20, align 8 %21 = bitcast i64* %rdi to i32* %22 = load i32, i32* %21, align 8 %23 = urem i32 %22, 2 %24 = icmp eq i32 %23, 0 %25 = zext i1 %24 to i32 %26 = add i64 %5, 44 %27 = inttoptr i64 %26 to i32* store i32 %25, i32* %27, align 4 %28 = add i64 %5, 48 %29 = inttoptr i64 %28 to i32* store i32 0, i32* %29, align 8 %30 = add i64 %5, 52 %31 = inttoptr i64 %30 to i32* store i32 0, i32* %31, align 4 %32 = add i64 %3, 8 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = urem i32 %34, 65536 %36 = icmp eq i32 %35, 0 %37 = icmp eq i1 %36, false %spec.select = select i1 %37, i32 %35, i32 65535 %38 = icmp ult i32 %spec.select, 1024 %storemerge1 = select i1 %38, i32 %spec.select, i32 1024 %39 = call i64 @FUNC(i64 %3) %40 = trunc i64 %3 to i32 %41 = add i64 %5, 56 %42 = inttoptr i64 %41 to i64* store i32 0, i32* %sv_0.0.reg2mem br label LBL_1 LBL_1: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %43 = load i64, i64* %11, align 8 store i64 0, i64* @gv_0, align 8 %44 = load i32, i32* %13, align 8 %45 = load i64, i64* %11, align 8 %46 = zext i32 %44 to i64 %47 = call i64 @FUNC(i64 %45, i64 %46) %48 = add nuw nsw i32 %sv_0.0.reload, 1 %49 = load i64, i64* %11, align 8 %50 = call i64 @FUNC(i64 %4, i64 %49, i64 1) %51 = and i64 %50, 4294967295 %52 = call i64 @FUNC(i64 %51) %53 = trunc i64 %52 to i32 %54 = icmp eq i32 %53, 0 br i1 %54, label LBL_3, label LBL_2 LBL_2: %55 = load i64, i64* %11, align 8 %56 = call i64 @FUNC(i64 %5, i64 %55, i64 1) store i32 1, i32* %9, align 8 %57 = load i64, i64* %11, align 8 %58 = add i64 %57, 2 store i64 %58, i64* %11, align 8 store i64 %55, i64* %rcx.0.reg2mem br label LBL_10 LBL_3: %59 = icmp eq i32 %48, %storemerge1 %60 = icmp eq i1 %59, false br i1 %60, label LBL_6, label LBL_4 LBL_4: %61 = load i32, i32* %33, align 4 %62 = urem i32 %61, 2 %63 = icmp eq i32 %62, 0 br i1 %63, label LBL_6, label LBL_5 LBL_5: %64 = call i64 @FUNC() br label LBL_6 LBL_6: %65 = load i64, i64* %11, align 8 store i64 %65, i64* %42, align 8 %66 = call i64 @FUNC(i64 %4, i64 %5) %67 = load i32, i32* %9, align 8 %68 = icmp eq i32 %67, 0 %69 = icmp eq i1 %68, false store i64 %49, i64* %rcx.0.reg2mem br i1 %69, label LBL_10, label LBL_7 LBL_7: %70 = call i64 @FUNC() %71 = trunc i64 %70 to i32 %72 = icmp eq i32 %71, 0 %73 = icmp eq i1 %72, false store i64 %49, i64* %rcx.0.reg2mem br i1 %73, label LBL_10, label LBL_8 LBL_8: %74 = load i32, i32* %17, align 4 %75 = icmp eq i32 %74, 0 %76 = icmp eq i1 %75, false store i64 %49, i64* %rcx.0.reg2mem br i1 %76, label LBL_10, label LBL_9 LBL_9: %77 = trunc i64 %43 to i32 %78 = sub i32 %77, %40 %79 = load i32, i32* @gv_1, align 4 %80 = icmp eq i32 %79, 0 %81 = icmp slt i32 %78, 4064 %or.cond.not = icmp eq i1 %81, %80 %82 = icmp ult i32 %48, %storemerge1 %or.cond3 = icmp eq i1 %82, %or.cond.not store i32 %48, i32* %sv_0.0.reg2mem store i64 %49, i64* %rcx.0.reg2mem br i1 %or.cond3, label LBL_1, label LBL_10 LBL_10: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %83 = load i32, i32* %33, align 4 %84 = urem i32 %83, 2 %85 = icmp eq i32 %84, 0 br i1 %85, label LBL_12, label LBL_11 LBL_11: %86 = call i64 @FUNC() br label LBL_12 LBL_12: %87 = load i32, i32* %17, align 4 %88 = zext i32 %87 to i64 %89 = call i64 @FUNC(i64 %88) %90 = trunc i64 %89 to i32 %91 = icmp eq i32 %90, 0 %92 = load i32, i32* %9, align 8 %93 = icmp eq i32 %92, 0 br i1 %91, label LBL_16, label LBL_13 LBL_13: %94 = icmp eq i1 %93, false br i1 %94, label LBL_15, label LBL_14 LBL_14: %95 = call i64 @FUNC(i64 %5) %96 = load i64, i64* %11, align 8 %97 = call i64 @FUNC(i64 1, i64 %96) br label LBL_15 LBL_15: %98 = call i64 @FUNC(i64 1) %99 = load i64, i64* @gv_2, align 8 %100 = and i64 %98, 4294967295 %101 = call i64 @FUNC(i64 %99, i64 %100) br label LBL_20 LBL_16: br i1 %93, label LBL_18, label LBL_17 LBL_17: %102 = icmp eq i32 %92, 3 br i1 %102, label LBL_20, label LBL_19 LBL_18: %103 = call i64 @FUNC(i64 %5) %104 = load i64, i64* %11, align 8 %105 = call i64 @FUNC(i64 %5, i64 0, i64 %104) br label LBL_20 LBL_19: %106 = call i64 @FUNC(i64 %5) %107 = call i64 @FUNC(i64 0) br label LBL_20 LBL_20: %108 = zext i32 %48 to i64 %109 = call i64 @FUNC(i64 %3, i64 %108) %110 = call i64 @FUNC(i64 1) %111 = trunc i64 %110 to i32 %112 = icmp eq i32 %111, 0 br i1 %112, label LBL_23, label LBL_21 LBL_21: %113 = call i64 @FUNC(i64 %3) %114 = trunc i64 %113 to i32 %115 = icmp eq i32 %114, 0 br i1 %115, label LBL_23, label LBL_22 LBL_22: %116 = call i64 @FUNC() %117 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0), i64 %108, i64 %108, i64 %rcx.0.reload, i64 %2, i64 %1) %118 = call i64 @FUNC(i64 %3) %119 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64 %118, i64 %108, i64 %rcx.0.reload, i64 %2, i64 %1) %120 = load i64, i64* %11, align 8 %121 = sub i64 %120, %3 %122 = and i64 %121, 4294967295 %123 = call i64 @FUNC(i64 %4, i64 %3, i64 %122, i64 0) %124 = call i64 @FUNC(i8* inttoptr (i64 4202545 to i8*), i64 %3, i64 %122, i64 0, i64 %2, i64 %1) %125 = call i64 @FUNC() br label LBL_23 LBL_23: %126 = load i64, i64* %11, align 8 %127 = trunc i64 %126 to i32 %128 = sub i32 %127, %40 %129 = add i64 %3, 12 %130 = inttoptr i64 %129 to i32* store i32 %128, i32* %130, align 4 %131 = add i64 %3, 16 %132 = inttoptr i64 %131 to i32* store i32 %48, i32* %132, align 4 ret i64 %3 uselistorder i1 %93, { 1, 0 } uselistorder i64 %rcx.0.reload, { 1, 0 } uselistorder i32 %48, { 1, 2, 0, 3, 4 } uselistorder i32 %35, { 1, 0 } uselistorder i64* %11, { 5, 4, 6, 3, 7, 1, 0, 2, 8, 9, 10, 11 } uselistorder i32* %9, { 1, 2, 0, 3 } uselistorder i64 %5, { 1, 3, 2, 4, 5, 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } uselistorder i64 %3, { 5, 6, 7, 2, 1, 0, 3, 4, 8, 9, 10, 11, 13, 12 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @qemu_log, { 2, 1, 0 } uselistorder i64 (i64)* @update_cc_op, { 2, 1, 0 } uselistorder i64 (i64)* @unlikely, { 1, 0 } uselistorder i64 1, { 2, 3, 4, 5, 6, 0, 1 } uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 13, 14, 15, 16, 17, 1 } uselistorder label LBL_20, { 1, 2, 0, 3 } }
1
BinRealVul
smp_fetch_body_len_10596
smp_fetch_body_len
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = call i64 @FUNC() %4 = urem i64 %1, 2 %5 = icmp eq i64 %4, 0 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = add i64 %10, 8 %storemerge = select i1 %5, i64 %11, i64 %10 %12 = add i64 %2, 16 %13 = inttoptr i64 %12 to i32* store i32 1, i32* %13, align 4 %14 = call i64 @FUNC(i64 %storemerge) %15 = add i64 %2, 24 %16 = inttoptr i64 %15 to i64* store i64 %14, i64* %16, align 8 %17 = add i64 %2, 32 %18 = inttoptr i64 %17 to i32* store i32 1, i32* %18, align 4 ret i64 1 uselistorder i64 %2, { 3, 2, 1, 0 } }
0
BinRealVul
curl_glue_unref_4682
curl_glue_unref
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false br i1 %1, label LBL_1, label LBL_7 LBL_1: %2 = call i64 @FUNC(i64 %arg1) %3 = add i64 %arg1, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_2, label LBL_6 LBL_2: %9 = add i64 %arg1, 16 %10 = inttoptr i64 %9 to i64* store i64 %6, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %11 = call i64 @FUNC(i64 %.reload) %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: call void @__assert_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 63, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) br label LBL_5 LBL_5: %15 = add i64 %11, 1 %16 = and i64 %15, 4294967295 %17 = call i64 @FUNC(i64 %16) %18 = load i64, i64* %10, align 8 %19 = call i64 @FUNC(i64 %18, i64 %17) %20 = and i64 %11, 4294967295 %21 = call i64 @FUNC(i64 %20) %22 = call i64 @FUNC(i64 %.reload) %23 = load i64, i64* %4, align 8 %24 = call i64 @FUNC(i64 %23) %25 = icmp eq i64 %24, 0 %26 = icmp eq i1 %25, false store i64 %24, i64* %.reg2mem br i1 %26, label LBL_3, label LBL_6 LBL_6: %27 = load i64, i64* %4, align 8 %28 = call i64 @FUNC(i64 %27) %29 = add i64 %arg1, 24 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = call i64 @FUNC(i64 %31) %33 = add i64 %arg1, 32 %34 = inttoptr i64 %33 to i64* %35 = load i64, i64* %34, align 8 %36 = call i64 @FUNC(i64 %35) %37 = inttoptr i64 %arg1 to i64* call void @free(i64* %37) br label LBL_7 LBL_7: ret i64 0 uselistorder i64* %4, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64 (i64)* @hashmap_steal_first, { 1, 0 } uselistorder i1 false, { 2, 1, 0, 3 } uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
atmci_prepare_data_5400
atmci_prepare_data
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = bitcast i64* %arg2 to i32* store i32 -1, i32* %2, align 4 %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 store i64 %5, i64* %arg1, align 8 %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %1, 8 %10 = inttoptr i64 %9 to i32* store i32 %8, i32* %10, align 4 %11 = add i64 %1, 16 %12 = inttoptr i64 %11 to i64* store i64 %0, i64* %12, align 8 %13 = add i64 %1, 24 %14 = inttoptr i64 %13 to i64* store i64 0, i64* %14, align 8 %15 = add i64 %0, 20 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i64 %0, 24 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = mul i32 %20, %17 %22 = icmp sgt i32 %21, 11 %23 = urem i32 %21, 4 %24 = icmp eq i32 %23, 0 %or.cond = icmp eq i1 %22, %24 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %25 = add i64 %1, 32 %26 = inttoptr i64 %25 to i8* store i8 1, i8* %26, align 1 br label LBL_2 LBL_2: %27 = add i64 %1, 36 %28 = inttoptr i64 %27 to i32* store i32 0, i32* %28, align 4 %29 = add i64 %0, 28 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = and i32 %31, 4 %33 = icmp eq i32 %32, 0 %storemerge = select i1 %33, i64 2, i64 1 ret i64 %storemerge uselistorder i32 0, { 1, 2, 0 } uselistorder i32 4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
snd_usb_add_endpoint_7674
snd_usb_add_endpoint
define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %storemerge714.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = load i64, i64* %0 %3 = ptrtoint i32* %arg1 to i64 %sext = mul i64 %arg3, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = call i64 @FUNC(i64 %3) %6 = add i64 %3, 8 %storemerge7.in.in10 = inttoptr i64 %6 to i64* %storemerge7.in11 = load i64, i64* %storemerge7.in.in10, align 8 %7 = add i64 %storemerge7.in11, -8 %8 = icmp eq i64 %7, %3 %9 = icmp eq i1 %8, false %10 = trunc i64 %4 to i32 br i1 %9, label LBL_1, label LBL_7 LBL_1: %11 = trunc i64 %2 to i32 %12 = ptrtoint i32* %arg2 to i64 %13 = add i64 %12, 4 %14 = inttoptr i64 %13 to i32* store i64 %storemerge7.in11, i64* %storemerge714.in.reg2mem br label LBL_2 LBL_2: %storemerge714.in.reload = load i64, i64* %storemerge714.in.reg2mem %15 = add i64 %storemerge714.in.reload, -48 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = icmp eq i32 %17, %10 %19 = icmp eq i1 %18, false br i1 %19, label LBL_6, label LBL_3 LBL_3: %20 = add i64 %storemerge714.in.reload, -44 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, %11 %24 = icmp eq i1 %23, false br i1 %24, label LBL_6, label LBL_4 LBL_4: %25 = add i64 %storemerge714.in.reload, -40 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = load i32, i32* %14, align 4 %29 = icmp eq i32 %27, %28 %30 = icmp eq i1 %29, false br i1 %30, label LBL_6, label LBL_5 LBL_5: %storemerge714.le = add i64 %storemerge714.in.reload, -56 %31 = and i64 %4, 4294967295 %32 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0), i64 %31, i32 %22, i32 %27, i64 %storemerge714.le, i64 %1) store i64 %storemerge714.le, i64* %sv_0.0.reg2mem br label LBL_24 LBL_6: %storemerge7.in.in = inttoptr i64 %storemerge714.in.reload to i64* %storemerge7.in = load i64, i64* %storemerge7.in.in, align 8 %33 = add i64 %storemerge7.in, -8 %34 = icmp eq i64 %33, %3 %35 = icmp eq i1 %34, false store i64 %storemerge7.in, i64* %storemerge714.in.reg2mem br i1 %35, label LBL_2, label LBL_7 LBL_7: %36 = trunc i64 %arg4 to i32 %37 = icmp eq i32 %36, 0 %38 = trunc i64 %arg5 to i32 %39 = icmp eq i32 %38, 0 %40 = icmp eq i1 %39, false %41 = icmp eq i1 %37, false %storemerge = select i1 %41, i64 ptrtoint ([8 x i8]* @gv_1 to i64), i64 ptrtoint ([9 x i8]* @gv_2 to i64) store i64 %storemerge, i64* %rsi, align 8 %42 = select i1 %40, i32 ptrtoint ([5 x i8]* @gv_3 to i32), i32 ptrtoint ([5 x i8]* @gv_4 to i32) %43 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_5, i64 0, i64 0), i64 %storemerge, i32 %42, i32 %10, i64 %arg5, i64 %1) %44 = call i64 @FUNC(i64 72, i64 0) %45 = icmp eq i64 %44, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %45, label LBL_24, label LBL_8 LBL_8: %46 = inttoptr i64 %44 to i64* store i64 %3, i64* %46, align 8 %47 = add i64 %44, 36 %48 = call i64 @FUNC(i64 %47) %49 = add i64 %44, 20 %50 = inttoptr i64 %49 to i32* store i32 %38, i32* %50, align 4 %51 = add i64 %44, 8 %52 = inttoptr i64 %51 to i32* store i32 %10, i32* %52, align 4 %53 = bitcast i64* %rsi to i32* %54 = load i32, i32* %53, align 8 %55 = add i64 %44, 12 %56 = inttoptr i64 %55 to i32* store i32 %54, i32* %56, align 4 %57 = ptrtoint i32* %arg2 to i64 %58 = add i64 %57, 4 %59 = inttoptr i64 %58 to i32* %60 = load i32, i32* %59, align 4 %61 = add i64 %44, 16 %62 = inttoptr i64 %61 to i32* store i32 %60, i32* %62, align 4 %63 = add i64 %44, 40 %64 = call i64 @FUNC(i64 %63) %65 = urem i64 %4, 16 %66 = add i64 %3, 24 %67 = inttoptr i64 %66 to i64* %68 = load i64, i64* %67, align 8 br i1 %41, label LBL_10, label LBL_9 LBL_9: %69 = call i64 @FUNC(i64 %68, i64 %65) %70 = trunc i64 %69 to i32 %71 = add i64 %44, 24 %72 = inttoptr i64 %71 to i32* store i32 %70, i32* %72, align 4 br label LBL_11 LBL_10: %73 = call i64 @FUNC(i64 %68, i64 %65) %74 = trunc i64 %73 to i32 %75 = add i64 %44, 24 %76 = inttoptr i64 %75 to i32* store i32 %74, i32* %76, align 4 br label LBL_11 LBL_11: %77 = icmp eq i32 %38, 1 %78 = icmp eq i1 %77, false br i1 %78, label LBL_23, label LBL_12 LBL_12: %79 = call i64 @FUNC(i64 %57, i64 1) %80 = inttoptr i64 %79 to i32* %81 = load i32, i32* %80, align 4 %82 = icmp slt i32 %81, 7 br i1 %82, label LBL_16, label LBL_13 LBL_13: %83 = call i64 @FUNC(i64 %57, i64 1) %84 = add i64 %83, 4 %85 = inttoptr i64 %84 to i32* %86 = load i32, i32* %85, align 4 %87 = icmp slt i32 %86, 1 br i1 %87, label LBL_16, label LBL_14 LBL_14: %88 = call i64 @FUNC(i64 %57, i64 1) %89 = add i64 %88, 4 %90 = inttoptr i64 %89 to i32* %91 = load i32, i32* %90, align 4 %92 = icmp sgt i32 %91, 9 br i1 %92, label LBL_16, label LBL_15 LBL_15: %93 = call i64 @FUNC(i64 %57, i64 1) %94 = add i64 %93, 4 %95 = inttoptr i64 %94 to i32* %96 = load i32, i32* %95, align 4 %97 = add i64 %44, 28 %98 = inttoptr i64 %97 to i32* store i32 %96, i32* %98, align 4 br label LBL_22 LBL_16: %99 = load i64, i64* %67, align 8 %100 = call i64 @FUNC(i64 %99) %101 = trunc i64 %100 to i32 %102 = icmp eq i32 %101, 1 %103 = icmp eq i1 %102, false br i1 %103, label LBL_18, label LBL_17 LBL_17: %104 = add i64 %44, 28 %105 = inttoptr i64 %104 to i32* store i32 1, i32* %105, align 4 br label LBL_22 LBL_18: %106 = call i64 @FUNC(i64 %57, i64 1) %107 = add i64 %106, 8 %108 = inttoptr i64 %107 to i32* %109 = load i32, i32* %108, align 4 %110 = icmp slt i32 %109, 1 br i1 %110, label LBL_21, label LBL_19 LBL_19: %111 = call i64 @FUNC(i64 %57, i64 1) %112 = add i64 %111, 8 %113 = inttoptr i64 %112 to i32* %114 = load i32, i32* %113, align 4 %115 = icmp sgt i32 %114, 16 br i1 %115, label LBL_21, label LBL_20 LBL_20: %116 = call i64 @FUNC(i64 %57, i64 1) %117 = add i64 %116, 8 %118 = inttoptr i64 %117 to i32* %119 = load i32, i32* %118, align 4 %120 = add i32 %119, -1 %121 = add i64 %44, 28 %122 = inttoptr i64 %121 to i32* store i32 %120, i32* %122, align 4 br label LBL_22 LBL_21: %123 = add i64 %44, 28 %124 = inttoptr i64 %123 to i32* store i32 3, i32* %124, align 4 br label LBL_22 LBL_22: %125 = call i64 @FUNC(i64 %57, i64 1) %126 = add i64 %125, 12 %127 = inttoptr i64 %126 to i32* %128 = load i32, i32* %127, align 4 %129 = zext i32 %128 to i64 %130 = call i64 @FUNC(i64 %129) %131 = trunc i64 %130 to i32 %132 = add i64 %44, 32 %133 = inttoptr i64 %132 to i32* store i32 %131, i32* %133, align 4 br label LBL_23 LBL_23: %134 = add i64 %44, 56 %135 = call i64 @FUNC(i64 %134, i64 %6) store i64 %44, i64* %sv_0.0.reg2mem br label LBL_24 LBL_24: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %136 = call i64 @FUNC(i64 %3) ret i64 %sv_0.0.reload uselistorder i64 %68, { 1, 0 } uselistorder i64 %65, { 1, 0 } uselistorder i64 %57, { 3, 4, 5, 6, 0, 1, 2, 7, 8 } uselistorder i64 %44, { 0, 7, 5, 6, 4, 3, 2, 8, 1, 9, 10, 11, 12, 13, 14, 15, 16 } uselistorder i64 %storemerge, { 1, 0 } uselistorder i64 %storemerge714.in.reload, { 0, 4, 3, 2, 1 } uselistorder i64 %6, { 1, 0 } uselistorder i64 %4, { 0, 2, 1 } uselistorder i64 %3, { 3, 1, 2, 4, 0, 5, 6 } uselistorder i64* %rsi, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge714.in.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64)* @get_endpoint, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 24, { 0, 2, 1 } uselistorder i64 (i8*, i64, i32, i32, i64, i64)* @snd_printdd, { 1, 0 } uselistorder i1 false, { 2, 3, 1, 7, 8, 4, 5, 6, 0 } uselistorder i64 -8, { 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64 %arg5, { 1, 0 } uselistorder label LBL_24, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
l2cap_create_iframe_pdu_4804
l2cap_create_iframe_pdu
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i16 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = sext i16 %arg4 to i64 %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %arg3, i64 %4, i64 %2, i64 %1) %7 = icmp eq i64* %arg1, null %8 = icmp eq i1 %7, false store i64 -107, i64* %rax.0.reg2mem br i1 %8, label LBL_1, label LBL_10 LBL_1: %9 = call i64 @FUNC(i64 %5) %10 = add i64 %5, 10 %11 = inttoptr i64 %10 to i16* %12 = load i16, i16* %11, align 2 %13 = icmp ult i64* %arg1, inttoptr (i64 -4095 to i64*) store i64 %5, i64* %rax.0.reg2mem br i1 %13, label LBL_2, label LBL_10 LBL_2: %14 = trunc i64 %9 to i32 %15 = icmp eq i16 %arg4, 0 %16 = add i32 %14, 2 %spec.select = select i1 %15, i32 %14, i32 %16 %17 = icmp eq i16 %12, 1 %18 = icmp eq i1 %17, false %19 = add i32 %spec.select, 2 %sv_0.1 = select i1 %18, i32 %spec.select, i32 %19 %20 = trunc i64 %arg3 to i32 %21 = call i64 @FUNC(i64 %5, i64 4) %22 = add i64 %5, 8 %23 = inttoptr i64 %22 to i16* %24 = load i16, i16* %23, align 2 %25 = zext i16 %24 to i64 %26 = call i64 @FUNC(i64 %25) %27 = trunc i64 %26 to i16 %28 = inttoptr i64 %21 to i16* store i16 %27, i16* %28, align 2 %29 = add i32 %20, 65532 %30 = add i32 %29, %sv_0.1 %31 = urem i32 %30, 65536 %32 = zext i32 %31 to i64 %33 = call i64 @FUNC(i64 %32) %34 = trunc i64 %33 to i16 %35 = add i64 %21, 2 %36 = inttoptr i64 %35 to i16* store i16 %34, i16* %36, align 2 %37 = add i64 %5, 24 %38 = call i64 @FUNC(i64 0, i64 %37) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 br i1 %40, label LBL_4, label LBL_3 LBL_3: %41 = call i64 @FUNC(i64 %5, i64 4) %42 = call i64 @FUNC(i64 0, i64 %41) br label LBL_5 LBL_4: %43 = call i64 @FUNC(i64 %5, i64 2) %44 = call i64 @FUNC(i64 0, i64 %43) br label LBL_5 LBL_5: br i1 %15, label LBL_7, label LBL_6 LBL_6: %45 = call i64 @FUNC(i64 %5, i64 2) %46 = zext i16 %arg4 to i64 %47 = call i64 @FUNC(i64 %46, i64 %45) br label LBL_7 LBL_7: %48 = ptrtoint i64* %arg2 to i64 %49 = trunc i64 %3 to i32 %50 = urem i32 %49, 65536 %51 = sub i32 %50, %sv_0.1 %52 = icmp ult i32 %51, %20 %53 = select i1 %52, i32 %51, i32 %20 %54 = call i64 @FUNC(i64 %5, i64 %48, i64 %arg3, i32 %53, i64 %5) %55 = icmp slt i64 %54, 0 %56 = zext i1 %55 to i64 %57 = call i64 @FUNC(i64 %56) %58 = trunc i64 %57 to i32 %59 = icmp eq i32 %58, 0 br i1 %59, label LBL_9, label LBL_8 LBL_8: %60 = call i64 @FUNC(i64 %5) %sext = mul i64 %54, 4294967296 %61 = ashr exact i64 %sext, 32 store i64 %61, i64* %rax.0.reg2mem br label LBL_10 LBL_9: %62 = call i64 @FUNC(i64 %5) %63 = load i16, i16* %11, align 2 %64 = inttoptr i64 %62 to i16* store i16 %63, i16* %64, align 2 %65 = call i64 @FUNC(i64 %5) %66 = add i64 %65, 2 %67 = inttoptr i64 %66 to i16* store i16 0, i16* %67, align 2 store i64 %5, 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 %20, { 1, 2, 0 } uselistorder i32 %sv_0.1, { 1, 0 } uselistorder i64 %5, { 1, 3, 4, 5, 7, 6, 2, 8, 9, 10, 11, 12, 0, 13, 14, 15 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @bt_cb, { 1, 0 } uselistorder i64 (i64, i64)* @put_unaligned_le16, { 1, 0 } uselistorder i64 2, { 2, 0, 1, 3 } uselistorder i32 65536, { 1, 0 } uselistorder i64 (i64)* @cpu_to_le16, { 1, 0 } uselistorder i64 (i64, i64)* @skb_put, { 3, 2, 1, 0 } uselistorder label LBL_10, { 2, 3, 0, 1 } }
0
BinRealVul
bdrv_reset_dirty_14479
bdrv_reset_dirty
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge2.lcssa.reg2mem = alloca i64 %storemerge23.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* %storemerge2.lcssa.reg2mem br i1 %2, label LBL_1, label LBL_3 LBL_1: %3 = trunc i64 %arg3 to i32 store i64 %0, i64* %storemerge23.reg2mem br label LBL_2 LBL_2: %storemerge23.reload = load i64, i64* %storemerge23.reg2mem %4 = add i64 %storemerge23.reload, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %6, i64 %arg2, i32 %3) %8 = inttoptr i64 %storemerge23.reload to i64* %9 = load i64, i64* %8, align 8 %10 = icmp eq i64 %9, 0 %11 = icmp eq i1 %10, false store i64 %9, i64* %storemerge23.reg2mem store i64 %9, i64* %storemerge2.lcssa.reg2mem br i1 %11, label LBL_2, label LBL_3 LBL_3: %storemerge2.lcssa.reload = load i64, i64* %storemerge2.lcssa.reg2mem ret i64 %storemerge2.lcssa.reload uselistorder i64 %0, { 1, 0 } uselistorder i64* %storemerge23.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
try_to_del_timer_sync_12861
try_to_del_timer_sync
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1) %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, %0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 %0) %7 = call i64 @FUNC(i64 %0, i64 %2, i64 1) %phitmp = and i64 %7, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %8 = load i64, i64* %sv_1, align 8 %9 = add i64 %2, 8 %10 = call i64 @FUNC(i64 %9, i64 %8) ret i64 %sv_0.0.reload uselistorder i64 %2, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i64 %0, { 1, 0, 2, 3, 4 } }
1
BinRealVul
nlmsg_reserve_11271
nlmsg_reserve
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %0 = trunc i64 %arg3 to i32 %1 = icmp eq i32 %0, 0 store i64 %arg2, i64* %storemerge.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %sext = mul i64 %arg3, 4294967296 %sext2 = add i64 %sext, -4294967296 %2 = ashr exact i64 %sext2, 32 %3 = add i64 %2, %arg2 %sext3 = sub i64 0, %sext %4 = ashr exact i64 %sext3, 32 %5 = and i64 %3, %4 store i64 %5, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = and i64 %6, 4294967295 %storemerge.reload = load i64, i64* %storemerge.reg2mem %8 = add i64 %storemerge.reload, %7 %9 = add i64 %6, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp ugt i64 %8, %11 br i1 %12, label LBL_3, label LBL_4 LBL_3: %13 = trunc i64 %6 to i32 %14 = trunc i64 %storemerge.reload to i32 %15 = add i32 %14, %13 %16 = bitcast i64* %arg1 to i32* store i32 %15, i32* %16, align 4 br label LBL_4 LBL_4: %17 = icmp ugt i64 %storemerge.reload, %arg2 store i64 %6, i64* %.reg2mem br i1 %17, label LBL_5, label LBL_6 LBL_5: %18 = sub i64 %storemerge.reload, %arg2 %19 = add i64 %6, %arg2 %20 = inttoptr i64 %19 to i64* %21 = trunc i64 %18 to i32 %22 = call i64* @memset(i64* %20, i32 0, i32 %21) store i64 %19, i64* %.reg2mem br label LBL_6 LBL_6: %23 = and i64 %arg3, 4294967295 %.reload = load i64, i64* %.reg2mem %24 = and i64 %.reload, 4294967295 %25 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %storemerge.reload, i64 %arg2, i64 %23, i64 %24) ret i64 %6 uselistorder i64 %storemerge.reload, { 3, 1, 2, 0, 4 } uselistorder i64 %6, { 3, 4, 5, 0, 2, 6, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64 4294967295, { 0, 2, 1 } uselistorder i64 %arg3, { 1, 0, 2 } uselistorder i64 %arg2, { 2, 4, 5, 3, 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
aux_bridge_init_16701
aux_bridge_init
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = and i64 %2, 4294967295 %4 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0)) %5 = inttoptr i64 %1 to i64* store i64 %4, i64* %5, align 8 ret i64 %4 uselistorder i64 %4, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } }
1
BinRealVul
macvtap_ioctl_set_queue_4936
macvtap_ioctl_set_queue
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 4294967274, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_6 LBL_1: %4 = urem i64 %arg2, 2 %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = inttoptr i64 %1 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %7, i64 %0, i64 %0) store i64 %8, i64* %sv_0.0.reg2mem br label LBL_5 LBL_3: %9 = and i64 %arg2, 2 %10 = icmp eq i64 %9, 0 store i64 4294967274, i64* %sv_0.0.reg2mem br i1 %10, label LBL_5, label LBL_4 LBL_4: %11 = call i64 @FUNC(i64 %0) store i64 %11, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %12 = call i64 @FUNC(i64 %1) %13 = and i64 %sv_0.0.reload, 4294967295 store i64 %13, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 2, 1, 0, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 2, { 1, 0 } uselistorder i64 4294967274, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0, 2 } }
0
BinRealVul
comp_col_8504
comp_col
define i64 @FUNC() local_unnamed_addr { LBL_0: %.reg2mem14 = alloca i32 %.reg2mem12 = alloca i32 %.reg2mem10 = alloca i32 %.reg2mem8 = alloca i32 %.reg2mem = alloca i32 %storemerge1.reg2mem = alloca i32 %0 = load i32, i32* @gv_0, align 4 %1 = icmp eq i32 %0, 2 store i32 1, i32* %storemerge1.reg2mem br i1 %1, label LBL_4, label LBL_1 LBL_1: %2 = icmp eq i32 %0, 1 %3 = icmp eq i1 %2, false br i1 %3, label LBL_3, label LBL_2 LBL_2: %4 = load i32, i32* @gv_1, align 4 %5 = load i32, i32* @gv_2, align 4 %6 = icmp eq i32 %4, %5 store i32 1, i32* %storemerge1.reg2mem br i1 %6, label LBL_3, label LBL_4 LBL_3: store i32 0, i32* %storemerge1.reg2mem br label LBL_4 LBL_4: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem store i32 0, i32* @gv_3, align 4 store i32 0, i32* inttoptr (i64 4210772 to i32*), align 4 %7 = load i32, i32* @gv_4, align 4 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_7, label LBL_5 LBL_5: %9 = load i32, i32* @gv_5, align 4 %10 = icmp eq i32 %9, 0 %11 = select i1 %10, i32 11, i32 ptrtoint (i32* @gv_6 to i32) store i32 %11, i32* @gv_7, align 4 %12 = icmp eq i32 %storemerge1.reload, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_7, label LBL_6 LBL_6: store i32 %11, i32* @gv_3, align 4 br label LBL_7 LBL_7: %14 = load i32, i32* @gv_8, align 4 %15 = icmp eq i32 %14, 0 %.pr = load i32, i32* @gv_3, align 4 store i32 %.pr, i32* %.reg2mem br i1 %15, label LBL_9, label LBL_8 LBL_8: %16 = load i32, i32* @gv_9, align 4 %17 = add i32 %16, %.pr %18 = icmp ne i32 %7, 0 %19 = icmp eq i32 %storemerge1.reload, 0 %or.cond = icmp eq i1 %19, %18 %spec.store.select = select i1 %or.cond, i32 %17, i32 ptrtoint (i32* @gv_10 to i32) store i32 %spec.store.select, i32* @gv_3, align 4 store i32 %spec.store.select, i32* %.reg2mem br label LBL_9 LBL_9: %.reload = load i32, i32* %.reg2mem %20 = icmp slt i32 %.reload, 0 br i1 %20, label LBL_11, label LBL_10 LBL_10: %21 = xor i32 %.reload, -2147483648 %22 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4 %23 = icmp ugt i32 %21, %22 store i32 %.reload, i32* %.reg2mem8 br i1 %23, label LBL_11, label LBL_12 LBL_11: call void @__assert_fail(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_11, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_12, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_13, i64 0, i64 0)) %.pre = load i32, i32* @gv_3, align 4 store i32 %.pre, i32* %.reg2mem8 br label LBL_12 LBL_12: %.reload9 = load i32, i32* %.reg2mem8 %24 = load i32, i32* @gv_14, align 4 %25 = sub i32 %24, %.reload9 store i32 %25, i32* @gv_3, align 4 %26 = load i32, i32* @gv_7, align 4 %27 = icmp slt i32 %26, 0 %28 = xor i32 %26, -2147483648 %29 = icmp ugt i32 %28, %24 %or.cond7 = or i1 %27, %29 store i32 %25, i32* %.reg2mem10 store i32 %26, i32* %.reg2mem12 store i32 %24, i32* %.reg2mem14 br i1 %or.cond7, label LBL_13, label LBL_14 LBL_13: call void @__assert_fail(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_15, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_12, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_13, i64 0, i64 0)) %.pre3 = load i32, i32* @gv_14, align 4 %.pre4 = load i32, i32* @gv_7, align 4 %.pre5 = load i32, i32* @gv_3, align 4 store i32 %.pre5, i32* %.reg2mem10 store i32 %.pre4, i32* %.reg2mem12 store i32 %.pre3, i32* %.reg2mem14 br label LBL_14 LBL_14: %.reload15 = load i32, i32* %.reg2mem14 %.reload13 = load i32, i32* %.reg2mem12 %.reload11 = load i32, i32* %.reg2mem10 %30 = sub i32 %.reload15, %.reload13 store i32 %30, i32* @gv_7, align 4 %31 = icmp eq i32 %.reload11, 0 %32 = icmp slt i32 %.reload11, 0 %33 = icmp eq i1 %32, false %34 = icmp eq i1 %31, false %35 = icmp eq i1 %33, %34 br i1 %35, label LBL_16, label LBL_15 LBL_15: store i32 1, i32* @gv_3, align 4 br label LBL_16 LBL_16: %36 = icmp eq i32 %30, 0 %37 = icmp slt i32 %30, 0 %38 = icmp eq i1 %37, false %39 = icmp eq i1 %36, false %40 = icmp eq i1 %38, %39 br i1 %40, label LBL_18, label LBL_17 LBL_17: store i32 1, i32* @gv_7, align 4 br label LBL_18 LBL_18: %41 = zext i32 %30 to i64 ret i64 %41 uselistorder i32 %.reload11, { 1, 0 } uselistorder i32 %.pr, { 1, 0 } uselistorder i32 %11, { 1, 0 } uselistorder i32 %storemerge1.reload, { 1, 0 } uselistorder i32* %storemerge1.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem10, { 0, 2, 1 } uselistorder i32* %.reg2mem12, { 0, 2, 1 } uselistorder i32* %.reg2mem14, { 0, 2, 1 } uselistorder i1 false, { 2, 0, 3, 1, 4, 5 } uselistorder i32 1, { 9, 10, 6, 8, 5, 7, 4, 3, 2, 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_4, { 2, 1, 0 } }
0
BinRealVul
ccid_on_apdu_from_guest_16945
ccid_on_apdu_from_guest
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 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg2 to i64 %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 1 br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 %6, i64 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) %11 = add i64 %5, 5 %12 = inttoptr i64 %11 to i8* %13 = load i8, i8* %12, align 1 %14 = zext i8 %13 to i64 %15 = add i64 %5, 4 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = zext i8 %17 to i64 %19 = call i64 @FUNC(i64 %6, i64 %18, i64 %14) store i64 %19, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %20 = and i64 %3, 4294967295 %21 = call i64 @FUNC(i64 %20) %22 = add i64 %5, 5 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = and i64 %21, 4294967295 %26 = zext i8 %24 to i64 %27 = call i64 @FUNC(i64 %6, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([24 x i8]* @gv_2 to i64), i64 %26, i64 %25) %28 = call i64 @FUNC(i64 %6, i64 %5) %29 = icmp eq i64* %arg1, null br i1 %29, label LBL_4, label LBL_3 LBL_3: %30 = trunc i64 %21 to i32 %31 = add i64 %5, 8 %32 = call i64 @FUNC(i64 %6, i64 %31, i32 %30) store i64 %32, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %33 = call i64 @FUNC(i64 %6, i64 2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([24 x i8]* @gv_2 to i64), i64 %26, i64 %25) store i64 %33, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %21, { 1, 0 } uselistorder i64 %6, { 3, 2, 4, 5, 0, 1, 6 } uselistorder i64 %5, { 2, 3, 4, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 0, 2, 3 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @DPRINTF, { 2, 1, 0 } uselistorder i64 1, { 1, 2, 0 } }
1
BinRealVul
decode_choice_11407
decode_choice
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = mul i32 %arg4, 4 %5 = zext i32 %4 to i64 %6 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64* nonnull @gv_1, i64 %3, i64 %2, i64 %1) %7 = icmp eq i64 %arg3, 0 %.pre = add i64 %3, 8 %.pre4 = inttoptr i64 %.pre to i32* %.pre6 = load i32, i32* %.pre4, align 4 %8 = urem i32 %.pre6, 2 %9 = icmp eq i32 %8, 0 %or.cond = or i1 %7, %9 store i64 0, i64* %storemerge2.reg2mem br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %10 = add i64 %3, 12 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = zext i32 %12 to i64 %14 = add i64 %13, %arg3 store i64 %14, i64* %storemerge2.reg2mem br label LBL_2 LBL_2: %15 = ptrtoint i64* %arg1 to i64 %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %16 = and i32 %.pre6, 2 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_5, label LBL_3 LBL_3: %18 = call i64 @FUNC(i64 %15) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = call i64 @FUNC(i64 %15, i64 7) %22 = trunc i64 %21 to i32 %23 = add i64 %3, 16 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = add i32 %25, %22 store i32 1, i32* %sv_0.0.reg2mem store i32 %26, i32* %storemerge.reg2mem br label LBL_6 LBL_5: %27 = add i64 %3, 24 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = zext i32 %29 to i64 %31 = call i64 @FUNC(i64 %15, i64 %30) %32 = trunc i64 %31 to i32 store i32 0, i32* %sv_0.0.reg2mem store i32 %32, i32* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i32, i32* %storemerge.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %33 = icmp eq i64 %storemerge2.reload, 0 br i1 %33, label LBL_8, label LBL_7 LBL_7: %34 = inttoptr i64 %storemerge2.reload to i32* store i32 %storemerge.reload, i32* %34, align 4 br label LBL_8 LBL_8: %35 = add i64 %3, 20 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = icmp ult i32 %storemerge.reload, %37 br i1 %38, label LBL_10, label LBL_9 LBL_9: %39 = call i64 @FUNC(i64 %15) %40 = call i64 @FUNC(i64 %15) %41 = and i64 %40, 4294967295 %42 = call i64 @FUNC(i64 %15, i64 %41) %43 = add i64 %41, %15 store i64 %43, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_10: %44 = add i64 %3, 32 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = zext i32 %storemerge.reload to i64 %48 = mul nuw nsw i64 %47, 48 %49 = add i64 %46, %48 %50 = add i64 %49, 8 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = and i32 %52, 4 %54 = icmp eq i32 %53, 0 br i1 %54, label LBL_12, label LBL_11 LBL_11: %55 = inttoptr i64 %49 to i64* %56 = load i64, i64* %55, align 8 %57 = add i32 %4, 4 %58 = zext i32 %57 to i64 %59 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %58, i64* nonnull @gv_1, i64 %56, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_20 LBL_12: %60 = and i32 %52, 8 %61 = or i32 %60, %sv_0.0.reload %62 = icmp eq i32 %61, 0 br i1 %62, label LBL_19, label LBL_13 LBL_13: %63 = call i64 @FUNC(i64 %15) %64 = call i64 @FUNC(i64 %15) %65 = and i64 %64, 4294967295 %66 = call i64 @FUNC(i64 %15, i64 %65) br i1 %33, label LBL_15, label LBL_14 LBL_14: %67 = load i32, i32* %51, align 4 %68 = urem i32 %67, 2 %69 = icmp eq i32 %68, 0 %70 = icmp eq i1 %69, false br i1 %70, label LBL_16, label LBL_15 LBL_15: %71 = inttoptr i64 %49 to i64* %72 = load i64, i64* %71, align 8 %73 = add i32 %4, 4 %74 = zext i32 %73 to i64 %75 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %74, i64* nonnull @gv_1, i64 %72, i64 %2, i64 %1) %76 = add i64 %65, ptrtoint ([8 x i8]* @gv_0 to i64) store i64 %76, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_16: %77 = trunc i64 %15 to i32 %78 = icmp slt i32 %77, 0 %79 = icmp eq i1 %78, false br i1 %79, label LBL_18, label LBL_17 LBL_17: %80 = and i64 %15, 4294967295 store i64 %80, i64* %rax.0.reg2mem br label LBL_20 LBL_18: %81 = add i64 %65, %15 store i64 %81, i64* %arg1, align 8 %82 = add i64 %15, 8 %83 = inttoptr i64 %82 to i32* store i32 0, i32* %83, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_19: %84 = trunc i64 %15 to i32 %85 = icmp slt i32 %84, 0 %86 = icmp eq i1 %85, false %87 = and i64 %15, 4294967295 %spec.select = select i1 %86, i64 0, i64 %87 ret i64 %spec.select LBL_20: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %storemerge.reload, { 1, 2, 0 } uselistorder i64 %15, { 8, 7, 9, 0, 11, 10, 14, 13, 12, 1, 6, 5, 4, 15, 2, 3 } uselistorder i32 %.pre6, { 1, 0 } uselistorder i32 %4, { 1, 2, 0 } uselistorder i64 %3, { 4, 3, 5, 2, 1, 0, 6 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 5, 3, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64)* @CHECK_BOUND, { 1, 0 } uselistorder i64 (i64)* @get_len, { 1, 0 } uselistorder i64 (i64)* @BYTE_ALIGN, { 1, 0 } uselistorder i64 (i64, i64)* @get_bits, { 1, 0 } uselistorder i32 2, { 0, 2, 1 } uselistorder i64 8, { 1, 2, 0 } uselistorder i64 (i8*, i64, i64*, i64, i64, i64)* @PRINT, { 2, 1, 0 } uselistorder [8 x i8]* @gv_0, { 1, 0 } uselistorder i32 4, { 1, 2, 3, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
inet_diag_bc_audit_12345
inet_diag_bc_audit
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i1 %sv_0.06.reg2mem = alloca i64 %storemerge7.reg2mem = alloca i64 %.reg2mem = alloca i32 %sext = mul i64 %arg2, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 %3 = icmp slt i32 %1, 0 %4 = icmp eq i1 %3, false %5 = icmp eq i1 %2, false %6 = icmp eq i1 %4, %5 store i1 %5, i1* %.lcssa.reg2mem br i1 %6, label LBL_1, label LBL_15 LBL_1: %7 = ptrtoint i64* %arg1 to i64 %8 = and i64 %0, 4294967295 store i32 %1, i32* %.reg2mem store i64 %0, i64* %storemerge7.reg2mem store i64 %7, i64* %sv_0.06.reg2mem br label LBL_2 LBL_2: %sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem %storemerge7.reload = load i64, i64* %storemerge7.reg2mem %.reload = load i32, i32* %.reg2mem %9 = inttoptr i64 %sv_0.06.reload to i8* %10 = load i8, i8* %9, align 1 %11 = icmp eq i8 %10, 9 br i1 %11, label LBL_12, label LBL_3 LBL_3: %12 = icmp ugt i8 %10, 9 store i64 4294967274, i64* %rax.0.reg2mem br i1 %12, label LBL_16, label LBL_4 LBL_4: %13 = icmp ugt i8 %10, 7 br i1 %13, label LBL_8, label LBL_5 LBL_5: %14 = icmp eq i8 %10, 0 %15 = icmp eq i1 %14, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %15, label LBL_6, label LBL_16 LBL_6: %16 = add i64 %sv_0.06.reload, 4 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = icmp slt i32 %18, 4 store i64 4294967274, i64* %rax.0.reg2mem br i1 %19, label LBL_16, label LBL_7 LBL_7: %20 = zext i32 %18 to i64 %21 = add nsw i64 %storemerge7.reload, 4 %22 = and i64 %21, 4294967295 %23 = icmp ult i64 %22, %20 store i64 4294967274, i64* %rax.0.reg2mem br i1 %23, label LBL_16, label LBL_8 LBL_8: %24 = add i64 %sv_0.06.reload, 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp slt i32 %26, 4 store i64 4294967274, i64* %rax.0.reg2mem br i1 %27, label LBL_16, label LBL_9 LBL_9: %28 = zext i32 %26 to i64 %29 = add nsw i64 %storemerge7.reload, 4 %30 = and i64 %29, 4294967295 %31 = icmp ult i64 %30, %28 store i64 4294967274, i64* %rax.0.reg2mem br i1 %31, label LBL_16, label LBL_10 LBL_10: %32 = icmp sgt i64 %storemerge7.reload, %28 br i1 %32, label LBL_11, label LBL_14 LBL_11: %33 = sub i32 %.reload, %26 %34 = zext i32 %33 to i64 %35 = call i64 @FUNC(i64 %7, i64 %8, i64 %34) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 0 %38 = icmp eq i1 %37, false store i64 4294967274, i64* %rax.0.reg2mem br i1 %38, label LBL_14, label LBL_16 LBL_12: %39 = add i64 %sv_0.06.reload, 4 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = icmp slt i32 %41, 4 store i64 4294967274, i64* %rax.0.reg2mem br i1 %42, label LBL_16, label LBL_13 LBL_13: %43 = zext i32 %41 to i64 %44 = add nsw i64 %storemerge7.reload, 4 %45 = and i64 %44, 4294967295 %46 = icmp ult i64 %45, %43 store i64 4294967274, i64* %rax.0.reg2mem br i1 %46, label LBL_16, label LBL_14 LBL_14: %47 = add i64 %sv_0.06.reload, 4 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = sext i32 %49 to i64 %51 = add i64 %sv_0.06.reload, %50 %52 = sub i32 %.reload, %49 %53 = sext i32 %52 to i64 %54 = icmp eq i32 %52, 0 %55 = icmp slt i32 %52, 0 %56 = icmp eq i1 %55, false %57 = icmp eq i1 %54, false %58 = icmp eq i1 %56, %57 store i32 %52, i32* %.reg2mem store i64 %53, i64* %storemerge7.reg2mem store i64 %51, i64* %sv_0.06.reg2mem store i1 %57, i1* %.lcssa.reg2mem br i1 %58, label LBL_2, label LBL_15 LBL_15: %.lcssa.reload = load i1, i1* %.lcssa.reg2mem %. = select i1 %.lcssa.reload, i64 4294967274, i64 0 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 %52, { 0, 2, 1, 3 } uselistorder i32 %.reload, { 1, 0 } uselistorder i64 %storemerge7.reload, { 3, 0, 2, 1 } uselistorder i64 %sv_0.06.reload, { 5, 2, 3, 1, 0, 4 } uselistorder i64 %7, { 1, 0 } uselistorder i64 %0, { 0, 2, 1 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge7.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 10, 4, 3, 5, 7, 6, 9, 8, 2, 1 } uselistorder i64 4, { 3, 0, 4, 1, 2, 5 } uselistorder i64 4294967274, { 9, 3, 2, 4, 6, 5, 8, 7, 1, 0 } uselistorder i1 false, { 5, 2, 3, 4, 0, 1 } uselistorder i32 0, { 3, 4, 2, 0, 1 } uselistorder label LBL_16, { 9, 3, 2, 4, 6, 5, 8, 7, 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
vga_mem_readb_14050
vga_mem_readb
define i64 @FUNC(i64* %arg1, i64 %arg2) 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 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 %4 = trunc i64 %1 to i8 %5 = udiv i8 %4, 4 %6 = urem i8 %5, 4 %7 = urem i32 %3, 131072 store i32 %7, i32* %sv_1.0.reg2mem switch i8 %6, label LBL_1 [ i8 2, label LBL_4 i8 3, label LBL_5 i8 0, label LBL_6 ] LBL_1: %8 = icmp eq i8 %6, 1 %9 = icmp eq i1 %8, false br i1 %9, label LBL_5, label LBL_2 LBL_2: %10 = icmp ult i32 %7, 65536 store i64 255, i64* %rax.0.reg2mem br i1 %10, label LBL_3, label LBL_14 LBL_3: %11 = add i64 %2, 20 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = add i32 %13, %7 store i32 %14, i32* %sv_1.0.reg2mem br label LBL_6 LBL_4: %15 = add nsw i32 %7, -65536 %16 = icmp ult i32 %15, 32768 store i32 %15, i32* %sv_1.0.reg2mem store i64 255, i64* %rax.0.reg2mem br i1 %16, label LBL_6, label LBL_14 LBL_5: %17 = add nsw i32 %7, -98304 %18 = icmp ult i32 %17, 32768 store i32 %17, i32* %sv_1.0.reg2mem store i64 255, i64* %rax.0.reg2mem br i1 %18, label LBL_6, label LBL_14 LBL_6: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %19 = add i64 %2, 5 %20 = inttoptr i64 %19 to i8* %21 = load i8, i8* %20, align 1 %22 = and i8 %21, 16 %23 = icmp eq i8 %22, 0 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = add i64 %2, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = zext i32 %sv_1.0.reload to i64 %28 = mul i64 %27, 4 %29 = add i64 %26, %28 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 store i32 %31, i32* %sv_0.0.reg2mem br label LBL_13 LBL_8: %32 = add i64 %2, 1 %33 = inttoptr i64 %32 to i8* %34 = load i8, i8* %33, align 1 %35 = and i8 %34, 16 %36 = icmp eq i8 %35, 0 br i1 %36, label LBL_10, label LBL_9 LBL_9: %37 = add i64 %2, 2 %38 = inttoptr i64 %37 to i8* %39 = load i8, i8* %38, align 1 %40 = and i8 %39, 2 %41 = zext i8 %40 to i32 %42 = urem i32 %sv_1.0.reload, 2 %43 = add i64 %2, 8 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = mul i32 %sv_1.0.reload, 2 %47 = and i32 %46, -4 %48 = or i32 %47, %42 %49 = or i32 %48, %41 %50 = zext i32 %49 to i64 %51 = mul i64 %50, 4 %52 = add i64 %51, %45 %53 = inttoptr i64 %52 to i32* %54 = load i32, i32* %53, align 4 store i32 %54, i32* %sv_0.0.reg2mem br label LBL_13 LBL_10: %55 = add i64 %2, 8 %56 = inttoptr i64 %55 to i64* %57 = load i64, i64* %56, align 8 %58 = zext i32 %sv_1.0.reload to i64 %59 = mul i64 %58, 4 %60 = add i64 %57, %59 %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = add i64 %2, 16 %64 = inttoptr i64 %63 to i32* store i32 %62, i32* %64, align 4 %65 = load i8, i8* %33, align 1 %66 = and i8 %65, 8 %67 = icmp eq i8 %66, 0 %68 = icmp eq i1 %67, false br i1 %68, label LBL_12, label LBL_11 LBL_11: %69 = add i64 %2, 2 %70 = inttoptr i64 %69 to i8* %71 = load i8, i8* %70, align 1 %72 = zext i8 %71 to i64 %73 = zext i32 %62 to i64 %74 = call i64 @FUNC(i64 %73, i64 %72) %75 = trunc i64 %74 to i32 store i32 %75, i32* %sv_0.0.reg2mem br label LBL_13 LBL_12: %76 = add i64 %2, 3 %77 = inttoptr i64 %76 to i8* %78 = load i8, i8* %77, align 1 %79 = zext i8 %78 to i64 %80 = mul i64 %79, 4 %81 = add i64 %80, ptrtoint (i32** @gv_0 to i64) %82 = inttoptr i64 %81 to i32* %83 = load i32, i32* %82, align 4 %84 = xor i32 %83, %62 %85 = add i64 %2, 4 %86 = inttoptr i64 %85 to i8* %87 = load i8, i8* %86, align 1 %88 = zext i8 %87 to i64 %89 = mul i64 %88, 4 %90 = add i64 %89, ptrtoint (i32** @gv_0 to i64) %91 = inttoptr i64 %90 to i32* %92 = load i32, i32* %91, align 4 %93 = and i32 %92, %84 %94 = udiv i32 %93, 65536 %95 = or i32 %94, %93 %96 = udiv i32 %95, 256 %97 = or i32 %96, %95 %98 = urem i32 %97, 256 %99 = xor i32 %98, 255 store i32 %99, i32* %sv_0.0.reg2mem br label LBL_13 LBL_13: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %100 = zext i32 %sv_0.0.reload to i64 store i64 %100, 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 i32 %95, { 1, 0 } uselistorder i32 %93, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 0, 3, 2, 1 } uselistorder i32 %7, { 3, 1, 4, 2, 0 } uselistorder i64 %2, { 3, 2, 1, 9, 8, 10, 7, 6, 5, 4, 0 } uselistorder i32* %sv_1.0.reg2mem, { 0, 3, 4, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i32 256, { 1, 0 } uselistorder i64 4, { 0, 5, 1, 2, 3, 4 } uselistorder i32 32768, { 1, 0 } uselistorder i8 0, { 1, 2, 3, 0, 4 } uselistorder i8 2, { 1, 0 } uselistorder i8 4, { 1, 0 } uselistorder label LBL_14, { 3, 0, 1, 2 } uselistorder label LBL_6, { 1, 2, 3, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
nfs_permission_4416
nfs_permission
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i32* %arg1 to i64 %4 = trunc i64 %arg2 to i32 %5 = call i64 @FUNC(i64 %3, i64 0) %6 = icmp eq i32 %4, 0 store i64 0, i64* %storemerge.in.reg2mem br i1 %6, label LBL_17, label LBL_1 LBL_1: %7 = trunc i64 %2 to i32 %8 = icmp eq i64* %arg3, null br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = urem i32 %7, 2 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_9, label LBL_3 LBL_3: %12 = trunc i64 %1 to i32 %13 = and i32 %12, 61440 %14 = icmp eq i32 %13, 40960 store i64 0, i64* %storemerge.in.reg2mem br i1 %14, label LBL_17, label LBL_4 LBL_4: %15 = icmp ugt i32 %13, 40960 br i1 %15, label LBL_9, label LBL_5 LBL_5: %16 = icmp eq i32 %13, 16384 br i1 %16, label LBL_8, label LBL_6 LBL_6: %17 = icmp eq i32 %13, 32768 %18 = icmp eq i1 %17, false br i1 %18, label LBL_9, label LBL_7 LBL_7: %19 = call i64 @FUNC(i64 %3, i64 1) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 %or.cond = or i1 %8, %21 %22 = and i32 %7, 2 %23 = icmp eq i32 %22, 0 %or.cond7 = or i1 %23, %or.cond store i64 0, i64* %storemerge.in.reg2mem br i1 %or.cond7, label LBL_9, label LBL_17 LBL_8: %24 = and i64 %arg2, 6 %25 = icmp eq i64 %24, 2 store i64 0, i64* %storemerge.in.reg2mem br i1 %25, label LBL_17, label LBL_9 LBL_9: %sext = mul i64 %arg2, 4294967296 %26 = ashr exact i64 %sext, 32 %27 = call i64 @FUNC() %28 = call i64 @FUNC(i64 %3) %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_14, label LBL_10 LBL_10: %32 = call i64 @FUNC(i64 %3) %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = zext i32 %34 to i64 %36 = call i64 @FUNC(i64 %35, i64 0) %37 = call i64 @FUNC(i64 %36) %38 = trunc i64 %37 to i32 %39 = icmp eq i32 %38, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_12, label LBL_11 LBL_11: %41 = trunc i64 %26 to i32 %42 = call i64 @FUNC(i64 %3, i64 %36, i32 %41) %43 = call i64 @FUNC(i64 %36) store i64 %42, i64* %sv_0.0.reg2mem br label LBL_13 LBL_12: %44 = call i64 @FUNC(i64 %36) store i64 %44, i64* %sv_0.0.reg2mem br label LBL_13 LBL_13: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %45 = call i64 @FUNC() store i64 %sv_0.0.reload, i64* %storemerge.in.reg2mem br label LBL_17 LBL_14: %46 = call i64 @FUNC(i64 %3) %47 = and i64 %46, 4294967295 %48 = call i64 @FUNC(i64 %47, i64 %3) %49 = trunc i64 %48 to i32 %50 = icmp eq i32 %49, 0 %51 = icmp eq i1 %50, false store i64 %48, i64* %sv_0.2.reg2mem br i1 %51, label LBL_16, label LBL_15 LBL_15: %52 = and i64 %26, 4294967295 %53 = call i64 @FUNC(i64 %3, i64 %52, i64 0) store i64 %53, i64* %sv_0.2.reg2mem br label LBL_16 LBL_16: %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem %54 = call i64 @FUNC() store i64 %sv_0.2.reload, i64* %storemerge.in.reg2mem br label LBL_17 LBL_17: %storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem %storemerge = and i64 %storemerge.in.reload, 4294967295 ret i64 %storemerge uselistorder i64 %36, { 2, 1, 0, 3 } uselistorder i64 %26, { 1, 0 } uselistorder i32 %13, { 1, 2, 0, 3 } uselistorder i32 %7, { 1, 0 } uselistorder i64 %3, { 1, 4, 2, 0, 3, 5, 6, 7 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.in.reg2mem, { 0, 6, 3, 2, 1, 4, 5 } uselistorder i64* %0, { 1, 0 } uselistorder i64 ()* @unlock_kernel, { 1, 0 } uselistorder i64 1, { 2, 0, 1 } uselistorder i32 2, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 0, 4, 5, 6 } uselistorder label LBL_17, { 5, 1, 4, 0, 3, 2 } uselistorder label LBL_9, { 0, 1, 3, 4, 2 } }
0
BinRealVul
cirrus_bitblt_videotovideo_copy_1635
cirrus_bitblt_videotovideo_copy
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i64 0) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 0, i64* %storemerge.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = trunc i64 %1 to i32 %7 = add i64 %2, 12 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %2, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i64 %2, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = add i64 %2, 16 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = sub i32 %15, %18 %20 = sub i32 %6, %18 %21 = zext i32 %12 to i64 %22 = zext i32 %19 to i64 %23 = call i64 @FUNC(i64 %2, i32 %20, i64 %22, i64 %21, i32 %9) store i64 %23, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 4, 2, 3, 1, 0, 5 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
nand_getio_908
nand_getio
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge2.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.06.reg2mem = alloca i32 %.in.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_5, label LBL_1 LBL_1: %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_5, label LBL_2 LBL_2: %11 = add i64 %2, 8 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = add i64 %2, 28 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = urem i32 %16, 32 %18 = icmp eq i32 %17, 0 %notmask = shl nsw i32 -1, %17 %19 = sub i32 0, %notmask %phitmp = sub i32 %19, 1 %storemerge = select i1 %18, i32 0, i32 %phitmp %20 = and i32 %storemerge, %13 %21 = add i64 %2, 12 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = add i32 %20, %23 store i32 0, i32* %22, align 4 %25 = add i64 %2, 32 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, 0 %29 = add i64 %2, 20 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = urem i32 %31, 32 %33 = shl i32 1, %32 br i1 %28, label LBL_4, label LBL_3 LBL_3: %34 = sub i32 %33, %24 %35 = bitcast i64* %arg1 to i32* store i32 %34, i32* %35, align 4 br label LBL_5 LBL_4: %36 = add i64 %2, 24 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = urem i32 %38, 32 %40 = shl i32 1, %39 %41 = sub i32 %33, %24 %42 = add i32 %41, %40 %43 = bitcast i64* %arg1 to i32* store i32 %42, i32* %43, align 4 br label LBL_5 LBL_5: %44 = add i64 %2, 36 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false store i64 0, i64* %storemerge2.reg2mem br i1 %48, label LBL_13, label LBL_6 LBL_6: %49 = bitcast i64* %rdi to i32* %50 = load i32, i32* %49, align 8 %51 = icmp eq i32 %50, 0 %52 = icmp slt i32 %50, 0 %53 = icmp eq i1 %52, false %54 = icmp eq i1 %51, false %55 = icmp eq i1 %53, %54 store i64 0, i64* %storemerge2.reg2mem br i1 %55, label LBL_7, label LBL_13 LBL_7: %56 = add i64 %2, 16 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = icmp eq i32 %58, 0 %60 = icmp eq i1 %59, false store i64 0, i64* %sv_0.0.lcssa.reg2mem br i1 %60, label LBL_8, label LBL_11 LBL_8: %61 = add i64 %2, 40 %62 = inttoptr i64 %61 to i64* %63 = load i64, i64* %62, align 8 store i32 %58, i32* %.in.reg2mem store i32 0, i32* %sv_0.06.reg2mem br label LBL_9 LBL_9: %sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem %.in.reload = load i32, i32* %.in.reg2mem %64 = add i32 %.in.reload, -1 %65 = sext i32 %64 to i64 %66 = mul i64 %65, 4 %67 = add i64 %66, %63 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = mul i32 %64, 8 %71 = and i32 %70, 24 %72 = shl i32 %69, %71 %73 = or i32 %72, %sv_0.06.reload %74 = icmp eq i32 %64, 0 %75 = icmp eq i1 %74, false store i32 %64, i32* %.in.reg2mem store i32 %73, i32* %sv_0.06.reg2mem br i1 %75, label LBL_9, label LBL_10 LBL_10: %phitmp7 = zext i32 %73 to i64 store i64 %phitmp7, i64* %sv_0.0.lcssa.reg2mem br label LBL_11 LBL_11: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %76 = add i64 %2, 4 %77 = inttoptr i64 %76 to i32* %78 = load i32, i32* %77, align 4 %79 = icmp eq i32 %78, 1 store i64 %sv_0.0.lcssa.reload, i64* %storemerge2.reg2mem br i1 %79, label LBL_13, label LBL_12 LBL_12: %80 = add i64 %2, 8 %81 = inttoptr i64 %80 to i32* %82 = load i32, i32* %81, align 4 %83 = add i32 %82, %58 store i32 %83, i32* %81, align 4 %84 = add i64 %2, 40 %85 = inttoptr i64 %84 to i64* %86 = load i64, i64* %85, align 8 %87 = load i32, i32* %57, align 4 %88 = sext i32 %87 to i64 %89 = mul i64 %88, 4 %90 = add i64 %89, %86 store i64 %90, i64* %85, align 8 %91 = load i32, i32* %49, align 8 %92 = load i32, i32* %57, align 4 %93 = sub i32 %91, %92 %94 = bitcast i64* %arg1 to i32* store i32 %93, i32* %94, align 4 store i64 %sv_0.0.lcssa.reload, i64* %storemerge2.reg2mem br label LBL_13 LBL_13: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem ret i64 %storemerge2.reload uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 } uselistorder i32 %73, { 1, 0 } uselistorder i32 %64, { 0, 3, 1, 2 } uselistorder i32 %58, { 1, 0, 2 } uselistorder i32 %50, { 1, 0 } uselistorder i64 %2, { 6, 9, 8, 7, 11, 10, 0, 1, 2, 3, 5, 4, 12 } uselistorder i32* %.in.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i64 40, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i64 4, { 0, 2, 1, 3 } uselistorder i1 false, { 2, 0, 3, 1, 4, 5, 6 } uselistorder i32 0, { 4, 0, 2, 5, 6, 7, 8, 9, 3, 1, 10, 11, 12 } uselistorder i64* %arg1, { 1, 0, 2, 3 } uselistorder label LBL_13, { 1, 0, 3, 2 } uselistorder label LBL_9, { 1, 0 } }
0
BinRealVul
inet_listen_opts_7701
inet_listen_opts
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca %addrinfo* %.pre-phi39.reg2mem = alloca i64* %storemerge726.reg2mem = alloca i32 %storemerge.in28.reg2mem = alloca i64 %storemerge29.reg2mem = alloca i32 %.pre-phi41.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg3 to i64 %5 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca %addrinfo*, align 8 %sv_4 = alloca i32, align 4 %sv_5 = alloca i64, align 8 %sv_6 = alloca i64, align 8 %sv_7 = alloca i64, align 8 %6 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 48) store i64 33, i64* %sv_6, align 8 %7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %10 = icmp eq i64 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i64 48, i64 %3, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_3: %sext = mul i64 %arg2, 4294967296 %13 = ashr exact i64 %sext, 32 %14 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %15 = call i64 @FUNC(i64* nonnull %sv_5, i64 33, i64 %14) %16 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %17 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 0) %18 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0) %19 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64 0) %20 = trunc i64 %13 to i32 %21 = icmp eq i32 %20, 0 br i1 %21, label LBL_3.LBL_11_crit_edge, label LBL_5 LBL_4: %.pre40 = bitcast i64* %sv_5 to i8* store i8* %.pre40, i8** %.pre-phi41.reg2mem br label LBL_11 LBL_5: %22 = ptrtoint i32* %sv_4 to i64 %23 = bitcast i32* %sv_4 to i64* %24 = call i64 @FUNC(i64* nonnull %sv_5, i64* nonnull %23, i64 10) %25 = trunc i64 %24 to i32 %26 = icmp slt i32 %25, 0 %27 = icmp eq i1 %26, false br i1 %27, label LBL_7, label LBL_6 LBL_6: %28 = ptrtoint i64* %sv_5 to i64 %29 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_6, i64 0, i64 0), i64 %28, i64 %22, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_7: %30 = load i32, i32* %sv_4, align 4 %31 = icmp ult i32 %30, 65536 br i1 %31, label LBL_8, label LBL_9 LBL_8: %32 = sext i32 %30 to i64 %33 = add nsw i64 %13, %32 %34 = icmp ult i64 %33, 65536 br i1 %34, label LBL_10, label LBL_9 LBL_9: %35 = ptrtoint i64* %sv_5 to i64 %36 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_7, i64 0, i64 0), i64 %35, i64 %22, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_10: %37 = add i32 %30, %20 %38 = zext i32 %37 to i64 %39 = bitcast i64* %sv_5 to i8* %40 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %39, i32 33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_8, i64 0, i64 0), i64 %38) store i8* %39, i8** %.pre-phi41.reg2mem br label LBL_11 LBL_11: %41 = inttoptr i64 %16 to i8* %.pre-phi41.reload = load i8*, i8** %.pre-phi41.reg2mem %42 = load i8, i8* %41, align 1 %43 = icmp eq i8 %42, 0 %44 = select i1 %43, i8* null, i8* %41 %45 = bitcast i64* %sv_6 to %addrinfo* %46 = call i32 @getaddrinfo(i8* %44, i8* nonnull %.pre-phi41.reload, %addrinfo* nonnull %45, %addrinfo** nonnull %sv_3) %47 = icmp eq i32 %46, 0 br i1 %47, label LBL_13, label LBL_12 LBL_12: %48 = call i8* @gai_strerror(i32 %46) %49 = ptrtoint i8* %48 to i64 %50 = ptrtoint i64* %sv_5 to i64 %51 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_9, i64 0, i64 0), i64 %16, i64 %50, i64 %49, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_13: %52 = load %addrinfo*, %addrinfo** %sv_3, align 8 %53 = ptrtoint %addrinfo* %52 to i64 %storemerge27 = trunc i64 %53 to i32 %54 = icmp eq i32 %storemerge27, 0 %55 = icmp eq i1 %54, false store %addrinfo* %52, %addrinfo** %.reg2mem br i1 %55, label LBL_14, label LBL_29 LBL_14: %56 = ptrtoint i64* %sv_7 to i64 %57 = trunc i64 %17 to i32 %58 = add i64 %56, -16 %59 = inttoptr i64 %58 to i64* %60 = bitcast i64* %sv_1 to i8* %61 = bitcast i64* %sv_2 to i8* %62 = icmp eq i32 %57, 0 %63 = add i32 %57, %20 store i32 %storemerge27, i32* %storemerge29.reg2mem store i64 %53, i64* %storemerge.in28.reg2mem br label LBL_15 LBL_15: %storemerge.in28.reload = load i64, i64* %storemerge.in28.reg2mem %storemerge29.reload = load i32, i32* %storemerge29.reg2mem %sext10 = mul i64 %storemerge.in28.reload, 4294967296 %64 = ashr exact i64 %sext10, 32 %65 = add nsw i64 %64, 16 %66 = inttoptr i64 %65 to i32* %67 = load i32, i32* %66, align 4 %68 = add nsw i64 %64, 24 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 store i64 3, i64* %59, align 8 %71 = inttoptr i64 %70 to %sockaddr* %72 = call i32 @getnameinfo(%sockaddr* %71, i32 %67, i8* nonnull %60, i32 46, i8* nonnull %61, i32 32, i32 %storemerge29.reload) %73 = add nsw i64 %64, 12 %74 = inttoptr i64 %73 to i32* %75 = load i32, i32* %74, align 4 %76 = add nsw i64 %64, 8 %77 = inttoptr i64 %76 to i32* %78 = load i32, i32* %77, align 4 %79 = add nsw i64 %64, 4 %80 = inttoptr i64 %79 to i32* %81 = load i32, i32* %80, align 4 %82 = zext i32 %78 to i64 %83 = zext i32 %81 to i64 %84 = call i64 @FUNC(i64 %83, i64 %82, i32 %75) %85 = trunc i64 %84 to i32 %86 = icmp slt i32 %85, 0 %87 = icmp eq i1 %86, false br i1 %87, label LBL_18, label LBL_16 LBL_16: %88 = add nsw i64 %64, 40 %89 = inttoptr i64 %88 to i64* %90 = load i64, i64* %89, align 8 %91 = icmp eq i64 %90, 0 %92 = icmp eq i1 %91, false store i64* %89, i64** %.pre-phi39.reg2mem br i1 %92, label LBL_27, label LBL_17 LBL_17: %93 = call i32* @__errno_location() %94 = load i32, i32* %93, align 4 %95 = zext i32 %94 to i64 %96 = call i64 @FUNC(i64 %4, i64 %95, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_10, i64 0, i64 0)) store i64* %89, i64** %.pre-phi39.reg2mem br label LBL_27 LBL_18: %97 = and i64 %84, 4294967295 %98 = call i64 @FUNC(i64 %97) %99 = load i32, i32* %80, align 4 %100 = icmp eq i32 %99, 10 %101 = icmp eq i1 %100, false br i1 %101, label LBL_20, label LBL_19 LBL_19: store i32 0, i32* %sv_0, align 4 %102 = call i64 @FUNC(i64 %97, i64 41, i64 26, i32* nonnull %sv_0, i64 4) br label LBL_20 LBL_20: %103 = call i64 @FUNC(i64 %64) %104 = trunc i64 %103 to i32 %storemerge8.in = select i1 %62, i32 %104, i32 %63 %105 = icmp slt i32 %storemerge8.in, %104 %.pre42 = add nsw i64 %64, 40 %.pre43 = inttoptr i64 %.pre42 to i64* store i32 %104, i32* %storemerge726.reg2mem br i1 %105, label LBL_26, label LBL_21 LBL_21: %storemerge726.reload = load i32, i32* %storemerge726.reg2mem %106 = zext i32 %storemerge726.reload to i64 %107 = call i64 @FUNC(i64 %64, i64 %106) %108 = load i32, i32* %66, align 4 %109 = load i64, i64* %69, align 8 %110 = inttoptr i64 %109 to %sockaddr* %111 = call i32 @bind(i32 %85, %sockaddr* %110, i32 %108) %112 = icmp eq i32 %111, 0 br i1 %112, label LBL_30, label LBL_22 LBL_22: %113 = icmp eq i32 %storemerge726.reload, %storemerge8.in %114 = icmp eq i1 %113, false br i1 %114, label LBL_25, label LBL_23 LBL_23: %115 = load i64, i64* %.pre43, align 8 %116 = icmp eq i64 %115, 0 %117 = icmp eq i1 %116, false br i1 %117, label LBL_25, label LBL_24 LBL_24: %118 = call i32* @__errno_location() %119 = load i32, i32* %118, align 4 %120 = zext i32 %119 to i64 %121 = call i64 @FUNC(i64 %4, i64 %120, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_11, i64 0, i64 0)) br label LBL_25 LBL_25: %122 = add i32 %storemerge726.reload, 1 %123 = icmp sgt i32 %122, %storemerge8.in store i32 %122, i32* %storemerge726.reg2mem br i1 %123, label LBL_26, label LBL_21 LBL_26: %124 = call i32 @close(i32 %85) store i64* %.pre43, i64** %.pre-phi39.reg2mem br label LBL_27 LBL_27: %.pre-phi39.reload = load i64*, i64** %.pre-phi39.reg2mem %125 = load i64, i64* %.pre-phi39.reload, align 8 %storemerge = trunc i64 %125 to i32 %126 = icmp eq i32 %storemerge, 0 %127 = icmp eq i1 %126, false store i32 %storemerge, i32* %storemerge29.reg2mem store i64 %125, i64* %storemerge.in28.reg2mem br i1 %127, label LBL_15, label LBL_28 LBL_28: %.pre = load %addrinfo*, %addrinfo** %sv_3, align 8 store %addrinfo* %.pre, %addrinfo** %.reg2mem br label LBL_29 LBL_29: %.reload = load %addrinfo*, %addrinfo** %.reg2mem call void @freeaddrinfo(%addrinfo* %.reload) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_30: %128 = call i32 @listen(i32 %85, i32 1) %129 = icmp eq i32 %128, 0 br i1 %129, label LBL_32, label LBL_31 LBL_31: %130 = call i32* @__errno_location() %131 = load i32, i32* %130, align 4 %132 = zext i32 %131 to i64 %133 = call i64 @FUNC(i64 %4, i64 %132, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_12, i64 0, i64 0)) %134 = call i32 @close(i32 %85) %135 = load %addrinfo*, %addrinfo** %sv_3, align 8 call void @freeaddrinfo(%addrinfo* %135) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_33 LBL_32: %136 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1, i64 4199441) %137 = call i64 @FUNC(i64 %64) %138 = sub i64 %137, %13 %139 = and i64 %138, 4294967295 %140 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 %139, i64 4199441) %141 = load i32, i32* %80, align 4 %142 = icmp eq i32 %141, 10 %143 = zext i1 %142 to i64 %144 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64 %143, i64 4199441) %145 = load i32, i32* %80, align 4 %146 = icmp eq i32 %145, 10 %147 = icmp eq i1 %146, false %148 = zext i1 %147 to i64 %149 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 %148, i64 4199441) %150 = load %addrinfo*, %addrinfo** %sv_3, align 8 call void @freeaddrinfo(%addrinfo* %150) store i64 %97, i64* %rax.0.reg2mem br label LBL_33 LBL_33: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %storemerge8.in, { 1, 2, 0 } uselistorder i32 %85, { 0, 1, 3, 2, 4 } uselistorder i64 %64, { 0, 3, 1, 4, 2, 5, 6, 7, 9, 8 } uselistorder i64 %22, { 1, 0 } uselistorder i64 %13, { 1, 0, 2 } uselistorder i64* %sv_6, { 0, 2, 1 } uselistorder i64* %sv_5, { 4, 1, 5, 6, 2, 0, 3 } uselistorder i32* %sv_4, { 1, 2, 0 } uselistorder %addrinfo** %sv_3, { 3, 2, 0, 1, 4 } uselistorder i64 %5, { 0, 1, 2, 3, 4, 5, 8, 7, 6, 9, 10 } uselistorder i64 %4, { 5, 4, 3, 2, 1, 0, 6 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i32* %storemerge29.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.in28.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge726.reg2mem, { 2, 0, 1 } uselistorder %addrinfo** %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1, 7 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64, i64)* @qemu_opt_set_bool, { 1, 0 } uselistorder void (%addrinfo*)* @freeaddrinfo, { 2, 1, 0 } uselistorder i32 (i32)* @close, { 1, 0 } uselistorder i64 (i64)* @inet_getport, { 1, 0 } uselistorder i64 (i64, i64, i8*)* @error_setg_errno, { 2, 1, 0 } uselistorder i8 0, { 1, 2, 3, 0 } uselistorder i64 (i64, i8*, i64)* @qemu_opt_get_bool, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @error_setg, { 3, 2, 1, 0 } uselistorder i64 (i64, i8*)* @qemu_opt_get, { 3, 2, 1, 0 } uselistorder i64 33, { 1, 0 } uselistorder label LBL_27, { 2, 1, 0 } uselistorder label LBL_21, { 1, 0 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_9, { 1, 0 } }
1
BinRealVul
wcsdup_17969
wcsdup
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = inttoptr i64 %arg1 to i32* %1 = call i32 @wcslen(i32* %0) %2 = add i32 %1, 1 %3 = mul i32 %2, 4 %4 = call i64* @malloc(i32 %3) %5 = icmp eq i64* %4, null %6 = icmp eq i1 %5, false store i64 0, i64* %storemerge.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_1: %7 = bitcast i64* %4 to i32* %8 = call i32* @wmemcpy(i32* %7, i32* %0, i32 %2) %9 = ptrtoint i32* %8 to i64 store i64 %9, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %4, { 1, 0 } uselistorder i32 %2, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
ap_device_probe_10381
ap_device_probe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = call i64 @FUNC(i64 %0) %4 = inttoptr i64 %1 to i64* store i64 %3, i64* %4, align 8 %5 = call i64 @FUNC(i64* nonnull @gv_0) %6 = add i64 %1, 8 %7 = call i64 @FUNC(i64 %6, i64* nonnull @gv_1) %8 = call i64 @FUNC(i64* nonnull @gv_0) %9 = inttoptr i64 %3 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 %storemerge = select i1 %11, i32 -19, i32 %2 %12 = icmp eq i32 %storemerge, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64* nonnull @gv_0) %sext = mul i64 %1, 4294967296 %14 = ashr exact i64 %sext, 32 %15 = add nsw i64 %14, 8 %16 = call i64 @FUNC(i64 %15) %17 = call i64 @FUNC(i64* nonnull @gv_0) br label LBL_2 LBL_2: %18 = zext i32 %storemerge to i64 ret i64 %18 uselistorder i64 %1, { 0, 2, 3, 1 } uselistorder i64 (i64*)* @spin_unlock_bh, { 1, 0 } uselistorder i64 (i64*)* @spin_lock_bh, { 1, 0 } }
0
BinRealVul
do_proc_douintvec_minmax_conv_5443
do_proc_douintvec_minmax_conv
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %arg3 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_6, label LBL_1 LBL_1: %4 = icmp ult i64* %arg1, inttoptr (i64 4294967296 to i64*) store i64 4294967274, i64* %rax.0.reg2mem br i1 %4, label LBL_2, label LBL_7 LBL_2: %5 = ptrtoint i64* %arg4 to i64 %6 = ptrtoint i64* %arg1 to i64 %7 = trunc i64 %5 to i32 %8 = icmp ne i64* %arg4, null %9 = trunc i64 %6 to i32 %10 = icmp ugt i32 %7, %9 %or.cond = icmp eq i1 %8, %10 store i64 4294967262, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_7, label LBL_3 LBL_3: %11 = add i64 %5, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = inttoptr i64 %13 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp ult i32 %16, %9 store i64 4294967262, i64* %rax.0.reg2mem br i1 %17, label LBL_7, label LBL_5 LBL_5: %18 = bitcast i64* %arg2 to i32* store i32 %9, i32* %18, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %19 = and i64 %1, 4294967295 store i64 %19, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %5, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1, 5 } uselistorder i64 4294967262, { 1, 0 } uselistorder i64* %arg1, { 0, 2, 1 } uselistorder label LBL_7, { 2, 1, 3, 0, 4 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
update_wrap_reference_7457
update_wrap_reference
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge1119.reg2mem = alloca i32 %.reg2mem33 = alloca i64 %storemerge1020.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %storemerge1222.reg2mem = alloca i64 %.reg2mem31 = alloca i32 %.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg4 to i64 %4 = icmp eq i64* %arg4, inttoptr (i64 -1 to i64*) %5 = icmp eq i1 %4, false store i64 %3, i64* %sv_2.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = add i64 %3, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 store i64 %8, i64* %sv_2.0.reg2mem br label LBL_2 LBL_2: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %9 = icmp eq i64 %sv_2.0.reload, -1 %10 = icmp eq i1 %9, false store i64 0, i64* %rax.0.reg2mem br i1 %10, label LBL_3, label LBL_23 LBL_3: %11 = trunc i64 %2 to i32 %12 = trunc i64 %1 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp sgt i32 %11, 62 %or.cond = or i1 %13, %14 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_23, label LBL_4 LBL_4: %15 = ptrtoint i64* %arg2 to i64 %16 = add i64 %15, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = icmp eq i64 %18, -1 %20 = icmp eq i1 %19, false store i64 0, i64* %rax.0.reg2mem br i1 %20, label LBL_23, label LBL_5 LBL_5: %21 = urem i32 %11, 64 %22 = icmp eq i32 %21, 0 %23 = zext i32 %21 to i64 %notmask = shl nsw i64 -1, %23 %24 = sub i64 0, %notmask %.op = sub i64 %24, 1 %25 = select i1 %22, i64 0, i64 %.op %26 = and i64 %sv_2.0.reload, %25 %27 = add i64 %15, 20 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = add i64 %15, 24 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = zext i32 %32 to i64 %34 = call i64 @FUNC(i64 60, i64 %33, i32 %29) %35 = shl i64 1, %23 %storemerge4 = select i1 %22, i64 1, i64 %35 %36 = add i32 %11, 61 %37 = urem i32 %36, 64 %38 = icmp eq i32 %37, 0 %39 = zext i32 %37 to i64 %40 = shl i64 1, %39 %storemerge5 = select i1 %38, i64 1, i64 %40 %41 = sub i64 %storemerge4, %storemerge5 %42 = icmp slt i64 %26, %41 store i32 1, i32* %storemerge13.reg2mem br i1 %42, label LBL_7, label LBL_6 LBL_6: %43 = trunc i64 %storemerge5 to i32 %44 = urem i32 %43, 64 %45 = icmp eq i32 %44, 0 %46 = zext i32 %44 to i64 %47 = shl i64 1, %46 %storemerge6 = select i1 %45, i64 1, i64 %47 %48 = load i32, i32* %28, align 4 %49 = load i32, i32* %31, align 4 %50 = zext i32 %49 to i64 %51 = call i64 @FUNC(i64 60, i64 %50, i32 %48) %sext7 = mul i64 %51, 4294967296 %52 = ashr exact i64 %sext7, 32 %53 = sub i64 %storemerge6, %52 %54 = icmp slt i64 %26, %53 %spec.select = select i1 %54, i32 1, i32 2 store i32 %spec.select, i32* %storemerge13.reg2mem br label LBL_7 LBL_7: %sext3 = mul i64 %34, 4294967296 %55 = ashr exact i64 %sext3, 32 %56 = sub i64 %26, %55 %storemerge13.reload = load i32, i32* %storemerge13.reg2mem %57 = trunc i64 %arg3 to i32 %58 = ptrtoint i32* %arg1 to i64 %59 = call i64 @FUNC(i64 %58, i64 0, i32 %57) %60 = icmp eq i64 %59, 0 %61 = icmp eq i1 %60, false store i64 %59, i64* %storemerge1222.reg2mem br i1 %61, label LBL_13, label LBL_8 LBL_8: %62 = call i64 @FUNC(i64 %58) %63 = add i64 %58, 8 %64 = inttoptr i64 %63 to i64* %65 = load i64, i64* %64, align 8 %sext8 = mul i64 %62, 4294967296 %66 = ashr exact i64 %sext8, 29 %67 = add i64 %66, %65 %68 = inttoptr i64 %67 to i64* %69 = load i64, i64* %68, align 8 %70 = add i64 %69, 8 %71 = inttoptr i64 %70 to i64* %72 = load i64, i64* %71, align 8 %73 = icmp eq i64 %72, -1 %74 = icmp eq i1 %73, false br i1 %74, label LBL_12, label LBL_9 LBL_9: %75 = add i64 %58, 4 %76 = inttoptr i64 %75 to i32* %77 = load i32, i32* %76, align 4 %78 = icmp eq i32 %77, 0 store i64 1, i64* %rax.0.reg2mem br i1 %78, label LBL_23, label LBL_10 LBL_10: %79 = inttoptr i64 %65 to i64* %80 = load i64, i64* %79, align 8 %81 = add i64 %80, 8 %82 = inttoptr i64 %81 to i64* store i64 %56, i64* %82, align 8 %83 = load i64, i64* %64, align 8 %84 = inttoptr i64 %83 to i64* %85 = load i64, i64* %84, align 8 %86 = add i64 %85, 16 %87 = inttoptr i64 %86 to i32* store i32 %storemerge13.reload, i32* %87, align 4 %88 = load i32, i32* %76, align 4 %89 = icmp ugt i32 %88, 1 store i64 1, i64* %.reg2mem store i32 1, i32* %.reg2mem31 store i64 1, i64* %rax.0.reg2mem br i1 %89, label LBL_11, label LBL_23 LBL_11: %.reload32 = load i32, i32* %.reg2mem31 %.reload = load i64, i64* %.reg2mem %.pre = load i64, i64* %64, align 8 %90 = mul i64 %.reload, 8 %91 = add i64 %90, %.pre %92 = inttoptr i64 %91 to i64* %93 = load i64, i64* %92, align 8 %94 = add i64 %93, 8 %95 = inttoptr i64 %94 to i64* store i64 %56, i64* %95, align 8 %96 = load i64, i64* %64, align 8 %97 = add i64 %96, %90 %98 = inttoptr i64 %97 to i64* %99 = load i64, i64* %98, align 8 %100 = add i64 %99, 16 %101 = inttoptr i64 %100 to i32* store i32 %storemerge13.reload, i32* %101, align 4 %102 = add i32 %.reload32, 1 %103 = load i32, i32* %76, align 4 %104 = zext i32 %103 to i64 %105 = sext i32 %102 to i64 %106 = icmp slt i64 %105, %104 store i64 %105, i64* %.reg2mem store i32 %102, i32* %.reg2mem31 store i64 1, i64* %rax.0.reg2mem br i1 %106, label LBL_11, label LBL_23 LBL_12: store i64 %72, i64* %17, align 8 %107 = load i64, i64* %64, align 8 %108 = add i64 %107, %66 %109 = inttoptr i64 %108 to i64* %110 = load i64, i64* %109, align 8 %111 = add i64 %110, 16 %112 = inttoptr i64 %111 to i32* %113 = load i32, i32* %112, align 4 %114 = add i64 %15, 16 %115 = inttoptr i64 %114 to i32* store i32 %113, i32* %115, align 4 store i64 1, i64* %rax.0.reg2mem br label LBL_23 LBL_13: %storemerge1222.reload = load i64, i64* %storemerge1222.reg2mem %116 = inttoptr i64 %storemerge1222.reload to i64* %117 = load i64, i64* %116, align 8 %118 = icmp eq i64 %117, -1 br i1 %118, label LBL_15, label LBL_14 LBL_14: %119 = add i64 %storemerge1222.reload, 8 %120 = inttoptr i64 %119 to i32* %121 = load i32, i32* %120, align 4 store i64 %117, i64* %sv_1.0.reg2mem store i32 %121, i32* %sv_0.0.reg2mem br label LBL_16 LBL_15: %122 = call i64 @FUNC(i64 %58, i64 %storemerge1222.reload, i32 %57) %123 = icmp eq i64 %122, 0 %124 = icmp eq i1 %123, false store i64 %122, i64* %storemerge1222.reg2mem store i64 %56, i64* %sv_1.0.reg2mem store i32 %storemerge13.reload, i32* %sv_0.0.reg2mem br i1 %124, label LBL_13, label LBL_16 LBL_16: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %125 = add i64 %58, 8 %126 = inttoptr i64 %125 to i64* store i64 %59, i64* %storemerge1020.reg2mem br label LBL_17 LBL_17: %storemerge1020.reload = load i64, i64* %storemerge1020.reg2mem %127 = inttoptr i64 %storemerge1020.reload to i64* %128 = load i64, i64* %127, align 8 %129 = icmp eq i64 %sv_1.0.reload, %128 br i1 %129, label LBL_22, label LBL_18 LBL_18: %130 = add i64 %storemerge1020.reload, 12 %131 = inttoptr i64 %130 to i32* %132 = load i32, i32* %131, align 4 %133 = icmp eq i32 %132, 0 br i1 %133, label LBL_21, label LBL_19 LBL_19: %134 = add i64 %storemerge1020.reload, 16 %135 = inttoptr i64 %134 to i64* store i64 0, i64* %.reg2mem33 store i32 0, i32* %storemerge1119.reg2mem br label LBL_20 LBL_20: %storemerge1119.reload = load i32, i32* %storemerge1119.reg2mem %.reload34 = load i64, i64* %.reg2mem33 %136 = load i64, i64* %126, align 8 %137 = load i64, i64* %135, align 8 %138 = mul i64 %.reload34, 4 %139 = add i64 %137, %138 %140 = inttoptr i64 %139 to i32* %141 = load i32, i32* %140, align 4 %142 = sext i32 %141 to i64 %143 = mul i64 %142, 8 %144 = add i64 %143, %136 %145 = inttoptr i64 %144 to i64* %146 = load i64, i64* %145, align 8 %147 = add i64 %146, 8 %148 = inttoptr i64 %147 to i64* store i64 %sv_1.0.reload, i64* %148, align 8 %149 = load i64, i64* %126, align 8 %150 = load i64, i64* %135, align 8 %151 = add i64 %150, %138 %152 = inttoptr i64 %151 to i32* %153 = load i32, i32* %152, align 4 %154 = sext i32 %153 to i64 %155 = mul i64 %154, 8 %156 = add i64 %155, %149 %157 = inttoptr i64 %156 to i64* %158 = load i64, i64* %157, align 8 %159 = add i64 %158, 16 %160 = inttoptr i64 %159 to i32* store i32 %sv_0.0.reload, i32* %160, align 4 %161 = add i32 %storemerge1119.reload, 1 %162 = load i32, i32* %131, align 4 %163 = zext i32 %162 to i64 %164 = sext i32 %161 to i64 %165 = icmp slt i64 %164, %163 store i64 %164, i64* %.reg2mem33 store i32 %161, i32* %storemerge1119.reg2mem br i1 %165, label LBL_20, label LBL_21 LBL_21: store i64 %sv_1.0.reload, i64* %127, align 8 %166 = add i64 %storemerge1020.reload, 8 %167 = inttoptr i64 %166 to i32* store i32 %sv_0.0.reload, i32* %167, align 4 br label LBL_22 LBL_22: %168 = call i64 @FUNC(i64 %58, i64 %storemerge1020.reload, i32 %57) %169 = icmp eq i64 %168, 0 %170 = icmp eq i1 %169, false store i64 %168, i64* %storemerge1020.reg2mem store i64 1, i64* %rax.0.reg2mem br i1 %170, label LBL_17, label LBL_23 LBL_23: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %138, { 1, 0 } uselistorder i32* %131, { 1, 0 } uselistorder i64 %storemerge1020.reload, { 4, 0, 2, 1, 3 } uselistorder i64 %sv_1.0.reload, { 2, 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64 %storemerge1222.reload, { 0, 2, 1 } uselistorder i64 %90, { 1, 0 } uselistorder i32* %76, { 2, 0, 1 } uselistorder i64* %64, { 3, 2, 1, 0, 4 } uselistorder i64 %58, { 4, 3, 5, 0, 2, 1, 6 } uselistorder i64 %56, { 0, 2, 1 } uselistorder i64 %26, { 2, 0, 1 } uselistorder i64 %23, { 1, 0 } uselistorder i64 %15, { 0, 2, 3, 1 } uselistorder i32 %11, { 1, 0, 2 } uselistorder i64 %sv_2.0.reload, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem31, { 2, 0, 1 } uselistorder i64* %storemerge1222.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge1020.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem33, { 1, 0, 2 } uselistorder i32* %storemerge1119.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 7, 2, 1, 4, 6, 5, 8 } uselistorder i64* %0, { 1, 0 } uselistorder i64 16, { 1, 2, 3, 4, 5, 0 } uselistorder i64 (i64, i64, i32)* @av_find_program_from_stream, { 2, 1, 0 } uselistorder i64 4294967296, { 0, 2, 1, 3 } uselistorder i64 (i64, i64, i32)* @av_rescale, { 1, 0 } uselistorder i64 1, { 2, 4, 1, 0, 5, 3, 7, 10, 8, 11, 9, 12, 6 } uselistorder i64 8, { 6, 0, 4, 1, 5, 7, 8, 2, 3, 9, 10, 11, 12 } uselistorder i64 -1, { 1, 2, 0, 3, 4, 5 } uselistorder label LBL_23, { 2, 6, 1, 0, 3, 5, 4, 7 } uselistorder label LBL_20, { 1, 0 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_11, { 1, 0 } }
1
BinRealVul
ne2000_receive_7393
ne2000_receive
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.112.reg2mem = alloca i64 %sv_2.113.reg2mem = alloca i64 %sv_0.214.reg2mem = alloca i32 %.reg2mem15 = alloca i32 %.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_4 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2) %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = urem i32 %5, 2 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false store i64 -1, i64* %rax.0.reg2mem br i1 %8, label LBL_26, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %3) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 store i64 -1, i64* %rax.0.reg2mem br i1 %11, label LBL_2, label LBL_26 LBL_2: %12 = ptrtoint i64* %arg2 to i64 %sext = mul i64 %arg3, 4294967296 %13 = ashr exact i64 %sext, 32 %14 = add i64 %3, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = and i32 %16, 16 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_14, label LBL_3 LBL_3: %20 = call i32 @memcmp(i64* %arg2, i64* inttoptr (i64 4202525 to i64*), i32 6) %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = load i32, i32* %15, align 4 %24 = and i32 %23, 4 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false store i64 %13, i64* %rax.0.reg2mem br i1 %26, label LBL_14, label LBL_26 LBL_5: %27 = trunc i64 %1 to i8 %28 = urem i8 %27, 2 %29 = icmp eq i8 %28, 0 br i1 %29, label LBL_8, label LBL_6 LBL_6: %30 = load i32, i32* %15, align 4 %31 = and i32 %30, 8 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i64 %13, i64* %rax.0.reg2mem br i1 %33, label LBL_7, label LBL_26 LBL_7: %34 = call i64 @FUNC(i64 %12) %35 = trunc i64 %34 to i32 %36 = udiv i64 %34, 8 %37 = urem i64 %36, 536870912 %38 = add i64 %3, 4120 %39 = add i64 %38, %37 %40 = inttoptr i64 %39 to i8* %41 = load i8, i8* %40, align 1 %42 = zext i8 %41 to i32 %43 = urem i32 %35, 8 %44 = shl i32 1, %43 %45 = and i32 %44, %42 %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false store i64 %13, i64* %rax.0.reg2mem br i1 %47, label LBL_14, label LBL_26 LBL_8: %48 = add i64 %3, 8 %49 = inttoptr i64 %48 to i8* %50 = load i8, i8* %49, align 1 %51 = icmp eq i8 %50, %27 %52 = icmp eq i1 %51, false store i64 %13, i64* %rax.0.reg2mem br i1 %52, label LBL_26, label LBL_9 LBL_9: %53 = add i64 %3, 10 %54 = inttoptr i64 %53 to i8* %55 = load i8, i8* %54, align 1 %56 = add i64 %12, 1 %57 = inttoptr i64 %56 to i8* %58 = load i8, i8* %57, align 1 %59 = icmp eq i8 %55, %58 %60 = icmp eq i1 %59, false store i64 %13, i64* %rax.0.reg2mem br i1 %60, label LBL_26, label LBL_10 LBL_10: %61 = add i64 %3, 12 %62 = inttoptr i64 %61 to i8* %63 = load i8, i8* %62, align 1 %64 = add i64 %12, 2 %65 = inttoptr i64 %64 to i8* %66 = load i8, i8* %65, align 1 %67 = icmp eq i8 %63, %66 %68 = icmp eq i1 %67, false store i64 %13, i64* %rax.0.reg2mem br i1 %68, label LBL_26, label LBL_11 LBL_11: %69 = add i64 %3, 14 %70 = inttoptr i64 %69 to i8* %71 = load i8, i8* %70, align 1 %72 = add i64 %12, 3 %73 = inttoptr i64 %72 to i8* %74 = load i8, i8* %73, align 1 %75 = icmp eq i8 %71, %74 %76 = icmp eq i1 %75, false store i64 %13, i64* %rax.0.reg2mem br i1 %76, label LBL_26, label LBL_12 LBL_12: %77 = add i64 %3, 16 %78 = inttoptr i64 %77 to i8* %79 = load i8, i8* %78, align 1 %80 = add i64 %12, 4 %81 = inttoptr i64 %80 to i8* %82 = load i8, i8* %81, align 1 %83 = icmp eq i8 %79, %82 %84 = icmp eq i1 %83, false store i64 %13, i64* %rax.0.reg2mem br i1 %84, label LBL_26, label LBL_13 LBL_13: %85 = add i64 %3, 18 %86 = inttoptr i64 %85 to i8* %87 = load i8, i8* %86, align 1 %88 = add i64 %12, 5 %89 = inttoptr i64 %88 to i8* %90 = load i8, i8* %89, align 1 %91 = icmp eq i8 %87, %90 store i64 %13, i64* %rax.0.reg2mem br i1 %91, label LBL_14, label LBL_26 LBL_14: %92 = trunc i64 %13 to i32 %93 = icmp sgt i32 %92, 59 store i64 %12, i64* %sv_1.0.reg2mem store i64 %13, i64* %sv_2.0.reg2mem br i1 %93, label LBL_16, label LBL_15 LBL_15: %94 = call i64* @memcpy(i64* nonnull %sv_4, i64* %arg2, i32 %92) %95 = sub i32 60, %92 %96 = ptrtoint i64* %sv_4 to i64 %97 = add i64 %13, %96 %98 = inttoptr i64 %97 to i64* %99 = call i64* @memset(i64* %98, i32 0, i32 %95) store i64 %96, i64* %sv_1.0.reg2mem store i64 60, i64* %sv_2.0.reg2mem br label LBL_16 LBL_16: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %100 = add i64 %3, 4104 %101 = inttoptr i64 %100 to i32* %102 = load i32, i32* %101, align 4 %103 = mul i32 %102, 256 %104 = icmp ult i32 %103, 4095 store i32 %103, i32* %sv_0.0.reg2mem br i1 %104, label LBL_18, label LBL_17 LBL_17: %105 = add i64 %3, 4108 %106 = inttoptr i64 %105 to i32* %107 = load i32, i32* %106, align 4 store i32 %107, i32* %sv_0.0.reg2mem br label LBL_18 LBL_18: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %108 = trunc i64 %sv_2.0.reload to i32 %109 = add i32 %108, 263 %110 = and i32 %109, -256 %111 = add i32 %sv_0.0.reload, %110 %112 = add i64 %3, 4112 %113 = inttoptr i64 %112 to i32* %114 = load i32, i32* %113, align 4 %115 = icmp ult i32 %111, %114 store i32 %111, i32* %sv_3.0.reg2mem br i1 %115, label LBL_20, label LBL_19 LBL_19: %116 = add i64 %3, 4108 %117 = inttoptr i64 %116 to i32* %118 = load i32, i32* %117, align 4 %119 = sub i32 %111, %114 %120 = add i32 %119, %118 store i32 %120, i32* %sv_3.0.reg2mem br label LBL_20 LBL_20: %121 = add i32 %108, 4 %sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem %122 = add i64 %3, 8 %123 = zext i32 %sv_0.0.reload to i64 %124 = add i64 %122, %123 %125 = inttoptr i64 %124 to i8* %126 = add i64 %3, 4128 %127 = inttoptr i64 %126 to i8* store i8 1, i8* %127, align 1 %128 = inttoptr i64 %sv_1.0.reload to i8* %129 = load i8, i8* %128, align 1 %130 = urem i8 %129, 2 %131 = icmp eq i8 %130, 0 %spec.store.select = select i1 %131, i8 1, i8 3 store i8 %spec.store.select, i8* %127, align 1 store i8 %spec.store.select, i8* %125, align 1 %132 = udiv i32 %sv_3.0.reload, 256 %133 = add i64 %124, 1 %134 = trunc i32 %132 to i8 %135 = inttoptr i64 %133 to i8* store i8 %134, i8* %135, align 1 %136 = add i64 %124, 2 %137 = trunc i32 %121 to i8 %138 = inttoptr i64 %136 to i8* store i8 %137, i8* %138, align 1 %139 = udiv i32 %121, 256 %140 = add i64 %124, 3 %141 = trunc i32 %139 to i8 %142 = inttoptr i64 %140 to i8* store i8 %141, i8* %142, align 1 %143 = icmp eq i32 %108, 0 %144 = icmp slt i32 %108, 0 %145 = icmp eq i1 %144, false %146 = icmp eq i1 %143, false %147 = icmp eq i1 %145, %146 br i1 %147, label LBL_21, label LBL_25 LBL_21: %148 = add i32 %sv_0.0.reload, 4 %149 = add i64 %3, 4108 %150 = inttoptr i64 %149 to i32* %.pre = load i32, i32* %113, align 4 store i32 %.pre, i32* %.reg2mem store i32 %108, i32* %.reg2mem15 store i32 %148, i32* %sv_0.214.reg2mem store i64 %sv_2.0.reload, i64* %sv_2.113.reg2mem store i64 %sv_1.0.reload, i64* %sv_1.112.reg2mem br label LBL_22 LBL_22: %sv_1.112.reload = load i64, i64* %sv_1.112.reg2mem %sv_2.113.reload = load i64, i64* %sv_2.113.reg2mem %sv_0.214.reload = load i32, i32* %sv_0.214.reg2mem %.reload16 = load i32, i32* %.reg2mem15 %.reload = load i32, i32* %.reg2mem %151 = icmp ult i32 %.reload, %sv_0.214.reload %152 = select i1 %151, i32 %sv_0.214.reload, i32 %.reload %153 = sub i32 %152, %sv_0.214.reload %154 = icmp ult i32 %153, %.reload16 %155 = sext i32 %153 to i64 %sv_5.0 = select i1 %154, i64 %155, i64 %sv_2.113.reload %156 = trunc i64 %sv_5.0 to i32 %157 = zext i32 %sv_0.214.reload to i64 %158 = add i64 %122, %157 %159 = inttoptr i64 %158 to i64* %160 = inttoptr i64 %sv_1.112.reload to i64* %161 = call i64* @memcpy(i64* %159, i64* %160, i32 %156) %162 = add i32 %sv_0.214.reload, %156 %163 = load i32, i32* %113, align 4 %164 = icmp eq i32 %162, %163 %165 = icmp eq i1 %164, false store i32 %162, i32* %sv_0.1.reg2mem br i1 %165, label LBL_24, label LBL_23 LBL_23: %166 = load i32, i32* %150, align 4 store i32 %166, i32* %sv_0.1.reg2mem br label LBL_24 LBL_24: %167 = and i64 %sv_5.0, 4294967295 %168 = add i64 %167, %sv_1.112.reload %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %169 = sub nsw i64 %sv_2.113.reload, %sv_5.0 %sext7 = mul i64 %169, 4294967296 %170 = ashr exact i64 %sext7, 32 %171 = trunc i64 %170 to i32 %172 = icmp eq i32 %171, 0 %173 = icmp slt i32 %171, 0 %174 = icmp eq i1 %173, false %175 = icmp eq i1 %172, false %176 = icmp eq i1 %174, %175 store i32 %163, i32* %.reg2mem store i32 %171, i32* %.reg2mem15 store i32 %sv_0.1.reload, i32* %sv_0.214.reg2mem store i64 %170, i64* %sv_2.113.reg2mem store i64 %168, i64* %sv_1.112.reg2mem br i1 %176, label LBL_22, label LBL_25 LBL_25: store i32 %132, i32* %101, align 4 %177 = add i64 %3, 4116 %178 = inttoptr i64 %177 to i32* %179 = load i32, i32* %178, align 4 %180 = or i32 %179, 1 store i32 %180, i32* %178, align 4 %181 = call i64 @FUNC(i64 %3) store i64 %arg3, i64* %rax.0.reg2mem br label LBL_26 LBL_26: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %171, { 0, 2, 1 } uselistorder i64 %sv_5.0, { 2, 1, 0 } uselistorder i32 %sv_0.214.reload, { 4, 3, 1, 0, 2 } uselistorder i64 %sv_2.113.reload, { 1, 0 } uselistorder i64 %sv_1.112.reload, { 1, 0 } uselistorder i32 %132, { 1, 0 } uselistorder i32* %113, { 1, 0, 2 } uselistorder i32 %111, { 1, 0, 2 } uselistorder i32 %108, { 0, 2, 1, 4, 3 } uselistorder i32 %sv_0.0.reload, { 1, 0, 2 } uselistorder i8 %27, { 1, 0 } uselistorder i32* %15, { 1, 0, 2 } uselistorder i64 %13, { 10, 9, 11, 5, 4, 3, 2, 1, 0, 6, 7, 8 } uselistorder i64 %12, { 0, 6, 5, 4, 3, 2, 1 } uselistorder i64 %3, { 8, 9, 10, 11, 12, 14, 13, 7, 15, 6, 5, 4, 3, 2, 1, 0, 16, 17, 18 } uselistorder i64* %sv_4, { 1, 0 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem15, { 1, 0, 2 } uselistorder i32* %sv_0.214.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.113.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.112.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 12, 6, 5, 4, 3, 2, 1, 7, 8, 9, 11, 10 } uselistorder i32 256, { 1, 2, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i64 8, { 2, 3, 0, 1 } uselistorder i8 0, { 1, 0 } uselistorder i64 -1, { 1, 0 } uselistorder i1 false, { 4, 2, 3, 0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } uselistorder i32 0, { 3, 4, 0, 1, 2, 5, 6, 7, 8, 9, 10, 11 } uselistorder label LBL_26, { 11, 5, 4, 3, 2, 1, 0, 6, 7, 8, 10, 9 } uselistorder label LBL_22, { 1, 0 } }
1
BinRealVul
decode_gain_info_15430
decode_gain_info
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.lcssa.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.1.lcssa12.reg2mem = alloca i32 %sv_0.0.lcssa.reg2mem = alloca i32 %sv_0.02.reg2mem = alloca i32 %storemerge.reg2mem = alloca i64 %sv_0.15.reg2mem = alloca i32 %sv_1.06.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 br label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_1, label LBL_2 LBL_2: %5 = ptrtoint i64* %arg2 to i64 %6 = call i64 @FUNC(i64 %0) %7 = trunc i64 %6 to i32 %sv_1.04 = add i32 %7, -1 %8 = icmp eq i32 %sv_1.04, 0 %9 = icmp eq i1 %8, false store i32 %sv_1.04, i32* %sv_1.06.reg2mem store i32 0, i32* %sv_0.15.reg2mem store i32 0, i32* %sv_0.1.lcssa12.reg2mem br i1 %9, label LBL_3, label LBL_9 LBL_3: %sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem %sv_1.06.reload = load i32, i32* %sv_1.06.reg2mem %10 = call i64 @FUNC(i64 %0, i64 3) %11 = call i64 @FUNC(i64 %0) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 store i64 4294967295, i64* %storemerge.reg2mem br i1 %13, label LBL_5, label LBL_4 LBL_4: %14 = call i64 @FUNC(i64 %0, i64 4) %15 = add i64 %14, 4294967289 %16 = and i64 %15, 4294967295 store i64 %16, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %17 = trunc i64 %10 to i32 %storemerge.reload = load i64, i64* %storemerge.reg2mem %18 = trunc i64 %storemerge.reload to i32 %19 = icmp sgt i32 %sv_0.15.reload, %17 store i32 %sv_0.15.reload, i32* %sv_0.02.reg2mem store i32 %sv_0.15.reload, i32* %sv_0.0.lcssa.reg2mem br i1 %19, label LBL_7, label LBL_6 LBL_6: %sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem %20 = add i32 %sv_0.02.reload, 1 %21 = sext i32 %sv_0.02.reload to i64 %22 = mul i64 %21, 4 %23 = add i64 %22, %5 %24 = inttoptr i64 %23 to i32* store i32 %18, i32* %24, align 4 %25 = icmp sgt i32 %20, %17 store i32 %20, i32* %sv_0.02.reg2mem store i32 %20, i32* %sv_0.0.lcssa.reg2mem br i1 %25, label LBL_7, label LBL_6 LBL_7: %sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem %sv_1.0 = add i32 %sv_1.06.reload, -1 %26 = icmp eq i32 %sv_1.0, 0 %27 = icmp eq i1 %26, false store i32 %sv_1.0, i32* %sv_1.06.reg2mem store i32 %sv_0.0.lcssa.reload, i32* %sv_0.15.reg2mem br i1 %27, label LBL_3, label LBL_8 LBL_8: %.lcssa = zext i32 %sv_1.0 to i64 %28 = icmp slt i32 %sv_0.0.lcssa.reload, 9 store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.lcssa12.reg2mem store i64 %.lcssa, i64* %rax.0.lcssa.reg2mem br i1 %28, label LBL_9, label LBL_11 LBL_9: %sv_0.1.lcssa12.reload = load i32, i32* %sv_0.1.lcssa12.reg2mem %29 = sext i32 %sv_0.1.lcssa12.reload to i64 store i64 %29, i64* %indvars.iv.reg2mem br label LBL_10 LBL_10: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %indvars.iv.next = add nsw i64 %indvars.iv.reload, 1 %30 = mul i64 %indvars.iv.reload, 4 %31 = add i64 %30, %5 %32 = inttoptr i64 %31 to i32* store i32 0, i32* %32, align 4 %exitcond = icmp eq i64 %indvars.iv.next, 9 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %31, i64* %rax.0.lcssa.reg2mem br i1 %exitcond, label LBL_11, label LBL_10 LBL_11: %rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem ret i64 %rax.0.lcssa.reload uselistorder i64 %indvars.iv.reload, { 1, 0 } uselistorder i32 %sv_1.0, { 1, 0, 2 } uselistorder i32 %17, { 1, 0 } uselistorder i64 %0, { 0, 2, 1, 3, 4 } uselistorder i32* %sv_1.06.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.lcssa12.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i64, i64)* @get_bits, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 0, { 3, 5, 4, 0, 1, 2, 6 } uselistorder i64 (i64)* @get_bits1, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
evtchn_from_irq_13237
evtchn_from_irq
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = and i64 %arg1, 4294967295 %2 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %3 = icmp ugt i32 %2, %0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %5 = call i64 @FUNC(i64 %1) %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 store i64 %8, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } }
1
BinRealVul
min_heap_dtor_5153
min_heap_dtor
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null store i64 %0, i64* %rax.0.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @free(i64* nonnull %arg1) store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
cpu_exec_init_16731
cpu_exec_init
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = load i64, i64* @gv_1, align 8 store i64 %3, i64* @gv_0, align 8 %4 = call i64 @FUNC() %5 = call i64 @FUNC() br label LBL_2 LBL_2: %6 = inttoptr i64 %arg1 to i64* store i64 0, i64* %6, align 8 store i64 ptrtoint (i64* @gv_2 to i64), i64* %sv_0.0.reg2mem store i32 0, i32* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i32, i32* %storemerge.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %7 = inttoptr i64 %sv_0.0.reload to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false %11 = add i32 %storemerge.reload, 1 store i64 %8, i64* %sv_0.0.reg2mem store i32 %11, i32* %storemerge.reg2mem br i1 %10, label LBL_3, label LBL_4 LBL_4: %12 = add i64 %arg1, 8 %13 = inttoptr i64 %12 to i32* store i32 %storemerge.reload, i32* %13, align 4 store i64 %arg1, i64* %7, align 8 ret i64 %sv_0.0.reload uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i32 %storemerge.reload, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge.reg2mem, { 1, 0, 2 } }
1
BinRealVul
qcow2_cache_create_15675
qcow2_cache_create
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge2.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %storemerge34.reg2mem = alloca i32 %.reg2mem21 = alloca i64 %.reg2mem19 = alloca i64 %storemerge5.reg2mem = alloca i32 %.reg2mem17 = alloca i64 %.reg2mem = alloca i64 %0 = trunc i64 %arg2 to i32 %1 = call i64 @FUNC(i64 16) %2 = inttoptr i64 %1 to i32* store i32 %0, i32* %2, align 4 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 29 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i64* store i64 %4, i64* %6, align 8 %7 = load i32, i32* %2, align 4 %8 = icmp eq i32 %7, 0 store i64 %1, i64* %storemerge2.reg2mem br i1 %8, label LBL_7, label LBL_1 LBL_1: %9 = ptrtoint i64* %arg1 to i64 %10 = add i64 %9, 8 %11 = inttoptr i64 %10 to i32* %12 = inttoptr i64 %10 to i64* store i64 %4, i64* %.reg2mem store i64 0, i64* %.reg2mem17 store i32 0, i32* %storemerge5.reg2mem br label LBL_2 LBL_2: %.reload18 = load i64, i64* %.reg2mem17 %.reload = load i64, i64* %.reg2mem %13 = load i32, i32* %11, align 4 %14 = load i64, i64* %12, align 8 %15 = mul i64 %.reload18, 8 %16 = add i64 %15, %.reload %17 = zext i32 %13 to i64 %18 = call i64 @FUNC(i64 %14, i64 %17) %19 = inttoptr i64 %16 to i64* store i64 %18, i64* %19, align 8 %20 = load i64, i64* %6, align 8 %21 = add i64 %20, %15 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp eq i64 %23, 0 %25 = load i32, i32* %2, align 4 br i1 %24, label LBL_3, label LBL_4 LBL_3: %26 = icmp eq i32 %25, 0 store i64 %20, i64* %.reg2mem19 store i64 0, i64* %.reg2mem21 store i32 0, i32* %storemerge34.reg2mem store i64 %20, i64* %.lcssa.reg2mem br i1 %26, label LBL_6, label LBL_5 LBL_4: %storemerge5.reload = load i32, i32* %storemerge5.reg2mem %27 = add i32 %storemerge5.reload, 1 %28 = zext i32 %25 to i64 %29 = sext i32 %27 to i64 %30 = icmp slt i64 %29, %28 store i64 %20, i64* %.reg2mem store i64 %29, i64* %.reg2mem17 store i32 %27, i32* %storemerge5.reg2mem store i64 %1, i64* %storemerge2.reg2mem br i1 %30, label LBL_2, label LBL_7 LBL_5: %storemerge34.reload = load i32, i32* %storemerge34.reg2mem %.reload22 = load i64, i64* %.reg2mem21 %.reload20 = load i64, i64* %.reg2mem19 %31 = mul i64 %.reload22, 8 %32 = add i64 %31, %.reload20 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = call i64 @FUNC(i64 %34) %36 = add i32 %storemerge34.reload, 1 %37 = load i32, i32* %2, align 4 %38 = zext i32 %37 to i64 %39 = sext i32 %36 to i64 %40 = icmp slt i64 %39, %38 %41 = load i64, i64* %6, align 8 store i64 %41, i64* %.reg2mem19 store i64 %39, i64* %.reg2mem21 store i32 %36, i32* %storemerge34.reg2mem store i64 %41, i64* %.lcssa.reg2mem br i1 %40, label LBL_5, label LBL_6 LBL_6: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %42 = call i64 @FUNC(i64 %.lcssa.reload) %43 = call i64 @FUNC(i64 %1) store i64 0, i64* %storemerge2.reg2mem br label LBL_7 LBL_7: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem ret i64 %storemerge2.reload uselistorder i32 %25, { 1, 0 } uselistorder i64 %20, { 2, 0, 1, 3 } uselistorder i64 %15, { 1, 0 } uselistorder i32* %2, { 2, 1, 0, 3 } uselistorder i64 %1, { 2, 0, 1, 4, 3 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem17, { 1, 0, 2 } uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem19, { 2, 0, 1 } uselistorder i64* %.reg2mem21, { 2, 0, 1 } uselistorder i32* %storemerge34.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge2.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64)* @g_free, { 1, 0 } uselistorder i32 0, { 0, 2, 1, 3, 4 } uselistorder i64 (i64)* @g_malloc0, { 1, 0 } uselistorder label LBL_7, { 2, 0, 1 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
set_error_response_5735
set_error_response
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 %1, i64* %rax.0.reg2mem br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = icmp eq i64* %arg1, null store i64 %0, i64* %rax.0.reg2mem br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = trunc i64 %arg2 to i32 %7 = bitcast i64* %arg1 to i32* store i32 %6, i32* %7, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
vorbis_parse_setup_hdr_modes_1993
vorbis_parse_setup_hdr_modes
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rdi.06.reg2mem = alloca i64 %r8.07.reg2mem = alloca i64 %r9.08.reg2mem = alloca i64 %storemerge39.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 6) %2 = trunc i64 %1 to i8 %3 = add i8 %2, 1 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i8* store i8 %3, i8* %5, align 1 %6 = zext i8 %3 to i64 %7 = mul i64 %6, 32 %8 = call i64 @FUNC(i64 %7) store i64 %8, i64* %arg1, align 8 %9 = load i8, i8* %5, align 1 %10 = zext i8 %9 to i64 %11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %10) %12 = load i8, i8* %5, align 1 %13 = icmp eq i8 %12, 0 store i64 0, i64* %storemerge.reg2mem br i1 %13, label LBL_5, label LBL_1 LBL_1: %14 = add i64 %0, 9 %15 = inttoptr i64 %14 to i8* store i32 0, i32* %storemerge39.reg2mem store i64 ptrtoint ([22 x i8]* @gv_0 to i64), i64* %rdi.06.reg2mem br label LBL_2 LBL_2: %rdi.06.reload = load i64, i64* %rdi.06.reg2mem %r8.07.reload = load i64, i64* %r8.07.reg2mem %r9.08.reload = load i64, i64* %r9.08.reg2mem %storemerge39.reload = load i32, i32* %storemerge39.reg2mem %16 = mul i32 %storemerge39.reload, 32 %17 = and i32 %16, 8160 %18 = zext i32 %17 to i64 %19 = add i64 %rdi.06.reload, %18 %20 = inttoptr i64 %19 to i8* %21 = call i64 @FUNC(i64 %0) %22 = trunc i64 %21 to i8 store i8 %22, i8* %20, align 1 %23 = call i64 @FUNC(i64 %0, i64 16) %24 = urem i64 %23, 256 %25 = add i64 %19, 8 %26 = inttoptr i64 %25 to i64* store i64 %24, i64* %26, align 8 %27 = call i64 @FUNC(i64 %0, i64 16) %28 = urem i64 %27, 256 %29 = add i64 %19, 16 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 %31 = call i64 @FUNC(i64 %0, i64 8) %32 = trunc i64 %31 to i8 %33 = add i64 %19, 24 %34 = inttoptr i64 %33 to i8* store i8 %32, i8* %34, align 1 %35 = load i8, i8* %15, align 1 %36 = icmp ugt i8 %35, %32 br i1 %36, label LBL_4, label LBL_3 LBL_3: %37 = add i64 %0, 16 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = urem i64 %31, 256 %41 = call i64 @FUNC(i64 %39, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %40, i64 %r8.07.reload, i64 %r9.08.reload) store i64 1, i64* %storemerge.reg2mem br label LBL_5 LBL_4: %42 = load i64, i64* %30, align 8 %43 = load i64, i64* %26, align 8 %44 = load i8, i8* %20, align 1 %45 = zext i8 %44 to i64 %46 = urem i64 %31, 256 %47 = urem i32 %storemerge39.reload, 256 %48 = zext i32 %47 to i64 %49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @gv_2, i64 0, i64 0), i64 %48, i64 %45, i64 %43, i64 %42, i64 %46) %50 = mul i32 %storemerge39.reload, 16777216 %sext = add i32 %50, 16777216 %51 = ashr exact i32 %sext, 24 %52 = load i8, i8* %5, align 1 %53 = trunc i32 %51 to i8 %54 = icmp ugt i8 %52, %53 store i32 %51, i32* %storemerge39.reg2mem store i64 %46, i64* %r9.08.reg2mem store i64 %42, i64* %r8.07.reg2mem store i64 ptrtoint ([70 x i8]* @gv_2 to i64), i64* %rdi.06.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %54, label LBL_2, label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %19, { 1, 2, 3, 0 } uselistorder i32 %storemerge39.reload, { 2, 0, 1 } uselistorder i8* %5, { 1, 0, 2, 3 } uselistorder i64 %0, { 1, 2, 3, 4, 5, 0, 6, 7 } uselistorder i32* %storemerge39.reg2mem, { 1, 0, 2 } uselistorder i64* %r9.08.reg2mem, { 1, 0 } uselistorder i64* %r8.07.reg2mem, { 1, 0 } uselistorder i64* %rdi.06.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 } uselistorder i32 16777216, { 1, 0 } uselistorder [70 x i8]* @gv_2, { 1, 0 } uselistorder i64 16, { 2, 3, 0, 1 } uselistorder i32 (i8*, ...)* @printf, { 1, 0 } uselistorder i64 0, { 0, 4, 5, 10, 6, 7, 1, 8, 9, 2, 3, 11 } uselistorder [22 x i8]* @gv_0, { 1, 0 } uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 } uselistorder label LBL_5, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
process_plane_11832
process_plane
define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %sv_0.5.lcssa.reg2mem = alloca i64 %sv_0.4.reg2mem = alloca i64 %sv_1.4.lcssa.reg2mem = alloca i32 %sv_2.4.lcssa.reg2mem = alloca i8* %sv_2.437.reg2mem = alloca i8* %sv_1.438.reg2mem = alloca i32 %sv_3.339.reg2mem = alloca i32 %sv_0.2.lcssa.reg2mem = alloca i64 %sv_1.3.lcssa.reg2mem = alloca i32 %sv_4.2.lcssa.reg2mem = alloca i32 %sv_2.3.lcssa.reg2mem = alloca i8* %sv_2.329.reg2mem = alloca i8* %sv_1.330.reg2mem = alloca i32 %sv_5.131.reg2mem = alloca i32 %sv_0.232.reg2mem = alloca i64 %sv_0.342.reg2mem = alloca i64 %sv_2.543.reg2mem = alloca i8* %sv_4.344.reg2mem = alloca i32 %sv_1.545.reg2mem = alloca i32 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_2.1.lcssa.reg2mem = alloca i8* %sv_2.118.reg2mem = alloca i8* %sv_1.119.reg2mem = alloca i32 %sv_3.120.reg2mem = alloca i32 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_1.0.lcssa.reg2mem = alloca i32 %sv_4.0.lcssa.reg2mem = alloca i32 %sv_2.0.lcssa.reg2mem = alloca i8* %sv_2.011.reg2mem = alloca i8* %sv_1.012.reg2mem = alloca i32 %sv_5.013.reg2mem = alloca i32 %sv_0.014.reg2mem = alloca i64 %sv_0.123.reg2mem = alloca i64 %sv_2.224.reg2mem = alloca i8* %sv_4.125.reg2mem = alloca i32 %sv_1.226.reg2mem = alloca i32 %sv_0.547.reg2mem = alloca i64 %sv_6.048.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp sgt i32 %arg3, 0 store i64 %0, i64* %sv_0.5.lcssa.reg2mem br i1 %1, label LBL_1, label LBL_19 LBL_1: %2 = ptrtoint i64* %arg4 to i64 %3 = mul i32 %arg2, 4 %4 = mul i32 %3, %arg3 %5 = sext i32 %4 to i64 %6 = icmp sgt i32 %arg2, 0 %wide.trip.count = zext i32 %arg3 to i64 store i64 0, i64* %indvars.iv.reg2mem store i64 0, i64* %sv_6.048.reg2mem store i64 %0, i64* %sv_0.547.reg2mem br label LBL_2 LBL_2: %sv_0.547.reload = load i64, i64* %sv_0.547.reg2mem %sv_6.048.reload = load i64, i64* %sv_6.048.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %7 = trunc i64 %indvars.iv.next to i32 %8 = mul i32 %3, %7 %9 = sext i32 %8 to i64 %10 = sub nsw i64 %5, %9 %11 = add i64 %10, %2 %12 = inttoptr i64 %11 to i8* %13 = icmp eq i64 %sv_6.048.reload, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: store i32 0, i32* %sv_1.226.reg2mem store i32 0, i32* %sv_4.125.reg2mem store i8* %12, i8** %sv_2.224.reg2mem store i64 %sv_0.547.reload, i64* %sv_0.123.reg2mem store i64 %sv_0.547.reload, i64* %sv_0.4.reg2mem br i1 %6, label LBL_5, label LBL_18 LBL_4: store i32 0, i32* %sv_1.545.reg2mem store i32 0, i32* %sv_4.344.reg2mem store i8* %12, i8** %sv_2.543.reg2mem store i64 %sv_0.547.reload, i64* %sv_0.342.reg2mem store i64 %sv_0.547.reload, i64* %sv_0.4.reg2mem br i1 %6, label LBL_12, label LBL_18 LBL_5: %sv_0.123.reload = load i64, i64* %sv_0.123.reg2mem %sv_2.224.reload = load i8*, i8** %sv_2.224.reg2mem %sv_4.125.reload = load i32, i32* %sv_4.125.reg2mem %sv_1.226.reload = load i32, i32* %sv_1.226.reg2mem %15 = inttoptr i64 %sv_0.123.reload to i8* %16 = load i8, i8* %15, align 1 %17 = zext i8 %16 to i32 %18 = urem i32 %17, 16 %19 = udiv i32 %17, 16 %20 = mul i32 %18, 16 %21 = or i32 %20, %19 %.off = add nsw i32 %21, -16 %22 = icmp ugt i32 %.off, 31 %spec.select6 = select i1 %22, i32 %19, i32 0 %sv_0.010 = add i64 %sv_0.123.reload, 1 %23 = icmp eq i32 %spec.select6, 0 %24 = icmp eq i1 %23, false store i64 %sv_0.010, i64* %sv_0.014.reg2mem store i32 %spec.select6, i32* %sv_5.013.reg2mem store i32 %sv_1.226.reload, i32* %sv_1.012.reg2mem store i8* %sv_2.224.reload, i8** %sv_2.011.reg2mem store i8* %sv_2.224.reload, i8** %sv_2.0.lcssa.reg2mem store i32 %sv_4.125.reload, i32* %sv_4.0.lcssa.reg2mem store i32 %sv_1.226.reload, i32* %sv_1.0.lcssa.reg2mem store i64 %sv_0.010, i64* %sv_0.0.lcssa.reg2mem br i1 %24, label LBL_6, label LBL_8 LBL_6: %sv_2.011.reload = load i8*, i8** %sv_2.011.reg2mem %sv_1.012.reload = load i32, i32* %sv_1.012.reg2mem %sv_5.013.reload = load i32, i32* %sv_5.013.reg2mem %sv_0.014.reload = load i64, i64* %sv_0.014.reg2mem %25 = inttoptr i64 %sv_0.014.reload to i8* %26 = load i8, i8* %25, align 1 store i8 %26, i8* %sv_2.011.reload, align 1 %27 = ptrtoint i8* %sv_2.011.reload to i64 %28 = add i64 %27, 4 %29 = inttoptr i64 %28 to i8* %30 = add i32 %sv_1.012.reload, 1 %31 = add i32 %sv_5.013.reload, -1 %sv_0.0 = add i64 %sv_0.014.reload, 1 %32 = icmp eq i32 %31, 0 %33 = icmp slt i32 %31, 0 %34 = icmp eq i1 %33, false %35 = icmp eq i1 %32, false %36 = icmp eq i1 %34, %35 store i64 %sv_0.0, i64* %sv_0.014.reg2mem store i32 %31, i32* %sv_5.013.reg2mem store i32 %30, i32* %sv_1.012.reg2mem store i8* %29, i8** %sv_2.011.reg2mem br i1 %36, label LBL_6, label LBL_7 LBL_7: %37 = zext i8 %26 to i32 store i8* %29, i8** %sv_2.0.lcssa.reg2mem store i32 %37, i32* %sv_4.0.lcssa.reg2mem store i32 %30, i32* %sv_1.0.lcssa.reg2mem store i64 %sv_0.0, i64* %sv_0.0.lcssa.reg2mem br label LBL_8 LBL_8: %spec.select = select i1 %22, i32 %18, i32 %21 %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem %sv_4.0.lcssa.reload = load i32, i32* %sv_4.0.lcssa.reg2mem %sv_2.0.lcssa.reload = load i8*, i8** %sv_2.0.lcssa.reg2mem %38 = icmp eq i32 %spec.select, 0 %39 = icmp eq i1 %38, false store i8* %sv_2.0.lcssa.reload, i8** %sv_2.1.lcssa.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.lcssa.reg2mem br i1 %39, label LBL_9, label LBL_11 LBL_9: %40 = trunc i32 %sv_4.0.lcssa.reload to i8 store i32 %spec.select, i32* %sv_3.120.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.119.reg2mem store i8* %sv_2.0.lcssa.reload, i8** %sv_2.118.reg2mem br label LBL_10 LBL_10: %sv_2.118.reload = load i8*, i8** %sv_2.118.reg2mem %sv_1.119.reload = load i32, i32* %sv_1.119.reg2mem %sv_3.120.reload = load i32, i32* %sv_3.120.reg2mem store i8 %40, i8* %sv_2.118.reload, align 1 %41 = ptrtoint i8* %sv_2.118.reload to i64 %42 = add i64 %41, 4 %43 = inttoptr i64 %42 to i8* %44 = add i32 %sv_1.119.reload, 1 %45 = add i32 %sv_3.120.reload, -1 %46 = icmp eq i32 %45, 0 %47 = icmp slt i32 %45, 0 %48 = icmp eq i1 %47, false %49 = icmp eq i1 %46, false %50 = icmp eq i1 %48, %49 store i32 %45, i32* %sv_3.120.reg2mem store i32 %44, i32* %sv_1.119.reg2mem store i8* %43, i8** %sv_2.118.reg2mem store i8* %43, i8** %sv_2.1.lcssa.reg2mem store i32 %44, i32* %sv_1.1.lcssa.reg2mem br i1 %50, label LBL_10, label LBL_11 LBL_11: %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %sv_2.1.lcssa.reload = load i8*, i8** %sv_2.1.lcssa.reg2mem %51 = icmp slt i32 %sv_1.1.lcssa.reload, %arg2 store i32 %sv_1.1.lcssa.reload, i32* %sv_1.226.reg2mem store i32 %sv_4.0.lcssa.reload, i32* %sv_4.125.reg2mem store i8* %sv_2.1.lcssa.reload, i8** %sv_2.224.reg2mem store i64 %sv_0.0.lcssa.reload, i64* %sv_0.123.reg2mem store i64 %sv_0.0.lcssa.reload, i64* %sv_0.4.reg2mem br i1 %51, label LBL_5, label LBL_18 LBL_12: %sv_0.342.reload = load i64, i64* %sv_0.342.reg2mem %sv_2.543.reload = load i8*, i8** %sv_2.543.reg2mem %sv_4.344.reload = load i32, i32* %sv_4.344.reg2mem %sv_1.545.reload = load i32, i32* %sv_1.545.reg2mem %52 = inttoptr i64 %sv_0.342.reload to i8* %53 = load i8, i8* %52, align 1 %54 = zext i8 %53 to i32 %55 = urem i32 %54, 16 %56 = udiv i32 %54, 16 %57 = mul i32 %55, 16 %58 = or i32 %57, %56 %.off5 = add nsw i32 %58, -16 %59 = icmp ugt i32 %.off5, 31 %spec.select8 = select i1 %59, i32 %56, i32 0 %sv_0.228 = add i64 %sv_0.342.reload, 1 %60 = icmp eq i32 %spec.select8, 0 %61 = icmp eq i1 %60, false store i64 %sv_0.228, i64* %sv_0.232.reg2mem store i32 %spec.select8, i32* %sv_5.131.reg2mem store i32 %sv_1.545.reload, i32* %sv_1.330.reg2mem store i8* %sv_2.543.reload, i8** %sv_2.329.reg2mem store i8* %sv_2.543.reload, i8** %sv_2.3.lcssa.reg2mem store i32 %sv_4.344.reload, i32* %sv_4.2.lcssa.reg2mem store i32 %sv_1.545.reload, i32* %sv_1.3.lcssa.reg2mem store i64 %sv_0.228, i64* %sv_0.2.lcssa.reg2mem br i1 %61, label LBL_13, label LBL_14 LBL_13: %sv_2.329.reload = load i8*, i8** %sv_2.329.reg2mem %sv_1.330.reload = load i32, i32* %sv_1.330.reg2mem %sv_5.131.reload = load i32, i32* %sv_5.131.reg2mem %sv_0.232.reload = load i64, i64* %sv_0.232.reg2mem %62 = inttoptr i64 %sv_0.232.reload to i8* %63 = load i8, i8* %62, align 1 %64 = zext i8 %63 to i32 %65 = urem i32 %64, 2 %66 = icmp ne i32 %65, 0 %67 = udiv i32 %64, 2 %68 = sext i1 %66 to i32 %storemerge = xor i32 %67, %68 %69 = mul i32 %sv_1.330.reload, 4 %70 = sext i32 %69 to i64 %71 = add i64 %sv_6.048.reload, %70 %72 = inttoptr i64 %71 to i8* %73 = load i8, i8* %72, align 1 %74 = trunc i32 %storemerge to i8 %75 = add i8 %73, %74 store i8 %75, i8* %sv_2.329.reload, align 1 %76 = ptrtoint i8* %sv_2.329.reload to i64 %77 = add i64 %76, 4 %78 = inttoptr i64 %77 to i8* %79 = add i32 %sv_1.330.reload, 1 %80 = add i32 %sv_5.131.reload, -1 %sv_0.2 = add i64 %sv_0.232.reload, 1 %81 = icmp eq i32 %80, 0 %82 = icmp slt i32 %80, 0 %83 = icmp eq i1 %82, false %84 = icmp eq i1 %81, false %85 = icmp eq i1 %83, %84 store i64 %sv_0.2, i64* %sv_0.232.reg2mem store i32 %80, i32* %sv_5.131.reg2mem store i32 %79, i32* %sv_1.330.reg2mem store i8* %78, i8** %sv_2.329.reg2mem store i8* %78, i8** %sv_2.3.lcssa.reg2mem store i32 %storemerge, i32* %sv_4.2.lcssa.reg2mem store i32 %79, i32* %sv_1.3.lcssa.reg2mem store i64 %sv_0.2, i64* %sv_0.2.lcssa.reg2mem br i1 %85, label LBL_13, label LBL_14 LBL_14: %spec.select7 = select i1 %59, i32 %55, i32 %58 %sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem %sv_1.3.lcssa.reload = load i32, i32* %sv_1.3.lcssa.reg2mem %sv_4.2.lcssa.reload = load i32, i32* %sv_4.2.lcssa.reg2mem %sv_2.3.lcssa.reload = load i8*, i8** %sv_2.3.lcssa.reg2mem %86 = icmp eq i32 %spec.select7, 0 %87 = icmp eq i1 %86, false store i8* %sv_2.3.lcssa.reload, i8** %sv_2.4.lcssa.reg2mem store i32 %sv_1.3.lcssa.reload, i32* %sv_1.4.lcssa.reg2mem br i1 %87, label LBL_15, label LBL_17 LBL_15: %88 = trunc i32 %sv_4.2.lcssa.reload to i8 store i32 %spec.select7, i32* %sv_3.339.reg2mem store i32 %sv_1.3.lcssa.reload, i32* %sv_1.438.reg2mem store i8* %sv_2.3.lcssa.reload, i8** %sv_2.437.reg2mem br label LBL_16 LBL_16: %sv_2.437.reload = load i8*, i8** %sv_2.437.reg2mem %sv_1.438.reload = load i32, i32* %sv_1.438.reg2mem %sv_3.339.reload = load i32, i32* %sv_3.339.reg2mem %89 = mul i32 %sv_1.438.reload, 4 %90 = sext i32 %89 to i64 %91 = add i64 %sv_6.048.reload, %90 %92 = inttoptr i64 %91 to i8* %93 = load i8, i8* %92, align 1 %94 = add i8 %93, %88 store i8 %94, i8* %sv_2.437.reload, align 1 %95 = ptrtoint i8* %sv_2.437.reload to i64 %96 = add i64 %95, 4 %97 = inttoptr i64 %96 to i8* %98 = add i32 %sv_1.438.reload, 1 %99 = add i32 %sv_3.339.reload, -1 %100 = icmp eq i32 %99, 0 %101 = icmp slt i32 %99, 0 %102 = icmp eq i1 %101, false %103 = icmp eq i1 %100, false %104 = icmp eq i1 %102, %103 store i32 %99, i32* %sv_3.339.reg2mem store i32 %98, i32* %sv_1.438.reg2mem store i8* %97, i8** %sv_2.437.reg2mem store i8* %97, i8** %sv_2.4.lcssa.reg2mem store i32 %98, i32* %sv_1.4.lcssa.reg2mem br i1 %104, label LBL_16, label LBL_17 LBL_17: %sv_1.4.lcssa.reload = load i32, i32* %sv_1.4.lcssa.reg2mem %sv_2.4.lcssa.reload = load i8*, i8** %sv_2.4.lcssa.reg2mem %105 = icmp slt i32 %sv_1.4.lcssa.reload, %arg2 store i32 %sv_1.4.lcssa.reload, i32* %sv_1.545.reg2mem store i32 %sv_4.2.lcssa.reload, i32* %sv_4.344.reg2mem store i8* %sv_2.4.lcssa.reload, i8** %sv_2.543.reg2mem store i64 %sv_0.2.lcssa.reload, i64* %sv_0.342.reg2mem store i64 %sv_0.2.lcssa.reload, i64* %sv_0.4.reg2mem br i1 %105, label LBL_12, label LBL_18 LBL_18: %sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %11, i64* %sv_6.048.reg2mem store i64 %sv_0.4.reload, i64* %sv_0.547.reg2mem store i64 %sv_0.4.reload, i64* %sv_0.5.lcssa.reg2mem br i1 %exitcond, label LBL_19, label LBL_2 LBL_19: %sv_0.5.lcssa.reload = load i64, i64* %sv_0.5.lcssa.reg2mem %106 = sub i64 %sv_0.5.lcssa.reload, %0 ret i64 %106 uselistorder i32 %sv_1.4.lcssa.reload, { 1, 0 } uselistorder i8* %sv_2.437.reload, { 1, 0 } uselistorder i8* %sv_2.3.lcssa.reload, { 1, 0 } uselistorder i32 %sv_4.2.lcssa.reload, { 1, 0 } uselistorder i32 %sv_1.3.lcssa.reload, { 1, 0 } uselistorder i64 %sv_0.232.reload, { 1, 0 } uselistorder i8* %sv_2.329.reload, { 1, 0 } uselistorder i1 %59, { 1, 0 } uselistorder i32 %55, { 1, 0 } uselistorder i32 %sv_1.1.lcssa.reload, { 1, 0 } uselistorder i8* %sv_2.118.reload, { 1, 0 } uselistorder i8* %sv_2.0.lcssa.reload, { 1, 0 } uselistorder i32 %sv_4.0.lcssa.reload, { 1, 0 } uselistorder i32 %sv_1.0.lcssa.reload, { 1, 0 } uselistorder i64 %sv_0.014.reload, { 1, 0 } uselistorder i8* %sv_2.011.reload, { 1, 0 } uselistorder i1 %22, { 1, 0 } uselistorder i32 %18, { 1, 0 } uselistorder i64 %sv_6.048.reload, { 1, 2, 0 } uselistorder i64 %sv_0.547.reload, { 1, 2, 0, 3 } uselistorder i32 %3, { 1, 0 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_6.048.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.547.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.226.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_4.125.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.224.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.123.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.014.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_5.013.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.012.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.011.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_4.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_3.120.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.119.reg2mem, { 1, 0, 2 } uselistorder i8** %sv_2.118.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.545.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_4.344.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.543.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.342.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.232.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_5.131.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.330.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.329.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_3.339.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.438.reg2mem, { 1, 0, 2 } uselistorder i8** %sv_2.437.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.4.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i32 -1, { 1, 0, 3, 2 } uselistorder i1 false, { 8, 4, 0, 9, 5, 1, 10, 6, 2, 11, 7, 3, 12 } uselistorder i32 %arg3, { 0, 2, 1 } uselistorder i32 %arg2, { 3, 2, 1, 0 } uselistorder label LBL_18, { 1, 0, 3, 2 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
coeff_unpack_golomb_13883
coeff_unpack_golomb
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = icmp eq i32 %2, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = trunc i64 %4 to i32 %7 = trunc i64 %arg2 to i32 %8 = mul i32 %2, %7 %9 = mul i32 %8, %6 %10 = add i32 %9, %arg3 %11 = ashr i32 %10, 2 %12 = mul i32 %11, %6 %phitmp = zext i32 %12 to i64 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i32 0, { 1, 0, 2, 3 } }
1
BinRealVul
_prolog_error_11516
_prolog_error
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %r8.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %.pre-phi4.reg2mem = alloca i8* %.pre-phi3.reg2mem = alloca i8* %.pre-phi.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_8, label LBL_3 LBL_2: %9 = bitcast i64* %sv_2 to i8* %10 = bitcast i64* %arg1 to i8* %11 = call i8* @strncpy(i8* nonnull %9, i8* %10, i32 256) store i8* %9, i8** %.pre-phi.reg2mem br label LBL_4 LBL_3: %12 = bitcast i64* %sv_2 to i8* %13 = inttoptr i64 %7 to i8* %14 = call i8* @strncpy(i8* nonnull %12, i8* %13, i32 256) store i8* %12, i8** %.pre-phi.reg2mem br label LBL_4 LBL_4: %.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem %15 = call i8* @strchr(i8* nonnull %.pre-phi.reload, i32 37) %16 = icmp eq i8* %15, null store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem br i1 %16, label LBL_9, label LBL_5 LBL_5: %17 = ptrtoint i8* %15 to i64 %18 = add i64 %17, 1 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = icmp eq i8 %20, 106 %22 = icmp eq i1 %21, false store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem br i1 %22, label LBL_9, label LBL_6 LBL_6: %23 = call i8* @strchr(i8* %19, i32 37) %24 = icmp eq i8* %23, null %25 = icmp eq i1 %24, false store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem br i1 %25, label LBL_9, label LBL_7 LBL_7: store i8 117, i8* %19, align 1 %26 = bitcast i64* %sv_1 to i8* %27 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %26, i32 256, i8* nonnull %.pre-phi.reload) %28 = call i8* @strncpy(i8* nonnull %.pre-phi.reload, i8* nonnull %26, i32 256) store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem br label LBL_9 LBL_8: %29 = add i64 %2, 16 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = bitcast i64* %sv_2 to i8* %33 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %32, i32 256, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i32 %31) store i8* %32, i8** %.pre-phi3.reg2mem br label LBL_9 LBL_9: %.pre-phi3.reload = load i8*, i8** %.pre-phi3.reg2mem %34 = load i8, i8* %.pre-phi3.reload, align 8 %35 = icmp eq i8 %34, 47 %36 = icmp eq i1 %35, false br i1 %36, label LBL_11, label LBL_10 LBL_10: %37 = ptrtoint i64* %sv_2 to i64 %38 = bitcast i64* %sv_0 to i8* %39 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %38, i32 4096, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_2) store i8* %38, i8** %.pre-phi4.reg2mem store i64 %37, i64* %rcx.0.reg2mem br label LBL_14 LBL_11: %40 = add i64 %2, 24 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = icmp eq i64 %42, 0 %44 = ptrtoint i64* %sv_2 to i64 %45 = bitcast i64* %sv_0 to i8* br i1 %43, label LBL_13, label LBL_12 LBL_12: %46 = inttoptr i64 %42 to i8* %47 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %45, i32 4096, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i8* %46, i64* nonnull %sv_2) store i8* %45, i8** %.pre-phi4.reg2mem store i64 %42, i64* %rcx.0.reg2mem store i64 %44, i64* %r8.0.reg2mem br label LBL_14 LBL_13: %48 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %45, i32 4096, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_2) store i8* %45, i8** %.pre-phi4.reg2mem store i64 %44, i64* %rcx.0.reg2mem br label LBL_14 LBL_14: %.pre-phi4.reload = load i8*, i8** %.pre-phi4.reg2mem %49 = call i32 (i8*, i32, ...) @open(i8* nonnull %.pre-phi4.reload, i32 1089) %50 = icmp eq i32 %49, -1 %51 = icmp eq i1 %50, false br i1 %51, label LBL_16, label LBL_15 LBL_15: %r8.0.reload = load i64, i64* %r8.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %52 = call i32* @__errno_location() %53 = load i32, i32* %52, align 4 %54 = zext i32 %53 to i64 %55 = call i64 @FUNC(i64 %54) %56 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_0, i64 %55, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1) store i64 %56, i64* %storemerge.reg2mem br label LBL_19 LBL_16: %57 = udiv i64 %arg2, 256 %58 = urem i64 %57, 256 %59 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %.pre-phi3.reload, i32 256, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_5, i64 0, i64 0), i64 %58) %60 = call i32 @strlen(i8* nonnull %.pre-phi3.reload) %61 = sext i32 %60 to i64 %62 = zext i32 %49 to i64 %63 = call i64 @FUNC(i64 %62, i64* nonnull %sv_2, i64 %61) %64 = add i64 %2, 36 %65 = inttoptr i64 %64 to i32* %66 = load i32, i32* %65, align 4 %67 = add i64 %2, 32 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = call i32 @fchown(i32 %49, i32 %69, i32 %66) %71 = icmp eq i32 %70, -1 %72 = icmp eq i1 %71, false br i1 %72, label LBL_18, label LBL_17 LBL_17: %73 = load i32, i32* %65, align 4 %74 = load i32, i32* %68, align 4 %75 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %.pre-phi3.reload, i32 256, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_6, i64 0, i64 0), i32 %74, i32 %73, i64 %1) br label LBL_18 LBL_18: %76 = call i32 @close(i32 %49) %77 = sext i32 %76 to i64 store i64 %77, i64* %storemerge.reg2mem br label LBL_19 LBL_19: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8* %45, { 1, 3, 0, 2 } uselistorder i64 %44, { 1, 0 } uselistorder i8* %15, { 1, 0 } uselistorder i8* %.pre-phi.reload, { 0, 4, 5, 1, 2, 3, 6 } uselistorder i64* %sv_2, { 5, 0, 2, 1, 3, 4, 6, 7, 8 } uselistorder i64 %2, { 3, 2, 4, 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i8** %.pre-phi4.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rcx.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 256, { 1, 0 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 4, 6, 3, 5, 2, 1, 0 } uselistorder i8* (i8*, i8*, i32)* @strncpy, { 2, 1, 0 } uselistorder i32 256, { 2, 3, 0, 4, 5, 1, 6 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_9, { 4, 3, 2, 1, 0 } }
1
BinRealVul
compare_by_coherent_set_key_13258
compare_by_coherent_set_key
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = bitcast i32* %arg1 to i64* %1 = call i32 @memcmp(i64* %0, i64* %arg2, i32 56) %2 = icmp eq i32 %1, 0 %3 = zext i1 %2 to i64 ret i64 %3 }
1
BinRealVul
rz_analysis_extract_vars_11993
rz_analysis_extract_vars
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i64* %arg1, null %4 = icmp eq i64* %arg2, null %or.cond = or i1 %3, %4 %5 = icmp eq i64* %arg3, null %or.cond3 = or i1 %or.cond, %5 %not.or.cond3 = icmp ne i1 %or.cond3, true %storemerge = zext i1 %not.or.cond3 to i64 %6 = call i64 @FUNC(i64 %storemerge) %7 = or i64 %storemerge, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 br i1 %or.cond3, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 %2, i64 %1, i64 %0, i64 %storemerge, i64* nonnull @gv_0, i64 0) %11 = call i64 @FUNC(i64 %2, i64 %1, i64 %0, i64 %storemerge, i64* nonnull @gv_1, i64 0) br label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %2, i64 %1, i64 %0, i64 %9, i64* nonnull @gv_0, i64 1) ret i64 %12 uselistorder i64 %storemerge, { 2, 3, 0, 1 } uselistorder i1 %or.cond3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64 (i64, i64, i64, i64, i64*, i64)* @extract_arg, { 2, 1, 0 } }
1
BinRealVul
stop_tco_16802
stop_tco
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 = trunc i64 %5 to i32 %7 = or i32 %6, 1 %8 = load i32, i32* %2, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %0, i64 %9, i32 %7) ret i64 %10 uselistorder i64 %0, { 1, 2, 0 } }
1
BinRealVul
qemu_bh_cancel_2394
qemu_bh_cancel
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i32* %arg1 to i64 store i32 0, i32* %arg1, align 4 ret i64 %0 }
0
BinRealVul
seq_decode_op3_14285
seq_decode_op3
define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i64 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg3 to i64 %3 = bitcast i64* %rdi to i32* %4 = trunc i64 %1 to i32 %5 = ptrtoint i32* %arg2 to i64 %6 = add i64 %5, 1 %7 = bitcast i32* %arg2 to i8* %8 = load i8, i8* %7, align 1 %9 = zext i8 %8 to i32 %10 = udiv i32 %9, 8 %11 = urem i32 %10, 8 %12 = mul i32 %11, %4 %13 = urem i32 %9, 8 %14 = add i32 %12, %13 %15 = add i64 %5, 2 %16 = sext i32 %14 to i64 %17 = add i64 %16, %2 %18 = inttoptr i64 %6 to i8* %19 = load i8, i8* %18, align 1 %20 = inttoptr i64 %17 to i8* store i8 %19, i8* %20, align 1 %21 = icmp sgt i8 %8, -1 store i64 %15, i64* %.reg2mem store i64 %15, i64* %.lcssa.reg2mem br i1 %21, label LBL_1, label LBL_2 LBL_1: %.reload = load i64, i64* %.reg2mem %.pre = load i32, i32* %3, align 8 %22 = add i64 %.reload, 1 %23 = inttoptr i64 %.reload to i8* %24 = load i8, i8* %23, align 1 %25 = zext i8 %24 to i32 %26 = udiv i32 %25, 8 %27 = urem i32 %26, 8 %28 = mul i32 %27, %.pre %29 = urem i32 %25, 8 %30 = add i32 %28, %29 %31 = add i64 %.reload, 2 %32 = sext i32 %30 to i64 %33 = add i64 %32, %2 %34 = inttoptr i64 %22 to i8* %35 = load i8, i8* %34, align 1 %36 = inttoptr i64 %33 to i8* store i8 %35, i8* %36, align 1 %37 = icmp sgt i8 %24, -1 store i64 %31, i64* %.reg2mem store i64 %31, i64* %.lcssa.reg2mem br i1 %37, label LBL_1, label LBL_2 LBL_2: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i32 %25, { 1, 0 } uselistorder i64 %.reload, { 0, 2, 1 } uselistorder i32 %9, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i8 -1, { 1, 0 } uselistorder i64 2, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
_color_blend_10351
_color_blend
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = and i64 %arg2, 4294967295 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 255 %4 = icmp eq i1 %3, false store i64 %0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_4 LBL_1: %5 = and i64 %arg1, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = icmp eq i32 %2, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_4 LBL_2: %9 = trunc i64 %6 to i32 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false store i64 %0, i64* %rax.0.reg2mem br i1 %11, label LBL_3, label LBL_4 LBL_3: %12 = sub i32 0, %2 %13 = mul i32 %9, %2 %14 = sub i32 0, %13 %15 = sext i32 %14 to i64 %16 = mul nsw i64 %15, -2139062143 %17 = udiv i64 %16, 4294967296 %18 = trunc i64 %17 to i32 %19 = sub i32 %18, %13 %20 = ashr i32 %19, 7 %21 = ashr i32 %14, 31 %22 = sub nsw i32 %20, %21 %23 = sub i32 %22, %2 %24 = sext i32 %13 to i64 %25 = mul nsw i64 %24, -2139062143 %26 = udiv i64 %25, 4294967296 %27 = trunc i64 %26 to i32 %28 = add i32 %13, %27 %29 = udiv i32 %28, 128 %30 = ashr i32 %13, 31 %31 = sub nsw i32 %29, %30 %32 = call i64 @FUNC(i64 %0) %33 = trunc i64 %32 to i32 %34 = mul i32 %33, %12 %35 = call i64 @FUNC(i64 %5) %36 = trunc i64 %35 to i32 %37 = mul i32 %22, %36 %38 = add i32 %37, %34 %39 = ashr i32 %38, 31 %40 = zext i32 %38 to i64 %41 = zext i32 %39 to i64 %42 = mul i64 %41, 4294967296 %43 = or i64 %42, %40 %44 = zext i32 %23 to i64 %45 = sdiv i64 %43, %44 %46 = trunc i64 %45 to i32 %47 = call i64 @FUNC(i64 %0) %48 = trunc i64 %47 to i32 %49 = mul i32 %48, %12 %50 = call i64 @FUNC(i64 %5) %51 = trunc i64 %50 to i32 %52 = mul i32 %22, %51 %53 = add i32 %52, %49 %54 = ashr i32 %53, 31 %55 = zext i32 %53 to i64 %56 = zext i32 %54 to i64 %57 = mul i64 %56, 4294967296 %58 = or i64 %57, %55 %59 = sdiv i64 %58, %44 %60 = trunc i64 %59 to i32 %61 = call i64 @FUNC(i64 %0) %62 = trunc i64 %61 to i32 %63 = mul i32 %62, %12 %64 = call i64 @FUNC(i64 %5) %65 = trunc i64 %64 to i32 %66 = mul i32 %22, %65 %67 = add i32 %66, %63 %68 = ashr i32 %67, 31 %69 = zext i32 %67 to i64 %70 = zext i32 %68 to i64 %71 = mul i64 %70, 4294967296 %72 = or i64 %71, %69 %73 = sdiv i64 %72, %44 %74 = trunc i64 %73 to i32 %75 = mul i32 %31, 16777216 %76 = mul i32 %46, 65536 %77 = add i32 %76, %75 %78 = mul i32 %60, 256 %79 = add i32 %77, %78 %80 = add i32 %79, %74 %81 = zext i32 %80 to i64 store i64 %81, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %13, { 2, 0, 1, 3, 4 } uselistorder i64 %5, { 1, 2, 3, 0, 4 } uselistorder i32 %2, { 2, 0, 3, 1, 4 } uselistorder i64 %0, { 2, 3, 4, 0, 1, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64)* @gdTrueColorGetBlue, { 1, 0 } uselistorder i64 (i64)* @gdTrueColorGetGreen, { 1, 0 } uselistorder i64 (i64)* @gdTrueColorGetRed, { 1, 0 } uselistorder i64 (i64)* @gdTrueColorGetAlpha, { 1, 0 } uselistorder label LBL_4, { 3, 0, 1, 2 } }
0
BinRealVul
hugetlbfs_statfs_12081
hugetlbfs_statfs
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1) %3 = add i64 %1, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) store i64 2508478710, i64* %arg2, align 8 %7 = call i64 @FUNC(i64 %6) %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = icmp eq i64 %2, 0 br i1 %10, label LBL_4, label LBL_1 LBL_1: %11 = inttoptr i64 %2 to i32* %12 = add i64 %2, 16 %13 = call i64 @FUNC(i64 %12) %14 = load i32, i32* %11, align 4 %15 = icmp slt i32 %14, 0 br i1 %15, label LBL_3, label LBL_2 LBL_2: %16 = sext i32 %14 to i64 %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i64* store i64 %16, i64* %18, align 8 %19 = add i64 %2, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = sext i32 %21 to i64 %23 = add i64 %0, 32 %24 = inttoptr i64 %23 to i64* store i64 %22, i64* %24, align 8 %25 = add i64 %0, 24 %26 = inttoptr i64 %25 to i64* store i64 %22, i64* %26, align 8 %27 = add i64 %2, 8 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = sext i32 %29 to i64 %31 = add i64 %0, 40 %32 = inttoptr i64 %31 to i64* store i64 %30, i64* %32, align 8 %33 = add i64 %2, 12 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = sext i32 %35 to i64 %37 = add i64 %0, 48 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 br label LBL_3 LBL_3: %39 = call i64 @FUNC(i64 %12) br label LBL_4 LBL_4: %40 = add i64 %0, 56 %41 = inttoptr i64 %40 to i64* store i64 255, i64* %41, align 8 ret i64 0 uselistorder i64 %0, { 5, 0, 1, 2, 3, 4, 6 } }
1
BinRealVul
BN_bn2dec_11872
BN_bn2dec
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.2.lcssa.reg2mem = alloca i8* %sv_0.27.reg2mem = alloca i8* %sv_0.38.reg2mem = alloca i8* %sv_1.19.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i8* %sv_0.110.reg2mem = alloca i8* %sv_1.0.lcssa.reg2mem = alloca i64 %sv_1.012.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i32* %arg1 to i64 %4 = call i64 @FUNC(i64 %3) %5 = call i64 @FUNC(i64 8) %6 = call i64 @FUNC(i64 0) %7 = icmp ne i64 %6, 0 %8 = icmp eq i64 %5, 0 %9 = icmp eq i1 %8, false %or.cond = icmp eq i1 %7, %9 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 1, i64 2) %11 = call i64 @FUNC(i64 %5) %12 = call i64 @FUNC(i64 0) br label LBL_17 LBL_2: %13 = call i64 @FUNC(i64 %3) %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_16, label LBL_3 LBL_3: %15 = inttoptr i64 %6 to i8* %16 = call i64 @FUNC(i64 %13) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = add i64 %6, 1 store i8 48, i8* %15, align 1 %20 = inttoptr i64 %19 to i8* store i8 0, i8* %20, align 1 br label LBL_15 LBL_5: %21 = call i64 @FUNC(i64 %13) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i8* %15, i8** %sv_0.0.reg2mem br i1 %23, label LBL_7, label LBL_6 LBL_6: %24 = add i64 %6, 1 %25 = inttoptr i64 %24 to i8* store i8 45, i8* %15, align 1 store i8* %25, i8** %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %26 = call i64 @FUNC(i64 %13) %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 store i64 %5, i64* %sv_1.012.reg2mem store i64 %5, i64* %sv_1.0.lcssa.reg2mem br i1 %28, label LBL_8, label LBL_9 LBL_8: %sv_1.012.reload = load i64, i64* %sv_1.012.reg2mem %29 = call i64 @FUNC(i64 %13, i64 1000000000) %30 = inttoptr i64 %sv_1.012.reload to i64* store i64 %29, i64* %30, align 8 %31 = add i64 %sv_1.012.reload, 8 %32 = call i64 @FUNC(i64 %13) %33 = trunc i64 %32 to i32 %34 = icmp eq i32 %33, 0 store i64 %31, i64* %sv_1.012.reg2mem store i64 %31, i64* %sv_1.0.lcssa.reg2mem br i1 %34, label LBL_8, label LBL_9 LBL_9: %sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem %35 = add i64 %sv_1.0.lcssa.reload, -8 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = ptrtoint i8* %sv_0.0.reload to i64 %39 = sub i64 %6, %38 %40 = call i64 @FUNC(i64 %38, i64 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %37, i64 %2, i64 %1) %41 = load i8, i8* %sv_0.0.reload, align 1 %42 = icmp eq i8 %41, 0 %43 = icmp eq i1 %42, false store i8* %sv_0.0.reload, i8** %sv_0.110.reg2mem store i8* %sv_0.0.reload, i8** %sv_0.1.lcssa.reg2mem br i1 %43, label LBL_10, label LBL_11 LBL_10: %sv_0.110.reload = load i8*, i8** %sv_0.110.reg2mem %44 = ptrtoint i8* %sv_0.110.reload to i64 %45 = add i64 %44, 1 %46 = inttoptr i64 %45 to i8* %47 = load i8, i8* %46, align 1 %48 = icmp eq i8 %47, 0 %49 = icmp eq i1 %48, false store i8* %46, i8** %sv_0.110.reg2mem store i8* %46, i8** %sv_0.1.lcssa.reg2mem br i1 %49, label LBL_10, label LBL_11 LBL_11: %sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem %50 = icmp eq i64 %35, %5 %51 = icmp eq i1 %50, false store i64 %35, i64* %sv_1.19.reg2mem store i8* %sv_0.1.lcssa.reload, i8** %sv_0.38.reg2mem br i1 %51, label LBL_12, label LBL_15 LBL_12: %sv_0.38.reload = load i8*, i8** %sv_0.38.reg2mem %sv_1.19.reload = load i64, i64* %sv_1.19.reg2mem %52 = add i64 %sv_1.19.reload, -8 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = ptrtoint i8* %sv_0.38.reload to i64 %56 = sub i64 %6, %55 %57 = call i64 @FUNC(i64 %55, i64 %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %54, i64 %2, i64 %1) %58 = load i8, i8* %sv_0.38.reload, align 1 %59 = icmp eq i8 %58, 0 %60 = icmp eq i1 %59, false store i8* %sv_0.38.reload, i8** %sv_0.27.reg2mem store i8* %sv_0.38.reload, i8** %sv_0.2.lcssa.reg2mem br i1 %60, label LBL_13, label LBL_14 LBL_13: %sv_0.27.reload = load i8*, i8** %sv_0.27.reg2mem %61 = ptrtoint i8* %sv_0.27.reload to i64 %62 = add i64 %61, 1 %63 = inttoptr i64 %62 to i8* %64 = load i8, i8* %63, align 1 %65 = icmp eq i8 %64, 0 %66 = icmp eq i1 %65, false store i8* %63, i8** %sv_0.27.reg2mem store i8* %63, i8** %sv_0.2.lcssa.reg2mem br i1 %66, label LBL_13, label LBL_14 LBL_14: %sv_0.2.lcssa.reload = load i8*, i8** %sv_0.2.lcssa.reg2mem %67 = icmp eq i64 %52, %5 %68 = icmp eq i1 %67, false store i64 %52, i64* %sv_1.19.reg2mem store i8* %sv_0.2.lcssa.reload, i8** %sv_0.38.reg2mem br i1 %68, label LBL_12, label LBL_15 LBL_15: %69 = call i64 @FUNC(i64 %5) %70 = call i64 @FUNC(i64 %13) store i64 %6, i64* %storemerge.reg2mem br label LBL_18 LBL_16: %71 = call i64 @FUNC(i64 %5) %72 = call i64 @FUNC(i64 0) br label LBL_17 LBL_17: %73 = call i64 @FUNC(i64 %6) store i64 0, i64* %storemerge.reg2mem br label LBL_18 LBL_18: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %55, { 1, 0 } uselistorder i64 %38, { 1, 0 } uselistorder i8* %sv_0.0.reload, { 0, 1, 3, 2 } uselistorder i8* %15, { 2, 0, 1 } uselistorder i64 %13, { 1, 3, 2, 0, 4, 5, 6 } uselistorder i64 %6, { 6, 0, 2, 1, 3, 4, 5, 7 } uselistorder i64 %5, { 3, 7, 6, 2, 0, 1, 4, 5 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_1.012.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.110.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.19.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.38.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.27.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @BIO_snprintf, { 1, 0 } uselistorder i8 0, { 2, 1, 3, 0, 4, 5 } uselistorder i32 0, { 1, 0, 2, 3, 4 } uselistorder i64 (i64)* @BN_is_zero, { 2, 0, 1 } uselistorder i64 (i64)* @BN_free, { 0, 2, 1 } uselistorder i64 (i64)* @OPENSSL_free, { 3, 0, 2, 1 } uselistorder i64 1, { 1, 2, 3, 4, 0 } uselistorder i1 false, { 5, 4, 2, 1, 6, 0, 3, 7 } uselistorder i64 (i64)* @OPENSSL_malloc, { 1, 0 } uselistorder i64 8, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_8, { 1, 0 } }
1
BinRealVul
mlxreg_hotplug_health_work_helper_18236
mlxreg_hotplug_health_work_helper
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.1.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.02.reg2mem = alloca i64 %sv_2.04.reg2mem = alloca i32 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_3 = alloca i32, align 4 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = icmp eq i32 %4, 0 store i64 0, i64* %rax.0.reg2mem store i64 %1, i64* %rdi.1.reg2mem br i1 %5, label LBL_13, label LBL_1 LBL_1: %6 = add i64 %1, 8 %7 = inttoptr i64 %6 to i64* %8 = bitcast i32* %sv_3 to i64* %9 = add i64 %0, 12 %10 = inttoptr i64 %9 to i32* %11 = add i64 %1, 16 %12 = inttoptr i64 %11 to i32* store i32 0, i32* %sv_2.04.reg2mem store i64 %0, i64* %sv_1.02.reg2mem br label LBL_2 LBL_2: %sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem %13 = inttoptr i64 %sv_1.02.reload to i32* %14 = load i32, i32* %13, align 4 %15 = load i64, i64* %7, align 8 %16 = zext i32 %14 to i64 %17 = call i64 @FUNC(i64 %15, i64 %16, i64 0) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false store i32 %18, i32* %sv_0.1.reg2mem store i64 %17, i64* %rax.0.reg2mem store i64 %15, i64* %rdi.1.reg2mem br i1 %20, label LBL_13, label LBL_3 LBL_3: %21 = load i32, i32* %13, align 4 %22 = load i64, i64* %7, align 8 %23 = zext i32 %21 to i64 %24 = call i64 @FUNC(i64 %22, i64 %23, i64* nonnull %8) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 %27 = icmp eq i1 %26, false store i32 %25, i32* %sv_0.1.reg2mem store i64 %24, i64* %rax.0.reg2mem store i64 %22, i64* %rdi.1.reg2mem br i1 %27, label LBL_13, label LBL_4 LBL_4: %sv_2.04.reload = load i32, i32* %sv_2.04.reg2mem %28 = add i64 %sv_1.02.reload, 4 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = load i32, i32* %sv_3, align 4 %32 = and i32 %31, %30 store i32 %32, i32* %sv_3, align 4 store i32 %32, i32* %10, align 4 %33 = load i32, i32* %sv_3, align 4 %34 = icmp eq i32 %33, 1 %35 = icmp eq i1 %34, false br i1 %35, label LBL_8, label LBL_5 LBL_5: %36 = add i64 %sv_1.02.reload, 8 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = add i32 %38, 1 store i32 %39, i32* %37, align 4 %40 = icmp eq i32 %38, 3 br i1 %40, label LBL_7, label LBL_6 LBL_6: %41 = load i32, i32* %12, align 4 %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false br i1 %43, label LBL_10, label LBL_7 LBL_7: %44 = call i64 @FUNC(i64 %22, i64 %sv_1.02.reload) %45 = add i64 %sv_1.02.reload, 12 %46 = inttoptr i64 %45 to i32* store i32 1, i32* %46, align 4 br label LBL_10 LBL_8: %47 = add i64 %sv_1.02.reload, 12 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = icmp eq i32 %49, 0 br i1 %50, label LBL_10, label LBL_9 LBL_9: %51 = call i64 @FUNC(i64 %sv_1.02.reload) store i32 0, i32* %48, align 4 %52 = add i64 %sv_1.02.reload, 8 %53 = inttoptr i64 %52 to i32* store i32 0, i32* %53, align 4 br label LBL_10 LBL_10: %54 = load i32, i32* %13, align 4 %55 = add i32 %54, 4 %56 = load i64, i64* %7, align 8 %57 = zext i32 %55 to i64 %58 = call i64 @FUNC(i64 %56, i64 %57, i64 0) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 %61 = icmp eq i1 %60, false store i32 %59, i32* %sv_0.1.reg2mem store i64 %58, i64* %rax.0.reg2mem store i64 %56, i64* %rdi.1.reg2mem br i1 %61, label LBL_13, label LBL_11 LBL_11: %62 = load i32, i32* %29, align 4 %63 = zext i32 %62 to i64 %64 = load i32, i32* %13, align 4 %65 = load i64, i64* %7, align 8 %66 = zext i32 %64 to i64 %67 = call i64 @FUNC(i64 %65, i64 %66, i64 %63) %68 = trunc i64 %67 to i32 %69 = icmp eq i32 %68, 0 %70 = icmp eq i1 %69, false store i32 %68, i32* %sv_0.1.reg2mem store i64 %67, i64* %rax.0.reg2mem store i64 %65, i64* %rdi.1.reg2mem br i1 %70, label LBL_13, label LBL_12 LBL_12: %71 = add i32 %sv_2.04.reload, 1 %72 = add i64 %sv_1.02.reload, 16 %73 = load i32, i32* %3, align 4 %74 = zext i32 %73 to i64 %75 = sext i32 %71 to i64 %76 = icmp slt i64 %75, %74 store i32 %71, i32* %sv_2.04.reg2mem store i64 %72, i64* %sv_1.02.reg2mem store i32 %68, i32* %sv_0.1.reg2mem store i64 %74, i64* %rax.0.reg2mem store i64 %65, i64* %rdi.1.reg2mem br i1 %76, label LBL_2, label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %77 = icmp eq i32 %sv_0.1.reload, 0 store i64 %rax.0.reload, i64* %rax.1.reg2mem br i1 %77, label LBL_15, label LBL_14 LBL_14: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %78 = call i64 @FUNC(i64 %rdi.1.reload, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0)) store i64 %78, i64* %rax.1.reg2mem br label LBL_15 LBL_15: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64 %22, { 1, 0, 2 } uselistorder i64 %sv_1.02.reload, { 8, 2, 5, 3, 1, 0, 4, 6, 7 } uselistorder i32* %3, { 1, 0 } uselistorder i32* %sv_3, { 2, 1, 0, 3 } uselistorder i64 %1, { 1, 2, 0 } uselistorder i32* %sv_2.04.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.02.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 5, 4, 3, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 4, 3, 2, 6 } uselistorder i64* %rdi.1.reg2mem, { 0, 1, 5, 4, 3, 2, 6 } uselistorder i64 (i64, i64, i64)* @regmap_write, { 2, 1, 0 } uselistorder label LBL_13, { 4, 0, 1, 2, 3, 5 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
cdrom_probe_device_3615
cdrom_probe_device
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 0) %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 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 0) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %spec.select = select i1 %6, i64 0, i64 100 ret i64 %spec.select LBL_2: ret i64 100 uselistorder i64 (i64, i8*, i64)* @strstart, { 1, 0 } }
0
BinRealVul
qemu_chr_open_14481
qemu_chr_open
define i64 @FUNC(i8* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i8* %arg2 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = load i64, i64* %sv_0, align 8 %5 = call i64 @FUNC(i64 %4) store i64 %5, i64* %rax.0.reg2mem br label LBL_6 LBL_2: %6 = ptrtoint i8* %arg1 to i64 %7 = call i64 @FUNC(i64 %6, i64 %0) %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_3, label LBL_6 LBL_3: %10 = call i64 @FUNC(i64 %7, i64 %arg3) %11 = icmp eq i64 %10, 0 store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_6, label LBL_4 LBL_4: %12 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 0) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i64 %10, i64* %rax.0.reg2mem br i1 %14, label LBL_6, label LBL_5 LBL_5: %15 = call i64 @FUNC(i64 %10, i64 1) store i64 %10, 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 %10, { 1, 2, 0, 3 } uselistorder i64* %sv_0, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 5 } uselistorder i64 1, { 1, 0 } uselistorder i32 0, { 2, 3, 0, 1, 4 } uselistorder i32 1, { 3, 1, 0, 2 } uselistorder label LBL_6, { 2, 1, 0, 3, 4 } }
1
BinRealVul
mongo_message_create_11014
mongo_message_create
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sext = mul i64 %arg1, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = trunc i64 %arg2 to i32 %sext5 = mul i64 %arg2, 4294967296 %2 = ashr exact i64 %sext5, 32 %3 = call i64 @FUNC(i64 %0) %4 = icmp eq i32 %1, 0 %5 = icmp eq i1 %4, false store i64 %2, i64* %sv_0.0.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i32 @rand() %7 = sext i32 %6 to i64 store i64 %7, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %8 = inttoptr i64 %3 to i32* %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %9 = trunc i64 %0 to i32 store i32 %9, i32* %8, align 4 %10 = trunc i64 %sv_0.0.reload to i32 %11 = add i64 %3, 4 %12 = inttoptr i64 %11 to i32* store i32 %10, i32* %12, align 4 %13 = trunc i64 %arg3 to i32 %14 = add i64 %3, 8 %15 = inttoptr i64 %14 to i32* store i32 %13, i32* %15, align 4 %16 = trunc i64 %arg4 to i32 %17 = add i64 %3, 12 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 ret i64 %3 }
1
BinRealVul
http_seek_internal_11705
http_seek_internal
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %1 = trunc i64 %arg3 to i32 %2 = add i64 %0, 40 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 store i64 0, i64* %sv_2, align 8 %5 = icmp eq i32 %1, 2 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = add i64 %0, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 store i64 %9, i64* %rax.0.reg2mem br label LBL_17 LBL_2: %10 = trunc i64 %arg4 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false %.pre11 = trunc i64 %arg3 to i32 br i1 %12, label LBL_5, label LBL_3 LBL_3: %13 = icmp eq i32 %.pre11, 1 %14 = icmp eq i64 %arg2, 0 %or.cond = icmp eq i1 %14, %13 store i64 %0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_17, label LBL_4 LBL_4: %15 = icmp eq i32 %.pre11, 0 %16 = icmp eq i64 %0, %arg2 %17 = icmp eq i1 %16, %15 store i64 %arg2, i64* %rax.0.reg2mem br i1 %17, label LBL_17, label LBL_5 LBL_5: %18 = add i64 %0, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = icmp eq i64 %20, -1 %22 = icmp eq i32 %.pre11, 2 %23 = icmp eq i1 %22, %21 store i64 -38, i64* %rax.0.reg2mem br i1 %23, label LBL_17, label LBL_6 LBL_6: %24 = icmp eq i32 %.pre11, 1 %25 = icmp eq i1 %24, false br i1 %25, label LBL_8, label LBL_7 LBL_7: %26 = add i64 %0, %arg2 store i64 %26, i64* %sv_0.0.reg2mem br label LBL_11 LBL_8: %27 = icmp eq i1 %22, false br i1 %27, label LBL_10, label LBL_9 LBL_9: %28 = add i64 %20, %arg2 store i64 %28, i64* %sv_0.0.reg2mem br label LBL_11 LBL_10: %29 = icmp eq i32 %.pre11, 0 store i64 %arg2, i64* %sv_0.0.reg2mem store i64 -22, i64* %rax.0.reg2mem br i1 %29, label LBL_11, label LBL_17 LBL_11: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %30 = icmp slt i64 %sv_0.0.reload, 0 %31 = icmp eq i1 %30, false store i64 -22, i64* %rax.0.reg2mem br i1 %31, label LBL_12, label LBL_17 LBL_12: store i64 %sv_0.0.reload, i64* %arg1, align 8 %32 = icmp eq i64* %arg1, null br i1 %32, label LBL_14, label LBL_13 LBL_13: %33 = inttoptr i64 %18 to i32* %34 = load i32, i32* %33, align 4 %35 = icmp eq i32 %34, 0 store i64 -38, i64* %rax.0.reg2mem br i1 %35, label LBL_14, label LBL_17 LBL_14: %36 = add i64 %0, 32 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %0, 24 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = sub i64 %38, %41 %43 = trunc i64 %42 to i32 %44 = inttoptr i64 %41 to i64* %45 = call i64* @memcpy(i64* nonnull %sv_1, i64* %44, i32 %43) store i64 0, i64* %3, align 8 %46 = call i64 @FUNC(i64 %0, i64* nonnull %sv_2) %47 = trunc i64 %46 to i32 %48 = icmp slt i32 %47, 0 %49 = icmp eq i1 %48, false %50 = call i64 @FUNC(i64* nonnull %sv_2) br i1 %49, label LBL_16, label LBL_15 LBL_15: %51 = add i64 %0, 16 %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 %54 = inttoptr i64 %53 to i64* %55 = call i64* @memcpy(i64* %54, i64* nonnull %sv_1, i32 %43) %56 = load i64, i64* %52, align 8 store i64 %56, i64* %40, align 8 %57 = load i64, i64* %52, align 8 %sext5 = mul i64 %42, 4294967296 %58 = ashr exact i64 %sext5, 32 %59 = add i64 %57, %58 store i64 %59, i64* %37, align 8 store i64 %4, i64* %3, align 8 store i64 %0, i64* %arg1, align 8 %sext6 = mul i64 %46, 4294967296 %60 = ashr exact i64 %sext6, 32 store i64 %60, i64* %rax.0.reg2mem br label LBL_17 LBL_16: %61 = call i64 @FUNC(i64 %4) store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i1 %22, { 1, 0 } uselistorder i32 %.pre11, { 0, 1, 2, 4, 3 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %0, { 4, 5, 6, 8, 7, 2, 9, 1, 0, 3, 10 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 9, 8, 2, 3, 4, 1, 6, 5, 7 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i64 -38, { 1, 0 } uselistorder i64 %arg2, { 1, 2, 4, 0, 3, 5 } uselistorder label LBL_17, { 6, 7, 2, 3, 4, 0, 1, 5, 8 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
qpci_io_readb_14421
qpci_io_readb
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i8 %1 = ptrtoint i64* %arg1 to i64 %2 = load i8, i8* %0 %3 = icmp ult i64 %arg2, 65536 %4 = zext i8 %2 to i64 %storemerge = select i1 %3, i64 %1, i64 %4 ret i64 %storemerge }
1
BinRealVul
uhci_async_validate_end_15288
uhci_async_validate_end
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge12.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null br i1 %0, label LBL_5, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 store i64 %1, i64* %storemerge12.reg2mem br label LBL_3 LBL_2: %2 = icmp eq i64 %5, 0 store i64 %5, i64* %storemerge12.reg2mem br i1 %2, label LBL_5, label LBL_3 LBL_3: %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 = inttoptr i64 %storemerge12.reload to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_4 LBL_4: %10 = call i64 @FUNC(i64 %storemerge12.reload) br label LBL_2 LBL_5: ret i64 0 uselistorder i64 %5, { 1, 0 } uselistorder i64 %storemerge12.reload, { 0, 2, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
mobi_parse_huff_13000
mobi_parse_huff
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 %indvars.iv6.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %4, i64 %7) %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %3, i64 %2, i64 %1) store i64 1, i64* %rax.0.reg2mem br label LBL_12 LBL_2: %12 = call i64 @FUNC(i64* nonnull %sv_0, i64 %8, i64 4) %13 = call i64 @FUNC(i64 %8) %14 = and i64 %13, 4294967288 %15 = bitcast i64* %sv_0 to i8* %16 = call i32 @strncmp(i8* nonnull %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i32 4) %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false %19 = icmp eq i64 %14, 0 %or.cond = or i1 %19, %18 br i1 %or.cond, label LBL_3, label LBL_4 LBL_3: %20 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0), i8* nonnull %15, i64 4, i64 %8, i64 %2, i64 %1) %21 = call i64 @FUNC(i64 %8) store i64 2, i64* %rax.0.reg2mem br label LBL_12 LBL_4: %22 = ptrtoint i64* %arg1 to i64 %23 = call i64 @FUNC(i64 %8) %24 = and i64 %23, 4294967295 %25 = call i64 @FUNC(i64 %8) %26 = and i64 %25, 4294967295 %27 = call i64 @FUNC(i64 %8, i64 %24) %28 = add i64 %8, 16 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = add i64 %30, 1024 %32 = add i64 %8, 24 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = icmp ugt i64 %31, %34 store i64 0, i64* %indvars.iv6.reg2mem br i1 %35, label LBL_5, label LBL_6 LBL_5: %36 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i64 %31, i64 %8, i64 %2, i64 %1) %37 = call i64 @FUNC(i64 %8) store i64 2, i64* %rax.0.reg2mem br label LBL_12 LBL_6: %indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem %38 = mul i64 %indvars.iv6.reload, 4 %39 = add i64 %38, %8 %40 = call i64 @FUNC(i64 %8) %41 = trunc i64 %40 to i32 %42 = inttoptr i64 %39 to i32* store i32 %41, i32* %42, align 4 %indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1 %exitcond8 = icmp eq i64 %indvars.iv.next7, 256 store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem br i1 %exitcond8, label LBL_7, label LBL_6 LBL_7: %43 = call i64 @FUNC(i64 %8, i64 %26) %44 = load i64, i64* %29, align 8 %45 = add i64 %44, 256 %46 = load i64, i64* %33, align 8 %47 = icmp ugt i64 %45, %46 br i1 %47, label LBL_8, label LBL_9 LBL_8: %48 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64 %45, i64 %8, i64 %2, i64 %1) %49 = call i64 @FUNC(i64 %8) store i64 2, i64* %rax.0.reg2mem br label LBL_12 LBL_9: %50 = add i64 %22, 8 %51 = inttoptr i64 %50 to i32* store i32 0, i32* %51, align 4 %52 = add i64 %22, 140 %53 = inttoptr i64 %52 to i32* store i32 -1, i32* %53, align 4 store i64 1, i64* %indvars.iv.reg2mem br label LBL_10 LBL_10: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %54 = call i64 @FUNC(i64 %8) %55 = call i64 @FUNC(i64 %8) %56 = trunc i64 %55 to i32 %57 = sub nsw i64 0, %indvars.iv.reload %58 = urem i64 %57, 32 %59 = icmp eq i64 %58, 0 %60 = trunc i64 %54 to i32 %61 = trunc i64 %58 to i32 %62 = shl i32 %60, %61 %63 = zext i32 %62 to i64 %storemerge = select i1 %59, i64 %54, i64 %63 %64 = trunc i64 %storemerge to i32 %65 = mul i64 %indvars.iv.reload, 4 %66 = add i64 %65, %50 %67 = inttoptr i64 %66 to i32* store i32 %64, i32* %67, align 4 %68 = add i32 %56, 1 %69 = shl i32 %68, %61 %70 = add i32 %69, -1 %71 = add i64 %65, %52 %72 = inttoptr i64 %71 to i32* store i32 %70, i32* %72, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 33 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_11, label LBL_10 LBL_11: %73 = call i64 @FUNC(i64 %8) store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %65, { 1, 0 } uselistorder i64 %58, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64 %8, { 3, 2, 1, 4, 5, 6, 7, 0, 8, 9, 11, 10, 14, 13, 12, 15, 16, 18, 17, 19 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %indvars.iv6.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 256, { 1, 0 } uselistorder i64 (i64, i64)* @mobi_buffer_setpos, { 1, 0 } uselistorder i64 (i64)* @mobi_buffer_free_null, { 3, 2, 1, 0 } uselistorder i64 (i64)* @mobi_buffer_get32, { 5, 4, 3, 2, 1, 0 } uselistorder i64 1, { 3, 1, 2, 0 } uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @debug_print, { 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
is_inode_writable_10781
is_inode_writable
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge12.reg2mem = alloca i64 %0 = call i64 @FUNC(i64* nonnull @gv_0) %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = ptrtoint i64* %arg1 to i64 store i64 %3, i64* %storemerge12.reg2mem br label LBL_2 LBL_2: %storemerge12.reload = load i64, i64* %storemerge12.reg2mem %4 = inttoptr i64 %storemerge12.reload to i32* %5 = load i32, i32* %4, align 4 %6 = urem i32 %5, 2 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_4, label LBL_3 LBL_3: %8 = call i64 @FUNC(i64* nonnull @gv_0) store i64 1, i64* %storemerge.reg2mem br label LBL_6 LBL_4: %9 = add i64 %storemerge12.reload, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 %11, i64* %storemerge12.reg2mem br i1 %13, label LBL_2, label LBL_5 LBL_5: %14 = call i64 @FUNC(i64* nonnull @gv_0) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge12.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 1, 0 } uselistorder i64* @gv_0, { 1, 0, 2 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
sctp_destroy_sock_19134
sctp_destroy_sock
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %3, i64 %2, i64 %1) %6 = call i64 @FUNC(i64 %4) %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_4, label LBL_1 LBL_1: %10 = add i64 %6, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = icmp eq i32 %12, 0 store i64 %8, i64* %.reg2mem br i1 %13, label LBL_3, label LBL_2 LBL_2: store i32 0, i32* %11, align 4 %14 = add i64 %6, 16 %15 = call i64 @FUNC(i64 %14) %.pre = load i64, i64* %7, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %16 = call i64 @FUNC(i64 %.reload) %17 = call i64 @FUNC() %18 = call i64 @FUNC(i64 %4) %19 = call i64 @FUNC(i64 %4) %20 = call i64 @FUNC(i64 %19, i64 %4, i64 4294967295) %21 = call i64 @FUNC() store i64 %21, 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 %4, { 1, 2, 0, 3, 4 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
update_global_ops_9928
update_global_ops
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 4210776 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = add i64 %0, 16 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, ptrtoint (i64* @gv_1 to i64) %6 = icmp eq i1 %5, false br i1 %6, label LBL_5, label LBL_2 LBL_2: %7 = inttoptr i64 %0 to i64* %8 = load i64, i64* %7, align 8 %9 = add i64 %0, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = urem i32 %11, 2 %13 = icmp eq i32 %12, 0 %14 = load i32, i32* @gv_2, align 4 br i1 %13, label LBL_4, label LBL_3 LBL_3: %15 = or i32 %14, 1 store i32 %15, i32* @gv_2, align 4 store i64 %8, i64* %sv_0.0.reg2mem br label LBL_6 LBL_4: %16 = and i32 %14, -2 store i32 %16, i32* @gv_2, align 4 store i64 %8, i64* %sv_0.0.reg2mem br label LBL_6 LBL_5: %17 = load i64, i64* @gv_3, align 8 %18 = load i32, i32* @gv_2, align 4 %19 = or i32 %18, 1 store i32 %19, i32* @gv_2, align 4 store i64 %17, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %20 = call i64 @FUNC(i64* nonnull @gv_4) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = call i64 @FUNC(i64 %sv_0.0.reload) %25 = load i64, i64* @gv_5, align 8 store i64 %25, i64* %sv_0.1.reg2mem br label LBL_8 LBL_8: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem store i64 %sv_0.1.reload, i64* @gv_6, align 8 ret i64 %sv_0.1.reload uselistorder i64 %sv_0.1.reload, { 1, 0 } uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i32 %14, { 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 } uselistorder i32* @gv_2, { 4, 3, 2, 0, 1 } uselistorder i32 1, { 3, 4, 2, 1, 0 } }
0
BinRealVul
rmd160_init_9957
rmd160_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* store i64 0, i64* %2, align 8 %3 = add i64 %1, 8 %4 = inttoptr i64 %3 to i64* store i64 1732584193, i64* %4, align 8 %5 = add i64 %1, 16 %6 = inttoptr i64 %5 to i64* store i64 4023233417, i64* %6, align 8 %7 = add i64 %1, 24 %8 = inttoptr i64 %7 to i64* store i64 2562383102, i64* %8, align 8 %9 = add i64 %1, 32 %10 = inttoptr i64 %9 to i64* store i64 271733878, i64* %10, align 8 %11 = add i64 %1, 40 %12 = inttoptr i64 %11 to i64* store i64 3285377520, i64* %12, align 8 %13 = add i64 %1, 48 %14 = inttoptr i64 %13 to i64* %15 = call i64* @memset(i64* %14, i32 0, i32 64) ret i64 0 }
0
BinRealVul
qdist_pr_211
qdist_pr
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 ptrtoint ([6 x i8]* @gv_0 to i64)) store i64 %2, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %3 = ptrtoint i64* %arg1 to i64 %4 = urem i32 %arg3, 2 %5 = icmp eq i32 %4, 0 %. = select i1 %5, i64 ptrtoint (i64* @gv_1 to i64), i64 ptrtoint (i64* @gv_2 to i64) %6 = call i64 @FUNC(i64* nonnull @gv_1) %7 = call i64 @FUNC(i64 %3, i64 %arg2, i32 %arg3, i64 1) %8 = call i64 @FUNC(i64 %3, i64 %arg2, i32 %arg3, i64 0) %9 = call i64 @FUNC(i64 %3, i64 %arg2) %10 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %7, i64 %., i64 %9, i64 %.) %11 = call i64 @FUNC(i64 %7) %12 = call i64 @FUNC(i64 %8) %13 = call i64 @FUNC(i64 %9) %14 = call i64 @FUNC(i64 %6, i64 0) store i64 %14, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %3, { 2, 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i32, i64)* @qdist_pr_label, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder i64 (i64)* @g_strdup, { 2, 1, 0 } uselistorder i32 %arg3, { 2, 1, 0 } uselistorder i64 %arg2, { 2, 1, 0 } uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
mallocAndJoin2Dir_6872
mallocAndJoin2Dir
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %rsi = alloca i64, align 8 %0 = icmp ne i64 %arg1, 0 %1 = icmp eq i64 %arg2, 0 %2 = icmp eq i1 %1, false %or.cond = icmp eq i1 %0, %2 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %3 = inttoptr i64 %arg1 to i8* %4 = call i32 @strlen(i8* %3) %5 = inttoptr i64 %arg2 to i8* %6 = call i32 @strlen(i8* %5) %7 = add i32 %4, 2 %8 = add i32 %7, %6 %9 = call i64* @malloc(i32 %8) %10 = icmp eq i64* %9, null %11 = icmp eq i1 %10, false br i1 %11, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %12 = ptrtoint i64* %9 to i64 %13 = inttoptr i64 %arg1 to i64* %14 = call i64* @memcpy(i64* %9, i64* %13, i32 %4) %15 = sext i32 %4 to i64 %16 = add i64 %12, %15 %17 = inttoptr i64 %16 to i8* store i8 0, i8* %17, align 1 %18 = bitcast i64* %rsi to i8* %19 = load i8, i8* %18, align 8 %20 = icmp eq i8 %19, 46 %21 = icmp eq i1 %20, false br i1 %21, label LBL_5, label LBL_9 LBL_5: %22 = icmp eq i32 %4, 0 store i64 %16, i64* %sv_0.0.reg2mem br i1 %22, label LBL_8, label LBL_6 LBL_6: %23 = add i64 %16, -1 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = icmp eq i8 %25, 47 store i64 %16, i64* %sv_0.0.reg2mem br i1 %26, label LBL_8, label LBL_7 LBL_7: store i8 47, i8* %17, align 1 %27 = add i64 %16, 1 store i64 %27, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %28 = inttoptr i64 %sv_0.0.reload to i64* %29 = inttoptr i64 %arg2 to i64* %30 = call i64* @memcpy(i64* %28, i64* %29, i32 %6) %31 = sext i32 %6 to i64 %32 = add i64 %sv_0.0.reload, %31 %33 = inttoptr i64 %32 to i8* store i8 0, i8* %33, align 1 br label LBL_9 LBL_9: ret i64 %12 uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64 %16, { 3, 0, 2, 1, 4 } uselistorder i64 %12, { 1, 0 } uselistorder i64* %9, { 0, 2, 1 } uselistorder i32 %6, { 2, 1, 0 } uselistorder i32 %4, { 1, 3, 2, 0 } uselistorder i8 47, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 1, { 1, 0 } uselistorder i64 %arg2, { 1, 2, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
impeg2d_get_mb_addr_incr_12225
impeg2d_get_mb_addr_incr
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i16 %storemerge1.reg2mem = alloca i16 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 8) %2 = trunc i64 %1 to i16 %3 = icmp eq i16 %2, 255 store i16 0, i16* %storemerge1.reg2mem store i16 1, i16* %storemerge.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %storemerge1.reload = load i16, i16* %storemerge1.reg2mem %4 = call i64 @FUNC(i64 %0, i64 8) %5 = add i16 %storemerge1.reload, 33 %6 = call i64 @FUNC(i64 %0, i64 8) %7 = trunc i64 %6 to i16 %8 = icmp eq i16 %7, 255 store i16 %5, i16* %storemerge1.reg2mem br i1 %8, label LBL_1, label LBL_2 LBL_2: %phitmp = add i16 %storemerge1.reload, 34 store i16 %phitmp, i16* %storemerge.lcssa.reg2mem br label LBL_3 LBL_3: %storemerge.lcssa.reload = load i16, i16* %storemerge.lcssa.reg2mem %9 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0, i64 8) %10 = trunc i64 %9 to i16 %11 = add i16 %storemerge.lcssa.reload, %10 %12 = zext i16 %11 to i64 ret i64 %12 uselistorder i16 %storemerge1.reload, { 1, 0 } uselistorder i64 %0, { 2, 3, 1, 0 } uselistorder i16* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder i16* %storemerge.lcssa.reg2mem, { 0, 2, 1 } uselistorder i16 255, { 1, 0 } uselistorder i64 (i64, i64)* @impeg2d_bit_stream_nxt, { 1, 0 } uselistorder i64 8, { 1, 2, 3, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
mov_write_video_tag_15997
mov_write_video_tag
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.reg2mem = alloca i32* %sv_0.1.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0, i64 0) %3 = load i32, i32* inttoptr (i64 4 to i32*), align 4 %4 = zext i32 %3 to i64 %5 = call i64 @FUNC(i64* nonnull @gv_0, i64 %4) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %sv_0.1.reg2mem br i1 %8, label LBL_2, label LBL_1 LBL_1: %phitmp = add nuw nsw i64 %4, 4 %phitmp1 = inttoptr i64 %phitmp to i32* %9 = load i32, i32* %phitmp1, align 4 %10 = zext i32 %9 to i64 %11 = call i64 @FUNC(i64* inttoptr (i64 4210748 to i64*), i64 %10) store i64 %11, i64* %sv_0.1.reg2mem br label LBL_2 LBL_2: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %12 = and i64 %sv_0.1.reload, 4294967295 %13 = call i64 @FUNC(i64 %0, i64 %12) %14 = call i64 @FUNC(i64 %0, i64 0) %15 = call i64 @FUNC(i64 %0, i64 0) %16 = call i64 @FUNC(i64 %0, i64 1) %17 = call i64 @FUNC(i64 %0, i64 0) %18 = call i64 @FUNC(i64 %0, i64 0) %19 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %20 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 4) to i32*), align 4 %21 = icmp eq i32 %20, 1 %22 = icmp eq i1 %21, false br i1 %22, label LBL_4, label LBL_3 LBL_3: %23 = call i64 @FUNC(i64 %0, i64 0) %24 = call i64 @FUNC(i64 %0, i64 1024) store i32* inttoptr (i64 1032 to i32*), i32** %.reg2mem br label LBL_5 LBL_4: %25 = call i64 @FUNC(i64 %0, i64 512) %26 = call i64 @FUNC(i64 %0, i64 512) store i32* inttoptr (i64 520 to i32*), i32** %.reg2mem br label LBL_5 LBL_5: %.reload = load i32*, i32** %.reg2mem %27 = load i32, i32* %.reload, align 8 %28 = zext i32 %27 to i64 %29 = call i64 @FUNC(i64 %0, i64 %28) %30 = add nuw nsw i64 %28, 12 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = zext i32 %32 to i64 %34 = call i64 @FUNC(i64 %0, i64 %33) %35 = call i64 @FUNC(i64 %0, i64 4718592) %36 = call i64 @FUNC(i64 %0, i64 4718592) %37 = call i64 @FUNC(i64 %0, i64 0) %38 = call i64 @FUNC(i64 %0, i64 1) %39 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 32) %40 = load i64, i64* inttoptr (i64 16 to i64*), align 16 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = icmp eq i64 %42, 0 %.pre = bitcast i64* %sv_1 to i8* br i1 %43, label LBL_7, label LBL_6 LBL_6: %44 = inttoptr i64 %42 to i8* %45 = call i8* @strncpy(i8* nonnull %.pre, i8* %44, i32 31) br label LBL_7 LBL_7: %46 = call i32 @strlen(i8* nonnull %.pre) %47 = icmp ult i32 %46, 33 store i64 32, i64* %storemerge.reg2mem br i1 %47, label LBL_9, label LBL_8 LBL_8: %48 = call i32 @strlen(i8* nonnull %.pre) %49 = zext i32 %48 to i64 store i64 %49, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem %50 = call i64 @FUNC(i64 %0, i64 %storemerge.reload) %51 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64 31) %52 = call i64 @FUNC(i64 %0, i64 24) %53 = call i64 @FUNC(i64 %0, i64 65535) %54 = load i32, i32* inttoptr (i64 65539 to i32*), align 4 %55 = icmp eq i32 %54, 2 %56 = icmp eq i1 %55, false br i1 %56, label LBL_11, label LBL_10 LBL_10: %57 = ptrtoint i64* %arg2 to i64 %58 = call i64 @FUNC(i64 %0, i64 %57) br label LBL_15 LBL_11: %59 = icmp eq i32 %54, 3 %60 = icmp eq i1 %59, false br i1 %60, label LBL_13, label LBL_12 LBL_12: %61 = call i64 @FUNC(i64 %0) br label LBL_15 LBL_13: %62 = icmp eq i32 %54, 4 %63 = icmp eq i1 %62, false br i1 %63, label LBL_15, label LBL_14 LBL_14: %64 = call i64 @FUNC(i64 %0) br label LBL_15 LBL_15: %65 = and i64 %1, 4294967295 %66 = call i64 @FUNC(i64 %0, i64 %65) ret i64 %66 uselistorder i32 %54, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0, 2 } uselistorder i64 %0, { 4, 3, 2, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } uselistorder i32** %.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder [5 x i8]* @gv_1, { 1, 0 } uselistorder i64 (i64, i64)* @put_be16, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i64*, i64)* @codec_get_tag, { 1, 0 } uselistorder i64 4, { 2, 0, 1 } uselistorder i64 (i64, i64)* @put_be32, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
gc_attach_18478
gc_attach
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i32 %rcx.1.lcssa26.reg2mem = alloca i64 %rdx.4.lcssa27.reg2mem = alloca i64 %rsi.1.lcssa28.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %rsi.0.reg2mem = alloca i64 %rdx.3.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %rcx.112.reg2mem = alloca i64 %rsi.113.reg2mem = alloca i64 %sv_0.114.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %storemerge210.reg2mem = alloca i32 %rdx.0.reg2mem = alloca i64 %indvars.iv24.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %sv_1 = alloca i32, align 4 %5 = bitcast i64* %rdi to i32* %6 = trunc i64 %3 to i32 store i64 0, i64* %indvars.iv24.reg2mem br label LBL_1 LBL_1: %indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem %7 = mul nuw nsw i64 %indvars.iv24.reload, 20 %8 = add i64 %7, ptrtoint (i32** @gv_0 to i64) %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 store i64 %indvars.iv24.reload, i64* %rdx.0.reg2mem br i1 %11, label LBL_4, label LBL_2 LBL_2: %12 = add i64 %7, ptrtoint (i32** @gv_1 to i64) %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp slt i32 %14, 0 store i64 %indvars.iv24.reload, i64* %rdx.0.reg2mem br i1 %15, label LBL_4, label LBL_3 LBL_3: %16 = zext i32 %14 to i64 %17 = icmp eq i32 %14, %6 store i64 %16, i64* %rdx.0.reg2mem br i1 %17, label LBL_7, label LBL_4 LBL_4: %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1 %18 = icmp ult i64 %indvars.iv.next25, 4 store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem br i1 %18, label LBL_1, label LBL_5 LBL_5: %19 = trunc i64 %indvars.iv.next25 to i32 %20 = icmp eq i32 %19, 4 %21 = icmp eq i1 %20, false store i32 4, i32* %storemerge210.reg2mem br i1 %21, label LBL_8, label LBL_6 LBL_6: %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %22 = and i64 %3, 4294967295 %23 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i64 %22, i64 %rdx.0.reload, i64 %4, i64 %2, i64 %1) store i64 %23, i64* %rax.0.reg2mem br label LBL_28 LBL_7: %24 = trunc i64 %indvars.iv24.reload to i32 store i32 %24, i32* %storemerge210.reg2mem br label LBL_8 LBL_8: %storemerge210.reload = load i32, i32* %storemerge210.reg2mem %25 = sext i32 %storemerge210.reload to i64 %26 = mul nsw i64 %25, 20 %27 = add i64 %26, ptrtoint (i32** @gv_0 to i64) %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 store i32 1, i32* %sv_1, align 4 %30 = zext i32 %storemerge210.reload to i64 %31 = ptrtoint i32* %sv_1 to i64 %32 = ptrtoint i32* %arg1 to i64 %33 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i32* nonnull %sv_1, i32 %storemerge210.reload) %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_10, label LBL_9 LBL_9: %36 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64 ptrtoint ([8 x i8]* @gv_3 to i64), i64 %31, i64 %30, i64 %2, i64 %1) store i64 %36, i64* %rax.0.reg2mem br label LBL_28 LBL_10: %37 = call i64 @FUNC(i64 56, i64 0) %38 = icmp eq i64 %37, 0 %39 = icmp eq i1 %38, false br i1 %39, label LBL_12, label LBL_11 LBL_11: %40 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_5, i64 0, i64 0), i64 0, i64 %31, i64 %30, i64 %2, i64 %1) br label LBL_27 LBL_12: %41 = add i32 %29, -1 %42 = add i64 %37, 48 %43 = call i64 @FUNC(i64 %42) %44 = inttoptr i64 %37 to i64* store i64 %33, i64* %44, align 8 %45 = load i32, i32* %5, align 8 %46 = add i64 %37, 8 %47 = inttoptr i64 %46 to i32* store i32 %45, i32* %47, align 4 %48 = add i64 %37, 52 %49 = call i64 @FUNC(i64 %48, i64 4199077, i64 %37) %50 = icmp sgt i32 %41, 0 store i64 4199077, i64* %rsi.1.lcssa28.reg2mem store i64 %37, i64* %rdx.4.lcssa27.reg2mem store i64 %48, i64* %rcx.1.lcssa26.reg2mem br i1 %50, label LBL_13, label LBL_21 LBL_13: %51 = add i64 %26, add (i64 ptrtoint (i32** @gv_0 to i64), i64 8) %52 = sext i32 %41 to i64 store i64 0, i64* %indvars.iv.reg2mem store i32 0, i32* %sv_0.114.reg2mem store i64 4199077, i64* %rsi.113.reg2mem store i64 %48, i64* %rcx.112.reg2mem br label LBL_14 LBL_14: %rcx.112.reload = load i64, i64* %rcx.112.reg2mem %rsi.113.reload = load i64, i64* %rsi.113.reg2mem %sv_0.114.reload = load i32, i32* %sv_0.114.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %53 = mul i64 %indvars.iv.reload, 4 %54 = add i64 %51, %53 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 %57 = icmp eq i32 %56, 0 store i64 %rcx.112.reload, i64* %rcx.0.reg2mem store i64 %53, i64* %rdx.3.reg2mem store i64 %rsi.113.reload, i64* %rsi.0.reg2mem store i32 %sv_0.114.reload, i32* %sv_0.0.reg2mem br i1 %57, label LBL_19, label LBL_15 LBL_15: %58 = call i64 @FUNC(i64 %37, i64 %indvars.iv.reload, i32 %56) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 %61 = icmp eq i1 %60, false br i1 %61, label LBL_16, label LBL_18 LBL_16: %62 = trunc i64 %indvars.iv.reload to i32 %63 = add i32 %62, -1 %64 = icmp slt i32 %63, 0 %65 = icmp eq i1 %64, false br i1 %65, label LBL_17, label LBL_26 LBL_17: %66 = add i64 %37, 16 store i32 %63, i32* %.reg2mem br label LBL_23 LBL_18: %67 = zext i32 %56 to i64 %68 = add i32 %sv_0.114.reload, 1 store i64 %indvars.iv.reload, i64* %rcx.0.reg2mem store i64 %67, i64* %rdx.3.reg2mem store i64 %indvars.iv.reload, i64* %rsi.0.reg2mem store i32 %68, i32* %sv_0.0.reg2mem br label LBL_19 LBL_19: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %69 = icmp slt i64 %indvars.iv.next, %52 %70 = icmp ult i64 %indvars.iv.next, 4 %or.cond = icmp eq i1 %69, %70 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.114.reg2mem store i64 %rsi.0.reload, i64* %rsi.113.reg2mem store i64 %rcx.0.reload, i64* %rcx.112.reg2mem br i1 %or.cond, label LBL_14, label LBL_20 LBL_20: %rdx.3.reload = load i64, i64* %rdx.3.reg2mem %71 = icmp eq i32 %sv_0.0.reload, 0 %72 = icmp eq i1 %71, false store i64 %rsi.0.reload, i64* %rsi.1.lcssa28.reg2mem store i64 %rdx.3.reload, i64* %rdx.4.lcssa27.reg2mem store i64 %rcx.0.reload, i64* %rcx.1.lcssa26.reg2mem br i1 %72, label LBL_22, label LBL_21 LBL_21: %rcx.1.lcssa26.reload = load i64, i64* %rcx.1.lcssa26.reg2mem %rdx.4.lcssa27.reload = load i64, i64* %rdx.4.lcssa27.reg2mem %rsi.1.lcssa28.reload = load i64, i64* %rsi.1.lcssa28.reg2mem %73 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_6, i64 0, i64 0), i64 %rsi.1.lcssa28.reload, i64 %rdx.4.lcssa27.reload, i64 %rcx.1.lcssa26.reload, i64 %2, i64 %1) br label LBL_26 LBL_22: %74 = mul i64 %25, 8 %75 = add i64 %74, ptrtoint (i64* @gv_7 to i64) %76 = inttoptr i64 %75 to i64* store i64 %37, i64* %76, align 8 store i64 %25, i64* %rax.0.reg2mem br label LBL_28 LBL_23: %.reload = load i32, i32* %.reg2mem %77 = sext i32 %.reload to i64 %78 = mul i64 %77, 8 %79 = add i64 %66, %78 %80 = inttoptr i64 %79 to i64* %81 = load i64, i64* %80, align 8 %82 = icmp eq i64 %81, 0 br i1 %82, label LBL_24, label LBL_25 LBL_24: %83 = add i32 %.reload, -1 %84 = icmp slt i32 %83, 0 %85 = icmp eq i1 %84, false store i32 %83, i32* %.reg2mem br i1 %85, label LBL_23, label LBL_26 LBL_25: %86 = call i64 @FUNC(i64 %81) br label LBL_24 LBL_26: %87 = call i64 @FUNC(i64 %37) br label LBL_27 LBL_27: %88 = call i64 @FUNC(i64 %33) store i64 %88, i64* %rax.0.reg2mem br label LBL_28 LBL_28: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %.reload, { 1, 0 } uselistorder i64 %indvars.iv.next, { 0, 2, 1 } uselistorder i64 %indvars.iv.reload, { 2, 0, 1, 4, 3, 5 } uselistorder i32 %sv_0.114.reload, { 1, 0 } uselistorder i64 %48, { 1, 0, 2 } uselistorder i64 %37, { 3, 2, 1, 4, 0, 5, 6, 7, 9, 8, 10 } uselistorder i64 %31, { 1, 0 } uselistorder i64 %30, { 1, 0 } uselistorder i64 %26, { 1, 0 } uselistorder i32 %storemerge210.reload, { 1, 0, 2 } uselistorder i64 %indvars.iv.next25, { 1, 0, 2 } uselistorder i32 %14, { 1, 0, 2 } uselistorder i64 %indvars.iv24.reload, { 4, 2, 0, 1, 3 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0, 3 } uselistorder i64 %1, { 2, 1, 0, 3 } uselistorder i64* %indvars.iv24.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge210.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.114.reg2mem, { 1, 0, 2 } uselistorder i64* %rsi.113.reg2mem, { 1, 0, 2 } uselistorder i64* %rcx.112.reg2mem, { 1, 0, 2 } uselistorder i64* %rsi.1.lcssa28.reg2mem, { 0, 2, 1 } uselistorder i64* %rdx.4.lcssa27.reg2mem, { 0, 2, 1 } uselistorder i64* %rcx.1.lcssa26.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 4199077, { 1, 0, 2 } uselistorder i32 -1, { 1, 0, 2 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_err, { 2, 1, 0 } uselistorder [8 x i8]* @gv_3, { 1, 0 } uselistorder i1 false, { 1, 3, 0, 2, 4, 5, 6 } uselistorder i64 4, { 2, 0, 1 } uselistorder i64 1, { 1, 0 } uselistorder i32 0, { 4, 7, 2, 5, 6, 0, 1, 8, 9, 10, 3 } uselistorder i64 ptrtoint (i32** @gv_0 to i64), { 0, 2, 1 } uselistorder i64 20, { 1, 0 } uselistorder label LBL_26, { 0, 2, 1 } uselistorder label LBL_24, { 1, 0 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_21, { 1, 0 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_4, { 2, 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
rend_service_dump_stats_8005
rend_service_dump_stats
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %r9.1.lcssa.reg2mem = alloca i64 %r8.1.lcssa.reg2mem = alloca i64 %r9.0.reg2mem = alloca i64 %r9.14.reg2mem = alloca i64 %storemerge35.reg2mem = alloca i32 %r8.27.reg2mem = alloca i64 %r9.28.reg2mem = alloca i64 %storemerge9.reg2mem = alloca i32 %0 = and i64 %arg1, 4294967295 %1 = load i64, i64* @gv_0, align 8 %2 = call i64 @FUNC(i64 %1) %3 = icmp sgt i64 %2, 0 store i32 0, i32* %storemerge9.reg2mem store i64 %2, i64* %.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %r8.27.reload = load i64, i64* %r8.27.reg2mem %r9.28.reload = load i64, i64* %r9.28.reg2mem %storemerge9.reload = load i32, i32* %storemerge9.reg2mem %4 = load i64, i64* @gv_0, align 8 %5 = zext i32 %storemerge9.reload to i64 %6 = call i64 @FUNC(i64 %4, i64 %5) %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %r8.27.reload, i64 %r9.28.reload) %9 = inttoptr i64 %6 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10) %12 = icmp sgt i64 %11, 0 store i64 %r8.27.reload, i64* %r8.1.lcssa.reg2mem store i64 %r9.28.reload, i64* %r9.1.lcssa.reg2mem br i1 %12, label LBL_2, label LBL_7 LBL_2: %13 = add i64 %6, 8 %14 = inttoptr i64 %13 to i32* store i32 0, i32* %storemerge35.reg2mem store i64 %r9.28.reload, i64* %r9.14.reg2mem br label LBL_3 LBL_3: %storemerge35.reload = load i32, i32* %storemerge35.reg2mem %15 = load i64, i64* %9, align 8 %16 = zext i32 %storemerge35.reload to i64 %17 = call i64 @FUNC(i64 %15, i64 %16) %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21) %23 = load i32, i32* %14, align 4 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64 %17, i64 %24) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false br i1 %27, label LBL_5, label LBL_4 LBL_4: %r9.14.reload = load i64, i64* %r9.14.reg2mem %28 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0), i64 %16, i64 %22, i64 %r9.14.reload) store i64 %r9.14.reload, i64* %r9.0.reg2mem br label LBL_6 LBL_5: %29 = inttoptr i64 %25 to i32* %30 = load i32, i32* %29, align 4 %31 = zext i32 %30 to i64 %32 = call i64 @FUNC(i64 %31) %33 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %16, i64 %22, i64 %32) store i64 %32, i64* %r9.0.reg2mem br label LBL_6 LBL_6: %r9.0.reload = load i64, i64* %r9.0.reg2mem %34 = add i32 %storemerge35.reload, 1 %35 = load i64, i64* %9, align 8 %36 = call i64 @FUNC(i64 %35) %37 = sext i32 %34 to i64 %38 = icmp sgt i64 %36, %37 store i32 %34, i32* %storemerge35.reg2mem store i64 %r9.0.reload, i64* %r9.14.reg2mem store i64 %22, i64* %r8.1.lcssa.reg2mem store i64 %r9.0.reload, i64* %r9.1.lcssa.reg2mem br i1 %38, label LBL_3, label LBL_7 LBL_7: %r9.1.lcssa.reload = load i64, i64* %r9.1.lcssa.reg2mem %r8.1.lcssa.reload = load i64, i64* %r8.1.lcssa.reg2mem %39 = add i32 %storemerge9.reload, 1 %40 = load i64, i64* @gv_0, align 8 %41 = call i64 @FUNC(i64 %40) %42 = sext i32 %39 to i64 %43 = icmp sgt i64 %41, %42 store i32 %39, i32* %storemerge9.reg2mem store i64 %r9.1.lcssa.reload, i64* %r9.28.reg2mem store i64 %r8.1.lcssa.reload, i64* %r8.27.reg2mem store i64 %41, i64* %.lcssa.reg2mem br i1 %43, label LBL_1, label LBL_8 LBL_8: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i64 %22, { 0, 2, 1 } uselistorder i64 %16, { 1, 0, 2 } uselistorder i64* %9, { 2, 1, 0 } uselistorder i64 %r9.28.reload, { 1, 0, 2 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i32* %storemerge9.reg2mem, { 2, 0, 1 } uselistorder i64* %r9.28.reg2mem, { 1, 0 } uselistorder i64* %r8.27.reg2mem, { 1, 0 } uselistorder i32* %storemerge35.reg2mem, { 1, 0, 2 } uselistorder i64* %r9.14.reg2mem, { 1, 0, 2 } uselistorder i64* %r9.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @tor_log, { 2, 1, 0 } uselistorder i64 (i64, i64)* @smartlist_get, { 1, 0 } uselistorder i64 (i64)* @smartlist_len, { 2, 3, 1, 0 } uselistorder i64* @gv_0, { 1, 2, 0 } uselistorder i32 1, { 13, 12, 10, 9, 8, 7, 6, 5, 4, 3, 2, 11, 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
replay_bh_schedule_event_16184
replay_bh_schedule_event
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC() %4 = call i64 @FUNC(i64 1, i64 %0, i64 0, i64 %3) store i64 %4, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %5 = call i64 @FUNC(i64 %0) store i64 %5, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } }
1
BinRealVul
handle_raw_data_18777
handle_raw_data
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i32 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %sext4 = mul i64 %arg6, 4294967296 %1 = ashr exact i64 %sext4, 32 %2 = and i64 %1, 4294967295 %3 = call i64 @FUNC(i64 %2, i64 %0) %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_4, label LBL_1 LBL_1: %7 = call i32 @time(i32* null) %8 = sext i32 %7 to i64 %9 = ashr exact i64 %sext4, 26 %10 = add nsw i64 %9, %1 %11 = mul i64 %10, 16 %12 = add i64 %11, ptrtoint (i64* @gv_0 to i64) %13 = inttoptr i64 %12 to i64* store i64 %8, i64* %13, align 8 %14 = add i64 %11, ptrtoint (i32** @gv_1 to i64) %15 = inttoptr i64 %14 to i32* store i32 0, i32* %15, align 8 %16 = trunc i64 %arg2 to i32 %17 = add i64 %11, add (i64 ptrtoint (i64* @gv_0 to i64), i64 12) %18 = inttoptr i64 %17 to i64* %19 = call i64* @memcpy(i64* nonnull %18, i64* %arg1, i32 %16) %20 = add i64 %11, ptrtoint (i32** @gv_2 to i64) %21 = inttoptr i64 %20 to i32* store i32 %16, i32* %21, align 8 %22 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4 %23 = icmp slt i32 %22, 1 br i1 %23, label LBL_3, label LBL_2 LBL_2: %24 = and i64 %arg2, 4294967295 %25 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_4, i64 0, i64 0), i64 %24, i64 %2) br label LBL_3 LBL_3: %27 = and i64 %arg5, 4294967295 %28 = zext i32 %arg4 to i64 %29 = call i64 @FUNC(i64 %27, i64 %28, i64 %2) store i64 %29, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %11, { 3, 2, 1, 0 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i64 %sext4, { 1, 0 } uselistorder i64 4294967295, { 1, 0, 2 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
qemu_add_balloon_handler_15119
qemu_add_balloon_handler
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: store i64 %arg1, i64* @gv_0, align 8 store i64 %arg2, i64* @gv_1, align 8 ret i64 %arg2 uselistorder i64 %arg2, { 1, 0 } }
1
BinRealVul
sfgets_7881
sfgets
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem8 = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i32, align 4 %2 = load i64, i64* @gv_0, align 8 %3 = icmp eq i64 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = load i32, i32* @gv_1, align 4 %5 = trunc i64 %2 to i32 %6 = sub i32 %4, %5 store i32 %6, i32* @gv_1, align 4 %7 = call i64* @memmove(i64* bitcast (i8** @gv_2 to i64*), i64* bitcast (i8** @gv_2 to i64*), i32 %6) store i64 0, i64* @gv_0, align 8 br label LBL_2 LBL_2: %8 = load i32, i32* @gv_3, align 4 store i32 %8, i32* %sv_0, align 4 %9 = bitcast i32* %sv_0 to %pollfd* %10 = icmp eq i64 %1, 0 %11 = icmp slt i64 %1, 0 %12 = icmp eq i1 %11, false %13 = icmp eq i1 %10, false %14 = icmp eq i1 %12, %13 %15 = trunc i64 %1 to i32 store i64 0, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %16 = load i32, i32* @gv_1, align 4 %17 = sext i32 %16 to i64 %18 = icmp ult i64 %.reload, %17 br i1 %18, label LBL_9, label LBL_4 LBL_4: %19 = call i32 @poll(%pollfd* nonnull %9, i32 1, i32 5000) %20 = icmp slt i32 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_6, label LBL_5 LBL_5: %22 = call i32* @__errno_location() %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 4 br i1 %24, label LBL_4, label LBL_6 LBL_6: %25 = icmp eq i32 %19, 0 %26 = icmp eq i1 %25, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %26, label LBL_7, label LBL_18 LBL_7: %27 = icmp slt i32 %19, 1 store i64 4294967294, i64* %rax.0.reg2mem br i1 %27, label LBL_18, label LBL_7.LBL_11_crit_edge LBL_8: %.pre = load i64, i64* @gv_0, align 8 store i64 %.pre, i64* %.reg2mem8 br label LBL_11 LBL_9: store i64 4294967294, i64* %rax.0.reg2mem br i1 %14, label LBL_10, label LBL_18 LBL_10: %28 = add i32 %16, %15 store i32 %28, i32* @gv_1, align 4 %29 = icmp ult i32 %28, 1025 store i64 %.reload, i64* %.reg2mem8 store i64 4294967294, i64* %rax.0.reg2mem br i1 %29, label LBL_11, label LBL_18 LBL_11: %.reload9 = load i64, i64* %.reg2mem8 %30 = icmp ult i64 %.reload9, 1024 store i64 %.reload9, i64* %.reg2mem br i1 %30, label LBL_3, label LBL_12 LBL_12: %31 = load i8, i8* bitcast (i8** @gv_2 to i8*), align 8 %32 = icmp eq i8 %31, 10 %33 = icmp eq i1 %32, false br i1 %33, label LBL_15, label LBL_13 LBL_13: store i8 0, i8* bitcast (i8** @gv_2 to i8*), align 8 %34 = add i64 %.reload9, 1 store i64 %34, i64* @gv_0, align 8 %35 = load i32, i32* @gv_1, align 4 %36 = sext i32 %35 to i64 %37 = icmp ult i64 %34, %36 store i64 0, i64* %rax.0.reg2mem br i1 %37, label LBL_18, label LBL_14 LBL_14: store i32 0, i32* @gv_1, align 4 store i64 0, i64* @gv_0, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_15: %38 = icmp ugt i8 %31, 31 br i1 %38, label LBL_17, label %switch.early.test LBL_16: store i8 95, i8* bitcast (i8** @gv_2 to i8*), align 8 %39 = add i64 %.reload9, 1 store i64 %39, i64* @gv_0, align 8 br label LBL_17 LBL_17: %40 = load %_IO_FILE*, %_IO_FILE** @gv_4, align 8 %41 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_6, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_18: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %.reload9, { 1, 2, 3, 0 } uselistorder i32 %19, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 1, 2, 3, 4 } uselistorder i8 0, { 1, 0 } uselistorder i32* @gv_1, { 5, 4, 3, 2, 1, 0 } uselistorder i64* @gv_0, { 1, 2, 3, 0, 4, 5 } uselistorder i32 1, { 4, 5, 6, 3, 2, 1, 0 } uselistorder label LBL_18, { 6, 5, 4, 0, 1, 2, 3 } uselistorder label LBL_17, { 3, 0, 1, 2 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
ceph_mdsc_create_request_18880
ceph_mdsc_create_request
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i8* %arg4, i64 %arg5, i8* %arg6, i64* %arg7, i64 %arg8) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %rdi = alloca i64, align 8 %sv_1 = alloca i64, align 8 %0 = trunc i64 %arg2 to i32 %1 = icmp eq i32 %0, 1 %2 = icmp eq i1 %1, false store i32 4, i32* %sv_0.1.reg2mem br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = icmp eq i8* %arg4, null store i32 24, i32* %sv_0.0.reg2mem br i1 %3, label LBL_3, label LBL_2 LBL_2: %4 = call i32 @strlen(i8* nonnull %arg4) %5 = add i32 %4, 24 store i32 %5, i32* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %6 = icmp eq i8* %arg6, null store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %6, label LBL_5, label LBL_4 LBL_4: %7 = call i32 @strlen(i8* nonnull %arg6) %8 = add i32 %7, %sv_0.0.reload store i32 %8, i32* %sv_0.1.reg2mem br label LBL_5 LBL_5: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %9 = sext i32 %sv_0.1.reload to i64 %10 = add nsw i64 %9, 24 %11 = call i64 @FUNC(i64 2, i64 %10, i64 0, i64 0, i64 0) %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 %11, i64* %rax.0.reg2mem br i1 %13, label LBL_6, label LBL_16 LBL_6: %14 = call i64 @FUNC(i64 %11) %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_8, label LBL_7 LBL_7: %17 = call i64 @FUNC(i64 %11) store i64 %14, i64* %rax.0.reg2mem br label LBL_16 LBL_8: %18 = ptrtoint i64* %arg7 to i64 %sext5 = mul i64 %arg2, 4294967296 %19 = ashr exact i64 %sext5, 32 %20 = inttoptr i64 %11 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %21, 24 store i64 %22, i64* %sv_1, align 8 %23 = load i64, i64* %20, align 8 %24 = add i64 %11, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = add i64 %26, %23 %28 = call i64 @FUNC(i64 %18) %29 = inttoptr i64 %14 to i64* store i64 %28, i64* %29, align 8 %30 = trunc i64 %arg8 to i32 %31 = add i64 %14, 8 %32 = inttoptr i64 %31 to i32* store i32 %30, i32* %32, align 4 %33 = bitcast i64* %rdi to i32* %34 = load i32, i32* %33, align 8 %35 = inttoptr i64 %21 to i32* store i32 %34, i32* %35, align 4 %36 = add i64 %21, 4 %37 = inttoptr i64 %36 to i32* store i32 0, i32* %37, align 4 %38 = add i64 %21, 8 %39 = inttoptr i64 %38 to i32* store i32 0, i32* %39, align 4 %40 = trunc i64 %19 to i32 %41 = add i64 %21, 12 %42 = inttoptr i64 %41 to i32* store i32 %40, i32* %42, align 4 %43 = load i32*, i32** @gv_0, align 8 %44 = load i32, i32* %43, align 4 %45 = add i64 %21, 16 %46 = inttoptr i64 %45 to i32* store i32 %44, i32* %46, align 4 %47 = load i32*, i32** @gv_0, align 8 %48 = ptrtoint i32* %47 to i64 %49 = add i64 %48, 4 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = add i64 %21, 20 %53 = inttoptr i64 %52 to i32* store i32 %51, i32* %53, align 4 %54 = icmp eq i32 %40, 1 %55 = icmp eq i1 %54, false br i1 %55, label LBL_10, label LBL_9 LBL_9: %56 = ptrtoint i64* %sv_1 to i64 %57 = call i64 @FUNC(i64 %56, i64 %arg3) br label LBL_14 LBL_10: %58 = ptrtoint i8* %arg4 to i64 %59 = call i64 @FUNC(i64* nonnull %sv_1, i64 %27, i64 %arg3, i64 %58) %60 = ptrtoint i8* %arg6 to i64 %61 = call i64 @FUNC(i64* nonnull %sv_1, i64 %27, i64 %arg5, i64 %60) %62 = icmp eq i8* %arg4, null br i1 %62, label LBL_12, label LBL_11 LBL_11: %63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %arg3, i8* nonnull %arg4) br label LBL_12 LBL_12: %64 = icmp eq i8* %arg6, null br i1 %64, label LBL_14, label LBL_13 LBL_13: %65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0), i64 %arg5, i8* nonnull %arg6) br label LBL_14 LBL_14: %66 = and i64 %19, 4294967295 %67 = call i64 @FUNC(i64 %66) %68 = inttoptr i64 %67 to i8* %69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %66, i8* %68, i64* %29) %70 = load i64, i64* %sv_1, align 8 %71 = icmp eq i64 %27, %70 store i64 %14, i64* %rax.0.reg2mem br i1 %71, label LBL_16, label LBL_15 LBL_15: call void @exit(i32 1) unreachable LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %27, { 0, 2, 1 } uselistorder i64 %21, { 1, 2, 3, 4, 5, 6, 0 } uselistorder i64 %14, { 0, 2, 3, 1, 4 } uselistorder i64 %11, { 1, 2, 3, 4, 0, 5 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64* %sv_1, { 2, 0, 1, 3, 4 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 } uselistorder i32 (i8*, ...)* @printf, { 1, 2, 0 } uselistorder i64 (i64*, i64, i64, i64)* @ceph_encode_filepath, { 1, 0 } uselistorder i64 (i64, i64)* @ceph_encode_32, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 2, 0 } uselistorder i32 24, { 1, 0 } uselistorder i8* null, { 2, 3, 0, 1 } uselistorder i8* %arg6, { 1, 0, 2, 4, 3 } uselistorder i8* %arg4, { 1, 0, 2, 4, 3 } uselistorder i64 %arg3, { 1, 2, 0 } uselistorder label LBL_16, { 0, 2, 1 } uselistorder label LBL_5, { 1, 2, 0 } }
1
BinRealVul
alloc_buffer_14166
alloc_buffer
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 %sv_2 = alloca i32, align 4 %sv_3 = alloca i32, align 4 %sv_4 = alloca i64, align 8 %3 = call i64 @FUNC(i64 72) store i64 %3, i64* %sv_4, align 8 %4 = add i64 %2, 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = sext i32 %6 to i64 %8 = mul nsw i64 %7, 20 %9 = add i64 %8, ptrtoint (i32** @gv_0 to i64) %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = trunc i64 %1 to i32 store i32 %12, i32* %sv_3, align 4 %13 = add i64 %2, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 store i32 %15, i32* %sv_2, align 4 %16 = icmp eq i64 %3, 0 %17 = icmp eq i1 %16, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %17, label LBL_1, label LBL_11 LBL_1: %18 = add i64 %2, 12 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = urem i32 %20, 2 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_3, label LBL_2 LBL_2: %24 = add i32 %12, 64 store i32 %24, i32* %sv_3, align 4 %25 = add i32 %15, 64 store i32 %25, i32* %sv_2, align 4 br label LBL_3 LBL_3: %26 = call i64 @FUNC(i64 %2, i32* nonnull %sv_3, i32* nonnull %sv_2) %27 = load i32, i32* %5, align 4 %28 = load i32, i32* %sv_2, align 4 %29 = load i32, i32* %sv_3, align 4 %30 = add i64 %3, 8 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = inttoptr i64 %3 to i64* %34 = load i64, i64* %33, align 8 %35 = zext i32 %27 to i64 %36 = call i64 @FUNC(i64 %34, i64 %32, i32 %29, i32 %28, i64 %35, i64 32) %37 = trunc i64 %36 to i32 %38 = icmp slt i32 %37, 0 %39 = icmp eq i1 %38, false br i1 %39, label LBL_5, label LBL_4 LBL_4: %40 = call i64 @FUNC(i64* nonnull %sv_4) %41 = and i64 %36, 4294967295 store i64 %41, i64* %rax.0.reg2mem br label LBL_11 LBL_5: %42 = ptrtoint i64* %arg1 to i64 %43 = bitcast i64* %rsi to i32* %44 = load i64, i64* %33, align 8 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = inttoptr i64 %46 to i64* %48 = call i64* @memset(i64* %47, i32 128, i32 %37) %49 = load i32, i32* %5, align 4 %50 = zext i32 %49 to i64 %51 = bitcast i32* %sv_0 to i64* %52 = bitcast i32* %sv_1 to i64* %53 = call i64 @FUNC(i64 %50, i64* nonnull %51, i64* nonnull %52) %54 = mul i32 %11, 32 %55 = add i32 %54, 32 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %56 = load i32, i32* %19, align 4 %57 = urem i32 %56, 2 %58 = icmp eq i32 %57, 0 %59 = load i64, i64* %sv_4, align 8 %60 = inttoptr i64 %59 to i64* %61 = load i64, i64* %60, align 8 %62 = mul i64 %indvars.iv.reload, 8 br i1 %58, label LBL_8, label LBL_7 LBL_7: %63 = add i64 %61, %62 %64 = inttoptr i64 %63 to i64* %65 = load i64, i64* %64, align 8 %66 = add nuw nsw i64 %62, 16 %67 = add i64 %66, %59 %68 = inttoptr i64 %67 to i64* store i64 %65, i64* %68, align 8 br label LBL_9 LBL_8: %69 = icmp eq i64 %indvars.iv.reload, 0 %70 = load i32, i32* %sv_1, align 4 %71 = load i32, i32* %sv_0, align 4 %72 = add i64 %61, %62 %73 = inttoptr i64 %72 to i64* %74 = load i64, i64* %73, align 8 store i64 %74, i64* %rsi, align 8 %75 = add i64 %59, 8 %76 = inttoptr i64 %75 to i64* %77 = load i64, i64* %76, align 8 %78 = mul i64 %indvars.iv.reload, 4 %79 = add i64 %77, %78 %80 = inttoptr i64 %79 to i32* %81 = load i32, i32* %80, align 4 %82 = mul i32 %81, 32 %.op = urem i32 %70, 32 %83 = select i1 %69, i32 0, i32 %.op %84 = ashr i32 %82, %83 %storemerge3 = zext i32 %84 to i64 %.op7 = urem i32 %71, 32 %85 = icmp eq i32 %.op7, 0 %86 = or i1 %69, %85 %87 = select i1 %86, i32 0, i32 %.op7 %spec.select = ashr i32 %55, %87 %rdx.0 = zext i32 %spec.select to i64 %88 = add nuw nsw i64 %storemerge3, %rdx.0 %89 = mul i64 %88, 4294967296 %90 = add i64 %89, 133143986176 %sext = ashr exact i64 %90, 32 %91 = and i64 %sext, -32 %92 = add i64 %91, %74 %93 = add nuw nsw i64 %62, 16 %94 = add i64 %93, %59 %95 = inttoptr i64 %94 to i64* store i64 %92, i64* %95, align 8 br label LBL_9 LBL_9: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_10, label LBL_6 LBL_10: %96 = load i64, i64* %sv_4, align 8 %97 = load i32, i32* %43, align 8 %98 = add i64 %96, 48 %99 = inttoptr i64 %98 to i32* store i32 %97, i32* %99, align 4 %100 = load i64, i64* %sv_4, align 8 %101 = load i32, i32* %14, align 4 %102 = add i64 %100, 52 %103 = inttoptr i64 %102 to i32* store i32 %101, i32* %103, align 4 %104 = load i64, i64* %sv_4, align 8 %105 = load i32, i32* %5, align 4 %106 = add i64 %104, 56 %107 = inttoptr i64 %106 to i32* store i32 %105, i32* %107, align 4 %108 = load i64, i64* %sv_4, align 8 %109 = add i64 %108, 64 %110 = inttoptr i64 %109 to i64* store i64 %42, i64* %110, align 8 %111 = load i64, i64* %sv_4, align 8 store i64 %111, i64* %arg3, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %.op7, { 1, 0 } uselistorder i64 %62, { 1, 3, 0, 2 } uselistorder i64 %59, { 1, 0, 2, 3 } uselistorder i64 %indvars.iv.reload, { 0, 3, 1, 2 } uselistorder i64 %3, { 1, 0, 2, 3 } uselistorder i64* %sv_4, { 1, 2, 3, 4, 5, 6, 0, 7 } uselistorder i32* %sv_3, { 1, 0, 2, 3 } uselistorder i32* %sv_2, { 1, 0, 2, 3 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32 32, { 2, 3, 0, 4, 1 } uselistorder i32 64, { 1, 0 } uselistorder i64 4, { 1, 0, 2 } uselistorder i64 8, { 1, 0, 2, 3 } uselistorder label LBL_11, { 1, 2, 0 } }
1
BinRealVul
qemu_fdopen_3566
qemu_fdopen
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = icmp eq i64 %arg2, 0 br i1 %2, label LBL_4, label LBL_1 LBL_1: %3 = trunc i64 %1 to i8 %4 = icmp ne i8 %3, 114 %5 = icmp eq i8 %3, 119 %6 = icmp eq i1 %5, false %or.cond = icmp eq i1 %4, %6 br i1 %or.cond, label LBL_4, label LBL_2 LBL_2: %7 = add i64 %arg2, 1 %8 = inttoptr i64 %7 to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, 98 %11 = icmp eq i1 %10, false br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = add i64 %arg2, 2 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = icmp eq i8 %14, 0 br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %17 = call i32 @fwrite(i64* bitcast ([45 x i8]* @gv_1 to i64*), i32 1, i32 44, %_IO_FILE* %16) store i64 0, i64* %storemerge.reg2mem br label LBL_8 LBL_5: %18 = bitcast i64* %rsi to i8* %19 = call i64 @FUNC(i64 16) %20 = trunc i64 %arg1 to i32 %21 = inttoptr i64 %19 to i32* store i32 %20, i32* %21, align 4 %22 = load i8, i8* %18, align 8 %23 = icmp eq i8 %22, 114 %24 = icmp eq i1 %23, false br i1 %24, label LBL_7, label LBL_6 LBL_6: %25 = call i64 @FUNC(i64 %19, i64* nonnull @gv_2) %26 = add i64 %19, 8 %27 = inttoptr i64 %26 to i64* store i64 %25, i64* %27, align 8 store i64 %25, i64* %storemerge.reg2mem br label LBL_8 LBL_7: %28 = call i64 @FUNC(i64 %19, i64* nonnull @gv_3) %29 = add i64 %19, 8 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 store i64 %28, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %19, { 1, 0, 2, 3, 4 } uselistorder i8 %3, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 1, { 2, 3, 1, 0 } uselistorder i64 %arg2, { 1, 0, 2 } uselistorder label LBL_8, { 1, 0, 2 } uselistorder label LBL_4, { 1, 2, 0, 3 } }
0
BinRealVul
set_seg_2654
set_seg
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %2, 24 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = trunc i64 %1 to i16 %8 = bitcast i64* %arg1 to i16* store i16 %7, i16* %8, align 2 %9 = add i64 %2, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %3, 8 %13 = inttoptr i64 %12 to i64* store i64 %11, i64* %13, align 8 %14 = add i64 %2, 16 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = add i64 %3, 16 %18 = inttoptr i64 %17 to i64* store i64 %16, i64* %18, align 8 %19 = trunc i32 %6 to i8 %20 = urem i8 %19, 16 %21 = add i64 %3, 24 %22 = inttoptr i64 %21 to i8* store i8 %20, i8* %22, align 1 %23 = icmp sgt i8 %19, -1 %24 = icmp eq i1 %23, false %25 = zext i1 %24 to i8 %26 = add i64 %3, 25 %27 = inttoptr i64 %26 to i8* store i8 %25, i8* %27, align 1 %28 = udiv i32 %6, 32 %29 = trunc i32 %28 to i8 %30 = urem i8 %29, 4 %31 = add i64 %3, 26 %32 = inttoptr i64 %31 to i8* store i8 %30, i8* %32, align 1 %33 = udiv i32 %6, 64 %34 = trunc i32 %33 to i8 %35 = urem i8 %34, 2 %36 = add i64 %3, 27 %37 = inttoptr i64 %36 to i8* store i8 %35, i8* %37, align 1 %38 = and i32 %6, 16 %39 = icmp eq i32 %38, 0 %40 = icmp eq i1 %39, false %41 = zext i1 %40 to i8 %42 = add i64 %3, 28 %43 = inttoptr i64 %42 to i8* store i8 %41, i8* %43, align 1 %44 = udiv i32 %6, 128 %45 = trunc i32 %44 to i8 %46 = urem i8 %45, 2 %47 = add i64 %3, 29 %48 = inttoptr i64 %47 to i8* store i8 %46, i8* %48, align 1 %49 = trunc i32 %6 to i16 %50 = icmp sgt i16 %49, -1 %51 = icmp eq i1 %50, false %52 = zext i1 %51 to i8 %53 = add i64 %3, 30 %54 = inttoptr i64 %53 to i8* store i8 %52, i8* %54, align 1 %55 = and i32 %6, 4096 %56 = icmp eq i32 %55, 0 %57 = icmp eq i1 %56, false %58 = zext i1 %57 to i8 %59 = add i64 %3, 31 %60 = inttoptr i64 %59 to i8* store i8 %58, i8* %60, align 1 %61 = add i64 %3, 32 %62 = inttoptr i64 %61 to i8* store i8 0, i8* %62, align 1 ret i64 %3 uselistorder i8 %19, { 1, 0 } uselistorder i32 %6, { 4, 3, 0, 5, 1, 2, 6 } uselistorder i64 %3, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } }
0
BinRealVul
memory_region_is_unassigned_15374
memory_region_is_unassigned
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, @gv_0 %1 = icmp eq i64* %arg1, @gv_1 %or.cond = or i1 %0, %1 %2 = icmp eq i64* %arg1, @gv_2 %or.cond3 = or i1 %2, %or.cond br i1 %or.cond3, label LBL_2, label LBL_1 LBL_1: %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false %5 = icmp eq i64* %arg1, @gv_3 %or.cond5 = or i1 %5, %4 store i64 1, i64* %storemerge.reg2mem br i1 %or.cond5, label LBL_2, label LBL_3 LBL_2: 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* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
cipso_v4_optptr_19050
cipso_v4_optptr
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.in2.reg2mem = alloca i64 %sv_1.03.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = inttoptr i64 %1 to i8* %4 = load i8, i8* %3, align 1 %5 = mul i8 %4, 4 %6 = and i8 %5, 60 %7 = icmp eq i8 %6, 0 %8 = icmp eq i1 %7, false store i64 0, i64* %storemerge.reg2mem br i1 %8, label LBL_1, label LBL_4 LBL_1: %9 = zext i8 %6 to i32 %10 = add nsw i32 %9, -1 %11 = add i64 %2, 1 store i32 %10, i32* %sv_1.03.reg2mem store i64 %11, i64* %sv_0.0.in2.reg2mem br label LBL_2 LBL_2: %sv_0.0.in2.reload = load i64, i64* %sv_0.0.in2.reg2mem %sv_0.0 = inttoptr i64 %sv_0.0.in2.reload to i8* %12 = load i8, i8* %sv_0.0, align 1 %13 = icmp eq i8 %12, 5 %14 = icmp eq i1 %13, false store i64 %sv_0.0.in2.reload, i64* %storemerge.reg2mem br i1 %14, label LBL_3, label LBL_4 LBL_3: %sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem %15 = add i64 %sv_0.0.in2.reload, 1 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = zext i8 %17 to i32 %19 = sub i32 %sv_1.03.reload, %18 %20 = zext i8 %17 to i64 %21 = add i64 %sv_0.0.in2.reload, %20 %22 = icmp eq i32 %19, 0 %23 = icmp slt i32 %19, 0 %24 = icmp eq i1 %23, false %25 = icmp eq i1 %22, false %26 = icmp eq i1 %24, %25 store i32 %19, i32* %sv_1.03.reg2mem store i64 %21, i64* %sv_0.0.in2.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %26, label LBL_2, label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %sv_0.0.in2.reload, { 3, 1, 0, 2 } uselistorder i8 %6, { 1, 0 } uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.in2.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 3, 1, 2, 0 } uselistorder i64 (i64)* @ip_hdr, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
php_zip_get_property_ptr_ptr_12267
php_zip_get_property_ptr_ptr
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1.0.in.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i64 %sv_3.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 1 store i64 %1, i64* %sv_3.0.reg2mem store i64 %0, i64* %sv_2.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: store i64 %1, i64* %sv_5, align 8 %4 = call i64 @FUNC(i64* nonnull %sv_5) %5 = call i64 @FUNC(i64* nonnull %sv_5) %6 = ptrtoint i64* %sv_5 to i64 store i64 %6, i64* %sv_3.0.reg2mem store i64 0, i64* %sv_2.0.reg2mem br label LBL_2 LBL_2: %7 = ptrtoint i64* %arg1 to i64 %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %8 = call i64 @FUNC(i64 %7) %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 br i1 %11, label LBL_7, label LBL_3 LBL_3: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %12 = icmp eq i64 %sv_2.0.reload, 0 br i1 %12, label LBL_5, label LBL_4 LBL_4: %13 = inttoptr i64 %sv_2.0.reload to i32* %14 = load i32, i32* %13, align 4 %15 = add i64 %sv_3.0.reload, 8 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = inttoptr i64 %17 to i8* %19 = call i32 @strlen(i8* %18) %20 = sext i32 %19 to i64 %21 = add nsw i64 %20, 1 %22 = load i64, i64* %16, align 8 %23 = load i64, i64* %9, align 8 %24 = zext i32 %14 to i64 %25 = call i64 @FUNC(i64 %23, i64 %22, i64 %21, i64 %24, i64* nonnull %sv_4) store i64 %25, i64* %sv_1.0.in.reg2mem br label LBL_6 LBL_5: %26 = add i64 %sv_3.0.reload, 8 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = inttoptr i64 %28 to i8* %30 = call i32 @strlen(i8* %29) %31 = sext i32 %30 to i64 %32 = add nsw i64 %31, 1 %33 = load i64, i64* %27, align 8 %34 = load i64, i64* %9, align 8 %35 = call i64 @FUNC(i64 %34, i64 %33, i64 %32, i64* nonnull %sv_4) store i64 %35, i64* %sv_1.0.in.reg2mem br label LBL_6 LBL_6: %sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem %sv_1.0 = trunc i64 %sv_1.0.in.reload to i32 %36 = icmp eq i32 %sv_1.0, -1 %37 = icmp eq i1 %36, false store i64 0, i64* %sv_0.0.reg2mem br i1 %37, label LBL_8, label LBL_7 LBL_7: %38 = call i64 @FUNC() store i64 %7, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %39 = ptrtoint i64* %sv_5 to i64 %40 = icmp eq i64 %sv_3.0.reload, %39 %41 = icmp eq i1 %40, false br i1 %41, label LBL_10, label LBL_9 LBL_9: %42 = call i64 @FUNC(i64 %sv_3.0.reload) br label LBL_10 LBL_10: ret i64 %sv_0.0.reload uselistorder i64* %9, { 1, 0, 2 } uselistorder i64* %sv_5, { 2, 3, 0, 1, 4 } uselistorder i64 %1, { 1, 0, 2 } uselistorder i64* %sv_1.0.in.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
provision_block_4862
provision_block
define i64 @FUNC(i64* %arg1, i32* %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i32* %arg4 to i64 %5 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %6 = trunc i64 %3 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false %9 = ptrtoint i32* %arg2 to i64 br i1 %8, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 %5, i64 %9) %11 = call i64 @FUNC(i64 %5, i64 %4) %12 = call i64 @FUNC(i64 %5, i64 %9, i64 0) store i64 %12, i64* %rax.0.reg2mem br label LBL_11 LBL_2: %13 = call i64 @FUNC(i64 %9) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_4, label LBL_3 LBL_3: %17 = call i64 @FUNC(i64 %9) %18 = call i64 @FUNC(i64 %5, i64 %4) %19 = call i64 @FUNC(i64 %9, i64 0) store i64 %19, i64* %rax.0.reg2mem br label LBL_11 LBL_4: %20 = bitcast i32* %sv_0 to i64* %21 = call i64 @FUNC(i64 %5, i64* nonnull %20) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, -1 br i1 %23, label LBL_9, label LBL_5 LBL_5: %24 = icmp eq i32 %22, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_10, label LBL_6 LBL_6: %26 = add i64 %5, 8 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = icmp eq i64 %28, 0 %30 = load i32, i32* %sv_0, align 4 %31 = zext i32 %30 to i64 br i1 %29, label LBL_8, label LBL_7 LBL_7: %32 = call i64 @FUNC(i64 %5, i32 %arg3, i64 %31, i64 %4, i64 %9) store i64 %32, i64* %rax.0.reg2mem br label LBL_11 LBL_8: %33 = call i64 @FUNC(i64 %5, i32 %arg3, i64 %31, i64 %4, i64 %9) store i64 %33, i64* %rax.0.reg2mem br label LBL_11 LBL_9: %34 = call i64 @FUNC(i64 %4) store i64 %34, i64* %rax.0.reg2mem br label LBL_11 LBL_10: %35 = and i64 %21, 4294967295 %36 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %35, i64 %4, i64 %2, i64 %1) %37 = call i64 @FUNC(i64 ptrtoint ([42 x i8]* @gv_0 to i64), i64 2) %38 = call i64 @FUNC(i64 %4) store i64 %38, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %31, { 1, 0 } uselistorder i64 %9, { 3, 4, 1, 2, 6, 0, 5 } uselistorder i64 %5, { 6, 5, 4, 7, 3, 1, 0, 2 } uselistorder i64 %4, { 4, 6, 5, 2, 3, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder [42 x i8]* @gv_0, { 1, 0 } uselistorder i64 (i64, i64)* @cell_defer_except, { 1, 0 } }
0
BinRealVul
assign_cfs_rq_runtime_13647
assign_cfs_rq_runtime
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() %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = sub i64 %2, %5 %7 = add i64 %1, 20 %8 = call i64 @FUNC(i64 %7) %9 = add i64 %1, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, -1 %13 = icmp eq i1 %12, false store i64 %6, i64* %sv_0.0.reg2mem br i1 %13, label LBL_1, label LBL_3 LBL_1: %14 = call i64 @FUNC(i64 %1) %15 = inttoptr i64 %1 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %17, label LBL_3, label LBL_2 LBL_2: %18 = call i64 @FUNC(i64 %16, i64 %6) %19 = load i64, i64* %15, align 8 %20 = sub i64 %19, %18 store i64 %20, i64* %15, align 8 %21 = add i64 %1, 16 %22 = inttoptr i64 %21 to i32* store i32 0, i32* %22, align 4 store i64 %18, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %23 = call i64 @FUNC(i64 %7) %24 = load i64, i64* %4, align 8 %25 = add i64 %24, %sv_0.0.reload store i64 %25, i64* %4, align 8 %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false %28 = zext i1 %27 to i64 ret i64 %28 uselistorder i64 %6, { 1, 0 } uselistorder i64* %4, { 1, 0, 2 } uselistorder i64 %1, { 0, 2, 1, 3, 4 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 } uselistorder label LBL_3, { 1, 2, 0 } }
0
BinRealVul
array_list_del_idx_7325
array_list_del_idx
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.1.lcssa.reg2mem = alloca i64 %rdi.11.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %0 = sub i64 0, %arg3 %1 = sub i64 %0, 1 %2 = icmp ult i64 %1, %arg2 store i64 4294967295, i64* %rax.0.reg2mem br i1 %2, label LBL_5, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %arg3, %arg2 %5 = add i64 %3, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp ugt i64 %7, %arg2 %9 = icmp eq i1 %8, false %10 = icmp ult i64 %7, %4 %or.cond = or i1 %10, %9 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_5, label LBL_2 LBL_2: %11 = icmp ugt i64 %4, %arg2 store i64 %arg2, i64* %storemerge2.reg2mem store i64 %3, i64* %rdi.11.reg2mem store i64 %3, i64* %rdi.1.lcssa.reg2mem br i1 %11, label LBL_3, label LBL_4 LBL_3: %rdi.11.reload = load i64, i64* %rdi.11.reg2mem %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %12 = mul i64 %storemerge2.reload, 8 %13 = add i64 %12, %rdi.11.reload %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 %spec.select = select i1 %16, i64 %rdi.11.reload, i64 %15 %17 = add nuw i64 %storemerge2.reload, 1 %exitcond = icmp eq i64 %17, %4 store i64 %17, i64* %storemerge2.reg2mem store i64 %spec.select, i64* %rdi.11.reg2mem store i64 %spec.select, i64* %rdi.1.lcssa.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem %18 = sub i64 %7, %4 %19 = mul i64 %4, 8 %20 = add i64 %rdi.1.lcssa.reload, %19 %21 = mul i64 %arg2, 8 %22 = add i64 %rdi.1.lcssa.reload, %21 %23 = inttoptr i64 %22 to i64* %24 = inttoptr i64 %20 to i64* %.tr = trunc i64 %18 to i32 %25 = mul i32 %.tr, 8 %26 = call i64* @memmove(i64* %23, i64* %24, i32 %25) %27 = load i64, i64* %6, align 8 %28 = sub i64 %27, %arg3 store i64 %28, i64* %6, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rdi.1.lcssa.reload, { 1, 0 } uselistorder i64 %rdi.11.reload, { 1, 0 } uselistorder i64 %7, { 1, 0, 2 } uselistorder i64* %6, { 1, 0, 2 } uselistorder i64 %4, { 0, 4, 2, 3, 1 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %rdi.11.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 %arg3, { 2, 1, 0 } uselistorder i64 %arg2, { 1, 0, 3, 4, 2, 5 } uselistorder label LBL_5, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
connect_to_sdog_2322
connect_to_sdog
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %r9.1.reg2mem = alloca i64 %r8.1.reg2mem = alloca i64 %rcx.2.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %storemerge5.in19.reg2mem = alloca i64 %storemerge520.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca %addrinfo*, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i8*, align 8 %3 = inttoptr i64 %arg1 to i8* %4 = inttoptr i64 %arg2 to i8* %5 = icmp eq i64 %arg1, 0 %6 = icmp eq i1 %5, false %storemerge6 = select i1 %6, i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0) %sv_6.0 = select i1 %6, i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0) store i8* %storemerge6, i8** %sv_5, align 8 %7 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 48) %8 = ptrtoint %addrinfo** %sv_3 to i64 %9 = load i8*, i8** %sv_5, align 8 %10 = bitcast i64* %sv_4 to %addrinfo* %11 = call i32 @getaddrinfo(i8* %sv_6.0, i8* %9, %addrinfo* nonnull %10, %addrinfo** nonnull %sv_3) %12 = icmp eq i32 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i32* @__errno_location() %14 = load i32, i32* %13, align 4 %15 = call i8* @strerror(i32 %14) %16 = ptrtoint i8* %15 to i64 %17 = ptrtoint i8* %sv_6.0 to i64 %18 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i64 %17, i64 %16, i64 %8, i64 %2, i64 %1) %19 = call i32* @__errno_location() %20 = load i32, i32* %19, align 4 %21 = sub i32 0, %20 store i32 %21, i32* %storemerge.in.reg2mem br label LBL_15 LBL_2: %22 = load %addrinfo*, %addrinfo** %sv_3, align 8 %23 = ptrtoint %addrinfo* %22 to i64 %storemerge518 = trunc i64 %23 to i32 %24 = icmp eq i32 %storemerge518, 0 %25 = icmp eq i1 %24, false store i64 %8, i64* %rcx.2.reg2mem br i1 %25, label LBL_3, label LBL_13 LBL_3: %26 = ptrtoint i8** %sv_5 to i64 %27 = add i64 %26, -16 %28 = inttoptr i64 %27 to i64* %29 = bitcast i64* %sv_1 to i8* %30 = bitcast i64* %sv_2 to i8* store i32 %storemerge518, i32* %storemerge520.reg2mem store i64 %23, i64* %storemerge5.in19.reg2mem br label LBL_4 LBL_4: %storemerge5.in19.reload = load i64, i64* %storemerge5.in19.reg2mem %storemerge520.reload = load i32, i32* %storemerge520.reg2mem %sext = mul i64 %storemerge5.in19.reload, 4294967296 %31 = ashr exact i64 %sext, 32 %32 = add nsw i64 %31, 16 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = add nsw i64 %31, 24 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 store i64 3, i64* %28, align 8 %38 = inttoptr i64 %37 to %sockaddr* %39 = call i32 @getnameinfo(%sockaddr* %38, i32 %34, i8* nonnull %29, i32 1025, i8* nonnull %30, i32 32, i32 %storemerge520.reload) %40 = icmp eq i32 %39, 0 %41 = icmp eq i1 %40, false store i64 1025, i64* %rcx.0.reg2mem br i1 %41, label LBL_11, label LBL_5 LBL_5: %42 = add nsw i64 %31, 12 %43 = inttoptr i64 %42 to i32* %44 = load i32, i32* %43, align 4 %45 = add nsw i64 %31, 8 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = zext i32 %47 to i64 %49 = add nsw i64 %31, 4 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = call i32 @socket(i32 %51, i32 %47, i32 %44) %53 = icmp slt i32 %52, 0 store i64 %48, i64* %rcx.0.reg2mem br i1 %53, label LBL_11, label LBL_6 LBL_6: %54 = ptrtoint i64* %sv_2 to i64 br label LBL_7 LBL_7: %55 = load i32, i32* %33, align 4 %56 = load i64, i64* %36, align 8 %57 = inttoptr i64 %56 to %sockaddr* %58 = call i32 @connect(i32 %52, %sockaddr* %57, i32 %55) %59 = icmp slt i32 %58, 0 %60 = icmp eq i1 %59, false br i1 %60, label LBL_10, label LBL_8 LBL_8: %61 = call i32* @__errno_location() %62 = load i32, i32* %61, align 4 %63 = icmp eq i32 %62, 4 %64 = icmp eq i1 %63, false br i1 %64, label LBL_9, label LBL_7 LBL_9: %65 = call i32 @close(i32 %52) store i64 %56, i64* %rcx.2.reg2mem store i64 %54, i64* %r8.1.reg2mem store i64 32, i64* %r9.1.reg2mem br label LBL_13 LBL_10: %66 = load i8*, i8** %sv_5, align 8 %67 = call i32 (i32, i8*, ...) @dprintf(i32 ptrtoint ([20 x i8]* @gv_3 to i32), i8* %sv_6.0, i8* %66, i8* inttoptr (i32 ptrtoint ([20 x i8]* @gv_3 to i32) to i8*)) store i32 %52, i32* %sv_0.0.reg2mem br label LBL_14 LBL_11: %68 = add nsw i64 %31, 40 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %storemerge5 = trunc i64 %70 to i32 %71 = icmp eq i32 %storemerge5, 0 %72 = icmp eq i1 %71, false store i32 %storemerge5, i32* %storemerge520.reg2mem store i64 %70, i64* %storemerge5.in19.reg2mem br i1 %72, label LBL_4, label LBL_12 LBL_12: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %73 = ptrtoint i64* %sv_2 to i64 store i64 %rcx.0.reload, i64* %rcx.2.reg2mem store i64 %73, i64* %r8.1.reg2mem store i64 32, i64* %r9.1.reg2mem br label LBL_13 LBL_13: %r9.1.reload = load i64, i64* %r9.1.reg2mem %r8.1.reload = load i64, i64* %r8.1.reg2mem %rcx.2.reload = load i64, i64* %rcx.2.reg2mem %74 = call i32* @__errno_location() %75 = load i32, i32* %74, align 4 %76 = sub i32 0, %75 %77 = load i8*, i8** %sv_5, align 8 %78 = ptrtoint i8* %77 to i64 %79 = ptrtoint i8* %sv_6.0 to i64 %80 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i64 %79, i64 %78, i64 %rcx.2.reload, i64 %r8.1.reload, i64 %r9.1.reload) store i32 %76, i32* %sv_0.0.reg2mem br label LBL_14 LBL_14: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %81 = load %addrinfo*, %addrinfo** %sv_3, align 8 call void @freeaddrinfo(%addrinfo* %81) store i32 %sv_0.0.reload, i32* %storemerge.in.reg2mem br label LBL_15 LBL_15: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = zext i32 %storemerge.in.reload to i64 ret i64 %storemerge uselistorder i64 %31, { 3, 0, 1, 2, 5, 4 } uselistorder i8* %sv_6.0, { 2, 1, 3, 0 } uselistorder i8** %sv_5, { 4, 3, 1, 2, 0 } uselistorder %addrinfo** %sv_3, { 2, 1, 3, 0 } uselistorder i64* %sv_2, { 1, 0, 2 } uselistorder i32* %storemerge520.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge5.in19.reg2mem, { 1, 0, 2 } uselistorder i64* %rcx.2.reg2mem, { 0, 2, 3, 1 } uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i32 ptrtoint ([20 x i8]* @gv_3 to i32), { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 } uselistorder i32* ()* @__errno_location, { 0, 3, 1, 2 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_13, { 1, 2, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
truncate_partial_data_page_9103
truncate_partial_data_page
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = urem i64 %arg2, 4096 %1 = icmp eq i64 %0, 0 store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_5, label LBL_1 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = udiv i64 %arg2, 4096 %4 = call i64 @FUNC(i64 %2, i64 %3, i64 0) %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %5 to i8 %7 = icmp eq i8 %6, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %rax.0.reg2mem br i1 %8, label LBL_5, label LBL_2 LBL_2: %9 = call i64 @FUNC(i64 %4) %10 = inttoptr i64 %4 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, %4 %13 = icmp eq i1 %12, false %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 %4, i64 1) store i64 %15, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %16 = call i64 @FUNC(i64 %4, i64 0) %17 = sub nsw i64 4096, %0 %18 = call i64 @FUNC(i64 %4, i64 %0, i64 %17) %19 = call i64 @FUNC(i64 %4) %20 = call i64 @FUNC(i64 %4, i64 1) store i64 %20, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 1, 0, 3, 2, 4, 7, 6, 5, 8 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64 (i64, i64)* @f2fs_put_page, { 1, 0 } uselistorder i64 4096, { 2, 0, 1 } uselistorder label LBL_5, { 2, 3, 0, 1 } }
0