dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | kvmppc_reset_htab_3008 | kvmppc_reset_htab | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
store i64 %0, i64* %sv_0, align 8
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = load i64, i64* @gv_0, align 8
%6 = call i64 @FUNC(i64 %5, i64 1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = load i64, i64* @gv_0, align 8
br i1 %8, label LBL_6, label LBL_2
LBL_2:
%10 = bitcast i64* %sv_0 to i32*
%11 = call i64 @FUNC(i64 %9, i64 2, i32* nonnull %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, -25
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_7
LBL_3:
%15 = icmp slt i32 %12, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = and i64 %11, 4294967295
store i64 %17, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%18 = load i64, i64* %sv_0, align 8
%19 = and i64 %18, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%20 = call i64 @FUNC(i64 %9)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%. = select i1 %22, i64 24, i64 0
store i64 %., 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 %9, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 4, 2, 3 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_7, { 0, 3, 4, 1, 2 }
} | 0 |
BinRealVul | qemu_chr_open_tty_13892 | qemu_chr_open_tty | 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, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = inttoptr i64 %1 to i8*
%3 = call i32 (i8*, i32, ...) @open(i8* %2, i32 2050)
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = zext i32 %3 to i64
%7 = call i64 @FUNC(i64 %6, i64 115200, i64 78, i64 8, i64 1)
%8 = call i64 @FUNC(i64 %6, i64 %6)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i32 @close(i32 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%12 = inttoptr i64 %8 to i64*
store i64 4198809, i64* %12, align 8
%13 = add i64 %8, 8
%14 = inttoptr i64 %13 to i64*
store i64 4198831, i64* %14, align 8
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | nsvg__parseColorRGB_11904 | nsvg__parseColorRGB | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
store i32 -1, i32* %sv_4, align 4
store i32 -1, i32* %sv_3, align 4
store i32 -1, i32* %sv_2, align 4
store i64 0, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%0 = add i64 %arg1, 4
%1 = inttoptr i64 %0 to i8*
%2 = call i32 (i8*, i8*, ...) @sscanf(i8* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i32* nonnull %sv_4, i64* nonnull %sv_1, i32* nonnull %sv_3, i64* nonnull %sv_0, i32* nonnull %sv_2)
%3 = bitcast i64* %sv_1 to i8*
%4 = call i8* @strchr(i8* nonnull %3, i32 37)
%5 = icmp eq i8* %4, null
%6 = load i32, i32* %sv_4, align 4
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%7 = mul i32 %6, 255
%8 = sext i32 %7 to i64
%9 = mul nsw i64 %8, 1374389535
%10 = udiv i64 %9, 137438953472
%11 = trunc i64 %10 to i32
%12 = ashr i32 %7, 31
%13 = sub nsw i32 %11, %12
%14 = mul i32 %13, 65536
%15 = load i32, i32* %sv_3, align 4
%16 = mul i32 %15, 255
%17 = sext i32 %16 to i64
%18 = mul nsw i64 %17, 1374389535
%19 = udiv i64 %18, 137438953472
%20 = trunc i64 %19 to i32
%21 = ashr i32 %16, 31
%22 = sub nsw i32 %20, %21
%23 = mul i32 %22, 256
%24 = or i32 %23, %14
%25 = load i32, i32* %sv_2, align 4
%26 = mul i32 %25, 255
%27 = sdiv i32 %26, 100
%28 = or i32 %24, %27
store i32 %28, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%29 = mul i32 %6, 65536
%30 = load i32, i32* %sv_3, align 4
%31 = mul i32 %30, 256
%32 = or i32 %31, %29
%33 = load i32, i32* %sv_2, align 4
%34 = or i32 %32, %33
store i32 %34, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i32* %sv_4, { 1, 0, 2 }
uselistorder i32* %sv_3, { 1, 2, 0, 3 }
uselistorder i32* %sv_2, { 1, 2, 0, 3 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | gen_lswx_1547 | gen_lswx | 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 = call i64 @FUNC(i64 %2, i64 0)
%4 = call i64 @FUNC()
%5 = trunc i64 %4 to i32
%6 = and i64 %4, 4294967295
%7 = call i64 @FUNC(i64 %2, i64 %6)
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = call i64 @FUNC(i64 %8)
%14 = and i64 %13, 4294967295
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = call i64 @FUNC(i64 %8)
%18 = and i64 %17, 4294967295
%19 = call i64 @FUNC(i64 %18)
%20 = load i64, i64* @gv_0, align 8
%21 = and i64 %19, 4294967295
%22 = call i64 @FUNC(i64 %20, i32 %5, i32 %12, i32 %16, i64 %21)
%23 = call i64 @FUNC(i64 %6)
%24 = and i64 %11, 4294967295
%25 = call i64 @FUNC(i64 %24)
%26 = and i64 %15, 4294967295
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %21)
ret i64 %28
uselistorder i64 %8, { 2, 1, 0 }
uselistorder i64 (i64)* @tcg_temp_free_i32, { 2, 1, 0 }
uselistorder i64 (i64)* @tcg_const_i32, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 5, 6, 0, 7, 8 }
} | 0 |
BinRealVul | nr_listen_9498 | nr_listen | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 1
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2)
%7 = inttoptr i64 %6 to i64*
%8 = call i64* @memset(i64* %7, i32 0, i32 14)
%9 = trunc i64 %arg2 to i32
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = bitcast i64* %arg1 to i32*
store i32 1, i32* %12, align 4
%13 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%14 = call i64 @FUNC(i64 %2)
store i64 95, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @release_sock, { 1, 0 }
} | 0 |
BinRealVul | __nfs4_get_acl_uncached_9396 | __nfs4_get_acl_uncached | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
store i64 0, i64* %sv_6, align 8
%1 = call i64 @FUNC(i64 %0)
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_4, align 8
%2 = icmp ult i64 %arg3, 4096
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = call i64 @FUNC(i64 0)
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %3, 0
%6 = icmp eq i1 %5, false
store i64 -12, i64* %storemerge.reg2mem
br i1 %6, label LBL_2, label LBL_12
LBL_2:
store i64 %3, i64* %sv_5, align 8
store i64 0, i64* %sv_6, align 8
store i64 4096, i64* %sv_3.0.reg2mem
store i64 %3, i64* %sv_2.0.reg2mem
store i64 %4, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_3:
%7 = ptrtoint i64* %arg2 to i64
%8 = ptrtoint i64* %sv_5 to i64
%9 = call i64 @FUNC(i64 %7, i64 %arg3, i64 %8, i64* nonnull %sv_6)
store i64 %arg3, i64* %sv_3.0.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i64 %7, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 %10, i64* nonnull %sv_4, i64 0)
%12 = trunc i64 %11 to i32
%sext = mul i64 %11, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = icmp eq i32 %12, 0
%15 = icmp eq i1 %14, false
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_10, label LBL_5
LBL_5:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%16 = call i64 @FUNC(i64 %0, i64 %sv_1.0.reload, i64 %sv_3.0.reload)
%17 = icmp eq i64* %arg2, null
br i1 %17, label LBL_9, label LBL_6
LBL_6:
%18 = icmp ugt i64 %sv_3.0.reload, %arg3
store i64 1, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_10, label LBL_7
LBL_7:
%19 = icmp eq i64 %sv_2.0.reload, 0
br i1 %19, label LBL_9, label LBL_8
LBL_8:
%20 = inttoptr i64 %sv_1.0.reload to i64*
%21 = trunc i64 %sv_3.0.reload to i32
%22 = call i64* @memcpy(i64* nonnull %arg2, i64* %20, i32 %21)
br label LBL_9
LBL_9:
%sext2 = mul i64 %sv_3.0.reload, 4294967296
%23 = ashr exact i64 %sext2, 32
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = icmp eq i64 %sv_2.0.reload, 0
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br i1 %24, label LBL_12, label LBL_11
LBL_11:
%25 = call i64 @FUNC(i64 %sv_2.0.reload)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %sv_3.0.reload, { 3, 1, 0, 2 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %3, { 0, 1, 3, 2 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 %arg3, { 1, 0, 2, 3 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_10, { 2, 0, 1 }
} | 0 |
BinRealVul | lseg_dt_10581 | lseg_dt | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i128 @FUNC(i64 %1, i64 %0)
%6 = call i64 @FUNC(i128 %5)
%7 = call i128 @__asm_movsd.1(i64 %6)
%8 = call i64 @FUNC(i128 %7)
%9 = add i64 %1, 16
%10 = call i128 @FUNC(i64 %9, i64 %0)
%11 = call i64 @FUNC(i128 %10)
%12 = call i128 @__asm_movsd.1(i64 %11)
%13 = call i128 @FUNC(i128 %12)
%14 = call i128 @__asm_movq.2(i64 %8)
%15 = call i64 @FUNC()
%16 = call i64 @FUNC(i128 %14)
%17 = call i128 @FUNC(i64 %0, i64 %1)
%18 = call i64 @FUNC(i128 %17)
%19 = call i128 @__asm_movsd.1(i64 %18)
%20 = call i128 @FUNC(i128 %19)
%21 = call i128 @__asm_movq.2(i64 %16)
%22 = call i64 @FUNC()
%23 = call i64 @FUNC(i128 %21)
%24 = add i64 %0, 16
%25 = call i128 @FUNC(i64 %24, i64 %1)
%26 = call i64 @FUNC(i128 %25)
%27 = call i128 @__asm_movsd.1(i64 %26)
%28 = call i128 @FUNC(i128 %27)
%29 = call i128 @__asm_movq.2(i64 %23)
%30 = call i64 @FUNC()
%31 = call i64 @FUNC(i128 %29)
%32 = call i128 @__asm_movsd.1(i64 %31)
%33 = call i32 @FUNC(i128 %32)
%34 = sext i32 %33 to i64
store i64 %34, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 0, 1, 3, 2, 4 }
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 ()* @Min, { 2, 1, 0 }
uselistorder i128 (i64, i64)* @dist_ps_internal, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
reposvul_c_test | em_grp45_240 | em_grp45 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 6
br i1 %4, label LBL_7, label LBL_1
LBL_1:
%5 = icmp sgt i32 %3, 6
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_8, label LBL_2
LBL_2:
store i64 0, i64* %sv_0.0.reg2mem
switch i32 %3, label LBL_8 [
i32 5, label LBL_6
i32 2, label LBL_3
i32 4, label LBL_5
]
LBL_3:
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %2, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_8, label LBL_4
LBL_4:
store i64 %8, i64* %10, align 8
%16 = call i64 @FUNC(i64 %2)
store i64 %16, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%17 = add i64 %2, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %2, i64 %19)
store i64 %20, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_6:
%21 = call i64 @FUNC(i64 %2)
store i64 %21, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%22 = call i64 @FUNC(i64 %2)
store i64 %22, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%23 = and i64 %sv_0.0.reload, 4294967295
ret i64 %23
uselistorder i32 %3, { 2, 1, 0 }
uselistorder i64 %2, { 7, 6, 1, 0, 2, 3, 5, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 7, 5, 2, 3, 4, 1, 6 }
uselistorder i64 (i64)* @em_push, { 1, 0 }
uselistorder i64 (i64, i64)* @assign_eip_near, { 1, 0 }
uselistorder i32 6, { 1, 0 }
uselistorder label LBL_8, { 2, 3, 4, 5, 1, 0, 6 }
} | 1 |
BinRealVul | __do_request_18479 | __do_request | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.in.reg2mem = alloca i64
%.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 = trunc i64 %4 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i32 -11, i32* %sv_0.1.reg2mem
br i1 %8, label LBL_20, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg2 to i64
%10 = add i64 %9, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 -11, i32* %sv_0.1.reg2mem
br i1 %14, label LBL_20, label LBL_2
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = add i64 %9, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = add i64 %9, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i32 %22, %18
%24 = zext i32 %23 to i64
%25 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 %24)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_5, label LBL_4
LBL_4:
%30 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %24, i64 %5, i64 %2, i64 %1)
store i32 -5, i32* %storemerge.reg2mem
br label LBL_21
LBL_5:
%31 = call i64 @FUNC(i64 %9)
%32 = call i64 @FUNC(i64 %15, i64 %9)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
store i64 %9, i64* %.reg2mem
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = and i64 %32, 4294967295
%36 = and i64 %3, 4294967295
%37 = call i64 @FUNC(i64 %36, i64 %35)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
%40 = icmp slt i32 %38, 0
%41 = icmp eq i1 %40, false
%42 = icmp eq i1 %39, false
%43 = icmp eq i1 %41, %42
store i64 %35, i64* %.reg2mem
br i1 %43, label LBL_8, label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%44 = call i64 @FUNC(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_2, i64 0, i64 0), i64 %.reload, i64 %.reload, i64 %5, i64 %2, i64 %1)
%45 = add i64 %15, 4
%46 = add i64 %9, 32
%47 = call i64 @FUNC(i64 %46, i64 %45)
store i32 -11, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_8:
%48 = call i64 @FUNC(i64 %15, i64 %35)
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
store i64 %48, i64* %sv_1.0.in.reg2mem
br i1 %50, label LBL_11, label LBL_9
LBL_9:
%51 = call i64 @FUNC(i64 %15, i64 %35)
%52 = call i64 @FUNC(i64 %51)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
store i64 %51, i64* %sv_1.0.in.reg2mem
br i1 %54, label LBL_11, label LBL_10
LBL_10:
%55 = call i64 @FUNC(i64 %51)
%56 = trunc i64 %55 to i32
store i32 %56, i32* %storemerge.reg2mem
br label LBL_21
LBL_11:
%sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem
%sv_1.0 = inttoptr i64 %sv_1.0.in.reload to i32*
%57 = call i64 @FUNC(i64 %sv_1.0.in.reload)
%58 = add i64 %9, 40
%59 = inttoptr i64 %58 to i64*
store i64 %57, i64* %59, align 8
%60 = load i32, i32* %sv_1.0, align 4
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %61)
%63 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %35, i64 %sv_1.0.in.reload, i64 %62, i64 %2, i64 %1)
%64 = load i32, i32* %sv_1.0, align 4
switch i32 %64, label LBL_12 [
i32 1, label LBL_15
i32 2, label LBL_15
i32 3, label LBL_13
]
LBL_12:
%65 = icmp eq i32 %64, 4
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_14, label LBL_13
LBL_13:
%67 = call i64 @FUNC(i64 %15, i64 %sv_1.0.in.reload)
br label LBL_14
LBL_14:
%68 = add i64 %sv_1.0.in.reload, 16
%69 = add i64 %9, 32
%70 = call i64 @FUNC(i64 %69, i64 %68)
store i32 -11, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_15:
%71 = add i64 %9, 20
%72 = inttoptr i64 %71 to i32*
store i32 -1, i32* %72, align 4
%73 = add i64 %9, 16
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
%76 = icmp eq i32 %75, 0
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_17, label LBL_16
LBL_16:
%78 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %78, i32* %74, align 4
br label LBL_17
LBL_17:
%79 = call i64 @FUNC(i64 %15, i64 %9, i32 %33)
%80 = trunc i64 %79 to i32
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i32 %80, i32* %sv_0.0.reg2mem
br i1 %82, label LBL_19, label LBL_18
LBL_18:
%83 = add i64 %9, 24
%84 = inttoptr i64 %83 to i64*
%85 = load i64, i64* %84, align 8
%86 = call i64 @FUNC(i64 %85)
%87 = load i64, i64* %84, align 8
%88 = add i64 %sv_1.0.in.reload, 8
%89 = call i64 @FUNC(i64 %88, i64 %87)
store i32 %80, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%90 = call i64 @FUNC(i64 %sv_1.0.in.reload)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_20:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%91 = zext i32 %sv_0.1.reload to i64
ret i64 %91
LBL_21:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%92 = bitcast i64* %arg2 to i32*
store i32 %storemerge.reload, i32* %92, align 4
%93 = call i64 @FUNC(i64 %15, i64 %9)
store i32 %storemerge.reload, i32* %sv_0.1.reg2mem
br label LBL_20
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32 %64, { 1, 0 }
uselistorder i32* %sv_1.0, { 1, 0 }
uselistorder i64 %sv_1.0.in.reload, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder i64 %51, { 1, 0, 2 }
uselistorder i32 %38, { 1, 0 }
uselistorder i64 %35, { 2, 1, 3, 0, 4 }
uselistorder i64 %24, { 1, 0, 2 }
uselistorder i64 %15, { 0, 3, 2, 1, 4, 5, 6 }
uselistorder i64 %9, { 1, 3, 4, 5, 6, 2, 7, 8, 0, 10, 9, 13, 12, 11 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 1, 0, 2, 3, 4, 5 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @list_add, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @dout, { 2, 1, 0 }
uselistorder i32 -11, { 3, 0, 1, 2 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6, 7 }
uselistorder label LBL_20, { 2, 3, 4, 1, 0 }
uselistorder label LBL_19, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | gen_addq_15528 | gen_addq | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = zext i32 %arg3 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = and i64 %arg4, 4294967295
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = trunc i64 %4 to i32
%6 = call i64 @FUNC()
%7 = and i64 %2, 4294967295
%8 = call i64 @FUNC(i64 %6, i64 %7, i32 %5)
%9 = call i64 @FUNC(i64 %7)
%10 = and i64 %4, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %arg2, i64 %arg2, i64 %6)
%13 = call i64 @FUNC(i64 %6)
ret i64 %13
uselistorder i64 (i64)* @dead_tmp, { 1, 0 }
uselistorder i64 (i64, i64)* @load_reg, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | cp2112_gpio_get_all_6650 | cp2112_gpio_get_all | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %1, 16
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %3, i64 1, i64 %6, i64 2, i64 3, i64 1)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 2
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i32 %10)
%13 = icmp slt i32 %10, 0
%14 = icmp eq i1 %13, false
%storemerge = select i1 %14, i64 4294967291, i64 %9
store i64 %storemerge, i64* %storemerge1.reg2mem
br label LBL_3
LBL_2:
%15 = add i64 %6, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i64
store i64 %18, i64* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%19 = call i64 @FUNC(i64 %7)
%20 = and i64 %storemerge1.reload, 4294967295
ret i64 %20
uselistorder i32 %10, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ssi_sd_load_6572 | ssi_sd_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv4.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 1
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_11
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg2 to i32*
store i32 %5, i32* %6, align 4
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %2, 8
store i64 0, i64* %indvars.iv4.reg2mem
br label LBL_2
LBL_2:
%indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = mul i64 %indvars.iv4.reload, 4
%15 = add i64 %11, %14
%16 = inttoptr i64 %15 to i32*
store i32 %13, i32* %16, align 4
%indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1
%exitcond6 = icmp eq i64 %indvars.iv.next5, 4
store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem
br i1 %exitcond6, label LBL_3, label LBL_2
LBL_3:
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %2, 24
store i64 0, i64* %indvars.iv.reg2mem
store i64 %17, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%19 = trunc i64 %.reload to i32
%20 = mul i64 %indvars.iv.reload, 4
%21 = add i64 %18, %20
%22 = inttoptr i64 %21 to i32*
store i32 %19, i32* %22, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%23 = call i64 @FUNC(i64 %3)
%exitcond = icmp eq i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %23, i64* %.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
%24 = trunc i64 %23 to i32
%25 = add i64 %2, 44
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = bitcast i64* %rsi to i32*
%28 = load i32, i32* %27, align 8
%29 = icmp eq i32 %28, 1
%30 = icmp eq i1 %29, false
%31 = icmp ult i32 %24, 4
%or.cond = or i1 %31, %30
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_11
LBL_6:
%32 = call i64 @FUNC(i64 %3)
%33 = trunc i64 %32 to i32
%34 = add i64 %2, 48
%35 = inttoptr i64 %34 to i32*
store i32 %33, i32* %35, align 4
%36 = call i64 @FUNC(i64 %3)
%37 = trunc i64 %36 to i32
%38 = add i64 %2, 52
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = load i32, i32* %27, align 8
%41 = icmp eq i32 %40, 2
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_10, label LBL_7
LBL_7:
%43 = load i32, i32* %35, align 4
%44 = icmp ult i32 %43, 5
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %44, label LBL_8, label LBL_11
LBL_8:
%45 = icmp eq i32 %37, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_10, label LBL_9
LBL_9:
%47 = load i32, i32* %26, align 4
%48 = icmp ult i32 %47, 6
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %48, label LBL_10, label LBL_11
LBL_10:
%49 = call i64 @FUNC(i64 %3)
%50 = trunc i64 %49 to i32
store i32 %50, i32* %6, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %3, { 1, 2, 3, 4, 0, 5, 6, 7 }
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 3, 1, 4 }
uselistorder i64 4, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @qemu_get_be32, { 7, 6, 5, 4, 0, 3, 2, 1 }
uselistorder i64 4294967274, { 1, 2, 0, 3 }
uselistorder label LBL_11, { 4, 1, 2, 0, 3 }
} | 0 |
BinRealVul | nbd_reply_ready_15404 | nbd_reply_ready | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.3.reg2mem = alloca i64
%rax.1.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.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 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %.reg2mem
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %3)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_1.LBL_4_crit_edge, label LBL_3
LBL_2:
%.pre = load i64, i64* %4, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_3:
store i64 0, i64* %4, align 8
%.pre2 = add i64 %2, 16
store i64 %.pre2, i64* %.pre-phi.reg2mem
br label LBL_6
LBL_4:
%.reload = load i64, i64* %.reg2mem
%13 = mul i64 %.reload, 8
%14 = and i64 %13, 8184
%15 = add i64 %2, 16
%16 = add i64 %14, %15
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i64 %15, i64* %.pre-phi.reg2mem
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %18, i64 0)
store i64 %20, i64* %rax.3.reg2mem
br label LBL_10
LBL_6:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br label LBL_7
LBL_7:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%21 = mul i64 %storemerge1.reload, 8
%22 = add i64 %21, %.pre-phi.reload
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64 %24, i64 0)
store i64 %26, i64* %rax.1.reg2mem
br label LBL_9
LBL_9:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
%27 = add nuw nsw i64 %storemerge1.reload, 1
%exitcond = icmp eq i64 %27, 1024
store i64 %27, i64* %storemerge1.reg2mem
store i64 %rax.1.reload, i64* %rax.3.reg2mem
br i1 %exitcond, label LBL_10, label LBL_7
LBL_10:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i64* %4, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @qemu_coroutine_enter, { 1, 0 }
uselistorder i64 16, { 1, 0 }
} | 1 |
BinRealVul | slurm_load_node_17950 | slurm_load_node | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32*
%storemerge.reg2mem = alloca i64
%1 = load i32*, i32** %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 2, i32* %sv_1, align 4
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i32* nonnull %sv_1, i64* nonnull %2)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = load i32, i32* %sv_0, align 4
switch i32 %7, label LBL_6 [
i32 3, label LBL_2
i32 4, label LBL_3
]
LBL_2:
%8 = ptrtoint i32* %1 to i64
store i64 %8, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_3:
%9 = load i32, i32* %1, align 4
%10 = ptrtoint i32* %1 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = icmp eq i32 %9, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = zext i32 %9 to i64
%14 = call i64 @FUNC(i64 %13)
br label LBL_5
LBL_5:
store i64 0, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%15 = call i64 @FUNC(i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %1, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64)* @slurm_seterrno_ret, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | hash__init_new_context_5671 | hash__init_new_context | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
%.pre = ptrtoint i32* %arg1 to i64
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %.pre)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %.pre)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%10 = call i64 @FUNC(i64 %.pre)
%11 = call i64 @FUNC(i64 %.pre)
br label LBL_4
LBL_4:
%storemerge = and i64 %6, 4294967295
ret i64 %storemerge
uselistorder i64 %.pre, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | net_get_10953 | net_get | define i64 @FUNC(i64 %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%4 = and i64 %arg1, 4294967295
%5 = bitcast i32* %sv_0 to i64*
%6 = call i64 @FUNC(i64 %4, i64* nonnull %5, i64 8)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, -1
%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 = load i32, i32* %sv_0, align 4
%11 = call i32 @ntohl(i32 %10)
%12 = and i64 %2, 4294967295
%13 = sext i32 %11 to i64
%14 = icmp slt i64 %12, %13
br i1 %14, label LBL_2, label LBL_3
LBL_2:
%15 = zext i32 %3 to i64
%16 = zext i32 %11 to i64
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %15, i64 %12)
call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0))
br label LBL_3
LBL_3:
%18 = trunc i64 %2 to i32
store i32 %11, i32* %arg3, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = inttoptr i64 %arg2 to i64*
%21 = call i64 @FUNC(i64 %4, i64* %20, i64 %12)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, -1
%24 = icmp eq i1 %23, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_6
LBL_5:
%25 = zext i32 %3 to i64
store i64 %25, 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 %12, { 2, 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64*, i64)* @net_read_exact, { 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | __hsr_set_operstate_8705 | __hsr_set_operstate | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, %2
br i1 %5, label LBL_2, label LBL_1
LBL_1:
store i32 %2, i32* %arg1, align 4
%6 = call i64 @FUNC(i64* nonnull @gv_0)
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @write_unlock_bh, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
} | 0 |
BinRealVul | h263_decode_init_13949 | h263_decode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %rdi, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
store i64 %0, i64* %4, align 8
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 12
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %0, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %3, 16
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = bitcast i64* %rdi to i32*
%18 = load i32, i32* %17, align 8
%19 = zext i32 %18 to i64
store i64 %19, i64* @0, align 8
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %18, label LBL_15 [
i32 1, label LBL_1
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_4
i32 5, label LBL_5
i32 6, label LBL_6
i32 7, label LBL_7
]
LBL_1:
%20 = add i64 %3, 20
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %3, 24
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
br label LBL_8
LBL_2:
%24 = add i64 %3, 28
%25 = inttoptr i64 %24 to i32*
store i32 4, i32* %25, align 4
%26 = add i64 %3, 32
%27 = inttoptr i64 %26 to i32*
store i32 1, i32* %27, align 4
%28 = add i64 %3, 36
%29 = inttoptr i64 %28 to i32*
store i32 1, i32* %29, align 4
br label LBL_8
LBL_3:
%30 = add i64 %3, 40
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
%32 = add i64 %3, 32
%33 = inttoptr i64 %32 to i32*
store i32 1, i32* %33, align 4
%34 = add i64 %3, 44
%35 = inttoptr i64 %34 to i32*
store i32 1, i32* %35, align 4
br label LBL_8
LBL_4:
%36 = add i64 %3, 40
%37 = inttoptr i64 %36 to i32*
store i32 1, i32* %37, align 4
%38 = add i64 %3, 32
%39 = inttoptr i64 %38 to i32*
store i32 1, i32* %39, align 4
%40 = add i64 %3, 44
%41 = inttoptr i64 %40 to i32*
store i32 2, i32* %41, align 4
br label LBL_8
LBL_5:
%42 = add i64 %3, 40
%43 = inttoptr i64 %42 to i32*
store i32 1, i32* %43, align 4
%44 = add i64 %3, 32
%45 = inttoptr i64 %44 to i32*
store i32 1, i32* %45, align 4
%46 = add i64 %3, 44
%47 = inttoptr i64 %46 to i32*
store i32 3, i32* %47, align 4
br label LBL_8
LBL_6:
%48 = add i64 %3, 40
%49 = inttoptr i64 %48 to i32*
store i32 1, i32* %49, align 4
%50 = add i64 %3, 32
%51 = inttoptr i64 %50 to i32*
store i32 1, i32* %51, align 4
%52 = add i64 %3, 44
%53 = inttoptr i64 %52 to i32*
store i32 4, i32* %53, align 4
br label LBL_8
LBL_7:
%54 = add i64 %3, 48
%55 = inttoptr i64 %54 to i32*
store i32 1, i32* %55, align 4
br label LBL_8
LBL_8:
%56 = load i32, i32* %17, align 8
%.off = add i32 %56, -1
%switch = icmp ult i32 %.off, 2
br i1 %switch, label LBL_10, label LBL_9
LBL_9:
%57 = call i64 @FUNC(i64 %3)
%58 = trunc i64 %57 to i32
%59 = icmp slt i32 %58, 0
%60 = icmp eq i1 %59, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %60, label LBL_10, label LBL_15
LBL_10:
%61 = add i64 %3, 52
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%62 = mul i64 %indvars.iv.reload, 4
%63 = add i64 %62, ptrtoint (i32** @gv_0 to i64)
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = add i64 %61, %62
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, 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_12, label LBL_11
LBL_12:
%68 = add i64 %3, 40
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = icmp eq i32 %70, 0
br i1 %71, label LBL_14, label LBL_13
LBL_13:
%72 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%73 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %62, { 1, 0 }
uselistorder i64 %3, { 20, 19, 18, 21, 17, 22, 14, 15, 16, 11, 12, 13, 8, 9, 10, 5, 6, 7, 2, 3, 4, 0, 1, 23, 24, 25, 26 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 40, { 4, 0, 1, 2, 3 }
uselistorder i32 4, { 1, 2, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder label LBL_15, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | setPath_11388 | setPath | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32 %arg4, i64* %arg5, i32 %arg6, i64 %arg7, i64 %arg8) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = sext i32 %arg6 to i64
%1 = ptrtoint i64* %arg5 to i64
%sv_1 = alloca i32, align 4
%2 = add i64 %0, %arg3
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = sext i32 %arg4 to i64
%7 = add i32 %arg6, 1
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %6, i64 %1, i64 %0)
br label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = ptrtoint i32* %sv_1 to i64
%12 = bitcast i32* %sv_1 to i64*
%13 = call i64 @FUNC(i64 %10, i64* nonnull %12, i64 0)
%14 = trunc i64 %13 to i32
%15 = icmp sgt i32 %14, 6
br i1 %15, label LBL_8, label LBL_3
LBL_3:
%16 = icmp sgt i32 %14, 4
br i1 %16, label LBL_7, label LBL_4
LBL_4:
switch i32 %14, label LBL_8 [
i32 1, label LBL_5
i32 3, label LBL_6
]
LBL_5:
%17 = and i64 %13, 4294967295
%18 = call i64 @FUNC(i64 %1, i64 %17, i64 0)
%19 = call i64 @FUNC(i64 %10, i64 %arg2, i64 %arg3, i32 %arg4, i64 %1, i32 %arg6, i64 %arg7)
%20 = call i64 @FUNC(i64 %10, i64* nonnull %12, i64 0)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 2
%23 = zext i1 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = and i64 %20, 4294967295
%26 = call i64 @FUNC(i64 %1, i64 %25, i64 0)
store i64 %26, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%27 = and i64 %13, 4294967295
%28 = call i64 @FUNC(i64 %1, i64 %27, i64 0)
%29 = call i64 @FUNC(i64 %10, i64 %arg2, i64 %arg3, i32 %arg4, i64 %1, i32 %arg6, i64 %arg7)
%30 = call i64 @FUNC(i64 %10, i64* nonnull %12, i64 1)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 4
%33 = zext i1 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = and i64 %30, 4294967295
%36 = call i64 @FUNC(i64 %1, i64 %35, i64 0)
store i64 %36, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_7:
%37 = and i64 %13, 4294967295
%38 = call i64 @FUNC(i64 %1, i64 %37, i64 %11)
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%39 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %11, i64 %1, i64 %0)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %13, { 0, 2, 1, 3 }
uselistorder i64 %10, { 1, 0, 3, 2, 4 }
uselistorder i32* %sv_1, { 1, 0 }
uselistorder i64 %1, { 8, 7, 1, 3, 2, 4, 6, 5, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64)* @Assert, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @pushJsonbValue, { 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 0, 4, 2, 3, 1, 5, 6 }
uselistorder i64 (i64, i64*, i64)* @JsonbIteratorNext, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @elog, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 %arg7, { 1, 0 }
uselistorder i32 %arg6, { 1, 2, 0, 3 }
uselistorder i64 %arg3, { 1, 2, 0 }
} | 1 |
BinRealVul | mxf_read_track_16855 | mxf_read_track | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i32 %arg3, 19201
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = icmp sgt i32 %arg3, 19201
br i1 %3, label LBL_9, label LBL_2
LBL_2:
%4 = icmp eq i32 %arg3, 18436
br i1 %4, label LBL_6, label LBL_3
LBL_3:
%5 = icmp sgt i32 %arg3, 18436
br i1 %5, label LBL_9, label LBL_4
LBL_4:
switch i32 %arg3, label LBL_9 [
i32 18433, label LBL_5
i32 18435, label LBL_8
]
LBL_5:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
br label LBL_9
LBL_6:
%9 = add i64 %1, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %0, i64 %12, i64 4)
br label LBL_9
LBL_7:
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = add i64 %1, 12
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = call i64 @FUNC(i64 %0)
%19 = trunc i64 %18 to i32
%20 = add i64 %1, 8
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
br label LBL_9
LBL_8:
%22 = add i64 %1, 16
%23 = call i64 @FUNC(i64 %0, i64 %22, i64 16)
br label LBL_9
LBL_9:
ret i64 0
uselistorder i64 %1, { 0, 2, 3, 1 }
uselistorder i64 %0, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i64, i64)* @get_buffer, { 1, 0 }
uselistorder i64 (i64)* @get_be32, { 2, 1, 0 }
uselistorder i32 18436, { 1, 0 }
uselistorder i32 19201, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 3, 4, 0, 5, 6 }
} | 1 |
BinRealVul | seq_probe_4754 | seq_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp sgt i32 %3, 257
store i32 0, i32* %storemerge1.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_6
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%5 = sext i32 %storemerge1.reload to i64
%6 = add i64 %5, %0
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_6
LBL_2:
%10 = add nuw i32 %storemerge1.reload, 1
%11 = icmp ult i32 %10, 256
store i32 %10, i32* %storemerge1.reg2mem
br i1 %11, label LBL_1, label LBL_3
LBL_3:
%12 = add i64 %0, 256
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %0, 257
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_5, label LBL_6
LBL_5:
store i64 25, 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 %0, { 2, 1, 0, 3 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_6, { 3, 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | alloc_temp_6329 | alloc_temp | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = add i64 %0, %arg1
store i64 %1, i64* @gv_1, align 8
%2 = load i64, i64* @gv_2, align 8
%3 = icmp ugt i64 %1, %2
store i64 %0, i64* %.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %arg1)
%5 = call i64 @FUNC()
%6 = load i64, i64* @gv_0, align 8
%7 = add i64 %6, %arg1
store i64 %7, i64* @gv_1, align 8
store i64 %6, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
ret i64 %.reload
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | virtio_ccw_device_plugged_14774 | virtio_ccw_device_plugged | 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, 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
store i32 %5, i32* %arg1, align 4
%6 = trunc i64 %1 to i32
%7 = add i64 %2, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = inttoptr i64 %3 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15, i32 %11, i32 %9, i32 %6, i64 1)
ret i64 %16
uselistorder i64 %2, { 1, 2, 0 }
} | 1 |
BinRealVul | fscrypt_d_revalidate_11016 | fscrypt_d_revalidate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i1
%sv_0.0.reg2mem = alloca i64
%0 = urem i64 %arg2, 2
%1 = icmp eq i64 %0, 0
store i64 4294967286, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_11
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
%10 = call i64 @FUNC(i64 %3)
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_6, label LBL_4
LBL_4:
%15 = inttoptr i64 %13 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = inttoptr i64 %16 to i32*
%19 = load i32, i32* %18, align 4
%20 = urem i32 %19, 8
%21 = icmp eq i32 %20, 0
%spec.select = select i1 %21, i64 %13, i64 0
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%22 = add i64 %2, 12
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %2, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = and i32 %26, 2
%28 = call i64 @FUNC(i64 %22)
%29 = icmp eq i64 %sv_0.0.reload, 0
%30 = icmp eq i1 %29, false
%31 = call i64 @FUNC(i64 %3)
%32 = icmp eq i32 %27, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_7, label LBL_8
LBL_7:
%34 = icmp eq i1 %30, false
%35 = icmp eq i1 %34, false
store i1 %35, i1* %.reg2mem
br label LBL_10
LBL_8:
%36 = call i64 @FUNC(i64 %2)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_11, label LBL_9
LBL_9:
%40 = icmp eq i1 %30, false
%41 = icmp eq i1 %40, false
%or.cond = icmp eq i1 %32, %41
store i1 %41, i1* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_10
LBL_10:
%.reload = load i1, i1* %.reg2mem
%or.cond3 = or i1 %32, %.reload
%spec.select4 = zext i1 %or.cond3 to i64
ret i64 %spec.select4
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %32, { 1, 0, 2 }
uselistorder i1 %30, { 1, 0 }
uselistorder i64 %13, { 1, 0, 2, 3 }
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64)* @dput, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 0, 1, 5, 6, 7 }
uselistorder i64 (i64)* @d_inode, { 2, 1, 0 }
uselistorder label LBL_11, { 1, 0, 3, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | itc_tag_read_15892 | itc_tag_read | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 80
%.mask = and i64 %arg2, -8
%1 = icmp eq i64 %.mask, 80
%2 = or i1 %0, %1
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %.mask, %3
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %arg2, { 1, 0, 2 }
} | 1 |
BinRealVul | virtio_ccw_rng_instance_init_5052 | virtio_ccw_rng_instance_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 8, i64 1)
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 0)
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 2, i64 %0, i64 0, i64 0)
ret i64 %3
uselistorder i64 %0, { 4, 0, 3, 1, 2 }
} | 0 |
BinRealVul | shm_get_unmapped_area_5404 | shm_get_unmapped_area | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
ret i64 %3
} | 0 |
BinRealVul | target_get_monitor_def_2233 | target_get_monitor_def | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%sext = mul i64 %1, 72057594037927936
%4 = ashr exact i64 %sext, 56
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 114
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = ptrtoint i8* %arg2 to i64
%11 = add i64 %10, 1
%12 = bitcast i32* %sv_0 to i64*
%13 = call i64 @FUNC(i64 %11, i64 32, i64* nonnull %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = load i32, i32* %sv_0, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = add i64 %18, %3
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
store i64 %21, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_3:
%22 = call i64 @FUNC(i64 %5)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 102
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_6, label LBL_4
LBL_4:
%26 = ptrtoint i8* %arg2 to i64
%27 = add i64 %26, 1
%28 = bitcast i32* %sv_0 to i64*
%29 = call i64 @FUNC(i64 %27, i64 32, i64* nonnull %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = load i32, i32* %sv_0, align 4
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = add i64 %3, 256
%36 = add i64 %35, %34
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
store i64 %38, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_6:
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_7
LBL_7:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%39 = mul i64 %indvars.iv.reload, 8
%40 = add i64 %39, %3
%41 = add i64 %40, 1024
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = icmp eq i64 %43, 0
br i1 %44, label LBL_10, label LBL_8
LBL_8:
%45 = inttoptr i64 %43 to i8*
%46 = call i32 @strcasecmp(i8* %arg2, i8* %45)
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_10, label LBL_9
LBL_9:
%49 = add i64 %40, 768
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
store i64 %51, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%52 = icmp ult i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %52, label LBL_7, label LBL_11
LBL_11:
%53 = call i32 @strncasecmp(i8* %arg2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i32 2)
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %55, label LBL_14, label LBL_12
LBL_12:
%56 = ptrtoint i8* %arg2 to i64
%57 = add i64 %56, 2
%58 = bitcast i32* %sv_0 to i64*
%59 = call i64 @FUNC(i64 %57, i64 32, i64* nonnull %58)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %61, label LBL_14, label LBL_13
LBL_13:
%62 = load i32, i32* %sv_0, align 4
%63 = sext i32 %62 to i64
%64 = mul i64 %63, 8
%65 = add i64 %3, 512
%66 = add i64 %65, %64
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
store i64 %68, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 2, 0, 3, 1 }
uselistorder i32* %sv_0, { 2, 5, 1, 4, 0, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 6, 4, 3 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i64, i64*)* @ppc_cpu_get_reg_num, { 2, 1, 0 }
uselistorder i64 32, { 3, 0, 4, 5, 1, 2 }
uselistorder i64 1, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @qemu_tolower, { 1, 0 }
uselistorder i64* %arg3, { 1, 0, 2, 3 }
uselistorder i8* %arg2, { 2, 3, 4, 1, 0 }
uselistorder label LBL_14, { 3, 1, 0, 2, 4, 5 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | qsb_clone_1906 | qsb_clone | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%rdi.02.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 0, i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 0, i64* %storemerge3.reg2mem
store i64 0, i64* %rdi.02.reg2mem
store i64 0, i64* %sv_0.01.reg2mem
store i64 %1, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%rdi.02.reload = load i64, i64* %rdi.02.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%8 = mul i64 %storemerge3.reload, 16
%9 = add i64 %8, %rdi.02.reload
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %9 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %1, i64 %14, i64 %sv_0.01.reload, i64 %12)
%16 = icmp slt i64 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%19 = add i64 %15, %sv_0.01.reload
%20 = add nuw i64 %storemerge3.reload, 1
%21 = load i64, i64* %5, align 8
%22 = icmp ult i64 %20, %21
store i64 %20, i64* %storemerge3.reg2mem
store i64 %1, i64* %rdi.02.reg2mem
store i64 %19, i64* %sv_0.01.reg2mem
store i64 %1, i64* %rax.0.reg2mem
br i1 %22, label LBL_2, label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.01.reload, { 1, 0 }
uselistorder i64* %5, { 1, 0 }
uselistorder i64 %1, { 0, 2, 3, 4, 1, 5 }
uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64 (i64)* @qsb_get_length, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0, 6, 5, 4, 7 }
uselistorder label LBL_5, { 0, 3, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | blend_frames_c_15151 | blend_frames_c | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64 %arg10) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.014.reg2mem = alloca i64
%sv_1.016.reg2mem = alloca i64
%sv_2.018.reg2mem = alloca i64
%storemerge20.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = icmp sgt i32 %arg5, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_6
LBL_1:
%sext7 = mul i64 %arg9, 4294967296
%sext6 = mul i64 %arg10, 4294967296
%sext5 = mul i64 %arg7, 4294967296
%sext = mul i64 %arg8, 4294967296
%1 = icmp sgt i32 %arg4, 0
%2 = ashr exact i64 %sext7, 32
%3 = ashr exact i64 %sext6, 32
%4 = sext i32 %arg6 to i64
%5 = ashr exact i64 %sext5, 32
%6 = ashr exact i64 %sext, 32
%wide.trip.count = zext i32 %arg4 to i64
store i32 0, i32* %storemerge20.reg2mem
store i64 %arg3, i64* %sv_2.018.reg2mem
store i64 %arg2, i64* %sv_1.016.reg2mem
store i64 %arg1, i64* %sv_0.014.reg2mem
br label LBL_4
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = add i64 %indvars.iv.reload, %sv_0.014.reload
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i64
%11 = mul nsw i64 %2, %10
%12 = trunc i64 %11 to i32
%13 = add i64 %indvars.iv.reload, %sv_1.016.reload
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = mul nsw i64 %3, %16
%18 = trunc i64 %17 to i32
%19 = add i32 %12, 128
%20 = add i32 %19, %18
%21 = udiv i32 %20, 256
%22 = add i64 %indvars.iv.reload, %sv_2.018.reload
%23 = trunc i32 %21 to i8
%24 = inttoptr i64 %22 to i8*
store i8 %23, i8* %24, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%25 = add i64 %sv_0.014.reload, %4
%26 = add i64 %sv_1.016.reload, %5
%27 = add i64 %sv_2.018.reload, %6
%28 = add nuw nsw i32 %storemerge20.reload, 1
%exitcond21 = icmp eq i32 %28, %arg5
store i32 %28, i32* %storemerge20.reg2mem
store i64 %27, i64* %sv_2.018.reg2mem
store i64 %26, i64* %sv_1.016.reg2mem
store i64 %25, i64* %sv_0.014.reg2mem
br i1 %exitcond21, label LBL_5, label LBL_4
LBL_4:
%sv_0.014.reload = load i64, i64* %sv_0.014.reg2mem
%sv_1.016.reload = load i64, i64* %sv_1.016.reg2mem
%sv_2.018.reload = load i64, i64* %sv_2.018.reg2mem
%storemerge20.reload = load i32, i32* %storemerge20.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %1, label LBL_2, label LBL_3
LBL_5:
%phitmp = zext i32 %arg5 to i64
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_6
LBL_6:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 2, 3, 0, 1 }
uselistorder i32 %arg5, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ParseDateTime_7571 | ParseDateTime | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.11.ph.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.10.reg2mem = alloca i64
%sv_0.951.reg2mem = alloca i64
%sv_0.849.reg2mem = alloca i64
%sv_0.7.reg2mem = alloca i64
%.lcssa20.reg2mem = alloca i8
%sv_0.6.lcssa.reg2mem = alloca i64
%sv_0.6.in.lcssa.reg2mem = alloca i64
%sv_0.643.reg2mem = alloca i64
%sv_0.5.lcssa.reg2mem = alloca i64
%sv_0.540.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i64
%sv_0.3.in.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i64
%sv_0.227.reg2mem = alloca i64
%sv_0.137.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.0.in.lcssa.reg2mem = alloca i64
%sv_0.031.reg2mem = alloca i64
%r9 = alloca i64, align 8
%0 = ptrtoint i64* %arg6 to i64
store i64 %0, i64* %r9, align 8
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
store i64 %4, i64* %arg6, align 8
%5 = bitcast i64* %r9 to i8*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %3, i64* %sv_0.11.ph.reg2mem
br label LBL_45
LBL_1:
store i64 %sv_0.11.ph.reload, i64* %430, align 8
%6 = call i16** @__ctype_b_loc()
%7 = load i16*, i16** %6, align 8
%8 = ptrtoint i16* %7 to i64
%9 = load i8, i8* %5, align 8
%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, 2048
%16 = icmp eq i16 %15, 0
br i1 %16, label LBL_19, label LBL_2
LBL_2:
%17 = load i64, i64* %r9, align 8
%18 = add i64 %17, 1
store i64 %18, i64* %arg6, align 8
%19 = trunc i64 %17 to i8
%20 = inttoptr i64 %sv_0.11.ph.reload to i8*
store i8 %19, i8* %20, align 1
%sv_0.030 = add i64 %sv_0.11.ph.reload, 1
%21 = call i16** @__ctype_b_loc()
%22 = load i16*, i16** %21, align 8
%23 = ptrtoint i16* %22 to i64
%24 = load i8, i8* %5, align 8
%25 = zext i8 %24 to i64
%26 = mul i64 %25, 2
%27 = add i64 %26, %23
%28 = inttoptr i64 %27 to i16*
%29 = load i16, i16* %28, align 2
%30 = and i16 %29, 2048
%31 = icmp eq i16 %30, 0
%32 = icmp eq i1 %31, false
store i64 %sv_0.030, i64* %sv_0.031.reg2mem
store i64 %sv_0.11.ph.reload, i64* %sv_0.0.in.lcssa.reg2mem
store i64 %sv_0.030, i64* %sv_0.0.lcssa.reg2mem
store i8 %24, i8* %.lcssa.reg2mem
br i1 %32, label LBL_3, label LBL_4
LBL_3:
%sv_0.031.reload = load i64, i64* %sv_0.031.reg2mem
%33 = load i64, i64* %r9, align 8
%34 = add i64 %33, 1
store i64 %34, i64* %arg6, align 8
%35 = trunc i64 %33 to i8
%36 = inttoptr i64 %sv_0.031.reload to i8*
store i8 %35, i8* %36, align 1
%sv_0.0 = add i64 %sv_0.031.reload, 1
%37 = call i16** @__ctype_b_loc()
%38 = load i16*, i16** %37, align 8
%39 = ptrtoint i16* %38 to i64
%40 = load i8, i8* %5, align 8
%41 = zext i8 %40 to i64
%42 = mul i64 %41, 2
%43 = add i64 %42, %39
%44 = inttoptr i64 %43 to i16*
%45 = load i16, i16* %44, align 2
%46 = and i16 %45, 2048
%47 = icmp eq i16 %46, 0
%48 = icmp eq i1 %47, false
store i64 %sv_0.0, i64* %sv_0.031.reg2mem
store i64 %sv_0.031.reload, i64* %sv_0.0.in.lcssa.reg2mem
store i64 %sv_0.0, i64* %sv_0.0.lcssa.reg2mem
store i8 %40, i8* %.lcssa.reg2mem
br i1 %48, label LBL_3, label LBL_4
LBL_4:
%.lcssa.reload = load i8, i8* %.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_0.0.in.lcssa.reload = load i64, i64* %sv_0.0.in.lcssa.reg2mem
%49 = icmp eq i8 %.lcssa.reload, 58
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_9, label LBL_5
LBL_5:
%51 = mul i64 %indvars.iv.reload, 4
%52 = add i64 %51, %1
%53 = inttoptr i64 %52 to i32*
store i32 1, i32* %53, align 4
%54 = load i64, i64* %r9, align 8
%55 = add i64 %54, 1
store i64 %55, i64* %arg6, align 8
%56 = add i64 %sv_0.0.in.lcssa.reload, 2
%57 = trunc i64 %54 to i8
%58 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
store i8 %57, i8* %58, align 1
%59 = call i16** @__ctype_b_loc()
%60 = load i16*, i16** %59, align 8
%61 = ptrtoint i16* %60 to i64
%62 = load i8, i8* %5, align 8
%63 = zext i8 %62 to i64
%64 = mul i64 %63, 2
%65 = add i64 %64, %61
%66 = inttoptr i64 %65 to i16*
%67 = load i16, i16* %66, align 2
%68 = and i16 %67, 2048
%69 = icmp eq i16 %68, 0
%70 = icmp eq i1 %69, false
br i1 %70, label LBL_6, label %switch.early.test
LBL_6:
store i64 %56, i64* %sv_0.137.reg2mem
br label LBL_7
LBL_7:
%sv_0.137.reload = load i64, i64* %sv_0.137.reg2mem
%71 = load i64, i64* %r9, align 8
%72 = add i64 %71, 1
store i64 %72, i64* %arg6, align 8
%73 = add i64 %sv_0.137.reload, 1
%74 = trunc i64 %71 to i8
%75 = inttoptr i64 %sv_0.137.reload to i8*
store i8 %74, i8* %75, align 1
%76 = call i16** @__ctype_b_loc()
%77 = load i16*, i16** %76, align 8
%78 = ptrtoint i16* %77 to i64
%79 = load i8, i8* %5, align 8
%80 = zext i8 %79 to i64
%81 = mul i64 %80, 2
%82 = add i64 %81, %78
%83 = inttoptr i64 %82 to i16*
%84 = load i16, i16* %83, align 2
%85 = and i16 %84, 2048
%86 = icmp eq i16 %85, 0
%87 = icmp eq i1 %86, false
br i1 %87, label LBL_7.backedge, label %switch.early.test75
LBL_8:
store i64 %73, i64* %sv_0.137.reg2mem
br label LBL_7
LBL_9:
switch i8 %.lcssa.reload, label LBL_10 [
i8 45, label LBL_11
i8 47, label LBL_11
]
LBL_10:
%88 = icmp eq i8 %.lcssa.reload, 46
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_18, label LBL_11
LBL_11:
%90 = load i64, i64* %r9, align 8
%91 = add i64 %90, 1
store i64 %91, i64* %arg6, align 8
%92 = add i64 %sv_0.0.in.lcssa.reload, 2
%93 = trunc i64 %90 to i8
%94 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
store i8 %93, i8* %94, align 1
%95 = call i16** @__ctype_b_loc()
%96 = load i16*, i16** %95, align 8
%97 = ptrtoint i16* %96 to i64
%98 = load i8, i8* %5, align 8
%99 = zext i8 %98 to i64
%100 = mul i64 %99, 2
%101 = add i64 %100, %97
%102 = inttoptr i64 %101 to i16*
%103 = load i16, i16* %102, align 2
%104 = and i16 %103, 2048
%105 = icmp eq i16 %104, 0
br i1 %105, label LBL_16, label LBL_12
LBL_12:
%106 = icmp eq i8 %98, 46
%107 = icmp eq i1 %106, false
%. = select i1 %107, i32 2, i32 3
%108 = mul i64 %indvars.iv.reload, 4
%109 = add i64 %108, %1
%110 = inttoptr i64 %109 to i32*
store i32 %., i32* %110, align 4
%111 = call i16** @__ctype_b_loc()
%112 = load i16*, i16** %111, align 8
%113 = ptrtoint i16* %112 to i64
%114 = load i8, i8* %5, align 8
%115 = zext i8 %114 to i64
%116 = mul i64 %115, 2
%117 = add i64 %116, %113
%118 = inttoptr i64 %117 to i16*
%119 = load i16, i16* %118, align 2
%120 = and i16 %119, 2048
%121 = icmp eq i16 %120, 0
%122 = icmp eq i1 %121, false
store i64 %92, i64* %sv_0.227.reg2mem
store i64 %92, i64* %sv_0.2.lcssa.reg2mem
br i1 %122, label LBL_13, label LBL_14
LBL_13:
%sv_0.227.reload = load i64, i64* %sv_0.227.reg2mem
%123 = load i64, i64* %r9, align 8
%124 = add i64 %123, 1
store i64 %124, i64* %arg6, align 8
%125 = add i64 %sv_0.227.reload, 1
%126 = trunc i64 %123 to i8
%127 = inttoptr i64 %sv_0.227.reload to i8*
store i8 %126, i8* %127, align 1
%128 = call i16** @__ctype_b_loc()
%129 = load i16*, i16** %128, align 8
%130 = ptrtoint i16* %129 to i64
%131 = load i8, i8* %5, align 8
%132 = zext i8 %131 to i64
%133 = mul i64 %132, 2
%134 = add i64 %133, %130
%135 = inttoptr i64 %134 to i16*
%136 = load i16, i16* %135, align 2
%137 = and i16 %136, 2048
%138 = icmp eq i16 %137, 0
%139 = icmp eq i1 %138, false
store i64 %125, i64* %sv_0.227.reg2mem
store i64 %125, i64* %sv_0.2.lcssa.reg2mem
br i1 %139, label LBL_13, label LBL_14
LBL_14:
%sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem
store i32 2, i32* %110, align 4
%140 = load i64, i64* %r9, align 8
%141 = add i64 %140, 1
store i64 %141, i64* %arg6, align 8
%142 = trunc i64 %140 to i8
%143 = inttoptr i64 %sv_0.2.lcssa.reload to i8*
store i8 %142, i8* %143, align 1
store i64 %sv_0.2.lcssa.reload, i64* %sv_0.3.in.reg2mem
br label LBL_15
LBL_15:
%sv_0.3.in.reload = load i64, i64* %sv_0.3.in.reg2mem
%sv_0.3 = add i64 %sv_0.3.in.reload, 1
%144 = call i16** @__ctype_b_loc()
%145 = load i64, i64* %r9, align 8
%146 = add i64 %145, 1
store i64 %146, i64* %arg6, align 8
%147 = trunc i64 %145 to i8
%148 = inttoptr i64 %sv_0.3 to i8*
store i8 %147, i8* %148, align 1
store i64 %sv_0.3, i64* %sv_0.3.in.reg2mem
br label LBL_15
LBL_16:
%149 = mul i64 %indvars.iv.reload, 4
%150 = add i64 %149, %1
%151 = inttoptr i64 %150 to i32*
store i32 2, i32* %151, align 4
store i64 %92, i64* %sv_0.4.reg2mem
br label LBL_17
LBL_17:
%sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem
%152 = call i16** @__ctype_b_loc()
%153 = load i64, i64* %r9, align 8
%154 = add i64 %153, 1
store i64 %154, i64* %arg6, align 8
%155 = urem i64 %153, 256
%156 = call i64 @FUNC(i64 %155)
%157 = add i64 %sv_0.4.reload, 1
%158 = trunc i64 %156 to i8
%159 = inttoptr i64 %sv_0.4.reload to i8*
store i8 %158, i8* %159, align 1
store i64 %157, i64* %sv_0.4.reg2mem
br label LBL_17
LBL_18:
%160 = mul i64 %indvars.iv.reload, 4
%161 = add i64 %160, %1
%162 = inttoptr i64 %161 to i32*
store i32 3, i32* %162, align 4
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.10.reg2mem
br label LBL_44
LBL_19:
%163 = icmp eq i8 %9, 46
%164 = icmp eq i1 %163, false
br i1 %164, label LBL_23, label LBL_20
LBL_20:
%165 = load i64, i64* %r9, align 8
%166 = add i64 %165, 1
store i64 %166, i64* %arg6, align 8
%167 = trunc i64 %165 to i8
%168 = inttoptr i64 %sv_0.11.ph.reload to i8*
store i8 %167, i8* %168, align 1
%sv_0.539 = add i64 %sv_0.11.ph.reload, 1
%169 = call i16** @__ctype_b_loc()
%170 = load i16*, i16** %169, align 8
%171 = ptrtoint i16* %170 to i64
%172 = load i8, i8* %5, align 8
%173 = zext i8 %172 to i64
%174 = mul i64 %173, 2
%175 = add i64 %174, %171
%176 = inttoptr i64 %175 to i16*
%177 = load i16, i16* %176, align 2
%178 = and i16 %177, 2048
%179 = icmp eq i16 %178, 0
%180 = icmp eq i1 %179, false
store i64 %sv_0.539, i64* %sv_0.540.reg2mem
store i64 %sv_0.539, i64* %sv_0.5.lcssa.reg2mem
br i1 %180, label LBL_21, label LBL_22
LBL_21:
%sv_0.540.reload = load i64, i64* %sv_0.540.reg2mem
%181 = load i64, i64* %r9, align 8
%182 = add i64 %181, 1
store i64 %182, i64* %arg6, align 8
%183 = trunc i64 %181 to i8
%184 = inttoptr i64 %sv_0.540.reload to i8*
store i8 %183, i8* %184, align 1
%sv_0.5 = add i64 %sv_0.540.reload, 1
%185 = call i16** @__ctype_b_loc()
%186 = load i16*, i16** %185, align 8
%187 = ptrtoint i16* %186 to i64
%188 = load i8, i8* %5, align 8
%189 = zext i8 %188 to i64
%190 = mul i64 %189, 2
%191 = add i64 %190, %187
%192 = inttoptr i64 %191 to i16*
%193 = load i16, i16* %192, align 2
%194 = and i16 %193, 2048
%195 = icmp eq i16 %194, 0
%196 = icmp eq i1 %195, false
store i64 %sv_0.5, i64* %sv_0.540.reg2mem
store i64 %sv_0.5, i64* %sv_0.5.lcssa.reg2mem
br i1 %196, label LBL_21, label LBL_22
LBL_22:
%sv_0.5.lcssa.reload = load i64, i64* %sv_0.5.lcssa.reg2mem
%197 = mul i64 %indvars.iv.reload, 4
%198 = add i64 %197, %1
%199 = inttoptr i64 %198 to i32*
store i32 3, i32* %199, align 4
store i64 %sv_0.5.lcssa.reload, i64* %sv_0.10.reg2mem
br label LBL_44
LBL_23:
%200 = call i16** @__ctype_b_loc()
%201 = load i16*, i16** %200, align 8
%202 = ptrtoint i16* %201 to i64
%203 = load i8, i8* %5, align 8
%204 = zext i8 %203 to i64
%205 = mul i64 %204, 2
%206 = add i64 %205, %202
%207 = inttoptr i64 %206 to i16*
%208 = load i16, i16* %207, align 2
%209 = and i16 %208, 1024
%210 = icmp eq i16 %209, 0
br i1 %210, label LBL_30, label LBL_24
LBL_24:
%211 = mul i64 %indvars.iv.reload, 4
%212 = add i64 %211, %1
%213 = inttoptr i64 %212 to i32*
store i32 4, i32* %213, align 4
%214 = load i64, i64* %r9, align 8
%215 = add i64 %214, 1
store i64 %215, i64* %arg6, align 8
%216 = urem i64 %214, 256
%217 = call i64 @FUNC(i64 %216)
%218 = trunc i64 %217 to i8
%219 = inttoptr i64 %sv_0.11.ph.reload to i8*
store i8 %218, i8* %219, align 1
%sv_0.642 = add i64 %sv_0.11.ph.reload, 1
%220 = call i16** @__ctype_b_loc()
%221 = load i16*, i16** %220, align 8
%222 = ptrtoint i16* %221 to i64
%223 = load i8, i8* %5, align 8
%224 = zext i8 %223 to i64
%225 = mul i64 %224, 2
%226 = add i64 %225, %222
%227 = inttoptr i64 %226 to i16*
%228 = load i16, i16* %227, align 2
%229 = and i16 %228, 1024
%230 = icmp eq i16 %229, 0
%231 = icmp eq i1 %230, false
store i64 %sv_0.642, i64* %sv_0.643.reg2mem
store i64 %sv_0.11.ph.reload, i64* %sv_0.6.in.lcssa.reg2mem
store i64 %sv_0.642, i64* %sv_0.6.lcssa.reg2mem
store i8 %223, i8* %.lcssa20.reg2mem
br i1 %231, label LBL_25, label LBL_26
LBL_25:
%sv_0.643.reload = load i64, i64* %sv_0.643.reg2mem
%232 = load i64, i64* %r9, align 8
%233 = add i64 %232, 1
store i64 %233, i64* %arg6, align 8
%234 = urem i64 %232, 256
%235 = call i64 @FUNC(i64 %234)
%236 = trunc i64 %235 to i8
%237 = inttoptr i64 %sv_0.643.reload to i8*
store i8 %236, i8* %237, align 1
%sv_0.6 = add i64 %sv_0.643.reload, 1
%238 = call i16** @__ctype_b_loc()
%239 = load i16*, i16** %238, align 8
%240 = ptrtoint i16* %239 to i64
%241 = load i8, i8* %5, align 8
%242 = zext i8 %241 to i64
%243 = mul i64 %242, 2
%244 = add i64 %243, %240
%245 = inttoptr i64 %244 to i16*
%246 = load i16, i16* %245, align 2
%247 = and i16 %246, 1024
%248 = icmp eq i16 %247, 0
%249 = icmp eq i1 %248, false
store i64 %sv_0.6, i64* %sv_0.643.reg2mem
store i64 %sv_0.643.reload, i64* %sv_0.6.in.lcssa.reg2mem
store i64 %sv_0.6, i64* %sv_0.6.lcssa.reg2mem
store i8 %241, i8* %.lcssa20.reg2mem
br i1 %249, label LBL_25, label LBL_26
LBL_26:
%.lcssa20.reload = load i8, i8* %.lcssa20.reg2mem
%sv_0.6.lcssa.reload = load i64, i64* %sv_0.6.lcssa.reg2mem
%sv_0.6.in.lcssa.reload = load i64, i64* %sv_0.6.in.lcssa.reg2mem
switch i8 %.lcssa20.reload, label LBL_27 [
i8 45, label LBL_28
i8 47, label LBL_28
]
LBL_27:
%250 = icmp eq i8 %.lcssa20.reload, 46
%251 = icmp eq i1 %250, false
store i64 %sv_0.6.lcssa.reload, i64* %sv_0.10.reg2mem
br i1 %251, label LBL_44, label LBL_28
LBL_28:
store i32 2, i32* %213, align 4
%252 = load i64, i64* %r9, align 8
%253 = add i64 %252, 1
store i64 %253, i64* %arg6, align 8
%254 = add i64 %sv_0.6.in.lcssa.reload, 2
%255 = trunc i64 %252 to i8
%256 = inttoptr i64 %sv_0.6.lcssa.reload to i8*
store i8 %255, i8* %256, align 1
store i64 %254, i64* %sv_0.7.reg2mem
br label LBL_29
LBL_29:
%sv_0.7.reload = load i64, i64* %sv_0.7.reg2mem
%257 = call i16** @__ctype_b_loc()
%258 = load i64, i64* %r9, align 8
%259 = add i64 %258, 1
store i64 %259, i64* %arg6, align 8
%260 = add i64 %sv_0.7.reload, 1
%261 = trunc i64 %258 to i8
%262 = inttoptr i64 %sv_0.7.reload to i8*
store i8 %261, i8* %262, align 1
store i64 %260, i64* %sv_0.7.reg2mem
br label LBL_29
LBL_30:
%263 = call i16** @__ctype_b_loc()
%264 = load i16*, i16** %263, align 8
%265 = ptrtoint i16* %264 to i64
%266 = load i8, i8* %5, align 8
%267 = zext i8 %266 to i64
%268 = mul i64 %267, 2
%269 = add i64 %268, %265
%270 = inttoptr i64 %269 to i16*
%271 = load i16, i16* %270, align 2
%272 = and i16 %271, 8192
%273 = icmp eq i16 %272, 0
br i1 %273, label LBL_32, label LBL_31
LBL_31:
%storemerge.in = load i64, i64* %r9, align 8
%storemerge = add i64 %storemerge.in, 1
store i64 %storemerge, i64* %arg6, align 8
%274 = trunc i64 %storemerge.in to i8
%275 = icmp eq i8 %274, 0
%276 = icmp eq i1 %275, false
br i1 %276, label LBL_1, label LBL_47
LBL_32:
%277 = icmp ne i8 %266, 43
%278 = icmp eq i8 %266, 45
%279 = icmp eq i1 %278, false
%or.cond3 = icmp eq i1 %277, %279
br i1 %or.cond3, label LBL_43, label LBL_33
LBL_33:
%280 = load i64, i64* %r9, align 8
%281 = add i64 %280, 1
store i64 %281, i64* %arg6, align 8
%282 = trunc i64 %280 to i8
%283 = inttoptr i64 %sv_0.11.ph.reload to i8*
store i8 %282, i8* %283, align 1
%284 = call i16** @__ctype_b_loc()
%285 = load i16*, i16** %284, align 8
%286 = ptrtoint i16* %285 to i64
%287 = load i8, i8* %5, align 8
%288 = zext i8 %287 to i64
%289 = mul i64 %288, 2
%290 = add i64 %289, %286
%291 = inttoptr i64 %290 to i16*
%292 = load i16, i16* %291, align 2
%293 = and i16 %292, 8192
%294 = icmp eq i16 %293, 0
%295 = icmp eq i1 %294, false
br i1 %295, label LBL_34, label LBL_35
LBL_34:
%296 = load i64, i64* %r9, align 8
%297 = add i64 %296, 1
store i64 %297, i64* %arg6, align 8
%298 = call i16** @__ctype_b_loc()
%299 = load i16*, i16** %298, align 8
%300 = ptrtoint i16* %299 to i64
%301 = load i8, i8* %5, align 8
%302 = zext i8 %301 to i64
%303 = mul i64 %302, 2
%304 = add i64 %303, %300
%305 = inttoptr i64 %304 to i16*
%306 = load i16, i16* %305, align 2
%307 = and i16 %306, 8192
%308 = icmp eq i16 %307, 0
%309 = icmp eq i1 %308, false
br i1 %309, label LBL_34, label LBL_35
LBL_35:
%310 = add i64 %sv_0.11.ph.reload, 1
%311 = call i16** @__ctype_b_loc()
%312 = load i16*, i16** %311, align 8
%313 = ptrtoint i16* %312 to i64
%314 = load i8, i8* %5, align 8
%315 = zext i8 %314 to i64
%316 = mul i64 %315, 2
%317 = add i64 %316, %313
%318 = inttoptr i64 %317 to i16*
%319 = load i16, i16* %318, align 2
%320 = and i16 %319, 2048
%321 = icmp eq i16 %320, 0
br i1 %321, label LBL_40, label LBL_36
LBL_36:
%322 = mul i64 %indvars.iv.reload, 4
%323 = add i64 %322, %1
%324 = inttoptr i64 %323 to i32*
store i32 5, i32* %324, align 4
%325 = load i64, i64* %r9, align 8
%326 = add i64 %325, 1
store i64 %326, i64* %arg6, align 8
%327 = add i64 %sv_0.11.ph.reload, 2
%328 = trunc i64 %325 to i8
%329 = inttoptr i64 %310 to i8*
store i8 %328, i8* %329, align 1
%330 = call i16** @__ctype_b_loc()
%331 = load i16*, i16** %330, align 8
%332 = ptrtoint i16* %331 to i64
%333 = load i8, i8* %5, align 8
%334 = zext i8 %333 to i64
%335 = mul i64 %334, 2
%336 = add i64 %335, %332
%337 = inttoptr i64 %336 to i16*
%338 = load i16, i16* %337, align 2
%339 = and i16 %338, 2048
%340 = icmp eq i16 %339, 0
%341 = icmp eq i1 %340, false
br i1 %341, label LBL_37, label %switch.early.test76
LBL_37:
store i64 %327, i64* %sv_0.849.reg2mem
br label LBL_38
LBL_38:
%sv_0.849.reload = load i64, i64* %sv_0.849.reg2mem
%342 = load i64, i64* %r9, align 8
%343 = add i64 %342, 1
store i64 %343, i64* %arg6, align 8
%344 = add i64 %sv_0.849.reload, 1
%345 = trunc i64 %342 to i8
%346 = inttoptr i64 %sv_0.849.reload to i8*
store i8 %345, i8* %346, align 1
%347 = call i16** @__ctype_b_loc()
%348 = load i16*, i16** %347, align 8
%349 = ptrtoint i16* %348 to i64
%350 = load i8, i8* %5, align 8
%351 = zext i8 %350 to i64
%352 = mul i64 %351, 2
%353 = add i64 %352, %349
%354 = inttoptr i64 %353 to i16*
%355 = load i16, i16* %354, align 2
%356 = and i16 %355, 2048
%357 = icmp eq i16 %356, 0
%358 = icmp eq i1 %357, false
br i1 %358, label LBL_38.backedge, label %switch.early.test77
LBL_39:
store i64 %344, i64* %sv_0.849.reg2mem
br label LBL_38
LBL_40:
%359 = call i16** @__ctype_b_loc()
%360 = load i16*, i16** %359, align 8
%361 = ptrtoint i16* %360 to i64
%362 = load i8, i8* %5, align 8
%363 = zext i8 %362 to i64
%364 = mul i64 %363, 2
%365 = add i64 %364, %361
%366 = inttoptr i64 %365 to i16*
%367 = load i16, i16* %366, align 2
%368 = and i16 %367, 1024
%369 = icmp eq i16 %368, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %369, label LBL_48, label LBL_41
LBL_41:
%370 = mul i64 %indvars.iv.reload, 4
%371 = add i64 %370, %1
%372 = inttoptr i64 %371 to i32*
store i32 6, i32* %372, align 4
%373 = load i64, i64* %r9, align 8
%374 = add i64 %373, 1
store i64 %374, i64* %arg6, align 8
%375 = urem i64 %373, 256
%376 = call i64 @FUNC(i64 %375)
%377 = add i64 %sv_0.11.ph.reload, 2
%378 = trunc i64 %376 to i8
%379 = inttoptr i64 %310 to i8*
store i8 %378, i8* %379, align 1
%380 = call i16** @__ctype_b_loc()
%381 = load i16*, i16** %380, align 8
%382 = ptrtoint i16* %381 to i64
%383 = load i8, i8* %5, align 8
%384 = zext i8 %383 to i64
%385 = mul i64 %384, 2
%386 = add i64 %385, %382
%387 = inttoptr i64 %386 to i16*
%388 = load i16, i16* %387, align 2
%389 = and i16 %388, 1024
%390 = icmp eq i16 %389, 0
%391 = icmp eq i1 %390, false
store i64 %377, i64* %sv_0.951.reg2mem
store i64 %377, i64* %sv_0.10.reg2mem
br i1 %391, label LBL_42, label LBL_44
LBL_42:
%sv_0.951.reload = load i64, i64* %sv_0.951.reg2mem
%392 = load i64, i64* %r9, align 8
%393 = add i64 %392, 1
store i64 %393, i64* %arg6, align 8
%394 = urem i64 %392, 256
%395 = call i64 @FUNC(i64 %394)
%396 = add i64 %sv_0.951.reload, 1
%397 = trunc i64 %395 to i8
%398 = inttoptr i64 %sv_0.951.reload to i8*
store i8 %397, i8* %398, align 1
%399 = call i16** @__ctype_b_loc()
%400 = load i16*, i16** %399, align 8
%401 = ptrtoint i16* %400 to i64
%402 = load i8, i8* %5, align 8
%403 = zext i8 %402 to i64
%404 = mul i64 %403, 2
%405 = add i64 %404, %401
%406 = inttoptr i64 %405 to i16*
%407 = load i16, i16* %406, align 2
%408 = and i16 %407, 1024
%409 = icmp eq i16 %408, 0
%410 = icmp eq i1 %409, false
store i64 %396, i64* %sv_0.951.reg2mem
store i64 %396, i64* %sv_0.10.reg2mem
br i1 %410, label LBL_42, label LBL_44
LBL_43:
%411 = call i16** @__ctype_b_loc()
%412 = load i16*, i16** %411, align 8
%413 = ptrtoint i16* %412 to i64
%414 = load i8, i8* %5, align 8
%415 = zext i8 %414 to i64
%416 = mul i64 %415, 2
%417 = add i64 %416, %413
%418 = inttoptr i64 %417 to i16*
%419 = load i16, i16* %418, align 2
%420 = and i16 %419, 4
%421 = icmp eq i16 %420, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %421, label LBL_48, label LBL_31
LBL_44:
%sv_0.10.reload = load i64, i64* %sv_0.10.reg2mem
%422 = add i64 %sv_0.10.reload, 1
%423 = inttoptr i64 %sv_0.10.reload to i8*
store i8 0, i8* %423, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%424 = icmp ult i64 %indvars.iv.next, 11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %422, i64* %sv_0.11.ph.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %424, label LBL_45, label LBL_48
LBL_45:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%425 = load i8, i8* %5, align 8
%426 = icmp eq i8 %425, 0
%427 = icmp eq i1 %426, false
br i1 %427, label LBL_1.lr.ph, label LBL_47
LBL_46:
%sv_0.11.ph.reload = load i64, i64* %sv_0.11.ph.reg2mem
%428 = mul i64 %indvars.iv.reload, 8
%429 = add i64 %428, %2
%430 = inttoptr i64 %429 to i64*
br label LBL_1
LBL_47:
%sv_1.0.ph69 = trunc i64 %indvars.iv.reload to i32
%431 = bitcast i64* %arg5 to i32*
store i32 %sv_1.0.ph69, i32* %431, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_48
LBL_48:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.11.ph.reload, { 7, 2, 8, 11, 3, 9, 4, 10, 12, 5, 6, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 1, 10, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
uselistorder i64 %sv_0.10.reload, { 1, 0 }
uselistorder i64 %327, { 1, 0 }
uselistorder i64 %310, { 1, 0 }
uselistorder i64 %sv_0.7.reload, { 1, 0 }
uselistorder i64 %sv_0.6.lcssa.reload, { 1, 0 }
uselistorder i8 %.lcssa20.reload, { 1, 0 }
uselistorder i64 %sv_0.643.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.540.reload, { 1, 0 }
uselistorder i64 %sv_0.4.reload, { 1, 0 }
uselistorder i64 %56, { 1, 0 }
uselistorder i64 %sv_0.0.in.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_0.0.lcssa.reload, { 0, 2, 1 }
uselistorder i8 %.lcssa.reload, { 1, 0, 2 }
uselistorder i64 %sv_0.031.reload, { 0, 2, 1 }
uselistorder i8* %5, { 19, 20, 1, 7, 2, 0, 6, 3, 4, 5, 21, 8, 9, 22, 10, 11, 13, 14, 12, 15, 18, 16, 17, 23 }
uselistorder i64* %r9, { 22, 21, 20, 19, 18, 17, 0, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 23 }
uselistorder i64* %sv_0.031.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.137.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.227.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.3.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.540.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.643.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.7.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.849.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.951.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.10.reg2mem, { 0, 3, 6, 2, 5, 9, 8, 7, 1, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.11.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder i16 8192, { 1, 0, 2 }
uselistorder i16 1024, { 2, 0, 3, 4, 1, 5 }
uselistorder i64 (i64)* @pg_tolower, { 4, 3, 2, 1, 0 }
uselistorder i32 3, { 1, 2, 0 }
uselistorder i32 2, { 1, 2, 3, 0 }
uselistorder i8 46, { 0, 1, 4, 5, 6, 7, 2, 3 }
uselistorder i64 1, { 0, 9, 10, 11, 12, 13, 14, 16, 17, 15, 18, 1, 19, 20, 22, 5, 21, 2, 23, 6, 24, 3, 25, 26, 27, 28, 7, 31, 29, 30, 32, 33, 34, 36, 8, 35, 4, 37 }
uselistorder i16 0, { 8, 9, 0, 10, 11, 1, 12, 13, 2, 14, 15, 3, 16, 17, 4, 18, 7, 19, 20, 5, 21, 6, 22 }
uselistorder i16 2048, { 5, 0, 6, 7, 1, 8, 4, 9, 10, 2, 11, 3, 12 }
uselistorder i64 2, { 0, 1, 2, 23, 3, 4, 5, 24, 6, 7, 8, 9, 25, 10, 11, 12, 13, 14, 15, 16, 17, 26, 18, 19, 27, 20, 21, 22 }
uselistorder i16** ()* @__ctype_b_loc, { 18, 19, 0, 20, 25, 1, 21, 11, 2, 12, 13, 14, 3, 15, 22, 4, 23, 24, 17, 7, 8, 9, 5, 16, 6, 10 }
uselistorder i64* %arg6, { 2, 3, 4, 5, 1, 6, 0, 8, 9, 7, 10, 11, 12, 14, 16, 17, 15, 18, 19, 20, 13, 21, 22, 23 }
uselistorder label LBL_48, { 3, 0, 2, 1 }
uselistorder label LBL_44, { 2, 5, 1, 3, 6, 7, 8, 0, 4 }
uselistorder label LBL_42, { 1, 0 }
uselistorder label LBL_38.backedge, { 1, 2, 0 }
uselistorder label LBL_34, { 1, 0 }
uselistorder label LBL_28, { 2, 0, 1 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_7.backedge, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | virtio_net_instance_init_8016 | virtio_net_instance_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %0, align 8
ret i64 %arg1
uselistorder i64 %arg1, { 1, 0 }
} | 0 |
BinRealVul | ff_dwt_decode_6554 | ff_dwt_decode | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = icmp sgt i32 %8, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_7, label LBL_3
LBL_3:
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %8, label LBL_7 [
i32 1, label LBL_4
i32 2, label LBL_5
]
LBL_4:
%11 = call i64 @FUNC(i64 %5, i64 %arg2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%12 = call i64 @FUNC(i64 %5, i64 %arg2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%13 = call i64 @FUNC(i64 %5, i64 %arg2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 2, 0, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4, 6 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_7, { 2, 1, 0, 4, 3, 5 }
} | 0 |
BinRealVul | ntlm_write_message_fields_buffer_6763 | ntlm_write_message_fields_buffer | 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 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp slt i32 %2, 1
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %5, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %6, i64 %10)
%12 = add i64 %5, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %6, i64 %14, i32 %2)
store i64 %15, 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 %1, { 1, 0 }
} | 0 |
BinRealVul | blkg_print_stat_bytes_recursive_8923 | blkg_print_stat_bytes_recursive | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %0, i64 %5, i64 4198722, i64 %3, i64 0, i64 1)
ret i64 0
} | 0 |
BinRealVul | EC_GROUP_set_generator_12774 | EC_GROUP_set_generator | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 1, i64 2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i64* %arg1, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i64 %3)
store i64 %6, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%7 = call i64 @FUNC(i64 %3, i64 %arg2)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_5, label LBL_12
LBL_5:
%11 = icmp eq i64 %arg3, 0
%12 = add i64 %3, 8
br i1 %11, label LBL_7, label LBL_6
LBL_6:
%13 = call i64 @FUNC(i64 %12, i64 %arg3)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_8, label LBL_12
LBL_7:
%17 = call i64 @FUNC(i64 %12)
br label LBL_8
LBL_8:
%18 = icmp eq i64 %arg4, 0
%19 = add i64 %3, 16
br i1 %18, label LBL_10, label LBL_9
LBL_9:
%20 = call i64 @FUNC(i64 %19, i64 %arg4)
%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_11, label LBL_12
LBL_10:
%24 = call i64 @FUNC(i64 %19)
br label LBL_11
LBL_11:
store i64 1, 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 %19, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %3, { 2, 3, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i64 (i64)* @BN_zero, { 1, 0 }
uselistorder i64 (i64, i64)* @BN_copy, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 1, { 0, 3, 1, 2 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_12, { 4, 1, 2, 3, 0, 5 }
} | 1 |
BinRealVul | push_stack_5239 | push_stack | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 24, i64 0)
%2 = icmp eq i64 %1, 0
store i64 24, i64* %rdi.0.reg2mem
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = inttoptr i64 %1 to i32*
%4 = trunc i64 %arg2 to i32
store i32 %4, i32* %3, align 4
%5 = trunc i64 %arg3 to i32
%6 = add i64 %1, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
store i64 %1, i64* %9, align 8
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, 1
store i32 %16, i32* %14, align 4
%17 = add i64 %1, 8
%18 = call i64 @FUNC(i64 %17, i64 %0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %17, i64* %rdi.0.reg2mem
br i1 %21, label LBL_4, label LBL_2
LBL_2:
%22 = inttoptr i64 %17 to i32*
%23 = load i32, i32* %22, align 4
%24 = trunc i64 %arg4 to i32
%25 = urem i32 %24, 256
%26 = or i32 %23, %25
store i32 %26, i32* %22, align 4
%27 = load i32, i32* %14, align 4
%28 = icmp slt i32 %27, 1025
store i64 %17, i64* %storemerge.reg2mem
br i1 %28, label LBL_6, label LBL_3
LBL_3:
%29 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
store i64 %0, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%30 = call i64 @FUNC(i64 %rdi.0.reload, i64 1)
store i64 0, i64* %arg1, align 8
br label LBL_5
LBL_5:
%31 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%32 = trunc i64 %31 to i8
%33 = icmp eq i8 %32, 1
%34 = icmp eq i1 %33, false
store i64 0, i64* %storemerge.reg2mem
br i1 %34, label LBL_5, label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %17, { 0, 2, 1, 3 }
uselistorder i64 %0, { 5, 0, 1, 2, 3, 4 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 0 |
reposvul_c_test | portio_porttype_show_42 | portio_porttype_show | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %2, 4
store i64 -22, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %sv_0 to i64
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 29
%6 = add nsw i64 %5, -32
%7 = add i64 %6, %4
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = bitcast i64* %arg2 to i8*
%11 = inttoptr i64 %9 to i8*
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8* %11)
%13 = sext i32 %12 to i64
store i64 %13, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
reposvul_c_test | cac_process_ACA_39 | cac_process_ACA | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
%1 = call i64 @FUNC(i64 %0, i64 1, i64* nonnull %sv_2, i64* nonnull %sv_1)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = load i64, i64* %sv_1, align 8
%6 = load i64, i64* %sv_2, align 8
%7 = call i64 @FUNC(i64 %0, i64 %4, i64 %6, i64 %5)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = call i64* @malloc(i32 4)
%12 = ptrtoint i64* %11 to i64
store i64 %12, i64* %arg2, align 8
%13 = icmp eq i64* %arg2, null
%14 = icmp eq i1 %13, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%16 = bitcast i64* %arg2 to i32*
store i32 %15, i32* %16, align 4
store i64 %7, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = load i64, i64* %sv_2, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = inttoptr i64 %17 to i64*
call void @free(i64* %19)
br label LBL_6
LBL_6:
%20 = and i64 %sv_0.0.reload, 4294967295
ret i64 %20
uselistorder i64* %sv_2, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | ehci_finish_transfer_9446 | ehci_finish_transfer | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = icmp slt i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4, i64 31)
%6 = trunc i64 %5 to i32
%7 = ptrtoint i32* %arg1 to i64
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = urem i32 %10, 256
%12 = add i32 %11, %2
%13 = udiv i32 %12, 256
%14 = add i32 %13, %6
%15 = urem i32 %12, 256
%16 = zext i32 %14 to i64
%17 = call i64 @FUNC(i64 %7, i64 %16, i64 31)
%18 = load i32, i32* %9, align 4
%19 = and i32 %18, -256
%20 = or i32 %19, %15
store i32 %20, i32* %9, align 4
store i64 %7, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %12, { 1, 0 }
uselistorder i32 256, { 2, 1, 3, 0, 4 }
} | 0 |
BinRealVul | nfs4_open_delegation_recall_9802 | nfs4_open_delegation_recall | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
%3 = call i64 @FUNC(i64 %1)
br label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_19, label LBL_2
LBL_2:
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_18, label LBL_3
LBL_3:
%9 = icmp eq i32 %5, -2
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_19, label LBL_4
LBL_4:
%10 = icmp sgt i32 %5, -2
br i1 %10, label LBL_18, label LBL_5
LBL_5:
%11 = icmp eq i32 %5, -12
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_19, label LBL_6
LBL_6:
%12 = icmp sgt i32 %5, -12
br i1 %12, label LBL_18, label LBL_7
LBL_7:
%13 = icmp eq i32 %5, -116
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_19, label LBL_8
LBL_8:
%14 = icmp sgt i32 %5, -116
br i1 %14, label LBL_18, label LBL_9
LBL_9:
%15 = icmp eq i32 %5, -512
br i1 %15, label LBL_17, label LBL_10
LBL_10:
%16 = icmp sgt i32 %5, -10001
br i1 %16, label LBL_18, label LBL_11
LBL_11:
%17 = icmp sgt i32 %5, -10006
br i1 %17, label LBL_15, label LBL_12
LBL_12:
%18 = icmp sgt i32 %5, -10009
br i1 %18, label LBL_16, label LBL_13
LBL_13:
%19 = icmp eq i32 %5, -10012
store i64 0, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_19, label LBL_14
LBL_14:
%20 = icmp sgt i32 %5, -10013
%21 = add i32 %5, 10011
%22 = icmp ult i32 %21, 3
%or.cond = icmp eq i1 %20, %22
br i1 %or.cond, label LBL_17, label LBL_18
LBL_15:
%23 = inttoptr i64 %3 to i64*
%24 = load i64, i64* %23, align 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = and i64 %4, 4294967295
%28 = call i64 @FUNC(i64 %26, i64 %27)
store i64 %4, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_16:
%29 = inttoptr i64 %3 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
store i64 %4, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_17:
%32 = call i64 @FUNC(i64 %1, i64 %0)
%33 = call i64 @FUNC(i64 %3, i64 %1)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_18:
%34 = and i64 %4, 4294967295
%35 = call i64 @FUNC(i64 %3, i64 %34, i32* nonnull %sv_1)
%36 = load i32, i32* %sv_1, align 4
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 %35, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_1, label LBL_19
LBL_19:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%39 = and i64 %sv_0.0.reload, 4294967295
ret i64 %39
uselistorder i32 %5, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i64 %4, { 6, 3, 4, 5, 0, 1, 2, 7 }
uselistorder i64 %3, { 3, 2, 0, 1 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 7, 8, 9, 2, 3, 1, 4, 6 }
uselistorder i32 -116, { 1, 0 }
uselistorder i32 -12, { 1, 0 }
uselistorder i32 -2, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
uselistorder label LBL_19, { 5, 6, 7, 8, 1, 4, 0, 3, 2 }
} | 0 |
BinRealVul | Report_10667 | Report | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = bitcast i64* %sv_0 to i8*
%1 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %0, i8* %arg1)
%2 = call i32 @strlen(i8* nonnull %0)
%3 = load i64, i64* @gv_0, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = load i64, i64* @gv_0, align 8
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, 100
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i32 %12, %2
%14 = zext i32 %13 to i64
%15 = icmp ult i32 %13, 101
store i64 %14, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_5
LBL_2:
%16 = zext i32 %12 to i64
%17 = add i64 %9, %16
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memmove(i64* %18, i64* nonnull %sv_0, i32 %2)
%20 = load i64, i64* @gv_0, align 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %22, 100
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i32 %25, %2
store i32 %26, i32* %24, align 4
store i64 %22, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%27 = add i64 %7, 108
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i32 %29, %2
%31 = zext i32 %30 to i64
%32 = icmp ult i32 %30, 101
store i64 %31, i64* %rax.0.reg2mem
br i1 %32, label LBL_4, label LBL_5
LBL_4:
%33 = add i64 %7, 8
%34 = zext i32 %29 to i64
%35 = add i64 %33, %34
%36 = inttoptr i64 %35 to i64*
%37 = call i64* @memmove(i64* %36, i64* nonnull %sv_0, i32 %2)
%38 = load i64, i64* @gv_0, align 8
%39 = add i64 %38, 108
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i32 %41, %2
store i32 %42, i32* %40, align 4
store i64 %38, 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 %29, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %7, { 0, 2, 1 }
uselistorder i32 %2, { 0, 5, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memmove, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | chr_testdev_init_16069 | chr_testdev_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 8)
%1 = call i64 @FUNC(i64 24)
%2 = inttoptr i64 %0 to i64*
store i64 %1, i64* %2, align 8
%3 = inttoptr i64 %1 to i64*
store i64 %0, i64* %3, align 8
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
store i64 4198726, i64* %5, align 8
%6 = add i64 %1, 16
%7 = inttoptr i64 %6 to i64*
store i64 4198733, i64* %7, align 8
ret i64 %1
uselistorder i64 %1, { 3, 2, 1, 0, 4 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
uselistorder i64 8, { 1, 0 }
} | 1 |
BinRealVul | ff_h264_decode_ref_pic_list_reordering_137 | ff_h264_decode_ref_pic_list_reordering | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge35.reg2mem = alloca i32
%.reg2mem143 = alloca i64
%.reg2mem141 = alloca i32
%.reg2mem139 = alloca i32
%.reg2mem137 = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge434.reg2mem = alloca i32
%.reg2mem135 = alloca i64
%.reg2mem133 = alloca i32
%rcx.1257.reg2mem = alloca i64
%storemerge1058.reg2mem = alloca i32
%.reg2mem131 = alloca i64
%.reg2mem129 = alloca i32
%rcx.11.reg2mem = alloca i64
%.reg2mem127 = alloca i32
%rcx.10.reg2mem = alloca i64
%sv_0.113.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%rcx.9.lcssa.reg2mem = alloca i64
%indvars.iv78.reg2mem = alloca i64
%rcx.9.ph.reg2mem = alloca i64
%storemerge7.lcssa.reg2mem = alloca i32
%storemerge744.reg2mem = alloca i32
%.reg2mem125 = alloca i32
%sv_0.114.reg2mem = alloca i32
%rcx.816.reg2mem = alloca i64
%sv_0.183.reg2mem = alloca i32
%sv_1.284.reg2mem = alloca i32*
%rcx.8.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32*
%rcx.6.ph.reg2mem = alloca i64
%.reg2mem123 = alloca i32
%rcx.3.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%rcx.439.reg2mem = alloca i64
%storemerge840.reg2mem = alloca i32
%sv_0.051.reg2mem = alloca i32
%rcx.152.reg2mem = alloca i64
%storemerge653.reg2mem = alloca i32
%.reg2mem121 = alloca i32
%rcx.0.lcssa.reg2mem = alloca i64
%storemerge1136.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%sv_3 = alloca i32, align 4
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %4)
%7 = trunc i64 %3 to i32
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_59, label LBL_1
LBL_1:
%9 = bitcast i64* %rdi to i32*
%10 = add i64 %4, 4
%11 = add i64 %4, 2064
%12 = add i64 %4, 4712
%13 = add i64 %4, 4632
%14 = inttoptr i64 %13 to i32*
%15 = add i64 %4, 4628
%16 = inttoptr i64 %15 to i32*
%17 = bitcast i32* %sv_3 to i64*
%18 = add i64 %4, 4624
%19 = inttoptr i64 %18 to i32*
%20 = add i64 %4, 4112
%21 = add i64 %4, 4368
%22 = add i64 %4, 4704
%23 = inttoptr i64 %22 to i64*
store i32 %7, i32* %.reg2mem129
store i64 0, i64* %.reg2mem131
store i32 0, i32* %storemerge1058.reg2mem
br label LBL_45
LBL_2:
%storemerge1136.reload = load i32, i32* %storemerge1136.reg2mem
%.reload = load i64, i64* %.reg2mem
%24 = add nsw i64 %.reload, %190
%25 = mul i64 %24, 32
%26 = add i64 %25, %11
%27 = or i64 %25, 16
%28 = add i64 %27, %4
%29 = call i64 @FUNC(i64 %28, i64 %26)
%30 = add i32 %storemerge1136.reload, 1
%31 = load i32, i32* %187, align 4
%32 = zext i32 %31 to i64
%33 = sext i32 %30 to i64
%34 = icmp slt i64 %33, %32
store i64 %33, i64* %.reg2mem
store i32 %30, i32* %storemerge1136.reg2mem
store i64 %27, i64* %rcx.0.lcssa.reg2mem
br i1 %34, label LBL_2, label LBL_3
LBL_3:
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%35 = call i64 @FUNC(i64 %12)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
store i32 %.reload130, i32* %.reg2mem127
store i64 %rcx.0.lcssa.reload, i64* %rcx.11.reg2mem
br i1 %37, label LBL_44, label LBL_4
LBL_4:
%38 = load i32, i32* %14, align 4
%39 = call i64 @FUNC(i64 %12)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 3
store i32 %.reload130, i32* %.reg2mem127
store i64 %rcx.0.lcssa.reload, i64* %rcx.11.reg2mem
br i1 %41, label LBL_44, label LBL_5
LBL_5:
%42 = mul i64 %.reload132, 32
store i32 %40, i32* %.reg2mem121
store i32 0, i32* %storemerge653.reg2mem
store i64 %rcx.0.lcssa.reload, i64* %rcx.152.reg2mem
store i32 %38, i32* %sv_0.051.reg2mem
br label LBL_6
LBL_6:
%rcx.152.reload = load i64, i64* %rcx.152.reg2mem
%storemerge653.reload = load i32, i32* %storemerge653.reg2mem
%43 = load i32, i32* %187, align 4
%44 = zext i32 %43 to i64
%45 = sext i32 %storemerge653.reload to i64
%46 = icmp slt i64 %45, %44
br i1 %46, label LBL_8, label LBL_7
LBL_7:
%47 = load i64, i64* %23, align 8
%48 = call i64 @FUNC(i64 %47, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.152.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_59
LBL_8:
%.reload122 = load i32, i32* %.reg2mem121
%49 = icmp ult i32 %.reload122, 3
br i1 %49, label LBL_9, label LBL_41
LBL_9:
%sv_0.051.reload = load i32, i32* %sv_0.051.reg2mem
%50 = icmp eq i32 %.reload122, 2
%51 = call i64 @FUNC(i64 %12)
%52 = trunc i64 %51 to i32
br i1 %50, label LBL_21, label LBL_10
LBL_10:
%53 = add i32 %52, 1
%54 = load i32, i32* %16, align 4
%55 = icmp ugt i32 %53, %54
br i1 %55, label LBL_11, label LBL_12
LBL_11:
%56 = load i64, i64* %23, align 8
%57 = call i64 @FUNC(i64 %56, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.152.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_59
LBL_12:
%58 = icmp eq i32 %.reload122, 0
%59 = icmp eq i1 %58, false
%60 = sub i32 0, %52
%61 = sub i32 %60, 1
%storemerge9.p = select i1 %59, i32 %53, i32 %61
%storemerge9 = add i32 %storemerge9.p, %sv_0.051.reload
%62 = add i32 %54, -1
%63 = and i32 %62, %storemerge9
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %4, i64 %64, i64* nonnull %17)
%66 = trunc i64 %65 to i32
%67 = load i32, i32* %19, align 4
%storemerge838 = add i32 %67, -1
%68 = icmp slt i32 %storemerge838, 0
%69 = icmp eq i1 %68, false
store i32 %storemerge838, i32* %storemerge840.reg2mem
store i64 %64, i64* %rcx.439.reg2mem
store i32* null, i32** %sv_1.2.reg2mem
store i32 %storemerge838, i32* %sv_2.0.reg2mem
store i64 %64, i64* %rcx.8.reg2mem
br i1 %69, label LBL_13, label LBL_29
LBL_13:
%rcx.439.reload = load i64, i64* %rcx.439.reg2mem
%storemerge840.reload = load i32, i32* %storemerge840.reg2mem
%70 = sext i32 %storemerge840.reload to i64
%71 = mul i64 %70, 8
%72 = add i64 %20, %71
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = icmp eq i32 %76, 0
%78 = icmp eq i1 %77, false
store i64 %rcx.439.reload, i64* %rcx.2.reg2mem
br i1 %78, label LBL_15, label LBL_14
LBL_14:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_3, i64 0, i64 0), i32 117, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
store i64 ptrtoint ([39 x i8]* @gv_4 to i64), i64* %rcx.2.reg2mem
br label LBL_15
LBL_15:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%79 = add i64 %74, 4
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = icmp eq i32 %81, 0
store i64 %rcx.2.reload, i64* %rcx.3.reg2mem
br i1 %82, label LBL_17, label LBL_16
LBL_16:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_3, i64 0, i64 0), i32 118, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
store i64 ptrtoint ([39 x i8]* @gv_4 to i64), i64* %rcx.3.reg2mem
br label LBL_17
LBL_17:
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%83 = add i64 %74, 12
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = icmp eq i32 %85, %66
%87 = icmp eq i1 %86, false
br i1 %87, label LBL_19, label LBL_18
LBL_18:
%88 = load i32, i32* %75, align 4
%89 = load i32, i32* %sv_3, align 4
%90 = and i32 %89, %88
%91 = icmp eq i32 %90, 0
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_20, label LBL_19
LBL_19:
%storemerge8 = add i32 %storemerge840.reload, -1
%93 = icmp slt i32 %storemerge8, 0
%94 = icmp eq i1 %93, false
store i32 %storemerge8, i32* %storemerge840.reg2mem
store i64 %rcx.3.reload, i64* %rcx.439.reg2mem
store i32* %75, i32** %sv_1.2.reg2mem
store i32 %storemerge8, i32* %sv_2.0.reg2mem
store i64 %rcx.3.reload, i64* %rcx.8.reg2mem
br i1 %94, label LBL_13, label LBL_29
LBL_20:
%95 = add i64 %74, 8
%96 = inttoptr i64 %95 to i32*
store i32 %63, i32* %96, align 4
store i32* %75, i32** %sv_1.2.reg2mem
store i32 %storemerge840.reload, i32* %sv_2.0.reg2mem
store i64 %rcx.3.reload, i64* %rcx.8.reg2mem
br label LBL_29
LBL_21:
%97 = and i64 %51, 4294967295
%98 = call i64 @FUNC(i64 %4, i64 %97, i64* nonnull %17)
%99 = trunc i64 %98 to i32
%100 = icmp slt i32 %99, 32
br i1 %100, label LBL_23, label LBL_22
LBL_22:
%101 = load i64, i64* %23, align 8
%102 = call i64 @FUNC(i64 %101, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_6, i64 0, i64 0), i64 %97, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_59
LBL_23:
%sext = mul i64 %98, 4294967296
%103 = ashr exact i64 %sext, 29
%104 = add i64 %21, %103
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = icmp eq i64 %106, 0
store i64 %97, i64* %rcx.816.reg2mem
store i32 %sv_0.051.reload, i32* %sv_0.114.reg2mem
br i1 %107, label LBL_32, label LBL_24
LBL_24:
%108 = inttoptr i64 %106 to i32*
%109 = load i32, i32* %108, align 4
%110 = icmp eq i32 %109, 0
%111 = icmp eq i1 %110, false
store i32 %109, i32* %.reg2mem123
store i64 %97, i64* %rcx.6.ph.reg2mem
br i1 %111, label LBL_26, label LBL_25
LBL_25:
call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_3, i64 0, i64 0), i32 134, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
%.pre = load i32, i32* %108, align 4
store i32 %.pre, i32* %.reg2mem123
store i64 ptrtoint ([39 x i8]* @gv_4 to i64), i64* %rcx.6.ph.reg2mem
br label LBL_26
LBL_26:
%rcx.6.ph.reload = load i64, i64* %rcx.6.ph.reg2mem
%.reload124 = load i32, i32* %.reg2mem123
%112 = load i32, i32* %sv_3, align 4
%113 = and i32 %112, %.reload124
%114 = icmp eq i32 %113, 0
store i64 %rcx.6.ph.reload, i64* %rcx.816.reg2mem
store i32 %sv_0.051.reload, i32* %sv_0.114.reg2mem
br i1 %114, label LBL_32, label LBL_27
LBL_27:
%115 = add i64 %106, 8
%116 = inttoptr i64 %115 to i32*
store i32 %52, i32* %116, align 4
%117 = add i64 %106, 4
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = icmp eq i32 %119, 0
%121 = icmp eq i1 %120, false
store i32* %108, i32** %sv_1.284.reg2mem
store i32 %sv_0.051.reload, i32* %sv_0.183.reg2mem
br i1 %121, label LBL_30, label LBL_28
LBL_28:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_3, i64 0, i64 0), i32 137, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
store i32* %108, i32** %sv_1.284.reg2mem
store i32 %sv_0.051.reload, i32* %sv_0.183.reg2mem
br label LBL_30
LBL_29:
%rcx.8.reload = load i64, i64* %rcx.8.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.2.reload = load i32*, i32** %sv_1.2.reg2mem
%122 = icmp slt i32 %sv_2.0.reload, 0
%123 = icmp eq i1 %122, false
store i32* %sv_1.2.reload, i32** %sv_1.284.reg2mem
store i32 %63, i32* %sv_0.183.reg2mem
store i64 %rcx.8.reload, i64* %rcx.816.reg2mem
store i32 %63, i32* %sv_0.114.reg2mem
br i1 %123, label LBL_30, label LBL_32
LBL_30:
%sv_0.183.reload = load i32, i32* %sv_0.183.reg2mem
%sv_1.284.reload = load i32*, i32** %sv_1.284.reg2mem
%124 = ptrtoint i32* %sv_1.284.reload to i64
%125 = add i32 %storemerge653.reload, 1
%126 = zext i32 %125 to i64
%127 = load i32, i32* %187, align 4
%128 = icmp ult i32 %125, %127
store i64 %126, i64* %rcx.9.lcssa.reg2mem
br i1 %128, label LBL_31, label LBL_40
LBL_31:
%129 = add i64 %124, 8
%130 = inttoptr i64 %129 to i32*
%131 = add i64 %124, 4
%132 = inttoptr i64 %131 to i32*
%133 = load i32, i32* %132, align 4
store i32 %125, i32* %.reg2mem125
store i32 %storemerge653.reload, i32* %storemerge744.reg2mem
br label LBL_33
LBL_32:
%sv_0.114.reload = load i32, i32* %sv_0.114.reg2mem
%rcx.816.reload = load i64, i64* %rcx.816.reg2mem
%134 = load i64, i64* %23, align 8
%135 = call i64 @FUNC(i64 %134, i64 0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_9, i64 0, i64 0), i64 %rcx.816.reload, i64 %2, i64 %1)
%136 = add nsw i64 %42, %45
%137 = mul i64 %136, 32
%138 = or i64 %137, 16
%139 = add i64 %138, %4
%140 = inttoptr i64 %139 to i64*
%141 = call i64* @memset(i64* %140, i32 0, i32 32)
%.pre82 = add i32 %storemerge653.reload, 1
store i32 %.pre82, i32* %.pre-phi.reg2mem
store i32 %sv_0.114.reload, i32* %sv_0.113.reg2mem
store i64 %rcx.816.reload, i64* %rcx.10.reg2mem
br label LBL_42
LBL_33:
%storemerge744.reload = load i32, i32* %storemerge744.reg2mem
%.reload126 = load i32, i32* %.reg2mem125
%142 = sext i32 %storemerge744.reload to i64
%143 = add nsw i64 %42, %142
%144 = mul i64 %143, 32
%145 = add i64 %144, %4
%146 = add i64 %145, 20
%147 = inttoptr i64 %146 to i32*
%148 = load i32, i32* %147, align 4
%149 = icmp eq i32 %133, %148
%150 = icmp eq i1 %149, false
br i1 %150, label LBL_35, label LBL_34
LBL_34:
%151 = load i32, i32* %130, align 4
%152 = add i64 %145, 24
%153 = inttoptr i64 %152 to i32*
%154 = load i32, i32* %153, align 4
%155 = icmp eq i32 %151, %154
store i32 %storemerge744.reload, i32* %storemerge7.lcssa.reg2mem
store i64 %4, i64* %rcx.9.ph.reg2mem
br i1 %155, label LBL_37, label LBL_35
LBL_35:
%156 = add i32 %.reload126, 1
%157 = icmp ult i32 %156, %127
store i32 %156, i32* %.reg2mem125
store i32 %.reload126, i32* %storemerge744.reg2mem
br i1 %157, label LBL_33, label LBL_36
LBL_36:
%158 = zext i32 %156 to i64
store i32 %.reload126, i32* %storemerge7.lcssa.reg2mem
store i64 %158, i64* %rcx.9.ph.reg2mem
br label LBL_37
LBL_37:
%rcx.9.ph.reload = load i64, i64* %rcx.9.ph.reg2mem
%storemerge7.lcssa.reload = load i32, i32* %storemerge7.lcssa.reg2mem
%159 = icmp sgt i32 %storemerge7.lcssa.reload, %storemerge653.reload
store i64 %rcx.9.ph.reload, i64* %rcx.9.lcssa.reg2mem
br i1 %159, label LBL_38, label LBL_40
LBL_38:
%160 = sext i32 %storemerge7.lcssa.reload to i64
store i64 %160, i64* %indvars.iv78.reg2mem
br label LBL_39
LBL_39:
%indvars.iv78.reload = load i64, i64* %indvars.iv78.reg2mem
%indvars.iv.next79 = add nsw i64 %indvars.iv78.reload, -1
%161 = add nsw i64 %indvars.iv.next79, %42
%162 = mul i64 %161, 32
%163 = or i64 %162, 16
%164 = add i64 %163, %4
%165 = add nsw i64 %indvars.iv78.reload, %42
%166 = mul i64 %165, 32
%167 = or i64 %166, 16
%168 = add i64 %167, %4
%169 = call i64 @FUNC(i64 %168, i64 %164)
%170 = icmp sgt i64 %indvars.iv.next79, %45
store i64 %indvars.iv.next79, i64* %indvars.iv78.reg2mem
store i64 %167, i64* %rcx.9.lcssa.reg2mem
br i1 %170, label LBL_39, label LBL_40
LBL_40:
%rcx.9.lcssa.reload = load i64, i64* %rcx.9.lcssa.reg2mem
%171 = add nsw i64 %42, %45
%172 = mul i64 %171, 32
%173 = or i64 %172, 16
%174 = add i64 %173, %4
%175 = call i64 @FUNC(i64 %174, i64 %124)
store i32 %125, i32* %.pre-phi.reg2mem
store i32 %sv_0.183.reload, i32* %sv_0.113.reg2mem
store i64 %rcx.9.lcssa.reload, i64* %rcx.10.reg2mem
br label LBL_42
LBL_41:
%176 = load i64, i64* %23, align 8
%177 = call i64 @FUNC(i64 %176, i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_10, i64 0, i64 0), i64 %rcx.152.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_59
LBL_42:
%rcx.10.reload = load i64, i64* %rcx.10.reg2mem
%sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%178 = call i64 @FUNC(i64 %12)
%179 = trunc i64 %178 to i32
%180 = icmp eq i32 %179, 3
store i32 %179, i32* %.reg2mem121
store i32 %.pre-phi.reload, i32* %storemerge653.reg2mem
store i64 %rcx.10.reload, i64* %rcx.152.reg2mem
store i32 %sv_0.113.reload, i32* %sv_0.051.reg2mem
br i1 %180, label LBL_43, label LBL_6
LBL_43:
%.pre120 = load i32, i32* %9, align 8
store i32 %.pre120, i32* %.reg2mem127
store i64 %rcx.10.reload, i64* %rcx.11.reg2mem
br label LBL_44
LBL_44:
%rcx.11.reload = load i64, i64* %rcx.11.reg2mem
%.reload128 = load i32, i32* %.reg2mem127
%181 = add i32 %storemerge1058.reload, 1
%182 = zext i32 %.reload128 to i64
%183 = sext i32 %181 to i64
%184 = icmp slt i64 %183, %182
store i32 %.reload128, i32* %.reg2mem129
store i64 %183, i64* %.reg2mem131
store i32 %181, i32* %storemerge1058.reg2mem
store i64 %rcx.11.reload, i64* %rcx.1257.reg2mem
br i1 %184, label LBL_45, label LBL_47
LBL_45:
%rcx.1257.reload = load i64, i64* %rcx.1257.reg2mem
%storemerge1058.reload = load i32, i32* %storemerge1058.reg2mem
%.reload132 = load i64, i64* %.reg2mem131
%.reload130 = load i32, i32* %.reg2mem129
%185 = mul i64 %.reload132, 4
%186 = add i64 %185, %10
%187 = inttoptr i64 %186 to i32*
%188 = load i32, i32* %187, align 4
%189 = icmp eq i32 %188, 0
store i64 %rcx.1257.reload, i64* %rcx.0.lcssa.reg2mem
br i1 %189, label LBL_3, label LBL_2.lr.ph
LBL_46:
%190 = mul i64 %.reload132, 32
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1136.reg2mem
br label LBL_2
LBL_47:
%phitmp = icmp eq i32 %.reload128, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %phitmp, label LBL_59, label LBL_48
LBL_48:
%191 = add i64 %4, 40
%192 = add i64 %4, 4636
store i32 %.reload128, i32* %.reg2mem141
store i64 0, i64* %.reg2mem143
store i32 0, i32* %storemerge35.reg2mem
br label LBL_57
LBL_49:
%storemerge434.reload = load i32, i32* %storemerge434.reg2mem
%.reload136 = load i64, i64* %.reg2mem135
%.reload134 = load i32, i32* %.reg2mem133
%193 = add nsw i64 %.reload136, %225
%194 = mul i64 %193, 32
%195 = add i64 %191, %194
%196 = inttoptr i64 %195 to i64*
%197 = load i64, i64* %196, align 8
%198 = icmp eq i64 %197, 0
%199 = icmp eq i1 %198, false
store i32 %.reload134, i32* %.reg2mem137
br i1 %199, label LBL_54, label LBL_50
LBL_50:
%200 = load i32, i32* %229, align 4
%201 = load i64, i64* %23, align 8
%202 = zext i32 %200 to i64
%203 = call i64 @FUNC(i64 %201, i64 0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_11, i64 0, i64 0), i64 %202, i64 %2, i64 %1)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_51
LBL_51:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%204 = mul i64 %indvars.iv.reload, 4
%205 = add i64 %192, %204
%206 = inttoptr i64 %205 to i32*
store i32 -2147483648, i32* %206, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_52, label LBL_51
LBL_52:
%207 = load i64, i64* %231, align 8
%208 = icmp eq i64 %207, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %208, label LBL_59, label LBL_53
LBL_53:
%209 = or i64 %194, 16
%210 = add i64 %209, %4
%211 = call i64 @FUNC(i64 %210, i64 %232)
%.pre80 = load i32, i32* %222, align 4
store i32 %.pre80, i32* %.reg2mem137
br label LBL_54
LBL_54:
%.reload138 = load i32, i32* %.reg2mem137
%212 = add i32 %storemerge434.reload, 1
%213 = zext i32 %.reload138 to i64
%214 = sext i32 %212 to i64
%215 = icmp slt i64 %214, %213
store i32 %.reload138, i32* %.reg2mem133
store i64 %214, i64* %.reg2mem135
store i32 %212, i32* %storemerge434.reg2mem
br i1 %215, label LBL_49, label LBL_55
LBL_55:
%.pre81 = load i32, i32* %9, align 8
store i32 %.pre81, i32* %.reg2mem139
br label LBL_56
LBL_56:
%.reload140 = load i32, i32* %.reg2mem139
%216 = add i32 %storemerge35.reload, 1
%217 = zext i32 %.reload140 to i64
%218 = sext i32 %216 to i64
%219 = icmp slt i64 %218, %217
store i32 %.reload140, i32* %.reg2mem141
store i64 %218, i64* %.reg2mem143
store i32 %216, i32* %storemerge35.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %219, label LBL_57, label LBL_59
LBL_57:
%storemerge35.reload = load i32, i32* %storemerge35.reg2mem
%.reload144 = load i64, i64* %.reg2mem143
%.reload142 = load i32, i32* %.reg2mem141
%220 = mul i64 %.reload144, 4
%221 = add i64 %220, %10
%222 = inttoptr i64 %221 to i32*
%223 = load i32, i32* %222, align 4
%224 = icmp eq i32 %223, 0
store i32 %.reload142, i32* %.reg2mem139
br i1 %224, label LBL_56, label LBL_49.lr.ph
LBL_58:
%225 = mul i64 %.reload144, 32
%226 = mul i64 %.reload144, 1024
%227 = add i64 %226, %4
%228 = add i64 %227, 2080
%229 = inttoptr i64 %228 to i32*
%230 = add i64 %227, 2088
%231 = inttoptr i64 %230 to i64*
%232 = add i64 %226, %11
store i32 %223, i32* %.reg2mem133
store i64 0, i64* %.reg2mem135
store i32 0, i32* %storemerge434.reg2mem
br label LBL_49
LBL_59:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %226, { 1, 0 }
uselistorder i32* %222, { 1, 0 }
uselistorder i64 %.reload144, { 2, 1, 0 }
uselistorder i32 %.reload138, { 1, 0 }
uselistorder i32* %187, { 2, 3, 0, 1 }
uselistorder i64 %.reload132, { 2, 1, 0 }
uselistorder i32 %.reload128, { 0, 3, 1, 2 }
uselistorder i64 %indvars.iv.next79, { 0, 2, 1 }
uselistorder i64 %indvars.iv78.reload, { 1, 0 }
uselistorder i32 %storemerge7.lcssa.reload, { 1, 0 }
uselistorder i32 %156, { 1, 0, 2 }
uselistorder i64 %124, { 0, 2, 1 }
uselistorder i32* %108, { 1, 0, 2, 3 }
uselistorder i64 %97, { 1, 0, 2, 3 }
uselistorder i64 %rcx.3.reload, { 1, 0, 2 }
uselistorder i32* %75, { 1, 0, 2, 3 }
uselistorder i32 %storemerge840.reload, { 0, 2, 1 }
uselistorder i32 %52, { 1, 0, 2 }
uselistorder i32 %sv_0.051.reload, { 3, 2, 0, 1, 4 }
uselistorder i32 %.reload122, { 1, 0, 2 }
uselistorder i64 %45, { 0, 2, 1, 3 }
uselistorder i32 %storemerge653.reload, { 1, 4, 0, 2, 3 }
uselistorder i64 %rcx.152.reload, { 1, 2, 0 }
uselistorder i64 %42, { 3, 1, 0, 4, 2 }
uselistorder i64 %rcx.0.lcssa.reload, { 2, 0, 1 }
uselistorder i64* %23, { 0, 3, 5, 1, 2, 4 }
uselistorder i64 %12, { 2, 1, 0, 3 }
uselistorder i32* %9, { 1, 0 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64 %4, { 2, 1, 12, 13, 4, 5, 6, 0, 7, 3, 18, 15, 8, 17, 10, 11, 14, 16, 19, 21, 9, 20, 22, 23 }
uselistorder i64 %2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge1136.reg2mem, { 2, 1, 0 }
uselistorder i64* %rcx.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem121, { 1, 0, 2 }
uselistorder i32* %storemerge653.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.152.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.051.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge840.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.439.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem123, { 0, 2, 1 }
uselistorder i64* %rcx.6.ph.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_1.2.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rcx.8.reg2mem, { 0, 3, 1, 2 }
uselistorder i32** %sv_1.284.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.183.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rcx.816.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %sv_0.114.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %.reg2mem125, { 1, 0, 2 }
uselistorder i32* %storemerge744.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge7.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.9.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv78.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.9.lcssa.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.113.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.10.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem133, { 2, 1, 0 }
uselistorder i64* %.reg2mem135, { 2, 1, 0 }
uselistorder i32* %storemerge434.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem137, { 0, 2, 1 }
uselistorder i32* %.reg2mem139, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 6, 7, 8, 5, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 0, 3, 2, 1 }
uselistorder [39 x i8]* @gv_4, { 1, 0 }
uselistorder i64 8, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 (i64, i64, i64*)* @pic_num_extract, { 1, 0 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 9, 6, 7, 8, 0, 10 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 3, { 2, 1, 0 }
uselistorder i64 (i64)* @get_ue_golomb_31, { 1, 0 }
uselistorder i64 (i64, i64)* @COPY_PICTURE, { 3, 1, 2, 0 }
uselistorder i64 16, { 6, 0, 4, 2, 3, 5, 1, 7, 8 }
uselistorder i32 0, { 1, 8, 0, 6, 4, 7, 11, 12, 13, 14, 15, 19, 16, 17, 18, 10, 5, 20, 3, 21, 2, 9, 22 }
uselistorder label LBL_59, { 0, 1, 3, 4, 5, 6, 7, 2 }
uselistorder label LBL_57, { 1, 0 }
uselistorder label LBL_45, { 1, 0 }
uselistorder label LBL_40, { 0, 2, 1 }
uselistorder label LBL_39, { 1, 0 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_32, { 2, 1, 0 }
uselistorder label LBL_30, { 2, 1, 0 }
uselistorder label LBL_29, { 2, 0, 1 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | f2fs_read_single_page_7478 | f2fs_read_single_page | define i64 @FUNC(i32* %arg1, i32* %arg2, i32 %arg3, i32* %arg4, i64* %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.4.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rcx = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg5 to i64
%5 = trunc i64 %1 to i32
%6 = urem i32 %5, 32
%7 = shl i32 1, %6
%storemerge = zext i32 %7 to i64
%8 = and i64 %2, 4294967295
%9 = zext i32 %arg3 to i64
%10 = add nuw nsw i64 %8, %9
%11 = ptrtoint i32* %arg1 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = add nuw nsw i64 %storemerge, 4294967295
%14 = add i64 %13, %12
%15 = and i64 %14, 4294967295
%16 = icmp eq i32 %6, 0
%17 = trunc i64 %14 to i32
%18 = lshr i32 %17, %6
%19 = zext i32 %18 to i64
%rdx.0 = select i1 %16, i64 %15, i64 %19
%20 = icmp ugt i64 %10, %rdx.0
%spec.select = select i1 %20, i64 %rdx.0, i64 %10
%21 = icmp ugt i64 %spec.select, %8
%22 = icmp eq i1 %21, false
store i32 0, i32* %sv_0.1.reg2mem
br i1 %22, label LBL_11, label LBL_1
LBL_1:
%23 = urem i64 %3, 2
%24 = icmp eq i64 %23, 0
%.pre6 = ptrtoint i32* %arg4 to i64
%.pre8 = add i64 %.pre6, 8
%.pre10 = inttoptr i64 %.pre8 to i64*
br i1 %24, label LBL_4, label LBL_2
LBL_2:
%25 = load i64, i64* %.pre10, align 8
%26 = icmp ult i64 %25, %8
br i1 %26, label LBL_3, label LBL_4
LBL_3:
%27 = add i64 %.pre6, 16
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %29, %25
%31 = icmp ugt i64 %30, %8
store i64 %25, i64* %.reg2mem
store i32 0, i32* %sv_0.012.reg2mem
br i1 %31, label LBL_7, label LBL_4
LBL_4:
store i64 %8, i64* %.pre10, align 8
%32 = sub nsw i64 %spec.select, %8
%33 = add i64 %.pre6, 16
%34 = inttoptr i64 %33 to i64*
store i64 %32, i64* %34, align 8
%35 = call i64 @FUNC(i64 %11, i64 %.pre6, i64 0, i64 0)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 %4, i64* %sv_1.4.reg2mem
store i32 %36, i32* %sv_0.2.reg2mem
br i1 %38, label LBL_25, label LBL_5
LBL_5:
%39 = bitcast i64* %rcx to i32*
%.pre = load i32, i32* %39, align 8
%.pre5 = urem i32 %.pre, 2
%40 = icmp eq i32 %.pre5, 0
store i32 %36, i32* %sv_0.1.reg2mem
br i1 %40, label LBL_11, label LBL_5.LBL_7_crit_edge
LBL_6:
%.pre13 = load i64, i64* %.pre10, align 8
store i64 %.pre13, i64* %.reg2mem
store i32 %36, i32* %sv_0.012.reg2mem
br label LBL_7
LBL_7:
%sv_0.012.reload = load i32, i32* %sv_0.012.reg2mem
%.reload = load i64, i64* %.reg2mem
%41 = add i64 %.pre6, 24
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = ptrtoint i32* %arg2 to i64
%45 = call i64 @FUNC(i64 %44)
%46 = call i64 @FUNC(i64 %44)
%47 = trunc i64 %46 to i8
%48 = icmp eq i8 %47, 1
br i1 %48, label LBL_10, label LBL_8
LBL_8:
%49 = call i64 @FUNC(i64 %44)
%50 = trunc i64 %49 to i8
%51 = icmp eq i8 %50, 1
br i1 %51, label LBL_10, label LBL_9
LBL_9:
%52 = call i64 @FUNC(i64 %44)
%53 = icmp eq i64* %arg5, null
store i64 %4, i64* %sv_1.3.reg2mem
br i1 %53, label LBL_24, label LBL_23
LBL_10:
%54 = add i64 %43, %8
%55 = sub i64 %54, %.reload
%56 = call i64 @FUNC(i64 %11)
%57 = call i64 @FUNC(i64 %56, i64 %55, i64 0)
%58 = trunc i64 %57 to i8
%59 = icmp eq i8 %58, 1
store i64 %4, i64* %sv_1.4.reg2mem
store i32 1, i32* %sv_0.2.reg2mem
br i1 %59, label LBL_14, label LBL_25
LBL_11:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%60 = ptrtoint i32* %arg2 to i64
%61 = call i64 @FUNC(i64 %60, i64 0, i64 4096)
%62 = call i64 @FUNC(i64 %60)
%63 = trunc i64 %62 to i8
%64 = icmp eq i8 %63, 1
br i1 %64, label LBL_13, label LBL_12
LBL_12:
%65 = call i64 @FUNC(i64 %60)
br label LBL_13
LBL_13:
%66 = call i64 @FUNC(i64 %60)
store i64 %4, i64* %sv_1.4.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_14:
%67 = icmp eq i64* %arg5, null
store i64 %4, i64* %sv_1.1.reg2mem
br i1 %67, label LBL_18, label LBL_15
LBL_15:
%68 = ptrtoint i64* %arg6 to i64
%69 = add i64 %55, -1
%70 = icmp eq i64 %69, %68
%71 = icmp eq i1 %70, false
store i64 %4, i64* %sv_1.0.reg2mem
br i1 %71, label LBL_17, label LBL_16
LBL_16:
%72 = call i64 @FUNC(i64 %11)
%73 = call i64 @FUNC(i64 %72, i64 %55, i64 %4)
%74 = trunc i64 %73 to i8
%75 = icmp eq i8 %74, 1
store i64 %4, i64* %sv_1.0.reg2mem
store i64 %4, i64* %sv_1.1.reg2mem
br i1 %75, label LBL_18, label LBL_17
LBL_17:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%76 = call i64 @FUNC(i64 %11)
%77 = call i64 @FUNC(i64 %76, i64 %sv_1.0.reload, i64 0)
store i64 0, i64* %sv_1.1.reg2mem
br label LBL_18
LBL_18:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%78 = icmp eq i64 %sv_1.1.reload, 0
%79 = icmp eq i1 %78, false
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br i1 %79, label LBL_21, label LBL_19
LBL_19:
%80 = urem i64 %arg7, 256
%81 = call i64 @FUNC(i64 %11, i64 %55, i32 %arg3, i64 %80)
%82 = call i64 @FUNC(i64 %81)
%83 = trunc i64 %82 to i8
%84 = icmp eq i8 %83, 0
store i64 %81, i64* %sv_1.2.reg2mem
br i1 %84, label LBL_21, label LBL_20
LBL_20:
%85 = call i64 @FUNC(i64 %81)
%86 = trunc i64 %85 to i32
store i64 0, i64* %sv_1.4.reg2mem
store i32 %86, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_21:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%87 = call i64 @FUNC(i64 %11, i64 %55)
%88 = call i64 @FUNC(i64 %sv_1.2.reload, i64 %44, i32 %7, i64 0)
%89 = trunc i64 %88 to i32
%90 = icmp ugt i32 %7, %89
store i64 %sv_1.2.reload, i64* %sv_1.0.reg2mem
br i1 %90, label LBL_17, label LBL_22
LBL_22:
%91 = call i64 @FUNC(i64 %11)
%92 = call i64 @FUNC(i64 %91, i64 0)
%93 = call i64 @FUNC(i64 %44)
store i64 %55, i64* %arg6, align 8
store i64 %sv_1.2.reload, i64* %sv_1.4.reg2mem
store i32 %sv_0.012.reload, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_23:
%94 = call i64 @FUNC(i64 %11)
%95 = call i64 @FUNC(i64 %94, i64 %4, i64 0)
store i64 0, i64* %sv_1.3.reg2mem
br label LBL_24
LBL_24:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%96 = call i64 @FUNC(i64 %44)
store i64 %sv_1.3.reload, i64* %sv_1.4.reg2mem
store i32 %sv_0.012.reload, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_25:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem
store i64 %sv_1.4.reload, i64* %arg5, align 8
%97 = zext i32 %sv_0.2.reload to i64
ret i64 %97
uselistorder i64 %sv_1.2.reload, { 0, 2, 1 }
uselistorder i64 %81, { 1, 0, 2 }
uselistorder i64 %60, { 1, 0, 2, 3 }
uselistorder i64 %55, { 3, 4, 2, 0, 1, 5 }
uselistorder i64 %44, { 0, 3, 4, 1, 2, 5, 6 }
uselistorder i32 %36, { 2, 1, 0, 3 }
uselistorder i64 %11, { 0, 4, 5, 3, 2, 1, 6, 7, 8 }
uselistorder i64 %8, { 0, 3, 2, 6, 5, 4, 1 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i32 %6, { 1, 2, 0 }
uselistorder i64 %4, { 8, 4, 6, 9, 7, 5, 2, 0, 3, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.012.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 3, 0, 1, 2 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.4.reg2mem, { 0, 2, 4, 3, 6, 1, 5 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 4, 3, 6, 1, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @__submit_bio, { 1, 0 }
uselistorder i64 (i64)* @unlock_page, { 1, 0 }
uselistorder i64 (i64)* @F2FS_I_SB, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @SetPageUptodate, { 1, 0 }
uselistorder i8 1, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64)* @PageUptodate, { 1, 0 }
uselistorder i64* %arg5, { 1, 0, 2, 3 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_25, { 2, 3, 4, 5, 0, 1 }
uselistorder label LBL_17, { 0, 2, 1 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 1 |
BinRealVul | extract_exponents_992 | extract_exponents | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv8.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa.reg2mem
br i1 %4, label LBL_11, label LBL_1
LBL_1:
%5 = bitcast i64* %rdi to i32*
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 4
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge6.reg2mem
br label LBL_10
LBL_2:
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
%8 = mul nuw nsw i64 %indvars.iv8.reload, 1280
%9 = add i64 %7, %8
%10 = add i64 %9, %.reload
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = zext i8 %12 to i64
%14 = add i64 %45, %9
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = sext i32 %16 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%18 = mul i64 %indvars.iv.reload, 4
%19 = add nsw i64 %18, %17
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = sub i32 0, %21
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
%25 = select i1 %24, i32 %22, i32 %21
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 24, i32* %sv_0.1.reg2mem
br i1 %27, label LBL_4, label LBL_7
LBL_4:
%28 = zext i32 %25 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i32
%31 = sub i32 23, %30
%32 = icmp slt i32 %31, 24
store i32 %31, i32* %sv_0.0.reg2mem
br i1 %32, label LBL_6, label LBL_5
LBL_5:
store i32 0, i32* %20, align 4
store i32 24, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%33 = icmp sgt i32 %sv_0.0.reload, -1
%34 = zext i1 %33 to i64
%35 = call i64 @FUNC(i64 %34)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%36 = add nuw nsw i64 %indvars.iv.reload, %13
%37 = trunc i32 %sv_0.1.reload to i8
%38 = inttoptr i64 %36 to i8*
store i8 %37, i8* %38, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_8, label LBL_3
LBL_8:
%indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1
%exitcond10 = icmp eq i64 %indvars.iv.next9, 16
store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem
br i1 %exitcond10, label LBL_9, label LBL_2
LBL_9:
%39 = add i32 %storemerge6.reload, 1
%40 = load i32, i32* %5, align 8
%41 = zext i32 %40 to i64
%42 = sext i32 %39 to i64
%43 = icmp slt i64 %42, %41
store i64 %42, i64* %.reg2mem
store i32 %39, i32* %storemerge6.reg2mem
store i64 %41, i64* %.lcssa.reg2mem
br i1 %43, label LBL_10, label LBL_11
LBL_10:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload = load i64, i64* %.reg2mem
%44 = mul i64 %.reload, 4
%45 = add nsw i64 %44, 256
store i64 0, i64* %indvars.iv8.reg2mem
br label LBL_2
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv8.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i32 24, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qemu_put_be32_16803 | qemu_put_be32 | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = udiv i64 %arg2, 16777216
%2 = urem i64 %1, 256
%3 = call i64 @FUNC(i64 %0, i64 %2)
%4 = udiv i64 %arg2, 65536
%5 = urem i64 %4, 256
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = udiv i64 %arg2, 256
%8 = urem i64 %7, 256
%9 = call i64 @FUNC(i64 %0, i64 %8)
%10 = urem i64 %arg2, 256
%11 = call i64 @FUNC(i64 %0, i64 %10)
ret i64 %11
uselistorder i64 (i64, i64)* @qemu_put_byte, { 3, 2, 1, 0 }
uselistorder i64 256, { 1, 2, 0, 3, 4 }
uselistorder i64 %arg2, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | M_fs_path_join_parts_12755 | M_fs_path_join_parts | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i64
%storemerge511.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_20
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_20
LBL_2:
%6 = and i64 %arg2, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %2)
%storemerge510 = add i64 %3, -1
%9 = icmp eq i64 %storemerge510, 0
%10 = icmp eq i1 %9, false
store i64 %storemerge510, i64* %storemerge511.reg2mem
br i1 %10, label LBL_3, label LBL_7
LBL_3:
%storemerge511.reload = load i64, i64* %storemerge511.reg2mem
%11 = call i64 @FUNC(i64 %8, i64 %storemerge511.reload)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = inttoptr i64 %11 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %8, i64 %storemerge511.reload)
br label LBL_6
LBL_6:
%storemerge5 = add i64 %storemerge511.reload, -1
%18 = icmp eq i64 %storemerge5, 0
%19 = icmp eq i1 %18, false
store i64 %storemerge5, i64* %storemerge511.reg2mem
br i1 %19, label LBL_3, label LBL_7
LBL_7:
%sext3 = mul i64 %7, 4294967296
%20 = ashr exact i64 %sext3, 32
%21 = call i64 @FUNC(i64 %8)
%22 = call i64 @FUNC(i64 %8, i64 0)
%23 = icmp eq i64 %21, 1
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_13, label LBL_8
LBL_8:
%25 = icmp eq i64 %22, 0
br i1 %25, label LBL_10, label LBL_9
LBL_9:
%26 = inttoptr i64 %22 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_13, label LBL_10
LBL_10:
%30 = call i64 @FUNC(i64 %8)
%31 = trunc i64 %20 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_12, label LBL_11
LBL_11:
%34 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
store i64 %34, i64* %rax.0.reg2mem
br label LBL_20
LBL_12:
%35 = call i64 @FUNC(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
store i64 %35, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%36 = trunc i64 %20 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
%39 = icmp eq i64 %21, 0
%or.cond = or i1 %38, %39
br i1 %or.cond, label LBL_19, label LBL_14
LBL_14:
%40 = call i64 @FUNC(i64 %8, i64 0)
%41 = icmp eq i64 %40, 0
br i1 %41, label LBL_17, label LBL_15
LBL_15:
%. = select i1 %24, i64 1, i64 2
%42 = inttoptr i64 %40 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 0
%45 = icmp eq i1 %44, false
store i64 0, i64* %storemerge9.reg2mem
br i1 %45, label LBL_17, label LBL_16
LBL_16:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%46 = call i64 @FUNC(i64 %8, i64* nonnull @gv_2, i64 0)
%47 = add nuw nsw i64 %storemerge9.reload, 1
%48 = icmp ult i64 %47, %.
store i64 %47, i64* %storemerge9.reg2mem
br i1 %48, label LBL_16, label LBL_19
LBL_17:
%49 = and i64 %20, 4294967295
%50 = call i64 @FUNC(i64 %40, i64 %49)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
%or.cond8 = or i1 %24, %52
br i1 %or.cond8, label LBL_19, label LBL_18
LBL_18:
%53 = call i64 @FUNC(i64 %8, i64* nonnull @gv_2, i64 1)
br label LBL_19
LBL_19:
%54 = and i64 %20, 4294967295
%55 = call i64 @FUNC(i64 %54)
%56 = urem i64 %55, 256
%57 = call i64 @FUNC(i64 %8, i64 %56)
%58 = call i64 @FUNC(i64 %8)
store i64 %57, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 0, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %20, { 2, 1, 3, 0 }
uselistorder i64 %storemerge511.reload, { 2, 0, 1 }
uselistorder i64 %8, { 5, 4, 2, 1, 3, 0, 7, 6, 8, 9 }
uselistorder i64* %storemerge511.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge9.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i64 (i64, i64*, i64)* @M_list_str_insert_at, { 1, 0 }
uselistorder i64 (i8*)* @M_strdup, { 1, 0 }
uselistorder i8 0, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64)* @M_list_str_at, { 2, 0, 1 }
uselistorder i64 -1, { 2, 0, 3, 4, 5, 1 }
uselistorder i64 4294967295, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @M_list_str_len, { 1, 0 }
uselistorder i1 false, { 1, 2, 4, 5, 6, 7, 3, 0, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_20, { 2, 3, 4, 0, 1 }
uselistorder label LBL_19, { 1, 2, 0, 3 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ac_special_altstr_7740 | ac_special_altstr | define i64 @FUNC(i64 %arg1, i8 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pr.reg2mem = alloca i32
%rcx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%rcx.26.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdx = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_2:
%4 = ptrtoint i64* %arg3 to i64
%5 = inttoptr i64 %arg1 to i8*
%6 = call i32 @strlen(i8* %5)
%7 = bitcast i32* %sv_1 to i64*
%8 = bitcast i32* %sv_2 to i64*
%9 = call i64 @FUNC(i64 %0, i64* nonnull %7, i64* nonnull %8)
%10 = icmp eq i8 %arg2, 0
%11 = icmp eq i1 %10, false
%12 = load i32, i32* %sv_1, align 4
%13 = icmp eq i32 %12, 0
%or.cond = or i1 %11, %13
br i1 %or.cond, label LBL_27, label LBL_3
LBL_3:
%14 = ptrtoint i32* %sv_1 to i64
%15 = bitcast i64* %arg3 to i32*
store i32 0, i32* %15, align 4
%16 = load i32, i32* %sv_2, align 4
%17 = icmp slt i32 %16, 0
%18 = zext i1 %17 to i32
%19 = add i32 %16, %18
%20 = ashr i32 %19, 1
%21 = add i64 %4, 8
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = add i64 %4, 4
%24 = inttoptr i64 %23 to i32*
store i32 %20, i32* %24, align 4
%25 = load i32, i32* %sv_2, align 4
%26 = icmp eq i32 %25, 2
%27 = icmp eq i1 %26, false
%28 = add i64 %4, 12
%29 = inttoptr i64 %28 to i32*
br i1 %27, label LBL_6, label LBL_4
LBL_4:
store i32 1, i32* %29, align 4
%sext = mul i64 %9, 4294967296
%30 = ashr exact i64 %sext, 32
%31 = call i64 @FUNC(i64 %14, i64 %30)
%32 = add i64 %4, 16
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = icmp eq i64 %31, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_8, label LBL_5
LBL_5:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0))
%37 = inttoptr i64 %0 to i64*
call void @free(i64* %37)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_33
LBL_6:
store i32 2, i32* %29, align 4
%sext5 = mul i64 %9, 4294967296
%38 = ashr exact i64 %sext5, 29
%39 = call i64 @FUNC(i64 %14, i64 %38)
%40 = add i64 %4, 16
%41 = inttoptr i64 %40 to i64*
store i64 %39, i64* %41, align 8
%42 = icmp eq i64 %39, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_8, label LBL_7
LBL_7:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0))
%45 = inttoptr i64 %0 to i64*
call void @free(i64* %45)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_33
LBL_8:
%46 = trunc i64 %9 to i32
%47 = icmp sgt i32 %46, 0
br i1 %47, label LBL_10, label LBL_8.LBL_22_crit_edge
LBL_9:
%.phi.trans.insert = bitcast i64* %rdx to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32 %.pre, i32* %.pr.reg2mem
br label LBL_22
LBL_10:
%48 = icmp eq i32 %46, 1
%49 = icmp eq i1 %48, false
%50 = add i64 %4, 16
%51 = inttoptr i64 %50 to i64*
%52 = bitcast i64* %rdx to i32*
%sext9 = mul i64 %9, 4294967296
%53 = ashr exact i64 %sext9, 32
store i64 0, i64* %indvars.iv.reg2mem
store i64 %14, i64* %rcx.26.reg2mem
br label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
br i1 %49, label LBL_13, label LBL_12
LBL_12:
%rcx.26.reload = load i64, i64* %rcx.26.reg2mem
%54 = call i64 @FUNC(i64 %rcx.26.reload, i64 %0)
store i64 %54, i64* %sv_0.0.in.reg2mem
store i64 %rcx.26.reload, i64* %rcx.0.reg2mem
br label LBL_16
LBL_13:
%55 = call i64 @FUNC(i64 %0, i64 %indvars.iv.reload, i64* nonnull @gv_2)
%56 = icmp eq i64 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_15, label LBL_14
LBL_14:
%58 = inttoptr i64 %0 to i64*
call void @free(i64* %58)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_33
LBL_15:
%59 = call i64 @FUNC(i64 %indvars.iv.reload, i64 %55)
%60 = inttoptr i64 %55 to i64*
call void @free(i64* %60)
store i64 %59, i64* %sv_0.0.in.reg2mem
store i64 %indvars.iv.reload, i64* %rcx.0.reg2mem
br label LBL_16
LBL_16:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%61 = icmp eq i64 %sv_0.0.in.reload, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_18, label LBL_17
LBL_17:
%63 = inttoptr i64 %0 to i64*
call void @free(i64* %63)
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_33
LBL_18:
%64 = load i32, i32* %29, align 4
%65 = icmp eq i32 %64, 1
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_20, label LBL_19
LBL_19:
%sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i8*
%67 = load i8, i8* %sv_0.0, align 1
%68 = load i64, i64* %51, align 8
%69 = add i64 %68, %indvars.iv.reload
%70 = inttoptr i64 %69 to i8*
store i8 %67, i8* %70, align 1
%71 = call i64 @FUNC(i64 %68, i64 %sv_0.0.in.reload)
store i64 %68, i64* %rcx.1.reg2mem
br label LBL_21
LBL_20:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%72 = load i64, i64* %51, align 8
%73 = mul i64 %indvars.iv.reload, 8
%74 = add i64 %72, %73
%75 = inttoptr i64 %74 to i64*
store i64 %sv_0.0.in.reload, i64* %75, align 8
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br label LBL_21
LBL_21:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%76 = load i32, i32* %52, align 8
%77 = add i32 %76, 1
store i32 %77, i32* %15, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%78 = icmp slt i64 %indvars.iv.next, %53
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rcx.1.reload, i64* %rcx.26.reg2mem
store i32 %76, i32* %.pr.reg2mem
br i1 %78, label LBL_11, label LBL_22
LBL_22:
%.pr.reload = load i32, i32* %.pr.reg2mem
%79 = icmp slt i32 %.pr.reload, 2
br i1 %79, label LBL_32, label LBL_23
LBL_23:
%80 = load i32, i32* %29, align 4
%81 = icmp eq i32 %80, 1
%82 = icmp eq i1 %81, false
store i32 %80, i32* %.reg2mem
br i1 %82, label LBL_25, label LBL_24
LBL_24:
%83 = sext i32 %.pr.reload to i64
%84 = add i64 %4, 16
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = call i64 @FUNC(i64 %86, i64 %83, i64 1, i64 4199257)
%.pre10 = load i32, i32* %29, align 4
store i32 %.pre10, i32* %.reg2mem
br label LBL_25
LBL_25:
%.reload = load i32, i32* %.reg2mem
%88 = icmp eq i32 %.reload, 2
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_32, label LBL_26
LBL_26:
%90 = sext i32 %.pr.reload to i64
%91 = add i64 %4, 16
%92 = inttoptr i64 %91 to i64*
%93 = load i64, i64* %92, align 8
%94 = call i64 @FUNC(i64 %93, i64 %90, i64 8, i64 4199295, i64 %23)
br label LBL_32
LBL_27:
%95 = add i64 %4, 24
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = icmp eq i32 %97, 0
br i1 %98, label LBL_29, label LBL_28
LBL_28:
%99 = call i64 @FUNC(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @gv_3, i64 0, i64 0))
%100 = inttoptr i64 %0 to i64*
call void @free(i64* %100)
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_33
LBL_29:
%101 = add i64 %4, 12
%102 = inttoptr i64 %101 to i32*
store i32 3, i32* %102, align 4
%103 = load i32, i32* %sv_2, align 4
%104 = add i32 %103, 1
%105 = sext i32 %104 to i64
%106 = call i64 @FUNC(i64 %105, i64 1)
%107 = icmp eq i64 %106, 0
%108 = icmp eq i1 %107, false
br i1 %108, label LBL_31, label LBL_30
LBL_30:
%109 = call i64 @FUNC(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_4, i64 0, i64 0))
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_33
LBL_31:
%110 = load i32, i32* %sv_2, align 4
%111 = add i32 %110, 1
%112 = zext i32 %111 to i64
%113 = zext i8 %arg2 to i64
%114 = call i64 @FUNC(i64 %0, i64 %106, i64 %112, i64 0, i64 0, i64 %113)
%115 = inttoptr i64 %106 to i64*
call void @free(i64* %115)
%116 = inttoptr i64 %0 to i64*
call void @free(i64* %116)
%117 = and i64 %114, 4294967295
store i64 %117, i64* %rax.0.reg2mem
br label LBL_33
LBL_32:
%118 = inttoptr i64 %0 to i64*
call void @free(i64* %118)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_33:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %106, { 1, 0, 2 }
uselistorder i32 %.pr.reload, { 2, 0, 1 }
uselistorder i64 %68, { 0, 2, 1 }
uselistorder i64 %sv_0.0.in.reload, { 3, 2, 0, 1 }
uselistorder i64 %55, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 1, 5, 4, 0, 2, 3 }
uselistorder i32 %46, { 1, 0 }
uselistorder i32* %29, { 0, 1, 2, 4, 3 }
uselistorder i64 %14, { 0, 2, 1 }
uselistorder i64 %9, { 0, 3, 1, 2 }
uselistorder i64 %4, { 9, 8, 2, 1, 3, 4, 0, 5, 6, 7 }
uselistorder i64 %0, { 2, 9, 8, 7, 5, 4, 6, 3, 1, 0, 10, 11 }
uselistorder i32* %sv_2, { 3, 2, 1, 0, 4 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %rdx, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.26.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 9, 8, 7, 6, 5, 3, 2, 1 }
uselistorder i64 1, { 2, 3, 1, 0 }
uselistorder i64 4294967293, { 1, 0 }
uselistorder i64 (i64, i64)* @cli_mpool_hex2str, { 1, 0 }
uselistorder i64 4294967294, { 3, 2, 1, 0 }
uselistorder void (i64*)* @free, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 16, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64)* @mpool_malloc, { 1, 0 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i32 0, { 3, 1, 0, 4, 2, 5 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64 (i8*)* @cli_errmsg, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 0, 1, 6, 2, 3, 4, 5, 7, 8, 9, 10, 11 }
uselistorder label LBL_32, { 1, 2, 0 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | etraxfs_eth_init_16070 | etraxfs_eth_init | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 48)
%3 = call i64 @FUNC(i64 56)
%4 = inttoptr i64 %2 to i64*
store i64 4198740, i64* %4, align 8
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
store i64 %3, i64* %6, align 8
%7 = add i64 %2, 32
%8 = inttoptr i64 %7 to i64*
store i64 %3, i64* %8, align 8
%9 = add i64 %2, 40
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = inttoptr i64 %3 to i64*
store i64 %2, i64* %11, align 8
%12 = add i64 %2, 24
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = urem i32 %arg3, 32
%16 = add i64 %3, 16
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = add i64 %3, 24
%19 = call i64 @FUNC(i64 %18)
%20 = load i32, i32* %17, align 4
%21 = add i64 %3, 32
%22 = zext i32 %20 to i64
%23 = call i64 @FUNC(i64 %21, i64 %18, i64 %22)
%24 = call i64 @FUNC(i64 4198898, i64 4198905, i64 %3)
%25 = add i64 %3, 40
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = call i64 @FUNC(i64 %arg2, i64 92, i64 %24)
%28 = add i64 %0, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %0, 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = bitcast i64* %rdi to i32*
%35 = load i32, i32* %34, align 8
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36, i64 %33, i64 %30, i64 4198870, i64 4198877, i64 0, i64 4198884, i64 %3)
%38 = add i64 %3, 48
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = inttoptr i64 %37 to i64*
store i64 %3, i64* %40, align 8
%41 = load i64, i64* %39, align 8
%42 = add i64 %41, 8
%43 = inttoptr i64 %42 to i64*
store i64 4198891, i64* %43, align 8
ret i64 %2
uselistorder i64 %3, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
uselistorder i64 %2, { 2, 3, 4, 0, 1, 5, 6 }
uselistorder i64 40, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64)* @qemu_mallocz, { 1, 0 }
uselistorder i64 48, { 1, 0 }
} | 1 |
BinRealVul | build_tablename_6293 | build_tablename | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %arg3)
%3 = bitcast i8** %sv_0 to i64*
%4 = call i64 @FUNC(i64 %2, i64* nonnull @gv_0, i64* nonnull %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
%spec.select = select i1 %6, i64 %4, i64 %arg3
%7 = inttoptr i64 %spec.select to i8*
%8 = call i32 @strlen(i8* %7)
%9 = sext i32 %8 to i64
%10 = call i64 @FUNC(i64 %spec.select, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %1, i64 %spec.select, i64 %9)
br label LBL_3
LBL_2:
%15 = call i64 @FUNC(i64 %0, i64 %spec.select, i64 %9)
%16 = call i64 @FUNC(i64 %1, i64 %15)
%17 = call i64 @FUNC(i64 %15)
br label LBL_3
LBL_3:
%18 = load i8*, i8** %sv_0, align 8
%19 = icmp eq i8* %18, null
br i1 %19, label LBL_8, label LBL_4
LBL_4:
%20 = load i8, i8* %18, align 1
%21 = icmp eq i8 %20, 0
br i1 %21, label LBL_8, label LBL_5
LBL_5:
%22 = call i32 @strlen(i8* nonnull %18)
%23 = sext i32 %22 to i64
%24 = load i8*, i8** %sv_0, align 8
%25 = ptrtoint i8* %24 to i64
%26 = call i64 @FUNC(i64 %25, i64 %23)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64 %1, i64 46)
%31 = load i8*, i8** %sv_0, align 8
%32 = ptrtoint i8* %31 to i64
%33 = call i64 @FUNC(i64 %1, i64 %32, i64 %23)
br label LBL_8
LBL_7:
%34 = load i8*, i8** %sv_0, align 8
%35 = ptrtoint i8* %34 to i64
%36 = call i64 @FUNC(i64 %0, i64 %35, i64 %23)
%37 = call i64 @FUNC(i64 %1, i64 46)
%38 = call i64 @FUNC(i64 %1, i64 %36)
%39 = call i64 @FUNC(i64 %36)
br label LBL_8
LBL_8:
%40 = call i64 @FUNC(i64 %2)
ret i64 %40
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %spec.select, { 3, 2, 0, 1 }
uselistorder i8** %sv_0, { 3, 2, 1, 0, 4 }
uselistorder i64 %1, { 4, 3, 2, 1, 5, 0 }
uselistorder i64 (i64, i64)* @smart_str_appendc, { 1, 0 }
uselistorder i64 (i64)* @PGSQLfree, { 1, 0 }
uselistorder i64 (i64, i64)* @smart_str_appends, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @PGSQLescapeIdentifier, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @smart_str_appendl, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @_php_pgsql_detect_identifier_escape, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
} | 0 |
BinRealVul | iothread_stop_2011 | iothread_stop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = zext i8 %4 to i64
%6 = icmp eq i8 %4, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
store i8 1, i8* %3, align 1
%8 = call i64 @FUNC(i64 %0, i64 4198681, i64 %0)
%9 = add i64 %0, 16
%10 = call i64 @FUNC(i64 %9)
store i64 %10, 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 %0, { 2, 1, 3, 4, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | ff_draw_init_16504 | ff_draw_init | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.010.reg2mem = alloca i32
%storemerge411.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%0 = and i64 %arg2, 4294967295
%1 = mul nuw nsw i64 %0, 88
%2 = add i64 %1, ptrtoint ([8 x i8]** @gv_0 to i64)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_17
LBL_1:
%7 = add i64 %1, add (i64 ptrtoint ([8 x i8]** @gv_0 to i64), i64 8)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 8
%10 = icmp ult i32 %9, 4
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_17
LBL_2:
%11 = add i64 %1, add (i64 ptrtoint ([8 x i8]** @gv_0 to i64), i64 12)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%.pre = add i64 %1, add (i64 ptrtoint ([8 x i8]** @gv_0 to i64), i64 16)
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %14, label LBL_9, label LBL_3
LBL_3:
%15 = ptrtoint i64* %sv_1 to i64
%16 = add i64 %15, -48
store i32 0, i32* %storemerge411.reg2mem
store i32 0, i32* %sv_0.010.reg2mem
br label LBL_4
LBL_4:
%storemerge411.reload = load i32, i32* %storemerge411.reg2mem
%17 = zext i32 %storemerge411.reload to i64
%18 = mul i64 %17, 16
%19 = add i64 %18, %.pre
%20 = add i64 %19, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 8
%23 = icmp eq i32 %22, 7
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %23, label LBL_5, label LBL_17
LBL_5:
%24 = add i64 %19, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp ult i32 %26, 4
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %27, label LBL_6, label LBL_17
LBL_6:
%28 = zext i32 %26 to i64
%29 = mul i64 %28, 4
%30 = add i64 %29, %16
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 0
%.pre13 = add i64 %19, 16
%.pre15 = inttoptr i64 %.pre13 to i32*
%.pre18 = load i32, i32* %.pre15, align 8
%.pre19 = add i32 %.pre18, 1
%34 = icmp eq i32 %32, %.pre19
%or.cond21 = or i1 %33, %34
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %or.cond21, label LBL_7, label LBL_17
LBL_7:
%sv_0.010.reload = load i32, i32* %sv_0.010.reg2mem
store i32 %.pre19, i32* %31, align 4
%35 = load i32, i32* %25, align 4
%36 = zext i32 %35 to i64
%37 = mul i64 %36, 4
%38 = add i64 %37, %16
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp slt i32 %40, 8
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %41, label LBL_8, label LBL_17
LBL_8:
%42 = add i32 %35, 1
%43 = icmp ult i32 %sv_0.010.reload, %42
%44 = select i1 %43, i32 %42, i32 %sv_0.010.reload
%45 = add i32 %storemerge411.reload, 1
%46 = load i32, i32* %12, align 4
%47 = icmp ult i32 %45, %46
store i32 %45, i32* %storemerge411.reg2mem
store i32 %44, i32* %sv_0.010.reg2mem
store i32 %44, i32* %sv_0.0.lcssa.reg2mem
br i1 %47, label LBL_4, label LBL_9
LBL_9:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%48 = inttoptr i64 %.pre to i32*
%49 = load i32, i32* %48, align 8
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_11, label LBL_10
LBL_10:
%52 = add i64 %1, add (i64 ptrtoint ([8 x i8]** @gv_0 to i64), i64 20)
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = icmp ne i32 %54, 0
%56 = icmp ult i32 %sv_0.0.lcssa.reload, 3
%or.cond = icmp eq i1 %56, %55
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_17, label LBL_12
LBL_11:
%.old = icmp ult i32 %sv_0.0.lcssa.reload, 3
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %.old, label LBL_17, label LBL_12
LBL_12:
%57 = ptrtoint i64* %arg1 to i64
%58 = call i64* @memset(i64* %arg1, i32 0, i32 80)
store i64 %2, i64* %arg1, align 8
%59 = trunc i64 %arg2 to i32
%60 = add i64 %57, 8
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = add i64 %57, 12
%63 = inttoptr i64 %62 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %63, align 4
%64 = add i64 %57, 16
%65 = inttoptr i64 %64 to i64*
store i64 0, i64* %65, align 8
%66 = add i64 %57, 24
%67 = inttoptr i64 %66 to i64*
store i64 0, i64* %67, align 8
%68 = icmp ult i32 %sv_0.0.lcssa.reload, 3
br i1 %68, label LBL_15, label LBL_13
LBL_13:
%69 = load i32, i32* %8, align 8
%70 = and i32 %69, 2
%71 = icmp eq i32 %70, 0
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_15, label LBL_14
LBL_14:
%73 = load i32, i32* %48, align 8
%74 = add i64 %57, 56
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
%76 = add i64 %57, 40
%77 = inttoptr i64 %76 to i32*
store i32 %73, i32* %77, align 4
%78 = add i64 %57, 36
%79 = inttoptr i64 %78 to i32*
store i32 %73, i32* %79, align 4
%80 = add i64 %1, add (i64 ptrtoint ([8 x i8]** @gv_0 to i64), i64 20)
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = add i64 %57, 60
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = add i64 %57, 52
%86 = inttoptr i64 %85 to i32*
store i32 %82, i32* %86, align 4
%87 = add i64 %57, 48
%88 = inttoptr i64 %87 to i32*
store i32 %82, i32* %88, align 4
br label LBL_15
LBL_15:
%89 = add i64 %57, 64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_16
LBL_16:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%90 = mul i64 %indvars.iv.reload, 16
%91 = add i64 %90, %.pre
%92 = add i64 %91, 12
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = zext i32 %94 to i64
%96 = mul i64 %95, 4
%97 = add i64 %89, %96
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = add i64 %91, 20
%101 = inttoptr i64 %100 to i32*
%102 = load i32, i32* %101, align 4
%103 = add i32 %102, 31
%104 = urem i32 %103, 32
%105 = shl i32 1, %104
%106 = or i32 %105, %99
store i32 %106, i32* %98, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%107 = load i32, i32* %12, align 4
%108 = add i32 %107, -1
%109 = or i32 %108, 1
%110 = zext i32 %109 to i64
%111 = icmp ult i64 %indvars.iv.next, %110
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %111, label LBL_16, label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %57, { 0, 1, 2, 3, 4, 5, 6, 8, 7, 9, 10 }
uselistorder i32 %sv_0.0.lcssa.reload, { 3, 1, 2, 0 }
uselistorder i32 %sv_0.010.reload, { 1, 0 }
uselistorder i64 %.pre, { 0, 2, 1 }
uselistorder i32* %12, { 0, 2, 1 }
uselistorder i64 %1, { 1, 2, 0, 3, 4, 5 }
uselistorder i32* %storemerge411.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 7, 2, 1, 3, 4, 8, 9 }
uselistorder i32 3, { 1, 2, 0 }
uselistorder i64 20, { 1, 0 }
uselistorder i64 16, { 0, 4, 2, 1, 3 }
uselistorder i64 12, { 2, 3, 0, 1 }
uselistorder i64 4294967258, { 4, 5, 1, 0, 2, 3, 6 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder label LBL_17, { 4, 5, 6, 1, 0, 2, 3, 7, 8 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | pci_device_class_init_14480 | pci_device_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 ptrtoint ([4 x i8]* @gv_0 to i64), i64* %4, align 8
%5 = load i64, i64* @gv_1, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | ssl_set_hostname_18983 | ssl_set_hostname | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = inttoptr i64 %arg2 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = sext i32 %4 to i64
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = icmp eq i32 %4, -1
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = add nsw i64 %5, 1
%11 = call i64 @FUNC(i64 %10)
store i64 %11, i64* %arg1, align 8
%12 = icmp eq i64 %10, 0
%13 = icmp eq i1 %12, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_3:
%14 = load i64, i64* %7, align 8
%15 = inttoptr i64 %10 to i64*
%16 = inttoptr i64 %arg2 to i64*
%17 = trunc i64 %14 to i32
%18 = call i64* @memcpy(i64* %15, i64* %16, i32 %17)
%19 = load i64, i64* %7, align 8
%20 = add i64 %19, %10
%21 = inttoptr i64 %20 to i8*
store i8 0, i8* %21, align 1
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | token_4776 | token | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to %_IO_FILE*
br label LBL_1
LBL_1:
%1 = call i32 @fgetc(%_IO_FILE* %0)
%2 = icmp eq i32 %1, 32
br i1 %2, label LBL_1.backedge, label LBL_3
LBL_2:
br label LBL_1
LBL_3:
%3 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%4 = icmp eq i32 %1, %3
br i1 %4, label LBL_1.backedge, label %switch.early.test
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%5 = trunc i32 %sv_1.0.reload to i8
%6 = add i64 %indvars.iv.reload, ptrtoint (i8** @gv_0 to i64)
%7 = inttoptr i64 %6 to i8*
store i8 %5, i8* %7, align 1
%8 = call i32 @fgetc(%_IO_FILE* %0)
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %8, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
switch i32 %sv_1.0.reload, label LBL_6 [
i32 -1, label LBL_7
i32 32, label LBL_7
]
LBL_6:
%9 = load i32, i32* @gv_1, align 4
%10 = icmp eq i32 %sv_1.0.reload, %9
%11 = icmp eq i32 %sv_1.0.reload, 9
%or.cond9 = or i1 %11, %10
%12 = or i32 %sv_1.0.reload, 1
%13 = icmp eq i32 %12, 59
%14 = or i1 %13, %or.cond9
%or.cond13.not = icmp ne i1 %14, true
%15 = icmp ult i64 %indvars.iv.reload, 100
%or.cond15 = icmp eq i1 %15, %or.cond13.not
br i1 %or.cond15, label LBL_4, label LBL_9
LBL_7:
%16 = trunc i64 %indvars.iv.reload to i32
%17 = icmp eq i32 %sv_1.0.reload, -1
%18 = icmp eq i1 %17, false
store i32 %16, i32* %.reg2mem
br i1 %18, label LBL_10, label LBL_8
LBL_8:
%19 = icmp eq i32 %16, 0
%20 = icmp slt i32 %16, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %19, false
%23 = icmp eq i1 %21, %22
store i32 %16, i32* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_10, label LBL_15
LBL_9:
%24 = trunc i64 %indvars.iv.reload to i32
store i32 %24, i32* %.reg2mem
br label LBL_10
LBL_10:
%.reload = load i32, i32* %.reg2mem
%25 = icmp slt i32 %.reload, 1
%26 = icmp eq i32 %sv_1.0.reload, 58
%or.cond17 = or i1 %26, %25
br i1 %or.cond17, label LBL_12, label LBL_11
LBL_11:
%27 = call i32 @ungetc(i32 %sv_1.0.reload, %_IO_FILE* %0)
br label LBL_12
LBL_12:
%28 = icmp eq i32 %.reload, 0
%29 = icmp slt i32 %.reload, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %28, false
%32 = icmp eq i1 %30, %31
store i64 %indvars.iv.reload, i64* %sv_0.1.reg2mem
br i1 %32, label LBL_14, label LBL_13
LBL_13:
%33 = add nuw i64 %indvars.iv.reload, 1
%sext = mul i64 %indvars.iv.reload, 4294967296
%34 = ashr exact i64 %sext, 32
%35 = trunc i32 %sv_1.0.reload to i8
%36 = add i64 %34, ptrtoint (i8** @gv_0 to i64)
%37 = inttoptr i64 %36 to i8*
store i8 %35, i8* %37, align 1
store i64 %33, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sext27 = mul i64 %sv_0.1.reload, 4294967296
%38 = ashr exact i64 %sext27, 32
%39 = add i64 %38, ptrtoint (i8** @gv_0 to i64)
%40 = inttoptr i64 %39 to i8*
store i8 0, i8* %40, align 1
store i64 ptrtoint (i8** @gv_0 to i64), i64* %storemerge.reg2mem
br label LBL_15
LBL_15:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload, { 1, 0, 2 }
uselistorder i32 %16, { 1, 3, 2, 0 }
uselistorder i64 %indvars.iv.reload, { 7, 6, 0, 5, 4, 3, 1, 2 }
uselistorder i32 %sv_1.0.reload, { 8, 6, 7, 5, 3, 0, 1, 4, 2 }
uselistorder i32 %1, { 1, 0, 2, 3 }
uselistorder %_IO_FILE* %0, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 0, 3, 2, 1 }
uselistorder i32 9, { 1, 0 }
uselistorder i32 59, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fgetc, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1.backedge, { 2, 3, 4, 1, 0 }
} | 0 |
reposvul_c_test | target_xcopy_gen_naa_ieee_286 | target_xcopy_gen_naa_ieee | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = bitcast i64* %arg2 to i8*
store i8 96, i8* %2, align 1
%3 = add i64 %0, 1
%4 = inttoptr i64 %3 to i8*
store i8 1, i8* %4, align 1
%5 = add i64 %0, 2
%6 = inttoptr i64 %5 to i8*
store i8 64, i8* %6, align 1
%7 = add i64 %0, 3
%8 = inttoptr i64 %7 to i8*
store i8 80, i8* %8, align 1
%9 = call i64 @FUNC(i64 %1, i64 %7)
ret i64 0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | usb_hid_handle_destroy_1694 | usb_hid_handle_destroy | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
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 | nbd_client_session_co_flush_3014 | nbd_client_session_co_flush | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 3, i32* %sv_1, align 4
%2 = trunc i64 %1 to i32
%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_7
LBL_1:
%6 = and i32 %2, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
store i32 7, i32* %sv_1, align 4
br label LBL_3
LBL_3:
%8 = ptrtoint i32* %arg1 to i64
%9 = bitcast i32* %sv_1 to i64*
%10 = call i64 @FUNC(i64 %8, i64* nonnull %9)
%11 = call i64 @FUNC(i64 %8, i64* nonnull %9, i64 0, i64 0)
%12 = icmp slt i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = trunc i64 %11 to i32
%15 = sub i32 0, %14
store i32 %15, i32* %sv_0, align 4
br label LBL_6
LBL_5:
%16 = call i64 @FUNC(i64 %8, i64* nonnull %9, i32* nonnull %sv_0, i64 0, i64 0)
br label LBL_6
LBL_6:
%17 = call i64 @FUNC(i64 %8, i64* nonnull %9)
%18 = load i32, i32* %sv_0, align 4
%19 = sub i32 0, %18
%20 = zext i32 %19 to i64
store i64 %20, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i32* %sv_1, { 2, 1, 0 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | ntlm_read_message_fields_buffer_11029 | ntlm_read_message_fields_buffer | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i32 %7, %2
%9 = zext i32 %8 to i64
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = icmp slt i64 %11, %9
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_2
LBL_2:
%13 = call i64* @malloc(i32 %2)
%14 = ptrtoint i64* %13 to i64
%15 = urem i64 %14, 256
%16 = add i64 %4, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = icmp eq i64 %15, 0
%19 = icmp eq i1 %18, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_4
LBL_3:
%20 = bitcast i64* %rsi to i32*
%21 = load i32, i32* %6, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %10, i64 %22)
%24 = load i32, i32* %20, align 8
%25 = load i64, i64* %17, align 8
%26 = call i64 @FUNC(i64 %10, i64 %25, i32 %24)
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %2, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | vrend_renderer_set_sub_ctx_10808 | vrend_renderer_set_sub_ctx | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge35.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = trunc i64 %0 to i32
%4 = and i64 %0, 4294967295
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %3, %5
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_7, label LBL_2
LBL_2:
%7 = add i64 %0, 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_7
LBL_3:
%10 = trunc i64 %1 to i32
store i64 %7, i64* %storemerge35.reg2mem
br label LBL_4
LBL_4:
%storemerge35.reload = load i64, i64* %storemerge35.reg2mem
%storemerge = inttoptr i64 %storemerge35.reload to i32*
%11 = load i32, i32* %storemerge, align 4
%12 = icmp eq i32 %11, %10
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_5
LBL_5:
store i64 %storemerge35.reload, i64* %arg1, align 8
%14 = add i64 %storemerge35.reload, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
store i64 %16, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%17 = add i64 %storemerge35.reload, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
store i64 %19, i64* %storemerge35.reg2mem
store i64 %19, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge35.reload, { 0, 3, 2, 1 }
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i64* %storemerge35.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder label LBL_7, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | esp_do_dma_11625 | esp_do_dma | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = and i64 %1, 4294967295
%11 = zext i32 %9 to i64
%12 = call i64 @FUNC(i64 %11, i64 %10)
%13 = add i64 %2, 280
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
store i64 %15, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | GetCommandbyName_19222 | GetCommandbyName | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 33
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = load i32, i32* inttoptr (i64 4211016 to i32*), align 8
%6 = icmp eq i32 %5, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_8, label LBL_5
LBL_2:
%7 = ptrtoint i8* %arg1 to i64
%8 = add i64 %7, 1
%9 = inttoptr i64 %8 to i8*
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* bitcast (i8** @gv_0 to i8*), i32 256, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i8* %9)
%11 = icmp slt i32 %10, 256
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_3, i64 0, i64 0), i64 %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%13 = bitcast i64* %arg2 to i32*
store i32 0, i32* %13, align 4
store i64 ptrtoint (i8** @gv_0 to i64), i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%.reload = load i64, i64* %.reg2mem
%14 = mul i64 %.reload, 8
%15 = add i64 %14, ptrtoint ([3 x i8*]* @gv_4 to i64)
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i8*
%19 = call i32 @strcmp(i8* %arg1, i8* %18)
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = mul i64 %.reload, 4
%23 = add i64 %22, ptrtoint (i32** @gv_5 to i64)
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = bitcast i64* %arg2 to i32*
store i32 %25, i32* %26, align 4
%27 = add i64 %14, ptrtoint ([3 x i8*]* @gv_6 to i64)
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
store i64 %29, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%30 = add i32 %sv_0.04.reload, 1
%31 = load i32, i32* inttoptr (i64 4211016 to i32*), align 8
%32 = zext i32 %31 to i64
%33 = sext i32 %30 to i64
%34 = icmp slt i64 %33, %32
store i64 %33, i64* %.reg2mem
store i32 %30, i32* %sv_0.04.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_5, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 4, 3, 2 }
uselistorder i8** @gv_0, { 1, 0 }
uselistorder i32 0, { 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder i32* inttoptr (i64 4211016 to i32*), { 1, 0 }
uselistorder i8* %arg1, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 3, 4, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | gp8psk_usb_in_op_4917 | gp8psk_usb_in_op | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%r9.014.reg2mem = alloca i64
%r8.017.reg2mem = alloca i64
%r9.013.reg2mem = alloca i64
%r8.016.reg2mem = alloca i64
%rdx.019.reg2mem = alloca i64
%rcx.021.reg2mem = alloca i64
%sv_0.023.lcssa.reg2mem = alloca i32
%rcx.025.lcssa.reg2mem = alloca i64
%rdx.026.lcssa.reg2mem = alloca i64
%r8.027.lcssa.reg2mem = alloca i64
%r9.028.lcssa.reg2mem = alloca i64
%indvars.iv39.reg2mem = alloca i64
%0 = ptrtoint i64* %arg5 to i64
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
%1 = trunc i64 %arg6 to i32
%2 = icmp ult i32 %1, 257
store i64 4294967291, i64* %rax.0.shrunk.reg2mem
br i1 %2, label LBL_1, label LBL_8
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 16
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.shrunk.reg2mem
br i1 %7, label LBL_2, label LBL_8
LBL_2:
%8 = ptrtoint i64* %sv_1 to i64
%sext = mul i64 %arg6, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = urem i64 %arg2, 256
%sext6 = mul i64 %arg3, 281474976710656
%11 = ashr exact i64 %sext6, 48
%sext7 = mul i64 %arg4, 281474976710656
%12 = ashr exact i64 %sext7, 48
%13 = and i64 %arg2, 4294967295
%14 = trunc i64 %9 to i32
%15 = add i64 %3, 8
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %8, -16
%18 = inttoptr i64 %17 to i64*
%19 = and i64 %9, 4294967295
%20 = add i64 %8, -24
%21 = inttoptr i64 %20 to i64*
%22 = add i64 %8, -32
%23 = inttoptr i64 %22 to i64*
%24 = urem i64 %12, 65536
%25 = urem i64 %11, 65536
%26 = icmp eq i32 %14, 0
store i64 0, i64* %indvars.iv39.reg2mem
store i64 %arg6, i64* %r9.028.lcssa.reg2mem
store i64 %0, i64* %r8.027.lcssa.reg2mem
store i64 %arg3, i64* %rdx.026.lcssa.reg2mem
store i64 %13, i64* %rcx.025.lcssa.reg2mem
store i32 0, i32* %sv_0.023.lcssa.reg2mem
br i1 %26, label LBL_5, label LBL_3
LBL_3:
%indvars.iv39.reload = load i64, i64* %indvars.iv39.reg2mem
%27 = load i64, i64* %sv_1, align 8
%28 = inttoptr i64 %27 to i64*
%29 = call i64* @memcpy(i64* %arg1, i64* %28, i32 %14)
%30 = load i64, i64* %16, align 8
%31 = call i64 @FUNC(i64 %30, i64 0)
%32 = and i64 %31, 4294967295
%33 = load i64, i64* %16, align 8
store i64 2000, i64* %18, align 8
store i64 %19, i64* %21, align 8
store i64 %3, i64* %23, align 8
%34 = call i64 @FUNC(i64 %33, i64 %32, i64 %10, i64 192, i64 %25, i64 %24, i64 ptrtoint (i32* @0 to i64))
%35 = trunc i64 %34 to i32
%36 = and i64 %34, 4294967295
%37 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %indvars.iv39.reload, i32 %35, i64 192, i64 %25, i64 %24)
%38 = icmp slt i32 %35, 0
store i64 192, i64* %rcx.021.reg2mem
store i64 %36, i64* %rdx.019.reg2mem
store i64 %25, i64* %r8.016.reg2mem
store i64 %24, i64* %r9.013.reg2mem
br i1 %38, label LBL_6, label LBL_4
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv39.reload, 1
%39 = icmp ne i32 %35, %14
%40 = icmp ult i64 %indvars.iv.next, 3
%or.cond = icmp eq i1 %40, %39
store i64 %indvars.iv.next, i64* %indvars.iv39.reg2mem
store i64 %24, i64* %r9.028.lcssa.reg2mem
store i64 %25, i64* %r8.027.lcssa.reg2mem
store i64 %36, i64* %rdx.026.lcssa.reg2mem
store i64 192, i64* %rcx.025.lcssa.reg2mem
store i32 %35, i32* %sv_0.023.lcssa.reg2mem
br i1 %or.cond, label LBL_3, label LBL_5
LBL_5:
%sv_0.023.lcssa.reload = load i32, i32* %sv_0.023.lcssa.reg2mem
%rcx.025.lcssa.reload = load i64, i64* %rcx.025.lcssa.reg2mem
%rdx.026.lcssa.reload = load i64, i64* %rdx.026.lcssa.reg2mem
%r8.027.lcssa.reload = load i64, i64* %r8.027.lcssa.reg2mem
%r9.028.lcssa.reload = load i64, i64* %r9.028.lcssa.reg2mem
%41 = icmp eq i32 %sv_0.023.lcssa.reload, %14
store i64 %rcx.025.lcssa.reload, i64* %rcx.021.reg2mem
store i64 %rdx.026.lcssa.reload, i64* %rdx.019.reg2mem
store i64 %r8.027.lcssa.reload, i64* %r8.016.reg2mem
store i64 %r9.028.lcssa.reload, i64* %r9.013.reg2mem
store i64 %r8.027.lcssa.reload, i64* %r8.017.reg2mem
store i64 %r9.028.lcssa.reload, i64* %r9.014.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %41, label LBL_7, label LBL_6
LBL_6:
%r9.013.reload = load i64, i64* %r9.013.reg2mem
%r8.016.reload = load i64, i64* %r8.016.reg2mem
%rdx.019.reload = load i64, i64* %rdx.019.reg2mem
%rcx.021.reload = load i64, i64* %rcx.021.reg2mem
%42 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %rdx.019.reload, i64 %rcx.021.reload, i64 %r8.016.reload, i64 %r9.013.reload)
store i64 %r8.016.reload, i64* %r8.017.reg2mem
store i64 %r9.013.reload, i64* %r9.014.reg2mem
store i64 4294967291, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%r9.014.reload = load i64, i64* %r9.014.reg2mem
%r8.017.reload = load i64, i64* %r8.017.reg2mem
%43 = trunc i64 %12 to i16
%44 = trunc i64 %11 to i16
%45 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i64 %10, i16 %44, i16 %43, i64 %r8.017.reload, i64 %r9.014.reload)
%46 = load i64, i64* %sv_1, align 8
%47 = call i64 @FUNC(i64 %46, i64 %19, i64 4199244)
%48 = call i64 @FUNC(i64 %4)
store i64 %storemerge.reload, i64* %rax.0.shrunk.reg2mem
br label LBL_8
LBL_8:
%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 %36, { 1, 0 }
uselistorder i64 %indvars.iv39.reload, { 1, 0 }
uselistorder i64 %25, { 1, 0, 3, 2 }
uselistorder i64 %24, { 1, 0, 3, 2 }
uselistorder i32 %14, { 1, 3, 2, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %10, { 2, 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %sv_1, { 0, 1, 3, 2 }
uselistorder i64* %indvars.iv39.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.021.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.019.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.016.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.013.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.017.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.014.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 192, { 1, 0, 3, 2 }
uselistorder i32 0, { 3, 0, 1, 4, 2 }
uselistorder i64 4294967291, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | Sp_match_6279 | Sp_match | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.02.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %1, i64 0)
%4 = call i64 @FUNC(i64 %1, i64 1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %1, i64 1)
br label LBL_5
LBL_2:
%8 = call i64 @FUNC(i64 %1, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %1, i64 4202538, i64 0)
br label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64 %1, i64 1)
%13 = call i64 @FUNC(i64 %1, i64 %12, i64 0)
br label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64 %1, i64 4294967295)
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = urem i32 %16, 2
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = call i64 @FUNC(i64 %1, i64 %14, i64 %3)
store i64 %20, i64* %rax.1.reg2mem
br label LBL_13
LBL_7:
%21 = inttoptr i64 %3 to i8*
%22 = add i64 %14, 16
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
%24 = call i64 @FUNC(i64 %1)
%25 = call i32 @strlen(i8* %21)
%26 = sext i32 %25 to i64
%27 = add i64 %3, %26
%28 = icmp ugt i64 %3, %27
br i1 %28, label LBL_12, label LBL_8
LBL_8:
%29 = add i64 %14, 8
%30 = inttoptr i64 %29 to i64*
store i64 %3, i64* %sv_1.03.reg2mem
store i32 0, i32* %sv_0.02.reg2mem
br label LBL_9
LBL_9:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%31 = icmp ugt i64 %sv_1.03.reload, %3
%. = select i1 %31, i64 2, i64 0
%32 = load i64, i64* %30, align 8
%33 = call i64 @FUNC(i64 %1, i64 %32, i64 %sv_1.03.reload, i64* nonnull %sv_2, i64 %.)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i32 %sv_0.02.reload, i32* %sv_0.0.lcssa.reg2mem
store i64 %33, i64* %rax.0.reg2mem
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%37 = load i64, i64* %sv_2, align 8
%38 = sub i64 %2, %37
%39 = call i64 @FUNC(i64 %1, i64 %37, i64 %38)
%40 = add i32 %sv_0.02.reload, 1
%41 = zext i32 %sv_0.02.reload to i64
%42 = call i64 @FUNC(i64 %1, i64 4294967294, i64 %41)
%43 = icmp eq i64 %2, %37
%44 = zext i1 %43 to i64
%spec.select = add i64 %2, %44
%45 = icmp ugt i64 %spec.select, %27
store i64 %spec.select, i64* %sv_1.03.reg2mem
store i32 %40, i32* %sv_0.02.reg2mem
store i32 %40, i32* %sv_0.0.lcssa.reg2mem
store i64 %spec.select, i64* %rax.0.reg2mem
br i1 %45, label LBL_11, label LBL_9
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%46 = icmp eq i32 %sv_0.0.lcssa.reload, 0
%47 = icmp eq i1 %46, false
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %47, label LBL_13, label LBL_12
LBL_12:
%48 = call i64 @FUNC(i64 %1, i64 1)
%49 = call i64 @FUNC(i64 %1)
store i64 %49, i64* %rax.1.reg2mem
br label LBL_13
LBL_13:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %sv_0.02.reload, { 2, 1, 0 }
uselistorder i64 %27, { 1, 0 }
uselistorder i64 %14, { 0, 2, 1, 3 }
uselistorder i64 %3, { 3, 0, 2, 1, 5, 4 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %1, { 5, 4, 2, 1, 3, 6, 0, 7, 9, 8, 10, 11, 12, 13, 14 }
uselistorder i64* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64, i64)* @js_newregexp, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64 1, { 1, 2, 3, 4, 5, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | is_mesh_11737 | is_mesh | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 0, i64 %9, i64 %6)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_6
LBL_2:
%13 = add i64 %10, 1
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = icmp eq i64 %16, %arg3
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_6
LBL_3:
%18 = add i64 %10, 2
%19 = inttoptr i64 %18 to i64*
%20 = bitcast i32* %arg2 to i64*
%21 = trunc i64 %arg3 to i32
%22 = call i32 @memcmp(i64* %19, i64* %20, i32 %21)
%23 = icmp eq i32 %22, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_4, label LBL_6
LBL_4:
%24 = load i64, i64* %5, align 8
%25 = load i64, i64* %8, align 8
%26 = call i64 @FUNC(i64 1, i64 %25, i64 %24)
%27 = add i64 %26, 1
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 10
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_5, label LBL_6
LBL_5:
%31 = add i64 %26, 2
%32 = inttoptr i64 %31 to i64*
%33 = call i32 @memcmp(i64* %32, i64* %arg4, i32 8)
%34 = icmp eq i32 %33, 0
%35 = zext i1 %34 to i64
%36 = and i32 %33, -256
%37 = sext i32 %36 to i64
%38 = or i64 %37, %35
store i64 %38, 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 %0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @find_ie, { 1, 0 }
uselistorder i64 0, { 0, 1, 2, 3, 12, 10, 4, 5, 7, 6, 9, 8, 11 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_6, { 5, 0, 1, 2, 3, 4 }
} | 1 |
BinRealVul | ocfs2_test_inode_bit_4282 | ocfs2_test_inode_bit | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.04.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%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
store i32 0, i32* %sv_2, align 4
store i64 0, i64* %sv_1, align 8
%3 = call i64 @FUNC(i64 %arg2)
%4 = ptrtoint i64* %sv_4 to i64
%5 = ptrtoint i32* %sv_3 to i64
%6 = bitcast i32* %sv_2 to i16*
%7 = bitcast i32* %sv_3 to i16*
%8 = call i64 @FUNC(i64 %2, i64 %arg2, i16* nonnull %6, i64* nonnull %sv_4, i16* nonnull %7)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = and i64 %8, 4294967295
%13 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %4, i64 %5, i64 %1)
store i32 %9, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_2:
%14 = load i32, i32* %sv_2, align 4
%15 = urem i32 %14, 65536
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %2, i64 0, i64 %16)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = load i32, i32* %sv_2, align 4
%21 = urem i32 %20, 65536
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %4, i64 %5, i64 %1)
store i32 -22, i32* %sv_0.03.reg2mem
br label LBL_10
LBL_4:
%24 = call i64 @FUNC(i64 %17)
%25 = call i64 @FUNC(i64 %17, i64* nonnull %sv_1, i64 0)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %17)
%30 = call i64 @FUNC(i64 %17)
%31 = load i32, i32* %sv_2, align 4
%32 = and i64 %25, 4294967295
%33 = urem i32 %31, 65536
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_2, i64 0, i64 0), i64 %34, i64 %32, i64 %5, i64 %1)
store i32 %26, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%36 = load i32, i32* %sv_3, align 4
%37 = load i64, i64* %sv_4, align 8
%38 = load i64, i64* %sv_1, align 8
%39 = urem i32 %36, 65536
%40 = zext i32 %39 to i64
%41 = call i64 @FUNC(i64 %2, i64 %17, i64 %38, i64 %37, i64 %arg2, i64 %40)
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%45 = and i64 %41, 4294967295
%46 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %45, i64 %37, i64 %arg2, i64 %40)
br label LBL_8
LBL_8:
%47 = call i64 @FUNC(i64 %17, i64 0)
%48 = call i64 @FUNC(i64 %17)
%49 = call i64 @FUNC(i64 %17)
%50 = load i64, i64* %sv_1, align 8
%51 = call i64 @FUNC(i64 %50)
store i32 %42, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%52 = icmp eq i32 %sv_0.0.reload, 0
store i32 %sv_0.0.reload, i32* %sv_0.03.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br i1 %52, label LBL_11, label LBL_10
LBL_10:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%53 = zext i32 %sv_0.03.reload to i64
%54 = call i64 @FUNC(i64 %53)
store i32 %sv_0.03.reload, i32* %sv_0.04.reg2mem
br label LBL_11
LBL_11:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%55 = zext i32 %sv_0.04.reload to i64
ret i64 %55
uselistorder i64 %17, { 4, 3, 2, 5, 1, 0, 7, 6, 8 }
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_4, { 1, 0, 2, 3 }
uselistorder i32* %sv_3, { 2, 3, 1, 0 }
uselistorder i32* %sv_2, { 3, 2, 1, 4, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @iput, { 1, 0 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @mlog, { 3, 2, 1, 0 }
uselistorder i32 0, { 0, 3, 4, 5, 6, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | vtd_handle_gcmd_qie_15189 | vtd_handle_gcmd_qie | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i8
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = urem i64 %arg2, 256
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i8 %1, 0
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = trunc i64 %2 to i32
%10 = mul i64 %2, 4294967296
%sext = ashr exact i64 %10, 32
%11 = and i64 %sext, -4096
store i64 %11, i64* %arg1, align 8
%12 = add i32 %9, 8
%13 = urem i32 %12, 64
%14 = icmp eq i32 %13, 0
%15 = zext i32 %13 to i64
%16 = shl i64 1, %15
%storemerge = select i1 %14, i64 1, i64 %16
%17 = add i64 %0, 8
%18 = inttoptr i64 %17 to i64*
store i64 %storemerge, i64* %18, align 8
%19 = add i64 %0, 16
%20 = inttoptr i64 %19 to i8*
store i8 1, i8* %20, align 1
%21 = load i64, i64* %18, align 8
%22 = call i64 @FUNC(i64 %0, i64 %21)
%23 = call i64 @FUNC(i64 %0, i64 1, i64 0, i64 1)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%24 = add i64 %0, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%28 = call i64 @FUNC(i64 %0)
%29 = trunc i64 %28 to i8
%30 = icmp eq i8 %29, 0
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = call i64 @FUNC(i64 %0, i64 2, i64 0)
%32 = add i64 %0, 24
%33 = inttoptr i64 %32 to i64*
store i64 0, i64* %33, align 8
%34 = add i64 %0, 16
%35 = inttoptr i64 %34 to i8*
store i8 0, i8* %35, align 1
%36 = call i64 @FUNC(i64 %0, i64 1, i64 1, i64 0)
store i64 %36, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%37 = add i64 %0, 40
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %0, 32
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = add i64 %0, 24
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %45, i64 %42, i64 %39)
store i64 %46, 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, { 11, 8, 7, 5, 6, 9, 10, 12, 4, 1, 0, 2, 3, 13, 14 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @vtd_set_clear_mask_long, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
} | 1 |
BinRealVul | headroom_15705 | headroom | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 31, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = sub i32 0, %2
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
%8 = select i1 %7, i32 %5, i32 %2
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = sub i32 30, %11
%13 = urem i32 %12, 32
%14 = shl i32 %2, %13
store i32 %14, i32* %arg1, align 4
%15 = zext i32 %12 to i64
store i64 %15, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %2, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vfio_disable_interrupts_13997 | vfio_disable_interrupts | 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, 3
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
%5 = icmp sgt i32 %2, 3
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_6, label LBL_2
LBL_2:
store i64 %4, i64* %rax.0.reg2mem
switch i32 %2, label LBL_6 [
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%6 = ptrtoint i32* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %2, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 3, 1, 4 }
uselistorder i32 3, { 1, 0 }
uselistorder i32* %arg1, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | _php_stream_memory_open_6402 | _php_stream_memory_open | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = trunc i64 %arg1 to i32
%5 = icmp ne i32 %4, 0
%6 = icmp eq i32 %4, 1
%7 = icmp eq i1 %6, false
%or.cond = icmp eq i1 %5, %7
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%8 = inttoptr i64 %1 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
store i64 %3, i64* %10, align 8
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i64*
store i64 %arg3, i64* %12, align 8
br label LBL_7
LBL_3:
%13 = icmp eq i64 %arg3, 0
br i1 %13, label LBL_7, label LBL_4
LBL_4:
%14 = icmp eq i64* %arg2, null
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %1, i64 %3, i64 %arg3)
br label LBL_7
LBL_7:
ret i64 %1
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i1 false, { 1, 0 }
} | 0 |
BinRealVul | handle_cmdallow_7991 | handle_cmdallow | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i16
%0 = ptrtoint i8* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i32 @ntohl(i32 %4)
%6 = call i64 @FUNC(i64* nonnull %sv_0, i32 %5, i64 1, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i16 @htons(i16 0)
%10 = bitcast i64* %arg2 to i16*
store i16 %9, i16* %10, align 2
store i16 %9, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_2:
%11 = call i16 @htons(i16 1)
%12 = bitcast i64* %arg2 to i16*
store i16 %11, i16* %12, align 2
store i16 %11, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_3:
%rax.0.in.reload = load i16, i16* %rax.0.in.reg2mem
%rax.0 = sext i16 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i16* %rax.0.in.reg2mem, { 0, 2, 1 }
uselistorder i16 (i16)* @htons, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
} | 0 |
BinRealVul | RegisterStaticModules_12392 | RegisterStaticModules | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
store i64 0, i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%0 = mul nuw nsw i64 %storemerge1.reload, 24
%1 = add i64 %0, ptrtoint (i32** @gv_0 to i64)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 8
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = add i64 %0, ptrtoint ([8 x i8]** @gv_1 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = load i64, i64* @gv_2, align 8
%10 = load i64, i64* @gv_3, align 8
%11 = call i64 @FUNC(i64 %10, i64 %9, i64 %8)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
store i32 1, i32* %2, align 8
br label LBL_4
LBL_4:
%14 = add nuw nsw i64 %storemerge1.reload, 1
%exitcond = icmp eq i64 %14, 2
store i64 %14, i64* %storemerge1.reg2mem
br i1 %exitcond, label LBL_5, label LBL_1
LBL_5:
ret i64 2
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | add_metadata_from_side_data_2476 | add_metadata_from_side_data | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = bitcast i32* %sv_0 to i64*
%2 = call i64 @FUNC(i64 %0, i64 0, i64* nonnull %1)
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = load i32, i32* %sv_0, align 4
%5 = sext i32 %4 to i64
%6 = add i64 %2, %5
%7 = icmp eq i32 %4, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %6, -1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_7
LBL_3:
%12 = ptrtoint i64* %arg2 to i64
%13 = icmp ugt i64 %6, %2
store i64 %2, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_7
LBL_4:
%.reload = load i64, i64* %.reg2mem
%sv_1.04 = inttoptr i64 %.reload to i8*
%14 = call i32 @strlen(i8* %sv_1.04)
%15 = sext i32 %14 to i64
%16 = add i64 %.reload, 1
%17 = add i64 %16, %15
%18 = icmp ult i64 %17, %6
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_7
LBL_5:
%19 = call i64 @FUNC(i64 %12)
%20 = call i64 @FUNC(i64 %19, i64 %.reload, i64 %17, i64 0)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = inttoptr i64 %17 to i8*
%24 = call i32 @strlen(i8* %23)
%25 = sext i32 %24 to i64
%26 = add i64 %17, 1
%27 = add i64 %26, %25
%28 = icmp ugt i64 %6, %27
store i64 %27, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_4, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %17, { 0, 2, 1, 3 }
uselistorder i64 %.reload, { 1, 0, 2 }
uselistorder i64 %6, { 2, 1, 0, 3 }
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 6, 5 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0, 3, 5, 4 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qmp_query_vnc_client_17307 | qmp_query_vnc_client | define i64 @FUNC(i64* %arg1) 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 i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
store i32 128, i32* %sv_3, align 4
%2 = trunc i64 %1 to i32
%3 = bitcast i32* %sv_2 to %sockaddr*
%4 = call i32 @getpeername(i32 %2, %sockaddr* nonnull %3, i32* nonnull %sv_3)
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = load i32, i32* %sv_3, align 4
%8 = bitcast i64* %sv_0 to i8*
%9 = bitcast i64* %sv_1 to i8*
%10 = call i32 @getnameinfo(%sockaddr* nonnull %3, i32 %7, i8* nonnull %8, i32 1025, i8* nonnull %9, i32 32, i32 3)
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_3
LBL_2:
%13 = ptrtoint i64* %arg1 to i64
%14 = call i64 @FUNC(i64 40)
%15 = call i64 @FUNC(i64 24)
%16 = inttoptr i64 %14 to i64*
store i64 %15, i64* %16, align 8
%17 = call i64 @FUNC(i64* nonnull %sv_0)
%18 = inttoptr i64 %15 to i64*
store i64 %17, i64* %18, align 8
%19 = load i64, i64* %16, align 8
%20 = call i64 @FUNC(i64* nonnull %sv_1)
%21 = add i64 %19, 8
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = load i32, i32* %sv_2, align 4
%24 = load i64, i64* %16, align 8
%25 = urem i32 %23, 65536
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i32
%29 = add i64 %24, 16
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = load i64, i64* %16, align 8
%32 = add i64 %13, 4
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = add i64 %31, 20
%36 = inttoptr i64 %35 to i8*
store i8 %34, i8* %36, align 1
store i64 %14, 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 i32* %sv_3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64*)* @g_strdup, { 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | pdo_stmt_init_11465 | pdo_stmt_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %0)
%2 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %2, i64* @gv_2, align 8
%3 = load i64, i64* @gv_3, align 8
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i64*
store i64 %3, i64* %5, align 8
%6 = load i64, i64* @gv_2, align 8
%7 = load i64, i64* @gv_4, align 8
%8 = add i64 %6, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = load i64, i64* @gv_5, align 8
%11 = load i64, i64* @gv_2, align 8
%12 = call i64 @FUNC(i64 %11, i64 1, i64 %10)
%13 = load i64, i64* @gv_2, align 8
%14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0), i64 11, i64 1)
%15 = load i64, i64* @gv_7, align 8
store i64 %15, i64* @gv_8, align 8
%16 = load i64, i64* @gv_9, align 8
store i64 %16, i64* @gv_10, align 8
%17 = load i64, i64* @gv_11, align 8
store i64 %17, i64* @gv_12, align 8
%18 = load i64, i64* @gv_13, align 8
store i64 %18, i64* @gv_14, align 8
%19 = load i64, i64* @gv_15, align 8
store i64 %19, i64* @gv_16, align 8
%20 = load i64, i64* @gv_17, align 8
%21 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_18, i64 0, i64 0), i64 %20)
%22 = call i64 @FUNC(i64* nonnull %sv_0)
%23 = inttoptr i64 %22 to i32*
store i32* %23, i32** @gv_19, align 8
%24 = load i32, i32* %23, align 4
%25 = or i32 %24, 2
store i32 %25, i32* %23, align 4
%26 = load i32*, i32** @gv_19, align 8
%27 = ptrtoint i32* %26 to i64
%28 = load i64, i64* @gv_20, align 8
%29 = add i64 %27, 8
%30 = inttoptr i64 %29 to i64*
store i64 %28, i64* %30, align 8
%31 = load i32*, i32** @gv_19, align 8
%32 = ptrtoint i32* %31 to i64
%33 = load i64, i64* @gv_21, align 8
%34 = add i64 %32, 24
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
ret i64 %32
uselistorder i32** @gv_19, { 2, 1, 0 }
uselistorder i64 (i64*)* @zend_register_internal_class, { 1, 0 }
uselistorder i64 (i8*, i64)* @INIT_CLASS_ENTRY, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | qxl_reset_state_16276 | qxl_reset_state | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %5)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%13 = add i64 %5, 4
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%18 = inttoptr i64 %8 to i32*
%19 = trunc i64 %1 to i32
%20 = call i64 @FUNC(i64 0)
%21 = trunc i64 %20 to i32
%22 = bitcast i64* %arg1 to i32*
store i32 %21, i32* %22, align 4
store i32 %19, i32* %18, align 4
%23 = call i64 @FUNC(i64 %2)
%24 = call i64 @FUNC(i64 %2)
%25 = add i64 %2, 24
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = add i64 %2, 32
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %28, align 8
%29 = add i64 %2, 40
%30 = inttoptr i64 %29 to i64*
%31 = call i64* @memset(i64* %30, i32 0, i32 4)
%32 = ptrtoint i64* %31 to i64
ret i64 %32
uselistorder i64 %2, { 0, 1, 4, 3, 2, 5, 6 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64 (i64)* @SPICE_RING_IS_EMPTY, { 1, 0 }
} | 1 |
reposvul_c_test | ossl_a2ulabel_302 | ossl_a2ulabel | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.46.reg2mem = alloca i32
%sv_1.38.reg2mem = alloca i64
%sv_2.29.reg2mem = alloca i64
%sv_0.410.reg2mem = alloca i32
%sv_0.4.reg2mem = alloca i32
%sv_1.3.reg2mem = alloca i64
%rdx.1.lcssa.reg2mem = alloca i64
%sv_0.3.lcssa.reg2mem = alloca i32
%sv_2.1.lcssa.reg2mem = alloca i64
%sv_1.2.lcssa.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.216.reg2mem = alloca i64
%sv_2.117.reg2mem = alloca i64
%sv_0.318.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i32, align 4
%sv_7 = alloca i64, align 8
%1 = ptrtoint i64* %sv_7 to i64
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
%spec.store.select = zext i1 %3 to i32
%4 = ptrtoint i64* %sv_5 to i64
%5 = add i64 %1, -1088
store i64 %0, i64* %sv_1.0.reg2mem
store i64 %arg1, i64* %sv_3.0.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i32 %spec.store.select, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%6 = inttoptr i64 %sv_3.0.reload to i8*
%7 = call i8* @strchr(i8* %6, i32 46)
%8 = ptrtoint i8* %7 to i64
%9 = icmp eq i8* %7, null
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = sub i64 %8, %sv_3.0.reload
store i64 %10, i64* %storemerge2.reg2mem
br label LBL_4
LBL_3:
%11 = call i32 @strlen(i8* %6)
%12 = sext i32 %11 to i64
store i64 %12, i64* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%13 = call i32 @strncmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i32 4)
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_7, label LBL_5
LBL_5:
%15 = add i64 %storemerge2.reload, 1
%16 = add i64 %15, %sv_2.0.reload
%17 = add i64 %storemerge2.reload, -1
%18 = icmp ult i64 %16, %17
%spec.select = select i1 %18, i32 %sv_0.0.reload, i32 0
%19 = icmp slt i32 %spec.select, 1
store i64 %sv_1.0.reload, i64* %sv_1.3.reg2mem
store i32 %spec.select, i32* %sv_0.4.reg2mem
br i1 %19, label LBL_15, label LBL_6
LBL_6:
%20 = inttoptr i64 %sv_1.0.reload to i64*
%21 = inttoptr i64 %sv_3.0.reload to i64*
%22 = trunc i64 %storemerge2.reload to i32
%23 = add i32 %22, 1
%24 = call i64* @memcpy(i64* %20, i64* %21, i32 %23)
%25 = add i64 %15, %sv_1.0.reload
store i64 %25, i64* %sv_1.3.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.4.reg2mem
br label LBL_15
LBL_7:
store i32 256, i32* %sv_6, align 4
%26 = add i64 %storemerge2.reload, -4
%27 = add i64 %sv_3.0.reload, 4
%28 = call i64 @FUNC(i64 %27, i64 %26, i64* nonnull %sv_5, i32* nonnull %sv_6)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_8, label LBL_18
LBL_8:
%35 = load i32, i32* %sv_6, align 4
%36 = icmp eq i32 %35, 0
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.318.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.117.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.216.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.2.lcssa.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.1.lcssa.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.3.lcssa.reg2mem
store i64 %4, i64* %rdx.1.lcssa.reg2mem
br i1 %36, label LBL_13, label LBL_9
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%37 = mul i64 %indvars.iv.reload, 4
%38 = add i64 %5, %37
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64* nonnull %sv_4, i64 %41)
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %44, label LBL_10, label LBL_18
LBL_10:
%sv_1.216.reload = load i64, i64* %sv_1.216.reg2mem
%sv_2.117.reload = load i64, i64* %sv_2.117.reg2mem
%sv_0.318.reload = load i32, i32* %sv_0.318.reg2mem
%sext = mul i64 %42, 4294967296
%45 = ashr exact i64 %sext, 32
%46 = add i64 %45, %sv_2.117.reload
%47 = add nsw i64 %41, -1
%48 = icmp ult i64 %46, %47
%spec.select4 = select i1 %48, i32 %sv_0.318.reload, i32 0
%49 = icmp slt i32 %spec.select4, 1
store i64 %sv_1.216.reload, i64* %sv_1.1.reg2mem
store i64 %41, i64* %rdx.0.reg2mem
br i1 %49, label LBL_12, label LBL_11
LBL_11:
%50 = trunc i64 %42 to i32
%51 = inttoptr i64 %sv_1.216.reload to i64*
%52 = call i64* @memcpy(i64* %51, i64* nonnull %sv_4, i32 %50)
%53 = add i64 %45, %sv_1.216.reload
store i64 %53, i64* %sv_1.1.reg2mem
store i64 %45, i64* %rdx.0.reg2mem
br label LBL_12
LBL_12:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%54 = load i32, i32* %sv_6, align 4
%55 = zext i32 %54 to i64
%56 = icmp ult i64 %indvars.iv.next, %55
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %spec.select4, i32* %sv_0.318.reg2mem
store i64 %46, i64* %sv_2.117.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.216.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.lcssa.reg2mem
store i64 %46, i64* %sv_2.1.lcssa.reg2mem
store i32 %spec.select4, i32* %sv_0.3.lcssa.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.lcssa.reg2mem
br i1 %56, label LBL_9, label LBL_13
LBL_13:
%sv_0.3.lcssa.reload = load i32, i32* %sv_0.3.lcssa.reg2mem
store i32 %sv_0.3.lcssa.reload, i32* %sv_0.46.reg2mem
br i1 %9, label LBL_17, label LBL_14
LBL_14:
%rdx.1.lcssa.reload = load i64, i64* %rdx.1.lcssa.reg2mem
%sv_2.1.lcssa.reload = load i64, i64* %sv_2.1.lcssa.reg2mem
%sv_1.2.lcssa.reload = load i64, i64* %sv_1.2.lcssa.reg2mem
%57 = inttoptr i64 %sv_1.2.lcssa.reload to i8*
store i8 46, i8* %57, align 1
%58 = add i64 %sv_1.2.lcssa.reload, 1
%59 = add i64 %sv_2.1.lcssa.reload, 1
%60 = add i64 %rdx.1.lcssa.reload, -1
%61 = icmp ult i64 %59, %60
%spec.select5 = select i1 %61, i32 %sv_0.3.lcssa.reload, i32 0
store i32 %spec.select5, i32* %sv_0.410.reg2mem
store i64 %59, i64* %sv_2.29.reg2mem
store i64 %58, i64* %sv_1.38.reg2mem
br label LBL_16
LBL_15:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
store i32 %sv_0.4.reload, i32* %sv_0.410.reg2mem
store i64 %16, i64* %sv_2.29.reg2mem
store i64 %sv_1.3.reload, i64* %sv_1.38.reg2mem
store i32 %sv_0.4.reload, i32* %sv_0.46.reg2mem
br i1 %9, label LBL_17, label LBL_16
LBL_16:
%sv_1.38.reload = load i64, i64* %sv_1.38.reg2mem
%sv_2.29.reload = load i64, i64* %sv_2.29.reg2mem
%sv_0.410.reload = load i32, i32* %sv_0.410.reg2mem
%62 = add i64 %8, 1
store i64 %sv_1.38.reload, i64* %sv_1.0.reg2mem
store i64 %62, i64* %sv_3.0.reg2mem
store i64 %sv_2.29.reload, i64* %sv_2.0.reg2mem
store i32 %sv_0.410.reload, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_17:
%sv_0.46.reload = load i32, i32* %sv_0.46.reg2mem
%63 = zext i32 %sv_0.46.reload to i64
store i64 %63, 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 %sv_0.3.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_1.216.reload, { 2, 1, 0 }
uselistorder i64 %42, { 1, 0, 2 }
uselistorder i32 %29, { 1, 0 }
uselistorder i64 %storemerge2.reload, { 0, 2, 1, 3 }
uselistorder i64 %sv_1.0.reload, { 1, 2, 4, 3, 0 }
uselistorder i64 %sv_3.0.reload, { 1, 2, 3, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0, 3 }
uselistorder i32* %sv_6, { 2, 0, 1, 3 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.318.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.117.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.216.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.46.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 -1, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0, 4, 5, 3, 6 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder label LBL_18, { 2, 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | dname_dec_11580 | dname_dec | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.3.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
store i64 0, i64* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%2 = icmp eq i64 %storemerge.reload, 0
store i32 0, i32* %sv_3.1.reg2mem
store i32 0, i32* %sv_2.2.reg2mem
store i32 0, i32* %sv_1.3.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br label LBL_13
LBL_2:
%sv_1.3.reload = load i32, i32* %sv_1.3.reg2mem
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%3 = zext i32 %sv_0.2.reload to i64
%4 = add i64 %3, %0
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp ugt i8 %6, -65
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_3
LBL_3:
%9 = add i32 %sv_0.2.reload, 2
%10 = icmp ugt i32 %9, %1
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_18, label LBL_4
LBL_4:
%11 = icmp eq i32 %sv_1.3.reload, 0
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i32 %sv_1.3.reload, i32 %9
%13 = add i32 %sv_2.2.reload, 1
%14 = zext i8 %6 to i32
%15 = mul i32 %14, 256
%16 = and i32 %15, 16128
%17 = add i64 %4, 1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = zext i8 %19 to i32
%21 = or i32 %16, %20
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
store i32 %13, i32* %sv_2.1.reg2mem
store i32 %spec.select, i32* %sv_1.2.reg2mem
store i32 %21, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_5:
%22 = icmp eq i8 %6, 0
br i1 %22, label LBL_10, label LBL_6
LBL_6:
%23 = zext i8 %6 to i32
%24 = add i32 %sv_0.2.reload, 1
%25 = add i32 %24, %23
%26 = icmp ugt i32 %25, %1
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_18, label LBL_7
LBL_7:
br i1 %2, label LBL_8, label LBL_9
LBL_8:
%27 = add i32 %sv_3.1.reload, 1
%28 = add i32 %27, %23
store i32 %28, i32* %sv_3.0.reg2mem
store i32 %sv_2.2.reload, i32* %sv_2.1.reg2mem
store i32 %sv_1.3.reload, i32* %sv_1.2.reg2mem
store i32 %25, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_9:
%29 = add i64 %4, 1
%30 = zext i32 %sv_3.1.reload to i64
%31 = add i64 %storemerge.reload, %30
%32 = inttoptr i64 %31 to i64*
%33 = inttoptr i64 %29 to i64*
%34 = call i64* @memcpy(i64* %32, i64* %33, i32 %23)
%35 = load i8, i8* %5, align 1
%36 = zext i8 %35 to i32
%37 = add i32 %sv_3.1.reload, %36
%38 = add i32 %37, 1
%39 = add i32 %24, %36
%40 = zext i32 %37 to i64
%41 = add i64 %storemerge.reload, %40
%42 = inttoptr i64 %41 to i8*
store i8 46, i8* %42, align 1
store i32 %38, i32* %sv_3.0.reg2mem
store i32 %sv_2.2.reload, i32* %sv_2.1.reg2mem
store i32 %sv_1.3.reload, i32* %sv_1.2.reg2mem
store i32 %39, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_10:
%43 = icmp eq i32 %sv_1.3.reload, 0
%44 = icmp eq i1 %43, false
%45 = add i32 %sv_0.2.reload, 1
%sv_2.0 = select i1 %44, i32 0, i32 %sv_2.2.reload
%sv_1.1 = select i1 %44, i32 0, i32 %sv_1.3.reload
%sv_0.0 = select i1 %44, i32 %sv_1.3.reload, i32 %45
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
store i32 %sv_2.0, i32* %sv_2.1.reg2mem
store i32 %sv_1.1, i32* %sv_1.2.reg2mem
store i32 %sv_0.0, i32* %sv_0.1.reg2mem
br i1 %2, label LBL_12, label LBL_11
LBL_11:
%46 = add i32 %sv_3.1.reload, -1
%47 = zext i32 %46 to i64
%48 = add i64 %storemerge.reload, %47
%49 = inttoptr i64 %48 to i8*
store i8 32, i8* %49, align 1
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
store i32 %sv_2.0, i32* %sv_2.1.reg2mem
store i32 %sv_1.1, i32* %sv_1.2.reg2mem
store i32 %sv_0.0, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%50 = icmp ult i32 %sv_2.1.reload, 11
%51 = icmp ult i32 %sv_3.0.reload, 2551
%or.cond = icmp eq i1 %51, %50
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.2.reload, i32* %sv_1.3.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_13, label LBL_18
LBL_13:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%52 = icmp ult i32 %sv_0.2.reload, %1
br i1 %52, label LBL_2, label LBL_14
LBL_14:
%53 = icmp eq i32 %sv_3.1.reload, 0
%54 = icmp eq i1 %53, false
store i64 0, i64* %rax.0.reg2mem
br i1 %54, label LBL_15, label LBL_18
LBL_15:
%55 = icmp eq i1 %2, false
br i1 %55, label LBL_17, label LBL_16
LBL_16:
%56 = call i32 @strlen(i8* %arg3)
%57 = add i32 %56, %sv_3.1.reload
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 %58)
%60 = inttoptr i64 %59 to i8*
%61 = call i8* @stpcpy(i8* %60, i8* %arg3)
%62 = ptrtoint i8* %61 to i64
store i64 %59, i64* %sv_4.0.reg2mem
store i64 %62, i64* %storemerge.reg2mem
br label LBL_1
LBL_17:
%63 = add i32 %sv_3.1.reload, -1
%64 = zext i32 %63 to i64
%65 = add i64 %storemerge.reload, %64
%66 = inttoptr i64 %65 to i8*
store i8 0, i8* %66, align 1
store i64 %sv_4.0.reload, 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 %sv_3.1.reload, { 6, 5, 4, 9, 2, 1, 3, 7, 0, 8 }
uselistorder i32 %sv_0.2.reload, { 1, 0, 4, 3, 2 }
uselistorder i32 %23, { 2, 1, 0 }
uselistorder i8 %6, { 1, 2, 0, 3 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i32 %sv_2.2.reload, { 1, 2, 3, 0 }
uselistorder i32 %sv_1.3.reload, { 4, 3, 0, 5, 6, 2, 1 }
uselistorder i64 %storemerge.reload, { 4, 3, 2, 1, 0 }
uselistorder i32 %1, { 2, 1, 0 }
uselistorder i64* %sv_4.0.reg2mem, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_2.2.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i32 -1, { 1, 0 }
uselistorder i1 false, { 0, 4, 1, 2, 3, 5 }
uselistorder i32 0, { 8, 4, 5, 6, 7, 0, 1, 2, 3 }
uselistorder label LBL_18, { 4, 0, 1, 2, 3 }
uselistorder label LBL_12, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | build_l4proto_tcp_11363 | build_l4proto_tcp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 1, i64 %0, i64 5, i64 0)
%3 = call i64 @FUNC(i64 %1, i64 2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %1, i64 2, i64 %0, i64 6)
%7 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %1, i64 3, i64 %0, i64 7)
%10 = call i64 @FUNC(i64 %1, i64 4, i64 %0, i64 8)
store i64 %10, 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 %1, { 1, 0, 2, 3, 4 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64, i64, i64)* @ct_build_u8, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | tap_set_sndbuf_17100 | tap_set_sndbuf | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i8* %arg2, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg3 to i64
%2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0))
store i64 %2, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
reposvul_c_test | has_sha1_pack_kept_or_nonlocal_31 | has_sha1_pack_kept_or_nonlocal | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem14 = alloca i32*
%.reg2mem12 = alloca i32*
%.reg2mem10 = alloca i32*
%.reg2mem8 = alloca i64
%.reg2mem = alloca i32*
%0 = load i32*, i32** @gv_0, align 8
%1 = icmp eq i32* %0, inttoptr (i64 1 to i32*)
%2 = load i64, i64* @gv_1, align 8
%3 = ptrtoint i32* %0 to i64
%storemerge3 = select i1 %1, i64 %2, i64 %3
%4 = icmp eq i64 %storemerge3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_10
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = inttoptr i64 %storemerge3 to i32*
store i32* %0, i32** %.reg2mem
store i64 %storemerge3, i64* %.reg2mem8
store i32* %7, i32** %.reg2mem10
br label LBL_2
LBL_2:
%.reload11 = load i32*, i32** %.reg2mem10
%.reload9 = load i64, i64* %.reg2mem8
%8 = load i32, i32* %.reload11, align 4
%9 = icmp eq i32 %8, 0
%.pre4 = ptrtoint i32* %.reload11 to i64
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%.reload = load i32*, i32** %.reg2mem
%10 = add i64 %.pre4, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
store i32* %.reload, i32** %.reg2mem12
br i1 %13, label LBL_7, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %6, i64 %.pre4)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre = load i32*, i32** @gv_0, align 8
store i32* %.pre, i32** %.reg2mem12
br label LBL_7
LBL_6:
store i64 %.reload9, i64* bitcast (i32** @gv_0 to i64*), align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_10
LBL_7:
%.reload13 = load i32*, i32** %.reg2mem12
%17 = icmp eq i32* %.reload11, %.reload13
%18 = icmp eq i1 %17, false
%19 = add i64 %.pre4, 8
%20 = inttoptr i64 %19 to i64*
%storemerge2.in.in = select i1 %18, i64* %20, i64* @gv_1
%storemerge2.in = load i64, i64* %storemerge2.in.in, align 8
%storemerge2 = inttoptr i64 %storemerge2.in to i32*
%21 = icmp eq i32* %.reload13, %storemerge2
%22 = icmp eq i1 %21, false
store i32* %storemerge2, i32** %.reg2mem14
br i1 %22, label LBL_8, label LBL_9
LBL_8:
%.reload15 = load i32*, i32** %.reg2mem14
%23 = icmp eq i32* %.reload15, null
%24 = icmp eq i1 %23, false
%25 = ptrtoint i32* %.reload15 to i64
store i32* %.reload13, i32** %.reg2mem
store i64 %25, i64* %.reg2mem8
store i32* %.reload15, i32** %.reg2mem10
store i64 0, i64* %storemerge.reg2mem
br i1 %24, label LBL_2, label LBL_10
LBL_9:
%26 = add i64 %storemerge2.in, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %28 to i32*
store i32* %29, i32** %.reg2mem14
br label LBL_8
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %.reload15, { 2, 0, 1 }
uselistorder i32* %.reload13, { 2, 0, 1 }
uselistorder i32* %.reload11, { 1, 2, 0 }
uselistorder i64 %storemerge3, { 0, 2, 1 }
uselistorder i32** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem8, { 1, 0, 2 }
uselistorder i32** %.reg2mem10, { 1, 0, 2 }
uselistorder i32** %.reg2mem12, { 0, 2, 1 }
uselistorder i32** %.reg2mem14, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i32** @gv_0, { 1, 0, 2 }
uselistorder label LBL_10, { 0, 2, 1 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | _pixops_composite_real_7533 | _pixops_composite_real | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64 %arg10, i64 %arg11, i64 %arg12, i64 %arg13, i64 %arg14, i64 %arg15, i64 %arg16) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%xmm0.1.reg2mem = alloca i128
%xmm0.0.reg2mem = alloca i128
%2 = load i128, i128* %0
%3 = load i128, i128* %0
%4 = trunc i64 %arg7 to i32
%5 = load i64, i64* %1
%6 = load i64, i64* %1
%sv_0 = alloca i64, align 8
%sext19 = mul i64 %arg14, 4294967296
%7 = ashr exact i64 %sext19, 32
%8 = call i64 @FUNC(i128 %3)
%9 = call i64 @FUNC(i128 %2)
%10 = call i64 @FUNC()
%11 = icmp eq i32 %4, 3
%12 = icmp eq i1 %11, false
%13 = trunc i64 %arg8 to i32
%14 = icmp eq i32 %13, 0
%narrow = or i1 %12, %14
%storemerge28 = zext i1 %narrow to i64
%15 = call i64 @FUNC(i64 %storemerge28)
%16 = trunc i64 %arg13 to i32
%17 = add i32 %16, -3
%18 = icmp eq i32 %17, 0
%19 = trunc i32 %17 to i8
%20 = call i8 @llvm.ctpop.i8(i8 %19), !range !26
%21 = icmp eq i1 %18, false
%22 = trunc i64 %7 to i32
%23 = icmp eq i32 %22, 0
%24 = trunc i64 %7 to i8
%25 = call i8 @llvm.ctpop.i8(i8 %24), !range !26
%pf.0.in.in = select i1 %21, i8 %20, i8 %25
%not. = icmp ne i1 %21, true
%zf.0 = icmp eq i1 %23, %not.
%narrow30 = or i1 %21, %23
%storemerge = zext i1 %narrow30 to i64
%pf.0.in = urem i8 %pf.0.in.in, 2
%pf.0 = icmp eq i8 %pf.0.in, 0
%26 = call i64 @FUNC(i64 %storemerge)
%27 = call i128 @FUNC(i128 %3, i128 %3)
call void @FUNC(i128 %27, i64 %8)
store i128 %27, i128* %xmm0.0.reg2mem
br i1 %pf.0, label LBL_2, label LBL_1
LBL_1:
%28 = call i128 @FUNC(i128 %27, i128 %27)
call void @FUNC(i128 %28, i64 %8)
store i128 %28, i128* %xmm0.0.reg2mem
store i64 %26, i64* %rax.0.reg2mem
br i1 %zf.0, label LBL_9, label LBL_2
LBL_2:
%xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem
%29 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload)
call void @FUNC(i128 %29, i64 %9)
store i128 %29, i128* %xmm0.1.reg2mem
br i1 %pf.0, label LBL_4, label LBL_3
LBL_3:
%30 = call i128 @FUNC(i128 %29, i128 %29)
call void @FUNC(i128 %30, i64 %9)
store i128 %30, i128* %xmm0.1.reg2mem
store i64 %26, i64* %rax.0.reg2mem
br i1 %zf.0, label LBL_9, label LBL_4
LBL_4:
%31 = ptrtoint i64* %arg1 to i64
%sext18 = mul i64 %arg15, 4294967296
%32 = ashr exact i64 %sext18, 32
%sext23 = mul i64 %arg2, 4294967296
%33 = ashr exact i64 %sext23, 32
%sext24 = mul i64 %arg3, 4294967296
%34 = ashr exact i64 %sext24, 32
%sext25 = mul i64 %arg4, 4294967296
%35 = ashr exact i64 %sext25, 32
%sext26 = mul i64 %arg5, 4294967296
%36 = ashr exact i64 %sext26, 32
%sext27 = mul i64 %arg6, 4294967296
%37 = ashr exact i64 %sext27, 32
%38 = trunc i64 %32 to i32
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_8, label LBL_5
LBL_5:
%41 = trunc i64 %32 to i8
%42 = call i8 @llvm.ctpop.i8(i8 %41), !range !26
%43 = urem i8 %42, 2
%44 = icmp eq i8 %43, 0
%45 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %45, i64 %8)
br i1 %44, label LBL_7, label LBL_6
LBL_6:
%46 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %46, i64 %8)
%47 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %47, i64 %9)
%48 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %48, i64 %9)
%49 = trunc i64 %37 to i32
%50 = trunc i64 %36 to i32
%51 = trunc i64 %35 to i32
%52 = trunc i64 %34 to i32
%53 = trunc i64 %33 to i32
%54 = call i64 @FUNC(i64 %31, i32 %53, i32 %52, i32 %51, i32 %50, i32 %49)
store i64 %54, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%55 = call i128 @__asm_movsd.1(i64 %9)
%56 = and i64 %37, 4294967295
%57 = and i64 %35, 4294967295
%58 = and i64 %34, 4294967295
%59 = and i64 %33, 4294967295
%60 = call i128 @FUNC(i128 %55)
%61 = call i128 @FUNC(i64 %8)
%62 = and i64 %36, 4294967295
%63 = call i64 @FUNC(i64 %31, i64 %59, i64 %58, i64 %57, i64 %62, i64 %56)
store i64 %63, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%xmm0.1.reload = load i128, i128* %xmm0.1.reg2mem
%64 = call i128 @FUNC(i128 %xmm0.1.reload, i128 %xmm0.1.reload)
%65 = trunc i64 %arg16 to i32
%66 = call i128 @FUNC(i32 %65)
%67 = call i128 @__asm_movsd.1(i64 4643176031446892544)
%68 = call i128 @FUNC(i128 %66, i128 %67)
%69 = call i64 @FUNC(i128 %68)
store i64 %69, i64* %sv_0, align 8
%70 = call i128 @__asm_movsd.1(i64 %9)
%71 = call i128 @FUNC(i128 %70)
%72 = call i128 @FUNC(i64 %8)
%73 = and i64 %32, 4294967295
%74 = call i64 @FUNC(i64* nonnull %sv_0, i64 %73)
%75 = call i128 @__asm_movsd.1(i64 %9)
%76 = and i64 %37, 4294967295
%77 = and i64 %35, 4294967295
%78 = and i64 %34, 4294967295
%79 = and i64 %33, 4294967295
%80 = call i128 @FUNC(i128 %75)
%81 = call i128 @FUNC(i64 %8)
%82 = and i64 %36, 4294967295
%83 = call i64 @FUNC(i64 %31, i64 %79, i64 %78, i64 %77, i64 %82, i64 %76)
%84 = call i64 @FUNC(i64 %6)
%85 = call i64 @FUNC(i64 %5)
store i64 %85, 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 %37, { 2, 1, 0 }
uselistorder i64 %36, { 2, 1, 0 }
uselistorder i64 %35, { 2, 1, 0 }
uselistorder i64 %34, { 2, 1, 0 }
uselistorder i64 %33, { 2, 1, 0 }
uselistorder i64 %32, { 0, 2, 1 }
uselistorder i64 %31, { 2, 1, 0 }
uselistorder i128 %29, { 2, 1, 0, 3 }
uselistorder i128 %27, { 2, 1, 0, 3 }
uselistorder i64 %26, { 1, 0 }
uselistorder i1 %pf.0, { 1, 0 }
uselistorder i1 %23, { 1, 0 }
uselistorder i1 %21, { 1, 0, 2 }
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %9, { 4, 5, 3, 1, 2, 0, 6 }
uselistorder i64 %8, { 4, 5, 2, 1, 3, 0, 6 }
uselistorder i64 %7, { 1, 0 }
uselistorder i128 %3, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %1, { 1, 0 }
uselistorder i128* %0, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64)* @g_return_if_fail, { 1, 0 }
uselistorder i64 32, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i64 4294967296, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder label LBL_9, { 2, 3, 4, 1, 0 }
} | 1 |
BinRealVul | arp_send_dst_17468 | arp_send_dst | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i32* %arg4, i64 %arg5, i32* %arg6, i32* %arg7, i32* %arg8, i32* %arg9) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i32 %2, 128
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i32* %arg7 to i64
%8 = ptrtoint i32* %arg8 to i64
%9 = and i64 %arg5, 4294967295
%10 = and i64 %arg1, 4294967295
%11 = ptrtoint i32* %arg6 to i64
%12 = ptrtoint i32* %arg4 to i64
%13 = trunc i64 %arg3 to i32
%14 = trunc i64 %arg2 to i32
%15 = call i64 @FUNC(i64 %10, i32 %14, i32 %13, i64 %12, i64 %9, i64 %11, i64 %7, i64 %8, i64 %11)
%16 = icmp eq i64 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = ptrtoint i32* %arg9 to i64
%18 = call i64 @FUNC(i64 %15, i64 %17)
%19 = call i64 @FUNC(i64 %15)
store i64 %19, 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 %15, { 1, 0, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | free_huge_page_12078 | free_huge_page | 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 = call i64 @FUNC(i64 %0, i64 0)
store i64 0, i64* %arg1, align 8
%5 = call i64 @FUNC(i64 %0)
%6 = and i64 %5, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %0)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %0, 16
%12 = call i64 @FUNC(i64 %11)
%13 = call i64 @FUNC(i64* nonnull @gv_0)
%sext2 = mul i64 %2, 4294967296
%14 = ashr exact i64 %sext2, 30
%15 = add i64 %1, 4
%16 = add i64 %15, %14
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_3, label LBL_1
LBL_1:
%20 = call i64 @FUNC(i64 %1)
%21 = trunc i64 %20 to i32
%22 = icmp sgt i32 %21, 10
br i1 %22, label LBL_3, label LBL_2
LBL_2:
%23 = inttoptr i64 %1 to i32*
%24 = call i64 @FUNC(i64 %1, i64 %0)
%25 = load i32, i32* %23, align 4
%26 = add i32 %25, -1
store i32 %26, i32* %23, align 4
%27 = load i32, i32* %17, align 4
%28 = add i32 %27, -1
store i32 %28, i32* %17, align 4
br label LBL_4
LBL_3:
%29 = call i64 @FUNC(i64 %1, i64 %0)
br label LBL_4
LBL_4:
%sext = mul i64 %3, 4294967296
%30 = call i64 @FUNC(i64* nonnull @gv_0)
%31 = icmp eq i64 %sext, 0
store i64 %30, i64* %rax.0.reg2mem
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = ashr exact i64 %sext, 32
%33 = call i64 @FUNC(i64 %32, i64 1)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %23, { 1, 0 }
uselistorder i64 %1, { 0, 1, 3, 2, 4 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64 (i64)* @BUG_ON, { 1, 0 }
} | 1 |
BinRealVul | parser_name_get_18820 | parser_name_get | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = mul i64 %0, 2
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 %1, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 %1, i64* %5, align 8
%6 = call i64 @FUNC(i64 %0)
ret i64 %6
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 2, 1, 3, 0 }
} | 1 |
BinRealVul | vidioc_s_input_9623 | vidioc_s_input | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp ugt i32 %3, %arg3
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = zext i32 %arg3 to i64
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = call i64 @FUNC(i64 %1)
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %1, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %1, i64 %14, i32 %10)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 4, 3, 2, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vc1_mspel_mc_15262 | vc1_mspel_mc | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sv_0.09.reg2mem = alloca i64
%sv_1.110.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_2.013.reg2mem = alloca i64
%sv_1.014.reg2mem = alloca i64
%storemerge615.reg2mem = alloca i32
%indvars.iv17.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%1 = and i64 %arg5, 4294967295
%2 = urem i32 %arg4, 4
%3 = sext i32 %arg3 to i64
%4 = sub i64 %0, %3
%5 = ptrtoint i64* %sv_4 to i64
%6 = zext i32 %2 to i64
store i32 0, i32* %storemerge615.reg2mem
store i64 %5, i64* %sv_1.014.reg2mem
store i64 %4, i64* %sv_2.013.reg2mem
br label LBL_3
LBL_1:
%indvars.iv17.reload = load i64, i64* %indvars.iv17.reg2mem
%7 = add i64 %indvars.iv17.reload, %sv_2.013.reload
%8 = add i64 %indvars.iv17.reload, %sv_1.014.reload
%9 = call i64 @FUNC(i64 %7, i64 1, i64 %6, i64 %1)
%10 = trunc i64 %9 to i8
%11 = inttoptr i64 %8 to i8*
store i8 %10, i8* %11, align 1
%indvars.iv.next18 = add nuw nsw i64 %indvars.iv17.reload, 1
%exitcond19 = icmp eq i64 %indvars.iv.next18, 8
store i64 %indvars.iv.next18, i64* %indvars.iv17.reg2mem
br i1 %exitcond19, label LBL_2, label LBL_1
LBL_2:
%12 = add i64 %sv_2.013.reload, %3
%13 = add i64 %sv_1.014.reload, 8
%14 = add nuw nsw i32 %storemerge615.reload, 1
%exitcond20 = icmp eq i32 %14, 11
store i32 %14, i32* %storemerge615.reg2mem
store i64 %13, i64* %sv_1.014.reg2mem
store i64 %12, i64* %sv_2.013.reg2mem
br i1 %exitcond20, label LBL_4, label LBL_3
LBL_3:
%sv_2.013.reload = load i64, i64* %sv_2.013.reg2mem
%sv_1.014.reload = load i64, i64* %sv_1.014.reg2mem
%storemerge615.reload = load i32, i32* %storemerge615.reg2mem
store i64 0, i64* %indvars.iv17.reg2mem
br label LBL_1
LBL_4:
%15 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg5, 4294967296
%sext4 = sub i64 4294967296, %sext
%16 = udiv i64 %sext4, 4294967296
%17 = udiv i32 %arg4, 4
%18 = urem i32 %17, 4
%19 = ptrtoint i64* %sv_3 to i64
%20 = zext i32 %18 to i64
store i32 0, i32* %storemerge11.reg2mem
store i64 %19, i64* %sv_1.110.reg2mem
store i64 %15, i64* %sv_0.09.reg2mem
br label LBL_7
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = add i64 %indvars.iv.reload, %sv_1.110.reload
%22 = add i64 %indvars.iv.reload, %sv_0.09.reload
%23 = call i64 @FUNC(i64 %21, i64 8, i64 %20, i64 %16)
%24 = trunc i64 %23 to i8
%25 = inttoptr i64 %22 to i8*
store i8 %24, i8* %25, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%26 = add i64 %sv_0.09.reload, %3
%27 = add i64 %sv_1.110.reload, 8
%28 = add nuw nsw i32 %storemerge11.reload, 1
%exitcond16 = icmp eq i32 %28, 8
store i32 %28, i32* %storemerge11.reg2mem
store i64 %27, i64* %sv_1.110.reg2mem
store i64 %26, i64* %sv_0.09.reg2mem
br i1 %exitcond16, label LBL_8, label LBL_7
LBL_7:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%sv_1.110.reload = load i64, i64* %sv_1.110.reg2mem
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_8:
ret i64 %3
uselistorder i64 %sv_1.110.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.014.reload, { 1, 0 }
uselistorder i64 %indvars.iv17.reload, { 0, 2, 1 }
uselistorder i64 %3, { 2, 0, 1, 3 }
uselistorder i64* %indvars.iv17.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64 4294967296, { 1, 2, 0 }
uselistorder i64 8, { 3, 1, 2, 4, 0 }
uselistorder i64 (i64, i64, i64, i64)* @vc1_mspel_filter, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 4, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | f2fs_destroy_extent_node_8098 | f2fs_destroy_extent_node | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%6 = add i64 %1, 4
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %1, i64 %1)
%9 = call i64 @FUNC(i64 %6)
%10 = and i64 %8, 4294967295
store i64 %10, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | init_traps_7181 | init_traps | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
ret i64 %1
} | 0 |
BinRealVul | RegisterSFWImage_12994 | RegisterSFWImage | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%1 = inttoptr i64 %0 to i64*
store i64 4198822, i64* %1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198829, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0))
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%10 = add i64 %0, 32
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = call i64 @FUNC(i64 %0)
ret i64 12345
uselistorder i64 (i8*)* @ConstantString, { 1, 0 }
} | 1 |
BinRealVul | palette8tobgr15_16416 | palette8tobgr15 | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i32* %arg1 to i64
%3 = ptrtoint i32* %arg4 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = add i64 %indvars.iv.reload, %2
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = zext i8 %6 to i64
%8 = mul i64 %7, 2
%9 = add i64 %8, %3
%10 = inttoptr i64 %9 to i16*
%11 = load i16, i16* %10, align 2
%12 = mul i64 %indvars.iv.reload, 2
%13 = add i64 %12, %1
%14 = zext i16 %11 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i16
%17 = inttoptr i64 %13 to i16*
store i16 %16, i16* %17, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | read_hypervisor_dmi_4065 | read_hypervisor_dmi | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.3.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.22.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
%0 = call i64 @FUNC(i64* nonnull %sv_2)
%1 = trunc i64 %0 to i32
store i32 0, i32* %sv_0.0.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.3.reg2mem
switch i32 %1, label LBL_1 [
i32 1, label LBL_4
i32 2, label LBL_13
]
LBL_1:
%2 = load i64, i64* %sv_2, align 8
%3 = call i64 @FUNC(i64 %2, i64 32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
store i64 0, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.3.reg2mem
br i1 %4, label LBL_13, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 %3, i64* %sv_1.0.reg2mem
store i32 %6, i32* %sv_0.3.reg2mem
br i1 %8, label LBL_13, label LBL_3
LBL_3:
%9 = inttoptr i64 %3 to i64*
call void @free(i64* %9)
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%10 = call i64 @FUNC(i64 983040, i64 65536, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
store i64 0, i64* %sv_1.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.3.reg2mem
br i1 %11, label LBL_13, label LBL_5
LBL_5:
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %storemerge3.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.22.reg2mem
br label LBL_6
LBL_6:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%12 = add i64 %storemerge3.reload, %10
%13 = inttoptr i64 %12 to i64*
%14 = call i32 @memcmp(i64* %13, i64* bitcast ([5 x i8]* @gv_1 to i64*), i32 4)
%15 = icmp eq i32 %14, 0
%16 = load i64, i64* %sv_2, align 8
%17 = icmp ult i64 %16, 65505
%or.cond = icmp eq i1 %15, %17
%18 = add i64 %16, %10
br i1 %or.cond, label LBL_7, label LBL_9
LBL_7:
%19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, -1
%22 = icmp eq i1 %21, false
store i32 %20, i32* %sv_0.1.reg2mem
br i1 %22, label LBL_11, label LBL_8
LBL_8:
%23 = load i64, i64* %sv_2, align 8
%24 = add i64 %23, 16
store i64 %24, i64* %sv_2, align 8
store i32 %20, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_9:
%sv_0.22.reload = load i32, i32* %sv_0.22.reg2mem
%25 = inttoptr i64 %18 to i64*
%26 = call i32 @memcmp(i64* %25, i64* bitcast ([6 x i8]* @gv_2 to i64*), i32 5)
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = load i64, i64* %sv_2, align 8
%30 = add i64 %29, %10
%31 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%32 = trunc i64 %31 to i32
store i32 %32, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%33 = icmp slt i32 %sv_0.1.reload, 0
%34 = icmp eq i1 %33, false
store i64 %10, i64* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.3.reg2mem
br i1 %34, label LBL_13, label LBL_12
LBL_12:
%35 = load i64, i64* %sv_2, align 8
%36 = add i64 %35, 16
store i64 %36, i64* %sv_2, align 8
%37 = icmp ult i64 %36, 65521
store i64 %36, i64* %storemerge3.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.22.reg2mem
store i64 %10, i64* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.3.reg2mem
br i1 %37, label LBL_6, label LBL_13
LBL_13:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%38 = inttoptr i64 %sv_1.0.reload to i64*
call void @free(i64* %38)
%39 = zext i32 %sv_0.3.reload to i64
ret i64 %39
uselistorder i64 %36, { 0, 2, 1 }
uselistorder i32 %sv_0.1.reload, { 1, 3, 0, 2 }
uselistorder i64 %10, { 1, 0, 2, 3, 4, 5 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %6, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64* %sv_2, { 2, 4, 5, 6, 7, 1, 0, 8, 3, 9 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.22.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 6, 4, 5, 3 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 2, 1, 6, 4, 5, 3 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i8*)* @hypervisor_decode_smbios, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @get_mem_chunk, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 1, 0, 2 }
uselistorder i32 1, { 6, 7, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_13, { 1, 0, 3, 4, 5, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | free_buffers_16038 | free_buffers | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.01.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 0, i64* %indvars.iv.reg2mem
store i64 %arg1, i64* %rdi.01.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul i64 %indvars.iv.reload, 16
%2 = add i64 %1, %rdi.01.reload
%3 = call i64 @FUNC(i64 %2)
%4 = or i64 %1, 8
%5 = add i64 %4, %2
%6 = call i64 @FUNC(i64 %5)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %5, i64* %rdi.01.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%7 = call i64 @FUNC(i64 %arg1)
%8 = add i64 %arg1, 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %arg1, 16
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %arg1, 24
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %arg1, 32
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %arg1, 40
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
ret i64 %arg1
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i64 (i64)* @av_freep, { 4, 3, 2, 1, 0, 6, 5 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 3, 2, 1, 7, 6, 5, 4, 0, 8 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | child_init_17508 | child_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge2037.reg2mem = alloca i64
%.reg2mem44 = alloca i64*
%storemerge20.lcssa.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%storemerge221.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
%3 = load i32, i32* @gv_0, align 4
%4 = icmp slt i32 %3, 1
%or.cond = or i1 %2, %4
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge221.reg2mem
br i1 %or.cond, label LBL_4, label LBL_1
LBL_1:
%.reload = load i64, i64* %.reg2mem
%5 = load i32, i32* inttoptr (i64 4210752 to i32*), align 64
%6 = load i64, i64* @gv_1, align 8
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i64 1, i64 %6, i64 %.reload, 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_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([13 x i8]* @gv_2 to i64), i64 1, i64 %6, i64 %.reload, i64 %7)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_3:
%storemerge221.reload = load i32, i32* %storemerge221.reg2mem
%13 = add i32 %storemerge221.reload, 1
%14 = load i32, i32* @gv_0, align 4
%15 = zext i32 %14 to i64
%16 = sext i32 %13 to i64
%17 = icmp slt i64 %16, %15
store i64 %16, i64* %.reg2mem
store i32 %13, i32* %storemerge221.reg2mem
store i64 %6, i64* %rcx.1.reg2mem
store i64 1, i64* %rdx.1.reg2mem
store i64 %.reload, i64* %r8.1.reg2mem
store i64 %7, i64* %r9.1.reg2mem
br i1 %17, label LBL_1, label LBL_4
LBL_4:
%sext = mul i64 %arg1, 4294967296
%18 = ashr exact i64 %sext, 32
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%19 = load i32, i32* @gv_4, align 4
%20 = icmp eq i32 %19, 4
br i1 %20, label LBL_10, label LBL_5
LBL_5:
%21 = icmp sgt i32 %19, 4
br i1 %21, label LBL_11, label LBL_6
LBL_6:
store i64 0, i64* %rax.0.reg2mem
switch i32 %19, label LBL_7 [
i32 3, label LBL_9
i32 0, label LBL_19
]
LBL_7:
%22 = icmp sgt i32 %19, -1
%23 = add i32 %19, -1
%24 = icmp ult i32 %23, 2
%or.cond7 = icmp eq i1 %22, %24
br i1 %or.cond7, label LBL_8, label LBL_11
LBL_8:
%25 = trunc i64 %18 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp slt i32 %25, 0
%28 = icmp eq i1 %27, false
%29 = icmp eq i1 %26, false
%30 = icmp eq i1 %28, %29
%switch9 = icmp ult i32 %25, 2
%or.cond10 = or i1 %switch9, %30
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond10, label LBL_11, label LBL_19
LBL_9:
%31 = trunc i64 %18 to i32
%switch = icmp ult i32 %31, 3
store i64 0, i64* %rax.0.reg2mem
br i1 %switch, label LBL_11, label LBL_19
LBL_10:
%32 = trunc i64 %18 to i32
%33 = icmp eq i32 %32, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_11, label LBL_19
LBL_11:
%34 = load i32, i32* @gv_5, align 4
store i32 %34, i32* @gv_6, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_13, label LBL_12
LBL_12:
%37 = and i64 %18, 4294967295
%38 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_7, i64 0, i64 0), i64 %37, i64 %rdx.1.reload, i64 %rcx.1.reload, i64 %r8.1.reload, i64 %r9.1.reload)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_13:
%39 = trunc i64 %18 to i32
%40 = icmp eq i32 %39, 2
%41 = icmp eq i1 %40, false
%42 = icmp eq i32 %19, 1
%or.cond5 = or i1 %41, %42
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond5, label LBL_19, label LBL_14
LBL_14:
%storemerge19 = load i64, i64* @gv_8, align 8
%43 = icmp eq i64 %storemerge19, 0
%44 = icmp eq i1 %43, false
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_15, label LBL_19
LBL_15:
%45 = add i64 %storemerge19, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = sext i32 %34 to i64
%49 = call i64 @FUNC(i64 %48, i64 %47)
%50 = trunc i64 %49 to i32
%51 = icmp slt i32 %50, 0
%52 = icmp eq i1 %51, false
store i64 %storemerge19, i64* %storemerge20.lcssa.reg2mem
store i64* %46, i64** %.reg2mem44
store i64 %storemerge19, i64* %storemerge2037.reg2mem
br i1 %52, label LBL_17, label LBL_16
LBL_16:
%storemerge20.lcssa.reload = load i64, i64* %storemerge20.lcssa.reg2mem
%53 = add i64 %storemerge20.lcssa.reload, 24
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %55)
%57 = and i64 %56, 4294967295
%58 = add i64 %storemerge20.lcssa.reload, 16
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = zext i32 %60 to i64
%62 = and i64 %18, 4294967295
%63 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_9, i64 0, i64 0), i64 %62, i64 %61, i64 %57, i64 %r8.1.reload, i64 %r9.1.reload)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_17:
%storemerge2037.reload = load i64, i64* %storemerge2037.reg2mem
%.reload45 = load i64*, i64** %.reg2mem44
%64 = load i64, i64* %.reload45, align 8
%65 = call i64 @FUNC(i64 %64)
%66 = inttoptr i64 %storemerge2037.reload to i64*
%storemerge = load i64, i64* %66, align 8
%67 = icmp eq i64 %storemerge, 0
%68 = icmp eq i1 %67, false
store i64 0, i64* %rax.0.reg2mem
br i1 %68, label LBL_17.dec_label_pc_4013a8_crit_edge, label LBL_19
LBL_18:
%.pre = load i32, i32* @gv_6, align 4
%69 = add i64 %storemerge, 8
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = sext i32 %.pre to i64
%73 = call i64 @FUNC(i64 %72, i64 %71)
%74 = trunc i64 %73 to i32
%75 = icmp slt i32 %74, 0
%76 = icmp eq i1 %75, false
store i64 %storemerge, i64* %storemerge20.lcssa.reg2mem
store i64* %70, i64** %.reg2mem44
store i64 %storemerge, i64* %storemerge2037.reg2mem
br i1 %76, label LBL_17, label LBL_16
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %25, { 0, 2, 1 }
uselistorder i32 %19, { 0, 3, 1, 2, 4, 5 }
uselistorder i64 %18, { 2, 3, 4, 5, 1, 0 }
uselistorder i64 %.reload, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge221.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge20.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64** %.reg2mem44, { 2, 0, 1 }
uselistorder i64* %storemerge2037.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 10, 2, 5, 9, 6, 7, 4, 3, 8 }
uselistorder i64 (i64, i64)* @preload_udomain, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 2, { 3, 2, 0, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @LM_ERR, { 2, 1, 0 }
uselistorder [13 x i8]* @gv_2, { 1, 0 }
uselistorder i64 1, { 0, 1, 3, 2 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i1 false, { 3, 4, 0, 1, 5, 6, 7, 2, 8, 9 }
uselistorder i32 0, { 7, 1, 3, 8, 9, 2, 10, 0, 11, 4, 5, 6 }
uselistorder i32 1, { 13, 17, 14, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 16, 2, 0, 1, 15 }
uselistorder label LBL_19, { 0, 7, 1, 5, 8, 6, 4, 3, 2, 9 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_11, { 3, 0, 1, 2, 4 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | simple_dname_8624 | simple_dname | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 %arg3, i32* %sv_1, align 4
%1 = sext i32 %arg3 to i64
%2 = add i64 %1, %0
store i64 %2, i64* %sv_0, align 8
%3 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 11)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = bitcast i64* %sv_0 to i8*
%13 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1, i8* nonnull %12, i64 %11)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i64 1)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = load i64, i64* %sv_0, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_5
LBL_4:
%20 = call i64 @FUNC(i64 4294967260)
store i64 %20, i64* %sv_0, align 8
store i64 %20, i64* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
ret i64 %.reload
uselistorder i64* %sv_0, { 5, 0, 2, 3, 1, 4, 6 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64*, i32*, i8*, i64)* @prepend, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | SoapError_9942 | SoapError | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = and i64 %arg2, 4294967295
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %1, i8* %arg3)
%2 = bitcast i64* %sv_0 to i8*
%3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %2, i32 2048, i8* getelementptr inbounds ([386 x i8], [386 x i8]* @gv_1, i64 0, i64 0), i64 %1, i8* %arg3)
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %0, i64 500, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_0, i64 %4)
%6 = call i64 @FUNC(i64 %0)
ret i64 %6
} | 0 |
BinRealVul | EC_GROUP_get_trinomial_basis_10373 | EC_GROUP_get_trinomial_basis | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_7
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 4198694
%7 = icmp eq i1 %6, false
%8 = trunc i64 %2 to i32
%9 = icmp eq i32 %8, 0
%or.cond = or i1 %9, %7
br i1 %or.cond, label LBL_4, label LBL_2
LBL_2:
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 1, i64 2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%19 = icmp eq i64* %arg2, null
store i64 1, i64* %rax.0.reg2mem
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = bitcast i64* %arg2 to i32*
store i32 %12, i32* %20, align 4
store i64 1, 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 %2, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 3, 2 }
} | 0 |
BinRealVul | chr_can_read_17018 | chr_can_read | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = sub i64 1024, %1
%3 = and i64 %2, 4294967295
ret i64 %3
} | 1 |
BinRealVul | fuse_free_conn_12240 | fuse_free_conn | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 4198741)
ret i64 %0
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.