dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | asv2_put_level_15029 | asv2_put_level | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i32 %1, 31
%3 = icmp ult i32 %2, 63
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = zext i32 %2 to i64
%5 = mul i64 %4, 8
%6 = add i64 %5, ptrtoint (i32** @gv_0 to i64)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 8
%9 = add i64 %5, ptrtoint (i32** @gv_1 to i64)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 8
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %0, i64 %12, i32 %8)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%14 = call i64 @FUNC(i64 %0, i64 0, i32 0)
%15 = urem i64 %arg2, 256
%16 = call i64 @FUNC(i64 %0, i64 8, i64 %15)
store i64 %16, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i32)* @put_bits, { 1, 0 }
uselistorder i64 8, { 1, 0 }
} | 1 |
BinRealVul | cpu_class_init_15766 | cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
store i64 4198662, i64* %arg1, align 8
store i64 4198669, i64* %2, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198676, i64* %5, align 8
%6 = inttoptr i64 %3 to i32*
%7 = load i32, i32* %6, align 4
%8 = sext i32 %7 to i64
%9 = call i64 @FUNC(i64 1, i64 %8)
ret i64 %9
} | 1 |
BinRealVul | etsec_class_init_3477 | etsec_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 i64*
store i64 4198676, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i8*
store i8 1, i8* %6, align 1
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | rose_timer_expiry_11896 | rose_timer_expiry | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, -20
%2 = inttoptr i64 %1 to i32*
%3 = call i64 @FUNC(i64 %1)
%4 = load i32, i32* %2, align 4
%5 = icmp eq i32 %4, 4
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = icmp sgt i32 %4, 4
br i1 %6, label LBL_7, label LBL_2
LBL_2:
switch i32 %4, label LBL_7 [
i32 3, label LBL_5
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%7 = call i64 @FUNC(i64 %1, i64 0)
store i32 2, i32* %2, align 4
%8 = call i64 @FUNC(i64 %1)
br label LBL_7
LBL_4:
%9 = add i64 %0, -12
%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 = add i32 %13, -1
store i32 %14, i32* %12, align 4
%15 = call i64 @FUNC(i64 %1, i64 110, i64 4294967295, i64 4294967295)
br label LBL_7
LBL_5:
%16 = add i64 %0, -4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = urem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = and i32 %18, -2
store i32 %21, i32* %17, align 4
%22 = call i64 @FUNC(i64 %1)
br label LBL_7
LBL_7:
%23 = call i64 @FUNC(i64 %1)
ret i64 %23
uselistorder i32 %18, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0, 4, 3, 5, 6 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 3, 4, 0, 5 }
} | 1 |
BinRealVul | scsi_req_xfer_mode_14997 | scsi_req_xfer_mode | 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 i8
%4 = icmp ugt i8 %3, -74
br i1 %4, label LBL_9, label LBL_1
LBL_1:
%5 = icmp ugt i8 %3, -119
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = icmp ugt i8 %3, 29
br i1 %6, label LBL_7, label LBL_3
LBL_3:
%7 = icmp ugt i8 %3, 3
br i1 %7, label LBL_6, label LBL_9
LBL_4:
%8 = add i64 %1, 54
%9 = urem i64 %8, 64
%10 = lshr i64 34913793343505, %9
%11 = urem i64 %10, 2
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
%14 = icmp eq i1 %13, false
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_8, label LBL_9
LBL_5:
%16 = add i64 %1, 18
%17 = urem i64 %16, 64
%18 = lshr i64 299617993353217, %17
%19 = urem i64 %18, 2
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %21, false
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_8, label LBL_9
LBL_6:
%24 = urem i8 %3, 64
%25 = icmp eq i8 %24, 0
br i1 %25, label LBL_9, label %26
LBL_7:
%.off = add i8 %3, -46
%29 = icmp ult i8 %.off, 49
br i1 %29, label LBL_5, label LBL_9
LBL_8:
%30 = add i64 %2, 20
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
br label LBL_12
LBL_9:
%32 = add i64 %2, 16
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = add i64 %2, 20
%37 = inttoptr i64 %36 to i32*
br i1 %35, label LBL_11, label LBL_10
LBL_10:
store i32 2, i32* %37, align 4
br label LBL_12
LBL_11:
store i32 0, i32* %37, align 4
br label LBL_12
LBL_12:
ret i64 %2
uselistorder i32* %37, { 1, 0 }
uselistorder i8 %3, { 5, 0, 4, 3, 2, 1 }
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i1 false, { 0, 1, 2, 5, 4, 6, 7, 3, 8 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 1 |
BinRealVul | s_mp_mul_high_digs_12116 | s_mp_mul_high_digs | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32*
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.08.reg2mem = alloca i64
%sv_0.0.in9.reg2mem = alloca i64
%sv_2.0.in10.reg2mem = alloca i64
%storemerge611.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = load i64, i64* %0
%sv_3 = alloca i64, align 8
%sext = mul i64 %arg4, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = trunc i64 %1 to i32
%9 = trunc i64 %2 to i32
%10 = add i32 %9, %8
%11 = icmp sgt i32 %10, 98
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = sub i32 %9, %8
%13 = xor i64 %2, %1
%14 = trunc i64 %13 to i32
%15 = xor i32 %12, %9
%16 = and i32 %15, %14
%17 = icmp slt i32 %16, 0
%18 = icmp eq i32 %12, 0
%19 = icmp slt i32 %12, 0
%20 = icmp ne i1 %19, %17
%21 = or i1 %18, %20
%22 = select i1 %21, i32 %9, i32 %8
%23 = icmp sgt i32 %22, 29
br i1 %23, label LBL_3, label LBL_2
LBL_2:
%24 = trunc i64 %7 to i32
%25 = call i64 @FUNC(i64 %5, i64 %4, i64 %3, i32 %24)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%26 = add i32 %10, 1
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64* nonnull %sv_3, i64 %27)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_5, label LBL_4
LBL_4:
%31 = and i64 %28, 4294967295
store i64 %31, i64* %rax.0.reg2mem
br label LBL_13
LBL_5:
%32 = sext i32 %26 to i64
store i64 %32, i64* %sv_3, align 8
%33 = icmp sgt i32 %8, 0
br i1 %33, label LBL_6, label LBL_12
LBL_6:
%34 = add i64 %5, 8
%35 = inttoptr i64 %34 to i64*
%36 = ashr exact i64 %sext, 30
%37 = add i64 %6, %36
%38 = add i64 %4, 8
%39 = inttoptr i64 %38 to i64*
%40 = trunc i64 %7 to i32
%sv_0.07 = inttoptr i64 %37 to i32*
%wide.trip.count = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_7
LBL_7:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%41 = load i64, i64* %35, align 8
%42 = mul i64 %indvars.iv.reload, 4
%43 = add i64 %41, %42
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = trunc i64 %indvars.iv.reload to i32
%47 = sub i32 %40, %46
%48 = icmp slt i32 %47, %9
store i32 0, i32* %sv_1.0.lcssa.reg2mem
store i32* %sv_0.07, i32** %sv_0.0.lcssa.reg2mem
br i1 %48, label LBL_8, label LBL_11
LBL_8:
%49 = zext i32 %45 to i64
%50 = load i64, i64* %39, align 8
%51 = sext i32 %47 to i64
%52 = mul i64 %51, 4
%53 = add i64 %50, %52
store i32* %sv_0.07, i32** %sv_0.012.reg2mem
store i32 %47, i32* %storemerge611.reg2mem
store i64 %53, i64* %sv_2.0.in10.reg2mem
store i64 %37, i64* %sv_0.0.in9.reg2mem
store i64 0, i64* %sv_1.08.reg2mem
br label LBL_9
LBL_9:
%sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem
%sv_0.0.in9.reload = load i64, i64* %sv_0.0.in9.reg2mem
%sv_2.0.in10.reload = load i64, i64* %sv_2.0.in10.reg2mem
%storemerge611.reload = load i32, i32* %storemerge611.reg2mem
%sv_0.012.reload = load i32*, i32** %sv_0.012.reg2mem
%sv_2.0 = inttoptr i64 %sv_2.0.in10.reload to i32*
%54 = load i32, i32* %sv_0.012.reload, align 4
%55 = zext i32 %54 to i64
%56 = add i64 %sv_2.0.in10.reload, 4
%57 = load i32, i32* %sv_2.0, align 4
%58 = zext i32 %57 to i64
%59 = mul nuw i64 %58, %49
%60 = add nuw nsw i64 %sv_1.08.reload, %55
%61 = add i64 %60, %59
%62 = add i64 %sv_0.0.in9.reload, 4
%63 = trunc i64 %61 to i32
store i32 %63, i32* %sv_0.012.reload, align 4
%64 = udiv i64 %61, 4294967296
%65 = add i32 %storemerge611.reload, 1
%sv_0.0 = inttoptr i64 %62 to i32*
%exitcond = icmp eq i32 %65, %9
store i32* %sv_0.0, i32** %sv_0.012.reg2mem
store i32 %65, i32* %storemerge611.reg2mem
store i64 %56, i64* %sv_2.0.in10.reg2mem
store i64 %62, i64* %sv_0.0.in9.reg2mem
store i64 %64, i64* %sv_1.08.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%66 = trunc i64 %64 to i32
store i32 %66, i32* %sv_1.0.lcssa.reg2mem
store i32* %sv_0.0, i32** %sv_0.0.lcssa.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.lcssa.reload = load i32*, i32** %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_0.0.lcssa.reload, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond17 = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond17, label LBL_12, label LBL_7
LBL_12:
%67 = call i64 @FUNC(i64* nonnull %sv_3)
%68 = call i64 @FUNC(i64* nonnull %sv_3, i64 %3)
%69 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %64, { 1, 0 }
uselistorder i32* %sv_0.012.reload, { 1, 0 }
uselistorder i32 %47, { 0, 2, 1 }
uselistorder i32* %sv_0.07, { 1, 0 }
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i32 %9, { 2, 3, 4, 0, 5, 1 }
uselistorder i32 %8, { 1, 2, 3, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_3, { 0, 1, 2, 4, 3 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.012.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge611.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.in10.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in9.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.08.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 30, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 4294967296, { 2, 0, 1 }
} | 1 |
BinRealVul | alpha_cpu_class_init_2674 | alpha_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198669, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 72
%16 = inttoptr i64 %15 to i64*
store i64 4198732, i64* %16, align 8
%17 = add i64 %0, 80
%18 = inttoptr i64 %17 to i64*
store i64 4198739, i64* %18, align 8
%19 = add i64 %0, 88
%20 = inttoptr i64 %19 to i64*
store i64 4198746, i64* %20, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%21 = add i64 %0, 96
%22 = inttoptr i64 %21 to i64*
store i64 4198753, i64* %22, align 8
%23 = add i64 %0, 104
%24 = inttoptr i64 %23 to i32*
store i32 67, i32* %24, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
} | 0 |
BinRealVul | aarch64_cpu_class_init_17156 | aarch64_cpu_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 i64*
store i64 4198676, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198683, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i32*
store i32 34, i32* %8, align 4
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 ptrtoint ([17 x i8]* @gv_0 to i64), i64* %10, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5 }
} | 1 |
BinRealVul | nvme_init_integrity_4968 | nvme_init_integrity | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 32)
%3 = trunc i64 %1 to i32
%4 = icmp sgt i32 %3, 2
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = icmp eq i32 %3, 0
%6 = icmp slt i32 %3, 0
%7 = icmp eq i1 %6, false
%8 = icmp eq i1 %5, false
%9 = icmp eq i1 %7, %8
br i1 %9, label LBL_4, label LBL_5
LBL_2:
%10 = icmp eq i32 %3, 3
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_3
LBL_3:
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_0, align 8
br label LBL_6
LBL_4:
store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_0, align 8
br label LBL_6
LBL_5:
store i64 0, i64* %sv_0, align 8
br label LBL_6
LBL_6:
%12 = ptrtoint i64* %arg1 to i64
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i64* nonnull %sv_0)
%17 = add i64 %12, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19, i64 1)
ret i64 %20
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %3, { 3, 1, 2, 0 }
uselistorder i64* %sv_0, { 0, 2, 3, 4, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | ti_newbuf_mini_17849 | ti_newbuf_mini | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %arg4, i64* %sv_0, align 8
%1 = icmp eq i64 %arg4, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = add i64 %0, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5, i64 2048, i64 1, i64 2048, i64 0, i64 0, i64* nonnull %sv_0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %5, i64* %rdi.0.reg2mem
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i8*
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* %12)
store i64 12, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%14 = icmp eq i64* %arg3, null
%15 = icmp eq i1 %14, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %arg4)
store i64 %18, i64* %rdi.0.reg2mem
br label LBL_5
LBL_5:
%sext = mul i64 %arg2, 4294967296
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%20 = add i64 %0, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = ashr exact i64 %sext, 29
%24 = add i64 %22, %23
%25 = load i64, i64* %sv_0, align 8
%26 = inttoptr i64 %24 to i64*
store i64 %25, i64* %26, align 8
%27 = icmp eq i64* %arg3, null
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 0, i64 0, i64 0)
store i64 105, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%30 = ptrtoint i64* %arg3 to i64
%31 = add i64 %30, 16
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = add i64 %30, 8
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
%36 = add i64 %30, 4
%37 = inttoptr i64 %36 to i32*
store i32 2048, i32* %37, align 4
%38 = bitcast i64* %arg3 to i32*
store i32 2048, i32* %38, align 4
%39 = ashr exact i64 %sext, 32
%40 = ashr exact i64 %sext, 31
%41 = add nsw i64 %40, %39
%42 = mul i64 %41, 8
%43 = add i64 %rdi.0.reload, %42
%44 = add i64 %0, 16
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = add i64 %46, %23
%48 = inttoptr i64 %47 to i64*
store i64 %30, i64* %48, align 8
%49 = add i64 %43, 16
%50 = inttoptr i64 %49 to i64*
store i64 %rdi.0.reload, i64* %50, align 8
%51 = inttoptr i64 %43 to i32*
store i32 1, i32* %51, align 4
%52 = add i64 %43, 4
%53 = inttoptr i64 %52 to i32*
store i32 6, i32* %53, align 4
%54 = add i64 %rdi.0.reload, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i64 %43, 8
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = trunc i64 %arg2 to i32
%60 = add i64 %43, 12
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rdi.0.reload, { 1, 0, 2 }
uselistorder i64 %sext, { 1, 2, 0 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 4, 5, 3, 0, 1, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 2048, { 0, 2, 1 }
uselistorder i64 8, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder i64 12, { 2, 0, 1 }
uselistorder i64 2048, { 1, 0 }
uselistorder i64 32, { 0, 3, 4, 1, 2 }
uselistorder i64* %arg3, { 1, 3, 2, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | get_channel_idx_14314 | get_channel_idx | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%3 = trunc i64 %arg3 to i32
%sext4 = mul i32 %3, 16777216
%4 = ashr exact i32 %sext4, 24
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %2, i64 %5)
store i32 0, i32* %sv_1, align 4
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = trunc i64 %arg3 to i8
%10 = icmp eq i8 %9, 45
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = bitcast i64* %arg1 to i8*
%13 = call i32 @strlen(i8* %12)
store i32 %13, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%14 = bitcast i64* %arg1 to i8*
%15 = call i32 (i8*, i8*, ...) @sscanf(i8* %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* %arg2, i32* nonnull %sv_1)
%16 = load i32, i32* %sv_1, align 4
%17 = icmp eq i32 %sv_0.0.reload, %16
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = trunc i64 %1 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%sext = mul i64 %arg4, 4294967296
%20 = and i64 %1, 4294967295
%21 = ashr exact i64 %sext, 32
%22 = icmp slt i64 %21, %20
br i1 %22, label LBL_6, label LBL_7
LBL_6:
store i64 %6, i64* %arg1, align 8
br label LBL_7
LBL_7:
ret i64 0
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
} | 1 |
BinRealVul | process_keytag_5668 | process_keytag | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp ne i64 %arg3, 0
%2 = urem i64 %arg3, 2
%3 = icmp eq i64 %2, 0
%or.cond = icmp eq i1 %1, %3
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %arg3, 4294967295
%5 = call i64 @FUNC(i64 %0, i64 %4)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = and i64 %arg3, 4294967295
%12 = call i64 @FUNC(i64 %0, i64 %11)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%13 = call i64 @FUNC(i64 %6, i64 %arg3)
store i64 %13, i64* %8, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = trunc i64 %arg3 to i16
%16 = add i64 %6, 16
%17 = inttoptr i64 %16 to i16*
store i16 %15, i16* %17, align 2
%18 = call i64 @FUNC(i64 %0)
%19 = and i64 %18, 4294967295
%20 = load i64, i64* %8, align 8
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %19 to i64*
%23 = trunc i64 %arg3 to i32
%24 = call i64* @memmove(i64* %21, i64* %22, i32 %23)
br label LBL_6
LBL_6:
%25 = and i64 %arg3, 4294967295
%26 = call i64 @FUNC(i64 %0, i64 %25)
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 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @isc_buffer_forward, { 2, 1, 0 }
uselistorder i64 %arg3, { 3, 1, 2, 6, 5, 4, 0, 7 }
} | 0 |
BinRealVul | xmt_report_6275 | xmt_report | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%21 = ashr exact i64 %sext, 32
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%. = select i1 %23, i64 2, i64 1
%24 = call i64 @FUNC(i64 1, i64 %.)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_4, label LBL_3
LBL_3:
store i32 24, i32* %sv_1, align 4
%27 = ptrtoint i32* %sv_1 to i64
%28 = ptrtoint i64* %sv_0 to i64
%29 = bitcast i64* %sv_0 to i8*
%30 = call i32 @vsnprintf(i8* nonnull %29, i32 2048, i8* %arg3, i64 %27)
%31 = call i64 @FUNC(i64 %28)
%32 = and i64 %31, 4294967295
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0, i64 %32)
br label LBL_4
LBL_4:
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%34 = ptrtoint i64* %arg1 to i64
%35 = add i64 %34, 8
%36 = inttoptr i64 %35 to i32*
store i32 %22, i32* %36, align 4
br label LBL_6
LBL_6:
%37 = and i64 %21, 4294967295
ret i64 %37
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | ims_pcu_parse_cdc_data_19235 | ims_pcu_parse_cdc_data | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_11
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = inttoptr i64 %5 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %8, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = zext i32 %10 to i64
%15 = call i64 @FUNC(i64 %13, i64 %14)
store i64 %15, i64* %arg2, align 8
%16 = add nuw nsw i64 %14, 4
%17 = add i64 %8, 32
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = call i64 @FUNC(i64 %16)
%20 = add i64 %8, 56
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
%22 = add i64 %5, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = load i64, i64* %12, align 8
%26 = zext i32 %24 to i64
%27 = call i64 @FUNC(i64 %25, i64 %26)
%28 = add i64 %8, 8
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
%30 = inttoptr i64 %27 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 2
br i1 %34, label LBL_3, label LBL_2
LBL_2:
%35 = add i64 %8, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_0, i64 0, i64 0), i32 %33, i64 %3, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
%39 = add i64 %31, 4
%40 = add i64 %8, 40
%41 = inttoptr i64 %40 to i64*
store i64 %39, i64* %41, align 8
%42 = call i64 @FUNC(i64 %39)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_5, label LBL_4
LBL_4:
%46 = add i64 %8, 24
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = trunc i64 %39 to i32
%50 = call i64 @FUNC(i64 %48, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 %49, i64 %3, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%51 = load i64, i64* %41, align 8
%52 = call i64 @FUNC(i64 %51)
%53 = add i64 %8, 64
%54 = inttoptr i64 %53 to i64*
store i64 %52, i64* %54, align 8
%55 = icmp ult i64 %52, 8
br i1 %55, label LBL_6, label LBL_7
LBL_6:
%56 = add i64 %8, 24
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = trunc i64 %52 to i32
%60 = call i64 @FUNC(i64 %58, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i32 %59, i64 %3, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%61 = add i64 %31, 8
%62 = add i64 %8, 48
%63 = inttoptr i64 %62 to i64*
store i64 %61, i64* %63, align 8
%64 = call i64 @FUNC(i64 %61)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_9, label LBL_8
LBL_8:
%68 = add i64 %8, 24
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = trunc i64 %61 to i32
%72 = call i64 @FUNC(i64 %70, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_3, i64 0, i64 0), i32 %71, i64 %3, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%73 = load i64, i64* %63, align 8
%74 = call i64 @FUNC(i64 %73)
%75 = add i64 %8, 72
%76 = inttoptr i64 %75 to i64*
store i64 %74, i64* %76, align 8
%77 = icmp ult i64 %74, 8
store i64 0, i64* %rax.0.reg2mem
br i1 %77, label LBL_10, label LBL_11
LBL_10:
%78 = add i64 %8, 24
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = trunc i64 %74 to i32
%82 = call i64 @FUNC(i64 %80, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0), i32 %81, i64 %3, i64 %2, i64 %1)
store i64 4294967274, 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 %74, { 1, 0, 2 }
uselistorder i64 %61, { 1, 0, 2 }
uselistorder i64 %52, { 1, 0, 2 }
uselistorder i64 %39, { 1, 0, 2 }
uselistorder i64 %8, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 11, 12 }
uselistorder i64 %3, { 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 7, 4, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @dev_err, { 4, 3, 2, 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @usb_endpoint_maxp, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @usb_ifnum_to_if, { 1, 0 }
uselistorder i64 4294967274, { 4, 3, 5, 2, 1, 0 }
uselistorder label LBL_11, { 2, 0, 3, 4, 5, 6, 1 }
} | 1 |
BinRealVul | brcmf_free_wiphy_9621 | brcmf_free_wiphy | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.lcssa.reg2mem = alloca i64
%rdi.01.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_8, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
store i64 %arg1, i64* %rdi.01.reg2mem
store i64 %arg1, i64* %rdi.0.lcssa.reg2mem
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%5 = mul i64 %.reload, 8
%6 = add i64 %rdi.01.reload, %5
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i32 %storemerge2.reload, 1
%11 = load i32, i32* %2, align 4
%12 = zext i32 %11 to i64
%13 = sext i32 %10 to i64
%14 = icmp slt i64 %13, %12
store i64 %13, i64* %.reg2mem
store i32 %10, i32* %storemerge2.reg2mem
store i64 %8, i64* %rdi.01.reg2mem
store i64 %8, i64* %rdi.0.lcssa.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_3:
%rdi.0.lcssa.reload = load i64, i64* %rdi.0.lcssa.reg2mem
%15 = call i64 @FUNC(i64 %rdi.0.lcssa.reload)
%16 = add i64 %arg1, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = inttoptr i64 %18 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
%23 = load i64, i64* %17, align 8
%24 = call i64 @FUNC(i64 %23)
br label LBL_5
LBL_5:
%25 = add i64 %arg1, 24
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = inttoptr i64 %27 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = load i64, i64* %26, align 8
%33 = call i64 @FUNC(i64 %32)
br label LBL_7
LBL_7:
%34 = call i64 @FUNC(i64 %arg1)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %2, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @kfree, { 5, 4, 2, 1, 0, 3 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | hugetlb_vm_op_close_11295 | hugetlb_vm_op_close | 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 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = icmp eq i64 %2, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %1, i64 %0, i64 %0)
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %1, i64 %0, i64 %8)
%10 = sub i64 %9, %5
%11 = add i64 %2, 8
%12 = call i64 @FUNC(i64 %11, i64 %5, i64 %9)
%13 = sub i64 %10, %12
%14 = call i64 @FUNC(i64 %2, i64 4198767)
%15 = icmp eq i64 %13, 0
store i64 %14, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = sub i64 0, %13
%17 = call i64 @FUNC(i64 %1, i64 %16)
%18 = call i64 @FUNC(i64 %3, i64 %13)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64 %0, { 2, 1, 3, 0, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @vma_hugecache_offset, { 1, 0 }
} | 1 |
BinRealVul | swap_sample_fmts_on_filter_1315 | swap_sample_fmts_on_filter | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem44 = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_0.15.reg2mem = alloca i32
%sv_1.16.reg2mem = alloca i32
%storemerge17.reg2mem = alloca i32
%.reg2mem42 = alloca i64
%.reg2mem40 = alloca i64
%storemerge11.reg2mem = alloca i32
%.reg2mem38 = alloca i64
%.reg2mem36 = alloca i32
%sv_2.1.reg2mem = alloca i64*
%storemerge2.lcssa.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%storemerge213.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_0.LBL_7_crit_edge, label LBL_2
LBL_1:
%.pre29 = and i64 %1, 4294967295
store i64 %.pre29, i64* %.pre-phi.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
store i64* inttoptr (i64 16 to i64*), i64** %sv_2.1.reg2mem
br label LBL_7
LBL_2:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge213.reg2mem
br label LBL_3
LBL_3:
%storemerge213.reload = load i32, i32* %storemerge213.reg2mem
%.reload = load i64, i64* %.reg2mem
%9 = mul i64 %.reload, 8
%10 = add i64 %9, %7
%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 = icmp eq i32 %14, 1
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %12, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 1
store i64 %8, i64* %.pre-phi.reg2mem
store i32 %storemerge213.reload, i32* %storemerge2.lcssa.reg2mem
store i64* %18, i64** %sv_2.1.reg2mem
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = add i32 %storemerge213.reload, 1
%24 = sext i32 %23 to i64
%25 = icmp sgt i64 %8, %24
store i64 %24, i64* %.reg2mem
store i32 %23, i32* %storemerge213.reg2mem
br i1 %25, label LBL_3, label LBL_5.LBL_7.loopexit_crit_edge
LBL_6:
%.pre34 = add i64 %12, 16
%.pre35 = inttoptr i64 %.pre34 to i64*
store i64 %8, i64* %.pre-phi.reg2mem
store i32 %23, i32* %storemerge2.lcssa.reg2mem
store i64* %.pre35, i64** %sv_2.1.reg2mem
br label LBL_7
LBL_7:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%26 = icmp eq i32 %storemerge2.lcssa.reload, %3
store i64 %.pre-phi.reload, i64* %rax.0.reg2mem
br i1 %26, label LBL_17, label LBL_8
LBL_8:
%sv_2.1.reload = load i64*, i64** %sv_2.1.reg2mem
%27 = load i64, i64* %sv_2.1.reload, align 8
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = add i64 %2, 16
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %37, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %38, label LBL_17, label LBL_9
LBL_9:
%39 = trunc i64 %34 to i32
%40 = add i64 %2, 24
%41 = inttoptr i64 %40 to i64*
%42 = icmp eq i32 %39, 4
store i32 %37, i32* %.reg2mem36
store i64 0, i64* %.reg2mem38
store i32 0, i32* %storemerge11.reg2mem
br label LBL_10
LBL_10:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%.reload39 = load i64, i64* %.reg2mem38
%.reload37 = load i32, i32* %.reg2mem36
%43 = load i64, i64* %41, align 8
%44 = mul i64 %.reload39, 8
%45 = add i64 %43, %44
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = icmp eq i32 %49, 1
%51 = icmp eq i1 %50, false
store i32 %.reload37, i32* %.reg2mem44
br i1 %51, label LBL_16, label LBL_11
LBL_11:
%52 = add i64 %47, 8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp slt i32 %56, 2
store i64 0, i64* %.reg2mem40
store i64 %54, i64* %.reg2mem42
store i32 0, i32* %storemerge17.reg2mem
store i32 -2147483648, i32* %sv_1.16.reg2mem
store i32 -1, i32* %sv_0.15.reg2mem
store i32 %.reload37, i32* %.reg2mem44
br i1 %57, label LBL_16, label LBL_12
LBL_12:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%.reload43 = load i64, i64* %.reg2mem42
%.reload41 = load i64, i64* %.reg2mem40
%58 = add i64 %.reload43, 8
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = mul i64 %.reload41, 4
%62 = add i64 %60, %61
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i64 %65)
%67 = call i64 @FUNC(i64 %65)
%68 = trunc i64 %67 to i32
%69 = icmp eq i32 %32, %68
store i32 %storemerge17.reload, i32* %sv_0.2.reg2mem
br i1 %69, label LBL_15, label LBL_13
LBL_13:
%70 = trunc i64 %66 to i32
%71 = call i64 @FUNC(i64 %65)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %32, %72
%74 = icmp eq i32 %70, 8
%75 = icmp eq i1 %42, %74
%or.cond = or i1 %75, %73
store i32 %storemerge17.reload, i32* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_15, label LBL_14
LBL_14:
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem
%76 = sub i32 %70, %39
%77 = sub i32 0, %76
%78 = icmp slt i32 %77, 0
%79 = icmp eq i1 %78, false
%80 = select i1 %79, i32 %77, i32 %76
%81 = icmp slt i32 %70, %39
%spec.select = select i1 %81, i32 0, i32 1073741823
%sv_3.0 = sub i32 %spec.select, %80
%82 = icmp sgt i32 %sv_3.0, %sv_1.16.reload
%sv_0.0 = select i1 %82, i32 %storemerge17.reload, i32 %sv_0.15.reload
%sv_1.0 = select i1 %82, i32 %sv_3.0, i32 %sv_1.16.reload
%83 = add i32 %storemerge17.reload, 1
%84 = load i64, i64* %53, align 8
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = zext i32 %86 to i64
%88 = sext i32 %83 to i64
%89 = icmp slt i64 %88, %87
store i64 %88, i64* %.reg2mem40
store i64 %84, i64* %.reg2mem42
store i32 %83, i32* %storemerge17.reg2mem
store i32 %sv_1.0, i32* %sv_1.16.reg2mem
store i32 %sv_0.0, i32* %sv_0.15.reg2mem
store i32 %sv_0.0, i32* %sv_0.2.reg2mem
br i1 %89, label LBL_12, label LBL_15
LBL_15:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%90 = icmp sgt i32 %sv_0.2.reload, -1
%91 = zext i1 %90 to i64
%92 = call i64 @FUNC(i64 %91)
%93 = load i64, i64* %53, align 8
%94 = add i64 %93, 8
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = sext i32 %sv_0.2.reload to i64
%100 = mul i64 %99, 4
%101 = add i64 %96, %100
%102 = inttoptr i64 %101 to i32*
%103 = load i32, i32* %102, align 4
store i32 %103, i32* %97, align 4
%104 = load i64, i64* %53, align 8
%105 = add i64 %104, 8
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = add i64 %107, %100
%109 = inttoptr i64 %108 to i32*
store i32 %98, i32* %109, align 4
%.pre = load i32, i32* %36, align 4
store i32 %.pre, i32* %.reg2mem44
br label LBL_16
LBL_16:
%.reload45 = load i32, i32* %.reg2mem44
%110 = add i32 %storemerge11.reload, 1
%111 = zext i32 %.reload45 to i64
%112 = sext i32 %110 to i64
%113 = icmp slt i64 %112, %111
store i32 %.reload45, i32* %.reg2mem36
store i64 %112, i64* %.reg2mem38
store i32 %110, i32* %storemerge11.reg2mem
store i64 %111, i64* %rax.0.reg2mem
br i1 %113, label LBL_10, label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload45, { 1, 0 }
uselistorder i64 %100, { 1, 0 }
uselistorder i32 %70, { 1, 2, 0 }
uselistorder i32 %storemerge17.reload, { 3, 2, 0, 1 }
uselistorder i32 %storemerge213.reload, { 1, 0 }
uselistorder i64 %8, { 1, 2, 0 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge213.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge2.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64** %sv_2.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %.reg2mem36, { 1, 0, 2 }
uselistorder i64* %.reg2mem38, { 1, 0, 2 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem40, { 2, 0, 1 }
uselistorder i64* %.reg2mem42, { 2, 0, 1 }
uselistorder i32* %storemerge17.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.16.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64)* @av_get_bytes_per_sample, { 1, 0 }
uselistorder i64 8, { 3, 4, 2, 5, 0, 6, 1, 7 }
uselistorder i64 16, { 2, 0, 3, 1 }
uselistorder i64 4294967295, { 1, 0, 2, 3 }
uselistorder label LBL_16, { 2, 1, 0 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | flush_area_local_6852 | flush_area_local | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = add i32 %2, 255
%4 = urem i32 %3, 256
%5 = urem i64 %arg2, 4
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_8, label LBL_1
LBL_1:
%7 = icmp eq i32 %4, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_7, label LBL_2
LBL_2:
%9 = call i64 @FUNC()
%10 = and i64 %9, 32
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 1, i64 %arg1)
%13 = call i64 @FUNC(i64 2, i64 %arg1)
%14 = load i32, i32* @gv_0, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = load i32, i32* inttoptr (i64 4210780 to i32*), align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_8, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 5, i64 %arg1)
%20 = call i64 @FUNC(i64 6, i64 %arg1)
br label LBL_8
LBL_6:
%21 = trunc i64 %1 to i8
call void @FUNC(i8 %21)
br label LBL_8
LBL_7:
%22 = call i64 @FUNC()
br label LBL_8
LBL_8:
%23 = and i64 %arg2, 4
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_10, label LBL_9
LBL_9:
%25 = call i64 @FUNC()
br label LBL_10
LBL_10:
%sext = mul i64 %arg2, 4294967296
%26 = ashr exact i64 %sext, 32
%27 = and i64 %arg2, 8
%28 = icmp eq i64 %27, 0
store i64 %26, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_18, label LBL_11
LBL_11:
%29 = icmp ult i32 %4, 52
store i64 0, i64* %sv_1.0.reg2mem
br i1 %29, label LBL_12, label LBL_13
LBL_12:
%30 = add i32 %2, 11
%31 = urem i32 %30, 64
%32 = icmp eq i32 %31, 0
%33 = zext i32 %31 to i64
%34 = shl i64 1, %33
%storemerge = select i1 %32, i64 1, i64 %34
store i64 %storemerge, i64* %sv_1.0.reg2mem
br label LBL_13
LBL_13:
%35 = icmp ne i64 %5, 0
%36 = and i64 %arg2, 16
%37 = icmp eq i64 %36, 0
%or.cond7 = icmp eq i1 %35, %37
br i1 %or.cond7, label LBL_17, label LBL_14
LBL_14:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%38 = load i64, i64* @gv_1, align 8
%39 = icmp eq i64 %38, 0
%40 = load i64, i64* @gv_2, align 8
%41 = icmp eq i64 %40, 0
%or.cond = or i1 %39, %41
%42 = icmp eq i64 %sv_1.0.reload, 0
%or.cond5 = or i1 %42, %or.cond
br i1 %or.cond5, label LBL_17, label LBL_15
LBL_15:
%43 = udiv i64 %sv_1.0.reload, 1024
%44 = icmp ult i64 %43, %40
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_17, label LBL_16
LBL_16:
%46 = call i64 @FUNC(i64 %arg1, i64 %sv_1.0.reload)
%47 = and i64 %26, -9
store i64 %47, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_17:
%48 = call i64 @FUNC()
store i64 %26, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%49 = and i64 %sv_0.0.reload, 32
%50 = icmp eq i64 %49, 0
br i1 %50, label LBL_20, label LBL_19
LBL_19:
%51 = call i64 @FUNC()
%52 = add i64 %51, 16
%53 = inttoptr i64 %52 to i8*
store i8 1, i8* %53, align 1
br label LBL_20
LBL_20:
%54 = and i64 %sv_0.0.reload, 4294967295
ret i64 %54
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 0, 2, 1 }
uselistorder i64 %26, { 0, 2, 1 }
uselistorder i64 %5, { 1, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64, i64)* @invpcid_flush_one, { 3, 2, 1, 0 }
uselistorder i64 32, { 1, 3, 2, 0 }
uselistorder i32 0, { 0, 2, 3, 4, 1 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 2, 3, 0, 4, 1, 5 }
uselistorder i64 %arg1, { 4, 1, 0, 3, 2 }
uselistorder label LBL_17, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | raw_getname_5430 | raw_getname | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg4 to i32
%2 = call i64 @FUNC(i64 %0)
%3 = icmp eq i32 %1, 0
store i64 95, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = inttoptr i64 %2 to i32*
%6 = call i64* @memset(i64* %arg2, i32 0, i32 8)
%7 = bitcast i64* %arg2 to i16*
store i16 29, i16* %7, align 2
%8 = load i32, i32* %5, align 4
%9 = add i64 %4, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = bitcast i64* %arg3 to i32*
store i32 8, i32* %11, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | Xasc_12483 | Xasc | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rbx.1.lcssa.reg2mem = alloca i64
%r12.0.reg2mem = alloca i64
%rbx.0.reg2mem = alloca i64
%rbx.12.reg2mem = alloca i64
%.reg2mem = alloca i64
%.in.reg2mem = alloca i8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
switch i8 %2, label LBL_1 [
i8 39, label LBL_2
i8 34, label LBL_2
]
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i8* %arg4 to i64
%5 = add i64 %4, 1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, %2
%9 = icmp eq i1 %8, false
store i8 %7, i8* %.in.reg2mem
store i64 %5, i64* %.reg2mem
store i64 %4, i64* %rbx.12.reg2mem
store i64 %4, i64* %rbx.1.lcssa.reg2mem
br i1 %9, label LBL_3, label LBL_18
LBL_3:
%.reload = load i64, i64* %.reg2mem
%.in.reload = load i8, i8* %.in.reg2mem
%10 = zext i8 %.in.reload to i64
%11 = icmp eq i8 %.in.reload, 92
%12 = icmp eq i1 %11, false
store i64 %.reload, i64* %rbx.0.reg2mem
store i64 %10, i64* %r12.0.reg2mem
br i1 %12, label LBL_17, label LBL_4
LBL_4:
%rbx.12.reload = load i64, i64* %rbx.12.reg2mem
%13 = add i64 %rbx.12.reload, 2
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 116
store i64 %13, i64* %rbx.0.reg2mem
store i64 9, i64* %r12.0.reg2mem
br i1 %16, label LBL_17, label LBL_5
LBL_5:
%17 = icmp sgt i8 %15, 116
br i1 %17, label LBL_16, label LBL_6
LBL_6:
%18 = icmp eq i8 %15, 114
store i64 %13, i64* %rbx.0.reg2mem
store i64 13, i64* %r12.0.reg2mem
br i1 %18, label LBL_17, label LBL_7
LBL_7:
%19 = icmp sgt i8 %15, 114
br i1 %19, label LBL_16, label LBL_8
LBL_8:
%20 = icmp eq i8 %15, 110
store i64 %13, i64* %rbx.0.reg2mem
store i64 10, i64* %r12.0.reg2mem
br i1 %20, label LBL_17, label LBL_9
LBL_9:
%21 = icmp sgt i8 %15, 110
br i1 %21, label LBL_16, label LBL_10
LBL_10:
%22 = icmp eq i8 %15, 92
br i1 %22, label LBL_15, label LBL_11
LBL_11:
%23 = icmp sgt i8 %15, 92
br i1 %23, label LBL_16, label LBL_12
LBL_12:
%24 = icmp eq i8 %15, 48
store i64 %13, i64* %rbx.0.reg2mem
store i64 0, i64* %r12.0.reg2mem
br i1 %24, label LBL_17, label LBL_13
LBL_13:
%25 = icmp sgt i8 %15, 48
br i1 %25, label LBL_16, label LBL_14
LBL_14:
switch i8 %15, label LBL_16 [
i8 34, label LBL_15
i8 39, label LBL_15
]
LBL_15:
%26 = zext i8 %15 to i64
store i64 %13, i64* %rbx.0.reg2mem
store i64 %26, i64* %r12.0.reg2mem
br label LBL_17
LBL_16:
%27 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0))
store i64 %13, i64* %rbx.0.reg2mem
store i64 %10, i64* %r12.0.reg2mem
br label LBL_17
LBL_17:
%r12.0.reload = load i64, i64* %r12.0.reg2mem
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
%28 = trunc i64 %r12.0.reload to i32
%sext = mul i32 %28, 16777216
%29 = ashr exact i32 %sext, 24
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %rbx.0.reload, 1
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = icmp eq i8 %34, %2
%36 = icmp eq i1 %35, false
store i8 %34, i8* %.in.reg2mem
store i64 %32, i64* %.reg2mem
store i64 %rbx.0.reload, i64* %rbx.12.reg2mem
store i64 %rbx.0.reload, i64* %rbx.1.lcssa.reg2mem
br i1 %36, label LBL_3, label LBL_18
LBL_18:
%rbx.1.lcssa.reload = load i64, i64* %rbx.1.lcssa.reg2mem
%37 = add i64 %rbx.1.lcssa.reload, 2
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, 0
br i1 %40, label LBL_20, label LBL_19
LBL_19:
%41 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_20
LBL_20:
ret i64 0
uselistorder i64 %rbx.0.reload, { 0, 2, 1 }
uselistorder i64 %13, { 5, 4, 0, 2, 1, 3, 6 }
uselistorder i8 %.in.reload, { 1, 0 }
uselistorder i8 %2, { 0, 2, 1 }
uselistorder i8* %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.12.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.0.reg2mem, { 0, 6, 5, 1, 3, 2, 4, 7 }
uselistorder i64* %r12.0.reg2mem, { 0, 6, 5, 1, 3, 2, 4, 7 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i8*)* @error, { 1, 2, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_17, { 4, 5, 0, 2, 1, 3, 6 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | wait_for_child_to_die_5567 | wait_for_child_to_die | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem2 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
store i64 %arg1, i64* %sv_0, align 8
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 305419896
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %arg1, 24
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 1
store i64 %arg1, i64* %.reg2mem
br i1 %10, label LBL_3, label LBL_1
LBL_1:
%11 = icmp eq i32 %9, 2
%12 = icmp eq i1 %11, false
store i64 %arg1, i64* %.reg2mem2
br i1 %12, label LBL_7, label LBL_2
LBL_2:
%13 = add i64 %arg1, 32
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = trunc i64 %15 to i32
%17 = call i32 @pthread_equal(i32 %16, i32 0)
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
%.pre = load i64, i64* %sv_0, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %.pre, i64* %.reg2mem2
br i1 %19, label LBL_7, label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%20 = add i64 %.reload, 40
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %.reload, 48
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = mul i64 %27, 1000
%29 = icmp ult i64 %22, %28
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_5, label LBL_4
LBL_4:
%31 = udiv i64 %22, 2
%32 = add i64 %31, %22
store i64 %32, i64* %21, align 8
%33 = load i64, i64* %sv_0, align 8
%34 = add i64 %33, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = add i64 %33, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %33, 4
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = inttoptr i64 %39 to i8*
%44 = inttoptr i64 %36 to i8*
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_0, i64 0, i64 0), i32 %42, i8* %43, i8* %44)
br label LBL_6
LBL_5:
store i64 %28, i64* %21, align 8
%46 = load i64, i64* %sv_0, align 8
%47 = add i64 %46, 4
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 %49)
br label LBL_6
LBL_6:
%51 = load i64, i64* %sv_0, align 8
%52 = add i64 %51, 40
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = add i64 %51, 56
%56 = call i64 @FUNC(i64 %55, i64 %54)
store i64 %56, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%.reload3 = load i64, i64* %.reg2mem2
%57 = add i64 %.reload3, 4
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i32 %59)
call void @free(i64* nonnull %sv_0)
store i64 ptrtoint (i32* @0 to i64), i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64* %21, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*, ...)* @printf, { 2, 1, 0 }
uselistorder i64 %arg1, { 3, 0, 1, 2, 4, 5 }
} | 0 |
BinRealVul | hdev_get_max_segments_5035 | hdev_get_max_segments | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%5 = ptrtoint i64* %sv_4 to i64
%6 = add i64 %4, 40
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i32 @gnu_dev_minor(i64 %8)
%10 = load i64, i64* %7, align 8
%11 = call i32 @gnu_dev_major(i64 %10)
%12 = zext i32 %9 to i64
%13 = zext i32 %11 to i64
%14 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %12, i64 %3, i64 %2, i64 %1)
%15 = inttoptr i64 %14 to i8*
%16 = call i32 (i8*, i32, ...) @open(i8* %15, i32 0)
%17 = icmp eq i32 %16, -1
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = call i32* @__errno_location()
%20 = load i32, i32* %19, align 4
%21 = sub i32 0, %20
store i32 %21, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_2:
%22 = call i32 @read(i32 %16, i64* nonnull %sv_3, i32 31)
%23 = icmp eq i32 %22, -1
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = call i32* @__errno_location()
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 4
br i1 %27, label LBL_2, label LBL_4
LBL_4:
%28 = icmp slt i32 %22, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%30 = call i32* @__errno_location()
%31 = load i32, i32* %30, align 4
%32 = sub i32 0, %31
store i32 %32, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%33 = icmp eq i32 %22, 0
%34 = icmp eq i1 %33, false
store i32 -5, i32* %sv_0.0.reg2mem
br i1 %34, label LBL_7, label LBL_9
LBL_7:
%35 = sext i32 %22 to i64
%36 = add i64 %5, -64
%37 = add i64 %36, %35
%38 = inttoptr i64 %37 to i8*
store i8 0, i8* %38, align 1
%39 = bitcast i8** %sv_1 to i64*
%40 = bitcast i32* %sv_2 to i64*
%41 = call i64 @FUNC(i64* nonnull %sv_3, i64* nonnull %39, i64 10, i64* nonnull %40)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
%45 = load i8*, i8** %sv_1, align 8
%46 = icmp eq i8* %45, null
%or.cond = or i1 %46, %44
store i32 %42, i32* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%47 = load i8, i8* %45, align 1
%48 = icmp eq i8 %47, 10
%49 = icmp eq i1 %48, false
%50 = load i32, i32* %sv_2, align 4
%spec.select = select i1 %49, i32 %42, i32 %50
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%51 = call i64 @FUNC(i64 %14)
%52 = zext i32 %sv_0.0.reload to i64
ret i64 %52
uselistorder i32 %42, { 1, 0, 2 }
uselistorder i32 %22, { 2, 1, 0, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 1, 5, 2, 4, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_9, { 0, 2, 1, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | wdt_diag288_class_init_3084 | wdt_diag288_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 i64*
store i64 4198676, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i8*
store i8 0, i8* %6, align 1
%7 = add i64 %0, 28
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = or i32 %9, 1
store i32 %10, i32* %8, align 4
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %12, align 8
store i64 4198683, i64* %arg1, align 8
ret i64 %0
} | 0 |
BinRealVul | i915_vma_unbind_4174 | i915_vma_unbind | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_13
LBL_1:
%5 = add i64 %0, 52
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_3:
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %14, label LBL_4, label LBL_13
LBL_4:
%15 = inttoptr i64 %1 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
call void @exit(i32 1)
unreachable
LBL_6:
%19 = call i64 @FUNC(i64 %0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i64 %19, i64* %rax.0.shrunk.reg2mem
br i1 %21, label LBL_7, label LBL_13
LBL_7:
%22 = call i64 @FUNC(i64 %0)
%23 = call i64 @FUNC(i64 %0)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 %23, i64* %rax.0.shrunk.reg2mem
br i1 %25, label LBL_8, label LBL_13
LBL_8:
%26 = call i64 @FUNC(i64 %0)
%27 = call i64 @FUNC(i64 %0)
%28 = add i64 %0, 24
%29 = call i64 @FUNC(i64 %28)
%30 = add i64 %0, 56
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_10, label LBL_9
LBL_9:
%36 = add i64 %0, 16
%37 = inttoptr i64 %36 to i32*
store i32 1, i32* %37, align 4
br label LBL_10
LBL_10:
%38 = call i64 @FUNC(i64 %5)
%39 = call i64 @FUNC(i64 %0)
%40 = call i64 @FUNC(i64 %28)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label LBL_12, label LBL_11
LBL_11:
%43 = add i64 %0, 40
%44 = call i64 @FUNC(i64 %43, i64 %0)
br label LBL_12
LBL_12:
%45 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_13:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %0, { 3, 2, 1, 4, 0, 8, 7, 5, 6, 10, 9, 11, 12, 13, 14, 15 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 6, 1, 2, 3, 5, 4 }
uselistorder i64 (i64)* @i915_gem_vma_destroy, { 1, 0 }
uselistorder i64 (i64)* @list_empty, { 1, 0 }
uselistorder label LBL_13, { 4, 0, 1, 2, 5, 3 }
} | 0 |
BinRealVul | vmx_set_nmi_mask_9846 | vmx_set_nmi_mask | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i8
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %arg2 to i32
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
%6 = urem i32 %3, 256
%7 = xor i32 %6, 1
%8 = inttoptr i64 %5 to i32*
store i32 %7, i32* %8, align 4
%9 = icmp eq i8 %1, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 0, i64 1)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 0, i64 1)
store i64 %11, 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 }
} | 0 |
BinRealVul | mm_decode_intra_12626 | mm_decode_intra | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = trunc i64 %arg2 to i32
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i32
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = trunc i64 %arg3 to i32
%8 = icmp eq i32 %7, 0
%9 = add i64 %0, 20
%10 = inttoptr i64 %9 to i32*
%11 = trunc i64 %1 to i32
store i32 0, i32* %sv_1.0.ph.reg2mem
br label LBL_10
LBL_1:
%12 = load i32, i32* %10, align 4
%13 = zext i32 %12 to i64
%14 = icmp slt i64 %58, %13
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_12
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%15 = call i64 @FUNC(i64 %1)
%16 = trunc i64 %15 to i32
%17 = trunc i64 %15 to i8
%18 = icmp sgt i8 %17, -1
store i32 %16, i32* %sv_3.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%19 = urem i32 %16, 128
%20 = add nuw nsw i32 %19, 2
%21 = call i64 @FUNC(i64 %1)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_3.0.reg2mem
store i32 %20, i32* %sv_2.0.reg2mem
br label LBL_4
LBL_4:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%spec.select = shl nsw i32 %sv_2.0.reload, %4
%23 = sub i32 %11, %sv_0.0.reload
%24 = zext i32 %23 to i64
%25 = sext i32 %spec.select to i64
%26 = icmp sgt i64 %25, %24
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %26, label LBL_12, label LBL_5
LBL_5:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%27 = icmp eq i32 %sv_3.0.reload, 0
store i64 %1, i64* %.reg2mem
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = load i64, i64* %6, align 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %28, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = mul i32 %33, %sv_1.0.ph.reload
%35 = sext i32 %34 to i64
%36 = sext i32 %sv_0.0.reload to i64
%37 = add i64 %30, %36
%38 = add i64 %37, %35
%39 = inttoptr i64 %38 to i64*
%40 = call i64* @memset(i64* %39, i32 %sv_3.0.reload, i32 %spec.select)
store i64 %38, i64* %.reg2mem
br i1 %8, label LBL_8, label LBL_7
LBL_7:
%41 = load i64, i64* %6, align 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = add i64 %41, 8
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = mul i32 %46, %59
%48 = sext i32 %47 to i64
%49 = add i64 %43, %36
%50 = add i64 %49, %48
%51 = inttoptr i64 %50 to i64*
%52 = call i64* @memset(i64* %51, i32 %sv_3.0.reload, i32 %spec.select)
store i64 %50, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%53 = add i32 %spec.select, %sv_0.0.reload
%54 = and i64 %.reload, 4294967295
%55 = sext i32 %53 to i64
%56 = icmp sgt i64 %54, %55
store i32 %53, i32* %sv_0.0.reg2mem
br i1 %56, label LBL_11, label LBL_9
LBL_9:
%57 = add i32 %59, %7
store i32 %57, i32* %sv_1.0.ph.reg2mem
br label LBL_10
LBL_10:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%58 = sext i32 %sv_1.0.ph.reload to i64
%59 = add i32 %sv_1.0.ph.reload, 1
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%60 = call i64 @FUNC(i64 %1)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp slt i32 %61, 0
%64 = icmp eq i1 %63, false
%65 = icmp eq i1 %62, false
%66 = icmp eq i1 %64, %65
store i64 0, i64* %rax.0.reg2mem
br i1 %66, label LBL_1, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %61, { 1, 0 }
uselistorder i32 %59, { 1, 0 }
uselistorder i32 %sv_3.0.reload, { 2, 0, 1 }
uselistorder i32 %spec.select, { 0, 1, 3, 2 }
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64 %1, { 4, 0, 2, 3, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 2, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder i32 0, { 5, 6, 0, 3, 1, 2, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | piix4_ide_class_init_3353 | piix4_ide_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) 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*
store i64 4198662, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198669, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i32*
store i32 32902, i32* %7, align 4
%8 = add i64 %0, 28
%9 = inttoptr i64 %8 to i32*
store i32 28945, i32* %9, align 4
%10 = add i64 %0, 32
%11 = inttoptr i64 %10 to i32*
store i32 257, i32* %11, align 4
%12 = add i64 %0, 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 0, i64 %15)
%17 = bitcast i64* %arg1 to i8*
store i8 1, i8* %17, align 1
ret i64 %0
} | 0 |
BinRealVul | ntlm_write_message_fields_6761 | ntlm_write_message_fields | define i64 @FUNC(i64* %arg1, i16* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i16
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i16* %arg2 to i64
%3 = add i64 %2, 2
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = icmp eq i16 %5, 0
%7 = icmp eq i1 %6, false
%8 = trunc i64 %1 to i16
store i16 %8, i16* %.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%9 = bitcast i64* %rsi to i16*
store i16 %8, i16* %4, align 2
%.pre = load i16, i16* %9, align 8
store i16 %.pre, i16* %.reg2mem
br label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%.reload = load i16, i16* %.reg2mem
%11 = zext i16 %.reload to i64
%12 = call i64 @FUNC(i64 %10, i64 %11)
%13 = load i16, i16* %4, align 2
%14 = zext i16 %13 to i64
%15 = call i64 @FUNC(i64 %10, i64 %14)
%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 %10, i64 %19)
ret i64 %20
uselistorder i16 %8, { 1, 0 }
uselistorder i16* %.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @Stream_Write_UINT16, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | escape_xml_11245 | escape_xml | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem18 = alloca i8*
%sv_0.0.reg2mem = alloca i64
%.reg2mem16 = alloca i8*
%.reg2mem14 = alloca i8
%.reg2mem12 = alloca i8*
%sv_1.02.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i64
%.reg2mem10 = alloca i8*
%.reg2mem8 = alloca i8
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_2 = alloca i8*, align 8
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i64 ptrtoint ([13 x i8]* @gv_0 to i64), i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = load i8*, i8** @gv_1, align 8
%6 = ptrtoint i8* %5 to i64
%7 = bitcast i8** %sv_2 to i64*
store i64 %6, i64* %7, align 8
%8 = inttoptr i64 %arg1 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 0
%11 = icmp eq i1 %10, false
store i8* %5, i8** %.reg2mem
store i8 %9, i8* %.reg2mem8
store i8* %8, i8** %.reg2mem10
store i64 0, i64* %sv_0.13.reg2mem
store i64 %arg1, i64* %sv_1.02.reg2mem
store i8* %5, i8** %.reg2mem18
br i1 %11, label LBL_2, label LBL_14
LBL_2:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%sv_0.13.reload = load i64, i64* %sv_0.13.reg2mem
%.reload9 = load i8, i8* %.reg2mem8
%.reload = load i8*, i8** %.reg2mem
%12 = add i64 %sv_0.13.reload, 8
%13 = load i32, i32* @gv_2, align 4
%14 = sext i32 %13 to i64
%15 = icmp ugt i64 %12, %14
store i8* %.reload, i8** %.reg2mem12
store i8 %.reload9, i8* %.reg2mem14
br i1 %15, label LBL_3, label LBL_6
LBL_3:
%16 = add i32 %13, 128
store i32 %16, i32* @gv_2, align 4
%17 = load i8*, i8** @gv_1, align 8
%18 = bitcast i8* %17 to i64*
%19 = call i64* @realloc(i64* %18, i32 %16)
%20 = icmp eq i64* %19, null
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = load i8*, i8** @gv_1, align 8
%23 = bitcast i8* %22 to i64*
call void @free(i64* %23)
store i8* null, i8** @gv_1, align 8
store i32 0, i32* @gv_2, align 4
store i64 ptrtoint ([22 x i8]* @gv_3 to i64), i64* %rax.0.reg2mem
br label LBL_15
LBL_5:
%.reload11 = load i8*, i8** %.reg2mem10
%24 = ptrtoint i64* %19 to i64
%25 = add i64 %sv_0.13.reload, %24
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %sv_2, align 8
%27 = bitcast i64* %19 to i8*
store i8* %27, i8** @gv_1, align 8
%.pre = load i8, i8* %.reload11, align 1
store i8* %26, i8** %.reg2mem12
store i8 %.pre, i8* %.reg2mem14
br label LBL_6
LBL_6:
%.reload15 = load i8, i8* %.reg2mem14
%.reload13 = load i8*, i8** %.reg2mem12
%28 = icmp eq i8 %.reload15, 62
br i1 %28, label LBL_11, label LBL_7
LBL_7:
%29 = icmp sgt i8 %.reload15, 62
br i1 %29, label LBL_12, label LBL_8
LBL_8:
switch i8 %.reload15, label LBL_12 [
i8 38, label LBL_9
i8 60, label LBL_10
]
LBL_9:
%30 = ptrtoint i8* %.reload13 to i64
%31 = bitcast i8* %.reload13 to i32*
store i32 1886216486, i32* %31, align 4
%32 = add i64 %30, 4
%33 = inttoptr i64 %32 to i16*
store i16 59, i16* %33, align 2
%34 = load i8*, i8** %sv_2, align 8
%35 = call i32 @strlen(i8* %34)
%36 = sext i32 %35 to i64
%37 = add i64 %sv_0.13.reload, -1
%38 = add i64 %37, %36
%39 = load i8*, i8** @gv_1, align 8
%40 = ptrtoint i8* %39 to i64
%41 = add i64 %38, %40
%42 = inttoptr i64 %41 to i8*
store i8* %42, i8** %sv_2, align 8
store i8* %42, i8** %.reg2mem16
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_10:
%43 = ptrtoint i8* %.reload13 to i64
%44 = bitcast i8* %.reload13 to i32*
store i32 997485606, i32* %44, align 4
%45 = add i64 %43, 4
%46 = inttoptr i64 %45 to i8*
store i8 0, i8* %46, align 1
%47 = load i8*, i8** %sv_2, align 8
%48 = call i32 @strlen(i8* %47)
%49 = sext i32 %48 to i64
%50 = add i64 %sv_0.13.reload, -1
%51 = add i64 %50, %49
%52 = load i8*, i8** @gv_1, align 8
%53 = ptrtoint i8* %52 to i64
%54 = add i64 %51, %53
%55 = inttoptr i64 %54 to i8*
store i8* %55, i8** %sv_2, align 8
store i8* %55, i8** %.reg2mem16
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%56 = ptrtoint i8* %.reload13 to i64
%57 = bitcast i8* %.reload13 to i32*
store i32 997484326, i32* %57, align 4
%58 = add i64 %56, 4
%59 = inttoptr i64 %58 to i8*
store i8 0, i8* %59, align 1
%60 = load i8*, i8** %sv_2, align 8
%61 = call i32 @strlen(i8* %60)
%62 = sext i32 %61 to i64
%63 = add i64 %sv_0.13.reload, -1
%64 = add i64 %63, %62
%65 = load i8*, i8** @gv_1, align 8
%66 = ptrtoint i8* %65 to i64
%67 = add i64 %64, %66
%68 = inttoptr i64 %67 to i8*
store i8* %68, i8** %sv_2, align 8
store i8* %68, i8** %.reg2mem16
store i64 %64, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
store i8 %.reload15, i8* %.reload13, align 1
%.pre6 = load i8*, i8** %sv_2, align 8
store i8* %.pre6, i8** %.reg2mem16
store i64 %sv_0.13.reload, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload17 = load i8*, i8** %.reg2mem16
%69 = add i64 %sv_0.0.reload, 1
%70 = ptrtoint i8* %.reload17 to i64
%71 = add i64 %70, 1
%72 = inttoptr i64 %71 to i8*
store i8* %72, i8** %sv_2, align 8
%73 = add i64 %sv_1.02.reload, 1
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = icmp eq i8 %75, 0
%77 = icmp eq i1 %76, false
store i8* %72, i8** %.reg2mem
store i8 %75, i8* %.reg2mem8
store i8* %74, i8** %.reg2mem10
store i64 %69, i64* %sv_0.13.reg2mem
store i64 %73, i64* %sv_1.02.reg2mem
store i8* %72, i8** %.reg2mem18
br i1 %77, label LBL_2, label LBL_14
LBL_14:
%.reload19 = load i8*, i8** %.reg2mem18
store i8 0, i8* %.reload19, align 1
%78 = load i8*, i8** @gv_1, align 8
%79 = ptrtoint i8* %78 to i64
store i64 %79, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %.reload13, { 2, 0, 1, 6, 5, 4, 3 }
uselistorder i8 %.reload15, { 3, 0, 1, 2 }
uselistorder i64* %19, { 0, 2, 1 }
uselistorder i64 %sv_0.13.reload, { 0, 2, 4, 3, 5, 1 }
uselistorder i8** %sv_2, { 9, 0, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem8, { 2, 0, 1 }
uselistorder i8** %.reg2mem10, { 2, 0, 1 }
uselistorder i64* %sv_0.13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.02.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem16, { 0, 3, 4, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 -1, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 0, 2, 1 }
uselistorder i32* @gv_2, { 2, 1, 0 }
uselistorder i8** @gv_1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3 }
uselistorder i8 0, { 3, 4, 1, 2, 0, 5 }
uselistorder i32 1, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_15, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | arm_gic_init_14940 | arm_gic_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv4.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = add i64 %2, 72
%6 = call i64 @FUNC(i64 %5, i64* nonnull @gv_0, i64 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 256)
%7 = add i64 %2, 8
store i64 0, i64* %indvars.iv4.reg2mem
br label LBL_1
LBL_1:
%indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem
%8 = mul i64 %indvars.iv4.reload, 8
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i64*
store i64 %2, i64* %10, align 8
%indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1
%11 = mul i64 %indvars.iv.next5, 8
%12 = add i64 %11, %5
%13 = call i64 @FUNC(i64 %12, i64* nonnull @gv_2, i64 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 256)
%exitcond6 = icmp eq i64 %indvars.iv.next5, 8
store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem
br i1 %exitcond6, label LBL_2, label LBL_1
LBL_2:
%14 = add i64 %2, 136
%15 = call i64 @FUNC(i64 %2, i64 %14)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = mul i64 %indvars.iv.reload, 8
%17 = add i64 %16, %5
%18 = call i64 @FUNC(i64 %2, i64 %17)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 9
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
ret i64 0
uselistorder i64 %indvars.iv.next5, { 0, 2, 1 }
uselistorder i64 %2, { 0, 1, 4, 3, 2, 5, 6, 7 }
uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @sysbus_init_mmio, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 8, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64, i64*, i64, i8*, i64)* @memory_region_init_io, { 1, 0 }
} | 1 |
BinRealVul | process_keytag_19066 | process_keytag | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp ne i64 %arg3, 0
%2 = urem i64 %arg3, 2
%3 = icmp eq i64 %2, 0
%or.cond = icmp eq i1 %1, %3
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %arg3, 4294967295
%5 = call i64 @FUNC(i64 %0, i64 %4)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 %arg3)
%8 = add i64 %6, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = icmp eq i64 %7, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = trunc i64 %arg3 to i16
%12 = add i64 %6, 16
%13 = inttoptr i64 %12 to i16*
store i16 %11, i16* %13, align 2
%14 = call i64 @FUNC(i64 %0)
%15 = load i64, i64* %9, align 8
%16 = inttoptr i64 %15 to i64*
%17 = inttoptr i64 %14 to i64*
%18 = trunc i64 %arg3 to i32
%19 = call i64* @memmove(i64* %16, i64* %17, i32 %18)
br label LBL_4
LBL_4:
%20 = and i64 %arg3, 4294967295
%21 = call i64 @FUNC(i64 %0, i64 %20)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @isc_buffer_forward, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2, 3 }
uselistorder i64 %arg3, { 3, 1, 2, 5, 4, 0, 6 }
} | 1 |
BinRealVul | parse_line_19055 | parse_line | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge6.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%storemerge.in.in.in.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i8*, align 8
%sv_3 = alloca i64, align 8
%1 = add i64 %0, 1
%2 = inttoptr i64 %1 to i8*
%3 = call i32 @strtol(i8* %2, i8** null, i32 16)
%4 = bitcast i64* %arg1 to i8*
%5 = call i8* @strchr(i8* %4, i32 61)
%6 = icmp eq i8* %5, null
%7 = icmp eq i1 %6, false
store i64 4294967291, i64* %storemerge6.reg2mem
br i1 %7, label LBL_1, label LBL_5
LBL_1:
%8 = urem i32 %3, 65536
%9 = ptrtoint i64* %sv_3 to i64
%10 = add i64 %9, -288
store i32 0, i32* %sv_0.0.reg2mem
store i8* %5, i8** %storemerge.in.in.in.reg2mem
br label LBL_2
LBL_2:
%storemerge.in.in.in.reload = load i8*, i8** %storemerge.in.in.in.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%storemerge.in.in = ptrtoint i8* %storemerge.in.in.in.reload to i64
%storemerge.in = add i64 %storemerge.in.in, 1
%storemerge = inttoptr i64 %storemerge.in to i8*
%11 = call i32 @strtol(i8* %storemerge, i8** nonnull %sv_2, i32 16)
%12 = trunc i32 %11 to i16
%13 = icmp eq i16 %12, 0
%14 = load i8*, i8** %sv_2, align 8
%15 = icmp eq i8* %14, %storemerge
%or.cond = icmp eq i1 %13, %15
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%16 = urem i32 %sv_0.0.reload, 65536
%17 = zext i32 %16 to i64
%18 = trunc i32 %11 to i8
%19 = add i64 %10, %17
%20 = inttoptr i64 %19 to i8*
store i8 %18, i8* %20, align 1
%21 = udiv i16 %12, 256
%22 = add nsw i32 %sv_0.0.reload, 1
%23 = mul i32 %22, 65536
%sext5 = add i32 %23, 65536
%24 = ashr exact i32 %sext5, 16
%25 = urem i32 %22, 65536
%26 = zext i32 %25 to i64
%27 = trunc i16 %21 to i8
%28 = add i64 %10, %26
%29 = inttoptr i64 %28 to i8*
store i8 %27, i8* %29, align 1
%30 = load i8*, i8** %sv_2, align 8
%31 = load i8, i8* %30, align 1
%32 = icmp eq i8 %31, 0
store i32 %24, i32* %sv_0.0.reg2mem
store i8* %30, i8** %storemerge.in.in.in.reg2mem
store i32 %24, i32* %sv_0.1.reg2mem
br i1 %32, label LBL_4, label LBL_2
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%33 = trunc i32 %sv_0.1.reload to i16
%34 = zext i32 %8 to i64
%35 = call i64 @FUNC(i64 %34, i64* nonnull %sv_1, i16 %33)
store i64 %35, i64* %storemerge6.reg2mem
br label LBL_5
LBL_5:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
ret i64 %storemerge6.reload
uselistorder i32 %22, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i8** %sv_2, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i8** %storemerge.in.in.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 65536, { 1, 4, 0, 2, 3 }
uselistorder i32 (i8*, i8**, i32)* @strtol, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | isodate7_9703 | isodate7 | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 56)
%2 = add i64 %0, 5
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = zext i8 %4 to i64
store i64 %5, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64* nonnull %sv_0)
%7 = icmp eq i64 %6, -1
%8 = icmp eq i1 %7, false
%storemerge = select i1 %8, i64 %6, i64 0
ret i64 %storemerge
uselistorder i64* %sv_0, { 0, 2, 1 }
} | 0 |
BinRealVul | test_acpi_piix4_tcg_cphp_295 | test_acpi_piix4_tcg_cphp | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 16)
store i64 1, i64* %sv_0, align 8
%1 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%2 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 %2
uselistorder i64* %sv_0, { 0, 1, 3, 2 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | decode_init_mp3on4_1792 | decode_init_mp3on4 | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i32* %arg1 to i64
%7 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%8 = trunc i64 %4 to i32
%9 = icmp slt i32 %8, 2
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %6, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %6, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %3, i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_3:
%16 = add i64 %6, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = bitcast i32* %sv_0 to i64*
%20 = call i64 @FUNC(i64* nonnull %19, i64 %12, i32 %8)
%21 = load i32, i32* %sv_0, align 4
%22 = icmp ne i32 %21, 0
%23 = icmp slt i32 %21, 8
%or.cond = icmp eq i1 %22, %23
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %6, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %3, i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%25 = inttoptr i64 %18 to i32*
%26 = sext i32 %21 to i64
%27 = mul i64 %26, 4
%28 = add i64 %27, ptrtoint (i32** @gv_2 to i64)
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
store i32 %30, i32* %25, align 4
%31 = load i32, i32* %sv_0, align 4
%32 = sext i32 %31 to i64
%33 = mul i64 %32, 4
%34 = add i64 %33, ptrtoint (i32** @gv_3 to i64)
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = add i64 %18, 4
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
%39 = load i32, i32* %sv_0, align 4
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 4
%42 = add i64 %41, ptrtoint (i32** @gv_4 to i64)
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %6, 16
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = load i32, i32* %sv_0, align 4
%48 = sext i32 %47 to i64
%49 = mul i64 %48, 4
%50 = add i64 %49, ptrtoint (i32** @gv_5 to i64)
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %6, 20
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = icmp sgt i32 %7, 15999
%56 = add i64 %18, 80
%57 = inttoptr i64 %56 to i32*
%. = select i1 %55, i32 -1048576, i32 -2097152
store i32 %., i32* %57, align 4
%58 = call i64 @FUNC(i64 24)
%59 = add i64 %18, 8
%60 = inttoptr i64 %59 to i64*
store i64 %58, i64* %60, align 8
%61 = icmp eq i64 %58, 0
br i1 %61, label LBL_11, label LBL_6
LBL_6:
store i64 %58, i64* %17, align 8
%62 = call i64 @FUNC(i64 %6)
store i64 %18, i64* %17, align 8
%63 = load i64, i64* %60, align 8
%64 = add i64 %63, 8
%65 = inttoptr i64 %64 to i32*
store i32 1, i32* %65, align 4
%66 = load i32, i32* %25, align 4
%67 = icmp ugt i32 %66, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %storemerge7.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %67, label LBL_7, label LBL_12
LBL_7:
%.reload = load i64, i64* %.reg2mem
%68 = call i64 @FUNC(i64 24)
%69 = mul i64 %.reload, 8
%70 = add i64 %69, %59
%71 = inttoptr i64 %70 to i64*
store i64 %68, i64* %71, align 8
%72 = icmp eq i64 %68, 0
br i1 %72, label LBL_11, label LBL_8
LBL_8:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%73 = add i64 %68, 8
%74 = inttoptr i64 %73 to i32*
store i32 1, i32* %74, align 4
%75 = load i64, i64* %71, align 8
%76 = add i64 %75, 16
%77 = inttoptr i64 %76 to i64*
store i64 %6, i64* %77, align 8
%78 = load i64, i64* %60, align 8
%79 = load i64, i64* %71, align 8
%80 = inttoptr i64 %78 to i64*
%81 = load i64, i64* %80, align 8
%82 = inttoptr i64 %79 to i64*
store i64 %81, i64* %82, align 8
%83 = add i32 %storemerge7.reload, 1
%84 = load i32, i32* %25, align 4
%85 = zext i32 %84 to i64
%86 = sext i32 %83 to i64
%87 = icmp slt i64 %86, %85
store i64 %86, i64* %.reg2mem
store i32 %83, i32* %storemerge7.reg2mem
br i1 %87, label LBL_7, label LBL_9
LBL_9:
%88 = icmp slt i32 %84, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %88, label LBL_12, label LBL_10
LBL_10:
%89 = call i64 @FUNC(i64 2048)
%90 = add i64 %18, 72
%91 = inttoptr i64 %90 to i64*
store i64 %89, i64* %91, align 8
%92 = icmp eq i64 %89, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %92, label LBL_11, label LBL_12
LBL_11:
%93 = call i64 @FUNC(i64 %6)
store i64 12, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %68, { 1, 0, 2 }
uselistorder i64 %58, { 1, 0, 2 }
uselistorder i32* %25, { 1, 0, 2 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32* %sv_0, { 3, 2, 1, 0, 4 }
uselistorder i64 %6, { 3, 1, 2, 4, 5, 0, 8, 7, 6 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4, 6 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder i64 4, { 0, 1, 4, 2, 3, 5 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 8, { 1, 0, 2, 3, 4 }
uselistorder label LBL_12, { 3, 2, 1, 0, 4, 5 }
uselistorder label LBL_11, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | read_block_types_1073 | read_block_types | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%rdx.02.reg2mem = alloca i64
%1 = ptrtoint i64* %arg3 to i64
%2 = load i32, i32* %0
%3 = sext i32 %2 to i64
%4 = add i64 %3, %1
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp ugt i64 %4, %7
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = icmp ugt i64 %4, %1
store i64 %1, i64* %rdx.02.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_2:
%10 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%rdx.02.reload = load i64, i64* %rdx.02.reg2mem
%11 = add i64 %rdx.02.reload, 1
store i64 %11, i64* %arg3, align 8
%12 = inttoptr i64 %rdx.02.reload to i8*
store i8 0, i8* %12, align 1
store i64 0, i64* %rdx.02.reg2mem
br label LBL_3
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 2, 3, 1 }
uselistorder i64* %rdx.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | get_proxy_authenticate_18872 | get_proxy_authenticate | define i64 @FUNC(i64 %arg1, i32 %arg2, i64* %arg3, i64* %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.ph.be.reg2mem = alloca i32
%sv_0.0.ph9.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i8, align 1
%sv_5 = alloca i32*, align 8
%0 = ptrtoint i32** %sv_5 to i64
%1 = and i64 %arg1, 4294967295
store i32* %arg5, i32** %sv_5, align 8
%2 = ptrtoint i32* %arg5 to i64
%3 = add i64 %0, -16
%4 = inttoptr i64 %3 to i64*
store i64 %2, i64* %4, align 8
%5 = zext i32 %arg2 to i64
%6 = bitcast i8* %sv_4 to i64*
%7 = call i64 @FUNC(i64 %1, i64* nonnull %6, i64 256, i64 %5, i64 1, i64 0)
%8 = trunc i64 %7 to i8
%9 = icmp eq i8 %8, 1
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%10 = ptrtoint i64* %arg4 to i64
%11 = bitcast i64* %sv_3 to i8*
store i32 0, i32* %sv_0.0.ph9.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.ph9.reload = load i32, i32* %sv_0.0.ph9.reg2mem
%12 = icmp eq i32 %sv_0.0.ph9.reload, 0
%13 = icmp eq i1 %12, false
br label LBL_4
LBL_3:
store i64 0, i64* %arg3, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_16
LBL_4:
%14 = call i64 @FUNC(i64* nonnull %6)
%15 = load i8, i8* %sv_4, align 1
%16 = icmp eq i8 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = zext i32 %sv_0.0.ph9.reload to i64
store i64 %18, i64* %storemerge.reg2mem
br label LBL_16
LBL_6:
br i1 %13, label LBL_7, label LBL_8
LBL_7:
%19 = load i32*, i32** %sv_5, align 8
%20 = ptrtoint i32* %19 to i64
store i64 %20, i64* %4, align 8
%21 = call i64 @FUNC(i64 %1, i64* nonnull %6, i64 256, i64 %5, i64 1, i64 0)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 1
br i1 %23, label LBL_4, label LBL_3
LBL_8:
%24 = call i32 @strncmp(i8* nonnull %sv_4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i32 20)
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_9
LBL_9:
%27 = call i32 @strncmp(i8* nonnull %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i32 6)
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_11, label LBL_10
LBL_10:
%30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %6)
%31 = call i64 @FUNC(i64* nonnull %sv_2, i64 %10)
store i64 %31, i64* %arg3, align 8
store i32 1, i32* %sv_0.0.ph.be.reg2mem
br label LBL_15
LBL_11:
%32 = call i32 @strncmp(i8* nonnull %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i32 7)
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_13, label LBL_12
LBL_12:
%35 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %6)
%36 = call i64 @FUNC(i64* nonnull %sv_1, i64 %10)
store i64 %36, i64* %arg3, align 8
store i32 2, i32* %sv_0.0.ph.be.reg2mem
br label LBL_15
LBL_13:
%37 = call i32 @strncmp(i8* nonnull %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i32 4)
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_7, label LBL_14
LBL_14:
%40 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64* nonnull %6)
store i64 0, i64* %arg3, align 8
store i32 3, i32* %sv_0.0.ph.be.reg2mem
br label LBL_15
LBL_15:
%sv_0.0.ph.be.reload = load i32, i32* %sv_0.0.ph.be.reg2mem
%41 = load i32*, i32** %sv_5, align 8
%42 = ptrtoint i32* %41 to i64
store i64 %42, i64* %4, align 8
%43 = call i64 @FUNC(i64 %1, i64* nonnull %6, i64 256, i64 %5, i64 1, i64 0)
%44 = trunc i64 %43 to i8
%45 = icmp eq i8 %44, 1
store i32 %sv_0.0.ph.be.reload, i32* %sv_0.0.ph9.reg2mem
br i1 %45, label LBL_2, label LBL_3
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.0.ph9.reload, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %6, { 4, 0, 1, 2, 6, 5, 3 }
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64* %4, { 1, 2, 0 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i32** %sv_5, { 0, 3, 2, 1 }
uselistorder i8* %sv_4, { 2, 0, 1 }
uselistorder i32* %sv_0.0.ph9.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*, i64)* @string_alloc, { 1, 0 }
uselistorder i64 (i64, i8*, i64*)* @msg, { 2, 1, 0 }
uselistorder i32 (i8*, i8*, i32)* @strncmp, { 3, 2, 1, 0 }
uselistorder i1 false, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i8 1, { 1, 2, 0 }
uselistorder i64 (i64, i64*, i64, i64, i64, i64)* @recv_line, { 1, 2, 0 }
uselistorder i64 1, { 2, 3, 4, 5, 6, 1, 0 }
uselistorder i64 256, { 1, 2, 0 }
uselistorder label LBL_7, { 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mtree_atol8_8670 | mtree_atol8 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.off0.reg2mem = alloca i64
%sv_0.0.off0813.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%sext = mul i32 %1, 16777216
%storemerge.in6 = ashr exact i32 %sext, 24
%storemerge7 = add nsw i32 %storemerge.in6, -48
%2 = icmp ult i32 %storemerge7, 8
store i64 0, i64* %sv_0.1.off0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = sext i32 %storemerge7 to i64
store i64 0, i64* %sv_0.0.off0813.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.off0813.reload = load i64, i64* %sv_0.0.off0813.reg2mem
%4 = mul i64 %sv_0.0.off0813.reload, 8
%5 = add i64 %4, %3
%6 = icmp sgt i64 %5, 1152921504606846975
store i64 %5, i64* %sv_0.0.off0813.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_3:
%7 = add i64 %0, 1
store i64 %7, i64* %arg1, align 8
store i64 9223372036854775807, i64* %sv_0.1.off0.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.off0.reload = load i64, i64* %sv_0.1.off0.reg2mem
ret i64 %sv_0.1.off0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %sv_0.0.off0813.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.1.off0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | xilinx_axidma_init_921 | xilinx_axidma_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %0, i64 0, i64 4198794)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %2, i64 0, i64 4198794)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4, i64 8, i64 0)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6, i64 8, i64 0)
%8 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 4198794)
%9 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %6, i64 4198794)
%10 = add i64 %0, 32
%11 = call i64 @FUNC(i64 %0, i64 %10)
%12 = add i64 %0, 36
%13 = call i64 @FUNC(i64 %0, i64 %12)
%14 = add i64 %0, 40
%15 = call i64 @FUNC(i64 %14, i64 %0, i64* nonnull @gv_4, i64 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i64 8192)
%16 = call i64 @FUNC(i64 %0, i64 %14)
ret i64 %16
uselistorder i64 %0, { 5, 15, 0, 14, 4, 13, 3, 12, 11, 10, 9, 8, 1, 7, 6, 2 }
uselistorder i64 (i64, i64)* @sysbus_init_irq, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64)* @object_property_add_child, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @object_initialize, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @object_property_add_link, { 1, 0 }
} | 0 |
BinRealVul | perf_nesting_3344 | perf_nesting | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%sv_0 = alloca i32, align 4
%0 = call i64 @FUNC()
store i32 0, i32* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
store i32 0, i32* %sv_0, align 4
%1 = call i64 @FUNC(i64 4198826, i32* nonnull %sv_0)
%2 = call i64 @FUNC(i64 %1)
%3 = add nuw nsw i32 %storemerge1.reload, 1
%exitcond = icmp eq i32 %3, 10000
store i32 %3, i32* %storemerge1.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%4 = call i128 @FUNC()
%5 = call i64 @__asm_movq.1(i128 %4)
%6 = call i128 @FUNC(i64 %5)
%7 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 10000, i64 1000)
ret i64 %7
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 1, { 6, 5, 4, 1, 0, 3, 2 }
} | 0 |
BinRealVul | pipelined_send_9350 | pipelined_send | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%storemerge411.reg2mem = alloca i64
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge1.reg2mem
br i1 %0, label LBL_8, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %rsi to i32*
%4 = load i64, i64* %arg1, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
store i64 %2, i64* %storemerge411.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br i1 %6, label LBL_2, label LBL_8
LBL_2:
%storemerge411.reload = load i64, i64* %storemerge411.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = add i64 %storemerge411.reload, 24
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %storemerge411.reload, 20
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %1, i64 %13, i32 %9)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = load i32, i32* %8, align 4
%18 = load i32, i32* %11, align 4
%19 = add i64 %storemerge411.reload, 32
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = zext i32 %17 to i64
%23 = call i64 @FUNC(i64 %2, i64 %1, i64 %21, i32 %18, i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%27 = call i64 @FUNC(i64 %storemerge411.reload)
%28 = add i64 %storemerge411.reload, 16
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = load i32, i32* %3, align 8
%32 = icmp ult i32 %30, %31
%33 = add i64 %storemerge411.reload, 8
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %34, align 8
%35 = load i64, i64* %20, align 8
br i1 %32, label LBL_5, label LBL_6
LBL_5:
%36 = call i64 @FUNC(i64 %35)
%37 = call i64 @FUNC()
store i64 -1, i64* %34, align 8
br label LBL_7
LBL_6:
%38 = call i64 @FUNC(i64 %35)
%39 = trunc i64 %38 to i32
%40 = add i64 %2, 8
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = call i64 @FUNC()
%43 = trunc i64 %42 to i32
%44 = add i64 %2, 12
%45 = inttoptr i64 %44 to i32*
store i32 %43, i32* %45, align 4
%46 = load i64, i64* %20, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = call i64 @FUNC()
store i64 %1, i64* %34, align 8
store i64 1, i64* %storemerge1.reg2mem
br label LBL_8
LBL_7:
%49 = inttoptr i64 %.reload to i64*
%50 = load i64, i64* %49, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
store i64 %50, i64* %.reg2mem
store i64 %.reload, i64* %storemerge411.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br i1 %52, label LBL_2, label LBL_8
LBL_8:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %storemerge411.reload, { 5, 3, 4, 2, 0, 1 }
uselistorder i64 %2, { 1, 2, 3, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge411.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i64 ()* @smp_wmb, { 1, 0 }
uselistorder i64 (i64)* @wake_up_process, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_8, { 1, 3, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | avformat_open_input_17379 | avformat_open_input | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64*
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %sv_1.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %sv_1.0.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_28
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%6 = icmp eq i64 %arg3, 0
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = inttoptr i64 %sv_1.0.reload to i64*
store i64 %arg3, i64* %7, align 8
br label LBL_4
LBL_4:
%8 = ptrtoint i64* %arg4 to i64
%9 = icmp eq i64* %arg4, null
br i1 %9, label LBL_6, label LBL_5
LBL_5:
%10 = call i64 @FUNC(i64* nonnull %sv_2, i64 %8, i64 0)
br label LBL_6
LBL_6:
%11 = call i64 @FUNC(i64 %sv_1.0.reload, i64* nonnull %sv_2)
%12 = and i64 %11, 4294967295
%13 = inttoptr i64 %12 to i64*
%14 = trunc i64 %11 to i32
%15 = icmp slt i32 %14, 0
store i64* %13, i64** %sv_0.0.reg2mem
br i1 %15, label LBL_24, label LBL_7
LBL_7:
%16 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %arg2)
%17 = and i64 %16, 4294967295
%18 = inttoptr i64 %17 to i64*
%19 = trunc i64 %16 to i32
%20 = icmp slt i32 %19, 0
store i64* %18, i64** %sv_0.0.reg2mem
br i1 %20, label LBL_24, label LBL_8
LBL_8:
%21 = inttoptr i64 %sv_1.0.reload to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = urem i32 %24, 2
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_10, label LBL_9
LBL_9:
%27 = call i64 @FUNC(i64 %arg2)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i64* inttoptr (i32 -22 to i64*), i64** %sv_0.0.reg2mem
br i1 %30, label LBL_10, label LBL_24
LBL_10:
%31 = add i64 %sv_1.0.reload, 1044
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %sv_1.0.reload, 1040
%34 = inttoptr i64 %33 to i32*
store i32 0, i32* %34, align 4
%35 = add i64 %sv_1.0.reload, 16
%36 = call i64 @FUNC(i64 %35, i64 %arg2, i64 1024)
%37 = load i64, i64* %21, align 8
%38 = add i64 %37, 4
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp slt i32 %40, 1
br i1 %41, label LBL_14, label LBL_11
LBL_11:
%42 = sext i32 %40 to i64
%43 = call i64 @FUNC(i64 %42)
%44 = add i64 %sv_1.0.reload, 8
%45 = inttoptr i64 %44 to i64*
store i64 %43, i64* %45, align 8
%46 = icmp eq i64 %43, 0
%47 = icmp eq i1 %46, false
store i64* inttoptr (i32 -12 to i64*), i64** %sv_0.0.reg2mem
br i1 %47, label LBL_12, label LBL_24
LBL_12:
%48 = load i64, i64* %21, align 8
%49 = add i64 %48, 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = icmp eq i64 %51, 0
br i1 %52, label LBL_14, label LBL_13
LBL_13:
%53 = inttoptr i64 %43 to i64*
store i64 %51, i64* %53, align 8
%54 = load i64, i64* %45, align 8
%55 = call i64 @FUNC(i64 %54)
%56 = load i64, i64* %45, align 8
%57 = call i64 @FUNC(i64 %56, i64* nonnull %sv_2)
%58 = and i64 %57, 4294967295
%59 = inttoptr i64 %58 to i64*
%60 = trunc i64 %57 to i32
%61 = icmp slt i32 %60, 0
store i64* %59, i64** %sv_0.0.reg2mem
br i1 %61, label LBL_24, label LBL_14
LBL_14:
%62 = add i64 %sv_1.0.reload, 1056
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = icmp eq i64 %64, 0
br i1 %65, label LBL_16, label LBL_15
LBL_15:
%66 = call i64 @FUNC(i64 %sv_1.0.reload, i64 0)
br label LBL_16
LBL_16:
%67 = load i64, i64* %21, align 8
%68 = add i64 %67, 16
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = icmp eq i64 %70, 0
br i1 %71, label LBL_18, label LBL_17
LBL_17:
%72 = and i64 %sv_1.0.reload, 4294967295
%73 = inttoptr i64 %72 to i64*
%74 = trunc i64 %sv_1.0.reload to i32
%75 = icmp slt i32 %74, 0
store i64* %73, i64** %sv_0.0.reg2mem
br i1 %75, label LBL_24, label LBL_18
LBL_18:
%76 = load i64, i64* %63, align 8
%77 = icmp eq i64 %76, 0
br i1 %77, label LBL_21, label LBL_19
LBL_19:
%78 = add i64 %sv_1.0.reload, 1064
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_21, label LBL_20
LBL_20:
%83 = call i64 @FUNC(i64 %76)
%84 = trunc i64 %83 to i32
store i32 %84, i32* %79, align 4
br label LBL_21
LBL_21:
%85 = add i64 %sv_1.0.reload, 1068
%86 = inttoptr i64 %85 to i32*
store i32 4096, i32* %86, align 4
br i1 %9, label LBL_23, label LBL_22
LBL_22:
%87 = call i64 @FUNC(i64 %8)
%88 = load i64, i64* %sv_2, align 8
store i64 %88, i64* %arg4, align 8
br label LBL_23
LBL_23:
store i64 %sv_1.0.reload, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_28
LBL_24:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%89 = ptrtoint i64* %sv_2 to i64
%90 = call i64 @FUNC(i64 %89)
%91 = add i64 %sv_1.0.reload, 1056
%92 = inttoptr i64 %91 to i64*
%93 = load i64, i64* %92, align 8
%94 = icmp eq i64 %93, 0
br i1 %94, label LBL_27, label LBL_25
LBL_25:
%95 = add i64 %sv_1.0.reload, 1048
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = and i32 %97, 2
%99 = icmp eq i32 %98, 0
%100 = icmp eq i1 %99, false
br i1 %100, label LBL_27, label LBL_26
LBL_26:
%101 = call i64 @FUNC(i64 %93)
br label LBL_27
LBL_27:
%102 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 0, i64* %arg1, align 8
%103 = ptrtoint i64* %sv_0.0.reload to i64
%104 = and i64 %103, 4294967295
store i64 %104, i64* %rax.0.reg2mem
br label LBL_28
LBL_28:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %43, { 1, 0, 2 }
uselistorder i64* %21, { 1, 0, 2, 3 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 3, 1, 2, 15, 14, 13, 12, 11, 9, 10, 16, 8, 7, 6, 5, 4, 0, 17 }
uselistorder i64* %sv_2, { 3, 4, 0, 1, 2, 5 }
uselistorder i64** %sv_0.0.reg2mem, { 0, 4, 3, 1, 2, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @av_dict_free, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64*)* @av_opt_set_dict, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_28, { 1, 2, 0 }
uselistorder label LBL_24, { 2, 3, 0, 1, 4, 5 }
} | 1 |
BinRealVul | nf_bridge_copy_header_8191 | nf_bridge_copy_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = add i32 %3, 14
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = and i64 %6, 4294967295
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%10 = sub i64 4294967282, %2
%11 = and i64 %10, 4294967295
%12 = call i64 @FUNC(i64 %0, i64 %11, i64 %0, i32 %4)
%13 = call i64 @FUNC(i64 %0)
%14 = and i64 %13, 4294967295
%15 = call i64 @FUNC(i64 %0, i64 %14)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 3, 0, 4, 5, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @nf_bridge_encap_header_len, { 1, 0 }
} | 0 |
BinRealVul | jswrap_i2c_readFrom_6985 | jswrap_i2c_readFrom | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_13
LBL_1:
%3 = call i64 @FUNC(i64 %arg1)
store i32 1, i32* %sv_1, align 4
%4 = bitcast i32* %sv_1 to i8*
%5 = call i64 @FUNC(i64 %arg2, i8* nonnull %4)
%6 = icmp eq i32 %arg3, 0
%7 = icmp slt i32 %arg3, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_13
LBL_2:
%11 = add i32 %arg3, 256
%12 = call i64 @FUNC()
%13 = trunc i64 %12 to i32
%14 = icmp ugt i32 %11, %13
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%16 = ptrtoint i64* %sv_2 to i64
%17 = trunc i64 %3 to i32
%18 = sext i32 %arg3 to i64
%19 = add nsw i64 %18, 23
%20 = udiv i64 %19, 16
%21 = mul i64 %20, 16
%22 = sub i64 15, %21
%23 = add i64 %22, %16
%24 = and i64 %23, -16
%25 = icmp eq i32 %17, 0
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = load i32, i32* %sv_1, align 4
%27 = urem i64 %5, 256
%28 = urem i32 %26, 256
%29 = zext i32 %28 to i64
%30 = and i64 %3, 4294967295
%31 = call i64 @FUNC(i64 %30, i64 %27, i32 %arg3, i64 %24, i64 %29)
br label LBL_9
LBL_6:
%32 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 0)
%33 = bitcast i32* %sv_0 to i64*
%34 = call i64 @FUNC(i64* nonnull %33, i64 %32)
%35 = trunc i64 %34 to i8
%36 = icmp eq i8 %35, 0
br i1 %36, label LBL_8, label LBL_7
LBL_7:
%37 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 0)
%38 = call i64 @FUNC(i64 %37)
%39 = trunc i64 %38 to i32
%sext = mul i32 %39, 16777216
%40 = ashr exact i32 %sext, 24
store i32 %40, i32* %sv_0, align 4
%41 = load i32, i32* %sv_1, align 4
%42 = urem i64 %5, 256
%43 = urem i32 %41, 256
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64* nonnull %33, i64 %42, i32 %arg3, i64 %24, i64 %44)
br label LBL_8
LBL_8:
%46 = load i32, i32* %sv_0, align 4
%47 = urem i32 %46, 256
%48 = zext i32 %47 to i64
%49 = call i64 @FUNC(i64 %48)
%50 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 %49)
%51 = call i64 @FUNC(i64 %50, i64 %32)
br label LBL_9
LBL_9:
%52 = zext i32 %arg3 to i64
%53 = call i64 @FUNC(i64 2, i64 %52)
%54 = icmp eq i64 %53, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %54, label LBL_13, label LBL_10
LBL_10:
%55 = bitcast i32* %sv_0 to i64*
%56 = call i64 @FUNC(i64* nonnull %55, i64 %53, i64 0)
store i64 0, i64* %indvars.iv.reg2mem
br i1 %6, label LBL_12, label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%57 = add i64 %indvars.iv.reload, %24
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = sext i8 %59 to i64
%61 = and i64 %60, 4294967295
%62 = call i64 @FUNC(i64* nonnull %55, i64 %61)
%63 = call i64 @FUNC(i64* nonnull %55)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %52
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_12, label LBL_11
LBL_12:
%64 = call i64 @FUNC(i64* nonnull %55)
store i64 %53, 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* %sv_1, { 2, 1, 3, 0 }
uselistorder i32* %sv_0, { 3, 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i64 (i64, i8*, i64)* @jsvObjectGetChild, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0, 3, 6, 5, 4 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4 }
uselistorder label LBL_13, { 1, 0, 4, 2, 3 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | setup_count_cache_flush_6907 | setup_count_cache_flush | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = load i8, i8* inttoptr (i64 4210725 to i8*), align 1
%1 = icmp eq i8 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %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 i8
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 2)
%11 = trunc i64 %10 to i8
%12 = icmp eq i8 %11, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = call i64 @FUNC(i64 2)
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = call i64 @FUNC(i64 3)
%19 = trunc i64 %18 to i8
%20 = icmp eq i8 %19, 0
br i1 %20, label LBL_8, label LBL_7
LBL_7:
%21 = call i64 @FUNC(i64 4)
br label LBL_8
LBL_8:
%22 = call i64 @FUNC(i64 %sv_0.0.reload)
ret i64 %22
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @security_ftr_enabled, { 3, 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 0 |
BinRealVul | target_to_host_data_route_2227 | target_to_host_data_route | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.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 i16*
%5 = load i16, i16* %4, align 2
%6 = zext i16 %5 to i64
%7 = add nuw nsw i64 %6, 4294967280
%8 = and i64 %7, 4294967295
store i64 %8, i64* @0, align 8
%trunc = trunc i64 %7 to i32
%9 = trunc i64 %1 to i32
store i64 -95, i64* %storemerge.reg2mem
switch i32 %trunc, label LBL_8 [
i32 0, label LBL_1
i32 1, label LBL_1
i32 2, label LBL_7
i32 4, label LBL_3
i32 5, label LBL_3
i32 6, label LBL_3
i32 8, label LBL_5
i32 9, label LBL_5
i32 10, label LBL_7
]
LBL_1:
%10 = icmp ult i32 %9, 32
br i1 %10, label LBL_7, label LBL_2
LBL_2:
%11 = bitcast i64* %rdi to i32*
%12 = add i64 %2, 18
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = zext i16 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i16
store i16 %17, i16* %13, align 2
%18 = add i64 %2, 20
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
store i32 %23, i32* %19, align 4
%24 = add i64 %2, 24
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %27)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %25, align 4
%30 = add i64 %2, 28
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = trunc i64 %34 to i32
store i32 %35, i32* %31, align 4
%36 = load i32, i32* %11, align 8
%37 = add i32 %36, -32
%38 = add i64 %2, 32
%39 = zext i32 %37 to i64
%40 = call i64 @FUNC(i64 %38, i64 %39)
br label LBL_7
LBL_3:
%41 = icmp ult i32 %9, 24
br i1 %41, label LBL_7, label LBL_4
LBL_4:
%42 = bitcast i64* %rdi to i32*
%43 = add i64 %2, 20
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 %46)
%48 = trunc i64 %47 to i32
store i32 %48, i32* %44, align 4
%49 = load i32, i32* %42, align 8
%50 = add i32 %49, -24
%51 = add i64 %2, 24
%52 = zext i32 %50 to i64
%53 = call i64 @FUNC(i64 %51, i64 %52)
br label LBL_7
LBL_5:
%54 = icmp ult i32 %9, 28
br i1 %54, label LBL_7, label LBL_6
LBL_6:
%55 = bitcast i64* %rdi to i32*
%56 = add i64 %2, 24
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = zext i32 %58 to i64
%60 = call i64 @FUNC(i64 %59)
%61 = trunc i64 %60 to i32
store i32 %61, i32* %57, align 4
%62 = load i32, i32* %55, align 8
%63 = add i32 %62, -28
%64 = add i64 %2, 28
%65 = zext i32 %63 to i64
%66 = call i64 @FUNC(i64 %64, i64 %65)
br label LBL_7
LBL_7:
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %9, { 2, 1, 0 }
uselistorder i64 %2, { 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder i64* %rdi, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @tswap32, { 4, 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 3, 2, 5, 4, 7, 6 }
} | 0 |
BinRealVul | visit_type_any_1395 | visit_type_any | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg3, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg4 to i64
%3 = call i64 @FUNC(i64 %2, i64 0)
ret i64 %3
} | 0 |
BinRealVul | cmd_smart_144 | cmd_smart | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.reg2mem63 = alloca i8
%indvars.iv42.reg2mem = alloca i64
%indvars.iv45.reg2mem = alloca i64
%.reg2mem61 = alloca i8
%indvars.iv39.reg2mem = alloca i64
%.reg2mem59 = alloca i8
%indvars.iv30.reg2mem = alloca i64
%indvars.iv36.reg2mem = alloca i64
%indvars.iv33.reg2mem = alloca i64
%.reg2mem = alloca i8
%indvars.iv.reg2mem = alloca i64
%indvars.iv27.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, -62
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_41, label LBL_1
LBL_1:
%6 = add i64 %2, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 79
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_41, label LBL_2
LBL_2:
%11 = add i64 %2, 3
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp ne i8 %13, 1
%.pre = add i64 %2, 2
%.pre49 = inttoptr i64 %.pre to i8*
%.pre57 = load i8, i8* %.pre49, align 1
%15 = icmp eq i8 %.pre57, 3
%16 = icmp eq i1 %15, false
%or.cond = icmp eq i1 %14, %16
br i1 %or.cond, label LBL_41, label LBL_3
LBL_3:
%17 = zext i8 %.pre57 to i64
%18 = add nuw nsw i64 %17, 4294967293
%19 = and i64 %18, 4294967295
store i64 %19, i64* @0, align 8
%trunc = trunc i64 %18 to i32
switch i32 %trunc, label LBL_41 [
i32 0, label LBL_5
i32 1, label LBL_4
i32 2, label LBL_6
i32 3, label LBL_9
i32 4, label LBL_12
i32 5, label LBL_17
i32 6, label LBL_27
i32 7, label LBL_39
]
LBL_4:
store i8 0, i8* %12, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_5:
store i8 1, i8* %12, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_6:
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
switch i8 %22, label LBL_41 [
i8 0, label LBL_7
i8 -15, label LBL_8
]
LBL_7:
%23 = add i64 %2, 4
%24 = inttoptr i64 %23 to i8*
store i8 0, i8* %24, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_8:
%25 = add i64 %2, 4
%26 = inttoptr i64 %25 to i8*
store i8 1, i8* %26, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_9:
%27 = add i64 %2, 6
%28 = inttoptr i64 %27 to i16*
%29 = load i16, i16* %28, align 2
%30 = icmp eq i16 %29, 0
%31 = icmp eq i1 %30, false
%32 = bitcast i64* %arg1 to i8*
br i1 %31, label LBL_11, label LBL_10
LBL_10:
store i8 -62, i8* %32, align 1
store i8 79, i8* %7, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_11:
store i8 44, i8* %32, align 1
store i8 -12, i8* %7, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_12:
%33 = add i64 %2, 9
%34 = inttoptr i64 %33 to i64*
%35 = call i64* @memset(i64* %34, i32 0, i32 512)
%36 = inttoptr i64 %33 to i8*
store i8 1, i8* %36, align 1
store i64 0, i64* %indvars.iv27.reg2mem
br label LBL_13
LBL_13:
%indvars.iv27.reload = load i64, i64* %indvars.iv27.reg2mem
%37 = mul nuw nsw i64 %indvars.iv27.reload, 12
%38 = or i64 %37, 2
%39 = add i64 %37, ptrtoint (i8** @gv_0 to i64)
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 4
%42 = add i64 %38, %33
%43 = inttoptr i64 %42 to i8*
store i8 %41, i8* %43, align 1
%44 = or i64 %37, 3
%45 = add i64 %37, ptrtoint (i8** @gv_1 to i64)
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 4
%48 = add i64 %44, %33
%49 = inttoptr i64 %48 to i8*
store i8 %47, i8* %49, align 1
%indvars.iv.next28 = add nuw nsw i64 %indvars.iv27.reload, 1
%exitcond29 = icmp eq i64 %indvars.iv.next28, 256
store i64 %indvars.iv.next28, i64* %indvars.iv27.reg2mem
br i1 %exitcond29, label LBL_14, label LBL_13
LBL_14:
%50 = add i64 %2, 520
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
store i64 0, i64* %indvars.iv.reg2mem
store i8 %52, i8* %.reg2mem
br label LBL_15
LBL_15:
%.reload = load i8, i8* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%53 = add i64 %indvars.iv.reload, %33
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = add i8 %55, %.reload
store i8 %56, i8* %51, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 511
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i8 %56, i8* %.reg2mem
br i1 %exitcond, label LBL_16, label LBL_15
LBL_16:
%57 = sub i8 0, %56
store i8 %57, i8* %51, align 1
%58 = add i64 %2, 521
%59 = inttoptr i64 %58 to i8*
store i8 3, i8* %59, align 1
%60 = call i64 @FUNC(i64 %2, i64 %33, i64 512, i64 4200557)
%61 = add i64 %2, 522
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = zext i8 %63 to i64
%65 = call i64 @FUNC(i64 %64)
store i64 0, i64* %rax.0.reg2mem
br label LBL_42
LBL_17:
%66 = add i64 %2, 9
%67 = inttoptr i64 %66 to i64*
%68 = call i64* @memset(i64* %67, i32 0, i32 512)
%69 = inttoptr i64 %66 to i8*
store i8 1, i8* %69, align 1
store i64 0, i64* %indvars.iv36.reg2mem
br label LBL_20
LBL_18:
%indvars.iv33.reload = load i64, i64* %indvars.iv33.reg2mem
%70 = add i64 %77, %indvars.iv33.reload
%71 = inttoptr i64 %70 to i8*
%72 = load i8, i8* %71, align 1
%73 = add i64 %78, %indvars.iv33.reload
%74 = inttoptr i64 %73 to i8*
store i8 %72, i8* %74, align 1
%indvars.iv.next34 = add nuw nsw i64 %indvars.iv33.reload, 1
%exitcond35 = icmp eq i64 %indvars.iv.next34, 11
store i64 %indvars.iv.next34, i64* %indvars.iv33.reg2mem
br i1 %exitcond35, label LBL_19, label LBL_18
LBL_19:
%indvars.iv.next37 = add nuw nsw i64 %indvars.iv36.reload, 1
%exitcond38 = icmp eq i64 %indvars.iv.next37, 256
store i64 %indvars.iv.next37, i64* %indvars.iv36.reg2mem
br i1 %exitcond38, label LBL_21, label LBL_20
LBL_20:
%indvars.iv36.reload = load i64, i64* %indvars.iv36.reg2mem
%75 = mul nuw nsw i64 %indvars.iv36.reload, 12
%76 = or i64 %75, 2
%77 = add i64 %75, ptrtoint (i8** @gv_0 to i64)
%78 = add i64 %76, %66
store i64 0, i64* %indvars.iv33.reg2mem
br label LBL_18
LBL_21:
%79 = add i64 %2, 4
%80 = inttoptr i64 %79 to i8*
%81 = load i8, i8* %80, align 1
%82 = icmp eq i8 %81, 0
%. = select i1 %82, i8 2, i8 -126
%83 = add i64 %2, 371
%84 = inttoptr i64 %83 to i8*
store i8 %., i8* %84, align 1
%85 = add i64 %2, 523
%86 = inttoptr i64 %85 to i8*
%87 = load i8, i8* %86, align 1
%88 = icmp eq i8 %87, 0
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_23, label LBL_22
LBL_22:
%90 = add i64 %2, 372
%91 = inttoptr i64 %90 to i8*
store i8 0, i8* %91, align 1
br label LBL_24
LBL_23:
%92 = zext i8 %87 to i64
%93 = mul nuw nsw i64 %92, 24
%94 = add nsw i64 %93, -24
%95 = or i64 %94, 3
%96 = add i64 %2, 524
%97 = add i64 %96, %95
%98 = inttoptr i64 %97 to i8*
%99 = load i8, i8* %98, align 1
%100 = add i64 %2, 372
%101 = inttoptr i64 %100 to i8*
store i8 %99, i8* %101, align 1
br label LBL_24
LBL_24:
%102 = add i64 %2, 373
%103 = inttoptr i64 %102 to i8*
store i8 32, i8* %103, align 1
%104 = add i64 %2, 374
%105 = inttoptr i64 %104 to i8*
store i8 1, i8* %105, align 1
%106 = add i64 %2, 376
%107 = inttoptr i64 %106 to i8*
store i8 25, i8* %107, align 1
%108 = add i64 %2, 377
%109 = inttoptr i64 %108 to i8*
store i8 3, i8* %109, align 1
%110 = add i64 %2, 378
%111 = inttoptr i64 %110 to i8*
store i8 0, i8* %111, align 1
%112 = add i64 %2, 379
%113 = inttoptr i64 %112 to i8*
store i8 1, i8* %113, align 1
%114 = add i64 %2, 381
%115 = inttoptr i64 %114 to i8*
store i8 2, i8* %115, align 1
%116 = add i64 %2, 382
%117 = inttoptr i64 %116 to i8*
store i8 54, i8* %117, align 1
%118 = add i64 %2, 383
%119 = inttoptr i64 %118 to i8*
store i8 1, i8* %119, align 1
%120 = add i64 %2, 520
%121 = inttoptr i64 %120 to i8*
%122 = load i8, i8* %121, align 1
store i64 0, i64* %indvars.iv30.reg2mem
store i8 %122, i8* %.reg2mem59
br label LBL_25
LBL_25:
%.reload60 = load i8, i8* %.reg2mem59
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%123 = add i64 %indvars.iv30.reload, %66
%124 = inttoptr i64 %123 to i8*
%125 = load i8, i8* %124, align 1
%126 = add i8 %125, %.reload60
store i8 %126, i8* %121, align 1
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond32 = icmp eq i64 %indvars.iv.next31, 511
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
store i8 %126, i8* %.reg2mem59
br i1 %exitcond32, label LBL_26, label LBL_25
LBL_26:
%127 = sub i8 0, %126
store i8 %127, i8* %121, align 1
%128 = add i64 %2, 521
%129 = inttoptr i64 %128 to i8*
store i8 3, i8* %129, align 1
%130 = call i64 @FUNC(i64 %2, i64 %66, i64 512, i64 4200557)
%131 = add i64 %2, 522
%132 = inttoptr i64 %131 to i8*
%133 = load i8, i8* %132, align 1
%134 = zext i8 %133 to i64
%135 = call i64 @FUNC(i64 %134)
store i64 0, i64* %rax.0.reg2mem
br label LBL_42
LBL_27:
%136 = add i64 %2, 8
%137 = inttoptr i64 %136 to i8*
%138 = load i8, i8* %137, align 1
switch i8 %138, label LBL_41 [
i8 1, label LBL_28
i8 6, label LBL_31
]
LBL_28:
%139 = add i64 %2, 9
%140 = inttoptr i64 %139 to i64*
%141 = call i64* @memset(i64* %140, i32 0, i32 512)
%142 = inttoptr i64 %139 to i8*
store i8 1, i8* %142, align 1
%143 = add i64 %2, 10
%144 = inttoptr i64 %143 to i8*
store i8 0, i8* %144, align 1
%145 = add i64 %2, 6
%146 = inttoptr i64 %145 to i16*
%147 = load i16, i16* %146, align 2
%148 = trunc i16 %147 to i8
%149 = add i64 %2, 461
%150 = inttoptr i64 %149 to i8*
store i8 %148, i8* %150, align 1
%151 = load i16, i16* %146, align 2
%152 = udiv i16 %151, 256
%153 = trunc i16 %152 to i8
%154 = add i64 %2, 462
%155 = inttoptr i64 %154 to i8*
store i8 %153, i8* %155, align 1
%156 = add i64 %2, 520
%157 = inttoptr i64 %156 to i8*
%158 = load i8, i8* %157, align 1
store i64 0, i64* %indvars.iv39.reg2mem
store i8 %158, i8* %.reg2mem61
br label LBL_29
LBL_29:
%.reload62 = load i8, i8* %.reg2mem61
%indvars.iv39.reload = load i64, i64* %indvars.iv39.reg2mem
%159 = add i64 %indvars.iv39.reload, %139
%160 = inttoptr i64 %159 to i8*
%161 = load i8, i8* %160, align 1
%162 = add i8 %161, %.reload62
store i8 %162, i8* %157, align 1
%indvars.iv.next40 = add nuw nsw i64 %indvars.iv39.reload, 1
%exitcond41 = icmp eq i64 %indvars.iv.next40, 511
store i64 %indvars.iv.next40, i64* %indvars.iv39.reg2mem
store i8 %162, i8* %.reg2mem61
br i1 %exitcond41, label LBL_30, label LBL_29
LBL_30:
%163 = sub i8 0, %162
store i8 %163, i8* %157, align 1
store i64 %139, i64* %.pre-phi.reg2mem
br label LBL_38
LBL_31:
%164 = add i64 %2, 9
%165 = inttoptr i64 %164 to i64*
%166 = call i64* @memset(i64* %165, i32 0, i32 512)
%167 = inttoptr i64 %164 to i8*
store i8 1, i8* %167, align 1
%168 = add i64 %2, 523
%169 = inttoptr i64 %168 to i8*
%170 = load i8, i8* %169, align 1
%171 = icmp eq i8 %170, 0
%172 = icmp eq i1 %171, false
%173 = add i64 %2, 517
%174 = inttoptr i64 %173 to i8*
br i1 %172, label LBL_33, label LBL_32
LBL_32:
store i8 0, i8* %174, align 1
br label LBL_35
LBL_33:
store i8 %170, i8* %174, align 1
%175 = add i64 %2, 524
store i64 2, i64* %indvars.iv45.reg2mem
br label LBL_34
LBL_34:
%indvars.iv45.reload = load i64, i64* %indvars.iv45.reg2mem
%176 = add i64 %175, %indvars.iv45.reload
%177 = inttoptr i64 %176 to i8*
%178 = load i8, i8* %177, align 1
%179 = add i64 %indvars.iv45.reload, %164
%180 = inttoptr i64 %179 to i8*
store i8 %178, i8* %180, align 1
%indvars.iv.next46 = add nuw nsw i64 %indvars.iv45.reload, 1
%exitcond47 = icmp eq i64 %indvars.iv.next46, 506
store i64 %indvars.iv.next46, i64* %indvars.iv45.reg2mem
br i1 %exitcond47, label LBL_35, label LBL_34
LBL_35:
%181 = add i64 %2, 520
%182 = inttoptr i64 %181 to i8*
%183 = load i8, i8* %182, align 1
store i64 0, i64* %indvars.iv42.reg2mem
store i8 %183, i8* %.reg2mem63
br label LBL_36
LBL_36:
%.reload64 = load i8, i8* %.reg2mem63
%indvars.iv42.reload = load i64, i64* %indvars.iv42.reg2mem
%184 = add i64 %indvars.iv42.reload, %164
%185 = inttoptr i64 %184 to i8*
%186 = load i8, i8* %185, align 1
%187 = add i8 %186, %.reload64
store i8 %187, i8* %182, align 1
%indvars.iv.next43 = add nuw nsw i64 %indvars.iv42.reload, 1
%exitcond44 = icmp eq i64 %indvars.iv.next43, 511
store i64 %indvars.iv.next43, i64* %indvars.iv42.reg2mem
store i8 %187, i8* %.reg2mem63
br i1 %exitcond44, label LBL_37, label LBL_36
LBL_37:
%188 = sub i8 0, %187
store i8 %188, i8* %182, align 1
store i64 %164, i64* %.pre-phi.reg2mem
br label LBL_38
LBL_38:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%189 = add i64 %2, 521
%190 = inttoptr i64 %189 to i8*
store i8 3, i8* %190, align 1
%191 = call i64 @FUNC(i64 %2, i64 %.pre-phi.reload, i64 512, i64 4200557)
%192 = add i64 %2, 522
%193 = inttoptr i64 %192 to i8*
%194 = load i8, i8* %193, align 1
%195 = zext i8 %194 to i64
%196 = call i64 @FUNC(i64 %195)
store i64 0, i64* %rax.0.reg2mem
br label LBL_42
LBL_39:
%197 = add i64 %2, 8
%198 = inttoptr i64 %197 to i8*
%199 = load i8, i8* %198, align 1
%200 = icmp ult i8 %199, 3
br i1 %200, label LBL_40, label LBL_41
LBL_40:
%201 = add i64 %2, 523
%202 = inttoptr i64 %201 to i8*
%203 = load i8, i8* %202, align 1
%204 = add i8 %203, 1
%205 = icmp ult i8 %204, 22
%spec.store.select = select i1 %205, i8 %204, i8 0
store i8 %spec.store.select, i8* %202, align 1
%206 = zext i8 %spec.store.select to i32
%207 = mul nuw nsw i32 %206, 24
%208 = add nsw i32 %207, -24
%209 = or i32 %208, 2
%210 = load i8, i8* %198, align 1
%211 = sext i32 %209 to i64
%212 = add i64 %2, 524
%213 = add i64 %212, %211
%214 = inttoptr i64 %213 to i8*
store i8 %210, i8* %214, align 1
%215 = or i32 %208, 3
%216 = sext i32 %215 to i64
%217 = add i64 %212, %216
%218 = inttoptr i64 %217 to i8*
store i8 0, i8* %218, align 1
%219 = add nsw i32 %209, 2
%220 = sext i32 %219 to i64
%221 = add i64 %212, %220
%222 = inttoptr i64 %221 to i8*
store i8 52, i8* %222, align 1
%223 = add nsw i32 %209, 3
%224 = sext i32 %223 to i64
%225 = add i64 %212, %224
%226 = inttoptr i64 %225 to i8*
store i8 18, i8* %226, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_41:
%227 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_42
LBL_42:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %208, { 1, 0 }
uselistorder i8 %187, { 1, 0, 2 }
uselistorder i8* %182, { 0, 2, 1 }
uselistorder i64 %indvars.iv45.reload, { 0, 2, 1 }
uselistorder i8* %174, { 1, 0 }
uselistorder i8 %162, { 1, 0, 2 }
uselistorder i8* %157, { 0, 2, 1 }
uselistorder i8 %126, { 1, 0, 2 }
uselistorder i8* %121, { 0, 2, 1 }
uselistorder i64 %indvars.iv36.reload, { 1, 0 }
uselistorder i64 %indvars.iv33.reload, { 0, 2, 1 }
uselistorder i64 %66, { 2, 0, 1, 3, 4 }
uselistorder i8 %56, { 1, 0, 2 }
uselistorder i8* %51, { 0, 2, 1 }
uselistorder i64 %37, { 1, 2, 0, 3 }
uselistorder i64 %33, { 3, 0, 1, 2, 4, 5 }
uselistorder i8* %12, { 1, 0, 2 }
uselistorder i8* %7, { 1, 0, 2 }
uselistorder i64 %2, { 48, 45, 47, 46, 35, 36, 37, 30, 31, 33, 32, 34, 38, 39, 41, 40, 42, 43, 44, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25, 26, 24, 23, 28, 27, 29, 5, 6, 7, 8, 9, 4, 1, 2, 3, 0, 49, 50 }
uselistorder i64* %indvars.iv27.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv33.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv30.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem59, { 1, 0, 2 }
uselistorder i64* %indvars.iv39.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem61, { 1, 0, 2 }
uselistorder i64* %indvars.iv45.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv42.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem63, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 11, 10, 9, 8, 7, 2, 1, 4, 3, 5, 6 }
uselistorder i8 2, { 1, 0 }
uselistorder i64 (i64)* @ide_set_irq, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @ide_transfer_start, { 2, 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 3, 2, 0, 1 }
uselistorder i32 512, { 3, 2, 1, 0 }
uselistorder i8 0, { 7, 0, 5, 8, 9, 4, 10, 3, 11, 12, 13, 14, 2, 15, 1, 16, 6 }
uselistorder i32 3, { 2, 0, 1 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i8 3, { 1, 2, 3, 4, 5, 0 }
uselistorder i64 2, { 0, 2, 3, 1 }
uselistorder i8 1, { 1, 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, 2 }
uselistorder i64 3, { 1, 0, 2 }
uselistorder i8 79, { 1, 0 }
uselistorder i64 1, { 7, 6, 9, 8, 10, 13, 11, 12, 15, 14, 1, 0, 3, 2, 4, 5, 16 }
uselistorder i1 false, { 1, 2, 3, 0, 4, 5 }
uselistorder i8 -62, { 1, 0 }
uselistorder label LBL_42, { 10, 4, 5, 6, 7, 1, 0, 3, 2, 8, 9 }
uselistorder label LBL_41, { 3, 1, 2, 6, 0, 5, 4 }
uselistorder label LBL_18, { 1, 0 }
} | 1 |
BinRealVul | moov_Size_9772 | moov_Size | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_21
LBL_3:
%6 = add i64 %0, 48
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %8, %0
store i64 %9, i64* %7, align 8
br label LBL_4
LBL_4:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_8, label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64 %12)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_7, label LBL_6
LBL_6:
%17 = and i64 %14, 4294967295
store i64 %17, i64* %rax.0.reg2mem
br label LBL_21
LBL_7:
%18 = add i64 %0, 48
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = load i64, i64* %11, align 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, %20
store i64 %24, i64* %19, align 8
br label LBL_8
LBL_8:
%25 = add i64 %0, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
br i1 %28, label LBL_12, label LBL_9
LBL_9:
%29 = call i64 @FUNC(i64 %27)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_11, label LBL_10
LBL_10:
%32 = and i64 %29, 4294967295
store i64 %32, i64* %rax.0.reg2mem
br label LBL_21
LBL_11:
%33 = add i64 %0, 48
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = load i64, i64* %26, align 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %38, %35
store i64 %39, i64* %34, align 8
br label LBL_12
LBL_12:
%40 = add i64 %0, 24
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %42, 0
br i1 %43, label LBL_16, label LBL_13
LBL_13:
%44 = call i64 @FUNC(i64 %42)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_15, label LBL_14
LBL_14:
%47 = and i64 %44, 4294967295
store i64 %47, i64* %rax.0.reg2mem
br label LBL_21
LBL_15:
%48 = add i64 %0, 48
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = load i64, i64* %41, align 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %53, %50
store i64 %54, i64* %49, align 8
br label LBL_16
LBL_16:
%55 = add i64 %0, 32
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = icmp eq i64 %57, 0
br i1 %58, label LBL_20, label LBL_17
LBL_17:
%59 = call i64 @FUNC(i64 %57)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
br i1 %61, label LBL_19, label LBL_18
LBL_18:
%62 = and i64 %59, 4294967295
store i64 %62, i64* %rax.0.reg2mem
br label LBL_21
LBL_19:
%63 = add i64 %0, 48
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = load i64, i64* %56, align 8
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = add i64 %68, %65
store i64 %69, i64* %64, align 8
br label LBL_20
LBL_20:
%70 = add i64 %0, 40
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = call i64 @FUNC(i64 %0, i64 %72)
store i64 %73, 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 %0, { 7, 8, 6, 9, 5, 10, 4, 11, 3, 12, 0, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 (i64)* @gf_isom_box_size, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | file_printable_19080 | file_printable | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.01.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %arg2, -1
%2 = add i64 %1, %0
%3 = add i64 %2, 4
%4 = icmp ugt i64 %2, %0
%5 = icmp eq i1 %4, false
store i64 %0, i64* %sv_0.12.reg2mem
store i64 %arg3, i64* %sv_1.01.reg2mem
store i64 %0, i64* %sv_0.1.lcssa.reg2mem
br i1 %5, label LBL_7, label LBL_6
LBL_1:
%6 = call i16** @__ctype_b_loc()
%7 = load i16*, i16** %6, align 8
%8 = ptrtoint i16* %7 to i64
%9 = load i8, i8* %42, align 1
%10 = zext i8 %9 to i64
%11 = mul i64 %10, 2
%12 = add i64 %11, %8
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = and i16 %14, 16384
%16 = icmp eq i16 %15, 0
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = add i64 %sv_0.12.reload, 1
%18 = inttoptr i64 %sv_0.12.reload to i8*
store i8 %9, i8* %18, align 1
store i64 %17, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_3:
%19 = icmp ult i64 %sv_0.12.reload, %3
%20 = icmp eq i1 %19, false
store i64 %sv_0.12.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %20, label LBL_7, label LBL_4
LBL_4:
%21 = add i64 %sv_0.12.reload, 1
%22 = inttoptr i64 %sv_0.12.reload to i8*
store i8 92, i8* %22, align 1
%23 = load i8, i8* %42, align 1
%24 = udiv i8 %23, 64
%25 = or i8 %24, 48
%26 = add i64 %sv_0.12.reload, 2
%27 = inttoptr i64 %21 to i8*
store i8 %25, i8* %27, align 1
%28 = load i8, i8* %42, align 1
%29 = udiv i8 %28, 8
%30 = urem i8 %29, 8
%31 = or i8 %30, 48
%32 = add i64 %sv_0.12.reload, 3
%33 = inttoptr i64 %26 to i8*
store i8 %31, i8* %33, align 1
%34 = load i8, i8* %42, align 1
%35 = urem i8 %34, 8
%36 = or i8 %35, 48
%37 = add i64 %sv_0.12.reload, 4
%38 = inttoptr i64 %32 to i8*
store i8 %36, i8* %38, align 1
store i64 %37, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%39 = add i64 %sv_1.01.reload, 1
%40 = icmp ult i64 %sv_0.0.reload, %2
%41 = icmp eq i1 %40, false
store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem
store i64 %39, i64* %sv_1.01.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %41, label LBL_7, label LBL_6
LBL_6:
%sv_1.01.reload = load i64, i64* %sv_1.01.reg2mem
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%42 = inttoptr i64 %sv_1.01.reload 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.12.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %45, label LBL_1, label LBL_7
LBL_7:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%46 = inttoptr i64 %sv_0.1.lcssa.reload to i8*
store i8 0, i8* %46, align 1
ret i64 %0
uselistorder i8* %42, { 4, 3, 2, 1, 0 }
uselistorder i64 %sv_0.12.reload, { 1, 3, 2, 4, 0, 8, 9, 7, 6, 5 }
uselistorder i64 %sv_1.01.reload, { 1, 0 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %0, { 4, 0, 1, 3, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.12.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.01.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.lcssa.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i8 8, { 1, 2, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i1 false, { 2, 3, 1, 0 }
uselistorder label LBL_7, { 1, 0, 2, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | qemu_sendv_14456 | qemu_sendv | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = trunc i64 %arg3 to i32
%2 = trunc i64 %arg4 to i32
%3 = and i64 %arg1, 4294967295
%4 = call i64 @FUNC(i64 %3, i64 %0, i32 %1, i32 %2, i64 1)
ret i64 %4
} | 1 |
BinRealVul | smack_task_kill_17879 | smack_task_kill | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge2.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sext = mul i64 %arg4, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %2)
%4 = bitcast i32* %sv_0 to i64*
%5 = call i64 @FUNC(i64* nonnull %4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 0)
%6 = call i64 @FUNC(i64* nonnull %4, i64 %0)
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %3, i64 1, i64* nonnull %4)
%11 = trunc i64 %10 to i32
store i32 %11, i32* %sv_0, align 4
%12 = and i64 %10, 4294967295
%13 = call i64 @FUNC(i64 %0, i64 1, i64 %12)
store i64 %13, i64* %storemerge2.in.reg2mem
br label LBL_3
LBL_2:
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %15, i64 %3, i64 1, i64* nonnull %4)
%17 = trunc i64 %16 to i32
store i32 %17, i32* %sv_0, align 4
%18 = and i64 %16, 4294967295
%19 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 %15, i64 %3, i64 1, i64 %18)
store i64 %19, i64* %storemerge2.in.reg2mem
br label LBL_3
LBL_3:
%storemerge2.in.reload = load i64, i64* %storemerge2.in.reg2mem
%storemerge = and i64 %storemerge2.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64* %4, { 1, 0, 2, 3 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0, { 1, 0, 2 }
} | 1 |
BinRealVul | qf_fill_buffer_5836 | qf_fill_buffer | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i64
%sv_3.18.reg2mem = alloca i32
%sv_4.09.reg2mem = alloca i32
%sv_5.110.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_6 = alloca i8, align 1
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i64 %arg3, 0
%2 = icmp eq i1 %1, false
store i64 %arg1, i64* %rdi.1.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = load i32*, i32** @gv_1, align 8
%4 = ptrtoint i32* %3 to i64
%5 = icmp eq i64 %4, %arg2
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%6 = load i32, i32* %3, align 4
%7 = urem i32 %6, 2
%8 = icmp eq i32 %7, 0
store i64 %arg1, i64* %rdi.1.reg2mem
br i1 %8, label LBL_4, label LBL_5
LBL_3:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
unreachable
LBL_4:
%10 = call i64 @FUNC(i64 1)
%11 = load i32*, i32** @gv_1, align 8
%12 = load i32, i32* %11, align 4
%13 = urem i32 %12, 2
%14 = icmp eq i32 %13, 0
store i64 1, i64* %rdi.1.reg2mem
br i1 %14, label LBL_4, label LBL_5
LBL_5:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%15 = icmp eq i64 %arg1, 0
%16 = icmp eq i64 %rdi.1.reload, 0
%or.cond = or i1 %15, %16
br i1 %or.cond, label LBL_21, label LBL_6
LBL_6:
store i8 0, i8* %sv_6, align 1
store i64 %rdi.1.reload, i64* %sv_5.0.reg2mem
store i32 0, i32* %storemerge.reg2mem
br i1 %2, label LBL_7, label LBL_8
LBL_7:
%17 = add i64 %arg2, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
store i64 %arg3, i64* %sv_5.0.reg2mem
store i32 %19, i32* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_5.0.reload = load i64, i64* %sv_5.0.reg2mem
%20 = add i64 %arg1, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = sext i32 %22 to i64
%24 = sext i32 %storemerge.reload to i64
%25 = add nsw i64 %24, 1
%26 = call i64 @FUNC(i64 %arg1, i32 %arg4, i64 %25, i64 %23)
%27 = icmp eq i64 %26, 0
store i64 0, i64* %sv_1.0.ph.reg2mem
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = inttoptr i64 %26 to i64*
%29 = load i64, i64* %28, align 8
store i64 %29, i64* %sv_1.0.ph.reg2mem
br label LBL_10
LBL_10:
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%30 = load i32, i32* %21, align 4
%31 = icmp slt i32 %storemerge.reload, %30
store i32 %storemerge.reload, i32* %sv_0.011.reg2mem
store i64 %sv_5.0.reload, i64* %sv_5.110.reg2mem
store i32 -1, i32* %sv_4.09.reg2mem
store i32 0, i32* %sv_3.18.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.07.reg2mem
store i32 %storemerge.reload, i32* %sv_0.1.reg2mem
br i1 %31, label LBL_11, label LBL_18
LBL_11:
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%sv_3.18.reload = load i32, i32* %sv_3.18.reg2mem
%sv_4.09.reload = load i32, i32* %sv_4.09.reg2mem
%sv_5.110.reload = load i64, i64* %sv_5.110.reg2mem
%sv_0.011.reload = load i32, i32* %sv_0.011.reg2mem
%32 = icmp eq i64 %sv_1.07.reload, 0
%33 = icmp eq i32 %sv_3.18.reload, 0
%34 = icmp eq i1 %33, false
%or.cond5 = or i1 %32, %34
store i32 %sv_3.18.reload, i32* %sv_3.0.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
br i1 %or.cond5, label LBL_13, label LBL_12
LBL_12:
%35 = add i64 %sv_1.07.reload, 8
%36 = call i64 @FUNC(i64 %35)
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
%spec.select = select i1 %38, i32 %sv_3.18.reload, i32 1
store i32 %spec.select, i32* %sv_3.0.reg2mem
store i64 %36, i64* %sv_2.0.reg2mem
br label LBL_13
LBL_13:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%39 = add i64 %sv_5.110.reload, 8
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %sv_4.09.reload, %41
%43 = icmp eq i1 %42, false
%44 = zext i1 %43 to i64
%45 = zext i32 %sv_0.011.reload to i64
%46 = call i64 @FUNC(i64 %arg2, i64 %45, i64 %sv_5.110.reload, i8* nonnull %sv_6, i64 %44, i64 %sv_2.0.reload)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, -1
store i32 %sv_0.011.reload, i32* %sv_0.1.reg2mem
br i1 %48, label LBL_18, label LBL_14
LBL_14:
%49 = load i32, i32* %40, align 4
%50 = add nsw i32 %sv_0.011.reload, 1
%51 = inttoptr i64 %sv_5.110.reload to i64*
%52 = load i64, i64* %51, align 8
%53 = icmp eq i64 %52, 0
store i32 %50, i32* %sv_0.1.reg2mem
br i1 %53, label LBL_18, label LBL_15
LBL_15:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
store i64 0, i64* %sv_1.0.be.reg2mem
br i1 %32, label LBL_16, label LBL_17
LBL_16:
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%54 = load i32, i32* %21, align 4
%55 = icmp slt i32 %50, %54
store i32 %50, i32* %sv_0.011.reg2mem
store i64 %52, i64* %sv_5.110.reg2mem
store i32 %49, i32* %sv_4.09.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.18.reg2mem
store i64 %sv_1.0.be.reload, i64* %sv_1.07.reg2mem
store i32 %50, i32* %sv_0.1.reg2mem
br i1 %55, label LBL_11, label LBL_18
LBL_17:
%56 = inttoptr i64 %sv_1.07.reload to i64*
%57 = load i64, i64* %56, align 8
store i64 %57, i64* %sv_1.0.be.reg2mem
br label LBL_16
LBL_18:
br i1 %2, label LBL_19, label LBL_196
LBL_19:
%58 = call i64 @FUNC(i64 1)
br label LBL_23
LBL_20:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%59 = sext i32 %sv_0.1.reload to i64
%60 = add nsw i64 %59, 1
%61 = call i64 @FUNC(i64 %60)
%62 = call i64 @FUNC(i64 1)
br label LBL_22
LBL_21:
%63 = call i64 @FUNC(i64 1)
br i1 %2, label LBL_23, label LBL_22
LBL_22:
store i32 ptrtoint (i32* @gv_3 to i32), i32* @gv_4, align 4
%64 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_6, i64 0, i64 0), i64 1)
%65 = load i32*, i32** @gv_1, align 8
%66 = ptrtoint i32* %65 to i64
%67 = add i64 %66, 8
%68 = inttoptr i64 %67 to i32*
store i32 0, i32* %68, align 4
store i32 1, i32* inttoptr (i64 4210788 to i32*), align 4
%69 = load i32*, i32** @gv_1, align 8
%70 = ptrtoint i32* %69 to i64
%71 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 0, i64 %70)
%72 = load i32*, i32** @gv_1, align 8
%73 = ptrtoint i32* %72 to i64
%74 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 0, i64 %73)
store i32 0, i32* bitcast (i64* @gv_8 to i32*), align 8
%75 = load i32, i32* @gv_4, align 4
%76 = add i32 %75, -1
store i32 %76, i32* @gv_4, align 4
%77 = call i64 @FUNC(i64 3)
br label LBL_23
LBL_23:
%78 = zext i32 %0 to i64
store i32 %0, i32* @gv_0, align 4
ret i64 %78
uselistorder i32 %50, { 1, 2, 3, 0 }
uselistorder i32 %sv_0.011.reload, { 1, 0, 2 }
uselistorder i64 %sv_5.110.reload, { 0, 2, 1 }
uselistorder i32 %sv_3.18.reload, { 1, 0, 2 }
uselistorder i64 %sv_1.07.reload, { 0, 2, 1 }
uselistorder i32* %21, { 1, 0, 2 }
uselistorder i32 %storemerge.reload, { 0, 1, 3, 2 }
uselistorder i1 %2, { 2, 0, 1, 3 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64* %sv_5.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_5.110.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.09.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64, i8*, i64, i64, i64)* @apply_autocmds, { 1, 0 }
uselistorder i32* @gv_4, { 2, 1, 0 }
uselistorder i64 (i64)* @check_lnums, { 2, 0, 1 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64)* @ml_delete, { 1, 0 }
uselistorder i64 1, { 3, 4, 5, 1, 7, 2, 8, 0, 6 }
uselistorder i32** @gv_1, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 1, { 22, 19, 18, 21, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 20 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder i64 %arg1, { 3, 2, 4, 0, 1 }
uselistorder label LBL_23, { 1, 2, 0 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_18, { 0, 2, 1, 3 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | exfat_set_label_4648 | exfat_set_label | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i32, align 4
%sv_5 = alloca i32, align 4
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull %sv_7, i32 0, i32 512)
%1 = inttoptr i64 %arg2 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = sext i32 %2 to i64
%4 = call i64 @FUNC(i64* nonnull %sv_7, i64 %arg2, i64 255, 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 = and i64 %4, 4294967295
store i64 %7, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%8 = ptrtoint i64* %arg1 to i64
%9 = bitcast i32* %sv_5 to i64*
%10 = call i64 @FUNC(i64 %8, i64* nonnull %9, i64* nonnull %sv_6)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, -2
%13 = icmp eq i1 %12, false
store i32 %11, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = add i64 %8, 264
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i64 @FUNC(i64 %8, i32 %16, i64* nonnull %9, i64* nonnull %sv_6, i64 1)
%18 = trunc i64 %17 to i32
store i32 %18, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%19 = icmp eq i32 %sv_0.0.reload, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = zext i32 %sv_0.0.reload to i64
store i64 %20, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
store i32 1, i32* %sv_4, align 4
%21 = call i64 @FUNC(i64* nonnull %sv_7)
%22 = ptrtoint i64* %sv_1 to i64
%23 = udiv i64 %22, 8
%24 = urem i64 %23, 536870912
%25 = bitcast i64* %sv_2 to i8*
%26 = bitcast i64* %sv_3 to i8*
call void @FUNC(i8* nonnull %26, i8* nonnull %25, i64 %24)
%27 = trunc i64 %21 to i8
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
store i32 3, i32* %sv_4, align 4
br label LBL_8
LBL_8:
%30 = load i64, i64* %sv_6, align 8
%31 = load i32, i32* %sv_5, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %8, i64 %32, i64 %30)
%34 = add i64 %8, 256
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = bitcast i32* %sv_4 to i8*
%38 = call i64 @FUNC(i64 %36, i8* nonnull %37, i64 514, i64 %33)
%39 = bitcast i64* %arg1 to i8*
%40 = call i8* @strcpy(i8* %39, i8* %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %8, { 3, 2, 1, 0, 4 }
uselistorder i64* %sv_6, { 2, 0, 1 }
uselistorder i32* %sv_4, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
} | 0 |
BinRealVul | feh_wm_get_num_desks_9929 | feh_wm_get_num_desks | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i8*
%storemerge4.in.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 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_6
LBL_1:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_6
LBL_2:
%13 = call i64 @FUNC(i64 %10, i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %10, i64* %storemerge4.in.reg2mem
br label LBL_4
LBL_3:
%14 = add i64 %storemerge4.in.reload, 1
%15 = icmp eq i64 %14, 0
store i64 %14, i64* %storemerge4.in.reg2mem
store i8* null, i8** %storemerge.lcssa.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem
%storemerge4 = inttoptr i64 %storemerge4.in.reload to i8*
%16 = call i16** @__ctype_b_loc()
%17 = load i16*, i16** %16, align 8
%18 = ptrtoint i16* %17 to i64
%19 = load i8, i8* %storemerge4, align 1
%20 = sext i8 %19 to i64
%21 = mul i64 %20, 2
%22 = add i64 %21, %18
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = and i16 %24, 2048
%26 = icmp eq i16 %25, 0
store i8* %storemerge4, i8** %storemerge.lcssa.reg2mem
br i1 %26, label LBL_3, label LBL_5
LBL_5:
%storemerge.lcssa.reload = load i8*, i8** %storemerge.lcssa.reg2mem
%27 = call i32 @atoi(i8* %storemerge.lcssa.reload)
%28 = zext i32 %27 to i64
store i64 %28, 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* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 5, 4, 3, 2, 6, 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | pdf14_open_4399 | pdf14_open | 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 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = zext i32 %5 to i64
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 118, i64 %8, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %9)
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
ret i64 0
} | 0 |
BinRealVul | connectToMiniSSDPD_4374 | connectToMiniSSDPD | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = call i32 @socket(i32 1, i32 1, i32 0)
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
store i64 3, i64* %sv_2, align 8
%3 = call i32 @setsockopt(i32 %0, i32 1, i32 20, i64* nonnull %sv_2, i32 16)
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0))
br label LBL_4
LBL_4:
store i64 3, i64* %sv_2, align 8
%6 = call i32 @setsockopt(i32 %0, i32 1, i32 21, i64* nonnull %sv_2, i32 16)
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_5
LBL_5:
call void @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%9 = inttoptr i64 %arg1 to i8*
%10 = icmp eq i64 %arg1, 0
%11 = icmp eq i1 %10, false
%spec.select = select i1 %11, i8* %9, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0)
%12 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 110)
store i64 1, i64* %sv_1, align 8
%13 = bitcast i64* %sv_0 to i8*
%14 = call i8* @strncpy(i8* nonnull %13, i8* %spec.select, i32 108)
%15 = bitcast i64* %sv_1 to %sockaddr*
%16 = call i32 @connect(i32 %0, %sockaddr* nonnull %15, i32 110)
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = call i32 @close(i32 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%20 = zext i32 %0 to i64
store i64 %20, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_2, { 0, 2, 1, 3 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (i32, i32, i32, i64*, i32)* @setsockopt, { 1, 0 }
uselistorder void (i8*)* @perror, { 2, 1, 0 }
} | 0 |
BinRealVul | register_proc_table_4272 | register_proc_table | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.in.reg2mem = alloca i32
%rsi.4.reg2mem = alloca i64
%.reg2mem31 = alloca i32
%.reg2mem29 = alloca i32
%.reg2mem27 = alloca i32
%rsi.3.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i32
%rsi.1.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_2.07.reg2mem = alloca i64
%rsi.510.reg2mem = alloca i64
%.reg2mem = alloca i32*
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i64 %arg2, 0
%or.cond = or i1 %0, %1
br i1 %or.cond, label LBL_30, label LBL_1
LBL_1:
%2 = inttoptr i64 %arg1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i32* %2, i32** %.reg2mem
store i64 %arg2, i64* %rsi.510.reg2mem
store i64 %arg1, i64* %sv_2.07.reg2mem
store i32 %3, i32* %.lcssa.in.reg2mem
br i1 %5, label LBL_2, label LBL_29
LBL_2:
%sv_2.07.reload = load i64, i64* %sv_2.07.reg2mem
%rsi.510.reload = load i64, i64* %rsi.510.reg2mem
%6 = add i64 %sv_2.07.reload, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i64 %rsi.510.reload, i64* %rsi.4.reg2mem
br i1 %9, label LBL_28, label LBL_3
LBL_3:
%.reload = load i32*, i32** %.reg2mem
%10 = add i64 %sv_2.07.reload, 32
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
%.pre20 = add i64 %sv_2.07.reload, 24
%.pre21 = inttoptr i64 %.pre20 to i64*
br i1 %14, label LBL_6, label LBL_4
LBL_4:
%15 = load i64, i64* %.pre21, align 8
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %8)
store i64 %8, i64* %rsi.4.reg2mem
br label LBL_28
LBL_6:
%19 = inttoptr i64 %8 to i8*
%20 = call i32 @strlen(i8* %19)
%21 = add i64 %sv_2.07.reload, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = load i64, i64* %.pre21, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = or i32 %23, 32768
store i32 %27, i32* %sv_1.02.reg2mem
br label LBL_13
LBL_8:
%28 = icmp eq i64 %rsi.510.reload, 0
%29 = icmp eq i1 %28, false
store i64 %rsi.510.reload, i64* %storemerge.lcssa.reg2mem
store i64 %rsi.510.reload, i64* %rsi.1.reg2mem
br i1 %29, label LBL_9, label LBL_12
LBL_9:
%30 = zext i32 %20 to i64
store i64 %rsi.510.reload, i64* %storemerge3.reg2mem
br label LBL_10
LBL_10:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%31 = load i64, i64* %7, align 8
%32 = call i64 @FUNC(i64 %30, i64 %31, i64 %storemerge3.reload)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %storemerge3.reload, i64* %storemerge.lcssa.reg2mem
store i64 %31, i64* %rsi.1.reg2mem
br i1 %35, label LBL_12, label LBL_11
LBL_11:
%36 = add i64 %storemerge3.reload, 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
store i64 %38, i64* %storemerge3.reg2mem
store i64 %38, i64* %storemerge.lcssa.reg2mem
store i64 %31, i64* %rsi.1.reg2mem
br i1 %40, label LBL_10, label LBL_12
LBL_12:
%41 = or i32 %23, 16384
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
%42 = icmp eq i64 %storemerge.lcssa.reload, 0
%43 = icmp eq i1 %42, false
store i32 %41, i32* %sv_1.02.reg2mem
store i64 %storemerge.lcssa.reload, i64* %sv_0.1.reg2mem
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %43, label LBL_18, label LBL_13
LBL_13:
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%44 = load i64, i64* %7, align 8
%45 = zext i32 %sv_1.02.reload to i64
%46 = call i64 @FUNC(i64 %44, i64 %45, i64 %arg2)
%47 = icmp eq i64 %46, 0
store i64 %45, i64* %rsi.4.reg2mem
br i1 %47, label LBL_28, label LBL_14
LBL_14:
%48 = add i64 %46, 16
%49 = inttoptr i64 %48 to i64*
store i64 %sv_2.07.reload, i64* %49, align 8
%50 = load i64, i64* %.pre21, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
store i64 %46, i64* %sv_0.1.reg2mem
store i64 %45, i64* %rsi.2.reg2mem
br i1 %52, label LBL_18, label LBL_15
LBL_15:
%53 = add i64 %46, 32
%54 = inttoptr i64 %53 to i64*
store i64 ptrtoint (i64* @gv_1 to i64), i64* %54, align 8
%55 = load i64, i64* %11, align 8
%56 = icmp eq i64 %55, 0
%57 = add i64 %46, 40
%58 = inttoptr i64 %57 to i64*
br i1 %56, label LBL_17, label LBL_16
LBL_16:
store i64 %55, i64* %58, align 8
store i64 %46, i64* %sv_0.1.reg2mem
store i64 %45, i64* %rsi.2.reg2mem
br label LBL_18
LBL_17:
store i64 ptrtoint (i64* @gv_2 to i64), i64* %58, align 8
store i64 %46, i64* %sv_0.1.reg2mem
store i64 %45, i64* %rsi.2.reg2mem
br label LBL_18
LBL_18:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%59 = add i64 %sv_2.07.reload, 40
%60 = inttoptr i64 %59 to i64*
store i64 %sv_0.1.reload, i64* %60, align 8
%61 = add i64 %sv_0.1.reload, 24
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = and i32 %63, 16384
%65 = icmp eq i32 %64, 0
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
br i1 %65, label LBL_20, label LBL_19
LBL_19:
%66 = load i64, i64* %.pre21, align 8
%67 = call i64 @FUNC(i64 %66, i64 %sv_0.1.reload)
store i64 %sv_0.1.reload, i64* %rsi.3.reg2mem
br label LBL_20
LBL_20:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%68 = load i32, i32* %.reload, align 4
%69 = icmp eq i32 %68, 1
%70 = icmp eq i1 %69, false
store i32 %68, i32* %.reg2mem27
br i1 %70, label LBL_22, label LBL_21
LBL_21:
store i64 %sv_0.1.reload, i64* @gv_3, align 8
%.pre = load i32, i32* %.reload, align 4
store i32 %.pre, i32* %.reg2mem27
br label LBL_22
LBL_22:
%.reload28 = load i32, i32* %.reg2mem27
%71 = icmp eq i32 %.reload28, 2
%72 = icmp eq i1 %71, false
store i32 %.reload28, i32* %.reg2mem29
br i1 %72, label LBL_24, label LBL_23
LBL_23:
store i64 %sv_0.1.reload, i64* @gv_4, align 8
%.pre18 = load i32, i32* %.reload, align 4
store i32 %.pre18, i32* %.reg2mem29
br label LBL_24
LBL_24:
%.reload30 = load i32, i32* %.reg2mem29
%73 = icmp eq i32 %.reload30, 3
%74 = icmp eq i1 %73, false
store i32 %.reload30, i32* %.reg2mem31
br i1 %74, label LBL_26, label LBL_25
LBL_25:
store i64 %sv_0.1.reload, i64* @gv_5, align 8
%.pre19 = load i32, i32* %.reload, align 4
store i32 %.pre19, i32* %.reg2mem31
br label LBL_26
LBL_26:
%.reload32 = load i32, i32* %.reg2mem31
%75 = icmp eq i32 %.reload32, 4
%76 = icmp eq i1 %75, false
store i64 %rsi.3.reload, i64* %rsi.4.reg2mem
br i1 %76, label LBL_28, label LBL_27
LBL_27:
store i64 %sv_0.1.reload, i64* @gv_6, align 8
store i64 %rsi.3.reload, i64* %rsi.4.reg2mem
br label LBL_28
LBL_28:
%rsi.4.reload = load i64, i64* %rsi.4.reg2mem
%77 = add i64 %sv_2.07.reload, 48
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = icmp eq i32 %79, 0
%81 = icmp eq i1 %80, false
store i32* %78, i32** %.reg2mem
store i64 %rsi.4.reload, i64* %rsi.510.reg2mem
store i64 %77, i64* %sv_2.07.reg2mem
store i32 %79, i32* %.lcssa.in.reg2mem
br i1 %81, label LBL_2, label LBL_29
LBL_29:
%.lcssa.in.reload = load i32, i32* %.lcssa.in.reg2mem
%.lcssa = zext i32 %.lcssa.in.reload to i64
store i64 %.lcssa, i64* %rax.0.reg2mem
br label LBL_30
LBL_30:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.1.reload, { 4, 5, 6, 7, 0, 2, 3, 1 }
uselistorder i64* %58, { 1, 0 }
uselistorder i64 %46, { 1, 0, 3, 4, 2, 5, 6 }
uselistorder i64 %45, { 2, 1, 3, 0, 4 }
uselistorder i64 %31, { 1, 0, 2 }
uselistorder i64 %storemerge3.reload, { 1, 0, 2 }
uselistorder i64* %.pre21, { 1, 0, 2, 3 }
uselistorder i32* %.reload, { 3, 2, 1, 0 }
uselistorder i64 %8, { 1, 0, 2, 3 }
uselistorder i64 %rsi.510.reload, { 3, 1, 2, 4, 0 }
uselistorder i64 %sv_2.07.reload, { 5, 4, 0, 1, 6, 3, 2 }
uselistorder i32** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.510.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rsi.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rsi.2.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %.reg2mem27, { 0, 2, 1 }
uselistorder i32* %.reg2mem29, { 0, 2, 1 }
uselistorder i32* %.reg2mem31, { 0, 2, 1 }
uselistorder i64* %rsi.4.reg2mem, { 0, 3, 4, 2, 1, 5 }
uselistorder i64 24, { 1, 0, 2 }
uselistorder i1 false, { 13, 2, 3, 4, 5, 6, 7, 9, 8, 1, 10, 11, 12, 0 }
uselistorder i32 0, { 3, 1, 2, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_28, { 2, 3, 0, 4, 1 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | d_alloc_11524 | d_alloc | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %arg1, 40
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3, i64 %0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = add i64 %arg1, 48
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %arg1)
%10 = inttoptr i64 %4 to i64*
store i64 %arg1, i64* %10, align 8
%11 = add i64 %arg1, 24
%12 = add i64 %4, 8
%13 = call i64 @FUNC(i64 %12, i64 %11)
%14 = call i64 @FUNC(i64 %7)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg1, { 0, 3, 2, 1, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | call_console_drivers_5479 | call_console_drivers | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.1.be.reg2mem = alloca i64
%sv_1.1.be.reg2mem = alloca i64
%.pre-phi.pre-phi.reg2mem = alloca i32
%.reg2mem28 = alloca i32
%sv_0.0.ph.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1.118.reg2mem = alloca i64
%sv_0.119.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = sub i64 %arg1, %arg2
%1 = trunc i64 %0 to i32
%2 = icmp slt i32 %1, 1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %3)
%5 = sext i32 %4 to i64
store i64 %5, i64* %storemerge.reg2mem
br label LBL_16
LBL_2:
%sext5 = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext5, 32
%sext = mul i64 %arg1, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = trunc i64 %7 to i32
%9 = trunc i64 %6 to i32
%10 = icmp eq i32 %9, %8
%11 = icmp eq i1 %10, false
store i64 %7, i64* %sv_0.1.lcssa.reg2mem
br i1 %11, label LBL_3, label LBL_15
LBL_3:
%12 = ptrtoint i64* %sv_3 to i64
%13 = add i64 %12, -144
store i32 %8, i32* %.reg2mem
store i64 %7, i64* %sv_0.119.reg2mem
store i64 %7, i64* %sv_1.118.reg2mem
br label LBL_4
LBL_4:
%sv_1.118.reload = load i64, i64* %sv_1.118.reg2mem
%sv_0.119.reload = load i64, i64* %sv_0.119.reg2mem
%.reload = load i32, i32* %.reg2mem
%14 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
%17 = sub i32 %9, %.reload
%18 = icmp ult i32 %17, 3
%or.cond14 = or i1 %18, %16
store i64 %sv_1.118.reload, i64* %sv_1.0.ph.reg2mem
store i64 %sv_0.119.reload, i64* %sv_0.0.ph.reg2mem
br i1 %or.cond14, label LBL_8, label LBL_5
LBL_5:
%19 = zext i32 %17 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%20 = trunc i64 %indvars.iv.reload to i32
%21 = add i32 %.reload, %20
%22 = zext i32 %21 to i64
%23 = add i64 %22, ptrtoint (i8** @gv_2 to i64)
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = add i64 %indvars.iv.reload, %13
%27 = inttoptr i64 %26 to i8*
store i8 %25, i8* %27, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%28 = icmp ult i64 %indvars.iv.next, %19
%29 = icmp ult i64 %indvars.iv.next, 128
%or.cond = icmp eq i1 %28, %29
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %or.cond, label LBL_6, label LBL_7
LBL_7:
%30 = and i64 %indvars.iv.next, 4294967295
%31 = add i64 %30, %13
%32 = inttoptr i64 %31 to i8*
store i8 0, i8* %32, align 1
%33 = call i64 @FUNC(i64* nonnull %sv_2, i64* nonnull @gv_3, i64 0)
%34 = add i64 %33, %sv_1.118.reload
%sext12 = mul i64 %34, 4294967296
%35 = ashr exact i64 %sext12, 32
store i64 %35, i64* %sv_1.0.ph.reg2mem
store i64 %35, i64* %sv_0.0.ph.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.0.reg2mem
br label LBL_14
LBL_9:
%36 = and i64 %sv_1.0.reload, 4294967295
%37 = add i64 %36, ptrtoint (i8** @gv_2 to i64)
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = mul i64 %sv_1.0.reload, 4294967296
%sext8 = add i64 %40, 4294967296
%41 = ashr exact i64 %sext8, 32
%42 = icmp eq i8 %39, 10
%43 = icmp eq i1 %42, false
store i64 %41, i64* %sv_1.0.reg2mem
br i1 %43, label LBL_14, label LBL_10
LBL_10:
%44 = load i32, i32* bitcast (i64* @gv_3 to i32*), align 8
%45 = icmp slt i32 %44, 0
%46 = icmp eq i1 %45, false
store i32 %44, i32* %.reg2mem28
br i1 %46, label LBL_12, label LBL_11
LBL_11:
store i32 0, i32* bitcast (i64* @gv_3 to i32*), align 8
store i32 0, i32* %.reg2mem28
br label LBL_12
LBL_12:
%.reload29 = load i32, i32* %.reg2mem28
%47 = and i64 %41, 4294967295
%48 = and i64 %sv_0.0.ph.reload, 4294967295
%49 = call i64 @FUNC(i64 %48, i64 %47, i32 %.reload29)
store i32 -1, i32* bitcast (i64* @gv_3 to i32*), align 8
%.pre = trunc i64 %41 to i32
store i32 %.pre, i32* %.pre-phi.pre-phi.reg2mem
store i64 %41, i64* %sv_1.1.be.reg2mem
store i64 %41, i64* %sv_0.1.be.reg2mem
br label LBL_13
LBL_13:
%sv_0.1.be.reload = load i64, i64* %sv_0.1.be.reg2mem
%sv_1.1.be.reload = load i64, i64* %sv_1.1.be.reg2mem
%.pre-phi.pre-phi.reload = load i32, i32* %.pre-phi.pre-phi.reg2mem
%50 = icmp eq i32 %.pre-phi.pre-phi.reload, %9
%51 = icmp eq i1 %50, false
store i32 %.pre-phi.pre-phi.reload, i32* %.reg2mem
store i64 %sv_0.1.be.reload, i64* %sv_0.119.reg2mem
store i64 %sv_1.1.be.reload, i64* %sv_1.118.reg2mem
store i64 %sv_0.1.be.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %51, label LBL_4, label LBL_15
LBL_14:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%52 = trunc i64 %sv_1.0.reload to i32
%53 = icmp eq i32 %52, %9
%54 = icmp eq i1 %53, false
store i32 %52, i32* %.pre-phi.pre-phi.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem
store i64 %sv_0.0.ph.reload, i64* %sv_0.1.be.reg2mem
br i1 %54, label LBL_9, label LBL_13
LBL_15:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%55 = load i32, i32* bitcast (i64* @gv_3 to i32*), align 8
%56 = and i64 %6, 4294967295
%57 = and i64 %sv_0.1.lcssa.reload, 4294967295
%58 = call i64 @FUNC(i64 %57, i64 %56, i32 %55)
store i64 %58, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_1.0.reload, { 3, 1, 0, 2 }
uselistorder i32 %.pre-phi.pre-phi.reload, { 1, 0 }
uselistorder i64 %41, { 1, 2, 3, 4, 0 }
uselistorder i64 %indvars.iv.next, { 1, 0, 3, 2 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i64 %sv_1.118.reload, { 1, 0 }
uselistorder i32 %9, { 2, 0, 3, 1 }
uselistorder i64 %7, { 1, 2, 0, 3 }
uselistorder i64 %6, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.119.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.118.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem28, { 0, 2, 1 }
uselistorder i32* %.pre-phi.pre-phi.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.1.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.1.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* @gv_3, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 4294967295, { 4, 5, 1, 2, 3, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 ptrtoint (i8** @gv_2 to i64), { 1, 0 }
uselistorder i1 false, { 3, 5, 1, 2, 4, 0 }
uselistorder i64 32, { 1, 0, 2, 3 }
uselistorder i64 4294967296, { 4, 0, 1, 2, 3 }
uselistorder i32 1, { 14, 13, 16, 15, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | cin_decode_rle_13956 | cin_decode_rle | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i32*
%sv_1.04.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i32* %arg1 to i64
%sext = mul i64 %arg4, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = add i64 %2, %0
%sext2 = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext2, 32
%5 = add i64 %4, %1
%6 = icmp ugt i64 %5, %1
%7 = icmp eq i1 %6, false
store i64 %1, i64* %.reg2mem
store i64 %0, i64* %sv_1.04.reg2mem
store i32* %arg1, i32** %sv_0.13.reg2mem
store i64 %1, i64* %rax.0.reg2mem
br i1 %7, label LBL_6, label LBL_5
LBL_1:
%sv_0.13.reload = load i32*, i32** %sv_0.13.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = add i64 %.reload, 1
%9 = bitcast i32* %sv_0.13.reload to i8*
%10 = load i8, i8* %9, align 1
%11 = zext i8 %10 to i32
%12 = icmp sgt i8 %10, -1
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = add nsw i32 %11, -127
%14 = sub i64 %3, %sv_1.04.reload
%15 = sext i32 %13 to i64
%16 = sub i64 %14, %15
%17 = xor i64 %14, %15
%18 = xor i64 %16, %14
%19 = and i64 %18, %17
%20 = icmp slt i64 %19, 0
%21 = icmp eq i64 %16, 0
%22 = icmp slt i64 %16, 0
%23 = icmp ne i1 %22, %20
%24 = or i1 %21, %23
%25 = select i1 %24, i64 %14, i64 %15
%26 = add i64 %.reload, 2
%27 = inttoptr i64 %8 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i32
%30 = inttoptr i64 %sv_1.04.reload to i64*
%31 = trunc i64 %25 to i32
%32 = call i64* @memset(i64* %30, i32 %29, i32 %31)
store i64 %15, i64* %.pre-phi.reg2mem
store i64 %26, i64* %sv_0.0.in.reg2mem
br label LBL_4
LBL_3:
%33 = add nuw nsw i32 %11, 1
%34 = sub i64 %3, %sv_1.04.reload
%35 = zext i32 %33 to i64
%36 = sub i64 %34, %35
%37 = xor i64 %36, -9223372036854775808
%38 = and i64 %37, %34
%39 = icmp slt i64 %38, 0
%40 = icmp eq i64 %36, 0
%41 = icmp slt i64 %36, 0
%42 = icmp ne i1 %41, %39
%43 = or i1 %40, %42
%44 = select i1 %43, i64 %34, i64 %35
%45 = inttoptr i64 %sv_1.04.reload to i64*
%46 = inttoptr i64 %8 to i64*
%47 = trunc i64 %44 to i32
%48 = call i64* @memcpy(i64* %45, i64* %46, i32 %47)
%49 = add i64 %8, %35
store i64 %35, i64* %.pre-phi.reg2mem
store i64 %49, i64* %sv_0.0.in.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i32*
%50 = add i64 %.pre-phi.reload, %sv_1.04.reload
%51 = icmp ugt i64 %5, %sv_0.0.in.reload
%52 = icmp eq i1 %51, false
store i64 %sv_0.0.in.reload, i64* %.reg2mem
store i64 %50, i64* %sv_1.04.reg2mem
store i32* %sv_0.0, i32** %sv_0.13.reg2mem
store i64 %sv_0.0.in.reload, i64* %rax.0.reg2mem
br i1 %52, label LBL_6, label LBL_5
LBL_5:
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%53 = icmp ugt i64 %3, %sv_1.04.reload
store i64 %sv_1.04.reload, i64* %rax.0.reg2mem
br i1 %53, label LBL_1, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.04.reload, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64 %sv_0.0.in.reload, { 0, 1, 3, 2 }
uselistorder i64 %36, { 1, 2, 0 }
uselistorder i64 %34, { 2, 0, 1 }
uselistorder i64 %16, { 1, 2, 0 }
uselistorder i64 %15, { 0, 3, 1, 2 }
uselistorder i64 %14, { 3, 1, 0, 2 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64 %1, { 0, 1, 3, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.04.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.13.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | jsi_FuncGetCode_9749 | jsi_FuncGetCode | define i64 @FUNC(i32* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%.reg2mem37 = alloca i32
%.reg2mem35 = alloca i32
%sv_1.16.reg2mem = alloca i64
%.reg2mem33 = alloca i8*
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.011.reg2mem = alloca i64
%sv_2.113.reg2mem = alloca i32
%.reg2mem = alloca i8
%sv_2.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i64* %arg2, null
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %5, %3
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_23
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, -1
%11 = icmp eq i1 %10, false
store i32 %9, i32* %.reg2mem37
br i1 %11, label LBL_13, label LBL_2
LBL_2:
%12 = bitcast i64* %arg2 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, 0
store i64 %6, i64* %sv_1.0.lcssa.reg2mem
br i1 %14, label LBL_8, label LBL_3
LBL_3:
%15 = add i64 %6, 16
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, -1
store i8 %13, i8* %.reg2mem
store i32 %18, i32* %sv_2.113.reg2mem
store i64 %6, i64* %sv_1.011.reg2mem
br label LBL_7
LBL_4:
%.reload = load i8, i8* %.reg2mem
%19 = icmp eq i8 %.reload, 10
%20 = icmp eq i1 %19, false
store i32 %sv_2.113.reload, i32* %sv_2.0.reg2mem
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%21 = add i32 %sv_2.113.reload, -1
%22 = icmp slt i32 %21, 1
store i32 %21, i32* %sv_2.0.reg2mem
store i64 %sv_1.011.reload, i64* %sv_1.0.lcssa.reg2mem
br i1 %22, label LBL_8, label LBL_6
LBL_6:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%23 = add i64 %sv_1.011.reload, 1
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 0
store i8 %25, i8* %.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.113.reg2mem
store i64 %23, i64* %sv_1.011.reg2mem
store i64 %23, i64* %sv_1.0.lcssa.reg2mem
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%sv_1.011.reload = load i64, i64* %sv_1.011.reg2mem
%sv_2.113.reload = load i32, i32* %sv_2.113.reg2mem
%27 = icmp eq i32 %sv_2.113.reload, 0
%28 = icmp slt i32 %sv_2.113.reload, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %27, false
%31 = icmp eq i1 %29, %30
store i64 %sv_1.011.reload, i64* %sv_1.0.lcssa.reg2mem
br i1 %31, label LBL_4, label LBL_8
LBL_8:
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%32 = inttoptr i64 %sv_1.0.lcssa.reload to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %33, 0
store i8* %32, i8** %.reg2mem33
store i64 %sv_1.0.lcssa.reload, i64* %sv_1.16.reg2mem
br i1 %34, label LBL_11.thread, label LBL_10
LBL_9:
%35 = add i64 %sv_1.16.reload, 1
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = icmp eq i8 %37, 0
store i8* %36, i8** %.reg2mem33
store i64 %35, i64* %sv_1.16.reg2mem
br i1 %38, label LBL_11.thread, label LBL_10
LBL_10:
%sv_1.16.reload = load i64, i64* %sv_1.16.reg2mem
%.reload34 = load i8*, i8** %.reg2mem33
%39 = call i16** @__ctype_b_loc()
%40 = load i16*, i16** %39, align 8
%41 = ptrtoint i16* %40 to i64
%42 = load i8, i8* %.reload34, align 1
%43 = sext i8 %42 to i64
%44 = mul i64 %43, 2
%45 = add i64 %44, %41
%46 = inttoptr i64 %45 to i16*
%47 = load i16, i16* %46, align 2
%48 = and i16 %47, 8192
%49 = icmp eq i16 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_9, label LBL_11
LBL_11:
%phitmp27 = icmp eq i8 %42, 0
%51 = sub i64 %sv_1.16.reload, %6
%phitmp = trunc i64 %51 to i32
store i32 %phitmp, i32* %.reg2mem35
br i1 %phitmp27, label LBL_11.thread, label %52
LBL_12:
store i32 -2, i32* %.reg2mem35
br label %52
LBL_13:
%.reload38 = load i32, i32* %.reg2mem37
%53 = icmp slt i32 %.reload38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %53, label LBL_23, label LBL_14
LBL_14:
%54 = add i64 %6, 12
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = sub i32 %56, %.reload38
%58 = sext i32 %.reload38 to i64
%59 = add i64 %58, %6
%60 = icmp slt i32 %57, 1
store i32 %57, i32* %sv_0.0.lcssa.reg2mem
br i1 %60, label LBL_18, label LBL_15
LBL_15:
%61 = add i64 %59, -1
store i32 %57, i32* %sv_0.04.reg2mem
br label LBL_17
LBL_16:
%62 = add i32 %sv_0.04.reload, -1
%63 = icmp slt i32 %62, 1
store i32 %62, i32* %sv_0.04.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %63, label LBL_18, label LBL_17
LBL_17:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%64 = call i16** @__ctype_b_loc()
%65 = load i16*, i16** %64, align 8
%66 = ptrtoint i16* %65 to i64
%67 = sext i32 %sv_0.04.reload to i64
%68 = add i64 %61, %67
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = sext i8 %70 to i64
%72 = mul i64 %71, 2
%73 = add i64 %72, %66
%74 = inttoptr i64 %73 to i16*
%75 = load i16, i16* %74, align 2
%76 = and i16 %75, 8192
%77 = icmp eq i16 %76, 0
%78 = icmp eq i1 %77, false
%79 = icmp eq i8 %70, 59
%or.cond3 = or i1 %79, %78
store i32 %sv_0.04.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %or.cond3, label LBL_16, label LBL_18
LBL_18:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%80 = inttoptr i64 %59 to i8*
%81 = load i8, i8* %80, align 1
%82 = icmp eq i8 %81, 102
store i64 %59, i64* %sv_1.2.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.reg2mem
br i1 %82, label LBL_22, label LBL_19
LBL_19:
%83 = call i64 @FUNC(i64 %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 8)
%84 = trunc i64 %83 to i32
%85 = icmp eq i32 %84, 0
store i64 %59, i64* %sv_1.2.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.reg2mem
br i1 %85, label LBL_22, label LBL_20
LBL_20:
%86 = call i64 @FUNC(i64 %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
store i64 %59, i64* %sv_1.2.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.reg2mem
br i1 %87, label LBL_22, label LBL_21
LBL_21:
%88 = sub i64 %86, %59
%89 = trunc i64 %88 to i32
%90 = sub i32 %sv_0.0.lcssa.reload, %89
store i64 %86, i64* %sv_1.2.reg2mem
store i32 %90, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_22:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
store i32 %sv_0.1.reload, i32* %arg3, align 4
store i64 %sv_1.2.reload, 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 %sv_0.0.lcssa.reload, { 3, 0, 1, 2 }
uselistorder i32 %sv_0.04.reload, { 0, 2, 1 }
uselistorder i64 %59, { 4, 0, 5, 1, 7, 2, 6, 3 }
uselistorder i32 %57, { 1, 0, 2 }
uselistorder i64 %sv_1.16.reload, { 1, 0 }
uselistorder i32 %sv_2.113.reload, { 1, 0, 3, 2 }
uselistorder i64 %6, { 2, 5, 3, 1, 4, 0, 6 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i8** %.reg2mem33, { 0, 2, 1 }
uselistorder i64* %sv_1.16.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem35, { 0, 2, 1 }
uselistorder i32* %.reg2mem37, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 0 }
uselistorder i8 0, { 0, 3, 2, 4, 1 }
uselistorder i32 -1, { 1, 0, 2, 3 }
uselistorder i1 false, { 2, 3, 5, 1, 4, 6, 0 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_23, { 2, 0, 1 }
uselistorder label LBL_18, { 1, 0, 2 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label %52, { 1, 0 }
uselistorder label LBL_11.thread, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 0, 3 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | show_uevent_18847 | show_uevent | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%storemerge17.reg2mem = alloca i32
%.reg2mem24 = alloca i64
%.reg2mem22 = alloca i64
%sv_2.1.ptr.ph.reg2mem = alloca i64*
%.reg2mem = alloca i64
%sv_3 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64* %arg1, i64** %sv_2.1.ptr.ph.reg2mem
br i1 %1, label LBL_4, label LBL_1
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 %5, i64* %.reg2mem
store i64* %arg1, i64** %sv_2.1.ptr.ph.reg2mem
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%7 = inttoptr i64 %.reload to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %.reg2mem22
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = add i64 %.reload, 8
%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
store i64* %7, i64** %sv_2.1.ptr.ph.reg2mem
br i1 %15, label LBL_2, label LBL_4
LBL_4:
%sv_2.1.ptr.ph.reload = load i64*, i64** %sv_2.1.ptr.ph.reg2mem
%.pr = load i64, i64* %sv_2.1.ptr.ph.reload, align 8
store i64 %.pr, i64* %.reg2mem22
br label LBL_5
LBL_5:
%.reload23 = load i64, i64* %.reg2mem22
%16 = icmp eq i64 %.reload23, 0
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %16, label LBL_13, label LBL_6
LBL_6:
%17 = inttoptr i64 %.reload23 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %19, label LBL_13, label LBL_7
LBL_7:
%20 = inttoptr i64 %18 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %22, label LBL_13, label LBL_8
LBL_8:
%23 = add i64 %18, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp ne i64 %25, 0
%27 = trunc i64 %.reload23 to i32
%28 = icmp eq i32 %27, 0
%or.cond = icmp eq i1 %28, %26
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_13, label LBL_9
LBL_9:
%29 = call i64 @FUNC(i64 0)
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 -12, i64* %storemerge.reg2mem
br i1 %31, label LBL_10, label LBL_14
LBL_10:
%32 = icmp eq i1 %28, false
store i64 %29, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %32, label LBL_13, label LBL_11
LBL_11:
%33 = ptrtoint i64* %arg3 to i64
%34 = ptrtoint i64* %sv_3 to i64
%35 = add i64 %34, -320
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 %37, i64* %.reg2mem24
store i32 0, i32* %storemerge17.reg2mem
store i64 0, i64* %sv_0.06.reg2mem
store i64 %29, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %39, label LBL_12, label LBL_13
LBL_12:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%.reload25 = load i64, i64* %.reg2mem24
%40 = add i64 %sv_0.06.reload, %33
%41 = inttoptr i64 %40 to i8*
%42 = inttoptr i64 %.reload25 to i8*
%43 = call i32 (i8*, i8*, ...) @sprintf(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* %42)
%44 = sext i32 %43 to i64
%45 = add i64 %sv_0.06.reload, %44
%46 = add i32 %storemerge17.reload, 1
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = add i64 %48, %35
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = icmp eq i64 %51, 0
%53 = icmp eq i1 %52, false
store i64 %51, i64* %.reg2mem24
store i32 %46, i32* %storemerge17.reg2mem
store i64 %45, i64* %sv_0.06.reg2mem
store i64 %29, i64* %sv_1.0.reg2mem
store i64 %45, i64* %sv_0.1.reg2mem
br i1 %53, label LBL_12, label LBL_13
LBL_13:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%54 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 %sv_0.1.reload, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.06.reload, { 1, 0 }
uselistorder i1 %28, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64** %sv_2.1.ptr.ph.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %.reg2mem22, { 0, 2, 1 }
uselistorder i64* %.reg2mem24, { 2, 0, 1 }
uselistorder i32* %storemerge17.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 1, 2, 4, 3, 5, 6, 7 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 1, 2, 4, 3, 5, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64* %arg1, { 1, 3, 0, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 0, 1, 3, 2, 5, 4, 6 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mov_update_dts_shift_3151 | mov_update_dts_shift | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %arg2 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = icmp eq i32 %4, -2147483648
%8 = icmp eq i1 %7, false
store i32 %4, i32* %.pre-phi.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%9 = call i64 @FUNC(i64 0, i64 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 2147483647, i64 %2, i64 %1)
%sext3 = add i64 %sext, 4294967296
%10 = udiv i64 %sext3, 4294967296
%.pre = trunc i64 %10 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%11 = trunc i64 %3 to i32
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%12 = sub i32 0, %.pre-phi.reload
%13 = sub i32 %12, %11
%14 = xor i32 %12, %11
%15 = xor i32 %13, %12
%16 = and i32 %15, %14
%17 = icmp slt i32 %16, 0
%18 = icmp slt i32 %13, 0
%19 = icmp eq i1 %18, %17
%20 = select i1 %19, i32 %12, i32 %11
%21 = ptrtoint i32* %arg1 to i64
store i32 %20, i32* %arg1, align 4
store i64 %21, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %13, { 1, 0 }
uselistorder i32 %12, { 3, 0, 1, 2 }
uselistorder i32 %11, { 2, 0, 1 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967296, { 1, 2, 0 }
uselistorder i32* %arg1, { 1, 0 }
} | 0 |
BinRealVul | m5206_mbar_readl_16152 | m5206_mbar_readl | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = urem i32 %0, 1024
%2 = icmp ult i32 %1, 513
%.pre = zext i32 %1 to i64
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %.pre)
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %arg2, 1020
%6 = add i64 %5, ptrtoint (i32** @gv_1 to i64)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp sgt i32 %8, 3
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %4, i64 %.pre)
%11 = mul i64 %10, 65536
%12 = add nuw nsw i32 %1, 2
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %4, i64 %13)
%15 = or i64 %11, %14
%16 = and i64 %15, 4294967295
store i64 %16, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%17 = call i64 @FUNC(i64 %4, i64 %.pre, i64 4)
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %.pre, { 1, 0, 2 }
uselistorder i32 %1, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @m5206_mbar_readw, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | print_sdp_1803 | print_sdp | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i64* @malloc(i32 8)
%1 = ptrtoint i64* %0 to i64
store i64 %1, i64* %sv_1, align 8
%2 = icmp eq i64* %0, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @exit(i32 1)
unreachable
LBL_2:
%4 = load i64, i64* @gv_0, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i64 %6, i64* %0, align 8
%7 = load i64, i64* %sv_1, align 8
%8 = call i64 @FUNC(i64 %7, i64 1, i64* nonnull %sv_0, i64 16384)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0)
%10 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%11 = call i32 @fflush(%_IO_FILE* %10)
%12 = inttoptr i64 %7 to i64*
call void @free(i64* %12)
call void @free(i64* nonnull %sv_1)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i32 1, { 0, 2, 1 }
} | 0 |
BinRealVul | rend_service_intro_established_13394 | rend_service_intro_established | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) 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 i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = load i64, i64* %7, align 8
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = trunc i64 %3 to i32
%14 = icmp eq i32 %13, 1
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %4, i64 %2, i64 %1)
br label LBL_7
LBL_2:
%16 = call i64 @FUNC(i64 %12)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = add i64 %5, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %4, i64 %2, i64 %1)
br label LBL_7
LBL_4:
%24 = call i64 @FUNC(i64* nonnull %sv_0, i64 33, i64 %12, i64 20)
%25 = call i64 @FUNC(i64 %5)
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = add i64 %5, 4
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = call i64 @FUNC(i64* nonnull %sv_0)
%32 = zext i32 %30 to i64
%33 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([98 x i8], [98 x i8]* @gv_2, i64 0, i64 0), i64 %31, i64 %32, i64 %2, i64 %1)
br label LBL_7
LBL_6:
%34 = inttoptr i64 %16 to i32*
%35 = inttoptr i64 %25 to i32*
store i32 1, i32* %35, align 4
%36 = call i32 @time(i32* null)
store i32 %36, i32* %34, align 4
%37 = call i64 @FUNC(i64 %5)
%38 = call i64 @FUNC(i64 %37, i64 2)
%39 = add i64 %5, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = zext i32 %41 to i64
%43 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_3, i64 0, i64 0), i64 %42, i64* nonnull %sv_0, i64 %2, i64 %1)
%44 = call i64 @FUNC(i64 %5)
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%45 = call i64 @FUNC(i64 %5)
%46 = call i64 @FUNC(i64 %45, i64 1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 0, 3, 5, 4, 2, 6, 1, 7 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i64 %1, { 0, 3, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @TO_CIRCUIT, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @log_warn, { 2, 1, 0 }
} | 0 |
BinRealVul | vnc_should_update_16700 | vnc_should_update | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 2
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 2
%5 = icmp eq i32 %2, 0
%or.cond = or i1 %4, %5
%6 = icmp eq i32 %2, 1
%7 = icmp eq i1 %6, false
%or.cond3 = or i1 %or.cond, %7
br i1 %or.cond3, label LBL_4, label LBL_2
LBL_2:
%8 = ptrtoint i32* %arg1 to i64
%9 = add i64 %8, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = add i64 %8, 8
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_5
LBL_4:
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 %2, { 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_5, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | xml_sax_append_string_12948 | xml_sax_append_string | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 12
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = call i32 @strlen(i8* %arg2)
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = ptrtoint i8* %arg2 to i64
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %4, %3
%12 = add i32 %11, 1
%13 = icmp ult i32 %10, %12
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = mul i32 %12, 3
%16 = udiv i32 %15, 2
store i32 %16, i32* %9, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %7, i64 %17)
store i64 %18, i64* %arg1, align 8
%19 = icmp eq i8* %arg2, null
%20 = icmp eq i1 %19, false
store i64 1, i64* %rax.0.reg2mem
br i1 %20, label LBL_3, label LBL_4
LBL_3:
%21 = zext i32 %3 to i64
%22 = add i64 %21, %7
%23 = inttoptr i64 %22 to i64*
%24 = bitcast i8* %arg2 to i64*
%25 = call i64* @memcpy(i64* %23, i64* %24, i32 %4)
%26 = zext i32 %11 to i64
%27 = add i64 %22, %26
%28 = inttoptr i64 %27 to i8*
store i8 0, i8* %28, align 1
store i32 %11, i32* %2, align 4
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 i32 %16, { 1, 0 }
uselistorder i32 %4, { 1, 0, 2 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i8* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | tb_target_set_jmp_target_18660 | tb_target_set_jmp_target | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = sub i64 %arg3, %arg1
%1 = add i64 %0, 32768
%2 = icmp ult i64 %1, 65536
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = sub i64 %arg3, %arg2
%5 = mul i64 %4, 4294967296
%6 = add i64 %5, 288230358971842560
%7 = urem i64 %6, 288230358971842561
%phitmp3 = or i64 %7, 8589934592
store i64 0, i64* %sv_0.0.reg2mem
store i64 %phitmp3, i64* %storemerge.reg2mem
br label LBL_4
LBL_2:
%sext = mul i64 %0, 281474976710656
%8 = ashr exact i64 %sext, 48
%9 = sub i64 %0, %8
%sext4 = mul i64 %9, 4294967296
%10 = ashr exact i64 %sext4, 32
%11 = add nsw i64 %10, %8
%sext5 = mul i64 %0, 4294967296
%12 = ashr exact i64 %sext5, 32
%13 = icmp eq i64 %11, %12
store i64 1, i64* %sv_0.0.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_1, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0))
store i64 1, i64* %sv_0.0.reg2mem
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = or i64 %storemerge.reload, %sv_0.0.reload
%15 = inttoptr i64 %arg2 to i64*
store i64 %14, i64* %15, align 8
ret i64 %arg2
uselistorder i64 %0, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | mobi_parse_huff_6940 | mobi_parse_huff | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv6.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %4, i64 %7)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %3, i64 %2, i64 %1)
store i64 2, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%12 = call i64 @FUNC(i64* nonnull %sv_0, i64 %8, i64 4)
%13 = call i64 @FUNC(i64 %8)
%14 = and i64 %13, 4294967280
%15 = bitcast i64* %sv_0 to i8*
%16 = call i32 @strncmp(i8* nonnull %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i32 4)
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i64 %14, 0
%or.cond = or i1 %19, %18
br i1 %or.cond, label LBL_3, label LBL_4
LBL_3:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0), i8* nonnull %15, i64 4, i64 %8, i64 %2, i64 %1)
%21 = call i64 @FUNC(i64 %8)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%22 = ptrtoint i64* %arg1 to i64
%23 = call i64 @FUNC(i64 %8)
%24 = and i64 %23, 4294967295
%25 = call i64 @FUNC(i64 %8)
%26 = and i64 %25, 4294967295
%27 = call i64 @FUNC(i64 %8, i64 %24)
%28 = add i64 %8, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, 1024
%32 = add i64 %8, 24
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp ugt i64 %31, %34
store i64 0, i64* %indvars.iv6.reg2mem
br i1 %35, label LBL_5, label LBL_6
LBL_5:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i64 %31, i64 %8, i64 %2, i64 %1)
%37 = call i64 @FUNC(i64 %8)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%38 = call i64 @FUNC(i64 %8)
%39 = trunc i64 %38 to i32
%40 = mul i64 %indvars.iv6.reload, 4
%41 = add i64 %40, %22
%42 = inttoptr i64 %41 to i32*
store i32 %39, i32* %42, align 4
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next7, 256
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
br i1 %exitcond8, label LBL_7, label LBL_6
LBL_7:
%43 = call i64 @FUNC(i64 %8, i64 %26)
%44 = load i64, i64* %29, align 8
%45 = add i64 %44, 256
%46 = load i64, i64* %33, align 8
%47 = icmp ugt i64 %45, %46
br i1 %47, label LBL_8, label LBL_9
LBL_8:
%48 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i64 %45, i64 255, i64 %2, i64 %1)
%49 = call i64 @FUNC(i64 %8)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_9:
%50 = add i64 %22, 1024
%51 = inttoptr i64 %50 to i32*
store i32 0, i32* %51, align 4
%52 = add i64 %22, 1280
%53 = inttoptr i64 %52 to i32*
store i32 -1, i32* %53, align 4
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%54 = call i64 @FUNC(i64 %8)
%55 = call i64 @FUNC(i64 %8)
%56 = trunc i64 %55 to i32
%57 = trunc i64 %indvars.iv.reload to i32
%58 = sub i32 0, %57
%59 = urem i32 %58, 32
%60 = icmp eq i32 %59, 0
%61 = trunc i64 %54 to i32
%62 = shl i32 %61, %59
%63 = zext i32 %62 to i64
%storemerge = select i1 %60, i64 %54, i64 %63
%64 = trunc i64 %storemerge to i32
%65 = mul i64 %indvars.iv.reload, 4
%66 = add i64 %65, %50
%67 = inttoptr i64 %66 to i32*
store i32 %64, i32* %67, align 4
%68 = add i32 %56, 1
%69 = shl i32 %68, %59
%70 = add i32 %69, -1
%71 = add i64 %65, %52
%72 = inttoptr i64 %71 to i32*
store i32 %70, i32* %72, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%73 = call i64 @FUNC(i64 %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %65, { 1, 0 }
uselistorder i32 %59, { 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %22, { 1, 2, 0 }
uselistorder i64 %8, { 2, 1, 0, 3, 4, 5, 6, 7, 9, 8, 12, 11, 10, 13, 14, 16, 15, 17 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %indvars.iv6.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 256, { 1, 0 }
uselistorder i64 (i64, i64)* @mobi_buffer_setpos, { 1, 0 }
uselistorder i64 1, { 5, 3, 0, 4, 1, 2 }
uselistorder i64 (i64)* @mobi_buffer_free_null, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @mobi_buffer_get32, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @debug_print, { 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | method_preset_all_unit_files_18280 | method_preset_all_unit_files | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
store i64 0, i64* %sv_4, align 8
store i32 0, i32* %sv_3, align 4
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_1, i64 0, i64 0), i32 83, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = icmp eq i32* %arg2, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_1, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%6 = ptrtoint i64* %arg1 to i64
%7 = ptrtoint i32* %arg3 to i64
%8 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = and i64 %8, 4294967295
store i64 %12, i64* %rax.0.reg2mem
br label LBL_16
LBL_6:
%13 = bitcast i32* %sv_1 to i64*
%14 = bitcast i32* %sv_2 to i64*
%15 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i64* nonnull %sv_0, i64* nonnull %13, i64* nonnull %14)
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = and i64 %15, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_16
LBL_8:
%20 = load i64, i64* %sv_0, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_9, label LBL_10
LBL_9:
%24 = load i64, i64* %sv_0, align 8
%25 = call i64 @FUNC(i64 %24)
%phitmp = and i64 %25, 4294967295
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%26 = ptrtoint i32* %arg2 to i64
%27 = call i64 @FUNC(i64 %26, i64 %6, i64 %7)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_12, label LBL_11
LBL_11:
%31 = and i64 %27, 4294967295
store i64 %31, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%32 = icmp eq i32 %28, 0
%33 = icmp eq i1 %32, false
store i64 1, i64* %rax.0.reg2mem
br i1 %33, label LBL_13, label LBL_16
LBL_13:
%34 = trunc i64 %1 to i32
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
%37 = load i32, i32* %sv_2, align 4
%38 = load i32, i32* %sv_1, align 4
%39 = zext i32 %38 to i64
%40 = zext i32 %37 to i64
%41 = zext i1 %36 to i64
%42 = call i64 @FUNC(i64 %41, i64 %39, i64 0, i64 %storemerge.reload, i64 %40, i64* nonnull %sv_4, i32* nonnull %sv_3)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_15, label LBL_14
LBL_14:
%46 = and i64 %42, 4294967295
store i64 %46, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%47 = load i32, i32* %sv_3, align 4
%48 = load i64, i64* %sv_4, align 8
%49 = zext i32 %47 to i64
%50 = call i64 @FUNC(i64 %26, i64 %6, i64 4294967295, i64 %48, i64 %49)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_4, { 1, 0, 2 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 1, 4, 3, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_16, { 1, 2, 0, 3, 4, 5 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | enqueue_packet_16574 | enqueue_packet | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %0, 2
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i16
store i64 %1, i64* %storemerge.reg2mem
br label LBL_2
LBL_1:
%5 = add i64 %11, 8
%6 = inttoptr i64 %5 to i16*
%7 = load i16, i16* %6, align 2
%8 = sub i16 %4, %7
%9 = icmp slt i16 %8, 0
store i64 %11, i64* %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%10 = inttoptr i64 %storemerge.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_1, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 32)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC()
%17 = add i64 %14, 24
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = add i64 %14, 8
%20 = inttoptr i64 %19 to i16*
store i16 %4, i16* %20, align 2
%21 = trunc i64 %arg3 to i32
%22 = add i64 %14, 12
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %14, 16
%25 = inttoptr i64 %24 to i64*
store i64 %0, i64* %25, align 8
%26 = load i64, i64* %10, align 8
%27 = inttoptr i64 %14 to i64*
store i64 %26, i64* %27, align 8
store i64 %14, i64* %10, align 8
%28 = add i64 %1, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, 1
store i32 %31, i32* %29, align 4
store i64 %1, 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, { 2, 1, 0 }
uselistorder i16 %4, { 1, 0 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | l2cap_sock_release_13297 | l2cap_sock_release | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64* %arg1, i64* %arg1)
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64* nonnull @gv_1, i64 %3)
%5 = call i64 @FUNC(i64 %3, i64 2)
%6 = call i64 @FUNC(i64 %3)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %8)
%11 = call i64 @FUNC(i64 %3)
%12 = call i64 @FUNC(i64 %3)
%13 = call i64 @FUNC(i64 %8)
%14 = call i64 @FUNC(i64 %8)
%15 = and i64 %5, 4294967295
store i64 %15, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 4, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 3, 0, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | l2cap_conf_rfc_get_6263 | l2cap_conf_rfc_get | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i64*
%sv_0.0.ph15.reg2mem = alloca i64*
%sv_1.0.ph16.reg2mem = alloca i32
%sv_1.012.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sv_5 = alloca i32, align 4
%sv_6 = alloca i64, align 8
store i64 %arg2, i64* %sv_6, align 8
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = trunc i64 %3 to i32
store i32 %8, i32* %sv_5, align 4
%9 = call i64 @FUNC(i64 100)
%10 = call i64 @FUNC(i64 200)
%11 = add i64 %4, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = urem i32 %13, 65536
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = load i32, i32* %6, align 4
%18 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %arg2, i32 %arg3, i64 %2, i64 %1)
%19 = icmp eq i32 %8, 1
br i1 %19, label LBL_2, label LBL_1
LBL_1:
%20 = and i64 %3, 4294967295
%21 = icmp eq i32 %8, 2
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_18, label LBL_2
LBL_2:
%23 = urem i32 %7, 65536
%24 = zext i32 %23 to i64
%25 = inttoptr i64 %24 to i64*
%26 = icmp sgt i32 %arg3, 3
store i64* %25, i64** %sv_0.0.ph.lcssa.reg2mem
br i1 %26, label LBL_3, label LBL_12
LBL_3:
%27 = bitcast i32* %sv_2 to i64*
%28 = bitcast i32* %sv_3 to i64*
%29 = bitcast i32* %sv_5 to i64*
store i32 %arg3, i32* %sv_1.0.ph16.reg2mem
store i64* %25, i64** %sv_0.0.ph15.reg2mem
br label LBL_4.lr.ph
LBL_4:
%sv_1.012.reload = load i32, i32* %sv_1.012.reg2mem
%30 = call i64 @FUNC(i64* nonnull %sv_6, i64* nonnull %27, i64* nonnull %28, i64* nonnull %sv_4)
%31 = trunc i64 %30 to i32
%32 = sub i32 %sv_1.012.reload, %31
%33 = icmp slt i32 %32, 0
store i64* %sv_0.0.ph15.reload, i64** %sv_0.0.ph.lcssa.reg2mem
br i1 %33, label LBL_12, label LBL_5
LBL_5:
%34 = load i32, i32* %sv_2, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label LBL_7, label LBL_6
LBL_6:
%36 = icmp eq i32 %34, 2
%37 = load i32, i32* %sv_3, align 4
%38 = icmp eq i32 %37, 2
%or.cond = icmp eq i1 %36, %38
br i1 %or.cond, label LBL_10, label LBL_9
LBL_7:
%39 = load i32, i32* %sv_3, align 4
%40 = icmp eq i32 %39, 12
br i1 %40, label LBL_8, label LBL_9
LBL_8:
%41 = load i64, i64* %sv_4, align 8
%42 = inttoptr i64 %41 to i64*
%43 = call i64* @memcpy(i64* nonnull %29, i64* %42, i32 12)
br label LBL_9
LBL_9:
%44 = icmp sgt i32 %32, 3
store i32 %32, i32* %sv_1.012.reg2mem
store i64* %sv_0.0.ph15.reload, i64** %sv_0.0.ph.lcssa.reg2mem
br i1 %44, label LBL_4, label LBL_12
LBL_10:
%45 = load i64, i64* %sv_4, align 8
%46 = urem i64 %45, 65536
%47 = inttoptr i64 %46 to i64*
%48 = icmp sgt i32 %32, 3
store i32 %32, i32* %sv_1.0.ph16.reg2mem
store i64* %47, i64** %sv_0.0.ph15.reg2mem
store i64* %47, i64** %sv_0.0.ph.lcssa.reg2mem
br i1 %48, label LBL_4.lr.ph, label LBL_12
LBL_11:
%sv_0.0.ph15.reload = load i64*, i64** %sv_0.0.ph15.reg2mem
%sv_1.0.ph16.reload = load i32, i32* %sv_1.0.ph16.reg2mem
store i32 %sv_1.0.ph16.reload, i32* %sv_1.012.reg2mem
br label LBL_4
LBL_12:
%49 = trunc i64 %16 to i32
%sext9 = mul i32 %49, 65536
%50 = ashr exact i32 %sext9, 16
%51 = load i32, i32* %sv_5, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label LBL_14, label LBL_13
LBL_13:
%53 = zext i32 %51 to i64
%54 = icmp eq i32 %51, 2
store i64 %53, i64* %rax.0.reg2mem
br i1 %54, label LBL_17, label LBL_18
LBL_14:
%55 = urem i64 %9, 65536
%56 = urem i64 %10, 65536
%sv_0.0.ph.lcssa.reload = load i64*, i64** %sv_0.0.ph.lcssa.reg2mem
%57 = call i64 @FUNC(i64 %55)
%58 = trunc i64 %57 to i32
%59 = urem i32 %58, 65536
%60 = add i64 %4, 12
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = call i64 @FUNC(i64 %56)
%63 = trunc i64 %62 to i32
%64 = urem i32 %63, 65536
%65 = add i64 %4, 16
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = urem i32 %50, 65536
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = trunc i64 %69 to i32
%71 = urem i32 %70, 65536
%72 = add i64 %4, 20
%73 = inttoptr i64 %72 to i32*
store i32 %71, i32* %73, align 4
%74 = add i64 %4, 24
%75 = call i64 @FUNC(i64 0, i64 %74)
%76 = trunc i64 %75 to i32
%77 = icmp eq i32 %76, 0
br i1 %77, label LBL_16, label LBL_15
LBL_15:
%78 = ptrtoint i64* %sv_0.0.ph.lcssa.reload to i64
%79 = load i32, i32* %6, align 4
%80 = trunc i64 %78 to i32
%81 = urem i32 %80, 65536
%82 = sub i32 %81, %79
%83 = and i32 %82, %79
%84 = icmp slt i32 %83, 0
%85 = icmp eq i32 %82, 0
%86 = icmp slt i32 %82, 0
%87 = icmp eq i1 %86, %84
%88 = icmp eq i1 %85, false
%89 = icmp eq i1 %87, %88
%90 = select i1 %89, i32 %79, i32 %81
store i32 %90, i32* %6, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_18
LBL_16:
%91 = add i32 %17, -10
%92 = sub i32 9, %17
%93 = and i32 %92, %17
%94 = icmp slt i32 %93, 0
%95 = icmp eq i32 %91, 0
%96 = icmp slt i32 %91, 0
%97 = icmp eq i1 %96, %94
%98 = icmp eq i1 %95, false
%99 = icmp eq i1 %97, %98
%100 = urem i32 %17, 65536
%101 = select i1 %99, i32 10, i32 %100
%102 = load i32, i32* %6, align 4
%103 = sub i32 %101, %102
%104 = and i32 %103, %102
%105 = icmp slt i32 %104, 0
%106 = icmp eq i32 %103, 0
%107 = icmp slt i32 %103, 0
%108 = icmp eq i1 %107, %105
%109 = icmp eq i1 %106, false
%110 = icmp eq i1 %108, %109
%111 = select i1 %110, i32 %102, i32 %101
store i32 %111, i32* %6, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_18
LBL_17:
%112 = urem i32 %50, 65536
%113 = zext i32 %112 to i64
%114 = call i64 @FUNC(i64 %113)
%115 = trunc i64 %114 to i32
%116 = urem i32 %115, 65536
%117 = add i64 %4, 20
%118 = inttoptr i64 %117 to i32*
store i32 %116, i32* %118, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %103, { 1, 2, 0 }
uselistorder i32 %102, { 1, 0, 2 }
uselistorder i32 %101, { 1, 0 }
uselistorder i32 %91, { 1, 0 }
uselistorder i32 %82, { 1, 2, 0 }
uselistorder i32 %79, { 1, 0, 2 }
uselistorder i32 %51, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph15.reload, { 1, 0 }
uselistorder i32 %32, { 0, 2, 1, 3, 4 }
uselistorder i64* %25, { 1, 0 }
uselistorder i32* %6, { 3, 2, 1, 0, 4, 5 }
uselistorder i32* %sv_5, { 1, 0, 2 }
uselistorder i64* %sv_4, { 1, 2, 0 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64 %4, { 0, 3, 2, 1, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %3, { 1, 0 }
uselistorder i32* %sv_1.012.reg2mem, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 4, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @le16_to_cpu, { 3, 2, 1, 0 }
uselistorder i64 65536, { 1, 2, 0, 3, 4 }
uselistorder i32 0, { 0, 1, 2, 8, 9, 10, 3, 4, 5, 6, 7, 11 }
uselistorder i32 3, { 1, 2, 0 }
uselistorder i1 false, { 0, 3, 1, 2, 4 }
uselistorder i32 2, { 2, 0, 1, 3 }
uselistorder i32 65536, { 1, 2, 8, 3, 4, 5, 6, 7, 0, 10, 9 }
uselistorder i64 (i64)* @cpu_to_le16, { 2, 1, 0 }
uselistorder label LBL_18, { 2, 3, 4, 1, 0 }
uselistorder label LBL_4.lr.ph, { 1, 0 }
uselistorder label LBL_9, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | crm_element_value_int_8206 | crm_element_value_int | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = icmp eq i64* %arg3, null
%4 = icmp eq i64 %2, 0
%or.cond = or i1 %3, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 0)
%6 = trunc i64 %5 to i32
%7 = bitcast i64* %arg3 to i32*
store i32 %6, i32* %7, align 4
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
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | blk_queue_congestion_threshold_8629 | blk_queue_congestion_threshold | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = 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 = sdiv i32 %3, 128
%5 = sub i32 %3, %4
%6 = add i32 %5, 1
%7 = and i64 %1, 4294967295
%8 = sext i32 %6 to i64
%9 = icmp slt i64 %7, %8
%spec.select2 = select i1 %9, i32 %3, i32 %6
%10 = ptrtoint i32* %arg1 to i64
%11 = add i64 %10, 4
%12 = inttoptr i64 %11 to i32*
store i32 %spec.select2, i32* %12, align 4
%13 = load i32, i32* %2, align 8
%14 = sdiv i32 %13, 128
%15 = sub i32 %13, %14
%16 = add i32 %13, 15
%17 = ashr i32 %16, 4
%18 = sub i32 0, %17
%19 = sub i32 %18, 1
%20 = add i32 %15, %19
%21 = icmp eq i32 %20, 0
%22 = icmp slt i32 %20, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %21, false
%25 = icmp eq i1 %23, %24
%spec.select = select i1 %25, i32 %20, i32 1
%26 = add i64 %10, 8
%27 = inttoptr i64 %26 to i32*
store i32 %spec.select, i32* %27, align 4
ret i64 %10
uselistorder i32 %20, { 0, 2, 1 }
uselistorder i32 %13, { 1, 2, 0 }
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i32 %3, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
} | 0 |
BinRealVul | gdlm_ast_18560 | gdlm_ast | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 12
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
call void @exit(i32 1)
unreachable
LBL_2:
%8 = and i32 %5, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = call i64* @memset(i64* %13, i32 0, i32 128)
br label LBL_4
LBL_4:
store i64 %2, i64* @0, align 8
switch i64 %2, label LBL_8 [
i64 0, label LBL_9
i64 1, label LBL_5
i64 2, label LBL_6
i64 3, label LBL_14
i64 4, label LBL_14
i64 5, label LBL_7
]
LBL_5:
%15 = call i64 @FUNC(i64 33, i64 4198771)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_17
LBL_6:
%16 = or i64 %1, 1
store i64 %16, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_7:
%17 = or i64 %1, 2
store i64 %17, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_8:
call void @exit(i32 1)
unreachable
LBL_9:
%18 = load i32, i32* inttoptr (i64 4 to i32*), align 4
%19 = load i32, i32* %4, align 4
%20 = and i32 %19, 4
%21 = icmp eq i32 %20, 0
store i32 %18, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_13, label LBL_10
LBL_10:
%22 = icmp eq i32 %18, 3
%23 = icmp eq i1 %22, false
store i32 4, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_11, label LBL_13
LBL_11:
%24 = icmp eq i32 %18, 4
%25 = icmp eq i1 %24, false
store i32 3, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_12, label LBL_13
LBL_12:
call void @exit(i32 1)
unreachable
LBL_13:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64 5, i64 8)
%27 = zext i32 %sv_0.0.reload to i64
%28 = call i64 @FUNC(i64 0, i64 %27)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%29 = add i64 %2, 8
%30 = call i64 @FUNC(i64 5, i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_16, label LBL_15
LBL_15:
%34 = add i64 %2, 20
%35 = inttoptr i64 %34 to i32*
store i32 0, i32* %35, align 4
br label LBL_16
LBL_16:
%36 = and i64 %sv_0.1.reload, 4294967295
%37 = call i64 @FUNC(i64 %2, i64 %36)
store i64 %37, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %18, { 2, 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 0, 4, 5, 6 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder i32 4, { 1, 0, 2 }
uselistorder void (i32)* @exit, { 2, 1, 0 }
uselistorder i32 0, { 3, 4, 2, 1, 5, 6, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_17, { 1, 0, 2 }
uselistorder label LBL_14, { 2, 3, 1, 0 }
} | 1 |
BinRealVul | kdc_process_for_user_3653 | kdc_process_for_user | define i64 @FUNC(i64 %arg1, i32* %arg2, i64* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%2 = trunc i64 %1 to i32
store i32 %2, i32* %sv_1, align 4
%3 = call i64 @FUNC(i32* nonnull %sv_1, i64* nonnull %sv_0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
store i64 ptrtoint ([19 x i8]* @gv_0 to i64), i64* %arg5, align 8
%6 = and i64 %3, 4294967295
store i64 %6, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%7 = ptrtoint i64* %arg3 to i64
%8 = load i64, i64* %sv_0, align 8
%9 = load i64, i64* @gv_1, align 8
%10 = call i64 @FUNC(i64 %9, i64 %7, i64 %8)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
store i64 ptrtoint ([26 x i8]* @gv_2 to i64), i64* %arg5, align 8
%13 = load i64, i64* %sv_0, align 8
%14 = load i64, i64* @gv_1, align 8
%15 = call i64 @FUNC(i64 %14, i64 %13)
%16 = and i64 %10, 4294967295
store i64 %16, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%17 = call i64* @calloc(i32 1, i32 8)
%18 = ptrtoint i64* %17 to i64
store i64 %18, i64* %arg4, align 8
%19 = icmp eq i64* %arg3, null
%20 = icmp eq i1 %19, false
%21 = load i64, i64* %sv_0, align 8
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%22 = load i64, i64* @gv_1, align 8
%23 = call i64 @FUNC(i64 %22, i64 %21)
store i64 12, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%24 = inttoptr i64 %21 to i64*
%25 = load i64, i64* %24, align 8
store i64 %25, i64* %arg3, align 8
store i64 0, i64* %24, align 8
%26 = load i64, i64* %sv_0, align 8
%27 = load i64, i64* @gv_1, align 8
%28 = call i64 @FUNC(i64 %27, i64 %26)
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 %21, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @krb5_free_pa_for_user, { 2, 1, 0 }
} | 0 |
BinRealVul | raptor_valid_xml_ID_4278 | raptor_valid_xml_ID | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%0 = inttoptr i64 %arg2 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = load i8, i8* %0, align 1
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = ptrtoint i64* %sv_2 to i64
store i32 0, i32* %storemerge3.reg2mem
store i32 %1, i32* %sv_1.02.reg2mem
store i64 %arg2, i64* %sv_0.01.reg2mem
br label LBL_2
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%7 = call i64 @FUNC(i64 0, i64 %sv_0.01.reload, i32 %sv_1.02.reload)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp slt i32 %sv_1.02.reload, %8
%or.cond = or i1 %9, %10
br i1 %or.cond, label LBL_3, label LBL_4
LBL_3:
%11 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%12 = call i64 @FUNC(i64 %6, i64 %sv_0.01.reload, i32 %sv_1.02.reload)
%13 = icmp eq i32 %storemerge3.reload, 0
%14 = icmp eq i1 %13, false
%15 = load i64, i64* %sv_2, align 8
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_7, label LBL_8
LBL_6:
%20 = call i64 @FUNC(i64 %15)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_7, label LBL_8
LBL_7:
%24 = trunc i64 %12 to i32
%25 = mul i64 %12, 4294967296
%sext = add i64 %25, -4294967296
%26 = ashr exact i64 %sext, 32
%27 = add i64 %sv_0.01.reload, 1
%28 = add i64 %27, %26
%29 = sub i32 %sv_1.02.reload, %24
%30 = add i32 %storemerge3.reload, 1
%31 = inttoptr i64 %28 to i8*
%32 = load i8, i8* %31, align 1
%33 = icmp eq i8 %32, 0
%34 = icmp eq i1 %33, false
store i32 %30, i32* %storemerge3.reg2mem
store i32 %29, i32* %sv_1.02.reg2mem
store i64 %28, i64* %sv_0.01.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %34, label LBL_2, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %sv_1.02.reload, { 1, 2, 0, 3 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4 }
uselistorder i64 (i64, i64, i32)* @raptor_utf8_to_unicode_char, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i64 1, { 0, 5, 1, 3, 4, 2 }
uselistorder i1 false, { 4, 1, 2, 3, 0 }
uselistorder i8 0, { 2, 0, 1 }
uselistorder label LBL_8, { 2, 1, 0, 4, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | evbuffer_add_19034 | evbuffer_add | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.pre-phi7.reg2mem = alloca i64
%.pre-phi11.reg2mem = alloca i64*
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_15, label LBL_1
LBL_1:
%6 = icmp eq i64* %arg1, null
%7 = icmp eq i1 %6, false
store i32 %3, i32* %.reg2mem
store i64 %0, i64* %sv_2.0.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %arg3)
%9 = icmp eq i64 %8, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_15, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0, i64 %8)
%.pre = add i64 %8, 24
%.pre2 = inttoptr i64 %.pre to i32*
%.pre12 = load i32, i32* %.pre2, align 4
store i32 %.pre12, i32* %.reg2mem
store i64 %8, i64* %sv_2.0.reg2mem
br label LBL_4
LBL_4:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%11 = urem i32 %.reload, 2
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%.pre4 = inttoptr i64 %sv_2.0.reload to i64*
store i32 0, i32* %sv_1.0.reg2mem
br i1 %13, label LBL_9, label LBL_5
LBL_5:
%14 = load i64, i64* %.pre4, align 8
%15 = add i64 %sv_2.0.reload, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = sub i64 %14, %17
%19 = add i64 %sv_2.0.reload, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = sub i64 %18, %21
%23 = icmp ult i64 %22, %arg3
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = add i64 %sv_2.0.reload, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %21, %17
%28 = add i64 %27, %26
%29 = inttoptr i64 %28 to i64*
%30 = inttoptr i64 %arg2 to i64*
%31 = trunc i64 %arg3 to i32
%32 = call i64* @memcpy(i64* %29, i64* %30, i32 %31)
%33 = load i64, i64* %20, align 8
%34 = add i64 %33, %arg3
store i64 %34, i64* %20, align 8
%35 = add i64 %0, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %37, %arg3
store i64 %38, i64* %36, align 8
%39 = add i64 %0, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = add i64 %41, %arg3
store i64 %42, i64* %40, align 8
br label LBL_14
LBL_7:
%43 = trunc i64 %22 to i32
%44 = call i64 @FUNC(i64 %sv_2.0.reload, i64 %arg3)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
store i32 %43, i32* %sv_1.0.reg2mem
br i1 %46, label LBL_9, label LBL_8
LBL_8:
%47 = call i64 @FUNC(i64 %sv_2.0.reload)
%48 = add i64 %sv_2.0.reload, 32
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = load i64, i64* %20, align 8
%52 = add i64 %51, %50
%53 = inttoptr i64 %52 to i64*
%54 = inttoptr i64 %arg2 to i64*
%55 = trunc i64 %arg3 to i32
%56 = call i64* @memcpy(i64* %53, i64* %54, i32 %55)
%57 = load i64, i64* %20, align 8
%58 = add i64 %57, %arg3
store i64 %58, i64* %20, align 8
%59 = add i64 %0, 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = add i64 %61, %arg3
store i64 %62, i64* %60, align 8
%63 = add i64 %0, 16
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = add i64 %65, %arg3
store i64 %66, i64* %64, align 8
br label LBL_14
LBL_9:
%67 = load i64, i64* %.pre4, align 8
%68 = icmp ult i64 %67, 2049
%69 = zext i1 %68 to i64
%spec.select = shl i64 %67, %69
%70 = icmp ult i64 %spec.select, %arg3
%sv_3.1 = select i1 %70, i64 %arg3, i64 %spec.select
%71 = call i64 @FUNC(i64 %sv_3.1)
%72 = icmp eq i64 %71, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %72, label LBL_15, label LBL_10
LBL_10:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%73 = icmp eq i32 %sv_1.0.reload, 0
br i1 %73, label LBL_10.LBL_13_crit_edge, label LBL_12
LBL_11:
%.pre8 = add i64 %0, 16
%.pre10 = inttoptr i64 %.pre8 to i64*
store i64* %.pre10, i64** %.pre-phi11.reg2mem
store i64 0, i64* %.pre-phi7.reg2mem
br label LBL_13
LBL_12:
%74 = add i64 %sv_2.0.reload, 32
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = add i64 %sv_2.0.reload, 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = add i64 %sv_2.0.reload, 16
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = add i64 %79, %76
%84 = add i64 %83, %82
%85 = inttoptr i64 %84 to i64*
%86 = inttoptr i64 %arg2 to i64*
%87 = call i64* @memcpy(i64* %85, i64* %86, i32 %sv_1.0.reload)
%88 = load i64, i64* %81, align 8
%89 = sext i32 %sv_1.0.reload to i64
%90 = add i64 %88, %89
store i64 %90, i64* %81, align 8
%91 = add i64 %0, 8
%92 = inttoptr i64 %91 to i64*
%93 = load i64, i64* %92, align 8
%94 = add i64 %93, %89
store i64 %94, i64* %92, align 8
%95 = add i64 %0, 16
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = add i64 %97, %89
store i64 %98, i64* %96, align 8
store i64* %96, i64** %.pre-phi11.reg2mem
store i64 %89, i64* %.pre-phi7.reg2mem
br label LBL_13
LBL_13:
%.pre-phi7.reload = load i64, i64* %.pre-phi7.reg2mem
%.pre-phi11.reload = load i64*, i64** %.pre-phi11.reg2mem
%99 = add i64 %.pre-phi7.reload, %arg2
%100 = sub i64 %arg3, %.pre-phi7.reload
%101 = add i64 %71, 32
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = inttoptr i64 %103 to i64*
%105 = inttoptr i64 %99 to i64*
%106 = trunc i64 %100 to i32
%107 = call i64* @memcpy(i64* %104, i64* %105, i32 %106)
%108 = add i64 %71, 16
%109 = inttoptr i64 %108 to i64*
store i64 %100, i64* %109, align 8
%110 = call i64 @FUNC(i64 %0, i64 %71)
%111 = load i64, i64* %.pre-phi11.reload, align 8
%112 = add i64 %111, %100
store i64 %112, i64* %.pre-phi11.reload, align 8
br label LBL_14
LBL_14:
%113 = call i64 @FUNC(i64 %0)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_15
LBL_15:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %81, { 1, 0, 2 }
uselistorder i32 %sv_1.0.reload, { 2, 0, 1 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %20, { 3, 2, 4, 1, 0, 5 }
uselistorder i64 %sv_2.0.reload, { 2, 3, 4, 6, 7, 5, 8, 0, 1, 9 }
uselistorder i64 %0, { 9, 10, 7, 8, 1, 5, 6, 3, 4, 2, 0, 11 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 3, 2, 1 }
uselistorder i64 16, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i64 (i64, i64)* @evbuffer_chain_insert, { 1, 0 }
uselistorder i64 (i64)* @evbuffer_chain_new, { 1, 0 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %arg3, { 13, 6, 7, 0, 1, 2, 9, 11, 3, 4, 5, 12, 10, 8 }
uselistorder i64 %arg2, { 0, 3, 2, 1 }
uselistorder label LBL_15, { 3, 0, 1, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | bch_bio_split_4139 | bch_bio_split | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.015.reg2mem = alloca i32
%sv_4.016.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%4 = icmp slt i32 %3, 1
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = load i64, i64* @gv_0, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = ashr exact i64 %sext, 32
%11 = call i64 @FUNC(i64 %2)
%12 = icmp ult i64 %10, %11
store i64 %2, i64* %rax.0.reg2mem
br i1 %12, label LBL_1, label LBL_17
LBL_1:
%13 = ptrtoint i64* %arg4 to i64
%14 = mul i32 %3, 512
%15 = icmp eq i64 %9, 0
%16 = and i32 %arg3, -3
%spec.select = select i1 %15, i32 %arg3, i32 %16
%17 = add i64 %2, 32
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = urem i32 %19, 2
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_2, label LBL_4
LBL_2:
%22 = add i64 %2, 36
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
store i32 0, i32* %sv_2.1.reg2mem
store i32 0, i32* %sv_1.1.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_13, label LBL_3
LBL_3:
%26 = trunc i64 %1 to i32
%27 = add i64 %2, 48
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i32 %14, i32* %sv_3.015.reg2mem
br label LBL_5
LBL_4:
%29 = zext i32 %spec.select to i64
%30 = call i64 @FUNC(i64 %29, i64 1, i64 %13)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i32 0, i32* %sv_2.1.reg2mem
store i32 0, i32* %sv_1.1.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_13, label LBL_17
LBL_5:
%sv_3.015.reload = load i32, i32* %sv_3.015.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%33 = icmp eq i32 %sv_3.015.reload, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_8, label LBL_6
LBL_6:
%35 = trunc i64 %indvars.iv.reload to i32
%36 = sub i32 %35, %26
%37 = zext i32 %36 to i64
%38 = zext i32 %spec.select to i64
%39 = call i64 @FUNC(i64 %38, i64 %37, i64 %13)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 0, i64* %rax.0.reg2mem
br i1 %41, label LBL_7, label LBL_17
LBL_7:
%42 = mul i32 %36, 16
%43 = call i64 @FUNC(i64 %2)
%44 = add i64 %39, 48
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = inttoptr i64 %46 to i64*
%48 = inttoptr i64 %43 to i64*
%49 = call i64* @memcpy(i64* %47, i64* %48, i32 %42)
store i32 %35, i32* %sv_2.1.reg2mem
store i32 %36, i32* %sv_1.1.reg2mem
store i64 %39, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_8:
%sv_4.016.reload = load i64, i64* %sv_4.016.reg2mem
%50 = zext i32 %sv_3.015.reload to i64
%51 = add i64 %sv_4.016.reload, 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = icmp ugt i64 %53, %50
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_11, label LBL_9
LBL_9:
%56 = trunc i64 %indvars.iv.reload to i32
%57 = sub i32 %56, %26
%58 = add i32 %57, 1
%59 = zext i32 %58 to i64
%60 = zext i32 %spec.select to i64
%61 = call i64 @FUNC(i64 %60, i64 %59, i64 %13)
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
store i64 0, i64* %rax.0.reg2mem
br i1 %63, label LBL_10, label LBL_17
LBL_10:
%64 = mul i32 %58, 16
%65 = call i64 @FUNC(i64 %2)
%66 = add i64 %61, 48
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = inttoptr i64 %68 to i64*
%70 = inttoptr i64 %65 to i64*
%71 = call i64* @memcpy(i64* %69, i64* %70, i32 %64)
%72 = load i64, i64* %67, align 8
%73 = zext i32 %57 to i64
%74 = mul i64 %73, 16
%75 = or i64 %74, 8
%76 = add i64 %72, %75
%77 = inttoptr i64 %76 to i64*
store i64 %50, i64* %77, align 8
%78 = inttoptr i64 %sv_4.016.reload to i64*
%79 = load i64, i64* %78, align 8
%80 = add i64 %79, %50
store i64 %80, i64* %78, align 8
%81 = load i64, i64* %52, align 8
%82 = sub i64 %81, %50
store i64 %82, i64* %52, align 8
store i32 %56, i32* %sv_2.1.reg2mem
store i32 %58, i32* %sv_1.1.reg2mem
store i64 %61, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%83 = trunc i64 %53 to i32
%84 = sub i32 %sv_3.015.reload, %83
%85 = trunc i64 %indvars.iv.reload to i32
%86 = add i32 %85, 1
%87 = load i64, i64* %28, align 8
%88 = zext i32 %86 to i64
%89 = mul i64 %88, 16
%90 = add i64 %87, %89
%91 = icmp ult i32 %86, %24
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %90, i64* %sv_4.016.reg2mem
store i32 %84, i32* %sv_3.015.reg2mem
br i1 %91, label LBL_5, label LBL_12
LBL_12:
%92 = sub i32 %85, %26
store i32 %86, i32* %sv_2.1.reg2mem
store i32 %92, i32* %sv_1.1.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%93 = add i64 %2, 8
%94 = inttoptr i64 %93 to i64*
%95 = load i64, i64* %94, align 8
%96 = add i64 %sv_0.0.reload, 8
%97 = inttoptr i64 %96 to i64*
store i64 %95, i64* %97, align 8
%98 = add i64 %2, 16
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = add i64 %sv_0.0.reload, 16
%102 = inttoptr i64 %101 to i64*
store i64 %100, i64* %102, align 8
%sext4 = mul i64 %arg2, 2199023255552
%103 = ashr exact i64 %sext4, 32
%104 = add i64 %sv_0.0.reload, 24
%105 = inttoptr i64 %104 to i64*
store i64 %103, i64* %105, align 8
%106 = load i32, i32* %18, align 4
%107 = add i64 %sv_0.0.reload, 32
%108 = inttoptr i64 %107 to i32*
store i32 %106, i32* %108, align 4
%109 = add i64 %sv_0.0.reload, 36
%110 = inttoptr i64 %109 to i32*
store i32 %sv_1.1.reload, i32* %110, align 4
%111 = add i64 %sv_0.0.reload, 40
%112 = inttoptr i64 %111 to i32*
store i32 %sv_1.1.reload, i32* %112, align 4
%113 = load i64, i64* %99, align 8
%114 = add i64 %113, %10
store i64 %114, i64* %99, align 8
%115 = add i64 %2, 24
%116 = inttoptr i64 %115 to i64*
%117 = load i64, i64* %116, align 8
%118 = sext i32 %14 to i64
%119 = sub i64 %117, %118
store i64 %119, i64* %116, align 8
%120 = bitcast i64* %arg1 to i32*
store i32 %sv_2.1.reload, i32* %120, align 4
%121 = call i64 @FUNC(i64 %2)
%122 = trunc i64 %121 to i32
%123 = icmp eq i32 %122, 0
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br i1 %123, label LBL_17, label LBL_14
LBL_14:
%124 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %2, i32 %spec.select)
%125 = trunc i64 %124 to i32
%126 = icmp eq i32 %125, 0
br i1 %126, label LBL_16, label LBL_15
LBL_15:
%127 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
%128 = call i64 @FUNC(i64 %sv_0.0.reload)
%129 = call i64 @FUNC(i64 %sv_0.0.reload, i64 0, i64 %128)
%130 = call i64 @FUNC(i64 %2)
%131 = call i64 @FUNC(i64 %sv_0.0.reload)
%132 = call i64 @FUNC(i64 %2, i64 %131, i64 %130)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %99, { 1, 0, 2 }
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 10, 11, 12, 9, 8, 0, 7, 6, 5, 4, 3, 2 }
uselistorder i64* %52, { 1, 0, 2 }
uselistorder i64 %50, { 1, 0, 2, 3 }
uselistorder i64 %sv_4.016.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 1, 3, 2 }
uselistorder i32 %sv_3.015.reload, { 2, 1, 0 }
uselistorder i32 %spec.select, { 1, 0, 2, 3 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %13, { 2, 1, 0 }
uselistorder i64 %2, { 2, 3, 4, 5, 6, 7, 8, 9, 1, 10, 11, 12, 0, 13 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.016.reg2mem, { 1, 0 }
uselistorder i32* %sv_3.015.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 5, 4, 3, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 5, 4, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 5, 4, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 7, 1, 3, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @bio_integrity_trim, { 1, 0 }
uselistorder i64 16, { 2, 3, 0, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64)* @bio_iovec, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @bio_alloc_bioset, { 2, 1, 0 }
uselistorder i64 48, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 (i64)* @bio_sectors, { 3, 2, 1, 0 }
uselistorder i64 32, { 2, 0, 3, 1 }
uselistorder label LBL_17, { 1, 6, 0, 2, 3, 4, 5 }
uselistorder label LBL_13, { 0, 3, 4, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
reposvul_c_test | udf_put_super_43 | udf_put_super | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = 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 = call i64 @FUNC(i64 %7)
br label LBL_2
LBL_2:
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_5, label LBL_3
LBL_3:
%14 = add i64 %5, 16
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_4
LBL_4:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%16 = load i64, i64* %15, align 8
%17 = mul i64 %.reload, 8
%18 = add i64 %16, %17
%19 = call i64 @FUNC(i64 %18)
%20 = add i32 %storemerge1.reload, 1
%21 = load i32, i32* %11, align 4
%22 = zext i32 %21 to i64
%23 = sext i32 %20 to i64
%24 = icmp slt i64 %23, %22
store i64 %23, i64* %.reg2mem
store i32 %20, i32* %storemerge1.reg2mem
br i1 %24, label LBL_4, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %2, i64 1)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = add i64 %5, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
br label LBL_7
LBL_7:
%32 = urem i64 %1, 2
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %2)
br label LBL_9
LBL_9:
%36 = add i64 %5, 32
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = add i64 %5, 16
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42)
%44 = load i64, i64* %4, align 8
%45 = call i64 @FUNC(i64 %44)
store i64 0, i64* %4, align 8
ret i64 %2
uselistorder i64 %5, { 3, 2, 1, 0, 4, 5 }
uselistorder i64* %4, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | vc1_inv_trans_4x4_dc_c_16996 | vc1_inv_trans_4x4_dc_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.04.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = trunc i64 %1 to i32
%4 = mul i32 %3, 17
%5 = add i32 %4, 4
%6 = ashr i32 %5, 3
%7 = mul i32 %6, 17
%8 = add i32 %7, 64
%9 = ashr i32 %8, 7
%10 = sext i32 %9 to i64
%11 = add i64 %10, ptrtoint (i8** @gv_0 to i64)
%12 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge5.reg2mem
store i64 %2, i64* %sv_0.04.reg2mem
br label LBL_1
LBL_1:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%13 = inttoptr i64 %sv_0.04.reload to i8*
%14 = load i8, i8* %13, align 1
%15 = zext i8 %14 to i64
%16 = add i64 %11, %15
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
store i8 %18, i8* %13, align 1
%19 = add i64 %sv_0.04.reload, 1
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = add i64 %11, %22
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
store i8 %25, i8* %20, align 1
%26 = add i64 %sv_0.04.reload, 2
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i64
%30 = add i64 %11, %29
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
store i8 %32, i8* %27, align 1
%33 = add i64 %sv_0.04.reload, 3
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = zext i8 %35 to i64
%37 = add i64 %11, %36
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
store i8 %39, i8* %34, align 1
%40 = add i64 %sv_0.04.reload, %12
%41 = add nuw nsw i32 %storemerge5.reload, 1
%exitcond = icmp eq i32 %41, 4
store i32 %41, i32* %storemerge5.reg2mem
store i64 %40, i64* %sv_0.04.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %12
uselistorder i64 %sv_0.04.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | ipv6_hop_jumbo_7039 | ipv6_hop_jumbo | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = add nsw i64 %0, 1
%4 = add i64 %3, %1
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp eq i8 %6, 4
%8 = urem i64 %arg2, 4
%9 = icmp eq i64 %8, 2
%or.cond = icmp eq i1 %9, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%10 = zext i8 %6 to i64
%11 = call i64 @FUNC(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_0, i64 0, i64 0), i64 %10)
%12 = call i64 @FUNC(i64 %arg1)
%13 = call i64 @FUNC(i64 %2, i64 %12, i64 1)
br label LBL_9
LBL_2:
%14 = add nsw i64 %0, 2
%15 = add i64 %1, %14
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = call i32 @ntohl(i32 %17)
%19 = icmp ult i32 %18, 65536
br i1 %19, label LBL_3, label LBL_4
LBL_3:
%20 = call i64 @FUNC(i64 %arg1)
%21 = call i64 @FUNC(i64 %2, i64 %20, i64 1)
%22 = and i64 %14, 4294967295
%23 = call i64 @FUNC(i64 %arg1, i64 3, i64 %22)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%24 = call i64 @FUNC(i64 %arg1)
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = call i64 @FUNC(i64 %arg1)
%29 = call i64 @FUNC(i64 %2, i64 %28, i64 1)
%30 = and i64 %0, 4294967295
%31 = call i64 @FUNC(i64 %arg1, i64 3, i64 %30)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%32 = zext i32 %18 to i64
%33 = add i64 %arg1, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, -4
%38 = icmp ult i64 %37, %32
br i1 %38, label LBL_7, label LBL_8
LBL_7:
%39 = call i64 @FUNC(i64 %arg1)
%40 = call i64 @FUNC(i64 %2, i64 %39, i64 2)
br label LBL_9
LBL_8:
%41 = add i32 %18, 4
%42 = zext i32 %41 to i64
%43 = call i64 @FUNC(i64 %arg1, i64 %42)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 1, i64* %rax.0.reg2mem
br i1 %46, label LBL_9, label LBL_10
LBL_9:
%47 = call i64 @FUNC(i64 %arg1)
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 %18, { 1, 0, 2 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64, i64, i64)* @icmpv6_param_prob, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @IP6_INC_STATS_BH, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @ipv6_skb_idev, { 3, 2, 1, 0 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i32 1, { 2, 3, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 8, 4, 3, 2, 1, 0, 7, 5, 6, 9, 10, 11 }
uselistorder label LBL_10, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | el_enum_attr_9179 | el_enum_attr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_1.12.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%1 = icmp slt i32 %0, 0
br i1 %1, label LBL_0.LBL_23.loopexit_crit_edge, label LBL_2
LBL_1:
%.pre5 = bitcast i64* %sv_3 to i8*
store i8* %.pre5, i8** %.pre-phi.reg2mem
br label LBL_23
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %sv_3 to i8*
%4 = bitcast i64* %sv_2 to i8*
store i32 0, i32* %storemerge3.reg2mem
store i64 %2, i64* %sv_1.12.reg2mem
br label LBL_3
LBL_3:
%sv_1.12.reload = load i64, i64* %sv_1.12.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%5 = call i64 @FUNC(i64* nonnull %sv_3, i64 %sv_1.12.reload, i64 256)
%6 = call i8* @strchr(i8* nonnull %3, i32 10)
%7 = icmp eq i8* %6, null
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%8 = call i8* @strchr(i8* nonnull %3, i32 10)
store i8 0, i8* %8, align 1
br label LBL_5
LBL_5:
%9 = call i8* @strchr(i8* nonnull %3, i32 13)
%10 = icmp eq i8* %9, null
br i1 %10, label LBL_7, label LBL_6
LBL_6:
%11 = call i8* @strchr(i8* nonnull %3, i32 13)
store i8 0, i8* %11, align 1
br label LBL_7
LBL_7:
%12 = call i32 @strcmp(i8* nonnull %3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
store i8* %3, i8** %.pre-phi.reg2mem
br i1 %13, label LBL_23, label LBL_8
LBL_8:
%14 = inttoptr i64 %sv_1.12.reload to i8*
%15 = call i8* @strchr(i8* %14, i32 10)
%16 = icmp eq i8* %15, null
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_9, label LBL_10
LBL_9:
%18 = ptrtoint i8* %15 to i64
store i64 %18, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_10:
store i64 0, i64* %sv_3, align 8
store i8* %3, i8** %.pre-phi.reg2mem
br label LBL_23
LBL_11:
%19 = add i64 %sv_1.0.reload, 1
store i64 %19, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_12:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%20 = inttoptr i64 %sv_1.0.reload to i8*
%21 = load i8, i8* %20, align 1
switch i8 %21, label LBL_13 [
i8 10, label LBL_11
i8 13, label LBL_11
]
LBL_13:
%22 = call i8* @strchr(i8* nonnull %3, i32 58)
%23 = icmp eq i8* %22, null
store i32 %storemerge3.reload, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_22, label LBL_14
LBL_14:
%24 = call i8* @strcpy(i8* nonnull %4, i8* nonnull %3)
%25 = call i8* @strchr(i8* nonnull %4, i32 58)
store i8 0, i8* %25, align 1
%26 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_21, label LBL_15
LBL_15:
%30 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_21, label LBL_16
LBL_16:
%34 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0))
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_21, label LBL_17
LBL_17:
%38 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0))
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_21, label LBL_18
LBL_18:
%42 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0))
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_21, label LBL_19
LBL_19:
%46 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_6, i64 0, i64 0))
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_21, label LBL_20
LBL_20:
%50 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0))
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
store i32 %storemerge3.reload, i32* %sv_0.0.reg2mem
br i1 %52, label LBL_22, label LBL_21
LBL_21:
%53 = add i32 %storemerge3.reload, -1
store i32 %53, i32* %sv_0.0.reg2mem
br label LBL_22
LBL_22:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%54 = add i32 %sv_0.0.reload, 1
%55 = icmp sgt i32 %54, %0
store i32 %54, i32* %storemerge3.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.12.reg2mem
store i8* %3, i8** %.pre-phi.reg2mem
br i1 %55, label LBL_23, label LBL_3
LBL_23:
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
%56 = bitcast i64* %arg3 to i8*
store i8 0, i8* %56, align 1
%57 = bitcast i64* %arg4 to i8*
store i8 0, i8* %57, align 1
%58 = call i8* @strchr(i8* nonnull %.pre-phi.reload, i32 58)
%59 = ptrtoint i8* %58 to i64
%60 = icmp eq i8* %58, null
store i64 %59, i64* %rax.0.reg2mem
br i1 %60, label LBL_25, label LBL_24
LBL_24:
%61 = ptrtoint i64* %sv_3 to i64
%62 = call i64 @FUNC(i64* nonnull %arg3, i64 %61, i64 256)
%63 = call i8* @strchr(i8* %56, i32 58)
store i8 0, i8* %63, align 1
%64 = call i8* @strchr(i8* nonnull %.pre-phi.reload, i32 58)
%65 = ptrtoint i8* %64 to i64
%66 = add i64 %65, 2
%67 = call i64 @FUNC(i64* nonnull %arg4, i64 %66, i64 256)
store i64 %67, i64* %rax.0.reg2mem
br label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.0.reload, { 2, 0, 1 }
uselistorder i8* %15, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 2, 0, 1 }
uselistorder i8* %3, { 0, 5, 6, 2, 1, 7, 4, 8, 3, 9 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64* %sv_3, { 3, 4, 2, 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64 (i64*, i8*)* @strieq, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 58, { 2, 3, 4, 0, 1 }
uselistorder i8* null, { 4, 0, 1, 2, 3 }
uselistorder i8* (i8*, i32)* @strchr, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*, i64, i64)* @strlcpy, { 2, 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 10 }
uselistorder label LBL_23, { 0, 3, 1, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | virtio_balloon_device_realize_3463 | virtio_balloon_device_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 2, i64 0)
%2 = load i64, i64* @gv_1, align 8
%3 = load i64, i64* @gv_2, align 8
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0))
%10 = call i64 @FUNC(i64 %0)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = load i64, i64* @gv_4, align 8
%12 = call i64 @FUNC(i64 %0, i64 128, i64 %11)
store i64 %12, i64* %arg1, align 8
%13 = load i64, i64* @gv_4, align 8
%14 = call i64 @FUNC(i64 %0, i64 128, i64 %13)
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = load i64, i64* @gv_5, align 8
%18 = call i64 @FUNC(i64 %0, i64 128, i64 %17)
%19 = add i64 %0, 16
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = call i64 @FUNC(i64 %0)
%22 = load i64, i64* @gv_6, align 8
%23 = load i64, i64* @gv_7, align 8
%24 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 4294967295, i64 1, i64 %23, i64 %22)
%25 = load i64, i64* @gv_8, align 8
%26 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_9, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_10, i64 0, i64 0), i64 %25, i64 0, i64 0)
%27 = load i64, i64* @gv_11, align 8
%28 = load i64, i64* @gv_12, align 8
%29 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_14, i64 0, i64 0), i64 %28, i64 %27, i64 0)
store i64 %29, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 3, 2, 1, 4, 5, 6, 7, 8, 9, 0, 10, 11 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @object_property_add, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 }
} | 0 |
BinRealVul | qemu_chr_fe_write_all_15136 | qemu_chr_fe_write_all | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64*
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %arg3 to i32
%4 = icmp sgt i32 %3, 0
store i32 0, i32* %sv_1.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_10
LBL_1:
%5 = trunc i64 %0 to i32
%6 = icmp eq i32 %5, -1
%7 = icmp eq i1 %6, false
%8 = icmp slt i32 %5, 1
store i32 0, i32* %sv_1.04.reg2mem
br label LBL_7
LBL_2:
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 11
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 100)
br label LBL_4
LBL_4:
%14 = call i32* @__errno_location()
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 11
br i1 %16, label LBL_2, label LBL_5
LBL_5:
br i1 %8, label LBL_5.LBL_10_crit_edge, label LBL_6
LBL_6:
%17 = add i32 %sv_1.04.reload, %5
%18 = icmp slt i32 %17, %3
store i32 %17, i32* %sv_1.04.reg2mem
br i1 %18, label LBL_7, label LBL_9
LBL_7:
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_8:
%19 = and i64 %0, 4294967295
%20 = inttoptr i64 %19 to i64*
store i32 %sv_1.04.reload, i32* %sv_1.0.lcssa.reg2mem
store i64* %20, i64** %sv_0.1.reg2mem
br label LBL_10
LBL_9:
%21 = and i64 %0, 4294967295
%22 = inttoptr i64 %21 to i64*
store i32 %17, i32* %sv_1.0.lcssa.reg2mem
store i64* %22, i64** %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i64*, i64** %sv_0.1.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%23 = call i64 @FUNC(i64 %1)
%24 = ptrtoint i64* %sv_0.1.reload to i64
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
%28 = zext i32 %sv_1.0.lcssa.reload to i64
%29 = and i64 %24, 4294967295
%storemerge = select i1 %27, i64 %28, i64 %29
ret i64 %storemerge
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 0, { 3, 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | cdxl_decode_rgb_3829 | cdxl_decode_rgb | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = call i64* @memset(i64* %4, i32 0, i32 256)
%6 = call i64 @FUNC(i64 %0, i64 %3)
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %0, i64 %10, i64 %0)
ret i64 %11
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1, 3, 4 }
} | 0 |
BinRealVul | ovl_get_acl_12801 | ovl_get_acl | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 4294967294)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%5 = inttoptr i64 %1 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
%. = select i1 %10, i64 %1, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | capable_wrt_inode_uidgid_13731 | capable_wrt_inode_uidgid | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = and i64 %arg2, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %2, i64 %7)
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg1 to i64
%12 = add i64 %11, 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 %2, i64 %15)
%17 = trunc i64 %16 to i8
%18 = icmp eq i8 %17, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %18, label LBL_3, label LBL_4
LBL_3:
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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | init_proc_power5plus_18630 | init_proc_power5plus | 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 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%5 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%6 = call i64 @FUNC(i64 %0, i64 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%7 = call i64 @FUNC(i64 %0, i64 4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%8 = call i64 @FUNC(i64 %0, i64 5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %0, i64 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%11 = call i64 @FUNC(i64 %0, i64 7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%12 = call i64 @FUNC(i64 %0, i64 8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 0, i64 4198745)
%13 = call i64 @FUNC(i64 %0, i64 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_8, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%14 = call i64 @FUNC(i64 %0, i64 10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%15 = call i64 @FUNC(i64 %0, i64 11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_10, i64 0, i64 0), i64 4198724, i64 4198731, i64 4198724)
%16 = bitcast i64* %arg1 to i32*
store i32 64, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0)
%18 = add i64 %0, 4
%19 = inttoptr i64 %18 to i32*
store i32 128, i32* %19, align 4
%20 = add i64 %0, 8
%21 = inttoptr i64 %20 to i32*
store i32 128, i32* %21, align 4
%22 = call i64 @FUNC(i64 %0)
%23 = call i64 @FUNC(i64 %0, i64 65536)
ret i64 %23
uselistorder i64 %0, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 19 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @spr_register, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4198724, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
} | 1 |
BinRealVul | nbd_client_co_flush_16477 | nbd_client_co_flush | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1)
store i64 2, i64* %sv_1, align 8
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = urem i32 %2, 2
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_5
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%7 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1, i64 0)
%8 = icmp slt i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = trunc i64 %7 to i32
%11 = sub i32 0, %10
store i32 %11, i32* %sv_0, align 4
br label LBL_4
LBL_3:
%12 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i32* nonnull %sv_0, i64 0)
br label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1)
%14 = load i32, i32* %sv_0, align 4
%15 = sub i32 0, %14
%16 = zext i32 %15 to i64
store i64 %16, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 4, 3, 2, 1, 0, 5 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | iniparser_getlongint_12954 | iniparser_getlongint | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 %arg3, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = inttoptr i64 %2 to i8*
%6 = call i32 @strtol(i8* %5, i8** null, i32 0)
%7 = sext i32 %6 to i64
store i64 %7, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | tiff_unpack_strip_7495 | tiff_unpack_strip | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i64* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.4.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rcx.3.ph.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i64
%rcx.3.ph.be.reg2mem = alloca i64
%sv_1.0.ph.be.reg2mem = alloca i32
%sv_0.0.ph.be.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_2.024.reg2mem = alloca i64
%sv_0.226.reg2mem = alloca i64
%rcx.529.reg2mem = alloca i64
%storemerge30.reg2mem = alloca i32
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %arg5 to i32
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %3, 0
%8 = icmp slt i32 %3, 0
%9 = icmp eq i1 %8, false
%10 = icmp eq i1 %7, false
%11 = icmp eq i1 %9, %10
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_1, label LBL_37
LBL_1:
%12 = ptrtoint i64* %arg4 to i64
%13 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg5, 4294967296
%14 = ashr exact i64 %sext, 32
%15 = trunc i64 %1 to i32
%16 = mul i32 %6, %15
%17 = add i32 %16, 7
%18 = ashr i32 %17, 3
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp ne i32 %21, 1
%23 = icmp eq i32 %21, 2
%24 = icmp eq i1 %23, false
%or.cond = icmp eq i1 %22, %24
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%25 = trunc i64 %14 to i32
%26 = call i64 @FUNC(i64 %2, i64 %13, i32 %arg3, i64 %12, i32 %25, i32 %18)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_37
LBL_3:
%27 = icmp eq i32 %21, 3
%28 = icmp eq i1 %27, false
store i32 %21, i32* %.reg2mem
store i64 %12, i64* %rcx.0.reg2mem
store i64 %arg5, i64* %r8.0.reg2mem
br i1 %28, label LBL_7, label LBL_4
LBL_4:
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = and i64 %14, 4294967295
%33 = trunc i64 %14 to i32
%34 = call i64 @FUNC(i64 %31, i64 8, i64 %12, i32 %33, i64 0)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre = load i32, i32* %20, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %32, i64* %rcx.0.reg2mem
store i64 0, i64* %r8.0.reg2mem
br label LBL_7
LBL_6:
%38 = add i64 %2, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %40, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %32, i64 0, i64 %arg6)
%42 = and i64 %34, 4294967295
store i64 %42, i64* %rax.0.reg2mem
br label LBL_37
LBL_7:
%sext4 = mul i64 %arg6, 4294967296
%43 = ashr exact i64 %sext4, 32
%.reload = load i32, i32* %.reg2mem
%44 = and i32 %.reload, -2
%switch = icmp ne i32 %44, 4
%45 = icmp eq i32 %.reload, 6
%46 = icmp eq i1 %45, false
%or.cond10 = icmp eq i1 %switch, %46
br i1 %or.cond10, label LBL_8, label LBL_10
LBL_8:
%47 = trunc i64 %43 to i32
%48 = icmp sgt i32 %47, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %48, label LBL_9, label LBL_37
LBL_9:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%49 = add i64 %14, %12
%50 = sext i32 %18 to i64
%51 = add i64 %2, 32
%52 = inttoptr i64 %51 to i32*
%53 = icmp sgt i32 %17, 7
%54 = add i64 %2, 24
%55 = inttoptr i64 %54 to i64*
%56 = sext i32 %arg3 to i64
store i32 0, i32* %storemerge30.reg2mem
store i64 %rcx.0.reload, i64* %rcx.529.reg2mem
store i64 %12, i64* %sv_0.226.reg2mem
store i64 %13, i64* %sv_2.024.reg2mem
br label LBL_11
LBL_10:
%57 = and i64 %43, 4294967295
%58 = and i64 %14, 4294967295
%59 = call i64 @FUNC(i64 %2, i64 %13, i32 %arg3, i64 %12, i64 %58, i64 %57)
store i64 %59, i64* %rax.0.reg2mem
br label LBL_37
LBL_11:
%sv_0.226.reload = load i64, i64* %sv_0.226.reg2mem
%rcx.529.reload = load i64, i64* %rcx.529.reg2mem
%60 = sub i64 %sv_0.226.reload, %12
%61 = icmp sgt i64 %60, %14
br i1 %61, label LBL_12, label LBL_13
LBL_12:
%62 = add i64 %2, 16
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %64, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.529.reload, i64 %r8.0.reload, i64 %arg6)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_37
LBL_13:
%sv_2.024.reload = load i64, i64* %sv_2.024.reg2mem
%storemerge30.reload = load i32, i32* %storemerge30.reg2mem
%66 = load i32, i32* %20, align 4
%67 = icmp eq i32 %66, 8
store i64 %sv_0.226.reload, i64* %sv_0.0.ph.reg2mem
store i32 0, i32* %sv_1.0.ph.reg2mem
store i64 %rcx.529.reload, i64* %rcx.3.ph.reg2mem
br i1 %67, label LBL_32, label LBL_14
LBL_14:
%68 = icmp sgt i32 %66, 8
store i64 %sv_0.226.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.529.reload, i64* %rcx.4.reg2mem
br i1 %68, label LBL_36, label LBL_15
LBL_15:
%69 = icmp eq i32 %66, 3
br i1 %69, label LBL_34, label LBL_16
LBL_16:
%70 = icmp eq i32 %66, 7
%71 = icmp eq i1 %70, false
store i64 %sv_0.226.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.529.reload, i64* %rcx.4.reg2mem
br i1 %71, label LBL_36, label LBL_17
LBL_17:
%72 = sub i64 %49, %sv_0.226.reload
%73 = icmp slt i64 %72, %50
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %73, label LBL_37, label LBL_18
LBL_18:
%74 = load i32, i32* %52, align 4
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_19, label LBL_20
LBL_19:
store i64 0, i64* %indvars.iv.reg2mem
store i64 %rcx.529.reload, i64* %rcx.2.reg2mem
br i1 %53, label LBL_21, label LBL_22
LBL_20:
%77 = inttoptr i64 %sv_2.024.reload to i64*
%78 = inttoptr i64 %sv_0.226.reload to i64*
%79 = call i64* @memcpy(i64* %77, i64* %78, i32 %18)
store i64 %sv_0.226.reload, i64* %rcx.2.reg2mem
br label LBL_22
LBL_21:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%80 = add i64 %indvars.iv.reload, %sv_0.226.reload
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = zext i8 %82 to i64
%84 = mul i64 %83, 4
%85 = add i64 %84, ptrtoint (i32** @gv_2 to i64)
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = add i64 %indvars.iv.reload, %sv_2.024.reload
%89 = trunc i32 %87 to i8
%90 = inttoptr i64 %88 to i8*
store i8 %89, i8* %90, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%91 = icmp slt i64 %indvars.iv.next, %50
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %indvars.iv.reload, i64* %rcx.2.reg2mem
br i1 %91, label LBL_21, label LBL_22
LBL_22:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%92 = add i64 %sv_0.226.reload, %50
store i64 %92, i64* %sv_0.1.reg2mem
store i64 %rcx.2.reload, i64* %rcx.4.reg2mem
br label LBL_36
LBL_23:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%93 = add i64 %sv_0.0.reload, 1
%94 = inttoptr i64 %sv_0.0.reload to i8*
%95 = load i8, i8* %94, align 1
%96 = icmp slt i8 %95, 0
br i1 %96, label LBL_27, label LBL_24
LBL_24:
%97 = sext i8 %95 to i32
%98 = add nsw i32 %97, 1
%99 = add i32 %98, %sv_1.0.ph.reload
%100 = zext i32 %99 to i64
%101 = icmp slt i64 %50, %100
br i1 %101, label LBL_25, label LBL_26
LBL_25:
%102 = add i64 %2, 16
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = call i64 @FUNC(i64 %104, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %rcx.3.ph.reload, i64 %r8.0.reload, i64 %arg6)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_37
LBL_26:
%106 = sext i32 %sv_1.0.ph.reload to i64
%107 = add i64 %sv_2.024.reload, %106
%108 = inttoptr i64 %107 to i64*
%109 = inttoptr i64 %93 to i64*
%110 = call i64* @memcpy(i64* %108, i64* %109, i32 %98)
%111 = sext i32 %98 to i64
%112 = add i64 %93, %111
store i64 %112, i64* %sv_0.0.ph.be.reg2mem
store i32 %99, i32* %sv_1.0.ph.be.reg2mem
store i64 %107, i64* %rcx.3.ph.be.reg2mem
br label LBL_31
LBL_27:
%113 = icmp eq i8 %95, -128
store i64 %93, i64* %sv_0.0.reg2mem
br i1 %113, label LBL_33, label LBL_28
LBL_28:
%114 = sext i8 %95 to i32
%115 = sub nsw i32 1, %114
%116 = add i32 %115, %sv_1.0.ph.reload
%117 = zext i32 %116 to i64
%118 = icmp slt i64 %50, %117
br i1 %118, label LBL_29, label LBL_30
LBL_29:
%119 = add i64 %2, 16
%120 = inttoptr i64 %119 to i64*
%121 = load i64, i64* %120, align 8
%122 = call i64 @FUNC(i64 %121, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i64 %rcx.3.ph.reload, i64 %r8.0.reload, i64 %arg6)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_37
LBL_30:
%123 = add i64 %sv_0.0.reload, 2
%124 = inttoptr i64 %93 to i8*
%125 = load i8, i8* %124, align 1
%126 = zext i8 %125 to i32
%127 = sext i32 %sv_1.0.ph.reload to i64
%128 = add i64 %sv_2.024.reload, %127
%129 = inttoptr i64 %128 to i64*
%130 = call i64* @memset(i64* %129, i32 %126, i32 %115)
store i64 %123, i64* %sv_0.0.ph.be.reg2mem
store i32 %116, i32* %sv_1.0.ph.be.reg2mem
store i64 %128, i64* %rcx.3.ph.be.reg2mem
br label LBL_31
LBL_31:
%rcx.3.ph.be.reload = load i64, i64* %rcx.3.ph.be.reg2mem
%sv_1.0.ph.be.reload = load i32, i32* %sv_1.0.ph.be.reg2mem
%sv_0.0.ph.be.reload = load i64, i64* %sv_0.0.ph.be.reg2mem
store i64 %sv_0.0.ph.be.reload, i64* %sv_0.0.ph.reg2mem
store i32 %sv_1.0.ph.be.reload, i32* %sv_1.0.ph.reg2mem
store i64 %rcx.3.ph.be.reload, i64* %rcx.3.ph.reg2mem
br label LBL_32
LBL_32:
%rcx.3.ph.reload = load i64, i64* %rcx.3.ph.reg2mem
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%131 = icmp slt i32 %sv_1.0.ph.reload, %18
store i64 %sv_0.0.ph.reload, i64* %sv_0.0.reg2mem
br label LBL_33
LBL_33:
store i64 %sv_0.0.ph.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.3.ph.reload, i64* %rcx.4.reg2mem
br i1 %131, label LBL_23, label LBL_36
LBL_34:
%132 = load i64, i64* %55, align 8
%133 = call i64 @FUNC(i64 %132, i64 %sv_2.024.reload, i32 %18)
%134 = trunc i64 %133 to i32
%135 = icmp sgt i32 %18, %134
store i64 %sv_0.226.reload, i64* %sv_0.1.reg2mem
store i64 %sv_2.024.reload, i64* %rcx.4.reg2mem
br i1 %135, label LBL_35, label LBL_36
LBL_35:
%136 = add i64 %2, 16
%137 = inttoptr i64 %136 to i64*
%138 = load i64, i64* %137, align 8
%139 = zext i32 %18 to i64
%140 = and i64 %133, 4294967295
%141 = call i64 @FUNC(i64 %138, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_5, i64 0, i64 0), i64 %140, i64 %139, i64 %arg6)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_37
LBL_36:
%rcx.4.reload = load i64, i64* %rcx.4.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%142 = add i64 %sv_2.024.reload, %56
%143 = add nuw nsw i32 %storemerge30.reload, 1
%144 = icmp slt i32 %143, %47
store i32 %143, i32* %storemerge30.reg2mem
store i64 %rcx.4.reload, i64* %rcx.529.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.226.reg2mem
store i64 %142, i64* %sv_2.024.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %144, label LBL_11, label LBL_37
LBL_37:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_1.0.ph.reload, { 2, 3, 0, 4, 1 }
uselistorder i32 %115, { 1, 0 }
uselistorder i32 %98, { 1, 2, 0 }
uselistorder i8 %95, { 0, 2, 1, 3 }
uselistorder i64 %93, { 1, 0, 2, 3 }
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 1, 3, 2 }
uselistorder i64 %sv_2.024.reload, { 4, 0, 2, 6, 5, 3, 1 }
uselistorder i64 %rcx.529.reload, { 3, 0, 1, 2, 4 }
uselistorder i64 %sv_0.226.reload, { 1, 8, 7, 4, 5, 9, 0, 2, 3, 6 }
uselistorder i64 %50, { 2, 3, 0, 1, 4 }
uselistorder i64 %r8.0.reload, { 1, 2, 0 }
uselistorder i32 %47, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i64 %43, { 1, 0 }
uselistorder i64 %32, { 1, 0 }
uselistorder i32 %21, { 0, 2, 1, 3 }
uselistorder i32* %20, { 1, 0, 2 }
uselistorder i32 %18, { 2, 4, 3, 5, 1, 0, 6 }
uselistorder i64 %14, { 1, 4, 0, 3, 2, 5 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %12, { 4, 5, 0, 2, 3, 1, 6 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 4, 7, 6, 8, 2, 5, 3, 1, 10, 0, 9, 11 }
uselistorder i32* %storemerge30.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.529.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.226.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.024.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.2.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.3.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 4, 1, 2, 3, 5 }
uselistorder i64* %rcx.4.reg2mem, { 0, 4, 1, 2, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 6, 8, 7, 1, 9, 10, 3, 5, 11, 4 }
uselistorder i8 0, { 0, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 }
uselistorder i32 7, { 1, 0, 2 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i1 false, { 3, 4, 0, 5, 6, 1, 7, 2 }
uselistorder i32 0, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder i64 %arg6, { 2, 4, 3, 5, 0, 1 }
uselistorder i32 %arg3, { 1, 0, 2 }
uselistorder label LBL_37, { 1, 4, 5, 6, 0, 7, 8, 2, 9, 10, 3 }
uselistorder label LBL_36, { 1, 0, 2, 3, 4 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_22, { 0, 2, 1 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | destroy_eps_17723 | destroy_eps | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %5, 16
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = load i64, i64* %7, align 8
%11 = mul i64 %.reload, 16
%12 = add i64 %10, %11
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %12 to i64*
%17 = load i64, i64* %16, align 8
%18 = load i64, i64* %9, align 8
%19 = call i64 @FUNC(i64 %18, i64 %17, i64 %15)
%20 = add i32 %storemerge1.reload, 1
%21 = sext i32 %20 to i64
%22 = icmp sgt i64 %3, %21
store i64 %21, i64* %.reg2mem
store i32 %20, i32* %storemerge1.reg2mem
br i1 %22, label LBL_2, label LBL_3
LBL_3:
ret i64 %3
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | http_read_stream_16515 | http_read_stream | 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.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i8, align 1
%sv_2 = alloca i64, align 8
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_16
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = add i64 %7, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %7, i64* nonnull %sv_2)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = and i64 %17, 4294967295
store i64 %21, i64* %rax.0.reg2mem
br label LBL_16
LBL_5:
%sext = mul i64 %arg3, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = add i64 %7, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp slt i32 %25, 0
store i64 %22, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_13, label LBL_6
LBL_6:
%27 = icmp eq i32 %25, 0
%28 = icmp eq i1 %27, false
store i32 %25, i32* %.reg2mem
br i1 %28, label LBL_12, label LBL_7
LBL_7:
%29 = bitcast i8* %sv_1 to i64*
br label LBL_8
LBL_8:
%30 = call i64 @FUNC(i64 %7, i64* nonnull %29, i64 32)
%31 = trunc i64 %30 to i32
%32 = icmp slt i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = and i64 %30, 4294967295
store i64 %34, i64* %rax.0.reg2mem
br label LBL_16
LBL_10:
%35 = load i8, i8* %sv_1, align 1
%36 = icmp eq i8 %35, 0
br i1 %36, label LBL_8, label LBL_11
LBL_11:
%37 = call i64 @strtoll(i8* nonnull %sv_1, i8** null, i32 16)
%38 = trunc i64 %37 to i32
store i32 %38, i32* %24, align 4
%39 = and i64 %37, 4294967295
%40 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %2, i64 %1)
%41 = load i32, i32* %24, align 4
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i32 %41, i32* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %43, label LBL_12, label LBL_16
LBL_12:
%.reload = load i32, i32* %.reg2mem
%44 = trunc i64 %22 to i32
%45 = sub i32 %44, %.reload
%46 = xor i32 %.reload, %44
%47 = xor i32 %45, %44
%48 = and i32 %47, %46
%49 = icmp slt i32 %48, 0
%50 = icmp eq i32 %45, 0
%51 = icmp slt i32 %45, 0
%52 = icmp ne i1 %51, %49
%53 = or i1 %50, %52
%54 = select i1 %53, i32 %44, i32 %.reload
%55 = sext i32 %54 to i64
store i64 %55, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%56 = ptrtoint i64* %arg2 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%57 = add i64 %7, 16
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = icmp eq i32 %59, 0
%61 = trunc i64 %sv_0.0.reload to i32
br i1 %60, label LBL_15, label LBL_14
LBL_14:
%62 = call i64 @FUNC(i64 %7, i64 %56, i32 %61)
store i64 %62, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%63 = call i64 @FUNC(i64 %7, i64 %56, i32 %61)
store i64 %63, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %61, { 1, 0 }
uselistorder i32 %45, { 1, 2, 0 }
uselistorder i32 %44, { 2, 0, 1, 3 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %7, { 2, 3, 4, 1, 5, 0, 6, 7 }
uselistorder i8* %sv_1, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 1, 4, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_16, { 2, 3, 0, 4, 5, 1 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | find_best_16636 | find_best | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %0, 2
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %0, 4
%5 = icmp ne i64 %4, 0
%spec.select = zext i1 %5 to i64
ret i64 %spec.select
LBL_2:
ret i64 1
} | 1 |
BinRealVul | scsi_execute_18893 | scsi_execute | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64* %arg6, i64 %arg7, i64 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = trunc i64 %arg5 to i32
%3 = icmp eq i32 %1, 1
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4, i64 0)
%6 = icmp eq i32 %2, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %0, i64 %5, i64 %arg4, i32 %2, i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 16777216, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg6 to i64
%12 = add i64 %5, 8
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
%14 = inttoptr i64 %5 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memcpy(i64* %16, i64* %arg2, i32 1)
%18 = add i64 %5, 16
%19 = inttoptr i64 %18 to i64*
store i64 %11, i64* %19, align 8
%20 = add i64 %5, 24
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = trunc i64 %arg8 to i32
%23 = add i64 %5, 28
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = trunc i64 %arg7 to i32
%26 = add i64 %5, 32
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = add i64 %5, 36
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = add i64 %5, 40
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = trunc i64 %arg9 to i32
%34 = or i32 %32, %33
store i32 %34, i32* %31, align 4
%35 = add i64 %5, 48
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 0, i64 %5, i64 1)
%39 = add i64 %5, 44
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%phitmp = zext i32 %41 to i64
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%42 = call i64 @FUNC(i64 %5)
ret i64 %sv_0.0.reload
uselistorder i64 %5, { 0, 3, 2, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | pxa2xx_gpio_read_2034 | pxa2xx_gpio_read | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = and i64 %3, 4294967295
%5 = sub i64 %arg2, %4
%6 = icmp ult i64 %5, 512
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = mul i64 %5, 8
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 8
store i64 %7, i64* @0, align 8
%switch = icmp eq i64 %7, 0
br i1 %switch, label LBL_2, label LBL_3
LBL_2:
%11 = ptrtoint i64* %arg1 to i64
%12 = add i64 %11, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = sext i32 %10 to i64
%16 = mul i64 %15, 4
%17 = add i64 %14, %16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
store i64 %20, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%21 = load i64, i64* @gv_1, align 8
%22 = call i64 @FUNC(i64 %21, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0), i64 %5, i64 %2, i64 %1)
unreachable
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 2, 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.