dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | qemu_chr_open_fd_14361 | qemu_chr_open_fd | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC(i64 16)
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = inttoptr i64 %1 to i32*
store i32 %4, i32* %5, align 4
%6 = and i64 %arg2, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = add i64 %1, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = call i64 @FUNC(i64 %6)
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i64*
store i64 %0, i64* %13, align 8
%14 = inttoptr i64 %0 to i64*
store i64 %1, i64* %14, align 8
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
store i64 4198766, i64* %16, align 8
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i64*
store i64 4198773, i64* %18, align 8
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
store i64 4198780, i64* %20, align 8
%21 = add i64 %0, 32
%22 = inttoptr i64 %21 to i64*
store i64 4198787, i64* %22, align 8
ret i64 %0
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64)* @io_channel_from_fd, { 1, 0 }
uselistorder i64 16, { 1, 0 }
} | 1 |
BinRealVul | startEspAppDirective_7738 | startEspAppDirective | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%storemerge1.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_2.2.reg2mem = alloca i64
%sv_3.2.reg2mem = alloca i64
%sv_4.2.reg2mem = alloca i64
%sv_5.2.reg2mem = alloca i64
%sv_6.2.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
%sv_4.0.reg2mem = alloca i64
%sv_5.0.reg2mem = alloca i64
%sv_6.0.reg2mem = alloca i64
%sv_6.13.reg2mem = alloca i64
%sv_5.14.reg2mem = alloca i64
%sv_4.15.reg2mem = alloca i64
%sv_3.16.reg2mem = alloca i64
%sv_2.17.reg2mem = alloca i64
%sv_1.18.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i64
%storemerge210.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %arg3, i64* nonnull @gv_0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_6.2.reg2mem
store i64 0, i64* %sv_5.2.reg2mem
store i64 0, i64* %sv_4.2.reg2mem
store i64 0, i64* %sv_3.2.reg2mem
store i64 0, i64* %sv_2.2.reg2mem
store i64 0, i64* %sv_1.2.reg2mem
store i64 0, i64* %sv_0.2.reg2mem
store i64 %arg3, i64* %rdi.1.reg2mem
br i1 %5, label LBL_20, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %arg3)
%7 = call i64 @FUNC(i64 %6, i64* nonnull %sv_8)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %storemerge210.reg2mem
store i64 0, i64* %sv_0.19.reg2mem
store i64 0, i64* %sv_1.18.reg2mem
store i64 0, i64* %sv_2.17.reg2mem
store i64 0, i64* %sv_3.16.reg2mem
store i64 0, i64* %sv_4.15.reg2mem
store i64 0, i64* %sv_5.14.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_6.13.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_6.2.reg2mem
store i64 0, i64* %sv_5.2.reg2mem
store i64 0, i64* %sv_4.2.reg2mem
store i64 0, i64* %sv_3.2.reg2mem
store i64 0, i64* %sv_2.2.reg2mem
store i64 0, i64* %sv_1.2.reg2mem
store i64 0, i64* %sv_0.2.reg2mem
store i64 %6, i64* %rdi.1.reg2mem
br i1 %9, label LBL_2, label LBL_20
LBL_2:
%sv_6.13.reload = load i64, i64* %sv_6.13.reg2mem
%sv_5.14.reload = load i64, i64* %sv_5.14.reg2mem
%sv_4.15.reload = load i64, i64* %sv_4.15.reg2mem
%sv_3.16.reload = load i64, i64* %sv_3.16.reg2mem
%sv_2.17.reload = load i64, i64* %sv_2.17.reg2mem
%sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem
%storemerge210.reload = load i64, i64* %storemerge210.reg2mem
%10 = call i64 @FUNC(i64 %storemerge210.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_7)
%11 = load i64, i64* %sv_7, align 8
%12 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 0)
store i64 %12, i64* %sv_7, align 8
%13 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0))
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %16, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_4:
%sv_1.18.reload = load i64, i64* %sv_1.18.reg2mem
%17 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0))
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %20, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_6:
%21 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0))
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = load i64, i64* %sv_7, align 8
store i64 %24, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_8:
%25 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_7, i64 0, i64 0))
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %28, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_10:
%29 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_8, i64 0, i64 0))
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_12, label LBL_11
LBL_11:
%32 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %32, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_12:
%33 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_9, i64 0, i64 0))
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_14, label LBL_13
LBL_13:
%36 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %36, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_14:
%37 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0))
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_16, label LBL_15
LBL_15:
%40 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %40, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_16:
%41 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_11, i64 0, i64 0))
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_18, label LBL_17
LBL_17:
%44 = load i64, i64* %sv_7, align 8
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %44, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_18:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_12, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_13, i64 0, i64 0), i64 %10, i64 %2, i64 %1)
store i64 %sv_6.13.reload, i64* %sv_6.0.reg2mem
store i64 %sv_5.14.reload, i64* %sv_5.0.reg2mem
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.19.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.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_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%sv_5.0.reload = load i64, i64* %sv_5.0.reg2mem
%sv_6.0.reload = load i64, i64* %sv_6.0.reg2mem
%46 = load i64, i64* %sv_8, align 8
%47 = call i64 @FUNC(i64 %46, i64* nonnull %sv_8)
%48 = icmp eq i64 %47, 0
%49 = icmp eq i1 %48, false
store i64 %47, i64* %storemerge210.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.19.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.18.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.17.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.16.reg2mem
store i64 %sv_4.0.reload, i64* %sv_4.15.reg2mem
store i64 %sv_5.0.reload, i64* %sv_5.14.reg2mem
store i64 %sv_6.0.reload, i64* %sv_6.13.reg2mem
store i64 %sv_6.0.reload, i64* %sv_6.2.reg2mem
store i64 %sv_5.0.reload, i64* %sv_5.2.reg2mem
store i64 %sv_4.0.reload, i64* %sv_4.2.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.2.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.2.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %46, i64* %rdi.1.reg2mem
br i1 %49, label LBL_2, label LBL_20
LBL_20:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%sv_3.2.reload = load i64, i64* %sv_3.2.reg2mem
%sv_4.2.reload = load i64, i64* %sv_4.2.reg2mem
%sv_5.2.reload = load i64, i64* %sv_5.2.reg2mem
%sv_6.2.reload = load i64, i64* %sv_6.2.reg2mem
%50 = add i64 %rdi.1.reload, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = call i64 @FUNC(i64 %52, i64 %sv_6.2.reload)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
store i64 %52, i64* %storemerge1.reg2mem
br i1 %55, label LBL_21, label LBL_22
LBL_21:
%56 = call i64 @FUNC(i64 %52)
store i64 %56, i64* %storemerge1.reg2mem
br label LBL_22
LBL_22:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
store i64 %storemerge1.reload, i64* %arg1, align 8
%57 = icmp eq i64 %sv_1.2.reload, 0
br i1 %57, label LBL_25, label LBL_23
LBL_23:
%58 = inttoptr i64 %storemerge1.reload to i64*
%59 = load i64, i64* %58, align 8
%60 = call i64 @FUNC(i64 %59, i64 %sv_1.2.reload)
%61 = trunc i64 %60 to i32
%62 = icmp slt i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_25, label LBL_24
LBL_24:
%64 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_12, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_14, i64 0, i64 0), i64 %sv_1.2.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_34
LBL_25:
%65 = icmp eq i64 %sv_4.2.reload, 0
br i1 %65, label LBL_29, label LBL_26
LBL_26:
%66 = call i64 @FUNC(i64 %sv_4.2.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_15, i64 0, i64 0))
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
%69 = icmp eq i1 %68, false
store i32 1, i32* %storemerge.reg2mem
br i1 %69, label LBL_28, label LBL_27
LBL_27:
%70 = call i64 @FUNC(i64 %sv_4.2.reload, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_16, i64 0, i64 0))
%71 = trunc i64 %70 to i32
%72 = icmp ne i32 %71, 0
%spec.select = zext i1 %72 to i32
store i32 %spec.select, i32* %storemerge.reg2mem
br label LBL_28
LBL_28:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%73 = add i64 %storemerge1.reload, 16
%74 = inttoptr i64 %73 to i32*
store i32 %storemerge.reload, i32* %74, align 4
br label LBL_29
LBL_29:
%75 = icmp eq i64 %sv_2.2.reload, 0
br i1 %75, label LBL_31, label LBL_30
LBL_30:
%76 = ptrtoint i64* %arg1 to i64
%77 = call i64 @FUNC(i64 %76, i64 %arg2, i64 %sv_2.2.reload)
%78 = trunc i64 %77 to i32
%79 = icmp slt i32 %78, 0
%80 = icmp eq i1 %79, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %80, label LBL_31, label LBL_34
LBL_31:
%81 = call i64 @FUNC(i64 %storemerge1.reload, i64 %sv_6.2.reload, i64 %sv_0.2.reload, i64 %sv_3.2.reload, i64 %sv_5.2.reload)
%82 = trunc i64 %81 to i32
%83 = icmp slt i32 %82, 0
%84 = icmp eq i1 %83, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %84, label LBL_32, label LBL_34
LBL_32:
%85 = icmp eq i64 %sv_3.2.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %85, label LBL_34, label LBL_33
LBL_33:
%86 = call i64 @FUNC(i64 %storemerge1.reload, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_17, i64 0, i64 0), i64 %sv_3.2.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_34
LBL_34:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge1.reload, { 2, 1, 3, 4, 0 }
uselistorder i64 %52, { 1, 0, 2 }
uselistorder i64 %sv_6.2.reload, { 1, 0 }
uselistorder i64 %sv_4.2.reload, { 2, 0, 1 }
uselistorder i64 %sv_3.2.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.2.reload, { 2, 0, 1 }
uselistorder i64 %sv_1.18.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_0.19.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_2.17.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_3.16.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_4.15.reload, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_5.14.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_6.13.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_8, { 0, 2, 1 }
uselistorder i64* %sv_7, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge210.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.19.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.17.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_5.14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_6.13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_6.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_5.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_4.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i8*, i64, i64, i64)* @mprLog, { 1, 0 }
uselistorder i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_12, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i64, i8*)* @smatch, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 2, 3, 4, 5, 6, 1, 7, 8, 0, 9 }
uselistorder i64 (i64, i64*)* @maGetNextArg, { 1, 0 }
uselistorder i64 ptrtoint (i64* @gv_1 to i64), { 0, 2, 1 }
uselistorder i32 0, { 0, 1, 2, 3, 4, 13, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_34, { 1, 0, 2, 3, 4 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | codec_reinit_14230 | codec_reinit | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = trunc i64 %arg4 to i32
%sext = mul i64 %arg4, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = add i64 %3, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp slt i32 %4, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = and i64 %5, 4294967295
%11 = call i64 @FUNC(i64 %8, i64 %10)
br label LBL_2
LBL_2:
%12 = trunc i64 %arg2 to i32
%13 = trunc i64 %arg3 to i32
%14 = inttoptr i64 %8 to i32*
%15 = add i32 %12, 1
%16 = and i32 %15, -2
%17 = add i32 %13, 1
%18 = and i32 %17, -2
%19 = load i32, i32* %14, align 4
%20 = icmp eq i32 %16, %19
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %8, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %18, %24
br i1 %25, label LBL_8, label LBL_4
LBL_4:
%26 = zext i32 %18 to i64
%27 = call i64 @FUNC(i64 %26, i32 %16, i64 0, i64 %3)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_5, label LBL_10
LBL_5:
store i32 %16, i32* %14, align 4
store i32 %16, i32* %arg1, align 4
%31 = add i64 %8, 4
%32 = inttoptr i64 %31 to i32*
store i32 %18, i32* %32, align 4
%33 = add i64 %3, 4
%34 = inttoptr i64 %33 to i32*
store i32 %18, i32* %34, align 4
%35 = load i32, i32* %32, align 4
%36 = load i32, i32* %14, align 4
%37 = mul i32 %35, 3
%38 = mul i32 %37, %36
%39 = icmp slt i32 %38, 0
%40 = zext i1 %39 to i32
%41 = add i32 %38, %40
%42 = ashr i32 %41, 1
%43 = add i64 %8, 12
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add nsw i32 %42, 16
%46 = sext i32 %45 to i64
%47 = add i64 %8, 16
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %49, i64 %46)
store i64 %50, i64* %48, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_7, label LBL_6
LBL_6:
%53 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
%54 = add i64 %8, 44
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i64 %8, 40
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = load i32, i32* %32, align 4
%61 = load i32, i32* %14, align 4
%62 = add i64 %8, 32
%63 = add i64 %8, 24
%64 = zext i32 %60 to i64
%65 = zext i32 %61 to i64
%66 = call i64 @FUNC(i64 %63, i64 %62, i64 %65, i64 %64, i32 %59, i32 %56)
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%67 = add i64 %8, 8
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = trunc i64 %5 to i32
%71 = icmp eq i32 %69, %70
store i64 1, i64* %rax.0.reg2mem
br i1 %71, label LBL_10, label LBL_9
LBL_9:
%72 = add i64 %8, 44
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = add i64 %8, 40
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = add i64 %8, 32
%79 = add i64 %8, 24
%80 = zext i32 %18 to i64
%81 = zext i32 %19 to i64
%82 = call i64 @FUNC(i64 %79, i64 %78, i64 %81, i64 %80, i32 %77, i32 %74)
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %18, { 0, 1, 3, 4, 2 }
uselistorder i32 %16, { 1, 0, 2, 3 }
uselistorder i64 %8, { 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 12, 14, 13 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 3, 0, 1, 2, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i32, i32)* @rtjpeg_decode_init, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder label LBL_10, { 2, 1, 0, 4, 3 }
} | 1 |
BinRealVul | parse_dsd_prop_93 | parse_dsd_prop | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%.reg2mem93 = alloca i64
%rcx.0.reg2mem = alloca i64
%.reg2mem91 = alloca i32
%rcx.121.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem89 = alloca i32
%.reg2mem87 = alloca i32
%storemerge420.reg2mem = alloca i32
%.reg2mem85 = alloca i64
%rcx.323.reg2mem = alloca i64
%rdx.024.reg2mem = alloca i64
%r8.125.reg2mem = alloca i64
%r9.126.reg2mem = alloca i64
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
store i64 %0, i64* %rsi, align 8
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %2, 12
%4 = icmp ugt i64 %3, %arg3
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_41
LBL_1:
%6 = ptrtoint i64* %sv_3 to i64
%7 = ptrtoint i64* %sv_4 to i64
%8 = bitcast i64* %rsi to i32*
%9 = add i64 %7, -144
%10 = ptrtoint i64* %sv_1 to i64
%11 = add i64 %6, -16
%12 = inttoptr i64 %11 to i64*
%13 = bitcast i64* %sv_2 to i8*
%14 = add i64 %0, 8
%15 = trunc i64 %10 to i32
%16 = or i64 %10, 4
%17 = inttoptr i64 %16 to i32*
store i64 %0, i64* %.reg2mem
store i64 %arg3, i64* %rdx.024.reg2mem
br label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %1)
%19 = trunc i64 %18 to i32
%20 = call i64 @FUNC(i64 %1)
%21 = trunc i64 %20 to i32
%22 = call i64 @FUNC(i64 %1)
%23 = icmp eq i32 %19, 1397965377
br i1 %23, label LBL_11, label LBL_3
LBL_3:
%rcx.323.reload = load i64, i64* %rcx.323.reg2mem
%r8.125.reload = load i64, i64* %r8.125.reg2mem
%r9.126.reload = load i64, i64* %r9.126.reg2mem
%24 = icmp ult i32 %19, 1397965378
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %24, label LBL_4, label LBL_40
LBL_4:
%.reload = load i64, i64* %.reg2mem
%25 = icmp eq i32 %19, 1380994371
br i1 %25, label LBL_24, label LBL_5
LBL_5:
%26 = icmp ult i32 %19, 1380994372
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %26, label LBL_6, label LBL_40
LBL_6:
%27 = icmp eq i32 %19, 1329812300
br i1 %27, label LBL_34, label LBL_7
LBL_7:
%28 = icmp ult i32 %19, 1329812301
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %28, label LBL_8, label LBL_40
LBL_8:
%29 = icmp eq i32 %19, 1280198723
br i1 %29, label LBL_13, label LBL_9
LBL_9:
%30 = icmp ult i32 %19, 1280198724
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %30, label LBL_10, label LBL_40
LBL_10:
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
switch i32 %19, label LBL_40 [
i32 538989382, label LBL_27
i32 540230729, label LBL_29
]
LBL_11:
%31 = icmp ult i32 %21, 8
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %31, label LBL_41, label LBL_12
LBL_12:
%32 = call i64 @FUNC(i64 %1)
%33 = call i64 @FUNC(i64 %1)
%34 = call i64 @FUNC(i64 %1)
%35 = call i64 @FUNC(i64 %1)
%36 = and i64 %35, 4294967295
store i64 %36, i64* %12, align 8
%37 = and i64 %34, 4294967295
%38 = and i64 %33, 4294967295
%39 = and i64 %32, 4294967295
%40 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %13, i32 24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %38, i64 %37)
%41 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_2, i64 0)
store i64 0, i64* %rcx.2.reg2mem
store i64 %38, i64* %r8.0.reg2mem
store i64 %37, i64* %r9.0.reg2mem
br label LBL_40
LBL_13:
%42 = icmp ult i32 %21, 2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %42, label LBL_41, label LBL_14
LBL_14:
%rdx.024.reload = load i64, i64* %rdx.024.reg2mem
%43 = call i64 @FUNC(i64 %1)
%44 = trunc i64 %43 to i32
%45 = inttoptr i64 %.reload to i32*
store i32 %44, i32* %45, align 4
%46 = load i32, i32* %8, align 8
%47 = mul i32 %46, 4
%48 = or i32 %47, 2
%49 = icmp ugt i32 %48, %21
%50 = icmp eq i1 %49, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %50, label LBL_15, label LBL_41
LBL_15:
%51 = load i64, i64* %rsi, align 8
%52 = add i64 %51, 4
%53 = inttoptr i64 %52 to i32*
store i32 0, i32* %53, align 4
%54 = load i32, i32* %8, align 8
%55 = icmp ult i32 %54, 7
br i1 %55, label LBL_16, label LBL_17
LBL_16:
%56 = icmp eq i32 %54, 0
store i64 0, i64* %.reg2mem85
store i32 0, i32* %storemerge420.reg2mem
store i32 0, i32* %.reg2mem87
br i1 %56, label LBL_19, label LBL_18
LBL_17:
%57 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0), i64 %rdx.024.reload, i64 %rcx.323.reload, i64 %r8.125.reload, i64 %r9.126.reload)
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br label LBL_40
LBL_18:
%storemerge420.reload = load i32, i32* %storemerge420.reg2mem
%.reload86 = load i64, i64* %.reg2mem85
%58 = call i64 @FUNC(i64 %1)
%59 = trunc i64 %58 to i32
%60 = mul i64 %.reload86, 4
%61 = add i64 %9, %60
%62 = inttoptr i64 %61 to i32*
store i32 %59, i32* %62, align 4
%63 = add i32 %storemerge420.reload, 1
%64 = load i32, i32* %8, align 8
%65 = zext i32 %64 to i64
%66 = sext i32 %63 to i64
%67 = icmp slt i64 %66, %65
store i64 %66, i64* %.reg2mem85
store i32 %63, i32* %storemerge420.reg2mem
store i32 %64, i32* %.reg2mem87
br i1 %67, label LBL_18, label LBL_19
LBL_19:
%.reload88 = load i32, i32* %.reg2mem87
store i32 %.reload88, i32* %.reg2mem89
store i64 0, i64* %indvars.iv.reg2mem
store i64 %rcx.323.reload, i64* %rcx.121.reg2mem
br label LBL_20
LBL_20:
%rcx.121.reload = load i64, i64* %rcx.121.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload90 = load i32, i32* %.reg2mem89
%68 = mul nuw nsw i64 %indvars.iv.reload, 28
%69 = add i64 %68, ptrtoint (i32** @gv_3 to i64)
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %72)
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %.reload90, %74
%76 = icmp eq i1 %75, false
store i32 %.reload90, i32* %.reg2mem91
store i64 %rcx.121.reload, i64* %rcx.0.reg2mem
br i1 %76, label LBL_23, label LBL_21
LBL_21:
%77 = mul i32 %.reload90, 4
%78 = add i64 %68, add (i64 ptrtoint (i32** @gv_3 to i64), i64 4)
store i64 %10, i64* %rsi, align 8
%79 = inttoptr i64 %78 to i64*
%80 = call i32 @memcmp(i64* %79, i64* nonnull %sv_1, i32 %77)
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i32 %15, i32* %.reg2mem91
store i64 %78, i64* %rcx.0.reg2mem
br i1 %82, label LBL_23, label LBL_22
LBL_22:
%83 = load i32, i32* %70, align 4
store i32 %83, i32* %17, align 4
store i64 %78, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br label LBL_40
LBL_23:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%.reload92 = load i32, i32* %.reg2mem91
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%84 = icmp ult i64 %indvars.iv.next, 6
store i32 %.reload92, i32* %.reg2mem89
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rcx.0.reload, i64* %rcx.121.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %84, label LBL_20, label LBL_40
LBL_24:
%85 = icmp ult i32 %21, 4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %85, label LBL_41, label LBL_25
LBL_25:
%86 = call i64 @FUNC(i64 %1)
%87 = load i64, i64* @gv_4, align 8
%88 = and i64 %86, 4294967295
%89 = call i64 @FUNC(i64 %87, i64 %88)
%90 = trunc i64 %89 to i32
%91 = add i64 %.reload, 12
%92 = inttoptr i64 %91 to i32*
store i32 %90, i32* %92, align 4
%93 = add nuw nsw i64 %88, 12
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = icmp eq i32 %95, 0
%97 = icmp eq i1 %96, false
store i64 %0, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %97, label LBL_40, label LBL_26
LBL_26:
%98 = udiv i64 %86, 16777216
%99 = urem i64 %98, 256
%100 = udiv i64 %86, 65536
%101 = udiv i64 %86, 256
store i64 %99, i64* %12, align 8
%102 = urem i64 %100, 256
%103 = urem i64 %101, 256
%104 = urem i64 %86, 256
%105 = call i64 @FUNC(i64 %1, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_5, i64 0, i64 0), i64 %104, i64 %103, i64 %102)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_41
LBL_27:
%106 = icmp ult i32 %21, 4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %106, label LBL_41, label LBL_28
LBL_28:
%107 = call i64 @FUNC(i64 %1)
%108 = trunc i64 %107 to i32
%109 = udiv i32 %108, 8
%110 = add i64 %.reload, 8
%111 = inttoptr i64 %110 to i32*
store i32 %109, i32* %111, align 4
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br label LBL_40
LBL_29:
store i64 0, i64* %sv_0, align 8
%sext = mul i64 %20, 4294967296
%112 = ashr exact i64 %sext, 32
%113 = call i64 @FUNC(i64 %1, i64 0, i64* nonnull %sv_0, i64 %112)
%114 = load i64, i64* %sv_0, align 8
%115 = icmp eq i64 %114, 0
br i1 %115, label LBL_32, label LBL_30
LBL_30:
%116 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
%117 = trunc i64 %116 to i32
%118 = icmp slt i32 %117, 0
%119 = icmp eq i1 %118, false
%120 = call i64 @FUNC(i64* nonnull %sv_0)
br i1 %119, label LBL_32, label LBL_31
LBL_31:
%121 = and i64 %116, 4294967295
store i64 %121, i64* %rax.0.reg2mem
br label LBL_41
LBL_32:
%122 = call i64 @FUNC(i64 %1)
%sext5 = mul i64 %22, 4294967296
%123 = ashr exact i64 %sext5, 32
%124 = sub i64 %122, %123
%125 = icmp ugt i64 %124, %112
%126 = icmp eq i1 %125, false
store i64 %112, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %126, label LBL_40, label LBL_33
LBL_33:
%127 = call i64 @FUNC(i64 %1, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_6, i64 0, i64 0), i64 %112, i64 %r8.125.reload, i64 %r9.126.reload)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_41
LBL_34:
%128 = icmp ult i32 %21, 2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %128, label LBL_41, label LBL_35
LBL_35:
%129 = call i64 @FUNC(i64 %1)
%130 = trunc i64 %129 to i32
%131 = icmp eq i32 %130, 65535
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %131, label LBL_40, label LBL_36
LBL_36:
%132 = icmp ult i32 %130, 10
store i64 %.reload, i64* %.reg2mem93
br i1 %132, label LBL_37, label LBL_38
LBL_37:
%sext7 = mul i64 %129, 4294967296
%133 = ashr exact i64 %sext7, 30
%134 = add i64 %133, ptrtoint (i32** @gv_7 to i64)
%135 = inttoptr i64 %134 to i32*
%136 = load i32, i32* %135, align 4
%137 = add i64 %.reload, 4
%138 = inttoptr i64 %137 to i32*
store i32 %136, i32* %138, align 4
%.pre = load i64, i64* %rsi, align 8
store i64 %.pre, i64* %.reg2mem93
br label LBL_38
LBL_38:
%.reload94 = load i64, i64* %.reg2mem93
%139 = add i64 %.reload94, 4
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 4
%142 = icmp eq i32 %141, 0
%143 = icmp eq i1 %142, false
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br i1 %143, label LBL_40, label LBL_39
LBL_39:
%144 = and i64 %129, 4294967295
%145 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_8, i64 0, i64 0), i64 %144, i64 %rcx.323.reload, i64 %r8.125.reload, i64 %r9.126.reload)
store i64 %rcx.323.reload, i64* %rcx.2.reg2mem
store i64 %r8.125.reload, i64* %r8.0.reg2mem
store i64 %r9.126.reload, i64* %r9.0.reg2mem
br label LBL_40
LBL_40:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%146 = call i64 @FUNC(i64 %1)
%147 = urem i64 %20, 2
%148 = add i64 %22, %20
%149 = add i64 %148, %147
%150 = sub i64 %149, %146
%151 = and i64 %150, 4294967295
store i64 %151, i64* %rsi, align 8
%152 = call i64 @FUNC(i64 %1, i64 %151)
%153 = call i64 @FUNC(i64 %1)
%154 = add i64 %153, 12
%155 = icmp ugt i64 %154, %arg3
%156 = icmp eq i1 %155, false
store i64 %151, i64* %.reg2mem
store i64 %r9.0.reload, i64* %r9.126.reg2mem
store i64 %r8.0.reload, i64* %r8.125.reg2mem
store i64 %151, i64* %rdx.024.reg2mem
store i64 %rcx.2.reload, i64* %rcx.323.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %156, label LBL_2, label LBL_41
LBL_41:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %129, { 1, 0, 2 }
uselistorder i64 %112, { 1, 0, 2, 3 }
uselistorder i64 %88, { 1, 0 }
uselistorder i64 %86, { 3, 0, 1, 2, 4 }
uselistorder i32 %.reload90, { 2, 0, 1 }
uselistorder i64 %.reload, { 3, 0, 1, 4, 2 }
uselistorder i64 %r9.126.reload, { 10, 15, 11, 12, 16, 6, 7, 13, 0, 9, 8, 14, 1, 5, 4, 3, 2 }
uselistorder i64 %r8.125.reload, { 10, 15, 11, 12, 16, 6, 7, 13, 0, 9, 8, 14, 1, 5, 4, 3, 2 }
uselistorder i64 %rcx.323.reload, { 7, 12, 8, 9, 5, 10, 6, 11, 0, 4, 3, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i32 %21, { 3, 1, 4, 0, 2, 5 }
uselistorder i64 %20, { 2, 1, 0, 3 }
uselistorder i32 %19, { 0, 7, 6, 5, 4, 3, 2, 1, 8 }
uselistorder i64 %10, { 2, 0, 1 }
uselistorder i64* %sv_0, { 0, 1, 3, 2, 4 }
uselistorder i64 %1, { 22, 13, 14, 9, 10, 2, 3, 1, 4, 5, 11, 12, 7, 6, 8, 18, 17, 16, 15, 19, 21, 20, 0 }
uselistorder i64* %rsi, { 2, 0, 1, 4, 3, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %r9.126.reg2mem, { 1, 0 }
uselistorder i64* %r8.125.reg2mem, { 1, 0 }
uselistorder i64* %rdx.024.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.323.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem85, { 2, 0, 1 }
uselistorder i32* %storemerge420.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem89, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.121.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.2.reg2mem, { 0, 11, 12, 13, 7, 8, 14, 1, 10, 9, 15, 2, 6, 5, 4, 3 }
uselistorder i64* %r8.0.reg2mem, { 0, 11, 12, 13, 7, 8, 14, 1, 10, 9, 15, 2, 6, 5, 4, 3 }
uselistorder i64* %r9.0.reg2mem, { 0, 11, 12, 13, 7, 8, 14, 1, 10, 9, 15, 2, 6, 5, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 10, 9, 5, 11, 4, 3, 2, 1, 8 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 256, { 1, 2, 3, 0, 4 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @avpriv_request_sample, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 0, 1, 2, 7 }
uselistorder i32 4, { 3, 2, 0, 1 }
uselistorder i64 (i64)* @avio_rb32, { 1, 0 }
uselistorder i64 (i64)* @avio_r8, { 1, 0 }
uselistorder i64 (i64)* @avio_rb16, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 2, 1, 0 }
uselistorder i64 4, { 3, 4, 2, 0, 5, 1 }
uselistorder i1 false, { 8, 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i64 12, { 3, 1, 2, 0 }
uselistorder i64 (i64)* @avio_tell, { 1, 4, 3, 2, 0 }
uselistorder i64 %arg3, { 2, 0, 1 }
uselistorder label LBL_41, { 6, 5, 8, 9, 4, 10, 3, 2, 1, 0, 7 }
uselistorder label LBL_40, { 4, 3, 2, 5, 11, 6, 0, 12, 13, 14, 1, 7, 8, 9, 10 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | hci_pin_code_request_evt_18227 | hci_pin_code_request_evt | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %6, i64 0, i64 %5)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_3, label LBL_1
LBL_1:
%11 = inttoptr i64 %9 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 1
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %9)
%16 = add i64 %9, 4
%17 = inttoptr i64 %16 to i32*
store i32 30, i32* %17, align 4
%18 = call i64 @FUNC(i64 %9)
br label LBL_3
LBL_3:
%19 = add i64 %6, 56
%20 = call i64 @FUNC(i64 0, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %6, i64 1, i64 6, i64 %5)
br label LBL_7
LBL_5:
%25 = call i64 @FUNC(i64 1, i64 %19)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = add i64 %9, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 2
%. = zext i1 %31 to i8
%32 = add i64 %6, 52
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = zext i32 %34 to i64
%36 = call i64 @FUNC(i64 %35, i64 %5, i8 %.)
br label LBL_7
LBL_7:
%37 = call i64 @FUNC(i64 %6)
ret i64 %37
uselistorder i64 %6, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 1, 0 }
} | 1 |
BinRealVul | vp6_parse_coeff_7449 | vp6_parse_coeff | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_0.09.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_2.3.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.011.reg2mem = alloca i32
%storemerge412.reg2mem = alloca i32
%sv_1.214.reg2mem = alloca i32
%sv_0.215.reg2mem = alloca i32
%sv_3.016.reg2mem = alloca i64
%sv_4.019.reg2mem = alloca i32
%sv_5.020.in.reg2mem = alloca i64
%sv_6.121.reg2mem = alloca i32
%rdi.422.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 1592
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 1600
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %0, 1584
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %0, 16
%13 = inttoptr i64 %6 to i64*
%14 = add i64 %6, 8
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %6, 32
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %0, 1576
%19 = inttoptr i64 %18 to i32*
%20 = add i64 %6, 24
%21 = inttoptr i64 %20 to i64*
%22 = add i64 %0, 40
%23 = add i64 %6, 16
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %indvars.iv26.reg2mem
store i64 %0, i64* %rdi.422.reg2mem
store i32 0, i32* %sv_6.121.reg2mem
br label LBL_1
LBL_1:
%sv_6.121.reload = load i32, i32* %sv_6.121.reg2mem
%rdi.422.reload = load i64, i64* %rdi.422.reg2mem
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%25 = icmp ult i64 %indvars.iv26.reload, 4
%spec.select = select i1 %25, i32 %sv_6.121.reload, i32 1
%26 = mul i64 %indvars.iv26.reload, 4
%27 = add i64 %26, ptrtoint (i32** @gv_0 to i64)
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = add i64 %31, %rdi.422.reload
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = load i64, i64* %11, align 8
%36 = add i64 %12, %26
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 4
%41 = add i64 %40, %35
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = add i32 %43, %34
%45 = load i64, i64* %13, align 8
%46 = sext i32 %spec.select to i64
%47 = mul i64 %46, 8
%48 = add i64 %45, %47
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = load i64, i64* %15, align 8
%52 = add i64 %51, %47
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = sext i32 %44 to i64
%56 = mul i64 %55, 8
%57 = add i64 %54, %56
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = mul i64 %indvars.iv26.reload, 64
store i64 %59, i64* %sv_5.020.in.reg2mem
store i32 0, i32* %sv_4.019.reg2mem
store i64 %50, i64* %sv_3.016.reg2mem
store i32 1, i32* %sv_0.215.reg2mem
store i32 1, i32* %sv_1.214.reg2mem
br label LBL_2
LBL_2:
%sv_1.214.reload = load i32, i32* %sv_1.214.reg2mem
%sv_3.016.reload = load i64, i64* %sv_3.016.reg2mem
%sv_4.019.reload = load i32, i32* %sv_4.019.reg2mem
%sv_5.020.in.reload = load i64, i64* %sv_5.020.in.reg2mem
%61 = icmp sgt i32 %sv_4.019.reload, 1
%62 = icmp eq i32 %sv_1.214.reload, 0
%or.cond = icmp eq i1 %61, %62
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%sv_5.020 = inttoptr i64 %sv_5.020.in.reload to i8*
%63 = load i8, i8* %sv_5.020, align 1
%64 = zext i8 %63 to i64
%65 = call i64 @FUNC(i64 %3, i64 %64)
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
br i1 %67, label LBL_14, label LBL_4
LBL_4:
%68 = add i64 %sv_5.020.in.reload, 2
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = zext i8 %70 to i64
%72 = call i64 @FUNC(i64 %3, i64 %71)
%73 = trunc i64 %72 to i32
%74 = icmp eq i32 %73, 0
store i32 1, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_2.2.reg2mem
br i1 %74, label LBL_11, label LBL_5
LBL_5:
%75 = add i64 %sv_5.020.in.reload, 3
%76 = inttoptr i64 %75 to i8*
%77 = load i8, i8* %76, align 1
%78 = zext i8 %77 to i64
%79 = call i64 @FUNC(i64 %3, i64 %78)
%80 = trunc i64 %79 to i32
%81 = icmp eq i32 %80, 0
br i1 %81, label LBL_9, label LBL_6
LBL_6:
%82 = load i64, i64* @gv_1, align 8
%83 = call i64 @FUNC(i64 %3, i64 %82, i64 %sv_3.016.reload)
%84 = mul i64 %83, 4294967296
%sext = add i64 %84, 21474836480
%85 = ashr exact i64 %sext, 30
%86 = add i64 %85, ptrtoint (i32** @gv_2 to i64)
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = ashr exact i64 %84, 30
%90 = add i64 %89, ptrtoint (i32** @gv_3 to i64)
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = icmp slt i32 %92, 0
%94 = icmp eq i1 %93, false
store i32 2, i32* %sv_1.0.reg2mem
store i32 %88, i32* %sv_2.2.reg2mem
br i1 %94, label LBL_7, label LBL_11
LBL_7:
%95 = ashr exact i64 %84, 32
%96 = mul nsw i64 %95, 10
%97 = add i64 %96, ptrtoint (i8** @gv_4 to i64)
store i32 %92, i32* %storemerge412.reg2mem
store i32 %88, i32* %sv_2.011.reg2mem
br label LBL_8
LBL_8:
%sv_2.011.reload = load i32, i32* %sv_2.011.reg2mem
%storemerge412.reload = load i32, i32* %storemerge412.reg2mem
%98 = sext i32 %storemerge412.reload to i64
%99 = add i64 %97, %98
%100 = inttoptr i64 %99 to i8*
%101 = load i8, i8* %100, align 1
%102 = zext i8 %101 to i64
%103 = call i64 @FUNC(i64 %3, i64 %102)
%104 = urem i32 %storemerge412.reload, 32
%105 = icmp eq i32 %104, 0
%106 = trunc i64 %103 to i32
%107 = shl i32 %106, %104
%108 = zext i32 %107 to i64
%rdx.0 = select i1 %105, i64 %103, i64 %108
%109 = trunc i64 %rdx.0 to i32
%110 = add i32 %sv_2.011.reload, %109
%111 = add i32 %storemerge412.reload, -1
%112 = icmp slt i32 %111, 0
%113 = icmp eq i1 %112, false
store i32 %111, i32* %storemerge412.reg2mem
store i32 %110, i32* %sv_2.011.reg2mem
store i32 2, i32* %sv_1.0.reg2mem
store i32 %110, i32* %sv_2.2.reg2mem
br i1 %113, label LBL_8, label LBL_11
LBL_9:
%114 = add i64 %sv_5.020.in.reload, 4
%115 = inttoptr i64 %114 to i8*
%116 = load i8, i8* %115, align 1
%117 = zext i8 %116 to i64
%118 = call i64 @FUNC(i64 %3, i64 %117)
%119 = trunc i64 %118 to i32
%120 = icmp eq i32 %119, 0
store i32 2, i32* %sv_1.0.reg2mem
store i32 2, i32* %sv_2.2.reg2mem
br i1 %120, label LBL_11, label LBL_10
LBL_10:
%121 = add i64 %sv_3.016.reload, 5
%122 = inttoptr i64 %121 to i8*
%123 = load i8, i8* %122, align 1
%124 = zext i8 %123 to i64
%125 = call i64 @FUNC(i64 %3, i64 %124)
%126 = trunc i64 %125 to i32
%127 = add i32 %126, 3
store i32 2, i32* %sv_1.0.reg2mem
store i32 %127, i32* %sv_2.2.reg2mem
br label LBL_11
LBL_11:
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%128 = call i64 @FUNC(i64 %3)
%129 = trunc i64 %128 to i32
%130 = sub i32 0, %129
%131 = xor i32 %sv_2.2.reload, %130
%132 = add i32 %131, %129
%133 = icmp eq i32 %sv_4.019.reload, 0
store i32 %132, i32* %sv_2.3.reg2mem
br i1 %133, label LBL_13, label LBL_12
LBL_12:
%134 = load i32, i32* %19, align 4
%135 = mul i32 %134, %132
store i32 %135, i32* %sv_2.3.reg2mem
br label LBL_13
LBL_13:
%sv_2.3.reload = load i32, i32* %sv_2.3.reg2mem
%136 = load i64, i64* %21, align 8
%137 = sext i32 %sv_4.019.reload to i64
%138 = mul i64 %137, 4
%139 = add i64 %136, %138
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 4
%142 = sext i32 %141 to i64
%143 = add i64 %9, %142
%144 = inttoptr i64 %143 to i8*
%145 = load i8, i8* %144, align 1
%146 = zext i8 %145 to i64
%147 = add nuw nsw i64 %60, %146
%148 = mul i64 %147, 4
%149 = add i64 %148, %22
%150 = inttoptr i64 %149 to i32*
store i32 %sv_2.3.reload, i32* %150, align 4
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 1, i32* %sv_0.1.reg2mem
br label LBL_19
LBL_14:
%sv_0.215.reload = load i32, i32* %sv_0.215.reg2mem
%151 = icmp slt i32 %sv_4.019.reload, 1
store i32 0, i32* %sv_1.1.reg2mem
store i32 %sv_0.215.reload, i32* %sv_0.1.reg2mem
br i1 %151, label LBL_19, label LBL_15
LBL_15:
%152 = add i64 %sv_5.020.in.reload, 1
%153 = inttoptr i64 %152 to i8*
%154 = load i8, i8* %153, align 1
%155 = zext i8 %154 to i64
%156 = call i64 @FUNC(i64 %3, i64 %155)
%157 = trunc i64 %156 to i32
%158 = icmp eq i32 %157, 0
br i1 %158, label LBL_20, label LBL_16
LBL_16:
%159 = load i64, i64* %17, align 8
%160 = icmp slt i32 %sv_4.019.reload, 6
%. = select i1 %160, i64 0, i64 8
%161 = add i64 %159, %.
%162 = inttoptr i64 %161 to i64*
%163 = load i64, i64* %162, align 8
%164 = load i64, i64* @gv_5, align 8
%165 = call i64 @FUNC(i64 %3, i64 %164, i64 %163)
%166 = trunc i64 %165 to i32
%167 = icmp eq i32 %166, 0
%168 = icmp eq i1 %167, false
store i32 0, i32* %sv_1.1.reg2mem
store i32 %166, i32* %sv_0.1.reg2mem
br i1 %168, label LBL_19, label LBL_17
LBL_17:
%169 = add i64 %163, 8
store i64 0, i64* %indvars.iv.reg2mem
store i32 9, i32* %sv_0.09.reg2mem
br label LBL_18
LBL_18:
%sv_0.09.reload = load i32, i32* %sv_0.09.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%170 = add i64 %169, %indvars.iv.reload
%171 = inttoptr i64 %170 to i8*
%172 = load i8, i8* %171, align 1
%173 = zext i8 %172 to i64
%174 = call i64 @FUNC(i64 %3, i64 %173)
%175 = icmp eq i64 %indvars.iv.reload, 0
%176 = trunc i64 %174 to i32
%177 = trunc i64 %indvars.iv.reload to i32
%178 = shl i32 %176, %177
%179 = zext i32 %178 to i64
%rdx.1 = select i1 %175, i64 %174, i64 %179
%180 = trunc i64 %rdx.1 to i32
%181 = add i32 %sv_0.09.reload, %180
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %181, i32* %sv_0.09.reg2mem
store i32 0, i32* %sv_1.1.reg2mem
store i32 %181, i32* %sv_0.1.reg2mem
br i1 %exitcond, label LBL_19, label LBL_18
LBL_19:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%182 = add i32 %sv_0.1.reload, %sv_4.019.reload
%183 = sext i32 %182 to i64
%184 = mul i64 %183, 4
%185 = add i64 %184, ptrtoint (i32** @gv_6 to i64)
%186 = inttoptr i64 %185 to i32*
%187 = load i32, i32* %186, align 4
%188 = load i64, i64* %24, align 8
%189 = add i64 %188, %47
%190 = inttoptr i64 %189 to i64*
%191 = load i64, i64* %190, align 8
%192 = sext i32 %sv_1.1.reload to i64
%193 = mul i64 %192, 8
%194 = add i64 %191, %193
%195 = inttoptr i64 %194 to i64*
%196 = load i64, i64* %195, align 8
%197 = sext i32 %187 to i64
%198 = add i64 %196, %197
%199 = inttoptr i64 %198 to i8*
%200 = load i8, i8* %199, align 1
%201 = zext i8 %200 to i64
%202 = icmp slt i32 %182, 64
store i64 %201, i64* %sv_5.020.in.reg2mem
store i32 %182, i32* %sv_4.019.reg2mem
store i64 %201, i64* %sv_3.016.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.215.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.214.reg2mem
br i1 %202, label LBL_2, label LBL_20
LBL_20:
%203 = mul i64 %indvars.iv26.reload, 256
%204 = add i64 %203, %22
%205 = inttoptr i64 %204 to i32*
%206 = load i32, i32* %205, align 4
%207 = icmp eq i32 %206, 0
%208 = icmp eq i1 %207, false
%209 = load i64, i64* %11, align 8
%210 = load i32, i32* %37, align 4
%211 = sext i32 %210 to i64
%212 = mul i64 %211, 4
%213 = add i64 %212, %209
%214 = zext i1 %208 to i32
%215 = inttoptr i64 %213 to i32*
store i32 %214, i32* %215, align 4
%216 = load i32, i32* %28, align 4
%217 = sext i32 %216 to i64
%218 = mul i64 %217, 4
%219 = add i64 %218, %3
%220 = inttoptr i64 %219 to i32*
store i32 %214, i32* %220, align 4
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%exitcond28 = icmp eq i64 %indvars.iv.next27, 6
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 %3, i64* %rdi.422.reg2mem
store i32 %spec.select, i32* %sv_6.121.reg2mem
br i1 %exitcond28, label LBL_21, label LBL_1
LBL_21:
%221 = zext i1 %208 to i64
ret i64 %221
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 3, 1 }
uselistorder i32 %132, { 1, 0 }
uselistorder i32 %104, { 1, 0 }
uselistorder i32 %storemerge412.reload, { 0, 2, 1 }
uselistorder i32 %88, { 1, 0 }
uselistorder i64 %84, { 2, 1, 0 }
uselistorder i64 %sv_5.020.in.reload, { 4, 1, 2, 3, 0 }
uselistorder i32 %sv_4.019.reload, { 5, 1, 2, 3, 4, 0 }
uselistorder i64 %sv_3.016.reload, { 1, 0 }
uselistorder i64 %47, { 2, 1, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %indvars.iv26.reload, { 0, 4, 3, 2, 1 }
uselistorder i64 %6, { 1, 2, 0, 3, 4 }
uselistorder i64 %3, { 0, 1, 2, 3, 4, 11, 8, 9, 6, 7, 10, 12, 5 }
uselistorder i64 %0, { 0, 1, 3, 2, 4, 5, 6, 7 }
uselistorder i64* %indvars.iv26.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.422.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_6.121.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_5.020.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.019.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.016.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.215.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.214.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge412.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 4, 5, 1, 2, 3 }
uselistorder i32* %sv_2.2.reg2mem, { 0, 4, 5, 1, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.09.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 3, 4, 5, 0, 1, 2 }
uselistorder i32 2, { 3, 0, 4, 1, 2 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 (i64, i64, i64)* @vp56_rac_get_tree, { 1, 0 }
uselistorder i64 (i64, i64)* @vp56_rac_get_prob, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4, { 0, 1, 2, 3, 4, 9, 5, 6, 7, 8 }
uselistorder i32 0, { 7, 0, 1, 8, 9, 2, 10, 11, 12, 14, 13, 5, 15, 16, 17, 6, 3, 4 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 0, 4, 3, 1, 2, 5, 6 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_11, { 3, 4, 0, 1, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | perf_event_task_sched_out_13575 | perf_event_task_sched_out | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 1, i64 1, i64 0, i64 0)
%2 = ptrtoint i32* %arg2 to i64
%3 = call i64 @FUNC(i64 %0, i64 %2)
ret i64 %3
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | vfio_amd_xgbe_class_init_976 | vfio_amd_xgbe_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 ptrtoint ([14 x i8]* @gv_0 to i64), i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_1 to i64), i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | ptirq_free_irte_12357 | ptirq_free_irte | 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 i8, align 1
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp sgt i32 %2, 255
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
store i8 1, i8* %sv_0, align 1
br label LBL_4
LBL_3:
store i8 0, i8* %sv_0, align 1
%11 = add i64 %5, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
br label LBL_4
LBL_4:
%16 = call i64 @FUNC(i8* nonnull %sv_0, i64 %3)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | sparc_cpu_initfn_16239 | sparc_cpu_initfn | 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 = inttoptr i64 %1 to i64*
store i64 %2, i64* %3, align 8
%4 = call i64 @FUNC(i64 %1, i64 4198779)
%5 = call i64 @FUNC()
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | vtd_remap_irq_get_953 | vtd_remap_irq_get | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.reg2mem = alloca i64
%rdx = alloca i64, align 8
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%sv_0 = alloca i8, align 1
store i8 0, i8* %sv_0, align 1
%3 = urem i64 %arg2, 65536
%4 = bitcast i8* %sv_0 to i64*
%5 = call i64 @FUNC(i64 %1, i64 %3, i64* nonnull %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %5, 4294967295
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %arg3 to i64
%10 = load i8, i8* %sv_0, align 1
%11 = bitcast i64* %arg3 to i8*
store i8 %10, i8* %11, align 1
%12 = add i64 %9, 1
%13 = inttoptr i64 %12 to i8*
%14 = add i64 %9, 2
%15 = inttoptr i64 %14 to i8*
%16 = zext i32 %2 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = udiv i64 %17, 256
%19 = trunc i64 %18 to i32
%20 = urem i32 %19, 256
%21 = add i64 %9, 4
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = add i64 %9, 8
%24 = inttoptr i64 %23 to i8*
store i8 0, i8* %24, align 1
%25 = add i64 %9, 9
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %24, align 1
%28 = load i32, i32* %22, align 4
%29 = load i8, i8* %15, align 1
%30 = load i8, i8* %13, align 1
%31 = bitcast i64* %rdx to i8*
%32 = load i8, i8* %31, align 8
%33 = zext i8 %27 to i32
%34 = zext i8 %29 to i32
%35 = zext i8 %32 to i32
%36 = zext i8 %30 to i32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_0, i64 0, i64 0), i64 %3, i32 %35, i32 %36, i32 %34, i32 %28, i32 %33)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i8* %sv_0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | test_enabled_14947 | test_enabled | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv4.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 4210725)
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = urem i64 %1, 256
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
store i64 0, i64* %indvars.iv4.reg2mem
br label LBL_1
LBL_1:
%indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem
%6 = call i64 @FUNC(i64 ptrtoint (i64* @gv_0 to i64))
%7 = call i64 @FUNC(i64 0, i64 %indvars.iv4.reload, i64 150)
%8 = call i64 @FUNC(i64* nonnull @gv_0)
%9 = urem i64 %8, 256
%10 = call i64 @FUNC(i64 %9)
%indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1
%exitcond6 = icmp eq i64 %indvars.iv.next5, 10
store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond6, label LBL_2, label LBL_1
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%11 = call i64 @FUNC(i64 ptrtoint (i64* @gv_0 to i64))
%12 = call i64 @FUNC(i64 0, i64 %indvars.iv.reload, i64 4294967146)
%13 = call i64 @FUNC(i64* nonnull @gv_0)
%14 = urem i64 %13, 256
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
ret i64 %17
uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 10, { 1, 0 }
uselistorder i64 1, { 2, 1, 3, 0 }
uselistorder i64 (i64, i64, i64)* @set_cfg_value, { 1, 0 }
uselistorder i64 (i64)* @g_assert, { 2, 1, 0 }
uselistorder i64 (i64*)* @throttle_enabled, { 2, 1, 0 }
uselistorder i64* @gv_0, { 1, 0, 3, 2 }
uselistorder i64 (i64)* @throttle_config_init, { 2, 1, 0 }
uselistorder i32 1, { 2, 1, 3, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | cmd_xstats_8559 | cmd_xstats | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* @gv_0, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = inttoptr i64 %5 to i64*
%8 = load i64, i64* %7, align 8
%9 = ptrtoint i8* %arg1 to i64
%10 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64 %2, i64 %1)
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 65536)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %15, label LBL_13, label LBL_2
LBL_2:
%16 = load i64, i64* @gv_0, align 8
%17 = call i64 @FUNC(i64 %16, i64 %9, i64 0)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%sext = mul i64 %arg2, 4294967296
%18 = ashr exact i64 %sext, 32
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, -1
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = load i64, i64* @gv_3, align 8
%23 = ptrtoint i8* %arg1 to i64
%24 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_4, i64 0, i64 0), i64 %23, i64 %4, i64 %2, i64 %1)
store i32 %19, i32* %.pre-phi.reg2mem
store i64 %18, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_5:
%25 = icmp eq i32 %19, 13
%26 = icmp eq i1 %25, false
store i64 %18, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = load i64, i64* @gv_5, align 8
%28 = call i64 @FUNC(i64 %27)
%sext3 = mul i64 %28, 4294967296
%29 = ashr exact i64 %sext3, 32
store i64 %29, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%30 = trunc i64 %sv_0.0.reload to i32
%31 = icmp eq i32 %30, 10
%32 = load i64, i64* @gv_3, align 8
br i1 %31, label LBL_9, label LBL_8
LBL_8:
%33 = ptrtoint i8* %arg1 to i64
%34 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_6, i64 0, i64 0), i64 %33, i64 %4, i64 %2, i64 %1)
store i32 %30, i32* %.pre-phi.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_9:
%35 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%36 = mul i64 %indvars.iv.reload, 4
%37 = add i64 %36, ptrtoint (i32** @gv_8 to i64)
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = zext i32 %39 to i64
%41 = mul i64 %indvars.iv.reload, 8
%42 = add i64 %41, ptrtoint ([10 x i8*]* @gv_9 to i64)
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = load i64, i64* @gv_3, align 8
%46 = call i64 @FUNC(i64 %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0), i64 %44, i64 %40, i64 %2, i64 %1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%47 = load i64, i64* @gv_3, align 8
%48 = call i64 @FUNC(i64 %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_11, i64 0, i64 0), i64 %44, i64 %40, i64 %2, i64 %1)
%49 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_12, i64 0, i64 0))
%50 = load i64, i64* @gv_3, align 8
%51 = ptrtoint i8* %arg1 to i64
%52 = call i64 @FUNC(i64 %50, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_13, i64 0, i64 0), i64 %51, i64 %49, i64 %2, i64 %1)
store i64 %52, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%53 = icmp eq i32 %.pre-phi.reload, -1
%54 = and i64 %sv_0.1.reload, 4294967295
%storemerge = select i1 %53, i64 32, i64 %54
%55 = load i64, i64* @gv_5, align 8
%56 = call i64 @FUNC(i64 %55, i64 %storemerge)
store i64 %56, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %32, { 1, 0 }
uselistorder i32 %19, { 1, 0, 2 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 10, { 1, 2, 0 }
uselistorder i32 -1, { 2, 3, 1, 0 }
uselistorder i1 false, { 2, 3, 4, 1, 0 }
uselistorder i32 0, { 20, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @prot_printf, { 5, 4, 6, 3, 2, 1, 0 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 9, 10, 1, 0 }
uselistorder i8* %arg1, { 3, 2, 1, 0 }
uselistorder label LBL_13, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | socket_listen_cleanup_2002 | socket_listen_cleanup | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = and i64 %arg1, 4294967295
%5 = call i64 @FUNC(i64 %4, i64 %3)
%6 = icmp eq i64 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_7, label LBL_1
LBL_1:
%7 = inttoptr i64 %5 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_6, label LBL_2
LBL_2:
%11 = add i64 %5, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_3
LBL_3:
%15 = inttoptr i64 %13 to i8*
%16 = call i32 @unlink(i8* %15)
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_4
LBL_4:
%19 = call i32* @__errno_location()
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 2
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = load i64, i64* %12, align 8
%23 = call i32* @__errno_location()
%24 = load i32, i32* %23, align 4
%25 = call i64 @FUNC(i64 %3, i32 %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %22, i64 %2, i64 %1)
br label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 %5)
store i64 %26, 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, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | virtio_blk_class_init_15441 | virtio_blk_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5 }
} | 1 |
BinRealVul | vmxnet3_io_bar1_read_10697 | vmxnet3_io_bar1_read | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext, 32
store i64 %arg2, i64* @0, align 8
%5 = udiv i64 %arg2, 4
%6 = mul i64 %arg2, 4611686018427387904
%7 = or i64 %5, %6
switch i64 %7, label LBL_8 [
i64 0, label LBL_1
i64 1, label LBL_2
i64 2, label LBL_3
i64 3, label LBL_4
i64 4, label LBL_5
i64 5, label LBL_6
]
LBL_1:
%8 = and i64 %4, 4294967295
%9 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %arg3, i64 %3, i64 %2, i64 %1)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_2:
%10 = and i64 %4, 4294967295
%11 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %arg3, i64 %3, i64 %2, i64 %1)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_3:
%12 = and i64 %4, 4294967295
%13 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %12, i64 %arg3, i64 %3, i64 %2, i64 %1)
%14 = ptrtoint i32* %arg1 to i64
%15 = call i64 @FUNC(i64 %14)
store i64 %15, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_4:
%16 = and i64 %4, 4294967295
%17 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %16, i64 %arg3, i64 %3, i64 %2, i64 %1)
%18 = ptrtoint i32* %arg1 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_5:
%20 = and i64 %4, 4294967295
%21 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_4, i64 0, i64 0), i64 %20, i64 %arg3, i64 %3, i64 %2, i64 %1)
%22 = ptrtoint i32* %arg1 to i64
%23 = call i64 @FUNC(i64 %22)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%24 = and i64 %4, 4294967295
%25 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_5, i64 0, i64 0), i64 %24, i64 %arg3, i64 %3, i64 %2, i64 %1)
%26 = ptrtoint i32* %arg1 to i64
%27 = call i64 @FUNC(i64 %26, i64 0)
%28 = trunc i64 %27 to i8
%29 = icmp eq i8 %28, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_9, label LBL_7
LBL_7:
%30 = call i64 @FUNC(i64 %26, i64 0)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%31 = and i64 %4, 4294967295
%32 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_6, i64 0, i64 0), i64 %arg2, i64 %31, i64 %3, i64 %2, i64 %1)
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 %4, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %3, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 8, 7, 1, 6, 5, 4, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @VMW_CBPRN, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 4294967295, { 1, 7, 6, 5, 4, 3, 2, 0 }
uselistorder i64 1, { 2, 1, 0, 3 }
uselistorder i64 %arg3, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 2, 0, 1, 3 }
uselistorder i32* %arg1, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 7, 1, 0, 2, 3, 4, 5, 6 }
} | 0 |
BinRealVul | regmap_register_patch_18257 | regmap_register_patch | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
store i8 1, i8* %2, align 1
%4 = add i64 %0, 25
%5 = inttoptr i64 %4 to i8*
store i8 1, i8* %5, align 1
%6 = trunc i64 %arg3 to i32
%7 = icmp sgt i32 %6, 0
br i1 %7, label LBL_1, label LBL_5
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%9 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = mul i64 %indvars.iv.reload, 8
%11 = add i64 %10, %8
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = inttoptr i64 %11 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %0, i64 %17, i32 %14)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = load i32, i32* %13, align 4
%22 = load i32, i32* %15, align 4
%23 = add i64 %0, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = and i64 %18, 4294967295
%27 = call i64 @FUNC(i64 %25, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i32 %22, i32 %21, i64 %26)
store i32 %19, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%28 = icmp slt i64 %indvars.iv.next, %9
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %28, label LBL_2, label LBL_5
LBL_5:
%29 = add i64 %0, 48
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i32 %31, %6
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = add i64 %0, 40
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 %34, i64 0)
%39 = icmp eq i64 %38, 0
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %39, label LBL_7, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%40 = load i32, i32* %30, align 4
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 8
%43 = add i64 %42, %38
%44 = inttoptr i64 %43 to i64*
%45 = mul i32 %6, 8
%46 = call i64* @memcpy(i64* %44, i64* %arg2, i32 %45)
store i64 %38, i64* %36, align 8
%47 = load i32, i32* %30, align 4
%48 = add i32 %47, %6
store i32 %48, i32* %30, align 4
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
store i8 0, i8* %5, align 1
store i8 %3, i8* %2, align 1
%49 = call i64 @FUNC(i64 %0)
%50 = zext i32 %sv_0.1.reload to i64
ret i64 %50
uselistorder i64 %38, { 1, 0, 2 }
uselistorder i32* %30, { 1, 0, 2, 3 }
uselistorder i32 %6, { 1, 0, 2, 3 }
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 0, { 0, 2, 1 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | DestroyQuantumPixels_8581 | DestroyQuantumPixels | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.4.lcssa.reg2mem = alloca i64
%rdi.3.reg2mem = alloca i64
%.reg2mem3 = alloca i64
%rdi.41.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%.reg2mem = alloca i64
%rdi.2.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 27, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([37 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%3 = add i64 %0, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 305419896
br i1 %6, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([43 x i8]* @gv_3 to i64), i64* %rdi.2.reg2mem
br label LBL_6
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%7 = icmp eq i64 %rdi.0.reload, 0
%8 = icmp eq i1 %7, false
store i64 %rdi.0.reload, i64* %rdi.2.reg2mem
br i1 %8, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 29, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([48 x i8]* @gv_4 to i64), i64* %rdi.2.reg2mem
br label LBL_6
LBL_6:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%9 = add i64 %0, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp sgt i64 %11, 0
store i64 %11, i64* %.reg2mem
store i64 0, i64* %storemerge2.reg2mem
store i64 %rdi.2.reload, i64* %rdi.41.reg2mem
store i64 %rdi.2.reload, i64* %rdi.4.lcssa.reg2mem
br i1 %12, label LBL_7, label LBL_10
LBL_7:
%rdi.41.reload = load i64, i64* %rdi.41.reg2mem
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%13 = mul i64 %storemerge2.reload, 8
%14 = add i64 %13, %rdi.41.reload
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
store i64 %.reload, i64* %.reg2mem3
store i64 %rdi.41.reload, i64* %rdi.3.reg2mem
br i1 %17, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i64, i64* %10, align 8
store i64 %.pre, i64* %.reg2mem3
store i64 ptrtoint ([52 x i8]* @gv_5 to i64), i64* %rdi.3.reg2mem
br label LBL_9
LBL_9:
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
%.reload4 = load i64, i64* %.reg2mem3
%18 = add nuw nsw i64 %storemerge2.reload, 1
%19 = icmp slt i64 %18, %.reload4
store i64 %.reload4, i64* %.reg2mem
store i64 %18, i64* %storemerge2.reg2mem
store i64 %rdi.3.reload, i64* %rdi.41.reg2mem
store i64 %rdi.3.reload, i64* %rdi.4.lcssa.reg2mem
br i1 %19, label LBL_7, label LBL_10
LBL_10:
%rdi.4.lcssa.reload = load i64, i64* %rdi.4.lcssa.reg2mem
%20 = call i64 @FUNC(i64 %rdi.4.lcssa.reload)
store i64 %20, i64* %arg1, align 8
ret i64 %20
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %.reload4, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %rdi.2.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.41.reg2mem, { 2, 0, 1 }
uselistorder [52 x i8]* @gv_5, { 1, 0 }
uselistorder [48 x i8]* @gv_4, { 1, 0 }
uselistorder [43 x i8]* @gv_3, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 3, 0, 2, 1 }
uselistorder [37 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 0 |
BinRealVul | ast_probe_15405 | ast_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 1398035021
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = add i64 %0, 10
%5 = inttoptr i64 %4 to i16*
%6 = load i16, i16* %5, align 2
%7 = icmp eq i16 %6, 0
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = add i64 %0, 12
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = icmp eq i16 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
store i64 66, i64* %storemerge.reg2mem
br i1 %15, label LBL_4, label LBL_5
LBL_4:
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ftdi_sio_port_remove_18289 | ftdi_sio_port_remove | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0)
%4 = icmp eq i64 %1, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 0)
%6 = call i64 @FUNC(i64 %1)
br label LBL_2
LBL_2:
ret i64 0
} | 1 |
BinRealVul | afs_delete_async_call_17619 | afs_delete_async_call | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 4202539)
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %2
} | 1 |
BinRealVul | del_existing_snapshots_15191 | del_existing_snapshots | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%4 = ptrtoint i32* %sv_0 to i64
%5 = call i64 @FUNC(i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%.reload = load i64, i64* %.reg2mem
%8 = call i64 @FUNC(i64 %.reload)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %.reload)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %13, label LBL_1, label LBL_6
LBL_3:
%14 = call i64 @FUNC(i64 %.reload, i64 %4, i64 %arg2)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
br i1 %16, label LBL_2, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %.reload, i64 %arg2)
%18 = trunc i64 %17 to i32
store i32 %18, i32* %sv_0, align 4
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_2, label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %.reload)
%22 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %21, i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.reload, { 4, 0, 1, 3, 2 }
uselistorder i32* %sv_0, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64 (i64)* @bdrv_next, { 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_2, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | PacketGetFromAlloc_9275 | PacketGetFromAlloc | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 1024)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = inttoptr i64 %0 to i64*
%4 = call i64* @memset(i64* %3, i32 0, i32 1024)
store i64 4198742, i64* %3, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = or i32 %7, 1
store i32 %8, i32* %6, align 4
%9 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0))
store i64 %0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | read_sequence_header_13805 | read_sequence_header | 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 16, i64 %0)
%3 = trunc i64 %2 to i32
%4 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %4, align 4
%5 = call i64 @FUNC(i64 16, i64 %0)
%6 = trunc i64 %5 to i32
%7 = add i64 %1, 4
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = call i64 @FUNC(i64 3, i64 %0)
%10 = trunc i64 %9 to i32
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = call i64 @FUNC(i64 64)
%14 = call i64 @FUNC(i64 4)
%15 = load i32, i32* %12, align 4
%16 = and i64 %13, 4294967295
%17 = and i64 %14, 4294967295
%18 = zext i32 %15 to i64
%19 = call i64 @FUNC(i64 %18, i64 %17, i64 %16)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %12, align 4
%21 = call i64 @FUNC(i64 1, i64 %0)
%22 = trunc i64 %21 to i32
%23 = add i64 %1, 12
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = call i64 @FUNC(i64 1, i64 %0)
%26 = trunc i64 %25 to i32
%27 = add i64 %1, 16
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = call i64 @FUNC(i64 2, i64 %0)
%30 = trunc i64 %29 to i32
%31 = add i32 %30, 1
%32 = add i64 %1, 20
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = call i64 @FUNC(i64 2, i64 %0)
%35 = trunc i64 %34 to i32
%36 = add i64 %1, 24
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = call i64 @FUNC(i64 1, i64 %0)
%39 = trunc i64 %38 to i32
%40 = add i64 %1, 28
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = call i64 @FUNC(i64 1, i64 %0)
%43 = trunc i64 %42 to i32
%44 = add i64 %1, 32
%45 = inttoptr i64 %44 to i32*
store i32 %43, i32* %45, align 4
%46 = call i64 @FUNC(i64 1, i64 %0)
%47 = trunc i64 %46 to i32
%48 = add i64 %1, 36
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = call i64 @FUNC(i64 1, i64 %0)
%51 = trunc i64 %50 to i32
%52 = add i64 %1, 40
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
%54 = call i64 @FUNC(i64 2, i64 %0)
%55 = trunc i64 %54 to i32
%56 = add i64 %1, 44
%57 = inttoptr i64 %56 to i32*
store i32 %55, i32* %57, align 4
%58 = call i64 @FUNC(i64 1, i64 %0)
%59 = trunc i64 %58 to i32
%60 = add i64 %1, 48
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = icmp eq i32 %59, 0
br i1 %62, label LBL_2, label LBL_1
LBL_1:
%63 = call i64 @FUNC(i64 6, i64 %0)
%64 = trunc i64 %63 to i32
%65 = add i32 %64, -32
%66 = add i64 %1, 52
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
br label LBL_2
LBL_2:
%68 = call i64 @FUNC(i64 2, i64 %0)
%69 = trunc i64 %68 to i32
%70 = add i64 %1, 56
%71 = inttoptr i64 %70 to i32*
%72 = urem i32 %69, 2
%73 = mul nuw nsw i32 %72, 20
%74 = and i32 %69, 2
%narrow = mul nuw nsw i32 %74, 22
%75 = add nuw nsw i32 %73, %narrow
%76 = urem i32 %69, 4
%77 = icmp eq i32 %76, 3
%78 = icmp eq i1 %77, false
%. = select i1 %78, i32 0, i32 2
%79 = or i32 %., %75
%80 = add nuw nsw i32 %79, 400
store i32 %80, i32* %71, align 4
%81 = call i64 @FUNC(i64 4, i64 %0)
%82 = trunc i64 %81 to i32
%83 = add i64 %1, 60
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = load i32, i32* %71, align 4
%86 = icmp eq i32 %85, 400
br i1 %86, label LBL_4, label LBL_3
LBL_3:
%87 = call i64 @FUNC(i64 1, i64 %0)
%88 = trunc i64 %87 to i32
%89 = add i64 %1, 64
%90 = inttoptr i64 %89 to i32*
store i32 %88, i32* %90, align 4
%91 = call i64 @FUNC(i64 1, i64 %0)
%92 = trunc i64 %91 to i32
%93 = add i64 %1, 68
%94 = inttoptr i64 %93 to i32*
store i32 %92, i32* %94, align 4
br label LBL_4
LBL_4:
%95 = call i64 @FUNC(i64 1, i64 %0)
%96 = trunc i64 %95 to i32
%97 = icmp eq i32 %96, 0
%98 = select i1 %97, i32 8, i32 10
%99 = add i64 %1, 72
%100 = inttoptr i64 %99 to i32*
store i32 %98, i32* %100, align 4
br i1 %97, label LBL_6, label LBL_5
LBL_5:
%101 = call i64 @FUNC(i64 1, i64 %0)
%.tr = trunc i64 %101 to i32
%102 = mul i32 %.tr, 2
%103 = load i32, i32* %100, align 4
%104 = add i32 %102, %103
store i32 %104, i32* %100, align 4
br label LBL_6
LBL_6:
%105 = call i64 @FUNC(i64 1, i64 %0)
%106 = trunc i64 %105 to i32
%107 = icmp eq i32 %106, 0
%108 = select i1 %107, i32 8, i32 10
%109 = add i64 %1, 76
%110 = inttoptr i64 %109 to i32*
store i32 %108, i32* %110, align 4
%111 = zext i32 %108 to i64
store i64 %111, i64* %rax.0.reg2mem
br i1 %107, label LBL_8, label LBL_7
LBL_7:
%112 = call i64 @FUNC(i64 1, i64 %0)
%.tr1 = trunc i64 %112 to i32
%113 = mul i32 %.tr1, 2
%114 = load i32, i32* %110, align 4
%115 = add i32 %113, %114
store i32 %115, i32* %110, align 4
store i64 %1, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %110, { 1, 0, 2 }
uselistorder i32* %100, { 1, 0, 2 }
uselistorder i32 %69, { 0, 2, 1 }
uselistorder i64 %1, { 0, 4, 5, 2, 3, 6, 7, 1, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
uselistorder i64 %0, { 4, 5, 3, 6, 1, 2, 7, 8, 0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }
uselistorder i32 2, { 0, 1, 3, 4, 2 }
uselistorder i32 0, { 2, 3, 1, 4, 5, 0 }
uselistorder i64 32, { 3, 0, 1, 2 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 (i64)* @log2i, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 (i64, i64)* @get_flc, { 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 16, { 2, 0, 1 }
} | 0 |
BinRealVul | initialise_control_5569 | initialise_control | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i8*
%sv_0.1.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i16, align 2
store i16 12078, i16* %sv_2, align 2
%1 = call i64* @memset(i64* %arg1, i32 0, i32 104)
%2 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%3 = ptrtoint %_IO_FILE* %2 to i64
store i64 %3, i64* %arg1, align 8
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = ptrtoint %_IO_FILE* %4 to i64
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = call i64 @FUNC(i64 %0, i64 %0)
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i32*
store i32 7, i32* %10, align 4
%11 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%12 = ptrtoint i8* %11 to i64
%13 = add i64 %0, 32
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = add i64 %0, 40
%16 = inttoptr i64 %15 to i32*
store i32 7, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0)
%18 = add i64 %0, 48
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = icmp eq i64 %17, -1
%21 = icmp eq i1 %20, false
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_1, label LBL_16
LBL_1:
%22 = add i64 %0, 56
%23 = inttoptr i64 %22 to i32*
store i32 4, i32* %23, align 4
%24 = add i64 %0, 64
%25 = inttoptr i64 %24 to i64*
store i64 4096, i64* %25, align 8
%26 = add i64 %0, 72
%27 = inttoptr i64 %26 to i32*
store i32 19, i32* %27, align 4
%28 = call i32 @time(i32* null)
%29 = icmp eq i32 %28, -1
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_3, label LBL_2
LBL_2:
%31 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i64 0)
unreachable
LBL_3:
%32 = sext i32 %28 to i64
%33 = add nsw i64 %32, -1293839999
%34 = sub nsw i64 1293839998, %32
%35 = and i64 %34, %32
%36 = icmp slt i64 %35, 0
%37 = icmp eq i64 %33, 0
%38 = icmp slt i64 %33, 0
%39 = icmp ne i1 %38, %36
%40 = or i1 %37, %39
%41 = icmp eq i1 %40, false
store i64 %32, i64* %sv_1.0.reg2mem
br i1 %41, label LBL_5, label LBL_4
LBL_4:
%42 = call i64 @FUNC(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_3, i64 0, i64 0))
store i64 1293840000, i64* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%43 = add nsw i64 %sv_1.0.reload, -1293840000
%44 = add nsw i64 %sv_1.0.reload, -1293839997
%45 = icmp slt i64 %43, 0
%46 = select i1 %45, i64 %44, i64 %43
%47 = ashr i64 %46, 2
%48 = add nsw i64 %47, 1293840000
%49 = add i64 %0, 80
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
%51 = add i64 %0, 93
%52 = add i64 %0, 92
%53 = call i64 @FUNC(i64 %48, i64 %52, i64 %51)
%54 = trunc i64 %53 to i32
%55 = add i64 %0, 88
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %0, 94
%58 = call i64 @FUNC(i64 %0, i64 %57, i64 6)
%59 = urem i64 %58, 256
%60 = icmp eq i64 %59, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %60, label LBL_6, label LBL_16
LBL_6:
%61 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0))
%62 = icmp eq i8* %61, null
%63 = icmp eq i1 %62, false
store i8* %61, i8** %sv_0.0.reg2mem
br i1 %63, label LBL_8, label LBL_7
LBL_7:
%64 = call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
store i8* %64, i8** %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%65 = icmp eq i8* %sv_0.0.reload, null
%66 = icmp eq i1 %65, false
store i8* %sv_0.0.reload, i8** %sv_0.1.reg2mem
br i1 %66, label LBL_10, label LBL_9
LBL_9:
%67 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
store i8* %67, i8** %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
%68 = icmp eq i8* %sv_0.1.reload, null
%69 = icmp eq i1 %68, false
store i8* %sv_0.1.reload, i8** %sv_0.2.reg2mem
br i1 %69, label LBL_12, label LBL_11
LBL_11:
%70 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0))
store i8* %70, i8** %sv_0.2.reg2mem
br label LBL_12
LBL_12:
%sv_0.2.reload = load i8*, i8** %sv_0.2.reg2mem
%71 = icmp eq i8* %sv_0.2.reload, null
%72 = icmp eq i1 %71, false
%73 = bitcast i16* %sv_2 to i8*
%spec.select = select i1 %72, i8* %sv_0.2.reload, i8* %73
%74 = call i32 @strlen(i8* %spec.select)
%75 = add i32 %74, 2
%76 = call i64* @malloc(i32 %75)
%77 = ptrtoint i64* %76 to i64
%78 = add i64 %0, 16
%79 = inttoptr i64 %78 to i64*
store i64 %77, i64* %79, align 8
%80 = icmp eq i64* %76, null
%81 = icmp eq i1 %80, false
br i1 %81, label LBL_14, label LBL_13
LBL_13:
%82 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_8, i64 0, i64 0), i64 0)
unreachable
LBL_14:
%83 = sext i32 %74 to i64
%84 = bitcast i64* %76 to i8*
%85 = call i8* @strcpy(i8* %84, i8* %spec.select)
%86 = load i64, i64* %79, align 8
%87 = add i64 %86, %83
%88 = add i64 %87, -1
%89 = inttoptr i64 %88 to i8*
%90 = load i8, i8* %89, align 1
%91 = icmp eq i8 %90, 47
store i64 1, i64* %rax.0.reg2mem
br i1 %91, label LBL_16, label LBL_15
LBL_15:
%92 = inttoptr i64 %87 to i8*
store i8 47, i8* %92, align 1
%93 = load i64, i64* %79, align 8
%94 = add nsw i64 %83, 1
%95 = add i64 %94, %93
%96 = inttoptr i64 %95 to i8*
store i8 0, i8* %96, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %83, { 1, 0 }
uselistorder i32 %74, { 1, 0 }
uselistorder i8* %spec.select, { 1, 0 }
uselistorder i8* %sv_0.2.reload, { 1, 0 }
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %32, { 0, 1, 3, 2 }
uselistorder i32 %28, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 15, 17 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i8 0, { 1, 0 }
uselistorder i8 47, { 1, 0 }
uselistorder i8* (i8*)* @getenv, { 3, 2, 1, 0 }
uselistorder i64 1293840000, { 1, 0 }
uselistorder i64 (i8*, i64)* @fatal_return, { 1, 0 }
uselistorder i1 false, { 3, 4, 5, 6, 7, 0, 1, 2 }
uselistorder label LBL_16, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | bitmap_clear_16381 | bitmap_clear | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_2.0.lcssa.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = udiv i64 %arg2, 64
%1 = mul i64 %0, 8
%2 = add i64 %1, %arg1
%3 = sub i64 0, %arg2
%4 = urem i64 %3, 64
%5 = lshr i64 -1, %4
%6 = or i64 %arg2, -64
%7 = add i64 %6, %arg3
%8 = icmp slt i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %arg3, i64* %sv_2.0.lcssa.reg2mem
store i64 %2, i64* %sv_1.0.lcssa.reg2mem
store i64 %5, i64* %sv_0.0.lcssa.reg2mem
store i64 %7, i64* %.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%10 = sub i64 0, %5
%11 = sub i64 %10, 1
store i64 %7, i64* %.reg2mem
store i64 %11, i64* %sv_0.04.reg2mem
store i64 %2, i64* %sv_1.03.reg2mem
br label LBL_2
LBL_2:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%.reload = load i64, i64* %.reg2mem
%12 = inttoptr i64 %sv_1.03.reload to i64*
%13 = load i64, i64* %12, align 8
%14 = and i64 %13, %sv_0.04.reload
store i64 %14, i64* %12, align 8
%15 = add i64 %sv_1.03.reload, 8
%16 = add i64 %.reload, -64
%17 = icmp slt i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %.reg2mem
store i64 0, i64* %sv_0.04.reg2mem
store i64 %15, i64* %sv_1.03.reg2mem
store i64 %.reload, i64* %sv_2.0.lcssa.reg2mem
store i64 %15, i64* %sv_1.0.lcssa.reg2mem
store i64 -1, i64* %sv_0.0.lcssa.reg2mem
store i64 %16, i64* %.lcssa.reg2mem
br i1 %18, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%sv_2.0.lcssa.reload = load i64, i64* %sv_2.0.lcssa.reg2mem
%19 = icmp eq i64 %sv_2.0.lcssa.reload, 0
store i64 %.lcssa.reload, i64* %rax.0.reg2mem
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = add i64 %arg3, %arg2
%21 = trunc i64 %20 to i32
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%22 = urem i32 %21, 64
%23 = icmp eq i32 %22, 0
%24 = zext i32 %22 to i64
%25 = shl i64 -1, %24
%storemerge2 = select i1 %23, i64 -1, i64 %25
%26 = and i64 %sv_0.0.lcssa.reload, %storemerge2
%27 = inttoptr i64 %sv_1.0.lcssa.reload to i64*
%28 = load i64, i64* %27, align 8
%29 = sub i64 0, %26
%30 = sub i64 %29, 1
%31 = and i64 %28, %30
store i64 %31, i64* %27, align 8
store i64 %sv_1.0.lcssa.reload, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64 -1, { 1, 2, 0, 3 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder i64 %arg2, { 1, 2, 3, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | OpCode_12980 | OpCode | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext2, 32
%3 = icmp eq i32 %0, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = trunc i64 %1 to i32
%5 = trunc i64 %2 to i32
%6 = icmp slt i32 %4, %5
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = and i64 %2, 4294967295
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %7)
store i64 4294966297, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%10 = ptrtoint i64* %arg1 to i64
%11 = ashr exact i64 %sext, 30
%12 = add i64 %11, %10
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
store i64 %15, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | send_status_2399 | send_status | define i64 @FUNC(i64 %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp slt i32 %arg3, 0
%. = zext i1 %1 to i64
%2 = zext i32 %arg3 to i64
%3 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %., i64 4, i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %3, 4294967295
ret i64 %7
LBL_2:
%8 = and i64 %arg1, 4294967295
%sext2 = mul i64 %3, 4294967296
%9 = ashr exact i64 %sext2, 32
%10 = call i64 @FUNC(i64 %8, i64 0, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
%14 = and i64 %10, 4294967295
%spec.select = select i1 %13, i64 0, i64 %14
ret i64 %spec.select
} | 0 |
BinRealVul | monitor_event_435 | monitor_event | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = trunc i64 %arg2 to i32
%7 = icmp eq i32 %6, 4
br i1 %7, label LBL_15, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg1 to i64
%9 = icmp sgt i32 %6, 4
store i64 %8, i64* %rax.0.reg2mem
br i1 %9, label LBL_16, label LBL_2
LBL_2:
store i64 %8, i64* %rax.0.reg2mem
switch i32 %6, label LBL_16 [
i32 3, label LBL_12
i32 1, label LBL_3
i32 2, label LBL_6
]
LBL_3:
%10 = add i64 %8, 24
%11 = call i64 @FUNC(i64 %10)
%12 = bitcast i64* %arg1 to i32*
store i32 0, i32* %12, align 4
%13 = call i64 @FUNC(i64 %10)
%14 = add i64 %8, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = add i64 %8, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = call i64 @FUNC(i64 %8)
%23 = call i64 @FUNC(i64 %8)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_16
LBL_5:
%24 = add i64 %8, 8
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
store i64 %8, i64* %rax.0.reg2mem
br label LBL_16
LBL_6:
%26 = add i64 %8, 4
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
%30 = add i64 %8, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
br i1 %29, label LBL_10, label LBL_7
LBL_7:
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %8, i64* nonnull @gv_0, i64 %4, i64 %5, i64 %2, i64 %1)
br label LBL_9
LBL_9:
%36 = call i64 @FUNC(i64 %8)
%37 = call i64 @FUNC(i64 %8)
br label LBL_11
LBL_10:
%38 = add i32 %32, 1
store i32 %38, i32* %31, align 4
br label LBL_11
LBL_11:
%39 = add i64 %8, 24
%40 = call i64 @FUNC(i64 %39)
%41 = bitcast i64* %arg1 to i32*
store i32 1, i32* %41, align 4
%42 = call i64 @FUNC(i64 %39)
store i64 %42, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%43 = trunc i64 %3 to i32
%44 = call i64 @FUNC(i64 %8, i64* bitcast ([52 x i8]* @gv_1 to i64*), i64 ptrtoint ([6 x i8]* @gv_2 to i64), i64 %5, i64 %2, i64 %1)
%45 = icmp eq i32 %43, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_14, label LBL_13
LBL_13:
%47 = add i64 %8, 16
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %49)
%51 = load i64, i64* %48, align 8
%52 = call i64 @FUNC(i64 %51)
br label LBL_14
LBL_14:
%53 = add i64 %8, 4
%54 = inttoptr i64 %53 to i32*
store i32 1, i32* %54, align 4
store i32 ptrtoint (i32* @gv_3 to i32), i32* bitcast (i64* @gv_4 to i32*), align 8
store i64 ptrtoint (i32* @gv_3 to i64), i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%55 = load i32, i32* bitcast (i64* @gv_4 to i32*), align 8
%56 = add i32 %55, -1
store i32 %56, i32* bitcast (i64* @gv_4 to i32*), align 8
%57 = call i64 @FUNC()
store i64 %57, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %32, { 1, 0 }
uselistorder i64 %8, { 12, 11, 17, 5, 3, 4, 13, 14, 15, 1, 10, 6, 7, 9, 8, 16, 0, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 5, 2, 4, 3, 1, 6 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32* @gv_3, { 1, 0 }
uselistorder i64 (i64, i64*, i64, i64, i64, i64)* @monitor_printf, { 1, 0 }
uselistorder i64 (i64)* @monitor_flush, { 1, 0 }
uselistorder i64 (i64)* @readline_restart, { 1, 0 }
uselistorder i64 (i64)* @qemu_mutex_unlock, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder i64 (i64)* @qemu_mutex_lock, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2 }
uselistorder label LBL_16, { 1, 2, 3, 4, 5, 0, 6 }
} | 0 |
BinRealVul | __might_sleep_18881 | __might_sleep | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC()
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC()
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 0
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_7, label LBL_2
LBL_2:
%11 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%12 = zext i32 %11 to i64
%13 = icmp eq i32 %11, 1
%14 = icmp eq i1 %13, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_7, label LBL_3
LBL_3:
%15 = load i8, i8* bitcast (i32* @gv_0 to i8*), align 4
%16 = icmp eq i8 %15, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = load i64, i64* @gv_1, align 8
%18 = add i64 %17, 100
%19 = load i64, i64* @gv_2, align 8
%20 = call i64 @FUNC(i64 %19, i64 %18)
%21 = trunc i64 %20 to i8
%22 = icmp eq i8 %21, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = load i64, i64* @gv_1, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %rax.0.reg2mem
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = load i64, i64* @gv_2, align 8
store i64 %26, i64* @gv_1, align 8
%27 = trunc i64 %arg2 to i32
%28 = ptrtoint i8* %arg1 to i64
%29 = call i64 @FUNC(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @gv_3, i64 0, i64 0), i64 %28, i32 %27, i64 %3, i64 %2, i64 %1)
%30 = call i64 @FUNC()
%31 = trunc i64 %30 to i32
%32 = call i64 @FUNC()
%33 = urem i32 %31, 256
%34 = urem i64 %32, 256
%35 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_4, i64 0, i64 0), i64 %34, i32 %33, i64 %3, i64 %2, i64 %1)
%36 = call i64 @FUNC()
store i64 %36, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 5, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @printk, { 1, 0 }
uselistorder i64 ()* @irqs_disabled, { 1, 0 }
uselistorder i64 ()* @in_atomic, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 5, 1, 0 }
uselistorder label LBL_7, { 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | espRouteDirective_18783 | espRouteDirective | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i8*
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i64
%sv_4.15.reg2mem = alloca i64
%sv_3.16.reg2mem = alloca i64
%sv_2.18.reg2mem = alloca i64
%sv_1.110.reg2mem = alloca i8*
%sv_0.112.reg2mem = alloca i8*
%storemerge14.reg2mem = alloca i64
%0 = ptrtoint i8* %arg3 to i64
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_20, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %4, i64* nonnull %sv_6)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %storemerge14.reg2mem
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.112.reg2mem
store i8* null, i8** %sv_1.110.reg2mem
store i64 0, i64* %sv_2.18.reg2mem
store i64 0, i64* %sv_3.16.reg2mem
store i64 0, i64* %sv_4.15.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_20
LBL_2:
%sv_4.15.reload = load i64, i64* %sv_4.15.reg2mem
%sv_3.16.reload = load i64, i64* %sv_3.16.reg2mem
%sv_2.18.reload = load i64, i64* %sv_2.18.reg2mem
%sv_1.110.reload = load i8*, i8** %sv_1.110.reg2mem
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%8 = call i64 @FUNC(i64 %storemerge14.reload, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_5)
%9 = load i64, i64* %sv_5, align 8
%10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 1)
store i64 %10, i64* %sv_5, align 8
%11 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0))
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = load i64, i64* %sv_5, align 8
%15 = inttoptr i64 %14 to i8*
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.18.reload, i64* %sv_2.0.reg2mem
store i8* %sv_1.110.reload, i8** %sv_1.0.reg2mem
store i8* %15, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_4:
%sv_0.112.reload = load i8*, i8** %sv_0.112.reg2mem
%16 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0))
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = load i64, i64* %sv_5, align 8
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %19, i64* %sv_3.0.reg2mem
store i64 %sv_2.18.reload, i64* %sv_2.0.reg2mem
store i8* %sv_1.110.reload, i8** %sv_1.0.reg2mem
store i8* %sv_0.112.reload, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_6:
%20 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0))
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = load i64, i64* %sv_5, align 8
store i64 %27, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.18.reload, i64* %sv_2.0.reg2mem
store i8* %sv_1.110.reload, i8** %sv_1.0.reg2mem
store i8* %sv_0.112.reload, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_9:
%28 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_8, i64 0, i64 0))
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_11, label LBL_10
LBL_10:
%31 = load i64, i64* %sv_5, align 8
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %31, i64* %sv_2.0.reg2mem
store i8* %sv_1.110.reload, i8** %sv_1.0.reg2mem
store i8* %sv_0.112.reload, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_11:
%32 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_9, i64 0, i64 0))
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_13, label LBL_12
LBL_12:
%35 = load i64, i64* %sv_5, align 8
%36 = inttoptr i64 %35 to i8*
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.18.reload, i64* %sv_2.0.reg2mem
store i8* %36, i8** %sv_1.0.reg2mem
store i8* %sv_0.112.reload, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%37 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_11, i64 0, i64 0), i64 %8)
store i64 %sv_4.15.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.18.reload, i64* %sv_2.0.reg2mem
store i8* %sv_1.110.reload, i8** %sv_1.0.reg2mem
store i8* %sv_0.112.reload, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%sv_1.0.reload = load i8*, i8** %sv_1.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_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%38 = load i64, i64* %sv_6, align 8
%39 = call i64 @FUNC(i64 %38, i64* nonnull %sv_6)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 %39, i64* %storemerge14.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.112.reg2mem
store i8* %sv_1.0.reload, i8** %sv_1.110.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.18.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.16.reg2mem
store i64 %sv_4.0.reload, i64* %sv_4.15.reg2mem
br i1 %41, label LBL_2, label LBL_15
LBL_15:
%42 = icmp ne i64 %sv_4.0.reload, 0
%43 = icmp eq i8* %sv_1.0.reload, null
%44 = icmp eq i1 %43, false
%or.cond = icmp eq i1 %42, %44
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_16, label LBL_20
LBL_16:
%45 = load i8, i8* %sv_1.0.reload, align 1
%46 = icmp eq i8 %45, 0
%47 = icmp eq i1 %46, false
%48 = ptrtoint i8* %sv_1.0.reload to i64
%49 = select i1 %47, i64 %48, i64 ptrtoint ([3 x i8]* @gv_12 to i64)
%50 = call i64 @FUNC(i64 %49, i64 %38)
%51 = ptrtoint i8* %sv_0.0.reload to i64
%52 = call i64 @FUNC(i64 %49, i64 %sv_3.0.reload, i64 %51, i64 %sv_4.0.reload, i64 %50, i64 %sv_2.0.reload)
%53 = icmp eq i64 %52, 0
%54 = icmp eq i1 %53, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %54, label LBL_17, label LBL_20
LBL_17:
%55 = call i64 @FUNC(i64 %52, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_13, i64 0, i64 0))
%56 = call i64 @FUNC(i64 %52)
%57 = icmp eq i64 %56, 0
%58 = icmp eq i1 %57, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %58, label LBL_18, label LBL_20
LBL_18:
%59 = icmp eq i64 %sv_3.0.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %59, label LBL_20, label LBL_19
LBL_19:
%60 = call i64 @FUNC(i64 %sv_3.0.reload)
%61 = inttoptr i64 %56 to i64*
store i64 %60, i64* %61, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %52, { 1, 0, 2 }
uselistorder i64 %sv_3.0.reload, { 1, 0, 2, 3 }
uselistorder i8* %sv_1.0.reload, { 1, 0, 2, 3 }
uselistorder i8* %sv_0.112.reload, { 3, 2, 1, 4, 0 }
uselistorder i8* %sv_1.110.reload, { 3, 2, 4, 1, 0 }
uselistorder i64 %sv_2.18.reload, { 3, 2, 4, 1, 0 }
uselistorder i64 %sv_3.16.reload, { 3, 2, 1, 4, 0 }
uselistorder i64 %sv_4.15.reload, { 4, 3, 2, 1, 0 }
uselistorder i64* %sv_6, { 0, 2, 1 }
uselistorder i64* %sv_5, { 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i64* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.112.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_1.110.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i8** %sv_1.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 5, 6, 7, 1, 2 }
uselistorder i64 (i64, i8*)* @smatch, { 5, 4, 3, 2, 1, 0 }
uselistorder i8* null, { 1, 0, 2, 3, 4 }
uselistorder i1 false, { 2, 3, 4, 1, 6, 5, 0, 7, 8, 9, 10 }
uselistorder i64 (i64, i64*)* @maGetNextArg, { 1, 0 }
uselistorder i64 (i64)* @sclone, { 2, 1, 0 }
uselistorder label LBL_20, { 4, 3, 5, 6, 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ntlm_av_pair_get_id_7360 | ntlm_av_pair_get_id | define i64 @FUNC(i16* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i16
%rax.0.reg2mem = alloca i64
%1 = load i16, i16* %0
%2 = icmp eq i16* %arg1, null
%3 = icmp eq i64* %arg3, null
%or.cond.not = or i1 %2, %3
%4 = icmp ult i64 %arg2, 2
%or.cond3 = or i1 %4, %or.cond.not
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_2, label LBL_1
LBL_1:
%5 = zext i16 %1 to i64
%6 = ptrtoint i16* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = bitcast i64* %arg3 to i16*
store i64 1, 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* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cpu_exec_init_3035 | cpu_exec_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load i64, i64* @gv_1, align 8
store i64 %3, i64* @gv_0, align 8
%4 = call i64 @FUNC()
%5 = call i64 @FUNC()
br label LBL_2
LBL_2:
%6 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %6, align 8
store i64 ptrtoint (i64* @gv_2 to i64), i64* %sv_0.0.reg2mem
store i32 0, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%7 = inttoptr i64 %sv_0.0.reload to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
%11 = add i32 %storemerge.reload, 1
store i64 %8, i64* %sv_0.0.reg2mem
store i32 %11, i32* %storemerge.reg2mem
br i1 %10, label LBL_3, label LBL_4
LBL_4:
%12 = add i64 %arg1, 8
%13 = inttoptr i64 %12 to i32*
store i32 %storemerge.reload, i32* %13, align 4
%14 = add i64 %arg1, 12
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
store i64 %arg1, i64* %7, align 8
ret i64 %sv_0.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | ecryptfs_free_kmem_caches_9107 | ecryptfs_free_kmem_caches | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%0 = mul i64 %indvars.iv.reload, 8
%1 = add i64 %0, ptrtoint (i64* @gv_0 to i64)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %5)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
ret i64 10
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | gen_swa_2124 | gen_swa | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg4 to i32
%3 = call i64 @FUNC()
%4 = and i64 %arg3, 4294967295
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 %4, i32 %2)
%7 = load i32, i32* @gv_0, align 4
store i32 %7, i32* bitcast (i32** @gv_1 to i32*), align 8
%8 = call i64 @FUNC()
%9 = call i64 @FUNC()
%10 = load i32, i32* bitcast (i64* @gv_2 to i32*), align 8
%11 = call i64 @FUNC(i64 1, i64 %5, i32 %10, i64 %8)
%12 = call i64 @FUNC(i64 %5)
%13 = call i64 @FUNC()
%14 = trunc i64 %13 to i32
%sext = mul i64 %arg2, 4294967296
%15 = ashr exact i64 %sext, 30
%16 = add i64 %15, ptrtoint (i32** @gv_1 to i64)
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = load i32, i32* @gv_3, align 4
%20 = load i32, i32* bitcast (i64* @gv_2 to i32*), align 8
%21 = and i64 %1, 4294967295
%22 = and i64 %13, 4294967295
%23 = call i64 @FUNC(i64 %22, i32 %20, i32 %19, i32 %18, i64 %21, i64 0)
%24 = load i32, i32* @gv_3, align 4
%25 = load i32, i32* @gv_4, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 2, i64 %26, i32 %14, i32 %24)
%28 = call i64 @FUNC(i64 %22)
%29 = call i64 @FUNC(i64 %9)
%30 = call i64 @FUNC(i64 %8)
%31 = load i32, i32* @gv_4, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %32, i64 0)
%34 = call i64 @FUNC(i64 %9)
%35 = load i32, i32* bitcast (i64* @gv_2 to i32*), align 8
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36, i64 4294967295)
ret i64 %37
uselistorder i64 (i64, i64)* @tcg_gen_movi_tl, { 1, 0 }
uselistorder i64 (i64)* @gen_set_label, { 1, 0 }
uselistorder i32* @gv_4, { 1, 0 }
uselistorder i32* @gv_3, { 1, 0 }
uselistorder i64 (i64)* @tcg_temp_free, { 1, 0 }
uselistorder i64 ()* @gen_new_label, { 1, 0 }
uselistorder i32** @gv_1, { 1, 0 }
uselistorder i64 4294967295, { 4, 1, 0, 2, 3 }
uselistorder i64 ()* @tcg_temp_new, { 1, 0 }
} | 0 |
BinRealVul | clone_lease_17661 | clone_lease | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = call i64* @calloc(i32 1, i32 4168)
%cond = icmp eq i64* %0, null
store i64 0, i64* %storemerge1.reg2mem
br i1 %cond, label LBL_11, label LBL_1
LBL_1:
%1 = ptrtoint i64* %0 to i64
store i64 1, i64* %0, align 8
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = add i64 %arg1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %1, 16
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = add i64 %arg1, 24
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %1, 24
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = add i64 %arg1, 28
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %1, 28
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = add i64 %arg1, 32
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %1, 32
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = add i64 %arg1, 40
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %1, 40
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = add i64 %arg1, 48
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_3, label LBL_2
LBL_2:
%36 = inttoptr i64 %34 to i8*
%37 = call i8* @strdup(i8* %36)
%38 = ptrtoint i8* %37 to i64
%39 = add i64 %1, 48
%40 = inttoptr i64 %39 to i64*
store i64 %38, i64* %40, align 8
%41 = icmp eq i8* %37, null
br i1 %41, label LBL_10, label LBL_3
LBL_3:
%42 = add i64 %arg1, 56
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = icmp eq i64 %44, 0
br i1 %45, label LBL_5, label LBL_4
LBL_4:
%46 = inttoptr i64 %44 to i8*
%47 = call i8* @strdup(i8* %46)
%48 = ptrtoint i8* %47 to i64
%49 = add i64 %1, 56
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
%51 = icmp eq i8* %47, null
br i1 %51, label LBL_10, label LBL_5
LBL_5:
%52 = add i64 %arg1, 64
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_7, label LBL_6
LBL_6:
%56 = inttoptr i64 %54 to i8*
%57 = call i8* @strdup(i8* %56)
%58 = ptrtoint i8* %57 to i64
%59 = add i64 %1, 64
%60 = inttoptr i64 %59 to i64*
store i64 %58, i64* %60, align 8
%61 = icmp eq i8* %57, null
br i1 %61, label LBL_10, label LBL_7
LBL_7:
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%62 = mul i64 %indvars.iv.reload, 16
%63 = add nuw nsw i64 %62, 64
%64 = add i64 %63, %arg1
%65 = add i64 %64, 8
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %63, %1
%69 = add i64 %68, 8
%70 = inttoptr i64 %69 to i32*
store i32 %67, i32* %70, align 4
%71 = call i64* @calloc(i32 1, i32 %67)
%72 = ptrtoint i64* %71 to i64
%73 = add i64 %68, 16
%74 = inttoptr i64 %73 to i64*
store i64 %72, i64* %74, align 8
%75 = icmp eq i64* %71, null
br i1 %75, label LBL_10, label LBL_9
LBL_9:
%76 = load i32, i32* %70, align 4
%77 = add i64 %64, 16
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = inttoptr i64 %79 to i64*
%81 = call i64* @memcpy(i64* nonnull %71, i64* %80, i32 %76)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%82 = icmp ult i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %1, i64* %storemerge1.reg2mem
br i1 %82, label LBL_8, label LBL_11
LBL_10:
%83 = call i64 @FUNC(i64 %1)
store i64 0, i64* %storemerge1.reg2mem
br label LBL_11
LBL_11:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64* %71, { 1, 0, 2 }
uselistorder i64 %1, { 11, 0, 1, 4, 3, 2, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %0, { 1, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_10, { 0, 3, 2, 1 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | write_accounts_7745 | write_accounts | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%storemerge8.lcssa.reg2mem = alloca i64
%storemerge422.reg2mem = alloca i32
%.reg2mem37 = alloca i64
%storemerge521.reg2mem = alloca i32
%.reg2mem35 = alloca i64
%sv_0.4.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_2.1.lcssa.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.113.reg2mem = alloca i32
%sv_2.114.reg2mem = alloca i64
%sv_1.115.reg2mem = alloca i32
%storemerge716.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge825.reg2mem = alloca i64
%indvars.iv30.reg2mem = alloca i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = ptrtoint %_IO_FILE* %0 to i64
%2 = icmp eq %_IO_FILE* %0, null
store i64 %1, i64* %rax.1.reg2mem
br i1 %2, label LBL_34, label LBL_1
LBL_1:
%3 = ptrtoint i64* %sv_4 to i64
%4 = add i64 %3, 13
%5 = add i64 %3, -8
%6 = inttoptr i64 %5 to i64*
%7 = add i64 %3, -16
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %indvars.iv30.reg2mem
br label LBL_2
LBL_2:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%9 = mul i64 %indvars.iv30.reload, 8
%10 = add i64 %9, ptrtoint (i64* @gv_1 to i64)
%storemerge8.in23 = inttoptr i64 %10 to i64*
%storemerge824 = load i64, i64* %storemerge8.in23, align 8
%11 = icmp eq i64 %storemerge824, 0
%12 = icmp eq i1 %11, false
store i64 %storemerge824, i64* %storemerge825.reg2mem
store i64 %storemerge824, i64* %storemerge8.lcssa.reg2mem
br i1 %12, label LBL_3, label LBL_33
LBL_3:
%storemerge825.reload = load i64, i64* %storemerge825.reg2mem
%13 = add i64 %storemerge825.reload, 72
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = trunc i64 %20 to i32
%22 = add i64 %storemerge825.reload, 64
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp ugt i32 %24, 1
store i32 0, i32* %sv_0.1.lcssa.reg2mem
store i64 %17, i64* %sv_2.1.lcssa.reg2mem
store i32 %21, i32* %sv_1.1.lcssa.reg2mem
br i1 %25, label LBL_4, label LBL_6
LBL_4:
%26 = zext i32 %24 to i64
store i64 1, i64* %.reg2mem
store i32 1, i32* %storemerge716.reg2mem
store i32 %21, i32* %sv_1.115.reg2mem
store i64 %17, i64* %sv_2.114.reg2mem
store i32 0, i32* %sv_0.113.reg2mem
br label LBL_5
LBL_5:
%sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem
%sv_2.114.reload = load i64, i64* %sv_2.114.reg2mem
%sv_1.115.reload = load i32, i32* %sv_1.115.reg2mem
%storemerge716.reload = load i32, i32* %storemerge716.reg2mem
%.reload = load i64, i64* %.reg2mem
%27 = mul i64 %.reload, 8
%28 = add i64 %27, %15
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, 24
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = urem i32 %33, 2
%35 = or i32 %34, %sv_0.113.reload
%36 = add i64 %30, 16
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %sv_2.114.reload, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp sgt i64 %38, %41
%sv_2.0 = select i1 %42, i64 %30, i64 %sv_2.114.reload
%43 = add i64 %30, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = sext i32 %sv_1.115.reload to i64
%47 = icmp slt i64 %45, %46
%48 = trunc i64 %45 to i32
%spec.select9 = select i1 %47, i32 %48, i32 %sv_1.115.reload
%49 = add i32 %storemerge716.reload, 1
%50 = sext i32 %49 to i64
%51 = icmp slt i64 %50, %26
store i64 %50, i64* %.reg2mem
store i32 %49, i32* %storemerge716.reg2mem
store i32 %spec.select9, i32* %sv_1.115.reg2mem
store i64 %sv_2.0, i64* %sv_2.114.reg2mem
store i32 %35, i32* %sv_0.113.reg2mem
store i32 %35, i32* %sv_0.1.lcssa.reg2mem
store i64 %sv_2.0, i64* %sv_2.1.lcssa.reg2mem
store i32 %spec.select9, i32* %sv_1.1.lcssa.reg2mem
br i1 %51, label LBL_5, label LBL_6
LBL_6:
%sv_2.1.lcssa.reload = load i64, i64* %sv_2.1.lcssa.reg2mem
%52 = add i64 %sv_2.1.lcssa.reload, 24
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = and i32 %54, 2
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_32, label LBL_7
LBL_7:
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%58 = add i64 %storemerge825.reload, 48
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = mul i32 %60, 16
%62 = and i32 %61, 16
%63 = or i32 %62, %sv_0.1.lcssa.reload
%64 = and i32 %60, 2
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
%67 = or i32 %63, 4
%sv_0.3 = select i1 %66, i32 %63, i32 %67
%68 = add i64 %storemerge825.reload, 16
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = call i64 @FUNC(i64 %70, i64* nonnull %sv_3, i64 64)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 1
store i32 %sv_0.3, i32* %sv_0.4.reg2mem
br i1 %73, label LBL_12, label LBL_8
LBL_8:
%74 = load i32, i32* %59, align 4
%75 = and i32 %74, 4
%76 = icmp eq i32 %75, 0
store i32 %sv_0.3, i32* %sv_0.4.reg2mem
br i1 %76, label LBL_12, label LBL_9
LBL_9:
store i64 8534995790084598052, i64* %sv_4, align 8
%77 = add i64 %sv_2.1.lcssa.reload, 40
%78 = inttoptr i64 %77 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%79 = load i64, i64* %78, align 8
%80 = add i64 %79, 16
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = add i64 %82, %indvars.iv.reload
%84 = inttoptr i64 %83 to i8*
%85 = load i8, i8* %84, align 1
%86 = mul i64 %indvars.iv.reload, 2
%87 = add i64 %4, %86
%88 = zext i8 %85 to i32
%89 = inttoptr i64 %87 to i8*
%90 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %89, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i32 %88)
%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_11, label LBL_10
LBL_11:
%91 = or i32 %sv_0.3, 256
store i32 %91, i32* %sv_0.4.reg2mem
br label LBL_12
LBL_12:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%92 = load i64, i64* %69, align 8
%93 = inttoptr i64 %92 to i8*
%94 = add i64 %storemerge825.reload, 88
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = icmp eq i32 %96, 0
%98 = icmp eq i1 %97, false
%99 = or i32 %sv_0.4.reload, 64
%spec.select11 = select i1 %98, i32 %sv_0.4.reload, i32 %99
%100 = add i64 %sv_2.1.lcssa.reload, 16
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = add i64 %storemerge825.reload, 8
%104 = inttoptr i64 %103 to i64*
%105 = load i64, i64* %104, align 8
%106 = inttoptr i64 %storemerge825.reload to i64*
%107 = load i64, i64* %106, align 8
%108 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%109 = zext i32 %spec.select11 to i64
store i64 %109, i64* %6, align 8
store i64 %102, i64* %8, align 8
%110 = inttoptr i64 %107 to i8*
%111 = inttoptr i64 %105 to i8*
%112 = trunc i64 %92 to i32
%113 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %108, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0), i8* %110, i8* %93, i8* %111, i32 %sv_1.1.lcssa.reload, i32 %112)
%114 = add i64 %sv_2.1.lcssa.reload, 32
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = icmp eq i64 %116, 0
br i1 %117, label LBL_14, label LBL_13
LBL_13:
%118 = load i64, i64* %106, align 8
%119 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%120 = inttoptr i64 %118 to i8*
%121 = inttoptr i64 %116 to i8*
%122 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %119, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_4, i64 0, i64 0), i8* %120, i8* %121)
br label LBL_14
LBL_14:
%123 = add i64 %storemerge825.reload, 24
%124 = inttoptr i64 %123 to i64*
%125 = load i64, i64* %124, align 8
%126 = icmp eq i64 %125, 0
br i1 %126, label LBL_16, label LBL_15
LBL_15:
%127 = load i64, i64* %106, align 8
%128 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%129 = inttoptr i64 %127 to i8*
%130 = inttoptr i64 %125 to i8*
%131 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %128, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0), i8* %129, i8* %130)
br label LBL_16
LBL_16:
%132 = add i64 %storemerge825.reload, 32
%133 = inttoptr i64 %132 to i32*
%134 = load i32, i32* %133, align 4
%135 = icmp eq i32 %134, 0
br i1 %135, label LBL_18, label LBL_17
LBL_17:
%136 = load i64, i64* %106, align 8
%137 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%138 = inttoptr i64 %136 to i8*
%139 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %137, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_6, i64 0, i64 0), i8* %138, i32 %134)
br label LBL_18
LBL_18:
%140 = add i64 %storemerge825.reload, 40
%141 = inttoptr i64 %140 to i64*
%142 = load i64, i64* %141, align 8
%143 = icmp eq i64 %142, 0
br i1 %143, label LBL_20, label LBL_19
LBL_19:
%144 = load i64, i64* %106, align 8
%145 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%146 = inttoptr i64 %144 to i8*
%147 = inttoptr i64 %142 to i8*
%148 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %145, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_7, i64 0, i64 0), i8* %146, i8* %147)
br label LBL_20
LBL_20:
%149 = load i32, i32* %59, align 4
%150 = and i32 %149, 8
%151 = icmp eq i32 %150, 0
br i1 %151, label LBL_22, label LBL_21
LBL_21:
%152 = load i64, i64* %106, align 8
%153 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%154 = inttoptr i64 %152 to i8*
%155 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %153, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i8* %154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_9, i64 0, i64 0))
br label LBL_26
LBL_22:
%156 = and i32 %149, 16
%157 = icmp eq i32 %156, 0
br i1 %157, label LBL_24, label LBL_23
LBL_23:
%158 = load i64, i64* %106, align 8
%159 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%160 = inttoptr i64 %158 to i8*
%161 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %159, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i8* %160, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_10, i64 0, i64 0))
br label LBL_26
LBL_24:
%162 = and i32 %149, 32
%163 = icmp eq i32 %162, 0
br i1 %163, label LBL_26, label LBL_25
LBL_25:
%164 = load i64, i64* %106, align 8
%165 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%166 = inttoptr i64 %164 to i8*
%167 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %165, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i8* %166, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_11, i64 0, i64 0))
br label LBL_26
LBL_26:
%168 = add i64 %storemerge825.reload, 52
%169 = inttoptr i64 %168 to i32*
%170 = load i32, i32* %169, align 4
%171 = icmp eq i32 %170, 0
br i1 %171, label LBL_29, label LBL_27
LBL_27:
%172 = add i64 %storemerge825.reload, 56
%173 = inttoptr i64 %172 to i64*
store i64 0, i64* %.reg2mem35
store i32 0, i32* %storemerge521.reg2mem
br label LBL_28
LBL_28:
%storemerge521.reload = load i32, i32* %storemerge521.reg2mem
%.reload36 = load i64, i64* %.reg2mem35
%174 = load i64, i64* %173, align 8
%175 = mul i64 %.reload36, 8
%176 = add i64 %174, %175
%177 = inttoptr i64 %176 to i64*
%178 = load i64, i64* %177, align 8
%179 = load i64, i64* %106, align 8
%180 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%181 = inttoptr i64 %179 to i8*
%182 = inttoptr i64 %178 to i8*
%183 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %180, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_12, i64 0, i64 0), i8* %181, i8* %182)
%184 = add i32 %storemerge521.reload, 1
%185 = load i32, i32* %169, align 4
%186 = zext i32 %185 to i64
%187 = sext i32 %184 to i64
%188 = icmp slt i64 %187, %186
store i64 %187, i64* %.reg2mem35
store i32 %184, i32* %storemerge521.reg2mem
br i1 %188, label LBL_28, label LBL_29
LBL_29:
%189 = load i32, i32* %23, align 4
%190 = icmp eq i32 %189, 0
store i64 0, i64* %.reg2mem37
store i32 0, i32* %storemerge422.reg2mem
br i1 %190, label LBL_31, label LBL_30
LBL_30:
%storemerge422.reload = load i32, i32* %storemerge422.reg2mem
%.reload38 = load i64, i64* %.reg2mem37
%191 = load i64, i64* %14, align 8
%192 = mul i64 %.reload38, 8
%193 = add i64 %191, %192
%194 = inttoptr i64 %193 to i64*
%195 = load i64, i64* %194, align 8
%196 = add i64 %195, 16
%197 = inttoptr i64 %196 to i64*
%198 = load i64, i64* %197, align 8
%199 = add i64 %195, 8
%200 = inttoptr i64 %199 to i64*
%201 = load i64, i64* %200, align 8
%202 = inttoptr i64 %195 to i64*
%203 = load i64, i64* %202, align 8
%204 = load i64, i64* %106, align 8
%205 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%206 = inttoptr i64 %204 to i8*
%207 = inttoptr i64 %203 to i8*
%208 = trunc i64 %201 to i32
%209 = trunc i64 %198 to i32
%210 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %205, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_13, i64 0, i64 0), i8* %206, i8* %207, i32 %208, i32 %209)
%211 = add i32 %storemerge422.reload, 1
%212 = load i32, i32* %23, align 4
%213 = zext i32 %212 to i64
%214 = sext i32 %211 to i64
%215 = icmp slt i64 %214, %213
store i64 %214, i64* %.reg2mem37
store i32 %211, i32* %storemerge422.reg2mem
br i1 %215, label LBL_30, label LBL_31
LBL_31:
store i32 ptrtoint (i32* @gv_14 to i32), i32* bitcast (i64* @gv_15 to i32*), align 8
br label LBL_32
LBL_32:
%216 = add i64 %storemerge825.reload, 80
%storemerge8.in = inttoptr i64 %216 to i64*
%storemerge8 = load i64, i64* %storemerge8.in, align 8
%217 = icmp eq i64 %storemerge8, 0
%218 = icmp eq i1 %217, false
store i64 %storemerge8, i64* %storemerge825.reg2mem
store i64 %storemerge8, i64* %storemerge8.lcssa.reg2mem
br i1 %218, label LBL_3, label LBL_33
LBL_33:
%storemerge8.lcssa.reload = load i64, i64* %storemerge8.lcssa.reg2mem
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond32 = icmp eq i64 %indvars.iv.next31, 1024
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
store i64 %storemerge8.lcssa.reload, i64* %rax.1.reg2mem
br i1 %exitcond32, label LBL_34, label LBL_2
LBL_34:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32* %169, { 1, 0 }
uselistorder i64* %106, { 5, 6, 8, 7, 4, 3, 2, 1, 0, 9 }
uselistorder i32 %sv_0.4.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.3, { 2, 0, 1 }
uselistorder i32 %63, { 1, 0 }
uselistorder i32 %60, { 1, 0 }
uselistorder i32* %59, { 1, 0, 2 }
uselistorder i64 %sv_2.1.lcssa.reload, { 3, 1, 0, 2 }
uselistorder i64 %30, { 1, 0, 2, 3 }
uselistorder i32 %21, { 1, 0 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %storemerge825.reload, { 12, 10, 11, 9, 8, 7, 5, 6, 4, 3, 1, 2, 0 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64* %indvars.iv30.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge825.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge716.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.115.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.114.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.113.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem35, { 1, 0, 2 }
uselistorder i32* %storemerge521.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem37, { 2, 0, 1 }
uselistorder i32* %storemerge422.reg2mem, { 2, 0, 1 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 4, 8, 3, 2, 1, 7, 6, 5, 0, 9 }
uselistorder i32 16, { 2, 1, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i64 24, { 0, 2, 1 }
uselistorder i32 0, { 0, 4, 1, 5, 7, 8, 9, 10, 11, 12, 13, 14, 3, 2, 6 }
uselistorder i64 8, { 5, 0, 1, 6, 4, 7, 2, 8, 3 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | module_load_11442 | module_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 1, i64 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %2, i64 %1)
%5 = call i64 @FUNC(i64 2, i64 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %arg4, i64 %2, i64 %1)
%6 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i64 %arg4, i64 %2, i64 %1)
%7 = call i64 @FUNC(i8* bitcast (i8** @gv_4 to i8*), i64 %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0), i64 %arg4, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 1, i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_6, i64 0, i64 0), i64 %arg4, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 0, i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 %2, i64 %1)
%10 = call i64 @FUNC(i64 1, i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_7, i64 0, i64 0), i64 1, i64 %2, i64 %1)
%11 = call i64 @FUNC(i64 2, i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_7, i64 0, i64 0), i64 2, i64 %2, i64 %1)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 0, i64 %2, i64 %1)
%13 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 1, i64 %2, i64 %1)
%14 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_10, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 2, i64 %2, i64 %1)
%15 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0), i64 7, i64 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 3, i64 %1)
%16 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_12, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_2 to i64), i64 3, i64 %1)
%17 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_13, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_2 to i64), i64 3, i64 %1)
%18 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_14, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_2 to i64), i64 3, i64 %1)
%19 = call i64 @FUNC(i64 1, i64 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_15, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_2 to i64), i64 3, i64 %1)
ret i64 0
uselistorder i64 %2, { 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 0 }
uselistorder i64 %1, { 0, 1, 2, 3, 4, 5, 11, 12, 13, 14, 15, 6, 7, 8, 9, 10 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 ptrtoint ([4 x i8]* @gv_2 to i64), { 0, 1, 3, 2 }
uselistorder i64 3, { 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i8*, i64, i64, i64)* @set_string, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder [4 x i8]* @gv_2, { 1, 0 }
uselistorder i64 2, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @set_integer, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 %arg4, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | vtable_is_value_in_text_section_6481 | vtable_is_value_in_text_section | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 -1)
%4 = icmp eq i64* %arg3, null
br i1 %4, label LBL_3, label LBL_2
LBL_2:
store i64 -1, i64* %arg3, align 8
br label LBL_3
LBL_3:
%5 = urem i64 %3, 256
store i64 %5, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | xt_request_find_match_18407 | xt_request_find_match | define i64 @FUNC(i64 %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = urem i64 %arg1, 256
%1 = call i64 @FUNC(i64 %0, i64 %arg2, i8 %arg3)
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = mul i64 %arg1, 8
%6 = and i64 %5, 2040
%7 = add i64 %6, ptrtoint ([3 x i8*]* @gv_0 to i64)
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %arg2)
%11 = call i64 @FUNC(i64 %0, i64 %arg2, i8 %arg3)
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i32 0, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 (i64, i64, i8)* @xt_find_match, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
} | 1 |
BinRealVul | dxa_read_packet_26 | dxa_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i32
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%8 = load i32, i32* %1
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i32, align 4
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_1
LBL_1:
%16 = add i64 %11, 4
%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_2
LBL_2:
%20 = add i64 %11, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_3
LBL_3:
store i32 1, i32* %12, align 4
%24 = add i64 %11, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %5, i64 %27, i64 0)
%29 = add i64 %11, 24
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = load i32, i32* %21, align 4
%33 = sub i32 %31, %32
%34 = xor i32 %32, %31
%35 = xor i32 %33, %31
%36 = and i32 %35, %34
%37 = icmp slt i32 %36, 0
%38 = icmp eq i32 %33, 0
%39 = icmp slt i32 %33, 0
%40 = icmp ne i1 %39, %37
%41 = or i1 %38, %40
%42 = select i1 %41, i32 %31, i32 %32
%43 = call i64 @FUNC(i64 %5, i64 %4, i32 %42)
%44 = trunc i64 %43 to i32
%45 = bitcast i64* %arg2 to i32*
store i32 1, i32* %45, align 4
%46 = icmp eq i32 %42, %44
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %46, label LBL_4, label LBL_25
LBL_4:
%47 = load i32, i32* %21, align 4
%48 = sub i32 %47, %42
store i32 %48, i32* %21, align 4
%49 = call i64 @FUNC(i64 %5)
%50 = trunc i64 %49 to i32
store i32 %50, i32* %25, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_5:
%51 = add i64 %11, 16
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = zext i32 %53 to i64
%55 = call i64 @FUNC(i64 %5, i64 %54, i64 0)
%56 = call i64 @FUNC(i64 %5)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %59, label LBL_25, label LBL_6
LBL_6:
%60 = add i64 %11, 20
%61 = inttoptr i64 %60 to i32*
%62 = bitcast i32* %sv_4 to i64*
store i32 0, i32* %sv_0.07.reg2mem
br label LBL_24
LBL_7:
%63 = call i64 @FUNC(i64 %5, i64* nonnull %62, i64 4)
%64 = load i32, i32* %sv_4, align 4
%65 = icmp eq i32 %64, 1346456899
br i1 %65, label LBL_14, label LBL_8
LBL_8:
%66 = icmp ult i32 %64, 1346456900
br i1 %66, label LBL_9, label LBL_23
LBL_9:
%sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem
switch i32 %64, label LBL_23 [
i32 1280070990, label LBL_10
i32 1296126534, label LBL_15
]
LBL_10:
%67 = add nuw nsw i32 %sv_0.07.reload, 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %4, i64 %68)
%70 = trunc i64 %69 to i32
%71 = icmp slt i32 %70, 0
%72 = icmp eq i1 %71, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %72, label LBL_11, label LBL_25
LBL_11:
%73 = bitcast i64* %arg2 to i32*
store i32 0, i32* %73, align 4
%74 = icmp eq i32 %sv_0.07.reload, 0
%.pre = add i64 %4, 8
%.pre12 = inttoptr i64 %.pre to i64*
store i64 %4, i64* %rdi.0.reg2mem
br i1 %74, label LBL_13, label LBL_12
LBL_12:
%75 = load i64, i64* %.pre12, align 8
%76 = inttoptr i64 %75 to i64*
%77 = call i64* @memcpy(i64* %76, i64* nonnull %sv_3, i32 %sv_0.07.reload)
store i64 %75, i64* %rdi.0.reg2mem
br label LBL_13
LBL_13:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%78 = load i64, i64* %.pre12, align 8
%79 = zext i32 %sv_0.07.reload to i64
%80 = add i64 %78, %79
%81 = load i32, i32* %sv_4, align 4
%82 = inttoptr i64 %80 to i32*
store i32 %81, i32* %82, align 4
%83 = load i32, i32* %61, align 4
%84 = add i32 %83, -1
store i32 %84, i32* %61, align 4
%85 = call i64 @FUNC(i64 %rdi.0.reload)
%86 = trunc i64 %85 to i32
store i32 %86, i32* %52, align 4
store i32 0, i32* %12, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_14:
store i64 1346456899, i64* %sv_3, align 8
%87 = call i64 @FUNC(i64 %5, i64* nonnull %sv_2, i64 768)
%88 = call i64 @FUNC(i64 %5)
%89 = trunc i64 %88 to i32
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
store i32 772, i32* %sv_0.07.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %91, label LBL_25, label LBL_24
LBL_15:
%92 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1, i64 12)
%93 = icmp ult i32 %8, 16777216
br i1 %93, label LBL_17, label LBL_16
LBL_16:
%94 = zext i32 %8 to i64
%95 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %94, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_25
LBL_17:
%96 = add i32 %8, 16
%97 = add i32 %96, %sv_0.07.reload
%98 = zext i32 %97 to i64
%99 = call i64 @FUNC(i64 %4, i64 %98)
%100 = trunc i64 %99 to i32
%101 = icmp slt i32 %100, 0
%102 = icmp eq i1 %101, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %102, label LBL_18, label LBL_25
LBL_18:
%103 = add i64 %4, 8
%104 = inttoptr i64 %103 to i64*
%105 = load i64, i64* %104, align 8
%106 = zext i32 %sv_0.07.reload to i64
%107 = add i64 %105, %106
%108 = load i32, i32* %sv_4, align 4
%109 = sext i32 %108 to i64
%110 = inttoptr i64 %107 to i64*
store i64 %109, i64* %110, align 8
%111 = add i64 %107, 8
%112 = inttoptr i64 %111 to i64*
%113 = zext i32 %8 to i64
%114 = load i64, i64* %104, align 8
%115 = or i32 %sv_0.07.reload, 16
%116 = zext i32 %115 to i64
%117 = add i64 %114, %116
%118 = inttoptr i64 %117 to i64*
%119 = call i64 @FUNC(i64 %4, i64* %118, i64 %113)
%120 = trunc i64 %119 to i32
%121 = icmp eq i32 %8, %120
br i1 %121, label LBL_20, label LBL_19
LBL_19:
%122 = call i64 @FUNC(i64 %4)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_25
LBL_20:
%123 = icmp eq i32 %sv_0.07.reload, 0
store i64 %4, i64* %rdi.1.reg2mem
br i1 %123, label LBL_22, label LBL_21
LBL_21:
%124 = load i64, i64* %104, align 8
%125 = inttoptr i64 %124 to i64*
%126 = call i64* @memcpy(i64* %125, i64* nonnull %sv_3, i32 %sv_0.07.reload)
store i64 %124, i64* %rdi.1.reg2mem
br label LBL_22
LBL_22:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%127 = bitcast i64* %arg2 to i32*
store i32 0, i32* %127, align 4
%128 = load i32, i32* %61, align 4
%129 = add i32 %128, -1
store i32 %129, i32* %61, align 4
%130 = call i64 @FUNC(i64 %rdi.1.reload)
%131 = trunc i64 %130 to i32
store i32 %131, i32* %52, align 4
store i32 0, i32* %12, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_23:
%132 = urem i32 %7, 256
%133 = zext i32 %132 to i64
%134 = urem i32 %6, 256
%135 = zext i32 %134 to i64
%136 = urem i32 %64, 256
%137 = zext i32 %136 to i64
%138 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %137, i64 %135, i64 %133)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_25
LBL_24:
%139 = load i32, i32* %61, align 4
%140 = icmp eq i32 %139, 0
%141 = icmp eq i1 %140, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %141, label LBL_7, label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %107, { 1, 0 }
uselistorder i32 %sv_0.07.reload, { 3, 4, 6, 5, 8, 7, 1, 2, 0 }
uselistorder i32* %61, { 4, 2, 3, 0, 1 }
uselistorder i32 %33, { 1, 2, 0 }
uselistorder i32 %32, { 1, 0, 2 }
uselistorder i32 %31, { 2, 0, 1, 3 }
uselistorder i32* %21, { 1, 0, 2, 3 }
uselistorder i32* %12, { 1, 2, 0, 3 }
uselistorder i32* %sv_4, { 2, 1, 0, 3 }
uselistorder i64* %sv_3, { 0, 2, 1 }
uselistorder i32 %8, { 4, 3, 1, 0, 2 }
uselistorder i64 %5, { 4, 5, 6, 9, 7, 8, 0, 10, 1, 3, 2, 11 }
uselistorder i64 %4, { 0, 4, 5, 6, 7, 1, 2, 8, 3 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.07.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 8, 11, 10, 4, 9, 2, 12, 5, 3, 7, 6 }
uselistorder i32* %1, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64, i64)* @av_new_packet, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @avio_read, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @url_feof, { 1, 0 }
uselistorder i64 (i64)* @avio_tell, { 2, 1, 0 }
uselistorder i64 4294967291, { 3, 0, 1, 2, 4 }
uselistorder i64 (i64, i64, i64)* @avio_seek, { 1, 0 }
uselistorder i1 false, { 3, 1, 4, 2, 0, 5 }
uselistorder i32 0, { 10, 2, 3, 4, 5, 11, 6, 7, 8, 9, 0, 1, 12, 13, 14, 15, 16, 17 }
uselistorder i64 8, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_25, { 0, 6, 7, 8, 3, 9, 1, 10, 4, 2, 11, 5 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | handle_event_14250 | handle_event | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967294
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = load i8, i8* inttoptr (i64 4210725 to i8*), align 1
%3 = icmp eq i8 %2, 1
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = and i64 %arg1, 4294967295
%5 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %4)
store i8 1, i8* bitcast (i64* @gv_1 to i8*), align 8
br label LBL_3
LBL_3:
%6 = urem i64 %arg1, 2
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%9 = call i64 @FUNC(i64 2)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 2, { 1, 0 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 1, { 0, 2, 1 }
} | 1 |
BinRealVul | ieee80211_ifdetach_17444 | ieee80211_ifdetach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 0)
%5 = call i64 @FUNC(i64 %0)
ret i64 %5
uselistorder i64 %0, { 0, 4, 1, 2, 3 }
} | 1 |
BinRealVul | bm_printf_6740 | bm_printf | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i8* %arg4, i8* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = icmp eq i64* %arg1, null
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 20, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%23 = ptrtoint i64* %arg1 to i64
store i32 32, i32* %sv_1, align 4
%24 = ptrtoint i32* %sv_1 to i64
%25 = bitcast i64* %sv_0 to i8*
%26 = call i32 @vsnprintf(i8* nonnull %25, i32 256, i8* %arg4, i64 %24)
%27 = trunc i64 %arg3 to i32
%28 = trunc i64 %arg2 to i32
%29 = call i64 @FUNC(i64 %23, i32 %28, i32 %27, i64* nonnull %sv_0)
ret i64 %29
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | ff_amf_tag_size_8535 | ff_amf_tag_size | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem9 = alloca i64
%.reg2mem7 = alloca i64
%.in.reg2mem = alloca i32
%sv_0.0.ph5.reg2mem = alloca i32
%sv_1.1.ph6.reg2mem = alloca i32
%.reg2mem = alloca i1
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_2 = alloca i64, align 8
store i64 %arg1, i64* %sv_2, align 8
%2 = icmp ugt i64 %arg2, %arg1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_23
LBL_1:
%3 = trunc i64 %1 to i8
%4 = add i64 %arg1, 1
store i64 %4, i64* %sv_2, align 8
%5 = urem i64 %1, 256
store i64 %5, i64* @0, align 8
store i32 1, i32* %sv_1.0.reg2mem
store i1 false, i1* %.reg2mem
store i32 1, i32* %sv_1.1.ph6.reg2mem
store i32 -1, i32* %sv_0.0.ph5.reg2mem
store i64 9, i64* %rax.0.reg2mem
switch i8 %3, label LBL_22 [
i8 0, label LBL_23
i8 1, label LBL_2
i8 2, label LBL_3
i8 3, label LBL_4
i8 5, label LBL_5
i8 8, label LBL_6
i8 10, label LBL_7
i8 11, label LBL_8
i8 12, label LBL_10
i8 13, label LBL_21
]
LBL_2:
store i64 2, i64* %rax.0.reg2mem
br label LBL_23
LBL_3:
%6 = inttoptr i64 %4 to i16*
%7 = load i16, i16* %6, align 2
%8 = zext i16 %7 to i64
%9 = add nuw nsw i64 %8, 3
store i64 %9, i64* %rax.0.reg2mem
br label LBL_23
LBL_4:
%10 = inttoptr i64 %4 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i32 %11, 5
%13 = zext i32 %12 to i64
store i64 %13, i64* %rax.0.reg2mem
br label LBL_23
LBL_5:
store i64 1, i64* %rax.0.reg2mem
br label LBL_23
LBL_6:
store i64 11, i64* %rax.0.reg2mem
br label LBL_23
LBL_7:
store i32 0, i32* %sv_1.0.reg2mem
br label LBL_8
LBL_8:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%14 = call i64 @FUNC(i64* nonnull %sv_2)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i8 %3, 10
%18 = icmp eq i1 %17, %16
store i1 %17, i1* %.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.ph6.reg2mem
store i32 %15, i32* %sv_0.0.ph5.reg2mem
br i1 %18, label LBL_8.LBL_20.loopexit_crit_edge, label LBL_10
LBL_9:
%.pre3.pre = load i64, i64* %sv_2, align 8
store i64 %.pre3.pre, i64* %.reg2mem9
br label LBL_20
LBL_10:
%sv_0.0.ph5.reload = load i32, i32* %sv_0.0.ph5.reg2mem
%sv_1.1.ph6.reload = load i32, i32* %sv_1.1.ph6.reg2mem
%.reload = load i1, i1* %.reg2mem
%19 = icmp eq i32 %sv_1.1.ph6.reload, 0
store i32 %sv_0.0.ph5.reload, i32* %.in.reg2mem
br label LBL_11
LBL_11:
%.in.reload = load i32, i32* %.in.reg2mem
br i1 %19, label LBL_11.LBL_17_crit_edge, label LBL_13
LBL_12:
%.pre = load i64, i64* %sv_2, align 8
store i64 %.pre, i64* %.reg2mem7
br label LBL_17
LBL_13:
%20 = call i64 @FUNC(i64* nonnull %sv_2)
%21 = trunc i64 %20 to i32
%22 = urem i32 %21, 65536
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_15, label LBL_14
LBL_14:
%25 = load i64, i64* %sv_2, align 8
%26 = add i64 %25, 1
store i64 %26, i64* %sv_2, align 8
store i64 %26, i64* %.reg2mem9
br label LBL_20
LBL_15:
%27 = zext i32 %22 to i64
%28 = load i64, i64* %sv_2, align 8
%29 = sub i64 %arg2, %28
%30 = icmp sgt i64 %29, %27
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %30, label LBL_16, label LBL_23
LBL_16:
%31 = add i64 %28, %27
store i64 %31, i64* %sv_2, align 8
store i64 %31, i64* %.reg2mem7
br label LBL_17
LBL_17:
%.reload8 = load i64, i64* %.reg2mem7
%32 = call i64 @FUNC(i64 %.reload8, i64 %arg2)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_23, label LBL_18
LBL_18:
%sext = mul i64 %32, 4294967296
%35 = ashr exact i64 %sext, 32
%36 = load i64, i64* %sv_2, align 8
%37 = sub i64 %arg2, %36
%38 = icmp sgt i64 %37, %35
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %38, label LBL_19, label LBL_23
LBL_19:
%39 = add i32 %.in.reload, -1
%40 = add i64 %36, %35
store i64 %40, i64* %sv_2, align 8
%41 = icmp eq i32 %39, 0
%42 = icmp eq i1 %.reload, %41
store i32 %39, i32* %.in.reg2mem
store i64 %40, i64* %.reg2mem9
br i1 %42, label LBL_20, label LBL_11
LBL_20:
%.reload10 = load i64, i64* %.reg2mem9
%43 = sub i64 %.reload10, %arg1
store i64 %43, i64* %rax.0.reg2mem
br label LBL_23
LBL_21:
store i64 1, i64* %rax.0.reg2mem
br label LBL_23
LBL_22:
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %22, { 1, 0 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i8 %3, { 1, 0 }
uselistorder i64* %sv_2, { 4, 5, 6, 7, 8, 9, 2, 1, 0, 3, 10, 11 }
uselistorder i64 %1, { 1, 0 }
uselistorder i1* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.ph6.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.ph5.reg2mem, { 0, 2, 1 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem9, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 13, 12, 11, 2, 1, 3, 10, 9, 8, 7, 6, 4, 5 }
uselistorder i32 0, { 5, 2, 3, 4, 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 256, { 2, 0, 1 }
uselistorder i64 1, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %arg2, { 1, 2, 0, 3 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_23, { 12, 5, 6, 1, 0, 2, 7, 8, 9, 10, 11, 3, 4 }
uselistorder label LBL_20, { 0, 2, 1 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | nbd_client_co_pdiscard_11613 | nbd_client_co_pdiscard | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
store i32 1, i32* %sv_1, align 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_5
LBL_1:
%7 = call i64 @FUNC(i64 %1, i32* nonnull %sv_1)
%8 = call i64 @FUNC(i64 %0, i32* nonnull %sv_1, i64 0)
%9 = icmp slt i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = trunc i64 %8 to i32
%12 = sub i32 0, %11
store i32 %12, i32* %sv_0, align 4
br label LBL_4
LBL_3:
%13 = call i64 @FUNC(i64 %1, i32* nonnull %sv_1, i32* nonnull %sv_0, i64 0)
br label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %1, i32* nonnull %sv_1)
%15 = load i32, i32* %sv_0, align 4
%16 = sub i32 0, %15
%17 = zext i32 %16 to i64
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | runstate_needs_reset_2793 | runstate_needs_reset | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 2)
%5 = trunc i64 %4 to i8
%6 = icmp ne i8 %5, 0
%spec.select = zext i1 %6 to i64
ret i64 %spec.select
LBL_2:
ret i64 1
uselistorder i64 (i64)* @runstate_check, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
} | 0 |
BinRealVul | vapic_class_init_15357 | vapic_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198662, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 4198669, i64* %7, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | smc91c111_can_receive_14477 | smc91c111_can_receive | 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 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 4
%5 = icmp eq i32 %4, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = add i64 %1, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 255
%10 = icmp eq i1 %9, false
%. = zext i1 %10 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | qmp_input_visitor_new_1278 | qmp_input_visitor_new | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg2 to i8
%1 = call i64 @FUNC(i64 144)
%2 = inttoptr i64 %1 to i32*
store i32 1, i32* %2, align 4
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
store i64 4198710, i64* %4, align 8
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
store i64 4198717, i64* %6, align 8
%7 = add i64 %1, 24
%8 = inttoptr i64 %7 to i64*
store i64 4198724, i64* %8, align 8
%9 = add i64 %1, 32
%10 = inttoptr i64 %9 to i64*
store i64 4198731, i64* %10, align 8
%11 = add i64 %1, 40
%12 = inttoptr i64 %11 to i64*
store i64 4198738, i64* %12, align 8
%13 = add i64 %1, 48
%14 = inttoptr i64 %13 to i64*
store i64 4198724, i64* %14, align 8
%15 = add i64 %1, 56
%16 = inttoptr i64 %15 to i64*
store i64 4198745, i64* %16, align 8
%17 = add i64 %1, 64
%18 = inttoptr i64 %17 to i64*
store i64 4198752, i64* %18, align 8
%19 = add i64 %1, 72
%20 = inttoptr i64 %19 to i64*
store i64 4198759, i64* %20, align 8
%21 = add i64 %1, 80
%22 = inttoptr i64 %21 to i64*
store i64 4198766, i64* %22, align 8
%23 = add i64 %1, 88
%24 = inttoptr i64 %23 to i64*
store i64 4198773, i64* %24, align 8
%25 = add i64 %1, 96
%26 = inttoptr i64 %25 to i64*
store i64 4198780, i64* %26, align 8
%27 = add i64 %1, 104
%28 = inttoptr i64 %27 to i64*
store i64 4198787, i64* %28, align 8
%29 = add i64 %1, 112
%30 = inttoptr i64 %29 to i64*
store i64 4198794, i64* %30, align 8
%31 = add i64 %1, 120
%32 = inttoptr i64 %31 to i64*
store i64 4198801, i64* %32, align 8
%33 = add i64 %1, 128
%34 = inttoptr i64 %33 to i8*
store i8 %0, i8* %34, align 1
%35 = add i64 %1, 136
%36 = inttoptr i64 %35 to i64*
store i64 %arg1, i64* %36, align 8
%37 = call i64 @FUNC(i64 %arg1)
ret i64 %1
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | qcow2_truncate_2679 | qcow2_truncate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%2 = urem i64 %arg2, 512
%3 = icmp eq i64 %2, 0
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
store i64 4294967201, i64* %rax.0.shrunk.reg2mem
br i1 %5, label LBL_2, label LBL_6
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = mul i64 %9, 512
%11 = icmp sgt i64 %10, %arg2
store i64 4294967201, i64* %rax.0.shrunk.reg2mem
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %6, i64 %arg2)
%13 = and i64 %12, 4294967295
%14 = call i64 @FUNC(i64 %6, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %14, i64* %rax.0.shrunk.reg2mem
br i1 %17, label LBL_4, label LBL_6
LBL_4:
%18 = call i64 @FUNC(i64 %arg2)
store i64 %18, i64* %sv_0, align 8
%19 = add i64 %6, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21, i64 0, i64* nonnull %sv_0, i64 8)
%23 = trunc i64 %22 to i32
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %rax.0.shrunk.reg2mem
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%26 = trunc i64 %12 to i32
%27 = add i64 %6, 4
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%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 %12, { 1, 0 }
uselistorder i64 %6, { 0, 1, 2, 4, 3 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i64 %arg2, { 1, 3, 2, 0, 4 }
uselistorder label LBL_6, { 5, 0, 1, 2, 3, 4 }
} | 0 |
BinRealVul | spapr_get_cpu_core_type_1228 | spapr_get_cpu_core_type | 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 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 %arg1, i64* nonnull @gv_0, i64 2)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %7)
%13 = load i64, i64* %5, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %14)
store i64 %16, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = call i64 @FUNC(i64 %4)
ret i64 %sv_0.0.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | smb2_echo_callback_9440 | smb2_echo_callback | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = add i64 %arg1, 16
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %arg1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = zext i16 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = urem i64 %11, 65536
store i64 %12, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = call i64 @FUNC(i64 %arg1)
%14 = call i64 @FUNC(i64 %arg1, i64 %sv_0.0.reload, i64 0)
ret i64 %14
uselistorder i64 %arg1, { 0, 1, 3, 2 }
} | 0 |
BinRealVul | put_cmsg_8052 | put_cmsg | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i16, align 2
%sext5 = mul i64 %arg4, 4294967296
%1 = ashr exact i64 %sext5, 32
%2 = add i64 %0, 12
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg5 to i64
%8 = trunc i64 %1 to i32
%9 = trunc i64 %arg3 to i32
%10 = trunc i64 %arg2 to i32
%11 = call i64 @FUNC(i64 %0, i32 %10, i32 %9, i32 %8, i64 %7)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%12 = icmp eq i64* %arg1, null
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %15, 12
br i1 %16, label LBL_4, label LBL_5
LBL_4:
%17 = or i32 %4, 2
store i32 %17, i32* %3, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%18 = trunc i64 %arg4 to i32
%19 = add i32 %18, 12
%20 = zext i32 %15 to i64
%21 = sext i32 %19 to i64
%22 = icmp sgt i64 %21, %20
store i32 %19, i32* %sv_0.0.reg2mem
br i1 %22, label LBL_6, label LBL_7
LBL_6:
%23 = or i32 %4, 2
store i32 %23, i32* %3, align 4
%24 = load i32, i32* %14, align 4
store i32 %24, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = trunc i32 %sv_0.0.reload to i16
store i16 %25, i16* %sv_1, align 2
%26 = call i64 @FUNC(i64 %0, i16* nonnull %sv_1, i64 12)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 4294967282, i64* %rax.0.reg2mem
br i1 %29, label LBL_10, label LBL_8
LBL_8:
%30 = sext i32 %sv_0.0.reload to i64
%31 = add nsw i64 %30, -12
%32 = call i64 @FUNC(i64 %0)
%33 = bitcast i64* %arg5 to i16*
%34 = call i64 @FUNC(i64 %32, i16* %33, i64 %31)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 4294967282, i64* %rax.0.reg2mem
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = trunc i64 %1 to i32
%39 = add i32 %38, 12
%40 = load i32, i32* %14, align 4
%41 = zext i32 %40 to i64
%42 = sext i32 %39 to i64
%43 = icmp sgt i64 %42, %41
%spec.select = select i1 %43, i32 %40, i32 %39
%44 = sext i32 %spec.select to i64
%45 = add i64 %32, %44
store i64 %45, i64* %arg1, align 8
%46 = load i32, i32* %14, align 4
%47 = sub i32 %46, %spec.select
store i32 %47, i32* %14, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32* %14, { 1, 0, 2, 3, 4 }
uselistorder i32 %4, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 1, 2, 3, 0, 4 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 5, 4 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64 (i64, i16*, i64)* @copy_to_user, { 1, 0 }
uselistorder i32 12, { 1, 2, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder label LBL_10, { 0, 2, 1, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | remove_uuid_17708 | remove_uuid | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i16 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_1.14.reg2mem = alloca i32
%storemerge6.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = sext i16 %arg4 to i64
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
%7 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %4, i64 %3, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %5)
%9 = add i64 %5, 260
%10 = call i64 @FUNC(i64 0, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = add i64 %5, 256
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = call i64 @FUNC(i64 %6, i32 %15, i64 1, i64 2)
store i64 %16, i64* %sv_0.0.reg2mem
br label LBL_16
LBL_2:
%17 = call i32 @memcmp(i64* %arg3, i64* nonnull %sv_2, i32 16)
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = call i64 @FUNC(i64 %5)
%21 = call i64 @FUNC(i64 %5)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_11, label LBL_4
LBL_4:
%24 = add i64 %5, 264
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %5, 256
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %26 to i64
%31 = call i64 @FUNC(i64 %6, i32 %29, i64 1, i64 0, i64 %30, i64 3)
store i64 %31, i64* %sv_0.0.reg2mem
br label LBL_16
LBL_5:
%32 = add i64 %5, 272
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, %32
%36 = icmp eq i1 %35, false
store i64 %34, i64* %storemerge6.in.in.reg2mem
store i32 0, i32* %sv_1.14.reg2mem
br i1 %36, label LBL_6, label LBL_10
LBL_6:
%sv_1.14.reload = load i32, i32* %sv_1.14.reg2mem
%storemerge6.in.in.reload = load i64, i64* %storemerge6.in.in.reg2mem
%storemerge6.in = inttoptr i64 %storemerge6.in.in.reload to i64*
%storemerge6 = load i64, i64* %storemerge6.in, align 8
%37 = add i64 %storemerge6.in.in.reload, -16
%38 = inttoptr i64 %37 to i64*
%39 = call i32 @memcmp(i64* %38, i64* %arg3, i32 16)
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
store i32 %sv_1.14.reload, i32* %sv_1.0.reg2mem
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = call i64 @FUNC(i64 %storemerge6.in.in.reload)
%43 = add i32 %sv_1.14.reload, 1
store i32 %43, i32* %sv_1.0.reg2mem
br label LBL_8
LBL_8:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%44 = icmp eq i64 %storemerge6, %32
%45 = icmp eq i1 %44, false
store i64 %storemerge6, i64* %storemerge6.in.in.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.14.reg2mem
br i1 %45, label LBL_6, label LBL_9
LBL_9:
%46 = icmp eq i32 %sv_1.0.reload, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_11, label LBL_10
LBL_10:
%48 = add i64 %5, 256
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = call i64 @FUNC(i64 %6, i32 %50, i64 1, i64 3)
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_16
LBL_11:
%52 = call i64 @FUNC(i64 %5)
%53 = trunc i64 %52 to i32
%54 = icmp slt i32 %53, 0
store i64 %52, i64* %sv_0.0.reg2mem
br i1 %54, label LBL_16, label LBL_12
LBL_12:
%55 = call i64 @FUNC(i64 %5)
%56 = trunc i64 %55 to i32
%57 = icmp slt i32 %56, 0
store i64 %55, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_16, label LBL_13
LBL_13:
%58 = call i64 @FUNC(i64 0, i64 %9)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_15, label LBL_14
LBL_14:
%62 = add i64 %5, 264
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %5, 256
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = zext i32 %64 to i64
%69 = call i64 @FUNC(i64 %6, i32 %67, i64 1, i64 0, i64 %68, i64 3)
store i64 %69, i64* %sv_0.0.reg2mem
br label LBL_16
LBL_15:
%70 = zext i16 %arg4 to i64
%71 = call i64 @FUNC(i64 %6, i64 1, i64 %5, i64 %4, i64 %70)
%72 = icmp eq i64 %71, 0
%73 = icmp eq i1 %72, false
%spec.select = select i1 %73, i64 %55, i64 4294967284
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_16
LBL_16:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%74 = call i64 @FUNC(i64 %5)
%75 = and i64 %sv_0.0.reload, 4294967295
ret i64 %75
uselistorder i64 %55, { 1, 0, 2 }
uselistorder i64 %storemerge6.in.in.reload, { 2, 1, 0 }
uselistorder i32 %sv_1.14.reload, { 1, 0 }
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i64 %6, { 4, 3, 2, 1, 0 }
uselistorder i64 %5, { 9, 7, 6, 5, 8, 10, 11, 12, 2, 1, 4, 3, 0, 13, 14, 15 }
uselistorder i64* %storemerge6.in.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 5, 6, 7, 4, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i32, i64, i64, i64, i64)* @cmd_complete, { 1, 0 }
uselistorder i1 false, { 1, 2, 4, 5, 3, 0, 6, 7 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 (i64, i32, i64, i64)* @cmd_status, { 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 1, 0 }
uselistorder label LBL_16, { 0, 3, 1, 2, 4, 5, 6 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | div32_3070 | div32 | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = zext i32 %arg3 to i64
%1 = udiv i64 %arg2, %0
store i64 %1, i64* %arg1, align 8
%2 = urem i64 %arg2, %0
ret i64 %2
} | 0 |
BinRealVul | diff_bytes_c_16960 | diff_bytes_c | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %0, 8
%4 = icmp eq i64 %3, 0
%5 = sext i32 %arg4 to i64
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%6 = icmp sgt i32 %arg4, 7
store i64 7, i64* %.reg2mem
store i64 0, i64* %storemerge5.reg2mem
store i64 0, i64* %sv_0.0.ph.reg2mem
br i1 %6, label LBL_3, label LBL_5
LBL_2:
%7 = add nsw i64 %5, -8
store i64 0, i64* %storemerge14.reg2mem
br label LBL_4
LBL_3:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = add i64 %storemerge5.reload, %1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = add i64 %storemerge5.reload, %0
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = add i64 %storemerge5.reload, %2
%15 = sub i8 %10, %13
%16 = inttoptr i64 %14 to i8*
store i8 %15, i8* %16, align 1
%17 = or i64 %storemerge5.reload, 1
%18 = add i64 %17, %1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = add i64 %17, %0
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = add i64 %17, %2
%25 = sub i8 %20, %23
%26 = inttoptr i64 %24 to i8*
store i8 %25, i8* %26, align 1
%27 = or i64 %storemerge5.reload, 2
%28 = add i64 %27, %1
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = add i64 %27, %0
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = add i64 %27, %2
%35 = sub i8 %30, %33
%36 = inttoptr i64 %34 to i8*
store i8 %35, i8* %36, align 1
%37 = or i64 %storemerge5.reload, 3
%38 = add i64 %37, %1
%39 = inttoptr i64 %38 to i8*
%40 = load i8, i8* %39, align 1
%41 = add i64 %37, %0
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = add i64 %37, %2
%45 = sub i8 %40, %43
%46 = inttoptr i64 %44 to i8*
store i8 %45, i8* %46, align 1
%47 = or i64 %storemerge5.reload, 4
%48 = add i64 %47, %1
%49 = inttoptr i64 %48 to i8*
%50 = load i8, i8* %49, align 1
%51 = add i64 %47, %0
%52 = inttoptr i64 %51 to i8*
%53 = load i8, i8* %52, align 1
%54 = add i64 %47, %2
%55 = sub i8 %50, %53
%56 = inttoptr i64 %54 to i8*
store i8 %55, i8* %56, align 1
%57 = or i64 %storemerge5.reload, 5
%58 = add i64 %57, %1
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = add i64 %57, %0
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = add i64 %57, %2
%65 = sub i8 %60, %63
%66 = inttoptr i64 %64 to i8*
store i8 %65, i8* %66, align 1
%67 = or i64 %storemerge5.reload, 6
%68 = add i64 %67, %1
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = add i64 %67, %0
%72 = inttoptr i64 %71 to i8*
%73 = load i8, i8* %72, align 1
%74 = add i64 %67, %2
%75 = sub i8 %70, %73
%76 = inttoptr i64 %74 to i8*
store i8 %75, i8* %76, align 1
%77 = add i64 %.reload, %1
%78 = inttoptr i64 %77 to i8*
%79 = load i8, i8* %78, align 1
%80 = add i64 %.reload, %0
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = add i64 %.reload, %2
%84 = sub i8 %79, %82
%85 = inttoptr i64 %83 to i8*
store i8 %84, i8* %85, align 1
%86 = add nuw nsw i64 %storemerge5.reload, 8
%87 = or i64 %86, 7
%88 = icmp slt i64 %87, %5
store i64 %87, i64* %.reg2mem
store i64 %86, i64* %storemerge5.reg2mem
store i64 %86, i64* %sv_0.0.ph.reg2mem
br i1 %88, label LBL_3, label LBL_5
LBL_4:
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%89 = add i64 %storemerge14.reload, %1
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
%92 = add i64 %storemerge14.reload, %0
%93 = inttoptr i64 %92 to i64*
%94 = load i64, i64* %93, align 8
%95 = or i64 %91, 128
%96 = urem i64 %94, 128
%97 = sub i64 %95, %96
%98 = xor i64 %94, %91
%99 = and i64 %98, 128
%100 = xor i64 %99, 128
%101 = add i64 %storemerge14.reload, %2
%102 = xor i64 %100, %97
%103 = inttoptr i64 %101 to i64*
store i64 %102, i64* %103, align 8
%104 = add i64 %storemerge14.reload, 8
%105 = icmp ult i64 %7, %104
%106 = icmp eq i1 %105, false
store i64 %104, i64* %storemerge14.reg2mem
store i64 %104, i64* %sv_0.0.ph.reg2mem
br i1 %106, label LBL_4, label LBL_5
LBL_5:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%107 = icmp slt i64 %sv_0.0.ph.reload, %5
store i64 %sv_0.0.ph.reload, i64* %sv_0.03.reg2mem
br i1 %107, label LBL_6, label LBL_7
LBL_6:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%108 = add i64 %sv_0.03.reload, %1
%109 = inttoptr i64 %108 to i8*
%110 = load i8, i8* %109, align 1
%111 = add i64 %sv_0.03.reload, %0
%112 = inttoptr i64 %111 to i8*
%113 = load i8, i8* %112, align 1
%114 = add i64 %sv_0.03.reload, %2
%115 = sub i8 %110, %113
%116 = inttoptr i64 %114 to i8*
store i8 %115, i8* %116, align 1
%117 = add nsw i64 %sv_0.03.reload, 1
%exitcond = icmp eq i64 %117, %5
store i64 %117, i64* %sv_0.03.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
ret i64 %5
uselistorder i64 %sv_0.03.reload, { 0, 3, 2, 1 }
uselistorder i64 %94, { 1, 0 }
uselistorder i64 %storemerge14.reload, { 0, 3, 2, 1 }
uselistorder i64 %.reload, { 2, 1, 0 }
uselistorder i64 %storemerge5.reload, { 6, 0, 1, 2, 3, 4, 5, 9, 8, 7 }
uselistorder i64 %5, { 1, 0, 2, 3, 4 }
uselistorder i64 %0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64 128, { 2, 3, 0, 1 }
uselistorder i64 7, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | encode_createmode_8706 | encode_createmode | 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* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = urem i64 %1, 2
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %3, i64 %13, i32 %9)
store i64 %14, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%15 = add i64 %2, 8
%16 = call i64 @FUNC(i64 %3, i64 %15)
store i64 %16, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | fmt_mtm_load_song_7820 | fmt_mtm_load_song | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%rsi.137.reg2mem = alloca i64
%r8.138.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge2043.reg2mem = alloca i32
%.reg2mem88 = alloca i64
%.reg2mem86 = alloca i32
%storemerge22.in.reg2mem = alloca i64
%sv_0.146.reg2mem = alloca i32
%sv_1.0.in47.reg2mem = alloca i64
%sv_2.0.in48.reg2mem = alloca i64
%storemerge2645.reg2mem = alloca i32
%.reg2mem84 = alloca i64
%indvars.iv65.reg2mem = alloca i64
%storemerge2151.reg2mem = alloca i32
%.reg2mem82 = alloca i64
%.reg2mem80 = alloca i32
%storemerge2853.reg2mem = alloca i32
%.reg2mem78 = alloca i64
%sv_3.3.lcssa.reg2mem = alloca i32
%sv_3.2.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_3.355.reg2mem = alloca i32
%sv_0.056.reg2mem = alloca i32
%storemerge29.in57.reg2mem = alloca i64
%.reg2mem = alloca i64
%indvars.iv67.reg2mem = alloca i64
%indvars.iv69.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_4 = alloca i32, align 4
%sv_5 = alloca i32, align 4
%sv_6 = alloca i64, align 8
%sv_7 = alloca i32, align 4
%sv_8 = alloca i32, align 4
%sv_9 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_9, i64 3)
%4 = call i32 @memcmp(i64* nonnull %sv_9, i64* bitcast ([4 x i8]* @gv_0 to i64*), i32 3)
%5 = icmp eq i32 %4, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_51
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %2)
%8 = trunc i64 %7 to i32
%9 = urem i64 %7, 16
%10 = ashr i32 %8, 4
%11 = zext i32 %10 to i64
%12 = add i64 %6, 11436
%13 = inttoptr i64 %12 to i8*
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %11, i64 %9)
%15 = add i64 %6, 11468
%16 = inttoptr i64 %15 to i64*
%17 = call i64 @FUNC(i64 %2, i64* %16, i64 20)
%18 = add i64 %6, 11488
%19 = inttoptr i64 %18 to i8*
store i8 0, i8* %19, align 1
%20 = bitcast i32* %sv_8 to i64*
%21 = call i64 @FUNC(i64 %2, i64* nonnull %20, i64 2)
%22 = load i32, i32* %sv_8, align 4
%23 = urem i32 %22, 65536
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = trunc i64 %25 to i32
%sext = mul i32 %26, 65536
%27 = ashr exact i32 %sext, 16
store i32 %27, i32* %sv_8, align 4
%28 = call i64 @FUNC(i64 %2)
%29 = call i64 @FUNC(i64 %2)
%30 = trunc i64 %29 to i32
%31 = mul i32 %30, 65536
%32 = bitcast i32* %sv_7 to i64*
%33 = call i64 @FUNC(i64 %2, i64* nonnull %32, i64 2)
%34 = load i32, i32* %sv_7, align 4
%35 = urem i32 %34, 65536
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%sext11 = mul i32 %38, 65536
%39 = ashr exact i32 %sext11, 16
store i32 %39, i32* %sv_7, align 4
%40 = call i64 @FUNC(i64 %2)
%41 = call i64 @FUNC(i64 %2)
%42 = call i64 @FUNC(i64 %2)
%43 = trunc i64 %42 to i32
%44 = add i32 %43, -64
%45 = sub i32 63, %43
%46 = and i32 %45, %43
%47 = icmp eq i32 %44, 0
%48 = icmp slt i32 %44, 0
%49 = icmp eq i1 %47, false
%50 = call i64 @FUNC(i64 %2)
store i64 0, i64* %indvars.iv69.reg2mem
br label LBL_2
LBL_2:
%indvars.iv69.reload = load i64, i64* %indvars.iv69.reg2mem
%51 = call i64 @FUNC(i64 %2)
%52 = trunc i64 %51 to i16
%53 = mul i16 %52, 4
%54 = and i16 %53, 60
%55 = mul i64 %indvars.iv69.reload, 4
%56 = add i64 %55, %6
%57 = inttoptr i64 %56 to i16*
store i16 %54, i16* %57, align 2
%indvars.iv.next70 = add nuw nsw i64 %indvars.iv69.reload, 1
%exitcond71 = icmp eq i64 %indvars.iv.next70, 32
store i64 %indvars.iv.next70, i64* %indvars.iv69.reg2mem
br i1 %exitcond71, label LBL_3, label LBL_2
LBL_3:
%58 = trunc i64 %50 to i16
%59 = icmp slt i16 %58, 32
br i1 %59, label LBL_4, label LBL_6
LBL_4:
%60 = add i64 %6, 2
%sext72 = mul i64 %50, 281474976710656
%61 = ashr exact i64 %sext72, 48
store i64 %61, i64* %indvars.iv67.reg2mem
br label LBL_5
LBL_5:
%indvars.iv67.reload = load i64, i64* %indvars.iv67.reg2mem
%62 = mul i64 %indvars.iv67.reload, 4
%63 = add i64 %60, %62
%64 = inttoptr i64 %63 to i8*
store i8 1, i8* %64, align 1
%indvars.iv.next68 = add nsw i64 %indvars.iv67.reload, 1
%exitcond77 = icmp eq i64 %indvars.iv.next68, 32
store i64 %indvars.iv.next68, i64* %indvars.iv67.reg2mem
br i1 %exitcond77, label LBL_6, label LBL_5
LBL_6:
%65 = icmp eq i32 %43, 64
%spec.select = select i1 %65, i32 0, i32 64
%sext33 = mul i64 %40, 281474976710656
%66 = ashr exact i64 %sext33, 48
%67 = icmp slt i64 %sext33, 281474976710656
store i32 %spec.select, i32* %sv_3.3.lcssa.reg2mem
br i1 %67, label LBL_17, label LBL_7
LBL_7:
%68 = add i64 %6, 172
%69 = bitcast i64* %sv_6 to i8*
%70 = bitcast i32* %sv_5 to i64*
store i64 1, i64* %.reg2mem
store i64 %68, i64* %storemerge29.in57.reg2mem
store i32 1, i32* %sv_0.056.reg2mem
store i32 %spec.select, i32* %sv_3.355.reg2mem
br label LBL_8
LBL_8:
%sv_3.355.reload = load i32, i32* %sv_3.355.reg2mem
%sv_0.056.reload = load i32, i32* %sv_0.056.reg2mem
%storemerge29.in57.reload = load i64, i64* %storemerge29.in57.reg2mem
%71 = icmp slt i32 %sv_0.056.reload, 257
br i1 %71, label LBL_10, label LBL_9
LBL_9:
%72 = call i64 @FUNC(i64 %2, i64 37, i64 1)
store i32 %sv_3.355.reload, i32* %sv_3.2.reg2mem
br label LBL_16
LBL_10:
%.reload = load i64, i64* %.reg2mem
%storemerge2960 = inttoptr i64 %storemerge29.in57.reload to i8*
%73 = call i64 @FUNC(i64 %2, i64* nonnull %sv_6, i64 22)
%74 = call i8* @strcpy(i8* %storemerge2960, i8* nonnull %69)
%75 = call i64 @FUNC(i64 %2, i64* nonnull %70, i64 4)
%76 = load i32, i32* %sv_5, align 4
%77 = zext i32 %76 to i64
%78 = call i64 @FUNC(i64 %77)
%79 = trunc i64 %78 to i32
%80 = add i64 %storemerge29.in57.reload, 24
%81 = inttoptr i64 %80 to i32*
store i32 %79, i32* %81, align 4
%82 = call i64 @FUNC(i64 %2, i64* nonnull %70, i64 4)
%83 = load i32, i32* %sv_5, align 4
%84 = zext i32 %83 to i64
%85 = call i64 @FUNC(i64 %84)
%86 = trunc i64 %85 to i32
%87 = add i64 %storemerge29.in57.reload, 28
%88 = inttoptr i64 %87 to i32*
store i32 %86, i32* %88, align 4
%89 = call i64 @FUNC(i64 %2, i64* nonnull %70, i64 4)
%90 = load i32, i32* %sv_5, align 4
%91 = zext i32 %90 to i64
%92 = call i64 @FUNC(i64 %91)
%93 = trunc i64 %92 to i32
%94 = add i64 %storemerge29.in57.reload, 32
%95 = inttoptr i64 %94 to i32*
store i32 %93, i32* %95, align 4
%96 = load i32, i32* %88, align 4
%97 = sub i32 %93, %96
%98 = icmp ult i32 %97, 3
br i1 %98, label LBL_12, label LBL_11
LBL_11:
%99 = add i64 %storemerge29.in57.reload, 38
%100 = inttoptr i64 %99 to i8*
%101 = load i8, i8* %100, align 1
%102 = or i8 %101, 2
store i8 %102, i8* %100, align 1
br label LBL_13
LBL_12:
store i32 0, i32* %88, align 4
store i32 0, i32* %95, align 4
br label LBL_13
LBL_13:
%103 = call i64 @FUNC(i64 %2)
%104 = and i64 %103, 4294967295
%105 = call i64 @FUNC(i64 %104)
%106 = mul nsw i64 %.reload, 44
%107 = add i64 %106, %6
%108 = add i64 %107, 167
%109 = trunc i64 %105 to i8
%110 = inttoptr i64 %108 to i8*
store i8 %109, i8* %110, align 1
%111 = call i64 @FUNC(i64 %2)
%112 = trunc i64 %111 to i8
%113 = add i64 %storemerge29.in57.reload, 36
%114 = inttoptr i64 %113 to i8*
%115 = mul i8 %112, 4
store i8 %115, i8* %114, align 1
%116 = add i64 %storemerge29.in57.reload, 37
%117 = inttoptr i64 %116 to i8*
store i8 64, i8* %117, align 1
%118 = call i64 @FUNC(i64 %2)
%119 = urem i64 %118, 2
%120 = icmp eq i64 %119, 0
store i32 %sv_3.355.reload, i32* %sv_3.1.reg2mem
br i1 %120, label LBL_15, label LBL_14
LBL_14:
%121 = or i32 %sv_3.355.reload, 16
%122 = add i64 %storemerge29.in57.reload, 38
%123 = inttoptr i64 %122 to i8*
%124 = load i8, i8* %123, align 1
%125 = or i8 %124, 4
store i8 %125, i8* %123, align 1
%126 = load i32, i32* %81, align 4
%127 = udiv i32 %126, 2
store i32 %127, i32* %81, align 4
%128 = load i32, i32* %88, align 4
%129 = udiv i32 %128, 2
store i32 %129, i32* %88, align 4
%130 = load i32, i32* %95, align 4
%131 = udiv i32 %130, 2
store i32 %131, i32* %95, align 4
store i32 %121, i32* %sv_3.1.reg2mem
br label LBL_15
LBL_15:
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%132 = add i64 %107, 168
%133 = inttoptr i64 %132 to i8*
store i8 0, i8* %133, align 1
%134 = add i64 %107, 169
%135 = inttoptr i64 %134 to i8*
store i8 0, i8* %135, align 1
%136 = add i64 %107, 170
%137 = inttoptr i64 %136 to i8*
store i8 0, i8* %137, align 1
%138 = add i64 %107, 171
%139 = inttoptr i64 %138 to i8*
store i8 0, i8* %139, align 1
store i32 %sv_3.1.reload, i32* %sv_3.2.reg2mem
br label LBL_16
LBL_16:
%sv_3.2.reload = load i32, i32* %sv_3.2.reg2mem
%140 = add i32 %sv_0.056.reload, 1
%141 = add i64 %storemerge29.in57.reload, 44
%142 = sext i32 %140 to i64
%143 = icmp slt i64 %66, %142
store i64 %142, i64* %.reg2mem
store i64 %141, i64* %storemerge29.in57.reg2mem
store i32 %140, i32* %sv_0.056.reg2mem
store i32 %sv_3.2.reload, i32* %sv_3.355.reg2mem
store i32 %sv_3.2.reload, i32* %sv_3.3.lcssa.reg2mem
br i1 %143, label LBL_17, label LBL_8
LBL_17:
%sext10 = add i32 %31, 65536
%144 = icmp slt i32 %46, 0
%145 = icmp eq i1 %48, %144
%146 = icmp eq i1 %145, %49
%147 = udiv i32 %sext10, 65536
%148 = select i1 %146, i32 64, i32 %43
%sv_3.3.lcssa.reload = load i32, i32* %sv_3.3.lcssa.reg2mem
%149 = add i64 %6, 11489
%150 = inttoptr i64 %149 to i64*
%151 = call i64 @FUNC(i64 %2, i64* %150, i64 128)
%152 = ashr exact i32 %sext10, 16
%153 = sub nsw i32 256, %152
%154 = zext i32 %147 to i64
%sext15 = mul i64 %154, 281474976710656
%155 = ashr exact i64 %sext15, 48
%156 = add i64 %155, %149
%157 = inttoptr i64 %156 to i64*
%158 = call i64* @memset(i64* %157, i32 255, i32 %153)
%159 = load i32, i32* %sv_8, align 4
%160 = zext i32 %159 to i64
%sext16 = mul i64 %160, 281474976710656
%161 = ashr exact i64 %sext16, 48
%162 = call i64 @FUNC(i64 %161, i64 8)
%163 = load i32, i32* %sv_8, align 4
%sext1752.mask = urem i32 %163, 65536
%164 = icmp eq i32 %sext1752.mask, 0
store i32 %163, i32* %.reg2mem80
br i1 %164, label LBL_20, label LBL_18
LBL_18:
%165 = mul i32 %148, 3
%166 = sext i32 %165 to i64
%167 = sext i32 %148 to i64
store i64 0, i64* %.reg2mem78
store i32 0, i32* %storemerge2853.reg2mem
br label LBL_19
LBL_19:
%storemerge2853.reload = load i32, i32* %storemerge2853.reg2mem
%.reload79 = load i64, i64* %.reg2mem78
%168 = call i64 @FUNC(i64 %2, i64* nonnull %sv_9, i64 %166)
%169 = mul i64 %.reload79, 8
%170 = add i64 %169, %162
%171 = call i64 @FUNC(i64 %167, i64 2)
%172 = inttoptr i64 %170 to i64*
store i64 %171, i64* %172, align 8
%173 = call i64 @FUNC(i64* nonnull %sv_9, i64 %171, i32 %148)
%174 = add i32 %storemerge2853.reload, 1
%175 = load i32, i32* %sv_8, align 4
%sext17 = mul i32 %175, 65536
%176 = ashr exact i32 %sext17, 16
%177 = zext i32 %176 to i64
%178 = sext i32 %174 to i64
%179 = icmp slt i64 %178, %177
store i64 %178, i64* %.reg2mem78
store i32 %174, i32* %storemerge2853.reg2mem
store i32 %175, i32* %.reg2mem80
br i1 %179, label LBL_19, label LBL_20
LBL_20:
%.reload81 = load i32, i32* %.reg2mem80
%sext34 = mul i64 %28, 281474976710656
%180 = icmp slt i64 %sext34, 0
store i32 %.reload81, i32* %.reg2mem86
br i1 %180, label LBL_40, label LBL_21
LBL_21:
%181 = ashr exact i64 %sext34, 48
%182 = add i32 %148, -32
%183 = sub i32 31, %148
%184 = and i32 %183, %148
%185 = icmp slt i32 %184, 0
%186 = icmp slt i32 %182, 0
%187 = icmp eq i1 %186, %185
%188 = add i64 %6, 12520
%189 = inttoptr i64 %188 to i64*
%190 = zext i32 %148 to i64
%191 = select i1 %187, i64 %190, i64 32
%192 = bitcast i32* %sv_4 to i64*
%193 = add i64 %162, -8
%194 = icmp sgt i32 %148, 0
%195 = icmp sgt i32 %148, 31
%196 = mul i32 %148, 64
%197 = add i32 %196, -64
%198 = sext i32 %197 to i64
store i64 0, i64* %.reg2mem82
store i32 0, i32* %storemerge2151.reg2mem
br label LBL_22
LBL_22:
%storemerge2151.reload = load i32, i32* %storemerge2151.reg2mem
%.reload83 = load i64, i64* %.reg2mem82
%199 = load i64, i64* %189, align 8
%200 = mul i64 %.reload83, 8
%201 = add i64 %199, %200
%202 = call i64 @FUNC(i64 %191)
%203 = inttoptr i64 %201 to i64*
store i64 %202, i64* %203, align 8
%204 = add i64 %.reload83, %6
%205 = add i64 %204, 12001
%206 = inttoptr i64 %205 to i8*
store i8 64, i8* %206, align 1
%207 = add i64 %204, 11745
%208 = inttoptr i64 %207 to i8*
store i8 64, i8* %208, align 1
store i64 0, i64* %indvars.iv65.reg2mem
br label LBL_23
LBL_23:
%indvars.iv65.reload = load i64, i64* %indvars.iv65.reg2mem
%209 = call i64 @FUNC(i64 %2, i64* nonnull %192, i64 2)
%210 = load i32, i32* %sv_4, align 4
%211 = urem i32 %210, 65536
%212 = zext i32 %211 to i64
%213 = call i64 @FUNC(i64 %212)
%214 = trunc i64 %213 to i32
%sext23 = mul i32 %214, 65536
%215 = ashr exact i32 %sext23, 16
store i32 %215, i32* %sv_4, align 4
%216 = trunc i32 %215 to i16
%217 = icmp eq i16 %216, 0
br i1 %217, label LBL_31, label LBL_24
LBL_24:
%218 = urem i32 %215, 65536
%219 = load i32, i32* %sv_8, align 4
%sext24 = mul i32 %219, 65536
%220 = ashr exact i32 %sext24, 16
%221 = icmp ugt i32 %218, %220
br i1 %221, label LBL_25, label LBL_28
LBL_25:
%sext2544.mask = urem i32 %219, 65536
%222 = icmp eq i32 %sext2544.mask, 0
store i64 0, i64* %.reg2mem84
store i32 0, i32* %storemerge2645.reg2mem
br i1 %222, label LBL_27, label LBL_26
LBL_26:
%storemerge2645.reload = load i32, i32* %storemerge2645.reg2mem
%.reload85 = load i64, i64* %.reg2mem84
%223 = mul i64 %.reload85, 8
%224 = add i64 %223, %162
%225 = inttoptr i64 %224 to i64*
%226 = load i64, i64* %225, align 8
%227 = call i64 @FUNC(i64 %226)
%228 = add i32 %storemerge2645.reload, 1
%229 = load i32, i32* %sv_8, align 4
%sext25 = mul i32 %229, 65536
%230 = ashr exact i32 %sext25, 16
%231 = zext i32 %230 to i64
%232 = sext i32 %228 to i64
%233 = icmp slt i64 %232, %231
store i64 %232, i64* %.reg2mem84
store i32 %228, i32* %storemerge2645.reg2mem
br i1 %233, label LBL_26, label LBL_27
LBL_27:
%234 = call i64 @FUNC(i64 %162)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_51
LBL_28:
br i1 %194, label LBL_29, label LBL_31
LBL_29:
%235 = mul i64 %213, 8
%236 = and i64 %235, 524280
%237 = add i64 %193, %236
%238 = inttoptr i64 %237 to i64*
%239 = load i64, i64* %238, align 8
%240 = load i64, i64* %189, align 8
%241 = add i64 %240, %200
%242 = inttoptr i64 %241 to i64*
%243 = load i64, i64* %242, align 8
%244 = add i64 %243, %indvars.iv65.reload
store i64 %244, i64* %sv_2.0.in48.reg2mem
store i64 %239, i64* %sv_1.0.in47.reg2mem
store i32 0, i32* %sv_0.146.reg2mem
br label LBL_30
LBL_30:
%sv_0.146.reload = load i32, i32* %sv_0.146.reg2mem
%sv_1.0.in47.reload = load i64, i64* %sv_1.0.in47.reg2mem
%sv_2.0.in48.reload = load i64, i64* %sv_2.0.in48.reg2mem
%sv_2.0 = inttoptr i64 %sv_2.0.in48.reload to i16*
%sv_1.0 = inttoptr i64 %sv_1.0.in47.reload to i16*
%245 = load i16, i16* %sv_1.0, align 2
store i16 %245, i16* %sv_2.0, align 2
%246 = add nuw nsw i32 %sv_0.146.reload, 1
%247 = add i64 %sv_1.0.in47.reload, 2
%248 = add i64 %sv_2.0.in48.reload, 64
%exitcond = icmp eq i32 %246, %148
store i64 %248, i64* %sv_2.0.in48.reg2mem
store i64 %247, i64* %sv_1.0.in47.reg2mem
store i32 %246, i32* %sv_0.146.reg2mem
br i1 %exitcond, label LBL_31, label LBL_30
LBL_31:
%indvars.iv.next66 = add nuw nsw i64 %indvars.iv65.reload, 1
%249 = icmp ult i64 %indvars.iv.next66, 32
store i64 %indvars.iv.next66, i64* %indvars.iv65.reg2mem
br i1 %249, label LBL_23, label LBL_32
LBL_32:
br i1 %195, label LBL_38, label LBL_33
LBL_33:
%250 = load i64, i64* %189, align 8
%251 = add i64 %250, %200
%252 = inttoptr i64 %251 to i64*
%253 = load i64, i64* %252, align 8
%254 = add i64 %253, %198
store i64 %254, i64* %storemerge22.in.reg2mem
br label LBL_35
LBL_34:
%255 = add i64 %storemerge22.in.reload, 2
store i64 %255, i64* %storemerge22.in.reg2mem
br label LBL_35
LBL_35:
%storemerge22.in.reload = load i64, i64* %storemerge22.in.reg2mem
%256 = inttoptr i64 %storemerge22.in.reload to i8*
%257 = load i8, i8* %256, align 1
%258 = icmp eq i8 %257, 0
%259 = icmp eq i1 %258, false
br i1 %259, label LBL_34, label LBL_36
LBL_36:
%260 = add i64 %storemerge22.in.reload, 1
%261 = inttoptr i64 %260 to i8*
%262 = load i8, i8* %261, align 1
%263 = icmp eq i8 %262, 0
%264 = icmp eq i1 %263, false
br i1 %264, label LBL_34, label LBL_37
LBL_37:
store i8 12, i8* %256, align 1
br label LBL_38
LBL_38:
%265 = add i32 %storemerge2151.reload, 1
%266 = sext i32 %265 to i64
%267 = icmp slt i64 %181, %266
store i64 %266, i64* %.reg2mem82
store i32 %265, i32* %storemerge2151.reg2mem
br i1 %267, label LBL_39, label LBL_22
LBL_39:
%.pre = load i32, i32* %sv_8, align 4
store i32 %.pre, i32* %.reg2mem86
br label LBL_40
LBL_40:
%.reload87 = load i32, i32* %.reg2mem86
%sext1842.mask = urem i32 %.reload87, 65536
%268 = icmp eq i32 %sext1842.mask, 0
store i64 0, i64* %.reg2mem88
store i32 0, i32* %storemerge2043.reg2mem
br i1 %268, label LBL_42, label LBL_41
LBL_41:
%storemerge2043.reload = load i32, i32* %storemerge2043.reg2mem
%.reload89 = load i64, i64* %.reg2mem88
%269 = mul i64 %.reload89, 8
%270 = add i64 %269, %162
%271 = inttoptr i64 %270 to i64*
%272 = load i64, i64* %271, align 8
%273 = call i64 @FUNC(i64 %272)
%274 = add i32 %storemerge2043.reload, 1
%275 = load i32, i32* %sv_8, align 4
%sext18 = mul i32 %275, 65536
%276 = ashr exact i32 %sext18, 16
%277 = zext i32 %276 to i64
%278 = sext i32 %274 to i64
%279 = icmp slt i64 %278, %277
store i64 %278, i64* %.reg2mem88
store i32 %274, i32* %storemerge2043.reg2mem
br i1 %279, label LBL_41, label LBL_42
LBL_42:
%280 = call i64 @FUNC(i64 %162)
%281 = load i32, i32* %sv_7, align 4
%282 = urem i32 %281, 65536
%283 = zext i32 %282 to i64
%284 = add i64 %6, 12258
%285 = call i64 @FUNC(i64 %284, i64 %2, i64 %283, i64 40)
%286 = urem i32 %arg3, 2
%287 = icmp eq i32 %286, 0
%288 = icmp sgt i64 %sext33, 0
%or.cond73 = icmp eq i1 %287, %288
store i64 40, i64* %rcx.2.reg2mem
store i64 %283, i64* %rdx.2.reg2mem
br i1 %or.cond73, label LBL_43, label LBL_47
LBL_43:
%289 = add i64 %2, 8
%290 = inttoptr i64 %289 to i64*
%291 = add i64 %2, 16
%292 = inttoptr i64 %291 to i64*
%293 = add i64 %6, 128
store i64 1, i64* %indvars.iv.reg2mem
store i64 %2, i64* %rsi.137.reg2mem
br label LBL_44
LBL_44:
%rsi.137.reload = load i64, i64* %rsi.137.reg2mem
%r8.138.reload = load i64, i64* %r8.138.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%294 = mul nuw nsw i64 %indvars.iv.reload, 44
%295 = add i64 %294, %6
%296 = add i64 %295, 152
%297 = inttoptr i64 %296 to i32*
%298 = load i32, i32* %297, align 4
%299 = icmp eq i32 %298, 0
store i64 %6, i64* %rcx.0.reg2mem
store i64 %indvars.iv.reload, i64* %rdx.0.reg2mem
store i64 %rsi.137.reload, i64* %rsi.0.reg2mem
store i64 %r8.138.reload, i64* %r8.0.reg2mem
br i1 %299, label LBL_46, label LBL_45
LBL_45:
%300 = load i64, i64* %290, align 8
%301 = load i64, i64* %292, align 8
%302 = sub i64 %300, %301
%303 = add i64 %301, %rsi.137.reload
%304 = add i64 %295, 166
%305 = inttoptr i64 %304 to i8*
%306 = load i8, i8* %305, align 1
%307 = and i8 %306, 4
%308 = icmp eq i8 %307, 0
%. = select i1 %308, i64 23, i64 15
%309 = add i64 %294, %293
%310 = call i64 @FUNC(i64 %309, i64 %., i64 %303, i64 %302)
%311 = and i64 %310, 4294967295
%312 = call i64 @FUNC(i64 %2, i64 %311, i64 1)
store i64 %311, i64* %rcx.0.reg2mem
store i64 1, i64* %rdx.0.reg2mem
store i64 %311, i64* %rsi.0.reg2mem
store i64 %293, i64* %r8.0.reg2mem
br label LBL_46
LBL_46:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%313 = icmp sgt i64 %66, %indvars.iv.reload
%314 = icmp ult i64 %indvars.iv.next, 257
%or.cond = icmp eq i1 %313, %314
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %r8.0.reload, i64* %r8.138.reg2mem
store i64 %rsi.0.reload, i64* %rsi.137.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
store i64 %r8.0.reload, i64* %r8.2.reg2mem
br i1 %or.cond, label LBL_44, label LBL_47
LBL_47:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%315 = add i64 %6, 12257
%316 = inttoptr i64 %315 to i8*
store i8 96, i8* %316, align 1
%317 = and i32 %sv_3.3.lcssa.reload, 64
%318 = icmp eq i32 %317, 0
br i1 %318, label LBL_49, label LBL_48
LBL_48:
%319 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_2, i64 0, i64 0), i64 %rdx.2.reload, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %1)
br label LBL_49
LBL_49:
%320 = and i32 %sv_3.3.lcssa.reload, 16
%321 = icmp eq i32 %320, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %321, label LBL_51, label LBL_50
LBL_50:
%322 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.2.reload, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_51
LBL_51:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 3, 1, 0, 2 }
uselistorder i64 %rsi.137.reload, { 1, 0 }
uselistorder i64 %storemerge22.in.reload, { 1, 0, 2 }
uselistorder i32 %219, { 1, 0 }
uselistorder i64 %200, { 2, 1, 0 }
uselistorder i64 %162, { 5, 0, 4, 1, 3, 2 }
uselistorder i32 %148, { 2, 0, 4, 3, 6, 1, 7, 5, 8, 10, 9 }
uselistorder i32 %sext10, { 1, 0 }
uselistorder i32* %95, { 1, 0, 2, 3 }
uselistorder i32* %88, { 1, 0, 3, 2, 4 }
uselistorder i32* %81, { 1, 0, 2 }
uselistorder i64 %storemerge29.in57.reload, { 7, 0, 1, 2, 3, 4, 5, 6, 8 }
uselistorder i32 %sv_3.355.reload, { 2, 1, 0 }
uselistorder i64 %sext33, { 2, 1, 0 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %43, { 2, 4, 0, 3, 1 }
uselistorder i64 %6, { 7, 0, 1, 6, 8, 2, 5, 9, 3, 10, 11, 4, 12, 13, 14 }
uselistorder i32* %sv_8, { 8, 0, 7, 6, 5, 1, 4, 3, 2, 9 }
uselistorder i32* %sv_7, { 2, 1, 0, 3 }
uselistorder i64* %sv_6, { 1, 0 }
uselistorder i32* %sv_5, { 2, 1, 0, 3 }
uselistorder i32* %sv_4, { 1, 0, 2 }
uselistorder i64 %2, { 10, 0, 12, 11, 13, 9, 14, 15, 1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv69.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv67.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge29.in57.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.056.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.355.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem78, { 1, 0, 2 }
uselistorder i32* %storemerge2853.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem82, { 1, 0, 2 }
uselistorder i32* %storemerge2151.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv65.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem84, { 2, 0, 1 }
uselistorder i32* %storemerge2645.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.0.in48.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.in47.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.146.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge22.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem86, { 0, 2, 1 }
uselistorder i64* %.reg2mem88, { 2, 0, 1 }
uselistorder i32* %storemerge2043.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.138.reg2mem, { 1, 0 }
uselistorder i64* %rsi.137.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @log_appendf, { 1, 0 }
uselistorder i32 31, { 1, 0 }
uselistorder i64 (i64, i64)* @mem_calloc, { 1, 0 }
uselistorder i64 8, { 6, 0, 1, 2, 3, 4, 5, 7, 8 }
uselistorder i64 128, { 1, 0 }
uselistorder i32 2, { 1, 2, 3, 4, 0 }
uselistorder i8 4, { 2, 1, 0 }
uselistorder i64 44, { 1, 2, 0 }
uselistorder i64 (i64)* @bswapLE32, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @slurp_seek, { 1, 0 }
uselistorder i64 37, { 1, 0 }
uselistorder i32 64, { 4, 0, 3, 1, 2 }
uselistorder i64 48, { 1, 3, 4, 2, 0 }
uselistorder i64 281474976710656, { 0, 1, 2, 5, 3, 4 }
uselistorder i64 32, { 2, 3, 4, 0, 1 }
uselistorder i64 1, { 6, 0, 7, 1, 9, 5, 8, 2, 4, 3, 10 }
uselistorder i64 4, { 2, 3, 4, 0, 1 }
uselistorder i32 16, { 8, 3, 0, 1, 2, 4, 5, 9, 6, 7 }
uselistorder i64 (i64)* @bswapLE16, { 2, 1, 0 }
uselistorder i32 65536, { 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 14, 17, 5, 15, 6, 7, 16 }
uselistorder i64 2, { 1, 2, 7, 8, 3, 4, 0, 9, 5, 6 }
uselistorder i64 16, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64)* @slurp_getc, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 3, { 1, 0, 2 }
uselistorder i64 (i64, i64*, i64)* @slurp_read, { 10, 9, 4, 8, 7, 6, 5, 3, 2, 1, 0 }
uselistorder label LBL_51, { 1, 0, 3, 2 }
uselistorder label LBL_46, { 1, 0 }
uselistorder label LBL_44, { 1, 0 }
uselistorder label LBL_41, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | qmp_tmp105_set_temperature_15535 | qmp_tmp105_set_temperature | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @gv_0, i64 0, i64 0), i64 %0, i32 %1)
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %2)
ret i64 %6
} | 1 |
BinRealVul | nfcmrvl_nci_unregister_dev_19208 | nfcmrvl_nci_unregister_dev | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %arg1)
br label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %arg1)
%6 = add i64 %arg1, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = load i32, i32* %7, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
br label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %arg1)
%17 = call i64 @FUNC(i64 %arg1)
%18 = call i64 @FUNC(i64 %arg1)
ret i64 %18
uselistorder i64 %arg1, { 1, 3, 2, 5, 4, 0 }
} | 1 |
BinRealVul | nfs4_async_handle_error_10734 | nfs4_async_handle_error | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = icmp ne i64* %arg2, null
%3 = trunc i64 %1 to i32
%4 = icmp slt i32 %3, 0
%or.cond = icmp eq i1 %2, %4
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%5 = and i64 %1, 4294967295
store i64 %5, i64* @0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
store i32 %7, i32* %arg1, align 4
br label LBL_2
LBL_2:
ret i64 0
uselistorder i64 %5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | my_suspend_hook_10416 | my_suspend_hook | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = trunc i64 %arg1 to i32
%2 = icmp eq i32 %1, 0
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%7 = load i64, i64* %6, align 8
store i64 %7, i64* %arg2, align 8
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = load i64, i64* %4, align 8
%12 = inttoptr i64 %10 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %11 to i64*
store i64 %13, i64* %14, align 8
store i64 %11, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
store i64 %0, i64* %6, align 8
store i64 %5, 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* %6, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | qemu_opts_find_15397 | qemu_opts_find | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.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_6
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = icmp eq i64 %arg2, 0
%4 = icmp eq i1 %3, false
%5 = inttoptr i64 %arg2 to i8*
store i64 %2, i64* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%6 = inttoptr i64 %storemerge1.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
store i64 %storemerge1.reload, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_6
LBL_4:
%10 = inttoptr i64 %7 to i8*
%11 = call i32 @strcmp(i8* %10, i8* %5)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %storemerge1.reload, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_6
LBL_5:
%14 = add i64 %storemerge1.reload, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %storemerge1.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_2, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge1.reload, { 3, 0, 1, 2 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_6, { 2, 1, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | fib6_clean_expires_13141 | fib6_clean_expires | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
ret i64 %3
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | png_set_gAMA_8434 | png_set_gAMA | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.0.reg2mem = alloca i64
%1 = load i128, i128* %0
%2 = call i64 @FUNC(i128 %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%4 = sext i32 %3 to i64
%5 = icmp eq i64 %arg1, 0
%6 = icmp eq i64 %arg2, 0
%or.cond = or i1 %5, %6
store i64 %4, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_1
LBL_1:
%7 = call i128 @__asm_movsd.1(i64 %2)
%8 = load i128, i128* @gv_2, align 8
call void @FUNC(i128 %7, i128 %8)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_4, i64 0, i64 0))
%10 = trunc i128 %8 to i64
%11 = call i128 @__asm_movsd.1(i64 %10)
%12 = call i64 @FUNC(i128 %11)
%13 = call i128 @FUNC(i128 %11, i128 %11)
%14 = call i128 @FUNC(i64 %12)
%15 = call i64 @FUNC(i128 %14)
%16 = trunc i64 %15 to i32
%17 = inttoptr i64 %arg2 to i32*
store i32 %16, i32* %17, align 4
%18 = add i64 %arg2, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = or i32 %20, 1
%22 = trunc i32 %21 to i8
%23 = call i8 @llvm.ctpop.i8(i8 %22), !range !16
%24 = urem i8 %23, 2
%25 = icmp eq i8 %24, 0
store i32 %21, i32* %19, align 4
%26 = call i128 @FUNC(i128 %14, i128 %14)
call void @FUNC(i128 %26, i64 %12)
store i64 %arg2, i64* %rax.0.reg2mem
br i1 %25, label LBL_3, label LBL_2
LBL_2:
%27 = call i128 @FUNC(i128 %26, i128 %26)
call void @FUNC(i128 %27, i64 %12)
store i64 %arg2, 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 i128 %26, { 1, 0, 2 }
uselistorder i128 %14, { 2, 1, 0 }
uselistorder i64 %12, { 2, 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg2, { 0, 1, 3, 4, 2 }
uselistorder label LBL_3, { 0, 2, 1 }
} | 0 |
BinRealVul | picoquic_decode_new_connection_id_frame_7208 | picoquic_decode_new_connection_id_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_1.06.reg2mem = alloca i32
%rdi.27.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0.15.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i8, align 1
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
store i64 0, i64* %sv_4, align 8
store i64 0, i64* %sv_3, align 8
store i8 0, i8* %sv_2, align 1
%3 = add i64 %1, 1
%4 = call i64 @FUNC(i64 %3, i64 %0, i64* nonnull %sv_4)
%5 = icmp eq i64 %4, 0
store i64 0, i64* %sv_0.15.reg2mem
br i1 %5, label LBL_5, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %4, i64 %0, i64* nonnull %sv_3)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %sv_0.15.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %6, i64 %0, i8* nonnull %sv_2)
%9 = icmp eq i64 %8, 0
store i64 0, i64* %sv_0.15.reg2mem
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = load i8, i8* %sv_2, align 1
%11 = zext i8 %10 to i64
%12 = add nuw nsw i64 %11, 16
%13 = call i64 @FUNC(i64 %8, i64 %0, i64 %12)
%14 = icmp ne i64 %13, 0
%15 = load i8, i8* %sv_2, align 1
%16 = icmp ult i8 %15, 21
%or.cond = icmp eq i1 %14, %16
store i64 %13, i64* %sv_0.15.reg2mem
br i1 %or.cond, label LBL_4, label LBL_5
LBL_4:
%17 = load i64, i64* %sv_3, align 8
%18 = load i64, i64* %sv_4, align 8
%19 = icmp ugt i64 %17, %18
store i64 %13, i64* %sv_0.15.reg2mem
br i1 %19, label LBL_5, label LBL_6
LBL_5:
%sv_0.15.reload = load i64, i64* %sv_0.15.reg2mem
%20 = icmp eq i64 %sv_0.15.reload, 0
%21 = icmp eq i1 %20, false
%. = select i1 %21, i64 2, i64 1
%22 = call i64 @FUNC(i64 %2, i64 %., i64 3)
store i64 0, i64* %sv_0.2.reg2mem
br label LBL_13
LBL_6:
%23 = icmp ult i64 %8, %17
%24 = icmp eq i1 %23, false
store i64 %18, i64* %.reg2mem
store i64 %8, i64* %rdi.27.reg2mem
store i32 0, i32* %sv_1.06.reg2mem
br i1 %24, label LBL_9, label LBL_7
LBL_7:
%25 = call i64 @FUNC(i64 %2, i64 %17, i64 %arg4)
%26 = trunc i64 %25 to i32
%sext = mul i32 %26, 65536
%27 = ashr exact i32 %sext, 16
%28 = trunc i32 %27 to i16
%29 = icmp eq i16 %28, 0
%30 = icmp eq i1 %29, false
store i32 %27, i32* %sv_1.1.reg2mem
br i1 %30, label LBL_11, label LBL_7.LBL_9_crit_edge
LBL_8:
%.pre = load i64, i64* %sv_4, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %2, i64* %rdi.27.reg2mem
store i32 %27, i32* %sv_1.06.reg2mem
br label LBL_9
LBL_9:
%sv_1.06.reload = load i32, i32* %sv_1.06.reg2mem
%rdi.27.reload = load i64, i64* %rdi.27.reg2mem
%.reload = load i64, i64* %.reg2mem
%31 = icmp ugt i64 %rdi.27.reload, %.reload
store i32 %sv_1.06.reload, i32* %sv_1.1.reg2mem
br i1 %31, label LBL_11, label LBL_10
LBL_10:
%32 = add i64 %8, %11
%33 = load i8, i8* %sv_2, align 1
%34 = zext i8 %33 to i64
%35 = call i64 @FUNC(i64 %2, i64 %.reload, i64 %34, i64 %8, i64 %32, i64 0)
%36 = trunc i64 %35 to i32
%sext2 = mul i32 %36, 65536
%37 = ashr exact i32 %sext2, 16
store i32 %37, i32* %sv_1.1.reg2mem
br label LBL_11
LBL_11:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%38 = trunc i32 %sv_1.1.reload to i16
%39 = icmp eq i16 %38, 0
store i64 %13, i64* %sv_0.2.reg2mem
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%40 = urem i32 %sv_1.1.reload, 65536
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 %2, i64 %41, i64 3)
store i64 0, i64* %sv_0.2.reg2mem
br label LBL_13
LBL_13:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
ret i64 %sv_0.2.reload
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i32 %27, { 1, 0, 2 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %8, { 3, 1, 0, 2, 5, 4 }
uselistorder i64* %sv_4, { 0, 2, 1, 3 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i8* %sv_2, { 2, 0, 3, 1, 4 }
uselistorder i64 %2, { 3, 2, 0, 1, 4 }
uselistorder i64 %0, { 2, 0, 1, 3 }
uselistorder i64* %sv_0.15.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.27.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.06.reg2mem, { 0, 2, 1 }
uselistorder i32 65536, { 2, 0, 1, 3 }
uselistorder i64 (i64, i64, i64)* @picoquic_connection_error, { 1, 0 }
uselistorder i64 (i64, i64, i64*)* @picoquic_frames_varint_decode, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2 }
uselistorder label LBL_5, { 4, 3, 2, 0, 1 }
} | 0 |
BinRealVul | tcp_open_12344 | tcp_open | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64* @calloc(i32 1, i32 4)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_8
LBL_1:
%3 = bitcast i64* %0 to i32*
store i32 -1, i32* %3, align 4
%4 = call i32 @socket(i32 10, i32 1, i32 0)
store i32 %4, i32* %3, align 4
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%8 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
br label LBL_9
LBL_3:
%9 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 28)
store i64 10, i64* %sv_0, align 8
%10 = trunc i64 %arg1 to i16
%11 = call i16 @htons(i16 %10)
%12 = load i32, i32* %3, align 4
%13 = bitcast i64* %sv_0 to %sockaddr*
%14 = call i32 @bind(i32 %12, %sockaddr* nonnull %13, i32 28)
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%17 = load i32, i32* inttoptr (i64 4210788 to i32*), align 4
%18 = icmp eq i32 %17, 1
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_9, label LBL_5
LBL_5:
%20 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%21 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([78 x i8], [78 x i8]* @gv_3, i64 0, i64 0))
br label LBL_9
LBL_6:
%22 = ptrtoint i64* %0 to i64
%23 = load i32, i32* %3, align 4
%24 = call i32 @listen(i32 %23, i32 5)
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %22, i64* %storemerge.reg2mem
br i1 %26, label LBL_12, label LBL_7
LBL_7:
%27 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%28 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0))
br label LBL_9
LBL_8:
%29 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%30 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_12
LBL_9:
%31 = load i32, i32* %3, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label LBL_11, label LBL_10
LBL_10:
%33 = call i32 @close(i32 %31)
br label LBL_11
LBL_11:
call void @free(i64* nonnull %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %0, { 1, 3, 0, 2 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 3, 2, 1 }
uselistorder i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), { 3, 0, 1, 2 }
uselistorder %_IO_FILE** @gv_0, { 0, 3, 2, 1 }
uselistorder i32 0, { 2, 3, 0, 4, 1 }
uselistorder label LBL_12, { 2, 0, 1 }
uselistorder label LBL_9, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | lsr_end_of_stream_6959 | lsr_end_of_stream | 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, -1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0))
%5 = ptrtoint i32* %arg1 to i64
store i32 -1, i32* %arg1, align 4
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 -1, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
} | 0 |
BinRealVul | override_release_12094 | override_release | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i8*
%sv_2.0.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i8*
%sv_2.16.reg2mem = alloca i32
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%1 = load i64, i64* @gv_0, align 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
store i8 50, i8* %.reg2mem
store i32 0, i32* %sv_2.16.reg2mem
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i8** %sv_1.04.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%sv_1.04.reload = load i8*, i8** %sv_1.04.reg2mem
%sv_2.16.reload = load i32, i32* %sv_2.16.reg2mem
%.reload = load i8, i8* %.reg2mem
%6 = icmp eq i8 %.reload, 46
%7 = icmp eq i1 %6, false
store i32 %sv_2.16.reload, i32* %sv_2.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i32 %sv_2.16.reload, 1
%9 = icmp sgt i32 %8, 2
store i32 %8, i32* %sv_2.0.reg2mem
store i8* %sv_1.04.reload, i8** %sv_1.0.lcssa.reg2mem
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = call i16** @__ctype_b_loc()
%11 = load i16*, i16** %10, align 8
%12 = ptrtoint i16* %11 to i64
%13 = load i8, i8* %sv_1.04.reload, align 1
%14 = sext i8 %13 to i64
%15 = mul i64 %14, 2
%16 = add i64 %15, %12
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = and i16 %18, 2048
%20 = icmp eq i16 %19, 0
%21 = icmp eq i8 %13, 46
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %22, %20
store i8* %sv_1.04.reload, i8** %sv_1.0.lcssa.reg2mem
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%23 = ptrtoint i8* %sv_1.04.reload to i64
%24 = add i64 %23, 1
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 0
%28 = icmp eq i1 %27, false
store i8 %26, i8* %.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.16.reg2mem
store i8* %25, i8** %sv_1.04.reg2mem
store i8* %25, i8** %sv_1.0.lcssa.reg2mem
br i1 %28, label LBL_1, label LBL_5
LBL_5:
%sv_1.0.lcssa.reload = load i8*, i8** %sv_1.0.lcssa.reg2mem
%29 = trunc i64 %arg2 to i32
%30 = bitcast i64* %sv_3 to i8*
%31 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %30, i32 %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i32 46, i8* %sv_1.0.lcssa.reload)
%32 = call i64 @FUNC(i64 %0, i64* nonnull %sv_3, i32 %29)
%phitmp = and i64 %32, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i32 %sv_2.16.reload, { 1, 0 }
uselistorder i8* %sv_1.04.reload, { 3, 0, 2, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.16.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_1.0.lcssa.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | ib_prctl_set_12936 | ib_prctl_set | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 4294967294, i64* %rax.0.reg2mem
switch i64 %arg2, label LBL_1 [
i64 1, label LBL_2
i64 0, label LBL_13
]
LBL_1:
%1 = or i64 %arg2, 1
%2 = icmp eq i64 %1, 3
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %2, label LBL_7, label LBL_13
LBL_2:
%3 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_13
LBL_4:
%9 = call i64 @FUNC()
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_13, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_13
LBL_6:
%15 = call i64 @FUNC(i64 %0)
%16 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%17 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_9, label LBL_8
LBL_8:
%20 = load i32, i32* @gv_1, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_9, label LBL_13
LBL_9:
%23 = call i64 @FUNC()
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_13
LBL_10:
%27 = call i64 @FUNC(i64 %0)
%28 = icmp eq i64 %arg2, 3
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_12, label LBL_11
LBL_11:
%30 = call i64 @FUNC(i64 %0)
br label LBL_12
LBL_12:
%31 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2, 4, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 5, 6, 1, 8, 7, 9, 3, 4 }
uselistorder i64 (i64)* @task_update_spec_tif, { 1, 0 }
uselistorder i64 ()* @is_spec_ib_user_controlled, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 4, 5, 0, 7, 6, 8, 2, 3 }
} | 1 |
reposvul_c_test | copy_item_ipv4_address_149 | copy_item_ipv4_address | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 0, i64 4)
%3 = trunc i64 %1 to i32
%4 = inttoptr i64 %2 to i32*
store i32 %3, i32* %4, align 4
ret i64 %2
} | 0 |
BinRealVul | dophn_core_13613 | dophn_core | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i64 %arg5, i32 %arg6, i64 %arg7, i64 %arg8, i32* %arg9, i16* %arg10) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.035.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 %arg5, i64* %sv_3, align 8
%1 = load i32, i32* @gv_0, align 4
%2 = sext i32 %1 to i64
%3 = icmp eq i64 %2, %arg7
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = icmp eq i32 %arg6, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_14
LBL_2:
%6 = ptrtoint i64* %sv_3 to i64
%7 = icmp eq i64 %arg8, -1
%8 = ptrtoint i16* %arg10 to i64
%9 = add i64 %6, -16
%10 = inttoptr i64 %9 to i64*
%11 = ptrtoint i32* %arg9 to i64
%12 = add i64 %6, -24
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %6, -32
%15 = inttoptr i64 %14 to i64*
%16 = zext i32 %arg3 to i64
%17 = zext i32 %arg2 to i64
%18 = load i64, i64* @gv_1, align 8
%19 = inttoptr i64 %18 to i64*
%20 = trunc i64 %arg5 to i32
%21 = call i32 @pread(i32 %arg4, i64* %19, i32 %1, i32 %20)
%22 = load i32, i32* @gv_0, align 4
%23 = icmp slt i32 %21, %22
store i32 %arg6, i32* %sv_1.035.reg2mem
br i1 %23, label LBL_4, label LBL_5
LBL_3:
%24 = sext i32 %arg3 to i64
%25 = sext i32 %arg4 to i64
%26 = sext i32 %arg6 to i64
%27 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64 %24, i64 %25, i64 %arg5, i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, -1
%30 = icmp eq i1 %29, false
%. = select i1 %30, i64 0, i64 4294967295
store i64 %., i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%31 = call i64 @FUNC(i64 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%sv_1.035.reload = load i32, i32* %sv_1.035.reg2mem
%32 = load i64, i64* %sv_3, align 8
%33 = add i64 %32, %arg7
store i64 %33, i64* %sv_3, align 8
br i1 %7, label LBL_7, label LBL_6
LBL_6:
%34 = load i32, i32* @gv_3, align 4
%35 = zext i32 %34 to i64
%36 = icmp sgt i64 %35, %arg8
br i1 %36, label LBL_12, label LBL_7
LBL_7:
%37 = load i32, i32* @gv_4, align 4
%38 = icmp eq i32 %37, 4
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_12, label LBL_8
LBL_8:
%40 = load i32, i32* @gv_5, align 4
%41 = icmp ult i32 %40, 1024
%42 = select i1 %41, i32 %40, i32 1024
%43 = load i32, i32* @gv_3, align 4
%44 = call i32 @pread(i32 %arg4, i64* nonnull %sv_2, i32 %42, i32 %43)
%45 = sext i32 %44 to i64
%46 = icmp eq i32 %44, -1
%47 = icmp eq i1 %46, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = call i64 @FUNC(i64 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%49 = icmp ult i64 %sv_0.0.reload, %45
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_12, label LBL_11
LBL_11:
store i64 %8, i64* %10, align 8
store i64 %11, i64* %13, align 8
store i64 4, i64* %15, align 8
%51 = call i64 @FUNC(i64 %0, i64* nonnull %sv_2, i64 %sv_0.0.reload, i64 %45, i64 %17, i64 %16)
%52 = icmp eq i64 %51, 0
store i64 %51, i64* %sv_0.0.reg2mem
br i1 %52, label LBL_12, label LBL_10
LBL_12:
%53 = add i32 %sv_1.035.reload, -1
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
store i64 0, i64* %rax.0.reg2mem
br i1 %55, label LBL_12.dec_label_pc_401226_crit_edge, label LBL_14
LBL_13:
%.pre = load i32, i32* @gv_0, align 4
%.pre4 = load i64, i64* %sv_3, align 8
%56 = load i64, i64* @gv_1, align 8
%57 = inttoptr i64 %56 to i64*
%58 = trunc i64 %.pre4 to i32
%59 = call i32 @pread(i32 %arg4, i64* %57, i32 %.pre, i32 %58)
%60 = load i32, i32* @gv_0, align 4
%61 = icmp slt i32 %59, %60
store i32 %53, i32* %sv_1.035.reg2mem
br i1 %61, label LBL_4, label LBL_5
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %45, { 1, 0 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64* %sv_3, { 0, 1, 2, 4, 3 }
uselistorder i64 %0, { 2, 1, 3, 0 }
uselistorder i32* %sv_1.035.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 5, 3, 2 }
uselistorder i32* @gv_3, { 1, 0 }
uselistorder i64 (i64)* @file_badread, { 1, 0 }
uselistorder i32 (i32, i64*, i32, i32)* @pread, { 1, 2, 0 }
uselistorder i64* @gv_1, { 1, 0 }
uselistorder i1 false, { 4, 1, 2, 3, 5, 0 }
uselistorder i32* @gv_0, { 3, 1, 0, 2 }
uselistorder i32 %arg6, { 2, 0, 1 }
uselistorder i64 %arg5, { 1, 0, 2 }
uselistorder i32 %arg4, { 2, 1, 3, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_14, { 0, 3, 4, 2, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | posix_lock_file_wait_5340 | posix_lock_file_wait | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC()
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = urem i64 %1, 2
%10 = icmp eq i64 %9, 0
br label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %3, i64 %2)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, -11
%14 = icmp eq i1 %13, false
%or.cond = or i1 %10, %14
store i64 %11, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_4, label LBL_2
LBL_2:
%15 = load i32, i32* %6, align 4
%16 = icmp eq i32 %15, 0
%17 = load i32, i32* %8, align 4
%18 = zext i1 %16 to i64
%19 = zext i32 %17 to i64
%20 = call i64 @FUNC(i64 %19, i64 %18)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_1, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %2)
store i64 %20, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = and i64 %sv_0.0.reload, 4294967295
ret i64 %24
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | qlcnic_napi_enable_17922 | qlcnic_napi_enable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %7, align 8
%9 = mul i64 %.reload, 4
%10 = add i64 %8, %9
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %10)
%13 = add i32 %storemerge1.reload, 1
%14 = sext i32 %13 to i64
%15 = icmp sgt i64 %3, %14
store i64 %14, i64* %.reg2mem
store i32 %13, i32* %storemerge1.reg2mem
br i1 %15, label LBL_2, label LBL_3
LBL_3:
ret i64 %3
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | dtrie_destroy_17757 | dtrie_destroy | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = call i64 @FUNC(i64 %1, i64 %1, i64 %arg2, i32 %2)
%4 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %1)
%5 = call i64 @FUNC(i64 ptrtoint ([17 x i8]* @gv_0 to i64))
store i64 0, i64* %arg1, align 8
store i64 %1, 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 [17 x i8]* @gv_0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32)* @dtrie_delete, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | idtoname_show_17406 | idtoname_show | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = icmp eq i64 %arg3, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0))
br label LBL_5
LBL_2:
%6 = add i64 %arg3, 20
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = add i64 %arg3, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 1
%14 = icmp eq i1 %13, false
%. = select i1 %14, i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 ptrtoint ([6 x i8]* @gv_2 to i64)
%15 = add i64 %arg3, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %17, i64 %., i64 %9, i64 %1)
%19 = call i64 @FUNC(i64 0, i64 %arg3)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i64 %17, i64* %rdx.0.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %arg3, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 %24, i64 %., i64 %9, i64 %1)
store i64 %24, i64* %rdx.0.reg2mem
br label LBL_4
LBL_4:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%26 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0), i64 %rdx.0.reload, i64 %., i64 %9, i64 %1)
br label LBL_5
LBL_5:
ret i64 0
uselistorder i64 %., { 1, 0, 2 }
uselistorder i64 %9, { 1, 2, 0 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 2, 1, 0 }
uselistorder i64 %arg3, { 0, 1, 2, 4, 3, 5 }
} | 1 |
BinRealVul | helper_retry_14848 | helper_retry | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = load i64, i64* @gv_0, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %7, 16
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = load i64, i64* @gv_0, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %17, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = udiv i64 %20, 4294967296
%22 = call i64 @FUNC(i64 %15, i64 %21)
%23 = load i64, i64* @gv_0, align 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %25, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = udiv i64 %28, 16777216
%30 = trunc i64 %29 to i8
%31 = add i64 %23, 24
%32 = inttoptr i64 %31 to i8*
store i8 %30, i8* %32, align 1
%33 = load i64, i64* @gv_0, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = add i64 %35, 16
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = udiv i64 %38, 256
%40 = and i64 %39, 3903
%41 = call i64 @FUNC(i64 %40)
%42 = load i64, i64* @gv_0, align 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = add i64 %44, 16
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = urem i64 %47, 256
%49 = call i64 @FUNC(i64 %42, i64 %48)
%50 = load i64, i64* @gv_0, align 8
%51 = add i64 %50, 32
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %53, -1
store i64 %54, i64* %52, align 8
%55 = load i64, i64* @gv_0, align 8
%56 = add i64 %55, 32
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = urem i64 %58, 256
%60 = mul nuw nsw i64 %59, 24
%61 = add i64 %55, 40
%62 = add i64 %61, %60
%63 = inttoptr i64 %55 to i64*
store i64 %62, i64* %63, align 8
ret i64 %62
uselistorder i64 %62, { 1, 0 }
uselistorder i64 %55, { 1, 0, 2 }
uselistorder i64 256, { 1, 2, 0 }
} | 1 |
BinRealVul | janus_session_notify_event_12733 | janus_session_notify_event | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp eq i64* %arg1, null
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
%10 = icmp eq i64 %5, 0
%or.cond = or i1 %10, %9
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %4, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %13, i64 %2, i64 %1)
%15 = load i64, i64* inttoptr (i64 9 to i64*), align 8
store i64 %15, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%16 = ptrtoint i32* %arg2 to i64
%17 = call i64 @FUNC(i64 %16)
store i64 %17, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 1 |
reposvul_c_test | imb_is_a_hdr_174 | imb_is_a_hdr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i16, align 2
store i16 16163, i16* %sv_0, align 2
%0 = icmp ult i64 %arg2, 2
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = bitcast i16* %sv_0 to i64*
%2 = call i32 @memcmp(i64* %arg1, i64* nonnull %1, i32 2)
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = and i32 %2, -256
%6 = sext i32 %5 to i64
%7 = or i64 %6, %4
store i64 %7, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | process_arithmetic_command_10110 | process_arithmetic_command | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 %arg3)
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp ult i64 %7, 251
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0))
store i64 %9, i64* %rax.0.reg2mem
br label LBL_18
LBL_4:
%10 = add i64 %2, 32
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64* nonnull %sv_1)
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 1
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0))
store i64 %16, i64* %rax.0.reg2mem
br label LBL_18
LBL_6:
%sext = mul i64 %arg4, 72057594037927936
%17 = ashr exact i64 %sext, 56
%18 = call i64 @FUNC(i64 %2, i64 %7)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_11, label LBL_7
LBL_7:
%21 = call i32 @pthread_mutex_lock(i64* %arg2)
%22 = trunc i64 %17 to i8
%23 = icmp eq i8 %22, 0
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = add i64 %2, 40
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %26, 1
store i64 %27, i64* %25, align 8
br label LBL_10
LBL_9:
%28 = add i64 %2, 48
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, 1
store i64 %31, i64* %29, align 8
br label LBL_10
LBL_10:
%32 = call i32 @pthread_mutex_unlock(i64* %arg2)
%33 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0))
store i64 %33, i64* %rax.0.reg2mem
br label LBL_18
LBL_11:
%34 = load i64, i64* %sv_1, align 8
%35 = trunc i64 %17 to i8
%36 = call i64 @FUNC(i64 %3, i64 %18, i8 %35, i64 %34, i64* nonnull %sv_0)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 2
br i1 %38, label LBL_16, label LBL_12
LBL_12:
%39 = icmp sgt i32 %37, 2
br i1 %39, label LBL_17, label LBL_13
LBL_13:
switch i32 %37, label LBL_17 [
i32 0, label LBL_14
i32 1, label LBL_15
]
LBL_14:
%40 = bitcast i64* %sv_0 to i8*
%41 = call i64 @FUNC(i64 %3, i8* nonnull %40)
br label LBL_17
LBL_15:
%42 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_6, i64 0, i64 0))
br label LBL_17
LBL_16:
%43 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_7, i64 0, i64 0))
br label LBL_17
LBL_17:
%44 = call i64 @FUNC(i64 %18)
store i64 %44, 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 i64 %17, { 1, 0 }
uselistorder i64 %3, { 5, 3, 4, 6, 2, 1, 0, 7 }
uselistorder i64 %2, { 0, 1, 2, 3, 5, 4 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i8*)* @out_string, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_17, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | b43_bcma_remove_17635 | b43_bcma_remove | 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 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %1, 24
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %3, 24
%7 = call i64 @FUNC(i64 %6)
%8 = icmp eq i64 %3, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%11 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %10)
br label LBL_2
LBL_2:
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%16 = inttoptr i64 %3 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %1, %17
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_4
LBL_4:
%20 = add i64 %3, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %1)
%25 = add i64 %3, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27)
br label LBL_6
LBL_6:
%29 = add i64 %1, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 %3)
%34 = call i64 @FUNC(i64 %3)
%35 = add i64 %3, 16
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 3, 2, 1, 0, 5, 4, 7, 6 }
uselistorder i64 %1, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 (i64)* @cancel_work_sync, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
reposvul_c_test | MP4_ReadLengthDescriptor_197 | MP4_ReadLengthDescriptor | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %1 to i8
%3 = add i64 %1, 1
%4 = add i64 %0, -1
%5 = urem i8 %2, -128
%6 = zext i8 %5 to i32
%7 = icmp sgt i8 %2, -1
%8 = icmp eq i1 %7, false
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i64 %3, i64* %arg1, align 8
store i64 %4, i64* %arg2, align 8
%9 = mul i32 %sv_0.0.reload, 128
%10 = or i32 %9, %6
store i32 %10, i32* %sv_0.0.reg2mem
br i1 %8, label LBL_1, label LBL_2
LBL_2:
%11 = zext i32 %10 to i64
ret i64 %11
uselistorder i32 %10, { 1, 0 }
uselistorder i8 %2, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
} | 0 |
reposvul_c_test | realtime_127 | realtime | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = icmp slt i64 %arg1, 2592001
br i1 %2, label LBL_3, label LBL_2
LBL_2:
%3 = load i64, i64* @gv_0, align 8
%4 = icmp slt i64 %3, %arg1
%5 = sub i64 %arg1, %3
%spec.select = select i1 %4, i64 %5, i64 1
ret i64 %spec.select
LBL_3:
%6 = load i64, i64* @gv_1, align 8
%7 = add i64 %6, %arg1
store i64 %7, 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 %3, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg1, { 0, 2, 1, 3, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | ext4_free_io_end_11119 | ext4_free_io_end | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
%1 = zext i1 %0 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %arg1)
ret i64 %4
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | mem_info_16068 | mem_info | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.4.reg2mem = alloca i64
%rax.2.reg2mem = alloca i64
%storemerge46.reg2mem = alloca i32
%.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%5 = call i64 @FUNC()
%6 = icmp eq i64 %5, 0
store i64 0, i64* %rax.4.reg2mem
br i1 %6, label LBL_13, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = inttoptr i64 %5 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1)
store i64 %11, i64* %rax.4.reg2mem
br label LBL_13
LBL_3:
%12 = add i64 %5, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = and i32 %14, -4096
store i32 0, i32* %sv_3, align 4
store i32 -1, i32* %sv_2, align 4
%16 = bitcast i32* %sv_1 to i64*
%17 = add i64 %5, 16
%18 = inttoptr i64 %17 to i32*
%19 = bitcast i32* %sv_0 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.tr = trunc i64 %indvars.iv.reload to i32
%20 = mul i32 %indvars.iv.tr, 4
%21 = add i32 %20, %15
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22, i64* nonnull %16, i64 4)
%24 = load i32, i32* %sv_1, align 4
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
store i32 %27, i32* %sv_1, align 4
%28 = mul i64 %indvars.iv.reload, 4194304
%29 = urem i64 %26, 2
%30 = icmp eq i64 %29, 0
br i1 %30, label LBL_11, label LBL_5
LBL_5:
%31 = trunc i64 %26 to i8
%32 = icmp sgt i8 %31, -1
br i1 %32, label LBL_8, label LBL_6
LBL_6:
%33 = load i32, i32* %18, align 4
%34 = and i32 %33, 16
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = urem i64 %26, 8
%37 = trunc i64 %28 to i32
%38 = call i64 @FUNC(i64 %7, i32* nonnull %sv_2, i32* nonnull %sv_3, i32 %37, i64 %36)
store i64 %38, i64* %rax.2.reg2mem
br label LBL_12
LBL_8:
%39 = trunc i64 %28 to i32
store i32 %27, i32* %.reg2mem
store i32 0, i32* %storemerge46.reg2mem
br label LBL_9
LBL_9:
%storemerge46.reload = load i32, i32* %storemerge46.reg2mem
%.reload = load i32, i32* %.reg2mem
%40 = and i32 %.reload, -4096
%41 = mul i32 %storemerge46.reload, 4
%42 = add i32 %41, %40
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %43, i64* nonnull %19, i64 4)
%45 = load i32, i32* %sv_0, align 4
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 %46)
%48 = trunc i64 %47 to i32
store i32 %48, i32* %sv_0, align 4
%49 = mul i32 %storemerge46.reload, 4096
%50 = add nuw nsw i32 %49, %39
%51 = urem i32 %48, 2
%52 = icmp eq i32 %51, 0
%53 = urem i64 %47, 8
%storemerge5 = select i1 %52, i64 0, i64 %53
%54 = call i64 @FUNC(i64 %7, i32* nonnull %sv_2, i32* nonnull %sv_3, i32 %50, i64 %storemerge5)
%55 = add nuw nsw i32 %storemerge46.reload, 1
%exitcond = icmp eq i32 %55, 1024
store i64 %54, i64* %rax.2.reg2mem
br i1 %exitcond, label LBL_12, label LBL_9.LBL_9_crit_edge
LBL_10:
%.pre = load i32, i32* %sv_1, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %55, i32* %storemerge46.reg2mem
br label LBL_9
LBL_11:
%56 = trunc i64 %28 to i32
%57 = call i64 @FUNC(i64 %7, i32* nonnull %sv_2, i32* nonnull %sv_3, i32 %56, i64 0)
store i64 %57, i64* %rax.2.reg2mem
br label LBL_12
LBL_12:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next, 1024
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rax.2.reload, i64* %rax.4.reg2mem
br i1 %exitcond8, label LBL_13, label LBL_4
LBL_13:
%rax.4.reload = load i64, i64* %rax.4.reg2mem
ret i64 %rax.4.reload
uselistorder i32 %storemerge46.reload, { 0, 2, 1 }
uselistorder i64 %28, { 0, 2, 1 }
uselistorder i64 %26, { 0, 2, 1, 3 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %7, { 3, 2, 1, 0 }
uselistorder i32* %sv_1, { 0, 2, 1, 3 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge46.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.2.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i32*, i32*, i32, i64)* @mem_print, { 2, 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @cpu_physical_memory_read, { 1, 0 }
uselistorder i32 0, { 2, 0, 3, 1, 4 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_12, { 1, 0, 2 }
} | 1 |
BinRealVul | av_get_q_463 | av_get_q | define i64 @FUNC(i64 %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rbx.0.reg2mem = alloca i64
%xmm1.0.reg2mem = alloca i128
%0 = ptrtoint i8* %arg2 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
store i32 1, i32* %sv_2, align 4
%1 = call i128 @FUNC(i64 4607182418800017408)
%2 = call i64 @__asm_movsd.1(i128 %1)
store i64 %2, i64* %sv_1, align 8
store i32 1, i32* %sv_0, align 4
%3 = bitcast i32* %sv_2 to i64*
%4 = call i64 @FUNC(i64 %arg1, i64 %0, i64 %arg3, i64* nonnull %sv_1, i32* nonnull %sv_0, i64* nonnull %3)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967295, i64* %rbx.0.reg2mem
br i1 %7, label LBL_1, label LBL_5
LBL_1:
%8 = trunc i64 %4 to i8
%9 = call i8 @llvm.ctpop.i8(i8 %8), !range !19
%10 = urem i8 %9, 2
%11 = icmp eq i8 %10, 0
%12 = load i64, i64* %sv_1, align 8
%13 = call i128 @FUNC(i64 %12)
%14 = call i128 @FUNC(i64 4607182418800017408)
call void @FUNC(i128 %13, i128 %14)
store i128 %14, i128* %xmm1.0.reg2mem
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%15 = icmp eq i32 %5, 0
%16 = call i128 @FUNC(i64 4607182418800017408)
call void @FUNC(i128 %13, i128 %16)
%17 = icmp eq i1 %15, false
store i128 %16, i128* %xmm1.0.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = load i32, i32* %sv_2, align 4
%19 = load i32, i32* %sv_0, align 4
%20 = zext i32 %19 to i64
%21 = mul i64 %20, 4294967296
%22 = zext i32 %18 to i64
%23 = or i64 %21, %22
store i64 %23, i64* %rbx.0.reg2mem
br label LBL_5
LBL_4:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%24 = load i32, i32* %sv_2, align 4
%25 = sext i32 %24 to i64
%26 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
%27 = call i128 @FUNC(i64 %25)
%28 = load i64, i64* %sv_1, align 8
%29 = call i128 @FUNC(i64 %28)
%30 = call i128 @FUNC(i128 %29, i128 %27)
%31 = load i32, i32* %sv_0, align 4
%32 = call i128 @FUNC(i128 %27, i128 %27)
%33 = call i128 @__asm_cvtsi2sd.2(i32 %31)
%34 = call i128 @FUNC(i128 %30, i128 %33)
%35 = call i64 @FUNC(i128 %34)
%36 = call i128 @__asm_movq.3(i64 %35)
%37 = call i64 @FUNC(i64 16777216)
store i64 %37, i64* %rbx.0.reg2mem
br label LBL_5
LBL_5:
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
ret i64 %rbx.0.reload
uselistorder i128 %27, { 2, 1, 0 }
uselistorder i32* %sv_2, { 2, 1, 3, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i32* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %rbx.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | use_exit_tb_2310 | use_exit_tb | 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
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = urem i64 %9, 2
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = load i64, i64* %7, align 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = and i32 %15, 2
%17 = icmp ne i32 %16, 0
%spec.select = zext i1 %17 to i64
ret i64 %spec.select
LBL_3:
ret i64 1
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | nid_range_4709 | nid_range | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = bitcast i64* %arg3 to i32*
store i32 %3, i32* %4, align 4
%5 = trunc i64 %1 to i32
store i64 %arg1, i64* %storemerge.in.reg2mem
br label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 %storemerge)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %5, %7
%9 = icmp eq i1 %8, false
store i64 %storemerge, i64* %storemerge.in.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = add i64 %storemerge.in.reload, 4096
%10 = icmp ult i64 %storemerge, %arg2
br i1 %10, label LBL_1, label LBL_3
LBL_3:
%11 = icmp ugt i64 %storemerge, %arg2
%spec.select = select i1 %11, i64 %arg2, i64 %storemerge
ret i64 %spec.select
uselistorder i64 %storemerge, { 1, 2, 4, 3, 0 }
uselistorder i64 4096, { 1, 0 }
uselistorder i64 (i64)* @find_node, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | smk_parse_long_rule_3979 | smk_parse_long_rule | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = add i32 %1, 1
%3 = sext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3, i64 0)
%sext5 = mul i64 %4, 4294967296
%5 = icmp eq i64 %sext5, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_8
LBL_1:
%7 = ashr exact i64 %sext5, 32
%8 = sext i32 %1 to i64
%9 = call i64 @FUNC(i64 %8, i64 0)
%sext6 = mul i64 %9, 4294967296
%10 = icmp eq i64 %sext6, 0
store i64 4294967295, i64* %sv_0.2.reg2mem
br i1 %10, label LBL_7, label LBL_2
LBL_2:
%11 = ashr exact i64 %sext6, 32
%12 = call i64 @FUNC(i64 %8, i64 0)
%sext7 = mul i64 %12, 4294967296
%13 = icmp eq i64 %sext7, 0
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %13, label LBL_6, label LBL_3
LBL_3:
%14 = inttoptr i64 %7 to i8**
%15 = inttoptr i64 %11 to i8**
%16 = ashr exact i64 %sext7, 32
%17 = inttoptr i64 %16 to i8**
%18 = call i32 (i8*, i8*, ...) @sscanf(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8** %14, i8** %15, i8** %17)
%19 = icmp eq i32 %18, 3
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = ptrtoint i64* %arg2 to i64
%22 = and i64 %arg3, 4294967295
%23 = call i64 @FUNC(i64 %7, i64 %11, i64 %16, i64 %21, i64 %22, i64 0)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = call i64 @FUNC(i64 %16)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%25 = call i64 @FUNC(i64 %11)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_7
LBL_7:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%26 = call i64 @FUNC(i64 %7)
%27 = and i64 %sv_0.2.reload, 4294967295
store i64 %27, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @kzalloc, { 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | serial_reset_517 | serial_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 96, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 7, i32* %11, align 4
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i32*
store i32 12, i32* %13, align 4
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i32*
store i32 8, i32* %15, align 4
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 36
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%21 = sdiv i32 %20, 9600
%22 = mul nsw i32 %21, 9
%23 = add i64 %0, 40
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = add i64 %0, 44
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = call i64 @FUNC(i64 %0, i64 0)
%28 = call i64 @FUNC(i64 %0, i64 1)
%29 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = trunc i64 %31 to i32
%33 = add i64 %0, 56
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %0, 60
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %36, align 4
%37 = add i64 %0, 64
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %0, 48
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %41)
ret i64 %42
uselistorder i64 %0, { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @fifo_clear, { 1, 0 }
} | 0 |
BinRealVul | decrease_reservation_12606 | decrease_reservation | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge17.reg2mem = alloca i64
%rdi.2.reg2mem = alloca i64
%storemerge28.reg2mem = alloca i64
%rdi.39.reg2mem = alloca i64
%storemerge110.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %3, -1
%5 = add i64 %0, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7, i64 %0, i64 %4)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_17, label LBL_1
LBL_1:
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp ult i64 %13, 17
store i64 %13, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_17
LBL_2:
%15 = load i64, i64* %2, align 8
%16 = icmp ult i64 %7, %15
store i64 %7, i64* %storemerge17.reg2mem
br i1 %16, label LBL_3, label LBL_16
LBL_3:
%17 = add i64 %0, 24
%18 = inttoptr i64 %17 to i64*
store i64 %7, i64* %storemerge110.reg2mem
store i64 %7, i64* %rdi.39.reg2mem
br label LBL_4
LBL_4:
%rdi.39.reload = load i64, i64* %rdi.39.reg2mem
%storemerge110.reload = load i64, i64* %storemerge110.reg2mem
%19 = icmp eq i64 %storemerge110.reload, %rdi.39.reload
br i1 %19, label LBL_7, label LBL_5
LBL_5:
%20 = call i64 @FUNC()
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = add i64 %0, 40
%24 = inttoptr i64 %23 to i32*
store i32 1, i32* %24, align 4
store i64 %storemerge110.reload, i64* %storemerge17.reg2mem
br label LBL_16
LBL_7:
%25 = load i64, i64* %6, align 8
%26 = call i64 @FUNC(i64* nonnull %sv_1, i64 %25, i64 %storemerge110.reload, i64 1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %30, false
store i64 %storemerge110.reload, i64* %storemerge17.reg2mem
br i1 %31, label LBL_16, label LBL_8
LBL_8:
%32 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = load i64, i64* %sv_1, align 8
store i64 %34, i64* %sv_0, align 8
%35 = call i64 @FUNC(i64 0, i64 0, i64 16, i64* nonnull %sv_0)
br label LBL_10
LBL_10:
%36 = load i64, i64* %18, align 8
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_12, label LBL_11
LBL_11:
%40 = load i64, i64* %12, align 8
%41 = load i64, i64* %sv_1, align 8
%42 = load i64, i64* %18, align 8
%43 = call i64 @FUNC(i64 %42, i64 %41, i64 %40)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 %42, i64* %rdi.2.reg2mem
br i1 %46, label LBL_15, label LBL_12
LBL_12:
store i64 0, i64* %storemerge28.reg2mem
br label LBL_13
LBL_13:
%storemerge28.reload = load i64, i64* %storemerge28.reg2mem
%47 = load i64, i64* %sv_1, align 8
%48 = add i64 %47, %storemerge28.reload
%49 = load i64, i64* %18, align 8
%50 = call i64 @FUNC(i64 %49, i64 %48)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
store i64 %storemerge110.reload, i64* %storemerge17.reg2mem
br i1 %52, label LBL_16, label LBL_14
LBL_14:
%53 = add nuw i64 %storemerge28.reload, 1
%54 = load i64, i64* %12, align 8
%55 = trunc i64 %54 to i32
%56 = urem i32 %55, 32
%57 = shl i32 1, %56
%58 = sext i32 %57 to i64
%59 = icmp ult i64 %53, %58
store i64 %53, i64* %storemerge28.reg2mem
store i64 %49, i64* %rdi.2.reg2mem
br i1 %59, label LBL_13, label LBL_15
LBL_15:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%60 = add nuw i64 %storemerge110.reload, 1
%61 = load i64, i64* %2, align 8
%62 = icmp ult i64 %60, %61
store i64 %60, i64* %storemerge110.reg2mem
store i64 %rdi.2.reload, i64* %rdi.39.reg2mem
store i64 %60, i64* %storemerge17.reg2mem
br i1 %62, label LBL_4, label LBL_16
LBL_16:
%storemerge17.reload = load i64, i64* %storemerge17.reg2mem
store i64 %storemerge17.reload, i64* %arg1, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge110.reload, { 5, 1, 0, 3, 2, 4 }
uselistorder i64* %18, { 1, 0, 2 }
uselistorder i64* %12, { 1, 0, 2 }
uselistorder i64 %7, { 1, 2, 0, 3, 4 }
uselistorder i64* %2, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 2, 3, 0 }
uselistorder i64* %storemerge110.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.39.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge28.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge17.reg2mem, { 0, 1, 3, 2, 5, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i64 1, { 4, 5, 3, 0, 1, 2 }
uselistorder label LBL_17, { 2, 1, 0 }
uselistorder label LBL_16, { 0, 2, 1, 4, 3 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ion_carveout_heap_allocate_18504 | ion_carveout_heap_allocate | 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, i64 %arg3, i64 %arg4)
store i64 %1, i64* %arg2, align 8
%2 = icmp eq i64 %arg3, -1
%3 = icmp eq i1 %2, false
%. = select i1 %3, i64 0, i64 4294967284
ret i64 %.
} | 1 |
BinRealVul | qemu_chr_fe_get_msgfd_234 | qemu_chr_fe_get_msgfd | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%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* nonnull %1, i64 1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
%6 = load i32, i32* %sv_0, align 4
%7 = zext i32 %6 to i64
%storemerge = select i1 %5, i64 4294967295, i64 %7
ret i64 %storemerge
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | buf_format_12488 | buf_format | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.317.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%sv_0.2.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%storemerge312.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_0.213.reg2mem = alloca i64
%sv_1.114.reg2mem = alloca i32
%storemerge215.reg2mem = alloca i32
%.reg2mem22 = alloca i64
%.reg2mem = alloca i8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i32, align 4
%sv_7 = alloca i16, align 2
%sv_8 = alloca i8, align 1
%sv_9 = alloca i64, align 8
%0 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_1, label LBL_26
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = inttoptr i64 %arg3 to i8*
%4 = bitcast i32* %sv_6 to i8*
%5 = bitcast i64* %sv_5 to i8*
%6 = bitcast i16* %sv_7 to i8*
store i32 0, i32* %storemerge18.reg2mem
store i64 0, i64* %sv_0.317.reg2mem
br label LBL_25
LBL_2:
%sv_0.213.reload = load i64, i64* %sv_0.213.reg2mem
%sv_1.114.reload = load i32, i32* %sv_1.114.reg2mem
%storemerge215.reload = load i32, i32* %storemerge215.reg2mem
%.reload = load i8, i8* %.reg2mem
%7 = sext i8 %.reload to i64
%8 = add nsw i64 %7, 4294967248
%9 = and i64 %8, 4294967295
store i64 %9, i64* @0, align 8
%trunc = trunc i64 %8 to i32
store i32 2, i32* %sv_4.0.reg2mem
store i64 0, i64* %sv_3.0.reg2mem
store i64 -1, i64* %rax.0.reg2mem
switch i32 %trunc, label LBL_26 [
i32 0, label LBL_3
i32 1, label LBL_3
i32 2, label LBL_3
i32 3, label LBL_3
i32 4, label LBL_3
i32 5, label LBL_3
i32 6, label LBL_3
i32 7, label LBL_3
i32 8, label LBL_3
i32 9, label LBL_3
i32 25, label LBL_7
i32 28, label LBL_9
i32 35, label LBL_5
i32 51, label LBL_10
i32 57, label LBL_6
i32 60, label LBL_8
i32 67, label LBL_11
]
LBL_3:
%10 = icmp eq i32 %sv_1.114.reload, 1
%11 = icmp eq i1 %10, false
store i64 %sv_0.213.reload, i64* %sv_0.1.reg2mem
store i32 %sv_1.114.reload, i32* %sv_1.0.reg2mem
br i1 %11, label LBL_23, label LBL_4
LBL_4:
%.reload23 = load i64, i64* %.reg2mem22
%12 = call i64 @FUNC(i64 0, i64 %.reload23)
%13 = trunc i64 %12 to i32
store i64 %sv_0.213.reload, i64* %sv_0.1.reg2mem
store i32 %13, i32* %sv_1.0.reg2mem
br label LBL_23
LBL_5:
store i32 2, i32* %sv_4.0.reg2mem
store i64 1, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_6:
store i32 4, i32* %sv_4.0.reg2mem
store i64 0, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_7:
store i32 4, i32* %sv_4.0.reg2mem
store i64 1, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_8:
store i32 8, i32* %sv_4.0.reg2mem
store i64 0, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_9:
store i32 8, i32* %sv_4.0.reg2mem
store i64 1, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_10:
store i32 1, i32* %sv_4.0.reg2mem
store i64 0, i64* %sv_3.0.reg2mem
br label LBL_11
LBL_11:
%14 = icmp sgt i32 %sv_1.114.reload, 0
store i64 %sv_0.213.reload, i64* %sv_0.1.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br i1 %14, label LBL_12, label LBL_23
LBL_12:
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%15 = zext i32 %sv_4.0.reload to i64
%16 = icmp ugt i32 %sv_4.0.reload, 4
store i32 0, i32* %storemerge312.reg2mem
store i64 %sv_0.213.reload, i64* %sv_0.011.reg2mem
br label LBL_13
LBL_13:
%17 = call i64 @FUNC(i64 %1, i64* nonnull %sv_9, i32 %sv_4.0.reload)
%18 = icmp slt i64 %17, %15
store i64 -1, i64* %rax.0.reg2mem
br i1 %18, label LBL_26, label LBL_14
LBL_14:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%storemerge312.reload = load i32, i32* %storemerge312.reg2mem
switch i32 %sv_4.0.reload, label LBL_15 [
i32 8, label LBL_20
i32 4, label LBL_19
]
LBL_15:
store i64 %17, i64* %sv_2.0.reg2mem
br i1 %16, label LBL_21, label LBL_16
LBL_16:
store i64 %17, i64* %sv_2.0.reg2mem
switch i32 %sv_4.0.reload, label LBL_21 [
i32 1, label LBL_17
i32 2, label LBL_18
]
LBL_17:
%19 = call i64 @FUNC(i64* nonnull %sv_9)
%20 = trunc i64 %19 to i8
store i8 %20, i8* %sv_8, align 1
%21 = call i64 @FUNC(i64 %2, i8* nonnull %sv_8, i64 1)
store i64 %21, i64* %sv_2.0.reg2mem
br label LBL_21
LBL_18:
%22 = call i64 @FUNC(i64* nonnull %sv_9, i64 %sv_3.0.reload)
%23 = trunc i64 %22 to i16
store i16 %23, i16* %sv_7, align 2
%24 = call i64 @FUNC(i64 %2, i8* nonnull %6, i64 2)
store i64 %24, i64* %sv_2.0.reg2mem
br label LBL_21
LBL_19:
%25 = call i64 @FUNC(i64* nonnull %sv_9, i64 %sv_3.0.reload)
%26 = trunc i64 %25 to i32
store i32 %26, i32* %sv_6, align 4
%27 = call i64 @FUNC(i64 %2, i8* nonnull %4, i64 4)
store i64 %27, i64* %sv_2.0.reg2mem
br label LBL_21
LBL_20:
%28 = call i64 @FUNC(i64* nonnull %sv_9, i64 %sv_3.0.reload)
store i64 %28, i64* %sv_5, align 8
%29 = call i64 @FUNC(i64 %2, i8* nonnull %5, i64 8)
store i64 %29, i64* %sv_2.0.reg2mem
br label LBL_21
LBL_21:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%30 = icmp slt i64 %sv_2.0.reload, 0
%31 = icmp eq i1 %30, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %31, label LBL_22, label LBL_26
LBL_22:
%32 = add i64 %sv_2.0.reload, %sv_0.011.reload
%33 = add nuw nsw i32 %storemerge312.reload, 1
%34 = icmp slt i32 %33, %sv_1.114.reload
store i32 %33, i32* %storemerge312.reg2mem
store i64 %32, i64* %sv_0.011.reg2mem
store i64 %32, i64* %sv_0.1.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br i1 %34, label LBL_13, label LBL_23
LBL_23:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%35 = add i32 %storemerge215.reload, 1
%36 = sext i32 %35 to i64
%37 = add i64 %36, %arg3
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, 0
%41 = icmp eq i1 %40, false
store i8 %39, i8* %.reg2mem
store i64 %37, i64* %.reg2mem22
store i32 %35, i32* %storemerge215.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.114.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.213.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.lcssa.reg2mem
br i1 %41, label LBL_2, label LBL_24
LBL_24:
%sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem
%42 = add nuw nsw i32 %storemerge18.reload, 1
%43 = icmp slt i32 %42, %arg4
store i32 %42, i32* %storemerge18.reg2mem
store i64 %sv_0.2.lcssa.reload, i64* %sv_0.317.reg2mem
store i64 %sv_0.2.lcssa.reload, i64* %rax.0.reg2mem
br i1 %43, label LBL_25, label LBL_26
LBL_25:
%sv_0.317.reload = load i64, i64* %sv_0.317.reg2mem
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%44 = load i8, i8* %3, align 1
%45 = icmp eq i8 %44, 0
%46 = icmp eq i1 %45, false
store i8 %44, i8* %.reg2mem
store i64 %arg3, i64* %.reg2mem22
store i32 0, i32* %storemerge215.reg2mem
store i32 1, i32* %sv_1.114.reg2mem
store i64 %sv_0.317.reload, i64* %sv_0.213.reg2mem
store i64 %sv_0.317.reload, i64* %sv_0.2.lcssa.reg2mem
br i1 %46, label LBL_2, label LBL_24
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.317.reload, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 1, 0 }
uselistorder i32 %sv_4.0.reload, { 4, 3, 0, 2, 1 }
uselistorder i64 %sv_3.0.reload, { 2, 0, 1 }
uselistorder i32 %sv_1.114.reload, { 2, 3, 0, 1 }
uselistorder i64 %sv_0.213.reload, { 3, 0, 1, 2 }
uselistorder i64 %2, { 3, 2, 0, 1 }
uselistorder i16* %sv_7, { 1, 0 }
uselistorder i32* %sv_6, { 1, 0 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 2, 0 }
uselistorder i64* %.reg2mem22, { 1, 2, 0 }
uselistorder i32* %storemerge215.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.114.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_0.213.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 5, 3, 7, 2, 6, 4, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 5, 3, 7, 2, 6, 4, 1 }
uselistorder i32* %storemerge312.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i64* %sv_0.2.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5 }
uselistorder i64 (i64, i8*, i64)* @r_buf_write, { 3, 2, 1, 0 }
uselistorder i64 1, { 4, 1, 0, 2, 5, 6, 7, 8, 9, 10, 3 }
uselistorder i1 false, { 0, 3, 1, 2 }
uselistorder i32 8, { 2, 0, 1, 3 }
uselistorder i32 4, { 2, 3, 0, 1, 4 }
uselistorder i64 -1, { 1, 2, 0 }
uselistorder i32 2, { 2, 1, 3, 0 }
uselistorder i32 0, { 2, 1, 3, 5, 0, 4 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder label LBL_26, { 0, 2, 3, 1, 4 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 0, 1, 3, 2 }
uselistorder label LBL_21, { 1, 2, 3, 4, 0, 5 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 3, 4, 5, 6, 0 }
} | 1 |
BinRealVul | device_init_6832 | device_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 0)
%1 = call i64 @FUNC(i64 0)
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_3
LBL_2:
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
store i32 %7, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %7, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%8 = icmp eq i32 %.reload, 1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0))
store i32 1, i32* bitcast (i64* @gv_4 to i32*), align 8
store i32 4198736, i32* bitcast (i64* @gv_5 to i32*), align 8
br label LBL_6
LBL_5:
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_6, i64 0, i64 0))
%12 = call i64 @FUNC(i64 1)
store i32 0, i32* bitcast (i64* @gv_4 to i32*), align 8
%13 = call i64 @FUNC()
br label LBL_6
LBL_6:
%14 = call i64 @FUNC()
%15 = call i64 @FUNC()
%16 = call i64 @FUNC()
%17 = call i64 @FUNC()
ret i64 %17
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32* bitcast (i64* @gv_0 to i32*), { 1, 0 }
uselistorder i64 (i64)* @hw_init, { 1, 0 }
uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | export_tga_6831 | export_tga | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge67.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 22)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %2, i64 0)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %7)
%sext = mul i64 %9, 4294967296
%10 = ashr exact i64 %sext, 32
%sext1 = mul i64 %8, 4294967296
%11 = ashr exact i64 %sext1, 32
%12 = mul nsw i64 %10, %11
%13 = trunc i64 %12 to i32
%14 = call i64 @FUNC(i64 %6)
%15 = call i64 @FUNC(i64 %7)
%sext2 = mul i64 %15, 4294967296
%16 = ashr exact i64 %sext2, 32
%sext3 = mul i64 %14, 4294967296
%17 = ashr exact i64 %sext3, 32
%18 = mul nsw i64 %16, %17
%19 = trunc i64 %18 to i32
%sext4 = mul i64 %12, 4294967296
%20 = ashr exact i64 %sext4, 32
%sext5 = mul i64 %18, 4294967296
%21 = ashr exact i64 %sext5, 32
%22 = mul nsw i64 %21, %20
%23 = trunc i64 %22 to i32
%24 = mul i32 %23, 4
%25 = add i32 %24, 18
%26 = sext i32 %25 to i64
store i64 %26, i64* %arg2, align 8
%27 = call i64* @malloc(i32 0)
%28 = ptrtoint i64* %27 to i64
%29 = call i64 @FUNC(i64 %28, i64 0)
%30 = urem i64 %29, 256
%31 = add i64 %30, %28
%32 = call i64 @FUNC(i64 %31, i64 0)
%33 = urem i64 %32, 256
%34 = add i64 %31, %33
%35 = call i64 @FUNC(i64 %34, i64 2)
%36 = urem i64 %35, 256
%37 = add i64 %34, %36
%38 = inttoptr i64 %37 to i64*
%39 = call i64* @memset(i64* %38, i32 0, i32 5)
%40 = add i64 %37, 5
%41 = inttoptr i64 %40 to i8*
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8 0, i8 0)
%43 = sext i32 %42 to i64
%44 = add i64 %40, %43
%45 = inttoptr i64 %44 to i8*
%46 = call i32 (i8*, i8*, ...) @sprintf(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8 0, i8 0)
%47 = sext i32 %46 to i64
%48 = add i64 %44, %47
%49 = udiv i32 %13, 256
%50 = trunc i64 %12 to i8
%51 = inttoptr i64 %48 to i8*
%52 = trunc i32 %49 to i8
%53 = call i32 (i8*, i8*, ...) @sprintf(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8 %50, i8 %52)
%54 = sext i32 %53 to i64
%55 = add i64 %48, %54
%56 = udiv i32 %19, 256
%57 = trunc i64 %18 to i8
%58 = inttoptr i64 %55 to i8*
%59 = trunc i32 %56 to i8
%60 = call i32 (i8*, i8*, ...) @sprintf(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8 %57, i8 %59)
%61 = sext i32 %60 to i64
%62 = add i64 %55, %61
%63 = call i64 @FUNC(i64 %62, i64 32)
%64 = urem i64 %63, 256
%65 = add i64 %62, %64
%66 = call i64 @FUNC(i64 %65, i64 40)
%67 = urem i64 %66, 256
%68 = add i64 %65, %67
%69 = mul i64 %12, 4
%70 = and i64 %69, 4294967292
%71 = and i64 %18, 4294967295
%72 = call i64 @FUNC(i64 %6, i64 %7, i64 %68, i32 %13, i64 %71, i64 %70)
%73 = mul i64 %18, %69
%74 = and i64 %73, 4294967292
%75 = icmp eq i64 %74, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge67.reg2mem
br i1 %75, label LBL_4, label LBL_3
LBL_3:
%storemerge67.reload = load i32, i32* %storemerge67.reg2mem
%.reload = load i64, i64* %.reg2mem
%76 = add i64 %.reload, %68
%77 = inttoptr i64 %76 to i8*
%78 = load i8, i8* %77, align 1
%79 = or i64 %.reload, 3
%80 = add i64 %79, %68
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
store i8 %82, i8* %77, align 1
%83 = or i32 %storemerge67.reload, 3
%84 = sext i32 %83 to i64
%85 = add i64 %68, %84
%86 = inttoptr i64 %85 to i8*
store i8 %78, i8* %86, align 1
%87 = or i64 %.reload, 1
%88 = add i64 %87, %68
%89 = inttoptr i64 %88 to i8*
%90 = load i8, i8* %89, align 1
%91 = or i64 %.reload, 2
%92 = add i64 %91, %68
%93 = inttoptr i64 %92 to i8*
%94 = load i8, i8* %93, align 1
store i8 %94, i8* %89, align 1
%95 = or i32 %storemerge67.reload, 2
%96 = sext i32 %95 to i64
%97 = add i64 %68, %96
%98 = inttoptr i64 %97 to i8*
store i8 %90, i8* %98, align 1
%99 = add i32 %storemerge67.reload, 4
%100 = sext i32 %99 to i64
%101 = icmp sgt i64 %74, %100
store i64 %100, i64* %.reg2mem
store i32 %99, i32* %storemerge67.reg2mem
br i1 %101, label LBL_3, label LBL_4
LBL_4:
%102 = call i64 @FUNC(i64 %7)
store i64 %28, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.reload, { 1, 0, 2, 3 }
uselistorder i32 %storemerge67.reload, { 2, 0, 1 }
uselistorder i64 %74, { 1, 0 }
uselistorder i64 %69, { 1, 0 }
uselistorder i64 %68, { 0, 2, 3, 1, 4, 5, 6 }
uselistorder i64 %65, { 1, 0 }
uselistorder i64 %62, { 1, 0 }
uselistorder i64 %55, { 1, 0 }
uselistorder i64 %48, { 1, 0 }
uselistorder i64 %44, { 1, 0 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i64 %34, { 1, 0 }
uselistorder i64 %31, { 1, 0 }
uselistorder i64 %18, { 1, 2, 3, 0, 4 }
uselistorder i32 %13, { 1, 0 }
uselistorder i64 %12, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge67.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @write_u8, { 4, 3, 2, 1, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 32, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | openscript_5338 | openscript | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 9
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load i64, i64* bitcast ([2 x i8*]* @gv_1 to i64*), align 8
%4 = call i64 @FUNC(i64 %3)
%sext3 = mul i64 %4, 4294967296
%5 = ashr exact i64 %sext3, 32
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %10, label LBL_13, label LBL_3
LBL_3:
%11 = load i32, i32* @gv_2, align 4
%12 = zext i32 %11 to i64
%13 = icmp eq i32 %11, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_13, label LBL_4
LBL_4:
%15 = load i32, i32* @gv_0, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = add i64 %17, ptrtoint (i64* @gv_3 to i64)
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_6, label LBL_5
LBL_5:
store i32 ptrtoint (i32* @gv_4 to i32), i32* @gv_0, align 4
br label LBL_6
LBL_6:
%22 = call i64 @FUNC(i64 %arg1, i64* nonnull @gv_5, i64 1024)
%23 = load i32, i32* @gv_0, align 4
%24 = call i64 @FUNC(i64* nonnull @gv_5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_6, i64 0, i64 0))
%25 = sext i32 %23 to i64
%26 = mul i64 %25, 8
%27 = add i64 %26, ptrtoint (i64* @gv_3 to i64)
%28 = inttoptr i64 %27 to i64*
store i64 %24, i64* %28, align 8
%29 = icmp eq i64 %24, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%31 = load [21 x i8]*, [21 x i8]** @gv_7, align 8
%32 = ptrtoint [21 x i8]* %31 to i64
%33 = call i64 @FUNC(i64 %32)
%sext4 = mul i64 %33, 4294967296
%34 = ashr exact i64 %sext4, 32
%35 = call i64 @FUNC(i64 %34, i64 %arg1)
%36 = load i32, i32* @gv_0, align 4
%37 = icmp eq i32 %36, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %37, label LBL_13, label LBL_8
LBL_8:
%38 = add i32 %36, -1
%39 = zext i32 %38 to i64
store i32 %38, i32* @gv_0, align 4
store i64 %39, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%40 = call i64 @FUNC()
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, -1
%43 = trunc i64 %arg2 to i32
%44 = icmp eq i32 %43, 0
%or.cond = or i1 %44, %42
store i64 %40, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_13, label LBL_10
LBL_10:
%45 = load i32, i32* @gv_8, align 4
%46 = load i32, i32* @gv_9, align 4
%47 = load i32, i32* @gv_10, align 4
%48 = load i32, i32* @gv_11, align 4
%49 = load i32, i32* inttoptr (i64 4211988 to i32*), align 4
store i32 0, i32* @gv_8, align 4
store i32 0, i32* bitcast (i64* @gv_12 to i32*), align 8
store i32 0, i32* @gv_9, align 4
store i32 0, i32* @gv_10, align 4
%50 = bitcast i32* %sv_0 to i64*
%51 = call i64 @FUNC(i64* nonnull %50)
store i32 0, i32* @gv_11, align 4
%52 = load i32, i32* @gv_0, align 4
store i32 %52, i32* %sv_0, align 4
br label LBL_11
LBL_11:
%53 = call i64 @FUNC()
%54 = call i64 @FUNC(i64* nonnull %50, i64 0)
%55 = call i64 @FUNC()
%56 = load i32, i32* %sv_0, align 4
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 8
%59 = add i64 %58, ptrtoint (i64* @gv_3 to i64)
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_11, label LBL_12
LBL_12:
store i32 %45, i32* @gv_8, align 4
store i32 %49, i32* bitcast (i64* @gv_12 to i32*), align 8
store i32 %46, i32* @gv_9, align 4
store i32 %47, i32* @gv_10, align 4
%64 = zext i32 %48 to i64
store i32 %48, i32* @gv_11, align 4
store i64 %64, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %48, { 1, 0 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 2, 3, 6, 7, 1 }
uselistorder i32* @gv_11, { 2, 1, 0 }
uselistorder i32* @gv_10, { 2, 1, 0 }
uselistorder i32* @gv_9, { 2, 1, 0 }
uselistorder i32* @gv_8, { 2, 1, 0 }
uselistorder i64 (i64)* @_, { 1, 0 }
uselistorder i32 0, { 12, 13, 14, 15, 16, 0, 17, 18, 19, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
uselistorder i32* @gv_0, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_13, { 5, 0, 2, 1, 3, 4, 6 }
} | 0 |
BinRealVul | drdynvc_order_recv_12824 | drdynvc_order_recv | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = load i32, i32* %0
%4 = sext i32 %3 to i64
%5 = call i64 @FUNC(i64 %1, i64 %4)
%6 = udiv i32 %3, 16
%7 = urem i32 %6, 16
%8 = udiv i32 %3, 4
%9 = urem i32 %8, 4
%10 = urem i32 %3, 4
%11 = zext i32 %10 to i64
%12 = zext i32 %9 to i64
%13 = zext i32 %7 to i64
%14 = call i64 @FUNC(i64 %1, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %12, i64 %11)
store i64 %13, i64* @0, align 8
switch i32 %7, label LBL_6 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
]
LBL_1:
%15 = call i64 @FUNC(i64 %2, i32 %9, i32 %10, i64 %1)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%16 = call i64 @FUNC(i64 %2, i32 %9, i32 %10, i64 %1)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%17 = call i64 @FUNC(i64 %2, i32 %9, i32 %10, i64 %1)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%18 = call i64 @FUNC(i64 %2, i32 %9, i32 %10, i64 %1)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%19 = call i64 @FUNC(i64 %2, i32 %9, i32 %10, i64 %1)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%20 = call i64 @FUNC(i64 %1, i64 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %13, i64 %12, i64 %11)
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 i32 %10, { 1, 2, 3, 4, 5, 0 }
uselistorder i32 %9, { 1, 2, 3, 4, 5, 0 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %3, { 1, 3, 2, 0 }
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0, 7, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @WLog_Print, { 1, 0 }
uselistorder i32 4, { 3, 1, 2, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder label LBL_7, { 5, 0, 1, 2, 3, 4 }
} | 1 |
BinRealVul | __bio_map_kern_4535 | __bio_map_kern | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%sv_2.04.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i32
%0 = zext i32 %arg3 to i64
%1 = add i64 %arg2, 4095
%2 = add i64 %1, %0
%3 = udiv i64 %2, 4096
%4 = udiv i64 %arg2, 4096
%5 = trunc i64 %3 to i32
%6 = trunc i64 %4 to i32
%7 = sub i32 %5, %6
%8 = zext i32 %7 to i64
%9 = zext i32 %arg4 to i64
%10 = call i64 @FUNC(i64 %9, i64 %8)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 -12, i64* %storemerge.reg2mem
br i1 %12, label LBL_1, label LBL_7
LBL_1:
%13 = call i64 @FUNC(i64 %arg2)
%14 = icmp sgt i32 %7, 0
br i1 %14, label LBL_2, label LBL_6
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = trunc i64 %13 to i32
store i32 0, i32* %storemerge15.reg2mem
store i32 %16, i32* %sv_2.04.reg2mem
store i32 %arg3, i32* %sv_1.03.reg2mem
store i64 %arg2, i64* %sv_0.02.reg2mem
br label LBL_3
LBL_3:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%17 = icmp eq i32 %sv_1.03.reload, 0
br i1 %17, label LBL_6, label LBL_4
LBL_4:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_2.04.reload = load i32, i32* %sv_2.04.reg2mem
%18 = sub i32 4096, %sv_2.04.reload
%19 = icmp ugt i32 %18, %sv_1.03.reload
%spec.select = select i1 %19, i32 %sv_1.03.reload, i32 %18
%20 = call i64 @FUNC(i64 %sv_0.02.reload)
%21 = zext i32 %sv_2.04.reload to i64
%22 = zext i32 %spec.select to i64
%23 = call i64 @FUNC(i64 %15, i64 %10, i64 %20, i64 %22, i64 %21)
%24 = trunc i64 %23 to i32
%25 = icmp ugt i32 %spec.select, %24
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%26 = add i64 %sv_0.02.reload, %22
%27 = sub i32 %sv_1.03.reload, %spec.select
%28 = add nuw nsw i32 %storemerge15.reload, 1
%29 = icmp slt i32 %28, %7
store i32 %28, i32* %storemerge15.reg2mem
store i32 0, i32* %sv_2.04.reg2mem
store i32 %27, i32* %sv_1.03.reg2mem
store i64 %26, i64* %sv_0.02.reg2mem
br i1 %29, label LBL_3, label LBL_6
LBL_6:
%30 = inttoptr i64 %10 to i64*
store i64 4198820, i64* %30, align 8
store i64 %10, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %spec.select, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i32 %sv_1.03.reload, { 1, 0, 3, 2 }
uselistorder i64 %10, { 0, 2, 1, 3 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.04.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg2, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.