dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | doc_write_oob_7593 | doc_write_oob | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.off0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.028.reg2mem = alloca i64
%sv_1.229.reg2mem = alloca i64
%sv_3.030.reg2mem = alloca i64
%sv_4.031.reg2mem = alloca i32
%sv_0.1.off032.reg2mem = alloca i64
%sv_5.0.off0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%storemerge21.off0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32*
%storemerge8.reg2mem = alloca i32
%rdx = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%sv_6 = alloca i64, align 8
%3 = add i64 %2, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %2, 40
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i32 0, i32* %storemerge8.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %12 to i32
store i32 %13, i32* %storemerge8.reg2mem
br label LBL_2
LBL_2:
%14 = trunc i64 %1 to i32
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%15 = icmp eq i64 %5, 0
br i1 %15, label LBL_2.LBL_6_crit_edge, label LBL_4
LBL_3:
%.pre = bitcast i64* %rdx to i32*
store i32* %.pre, i32** %.pre-phi.reg2mem
store i64 0, i64* %storemerge21.off0.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_4:
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = bitcast i64* %rdx to i32*
%20 = icmp eq i32 %14, 0
%21 = icmp eq i1 %20, false
store i32* %19, i32** %.pre-phi.reg2mem
store i64 %18, i64* %storemerge21.off0.reg2mem
store i64 %5, i64* %sv_1.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %2, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %24, %5
store i32* %19, i32** %.pre-phi.reg2mem
store i64 %18, i64* %storemerge21.off0.reg2mem
store i64 %25, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%26 = ptrtoint i64* %arg1 to i64
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%storemerge21.off0.reload = load i64, i64* %storemerge21.off0.reg2mem
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%27 = sext i32 %storemerge8.reload to i64
%28 = call i64 @FUNC(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i32 %14, i64 %8, i64 %27, i64 %sv_1.0.reload)
%29 = icmp sgt i32 %14, 1
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = icmp slt i32 %14, 0
%31 = icmp eq i1 %30, false
store i64 0, i64* %sv_5.0.off0.reg2mem
br i1 %31, label LBL_9, label LBL_11
LBL_8:
%32 = icmp eq i32 %14, 2
store i64 0, i64* %sv_5.0.off0.reg2mem
br i1 %32, label LBL_10, label LBL_11
LBL_9:
%33 = add i64 %26, 16
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%extract.t9 = sext i32 %35 to i64
store i64 %extract.t9, i64* %sv_5.0.off0.reg2mem
br label LBL_11
LBL_10:
%36 = add i64 %26, 24
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%extract.t = sext i32 %40 to i64
store i64 %extract.t, i64* %sv_5.0.off0.reg2mem
br label LBL_11
LBL_11:
%41 = urem i32 %storemerge8.reload, 2048
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %43, label LBL_32, label LBL_12
LBL_12:
%sv_5.0.off0.reload = load i64, i64* %sv_5.0.off0.reg2mem
%44 = urem i64 %storemerge21.off0.reload, %sv_5.0.off0.reload
%45 = urem i64 %arg2, 2048
%46 = or i64 %44, %45
%47 = icmp eq i64 %46, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %47, label LBL_13, label LBL_32
LBL_13:
%48 = icmp eq i32 %storemerge8.reload, 0
%49 = icmp eq i64 %storemerge21.off0.reload, 0
%or.cond16 = or i1 %48, %49
br i1 %or.cond16, label LBL_15, label LBL_14
LBL_14:
%50 = udiv i64 %27, 2048
%51 = udiv i64 %storemerge21.off0.reload, %sv_5.0.off0.reload
%52 = icmp eq i64 %50, %51
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %52, label LBL_15, label LBL_32
LBL_15:
%53 = add i64 %27, %arg2
%54 = add i64 %26, 8
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = icmp ugt i64 %53, %56
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %57, label LBL_32, label LBL_16
LBL_16:
%58 = add i64 %2, 48
%59 = inttoptr i64 %58 to i64*
store i64 0, i64* %59, align 8
%60 = add i64 %2, 56
%61 = inttoptr i64 %60 to i64*
store i64 0, i64* %61, align 8
%62 = icmp eq i1 %48, false
br i1 %62, label LBL_19, label LBL_17
LBL_17:
%63 = icmp eq i1 %49, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %63, label LBL_18, label LBL_32
LBL_18:
%64 = call i64 @FUNC(i64 %26, i64 %arg2, i64 %2)
store i64 %64, i64* %rax.0.reg2mem
br label LBL_32
LBL_19:
%65 = call i64 @FUNC(i64 %2)
%66 = trunc i64 %65 to i32
%67 = icmp slt i32 %66, 0
%68 = icmp eq i1 %67, false
br i1 %68, label LBL_21, label LBL_20
LBL_20:
%69 = and i64 %65, 4294967295
store i64 %69, i64* %rax.0.reg2mem
br label LBL_32
LBL_21:
%70 = add i64 %26, 72
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = call i64 @FUNC(i64 %72)
%74 = ptrtoint i64* %sv_6 to i64
%75 = and i64 %65, 4294967295
store i64 %storemerge21.off0.reload, i64* %sv_0.1.off032.reg2mem
store i32 %storemerge8.reload, i32* %sv_4.031.reg2mem
store i64 %8, i64* %sv_3.030.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.229.reg2mem
store i64 %arg2, i64* %sv_2.028.reg2mem
br label LBL_22
LBL_22:
%sv_2.028.reload = load i64, i64* %sv_2.028.reg2mem
%sv_1.229.reload = load i64, i64* %sv_1.229.reg2mem
%sv_3.030.reload = load i64, i64* %sv_3.030.reg2mem
%sv_4.031.reload = load i32, i32* %sv_4.031.reg2mem
%sv_0.1.off032.reload = load i64, i64* %sv_0.1.off032.reg2mem
%76 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 64)
%77 = icmp eq i64 %sv_2.028.reload, %74
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_24, label LBL_23
LBL_23:
%79 = load i64, i64* %55, align 8
store i64 %79, i64* %sv_6, align 8
br label LBL_28
LBL_24:
%cond = icmp eq i64 %sv_0.1.off032.reload, 0
br i1 %cond, label LBL_28, label LBL_25
LBL_25:
%80 = load i32, i32* %.pre-phi.reload, align 8
%81 = icmp eq i32 %80, 2
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_27, label LBL_26
LBL_26:
%83 = call i64 @FUNC(i64* nonnull %sv_6, i64 %sv_1.229.reload)
br label LBL_28
LBL_27:
%84 = inttoptr i64 %sv_1.229.reload to i64*
%85 = load i64, i64* %84, align 8
store i64 %85, i64* %sv_6, align 8
br label LBL_28
LBL_28:
%86 = call i64 @FUNC(i64 %26, i64 %sv_2.028.reload, i64 %sv_3.030.reload, i64* nonnull %sv_6, i64 %75)
%87 = icmp eq i64 %sv_0.1.off032.reload, 0
store i64 %sv_1.229.reload, i64* %sv_1.1.reg2mem
store i64 0, i64* %sv_0.0.off0.reg2mem
br i1 %87, label LBL_30, label LBL_29
LBL_29:
%88 = add i64 %sv_1.229.reload, %sv_5.0.off0.reload
%89 = sub i64 %sv_0.1.off032.reload, %sv_5.0.off0.reload
%90 = load i64, i64* %59, align 8
%91 = add i64 %90, %sv_5.0.off0.reload
store i64 %91, i64* %59, align 8
store i64 %88, i64* %sv_1.1.reg2mem
store i64 %89, i64* %sv_0.0.off0.reg2mem
br label LBL_30
LBL_30:
%92 = trunc i64 %86 to i32
%93 = add i64 %sv_2.028.reload, 2048
%94 = add i32 %sv_4.031.reload, -2048
%95 = add i64 %sv_3.030.reload, 2048
%sv_0.0.off0.reload = load i64, i64* %sv_0.0.off0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%96 = load i64, i64* %61, align 8
%97 = add i64 %96, 2048
store i64 %97, i64* %61, align 8
%98 = icmp eq i32 %92, 0
%99 = icmp eq i32 %94, 0
%100 = icmp eq i1 %99, false
%or.cond20 = icmp eq i1 %100, %98
store i64 %sv_0.0.off0.reload, i64* %sv_0.1.off032.reg2mem
store i32 %94, i32* %sv_4.031.reg2mem
store i64 %95, i64* %sv_3.030.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.229.reg2mem
store i64 %93, i64* %sv_2.028.reg2mem
br i1 %or.cond20, label LBL_22, label LBL_31
LBL_31:
%phitmp = and i64 %86, 4294967295
%101 = call i64 @FUNC(i64 %26, i64 0)
%102 = load i64, i64* %71, align 8
%103 = call i64 @FUNC(i64 %102)
store i64 %phitmp, 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 i64 %sv_0.1.off032.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.229.reload, { 3, 0, 2, 1 }
uselistorder i64 %sv_2.028.reload, { 1, 0, 2 }
uselistorder i64* %61, { 1, 0, 2 }
uselistorder i64* %59, { 1, 0, 2 }
uselistorder i64 %sv_5.0.off0.reload, { 4, 0, 3, 2, 1 }
uselistorder i64 %27, { 1, 0, 2 }
uselistorder i64 %storemerge21.off0.reload, { 0, 1, 3, 2 }
uselistorder i64 %26, { 3, 2, 4, 1, 5, 6, 0 }
uselistorder i32* %19, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i32 %storemerge8.reload, { 0, 2, 3, 1 }
uselistorder i32 %14, { 2, 1, 0, 3, 4 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %sv_6, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 %2, { 4, 3, 5, 6, 2, 1, 0, 7, 8 }
uselistorder i64* %rdx, { 1, 0 }
uselistorder i32* %storemerge8.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge21.off0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_5.0.off0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %sv_0.1.off032.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.031.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.030.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.229.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.028.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 1, 2, 3, 5, 4 }
uselistorder i64 2048, { 2, 3, 4, 0, 1 }
uselistorder i64 4294967274, { 0, 1, 2, 4, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 %arg2, { 0, 3, 2, 1, 4 }
uselistorder label LBL_32, { 5, 6, 7, 0, 1, 2, 4, 3 }
uselistorder label LBL_28, { 1, 2, 0, 3 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_11, { 2, 3, 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vmsvga_fifo_empty_15516 | vmsvga_fifo_empty | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 1, i64* %storemerge.reg2mem
br i1 %9, label LBL_2, label LBL_3
LBL_2:
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %12, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %14, %17
%19 = zext i1 %18 to i64
store i64 %19, 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, 3, 2, 1 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | iniparser_getboolean_6900 | iniparser_getboolean | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = call i64 @FUNC(i64 %1, i64 %0, i64 0)
%4 = icmp eq i64 %3, 0
store i64 %2, i64* %storemerge.in.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = inttoptr i64 %3 to i8*
%6 = load i8, i8* %5, align 1
store i64 1, i64* %storemerge.in.reg2mem
store i64 1, i64* %storemerge.in.reg2mem
store i64 1, i64* %storemerge.in.reg2mem
store i64 1, i64* %storemerge.in.reg2mem
switch i8 %6, label LBL_2 [
i8 121, label LBL_5
i8 89, label LBL_5
i8 49, label LBL_5
i8 116, label LBL_5
]
LBL_2:
%7 = icmp eq i8 %6, 84
%8 = icmp eq i1 %7, false
store i64 1, i64* %storemerge.in.reg2mem
br i1 %8, label LBL_3, label LBL_5
LBL_3:
store i64 0, i64* %storemerge.in.reg2mem
store i64 0, i64* %storemerge.in.reg2mem
store i64 0, i64* %storemerge.in.reg2mem
store i64 0, i64* %storemerge.in.reg2mem
switch i8 %6, label LBL_4 [
i8 110, label LBL_5
i8 78, label LBL_5
i8 48, label LBL_5
i8 102, label LBL_5
]
LBL_4:
%9 = icmp eq i8 %6, 70
%10 = icmp eq i1 %9, false
%spec.select = select i1 %10, i64 %2, i64 0
store i64 %spec.select, i64* %storemerge.in.reg2mem
br label LBL_5
LBL_5:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i8 %6, { 2, 0, 3, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder label LBL_5, { 0, 6, 7, 8, 9, 5, 1, 2, 3, 4, 10 }
} | 0 |
BinRealVul | caml_bitvect_test_13504 | caml_bitvect_test | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ashr i64 %arg2, 3
%1 = add i64 %0, %arg1
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = trunc i64 %arg2 to i32
%5 = urem i32 %4, 8
%6 = shl i32 1, %5
%7 = zext i8 %3 to i32
%8 = and i32 %6, %7
%9 = zext i32 %8 to i64
ret i64 %9
} | 0 |
BinRealVul | svm_handle_exit_irqoff_5958 | svm_handle_exit_irqoff | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = icmp eq i32 %5, 1
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
store i8 1, i8* %arg1, align 1
store i64 %0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | rose_start_idletimer_11902 | rose_start_idletimer | 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 = call i64 @FUNC(i64 %1)
%3 = add i64 %1, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = inttoptr i64 %1 to i64*
store i64 4198698, i64* %7, align 8
%8 = load i64, i64* %4, align 8
%9 = load i64, i64* @gv_0, align 8
%10 = add i64 %9, %8
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = call i64 @FUNC(i64 %1)
store i64 %13, 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 | compliance_mode_recovery_timer_quirk_check_17700 | compliance_mode_recovery_timer_quirk_check | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
%1 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0))
%2 = inttoptr i64 %1 to i8*
%3 = call i8* @strstr(i8* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
%4 = icmp eq i8* %3, null
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = inttoptr i64 %0 to i8*
%7 = call i8* @strstr(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = call i8* @strstr(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0))
%11 = icmp eq i8* %10, null
%12 = icmp eq i1 %11, false
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i8* @strstr(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0))
%14 = icmp ne i8* %13, null
%spec.select = zext i1 %14 to i64
ret i64 %spec.select
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i8* (i8*, i8*)* @strstr, { 3, 2, 1, 0 }
uselistorder i64 (i8*)* @dmi_get_system_info, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | printDefineFont2_12437 | printDefineFont2 | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%storemerge29.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv20.reg2mem = alloca i64
%indvars.iv24.reg2mem = alloca i64
%indvars.iv28.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%indvars.iv32.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = urem i32 %3, 256
%5 = call i64 @FUNC()
%6 = inttoptr i64 %5 to i8*
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* %6)
%8 = icmp eq i32 %4, 0
%9 = icmp eq i1 %8, false
store i32 %4, i32* %sv_0.018.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%sv_0.018.reload = load i32, i32* %sv_0.018.reg2mem
%10 = call i64 @FUNC(i64 %arg1)
%11 = trunc i64 %10 to i32
%12 = urem i32 %11, 256
%13 = call i32 @putchar(i32 %12)
%14 = add i32 %sv_0.018.reload, -1
%15 = icmp eq i32 %14, 0
%16 = icmp slt i32 %14, 0
%17 = icmp eq i1 %16, false
%18 = icmp eq i1 %15, false
%19 = icmp eq i1 %17, %18
store i32 %14, i32* %sv_0.018.reg2mem
br i1 %19, label LBL_1, label LBL_2
LBL_2:
%20 = trunc i64 %0 to i32
%21 = call i32 @putchar(i32 10)
%22 = call i64 @FUNC(i64 %arg1)
%23 = trunc i64 %22 to i32
%24 = urem i32 %23, 65536
%25 = call i64 @FUNC()
%26 = zext i32 %24 to i64
%27 = inttoptr i64 %25 to i8*
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %27, i64 %26)
%29 = mul i32 %24, 4
%30 = call i64* @malloc(i32 %29)
%31 = ptrtoint i64* %30 to i64
%32 = urem i32 %20, 2
%33 = icmp eq i32 %32, 0
%34 = add nuw nsw i32 %24, 1
%wide.trip.count34 = zext i32 %34 to i64
store i64 0, i64* %indvars.iv32.reg2mem
br label LBL_3
LBL_3:
%indvars.iv32.reload = load i64, i64* %indvars.iv32.reg2mem
br i1 %33, label LBL_5, label LBL_4
LBL_4:
%35 = call i64 @FUNC(i64 %arg1)
%36 = trunc i64 %35 to i32
store i32 %36, i32* %storemerge8.reg2mem
br label LBL_6
LBL_5:
%37 = call i64 @FUNC(i64 %arg1)
%38 = trunc i64 %37 to i32
%39 = urem i32 %38, 65536
store i32 %39, i32* %storemerge8.reg2mem
br label LBL_6
LBL_6:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%40 = sub i32 %storemerge8.reload, %29
%41 = add i32 %40, -4
%42 = mul i64 %indvars.iv32.reload, 4
%43 = add i64 %42, %31
%44 = inttoptr i64 %43 to i32*
store i32 %41, i32* %44, align 4
%45 = call i64 @FUNC()
%46 = zext i32 %41 to i64
%47 = inttoptr i64 %45 to i8*
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i8* %47, i64 %indvars.iv32.reload, i64 %46)
%indvars.iv.next33 = add nuw nsw i64 %indvars.iv32.reload, 1
%exitcond35 = icmp eq i64 %indvars.iv.next33, %wide.trip.count34
store i64 %indvars.iv.next33, i64* %indvars.iv32.reg2mem
br i1 %exitcond35, label LBL_7, label LBL_3
LBL_7:
%49 = icmp eq i32 %24, 0
store i64 0, i64* %indvars.iv28.reg2mem
br i1 %49, label LBL_16, label LBL_8
LBL_8:
%indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem
%50 = call i64 @FUNC()
%51 = call i64 @FUNC()
%52 = inttoptr i64 %51 to i8*
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i8* %52, i64 %indvars.iv28.reload)
%54 = call i64 @FUNC(i64 %arg1, i64 4)
%55 = trunc i64 %54 to i32
store i32 %55, i32* %sv_2, align 4
%56 = call i64 @FUNC(i64 %arg1, i64 4)
%57 = trunc i64 %56 to i32
store i32 %57, i32* %sv_1, align 4
%58 = call i64 @FUNC()
br label LBL_9
LBL_9:
%59 = call i64 @FUNC(i64 %arg1, i32* nonnull %sv_2, i32* nonnull %sv_1, i64 2)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_9, label LBL_10
LBL_10:
%63 = call i32 @putchar(i32 10)
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1
%exitcond31 = icmp eq i64 %indvars.iv.next29, %26
store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem
br i1 %exitcond31, label LBL_11, label LBL_8
LBL_11:
%64 = and i32 %20, 2
%65 = icmp eq i32 %64, 0
store i64 0, i64* %indvars.iv24.reg2mem
br label LBL_12
LBL_12:
%indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem
br i1 %65, label LBL_14, label LBL_13
LBL_13:
%66 = call i64 @FUNC(i64 %arg1)
%67 = call i64 @FUNC()
%68 = urem i64 %66, 65536
%69 = inttoptr i64 %67 to i8*
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %69, i64 %indvars.iv24.reload, i64 %68)
br label LBL_15
LBL_14:
%71 = call i64 @FUNC(i64 %arg1)
%72 = call i64 @FUNC()
%73 = urem i64 %71, 256
%74 = inttoptr i64 %72 to i8*
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %74, i64 %indvars.iv24.reload, i64 %73)
br label LBL_15
LBL_15:
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1
%exitcond27 = icmp eq i64 %indvars.iv.next25, %26
store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem
br i1 %exitcond27, label LBL_16, label LBL_12
LBL_16:
%76 = and i32 %20, 4
%77 = icmp eq i32 %76, 0
br i1 %77, label LBL_26, label LBL_17
LBL_17:
%78 = call i64 @FUNC(i64 %arg1)
%79 = call i64 @FUNC()
%80 = and i64 %78, 4294967295
%81 = inttoptr i64 %79 to i8*
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i8* %81, i64 %80)
%83 = call i64 @FUNC(i64 %arg1)
%84 = call i64 @FUNC()
%85 = and i64 %83, 4294967295
%86 = inttoptr i64 %84 to i8*
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_6, i64 0, i64 0), i8* %86, i64 %85)
%88 = call i64 @FUNC(i64 %arg1)
%89 = call i64 @FUNC()
%90 = and i64 %88, 4294967295
%91 = inttoptr i64 %89 to i8*
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_7, i64 0, i64 0), i8* %91, i64 %90)
store i64 0, i64* %indvars.iv20.reg2mem
br i1 %49, label LBL_20, label LBL_18
LBL_18:
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%93 = call i64 @FUNC(i64 %arg1)
%94 = and i64 %93, 4294967295
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 %indvars.iv20.reload, i64 %94)
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%exitcond23 = icmp eq i64 %indvars.iv.next21, %26
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond23, label LBL_19, label LBL_18
LBL_19:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%96 = call i64 @FUNC()
%97 = inttoptr i64 %96 to i8*
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_9, i64 0, i64 0), i8* %97, i64 %indvars.iv.reload)
%99 = call i64 @FUNC(i64 %arg1)
%100 = call i32 @putchar(i32 10)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond19 = icmp eq i64 %indvars.iv.next, %26
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond19, label LBL_20, label LBL_19
LBL_20:
%101 = call i64 @FUNC(i64 %arg1)
%102 = trunc i64 %101 to i32
%103 = urem i32 %102, 65536
%104 = icmp eq i32 %103, 0
br i1 %104, label LBL_26, label LBL_21
LBL_21:
%105 = and i32 %20, 2
%106 = icmp eq i32 %105, 0
store i32 0, i32* %storemerge11.reg2mem
br label LBL_22
LBL_22:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
br i1 %106, label LBL_24, label LBL_23
LBL_23:
%107 = call i64 @FUNC(i64 %arg1)
%108 = urem i64 %107, 65536
%109 = call i64 @FUNC(i64 %arg1)
%110 = urem i64 %109, 65536
store i64 %108, i64* %storemerge29.reg2mem
store i64 %110, i64* %storemerge1.reg2mem
br label LBL_25
LBL_24:
%111 = call i64 @FUNC(i64 %arg1)
%112 = urem i64 %111, 256
%113 = call i64 @FUNC(i64 %arg1)
%114 = urem i64 %113, 256
store i64 %112, i64* %storemerge29.reg2mem
store i64 %114, i64* %storemerge1.reg2mem
br label LBL_25
LBL_25:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%storemerge29.reload = load i64, i64* %storemerge29.reg2mem
%115 = call i64 @FUNC(i64 %arg1)
%116 = call i64 @FUNC()
%117 = and i64 %115, 4294967295
%118 = inttoptr i64 %116 to i8*
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_10, i64 0, i64 0), i8* %118, i64 %storemerge29.reload, i64 %storemerge1.reload, i64 %117)
%120 = add nuw nsw i32 %storemerge11.reload, 1
%exitcond = icmp eq i32 %120, %103
store i32 %120, i32* %storemerge11.reg2mem
br i1 %exitcond, label LBL_26, label LBL_22
LBL_26:
%121 = call i32 @putchar(i32 10)
%122 = sext i32 %121 to i64
ret i64 %122
uselistorder i32 %103, { 1, 0 }
uselistorder i64 %indvars.iv24.reload, { 0, 2, 1 }
uselistorder i32 %29, { 1, 0 }
uselistorder i32 %24, { 2, 3, 0, 1 }
uselistorder i32 %20, { 2, 3, 1, 0 }
uselistorder i32* %sv_0.018.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv32.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv28.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv24.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv20.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge29.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64)* @readSInt16, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @readBits, { 1, 0 }
uselistorder i64 ()* @byteAlign, { 1, 0 }
uselistorder i64 1, { 4, 3, 2, 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i32 2, { 2, 1, 0, 3, 4 }
uselistorder i32 4, { 1, 0, 2 }
uselistorder i32 65536, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @readUInt16, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 10, { 2, 1, 0, 3 }
uselistorder i32 (i32)* @putchar, { 4, 3, 2, 0, 1 }
uselistorder i1 false, { 2, 3, 1, 0 }
uselistorder i32 0, { 0, 7, 1, 9, 8, 10, 2, 11, 12, 13, 3, 4, 5, 6 }
uselistorder i32 (i8*, ...)* @printf, { 11, 9, 8, 5, 4, 3, 7, 6, 2, 1, 0, 10 }
uselistorder i64 ()* @indent, { 10, 9, 6, 5, 4, 8, 7, 3, 2, 1, 0 }
uselistorder i64 (i64)* @readUInt8, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 24, 12, 19, 18, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 13, 20, 14, 21, 15, 22, 16, 17, 23 }
uselistorder i64 %arg1, { 2, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0, 1, 18, 19, 20, 21, 22 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | btif_config_save_12228 | btif_config_save | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_2, i64 0, i64 0), i32 18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0))
br label LBL_2
LBL_2:
%3 = load i64, i64* @gv_4, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_2, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0))
br label LBL_4
LBL_4:
%6 = load i64, i64* @gv_0, align 8
%7 = call i64 @FUNC(i64 %6, i64 1000, i64 4198694, i64 0)
ret i64 %7
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
} | 1 |
BinRealVul | drive_add_14994 | drive_add | define i64 @FUNC(i8* %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = call i64 @FUNC()
%22 = load i32, i32* @gv_0, align 4
%23 = icmp sgt i32 %22, 9
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = trunc i64 %21 to i32
%25 = icmp eq i32 %24, -1
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%28 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_2 to i64*), i32 1, i32 22, %_IO_FILE* %27)
call void @exit(i32 1)
unreachable
LBL_5:
%sext = mul i64 %21, 4294967296
%29 = ashr exact i64 %sext, 32
%30 = mul nsw i64 %29, 264
%31 = add i64 %30, ptrtoint (i64* @gv_3 to i64)
%32 = ptrtoint i8* %arg1 to i64
%33 = inttoptr i64 %31 to i64*
store i64 %32, i64* %33, align 8
store i32 16, i32* %sv_0, align 4
%34 = add i64 %30, add (i64 ptrtoint (i64* @gv_3 to i64), i64 8)
%35 = ptrtoint i32* %sv_0 to i64
%36 = inttoptr i64 %34 to i8*
%37 = call i32 @vsnprintf(i8* %36, i32 256, i8* %arg2, i64 %35)
store i32 ptrtoint (i32* @gv_4 to i32), i32* @gv_0, align 4
%38 = and i64 %21, 4294967295
ret i64 %38
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | graft_tree_10806 | graft_tree | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %4 to i32
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = xor i32 %13, %6
%15 = and i32 %14, 16384
%16 = icmp eq i32 %15, 0
store i64 4294967276, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_7
LBL_2:
%17 = add i64 %4, 8
%18 = inttoptr i64 %17 to i64*
%19 = call i32 @pthread_mutex_lock(i64* %18)
%20 = call i64 @FUNC(i64 %5, i64 %4)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i32 %21, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i64 %5, i64 %4, i64 0)
%25 = trunc i64 %24 to i32
store i32 %25, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%26 = call i32 @pthread_mutex_unlock(i64* %18)
%27 = icmp eq i32 %sv_0.0.reload, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %5, i64 %4)
br label LBL_6
LBL_6:
%30 = zext i32 %sv_0.0.reload to i64
store i64 %30, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %4, { 3, 2, 4, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | init_report_513 | init_report | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1.01231.reg2mem = alloca i32
%sv_0.11132.reg2mem = alloca i64
%sv_2 = alloca i8*, align 8
%sv_3 = alloca i8*, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
store i64 %arg1, i64* %sv_6, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_20
LBL_1:
%2 = bitcast i64* %sv_5 to i32*
%3 = call i32 @time(i32* nonnull %2)
%4 = call %tm* @localtime(i32* nonnull %2)
%5 = icmp eq i64 %arg1, 0
store i64 0, i64* %sv_0.18.reg2mem
br i1 %5, label LBL_13, label LBL_2
LBL_2:
%6 = ptrtoint i64* %sv_4 to i64
%7 = ptrtoint i8** %sv_3 to i64
%8 = bitcast i8** %sv_3 to i64*
%9 = inttoptr i64 %arg1 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %sv_0.11132.reg2mem
store i32 0, i32* %sv_1.01231.reg2mem
store i64 0, i64* %sv_0.18.reg2mem
br i1 %12, label LBL_3, label LBL_13
LBL_3:
%sv_1.01231.reload = load i32, i32* %sv_1.01231.reg2mem
%sv_0.11132.reload = load i64, i64* %sv_0.11132.reg2mem
%13 = call i64 @FUNC(i64* nonnull %sv_6, i64* nonnull @gv_1, i64* nonnull @gv_2, i64 0, i64* nonnull %8, i64* nonnull %sv_4)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%17 = icmp eq i32 %sv_1.01231.reload, 0
store i64 %sv_0.11132.reload, i64* %sv_0.18.reg2mem
store i64 %7, i64* %r8.1.reg2mem
store i64 %6, i64* %r9.1.reg2mem
br i1 %17, label LBL_13, label LBL_5
LBL_5:
%18 = and i64 %13, 4294967295
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0), i64 %19, i64 %7, i64 %6)
store i64 %sv_0.11132.reload, i64* %sv_0.18.reg2mem
store i64 %7, i64* %r8.1.reg2mem
store i64 %6, i64* %r9.1.reg2mem
br label LBL_13
LBL_6:
%21 = load i64, i64* %sv_6, align 8
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp eq i8 %23, 0
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = add i64 %21, 1
store i64 %25, i64* %sv_6, align 8
br label LBL_8
LBL_8:
%26 = load i8*, i8** %sv_3, align 8
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_10, label LBL_9
LBL_9:
%30 = call i64 @FUNC(i64 %sv_0.11132.reload)
%31 = load i64, i64* %sv_4, align 8
store i64 0, i64* %sv_4, align 8
store i64 0, i64* %.reg2mem
store i64 %31, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%32 = load i8*, i8** %sv_3, align 8
%33 = ptrtoint i8* %32 to i64
%34 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_5, i64 0, i64 0), i64 %33, i64 %7, i64 %6)
%.pre = load i64, i64* %sv_4, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %sv_0.11132.reload, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%35 = call i64 @FUNC(i64 %.reload)
%36 = load i8*, i8** %sv_3, align 8
%37 = ptrtoint i8* %36 to i64
%38 = call i64 @FUNC(i64 %37)
%39 = load i64, i64* %sv_6, align 8
%40 = icmp eq i64 %39, 0
store i64 %sv_0.0.reload, i64* %sv_0.18.reg2mem
store i64 %7, i64* %r8.1.reg2mem
store i64 %6, i64* %r9.1.reg2mem
br i1 %40, label LBL_13, label LBL_12
LBL_12:
%41 = add i32 %sv_1.01231.reload, 1
%42 = inttoptr i64 %39 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 0
%45 = icmp eq i1 %44, false
store i64 %sv_0.0.reload, i64* %sv_0.11132.reg2mem
store i32 %41, i32* %sv_1.01231.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.18.reg2mem
store i64 %7, i64* %r8.1.reg2mem
store i64 %6, i64* %r9.1.reg2mem
br i1 %45, label LBL_3, label LBL_13
LBL_13:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%sv_0.18.reload = load i64, i64* %sv_0.18.reg2mem
%46 = bitcast i8** %sv_2 to i64*
%47 = call i64 @FUNC(i64* nonnull %46, i64 0, i64 1)
%48 = call i64 @FUNC(i64 %sv_0.18.reload, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0))
%49 = ptrtoint %tm* %4 to i64
%50 = call i64 @FUNC(i64* nonnull %46, i64 %48, i64 %49)
%51 = call i64 @FUNC(i64 %sv_0.18.reload)
%52 = call i64 @FUNC(i64* nonnull %46)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_15, label LBL_14
LBL_14:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%56 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_7, i64 0, i64 0), i64 %48, i64 %r8.1.reload, i64 %r9.1.reload)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_20
LBL_15:
%57 = load i8*, i8** %sv_2, align 8
%58 = call %_IO_FILE* @fopen(i8* %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_8, i64 0, i64 0))
%59 = ptrtoint %_IO_FILE* %58 to i64
store i64 %59, i64* @gv_0, align 8
%60 = icmp eq %_IO_FILE* %58, null
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_17, label LBL_16
LBL_16:
%62 = call i32* @__errno_location()
%63 = load i32, i32* %62, align 4
%64 = call i8* @strerror(i32 %63)
%65 = ptrtoint i8* %64 to i64
%66 = load i8*, i8** %sv_2, align 8
%67 = ptrtoint i8* %66 to i64
%68 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_9, i64 0, i64 0), i64 %67, i64 %65, i64 %r9.1.reload)
%69 = call i32* @__errno_location()
%70 = load i32, i32* %69, align 4
%71 = sub i32 0, %70
%72 = zext i32 %71 to i64
store i64 %72, i64* %rax.0.reg2mem
br label LBL_20
LBL_17:
%73 = call i64 @FUNC(i64 4199277)
%74 = add i64 %49, 16
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = add i32 %76, 1
%78 = zext i32 %77 to i64
%79 = add i64 %49, 20
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i32 %81, 1900
%83 = load [16 x i8]*, [16 x i8]** @gv_10, align 8
%84 = ptrtoint [16 x i8]* %83 to i64
%85 = zext i32 %82 to i64
%86 = call i64 @FUNC(i64 0, i64 1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_11, i64 0, i64 0), i64 %84, i64 %85, i64 %78)
%87 = call i64 @FUNC()
%88 = trunc i64 %87 to i32
%89 = icmp slt i32 %88, 3
store i64 2, i64* %storemerge.reg2mem
br i1 %89, label LBL_19, label LBL_18
LBL_18:
%90 = call i64 @FUNC()
%phitmp = and i64 %90, 4294967295
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%91 = call i64 @FUNC(i64 %storemerge.reload)
%92 = call i64 @FUNC(i64* nonnull %46, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %49, { 1, 0, 2 }
uselistorder i64 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64 %sv_0.11132.reload, { 2, 3, 0, 1 }
uselistorder i64 %7, { 1, 0, 5, 2, 4, 3 }
uselistorder i64 %6, { 1, 0, 5, 2, 4, 3 }
uselistorder i64* %sv_6, { 1, 2, 3, 0, 4 }
uselistorder i64* %sv_4, { 0, 2, 3, 1, 4 }
uselistorder i8** %sv_3, { 3, 2, 1, 4, 0 }
uselistorder i8** %sv_2, { 1, 0, 2 }
uselistorder i64* %sv_0.11132.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.01231.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.18.reg2mem, { 0, 2, 1, 5, 6, 3, 4 }
uselistorder i64* %r8.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %r9.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 ()* @av_log_get_level, { 1, 0 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 (i64)* @av_free, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i1 false, { 1, 2, 5, 3, 4, 0, 6 }
uselistorder i8 0, { 3, 2, 0, 4, 1 }
uselistorder i32 1, { 13, 21, 19, 18, 17, 15, 16, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 14, 20, 1, 0 }
uselistorder label LBL_20, { 1, 2, 3, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 5, 4, 0, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | mov_read_close_16453 | mov_read_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem4 = alloca i64
%storemerge13.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%.pre = add i64 %arg1, 8
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = inttoptr i64 %.pre to i64*
%5 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge13.reg2mem
br label LBL_2
LBL_2:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = load i64, i64* %4, align 8
%7 = mul i64 %.reload, 8
%8 = add i64 %6, %7
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = add i32 %storemerge13.reload, 1
%13 = sext i32 %12 to i64
%14 = icmp sgt i64 %5, %13
store i64 %13, i64* %.reg2mem
store i32 %12, i32* %storemerge13.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_3:
%15 = inttoptr i64 %.pre to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_6, label LBL_4
LBL_4:
%18 = add i64 %arg1, 16
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %.reg2mem4
store i32 0, i32* %storemerge2.reg2mem
br label LBL_5
LBL_5:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload5 = load i64, i64* %.reg2mem4
%20 = load i64, i64* %19, align 8
%21 = mul i64 %.reload5, 8
%22 = add i64 %20, %21
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = add i32 %storemerge2.reload, 1
%27 = load i32, i32* %15, align 4
%28 = zext i32 %27 to i64
%29 = sext i32 %26 to i64
%30 = icmp slt i64 %29, %28
store i64 %29, i64* %.reg2mem4
store i32 %26, i32* %storemerge2.reg2mem
br i1 %30, label LBL_5, label LBL_6
LBL_6:
ret i64 0
uselistorder i32* %15, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem4, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i32 1, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | new_msym_18444 | new_msym | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge35.reg2mem = alloca i64
%storemerge3.lcssa10.reg2mem = alloca i64
%storemerge3.lcssa.reg2mem = alloca i64
%storemerge36.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 = icmp ult i64 %3, 256
%spec.select = select i1 %4, i64 %3, i64 256
%5 = icmp eq i64 %spec.select, 0
%.pre = trunc i64 %arg2 to i32
store i64 0, i64* %storemerge36.reg2mem
store i64 0, i64* %storemerge3.lcssa10.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%storemerge36.reload = load i64, i64* %storemerge36.reg2mem
%6 = mul i64 %storemerge36.reload, 4
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, %.pre
%11 = icmp eq i1 %10, false
store i64 %storemerge36.reload, i64* %storemerge35.reg2mem
br i1 %11, label LBL_2, label LBL_8
LBL_2:
%12 = icmp eq i32 %9, 0
store i64 %storemerge36.reload, i64* %storemerge3.lcssa.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add nuw nsw i64 %storemerge36.reload, 1
%14 = icmp ult i64 %13, %spec.select
store i64 %13, i64* %storemerge36.reg2mem
store i64 %13, i64* %storemerge3.lcssa.reg2mem
br i1 %14, label LBL_1, label LBL_4
LBL_4:
%storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem
%15 = icmp eq i64 %storemerge3.lcssa.reload, 256
%16 = icmp eq i1 %15, false
store i64 %storemerge3.lcssa.reload, i64* %storemerge3.lcssa10.reg2mem
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_6:
%storemerge3.lcssa10.reload = load i64, i64* %storemerge3.lcssa10.reg2mem
%18 = mul i64 %storemerge3.lcssa10.reload, 4
%19 = add i64 %18, %0
%20 = inttoptr i64 %19 to i32*
store i32 %.pre, i32* %20, align 4
%21 = load i64, i64* %2, align 8
%22 = icmp eq i64 %storemerge3.lcssa10.reload, %21
%23 = icmp eq i1 %22, false
store i64 %storemerge3.lcssa10.reload, i64* %storemerge35.reg2mem
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = add i64 %21, 1
store i64 %24, i64* %2, align 8
store i64 %storemerge3.lcssa10.reload, i64* %storemerge35.reg2mem
br label LBL_8
LBL_8:
%storemerge35.reload = load i64, i64* %storemerge35.reg2mem
ret i64 %storemerge35.reload
uselistorder i64 %storemerge36.reload, { 2, 1, 0, 3 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64* %2, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 1, 3 }
uselistorder i64* %storemerge36.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.lcssa10.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge35.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 256, { 2, 0, 1 }
uselistorder label LBL_8, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | H264SwDecMalloc_6231 | H264SwDecMalloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%.rhs.trunc = trunc i64 %arg2 to i32
%1 = udiv i32 -1, %.rhs.trunc
%2 = icmp ult i32 %1, %0
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%sext3 = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext3, 32
%sext = mul i64 %arg1, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = mul nsw i64 %3, %4
%6 = trunc i64 %5 to i32
%7 = call i64* @malloc(i32 %6)
%8 = ptrtoint i64* %7 to i64
store i64 %8, 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 }
} | 0 |
BinRealVul | jsi_ArrayFillCmd_5921 | jsi_ArrayFillCmd | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.4.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%rcx.32.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%rcx.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %arg3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %arg1, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0))
store i64 %14, i64* %rax.0.reg2mem
br label LBL_21
LBL_3:
%15 = call i128 @FUNC(i128 %3, i128 %3)
%16 = call i64 @FUNC(i128 %15)
store i64 %16, i64* %sv_3, align 8
%17 = call i128 @FUNC(i128 %15, i128 %15)
%18 = call i64 @FUNC(i128 %17)
store i64 %18, i64* %sv_2, align 8
%19 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 0)
%20 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 1)
%21 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 2)
%22 = load i64, i64* %8, align 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0))
store i64 %26, i64* %rax.0.reg2mem
br label LBL_21
LBL_5:
%27 = call i64 @FUNC(i64 %arg1, i64 %22)
%28 = trunc i64 %27 to i32
%29 = icmp eq i64 %20, 0
store i32 0, i32* %sv_1.1.reg2mem
store i64 %arg2, i64* %rcx.0.reg2mem
br i1 %29, label LBL_9, label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64 %arg1, i64 %20, i64* nonnull %sv_3)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_7, label LBL_21
LBL_7:
%33 = load i64, i64* %sv_3, align 8
%34 = call i128 @__asm_movsd.1(i64 %33)
%35 = call i32 @FUNC(i128 %34)
%36 = icmp sgt i32 %35, %28
store i64 %20, i64* %rcx.4.reg2mem
br i1 %36, label LBL_19, label LBL_8
LBL_8:
%37 = icmp slt i32 %35, 0
%38 = icmp eq i1 %37, false
%39 = select i1 %38, i32 0, i32 %28
%spec.select = add i32 %39, %35
%40 = icmp slt i32 %spec.select, 0
store i32 %spec.select, i32* %sv_1.1.reg2mem
store i64 %20, i64* %rcx.0.reg2mem
store i64 %20, i64* %rcx.4.reg2mem
br i1 %40, label LBL_19, label LBL_9
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%41 = icmp eq i32 %28, 0
store i64 %rcx.0.reload, i64* %rcx.4.reg2mem
br i1 %41, label LBL_19, label LBL_10
LBL_10:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%42 = add i32 %28, -1
%43 = icmp eq i64 %21, 0
store i32 %42, i32* %sv_0.2.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %43, label LBL_13, label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %arg1, i64 %21, i64* nonnull %sv_2)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %46, label LBL_12, label LBL_21
LBL_12:
%47 = load i64, i64* %sv_2, align 8
%48 = call i128 @__asm_movsd.1(i64 %47)
%49 = call i32 @FUNC(i128 %48)
%50 = icmp slt i32 %49, %28
%spec.select1 = select i1 %50, i32 %49, i32 %42
%51 = icmp slt i32 %spec.select1, 0
%52 = icmp eq i1 %51, false
%53 = select i1 %52, i32 0, i32 %28
%sv_0.1 = add i32 %53, %spec.select1
%54 = icmp slt i32 %sv_0.1, 0
store i32 %sv_0.1, i32* %sv_0.2.reg2mem
store i64 %21, i64* %rcx.1.reg2mem
store i64 %21, i64* %rcx.4.reg2mem
br i1 %54, label LBL_19, label LBL_13
LBL_13:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%55 = sub i32 1, %sv_1.1.reload
%56 = add i32 %55, %sv_0.2.reload
%57 = icmp slt i32 %56, 1
%58 = icmp sgt i32 %sv_1.1.reload, %sv_0.2.reload
%or.cond = or i1 %58, %57
store i64 %rcx.1.reload, i64* %rcx.4.reg2mem
br i1 %or.cond, label LBL_19, label LBL_14
LBL_14:
%59 = add i64 %22, 8
%60 = inttoptr i64 %59 to i64*
store i32 %sv_1.1.reload, i32* %storemerge3.reg2mem
store i64 %rcx.1.reload, i64* %rcx.32.reg2mem
br label LBL_15
LBL_15:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%61 = load i64, i64* %60, align 8
%62 = sext i32 %storemerge3.reload to i64
%63 = mul i64 %62, 8
%64 = add i64 %61, %63
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = icmp eq i64 %66, 0
br i1 %67, label LBL_17, label LBL_16
LBL_16:
%68 = call i64 @FUNC(i64 %arg1, i64 %66, i64 %19)
store i64 %66, i64* %rcx.2.reg2mem
br label LBL_18
LBL_17:
%rcx.32.reload = load i64, i64* %rcx.32.reg2mem
%69 = call i64 @FUNC(i64 %arg1, i64 %19)
store i64 %69, i64* %65, align 8
store i64 %rcx.32.reload, i64* %rcx.2.reg2mem
br label LBL_18
LBL_18:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%70 = add i32 %storemerge3.reload, 1
%71 = icmp sgt i32 %70, %sv_0.2.reload
store i32 %70, i32* %storemerge3.reg2mem
store i64 %rcx.2.reload, i64* %rcx.32.reg2mem
store i64 %rcx.2.reload, i64* %rcx.4.reg2mem
br i1 %71, label LBL_19, label LBL_15
LBL_19:
%rcx.4.reload = load i64, i64* %rcx.4.reg2mem
%72 = icmp eq i64 %rcx.4.reload, %arg3
store i64 0, i64* %rax.0.reg2mem
br i1 %72, label LBL_21, label LBL_20
LBL_20:
%73 = call i64 @FUNC(i64 %arg1, i64 %rcx.4.reload, i64 %arg3)
store i64 0, 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 i32 %sv_0.2.reload, { 0, 2, 1 }
uselistorder i64 %rcx.1.reload, { 1, 0 }
uselistorder i32 %42, { 1, 0 }
uselistorder i64 %rcx.0.reload, { 1, 0 }
uselistorder i32 %28, { 0, 3, 5, 4, 1, 2 }
uselistorder i64 %21, { 0, 1, 3, 2 }
uselistorder i64 %20, { 0, 2, 1, 4, 3 }
uselistorder i64 %19, { 1, 0 }
uselistorder i128 %15, { 2, 1, 0 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.32.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.4.reg2mem, { 0, 1, 5, 4, 6, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i64 (i64, i64, i64*)* @Jsi_GetNumberFromValue, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @Jsi_ValueArrayIndex, { 2, 1, 0 }
uselistorder i64 (i8*)* @Jsi_LogError, { 1, 0 }
uselistorder i32 0, { 3, 1, 4, 5, 6, 7, 2, 8, 9, 0, 10, 11 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder i64 %arg2, { 0, 3, 2, 1 }
uselistorder i64 %arg1, { 4, 3, 2, 1, 0, 5, 8, 7, 6, 9 }
uselistorder label LBL_21, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_15, { 1, 0 }
} | 0 |
BinRealVul | r_asm_pseudo_incbin_12970 | r_asm_pseudo_incbin | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
%0 = call i64 @FUNC(i64 %arg2, i64 44, i64 32)
%1 = call i64 @FUNC(i64 %arg2)
%2 = call i64 @FUNC(i64 %arg2, i64 1)
%3 = call i64 @FUNC(i64 0, i64 %2)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %arg2, i64 2)
%6 = call i64 @FUNC(i64 0, i64 %5)
%7 = call i64 @FUNC(i64 %arg2, i32* nonnull %sv_1)
%8 = icmp slt i32 %4, 1
%.pre = load i32, i32* %sv_1, align 4
store i32 %4, i32* %sv_0.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = sub i32 %4, %.pre
%10 = xor i32 %.pre, %4
%11 = xor i32 %9, %4
%12 = and i32 %11, %10
%13 = icmp slt i32 %12, 0
%14 = icmp eq i32 %9, 0
%15 = icmp slt i32 %9, 0
%16 = icmp ne i1 %15, %13
%17 = or i1 %14, %16
%18 = select i1 %17, i32 %4, i32 %.pre
store i32 %18, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%19 = trunc i64 %6 to i32
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%20 = icmp slt i32 %19, 1
store i32 %.pre, i32* %storemerge1.reg2mem
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = zext i32 %.pre to i64
%sext = mul i64 %6, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = icmp sgt i64 %22, %21
%storemerge = select i1 %23, i32 0, i32 %19
store i32 %storemerge, i32* %storemerge1.reg2mem
br label LBL_4
LBL_4:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%24 = call i64 @FUNC(i64 %arg2)
%25 = sext i32 %sv_0.0.reload to i64
%26 = add i64 %7, %25
%27 = call i64 @FUNC(i64 %26)
store i64 %27, i64* %arg1, align 8
%28 = inttoptr i64 %7 to i64*
call void @free(i64* %28)
%29 = zext i32 %storemerge1.reload to i64
ret i64 %29
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %9, { 1, 2, 0 }
uselistorder i32 %.pre, { 2, 0, 4, 1, 3 }
uselistorder i64 %7, { 1, 0 }
uselistorder i32 %4, { 4, 1, 2, 3, 0, 5 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i64)* @r_num_math, { 1, 0 }
uselistorder i64 (i64, i64)* @r_str_word_get0, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder i32 0, { 2, 7, 8, 9, 6, 3, 4, 5, 0, 1 }
uselistorder i64 %arg2, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | av_packet_new_side_data_4355 | av_packet_new_side_data | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sext2 = mul i64 %arg3, 4294967296
%0 = ashr exact i64 %sext2, 32
%1 = trunc i64 %0 to i32
%.off = add i32 %1, -1
%2 = icmp ult i32 %.off, 2147483615
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%sext3 = add i64 %sext2, 137438953472
%3 = ashr exact i64 %sext3, 32
%4 = call i64 @FUNC(i64 %3)
store i64 %4, i64* %sv_0, align 8
%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_4
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %4, %0
%9 = inttoptr i64 %8 to i64*
%10 = call i64* @memset(i64* %9, i32 0, i32 32)
%11 = and i64 %0, 4294967295
%12 = trunc i64 %arg2 to i32
%13 = call i64 @FUNC(i64 %7, i32 %12, i64 %4, i64 %11)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 0, 2, 1, 3, 4 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 %sext2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | nfc_register_device_12507 | nfc_register_device | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64* nonnull @gv_1)
store i32 ptrtoint (i32* @gv_2 to i32), i32* bitcast (i64* @gv_3 to i32*), align 8
%9 = call i64 @FUNC(i64 %5)
%10 = trunc i64 %9 to i32
%11 = call i64 @FUNC(i64* nonnull @gv_1)
%12 = icmp slt i32 %10, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = and i64 %9, 4294967295
store i64 %14, i64* %storemerge.reg2mem
br label LBL_9
LBL_2:
%15 = call i64 @FUNC(i64 %5)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_4, i64 0, i64 0), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
br label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %5)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %5)
%23 = call i64 @FUNC(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_5, i64 0, i64 0), i64 %22, i64 %3, i64 %4, i64 %2, i64 %1)
br label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %5)
%25 = call i64 @FUNC(i64 %24, i64 %5, i64 1, i64 4199221, i64 %5)
%26 = add i64 %5, 8
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
%28 = icmp eq i64 %25, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_9, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %25)
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 0, i64* %storemerge.reg2mem
br i1 %32, label LBL_9, label LBL_8
LBL_8:
%33 = load i64, i64* %27, align 8
%34 = call i64 @FUNC(i64 %33)
store i64 0, i64* %27, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %27, { 1, 0, 2 }
uselistorder i64 %25, { 1, 0, 2 }
uselistorder i64 %5, { 4, 3, 1, 2, 0, 5, 6, 7, 8 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %1, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_debug, { 1, 0 }
uselistorder i64 (i64)* @dev_name, { 2, 1, 0 }
uselistorder label LBL_9, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | reap_them_all_4345 | reap_them_all | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%.reg2mem55 = alloca i32
%.reg2mem53 = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem51 = alloca i32
%rcx.0.reg2mem = alloca i64
%rsi.6.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%rsi.5.lcssa.reg2mem = alloca i64
%rsi.4.reg2mem = alloca i64
%.reg2mem49 = alloca i32
%.reg2mem47 = alloca i32
%.reg2mem45 = alloca i64
%rsi.57.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%.reg2mem43 = alloca i32
%.reg2mem41 = alloca i64
%rsi.3.lcssa.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%.reg2mem39 = alloca i32
%.reg2mem37 = alloca i32
%rsi.311.reg2mem = alloca i64
%storemerge212.reg2mem = alloca i32
%.reg2mem35 = alloca i32
%rsi.1.lcssa.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%.reg2mem33 = alloca i32
%.reg2mem31 = alloca i64
%rsi.114.reg2mem = alloca i64
%storemerge315.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%3 = load i32, i32* @gv_0, align 4
%4 = icmp eq i32 %3, 1
store i32 1, i32* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_24, label LBL_1
LBL_1:
%5 = load i32, i32* @gv_1, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i32 %5, i32* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_24, label LBL_2
LBL_2:
%11 = load i32, i32* @gv_2, align 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
store i32 1, i32* bitcast (i64* @gv_3 to i32*), align 8
br label LBL_5
LBL_4:
store i32 1, i32* @gv_0, align 4
br label LBL_5
LBL_5:
store i32 0, i32* %sv_0, align 4
%14 = load i64, i64* @gv_4, align 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
store i64 %14, i64* %.reg2mem
store i32 0, i32* %storemerge315.reg2mem
br i1 %17, label LBL_9, label LBL_6
LBL_6:
%rsi.114.reload = load i64, i64* %rsi.114.reg2mem
%storemerge315.reload = load i32, i32* %storemerge315.reg2mem
%.reload = load i64, i64* %.reg2mem
%18 = add i64 %.reload, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = sext i32 %storemerge315.reload to i64
%22 = mul i64 %21, 4
%23 = add i64 %20, %22
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp slt i32 %25, 1
store i64 %.reload, i64* %.reg2mem31
store i32 %storemerge315.reload, i32* %.reg2mem33
store i64 %rsi.114.reload, i64* %rsi.0.reg2mem
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = sub i32 0, %25
%28 = call i32 @kill(i32 %27, i32 9)
%.pre = load i32, i32* %sv_0, align 4
%.pre19 = load i64, i64* @gv_4, align 8
store i64 %.pre19, i64* %.reg2mem31
store i32 %.pre, i32* %.reg2mem33
store i64 9, i64* %rsi.0.reg2mem
br label LBL_8
LBL_8:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload34 = load i32, i32* %.reg2mem33
%.reload32 = load i64, i64* %.reg2mem31
%29 = add i32 %.reload34, 1
store i32 %29, i32* %sv_0, align 4
%30 = inttoptr i64 %.reload32 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp ugt i32 %31, %29
store i64 %.reload32, i64* %.reg2mem
store i32 %29, i32* %storemerge315.reg2mem
store i64 %rsi.0.reload, i64* %rsi.114.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.lcssa.reg2mem
br i1 %32, label LBL_6, label LBL_9
LBL_9:
%rsi.1.lcssa.reload = load i64, i64* %rsi.1.lcssa.reg2mem
store i32 0, i32* %sv_0, align 4
%33 = load i32, i32* @gv_5, align 4
%34 = icmp eq i32 %33, 0
store i32 %33, i32* %.reg2mem35
store i32 0, i32* %storemerge212.reg2mem
store i64 %rsi.1.lcssa.reload, i64* %rsi.311.reg2mem
store i64 %rsi.1.lcssa.reload, i64* %rsi.3.lcssa.reg2mem
br i1 %34, label LBL_13, label LBL_10
LBL_10:
%rsi.311.reload = load i64, i64* %rsi.311.reg2mem
%storemerge212.reload = load i32, i32* %storemerge212.reg2mem
%.reload36 = load i32, i32* %.reg2mem35
%35 = load i64, i64* @gv_6, align 8
%36 = sext i32 %storemerge212.reload to i64
%37 = mul i64 %36, 4
%38 = add i64 %35, %37
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp slt i32 %40, 1
store i32 %.reload36, i32* %.reg2mem37
store i32 %storemerge212.reload, i32* %.reg2mem39
store i64 %rsi.311.reload, i64* %rsi.2.reg2mem
br i1 %41, label LBL_12, label LBL_11
LBL_11:
%42 = call i32 @kill(i32 %40, i32 9)
%.pre20 = load i32, i32* %sv_0, align 4
%.pre21 = load i32, i32* @gv_5, align 4
store i32 %.pre21, i32* %.reg2mem37
store i32 %.pre20, i32* %.reg2mem39
store i64 9, i64* %rsi.2.reg2mem
br label LBL_12
LBL_12:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%.reload40 = load i32, i32* %.reg2mem39
%.reload38 = load i32, i32* %.reg2mem37
%43 = add i32 %.reload40, 1
store i32 %43, i32* %sv_0, align 4
%44 = icmp ugt i32 %.reload38, %43
store i32 %.reload38, i32* %.reg2mem35
store i32 %43, i32* %storemerge212.reg2mem
store i64 %rsi.2.reload, i64* %rsi.311.reg2mem
store i64 %rsi.2.reload, i64* %rsi.3.lcssa.reg2mem
br i1 %44, label LBL_10, label LBL_13
LBL_13:
%rsi.3.lcssa.reload = load i64, i64* %rsi.3.lcssa.reg2mem
store i32 0, i32* %sv_0, align 4
%45 = load i32, i32* @gv_7, align 4
%46 = icmp eq i32 %45, 0
%47 = load i64, i64* @gv_8, align 8
%48 = icmp eq i64 %47, 0
%or.cond6 = or i1 %46, %48
store i64 %47, i64* %.reg2mem41
store i32 %45, i32* %.reg2mem43
store i32 0, i32* %storemerge18.reg2mem
store i64 %rsi.3.lcssa.reload, i64* %rsi.57.reg2mem
store i64 %rsi.3.lcssa.reload, i64* %rsi.5.lcssa.reg2mem
store i32 %45, i32* %.lcssa.reg2mem
br i1 %or.cond6, label LBL_17, label LBL_14
LBL_14:
%rsi.57.reload = load i64, i64* %rsi.57.reg2mem
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%.reload44 = load i32, i32* %.reg2mem43
%.reload42 = load i64, i64* %.reg2mem41
%49 = sext i32 %storemerge18.reload to i64
%50 = mul i64 %49, 4
%51 = add i64 %50, %.reload42
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp slt i32 %53, 1
store i64 %.reload42, i64* %.reg2mem45
store i32 %.reload44, i32* %.reg2mem47
store i32 %storemerge18.reload, i32* %.reg2mem49
store i64 %rsi.57.reload, i64* %rsi.4.reg2mem
br i1 %54, label LBL_16, label LBL_15
LBL_15:
%55 = call i32 @kill(i32 %53, i32 9)
%.pre22 = load i32, i32* %sv_0, align 4
%.pre23 = load i32, i32* @gv_7, align 4
%.pre24 = load i64, i64* @gv_8, align 8
store i64 %.pre24, i64* %.reg2mem45
store i32 %.pre23, i32* %.reg2mem47
store i32 %.pre22, i32* %.reg2mem49
store i64 9, i64* %rsi.4.reg2mem
br label LBL_16
LBL_16:
%rsi.4.reload = load i64, i64* %rsi.4.reg2mem
%.reload50 = load i32, i32* %.reg2mem49
%.reload48 = load i32, i32* %.reg2mem47
%.reload46 = load i64, i64* %.reg2mem45
%56 = add i32 %.reload50, 1
store i32 %56, i32* %sv_0, align 4
%57 = icmp ule i32 %.reload48, %56
%58 = icmp eq i64 %.reload46, 0
%or.cond = or i1 %58, %57
store i64 %.reload46, i64* %.reg2mem41
store i32 %.reload48, i32* %.reg2mem43
store i32 %56, i32* %storemerge18.reg2mem
store i64 %rsi.4.reload, i64* %rsi.57.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.lcssa.reg2mem
store i32 %.reload48, i32* %.lcssa.reg2mem
br i1 %or.cond, label LBL_17, label LBL_14
LBL_17:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%rsi.5.lcssa.reload = load i64, i64* %rsi.5.lcssa.reg2mem
%59 = zext i32 %.lcssa.reload to i64
%60 = load i32, i32* @gv_9, align 4
%61 = icmp slt i32 %60, 0
store i64 %59, i64* %rdx.0.reg2mem
store i64 %rsi.5.lcssa.reload, i64* %rsi.6.reg2mem
br i1 %61, label LBL_19, label LBL_18
LBL_18:
%62 = call i32 @kill(i32 %60, i32 9)
%63 = load i32, i32* @gv_9, align 4
%64 = ptrtoint i32* %sv_0 to i64
%65 = call i32 @waitpid(i32 %63, i32* nonnull %sv_0, i32 0)
%66 = load i32, i32* @gv_9, align 4
%67 = zext i32 %66 to i64
%68 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_10, i64 0, i64 0), i64 %67, i64 0, i64 %64, i64 %2, i64 %1)
store i64 0, i64* %rdx.0.reg2mem
store i64 %67, i64* %rsi.6.reg2mem
store i64 %64, i64* %rcx.0.reg2mem
br label LBL_19
LBL_19:
%69 = load i64, i64* @gv_11, align 8
%70 = icmp eq i64 %69, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %70, label LBL_24, label LBL_20
LBL_20:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%rsi.6.reload = load i64, i64* %rsi.6.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%71 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_12, i64 0, i64 0), i64 %rsi.6.reload, i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
store i32 1, i32* %sv_0, align 4
%72 = load i32, i32* @gv_13, align 4
%73 = icmp eq i32 %72, 0
store i32 %72, i32* %.reg2mem51
store i32 1, i32* %storemerge5.reg2mem
store i32 1, i32* %rax.0.shrunk.reg2mem
br i1 %73, label LBL_24, label LBL_21
LBL_21:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload52 = load i32, i32* %.reg2mem51
%74 = load i64, i64* @gv_11, align 8
%75 = sext i32 %storemerge5.reload to i64
%76 = mul i64 %75, 4
%77 = add i64 %76, %74
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = icmp slt i32 %79, 1
store i32 %.reload52, i32* %.reg2mem53
store i32 %storemerge5.reload, i32* %.reg2mem55
br i1 %80, label LBL_23, label LBL_22
LBL_22:
%81 = call i32 @kill(i32 %79, i32 15)
%.pre25 = load i32, i32* %sv_0, align 4
%.pre26 = load i32, i32* @gv_13, align 4
store i32 %.pre26, i32* %.reg2mem53
store i32 %.pre25, i32* %.reg2mem55
br label LBL_23
LBL_23:
%.reload56 = load i32, i32* %.reg2mem55
%.reload54 = load i32, i32* %.reg2mem53
%82 = add i32 %.reload56, 1
store i32 %82, i32* %sv_0, align 4
%83 = icmp ult i32 %.reload54, %82
store i32 %.reload54, i32* %.reg2mem51
store i32 %82, i32* %storemerge5.reg2mem
store i32 %82, i32* %rax.0.shrunk.reg2mem
br i1 %83, label LBL_24, label LBL_21
LBL_24:
%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 %82, { 0, 1, 3, 2 }
uselistorder i32 %.reload54, { 1, 0 }
uselistorder i32 %56, { 0, 2, 1 }
uselistorder i64 %.reload46, { 1, 0 }
uselistorder i32 %.reload48, { 0, 2, 1 }
uselistorder i32 %43, { 0, 2, 1 }
uselistorder i32 %.reload38, { 1, 0 }
uselistorder i32 %29, { 0, 2, 1 }
uselistorder i64 %.reload32, { 1, 0 }
uselistorder i32 %5, { 0, 2, 1 }
uselistorder i32* %sv_0, { 11, 0, 7, 12, 13, 10, 1, 6, 9, 2, 5, 8, 3, 4 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge315.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.114.reg2mem, { 1, 0 }
uselistorder i32* %.reg2mem35, { 2, 0, 1 }
uselistorder i32* %storemerge212.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.311.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem41, { 2, 0, 1 }
uselistorder i32* %.reg2mem43, { 2, 0, 1 }
uselistorder i32* %storemerge18.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.57.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem51, { 2, 0, 1 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem53, { 0, 2, 1 }
uselistorder i32* %.reg2mem55, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @uwsgi_log, { 1, 0 }
uselistorder i32 (i32, i32)* @kill, { 1, 2, 4, 3, 0 }
uselistorder i32 9, { 3, 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 46, 42, 3, 8, 38, 47, 41, 48, 40, 49, 39, 50, 51, 4, 43, 44, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 7, 6, 5, 2, 45, 1, 0 }
uselistorder label LBL_24, { 0, 1, 2, 4, 3 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | irc_raw_message_add_to_list_17707 | irc_raw_message_add_to_list | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64* @malloc(i32 40)
%2 = ptrtoint i64* %1 to i64
%3 = icmp eq i64* %1, null
br i1 %3, label LBL_5, label LBL_1
LBL_1:
store i64 %arg1, i64* %1, align 8
%4 = call i8* @strdup(i8* %arg2)
%5 = ptrtoint i8* %4 to i64
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = call i8* @strdup(i8* %arg3)
%9 = ptrtoint i8* %8 to i64
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = load i64, i64* @gv_0, align 8
%13 = add i64 %2, 24
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = add i64 %2, 32
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
%17 = load i64, i64* @gv_1, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load i64, i64* @gv_0, align 8
%20 = add i64 %19, 32
%21 = inttoptr i64 %20 to i64*
store i64 %2, i64* %21, align 8
br label LBL_4
LBL_3:
store i64 %2, i64* @gv_1, align 8
br label LBL_4
LBL_4:
store i64 %2, i64* @gv_0, align 8
store i32 ptrtoint (i32* @gv_2 to i32), i32* bitcast (i64* @gv_3 to i32*), align 8
br label LBL_5
LBL_5:
ret i64 %2
uselistorder i64 %2, { 7, 1, 2, 0, 3, 4, 5, 6 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
} | 1 |
BinRealVul | mov_write_rtp_tag_10060 | mov_write_rtp_tag | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3, i64 0)
%6 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%7 = call i64 @FUNC(i64 %3, i64 0)
%8 = call i64 @FUNC(i64 %3, i64 0)
%9 = call i64 @FUNC(i64 %3, i64 1)
%10 = call i64 @FUNC(i64 %3, i64 1)
%11 = call i64 @FUNC(i64 %3, i64 1)
%12 = and i64 %1, 4294967295
%13 = call i64 @FUNC(i64 %3, i64 %12)
%14 = call i64 @FUNC(i64 %3, i64 12)
%15 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %3, i64 %19)
%21 = call i64 @FUNC(i64 %3, i64 %4)
ret i64 %21
uselistorder i64 (i64, i64)* @avio_wb16, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*)* @ffio_wfourcc, { 1, 0 }
uselistorder i64 (i64, i64)* @avio_wb32, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | qemu_rbd_close_17282 | qemu_rbd_close | 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 = trunc i64 %1 to i32
%4 = and i64 %1, 4294967295
%5 = call i32 @close(i32 %3)
%6 = add nuw nsw i64 %4, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = call i32 @close(i32 %8)
%10 = call i64 @FUNC(i64 %4, i64 0, i64 0, i64 0)
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %2, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
%23 = add i64 %2, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
ret i64 %26
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32 (i32)* @close, { 1, 0 }
} | 1 |
BinRealVul | super_written_4956 | super_written | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_8
LBL_1:
%7 = trunc i64 %arg3 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = add i64 %arg1, 4
%11 = call i64 @FUNC(i64 0, i64 %10)
%12 = trunc i64 %11 to i8
%13 = icmp eq i8 %12, 1
br i1 %13, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = inttoptr i64 %4 to i64*
store i64* %.pre, i64** %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%14 = inttoptr i64 %4 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i64 %4)
store i64* %14, i64** %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%17 = load i64, i64* %.pre-phi.reload, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = load i64, i64* %.pre-phi.reload, align 8
%22 = add i64 %21, 8
%23 = call i64 @FUNC(i64 %22)
br label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %arg1)
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 %4, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | nfs_co_generic_bh_cb_14504 | nfs_co_generic_bh_cb | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8, i64 0)
ret i64 %9
uselistorder i64 %0, { 1, 0 }
} | 1 |
BinRealVul | RegisterCINImage_12974 | RegisterCINImage | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0))
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
store i64 4198796, i64* %2, align 8
%3 = add i64 %0, 32
%4 = inttoptr i64 %3 to i64*
store i64 4198803, i64* %4, align 8
%5 = add i64 %0, 40
%6 = inttoptr i64 %5 to i64*
store i64 4198810, i64* %6, align 8
%7 = add i64 %0, 48
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = xor i32 %9, 1
store i32 %10, i32* %8, align 4
%11 = call i64 @FUNC(i64 %0)
ret i64 12345
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | decode_mb_14924 | decode_mb | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = ptrtoint i64* %sv_0 to i64
%3 = add i64 %2, -32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = mul i64 %indvars.iv.reload, 4
%5 = add i64 %3, %4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 256
%10 = add i64 %9, %0
%11 = call i64 @FUNC(i64 %1, i64 %10, i32 %7)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_2:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%15 = icmp ult i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %15, label LBL_1, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %7, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | x8_setup_spatial_predictor_16433 | x8_setup_spatial_predictor | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%storemerge.in.in.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = trunc i64 %arg2 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %1, 12
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %1, 8
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %1, 16
store i64 %11, i64* %storemerge.in.in.reg2mem
br label LBL_3
LBL_2:
%12 = add i64 %1, 20
store i64 %12, i64* %storemerge.in.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.in.reload = load i64, i64* %storemerge.in.in.reg2mem
%storemerge.in = inttoptr i64 %storemerge.in.in.reload to i32*
%storemerge = load i32, i32* %storemerge.in, align 4
%13 = add i64 %1, 24
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = zext i32 %2 to i64
%16 = sext i32 %storemerge to i64
%17 = icmp sle i64 %16, %15
%18 = icmp sgt i32 %2, 2
%or.cond = icmp eq i1 %18, %17
br i1 %or.cond, label LBL_6, label LBL_4
LBL_4:
%19 = add i64 %1, 8
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
br i1 %18, label LBL_6, label LBL_5
LBL_5:
store i32 1, i32* %14, align 4
%21 = mul i32 %3, 6899
%22 = add i32 %21, 62091
%23 = ashr i32 %22, 17
%24 = add i64 %1, 28
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
br label LBL_6
LBL_6:
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_7, label LBL_23
LBL_7:
%26 = add i64 %1, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp slt i32 %28, 3
br i1 %29, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 56, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_9
LBL_9:
%30 = add i64 %1, 20
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = mul i32 %32, 2
%34 = icmp ugt i32 %33, %2
br i1 %34, label LBL_10, label LBL_17
LBL_10:
%35 = add i64 %1, 32
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = urem i32 %37, 4
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_15, label LBL_11
LBL_11:
%41 = load i32, i32* %27, align 4
%42 = icmp eq i32 %41, 1
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_13, label LBL_12
LBL_12:
store i32 11, i32* %27, align 4
br label LBL_16
LBL_13:
%44 = icmp eq i32 %41, 2
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_16, label LBL_14
LBL_14:
store i32 10, i32* %27, align 4
br label LBL_16
LBL_15:
store i32 0, i32* %27, align 4
br label LBL_16
LBL_16:
%46 = add i64 %1, 36
%47 = inttoptr i64 %46 to i32*
store i32 0, i32* %47, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_17:
%48 = call i64 @FUNC(i64 %1)
%49 = trunc i64 %48 to i32
%50 = add i64 %1, 36
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = icmp slt i32 %49, 0
%53 = icmp eq i1 %52, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %53, label LBL_18, label LBL_23
LBL_18:
%54 = icmp slt i32 %49, 12
br i1 %54, label LBL_20, label LBL_19
LBL_19:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_20
LBL_20:
%55 = load i32, i32* %27, align 4
%56 = icmp slt i32 %55, 3
store i32 %55, i32* %.reg2mem
br i1 %56, label LBL_22, label LBL_21
LBL_21:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i32, i32* %27, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_22
LBL_22:
%.reload = load i32, i32* %.reg2mem
%57 = load i32, i32* %51, align 4
%58 = sext i32 %57 to i64
%59 = sext i32 %.reload to i64
%60 = mul nsw i64 %59, 12
%61 = add i64 %58, ptrtoint (i8** @gv_5 to i64)
%62 = add i64 %61, %60
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = zext i8 %64 to i32
store i32 %65, i32* %27, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %49, { 1, 0, 2 }
uselistorder i32* %27, { 1, 0, 2, 4, 3, 6, 5, 7 }
uselistorder i1 %18, { 1, 0 }
uselistorder i32 %2, { 2, 0, 1 }
uselistorder i64 %1, { 3, 6, 4, 7, 5, 8, 1, 2, 9, 10, 0, 11, 12 }
uselistorder i64* %storemerge.in.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i32* %0, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 0, 2, 1 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder label LBL_23, { 1, 2, 0, 3 }
uselistorder label LBL_16, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | make_cdt15_entry_2013 | make_cdt15_entry | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 31
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i16*
%4 = load i16, i16* %3, align 2
%5 = sext i16 %4 to i64
%sext1 = mul i64 %arg1, 4294967296
%6 = ashr exact i64 %sext1, 31
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = sext i16 %9 to i64
%11 = mul i64 %10, 1024
%12 = add nsw i64 %11, %5
%13 = mul nsw i64 %12, 131074
%14 = and i64 %13, 4294967294
ret i64 %14
} | 0 |
BinRealVul | t37_1143 | t37 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = and i64 %arg3, 4294967295
%5 = add i64 %3, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i32 0, i32* %storemerge12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_5, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %3, i64 7)
%10 = trunc i64 %9 to i32
%11 = icmp ult i32 %10, 121
%12 = and i64 %9, 4294967295
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%14 = add i64 %12, ptrtoint (i8** @gv_1 to i64)
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = urem i8 %16, 16
%18 = zext i8 %17 to i32
%19 = add nsw i32 %18, -5
%20 = or i32 %storemerge12.reload, 1
%21 = zext i32 %storemerge12.reload to i64
%22 = call i64 @FUNC(i64 %3, i64 %21, i64 %4, i32 %19)
%23 = load i32, i32* %6, align 4
%24 = icmp ult i32 %20, %23
%25 = icmp eq i1 %24, false
store i64 0, i64* %storemerge.reg2mem
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = udiv i8 %16, 16
%27 = zext i8 %26 to i32
%28 = add nsw i32 %27, -5
%29 = zext i32 %20 to i64
%30 = call i64 @FUNC(i64 %3, i64 %29, i64 %4, i32 %28)
%31 = add i32 %storemerge12.reload, 2
%32 = load i32, i32* %6, align 4
%33 = icmp ult i32 %31, %32
store i32 %31, i32* %storemerge12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %33, label LBL_1, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %20, { 1, 0 }
uselistorder i32 %storemerge12.reload, { 1, 2, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32* %6, { 2, 1, 0 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32)* @set_pos, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 3, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | cirrus_get_bpp_9332 | cirrus_get_bpp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 7
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = urem i8 %3, 2
%5 = icmp eq i8 %4, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%6 = urem i8 %3, 16
%7 = zext i8 %6 to i64
store i64 %7, i64* @0, align 8
%trunc = zext i8 %6 to i32
store i64 8, i64* %sv_0.0.reg2mem
switch i32 %trunc, label LBL_6 [
i32 4, label LBL_5
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
]
LBL_2:
%8 = call i64 @FUNC(i64 %0)
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_3:
store i64 24, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_4:
%9 = call i64 @FUNC(i64 %0)
store i64 %9, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_5:
store i64 32, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = and i64 %sv_0.0.reload, 4294967295
ret i64 %10
uselistorder i8 %6, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 (i64)* @cirrus_get_bpp16_depth, { 1, 0 }
uselistorder label LBL_6, { 2, 3, 4, 5, 1, 0 }
} | 0 |
BinRealVul | cma_modify_qp_err_8667 | cma_modify_qp_err | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %1, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
store i32 1, i32* %sv_0, align 4
%5 = call i64 @FUNC(i64 %1, i32* nonnull %sv_0, i64 1)
%phitmp = and i64 %5, 4294967295
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%6 = call i64 @FUNC(i64 %1)
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | svq3_luma_dc_dequant_idct_c_16078 | svq3_luma_dc_dequant_idct_c | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv5.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
%2 = sext i32 %arg3 to i64
%3 = mul i64 %2, 4
%4 = add i64 %3, ptrtoint (i32** @gv_0 to i64)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %1, -112
store i64 0, i64* %indvars.iv5.reg2mem
br label LBL_1
LBL_1:
%indvars.iv5.reload = load i64, i64* %indvars.iv5.reg2mem
%8 = mul i64 %indvars.iv5.reload, 4
%9 = mul i64 %indvars.iv5.reload, 8
%10 = add i64 %9, %0
%11 = inttoptr i64 %10 to i16*
%12 = load i16, i16* %11, align 2
%13 = or i64 %8, 2
%14 = mul i64 %13, 2
%15 = add i64 %14, %0
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = sext i16 %17 to i64
%19 = sext i16 %12 to i64
%20 = add nsw i64 %18, %19
%21 = trunc i64 %20 to i32
%22 = mul i32 %21, 13
%23 = sub nsw i64 %19, %18
%24 = trunc i64 %23 to i32
%25 = mul i32 %24, 13
%26 = or i64 %8, 1
%27 = mul i64 %26, 2
%28 = add i64 %27, %0
%29 = inttoptr i64 %28 to i16*
%30 = load i16, i16* %29, align 2
%31 = sext i16 %30 to i32
%32 = mul nsw i32 %31, 7
%33 = or i64 %8, 3
%34 = mul i64 %33, 2
%35 = add i64 %34, %0
%36 = inttoptr i64 %35 to i16*
%37 = load i16, i16* %36, align 2
%38 = sext i16 %37 to i32
%39 = mul nsw i32 %38, -17
%40 = add nsw i32 %39, %32
%41 = mul nsw i32 %31, 17
%42 = mul nsw i32 %38, 7
%43 = add nsw i32 %42, %41
%44 = add i32 %43, %22
%45 = mul i64 %indvars.iv5.reload, 16
%46 = add i64 %45, %7
%47 = inttoptr i64 %46 to i32*
store i32 %44, i32* %47, align 8
%48 = add i32 %40, %25
%49 = mul i64 %26, 4
%50 = add i64 %49, %7
%51 = inttoptr i64 %50 to i32*
store i32 %48, i32* %51, align 4
%52 = sub i32 %25, %40
%53 = mul i64 %13, 4
%54 = add i64 %53, %7
%55 = inttoptr i64 %54 to i32*
store i32 %52, i32* %55, align 8
%56 = sub i32 %22, %43
%57 = mul i64 %33, 4
%58 = add i64 %57, %7
%59 = inttoptr i64 %58 to i32*
store i32 %56, i32* %59, align 4
%indvars.iv.next6 = add nuw nsw i64 %indvars.iv5.reload, 1
%exitcond7 = icmp eq i64 %indvars.iv.next6, 4
store i64 %indvars.iv.next6, i64* %indvars.iv5.reg2mem
br i1 %exitcond7, label LBL_2, label LBL_1
LBL_2:
%60 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%61 = add nuw nsw i64 %indvars.iv.reload, ptrtoint (i8** @gv_1 to i64)
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = zext i8 %63 to i32
%65 = mul i64 %indvars.iv.reload, 4
%66 = add i64 %65, %7
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = add i64 %66, 32
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = add i32 %71, %68
%73 = mul i32 %72, 13
%74 = sub i32 %68, %71
%75 = mul i32 %74, 13
%76 = add i64 %66, 16
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = mul i32 %78, 7
%80 = add i64 %66, 48
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = mul i32 %82, -17
%84 = add i32 %83, %79
%85 = mul i32 %78, 17
%86 = mul i32 %82, 7
%87 = add i32 %86, %85
%88 = add i32 %87, %73
%89 = mul i32 %88, %6
%90 = add i32 %89, 524288
%91 = ashr i32 %90, 20
%92 = zext i8 %63 to i64
%93 = mul i64 %92, 2
%94 = add i64 %93, %60
%95 = trunc i32 %91 to i16
%96 = inttoptr i64 %94 to i16*
store i16 %95, i16* %96, align 2
%97 = add i32 %84, %75
%98 = mul i32 %97, %6
%99 = add i32 %98, 524288
%100 = ashr i32 %99, 20
%101 = mul i32 %64, 2
%102 = add nuw nsw i32 %101, 64
%103 = zext i32 %102 to i64
%104 = add i64 %103, %60
%105 = trunc i32 %100 to i16
%106 = inttoptr i64 %104 to i16*
store i16 %105, i16* %106, align 2
%107 = sub i32 %75, %84
%108 = mul i32 %107, %6
%109 = add i32 %108, 524288
%110 = ashr i32 %109, 20
%111 = add nuw nsw i32 %101, 256
%112 = zext i32 %111 to i64
%113 = add i64 %112, %60
%114 = trunc i32 %110 to i16
%115 = inttoptr i64 %113 to i16*
store i16 %114, i16* %115, align 2
%116 = sub i32 %73, %87
%117 = mul i32 %116, %6
%118 = add i32 %117, 524288
%119 = ashr i32 %118, 20
%120 = add nuw nsw i32 %101, 320
%121 = zext i32 %120 to i64
%122 = add i64 %121, %60
%123 = trunc i32 %119 to i16
%124 = inttoptr i64 %122 to i16*
store i16 %123, i16* %124, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
ret i64 %122
uselistorder i32 %101, { 2, 1, 0 }
uselistorder i32 %87, { 1, 0 }
uselistorder i32 %84, { 1, 0 }
uselistorder i32 %75, { 1, 0 }
uselistorder i32 %73, { 1, 0 }
uselistorder i32 %71, { 1, 0 }
uselistorder i32 %68, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %43, { 1, 0 }
uselistorder i32 %40, { 1, 0 }
uselistorder i32 %25, { 1, 0 }
uselistorder i32 %22, { 1, 0 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i64 %8, { 2, 1, 0 }
uselistorder i64 %indvars.iv5.reload, { 0, 3, 2, 1 }
uselistorder i64* %indvars.iv5.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 17, { 1, 0 }
uselistorder i32 -17, { 1, 0 }
uselistorder i32 7, { 2, 3, 0, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i32 13, { 2, 3, 0, 1 }
uselistorder i64 4, { 7, 0, 6, 1, 2, 3, 4, 5 }
} | 1 |
BinRealVul | ape_read_packet_17241 | ape_read_packet | 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
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_7
LBL_1:
%11 = trunc i64 %3 to i32
%12 = add i64 %4, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp ugt i32 %14, %11
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_7
LBL_2:
%16 = add i64 %4, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%sext = mul i64 %3, 4294967296
%19 = ashr exact i64 %sext, 28
%20 = or i64 %19, 4
%21 = add i64 %18, %20
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = load i64, i64* %6, align 8
%25 = zext i32 %23 to i64
%26 = call i64 @FUNC(i64 %24, i64 %25, i64 0)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %29, label LBL_3, label LBL_7
LBL_3:
%30 = load i64, i64* %17, align 8
%31 = add i64 %30, %19
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp slt i32 %33, 1
%35 = icmp ugt i32 %33, 2147483639
%or.cond = or i1 %34, %35
br i1 %or.cond, label LBL_4, label LBL_5
LBL_4:
%36 = zext i32 %33 to i64
%37 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %36, i64 %2, i64 %1)
%38 = add i32 %11, 1
%39 = bitcast i64* %arg1 to i32*
store i32 %38, i32* %39, align 4
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%40 = ptrtoint i64* %arg2 to i64
%41 = load i32, i32* %13, align 4
%42 = add i32 %41, -1
%43 = icmp eq i32 %42, %11
%44 = icmp eq i1 %43, false
%storemerge.in.in.v = select i1 %44, i64 12, i64 8
%storemerge.in.in = add i64 %storemerge.in.in.v, %4
%storemerge.in = inttoptr i64 %storemerge.in.in to i32*
%storemerge = load i32, i32* %storemerge.in, align 4
%45 = add i32 %33, 8
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 %40, i64 %46)
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %50, label LBL_6, label LBL_7
LBL_6:
%51 = bitcast i64* %rdi to i32*
%52 = inttoptr i64 %46 to i32*
store i32 %storemerge, i32* %52, align 4
%53 = load i64, i64* %17, align 8
%54 = load i32, i32* %51, align 8
%55 = sext i32 %54 to i64
%56 = mul i64 %55, 16
%57 = add i64 %53, 8
%58 = add i64 %57, %56
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = add nuw nsw i64 %46, 4
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
%63 = load i64, i64* %17, align 8
%64 = load i32, i32* %51, align 8
%65 = sext i32 %64 to i64
%66 = mul i64 %65, 16
%67 = add i64 %66, %63
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = add nuw nsw i64 %46, 8
%71 = load i64, i64* %6, align 8
%72 = call i64 @FUNC(i64 %71, i64 %70, i32 %69)
%73 = trunc i64 %72 to i32
%74 = load i64, i64* %17, align 8
%75 = or i64 %66, 12
%76 = add i64 %75, %74
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = add i64 %40, 12
%80 = inttoptr i64 %79 to i32*
store i32 %78, i32* %80, align 4
%81 = add i64 %40, 16
%82 = inttoptr i64 %81 to i32*
store i32 0, i32* %82, align 4
%83 = add i32 %73, 8
%84 = add i64 %40, 8
%85 = inttoptr i64 %84 to i32*
store i32 %83, i32* %85, align 4
%86 = load i32, i32* %51, align 8
%87 = add i32 %86, 1
%88 = bitcast i64* %arg1 to i32*
store i32 %87, i32* %88, 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 %66, { 1, 0 }
uselistorder i32 %33, { 2, 0, 1, 3 }
uselistorder i32 %11, { 0, 2, 1 }
uselistorder i64 %4, { 0, 1, 3, 2, 4 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 6, 2, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 12, { 2, 0, 1 }
uselistorder i64 4294967293, { 0, 2, 1 }
uselistorder i64 16, { 2, 0, 1, 3 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i64 8, { 3, 2, 0, 1, 4, 5 }
uselistorder i64* %arg1, { 1, 0, 2 }
uselistorder label LBL_7, { 4, 0, 5, 1, 2, 3 }
} | 1 |
BinRealVul | chk_malloc_11881 | chk_malloc | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = add i64 %arg1, 10
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = inttoptr i64 %1 to i64*
%4 = trunc i64 %arg1 to i32
%5 = add i32 %4, 10
%6 = call i64* @memset(i64* %3, i32 170, i32 %5)
%7 = call i64 @FUNC(i64 %1)
%8 = add i64 %1, -8
%9 = add i64 %8, %7
%10 = inttoptr i64 %9 to i64*
store i64 %arg1, i64* %10, align 8
%11 = add i64 %1, 1
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %1, { 1, 0, 3, 2, 4 }
} | 1 |
BinRealVul | adb_kbd_class_init_15886 | adb_kbd_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = or i32 %3, 1
store i32 %4, i32* %2, align 4
store i64 4198669, i64* %arg1, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 4198676, i64* %6, align 8
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %8, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | dbd_st_destroy_6667 | dbd_st_destroy | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = and i64 %1, 4294967295
%10 = call i64 @FUNC(i64 %7, i64 %9)
store i64 0, i64* %6, align 8
br label LBL_2
LBL_2:
%11 = add i64 %2, 40
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, 8
%13 = add i64 %11, %12
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %15)
br label LBL_5
LBL_5:
store i64 0, i64* %14, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_6, label LBL_3
LBL_6:
%18 = call i64 @FUNC(i64 %2)
ret i64 %18
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | rfcomm_sock_recvmsg_11308 | rfcomm_sock_recvmsg | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 0, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%8 = and i64 %arg5, 4294967295
%9 = ptrtoint i64* %arg1 to i64
%10 = ptrtoint i64* %arg3 to i64
%11 = call i64 @FUNC(i64 %9, i64 %0, i64 %10, i64 %arg4, i64 %8)
%12 = trunc i64 %11 to i32
%13 = call i64 @FUNC(i64 %0)
%14 = urem i64 %arg5, 2
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
%17 = icmp slt i32 %12, 1
%or.cond = or i1 %16, %17
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%18 = and i64 %11, 4294967295
%19 = call i64 @FUNC(i64 %18, i64 %0)
br label LBL_4
LBL_4:
%20 = call i64 @FUNC(i64 %0)
%21 = add i64 %0, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = ashr i32 %23, 2
%25 = zext i32 %24 to i64
%26 = icmp sgt i64 %20, %25
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = call i64 @FUNC(i64 %0)
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
br label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %0)
%32 = and i64 %11, 4294967295
store i64 %32, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 4, 3, 0, 5, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @rfcomm_pi, { 1, 0 }
} | 1 |
BinRealVul | rocker_class_init_14436 | rocker_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i32*
store i32 4660, i32* %4, align 4
%5 = add i64 %0, 20
%6 = inttoptr i64 %5 to i32*
store i32 22136, i32* %6, align 4
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = add i64 %0, 28
%10 = inttoptr i64 %9 to i32*
store i32 2, i32* %10, align 4
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 3, i64 %13)
store i64 ptrtoint ([14 x i8]* @gv_0 to i64), i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%15 = load i64, i64* @gv_1, align 8
%16 = inttoptr i64 %3 to i64*
store i64 %15, i64* %16, align 8
%17 = inttoptr i64 %7 to i64*
store i64 ptrtoint (i64* @gv_2 to i64), i64* %17, align 8
ret i64 %0
} | 1 |
BinRealVul | xhci_kick_ep_11532 | xhci_kick_ep | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = icmp eq i32 %4, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = trunc i64 %3 to i32
%8 = trunc i64 %5 to i32
%9 = icmp ult i32 %7, %8
br i1 %9, label LBL_2, label LBL_3
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%sext4 = mul i64 %arg3, 4294967296
%10 = ashr exact i64 %sext4, 32
%11 = trunc i64 %10 to i32
%.off = add i32 %11, -1
%12 = icmp ult i32 %.off, 31
br i1 %12, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%13 = ptrtoint i64* %arg1 to i64
%14 = add nsw i64 %5, 4294967295
%15 = and i64 %14, 4294967295
%16 = mul nuw nsw i64 %15, 264
%17 = add i64 %13, 8
%18 = add i64 %17, %16
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = and i64 %5, 4294967295
%24 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_4, i64 0, i64 0), i64 %23, i64 %13, i64 %15, i64 %2, i64 %1)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
%25 = add nsw i64 %10, 4294967295
%26 = and i64 %25, 4294967295
%27 = mul nuw nsw i64 %15, 33
%28 = add nuw nsw i64 %27, %26
%29 = mul i64 %28, 8
%30 = add i64 %13, 16
%31 = add i64 %30, %29
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%36 = and i64 %5, 4294967295
%37 = and i64 %10, 4294967295
%38 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_5, i64 0, i64 0), i64 %37, i64 %36, i64 %15, i64 %2, i64 %1)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%39 = and i64 %arg4, 4294967295
%40 = call i64 @FUNC(i64 %33, i64 %39)
store i64 %40, 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 %15, { 1, 0, 2, 3 }
uselistorder i64 %13, { 2, 1, 0 }
uselistorder i64 %5, { 1, 2, 3, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | packet_put_13111 | packet_put | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | tpm_passthrough_cancel_cmd_2647 | tpm_passthrough_cancel_cmd | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_5, label LBL_1
LBL_1:
%11 = add i64 %7, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label LBL_4, label LBL_2
LBL_2:
%15 = add i64 %7, 8
%16 = inttoptr i64 %15 to i8*
store i8 1, i8* %16, align 1
%17 = load i32, i32* %12, align 4
%18 = call i32 @write(i32 %17, i64* nonnull @gv_0, i32 1)
%19 = icmp eq i32 %18, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = call i32* @__errno_location()
%21 = load i32, i32* %20, align 4
%22 = call i8* @strerror(i32 %21)
%23 = ptrtoint i8* %22 to i64
%24 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %23, i64 1, i64 %5, i64 %2, i64 %1)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%25 = call i64 @FUNC(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %25, 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 %7, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
} | 0 |
BinRealVul | SFDGetSpiros_6701 | SFDGetSpiros | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%.reg2mem4 = alloca i32
%rsi.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1)
%4 = call i64 @FUNC(i64 %arg1)
%5 = call i64 @FUNC(i64 %arg1)
%6 = inttoptr i64 %arg1 to %_IO_FILE*
%7 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_2, i64* nonnull %sv_1, i64* nonnull %sv_0)
%8 = icmp eq i32 %7, 3
%9 = icmp eq i64* %arg2, null
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %0, 12
%13 = inttoptr i64 %12 to i32*
br label LBL_2
LBL_2:
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%14 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_2, i64* nonnull %sv_1, i64* nonnull %sv_0)
%15 = icmp eq i32 %14, 3
br i1 %15, label LBL_2, label LBL_7
LBL_4:
%16 = load i32, i32* %11, align 4
%17 = load i32, i32* %13, align 4
%18 = icmp ult i32 %16, %17
store i32 %16, i32* %.reg2mem
store i64 ptrtoint ([11 x i8]* @gv_0 to i64), i64* %rsi.0.reg2mem
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i32 %17, 10
store i32 %19, i32* %13, align 4
%20 = sext i32 %19 to i64
%21 = mul nsw i64 %20, 24
%22 = trunc i64 %21 to i32
%23 = call i64* @realloc(i64* bitcast ([11 x i8]* @gv_0 to i64*), i32 %22)
%24 = ptrtoint i64* %23 to i64
store i64 %24, i64* %arg2, align 8
%.pre = load i32, i32* %11, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %21, i64* %rsi.0.reg2mem
br label LBL_6
LBL_6:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%25 = add i32 %.reload, 1
store i32 %25, i32* %11, align 4
%26 = sext i32 %.reload to i64
%27 = mul nsw i64 %26, 24
%28 = add i64 %27, %rsi.0.reload
%29 = load i64, i64* %sv_2, align 8
%30 = load i64, i64* %sv_1, align 8
%31 = inttoptr i64 %28 to i64*
store i64 %29, i64* %31, align 8
%32 = add i64 %28, 8
%33 = inttoptr i64 %32 to i64*
store i64 %30, i64* %33, align 8
%34 = load i64, i64* %sv_0, align 8
%35 = add i64 %28, 16
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
br label LBL_3
LBL_7:
br i1 %9, label LBL_12, label LBL_8
LBL_8:
%37 = add i64 %0, 8
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp slt i32 %39, 1
br i1 %40, label LBL_12, label LBL_9
LBL_9:
%41 = add i64 %0, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp ult i32 %39, %43
store i32 %39, i32* %.reg2mem4
store i64 ptrtoint ([11 x i8]* @gv_0 to i64), i64* %rsi.1.reg2mem
br i1 %44, label LBL_11, label LBL_10
LBL_10:
%45 = add i32 %43, 1
store i32 %45, i32* %42, align 4
%46 = sext i32 %45 to i64
%47 = mul nsw i64 %46, 24
%48 = trunc i64 %47 to i32
%49 = call i64* @realloc(i64* bitcast ([11 x i8]* @gv_0 to i64*), i32 %48)
%50 = ptrtoint i64* %49 to i64
store i64 %50, i64* %arg2, align 8
%.pre3 = load i32, i32* %38, align 4
store i32 %.pre3, i32* %.reg2mem4
store i64 %47, i64* %rsi.1.reg2mem
br label LBL_11
LBL_11:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%.reload5 = load i32, i32* %.reg2mem4
%51 = sext i32 %.reload5 to i64
%52 = mul nsw i64 %51, 24
%53 = add i64 %52, %rsi.1.reload
%54 = inttoptr i64 %53 to i64*
%55 = call i64* @memset(i64* %54, i32 0, i32 24)
%56 = load i32, i32* %38, align 4
%57 = add i32 %56, 1
store i32 %57, i32* %38, align 4
%58 = sext i32 %56 to i64
%59 = mul nsw i64 %58, 24
%60 = add nsw i64 %59, 16
%61 = inttoptr i64 %60 to i8*
store i8 -1, i8* %61, align 8
br label LBL_12
LBL_12:
%62 = call i64 @FUNC(i64 %arg1)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 69
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_14, label LBL_13
LBL_13:
%66 = call i64 @FUNC(i64 %arg1)
%67 = call i64 @FUNC(i64 %arg1)
%68 = call i64 @FUNC(i64 %arg1)
%69 = call i64 @FUNC(i64 %arg1)
%70 = call i64 @FUNC(i64 %arg1)
%71 = call i64 @FUNC(i64 %arg1)
%72 = call i64 @FUNC(i64 %arg1)
store i64 %72, i64* %storemerge.reg2mem
br label LBL_15
LBL_14:
%73 = call i32 @ungetc(i32 %63, %_IO_FILE* %6)
%74 = sext i32 %73 to i64
store i64 %74, i64* %storemerge.reg2mem
br label LBL_15
LBL_15:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %38, { 2, 1, 0, 3 }
uselistorder i64 %28, { 2, 1, 0 }
uselistorder i32* %11, { 1, 0, 2 }
uselistorder %_IO_FILE* %6, { 0, 2, 1 }
uselistorder i64* %sv_2, { 2, 1, 0 }
uselistorder i64* %sv_1, { 2, 1, 0 }
uselistorder i64* %sv_0, { 2, 1, 0 }
uselistorder i64 %0, { 3, 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* bitcast ([11 x i8]* @gv_0 to i64*), { 1, 0 }
uselistorder i64 24, { 2, 3, 4, 0, 1 }
uselistorder i64 12, { 1, 0 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fscanf, { 1, 0 }
uselistorder [11 x i8]* @gv_0, { 0, 2, 1 }
uselistorder i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i64)* @nlgetc, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | spdif_write_packet_13950 | spdif_write_packet | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = bitcast i64* %rsi to i32*
%10 = trunc i64 %3 to i32
store i32 %10, i32* %8, align 4
%11 = load i32, i32* %9, align 8
%12 = mul i32 %11, 8
%13 = add i32 %12, 8
%14 = and i32 %13, -16
%15 = add i64 %7, 4
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = trunc i64 %4 to i32
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_1, label LBL_10
LBL_1:
%20 = add i64 %7, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_2, label LBL_10
LBL_2:
%25 = add i32 %22, -16
%26 = load i32, i32* %8, align 4
%27 = sub i32 %25, %26
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_4, label LBL_3
LBL_3:
%30 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i32 %26, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%31 = call i64 @FUNC(i64 %4, i64 1)
%32 = call i64 @FUNC(i64 %4, i64 2)
%33 = add i64 %7, 12
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %4, i64 %36)
%38 = load i32, i32* %16, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %4, i64 %39)
%41 = load i32, i32* %8, align 4
%42 = add i32 %41, 32
%43 = zext i32 %42 to i64
%44 = add i64 %7, 24
%45 = add i64 %7, 16
%46 = call i64 @FUNC(i64 %45, i64 %44, i64 %43)
%47 = inttoptr i64 %45 to i64*
%48 = load i64, i64* %47, align 8
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %50, label LBL_5, label LBL_10
LBL_5:
%51 = load i32, i32* %8, align 4
%52 = ashr i32 %51, 1
%53 = zext i32 %52 to i64
%54 = add i64 %7, 32
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = call i64 @FUNC(i64 %48, i64 %56, i64 %53)
%58 = load i32, i32* %8, align 4
%59 = and i32 %58, -2
%60 = zext i32 %59 to i64
%61 = load i64, i64* %47, align 8
%62 = call i64 @FUNC(i64 %48, i64 %61, i64 %60)
%63 = load i32, i32* %8, align 4
%64 = urem i32 %63, 2
%65 = icmp eq i32 %64, 0
br i1 %65, label LBL_7, label LBL_6
LBL_6:
%66 = load i64, i64* %55, align 8
%67 = sext i32 %63 to i64
%68 = mul i64 %67, 2
%69 = add nsw i64 %68, -2
%70 = add i64 %69, %66
%71 = inttoptr i64 %70 to i16*
%72 = load i16, i16* %71, align 2
%73 = zext i16 %72 to i64
%74 = call i64 @FUNC(i64 %48, i64 %73)
br label LBL_7
LBL_7:
%75 = ashr i32 %27, 1
%76 = icmp eq i32 %75, 0
%77 = icmp eq i1 %76, false
store i32 %75, i32* %sv_0.03.reg2mem
br i1 %77, label LBL_8, label LBL_9
LBL_8:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%78 = call i64 @FUNC(i64 %48, i64 0)
%79 = add i32 %sv_0.03.reload, -1
%80 = icmp eq i32 %79, 0
%81 = icmp slt i32 %79, 0
%82 = icmp eq i1 %81, false
%83 = icmp eq i1 %80, false
%84 = icmp eq i1 %82, %83
store i32 %79, i32* %sv_0.03.reg2mem
br i1 %84, label LBL_8, label LBL_9
LBL_9:
%85 = load i32, i32* %21, align 4
%86 = load i32, i32* %8, align 4
%87 = load i32, i32* %34, align 4
%88 = zext i32 %85 to i64
%89 = zext i32 %86 to i64
%90 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i32 %87, i64 %89, i64 %88)
%91 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %63, { 1, 0 }
uselistorder i64 %48, { 1, 0, 3, 2, 4 }
uselistorder i32 %27, { 1, 0 }
uselistorder i32 %26, { 1, 0 }
uselistorder i32* %8, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64 %7, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i64 %4, { 2, 1, 6, 5, 4, 3, 0, 7, 8 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @put_be16, { 1, 0 }
uselistorder i64 (i64, i64)* @put_le16, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i32, i64, i64)* @av_log, { 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i32 0, { 2, 3, 0, 4, 1, 5, 6 }
uselistorder i32 8, { 1, 0 }
uselistorder label LBL_10, { 3, 0, 4, 1, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | mem_resize_8190 | mem_resize | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp slt i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([13 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%5 = call i64 @FUNC(i64 %rdi.0.reload, i64 %4, i64 1)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%8 = trunc i64 %4 to i32
%9 = icmp eq i32 %8, 0
%or.cond = or i1 %9, %7
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_3, label LBL_4
LBL_3:
store i64 %5, i64* %arg1, align 8
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
store i32 %8, i32* %11, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder [13 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | _moddeinit_12274 | _moddeinit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull @gv_1)
ret i64 %0
} | 1 |
BinRealVul | audio_capture_17133 | audio_capture | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = call i64 @FUNC(i64 %0, i64 1)
%4 = call i64 @FUNC(i64 %0, i64 2)
%5 = zext i32 %arg3 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = call i64 @FUNC(i64 %0, i64 %arg2, i32 %arg3)
%8 = call i64 @FUNC(i64 %0)
%9 = call i64 @FUNC(i64 %0)
ret i64 %9
uselistorder i64 (i64, i64)* @vnc_write_u8, { 1, 0 }
} | 1 |
BinRealVul | get_bit_rate_16830 | get_bit_rate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %2, 6
store i64 0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = icmp ult i32 %2, 3
%6 = icmp eq i1 %5, false
%7 = icmp eq i32 %2, 1
%or.cond = or i1 %7, %6
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%8 = icmp eq i32 %2, 2
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_4, label LBL_7
LBL_3:
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_4:
%12 = add i64 %4, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %4, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %4, 20
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = mul i32 %21, %17
%26 = mul i32 %25, %24
%27 = sext i32 %26 to i64
store i64 %27, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%28 = add i64 %4, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
store i64 %30, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i32 %2, { 2, 3, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 5, 2, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder label LBL_7, { 3, 2, 4, 1, 0 }
} | 1 |
BinRealVul | bdrv_commit_all_14457 | bdrv_commit_all | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.lcssa.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge12 = load i64, i64* @gv_0, align 8
%0 = icmp eq i64 %storemerge12, 0
%1 = icmp eq i1 %0, false
store i64 %storemerge12, i64* %storemerge13.reg2mem
store i64 %storemerge12, i64* %storemerge1.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%2 = call i64 @FUNC(i64 %storemerge13.reload)
%3 = inttoptr i64 %storemerge13.reload to i64*
%storemerge1 = load i64, i64* %3, align 8
%4 = icmp eq i64 %storemerge1, 0
%5 = icmp eq i1 %4, false
store i64 %storemerge1, i64* %storemerge13.reg2mem
store i64 %storemerge1, i64* %storemerge1.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_2:
%storemerge1.lcssa.reload = load i64, i64* %storemerge1.lcssa.reg2mem
ret i64 %storemerge1.lcssa.reload
uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | ConvertRGBToCMYK_19029 | ConvertRGBToCMYK | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 0
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%10 = call i128 @FUNC(i128 %3, i128 %3)
%11 = zext i8 %9 to i32
%12 = call i128 @FUNC(i32 %11)
%13 = call i128 @FUNC(i64 4571171282956062736)
%14 = call i128 @FUNC(i128 %13, i128 %12)
%15 = call i64 @__asm_movsd.1(i128 %14)
%16 = add i64 %6, 5
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = call i128 @FUNC(i128 %12, i128 %12)
%20 = zext i8 %18 to i32
%21 = call i128 @FUNC(i32 %20)
%22 = call i128 @FUNC(i64 4571171282956062736)
%23 = call i128 @FUNC(i128 %22, i128 %21)
%24 = call i64 @__asm_movsd.1(i128 %23)
%25 = add i64 %6, 6
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = call i128 @FUNC(i128 %21, i128 %21)
%29 = zext i8 %27 to i32
%30 = call i128 @FUNC(i32 %29)
%31 = call i128 @FUNC(i64 4571171282956062736)
%32 = call i128 @FUNC(i128 %31, i128 %30)
%33 = call i64 @__asm_movsd.1(i128 %32)
store i64 %15, i64* %sv_1.0.reg2mem
store i64 %24, i64* %sv_0.0.reg2mem
store i64 %33, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%34 = zext i8 %9 to i64
%35 = call i128 @FUNC(i64 %34)
%36 = call i128 @FUNC(i64 4571171282956062736)
%37 = call i128 @FUNC(i128 %35, i128 %36)
%38 = call i64 @__asm_movsd.1(i128 %37)
%39 = add i64 %6, 5
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = zext i8 %41 to i64
%43 = call i128 @FUNC(i64 %42)
%44 = call i128 @FUNC(i64 4571171282956062736)
%45 = call i128 @FUNC(i128 %43, i128 %44)
%46 = call i64 @__asm_movsd.1(i128 %45)
%47 = add i64 %6, 6
%48 = inttoptr i64 %47 to i8*
%49 = load i8, i8* %48, align 1
%50 = zext i8 %49 to i64
%51 = call i128 @FUNC(i64 %50)
%52 = call i128 @FUNC(i64 4571171282956062736)
%53 = call i128 @FUNC(i128 %51, i128 %52)
%54 = call i64 @__asm_movsd.1(i128 %53)
store i64 %38, i64* %sv_1.0.reg2mem
store i64 %46, i64* %sv_0.0.reg2mem
store i64 %54, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%55 = call i128 @FUNC(i64 %sv_1.0.reload)
%56 = call i128 @FUNC(i64 9223372036854775807)
%57 = call i128 @FUNC(i128 %56, i128 %55)
%58 = call i128 @FUNC(i64 4457293557087583675)
call void @FUNC(i128 %58, i128 %57)
br i1 %5, label LBL_5, label LBL_4
LBL_4:
%59 = call i128 @FUNC(i64 %sv_0.0.reload)
%60 = call i128 @FUNC(i64 9223372036854775807)
%61 = call i128 @FUNC(i128 %60, i128 %59)
%62 = call i128 @FUNC(i64 4457293557087583675)
call void @FUNC(i128 %62, i128 %61)
%63 = call i128 @FUNC(i64 %storemerge.reload)
%64 = call i128 @FUNC(i64 9223372036854775807)
%65 = call i128 @FUNC(i128 %64, i128 %63)
%66 = call i128 @FUNC(i64 4457293557087583675)
call void @FUNC(i128 %66, i128 %65)
%67 = add i64 %6, 7
%68 = inttoptr i64 %67 to i8*
store i8 -1, i8* %68, align 1
br label LBL_6
LBL_5:
%69 = call i128 @FUNC(i64 4607182418800017408)
%70 = call i128 @FUNC(i128 %69, i64 %sv_1.0.reload)
%71 = call i64 @__asm_movsd.1(i128 %70)
%72 = call i128 @FUNC(i64 4607182418800017408)
%73 = call i128 @FUNC(i128 %72, i64 %sv_0.0.reload)
%74 = call i64 @__asm_movsd.1(i128 %73)
%75 = call i128 @FUNC(i64 4607182418800017408)
%76 = call i128 @FUNC(i128 %75, i64 %storemerge.reload)
%77 = call i64 @__asm_movsd.1(i128 %76)
%78 = sext i64 %77 to i128
%79 = call i128 @FUNC(i64 %71)
%80 = call i64 @__asm_movsd.1(i128 %79)
%81 = call i128 @FUNC(i64 %80)
%82 = sext i64 %74 to i128
call void @FUNC(i128 %81, i128 %82)
%83 = call i128 @FUNC(i64 %80)
call void @FUNC(i128 %83, i128 %78)
%84 = call i128 @FUNC(i64 %71)
%85 = call i128 @FUNC(i128 %84, i64 %80)
%86 = call i128 @FUNC(i64 4607182418800017408)
%87 = call i128 @FUNC(i128 %86, i64 %80)
%88 = call i128 @FUNC(i128 %85, i128 %87)
%89 = call i64 @__asm_movsd.1(i128 %88)
%90 = call i128 @FUNC(i64 %74)
%91 = call i128 @FUNC(i128 %90, i64 %80)
%92 = call i128 @FUNC(i64 4607182418800017408)
%93 = call i128 @FUNC(i128 %92, i64 %80)
%94 = call i128 @FUNC(i128 %91, i128 %93)
%95 = call i64 @__asm_movsd.1(i128 %94)
%96 = call i128 @FUNC(i64 %77)
%97 = call i128 @FUNC(i128 %96, i64 %80)
%98 = call i128 @FUNC(i64 4607182418800017408)
%99 = call i128 @FUNC(i128 %98, i64 %80)
%100 = call i128 @FUNC(i128 %97, i128 %99)
%101 = call i64 @__asm_movsd.1(i128 %100)
store i32 1, i32* %arg1, align 4
%102 = call i128 @FUNC(i64 %89)
%103 = call i128 @FUNC(i64 4643176031446892544)
%104 = call i128 @FUNC(i128 %103, i128 %102)
%105 = call i32 @FUNC(i128 %104)
%106 = trunc i32 %105 to i8
store i8 %106, i8* %8, align 1
%107 = call i128 @FUNC(i64 %95)
%108 = call i128 @FUNC(i64 4643176031446892544)
%109 = call i128 @FUNC(i128 %108, i128 %107)
%110 = call i32 @FUNC(i128 %109)
%111 = trunc i32 %110 to i8
%112 = add i64 %6, 5
%113 = inttoptr i64 %112 to i8*
store i8 %111, i8* %113, align 1
%114 = call i128 @FUNC(i64 %101)
%115 = call i128 @FUNC(i64 4643176031446892544)
%116 = call i128 @FUNC(i128 %115, i128 %114)
%117 = call i32 @FUNC(i128 %116)
%118 = trunc i32 %117 to i8
%119 = add i64 %6, 6
%120 = inttoptr i64 %119 to i8*
store i8 %118, i8* %120, align 1
%121 = call i128 @FUNC(i64 %80)
%122 = call i128 @FUNC(i64 4643176031446892544)
%123 = call i128 @FUNC(i128 %122, i128 %121)
%124 = call i32 @FUNC(i128 %123)
%125 = trunc i32 %124 to i8
%126 = add i64 %6, 7
%127 = inttoptr i64 %126 to i8*
store i8 %125, i8* %127, align 1
br label LBL_6
LBL_6:
ret i64 %6
uselistorder i64 %80, { 6, 4, 5, 2, 3, 0, 1, 7, 8 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i128 %21, { 2, 1, 0 }
uselistorder i128 %12, { 2, 1, 0 }
uselistorder i8 %9, { 1, 0 }
uselistorder i64 %6, { 0, 4, 5, 6, 3, 7, 8, 1, 2, 9 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i128 (i64)* @DecodePixelGamma, { 2, 1, 0 }
} | 1 |
BinRealVul | rfbClientCleanup_19046 | rfbClientCleanup | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = add i64 %arg1, 584
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = inttoptr i64 %2 to i64*
call void @free(i64* %4)
br label LBL_2
LBL_2:
%5 = add i64 %arg1, 592
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = inttoptr i64 %7 to i64*
call void @free(i64* %9)
br label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %arg1)
%11 = add i64 %arg1, 600
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 %13, i64* %.reg2mem
br i1 %15, label LBL_5, label LBL_6
LBL_5:
%.reload = load i64, i64* %.reg2mem
%16 = inttoptr i64 %.reload to i64*
%17 = load i64, i64* %16, align 8
call void @free(i64* %16)
store i64 %17, i64* %12, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 %17, i64* %.reg2mem
br i1 %19, label LBL_5, label LBL_6
LBL_6:
%20 = add i64 %arg1, 608
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = zext i32 %22 to i64
%25 = call i64 @FUNC(i64 %24)
br label LBL_8
LBL_8:
%26 = add i64 %arg1, 612
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label LBL_10, label LBL_9
LBL_9:
%30 = zext i32 %28 to i64
%31 = call i64 @FUNC(i64 %30)
br label LBL_10
LBL_10:
%32 = add i64 %arg1, 616
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = inttoptr i64 %34 to i64*
call void @free(i64* %35)
%36 = add i64 %arg1, 624
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = inttoptr i64 %38 to i64*
call void @free(i64* %39)
%40 = add i64 %arg1, 632
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %42, 0
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = inttoptr i64 %42 to i64*
call void @free(i64* %44)
br label LBL_12
LBL_12:
%45 = add i64 %arg1, 640
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = icmp eq i64 %47, 0
br i1 %48, label LBL_14, label LBL_13
LBL_13:
%49 = inttoptr i64 %47 to i64*
call void @free(i64* %49)
br label LBL_14
LBL_14:
%50 = inttoptr i64 %arg1 to i64*
call void @free(i64* %50)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64* %12, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @rfbCloseSocket, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder void (i64*)* @free, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 1, 2, 4, 3, 5, 7, 6, 8, 9, 10 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | login_succeeded_8963 | login_succeeded | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
ret i64 %1
} | 0 |
BinRealVul | nlmsg_populate_mdb_fill_5264 | nlmsg_populate_mdb_fill | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3, i32 %arg4, i32 %arg5, i32 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = ptrtoint i32* %arg3 to i64
%1 = ptrtoint i32* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = sext i32 %arg6 to i64
%4 = sext i32 %arg5 to i64
%5 = sext i32 %arg4 to i64
%6 = call i64 @FUNC(i64 %2, i32 %arg4, i32 %arg5, i32 %arg6, i64 8, i64 1, i64 %3, i64 %4, i64 %5, i64 %0, i64 %1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967206, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%9 = call i64 @FUNC(i64 %6)
%10 = inttoptr i64 %9 to i64*
%11 = call i64* @memset(i64* %10, i32 0, i32 8)
%12 = inttoptr i64 %9 to i32*
store i32 4660, i32* %12, align 4
%13 = bitcast i64* %rsi to i32*
%14 = load i32, i32* %13, align 8
%15 = add i64 %9, 4
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = call i64 @FUNC(i64 %2, i64 2)
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_2
LBL_2:
%19 = call i64 @FUNC(i64 %2, i64 3)
%20 = icmp eq i64 %19, 0
br i1 %20, label LBL_5, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %2, i64 4, i64 4, i64 %0)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_5, label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %2, i64 %19)
%26 = call i64 @FUNC(i64 %2, i64 %17)
%27 = call i64 @FUNC(i64 %2, i64 %6)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%28 = call i64 @FUNC(i64 %2, i64 %17)
br label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %2, i64 %6)
store i64 4294967206, 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 %17, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0, 2, 3 }
uselistorder i64 %2, { 6, 4, 2, 1, 0, 3, 5, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @nla_nest_end, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @nla_nest_start, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i64 4294967206, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | cpu_set_log_18674 | cpu_set_log | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
store i32 %0, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = icmp eq %_IO_FILE* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%5 = and i64 %arg1, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%6 = load i32, i32* @gv_2, align 4
%7 = icmp eq i32 %6, 0
%8 = load [12 x i8]*, [12 x i8]** @gv_3, align 8
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%10 = select i1 %7, i8* bitcast (i64* @gv_4 to i8*), i8* bitcast (i8** @gv_5 to i8*)
%11 = call %_IO_FILE* @fopen(i8* %9, i8* %10)
store %_IO_FILE* %11, %_IO_FILE** @gv_1, align 8
%12 = icmp eq %_IO_FILE* %11, null
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = load [12 x i8]*, [12 x i8]** @gv_3, align 8
%15 = getelementptr inbounds [12 x i8], [12 x i8]* %14, i64 0, i64 0
call void @perror(i8* %15)
call void @_exit(i32 1)
unreachable
LBL_5:
%16 = call i32 @setvbuf(%_IO_FILE* %11, i8* bitcast (i8** @gv_6 to i8*), i32 1, i32 4096)
%17 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%18 = call i32 @setvbuf(%_IO_FILE* %17, i8* null, i32 1, i32 0)
store i32 1, i32* @gv_2, align 4
%.pre = load i32, i32* @gv_0, align 4
%19 = zext i32 %.pre to i64
%20 = icmp eq i32 %.pre, 0
%21 = icmp eq i1 %20, false
store i64 %19, i64* %rax.0.reg2mem
br i1 %21, label LBL_8, label LBL_6
LBL_6:
%22 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%23 = ptrtoint %_IO_FILE* %22 to i64
%24 = icmp eq %_IO_FILE* %22, null
store i64 %23, i64* %rax.0.reg2mem
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = call i32 @fclose(%_IO_FILE* nonnull %22)
%26 = sext i32 %25 to i64
store %_IO_FILE* null, %_IO_FILE** @gv_1, align 8
store i64 %26, 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* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32 (%_IO_FILE*, i8*, i32, i32)* @setvbuf, { 1, 0 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder i32 0, { 3, 0, 4, 5, 1, 2 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | __open_dso_17694 | __open_dso | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64* @malloc(i32 4096)
%3 = icmp eq i64* %2, null
%4 = icmp eq i1 %3, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = ptrtoint i64* %2 to i64
%6 = trunc i64 %1 to i32
%7 = ptrtoint i64* %arg2 to i64
%8 = icmp eq i64* %arg2, null
%spec.select = select i1 %8, i64 ptrtoint (i64* @gv_0 to i64), i64 %7
%9 = ptrtoint i32* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i32 %6, i64 %spec.select, i64 %5, i64 4096)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
call void @free(i64* %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%13 = call i64 @FUNC(i64 %5)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_5
LBL_4:
%17 = call i64 @FUNC(i64 %5)
call void @free(i64* %2)
%18 = and i64 %17, 4294967295
store i64 %18, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %2, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | decode_header_7493 | decode_header | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi6.reg2mem = alloca i32*
%sv_0.0.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = and i64 %arg2, 1048576
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = and i64 %arg2, 524288
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
store i32 0, i32* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = bitcast i64* %arg1 to i32*
store i32 1, i32* %6, align 4
store i32 1, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%7 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%8 = ashr exact i64 %sext, 32
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%9 = udiv i64 %8, 131072
%10 = trunc i64 %9 to i32
%11 = urem i32 %10, 4
%12 = sub nsw i32 4, %11
%13 = add i64 %7, 4
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = udiv i64 %8, 1024
%16 = trunc i64 %15 to i32
%17 = urem i32 %16, 4
%18 = mul i32 %17, 4
%19 = zext i32 %18 to i64
%20 = add i64 %19, ptrtoint (i32** @gv_0 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = bitcast i64* %rdi to i32*
%24 = load i32, i32* %23, align 8
%25 = add i32 %24, %storemerge.reload
%26 = urem i32 %25, 32
%27 = ashr i32 %22, %26
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 1, i64* %rax.0.reg2mem
br i1 %29, label LBL_4, label LBL_26
LBL_4:
%30 = mul i32 %25, 3
%31 = add i32 %30, %17
%32 = add i64 %7, 8
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = and i64 %arg2, 65536
%35 = icmp eq i64 %34, 0
%36 = zext i1 %35 to i32
%37 = add i64 %7, 12
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
%39 = udiv i64 %8, 4096
%40 = trunc i64 %39 to i32
%41 = urem i32 %40, 16
%42 = udiv i64 %8, 512
%43 = trunc i64 %42 to i32
%44 = urem i32 %43, 2
%45 = udiv i64 %8, 64
%46 = trunc i64 %45 to i32
%47 = urem i32 %46, 4
%48 = add i64 %7, 16
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = udiv i64 %8, 16
%51 = trunc i64 %50 to i32
%52 = urem i32 %51, 4
%53 = add i64 %7, 20
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = load i32, i32* %49, align 4
%56 = icmp eq i32 %55, 1
%57 = icmp eq i1 %56, false
%58 = add i64 %7, 24
%59 = inttoptr i64 %58 to i32*
%. = select i1 %57, i32 2, i32 1
store i32 %., i32* %59, align 4
%60 = icmp eq i32 %41, 0
br i1 %60, label LBL_11, label LBL_5
LBL_5:
%61 = load i32, i32* %23, align 8
%62 = load i32, i32* %14, align 4
%63 = add i32 %62, -1
%64 = zext i32 %41 to i64
%65 = sext i32 %61 to i64
%66 = sext i32 %63 to i64
%67 = mul nsw i64 %65, 3
%68 = add nsw i64 %67, %66
%69 = mul i64 %68, 16
%70 = or i64 %69, %64
%71 = mul i64 %70, 4
%72 = add i64 %71, ptrtoint (i32** @gv_1 to i64)
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = mul i32 %74, 1000
%76 = add i64 %7, 28
%77 = inttoptr i64 %76 to i32*
store i32 %75, i32* %77, align 4
%78 = load i32, i32* %14, align 4
%79 = icmp eq i32 %78, 1
br i1 %79, label LBL_7, label LBL_6
LBL_6:
%80 = icmp eq i32 %78, 2
%81 = mul i32 %74, 144000
br i1 %80, label LBL_8, label LBL_9
LBL_7:
%82 = mul i32 %74, 12000
%83 = ashr i32 %82, 31
%84 = zext i32 %82 to i64
%85 = zext i32 %83 to i64
%86 = mul i64 %85, 4294967296
%87 = or i64 %86, %84
%88 = zext i32 %27 to i64
%89 = sdiv i64 %87, %88
%90 = trunc i64 %89 to i32
%91 = add i32 %44, %90
%92 = mul i32 %91, 4
store i32 %92, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%93 = ashr i32 %81, 31
%94 = zext i32 %81 to i64
%95 = zext i32 %93 to i64
%96 = mul i64 %95, 4294967296
%97 = or i64 %96, %94
%98 = zext i32 %27 to i64
%99 = sdiv i64 %97, %98
%100 = trunc i64 %99 to i32
%101 = add i32 %44, %100
store i32 %101, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_9:
%102 = zext i32 %81 to i64
%103 = load i32, i32* %23, align 8
%104 = urem i32 %103, 32
%105 = shl i32 %27, %104
%106 = ashr i32 %81, 31
%107 = zext i32 %106 to i64
%108 = mul i64 %107, 4294967296
%109 = or i64 %108, %102
%110 = zext i32 %105 to i64
%111 = sdiv i64 %109, %110
%112 = trunc i64 %111 to i32
%113 = add i32 %44, %112
store i32 %113, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%114 = add i64 %7, 32
%115 = inttoptr i64 %114 to i32*
store i32 %sv_0.0.reload, i32* %115, align 4
store i32* %77, i32** %.pre-phi6.reg2mem
br label LBL_17
LBL_11:
%116 = add i64 %7, 40
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = icmp eq i32 %118, 0
%120 = icmp eq i1 %119, false
store i64 1, i64* %rax.0.reg2mem
br i1 %120, label LBL_12, label LBL_26
LBL_12:
%121 = add i64 %7, 32
%122 = inttoptr i64 %121 to i32*
store i32 %118, i32* %122, align 4
%123 = load i32, i32* %14, align 4
%124 = icmp eq i32 %123, 1
br i1 %124, label LBL_14, label LBL_13
LBL_13:
%125 = icmp eq i32 %123, 2
%126 = add i32 %118, %44
store i32 %126, i32* %122, align 4
br i1 %125, label LBL_15, label LBL_16
LBL_14:
%127 = mul i32 %44, 4
%128 = add i32 %118, %127
store i32 %128, i32* %122, align 4
%129 = mul i32 %128, %27
%130 = sdiv i32 %129, 48000
%131 = add i64 %7, 28
%132 = inttoptr i64 %131 to i32*
store i32 %130, i32* %132, align 4
store i32* %132, i32** %.pre-phi6.reg2mem
br label LBL_17
LBL_15:
%133 = mul i32 %126, %27
%134 = sdiv i32 %133, 144000
%135 = add i64 %7, 28
%136 = inttoptr i64 %135 to i32*
store i32 %134, i32* %136, align 4
store i32* %136, i32** %.pre-phi6.reg2mem
br label LBL_17
LBL_16:
%137 = load i32, i32* %23, align 8
%138 = urem i32 %137, 32
%139 = shl i32 %27, %138
%140 = mul i32 %139, %126
%141 = sdiv i32 %140, 144000
%142 = add i64 %7, 28
%143 = inttoptr i64 %142 to i32*
store i32 %141, i32* %143, align 4
store i32* %143, i32** %.pre-phi6.reg2mem
br label LBL_17
LBL_17:
%.pre-phi6.reload = load i32*, i32** %.pre-phi6.reg2mem
%144 = add i64 %7, 36
%145 = inttoptr i64 %144 to i32*
store i32 %27, i32* %145, align 4
%146 = load i32, i32* %.pre-phi6.reload, align 4
%147 = zext i32 %146 to i64
%148 = zext i32 %27 to i64
%149 = load i32, i32* %14, align 4
%150 = zext i32 %149 to i64
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i64 %150, i64 %148, i64 %147)
%152 = load i32, i32* %59, align 4
%153 = icmp eq i32 %152, 2
%154 = icmp eq i1 %153, false
br i1 %154, label LBL_24, label LBL_18
LBL_18:
%155 = load i32, i32* %14, align 4
%156 = icmp eq i32 %155, 3
%157 = icmp eq i1 %156, false
br i1 %157, label LBL_23, label LBL_19
LBL_19:
%158 = load i32, i32* %54, align 4
%159 = urem i32 %158, 2
%160 = icmp eq i32 %159, 0
store i32 %158, i32* %.reg2mem
br i1 %160, label LBL_21, label LBL_20
LBL_20:
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i32, i32* %54, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_21
LBL_21:
%.reload = load i32, i32* %.reg2mem
%162 = and i32 %.reload, 2
%163 = icmp eq i32 %162, 0
br i1 %163, label LBL_23, label LBL_22
LBL_22:
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0))
br label LBL_23
LBL_23:
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0))
br label LBL_25
LBL_24:
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0))
br label LBL_25
LBL_25:
%167 = call i32 @putchar(i32 10)
store i64 0, i64* %rax.0.reg2mem
br label LBL_26
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %126, { 1, 0, 2 }
uselistorder i32* %122, { 1, 0, 2 }
uselistorder i32 %74, { 1, 0, 2 }
uselistorder i32 %41, { 1, 0 }
uselistorder i32 %27, { 2, 7, 6, 1, 0, 3, 4, 5, 8 }
uselistorder i32 %25, { 1, 0 }
uselistorder i32* %23, { 2, 0, 1, 3 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32* %14, { 2, 3, 4, 0, 1, 5 }
uselistorder i64 %7, { 4, 2, 3, 5, 7, 6, 0, 1, 8, 9, 10, 11, 12, 13 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi6.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 (i8*, ...)* @printf, { 4, 0, 2, 1, 3 }
uselistorder i32 2, { 6, 0, 4, 3, 5, 2, 1 }
uselistorder i32 4, { 0, 1, 3, 4, 2, 5, 7, 6 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_26, { 2, 0, 1 }
} | 1 |
BinRealVul | gen_wsr_ps_14970 | gen_wsr_ps | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%spec.select = select i1 %5, i32 63, i32 127
%6 = mul i64 %arg2, 4
%7 = and i64 %6, 17179869180
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = zext i32 %arg3 to i64
%13 = call i64 @FUNC(i64 %11, i64 %12, i32 %spec.select)
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i64 %2, i64 %14, i64 4294967295)
ret i64 %15
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | xmlattr_cleanup_9799 | xmlattr_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge1.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%3 = add i64 %storemerge1.reload, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %storemerge1.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
call void @free(i64* %8)
%9 = add i64 %storemerge1.reload, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i64*
call void @free(i64* %12)
call void @free(i64* %6)
%13 = icmp eq i64 %5, 0
%14 = icmp eq i1 %13, false
store i64 %5, i64* %storemerge1.reg2mem
br i1 %14, label LBL_1, label LBL_2
LBL_2:
store i64 0, i64* %arg1, align 8
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
store i64 %0, i64* %16, align 8
ret i64 %0
uselistorder i64 %storemerge1.reload, { 0, 2, 1 }
uselistorder i64 %0, { 3, 1, 2, 0 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | rc4030_unrealize_17154 | rc4030_unrealize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %1, 8
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %1, 16
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %1, 24
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %1, 32
%12 = call i64 @FUNC(i64 %11)
%13 = add i64 %1, 40
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %13, %14
%16 = call i64 @FUNC(i64 %11, i64 %15)
%17 = call i64 @FUNC(i64 %15)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %17
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @object_unparent, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | __filterQuotedShell_11949 | __filterQuotedShell | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i8*
%sv_1.02.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i8*
%.reg2mem = alloca i8
%0 = call i64 @FUNC(i64 %arg1, i64 0)
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = add i32 %2, 1
%4 = call i64* @malloc(i32 %3)
%5 = icmp eq i64* %4, null
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = bitcast i64* %4 to i8*
%8 = load i8, i8* %1, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
store i8 %8, i8* %.reg2mem
store i8* %7, i8** %sv_0.13.reg2mem
store i64 %arg1, i64* %sv_1.02.reg2mem
store i8* %7, i8** %sv_0.1.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_6
LBL_2:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%sv_0.13.reload = load i8*, i8** %sv_0.13.reg2mem
%.reload = load i8, i8* %.reg2mem
%11 = icmp ult i8 %.reload, 62
%12 = icmp ne i1 %11, true
%13 = icmp eq i1 %12, false
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = urem i8 %.reload, 64
%16 = icmp eq i8 %15, 0
%17 = zext i8 %15 to i64
%18 = lshr i64 2305843013508670464, %17
%.op = urem i64 %18, 2
%19 = icmp eq i64 %.op, 0
%20 = or i1 %16, %19
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %21, false
%23 = icmp eq i1 %22, false
store i8* %sv_0.13.reload, i8** %sv_0.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = ptrtoint i8* %sv_0.13.reload to i64
%25 = add i64 %24, 1
%26 = inttoptr i64 %25 to i8*
store i8 %.reload, i8* %sv_0.13.reload, align 1
store i8* %26, i8** %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%27 = add i64 %sv_1.02.reload, 1
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 0
%31 = icmp eq i1 %30, false
store i8 %29, i8* %.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.13.reg2mem
store i64 %27, i64* %sv_1.02.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.1.lcssa.reg2mem
br i1 %31, label LBL_2, label LBL_6
LBL_6:
%32 = ptrtoint i64* %4 to i64
%sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem
store i8 0, i8* %sv_0.1.lcssa.reload, align 1
store i64 %32, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8 %.reload, { 1, 2, 0 }
uselistorder i8* %sv_0.13.reload, { 1, 2, 0 }
uselistorder i64* %4, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.02.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 2, 3, 1, 0 }
uselistorder i1 false, { 6, 3, 1, 4, 5, 2, 0, 7 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | decrypt_callback_9806 | decrypt_callback | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.21.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%sv_2.1.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_1.13.reg2mem = alloca i64
%sv_2.14.reg2mem = alloca i32
%sv_2.1.ph.reg2mem = alloca i32
%sv_1.1.ph.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %arg3 to i64
%6 = zext i32 %4 to i64
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %3, align 4
%9 = icmp ult i32 %arg3, 512
store i64 %0, i64* %sv_1.0.reg2mem
store i32 %arg3, i32* %sv_2.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %6, i64 %0, i64 %0)
%11 = add i64 %0, 512
%12 = add i32 %arg3, -512
store i64 %11, i64* %sv_1.0.reg2mem
store i32 %12, i32* %sv_2.0.reg2mem
br label LBL_2
LBL_2:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%13 = icmp ult i32 %sv_2.0.reload, 256
store i64 %sv_1.0.reload, i64* %sv_1.1.ph.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.1.ph.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %6, i64 %sv_1.0.reload, i64 %sv_1.0.reload)
%15 = add i64 %sv_1.0.reload, 256
%16 = add i32 %sv_2.0.reload, -256
store i64 %15, i64* %sv_1.1.ph.reg2mem
store i32 %16, i32* %sv_2.1.ph.reg2mem
br label LBL_4
LBL_4:
%sv_2.1.ph.reload = load i32, i32* %sv_2.1.ph.reg2mem
%sv_1.1.ph.reload = load i64, i64* %sv_1.1.ph.reg2mem
%17 = icmp ult i32 %sv_2.1.ph.reload, 32
%18 = icmp eq i1 %17, false
store i32 %sv_2.1.ph.reload, i32* %sv_2.14.reg2mem
store i64 %sv_1.1.ph.reload, i64* %sv_1.13.reg2mem
store i64 %sv_1.1.ph.reload, i64* %sv_1.1.lcssa.reg2mem
store i32 %sv_2.1.ph.reload, i32* %sv_2.1.lcssa.reg2mem
br i1 %18, label LBL_5, label LBL_6
LBL_5:
%sv_1.13.reload = load i64, i64* %sv_1.13.reg2mem
%sv_2.14.reload = load i32, i32* %sv_2.14.reg2mem
%19 = call i64 @FUNC(i64 %6, i64 %sv_1.13.reload, i64 %sv_1.13.reload)
%20 = add i64 %sv_1.13.reload, 32
%21 = add i32 %sv_2.14.reload, -32
%22 = icmp ult i32 %21, 32
%23 = icmp eq i1 %22, false
store i32 %21, i32* %sv_2.14.reg2mem
store i64 %20, i64* %sv_1.13.reg2mem
store i64 %20, i64* %sv_1.1.lcssa.reg2mem
store i32 %21, i32* %sv_2.1.lcssa.reg2mem
br i1 %23, label LBL_5, label LBL_6
LBL_6:
%sv_2.1.lcssa.reload = load i32, i32* %sv_2.1.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%24 = udiv i32 %sv_2.1.lcssa.reload, 16
%25 = icmp ugt i32 %sv_2.1.lcssa.reload, 15
store i32 0, i32* %sv_0.02.reg2mem
store i64 %sv_1.1.lcssa.reload, i64* %sv_1.21.reg2mem
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %25, label LBL_7, label LBL_9
LBL_7:
%sv_1.21.reload = load i64, i64* %sv_1.21.reg2mem
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%26 = call i64 @FUNC(i64 %6, i64 %sv_1.21.reload, i64 %sv_1.21.reload)
%27 = add nuw nsw i32 %sv_0.02.reload, 1
%28 = add i64 %sv_1.21.reload, 16
%29 = icmp ugt i32 %24, %27
store i32 %27, i32* %sv_0.02.reg2mem
store i64 %28, i64* %sv_1.21.reg2mem
br i1 %29, label LBL_7, label LBL_8
LBL_8:
%phitmp = zext i32 %27 to i64
store i64 %phitmp, i64* %sv_0.0.lcssa.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i32 %27, { 1, 0, 2 }
uselistorder i32 %sv_2.1.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_1.13.reload, { 2, 0, 1 }
uselistorder i64 %sv_1.0.reload, { 1, 3, 2, 0 }
uselistorder i32 %sv_2.0.reload, { 2, 0, 1 }
uselistorder i64 %6, { 2, 3, 1, 0, 4 }
uselistorder i64 %0, { 3, 1, 2, 0 }
uselistorder i64* %sv_1.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.13.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.21.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 32, { 1, 0 }
uselistorder i32 %arg3, { 1, 0, 3, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | run_filter_8792 | run_filter | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%8 = mul nsw i64 %.reload, 6
%9 = add i64 %6, %8
%10 = call i64 @FUNC(i64 %2, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_6
LBL_3:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%14 = add i32 %storemerge2.reload, 1
%15 = sext i32 %14 to i64
%16 = icmp sgt i64 %7, %15
store i64 %15, i64* %.reg2mem
store i32 %14, i32* %storemerge2.reg2mem
br i1 %16, label LBL_2, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = ptrtoint i32* %arg1 to i64
%21 = add i64 %20, 64
%22 = call i64 @FUNC(i64 %21, i64 %2)
store i64 %22, 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, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_6, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | monitor_child_postauth_10074 | monitor_child_postauth | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = call i32 @close(i32 %3)
store i32 -1, i32* %arg1, align 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call void (i32)* @signal(i32 1, void (i32)* inttoptr (i64 4198772 to void (i32)*))
%11 = call void (i32)* @signal(i32 15, void (i32)* inttoptr (i64 4198772 to void (i32)*))
%12 = call void (i32)* @signal(i32 2, void (i32)* inttoptr (i64 4198772 to void (i32)*))
%13 = call void (i32)* @signal(i32 25, void (i32)* inttoptr (i64 1 to void (i32)*))
%14 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = load i64, i64* @gv_0, align 8
store i64 %16, i64* @gv_1, align 8
%17 = call i64 @FUNC(i64 %16, i64 1, i64 1)
%18 = load i64, i64* @gv_1, align 8
%19 = call i64 @FUNC(i64 %18, i64 2, i64 1)
%20 = load i64, i64* @gv_1, align 8
%21 = call i64 @FUNC(i64 %20, i64 3, i64 1)
br label LBL_3
LBL_2:
%22 = load i64, i64* @gv_2, align 8
store i64 %22, i64* @gv_1, align 8
%23 = call i64 @FUNC(i64 %22, i64 3, i64 1)
br label LBL_3
LBL_3:
%24 = load i32, i32* @gv_3, align 4
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = load i64, i64* @gv_1, align 8
%28 = call i64 @FUNC(i64 %27, i64 4, i64 1)
%29 = load i64, i64* @gv_1, align 8
%30 = call i64 @FUNC(i64 %29, i64 5, i64 1)
br label LBL_5
LBL_5:
br label LBL_6
LBL_6:
%31 = load i64, i64* @gv_1, align 8
%32 = call i64 @FUNC(i64 %2, i64 %31, i64 0)
br label LBL_6
uselistorder i64 (i64, i64, i64)* @monitor_permit, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 2, 3, 4, 5, 7, 6, 0 }
uselistorder void (i32)* (i32, void (i32)*)* @signal, { 0, 2, 1, 3 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | gen_load_16295 | gen_load | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg2 to i32
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = icmp eq i32 %0, 8
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = icmp sgt i32 %0, 8
br i1 %3, label LBL_4, label LBL_2
LBL_2:
%4 = icmp eq i32 %0, 4
br i1 %4, label LBL_5, label LBL_3
LBL_3:
%5 = icmp slt i32 %0, 5
%.off = add i32 %0, -1
%switch = icmp ult i32 %.off, 2
%or.cond = icmp eq i1 %5, %switch
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_5:
%8 = load i32, i32* @gv_3, align 4
store i32 %8, i32* bitcast (i64* @gv_4 to i32*), align 8
ret i64 0
uselistorder i32 %0, { 3, 0, 2, 1, 4 }
uselistorder i32 8, { 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
} | 1 |
BinRealVul | signed_shift_17281 | signed_shift | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge5.reg2mem = alloca i64
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %arg2 to i32
%sext3 = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext3, 32
%3 = icmp slt i32 %1, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %0, 4294967295
%5 = trunc i64 %2 to i32
%6 = urem i32 %5, 32
%7 = icmp eq i32 %6, 0
%8 = trunc i64 %0 to i32
%9 = shl i32 %8, %6
%10 = zext i32 %9 to i64
%storemerge = select i1 %7, i64 %4, i64 %10
store i64 %storemerge, i64* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%11 = trunc i64 %2 to i32
%12 = sub i32 0, %11
%13 = and i64 %0, 4294967295
%14 = urem i32 %12, 32
%15 = icmp eq i32 %14, 0
%16 = trunc i64 %0 to i32
%17 = ashr i32 %16, %14
%18 = zext i32 %17 to i64
%storemerge4 = select i1 %15, i64 %13, i64 %18
store i64 %storemerge4, i64* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
ret i64 %storemerge5.reload
uselistorder i32 %14, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | vp9_get_frame_buffer_18722 | vp9_get_frame_buffer | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi9.reg2mem = alloca i64*
%.pre-phi10.reg2mem = alloca i64*
%.lcssa1.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_10
LBL_1:
%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 = icmp eq i64 %5, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_10, label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg3 to i64
%8 = add i64 %2, 16
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%9 = mul nsw i64 %.reload, 24
%10 = add i64 %8, %9
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
store i64 %.reload, i64* %.lcssa1.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%14 = add i32 %storemerge2.reload, 1
%15 = sext i32 %14 to i64
%16 = icmp ugt i64 %5, %15
store i64 %15, i64* %.reg2mem
store i32 %14, i32* %storemerge2.reg2mem
store i64 %15, i64* %.lcssa1.reg2mem
br i1 %16, label LBL_3, label LBL_5
LBL_5:
%.lcssa1.reload = load i64, i64* %.lcssa1.reg2mem
%17 = icmp eq i64 %5, %.lcssa1.reload
%18 = icmp eq i1 %17, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_10
LBL_6:
%19 = mul nsw i64 %.lcssa1.reload, 24
%20 = add i64 %19, %2
%21 = add i64 %20, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp ult i64 %23, %arg2
%25 = inttoptr i64 %20 to i64*
store i64* %25, i64** %.pre-phi10.reg2mem
store i64* %22, i64** %.pre-phi9.reg2mem
store i64 %20, i64* %.pre-phi.reg2mem
br i1 %24, label LBL_7, label LBL_9
LBL_7:
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i64 %arg2)
store i64 %27, i64* %25, align 8
%28 = add i64 %26, %19
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_8, label LBL_10
LBL_8:
%33 = add i64 %28, 8
%34 = inttoptr i64 %33 to i64*
store i64 %arg2, i64* %34, align 8
store i64* %29, i64** %.pre-phi10.reg2mem
store i64* %34, i64** %.pre-phi9.reg2mem
store i64 %28, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi9.reload = load i64*, i64** %.pre-phi9.reg2mem
%.pre-phi10.reload = load i64*, i64** %.pre-phi10.reg2mem
%35 = load i64, i64* %.pre-phi10.reload, align 8
store i64 %35, i64* %arg3, align 8
%36 = load i64, i64* %.pre-phi9.reload, align 8
%37 = add i64 %7, 8
%38 = inttoptr i64 %37 to i64*
store i64 %36, i64* %38, align 8
%39 = add i64 %.pre-phi.reload, 16
%40 = inttoptr i64 %39 to i32*
store i32 1, i32* %40, align 4
%41 = add i64 %7, 16
%42 = inttoptr i64 %41 to i64*
store i64 %.pre-phi.reload, i64* %42, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %25, { 1, 2, 0 }
uselistorder i64 %.lcssa1.reload, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi10.reg2mem, { 0, 2, 1 }
uselistorder i64** %.pre-phi9.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 3, 1, 4 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder i64 4294967295, { 1, 2, 0, 3 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 4, 1, 2, 0, 3 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | snd_timer_user_ccallback_11331 | snd_timer_user_ccallback | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%3 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = icmp slt i32 %3, 0
%6 = trunc i64 %4 to i32
%7 = icmp sgt i32 %6, 1
%or.cond = or i1 %5, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg3 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
store i64 %11, i64* %arg1, align 8
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
br label LBL_2
LBL_2:
%14 = add i64 %1, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = urem i32 %6, 32
%18 = shl i32 1, %17
%storemerge = sext i32 %18 to i64
%19 = and i64 %16, %storemerge
%20 = icmp eq i64 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_5, label LBL_3
LBL_3:
%21 = add i64 %1, 24
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_4
LBL_4:
store i64 %4, i64* %sv_0, align 8
%25 = add i64 %1, 32
%26 = call i64 @FUNC(i64 %25, i64 %2)
%27 = bitcast i64* %sv_0 to i32*
%28 = call i64 @FUNC(i64 %1, i32* nonnull %27)
%29 = call i64 @FUNC(i64 %25, i64 %2)
%30 = add i64 %1, 72
%31 = call i64 @FUNC(i64 %30, i64 29, i64 1)
%32 = add i64 %1, 80
%33 = call i64 @FUNC(i64 %32)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %11, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %1, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | pmcraid_reinit_cfgtable_done_9807 | pmcraid_reinit_cfgtable_done | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = and i64 %10, 4294967295
%12 = urem i64 %3, 256
%13 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %11, i64 %4, i64 %2, i64 %1)
%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_2, label LBL_1
LBL_1:
store i32 0, i32* %15, align 4
%18 = call i64 @FUNC(i64 %5)
br label LBL_2
LBL_2:
%19 = call i64 @FUNC(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %11, i64 %4, i64 %2, i64 %1)
%20 = inttoptr i64 %6 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
ret i64 %22
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pmcraid_info, { 1, 0 }
} | 0 |
BinRealVul | kvm_arch_init_vcpu_16812 | kvm_arch_init_vcpu | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = trunc i64 %1 to i32
store i32 %2, i32* %sv_0, align 4
%3 = ptrtoint i32* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 0, i32* nonnull %sv_0)
%5 = load i64, i64* @gv_0, align 8
%6 = call i64 @FUNC(i64 %5, i64 4198739, i64 %3)
store i64 %6, i64* @gv_1, align 8
%7 = and i64 %4, 4294967295
ret i64 %7
} | 1 |
BinRealVul | unit_name_path_escape_5798 | unit_name_path_escape | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rbx.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, 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 ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%4 = inttoptr i64 %arg1 to i8*
%5 = call i8* @strdup(i8* %4)
%6 = ptrtoint i8* %5 to i64
store i64 %6, i64* %sv_0, align 8
%7 = icmp eq i8* %5, null
%8 = icmp eq i1 %7, false
store i64 4294967284, i64* %rbx.0.reg2mem
br i1 %8, label LBL_5, label LBL_11
LBL_5:
%9 = call i64 @FUNC(i64 %6, i64 0)
%10 = load i64, i64* %sv_0, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_7, label LBL_6
LBL_6:
%14 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0))
%15 = ptrtoint i8* %14 to i64
store i64 %15, i64* %storemerge.reg2mem
br label LBL_9
LBL_7:
%16 = load i64, i64* %sv_0, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967274, i64* %rbx.0.reg2mem
br i1 %20, label LBL_8, label LBL_11
LBL_8:
%21 = load i64, i64* %sv_0, align 8
%22 = call i64 @FUNC(i64 %21, i64* nonnull @gv_5)
%23 = load i64, i64* %sv_0, align 8
%24 = call i64 @FUNC(i64 %23, i64* nonnull @gv_5)
%25 = call i64 @FUNC(i64 %24)
store i64 %25, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%26 = icmp eq i64 %storemerge.reload, 0
%27 = icmp eq i1 %26, false
store i64 4294967284, i64* %rbx.0.reg2mem
br i1 %27, label LBL_10, label LBL_11
LBL_10:
store i64 %storemerge.reload, i64* %arg2, align 8
store i64 0, i64* %rbx.0.reg2mem
br label LBL_11
LBL_11:
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
call void @free(i64* nonnull %sv_0)
ret i64 %rbx.0.reload
uselistorder i64 %storemerge.reload, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rbx.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i8* (i8*)* @strdup, { 2, 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder label LBL_11, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | intel_pt_insn_decoder_7683 | intel_pt_insn_decoder | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi7.reg2mem = alloca i32*
%.pre-phi9.reg2mem = alloca i32*
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = bitcast i64* %arg2 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %3, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
br label LBL_36
LBL_2:
%15 = trunc i64 %1 to i8
%16 = icmp eq i8 %15, 15
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = icmp ult i8 %15, 112
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %17, label LBL_27, label LBL_4
LBL_4:
%18 = urem i64 %1, 256
%19 = add nuw nsw i64 %18, 4294967184
%20 = and i64 %19, 4294967295
store i64 %20, i64* @0, align 8
%trunc = trunc i64 %19 to i32
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
switch i32 %trunc, label LBL_27 [
i32 0, label LBL_14
i32 1, label LBL_14
i32 2, label LBL_14
i32 3, label LBL_14
i32 4, label LBL_14
i32 5, label LBL_14
i32 6, label LBL_14
i32 7, label LBL_14
i32 8, label LBL_14
i32 9, label LBL_14
i32 10, label LBL_14
i32 11, label LBL_14
i32 12, label LBL_14
i32 13, label LBL_14
i32 14, label LBL_14
i32 15, label LBL_14
i32 42, label LBL_19
i32 82, label LBL_15
i32 83, label LBL_15
i32 90, label LBL_15
i32 91, label LBL_15
i32 92, label LBL_17
i32 93, label LBL_17
i32 94, label LBL_17
i32 95, label LBL_16
i32 112, label LBL_20
i32 113, label LBL_20
i32 114, label LBL_20
i32 115, label LBL_21
i32 120, label LBL_18
i32 121, label LBL_22
i32 122, label LBL_23
i32 123, label LBL_22
i32 143, label LBL_24
]
LBL_5:
%21 = add i64 %3, 1
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp ugt i8 %23, -113
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %24, label LBL_27, label LBL_6
LBL_6:
%25 = icmp slt i8 %23, 0
store i32 3, i32* %sv_1.0.reg2mem
store i32 2, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_27, label LBL_7
LBL_7:
%26 = icmp eq i8 %23, 53
br i1 %26, label LBL_13, label LBL_8
LBL_8:
%27 = icmp ugt i8 %23, 53
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %27, label LBL_27, label LBL_9
LBL_9:
%28 = icmp eq i8 %23, 52
br i1 %28, label LBL_12, label LBL_10
LBL_10:
%29 = icmp ugt i8 %23, 52
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %29, label LBL_27, label LBL_11
LBL_11:
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
switch i8 %23, label LBL_27 [
i8 5, label LBL_12
i8 7, label LBL_13
]
LBL_12:
store i32 1, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_13:
store i32 2, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_14:
store i32 3, i32* %sv_1.0.reg2mem
store i32 2, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_15:
store i32 4, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_16:
store i32 5, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_17:
store i32 6, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_18:
store i32 7, i32* %sv_1.0.reg2mem
store i32 3, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_19:
store i32 7, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_20:
store i32 8, i32* %sv_1.0.reg2mem
store i32 2, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_21:
store i32 3, i32* %sv_1.0.reg2mem
store i32 2, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_22:
store i32 9, i32* %sv_1.0.reg2mem
store i32 3, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_23:
store i32 9, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_24:
%30 = add i64 %3, 2
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = udiv i8 %32, 8
%34 = urem i8 %33, 8
%35 = icmp ugt i8 %34, 3
br i1 %35, label LBL_26, label LBL_25
LBL_25:
%36 = icmp ugt i8 %34, 1
%spec.select = select i1 %36, i32 7, i32 0
%spec.select1 = zext i1 %36 to i32
store i32 %spec.select, i32* %sv_1.0.reg2mem
store i32 %spec.select1, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_26:
%37 = or i8 %34, 1
%38 = icmp eq i8 %37, 5
%spec.select2 = select i1 %38, i32 9, i32 0
%spec.select3 = zext i1 %38 to i32
store i32 %spec.select2, i32* %sv_1.0.reg2mem
store i32 %spec.select3, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_27:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%39 = bitcast i64* %arg2 to i32*
store i32 %sv_1.0.reload, i32* %39, align 4
%40 = add i64 %2, 4
%41 = inttoptr i64 %40 to i32*
store i32 %sv_0.0.reload, i32* %41, align 4
%42 = add i64 %3, 12
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %2, 8
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = icmp ne i32 %sv_0.0.reload, 2
%48 = icmp eq i32 %sv_0.0.reload, 3
%49 = icmp eq i1 %48, false
%or.cond5 = icmp eq i1 %47, %49
br i1 %or.cond5, label LBL_36, label LBL_28
LBL_28:
%50 = add i64 %3, 4
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = icmp eq i32 %52, 4
br i1 %53, label LBL_33, label LBL_29
LBL_29:
%54 = icmp sgt i32 %52, 4
br i1 %54, label LBL_34, label LBL_30
LBL_30:
switch i32 %52, label LBL_34 [
i32 1, label LBL_31
i32 2, label LBL_32
]
LBL_31:
%55 = add i64 %3, 8
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %2, 12
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
store i32* %59, i32** %.pre-phi9.reg2mem
store i32* %56, i32** %.pre-phi7.reg2mem
br label LBL_35
LBL_32:
%60 = add i64 %3, 8
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = urem i32 %62, 65536
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %64)
%66 = trunc i64 %65 to i32
%67 = add i64 %2, 12
%68 = inttoptr i64 %67 to i32*
store i32 %66, i32* %68, align 4
store i32* %68, i32** %.pre-phi9.reg2mem
store i32* %61, i32** %.pre-phi7.reg2mem
br label LBL_35
LBL_33:
%69 = add i64 %3, 8
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %72)
%74 = trunc i64 %73 to i32
%75 = add i64 %2, 12
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
store i32* %76, i32** %.pre-phi9.reg2mem
store i32* %70, i32** %.pre-phi7.reg2mem
br label LBL_35
LBL_34:
%77 = add i64 %2, 12
%78 = inttoptr i64 %77 to i32*
store i32 0, i32* %78, align 4
%.pre = add i64 %3, 8
%.pre6 = inttoptr i64 %.pre to i32*
store i32* %78, i32** %.pre-phi9.reg2mem
store i32* %.pre6, i32** %.pre-phi7.reg2mem
br label LBL_35
LBL_35:
%.pre-phi7.reload = load i32*, i32** %.pre-phi7.reg2mem
%.pre-phi9.reload = load i32*, i32** %.pre-phi9.reg2mem
%79 = load i32, i32* %.pre-phi7.reload, align 4
store i32 %79, i32* %.pre-phi9.reload, align 4
br label LBL_36
LBL_36:
ret i64 %2
uselistorder i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i8 %34, { 2, 1, 0 }
uselistorder i8 %15, { 1, 0 }
uselistorder i64 %3, { 0, 5, 3, 4, 6, 7, 2, 8, 1, 9 }
uselistorder i64 %2, { 0, 5, 6, 3, 4, 7, 8, 1, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 1, 2, 14, 13, 11, 10, 6, 12, 8, 9, 7, 5, 20, 18, 4, 17, 19, 3, 21, 15, 16 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 1, 2, 14, 13, 11, 10, 6, 12, 8, 9, 7, 5, 20, 18, 4, 17, 19, 3, 21, 15, 16 }
uselistorder i32** %.pre-phi9.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32** %.pre-phi7.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i8 8, { 1, 0 }
uselistorder i8 5, { 1, 0 }
uselistorder i32 9, { 2, 1, 0, 3 }
uselistorder i32 7, { 2, 0, 1, 3 }
uselistorder i32 4, { 3, 1, 0, 2 }
uselistorder i32 3, { 5, 1, 4, 0, 3, 2, 6 }
uselistorder i32 2, { 5, 6, 3, 2, 1, 4, 0, 7 }
uselistorder i64 256, { 1, 3, 2, 0 }
uselistorder i32 0, { 15, 12, 13, 0, 6, 3, 9, 4, 10, 5, 11, 14, 1, 7, 2, 8, 16, 17, 18 }
uselistorder label LBL_36, { 1, 0, 2 }
uselistorder label LBL_27, { 0, 1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 7, 6, 3, 8, 9, 2, 10, 5, 4 }
} | 1 |
BinRealVul | gen_smul_dual_15011 | gen_smul_dual | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = and i64 %arg1, 4294967295
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = and i64 %3, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %1)
%10 = call i64 @FUNC(i64 %6, i64 %6, i32 %4)
%11 = call i64 @FUNC(i64 %8)
%12 = call i64 @FUNC(i64 %5, i64 %5, i64 16)
%13 = call i64 @FUNC(i64 %1, i64 %1, i64 16)
%14 = call i64 @FUNC(i64 %1, i64 %1, i32 %0)
%15 = call i64 @FUNC(i64 %5, i64 %6)
%16 = call i64 @FUNC(i64 %6)
ret i64 %16
uselistorder i64 %6, { 0, 1, 3, 2, 4 }
uselistorder i64 %5, { 0, 2, 1, 3 }
uselistorder i64 %1, { 2, 3, 0, 1, 4 }
uselistorder i64 (i64, i64, i64)* @tcg_gen_sari_i32, { 1, 0 }
uselistorder i64 (i64)* @dead_tmp, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @tcg_gen_mul_i32, { 1, 0 }
uselistorder i64 (i64, i64)* @tcg_gen_ext16s_i32, { 1, 0 }
uselistorder i64 ()* @new_tmp, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | vnc_auth_name_16487 | vnc_auth_name | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
store i64 %3, i64* @0, align 8
store i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64* %rax.0.reg2mem
switch i32 %2, label LBL_10 [
i32 0, label LBL_11
i32 1, label LBL_1
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_4
i32 5, label LBL_5
i32 6, label LBL_6
i32 7, label LBL_7
i32 8, label LBL_8
i32 18, label LBL_9
]
LBL_1:
store i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
store i64 ptrtoint ([4 x i8]* @gv_2 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
store i64 ptrtoint ([4 x i8]* @gv_3 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
store i64 ptrtoint ([6 x i8]* @gv_4 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
store i64 ptrtoint ([6 x i8]* @gv_5 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
store i64 ptrtoint ([6 x i8]* @gv_6 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
store i64 ptrtoint ([4 x i8]* @gv_7 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
store i64 ptrtoint ([9 x i8]* @gv_8 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
store i64 ptrtoint ([5 x i8]* @gv_9 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
store i64 ptrtoint ([8 x i8]* @gv_10 to i64), i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder label LBL_11, { 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
} | 1 |
BinRealVul | calculate_order_8562 | calculate_order | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%.reg2mem18 = alloca i32
%.pre-phi.reg2mem = alloca i64
%.reg2mem16 = alloca i32
%.pre.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.0.in.ph.reg2mem = alloca i64
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%1 = zext i32 %0 to i64
%2 = icmp eq i32 %0, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %sv_0.0.in.ph.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = mul i64 %6, 4
%8 = add i64 %7, 4
%9 = and i64 %8, 4294967292
store i64 %9, i64* %sv_0.0.in.ph.reg2mem
br label LBL_2
LBL_2:
%sext = mul i64 %arg1, 4294967296
%10 = ashr exact i64 %sext, 32
%sv_0.0.in.ph.reload = load i64, i64* %sv_0.0.in.ph.reg2mem
%11 = trunc i64 %sv_0.0.in.ph.reload to i32
%12 = icmp sgt i32 %11, 1
br i1 %12, label LBL_4, label LBL_2.LBL_9_crit_edge
LBL_3:
%.pre7 = load i32, i32* @gv_1, align 4
%.pre9 = and i64 %10, 4294967295
store i64 %.pre9, i64* %.pre-phi.reg2mem
store i32 %.pre7, i32* %.reg2mem18
br label LBL_9
LBL_4:
%13 = and i64 %10, 4294967295
%.pre.pre = load i32, i32* @gv_1, align 4
store i32 %.pre.pre, i32* %.pre.reg2mem
store i32 %11, i32* %.reg2mem16
br label LBL_8
LBL_5:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload = load i32, i32* %.reg2mem
%14 = call i64 @FUNC(i64 %13, i32 %.reload17, i32 %.reload, i32 %storemerge5.reload)
%15 = load i32, i32* @gv_1, align 4
%16 = zext i32 %15 to i64
%sext4 = mul i64 %14, 4294967296
%17 = ashr exact i64 %sext4, 32
%18 = icmp sgt i64 %17, %16
store i64 %14, i64* %rax.0.in.reg2mem
br i1 %18, label LBL_6, label LBL_11
LBL_6:
%19 = icmp slt i32 %storemerge5.reload, 0
%20 = zext i1 %19 to i32
%21 = add nsw i32 %storemerge5.reload, %20
%22 = ashr i32 %21, 1
%23 = icmp sgt i32 %21, 7
store i32 %15, i32* %.reg2mem
store i32 %22, i32* %storemerge5.reg2mem
br i1 %23, label LBL_5, label LBL_7
LBL_7:
%24 = icmp slt i32 %.reload17, 0
%25 = zext i1 %24 to i32
%26 = add i32 %.reload17, %25
%27 = ashr i32 %26, 1
%28 = icmp sgt i32 %26, 3
store i32 %15, i32* %.pre.reg2mem
store i32 %27, i32* %.reg2mem16
store i64 %13, i64* %.pre-phi.reg2mem
store i32 %15, i32* %.reg2mem18
br i1 %28, label LBL_8, label LBL_9
LBL_8:
%.reload17 = load i32, i32* %.reg2mem16
%.pre.reload = load i32, i32* %.pre.reg2mem
store i32 %.pre.reload, i32* %.reg2mem
store i32 16, i32* %storemerge5.reg2mem
br label LBL_5
LBL_9:
%.reload19 = load i32, i32* %.reg2mem18
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%29 = call i64 @FUNC(i64 %.pre-phi.reload, i32 1, i32 %.reload19, i32 1)
%30 = load i32, i32* @gv_1, align 4
%31 = zext i32 %30 to i64
%sext3 = mul i64 %29, 4294967296
%32 = ashr exact i64 %sext3, 32
%33 = icmp sgt i64 %32, %31
store i64 %29, i64* %rax.0.in.reg2mem
br i1 %33, label LBL_10, label LBL_11
LBL_10:
%34 = call i64 @FUNC(i64 %.pre-phi.reload, i32 1, i32 10, i32 1)
%35 = trunc i64 %34 to i32
%36 = icmp sgt i32 %35, 10
%37 = and i64 %34, 4294967295
%spec.select = select i1 %36, i64 4294967258, i64 %37
ret i64 %spec.select
LBL_11:
%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 %storemerge5.reload, { 2, 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64* %sv_0.0.in.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge5.reg2mem, { 2, 1, 0 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i32, i32, i32)* @slab_order, { 2, 0, 1 }
uselistorder i32 10, { 2, 0, 1 }
uselistorder i32* @gv_1, { 3, 2, 0, 1 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i32 1, { 11, 12, 13, 14, 17, 16, 10, 7, 6, 5, 4, 3, 2, 1, 0, 15, 18, 19, 9, 8 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pic_is_unused_14105 | pic_is_unused | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg2, null
%1 = icmp eq i1 %0, false
store i64 1, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = add i64 %2, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_4
LBL_3:
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | vvfat_close_3306 | vvfat_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %0, 16
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
ret i64 %10
uselistorder i64 (i64)* @array_free, { 2, 1, 0 }
} | 0 |
BinRealVul | perf_swevent_init_13529 | perf_swevent_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%retval = select i1 %7, i64 1, i64 2
ret i64 %retval
LBL_2:
ret i64 1
} | 0 |
BinRealVul | start_children_14894 | start_children | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i64
%rsi.0.lcssa.reg2mem = alloca i64
%.reg2mem48 = alloca i64
%.reg2mem = alloca i64
%storemerge31134.reg2mem = alloca i32
%sv_0.015.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 i32, i32* @gv_0, align 4
%7 = zext i32 %6 to i64
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_27, label LBL_1
LBL_1:
%10 = load [11 x i8]*, [11 x i8]** @gv_1, align 8
%11 = getelementptr inbounds [11 x i8], [11 x i8]* %10, i64 0, i64 0
%12 = call i32 @strlen(i8* %11)
%13 = icmp ult i32 %12, 4096
%14 = load [11 x i8]*, [11 x i8]** @gv_1, align 8
%15 = ptrtoint [11 x i8]* %14 to i64
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_2, i64 0, i64 0), i64 %15, i64 4096, i64 %5, i64 %2, i64 %1)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_27
LBL_3:
%17 = call i64 @FUNC(i64 %15)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_3, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %20, i64* %rax.0.reg2mem
br label LBL_27
LBL_5:
%21 = ptrtoint i64* %arg1 to i64
%22 = inttoptr i64 %17 to i8*
%23 = call i8* @strrchr(i8* %22, i32 47)
%24 = icmp eq i8* %23, null
%25 = icmp eq i1 %24, false
%26 = ptrtoint i8* %23 to i64
%27 = add i64 %26, 1
%storemerge4.v = select i1 %25, i64 %27, i64 %17
%storemerge4 = inttoptr i64 %storemerge4.v to i32*
store i32 1886217830, i32* %storemerge4, align 4
%28 = add i64 %storemerge4.v, 4
%29 = inttoptr i64 %28 to i16*
store i16 26469, i16* %29, align 2
%30 = add i64 %storemerge4.v, 6
%31 = inttoptr i64 %30 to i8*
store i8 0, i8* %31, align 1
%32 = icmp eq i64* %arg1, null
%33 = icmp eq i1 %32, false
store i64 %21, i64* %sv_0.015.reg2mem
br i1 %33, label LBL_6, label LBL_26
LBL_6:
%sv_0.015.reload = load i64, i64* %sv_0.015.reg2mem
%34 = inttoptr i64 %sv_0.015.reload to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_25, label LBL_7
LBL_7:
%37 = add i64 %sv_0.015.reload, 8
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_25, label LBL_8
LBL_8:
%42 = call i32 @time(i32* null)
%43 = sext i32 %42 to i64
%44 = add i64 %sv_0.015.reload, 16
%45 = inttoptr i64 %44 to i64*
store i64 %43, i64* %45, align 8
%46 = call i32 @fork()
store i32 %46, i32* %38, align 4
%47 = icmp slt i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_10, label LBL_9
LBL_9:
%49 = zext i32 %46 to i64
%50 = call i32* @__errno_location()
%51 = load i32, i32* %50, align 4
%52 = call i8* @strerror(i32 %51)
%53 = ptrtoint i8* %52 to i64
%54 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_4, i64 0, i64 0), i64 %53, i64 %49, i64 %5, i64 %2, i64 %1)
%55 = call i64 @FUNC(i64 %17)
call void @exit(i32 1)
unreachable
LBL_10:
%56 = icmp eq i32 %46, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_25, label LBL_11
LBL_11:
%58 = zext i32 %46 to i64
%59 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i64 47, i64 %58, i64 %5, i64 %2, i64 %1)
%60 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 %17, i64 %58, i64 %5, i64 %2, i64 %1)
%61 = load i64, i64* %34, align 8
%62 = add i64 %61, 8
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = icmp eq i64 %64, 0
store i64 %17, i64* %rsi.0.lcssa.reg2mem
store i64 %61, i64* %.lcssa.reg2mem
br i1 %65, label LBL_15, label LBL_12
LBL_12:
%66 = inttoptr i64 %64 to i8*
%67 = load i8, i8* %66, align 1
%68 = icmp eq i8 %67, 0
%69 = icmp eq i1 %68, false
store i32 1, i32* %storemerge31134.reg2mem
store i64 %61, i64* %.reg2mem
store i64 %64, i64* %.reg2mem48
store i64 %17, i64* %rsi.0.lcssa.reg2mem
store i64 %61, i64* %.lcssa.reg2mem
br i1 %69, label LBL_13, label LBL_15
LBL_13:
%.reload49 = load i64, i64* %.reg2mem48
%.reload = load i64, i64* %.reg2mem
%storemerge31134.reload = load i32, i32* %storemerge31134.reg2mem
%70 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 %.reload49, i64 %.reload, i64 %5, i64 %2, i64 %1)
%71 = add i32 %storemerge31134.reload, 1
%72 = load i64, i64* %34, align 8
%73 = sext i32 %71 to i64
%74 = mul i64 %73, 8
%75 = add i64 %72, %74
%76 = inttoptr i64 %75 to i64*
%77 = load i64, i64* %76, align 8
%78 = icmp eq i64 %77, 0
store i64 %.reload49, i64* %rsi.0.lcssa.reg2mem
store i64 %72, i64* %.lcssa.reg2mem
br i1 %78, label LBL_15, label LBL_14
LBL_14:
%79 = inttoptr i64 %77 to i8*
%80 = load i8, i8* %79, align 1
%81 = icmp eq i8 %80, 0
%82 = icmp eq i1 %81, false
store i32 %71, i32* %storemerge31134.reg2mem
store i64 %72, i64* %.reg2mem
store i64 %77, i64* %.reg2mem48
store i64 %.reload49, i64* %rsi.0.lcssa.reg2mem
store i64 %72, i64* %.lcssa.reg2mem
br i1 %82, label LBL_13, label LBL_15
LBL_15:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%rsi.0.lcssa.reload = load i64, i64* %rsi.0.lcssa.reg2mem
%83 = call i64 @FUNC(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_7, i64 0, i64 0), i64 %rsi.0.lcssa.reload, i64 %.lcssa.reload, i64 %5, i64 %2, i64 %1)
store i32 3, i32* %storemerge9.reg2mem
br label LBL_16
LBL_16:
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%84 = call i32 @close(i32 %storemerge9.reload)
%85 = add nuw nsw i32 %storemerge9.reload, 1
%exitcond = icmp eq i32 %85, 256
store i32 %85, i32* %storemerge9.reg2mem
br i1 %exitcond, label LBL_17, label LBL_16
LBL_17:
%86 = load i32, i32* @gv_8, align 4
%87 = icmp eq i32 %86, 0
%88 = icmp eq i1 %87, false
br i1 %88, label LBL_24, label LBL_18
LBL_18:
%89 = load %_IO_FILE*, %_IO_FILE** @gv_9, align 8
%90 = call %_IO_FILE* @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_11, i64 0, i64 0), %_IO_FILE* %89)
%91 = icmp eq %_IO_FILE* %90, null
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_20, label LBL_19
LBL_19:
%93 = ptrtoint %_IO_FILE* %89 to i64
%94 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_12, i64 0, i64 0), i64 ptrtoint ([2 x i8]* @gv_11 to i64), i64 %93, i64 %5, i64 %2, i64 %1)
br label LBL_20
LBL_20:
%95 = load %_IO_FILE*, %_IO_FILE** @gv_13, align 8
%96 = call %_IO_FILE* @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_14, i64 0, i64 0), %_IO_FILE* %95)
%97 = icmp eq %_IO_FILE* %96, null
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_22, label LBL_21
LBL_21:
%99 = ptrtoint %_IO_FILE* %95 to i64
%100 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_15, i64 0, i64 0), i64 ptrtoint ([2 x i8]* @gv_14 to i64), i64 %99, i64 %5, i64 %2, i64 %1)
br label LBL_22
LBL_22:
%101 = load %_IO_FILE*, %_IO_FILE** @gv_16, align 8
%102 = call %_IO_FILE* @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_14, i64 0, i64 0), %_IO_FILE* %101)
%103 = icmp eq %_IO_FILE* %102, null
%104 = icmp eq i1 %103, false
br i1 %104, label LBL_24, label LBL_23
LBL_23:
%105 = ptrtoint %_IO_FILE* %101 to i64
%106 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_17, i64 0, i64 0), i64 ptrtoint ([2 x i8]* @gv_14 to i64), i64 %105, i64 %5, i64 %2, i64 %1)
br label LBL_24
LBL_24:
%107 = call void (i32)* @signal(i32 13, void (i32)* null)
%108 = load i64, i64* %34, align 8
%109 = inttoptr i64 %108 to i8*
%110 = insertvalue [1 x i8*] undef, i8* %109, 0
%111 = call i32 @execvp(i8* %22, [1 x i8*] %110)
%112 = call i64 @FUNC(i64 %17)
call void @_exit(i32 1)
unreachable
LBL_25:
%113 = add i64 %sv_0.015.reload, 24
%114 = inttoptr i64 %113 to i64*
%115 = load i64, i64* %114, align 8
%116 = icmp eq i64 %115, 0
%117 = icmp eq i1 %116, false
store i64 %115, i64* %sv_0.015.reg2mem
br i1 %117, label LBL_6, label LBL_26
LBL_26:
%118 = call i64 @FUNC(i64 %17)
store i64 %118, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder %_IO_FILE* %101, { 1, 0 }
uselistorder %_IO_FILE* %95, { 1, 0 }
uselistorder %_IO_FILE* %89, { 1, 0 }
uselistorder i32 %storemerge9.reload, { 1, 0 }
uselistorder i64 %72, { 1, 2, 0, 3 }
uselistorder i64 %.reload49, { 1, 0, 2 }
uselistorder i64 %61, { 0, 2, 1, 3 }
uselistorder i32 %46, { 0, 3, 1, 2, 4 }
uselistorder i64* %34, { 2, 0, 1, 3 }
uselistorder i64 %sv_0.015.reload, { 3, 0, 2, 1 }
uselistorder i64 %17, { 5, 2, 0, 1, 3, 4, 6, 7, 8 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %5, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_0.015.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge31134.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem48, { 2, 0, 1 }
uselistorder i64* %rsi.0.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_16, { 1, 0 }
uselistorder [2 x i8]* @gv_14, { 1, 0 }
uselistorder [2 x i8]* @gv_11, { 1, 0 }
uselistorder i64 (i64)* @av_free, { 0, 2, 1 }
uselistorder i8 0, { 2, 0, 3, 4, 1 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @http_log, { 9, 8, 7, 5, 6, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i1 false, { 10, 2, 3, 4, 5, 6, 0, 7, 8, 9, 1, 11, 12, 13 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 0, 1 }
uselistorder label LBL_27, { 1, 2, 3, 0 }
uselistorder label LBL_25, { 0, 2, 1 }
uselistorder label LBL_15, { 1, 2, 0, 3 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | _perf_event_disable_10583 | _perf_event_disable | 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 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
%6 = icmp slt i32 %4, 0
%7 = icmp eq i1 %6, false
%8 = icmp eq i1 %5, false
%9 = icmp eq i1 %7, %8
%10 = call i64 @FUNC(i64 %0)
store i64 %10, i64* %storemerge.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%11 = call i64 @FUNC(i64 %0, i64 4198740, i64 0)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | page_trans_compound_anon_split_8684 | page_trans_compound_anon_split | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge.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* %sv_0.0.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_5, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %1)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%10 = call i64 @FUNC(i64 %1)
store i64 %storemerge.reload, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = and i64 %sv_0.0.reload, 4294967295
ret i64 %11
uselistorder i64 %1, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | esp_do_dma_15760 | esp_do_dma | 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 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 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 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %5 to i64
%14 = zext i32 %12 to i64
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %14, i64 %13)
%16 = bitcast i64* %arg1 to i32*
store i32 0, i32* %16, align 4
store i32 0, i32* %11, align 4
store i32 0, i32* %7, align 4
%17 = add i64 %2, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %2, i64 %19)
store i64 %20, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%21 = add i64 %2, 24
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_13, label LBL_3
LBL_3:
%25 = bitcast i64* %rdi to i32*
%26 = trunc i64 %1 to i32
%27 = icmp ugt i32 %5, %23
%spec.select = select i1 %27, i32 %23, i32 %5
%28 = sub i32 %5, %spec.select
store i32 %28, i32* %4, align 4
%29 = add i64 %2, 32
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = zext i32 %spec.select to i64
%33 = add i64 %31, %32
store i64 %33, i64* %30, align 8
%34 = load i32, i32* %22, align 4
%35 = sub i32 %34, %spec.select
store i32 %35, i32* %22, align 4
%36 = icmp sgt i32 %26, -1
%37 = load i32, i32* %25, align 8
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%38 = add i32 %37, %spec.select
%39 = bitcast i64* %arg1 to i32*
store i32 %38, i32* %39, align 4
br label LBL_6
LBL_5:
%40 = sub i32 %37, %spec.select
%41 = bitcast i64* %arg1 to i32*
store i32 %40, i32* %41, align 4
br label LBL_6
LBL_6:
%42 = load i32, i32* %22, align 4
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_7
LBL_7:
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%45 = add i64 %2, 64
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
store i64 %47, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%48 = load i32, i32* %4, align 4
%49 = zext i32 %48 to i64
%50 = icmp eq i32 %48, 0
%51 = icmp eq i1 %50, false
store i64 %49, i64* %rax.0.reg2mem
br i1 %51, label LBL_13, label LBL_10
LBL_10:
%52 = zext i32 %37 to i64
%53 = icmp slt i32 %37, 1
store i64 %52, i64* %rax.0.reg2mem
br i1 %53, label LBL_13, label LBL_11
LBL_11:
%54 = call i64 @FUNC(i64 %2)
store i64 %54, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%55 = call i64 @FUNC(i64 %2)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %37, { 2, 1, 3, 0 }
uselistorder i1 %36, { 1, 0 }
uselistorder i32 %spec.select, { 4, 0, 3, 2, 1 }
uselistorder i32 %23, { 1, 0, 2 }
uselistorder i32* %22, { 0, 2, 1, 3 }
uselistorder i64 %2, { 3, 2, 4, 5, 6, 1, 0, 7, 8, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 3, 4, 5, 2, 7, 1 }
uselistorder i64 (i64)* @esp_dma_done, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 3, 4, 5, 0, 6 }
} | 1 |
BinRealVul | runstate_needs_reset_16500 | runstate_needs_reset | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 2)
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 3)
%9 = trunc i64 %8 to i8
%10 = icmp ne i8 %9, 0
%spec.select = zext i1 %10 to i64
ret i64 %spec.select
LBL_3:
ret i64 1
uselistorder i64 (i64)* @runstate_check, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | sc_keycache_forget_key_4910 | sc_keycache_forget_key | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.reg2mem16 = alloca i64
%.reg2mem14 = alloca i64*
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_9
LBL_1:
%3 = ptrtoint i32* %arg1 to i64
%4 = zext i32 %arg3 to i64
%5 = trunc i64 %arg2 to i32
store i64 %0, i64* %.reg2mem
store i64* @gv_0, i64** %.reg2mem14
br label LBL_3
LBL_2:
%6 = icmp eq i64 %12, 0
%7 = icmp eq i1 %6, false
store i64 %12, i64* %.reg2mem
store i64* %11, i64** %.reg2mem14
br i1 %7, label LBL_3, label LBL_9
LBL_3:
%.reload15 = load i64*, i64** %.reg2mem14
%.reload = load i64, i64* %.reg2mem
store i64 %.reload, i64* %.reg2mem16
br label LBL_4
LBL_4:
%.reload17 = load i64, i64* %.reg2mem16
%8 = call i64 @FUNC(i64 %.reload17, i32 %5, i64 %4, i64 %3, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = inttoptr i64 %.reload17 to i64*
%12 = load i64, i64* %11, align 8
br i1 %10, label LBL_2, label LBL_5
LBL_5:
store i64 %12, i64* %.reload15, align 8
%13 = add i64 %.reload17, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label LBL_8, label LBL_6
LBL_6:
%17 = add i64 %.reload17, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, -1
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = sext i32 %15 to i64
%23 = mul i64 %22, 8
%24 = add i64 %23, ptrtoint (i64* @gv_1 to i64)
%25 = inttoptr i64 %24 to i64*
store i64 0, i64* %25, align 8
br label LBL_8
LBL_8:
%26 = call i64* @memset(i64* %11, i32 0, i32 16)
call void @free(i64* %11)
%27 = load i64, i64* %.reload15, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 %27, i64* %.reg2mem16
br i1 %29, label LBL_4, label LBL_9
LBL_9:
%30 = call i64 @FUNC()
ret i64 %30
uselistorder i64 %12, { 2, 1, 0 }
uselistorder i64* %11, { 1, 2, 3, 0 }
uselistorder i64 %.reload17, { 1, 0, 3, 2 }
uselistorder i64* %.reload15, { 1, 0 }
uselistorder i64* %.reg2mem16, { 1, 0, 2 }
uselistorder i1 false, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ff_lzw_decode_tail_15942 | ff_lzw_decode_tail | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%.cast = ptrtoint i32* %arg1 to i64
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %.cast)
br label LBL_1
LBL_2:
%5 = and i64 %1, 4294967295
ret i64 %5
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | write_output_8711 | write_output | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%2 = call i64 @FUNC(i64* nonnull %sv_1)
%3 = load i64, i64* %sv_1, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_5
LBL_1:
%6 = icmp eq i64 %2, 0
%7 = icmp eq i1 %6, false
store i64 2, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_5
LBL_2:
%8 = load i64, i64* @gv_0, align 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i8*
%12 = call i32 (i8*, i32, ...) @open(i8* %11, i32 578)
%13 = load i64, i64* @gv_0, align 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = zext i32 %12 to i64
%17 = call i64 @FUNC(i64 %16, i64 4294967295, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %15)
%18 = load i64, i64* @gv_0, align 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%22 = inttoptr i64 %20 to i8*
%23 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %21, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i8* %22)
%24 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%25 = call i32 @fflush(%_IO_FILE* %24)
%26 = call i16 @htons(i16 22136)
%27 = zext i16 %26 to i64
store i64 %27, i64* %sv_2, align 8
%28 = bitcast i64* %sv_0 to i8*
%29 = call i8* @strncpy(i8* nonnull %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i32 16)
%30 = load i64, i64* %sv_1, align 8
%31 = call i64 @FUNC(i64* nonnull %sv_2, i64 %30, i64 %2)
%32 = call i32 @write(i32 %12, i64* nonnull %sv_2, i32 40)
%33 = inttoptr i64 %31 to i64*
%34 = trunc i64 %1 to i32
%35 = add i32 %34, -40
%36 = call i32 @write(i32 %12, i64* %33, i32 %35)
store i32 0, i32* %storemerge2.reg2mem
br label LBL_3
LBL_3:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%37 = load i64, i64* %sv_1, align 8
%38 = call i64 @FUNC(i64 %37)
%39 = load i64, i64* %sv_1, align 8
%40 = inttoptr i64 %39 to i64*
%41 = call i32 @write(i32 %12, i64* %40, i32 0)
%42 = add i32 %storemerge2.reload, 1
%43 = sext i32 %42 to i64
%44 = icmp ult i64 %2, %43
store i32 %42, i32* %storemerge2.reg2mem
br i1 %44, label LBL_4, label LBL_3
LBL_4:
%45 = call i32 @close(i32 %12)
%46 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%47 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_5 to i64*), i32 1, i32 8, %_IO_FILE* %46)
%48 = zext i32 %storemerge2.reload to i64
%49 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%50 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %49, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_6, i64 0, i64 0), i64 %48)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge2.reload, { 1, 0 }
uselistorder i32 %12, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 0 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 1, 0, 3, 2 }
uselistorder i32 (i32, i64*, i32)* @write, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0, 2 }
uselistorder %_IO_FILE** @gv_2, { 3, 2, 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | asv2_encode_block_878 | asv2_encode_block | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.lcssa.reg2mem = alloca i64
%rdi.4.reg2mem = alloca i64
%rdi.3.reg2mem = alloca i64
%rdi.2.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rdi.55.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge2.lcssa.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
store i32 63, i32* %storemerge27.reg2mem
br label LBL_1
LBL_1:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%5 = sext i32 %storemerge27.reload to i64
%6 = mul i64 %5, 4
%7 = add i64 %6, ptrtoint (i32** @gv_0 to i64)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 2
%12 = add i64 %11, %2
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = mul i64 %10, 4
%16 = add i64 %15, %3
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = sext i16 %14 to i32
%20 = mul i32 %18, %19
%21 = add i32 %20, 32768
%22 = icmp ult i32 %21, 65536
%23 = icmp eq i1 %22, false
store i32 %storemerge27.reload, i32* %storemerge2.lcssa.reg2mem
br i1 %23, label LBL_3, label LBL_2
LBL_2:
%24 = add i32 %storemerge27.reload, -1
%25 = icmp ugt i32 %24, 3
store i32 %24, i32* %storemerge27.reg2mem
store i32 3, i32* %storemerge2.lcssa.reg2mem
br i1 %25, label LBL_1, label LBL_3
LBL_3:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%26 = ashr i32 %storemerge2.lcssa.reload, 2
%27 = add i64 %3, 8
%28 = zext i32 %26 to i64
%29 = call i64 @FUNC(i64 %27, i64 4, i64 %28)
%sext = mul i32 %4, 65536
%30 = ashr exact i32 %sext, 16
%31 = add nsw i32 %30, 32
%32 = ashr i32 %31, 6
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %27, i64 8, i64 %33)
%35 = bitcast i64* %arg2 to i16*
store i16 0, i16* %35, align 2
%36 = icmp slt i32 %storemerge2.lcssa.reload, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %36, label LBL_19, label LBL_4
LBL_4:
%37 = sext i32 %26 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i64 %27, i64* %rdi.55.reg2mem
br label LBL_5
LBL_5:
%rdi.55.reload = load i64, i64* %rdi.55.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%38 = mul i64 %indvars.iv.reload, 16
%39 = add i64 %38, ptrtoint (i32** @gv_0 to i64)
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 8
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 2
%44 = add i64 %43, %2
%45 = inttoptr i64 %44 to i16*
%46 = load i16, i16* %45, align 2
%47 = mul i64 %42, 4
%48 = add i64 %47, %rdi.55.reload
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = sext i16 %46 to i32
%52 = mul i32 %50, %51
%53 = add i32 %52, 32768
%54 = udiv i32 %53, 65536
%55 = trunc i32 %54 to i16
store i16 %55, i16* %45, align 2
%56 = icmp ult i32 %53, 65536
%spec.select = select i1 %56, i32 0, i32 8
%57 = add i64 %44, 16
%58 = inttoptr i64 %57 to i16*
%59 = load i16, i16* %58, align 2
%60 = add i64 %48, 32
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = sext i16 %59 to i32
%64 = mul i32 %62, %63
%65 = add i32 %64, 32768
%66 = udiv i32 %65, 65536
%67 = trunc i32 %66 to i16
store i16 %67, i16* %58, align 2
%68 = icmp ult i32 %65, 65536
%69 = or i32 %spec.select, 4
%sv_0.1 = select i1 %68, i32 %spec.select, i32 %69
%70 = add i64 %44, 2
%71 = inttoptr i64 %70 to i16*
%72 = load i16, i16* %71, align 2
%73 = add i64 %48, 4
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
%76 = sext i16 %72 to i32
%77 = mul i32 %75, %76
%78 = add i32 %77, 32768
%79 = udiv i32 %78, 65536
%80 = trunc i32 %79 to i16
store i16 %80, i16* %71, align 2
%81 = icmp ult i32 %78, 65536
%82 = or i32 %sv_0.1, 2
%spec.select4 = select i1 %81, i32 %sv_0.1, i32 %82
%83 = add i64 %44, 18
%84 = inttoptr i64 %83 to i16*
%85 = load i16, i16* %84, align 2
%86 = add i64 %48, 36
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = sext i16 %85 to i32
%90 = mul i32 %88, %89
%91 = add i32 %90, 32768
%92 = udiv i32 %91, 65536
%93 = trunc i32 %92 to i16
store i16 %93, i16* %84, align 2
%94 = icmp ugt i32 %91, 65535
%95 = zext i1 %94 to i32
%sv_0.3 = or i32 %spec.select4, %95
%96 = icmp ne i64 %indvars.iv.reload, 0
%97 = icmp ult i32 %sv_0.3, 8
%not.or.cond = or i1 %96, %97
%storemerge1 = zext i1 %not.or.cond to i64
%98 = call i64 @FUNC(i64 %storemerge1)
%99 = icmp eq i64 %indvars.iv.reload, 0
%100 = mul i32 %sv_0.3, 8
%101 = zext i32 %100 to i64
br i1 %99, label LBL_7, label LBL_6
LBL_6:
%102 = add i64 %101, ptrtoint (i32** @gv_1 to i64)
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 8
%105 = add i64 %101, ptrtoint (i32** @gv_2 to i64)
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 8
%108 = zext i32 %107 to i64
%109 = call i64 @FUNC(i64 %27, i64 %108, i32 %104)
br label LBL_8
LBL_7:
%110 = add i64 %101, ptrtoint (i32** @gv_3 to i64)
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 8
%113 = add i64 %101, ptrtoint (i32** @gv_4 to i64)
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 8
%116 = zext i32 %115 to i64
%117 = call i64 @FUNC(i64 %27, i64 %116, i32 %112)
br label LBL_8
LBL_8:
%118 = icmp eq i32 %sv_0.3, 0
store i64 %27, i64* %rdi.4.reg2mem
br i1 %118, label LBL_17, label LBL_9
LBL_9:
%119 = and i32 %spec.select4, 8
%120 = icmp eq i32 %119, 0
store i64 %27, i64* %rdi.1.reg2mem
br i1 %120, label LBL_11, label LBL_10
LBL_10:
%121 = load i16, i16* %45, align 2
%122 = sext i16 %121 to i64
%123 = call i64 @FUNC(i64 %3, i64 %27, i64 %122)
store i64 %3, i64* %rdi.1.reg2mem
br label LBL_11
LBL_11:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%124 = and i32 %spec.select4, 4
%125 = icmp eq i32 %124, 0
store i64 %rdi.1.reload, i64* %rdi.2.reg2mem
br i1 %125, label LBL_13, label LBL_12
LBL_12:
%126 = load i16, i16* %58, align 2
%127 = sext i16 %126 to i64
%128 = call i64 @FUNC(i64 %3, i64 %27, i64 %127)
store i64 %3, i64* %rdi.2.reg2mem
br label LBL_13
LBL_13:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%129 = and i32 %spec.select4, 2
%130 = icmp eq i32 %129, 0
store i64 %rdi.2.reload, i64* %rdi.3.reg2mem
br i1 %130, label LBL_15, label LBL_14
LBL_14:
%131 = load i16, i16* %71, align 2
%132 = sext i16 %131 to i64
%133 = call i64 @FUNC(i64 %3, i64 %27, i64 %132)
store i64 %3, i64* %rdi.3.reg2mem
br label LBL_15
LBL_15:
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
%134 = urem i32 %sv_0.3, 2
%135 = icmp eq i32 %134, 0
store i64 %rdi.3.reload, i64* %rdi.4.reg2mem
br i1 %135, label LBL_17, label LBL_16
LBL_16:
%136 = load i16, i16* %84, align 2
%137 = sext i16 %136 to i64
%138 = call i64 @FUNC(i64 %3, i64 %27, i64 %137)
store i64 %3, i64* %rdi.4.reg2mem
br label LBL_17
LBL_17:
%rdi.4.reload = load i64, i64* %rdi.4.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%139 = icmp slt i64 %indvars.iv.reload, %37
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rdi.4.reload, i64* %rdi.55.reg2mem
br i1 %139, label LBL_5, label LBL_18
LBL_18:
%phitmp = and i64 %indvars.iv.next, 4294967295
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_19
LBL_19:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %indvars.iv.next, { 1, 0 }
uselistorder i64 %101, { 2, 0, 3, 1 }
uselistorder i32 %sv_0.3, { 1, 3, 0, 2 }
uselistorder i32 %spec.select4, { 1, 2, 3, 0 }
uselistorder i64 %indvars.iv.reload, { 3, 0, 1, 2, 4 }
uselistorder i64 %27, { 7, 6, 5, 4, 1, 0, 8, 3, 2, 9, 10 }
uselistorder i32 %storemerge2.lcssa.reload, { 1, 0 }
uselistorder i32 %storemerge27.reload, { 1, 0, 2 }
uselistorder i64 %3, { 0, 8, 1, 7, 2, 6, 3, 5, 9, 4 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.55.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @asv2_put_level, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32)* @put_bits, { 1, 0 }
uselistorder i32 8, { 3, 0, 1, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 1, 0 }
uselistorder i64 (i64, i64, i64)* @asv2_put_bits, { 1, 0 }
uselistorder i32 65536, { 4, 1, 5, 2, 6, 3, 7, 0, 8 }
uselistorder i64 2, { 2, 0, 1 }
uselistorder i64 ptrtoint (i32** @gv_0 to i64), { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | scsi_req_data_1139 | scsi_req_data | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i64 %0, 20
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13, i32 %7, i32 %4, i32 %1)
ret i64 %0
} | 0 |
BinRealVul | decode_mclms_3099 | decode_mclms | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%.reg2mem22 = alloca i32
%.reg2mem20 = alloca i32
%storemerge27.reg2mem = alloca i32
%.reg2mem18 = alloca i32
%.reg2mem16 = alloca i32
%storemerge310.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = call i64 @FUNC(i64 %1, i64 4)
%.tr = trunc i64 %2 to i32
%3 = mul i32 %.tr, 2
%4 = add i32 %3, 2
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
%6 = call i64 @FUNC(i64 %1, i64 4)
%7 = trunc i64 %6 to i32
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = call i64 @FUNC(i64 %1)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_13, label LBL_1
LBL_1:
%13 = load i32, i32* %9, align 4
%14 = add i32 %13, 1
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = load i32, i32* %9, align 4
%19 = add i32 %18, 1
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %17, %22
br i1 %23, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%24 = load i32, i32* %9, align 4
%25 = urem i32 %17, 32
%.highbits = lshr i32 %24, %25
%26 = icmp ne i32 %.highbits, 0
%27 = zext i1 %26 to i32
%spec.select = add i32 %27, %17
%28 = icmp eq i32 %spec.select, 0
store i64 2, i64* %storemerge4.reg2mem
br i1 %28, label LBL_5, label LBL_4
LBL_4:
%29 = zext i32 %spec.select to i64
%30 = call i64 @FUNC(i64 %1, i64 %29)
%31 = add i64 %30, 2
%phitmp5 = and i64 %31, 4294967295
store i64 %phitmp5, i64* %storemerge4.reg2mem
br label LBL_5
LBL_5:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%32 = bitcast i64* %rdi to i32*
%33 = load i32, i32* %32, align 8
%34 = add i64 %0, 8
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = mul i32 %36, %33
%38 = mul i32 %37, %36
%39 = icmp eq i32 %38, 0
store i32 %36, i32* %.reg2mem16
br i1 %39, label LBL_8, label LBL_6
LBL_6:
%40 = add i64 %0, 16
%41 = inttoptr i64 %40 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge310.reg2mem
br label LBL_7
LBL_7:
%storemerge310.reload = load i32, i32* %storemerge310.reg2mem
%.reload = load i64, i64* %.reg2mem
%42 = load i64, i64* %41, align 8
%43 = mul i64 %.reload, 4
%44 = add i64 %42, %43
%45 = call i64 @FUNC(i64 %1, i64 %storemerge4.reload)
%46 = trunc i64 %45 to i32
%47 = inttoptr i64 %44 to i32*
store i32 %46, i32* %47, align 4
%48 = add i32 %storemerge310.reload, 1
%49 = load i32, i32* %32, align 8
%50 = load i32, i32* %35, align 4
%51 = mul i32 %50, %49
%52 = mul i32 %51, %50
%53 = zext i32 %52 to i64
%54 = sext i32 %48 to i64
%55 = icmp slt i64 %54, %53
store i64 %54, i64* %.reg2mem
store i32 %48, i32* %storemerge310.reg2mem
store i32 %50, i32* %.reg2mem16
br i1 %55, label LBL_7, label LBL_8
LBL_8:
%.reload17 = load i32, i32* %.reg2mem16
%56 = icmp eq i32 %.reload17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_13, label LBL_9
LBL_9:
%57 = add i64 %0, 24
%58 = inttoptr i64 %57 to i64*
store i32 %.reload17, i32* %.reg2mem22
store i32 0, i32* %storemerge18.reg2mem
br label LBL_12
LBL_10:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload19 = load i32, i32* %.reg2mem18
%59 = load i64, i64* %58, align 8
%60 = mul i32 %.reload19, %storemerge18.reload
%61 = add i32 %60, %storemerge27.reload
%62 = sext i32 %61 to i64
%63 = mul i64 %62, 4
%64 = add i64 %63, %59
%65 = call i64 @FUNC(i64 %1, i64 %storemerge4.reload)
%66 = trunc i64 %65 to i32
%67 = inttoptr i64 %64 to i32*
store i32 %66, i32* %67, align 4
%68 = add nuw nsw i32 %storemerge27.reload, 1
%exitcond = icmp eq i32 %68, %storemerge18.reload
%.pre13 = load i32, i32* %35, align 4
store i32 %.pre13, i32* %.reg2mem18
store i32 %68, i32* %storemerge27.reg2mem
store i32 %.pre13, i32* %.reg2mem20
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%.reload21 = load i32, i32* %.reg2mem20
%69 = add i32 %storemerge18.reload, 1
%70 = zext i32 %.reload21 to i64
%71 = sext i32 %69 to i64
%72 = icmp slt i64 %71, %70
store i32 %.reload21, i32* %.reg2mem22
store i32 %69, i32* %storemerge18.reg2mem
store i64 %70, i64* %rax.0.reg2mem
br i1 %72, label LBL_12, label LBL_13
LBL_12:
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%.reload23 = load i32, i32* %.reg2mem22
%73 = icmp sgt i32 %storemerge18.reload, 0
store i32 %.reload23, i32* %.reg2mem18
store i32 0, i32* %storemerge27.reg2mem
store i32 %.reload23, i32* %.reg2mem20
br i1 %73, label LBL_10, label LBL_11
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload23, { 1, 0 }
uselistorder i32 %storemerge18.reload, { 0, 3, 2, 1 }
uselistorder i32 %storemerge27.reload, { 1, 0 }
uselistorder i32* %35, { 0, 2, 1 }
uselistorder i32* %32, { 1, 0 }
uselistorder i64 %storemerge4.reload, { 1, 0 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %17, { 1, 0, 2 }
uselistorder i64 %1, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %0, { 0, 2, 1, 3, 4 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge310.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem18, { 1, 2, 0 }
uselistorder i32* %storemerge27.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem20, { 2, 0, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 0, { 1, 5, 0, 6, 2, 7, 9, 8, 10, 11, 3, 12, 4 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @get_bits, { 4, 3, 2, 1, 0 }
uselistorder i64 4, { 0, 1, 4, 2, 3 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | gen_mtpr_436 | gen_mtpr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp sgt i32 %0, 255
br i1 %2, label LBL_17, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i32
%4 = icmp sgt i32 %3, 250
br i1 %4, label LBL_7, label LBL_2
LBL_2:
%5 = icmp sgt i32 %3, 39
br i1 %5, label LBL_17, label LBL_3
LBL_3:
%6 = icmp sgt i32 %3, 31
br i1 %6, label LBL_14, label LBL_4
LBL_4:
%7 = icmp eq i32 %3, 7
br i1 %7, label LBL_13, label LBL_5
LBL_5:
%8 = icmp sgt i32 %3, 7
br i1 %8, label LBL_17, label LBL_6
LBL_6:
switch i32 %3, label LBL_17 [
i32 0, label LBL_15
i32 1, label LBL_16
]
LBL_7:
%9 = add nsw i64 %1, 4294967045
%10 = and i64 %9, 4294967295
store i64 %10, i64* @0, align 8
%trunc = trunc i64 %9 to i32
switch i32 %trunc, label LBL_17 [
i32 0, label LBL_12
i32 1, label LBL_11
i32 2, label LBL_10
i32 3, label LBL_9
i32 4, label LBL_8
]
LBL_8:
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_9:
%13 = load i64, i64* @gv_0, align 8
%14 = call i64 @FUNC(i64 %13)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_10:
%15 = ptrtoint i64* %arg1 to i64
%16 = call i64 @FUNC(i64 1)
%17 = load i64, i64* @gv_0, align 8
%18 = and i64 %16, 4294967295
%19 = call i64 @FUNC(i64 %18, i64 %17, i64 0)
%20 = call i64 @FUNC(i64 %18)
%21 = call i64 @FUNC(i64 %15, i64 2, i64 0)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_21
LBL_11:
%22 = call i64 @FUNC()
store i64 1, i64* %rax.0.reg2mem
br label LBL_21
LBL_12:
%23 = load i64, i64* @gv_0, align 8
%24 = call i64 @FUNC(i64 %23)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_13:
%25 = load i64, i64* @gv_0, align 8
%26 = call i64 @FUNC(i64 %25, i64 0)
%27 = load i64, i64* @gv_0, align 8
%28 = call i64 @FUNC(i64 %27)
store i64 1, i64* %rax.0.reg2mem
br label LBL_21
LBL_14:
%29 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_15:
%30 = call i64 @FUNC(i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_16:
%31 = call i64 @FUNC(i64 1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_17:
%32 = and i64 %1, 4294967295
%33 = call i64 @FUNC(i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %35, label LBL_21, label LBL_18
LBL_18:
%36 = and i32 %34, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_20, label LBL_19
LBL_19:
%38 = and i64 %33, 4294967293
%39 = load i64, i64* @gv_0, align 8
%40 = call i64 @FUNC(i64 %39, i64 %38)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_20:
%41 = load i64, i64* @gv_0, align 8
%42 = and i64 %33, 4294967295
%43 = call i64 @FUNC(i64 %41, i64 %42)
store i64 0, 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* %rax.0.reg2mem, { 0, 7, 8, 9, 3, 2, 1, 10, 6, 11, 12, 5, 4 }
uselistorder i64 (i64)* @st_flag_byte, { 1, 0 }
uselistorder i64 (i64, i64)* @tcg_gen_st_i64, { 1, 0 }
uselistorder i64 1, { 2, 0, 1, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 2, 3, 1, 0 }
uselistorder i32 7, { 1, 0 }
uselistorder label LBL_21, { 6, 7, 8, 2, 1, 0, 11, 5, 9, 10, 4, 3 }
uselistorder label LBL_17, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | hyper_rescan_scsi_7281 | hyper_rescan_scsi | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv6.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = bitcast i64* %sv_0 to %dirent***
%1 = call i32 @scandir(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), %dirent*** nonnull %0, i32 (%dirent*)* null, i32 (%dirent**, %dirent**)* null)
%2 = icmp slt i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_17
LBL_2:
%4 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 256)
%5 = icmp sgt i32 %1, 0
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%7 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_3 to i64*), i32 1, i32 17, %_IO_FILE* %6)
%8 = load i64, i64* %sv_0, align 8
store i64 %8, i64* %.lcssa.reg2mem
br label LBL_16
LBL_4:
%9 = bitcast i64* %sv_1 to i8*
%wide.trip.count8 = zext i32 %1 to i64
store i64 0, i64* %indvars.iv6.reg2mem
br label LBL_5
LBL_5:
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%10 = load i64, i64* %sv_0, align 8
%11 = mul i64 %indvars.iv6.reload, 8
%12 = add i64 %10, %11
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %14, 19
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = icmp eq i8 %17, 46
br i1 %18, label LBL_13, label LBL_6
LBL_6:
%19 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %9, i32 256, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_4, i64 0, i64 0), i8* %16)
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = load %_IO_FILE*, %_IO_FILE** @gv_5, align 8
%23 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %22, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_6, i64 0, i64 0), i8* %16)
br label LBL_13
LBL_8:
%24 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%25 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64* nonnull %sv_1)
%26 = call i32 (i8*, i32, ...) @open(i8* nonnull %9, i32 1)
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_9
LBL_9:
call void @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0))
br label LBL_13
LBL_10:
%29 = call i32 @write(i32 %26, i64* bitcast ([8 x i8]* @gv_9 to i64*), i32 7)
%30 = icmp slt i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_12, label LBL_11
LBL_11:
call void @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_10, i64 0, i64 0))
br label LBL_12
LBL_12:
%32 = call i32 @close(i32 %26)
br label LBL_13
LBL_13:
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond9 = icmp eq i64 %indvars.iv.next7, %wide.trip.count8
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
br i1 %exitcond9, label LBL_14, label LBL_5
LBL_14:
%33 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%34 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_3 to i64*), i32 1, i32 17, %_IO_FILE* %33)
%35 = load i64, i64* %sv_0, align 8
store i64 0, i64* %indvars.iv.reg2mem
store i64 %35, i64* %.reg2mem
br label LBL_15
LBL_15:
%.reload = load i64, i64* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%36 = mul i64 %indvars.iv.reload, 8
%37 = add i64 %36, %.reload
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = inttoptr i64 %39 to i64*
call void @free(i64* %40)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%41 = load i64, i64* %sv_0, align 8
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %41, i64* %.reg2mem
store i64 %41, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_16, label LBL_15
LBL_16:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%42 = inttoptr i64 %.lcssa.reload to i64*
call void @free(i64* %42)
store i64 0, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 3, 1, 4, 0, 2 }
uselistorder i64* %indvars.iv6.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder i32 17, { 1, 0 }
uselistorder i64* bitcast ([18 x i8]* @gv_3 to i64*), { 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 2, 1, 0 }
uselistorder void (i8*)* @perror, { 2, 1, 0 }
uselistorder i32 0, { 1, 3, 4, 0, 2, 5 }
uselistorder i64 0, { 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 13, 14, 15, 16, 17 }
uselistorder i32 1, { 7, 6, 5, 9, 8, 4, 3, 2, 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | get_raw_socket_19143 | get_raw_socket | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i16
%rax.0.reg2mem = alloca i64
%1 = load i16, i16* %0
%sv_0 = alloca i64, align 8
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 -88, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_7
LBL_1:
%6 = inttoptr i64 %3 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 3
br i1 %10, label LBL_3, label LBL_2
LBL_2:
store i64 -94, i64* %sv_0, align 8
br label LBL_6
LBL_3:
%sext2 = mul i64 %3, 4294967296
%11 = ashr exact i64 %sext2, 32
store i64 %11, i64* %sv_0, align 8
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
br i1 %13, label LBL_6, label LBL_4
LBL_4:
%14 = icmp eq i16 %1, 17
store i64 %3, i64* %rax.0.reg2mem
br i1 %14, label LBL_7, label LBL_5
LBL_5:
store i64 -96, i64* %sv_0, align 8
br label LBL_6
LBL_6:
%15 = call i64 @FUNC(i64 %3)
%16 = load i64, i64* %sv_0, align 8
%sext = mul i64 %16, 4294967296
%17 = ashr exact i64 %sext, 32
store i64 %17, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 2, 0, 1, 3, 4 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 1 |
BinRealVul | xt_request_find_target_18408 | xt_request_find_target | define i64 @FUNC(i64 %arg1, i64 %arg2, i8 %arg3) 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 = urem i64 %arg1, 256
%4 = call i64 @FUNC(i64 %3, i64 %arg2, i8 %arg3)
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = mul i64 %arg1, 8
%9 = and i64 %8, 2040
%10 = add i64 %9, ptrtoint (i64* @gv_0 to i64)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %arg2, i64 %arg2, i64 %2, i64 %1)
%14 = call i64 @FUNC(i64 %3, i64 %arg2, i8 %arg3)
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8)* @xt_find_target, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | cluster_status_5301 | cluster_status | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([11 x i8]* @gv_0 to i64))
%3 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 ptrtoint ([6 x i8]* @gv_1 to i64))
%4 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([10 x i8]* @gv_2 to i64))
%5 = call i64 @FUNC(i64 ptrtoint ([7 x i8]* @gv_3 to i64), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0))
%6 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_5, i64 0, i64 0))
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 ptrtoint ([17 x i8]* @gv_5 to i64), i64* %rdi.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 1)
store i64 %12, i64* %8, align 8
store i64 1, i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%13 = call i64 @FUNC(i64 %rdi.0.reload, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %rdi.0.reload, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
br label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %1, i64 %0)
%19 = icmp eq i64 %5, 0
%.pre = add i64 %0, 24
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %5, i64 %.pre)
br label LBL_6
LBL_6:
%21 = inttoptr i64 %.pre to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_9, label LBL_7
LBL_7:
%25 = add i64 %0, 28
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_9, label LBL_8
LBL_8:
%29 = call i64 @FUNC(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_7, i64 0, i64 0))
br label LBL_9
LBL_9:
%30 = call i64 @FUNC(i64 %2, i64 %0)
%31 = call i64 @FUNC(i64 %3, i64 %0)
%32 = call i64 @FUNC(i64 %4, i64 %0)
ret i64 1
uselistorder i64 %rdi.0.reload, { 1, 0 }
uselistorder i64 %0, { 2, 4, 3, 5, 0, 6, 1, 7, 8 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder [17 x i8]* @gv_5, { 1, 0 }
uselistorder i64 (i64, i8*)* @crm_element_value, { 1, 0 }
uselistorder [7 x i8]* @gv_3, { 1, 0 }
uselistorder [10 x i8]* @gv_2, { 1, 0 }
uselistorder [6 x i8]* @gv_1, { 1, 0 }
uselistorder i64 (i8*, i64)* @get_object_root, { 3, 2, 1, 0 }
uselistorder [11 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qemu_mutex_lock_iothread_16893 | qemu_mutex_lock_iothread | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
store i8 1, i8* bitcast (i64* @gv_1 to i8*), align 8
%4 = call i64 @FUNC(i64* nonnull @gv_0)
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64* nonnull @gv_0)
br label LBL_4
LBL_4:
store i8 0, i8* bitcast (i64* @gv_1 to i8*), align 8
%11 = call i64 @FUNC(i64* nonnull @gv_2)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @qemu_mutex_lock, { 1, 0 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | encode_picture_ls_152 | encode_picture_ls | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge719.reg2mem = alloca i32
%.reg2mem62 = alloca i16*
%.reg2mem60 = alloca i16*
%indvars.iv.reg2mem = alloca i64
%.reg2mem58 = alloca i16*
%.reg2mem56 = alloca i16*
%storemerge521.reg2mem = alloca i32
%.reg2mem54 = alloca i16*
%.reg2mem52 = alloca i16*
%indvars.iv28.reg2mem = alloca i64
%.reg2mem50 = alloca i16*
%.reg2mem48 = alloca i16*
%sv_0.022.reg2mem = alloca i64
%storemerge423.reg2mem = alloca i32
%.reg2mem46 = alloca i16*
%.reg2mem44 = alloca i16*
%sv_1.024.reg2mem = alloca i64
%storemerge25.reg2mem = alloca i32
%.reg2mem42 = alloca i16*
%.reg2mem = alloca i16*
%indvars.iv30.reg2mem = alloca i64
%indvars.iv32.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i16*, align 8
%sv_3 = alloca i16*, align 8
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
store i64 %arg4, i64* %sv_5, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 12
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = sext i32 %arg3 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = bitcast i32* %sv_4 to i64*
%10 = call i64 @FUNC(i64* nonnull %9, i64 %arg2, i32 %arg3)
%11 = call i64 @FUNC(i64* nonnull %9, i64 %8, i32 %arg3)
%12 = add i64 %arg4, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %3 to i64*
store i64 %3, i64* %15, align 8
%16 = add i64 %3, 8
%17 = inttoptr i64 %16 to i64*
store i64 %14, i64* %17, align 8
%18 = add i64 %arg4, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %3, 16
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = inttoptr i64 %3 to i32*
store i32 1, i32* %23, align 4
%24 = add i64 %3, 4
%25 = inttoptr i64 %24 to i32*
store i32 1, i32* %25, align 4
%26 = add i64 %0, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
store i32 1, i32* %storemerge13.reg2mem
br i1 %29, label LBL_2, label LBL_1
LBL_1:
%30 = icmp eq i32 %28, 1
%31 = icmp eq i1 %30, false
%spec.select = select i1 %31, i32 3, i32 1
store i32 %spec.select, i32* %storemerge13.reg2mem
br label LBL_2
LBL_2:
%32 = ptrtoint i64* %sv_6 to i64
%33 = ptrtoint i64* %sv_5 to i64
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%34 = call i64 @FUNC(i64* nonnull %9, i64 216)
%35 = call i64 @FUNC(i64* nonnull %9, i64 194)
%36 = mul nuw nsw i32 %storemerge13.reload, 3
%37 = add nuw nsw i32 %36, 8
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64* nonnull %9, i64 16, i64 %38)
%40 = load i32, i32* %27, align 4
%41 = icmp eq i32 %40, 1
%42 = icmp eq i1 %41, false
%. = select i1 %42, i64 8, i64 16
%43 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %.)
%44 = add i64 %0, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = zext i32 %46 to i64
%48 = call i64 @FUNC(i64* nonnull %9, i64 16, i64 %47)
%49 = bitcast i64* %rdi to i32*
%50 = load i32, i32* %49, align 8
%51 = zext i32 %50 to i64
%52 = call i64 @FUNC(i64* nonnull %9, i64 16, i64 %51)
%53 = zext i32 %storemerge13.reload to i64
%54 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %53)
%55 = add nuw nsw i64 %53, 1
store i64 1, i64* %indvars.iv32.reg2mem
br label LBL_3
LBL_3:
%indvars.iv32.reload = load i64, i64* %indvars.iv32.reg2mem
%56 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %indvars.iv32.reload)
%57 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 17)
%58 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 0)
%indvars.iv.next33 = add nuw nsw i64 %indvars.iv32.reload, 1
%exitcond41 = icmp eq i64 %indvars.iv.next33, %55
store i64 %indvars.iv.next33, i64* %indvars.iv32.reg2mem
br i1 %exitcond41, label LBL_4, label LBL_3
LBL_4:
%59 = call i64 @FUNC(i64* nonnull %9, i64 218)
%60 = mul i32 %storemerge13.reload, 2
%61 = add nuw nsw i32 %60, 6
%62 = zext i32 %61 to i64
%63 = call i64 @FUNC(i64* nonnull %9, i64 16, i64 %62)
%64 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %53)
store i64 1, i64* %indvars.iv30.reg2mem
br label LBL_5
LBL_5:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%65 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %indvars.iv30.reload)
%66 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 0)
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond40 = icmp eq i64 %indvars.iv.next31, %55
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
br i1 %exitcond40, label LBL_6, label LBL_5
LBL_6:
%67 = zext i32 %6 to i64
%68 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %67)
%69 = icmp eq i32 %storemerge13.reload, 1
%70 = icmp eq i1 %69, false
%71 = zext i1 %70 to i64
%72 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %71)
%73 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 0)
%74 = call i64 @FUNC(i64 8)
%75 = inttoptr i64 %74 to i32*
store i32 %6, i32* %75, align 4
%76 = load i32, i32* %27, align 4
%77 = icmp eq i32 %76, 1
%78 = icmp eq i1 %77, false
%.14 = select i1 %78, i32 8, i32 16
%79 = add i64 %74, 4
%80 = inttoptr i64 %79 to i32*
store i32 %.14, i32* %80, align 4
%81 = call i64 @FUNC(i64 %74, i64 0)
%82 = call i64 @FUNC(i64 %74)
%83 = call i64 @FUNC(i64 %74, i64* nonnull %9)
%84 = inttoptr i64 %16 to i32*
%85 = load i32, i32* %84, align 4
%86 = sext i32 %85 to i64
%87 = call i64 @FUNC(i64 %86)
%88 = inttoptr i64 %87 to i16*
store i16* %88, i16** %sv_3, align 8
%89 = load i64, i64* %22, align 8
%90 = inttoptr i64 %89 to i16*
store i16* %90, i16** %sv_2, align 8
%91 = load i32, i32* %27, align 4
%92 = icmp eq i32 %91, 0
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_10, label LBL_7
LBL_7:
%94 = load i32, i32* %45, align 4
%95 = icmp eq i32 %94, 0
br i1 %95, label LBL_28, label LBL_8
LBL_8:
%96 = add i64 %33, -16
%97 = inttoptr i64 %96 to i64*
%98 = add i64 %33, -24
%99 = inttoptr i64 %98 to i64*
%100 = add i64 %33, -32
%101 = inttoptr i64 %100 to i64*
%102 = bitcast i16** %sv_3 to i64*
store i16* %88, i16** %.reg2mem
store i16* %90, i16** %.reg2mem42
store i32 0, i32* %storemerge25.reg2mem
store i64 0, i64* %sv_1.024.reg2mem
br label LBL_9
LBL_9:
%sv_1.024.reload = load i64, i64* %sv_1.024.reg2mem
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%.reload43 = load i16*, i16** %.reg2mem42
%.reload = load i16*, i16** %.reg2mem
%103 = load i32, i32* %49, align 8
%104 = ptrtoint i16* %.reload43 to i64
%105 = ptrtoint i16* %.reload to i64
store i64 8, i64* %97, align 8
store i64 0, i64* %99, align 8
store i64 1, i64* %101, align 8
%106 = zext i32 %103 to i64
%107 = call i64 @FUNC(i64 %74, i64* nonnull %9, i64 %105, i64 %104, i64 %sv_1.024.reload, i64 %106)
%108 = load i16*, i16** %sv_3, align 8
%109 = bitcast i16* %108 to i8*
%110 = load i8, i8* %109, align 1
%111 = zext i8 %110 to i64
%112 = load i16*, i16** %sv_2, align 8
%113 = ptrtoint i16* %112 to i64
store i64 %113, i64* %102, align 8
%114 = load i32, i32* %84, align 4
%115 = sext i32 %114 to i64
%116 = add i64 %113, %115
%117 = inttoptr i64 %116 to i16*
store i16* %117, i16** %sv_2, align 8
%118 = add i32 %storemerge25.reload, 1
%119 = load i32, i32* %45, align 4
%120 = zext i32 %119 to i64
%121 = sext i32 %118 to i64
%122 = icmp slt i64 %121, %120
store i16* %112, i16** %.reg2mem
store i16* %117, i16** %.reg2mem42
store i32 %118, i32* %storemerge25.reg2mem
store i64 %111, i64* %sv_1.024.reg2mem
br i1 %122, label LBL_9, label LBL_28
LBL_10:
%123 = icmp eq i32 %91, 1
%124 = icmp eq i1 %123, false
br i1 %124, label LBL_14, label LBL_11
LBL_11:
%125 = load i32, i32* %45, align 4
%126 = icmp eq i32 %125, 0
br i1 %126, label LBL_28, label LBL_12
LBL_12:
%127 = add i64 %33, -16
%128 = inttoptr i64 %127 to i64*
%129 = add i64 %33, -24
%130 = inttoptr i64 %129 to i64*
%131 = add i64 %33, -32
%132 = inttoptr i64 %131 to i64*
%133 = bitcast i16** %sv_3 to i64*
store i16* %88, i16** %.reg2mem44
store i16* %90, i16** %.reg2mem46
store i32 0, i32* %storemerge423.reg2mem
store i64 0, i64* %sv_0.022.reg2mem
br label LBL_13
LBL_13:
%sv_0.022.reload = load i64, i64* %sv_0.022.reg2mem
%storemerge423.reload = load i32, i32* %storemerge423.reg2mem
%.reload47 = load i16*, i16** %.reg2mem46
%.reload45 = load i16*, i16** %.reg2mem44
%134 = load i32, i32* %49, align 8
%135 = ptrtoint i16* %.reload47 to i64
%136 = ptrtoint i16* %.reload45 to i64
store i64 16, i64* %128, align 8
store i64 0, i64* %130, align 8
store i64 1, i64* %132, align 8
%137 = zext i32 %134 to i64
%138 = call i64 @FUNC(i64 %74, i64* nonnull %9, i64 %136, i64 %135, i64 %sv_0.022.reload, i64 %137)
%139 = load i16*, i16** %sv_3, align 8
%140 = load i16, i16* %139, align 2
%141 = zext i16 %140 to i64
%142 = load i16*, i16** %sv_2, align 8
%143 = ptrtoint i16* %142 to i64
store i64 %143, i64* %133, align 8
%144 = load i32, i32* %84, align 4
%145 = sext i32 %144 to i64
%146 = add i64 %143, %145
%147 = inttoptr i64 %146 to i16*
store i16* %147, i16** %sv_2, align 8
%148 = add i32 %storemerge423.reload, 1
%149 = load i32, i32* %45, align 4
%150 = zext i32 %149 to i64
%151 = sext i32 %148 to i64
%152 = icmp slt i64 %151, %150
store i16* %142, i16** %.reg2mem44
store i16* %147, i16** %.reg2mem46
store i32 %148, i32* %storemerge423.reg2mem
store i64 %141, i64* %sv_0.022.reg2mem
br i1 %152, label LBL_13, label LBL_28
LBL_14:
%153 = icmp eq i32 %91, 2
%154 = icmp eq i1 %153, false
br i1 %154, label LBL_21, label LBL_15
LBL_15:
%155 = load i32, i32* %45, align 4
%156 = icmp eq i32 %155, 0
br i1 %156, label LBL_28, label LBL_16
LBL_16:
%157 = load i32, i32* %49, align 8
%158 = mul i32 %157, 3
%159 = add i64 %32, -124
%160 = zext i32 %158 to i64
%161 = add i64 %33, -16
%162 = inttoptr i64 %161 to i64*
%163 = add i64 %33, -24
%164 = inttoptr i64 %163 to i64*
%165 = add i64 %33, -32
%166 = inttoptr i64 %165 to i64*
%167 = bitcast i16** %sv_3 to i64*
store i16* %88, i16** %.reg2mem52
store i16* %90, i16** %.reg2mem54
store i32 0, i32* %storemerge521.reg2mem
br label LBL_20
LBL_17:
%indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem
%.reload51 = load i16*, i16** %.reg2mem50
%.reload49 = load i16*, i16** %.reg2mem48
%168 = mul i64 %indvars.iv28.reload, 4
%169 = add i64 %159, %168
%170 = inttoptr i64 %169 to i32*
%171 = load i32, i32* %170, align 4
%172 = zext i32 %171 to i64
%173 = ptrtoint i16* %.reload51 to i64
%174 = add i64 %indvars.iv28.reload, %173
%175 = ptrtoint i16* %.reload49 to i64
%176 = add i64 %indvars.iv28.reload, %175
store i64 8, i64* %162, align 8
store i64 %indvars.iv28.reload, i64* %164, align 8
store i64 3, i64* %166, align 8
%177 = call i64 @FUNC(i64 %74, i64* nonnull %9, i64 %176, i64 %174, i64 %172, i64 %160)
%178 = load i16*, i16** %sv_3, align 8
%179 = ptrtoint i16* %178 to i64
%180 = add i64 %indvars.iv28.reload, %179
%181 = inttoptr i64 %180 to i8*
%182 = load i8, i8* %181, align 1
%183 = zext i8 %182 to i32
store i32 %183, i32* %170, align 4
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next29, 3
br i1 %exitcond, label LBL_19, label LBL_17.LBL_17_crit_edge
LBL_18:
%.pre = load i16*, i16** %sv_2, align 8
%.pre34 = load i16*, i16** %sv_3, align 8
store i16* %.pre34, i16** %.reg2mem48
store i16* %.pre, i16** %.reg2mem50
store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem
br label LBL_17
LBL_19:
%184 = load i16*, i16** %sv_2, align 8
%185 = ptrtoint i16* %184 to i64
store i64 %185, i64* %167, align 8
%186 = load i32, i32* %84, align 4
%187 = sext i32 %186 to i64
%188 = add i64 %185, %187
%189 = inttoptr i64 %188 to i16*
store i16* %189, i16** %sv_2, align 8
%190 = add i32 %storemerge521.reload, 1
%191 = load i32, i32* %45, align 4
%192 = zext i32 %191 to i64
%193 = sext i32 %190 to i64
%194 = icmp slt i64 %193, %192
store i16* %184, i16** %.reg2mem52
store i16* %189, i16** %.reg2mem54
store i32 %190, i32* %storemerge521.reg2mem
br i1 %194, label LBL_20, label LBL_28
LBL_20:
%storemerge521.reload = load i32, i32* %storemerge521.reg2mem
%.reload55 = load i16*, i16** %.reg2mem54
%.reload53 = load i16*, i16** %.reg2mem52
store i16* %.reload53, i16** %.reg2mem48
store i16* %.reload55, i16** %.reg2mem50
store i64 0, i64* %indvars.iv28.reg2mem
br label LBL_17
LBL_21:
%195 = icmp eq i32 %91, 3
%196 = icmp eq i1 %195, false
br i1 %196, label LBL_28, label LBL_22
LBL_22:
%197 = load i32, i32* %45, align 4
%198 = icmp eq i32 %197, 0
br i1 %198, label LBL_28, label LBL_23
LBL_23:
%199 = load i32, i32* %49, align 8
%200 = mul i32 %199, 3
%201 = add i64 %32, -136
%202 = zext i32 %200 to i64
%203 = add i64 %33, -16
%204 = inttoptr i64 %203 to i64*
%205 = add i64 %33, -24
%206 = inttoptr i64 %205 to i64*
%207 = add i64 %33, -32
%208 = inttoptr i64 %207 to i64*
%209 = bitcast i16** %sv_3 to i64*
store i16* %88, i16** %.reg2mem60
store i16* %90, i16** %.reg2mem62
store i32 0, i32* %storemerge719.reg2mem
br label LBL_27
LBL_24:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload59 = load i16*, i16** %.reg2mem58
%.reload57 = load i16*, i16** %.reg2mem56
%210 = mul i64 %indvars.iv.reload, 4
%211 = add i64 %201, %210
%212 = inttoptr i64 %211 to i32*
%213 = load i32, i32* %212, align 4
%214 = zext i32 %213 to i64
%215 = ptrtoint i16* %.reload59 to i64
%216 = add i64 %indvars.iv.reload, %215
%217 = ptrtoint i16* %.reload57 to i64
%218 = add i64 %indvars.iv.reload, %217
store i64 8, i64* %204, align 8
store i64 %indvars.iv.reload, i64* %206, align 8
store i64 3, i64* %208, align 8
%219 = call i64 @FUNC(i64 %74, i64* nonnull %9, i64 %218, i64 %216, i64 %214, i64 %202)
%220 = load i16*, i16** %sv_3, align 8
%221 = ptrtoint i16* %220 to i64
%222 = add i64 %indvars.iv.reload, %221
%223 = inttoptr i64 %222 to i8*
%224 = load i8, i8* %223, align 1
%225 = zext i8 %224 to i32
store i32 %225, i32* %212, align 4
%226 = icmp eq i64 %indvars.iv.reload, 0
%227 = icmp eq i1 %226, false
br i1 %227, label LBL_24.LBL_24_crit_edge, label LBL_26
LBL_25:
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
%.pre35 = load i16*, i16** %sv_2, align 8
%.pre36 = load i16*, i16** %sv_3, align 8
store i16* %.pre36, i16** %.reg2mem56
store i16* %.pre35, i16** %.reg2mem58
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br label LBL_24
LBL_26:
%228 = load i16*, i16** %sv_2, align 8
%229 = ptrtoint i16* %228 to i64
store i64 %229, i64* %209, align 8
%230 = load i32, i32* %84, align 4
%231 = sext i32 %230 to i64
%232 = add i64 %229, %231
%233 = inttoptr i64 %232 to i16*
store i16* %233, i16** %sv_2, align 8
%234 = add i32 %storemerge719.reload, 1
%235 = load i32, i32* %45, align 4
%236 = zext i32 %235 to i64
%237 = sext i32 %234 to i64
%238 = icmp slt i64 %237, %236
store i16* %228, i16** %.reg2mem60
store i16* %233, i16** %.reg2mem62
store i32 %234, i32* %storemerge719.reg2mem
br i1 %238, label LBL_27, label LBL_28
LBL_27:
%storemerge719.reload = load i32, i32* %storemerge719.reg2mem
%.reload63 = load i16*, i16** %.reg2mem62
%.reload61 = load i16*, i16** %.reg2mem60
store i16* %.reload61, i16** %.reg2mem56
store i16* %.reload63, i16** %.reg2mem58
store i64 2, i64* %indvars.iv.reg2mem
br label LBL_24
LBL_28:
%239 = call i64 @FUNC(i64 %87)
%240 = call i64 @FUNC(i64 %74)
%241 = call i64 @FUNC(i64* nonnull %9)
%242 = call i64 @FUNC(i64* nonnull %9)
%243 = trunc i64 %242 to i32
%244 = ashr i32 %243, 3
%245 = call i64 @FUNC(i64* nonnull %9, i64 %8, i32 %244)
%246 = call i64 @FUNC(i64* nonnull %9)
%247 = and i64 %242, 4294967288
%248 = icmp slt i64 %246, %247
br i1 %248, label LBL_29, label LBL_32
LBL_29:
%249 = call i64 @FUNC(i64* nonnull %9, i64 8)
%250 = trunc i64 %249 to i32
store i32 %250, i32* %sv_4, align 4
%251 = and i64 %249, 4294967295
%252 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %251)
%253 = load i32, i32* %sv_4, align 4
%254 = icmp eq i32 %253, 255
%255 = icmp eq i1 %254, false
br i1 %255, label LBL_30, label LBL_31
LBL_30:
%256 = call i64 @FUNC(i64* nonnull %9)
%257 = icmp slt i64 %256, %247
br i1 %257, label LBL_29, label LBL_32
LBL_31:
%258 = call i64 @FUNC(i64* nonnull %9, i64 7)
%259 = trunc i64 %258 to i32
store i32 %259, i32* %sv_4, align 4
%260 = and i64 %258, 4294967295
%261 = call i64 @FUNC(i64* nonnull %9, i64 8, i64 %260)
br label LBL_30
LBL_32:
%262 = call i64 @FUNC(i64* nonnull %9)
%263 = call i64 @FUNC(i64 %8)
%264 = call i64 @FUNC(i64* nonnull %9, i64 217)
%265 = call i64 @FUNC(i64* nonnull %9)
%266 = call i64 @FUNC()
%267 = call i64 @FUNC(i64* nonnull %9)
%268 = trunc i64 %267 to i32
%269 = ashr i32 %268, 3
%270 = zext i32 %269 to i64
ret i64 %270
uselistorder i64 %247, { 1, 0 }
uselistorder i64 %229, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 5, 4, 1, 3, 2, 6 }
uselistorder i64 %185, { 1, 0 }
uselistorder i64 %indvars.iv28.reload, { 0, 4, 1, 3, 2, 5 }
uselistorder i64 %143, { 1, 0 }
uselistorder i64 %113, { 1, 0 }
uselistorder i32* %84, { 3, 2, 1, 0, 4 }
uselistorder i64 %74, { 4, 3, 2, 1, 0, 7, 6, 5, 8, 9 }
uselistorder i64 %53, { 1, 0, 2 }
uselistorder i32* %49, { 3, 2, 1, 0, 4 }
uselistorder i32* %45, { 7, 3, 6, 2, 5, 1, 4, 0, 8 }
uselistorder i32 %storemerge13.reload, { 2, 3, 1, 0 }
uselistorder i64 %33, { 2, 1, 0, 5, 4, 3, 9, 10, 11, 6, 7, 8 }
uselistorder i64 %32, { 1, 0 }
uselistorder i64* %9, { 7, 8, 9, 14, 10, 11, 15, 12, 13, 0, 16, 17, 18, 21, 20, 19, 6, 22, 23, 24, 25, 4, 5, 26, 27, 28, 1, 2, 3, 29, 30, 31, 32, 33, 34, 35, 36, 37 }
uselistorder i64 %3, { 0, 1, 5, 4, 2, 3 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i32* %sv_4, { 2, 1, 0, 3 }
uselistorder i16** %sv_3, { 0, 10, 2, 1, 9, 3, 8, 4, 7, 5, 6 }
uselistorder i16** %sv_2, { 10, 0, 4, 9, 1, 5, 8, 2, 7, 3, 6 }
uselistorder i64* %indvars.iv32.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv30.reg2mem, { 1, 0, 2 }
uselistorder i16** %.reg2mem, { 1, 0, 2 }
uselistorder i16** %.reg2mem42, { 1, 0, 2 }
uselistorder i32* %storemerge25.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.024.reg2mem, { 1, 0, 2 }
uselistorder i16** %.reg2mem44, { 1, 0, 2 }
uselistorder i16** %.reg2mem46, { 1, 0, 2 }
uselistorder i32* %storemerge423.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.022.reg2mem, { 1, 0, 2 }
uselistorder i16** %.reg2mem48, { 2, 1, 0 }
uselistorder i16** %.reg2mem50, { 2, 1, 0 }
uselistorder i64* %indvars.iv28.reg2mem, { 2, 1, 0 }
uselistorder i16** %.reg2mem56, { 2, 1, 0 }
uselistorder i16** %.reg2mem58, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64 (i64*, i64)* @get_bits, { 1, 0 }
uselistorder i64 (i64*)* @get_bits_count, { 1, 0 }
uselistorder i64 (i64*)* @put_bits_count, { 1, 0 }
uselistorder i64 (i64*)* @flush_put_bits, { 1, 0 }
uselistorder i64 (i64)* @av_free, { 2, 1, 0 }
uselistorder i64 3, { 1, 0, 2 }
uselistorder i64 (i64, i64*, i64, i64, i64, i64)* @ls_encode_line, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 1, { 5, 6, 7, 4, 0, 3, 1, 2 }
uselistorder i64 (i64*, i64, i64)* @put_bits, { 16, 15, 12, 11, 10, 14, 13, 6, 5, 9, 8, 7, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*, i64)* @put_marker, { 3, 2, 1, 0 }
uselistorder i32 3, { 5, 6, 1, 2, 3, 4, 0 }
uselistorder i32 0, { 0, 4, 1, 5, 2, 6, 3, 7, 9, 10, 8 }
uselistorder i64 8, { 1, 2, 3, 16, 17, 18, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 19, 20, 21 }
uselistorder i64 (i64*, i64, i32)* @init_put_bits, { 1, 0 }
uselistorder i64 16, { 5, 1, 2, 3, 0, 4, 6, 7, 8 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_28, { 3, 7, 8, 2, 6, 1, 5, 0, 4 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | construct_egprs_data_segment_li_array_12339 | construct_egprs_data_segment_li_array | define i64 @FUNC(i8* %arg1, i8* %arg2, i8* %arg3, i8 %arg4, i8* %arg5, i64* %arg6, i64* %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i8
%.reg2mem6 = alloca i8
%sv_0.05.reg2mem = alloca i8
%.reg2mem = alloca i8
%r8 = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg6 to i64
%sv_1 = alloca i64, align 8
store i64 %2, i64* %sv_1, align 8
store i8 0, i8* %arg5, align 1
%3 = load i64, i64* %arg7, align 8
%4 = icmp eq i64 %3, 0
store i8 %arg4, i8* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_6
LBL_1:
%5 = ptrtoint i64* %arg7 to i64
%6 = bitcast i64* %r8 to i8*
%7 = trunc i64 %1 to i8
%8 = ptrtoint i64* %sv_1 to i64
%9 = ptrtoint i8* %arg1 to i64
%10 = ptrtoint i8* %arg2 to i64
%11 = add i64 %8, -16
%12 = inttoptr i64 %11 to i64*
%13 = ptrtoint i8* %arg3 to i64
store i8 %7, i8* %.reg2mem
store i8 %arg4, i8* %sv_0.05.reg2mem
br label LBL_2
LBL_2:
%sv_0.05.reload = load i8, i8* %sv_0.05.reg2mem
%.reload = load i8, i8* %.reg2mem
%14 = icmp uge i8 %.reload, %7
%15 = icmp ne i1 %14, true
%16 = zext i1 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = zext i8 %sv_0.05.reload to i64
%19 = mul i64 %18, 8
%20 = load i32, i32* @gv_0, align 4
%21 = call i64 @FUNC(i64 %10, i32 %20, i64 %9, i64 %19, i64 7, i64 0)
%22 = or i64 %19, 7
%23 = load i32, i32* @gv_1, align 4
store i64 0, i64* %12, align 8
%24 = call i64 @FUNC(i64 %10, i32 %23, i64 %9, i64 %22, i64 1, i64 %5)
%25 = load i8, i8* %6, align 8
%26 = icmp ult i8 %25, %7
br i1 %26, label LBL_3, label LBL_4
LBL_3:
%27 = zext i8 %25 to i64
%28 = mul i64 %27, 2
%29 = load i64, i64* %sv_1, align 8
%30 = add i64 %29, %28
%31 = inttoptr i64 %30 to i8*
store i8 %sv_0.05.reload, i8* %31, align 1
%32 = load i8, i8* %6, align 8
%33 = zext i8 %32 to i64
%34 = mul i64 %33, 2
%35 = load i64, i64* %sv_1, align 8
%36 = call i64 @FUNC(i64 %9, i64 %18)
%37 = trunc i64 %36 to i8
%38 = add i64 %35, 1
%39 = add i64 %38, %34
%40 = inttoptr i64 %39 to i8*
store i8 %37, i8* %40, align 1
%41 = load i8, i8* %6, align 8
%42 = add i8 %41, 1
store i8 %42, i8* %arg5, align 1
store i8 %41, i8* %.reg2mem6
br label LBL_5
LBL_4:
%43 = call i64 @FUNC(i64 %13, i64 %21, i64* nonnull @gv_2)
store i8 %25, i8* %.reg2mem6
br label LBL_5
LBL_5:
%.reload7 = load i8, i8* %.reg2mem6
%44 = add i8 %sv_0.05.reload, 1
%45 = load i64, i64* %arg7, align 8
%46 = icmp eq i64 %45, 0
store i8 %.reload7, i8* %.reg2mem
store i8 %44, i8* %sv_0.05.reg2mem
store i8 %44, i8* %sv_0.0.lcssa.reg2mem
br i1 %46, label LBL_2, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i8, i8* %sv_0.0.lcssa.reg2mem
%47 = sub i8 %sv_0.0.lcssa.reload, %arg4
%48 = zext i8 %47 to i64
ret i64 %48
uselistorder i8 %25, { 0, 2, 1 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i8 %7, { 1, 2, 0 }
uselistorder i64* %sv_1, { 0, 1, 3, 2 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.05.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem6, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64* %arg7, { 1, 2, 0 }
uselistorder i8 %arg4, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | my_redel_11662 | my_redel | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) 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 = sext i32 %arg3 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i8, align 1
%5 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%6 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %4, i64 %3, i64 %2, i64 %1)
%7 = call i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_5, label LBL_1
LBL_1:
%10 = urem i32 %arg3, 2
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
store i8 45, i8* %sv_3, align 1
%12 = call i64 @FUNC(i64* nonnull %sv_2, i64 6, i64 0)
%13 = call i64 @FUNC(i8* nonnull %sv_3)
%14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%15 = call i64 @FUNC(i64* nonnull %sv_1, i64 %arg1, i64* nonnull @gv_3, i8* nonnull %sv_3, i64 2)
%16 = call i64 @FUNC(i64 %arg1, i64 %15, i32 %arg3)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_5
LBL_3:
%19 = zext i32 %arg3 to i64
%20 = call i64 @FUNC(i64 %arg1, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %arg2, i64 %arg1, i32 %arg3)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
%spec.select = zext i1 %27 to i64
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = call i64 @FUNC(i64 %sv_0.0.reload)
ret i64 %28
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32)* @my_rename, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 %arg3, { 2, 3, 1, 0, 4, 5 }
uselistorder i64 %arg1, { 2, 3, 1, 0, 4 }
uselistorder label LBL_5, { 0, 1, 3, 2 }
} | 1 |
BinRealVul | openpic_tmr_read_16876 | openpic_tmr_read | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i32 %2)
%4 = urem i64 %arg2, 16
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i32 -1, i32* %sv_0.0.reg2mem
br i1 %6, label LBL_9, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i32
%8 = icmp eq i64 %arg2, 0
%9 = icmp eq i1 %8, false
store i32 %7, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_2, label LBL_9
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = udiv i64 %arg2, 64
%12 = trunc i64 %11 to i32
%13 = urem i32 %12, 4
%14 = and i64 %arg2, 48
switch i64 %14, label LBL_3 [
i64 48, label LBL_8
i64 32, label LBL_7
]
LBL_3:
%15 = icmp ult i64 %14, 33
store i32 -1, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_4, label LBL_9
LBL_4:
store i32 -1, i32* %sv_0.0.reg2mem
switch i64 %14, label LBL_9 [
i64 0, label LBL_5
i64 16, label LBL_6
]
LBL_5:
%16 = mul i32 %13, 8
%17 = zext i32 %16 to i64
%18 = add i64 %10, 4
%19 = add i64 %18, %17
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
store i32 %21, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%22 = mul i32 %13, 8
%23 = zext i32 %22 to i64
%24 = add i64 %10, 8
%25 = add i64 %24, %23
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_7:
%28 = add i64 %10, 36
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, %13
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %10, i64 %32)
%34 = trunc i64 %33 to i32
store i32 %34, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%35 = add i64 %10, 36
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i32 %37, %13
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %10, i64 %39)
%41 = trunc i64 %40 to i32
store i32 %41, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i32 %sv_0.0.reload)
%43 = zext i32 %sv_0.0.reload to i64
ret i64 %43
uselistorder i64 %14, { 0, 2, 1 }
uselistorder i32 %13, { 3, 2, 0, 1 }
uselistorder i64 %10, { 5, 4, 3, 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 7, 6, 4, 5, 2, 3, 1, 8 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 %arg2, { 2, 0, 3, 1, 4 }
uselistorder label LBL_9, { 4, 5, 6, 7, 1, 3, 0, 2 }
} | 1 |
BinRealVul | block_job_unref_1812 | block_job_unref | 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 = bitcast i64* %rdi to i32*
%3 = trunc i64 %1 to i32
%4 = add i32 %3, -1
%5 = inttoptr i64 %arg1 to i32*
store i32 %4, i32* %5, align 4
%6 = load i32, i32* %2, align 8
%7 = zext i32 %6 to i64
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %arg1, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
%15 = call i64 @FUNC(i64 %arg1)
%16 = load i64, i64* %11, align 8
%17 = call i64 @FUNC(i64 %16, i64 4198817, i64 4198824, i64 %arg1)
%18 = load i64, i64* %11, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %arg1, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %arg1, 24
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %arg1)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %11, { 1, 0, 2 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1, 4, 3, 5, 6 }
} | 0 |
BinRealVul | qmp_guest_suspend_ram_2595 | qmp_guest_suspend_ram | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = call i64* @malloc(i32 4)
%1 = ptrtoint i64* %0 to i64
%2 = bitcast i64* %0 to i32*
store i32 0, i32* %2, align 4
%3 = call i64 @FUNC(i64 0, i64* nonnull %sv_0)
%4 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%5 = call i64 @FUNC(i64 4198774, i64 %1, i64* nonnull %sv_0)
%6 = load i64, i64* %sv_0, align 8
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg1 to i64
%9 = call i64 @FUNC(i64 %8, i64 %6)
%10 = call i64 @FUNC(i64 %1)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 3, 0, 1, 2, 4 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.