dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | ieee80211_enable_ps_18383 | ieee80211_enable_ps | 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 %1 to i32
%4 = icmp slt i32 %3, 1
%.pre = add i64 %2, 8
%.pre1 = inttoptr i64 %.pre to i32*
%.pre3 = load i32, i32* %.pre1, align 4
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = urem i32 %.pre3, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%11 = trunc i64 %9 to i32
%12 = add i32 %10, %11
%13 = add i64 %2, 12
%14 = zext i32 %12 to i64
%15 = call i64 @FUNC(i64 %13, i64 %14)
store i64 %15, i64* %storemerge.reg2mem
br label LBL_6
LBL_3:
%16 = and i32 %.pre3, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = ptrtoint i64* %arg2 to i64
%19 = call i64 @FUNC(i64 %2, i64 %18, i64 1)
br label LBL_5
LBL_5:
%20 = add i64 %2, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = or i32 %22, 4
store i32 %23, i32* %21, align 4
%24 = call i64 @FUNC(i64 %2, i64 3)
store i64 %24, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.pre3, { 1, 0 }
uselistorder i64 %2, { 2, 3, 4, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | query_memdev_17295 | query_memdev | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 16)
%5 = call i64 @FUNC(i64 32)
%6 = inttoptr i64 %4 to i64*
store i64 %5, i64* %6, align 8
%7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%8 = trunc i64 %7 to i32
%9 = inttoptr i64 %5 to i32*
store i32 %8, i32* %9, align 4
%10 = load i64, i64* %sv_0, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %12, label LBL_8, label LBL_2
LBL_2:
%13 = load i64, i64* %6, align 8
%14 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0)
%15 = trunc i64 %14 to i32
%16 = add i64 %13, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = load i64, i64* %sv_0, align 8
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %20, label LBL_8, label LBL_3
LBL_3:
%21 = load i64, i64* %6, align 8
%22 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_0)
%23 = trunc i64 %22 to i32
%24 = add i64 %21, 8
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = load i64, i64* %sv_0, align 8
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %28, label LBL_8, label LBL_4
LBL_4:
%29 = load i64, i64* %6, align 8
%30 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_0)
%31 = trunc i64 %30 to i32
%32 = add i64 %29, 12
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = load i64, i64* %sv_0, align 8
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %36, label LBL_8, label LBL_5
LBL_5:
%37 = load i64, i64* @gv_4, align 8
%38 = load i64, i64* %6, align 8
%39 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i64 %37, i64* nonnull %sv_0)
%40 = trunc i64 %39 to i32
%41 = add i64 %38, 16
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i64, i64* %sv_0, align 8
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %45, label LBL_8, label LBL_6
LBL_6:
%46 = load i64, i64* %6, align 8
%47 = add i64 %46, 24
%48 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_6, i64 0, i64 0), i64 %47, i64* nonnull %sv_0)
%49 = load i64, i64* %sv_0, align 8
%50 = icmp eq i64 %49, 0
%51 = icmp eq i1 %50, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %51, label LBL_8, label LBL_7
LBL_7:
%52 = add i64 %4, 8
%53 = inttoptr i64 %52 to i64*
store i64 ptrtoint ([11 x i8]* @gv_6 to i64), i64* %53, align 8
store i64 %4, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 6, 0, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12 }
uselistorder i64* %storemerge.reg2mem, { 0, 8, 6, 5, 4, 3, 2, 1, 7 }
uselistorder [11 x i8]* @gv_6, { 1, 0 }
uselistorder i64 (i64, i8*, i64*)* @object_property_get_bool, { 2, 1, 0 }
uselistorder i64 4294967295, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder label LBL_8, { 7, 5, 4, 3, 2, 1, 0, 6 }
} | 1 |
BinRealVul | eval_refl_2130 | eval_refl | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge37.reg2mem = alloca i32
%indvars.iv12.reg2mem = alloca i64
%indvars.iv14.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%5 = ptrtoint i64* %sv_2 to i64
%6 = add i64 %5, -128
store i64 0, i64* %indvars.iv14.reg2mem
br label LBL_1
LBL_1:
%indvars.iv14.reload = load i64, i64* %indvars.iv14.reg2mem
%7 = mul i64 %indvars.iv14.reload, 2
%8 = add i64 %7, %4
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = sext i16 %10 to i32
%12 = mul i64 %indvars.iv14.reload, 4
%13 = add i64 %6, %12
%14 = inttoptr i64 %13 to i32*
store i32 %11, i32* %14, align 4
%indvars.iv.next15 = add nuw nsw i64 %indvars.iv14.reload, 1
%exitcond16 = icmp eq i64 %indvars.iv.next15, 10
store i64 %indvars.iv.next15, i64* %indvars.iv14.reg2mem
br i1 %exitcond16, label LBL_2, label LBL_1
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = add i64 %15, 36
%17 = ptrtoint i64* %sv_0 to i64
%18 = add i64 %17, 36
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = inttoptr i64 %16 to i32*
store i32 %20, i32* %21, align 4
%22 = load i32, i32* %19, align 4
%23 = add i32 %22, 4096
%24 = icmp ult i32 %23, 8192
br i1 %24, label LBL_3, label LBL_4
LBL_3:
%25 = bitcast i64* %sv_1 to i32*
%26 = bitcast i64* %sv_0 to i32*
%27 = ptrtoint i64* %sv_1 to i64
store i64 9, i64* %indvars.iv12.reg2mem
store i32 8, i32* %storemerge37.reg2mem
br label LBL_5
LBL_4:
%28 = ptrtoint i64* %arg3 to i64
%29 = call i64 @FUNC(i64 %28, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%storemerge37.reload = load i32, i32* %storemerge37.reg2mem
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%30 = sext i32 %storemerge37.reload to i64
%31 = mul i64 %30, 4
%32 = add nsw i64 %31, 4
%33 = add i64 %32, %17
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = mul i32 %35, %35
%37 = ashr i32 %36, 12
%38 = sub nsw i32 4096, %37
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
%spec.select = select i1 %40, i32 %38, i32 -2
%41 = add i64 %32, %15
%42 = inttoptr i64 %41 to i32*
%43 = udiv i32 16777216, %spec.select
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%44 = mul i64 %indvars.iv.reload, 4
%45 = add i64 %44, %17
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = load i32, i32* %42, align 4
%49 = sub nsw i64 %30, %indvars.iv.reload
%50 = mul i64 %49, 4
%51 = add i64 %50, %17
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = mul i32 %53, %48
%55 = ashr i32 %54, 12
%56 = sub i32 %47, %55
%57 = mul i32 %56, %43
%58 = add i64 %44, %27
%59 = ashr i32 %57, 12
%60 = inttoptr i64 %58 to i32*
store i32 %59, i32* %60, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %indvars.iv12.reload
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%61 = add i64 %31, %27
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i32 %63, 4096
%65 = icmp ult i32 %64, 8192
store i64 1, i64* %rax.0.reg2mem
br i1 %65, label LBL_8, label LBL_9
LBL_8:
%66 = add i64 %31, %15
%67 = inttoptr i64 %66 to i32*
store i32 %63, i32* %67, align 4
%68 = load i32, i32* %25, align 8
%69 = load i32, i32* %26, align 8
store i32 %69, i32* %25, align 8
store i32 %68, i32* %26, align 8
%70 = add i32 %storemerge37.reload, -1
%71 = icmp slt i32 %70, 0
%72 = icmp eq i1 %71, false
%indvars.iv.next13 = add nsw i64 %indvars.iv12.reload, -1
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
store i32 %70, i32* %storemerge37.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %72, label LBL_5, label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %44, { 1, 0 }
uselistorder i32 %35, { 1, 0 }
uselistorder i64 %31, { 2, 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %storemerge37.reload, { 1, 0 }
uselistorder i32* %26, { 1, 0 }
uselistorder i32* %25, { 1, 0 }
uselistorder i64 %indvars.iv14.reload, { 0, 2, 1 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %indvars.iv14.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge37.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 4096, { 1, 0, 2 }
uselistorder i64 1, { 0, 3, 1, 2 }
uselistorder i64 4, { 0, 1, 4, 2, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | streamParseIDOrReply_8447 | streamParseIDOrReply | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i8
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i8, i8* %0
%sv_2 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %1)
%4 = icmp ult i64 %3, 128
br i1 %4, label LBL_1, label LBL_13
LBL_1:
%5 = ptrtoint i64* %arg3 to i64
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = add i32 %7, 1
%9 = call i64* @memcpy(i64* nonnull %sv_2, i64* %arg2, i32 %8)
%10 = load i64, i64* %sv_2, align 8
%11 = trunc i64 %10 to i8
%12 = icmp eq i8 %11, 45
%13 = icmp eq i8 %2, 0
%14 = icmp eq i1 %13, %12
br i1 %14, label LBL_2, label LBL_3
LBL_2:
store i64 0, i64* %arg3, align 8
%15 = add i64 %5, 8
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_3:
%17 = icmp eq i8 %11, 43
%18 = icmp eq i1 %13, %17
br i1 %18, label LBL_4, label LBL_5
LBL_4:
store i64 -1, i64* %arg3, align 8
%19 = add i64 %5, 8
%20 = inttoptr i64 %19 to i64*
store i64 -1, i64* %20, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_5:
%21 = bitcast i64* %sv_2 to i8*
%22 = call i8* @strchr(i8* nonnull %21, i32 45)
%23 = icmp eq i8* %22, null
br i1 %23, label LBL_7, label LBL_6
LBL_6:
store i8 0, i8* %22, align 1
br label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64* nonnull %sv_2, i64* nonnull %sv_1)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_13, label LBL_8
LBL_8:
br i1 %23, label LBL_11, label LBL_9
LBL_9:
%27 = ptrtoint i8* %22 to i64
%28 = add i64 %27, 1
%29 = inttoptr i64 %28 to i64*
%30 = call i64 @FUNC(i64* %29, i64* nonnull %sv_0)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_13, label LBL_9.LBL_12_crit_edge
LBL_10:
%.pre = load i64, i64* %sv_0, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_12
LBL_11:
store i64 %arg4, i64* %sv_0, align 8
store i64 %arg4, i64* %.reg2mem
br label LBL_12
LBL_12:
%.reload = load i64, i64* %.reg2mem
%33 = load i64, i64* %sv_1, align 8
store i64 %33, i64* %arg3, align 8
%34 = add i64 %5, 8
%35 = inttoptr i64 %34 to i64*
store i64 %.reload, i64* %35, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%36 = icmp eq i64* %arg1, null
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %36, label LBL_15, label LBL_14
LBL_14:
%37 = ptrtoint i64* %arg1 to i64
%38 = call i64 @FUNC(i64 %37, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64* %sv_2, { 0, 1, 3, 2 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %sv_0, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 4, 3 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64*, i64*)* @string2ull, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 1 }
uselistorder i64 (i64)* @sdslen, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_15, { 1, 0, 2, 3, 4 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | snd_hda_multi_out_analog_open_18476 | snd_hda_multi_out_analog_open | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.2.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rdx.0.in.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %1 to i32
%6 = and i64 %1, 4294967295
%7 = bitcast i64* %arg3 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %3, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i64 %6, i64* %rdx.2.reg2mem
br i1 %11, label LBL_9, label LBL_1
LBL_1:
%12 = ptrtoint i64* %arg4 to i64
%13 = ptrtoint i64* %arg3 to i64
%14 = add i64 %3, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = trunc i64 %2 to i32
store i32 %19, i32* %15, align 4
%20 = add i64 %12, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %3, 12
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = add i64 %12, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %3, 16
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
store i32 %27, i32* %rdx.0.in.reg2mem
br label LBL_4
LBL_3:
%30 = add i64 %13, 4
%31 = inttoptr i64 %30 to i32*
store i32 %16, i32* %31, align 4
%32 = add i64 %3, 12
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %13, 8
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = add i64 %3, 16
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = add i64 %12, 8
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
store i32 %39, i32* %rdx.0.in.reg2mem
br label LBL_4
LBL_4:
%rdx.0.in.reload = load i32, i32* %rdx.0.in.reg2mem
%rdx.0 = zext i32 %rdx.0.in.reload to i64
%42 = add i64 %3, 20
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 %rdx.0, i64* %rdx.1.reg2mem
br i1 %46, label LBL_6, label LBL_5
LBL_5:
%47 = add i64 %3, 28
%48 = add i64 %3, 24
%49 = load i32, i32* %9, align 4
%50 = call i64 @FUNC(i64 %4, i32 %49, i64 %42, i64 %48, i64 %47)
store i64 %42, i64* %rdx.1.reg2mem
br label LBL_6
LBL_6:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%51 = call i64 @FUNC(i64 %4)
%52 = add i64 %3, 32
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = icmp eq i32 %54, 0
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
br i1 %55, label LBL_9, label LBL_7
LBL_7:
%56 = add i64 %13, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = load i32, i32* %43, align 4
%60 = and i32 %59, %58
store i32 %60, i32* %57, align 4
%61 = add i64 %13, 8
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i64 %3, 24
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = and i32 %66, %63
store i32 %67, i32* %62, align 4
%68 = add i64 %3, 28
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = zext i32 %70 to i64
%72 = add i64 %12, 8
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp ult i32 %70, %74
store i64 %71, i64* %rdx.2.reg2mem
br i1 %75, label LBL_8, label LBL_9
LBL_8:
store i32 %70, i32* %73, align 4
store i64 %71, i64* %rdx.2.reg2mem
br label LBL_9
LBL_9:
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%76 = call i64 @FUNC(i64 %4)
%77 = call i64 @FUNC(i64 %rdx.2.reload, i64 0, i64 1, i64 2)
ret i64 %77
uselistorder i64 %71, { 1, 0 }
uselistorder i64 %12, { 2, 3, 0, 1 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %3, { 2, 3, 4, 6, 7, 5, 8, 9, 0, 1, 10, 11 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %rdx.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.2.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | dns_HTTPS_add_ipv4hint_12939 | dns_HTTPS_add_ipv4hint | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i16, align 2
%1 = call i64 @FUNC(i64 %0)
%2 = mul i64 %arg3, 4
%3 = add i64 %2, 4
%4 = and i64 %3, 4294967292
%5 = icmp slt i64 %1, %4
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %5, label LBL_4, label LBL_1
LBL_1:
store i16 1, i16* %sv_0, align 2
%6 = call i64 @FUNC(i64 %0, i16* nonnull %sv_0, i64 2)
%arg3.tr = trunc i64 %arg3 to i16
%7 = mul i16 %arg3.tr, 4
store i16 %7, i16* %sv_0, align 2
%8 = call i64 @FUNC(i64 %0, i16* nonnull %sv_0, i64 2)
%9 = trunc i64 %arg3 to i32
%10 = icmp sgt i32 %9, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_2, label LBL_4
LBL_2:
%11 = ptrtoint i64* %arg2 to i64
%wide.trip.count = and i64 %arg3, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = mul i64 %indvars.iv.reload, 4
%13 = add i64 %12, %11
%14 = inttoptr i64 %13 to i16*
%15 = call i64 @FUNC(i64 %0, i16* %14, i64 4)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i16* %sv_0, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i16*, i64)* @dns_add_rr_nested_memcpy, { 2, 1, 0 }
uselistorder i64 4, { 3, 0, 2, 1 }
uselistorder i64 %arg3, { 1, 3, 2, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | new_node_19110 | new_node | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = sext i32 %2 to i64
%4 = mul nsw i64 %3, 24
%5 = add i64 %4, %arg1
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %5, 16
%10 = inttoptr i64 %9 to i32*
store i32 -1, i32* %10, align 4
%11 = load i32, i32* %1, align 4
%12 = add i32 %11, 1
store i32 %12, i32* %1, align 4
ret i64 %5
} | 1 |
BinRealVul | inspect_mount_handle_7597 | inspect_mount_handle | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load [13 x i8]*, [13 x i8]** @gv_1, align 8
%3 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%4 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 0
%5 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %3, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_3, i64 0, i64 0), i8* %4)
call void @exit(i32 1)
unreachable
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = call i64 @FUNC(i64 %arg1)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @exit(i32 1)
unreachable
LBL_4:
%10 = inttoptr i64 %7 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = load [13 x i8]*, [13 x i8]** @gv_1, align 8
%15 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%16 = getelementptr inbounds [13 x i8], [13 x i8]* %14, i64 0, i64 0
%17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([589 x i8], [589 x i8]* @gv_4, i64 0, i64 0), i8* %16)
%18 = call i64 @FUNC(i64 %7)
call void @exit(i32 1)
unreachable
LBL_6:
%19 = add i64 %7, 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_8, label LBL_7
LBL_7:
%23 = load [13 x i8]*, [13 x i8]** @gv_1, align 8
%24 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%25 = getelementptr inbounds [13 x i8], [13 x i8]* %23, i64 0, i64 0
%26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([606 x i8], [606 x i8]* @gv_5, i64 0, i64 0), i8* %25)
%27 = call i64 @FUNC(i64 %7)
call void @exit(i32 1)
unreachable
LBL_8:
store i64 %11, i64* @gv_6, align 8
call void @free(i64* %10)
%28 = load i64, i64* @gv_6, align 8
%29 = call i64 @FUNC(i64 %arg1, i64 %28)
ret i64 %29
uselistorder i64 %7, { 1, 2, 0, 3, 4 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64)* @guestfs___free_string_list, { 1, 0 }
uselistorder void (i32)* @exit, { 3, 2, 1, 0 }
uselistorder i32 1, { 2, 3, 4, 5, 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 2, 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | cg_rmdir_12604 | cg_rmdir | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i64, align 8
%0 = call i64 @FUNC()
store i64 0, i64* %sv_2, align 8
store i8* null, i8** %sv_1, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_8
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %arg1)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_8
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_8
LBL_3:
%9 = bitcast i8** %sv_1 to i64*
%10 = call i64 @FUNC(i64 %6, i64* nonnull %9, i64* nonnull %sv_2)
%11 = load i64, i64* %sv_2, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_7
LBL_4:
%14 = inttoptr i64 %3 to i8*
%15 = load i8*, i8** %sv_1, align 8
%16 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%17 = inttoptr i64 %arg1 to i8*
%18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %16, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i8* %14, i8* %15, i8* %17)
%19 = load i8*, i8** %sv_1, align 8
%20 = ptrtoint i8* %19 to i64
%21 = call i64 @FUNC(i64 %0, i64 %3, i64 %20, i64 0, i64 1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 4294967283, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_5, label LBL_7
LBL_5:
%25 = inttoptr i64 %0 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %27, i64 %3, i64 %6, i64 0)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 4294967283, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_6, label LBL_7
LBL_6:
%32 = call i64 @FUNC(i64 %3, i64 %6)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
%. = select i1 %35, i64 0, i64 4294967274
store i64 %., i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = load i8*, i8** %sv_1, align 8
%37 = bitcast i8* %36 to i64*
call void @free(i64* %37)
store i64 %sv_0.0.reload, 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 %0, { 2, 0, 1, 3 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i8** %sv_1, { 3, 2, 1, 4, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder i64 4294967274, { 3, 2, 0, 1 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | fio_worker_cleanup_13122 | fio_worker_cleanup | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = load i64, i64* @gv_0, align 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i32 @getpid()
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %11, i64 %4, i64 %5, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 0)
store i64 0, i64* %storemerge26.reg2mem
br label LBL_4
LBL_4:
%storemerge26.reload = load i64, i64* %storemerge26.reg2mem
%15 = call i64 @FUNC(i64 %storemerge26.reload)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %storemerge26.reload)
%19 = call i64 @FUNC(i64 4199028, i64 %18, i64 0)
br label LBL_6
LBL_6:
%20 = add i64 %storemerge26.reload, 1
%21 = load i64, i64* @gv_0, align 8
%22 = add i64 %21, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp ugt i64 %20, %24
store i64 %20, i64* %storemerge26.reg2mem
br i1 %25, label LBL_7, label LBL_4
LBL_7:
%26 = call i64 @FUNC(i64 4198967, i64 0, i64 0)
%27 = call i64 @FUNC()
store i64 0, i64* %storemerge13.reg2mem
br label LBL_8
LBL_8:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%28 = call i64 @FUNC(i64 %storemerge13.reload)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_10, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %storemerge13.reload)
%33 = icmp ult i64 %32, 4294967296
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = call i64 @FUNC(i64 %storemerge13.reload)
%35 = call i64 @FUNC(i64 %34)
br label LBL_11
LBL_11:
%36 = add i64 %storemerge13.reload, 1
%37 = load i64, i64* @gv_0, align 8
%38 = add i64 %37, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp ugt i64 %36, %40
store i64 %36, i64* %storemerge13.reg2mem
br i1 %41, label LBL_12, label LBL_8
LBL_12:
%42 = call i64 @FUNC()
%43 = call i64 @FUNC(i64 1)
%44 = call i64 @FUNC()
%45 = load i64, i64* @gv_0, align 8
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_15, label LBL_13
LBL_13:
%50 = call i64 @FUNC()
br label LBL_14
LBL_14:
%51 = call i32 @wait(i64 0)
%52 = icmp eq i32 %51, -1
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_14, label LBL_15
LBL_15:
%54 = call i64 @FUNC()
%55 = call i64 @FUNC()
%56 = load i64, i64* @gv_0, align 8
%57 = add i64 %56, 4
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = call i32 @getpid()
%61 = icmp eq i32 %59, %60
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_17, label LBL_16
LBL_16:
%63 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_3, i64 0, i64 0), i64 0, i64 0, i64 %5, i64 %2, i64 %1)
store i64 %63, i64* %storemerge.reg2mem
br label LBL_18
LBL_17:
%64 = call i32 @getpid()
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_4, i64 0, i64 0), i64 %65, i64 0, i64 %5, i64 %2, i64 %1)
store i64 %66, i64* %storemerge.reg2mem
br label LBL_18
LBL_18:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge13.reload, { 3, 1, 0, 2 }
uselistorder i64 %storemerge26.reload, { 2, 0, 1 }
uselistorder i64 %5, { 3, 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %storemerge26.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 ()* @fio_defer_perform, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @fd2uuid, { 1, 0 }
uselistorder i64 (i64)* @fd_data, { 2, 1, 0 }
uselistorder i64 (i64)* @fio_state_callback_force, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @FIO_LOG_INFO, { 3, 2, 1, 0 }
uselistorder i32 1, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 12, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | move_audio_627 | move_audio | define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge3.lcssa.reg2mem = alloca i64
%storemerge45.reg2mem = alloca i32
%.reg2mem8 = alloca i64
%.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32*, align 8
store i32* null, i32** %sv_0, align 8
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i32 %3, 31
%5 = urem i32 %4, 32
%6 = shl i32 1, %5
%storemerge = zext i32 %6 to i64
%7 = ashr i32 %6, 31
%8 = zext i32 %7 to i64
%9 = mul i64 %8, 4294967296
%10 = or i64 %9, %storemerge
%11 = zext i32 %arg4 to i64
%12 = sdiv i64 %10, %11
%13 = trunc i64 %12 to i32
%14 = icmp sgt i32 %13, 0
store i64 0, i64* %storemerge3.lcssa.reg2mem
br i1 %14, label LBL_1, label LBL_7
LBL_1:
%15 = add i64 %0, 16
%16 = add i64 %0, 8
%17 = inttoptr i64 %16 to i32*
%18 = bitcast i32** %sv_0 to i64*
%wide.trip.count = and i64 %12, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%19 = call i64 @FUNC(i64 %15)
%20 = inttoptr i64 %19 to i32*
store i32* %20, i32** %sv_0, align 8
%21 = load i32, i32* %20, align 4
%22 = add i32 %21, %6
store i32 %22, i32* %arg3, align 4
%23 = load i32, i32* %17, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_6, label LBL_3
LBL_3:
%25 = trunc i64 %indvars.iv.reload to i32
%26 = mul i32 %25, %arg4
%27 = sext i32 %26 to i64
store i32* %20, i32** %.reg2mem
store i64 0, i64* %.reg2mem8
store i32 0, i32* %storemerge45.reg2mem
br label LBL_4
LBL_4:
%storemerge45.reload = load i32, i32* %storemerge45.reg2mem
%.reload9 = load i64, i64* %.reg2mem8
%.reload = load i32*, i32** %.reg2mem
%28 = ptrtoint i32* %.reload to i64
%29 = add i64 %28, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = mul i64 %.reload9, 8
%33 = add i64 %31, %32
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = load i32, i32* %.reload, align 4
%37 = mul i32 %36, 4
%38 = shl i32 %storemerge45.reload, %5
%39 = sext i32 %38 to i64
%40 = add nsw i64 %39, %27
%41 = mul i64 %40, 4
%42 = add i64 %41, %arg2
%43 = inttoptr i64 %42 to i64*
%44 = inttoptr i64 %35 to i64*
%45 = call i64* @memcpy(i64* %43, i64* %44, i32 %37)
%46 = add i32 %storemerge45.reload, 1
%47 = load i32, i32* %17, align 4
%48 = zext i32 %47 to i64
%49 = sext i32 %46 to i64
%50 = icmp slt i64 %49, %48
br i1 %50, label LBL_4.LBL_4_crit_edge, label LBL_6
LBL_5:
%.pre = load i32*, i32** %sv_0, align 8
store i32* %.pre, i32** %.reg2mem
store i64 %49, i64* %.reg2mem8
store i32 %46, i32* %storemerge45.reg2mem
br label LBL_4
LBL_6:
%51 = call i64 @FUNC(i64* nonnull %18)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %storemerge3.lcssa.reg2mem
br i1 %exitcond, label LBL_7, label LBL_2
LBL_7:
%storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem
ret i64 %storemerge3.lcssa.reload
uselistorder i32 %storemerge45.reload, { 1, 0 }
uselistorder i32* %17, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i32** %sv_0, { 0, 2, 3, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem8, { 1, 0, 2 }
uselistorder i32* %storemerge45.reg2mem, { 1, 0, 2 }
uselistorder i32 31, { 1, 0 }
} | 0 |
BinRealVul | virtio_rng_class_init_2976 | virtio_rng_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
store i64 %1, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 0, i64 %2)
store i64 4198702, i64* %arg1, align 8
%4 = inttoptr i64 %2 to i64*
store i64 4198709, i64* %4, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 4198716, i64* %6, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | ath9k_btcoex_stop_gen_timer_17814 | ath9k_btcoex_stop_gen_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = and i64 %1, 4294967295
%7 = call i64 @FUNC(i64 %5, i64 %6)
ret i64 %7
} | 1 |
BinRealVul | save_text_if_changed_6550 | save_text_if_changed | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 %arg1)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = load i64, i64* @gv_1, align 8
%4 = icmp eq i64 %3, 0
store i64 ptrtoint (i8** @gv_2 to i64), i64* %storemerge2.reg2mem
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %3, i64 %arg1)
store i64 %5, i64* %storemerge2.reg2mem
br label LBL_3
LBL_3:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%6 = inttoptr i64 %storemerge2.reload to i8*
%7 = icmp eq i64 %storemerge2.reload, 0
%8 = icmp eq i1 %7, false
%spec.select = select i1 %8, i8* %6, i8* bitcast (i8** @gv_2 to i8*)
%9 = inttoptr i64 %arg2 to i8*
%10 = call i32 @strcmp(i8* %9, i8* %spec.select)
%11 = icmp eq i32 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_7, label LBL_4
LBL_4:
%12 = load i64, i64* @gv_3, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %13, i64 %arg1, i64 %arg2)
br label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %13)
store i64 %16, 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 %storemerge2.reload, { 1, 0 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | superh_cpu_do_interrupt_7452 | superh_cpu_do_interrupt | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i32
%.reg2mem6 = alloca i1
%.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
%6 = call i64 @FUNC(i64 %5)
%7 = inttoptr i64 %6 to i32*
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, -1
%12 = icmp eq i1 %11, false
%13 = urem i64 %3, 2
%14 = icmp eq i64 %13, 0
%brmerge = or i1 %14, %12
%15 = load i32, i32* %7, align 4
%16 = urem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_9, label LBL_1
LBL_1:
%18 = icmp eq i1 %12, false
br i1 %18, label LBL_5, label LBL_2
LBL_2:
%19 = icmp eq i32 %10, 480
br i1 %19, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %9, align 4
br label LBL_4
LBL_4:
%20 = add i64 %6, 4
%21 = inttoptr i64 %20 to i32*
store i32* %21, i32** %.reg2mem
br label LBL_6
LBL_5:
%22 = add i64 %6, 4
%23 = inttoptr i64 %22 to i32*
store i32* %23, i32** %.reg2mem
br i1 %brmerge, label LBL_6, label LBL_7
LBL_6:
%.reload = load i32*, i32** %.reg2mem
store i32 0, i32* %.reload, align 4
store i1 true, i1* %.reg2mem6
store i32 %10, i32* %sv_1.0.reg2mem
br label LBL_11
LBL_7:
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %25, label LBL_56, label LBL_65
LBL_8:
store i32 0, i32* %23, align 4
br label LBL_10
LBL_9:
%26 = add i64 %6, 4
%27 = inttoptr i64 %26 to i32*
store i32 0, i32* %27, align 4
store i1 true, i1* %.reg2mem6
store i32 %10, i32* %sv_1.0.reg2mem
br i1 %brmerge, label LBL_11, label LBL_10
LBL_10:
%28 = load i32, i32* %7, align 4
%29 = udiv i32 %28, 16
%30 = urem i32 %29, 16
%31 = add i64 %6, 104
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %30 to i64
%35 = zext i32 %33 to i64
%36 = call i64 @FUNC(i64 %35, i64 %34)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, -1
store i1 false, i1* %.reg2mem6
store i32 %37, i32* %sv_1.0.reg2mem
store i64 %36, i64* %rax.1.reg2mem
br i1 %38, label LBL_56, label LBL_11
LBL_11:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.reload7 = load i1, i1* %.reg2mem6
%39 = call i64 @FUNC(i64 1)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_38, label LBL_12
LBL_12:
%42 = load i32, i32* %9, align 4
%43 = icmp eq i32 %42, 2080
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %43, label LBL_37, label LBL_13
LBL_13:
%44 = icmp sgt i32 %42, 2080
br i1 %44, label LBL_36, label LBL_14
LBL_14:
%45 = icmp eq i32 %42, 2048
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %45, label LBL_37, label LBL_15
LBL_15:
%46 = icmp sgt i32 %42, 2048
br i1 %46, label LBL_36, label LBL_16
LBL_16:
%47 = icmp eq i32 %42, 416
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %47, label LBL_37, label LBL_17
LBL_17:
%48 = icmp sgt i32 %42, 416
br i1 %48, label LBL_36, label LBL_18
LBL_18:
%49 = icmp eq i32 %42, 384
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %49, label LBL_37, label LBL_19
LBL_19:
%50 = icmp sgt i32 %42, 384
br i1 %50, label LBL_36, label LBL_20
LBL_20:
%51 = icmp eq i32 %42, 352
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %51, label LBL_37, label LBL_21
LBL_21:
%52 = icmp sgt i32 %42, 352
br i1 %52, label LBL_36, label LBL_22
LBL_22:
%53 = icmp eq i32 %42, 288
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_5, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %53, label LBL_37, label LBL_23
LBL_23:
%54 = icmp sgt i32 %42, 288
br i1 %54, label LBL_36, label LBL_24
LBL_24:
%55 = icmp eq i32 %42, 256
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_6, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %55, label LBL_37, label LBL_25
LBL_25:
%56 = icmp sgt i32 %42, 256
br i1 %56, label LBL_36, label LBL_26
LBL_26:
%57 = icmp eq i32 %42, 224
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_7, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %57, label LBL_37, label LBL_27
LBL_27:
%58 = icmp sgt i32 %42, 224
br i1 %58, label LBL_36, label LBL_28
LBL_28:
%59 = icmp eq i32 %42, 192
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %59, label LBL_37, label LBL_29
LBL_29:
%60 = icmp sgt i32 %42, 192
br i1 %60, label LBL_36, label LBL_30
LBL_30:
%61 = icmp eq i32 %42, 160
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_9, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %61, label LBL_37, label LBL_31
LBL_31:
%62 = icmp sgt i32 %42, 160
br i1 %62, label LBL_36, label LBL_32
LBL_32:
%63 = icmp eq i32 %42, 128
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_10, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %63, label LBL_37, label LBL_33
LBL_33:
%64 = icmp sgt i32 %42, 128
br i1 %64, label LBL_36, label LBL_34
LBL_34:
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_11, i64 0, i64 0), i8** %sv_0.0.reg2mem
switch i32 %42, label LBL_36 [
i32 64, label LBL_37
i32 96, label LBL_35
]
LBL_35:
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_12, i64 0, i64 0), i8** %sv_0.0.reg2mem
br label LBL_37
LBL_36:
%65 = select i1 %.reload7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_13, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_14, i64 0, i64 0)
store i8* %65, i8** %sv_0.0.reg2mem
br label LBL_37
LBL_37:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%66 = ptrtoint i8* %sv_0.0.reload to i64
%67 = zext i32 %sv_1.0.reload to i64
%68 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_15, i64 0, i64 0), i64 %67, i64 %66, i64 %4, i64 %2, i64 %1)
%69 = call i64 @FUNC(i64 %5, i64 0)
br label LBL_38
LBL_38:
%70 = call i64 @FUNC(i64 %6)
%71 = trunc i64 %70 to i32
%72 = add i64 %6, 84
%73 = inttoptr i64 %72 to i32*
store i32 %71, i32* %73, align 4
%74 = add i64 %6, 12
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = add i64 %6, 88
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = add i64 %6, 76
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i64 %6, 92
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = load i32, i32* %7, align 4
%85 = or i32 %84, 7
store i32 %85, i32* %7, align 4
%86 = add i64 %6, 80
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = and i32 %88, 12
%90 = icmp eq i32 %89, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %90, label LBL_40, label LBL_39
LBL_39:
%91 = load i32, i32* %78, align 4
%92 = add i32 %91, -2
store i32 %92, i32* %78, align 4
%93 = load i32, i32* %87, align 4
%94 = and i32 %93, -13
store i32 %94, i32* %87, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_40
LBL_40:
%95 = icmp eq i1 %12, false
br i1 %95, label LBL_54, label LBL_41
LBL_41:
%96 = load i32, i32* %9, align 4
%97 = add i64 %6, 96
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
%99 = load i32, i32* %9, align 4
%100 = icmp eq i32 %99, 352
br i1 %100, label LBL_52, label LBL_42
LBL_42:
%101 = icmp sgt i32 %99, 352
br i1 %101, label LBL_53, label LBL_43
LBL_43:
%102 = icmp eq i32 %99, 320
br i1 %102, label LBL_50, label LBL_44
LBL_44:
%103 = icmp sgt i32 %99, 320
br i1 %103, label LBL_53, label LBL_45
LBL_45:
%104 = icmp eq i32 %99, 96
br i1 %104, label LBL_51, label LBL_46
LBL_46:
%105 = icmp sgt i32 %99, 96
br i1 %105, label LBL_53, label LBL_47
LBL_47:
%106 = icmp eq i32 %99, 64
br i1 %106, label LBL_51, label LBL_48
LBL_48:
%107 = icmp sgt i32 %99, 64
br i1 %107, label LBL_53, label LBL_49
LBL_49:
%108 = icmp ne i32 %99, 0
%109 = icmp eq i32 %99, 32
%110 = icmp eq i1 %109, false
%or.cond = icmp eq i1 %108, %110
br i1 %or.cond, label LBL_53, label LBL_50
LBL_50:
%111 = load i32, i32* %7, align 4
%112 = and i32 %111, -249
%113 = or i32 %112, 240
store i32 %113, i32* %7, align 4
store i32 -1610612736, i32* %75, align 4
store i64 %6, i64* %rax.1.reg2mem
br label LBL_56
LBL_51:
%114 = add i64 %6, 8
%115 = inttoptr i64 %114 to i32*
%116 = load i32, i32* %115, align 4
%117 = add i32 %116, 1024
store i32 %117, i32* %75, align 4
store i64 %6, i64* %rax.1.reg2mem
br label LBL_56
LBL_52:
%118 = load i32, i32* %78, align 4
%119 = add i32 %118, 2
store i32 %119, i32* %78, align 4
br label LBL_53
LBL_53:
%120 = add i64 %6, 8
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = add i32 %122, 256
store i32 %123, i32* %75, align 4
store i64 %6, i64* %rax.1.reg2mem
br label LBL_56
LBL_54:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %.reload7, label LBL_56, label LBL_55
LBL_55:
%124 = add i64 %6, 100
%125 = inttoptr i64 %124 to i32*
store i32 %sv_1.0.reload, i32* %125, align 4
%126 = add i64 %6, 8
%127 = inttoptr i64 %126 to i32*
%128 = load i32, i32* %127, align 4
%129 = add i32 %128, 1536
store i32 %129, i32* %75, align 4
store i64 %6, i64* %rax.1.reg2mem
br label LBL_56
LBL_56:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32* %87, { 1, 0, 2 }
uselistorder i32* %78, { 3, 2, 1, 0, 4 }
uselistorder i32* %75, { 3, 2, 0, 1, 4 }
uselistorder i32* %23, { 1, 2, 0 }
uselistorder i1 %12, { 1, 2, 0 }
uselistorder i32 %10, { 1, 0, 2, 3 }
uselistorder i32* %9, { 2, 3, 1, 0, 4 }
uselistorder i32* %7, { 1, 2, 4, 3, 0, 5 }
uselistorder i64 %6, { 3, 7, 8, 2, 10, 0, 9, 1, 11, 4, 12, 13, 14, 15, 16, 17, 18, 19, 20, 6, 5, 21 }
uselistorder i1* %.reg2mem6, { 0, 2, 3, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 14, 13, 11, 2, 10, 4, 12, 5, 3, 1, 9, 8, 7, 6 }
uselistorder i64* %rax.1.reg2mem, { 0, 6, 7, 5, 3, 4, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 320, { 1, 0 }
uselistorder i32 96, { 2, 1, 0 }
uselistorder i32 64, { 2, 1, 0 }
uselistorder i32 128, { 1, 0 }
uselistorder i32 160, { 1, 0 }
uselistorder i32 192, { 1, 0 }
uselistorder i32 224, { 1, 0 }
uselistorder i32 256, { 0, 2, 1 }
uselistorder i32 288, { 1, 0 }
uselistorder i32 352, { 2, 0, 3, 1 }
uselistorder i32 384, { 1, 0 }
uselistorder i32 416, { 1, 0 }
uselistorder i32 2048, { 1, 0 }
uselistorder i32 2080, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i1 true, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 6, 1, 7, 8 }
uselistorder i32 2, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i64 4, { 2, 1, 0, 3 }
uselistorder label LBL_56, { 5, 6, 4, 3, 2, 0, 1 }
uselistorder label LBL_53, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_37, { 12, 13, 10, 1, 9, 3, 11, 4, 2, 0, 8, 7, 6, 5 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | mtv_read_packet_2057 | mtv_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %3, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i64 %7 to i32
%12 = sub i32 %11, %10
%13 = trunc i64 %1 to i32
%14 = add i32 %12, %13
%15 = add i64 %3, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = ashr i32 %14, 31
%19 = zext i32 %14 to i64
%20 = zext i32 %18 to i64
%21 = mul i64 %20, 4294967296
%22 = or i64 %21, %19
%23 = zext i32 %17 to i64
%24 = srem i64 %22, %23
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_3, label LBL_1
LBL_1:
%27 = call i64 @FUNC(i64 %6, i64 0)
%28 = call i64 @FUNC(i64 %6, i64 %2, i64 0)
%29 = trunc i64 %28 to i32
%30 = icmp slt i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 %28, i64* %rax.0.in.reg2mem
br i1 %31, label LBL_2, label LBL_8
LBL_2:
%32 = bitcast i64* %arg2 to i32*
store i32 0, i32* %32, align 4
store i64 %28, i64* %rax.0.in.reg2mem
br label LBL_8
LBL_3:
%33 = and i64 %1, 4294967295
%34 = call i64 @FUNC(i64 %6, i64 %2, i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 %34, i64* %rax.0.in.reg2mem
br i1 %37, label LBL_4, label LBL_8
LBL_4:
%38 = icmp slt i32 %13, 0
%39 = zext i1 %38 to i32
%40 = add i32 %39, %13
%41 = icmp ugt i32 %40, 1
br i1 %41, label LBL_5, label LBL_7
LBL_5:
%42 = bitcast i64* %rdi to i32*
%43 = add i64 %2, 8
%44 = inttoptr i64 %43 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_6
LBL_6:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%45 = load i64, i64* %44, align 8
%46 = mul i64 %.reload, 2
%47 = add i64 %45, %46
%48 = inttoptr i64 %47 to i16*
%49 = load i16, i16* %48, align 2
%50 = zext i16 %49 to i64
%51 = call i64 @FUNC(i64 %50)
%52 = trunc i64 %51 to i16
store i16 %52, i16* %48, align 2
%53 = add i32 %storemerge1.reload, 1
%54 = load i32, i32* %42, align 8
%55 = icmp slt i32 %54, 0
%56 = zext i1 %55 to i32
%57 = add i32 %54, %56
%58 = ashr i32 %57, 1
%59 = zext i32 %58 to i64
%60 = sext i32 %53 to i64
%61 = icmp slt i64 %60, %59
store i64 %60, i64* %.reg2mem
store i32 %53, i32* %storemerge1.reg2mem
br i1 %61, label LBL_6, label LBL_7
LBL_7:
%62 = bitcast i64* %arg2 to i32*
store i32 1, i32* %62, align 4
store i64 %34, i64* %rax.0.in.reg2mem
br label LBL_8
LBL_8:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %13, { 1, 0, 2 }
uselistorder i64 %6, { 2, 1, 0, 3 }
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64 (i64, i64, i64)* @av_get_packet, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder label LBL_8, { 1, 2, 0, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | error_propagate_16869 | error_propagate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg2, 0
%3 = icmp eq i64* %arg1, @gv_0
%4 = icmp eq i1 %3, false
%or.cond = or i1 %2, %4
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg2)
call void @abort()
unreachable
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = icmp eq i64* %arg1, null
%spec.select = select i1 %7, i64 %1, i64 %6
store i64 %spec.select, i64* %rax.1.reg2mem
br i1 %2, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %arg2)
store i64 %8, i64* %rax.1.reg2mem
br label LBL_4
LBL_4:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64* %arg1, { 1, 2, 0 }
} | 1 |
BinRealVul | nbd_co_receive_request_16225 | nbd_co_receive_request | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.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 = call i64 @FUNC()
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = ptrtoint i32* %arg2 to i64
%10 = and i64 %3, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %9)
%12 = icmp slt i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 -5, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_1, label LBL_8
LBL_1:
%14 = trunc i64 %9 to i32
%15 = icmp ult i32 %14, 1025
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = and i64 %9, 4294967295
%17 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 1024, i64 %4, i64 %2, i64 %1)
store i64 -22, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_3:
%18 = add i64 %9, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, %14
%22 = icmp ult i32 %21, %20
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = zext i32 %21 to i64
%25 = call i64 @FUNC(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %24, i64 %4, i64 %2, i64 %1)
store i64 -22, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%26 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %9, i32 %21, i64 %4, i64 %2, i64 %1)
%27 = add i64 %9, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = urem i32 %29, 16
%31 = icmp eq i32 %30, 1
%32 = icmp eq i1 %31, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_8, label LBL_6
LBL_6:
%33 = and i64 %9, 4294967295
%34 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i64 %33, i32 %21, i64 %4, i64 %2, i64 %1)
%35 = load i64, i64* %8, align 8
%36 = call i64 @FUNC(i64 %10, i64 %35, i32 %14)
%37 = and i64 %35, 4294967295
%38 = icmp eq i64 %36, %37
store i64 0, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_8, label LBL_7
LBL_7:
%39 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_4, i64 0, i64 0), i64 %35, i64 %37, i64 %35, i64 %2, i64 %1)
store i64 -5, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 0, i64* %8, align 8
ret i64 %sv_0.0.reload
uselistorder i64 %37, { 1, 0 }
uselistorder i64 %35, { 2, 1, 0, 3 }
uselistorder i32 %21, { 0, 1, 3, 2 }
uselistorder i32 %20, { 1, 0 }
uselistorder i32 %14, { 1, 0, 2 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %9, { 0, 5, 2, 3, 6, 1, 4, 7 }
uselistorder i64 %4, { 1, 0, 2, 3 }
uselistorder i64 %2, { 4, 1, 0, 3, 2 }
uselistorder i64 %1, { 4, 1, 0, 3, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 2, 1, 5, 4, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @TRACE, { 1, 0 }
uselistorder i64 -22, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @LOG, { 2, 1, 0 }
uselistorder i64 -5, { 1, 0 }
uselistorder label LBL_8, { 3, 1, 0, 4, 5, 2 }
} | 1 |
BinRealVul | qemu_chr_open_785 | qemu_chr_open | define i64 @FUNC(i8* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i64, i64* %sv_0, align 8
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%6 = ptrtoint i8* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 %0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_7
LBL_3:
%10 = call i64 @FUNC(i64 %7, i64 %arg3)
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_6, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %10, i64 1)
br label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %7)
store i64 %10, 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 %7, { 1, 0, 2, 3 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 4, 2, 1, 0, 3 }
uselistorder label LBL_7, { 1, 0, 2 }
} | 0 |
BinRealVul | nfcmrvl_nci_unregister_dev_5838 | nfcmrvl_nci_unregister_dev | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %arg1, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = load i32, i32* %8, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
br label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %arg1)
%18 = call i64 @FUNC(i64 %arg1)
ret i64 %18
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 4, 3, 0, 5 }
} | 0 |
BinRealVul | _build_node_spec_bitmap_18464 | _build_node_spec_bitmap | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_1, label LBL_5
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = load i64, i64* @gv_0, align 8
%4 = sub i64 %2, %3
%5 = udiv i64 %4, 8
%6 = trunc i64 %5 to i32
%7 = mul i32 %6, -1431655765
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = add i32 %7, 1
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = sub i32 %14, %10
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = zext i32 %15 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %17, align 8
%20 = add i32 %15, -1
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %19, i64 0, i64 %21)
%23 = call i64 @FUNC(i64 %19)
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, -1
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_2, label LBL_4
LBL_2:
%28 = add i64 %2, 16
%29 = inttoptr i64 %28 to i32*
store i32 %25, i32* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i32, i32* %.reg2mem
%30 = or i32 %storemerge1.reload, 1
%31 = zext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = add i64 %32, %23
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = load i32, i32* %29, align 4
%37 = udiv i32 %35, %36
%38 = udiv i32 %.reload, %36
%39 = load i64, i64* %17, align 8
%40 = zext i32 %37 to i64
%41 = zext i32 %38 to i64
%42 = call i64 @FUNC(i64 %39, i64 %41, i64 %40)
%43 = add i32 %storemerge1.reload, 2
%44 = zext i32 %43 to i64
%45 = mul i64 %44, 4
%46 = add i64 %45, %23
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, -1
%50 = icmp eq i1 %49, false
store i32 %48, i32* %.reg2mem
store i32 %43, i32* %storemerge1.reg2mem
br i1 %50, label LBL_3, label LBL_4
LBL_4:
%51 = call i64 @FUNC(i64 %23)
br label LBL_5
LBL_5:
ret i64 0
uselistorder i32 %storemerge1.reload, { 1, 0 }
uselistorder i64 %23, { 3, 0, 1, 2 }
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i64 (i64)* @cr_get_coremap_offset, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | avalon_parse_results_4488 | avalon_parse_results | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem27 = alloca i32
%sv_0.05.reg2mem = alloca i1
%rcx.07.reg2mem = alloca i64
%.reg2mem25 = alloca i32
%.reg2mem = alloca i64
%rcx.0.ph.reg2mem = alloca i64
%storemerge412.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg5 to i64
%5 = ptrtoint i64* %arg4 to i64
%6 = ptrtoint i64* %arg2 to i64
%7 = trunc i64 %4 to i32
%8 = add i32 %7, -1024
%9 = icmp slt i32 %8, 0
store i64 %4, i64* %.reg2mem
store i32 %7, i32* %.reg2mem25
store i64 %5, i64* %rcx.07.reg2mem
store i1 false, i1* %sv_0.05.reg2mem
store i32 %8, i32* %.reg2mem27
br i1 %9, label LBL_6, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg3 to i64
%11 = trunc i64 %2 to i32
%12 = trunc i64 %3 to i32
%13 = ptrtoint i32* %arg1 to i64
store i32 0, i32* %storemerge412.reg2mem
br label LBL_2
LBL_2:
%storemerge412.reload = load i32, i32* %storemerge412.reg2mem
%14 = sext i32 %storemerge412.reload to i64
%15 = add i64 %14, %5
%16 = call i64 @FUNC(i64 %13, i64 %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_5, label LBL_3
LBL_3:
%18 = add i64 %6, 16
%19 = call i64 @FUNC(i64 %18)
%20 = add i32 %11, 1
%21 = icmp eq i32 %11, 0
%22 = zext i1 %21 to i32
%23 = urem i32 %22, %12
%24 = icmp eq i32 %23, 0
%spec.store.select = select i1 %24, i32 %20, i32 0
store i32 %spec.store.select, i32* %arg1, align 4
%25 = add i64 %6, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i32 %27, 1
store i32 %28, i32* %26, align 4
%29 = call i64 @FUNC(i64 %18)
%30 = call i64 @FUNC(i64 %10, i64 %13, i64 %6, i64 %15, i64 %16)
store i64 %15, i64* %rcx.0.ph.reg2mem
br i1 %24, label %34, label LBL_4
LBL_4:
%31 = call i64 @FUNC(i64 %13, i64 %6, i64 %15)
store i64 %6, i64* %rcx.0.ph.reg2mem
br label %34
LBL_5:
%32 = add i32 %storemerge412.reload, 1
%33 = icmp sgt i32 %32, %8
store i32 %32, i32* %storemerge412.reg2mem
store i64 %4, i64* %.reg2mem
store i32 %7, i32* %.reg2mem25
store i64 %5, i64* %rcx.07.reg2mem
store i1 false, i1* %sv_0.05.reg2mem
store i32 %8, i32* %.reg2mem27
br i1 %33, label LBL_6, label LBL_2
LBL_6:
%.reload28 = load i32, i32* %.reg2mem27
%sv_0.05.reload = load i1, i1* %sv_0.05.reg2mem
%rcx.07.reload = load i64, i64* %rcx.07.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%.reload = load i64, i64* %.reg2mem
%37 = zext i32 %.reload28 to i64
%38 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %37, i64 %rcx.07.reload, i64 %.reload, i64 %1)
%39 = sub i32 %.reload26, %.reload28
store i32 %39, i32* %arg5, align 4
%40 = sext i32 %.reload28 to i64
%41 = add i64 %40, %5
%42 = inttoptr i64 %41 to i64*
%43 = call i64* @memmove(i64* %arg4, i64* %42, i32 %.reload26)
store i64 0, i64* %rax.0.reg2mem
br i1 %sv_0.05.reload, label LBL_8, label LBL_7
LBL_7:
%44 = add i64 %6, 16
%45 = call i64 @FUNC(i64 %44)
%46 = add i64 %6, 8
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i32 %48, 1
store i32 %49, i32* %47, align 4
%50 = call i64 @FUNC(i64 %44)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload28, { 1, 0, 2 }
uselistorder i64 %15, { 1, 0, 2, 3 }
uselistorder i32 %storemerge412.reload, { 2, 0, 1 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i32 %11, { 1, 0 }
uselistorder i32 %8, { 0, 3, 1, 2 }
uselistorder i64 %6, { 6, 5, 0, 1, 2, 3, 4 }
uselistorder i64 %5, { 2, 0, 3, 1 }
uselistorder i32* %storemerge412.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %.reg2mem25, { 0, 3, 1, 2 }
uselistorder i64* %rcx.07.reg2mem, { 0, 3, 1, 2 }
uselistorder i1* %sv_0.05.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %.reg2mem27, { 0, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64)* @mutex_lock, { 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label %34, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tgv_decode_inter_107 | tgv_decode_inter | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv30.reg2mem = alloca i64
%indvars.iv27.reg2mem = alloca i64
%indvars.iv24.reg2mem = alloca i64
%indvars.iv33.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = add i64 %0, 12
%2 = icmp ugt i64 %1, %arg3
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_35
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = add i64 %0, 2
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %0, 4
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %0, 6
%12 = call i64 @FUNC(i64 %11)
%13 = add i64 %4, 40
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%sext = mul i64 %5, 4294967296
%17 = ashr exact i64 %sext, 32
%18 = icmp sgt i64 %17, %16
br i1 %18, label LBL_2, label LBL_3
LBL_2:
%19 = mul i32 %6, 2
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = add i64 %4, 48
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24, i64 %21)
store i64 %25, i64* %23, align 8
store i32 %6, i32* %14, align 4
br label LBL_3
LBL_3:
%26 = trunc i64 %10 to i32
%27 = add i64 %4, 56
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
%sext10 = mul i64 %10, 4294967296
%31 = ashr exact i64 %sext10, 32
%32 = icmp sgt i64 %31, %30
br i1 %32, label LBL_4, label LBL_5
LBL_4:
%33 = mul i32 %26, 16
%34 = sext i32 %33 to i64
%35 = add i64 %4, 64
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 %34)
store i64 %38, i64* %36, align 8
store i32 %26, i32* %28, align 4
br label LBL_5
LBL_5:
%39 = trunc i64 %8 to i32
%40 = mul i32 %6, 20
%41 = add i32 %40, 31
%42 = and i32 %41, -32
%43 = ashr exact i32 %42, 3
%44 = sext i32 %43 to i64
%45 = mul i32 %39, 16
%46 = sext i32 %45 to i64
%47 = mul i32 %26, 8
%48 = sext i32 %47 to i64
%49 = add i64 %1, %44
%50 = add i64 %49, %46
%51 = add i64 %50, %48
%52 = icmp ugt i64 %51, %arg3
%53 = icmp eq i1 %52, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %53, label LBL_6, label LBL_35
LBL_6:
%54 = call i64 @FUNC(i64* nonnull %sv_0, i64 %1, i32 %42)
%55 = icmp sgt i32 %6, 0
br i1 %55, label LBL_7, label LBL_9
LBL_7:
%56 = add i64 %4, 48
%57 = inttoptr i64 %56 to i64*
%wide.trip.count35 = and i64 %5, 4294967295
store i64 0, i64* %indvars.iv33.reg2mem
br label LBL_8
LBL_8:
%indvars.iv33.reload = load i64, i64* %indvars.iv33.reg2mem
%58 = load i64, i64* %57, align 8
%59 = mul i64 %indvars.iv33.reload, 8
%60 = add i64 %58, %59
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = call i64 @FUNC(i64* nonnull %sv_0, i64 10)
%64 = trunc i64 %63 to i32
%65 = inttoptr i64 %62 to i32*
store i32 %64, i32* %65, align 4
%66 = load i64, i64* %57, align 8
%67 = add i64 %66, %59
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = add i64 %69, 4
%71 = call i64 @FUNC(i64* nonnull %sv_0, i64 10)
%72 = trunc i64 %71 to i32
%73 = inttoptr i64 %70 to i32*
store i32 %72, i32* %73, align 4
%indvars.iv.next34 = add nuw nsw i64 %indvars.iv33.reload, 1
%exitcond36 = icmp eq i64 %indvars.iv.next34, %wide.trip.count35
store i64 %indvars.iv.next34, i64* %indvars.iv33.reg2mem
br i1 %exitcond36, label LBL_9, label LBL_8
LBL_9:
%74 = sub i64 %arg3, %50
%.tr = trunc i64 %74 to i32
%75 = mul i32 %.tr, 8
%76 = call i64 @FUNC(i64* nonnull %sv_0, i64 %50, i32 %75)
%77 = icmp sgt i32 %26, 0
br i1 %77, label LBL_10, label LBL_16
LBL_10:
%78 = ptrtoint i64* %sv_1 to i64
%79 = add i64 %78, -128
%80 = add i64 %4, 64
%81 = inttoptr i64 %80 to i64*
%wide.trip.count = and i64 %10, 4294967295
store i64 0, i64* %indvars.iv30.reg2mem
br label LBL_15
LBL_11:
%indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem
%82 = call i64 @FUNC(i64* nonnull %sv_0, i64 8)
%83 = trunc i64 %82 to i32
%84 = mul i64 %indvars.iv24.reload, 4
%85 = add i64 %84, %79
%86 = inttoptr i64 %85 to i32*
store i32 %83, i32* %86, align 4
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1
%exitcond26 = icmp eq i64 %indvars.iv.next25, 4
store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem
br i1 %exitcond26, label LBL_12, label LBL_11
LBL_12:
%87 = mul i64 %indvars.iv30.reload, 8
store i64 0, i64* %indvars.iv27.reg2mem
br label LBL_13
LBL_13:
%indvars.iv27.reload = load i64, i64* %indvars.iv27.reg2mem
%88 = call i64 @FUNC(i64* nonnull %sv_0, i64 2)
%sext6 = mul i64 %88, 4294967296
%89 = ashr exact i64 %sext6, 30
%90 = add i64 %89, %79
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = load i64, i64* %81, align 8
%94 = add i64 %93, %87
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = sub nuw nsw i64 15, %indvars.iv27.reload
%98 = add i64 %97, %96
%99 = trunc i32 %92 to i8
%100 = inttoptr i64 %98 to i8*
store i8 %99, i8* %100, align 1
%indvars.iv.next28 = add nuw nsw i64 %indvars.iv27.reload, 1
%exitcond29 = icmp eq i64 %indvars.iv.next28, 16
store i64 %indvars.iv.next28, i64* %indvars.iv27.reg2mem
br i1 %exitcond29, label LBL_14, label LBL_13
LBL_14:
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond32 = icmp eq i64 %indvars.iv.next31, %wide.trip.count
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
br i1 %exitcond32, label LBL_16, label LBL_15
LBL_15:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
store i64 0, i64* %indvars.iv24.reg2mem
br label LBL_11
LBL_16:
%101 = trunc i64 %12 to i32
%102 = ptrtoint i64* %sv_0 to i64
%103 = call i64 @FUNC(i64* nonnull %sv_0)
%104 = and i64 %103, 4294967295
%105 = or i64 %102, 4
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = sdiv i32 %107, 8
%109 = trunc i64 %102 to i32
%110 = ashr exact i32 %109, 2
%111 = mul i32 %110, %101
%112 = mul i32 %111, %108
%113 = zext i32 %112 to i64
%114 = icmp ult i64 %104, %113
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %114, label LBL_35, label LBL_17
LBL_17:
store i64 0, i64* %rax.0.reg2mem
br i1 false, label LBL_18, label LBL_35
LBL_18:
br label LBL_33
LBL_19:
br i1 undef, label LBL_21, label LBL_20
LBL_20:
br i1 undef, label LBL_25, label LBL_30
LBL_21:
br i1 undef, label LBL_22, label LBL_23
LBL_22:
br label LBL_25
LBL_23:
br i1 undef, label LBL_24, label LBL_30
LBL_24:
br label LBL_25
LBL_25:
br label LBL_28
LBL_26:
br i1 undef, label LBL_27, label LBL_26
LBL_27:
br i1 undef, label LBL_29, label LBL_28
LBL_28:
br label LBL_26
LBL_29:
br label LBL_30
LBL_30:
br i1 undef, label LBL_19, label LBL_31
LBL_31:
br label LBL_32
LBL_32:
store i64 0, i64* %rax.0.reg2mem
br i1 undef, label LBL_33, label LBL_35
LBL_33:
br i1 undef, label LBL_19.lr.ph, label LBL_32
LBL_34:
br label LBL_19
LBL_35:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv30.reload, { 1, 0 }
uselistorder i64 %59, { 1, 0 }
uselistorder i64 %50, { 2, 1, 0 }
uselistorder i32 %26, { 2, 0, 3, 1 }
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i32 %6, { 1, 2, 3, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 0, 1, 3, 2, 5, 4 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %sv_0, { 0, 7, 1, 2, 3, 4, 5, 6 }
uselistorder i64 %0, { 1, 0, 3, 2, 4 }
uselistorder i64* %indvars.iv33.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv24.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv27.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64*, i64)* @get_bits, { 1, 0 }
uselistorder i64 1, { 1, 2, 3, 0, 4 }
uselistorder i64 (i64*, i64)* @get_sbits, { 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3, 4 }
uselistorder i64 0, { 0, 1, 4, 3, 2, 5, 6, 7, 8 }
uselistorder i64 (i64*, i64, i32)* @init_get_bits, { 1, 0 }
uselistorder i64 (i64, i64)* @av_realloc, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 4, { 3, 2, 0, 4, 1, 5 }
uselistorder i64 (i64)* @AV_RL16, { 3, 2, 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_25, { 1, 0, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | simple_prompt_18122 | simple_prompt | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre9.reg2mem = alloca %_IO_FILE*
%.reg2mem = alloca %_IO_FILE*
%.pre912.reg2mem = alloca %_IO_FILE*
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca %_IO_FILE*, align 8
%sv_4 = alloca %_IO_FILE*, align 8
%sv_5 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%1 = add i32 %0, 2
%2 = call i64* @malloc(i32 %1)
%3 = icmp eq i64* %2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_26
LBL_1:
store i8 1, i8* inttoptr (i64 4210889 to i8*), align 1
%5 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
store %_IO_FILE* %5, %_IO_FILE** %sv_4, align 8
%6 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0))
store %_IO_FILE* %6, %_IO_FILE** %sv_3, align 8
%7 = icmp ne %_IO_FILE* %5, null
%8 = icmp eq %_IO_FILE* %6, null
%9 = icmp eq i1 %8, false
%or.cond = icmp eq i1 %7, %9
store %_IO_FILE* %5, %_IO_FILE** %.pre912.reg2mem
store %_IO_FILE* %6, %_IO_FILE** %.reg2mem
br i1 %or.cond, label LBL_7, label LBL_2
LBL_2:
%10 = icmp eq %_IO_FILE* %5, null
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i32 @fclose(%_IO_FILE* nonnull %5)
br label LBL_4
LBL_4:
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%12 = call i32 @fclose(%_IO_FILE* nonnull %6)
br label LBL_6
LBL_6:
%13 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%14 = ptrtoint %_IO_FILE* %13 to i64
%15 = bitcast %_IO_FILE** %sv_4 to i64*
store i64 %14, i64* %15, align 8
%16 = load %_IO_FILE*, %_IO_FILE** @gv_4, align 8
%17 = ptrtoint %_IO_FILE* %16 to i64
%18 = bitcast %_IO_FILE** %sv_3 to i64*
store i64 %17, i64* %18, align 8
store %_IO_FILE* %13, %_IO_FILE** %.pre912.reg2mem
store %_IO_FILE* %16, %_IO_FILE** %.reg2mem
br label LBL_7
LBL_7:
%.reload = load %_IO_FILE*, %_IO_FILE** %.reg2mem
%.pre912.reload = load %_IO_FILE*, %_IO_FILE** %.pre912.reg2mem
%19 = trunc i64 %arg3 to i8
%20 = icmp eq i8 %19, 1
br i1 %20, label LBL_9, label LBL_8
LBL_8:
%21 = call i32 @fileno(%_IO_FILE* %.pre912.reload)
%22 = bitcast i64* %sv_2 to %termios*
%23 = call i32 @tcgetattr(i32 %21, %termios* nonnull %22)
%24 = load i64, i64* %sv_2, align 8
store i64 %24, i64* %sv_1, align 8
%25 = call i32 @fileno(%_IO_FILE* %.pre912.reload)
%26 = call i32 @tcsetattr(i32 %25, i32 2, %termios* nonnull %22)
br label LBL_9
LBL_9:
%27 = icmp eq i8* %arg1, null
br i1 %27, label LBL_11, label LBL_10
LBL_10:
%28 = call i8* @gettext(i8* nonnull %arg1)
%29 = call i32 @fputs(i8* %28, %_IO_FILE* %.reload)
%30 = call i32 @fflush(%_IO_FILE* %.reload)
br label LBL_11
LBL_11:
%31 = bitcast i64* %2 to i8*
%32 = call i8* @fgets(i8* %31, i32 %0, %_IO_FILE* %.pre912.reload)
%33 = icmp eq i8* %32, null
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_13, label LBL_12
LBL_12:
store i8 0, i8* %31, align 1
br label LBL_13
LBL_13:
%35 = call i32 @strlen(i8* %31)
%36 = icmp slt i32 %35, 1
store %_IO_FILE* %.pre912.reload, %_IO_FILE** %.pre9.reg2mem
br i1 %36, label LBL_21, label LBL_14
LBL_14:
%37 = sext i32 %35 to i64
%38 = ptrtoint i64* %2 to i64
%39 = add i64 %38, -1
%40 = add i64 %39, %37
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = icmp eq i8 %42, 10
br i1 %43, label LBL_20, label LBL_15
LBL_15:
%44 = ptrtoint i64* %sv_5 to i64
%45 = bitcast i64* %sv_0 to i8*
%46 = add i64 %44, -288
br label LBL_16
LBL_16:
%47 = call i8* @fgets(i8* nonnull %45, i32 128, %_IO_FILE* %.pre912.reload)
%48 = icmp eq i8* %47, null
br i1 %48, label LBL_19, label LBL_17
LBL_17:
%49 = call i32 @strlen(i8* nonnull %45)
%50 = icmp slt i32 %49, 1
br i1 %50, label LBL_19, label LBL_18
LBL_18:
%51 = add i32 %49, -1
%52 = sext i32 %51 to i64
%53 = add i64 %46, %52
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = icmp eq i8 %55, 10
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_16, label LBL_19
LBL_19:
%.pre = load i8, i8* %41, align 1
%phitmp = icmp eq i8 %.pre, 10
%phitmp10 = icmp eq i1 %phitmp, false
store %_IO_FILE* %.pre912.reload, %_IO_FILE** %.pre9.reg2mem
br i1 %phitmp10, label LBL_21, label LBL_20
LBL_20:
store i8 0, i8* %41, align 1
%.pre9.pre = load %_IO_FILE*, %_IO_FILE** %sv_4, align 8
store %_IO_FILE* %.pre9.pre, %_IO_FILE** %.pre9.reg2mem
br label LBL_21
LBL_21:
%.pre9.reload = load %_IO_FILE*, %_IO_FILE** %.pre9.reg2mem
br i1 %20, label LBL_23, label LBL_22
LBL_22:
%58 = call i32 @fileno(%_IO_FILE* %.pre9.reload)
%59 = bitcast i64* %sv_1 to %termios*
%60 = call i32 @tcsetattr(i32 %58, i32 2, %termios* nonnull %59)
%61 = load %_IO_FILE*, %_IO_FILE** %sv_3, align 8
%62 = call i32 @fputc(i32 10, %_IO_FILE* %61)
%63 = call i32 @fflush(%_IO_FILE* %61)
br label LBL_23
LBL_23:
%64 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%65 = icmp eq %_IO_FILE* %.pre9.reload, %64
br i1 %65, label LBL_25, label LBL_24
LBL_24:
%66 = call i32 @fclose(%_IO_FILE* %.pre9.reload)
%67 = load %_IO_FILE*, %_IO_FILE** %sv_3, align 8
%68 = call i32 @fclose(%_IO_FILE* %67)
br label LBL_25
LBL_25:
store i8 0, i8* bitcast (i64* @gv_5 to i8*), align 8
%69 = ptrtoint i64* %2 to i64
store i64 %69, i64* %storemerge.reg2mem
br label LBL_26
LBL_26:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %41, { 1, 0, 2 }
uselistorder i8* %31, { 1, 0, 2 }
uselistorder %_IO_FILE* %.pre912.reload, { 0, 5, 1, 4, 2, 3 }
uselistorder %_IO_FILE* %6, { 1, 0, 2, 3 }
uselistorder %_IO_FILE* %5, { 2, 1, 0, 3, 4 }
uselistorder i64* %2, { 0, 1, 3, 2 }
uselistorder %_IO_FILE** %sv_3, { 3, 2, 0, 1 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder %_IO_FILE** %.pre9.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fflush, { 1, 0 }
uselistorder i32 (i32, i32, %termios*)* @tcsetattr, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fileno, { 2, 1, 0 }
uselistorder %_IO_FILE** @gv_3, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 3, 2, 1, 0 }
uselistorder %_IO_FILE* null, { 1, 0, 2, 3, 4 }
uselistorder i1 false, { 0, 2, 3, 1, 4 }
uselistorder i32 1, { 4, 5, 11, 7, 6, 10, 9, 8, 3, 2, 1, 0 }
uselistorder i8* %arg1, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_21, { 1, 2, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 1, 2, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | mb86a20s_read_status_5700 | mb86a20s_read_status | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = bitcast i64* %arg2 to i32*
store i32 0, i32* %4, align 4
%5 = call i64 @FUNC(i64 %3, i64 10)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_0.LBL_9_crit_edge
LBL_1:
%.pre1 = and i64 %5, 4294967295
store i64 %.pre1, i64* %storemerge.pre-phi.reg2mem
br label LBL_9
LBL_2:
%9 = urem i32 %6, 16
%10 = icmp ult i32 %9, 2
br i1 %10, label LBL_8, label LBL_3
LBL_3:
%11 = trunc i64 %2 to i32
%12 = or i32 %11, 1
store i32 %12, i32* %4, align 4
%13 = icmp ult i32 %9, 4
br i1 %13, label LBL_8, label LBL_4
LBL_4:
%14 = or i32 %11, 2
store i32 %14, i32* %4, align 4
%15 = icmp eq i32 %9, 4
br i1 %15, label LBL_8, label LBL_5
LBL_5:
%16 = or i32 %11, 4
store i32 %16, i32* %4, align 4
%17 = icmp ult i32 %9, 7
br i1 %17, label LBL_8, label LBL_6
LBL_6:
%18 = or i32 %11, 8
store i32 %18, i32* %4, align 4
%19 = icmp eq i32 %9, 7
br i1 %19, label LBL_8, label LBL_7
LBL_7:
%20 = or i32 %11, 16
store i32 %20, i32* %4, align 4
br label LBL_8
LBL_8:
%21 = zext i32 %9 to i64
%22 = and i64 %2, 4294967295
%23 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %21, i64 %1)
store i64 %21, i64* %storemerge.pre-phi.reg2mem
br label LBL_9
LBL_9:
%storemerge.pre-phi.reload = load i64, i64* %storemerge.pre-phi.reg2mem
ret i64 %storemerge.pre-phi.reload
uselistorder i32 %9, { 1, 5, 3, 4, 2, 0 }
uselistorder i32* %4, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 4, { 2, 0, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 16, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 4, 5, 3, 2, 1, 0 }
} | 0 |
BinRealVul | configure_output_video_filter_89 | configure_output_video_filter | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%4 = load i64, i64* %0
%sv_7 = alloca i64, align 8
%5 = add i64 %3, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %3, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = and i64 %1, 4294967295
%18 = ptrtoint i64* %sv_7 to i64
%19 = bitcast i64* %sv_7 to i8*
%20 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %19, i32 255, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %17, i64 %16)
%21 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0))
%22 = add i64 %3, 8
%23 = call i64 @FUNC(i64 %22, i64 %21, i64* nonnull %sv_7, i64 0, i64 %4, i64 %18)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %23, i64* %rax.0.in.reg2mem
br i1 %26, label LBL_1, label LBL_14
LBL_1:
%27 = inttoptr i64 %9 to i32*
%28 = load i32, i32* %27, align 4
%.pre = add i64 %9, 4
%.pre2 = inttoptr i64 %.pre to i32*
%.pre4 = load i32, i32* %.pre2, align 4
%29 = or i32 %28, %.pre4
%30 = icmp eq i32 %29, 0
store i64 %2, i64* %sv_1.0.reg2mem
store i32 %12, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_5, label LBL_2
LBL_2:
%31 = add i64 %3, 16
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = trunc i64 %33 to i32
%35 = zext i32 %.pre4 to i64
%36 = zext i32 %28 to i64
%37 = bitcast i64* %sv_5 to i8*
%38 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %37, i32 255, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i64 %36, i64 %35, i32 %34)
%39 = load i32, i32* %14, align 4
%40 = zext i32 %39 to i64
%41 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %19, i32 255, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %17, i64 %40)
%42 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%43 = ptrtoint i64* %sv_5 to i64
%44 = ptrtoint i64* %sv_4 to i64
%45 = call i64 @FUNC(i64 %44, i64 %42, i64* nonnull %sv_7, i64 %43, i64 0, i64 %18)
%46 = trunc i64 %45 to i32
%47 = icmp slt i32 %46, 0
%48 = icmp eq i1 %47, false
store i64 %45, i64* %rax.0.in.reg2mem
br i1 %48, label LBL_3, label LBL_14
LBL_3:
%49 = load i64, i64* %sv_4, align 8
%50 = call i64 @FUNC(i64 %2, i32 %12, i64 %49, i64 0)
%51 = trunc i64 %50 to i32
%52 = icmp slt i32 %51, 0
%53 = icmp eq i1 %52, false
store i64 %50, i64* %rax.0.in.reg2mem
br i1 %53, label LBL_4, label LBL_14
LBL_4:
%54 = load i64, i64* %sv_4, align 8
store i64 %54, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%55 = call i64 @FUNC(i64 %3)
store i64 %55, i64* %sv_6, align 8
%56 = icmp eq i64 %55, 0
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %56, label LBL_9, label LBL_6
LBL_6:
%57 = load i32, i32* %14, align 4
%58 = zext i32 %57 to i64
%59 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %19, i32 255, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_5, i64 0, i64 0), i64 %17, i64 %58)
%60 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0))
%61 = ptrtoint i64* %sv_3 to i64
%62 = call i64 @FUNC(i64 %61, i64 %60, i64* bitcast ([7 x i8]* @gv_6 to i64*), i64 %55, i64 0, i64 %18)
%63 = trunc i64 %62 to i32
%64 = icmp slt i32 %63, 0
%65 = icmp eq i1 %64, false
store i64 %62, i64* %rax.0.in.reg2mem
br i1 %65, label LBL_7, label LBL_14
LBL_7:
%66 = load i64, i64* %sv_3, align 8
%67 = call i64 @FUNC(i64 %sv_1.0.reload, i32 %sv_0.0.reload, i64 %66, i64 0)
%68 = trunc i64 %67 to i32
%69 = icmp slt i32 %68, 0
%70 = icmp eq i1 %69, false
store i64 %67, i64* %rax.0.in.reg2mem
br i1 %70, label LBL_8, label LBL_14
LBL_8:
%71 = load i64, i64* %sv_3, align 8
%72 = call i64 @FUNC(i64* nonnull %sv_6)
store i64 %71, i64* %sv_1.1.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%73 = inttoptr i64 %22 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %74, 0
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %75, label LBL_13, label LBL_10
LBL_10:
%76 = add i64 %3, 12
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = zext i32 %78 to i64
%80 = zext i32 %74 to i64
%81 = bitcast i64* %sv_5 to i8*
%82 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %81, i32 255, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i64 %80, i64 %79)
%83 = load i32, i32* %14, align 4
%84 = zext i32 %83 to i64
%85 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %19, i32 255, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_8, i64 0, i64 0), i64 %17, i64 %84)
%86 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0))
%87 = ptrtoint i64* %sv_5 to i64
%88 = ptrtoint i64* %sv_2 to i64
%89 = call i64 @FUNC(i64 %88, i64 %86, i64* nonnull %sv_7, i64 %87, i64 0, i64 %18)
%90 = trunc i64 %89 to i32
%91 = icmp slt i32 %90, 0
%92 = icmp eq i1 %91, false
store i64 %89, i64* %rax.0.in.reg2mem
br i1 %92, label LBL_11, label LBL_14
LBL_11:
%93 = load i64, i64* %sv_2, align 8
%94 = call i64 @FUNC(i64 %sv_1.1.reload, i32 %sv_0.1.reload, i64 %93, i64 0)
%95 = trunc i64 %94 to i32
%96 = icmp slt i32 %95, 0
%97 = icmp eq i1 %96, false
store i64 %94, i64* %rax.0.in.reg2mem
br i1 %97, label LBL_12, label LBL_14
LBL_12:
%98 = load i64, i64* %sv_2, align 8
store i64 %98, i64* %sv_1.2.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br label LBL_13
LBL_13:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%99 = inttoptr i64 %22 to i64*
%100 = load i64, i64* %99, align 8
%101 = call i64 @FUNC(i64 %sv_1.2.reload, i32 %sv_0.2.reload, i64 %100, i64 0)
%102 = trunc i64 %101 to i32
%103 = icmp slt i32 %102, 0
%104 = icmp eq i1 %103, false
%105 = and i64 %101, 4294967295
%spec.select = select i1 %104, i64 0, i64 %105
ret i64 %spec.select
LBL_14:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %sv_1.1.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %.pre4, { 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i8* %19, { 1, 0, 2, 3 }
uselistorder i64 %18, { 1, 0, 2, 3 }
uselistorder i64 %17, { 3, 2, 1, 0 }
uselistorder i32* %14, { 1, 0, 2, 3 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64* %sv_5, { 2, 0, 3, 1 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder [7 x i8]* @gv_6, { 1, 0 }
uselistorder i64 (i64, i32, i64, i64)* @avfilter_link, { 3, 2, 1, 0 }
uselistorder i32 0, { 4, 0, 5, 6, 7, 1, 8, 9, 2, 10, 11, 3, 12 }
uselistorder i64 (i64, i64, i64*, i64, i64, i64)* @avfilter_graph_create_filter, { 3, 2, 1, 0 }
uselistorder i64 (i8*)* @avfilter_get_by_name, { 3, 2, 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 4, 5, 3, 2, 1, 0 }
uselistorder i64 0, { 4, 25, 26, 27, 5, 6, 7, 8, 9, 10, 28, 29, 11, 12, 13, 14, 34, 30, 31, 15, 16, 17, 18, 19, 20, 32, 21, 22, 23, 24, 0, 1, 2, 3, 33 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | decode_end_10824 | decode_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 32
%9 = call i64 @FUNC(i64 %8)
ret i64 0
uselistorder i64 (i64)* @av_freep, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | qemu_aio_wait_all_14769 | qemu_aio_wait_all | define i64 @FUNC() local_unnamed_addr {
LBL_0:
br label LBL_1
LBL_1:
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_2
LBL_2:
ret i64 %1
} | 1 |
BinRealVul | tpm_backend_get_tpm_version_2550 | tpm_backend_get_tpm_version | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
ret i64 %0
} | 0 |
BinRealVul | ipmi_si_port_setup_13454 | ipmi_si_port_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.in.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 4
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = icmp sgt i32 %8, 4
br i1 %10, label LBL_7, label LBL_3
LBL_3:
switch i32 %8, label LBL_7 [
i32 1, label LBL_4
i32 2, label LBL_5
]
LBL_4:
%11 = add i64 %5, 16
%12 = inttoptr i64 %11 to i64*
store i64 4198735, i64* %12, align 8
%13 = add i64 %5, 24
%14 = inttoptr i64 %13 to i64*
store i64 4198749, i64* %14, align 8
br label LBL_8
LBL_5:
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i64*
store i64 4198764, i64* %16, align 8
%17 = add i64 %5, 24
%18 = inttoptr i64 %17 to i64*
store i64 4198778, i64* %18, align 8
br label LBL_8
LBL_6:
%19 = add i64 %5, 16
%20 = inttoptr i64 %19 to i64*
store i64 4198794, i64* %20, align 8
%21 = add i64 %5, 24
%22 = inttoptr i64 %21 to i64*
store i64 4198808, i64* %22, align 8
br label LBL_8
LBL_7:
%23 = add i64 %5, 40
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i32 %8)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_15
LBL_8:
%27 = add i64 %5, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_14, label LBL_9
LBL_9:
%31 = add i64 %5, 12
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %storemerge2.reg2mem
br label LBL_10
LBL_10:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%33 = load i32, i32* %7, align 4
%34 = load i32, i32* %32, align 4
%35 = mul i32 %34, %storemerge2.reload
%36 = add i32 %35, %2
%37 = zext i32 %33 to i64
%38 = zext i32 %36 to i64
%39 = call i64 @FUNC(i64 %38, i64 %37, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_13, label LBL_11
LBL_11:
%42 = icmp eq i32 %storemerge2.reload, 0
%43 = icmp eq i1 %42, false
store i32 %storemerge2.reload, i32* %.in.reg2mem
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %43, label LBL_12, label LBL_15
LBL_12:
%.in.reload = load i32, i32* %.in.reg2mem
%44 = add i32 %.in.reload, -1
%45 = load i32, i32* %7, align 4
%46 = load i32, i32* %32, align 4
%47 = mul i32 %46, %44
%48 = add i32 %47, %2
%49 = zext i32 %45 to i64
%50 = zext i32 %48 to i64
%51 = call i64 @FUNC(i64 %50, i64 %49)
%52 = icmp eq i32 %44, 0
%53 = icmp eq i1 %52, false
store i32 %44, i32* %.in.reg2mem
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %53, label LBL_12, label LBL_15
LBL_13:
%54 = add i32 %storemerge2.reload, 1
%55 = load i32, i32* %28, align 4
%56 = zext i32 %55 to i64
%57 = sext i32 %54 to i64
%58 = icmp slt i64 %57, %56
store i32 %54, i32* %storemerge2.reg2mem
br i1 %58, label LBL_10, label LBL_14
LBL_14:
%59 = add i64 %5, 32
%60 = inttoptr i64 %59 to i64*
store i64 4198728, i64* %60, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %44, { 0, 2, 1 }
uselistorder i32 %storemerge2.reload, { 1, 0, 3, 2 }
uselistorder i32* %28, { 1, 0 }
uselistorder i64 %5, { 6, 7, 5, 4, 8, 9, 0, 1, 2, 3, 10 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i32* %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 0, { 3, 2, 0, 1, 4 }
uselistorder label LBL_15, { 3, 0, 1, 4, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | r128_getparam_5359 | r128_getparam | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = call i32 @getpid()
%3 = zext i32 %2 to i64
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %3)
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 1
%7 = icmp eq i1 %6, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
store i32 %10, i32* %sv_0, align 4
%11 = ptrtoint i32* %arg2 to i64
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = sext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15, i32* nonnull %sv_0, i64 4)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%20 = call i32 @fwrite(i64* bitcast ([14 x i8]* @gv_2 to i64*), i32 1, i32 13, %_IO_FILE* %19)
store i64 4294967282, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | vnc_display_password_2882 | vnc_display_password | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_7
LBL_1:
%3 = icmp eq i64 %arg2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%7 = inttoptr i64 %0 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %8)
store i64 0, i64* %7, align 8
br label LBL_5
LBL_5:
%11 = call i64 @FUNC(i64 %arg2)
store i64 %11, i64* %7, align 8
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_6
LBL_6:
store i32 1, i32* %13, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder label LBL_7, { 1, 0, 3, 2 }
} | 0 |
BinRealVul | nbd_establish_connection_753 | nbd_establish_connection | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 47
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%6 = icmp slt i32 %storemerge, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0))
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = sub i32 0, %10
store i32 %11, i32* %rax.0.shrunk.reg2mem
br label LBL_8
LBL_5:
%12 = add i64 %0, 16
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = and i64 %storemerge.in.reload, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %15, i64 %12, i64* nonnull %sv_0, i64* nonnull %sv_1)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0))
%22 = call i64 @FUNC(i64 %16)
store i32 %18, i32* %rax.0.shrunk.reg2mem
br label LBL_8
LBL_7:
%23 = call i64 @FUNC(i64 %16)
%24 = call i64 @FUNC(i64 %16, i64 4198905, i64 0, i64 4198912, i64 %0)
%25 = add i64 %0, 20
%26 = inttoptr i64 %25 to i32*
store i32 %storemerge, i32* %26, align 4
%27 = load i64, i64* %sv_0, align 8
%28 = add i64 %0, 24
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
%30 = load i64, i64* %sv_1, align 8
%31 = add i64 %0, 32
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0))
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_8
LBL_8:
%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 %16, { 1, 2, 0, 3 }
uselistorder i64 %storemerge.in.reload, { 1, 0 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %0, { 3, 4, 6, 5, 8, 7, 0, 1, 2 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i8*)* @logout, { 2, 1, 0 }
} | 0 |
BinRealVul | defendel_4123 | defendel | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rbx.2.reg2mem = alloca i64
%rbx.1.reg2mem = alloca i64
%.reg2mem42 = alloca i64*
%.reg2mem40 = alloca i64*
%.reg2mem38 = alloca i64
%rbx.0.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.09.reg2mem = alloca i32
%rbx.010.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i8* %arg1 to i64
%1 = load i8, i8* %arg1, align 1
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
store i8 %1, i8* %.reg2mem
store i64 %0, i64* %rbx.010.reg2mem
store i32 0, i32* %sv_0.09.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
store i64 %0, i64* %rbx.0.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%sv_0.09.reload = load i32, i32* %sv_0.09.reg2mem
%rbx.010.reload = load i64, i64* %rbx.010.reg2mem
%.reload = load i8, i8* %.reg2mem
%4 = add i64 %rbx.010.reload, 1
%5 = sext i8 %.reload to i32
%6 = add i32 %sv_0.09.reload, %5
%7 = inttoptr i64 %4 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
store i8 %8, i8* %.reg2mem
store i64 %4, i64* %rbx.010.reg2mem
store i32 %6, i32* %sv_0.09.reg2mem
store i32 %6, i32* %sv_0.0.lcssa.reg2mem
store i64 %4, i64* %rbx.0.lcssa.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_2:
%rbx.0.lcssa.reload = load i64, i64* %rbx.0.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%11 = sub i64 %rbx.0.lcssa.reload, %0
%12 = trunc i64 %11 to i32
%13 = add i32 %sv_0.0.lcssa.reload, %12
%14 = mul i32 %13, 8
%15 = and i32 %14, 2040
%16 = zext i32 %15 to i64
%17 = add i64 %16, ptrtoint (i64* @gv_0 to i64)
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
store i64 %19, i64* %.reg2mem38
store i64* %18, i64** %.reg2mem40
store i64* %18, i64** %.reg2mem42
store i64 %19, i64* %rbx.1.reg2mem
br i1 %21, label LBL_3, label LBL_10
LBL_3:
%.reload39 = load i64, i64* %.reg2mem38
%22 = add i64 %.reload39, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %13, %24
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_9, label LBL_4
LBL_4:
%27 = add i64 %.reload39, 28
%28 = inttoptr i64 %27 to i8*
%29 = call i32 @strcmp(i8* %28, i8* %arg1)
%30 = icmp slt i32 %29, 0
br i1 %30, label LBL_9, label LBL_5
LBL_5:
%.reload41 = load i64*, i64** %.reg2mem40
%31 = icmp eq i32 %29, 0
store i64* %.reload41, i64** %.reg2mem42
store i64 0, i64* %rbx.1.reg2mem
br i1 %31, label LBL_6, label LBL_10
LBL_6:
%32 = inttoptr i64 %.reload39 to i64*
%33 = load i64, i64* %32, align 8
store i64 %33, i64* %.reload41, align 8
%34 = add i64 %.reload39, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%38 = inttoptr i64 %36 to i64*
call void @free(i64* %38)
br label LBL_8
LBL_8:
call void @free(i64* %32)
store i64* %.reload41, i64** %.reg2mem42
store i64 0, i64* %rbx.1.reg2mem
br label LBL_10
LBL_9:
%39 = inttoptr i64 %.reload39 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
store i64 %40, i64* %.reg2mem38
store i64* %39, i64** %.reg2mem40
store i64* %39, i64** %.reg2mem42
store i64 %40, i64* %rbx.1.reg2mem
br i1 %42, label LBL_3, label LBL_10
LBL_10:
%rbx.1.reload = load i64, i64* %rbx.1.reg2mem
%43 = trunc i64 %arg2 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i64 %rbx.1.reload, i64* %rbx.2.reg2mem
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%.reload43 = load i64*, i64** %.reg2mem42
%sext3 = mul i64 %11, 4294967296
%46 = ashr exact i64 %sext3, 32
%47 = add nsw i64 %46, 32
%48 = call i64 @FUNC(i64 %47)
%49 = load i64, i64* %.reload43, align 8
%50 = inttoptr i64 %48 to i64*
store i64 %49, i64* %50, align 8
store i64 %48, i64* %.reload43, align 8
%51 = add i64 %48, 8
%52 = inttoptr i64 %51 to i32*
store i32 %13, i32* %52, align 4
%53 = add i64 %48, 16
%54 = inttoptr i64 %53 to i64*
store i64 0, i64* %54, align 8
%55 = add i64 %48, 24
%56 = inttoptr i64 %55 to i32*
store i32 0, i32* %56, align 4
%57 = add i64 %48, 28
%58 = inttoptr i64 %57 to i8*
%59 = call i8* @strcpy(i8* %58, i8* %arg1)
store i64 %48, i64* %rbx.2.reg2mem
br label LBL_12
LBL_12:
%rbx.2.reload = load i64, i64* %rbx.2.reg2mem
ret i64 %rbx.2.reload
uselistorder i64 %48, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %.reload41, { 1, 2, 0 }
uselistorder i64 %.reload39, { 2, 4, 3, 0, 1 }
uselistorder i32 %13, { 1, 2, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.010.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem38, { 2, 0, 1 }
uselistorder i64** %.reg2mem40, { 2, 0, 1 }
uselistorder i64** %.reg2mem42, { 0, 1, 4, 3, 2 }
uselistorder i64* %rbx.1.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i64 32, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 0, { 4, 5, 2, 3, 0, 1 }
uselistorder i1 false, { 3, 4, 2, 1, 5, 0 }
uselistorder i8 0, { 2, 0, 1 }
uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8* %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | zip_source_read_4393 | zip_source_read | define i64 @FUNC(i8* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
store i64 -1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_11
LBL_1:
%4 = ptrtoint i8* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 1
%8 = icmp eq i1 %7, false
%9 = icmp slt i64 %arg3, 0
%or.cond = or i1 %9, %8
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%10 = icmp eq i64 %arg3, 0
%11 = icmp eq i64* %arg2, null
%12 = icmp eq i1 %11, false
%or.cond4 = or i1 %10, %12
br i1 %or.cond4, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %4, 4
%14 = call i64 @FUNC(i64 %13, i64 1, i64 0)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%15 = add i64 %4, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = icmp eq i8 %17, 0
store i64 -1, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_11
LBL_5:
%19 = ptrtoint i64* %arg2 to i64
%20 = call i64 @FUNC(i64 %4)
%21 = trunc i64 %20 to i8
%22 = icmp eq i8 %21, 0
%23 = icmp eq i1 %10, false
%or.cond6 = icmp eq i1 %23, %22
store i64 0, i64* %storemerge9.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond6, label LBL_6, label LBL_11
LBL_6:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%24 = sub i64 %arg3, %storemerge9.reload
%25 = add i64 %storemerge9.reload, %19
%26 = call i64 @FUNC(i64 %4, i64 %25, i64 %24, i64 0)
%27 = icmp slt i64 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_8, label LBL_7
LBL_7:
store i8 1, i8* %16, align 1
%29 = icmp eq i64 %storemerge9.reload, 0
%30 = icmp eq i1 %29, false
%storemerge. = select i1 %30, i64 %storemerge9.reload, i64 -1
store i64 %storemerge., i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%31 = icmp eq i64 %26, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%33 = add i64 %4, 2
%34 = inttoptr i64 %33 to i8*
store i8 1, i8* %34, align 1
store i64 %storemerge9.reload, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%35 = add i64 %26, %storemerge9.reload
%36 = icmp ult i64 %35, %arg3
store i64 %35, i64* %storemerge9.reg2mem
store i64 %35, i64* %rax.0.reg2mem
br i1 %36, label LBL_6, label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge9.reload, { 3, 0, 5, 4, 2, 1 }
uselistorder i64 %4, { 0, 1, 3, 2, 4, 5 }
uselistorder i64* %storemerge9.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 4, 5, 7, 6 }
uselistorder i64 1, { 1, 0 }
uselistorder i8 1, { 1, 2, 0 }
uselistorder i64 -1, { 3, 0, 2, 1 }
uselistorder i64 %arg3, { 0, 1, 3, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_11, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | IsValidSize_11033 | IsValidSize | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 4
%7 = add i64 %6, %1
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = or i32 %9, %4
%11 = icmp eq i32 %10, 0
store i32 %9, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%12 = add i64 %1, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
store i32 %14, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%15 = trunc i64 %arg2 to i32
%16 = add i32 %15, 2
%17 = icmp ugt i32 %16, %sv_0.0.reload
store i64 0, i64* %storemerge.reg2mem
br i1 %17, label LBL_4, label LBL_5
LBL_4:
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | bm_poly_12796 | bm_poly | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp ult i32 %arg3, 2
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = trunc i64 %1 to i32
%5 = add i32 %arg3, -1
%6 = ptrtoint i32* %arg1 to i64
%wide.trip.count = zext i32 %5 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%7 = mul i64 %indvars.iv.next, 8
%8 = add i64 %7, %3
%9 = add i64 %8, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = inttoptr i64 %8 to i32*
%13 = load i32, i32* %12, align 4
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %14, %3
%16 = add i64 %15, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = inttoptr i64 %15 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %11 to i64
%22 = call i64 @FUNC(i64 %6, i32 %20, i32 %18, i32 %13, i64 %21)
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%phitmp3 = and i64 %7, 34359738360
%23 = add i64 %phitmp3, %3
%24 = add i64 %23, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = inttoptr i64 %23 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i64 %3, 4
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %26 to i64
%33 = call i64 @FUNC(i64 %6, i32 %4, i32 %31, i32 %28, i64 %32)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %indvars.iv.next, { 0, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i64 %3, { 3, 0, 1, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 2, 3, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | bdrv_flush_all_2823 | bdrv_flush_all | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.12.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i64
store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge3.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_1
LBL_1:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%0 = call i64 @FUNC(i64 %storemerge3.reload)
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %storemerge3.reload)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i32 %sv_0.12.reload, 0
%6 = icmp eq i1 %5, %4
%sv_0.0 = select i1 %6, i32 %3, i32 %sv_0.12.reload
%7 = call i64 @FUNC(i64 %0)
%8 = inttoptr i64 %storemerge3.reload to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %storemerge3.reg2mem
store i32 %sv_0.0, i32* %sv_0.12.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_2:
%12 = zext i32 %sv_0.0 to i64
ret i64 %12
uselistorder i32 %sv_0.0, { 1, 0 }
uselistorder i64 %storemerge3.reload, { 0, 2, 1 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | i40e_vc_isvalid_vsi_id_4600 | i40e_vc_isvalid_vsi_id | 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 = urem i64 %arg2, 256
%3 = and i64 %1, 4294967295
%4 = icmp ugt i64 %2, %3
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = mul i64 %arg2, 8
%7 = and i64 %6, 2040
%8 = add i64 %5, 8
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = inttoptr i64 %8 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %13, %15
%17 = zext i1 %16 to i64
%18 = and i32 %15, -256
%19 = zext i32 %18 to i64
%20 = or i64 %19, %17
store i64 %20, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | start_auth_vnc_8490 | start_auth_vnc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 %0, i64 16)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 1, i64 16)
ret i64 %4
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 16, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | dns_stream_complete_5657 | dns_stream_complete | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %sv_0, align 8
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %0)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_3, label LBL_4
LBL_3:
%9 = call i64 @FUNC(i64 %0)
br label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 0
uselistorder i64 %0, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @dns_stream_unref, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | virtio_net_set_status_15752 | virtio_net_set_status | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem17 = alloca i32
%storemerge410.reg2mem = alloca i1
%storemerge6.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%.reg2mem15 = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %arg2, 256
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = call i64 @FUNC(i64 %2, i64 %3)
%6 = trunc i64 %1 to i32
%7 = and i64 %1, 4294967295
%8 = icmp eq i32 %6, 0
store i64 %7, i64* %.lcssa.reg2mem
br i1 %8, label LBL_18, label LBL_1
LBL_1:
%9 = bitcast i64* %rdi to i32*
%sext = mul i64 %arg2, 72057594037927936
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i8*
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = ashr exact i64 %sext, 56
%19 = add i64 %2, 9
%20 = inttoptr i64 %19 to i8*
%21 = add i64 %2, 12
%22 = inttoptr i64 %21 to i32*
%23 = add i64 %2, 10
%24 = inttoptr i64 %23 to i8*
store i32 %6, i32* %.reg2mem
store i64 0, i64* %.reg2mem15
store i32 0, i32* %storemerge11.reg2mem
br label LBL_2
LBL_2:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%.reload16 = load i64, i64* %.reg2mem15
%.reload = load i32, i32* %.reg2mem
%25 = load i64, i64* %11, align 8
%26 = zext i32 %storemerge11.reload to i64
%27 = call i64 @FUNC(i64 %25, i64 %26)
%28 = load i64, i64* %13, align 8
%29 = load i8, i8* %15, align 1
%30 = icmp ne i8 %29, 1
%31 = icmp eq i32 %storemerge11.reload, 0
%32 = icmp eq i1 %31, false
%or.cond = icmp eq i1 %32, %30
store i64 0, i64* %storemerge6.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%33 = load i32, i32* %17, align 4
%34 = zext i32 %33 to i64
%35 = icmp slt i64 %.reload16, %34
%spec.select = select i1 %35, i64 %18, i64 0
store i64 %spec.select, i64* %storemerge6.reg2mem
br label LBL_4
LBL_4:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%36 = urem i64 %storemerge6.reload, 256
%37 = call i64 @FUNC(i64 %2, i64 %36)
%38 = trunc i64 %37 to i8
%39 = icmp eq i8 %38, 0
store i1 true, i1* %storemerge410.reg2mem
br i1 %39, label LBL_7, label LBL_5
LBL_5:
%40 = load i8, i8* %20, align 1
%41 = icmp eq i8 %40, 1
store i1 true, i1* %storemerge410.reg2mem
br i1 %41, label LBL_7, label LBL_6
LBL_6:
%42 = call i64 @FUNC(i64 %27)
store i1 false, i1* %storemerge410.reg2mem
br label LBL_7
LBL_7:
%43 = mul i64 %.reload16, 32
%44 = add i64 %28, %43
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 0
store i32 %.reload, i32* %.reg2mem17
br i1 %47, label LBL_17, label LBL_8
LBL_8:
%storemerge410.reload = load i1, i1* %storemerge410.reg2mem
%48 = add i64 %44, 8
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = icmp eq i64 %50, 0
br i1 %storemerge410.reload, label LBL_12, label LBL_9
LBL_9:
br i1 %51, label LBL_11, label LBL_10
LBL_10:
%52 = call i64 @FUNC(i64 0)
%53 = trunc i64 %52 to i32
%54 = load i32, i32* %22, align 4
%55 = add i32 %54, %53
%56 = load i64, i64* %49, align 8
%57 = zext i32 %55 to i64
%58 = call i64 @FUNC(i64 %56, i64 %57)
store i32 %.reload, i32* %.reg2mem17
br label LBL_17
LBL_11:
%59 = add i64 %44, 16
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = call i64 @FUNC(i64 %61)
store i32 %.reload, i32* %.reg2mem17
br label LBL_17
LBL_12:
br i1 %51, label LBL_14, label LBL_13
LBL_13:
%63 = call i64 @FUNC(i64 %50)
br label LBL_15
LBL_14:
%64 = add i64 %44, 16
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = call i64 @FUNC(i64 %66)
br label LBL_15
LBL_15:
%68 = load i8, i8* %24, align 1
%69 = and i8 %68, 2
%70 = icmp eq i8 %69, 0
%71 = icmp eq i1 %70, false
%72 = urem i64 %storemerge6.reload, 2
%73 = icmp eq i64 %72, 0
%or.cond9 = or i1 %73, %71
store i32 %.reload, i32* %.reg2mem17
br i1 %or.cond9, label LBL_17, label LBL_16
LBL_16:
store i32 0, i32* %45, align 4
%74 = add i64 %44, 24
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = call i64 @FUNC(i64 %76, i64 1)
%78 = load i64, i64* %75, align 8
%79 = call i64 @FUNC(i64 %2, i64 %78)
%.pre = load i32, i32* %9, align 8
store i32 %.pre, i32* %.reg2mem17
br label LBL_17
LBL_17:
%.reload18 = load i32, i32* %.reg2mem17
%80 = add i32 %storemerge11.reload, 1
%81 = zext i32 %.reload18 to i64
%82 = sext i32 %80 to i64
%83 = icmp slt i64 %82, %81
store i32 %.reload18, i32* %.reg2mem
store i64 %82, i64* %.reg2mem15
store i32 %80, i32* %storemerge11.reg2mem
store i64 %81, i64* %.lcssa.reg2mem
br i1 %83, label LBL_2, label LBL_18
LBL_18:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %.reload18, { 1, 0 }
uselistorder i1 %51, { 1, 0 }
uselistorder i64 %44, { 0, 2, 1, 3, 4 }
uselistorder i64 %storemerge6.reload, { 1, 0 }
uselistorder i32 %.reload, { 2, 1, 0, 3 }
uselistorder i64 %.reload16, { 1, 0 }
uselistorder i32 %storemerge11.reload, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 2, 4, 3, 1, 0, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem15, { 1, 0, 2 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i1* %storemerge410.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %.reg2mem17, { 0, 4, 3, 2, 1, 5 }
uselistorder i64 1, { 1, 0 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder i32 0, { 3, 4, 2, 0, 1 }
uselistorder label LBL_17, { 1, 2, 3, 4, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | si_idle_conn_wake_cb_10432 | si_idle_conn_wake_cb | 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
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = urem i32 %6, 4
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %arg1)
%10 = call i64 @FUNC(i64 %arg1)
%11 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %11, align 8
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 3, 1, 4 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | bmexec_trans_5205 | bmexec_trans | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem15 = alloca i64
%.reg2mem13 = alloca i64
%.reg2mem11 = alloca i64
%.reg2mem9 = alloca i64
%.ph.reg2mem = alloca i64
%.reg2mem7 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 %arg3, i64* %sv_1, align 8
%2 = trunc i64 %1 to i32
%3 = add i64 %arg1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i32 %2, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_21
LBL_1:
%sext = mul i64 %1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = icmp ugt i64 %8, %arg3
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_21
LBL_2:
%11 = icmp eq i32 %2, 1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %arg2, i64 %arg3, i64 %arg1)
%14 = icmp eq i64 %13, 0
%15 = sub i64 %13, %arg2
%spec.select = select i1 %14, i64 4294967295, i64 %15
ret i64 %spec.select
LBL_4:
%16 = add i64 %arg1, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %arg1, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %8, %arg2
store i64 %22, i64* %sv_0, align 8
%23 = add i64 %arg1, 32
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = add i64 %arg1, 33
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%sext2 = mul i64 %1, 51539607552
%29 = ashr exact i64 %sext2, 32
%30 = icmp ult i64 %29, %arg3
store i64 %22, i64* %.reg2mem9
store i64 %arg3, i64* %.reg2mem11
br i1 %30, label LBL_5, label LBL_15
LBL_5:
%sext3 = mul i64 %1, 47244640256
%31 = ashr exact i64 %sext3, 32
%32 = sub i64 %arg3, %31
%33 = add i64 %32, %arg2
%34 = icmp ult i64 %33, %22
%35 = icmp eq i1 %34, false
store i64 %22, i64* %.reg2mem9
store i64 %arg3, i64* %.reg2mem11
br i1 %35, label LBL_6, label LBL_15
LBL_6:
%.neg = add i64 %arg2, 1
store i64 %22, i64* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%36 = add i64 %.reload, -1
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = sext i8 %38 to i64
%40 = and i64 %39, 4294967295
%41 = call i64 @FUNC(i64 %40)
%42 = urem i64 %41, 256
%43 = add i64 %42, %18
%44 = inttoptr i64 %43 to i8*
%45 = load i8, i8* %44, align 1
%46 = load i64, i64* %sv_0, align 8
%47 = zext i8 %45 to i64
%48 = add i64 %46, %47
store i64 %48, i64* %sv_0, align 8
%49 = add i64 %48, -1
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = sext i8 %51 to i64
%53 = and i64 %52, 4294967295
%54 = call i64 @FUNC(i64 %53)
%55 = urem i64 %54, 256
%56 = add i64 %55, %18
%57 = inttoptr i64 %56 to i8*
%58 = load i8, i8* %57, align 1
%59 = load i64, i64* %sv_0, align 8
%60 = zext i8 %58 to i64
%61 = add i64 %59, %60
store i64 %61, i64* %sv_0, align 8
%62 = icmp eq i8 %58, 0
store i64 %61, i64* %.reg2mem7
br i1 %62, label LBL_13, label LBL_8
LBL_8:
%63 = add i64 %61, -1
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
%66 = sext i8 %65 to i64
%67 = and i64 %66, 4294967295
%68 = call i64 @FUNC(i64 %67)
%69 = urem i64 %68, 256
%70 = add i64 %69, %18
%71 = inttoptr i64 %70 to i8*
%72 = load i8, i8* %71, align 1
%73 = load i64, i64* %sv_0, align 8
%74 = zext i8 %72 to i64
%75 = add i64 %73, %74
store i64 %75, i64* %sv_0, align 8
%76 = add i64 %75, -1
%77 = inttoptr i64 %76 to i8*
%78 = load i8, i8* %77, align 1
%79 = sext i8 %78 to i64
%80 = and i64 %79, 4294967295
%81 = call i64 @FUNC(i64 %80)
%82 = urem i64 %81, 256
%83 = add i64 %82, %18
%84 = inttoptr i64 %83 to i8*
%85 = load i8, i8* %84, align 1
%86 = load i64, i64* %sv_0, align 8
%87 = zext i8 %85 to i64
%88 = add i64 %86, %87
store i64 %88, i64* %sv_0, align 8
%89 = add i64 %88, -1
%90 = inttoptr i64 %89 to i8*
%91 = load i8, i8* %90, align 1
%92 = sext i8 %91 to i64
%93 = and i64 %92, 4294967295
%94 = call i64 @FUNC(i64 %93)
%95 = urem i64 %94, 256
%96 = add i64 %95, %18
%97 = inttoptr i64 %96 to i8*
%98 = load i8, i8* %97, align 1
%99 = load i64, i64* %sv_0, align 8
%100 = zext i8 %98 to i64
%101 = add i64 %99, %100
store i64 %101, i64* %sv_0, align 8
%102 = icmp eq i8 %98, 0
store i64 %101, i64* %.reg2mem7
br i1 %102, label LBL_13, label LBL_9
LBL_9:
%103 = add i64 %101, -1
%104 = inttoptr i64 %103 to i8*
%105 = load i8, i8* %104, align 1
%106 = sext i8 %105 to i64
%107 = and i64 %106, 4294967295
%108 = call i64 @FUNC(i64 %107)
%109 = urem i64 %108, 256
%110 = add i64 %109, %18
%111 = inttoptr i64 %110 to i8*
%112 = load i8, i8* %111, align 1
%113 = load i64, i64* %sv_0, align 8
%114 = zext i8 %112 to i64
%115 = add i64 %113, %114
store i64 %115, i64* %sv_0, align 8
%116 = add i64 %115, -1
%117 = inttoptr i64 %116 to i8*
%118 = load i8, i8* %117, align 1
%119 = sext i8 %118 to i64
%120 = and i64 %119, 4294967295
%121 = call i64 @FUNC(i64 %120)
%122 = urem i64 %121, 256
%123 = add i64 %122, %18
%124 = inttoptr i64 %123 to i8*
%125 = load i8, i8* %124, align 1
%126 = load i64, i64* %sv_0, align 8
%127 = zext i8 %125 to i64
%128 = add i64 %126, %127
store i64 %128, i64* %sv_0, align 8
%129 = add i64 %128, -1
%130 = inttoptr i64 %129 to i8*
%131 = load i8, i8* %130, align 1
%132 = sext i8 %131 to i64
%133 = and i64 %132, 4294967295
%134 = call i64 @FUNC(i64 %133)
%135 = urem i64 %134, 256
%136 = add i64 %135, %18
%137 = inttoptr i64 %136 to i8*
%138 = load i8, i8* %137, align 1
%139 = load i64, i64* %sv_0, align 8
%140 = zext i8 %138 to i64
%141 = add i64 %139, %140
store i64 %141, i64* %sv_0, align 8
%142 = icmp eq i8 %138, 0
store i64 %141, i64* %.reg2mem7
br i1 %142, label LBL_13, label LBL_10
LBL_10:
%143 = add i64 %141, -1
%144 = inttoptr i64 %143 to i8*
%145 = load i8, i8* %144, align 1
%146 = sext i8 %145 to i64
%147 = and i64 %146, 4294967295
%148 = call i64 @FUNC(i64 %147)
%149 = urem i64 %148, 256
%150 = add i64 %149, %18
%151 = inttoptr i64 %150 to i8*
%152 = load i8, i8* %151, align 1
%153 = load i64, i64* %sv_0, align 8
%154 = zext i8 %152 to i64
%155 = add i64 %153, %154
store i64 %155, i64* %sv_0, align 8
%156 = add i64 %155, -1
%157 = inttoptr i64 %156 to i8*
%158 = load i8, i8* %157, align 1
%159 = sext i8 %158 to i64
%160 = and i64 %159, 4294967295
%161 = call i64 @FUNC(i64 %160)
%162 = urem i64 %161, 256
%163 = add i64 %162, %18
%164 = inttoptr i64 %163 to i8*
%165 = load i8, i8* %164, align 1
%166 = load i64, i64* %sv_0, align 8
%167 = zext i8 %165 to i64
%168 = add i64 %166, %167
store i64 %168, i64* %sv_0, align 8
%169 = sub i64 %168, %.reload
%170 = icmp sgt i64 %169, 127
store i64 %168, i64* %.reg2mem7
br i1 %170, label LBL_13, label LBL_11
LBL_11:
%171 = add i64 %168, -1
store i64 %171, i64* %sv_0, align 8
%172 = load i64, i64* %sv_1, align 8
%173 = sub i64 %.neg, %168
%174 = add i64 %173, %172
%175 = call i64 @FUNC(i64 %171, i64 %174, i64 %arg1)
store i64 %175, i64* %sv_0, align 8
%176 = icmp eq i64 %175, 0
%177 = icmp eq i1 %176, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %177, label LBL_12, label LBL_21
LBL_12:
%178 = add i64 %175, 1
store i64 %178, i64* %sv_0, align 8
%179 = icmp ugt i64 %33, %178
store i64 %178, i64* %.reg2mem7
store i64 %178, i64* %.ph.reg2mem
br i1 %179, label LBL_13, label LBL_14
LBL_13:
%.reload8 = load i64, i64* %.reg2mem7
%180 = icmp ult i64 %33, %.reload8
%181 = icmp eq i1 %180, false
store i64 %.reload8, i64* %.reg2mem
store i64 %.reload8, i64* %.ph.reg2mem
br i1 %181, label LBL_7, label LBL_14
LBL_14:
%.ph.reload = load i64, i64* %.ph.reg2mem
%.pre.pre = load i64, i64* %sv_1, align 8
store i64 %.ph.reload, i64* %.reg2mem9
store i64 %.pre.pre, i64* %.reg2mem11
br label LBL_15
LBL_15:
%.reload12 = load i64, i64* %.reg2mem11
%.reload10 = load i64, i64* %.reg2mem9
%182 = add i64 %.reload12, %arg2
%183 = add i64 %.reload10, -1
%184 = inttoptr i64 %183 to i8*
%185 = load i8, i8* %184, align 1
%186 = sext i8 %185 to i64
%187 = and i64 %186, 4294967295
%188 = call i64 @FUNC(i64 %187)
%189 = urem i64 %188, 256
%190 = add i64 %189, %18
%191 = inttoptr i64 %190 to i8*
%192 = load i8, i8* %191, align 1
%193 = zext i8 %192 to i64
%194 = load i64, i64* %sv_0, align 8
%195 = sub i64 %182, %194
%196 = icmp slt i64 %195, %193
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %196, label LBL_21, label LBL_16
LBL_16:
%197 = ptrtoint i64* %sv_1 to i64
%198 = add i64 %21, %8
%199 = sext i8 %28 to i64
%200 = add i64 %197, -8
%201 = inttoptr i64 %200 to i64*
%202 = add i64 %197, -16
%203 = inttoptr i64 %202 to i64*
%204 = add i64 %197, -24
%205 = inttoptr i64 %204 to i64*
store i64 %194, i64* %.reg2mem13
store i64 %193, i64* %.reg2mem15
br label LBL_17
LBL_17:
%.reload16 = load i64, i64* %.reg2mem15
%.reload14 = load i64, i64* %.reg2mem13
%206 = add i64 %.reload16, %.reload14
store i64 %206, i64* %sv_0, align 8
%207 = add i64 %206, -1
%208 = inttoptr i64 %207 to i8*
%209 = load i8, i8* %208, align 1
%210 = sext i8 %209 to i64
%211 = and i64 %210, 4294967295
%212 = call i64 @FUNC(i64 %211)
%213 = urem i64 %212, 256
%214 = add i64 %213, %18
%215 = inttoptr i64 %214 to i8*
%216 = load i8, i8* %215, align 1
%217 = icmp eq i8 %216, 0
br i1 %217, label LBL_18, label LBL_19
LBL_18:
store i64 %arg1, i64* %201, align 8
store i64 0, i64* %203, align 8
store i64 %199, i64* %205, align 8
%218 = call i64 @FUNC(i64* nonnull %sv_0, i64 %182, i64 %198, i32 %2, i64 %5, i8 %25, i64 0)
%219 = trunc i64 %218 to i32
%220 = icmp eq i32 %219, 0
br i1 %220, label LBL_19, label LBL_20
LBL_19:
%221 = zext i8 %216 to i64
%222 = load i64, i64* %sv_0, align 8
%223 = sub i64 %182, %222
%224 = icmp slt i64 %223, %221
store i64 %222, i64* %.reg2mem13
store i64 %221, i64* %.reg2mem15
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %224, label LBL_21, label LBL_17
LBL_20:
%225 = load i64, i64* %sv_0, align 8
%226 = sub i64 %225, %arg2
store i64 %226, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %182, { 2, 1, 0 }
uselistorder i64 %.reload8, { 0, 2, 1 }
uselistorder i64 %168, { 1, 2, 0, 3, 4 }
uselistorder i64 %141, { 1, 0, 2 }
uselistorder i64 %101, { 1, 0, 2 }
uselistorder i64 %61, { 1, 0, 2 }
uselistorder i64 %33, { 2, 1, 0 }
uselistorder i64 %22, { 2, 0, 3, 1, 4 }
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i32 %2, { 2, 1, 0 }
uselistorder i64* %sv_1, { 3, 0, 1, 2 }
uselistorder i64* %sv_0, { 3, 2, 1, 4, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }
uselistorder i64 %1, { 2, 1, 3, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem7, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %.reg2mem13, { 1, 0, 2 }
uselistorder i64* %.reg2mem15, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 2, 3, 1, 4, 5 }
uselistorder i8 0, { 3, 0, 1, 2 }
uselistorder i64 (i64)* @U, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 -1, { 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @memchr_kwset, { 1, 0 }
uselistorder i64 32, { 0, 1, 3, 2 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5 }
uselistorder i32 1, { 9, 11, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg3, { 0, 3, 1, 2, 5, 4, 6 }
uselistorder i64 %arg2, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 %arg1, { 0, 1, 3, 2, 5, 4, 6, 7 }
uselistorder label LBL_21, { 5, 1, 2, 0, 3, 4 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_13, { 3, 4, 2, 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | vc_allocate_13359 | vc_allocate | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC()
%2 = icmp ult i32 %0, 64
store i64 4294967290, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_10
LBL_1:
%3 = mul i64 %arg1, 16
%4 = and i64 %3, 68719476720
%5 = add i64 %4, ptrtoint (i64* @gv_0 to i64)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_10
LBL_2:
%9 = call i64 @FUNC(i64 32, i64 0)
store i64 %9, i64* %sv_0, align 8
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_10
LBL_3:
%12 = and i64 %arg1, 4294967295
store i64 %9, i64* %6, align 8
%13 = add i64 %9, 32
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %4, add (i64 ptrtoint (i64* @gv_0 to i64), i64 8)
%16 = call i64 @FUNC(i64 %15, i64 4198907)
%17 = call i64 @FUNC(i64 %9, i64 %12, i64 1)
%18 = inttoptr i64 %9 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %9)
br label LBL_5
LBL_5:
%25 = add i64 %9, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = sext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28, i64 0)
%30 = add i64 %9, 24
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = icmp eq i64 %29, 0
br i1 %32, label LBL_9, label LBL_6
LBL_6:
%33 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%34 = icmp eq i32 %33, -1
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_8, label LBL_7
LBL_7:
store i32 1, i32* bitcast (i64* @gv_1 to i32*), align 8
br label LBL_8
LBL_8:
%36 = add i64 %9, 16
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %9, 12
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = call i64 @FUNC(i64 %9, i32 %41, i32 %38, i64 1)
%43 = call i64 @FUNC(i64 %12)
%44 = call i64 @FUNC(i64* nonnull @gv_2, i64 1, i64* nonnull %sv_0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%45 = call i64 @FUNC(i64 %9)
%46 = call i64 @FUNC(i64 %9)
store i64 0, i64* %6, align 8
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %9, { 4, 5, 3, 2, 1, 7, 6, 0, 9, 8, 10, 11, 13, 12 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 1, { 12, 11, 9, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_10, { 3, 4, 0, 1, 2 }
} | 1 |
BinRealVul | skip_short_body_11581 | skip_short_body | define i64 @FUNC(i64 %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi.3.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.325.reg2mem = alloca i64
%rcx.226.reg2mem = alloca i64
%rdx.127.reg2mem = alloca i64
%rsi.228.reg2mem = alloca i64
%sv_1.129.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%3 = icmp slt i64 %arg2, 4097
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_19
LBL_1:
%4 = sext i8 %arg3 to i64
%5 = icmp eq i64 %arg2, 0
%6 = icmp slt i64 %arg2, 0
%7 = icmp eq i1 %6, false
%8 = icmp eq i1 %5, false
%9 = icmp eq i1 %7, %8
%10 = icmp eq i8 %arg3, 0
%11 = icmp eq i1 %10, false
%or.cond24 = or i1 %11, %9
store i64 %4, i64* %rdx.2.reg2mem
store i64 %arg2, i64* %rsi.3.reg2mem
br i1 %or.cond24, label LBL_2, label LBL_18
LBL_2:
%12 = and i64 %arg1, 4294967295
%13 = ptrtoint i64* %sv_3 to i64
%14 = bitcast i64* %sv_3 to i8**
%15 = ptrtoint i64* %sv_2 to i64
store i64 %arg2, i64* %sv_1.129.reg2mem
store i64 %arg2, i64* %rsi.228.reg2mem
store i64 %4, i64* %rdx.127.reg2mem
store i64 0, i64* %sv_0.325.reg2mem
br label LBL_3
LBL_3:
%sv_0.325.reload = load i64, i64* %sv_0.325.reg2mem
%rcx.226.reload = load i64, i64* %rcx.226.reg2mem
%rdx.127.reload = load i64, i64* %rdx.127.reg2mem
%rsi.228.reload = load i64, i64* %rsi.228.reg2mem
%sv_1.129.reload = load i64, i64* %sv_1.129.reg2mem
store i64 %sv_0.325.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.226.reload, i64* %rcx.1.reg2mem
store i64 %rdx.127.reload, i64* %rdx.0.reg2mem
store i64 %rsi.228.reload, i64* %rsi.1.reg2mem
store i64 %sv_1.129.reload, i64* %sv_1.0.reg2mem
br i1 %10, label LBL_9, label LBL_4
LBL_4:
%16 = icmp eq i64 %sv_0.325.reload, 0
%17 = icmp eq i1 %16, false
store i64 %sv_0.325.reload, i64* %sv_0.0.reg2mem
store i64 %rcx.226.reload, i64* %rcx.0.reg2mem
store i64 %rsi.228.reload, i64* %rsi.0.reg2mem
br i1 %17, label LBL_8, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %12)
%19 = icmp eq i64 %18, 0
store i64 %rcx.226.reload, i64* %rcx.3.reg2mem
store i64 %rdx.127.reload, i64* %rdx.2.reg2mem
store i64 %rsi.228.reload, i64* %rsi.3.reg2mem
br i1 %19, label LBL_18, label LBL_6
LBL_6:
%20 = inttoptr i64 %18 to i8*
%21 = call i32 @strtol(i8* %20, i8** nonnull %14, i32 16)
%22 = sext i32 %21 to i64
%23 = call i64 @FUNC(i64 %18)
%24 = icmp eq i32 %21, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %sv_0.0.reg2mem
store i64 %13, i64* %rcx.0.reg2mem
store i64 %13, i64* %rsi.0.reg2mem
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64 %12)
%27 = call i64 @FUNC(i64 %26)
store i64 %13, i64* %rcx.3.reg2mem
store i64 16, i64* %rdx.2.reg2mem
store i64 %13, i64* %rsi.3.reg2mem
br label LBL_18
LBL_8:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = add i64 %sv_0.0.reload, -512
%29 = sub i64 511, %sv_0.0.reload
%30 = and i64 %29, %sv_0.0.reload
%31 = icmp slt i64 %30, 0
%32 = icmp eq i64 %28, 0
%33 = icmp slt i64 %28, 0
%34 = icmp eq i1 %33, %31
%35 = icmp eq i1 %32, false
%36 = icmp eq i1 %34, %35
%37 = select i1 %36, i64 512, i64 %sv_0.0.reload
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 512, i64* %rdx.0.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
store i64 %37, i64* %sv_1.0.reg2mem
br label LBL_9
LBL_9:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%38 = call i64 @FUNC(i64 %sv_1.0.reload)
%39 = call i64 @FUNC(i64 %38, i64 %rsi.1.reload, i64 %rdx.0.reload, i64 %rcx.1.reload, i64 %2, i64 %1)
%40 = add i64 %sv_1.0.reload, -512
%41 = sub i64 511, %sv_1.0.reload
%42 = and i64 %41, %sv_1.0.reload
%43 = icmp slt i64 %42, 0
%44 = icmp eq i64 %40, 0
%45 = icmp slt i64 %40, 0
%46 = icmp eq i1 %45, %43
%47 = icmp eq i1 %44, false
%48 = icmp eq i1 %46, %47
%49 = and i64 %sv_1.0.reload, 4294967295
%50 = select i1 %48, i64 512, i64 %49
%51 = call i64 @FUNC(i64 %12, i64* nonnull %sv_2, i64 %50, i64 4294967295)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp slt i32 %52, 0
%55 = icmp eq i1 %54, false
%56 = icmp eq i1 %53, false
%57 = icmp eq i1 %55, %56
br i1 %57, label LBL_13, label LBL_10
LBL_10:
store i64 ptrtoint ([13 x i8]* @gv_0 to i64), i64* %storemerge.reg2mem
br i1 %55, label LBL_12, label LBL_11
LBL_11:
%58 = call i64 @FUNC(i64 %12)
store i64 %58, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%59 = call i64 @FUNC(i64 %storemerge.reload, i64 %15, i64 %50, i64 4294967295, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_13:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sext3 = mul i64 %51, 4294967296
%60 = ashr exact i64 %sext3, 32
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br i1 %10, label LBL_17, label LBL_14
LBL_14:
%61 = sub i64 %sv_0.1.reload, %60
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
store i64 %61, i64* %sv_0.2.reg2mem
br i1 %63, label LBL_17, label LBL_15
LBL_15:
%64 = call i64 @FUNC(i64 %12)
%65 = icmp eq i64 %64, 0
%66 = icmp eq i1 %65, false
store i64 0, i64* %rax.0.reg2mem
br i1 %66, label LBL_16, label LBL_19
LBL_16:
%67 = call i64 @FUNC(i64 %64)
store i64 %61, i64* %sv_0.2.reg2mem
br label LBL_17
LBL_17:
%68 = sub i64 %sv_1.0.reload, %60
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%69 = call i64 @FUNC(i64 %15, i64 %15, i64 %50, i64 4294967295, i64 %2, i64 %1)
%70 = icmp eq i64 %68, 0
%71 = icmp slt i64 %68, 0
%72 = icmp eq i1 %71, false
%73 = icmp eq i1 %70, false
%74 = icmp eq i1 %72, %73
%or.cond = or i1 %11, %74
store i64 %68, i64* %sv_1.129.reg2mem
store i64 %15, i64* %rsi.228.reg2mem
store i64 %50, i64* %rdx.127.reg2mem
store i64 4294967295, i64* %rcx.226.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.325.reg2mem
store i64 4294967295, i64* %rcx.3.reg2mem
store i64 %50, i64* %rdx.2.reg2mem
store i64 %15, i64* %rsi.3.reg2mem
br i1 %or.cond, label LBL_3, label LBL_18
LBL_18:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%75 = call i64 @FUNC(i64 ptrtoint ([9 x i8]* @gv_1 to i64), i64 %rsi.3.reload, i64 %rdx.2.reload, i64 %rcx.3.reload, i64 %2, i64 %1)
store i64 1, 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 %60, { 1, 0 }
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %52, { 1, 0 }
uselistorder i64 %50, { 0, 1, 3, 2, 4 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 4, 2, 5, 1, 3, 0 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 0, 3, 4, 1, 2 }
uselistorder i64 %rsi.228.reload, { 0, 2, 1 }
uselistorder i64 %rcx.226.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.325.reload, { 1, 2, 0 }
uselistorder i64 %15, { 0, 1, 3, 4, 2 }
uselistorder i64 %12, { 1, 2, 0, 3, 4 }
uselistorder i1 %11, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %sv_1.129.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.228.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdx.127.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.226.reg2mem, { 1, 0 }
uselistorder i64* %sv_0.325.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.3.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rdx.2.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i64* %rsi.3.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 4, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @DEBUGP, { 3, 2, 1, 0 }
uselistorder i64 512, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @xfree, { 2, 1, 0 }
uselistorder i64 (i64)* @fd_read_line, { 2, 1, 0 }
uselistorder i64 4294967295, { 0, 1, 4, 3, 6, 5, 2 }
uselistorder i1 false, { 12, 4, 5, 6, 7, 3, 8, 9, 10, 11, 2, 0, 1 }
uselistorder i64 %arg2, { 1, 2, 0, 3, 4, 5 }
uselistorder label LBL_19, { 2, 0, 3, 1 }
uselistorder label LBL_18, { 1, 3, 0, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | tcp_shifted_skb_13830 | tcp_shifted_skb | define i64 @FUNC(i8* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i32 %arg5, i32 %arg6, i64 %arg7, i64 %arg8) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdx = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i8* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %arg5, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg4 to i64
%12 = add i32 %7, %arg6
%13 = trunc i64 %1 to i32
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %arg8 to i8
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = call i64 @FUNC(i64 %3, i64 %11, i32 %18, i32 %7, i32 %12, i8 %15)
%20 = call i64 @FUNC(i64 %3, i64 %2, i32 %13)
%21 = inttoptr i64 %4 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, %2
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = add i64 %4, 16
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i32 %27, %arg5
store i32 %28, i32* %26, align 4
br label LBL_4
LBL_4:
%29 = ptrtoint i64* %arg2 to i64
%30 = add i64 %29, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i32 %32, %arg6
store i32 %33, i32* %31, align 4
%34 = load i32, i32* %6, align 4
%35 = add i32 %34, %arg6
store i32 %35, i32* %6, align 4
%36 = zext i32 %arg5 to i64
%37 = call i64 @FUNC(i64 %29, i64 %36)
%38 = call i64 @FUNC(i64 %2)
%39 = trunc i64 %38 to i32
%40 = icmp ult i32 %39, %arg5
br i1 %40, label LBL_5, label LBL_6
LBL_5:
%41 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
br label LBL_6
LBL_6:
%42 = sub i32 0, %arg5
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %2, i64 %43)
%45 = add i64 %29, 24
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = trunc i64 %arg7 to i32
store i32 %50, i32* %46, align 4
br label LBL_8
LBL_8:
%51 = call i64 @FUNC(i64 %2)
%52 = trunc i64 %51 to i32
%53 = icmp ult i32 %52, 2
br i1 %53, label LBL_9, label LBL_10
LBL_9:
%54 = add i64 %2, 24
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
br label LBL_10
LBL_10:
%56 = add i64 %29, 16
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = load i32, i32* %17, align 4
%60 = urem i32 %59, 2
%61 = or i32 %60, %58
store i32 %61, i32* %57, align 4
%62 = bitcast i64* %rdx to i32*
%63 = load i32, i32* %62, align 8
%64 = icmp slt i32 %63, 1
br i1 %64, label LBL_14, label LBL_11
LBL_11:
%65 = call i64 @FUNC(i64 %2)
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
%68 = icmp eq i1 %67, false
br i1 %68, label LBL_13, label LBL_12
LBL_12:
%69 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
br label LBL_13
LBL_13:
%70 = call i64 @FUNC(i64 %3)
%71 = call i64 @FUNC(i64 %70, i64 0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_25
LBL_14:
%72 = add i64 %4, 8
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = icmp eq i64 %74, %2
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_16, label LBL_15
LBL_15:
store i64 %29, i64* %73, align 8
br label LBL_16
LBL_16:
%77 = load i64, i64* %21, align 8
%78 = icmp eq i64 %77, %2
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_18, label LBL_17
LBL_17:
store i64 %29, i64* %21, align 8
%80 = call i64 @FUNC(i64 %29)
%81 = trunc i64 %80 to i32
%82 = add i64 %4, 16
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = sub i32 %84, %81
store i32 %85, i32* %83, align 4
br label LBL_18
LBL_18:
%86 = add i64 %29, 12
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = add i64 %2, 12
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = or i32 %91, %88
store i32 %92, i32* %87, align 4
%93 = add i64 %2, 20
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = add i64 %29, 20
%97 = inttoptr i64 %96 to i32*
store i32 %95, i32* %97, align 4
%98 = load i32, i32* %90, align 4
%99 = urem i32 %98, 2
%100 = icmp eq i32 %99, 0
br i1 %100, label LBL_20, label LBL_19
LBL_19:
%101 = load i32, i32* %31, align 4
%102 = add i32 %101, 1
store i32 %102, i32* %31, align 4
br label LBL_20
LBL_20:
%103 = call i64 @FUNC(i64 %3)
%104 = icmp eq i64 %103, %2
%105 = icmp eq i1 %104, false
br i1 %105, label LBL_22, label LBL_21
LBL_21:
%106 = call i64 @FUNC(i64 %3, i64 %2)
br label LBL_22
LBL_22:
%107 = call i64 @FUNC(i64 %29, i64 %2)
%108 = add i64 %29, 28
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = icmp eq i32 %110, 0
br i1 %111, label LBL_24, label LBL_23
LBL_23:
store i32 0, i32* %109, align 4
br label LBL_24
LBL_24:
%112 = call i64 @FUNC(i64 %2, i64 %3)
%113 = call i64 @FUNC(i64 %3)
%114 = call i64 @FUNC(i64 %113, i64 1)
store i64 1, i64* %storemerge.reg2mem
br label LBL_25
LBL_25:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %31, { 1, 0, 2, 3 }
uselistorder i64 %29, { 4, 3, 5, 6, 1, 2, 0, 7, 8, 9, 10 }
uselistorder i64* %21, { 1, 0, 2 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32* %6, { 1, 0, 2 }
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64 %3, { 3, 2, 1, 4, 0, 6, 5, 7 }
uselistorder i64 %2, { 5, 6, 7, 0, 8, 9, 1, 2, 4, 10, 11, 12, 13, 3, 14, 15, 16, 17 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @NET_INC_STATS, { 1, 0 }
uselistorder i64 (i64)* @sock_net, { 1, 0 }
uselistorder i64 (i64)* @tcp_skb_pcount, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @tcp_skb_pcount_add, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 2, 1, 0 }
uselistorder i32 %arg5, { 2, 1, 3, 0, 4 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | jswrap_ble_BluetoothDevice_sendPasskey_12370 | jswrap_ble_BluetoothDevice_sendPasskey | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 7)
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 7)
%3 = call i64 @FUNC(i64* nonnull %sv_0)
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
ret i64 %5
} | 1 |
BinRealVul | ssl_set_client_disabled_10332 | ssl_set_client_disabled | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem2 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%. = zext i1 %6 to i32
store i32 %., i32* %8, align 4
%9 = call i64 @FUNC(i64 %0, i64 %0, i64 8192)
%10 = bitcast i64* %rdi to i32*
%11 = load i32, i32* %10, align 8
%12 = urem i32 %11, 2
%13 = icmp eq i32 %12, 0
store i32 %11, i32* %.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = load i32, i32* %3, align 4
%15 = or i32 %14, 6
store i32 %15, i32* %3, align 4
%.pre = load i32, i32* %10, align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
%16 = and i32 %.reload, 8
%17 = icmp eq i32 %16, 0
store i32 %.reload, i32* %.reg2mem2
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = load i32, i32* %3, align 4
%19 = or i32 %18, 16
store i32 %19, i32* %3, align 4
%.pre1 = load i32, i32* %10, align 8
store i32 %.pre1, i32* %.reg2mem2
br label LBL_4
LBL_4:
%.reload3 = load i32, i32* %.reg2mem2
%20 = and i32 %.reload3, 32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = load i32, i32* %3, align 4
%23 = or i32 %22, 64
store i32 %23, i32* %3, align 4
br label LBL_6
LBL_6:
%24 = inttoptr i64 %7 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = load i32, i32* %10, align 8
%31 = or i32 %30, 128
store i32 %31, i32* %1, align 4
%32 = load i32, i32* %3, align 4
%33 = or i32 %32, 256
store i32 %33, i32* %3, align 4
br label LBL_8
LBL_8:
%34 = add i64 %0, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_10, label LBL_9
LBL_9:
%39 = load i32, i32* %10, align 8
%40 = or i32 %39, 512
store i32 %40, i32* %1, align 4
%41 = load i32, i32* %3, align 4
%42 = or i32 %41, 1024
store i32 %42, i32* %3, align 4
br label LBL_10
LBL_10:
%43 = add i64 %0, 24
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = and i32 %45, 4096
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_12, label LBL_11
LBL_11:
%49 = load i32, i32* %10, align 8
%50 = or i32 %49, 2048
store i32 %50, i32* %1, align 4
%51 = load i32, i32* %3, align 4
%52 = or i32 %51, 4096
store i32 %52, i32* %3, align 4
br label LBL_12
LBL_12:
%53 = add i64 %0, 12
%54 = inttoptr i64 %53 to i32*
store i32 1, i32* %54, align 4
ret i64 %0
uselistorder i32* %10, { 4, 3, 2, 0, 1, 5 }
uselistorder i32* %3, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12 }
uselistorder i32* %1, { 2, 1, 0, 3 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem2, { 0, 2, 1 }
} | 0 |
BinRealVul | ar_parse_gnu_filename_table_18711 | ar_parse_gnu_filename_table | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem23 = alloca i64
%storemerge2.lcssa.reg2mem = alloca i8*
%storemerge2.in.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%.reg2mem21 = alloca i64
%storemerge2.in10.reg2mem = alloca i64
%storemerge211.reg2mem = alloca i8*
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %5 to i64*
%10 = load i64, i64* %9, align 8
%storemerge29 = inttoptr i64 %10 to i8*
%11 = add i64 %8, -1
%12 = add i64 %10, %11
%13 = icmp ugt i64 %12, %10
store i64 %10, i64* %.reg2mem
store i8* %storemerge29, i8** %storemerge211.reg2mem
store i64 %10, i64* %storemerge2.in10.reg2mem
store i64 %10, i64* %storemerge2.in.lcssa.reg2mem
store i8* %storemerge29, i8** %storemerge2.lcssa.reg2mem
store i64 %10, i64* %.reg2mem23
br i1 %13, label LBL_1, label LBL_5
LBL_1:
%storemerge211.reload = load i8*, i8** %storemerge211.reg2mem
%.reload = load i64, i64* %.reg2mem
%14 = load i8, i8* %storemerge211.reload, align 1
%15 = icmp eq i8 %14, 47
%16 = icmp eq i1 %15, false
store i64 %.reload, i64* %.reg2mem21
store i8* %storemerge211.reload, i8** %sv_0.0.reg2mem
br i1 %16, label LBL_4, label LBL_2
LBL_2:
%storemerge2.in10.reload = load i64, i64* %storemerge2.in10.reg2mem
%17 = add i64 %storemerge2.in10.reload, 1
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %storemerge211.reload, align 1
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 10
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_3
LBL_3:
store i8 0, i8* %18, align 1
%.pre = load i64, i64* %9, align 8
store i64 %.pre, i64* %.reg2mem21
store i8* %18, i8** %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%22 = ptrtoint i8* %sv_0.0.reload to i64
%23 = add i64 %22, 1
%storemerge2 = inttoptr i64 %23 to i8*
%24 = add i64 %.reload22, %11
%25 = icmp ugt i64 %24, %23
store i64 %.reload22, i64* %.reg2mem
store i8* %storemerge2, i8** %storemerge211.reg2mem
store i64 %23, i64* %storemerge2.in10.reg2mem
store i64 %23, i64* %storemerge2.in.lcssa.reg2mem
store i8* %storemerge2, i8** %storemerge2.lcssa.reg2mem
store i64 %.reload22, i64* %.reg2mem23
br i1 %25, label LBL_1, label LBL_5
LBL_5:
%.reload24 = load i64, i64* %.reg2mem23
%storemerge2.in.lcssa.reload = load i64, i64* %storemerge2.in.lcssa.reg2mem
%26 = add i64 %.reload24, %8
%27 = icmp eq i64 %26, %storemerge2.in.lcssa.reload
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%storemerge2.lcssa.reload = load i8*, i8** %storemerge2.lcssa.reg2mem
%28 = load i8, i8* %storemerge2.lcssa.reload, align 1
%29 = icmp ne i8 %28, 10
%30 = icmp eq i8 %28, 96
%31 = icmp eq i1 %30, false
%or.cond = icmp eq i1 %29, %31
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%32 = add i64 %.reload24, %11
%33 = inttoptr i64 %32 to i8*
store i8 0, i8* %33, align 1
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_8:
%34 = call i64 @FUNC(i64 %0, i64 22, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%35 = load i64, i64* %9, align 8
%36 = inttoptr i64 %35 to i64*
call void @free(i64* %36)
store i64 0, i64* %9, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.reload24, { 1, 0 }
uselistorder i64 %23, { 0, 1, 3, 2 }
uselistorder i64 %.reload22, { 0, 2, 1 }
uselistorder i8* %storemerge211.reload, { 1, 0, 2 }
uselistorder i64 %10, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64* %9, { 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %storemerge211.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.in10.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | add_av_stream1_3770 | add_av_stream1 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %2, 10
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = call i64 @FUNC(i64 24)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_7
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = trunc i64 %arg3 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 0)
%11 = inttoptr i64 %4 to i64*
store i64 %10, i64* %11, align 8
%12 = inttoptr i64 %10 to i64*
%13 = call i64* @memcpy(i64* %12, i64* %arg2, i32 24)
%14 = bitcast i64* %rsi to i32*
%15 = load i32, i32* %14, align 8
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%17 = sext i32 %15 to i64
%18 = load i64, i64* %11, align 8
%19 = call i64 @FUNC(i64 %17)
%20 = add i64 %18, 8
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
%22 = load i32, i32* %14, align 8
%23 = add i64 %7, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = load i64, i64* %11, align 8
%27 = add i64 %26, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = inttoptr i64 %29 to i64*
%31 = inttoptr i64 %25 to i64*
%32 = call i64* @memcpy(i64* %30, i64* %31, i32 %22)
br label LBL_6
LBL_5:
%33 = inttoptr i64 %4 to i64*
store i64 %7, i64* %33, align 8
br label LBL_6
LBL_6:
%34 = ptrtoint i64* %arg1 to i64
%35 = bitcast i64* %rdi to i32*
%36 = call i64 @FUNC(i64 4)
%37 = add i64 %4, 8
%38 = inttoptr i64 %37 to i64*
store i64 %36, i64* %38, align 8
%39 = load i32, i32* %35, align 8
%40 = add i64 %4, 16
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = call i64 @FUNC(i64 %4, i64 33, i64 1, i64 90000)
%43 = add i64 %7, 16
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %4, 20
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
%48 = load i32, i32* %35, align 8
%49 = add i32 %48, 1
%50 = bitcast i64* %arg1 to i32*
store i32 %49, i32* %50, align 4
%51 = sext i32 %48 to i64
%52 = mul i64 %51, 8
%53 = add i64 %34, 8
%54 = add i64 %53, %52
%55 = inttoptr i64 %54 to i64*
store i64 %4, i64* %55, align 8
store i64 %4, 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 %7, { 1, 2, 0 }
uselistorder i64 %4, { 0, 2, 4, 3, 5, 6, 7, 1, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 8, { 1, 0, 2, 3, 4, 5 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64)* @av_mallocz, { 2, 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | alloc_top_6328 | alloc_top | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = sub i64 %0, %arg1
store i64 %1, i64* @gv_0, align 8
%2 = load i64, i64* @gv_1, align 8
%3 = icmp ult i64 %1, %2
%4 = icmp eq i1 %3, false
store i64 %1, i64* %.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1)
%6 = call i64 @FUNC()
%7 = load i64, i64* @gv_0, align 8
%8 = sub i64 %7, %arg1
store i64 %8, i64* @gv_0, align 8
store i64 %8, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
ret i64 %.reload
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
} | 0 |
BinRealVul | dlm_lowcomms_commit_buffer_17748 | dlm_lowcomms_commit_buffer | 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 = add i32 %3, -1
store i32 %4, i32* %2, align 4
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = sub i32 %9, %12
%14 = add i64 %0, 12
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %0, 40
%21 = call i64 @FUNC(i64 %20)
%22 = call i64 @FUNC(i64 0, i64 %0)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %rax.0.reg2mem
br i1 %25, label LBL_4, label LBL_2
LBL_2:
%26 = call i64 @FUNC(i64* nonnull @gv_0)
%27 = call i64 @FUNC(i64 %1, i64* nonnull @gv_1)
%28 = call i64 @FUNC(i64* nonnull @gv_0)
%29 = call i64 @FUNC(i64* nonnull @gv_2)
store i64 %29, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%30 = add i64 %0, 40
%31 = call i64 @FUNC(i64 %30)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 6, 1, 0, 2, 5, 4, 3, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @spin_unlock, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 1 |
BinRealVul | qemu_rdma_dump_id_17129 | qemu_rdma_dump_id | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = bitcast i32* %sv_0 to i64*
%1 = call i64 @FUNC(i64 %arg2, i64 1, i64* nonnull %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = call i32 @fwrite(i64* bitcast ([35 x i8]* @gv_1 to i64*), i32 1, i32 34, %_IO_FILE* %4)
store i32 %5, i32* %storemerge.in.reg2mem
br label LBL_5
LBL_2:
%6 = load i32, i32* %sv_0, align 4
%7 = icmp eq i32 %6, 1
store i64 ptrtoint ([11 x i8]* @gv_2 to i64), i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = icmp eq i32 %6, 2
%9 = icmp eq i1 %8, false
%. = select i1 %9, i64 ptrtoint ([8 x i8]* @gv_3 to i64), i64 ptrtoint ([9 x i8]* @gv_4 to i64)
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%10 = zext i32 %6 to i64
%11 = load i64, i64* inttoptr (i64 25 to i64*), align 8
%12 = load i64, i64* inttoptr (i64 17 to i64*), align 8
%13 = load i64, i64* inttoptr (i64 9 to i64*), align 8
%14 = inttoptr i64 %rax.0.reload to i8*
%15 = inttoptr i64 %13 to i8*
%16 = inttoptr i64 %12 to i8*
%17 = inttoptr i64 %11 to i8*
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([153 x i8], [153 x i8]* @gv_5, i64 0, i64 0), i8* %arg1, i8* inttoptr (i64 1 to i8*), i8* %15, i8* %16, i8* %17, i64 %10, i8* %14)
store i32 %18, 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
ret i64 %storemerge
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | show_man_page_3912 | show_man_page | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i32 3)
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i32 @strlen(i8* %0)
%5 = add i32 %4, 4
%6 = add i32 %4, 5
%7 = sext i32 %6 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = inttoptr i64 %8 to i32*
store i32 762603879, i32* %9, align 4
%10 = add i64 %8, 4
%11 = inttoptr i64 %10 to i8*
store i8 0, i8* %11, align 1
%12 = call i8* @strcpy(i8* %11, i8* %0)
%13 = sext i32 %5 to i64
%14 = add i64 %8, %13
%15 = inttoptr i64 %14 to i8*
store i8 0, i8* %15, align 1
br label LBL_2
LBL_2:
%16 = call i32 (i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
%17 = sext i32 %16 to i64
ret i64 %17
uselistorder i64 %8, { 0, 2, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfc_llcp_mac_is_down_12211 | nfc_llcp_mac_is_down | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = inttoptr i64 %1 to i32*
store i32 128, i32* %3, align 4
%4 = add i64 %1, 4
%5 = inttoptr i64 %4 to i32*
store i32 10, i32* %5, align 4
%6 = call i64 @FUNC(i64 %1, i64 1, i64 0)
store i64 %6, 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 label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | alloc_frame_15854 | alloc_frame | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%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_2
LBL_1:
%3 = inttoptr i64 %0 to i32*
%4 = trunc i64 %arg1 to i32
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
store i32 %4, i32* %6, align 4
%7 = trunc i64 %arg2 to i32
store i32 %7, i32* %3, align 4
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
store i32 %arg3, i32* %9, align 4
%10 = call i64 @FUNC(i64 %0, i64 32)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
%. = select i1 %13, i64 %0, i64 0
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
} | 1 |
BinRealVul | proc_self_follow_link_8004 | proc_self_follow_link | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = call i64 @FUNC(i64 4294967294)
%5 = inttoptr i64 %4 to i8*
%6 = icmp eq i32 %3, 0
store i8* %5, i8** %sv_0.0.reg2mem
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = call i64 @FUNC()
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 4294967284)
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%12 = inttoptr i64 %7 to i8*
%13 = and i64 %2, 4294967295
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %13)
store i8* %12, i8** %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%15 = ptrtoint i64* %arg2 to i64
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%16 = ptrtoint i8* %sv_0.0.reload to i64
%17 = call i64 @FUNC(i64 %15, i64 %16)
ret i64 0
uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @ERR_PTR, { 1, 0 }
} | 0 |
BinRealVul | handle_external_interrupt_irqoff_19221 | handle_external_interrupt_irqoff | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = load i64, i64* @gv_0, align 8
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %2)
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %0, i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder label LBL_2, { 1, 0 }
} | 1 |
reposvul_c_test | xmlrpc_append_char_encode_250 | xmlrpc_append_char_encode | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%.reg2mem4 = alloca i8
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = icmp eq i64 %arg2, 0
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_7, label LBL_2
LBL_2:
%5 = inttoptr i64 %arg2 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_3, label LBL_7
LBL_3:
%10 = bitcast i64* %sv_0 to i8*
store i64 %7, i64* %.reg2mem
store i8 %6, i8* %.reg2mem4
store i64 0, i64* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%.reload5 = load i8, i8* %.reg2mem4
%11 = icmp slt i8 %.reload5, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%13 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %10, i32 15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %.reload)
%14 = call i32 @strlen(i8* nonnull %10)
br label LBL_6
LBL_6:
%15 = add i64 %storemerge2.reload, 1
%16 = add i64 %15, %arg2
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i64
%20 = icmp eq i8 %18, 0
%21 = icmp eq i1 %20, false
store i64 %19, i64* %.reg2mem
store i8 %18, i8* %.reg2mem4
store i64 %15, i64* %storemerge2.reg2mem
store i64 %19, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem4, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 2, 1, 0, 3 }
uselistorder label LBL_7, { 0, 1, 3, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | vapic_prepare_16470 | vapic_prepare | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 1)
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 label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mkv_write_cues_608 | mkv_write_cues | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge2.lcssa.reg2mem = alloca i32
%rsi.0.lcssa.reg2mem = alloca i64
%storemerge2412.reg2mem = alloca i32
%.reg2mem17 = alloca i64
%rsi.18.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i32* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1, i64 475249515, i64 0)
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%8 = mul i32 %arg3, 10
%9 = zext i32 %8 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge9.reg2mem
store i64 475249515, i64* %rsi.18.reg2mem
br label LBL_2
LBL_2:
%rsi.18.reload = load i64, i64* %rsi.18.reg2mem
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = mul nsw i64 %.reload, 24
%11 = add nsw i64 %rsi.18.reload, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %1, i64 187, i64 %9)
%15 = call i64 @FUNC(i64 %1, i64 231, i64 %13)
%16 = load i32, i32* %5, align 4
%17 = icmp eq i32 %16, %storemerge9.reload
store i64 231, i64* %rsi.0.lcssa.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %17, label LBL_6, label LBL_3
LBL_3:
%18 = load i64, i64* %12, align 8
%19 = icmp eq i64 %13, %18
store i64 %11, i64* %.reg2mem17
store i32 0, i32* %storemerge2412.reg2mem
store i64 231, i64* %rsi.0.lcssa.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %19, label LBL_4, label LBL_6
LBL_4:
%storemerge2412.reload = load i32, i32* %storemerge2412.reg2mem
%.reload18 = load i64, i64* %.reg2mem17
%20 = call i64 @FUNC(i64 %1, i64 247, i64 10)
%21 = add nsw i64 %.reload18, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = sext i32 %23 to i64
%25 = call i64 @FUNC(i64 %1, i64 241, i64 %24)
%26 = add nsw i64 %.reload18, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %1, i64 241, i64 %28)
%30 = call i64 @FUNC(i64 %1)
%31 = add i32 %storemerge2412.reload, 1
%32 = load i32, i32* %5, align 4
%33 = sub i32 %32, %storemerge9.reload
%34 = zext i32 %33 to i64
%35 = sext i32 %31 to i64
%36 = icmp slt i64 %35, %34
store i64 241, i64* %rsi.0.lcssa.reg2mem
store i32 %31, i32* %storemerge2.lcssa.reg2mem
br i1 %36, label LBL_5, label LBL_6
LBL_5:
%37 = mul nsw i64 %35, 24
%38 = add nsw i64 %37, %11
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %13, %40
store i64 %38, i64* %.reg2mem17
store i32 %31, i32* %storemerge2412.reg2mem
store i64 241, i64* %rsi.0.lcssa.reg2mem
store i32 %31, i32* %storemerge2.lcssa.reg2mem
br i1 %41, label LBL_4, label LBL_6
LBL_6:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%rsi.0.lcssa.reload = load i64, i64* %rsi.0.lcssa.reg2mem
%42 = call i64 @FUNC(i64 %1)
%43 = add i32 %storemerge2.lcssa.reload, %storemerge9.reload
%44 = load i32, i32* %5, align 4
%45 = zext i32 %44 to i64
%46 = sext i32 %43 to i64
%47 = icmp slt i64 %46, %45
store i64 %46, i64* %.reg2mem
store i32 %43, i32* %storemerge9.reg2mem
store i64 %rsi.0.lcssa.reload, i64* %rsi.18.reg2mem
br i1 %47, label LBL_2, label LBL_7
LBL_7:
%48 = call i64 @FUNC(i64 %1)
ret i64 %2
uselistorder i32 %31, { 0, 2, 1, 3 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i32 %storemerge9.reload, { 2, 0, 1 }
uselistorder i32* %5, { 3, 2, 1, 0 }
uselistorder i64 %1, { 0, 1, 3, 2, 4, 5, 7, 6, 8, 9 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.18.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem17, { 2, 0, 1 }
uselistorder i32* %storemerge2412.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @put_ebml_uint, { 2, 1, 0 }
uselistorder i32 0, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64, i64)* @start_ebml_master, { 2, 1, 0 }
uselistorder label LBL_6, { 2, 1, 0, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | uv__idna_toascii_13144 | uv__idna_toascii | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem30 = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i64
%sv_0.0.ph21.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg3 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 %1, i64* %sv_2, align 8
store i64 %arg1, i64* %sv_1, align 8
%2 = icmp ult i64 %arg1, %arg2
store i64 %arg1, i64* %sv_0.0.ph21.reg2mem
store i64 %arg1, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %2, label LBL_1.lr.ph, label LBL_10
LBL_1:
%3 = call i64 @FUNC(i64* nonnull %sv_1, i64 %arg2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_16
LBL_2:
switch i32 %4, label LBL_2.dec_label_pc_401202_crit_edge [
i32 65377, label LBL_4
i32 65294, label LBL_4
i32 12290, label LBL_4
i32 46, label LBL_4
]
LBL_3:
%.pre = load i64, i64* %sv_1, align 8
%7 = icmp ult i64 %.pre, %arg2
store i64 %.pre, i64* %.reg2mem
store i64 %sv_0.0.ph21.reload, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %7, label LBL_1, label LBL_10
LBL_4:
%.reload = load i64, i64* %.reg2mem
%8 = call i64 @FUNC(i64 %sv_0.0.ph21.reload, i64 %.reload, i64* nonnull %sv_2, i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%sext6 = mul i64 %8, 4294967296
%12 = ashr exact i64 %sext6, 32
store i64 %12, i64* %rax.0.reg2mem
br label LBL_16
LBL_6:
%13 = load i64, i64* %sv_2, align 8
%14 = icmp ult i64 %13, %0
br i1 %14, label LBL_7, label LBL_8
LBL_7:
%15 = add i64 %13, 1
store i64 %15, i64* %sv_2, align 8
%16 = inttoptr i64 %13 to i8*
store i8 46, i8* %16, align 1
br label LBL_8
LBL_8:
%17 = load i64, i64* %sv_1, align 8
%18 = icmp ult i64 %17, %arg2
store i64 %17, i64* %sv_0.0.ph21.reg2mem
store i64 %17, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %18, label LBL_1.lr.ph, label LBL_10
LBL_9:
%sv_0.0.ph21.reload = load i64, i64* %sv_0.0.ph21.reg2mem
store i64 %sv_0.0.ph21.reload, i64* %.reg2mem
br label LBL_1
LBL_10:
%sv_0.0.ph.lcssa.reload = load i64, i64* %sv_0.0.ph.lcssa.reg2mem
%19 = icmp ult i64 %sv_0.0.ph.lcssa.reload, %arg2
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_13, label LBL_11
LBL_11:
%21 = call i64 @FUNC(i64 %sv_0.0.ph.lcssa.reload, i64 %arg2, i64* nonnull %sv_2, i64 %0)
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_13, label LBL_12
LBL_12:
%sext = mul i64 %21, 4294967296
%25 = ashr exact i64 %sext, 32
store i64 %25, i64* %rax.0.reg2mem
br label LBL_16
LBL_13:
%26 = load i64, i64* %sv_2, align 8
%27 = icmp ult i64 %26, %0
store i64 %26, i64* %.reg2mem30
br i1 %27, label LBL_14, label LBL_15
LBL_14:
%28 = add i64 %26, 1
store i64 %28, i64* %sv_2, align 8
%29 = inttoptr i64 %26 to i8*
store i8 0, i8* %29, align 1
%.pre15 = load i64, i64* %sv_2, align 8
store i64 %.pre15, i64* %.reg2mem30
br label LBL_15
LBL_15:
%.reload31 = load i64, i64* %.reg2mem30
%30 = sub i64 %.reload31, %1
store i64 %30, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 2, 3, 0, 1 }
uselistorder i64 %sv_0.0.ph21.reload, { 2, 0, 1 }
uselistorder i64 %13, { 1, 2, 0 }
uselistorder i64* %sv_2, { 0, 3, 4, 1, 5, 6, 2, 7 }
uselistorder i64* %sv_1, { 2, 0, 1, 3 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.ph21.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 2, 3, 0, 1 }
uselistorder i64 %arg2, { 5, 4, 1, 2, 3, 0 }
uselistorder label LBL_16, { 1, 3, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_1.lr.ph, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | callchain_init_17759 | callchain_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 %0, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 %3, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 %3, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 %7, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 %7, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
ret i64 %0
uselistorder i64 %7, { 0, 2, 1 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 8, 7, 9 }
} | 1 |
BinRealVul | run_poll_handlers_3231 | run_poll_handlers | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp slt i32 %8, 0
%11 = icmp eq i1 %10, false
%12 = icmp eq i1 %9, false
%13 = icmp eq i1 %11, %12
br i1 %13, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%14 = add i64 %5, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%18 = call i64 @FUNC(i64 %5, i64 %arg2)
%19 = call i64 @FUNC(i64 0)
%20 = add i64 %19, %arg2
br label LBL_7
LBL_7:
%21 = call i64 @FUNC(i64 %5)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 1
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64 0)
%25 = icmp sgt i64 %20, %24
br i1 %25, label LBL_7, label LBL_9
LBL_9:
%26 = urem i64 %21, 256
%27 = call i64 @FUNC(i64 %5, i64 %26)
ret i64 %26
uselistorder i32 %8, { 1, 0 }
uselistorder i64 (i64)* @qemu_clock_get_ns, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
} | 0 |
BinRealVul | snd_pcm_period_elapsed_13445 | snd_pcm_period_elapsed | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %1)
%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_6, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %1, i64 %2)
%8 = call i64 @FUNC(i64 %1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %1, i64 1)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
br i1 %13, label LBL_5, label LBL_3
LBL_3:
%14 = add i64 %1, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = add i64 %1, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20, i64 1)
br label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %1, i64 29, i64 1)
%23 = call i64 @FUNC(i64 %1, i64 %2)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 3, 4, 1, 0, 2, 6, 5, 7 }
uselistorder i64 1, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 3, 0, 2, 1 }
} | 0 |
BinRealVul | picoquic_decode_stop_sending_frame_7209 | picoquic_decode_stop_sending_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%2 = add i64 %0, 1
%3 = call i64 @FUNC(i64 %2, i64 %arg3, i64* nonnull %sv_2)
%4 = icmp eq i64 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3, i64 %arg3, i64* nonnull %sv_1)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = call i64 @FUNC(i64 %1, i64 1, i64 4)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_3:
%9 = load i64, i64* %sv_2, align 8
%10 = call i64 @FUNC(i64 %1, i64 %9, i64 1)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %sv_0.1.reg2mem
br i1 %12, label LBL_4, label LBL_14
LBL_4:
%13 = load i64, i64* %sv_2, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%18 = add i64 %1, 32
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = load i64, i64* %sv_2, align 8
%22 = zext i32 %20 to i64
%23 = call i64 @FUNC(i64 %21, i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = call i64 @FUNC(i64 %1, i64 2, i64 4)
store i64 0, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_7:
%28 = add i64 %10, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 %5, i64* %sv_0.1.reg2mem
br i1 %32, label LBL_14, label LBL_8
LBL_8:
%33 = add i64 %10, 12
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 %5, i64* %sv_0.1.reg2mem
br i1 %37, label LBL_14, label LBL_9
LBL_9:
store i32 1, i32* %29, align 4
%38 = load i64, i64* %sv_1, align 8
%39 = add i64 %10, 24
%40 = inttoptr i64 %39 to i64*
store i64 %38, i64* %40, align 8
%41 = add i64 %1, 16
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = icmp eq i64 %43, 0
store i64 %5, i64* %sv_0.1.reg2mem
br i1 %44, label LBL_14, label LBL_10
LBL_10:
%45 = add i64 %10, 16
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 %5, i64* %sv_0.1.reg2mem
br i1 %49, label LBL_14, label LBL_11
LBL_11:
%50 = trunc i64 %1 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label LBL_13, label LBL_12
LBL_12:
%52 = inttoptr i64 %10 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %1, 8
%55 = call i64 @FUNC(i64 %1, i64 %54, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0), i64 %53, i64 3)
%56 = call i64 @FUNC(i64 %1, i64 3, i64 4)
br label LBL_13
LBL_13:
store i32 1, i32* %46, align 4
store i64 %5, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
ret i64 %sv_0.1.reload
uselistorder i64 %10, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %sv_2, { 1, 2, 3, 0, 4 }
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64 %1, { 3, 6, 2, 5, 4, 0, 1, 7, 8 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 4, 5, 6, 7, 2, 1, 8 }
uselistorder i64 2, { 2, 0, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @picoquic_connection_error, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64*)* @picoquic_frames_varint_decode, { 1, 0 }
uselistorder label LBL_14, { 1, 2, 3, 4, 5, 6, 0, 7 }
} | 0 |
BinRealVul | check_limit_5821 | check_limit | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = sext i32 %2 to i64
%4 = call i64 @FUNC(i64 %arg2)
%5 = icmp ult i64 %4, %3
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %4)
%8 = sext i32 %7 to i64
store i64 %8, 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 %3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | btrfs_extent_same_17442 | btrfs_extent_same | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i32* %arg4, i64 %arg5) 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
%3 = icmp eq i32* %arg1, %arg4
%4 = icmp eq i1 %3, false
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = ptrtoint i32* %arg4 to i64
%6 = ptrtoint i32* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 %arg2, i64 %5, i64 %arg5, i64 %arg3)
%8 = call i64 @FUNC(i64 %6, i64 %arg2, i64 %arg3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_6, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %5, i64 %arg5, i64 %arg3)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_6, label LBL_3
LBL_3:
%16 = xor i64 %2, %1
%17 = urem i64 %16, 2
%18 = icmp eq i64 %17, 0
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_6
LBL_4:
%19 = call i64 @FUNC(i64 %6, i64 %arg2, i64 %5, i64 %arg5, i64 %arg3)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 %19, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %6, i64 %5, i64 %arg2, i64 %arg3, i64 %arg3, i64 %arg5)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = call i64 @FUNC(i64 %6, i64 %arg2, i64 %5, i64 %arg5, i64 %arg3)
%25 = and i64 %sv_0.0.reload, 4294967295
store i64 %25, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %6, { 2, 0, 1, 3, 4 }
uselistorder i64 %5, { 3, 0, 1, 2, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1, 4, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @extent_same_check_offsets, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 %arg5, { 3, 0, 1, 2, 4 }
uselistorder i64 %arg3, { 4, 0, 1, 2, 3, 5, 6 }
uselistorder i64 %arg2, { 2, 0, 1, 4, 3 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 4, 1, 0, 2, 3 }
} | 1 |
BinRealVul | net_init_bridge_15982 | net_init_bridge | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0))
br label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%sext = mul i64 %11, 4294967296
%12 = ashr exact i64 %sext, 32
%13 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%sext3 = mul i64 %13, 4294967296
%14 = ashr exact i64 %sext3, 32
%15 = call i64 @FUNC(i64 %14, i64 %12)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, -1
%18 = icmp eq i1 %17, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_8
LBL_5:
%19 = ptrtoint i64* %arg3 to i64
%20 = call i32 (i32, i32, ...) @fcntl(i32 %16, i32 4)
%21 = and i64 %15, 4294967295
%22 = call i64 @FUNC(i64 %21)
%23 = ptrtoint i8* %arg2 to i64
%24 = and i64 %22, 4294967295
%25 = call i64 @FUNC(i64 %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i64 %23, i32 %16, i64 %24)
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = call i32 @close(i32 %16)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%29 = inttoptr i64 %25 to i8*
%30 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%31 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%32 = and i64 %30, 4294967295
%33 = and i64 %31, 4294967295
%34 = inttoptr i64 %33 to i8*
%35 = inttoptr i64 %32 to i8*
%36 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %29, i32 256, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0), i8* %34, i8* %35)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %16, { 0, 2, 1, 3 }
uselistorder i64 %0, { 3, 2, 5, 4, 1, 6, 0, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i8*, i8*)* @qemu_opt_set, { 1, 0 }
uselistorder i64 (i64, i8*)* @qemu_opt_get, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 2, 0 }
} | 1 |
BinRealVul | qdev_add_one_global_16406 | qdev_add_one_global | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 32)
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%3 = inttoptr i64 %1 to i64*
store i64 %2, i64* %3, align 8
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%8 = add i64 %1, 16
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = load i64, i64* %3, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_1
LBL_1:
%13 = inttoptr i64 %11 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
%16 = add i64 %1, 24
%17 = inttoptr i64 %16 to i8*
br i1 %15, label LBL_3, label LBL_2
LBL_2:
store i8 0, i8* %17, align 1
br label LBL_5
LBL_3:
store i8 1, i8* %17, align 1
br label LBL_5
LBL_4:
%18 = add i64 %1, 24
%19 = inttoptr i64 %18 to i8*
store i8 1, i8* %19, align 1
br label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %1)
ret i64 0
uselistorder i8* %17, { 1, 0 }
uselistorder i64 %1, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 (i64, i8*)* @qemu_opt_get, { 2, 1, 0 }
} | 1 |
BinRealVul | opj_pi_next_cprl_7658 | opj_pi_next_cprl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge12.reg2mem = alloca i64
%.reg2mem52 = alloca i32
%sv_0.5.reg2mem = alloca i32*
%.reg2mem50 = alloca i32
%sv_0.4.reg2mem = alloca i32*
%.reg2mem48 = alloca i32
%sv_0.3.reg2mem = alloca i32*
%.pre-phi23.reg2mem = alloca i64
%.reg2mem46 = alloca i32
%sv_0.2.reg2mem = alloca i32*
%.pre-phi33.reg2mem = alloca i64
%.pre-phi35.reg2mem = alloca i32*
%sv_0.1.reg2mem = alloca i32*
%.pre-phi24.reg2mem = alloca i64
%.reg2mem44 = alloca i32
%sv_0.0.reg2mem = alloca i32*
%.pre-phi25.reg2mem = alloca i64
%.pre-phi27.reg2mem = alloca i32*
%.reg2mem42 = alloca i32
%.pre-phi31.reg2mem = alloca i32*
%storemerge3.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %2, 96
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = mul nuw nsw i64 %12, 24
%14 = add i64 %13, %8
%15 = inttoptr i64 %14 to i32*
%.pre = add i64 %2, 32
%.pre26 = inttoptr i64 %.pre to i32*
%.pre41 = load i32, i32* %.pre26, align 4
store i32 %.pre41, i32* %.reg2mem42
store i32* %.pre26, i32** %.pre-phi27.reg2mem
store i64 %.pre, i64* %.pre-phi25.reg2mem
store i32* %15, i32** %sv_0.0.reg2mem
br label LBL_27
LBL_2:
%16 = bitcast i64* %arg1 to i8*
store i8 0, i8* %16, align 1
%17 = add i64 %2, 56
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %2, 4
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
store i32 %19, i32* %.reg2mem52
br label LBL_37
LBL_3:
%22 = add i64 %2, 96
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = zext i32 %.reload53 to i64
%26 = mul nuw nsw i64 %25, 24
%27 = add i64 %24, %26
%28 = inttoptr i64 %27 to i32*
%29 = add i64 %2, 8
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = add i64 %2, 12
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = load i32, i32* %28, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_10, label LBL_4
LBL_4:
%35 = add i64 %27, 16
%36 = inttoptr i64 %35 to i64*
%37 = add i64 %27, 4
%38 = inttoptr i64 %37 to i32*
%39 = add i64 %27, 8
%40 = inttoptr i64 %39 to i32*
store i64 0, i64* %indvars.iv.reg2mem
store i32 %33, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%41 = load i64, i64* %36, align 8
%42 = mul i64 %indvars.iv.reload, 16
%43 = add i64 %41, %42
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %38, align 4
%46 = load i32, i32* %44, align 4
%47 = trunc i64 %indvars.iv.reload to i32
%48 = xor i32 %47, 31
%49 = add i32 %48, %.reload
%50 = add i32 %46, %49
%51 = urem i32 %50, 32
%52 = shl i32 %45, %51
%53 = load i32, i32* %40, align 4
%54 = add i64 %43, 4
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = load i32, i32* %30, align 4
%58 = icmp eq i32 %57, 0
%59 = zext i32 %52 to i64
store i64 %59, i64* %storemerge4.reg2mem
br i1 %58, label LBL_7, label LBL_6
LBL_6:
%60 = zext i32 %57 to i64
%61 = call i64 @FUNC(i64 %60, i64 %59)
store i64 %61, i64* %storemerge4.reg2mem
br label LBL_7
LBL_7:
%62 = add i32 %56, %49
%63 = urem i32 %62, 32
%64 = shl i32 %53, %63
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%65 = trunc i64 %storemerge4.reload to i32
store i32 %65, i32* %30, align 4
%66 = load i32, i32* %32, align 4
%67 = icmp eq i32 %66, 0
%68 = zext i32 %64 to i64
store i64 %68, i64* %storemerge3.reg2mem
br i1 %67, label LBL_9, label LBL_8
LBL_8:
%69 = zext i32 %66 to i64
%70 = call i64 @FUNC(i64 %69, i64 %68)
store i64 %70, i64* %storemerge3.reg2mem
br label LBL_9
LBL_9:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%71 = trunc i64 %storemerge3.reload to i32
store i32 %71, i32* %32, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%72 = load i32, i32* %28, align 4
%73 = zext i32 %72 to i64
%74 = icmp ult i64 %indvars.iv.next, %73
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %72, i32* %.reg2mem
br i1 %74, label LBL_5, label LBL_10
LBL_10:
%75 = add i64 %2, 52
%76 = inttoptr i64 %75 to i8*
%77 = load i8, i8* %76, align 1
%78 = icmp eq i8 %77, 0
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_10.LBL_13_crit_edge, label LBL_12
LBL_11:
%.pre28 = add i64 %2, 64
%.pre30 = inttoptr i64 %.pre28 to i32*
store i32* %.pre30, i32** %.pre-phi31.reg2mem
br label LBL_13
LBL_12:
%80 = add i64 %2, 112
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = add i64 %2, 64
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = add i64 %2, 120
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = add i64 %2, 72
%89 = inttoptr i64 %88 to i32*
store i32 %87, i32* %89, align 4
%90 = add i64 %2, 116
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = add i64 %2, 68
%94 = inttoptr i64 %93 to i32*
store i32 %92, i32* %94, align 4
%95 = add i64 %2, 124
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = add i64 %2, 76
%99 = inttoptr i64 %98 to i32*
store i32 %97, i32* %99, align 4
store i32* %84, i32** %.pre-phi31.reg2mem
br label LBL_13
LBL_13:
%.pre-phi31.reload = load i32*, i32** %.pre-phi31.reg2mem
%100 = load i32, i32* %.pre-phi31.reload, align 4
%101 = add i64 %2, 20
%102 = inttoptr i64 %101 to i32*
store i32 %100, i32* %102, align 4
store i32 %100, i32* %.reg2mem50
store i32* %28, i32** %sv_0.5.reg2mem
br label LBL_35
LBL_14:
%sv_0.5.reload = load i32*, i32** %sv_0.5.reg2mem
%103 = add i64 %2, 72
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = add i64 %2, 16
%107 = inttoptr i64 %106 to i32*
store i32 %105, i32* %107, align 4
store i32 %105, i32* %.reg2mem48
store i32* %sv_0.5.reload, i32** %sv_0.4.reg2mem
br label LBL_33
LBL_15:
%108 = add i64 %2, 80
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = add i64 %2, 24
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
store i32 %110, i32* %.reg2mem46
store i64 %111, i64* %.pre-phi23.reg2mem
store i32* %sv_0.4.reload, i32** %sv_0.3.reg2mem
br label LBL_31
LBL_16:
%.pre-phi23.reload = load i64, i64* %.pre-phi23.reg2mem
%113 = inttoptr i64 %.pre-phi23.reload to i32*
%114 = ptrtoint i32* %sv_0.3.reload to i64
%115 = add i64 %114, 16
%116 = inttoptr i64 %115 to i64*
%117 = load i64, i64* %116, align 8
%118 = load i32, i32* %113, align 4
%119 = zext i32 %118 to i64
%120 = mul i64 %119, 16
%121 = add i64 %120, %117
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %sv_0.3.reload, align 4
%124 = sub i32 0, %118
%125 = sub i32 %124, 1
%126 = add i32 %123, %125
%127 = add i64 %114, 4
%128 = inttoptr i64 %127 to i32*
%129 = load i32, i32* %128, align 4
%130 = urem i32 %126, 32
%131 = icmp eq i32 %130, 0
%132 = shl i32 %129, %130
%rdx.2 = zext i32 %132 to i64
%133 = add i64 %2, 120
%134 = inttoptr i64 %133 to i32*
%135 = load i32, i32* %134, align 4
%136 = zext i32 %135 to i64
%137 = call i64 @FUNC(i64 %136, i64 %rdx.2)
%138 = add i64 %114, 8
%139 = inttoptr i64 %138 to i32*
%140 = load i32, i32* %139, align 4
%141 = shl i32 %140, %130
%rdx.3 = zext i32 %141 to i64
%142 = add i64 %2, 112
%143 = inttoptr i64 %142 to i32*
%144 = load i32, i32* %143, align 4
%145 = zext i32 %144 to i64
%146 = call i64 @FUNC(i64 %145, i64 %rdx.3)
%147 = trunc i64 %146 to i32
%148 = load i32, i32* %128, align 4
%149 = shl i32 %148, %130
%rdx.4 = zext i32 %149 to i64
%150 = add i64 %2, 124
%151 = inttoptr i64 %150 to i32*
%152 = load i32, i32* %151, align 4
%153 = zext i32 %152 to i64
%154 = call i64 @FUNC(i64 %153, i64 %rdx.4)
%155 = load i32, i32* %139, align 4
%156 = shl i32 %155, %130
%rdx.5 = zext i32 %156 to i64
%157 = add i64 %2, 116
%158 = inttoptr i64 %157 to i32*
%159 = load i32, i32* %158, align 4
%160 = zext i32 %159 to i64
%161 = call i64 @FUNC(i64 %160, i64 %rdx.5)
%162 = load i32, i32* %122, align 4
%163 = add i64 %121, 4
%164 = inttoptr i64 %163 to i32*
%165 = load i32, i32* %164, align 4
%166 = add i32 %165, %126
%167 = add i64 %2, 20
%168 = inttoptr i64 %167 to i32*
%169 = load i32, i32* %168, align 4
%170 = load i32, i32* %139, align 4
%171 = urem i32 %166, 32
%172 = shl i32 %170, %171
%173 = urem i32 %169, %172
%174 = icmp eq i32 %173, 0
br i1 %174, label LBL_19, label LBL_17
LBL_17:
%175 = load i32, i32* %143, align 4
%176 = icmp eq i32 %169, %175
%177 = icmp eq i1 %176, false
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %177, label LBL_30, label LBL_18
LBL_18:
%178 = and i64 %146, 4294967295
%179 = shl i32 %147, %130
%180 = zext i32 %179 to i64
%rdx.6 = select i1 %131, i64 %178, i64 %180
%181 = shl i32 1, %171
%storemerge9 = zext i32 %181 to i64
%182 = trunc i64 %rdx.6 to i32
%183 = ashr i32 %182, 31
%184 = zext i32 %183 to i64
%185 = mul i64 %184, 4294967296
%186 = or i64 %185, %rdx.6
%187 = srem i64 %186, %storemerge9
%188 = trunc i64 %187 to i32
%189 = icmp eq i32 %188, 0
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %189, label LBL_30, label LBL_19
LBL_19:
%190 = trunc i64 %137 to i32
%191 = add i32 %162, %126
%192 = add i64 %2, 16
%193 = inttoptr i64 %192 to i32*
%194 = load i32, i32* %193, align 4
%195 = load i32, i32* %128, align 4
%196 = urem i32 %191, 32
%197 = shl i32 %195, %196
%198 = urem i32 %194, %197
%199 = icmp eq i32 %198, 0
br i1 %199, label LBL_22, label LBL_20
LBL_20:
%200 = load i32, i32* %134, align 4
%201 = icmp eq i32 %194, %200
%202 = icmp eq i1 %201, false
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %202, label LBL_30, label LBL_21
LBL_21:
%203 = and i64 %137, 4294967295
%204 = shl i32 %190, %130
%205 = zext i32 %204 to i64
%rdx.7 = select i1 %131, i64 %203, i64 %205
%206 = shl i32 1, %196
%storemerge11 = zext i32 %206 to i64
%207 = trunc i64 %rdx.7 to i32
%208 = ashr i32 %207, 31
%209 = zext i32 %208 to i64
%210 = mul i64 %209, 4294967296
%211 = or i64 %210, %rdx.7
%212 = srem i64 %211, %storemerge11
%213 = trunc i64 %212 to i32
%214 = icmp eq i32 %213, 0
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %214, label LBL_30, label LBL_22
LBL_22:
%215 = add i64 %121, 8
%216 = inttoptr i64 %215 to i32*
%217 = load i32, i32* %216, align 4
%218 = icmp eq i32 %217, 0
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %218, label LBL_30, label LBL_23
LBL_23:
%219 = trunc i64 %154 to i32
%220 = trunc i64 %161 to i32
%221 = add i64 %121, 12
%222 = inttoptr i64 %221 to i32*
%223 = load i32, i32* %222, align 4
%224 = icmp eq i32 %223, 0
%225 = icmp eq i32 %190, %219
%or.cond = or i1 %225, %224
%226 = icmp eq i32 %147, %220
%or.cond16 = or i1 %226, %or.cond
store i32* %113, i32** %.pre-phi35.reg2mem
store i64 %.pre-phi23.reload, i64* %.pre-phi33.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %or.cond16, label LBL_30, label LBL_24
LBL_24:
%227 = zext i32 %162 to i64
%228 = shl i32 %195, %130
%rdx.8 = zext i32 %228 to i64
%229 = zext i32 %194 to i64
%230 = call i64 @FUNC(i64 %229, i64 %rdx.8)
%231 = and i64 %230, 4294967295
%232 = call i64 @FUNC(i64 %231, i64 %227)
%233 = trunc i64 %232 to i32
%234 = load i32, i32* %122, align 4
%235 = zext i32 %234 to i64
%236 = and i64 %137, 4294967295
%237 = call i64 @FUNC(i64 %236, i64 %235)
%238 = trunc i64 %237 to i32
%239 = sub i32 %233, %238
%240 = load i32, i32* %164, align 4
%241 = zext i32 %240 to i64
%242 = load i32, i32* %139, align 4
%243 = shl i32 %242, %130
%rdx.9 = zext i32 %243 to i64
%244 = load i32, i32* %168, align 4
%245 = zext i32 %244 to i64
%246 = call i64 @FUNC(i64 %245, i64 %rdx.9)
%247 = and i64 %246, 4294967295
%248 = call i64 @FUNC(i64 %247, i64 %241)
%249 = load i32, i32* %164, align 4
%250 = zext i32 %249 to i64
%251 = and i64 %146, 4294967295
%252 = call i64 @FUNC(i64 %251, i64 %250)
%253 = sub i64 %248, %252
%254 = load i32, i32* %216, align 4
%255 = trunc i64 %253 to i32
%256 = mul i32 %254, %255
%257 = add i32 %239, %256
%258 = add i64 %2, 28
%259 = inttoptr i64 %258 to i32*
store i32 %257, i32* %259, align 4
%260 = add i64 %2, 88
%261 = inttoptr i64 %260 to i32*
%262 = load i32, i32* %261, align 4
%263 = add i64 %2, 32
%264 = inttoptr i64 %263 to i32*
store i32 %262, i32* %264, align 4
store i32 %262, i32* %.reg2mem44
store i64 %263, i64* %.pre-phi24.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.1.reg2mem
br label LBL_28
LBL_25:
%.pre-phi24.reload = load i64, i64* %.pre-phi24.reg2mem
%265 = inttoptr i64 %.pre-phi24.reload to i32*
%266 = add i64 %2, 36
%267 = inttoptr i64 %266 to i32*
%268 = load i32, i32* %267, align 4
%269 = mul i32 %268, %.reload45
%270 = add i64 %2, 24
%271 = inttoptr i64 %270 to i32*
%272 = load i32, i32* %271, align 4
%273 = add i64 %2, 40
%274 = inttoptr i64 %273 to i32*
%275 = load i32, i32* %274, align 4
%276 = mul i32 %275, %272
%277 = add i64 %2, 28
%278 = inttoptr i64 %277 to i32*
%279 = load i32, i32* %278, align 4
%280 = add i64 %2, 48
%281 = inttoptr i64 %280 to i32*
%282 = load i32, i32* %281, align 4
%283 = mul i32 %282, %279
%284 = add i64 %2, 4
%285 = inttoptr i64 %284 to i32*
%286 = load i32, i32* %285, align 4
%287 = add i64 %2, 44
%288 = inttoptr i64 %287 to i32*
%289 = load i32, i32* %288, align 4
%290 = mul i32 %289, %286
%291 = add i32 %276, %269
%292 = add i32 %291, %283
%293 = add i32 %292, %290
%294 = add i64 %2, 104
%295 = inttoptr i64 %294 to i64*
%296 = load i64, i64* %295, align 8
%297 = zext i32 %293 to i64
%298 = add i64 %296, %297
%299 = inttoptr i64 %298 to i8*
%300 = load i8, i8* %299, align 1
%301 = icmp eq i8 %300, 0
%302 = icmp eq i1 %301, false
store i32 %.reload45, i32* %.reg2mem42
store i32* %265, i32** %.pre-phi27.reg2mem
store i64 %.pre-phi24.reload, i64* %.pre-phi25.reg2mem
store i32* %sv_0.1.reload, i32** %sv_0.0.reg2mem
br i1 %302, label LBL_27, label LBL_26
LBL_26:
store i8 1, i8* %299, align 1
store i64 1, i64* %storemerge12.reg2mem
br label LBL_38
LBL_27:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%.pre-phi25.reload = load i64, i64* %.pre-phi25.reg2mem
%.pre-phi27.reload = load i32*, i32** %.pre-phi27.reg2mem
%.reload43 = load i32, i32* %.reg2mem42
%303 = add i32 %.reload43, 1
store i32 %303, i32* %.pre-phi27.reload, align 4
store i32 %303, i32* %.reg2mem44
store i64 %.pre-phi25.reload, i64* %.pre-phi24.reg2mem
store i32* %sv_0.0.reload, i32** %sv_0.1.reg2mem
br label LBL_28
LBL_28:
%sv_0.1.reload = load i32*, i32** %sv_0.1.reg2mem
%.reload45 = load i32, i32* %.reg2mem44
%304 = add i64 %2, 92
%305 = inttoptr i64 %304 to i32*
%306 = load i32, i32* %305, align 4
%307 = icmp ult i32 %.reload45, %306
br i1 %307, label LBL_25, label LBL_28.LBL_30_crit_edge
LBL_29:
%.pre32 = add i64 %2, 24
%.pre34 = inttoptr i64 %.pre32 to i32*
store i32* %.pre34, i32** %.pre-phi35.reg2mem
store i64 %.pre32, i64* %.pre-phi33.reg2mem
store i32* %sv_0.1.reload, i32** %sv_0.2.reg2mem
br label LBL_30
LBL_30:
%sv_0.2.reload = load i32*, i32** %sv_0.2.reg2mem
%.pre-phi33.reload = load i64, i64* %.pre-phi33.reg2mem
%.pre-phi35.reload = load i32*, i32** %.pre-phi35.reg2mem
%308 = load i32, i32* %.pre-phi35.reload, align 4
%309 = add i32 %308, 1
store i32 %309, i32* %.pre-phi35.reload, align 4
store i32 %309, i32* %.reg2mem46
store i64 %.pre-phi33.reload, i64* %.pre-phi23.reg2mem
store i32* %sv_0.2.reload, i32** %sv_0.3.reg2mem
br label LBL_31
LBL_31:
%sv_0.3.reload = load i32*, i32** %sv_0.3.reg2mem
%.reload47 = load i32, i32* %.reg2mem46
%310 = load i32, i32* %sv_0.3.reload, align 4
%311 = add i64 %2, 84
%312 = inttoptr i64 %311 to i32*
%313 = load i32, i32* %312, align 4
%314 = zext i32 %310 to i64
%315 = zext i32 %313 to i64
%316 = call i64 @FUNC(i64 %315, i64 %314)
%317 = trunc i64 %316 to i32
%318 = icmp ult i32 %.reload47, %317
br i1 %318, label LBL_16, label LBL_32
LBL_32:
%319 = add i64 %2, 16
%320 = inttoptr i64 %319 to i32*
%321 = load i32, i32* %320, align 4
%322 = add i64 %2, 8
%323 = inttoptr i64 %322 to i32*
%324 = load i32, i32* %323, align 4
%325 = urem i32 %321, %324
%326 = add i32 %324, %321
%327 = sub i32 %326, %325
store i32 %327, i32* %320, align 4
store i32 %327, i32* %.reg2mem48
store i32* %sv_0.3.reload, i32** %sv_0.4.reg2mem
br label LBL_33
LBL_33:
%sv_0.4.reload = load i32*, i32** %sv_0.4.reg2mem
%.reload49 = load i32, i32* %.reg2mem48
%328 = add i64 %2, 76
%329 = inttoptr i64 %328 to i32*
%330 = load i32, i32* %329, align 4
%331 = icmp ult i32 %.reload49, %330
br i1 %331, label LBL_15, label LBL_34
LBL_34:
%332 = add i64 %2, 20
%333 = inttoptr i64 %332 to i32*
%334 = load i32, i32* %333, align 4
%335 = add i64 %2, 12
%336 = inttoptr i64 %335 to i32*
%337 = load i32, i32* %336, align 4
%338 = urem i32 %334, %337
%339 = add i32 %337, %334
%340 = sub i32 %339, %338
store i32 %340, i32* %333, align 4
store i32 %340, i32* %.reg2mem50
store i32* %sv_0.4.reload, i32** %sv_0.5.reg2mem
br label LBL_35
LBL_35:
%.reload51 = load i32, i32* %.reg2mem50
%341 = add i64 %2, 68
%342 = inttoptr i64 %341 to i32*
%343 = load i32, i32* %342, align 4
%344 = icmp ult i32 %.reload51, %343
br i1 %344, label LBL_14, label LBL_36
LBL_36:
%345 = add i64 %2, 4
%346 = inttoptr i64 %345 to i32*
%347 = load i32, i32* %346, align 4
%348 = add i32 %347, 1
store i32 %348, i32* %346, align 4
store i32 %348, i32* %.reg2mem52
br label LBL_37
LBL_37:
%.reload53 = load i32, i32* %.reg2mem52
%349 = add i64 %2, 60
%350 = inttoptr i64 %349 to i32*
%351 = load i32, i32* %350, align 4
%352 = icmp ult i32 %.reload53, %351
store i64 0, i64* %storemerge12.reg2mem
br i1 %352, label LBL_3, label LBL_38
LBL_38:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
ret i64 %storemerge12.reload
uselistorder i32 %.reload53, { 1, 0 }
uselistorder i32* %sv_0.3.reload, { 0, 1, 2, 3, 9, 10, 7, 8, 5, 6, 4 }
uselistorder i32 %.reload45, { 1, 0, 2 }
uselistorder i64 %.pre-phi24.reload, { 1, 0 }
uselistorder i32 %196, { 1, 0 }
uselistorder i32 %171, { 1, 0 }
uselistorder i32 %162, { 1, 0 }
uselistorder i1 %131, { 1, 0 }
uselistorder i32 %130, { 6, 5, 7, 8, 4, 3, 2, 1, 0 }
uselistorder i32 %126, { 2, 1, 0 }
uselistorder i32* %113, { 4, 5, 2, 3, 0, 1, 6 }
uselistorder i64 %.pre-phi23.reload, { 2, 1, 4, 3, 6, 5, 0 }
uselistorder i64 %68, { 1, 0 }
uselistorder i64 %59, { 1, 0 }
uselistorder i32* %28, { 0, 2, 1 }
uselistorder i64 %2, { 45, 36, 35, 32, 31, 30, 10, 9, 29, 0, 12, 11, 18, 19, 16, 17, 14, 15, 13, 21, 20, 22, 23, 24, 25, 26, 27, 28, 33, 34, 37, 38, 39, 4, 3, 6, 5, 8, 7, 41, 42, 1, 40, 43, 44, 46, 48, 47, 2, 49, 50 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem42, { 0, 2, 1 }
uselistorder i32** %.pre-phi27.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi25.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi24.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi35.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i64* %.pre-phi33.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i32** %sv_0.2.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i64* %.pre-phi23.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.5.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem52, { 0, 2, 1 }
uselistorder i64 28, { 1, 0 }
uselistorder i64 (i64, i64)* @opj_int_floordivpow2, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 5, 2, 6, 3, 4, 7, 8, 9, 10, 0, 11 }
uselistorder i64 (i64, i64)* @opj_int_ceildiv, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 20, { 2, 1, 0 }
uselistorder i64 76, { 1, 0 }
uselistorder i64 124, { 1, 0 }
uselistorder i64 68, { 1, 0 }
uselistorder i64 116, { 1, 0 }
uselistorder i64 72, { 1, 0 }
uselistorder i64 120, { 1, 0 }
uselistorder i64 112, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 (i64, i64)* @opj_uint_min, { 0, 2, 1 }
uselistorder i32 31, { 1, 2, 0, 3 }
uselistorder i64 16, { 6, 3, 0, 4, 5, 1, 2 }
uselistorder i64 12, { 2, 1, 0 }
uselistorder i32 0, { 8, 9, 10, 2, 11, 3, 12, 0, 4, 5, 1, 6, 7, 13 }
uselistorder i64 8, { 4, 2, 3, 0, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 24, { 0, 4, 3, 1, 2 }
uselistorder i64 4, { 4, 5, 2, 3, 0, 1, 6, 7 }
uselistorder i1 false, { 3, 1, 2, 0, 4 }
uselistorder i8 0, { 1, 0, 2, 3 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_30, { 0, 2, 1, 4, 3, 6, 5 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ata_eh_categorize_error_17912 | ata_eh_categorize_error | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = urem i64 %arg1, 2
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = bitcast i64* %arg3 to i32*
store i32 1, i32* %5, align 4
br label LBL_2
LBL_2:
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%spec.select = select i1 %8, i32 0, i32 100
%9 = and i64 %arg2, 4
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = or i32 %spec.select, 1
store i32 %11, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_4:
%12 = and i64 %arg2, 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = or i32 %spec.select, 2
store i32 %14, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_6:
%15 = and i64 %arg1, 2
%16 = icmp eq i64 %15, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %16, label LBL_10, label LBL_7
LBL_7:
%17 = and i64 %arg2, 16
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_9, label LBL_8
LBL_8:
%19 = or i32 %spec.select, 2
store i32 %19, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_9:
%20 = and i64 %arg2, 224
%21 = icmp eq i64 %20, 32
%22 = icmp eq i1 %21, false
%23 = or i32 %spec.select, 3
%spec.select4 = select i1 %22, i32 0, i32 %23
store i32 %spec.select4, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_10:
%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 i32 %spec.select, { 3, 2, 1, 0 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 1, 5, 2, 4, 3 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_10, { 0, 2, 1, 3, 4 }
} | 1 |
BinRealVul | nft_flush_table_12256 | nft_flush_table | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%.reg2mem = alloca i64
%.in11.in.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %3, -16
%5 = icmp eq i64 %4, %0
%6 = icmp eq i1 %5, false
store i64 %3, i64* %.in11.in.in.reg2mem
store i64 %4, i64* %.reg2mem
br i1 %6, label LBL_1, label LBL_5
LBL_1:
%.in11.in.in.reload = load i64, i64* %.in11.in.in.reg2mem
%.in = add i64 %.in11.in.in.reload, -24
%.in11.in = inttoptr i64 %.in11.in.in.reload to i64*
%.in11 = load i64, i64* %.in11.in, align 8
%7 = inttoptr i64 %.in to i32*
%8 = load i32, i32* %7, align 4
%9 = urem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%11 = call i64 @FUNC(i64 %.reload)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 %.reload, i64* %rdi.1.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %0, i64 %.in)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i64 %0, i64* %rdi.1.reg2mem
store i64 %14, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%17 = add i64 %.in11, -16
%18 = icmp eq i64 %17, %rdi.1.reload
%19 = icmp eq i1 %18, false
store i64 %.in11, i64* %.in11.in.in.reg2mem
store i64 %17, i64* %.reg2mem
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %0)
store i64 %20, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%21 = and i64 %sv_0.0.reload, 4294967295
ret i64 %21
uselistorder i64 %.in, { 1, 0 }
uselistorder i64 %0, { 3, 0, 4, 1, 2 }
uselistorder i64* %.in11.in.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | decode_p_picture_primary_header_926 | decode_p_picture_primary_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%rdi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 72
%5 = call i64 @FUNC(i64 %4, i64 5)
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%sext3 = mul i64 %5, 4294967296
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = ashr exact i64 %sext3, 30
%10 = add i64 %9, ptrtoint (i32** @gv_0 to i64)
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %3, 4
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
br label LBL_3
LBL_2:
%15 = ashr exact i64 %sext3, 32
%16 = mul i64 %2, 4294967296
%sext4 = add i64 %16, -4294967296
%17 = ashr exact i64 %sext4, 27
%18 = add nsw i64 %15, %17
%19 = mul i64 %18, 4
%20 = add i64 %19, ptrtoint (i32** @gv_0 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %3, 4
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
br label LBL_3
LBL_3:
%25 = trunc i64 %5 to i32
%26 = icmp sgt i32 %25, 8
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = call i64 @FUNC(i64 %4, i64 1)
%28 = trunc i64 %27 to i32
%29 = add i64 %3, 8
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
br label LBL_5
LBL_5:
%31 = bitcast i64* %rdi to i32*
%32 = load i32, i32* %31, align 8
%33 = icmp eq i32 %32, 1
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = call i64 @FUNC(i64 %4, i64 1)
%36 = trunc i64 %35 to i32
%37 = add i64 %3, 12
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
br label LBL_7
LBL_7:
%39 = add i64 %3, 8
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %3, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %3, 64
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = zext i32 %41 to i64
%49 = zext i32 %44 to i64
%50 = call i64 @FUNC(i64 %47, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %49, i64 %48, i64 %1)
%51 = add i64 %3, 16
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp eq i32 %53, 1
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_9, label LBL_8
LBL_8:
%56 = call i64 @FUNC(i64 %4, i64 0, i64 3)
%57 = trunc i64 %56 to i32
%58 = add i64 %3, 20
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
br label LBL_9
LBL_9:
%60 = add i64 %3, 24
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = icmp slt i32 %62, 1
br i1 %63, label LBL_12, label LBL_10
LBL_10:
%64 = add i64 %3, 28
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label LBL_14, label LBL_11
LBL_11:
%68 = call i64 @FUNC(i64 %4, i64 1)
%69 = trunc i64 %68 to i32
%70 = add i64 %3, 32
%71 = inttoptr i64 %70 to i32*
store i32 %69, i32* %71, align 4
br label LBL_14
LBL_12:
%72 = add i64 %3, 36
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label LBL_14, label LBL_13
LBL_13:
%76 = call i64 @FUNC(i64 %4, i64 2)
%77 = trunc i64 %76 to i32
%78 = add i64 %3, 40
%79 = inttoptr i64 %78 to i32*
store i32 %77, i32* %79, align 4
br label LBL_14
LBL_14:
%80 = add i64 %3, 12
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = add i32 %82, -12
%84 = sub i32 11, %82
%85 = and i32 %84, %82
%86 = icmp slt i32 %85, 0
%87 = icmp eq i32 %83, 0
%88 = icmp slt i32 %83, 0
%89 = icmp ne i1 %88, %86
%90 = or i1 %87, %89
%91 = call i64 @FUNC(i64 %4, i64 1, i64 4)
%sext = mul i64 %91, 4294967296
%92 = ashr exact i64 %sext, 32
%93 = zext i1 %90 to i64
%94 = mul i64 %93, 16
%95 = add nsw i64 %94, %92
%96 = mul i64 %95, 4
%97 = add i64 %96, ptrtoint (i32** @gv_2 to i64)
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = add i64 %3, 44
%101 = inttoptr i64 %100 to i32*
store i32 %99, i32* %101, align 4
%102 = icmp eq i32 %99, 1
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_16, label LBL_15
LBL_15:
%104 = call i64 @FUNC(i64 %4, i64 1, i64 3)
%sext1 = mul i64 %104, 4294967296
%105 = ashr exact i64 %sext1, 32
%106 = add nsw i64 %105, %94
%107 = mul i64 %106, 4
%108 = add i64 %107, ptrtoint (i32** @gv_2 to i64)
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = add i64 %3, 48
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
%113 = call i64 @FUNC(i64 %4, i64 6)
%114 = trunc i64 %113 to i32
%115 = add i64 %3, 52
%116 = inttoptr i64 %115 to i32*
store i32 %114, i32* %116, align 4
%117 = call i64 @FUNC(i64 %4, i64 6)
%118 = trunc i64 %117 to i32
%119 = add i64 %3, 56
%120 = inttoptr i64 %119 to i32*
store i32 %118, i32* %120, align 4
br label LBL_16
LBL_16:
ret i64 0
uselistorder i64 %94, { 1, 0 }
uselistorder i32 %83, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 5, 6, 7, 8, 4, 3, 2, 1, 0, 9 }
uselistorder i64 %3, { 6, 7, 8, 9, 10, 5, 13, 4, 12, 11, 3, 14, 17, 16, 15, 2, 1, 18, 0, 19 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @get_prefix, { 2, 1, 0 }
uselistorder i64 32, { 1, 2, 3, 0 }
uselistorder i64 4, { 0, 1, 3, 4, 5, 2, 6 }
uselistorder i64 (i64, i64)* @get_bits, { 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | preproc_mount_mnt_dir_4907 | preproc_mount_mnt_dir | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = icmp eq i32 %0, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_17, label LBL_1
LBL_1:
%4 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%7 = call i32 @mount(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i32 16777218, i64* bitcast ([15 x i8]* @gv_4 to i64*))
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_5, i64 0, i64 0))
unreachable
LBL_5:
store i32 1, i32* @gv_0, align 4
%11 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
%12 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64 493)
%13 = load i32, i32* @gv_7, align 4
%14 = icmp eq i32 %13, 0
%15 = call i32 @getgid()
%16 = call i32 @getuid()
%17 = zext i32 %15 to i64
%18 = zext i32 %16 to i64
br i1 %14, label LBL_7, label LBL_6
LBL_6:
%19 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_9, i64 0, i64 0), i64 %18, i64 %17, i64 420)
br label LBL_8
LBL_7:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_11, i64 0, i64 0), i64 %18, i64 %17, i64 420)
br label LBL_8
LBL_8:
%21 = load i32, i32* @gv_12, align 4
%22 = icmp eq i32 %21, 0
%23 = call i32 @getgid()
%24 = call i32 @getuid()
%25 = zext i32 %23 to i64
%26 = zext i32 %24 to i64
br i1 %22, label LBL_10, label LBL_9
LBL_9:
%27 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_13, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_14, i64 0, i64 0), i64 %26, i64 %25, i64 420)
br label LBL_11
LBL_10:
%28 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_14, i64 0, i64 0), i64 %26, i64 %25, i64 420)
br label LBL_11
LBL_11:
%29 = load i32, i32* @gv_16, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_13, label LBL_12
LBL_12:
%31 = call i32 @getgid()
%32 = call i32 @getuid()
%33 = zext i32 %31 to i64
%34 = zext i32 %32 to i64
%35 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_17, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_18, i64 0, i64 0), i64 %34, i64 %33, i64 420)
br label LBL_13
LBL_13:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_19, i64 0, i64 0), i64 420)
%37 = call i32 @getgid()
%38 = call i32 @getuid()
%39 = zext i32 %37 to i64
%40 = zext i32 %38 to i64
%41 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_19, i64 0, i64 0), i64 %40, i64 %39, i64 420)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_15, label LBL_14
LBL_14:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_20, i64 0, i64 0))
unreachable
LBL_15:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_21, i64 0, i64 0), i64 420)
%46 = call i32 @getgid()
%47 = call i32 @getuid()
%48 = zext i32 %46 to i64
%49 = zext i32 %47 to i64
%50 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_21, i64 0, i64 0), i64 %49, i64 %48, i64 420)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
store i64 %50, i64* %rax.0.reg2mem
br i1 %52, label LBL_17, label LBL_16
LBL_16:
%53 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_20, i64 0, i64 0))
unreachable
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64)* @set_perms, { 1, 0 }
uselistorder i64 (i8*, i64)* @create_empty_file_as_root, { 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64)* @copy_file, { 4, 3, 2, 1, 0 }
uselistorder i32 ()* @getuid, { 4, 0, 1, 2, 3 }
uselistorder i32 ()* @getgid, { 4, 0, 1, 2, 3 }
uselistorder i64 (i8*)* @errExit, { 2, 1, 0 }
uselistorder i32 0, { 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 1, { 6, 4, 3, 2, 1, 0, 5 }
} | 0 |
BinRealVul | get_int32_le_1713 | get_int32_le | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = bitcast i32* %sv_0 to i64*
%4 = call i64 @FUNC(i64 %2, i64* nonnull %3)
%5 = load i32, i32* %sv_0, align 4
%6 = icmp slt i32 %5, 0
%7 = trunc i64 %1 to i32
%8 = icmp ugt i32 %5, %7
%or.cond = or i1 %6, %8
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
store i32 %5, i32* %arg2, align 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 i32 %5, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vnc_client_error_15091 | vnc_client_error | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 4294967295, i64 22)
ret i64 %1
uselistorder i64 4294967295, { 2, 0, 1 }
} | 1 |
BinRealVul | gf_bt_get_next_12825 | gf_bt_get_next | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i32
%.pre.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 12
%3 = inttoptr i64 %2 to i32*
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = trunc i64 %arg2 to i32
%7 = icmp ne i32 %6, 0
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%.pre.pre = load i32, i32* %3, align 4
store i32 %.pre.pre, i32* %.pre.reg2mem
store i32 0, i32* %sv_0.0.ph.reg2mem
store i32 0, i32* %sv_1.0.ph.reg2mem
br label LBL_10
LBL_1:
%not. = icmp ne i1 %53, true
%. = zext i1 %not. to i32
%10 = add i32 %.reload, 1
store i32 %10, i32* %3, align 4
%11 = add i32 %10, %sv_0.0.ph.reload
%12 = load i32, i32* %5, align 4
%13 = icmp eq i32 %11, %12
store i32 %10, i32* %.reg2mem
store i32 %., i32* %sv_1.0.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %13, label LBL_12, label LBL_11
LBL_2:
br i1 %53, label LBL_9, label LBL_3
LBL_3:
%14 = sext i8 %49 to i64
%15 = icmp sgt i8 %49, 46
br i1 %15, label LBL_8, label LBL_4
LBL_4:
%16 = icmp slt i8 %49, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_9
LBL_5:
%18 = add nsw i64 %14, 37
%19 = urem i64 %18, 64
%20 = lshr i64 21474836485, %19
%21 = urem i64 %20, 2
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %24, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %25, label LBL_12, label LBL_9
LBL_6:
%26 = urem i64 %14, 64
%27 = shl i64 1, %26
%28 = and i64 %27, 17596481021441
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %30, false
%32 = icmp eq i1 %31, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %32, label LBL_12, label LBL_7
LBL_7:
%33 = icmp ne i64 %26, 46
%34 = icmp eq i1 %33, false
%or.cond4.not = icmp eq i1 %7, %34
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %or.cond4.not, label LBL_12, label LBL_9
LBL_8:
%.off = add i8 %49, -91
%35 = icmp ult i8 %.off, 35
br i1 %35, label LBL_5, label LBL_9
LBL_9:
%36 = load i64, i64* %9, align 8
%37 = sext i32 %sv_0.0.ph.reload to i64
%38 = add i64 %36, %37
%39 = inttoptr i64 %38 to i8*
store i8 %49, i8* %39, align 1
%40 = add i32 %sv_0.0.ph.reload, 1
%41 = load i32, i32* %3, align 4
%42 = add i32 %41, %40
%43 = load i32, i32* %5, align 4
%44 = icmp eq i32 %42, %43
store i32 %41, i32* %.pre.reg2mem
store i32 %40, i32* %sv_0.0.ph.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.0.ph.reg2mem
store i32 %40, i32* %sv_0.1.reg2mem
br i1 %44, label LBL_12, label LBL_10
LBL_10:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%.pre.reload = load i32, i32* %.pre.reg2mem
store i32 %.pre.reload, i32* %.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%45 = add i32 %.reload, %sv_0.0.ph.reload
%46 = zext i32 %45 to i64
%47 = add i64 %46, %0
%48 = inttoptr i64 %47 to i8*
%49 = load i8, i8* %48, align 1
%50 = icmp eq i8 %49, 34
%51 = icmp eq i1 %50, false
%52 = icmp eq i32 %sv_1.0.reload, 0
%53 = icmp eq i1 %52, false
br i1 %51, label LBL_2, label LBL_1
LBL_12:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%54 = load i64, i64* %9, align 8
%55 = sext i32 %sv_0.1.reload to i64
%56 = add i64 %54, %55
%57 = inttoptr i64 %56 to i8*
store i8 0, i8* %57, align 1
%58 = load i32, i32* %3, align 4
%59 = add i32 %58, %sv_0.1.reload
store i32 %59, i32* %3, align 4
%60 = load i64, i64* %9, align 8
ret i64 %60
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i8 %49, { 5, 3, 4, 2, 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %sv_0.0.ph.reload, { 6, 7, 3, 1, 0, 2, 5, 4 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64* %9, { 1, 0, 2 }
uselistorder i32* %3, { 2, 1, 3, 4, 0 }
uselistorder i64 %0, { 0, 2, 1, 3, 4 }
uselistorder i32* %.pre.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 4, 3, 1, 2, 5 }
uselistorder i1 false, { 8, 9, 4, 5, 1, 6, 2, 0, 3, 7 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 0, { 3, 0, 1, 2 }
uselistorder label LBL_12, { 3, 0, 1, 2, 4 }
uselistorder label LBL_9, { 1, 3, 2, 0, 4 }
} | 1 |
BinRealVul | qemu_fill_buffer_15089 | qemu_fill_buffer | define i64 @FUNC(i64* %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 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 33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = trunc i64 %1 to i32
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sub i32 %6, %9
%11 = icmp slt i32 %10, 1
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %2, 32
%13 = sext i32 %9 to i64
%14 = add i64 %12, %13
%15 = inttoptr i64 %12 to i64*
%16 = inttoptr i64 %14 to i64*
%17 = call i64* @memmove(i64* %15, i64* %16, i32 %10)
br label LBL_4
LBL_4:
store i32 0, i32* %8, align 4
%18 = bitcast i64* %arg1 to i32*
store i32 %10, i32* %18, align 4
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %22, 1
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = bitcast i64* %rdi to i32*
%25 = load i32, i32* %24, align 8
%26 = add i32 %25, %22
store i32 %26, i32* %18, align 4
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i32 %29, %22
store i32 %30, i32* %28, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%31 = icmp eq i32 %22, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %2, i64 4294967291)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%34 = icmp eq i32 %22, -11
store i64 %21, i64* %rax.0.reg2mem
br i1 %34, label LBL_10, label LBL_9
LBL_9:
%35 = and i64 %21, 4294967295
%36 = call i64 @FUNC(i64 %2, i64 %35)
store i64 %36, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %22, { 2, 3, 0, 1, 4 }
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %2, { 4, 3, 0, 2, 5, 1, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i64)* @qemu_file_set_error, { 1, 0 }
} | 1 |
BinRealVul | inet_parse_connect_opts_1236 | inet_parse_connect_opts | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%6 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 48)
store i64 42, i64* %sv_1, align 8
%7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%8 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%9 = icmp ne i64 %7, 0
%10 = icmp eq i64 %8, 0
%11 = icmp eq i1 %10, false
%or.cond = icmp eq i1 %9, %11
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i64 48, i64 %3, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%13 = inttoptr i64 %8 to i8*
%14 = inttoptr i64 %7 to i8*
%15 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 0)
%16 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0)
%17 = bitcast i64* %sv_1 to %addrinfo*
%18 = bitcast i64* %sv_0 to %addrinfo**
%19 = call i32 @getaddrinfo(i8* %14, i8* %13, %addrinfo* nonnull %17, %addrinfo** nonnull %18)
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i8* @gai_strerror(i32 %19)
%22 = ptrtoint i8* %21 to i64
%23 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_5, i64 0, i64 0), i64 %7, i64 %8, i64 %22, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%24 = load i64, i64* %sv_0, align 8
store i64 %24, 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 %8, { 1, 2, 0 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @qemu_opt_get_bool, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @error_setg, { 1, 0 }
uselistorder i64 (i64, i8*)* @qemu_opt_get, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5 }
} | 0 |
BinRealVul | r_cons_hud_line_string_6417 | r_cons_hud_line_string | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_0.12.reg2mem = alloca i8*
%storemerge3.reg2mem = alloca i32
%.reg2mem6 = alloca i64
%.reg2mem4 = alloca i8*
%.reg2mem = alloca i8
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%5 = inttoptr i64 %arg1 to i8*
%6 = call i8* @strdup(i8* %5)
%7 = icmp eq i8* %6, null
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_14
LBL_3:
%9 = ptrtoint i8* %6 to i64
%10 = call i64 @FUNC(i64 %9, i64 13, i64 0, i64 1)
%11 = call i64 @FUNC(i64 %9, i64 9, i64 0, i64 1)
%12 = call i64 @FUNC(i64 %9)
%13 = call i64 @FUNC()
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = bitcast i8* %6 to i64*
call void @free(i64* %16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%17 = inttoptr i64 %13 to i64*
store i64 4198448, i64* %17, align 8
%18 = load i8, i8* %6, align 1
%19 = icmp eq i8 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_13
LBL_6:
%21 = add i64 %9, 1
store i8 %18, i8* %.reg2mem
store i8* %6, i8** %.reg2mem4
store i64 0, i64* %.reg2mem6
store i32 0, i32* %storemerge3.reg2mem
store i8* %6, i8** %sv_0.12.reg2mem
br label LBL_7
LBL_7:
%sv_0.12.reload = load i8*, i8** %sv_0.12.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i8, i8* %.reg2mem
%22 = icmp eq i8 %.reload, 10
%23 = icmp eq i1 %22, false
store i8* %sv_0.12.reload, i8** %sv_0.0.reg2mem
br i1 %23, label LBL_12, label LBL_8
LBL_8:
%.reload7 = load i64, i64* %.reg2mem6
%.reload5 = load i8*, i8** %.reg2mem4
store i8 0, i8* %.reload5, align 1
%24 = load i8, i8* %sv_0.12.reload, align 1
switch i8 %24, label LBL_9 [
i8 0, label LBL_11
i8 35, label LBL_11
]
LBL_9:
%25 = call i8* @strdup(i8* nonnull %sv_0.12.reload)
%26 = ptrtoint i8* %25 to i64
%27 = call i64 @FUNC(i64 %13, i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_11, label LBL_10
LBL_10:
%31 = bitcast i8* %25 to i64*
call void @free(i64* %31)
br label LBL_13
LBL_11:
%32 = add i64 %21, %.reload7
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%34 = add i32 %storemerge3.reload, 1
%35 = sext i32 %34 to i64
%36 = add i64 %35, %9
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = icmp eq i8 %38, 0
%40 = icmp eq i1 %39, false
store i8 %38, i8* %.reg2mem
store i8* %37, i8** %.reg2mem4
store i64 %35, i64* %.reg2mem6
store i32 %34, i32* %storemerge3.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.12.reg2mem
br i1 %40, label LBL_7, label LBL_13
LBL_13:
%41 = call i64 @FUNC(i64 %13, i64 0)
%42 = bitcast i8* %6 to i64*
call void @free(i64* %42)
%43 = call i64 @FUNC(i64 %13)
store i64 %41, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %sv_0.12.reload, { 2, 1, 0 }
uselistorder i64 %13, { 1, 0, 2, 3, 4 }
uselistorder i64 %9, { 0, 1, 4, 3, 2 }
uselistorder i8* %6, { 3, 0, 1, 2, 4, 6, 5 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem4, { 2, 0, 1 }
uselistorder i64* %.reg2mem6, { 2, 0, 1 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.12.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i8 0, { 5, 2, 4, 0, 6, 1, 3 }
uselistorder i64 (i64, i64, i64, i64)* @r_str_replace_ch, { 1, 0 }
uselistorder i64 1, { 2, 3, 4, 1, 0 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i1 false, { 4, 2, 3, 0, 5, 6, 7, 8, 10, 9, 1 }
uselistorder i32 0, { 4, 0, 5, 1, 3, 6, 2, 7 }
uselistorder i32 1, { 16, 7, 6, 5, 4, 3, 2, 1, 17, 9, 8, 15, 10, 0, 18, 14, 13, 12, 11 }
uselistorder label LBL_14, { 1, 2, 0, 3 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | verify_auth_trunc_8682 | verify_auth_trunc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %3)
%7 = icmp slt i64 %5, %6
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %3, 63
%9 = inttoptr i64 %8 to i8*
store i8 0, i8* %9, align 1
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | virtio_host_initfn_16286 | virtio_host_initfn | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %0, i64 4, i64 1)
ret i64 %1
uselistorder i64 %0, { 1, 0 }
} | 1 |
BinRealVul | cn_del_callback_13093 | cn_del_callback | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%1 = ptrtoint i32* %arg1 to i64
%2 = zext i32 %0 to i64
%3 = call i64 @FUNC(i64 %2, i64 %1)
%4 = call i64 @FUNC(i64 %1, i64 1)
ret i64 %4
} | 1 |
BinRealVul | audio_resample_15 | audio_resample | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%.reg2mem41 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%storemerge26.reg2mem = alloca i32
%.reg2mem39 = alloca i32
%.reg2mem37 = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%storemerge37.reg2mem = alloca i32
%.reg2mem35 = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i64
%.pre-phi33.reg2mem = alloca i64*
%.pre-phi16.reg2mem = alloca i64
%sv_5.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i32, align 4
%sv_9 = alloca i32, align 4
%sv_10 = alloca i32, align 4
%5 = load i64, i64* %1
%6 = load i64, i64* %1
%sv_11 = alloca i64, align 8
%sv_12 = alloca i64, align 8
%sv_13 = alloca i32, align 4
%sv_14 = alloca i32, align 4
%sv_15 = alloca i64, align 8
%sv_16 = alloca i64, align 8
%7 = add i64 %4, 16
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 1
store i64 %arg3, i64* %sv_5.0.reg2mem
br i1 %10, label LBL_8, label LBL_1
LBL_1:
%11 = trunc i64 %2 to i32
%12 = add i64 %4, 24
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
store i32 %14, i32* %sv_14, align 4
store i32 2, i32* %sv_13, align 4
store i64 %arg3, i64* %sv_12, align 8
%15 = mul i32 %11, %arg4
%16 = load i32, i32* %13, align 4
%17 = mul i32 %16, %15
%18 = add i64 %4, 32
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp ugt i32 %17, %20
%or.cond = or i1 %21, %22
%23 = add i64 %4, 40
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
store i64 %27, i64* %.reg2mem
store i32 %15, i32* %.pre-phi.reg2mem
br i1 %or.cond, label LBL_2, label LBL_5
LBL_2:
%28 = call i64 @FUNC(i64 %27)
store i32 %17, i32* %19, align 4
%29 = sext i32 %17 to i64
%30 = load i64, i64* %24, align 8
%31 = call i64 @FUNC(i64 %29)
%32 = inttoptr i64 %30 to i64*
store i64 %31, i64* %32, align 8
%33 = load i64, i64* %24, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%38 = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %38, align 8
%.pre10 = mul i32 %.pre, %arg4
store i64 %35, i64* %.reg2mem
store i32 %.pre10, i32* %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%39 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_43
LBL_5:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%.reload = load i64, i64* %.reg2mem
store i64 %.reload, i64* %sv_11, align 8
%40 = add i64 %4, 72
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = zext i32 %.pre-phi.reload to i64
%44 = call i64 @FUNC(i64 %42, i64* nonnull %sv_11, i32* nonnull %sv_13, i64* nonnull %sv_12, i32* nonnull %sv_14, i64 %43)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_7, label LBL_6
LBL_6:
%48 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_43
LBL_7:
%49 = load i64, i64* %24, align 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
store i64 %51, i64* %sv_5.0.reg2mem
br label LBL_8
LBL_8:
%sv_5.0.reload = load i64, i64* %sv_5.0.reg2mem
%52 = mul i32 %arg4, 4
%53 = call i128 @FUNC(i128 %3, i128 %3)
%54 = call i128 @FUNC(i32 %52)
%55 = add i64 %4, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i128 @FUNC(i64 %57)
%59 = call i128 @FUNC(i128 %54, i128 %58)
%60 = call i128 @FUNC(i64 4625196817309499392)
%61 = call i128 @FUNC(i128 %60, i128 %59)
%62 = call i32 @FUNC(i128 %61)
%63 = add i64 %4, 20
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = icmp eq i32 %65, 1
store i64 0, i64* %sv_4.0.reg2mem
store i64 %arg2, i64* %sv_3.0.reg2mem
br i1 %66, label LBL_16, label LBL_9
LBL_9:
%67 = add i64 %4, 36
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label LBL_9.LBL_13_crit_edge, label LBL_11
LBL_10:
%.pre15 = sext i32 %62 to i64
store i64 %.pre15, i64* %.pre-phi16.reg2mem
br label LBL_13
LBL_11:
%71 = zext i32 %69 to i64
%72 = sext i32 %62 to i64
%73 = icmp sgt i64 %72, %71
store i64 %72, i64* %.pre-phi16.reg2mem
br i1 %73, label LBL_13, label LBL_11.LBL_15_crit_edge
LBL_12:
%.pre17 = add i64 %4, 40
%.pre19 = inttoptr i64 %.pre17 to i64*
%.pre29 = load i64, i64* %.pre19, align 8
%.pre30 = add i64 %.pre29, 8
%.pre32 = inttoptr i64 %.pre30 to i64*
store i64* %.pre32, i64** %.pre-phi33.reg2mem
br label LBL_15
LBL_13:
%.pre-phi16.reload = load i64, i64* %.pre-phi16.reg2mem
%74 = add i64 %4, 40
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = add i64 %76, 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = call i64 @FUNC(i64 %79)
store i32 %62, i32* %68, align 4
%81 = load i64, i64* %75, align 8
%82 = add i64 %81, 8
%83 = call i64 @FUNC(i64 %.pre-phi16.reload)
%84 = inttoptr i64 %82 to i64*
store i64 %83, i64* %84, align 8
%85 = load i64, i64* %75, align 8
%86 = add i64 %85, 8
%87 = inttoptr i64 %86 to i64*
%88 = load i64, i64* %87, align 8
%89 = icmp eq i64 %88, 0
%90 = icmp eq i1 %89, false
store i64* %87, i64** %.pre-phi33.reg2mem
br i1 %90, label LBL_15, label LBL_14
LBL_14:
%91 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_43
LBL_15:
%.pre-phi33.reload = load i64*, i64** %.pre-phi33.reg2mem
%92 = load i64, i64* %.pre-phi33.reload, align 8
store i64 %arg2, i64* %sv_4.0.reg2mem
store i64 %92, i64* %sv_3.0.reg2mem
br label LBL_16
LBL_16:
%93 = ptrtoint i64* %sv_16 to i64
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%sv_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%94 = add i64 %4, 88
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = icmp eq i32 %96, 0
br i1 %97, label LBL_19, label LBL_17
LBL_17:
%98 = add i64 %4, 56
%99 = inttoptr i64 %98 to i32*
%100 = add i64 %93, -64
%101 = add i64 %4, 48
%102 = inttoptr i64 %101 to i64*
store i64 0, i64* %.reg2mem35
store i32 0, i32* %storemerge37.reg2mem
br label LBL_18
LBL_18:
%storemerge37.reload = load i32, i32* %storemerge37.reg2mem
%.reload36 = load i64, i64* %.reg2mem35
%103 = load i32, i32* %99, align 4
%104 = add i32 %103, %arg4
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 2
%107 = call i64 @FUNC(i64 %106)
%108 = mul i64 %.reload36, 8
%109 = add i64 %100, %108
%110 = inttoptr i64 %109 to i64*
store i64 %107, i64* %110, align 8
%111 = load i32, i32* %99, align 4
%112 = mul i32 %111, 2
%113 = load i64, i64* %102, align 8
%114 = add i64 %113, %108
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = inttoptr i64 %107 to i64*
%118 = inttoptr i64 %116 to i64*
%119 = call i64* @memcpy(i64* %117, i64* %118, i32 %112)
%120 = load i64, i64* %110, align 8
%121 = load i32, i32* %99, align 4
%122 = sext i32 %121 to i64
%123 = mul i64 %122, 2
%124 = add i64 %123, %120
%125 = add i64 %108, %93
%126 = add i64 %125, -96
%127 = inttoptr i64 %126 to i64*
store i64 %124, i64* %127, align 8
%128 = add i32 %storemerge37.reload, 1
%129 = load i32, i32* %95, align 4
%130 = zext i32 %129 to i64
%131 = sext i32 %128 to i64
%132 = icmp slt i64 %131, %130
store i64 %131, i64* %.reg2mem35
store i32 %128, i32* %storemerge37.reg2mem
br i1 %132, label LBL_18, label LBL_19
LBL_19:
%133 = sext i32 %62 to i64
%134 = mul i64 %133, 2
%135 = call i64 @FUNC(i64 %134)
%136 = call i64 @FUNC(i64 %134)
%137 = bitcast i64* %rdi to i32*
%138 = load i32, i32* %137, align 8
%139 = icmp eq i32 %138, 2
%.pre11 = add i64 %4, 4
%.pre13 = inttoptr i64 %.pre11 to i32*
%.pr = load i32, i32* %.pre13, align 4
%140 = icmp eq i32 %.pr, 1
%141 = icmp eq i1 %139, %140
br i1 %141, label LBL_20, label LBL_21
LBL_20:
%142 = call i64 @FUNC(i64 %6, i64 %sv_5.0.reload, i32 %arg4)
store i64 %sv_3.0.reload, i64* %sv_2.0.reg2mem
br label LBL_26
LBL_21:
%143 = icmp slt i32 %.pr, 2
br i1 %143, label LBL_25, label LBL_22
LBL_22:
%144 = icmp eq i32 %138, 1
%145 = icmp eq i1 %144, false
br i1 %145, label LBL_24, label LBL_23
LBL_23:
%146 = mul i32 %arg4, 2
%147 = inttoptr i64 %6 to i64*
%148 = inttoptr i64 %sv_5.0.reload to i64*
%149 = call i64* @memcpy(i64* %147, i64* %148, i32 %146)
store i64 %135, i64* %sv_2.0.reg2mem
br label LBL_26
LBL_24:
%150 = call i64 @FUNC(i64 %6, i64 %5, i64 %sv_5.0.reload, i32 %arg4)
store i64 %135, i64* %sv_2.0.reg2mem
store i64 %136, i64* %sv_1.0.reg2mem
br label LBL_26
LBL_25:
%151 = mul i32 %arg4, 2
%152 = inttoptr i64 %6 to i64*
%153 = inttoptr i64 %sv_5.0.reload to i64*
%154 = call i64* @memcpy(i64* %152, i64* %153, i32 %151)
store i64 %sv_3.0.reload, i64* %sv_2.0.reg2mem
br label LBL_26
LBL_26:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%155 = add i64 %4, 56
%156 = inttoptr i64 %155 to i32*
%157 = load i32, i32* %156, align 4
%158 = load i32, i32* %95, align 4
%159 = icmp eq i32 %158, 0
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %159, label LBL_30, label LBL_27
LBL_27:
%160 = ptrtoint i64* %sv_15 to i64
%161 = add i32 %157, %arg4
%162 = add i64 %93, -64
%163 = add i64 %4, 64
%164 = inttoptr i64 %163 to i64*
%165 = add i64 %160, -16
%166 = inttoptr i64 %165 to i64*
%167 = bitcast i32* %sv_10 to i64*
%168 = add i64 %4, 48
%169 = inttoptr i64 %168 to i64*
store i64 0, i64* %.reg2mem37
store i32 %158, i32* %.reg2mem39
store i32 0, i32* %storemerge26.reg2mem
br label LBL_28
LBL_28:
%storemerge26.reload = load i32, i32* %storemerge26.reg2mem
%.reload40 = load i32, i32* %.reg2mem39
%.reload38 = load i64, i64* %.reg2mem37
%170 = add i32 %storemerge26.reload, 1
%171 = icmp eq i32 %170, %.reload40
%172 = mul i64 %.reload38, 8
%173 = add i64 %162, %172
%174 = inttoptr i64 %173 to i64*
%175 = load i64, i64* %174, align 8
%176 = add i64 %172, %93
%177 = add i64 %176, -112
%178 = inttoptr i64 %177 to i64*
%179 = load i64, i64* %178, align 8
%180 = load i64, i64* %164, align 8
%181 = zext i1 %171 to i64
store i64 %181, i64* %166, align 8
%182 = call i64 @FUNC(i64 %180, i64 %179, i64 %175, i64* nonnull %167, i32 %161, i32 %62)
%183 = load i32, i32* %sv_10, align 4
%184 = sub i32 %161, %183
store i32 %184, i32* %156, align 4
%185 = sext i32 %184 to i64
%186 = mul i64 %185, 2
%187 = load i64, i64* %169, align 8
%188 = add i64 %187, %172
%189 = inttoptr i64 %188 to i64*
%190 = load i64, i64* %189, align 8
%191 = call i64 @FUNC(i64 %190, i64 %186)
store i64 %191, i64* %189, align 8
%192 = load i32, i32* %156, align 4
%193 = mul i32 %192, 2
%194 = load i64, i64* %174, align 8
%195 = load i32, i32* %sv_10, align 4
%196 = sext i32 %195 to i64
%197 = mul i64 %196, 2
%198 = add i64 %197, %194
%199 = load i64, i64* %169, align 8
%200 = add i64 %199, %172
%201 = inttoptr i64 %200 to i64*
%202 = load i64, i64* %201, align 8
%203 = inttoptr i64 %202 to i64*
%204 = inttoptr i64 %198 to i64*
%205 = call i64* @memcpy(i64* %203, i64* %204, i32 %193)
%206 = load i32, i32* %95, align 4
%207 = zext i32 %206 to i64
%208 = sext i32 %170 to i64
%209 = icmp slt i64 %208, %207
store i64 %208, i64* %.reg2mem37
store i32 %206, i32* %.reg2mem39
store i32 %170, i32* %storemerge26.reg2mem
br i1 %209, label LBL_28, label LBL_29
LBL_29:
%210 = trunc i64 %182 to i32
store i32 %210, i32* %sv_0.0.lcssa.reg2mem
br label LBL_30
LBL_30:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%211 = load i32, i32* %.pre13, align 4
%212 = icmp eq i32 %211, 2
%213 = icmp eq i1 %212, false
br i1 %213, label LBL_34, label LBL_31
LBL_31:
%214 = load i32, i32* %137, align 8
%215 = icmp eq i32 %214, 1
%216 = icmp eq i1 %215, false
br i1 %216, label LBL_33, label LBL_32
LBL_32:
%217 = call i64 @FUNC(i64 %sv_3.0.reload, i64 %sv_2.0.reload, i32 %sv_0.0.lcssa.reload)
br label LBL_36
LBL_33:
%218 = call i64 @FUNC(i64 %sv_3.0.reload, i64 %sv_2.0.reload, i64 %sv_1.0.reload, i32 %sv_0.0.lcssa.reload)
br label LBL_36
LBL_34:
%219 = icmp eq i32 %211, 6
%220 = icmp eq i1 %219, false
br i1 %220, label LBL_36, label LBL_35
LBL_35:
%221 = call i64 @FUNC(i64 %sv_3.0.reload, i64 %sv_2.0.reload, i64 %sv_1.0.reload, i32 %sv_0.0.lcssa.reload)
br label LBL_36
LBL_36:
%222 = load i32, i32* %64, align 4
%223 = icmp eq i32 %222, 1
br i1 %223, label LBL_39, label LBL_37
LBL_37:
store i32 2, i32* %sv_9, align 4
%224 = add i64 %4, 28
%225 = inttoptr i64 %224 to i32*
%226 = load i32, i32* %225, align 4
store i32 %226, i32* %sv_8, align 4
store i64 %sv_3.0.reload, i64* %sv_7, align 8
store i64 %sv_4.0.reload, i64* %sv_6, align 8
%227 = load i32, i32* %.pre13, align 4
%228 = mul i32 %227, %sv_0.0.lcssa.reload
%229 = add i64 %4, 80
%230 = inttoptr i64 %229 to i64*
%231 = load i64, i64* %230, align 8
%232 = zext i32 %228 to i64
%233 = call i64 @FUNC(i64 %231, i64* nonnull %sv_6, i32* nonnull %sv_8, i64* nonnull %sv_7, i32* nonnull %sv_9, i64 %232)
%234 = trunc i64 %233 to i32
%235 = icmp slt i32 %234, 0
%236 = icmp eq i1 %235, false
br i1 %236, label LBL_39, label LBL_38
LBL_38:
%237 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_43
LBL_39:
%238 = load i32, i32* %95, align 4
%239 = icmp eq i32 %238, 0
br i1 %239, label LBL_42, label LBL_40
LBL_40:
%240 = add i64 %93, -64
store i64 0, i64* %.reg2mem41
store i32 0, i32* %storemerge5.reg2mem
br label LBL_41
LBL_41:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload42 = load i64, i64* %.reg2mem41
%241 = mul i64 %.reload42, 8
%242 = add i64 %240, %241
%243 = inttoptr i64 %242 to i64*
%244 = load i64, i64* %243, align 8
%245 = call i64 @FUNC(i64 %244)
%246 = add i32 %storemerge5.reload, 1
%247 = load i32, i32* %95, align 4
%248 = zext i32 %247 to i64
%249 = sext i32 %246 to i64
%250 = icmp slt i64 %249, %248
store i64 %249, i64* %.reg2mem41
store i32 %246, i32* %storemerge5.reg2mem
br i1 %250, label LBL_41, label LBL_42
LBL_42:
%251 = call i64 @FUNC(i64 %135)
%252 = call i64 @FUNC(i64 %136)
%253 = zext i32 %sv_0.0.lcssa.reload to i64
store i64 %253, i64* %rax.0.reg2mem
br label LBL_43
LBL_43:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.lcssa.reload, { 3, 4, 2, 1, 0 }
uselistorder i64 %172, { 3, 2, 1, 0 }
uselistorder i32* %.pre13, { 1, 0, 2 }
uselistorder i64 %136, { 1, 0 }
uselistorder i64 %135, { 2, 1, 0 }
uselistorder i64 %134, { 1, 0 }
uselistorder i64 %108, { 2, 1, 0 }
uselistorder i32* %95, { 0, 2, 1, 3, 5, 4 }
uselistorder i64 %sv_3.0.reload, { 2, 3, 4, 5, 1, 0 }
uselistorder i64 %93, { 2, 0, 3, 1, 4 }
uselistorder i32 %62, { 3, 4, 2, 1, 0 }
uselistorder i64 %27, { 1, 0 }
uselistorder i32 %17, { 1, 2, 0 }
uselistorder i32* %sv_10, { 1, 0, 2 }
uselistorder i64 %4, { 11, 12, 13, 14, 15, 16, 1, 17, 19, 18, 8, 9, 0, 10, 20, 21, 2, 3, 4, 5, 6, 7, 22 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem35, { 1, 0, 2 }
uselistorder i32* %storemerge37.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %.reg2mem37, { 1, 0, 2 }
uselistorder i32* %.reg2mem39, { 1, 0, 2 }
uselistorder i32* %storemerge26.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem41, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %1, { 2, 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64*, i32*, i64*, i32*, i64)* @av_audio_convert, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_malloc, { 3, 2, 4, 1, 0 }
uselistorder i64 (i64)* @av_free, { 3, 2, 4, 1, 0 }
uselistorder i64 40, { 1, 0, 2 }
uselistorder i32 0, { 0, 4, 7, 2, 1, 5, 3, 6, 8, 9, 10 }
uselistorder i32 2, { 7, 5, 0, 1, 2, 4, 6, 3, 8 }
uselistorder i32 %arg4, { 3, 0, 8, 1, 7, 4, 2, 5, 6 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_41, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ppc_find_by_pvr_3079 | ppc_find_by_pvr | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
store i64 0, i64* %arg2, align 8
%0 = trunc i64 %arg1 to i32
store i32 0, i32* %storemerge2.reg2mem
br label LBL_1
LBL_1:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%1 = sext i32 %storemerge2.reload to i64
%2 = mul i64 %1, 8
%3 = add i64 %2, ptrtoint (i32** @gv_0 to i64)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 8
%6 = xor i32 %5, %0
%7 = add i64 %2, ptrtoint (i32** @gv_1 to i64)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 8
%10 = and i32 %9, %6
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
store i64 %3, i64* %arg2, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%13 = add nuw i32 %storemerge2.reload, 1
%14 = icmp ult i32 %13, 3
store i32 %13, i32* %storemerge2.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_1, label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | object_initialize_17804 | object_initialize | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %arg3)
%2 = call i64 @FUNC(i64 %0, i64 %1)
ret i64 %2
} | 1 |
BinRealVul | zram_bvec_read_4295 | zram_bvec_read | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = zext i32 %arg3 to i64
%3 = mul i64 %2, 4
%4 = add i64 %3, %1
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %1, i64 %2, i64 1)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_14
LBL_3:
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
store i64 0, i64* %sv_1.0.reg2mem
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64* @malloc(i32 4096)
%18 = ptrtoint i64* %17 to i64
store i64 %18, i64* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%19 = call i64 @FUNC(i64 %0)
%20 = call i64 @FUNC(i64 %0)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
%spec.select = select i1 %23, i64 %sv_1.0.reload, i64 %19
%24 = icmp eq i64 %spec.select, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967284, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_7:
%27 = call i64 @FUNC(i64 %1, i64 %spec.select, i32 %arg3)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_9, label LBL_8
LBL_8:
%32 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%33 = and i64 %27, 4294967295
%34 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i64 %33, i32 %arg3)
%35 = add i64 %1, 8
%36 = call i64 @FUNC(i64 %1, i64 %35)
store i64 %33, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_9:
%37 = call i64 @FUNC(i64 %0)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_11, label LBL_10
LBL_10:
%40 = add i64 %0, 12
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = sext i32 %arg4 to i64
%44 = add i64 %spec.select, %43
%45 = add i64 %0, 8
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = sext i32 %47 to i64
%49 = add i64 %19, %48
%50 = inttoptr i64 %49 to i64*
%51 = inttoptr i64 %44 to i64*
%52 = call i64* @memcpy(i64* %50, i64* %51, i32 %42)
br label LBL_11
LBL_11:
%53 = call i64 @FUNC(i64 %0)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%54 = call i64 @FUNC(i64 %19)
%55 = call i64 @FUNC(i64 %0)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br i1 %57, label LBL_14, label LBL_13
LBL_13:
%58 = inttoptr i64 %spec.select to i64*
call void @free(i64* %58)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %spec.select, { 3, 0, 1, 2 }
uselistorder i64 %19, { 2, 0, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 2, 1, 3, 4, 0 }
uselistorder i64 %0, { 2, 3, 1, 0, 4, 5, 6, 7, 8 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @is_partial_io, { 3, 2, 1, 0 }
uselistorder i1 false, { 0, 2, 3, 4, 5, 1 }
uselistorder label LBL_14, { 1, 0, 2 }
} | 0 |
BinRealVul | impeg2d_dec_user_data_6169 | impeg2d_dec_user_data | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge3.lcssa.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 32)
%storemerge4 = trunc i64 %3 to i32
%4 = icmp eq i32 %storemerge4, 434
store i64 %3, i64* %storemerge3.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_6
LBL_1:
%5 = trunc i64 %1 to i32
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
br label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %2, i64 32)
%9 = call i64 @FUNC(i64 %2, i64 3)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 1
br i1 %11, label LBL_5, label LBL_4
LBL_3:
%12 = call i64 @FUNC(i64 %2, i64 8)
%13 = call i64 @FUNC(i64 %2, i64 3)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 1
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = load i32, i32* %7, align 4
%17 = icmp ugt i32 %16, %5
br i1 %17, label LBL_3, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %2, i64 32)
%storemerge = trunc i64 %18 to i32
%19 = icmp eq i32 %storemerge, 434
store i64 %18, i64* %storemerge3.lcssa.reg2mem
br i1 %19, label LBL_2, label LBL_6
LBL_6:
%storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem
ret i64 %storemerge3.lcssa.reload
uselistorder i64 %2, { 3, 4, 2, 0, 5, 1, 6 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_flush, { 1, 0 }
uselistorder i32 434, { 1, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_nxt, { 3, 2, 0, 1 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | c_pdf14trans_write_ctm_8881 | c_pdf14trans_write_ctm | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = ptrtoint i32* %arg2 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = add i64 %0, -1
%5 = call i64 @FUNC(i64 %1, i64 %4, i32 %3)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = and i64 %5, 4294967295
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%sext = mul i64 %2, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = add i64 %10, %0
store i64 %11, i64* %arg1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | vmx_free_vcpu_4734 | vmx_free_vcpu | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %arg1)
%3 = inttoptr i64 %0 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %arg1)
%7 = load i64, i64* @gv_0, align 8
%8 = call i64 @FUNC(i64 %7, i64 %0)
ret i64 %8
} | 0 |
BinRealVul | decode_entropy_image_9711 | decode_entropy_image | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge17.reg2mem = alloca i32
%storemerge25.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp slt i32 %5, 1
%7 = trunc i64 %1 to i32
%sv_0.0 = select i1 %6, i32 %7, i32 %5
%8 = sdiv i32 %sv_0.0, 1073741824
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = sdiv i32 %11, 1073741824
%13 = call i64 @FUNC(i64 %2, i64 0, i32 %8, i32 %12)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = and i64 %13, 4294967295
store i64 %17, i64* %storemerge.reg2mem
br label LBL_8
LBL_2:
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i32*
store i32 8, i32* %19, align 4
%20 = add i64 %2, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %22, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_7, label LBL_3
LBL_3:
%27 = inttoptr i64 %22 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
%30 = zext i32 %25 to i64
%31 = zext i32 %28 to i64
store i32 0, i32* %storemerge17.reg2mem
br label LBL_6
LBL_4:
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%32 = add i32 %storemerge25.reload, 1
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %33, %31
store i32 %32, i32* %storemerge25.reg2mem
br i1 %34, label LBL_4, label LBL_5
LBL_5:
%35 = add i32 %storemerge17.reload, 1
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %36, %30
store i32 %35, i32* %storemerge17.reg2mem
br i1 %37, label LBL_6, label LBL_7
LBL_6:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
store i32 0, i32* %storemerge25.reg2mem
br i1 %29, label LBL_5, label LBL_4
LBL_7:
%38 = add i64 %2, 12
%39 = inttoptr i64 %38 to i32*
store i32 1, i32* %39, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2, 4, 3, 5 }
uselistorder i32* %storemerge25.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | cac_read_binary_11183 | cac_read_binary | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi.4.reg2mem = alloca i64
%rdi.3.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%.pre-phi6.reg2mem = alloca i64
%.pre-phi8.reg2mem = alloca i64*
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
store i64 0, i64* %sv_2, align 8
%5 = call i64 @FUNC(i64 %3, i64 0)
%6 = add i64 %3, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%.pre4 = trunc i64 %4 to i32
br i1 %9, label LBL_0.LBL_5_crit_edge, label LBL_2
LBL_1:
%.pre5 = add i64 %3, 8
%.pre7 = inttoptr i64 %.pre5 to i64*
store i64* %.pre7, i64** %.pre-phi8.reg2mem
store i64 %.pre5, i64* %.pre-phi6.reg2mem
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_5
LBL_2:
%10 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i32 %.pre4, i64 %arg4, i64 %arg5, i64 %1)
%11 = and i64 %4, 4294967295
%12 = add i64 %3, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp ugt i64 %11, %14
store i64 %14, i64* %.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_3:
%16 = call i64 @FUNC(i64 %3, i64 4294967295)
%.pre = load i64, i64* %13, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%17 = sub i64 %.reload, %11
%18 = icmp ult i64 %17, %arg4
%19 = select i1 %18, i64 %17, i64 %arg4
%20 = add i64 %11, %3
%21 = inttoptr i64 %20 to i64*
%22 = trunc i64 %19 to i32
%23 = call i64* @memcpy(i64* %arg3, i64* %21, i32 %22)
%24 = and i64 %19, 4294967295
%25 = call i64 @FUNC(i64 %2, i64 %24)
store i64* %13, i64** %.pre-phi8.reg2mem
store i64 %12, i64* %.pre-phi6.reg2mem
store i64 %2, i64* %rdi.0.reg2mem
br label LBL_5
LBL_5:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.pre-phi8.reload = load i64*, i64** %.pre-phi8.reg2mem
%26 = call i64 @FUNC(i64 %rdi.0.reload, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i32 %.pre4, i64 %arg4, i64 %arg5, i64 %1)
%27 = inttoptr i64 %rdi.0.reload to i64*
call void @free(i64* %27)
store i64 0, i64* %arg1, align 8
store i64 0, i64* %.pre-phi8.reload, align 8
%28 = call i64 @FUNC(i64 %3, i64* nonnull %sv_2, i64* nonnull %sv_1)
%29 = trunc i64 %28 to i32
%30 = icmp slt i32 %29, 0
store i64 %28, i64* %sv_0.0.reg2mem
store i64 %3, i64* %rdi.3.reg2mem
br i1 %30, label LBL_13, label LBL_6
LBL_6:
%31 = load i64, i64* %sv_1, align 8
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
store i64 4294967294, i64* %sv_0.0.reg2mem
store i64 %3, i64* %rdi.3.reg2mem
br i1 %33, label LBL_7, label LBL_13
LBL_7:
%34 = load i64, i64* %sv_2, align 8
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = add i64 %34, 1
%38 = add i64 %31, -1
%39 = urem i8 %36, 4
%40 = icmp eq i8 %39, 1
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_9, label LBL_8
LBL_8:
%.pre-phi6.reload = load i64, i64* %.pre-phi6.reg2mem
%42 = call i64 @FUNC(i64 %3, i64 %.pre-phi6.reload, i64 %37, i64 %38, i64 0)
%43 = trunc i64 %37 to i32
%44 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i32 %43, i64 %38, i64 0, i64 %1)
store i64 4294967293, i64* %sv_0.0.reg2mem
store i64 %3, i64* %rdi.3.reg2mem
br label LBL_13
LBL_9:
%45 = icmp eq i64 %38, 0
store i64 %3, i64* %rdi.1.reg2mem
br i1 %45, label LBL_11, label LBL_10
LBL_10:
%46 = trunc i64 %38 to i32
%47 = call i64* @malloc(i32 %46)
%48 = ptrtoint i64* %47 to i64
store i64 %48, i64* %arg1, align 8
store i64 %38, i64* %.pre-phi8.reload, align 8
%49 = inttoptr i64 %38 to i64*
%50 = inttoptr i64 %37 to i64*
%51 = call i64* @memcpy(i64* %49, i64* %50, i32 %46)
store i64 %38, i64* %rdi.1.reg2mem
br label LBL_11
LBL_11:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
store i32 1, i32* %7, align 4
%52 = load i64, i64* %.pre-phi8.reload, align 8
%53 = and i64 %4, 4294967295
%54 = sub i64 %52, %53
%55 = icmp ult i64 %54, %arg4
%56 = select i1 %55, i64 %54, i64 %arg4
%57 = icmp eq i64 %56, 0
%58 = icmp eq i64 %rdi.1.reload, 0
%or.cond = or i1 %58, %57
store i64 %56, i64* %sv_0.0.reg2mem
store i64 %rdi.1.reload, i64* %rdi.3.reg2mem
br i1 %or.cond, label LBL_13, label LBL_12
LBL_12:
%59 = trunc i64 %56 to i32
%60 = add i64 %rdi.1.reload, %53
%61 = inttoptr i64 %60 to i64*
%62 = call i64* @memcpy(i64* %arg3, i64* %61, i32 %59)
store i64 %56, i64* %sv_0.0.reg2mem
store i64 %2, i64* %rdi.3.reg2mem
br label LBL_13
LBL_13:
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%63 = load i64, i64* %sv_2, align 8
%64 = icmp eq i64 %63, 0
store i64 %rdi.3.reload, i64* %rdi.4.reg2mem
br i1 %64, label LBL_15, label LBL_14
LBL_14:
%65 = inttoptr i64 %63 to i64*
call void @free(i64* %65)
store i64 %63, i64* %rdi.4.reg2mem
br label LBL_15
LBL_15:
%rdi.4.reload = load i64, i64* %rdi.4.reg2mem
%66 = and i64 %sv_0.0.reload, 4294967295
%67 = call i64 @FUNC(i64 %rdi.4.reload, i64 %66)
ret i64 %67
uselistorder i64 %56, { 1, 2, 0, 3 }
uselistorder i64 %54, { 1, 0 }
uselistorder i64 %rdi.1.reload, { 2, 0, 1 }
uselistorder i64 %38, { 0, 1, 2, 5, 6, 3, 4 }
uselistorder i64 %37, { 2, 0, 1 }
uselistorder i64* %.pre-phi8.reload, { 1, 0, 2 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64* %sv_2, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 %3, { 3, 1, 10, 11, 0, 2, 12, 5, 7, 8, 9, 4, 6, 13, 14 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %rdi.3.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @LOG_FUNC_RETURN, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @sc_log, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 %arg5, { 1, 0 }
uselistorder i64 %arg4, { 4, 0, 5, 2, 1, 3 }
uselistorder label LBL_13, { 1, 0, 4, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ntlm_print_negotiate_flags_6759 | ntlm_print_negotiate_flags | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i32 %0)
%3 = trunc i64 %1 to i32
store i64 31, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = icmp eq i64 %indvars.iv.reload, 0
%5 = trunc i64 %indvars.iv.reload to i32
%6 = lshr i32 %3, %5
%7 = zext i32 %6 to i64
%storemerge = select i1 %4, i64 %1, i64 %7
%8 = urem i64 %storemerge, 2
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = sub nuw nsw i64 31, %indvars.iv.reload
%11 = mul i64 %10, 8
%12 = add i64 %11, ptrtoint ([16 x i8*]* @gv_1 to i64)
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i8*
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i8* %15, i64 %10)
%17 = sext i32 %16 to i64
store i64 %17, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
%18 = icmp eq i64 %indvars.iv.reload, 0
%19 = icmp eq i1 %18, false
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 4, 0, 1, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 31, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ipvideo_decode_block_opcode_0xD_3150 | ipvideo_decode_block_opcode_0xD | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_1.15.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%storemerge47.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 3
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %storemerge47.reg2mem
br label LBL_3
LBL_2:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_3:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%storemerge47.reload = load i32, i32* %storemerge47.reg2mem
%12 = urem i32 %storemerge47.reload, 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %0)
%16 = trunc i64 %15 to i32
%sext = mul i32 %16, 16777216
%17 = ashr exact i32 %sext, 24
%18 = call i64 @FUNC(i64 %0)
%19 = trunc i64 %18 to i32
%sext3 = mul i32 %19, 16777216
%20 = ashr exact i32 %sext3, 24
store i32 %17, i32* %sv_1.0.reg2mem
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%21 = load i64, i64* %5, align 8
%22 = urem i32 %sv_1.0.reload, 256
%23 = inttoptr i64 %21 to i64*
%24 = call i64* @memset(i64* %23, i32 %22, i32 4)
%25 = load i64, i64* %5, align 8
%26 = add i64 %25, 4
%27 = urem i32 %sv_0.0.reload, 256
%28 = inttoptr i64 %26 to i64*
%29 = call i64* @memset(i64* %28, i32 %27, i32 4)
%30 = load i64, i64* %5, align 8
%31 = load i32, i32* %7, align 4
%32 = sext i32 %31 to i64
%33 = add i64 %30, %32
store i64 %33, i64* %5, align 8
%34 = add nuw nsw i32 %storemerge47.reload, 1
%exitcond = icmp eq i32 %34, 8
store i32 %34, i32* %storemerge47.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %exitcond, label LBL_6, label LBL_3
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %5, { 1, 0, 2, 3 }
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5 }
uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.16.reg2mem, { 1, 0 }
uselistorder i32* %sv_1.15.reg2mem, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder i32 4, { 1, 2, 0 }
} | 0 |
BinRealVul | vc1_inv_trans_4x4_c_16502 | vc1_inv_trans_4x4_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.09.reg2mem = alloca i64
%sv_1.110.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%sv_2.013.reg2mem = alloca i64
%storemerge814.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
store i32 0, i32* %storemerge814.reg2mem
store i64 %0, i64* %sv_2.013.reg2mem
br label LBL_1
LBL_1:
%sv_2.013.reload = load i64, i64* %sv_2.013.reg2mem
%storemerge814.reload = load i32, i32* %storemerge814.reg2mem
%1 = inttoptr i64 %sv_2.013.reload to i16*
%2 = load i16, i16* %1, align 2
%3 = add i64 %sv_2.013.reload, 4
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = sext i16 %5 to i64
%7 = sext i16 %2 to i64
%8 = add nsw i64 %6, %7
%9 = mul nsw i64 %8, 17
%10 = add nsw i64 %9, 4
%11 = sub nsw i64 %7, %6
%12 = mul nsw i64 %11, 17
%13 = add nsw i64 %12, 4
%14 = add i64 %sv_2.013.reload, 2
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = sext i16 %16 to i64
%18 = mul nsw i64 %17, 22
%19 = add i64 %sv_2.013.reload, 6
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = sext i16 %21 to i64
%23 = mul nsw i64 %22, 10
%24 = add nsw i64 %23, %18
%25 = mul nsw i64 %22, 22
%26 = mul nsw i64 %17, 4294967286
%27 = add nsw i64 %25, %26
%28 = add nsw i64 %24, %10
%29 = trunc i64 %28 to i32
%30 = udiv i32 %29, 8
%31 = trunc i32 %30 to i16
store i16 %31, i16* %1, align 2
%32 = trunc i64 %13 to i32
%33 = trunc i64 %27 to i32
%34 = sub i32 %32, %33
%35 = udiv i32 %34, 8
%36 = trunc i32 %35 to i16
store i16 %36, i16* %15, align 2
%37 = add nsw i64 %27, %13
%38 = trunc i64 %37 to i32
%39 = udiv i32 %38, 8
%40 = trunc i32 %39 to i16
store i16 %40, i16* %4, align 2
%41 = trunc i64 %10 to i32
%42 = trunc i64 %24 to i32
%43 = sub i32 %41, %42
%44 = udiv i32 %43, 8
%45 = trunc i32 %44 to i16
store i16 %45, i16* %20, align 2
%46 = add i64 %sv_2.013.reload, 16
%47 = add nuw nsw i32 %storemerge814.reload, 1
%exitcond15 = icmp eq i32 %47, 4
store i32 %47, i32* %storemerge814.reg2mem
store i64 %46, i64* %sv_2.013.reg2mem
br i1 %exitcond15, label LBL_2, label LBL_1
LBL_2:
%sext = mul i64 %arg2, 4294967296
%48 = ptrtoint i64* %arg1 to i64
%49 = ashr exact i64 %sext, 32
%50 = mul i64 %arg2, 8589934592
%51 = ashr exact i64 %50, 32
%sext6 = mul i64 %49, 12884901888
%52 = ashr exact i64 %sext6, 32
store i32 0, i32* %storemerge11.reg2mem
store i64 %0, i64* %sv_1.110.reg2mem
store i64 %48, i64* %sv_0.09.reg2mem
br label LBL_3
LBL_3:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%sv_1.110.reload = load i64, i64* %sv_1.110.reg2mem
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%53 = inttoptr i64 %sv_1.110.reload to i16*
%54 = load i16, i16* %53, align 2
%55 = add i64 %sv_1.110.reload, 32
%56 = inttoptr i64 %55 to i16*
%57 = load i16, i16* %56, align 2
%58 = sext i16 %57 to i64
%59 = sext i16 %54 to i64
%60 = add nsw i64 %58, %59
%61 = mul nsw i64 %60, 17
%62 = add nsw i64 %61, 64
%63 = sub nsw i64 %59, %58
%64 = mul nsw i64 %63, 17
%65 = add nsw i64 %64, 64
%66 = add i64 %sv_1.110.reload, 16
%67 = inttoptr i64 %66 to i16*
%68 = load i16, i16* %67, align 2
%69 = sext i16 %68 to i64
%70 = mul nsw i64 %69, 22
%71 = add i64 %sv_1.110.reload, 48
%72 = inttoptr i64 %71 to i16*
%73 = load i16, i16* %72, align 2
%74 = sext i16 %73 to i64
%75 = mul nsw i64 %74, 10
%76 = add nsw i64 %75, %70
%77 = mul nsw i64 %74, 22
%78 = mul nsw i64 %69, 4294967286
%79 = add nsw i64 %77, %78
%80 = inttoptr i64 %sv_0.09.reload to i8*
%81 = load i8, i8* %80, align 1
%82 = add nsw i64 %76, %62
%83 = trunc i64 %82 to i32
%84 = ashr i32 %83, 7
%85 = zext i8 %81 to i32
%86 = add nsw i32 %84, %85
%87 = sext i32 %86 to i64
%88 = add i64 %87, ptrtoint (i64* @gv_0 to i64)
%89 = inttoptr i64 %88 to i8*
%90 = load i8, i8* %89, align 1
store i8 %90, i8* %80, align 1
%91 = add i64 %sv_0.09.reload, %49
%92 = inttoptr i64 %91 to i8*
%93 = load i8, i8* %92, align 1
%94 = trunc i64 %65 to i32
%95 = trunc i64 %79 to i32
%96 = sub i32 %94, %95
%97 = ashr i32 %96, 7
%98 = zext i8 %93 to i32
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = add i64 %100, ptrtoint (i64* @gv_0 to i64)
%102 = inttoptr i64 %101 to i8*
%103 = load i8, i8* %102, align 1
store i8 %103, i8* %92, align 1
%104 = add i64 %sv_0.09.reload, %51
%105 = inttoptr i64 %104 to i8*
%106 = load i8, i8* %105, align 1
%107 = add nsw i64 %79, %65
%108 = trunc i64 %107 to i32
%109 = ashr i32 %108, 7
%110 = zext i8 %106 to i32
%111 = add nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = add i64 %112, ptrtoint (i64* @gv_0 to i64)
%114 = inttoptr i64 %113 to i8*
%115 = load i8, i8* %114, align 1
store i8 %115, i8* %105, align 1
%116 = add i64 %sv_0.09.reload, %52
%117 = inttoptr i64 %116 to i8*
%118 = load i8, i8* %117, align 1
%119 = trunc i64 %62 to i32
%120 = trunc i64 %76 to i32
%121 = sub i32 %119, %120
%122 = ashr i32 %121, 7
%123 = zext i8 %118 to i32
%124 = add nsw i32 %122, %123
%125 = sext i32 %124 to i64
%126 = add i64 %125, ptrtoint (i64* @gv_0 to i64)
%127 = inttoptr i64 %126 to i8*
%128 = load i8, i8* %127, align 1
store i8 %128, i8* %117, align 1
%129 = add i64 %sv_1.110.reload, 2
%130 = add i64 %sv_0.09.reload, 1
%131 = add nuw nsw i32 %storemerge11.reload, 1
%exitcond = icmp eq i32 %131, 4
store i32 %131, i32* %storemerge11.reg2mem
store i64 %129, i64* %sv_1.110.reg2mem
store i64 %130, i64* %sv_0.09.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%132 = zext i8 %128 to i64
ret i64 %132
uselistorder i64 %76, { 1, 0 }
uselistorder i64 %74, { 1, 0 }
uselistorder i64 %62, { 1, 0 }
uselistorder i64 %59, { 1, 0 }
uselistorder i64 %58, { 1, 0 }
uselistorder i64 %sv_1.110.reload, { 0, 3, 4, 2, 1 }
uselistorder i64 %sv_0.09.reload, { 0, 4, 3, 2, 1 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %sv_2.013.reload, { 0, 2, 1, 3, 4 }
uselistorder i32* %storemerge814.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.013.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.110.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.09.reg2mem, { 1, 0, 2 }
uselistorder i64 32, { 3, 0, 1, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 4294967286, { 1, 0 }
uselistorder i64 10, { 1, 0 }
uselistorder i64 22, { 2, 3, 0, 1 }
uselistorder i64 17, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | esp_reg_write_119 | esp_reg_write | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = mul i64 %arg2, 4
%3 = and i64 %2, 17179869180
%4 = add i64 %3, %0
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = and i64 %arg2, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %7, i64 %arg3)
%10 = and i64 %1, 4294967295
store i64 %10, i64* @0, align 8
%trunc = trunc i64 %1 to i32
switch i32 %trunc, label LBL_30 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_8
i32 9, label LBL_29
i32 10, label LBL_29
i32 11, label LBL_29
i32 12, label LBL_29
i32 13, label LBL_29
i32 14, label LBL_31
i32 15, label LBL_31
i32 16, label LBL_31
i32 17, label LBL_31
]
LBL_1:
%11 = add i64 %0, 653
%12 = inttoptr i64 %11 to i8*
store i8 1, i8* %12, align 1
br label LBL_2
LBL_2:
%13 = add i64 %0, 84
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = and i32 %15, -2
store i32 %16, i32* %14, align 4
br label LBL_31
LBL_3:
%17 = add i64 %0, 652
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = add i64 %0, 392
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %23, 1
store i32 %24, i32* %22, align 4
%25 = zext i32 %23 to i64
%26 = trunc i64 %arg3 to i8
%27 = add i64 %0, 396
%28 = add i64 %27, %25
%29 = inttoptr i64 %28 to i8*
store i8 %26, i8* %29, align 1
br label LBL_31
LBL_5:
%30 = add i64 %0, 388
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 255
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = call i64 @FUNC()
br label LBL_31
LBL_7:
%36 = add i32 %32, 1
store i32 %36, i32* %31, align 4
%37 = add i64 %0, 384
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = add i32 %39, 1
store i32 %40, i32* %38, align 4
%41 = zext i32 %39 to i64
%42 = trunc i64 %arg3 to i8
%43 = add i64 %0, 128
%44 = add i64 %43, %41
%45 = inttoptr i64 %44 to i8*
store i8 %42, i8* %45, align 1
br label LBL_31
LBL_8:
%46 = trunc i64 %arg3 to i32
%47 = add i64 %0, 64
%48 = add i64 %3, %47
%49 = inttoptr i64 %48 to i32*
store i32 %46, i32* %49, align 4
%50 = urem i64 %arg3, 2
%51 = icmp eq i64 %50, 0
%52 = add i64 %0, 654
%53 = inttoptr i64 %52 to i8*
br i1 %51, label LBL_10, label LBL_9
LBL_9:
store i8 1, i8* %53, align 1
%54 = add i64 %0, 4
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i64 %0, 68
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = add i64 %0, 8
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i64 %0, 72
%63 = inttoptr i64 %62 to i32*
store i32 %61, i32* %63, align 4
%64 = bitcast i64* %rdi to i32*
%65 = load i32, i32* %64, align 8
%66 = inttoptr i64 %47 to i32*
store i32 %65, i32* %66, align 4
br label LBL_11
LBL_10:
store i8 0, i8* %53, align 1
br label LBL_11
LBL_11:
%67 = urem i64 %arg3, 16
store i64 %67, i64* @1, align 8
switch i64 %67, label LBL_28 [
i64 0, label LBL_12
i64 2, label LBL_13
i64 3, label LBL_14
i64 4, label LBL_15
i64 5, label LBL_17
i64 6, label LBL_18
i64 7, label LBL_19
i64 8, label LBL_20
i64 9, label LBL_21
i64 10, label LBL_22
i64 11, label LBL_23
i64 12, label LBL_24
i64 13, label LBL_25
i64 14, label LBL_26
i64 15, label LBL_27
]
LBL_12:
%68 = call i64 @FUNC(i64 %arg3)
br label LBL_31
LBL_13:
%69 = call i64 @FUNC(i64 %arg3)
%70 = add i64 %0, 88
%71 = inttoptr i64 %70 to i32*
store i32 1, i32* %71, align 4
%72 = add i64 %0, 92
%73 = inttoptr i64 %72 to i32*
store i32 0, i32* %73, align 4
%74 = add i64 %0, 96
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
br label LBL_31
LBL_14:
%76 = call i64 @FUNC(i64 %arg3)
%77 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_15:
%78 = call i64 @FUNC(i64 %arg3)
%79 = add i64 %0, 88
%80 = inttoptr i64 %79 to i32*
store i32 2, i32* %80, align 4
%81 = add i64 %0, 36
%82 = inttoptr i64 %81 to i32*
%83 = load i32, i32* %82, align 4
%84 = urem i32 %83, 2
%85 = icmp eq i32 %84, 0
%86 = icmp eq i1 %85, false
br i1 %86, label LBL_31, label LBL_16
LBL_16:
%87 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_17:
%88 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_18:
%89 = call i64 @FUNC(i64 %arg3)
%90 = call i64 @FUNC(i64 %0)
%91 = add i64 %0, 88
%92 = inttoptr i64 %91 to i32*
store i32 1, i32* %92, align 4
%93 = add i64 %0, 84
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = or i32 %95, 2
store i32 %96, i32* %94, align 4
br label LBL_31
LBL_19:
%97 = call i64 @FUNC(i64 %arg3)
%98 = add i64 %0, 88
%99 = inttoptr i64 %98 to i32*
store i32 3, i32* %99, align 4
%100 = add i64 %0, 92
%101 = inttoptr i64 %100 to i32*
store i32 0, i32* %101, align 4
%102 = add i64 %0, 96
%103 = inttoptr i64 %102 to i32*
store i32 0, i32* %103, align 4
%104 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_20:
%105 = call i64 @FUNC(i64 %arg3)
%106 = add i64 %0, 84
%107 = inttoptr i64 %106 to i32*
store i32 1, i32* %107, align 4
%108 = add i64 %0, 88
%109 = inttoptr i64 %108 to i32*
store i32 1, i32* %109, align 4
%110 = add i64 %0, 92
%111 = inttoptr i64 %110 to i32*
store i32 0, i32* %111, align 4
br label LBL_31
LBL_21:
%112 = call i64 @FUNC(i64 %arg3)
br label LBL_31
LBL_22:
%113 = call i64 @FUNC(i64 %arg3)
br label LBL_31
LBL_23:
%114 = call i64 @FUNC(i64 %arg3)
%115 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_24:
%116 = call i64 @FUNC(i64 %arg3)
%117 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_25:
%118 = call i64 @FUNC(i64 %arg3)
%119 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_26:
%120 = call i64 @FUNC(i64 %arg3)
%121 = add i64 %0, 88
%122 = inttoptr i64 %121 to i32*
store i32 0, i32* %122, align 4
br label LBL_31
LBL_27:
%123 = call i64 @FUNC(i64 %arg3)
%124 = add i64 %0, 88
%125 = inttoptr i64 %124 to i32*
store i32 0, i32* %125, align 4
%126 = call i64 @FUNC(i64 %0)
br label LBL_31
LBL_28:
%127 = call i64 @FUNC(i64 %arg3)
br label LBL_31
LBL_29:
%128 = trunc i64 %arg3 to i32
%129 = add i64 %0, 64
%130 = add i64 %129, %3
%131 = inttoptr i64 %130 to i32*
store i32 %128, i32* %131, align 4
br label LBL_31
LBL_30:
%132 = call i64 @FUNC(i64 %arg3, i64 %10)
store i64 %132, i64* %rax.0.reg2mem
br label LBL_32
LBL_31:
%133 = trunc i64 %arg3 to i32
store i32 %133, i32* %5, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_32
LBL_32:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %53, { 1, 0 }
uselistorder i64 %47, { 1, 0 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 0, 3, 38, 39, 37, 36, 35, 34, 31, 32, 33, 27, 28, 29, 30, 24, 25, 26, 23, 21, 20, 22, 19, 16, 17, 18, 13, 12, 15, 14, 40, 2, 7, 8, 11, 6, 10, 9, 5, 4, 1 }
uselistorder i64 (i64)* @esp_raise_irq, { 2, 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 2, { 2, 0, 3, 1 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0 }
uselistorder i64 %arg3, { 21, 22, 20, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 0, 1, 19, 3, 2, 23 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_31, { 21, 4, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 19, 20, 7, 6, 5, 22, 23, 24, 25, 3, 2, 1, 0 }
} | 1 |
BinRealVul | parse_status_6398 | parse_status | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%storemerge.in16.reg2mem = alloca i64
%.reg2mem = alloca i8*
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to i8*
%1 = call i8* @strchr(i8* %0, i32 10)
%2 = icmp eq i8* %1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_11
LBL_1:
%storemerge.in.in14 = ptrtoint i8* %1 to i64
%storemerge.in15 = add i64 %storemerge.in.in14, 1
%4 = inttoptr i64 %storemerge.in15 to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp eq i8 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_10
LBL_2:
%8 = ptrtoint i64* %sv_7 to i64
%9 = ptrtoint i64* %sv_3 to i64
%10 = add i64 %8, -16
%11 = inttoptr i64 %10 to i64*
%12 = ptrtoint i64* %sv_2 to i64
%13 = add i64 %8, -24
%14 = inttoptr i64 %13 to i64*
%15 = ptrtoint i32* %sv_1 to i64
%16 = add i64 %8, -32
%17 = inttoptr i64 %16 to i64*
%18 = ptrtoint i32* %sv_0 to i64
%19 = bitcast i64* %sv_3 to i8*
store i8* %4, i8** %.reg2mem
store i64 %storemerge.in15, i64* %storemerge.in16.reg2mem
br label LBL_3
LBL_3:
%storemerge.in16.reload = load i64, i64* %storemerge.in16.reg2mem
%.reload = load i8*, i8** %.reg2mem
%storemerge = inttoptr i64 %storemerge.in16.reload to i32*
store i64 %12, i64* %11, align 8
store i64 %15, i64* %14, align 8
store i64 %18, i64* %17, align 8
%20 = call i32 (i8*, i8*, ...) @sscanf(i8* %.reload, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_3, i64* nonnull %sv_4, i64* nonnull %sv_5, i64* nonnull %sv_6, i32* %storemerge)
%21 = icmp sgt i32 %20, 4
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = ptrtoint i64* %sv_5 to i64
%23 = ptrtoint i64* %sv_6 to i64
%24 = ptrtoint i64* %sv_4 to i64
%25 = zext i32 %20 to i64
%26 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %25, i64 %9, i64 %24, i64 %22, i64 %23)
%27 = call i64 @FUNC()
unreachable
LBL_5:
%28 = load i32, i32* %sv_0, align 4
%29 = load i64, i64* %sv_6, align 8
%30 = load i64, i64* %sv_5, align 8
%31 = and i64 %30, 4294967295
%32 = load i64, i64* %sv_4, align 8
%33 = and i64 %32, 4294967295
%34 = zext i32 %28 to i64
%35 = and i64 %29, 4294967295
%36 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64 %33, i64 %31, i64 %35, i64 %34)
%37 = load i32, i32* %sv_1, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %38, i64 %12, i64 %31, i64 %35, i64 %34)
%40 = load i64, i64* @gv_4, align 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = load i64, i64* %sv_4, align 8
%sext = mul i64 %43, 4294967296
%44 = ashr exact i64 %sext, 32
%45 = ashr exact i64 %sext, 31
%46 = add nsw i64 %45, %44
%47 = mul i64 %46, 8
%48 = add i64 %47, %42
%49 = inttoptr i64 %48 to i32*
%50 = inttoptr i64 %48 to i64*
%51 = call i64* @memset(i64* %50, i32 0, i32 24)
%52 = call i32 @strncmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i8* nonnull %19, i32 2)
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
%. = select i1 %54, i32 2, i32 1
store i32 %., i32* %49, align 4
%55 = load i64, i64* %sv_4, align 8
%56 = trunc i64 %55 to i32
%57 = add i64 %48, 4
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = load i64, i64* %sv_5, align 8
%60 = trunc i64 %59 to i32
%61 = add i64 %48, 8
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
%63 = load i32, i32* %sv_0, align 4
%64 = add i64 %48, 12
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
%66 = load i32, i32* %sv_0, align 4
%67 = ashr i32 %66, 16
%68 = add i64 %48, 16
%69 = inttoptr i64 %68 to i32*
store i32 %67, i32* %69, align 4
%70 = load i32, i32* %sv_0, align 4
%71 = urem i32 %70, 65536
%72 = zext i32 %71 to i64
%73 = add i64 %48, 20
%74 = inttoptr i64 %73 to i32*
store i32 %71, i32* %74, align 4
%75 = load i32, i32* %62, align 4
%switch = icmp ult i32 %75, 2
store i64 %72, i64* %rdx.0.reg2mem
br i1 %switch, label LBL_8, label LBL_6
LBL_6:
%76 = call i64 @FUNC(i64 %48, i64* nonnull %sv_2)
%77 = icmp eq i64 %76, 0
%78 = icmp eq i1 %77, false
store i64 %12, i64* %rdx.0.reg2mem
br i1 %78, label LBL_8, label LBL_7
LBL_7:
%79 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_6, i64 0, i64 0), i64 %12, i64 %12, i64 %42, i64 %35, i64 %34)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%80 = call i8* @strchr(i8* %.reload, i32 10)
%81 = icmp eq i8* %80, null
store i64 %42, i64* %rcx.1.reg2mem
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
store i64 %35, i64* %r8.1.reg2mem
store i64 %34, i64* %r9.1.reg2mem
br i1 %81, label LBL_10, label LBL_9
LBL_9:
%storemerge.in.in = ptrtoint i8* %80 to i64
%storemerge.in = add i64 %storemerge.in.in, 1
%82 = inttoptr i64 %storemerge.in to i8*
%83 = load i8, i8* %82, align 1
%84 = icmp eq i8 %83, 0
%85 = icmp eq i1 %84, false
store i8* %82, i8** %.reg2mem
store i64 %storemerge.in, i64* %storemerge.in16.reg2mem
store i64 %42, i64* %rcx.1.reg2mem
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
store i64 %35, i64* %r8.1.reg2mem
store i64 %34, i64* %r9.1.reg2mem
br i1 %85, label LBL_3, label LBL_10
LBL_10:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%86 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0), i64 10, i64 %rdx.2.reload, i64 %rcx.1.reload, i64 %r8.1.reload, i64 %r9.1.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %71, { 1, 0 }
uselistorder i64 %48, { 0, 1, 2, 3, 4, 5, 7, 6 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %34, { 0, 1, 2, 4, 3 }
uselistorder i64 %12, { 2, 1, 0, 3, 4 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64* %sv_6, { 1, 2, 0 }
uselistorder i64* %sv_5, { 1, 2, 3, 0 }
uselistorder i64* %sv_4, { 1, 2, 3, 4, 0 }
uselistorder i32* %sv_1, { 1, 0 }
uselistorder i32* %sv_0, { 4, 3, 2, 1, 0 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.in16.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @dbg, { 4, 3, 2, 1, 0 }
uselistorder i8 0, { 2, 0, 3, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0, 4 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i32 1, { 10, 20, 19, 18, 17, 16, 15, 13, 14, 9, 8, 7, 6, 5, 4, 3, 2, 11, 12, 21, 1, 0 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | comps_rtree_unite_7852 | comps_rtree_unite | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%.reg2mem9 = alloca i64
%storemerge3.reg2mem = alloca i64
%.reg2mem7 = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64* @malloc(i32 24)
%3 = ptrtoint i64* %2 to i64
store i64 %0, i64* %2, align 8
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
%6 = call i64 @FUNC()
store i64 %6, i64* %sv_0, align 8
%7 = call i64 @FUNC(i64 %6, i64 0, i64 0, i64 4198448)
%8 = call i64 @FUNC(i64 %6, i64 %3, i64 0)
%9 = inttoptr i64 %6 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %.reg2mem
store i64 %6, i64* %.reg2mem7
br i1 %12, label LBL_1, label LBL_12
LBL_1:
%.reload8 = load i64, i64* %.reg2mem7
%.reload = load i64, i64* %.reg2mem
%13 = call i64 @FUNC(i64 %.reload8, i64 %.reload)
%14 = inttoptr i64 %.reload to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
call void @free(i64* %14)
%storemerge.in1 = inttoptr i64 %17 to i64*
%storemerge2 = load i64, i64* %storemerge.in1, align 8
%18 = icmp eq i64 %storemerge2, 0
%19 = icmp eq i1 %18, false
%20 = add i64 %15, 8
%21 = inttoptr i64 %20 to i64*
store i64 %storemerge2, i64* %storemerge3.reg2mem
br i1 %19, label LBL_2, label LBL_11
LBL_2:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%22 = call i64* @malloc(i32 24)
%23 = ptrtoint i64* %22 to i64
%24 = inttoptr i64 %storemerge3.reload to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %25, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
store i64 %28, i64* %22, align 8
%29 = load i64, i64* %21, align 8
%30 = icmp eq i64 %29, 0
%31 = load i64, i64* %24, align 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i8*
%35 = call i32 @strlen(i8* %34)
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%36 = load i64, i64* %21, align 8
%37 = inttoptr i64 %36 to i8*
%38 = call i32 @strlen(i8* %37)
%39 = add i32 %35, 1
%40 = add i32 %39, %38
%41 = call i64* @malloc(i32 %40)
%42 = ptrtoint i64* %41 to i64
%43 = add i64 %23, 8
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = load i64, i64* %21, align 8
%46 = inttoptr i64 %45 to i8*
%47 = call i32 @strlen(i8* %46)
%48 = load i64, i64* %21, align 8
%49 = load i64, i64* %44, align 8
%50 = inttoptr i64 %49 to i64*
%51 = inttoptr i64 %48 to i64*
%52 = call i64* @memcpy(i64* %50, i64* %51, i32 %47)
%53 = load i64, i64* %24, align 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = inttoptr i64 %55 to i8*
%57 = call i32 @strlen(i8* %56)
%58 = add i32 %57, 1
%59 = load i64, i64* %24, align 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = load i64, i64* %44, align 8
%63 = load i64, i64* %21, align 8
%64 = inttoptr i64 %63 to i8*
%65 = call i32 @strlen(i8* %64)
%66 = sext i32 %65 to i64
%67 = add i64 %62, %66
%68 = inttoptr i64 %67 to i64*
%69 = inttoptr i64 %61 to i64*
%70 = call i64* @memcpy(i64* %68, i64* %69, i32 %58)
br label LBL_5
LBL_4:
%71 = add i32 %35, 1
%72 = call i64* @malloc(i32 %71)
%73 = ptrtoint i64* %72 to i64
%74 = add i64 %23, 8
%75 = inttoptr i64 %74 to i64*
store i64 %73, i64* %75, align 8
%76 = load i64, i64* %24, align 8
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
%79 = inttoptr i64 %78 to i8*
%80 = call i32 @strlen(i8* %79)
%81 = add i32 %80, 1
%82 = load i64, i64* %24, align 8
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = load i64, i64* %75, align 8
%86 = inttoptr i64 %85 to i64*
%87 = inttoptr i64 %84 to i64*
%88 = call i64* @memcpy(i64* %86, i64* %87, i32 %81)
br label LBL_5
LBL_5:
%89 = load i64, i64* %24, align 8
%90 = add i64 %89, 8
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = icmp eq i64 %92, 0
store i64 %89, i64* %.reg2mem9
br i1 %93, label LBL_7, label LBL_6
LBL_6:
%94 = add i64 %23, 8
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = call i64 @FUNC(i64 %1, i64 %96, i64 %92)
%.pre = load i64, i64* %24, align 8
store i64 %.pre, i64* %.reg2mem9
br label LBL_7
LBL_7:
%.reload10 = load i64, i64* %.reg2mem9
%98 = add i64 %.reload10, 16
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = icmp eq i64 %102, 0
br i1 %103, label LBL_9, label LBL_8
LBL_8:
%104 = load i64, i64* %sv_0, align 8
%105 = call i64 @FUNC(i64 %104, i64 %23, i64 0)
br label LBL_10
LBL_9:
%106 = add i64 %23, 8
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = inttoptr i64 %108 to i64*
call void @free(i64* %109)
call void @free(i64* %22)
br label LBL_10
LBL_10:
%110 = add i64 %storemerge3.reload, 8
%storemerge.in = inttoptr i64 %110 to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%111 = icmp eq i64 %storemerge, 0
%112 = icmp eq i1 %111, false
store i64 %storemerge, i64* %storemerge3.reg2mem
br i1 %112, label LBL_2, label LBL_11
LBL_11:
%113 = load i64, i64* %21, align 8
%114 = inttoptr i64 %113 to i64*
call void @free(i64* %114)
call void @free(i64* %16)
%115 = load i64, i64* %sv_0, align 8
%116 = inttoptr i64 %115 to i64*
%117 = load i64, i64* %116, align 8
%118 = icmp eq i64 %117, 0
%119 = icmp eq i1 %118, false
store i64 %117, i64* %.reg2mem
store i64 %115, i64* %.reg2mem7
br i1 %119, label LBL_1, label LBL_12
LBL_12:
%120 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 %120
uselistorder i32 %35, { 1, 0 }
uselistorder i64* %24, { 0, 3, 4, 5, 1, 2, 6, 7 }
uselistorder i64 %23, { 3, 2, 1, 4, 0 }
uselistorder i64* %21, { 0, 1, 3, 2, 4, 5 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem7, { 2, 0, 1 }
uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem9, { 0, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 5, 3, 2, 1, 0, 4 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder void (i64*)* @free, { 3, 2, 5, 4, 1, 0 }
uselistorder i1 false, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @comps_hslist_append, { 1, 0 }
uselistorder i64* (i32)* @malloc, { 5, 4, 0, 3, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.