dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
update_context_from_thread_14679
update_context_from_thread
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) 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 = icmp eq i64* %arg1, %arg2 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = trunc i64 %1 to i32 %6 = bitcast i64* %arg1 to i32* store i32 %5, i32* %6, align 4 %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %3, 4 %11 = inttoptr i64 %10 to i32* store i32 %9, i32* %11, align 4 %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = add i64 %3, 8 %16 = inttoptr i64 %15 to i32* store i32 %14, i32* %16, align 4 %17 = add i64 %2, 12 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = add i64 %3, 12 %21 = inttoptr i64 %20 to i32* store i32 %19, i32* %21, align 4 %22 = add i64 %2, 16 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = add i64 %3, 16 %26 = inttoptr i64 %25 to i32* store i32 %24, i32* %26, align 4 %27 = add i64 %2, 20 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = add i64 %3, 20 %31 = inttoptr i64 %30 to i32* store i32 %29, i32* %31, align 4 %32 = add i64 %2, 24 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = add i64 %3, 24 %36 = inttoptr i64 %35 to i32* store i32 %34, i32* %36, align 4 %37 = add i64 %2, 28 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = add i64 %3, 28 %41 = inttoptr i64 %40 to i32* store i32 %39, i32* %41, align 4 %42 = add i64 %2, 32 %43 = inttoptr i64 %42 to i32* %44 = load i32, i32* %43, align 4 %45 = add i64 %3, 32 %46 = inttoptr i64 %45 to i32* store i32 %44, i32* %46, align 4 %47 = add i64 %2, 36 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = add i64 %3, 36 %51 = inttoptr i64 %50 to i32* store i32 %49, i32* %51, align 4 %52 = add i64 %2, 40 %53 = inttoptr i64 %52 to i32* %54 = load i32, i32* %53, align 4 %55 = add i64 %3, 40 %56 = inttoptr i64 %55 to i32* store i32 %54, i32* %56, align 4 %57 = add i64 %2, 44 %58 = inttoptr i64 %57 to i32* %59 = load i32, i32* %58, align 4 %60 = add i64 %3, 44 %61 = inttoptr i64 %60 to i32* store i32 %59, i32* %61, align 4 %62 = add i64 %2, 48 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = add i64 %3, 48 %66 = inttoptr i64 %65 to i32* store i32 %64, i32* %66, align 4 %67 = add i64 %2, 52 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = add i64 %3, 52 %71 = inttoptr i64 %70 to i32* store i32 %69, i32* %71, align 4 %72 = add i64 %2, 56 %73 = inttoptr i64 %72 to i32* %74 = load i32, i32* %73, align 4 %75 = add i64 %3, 56 %76 = inttoptr i64 %75 to i32* store i32 %74, i32* %76, align 4 %77 = add i64 %2, 60 %78 = inttoptr i64 %77 to i32* %79 = load i32, i32* %78, align 4 %80 = add i64 %3, 60 %81 = inttoptr i64 %80 to i32* store i32 %79, i32* %81, align 4 %82 = add i64 %2, 64 %83 = inttoptr i64 %82 to i32* %84 = load i32, i32* %83, align 4 %85 = add i64 %3, 64 %86 = inttoptr i64 %85 to i32* store i32 %84, i32* %86, align 4 %87 = add i64 %2, 68 %88 = inttoptr i64 %87 to i32* %89 = load i32, i32* %88, align 4 %90 = add i64 %3, 68 %91 = inttoptr i64 %90 to i32* store i32 %89, i32* %91, align 4 %92 = add i64 %2, 72 %93 = inttoptr i64 %92 to i32* %94 = load i32, i32* %93, align 4 %95 = add i64 %3, 72 %96 = inttoptr i64 %95 to i32* store i32 %94, i32* %96, align 4 %97 = add i64 %2, 76 %98 = inttoptr i64 %97 to i32* %99 = load i32, i32* %98, align 4 %100 = add i64 %3, 76 %101 = inttoptr i64 %100 to i32* store i32 %99, i32* %101, align 4 %102 = add i64 %2, 80 %103 = inttoptr i64 %102 to i32* %104 = load i32, i32* %103, align 4 %105 = add i64 %3, 80 %106 = inttoptr i64 %105 to i32* store i32 %104, i32* %106, align 4 %107 = add i64 %2, 84 %108 = inttoptr i64 %107 to i32* %109 = load i32, i32* %108, align 4 %110 = add i64 %3, 84 %111 = inttoptr i64 %110 to i32* store i32 %109, i32* %111, align 4 br label LBL_2 LBL_2: %112 = trunc i64 %arg3 to i32 %113 = icmp eq i32 %112, 0 br i1 %113, label LBL_4, label LBL_3 LBL_3: %114 = add i64 %2, 88 %115 = inttoptr i64 %114 to i64* %116 = load i64, i64* %115, align 8 %117 = add i64 %3, 88 %118 = inttoptr i64 %117 to i64* store i64 %116, i64* %118, align 8 %119 = add i64 %3, 28 %120 = inttoptr i64 %119 to i32* %121 = load i32, i32* %120, align 4 %122 = add i64 %2, 96 %123 = inttoptr i64 %122 to i32* %124 = load i32, i32* %123, align 4 %125 = add i32 %121, -1 %126 = add i32 %125, %124 store i32 %126, i32* %120, align 4 ret i64 0 LBL_4: %127 = add i64 %3, 104 %128 = inttoptr i64 %127 to i64* %129 = load i64, i64* %128, align 8 %130 = inttoptr i64 %129 to i64* %131 = load i64, i64* %130, align 8 %132 = icmp eq i64 %131, 0 %133 = and i64 %3, 4294967295 %spec.select = select i1 %132, i64 0, i64 %133 ret i64 %spec.select uselistorder i64 %3, { 24, 23, 21, 22, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } uselistorder i64 %2, { 21, 22, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 } }
1
BinRealVul
check_ptr_alignment_11339
check_ptr_alignment
define i64 @FUNC(i8* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sext = mul i64 %arg3, 4294967296 %3 = ashr exact i64 %sext, 32 %sext5 = mul i64 %arg4, 4294967296 %4 = ashr exact i64 %sext5, 32 %5 = trunc i64 %1 to i32 %sext6 = mul i32 %5, 16777216 %6 = ashr exact i32 %sext6, 24 %7 = trunc i64 %2 to i32 %8 = icmp eq i32 %7, 5 store i64 ptrtoint ([7 x i8]* @gv_0 to i64), i64* %sv_0.0.reg2mem br i1 %8, label LBL_6, label LBL_1 LBL_1: %9 = icmp sgt i32 %7, 5 store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_0.0.reg2mem br i1 %9, label LBL_6, label LBL_2 LBL_2: %10 = icmp eq i32 %7, 4 store i64 ptrtoint ([9 x i8]* @gv_2 to i64), i64* %sv_0.0.reg2mem br i1 %10, label LBL_6, label LBL_3 LBL_3: %11 = icmp sgt i32 %7, 2 store i64 ptrtoint ([7 x i8]* @gv_3 to i64), i64* %sv_0.0.reg2mem br i1 %11, label LBL_6, label LBL_4 LBL_4: %12 = icmp eq i32 %7, 0 %13 = icmp slt i32 %7, 0 %14 = icmp eq i1 %13, false %15 = icmp eq i1 %12, false %16 = icmp eq i1 %14, %15 store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_0.0.reg2mem br i1 %16, label LBL_5, label LBL_6 LBL_5: %17 = and i64 %4, 4294967295 %18 = trunc i64 %3 to i32 %19 = ptrtoint i32* %arg2 to i64 %20 = ptrtoint i8* %arg1 to i64 %21 = urem i32 %6, 256 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 %20, i64 %19, i32 %18, i64 %17, i64 %22) store i64 %23, i64* %storemerge.reg2mem br label LBL_7 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %24 = trunc i64 %3 to i32 %25 = ptrtoint i32* %arg2 to i64 %26 = ptrtoint i8* %arg1 to i64 %27 = urem i32 %6, 256 %28 = zext i32 %27 to i64 %29 = and i64 %4, 4294967295 %30 = call i64 @FUNC(i64 %26, i64 %25, i64 %sv_0.0.reload, i32 %24, i64 %29, i64 %28) store i64 %30, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %7, { 4, 5, 3, 2, 1, 0 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 1, 3, 5, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder i32 5, { 1, 0 } uselistorder i32* %arg2, { 1, 0 } uselistorder i8* %arg1, { 1, 0 } uselistorder label LBL_6, { 4, 0, 2, 3, 1 } }
1
BinRealVul
gen_op_clear_ieee_excp_and_FTT_2468
gen_op_clear_ieee_excp_and_FTT
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %1 = zext i32 %0 to i64 %2 = call i64 @FUNC(i64 %1, i64 %1, i64 65535) ret i64 %2 uselistorder i64 %1, { 1, 0 } }
0
BinRealVul
compute_chapters_end_15453
compute_chapters_end
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i32 %.reg2mem20 = alloca i32 %storemerge1.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_0.16.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %.reg2mem18 = alloca i32 %indvars.iv13.reg2mem = alloca i64 %.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 store i32 0, i32* %.lcssa.reg2mem br i1 %4, label LBL_14, label LBL_1 LBL_1: %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, -1 %spec.select5 = select i1 %8, i64 0, i64 %7 %9 = add i64 %spec.select5, %0 %10 = add i64 %0, 24 %11 = inttoptr i64 %10 to i64* %12 = icmp eq i64 %9, 0 store i32 %3, i32* %.reg2mem store i64 0, i64* %indvars.iv13.reg2mem br label LBL_2 LBL_2: %indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem %.reload = load i32, i32* %.reg2mem %13 = load i64, i64* %11, align 8 %14 = mul i64 %indvars.iv13.reload, 8 %15 = add i64 %13, %14 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = add i64 %17, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = icmp eq i64 %20, -1 %22 = icmp eq i1 %21, false store i32 %.reload, i32* %.reg2mem20 br i1 %22, label LBL_13, label LBL_3 LBL_3: store i32 %.reload, i32* %.reg2mem18 store i64 9223372036854775807, i64* %storemerge3.reg2mem br i1 %12, label LBL_5, label LBL_4 LBL_4: %23 = add i64 %17, 16 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = call i64 @FUNC(i64 %9, i64 1000000, i32 %25) %.pre = load i32, i32* %2, align 4 store i32 %.pre, i32* %.reg2mem18 store i64 %26, i64* %storemerge3.reg2mem br label LBL_5 LBL_5: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %.reload19 = load i32, i32* %.reg2mem18 %27 = icmp eq i32 %.reload19, 0 store i64 %storemerge3.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %27, label LBL_10, label LBL_6 LBL_6: %28 = add i64 %17, 16 %29 = inttoptr i64 %28 to i32* %30 = inttoptr i64 %17 to i64* store i64 0, i64* %indvars.iv.reg2mem store i64 %storemerge3.reload, i64* %sv_0.16.reg2mem br label LBL_7 LBL_7: %sv_0.16.reload = load i64, i64* %sv_0.16.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %31 = load i64, i64* %11, align 8 %32 = mul i64 %indvars.iv.reload, 8 %33 = add i64 %31, %32 %34 = inttoptr i64 %33 to i64* %35 = load i64, i64* %34, align 8 %36 = load i32, i32* %29, align 4 %37 = add i64 %35, 16 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = inttoptr i64 %35 to i64* %41 = load i64, i64* %40, align 8 %42 = zext i32 %39 to i64 %43 = call i64 @FUNC(i64 %41, i64 %42, i32 %36) %44 = icmp eq i64 %indvars.iv.reload, %indvars.iv13.reload store i64 %sv_0.16.reload, i64* %sv_0.0.reg2mem br i1 %44, label LBL_9, label LBL_8 LBL_8: %45 = load i64, i64* %30, align 8 %46 = icmp sgt i64 %43, %45 %47 = icmp slt i64 %43, %sv_0.16.reload %or.cond = icmp eq i1 %47, %46 %spec.select = select i1 %or.cond, i64 %43, i64 %sv_0.16.reload store i64 %spec.select, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %48 = load i32, i32* %2, align 4 %49 = zext i32 %48 to i64 %50 = icmp ult i64 %indvars.iv.next, %49 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.16.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %50, label LBL_7, label LBL_10 LBL_10: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %51 = icmp eq i64 %sv_0.1.lcssa.reload, 9223372036854775807 %52 = icmp eq i1 %51, false store i64 %sv_0.1.lcssa.reload, i64* %storemerge1.reg2mem br i1 %52, label LBL_12, label LBL_11 LBL_11: %53 = inttoptr i64 %17 to i64* %54 = load i64, i64* %53, align 8 store i64 %54, i64* %storemerge1.reg2mem br label LBL_12 LBL_12: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem store i64 %storemerge1.reload, i64* %19, align 8 %.pre15 = load i32, i32* %2, align 4 store i32 %.pre15, i32* %.reg2mem20 br label LBL_13 LBL_13: %.reload21 = load i32, i32* %.reg2mem20 %indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 1 %55 = zext i32 %.reload21 to i64 %56 = icmp ult i64 %indvars.iv.next14, %55 store i32 %.reload21, i32* %.reg2mem store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem store i32 %.reload21, i32* %.lcssa.reg2mem br i1 %56, label LBL_2, label LBL_14 LBL_14: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %57 = zext i32 %.lcssa.reload to i64 ret i64 %57 uselistorder i32 %.reload21, { 0, 2, 1 } uselistorder i64 %sv_0.16.reload, { 1, 2, 0 } uselistorder i64 %storemerge3.reload, { 1, 0 } uselistorder i32 %.reload, { 1, 0 } uselistorder i64 %9, { 1, 0 } uselistorder i32* %2, { 0, 3, 1, 2 } uselistorder i64 %0, { 1, 0, 3, 2 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv13.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem18, { 0, 2, 1 } uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.16.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem20, { 0, 2, 1 } uselistorder i64 (i64, i64, i32)* @av_rescale_q, { 1, 0 } uselistorder i64 9223372036854775807, { 1, 0 } uselistorder i64 8, { 0, 2, 1, 3 } uselistorder i32 0, { 1, 0, 2 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
region16_union_rect_7824
region16_union_rect
define i64 @FUNC(i64* %arg1, i64* %arg2, i16* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem30 = alloca i64 %storemerge.in.reg2mem = alloca i16* %sv_0.0.reg2mem = alloca i16 %.reg2mem28 = alloca i16 %.reg2mem = alloca i16 %.pre-phi22.reg2mem = alloca i16* %sv_1.013.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %.pre-phi27.reg2mem = alloca i16* %rsi = alloca i64, align 8 %rdx = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 store i64 %2, i64* %rsi, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i32, align 4 %sv_4 = alloca i32, align 4 %sv_5 = alloca i16*, align 8 %sv_6 = alloca i64, align 8 store i16* null, i16** %sv_5, align 8 %3 = icmp eq i64* %arg2, null %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: store i64 ptrtoint ([53 x i8]* @gv_0 to i64), i64* %rsi, align 8 call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_0, i64 0, i64 0), i32 79, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %5 = icmp eq i64* %arg1, null %6 = icmp eq i1 %5, false br i1 %6, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_0, i64 0, i64 0), i32 81, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %7 = ptrtoint i64* %arg1 to i64 %8 = call i64 @FUNC(i64 %2) %9 = call i64 @FUNC(i64 %7) %10 = call i64 @FUNC(i64 %2) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_6, label LBL_5 LBL_5: %14 = ptrtoint i16* %arg3 to i64 %15 = add i64 %7, 8 %16 = inttoptr i64 %15 to i64* store i64 %14, i64* %16, align 8 %17 = call i64 @FUNC(i64 1) store i64 %17, i64* %arg1, align 8 %18 = call i64 @FUNC(i64 %7) %19 = inttoptr i64 %18 to i16* store i16* %19, i16** %sv_5, align 8 %20 = bitcast i64* %rdx to i16* %21 = load i16, i16* %20, align 8 store i16 %21, i16* %19, align 2 %22 = load i16*, i16** %sv_5, align 8 %23 = ptrtoint i16* %22 to i64 %24 = add i64 %14, 2 %25 = inttoptr i64 %24 to i16* %26 = load i16, i16* %25, align 2 %27 = add i64 %23, 2 %28 = inttoptr i64 %27 to i16* store i16 %26, i16* %28, align 2 %29 = load i16*, i16** %sv_5, align 8 %30 = ptrtoint i16* %29 to i64 %31 = add i64 %14, 4 %32 = inttoptr i64 %31 to i16* %33 = load i16, i16* %32, align 2 %34 = add i64 %30, 4 %35 = inttoptr i64 %34 to i16* store i16 %33, i16* %35, align 2 %36 = load i16*, i16** %sv_5, align 8 %37 = ptrtoint i16* %36 to i64 %38 = add i64 %14, 6 %39 = inttoptr i64 %38 to i16* %40 = load i16, i16* %39, align 2 %41 = add i64 %37, 6 %42 = inttoptr i64 %41 to i16* store i16 %40, i16* %42, align 2 store i64 1, i64* %rax.0.reg2mem br label LBL_34 LBL_6: %43 = call i64 @FUNC(i64 %2) %44 = mul i64 %43, 4 %45 = add i64 %44, 4 %46 = and i64 %45, 4294967292 %47 = call i64 @FUNC(i64 %46) %48 = icmp eq i64 %47, 0 %49 = icmp eq i1 %48, false store i64 0, i64* %rax.0.reg2mem br i1 %49, label LBL_7, label LBL_34 LBL_7: %50 = trunc i64 %1 to i16 %51 = inttoptr i64 %8 to i16* %52 = add i64 %47, 8 %53 = inttoptr i64 %52 to i16* store i16* %53, i16** %sv_5, align 8 store i32 0, i32* %sv_4, align 4 %54 = load i16, i16* %51, align 2 %55 = icmp ugt i16 %54, %50 %56 = icmp eq i1 %55, false br i1 %56, label LBL_7.LBL_10_crit_edge, label LBL_9 LBL_8: %.pre23 = ptrtoint i16* %arg3 to i64 %.pre24 = add i64 %.pre23, 6 %.pre26 = inttoptr i64 %.pre24 to i16* store i16* %.pre26, i16** %.pre-phi27.reg2mem store i64 %.pre23, i64* %.pre-phi.reg2mem br label LBL_10 LBL_9: store i16 %50, i16* %53, align 2 %57 = load i16*, i16** %sv_5, align 8 %58 = ptrtoint i16* %57 to i64 %59 = ptrtoint i16* %arg3 to i64 %60 = add i64 %59, 2 %61 = inttoptr i64 %60 to i16* %62 = load i16, i16* %61, align 2 %63 = add i64 %58, 2 %64 = inttoptr i64 %63 to i16* store i16 %62, i16* %64, align 2 %65 = load i16*, i16** %sv_5, align 8 %66 = ptrtoint i16* %65 to i64 %67 = add i64 %59, 4 %68 = inttoptr i64 %67 to i16* %69 = load i16, i16* %68, align 2 %70 = add i64 %66, 4 %71 = inttoptr i64 %70 to i16* store i16 %69, i16* %71, align 2 %72 = add i64 %59, 6 %73 = inttoptr i64 %72 to i16* %74 = load i16, i16* %73, align 2 %75 = load i16, i16* %51, align 2 %76 = load i16*, i16** %sv_5, align 8 %77 = ptrtoint i16* %76 to i64 %78 = icmp ugt i16 %74, %75 %.v = select i1 %78, i16 %75, i16 %74 %79 = add i64 %77, 6 %80 = inttoptr i64 %79 to i16* store i16 %.v, i16* %80, align 2 %81 = load i32, i32* %sv_4, align 4 %82 = add i32 %81, 1 store i32 %82, i32* %sv_4, align 4 %83 = load i16*, i16** %sv_5, align 8 %84 = ptrtoint i16* %83 to i64 %85 = add i64 %84, 8 %86 = inttoptr i64 %85 to i16* store i16* %86, i16** %sv_5, align 8 store i16* %73, i16** %.pre-phi27.reg2mem store i64 %59, i64* %.pre-phi.reg2mem br label LBL_10 LBL_10: %87 = bitcast i64* %rdx to i16* %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi27.reload = load i16*, i16** %.pre-phi27.reg2mem %88 = ptrtoint i32* %sv_3 to i64 store i64 %88, i64* %rsi, align 8 %89 = bitcast i32* %sv_3 to i64* %90 = call i64 @FUNC(i64 %2, i64* nonnull %89) %91 = load i32, i32* %sv_3, align 4 %92 = zext i32 %91 to i64 %93 = mul i64 %92, 8 %94 = add i64 %93, %90 %95 = icmp ult i64 %90, %94 br i1 %95, label LBL_11, label LBL_28 LBL_11: %96 = ptrtoint i64* %sv_6 to i64 %97 = add i64 %96, -16 %98 = inttoptr i64 %97 to i64* %99 = ptrtoint i16** %sv_5 to i64 %100 = add i64 %96, -24 %101 = inttoptr i64 %100 to i64* %102 = ptrtoint i64* %sv_2 to i64 %103 = add i64 %96, -32 %104 = inttoptr i64 %103 to i64* %105 = ptrtoint i32* %sv_4 to i64 %106 = add i64 %.pre-phi.reload, 4 %107 = inttoptr i64 %106 to i16* %108 = add i64 %.pre-phi.reload, 2 %109 = inttoptr i64 %108 to i16* store i64 %90, i64* %sv_1.013.reg2mem br label LBL_12 LBL_12: %sv_1.013.reload = load i64, i64* %sv_1.013.reg2mem %110 = add i64 %sv_1.013.reload, 6 %111 = inttoptr i64 %110 to i16* %112 = load i16, i16* %111, align 2 %113 = load i16, i16* %87, align 8 %114 = icmp ugt i16 %112, %113 br i1 %114, label LBL_14, label LBL_12.LBL_17_crit_edge LBL_13: %.pre21 = inttoptr i64 %sv_1.013.reload to i16* store i16* %.pre21, i16** %.pre-phi22.reg2mem store i16 %112, i16* %.reg2mem br label LBL_17 LBL_14: %115 = load i16, i16* %.pre-phi27.reload, align 2 %116 = inttoptr i64 %sv_1.013.reload to i16* %117 = load i16, i16* %116, align 2 %118 = icmp ugt i16 %115, %117 store i16* %116, i16** %.pre-phi22.reg2mem store i16 %112, i16* %.reg2mem br i1 %118, label LBL_15, label LBL_17 LBL_15: %119 = call i64 @FUNC(i64 %sv_1.013.reload, i64 %94, i64 %.pre-phi.reload) %120 = trunc i64 %119 to i8 %121 = icmp eq i8 %120, 0 br i1 %121, label LBL_18, label LBL_15.LBL_17_crit_edge LBL_16: %.pre = load i16, i16* %111, align 2 store i16* %116, i16** %.pre-phi22.reg2mem store i16 %.pre, i16* %.reg2mem br label LBL_17 LBL_17: %.reload = load i16, i16* %.reg2mem %.pre-phi22.reload = load i16*, i16** %.pre-phi22.reg2mem %122 = zext i16 %.reload to i64 %123 = load i16, i16* %.pre-phi22.reload, align 2 %124 = zext i16 %123 to i64 %125 = load i16*, i16** %sv_5, align 8 %126 = ptrtoint i16* %125 to i64 store i64 %sv_1.013.reload, i64* %rsi, align 8 store i64 %99, i64* %98, align 8 store i64 %102, i64* %101, align 8 store i64 %105, i64* %104, align 8 %127 = call i64 @FUNC(i64 %126, i64 %sv_1.013.reload, i64 %94, i64 %124, i64 %122, i64 0) store i16* %87, i16** %storemerge.in.reg2mem br label LBL_22 LBL_18: %128 = load i16, i16* %116, align 2 %129 = load i16, i16* %111, align 2 %130 = icmp ugt i16 %113, %128 store i16 %129, i16* %.reg2mem28 store i16 %128, i16* %sv_0.0.reg2mem br i1 %130, label LBL_19, label LBL_20 LBL_19: %131 = zext i16 %113 to i64 %132 = zext i16 %128 to i64 %133 = load i16*, i16** %sv_5, align 8 %134 = ptrtoint i16* %133 to i64 store i64 %99, i64* %98, align 8 store i64 %102, i64* %101, align 8 store i64 %105, i64* %104, align 8 %135 = call i64 @FUNC(i64 %134, i64 %sv_1.013.reload, i64 %94, i64 %132, i64 %131, i64 0) %136 = load i16, i16* %87, align 8 %.pre14 = load i16, i16* %111, align 2 store i16 %.pre14, i16* %.reg2mem28 store i16 %136, i16* %sv_0.0.reg2mem br label LBL_20 LBL_20: %sv_0.0.reload = load i16, i16* %sv_0.0.reg2mem %.reload29 = load i16, i16* %.reg2mem28 %137 = load i16, i16* %.pre-phi27.reload, align 2 %138 = icmp ult i16 %137, %.reload29 %139 = icmp eq i1 %138, false %spec.select = select i1 %139, i16 %129, i16 %137 %140 = zext i16 %spec.select to i64 %141 = zext i16 %sv_0.0.reload to i64 %142 = load i16*, i16** %sv_5, align 8 %143 = ptrtoint i16* %142 to i64 store i64 %sv_1.013.reload, i64* %rsi, align 8 store i64 %99, i64* %98, align 8 store i64 %102, i64* %101, align 8 store i64 %105, i64* %104, align 8 %144 = call i64 @FUNC(i64 %143, i64 %sv_1.013.reload, i64 %94, i64 %141, i64 %140, i64 %.pre-phi.reload) %145 = load i16, i16* %.pre-phi27.reload, align 2 %146 = load i16, i16* %111, align 2 %147 = icmp ult i16 %145, %146 %148 = icmp eq i1 %147, false store i16* %111, i16** %storemerge.in.reg2mem br i1 %148, label LBL_22, label LBL_21 LBL_21: %149 = zext i16 %146 to i64 %150 = load i16*, i16** %sv_5, align 8 %151 = ptrtoint i16* %150 to i64 store i64 %sv_1.013.reload, i64* %rsi, align 8 store i64 %99, i64* %98, align 8 store i64 %102, i64* %101, align 8 store i64 %105, i64* %104, align 8 %152 = call i64 @FUNC(i64 %151, i64 %sv_1.013.reload, i64 %94, i64 %140, i64 %149, i64 0) store i16* %111, i16** %storemerge.in.reg2mem br label LBL_22 LBL_22: %153 = load i64, i64* %sv_2, align 8 %154 = icmp ugt i64 %94, %153 store i64 %153, i64* %.reg2mem30 br i1 %154, label LBL_23, label LBL_27 LBL_23: %155 = inttoptr i64 %153 to i16* %156 = load i16, i16* %155, align 2 %157 = load i16, i16* %111, align 2 %158 = icmp eq i16 %156, %157 store i64 %153, i64* %.reg2mem30 br i1 %158, label LBL_27, label LBL_24 LBL_24: %159 = load i16, i16* %.pre-phi27.reload, align 2 %160 = icmp ugt i16 %159, %157 store i64 %153, i64* %.reg2mem30 br i1 %160, label LBL_25, label LBL_27 LBL_25: %161 = load i16, i16* %87, align 8 %162 = icmp ult i16 %161, %156 %163 = icmp eq i1 %162, false store i64 %153, i64* %.reg2mem30 br i1 %163, label LBL_27, label LBL_26 LBL_26: %storemerge.in.reload = load i16*, i16** %storemerge.in.reg2mem %storemerge = load i16, i16* %storemerge.in.reload, align 2 %164 = load i16*, i16** %sv_5, align 8 %165 = ptrtoint i16* %164 to i64 %166 = load i16, i16* %107, align 2 %167 = add i64 %165, 4 %168 = inttoptr i64 %167 to i16* store i16 %166, i16* %168, align 2 %169 = load i16*, i16** %sv_5, align 8 %170 = ptrtoint i16* %169 to i64 %171 = load i16, i16* %109, align 2 %172 = add i64 %170, 2 %173 = inttoptr i64 %172 to i16* store i16 %171, i16* %173, align 2 %174 = load i16*, i16** %sv_5, align 8 store i16 %storemerge, i16* %174, align 2 %175 = load i16, i16* %.pre-phi27.reload, align 2 %176 = load i64, i64* %sv_2, align 8 %177 = inttoptr i64 %176 to i16* %178 = load i16, i16* %177, align 2 %179 = load i16*, i16** %sv_5, align 8 %180 = ptrtoint i16* %179 to i64 %181 = icmp ugt i16 %175, %178 %.v11 = select i1 %181, i16 %178, i16 %175 %182 = add i64 %180, 6 %183 = inttoptr i64 %182 to i16* store i16 %.v11, i16* %183, align 2 %184 = load i16*, i16** %sv_5, align 8 %185 = ptrtoint i16* %184 to i64 %186 = add i64 %185, 8 %187 = inttoptr i64 %186 to i16* store i16* %187, i16** %sv_5, align 8 %188 = load i32, i32* %sv_4, align 4 %189 = add i32 %188, 1 store i32 %189, i32* %sv_4, align 4 %.pre15 = load i64, i64* %sv_2, align 8 store i64 %.pre15, i64* %.reg2mem30 br label LBL_27 LBL_27: %.reload31 = load i64, i64* %.reg2mem30 %190 = icmp ult i64 %.reload31, %94 store i64 %.reload31, i64* %sv_1.013.reg2mem br i1 %190, label LBL_12, label LBL_28 LBL_28: %191 = add i64 %8, 6 %192 = inttoptr i64 %191 to i16* %193 = load i16, i16* %192, align 2 %194 = load i16, i16* %.pre-phi27.reload, align 2 %195 = icmp ult i16 %193, %194 %196 = icmp eq i1 %195, false br i1 %196, label LBL_30, label LBL_29 LBL_29: %197 = load i16, i16* %87, align 8 %198 = load i16*, i16** %sv_5, align 8 %199 = icmp ult i16 %197, %193 %200 = icmp eq i1 %199, false %.v6 = select i1 %200, i16 %197, i16 %193 store i16 %.v6, i16* %198, align 2 %201 = load i16*, i16** %sv_5, align 8 %202 = ptrtoint i16* %201 to i64 %203 = add i64 %.pre-phi.reload, 2 %204 = inttoptr i64 %203 to i16* %205 = load i16, i16* %204, align 2 %206 = add i64 %202, 2 %207 = inttoptr i64 %206 to i16* store i16 %205, i16* %207, align 2 %208 = load i16*, i16** %sv_5, align 8 %209 = ptrtoint i16* %208 to i64 %210 = add i64 %.pre-phi.reload, 4 %211 = inttoptr i64 %210 to i16* %212 = load i16, i16* %211, align 2 %213 = add i64 %209, 4 %214 = inttoptr i64 %213 to i16* store i16 %212, i16* %214, align 2 %215 = load i16*, i16** %sv_5, align 8 %216 = ptrtoint i16* %215 to i64 %217 = load i16, i16* %.pre-phi27.reload, align 2 %218 = add i64 %216, 6 %219 = inttoptr i64 %218 to i16* store i16 %217, i16* %219, align 2 %220 = load i32, i32* %sv_4, align 4 %221 = add i32 %220, 1 store i32 %221, i32* %sv_4, align 4 %222 = load i16*, i16** %sv_5, align 8 %223 = ptrtoint i16* %222 to i64 %224 = add i64 %223, 8 %225 = inttoptr i64 %224 to i16* store i16* %225, i16** %sv_5, align 8 br label LBL_30 LBL_30: %226 = icmp eq i64* %arg2, %arg1 %227 = icmp eq i1 %226, false br i1 %227, label LBL_33, label LBL_31 LBL_31: %228 = bitcast i64* %rsi to i32* %229 = load i32, i32* %228, align 8 %230 = icmp eq i32 %229, 0 %231 = load i64, i64* %rsi, align 8 %232 = icmp eq i64 %231, ptrtoint (i64** @gv_4 to i64) %or.cond = or i1 %230, %232 br i1 %or.cond, label LBL_33, label LBL_32 LBL_32: %233 = inttoptr i64 %231 to i64* call void @free(i64* %233) br label LBL_33 LBL_33: %234 = inttoptr i64 %9 to i16* %235 = load i16, i16* %51, align 2 %236 = load i16, i16* %87, align 8 %237 = icmp ugt i16 %235, %236 %.v7 = select i1 %237, i16 %236, i16 %235 store i16 %.v7, i16* %234, align 2 %238 = add i64 %8, 2 %239 = inttoptr i64 %238 to i16* %240 = load i16, i16* %239, align 2 %241 = add i64 %.pre-phi.reload, 2 %242 = inttoptr i64 %241 to i16* %243 = load i16, i16* %242, align 2 %244 = icmp ugt i16 %240, %243 %.v8 = select i1 %244, i16 %243, i16 %240 %245 = add i64 %9, 2 %246 = inttoptr i64 %245 to i16* store i16 %.v8, i16* %246, align 2 %247 = load i16, i16* %192, align 2 %248 = load i16, i16* %.pre-phi27.reload, align 2 %249 = icmp ult i16 %247, %248 %.v9 = select i1 %249, i16 %248, i16 %247 %250 = add i64 %9, 6 %251 = inttoptr i64 %250 to i16* store i16 %.v9, i16* %251, align 2 %252 = add i64 %8, 4 %253 = inttoptr i64 %252 to i16* %254 = load i16, i16* %253, align 2 %255 = add i64 %.pre-phi.reload, 4 %256 = inttoptr i64 %255 to i16* %257 = load i16, i16* %256, align 2 %258 = icmp ult i16 %254, %257 %.v10 = select i1 %258, i16 %257, i16 %254 %259 = add i64 %9, 4 %260 = inttoptr i64 %259 to i16* store i16 %.v10, i16* %260, align 2 %261 = load i32, i32* %sv_4, align 4 %262 = mul i32 %261, 8 %263 = add i32 %262, 8 %264 = inttoptr i64 %47 to i32* store i32 %263, i32* %264, align 4 %265 = inttoptr i64 %47 to i64* %266 = call i64* @realloc(i64* %265, i32 %263) %267 = ptrtoint i64* %266 to i64 store i64 %267, i64* %arg1, align 8 %268 = load i32, i32* %sv_4, align 4 %269 = add i64 %47, 4 %270 = inttoptr i64 %269 to i32* store i32 %268, i32* %270, align 4 %271 = call i64 @FUNC(i64 %7) store i64 %271, i64* %rax.0.reg2mem br label LBL_34 LBL_34: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i16 %193, { 1, 0, 2 } uselistorder i64 %.reload31, { 1, 0 } uselistorder i64 %153, { 1, 3, 0, 4, 2, 5 } uselistorder i16 %129, { 1, 0 } uselistorder i16 %128, { 2, 0, 1 } uselistorder i16* %116, { 2, 1, 0, 3 } uselistorder i16 %113, { 1, 0, 2 } uselistorder i16* %111, { 4, 1, 0, 5, 2, 6, 3, 7 } uselistorder i64 %sv_1.013.reload, { 2, 3, 5, 4, 6, 0, 1, 9, 8, 10, 7 } uselistorder i64 %105, { 1, 0, 2, 3 } uselistorder i64* %104, { 1, 0, 2, 3 } uselistorder i64 %102, { 1, 0, 2, 3 } uselistorder i64* %101, { 1, 0, 2, 3 } uselistorder i64 %99, { 1, 0, 2, 3 } uselistorder i64* %98, { 1, 0, 2, 3 } uselistorder i64 %94, { 6, 3, 2, 4, 5, 1, 7, 0 } uselistorder i64 %90, { 0, 2, 1 } uselistorder i16* %.pre-phi27.reload, { 1, 0, 2, 4, 3, 5, 6, 7 } uselistorder i64 %.pre-phi.reload, { 2, 3, 0, 1, 6, 7, 5, 4 } uselistorder i16* %87, { 2, 1, 3, 4, 0, 5 } uselistorder i16* %51, { 1, 0, 2 } uselistorder i16 %50, { 1, 0 } uselistorder i64 %7, { 2, 0, 1, 3 } uselistorder i16** %sv_5, { 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 11, 12, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32* %sv_3, { 1, 2, 0 } uselistorder i64* %rdx, { 1, 0 } uselistorder i64* %rsi, { 0, 6, 5, 4, 3, 2, 1, 7 } uselistorder i64* %sv_1.013.reg2mem, { 1, 0, 2 } uselistorder i16** %.pre-phi22.reg2mem, { 0, 2, 1, 3 } uselistorder i16* %.reg2mem, { 0, 2, 1, 3 } uselistorder i16* %.reg2mem28, { 0, 2, 1 } uselistorder i16* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i16** %storemerge.in.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %.reg2mem30, { 0, 3, 2, 5, 1, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 8, { 2, 0, 1 } uselistorder i64 (i64, i64, i64, i64, i64, i64)* @region16_copy_band_with_union, { 3, 2, 1, 0 } uselistorder i64 6, { 1, 4, 5, 2, 3, 6, 7, 0, 8, 9 } uselistorder i64 2, { 0, 1, 2, 5, 6, 3, 4, 7, 8, 9, 10 } uselistorder i64 8, { 2, 1, 0, 3, 4, 5, 6, 7, 8, 9 } uselistorder i64 (i64)* @region16_n_rects, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 0, 4, 5, 1, 2, 3, 6, 7, 8, 9, 10 } uselistorder i16* %arg3, { 2, 0, 1 } uselistorder i64* %arg1, { 0, 1, 2, 4, 3 } uselistorder label LBL_34, { 1, 0, 2 } uselistorder label LBL_33, { 2, 1, 0 } uselistorder label LBL_27, { 2, 3, 0, 4, 1 } uselistorder label LBL_22, { 1, 0, 2 } uselistorder label LBL_20, { 1, 0 } uselistorder label LBL_17, { 1, 2, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
get_S2prot_17089
get_S2prot
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = urem i64 %arg2, 2 %1 = icmp ne i64 %0, 0 %spec.select = zext i1 %1 to i32 %2 = trunc i64 %arg2 to i32 %3 = and i32 %2, 2 %4 = or i32 %3, %spec.select %5 = icmp eq i32 %arg3, 0 %6 = icmp eq i1 %5, false %7 = or i32 %4, 4 %spec.select2 = select i1 %6, i32 %4, i32 %7 %8 = zext i32 %spec.select2 to i64 ret i64 %8 uselistorder i32 %4, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
1
BinRealVul
test_init_13858
test_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 %spec.select = select i1 %8, i64 ptrtoint (i8** @gv_0 to i64), i64 %7 %9 = trunc i64 %3 to i32 %10 = icmp eq i32 %9, 0 %. = select i1 %10, i64 ptrtoint ([32 x i8]* @gv_1 to i64), i64 ptrtoint (i8** @gv_0 to i64) %11 = inttoptr i64 %. to i8* %12 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %spec.select, i8* %11, i64 %2, i64 %1) %13 = call i64 @FUNC(i64 %12) %14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0)) %15 = call i64 @FUNC(i64 %12) %16 = call i64 @FUNC(i64 0) %17 = call i64 @FUNC(i64 %16, i64 7936) %18 = add i64 %4, 16 %19 = inttoptr i64 %18 to i64* store i64 %17, i64* %19, align 8 %20 = icmp eq i64 %17, 0 %21 = icmp eq i1 %20, false %22 = zext i1 %21 to i64 %23 = call i64 @FUNC(i64 %22) %24 = load i64, i64* %19, align 8 %25 = call i64 @FUNC(i64 %24) %26 = load i64, i64* %19, align 8 %27 = call i64 @FUNC(i64 %26, i64 64, i64 4097) %28 = load i64, i64* %19, align 8 %29 = call i64 @FUNC(i64 %28, i64 80, i64 128) %30 = load i64, i64* %19, align 8 %31 = call i64 @FUNC(i64 %30, i64 96, i64 8193) %32 = load i64, i64* %19, align 8 %33 = call i64 @FUNC(i64 %32, i64 4192) %34 = add i64 %4, 24 %35 = inttoptr i64 %34 to i64* store i64 %33, i64* %35, align 8 ret i64 %33 uselistorder i64 %33, { 1, 0 } uselistorder i64* %19, { 0, 2, 1, 4, 3, 5 } uselistorder i64 %., { 1, 0 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64, i64)* @qpci_config_writel, { 1, 0 } uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 1, 0 } }
1
BinRealVul
v9fs_flush_17055
v9fs_flush
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge3.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i16, align 2 %1 = bitcast i16* %sv_0 to i64* %2 = call i64 @FUNC(i64 %0, i64 7, i64 4202512, i64* nonnull %1) %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false br i1 %4, label LBL_1, label LBL_5 LBL_1: %5 = load i16, i16* %sv_0, align 2 store i64 %0, i64* %storemerge3.reg2mem br label LBL_2 LBL_2: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %6 = add i64 %storemerge3.reload, 8 %7 = inttoptr i64 %6 to i16* %8 = load i16, i16* %7, align 2 %9 = icmp eq i16 %8, %5 br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = add i64 %storemerge3.reload, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 %14 = icmp eq i1 %13, false store i64 %12, i64* %storemerge3.reg2mem br i1 %14, label LBL_2, label LBL_5 LBL_4: %15 = add i64 %storemerge3.reload, 24 %16 = inttoptr i64 %15 to i32* store i32 1, i32* %16, align 4 %17 = add i64 %storemerge3.reload, 32 %18 = call i64 @FUNC(i64 %17) store i32 0, i32* %16, align 4 %19 = call i64 @FUNC(i64 %17, i64 %storemerge3.reload) br label LBL_5 LBL_5: %20 = call i64 @FUNC(i64 %0, i64 %0, i64 7) ret i64 %20 uselistorder i64 %storemerge3.reload, { 4, 3, 2, 0, 1 } uselistorder i64 %0, { 2, 1, 0, 3 } uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_5, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
mov_metadata_creation_time_16625
mov_metadata_creation_time
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 store i64 %arg2, i64* %sv_1, align 8 %0 = icmp eq i64 %arg2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %arg2, -2082844800 store i64 %2, i64* %sv_1, align 8 %3 = bitcast i64* %sv_1 to i32* %4 = call %tm* @gmtime(i32* nonnull %3) %5 = bitcast i64* %sv_0 to i8* %6 = call i32 @strftime(i8* nonnull %5, i32 32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), %tm* %4) %7 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0, i64 0) store i64 %7, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
1
BinRealVul
get_audio_frame_size_2492
get_audio_frame_size
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 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 1 %4 = icmp eq i1 %3, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_8 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp sgt i32 %8, 1 store i32 %8, i32* %sv_0.0.reg2mem br i1 %9, label LBL_7, label LBL_2 LBL_2: %sext = mul i64 %arg2, 4294967296 %10 = and i64 %1, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_5, label LBL_3 LBL_3: %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %18, label LBL_4, label LBL_8 LBL_4: %19 = ashr exact i64 %sext, 29 %20 = mul i32 %16, %12 %21 = trunc i64 %19 to i32 %22 = ashr i32 %21, 31 %23 = and i64 %19, 4294967288 %24 = zext i32 %22 to i64 %25 = mul i64 %24, 4294967296 %26 = or i64 %25, %23 %27 = zext i32 %20 to i64 %28 = sdiv i64 %26, %27 %29 = trunc i64 %28 to i32 store i32 %29, i32* %sv_0.0.reg2mem br label LBL_7 LBL_5: %30 = add i64 %5, 12 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = icmp eq i32 %32, 0 %34 = icmp eq i1 %33, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %34, label LBL_6, label LBL_8 LBL_6: %35 = add i64 %5, 16 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = sext i32 %37 to i64 %39 = ashr exact i64 %sext, 29 %40 = mul i64 %39, %38 %41 = sext i32 %32 to i64 %42 = udiv i64 %40, %41 %43 = trunc i64 %42 to i32 store i32 %43, i32* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %44 = zext i32 %sv_0.0.reload to i64 store i64 %44, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %19, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i64 %5, { 2, 0, 1, 3 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_8, { 3, 0, 1, 2 } uselistorder label LBL_7, { 1, 2, 0 } }
0
BinRealVul
cine_read_header_24
cine_read_header
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %2 = load i64, i64* %1 %3 = load i64, i64* %1 %4 = load i64, i64* %1 %5 = load i128, i128* %0 %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i64 %6, i64 0) %sext = mul i64 %7, 4294967296 %8 = icmp eq i64 %sext, 0 %9 = icmp eq i1 %8, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_46 LBL_1: %10 = ashr exact i64 %sext, 32 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = inttoptr i64 %12 to i32* store i32 0, i32* %13, align 4 %14 = load i64, i64* %11, align 8 %15 = add i64 %14, 4 %16 = inttoptr i64 %15 to i32* store i32 1, i32* %16, align 4 %17 = load i64, i64* %11, align 8 %18 = add i64 %17, 8 %19 = inttoptr i64 %18 to i32* store i32 0, i32* %19, align 4 %20 = call i64 @FUNC(i64 %6, i64 4) %21 = call i64 @FUNC(i64 %6) %22 = call i64 @FUNC(i64 %6) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 1 br i1 %24, label LBL_3, label LBL_2 LBL_2: %25 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i32 %23, i64 %4, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_3: %26 = call i64 @FUNC(i64 %6, i64 12) %27 = call i64 @FUNC(i64 %6) %28 = trunc i64 %27 to i32 %29 = add nsw i64 %10, 8 %30 = inttoptr i64 %29 to i32* store i32 %28, i32* %30, align 4 %31 = call i64 @FUNC(i64 %6) %32 = call i64 @FUNC(i64 %6) %33 = call i64 @FUNC(i64 %6) %34 = call i64 @FUNC(i64 %6, i64 8) %35 = and i64 %31, 4294967295 %36 = call i64 @FUNC(i64 %6, i64 %35, i64 0) %37 = call i64 @FUNC(i64 %6, i64 4) %38 = call i64 @FUNC(i64 %6) %39 = trunc i64 %38 to i32 %40 = load i64, i64* %11, align 8 %41 = add i64 %40, 12 %42 = inttoptr i64 %41 to i32* store i32 %39, i32* %42, align 4 %43 = call i64 @FUNC(i64 %6) %44 = load i64, i64* %11, align 8 %45 = trunc i64 %43 to i32 %46 = add i64 %44, 16 %47 = inttoptr i64 %46 to i32* store i32 %45, i32* %47, align 4 %48 = call i64 @FUNC(i64 %6) %49 = trunc i64 %48 to i32 %50 = icmp eq i32 %49, 1 store i64 1, i64* %rax.0.reg2mem br i1 %50, label LBL_4, label LBL_46 LBL_4: %51 = call i64 @FUNC(i64 %6) %52 = trunc i64 %51 to i32 %53 = add i32 %52, -8 %54 = udiv i32 %53, 8 %55 = mul i32 %52, 536870912 %56 = or i32 %54, %55 switch i32 %56, label LBL_5 [ i32 5, label LBL_6 i32 2, label LBL_6 i32 1, label LBL_6 i32 0, label LBL_6 ] LBL_5: %57 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %52, i64 %35, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_6: %58 = call i64 @FUNC(i64 %6) %59 = trunc i64 %58 to i32 store i32 0, i32* %storemerge3.reg2mem switch i32 %59, label LBL_8 [ i32 0, label LBL_9 i32 256, label LBL_7 ] LBL_7: %60 = call i64 @FUNC(i64 66, i64 73, i64 84, i64 0) %61 = trunc i64 %60 to i32 %62 = load i64, i64* %11, align 8 %63 = add i64 %62, 8 %64 = inttoptr i64 %63 to i32* store i32 %61, i32* %64, align 4 store i32 1, i32* %storemerge3.reg2mem br label LBL_9 LBL_8: %65 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i32 %45, i64 %35, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_9: %66 = call i64 @FUNC(i64 %6, i64 4) %67 = and i64 %32, 4294967295 %68 = call i64 @FUNC(i64 %6, i64 %67, i64 0) %69 = call i64 @FUNC(i64 %6, i64 140) %70 = call i64 @FUNC(i64 %6) %71 = trunc i64 %70 to i32 %72 = icmp eq i32 %71, 21587 store i64 1, i64* %rax.0.reg2mem br i1 %72, label LBL_10, label LBL_46 LBL_10: %73 = call i64 @FUNC(i64 %6) %74 = trunc i64 %73 to i32 %75 = icmp ult i32 %74, 5692 br i1 %75, label LBL_11, label LBL_12 LBL_11: %76 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i32 0, i64 %67, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_12: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %77 = call i64 @FUNC(i64 %6, i64 616) %78 = call i64 @FUNC(i64 %6) %79 = trunc i64 %78 to i32 %80 = icmp eq i32 %79, 0 %81 = zext i1 %80 to i32 %82 = icmp eq i32 %storemerge3.reload, %81 br i1 %82, label LBL_14, label LBL_13 LBL_13: %83 = load i64, i64* %11, align 8 %84 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0)) %85 = add i64 %83, 32 %86 = inttoptr i64 %85 to i64* store i64 %84, i64* %86, align 8 %87 = load i64, i64* %11, align 8 %88 = add i64 %87, 40 %89 = inttoptr i64 %88 to i32* store i32 9, i32* %89, align 4 br label LBL_14 LBL_14: %90 = trunc i64 %21 to i32 %91 = call i64 @FUNC(i64 %6, i64 4) %92 = call i64 @FUNC(i64 %6) %93 = and i64 %92, 4294967295 %94 = call i64 @FUNC(i64 %10, i64 64, i64 1, i64 %93) %95 = call i64 @FUNC(i64 %6, i64 20) %96 = call i64 @FUNC(i64 %6) %97 = and i64 %96, 4294967295 %98 = add nsw i64 %10, 16 %99 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_5, i64 0, i64 0), i64 %97, i64 0) %100 = call i64 @FUNC(i64 %6) %101 = and i64 %100, 4294967295 %102 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_6, i64 0, i64 0), i64 %101, i64 0) %103 = call i64 @FUNC(i64 %6) %104 = and i64 %103, 4294967295 %105 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_7, i64 0, i64 0), i64 %104, i64 0) %106 = call i64 @FUNC(i64 %6) %107 = and i64 %106, 4294967295 %108 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_8, i64 0, i64 0), i64 %107, i64 0) %109 = call i64 @FUNC(i64 %6) %110 = call i64 @FUNC(i64 %6) %111 = and i64 %110, 4294967295 %112 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_9, i64 0, i64 0), i64 %111, i64 1) %113 = call i64 @FUNC(i64 %6) %114 = and i64 %113, 4294967295 %115 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_10, i64 0, i64 0), i64 %114, i64 1) %116 = call i64 @FUNC(i64 %6) %117 = and i64 %116, 4294967295 %118 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_11, i64 0, i64 0), i64 %117, i64 1) %119 = call i64 @FUNC(i64 %6, i64 28) %120 = call i64 @FUNC(i64 %6) %121 = and i64 %120, 4294967295 %122 = call i64 @FUNC(i64 %121) %123 = call i32 @FUNC(i128 %5) %124 = call i128 @__asm_movd.1(i32 %123) %125 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_12, i64 0, i64 0), i64 1) %126 = call i64 @FUNC(i64 %6) %127 = and i64 %126, 4294967295 %128 = call i64 @FUNC(i64 %127) %129 = call i32 @FUNC(i128 %124) %130 = call i128 @__asm_movd.1(i32 %129) %131 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_13, i64 0, i64 0), i64 1) %132 = call i64 @FUNC(i64 %6, i64 36) %133 = call i64 @FUNC(i64 %6) %134 = trunc i64 %133 to i32 %135 = load i64, i64* %11, align 8 %136 = add i64 %135, 20 %137 = inttoptr i64 %136 to i32* store i32 %134, i32* %137, align 4 %138 = icmp eq i32 %90, 1 %139 = icmp eq i1 %138, false br i1 %139, label LBL_24, label LBL_15 LBL_15: %140 = icmp eq i32 %52, 8 %141 = icmp eq i1 %140, false br i1 %141, label LBL_17, label LBL_16 LBL_16: %142 = load i64, i64* %11, align 8 %143 = add i64 %142, 24 %144 = inttoptr i64 %143 to i32* store i32 5, i32* %144, align 4 br label LBL_38 LBL_17: %145 = icmp eq i32 %52, 16 %146 = icmp eq i1 %145, false br i1 %146, label LBL_19, label LBL_18 LBL_18: %147 = load i64, i64* %11, align 8 %148 = add i64 %147, 24 %149 = inttoptr i64 %148 to i32* store i32 6, i32* %149, align 4 br label LBL_38 LBL_19: %150 = icmp eq i32 %52, 24 %151 = icmp eq i1 %150, false br i1 %151, label LBL_21, label LBL_20 LBL_20: %152 = load i64, i64* %11, align 8 %153 = add i64 %152, 24 %154 = inttoptr i64 %153 to i32* store i32 7, i32* %154, align 4 br label LBL_38 LBL_21: %155 = icmp eq i32 %52, 48 %156 = icmp eq i1 %155, false br i1 %156, label LBL_23, label LBL_22 LBL_22: %157 = load i64, i64* %11, align 8 %158 = add i64 %157, 24 %159 = inttoptr i64 %158 to i32* store i32 8, i32* %159, align 4 br label LBL_38 LBL_23: %160 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %52, i64 %98, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_24: %161 = icmp eq i32 %90, 2 %162 = icmp eq i1 %161, false br i1 %162, label LBL_37, label LBL_25 LBL_25: %163 = trunc i64 %109 to i32 %164 = urem i32 %163, 16777216 switch i32 %164, label LBL_36 [ i32 3, label LBL_26 i32 4, label LBL_31 ] LBL_26: %165 = icmp eq i32 %52, 8 %166 = icmp eq i1 %165, false br i1 %166, label LBL_28, label LBL_27 LBL_27: %167 = load i64, i64* %11, align 8 %168 = add i64 %167, 24 %169 = inttoptr i64 %168 to i32* store i32 9, i32* %169, align 4 br label LBL_38 LBL_28: %170 = icmp eq i32 %52, 16 %171 = icmp eq i1 %170, false br i1 %171, label LBL_30, label LBL_29 LBL_29: %172 = load i64, i64* %11, align 8 %173 = add i64 %172, 24 %174 = inttoptr i64 %173 to i32* store i32 10, i32* %174, align 4 br label LBL_38 LBL_30: %175 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %52, i64 %98, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_31: %176 = icmp eq i32 %52, 8 %177 = icmp eq i1 %176, false br i1 %177, label LBL_33, label LBL_32 LBL_32: %178 = load i64, i64* %11, align 8 %179 = add i64 %178, 24 %180 = inttoptr i64 %179 to i32* store i32 11, i32* %180, align 4 br label LBL_38 LBL_33: %181 = icmp eq i32 %52, 16 %182 = icmp eq i1 %181, false br i1 %182, label LBL_35, label LBL_34 LBL_34: %183 = load i64, i64* %11, align 8 %184 = add i64 %183, 24 %185 = inttoptr i64 %184 to i32* store i32 12, i32* %185, align 4 br label LBL_38 LBL_35: %186 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %52, i64 %98, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_36: %187 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_14, i64 0, i64 0), i32 %164, i64 %98, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_37: %188 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_15, i64 0, i64 0), i32 %90, i64 %98, i64 %3, i64 %2) store i64 1, i64* %rax.0.reg2mem br label LBL_46 LBL_38: %189 = call i64 @FUNC(i64 %6, i64 668) %190 = call i64 @FUNC(i64 %6) %191 = and i64 %190, 4294967295 %192 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_16, i64 0, i64 0), i64 %191, i64 0) %193 = call i64 @FUNC(i64 %6, i64 24) %194 = call i64 @FUNC(i64 4097) %195 = icmp eq i64 %194, 0 %196 = icmp eq i1 %195, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %196, label LBL_39, label LBL_46 LBL_39: %197 = call i64 @FUNC(i64 %6, i64 4096, i64 %194, i64 4097) %198 = icmp ult i64 %197, 4096 br i1 %198, label LBL_40, label LBL_41 LBL_40: %199 = sub i64 4096, %197 %200 = and i64 %199, 4294967295 %201 = call i64 @FUNC(i64 %6, i64 %200) br label LBL_41 LBL_41: %202 = inttoptr i64 %194 to i8* %203 = load i8, i8* %202, align 1 %204 = icmp eq i8 %203, 0 br i1 %204, label LBL_43, label LBL_42 LBL_42: %205 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_17, i64 0, i64 0), i64 %194, i64 0) br label LBL_44 LBL_43: %206 = call i64 @FUNC(i64 %194) br label LBL_44 LBL_44: %207 = call i64 @FUNC(i64 %6, i64 1176) %208 = call i64 @FUNC(i64 %6) %209 = and i64 %208, 4294967295 %210 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_18, i64 0, i64 0), i64 %209, i64 1) %211 = call i64 @FUNC(i64 %6) %212 = and i64 %211, 4294967295 %213 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_19, i64 0, i64 0), i64 %212, i64 1) %214 = call i64 @FUNC(i64 %6) %215 = and i64 %214, 4294967295 %216 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_20, i64 0, i64 0), i64 %215, i64 1) %217 = call i64 @FUNC(i64 %6) %218 = and i64 %217, 4294967295 %219 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_21, i64 0, i64 0), i64 %218, i64 1) %220 = call i64 @FUNC(i64 %6) %221 = and i64 %220, 4294967295 %222 = call i64 @FUNC(i64 %98, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_22, i64 0, i64 0), i64 %221, i64 1) %223 = and i64 %33, 4294967295 %224 = call i64 @FUNC(i64 %6, i64 %223, i64 0) %225 = load i32, i32* %30, align 4 %226 = icmp eq i32 %225, 0 store i64 0, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %226, label LBL_46, label LBL_45 LBL_45: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %227 = call i64 @FUNC(i64 %6) %228 = call i64 @FUNC(i64 %10, i64 %227, i64 %indvars.iv.reload, i64 0, i64 0, i64 2) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %229 = load i32, i32* %30, align 4 %230 = zext i32 %229 to i64 %231 = icmp ult i64 %indvars.iv.next, %230 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %231, label LBL_45, label LBL_46 LBL_46: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %194, { 0, 1, 3, 2, 4 } uselistorder i32 %164, { 1, 0 } uselistorder i64 %98, { 1, 2, 3, 4, 5, 0, 6, 8, 11, 10, 9, 12, 7, 13, 14, 15, 16, 17, 18, 19, 20 } uselistorder i32 %90, { 2, 1, 0 } uselistorder i64 %67, { 1, 0 } uselistorder i32 %52, { 9, 8, 7, 12, 11, 10, 6, 5, 4, 3, 2, 13, 0, 1 } uselistorder i64 %35, { 1, 0, 2 } uselistorder i32* %30, { 1, 0, 2 } uselistorder i64* %11, { 8, 7, 10, 9, 6, 5, 4, 3, 11, 1, 2, 0, 12, 13, 14, 15, 16 } uselistorder i64 %6, { 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 4, 5, 19, 3, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 2, 45, 1, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 0, 58, 59, 60, 61 } uselistorder i64 %3, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %2, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 14, 11, 12, 13, 10, 15, 4, 9, 8, 5, 7, 6 } uselistorder i64* %1, { 2, 1, 0 } uselistorder i32 16, { 1, 0, 2 } uselistorder i64 (i64, i8*, i64)* @set_metadata_float, { 1, 0 } uselistorder i64 (i64)* @av_int2float, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64)* @set_metadata_int, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 20, { 1, 0 } uselistorder i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), { 1, 0, 2, 3 } uselistorder i32 2, { 1, 0 } uselistorder i32 5, { 1, 0 } uselistorder i32 8, { 2, 1, 4, 3, 0 } uselistorder i64 (i64, i64, i64)* @avio_seek, { 2, 1, 0 } uselistorder i64 (i64)* @avio_rl32, { 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 12, { 1, 0 } uselistorder i64 1, { 14, 15, 16, 17, 18, 19, 9, 6, 7, 8, 5, 20, 21, 22, 23, 24, 25, 10, 0, 4, 3, 1, 2, 11, 12, 13 } uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @avpriv_request_sample, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @avio_rl16, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @avio_skip, { 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 8, { 1, 0, 2, 3 } uselistorder i32 0, { 1, 5, 4, 3, 0, 2, 6, 7 } uselistorder i64 32, { 1, 0 } uselistorder i64 4294967284, { 0, 1, 3, 2 } uselistorder label LBL_46, { 0, 1, 2, 6, 7, 8, 9, 10, 11, 3, 12, 13, 4, 14, 5 } uselistorder label LBL_45, { 1, 0 } uselistorder label LBL_41, { 1, 0 } uselistorder label LBL_9, { 1, 0 } }
1
reposvul_c_test
open_will_truncate_159
open_will_truncate
define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %1, 4294967295 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = and i64 %arg1, 512 %storemerge = select i1 %5, i64 %6, i64 0 ret i64 %storemerge }
0
BinRealVul
next_random_slot_19264
next_random_slot
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 = add i32 %3, 1 store i32 %4, i32* %2, align 4 %5 = zext i32 %3 to i64 %6 = mul i64 %5, 4 %7 = add i64 %6, %0 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %0, 12 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i32 %12, %9 %14 = add i64 %0, 16 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = urem i32 %13, %16 %18 = zext i32 %17 to i64 ret i64 %18 uselistorder i64 %0, { 1, 2, 0, 3 } }
1
BinRealVul
qxl_spice_monitors_config_async_3059
qxl_spice_monitors_config_async
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 %4 = and i64 %1, 4294967295 %5 = call i64 @FUNC(i64 %4) %6 = icmp eq i32 %3, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 2, i64 0) %8 = add i64 %2, 24 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = add i64 %2, 4 %12 = zext i32 %10 to i64 %13 = call i64 @FUNC(i64 %11, i64 %12, i64 1, i64 %7) store i64 %13, i64* %storemerge.reg2mem br label LBL_5 LBL_2: %14 = add i64 %2, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 %.pre = add i64 %2, 4 br i1 %17, label LBL_4, label LBL_3 LBL_3: %18 = zext i32 %16 to i64 %19 = call i64 @FUNC(i64 %.pre, i64 %18) br label LBL_4 LBL_4: %20 = add i64 %2, 16 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = add i64 %2, 24 %26 = inttoptr i64 %25 to i32* store i32 %24, i32* %26, align 4 %27 = call i64 @FUNC(i64 3, i64 4) %28 = load i64, i64* %21, align 8 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = zext i32 %30 to i64 %32 = call i64 @FUNC(i64 %.pre, i64 %31, i64 1, i64 %27) store i64 %32, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %2, { 4, 3, 0, 5, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64, i64, i64)* @spice_qxl_monitors_config_async, { 1, 0 } uselistorder i64 4, { 1, 0, 2 } uselistorder i64 (i64, i64)* @qxl_cookie_new, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
sctp_inet_listen_17534
sctp_inet_listen
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.02.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %sv_1.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* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = trunc i64 %arg2 to i32 %10 = icmp sgt i32 %9, -1 %11 = icmp eq i1 %10, false store i64 4294967274, i64* %sv_0.1.reg2mem br i1 %11, label LBL_11, label LBL_1 LBL_1: %12 = trunc i64 %3 to i32 %13 = call i64 @FUNC(i64 %8) %14 = icmp eq i32 %12, 0 %15 = icmp eq i1 %14, false store i64 4294967274, i64* %sv_0.1.reg2mem br i1 %15, label LBL_11, label LBL_2 LBL_2: %16 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %17 = icmp eq i32 %16, 0 store i64 0, i64* %sv_1.0.reg2mem br i1 %17, label LBL_6, label LBL_3 LBL_3: %18 = load i32, i32* @gv_0, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19, i64 0, i64 0) %21 = call i64 @FUNC(i64 %20) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i64 %20, i64* %sv_1.0.reg2mem br i1 %23, label LBL_6, label LBL_4 LBL_4: %24 = call i64 @FUNC() %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 store i64 4294967258, i64* %sv_0.1.reg2mem br i1 %26, label LBL_11, label LBL_5 LBL_5: %27 = call i64 @FUNC(i64 %20) %28 = load i32, i32* @gv_0, align 4 %29 = zext i32 %28 to i64 %30 = call i64 @FUNC(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i64 %29, i64 %27, i64 %4, i64 %2, i64 %1) store i64 4294967258, i64* %sv_0.1.reg2mem br label LBL_11 LBL_6: %sext = mul i64 %arg2, 4294967296 %31 = ashr exact i64 %sext, 32 %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %32 = add i64 %5, 4 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 store i64 4294967274, i64* %sv_0.02.reg2mem switch i32 %34, label LBL_12 [ i32 1, label LBL_7 i32 2, label LBL_8 ] LBL_7: %35 = and i64 %31, 4294967295 %36 = call i64 @FUNC(i64 %8, i64 %35) store i64 %36, i64* %sv_0.0.in.reg2mem br label LBL_9 LBL_8: %37 = and i64 %31, 4294967295 %38 = call i64 @FUNC(i64 %8, i64 %37) store i64 %38, i64* %sv_0.0.in.reg2mem br label LBL_9 LBL_9: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem %sv_0.0 = trunc i64 %sv_0.0.in.reload to i32 %39 = icmp eq i32 %sv_0.0, 0 %40 = icmp eq i1 %39, false store i64 %sv_0.0.in.reload, i64* %sv_0.02.reg2mem br i1 %40, label LBL_12, label LBL_10 LBL_10: %41 = call i64 @FUNC(i64 %8) %42 = inttoptr i64 %41 to i64* store i64 %sv_1.0.reload, i64* %42, align 8 store i64 %sv_0.0.in.reload, i64* %sv_0.1.reg2mem br label LBL_11 LBL_11: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %43 = call i64 @FUNC(i64 %8) %44 = and i64 %sv_0.1.reload, 4294967295 ret i64 %44 LBL_12: %sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem %45 = call i64 @FUNC(i64 %sv_1.0.reload) store i64 %sv_0.02.reload, i64* %sv_0.1.reg2mem br label LBL_11 uselistorder i64 %sv_0.0.in.reload, { 1, 0, 2 } uselistorder i64 %20, { 1, 0, 2 } uselistorder i64 %8, { 4, 1, 0, 2, 3 } uselistorder i64* %sv_0.1.reg2mem, { 4, 0, 3, 2, 1, 5, 6 } uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 4294967258, { 1, 0 } uselistorder i32* @gv_0, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_11, { 4, 5, 1, 0, 2, 3 } }
1
BinRealVul
jpeg_size_5251
jpeg_size
define i64 @FUNC(i64* %arg1, i32 %arg2, i32* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.ph.in.reg2mem = alloca i32 %sv_0.0.ph.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = icmp ult i32 %arg2, 4 store i64 4294967295, i64* %rax.0.reg2mem br i1 %2, label LBL_19, label LBL_1 LBL_1: %3 = trunc i64 %1 to i8 %4 = icmp eq i8 %3, -1 %5 = icmp eq i1 %4, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %5, label LBL_19, label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 1 %8 = inttoptr i64 %7 to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, -40 %11 = icmp eq i1 %10, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %11, label LBL_19, label LBL_3 LBL_3: %12 = add i64 %6, 2 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = icmp eq i8 %14, -1 %16 = icmp eq i1 %15, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %16, label LBL_19, label LBL_4 LBL_4: %17 = add i64 %6, 3 %18 = inttoptr i64 %17 to i8* %19 = load i8, i8* %18, align 1 %20 = icmp eq i8 %19, -32 %21 = icmp ugt i32 %arg2, 10 %or.cond = icmp eq i1 %21, %20 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_5, label LBL_19 LBL_5: %22 = add i64 %6, 6 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = icmp eq i8 %24, 74 %26 = icmp eq i1 %25, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %26, label LBL_19, label LBL_6 LBL_6: %27 = add i64 %6, 7 %28 = inttoptr i64 %27 to i8* %29 = load i8, i8* %28, align 1 %30 = icmp eq i8 %29, 70 %31 = icmp eq i1 %30, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %31, label LBL_19, label LBL_7 LBL_7: %32 = add i64 %6, 8 %33 = inttoptr i64 %32 to i8* %34 = load i8, i8* %33, align 1 %35 = icmp eq i8 %34, 73 %36 = icmp eq i1 %35, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %36, label LBL_19, label LBL_8 LBL_8: %37 = add i64 %6, 9 %38 = inttoptr i64 %37 to i8* %39 = load i8, i8* %38, align 1 %40 = icmp eq i8 %39, 70 %41 = icmp eq i1 %40, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %41, label LBL_19, label LBL_9 LBL_9: %42 = add i64 %6, 10 %43 = inttoptr i64 %42 to i8* %44 = load i8, i8* %43, align 1 %45 = icmp eq i8 %44, 0 %46 = icmp eq i1 %45, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %46, label LBL_19, label LBL_10 LBL_10: %47 = add i64 %6, 4 %48 = inttoptr i64 %47 to i8* %49 = load i8, i8* %48, align 1 %50 = zext i8 %49 to i32 %51 = mul i32 %50, 256 %52 = add i64 %6, 5 %53 = inttoptr i64 %52 to i8* %54 = load i8, i8* %53, align 1 %55 = zext i8 %54 to i32 %56 = or i32 %51, %55 store i32 4, i32* %sv_0.0.ph.reg2mem store i32 %56, i32* %sv_1.0.ph.in.reg2mem br label LBL_17 LBL_11: %57 = add i32 %sv_0.0.reload, %sv_1.0.ph.in.reload %58 = add i32 %57, 1 %59 = icmp ult i32 %58, %arg2 store i64 4294967295, i64* %rax.0.reg2mem br i1 %59, label LBL_12, label LBL_19 LBL_12: %60 = sext i32 %57 to i64 %61 = add i64 %60, %6 %62 = inttoptr i64 %61 to i8* %63 = load i8, i8* %62, align 1 %64 = icmp eq i8 %63, -1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %64, label LBL_13, label LBL_19 LBL_13: %65 = add i64 %61, 1 %66 = inttoptr i64 %65 to i8* %67 = load i8, i8* %66, align 1 %68 = icmp eq i8 %67, -64 %69 = icmp eq i1 %68, false br i1 %69, label LBL_15, label LBL_14 LBL_14: %70 = add i64 %61, 5 %71 = inttoptr i64 %70 to i8* %72 = load i8, i8* %71, align 1 %73 = zext i8 %72 to i32 %74 = mul i32 %73, 256 %75 = add i64 %61, 6 %76 = inttoptr i64 %75 to i8* %77 = load i8, i8* %76, align 1 %78 = zext i8 %77 to i32 %79 = or i32 %74, %78 %80 = bitcast i64* %arg4 to i32* store i32 %79, i32* %80, align 4 %81 = add i64 %61, 7 %82 = inttoptr i64 %81 to i8* %83 = load i8, i8* %82, align 1 %84 = zext i8 %83 to i32 %85 = mul i32 %84, 256 %86 = add i64 %61, 8 %87 = inttoptr i64 %86 to i8* %88 = load i8, i8* %87, align 1 %89 = zext i8 %88 to i32 %90 = or i32 %85, %89 store i32 %90, i32* %arg3, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_15: %91 = add i32 %57, 2 %92 = add i32 %57, 3 %93 = icmp ult i32 %92, %arg2 store i32 %91, i32* %sv_0.0.reg2mem br i1 %93, label LBL_16, label LBL_18 LBL_16: %94 = sext i32 %91 to i64 %95 = add i64 %94, %6 %96 = inttoptr i64 %95 to i8* %97 = load i8, i8* %96, align 1 %98 = zext i8 %97 to i32 %99 = mul i32 %98, 256 %100 = add i64 %7, %94 %101 = inttoptr i64 %100 to i8* %102 = load i8, i8* %101, align 1 %103 = zext i8 %102 to i32 %104 = or i32 %99, %103 store i32 %91, i32* %sv_0.0.ph.reg2mem store i32 %104, i32* %sv_1.0.ph.in.reg2mem br label LBL_17 LBL_17: %sv_1.0.ph.in.reload = load i32, i32* %sv_1.0.ph.in.reg2mem %sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem store i32 %sv_0.0.ph.reload, i32* %sv_0.0.reg2mem br label LBL_18 LBL_18: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %105 = icmp ult i32 %sv_0.0.reload, %arg2 store i64 4294967295, i64* %rax.0.reg2mem br i1 %105, label LBL_11, label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %91, { 1, 2, 0 } uselistorder i32 %57, { 1, 0, 2, 3 } uselistorder i64 %6, { 0, 1, 8, 7, 6, 5, 4, 3, 2, 11, 10, 9 } uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.0.ph.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 14, 2, 3, 12, 11, 10, 9, 8, 13, 7, 6, 5, 4 } uselistorder i64 4294967295, { 0, 1, 2, 11, 10, 9, 8, 7, 12, 6, 5, 4, 3 } uselistorder i32 %arg2, { 3, 1, 2, 0, 4 } uselistorder label LBL_19, { 0, 13, 1, 2, 11, 10, 9, 8, 7, 12, 6, 5, 4, 3 } }
0
BinRealVul
rprobe_17262
rprobe
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i32, align 4 %0 = icmp ne i64* %arg2, null %1 = icmp eq i64* %arg3, null %2 = icmp eq i1 %1, false %or.cond = icmp eq i1 %0, %2 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_2 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i64* %arg1 to i64 %5 = ptrtoint i64* %arg3 to i64 %6 = bitcast i32* %sv_0 to i64* %7 = call i64 @FUNC(i64* nonnull %6, i64 %5, i64 192, i64 1) %8 = add i64 %3, 48 %9 = call i64 @FUNC(i64* nonnull %6, i64 %4, i64 %8, i64 1, i64 0, i64 1) %10 = call i64 @FUNC(i64* nonnull %6, i64 %4, i64 64, i64 0) %11 = add i64 %4, 24 %12 = call i64 @FUNC(i64* nonnull %6, i64 %11, i64 0, i64 1, i64 0, i64 0) %13 = add i64 %4, 40 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = add i64 %4, 44 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = add i32 %15, 48 %20 = add i32 %19, %18 store i32 %20, i32* %sv_0, align 4 %21 = call i64 @FUNC(i64* nonnull %6, i64 %11, i64 64, i64 0) %22 = add i64 %4, 48 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = udiv i32 %24, 8 %26 = zext i32 %25 to i64 %27 = load i32, i32* %sv_0, align 4 %28 = zext i32 %27 to i64 %29 = add i64 %28, %3 %30 = add i64 %4, 32 %31 = call i64 @FUNC(i64* nonnull %6, i64 %30, i64 %29, i64 %26) %32 = load i32, i32* %23, align 4 %33 = load i32, i32* %sv_0, align 4 %34 = add i32 %33, %32 store i32 %34, i32* %sv_0, align 4 %35 = zext i32 %34 to i64 %36 = add i64 %35, %3 %37 = inttoptr i64 %36 to i64* %38 = inttoptr i64 %30 to i64* %39 = call i32 @memcmp(i64* %37, i64* %38, i32 8) %40 = icmp eq i32 %39, 0 %. = select i1 %40, i64 0, i64 4294967295 store i64 %., i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 0, 1, 3, 2, 6, 5, 4 } uselistorder i32* %sv_0, { 3, 2, 1, 0, 4 } uselistorder i32 8, { 1, 0 } uselistorder i64 (i64*, i64, i64, i64, i64, i64)* @av_des_crypt, { 1, 0 } uselistorder i64 (i64*, i64, i64, i64)* @av_des_init, { 2, 1, 0 } uselistorder i64 1, { 0, 2, 1, 3 } uselistorder i64* %arg3, { 1, 0 } uselistorder i64* %arg2, { 1, 0 } }
1
BinRealVul
alloc_aio_bitmap_1299
alloc_aio_bitmap
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %4, 511 %6 = add i64 %4, 1022 %7 = icmp slt i64 %5, 0 %8 = select i1 %7, i64 %6, i64 %5 %9 = ashr i64 %8, 9 %10 = call i64 @FUNC(i64 %9) store i64 %10, i64* %arg1, align 8 ret i64 %10 uselistorder i64 %10, { 1, 0 } uselistorder i64 %5, { 1, 0 } }
0
BinRealVul
get_ue_code_310
get_ue_code
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.shrunk.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = trunc i64 %arg2 to i32 %7 = urem i32 %6, 32 %8 = lshr i32 -2147483648, %7 %9 = icmp ugt i32 %8, %5 br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = and i64 %arg2, 4294967295 %11 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %2, i64 %1) store i32 -1, i32* %rax.0.shrunk.reg2mem br label LBL_4 LBL_2: %sext = mul i64 %arg2, 4294967296 %12 = ashr exact i64 %sext, 32 %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i32 %5, i32* %rax.0.shrunk.reg2mem br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = urem i32 %13, 32 %16 = shl i32 %5, %15 %17 = and i64 %12, 4294967295 %18 = call i64 @FUNC(i64 %3, i64 %17) %19 = trunc i64 %18 to i32 %20 = add i32 %16, %19 store i32 %20, i32* %rax.0.shrunk.reg2mem br label LBL_4 LBL_4: %rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem %rax.0 = zext i32 %rax.0.shrunk.reload to i64 ret i64 %rax.0 uselistorder i64 %12, { 1, 0 } uselistorder i32 %5, { 2, 0, 1 } uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 %arg2, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
handle_cpu_signal_5131
handle_cpu_signal
define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: ret i64 1 }
0
BinRealVul
__cil_build_ast_last_child_helper_6317
__cil_build_ast_last_child_helper
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.in4.reg2mem = alloca i64 %.reg2mem13 = alloca i32 %.reg2mem11 = alloca i32 %.reg2mem = alloca i32 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 1 %4 = icmp eq i1 %3, false br i1 %4, label LBL_1, label LBL_16 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = bitcast i64* %rsi to i32* %7 = add i64 %5, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 store i64 %9, i64* %arg2, align 8 %10 = icmp eq i32 %2, 2 %11 = icmp eq i1 %10, false store i32 %2, i32* %.reg2mem br i1 %11, label LBL_3, label LBL_2 LBL_2: store i64 0, i64* %8, align 8 %.pre = load i32, i32* %6, align 8 store i32 %.pre, i32* %.reg2mem br label LBL_3 LBL_3: %.reload = load i32, i32* %.reg2mem %12 = icmp eq i32 %.reload, 3 %13 = icmp eq i1 %12, false store i32 %.reload, i32* %.reg2mem11 br i1 %13, label LBL_5, label LBL_4 LBL_4: %14 = add i64 %5, 16 %15 = inttoptr i64 %14 to i64* store i64 0, i64* %15, align 8 %.pre7 = load i32, i32* %6, align 8 store i32 %.pre7, i32* %.reg2mem11 br label LBL_5 LBL_5: %.reload12 = load i32, i32* %.reg2mem11 %16 = icmp eq i32 %.reload12, 4 %17 = icmp eq i1 %16, false store i32 %.reload12, i32* %.reg2mem13 br i1 %17, label LBL_7, label LBL_6 LBL_6: %18 = add i64 %5, 24 %19 = inttoptr i64 %18 to i64* store i64 0, i64* %19, align 8 %.pre8 = load i32, i32* %6, align 8 store i32 %.pre8, i32* %.reg2mem13 br label LBL_7 LBL_7: %.reload14 = load i32, i32* %.reg2mem13 %20 = icmp eq i32 %.reload14, 5 %21 = icmp eq i1 %20, false br i1 %21, label LBL_13, label LBL_8 LBL_8: %22 = load i64, i64* %8, align 8 %23 = add i64 %5, 32 %24 = inttoptr i64 %23 to i64* store i64 0, i64* %24, align 8 %25 = icmp eq i64 %22, 0 store i64 %22, i64* %sv_0.0.in4.reg2mem br i1 %25, label LBL_13, label LBL_12 LBL_9: %26 = icmp eq i32 %32, 5 %27 = icmp eq i1 %26, false br i1 %27, label LBL_11, label LBL_10 LBL_10: store i64 %sv_0.0.in4.reload, i64* %24, align 8 br label LBL_13 LBL_11: %28 = add i64 %sv_0.0.in4.reload, 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = icmp eq i64 %30, 0 store i64 %30, i64* %sv_0.0.in4.reg2mem br i1 %31, label LBL_13, label LBL_12 LBL_12: %sv_0.0.in4.reload = load i64, i64* %sv_0.0.in4.reg2mem %sv_0.0 = inttoptr i64 %sv_0.0.in4.reload to i32* %32 = load i32, i32* %sv_0.0, align 4 %33 = icmp eq i32 %32, 1 %34 = icmp eq i1 %33, false br i1 %34, label LBL_9, label LBL_13 LBL_13: %35 = load i32, i32* %6, align 8 %36 = icmp eq i32 %35, 6 %37 = icmp eq i1 %36, false br i1 %37, label LBL_15, label LBL_14 LBL_14: %38 = add i64 %5, 40 %39 = inttoptr i64 %38 to i64* store i64 0, i64* %39, align 8 br label LBL_15 LBL_15: %40 = ptrtoint i32* %arg1 to i64 %41 = add i64 %40, 8 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = call i64 @FUNC(i64 %43) br label LBL_16 LBL_16: ret i64 0 uselistorder i32 %32, { 1, 0 } uselistorder i64 %sv_0.0.in4.reload, { 1, 2, 0 } uselistorder i64* %8, { 1, 0, 2 } uselistorder i32* %6, { 3, 0, 1, 2 } uselistorder i64 %5, { 3, 2, 1, 0, 4 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem11, { 0, 2, 1 } uselistorder i32* %.reg2mem13, { 0, 2, 1 } uselistorder i64* %sv_0.0.in4.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6, 7 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_13, { 1, 0, 3, 2, 4 } uselistorder label LBL_12, { 1, 0 } }
0
BinRealVul
print_drive_786
print_drive
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 store i64 ptrtoint ([7 x i8]* @gv_0 to i64), i64* %storemerge.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = inttoptr i64 %4 to i64* %7 = load i64, i64* %6, align 8 store i64 %7, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem %8 = bitcast i64* %arg3 to i8* %9 = trunc i64 %arg4 to i32 %10 = inttoptr i64 %storemerge.reload to i8* %11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %8, i32 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8* %10) %12 = sext i32 %11 to i64 ret i64 %12 uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
addReply_11962
addReply
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false store i64 %3, i64* %rax.0.reg2mem br i1 %6, label LBL_7, label LBL_1 LBL_1: %7 = ptrtoint i64* %arg2 to i64 %8 = trunc i64 %1 to i32 %9 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %10 = icmp eq i32 %9, 0 %11 = icmp eq i32 %8, 1 %narrow = or i1 %11, %10 %storemerge = zext i1 %narrow to i64 %12 = call i64 @FUNC(i64 %storemerge) %13 = add i64 %7, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 2 %17 = icmp eq i1 %16, false br i1 %17, label LBL_4, label LBL_2 LBL_2: %18 = add i64 %7, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20) %22 = load i64, i64* %19, align 8 %23 = call i64 @FUNC(i64 %2, i64 %22, i64 %21) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 store i64 %23, i64* %rax.0.reg2mem br i1 %25, label LBL_7, label LBL_3 LBL_3: %26 = call i64 @FUNC(i64 %2, i64 %7) store i64 %26, i64* %rax.0.reg2mem br label LBL_7 LBL_4: %27 = call i64 @FUNC(i64 %7) %28 = add i64 %27, 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = call i64 @FUNC(i64 %30) %32 = load i64, i64* %29, align 8 %33 = call i64 @FUNC(i64 %2, i64 %32, i64 %31) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 br i1 %35, label LBL_6, label LBL_5 LBL_5: %36 = call i64 @FUNC(i64 %2, i64 %27) br label LBL_6 LBL_6: %37 = call i64 @FUNC(i64 %27) store i64 %37, 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 %27, { 1, 0, 2 } uselistorder i64 %7, { 3, 0, 2, 1 } uselistorder i64 %2, { 2, 3, 0, 1, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 } uselistorder i64 (i64, i64)* @_addReplyObjectToList, { 1, 0 } uselistorder i64 (i64, i64, i64)* @_addReplyToBuffer, { 1, 0 } uselistorder i64 (i64)* @sdslen, { 1, 0 } uselistorder label LBL_7, { 1, 2, 3, 0 } }
1
BinRealVul
add_range_7687
add_range
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rsi.6.reg2mem = alloca i64 %.pre-phi21.reg2mem = alloca i32* %.reg2mem29 = alloca i32 %sv_0.0.in.reg2mem = alloca i64 %.reg2mem27 = alloca i32 %.pre-phi.reg2mem = alloca i64 %.pre-phi19.reg2mem = alloca i64 %rsi.5.reg2mem = alloca i64 %sv_1.2.reg2mem = alloca i32 %rsi.4.reg2mem = alloca i64 %sv_1.1.reg2mem = alloca i32 %sv_2.4.reg2mem = alloca i32 %sv_3.4.reg2mem = alloca i32 %sv_2.2.reg2mem = alloca i32 %sv_3.2.reg2mem = alloca i32 %sv_4.2.reg2mem = alloca i32 %rsi.3.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_2.1.reg2mem = alloca i32 %sv_3.1.reg2mem = alloca i32 %sv_4.1.reg2mem = alloca i32 %rsi.2.reg2mem = alloca i64 %.reg2mem25 = alloca i32 %rsi.1.reg2mem = alloca i64 %.reg2mem = alloca i32 %rsi.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i32 %sv_4.0.reg2mem = alloca i32 %sv_5 = alloca i64, align 8 %0 = trunc i64 %arg3 to i32 %1 = trunc i64 %arg4 to i32 %sext9 = mul i64 %arg6, 4294967296 %2 = ashr exact i64 %sext9, 32 store i64 %2, i64* %sv_5, align 8 %3 = icmp ugt i32 %0, %1 br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = add i64 %arg2, 24 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %6) store i64 %7, i64* %storemerge.reg2mem br label LBL_46 LBL_2: %sext = mul i64 %arg7, 4294967296 %8 = ashr exact i64 %sext, 32 %sext6 = mul i64 %arg3, 4294967296 %9 = ashr exact i64 %sext6, 32 %sext7 = mul i64 %arg4, 4294967296 %10 = ashr exact i64 %sext7, 32 %sext8 = mul i64 %arg5, 4294967296 %11 = ashr exact i64 %sext8, 32 %12 = add i64 %arg2, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 store i32 -1, i32* %sv_1.2.reg2mem store i64 %arg2, i64* %rsi.5.reg2mem br i1 %15, label LBL_35, label LBL_3 LBL_3: %16 = add i64 %arg2, 16 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = trunc i64 %2 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = ptrtoint i64* %sv_5 to i64 %22 = trunc i64 %9 to i32 %23 = trunc i64 %10 to i32 %24 = add i32 %23, 1 %25 = add i32 %22, -1 %26 = add nsw i64 %10, 1 %27 = add i64 %21, -16 %28 = inttoptr i64 %27 to i64* %29 = and i64 %26, 4294967295 store i32 %18, i32* %sv_4.0.reg2mem store i32 -1, i32* %sv_3.0.reg2mem store i32 -1, i32* %sv_2.0.reg2mem store i64 %arg2, i64* %rsi.0.reg2mem br label LBL_6 LBL_5: %30 = trunc i64 %10 to i32 store i32 %18, i32* %sv_4.2.reg2mem store i32 -1, i32* %sv_3.2.reg2mem store i32 -1, i32* %sv_2.2.reg2mem br label LBL_19 LBL_6: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem %sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem %31 = sext i32 %sv_4.0.reload to i64 %32 = mul nsw i64 %31, 28 %33 = add i64 %32, %arg2 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = icmp ult i32 %35, %22 %37 = icmp ugt i32 %35, %23 %or.cond22 = or i1 %36, %37 br i1 %or.cond22, label LBL_9, label LBL_7 LBL_7: %38 = add i64 %33, 8 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = sub i32 %24, %35 %42 = add i32 %41, %40 store i32 %42, i32* %39, align 4 store i32 %24, i32* %34, align 4 %43 = add i64 %33, 4 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = icmp ugt i32 %24, %45 store i32 %24, i32* %.reg2mem25 store i64 %rsi.0.reload, i64* %rsi.2.reg2mem br i1 %46, label LBL_8, label LBL_15 LBL_8: %47 = zext i32 %sv_4.0.reload to i64 %48 = call i64 @FUNC(i64 %arg2, i64 %47) %49 = trunc i64 %48 to i32 store i32 %49, i32* %sv_4.1.reg2mem store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem store i32 -1, i32* %sv_1.0.reg2mem store i64 %47, i64* %rsi.3.reg2mem br label LBL_18 LBL_9: %50 = add i64 %33, 4 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp ult i32 %52, %22 %54 = icmp ugt i32 %52, %23 %or.cond = or i1 %53, %54 store i32 %35, i32* %.reg2mem store i64 %rsi.0.reload, i64* %rsi.1.reg2mem br i1 %or.cond, label LBL_12, label LBL_10 LBL_10: store i32 %25, i32* %51, align 4 %55 = load i32, i32* %34, align 4 %56 = icmp ugt i32 %55, %25 store i32 %55, i32* %.reg2mem25 store i64 %rsi.0.reload, i64* %rsi.2.reg2mem br i1 %56, label LBL_11, label LBL_15 LBL_11: call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i32 77, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0)) %.pre = load i32, i32* %34, align 4 store i32 %.pre, i32* %.reg2mem store i64 ptrtoint ([43 x i8]* @gv_2 to i64), i64* %rsi.1.reg2mem br label LBL_12 LBL_12: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %.reload = load i32, i32* %.reg2mem %57 = icmp ult i32 %.reload, %22 store i32 %.reload, i32* %.reg2mem25 store i64 %rsi.1.reload, i64* %rsi.2.reg2mem br i1 %57, label LBL_13, label LBL_15 LBL_13: %58 = load i32, i32* %51, align 4 %59 = icmp ugt i32 %58, %23 %60 = icmp eq i1 %59, false store i32 %.reload, i32* %.reg2mem25 store i64 %rsi.1.reload, i64* %rsi.2.reg2mem br i1 %60, label LBL_15, label LBL_14 LBL_14: store i32 %25, i32* %51, align 4 %61 = add i64 %33, 24 %62 = inttoptr i64 %61 to i32* %63 = load i32, i32* %62, align 4 %64 = zext i32 %63 to i64 %65 = add i64 %33, 8 %66 = inttoptr i64 %65 to i32* %67 = load i32, i32* %66, align 4 %68 = load i32, i32* %34, align 4 %69 = add i32 %67, %24 %70 = sub i32 %69, %68 %71 = zext i32 %70 to i64 store i64 %64, i64* %28, align 8 %72 = zext i32 %58 to i64 %73 = sext i32 %58 to i64 %74 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %29, i64 %72, i64 %71, i64 0, i64 %73) %.pre14 = load i32, i32* %34, align 4 store i32 %.pre14, i32* %.reg2mem25 store i64 %arg2, i64* %rsi.2.reg2mem br label LBL_15 LBL_15: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %.reload26 = load i32, i32* %.reg2mem25 %75 = icmp ugt i32 %.reload26, %23 %76 = icmp eq i1 %75, false br i1 %76, label LBL_17, label LBL_16 LBL_16: %77 = add i64 %33, 16 %78 = inttoptr i64 %77 to i32* %79 = load i32, i32* %78, align 4 store i32 %79, i32* %sv_4.1.reg2mem store i32 %sv_4.0.reload, i32* %sv_3.1.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem store i32 %sv_4.0.reload, i32* %sv_1.0.reg2mem store i64 %rsi.2.reload, i64* %rsi.3.reg2mem br label LBL_18 LBL_17: %80 = add i64 %33, 20 %81 = inttoptr i64 %80 to i32* %82 = load i32, i32* %81, align 4 store i32 %82, i32* %sv_4.1.reg2mem store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem store i32 %sv_4.0.reload, i32* %sv_2.1.reg2mem store i32 %sv_4.0.reload, i32* %sv_1.0.reg2mem store i64 %rsi.2.reload, i64* %rsi.3.reg2mem br label LBL_18 LBL_18: %rsi.3.reload = load i64, i64* %rsi.3.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem %sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem %sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem %83 = icmp eq i32 %sv_4.1.reload, -1 %84 = icmp eq i1 %83, false store i32 %sv_4.1.reload, i32* %sv_4.0.reg2mem store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem store i64 %rsi.3.reload, i64* %rsi.0.reg2mem store i32 %sv_3.1.reload, i32* %sv_3.4.reg2mem store i32 %sv_2.1.reload, i32* %sv_2.4.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem store i64 %rsi.3.reload, i64* %rsi.4.reg2mem br i1 %84, label LBL_6, label LBL_20 LBL_19: %sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem %sv_3.2.reload = load i32, i32* %sv_3.2.reg2mem %sv_4.2.reload = load i32, i32* %sv_4.2.reg2mem %85 = sext i32 %sv_4.2.reload to i64 %86 = mul nsw i64 %85, 28 %87 = add i64 %86, %arg2 %88 = inttoptr i64 %87 to i32* %89 = load i32, i32* %88, align 4 %90 = icmp ugt i32 %89, %30 %91 = icmp eq i1 %90, false %sv_4.3.in.in.v = select i1 %91, i64 20, i64 16 %sv_4.3.in.in = add i64 %sv_4.3.in.in.v, %87 %sv_3.3 = select i1 %91, i32 %sv_3.2.reload, i32 %sv_4.2.reload %sv_2.3 = select i1 %91, i32 %sv_4.2.reload, i32 %sv_2.2.reload %sv_4.3.in = inttoptr i64 %sv_4.3.in.in to i32* %sv_4.3 = load i32, i32* %sv_4.3.in, align 4 %92 = icmp eq i32 %sv_4.3, -1 %93 = icmp eq i1 %92, false store i32 %sv_4.3, i32* %sv_4.2.reg2mem store i32 %sv_3.3, i32* %sv_3.2.reg2mem store i32 %sv_2.3, i32* %sv_2.2.reg2mem store i32 %sv_3.3, i32* %sv_3.4.reg2mem store i32 %sv_2.3, i32* %sv_2.4.reg2mem store i32 %sv_4.2.reload, i32* %sv_1.1.reg2mem store i64 %arg2, i64* %rsi.4.reg2mem br i1 %93, label LBL_19, label LBL_20 LBL_20: %rsi.4.reload = load i64, i64* %rsi.4.reg2mem %sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem %94 = trunc i64 %8 to i32 %95 = icmp eq i32 %94, 0 %96 = icmp eq i1 %95, false store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rsi.4.reload, i64* %rsi.5.reg2mem br i1 %96, label LBL_35, label LBL_21 LBL_21: %sv_2.4.reload = load i32, i32* %sv_2.4.reg2mem %sv_3.4.reload = load i32, i32* %sv_3.4.reg2mem %97 = icmp eq i32 %sv_2.4.reload, -1 br i1 %97, label LBL_30, label LBL_22 LBL_22: %98 = zext i32 %sv_2.4.reload to i64 %99 = mul nuw nsw i64 %98, 28 %100 = add i64 %99, %arg2 %101 = add i64 %100, 24 %102 = inttoptr i64 %101 to i32* %103 = load i32, i32* %102, align 4 %104 = icmp eq i32 %103, 0 %105 = icmp eq i1 %104, false br i1 %105, label LBL_30, label LBL_23 LBL_23: %106 = add i64 %100, 4 %107 = inttoptr i64 %106 to i32* %108 = load i32, i32* %107, align 4 %109 = trunc i64 %9 to i32 %110 = add i32 %109, -1 %111 = icmp eq i32 %108, %110 %112 = icmp eq i1 %111, false br i1 %112, label LBL_30, label LBL_24 LBL_24: %113 = add i64 %100, 8 %114 = inttoptr i64 %113 to i32* %115 = load i32, i32* %114, align 4 %116 = inttoptr i64 %100 to i32* %117 = load i32, i32* %116, align 4 %118 = sub i32 %115, %117 %119 = trunc i64 %11 to i32 %120 = sub i32 %119, %109 %121 = icmp eq i32 %118, %120 %122 = icmp eq i1 %121, false br i1 %122, label LBL_30, label LBL_25 LBL_25: %123 = trunc i64 %10 to i32 store i32 %123, i32* %107, align 4 %124 = icmp eq i32 %sv_3.4.reload, -1 store i32* %17, i32** %.pre-phi21.reg2mem store i64 %rsi.4.reload, i64* %rsi.6.reg2mem br i1 %124, label LBL_45, label LBL_26 LBL_26: %125 = zext i32 %sv_3.4.reload to i64 %126 = mul nuw nsw i64 %125, 28 %127 = add i64 %126, %arg2 %128 = add i64 %127, 24 %129 = inttoptr i64 %128 to i32* %130 = load i32, i32* %129, align 4 %131 = icmp eq i32 %130, 0 %132 = icmp eq i1 %131, false store i32* %17, i32** %.pre-phi21.reg2mem store i64 %rsi.4.reload, i64* %rsi.6.reg2mem br i1 %132, label LBL_45, label LBL_27 LBL_27: %133 = inttoptr i64 %127 to i32* %134 = load i32, i32* %133, align 4 %135 = add i32 %123, 1 %136 = icmp eq i32 %134, %135 %137 = icmp eq i1 %136, false store i32* %17, i32** %.pre-phi21.reg2mem store i64 %rsi.4.reload, i64* %rsi.6.reg2mem br i1 %137, label LBL_45, label LBL_28 LBL_28: %138 = add i64 %127, 8 %139 = inttoptr i64 %138 to i32* %140 = load i32, i32* %139, align 4 %141 = sub i32 %140, %134 %142 = icmp eq i32 %141, %120 %143 = icmp eq i1 %142, false store i32* %17, i32** %.pre-phi21.reg2mem store i64 %rsi.4.reload, i64* %rsi.6.reg2mem br i1 %143, label LBL_45, label LBL_29 LBL_29: %144 = add i64 %127, 4 %145 = inttoptr i64 %144 to i32* %146 = load i32, i32* %145, align 4 store i32 %146, i32* %107, align 4 %147 = call i64 @FUNC(i64 %arg2, i64 %125) store i32* %17, i32** %.pre-phi21.reg2mem store i64 %125, i64* %rsi.6.reg2mem br label LBL_45 LBL_30: %148 = icmp eq i32 %sv_3.4.reload, -1 store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rsi.4.reload, i64* %rsi.5.reg2mem br i1 %148, label LBL_35, label LBL_31 LBL_31: %149 = zext i32 %sv_3.4.reload to i64 %150 = mul nuw nsw i64 %149, 28 %151 = add i64 %150, %arg2 %152 = add i64 %151, 24 %153 = inttoptr i64 %152 to i32* %154 = load i32, i32* %153, align 4 %155 = icmp eq i32 %154, 0 %156 = icmp eq i1 %155, false store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rsi.4.reload, i64* %rsi.5.reg2mem br i1 %156, label LBL_35, label LBL_32 LBL_32: %157 = inttoptr i64 %151 to i32* %158 = load i32, i32* %157, align 4 %159 = trunc i64 %10 to i32 %160 = add i32 %159, 1 %161 = icmp eq i32 %158, %160 %162 = icmp eq i1 %161, false store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rsi.4.reload, i64* %rsi.5.reg2mem br i1 %162, label LBL_35, label LBL_33 LBL_33: %163 = add i64 %151, 8 %164 = inttoptr i64 %163 to i32* %165 = load i32, i32* %164, align 4 %166 = sub i32 %165, %158 %167 = trunc i64 %11 to i32 %168 = trunc i64 %9 to i32 %169 = sub i32 %167, %168 %170 = icmp eq i32 %166, %169 %171 = icmp eq i1 %170, false store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem store i64 %rsi.4.reload, i64* %rsi.5.reg2mem br i1 %171, label LBL_35, label LBL_34 LBL_34: store i32 %168, i32* %157, align 4 store i32 %167, i32* %164, align 4 store i32* %17, i32** %.pre-phi21.reg2mem store i64 %rsi.4.reload, i64* %rsi.6.reg2mem br label LBL_45 LBL_35: %sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem %172 = load i32, i32* %13, align 4 %173 = add i64 %arg2, 12 %174 = inttoptr i64 %173 to i32* %175 = load i32, i32* %174, align 4 %176 = icmp eq i32 %172, %175 %177 = icmp eq i1 %176, false store i64 %173, i64* %.pre-phi19.reg2mem store i64 %12, i64* %.pre-phi.reg2mem store i32 %172, i32* %.reg2mem27 store i64 %arg2, i64* %sv_0.0.in.reg2mem br i1 %177, label LBL_37, label LBL_36 LBL_36: %rsi.5.reload = load i64, i64* %rsi.5.reg2mem %178 = icmp eq i32 %175, 0 %179 = mul i32 %175, 2 %spec.select = select i1 %178, i32 256, i32 %179 %180 = call i64 @FUNC(i64 %arg1, i64 %rsi.5.reload, i32 %spec.select, i64 28) %181 = inttoptr i64 %arg2 to i64* store i64 %180, i64* %181, align 8 store i32 %spec.select, i32* %174, align 4 %.pre15 = load i32, i32* %13, align 4 %.pre17 = add i64 %rsi.5.reload, 8 %.pre18 = add i64 %rsi.5.reload, 12 store i64 %.pre18, i64* %.pre-phi19.reg2mem store i64 %.pre17, i64* %.pre-phi.reg2mem store i32 %.pre15, i32* %.reg2mem27 store i64 %rsi.5.reload, i64* %sv_0.0.in.reg2mem br label LBL_37 LBL_37: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem %.reload28 = load i32, i32* %.reg2mem27 %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi19.reload = load i64, i64* %.pre-phi19.reg2mem %182 = zext i32 %.reload28 to i64 %183 = mul nuw nsw i64 %182, 28 %184 = add i64 %183, %sv_0.0.in.reload %185 = trunc i64 %9 to i32 %186 = inttoptr i64 %184 to i32* store i32 %185, i32* %186, align 4 %187 = load i32, i32* %13, align 4 %188 = zext i32 %187 to i64 %189 = mul nuw nsw i64 %188, 28 %190 = trunc i64 %10 to i32 %191 = add i64 %sv_0.0.in.reload, 4 %192 = add i64 %191, %189 %193 = inttoptr i64 %192 to i32* store i32 %190, i32* %193, align 4 %194 = load i32, i32* %13, align 4 %195 = zext i32 %194 to i64 %196 = mul nuw nsw i64 %195, 28 %197 = trunc i64 %11 to i32 %198 = add i64 %196, %.pre-phi.reload %199 = inttoptr i64 %198 to i32* store i32 %197, i32* %199, align 4 %200 = load i32, i32* %13, align 4 %201 = zext i32 %200 to i64 %202 = mul nuw nsw i64 %201, 28 %203 = add i64 %202, %.pre-phi19.reload %204 = inttoptr i64 %203 to i32* store i32 %sv_1.2.reload, i32* %204, align 4 %205 = load i32, i32* %13, align 4 %206 = zext i32 %205 to i64 %207 = mul nuw nsw i64 %206, 28 %208 = add i64 %sv_0.0.in.reload, 16 %209 = add i64 %208, %207 %210 = inttoptr i64 %209 to i32* store i32 -1, i32* %210, align 4 %211 = load i32, i32* %13, align 4 %212 = zext i32 %211 to i64 %213 = mul nuw nsw i64 %212, 28 %214 = add i64 %sv_0.0.in.reload, 20 %215 = add i64 %214, %213 %216 = inttoptr i64 %215 to i32* store i32 -1, i32* %216, align 4 %217 = load i32, i32* %13, align 4 %218 = zext i32 %217 to i64 %219 = mul nuw nsw i64 %218, 28 %220 = trunc i64 %8 to i32 %221 = add i64 %sv_0.0.in.reload, 24 %222 = add i64 %221, %219 %223 = inttoptr i64 %222 to i32* store i32 %220, i32* %223, align 4 %224 = load i32, i32* %13, align 4 %225 = add i32 %224, 1 store i32 %225, i32* %13, align 4 %226 = icmp eq i32 %sv_1.2.reload, -1 %227 = icmp eq i1 %226, false br i1 %227, label LBL_39, label LBL_38 LBL_38: %228 = add i64 %arg2, 16 %229 = inttoptr i64 %228 to i32* store i32 0, i32* %229, align 4 br label LBL_44 LBL_39: %230 = sext i32 %sv_1.2.reload to i64 %231 = mul nsw i64 %230, 28 %232 = add i64 %sv_0.0.in.reload, %231 %233 = inttoptr i64 %232 to i32* %234 = load i32, i32* %233, align 4 %235 = icmp ugt i32 %234, %190 %236 = icmp eq i1 %235, false br i1 %236, label LBL_41, label LBL_40 LBL_40: %237 = add i64 %232, 16 %238 = inttoptr i64 %237 to i32* store i32 %224, i32* %238, align 4 br label LBL_44 LBL_41: %239 = add i64 %232, 4 %240 = inttoptr i64 %239 to i32* %241 = load i32, i32* %240, align 4 %242 = icmp ult i32 %241, %185 store i32 %225, i32* %.reg2mem29 br i1 %242, label LBL_43, label LBL_42 LBL_42: call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i32 129, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0)) %.pre16 = load i32, i32* %13, align 4 store i32 %.pre16, i32* %.reg2mem29 br label LBL_43 LBL_43: %.reload30 = load i32, i32* %.reg2mem29 %243 = add i32 %.reload30, -1 %244 = add i64 %232, 20 %245 = inttoptr i64 %244 to i32* store i32 %243, i32* %245, align 4 br label LBL_44 LBL_44: %246 = load i32, i32* %13, align 4 %247 = add i32 %246, -1 %248 = zext i32 %247 to i64 %249 = call i64 @FUNC(i64 %sv_0.0.in.reload, i64 %248) %250 = load i32, i32* %13, align 4 %251 = add i32 %250, -1 %252 = add i64 %arg2, 16 %253 = inttoptr i64 %252 to i32* store i32 %251, i32* %253, align 4 store i32* %253, i32** %.pre-phi21.reg2mem store i64 %248, i64* %rsi.6.reg2mem br label LBL_45 LBL_45: %rsi.6.reload = load i64, i64* %rsi.6.reg2mem %.pre-phi21.reload = load i32*, i32** %.pre-phi21.reg2mem %254 = load i32, i32* %.pre-phi21.reload, align 4 %255 = zext i32 %254 to i64 %256 = call i64 @FUNC(i64 %rsi.6.reload, i64 %255, i64 0) %257 = load i32, i32* %.pre-phi21.reload, align 4 %258 = zext i32 %257 to i64 %259 = call i64 @FUNC(i64 %258, i64 %258, i64 0, i64* nonnull @gv_5) store i64 %259, i64* %storemerge.reg2mem br label LBL_46 LBL_46: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %258, { 1, 0 } uselistorder i64 %232, { 0, 2, 1, 3 } uselistorder i64 %sv_0.0.in.reload, { 0, 6, 4, 3, 2, 1, 5 } uselistorder i64 %rsi.5.reload, { 0, 3, 2, 1 } uselistorder i32 %sv_1.2.reload, { 1, 2, 0 } uselistorder i64 %rsi.4.reload, { 0, 5, 6, 7, 8, 1, 2, 3, 4, 9 } uselistorder i1 %91, { 1, 2, 0 } uselistorder i32 %sv_4.2.reload, { 0, 3, 2, 1 } uselistorder i32 %sv_4.1.reload, { 1, 0 } uselistorder i64 %rsi.2.reload, { 1, 0 } uselistorder i32 %.reload, { 1, 0, 2 } uselistorder i64 %rsi.1.reload, { 1, 0 } uselistorder i32* %51, { 1, 0, 2, 3 } uselistorder i32* %34, { 0, 4, 1, 3, 2, 5 } uselistorder i64 %33, { 2, 1, 4, 3, 5, 0, 6, 7 } uselistorder i32 %sv_4.0.reload, { 1, 2, 0, 3, 5, 4 } uselistorder i32 %sv_3.0.reload, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 1, 0 } uselistorder i64 %rsi.0.reload, { 1, 2, 0 } uselistorder i32 %24, { 2, 0, 4, 3, 1 } uselistorder i32 %23, { 1, 3, 2, 0, 4 } uselistorder i32 %22, { 0, 1, 3, 2 } uselistorder i32* %13, { 2, 3, 0, 5, 4, 6, 7, 8, 9, 10, 11, 1, 12, 13 } uselistorder i64 %11, { 2, 1, 0 } uselistorder i64 %10, { 5, 3, 2, 4, 1, 0 } uselistorder i64 %9, { 3, 2, 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64* %sv_5, { 1, 0 } uselistorder i32* %sv_4.0.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_3.0.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 } uselistorder i64* %rsi.0.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem25, { 0, 4, 5, 3, 2, 1 } uselistorder i64* %rsi.2.reg2mem, { 0, 4, 5, 3, 2, 1 } uselistorder i32* %sv_4.1.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_3.1.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_2.1.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_1.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %rsi.3.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_4.2.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_3.2.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.2.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_3.4.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_2.4.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.4.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.2.reg2mem, { 0, 2, 3, 4, 5, 6, 1 } uselistorder i64* %rsi.5.reg2mem, { 0, 2, 3, 4, 5, 6, 1 } uselistorder i64* %.pre-phi19.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem27, { 0, 2, 1 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder i32** %.pre-phi21.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7 } uselistorder i64* %rsi.6.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0), { 1, 0 } uselistorder [43 x i8]* @gv_2, { 1, 0 } uselistorder i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), { 1, 0 } uselistorder i64 (i64, i64)* @delete_node, { 1, 0 } uselistorder i64 4, { 1, 0, 2, 3, 4, 5 } uselistorder i64 28, { 1, 2, 3, 4, 5, 6, 7, 8, 13, 9, 10, 11, 0, 12 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 16, { 2, 3, 4, 0, 1, 5, 6 } uselistorder i32 -1, { 9, 10, 8, 11, 17, 18, 12, 13, 14, 15, 6, 16, 3, 1, 2, 4, 5, 7, 0 } uselistorder i64 32, { 1, 2, 3, 4, 0 } uselistorder i64 4294967296, { 1, 2, 3, 4, 0 } uselistorder i64 %arg2, { 15, 14, 13, 0, 16, 5, 12, 6, 7, 2, 8, 3, 11, 10, 9, 4, 18, 1, 17, 19 } uselistorder i64 %arg1, { 1, 0, 2 } uselistorder label LBL_45, { 5, 6, 4, 3, 2, 1, 0 } uselistorder label LBL_43, { 1, 0 } uselistorder label LBL_35, { 1, 2, 3, 4, 5, 0 } uselistorder label LBL_20, { 1, 0 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_15, { 3, 4, 0, 1, 2 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
smp_br_process_security_grant_8072
smp_br_process_security_grant
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0)) %4 = trunc i64 %1 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = ptrtoint i32* %arg2 to i64 %7 = call i64 @FUNC(i64 %2, i64 1, i64 %6) store i64 %7, i64* %rax.0.reg2mem br label LBL_3 LBL_2: %8 = bitcast i64* %arg1 to i32* store i32 2, i32* %8, align 4 store i64 %2, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } }
0
BinRealVul
io_sq_offload_start_7229
io_sq_offload_start
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = and i32 %3, -2 store i32 %4, i32* %2, align 4 %5 = and i32 %3, 2 %6 = icmp eq i32 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %0) store i64 %7, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
virtio_config_readl_14084
virtio_config_readl
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %arg2, 4294967295 %3 = and i64 %1, 4294967295 %4 = add nsw i64 %3, -4 %5 = icmp ugt i64 %2, %4 store i64 4294967295, i64* %storemerge.reg2mem br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = ptrtoint i32* %arg1 to i64 %7 = add i64 %6, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = add i64 %9, %2 %11 = call i64 @FUNC(i64 %10) %12 = and i64 %11, 4294967295 store i64 %12, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4294967295, { 3, 0, 1, 4, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
acpi_build_tables_cleanup_1430
acpi_build_tables_cleanup
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %1) %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = urem i64 %arg2, 256 %7 = call i64 @FUNC(i64 %5, i64 %6) %8 = add i64 %0, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10, i64 1) %12 = add i64 %0, 24 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = call i64 @FUNC(i64 %14, i64 %6) ret i64 %15 uselistorder i64 %6, { 1, 0 } uselistorder i64 (i64, i64)* @g_array_free, { 2, 1, 0 } }
0
BinRealVul
sdp_parse_fmtp_5308
sdp_parse_fmtp
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rdi = alloca i64, align 8 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 %arg2, i64* %sv_2, align 8 %0 = call i64 @FUNC(i64* nonnull %sv_2) %1 = load i64, i64* %sv_2, align 8 %2 = inttoptr i64 %1 to i8* %3 = load i8, i8* %2, align 1 %4 = icmp eq i8 %3, 0 br i1 %4, label LBL_11, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = bitcast i64* %rdi to i32* %7 = bitcast i64* %sv_1 to i8* %8 = add i64 %5, 8 %9 = inttoptr i64 %8 to i64* %10 = add i64 %5, 16 %11 = inttoptr i64 %10 to i32* br label LBL_2 LBL_2: %12 = call i64 @FUNC(i64* nonnull %sv_1, i64 256, i64* nonnull @gv_0, i64* nonnull %sv_2) %13 = load i64, i64* %sv_2, align 8 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 %16 = icmp eq i8 %15, 61 %17 = icmp eq i1 %16, false br i1 %17, label LBL_4, label LBL_3 LBL_3: %18 = add i64 %13, 1 store i64 %18, i64* %sv_2, align 8 br label LBL_4 LBL_4: %19 = call i64 @FUNC(i64* nonnull %sv_0, i64 4096, i64* nonnull @gv_1, i64* nonnull %sv_2) %20 = load i64, i64* %sv_2, align 8 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 59 %24 = icmp eq i1 %23, false br i1 %24, label LBL_6, label LBL_5 LBL_5: %25 = add i64 %20, 1 store i64 %25, i64* %sv_2, align 8 br label LBL_6 LBL_6: %26 = load i32, i32* %6, align 8 %27 = icmp eq i32 %26, 1 %28 = icmp eq i1 %27, false br i1 %28, label LBL_10, label LBL_7 LBL_7: %29 = call i32 @strcmp(i8* nonnull %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0)) %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false br i1 %31, label LBL_10, label LBL_8 LBL_8: %32 = call i64 @FUNC(i64 0, i64* nonnull %sv_0) %33 = mul i64 %32, 4294967296 %sext = add i64 %33, 137438953472 %34 = ashr exact i64 %sext, 32 %35 = call i64 @FUNC(i64 %34) store i64 %35, i64* %9, align 8 %36 = icmp eq i64 %35, 0 br i1 %36, label LBL_10, label LBL_9 LBL_9: %37 = trunc i64 %32 to i32 store i32 %37, i32* %11, align 4 %38 = load i64, i64* %9, align 8 %39 = call i64 @FUNC(i64 %38, i64* nonnull %sv_0) br label LBL_10 LBL_10: %40 = call i64 @FUNC(i64* nonnull %sv_2) %41 = load i64, i64* %sv_2, align 8 %42 = inttoptr i64 %41 to i8* %43 = load i8, i8* %42, align 1 %44 = icmp eq i8 %43, 0 br i1 %44, label LBL_11, label LBL_2 LBL_11: ret i64 0 uselistorder i64 %32, { 1, 0 } uselistorder i64* %sv_2, { 9, 4, 5, 6, 2, 7, 8, 3, 0, 1, 10 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i64 (i64, i64*)* @hex_to_data, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i64 (i64*, i64, i64*, i64*)* @get_word_sep, { 1, 0 } uselistorder i64 256, { 1, 0 } uselistorder i8 0, { 2, 0, 3, 4, 1 } uselistorder i64 (i64*)* @skip_spaces, { 1, 0 } uselistorder label LBL_10, { 1, 3, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
mov_read_mfra_2027
mov_read_mfra
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = call i64 @FUNC(i64 %3) %sext = mul i64 %4, 4294967296 %5 = ashr exact i64 %sext, 32 %6 = call i64 @FUNC(i64 %3) %7 = add nsw i64 %5, -4 %8 = call i64 @FUNC(i64 %3, i64 %7, i64 0) %9 = icmp slt i64 %8, 0 %10 = icmp eq i1 %9, false store i64 %8, i64* %sv_0.0.reg2mem br i1 %10, label LBL_1, label LBL_12 LBL_1: %11 = call i64 @FUNC(i64 %3) %12 = trunc i64 %11 to i32 %13 = icmp slt i32 %12, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %sext2 = mul i64 %11, 4294967296 %14 = ashr exact i64 %sext2, 32 %15 = icmp slt i64 %5, %14 br i1 %15, label LBL_3, label LBL_4 LBL_3: %16 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %2, i64 %1) store i64 4294967295, i64* %sv_0.0.reg2mem br label LBL_12 LBL_4: %sext3 = sub i64 0, %sext2 %17 = ashr exact i64 %sext3, 32 %18 = call i64 @FUNC(i64 %3, i64 %17, i64 1) %19 = icmp slt i64 %18, 0 %20 = icmp eq i1 %19, false store i64 %18, i64* %sv_0.0.reg2mem br i1 %20, label LBL_5, label LBL_12 LBL_5: %21 = call i64 @FUNC(i64 %3) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %12, %22 br i1 %23, label LBL_7, label LBL_6 LBL_6: %24 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i64 %17, i64 %2, i64 %1) store i64 4294967295, i64* %sv_0.0.reg2mem br label LBL_12 LBL_7: %25 = call i64 @FUNC(i64 %3) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 1634887277 br i1 %27, label LBL_9, label LBL_8 LBL_8: %28 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i64 %17, i64 %2, i64 %1) store i64 4294967295, i64* %sv_0.0.reg2mem br label LBL_12 LBL_9: %29 = ptrtoint i64* %arg1 to i64 %30 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0), i64 %17, i64 %2, i64 %1) br label LBL_10 LBL_10: %31 = call i64 @FUNC(i64 %29, i64 %3) %32 = trunc i64 %31 to i32 %33 = icmp slt i32 %32, 0 store i64 %31, i64* %sv_0.0.reg2mem br i1 %33, label LBL_12, label LBL_11 LBL_11: %34 = icmp eq i32 %32, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %34, label LBL_10, label LBL_12 LBL_12: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %35 = call i64 @FUNC(i64 %3, i64 %6, i64 0) %36 = icmp slt i64 %35, 0 %37 = icmp eq i1 %36, false store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br i1 %37, label LBL_14, label LBL_13 LBL_13: %38 = call i64 @FUNC(i64 %3, i64 2, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0), i64 %6, i64 %2, i64 %1) store i64 %35, i64* %sv_0.1.reg2mem br label LBL_14 LBL_14: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %39 = and i64 %sv_0.1.reload, 4294967295 ret i64 %39 uselistorder i64 %17, { 2, 1, 3, 0 } uselistorder i64 %sext2, { 1, 0 } uselistorder i64 %3, { 7, 8, 1, 2, 3, 4, 0, 5, 6, 9, 10, 11, 12, 13 } uselistorder i64 %2, { 4, 3, 2, 1, 0 } uselistorder i64 %1, { 4, 3, 2, 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 2, 6, 5, 3, 7, 4 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @avio_rb32, { 2, 1, 0 } uselistorder i64 (i64, i64, i64)* @avio_seek, { 2, 1, 0 } uselistorder label LBL_12, { 0, 1, 4, 5, 2, 6, 3 } }
0
BinRealVul
vtd_remap_irq_get_18588
vtd_remap_irq_get
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %storemerge.reg2mem = alloca i64 %rdx = alloca i64, align 8 %1 = ptrtoint i64* %arg1 to i64 %2 = load i32, i32* %0 %sv_0 = alloca i8, align 1 store i8 0, i8* %sv_0, align 1 %3 = urem i64 %arg2, 65536 %4 = bitcast i8* %sv_0 to i64* %5 = call i64 @FUNC(i64 %1, i64 %3, i64* nonnull %4) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = and i64 %5, 4294967295 store i64 %8, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %9 = ptrtoint i64* %arg3 to i64 %10 = load i8, i8* %sv_0, align 1 %11 = bitcast i64* %arg3 to i8* store i8 %10, i8* %11, align 1 %12 = add i64 %9, 1 %13 = inttoptr i64 %12 to i8* %14 = add i64 %9, 2 %15 = inttoptr i64 %14 to i8* %16 = zext i32 %2 to i64 %17 = call i64 @FUNC(i64 %16) %18 = trunc i64 %17 to i32 %19 = add i64 %9, 4 %20 = inttoptr i64 %19 to i32* store i32 %18, i32* %20, align 4 %21 = add i64 %9, 8 %22 = inttoptr i64 %21 to i8* store i8 0, i8* %22, align 1 %23 = add i64 %9, 9 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %22, align 1 %26 = load i32, i32* %20, align 4 %27 = load i8, i8* %15, align 1 %28 = load i8, i8* %13, align 1 %29 = bitcast i64* %rdx to i8* %30 = load i8, i8* %29, align 8 %31 = zext i8 %25 to i32 %32 = zext i8 %27 to i32 %33 = zext i8 %30 to i32 %34 = zext i8 %28 to i32 %35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @gv_0, i64 0, i64 0), i64 %3, i32 %33, i32 %34, i32 %32, i32 %26, i32 %31) 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 %3, { 1, 0 } uselistorder i8* %sv_0, { 1, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } }
1
BinRealVul
qemu_fopen_socket_14751
qemu_fopen_socket
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rsi = alloca i64, align 8 %0 = call i64 @FUNC(i64 %arg2) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_4 LBL_1: %3 = call i64 @FUNC(i64 16) %4 = inttoptr i64 %3 to i32* %5 = trunc i64 %arg1 to i32 store i32 %5, i32* %4, align 4 %6 = bitcast i64* %rsi to i8* %7 = load i8, i8* %6, align 8 %8 = icmp eq i8 %7, 119 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = and i64 %arg1, 4294967295 %11 = call i64 @FUNC(i64 %10) %12 = call i64 @FUNC(i64 %3, i64* nonnull @gv_0) %13 = add i64 %3, 8 %14 = inttoptr i64 %13 to i64* store i64 %12, i64* %14, align 8 store i64 %12, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %15 = call i64 @FUNC(i64 %3, i64* nonnull @gv_1) %16 = add i64 %3, 8 %17 = inttoptr i64 %16 to i64* store i64 %15, i64* %17, align 8 store i64 %15, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 } uselistorder i8 119, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32 1, { 5, 2, 1, 3, 0, 4 } uselistorder label LBL_4, { 1, 0, 2 } }
1
reposvul_c_test
wilc_wfi_cfg_parse_ch_attr_304
wilc_wfi_cfg_parse_ch_attr
define i64 @FUNC(i64* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr { LBL_0: %rax.2.reg2mem = alloca i64 %sv_0.05.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = sext i8 %arg3 to i64 %1 = and i64 %0, 4294967295 %2 = icmp eq i8 %arg3, -1 store i64 %1, i64* %rax.2.reg2mem br i1 %2, label LBL_4, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 %4 = and i64 %arg2, 4294967295 %5 = icmp ult i64 %4, 4 store i64 0, i64* %.reg2mem store i32 0, i32* %sv_0.05.reg2mem store i64 %4, i64* %rax.2.reg2mem br i1 %5, label LBL_4, label LBL_2 LBL_2: %.reload = load i64, i64* %.reg2mem %6 = add i64 %.reload, %3 %7 = inttoptr i64 %6 to i16* %8 = load i16, i16* %7, align 2 %9 = zext i16 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = urem i64 %10, 65536 %12 = add nuw nsw i64 %.reload, 4 %13 = add nuw nsw i64 %12, %11 %14 = icmp ugt i64 %13, %4 store i64 %4, i64* %rax.2.reg2mem br i1 %14, label LBL_4, label LBL_3 LBL_3: %sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem %15 = trunc i64 %10 to i32 %16 = urem i32 %15, 65536 %17 = add i32 %sv_0.05.reload, 4 %18 = add i32 %17, %16 %19 = zext i32 %18 to i64 %20 = add nuw nsw i64 %19, 4 %21 = icmp ugt i64 %20, %4 store i64 %19, i64* %.reg2mem store i32 %18, i32* %sv_0.05.reg2mem store i64 %4, i64* %rax.2.reg2mem br i1 %21, label LBL_4, label LBL_2 LBL_4: %rax.2.reload = load i64, i64* %rax.2.reg2mem ret i64 %rax.2.reload uselistorder i64 %10, { 1, 0 } uselistorder i64 %4, { 1, 5, 0, 4, 2, 3 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.05.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.2.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64 4, { 2, 1, 0 } uselistorder label LBL_4, { 1, 0, 2, 3 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
ff_thread_get_buffer_3268
ff_thread_get_buffer
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 i64* %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 store i64 %3, i64* %arg2, align 8 %4 = call i64 @FUNC(i64 %3, i64 %2) %5 = add i64 %3, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = urem i32 %7, 2 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = add i64 %2, 8 %12 = inttoptr i64 %11 to i64* store i64 0, i64* %12, align 8 store i64 %3, i64* %rax.0.reg2mem br label LBL_17 LBL_2: %13 = trunc i64 %1 to i32 %14 = icmp eq i32 %13, 1 br i1 %14, label LBL_7, label LBL_3 LBL_3: %15 = add i64 %3, 24 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_6, label LBL_4 LBL_4: %22 = add i64 %3, 32 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_7, label LBL_5 LBL_5: %27 = add i64 %3, 16 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = icmp eq i64 %29, 4198926 br i1 %30, label LBL_7, label LBL_6 LBL_6: %31 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_0, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_17 LBL_7: %32 = inttoptr i64 %5 to i64* %33 = load i64, i64* %32, align 8 %34 = inttoptr i64 %33 to i64* %35 = call i32 @pthread_mutex_lock(i64* %34) %36 = call i64 @FUNC(i64 %3) %37 = add i64 %2, 8 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 %39 = icmp eq i64 %36, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_9, label LBL_8 LBL_8: %41 = load i64, i64* %32, align 8 %42 = inttoptr i64 %41 to i64* %43 = call i32 @pthread_mutex_unlock(i64* %42) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_17 LBL_9: %44 = inttoptr i64 %36 to i32* %45 = add i64 %36, 4 %46 = inttoptr i64 %45 to i32* store i32 -1, i32* %46, align 4 store i32 -1, i32* %44, align 4 %47 = add i64 %3, 32 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = icmp eq i32 %49, 0 %51 = icmp eq i1 %50, false br i1 %51, label LBL_11, label LBL_10 LBL_10: %52 = add i64 %3, 16 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = icmp eq i64 %54, 4198926 %56 = icmp eq i1 %55, false br i1 %56, label LBL_12, label LBL_11 LBL_11: %57 = and i64 %3, 4294967295 %58 = inttoptr i64 %57 to i64* store i64* %58, i64** %sv_0.0.reg2mem br label LBL_16 LBL_12: %59 = bitcast i64* %rdi to i32* store i64 %2, i64* %53, align 8 %60 = bitcast i64* %arg1 to i32* store i32 2, i32* %60, align 4 %61 = inttoptr i64 %47 to i64* %62 = call i32 @pthread_mutex_lock(i64* %61) %63 = add i64 %3, 72 %64 = inttoptr i64 %63 to i64* %65 = call i32 @pthread_cond_broadcast(i64* %64) %66 = load i32, i32* %59, align 8 %67 = icmp eq i32 %66, 1 %68 = icmp eq i1 %67, false br i1 %68, label LBL_13, label LBL_14 LBL_13: %69 = call i32 @pthread_cond_wait(i64* %64, i64* %61) br label LBL_13 LBL_14: %70 = add i64 %3, 24 %71 = inttoptr i64 %70 to i32* %72 = load i32, i32* %71, align 4 %73 = zext i32 %72 to i64 %74 = inttoptr i64 %73 to i64* %75 = call i32 @pthread_mutex_unlock(i64* %61) %76 = inttoptr i64 %70 to i64* %77 = load i64, i64* %76, align 8 %78 = inttoptr i64 %77 to i32* %79 = load i32, i32* %78, align 4 %80 = icmp eq i32 %79, 0 %81 = icmp eq i1 %80, false store i64* %74, i64** %sv_0.0.reg2mem br i1 %81, label LBL_16, label LBL_15 LBL_15: %82 = call i64 @FUNC(i64 %3) store i64* %74, i64** %sv_0.0.reg2mem br label LBL_16 LBL_16: %sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem %83 = load i64, i64* %32, align 8 %84 = inttoptr i64 %83 to i64* %85 = call i32 @pthread_mutex_unlock(i64* %84) %86 = ptrtoint i64* %sv_0.0.reload to i64 %87 = and i64 %86, 4294967295 store i64 %87, i64* %rax.0.reg2mem br label LBL_17 LBL_17: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %36, { 0, 1, 3, 2 } uselistorder i64* %32, { 1, 0, 2 } uselistorder i64 %3, { 5, 6, 7, 8, 10, 9, 11, 1, 4, 3, 2, 0, 12, 13, 14 } uselistorder i64 %2, { 1, 2, 0, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i32 (i64*)* @pthread_mutex_unlock, { 2, 1, 0 } uselistorder i32 (i64*)* @pthread_mutex_lock, { 1, 0 } uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7, 8 } uselistorder i32 2, { 1, 0 } uselistorder label LBL_13, { 1, 0 } }
0
BinRealVul
ide_data_readw_1951
ide_data_readw
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 = add i64 %1, 16 %3 = inttoptr i64 %2 to i8* %4 = load i8, i8* %3, align 1 %5 = and i8 %4, 8 %6 = icmp eq i8 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_5, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %1) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 0, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_5 LBL_2: %11 = inttoptr i64 %1 to i64* %12 = load i64, i64* %11, align 8 %13 = add i64 %12, 2 %14 = add i64 %1, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp ugt i64 %13, %16 store i64 0, i64* %rax.0.reg2mem br i1 %17, label LBL_5, label LBL_3 LBL_3: %18 = inttoptr i64 %12 to i16* %19 = load i16, i16* %18, align 2 %20 = zext i16 %19 to i64 %21 = call i64 @FUNC(i64 %20) %22 = urem i64 %21, 65536 store i64 %13, i64* %11, align 8 %23 = load i64, i64* %15, align 8 %24 = icmp ult i64 %13, %23 store i64 %22, i64* %rax.0.reg2mem br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = load i8, i8* %3, align 1 %26 = and i8 %25, -9 store i8 %26, i8* %3, align 1 store i64 %22, 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 %22, { 1, 0 } uselistorder i8* %3, { 1, 0, 2 } uselistorder i64 %1, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 5, 4 } uselistorder label LBL_5, { 1, 0, 2, 4, 3 } }
0
BinRealVul
av_get_int_16786
av_get_int
define i64 @FUNC(i64 %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = load i128, i128* %0 %2 = ptrtoint i64* %arg3 to i64 %3 = ptrtoint i8* %arg2 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 1, i64* %sv_2, align 8 %4 = call i128 @FUNC(i64 4607182418800017408) %5 = call i64 @__asm_movsd.1(i128 %4) store i64 %5, i64* %sv_1, align 8 store i32 1, i32* %sv_0, align 4 %6 = call i64 @FUNC(i64 %arg1, i64 %3, i64 %2, i64* nonnull %sv_1, i32* nonnull %sv_0, i64* nonnull %sv_2) %7 = load i64, i64* %sv_2, align 8 %8 = call i128 @FUNC(i128 %1, i128 %1) %9 = call i128 @FUNC(i64 %7) %10 = load i64, i64* %sv_1, align 8 %11 = call i128 @FUNC(i64 %10) %12 = call i128 @FUNC(i128 %11, i128 %9) %13 = load i32, i32* %sv_0, align 4 %14 = call i128 @FUNC(i128 %9, i128 %9) %15 = call i128 @__asm_cvtsi2sd.2(i32 %13) %16 = call i128 @FUNC(i128 %12, i128 %15) %17 = call i64 @FUNC(i128 %16) ret i64 %17 uselistorder i128 %9, { 2, 1, 0 } uselistorder i64* %sv_2, { 1, 0, 2 } uselistorder i64* %sv_1, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 0, 2 } }
1
BinRealVul
sgi_clock_get_6036
sgi_clock_get
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = call i64 @FUNC() %2 = load i128, i128* @gv_0, align 8 %3 = trunc i128 %2 to i64 %4 = mul i64 %1, %3 %5 = load i64, i64* @gv_1, align 8 %6 = add i64 %4, %5 %7 = call i64 @FUNC(i64 %6) store i64 %7, i64* %arg2, align 8 %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 %4, i64* %9, align 8 %10 = load i64, i64* @gv_2, align 8 %11 = add i64 %10, %0 store i64 %11, i64* %arg2, align 8 ret i64 0 uselistorder i64 %4, { 1, 0 } }
0
BinRealVul
cgi_set_sid_19044
cgi_set_sid
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %0 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0)) %1 = icmp eq i8* %0, null %2 = icmp eq i1 %1, false %spec.select = select i1 %2, i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0) %3 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0)) %4 = icmp eq i8* %3, null %5 = icmp eq i1 %4, false %storemerge12 = select i1 %5, i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0) %6 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0)) %7 = icmp eq i8* %6, null %8 = icmp eq i1 %7, false %spec.select14 = select i1 %8, i8* %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0) %9 = call i32 @time(i32* null) %10 = zext i32 %9 to i64 %11 = call i64 @FUNC(i64 %10) %12 = call i64 @FUNC() %13 = trunc i64 %12 to i32 %14 = urem i32 %13, 256 %15 = call i64 @FUNC() %16 = trunc i64 %15 to i32 %17 = urem i32 %16, 256 %18 = call i64 @FUNC() %19 = trunc i64 %18 to i32 %20 = call i64 @FUNC() %21 = trunc i64 %20 to i32 %22 = call i64 @FUNC() %23 = trunc i64 %22 to i32 %24 = call i64 @FUNC() %25 = trunc i64 %24 to i32 %26 = call i64 @FUNC() %27 = trunc i64 %26 to i32 %28 = call i64 @FUNC() %29 = trunc i64 %28 to i32 %30 = urem i32 %19, 256 %31 = urem i32 %21, 256 %32 = urem i32 %23, 256 %33 = urem i32 %25, 256 %34 = urem i32 %27, 256 %35 = urem i32 %29, 256 %36 = bitcast i64* %sv_2 to i8* %37 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %36, i32 512, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i8* %spec.select, i8* %storemerge12, i8* %spec.select14, i32 %35, i32 %34, i32 %33, i32 %32, i32 %31, i32 %30, i32 %17, i32 %14) %38 = call i32 @strlen(i8* nonnull %36) %39 = sext i32 %38 to i64 %40 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_2, i64 %39, i64* nonnull %sv_1, i64 16) %41 = call i64 @FUNC(i64* nonnull %sv_1, i64 16, i64* nonnull %sv_0, i64 33) %42 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0), i64 %41, i64* nonnull @gv_6, i64 0, i64 0, i64 0) %43 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0), i64 1, i64 0) ret i64 %43 uselistorder i64 ()* @CUPS_RAND, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i8* (i8*)* @getenv, { 2, 1, 0 } uselistorder i32 1, { 7, 6, 5, 0, 4, 3, 2, 1 } }
1
BinRealVul
microdvd_probe_14175
microdvd_probe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.12.reg2mem = alloca i64 %storemerge13.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %6 = trunc i64 %3 to i32 %7 = mul i32 %6, 65536 %8 = and i32 %7, 16711680 %9 = add i64 %5, 1 %10 = inttoptr i64 %9 to i8* %11 = load i8, i8* %10, align 1 %12 = zext i8 %11 to i32 %13 = mul i32 %12, 256 %14 = or i32 %13, %8 %15 = add i64 %5, 2 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = zext i8 %17 to i32 %19 = or i32 %14, %18 %20 = icmp eq i32 %19, 15711167 %21 = icmp eq i1 %20, false %22 = add i64 %5, 3 %spec.select = select i1 %21, i64 %5, i64 %22 %23 = inttoptr i64 %4 to i64* %24 = inttoptr i64 %2 to i8* %25 = inttoptr i64 %2 to i64* %26 = inttoptr i64 %1 to i64* store i32 0, i32* %storemerge13.reg2mem store i64 %spec.select, i64* %sv_0.12.reg2mem br label LBL_1 LBL_1: %sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem %storemerge13.reload = load i32, i32* %storemerge13.reg2mem %27 = inttoptr i64 %sv_0.12.reload to i8* %28 = call i32 (i8*, i8*, ...) @sscanf(i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1, i64* %23, i8* %24) %29 = icmp eq i32 %28, 1 br i1 %29, label LBL_4, label LBL_2 LBL_2: %30 = call i32 (i8*, i8*, ...) @sscanf(i8* %27, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_1, i64* %23, i64* %25, i64* %26) %31 = icmp eq i32 %30, 1 br i1 %31, label LBL_4, label LBL_3 LBL_3: %32 = call i32 (i8*, i8*, ...) @sscanf(i8* %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_1) %33 = icmp eq i32 %32, 1 store i64 0, i64* %storemerge.reg2mem br i1 %33, label LBL_4, label LBL_5 LBL_4: %34 = call i32 @strcspn(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0)) %35 = sext i32 %34 to i64 %36 = add i64 %sv_0.12.reload, 1 %37 = add i64 %36, %35 %38 = add nuw nsw i32 %storemerge13.reload, 1 %39 = icmp ult i32 %38, 3 store i32 %38, i32* %storemerge13.reg2mem store i64 %37, i64* %sv_0.12.reg2mem store i64 100, i64* %storemerge.reg2mem br i1 %39, label LBL_1, label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8* %27, { 2, 0, 1, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.12.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i32 (i8*, i8*, ...)* @sscanf, { 1, 0, 2 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
__dev_change_flags_10668
__dev_change_flags
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 %4 = trunc i64 %1 to i32 %5 = call i64 @FUNC() %6 = urem i32 %3, 128 %7 = and i32 %4, 1920 %8 = or i32 %7, %6 %9 = bitcast i64* %arg1 to i32* store i32 %8, i32* %9, align 4 %10 = xor i64 %1, %arg2 %11 = and i64 %10, 16 %12 = icmp eq i64 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64 %2, i64 16) br label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %2) %15 = trunc i64 %10 to i8 %16 = icmp sgt i8 %15, -1 store i64 0, i64* %sv_0.0.reg2mem br i1 %16, label LBL_6, label LBL_3 LBL_3: %17 = trunc i64 %1 to i8 %18 = icmp sgt i8 %17, -1 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = call i64 @FUNC(i64 %2) store i64 0, i64* %sv_0.0.reg2mem br label LBL_6 LBL_5: %20 = call i64 @FUNC(i64 %2) %phitmp = and i64 %20, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %21 = add i64 %2, 4 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = xor i32 %23, %3 %25 = and i32 %24, 512 %26 = icmp eq i32 %25, 0 br i1 %26, label LBL_9, label LBL_7 LBL_7: %27 = bitcast i64* %rdi to i32* %28 = and i64 %arg2, 512 %29 = icmp eq i64 %28, 0 %. = select i1 %29, i64 4294967295, i64 1 %30 = xor i32 %23, 512 store i32 %30, i32* %22, align 4 %31 = call i64 @FUNC(i64 %2, i64 %., i64 0) %32 = trunc i64 %31 to i32 %33 = icmp slt i32 %32, 0 %34 = load i32, i32* %27, align 8 %35 = icmp eq i32 %34, %4 %or.cond = or i1 %33, %35 br i1 %or.cond, label LBL_9, label LBL_8 LBL_8: %36 = call i64 @FUNC(i64 %2) br label LBL_9 LBL_9: %37 = load i32, i32* %22, align 4 %38 = xor i32 %37, %3 %39 = and i32 %38, 1024 %40 = icmp eq i32 %39, 0 br i1 %40, label LBL_11, label LBL_10 LBL_10: %41 = and i64 %arg2, 1024 %42 = icmp eq i64 %41, 0 %.3 = select i1 %42, i64 4294967295, i64 1 %43 = xor i32 %37, 1024 store i32 %43, i32* %22, align 4 %44 = call i64 @FUNC(i64 %2, i64 %.3, i64 0) br label LBL_11 LBL_11: ret i64 %sv_0.0.reload uselistorder i32 %37, { 1, 0 } uselistorder i32 %23, { 1, 0 } uselistorder i32* %22, { 2, 1, 0, 3 } uselistorder i64 %10, { 1, 0 } uselistorder i32 %3, { 1, 2, 0 } uselistorder i64 %2, { 5, 3, 4, 6, 1, 2, 7, 0 } uselistorder i64 %1, { 1, 2, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64)* @dev_set_rx_mode, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder i64 %arg2, { 1, 2, 0, 3 } }
0
BinRealVul
sort_pacl_10090
sort_pacl
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i32 %storemerge1.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null br i1 %2, label LBL_7, label LBL_1 LBL_1: %3 = trunc i64 %1 to i32 %4 = and i64 %1, 4294967295 %5 = icmp slt i32 %3, 5 store i64 %4, i64* %rax.0.reg2mem br i1 %5, label LBL_7, label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 store i32 1, i32* %storemerge1.reg2mem br label LBL_3 LBL_3: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %10 = sext i32 %storemerge1.reload to i64 %11 = mul i64 %10, 4 %12 = add i64 %11, %9 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 1 %16 = add i32 %storemerge1.reload, 1 store i32 %16, i32* %storemerge1.reg2mem br i1 %15, label LBL_3, label LBL_4 LBL_4: %17 = add i32 %storemerge1.reload, -1 %18 = zext i32 %17 to i64 %19 = call i64 @FUNC(i64 %6, i64 1, i64 %18) %20 = load i64, i64* %8, align 8 %21 = add i64 %20, %11 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 3 %25 = icmp eq i1 %24, false %26 = zext i1 %25 to i64 %27 = call i64 @FUNC(i64 %26) %28 = load i64, i64* %8, align 8 store i32 %16, i32* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i32, i32* %storemerge.reg2mem %29 = sext i32 %storemerge.reload to i64 %30 = mul i64 %29, 4 %31 = add i64 %30, %28 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = icmp eq i32 %33, 2 %35 = add i32 %storemerge.reload, 1 store i32 %35, i32* %storemerge.reg2mem br i1 %34, label LBL_5, label LBL_6 LBL_6: %36 = add i32 %storemerge.reload, -1 %37 = zext i32 %36 to i64 %38 = zext i32 %16 to i64 %39 = call i64 @FUNC(i64 %6, i64 %38, i64 %37) store i64 %39, 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 %storemerge.reload, { 2, 1, 0 } uselistorder i32 %16, { 2, 0, 1 } uselistorder i64 %11, { 1, 0 } uselistorder i32 %storemerge1.reload, { 2, 1, 0 } uselistorder i64* %8, { 1, 0, 2 } uselistorder i64 %6, { 0, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge.reg2mem, { 2, 0, 1 } uselistorder i64 (i64, i64, i64)* @sort_pacl_range, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_7, { 2, 1, 0 } }
0
BinRealVul
vfio_unmap_bar_16961
vfio_unmap_bar
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 27 %2 = add i64 %1, %0 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_5, label LBL_1 LBL_1: %6 = ashr exact i64 %sext, 32 %7 = and i64 %6, 4294967295 %8 = call i64 @FUNC(i64 %0, i64 %7) %9 = add i64 %2, 24 %10 = add i64 %2, 16 %11 = call i64 @FUNC(i64 %10, i64 %9) %12 = call i64 @FUNC(i64 %9) %13 = add i64 %2, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = inttoptr i64 %15 to i64* %17 = trunc i64 %12 to i32 %18 = call i32 @munmap(i64* %16, i32 %17) %19 = add i64 %0, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 br i1 %22, label LBL_4, label LBL_2 LBL_2: %23 = inttoptr i64 %21 to i32* %24 = load i32, i32* %23, align 4 %25 = trunc i64 %6 to i32 %26 = icmp eq i32 %24, %25 %27 = icmp eq i1 %26, false br i1 %27, label LBL_4, label LBL_3 LBL_3: %28 = add i64 %21, 16 %29 = call i64 @FUNC(i64 %10, i64 %28) %30 = load i64, i64* %20, align 8 %31 = add i64 %30, 16 %32 = call i64 @FUNC(i64 %31) %33 = load i64, i64* %20, align 8 %34 = add i64 %33, 8 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = inttoptr i64 %36 to i64* %38 = trunc i64 %32 to i32 %39 = call i32 @munmap(i64* %37, i32 %38) br label LBL_4 LBL_4: %40 = call i64 @FUNC(i64 %10) store i64 %40, 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* %20, { 1, 0, 2 } uselistorder i64 %10, { 1, 0, 2 } uselistorder i64 %2, { 2, 1, 0, 3 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64 (i64)* @memory_region_size, { 1, 0 } uselistorder i64 (i64, i64)* @memory_region_del_subregion, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
mysql_get_server_version_10859
mysql_get_server_version
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %.lcssa.reg2mem = alloca i8* %.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_3 = alloca i64, align 8 %1 = icmp eq i64* %arg1, null br i1 %1, label LBL_6, label LBL_1 LBL_1: %2 = bitcast i64* %arg1 to i8* %3 = load i8, i8* %2, align 1 %4 = icmp eq i8 %3, 0 store i8* %2, i8** %.lcssa.reg2mem br i1 %4, label LBL_5, label LBL_2 LBL_2: %5 = sext i8 %3 to i64 %6 = and i64 %5, 4294967295 %7 = call i64 @FUNC(i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @gv_0, i64 0, i64 0), i64 %6) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 store i64 %0, i64* %.in.reg2mem store i8* %2, i8** %.lcssa.reg2mem br i1 %9, label LBL_3, label LBL_5 LBL_3: %.in.reload = load i64, i64* %.in.reg2mem %10 = add i64 %.in.reload, 1 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 0 store i8* %11, i8** %.lcssa.reg2mem br i1 %13, label LBL_5, label LBL_4 LBL_4: %14 = sext i8 %12 to i64 %15 = and i64 %14, 4294967295 %16 = call i64 @FUNC(i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @gv_0, i64 0, i64 0), i64 %15) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 store i64 %10, i64* %.in.reg2mem store i8* %11, i8** %.lcssa.reg2mem br i1 %18, label LBL_3, label LBL_5 LBL_5: %.lcssa.reload = load i8*, i8** %.lcssa.reg2mem %19 = bitcast i64* %sv_3 to i8** %20 = call i32 @strtoul(i8* %.lcssa.reload, i8** nonnull %19, i32 10) %21 = load i64, i64* %sv_3, align 8 %22 = add i64 %21, 1 %23 = inttoptr i64 %22 to i8* %24 = call i32 @strtoul(i8* %23, i8** nonnull %19, i32 10) %25 = load i64, i64* %sv_3, align 8 %26 = add i64 %25, 1 %27 = inttoptr i64 %26 to i8* %28 = call i32 @strtoul(i8* %27, i8** nonnull %19, i32 10) %phitmp = mul i32 %20, 10000 %phitmp4 = mul i32 %24, 100 store i32 %phitmp, i32* %sv_2.0.reg2mem store i32 %phitmp4, i32* %sv_1.0.reg2mem store i32 %28, i32* %sv_0.0.reg2mem br label LBL_7 LBL_6: %29 = load [6 x i8]*, [6 x i8]** @gv_1, align 8 %30 = ptrtoint [6 x i8]* %29 to i64 %31 = call i64 @FUNC(i64 %0, i64 1, i64 %30) store i32 0, i32* %sv_2.0.reg2mem store i32 0, i32* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %32 = add i32 %sv_1.0.reload, %sv_2.0.reload %33 = add i32 %32, %sv_0.0.reload %34 = zext i32 %33 to i64 ret i64 %34 uselistorder i8* %11, { 1, 0, 2 } uselistorder i64* %sv_3, { 1, 2, 0 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %.in.reg2mem, { 2, 0, 1 } uselistorder i8** %.lcssa.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*, i8**, i32)* @strtoul, { 0, 2, 1 } uselistorder i64 1, { 1, 2, 3, 0 } uselistorder i64 (i8**, i64)* @my_isdigit, { 1, 0 } uselistorder i32 0, { 0, 1, 2, 8, 3, 4, 5, 6, 7 } uselistorder i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @gv_0, i64 0, i64 0), { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0, 3 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
read_buf_12653
read_buf
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i32 %rdi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = sub i64 %4, %0 %6 = trunc i64 %5 to i32 %7 = add i64 %0, 24 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i32 %9, %6 %11 = icmp ult i32 %10, %1 store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_9, label LBL_1 LBL_1: %sext = mul i64 %arg2, 4294967296 %12 = ashr exact i64 %sext, 32 %13 = add i32 %6, 4096 %14 = trunc i64 %12 to i32 %15 = icmp ult i32 %13, %14 store i64 0, i64* %rax.0.reg2mem br i1 %15, label LBL_9, label LBL_2 LBL_2: %16 = icmp ult i32 %14, 4097 br i1 %16, label LBL_3, label LBL_4 LBL_3: %17 = add i64 %0, 28 store i64 %17, i64* %sv_0.0.reg2mem store i64 %0, i64* %rdi.0.reg2mem br label LBL_5 LBL_4: %18 = add i64 %0, 4128 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20) %22 = and i64 %12, 4294967295 %23 = call i64 @FUNC(i64 %22, i64 0) store i64 %23, i64* %19, align 8 %24 = icmp eq i64 %23, 0 %25 = icmp eq i1 %24, false store i64 %23, i64* %sv_0.0.reg2mem store i64 %22, i64* %rdi.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %25, label LBL_5, label LBL_9 LBL_5: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %26 = inttoptr i64 %sv_0.0.reload to i64* %27 = inttoptr i64 %rdi.0.reload to i64* %28 = call i64* @memcpy(i64* %26, i64* %27, i32 %6) %29 = add i64 %0, 16 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = call i64 @FUNC(i64 %33) store i64 %34, i64* %arg1, align 8 %35 = load i64, i64* %30, align 8 %36 = add i64 %35, 8 store i64 %36, i64* %30, align 8 %37 = load i32, i32* %8, align 4 %38 = icmp ult i32 %37, 4096 br i1 %38, label LBL_6, label LBL_7 LBL_6: %39 = and i32 %37, -4 %40 = zext i32 %39 to i64 %41 = add i64 %sv_0.0.reload, %40 store i64 %41, i64* %3, align 8 store i32 0, i32* %storemerge.reg2mem br label LBL_8 LBL_7: %42 = add i64 %sv_0.0.reload, 4096 store i64 %42, i64* %3, align 8 %43 = load i32, i32* %8, align 4 %44 = add i32 %43, -4096 store i32 %44, i32* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i32, i32* %storemerge.reg2mem store i32 %storemerge.reload, i32* %8, align 4 %45 = sub i32 %14, %6 %46 = and i64 %5, 4294967295 %47 = add i64 %sv_0.0.reload, %46 %48 = inttoptr i64 %47 to i64* %49 = inttoptr i64 %33 to i64* %50 = call i64* @memcpy(i64* %48, i64* %49, i32 %45) %51 = add nsw i64 %12, 3 %52 = sub i64 %51, %5 %53 = udiv i64 %52, 4 %54 = urem i64 %53, 1073741824 %55 = add i64 %47, %54 store i64 %55, i64* %arg1, align 8 store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %30, { 1, 0, 2 } uselistorder i64 %sv_0.0.reload, { 0, 3, 2, 4, 1 } uselistorder i32 %6, { 1, 2, 3, 0 } uselistorder i64 %0, { 1, 3, 0, 2, 4, 5, 6 } uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder label LBL_9, { 3, 0, 1, 2 } }
1
BinRealVul
send_12986
send
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.1.reg2mem = alloca i64 %rax.0.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 store i64 0, i64* %rax.0.reg2mem br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 %arg1, i64 %arg1, i64 %arg3) store i64 %1, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem %2 = icmp eq i64 %arg2, 0 store i64 %rax.0.reload, i64* %rax.1.reg2mem br i1 %2, label LBL_6, label LBL_3 LBL_3: %3 = add i64 %arg1, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, %arg2 %7 = icmp eq i1 %6, false br i1 %7, label LBL_5, label LBL_4 LBL_4: %8 = call i64 @FUNC(i64 1, i64 %arg3) store i64 %8, i64* %rax.1.reg2mem br label LBL_6 LBL_5: %9 = call i64 @FUNC(i64 0, i64 %arg3) store i64 %9, i64* %rax.1.reg2mem br label LBL_6 LBL_6: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64* %rax.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64, i64)* @add_bit, { 1, 0 } uselistorder i64 %arg3, { 1, 2, 0 } uselistorder i64 %arg1, { 2, 0, 1, 3 } }
1
BinRealVul
krb5_lcc_close_18415
krb5_lcc_close
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC() %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 %3 = icmp eq i1 %2, false store i64 1, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %4 = icmp eq i64 %arg2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = call i64 @FUNC(i64 %arg2) %6 = inttoptr i64 %arg2 to i64* call void @free(i64* %6) call void @free(i64* %6) 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, 3 } uselistorder void (i64*)* @free, { 1, 0 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 1, 0, 2 } }
1
BinRealVul
float64_to_uint16_round_to_zero_15652
float64_to_uint16_round_to_zero
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i128 %sv_0.0.reg2mem = alloca i64 %1 = load i128, i128* %0 %2 = call i64 @FUNC(i128 %1) %3 = call i128 @FUNC(i64 %2) %4 = call i64 @FUNC() %5 = icmp slt i64 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 1) store i64 0, i64* %sv_0.0.reg2mem br label LBL_4 LBL_2: %8 = icmp slt i64 %4, 65536 store i64 %4, i64* %sv_0.0.reg2mem br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = call i64 @FUNC(i64 1) store i64 65535, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64)* @float_raise, { 1, 0 } uselistorder i32 1, { 3, 1, 0, 2 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
bufgets_9308
bufgets
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.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 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp ult i32 %3, %6 store i32 %3, i32* %.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %7, label LBL_1, label LBL_8 LBL_1: %.reload = load i32, i32* %.reg2mem %8 = sext i32 %.reload to i64 %9 = add i64 %8, %0 %10 = inttoptr i64 %9 to i8* %11 = load i8, i8* %10, align 1 %12 = icmp ne i8 %11, 10 %13 = icmp eq i8 %11, 13 %14 = icmp eq i1 %13, false %or.cond = icmp eq i1 %12, %14 br i1 %or.cond, label LBL_7, label LBL_2 LBL_2: store i8 0, i8* %10, align 1 %15 = load i32, i32* %2, align 4 %16 = add i32 %15, 1 store i32 %16, i32* %2, align 4 br i1 %14, label LBL_6, label LBL_3 LBL_3: %17 = load i32, i32* %5, align 4 %18 = icmp ult i32 %16, %17 br i1 %18, label LBL_4, label LBL_6 LBL_4: %19 = sext i32 %16 to i64 %20 = add i64 %19, %0 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 10 %24 = icmp eq i1 %23, false br i1 %24, label LBL_6, label LBL_5 LBL_5: store i8 0, i8* %21, align 1 %25 = load i32, i32* %2, align 4 %26 = add i32 %25, 1 store i32 %26, i32* %2, align 4 br label LBL_6 LBL_6: %27 = sext i32 %3 to i64 %28 = add i64 %27, %0 store i64 %28, i64* %storemerge.reg2mem br label LBL_8 LBL_7: %29 = add nuw i32 %.reload, 1 store i32 %29, i32* %2, align 4 %30 = load i32, i32* %5, align 4 %31 = icmp ult i32 %29, %30 store i32 %29, i32* %.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %31, label LBL_1, label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %16, { 1, 0, 2 } uselistorder i1 %14, { 1, 0 } uselistorder i32* %5, { 2, 0, 1 } uselistorder i32 %3, { 2, 0, 1 } uselistorder i32* %2, { 4, 1, 0, 3, 2, 5 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 } uselistorder label LBL_8, { 0, 2, 1 } uselistorder label LBL_6, { 1, 2, 0, 3 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
ff_vp56_init_range_decoder_16665
ff_vp56_init_range_decoder
define i64 @FUNC(i64* %arg1, i16* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i16* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = bitcast i64* %arg1 to i32* store i32 255, i32* %2, align 4 %3 = add i64 %1, 4 %4 = inttoptr i64 %3 to i32* store i32 -16, i32* %4, align 4 %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i64* store i64 %0, i64* %6, align 8 %sext = mul i64 %arg3, 4294967296 %7 = ashr exact i64 %sext, 32 %8 = add i64 %7, %0 %9 = add i64 %1, 16 %10 = inttoptr i64 %9 to i64* store i64 %8, i64* %10, align 8 %11 = call i64 @FUNC(i64 %5) %12 = trunc i64 %11 to i32 %13 = add i64 %1, 24 %14 = inttoptr i64 %13 to i32* store i32 %12, i32* %14, align 4 ret i64 %11 uselistorder i64 %11, { 1, 0 } }
1
BinRealVul
i8042_class_initfn_2218
i8042_class_initfn
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198662, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* store i32 1, i32* %2, align 4 %3 = add i64 %0, 16 %4 = inttoptr i64 %3 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0, 2 } }
0
BinRealVul
rfcomm_dev_modem_status_9119
rfcomm_dev_modem_status
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i64* %arg1, null br i1 %3, label LBL_6, label LBL_1 LBL_1: %4 = trunc i64 %arg2 to i8 %5 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %2, i8 %4) %6 = urem i64 %1, 2 %7 = icmp eq i64 %6, 0 br i1 %7, label LBL_5, label LBL_2 LBL_2: %8 = add i64 %2, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 br i1 %11, label LBL_5, label LBL_3 LBL_3: %12 = call i64 @FUNC(i64 %10) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = load i64, i64* %9, align 8 %17 = call i64 @FUNC(i64 %16) br label LBL_5 LBL_5: %18 = and i64 %arg2, 64 %19 = icmp eq i64 %18, 0 %. = select i1 %19, i32 0, i32 6 %20 = icmp slt i8 %4, 0 %21 = icmp eq i1 %20, false %storemerge = select i1 %21, i32 0, i32 24 %22 = or i32 %storemerge, %. %23 = bitcast i64* %arg1 to i32* store i32 %22, i32* %23, align 4 br label LBL_6 LBL_6: ret i64 %2 uselistorder i64 %2, { 0, 1, 3, 2 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
xen_sysdev_class_init_14455
xen_sysdev_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198669, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* store i32 1, i32* %2, align 4 ret i64 %0 uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
rsCStrExtendBuf_5676
rsCStrExtendBuf
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %.pre-phi2.reg2mem = alloca i64* %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp ult i64 %arg2, 17 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = add i64 %arg2, 16 %3 = and i64 %2, -16 %.pre = add i64 %0, 8 %.pre1 = inttoptr i64 %.pre to i64* %.pre3 = load i64, i64* %.pre1, align 8 store i64 %.pre3, i64* %.reg2mem store i64* %.pre1, i64** %.pre-phi2.reg2mem store i64 %3, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %6, 16 store i64 %6, i64* %.reg2mem store i64* %5, i64** %.pre-phi2.reg2mem store i64 %7, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem %.reload = load i64, i64* %.reg2mem %8 = add i64 %.reload, %storemerge.reload %9 = trunc i64 %8 to i32 %10 = call i64* @realloc(i64* %arg1, i32 %9) %11 = icmp eq i64* %10, null %12 = icmp eq i1 %11, false store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %12, label LBL_4, label LBL_5 LBL_4: %.pre-phi2.reload = load i64*, i64** %.pre-phi2.reg2mem %13 = ptrtoint i64* %10 to i64 store i64 %8, i64* %.pre-phi2.reload, align 8 store i64 %13, i64* %arg1, align 8 store i64 0, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64* %10, { 1, 0 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64** %.pre-phi2.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64 8, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
tcp_v6_send_reset_8655
tcp_v6_send_reset
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* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i8* %6 = load i8, i8* %5, align 1 %7 = zext i8 %6 to i64 %8 = icmp eq i8 %6, 0 %9 = icmp eq i1 %8, false store i64 %7, i64* %rax.0.reg2mem br i1 %9, label LBL_7, label LBL_1 LBL_1: %10 = icmp eq i64* %arg1, null %11 = icmp eq i1 %10, false br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %2) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i64 %12, i64* %rax.0.reg2mem br i1 %14, label LBL_7, label LBL_3 LBL_3: %15 = add i64 %3, 9 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = icmp eq i8 %17, 0 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = inttoptr i64 %3 to i32* %20 = load i32, i32* %19, align 4 %21 = call i32 @ntohl(i32 %20) store i32 %21, i32* %sv_1.0.reg2mem store i32 0, i32* %sv_0.0.reg2mem br label LBL_6 LBL_5: %22 = trunc i64 %1 to i32 %23 = add i64 %3, 4 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = call i32 @ntohl(i32 %25) %27 = add i64 %3, 10 %28 = inttoptr i64 %27 to i8* %29 = load i8, i8* %28, align 1 %30 = zext i8 %29 to i32 %31 = add i64 %3, 11 %32 = inttoptr i64 %31 to i8* %33 = load i8, i8* %32, align 1 %34 = zext i8 %33 to i32 %35 = add i64 %3, 12 %36 = inttoptr i64 %35 to i8* %37 = load i8, i8* %36, align 1 %38 = zext i8 %37 to i32 %39 = mul i32 %38, 4 %40 = add i32 %26, %22 %41 = add i32 %40, %30 %42 = add i32 %41, %34 %43 = sub i32 %42, %39 store i32 0, i32* %sv_1.0.reg2mem store i32 %43, i32* %sv_0.0.reg2mem br label LBL_6 LBL_6: %44 = ptrtoint i64* %arg1 to i64 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %45 = call i64 @FUNC(i64 %44, i64 %2, i32 %sv_1.0.reload, i32 %sv_0.0.reload, i64 0, i64 0) store i64 %45, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 0, 1, 2, 3, 5, 4, 6 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i32 (i32)* @ntohl, { 1, 0 } uselistorder i32 0, { 1, 0, 2 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_7, { 2, 0, 1 } }
0
BinRealVul
rpza_decode_stream_139
rpza_decode_stream
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.7.lcssa.reg2mem = alloca i32 %sv_0.7.ph41.reg2mem = alloca i32 %sv_1.5.ph42.reg2mem = alloca i16 %sv_2.3.ph43.reg2mem = alloca i32 %sv_0.7.ph.ph66.reg2mem = alloca i32 %sv_1.5.ph.ph67.reg2mem = alloca i16 %sv_2.3.ph.ph68.reg2mem = alloca i32 %sv_3.9.ph.ph69.reg2mem = alloca i32 %sv_3.9.ph.ph.be.reg2mem = alloca i32 %sv_2.3.ph.ph.be.reg2mem = alloca i32 %sv_1.5.ph.ph.be.reg2mem = alloca i16 %sv_0.7.ph.ph.be.reg2mem = alloca i32 %sv_0.650.reg2mem = alloca i32 %sv_1.451.reg2mem = alloca i16 %sv_3.852.reg2mem = alloca i32 %storemerge453.reg2mem = alloca i32 %sv_1.2.reg2mem = alloca i16 %sv_0.4.reg2mem = alloca i32 %sv_0.546.reg2mem = alloca i32 %sv_1.347.reg2mem = alloca i16 %sv_3.748.reg2mem = alloca i32 %storemerge549.reg2mem = alloca i32 %sv_0.364.reg2mem = alloca i32 %sv_2.265.reg2mem = alloca i32 %.in.reg2mem = alloca i32 %sv_3.359.reg2mem = alloca i32 %storemerge360.reg2mem = alloca i32 %sv_0.261.reg2mem = alloca i32 %sv_3.462.reg2mem = alloca i32 %storemerge63.reg2mem = alloca i32 %sv_1.1.reg2mem = alloca i16 %sv_0.1.reg2mem = alloca i32 %sv_2.158.reg2mem = alloca i32 %.in71.reg2mem = alloca i32 %sv_3.156.reg2mem = alloca i32 %storemerge657.reg2mem = alloca i32 %sv_3.054.reg2mem = alloca i32 %storemerge755.reg2mem = alloca i32 %sv_2.039.reg2mem = alloca i32 %sv_4.140.reg2mem = alloca i32 %sv_4.0.reg2mem = alloca i32 %sv_5.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i16 %sv_0.0.reg2mem = alloca i32 %sv_0.736.reg2mem = alloca i32 %sv_1.537.reg2mem = alloca i16 %.reg2mem185 = alloca i32 %rcx.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %sv_6 = alloca i64, align 8 %4 = add i64 %3, 24 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %3, 32 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %3, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = icmp eq i8 %18, -31 store i64 %16, i64* %.reg2mem br i1 %19, label LBL_2, label LBL_1 LBL_1: %20 = zext i8 %18 to i64 %21 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %20, i64 %2, i64 %1) %.pre = load i64, i64* %15, align 8 store i64 %.pre, i64* %.reg2mem store i64 %20, i64* %rcx.0.reg2mem br label LBL_2 LBL_2: %.reload = load i64, i64* %.reg2mem %22 = inttoptr i64 %.reload to i32* %23 = load i32, i32* %22, align 4 %24 = urem i32 %23, 16777216 %25 = add i64 %3, 16 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %24, %27 store i32 %24, i32* %.reg2mem185 br i1 %28, label LBL_4, label LBL_3 LBL_3: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %29 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1) %.pre108 = load i32, i32* %26, align 4 store i32 %.pre108, i32* %.reg2mem185 br label LBL_4 LBL_4: %.reload186 = load i32, i32* %.reg2mem185 %30 = icmp sgt i32 %.reload186, 4 store i32 4, i32* %sv_0.7.lcssa.reg2mem br i1 %30, label LBL_5, label LBL_42 LBL_5: %31 = ptrtoint i64* %sv_6 to i64 %32 = icmp slt i32 %8, 0 %33 = zext i1 %32 to i32 %34 = add i32 %8, %33 %35 = ashr i32 %34, 1 %36 = add nsw i32 %35, -4 %37 = add i64 %31, -84 store i32 0, i32* %sv_2.3.ph.ph68.reg2mem store i16 0, i16* %sv_1.5.ph.ph67.reg2mem store i32 4, i32* %sv_0.7.ph.ph66.reg2mem br label LBL_6.lr.ph.lr.ph LBL_6: %sv_0.736.reload = load i32, i32* %sv_0.736.reg2mem %sv_1.537.reload = load i16, i16* %sv_1.537.reg2mem %38 = load i64, i64* %15, align 8 %39 = add i32 %sv_0.736.reload, 1 %40 = sext i32 %sv_0.736.reload to i64 %41 = add i64 %38, %40 %42 = inttoptr i64 %41 to i8* %43 = load i8, i8* %42, align 1 %44 = sext i8 %43 to i32 %45 = urem i8 %43, 32 %narrow = add nuw nsw i8 %45, 1 %46 = zext i8 %narrow to i32 %47 = icmp slt i8 %43, 0 store i32 %39, i32* %sv_0.0.reg2mem store i16 %sv_1.537.reload, i16* %sv_1.0.reg2mem store i32 %44, i32* %sv_5.0.reg2mem store i32 %46, i32* %sv_4.0.reg2mem br i1 %47, label LBL_8, label LBL_7 LBL_7: %48 = mul i32 %44, 256 %49 = add i32 %sv_0.736.reload, 2 %50 = sext i32 %39 to i64 %51 = add i64 %38, %50 %52 = inttoptr i64 %51 to i8* %53 = load i8, i8* %52, align 1 %54 = zext i8 %53 to i32 %55 = or i32 %48, %54 %56 = trunc i32 %55 to i16 %57 = sext i32 %49 to i64 %58 = add i64 %38, %57 %59 = inttoptr i64 %58 to i8* %60 = load i8, i8* %59, align 1 %61 = icmp slt i8 %60, 0 %62 = icmp eq i1 %61, false %spec.select = select i1 %62, i32 0, i32 32 %spec.select9 = select i1 %62, i32 %46, i32 1 store i32 %49, i32* %sv_0.0.reg2mem store i16 %56, i16* %sv_1.0.reg2mem store i32 %spec.select, i32* %sv_5.0.reg2mem store i32 %spec.select9, i32* %sv_4.0.reg2mem br label LBL_8 LBL_8: %sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem %sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %63 = and i32 %sv_5.0.reload, 224 %64 = icmp eq i32 %63, 192 br i1 %64, label LBL_22, label LBL_9 LBL_9: %sv_1.0.reload = load i16, i16* %sv_1.0.reg2mem %65 = icmp ugt i32 %63, 192 br i1 %65, label LBL_36, label LBL_10 LBL_10: %66 = icmp eq i32 %63, 160 br i1 %66, label LBL_16, label LBL_11 LBL_11: %67 = icmp ugt i32 %63, 160 br i1 %67, label LBL_36, label LBL_12 LBL_12: %68 = icmp eq i32 %63, 128 store i32 %sv_4.0.reload, i32* %sv_4.140.reg2mem store i32 %sv_2.3.ph43.reload, i32* %sv_2.039.reg2mem br i1 %68, label LBL_15, label LBL_13 LBL_13: %69 = icmp ugt i32 %63, 128 br i1 %69, label LBL_36, label LBL_14 LBL_14: %trunc = trunc i32 %63 to i8 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem store i16 %sv_1.0.reload, i16* %sv_1.1.reg2mem switch i8 %trunc, label LBL_36 [ i8 0, label LBL_29 i8 32, label LBL_23 ] LBL_15: %sv_2.039.reload = load i32, i32* %sv_2.039.reg2mem %sv_4.140.reload = load i32, i32* %sv_4.140.reg2mem %70 = add i32 %sv_4.140.reload, -1 %71 = add i32 %sv_2.039.reload, 16 %72 = icmp eq i32 %70, 0 %73 = icmp eq i1 %72, false store i32 %70, i32* %sv_4.140.reg2mem store i32 %71, i32* %sv_2.039.reg2mem br i1 %73, label LBL_15, label LBL_40 LBL_16: %74 = sext i32 %sv_0.0.reload to i64 %75 = add i64 %38, %74 %76 = inttoptr i64 %75 to i16* %77 = load i16, i16* %76, align 2 store i32 %sv_4.0.reload, i32* %.in71.reg2mem store i32 %sv_2.3.ph43.reload, i32* %sv_2.158.reg2mem br label LBL_21 LBL_17: %sv_3.054.reload = load i32, i32* %sv_3.054.reg2mem %storemerge755.reload = load i32, i32* %storemerge755.reg2mem %78 = sext i32 %sv_3.054.reload to i64 %79 = mul i64 %78, 2 %80 = add i64 %79, %13 %81 = inttoptr i64 %80 to i16* store i16 %77, i16* %81, align 2 %82 = add i32 %sv_3.054.reload, 1 %83 = add nuw nsw i32 %storemerge755.reload, 1 %exitcond104 = icmp eq i32 %83, 4 store i32 %83, i32* %storemerge755.reg2mem store i32 %82, i32* %sv_3.054.reg2mem br i1 %exitcond104, label LBL_18, label LBL_17 LBL_18: %84 = add i32 %82, %36 %85 = add nuw nsw i32 %storemerge657.reload, 1 %exitcond105 = icmp eq i32 %85, 4 store i32 %85, i32* %storemerge657.reg2mem store i32 %84, i32* %sv_3.156.reg2mem br i1 %exitcond105, label LBL_20, label LBL_19 LBL_19: %sv_3.156.reload = load i32, i32* %sv_3.156.reg2mem %storemerge657.reload = load i32, i32* %storemerge657.reg2mem store i32 0, i32* %storemerge755.reg2mem store i32 %sv_3.156.reload, i32* %sv_3.054.reg2mem br label LBL_17 LBL_20: %86 = add i32 %.in71.reload, -1 %87 = add i32 %sv_2.158.reload, 16 %88 = icmp eq i32 %86, 0 %89 = icmp eq i1 %88, false store i32 %86, i32* %.in71.reg2mem store i32 %87, i32* %sv_2.158.reg2mem br i1 %89, label LBL_21, label LBL_37 LBL_21: %sv_2.158.reload = load i32, i32* %sv_2.158.reg2mem %.in71.reload = load i32, i32* %.in71.reg2mem store i32 0, i32* %storemerge657.reg2mem store i32 %sv_2.158.reload, i32* %sv_3.156.reg2mem br label LBL_19 LBL_22: %90 = sext i32 %sv_0.0.reload to i64 %91 = add i64 %38, %90 %92 = inttoptr i64 %91 to i16* %93 = load i16, i16* %92, align 2 %94 = add i32 %sv_0.0.reload, 2 store i32 %94, i32* %sv_0.1.reg2mem store i16 %93, i16* %sv_1.1.reg2mem br label LBL_23 LBL_23: %sv_1.1.reload = load i16, i16* %sv_1.1.reg2mem %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %95 = add i32 %sv_0.1.reload, 2 store i32 %sv_4.0.reload, i32* %.in.reg2mem store i32 %sv_2.3.ph43.reload, i32* %sv_2.265.reg2mem store i32 %95, i32* %sv_0.364.reg2mem br label LBL_28 LBL_24: %sv_0.261.reload = load i32, i32* %sv_0.261.reg2mem %sv_3.462.reload = load i32, i32* %sv_3.462.reg2mem %storemerge63.reload = load i32, i32* %storemerge63.reg2mem %96 = load i64, i64* %15, align 8 %97 = sext i32 %sv_0.261.reload to i64 %98 = add i64 %96, %97 %99 = inttoptr i64 %98 to i8* %100 = load i8, i8* %99, align 1 %101 = zext i8 %100 to i32 %102 = zext i8 %100 to i64 store i32 0, i32* %storemerge360.reg2mem store i32 %sv_3.462.reload, i32* %sv_3.359.reg2mem br label LBL_25 LBL_25: %sv_3.359.reload = load i32, i32* %sv_3.359.reg2mem %storemerge360.reload = load i32, i32* %storemerge360.reg2mem %103 = mul i32 %storemerge360.reload, 2 %104 = sub nuw nsw i32 6, %103 %105 = and i32 %104, 30 %106 = icmp eq i32 %105, 0 %107 = lshr i32 %101, %105 %108 = zext i32 %107 to i64 %rdx.0 = select i1 %106, i64 %102, i64 %108 %109 = sext i32 %sv_3.359.reload to i64 %110 = mul i64 %109, 2 %111 = add i64 %110, %13 %112 = mul i64 %rdx.0, 2 %113 = and i64 %112, 6 %114 = add i64 %37, %113 %115 = inttoptr i64 %114 to i16* %116 = load i16, i16* %115, align 2 %117 = inttoptr i64 %111 to i16* store i16 %116, i16* %117, align 2 %118 = add i32 %sv_3.359.reload, 1 %119 = add nuw nsw i32 %storemerge360.reload, 1 %exitcond106 = icmp eq i32 %119, 4 store i32 %119, i32* %storemerge360.reg2mem store i32 %118, i32* %sv_3.359.reg2mem br i1 %exitcond106, label LBL_26, label LBL_25 LBL_26: %120 = add i32 %sv_0.261.reload, 1 %121 = add i32 %118, %36 %122 = add nuw nsw i32 %storemerge63.reload, 1 %exitcond107 = icmp eq i32 %122, 4 store i32 %122, i32* %storemerge63.reg2mem store i32 %121, i32* %sv_3.462.reg2mem store i32 %120, i32* %sv_0.261.reg2mem br i1 %exitcond107, label LBL_27, label LBL_24 LBL_27: %123 = add i32 %.in.reload, -1 %124 = add i32 %sv_2.265.reload, 16 %125 = icmp eq i32 %123, 0 %126 = icmp eq i1 %125, false store i32 %123, i32* %.in.reg2mem store i32 %124, i32* %sv_2.265.reg2mem store i32 %120, i32* %sv_0.364.reg2mem store i32 %120, i32* %sv_0.7.ph.ph.be.reg2mem store i16 %sv_1.1.reload, i16* %sv_1.5.ph.ph.be.reg2mem store i32 %124, i32* %sv_2.3.ph.ph.be.reg2mem store i32 %121, i32* %sv_3.9.ph.ph.be.reg2mem br i1 %126, label LBL_28, label LBL_38 LBL_28: %sv_0.364.reload = load i32, i32* %sv_0.364.reg2mem %sv_2.265.reload = load i32, i32* %sv_2.265.reg2mem %.in.reload = load i32, i32* %.in.reg2mem store i32 0, i32* %storemerge63.reg2mem store i32 %sv_2.265.reload, i32* %sv_3.462.reg2mem store i32 %sv_0.364.reload, i32* %sv_0.261.reg2mem br label LBL_24 LBL_29: %127 = load i32, i32* %26, align 4 %128 = sub i32 %127, %sv_0.0.reload %129 = icmp sgt i32 %128, 15 %spec.select10 = select i1 %129, i32 %sv_3.9.ph.ph69.reload, i32 %sv_2.3.ph43.reload store i32 0, i32* %storemerge453.reg2mem store i32 %spec.select10, i32* %sv_3.852.reg2mem store i16 %sv_1.0.reload, i16* %sv_1.451.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.650.reg2mem br label LBL_34 LBL_30: %sv_0.546.reload = load i32, i32* %sv_0.546.reg2mem %sv_1.347.reload = load i16, i16* %sv_1.347.reg2mem %sv_3.748.reload = load i32, i32* %sv_3.748.reg2mem %storemerge549.reload = load i32, i32* %storemerge549.reg2mem %130 = or i32 %storemerge549.reload, %storemerge453.reload %131 = icmp eq i32 %130, 0 store i32 %sv_0.546.reload, i32* %sv_0.4.reg2mem store i16 %sv_1.347.reload, i16* %sv_1.2.reg2mem br i1 %131, label LBL_32, label LBL_31 LBL_31: %132 = load i64, i64* %15, align 8 %133 = sext i32 %sv_0.546.reload to i64 %134 = add i64 %132, %133 %135 = inttoptr i64 %134 to i16* %136 = load i16, i16* %135, align 2 %137 = add i32 %sv_0.546.reload, 2 store i32 %137, i32* %sv_0.4.reg2mem store i16 %136, i16* %sv_1.2.reg2mem br label LBL_32 LBL_32: %sv_1.2.reload = load i16, i16* %sv_1.2.reg2mem %sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem %138 = sext i32 %sv_3.748.reload to i64 %139 = mul i64 %138, 2 %140 = add i64 %139, %13 %141 = inttoptr i64 %140 to i16* store i16 %sv_1.2.reload, i16* %141, align 2 %142 = add i32 %sv_3.748.reload, 1 %143 = add nuw nsw i32 %storemerge549.reload, 1 %exitcond = icmp eq i32 %143, 4 store i32 %143, i32* %storemerge549.reg2mem store i32 %142, i32* %sv_3.748.reg2mem store i16 %sv_1.2.reload, i16* %sv_1.347.reg2mem store i32 %sv_0.4.reload, i32* %sv_0.546.reg2mem br i1 %exitcond, label LBL_33, label LBL_30 LBL_33: %144 = add i32 %142, %36 %145 = add nuw nsw i32 %storemerge453.reload, 1 %exitcond103 = icmp eq i32 %145, 4 store i32 %145, i32* %storemerge453.reg2mem store i32 %144, i32* %sv_3.852.reg2mem store i16 %sv_1.2.reload, i16* %sv_1.451.reg2mem store i32 %sv_0.4.reload, i32* %sv_0.650.reg2mem br i1 %exitcond103, label LBL_35, label LBL_34 LBL_34: %sv_0.650.reload = load i32, i32* %sv_0.650.reg2mem %sv_1.451.reload = load i16, i16* %sv_1.451.reg2mem %sv_3.852.reload = load i32, i32* %sv_3.852.reg2mem %storemerge453.reload = load i32, i32* %storemerge453.reg2mem store i32 0, i32* %storemerge549.reg2mem store i32 %sv_3.852.reload, i32* %sv_3.748.reg2mem store i16 %sv_1.451.reload, i16* %sv_1.347.reg2mem store i32 %sv_0.650.reload, i32* %sv_0.546.reg2mem br label LBL_30 LBL_35: %146 = add i32 %sv_2.3.ph43.reload, 16 store i32 %sv_0.4.reload, i32* %sv_0.7.ph.ph.be.reg2mem store i16 %sv_1.2.reload, i16* %sv_1.5.ph.ph.be.reg2mem store i32 %146, i32* %sv_2.3.ph.ph.be.reg2mem store i32 %144, i32* %sv_3.9.ph.ph.be.reg2mem br label LBL_38 LBL_36: %147 = sub i32 %.reload186, %sv_0.0.reload %148 = zext i32 %147 to i64 %149 = urem i32 %sv_5.0.reload, 256 %150 = zext i32 %149 to i64 %151 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @gv_2, i64 0, i64 0), i64 %150, i64 %148, i64 %1) %152 = icmp sgt i32 %.reload186, %sv_0.0.reload store i16 %sv_1.0.reload, i16* %sv_1.537.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.736.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.7.lcssa.reg2mem br i1 %152, label LBL_6, label LBL_42 LBL_37: %153 = add i32 %sv_0.0.reload, 2 store i32 %153, i32* %sv_0.7.ph.ph.be.reg2mem store i16 %77, i16* %sv_1.5.ph.ph.be.reg2mem store i32 %87, i32* %sv_2.3.ph.ph.be.reg2mem store i32 %84, i32* %sv_3.9.ph.ph.be.reg2mem br label LBL_38 LBL_38: %sv_3.9.ph.ph.be.reload = load i32, i32* %sv_3.9.ph.ph.be.reg2mem %sv_2.3.ph.ph.be.reload = load i32, i32* %sv_2.3.ph.ph.be.reg2mem %sv_1.5.ph.ph.be.reload = load i16, i16* %sv_1.5.ph.ph.be.reg2mem %sv_0.7.ph.ph.be.reload = load i32, i32* %sv_0.7.ph.ph.be.reg2mem %154 = icmp slt i32 %sv_0.7.ph.ph.be.reload, %.reload186 store i32 %sv_3.9.ph.ph.be.reload, i32* %sv_3.9.ph.ph69.reg2mem store i32 %sv_2.3.ph.ph.be.reload, i32* %sv_2.3.ph.ph68.reg2mem store i16 %sv_1.5.ph.ph.be.reload, i16* %sv_1.5.ph.ph67.reg2mem store i32 %sv_0.7.ph.ph.be.reload, i32* %sv_0.7.ph.ph66.reg2mem store i32 %sv_0.7.ph.ph.be.reload, i32* %sv_0.7.lcssa.reg2mem br i1 %154, label LBL_6.lr.ph.lr.ph, label LBL_42 LBL_39: %sv_0.7.ph.ph66.reload = load i32, i32* %sv_0.7.ph.ph66.reg2mem %sv_1.5.ph.ph67.reload = load i16, i16* %sv_1.5.ph.ph67.reg2mem %sv_2.3.ph.ph68.reload = load i32, i32* %sv_2.3.ph.ph68.reg2mem %sv_3.9.ph.ph69.reload = load i32, i32* %sv_3.9.ph.ph69.reg2mem store i32 %sv_2.3.ph.ph68.reload, i32* %sv_2.3.ph43.reg2mem store i16 %sv_1.5.ph.ph67.reload, i16* %sv_1.5.ph42.reg2mem store i32 %sv_0.7.ph.ph66.reload, i32* %sv_0.7.ph41.reg2mem br label LBL_6.lr.ph LBL_40: %155 = icmp sgt i32 %.reload186, %sv_0.0.reload store i32 %71, i32* %sv_2.3.ph43.reg2mem store i16 %sv_1.0.reload, i16* %sv_1.5.ph42.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.7.ph41.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.7.lcssa.reg2mem br i1 %155, label LBL_6.lr.ph, label LBL_42 LBL_41: %sv_0.7.ph41.reload = load i32, i32* %sv_0.7.ph41.reg2mem %sv_1.5.ph42.reload = load i16, i16* %sv_1.5.ph42.reg2mem %sv_2.3.ph43.reload = load i32, i32* %sv_2.3.ph43.reg2mem store i16 %sv_1.5.ph42.reload, i16* %sv_1.537.reg2mem store i32 %sv_0.7.ph41.reload, i32* %sv_0.736.reg2mem br label LBL_6 LBL_42: %sv_0.7.lcssa.reload = load i32, i32* %sv_0.7.lcssa.reg2mem %156 = zext i32 %sv_0.7.lcssa.reload to i64 ret i64 %156 uselistorder i32 %sv_2.3.ph43.reload, { 2, 3, 4, 0, 1 } uselistorder i32 %storemerge453.reload, { 1, 0 } uselistorder i32 %142, { 1, 0 } uselistorder i16 %sv_1.2.reload, { 0, 1, 3, 2 } uselistorder i32 %sv_0.546.reload, { 2, 1, 0 } uselistorder i32 %sv_2.265.reload, { 1, 0 } uselistorder i32 %118, { 1, 0 } uselistorder i32 %sv_2.158.reload, { 1, 0 } uselistorder i32 %82, { 1, 0 } uselistorder i16 %sv_1.0.reload, { 0, 3, 1, 2 } uselistorder i32 %63, { 0, 1, 4, 2, 5, 3, 6 } uselistorder i32 %sv_0.0.reload, { 0, 2, 8, 9, 1, 13, 6, 5, 3, 7, 11, 12, 10, 4 } uselistorder i32 %sv_5.0.reload, { 1, 0 } uselistorder i32 %46, { 1, 0 } uselistorder i32 %44, { 1, 0 } uselistorder i8 %43, { 1, 0, 2 } uselistorder i32 %39, { 1, 0 } uselistorder i32 %sv_0.736.reload, { 0, 2, 1 } uselistorder i32 %36, { 2, 0, 1 } uselistorder i32 %.reload186, { 0, 3, 1, 4, 2 } uselistorder i32* %26, { 1, 0, 2 } uselistorder i64* %15, { 1, 2, 3, 0, 4 } uselistorder i64 %13, { 2, 0, 1 } uselistorder i64 %3, { 0, 1, 3, 2, 4, 5, 6 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i32* %.reg2mem185, { 0, 2, 1 } uselistorder i16* %sv_1.537.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.736.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_4.140.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.039.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge755.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_3.054.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge657.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_3.156.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i16* %sv_1.1.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge63.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_3.462.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.261.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge360.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_3.359.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge549.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_3.748.reg2mem, { 2, 1, 0 } uselistorder i16* %sv_1.347.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.546.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.7.ph.ph.be.reg2mem, { 0, 2, 3, 1 } uselistorder i16* %sv_1.5.ph.ph.be.reg2mem, { 0, 2, 3, 1 } uselistorder i32* %sv_2.3.ph.ph.be.reg2mem, { 0, 2, 3, 1 } uselistorder i32* %sv_3.9.ph.ph.be.reg2mem, { 0, 2, 3, 1 } uselistorder i32* %sv_0.7.lcssa.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %0, { 1, 0 } uselistorder i32 -1, { 1, 0, 2 } uselistorder i32 2, { 5, 2, 0, 3, 4, 1 } uselistorder i32 256, { 1, 0 } uselistorder i8 32, { 1, 0 } uselistorder i32 0, { 2, 9, 1, 4, 11, 10, 3, 5, 12, 6, 13, 8, 0, 7 } uselistorder i32 4, { 6, 7, 2, 3, 4, 5, 1, 0, 8 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 } uselistorder label LBL_42, { 1, 0, 2, 3 } uselistorder label LBL_6.lr.ph, { 1, 0 } uselistorder label LBL_6.lr.ph.lr.ph, { 1, 0 } uselistorder label LBL_38, { 1, 2, 0 } uselistorder label LBL_32, { 1, 0 } uselistorder label LBL_30, { 1, 0 } uselistorder label LBL_28, { 1, 0 } 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_17, { 1, 0 } uselistorder label LBL_15, { 1, 0 } }
1
BinRealVul
xenoprof_buf_space_7317
xenoprof_buf_space
define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = trunc i64 %arg2 to i32 %2 = icmp sgt i32 %1, %0 %narrow = select i1 %2, i32 0, i32 %arg3 %storemerge = zext i32 %narrow to i64 %3 = xor i64 %arg1, 4294967295 %4 = add i64 %3, %arg2 %5 = add i64 %4, %storemerge %6 = and i64 %5, 4294967295 ret i64 %6 }
0
BinRealVul
pci_device_load_1220
pci_device_load
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge25.reg2mem = alloca i32 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %0 = ptrtoint i32* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp ult i32 %2, 3 store i64 4294967274, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_7 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = ptrtoint i64* %sv_1 to i64 %6 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 256) %7 = add i64 %5, -288 store i32 0, i32* %storemerge25.reg2mem br label LBL_2 LBL_2: %storemerge25.reload = load i32, i32* %storemerge25.reg2mem %8 = sext i32 %storemerge25.reload to i64 %9 = add i64 %7, %8 %10 = inttoptr i64 %9 to i8* %11 = load i8, i8* %10, align 1 %12 = add i64 %8, %4 %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = xor i8 %14, %11 %16 = add i64 %12, 256 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = and i8 %18, %15 %20 = add i64 %12, 512 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = sub i8 0, %22 %24 = sub i8 %23, 1 %25 = and i8 %19, %24 %26 = icmp eq i8 %25, 0 store i64 4294967274, i64* %rax.0.reg2mem br i1 %26, label LBL_3, label LBL_7 LBL_3: %27 = add nuw i32 %storemerge25.reload, 1 %28 = icmp ult i32 %27, 256 store i32 %27, i32* %storemerge25.reg2mem br i1 %28, label LBL_2, label LBL_4 LBL_4: %29 = load i64, i64* %sv_0, align 8 store i64 %29, i64* %arg1, align 8 %30 = add i64 %4, 8 %31 = inttoptr i64 %30 to i64* %32 = add i64 %4, 16 %33 = inttoptr i64 %32 to i64* %34 = add i64 %4, 24 %35 = inttoptr i64 %34 to i64* %36 = add i64 %4, 32 %37 = inttoptr i64 %36 to i64* %38 = add i64 %4, 40 %39 = inttoptr i64 %38 to i64* %40 = add i64 %4, 48 %41 = inttoptr i64 %40 to i64* %42 = add i64 %4, 56 %43 = inttoptr i64 %42 to i64* %44 = add i64 %4, 64 %45 = inttoptr i64 %44 to i64* %46 = add i64 %4, 72 %47 = inttoptr i64 %46 to i64* %48 = add i64 %4, 80 %49 = inttoptr i64 %48 to i64* %50 = add i64 %4, 88 %51 = inttoptr i64 %50 to i64* %52 = add i64 %4, 96 %53 = inttoptr i64 %52 to i64* %54 = add i64 %4, 104 %55 = inttoptr i64 %54 to i64* %56 = add i64 %4, 112 %57 = inttoptr i64 %56 to i64* %58 = add i64 %4, 120 %59 = inttoptr i64 %58 to i64* %60 = add i64 %4, 128 %61 = inttoptr i64 %60 to i64* %62 = add i64 %4, 136 %63 = inttoptr i64 %62 to i64* %64 = add i64 %4, 144 %65 = inttoptr i64 %64 to i64* %66 = add i64 %4, 152 %67 = inttoptr i64 %66 to i64* %68 = add i64 %4, 160 %69 = inttoptr i64 %68 to i64* %70 = add i64 %4, 168 %71 = inttoptr i64 %70 to i64* %72 = add i64 %4, 176 %73 = inttoptr i64 %72 to i64* %74 = add i64 %4, 184 %75 = inttoptr i64 %74 to i64* %76 = add i64 %4, 192 %77 = inttoptr i64 %76 to i64* %78 = add i64 %4, 200 %79 = inttoptr i64 %78 to i64* %80 = add i64 %4, 208 %81 = inttoptr i64 %80 to i64* %82 = add i64 %4, 216 %83 = inttoptr i64 %82 to i64* %84 = add i64 %4, 224 %85 = inttoptr i64 %84 to i64* %86 = add i64 %4, 232 %87 = inttoptr i64 %86 to i64* %88 = add i64 %4, 240 %89 = inttoptr i64 %88 to i64* %90 = add i64 %4, 248 %91 = inttoptr i64 %90 to i64* %92 = call i64 @FUNC(i64 %4) %93 = icmp ult i32 %2, 2 store i64 0, i64* %rax.0.reg2mem br i1 %93, label LBL_7, label LBL_5 LBL_5: %94 = add i64 %4, 768 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %95 = call i64 @FUNC(i64 %0) %96 = trunc i64 %95 to i32 %97 = mul i64 %indvars.iv.reload, 4 %98 = add i64 %94, %97 %99 = inttoptr i64 %98 to i32* store i32 %96, i32* %99, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 1, 2, 3, 4, 5, 22, 33, 10, 32, 13, 31, 16, 30, 20, 29, 28, 27, 26, 25, 24, 23, 6, 17, 7, 21, 8, 9, 11, 12, 14, 15, 18, 19, 0 } uselistorder i64* %sv_0, { 1, 0 } uselistorder i32* %storemerge25.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i64 4, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 (i64)* @qemu_get_be32, { 1, 0 } uselistorder label LBL_7, { 1, 2, 0, 3 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
mbfl_filt_conv_html_enc_18087
mbfl_filt_conv_html_enc
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i32 %sv_0.116.reg2mem = alloca i32* %.reg2mem34 = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32* %.reg2mem32 = alloca i32 %storemerge.in15.reg2mem = alloca i64 %.reg2mem = alloca i8 %.lcssa25.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %0 = trunc i64 %arg1 to i32 %sext = mul i64 %arg1, 4294967296 %1 = ashr exact i64 %sext, 32 %2 = icmp ult i32 %0, 60 br i1 %2, label LBL_1, label LBL_3 LBL_1: %3 = ashr exact i64 %sext, 30 %4 = add i64 %3, ptrtoint (i32** @gv_0 to i64) %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 1 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = trunc i64 %1 to i32 %9 = icmp slt i32 %8, 0 %10 = icmp eq i1 %9, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_18, label LBL_19 LBL_3: %11 = ptrtoint i64* %arg2 to i64 %12 = add i64 %11, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = trunc i64 %14 to i32 %16 = icmp slt i32 %15, 0 %17 = icmp eq i1 %16, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %17, label LBL_4, label LBL_19 LBL_4: %18 = load i64, i64* inttoptr (i64 add (i64 ptrtoint (i32** @gv_1 to i64), i64 8) to i64*), align 8 %19 = icmp eq i64 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_5, label LBL_11 LBL_5: %21 = trunc i64 %1 to i32 %22 = icmp eq i32 %21, 34 %23 = icmp eq i1 %22, false store i64 %18, i64* %.lcssa25.reg2mem store i32 1, i32* %.reg2mem32 br i1 %23, label LBL_10, label LBL_7 LBL_6: %24 = add i64 %40, ptrtoint (i32** @gv_1 to i64) %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 8 %27 = icmp eq i32 %26, %21 %28 = icmp eq i1 %27, false %29 = add i32 %.reload33, 1 store i64 %43, i64* %.lcssa25.reg2mem store i32 %29, i32* %.reg2mem32 br i1 %28, label LBL_10, label LBL_7 LBL_7: %.lcssa25.reload = load i64, i64* %.lcssa25.reg2mem %storemerge14 = inttoptr i64 %.lcssa25.reload to i8* %30 = load i8, i8* %storemerge14, align 1 %31 = icmp eq i8 %30, 0 %32 = icmp eq i1 %31, false store i8 %30, i8* %.reg2mem store i64 %.lcssa25.reload, i64* %storemerge.in15.reg2mem store i32 %15, i32* %.pre-phi.reg2mem br i1 %32, label LBL_8, label LBL_17 LBL_8: %.reload = load i8, i8* %.reg2mem %33 = icmp slt i8 %.reload, 0 %34 = icmp eq i1 %33, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %34, label LBL_9, label LBL_19 LBL_9: %storemerge.in15.reload = load i64, i64* %storemerge.in15.reg2mem %35 = add i64 %storemerge.in15.reload, 1 %storemerge = inttoptr i64 %35 to i8* %36 = load i8, i8* %storemerge, align 1 %37 = icmp eq i8 %36, 0 %38 = icmp eq i1 %37, false store i8 %36, i8* %.reg2mem store i64 %35, i64* %storemerge.in15.reg2mem store i32 %15, i32* %.pre-phi.reg2mem br i1 %38, label LBL_8, label LBL_17 LBL_10: %.reload33 = load i32, i32* %.reg2mem32 %39 = sext i32 %.reload33 to i64 %40 = mul i64 %39, 16 %41 = add i64 %40, add (i64 ptrtoint (i32** @gv_1 to i64), i64 8) %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = icmp eq i64 %43, 0 %45 = icmp eq i1 %44, false br i1 %45, label LBL_6, label LBL_11 LBL_11: %46 = ptrtoint i64* %sv_2 to i64 %47 = add i64 %46, -4 %48 = inttoptr i64 %47 to i32* store i32 0, i32* %48, align 4 store i32* %48, i32** %sv_0.0.reg2mem store i64 %1, i64* %sv_1.0.reg2mem br label LBL_12 LBL_12: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem %49 = and i64 %sv_1.0.reload, 4294967295 %narrow = mul nuw i64 %49, 3435973837 %50 = udiv i64 %narrow, 34359738368 %51 = mul nsw i64 %50, -10 %52 = add nsw i64 %51, %sv_1.0.reload %53 = and i64 %52, 4294967295 %54 = add i64 %53, ptrtoint ([11 x i8]* @gv_2 to i64) %55 = inttoptr i64 %54 to i8* %56 = load i8, i8* %55, align 1 %57 = ptrtoint i32* %sv_0.0.reload to i64 %58 = add i64 %57, -4 %59 = inttoptr i64 %58 to i32* %60 = sext i8 %56 to i32 store i32 %60, i32* %59, align 4 %61 = icmp ult i64 %narrow, 34359738368 %62 = icmp eq i1 %61, false store i32* %59, i32** %sv_0.0.reg2mem store i64 %50, i64* %sv_1.0.reg2mem br i1 %62, label LBL_12, label LBL_13 LBL_13: %63 = icmp eq i8 %56, 0 %64 = icmp eq i1 %63, false store i32 %60, i32* %.reg2mem34 store i32* %59, i32** %sv_0.116.reg2mem br i1 %64, label LBL_14, label LBL_16 LBL_14: %.reload35 = load i32, i32* %.reg2mem34 %65 = icmp slt i32 %.reload35, 0 %66 = icmp eq i1 %65, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %66, label LBL_15, label LBL_19 LBL_15: %sv_0.116.reload = load i32*, i32** %sv_0.116.reg2mem %67 = ptrtoint i32* %sv_0.116.reload to i64 %68 = add i64 %67, 4 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = icmp eq i32 %70, 0 %72 = icmp eq i1 %71, false store i32 %70, i32* %.reg2mem34 store i32* %69, i32** %sv_0.116.reg2mem br i1 %72, label LBL_14, label LBL_16 LBL_16: %.pre = load i64, i64* %13, align 8 %.pre21 = trunc i64 %.pre to i32 store i32 %.pre21, i32* %.pre-phi.reg2mem br label LBL_17 LBL_17: %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %73 = icmp slt i32 %.pre-phi.reload, 0 %74 = icmp eq i1 %73, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %74, label LBL_18, label LBL_19 LBL_18: %75 = and i64 %1, 4294967295 store i64 %75, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i64 %43, { 1, 0 } uselistorder i32 %21, { 1, 0 } uselistorder i64 %1, { 1, 0, 2, 3 } uselistorder i64 %sext, { 1, 0 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.in15.reg2mem, { 2, 0, 1 } uselistorder i32* %.reg2mem32, { 0, 2, 1 } uselistorder i32** %sv_0.0.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem34, { 2, 0, 1 } uselistorder i32** %sv_0.116.reg2mem, { 2, 0, 1 } uselistorder i32* %.pre-phi.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 3, 2, 1, 4, 5 } uselistorder i8 0, { 0, 3, 2, 1 } uselistorder i64 ptrtoint (i32** @gv_1 to i64), { 1, 0 } uselistorder i64 add (i64 ptrtoint (i32** @gv_1 to i64), i64 8), { 1, 0 } uselistorder i64 4294967295, { 7, 2, 1, 5, 6, 0, 3, 4 } uselistorder i1 false, { 4, 6, 5, 2, 7, 11, 9, 8, 3, 10, 0, 1, 12, 13 } uselistorder i32 0, { 0, 2, 1, 3, 4, 5 } uselistorder label LBL_19, { 5, 2, 1, 0, 3, 4 } uselistorder label LBL_17, { 2, 0, 1 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
X264_close_1514
X264_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = call i64 @FUNC(i64 %1) %3 = icmp eq i64 %1, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %1) br label LBL_2 LBL_2: ret i64 0 }
0
BinRealVul
rd_alloc_device_8158
rd_alloc_device
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = call i64 @FUNC(i64 8, i64 0) %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %3, i64 %4, i64 %2, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %9 = ptrtoint i64* %arg1 to i64 %10 = inttoptr i64 %5 to i64* store i64 %9, i64* %10, align 8 store i64 %5, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } }
0
BinRealVul
simple_varargs_5070
simple_varargs
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %4 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 4198758) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %7 = zext i1 %6 to i64 %8 = call i64 @FUNC(i64 %7) %9 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 1, i64 %4, i64 %3, i64 %2, i64 %1) store i64 %9, i64* %sv_0, align 8 %10 = call i64 @FUNC(i64* nonnull %sv_0, i64 %9) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 1 %13 = zext i1 %12 to i64 %14 = call i64 @FUNC(i64 %13) %15 = load i64, i64* %sv_0, align 8 %16 = call i64 @FUNC(i64 %15) ret i64 %16 uselistorder i64* %sv_0, { 1, 0, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @g_assert, { 1, 0 } uselistorder i32 1, { 4, 5, 2, 3, 1, 0 } }
0
BinRealVul
jpc_ms_create_10889
jpc_ms_create
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 24) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = inttoptr i64 %0 to i32* %4 = trunc i64 %arg1 to i32 store i32 %4, i32* %3, align 4 %5 = add i64 %0, 4 %6 = inttoptr i64 %5 to i32* store i32 0, i32* %6, align 4 %7 = load i32, i32* %3, align 4 %8 = zext i32 %7 to i64 %9 = call i64 @FUNC(i64 %8) %10 = add i64 %9, 8 %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 %13 = add i64 %0, 16 %14 = inttoptr i64 %13 to i64* %15 = call i64* @memset(i64* %14, i32 0, i32 4) store i64 %0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 16, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder i1 false, { 2, 4, 3, 0, 1 } uselistorder i32 1, { 0, 4, 2, 3, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
git_tree__parse_12855
git_tree__parse
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp slt i32 %3, 0 %5 = icmp eq i1 %4, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_9 LBL_1: %6 = call i64 @FUNC(i64 %1) store i64 %6, i64* %sv_1, align 8 %7 = call i64 @FUNC(i64 %1) %8 = add i64 %7, %6 %9 = add i64 %1, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = call i64 @FUNC(i64 %11, i64 10) %13 = load i64, i64* %10, align 8 %14 = call i64 @FUNC(i64 %13) %15 = icmp ugt i64 %8, %6 store i64 0, i64* %rax.0.reg2mem br i1 %15, label LBL_2, label LBL_9 LBL_2: %16 = bitcast i32* %sv_0 to i64* store i64 %6, i64* %.reg2mem br label LBL_3 LBL_3: %.reload = load i64, i64* %.reg2mem %17 = call i64 @FUNC(i64* nonnull %16, i64 %.reload, i64* nonnull %sv_1) %18 = trunc i64 %17 to i32 %19 = icmp slt i32 %18, 0 br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = load i64, i64* %sv_1, align 8 %21 = icmp eq i64 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_6, label LBL_5 LBL_5: %23 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 0) store i64 %23, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %24 = sub i64 %8, %20 %25 = inttoptr i64 %20 to i64* %26 = trunc i64 %24 to i32 %27 = call i64* @memchr(i64* %25, i32 0, i32 %26) %28 = icmp eq i64* %27, null %29 = icmp eq i1 %28, false br i1 %29, label LBL_8, label LBL_7 LBL_7: %30 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i64 0) store i64 %30, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %31 = ptrtoint i64* %27 to i64 %32 = load i64, i64* %sv_1, align 8 %33 = sub i64 %31, %32 %34 = load i64, i64* %10, align 8 %35 = call i64 @FUNC(i64 %34) %36 = call i64 @FUNC(i64 %35) %37 = load i32, i32* %sv_0, align 4 %38 = inttoptr i64 %35 to i32* store i32 %37, i32* %38, align 4 %39 = add i64 %35, 8 %40 = inttoptr i64 %39 to i64* store i64 %33, i64* %40, align 8 %41 = load i64, i64* %sv_1, align 8 %42 = add i64 %35, 16 %43 = inttoptr i64 %42 to i64* store i64 %41, i64* %43, align 8 %44 = load i64, i64* %sv_1, align 8 %45 = add i64 %33, 1 %46 = add i64 %45, %44 %47 = add i64 %35, 24 %48 = inttoptr i64 %47 to i64* store i64 %46, i64* %48, align 8 %49 = load i64, i64* %sv_1, align 8 %50 = add i64 %33, 21 %51 = add i64 %50, %49 store i64 %51, i64* %sv_1, align 8 %52 = icmp ugt i64 %8, %51 store i64 %51, i64* %.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %52, label LBL_3, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %27, { 1, 0 } uselistorder i64 %20, { 1, 0, 2 } uselistorder i64 %8, { 2, 1, 0 } uselistorder i64 %6, { 0, 2, 1, 3 } uselistorder i64* %sv_1, { 1, 2, 3, 4, 5, 6, 0, 7 } uselistorder i64 %1, { 0, 2, 1, 3 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 5, 2, 3 } uselistorder i64 (i8*, i64)* @tree_error, { 1, 0 } uselistorder i64 0, { 0, 10, 4, 5, 11, 6, 7, 13, 1, 14, 15, 8, 9, 2, 3, 12 } uselistorder label LBL_9, { 0, 3, 4, 1, 2 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
vpc_create_7378
vpc_create
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i32 %sv_0.1.lcssa.reg2mem = alloca i64 %sv_1.07.reg2mem = alloca i64 %sv_0.19.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_2 = alloca i128, align 8 %sv_3 = alloca i8, align 1 %sv_4 = alloca i128, align 8 %sv_5 = alloca i64, align 8 %0 = icmp eq i64* %arg2, null store i64 0, i64* %sv_0.1.lcssa.reg2mem br i1 %0, label LBL_6, label LBL_1 LBL_1: %1 = ptrtoint i64* %arg2 to i64 store i64 0, i64* %sv_0.19.reg2mem store i64 %1, i64* %sv_1.07.reg2mem br label LBL_5 LBL_2: %2 = inttoptr i64 %17 to i8* %3 = call i32 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem br i1 %5, label LBL_4, label LBL_3 LBL_3: %6 = add i64 %sv_1.07.reload, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i32 %8, 511 %10 = icmp slt i32 %8, 0 %11 = select i1 %10, i32 %9, i32 %8 %12 = ashr i32 %11, 9 %13 = sext i32 %12 to i64 store i64 %13, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %14 = add i64 %sv_1.07.reload, 16 %15 = icmp eq i64 %14, 0 store i64 %sv_0.0.reload, i64* %sv_0.19.reg2mem store i64 %14, i64* %sv_1.07.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %15, label LBL_6, label LBL_5 LBL_5: %sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem %sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem %16 = inttoptr i64 %sv_1.07.reload to i64* %17 = load i64, i64* %16, align 8 %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 %sv_0.19.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %19, label LBL_2, label LBL_6 LBL_6: %20 = inttoptr i64 %arg1 to i8* %21 = call i32 (i8*, i32, ...) @open(i8* %20, i32 577) %22 = icmp slt i32 %21, 0 %23 = icmp eq i1 %22, false store i64 4294967291, i64* %rax.0.reg2mem br i1 %23, label LBL_7, label LBL_18 LBL_7: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %24 = bitcast i128* %sv_2 to i64* %25 = bitcast i8* %sv_3 to i64* %26 = bitcast i128* %sv_4 to i64* %27 = call i64 @FUNC(i64 %sv_0.1.lcssa.reload, i64* nonnull %24, i64* nonnull %25, i64* nonnull %26) %28 = trunc i64 %27 to i32 %29 = icmp eq i32 %28, 0 store i64 4294967269, i64* %rax.0.reg2mem br i1 %29, label LBL_8, label LBL_18 LBL_8: %30 = ptrtoint i64* %sv_5 to i64 %31 = load i128, i128* %sv_2, align 8 %32 = load i8, i8* %sv_3, align 1 %33 = urem i128 %31, 65536 %34 = zext i8 %32 to i128 %35 = mul nuw nsw i128 %33, %34 %36 = load i128, i128* %sv_4, align 8 %37 = urem i128 %36, 256 %38 = mul nuw nsw i128 %35, %37 %39 = trunc i128 %38 to i64 %40 = call i64* @memset(i64* nonnull %sv_5, i32 0, i32 1024) %41 = call i64* @memcpy(i64* nonnull %sv_5, i64* bitcast ([9 x i8]* @gv_1 to i64*), i32 8) %42 = add i64 %30, 8 %43 = inttoptr i64 %42 to i64* %44 = call i64* @memcpy(i64* %43, i64* bitcast ([5 x i8]* @gv_2 to i64*), i32 4) %45 = add i64 %30, 12 %46 = inttoptr i64 %45 to i64* %47 = call i64* @memcpy(i64* nonnull %46, i64* bitcast ([5 x i8]* @gv_3 to i64*), i32 4) %48 = call i64 @FUNC(i64 2) %49 = trunc i64 %48 to i32 %50 = add i64 %30, 16 %51 = inttoptr i64 %50 to i32* store i32 %49, i32* %51, align 8 %52 = call i64 @FUNC(i64 65536) %53 = trunc i64 %52 to i32 %54 = add i64 %30, 20 %55 = inttoptr i64 %54 to i32* store i32 %53, i32* %55, align 4 %56 = call i64 @FUNC(i64 512) %57 = add i64 %30, 24 %58 = inttoptr i64 %57 to i64* store i64 %56, i64* %58, align 8 %59 = call i32 @time(i32* null) %60 = zext i32 %59 to i64 %61 = call i64 @FUNC(i64 %60) %62 = trunc i64 %61 to i32 %63 = add i64 %30, 32 %64 = inttoptr i64 %63 to i32* store i32 %62, i32* %64, align 8 %65 = call i64 @FUNC(i64 5) %66 = trunc i64 %65 to i16 %67 = add i64 %30, 36 %68 = inttoptr i64 %67 to i16* store i16 %66, i16* %68, align 4 %69 = call i64 @FUNC(i64 3) %70 = trunc i64 %69 to i16 %71 = add i64 %30, 38 %72 = inttoptr i64 %71 to i16* store i16 %70, i16* %72, align 2 %73 = mul i64 %39, 512 %74 = call i64 @FUNC(i64 %73) %75 = add i64 %30, 40 %76 = inttoptr i64 %75 to i64* store i64 %74, i64* %76, align 8 %77 = call i64 @FUNC(i64 %73) %78 = add i64 %30, 48 %79 = inttoptr i64 %78 to i64* store i64 %77, i64* %79, align 8 %80 = load i128, i128* %sv_2, align 8 %81 = trunc i128 %80 to i64 %82 = urem i64 %81, 65536 %83 = call i64 @FUNC(i64 %82) %84 = trunc i64 %83 to i16 %85 = add i64 %30, 56 %86 = inttoptr i64 %85 to i16* store i16 %84, i16* %86, align 8 %87 = load i8, i8* %sv_3, align 1 %88 = add i64 %30, 58 %89 = inttoptr i64 %88 to i8* store i8 %87, i8* %89, align 2 %90 = load i128, i128* %sv_4, align 8 %91 = trunc i128 %90 to i8 %92 = add i64 %30, 59 %93 = inttoptr i64 %92 to i8* store i8 %91, i8* %93, align 1 %94 = call i64 @FUNC(i64 2) %95 = trunc i64 %94 to i32 %96 = add i64 %30, 60 %97 = inttoptr i64 %96 to i32* store i32 %95, i32* %97, align 4 %98 = call i64 @FUNC(i64* nonnull %sv_5, i64 512) %99 = and i64 %98, 4294967295 %100 = call i64 @FUNC(i64 %99) %101 = trunc i64 %100 to i32 %102 = add i64 %30, 64 %103 = inttoptr i64 %102 to i32* store i32 %101, i32* %103, align 8 %104 = call i32 @write(i32 %21, i64* nonnull %sv_5, i32 512) %105 = icmp eq i32 %104, 512 store i64 4294967291, i64* %rax.0.reg2mem br i1 %105, label LBL_9, label LBL_18 LBL_9: %106 = trunc i128 %38 to i32 %.lhs.trunc = add i32 %106, 4096 %107 = udiv i32 %.lhs.trunc, 4096 %108 = mul i32 %107, 4 %109 = add nuw nsw i32 %108, 2047 %110 = and i32 %109, 8388096 %111 = call i32 @lseek(i32 %21, i32 %110, i32 0) %112 = icmp slt i32 %111, 0 %113 = icmp eq i1 %112, false store i64 4294967291, i64* %rax.0.reg2mem br i1 %113, label LBL_10, label LBL_18 LBL_10: %114 = call i32 @write(i32 %21, i64* nonnull %sv_5, i32 512) %115 = icmp eq i32 %114, 512 store i64 4294967291, i64* %rax.0.reg2mem br i1 %115, label LBL_11, label LBL_18 LBL_11: %116 = call i32 @lseek(i32 %21, i32 1536, i32 0) %117 = icmp slt i32 %116, 0 %118 = icmp eq i1 %117, false store i64 4294967291, i64* %rax.0.reg2mem br i1 %118, label LBL_12, label LBL_18 LBL_12: %119 = call i64* @memset(i64* nonnull %sv_5, i32 255, i32 512) %narrow = add nuw nsw i32 %108, 511 %120 = udiv i32 %narrow, 512 %121 = zext i32 %120 to i64 %122 = icmp ult i32 %narrow, 512 store i32 0, i32* %storemerge6.reg2mem br i1 %122, label LBL_15, label LBL_13 LBL_13: %123 = call i32 @write(i32 %21, i64* nonnull %sv_5, i32 512) %124 = icmp eq i32 %123, 512 store i64 4294967291, i64* %rax.0.reg2mem br i1 %124, label LBL_14, label LBL_18 LBL_14: %storemerge6.reload = load i32, i32* %storemerge6.reg2mem %125 = add i32 %storemerge6.reload, 1 %126 = sext i32 %125 to i64 %127 = icmp ugt i64 %121, %126 store i32 %125, i32* %storemerge6.reg2mem br i1 %127, label LBL_13, label LBL_15 LBL_15: %.zext = zext i32 %107 to i64 %128 = call i64* @memset(i64* nonnull %sv_5, i32 0, i32 1024) %129 = call i64* @memcpy(i64* nonnull %sv_5, i64* bitcast ([9 x i8]* @gv_4 to i64*), i32 8) %130 = call i64 @FUNC(i64 4294967295) store i64 %130, i64* %43, align 8 %131 = call i64 @FUNC(i64 1536) %132 = inttoptr i64 %50 to i64* store i64 %131, i64* %132, align 8 %133 = call i64 @FUNC(i64 65536) %134 = trunc i64 %133 to i32 %135 = inttoptr i64 %57 to i32* store i32 %134, i32* %135, align 8 %136 = call i64 @FUNC(i64 2097152) %137 = trunc i64 %136 to i32 %138 = add i64 %30, 28 %139 = inttoptr i64 %138 to i32* store i32 %137, i32* %139, align 4 %140 = call i64 @FUNC(i64 %.zext) %141 = trunc i64 %140 to i32 store i32 %141, i32* %64, align 8 %142 = call i64 @FUNC(i64* nonnull %sv_5, i64 1024) %143 = and i64 %142, 4294967295 %144 = call i64 @FUNC(i64 %143) %145 = trunc i64 %144 to i32 %146 = inttoptr i64 %67 to i32* store i32 %145, i32* %146, align 4 %147 = call i32 @lseek(i32 %21, i32 512, i32 0) %148 = icmp slt i32 %147, 0 %149 = icmp eq i1 %148, false store i64 4294967291, i64* %rax.0.reg2mem br i1 %149, label LBL_16, label LBL_18 LBL_16: %150 = call i32 @write(i32 %21, i64* nonnull %sv_5, i32 1024) %151 = icmp eq i32 %150, 1024 store i64 4294967291, i64* %rax.0.reg2mem br i1 %151, label LBL_17, label LBL_18 LBL_17: %152 = call i32 @close(i32 %21) 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 i32 %108, { 1, 0 } uselistorder i32 %107, { 1, 0 } uselistorder i64 %73, { 1, 0 } uselistorder i64 %30, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 14 } uselistorder i64 %17, { 1, 0 } uselistorder i64 %sv_1.07.reload, { 1, 0, 2 } uselistorder i64* %sv_5, { 2, 3, 0, 4, 5, 6, 7, 8, 9, 1, 10, 11 } uselistorder i128* %sv_4, { 1, 0, 2 } uselistorder i8* %sv_3, { 1, 0, 2 } uselistorder i128* %sv_2, { 1, 0, 2 } uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 10, 2, 3, 1, 4, 5, 6, 7, 8, 9 } uselistorder i32 (i32, i32, i32)* @lseek, { 1, 2, 0 } uselistorder i32 4096, { 1, 0 } uselistorder i32 (i32, i64*, i32)* @write, { 2, 0, 1, 3 } uselistorder i32 512, { 6, 2, 5, 0, 1, 7, 3, 8, 4, 9 } uselistorder i64 4294967295, { 0, 2, 1 } uselistorder i64 (i64*, i64)* @vpc_checksum, { 1, 0 } uselistorder i64 (i64)* @be16_to_cpu, { 2, 1, 0 } uselistorder i64 (i64)* @be64_to_cpu, { 4, 3, 2, 1, 0 } uselistorder i64 512, { 1, 0, 2 } uselistorder i64 65536, { 1, 0, 2 } uselistorder i64 (i64)* @be32_to_cpu, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 3, 2, 1, 0 } uselistorder i64* (i64*, i32, i32)* @memset, { 2, 1, 0 } uselistorder i64 4294967291, { 1, 2, 0, 3, 4, 5, 6, 7 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_18, { 9, 1, 2, 0, 3, 4, 5, 6, 7, 8 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_6, { 1, 0, 2 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
qemu_peek_buffer_3346
qemu_peek_buffer
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i1 %storemerge3.lcssa.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 23, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %6 = icmp ult i64 %arg4, 1024 br i1 %6, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %sext = mul i64 %arg3, 4294967296 %7 = ashr exact i64 %sext, 32 %8 = sub i64 1024, %arg4 %9 = icmp ugt i64 %7, %8 br i1 %9, label LBL_5, label LBL_6 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0)) br label LBL_6 LBL_6: %10 = trunc i64 %1 to i32 %11 = trunc i64 %arg4 to i32 %12 = add i32 %10, %11 %13 = add i64 %2, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = sub i32 %15, %12 %17 = trunc i64 %7 to i32 %18 = icmp slt i32 %16, %17 store i32 %16, i32* %storemerge3.lcssa.reg2mem store i1 false, i1* %.lcssa.reg2mem br i1 %18, label LBL_7, label LBL_10 LBL_7: %19 = call i64 @FUNC(i64 %2) %20 = trunc i64 %19 to i32 %21 = icmp slt i32 %20, 1 store i32 %16, i32* %storemerge3.lcssa.reg2mem store i1 true, i1* %.lcssa.reg2mem br i1 %21, label LBL_10, label LBL_9 LBL_8: %22 = call i64 @FUNC(i64 %2) %23 = trunc i64 %22 to i32 %24 = icmp slt i32 %23, 1 store i32 %26, i32* %storemerge3.lcssa.reg2mem store i1 true, i1* %.lcssa.reg2mem br i1 %24, label LBL_10, label LBL_9 LBL_9: %25 = load i32, i32* %14, align 4 %26 = sub i32 %25, %12 %27 = icmp slt i32 %26, %17 store i32 %26, i32* %storemerge3.lcssa.reg2mem store i1 false, i1* %.lcssa.reg2mem br i1 %27, label LBL_8, label LBL_10 LBL_10: %storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem %28 = icmp eq i32 %storemerge3.lcssa.reload, 0 %29 = icmp slt i32 %storemerge3.lcssa.reload, 0 %30 = icmp eq i1 %29, false %31 = icmp eq i1 %28, false %32 = icmp eq i1 %30, %31 store i64 0, i64* %storemerge.reg2mem br i1 %32, label LBL_11, label LBL_12 LBL_11: %.lcssa.reload = load i1, i1* %.lcssa.reg2mem %33 = sext i32 %storemerge3.lcssa.reload to i64 %spec.select = select i1 %.lcssa.reload, i64 %33, i64 %7 %34 = trunc i64 %spec.select to i32 %35 = add i64 %2, 8 %36 = sext i32 %12 to i64 %37 = add i64 %35, %36 %38 = inttoptr i64 %37 to i64* %39 = call i64* @memcpy(i64* %arg2, i64* %38, i32 %34) %40 = and i64 %spec.select, 4294967295 store i64 %40, i64* %storemerge.reg2mem br label LBL_12 LBL_12: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %spec.select, { 1, 0 } uselistorder i32 %storemerge3.lcssa.reload, { 2, 1, 0 } uselistorder i32 %26, { 0, 2, 1 } uselistorder i32 %17, { 1, 0 } uselistorder i64 %7, { 1, 2, 0 } uselistorder i64 %2, { 1, 2, 0, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @qemu_fill_buffer, { 1, 0 } uselistorder i1 false, { 3, 2, 0, 1 } uselistorder i64 1024, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 2, 1, 0, 3 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
shift_arg_pages_10934
shift_arg_pages
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = add i64 %0, 24 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = sub i64 %0, %arg2 %8 = sub i64 %6, %arg2 store i64 %8, i64* %sv_0, align 8 %9 = icmp ule i64 %7, %8 %10 = icmp ne i1 %9, true %11 = zext i1 %10 to i64 %12 = call i64 @FUNC(i64 %11) %13 = call i64 @FUNC(i64 %3, i64 %7) %14 = icmp eq i64 %13, %0 store i64 4294967282, i64* %rax.0.reg2mem br i1 %14, label LBL_1, label LBL_11 LBL_1: %15 = add i64 %0, 16 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = call i64 @FUNC(i64 %0, i64 %7, i64 %6, i64 %17, i64 0) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 store i64 4294967284, i64* %rax.0.reg2mem br i1 %20, label LBL_2, label LBL_11 LBL_2: %21 = sub i64 %6, %0 %22 = call i64 @FUNC(i64 %0, i64 %0, i64 %0, i64 %7, i64 %21, i64 0) %23 = icmp eq i64 %21, %22 store i64 4294967284, i64* %rax.0.reg2mem br i1 %23, label LBL_3, label LBL_11 LBL_3: %24 = call i64 @FUNC() %25 = call i64 @FUNC(i64* nonnull %sv_0, i64 %3, i64 0) %26 = load i64, i64* %sv_0, align 8 %27 = icmp ugt i64 %26, %0 %28 = add i64 %0, 32 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = icmp eq i64 %30, 0 br i1 %27, label LBL_4, label LBL_7 LBL_4: store i64 0, i64* %storemerge.reg2mem br i1 %31, label LBL_6, label LBL_5 LBL_5: %32 = inttoptr i64 %30 to i64* %33 = load i64, i64* %32, align 8 store i64 %33, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem %34 = call i64 @FUNC(i64* nonnull %sv_0, i64 %26, i64 %6, i64 %26, i64 %storemerge.reload) br label LBL_10 LBL_7: store i64 0, i64* %storemerge1.reg2mem br i1 %31, label LBL_9, label LBL_8 LBL_8: %35 = inttoptr i64 %30 to i64* %36 = load i64, i64* %35, align 8 store i64 %36, i64* %storemerge1.reg2mem br label LBL_9 LBL_9: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %37 = call i64 @FUNC(i64* nonnull %sv_0, i64 %0, i64 %6, i64 %26, i64 %storemerge1.reload) br label LBL_10 LBL_10: %38 = load i64, i64* %sv_0, align 8 %39 = call i64 @FUNC(i64* nonnull %sv_0, i64 %38, i64 %6) %40 = load i64, i64* %16, align 8 %41 = load i64, i64* %sv_0, align 8 %42 = call i64 @FUNC(i64 %0, i64 %7, i64 %41, i64 %40, i64 0) store i64 0, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %26, { 2, 0, 1, 3 } uselistorder i64 %21, { 1, 0 } uselistorder i64 %7, { 0, 1, 2, 4, 3 } uselistorder i64 %6, { 1, 0, 2, 5, 3, 4 } uselistorder i64* %sv_0, { 4, 0, 5, 1, 2, 6, 3, 7 } uselistorder i64 %0, { 1, 0, 2, 3, 5, 4, 6, 12, 8, 7, 9, 10, 11, 13 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64*, i64, i64, i64, i64)* @free_pgd_range, { 1, 0 } uselistorder i64 (i64, i64, i64, i64, i64)* @vma_adjust, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_11, { 3, 0, 1, 2 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
smc_wr_tx_process_cqe_7108
smc_wr_tx_process_cqe
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %sv_0 = alloca i64, align 8 %3 = add i64 %2, 16 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = trunc i64 %1 to i32 %9 = icmp eq i32 %8, 1 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = inttoptr i64 %7 to i32* %12 = add i64 %2, 4 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 %. = zext i1 %15 to i32 store i32 %., i32* %11, align 4 %16 = call i64 @FUNC(i64 %7) store i64 %16, i64* %rax.0.reg2mem br label LBL_9 LBL_2: %17 = add i64 %2, 8 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = call i64 @FUNC(i64 %7, i64 %19) %21 = trunc i64 %20 to i32 %22 = add i64 %7, 16 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = zext i32 %24 to i64 %26 = icmp eq i32 %24, %21 store i64 %25, i64* %rax.0.reg2mem br i1 %26, label LBL_9, label LBL_3 LBL_3: %27 = add i64 %7, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = and i64 %20, 4294967295 %31 = mul nuw nsw i64 %30, 24 %32 = add i64 %29, %31 %33 = add i64 %2, 4 %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 4 %36 = inttoptr i64 %32 to i32* store i32 %35, i32* %36, align 4 %37 = load i64, i64* %28, align 8 %38 = or i64 %31, 4 %39 = add i64 %37, %38 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = icmp eq i32 %41, 0 store i64 %37, i64* %.reg2mem br i1 %42, label LBL_5, label LBL_4 LBL_4: %43 = add i64 %7, 40 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = mul i64 %30, 4 %47 = add i64 %45, %46 %48 = call i64 @FUNC(i64 %47) %.pre = load i64, i64* %28, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_5 LBL_5: %.reload = load i64, i64* %.reg2mem %49 = add i64 %.reload, %31 %50 = inttoptr i64 %49 to i64* %51 = call i64* @memcpy(i64* nonnull %sv_0, i64* %50, i32 24) %52 = load i64, i64* %28, align 8 %53 = add i64 %52, %31 %54 = inttoptr i64 %53 to i64* %55 = call i64* @memset(i64* %54, i32 0, i32 24) %56 = add i64 %7, 32 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = mul i64 %20, 4 %60 = and i64 %59, 17179869180 %61 = add i64 %58, %60 %62 = inttoptr i64 %61 to i64* %63 = call i64* @memset(i64* %62, i32 0, i32 4) %64 = add i64 %7, 24 %65 = inttoptr i64 %64 to i64* %66 = load i64, i64* %65, align 8 %67 = call i64 @FUNC(i64 %30, i64 %66) %68 = trunc i64 %67 to i32 %69 = icmp eq i32 %68, 0 store i64 %67, i64* %rax.0.reg2mem br i1 %69, label LBL_9, label LBL_6 LBL_6: %70 = load i32, i32* %34, align 4 %71 = icmp eq i32 %70, 0 br i1 %71, label LBL_8, label LBL_7 LBL_7: %72 = call i64 @FUNC(i64 %7) br label LBL_8 LBL_8: %73 = add i64 %7, 48 %74 = call i64 @FUNC(i64 %73) store i64 %74, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %31, { 0, 1, 3, 2 } uselistorder i64 %30, { 1, 0, 2 } uselistorder i64* %28, { 1, 0, 2, 3 } uselistorder i64 %7, { 0, 1, 2, 3, 4, 5, 7, 8, 6, 9 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 } uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 } uselistorder i64 24, { 1, 0 } uselistorder i32 0, { 2, 3, 0, 1, 4, 5 } uselistorder label LBL_9, { 2, 0, 1, 3 } }
0
BinRealVul
mov_get_h264_codec_tag_75
mov_get_h264_codec_tag
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %1 to i32 %5 = add i64 %2, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 %9 = icmp slt i32 %7, 0 %10 = icmp eq i1 %9, false %11 = icmp eq i1 %8, false %12 = icmp eq i1 %10, %11 %13 = add i64 %2, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %3, i64 %15) %17 = and i64 %16, 4294967295 %18 = call i128 @FUNC(i64 %17) %19 = call i32 @FUNC(i128 %18) %20 = icmp eq i32 %4, 0 %21 = icmp eq i1 %20, false %spec.select = select i1 %21, i32 %4, i32 1768126049 %22 = add i64 %15, 8 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = icmp eq i32 %24, 1 %26 = icmp eq i1 %25, false br i1 %26, label LBL_17, label LBL_1 LBL_1: %27 = add i64 %15, 12 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = icmp eq i32 %29, 960 %31 = icmp eq i1 %30, false br i1 %31, label LBL_9, label LBL_2 LBL_2: %32 = add i64 %15, 16 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = icmp eq i32 %34, 720 %36 = icmp eq i1 %35, false br i1 %36, label LBL_9, label LBL_3 LBL_3: %37 = icmp eq i1 %12, false %38 = icmp eq i1 %37, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %38, label LBL_41, label LBL_4 LBL_4: %39 = icmp eq i32 %19, 24 %40 = icmp eq i1 %39, false store i32 1882548577, i32* %sv_0.1.reg2mem br i1 %40, label LBL_5, label LBL_41 LBL_5: %41 = icmp eq i32 %19, 25 %42 = icmp eq i1 %41, false store i32 1899325793, i32* %sv_0.1.reg2mem br i1 %42, label LBL_6, label LBL_41 LBL_6: %43 = icmp eq i32 %19, 30 %44 = icmp eq i1 %43, false store i32 1882548577, i32* %sv_0.1.reg2mem br i1 %44, label LBL_7, label LBL_41 LBL_7: %45 = icmp eq i32 %19, 50 %46 = icmp eq i1 %45, false store i32 1899325793, i32* %sv_0.1.reg2mem br i1 %46, label LBL_8, label LBL_41 LBL_8: %47 = icmp eq i32 %19, 60 %48 = icmp eq i1 %47, false %spec.select1 = select i1 %48, i32 %spec.select, i32 1882548577 store i32 %spec.select1, i32* %sv_0.1.reg2mem br label LBL_41 LBL_9: %49 = icmp eq i32 %29, 1440 %50 = icmp eq i1 %49, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %50, label LBL_41, label LBL_10 LBL_10: %51 = add i64 %15, 16 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = icmp eq i32 %53, 1080 %55 = icmp eq i1 %54, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %55, label LBL_41, label LBL_11 LBL_11: %56 = icmp eq i1 %12, false %57 = icmp eq i1 %56, false br i1 %57, label LBL_15, label LBL_12 LBL_12: %58 = icmp eq i32 %19, 24 %59 = icmp eq i1 %58, false store i32 859138401, i32* %sv_0.1.reg2mem br i1 %59, label LBL_13, label LBL_41 LBL_13: %60 = icmp eq i32 %19, 25 %61 = icmp eq i1 %60, false store i32 842361185, i32* %sv_0.1.reg2mem br i1 %61, label LBL_14, label LBL_41 LBL_14: %62 = icmp eq i32 %19, 30 %63 = icmp eq i1 %62, false %spec.select2 = select i1 %63, i32 %spec.select, i32 859138401 store i32 %spec.select2, i32* %sv_0.1.reg2mem br label LBL_41 LBL_15: %64 = icmp eq i32 %19, 50 %65 = icmp eq i1 %64, false store i32 892692833, i32* %sv_0.1.reg2mem br i1 %65, label LBL_16, label LBL_41 LBL_16: %66 = icmp eq i32 %19, 60 %67 = icmp eq i1 %66, false %spec.select3 = select i1 %67, i32 %spec.select, i32 909470049 store i32 %spec.select3, i32* %sv_0.1.reg2mem br label LBL_41 LBL_17: %68 = icmp eq i32 %24, 2 %69 = icmp eq i1 %68, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %69, label LBL_41, label LBL_18 LBL_18: %70 = add i64 %15, 12 %71 = inttoptr i64 %70 to i32* %72 = load i32, i32* %71, align 4 %73 = icmp eq i32 %72, 1280 %74 = icmp eq i1 %73, false br i1 %74, label LBL_26, label LBL_19 LBL_19: %75 = add i64 %15, 16 %76 = inttoptr i64 %75 to i32* %77 = load i32, i32* %76, align 4 %78 = icmp eq i32 %77, 720 %79 = icmp eq i1 %78, false br i1 %79, label LBL_26, label LBL_20 LBL_20: %80 = icmp eq i1 %12, false %81 = icmp eq i1 %80, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %81, label LBL_41, label LBL_21 LBL_21: %82 = icmp eq i32 %19, 24 %83 = icmp eq i1 %82, false store i32 1882286433, i32* %sv_0.1.reg2mem br i1 %83, label LBL_22, label LBL_41 LBL_22: %84 = icmp eq i32 %19, 25 %85 = icmp eq i1 %84, false store i32 1899063649, i32* %sv_0.1.reg2mem br i1 %85, label LBL_23, label LBL_41 LBL_23: %86 = icmp eq i32 %19, 30 %87 = icmp eq i1 %86, false store i32 1882286433, i32* %sv_0.1.reg2mem br i1 %87, label LBL_24, label LBL_41 LBL_24: %88 = icmp eq i32 %19, 50 %89 = icmp eq i1 %88, false store i32 1899063649, i32* %sv_0.1.reg2mem br i1 %89, label LBL_25, label LBL_41 LBL_25: %90 = icmp eq i32 %19, 60 %91 = icmp eq i1 %90, false %spec.select4 = select i1 %91, i32 %spec.select, i32 1882286433 store i32 %spec.select4, i32* %sv_0.1.reg2mem br label LBL_41 LBL_26: %92 = icmp eq i32 %72, 1920 %93 = icmp eq i1 %92, false br i1 %93, label LBL_34, label LBL_27 LBL_27: %94 = add i64 %15, 16 %95 = inttoptr i64 %94 to i32* %96 = load i32, i32* %95, align 4 %97 = icmp eq i32 %96, 1080 %98 = icmp eq i1 %97, false br i1 %98, label LBL_34, label LBL_28 LBL_28: %99 = icmp eq i1 %12, false %100 = icmp eq i1 %99, false br i1 %100, label LBL_32, label LBL_29 LBL_29: %101 = icmp eq i32 %19, 24 %102 = icmp eq i1 %101, false store i32 858876257, i32* %sv_0.1.reg2mem br i1 %102, label LBL_30, label LBL_41 LBL_30: %103 = icmp eq i32 %19, 25 %104 = icmp eq i1 %103, false store i32 842099041, i32* %sv_0.1.reg2mem br i1 %104, label LBL_31, label LBL_41 LBL_31: %105 = icmp eq i32 %19, 30 %106 = icmp eq i1 %105, false %spec.select5 = select i1 %106, i32 %spec.select, i32 858876257 store i32 %spec.select5, i32* %sv_0.1.reg2mem br label LBL_41 LBL_32: %107 = icmp eq i32 %19, 25 %108 = icmp eq i32 %19, 50 %109 = or i1 %107, %108 %110 = icmp eq i1 %109, false store i32 892430689, i32* %sv_0.1.reg2mem br i1 %110, label LBL_33, label LBL_41 LBL_33: %111 = icmp eq i32 %19, 60 %112 = icmp eq i1 %111, false %spec.select6 = select i1 %112, i32 %spec.select, i32 909207905 store i32 %spec.select6, i32* %sv_0.1.reg2mem br label LBL_41 LBL_34: %113 = icmp eq i32 %72, 4096 %114 = icmp eq i1 %113, false br i1 %114, label LBL_36, label LBL_35 LBL_35: %115 = add i64 %15, 16 %116 = inttoptr i64 %115 to i32* %117 = load i32, i32* %116, align 4 %118 = icmp eq i32 %117, 2160 br i1 %118, label LBL_40, label LBL_36 LBL_36: %119 = icmp eq i32 %72, 3840 %120 = icmp eq i1 %119, false br i1 %120, label LBL_38, label LBL_37 LBL_37: %121 = add i64 %15, 16 %122 = inttoptr i64 %121 to i32* %123 = load i32, i32* %122, align 4 %124 = icmp eq i32 %123, 2160 br i1 %124, label LBL_40, label LBL_38 LBL_38: %125 = icmp eq i32 %72, 2048 %126 = icmp eq i1 %125, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %126, label LBL_41, label LBL_39 LBL_39: %127 = add i64 %15, 16 %128 = inttoptr i64 %127 to i32* %129 = load i32, i32* %128, align 4 %130 = icmp eq i32 %129, 1080 %131 = icmp eq i1 %130, false store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %131, label LBL_41, label LBL_40 LBL_40: store i32 2021026145, i32* %sv_0.1.reg2mem br label LBL_41 LBL_41: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %132 = zext i32 %sv_0.1.reload to i64 ret i64 %132 uselistorder i32 %spec.select, { 4, 5, 7, 8, 9, 3, 6, 10, 11, 1, 2, 12, 0 } uselistorder i32 %19, { 18, 0, 16, 20, 19, 17, 15, 14, 13, 12, 11, 8, 6, 10, 9, 7, 5, 4, 3, 2, 1 } uselistorder i64 %15, { 0, 1, 2, 3, 8, 7, 4, 9, 6, 5, 10 } uselistorder i32 %7, { 1, 0 } uselistorder i32 %4, { 1, 0 } uselistorder i32* %sv_0.1.reg2mem, { 0, 25, 26, 27, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 24, 28, 11, 12, 13, 14, 15, 22, 23, 16, 17, 18, 19, 20, 21 } uselistorder i32 858876257, { 1, 0 } uselistorder i32 1882286433, { 2, 0, 1 } uselistorder i32 859138401, { 1, 0 } uselistorder i32 1882548577, { 2, 0, 1 } uselistorder i1 false, { 6, 7, 8, 9, 10, 0, 11, 12, 13, 14, 1, 15, 16, 17, 18, 19, 20, 21, 22, 2, 23, 24, 25, 26, 27, 28, 29, 30, 31, 3, 32, 33, 34, 35, 36, 37, 38, 39, 4, 40, 41, 42, 43, 44, 5 } uselistorder label LBL_41, { 22, 23, 24, 0, 6, 1, 7, 8, 2, 9, 10, 11, 12, 20, 25, 3, 13, 4, 14, 15, 26, 27, 5, 16, 17, 18, 19, 21 } }
1
BinRealVul
helper_store_sdr1_1359
helper_store_sdr1
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.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* %rax.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %0, i64 %arg2) store i64 %3, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 1, 0 } }
0
BinRealVul
hns_nic_net_reinit_9659
hns_nic_net_reinit
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %1, 8 %6 = call i64 @FUNC(i64 0, i64 %5) %7 = trunc i64 %6 to i8 %8 = icmp eq i8 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_1, label LBL_2 LBL_1: %10 = call i64 @FUNC(i64 1000, i64 2000) %11 = call i64 @FUNC(i64 0, i64 %5) %12 = trunc i64 %11 to i8 %13 = icmp eq i8 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_1, label LBL_2 LBL_2: %15 = call i64 @FUNC(i64 %0) %16 = call i64 @FUNC(i64 %0) %17 = call i64 @FUNC(i64 %0) %18 = call i64 @FUNC(i64 0, i64 %5) ret i64 %18 uselistorder i64 %5, { 0, 2, 1 } uselistorder i64 %0, { 2, 1, 0, 3 } uselistorder i1 false, { 1, 0, 2 } uselistorder i8 0, { 1, 0 } uselistorder i64 (i64, i64)* @test_and_set_bit, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
find_callno_7000
find_callno
define i64 @FUNC(i64 %arg1, i16 %arg2, i64* %arg3, i32 %arg4, i64 %arg5, i64 %arg6, i32 %arg7, i32 %arg8, i32 %arg9, i16 %arg10, i16 %arg11, i64 %arg12) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = trunc i64 %arg5 to i32 %2 = urem i64 %arg1, 65536 %3 = call i64 @FUNC(i64 %2, i16 %arg2, i64 %0, i32 %arg4, i32 %1, i64 0) ret i64 %3 }
0
BinRealVul
mp_decode_init_3122
mp_decode_init
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = icmp sgt i32 %5, 1 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0)) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %8 = add i64 %2, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = bitcast i64* %rdi to i32* %12 = add i64 %2, 4 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = add i32 %14, 3 %16 = and i32 %15, -4 %17 = trunc i64 %1 to i32 %18 = add i32 %17, 3 %19 = and i32 %18, -4 %20 = call i64 @FUNC() %21 = inttoptr i64 %10 to i64* store i64 %2, i64* %21, align 8 %22 = add i64 %10, 8 %23 = call i64 @FUNC(i64 %22, i64 %2) %24 = load i32, i32* %11, align 8 %25 = mul i32 %24, %16 %26 = sext i32 %25 to i64 %27 = call i64 @FUNC(i64 %26) %28 = add i64 %10, 16 %29 = inttoptr i64 %28 to i64* store i64 %27, i64* %29, align 8 %30 = load i32, i32* %11, align 8 %31 = load i32, i32* %13, align 4 %32 = mul i32 %31, %30 %33 = zext i32 %32 to i64 %34 = call i64 @FUNC(i64 %33) %35 = trunc i64 %34 to i32 %36 = add i32 %35, 1 %37 = add i64 %10, 24 %38 = inttoptr i64 %37 to i32* store i32 %36, i32* %38, align 4 %39 = load i32, i32* %13, align 4 %40 = sext i32 %39 to i64 %41 = mul i64 %40, 4 %42 = call i64 @FUNC(i64 %41) %43 = add i64 %10, 32 %44 = inttoptr i64 %43 to i64* store i64 %42, i64* %44, align 8 %45 = mul i32 %16, %19 %46 = ashr exact i32 %45, 4 %47 = sext i32 %46 to i64 %48 = mul i64 %47, 4 %49 = call i64 @FUNC(i64 %48) %50 = add i64 %10, 40 %51 = inttoptr i64 %50 to i64* store i64 %49, i64* %51, align 8 %52 = load i64, i64* %29, align 8 %53 = icmp eq i64 %52, 0 store i64 4294967294, i64* %rax.0.reg2mem br i1 %53, label LBL_5, label LBL_3 LBL_3: %54 = load i64, i64* %44, align 8 %55 = icmp ne i64 %54, 0 %56 = icmp eq i64 %49, 0 %57 = icmp eq i1 %56, false %or.cond = icmp eq i1 %57, %55 store i64 4294967294, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_4, label LBL_5 LBL_4: %58 = add i64 %2, 12 %59 = inttoptr i64 %58 to i32* store i32 1, i32* %59, align 4 %60 = add i64 %10, 48 %61 = call i64 @FUNC(i64 %60) 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 %2, { 1, 2, 3, 5, 6, 0, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 } uselistorder i64 4294967294, { 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64 (i64)* @av_mallocz, { 2, 1, 0 } uselistorder i32 -4, { 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder label LBL_5, { 2, 0, 1, 3 } }
0
BinRealVul
decode_v1_vector_1946
decode_v1_vector
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg4 to i64 %3 = ptrtoint i64* %arg2 to i64 %4 = bitcast i64* %rdi to i32* %5 = trunc i64 %1 to i32 %6 = icmp eq i32 %5, 1 %7 = icmp eq i1 %6, false %8 = select i1 %7, i32 4, i32 6 %9 = mul i32 %8, %arg3 %10 = sext i32 %9 to i64 %11 = add i64 %10, %2 %12 = add i64 %3, 24 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = add i32 %14, 1 %16 = sext i32 %15 to i64 %17 = add i64 %16, %3 %18 = inttoptr i64 %11 to i8* %19 = load i8, i8* %18, align 1 %20 = inttoptr i64 %17 to i8* store i8 %19, i8* %20, align 1 %21 = load i32, i32* %13, align 4 %22 = sext i32 %21 to i64 %23 = add i64 %22, %3 %24 = inttoptr i64 %23 to i8* store i8 %19, i8* %24, align 1 %25 = add i64 %3, 1 %26 = inttoptr i64 %25 to i8* store i8 %19, i8* %26, align 1 %27 = bitcast i64* %arg2 to i8* store i8 %19, i8* %27, align 1 %28 = or i32 %9, 1 %29 = sext i32 %28 to i64 %30 = add i64 %29, %3 %31 = load i32, i32* %13, align 4 %32 = add i32 %31, 3 %33 = sext i32 %32 to i64 %34 = add i64 %33, %3 %35 = inttoptr i64 %30 to i8* %36 = load i8, i8* %35, align 1 %37 = inttoptr i64 %34 to i8* store i8 %36, i8* %37, align 1 %38 = load i32, i32* %13, align 4 %39 = add i32 %38, 2 %40 = sext i32 %39 to i64 %41 = add i64 %40, %3 %42 = inttoptr i64 %41 to i8* store i8 %36, i8* %42, align 1 %43 = add i64 %3, 3 %44 = inttoptr i64 %43 to i8* store i8 %36, i8* %44, align 1 %45 = add i64 %3, 2 %46 = inttoptr i64 %45 to i8* store i8 %36, i8* %46, align 1 %47 = add i64 %45, %10 %48 = load i32, i32* %13, align 4 %49 = mul i32 %48, 3 %50 = add i32 %49, 1 %51 = sext i32 %50 to i64 %52 = add i64 %47, %51 %53 = inttoptr i64 %47 to i8* %54 = load i8, i8* %53, align 1 %55 = inttoptr i64 %52 to i8* store i8 %54, i8* %55, align 1 %56 = load i32, i32* %13, align 4 %57 = mul i32 %56, 3 %58 = sext i32 %57 to i64 %59 = add i64 %47, %58 %60 = inttoptr i64 %59 to i8* store i8 %54, i8* %60, align 1 %61 = load i32, i32* %13, align 4 %62 = mul i32 %61, 2 %63 = or i32 %62, 1 %64 = sext i32 %63 to i64 %65 = add i64 %47, %64 %66 = inttoptr i64 %65 to i8* store i8 %54, i8* %66, align 1 %67 = load i32, i32* %13, align 4 %68 = mul i32 %67, 2 %69 = sext i32 %68 to i64 %70 = add i64 %47, %69 %71 = inttoptr i64 %70 to i8* store i8 %54, i8* %71, align 1 %72 = add i64 %47, %10 %73 = add i64 %72, 3 %74 = load i32, i32* %13, align 4 %75 = mul i32 %74, 3 %76 = add i32 %75, 3 %77 = sext i32 %76 to i64 %78 = add i64 %47, %77 %79 = inttoptr i64 %73 to i8* %80 = load i8, i8* %79, align 1 %81 = inttoptr i64 %78 to i8* store i8 %80, i8* %81, align 1 %82 = load i32, i32* %13, align 4 %83 = mul i32 %82, 3 %84 = add i32 %83, 2 %85 = sext i32 %84 to i64 %86 = add i64 %47, %85 %87 = inttoptr i64 %86 to i8* store i8 %80, i8* %87, align 1 %88 = load i32, i32* %13, align 4 %89 = mul i32 %88, 2 %90 = add i32 %89, 3 %91 = sext i32 %90 to i64 %92 = add i64 %47, %91 %93 = inttoptr i64 %92 to i8* store i8 %80, i8* %93, align 1 %94 = load i32, i32* %13, align 4 %95 = mul i32 %94, 2 %96 = add i32 %95, 2 %97 = sext i32 %96 to i64 %98 = add i64 %47, %97 %99 = inttoptr i64 %98 to i8* store i8 %80, i8* %99, align 1 %100 = load i32, i32* %4, align 8 %101 = zext i32 %100 to i64 %102 = icmp eq i32 %100, 1 %103 = icmp eq i1 %102, false store i64 %101, i64* %rax.0.reg2mem br i1 %103, label LBL_2, label LBL_1 LBL_1: %104 = add i64 %72, 4 %105 = add i64 %3, 8 %106 = inttoptr i64 %105 to i64* %107 = load i64, i64* %106, align 8 %108 = add i64 %3, 28 %109 = inttoptr i64 %108 to i32* %110 = load i32, i32* %109, align 4 %111 = add i32 %110, 1 %112 = sext i32 %111 to i64 %113 = add i64 %107, %112 %114 = inttoptr i64 %104 to i8* %115 = load i8, i8* %114, align 1 %116 = inttoptr i64 %113 to i8* store i8 %115, i8* %116, align 1 %117 = load i64, i64* %106, align 8 %118 = load i32, i32* %109, align 4 %119 = sext i32 %118 to i64 %120 = add i64 %117, %119 %121 = inttoptr i64 %120 to i8* store i8 %115, i8* %121, align 1 %122 = load i64, i64* %106, align 8 %123 = add i64 %122, 1 %124 = inttoptr i64 %123 to i8* store i8 %115, i8* %124, align 1 %125 = load i64, i64* %106, align 8 %126 = inttoptr i64 %125 to i8* store i8 %115, i8* %126, align 1 %127 = add nsw i64 %10, 5 %128 = add i64 %127, %117 %129 = add i64 %3, 16 %130 = inttoptr i64 %129 to i64* %131 = load i64, i64* %130, align 8 %132 = add i64 %3, 32 %133 = inttoptr i64 %132 to i32* %134 = load i32, i32* %133, align 4 %135 = add i32 %134, 1 %136 = sext i32 %135 to i64 %137 = add i64 %131, %136 %138 = inttoptr i64 %128 to i8* %139 = load i8, i8* %138, align 1 %140 = inttoptr i64 %137 to i8* store i8 %139, i8* %140, align 1 %141 = load i64, i64* %130, align 8 %142 = load i32, i32* %133, align 4 %143 = sext i32 %142 to i64 %144 = add i64 %141, %143 %145 = inttoptr i64 %144 to i8* store i8 %139, i8* %145, align 1 %146 = load i64, i64* %130, align 8 %147 = add i64 %146, 1 %148 = inttoptr i64 %147 to i8* store i8 %139, i8* %148, align 1 %149 = load i64, i64* %130, align 8 %150 = zext i8 %139 to i64 %151 = inttoptr i64 %149 to i8* store i8 %139, i8* %151, align 1 store i64 %150, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %139, { 2, 1, 0, 3, 4 } uselistorder i64 %117, { 1, 0 } uselistorder i8 %115, { 1, 0, 2, 3 } uselistorder i64 %47, { 0, 1, 2, 3, 8, 4, 5, 6, 9, 7 } uselistorder i8 %36, { 2, 1, 0, 3 } uselistorder i8 %19, { 2, 1, 0, 3 } uselistorder i64 %10, { 3, 1, 0, 2 } uselistorder i64 %3, { 6, 5, 8, 7, 10, 11, 0, 1, 2, 12, 3, 4, 9 } uselistorder i32 2, { 4, 0, 1, 5, 2, 3, 6 } uselistorder i32 3, { 5, 0, 1, 2, 3, 4, 6 } }
0
BinRealVul
gppc_dump_8196
gppc_dump
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = inttoptr i64 %4 to i8* store i64 %2, i64* @0, align 8 switch i64 %2, label LBL_6 [ i64 1, label LBL_1 i64 2, label LBL_1 i64 3, label LBL_2 i64 4, label LBL_3 i64 5, label LBL_4 i64 6, label LBL_5 ] LBL_1: %6 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg2) %7 = add i64 %2, 8 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = zext i32 %9 to i64 %11 = inttoptr i64 %arg2 to %_IO_FILE* %12 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %11, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %5, i64 %10) %13 = add i64 %2, 20 %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 = add i64 %2, 12 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = zext i32 %21 to i64 %23 = zext i32 %15 to i64 %24 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %11, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_2, i64 0, i64 0), i64 %22, i32 %18, i64 %23) %25 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %11) %26 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %arg2) br label LBL_6 LBL_2: %27 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i64 %arg2) %28 = load i32, i32* inttoptr (i64 15 to i32*), align 4 %29 = load i32, i32* inttoptr (i64 11 to i32*), align 4 %30 = zext i32 %29 to i64 %31 = zext i32 %28 to i64 %32 = inttoptr i64 %arg2 to %_IO_FILE* %33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_5, i64 0, i64 0), i8* %5, i64 %30, i64 %31) %34 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i64 3, i64 %arg2) br label LBL_6 LBL_3: %35 = call i64 @FUNC(i64 4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64 %arg2) %36 = load i32, i32* inttoptr (i64 16 to i32*), align 16 %37 = load i32, i32* inttoptr (i64 12 to i32*), align 4 %38 = zext i32 %37 to i64 %39 = zext i32 %36 to i64 %40 = inttoptr i64 %arg2 to %_IO_FILE* %41 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %40, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_5, i64 0, i64 0), i8* %5, i64 %38, i64 %39) %42 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64 4, i64 %arg2) br label LBL_6 LBL_4: %43 = call i64 @FUNC(i64 5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_7, i64 0, i64 0), i64 %arg2) %44 = load i32, i32* inttoptr (i64 17 to i32*), align 4 %45 = load i32, i32* inttoptr (i64 13 to i32*), align 4 %46 = zext i32 %45 to i64 %47 = zext i32 %44 to i64 %48 = inttoptr i64 %arg2 to %_IO_FILE* %49 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %48, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_5, i64 0, i64 0), i8* %5, i64 %46, i64 %47) %50 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_7, i64 0, i64 0), i64 5, i64 %arg2) br label LBL_6 LBL_5: %51 = call i64 @FUNC(i64 6, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 %arg2) %52 = load i32, i32* inttoptr (i64 14 to i32*), align 4 %53 = zext i32 %52 to i64 %54 = inttoptr i64 %arg2 to %_IO_FILE* %55 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %54, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %5, i64 %53) %56 = load i32, i32* inttoptr (i64 34 to i32*), align 4 %57 = zext i32 %56 to i64 %58 = load i32, i32* inttoptr (i64 30 to i32*), align 4 %59 = zext i32 %58 to i64 %60 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %54, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_9, i64 0, i64 0), i64 %59, i64 %57) %61 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %54) %62 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 6, i64 %arg2) br label LBL_6 LBL_6: ret i64 0 uselistorder i8* %5, { 4, 3, 2, 1, 0 } uselistorder i64 %2, { 0, 3, 2, 1, 4, 5, 6, 7 } uselistorder i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_5, i64 0, i64 0), { 2, 1, 0 } uselistorder i64 (i8*, i64, i64)* @gf_isom_box_dump_done, { 4, 3, 2, 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder i32 2, { 1, 0 } uselistorder i64* bitcast ([3 x i8]* @gv_3 to i64*), { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 6, 5, 7, 8, 4, 3, 2, 1, 0 } uselistorder i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), { 1, 0 } uselistorder i64 (i64, i8*, i64)* @gf_isom_box_dump_start, { 4, 3, 2, 1, 0 } uselistorder i64 6, { 1, 0, 2 } uselistorder i64 5, { 1, 0, 2 } uselistorder i64 4, { 1, 0, 2 } uselistorder i64 3, { 1, 0, 2 } uselistorder i64 %arg2, { 12, 13, 14, 9, 10, 11, 6, 7, 8, 3, 4, 5, 0, 1, 2 } uselistorder label LBL_6, { 1, 2, 3, 4, 5, 0 } }
0
BinRealVul
gf_qt_report_12299
gf_qt_report
define i64 @FUNC(i64* %arg1, i64 %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: %sext = mul i64 %arg2, 4294967296 %21 = ashr exact i64 %sext, 32 %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 %. = select i1 %23, i64 3, i64 2 %24 = call i64 @FUNC(i64 1, i64 %.) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 br i1 %26, label LBL_4, label LBL_3 LBL_3: store i32 24, i32* %sv_1, align 4 %27 = ptrtoint i32* %sv_1 to i64 %28 = bitcast i64* %sv_0 to i8* %29 = call i32 @vsprintf(i8* nonnull %28, i8* %arg3, i64 %27) %30 = call i64 @FUNC(i64 %., i64 1, i64* nonnull %sv_0, i64 %., i64 %arg5, i64 %arg6) br label LBL_4 LBL_4: %31 = and i64 %21, 4294967295 ret i64 %31 uselistorder i64 %., { 1, 0, 2 } uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
vnc_client_write_sasl_1991
vnc_client_write_sasl
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem2 = alloca i64 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 48 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = add i64 %0, 40 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %0, 32 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = add i64 %0, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = add i64 %0, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = inttoptr i64 %9 to i64* %17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @gv_0, i64 0, i64 0), i64* %16, i64 %15, i64 %12, i64* %16, i64 %6, i64 %3) %18 = load i64, i64* %8, align 8 %19 = icmp eq i64 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_0.LBL_5_crit_edge, label LBL_2 LBL_1: %.pre = load i64, i64* %2, align 8 store i64 %18, i64* %.reg2mem store i64 %.pre, i64* %.reg2mem2 br label LBL_5 LBL_2: %21 = load i64, i64* %11, align 8 %22 = add i64 %0, 24 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = call i64 @FUNC(i64 %24, i64 %4, i64 %21, i64 %7, i64 %4) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 br i1 %27, label LBL_4, label LBL_3 LBL_3: %28 = call i64 @FUNC(i64 %0, i64 -1, i64 0) store i64 %28, i64* %rax.0.reg2mem br label LBL_12 LBL_4: %29 = load i64, i64* %11, align 8 %30 = add i64 %0, 56 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 store i64 0, i64* %2, align 8 %.pre1 = load i64, i64* %8, align 8 store i64 %.pre1, i64* %.reg2mem store i64 0, i64* %.reg2mem2 br label LBL_5 LBL_5: %.reload3 = load i64, i64* %.reg2mem2 %.reload = load i64, i64* %.reg2mem %32 = load i64, i64* %5, align 8 %33 = sub i64 %32, %.reload3 %34 = add i64 %.reload3, %.reload %35 = call i64 @FUNC(i64 %0, i64 %34, i64 %33) %36 = icmp eq i64 %35, 0 %37 = icmp eq i1 %36, false store i64 0, i64* %rax.0.reg2mem br i1 %37, label LBL_6, label LBL_12 LBL_6: %38 = load i64, i64* %2, align 8 %39 = add i64 %38, %35 store i64 %39, i64* %2, align 8 %40 = load i64, i64* %5, align 8 %41 = icmp eq i64 %39, %40 %42 = icmp eq i1 %41, false br i1 %42, label LBL_8, label LBL_7 LBL_7: %43 = add i64 %0, 56 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = add i64 %0, 64 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = icmp ugt i64 %48, %45 %50 = select i1 %49, i64 %48, i64 %45 %51 = sub i64 %50, %45 store i64 %51, i64* %47, align 8 %52 = load i64, i64* %11, align 8 %53 = load i64, i64* %44, align 8 %54 = sub i64 %52, %53 store i64 %54, i64* %11, align 8 store i64 0, i64* %8, align 8 store i64 0, i64* %5, align 8 store i64 0, i64* %2, align 8 br label LBL_8 LBL_8: %55 = load i64, i64* %11, align 8 %56 = icmp eq i64 %55, 0 %57 = icmp eq i1 %56, false store i64 %35, i64* %rax.0.reg2mem br i1 %57, label LBL_12, label LBL_9 LBL_9: %58 = add i64 %0, 80 %59 = inttoptr i64 %58 to i32* %60 = load i32, i32* %59, align 4 %61 = icmp eq i32 %60, 0 br i1 %61, label LBL_11, label LBL_10 LBL_10: %62 = zext i32 %60 to i64 %63 = call i64 @FUNC(i64 %62) br label LBL_11 LBL_11: %64 = add i64 %0, 72 %65 = inttoptr i64 %64 to i64* %66 = load i64, i64* %65, align 8 %67 = call i64 @FUNC(i64 %66, i64 1, i64 4198897, i64 %0, i64 0) %68 = trunc i64 %67 to i32 store i32 %68, i32* %59, align 4 store i64 %35, 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 %35, { 1, 0, 2, 3 } uselistorder i64 %.reload3, { 1, 0 } uselistorder i64* %11, { 4, 3, 2, 0, 1, 5 } uselistorder i64* %8, { 1, 0, 2, 3 } uselistorder i64 %4, { 1, 0, 2 } uselistorder i64* %2, { 2, 4, 3, 1, 0, 5 } uselistorder i64 %0, { 4, 3, 5, 6, 7, 8, 0, 1, 2, 9, 10, 11, 12, 13 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder label LBL_12, { 1, 0, 2, 3 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
vc1_h_overlap_c_1758
vc1_h_overlap_c
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.03.reg2mem = alloca i64 %sv_1.04.reg2mem = alloca i32 %storemerge5.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 32 store i32 0, i32* %storemerge5.reg2mem store i32 1, i32* %sv_1.04.reg2mem store i64 %0, i64* %sv_0.03.reg2mem br label LBL_1 LBL_1: %sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem %sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem %storemerge5.reload = load i32, i32* %storemerge5.reg2mem %2 = add i64 %sv_0.03.reload, -2 %3 = inttoptr i64 %2 to i8* %4 = load i8, i8* %3, align 1 %5 = zext i8 %4 to i32 %6 = add i64 %sv_0.03.reload, -1 %7 = inttoptr i64 %6 to i8* %8 = load i8, i8* %7, align 1 %9 = zext i8 %8 to i32 %10 = inttoptr i64 %sv_0.03.reload to i8* %11 = load i8, i8* %10, align 1 %12 = zext i8 %11 to i32 %13 = add i64 %sv_0.03.reload, 1 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 %16 = zext i8 %15 to i32 %17 = sub nsw i32 %5, %16 %18 = add nuw nsw i32 %sv_1.04.reload, 3 %19 = add nsw i32 %18, %17 %20 = udiv i32 %19, 8 %21 = sub nsw i32 4, %sv_1.04.reload %22 = add nuw nsw i32 %21, %9 %23 = sub nsw i32 %22, %12 %24 = add nsw i32 %23, %17 %25 = ashr i32 %24, 3 %26 = trunc i32 %20 to i8 %27 = sub i8 %4, %26 store i8 %27, i8* %3, align 1 %28 = sub nsw i32 %9, %25 %29 = zext i32 %28 to i64 %30 = call i64 @FUNC(i64 %29) %31 = trunc i64 %30 to i8 store i8 %31, i8* %7, align 1 %32 = add nsw i32 %25, %12 %33 = zext i32 %32 to i64 %34 = call i64 @FUNC(i64 %33) %35 = trunc i64 %34 to i8 store i8 %35, i8* %10, align 1 %36 = add i8 %15, %26 store i8 %36, i8* %14, align 1 %37 = add i64 %sv_0.03.reload, %1 %38 = icmp eq i32 %sv_1.04.reload, 0 %39 = zext i1 %38 to i32 %40 = add nuw nsw i32 %storemerge5.reload, 1 %exitcond = icmp eq i32 %40, 8 store i32 %40, i32* %storemerge5.reg2mem store i32 %39, i32* %sv_1.04.reg2mem store i64 %37, i64* %sv_0.03.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: ret i64 1 uselistorder i32 %17, { 1, 0 } uselistorder i32 %12, { 1, 0 } uselistorder i32 %9, { 1, 0 } uselistorder i32 %sv_1.04.reload, { 1, 2, 0 } uselistorder i64 %sv_0.03.reload, { 4, 2, 3, 1, 0 } uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.04.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 } uselistorder i64 (i64)* @av_clip_uint8, { 1, 0 } uselistorder i32 8, { 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder i32 0, { 1, 0, 2 } }
0
BinRealVul
send_guest_vcpu_virq_13229
send_guest_vcpu_virq
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %2 = load i64, i64* %0 %3 = and i64 %arg2, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = zext i1 %6 to i64 %8 = call i64 @FUNC(i64 %7) %9 = call i64 @FUNC(i64 %1, i64 %2) %10 = add i64 %1, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = mul i64 %arg2, 4 %14 = and i64 %13, 17179869180 %15 = add i64 %12, %14 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false %20 = icmp eq i1 %19, false br i1 %20, label LBL_2, label LBL_1 LBL_1: %21 = add i64 %1, 24 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = zext i32 %17 to i64 %25 = call i64 @FUNC(i64 %23, i64 %24) %26 = and i64 %25, 4294967295 %27 = add i64 %1, 16 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = zext i32 %29 to i64 %31 = call i64 @FUNC(i64 %23, i64 %30, i64 %26) br label LBL_2 LBL_2: %32 = call i64 @FUNC(i64 %1, i64 %2) ret i64 %32 uselistorder i64 %1, { 2, 0, 1, 3, 4 } uselistorder i1 false, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
cmd_read_cd_619
cmd_read_cd
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %0, 6 %3 = inttoptr i64 %2 to i8* %4 = load i8, i8* %3, align 1 %5 = zext i8 %4 to i32 %6 = mul i32 %5, 65536 %7 = add i64 %0, 7 %8 = inttoptr i64 %7 to i8* %9 = load i8, i8* %8, align 1 %10 = zext i8 %9 to i32 %11 = mul i32 %10, 256 %12 = or i32 %11, %6 %13 = add i64 %0, 8 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 %16 = zext i8 %15 to i32 %17 = or i32 %12, %16 %18 = add i64 %0, 2 %19 = call i64 @FUNC(i64 %18) %20 = icmp eq i32 %17, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_2, label LBL_1 LBL_1: %22 = call i64 @FUNC(i64 %1) store i64 %22, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %23 = add i64 %0, 9 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = and i8 %25, -8 %27 = icmp eq i8 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_4, label LBL_3 LBL_3: %29 = call i64 @FUNC(i64 %1) store i64 %29, i64* %rax.0.reg2mem br label LBL_10 LBL_4: %30 = call i64 @FUNC(i64 %1) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 store i64 %30, i64* %rax.0.reg2mem br i1 %32, label LBL_10, label LBL_5 LBL_5: %33 = trunc i64 %19 to i32 %34 = icmp eq i8 %26, 16 br i1 %34, label LBL_7, label LBL_6 LBL_6: %35 = icmp ugt i8 %25, -9 br i1 %35, label LBL_8, label LBL_9 LBL_7: %36 = call i64 @FUNC(i64 %1, i32 %33, i32 %17, i64 2048) store i64 %36, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %37 = call i64 @FUNC(i64 %1, i32 %33, i32 %17, i64 2352) store i64 %37, i64* %rax.0.reg2mem br label LBL_10 LBL_9: %38 = call i64 @FUNC(i64 %1, i64 1, i64 2) store i64 %38, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 1, 2, 3, 4, 5, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 6, 2, 1 } uselistorder i64 1, { 1, 2, 0 } uselistorder i64 (i64, i32, i32, i64)* @ide_atapi_cmd_read, { 1, 0 } uselistorder i64 (i64)* @ide_atapi_cmd_ok, { 1, 0 } uselistorder label LBL_10, { 1, 2, 3, 0, 4, 5 } }
0
BinRealVul
fill_buffer_18133
fill_buffer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 28 %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 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = sub i64 %8, %0 %10 = add i64 %0, 24 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = sext i32 %12 to i64 %14 = icmp slt i64 %9, %13 store i64 %8, i64* %storemerge2.reg2mem br i1 %14, label LBL_3, label LBL_2 LBL_2: store i64 %0, i64* %storemerge2.reg2mem br label LBL_3 LBL_3: %15 = add i64 %0, 32 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = zext i32 %17 to i64 %19 = icmp eq i32 %17, 0 %20 = icmp eq i1 %19, false store i64 %18, i64* %rax.0.reg2mem br i1 %20, label LBL_16, label LBL_4 LBL_4: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %21 = add i64 %0, 56 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp eq i64 %23, 0 %25 = icmp eq i64 %storemerge2.reload, %0 %26 = icmp eq i1 %25, false %or.cond = or i1 %26, %24 br i1 %or.cond, label LBL_8, label LBL_5 LBL_5: %27 = add i64 %0, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %0, 48 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = icmp ugt i64 %29, %32 store i64 %0, i64* %rdi.0.reg2mem br i1 %33, label LBL_6, label LBL_7 LBL_6: %34 = add i64 %0, 80 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = zext i32 %36 to i64 store i64 %37, i64* %rdi.0.reg2mem br label LBL_7 LBL_7: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem store i64 %rdi.0.reload, i64* %31, align 8 br label LBL_8 LBL_8: %spec.select = select i1 %4, i32 4096, i32 %3 %38 = add i64 %0, 24 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = zext i32 %40 to i64 %42 = sext i32 %spec.select to i64 %43 = icmp slt i64 %42, %41 store i64 %storemerge2.reload, i64* %sv_0.0.reg2mem br i1 %43, label LBL_9, label LBL_10 LBL_9: %44 = zext i32 %spec.select to i64 %45 = call i64 @FUNC(i64 %0, i64 %44) %46 = add i64 %0, 48 %47 = inttoptr i64 %46 to i64* store i64 %0, i64* %47, align 8 store i64 %0, i64* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %48 = add i64 %0, 64 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 %51 = icmp eq i64 %50, 0 store i32 0, i32* %storemerge.reg2mem br i1 %51, label LBL_12, label LBL_11 LBL_11: %52 = add i64 %0, 72 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = trunc i64 %54 to i32 store i32 %55, i32* %storemerge.reg2mem br label LBL_12 LBL_12: %storemerge.reload = load i32, i32* %storemerge.reg2mem %56 = icmp eq i32 %storemerge.reload, 0 %57 = icmp slt i32 %storemerge.reload, 0 %58 = icmp eq i1 %57, false %59 = icmp eq i1 %56, false %60 = icmp eq i1 %58, %59 br i1 %60, label LBL_15, label LBL_13 LBL_13: store i32 1, i32* %16, align 4 store i64 %0, i64* %rax.0.reg2mem br i1 %58, label LBL_16, label LBL_14 LBL_14: %61 = add i64 %0, 36 %62 = inttoptr i64 %61 to i32* store i32 %storemerge.reload, i32* %62, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_16 LBL_15: %63 = add i64 %0, 40 %64 = inttoptr i64 %63 to i32* %65 = load i32, i32* %64, align 4 %66 = add i32 %65, %storemerge.reload store i32 %66, i32* %64, align 4 %67 = add i64 %0, 16 %68 = inttoptr i64 %67 to i64* store i64 %sv_0.0.reload, i64* %68, align 8 %69 = sext i32 %storemerge.reload to i64 %70 = add i64 %sv_0.0.reload, %69 %71 = add i64 %0, 8 %72 = inttoptr i64 %71 to i64* store i64 %70, i64* %72, align 8 store i64 %0, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %storemerge.reload, { 2, 4, 3, 0, 1 } uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i32 %spec.select, { 1, 0 } uselistorder i64 %0, { 2, 9, 10, 11, 0, 8, 1, 13, 12, 3, 16, 14, 17, 15, 21, 4, 19, 20, 6, 18, 22, 5, 24, 7, 23, 25 } uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 } uselistorder i1 false, { 2, 1, 0, 3, 4 } uselistorder i32 0, { 1, 2, 0, 3, 4 } uselistorder label LBL_16, { 1, 2, 3, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ssl3_do_uncompress_10379
ssl3_do_uncompress
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 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %2, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = and i64 %1, 4294967295 %10 = call i64 @FUNC(i64 %5, i64 %8, i64 16384, i64 %5, i64 %9) %11 = trunc i64 %10 to i32 %12 = icmp slt i32 %11, 0 %13 = icmp eq i1 %12, false store i64 0, i64* %storemerge.reg2mem br i1 %13, label LBL_1, label LBL_2 LBL_1: %14 = bitcast i64* %arg1 to i32* store i32 %11, i32* %14, align 4 %15 = load i64, i64* %7, align 8 store i64 %15, i64* %4, align 8 store i64 1, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %5, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
mrb_singleton_class_10376
mrb_singleton_class
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sext = mul i64 %arg2, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = and i64 %arg2, 4294967295 %2 = call i64 @FUNC(i64 %1) %3 = trunc i64 %2 to i32 %4 = icmp sgt i32 %3, 5 br i1 %4, label LBL_9, label LBL_1 LBL_1: %5 = icmp sgt i32 %3, 2 br i1 %5, label LBL_8, label LBL_2 LBL_2: switch i32 %3, label LBL_9 [ i32 2, label LBL_7 i32 0, label LBL_3 i32 1, label LBL_6 ] LBL_3: %6 = and i64 %0, 4294967295 %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 br i1 %9, label LBL_5, label LBL_4 LBL_4: %10 = call i64 @FUNC(i64 %6) store i64 %10, i64* %rax.0.reg2mem br label LBL_10 LBL_5: %11 = add i64 %arg1, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13) store i64 %14, i64* %rax.0.reg2mem br label LBL_10 LBL_6: %15 = add i64 %arg1, 16 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = call i64 @FUNC(i64 %17) store i64 %18, i64* %rax.0.reg2mem br label LBL_10 LBL_7: %19 = add i64 %arg1, 24 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21) store i64 %22, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %23 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_9: %24 = and i64 %0, 4294967295 %25 = call i64 @FUNC(i64 %24) %26 = call i64 @FUNC(i64 %arg1, i64 %25) %27 = inttoptr i64 %25 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28) store i64 %29, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 3, 2 } uselistorder i64 (i64)* @mrb_obj_value, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 1, 0, 2 } uselistorder i64 4294967295, { 1, 0, 2 } uselistorder i32 1, { 2, 1, 0 } uselistorder i64 %arg2, { 1, 0 } uselistorder i64 %arg1, { 4, 3, 2, 0, 1 } }
0
BinRealVul
create_gic_1177
create_gic
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %indvars.iv.reg2mem = alloca i64 %storemerge35.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = call i64 @FUNC() %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %5 = select i1 %4, i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64 ptrtoint ([12 x i8]* @gv_1 to i64) %6 = call i64 @FUNC(i64 0, i64 %5) %7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 2) %8 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i64 %9) %11 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64 64) %12 = call i64 @FUNC(i64 %6) %13 = call i64 @FUNC(i64 %6) %14 = trunc i64 %1 to i32 %15 = call i64 @FUNC(i64 %13, i64 0, i32 %14) %16 = ptrtoint i32* %arg1 to i64 %17 = add i64 %16, 4 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = call i64 @FUNC(i64 %13, i64 1, i32 %19) %21 = load i32, i32* @gv_5, align 4 %22 = icmp eq i32 %21, 0 store i32 0, i32* %storemerge35.reg2mem br i1 %22, label LBL_2, label LBL_1 LBL_1: %storemerge35.reload = load i32, i32* %storemerge35.reg2mem %23 = zext i32 %storemerge35.reload to i64 %24 = call i64 @FUNC(i64 %23) %25 = and i64 %24, 4294967295 %26 = call i64 @FUNC(i64 %25) %27 = mul i32 %storemerge35.reload, 32 %28 = add i32 %27, 32 %29 = or i32 %28, 30 %30 = zext i32 %29 to i64 %31 = call i64 @FUNC(i64 %6, i64 %30) %32 = and i64 %31, 4294967295 %33 = call i64 @FUNC(i64 %26, i64 0, i64 %32) %34 = or i32 %28, 27 %35 = zext i32 %34 to i64 %36 = call i64 @FUNC(i64 %6, i64 %35) %37 = and i64 %36, 4294967295 %38 = call i64 @FUNC(i64 %26, i64 1, i64 %37) %39 = call i64 @FUNC(i64 %26, i64 0) %40 = and i64 %39, 4294967295 %41 = call i64 @FUNC(i64 %13, i64 %23, i64 %40) %42 = add i32 %storemerge35.reload, 1 %43 = load i32, i32* @gv_5, align 4 %44 = zext i32 %43 to i64 %45 = sext i32 %42 to i64 %46 = icmp slt i64 %45, %44 store i32 %42, i32* %storemerge35.reg2mem br i1 %46, label LBL_1, label LBL_2 LBL_2: %47 = ptrtoint i64* %arg2 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_3 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %48 = mul i64 %indvars.iv.reload, 4 %49 = add i64 %48, %47 %50 = call i64 @FUNC(i64 %6, i64 %indvars.iv.reload) %51 = trunc i64 %50 to i32 %52 = inttoptr i64 %49 to i32* store i32 %51, i32* %52, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 32 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %53 = call i64 @FUNC(i64 %16) ret i64 %53 uselistorder i32 %storemerge35.reload, { 0, 2, 1 } uselistorder i64 %6, { 0, 2, 1, 3, 4, 5, 6, 7 } uselistorder i32* %storemerge35.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64, i64)* @qdev_connect_gpio_out, { 1, 0 } uselistorder i64 (i64, i64)* @qdev_get_gpio_in, { 3, 2, 1, 0 } uselistorder i32 32, { 1, 0 } uselistorder i32* @gv_5, { 1, 0 } uselistorder i64 (i64, i64, i32)* @sysbus_mmio_map, { 1, 0 } uselistorder i64 (i64, i8*, i64)* @qdev_prop_set_uint32, { 2, 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
key_value_ok_7118
key_value_ok
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %.reg2mem = alloca i8* %0 = inttoptr i64 %arg1 to i8* %1 = load i8, i8* %0, align 1 %2 = icmp eq i8 %1, 0 %3 = icmp eq i1 %2, false store i8* %0, i8** %.reg2mem store i64 %arg1, i64* %storemerge3.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %.reload = load i8*, i8** %.reg2mem %4 = call i16** @__ctype_b_loc() %5 = load i16*, i16** %4, align 8 %6 = ptrtoint i16* %5 to i64 %7 = load i8, i8* %.reload, align 1 %8 = sext i8 %7 to i64 %9 = mul i64 %8, 2 %10 = add i64 %9, %6 %11 = inttoptr i64 %10 to i16* %12 = load i16, i16* %11, align 2 %13 = and i16 %12, 1024 %14 = icmp eq i16 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_2, label %switch.early.test LBL_2: %16 = add i64 %storemerge3.reload, 1 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = icmp eq i8 %18, 0 %20 = icmp eq i1 %19, false store i8* %17, i8** %.reg2mem store i64 %16, i64* %storemerge3.reg2mem br i1 %20, label LBL_1, label LBL_3 LBL_3: %21 = call i32 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0)) %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = load [14 x i8]*, [14 x i8]** @gv_1, align 8 %24 = getelementptr inbounds [14 x i8], [14 x i8]* %23, i64 0, i64 0 %25 = call i32 @strcmp(i8* %0, i8* %24) %26 = icmp eq i32 %25, 0 %27 = icmp eq i1 %26, false store i64 1, i64* %rax.0.reg2mem br i1 %27, label LBL_7, label LBL_5 LBL_5: %28 = call i64 @FUNC(i64 %arg2) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false store i64 1, i64* %rax.0.reg2mem br i1 %31, label LBL_7, label LBL_6 LBL_6: %32 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 %arg2) 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 i8* %0, { 2, 1, 0, 3 } uselistorder i8** %.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 } uselistorder i64 1, { 1, 0, 2 } uselistorder i1 false, { 2, 3, 4, 1, 0 } uselistorder i8 0, { 2, 1, 0 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 0, 1 } uselistorder label LBL_7, { 3, 2, 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
get_device_14832
get_device
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0 = alloca i64, align 8 %0 = call i64 @FUNC() store i64 0, i64* %sv_0, align 8 %1 = call i64 @FUNC(i64 %0, i64 6900, i64 4368, i64 4198821, i64* nonnull %sv_0) %2 = load i64, i64* %sv_0, align 8 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false %5 = zext i1 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = load i64, i64* %sv_0, align 8 ret i64 %7 uselistorder i64* %sv_0, { 1, 2, 0, 3 } uselistorder i32 1, { 3, 1, 2, 0 } }
1
BinRealVul
save_files_dirs_3911
save_files_dirs
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = inttoptr i64 %arg4 to i8* %1 = call i32 @strlen(i8* %0) %2 = add i32 %1, %arg3 %3 = add i32 %2, 1 %4 = sext i32 %3 to i64 %5 = call i64 @FUNC(i64 %4) %6 = inttoptr i64 %5 to i64* %7 = inttoptr i64 %arg2 to i64* %8 = call i64* @memcpy(i64* %6, i64* %7, i32 %arg3) %9 = sext i32 %arg3 to i64 %10 = add i64 %5, %9 %11 = inttoptr i64 %10 to i64* %12 = inttoptr i64 %arg4 to i64* %13 = call i64* @memcpy(i64* %11, i64* %12, i32 %1) %14 = sext i32 %2 to i64 %15 = add i64 %5, %14 %16 = inttoptr i64 %15 to i8* store i8 0, i8* %16, align 1 %17 = and i64 %arg5, 61440 %18 = icmp eq i64 %17, 16384 %19 = icmp eq i1 %18, false br i1 %19, label LBL_2, label LBL_1 LBL_1: %20 = call i64 @FUNC(i64 %5, i64* nonnull @gv_0) br label LBL_3 LBL_2: %21 = call i64 @FUNC(i64 %5, i64* nonnull @gv_1) br label LBL_3 LBL_3: call void @free(i64* %6) ret i64 0 uselistorder i64 %5, { 2, 3, 0, 1, 4 } uselistorder i32 %1, { 1, 0 } uselistorder i64 (i64, i64*)* @path_list_insert, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i32 %arg3, { 1, 2, 0 } }
0
BinRealVul
_zip_dirent_clone_10334
_zip_dirent_clone
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %0 = call i64* @malloc(i32 8) %1 = icmp eq i64* %0, null %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = icmp eq i64* %arg1, null br i1 %3, label LBL_3, label LBL_2 LBL_2: store i64 8, i64* %0, align 8 %.pre = ptrtoint i64* %0 to i64 store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_4 LBL_3: %4 = ptrtoint i64* %0 to i64 %5 = call i64 @FUNC(i64 %4) store i64 %4, i64* %.pre-phi.reg2mem br label LBL_4 LBL_4: %6 = bitcast i64* %0 to i32* %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem store i32 0, i32* %6, align 4 %7 = add i64 %.pre-phi.reload, 4 %8 = inttoptr i64 %7 to i32* store i32 1, i32* %8, align 4 store i64 %.pre-phi.reload, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %0, { 4, 1, 0, 2, 3 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
udev_monitor_send_device_7021
udev_monitor_send_device
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge.in.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0) %4 = icmp sgt i64 %3, 31 store i64 4294967295, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_6 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = trunc i64 %3 to i32 %7 = trunc i64 %1 to i32 %8 = add i64 %5, 4 %9 = inttoptr i64 %8 to i16* %10 = load i16, i16* %9, align 2 %11 = icmp eq i16 %10, 0 br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = add i64 %5, 140 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = load i64, i64* %sv_0, align 8 %16 = inttoptr i64 %15 to i64* %17 = inttoptr i64 %8 to %sockaddr* %18 = call i32 @sendto(i32 %7, i64* %16, i32 %6, i32 0, %sockaddr* %17, i32 %14) store i32 %18, i32* %storemerge.in.reg2mem br label LBL_5 LBL_3: %19 = add i64 %5, 116 %20 = inttoptr i64 %19 to i16* %21 = load i16, i16* %20, align 2 %22 = icmp eq i16 %21, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %22, label LBL_6, label LBL_4 LBL_4: %23 = add i64 %5, 128 %24 = load i64, i64* %sv_0, align 8 %25 = inttoptr i64 %24 to i64* %26 = inttoptr i64 %23 to %sockaddr* %27 = call i32 @sendto(i32 %7, i64* %25, i32 %6, i32 0, %sockaddr* %26, i32 12) store i32 %27, i32* %storemerge.in.reg2mem br label LBL_5 LBL_5: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = sext i32 %storemerge.in.reload to i64 %28 = add i64 %5, 144 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %storemerge, i64 %5) store i64 %storemerge, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %6, { 1, 0 } uselistorder i64 %5, { 1, 0, 5, 4, 3, 2 } uselistorder i64* %sv_0, { 1, 2, 0 } uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 (i32, i64*, i32, i32, %sockaddr*, i32)* @sendto, { 1, 0 } uselistorder label LBL_6, { 2, 0, 1 } }
0
BinRealVul
tpm_backend_get_tpm_version_16251
tpm_backend_get_tpm_version
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 17, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %2 = ptrtoint i64* %arg1 to i64 ret i64 %2 uselistorder i64* %arg1, { 1, 0 } }
1
BinRealVul
SFS_Params_5971
SFS_Params
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.1.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 %4 = icmp eq i32 %2, 0 %5 = icmp eq i1 %4, false store i64 %3, i64* %rax.1.reg2mem br i1 %5, label LBL_4, label LBL_1 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = add i64 %6, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %9, i64 1) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 %10, i64* %rax.1.reg2mem br i1 %13, label LBL_2, label LBL_4 LBL_2: %14 = call i64 @FUNC(i64 %6) %15 = load i64, i64* %8, align 8 %16 = call i64 @FUNC(i64 %15, i64 1) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 store i64 %16, i64* %rax.1.reg2mem br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = call i64 @FUNC(i64 %6, i64 4202512) %20 = call i64 @FUNC(i64 %6) %21 = load i64, i64* %8, align 8 %22 = call i64 @FUNC(i64 %21, i64 1) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 store i64 %22, i64* %rax.1.reg2mem br i1 %24, label LBL_4, label LBL_3 LBL_4: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i64* %8, { 1, 0, 2 } uselistorder i64 %6, { 2, 1, 0, 3 } uselistorder i64 %1, { 1, 0 } uselistorder i64 (i64)* @SFS_Expression, { 1, 0 } uselistorder i64 (i64, i64)* @gf_bs_read_int, { 2, 0, 1 } uselistorder i64 1, { 2, 1, 3, 0 } uselistorder label LBL_4, { 1, 0, 2, 3 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
mdia_Size_10169
mdia_Size
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 br i1 %1, label LBL_4, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = and i64 %2, 4294967295 store i64 %5, i64* %rax.0.reg2mem br label LBL_12 LBL_3: %6 = trunc i64 %0 to i32 %7 = add i64 %0, 24 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i32 %9, %6 store i32 %10, i32* %8, align 4 br label LBL_4 LBL_4: %11 = add i64 %0, 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_8, label LBL_5 LBL_5: %15 = call i64 @FUNC(i64 %13) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_7, label LBL_6 LBL_6: %18 = and i64 %15, 4294967295 store i64 %18, i64* %rax.0.reg2mem br label LBL_12 LBL_7: %19 = add i64 %0, 24 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = load i64, i64* %12, align 8 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = add i32 %24, %21 store i32 %25, i32* %20, align 4 br label LBL_8 LBL_8: %26 = add i64 %0, 16 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = icmp eq i64 %28, 0 store i64 0, i64* %rax.0.reg2mem br i1 %29, label LBL_12, label LBL_9 LBL_9: %30 = call i64 @FUNC(i64 %28) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 br i1 %32, label LBL_11, label LBL_10 LBL_10: %33 = and i64 %30, 4294967295 store i64 %33, i64* %rax.0.reg2mem br label LBL_12 LBL_11: %34 = add i64 %0, 24 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = load i64, i64* %27, align 8 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = add i32 %39, %36 store i32 %40, i32* %35, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 4, 5, 3, 6, 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 5, 1, 4, 3 } uselistorder i64 (i64)* @gf_isom_box_size, { 2, 1, 0 } uselistorder label LBL_12, { 1, 2, 0, 3, 4 } }
0
BinRealVul
user_update_12102
user_update
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %2, i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_1, label LBL_5 LBL_1: %8 = ptrtoint i64* %arg2 to i64 %9 = add i64 %8, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 store i32 %11, i32* %arg1, align 4 %12 = add i64 %2, 4 %13 = call i64 @FUNC(i64 1, i64 %12) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false store i64 0, i64* %sv_0.0.reg2mem br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = call i64 @FUNC(i64 %2) store i64 %17, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %18 = add i64 %8, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %2, i64 %20) store i64 0, i64* %19, align 8 %22 = icmp eq i64 %sv_0.0.reload, 0 br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = call i64 @FUNC(i64 %sv_0.0.reload, i64 4198819) br label LBL_5 LBL_5: %storemerge = and i64 %4, 4294967295 ret i64 %storemerge uselistorder i64 %2, { 1, 0, 2, 3 } uselistorder label LBL_5, { 1, 0, 2 } }
1
BinRealVul
put_filp_12322
put_filp
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %arg1) %5 = call i64 @FUNC(i64 %arg1) store i64 %5, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 1, { 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 0, 3 } }
1
BinRealVul
opts_type_size_15153
opts_type_size
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg4 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8*, align 8 %2 = call i64 @FUNC(i64 %1, i64 %arg3, i64 %0) %3 = icmp eq i64 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_5, label LBL_1 LBL_1: %4 = inttoptr i64 %2 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 %spec.select = select i1 %6, i64 ptrtoint (i64* @gv_0 to i64), i64 %5 %7 = bitcast i8** %sv_0 to i64* %8 = call i64 @FUNC(i64 %spec.select, i64* nonnull %7, i64 0) %9 = icmp eq i64 %8, -1 br i1 %9, label LBL_4, label LBL_2 LBL_2: %10 = load i8*, i8** %sv_0, align 8 %11 = load i8, i8* %10, align 1 %12 = icmp eq i8 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_4, label LBL_3 LBL_3: store i64 %8, i64* %arg2, align 8 %14 = call i64 @FUNC(i64 %1, i64 %arg3) store i64 %14, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %15 = add i64 %2, 8 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = call i64 @FUNC(i64 %0, i64 1, i64 %17, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0)) store i64 %18, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64 -1, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0 } }
1
BinRealVul
qdev_try_create_15807
qdev_try_create
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg2) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_5 LBL_1: %3 = call i64 @FUNC(i64 %arg2) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_5 LBL_2: %6 = icmp eq i64 %arg1, 0 %7 = icmp eq i1 %6, false store i64 %arg1, i64* %sv_0.0.reg2mem br i1 %7, label LBL_4, label LBL_3 LBL_3: %8 = call i64 @FUNC() store i64 %8, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %9 = call i64 @FUNC(i64 %3, i64 %sv_0.0.reload) %10 = call i64 @FUNC(i64 %3) store i64 %3, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 1, { 2, 1, 0 } uselistorder label LBL_5, { 2, 0, 1 } }
1
BinRealVul
xt_write_recseq_begin_19211
xt_write_recseq_begin
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %1 = zext i32 %0 to i64 %2 = call i64 @FUNC(i64 %1) %3 = urem i64 %2, 2 %4 = xor i64 %3, 1 %5 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %6 = zext i32 %5 to i64 %7 = call i64 @FUNC(i64 %6, i64 %4) %8 = call i64 @FUNC() ret i64 %4 uselistorder i64 %4, { 1, 0 } }
1
BinRealVul
test_interface_impl_14549
test_interface_impl
define i64 @FUNC(i8* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i8* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %2) %4 = and i64 %2, 4294967295 %5 = call i64 @FUNC(i64 %4) %6 = inttoptr i64 %3 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 1 %9 = zext i1 %8 to i64 %10 = call i64 @FUNC(i64 %9) ret i64 %10 uselistorder i32 1, { 1, 2, 3, 0, 4 } uselistorder i64 (i64)* @g_assert, { 1, 0 } }
1
BinRealVul
flush_blks_1027
flush_blks
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = load i32, i32* @gv_0, align 4 %1 = load i32, i32* @gv_1, align 4 %2 = load i32, i32* @gv_2, align 4 %3 = zext i32 %0 to i64 %4 = zext i32 %1 to i64 %5 = zext i32 %2 to i64 %6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 %5, i64 %4, i64 %3) %7 = call i64 @FUNC() %8 = call i64 @FUNC(i64 %arg1) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %10, label LBL_1, label LBL_6 LBL_1: %11 = load i32, i32* bitcast (i64* @gv_5 to i32*), align 8 %12 = icmp slt i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = zext i32 %11 to i64 store i64 %14, i64* %sv_0.0.reg2mem br label LBL_6 LBL_3: %15 = call i64 @FUNC() %16 = call i64 @FUNC(i64 %arg1, i64 ptrtoint (i64* @gv_5 to i64)) %17 = call i64 @FUNC() %18 = load i64, i64* inttoptr (i64 add (i64 ptrtoint (i64* @gv_5 to i64), i64 8) to i64*), align 8 %19 = call i64 @FUNC(i64 %18) %20 = call i64 @FUNC(i64 ptrtoint (i64* @gv_5 to i64)) %21 = load i32, i32* @gv_1, align 4 %22 = add i32 %21, -1 store i32 %22, i32* @gv_1, align 4 store i32 ptrtoint (i32* @gv_6 to i32), i32* @gv_0, align 4 %23 = icmp slt i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_4, label LBL_5 LBL_4: %25 = call i64 @FUNC(i64 %arg1) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %27, label LBL_1, label LBL_6 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_8, i64 0, i64 0), i32 69, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_9, i64 0, i64 0)) br label LBL_4 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %28 = call i64 @FUNC() %29 = load i32, i32* @gv_0, align 4 %30 = load i32, i32* @gv_1, align 4 %31 = load i32, i32* @gv_2, align 4 %32 = zext i32 %29 to i64 %33 = zext i32 %30 to i64 %34 = zext i32 %31 to i64 %35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 %34, i64 %33, i64 %32) ret i64 %sv_0.0.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 } uselistorder i64 (i64)* @g_free, { 1, 0 } uselistorder i64 ptrtoint (i64* @gv_5 to i64), { 1, 0, 2 } uselistorder i64 (i64)* @qemu_file_rate_limit, { 1, 0 } uselistorder i64 ()* @blk_mig_lock, { 1, 0 } uselistorder i32 (i8*, ...)* @printf, { 1, 0 } uselistorder i64 %arg1, { 2, 1, 0 } uselistorder label LBL_6, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
neon_load_reg_14900
neon_load_reg
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() %1 = and i64 %arg2, 4294967295 %2 = and i64 %arg1, 4294967295 %3 = call i64 @FUNC(i64 %2, i64 %1) %4 = load i64, i64* @gv_0, align 8 %5 = and i64 %3, 4294967295 %6 = call i64 @FUNC(i64 %4, i64 %5) ret i64 %6 }
1
BinRealVul
install_process_keyring_to_cred_11202
install_process_keyring_to_cred
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null store i64 4294967279, i64* %rax.0.reg2mem br i1 %0, label LBL_1, label LBL_4 LBL_1: %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %1, 12 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 %9 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %8, i32 %4, i64 %1, i64 0, i64 0, i64 0, i64 0) %sext = mul i64 %9, 4294967296 %10 = ashr exact i64 %sext, 32 %11 = call i64 @FUNC(i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %10) store i64 %14, i64* %rax.0.reg2mem br label LBL_4 LBL_3: call void @llvm.trap() unreachable LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1