dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | ssh_bind_accept_fd_5778 | ssh_bind_accept_fd | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_2:
%3 = inttoptr i64 %arg2 to i32*
store i32 1, i32* %3, align 4
%4 = add i64 %arg2, 4
%5 = inttoptr i64 %4 to i32*
store i32 2, i32* %5, align 4
%6 = add i64 %arg2, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 8
%8 = add i64 %7, %arg1
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = inttoptr i64 %10 to i8*
%13 = call i8* @strdup(i8* %12)
%14 = ptrtoint i8* %13 to i64
%15 = add i64 %6, %7
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = icmp eq i8* %13, null
%18 = icmp eq i1 %17, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_21
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%19 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %19, label LBL_3, label LBL_6
LBL_6:
%20 = add i64 %arg1, 80
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
%24 = icmp eq i1 %23, false
%25 = add i64 %arg2, 88
%26 = inttoptr i64 %25 to i64*
br i1 %24, label LBL_8, label LBL_7
LBL_7:
store i64 0, i64* %26, align 8
br label LBL_9
LBL_8:
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
call void @free(i64* %28)
store i64 0, i64* %26, align 8
%29 = load i64, i64* %21, align 8
%30 = inttoptr i64 %29 to i8*
%31 = call i8* @strdup(i8* %30)
%32 = ptrtoint i8* %31 to i64
store i64 %32, i64* %26, align 8
%33 = icmp eq i8* %31, null
%34 = icmp eq i1 %33, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_9, label LBL_21
LBL_9:
%35 = add i64 %arg1, 88
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %arg2, 104
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %arg1, 128
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %42, 0
br i1 %43, label LBL_11, label LBL_10
LBL_10:
%44 = inttoptr i64 %42 to i8*
%45 = call i8* @strdup(i8* %44)
%46 = ptrtoint i8* %45 to i64
%47 = add i64 %arg2, 96
%48 = inttoptr i64 %47 to i64*
store i64 %46, i64* %48, align 8
br label LBL_11
LBL_11:
%49 = add i64 %arg2, 112
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i64 @FUNC(i64 %51)
%53 = call i64 @FUNC(i64 %arg2)
store i64 %53, i64* %50, align 8
%54 = icmp eq i64 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_13, label LBL_12
LBL_12:
%56 = call i64 @FUNC(i64 %arg1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_13:
%57 = zext i32 %arg3 to i64
%58 = call i64 @FUNC(i64 %53, i64 %57)
%59 = load i64, i64* %50, align 8
%60 = call i64 @FUNC(i64 %59)
%61 = call i64 @FUNC(i64 %arg1)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %63, label LBL_14, label LBL_21
LBL_14:
%64 = add i64 %arg1, 112
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = icmp eq i64 %66, 0
br i1 %67, label LBL_17, label LBL_15
LBL_15:
%68 = call i64 @FUNC(i64 %66)
%69 = add i64 %arg2, 128
%70 = inttoptr i64 %69 to i64*
store i64 %68, i64* %70, align 8
%71 = icmp eq i64 %68, 0
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_17, label LBL_16
LBL_16:
%73 = call i64 @FUNC(i64 %arg1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_17:
%74 = add i64 %arg1, 120
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = icmp eq i64 %76, 0
br i1 %77, label LBL_20, label LBL_18
LBL_18:
%78 = call i64 @FUNC(i64 %76)
%79 = add i64 %arg2, 136
%80 = inttoptr i64 %79 to i64*
store i64 %78, i64* %80, align 8
%81 = icmp eq i64 %78, 0
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_20, label LBL_19
LBL_19:
%83 = call i64 @FUNC(i64 %arg1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_20:
%84 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %53, { 1, 0, 2 }
uselistorder i64* %26, { 0, 1, 3, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 2, 5, 3, 1, 4 }
uselistorder i64 (i64)* @ssh_key_dup, { 1, 0 }
uselistorder i64 (i64)* @ssh_set_error_oom, { 2, 1, 0 }
uselistorder i8* null, { 1, 0 }
uselistorder i8* (i8*)* @strdup, { 2, 1, 0 }
uselistorder i64 4294967295, { 6, 5, 1, 4, 2, 0, 3, 7 }
uselistorder i64 (i64, i64, i8*)* @ssh_set_error, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 2, 1, 3, 4, 0, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %arg1, { 4, 5, 3, 6, 7, 2, 8, 9, 10, 0, 1 }
uselistorder label LBL_21, { 3, 4, 5, 1, 6, 2, 0, 7 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | v9fs_fsync_1863 | v9fs_fsync | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%1 = bitcast i32* %sv_1 to i64*
%2 = bitcast i32* %sv_2 to i64*
%3 = call i64 @FUNC(i64 %0, i64 7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %1, i64* nonnull %2)
%4 = load i32, i32* %sv_2, align 4
%5 = zext i32 %4 to i64
%6 = load i32, i32* %sv_1, align 4
%7 = zext i32 %6 to i64
%8 = add i64 %0, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %0, 8
%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, i32 %10, i64 %7, i64 %5)
%16 = load i32, i32* %sv_1, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i32 -2, i32* %sv_0.1.reg2mem
br i1 %20, label LBL_1, label LBL_2
LBL_1:
%21 = load i32, i32* %sv_2, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %0, i64 %18, i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
%spec.select = select i1 %26, i32 %24, i32 7
%27 = call i64 @FUNC(i64 %0, i64 %18)
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_2
LBL_2:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%28 = call i64 @FUNC(i64 %0, i64 %0, i32 %sv_0.1.reload)
ret i64 %28
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | do_readlink_1953 | do_readlink | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i8*, align 8
%1 = bitcast i8** %sv_2 to i64*
%2 = call i64 @FUNC(i64* nonnull %1)
%3 = bitcast i32* %sv_1 to i64*
%4 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %1, i64* nonnull %3)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64* nonnull %1)
store i32 %5, i32* %storemerge.in.reg2mem
br label LBL_6
LBL_2:
%9 = load i32, i32* %sv_1, align 4
%10 = sext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64* nonnull %sv_0)
%13 = load i32, i32* %sv_1, align 4
%14 = add i32 %13, -1
%15 = load i8*, i8** %sv_2, align 8
%16 = inttoptr i64 %11 to i8*
%17 = call i32 @readlink(i8* %15, i8* %16, i32 %14)
%18 = icmp slt i32 %17, 1
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = ptrtoint i64* %arg2 to i64
%20 = sext i32 %17 to i64
%21 = add i64 %11, %20
%22 = inttoptr i64 %21 to i8*
store i8 0, i8* %22, align 1
%23 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %11)
%24 = call i64 @FUNC(i64 %19, i64 0, i64* nonnull @gv_2, i64* nonnull %sv_0)
%25 = trunc i64 %24 to i32
store i32 %25, i32* %storemerge3.reg2mem
br label LBL_5
LBL_4:
%26 = call i32* @__errno_location()
%27 = load i32, i32* %26, align 4
%28 = sub i32 0, %27
store i32 %28, i32* %storemerge3.reg2mem
br label LBL_5
LBL_5:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%29 = call i64 @FUNC(i64 %11)
%30 = call i64 @FUNC(i64* nonnull %sv_0)
%31 = call i64 @FUNC(i64* nonnull %1)
store i32 %storemerge3.reload, i32* %storemerge.in.reg2mem
br label LBL_6
LBL_6:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i64 %11, { 2, 1, 0, 3 }
uselistorder i64* %1, { 1, 0, 2, 3 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @v9fs_string_free, { 2, 1, 0 }
uselistorder i64 (i64*)* @v9fs_string_init, { 1, 0 }
} | 0 |
BinRealVul | dmg_close_1982 | dmg_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %0, 32
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 40
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = add i64 %0, 48
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = add i64 %0, 56
%27 = call i64 @FUNC(i64 %26)
ret i64 %27
uselistorder i64 (i64)* @qemu_vfree, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | ff_thread_flush_15225 | ff_thread_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = inttoptr i64 %2 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = inttoptr i64 %8 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %0, i64 %11, i64 0)
br label LBL_3
LBL_3:
%13 = add i64 %0, 20
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %0, 24
%18 = inttoptr i64 %17 to i32*
store i32 1, i32* %18, align 4
store i64 0, i64* %7, align 8
br label LBL_4
LBL_4:
ret i64 %0
uselistorder i64 %0, { 0, 2, 3, 4, 1, 5, 6 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | sock_def_error_report_10010 | sock_def_error_report | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2, i64 1)
br label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 2, i64 3)
%8 = call i64 @FUNC()
ret i64 %8
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | writefile_5586 | writefile | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call %_IO_FILE* @fopen(i8* %arg1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%1 = icmp eq %_IO_FILE* %0, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i8* %arg1 to i64
%4 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 %3)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%5 = icmp eq i64* %arg2, null
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_6, label LBL_3
LBL_3:
%6 = ptrtoint i64* %arg2 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = trunc i64 %9 to i32
%11 = call i32 @fwrite(i64* bitcast ([2 x i8]* @gv_0 to i64*), i32 1, i32 %10, %_IO_FILE* %0)
%12 = sext i32 %11 to i64
%13 = load i64, i64* %8, align 8
%14 = icmp eq i64 %13, %12
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i32 @fflush(%_IO_FILE* %0)
%17 = icmp eq i32 %16, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = ptrtoint i8* %arg1 to i64
%19 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 %18)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%20 = call i32 @fclose(%_IO_FILE* %0)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder %_IO_FILE* %0, { 2, 0, 1, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i8*, i64)* @warn, { 1, 0 }
uselistorder [2 x i8]* @gv_0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i8* %arg1, { 1, 0, 2 }
} | 0 |
BinRealVul | irc_raw_message_add_to_list_4027 | irc_raw_message_add_to_list | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ne i8* %arg2, null
%1 = icmp eq i8* %arg3, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_1:
%3 = call i64 @FUNC()
%4 = call i64* @malloc(i32 40)
%5 = ptrtoint i64* %4 to i64
%6 = icmp eq i64* %4, null
store i64 %5, i64* %storemerge.reg2mem
br i1 %6, label LBL_6, label LBL_2
LBL_2:
store i64 %arg1, i64* %4, align 8
%7 = call i8* @strdup(i8* nonnull %arg2)
%8 = ptrtoint i8* %7 to i64
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = call i8* @strdup(i8* %arg3)
%12 = ptrtoint i8* %11 to i64
%13 = add i64 %5, 16
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = load i64, i64* @gv_0, align 8
%16 = add i64 %5, 24
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = add i64 %5, 32
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %19, align 8
%20 = load i64, i64* @gv_1, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = load i64, i64* @gv_0, align 8
%23 = add i64 %22, 32
%24 = inttoptr i64 %23 to i64*
store i64 %5, i64* %24, align 8
br label LBL_5
LBL_4:
store i64 %5, i64* @gv_1, align 8
br label LBL_5
LBL_5:
store i64 %5, i64* @gv_0, align 8
store i32 ptrtoint (i32* @gv_2 to i32), i32* bitcast (i64* @gv_3 to i32*), align 8
store i64 %5, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 1, 3, 4, 2, 5, 6, 7, 8, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i8* %arg3, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 0 |
BinRealVul | usb_enable_lpm_10269 | usb_enable_lpm | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_13, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = icmp slt i32 %4, 3
store i64 %5, i64* %rax.0.reg2mem
br i1 %6, label LBL_13, label LBL_2
LBL_2:
%7 = add i64 %1, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_13, label LBL_3
LBL_3:
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = icmp slt i32 %13, 1
store i64 %14, i64* %rax.0.reg2mem
br i1 %15, label LBL_13, label LBL_4
LBL_4:
%16 = add i64 %1, 20
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i32 %18, -1
store i32 %19, i32* %17, align 4
%20 = add i64 %1, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = icmp eq i64 %23, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_13, label LBL_5
LBL_5:
%25 = inttoptr i64 %23 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_13, label LBL_6
LBL_6:
%30 = add i64 %26, 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_13, label LBL_7
LBL_7:
%34 = load i32, i32* %17, align 4
%35 = zext i32 %34 to i64
%36 = icmp eq i32 %34, 0
%37 = icmp slt i32 %34, 0
%38 = icmp eq i1 %37, false
%39 = icmp eq i1 %36, false
%40 = icmp eq i1 %38, %39
store i64 %35, i64* %rax.0.reg2mem
br i1 %40, label LBL_13, label LBL_8
LBL_8:
%41 = call i64 @FUNC(i64 %22)
%42 = icmp eq i64 %41, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %42, label LBL_13, label LBL_9
LBL_9:
%43 = inttoptr i64 %41 to i64*
%44 = load i64, i64* %43, align 8
%45 = add i64 %1, 32
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = sext i32 %47 to i64
%49 = mul i64 %48, 8
%50 = add i64 %44, -8
%51 = add i64 %50, %49
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_11, label LBL_10
LBL_10:
%57 = call i64 @FUNC(i64 %23, i64 %1, i64 1)
br label LBL_11
LBL_11:
%58 = add i64 %53, 4
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = icmp eq i32 %60, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_13, label LBL_12
LBL_12:
%62 = call i64 @FUNC(i64 %23, i64 %1, i64 2)
store i64 %62, 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 %34, { 1, 0, 2 }
uselistorder i64 %23, { 1, 0, 2, 3 }
uselistorder i64 %1, { 1, 0, 2, 3, 4, 5, 6, 7 }
uselistorder i64 (i64, i64, i64)* @usb_enable_link_state, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_13, { 9, 10, 0, 1, 4, 3, 2, 8, 7, 6, 5 }
} | 0 |
BinRealVul | brcmf_cfg80211_detach_6792 | brcmf_cfg80211_detach | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1)
%4 = call i64 @FUNC(i64 %arg1)
%5 = add i64 %arg1, 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %5)
%8 = call i64 @FUNC(i64 %arg1)
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
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 5, 4, 2, 3, 1, 6 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mp3_read_probe_17646 | mp3_read_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa171819.reg2mem = alloca i32
%sv_1.17.reg2mem = alloca i32
%sv_0.08.reg2mem = alloca i32
%sv_2.09.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%sv_3.0.lcssa.reg2mem = alloca i64
%sv_3.02.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_5 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %0, i64* %sv_4.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%sext = mul i64 %4, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = add i64 %5, %0
store i64 %6, i64* %sv_4.0.reg2mem
br label LBL_2
LBL_2:
%sv_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sext i32 %9 to i64
%11 = add i64 %sv_4.0.reload, -4
%12 = add i64 %11, %10
%13 = icmp ult i64 %sv_4.0.reload, %12
store i64 %sv_4.0.reload, i64* %sv_2.09.reg2mem
store i32 0, i32* %sv_0.08.reg2mem
store i32 0, i32* %sv_1.17.reg2mem
store i32 0, i32* %sv_0.0.lcssa171819.reg2mem
br i1 %13, label LBL_6, label LBL_10
LBL_3:
%sv_3.02.reload = load i64, i64* %sv_3.02.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%14 = inttoptr i64 %sv_3.02.reload to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i32
%17 = mul i32 %16, 16777216
%18 = add i64 %sv_3.02.reload, 1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = zext i8 %20 to i32
%22 = mul i32 %21, 65536
%23 = or i32 %22, %17
%24 = add i64 %sv_3.02.reload, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i32
%28 = mul i32 %27, 256
%29 = or i32 %23, %28
%30 = add i64 %sv_3.02.reload, 3
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = zext i8 %32 to i32
%34 = or i32 %29, %33
%35 = call i64 @FUNC(i64* nonnull %sv_5, i32 %34, i64* nonnull %sv_5, i64* nonnull %sv_5, i64* nonnull %sv_5, i64* nonnull %sv_5)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %36, 0
store i64 %sv_3.02.reload, i64* %sv_3.0.lcssa.reg2mem
store i32 %storemerge3.reload, i32* %storemerge.lcssa.reg2mem
br i1 %37, label LBL_5, label LBL_4
LBL_4:
%sext1 = mul i64 %35, 4294967296
%38 = ashr exact i64 %sext1, 32
%39 = add i64 %38, %sv_3.02.reload
%40 = add i32 %storemerge3.reload, 1
%41 = icmp ult i64 %39, %12
store i32 %40, i32* %storemerge3.reg2mem
store i64 %39, i64* %sv_3.02.reg2mem
store i64 %39, i64* %sv_3.0.lcssa.reg2mem
store i32 %40, i32* %storemerge.lcssa.reg2mem
br i1 %41, label LBL_3, label LBL_5
LBL_5:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%sv_3.0.lcssa.reload = load i64, i64* %sv_3.0.lcssa.reg2mem
%42 = sub i32 %sv_0.08.reload, %storemerge.lcssa.reload
%43 = xor i32 %storemerge.lcssa.reload, %sv_0.08.reload
%44 = xor i32 %42, %sv_0.08.reload
%45 = and i32 %44, %43
%46 = icmp slt i32 %45, 0
%47 = icmp slt i32 %42, 0
%48 = icmp eq i1 %47, %46
%49 = select i1 %48, i32 %sv_0.08.reload, i32 %storemerge.lcssa.reload
%50 = icmp eq i64 %sv_2.09.reload, %sv_4.0.reload
%51 = icmp eq i1 %50, false
%spec.select = select i1 %51, i32 %sv_1.17.reload, i32 %storemerge.lcssa.reload
%52 = add i64 %sv_3.0.lcssa.reload, 1
%53 = icmp ult i64 %52, %12
store i64 %52, i64* %sv_2.09.reg2mem
store i32 %49, i32* %sv_0.08.reg2mem
store i32 %spec.select, i32* %sv_1.17.reg2mem
br i1 %53, label LBL_6, label LBL_7
LBL_6:
%sv_1.17.reload = load i32, i32* %sv_1.17.reg2mem
%sv_0.08.reload = load i32, i32* %sv_0.08.reg2mem
%sv_2.09.reload = load i64, i64* %sv_2.09.reg2mem
%54 = icmp ult i64 %sv_2.09.reload, %12
store i32 0, i32* %storemerge3.reg2mem
store i64 %sv_2.09.reload, i64* %sv_3.02.reg2mem
store i64 %sv_2.09.reload, i64* %sv_3.0.lcssa.reg2mem
store i32 0, i32* %storemerge.lcssa.reg2mem
br i1 %54, label LBL_3, label LBL_5
LBL_7:
%phitmp = icmp slt i32 %spec.select, 3
store i64 51, i64* %rax.0.reg2mem
br i1 %phitmp, label LBL_8, label LBL_11
LBL_8:
%55 = icmp slt i32 %49, 501
store i64 50, i64* %rax.0.reg2mem
br i1 %55, label LBL_9, label LBL_11
LBL_9:
%56 = icmp slt i32 %49, 3
store i32 %49, i32* %sv_0.0.lcssa171819.reg2mem
store i64 25, i64* %rax.0.reg2mem
br i1 %56, label LBL_10, label LBL_11
LBL_10:
%sv_0.0.lcssa171819.reload = load i32, i32* %sv_0.0.lcssa171819.reg2mem
%57 = icmp sgt i32 %sv_0.0.lcssa171819.reload, 0
%. = zext i1 %57 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_2.09.reload, { 3, 2, 0, 1 }
uselistorder i32 %sv_0.08.reload, { 0, 2, 3, 1 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %49, { 0, 2, 3, 1 }
uselistorder i32 %42, { 1, 0 }
uselistorder i32 %storemerge.lcssa.reload, { 0, 2, 3, 1 }
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i64 %sv_3.02.reload, { 5, 0, 4, 3, 1, 2 }
uselistorder i64 %12, { 1, 3, 2, 0 }
uselistorder i64 %sv_4.0.reload, { 1, 0, 3, 2 }
uselistorder i64 %0, { 3, 1, 2, 0, 4 }
uselistorder i32* %storemerge3.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_3.02.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_3.0.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i64* %sv_2.09.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.08.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.17.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.lcssa171819.reg2mem, { 0, 2, 1 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 0, { 5, 3, 4, 6, 7, 8, 0, 1, 2, 9 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 1 |
BinRealVul | segmented_read_std_11429 | segmented_read_std | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i32 %arg3, i64 0, i64* nonnull %sv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = and i64 %1, 4294967295
%storemerge = select i1 %3, i64 %0, i64 %4
ret i64 %storemerge
} | 1 |
BinRealVul | jswrap_graphics_createArrayBuffer_7769 | jswrap_graphics_createArrayBuffer | 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
%0 = trunc i64 %arg1 to i32
%1 = icmp slt i32 %0, 1
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = trunc i64 %arg2 to i32
%3 = icmp slt i32 %0, 32768
%.off = add i32 %2, -1
%4 = icmp ult i32 %.off, 32767
%5 = icmp eq i1 %3, %4
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_3:
%7 = and i64 %arg3, 4294967295
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_5:
%13 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_6, label LBL_20
LBL_6:
%16 = call i64 @FUNC(i64* nonnull %sv_0)
%sext7 = mul i64 %arg1, 281474976710656
%17 = ashr exact i64 %sext7, 48
store i64 %17, i64* %sv_0, align 8
%18 = call i64 @FUNC(i64 %arg4)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_19, label LBL_7
LBL_7:
%21 = call i64 @FUNC(i64 %arg4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 0)
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 %arg4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 0)
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC(i64 %arg4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_5, i64 0, i64 0), i64 0)
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_10, label LBL_8
LBL_8:
%29 = trunc i64 %arg3 to i8
%30 = icmp eq i8 %29, 1
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_9, label LBL_10
LBL_9:
%32 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_6, i64 0, i64 0))
br label LBL_10
LBL_10:
%33 = call i64 @FUNC(i64 %arg4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_7, i64 0, i64 0), i64 0)
%34 = icmp eq i64 %33, 0
br i1 %34, label LBL_19, label LBL_11
LBL_11:
%35 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_8, i64 0, i64 0))
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_18, label LBL_12
LBL_12:
%39 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0))
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_13, label LBL_18
LBL_13:
%43 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_10, i64 0, i64 0))
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_14, label LBL_18
LBL_14:
%47 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0))
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_15, label LBL_18
LBL_15:
%51 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_12, i64 0, i64 0))
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_16, label LBL_18
LBL_16:
%55 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_13, i64 0, i64 0))
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_17, label LBL_18
LBL_17:
%59 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_14, i64 0, i64 0))
br label LBL_18
LBL_18:
%60 = call i64 @FUNC(i64 %33)
br label LBL_19
LBL_19:
%61 = call i64 @FUNC(i64* nonnull %sv_0)
%62 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %13, 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 %33, { 5, 0, 1, 2, 3, 4, 6, 7 }
uselistorder i64* %sv_0, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64, i8*)* @jsvIsStringEqual, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i8*)* @jsWarn, { 1, 0 }
uselistorder i64 (i64)* @jsvGetBoolAndUnLock, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @jsvObjectGetChild, { 3, 2, 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 12, 2, 0 }
uselistorder i64 (i64, i8*)* @jsExceptionHere, { 1, 0 }
uselistorder i64 1, { 3, 4, 0, 1, 2 }
uselistorder i32 1, { 5, 7, 3, 2, 1, 0, 4, 6 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_20, { 1, 0, 2, 3 }
uselistorder label LBL_18, { 5, 0, 1, 2, 3, 4, 6 }
uselistorder label LBL_10, { 1, 0, 2 }
} | 1 |
BinRealVul | tls1_set_server_sigalgs_3699 | tls1_set_server_sigalgs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%storemerge23.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 40
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 %0, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3)
%6 = add i64 %3, 40
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = add i64 %3, 48
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
store i64 0, i64* %storemerge23.reg2mem
br label LBL_3
LBL_3:
%storemerge23.reload = load i64, i64* %storemerge23.reg2mem
%10 = mul i64 %storemerge23.reload, 4
%11 = add i64 %10, %rdi.0.reload
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add nuw nsw i64 %storemerge23.reload, 1
%exitcond = icmp eq i64 %13, 10
store i64 %13, i64* %storemerge23.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%14 = add i64 %rdi.0.reload, 56
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_9, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i64 1, i64 2)
store i32 4, i32* %storemerge.reg2mem
br label LBL_10
LBL_7:
%23 = load i64, i64* %2, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 1, i64* %storemerge1.reg2mem
br i1 %25, label LBL_11, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64 1, i64 3)
store i32 5, i32* %storemerge.reg2mem
br label LBL_10
LBL_9:
%27 = call i64 @FUNC(i64 %rdi.0.reload)
store i64 1, i64* %storemerge1.reg2mem
br label LBL_11
LBL_10:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%28 = call i64 @FUNC(i64 %0, i64 6, i32 %storemerge.reload)
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 %3, { 0, 3, 2, 1, 4 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @SSLerr, { 1, 0 }
uselistorder i64 1, { 1, 3, 0, 4, 5, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 0 |
BinRealVul | xsltNumberFormatGetAnyLevel_4763 | xsltNumberFormatGetAnyLevel | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3, i32* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%sv_0.2.reg2mem = alloca i32
%.in.reg2mem = alloca i64
%.pre-phi23.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%.ph.reg2mem = alloca i32*
%.reg2mem28 = alloca i64
%.reg2mem26 = alloca i32*
%sv_0.17.reg2mem = alloca i32
%.reg2mem24 = alloca i32*
%.reg2mem = alloca i32*
%1 = load i128, i128* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = trunc i64 %2 to i32
%4 = icmp sgt i32 %3, 5
store i32 0, i32* %sv_0.2.reg2mem
br i1 %4, label LBL_17, label LBL_1
LBL_1:
%5 = icmp sgt i32 %3, 2
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%.off13 = add i32 %3, -1
%switch14 = icmp ult i32 %.off13, 2
store i32* %arg2, i32** %.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br i1 %switch14, label LBL_4, label LBL_17
LBL_3:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
store i32* %9, i32** %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i32*, i32** %.reg2mem
%10 = icmp eq i32* %.reload, null
%11 = icmp eq i1 %10, false
store i32 0, i32* %sv_0.2.reg2mem
br i1 %11, label LBL_5, label LBL_17
LBL_5:
%12 = ptrtoint i64* %arg1 to i64
%13 = ptrtoint i32* %arg4 to i64
%14 = ptrtoint i32* %arg3 to i64
%15 = icmp eq i32* %arg4, null
store i32* %.reload, i32** %.reg2mem24
store i32 0, i32* %sv_0.17.reg2mem
br label LBL_6
LBL_6:
%sv_0.17.reload = load i32, i32* %sv_0.17.reg2mem
%.reload25 = load i32*, i32** %.reg2mem24
%16 = ptrtoint i32* %.reload25 to i64
%17 = call i64 @FUNC(i64 %12, i64 %16, i64 %14, i64 %2)
%18 = trunc i64 %17 to i32
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i32
%spec.select = add i32 %sv_0.17.reload, %20
br i1 %15, label LBL_8, label LBL_7
LBL_7:
%21 = call i64 @FUNC(i64 %12, i64 %16, i64 %13)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i32 %spec.select, i32* %sv_0.2.reg2mem
br i1 %24, label LBL_17, label LBL_8
LBL_8:
%25 = load i32, i32* %.reload25, align 4
%.off = add i32 %25, -6
%switch = icmp ult i32 %.off, 3
store i32 %spec.select, i32* %sv_0.2.reg2mem
br i1 %switch, label LBL_17, label LBL_9
LBL_9:
%26 = add i64 %16, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
store i64 %16, i64* %.pre-phi23.reg2mem
br i1 %29, label LBL_15, label LBL_10
LBL_10:
%30 = inttoptr i64 %28 to i32*
%31 = load i32, i32* %30, align 4
%.off515 = add i32 %31, -9
%switch616 = icmp ult i32 %.off515, 3
store i32* %30, i32** %.reg2mem26
store i64 %28, i64* %.reg2mem28
store i32* %.reload25, i32** %.ph.reg2mem
br i1 %switch616, label LBL_11, label LBL_13
LBL_11:
%.reload29 = load i64, i64* %.reg2mem28
%.reload27 = load i32*, i32** %.reg2mem26
%32 = add i64 %.reload29, 16
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
store i32* %.reload27, i32** %.ph.reg2mem
br i1 %35, label LBL_13, label LBL_12
LBL_12:
%36 = inttoptr i64 %34 to i32*
%37 = load i32, i32* %36, align 4
%.off5 = add i32 %37, -9
%switch6 = icmp ult i32 %.off5, 3
store i32* %36, i32** %.reg2mem26
store i64 %34, i64* %.reg2mem28
store i32* %.reload27, i32** %.ph.reg2mem
br i1 %switch6, label LBL_11, label LBL_13
LBL_13:
%.ph.reload = load i32*, i32** %.ph.reg2mem
%.pre = ptrtoint i32* %.ph.reload to i64
%.pre19 = add i64 %.pre, 16
%.pre21 = inttoptr i64 %.pre19 to i64*
%.pr = load i64, i64* %.pre21, align 8
%38 = icmp eq i64 %.pr, 0
store i64 %.pr, i64* %storemerge.in.reg2mem
store i64 %.pre, i64* %.pre-phi23.reg2mem
br i1 %38, label LBL_15, label LBL_14
LBL_14:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%39 = add i64 %storemerge.in.reload, 24
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 %41, i64* %storemerge.in.reg2mem
store i64 %storemerge.in.reload, i64* %.in.reg2mem
br i1 %43, label LBL_14, label LBL_16
LBL_15:
%.pre-phi23.reload = load i64, i64* %.pre-phi23.reg2mem
%44 = add i64 %.pre-phi23.reload, 8
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
store i64 %46, i64* %.in.reg2mem
br label LBL_16
LBL_16:
%.in.reload = load i64, i64* %.in.reg2mem
%47 = inttoptr i64 %.in.reload to i32*
%48 = icmp eq i64 %.in.reload, 0
%49 = icmp eq i1 %48, false
store i32* %47, i32** %.reg2mem24
store i32 %spec.select, i32* %sv_0.17.reg2mem
store i32 %spec.select, i32* %sv_0.2.reg2mem
br i1 %49, label LBL_6, label LBL_17
LBL_17:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%50 = call i128 @FUNC(i128 %1, i128 %1)
%51 = call i128 @FUNC(i32 %sv_0.2.reload)
%52 = call i64 @FUNC(i128 %51)
store i64 %52, i64* %arg5, align 8
ret i64 1
uselistorder i64 %.in.reload, { 1, 0 }
uselistorder i32* %.reload27, { 1, 0 }
uselistorder i32 %spec.select, { 0, 3, 2, 1 }
uselistorder i64 %16, { 0, 2, 1, 3 }
uselistorder i32 %3, { 0, 2, 1 }
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i32** %.reg2mem, { 0, 2, 1 }
uselistorder i32** %.reg2mem24, { 1, 0, 2 }
uselistorder i32* %sv_0.17.reg2mem, { 1, 0, 2 }
uselistorder i32** %.reg2mem26, { 2, 0, 1 }
uselistorder i64* %.reg2mem28, { 2, 0, 1 }
uselistorder i32** %.ph.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre-phi23.reg2mem, { 0, 2, 1 }
uselistorder i64* %.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 1, 3, 2, 6, 4, 5 }
uselistorder i32 -9, { 1, 0 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i32 3, { 1, 0, 2 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i32* null, { 1, 0 }
uselistorder i32 0, { 4, 5, 3, 2, 0, 1 }
uselistorder label LBL_17, { 0, 2, 1, 5, 3, 4 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | hci_uart_send_frame_10087 | hci_uart_send_frame | 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 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = ptrtoint i32* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = and i64 %5, 4294967295
%7 = and i64 %1, 4294967295
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64* %arg1, i64 %6, i64 %7)
%9 = add i64 %3, 16
%10 = call i64 @FUNC(i64 %9)
%11 = call i64 @FUNC(i64 0, i64 %3)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = call i64 @FUNC(i64 %9)
store i64 1, i64* %storemerge.reg2mem
br i1 %14, label LBL_1, label LBL_2
LBL_1:
%16 = call i64 @FUNC(i64 %3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pdf_load_xobject_11267 | pdf_load_xobject | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* @gv_0, align 8
%3 = call i64 @FUNC(i64 %1, i64 %2, i64 %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_1, label LBL_2
LBL_1:
call void @llvm.trap()
unreachable
LBL_2:
ret i64 %3
} | 1 |
BinRealVul | ivi_process_empty_tile_7730 | ivi_process_empty_tile | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.01863.reg2mem = alloca i64
%sv_1.01764.reg2mem = alloca i64
%.reg2mem103 = alloca i32
%.reg2mem101 = alloca i32
%.reg2mem99 = alloca i32
%.lcssa1652.reg2mem = alloca i32
%.reg2mem97 = alloca i32
%.reg2mem95 = alloca i32
%storemerge20.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_5.2.in21.reg2mem = alloca i64
%sv_6.022.reg2mem = alloca i32
%sv_7.1.lcssa.reg2mem = alloca i32
%sv_8.1.lcssa.reg2mem = alloca i64
%sv_5.0.lcssa.reg2mem = alloca i32*
%.reg2mem93 = alloca i32
%.reg2mem91 = alloca i32
%.reg2mem89 = alloca i32
%.reg2mem87 = alloca i32
%.reg2mem85 = alloca i32
%sv_7.0.reg2mem = alloca i32
%storemerge8.reg2mem = alloca i32
%.pre-phi46.reg2mem = alloca i32*
%sv_5.023.reg2mem = alloca i32*
%sv_8.124.reg2mem = alloca i64
%sv_7.127.reg2mem = alloca i32
%sv_9.028.reg2mem = alloca i32
%storemerge729.reg2mem = alloca i32
%sv_10.032.reg2mem = alloca i32
%sv_5.134.reg2mem = alloca i32*
%sv_8.235.reg2mem = alloca i64
%sv_7.236.reg2mem = alloca i32
%storemerge637.reg2mem = alloca i32
%.reg2mem83 = alloca i32
%.reg2mem81 = alloca i32
%.reg2mem79 = alloca i32
%.reg2mem77 = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%rdx = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i32* %arg2 to i64
%sv_11 = alloca i64, align 8
%5 = trunc i64 %2 to i32
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = mul i32 %11, %8
%13 = add i64 %4, 48
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = ashr i32 %12, 31
%17 = zext i32 %12 to i64
%18 = zext i32 %16 to i64
%19 = mul i64 %18, 4294967296
%20 = or i64 %19, %17
%21 = zext i32 %15 to i64
%22 = sdiv i64 %20, %21
%23 = trunc i64 %22 to i32
%24 = ashr i32 %23, 31
%25 = and i64 %22, 4294967295
%26 = zext i32 %24 to i64
%27 = mul i64 %26, 4294967296
%28 = or i64 %27, %25
%29 = sdiv i64 %28, %21
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %5, %30
br i1 %31, label LBL_2, label LBL_1
LBL_1:
%32 = ptrtoint i64* %arg1 to i64
%33 = and i64 %29, 4294967295
%34 = and i64 %2, 4294967295
%35 = call i64 @FUNC(i64 %32, i64 0, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_0, i64 0, i64 0), i64 %34, i64 %33, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_36
LBL_2:
%36 = add i64 %3, 12
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %4, 52
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %3, 16
%43 = inttoptr i64 %42 to i32*
%44 = add i32 %38, %11
%45 = zext i32 %44 to i64
%46 = sext i32 %38 to i64
%47 = icmp slt i64 %46, %45
br i1 %47, label LBL_4, label LBL_2.LBL_33_crit_edge
LBL_3:
%.pre76 = load i32, i32* %43, align 4
store i32 %.pre76, i32* %.reg2mem95
store i32 %41, i32* %.reg2mem97
store i32 %38, i32* %.lcssa1652.reg2mem
store i32 %11, i32* %.reg2mem99
store i32 %8, i32* %.reg2mem101
br label LBL_33
LBL_4:
%48 = ptrtoint i64* %sv_11 to i64
%49 = bitcast i64* %rdx to i32*
%50 = add i64 %3, 24
%51 = inttoptr i64 %50 to i64*
%52 = mul i32 %41, %15
%53 = add i64 %3, 32
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = load i64, i64* %51, align 8
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %43, align 4
%59 = mul i32 %41, %38
%60 = add i32 %58, %59
%61 = add i64 %4, 4
%62 = inttoptr i64 %61 to i32*
%63 = add i64 %4, 8
%64 = inttoptr i64 %63 to i32*
%65 = add i64 %4, 12
%66 = inttoptr i64 %65 to i32*
%67 = bitcast i64* %rsi to i32*
%68 = add i64 %4, 16
%69 = inttoptr i64 %68 to i32*
%70 = add i64 %4, 20
%71 = inttoptr i64 %70 to i32*
%72 = icmp eq i32 %arg4, 0
%73 = zext i32 %arg4 to i64
store i32 %11, i32* %.reg2mem
store i32 %38, i32* %.reg2mem77
store i32 %15, i32* %.reg2mem79
store i32 %8, i32* %.reg2mem81
store i32 %58, i32* %.reg2mem83
store i32 %38, i32* %storemerge637.reg2mem
store i32 0, i32* %sv_7.236.reg2mem
store i64 %55, i64* %sv_8.235.reg2mem
store i32* %57, i32** %sv_5.134.reg2mem
store i32 %60, i32* %sv_10.032.reg2mem
br label LBL_5
LBL_5:
%sv_10.032.reload = load i32, i32* %sv_10.032.reg2mem
%sv_5.134.reload = load i32*, i32** %sv_5.134.reg2mem
%sv_8.235.reload = load i64, i64* %sv_8.235.reg2mem
%sv_7.236.reload = load i32, i32* %sv_7.236.reg2mem
%storemerge637.reload = load i32, i32* %storemerge637.reg2mem
%.reload84 = load i32, i32* %.reg2mem83
%.reload82 = load i32, i32* %.reg2mem81
%.reload80 = load i32, i32* %.reg2mem79
%.reload78 = load i32, i32* %.reg2mem77
%.reload = load i32, i32* %.reg2mem
%74 = add i32 %.reload84, %.reload82
%75 = zext i32 %74 to i64
%76 = sext i32 %.reload84 to i64
%77 = icmp slt i64 %76, %75
store i32 %.reload84, i32* %storemerge729.reg2mem
store i32 %sv_10.032.reload, i32* %sv_9.028.reg2mem
store i32 %sv_7.236.reload, i32* %sv_7.127.reg2mem
store i64 %sv_8.235.reload, i64* %sv_8.124.reg2mem
store i32* %sv_5.134.reload, i32** %sv_5.023.reg2mem
store i32 %.reload, i32* %.reg2mem85
store i32 %.reload78, i32* %.reg2mem87
store i32 %.reload80, i32* %.reg2mem89
store i32 %.reload82, i32* %.reg2mem91
store i32 %.reload84, i32* %.reg2mem93
store i32* %sv_5.134.reload, i32** %sv_5.0.lcssa.reg2mem
store i64 %sv_8.235.reload, i64* %sv_8.1.lcssa.reg2mem
store i32 %sv_7.236.reload, i32* %sv_7.1.lcssa.reg2mem
br i1 %77, label LBL_6, label LBL_21
LBL_6:
%sv_5.023.reload = load i32*, i32** %sv_5.023.reg2mem
%sv_8.124.reload = load i64, i64* %sv_8.124.reg2mem
%sv_7.127.reload = load i32, i32* %sv_7.127.reg2mem
%sv_9.028.reload = load i32, i32* %sv_9.028.reg2mem
%storemerge729.reload = load i32, i32* %storemerge729.reg2mem
store i32 %storemerge729.reload, i32* %sv_5.023.reload, align 4
%78 = ptrtoint i32* %sv_5.023.reload to i64
%79 = add i64 %78, 4
%80 = inttoptr i64 %79 to i32*
store i32 %storemerge637.reload, i32* %80, align 4
%81 = add i64 %78, 8
%82 = inttoptr i64 %81 to i32*
store i32 %sv_9.028.reload, i32* %82, align 4
%83 = add i64 %78, 12
%84 = inttoptr i64 %83 to i32*
store i32 1, i32* %84, align 4
%85 = add i64 %78, 16
%86 = inttoptr i64 %85 to i32*
store i32 0, i32* %86, align 4
%87 = load i32, i32* %62, align 4
%88 = icmp eq i32 %87, 0
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_10, label LBL_7
LBL_7:
%90 = load i32, i32* %64, align 4
%91 = icmp eq i32 %90, 0
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_10, label LBL_8
LBL_8:
%93 = load i32, i32* %66, align 4
%94 = icmp eq i32 %93, 0
%95 = icmp eq i1 %94, false
br i1 %95, label LBL_10, label LBL_9
LBL_9:
%96 = load i32, i32* %67, align 8
%97 = add i64 %78, 20
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
%99 = add i64 %78, 24
%100 = inttoptr i64 %99 to i32*
store i32 0, i32* %100, align 4
%101 = add i64 %78, 28
%102 = inttoptr i64 %101 to i32*
store i32 0, i32* %102, align 4
br label LBL_10
LBL_10:
%103 = load i32, i32* %69, align 4
%104 = icmp eq i32 %103, 0
%105 = icmp eq i64 %sv_8.124.reload, 0
%or.cond = or i1 %105, %104
br i1 %or.cond, label LBL_12, label LBL_11
LBL_11:
%106 = add i64 %sv_8.124.reload, 20
%107 = inttoptr i64 %106 to i32*
%108 = load i32, i32* %107, align 4
%109 = add i64 %78, 20
%110 = inttoptr i64 %109 to i32*
store i32 %108, i32* %110, align 4
br label LBL_12
LBL_12:
%111 = load i32, i32* %71, align 4
%112 = icmp eq i32 %111, 0
%or.cond11 = or i1 %105, %112
store i32 %sv_7.127.reload, i32* %sv_7.0.reg2mem
br i1 %or.cond11, label LBL_19, label LBL_13
LBL_13:
%113 = add i64 %sv_8.124.reload, 24
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
br i1 %72, label LBL_15, label LBL_14
LBL_14:
%116 = zext i32 %115 to i64
%117 = call i64 @FUNC(i64 %116, i64 %73)
%118 = trunc i64 %117 to i32
%119 = add i64 %78, 24
%120 = inttoptr i64 %119 to i32*
store i32 %118, i32* %120, align 4
%121 = add i64 %sv_8.124.reload, 28
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
%124 = zext i32 %123 to i64
%125 = call i64 @FUNC(i64 %124, i64 %73)
%126 = trunc i64 %125 to i32
%127 = add i64 %78, 28
%128 = inttoptr i64 %127 to i32*
store i32 %126, i32* %128, align 4
store i32* %120, i32** %.pre-phi46.reg2mem
br label LBL_16
LBL_15:
%129 = add i64 %78, 24
%130 = inttoptr i64 %129 to i32*
store i32 %115, i32* %130, align 4
%131 = add i64 %sv_8.124.reload, 28
%132 = inttoptr i64 %131 to i32*
%133 = load i32, i32* %132, align 4
%134 = add i64 %78, 28
%135 = inttoptr i64 %134 to i32*
store i32 %133, i32* %135, align 4
store i32* %130, i32** %.pre-phi46.reg2mem
br label LBL_16
LBL_16:
%.pre-phi46.reload = load i32*, i32** %.pre-phi46.reg2mem
%136 = load i32, i32* %.pre-phi46.reload, align 4
%137 = icmp eq i32 %136, 0
%138 = icmp eq i1 %137, false
store i32 1, i32* %storemerge8.reg2mem
br i1 %138, label LBL_18, label LBL_17
LBL_17:
%139 = add i64 %78, 28
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 4
%142 = icmp ne i32 %141, 0
%spec.select = zext i1 %142 to i32
store i32 %spec.select, i32* %storemerge8.reg2mem
br label LBL_18
LBL_18:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%143 = or i32 %storemerge8.reload, %sv_7.127.reload
store i32 %143, i32* %sv_7.0.reg2mem
br label LBL_19
LBL_19:
%sv_7.0.reload = load i32, i32* %sv_7.0.reg2mem
%144 = add i64 %78, 32
%145 = inttoptr i64 %144 to i32*
%146 = add i64 %sv_8.124.reload, 32
%spec.select14 = select i1 %105, i64 0, i64 %146
%147 = load i32, i32* %14, align 4
%148 = add i32 %147, %sv_9.028.reload
%149 = add i32 %147, %storemerge729.reload
%150 = load i32, i32* %43, align 4
%151 = load i32, i32* %7, align 4
%152 = add i32 %151, %150
%153 = zext i32 %152 to i64
%154 = sext i32 %149 to i64
%155 = icmp slt i64 %154, %153
store i32 %149, i32* %storemerge729.reg2mem
store i32 %148, i32* %sv_9.028.reg2mem
store i32 %sv_7.0.reload, i32* %sv_7.127.reg2mem
store i64 %spec.select14, i64* %sv_8.124.reg2mem
store i32* %145, i32** %sv_5.023.reg2mem
br i1 %155, label LBL_6, label LBL_20
LBL_20:
%.pre = load i32, i32* %37, align 4
%.pre44 = load i32, i32* %10, align 4
store i32 %.pre44, i32* %.reg2mem85
store i32 %.pre, i32* %.reg2mem87
store i32 %147, i32* %.reg2mem89
store i32 %151, i32* %.reg2mem91
store i32 %150, i32* %.reg2mem93
store i32* %145, i32** %sv_5.0.lcssa.reg2mem
store i64 %spec.select14, i64* %sv_8.1.lcssa.reg2mem
store i32 %sv_7.0.reload, i32* %sv_7.1.lcssa.reg2mem
br label LBL_21
LBL_21:
%sv_7.1.lcssa.reload = load i32, i32* %sv_7.1.lcssa.reg2mem
%sv_8.1.lcssa.reload = load i64, i64* %sv_8.1.lcssa.reg2mem
%sv_5.0.lcssa.reload = load i32*, i32** %sv_5.0.lcssa.reg2mem
%.reload94 = load i32, i32* %.reg2mem93
%.reload92 = load i32, i32* %.reg2mem91
%.reload90 = load i32, i32* %.reg2mem89
%.reload88 = load i32, i32* %.reg2mem87
%.reload86 = load i32, i32* %.reg2mem85
%156 = add i32 %sv_10.032.reload, %52
%157 = add i32 %.reload90, %storemerge637.reload
%158 = add i32 %.reload88, %.reload86
%159 = zext i32 %158 to i64
%160 = sext i32 %157 to i64
%161 = icmp slt i64 %160, %159
store i32 %.reload86, i32* %.reg2mem
store i32 %.reload88, i32* %.reg2mem77
store i32 %.reload90, i32* %.reg2mem79
store i32 %.reload92, i32* %.reg2mem81
store i32 %.reload94, i32* %.reg2mem83
store i32 %157, i32* %storemerge637.reg2mem
store i32 %sv_7.1.lcssa.reload, i32* %sv_7.236.reg2mem
store i64 %sv_8.1.lcssa.reload, i64* %sv_8.235.reg2mem
store i32* %sv_5.0.lcssa.reload, i32** %sv_5.134.reg2mem
store i32 %156, i32* %sv_10.032.reg2mem
br i1 %161, label LBL_5, label LBL_22
LBL_22:
%162 = load i32, i32* %71, align 4
%163 = icmp eq i32 %162, 0
%164 = icmp eq i32 %sv_7.1.lcssa.reload, 0
%or.cond13 = or i1 %164, %163
br i1 %or.cond13, label LBL_22.LBL_33_crit_edge, label LBL_24
LBL_23:
%.pre75 = load i32, i32* %40, align 4
store i32 %.reload94, i32* %.reg2mem95
store i32 %.pre75, i32* %.reg2mem97
store i32 %.reload88, i32* %.lcssa1652.reg2mem
store i32 %.reload86, i32* %.reg2mem99
store i32 %.reload92, i32* %.reg2mem101
br label LBL_33
LBL_24:
%165 = add i64 %4, 28
%166 = inttoptr i64 %165 to i32*
%167 = load i32, i32* %166, align 4
%168 = load i32, i32* %49, align 8
%169 = icmp eq i32 %168, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %169, label LBL_36, label LBL_25
LBL_25:
%170 = icmp eq i32 %.reload90, %167
%171 = select i1 %170, i32 1, i32 4
%172 = icmp eq i32 %167, 8
%173 = icmp eq i1 %172, false
%storemerge3 = select i1 %173, i64 4198866, i64 4198833
%174 = load i64, i64* %51, align 8
%175 = add i64 %4, 24
%176 = inttoptr i64 %175 to i32*
%177 = add i64 %4, 40
%178 = inttoptr i64 %177 to i64*
%179 = add i64 %4, 32
%180 = inttoptr i64 %179 to i64*
%181 = add i64 %48, -8
%182 = inttoptr i64 %181 to i64*
%183 = add i64 %48, -16
%184 = inttoptr i64 %183 to i64*
store i32 0, i32* %sv_6.022.reg2mem
store i64 %174, i64* %sv_5.2.in21.reg2mem
br label LBL_26
LBL_26:
%sv_5.2.in21.reload = load i64, i64* %sv_5.2.in21.reg2mem
%sv_6.022.reload = load i32, i32* %sv_6.022.reg2mem
%185 = add i64 %sv_5.2.in21.reload, 24
%186 = inttoptr i64 %185 to i32*
%187 = load i32, i32* %186, align 4
%188 = add i64 %sv_5.2.in21.reload, 28
%189 = inttoptr i64 %188 to i32*
%190 = load i32, i32* %189, align 4
%191 = load i32, i32* %176, align 4
%192 = icmp eq i32 %191, 0
%193 = icmp eq i1 %192, false
store i32 %187, i32* %sv_4.0.reg2mem
store i32 %190, i32* %sv_3.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
br i1 %193, label LBL_27, label LBL_28
LBL_27:
%194 = mul i32 %190, 2
%195 = and i32 %194, 2
%196 = urem i32 %187, 2
%197 = or i32 %195, %196
%198 = ashr i32 %187, 1
%199 = ashr i32 %190, 1
store i32 %198, i32* %sv_4.0.reg2mem
store i32 %199, i32* %sv_3.0.reg2mem
store i32 %197, i32* %sv_2.0.reg2mem
br label LBL_28
LBL_28:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%200 = add i64 %sv_5.2.in21.reload, 8
%201 = inttoptr i64 %200 to i32*
%202 = zext i32 %sv_2.0.reload to i64
%203 = zext i32 %sv_4.0.reload to i64
store i32 0, i32* %storemerge20.reg2mem
br label LBL_29
LBL_29:
%storemerge20.reload = load i32, i32* %storemerge20.reg2mem
%204 = load i32, i32* %201, align 4
%205 = load i32, i32* %166, align 4
%206 = urem i32 %storemerge20.reload, 2
%207 = and i32 %storemerge20.reload, 2
%208 = icmp eq i32 %207, 0
%209 = icmp eq i1 %208, false
%210 = load i32, i32* %40, align 4
%211 = select i1 %209, i32 %210, i32 0
%212 = add i32 %211, %206
%213 = mul i32 %212, %205
%214 = add i32 %213, %204
%215 = zext i32 %210 to i64
%216 = load i64, i64* %178, align 8
%217 = load i64, i64* %180, align 8
store i64 %202, i64* %182, align 8
store i64 %215, i64* %184, align 8
%218 = sext i32 %214 to i64
%219 = call i64 @FUNC(i64 %storemerge3, i64 %217, i64 %216, i32 %214, i64 %203, i32 %sv_3.0.reload, i64 %218, i64 ptrtoint (i32* @0 to i64))
%220 = trunc i64 %219 to i32
%221 = icmp slt i32 %220, 0
%222 = icmp eq i1 %221, false
br i1 %222, label LBL_31, label LBL_30
LBL_30:
%223 = and i64 %219, 4294967295
store i64 %223, i64* %rax.0.reg2mem
br label LBL_36
LBL_31:
%224 = add nuw nsw i32 %storemerge20.reload, 1
%225 = icmp ult i32 %224, %171
store i32 %224, i32* %storemerge20.reg2mem
br i1 %225, label LBL_29, label LBL_32
LBL_32:
%226 = add i64 %sv_5.2.in21.reload, 32
%227 = add i32 %sv_6.022.reload, 1
%228 = load i32, i32* %49, align 8
%229 = zext i32 %228 to i64
%230 = sext i32 %227 to i64
%231 = icmp slt i64 %230, %229
store i32 %227, i32* %sv_6.022.reg2mem
store i64 %226, i64* %sv_5.2.in21.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %231, label LBL_26, label LBL_36
LBL_33:
%.reload100 = load i32, i32* %.reg2mem99
%232 = icmp eq i32 %.reload100, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %232, label LBL_36, label LBL_34
LBL_34:
%.reload102 = load i32, i32* %.reg2mem101
%.lcssa1652.reload = load i32, i32* %.lcssa1652.reg2mem
%.reload98 = load i32, i32* %.reg2mem97
%.reload96 = load i32, i32* %.reg2mem95
%233 = mul i32 %.reload98, %.lcssa1652.reload
%234 = sext i32 %233 to i64
%235 = sext i32 %.reload96 to i64
%236 = add nsw i64 %235, %234
%237 = add i64 %4, 32
%238 = inttoptr i64 %237 to i64*
%239 = load i64, i64* %238, align 8
%240 = add i64 %239, %236
%241 = add i64 %4, 40
%242 = inttoptr i64 %241 to i64*
%243 = load i64, i64* %242, align 8
%244 = add i64 %243, %236
%245 = inttoptr i64 %240 to i64*
%246 = inttoptr i64 %244 to i64*
%247 = call i64* @memcpy(i64* %245, i64* %246, i32 %.reload102)
%248 = load i32, i32* %10, align 4
%249 = icmp ugt i32 %248, 1
store i32 1, i32* %.reg2mem103
store i64 %244, i64* %sv_1.01764.reg2mem
store i64 %240, i64* %sv_0.01863.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %249, label LBL_35, label LBL_36
LBL_35:
%sv_0.01863.reload = load i64, i64* %sv_0.01863.reg2mem
%sv_1.01764.reload = load i64, i64* %sv_1.01764.reg2mem
%.reload104 = load i32, i32* %.reg2mem103
%.in.in = load i32, i32* %40, align 4
%.in = sext i32 %.in.in to i64
%250 = mul i64 %.in, 2
%251 = add i64 %250, %sv_0.01863.reload
%252 = add i64 %250, %sv_1.01764.reload
%.pre45 = load i32, i32* %7, align 4
%253 = inttoptr i64 %251 to i64*
%254 = inttoptr i64 %252 to i64*
%255 = call i64* @memcpy(i64* %253, i64* %254, i32 %.pre45)
%256 = add i32 %.reload104, 1
%257 = load i32, i32* %10, align 4
%258 = zext i32 %257 to i64
%259 = sext i32 %256 to i64
%260 = icmp slt i64 %259, %258
store i32 %256, i32* %.reg2mem103
store i64 %252, i64* %sv_1.01764.reg2mem
store i64 %251, i64* %sv_0.01863.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %260, label LBL_35, label LBL_36
LBL_36:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %250, { 1, 0 }
uselistorder i32 %190, { 2, 1, 0 }
uselistorder i32 %187, { 2, 1, 0 }
uselistorder i32 %.reload86, { 0, 2, 1 }
uselistorder i32 %.reload88, { 0, 2, 1 }
uselistorder i32 %.reload90, { 1, 2, 0 }
uselistorder i32 %115, { 1, 0 }
uselistorder i1 %105, { 2, 0, 1 }
uselistorder i64 %78, { 9, 6, 7, 8, 4, 5, 3, 0, 1, 2, 10, 11, 12, 13 }
uselistorder i32 %storemerge729.reload, { 1, 0 }
uselistorder i32 %sv_9.028.reload, { 1, 0 }
uselistorder i32 %sv_7.127.reload, { 1, 0 }
uselistorder i64 %sv_8.124.reload, { 5, 1, 0, 2, 4, 3 }
uselistorder i32 %storemerge637.reload, { 1, 0 }
uselistorder i32 %sv_10.032.reload, { 1, 0 }
uselistorder i32* %49, { 1, 0 }
uselistorder i64 %48, { 1, 0 }
uselistorder i32* %43, { 1, 2, 0 }
uselistorder i32 %41, { 1, 2, 0 }
uselistorder i32* %40, { 1, 2, 0, 3 }
uselistorder i32 %38, { 1, 2, 3, 0, 5, 4 }
uselistorder i32 %11, { 1, 0, 2, 3 }
uselistorder i32* %10, { 2, 0, 1, 3 }
uselistorder i32 %8, { 1, 0, 2 }
uselistorder i64 %4, { 4, 3, 1, 0, 2, 5, 6, 7, 10, 9, 8, 11, 12 }
uselistorder i64 %3, { 0, 2, 3, 1, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem77, { 1, 0, 2 }
uselistorder i32* %.reg2mem79, { 1, 0, 2 }
uselistorder i32* %.reg2mem81, { 1, 0, 2 }
uselistorder i32* %.reg2mem83, { 1, 0, 2 }
uselistorder i32* %storemerge637.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_7.236.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_8.235.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_5.134.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_10.032.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge729.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_9.028.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_7.127.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_8.124.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_5.023.reg2mem, { 2, 0, 1 }
uselistorder i32** %.pre-phi46.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem85, { 0, 2, 1 }
uselistorder i32* %.reg2mem87, { 0, 2, 1 }
uselistorder i32* %.reg2mem89, { 0, 2, 1 }
uselistorder i32* %.reg2mem91, { 0, 2, 1 }
uselistorder i32* %.reg2mem93, { 0, 2, 1 }
uselistorder i32** %sv_5.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_8.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_7.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_6.022.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_5.2.in21.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge20.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem95, { 0, 2, 1 }
uselistorder i32* %.reg2mem97, { 0, 2, 1 }
uselistorder i32* %.lcssa1652.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem99, { 0, 2, 1 }
uselistorder i32* %.reg2mem101, { 0, 2, 1 }
uselistorder i32* %.reg2mem103, { 2, 0, 1 }
uselistorder i64* %sv_1.01764.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.01863.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 5, 1, 7, 4, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i32 2, { 3, 1, 2, 4, 0 }
uselistorder i64 (i64, i64)* @ivi_scale_mv, { 1, 0 }
uselistorder i64 28, { 0, 7, 1, 2, 3, 4, 5, 6 }
uselistorder i32 0, { 4, 8, 7, 9, 0, 1, 10, 2, 5, 6, 22, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 3, 13 }
uselistorder i64 20, { 1, 2, 3, 0 }
uselistorder i64 32, { 2, 4, 3, 5, 6, 7, 0, 1 }
uselistorder i64 24, { 1, 0, 2, 4, 3, 5, 6 }
uselistorder i64 16, { 1, 0, 2 }
uselistorder i64 12, { 1, 0, 2 }
uselistorder i64 0, { 2, 1, 4, 0, 3, 5, 6, 9, 7, 8, 10 }
uselistorder i64 4294967295, { 2, 0, 1, 3, 4, 5 }
uselistorder i64 8, { 0, 2, 1, 3 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder label LBL_36, { 2, 1, 4, 0, 5, 3, 6 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | r_flag_relocate_8380 | r_flag_relocate | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.11.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = sub i64 0, %arg3
%2 = sub i64 %1, 1
%3 = ptrtoint i64* %arg1 to i64
%4 = and i64 %arg4, %arg3
%5 = and i64 %2, %arg4
store i64 %3, i64* %storemerge2.reg2mem
store i32 0, i32* %sv_0.11.reg2mem
br label LBL_5
LBL_2:
%6 = inttoptr i64 %21 to i64*
%7 = load i64, i64* %6, align 8
%8 = xor i64 %7, %arg2
%9 = and i64 %8, %2
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i32 %sv_0.11.reload, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = and i64 %7, %arg3
%13 = or i64 %12, %5
%14 = add i64 %13, %4
store i64 %14, i64* %6, align 8
%15 = add i32 %sv_0.11.reload, 1
store i32 %15, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%16 = add i64 %storemerge2.reload, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i64 %18, i64* %storemerge2.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.11.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%sv_0.11.reload = load i32, i32* %sv_0.11.reg2mem
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%20 = inttoptr i64 %storemerge2.reload to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i32 %sv_0.11.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %23, label LBL_2, label LBL_6
LBL_6:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%24 = zext i32 %sv_0.1.lcssa.reload to i64
ret i64 %24
uselistorder i64 %21, { 1, 0 }
uselistorder i64 %storemerge2.reload, { 1, 0 }
uselistorder i32 %sv_0.11.reload, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | erase_line_18758 | erase_line | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.reg2mem = alloca i32
%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
%sext = mul i64 %arg2, 4294967296
%6 = trunc i64 %arg3 to i32
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
%9 = add i64 %5, 4
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %5, 16
%12 = inttoptr i64 %11 to i32*
%13 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge4.reg2mem
br label LBL_2
LBL_2:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%14 = load i64, i64* %8, align 8
%15 = load i32, i32* %10, align 4
%16 = add i32 %15, %storemerge4.reload
%17 = load i32, i32* %12, align 4
%18 = mul i32 %17, %16
%19 = sext i32 %18 to i64
%20 = add i64 %14, %13
%21 = add i64 %20, %19
%22 = inttoptr i64 %21 to i64*
%23 = call i64* @memset(i64* %22, i32 0, i32 %6)
%24 = add i32 %storemerge4.reload, 1
%25 = sext i32 %24 to i64
%26 = icmp sgt i64 %3, %25
store i32 %24, i32* %storemerge4.reg2mem
br i1 %26, label LBL_2, label LBL_3
LBL_3:
ret i64 %3
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | load_segment_descriptor_3696 | load_segment_descriptor | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i32 %arg3, 0
%.pre = trunc i64 %arg2 to i16
%2 = icmp eq i16 %.pre, 3
%3 = icmp eq i1 %1, %2
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 1
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 1)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%10 = trunc i64 %0 to i8
%11 = zext i32 %arg3 to i64
%12 = call i64 @FUNC(i64 %0, i16 %.pre, i64 %11, i8 %10, i64 0, i64 0)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 3, 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | t1_init_params_9204 | t1_init_params | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load [18 x i8]*, [18 x i8]** @gv_0, align 8
%1 = ptrtoint [18 x i8]* %0 to i64
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2, i64 %1)
store i32 4, i32* bitcast (i64* @gv_1 to i32*), align 8
store i32 55665, i32* bitcast (i64* @gv_2 to i32*), align 8
store i32 55665, i32* bitcast (i64* @gv_3 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_4 to i32*), align 8
store i8 0, i8* bitcast (i64* @gv_5 to i8*), align 8
store i8 1, i8* bitcast (i64* @gv_6 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_7 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_8 to i8*), align 8
store i32 0, i32* bitcast (i64* @gv_9 to i32*), align 8
%4 = call i64 @FUNC()
ret i64 %4
} | 0 |
BinRealVul | _pick_next_task_rt_12921 | _pick_next_task_rt | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%1 = call i64 @FUNC(i64 %sv_0.0.reload)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %1)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %1)
ret i64 %8
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | devfreq_update_status_4752 | devfreq_update_status | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = icmp eq i64* %arg1, null
store i64 0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %3, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_5
LBL_2:
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%sext = mul i64 %3, 4294967296
%10 = ashr exact i64 %sext, 29
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %13, %1
%18 = sub i64 %17, %16
store i64 %18, i64* %12, align 8
%19 = call i64 @FUNC(i64 %0, i64 %arg2)
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 %19, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_3, label LBL_5
LBL_3:
%23 = icmp eq i32 %20, %4
store i64 0, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = add i64 %0, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %0, 40
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = mul i32 %31, %4
%33 = add i32 %32, %20
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 4
%36 = add i64 %35, %26
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i32 %38, 1
store i32 %39, i32* %37, align 4
%40 = add i64 %0, 24
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i32 %42, 1
store i32 %43, i32* %41, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%44 = add i64 %0, 8
%45 = inttoptr i64 %44 to i64*
store i64 %1, i64* %45, align 8
%46 = and i64 %sv_0.0.reload, 4294967295
ret i64 %46
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 8, 0, 2, 1, 3, 5, 4, 7, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2, 5 }
uselistorder i64 (i64, i64)* @devfreq_get_freq_level, { 1, 0 }
uselistorder label LBL_5, { 4, 2, 0, 1, 3 }
} | 0 |
BinRealVul | usb_create_simple_16421 | usb_create_simple | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = ptrtoint i8* %arg2 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %2)
ret i64 %2
} | 1 |
BinRealVul | v9fs_readlink_307 | v9fs_readlink | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%3 = bitcast i32* %sv_2 to i64*
%4 = call i64 @FUNC(i64 %2, i64 7, i64* nonnull @gv_0, i64* nonnull %3)
%5 = load i32, i32* %sv_2, align 4
%6 = zext i32 %5 to i64
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %9, i64 %10, i64 %6)
%12 = load i32, i32* %sv_2, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %2, i64 %13)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i32 -2, i32* %sv_0.1.reg2mem
br i1 %16, label LBL_1, label LBL_4
LBL_1:
%17 = call i64 @FUNC(i64* nonnull %sv_1)
%18 = call i64 @FUNC(i64 %2, i64 %14, i64* nonnull %sv_1)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
store i32 %19, i32* %sv_0.0.reg2mem
br i1 %20, label LBL_3, label LBL_2
LBL_2:
%21 = call i64 @FUNC(i64 %2, i64 7, i64* nonnull @gv_1, i64* nonnull %sv_1)
%22 = trunc i64 %21 to i32
%23 = add i32 %22, 7
%24 = call i64 @FUNC(i64* nonnull %sv_1)
store i32 %23, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = call i64 @FUNC(i64 %2, i64 %14)
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%.reload = load i64, i64* %.reg2mem
%26 = load i64, i64* %8, align 8
%27 = call i64 @FUNC(i64 %26, i64 %10, i64 %.reload)
%28 = add i64 %2, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i64 %2, i32 %sv_0.1.reload)
ret i64 %31
uselistorder i64 %10, { 1, 0 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | update_thread_context_709 | update_thread_context | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, %arg2
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %1, label LBL_1, label LBL_9
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %3)
%5 = icmp eq i64* %arg1, null
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %3, i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.shrunk.reg2mem
br i1 %9, label LBL_3, label LBL_9
LBL_3:
%10 = add i64 %3, 8
%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
br i1 %14, label LBL_8, label LBL_4
LBL_4:
%15 = add i64 %2, 24
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %3, 24
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %2, 28
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %3, 28
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %3, 32
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = add i64 %2, 36
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i64 %3, 36
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %2, 40
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %3, 40
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %2, 44
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %3, 44
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %2, 48
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %3, 48
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = add i64 %2, 52
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %3, 52
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = add i64 %2, 56
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %3, 56
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
%60 = add i64 %2, 60
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = add i64 %3, 60
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = add i64 %2, 64
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %3, 64
%69 = inttoptr i64 %68 to i32*
store i32 %67, i32* %69, align 4
%70 = add i64 %2, 68
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i64 %3, 68
%74 = inttoptr i64 %73 to i32*
store i32 %72, i32* %74, align 4
%75 = add i64 %2, 72
%76 = add i64 %3, 72
%77 = inttoptr i64 %76 to i64*
%78 = inttoptr i64 %75 to i64*
%79 = call i64* @memcpy(i64* %77, i64* %78, i32 12)
%80 = add i64 %2, 84
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = add i64 %3, 84
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = add i64 %2, 88
%86 = add i64 %3, 88
%87 = inttoptr i64 %86 to i64*
%88 = inttoptr i64 %85 to i64*
%89 = call i64* @memcpy(i64* %87, i64* %88, i32 1024)
%90 = add i64 %3, 1112
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = add i64 %2, 1112
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = or i32 %95, %92
store i32 %96, i32* %91, align 4
%97 = call i64 @FUNC(i64 %3, i64 %10)
%98 = add i64 %2, 8
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = icmp eq i64 %102, 0
br i1 %103, label LBL_6, label LBL_5
LBL_5:
%104 = call i64 @FUNC(i64 %10, i64 %98)
%105 = trunc i64 %104 to i32
%106 = icmp slt i32 %105, 0
%107 = icmp eq i1 %106, false
store i64 %104, i64* %rax.0.shrunk.reg2mem
br i1 %107, label LBL_6, label LBL_9
LBL_6:
%108 = add i64 %3, 16
%109 = call i64 @FUNC(i64 %3, i64 %108)
%110 = add i64 %2, 16
%111 = inttoptr i64 %110 to i64*
%112 = load i64, i64* %111, align 8
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = icmp eq i64 %114, 0
br i1 %115, label LBL_8, label LBL_7
LBL_7:
%116 = call i64 @FUNC(i64 %108, i64 %110)
%117 = trunc i64 %116 to i32
%118 = icmp slt i32 %117, 0
%119 = icmp eq i1 %118, false
store i64 %116, i64* %rax.0.shrunk.reg2mem
br i1 %119, label LBL_8, label LBL_9
LBL_8:
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%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 %3, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0, 22, 21 }
uselistorder i64 %2, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i64, i64)* @ff_thread_ref_frame, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @ff_thread_release_buffer, { 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_9, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | read_sgi_header_16824 | read_sgi_header | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i16
%4 = bitcast i64* %arg2 to i16*
store i16 %3, i16* %4, align 2
%5 = call i64 @FUNC(i64 %1)
%6 = trunc i64 %5 to i8
%7 = add i64 %0, 2
%8 = inttoptr i64 %7 to i8*
store i8 %6, i8* %8, align 1
%9 = call i64 @FUNC(i64 %1)
%10 = trunc i64 %9 to i8
%11 = add i64 %0, 3
%12 = inttoptr i64 %11 to i8*
store i8 %10, i8* %12, align 1
%13 = call i64 @FUNC(i64 %1)
%14 = trunc i64 %13 to i16
%15 = add i64 %0, 4
%16 = inttoptr i64 %15 to i16*
store i16 %14, i16* %16, align 2
%17 = call i64 @FUNC(i64 %1)
%18 = trunc i64 %17 to i16
%19 = add i64 %0, 6
%20 = inttoptr i64 %19 to i16*
store i16 %18, i16* %20, align 2
%21 = call i64 @FUNC(i64 %1)
%22 = trunc i64 %21 to i16
%23 = add i64 %0, 8
%24 = inttoptr i64 %23 to i16*
store i16 %22, i16* %24, align 2
%25 = call i64 @FUNC(i64 %1)
%26 = trunc i64 %25 to i16
%27 = add i64 %0, 10
%28 = inttoptr i64 %27 to i16*
store i16 %26, i16* %28, align 2
ret i64 %25
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %0, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 (i64)* @get_byte, { 1, 0 }
uselistorder i64 (i64)* @get_be16, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | ff_id3v2_parse_60 | ff_id3v2_parse | 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 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %arg3, 256
%4 = call i64 @FUNC(i64 %2)
%5 = add i64 %4, %arg2
%sext5 = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext5, 32
%7 = icmp ne i64 %3, 2
%8 = and i64 %arg4, 64
%9 = icmp eq i64 %8, 0
%or.cond = or i1 %7, %9
%10 = select i1 %or.cond, i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64 ptrtoint ([12 x i8]* @gv_1 to i64)
%11 = call i64 @FUNC(i64 %2, i64 2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %10, i64 %1)
%12 = call i64 @FUNC(i64 %2, i64 %6, i64 0)
%13 = call i64 @FUNC(i64 0)
ret i64 %13
uselistorder i64 2, { 1, 0 }
} | 1 |
BinRealVul | wavpack_decode_flush_15192 | wavpack_decode_flush | 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, 8
%10 = add i64 %8, %9
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = add i32 %storemerge1.reload, 1
%15 = sext i32 %14 to i64
%16 = icmp sgt i64 %3, %15
store i64 %15, i64* %.reg2mem
store i32 %14, i32* %storemerge1.reg2mem
br i1 %16, 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 |
reposvul_c_test | crypto_skcipher_extsize_59 | crypto_skcipher_extsize | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, @gv_0
%1 = icmp eq i1 %0, false
store i64 8, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = icmp ne i64* %arg1, @gv_1
%3 = icmp eq i64* %arg1, @gv_2
%4 = icmp eq i1 %3, false
%or.cond = icmp eq i1 %2, %4
store i64 8, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %arg1, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | bdrv_flush_3441 | bdrv_flush | define i64 @FUNC(i64* %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 = urem i32 %2, 2
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = inttoptr i64 %10 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%spec.select = select i1 %14, i64 0, i64 %7
ret i64 %spec.select
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
reposvul_c_test | section_name_match_313 | section_name_match | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%.reg2mem79 = alloca i8
%sv_2.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%storemerge3.in.reg2mem = alloca i64
%storemerge2.in.reg2mem = alloca i64
%sv_0.115.reg2mem = alloca i64
%sv_2.117.reg2mem = alloca i32
%storemerge118.reg2mem = alloca i64
%.reg2mem77 = alloca i8*
%.reg2mem = alloca i8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 91
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_18
LBL_1:
%4 = add i64 %arg1, 1
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp ne i8 %6, 0
%8 = icmp eq i8 %6, 93
%9 = icmp eq i1 %8, false
%or.cond814 = icmp eq i1 %7, %9
store i8 %6, i8* %.reg2mem
store i8* %5, i8** %.reg2mem77
store i64 1, i64* %storemerge118.reg2mem
store i32 0, i32* %sv_2.117.reg2mem
store i64 0, i64* %sv_0.115.reg2mem
store i8 %6, i8* %.reg2mem79
store i64 1, i64* %sv_1.2.reg2mem
store i64 0, i64* %sv_0.2.reg2mem
br i1 %or.cond814, label LBL_2, label LBL_14
LBL_2:
%sv_0.115.reload = load i64, i64* %sv_0.115.reg2mem
%sv_2.117.reload = load i32, i32* %sv_2.117.reg2mem
%storemerge118.reload = load i64, i64* %storemerge118.reg2mem
%10 = icmp eq i32 %sv_2.117.reload, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_7, label LBL_3
LBL_3:
%.reload78 = load i8*, i8** %.reg2mem77
%12 = call i16** @__ctype_b_loc()
%13 = load i16*, i16** %12, align 8
%14 = ptrtoint i16* %13 to i64
%15 = load i8, i8* %.reload78, align 1
%16 = sext i8 %15 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %14
%19 = inttoptr i64 %18 to i16*
%20 = load i16, i16* %19, align 2
%21 = and i16 %20, 8192
%22 = icmp eq i16 %21, 0
store i64 %storemerge118.reload, i64* %sv_1.0.reg2mem
br i1 %22, label LBL_11, label LBL_4
LBL_4:
%23 = add i64 %sv_0.115.reload, 1
%24 = add i64 %sv_0.115.reload, %arg2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 46
%28 = icmp eq i1 %27, false
store i64 %storemerge118.reload, i64* %storemerge2.in.reg2mem
br i1 %28, label LBL_4.LBL_14.loopexit11_crit_edge, label LBL_5
LBL_5:
%storemerge2.in.reload = load i64, i64* %storemerge2.in.reg2mem
%storemerge2 = add i64 %storemerge2.in.reload, 1
%29 = call i16** @__ctype_b_loc()
%30 = load i16*, i16** %29, align 8
%31 = ptrtoint i16* %30 to i64
%32 = add i64 %storemerge2, %arg1
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = sext i8 %34 to i64
%36 = mul i64 %35, 2
%37 = add i64 %36, %31
%38 = inttoptr i64 %37 to i16*
%39 = load i16, i16* %38, align 2
%40 = and i16 %39, 8192
%41 = icmp eq i16 %40, 0
%42 = icmp eq i1 %41, false
store i64 %storemerge2, i64* %storemerge2.in.reg2mem
br i1 %42, label LBL_5, label LBL_6
LBL_6:
%43 = icmp eq i8 %34, 34
store i64 %storemerge2, i64* %sv_1.1.reg2mem
store i64 %23, i64* %sv_0.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
store i8 %34, i8* %.reg2mem79
store i64 %storemerge2, i64* %sv_1.2.reg2mem
store i64 %23, i64* %sv_0.2.reg2mem
br i1 %43, label LBL_12, label LBL_14
LBL_7:
%.reload = load i8, i8* %.reg2mem
%44 = icmp eq i8 %.reload, 92
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_9, label LBL_8
LBL_8:
%46 = add i64 %storemerge118.reload, 1
store i64 %46, i64* %sv_1.0.reg2mem
br label LBL_11
LBL_9:
%47 = icmp eq i8 %.reload, 34
%48 = icmp eq i1 %47, false
store i64 %storemerge118.reload, i64* %storemerge3.in.reg2mem
store i64 %storemerge118.reload, i64* %sv_1.0.reg2mem
br i1 %48, label LBL_11, label LBL_10
LBL_10:
%storemerge3.in.reload = load i64, i64* %storemerge3.in.reg2mem
%storemerge3 = add i64 %storemerge3.in.reload, 1
%49 = call i16** @__ctype_b_loc()
%50 = load i16*, i16** %49, align 8
%51 = ptrtoint i16* %50 to i64
%52 = add i64 %storemerge3, %arg1
%53 = inttoptr i64 %52 to i8*
%54 = load i8, i8* %53, align 1
%55 = sext i8 %54 to i64
%56 = mul i64 %55, 2
%57 = add i64 %56, %51
%58 = inttoptr i64 %57 to i16*
%59 = load i16, i16* %58, align 2
%60 = and i16 %59, 8192
%61 = icmp eq i16 %60, 0
%62 = icmp eq i1 %61, false
store i64 %storemerge3, i64* %storemerge3.in.reg2mem
store i8 %54, i8* %.reg2mem79
store i64 %storemerge3, i64* %sv_1.2.reg2mem
store i64 %sv_0.115.reload, i64* %sv_0.2.reg2mem
br i1 %62, label LBL_10, label LBL_14
LBL_11:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%63 = add i64 %sv_1.0.reload, %arg1
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
%66 = add i64 %sv_0.115.reload, 1
%67 = add i64 %sv_0.115.reload, %arg2
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = icmp eq i8 %65, %69
%71 = icmp eq i1 %70, false
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %66, i64* %sv_0.0.reg2mem
store i32 %sv_2.117.reload, i32* %sv_2.0.reg2mem
store i8 %65, i8* %.reg2mem79
store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem
store i64 %66, i64* %sv_0.2.reg2mem
br i1 %71, label LBL_14, label LBL_12
LBL_12:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%72 = add i64 %sv_1.1.reload, 1
%73 = add i64 %72, %arg1
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = icmp ne i8 %75, 0
%77 = icmp eq i8 %75, 93
%78 = icmp eq i1 %77, false
%or.cond8 = icmp eq i1 %76, %78
store i8 %75, i8* %.reg2mem
store i8* %74, i8** %.reg2mem77
store i64 %72, i64* %storemerge118.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.117.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.115.reg2mem
store i8 %75, i8* %.reg2mem79
store i64 %72, i64* %sv_1.2.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br i1 %or.cond8, label LBL_2, label LBL_14
LBL_13:
%.pre40 = add i64 %storemerge118.reload, %arg1
%.pre = inttoptr i64 %.pre40 to i8*
%.pre76 = load i8, i8* %.pre, align 1
store i8 %.pre76, i8* %.reg2mem79
store i64 %storemerge118.reload, i64* %sv_1.2.reg2mem
store i64 %23, i64* %sv_0.2.reg2mem
br label LBL_14
LBL_14:
%.reload80 = load i8, i8* %.reg2mem79
%79 = icmp eq i8 %.reload80, 93
%80 = icmp eq i1 %79, false
store i64 0, i64* %rax.0.reg2mem
br i1 %80, label LBL_18, label LBL_15
LBL_15:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%81 = add i64 %sv_0.2.reload, %arg2
%82 = inttoptr i64 %81 to i8*
%83 = load i8, i8* %82, align 1
%84 = icmp eq i8 %83, 0
%85 = icmp eq i1 %84, false
store i64 %sv_1.2.reload, i64* %storemerge.in.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %85, label LBL_18, label LBL_16
LBL_16:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = add i64 %storemerge.in.reload, 1
%86 = add i64 %storemerge, %arg1
%87 = inttoptr i64 %86 to i8*
%88 = load i8, i8* %87, align 1
%89 = icmp eq i8 %88, 0
store i64 %storemerge, i64* %rax.0.reg2mem
br i1 %89, label LBL_18, label LBL_17
LBL_17:
%90 = call i16** @__ctype_b_loc()
%91 = load i16*, i16** %90, align 8
%92 = ptrtoint i16* %91 to i64
%93 = load i8, i8* %87, align 1
%94 = sext i8 %93 to i64
%95 = mul i64 %94, 2
%96 = add i64 %95, %92
%97 = inttoptr i64 %96 to i16*
%98 = load i16, i16* %97, align 2
%99 = and i16 %98, 8192
%100 = icmp eq i16 %99, 0
%101 = icmp eq i1 %100, false
store i64 %storemerge, i64* %storemerge.in.reg2mem
store i64 %storemerge, i64* %rax.0.reg2mem
br i1 %101, label LBL_16, label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge, { 1, 2, 0, 3 }
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %storemerge118.reload, { 0, 6, 2, 3, 5, 4, 1 }
uselistorder i64 %sv_0.115.reload, { 4, 2, 0, 3, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem77, { 2, 0, 1 }
uselistorder i64* %storemerge118.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.117.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.115.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem79, { 0, 6, 3, 2, 4, 1, 5 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 6, 3, 2, 4, 1, 5 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 6, 3, 2, 4, 1, 5 }
uselistorder i64* %storemerge.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i16 0, { 3, 0, 1, 2 }
uselistorder i16 8192, { 3, 0, 1, 2 }
uselistorder i16** ()* @__ctype_b_loc, { 3, 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 1, 5, 6, 7, 8, 9, 10, 11, 0 }
uselistorder i8 93, { 2, 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 1, { 5, 6, 7, 3, 8, 4, 9, 0, 1, 2 }
uselistorder i32 1, { 6, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 4, 1, 2, 3, 5, 6 }
uselistorder label LBL_18, { 1, 0, 3, 2, 4 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 5, 0, 1, 3, 2, 4 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | get_nic_if_avail_10627 | get_nic_if_avail | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3, i8* %arg4, i8* %arg5, i64 %arg6, i64* %arg7, i64* %arg8) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64*
%storemerge15.reg2mem = alloca i64
%rsi.0.lcssa.reg2mem = alloca i64
%storemerge1116.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = icmp eq i64* %arg2, null
%5 = icmp eq i1 %4, false
store i64 %1, i64* %rsi.0.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = ptrtoint i8* %arg5 to i64
%7 = ptrtoint i8* %arg4 to i64
%8 = and i64 %3, 4294967295
store i64 %1, i64* %storemerge1116.reg2mem
br label LBL_2
LBL_2:
%storemerge1116.reload = load i64, i64* %storemerge1116.reg2mem
%9 = inttoptr i64 %storemerge1116.reload to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %8, i64 %10, i64 %7, i64 %6)
%12 = add i64 %storemerge1116.reload, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 %14, i64* %storemerge1116.reg2mem
store i64 %10, i64* %rsi.0.lcssa.reg2mem
br i1 %16, label LBL_2, label LBL_3
LBL_3:
%17 = trunc i64 %arg6 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_27
LBL_4:
%20 = trunc i64 %3 to i32
%21 = bitcast i64* %sv_2 to %stat*
%22 = call i32 @fstat(i32 %20, %stat* nonnull %21)
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i32* @__errno_location()
%26 = load i32, i32* %25, align 4
%27 = call i8* @strerror(i32 %26)
%28 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i8* %27)
store i64 0, i64* %rax.0.reg2mem
br label LBL_27
LBL_6:
%rsi.0.lcssa.reload = load i64, i64* %rsi.0.lcssa.reg2mem
%30 = trunc i64 %2 to i32
%31 = icmp eq i64 %2, 0
store i64* null, i64** %sv_1.0.reg2mem
store i64 %rsi.0.lcssa.reload, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_14, label LBL_7
LBL_7:
%32 = call i64* @mmap(i64* null, i32 %30, i32 3, i32 1, i32 %20, i32 0)
%33 = icmp eq i64* %32, inttoptr (i64 -1 to i64*)
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_8, label LBL_10
LBL_8:
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_9, label LBL_27
LBL_9:
%35 = ptrtoint i64* %32 to i64
%36 = ptrtoint i8* %arg5 to i64
%37 = ptrtoint i8* %arg4 to i64
%sext13 = mul i64 %2, 4294967296
%38 = ashr exact i64 %sext13, 32
store i64 %1, i64* %storemerge15.reg2mem
br label LBL_11
LBL_10:
%39 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%40 = call i32 @fwrite(i64* bitcast ([26 x i8]* @gv_2 to i64*), i32 1, i32 25, %_IO_FILE* %39)
store i64 0, i64* %rax.0.reg2mem
br label LBL_27
LBL_11:
%storemerge15.reload = load i64, i64* %storemerge15.reg2mem
%41 = inttoptr i64 %storemerge15.reload to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %35, i64 %38, i64 %42, i64 %37, i64 %36)
%44 = add i64 %storemerge15.reload, 8
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = zext i32 %46 to i64
%sext10 = mul i64 %43, 4294967296
%48 = ashr exact i64 %sext10, 32
%49 = icmp slt i64 %48, %47
br i1 %49, label LBL_12, label LBL_13
LBL_12:
%50 = load i64, i64* %41, align 8
store i64* %32, i64** %sv_1.0.reg2mem
store i64 %50, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%51 = add i64 %storemerge15.reload, 16
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = icmp eq i64 %53, 0
%55 = icmp eq i1 %54, false
store i64 %53, i64* %storemerge15.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %55, label LBL_11, label LBL_27
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%56 = icmp eq i64 %sv_0.0.reload, 0
%57 = icmp eq i1 %56, false
store i64 0, i64* %rax.0.reg2mem
br i1 %57, label LBL_15, label LBL_27
LBL_15:
%58 = ptrtoint i64* %arg8 to i64
%59 = ptrtoint i64* %arg7 to i64
%60 = trunc i64 %arg3 to i32
%61 = ptrtoint i8* %arg5 to i64
%62 = call i64 @FUNC(i64 %59, i64 %61, i32 %60, i64 %58)
%63 = trunc i64 %62 to i8
%64 = icmp eq i8 %63, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_16, label LBL_27
LBL_16:
%65 = ptrtoint i64* %sv_3 to i64
%sv_1.0.reload = load i64*, i64** %sv_1.0.reg2mem
%66 = inttoptr i64 %sv_0.0.reload to i8*
%67 = call i32 @strlen(i8* %66)
%68 = sext i32 %67 to i64
%69 = call i32 @strlen(i8* %arg4)
%70 = sext i32 %69 to i64
%71 = add nsw i64 %70, %68
%72 = call i32 @strlen(i8* %arg5)
%73 = sext i32 %72 to i64
%74 = add nsw i64 %71, %73
%75 = load i64, i64* %arg7, align 8
%76 = inttoptr i64 %75 to i8*
%77 = call i32 @strlen(i8* %76)
%78 = sext i32 %77 to i64
%79 = add nsw i64 %74, %78
%80 = add nsw i64 %79, 5
%81 = add nsw i64 %79, 28
%82 = udiv i64 %81, 16
%83 = mul i64 %82, 16
%84 = sub i64 %65, %83
%85 = add i64 %84, 15
%86 = and i64 %85, -16
%87 = inttoptr i64 %86 to i8*
%88 = load i64, i64* %arg7, align 8
%89 = add i64 %84, -16
%90 = inttoptr i64 %89 to i64*
store i64 %88, i64* %90, align 8
%91 = trunc i64 %80 to i32
%92 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %87, i32 %91, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i8* %66, i8* %arg4, i8* %arg5)
%93 = icmp sgt i32 %92, -1
%94 = sext i32 %92 to i64
%95 = icmp sgt i64 %80, %94
%or.cond = icmp eq i1 %93, %95
br i1 %or.cond, label LBL_19, label LBL_17
LBL_17:
%96 = load i64, i64* %arg7, align 8
%97 = call i64 @FUNC(i64 %96)
%98 = trunc i64 %97 to i32
%99 = icmp eq i32 %98, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %99, label LBL_27, label LBL_18
LBL_18:
%100 = load i64, i64* %arg7, align 8
%101 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%102 = inttoptr i64 %100 to i8*
%103 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %101, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %102)
store i64 0, i64* %rax.0.reg2mem
br label LBL_27
LBL_19:
%104 = icmp eq i32 %30, 0
br i1 %104, label LBL_21, label LBL_20
LBL_20:
%105 = call i32 @munmap(i64* %sv_1.0.reload, i32 %30)
br label LBL_21
LBL_21:
%106 = add i32 %91, %30
%107 = call i32 @ftruncate(i32 %20, i32 %106)
%108 = icmp eq i32 %107, 0
br i1 %108, label LBL_23, label LBL_22
LBL_22:
%109 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%110 = call i32 @fwrite(i64* bitcast ([29 x i8]* @gv_5 to i64*), i32 1, i32 28, %_IO_FILE* %109)
br label LBL_23
LBL_23:
%111 = call i64* @mmap(i64* null, i32 %106, i32 3, i32 1, i32 %20, i32 0)
%112 = icmp eq i64* %111, inttoptr (i64 -1 to i64*)
%113 = icmp eq i1 %112, false
br i1 %113, label LBL_26, label LBL_24
LBL_24:
%114 = call i32* @__errno_location()
%115 = load i32, i32* %114, align 4
%116 = call i8* @strerror(i32 %115)
%117 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%118 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %117, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_6, i64 0, i64 0), i8* %116)
%119 = load i64, i64* %arg7, align 8
%120 = call i64 @FUNC(i64 %119)
%121 = trunc i64 %120 to i32
%122 = icmp eq i32 %121, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %122, label LBL_27, label LBL_25
LBL_25:
%123 = load i64, i64* %arg7, align 8
%124 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%125 = inttoptr i64 %123 to i8*
%126 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %124, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %125)
store i64 0, i64* %rax.0.reg2mem
br label LBL_27
LBL_26:
%127 = ptrtoint i64* %111 to i64
%sext12 = mul i64 %2, 4294967296
%128 = ashr exact i64 %sext12, 32
%129 = add i64 %128, %127
%130 = inttoptr i64 %129 to i8*
%131 = call i8* @strcpy(i8* %130, i8* %87)
%132 = call i32 @munmap(i64* %111, i32 %106)
store i64 1, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %111, { 0, 2, 1 }
uselistorder i32 %92, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %storemerge15.reload, { 1, 0, 2 }
uselistorder i64* %32, { 0, 2, 1 }
uselistorder i32 %30, { 0, 2, 1, 3 }
uselistorder i32 %20, { 1, 2, 0, 3 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64* %storemerge1116.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 12, 4, 3, 6, 5, 7, 8, 1, 11, 2, 10, 9 }
uselistorder i32 (i64*, i32)* @munmap, { 1, 0 }
uselistorder i64 (i64)* @lxc_netdev_delete_by_name, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 3, 2, 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder i64* (i64*, i32, i32, i32, i32, i32)* @mmap, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 5, 4, 3, 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i64* null, { 2, 3, 0, 1 }
uselistorder i64 32, { 1, 2, 0, 3 }
uselistorder i8* %arg5, { 1, 2, 3, 0, 4 }
uselistorder i8* %arg4, { 1, 2, 0, 3 }
uselistorder label LBL_27, { 9, 3, 2, 5, 4, 6, 7, 0, 10, 1, 11, 8 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | l2cap_create_le_flowctl_pdu_18406 | l2cap_create_le_flowctl_pdu | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %arg3, i64 %arg4, i64 %2, i64 %1)
%6 = icmp eq i64* %arg1, null
%7 = icmp eq i1 %6, false
store i64 -107, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%8 = icmp slt i64* %arg1, null
%9 = icmp eq i1 %8, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_6
LBL_2:
%sext = mul i64 %arg4, 281474976710656
%10 = ashr exact i64 %sext, 48
%11 = trunc i64 %10 to i16
%12 = icmp eq i16 %11, 0
%spec.select = select i1 %12, i32 4, i32 6
%13 = call i64 @FUNC(i64 %4, i64 4)
%14 = add i64 %4, 16
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = zext i16 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i16
%20 = inttoptr i64 %13 to i16*
store i16 %19, i16* %20, align 2
%21 = trunc i64 %arg3 to i32
%22 = add i32 %21, 65532
%23 = add i32 %22, %spec.select
%24 = urem i32 %23, 65536
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i16
%28 = add i64 %13, 2
%29 = inttoptr i64 %28 to i16*
store i16 %27, i16* %29, align 2
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%30 = call i64 @FUNC(i64 %4, i64 2)
%31 = urem i64 %10, 65536
%32 = call i64 @FUNC(i64 %31, i64 %30)
br label LBL_4
LBL_4:
%33 = trunc i64 %3 to i32
%34 = sub i32 %33, %spec.select
%35 = sext i32 %34 to i64
%36 = icmp ugt i64 %35, %arg3
%37 = select i1 %36, i64 %arg3, i64 %35
%38 = trunc i64 %37 to i32
%39 = ptrtoint i32* %arg2 to i64
%40 = call i64 @FUNC(i64 %4, i64 %39, i64 %arg3, i32 %38, i64 %4)
%41 = trunc i64 %40 to i32
%42 = icmp slt i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %43, label LBL_6, label LBL_5
LBL_5:
%44 = call i64 @FUNC(i64 %4)
%sext3 = mul i64 %40, 4294967296
%45 = ashr exact i64 %sext3, 32
store i64 %45, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %35, { 1, 0 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i64 %4, { 3, 0, 5, 4, 2, 6, 7, 1, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @cpu_to_le16, { 1, 0 }
uselistorder i64 (i64, i64)* @skb_put, { 1, 0 }
uselistorder i64 %arg3, { 1, 3, 0, 2, 4 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
} | 1 |
reposvul_c_test | get_lockd_grace_period_65 | get_lockd_grace_period | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = load i128, i128* @gv_1, align 8
%3 = trunc i128 %2 to i64
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = mul i64 %4, 100
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = mul i64 %3, 500
store i64 %6, 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 | gf_xml_sax_parse_intern_6893 | gf_xml_sax_parse_intern | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.be.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %arg2, i64* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_19
LBL_1:
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = bitcast i32* %sv_2 to i64*
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %0, 20
%13 = inttoptr i64 %12 to i32*
store i64 %arg2, i64* %sv_0.011.reg2mem
br label LBL_2
LBL_2:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%14 = inttoptr i64 %sv_0.011.reload to i8*
%15 = call i8* @strchr(i8* %14, i32 38)
%16 = load i32, i32* %6, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_11, label LBL_3
LBL_3:
%18 = call i8* @strchr(i8* %14, i32 59)
%19 = icmp eq i8* %18, null
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %0, i64 %sv_0.011.reload)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_20
LBL_5:
%22 = load i64, i64* %8, align 8
%23 = inttoptr i64 %22 to i8*
%24 = call i8* @strrchr(i8* %23, i32 38)
%25 = ptrtoint i8* %24 to i64
store i8 0, i8* %18, align 1
%26 = call i32 @strlen(i8* %24)
%27 = call i32 @strlen(i8* %14)
%28 = add i32 %26, 1
%29 = add i32 %28, %27
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %25, 1
%33 = inttoptr i64 %31 to i8*
%34 = inttoptr i64 %32 to i8*
%35 = call i32 (i8*, i8*, ...) @sprintf(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %34, i8* %14)
%36 = call i64 @FUNC(i64 %0, i64 %31, i64* nonnull %9)
%37 = call i64 @FUNC(i64 %31)
%38 = icmp eq i64 %36, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_10, label LBL_6
LBL_6:
%40 = load i32, i32* %sv_2, align 4
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_9, label LBL_7
LBL_7:
%43 = call i64 @FUNC(i64 %0, i64 %sv_0.011.reload)
%44 = call i64 @FUNC(i64 %0, i64 1)
store i8 59, i8* %18, align 1
%45 = ptrtoint i8* %18 to i64
store i64 %45, i64* %sv_0.0.be.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.be.reload = load i64, i64* %sv_0.0.be.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.011.reg2mem
br label LBL_2
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i32 87, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0))
br label LBL_10
LBL_10:
%46 = load i32, i32* %11, align 4
%47 = call i32 @strlen(i8* %24)
%48 = sub i32 %46, %47
store i32 %48, i32* %11, align 4
store i8 0, i8* %24, align 1
store i32 0, i32* %6, align 4
store i8 59, i8* %18, align 1
%49 = ptrtoint i8* %18 to i64
%50 = add i64 %49, 1
store i64 %36, i64* %sv_1.0.reg2mem
store i64 %50, i64* %storemerge.reg2mem
br label LBL_17
LBL_11:
%51 = icmp eq i8* %15, null
store i64 %sv_0.011.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %51, label LBL_19, label LBL_12
LBL_12:
%52 = ptrtoint i8* %15 to i64
%53 = add i64 %52, 1
%54 = call i64 @FUNC(i64 %0, i64 %53, i64* nonnull %9)
store i8 0, i8* %15, align 1
%55 = call i64 @FUNC(i64 %0, i64 %sv_0.011.reload)
%56 = call i64 @FUNC(i64 %0, i64 1)
store i8 38, i8* %15, align 1
%57 = icmp eq i64 %54, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_16, label LBL_13
LBL_13:
%59 = load i32, i32* %sv_2, align 4
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_15, label LBL_14
LBL_14:
%62 = call i64 @FUNC(i64 %0, i64 ptrtoint (i64* @gv_4 to i64))
store i64 %53, i64* %sv_0.0.be.reg2mem
br label LBL_8
LBL_15:
store i32 1, i32* %6, align 4
%63 = call i64 @FUNC(i64 %0, i64 %52)
store i64 %63, i64* %rax.0.reg2mem
br label LBL_20
LBL_16:
%64 = add i64 %54, 8
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = zext i32 %66 to i64
%68 = add i64 %52, 2
%69 = add i64 %68, %67
store i64 %54, i64* %sv_1.0.reg2mem
store i64 %69, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%70 = load i32, i32* %13, align 4
%71 = inttoptr i64 %sv_1.0.reload to i64*
%72 = load i64, i64* %71, align 8
%73 = call i64 @FUNC(i64 %0, i64 %72)
%74 = call i64 @FUNC(i64 %0, i64 1)
%75 = trunc i64 %74 to i32
store i32 %70, i32* %13, align 4
%76 = icmp eq i32 %75, 0
store i64 %storemerge.reload, i64* %sv_0.0.be.reg2mem
br i1 %76, label LBL_8, label LBL_18
LBL_18:
%77 = and i64 %74, 4294967295
store i64 %77, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%78 = call i64 @FUNC(i64 %0, i64 %sv_0.0.lcssa.reload)
%79 = call i64 @FUNC(i64 %0, i64 0)
store i64 %79, 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 i8* %18, { 3, 2, 1, 0, 4, 5 }
uselistorder i64 %sv_0.011.reload, { 2, 0, 1, 4, 3 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i64 %0, { 13, 14, 8, 10, 7, 6, 11, 12, 16, 1, 2, 4, 0, 9, 3, 5, 15, 17 }
uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.be.reg2mem, { 3, 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @xml_sax_parse, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*)* @gf_xml_locate_entity, { 1, 0 }
uselistorder i64 1, { 0, 1, 3, 4, 2, 5 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @xml_sax_append_string, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 0 |
BinRealVul | xfrm_replay_verify_len_3697 | xfrm_replay_verify_len | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp ne i32* %arg1, null
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %3)
%sext = mul i64 %5, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = icmp sgt i64 %7, %6
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = trunc i64 %5 to i32
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %9, %12
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_3:
%14 = inttoptr i64 %4 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = add i64 %4, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = mul i64 %20, 32
%22 = icmp ult i64 %21, %16
%. = select i1 %22, i64 4294967274, i64 0
store i64 %., 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 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 4294967274, { 2, 1, 0 }
uselistorder i64 (i64)* @xfrm_replay_state_esn_len, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_4, { 0, 2, 1, 3 }
} | 0 |
BinRealVul | can_open_cached_17359 | can_open_cached | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.shrunk.reg2mem = alloca i1
%0 = ptrtoint i64* %arg1 to i64
%1 = urem i64 %arg2, 8
%2 = icmp eq i64 %1, 3
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i32
%4 = icmp ugt i32 %3, 3
store i1 false, i1* %sv_0.0.shrunk.reg2mem
br i1 %4, label LBL_6, label LBL_2
LBL_2:
store i1 false, i1* %sv_0.0.shrunk.reg2mem
switch i32 %3, label LBL_6 [
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%5 = call i64 @FUNC(i64 0, i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i1 %8, i1* %sv_0.0.shrunk.reg2mem
br label LBL_6
LBL_4:
%9 = call i64 @FUNC(i64 1, i64 %0)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i1 %12, i1* %sv_0.0.shrunk.reg2mem
br label LBL_6
LBL_5:
%13 = call i64 @FUNC(i64 2, i64 %0)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i1 %16, i1* %sv_0.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.shrunk.reload = load i1, i1* %sv_0.0.shrunk.reg2mem
%sv_0.0 = zext i1 %sv_0.0.shrunk.reload to i64
ret i64 %sv_0.0
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i1* %sv_0.0.shrunk.reg2mem, { 0, 5, 2, 3, 1, 4 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 2, 1, 0 }
uselistorder i1 false, { 2, 3, 4, 0, 1 }
uselistorder label LBL_6, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | dissect_aggregation_extension_8357 | dissect_aggregation_extension | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sext = mul i64 %arg4, 4294967296
%2 = ashr exact i64 %sext, 32
store i64 %2, i64* %sv_0, align 8
%sext4 = mul i64 %arg5, 4294967296
%3 = and i64 %arg5, 4294967295
%4 = trunc i64 %2 to i32
%5 = call i64 @FUNC(i64 %0, i64 %1, i32 %4, i64 %3, i64 0, i64 0)
%6 = bitcast i64* %sv_0 to i32*
%7 = call i64 @FUNC(i64 %1, i64 %5, i32* nonnull %6)
%sext5 = add i64 %sext4, -17179869184
%8 = ashr exact i64 %sext5, 32
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = load i64, i64* %sv_0, align 8
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%12 = ptrtoint i64* %arg2 to i64
%13 = and i64 %8, 4294967295
%14 = and i64 %11, 4294967295
%15 = call i64 @FUNC(i64 %5, i64 %12, i64* nonnull @gv_0, i64 %1, i64 %14, i64 %13)
call void @exit(i32 1)
unreachable
LBL_2:
%16 = trunc i64 %11 to i32
%17 = call i64 @FUNC(i64 %5, i64 %1, i32 %16)
%18 = call i64 @FUNC(i64 %17, i64 0, i64 4, i64 0)
%19 = call i64 @FUNC(i64 %17)
ret i64 %19
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 %arg5, { 1, 0 }
} | 0 |
BinRealVul | Curl_smtp_escape_eob_5522 | Curl_smtp_escape_eob | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%.pr.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_2.05.reg2mem = alloca i64
%sv_0.27.reg2mem = alloca i64
%rdi.28.reg2mem = alloca i64
%.pn.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i64
%sv_5.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %0, 40
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i64 %6, i64* %sv_5.0.reg2mem
store i64 0, i64* %sv_4.0.reg2mem
store i64 0, i64* %sv_3.0.reg2mem
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = call i64* @malloc(i32 2048)
%13 = ptrtoint i64* %12 to i64
%14 = icmp eq i64* %12, null
%15 = icmp eq i1 %14, false
store i64 %13, i64* %sv_5.0.reg2mem
store i64 %13, i64* %sv_4.0.reg2mem
store i64 %6, i64* %sv_3.0.reg2mem
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
store i64 1, i64* %storemerge.reg2mem
br label LBL_22
LBL_4:
%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
%17 = add i64 %arg2, -1024
%18 = sub i64 1023, %arg2
%19 = and i64 %18, %arg2
%20 = icmp slt i64 %19, 0
%21 = icmp eq i64 %17, 0
%22 = icmp slt i64 %17, 0
%23 = icmp ne i1 %22, %20
%24 = or i1 %21, %23
%25 = zext i1 %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = inttoptr i64 %3 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp sgt i64 %arg2, 0
store i64 0, i64* %sv_0.3.reg2mem
br i1 %29, label LBL_5, label LBL_19
LBL_5:
%30 = add i64 %3, 8
%31 = inttoptr i64 %30 to i32*
store i64 %28, i64* %.pn.reg2mem
store i64 %25, i64* %rdi.28.reg2mem
store i64 0, i64* %sv_0.27.reg2mem
store i64 0, i64* %sv_2.05.reg2mem
store i64 %28, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%sv_2.05.reload = load i64, i64* %sv_2.05.reg2mem
%sv_0.27.reload = load i64, i64* %sv_0.27.reg2mem
%rdi.28.reload = load i64, i64* %rdi.28.reg2mem
%.pn.reload = load i64, i64* %.pn.reg2mem
%32 = add i64 %.reload, ptrtoint ([4 x i8]* @gv_1 to i64)
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = add i64 %sv_2.05.reload, %rdi.28.reload
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = icmp eq i8 %34, %37
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_10, label LBL_7
LBL_7:
%40 = add i64 %.reload, 1
store i64 %40, i64* %27, align 8
%41 = icmp ne i64 %40, 2
%42 = icmp eq i64 %40, 5
%43 = icmp eq i1 %42, false
%or.cond = icmp eq i1 %41, %43
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
store i32 1, i32* %31, align 4
store i64 %.pn.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.27.reload, i64* %sv_0.0.reg2mem
store i64 %rdi.28.reload, i64* %rdi.0.reg2mem
br label LBL_12
LBL_9:
store i32 0, i32* %31, align 4
store i64 %.pn.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.27.reload, i64* %sv_0.0.reg2mem
store i64 %rdi.28.reload, i64* %rdi.0.reg2mem
br label LBL_12
LBL_10:
%44 = icmp eq i64 %.reload, 0
store i64 %.pn.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.27.reload, i64* %sv_0.0.reg2mem
store i64 %rdi.28.reload, i64* %rdi.0.reg2mem
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = sub i64 %.reload, %.pn.reload
%46 = add i64 %.pn.reload, ptrtoint ([4 x i8]* @gv_1 to i64)
%47 = add i64 %sv_0.27.reload, %sv_5.0.reload
%48 = inttoptr i64 %47 to i64*
%49 = inttoptr i64 %46 to i64*
%50 = trunc i64 %45 to i32
%51 = call i64* @memcpy(i64* %48, i64* %49, i32 %50)
%52 = load i64, i64* %27, align 8
%53 = sub i64 %sv_0.27.reload, %.pn.reload
%54 = add i64 %53, %52
%55 = add i64 %47, %sv_2.05.reload
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = icmp eq i8 %57, 69
%. = zext i1 %58 to i64
store i64 %., i64* %27, align 8
store i32 0, i32* %31, align 4
store i64 0, i64* %sv_1.0.reg2mem
store i64 %54, i64* %sv_0.0.reg2mem
store i64 %47, i64* %rdi.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%59 = load i64, i64* %27, align 8
%60 = icmp eq i64 %59, 5
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_14, label LBL_13
LBL_13:
%62 = add i64 %sv_1.0.reload, ptrtoint ([5 x i8]* @gv_2 to i64)
%63 = add i64 %sv_0.0.reload, %sv_5.0.reload
%64 = inttoptr i64 %63 to i64*
%65 = inttoptr i64 %62 to i64*
%66 = trunc i64 %sv_1.0.reload to i32
%67 = sub i32 5, %66
%68 = call i64* @memcpy(i64* %64, i64* %65, i32 %67)
%69 = sub i64 5, %sv_1.0.reload
%70 = add i64 %69, %sv_0.0.reload
store i64 0, i64* %27, align 8
store i64 0, i64* %.pr.reg2mem
store i64 0, i64* %sv_1.1.reg2mem
store i64 %70, i64* %sv_0.1.reg2mem
store i64 %63, i64* %rdi.1.reg2mem
br label LBL_16
LBL_14:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%71 = icmp eq i64 %59, 0
%72 = icmp eq i1 %71, false
store i64 %59, i64* %.pr.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %72, label LBL_16, label LBL_15
LBL_15:
%73 = add i64 %rdi.0.reload, %sv_2.05.reload
%74 = add i64 %sv_0.0.reload, 1
%75 = add i64 %sv_0.0.reload, %sv_5.0.reload
%76 = inttoptr i64 %73 to i8*
%77 = load i8, i8* %76, align 1
%78 = inttoptr i64 %75 to i8*
store i8 %77, i8* %78, align 1
%.pr.pre = load i64, i64* %27, align 8
store i64 %.pr.pre, i64* %.pr.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %74, i64* %sv_0.1.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br label LBL_16
LBL_16:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%.pr.reload = load i64, i64* %.pr.reg2mem
%79 = add nuw nsw i64 %sv_2.05.reload, 1
%exitcond = icmp eq i64 %79, %arg2
store i64 %sv_1.1.reload, i64* %.pn.reg2mem
store i64 %rdi.1.reload, i64* %rdi.28.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.27.reg2mem
store i64 %79, i64* %sv_2.05.reg2mem
store i64 %.pr.reload, i64* %.reg2mem
br i1 %exitcond, label LBL_17, label LBL_6
LBL_17:
%80 = icmp eq i64 %.pr.reload, %sv_1.1.reload
store i64 %sv_0.1.reload, i64* %sv_0.3.reg2mem
br i1 %80, label LBL_19, label LBL_18
LBL_18:
%81 = sub i64 %.pr.reload, %sv_1.1.reload
%82 = add i64 %sv_1.1.reload, ptrtoint ([4 x i8]* @gv_1 to i64)
%83 = add i64 %sv_0.1.reload, %sv_5.0.reload
%84 = inttoptr i64 %83 to i64*
%85 = inttoptr i64 %82 to i64*
%86 = trunc i64 %81 to i32
%87 = call i64* @memcpy(i64* %84, i64* %85, i32 %86)
%88 = load i64, i64* %27, align 8
%89 = sub i64 %sv_0.1.reload, %sv_1.1.reload
%90 = add i64 %89, %88
store i64 %90, i64* %sv_0.3.reg2mem
br label LBL_19
LBL_19:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%91 = icmp eq i64 %sv_0.3.reload, %arg2
br i1 %91, label LBL_21, label LBL_20
LBL_20:
store i64 %sv_5.0.reload, i64* %arg1, align 8
store i64 %sv_5.0.reload, i64* %5, align 8
%92 = inttoptr i64 %sv_3.0.reload to i64*
call void @free(i64* %92)
%93 = add i64 %0, 8
%94 = inttoptr i64 %93 to i64*
store i64 %sv_0.3.reload, i64* %94, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_22
LBL_21:
%95 = inttoptr i64 %sv_4.0.reload to i64*
call void @free(i64* %95)
store i64 0, i64* %storemerge.reg2mem
br label LBL_22
LBL_22:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.3.reload, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 3, 1, 0, 2, 4 }
uselistorder i64 %sv_0.1.reload, { 2, 1, 0, 3 }
uselistorder i64 %rdi.0.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.0.reload, { 0, 1, 4, 2, 3 }
uselistorder i64 %sv_0.0.reload, { 4, 1, 0, 2, 3 }
uselistorder i64 %.pn.reload, { 5, 3, 4, 2, 0, 1 }
uselistorder i64 %rdi.28.reload, { 2, 0, 1, 3 }
uselistorder i64 %sv_0.27.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %sv_2.05.reload, { 1, 3, 0, 2 }
uselistorder i64 %.reload, { 3, 2, 1, 0 }
uselistorder i32* %31, { 0, 2, 1 }
uselistorder i64* %27, { 1, 0, 2, 3, 4, 5, 6, 7 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %sv_5.0.reload, { 1, 0, 5, 4, 3, 2 }
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
uselistorder i64* %sv_5.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_4.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pn.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.28.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.27.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %.pr.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.3.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 2, 1 }
uselistorder i64 5, { 0, 2, 1 }
uselistorder i64 1, { 1, 2, 3, 0 }
uselistorder i64 %arg2, { 3, 1, 2, 0, 5, 4 }
uselistorder label LBL_22, { 1, 0, 2 }
uselistorder label LBL_19, { 1, 2, 0 }
} | 0 |
BinRealVul | add_pool_18906 | add_pool | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64* @calloc(i32 272, i32 1)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%4 = bitcast i64* %0 to i32*
%5 = load i32, i32* @gv_1, align 4
%6 = ptrtoint i64* %0 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
store i32 %5, i32* %8, align 4
store i32 %5, i32* %4, align 4
%9 = zext i32 %5 to i64
%10 = bitcast i64* %sv_0 to i8*
%11 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 %9)
%12 = call i8* @strdup(i8* nonnull %10)
%13 = ptrtoint i8* %12 to i64
%14 = add i64 %6, 8
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = load i64, i64* @gv_3, align 8
%17 = inttoptr i64 %16 to i64*
%18 = call i64* @realloc(i64* %17, i32 trunc (i64 mul (i64 sext (i32 ptrtoint (i32* @gv_4 to i32) to i64), i64 8) to i32))
%19 = ptrtoint i64* %18 to i64
store i64 %19, i64* @gv_3, align 8
%20 = load i32, i32* @gv_1, align 4
store i32 ptrtoint (i32* @gv_5 to i32), i32* @gv_1, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = add i64 %22, %19
%24 = inttoptr i64 %23 to i64*
store i64 %6, i64* %24, align 8
%25 = add i64 %6, 16
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %6, 56
%28 = inttoptr i64 %27 to i64*
%29 = call i32 @pthread_cond_init(i64* %28, i64* null)
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_4, label LBL_3
LBL_3:
%34 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0))
unreachable
LBL_4:
%35 = add i64 %6, 104
%36 = call i64 @FUNC(i64 %35)
%37 = add i64 %6, 144
%38 = call i64 @FUNC(i64 %37)
%39 = add i64 %6, 184
%40 = call i64 @FUNC(i64 %39)
%41 = add i64 %6, 224
%42 = call i64 @FUNC(i64 %41)
%43 = add i64 %6, 232
%44 = inttoptr i64 %43 to i64*
store i64 -1, i64* %44, align 8
%45 = load i64, i64* @gv_7, align 8
%46 = add i64 %6, 248
%47 = inttoptr i64 %46 to i64*
store i64 %45, i64* %47, align 8
%48 = add i64 %6, 256
%49 = inttoptr i64 %48 to i64*
store i64 0, i64* %49, align 8
%50 = add i64 %6, 264
%51 = inttoptr i64 %50 to i32*
store i32 1, i32* %51, align 4
%52 = call i64 @FUNC()
ret i64 %6
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64* %0, { 0, 2, 1 }
uselistorder i64 (i64)* @cglock_init, { 1, 0 }
uselistorder i64 (i64)* @mutex_init, { 1, 0 }
uselistorder i32 0, { 3, 0, 1, 2 }
uselistorder i32* @gv_1, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @quit, { 1, 0 }
uselistorder i64* null, { 1, 0, 2, 3 }
uselistorder i32 1, { 3, 1, 2, 0 }
} | 1 |
BinRealVul | filter_session_io_19139 | filter_session_io | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%5 = trunc i64 %arg2 to i32
%6 = call i64 @FUNC(i64 %4)
%7 = and i64 %arg2, 4294967295
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %8, i64 %6, i64 %1)
store i64 %9, i64* %rax.0.reg2mem
switch i32 %5, label LBL_5 [
i32 1, label LBL_1
i32 2, label LBL_4
]
LBL_1:
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64* nonnull %sv_0)
%14 = icmp eq i64 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_2
LBL_2:
%15 = and i64 %2, 4294967295
store i64 %13, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%16 = call i64 @FUNC(i64 %15, i64 %.reload)
%17 = load i64, i64* %11, align 8
%18 = call i64 @FUNC(i64 %17, i64* nonnull %sv_0)
%19 = icmp eq i64 %18, 0
store i64 %18, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_5, label LBL_3
LBL_4:
%20 = add i64 %3, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
store i64 0, i64* %21, align 8
store i64 %3, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %11, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64*)* @io_getline, { 1, 0 }
uselistorder label LBL_5, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | usb_ehci_unrealize_9117 | usb_ehci_unrealize | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
br label LBL_2
LBL_2:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %7)
br label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %0, i64 0)
%11 = call i64 @FUNC(i64 %0, i64 1)
%12 = add i64 %0, 24
%13 = add i64 %0, 16
%14 = call i64 @FUNC(i64 %13, i64 %12)
%15 = add i64 %0, 32
%16 = call i64 @FUNC(i64 %13, i64 %15)
%17 = add i64 %0, 40
%18 = call i64 @FUNC(i64 %13, i64 %17)
%19 = add i64 %0, 48
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %0, 56
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %23)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %0, { 2, 4, 3, 9, 8, 7, 6, 5, 10, 1, 0 }
uselistorder i64 (i64, i64)* @memory_region_del_subregion, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @ehci_queues_rip_all, { 1, 0 }
} | 0 |
BinRealVul | qmp_query_migrate_parameters_14295 | qmp_query_migrate_parameters | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC(i64 20)
%2 = inttoptr i64 %0 to i32*
%3 = load i32, i32* %2, align 4
%4 = inttoptr i64 %1 to i32*
store i32 %3, i32* %4, align 4
%5 = add i64 %0, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %1, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %1, 8
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %0, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %1, 12
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %1, 16
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
ret i64 %1
} | 1 |
BinRealVul | gen_enter_10226 | gen_enter | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi10.reg2mem = alloca i32
%storemerge68.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = call i64 @FUNC(i64 %2)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i32 2, i32* %storemerge7.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%phitmp = zext i1 %13 to i32
store i32 %phitmp, i32* %storemerge7.reg2mem
br label LBL_2
LBL_2:
%14 = trunc i64 %4 to i32
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%15 = urem i32 %14, 32
%16 = shl i32 1, %15
%17 = load i32, i32* @gv_0, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 0, i64 %18, i32 %16)
%20 = call i64 @FUNC(i64 %2, i32 %storemerge7.reload, i64 0, i64 6, i64 4294967295)
%21 = load i32, i32* @gv_1, align 4
%22 = call i64 @FUNC(i64 %2, i32 %14, i32 %21, i64 1)
%23 = urem i64 %arg3, 32
%24 = icmp eq i64 %23, 0
store i32 0, i32* %.pre-phi10.reg2mem
br i1 %24, label LBL_6, label LBL_3
LBL_3:
%25 = trunc i64 %23 to i32
%26 = icmp ugt i32 %25, 1
store i32 1, i32* %storemerge68.reg2mem
br i1 %26, label LBL_4, label LBL_5
LBL_4:
%storemerge68.reload = load i32, i32* %storemerge68.reg2mem
%27 = shl i32 %storemerge68.reload, %15
%28 = load i32, i32* @gv_1, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 1, i64 %29, i32 %27)
%31 = call i64 @FUNC(i64 %2, i32 %storemerge7.reload, i64 1, i64 6, i64 4294967295)
%32 = call i64 @FUNC(i64 %2, i32 %14, i64 2, i64 1)
%33 = call i64 @FUNC(i64 1, i64 0, i32 %27)
%34 = call i64 @FUNC(i64 %2, i32 %storemerge7.reload, i64 1, i64 6, i64 4294967295)
%35 = call i64 @FUNC(i64 %2, i32 %14, i32 2, i64 1)
%36 = add nuw nsw i32 %storemerge68.reload, 1
%exitcond = icmp eq i32 %36, %25
store i32 %36, i32* %storemerge68.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
%37 = shl i32 %25, %15
%38 = call i64 @FUNC(i64 1, i64 0, i32 %37)
%39 = call i64 @FUNC(i64 %2, i32 %storemerge7.reload, i64 1, i64 6, i64 4294967295)
%40 = call i64 @FUNC(i64 %2, i32 %14, i32 0, i64 1)
store i32 %37, i32* %.pre-phi10.reg2mem
br label LBL_6
LBL_6:
%.pre-phi10.reload = load i32, i32* %.pre-phi10.reg2mem
%41 = zext i32 %storemerge7.reload to i64
%42 = call i64 @FUNC(i64 %41, i64 5, i64 0)
%43 = trunc i64 %arg2 to i32
%44 = add i32 %.pre-phi10.reload, %43
%45 = call i64 @FUNC(i64 0, i64 0, i32 %44)
%46 = call i64 @FUNC(i64 %41, i64 4, i64 0)
ret i64 %46
uselistorder i32 %storemerge68.reload, { 1, 0 }
uselistorder i32 %25, { 1, 0, 2 }
uselistorder i64 %23, { 1, 0 }
uselistorder i32 %15, { 1, 2, 0 }
uselistorder i32 %storemerge7.reload, { 1, 4, 3, 2, 0 }
uselistorder i32 %14, { 1, 2, 3, 4, 0 }
uselistorder i64 %2, { 2, 1, 4, 3, 6, 5, 8, 7, 0, 9, 10 }
uselistorder i32* %storemerge7.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge68.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre-phi10.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @gen_op_mov_reg_v, { 1, 0 }
uselistorder i64 (i64, i32, i32, i64)* @gen_op_st_v, { 1, 2, 0 }
uselistorder i64 1, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i64 (i64, i32, i64, i64, i64)* @gen_lea_v_seg, { 1, 3, 2, 0 }
uselistorder i64 (i64, i64, i32)* @tcg_gen_subi_tl, { 4, 1, 3, 2, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | sug_filltree_5827 | sug_filltree | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i32
%sv_0.0.ph13.reg2mem = alloca i32
%sv_1.0.ph14.reg2mem = alloca i32
%sv_2.012.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.010.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %arg1, align 8
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_18
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %4, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp ne i64* %arg2, null
%11 = icmp eq i64 %9, 0
%12 = icmp eq i1 %11, false
%or.cond3 = icmp eq i1 %10, %12
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_2, label LBL_18
LBL_2:
%13 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%14 = icmp eq i32 %13, 0
store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %14, label LBL_3, label LBL_17
LBL_3:
%15 = ptrtoint i64* %sv_5 to i64
%16 = add i64 %15, -848
%17 = add i64 %15, -448
%18 = add i64 %15, -960
%19 = add i64 %15, -1472
%20 = add i64 %0, 12
%21 = inttoptr i64 %20 to i32*
%22 = add i64 %4, 16
%23 = inttoptr i64 %22 to i32*
%24 = add i64 %4, 1
store i32 0, i32* %sv_1.0.ph14.reg2mem
store i32 0, i32* %sv_0.0.ph13.reg2mem
br label LBL_4.lr.ph
LBL_4:
%sv_1.010.reload = load i32, i32* %sv_1.010.reg2mem
%25 = sext i32 %sv_1.010.reload to i64
%26 = mul i64 %25, 4
%27 = add i64 %26, %16
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
%31 = add i64 %26, %17
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = sext i32 %33 to i64
%35 = add i64 %34, %4
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = zext i8 %37 to i64
%39 = icmp ugt i64 %30, %38
br i1 %39, label LBL_5, label LBL_9
LBL_5:
%40 = mul i64 %34, 4
%41 = add i64 %40, %9
%42 = add i64 %26, %19
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = inttoptr i64 %41 to i32*
store i32 %44, i32* %45, align 4
%46 = icmp slt i32 %sv_1.010.reload, 1
%.pre = add i32 %sv_1.010.reload, -1
br i1 %46, label LBL_7, label LBL_6
LBL_6:
%47 = sext i32 %.pre to i64
%48 = mul i64 %47, 4
%49 = add i64 %48, %19
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = load i32, i32* %43, align 4
%53 = add i32 %52, %51
store i32 %53, i32* %50, align 4
br label LBL_7
LBL_7:
%54 = call i64 @FUNC()
store i32 %.pre, i32* %sv_1.0.be.reg2mem
br label LBL_8
LBL_8:
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%55 = icmp sgt i32 %sv_1.0.be.reload, -1
%56 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%57 = icmp eq i32 %56, 0
%or.cond = icmp eq i1 %55, %57
store i32 %sv_1.0.be.reload, i32* %sv_1.010.reg2mem
store i32 %sv_0.0.ph13.reload, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %or.cond, label LBL_4, label LBL_17
LBL_9:
%58 = add i32 %33, %29
%59 = add i32 %29, 1
store i32 %59, i32* %28, align 4
%60 = sext i32 %58 to i64
%61 = add i64 %60, %4
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = icmp eq i8 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_14, label LBL_10
LBL_10:
%66 = add i64 %18, %25
%67 = inttoptr i64 %66 to i8*
store i8 0, i8* %67, align 1
%68 = call i64 @FUNC(i64 %4, i64* nonnull %sv_3, i64 1, i64* nonnull %sv_4)
%69 = udiv i32 %sv_0.0.ph13.reload, 65536
%70 = zext i32 %69 to i64
%71 = urem i32 %sv_0.0.ph13.reload, 65536
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %0, i64* nonnull %sv_4, i64 %70, i64 %70, i64 %72, i64 0)
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, -1
%76 = icmp eq i1 %75, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %76, label LBL_11, label LBL_18
LBL_11:
%77 = add i64 %26, %19
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = add i32 %79, 1
store i32 %80, i32* %78, align 4
store i32 0, i32* %21, align 4
%81 = add i32 %58, 1
%82 = load i32, i32* %23, align 4
%83 = icmp ult i32 %81, %82
store i32 %81, i32* %.reg2mem
store i32 %58, i32* %sv_2.012.reg2mem
br i1 %83, label LBL_13, label LBL_15
LBL_12:
%.reload = load i32, i32* %.reg2mem
%84 = load i32, i32* %28, align 4
%85 = add i32 %84, 1
store i32 %85, i32* %28, align 4
%86 = add i32 %.reload, 1
%87 = load i32, i32* %23, align 4
%88 = icmp ult i32 %86, %87
store i32 %86, i32* %.reg2mem
store i32 %.reload, i32* %sv_2.012.reg2mem
br i1 %88, label LBL_13, label LBL_15
LBL_13:
%sv_2.012.reload = load i32, i32* %sv_2.012.reg2mem
%89 = sext i32 %sv_2.012.reload to i64
%90 = add i64 %24, %89
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 1
%93 = icmp eq i8 %92, 0
br i1 %93, label LBL_12, label LBL_15
LBL_14:
%94 = add i32 %sv_1.010.reload, 1
%95 = add i64 %18, %25
%96 = inttoptr i64 %95 to i8*
store i8 %63, i8* %96, align 1
%97 = mul i64 %60, 4
%98 = add i64 %97, %9
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = sext i32 %94 to i64
%102 = mul i64 %101, 4
%103 = add i64 %102, %17
%104 = inttoptr i64 %103 to i32*
store i32 %100, i32* %104, align 4
%105 = add i64 %102, %16
%106 = inttoptr i64 %105 to i32*
store i32 1, i32* %106, align 4
%107 = add i64 %102, %19
%108 = inttoptr i64 %107 to i32*
store i32 0, i32* %108, align 4
store i32 %94, i32* %sv_1.0.be.reg2mem
br label LBL_8
LBL_15:
%109 = add i32 %sv_0.0.ph13.reload, 1
%110 = icmp sgt i32 %sv_1.010.reload, -1
%111 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%112 = icmp eq i32 %111, 0
%or.cond9 = icmp eq i1 %110, %112
store i32 %sv_1.010.reload, i32* %sv_1.0.ph14.reg2mem
store i32 %109, i32* %sv_0.0.ph13.reg2mem
store i32 %109, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %or.cond9, label LBL_4.lr.ph, label LBL_17
LBL_16:
%sv_0.0.ph13.reload = load i32, i32* %sv_0.0.ph13.reg2mem
%sv_1.0.ph14.reload = load i32, i32* %sv_1.0.ph14.reg2mem
store i32 %sv_1.0.ph14.reload, i32* %sv_1.010.reg2mem
br label LBL_4
LBL_17:
%sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem
%113 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%114 = zext i32 %sv_0.0.ph.lcssa.reload to i64
%115 = call i64 @FUNC(i64 %113, i64 %114)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.ph13.reload, { 0, 3, 2, 1 }
uselistorder i64 %102, { 2, 1, 0 }
uselistorder i32 %sv_1.0.be.reload, { 1, 0 }
uselistorder i32 %29, { 1, 0, 2 }
uselistorder i32* %28, { 1, 0, 2, 3 }
uselistorder i64 %26, { 3, 2, 1, 0 }
uselistorder i64 %25, { 2, 1, 0 }
uselistorder i32 %sv_1.010.reload, { 0, 5, 1, 4, 2, 3 }
uselistorder i32* %23, { 1, 0 }
uselistorder i64 %19, { 2, 3, 0, 1 }
uselistorder i64 %15, { 0, 1, 3, 2 }
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64 %4, { 4, 0, 1, 2, 3, 5 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %sv_1.010.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.012.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 65536, { 1, 0 }
uselistorder i8 0, { 2, 3, 0, 1 }
uselistorder i32 -1, { 1, 3, 2, 0 }
uselistorder i32 0, { 4, 6, 7, 5, 1, 2, 0, 3 }
uselistorder i32* bitcast (i64* @gv_0 to i32*), { 1, 2, 0 }
uselistorder i64 0, { 0, 3, 4, 5, 2, 1, 6, 7 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder label LBL_18, { 3, 0, 1, 2 }
uselistorder label LBL_4.lr.ph, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | virtio_scsi_vring_init_14094 | virtio_scsi_vring_init | 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 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %2)
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = and i64 %5, 4294967295
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %8, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i64 %9)
%11 = bitcast i64* %arg1 to i8*
store i8 1, i8* %11, align 1
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%12 = ptrtoint i64* %arg2 to i64
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %12, i64 %15, i64 1, i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | update_rq_clock_task_8793 | update_rq_clock_task | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, %arg2
store i64 %1, i64* %arg1, align 8
ret i64 %0
} | 0 |
BinRealVul | __fsnotify_parent_6930 | __fsnotify_parent | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge4.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%1 = icmp eq i64 %arg2, 0
%2 = icmp eq i1 %1, false
%spec.select = select i1 %2, i64 %arg2, i64 %0
%3 = add i64 %spec.select, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_9
LBL_1:
%9 = call i64 @FUNC(i64 %spec.select)
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = call i64 @FUNC(i64 %11)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_3:
%20 = inttoptr i64 %11 to i32*
%21 = load i32, i32* %20, align 4
%22 = trunc i64 %arg3 to i32
%23 = and i32 %21, %22
%24 = icmp eq i32 %23, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_8, label LBL_4
LBL_4:
%sext = mul i64 %arg3, 4294967296
%sext3 = ashr exact i64 %sext, 32
%25 = or i64 %sext3, 2
%26 = call i64 @FUNC(i64* nonnull %sv_1, i64 %spec.select)
%27 = icmp eq i64* %arg1, null
%28 = load i64, i64* %sv_1, align 8
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%29 = trunc i64 %25 to i32
%30 = call i64 @FUNC(i64 %11, i32 %29, i64 %0, i64 3, i64 %28, i64 0)
store i64 %30, i64* %storemerge4.in.reg2mem
br label LBL_7
LBL_6:
%31 = inttoptr i64 %spec.select to i64*
%32 = load i64, i64* %31, align 8
%33 = trunc i64 %25 to i32
%34 = call i64 @FUNC(i64 %11, i32 %33, i64 %32, i64 4, i64 %28, i64 0)
store i64 %34, i64* %storemerge4.in.reg2mem
br label LBL_7
LBL_7:
%storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem
%35 = call i64 @FUNC(i64* nonnull %sv_1)
%phitmp = and i64 %storemerge4.in.reload, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = call i64 @FUNC(i64 %9)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %11, { 0, 1, 3, 2, 4 }
uselistorder i64 %spec.select, { 3, 2, 0, 1 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge4.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i32, i64, i64, i64, i64)* @fsnotify, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | iio_sw_buffer_preenable_18191 | iio_sw_buffer_preenable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 32
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%7 = add i64 %4, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %4, i64 %13, i32 %9)
%15 = trunc i64 %14 to i32
store i32 %15, i32* %11, align 4
%16 = add i64 %4, 20
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i32 %15, i32* %storemerge1.reg2mem
br i1 %19, label LBL_2, label LBL_1
LBL_1:
%20 = add i64 %4, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %22 to i64
%24 = zext i32 %18 to i64
%25 = call i64 @FUNC(i64 %24, i64 %23, i32 %15)
%26 = trunc i64 %25 to i32
store i32 %26, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
store i32 %storemerge1.reload, i32* %8, align 4
%27 = call i64 @FUNC(i64 %4)
%28 = add i64 %4, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
%storemerge = select i1 %33, i64 0, i64 %4
ret i64 %storemerge
uselistorder i32 %15, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1, 3, 4, 5, 6, 7, 8 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | matroska_add_index_entries_16660 | matroska_add_index_entries | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem15 = alloca i32
%storemerge47.reg2mem = alloca i32
%.reg2mem13 = alloca i64
%storemerge8.reg2mem = alloca i32
%.reg2mem11 = alloca i64
%.reg2mem = alloca i32
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i64, i64* %1
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = ptrtoint i64* %arg1 to i64
%8 = trunc i64 %7 to i32
%9 = urem i32 %8, 2
%10 = zext i32 %9 to i64
%11 = icmp eq i32 %9, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_12, label LBL_1
LBL_1:
%13 = add i64 %7, 24
%14 = inttoptr i64 %13 to i32*
%15 = add i64 %7, 32
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = load i32, i32* %14, align 4
%19 = icmp eq i32 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_12, label LBL_2
LBL_2:
%20 = inttoptr i64 %17 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i128 @FUNC(i128 %6, i128 %6)
%23 = call i128 @FUNC(i64 %21)
%24 = add i64 %7, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = call i128 @FUNC(i128 %5, i128 %5)
%28 = call i128 @__asm_cvtsi2sd.1(i32 %26)
%29 = call i128 @FUNC(i64 4816244402031689728)
%30 = call i128 @FUNC(i128 %29, i128 %28)
call void @FUNC(i128 %23, i128 %30)
%31 = call i64 @FUNC(i64 %7, i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %3, i64 %2)
%32 = load i32, i32* %25, align 4
%.pre = load i32, i32* %14, align 4
%33 = icmp eq i32 %.pre, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_12, label LBL_3
LBL_3:
%phitmp6 = sext i32 %32 to i64
%34 = add i64 %7, 16
%35 = inttoptr i64 %34 to i64*
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %.reg2mem11
store i32 0, i32* %storemerge8.reg2mem
br label LBL_4
LBL_4:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%.reload12 = load i64, i64* %.reg2mem11
%.reload = load i32, i32* %.reg2mem
%36 = mul nsw i64 %.reload12, 24
%37 = add i64 %36, %17
%38 = add i64 %37, 8
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp eq i32 %40, 0
store i32 %.reload, i32* %.reg2mem15
br i1 %41, label LBL_11, label LBL_5
LBL_5:
%42 = add i64 %37, 16
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = inttoptr i64 %37 to i64*
store i64 0, i64* %.reg2mem13
store i32 0, i32* %storemerge47.reg2mem
br label LBL_6
LBL_6:
%storemerge47.reload = load i32, i32* %storemerge47.reg2mem
%.reload14 = load i64, i64* %.reg2mem13
%46 = mul i64 %.reload14, 16
%47 = add i64 %46, %44
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = zext i32 %49 to i64
%51 = call i64 @FUNC(i64 %7, i64 %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label LBL_9, label LBL_7
LBL_7:
%53 = inttoptr i64 %51 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_9, label LBL_8
LBL_8:
%56 = load i64, i64* %45, align 8
%57 = udiv i64 %56, %phitmp6
%58 = add i64 %47, 8
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = load i64, i64* %35, align 8
%62 = add i64 %61, %60
%63 = call i64 @FUNC(i64 %54, i64 %62, i64 %57, i64 0, i64 0, i64 1)
br label LBL_9
LBL_9:
%64 = add i32 %storemerge47.reload, 1
%65 = load i32, i32* %39, align 4
%66 = zext i32 %65 to i64
%67 = sext i32 %64 to i64
%68 = icmp slt i64 %67, %66
store i64 %67, i64* %.reg2mem13
store i32 %64, i32* %storemerge47.reg2mem
br i1 %68, label LBL_6, label LBL_10
LBL_10:
%.pre10 = load i32, i32* %14, align 4
store i32 %.pre10, i32* %.reg2mem15
br label LBL_11
LBL_11:
%.reload16 = load i32, i32* %.reg2mem15
%69 = add i32 %storemerge8.reload, 1
%70 = zext i32 %.reload16 to i64
%71 = sext i32 %69 to i64
%72 = icmp slt i64 %71, %70
store i32 %.reload16, i32* %.reg2mem
store i64 %71, i64* %.reg2mem11
store i32 %69, i32* %storemerge8.reg2mem
store i64 %70, i64* %rax.0.reg2mem
br i1 %72, label LBL_4, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload16, { 1, 0 }
uselistorder i32* %39, { 1, 0 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %7, { 4, 3, 0, 2, 6, 5, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem11, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem13, { 1, 0, 2 }
uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64* %1, { 2, 1, 0 }
uselistorder i128* %0, { 1, 0 }
uselistorder label LBL_12, { 0, 2, 1, 3 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | dexOptGenerateCacheFileName_11838 | dexOptGenerateCacheFileName | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge45.reg2mem = alloca i8*
%.reg2mem = alloca i8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i8, align 1
store i8 0, i8* %sv_2, align 1
%5 = trunc i64 %3 to i8
%6 = icmp eq i8 %5, 47
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = call i8* @getcwd(i8* nonnull %sv_2, i32 511)
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 511, i64 511, i64 %4, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_3:
%11 = call i8* @strncat(i8* nonnull %sv_2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 511)
br label LBL_4
LBL_4:
%12 = inttoptr i64 %arg1 to i8*
%13 = call i8* @strncat(i8* nonnull %sv_2, i8* %12, i32 511)
%14 = icmp eq i64 %arg2, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i8* @strncat(i8* nonnull %sv_2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 511)
%16 = inttoptr i64 %arg2 to i8*
%17 = call i8* @strncat(i8* nonnull %sv_2, i8* %16, i32 511)
br label LBL_6
LBL_6:
%18 = bitcast i64* %sv_1 to i8*
%19 = load i8, i8* %18, align 8
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
store i8 %19, i8* %.reg2mem
store i8* %18, i8** %storemerge45.reg2mem
br i1 %21, label LBL_7, label LBL_10
LBL_7:
%storemerge45.reload = load i8*, i8** %storemerge45.reg2mem
%.reload = load i8, i8* %.reg2mem
%22 = icmp eq i8 %.reload, 47
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_9, label LBL_8
LBL_8:
store i8 64, i8* %storemerge45.reload, align 1
br label LBL_9
LBL_9:
%24 = ptrtoint i8* %storemerge45.reload to i64
%25 = add i64 %24, 1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
store i8 %27, i8* %.reg2mem
store i8* %26, i8** %storemerge45.reg2mem
br i1 %29, label LBL_7, label LBL_10
LBL_10:
%30 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
%31 = icmp eq i8* %30, null
%32 = icmp eq i1 %31, false
%spec.select = select i1 %32, i8* %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0)
%33 = ptrtoint i8* %spec.select to i64
%34 = bitcast i64* %sv_0 to i8*
%35 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %34, i32 511, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i8* %spec.select, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0))
%36 = call i32 @strcmp(i8* %spec.select, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_14, label LBL_11
LBL_11:
%38 = call i64 @FUNC(i64* nonnull %sv_0, i64 448)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_14, label LBL_12
LBL_12:
%41 = call i32* @__errno_location()
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 17
br i1 %43, label LBL_14, label LBL_13
LBL_13:
%44 = call i32* @__errno_location()
%45 = load i32, i32* %44, align 4
%46 = call i8* @strerror(i32 %45)
%47 = ptrtoint i8* %46 to i64
%48 = ptrtoint i64* %sv_0 to i64
%49 = call i64 @FUNC(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_6, i64 0, i64 0), i64 %48, i64 %47, i64 %33, i64 ptrtoint ([13 x i8]* @gv_5 to i64), i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_14:
%50 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %34, i32 511, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i8* %spec.select, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_8, i64 0, i64 0))
%51 = call i32 @strcmp(i8* %spec.select, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_18, label LBL_15
LBL_15:
%53 = call i64 @FUNC(i64* nonnull %sv_0, i64 448)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
br i1 %55, label LBL_18, label LBL_16
LBL_16:
%56 = call i32* @__errno_location()
%57 = load i32, i32* %56, align 4
%58 = icmp eq i32 %57, 17
br i1 %58, label LBL_18, label LBL_17
LBL_17:
%59 = call i32* @__errno_location()
%60 = load i32, i32* %59, align 4
%61 = call i8* @strerror(i32 %60)
%62 = ptrtoint i8* %61 to i64
%63 = ptrtoint i64* %sv_0 to i64
%64 = call i64 @FUNC(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_6, i64 0, i64 0), i64 %63, i64 %62, i64 %33, i64 ptrtoint ([13 x i8]* @gv_5 to i64), i64 ptrtoint ([16 x i8]* @gv_8 to i64))
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_18:
%65 = call i8* @strncat(i8* nonnull %34, i8* nonnull %sv_2, i32 511)
%66 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_9, i64 0, i64 0), i64 %arg1, i64 %arg2, i64* nonnull %sv_0, i64 ptrtoint ([13 x i8]* @gv_5 to i64), i64 ptrtoint ([16 x i8]* @gv_8 to i64))
%67 = call i8* @strdup(i8* nonnull %34)
%68 = ptrtoint i8* %67 to i64
store i64 %68, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 0, 4, 1, 5, 2, 3 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %storemerge45.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 ptrtoint ([16 x i8]* @gv_8 to i64), { 1, 0 }
uselistorder [16 x i8]* @gv_8, { 1, 0 }
uselistorder i64 ptrtoint ([13 x i8]* @gv_5 to i64), { 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 2, 3, 0 }
uselistorder i64 (i64*, i64)* @dexOptMkdir, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder [13 x i8]* @gv_5, { 1, 0 }
uselistorder i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), { 1, 2, 0 }
uselistorder i8* (i8*, i8*, i32)* @strncat, { 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @ALOGE, { 2, 1, 0 }
uselistorder i64 511, { 1, 0 }
uselistorder i1 false, { 2, 3, 1, 0, 4 }
uselistorder i32 511, { 4, 5, 6, 3, 2, 7, 0, 1 }
uselistorder i8 0, { 3, 0, 2, 4, 5, 1 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | vp9_rc_regulate_q_18728 | vp9_rc_regulate_q | define i64 @FUNC(i32* %arg1, i32 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i32
%.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_2.0.lcssa.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i128 @FUNC(i64 %2)
%4 = call i64 @FUNC(i128 %3)
%5 = sext i32 %arg2 to i64
%6 = mul i64 %5, 1024
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sext i32 %9 to i64
%11 = udiv i64 %6, %10
%12 = trunc i64 %11 to i32
%13 = call i128 @__asm_movq.2(i64 %4)
%14 = zext i32 %arg3 to i64
%15 = and i64 %1, 4294967295
%16 = call i64 @FUNC(i64 %15, i64 %14)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %12, %17
store i64 2147483647, i64* %sv_2.0.lcssa.reg2mem
store i32 %arg3, i32* %sv_1.0.lcssa.reg2mem
store i64 %16, i64* %.lcssa.reg2mem
store i64 %16, i64* %.reg2mem
store i32 %arg3, i32* %sv_1.05.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_1:
%.reload = load i64, i64* %.reg2mem
%19 = call i128 @__asm_movq.2(i64 %4)
%20 = zext i32 %29 to i64
%21 = call i64 @FUNC(i64 %15, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %12, %22
store i64 %21, i64* %.reg2mem
store i32 %29, i32* %sv_1.05.reg2mem
br i1 %23, label LBL_4, label LBL_1.LBL_3_crit_edge
LBL_2:
%24 = sub i64 %.reload, %11
%phitmp = mul i64 %24, 4294967296
%phitmp8 = ashr exact i64 %phitmp, 32
store i64 %phitmp8, i64* %sv_2.0.lcssa.reg2mem
store i32 %29, i32* %sv_1.0.lcssa.reg2mem
store i64 %21, i64* %.lcssa.reg2mem
br label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_2.0.lcssa.reload = load i64, i64* %sv_2.0.lcssa.reg2mem
%25 = sub i64 %11, %.lcssa.reload
%26 = and i64 %25, 4294967295
%27 = icmp slt i64 %sv_2.0.lcssa.reload, %26
%28 = sext i1 %27 to i32
%spec.select = add i32 %sv_1.0.lcssa.reload, %28
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%29 = add i32 %sv_1.05.reload, 1
%30 = icmp sgt i32 %29, %arg4
store i32 %arg4, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_5, label LBL_1
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%31 = zext i32 %sv_0.0.reload to i64
ret i64 %31
uselistorder i32 %29, { 3, 2, 0, 1 }
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_2.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.05.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @vp9_rc_bits_per_mb, { 1, 0 }
uselistorder i128 (i64)* @__asm_movq.2, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | smb_send_rqst_11692 | smb_send_rqst | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.2.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i32, align 4
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = call i64 @FUNC(i64 %4)
store i32 1, i32* %sv_4, align 4
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %3, i64 %2, i64 %1)
%12 = inttoptr i64 %6 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 ptrtoint ([24 x i8]* @gv_0 to i64), i64 %13)
%15 = call i64 @FUNC(i64 %4, i64 6, i64 3, i32* nonnull %sv_4, i64 4)
%16 = call i64 @FUNC(i64 %5, i64 %4, i32 %8, i64* nonnull %sv_3)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
store i64 0, i64* %sv_1.1.reg2mem
store i32 %17, i32* %sv_0.1.reg2mem
br i1 %18, label LBL_5, label LBL_1
LBL_1:
%19 = load i64, i64* %sv_3, align 8
%20 = add i64 %4, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
store i64 %19, i64* %sv_1.1.reg2mem
store i32 %17, i32* %sv_0.1.reg2mem
br i1 %23, label LBL_5, label LBL_2
LBL_2:
%24 = ptrtoint i64* %sv_2 to i64
%25 = add i64 %4, 16
%26 = inttoptr i64 %25 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %19, i64* %sv_1.02.reg2mem
br label LBL_3
LBL_3:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%27 = call i64 @FUNC(i64 %4, i64 %indvars.iv.reload, i64* nonnull %sv_2)
%28 = call i64 @FUNC(i64 %5, i64 %24, i32 1, i64* nonnull %sv_3)
%29 = trunc i64 %28 to i32
%30 = load i64, i64* %26, align 8
%31 = mul i64 %indvars.iv.reload, 8
%32 = add i64 %30, %31
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = icmp slt i32 %29, 0
store i64 %sv_1.02.reload, i64* %sv_1.1.reg2mem
store i32 %29, i32* %sv_0.1.reg2mem
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%37 = load i64, i64* %sv_3, align 8
%38 = add i64 %37, %sv_1.02.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%39 = load i32, i32* %21, align 4
%40 = zext i32 %39 to i64
%41 = icmp ult i64 %indvars.iv.next, %40
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %38, i64* %sv_1.02.reg2mem
store i64 %38, i64* %sv_1.1.reg2mem
store i32 %29, i32* %sv_0.1.reg2mem
br i1 %41, label LBL_3, label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
store i32 0, i32* %sv_4, align 4
%42 = ptrtoint i32* %sv_4 to i64
%43 = call i64 @FUNC(i64 %4, i64 6, i64 3, i32* nonnull %sv_4, i64 4)
%44 = icmp eq i64 %sv_1.1.reload, 0
store i64 %42, i64* %rcx.0.reg2mem
br i1 %44, label LBL_8, label LBL_6
LBL_6:
%45 = add i64 %9, 4
%46 = and i64 %45, 4294967295
%47 = icmp eq i64 %sv_1.1.reload, %46
store i64 %42, i64* %rcx.0.reg2mem
br i1 %47, label LBL_8, label LBL_7
LBL_7:
%48 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i64 %46, i64 %sv_1.1.reload, i64 4, i64 %1)
%49 = add i64 %5, 8
%50 = inttoptr i64 %49 to i32*
store i32 1, i32* %50, align 4
store i64 %sv_1.1.reload, i64* %rcx.0.reg2mem
br label LBL_8
LBL_8:
%51 = icmp slt i32 %sv_0.1.reload, 0
%52 = icmp eq i1 %51, false
%53 = icmp eq i32 %sv_0.1.reload, -4
%or.cond = or i1 %53, %52
store i32 0, i32* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_10, label LBL_9
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%54 = zext i32 %sv_0.1.reload to i64
%55 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_2, i64 0, i64 0), i64 %54, i64 %rcx.0.reload, i64 4, i64 %1)
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_10
LBL_10:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%56 = zext i32 %sv_0.2.reload to i64
ret i64 %56
uselistorder i64 %46, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.02.reload, { 1, 0 }
uselistorder i32* %21, { 1, 0 }
uselistorder i64 %19, { 1, 0 }
uselistorder i32* %sv_4, { 0, 2, 3, 1, 4 }
uselistorder i64* %sv_3, { 2, 0, 3, 1 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 3, 2, 0, 1, 5, 6, 7, 4 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i64*)* @smb_send_kvec, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32*, i64)* @kernel_setsockopt, { 1, 0 }
uselistorder i64 4, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @cFYI, { 1, 0 }
uselistorder i64 0, { 4, 5, 6, 7, 11, 1, 0, 8, 9, 2, 3, 10 }
uselistorder [24 x i8]* @gv_0, { 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | show_floppy_10691 | show_floppy | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = call i64 @FUNC(i64* nonnull @gv_0, i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
%7 = call i64 @FUNC(i64* bitcast ([21 x i8]* @gv_1 to i64*), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64* bitcast ([21 x i8]* @gv_2 to i64*), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
%9 = load i64, i64* @gv_3, align 8
%10 = load i64, i64* @gv_4, align 8
%11 = load i64, i64* @gv_5, align 8
%12 = sub i64 %10, %11
%13 = call i64 @FUNC(i64* bitcast ([61 x i8]* @gv_6 to i64*), i64 %10, i64 %11, i64 %12, i64 %9, i64 %1)
%14 = call i64 @FUNC(i64* bitcast ([20 x i8]* @gv_7 to i64*), i64 ptrtoint (i64* @gv_8 to i64), i64 %11, i64 %12, i64 %9, i64 %1)
%15 = call i64 @FUNC(i64* bitcast ([20 x i8]* @gv_9 to i64*), i64 ptrtoint (i64* @gv_8 to i64), i64 %11, i64 %12, i64 %9, i64 %1)
store i32 0, i32* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%16 = load i32, i32* @gv_10, align 4
%17 = add i32 %16, %storemerge1.reload
%18 = srem i32 %17, 10
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 16
%21 = add i64 %20, ptrtoint (i64* @gv_11 to i64)
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %20, ptrtoint (i8** @gv_12 to i64)
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 8
%27 = add i64 %20, ptrtoint (i8** @gv_13 to i64)
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 8
%30 = zext i8 %26 to i64
%31 = zext i8 %29 to i64
%32 = call i64 @FUNC(i64* bitcast ([13 x i8]* @gv_14 to i64*), i64 %31, i64 %30, i64 %23, i64 0, i64 %1)
%33 = add nuw nsw i32 %storemerge1.reload, 1
%exitcond = icmp eq i32 %33, 10
store i32 %33, i32* %storemerge1.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%34 = load i64, i64* @gv_15, align 8
%35 = call i64 @FUNC(i64* bitcast ([20 x i8]* @gv_16 to i64*), i64 %34, i64 %30, i64 %23, i64 0, i64 %1)
%36 = load i64, i64* @gv_17, align 8
%37 = call i64 @FUNC(i64* bitcast ([29 x i8]* @gv_18 to i64*), i64 %36, i64 %30, i64 %23, i64 0, i64 %1)
%38 = load i64, i64* @gv_19, align 8
%39 = load i64, i64* @gv_20, align 8
%40 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_21, i64 0, i64 0), i64* nonnull @gv_22, i64 0, i64 16, i64 1, i64 %39, i64 %38)
%41 = call i64 @FUNC(i64 1015)
%42 = call i64 @FUNC(i64* bitcast ([11 x i8]* @gv_23 to i64*), i64 %41, i64 0, i64 16, i64 1, i64 %39)
%43 = load i64, i64* @gv_24, align 8
%44 = call i64 @FUNC(i64* bitcast ([14 x i8]* @gv_25 to i64*), i64 %43, i64 0, i64 16, i64 1, i64 %39)
%45 = load i64, i64* @gv_26, align 8
%46 = icmp eq i64 %45, 0
br i1 %46, label LBL_4, label LBL_3
LBL_3:
%47 = call i64 @FUNC(i64* bitcast ([15 x i8]* @gv_27 to i64*), i64 %45, i64 0, i64 16, i64 1, i64 %39)
br label LBL_4
LBL_4:
%48 = call i64 @FUNC(i64* nonnull @gv_28)
%49 = trunc i64 %48 to i8
%50 = icmp eq i8 %49, 0
br i1 %50, label LBL_6, label LBL_5
LBL_5:
%51 = load i64, i64* @gv_28, align 8
%52 = call i64 @FUNC(i64* bitcast ([22 x i8]* @gv_29 to i64*), i64 %51, i64 0, i64 16, i64 1, i64 %39)
br label LBL_6
LBL_6:
%53 = call i64 @FUNC(i64* nonnull @gv_30)
%54 = trunc i64 %53 to i8
%55 = icmp eq i8 %54, 0
store i64 16, i64* %rcx.1.reg2mem
store i64 0, i64* %rdx.1.reg2mem
br i1 %55, label LBL_8, label LBL_7
LBL_7:
%56 = load i64, i64* @gv_31, align 8
%57 = load i64, i64* @gv_4, align 8
%58 = sub i64 %56, %57
%59 = load i64, i64* @gv_30, align 8
%60 = call i64 @FUNC(i64* bitcast ([38 x i8]* @gv_32 to i64*), i64 %59, i64 %58, i64 %57, i64 1, i64 %39)
store i64 %57, i64* %rcx.1.reg2mem
store i64 %58, i64* %rdx.1.reg2mem
br label LBL_8
LBL_8:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%61 = call i64 @FUNC(i64* nonnull @gv_33)
%62 = trunc i64 %61 to i8
%63 = icmp eq i8 %62, 0
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
br i1 %63, label LBL_10, label LBL_9
LBL_9:
%64 = load i64, i64* @gv_34, align 8
%65 = load i64, i64* @gv_4, align 8
%66 = sub i64 %64, %65
%67 = load i64, i64* @gv_33, align 8
%68 = call i64 @FUNC(i64* bitcast ([31 x i8]* @gv_35 to i64*), i64 %67, i64 %66, i64 %65, i64 1, i64 %39)
store i64 %65, i64* %rcx.2.reg2mem
store i64 %66, i64* %rdx.2.reg2mem
br label LBL_10
LBL_10:
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%69 = load i64, i64* @gv_36, align 8
%70 = call i64 @FUNC(i64* bitcast ([9 x i8]* @gv_37 to i64*), i64 %69, i64 %rdx.2.reload, i64 %rcx.2.reload, i64 1, i64 %39)
%71 = load i64, i64* @gv_38, align 8
%72 = call i64 @FUNC(i64* bitcast ([16 x i8]* @gv_39 to i64*), i64 %71, i64 %rdx.2.reload, i64 %rcx.2.reload, i64 1, i64 %39)
%73 = load i32, i32* @gv_40, align 4
%74 = zext i32 %73 to i64
%75 = call i64 @FUNC(i64* bitcast ([19 x i8]* @gv_41 to i64*), i64 %74, i64 %rdx.2.reload, i64 %rcx.2.reload, i64 1, i64 %39)
%76 = call i64 @FUNC(i64* nonnull @gv_0, i64 %74, i64 %rdx.2.reload, i64 %rcx.2.reload, i64 1, i64 %39)
ret i64 %76
uselistorder i64 %74, { 1, 0 }
uselistorder i64 %rcx.2.reload, { 2, 3, 0, 1 }
uselistorder i64 %rdx.2.reload, { 2, 3, 0, 1 }
uselistorder i64 %65, { 0, 2, 1 }
uselistorder i64 %57, { 0, 2, 1 }
uselistorder i64 %39, { 5, 4, 7, 6, 3, 2, 1, 0, 8, 10, 9 }
uselistorder i64 %30, { 1, 0, 2 }
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %20, { 2, 1, 0 }
uselistorder i64 %12, { 2, 1, 0 }
uselistorder i64 %9, { 2, 1, 0 }
uselistorder i64 %5, { 2, 0, 1 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %1, { 7, 8, 6, 3, 4, 5, 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64* @gv_33, { 1, 0 }
uselistorder i64 (i64*)* @delayed_work_pending, { 1, 0 }
uselistorder i64* @gv_30, { 1, 0 }
uselistorder i8 0, { 1, 2, 3, 4, 0 }
uselistorder i64* @gv_28, { 1, 0 }
uselistorder i64 1, { 5, 4, 7, 6, 3, 2, 1, 0, 8, 10, 9 }
uselistorder i64 16, { 0, 3, 2, 6, 5, 4, 1 }
uselistorder i32 10, { 1, 0 }
uselistorder i64 ptrtoint (i64* @gv_8 to i64), { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64, i64, i64)* @pr_info, { 18, 17, 16, 15, 14, 13, 12, 10, 9, 8, 7, 6, 11, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 9, 7, 6, 5, 4, 3, 2, 8, 1, 0 }
} | 0 |
BinRealVul | gf_bt_get_next_6772 | gf_bt_get_next | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i32
%.reg2mem45 = alloca i32
%.reg2mem43 = alloca i32
%sv_1.016.reg2mem = alloca i32
%.reg2mem41 = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 12
%3 = inttoptr i64 %2 to i32*
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = trunc i64 %arg2 to i32
%7 = icmp ne i32 %6, 0
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%.pre = load i32, i32* %3, align 4
%.pre25 = load i32, i32* %5, align 4
store i32 %.pre25, i32* %.reg2mem43
store i32 %.pre, i32* %.reg2mem45
store i32 0, i32* %sv_0.0.ph.reg2mem
store i32 0, i32* %sv_1.0.ph.reg2mem
br label LBL_11
LBL_1:
%sv_1.016.reload = load i32, i32* %sv_1.016.reg2mem
%.reload42 = load i32, i32* %.reg2mem41
%.reload = load i32, i32* %.reg2mem
%10 = zext i32 %.reload to i64
%11 = add i64 %10, %0
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, 34
%15 = icmp eq i1 %14, false
%16 = icmp eq i32 %sv_1.016.reload, 0
%17 = icmp eq i1 %16, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%not. = icmp ne i1 %17, true
%. = zext i1 %not. to i32
%18 = add i32 %.reload42, 1
store i32 %18, i32* %3, align 4
%19 = add i32 %18, %sv_0.0.ph.reload
%20 = load i32, i32* %5, align 4
%21 = icmp ult i32 %19, %20
%22 = icmp eq i1 %21, false
store i32 %19, i32* %.reg2mem
store i32 %18, i32* %.reg2mem41
store i32 %., i32* %sv_1.016.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %22, label LBL_12, label LBL_1
LBL_3:
br i1 %17, label LBL_10, label LBL_4
LBL_4:
%23 = sext i8 %13 to i64
%24 = icmp sgt i8 %13, 46
br i1 %24, label LBL_9, label LBL_5
LBL_5:
%25 = icmp slt i8 %13, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_10
LBL_6:
%27 = add nsw i64 %23, 37
%28 = urem i64 %27, 64
%29 = lshr i64 21474836485, %28
%30 = urem i64 %29, 2
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %33, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %34, label LBL_12, label LBL_10
LBL_7:
%35 = urem i64 %23, 64
%36 = shl i64 1, %35
%37 = and i64 %36, 17596481021441
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
%40 = icmp eq i1 %39, false
%41 = icmp eq i1 %40, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %41, label LBL_12, label LBL_8
LBL_8:
%42 = icmp ne i64 %35, 46
%43 = icmp eq i1 %42, false
%or.cond4.not = icmp eq i1 %7, %43
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %or.cond4.not, label LBL_12, label LBL_10
LBL_9:
%.off = add i8 %13, -91
%44 = icmp ult i8 %.off, 35
br i1 %44, label LBL_6, label LBL_10
LBL_10:
%45 = add i32 %.reload42, %sv_0.0.ph.reload
%46 = zext i32 %45 to i64
%47 = add i64 %46, %0
%48 = load i64, i64* %9, align 8
%49 = sext i32 %sv_0.0.ph.reload to i64
%50 = add i64 %48, %49
%51 = inttoptr i64 %47 to i8*
%52 = load i8, i8* %51, align 1
%53 = inttoptr i64 %50 to i8*
store i8 %52, i8* %53, align 1
%54 = add i32 %sv_0.0.ph.reload, 1
%55 = load i32, i32* %3, align 4
%56 = add i32 %55, %54
%57 = load i32, i32* %5, align 4
%58 = icmp eq i32 %56, %57
store i32 %57, i32* %.reg2mem43
store i32 %55, i32* %.reg2mem45
store i32 %54, i32* %sv_0.0.ph.reg2mem
store i32 %sv_1.016.reload, i32* %sv_1.0.ph.reg2mem
store i32 %54, i32* %sv_0.1.reg2mem
br i1 %58, label LBL_12, label LBL_11
LBL_11:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%.reload46 = load i32, i32* %.reg2mem45
%.reload44 = load i32, i32* %.reg2mem43
%59 = add i32 %sv_0.0.ph.reload, %.reload46
%60 = icmp ult i32 %59, %.reload44
%61 = icmp eq i1 %60, false
store i32 %59, i32* %.reg2mem
store i32 %.reload46, i32* %.reg2mem41
store i32 %sv_1.0.ph.reload, i32* %sv_1.016.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %61, label LBL_12, label LBL_1
LBL_12:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%62 = load i64, i64* %9, align 8
%63 = sext i32 %sv_0.1.reload to i64
%64 = add i64 %62, %63
%65 = inttoptr i64 %64 to i8*
store i8 0, i8* %65, align 1
%66 = load i32, i32* %3, align 4
%67 = add i32 %66, %sv_0.1.reload
store i32 %67, i32* %3, align 4
%68 = load i64, i64* %9, align 8
ret i64 %68
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %.reload46, { 1, 0 }
uselistorder i32 %sv_0.0.ph.reload, { 0, 7, 8, 4, 2, 1, 3, 9, 6, 5 }
uselistorder i64 %35, { 1, 0 }
uselistorder i1 %17, { 1, 0 }
uselistorder i8 %13, { 0, 1, 3, 2, 4 }
uselistorder i32 %.reload42, { 1, 0 }
uselistorder i64* %9, { 1, 0, 2 }
uselistorder i32* %5, { 1, 2, 0 }
uselistorder i32* %3, { 1, 0, 3, 4, 2 }
uselistorder i64 %0, { 0, 1, 2, 4, 3, 5 }
uselistorder i32* %.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem41, { 1, 2, 0 }
uselistorder i32* %sv_1.016.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem43, { 0, 2, 1 }
uselistorder i32* %.reg2mem45, { 0, 2, 1 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 5, 4, 2, 3, 6 }
uselistorder i8 0, { 1, 0 }
uselistorder i1 false, { 0, 5, 6, 2, 7, 3, 1, 4, 8, 11, 9, 10 }
uselistorder i32 0, { 3, 0, 1, 2 }
uselistorder label LBL_12, { 4, 3, 0, 1, 2, 5 }
uselistorder label LBL_10, { 1, 3, 2, 0, 4 }
} | 0 |
BinRealVul | smack_inode_unlink_4733 | smack_inode_unlink | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
%1 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 1)
%2 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0)
%3 = load i64, i64* %sv_1, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %4, i64 1, i64* nonnull %sv_1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg1 to i64
%10 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 2)
%11 = call i64 @FUNC(i64* nonnull %sv_1, i64 %9)
%12 = call i64 @FUNC(i64 %9)
%13 = call i64 @FUNC(i64 %12, i64 1, i64* nonnull %sv_1)
store i64 %13, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = and i64 %sv_0.0.reload, 4294967295
ret i64 %14
uselistorder i64 %9, { 1, 0 }
uselistorder i64* %sv_1, { 0, 1, 2, 3, 6, 4, 5, 7 }
uselistorder i64 (i64, i64, i64*)* @smk_curacc, { 1, 0 }
uselistorder i64 (i64)* @smk_of_inode, { 1, 0 }
uselistorder i64 (i64*, i8*, i64)* @smk_ad_init, { 1, 0 }
} | 0 |
BinRealVul | tget_short_15833 | tget_short | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%5 = add i64 %0, 2
store i64 %5, i64* %arg1, align 8
%6 = and i64 %storemerge.reload, 4294967295
ret i64 %6
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | valid_field_6880 | valid_field | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i32
%sv_0.24.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i64
%.reg2mem11 = alloca i8*
%.reg2mem9 = alloca i8
%storemerge27.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_10
LBL_1:
%2 = inttoptr i64 %arg1 to i8*
%3 = load i8, i8* %2, align 1
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
store i8 %3, i8* %.reg2mem9
br i1 %5, label LBL_2, label LBL_6
LBL_2:
%6 = inttoptr i64 %arg2 to i8*
store i8 %3, i8* %.reg2mem
store i64 %arg1, i64* %storemerge27.reg2mem
br label LBL_3
LBL_3:
%.reload = load i8, i8* %.reg2mem
%7 = sext i8 %.reload to i32
%8 = call i8* @strchr(i8* %6, i32 %7)
%9 = icmp eq i8* %8, null
store i32 -1, i32* %sv_0.3.reg2mem
br i1 %9, label LBL_4, label LBL_9
LBL_4:
%storemerge27.reload = load i64, i64* %storemerge27.reg2mem
%10 = add i64 %storemerge27.reload, 1
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, 0
%14 = icmp eq i1 %13, false
store i8 %12, i8* %.reg2mem
store i64 %10, i64* %storemerge27.reg2mem
br i1 %14, label LBL_3, label LBL_4.LBL_6_crit_edge
LBL_5:
%.pre = load i8, i8* %2, align 1
store i8 %.pre, i8* %.reg2mem9
br label LBL_6
LBL_6:
%.reload10 = load i8, i8* %.reg2mem9
%15 = icmp eq i8 %.reload10, 0
%16 = icmp eq i1 %15, false
store i8* %2, i8** %.reg2mem11
store i64 %arg1, i64* %storemerge15.reg2mem
store i32 0, i32* %sv_0.24.reg2mem
store i32 0, i32* %sv_0.3.reg2mem
br i1 %16, label LBL_7, label LBL_9
LBL_7:
%.reload12 = load i8*, i8** %.reg2mem11
%17 = call i16** @__ctype_b_loc()
%18 = load i16*, i16** %17, align 8
%19 = ptrtoint i16* %18 to i64
%20 = load i8, i8* %.reload12, align 1
%21 = sext i8 %20 to i64
%22 = mul i64 %21, 2
%23 = add i64 %22, %19
%24 = inttoptr i64 %23 to i16*
%25 = load i16, i16* %24, align 2
%26 = call i16** @__ctype_b_loc()
%27 = load i16*, i16** %26, align 8
%28 = ptrtoint i16* %27 to i64
%29 = load i8, i8* %.reload12, align 1
%30 = sext i8 %29 to i64
%31 = mul i64 %30, 2
%32 = add i64 %31, %28
%33 = inttoptr i64 %32 to i16*
%34 = load i16, i16* %33, align 2
%35 = and i16 %34, 2
%36 = icmp eq i16 %35, 0
%37 = icmp eq i1 %36, false
store i32 -1, i32* %sv_0.3.reg2mem
br i1 %37, label LBL_8, label LBL_9
LBL_8:
%sv_0.24.reload = load i32, i32* %sv_0.24.reg2mem
%storemerge15.reload = load i64, i64* %storemerge15.reg2mem
%38 = and i16 %25, 16384
%39 = icmp eq i16 %38, 0
%40 = icmp eq i1 %39, false
%spec.select = select i1 %40, i32 %sv_0.24.reload, i32 1
%41 = add i64 %storemerge15.reload, 1
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 0
%45 = icmp eq i1 %44, false
store i8* %42, i8** %.reg2mem11
store i64 %41, i64* %storemerge15.reg2mem
store i32 %spec.select, i32* %sv_0.24.reg2mem
store i32 %spec.select, i32* %sv_0.3.reg2mem
br i1 %45, label LBL_7, label LBL_9
LBL_9:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%46 = zext i32 %sv_0.3.reload to i64
store i64 %46, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8 %3, { 1, 0, 2 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem9, { 0, 2, 1 }
uselistorder i8** %.reg2mem11, { 2, 0, 1 }
uselistorder i64* %storemerge15.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.24.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i16 0, { 1, 0 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i8 0, { 2, 1, 3, 0 }
uselistorder i1 false, { 4, 3, 2, 1, 5, 0, 6 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 3, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | brcmf_sdbrcm_write_vars_4674 | brcmf_sdbrcm_write_vars | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i1
%.reg2mem = alloca i32
%r8.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_2 = alloca i32, align 4
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i32 0, i32* %storemerge1.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 4)
%phitmp = trunc i64 %6 to i32
store i32 %phitmp, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = sub i32 %10, %storemerge1.reload
%12 = add i32 %11, -4
%13 = add i64 %7, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
%.pre4 = zext i32 %storemerge1.reload to i64
store i32 %10, i32* %.reg2mem
store i1 true, i1* %sv_1.0.reg2mem
br i1 %16, label LBL_12, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %.pre4, i64 0)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_16
LBL_4:
%20 = load i64, i64* %14, align 8
%21 = inttoptr i64 %17 to i64*
%22 = inttoptr i64 %20 to i64*
%23 = call i64* @memcpy(i64* %21, i64* %22, i32 %3)
%24 = call i64 @FUNC(i64 %7, i64 1, i32 %12, i64 %17, i64 %.pre4)
%25 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %.pre4, i64 %17, i64 %.pre4, i64 %1)
%26 = call i64 @FUNC(i64 %.pre4, i64 0)
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %17)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_16
LBL_6:
%30 = inttoptr i64 %26 to i64*
%31 = call i64* @memset(i64* %30, i32 170, i32 %storemerge1.reload)
%32 = call i64 @FUNC(i64 %7, i64 0, i32 %12, i64 %26, i64 %.pre4)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
store i64 %.pre4, i64* %r8.0.reg2mem
br i1 %34, label LBL_8, label LBL_7
LBL_7:
%35 = zext i32 %12 to i64
%36 = and i64 %32, 4294967295
%37 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i64 %36, i64 %.pre4, i64 %35, i64 %1)
store i64 %35, i64* %r8.0.reg2mem
br label LBL_8
LBL_8:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%38 = call i32 @memcmp(i64* %21, i64* %30, i32 %storemerge1.reload)
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %.pre4, i64 %26, i64 %r8.0.reload, i64 %1)
br label LBL_11
LBL_10:
%41 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0), i64 %.pre4, i64 %26, i64 %r8.0.reload, i64 %1)
br label LBL_11
LBL_11:
%42 = call i64 @FUNC(i64 %26)
%43 = call i64 @FUNC(i64 %17)
%.pre = load i32, i32* %9, align 4
store i32 %.pre, i32* %.reg2mem
store i1 %34, i1* %sv_1.0.reg2mem
store i64 %26, i64* %rcx.0.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
br label LBL_12
LBL_12:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_1.0.reload = load i1, i1* %sv_1.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%44 = zext i32 %.reload to i64
%45 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_4, i64 0, i64 0), i64 %44, i64 %rcx.0.reload, i64 %r8.1.reload, i64 %1)
%46 = zext i32 %12 to i64
%47 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_5, i64 0, i64 0), i64 %46, i64 %.pre4, i64 %r8.1.reload, i64 %1)
%48 = load i32, i32* %9, align 4
%49 = sub i32 %48, %12
%50 = add i32 %49, -4
br i1 %sv_1.0.reload, label LBL_14, label LBL_13
LBL_13:
%51 = call i64 @FUNC(i64 0)
store i64 0, i64* %sv_0.0.reg2mem
store i64 %51, i64* %storemerge.in.reg2mem
br label LBL_15
LBL_14:
%52 = udiv i32 %50, 4
%53 = mul i32 %52, 65536
%54 = urem i32 %52, 65536
%55 = or i32 %53, %54
%56 = xor i32 %55, -65536
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %57)
store i64 %57, i64* %sv_0.0.reg2mem
store i64 %58, i64* %storemerge.in.reg2mem
br label LBL_15
LBL_15:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
store i32 %storemerge, i32* %sv_2, align 4
%59 = zext i32 %50 to i64
%60 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %59, i64 %sv_0.0.reload, i64 %r8.1.reload, i64 %1)
%61 = load i32, i32* %9, align 4
%62 = add i32 %61, -4
%63 = ptrtoint i32* %sv_2 to i64
%64 = call i64 @FUNC(i64 %7, i64 1, i32 %62, i64 %63, i64 4)
%65 = and i64 %64, 4294967295
store i64 %65, 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 %52, { 1, 0 }
uselistorder i32 %50, { 1, 0 }
uselistorder i64 %r8.1.reload, { 2, 1, 0 }
uselistorder i64 %r8.0.reload, { 0, 2, 1 }
uselistorder i64 %26, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64 %17, { 1, 0, 4, 3, 2, 5 }
uselistorder i64 %.pre4, { 1, 8, 9, 10, 0, 7, 6, 5, 3, 4, 2 }
uselistorder i32 %12, { 3, 4, 0, 1, 2 }
uselistorder i32* %9, { 1, 2, 0, 3 }
uselistorder i32 %storemerge1.reload, { 0, 1, 3, 2 }
uselistorder i64 %7, { 2, 0, 1, 3, 4 }
uselistorder i32* %sv_2, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i1* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 (i64)* @cpu_to_le32, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @brcmf_dbg, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i64, i64)* @brcmf_sdbrcm_membytes, { 2, 1, 0 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder label LBL_16, { 1, 2, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vnc_dpy_copy_16689 | vnc_dpy_copy | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%storemerge12.lcssa.reg2mem = alloca i64
%storemerge1213.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge12.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_6
LBL_1:
%sext = mul i64 %arg7, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = ptrtoint i64* %sv_0 to i64
%5 = trunc i64 %arg6 to i32
%6 = trunc i64 %arg5 to i32
%7 = trunc i64 %arg4 to i32
%8 = trunc i64 %arg3 to i32
%9 = trunc i64 %arg2 to i32
%10 = and i64 %3, 4294967295
%11 = add i64 %4, -8
%12 = inttoptr i64 %11 to i64*
%13 = trunc i64 %3 to i32
store i64 %0, i64* %storemerge1213.reg2mem
br label LBL_2
LBL_2:
%storemerge1213.reload = load i64, i64* %storemerge1213.reg2mem
%14 = call i64 @FUNC(i64 %storemerge1213.reload, i64 1)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
store i64 %10, i64* %12, align 8
%17 = call i64 @FUNC(i64 %storemerge1213.reload, i32 %9, i32 %8, i32 %7, i32 %6, i32 %5)
br label LBL_5
LBL_4:
%18 = call i64 @FUNC(i64 %storemerge1213.reload, i32 %7, i32 %6, i32 %5, i32 %13)
br label LBL_5
LBL_5:
%19 = inttoptr i64 %storemerge1213.reload to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %storemerge1213.reg2mem
store i64 %20, i64* %storemerge12.lcssa.reg2mem
br i1 %22, label LBL_2, label LBL_6
LBL_6:
%storemerge12.lcssa.reload = load i64, i64* %storemerge12.lcssa.reg2mem
ret i64 %storemerge12.lcssa.reload
uselistorder i64 %storemerge1213.reload, { 3, 1, 0, 2 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge1213.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | samba_private_attr_name_18958 | samba_private_attr_name | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
store i64 ptrtoint ([17 x i8]* @gv_0 to i64), i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%.reload = load i64, i64* %.reg2mem
%0 = call i64 @FUNC(i64 %.reload, i64 %arg1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_4
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%3 = add i32 %storemerge1.reload, 1
%4 = sext i32 %3 to i64
%5 = mul i64 %4, 8
%6 = add i64 %5, ptrtoint ([4 x i8*]* @gv_1 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %.reg2mem
store i32 %3, i32* %storemerge1.reg2mem
br i1 %10, label LBL_1, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 4)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%. = zext i1 %13 to i64
store i64 %., 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* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 9, 0, 10, 1, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | qemu_rdma_data_init_15803 | qemu_rdma_data_init | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i8* %arg1, null
store i64 0, i64* %sv_0.1.reg2mem
br i1 %0, label LBL_5, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 24)
%2 = inttoptr i64 %1 to i64*
%3 = call i64* @memset(i64* %2, i32 0, i32 24)
%4 = inttoptr i64 %1 to i32*
store i32 -1, i32* %4, align 4
%5 = add i64 %1, 4
%6 = inttoptr i64 %5 to i32*
store i32 -1, i32* %6, align 4
%7 = ptrtoint i8* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i64 0)
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i64 %8, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i8*
%14 = call i32 @atoi(i8* %13)
%15 = add i64 %1, 8
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = inttoptr i64 %8 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %1, 16
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
store i64 %1, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%22 = ptrtoint i64* %arg2 to i64
%23 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %7)
%24 = call i64 @FUNC(i64 %1)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%25 = call i64 @FUNC(i64 %8)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
ret i64 %sv_0.1.reload
uselistorder i64 %8, { 1, 0, 2, 3 }
uselistorder i64 %1, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
} | 1 |
BinRealVul | nfs4_handle_setlk_error_8957 | nfs4_handle_setlk_error | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg4 to i32
%4 = icmp eq i32 %3, 4
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = icmp sgt i32 %3, 4
br i1 %5, label LBL_9, label LBL_2
LBL_2:
%6 = trunc i64 %1 to i32
%7 = icmp sgt i32 %3, 2
br i1 %7, label LBL_7, label LBL_3
LBL_3:
%8 = icmp eq i32 %3, 0
%9 = icmp slt i32 %3, 0
%10 = icmp eq i1 %9, false
%11 = icmp eq i1 %8, false
%12 = icmp eq i1 %10, %11
br i1 %12, label LBL_4, label LBL_9
LBL_4:
%13 = and i32 %6, -2
store i32 %13, i32* %arg2, align 4
%14 = trunc i64 %arg3 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
%.pre = ptrtoint i32* %arg2 to i64
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = add i64 %.pre, 4
%18 = call i64 @FUNC(i64 1, i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i64 %18, i64* %rax.0.reg2mem
br i1 %20, label LBL_9, label LBL_6
LBL_6:
%21 = add i64 %.pre, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %2, i64 %24)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%26 = and i32 %6, -2
store i32 %26, i32* %arg2, align 4
br label LBL_8
LBL_8:
%27 = call i64 @FUNC(i64 %2)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i32* %arg2, { 2, 0, 1 }
uselistorder label LBL_9, { 3, 1, 0, 2, 4 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | url_decode_r_5867 | url_decode_r | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_1.12.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, -1
%2 = add i64 %1, %arg3
%3 = bitcast i64* %arg2 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp ne i8 %4, 0
%6 = icmp ugt i64 %2, %0
%or.cond1 = icmp eq i1 %6, %5
store i64 %0, i64* %sv_0.1.lcssa.reg2mem
br i1 %or.cond1, label LBL_1, label LBL_10
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
store i8 %4, i8* %.reg2mem
store i64 %0, i64* %sv_0.13.reg2mem
store i64 %7, i64* %sv_1.12.reg2mem
br label LBL_2
LBL_2:
%sv_1.12.reload = load i64, i64* %sv_1.12.reg2mem
%sv_0.13.reload = load i64, i64* %sv_0.13.reg2mem
%.reload = load i8, i8* %.reg2mem
%8 = icmp eq i8 %.reload, 37
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = add i64 %sv_1.12.reload, 1
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, 0
%14 = icmp eq i1 %13, false
%15 = icmp eq i1 %14, false
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.13.reload, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_9, label LBL_4
LBL_4:
%16 = add i64 %sv_1.12.reload, 2
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, 0
%20 = icmp eq i1 %19, false
%21 = icmp eq i1 %20, false
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.13.reload, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_9, label LBL_5
LBL_5:
%22 = sext i8 %12 to i64
%23 = and i64 %22, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i8
%26 = mul i8 %25, 16
%27 = load i8, i8* %17, align 1
%28 = sext i8 %27 to i64
%29 = and i64 %28, 4294967295
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i8
%32 = or i8 %26, %31
%33 = call i16** @__ctype_b_loc()
%34 = load i16*, i16** %33, align 8
%35 = ptrtoint i16* %34 to i64
%36 = sext i8 %32 to i64
%37 = mul i64 %36, 2
%38 = add i64 %37, %35
%39 = inttoptr i64 %38 to i16*
%40 = load i16, i16* %39, align 2
%41 = and i16 %40, 16384
%42 = icmp eq i16 %41, 0
%storemerge = select i1 %42, i8 32, i8 %32
%43 = add i64 %sv_0.13.reload, 1
%44 = inttoptr i64 %sv_0.13.reload to i8*
store i8 %storemerge, i8* %44, align 1
store i64 %16, i64* %sv_1.0.reg2mem
store i64 %43, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%45 = icmp eq i8 %.reload, 43
%46 = icmp eq i1 %45, false
%47 = add i64 %sv_0.13.reload, 1
%48 = inttoptr i64 %sv_0.13.reload to i8*
br i1 %46, label LBL_8, label LBL_7
LBL_7:
store i8 32, i8* %48, align 1
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i64 %47, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
store i8 %.reload, i8* %48, align 1
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i64 %47, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%49 = add i64 %sv_1.0.reload, 1
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = icmp ne i8 %51, 0
%53 = icmp ult i64 %sv_0.0.reload, %2
%or.cond = icmp eq i1 %53, %52
store i8 %51, i8* %.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.13.reg2mem
store i64 %49, i64* %sv_1.12.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %or.cond, label LBL_2, label LBL_10
LBL_10:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%54 = inttoptr i64 %sv_0.1.lcssa.reload to i8*
store i8 0, i8* %54, align 1
ret i64 %0
uselistorder i64 %sv_0.0.reload, { 0, 2, 1 }
uselistorder i8* %48, { 1, 0 }
uselistorder i64 %47, { 1, 0 }
uselistorder i64 %sv_0.13.reload, { 5, 4, 2, 3, 0, 1 }
uselistorder i64 %sv_1.12.reload, { 3, 2, 0, 5, 1, 4 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 4, 1, 0, 2, 3 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i8 32, { 1, 0 }
uselistorder i64 (i64)* @from_hex, { 1, 0 }
uselistorder i1 false, { 0, 1, 4, 2, 5, 3 }
uselistorder i8 0, { 3, 4, 1, 2, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cnic_copy_ulp_stats_18539 | cnic_copy_ulp_stats | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %2, 0
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add nsw i64 %7, %1
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%phitmp = and i64 %10, 4294967295
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%11 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967277, { 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | bson_validate_string_13416 | bson_validate_string | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi8.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i64
%sv_0.16.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg6 to i8
%4 = icmp eq i8 %3, 0
%5 = trunc i64 %1 to i32
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%6 = trunc i64 %2 to i8
%7 = icmp eq i8 %6, 36
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %arg2, i64 %arg3)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = or i32 %5, 1
store i32 %13, i32* %arg1, align 4
br label LBL_4
LBL_4:
%14 = icmp eq i64 %arg3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_16, label LBL_5
LBL_5:
%15 = trunc i64 %arg5 to i8
%16 = icmp eq i8 %15, 0
%17 = trunc i64 %arg4 to i8
%18 = icmp eq i8 %17, 0
%19 = or i32 %5, 2
store i32 1, i32* %sv_0.16.reg2mem
store i64 0, i64* %sv_1.05.reg2mem
br label LBL_6
LBL_6:
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
br i1 %16, label LBL_9, label LBL_7
LBL_7:
%20 = add i64 %sv_1.05.reload, %arg2
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 46
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_9, label LBL_8
LBL_8:
store i32 %19, i32* %arg1, align 4
br label LBL_9
LBL_9:
br i1 %18, label LBL_9.LBL_15_crit_edge, label LBL_11
LBL_10:
%.pre = sext i32 %sv_0.16.reload to i64
%.pre7 = add i64 %sv_1.05.reload, %.pre
store i64 %.pre7, i64* %.pre-phi8.reg2mem
store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem
br label LBL_15
LBL_11:
%25 = add i64 %sv_1.05.reload, %arg2
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = zext i8 %27 to i64
%29 = mul i64 %28, 4
%30 = add i64 %29, ptrtoint (i32** @gv_0 to i64)
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i32 %32, 1
%34 = sext i32 %33 to i64
%35 = add i64 %sv_1.05.reload, %34
%36 = icmp ugt i64 %35, %arg3
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%38 = or i32 %5, 4
store i32 %38, i32* %arg1, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_13:
%39 = zext i32 %33 to i64
%40 = call i64 @FUNC(i64 %25, i64 %39)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 %35, i64* %.pre-phi8.reg2mem
store i32 %33, i32* %sv_0.0.reg2mem
br i1 %43, label LBL_15, label LBL_14
LBL_14:
%44 = or i32 %5, 4
store i32 %44, i32* %arg1, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi8.reload = load i64, i64* %.pre-phi8.reg2mem
%45 = icmp ult i64 %.pre-phi8.reload, %arg3
store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem
store i64 %.pre-phi8.reload, i64* %sv_1.05.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_6, label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.pre-phi8.reload, { 1, 0 }
uselistorder i64 %sv_1.05.reload, { 3, 2, 0, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 %arg3, { 3, 1, 0, 2 }
uselistorder i32* %arg1, { 3, 2, 1, 0 }
uselistorder label LBL_16, { 0, 2, 3, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | qxl_realize_secondary_15206 | qxl_realize_secondary | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%4 = add i32 %3, 1
store i32 %4, i32* bitcast (i64* @gv_0 to i32*), align 8
%5 = inttoptr i64 %2 to i32*
store i32 %3, i32* %5, align 4
%6 = call i64 @FUNC(i64 %2)
%7 = add i64 %2, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %1)
%11 = add i64 %2, 8
%12 = call i64 @FUNC(i64 %11, i64 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64* nonnull @gv_2)
%13 = add i64 %2, 40
%14 = call i64 @FUNC(i64 %11, i64 %13)
%15 = call i64 @FUNC(i64 %11)
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = call i64 @FUNC(i64 %1)
%19 = call i64 @FUNC(i64 %18, i64 0, i64* nonnull @gv_3, i64 %2)
%20 = add i64 %2, 32
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
%22 = call i64 @FUNC(i64 %2, i64 %0)
ret i64 %22
} | 1 |
BinRealVul | j2kenc_init_16355 | j2kenc_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %7, 8
%9 = add i64 %7, 52
%10 = inttoptr i64 %9 to i32*
%11 = inttoptr i64 %7 to i64*
store i64 %4, i64* %11, align 8
%12 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%13 = inttoptr i64 %8 to i64*
%14 = call i64* @memset(i64* %13, i32 15, i32 12)
%15 = add i64 %7, 20
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memset(i64* %16, i32 15, i32 12)
%18 = add i64 %7, 36
%19 = inttoptr i64 %18 to i32*
store i32 7, i32* %19, align 4
%20 = add i64 %7, 32
%21 = inttoptr i64 %20 to i32*
store i32 7, i32* %21, align 4
%22 = add i64 %7, 40
%23 = inttoptr i64 %22 to i32*
store i32 4, i32* %23, align 4
%24 = add i64 %7, 44
%25 = inttoptr i64 %24 to i32*
store i32 4, i32* %25, align 4
%26 = add i64 %4, 12
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
%. = select i1 %29, i32 2, i32 1
%30 = add i64 %7, 48
%31 = inttoptr i64 %30 to i32*
store i32 %., i32* %31, align 4
store i32 1, i32* %10, align 4
%32 = add i64 %7, 60
%33 = inttoptr i64 %32 to i32*
store i32 256, i32* %33, align 4
%34 = add i64 %7, 64
%35 = inttoptr i64 %34 to i32*
store i32 256, i32* %35, align 4
%36 = load i32, i32* %31, align 4
%37 = icmp eq i32 %36, 1
%38 = icmp eq i1 %37, false
%39 = add i64 %7, 56
%40 = inttoptr i64 %39 to i32*
%.6 = zext i1 %38 to i32
store i32 %.6, i32* %40, align 4
%41 = bitcast i64* %rdi to i32*
%42 = load i32, i32* %41, align 8
%43 = add i64 %7, 68
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %4, 4
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %7, 72
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = add i64 %7, 76
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%51 = mul i64 %indvars.iv.reload, 4
%52 = add i64 %50, %51
%53 = inttoptr i64 %52 to i32*
store i32 8, i32* %53, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%54 = add i64 %4, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp eq i32 %56, 1
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_4, label LBL_3
LBL_3:
%59 = add i64 %7, 88
%60 = inttoptr i64 %59 to i32*
store i32 3, i32* %60, align 4
br label LBL_7
LBL_4:
%61 = icmp eq i32 %56, 2
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_6, label LBL_5
LBL_5:
%63 = add i64 %7, 88
%64 = inttoptr i64 %63 to i32*
store i32 1, i32* %64, align 4
br label LBL_7
LBL_6:
%65 = add i64 %7, 92
%66 = inttoptr i64 %65 to i32*
store i32 1, i32* %66, align 4
%67 = add i64 %7, 88
%68 = inttoptr i64 %67 to i32*
store i32 3, i32* %68, align 4
%69 = add i64 %7, 100
%70 = add i64 %7, 96
%71 = load i32, i32* %55, align 4
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %72, i64 %70, i64 %69)
store i64 %70, i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%74 = call i64 @FUNC()
%75 = call i64 @FUNC()
%76 = call i64 @FUNC()
%77 = call i64 @FUNC(i64 %7)
%78 = call i64 @FUNC(i64 %7)
%79 = trunc i64 %78 to i32
%80 = icmp eq i32 %79, 0
br i1 %80, label LBL_9, label LBL_8
LBL_8:
%81 = and i64 %78, 4294967295
store i64 %81, i64* %storemerge.reg2mem
br label LBL_10
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%82 = load i64, i64* %11, align 8
%83 = call i64 @FUNC(i64 %82, i64 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 4, 3, 6, 5, 7, 8, 9, 2, 10, 11, 12, 0, 13, 14, 1, 15, 16, 17, 18, 19, 20, 21, 22 }
uselistorder i64 %4, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
} | 1 |
BinRealVul | matroska_merge_packets_1597 | matroska_merge_packets | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i64 %arg2, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i32 %6, %3
%8 = sext i32 %7 to i64
%9 = call i64 @FUNC(i64 %0, i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_1:
store i64 %9, i64* %arg1, align 8
%12 = load i32, i32* %5, align 4
%13 = load i32, i32* %2, align 4
%14 = sext i32 %13 to i64
%15 = add i64 %14, %0
%16 = inttoptr i64 %15 to i64*
%17 = inttoptr i64 %8 to i64*
%18 = call i64* @memcpy(i64* %16, i64* %17, i32 %12)
%19 = load i32, i32* %2, align 4
%20 = load i32, i32* %5, align 4
%21 = add i32 %20, %19
store i32 %21, i32* %2, align 4
%22 = call i64 @FUNC(i64 %arg2)
%23 = call i64 @FUNC(i64 %arg2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %2, { 1, 0, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | stellaris_enet_init_2488 | stellaris_enet_init | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 32)
%3 = load i64, i64* @gv_1, align 8
%4 = load i64, i64* @gv_2, align 8
%5 = call i64 @FUNC(i64 0, i64 %4, i64 %3, i64 %2)
%6 = trunc i64 %5 to i32
%7 = inttoptr i64 %2 to i32*
store i32 %6, i32* %7, align 4
%8 = and i64 %arg2, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 4096, i32 %6)
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i64*
store i64 %arg3, i64* %11, align 8
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i64*
%14 = call i64* @memcpy(i64* %13, i64* %arg1, i32 6)
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %0, 16
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = zext i32 %17 to i64
%26 = call i64 @FUNC(i64 %25, i64 %24, i64 %21, i64 4198859, i64 4198866, i64 4198873)
%27 = add i64 %2, 16
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = call i64 @FUNC(i64 %26, i64 %12)
br label LBL_2
LBL_2:
%30 = call i64 @FUNC(i64 %2)
%31 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0), i64 4294967295, i64 1, i64 4198880, i64 4198887, i64 %2)
ret i64 %31
uselistorder i64 %2, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64 4294967295, { 1, 0 }
} | 0 |
BinRealVul | videotoolbox_common_end_frame_15425 | videotoolbox_common_end_frame | 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 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %0)
%8 = icmp eq i64* %arg2, null
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_6, label LBL_1
LBL_1:
%9 = inttoptr i64 %6 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_6
LBL_2:
%13 = call i64 @FUNC(i64 %1)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = and i64 %13, 4294967295
%17 = call i64 @FUNC(i64 %1, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %16)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%18 = add i64 %6, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %22, label LBL_5, label LBL_6
LBL_5:
%23 = call i64 @FUNC(i64 %6, i64 %0)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder i64 0, { 6, 4, 2, 3, 7, 0, 1, 5 }
uselistorder label LBL_6, { 3, 0, 4, 2, 1 }
} | 1 |
BinRealVul | faultin_page_13413 | faultin_page | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i32* %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i32
%1 = load i64, i64* %0
%rcx = alloca i64, align 8
%2 = load i64, i64* %0
%3 = trunc i64 %2 to i32
%4 = urem i32 %3, 4
%5 = icmp eq i32 %4, 2
%6 = icmp eq i1 %5, false
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_24
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = urem i32 %3, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %7, i64 %arg3)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_24, label LBL_3
LBL_3:
%14 = add i64 %arg3, 4096
%15 = call i64 @FUNC(i64 %7, i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_24
LBL_4:
%18 = mul i32 %3, 64
%19 = and i32 %18, 768
%20 = icmp eq i32* %arg5, null
%21 = or i32 %19, 1024
%spec.select4 = select i1 %20, i32 %19, i32 %21
%22 = and i32 %3, 16
%23 = icmp eq i32 %22, 0
%24 = or i32 %spec.select4, 3072
%sv_0.3 = select i1 %23, i32 %spec.select4, i32 %24
%25 = and i32 %3, 32
%26 = icmp eq i32 %25, 0
store i32 %sv_0.3, i32* %sv_0.4.reg2mem
br i1 %26, label LBL_8, label LBL_5
LBL_5:
%27 = and i32 %sv_0.3, 1024
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%30 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %29)
br label LBL_7
LBL_7:
%31 = or i32 %sv_0.3, 4096
store i32 %31, i32* %sv_0.4.reg2mem
br label LBL_8
LBL_8:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%32 = call i64 @FUNC(i64 %7, i64 %arg3, i32 %sv_0.4.reload)
%33 = trunc i64 %32 to i32
%34 = and i64 %32, 8192
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_14, label LBL_9
LBL_9:
%36 = and i32 %33, 16384
%37 = icmp eq i32 %36, 0
store i64 2, i64* %rax.0.reg2mem
br i1 %37, label LBL_10, label LBL_24
LBL_10:
%38 = and i32 %33, 98304
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_12, label LBL_11
LBL_11:
%40 = and i32 %3, 64
%41 = icmp eq i32 %40, 0
%. = select i1 %41, i64 4, i64 3
store i64 %., i64* %rax.0.reg2mem
br label LBL_24
LBL_12:
%42 = and i32 %33, 393216
%43 = icmp eq i32 %42, 0
store i64 4, i64* %rax.0.reg2mem
br i1 %43, label LBL_13, label LBL_24
LBL_13:
%44 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%45 = call i32 @fwrite(i64* bitcast ([14 x i8]* @gv_2 to i64*), i32 1, i32 13, %_IO_FILE* %44)
call void @exit(i32 1)
unreachable
LBL_14:
%46 = icmp eq i32* %arg1, null
br i1 %46, label LBL_18, label LBL_15
LBL_15:
%47 = and i32 %33, 524288
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_17, label LBL_16
LBL_16:
%49 = trunc i64 %1 to i32
%50 = add i32 %49, 1
store i32 %50, i32* %arg1, align 4
br label LBL_18
LBL_17:
%51 = ptrtoint i32* %arg1 to i64
%52 = add i64 %51, 4
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i32 %54, 1
store i32 %55, i32* %53, align 4
br label LBL_18
LBL_18:
%56 = and i32 %33, 1048576
%57 = icmp eq i32 %56, 0
br i1 %57, label LBL_21, label LBL_19
LBL_19:
store i64 5, i64* %rax.0.reg2mem
br i1 %20, label LBL_24, label LBL_20
LBL_20:
store i32 0, i32* %arg5, align 4
store i64 5, i64* %rax.0.reg2mem
br label LBL_24
LBL_21:
%58 = and i32 %33, 2097152
%59 = icmp eq i32 %58, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %59, label LBL_24, label LBL_22
LBL_22:
%60 = and i64 %arg3, 4194304
%61 = icmp eq i64 %60, 0
%62 = icmp eq i1 %61, false
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_24, label LBL_23
LBL_23:
%63 = bitcast i64* %rcx to i32*
%64 = load i32, i32* %63, align 8
%65 = or i32 %64, 128
store i32 %65, i32* %arg4, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %33, { 1, 0, 5, 2, 3, 4 }
uselistorder i32 %sv_0.3, { 2, 1, 0 }
uselistorder i64 %7, { 2, 0, 1 }
uselistorder i32 %3, { 3, 4, 5, 0, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4, 6, 7, 8, 10, 9, 11 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 5, { 1, 0 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i32 64, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 %arg3, { 2, 3, 0, 1 }
uselistorder i32* %arg1, { 1, 2, 0 }
uselistorder label LBL_24, { 2, 1, 0, 4, 3, 5, 6, 7, 9, 8, 10 }
} | 0 |
BinRealVul | auxc_dump_10560 | auxc_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%2 = inttoptr i64 %arg2 to %_IO_FILE*
%3 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64* %arg1)
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64 %6)
%11 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %2)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %arg2)
ret i64 0
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 2, 1, 0, 3 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | mp_change_speed_7910 | mp_change_speed | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %rdi, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64* %arg1, null
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = inttoptr i64 %3 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = bitcast i64* %rdi to i32*
%9 = urem i64 %0, 2
%10 = icmp eq i64 %9, 0
%11 = inttoptr i64 %1 to i32*
%12 = load i32, i32* %11, align 4
%13 = or i32 %12, 4
%14 = and i32 %12, -5
%storemerge = select i1 %10, i32 %14, i32 %13
store i32 %storemerge, i32* %11, align 4
%15 = load i32, i32* %8, align 8
%16 = and i32 %15, 2
%17 = icmp eq i32 %16, 0
%18 = load i64, i64* %rdi, align 8
%19 = add i64 %18, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = and i32 %21, -9
%23 = or i32 %21, 8
%storemerge3 = select i1 %17, i32 %23, i32 %22
store i32 %storemerge3, i32* %20, align 4
store i64 %3, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %21, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64* %rdi, { 1, 0, 2 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | op_4xx_tlbsx_check_1337 | op_4xx_tlbsx_check | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* @gv_0, align 4
%1 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%2 = icmp eq i32 %1, -1
%3 = or i32 %0, 2
%spec.select = select i1 %2, i32 %0, i32 %3
%4 = load i32*, i32** @gv_1, align 8
store i32 %spec.select, i32* %4, align 4
%5 = call i64 @FUNC()
ret i64 %5
} | 0 |
BinRealVul | econet_getname_5365 | econet_getname | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = icmp eq i32 %0, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = call i64* @memset(i64* %arg2, i32 0, i32 16)
%4 = call i64 @FUNC(i64* bitcast (i32** @gv_0 to i64*))
%5 = call i64 @FUNC(i64 ptrtoint (i32** @gv_0 to i64))
%6 = bitcast i64* %arg2 to i32*
store i32 1234, i32* %6, align 4
%7 = inttoptr i64 %5 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %2, 12
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %5, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %2, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %5, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = call i64 @FUNC(i64* bitcast (i32** @gv_0 to i64*))
%22 = bitcast i64* %arg3 to i32*
store i32 16, i32* %22, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32** @gv_0, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vfio_msi_enable_14220 | vfio_msi_enable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%rsi.1.lcssa.reg2mem = alloca i64
%rdx.2.lcssa.reg2mem = alloca i64
%rcx.2.lcssa.reg2mem = alloca i64
%.reg2mem36 = alloca i32
%storemerge12.reg2mem = alloca i32
%.reg2mem34 = alloca i64
%.reg2mem32 = alloca i64
%.reg2mem30 = alloca i32
%.reg2mem28 = alloca i64
%rsi.0.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%.reg2mem26 = alloca i32
%rdx.0.lcssa.reg2mem = alloca i64
%rcx.1.lcssa.reg2mem = alloca i64
%rcx.19.reg2mem = alloca i64
%storemerge110.reg2mem = alloca i32
%.reg2mem24 = alloca i64
%.reg2mem22 = alloca i64
%rcx.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %4, 24
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = bitcast i64* %arg1 to i32*
%10 = bitcast i64* %rdi to i32*
%11 = add i64 %4, 8
%12 = inttoptr i64 %11 to i64*
%13 = ptrtoint i64* %sv_0 to i64
%14 = add i64 %4, 16
%15 = inttoptr i64 %14 to i32*
%16 = trunc i64 %3 to i32
store i32 %16, i32* %.reg2mem
store i32 %8, i32* %storemerge3.reg2mem
br label LBL_1
LBL_1:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i32, i32* %.reg2mem
store i32 %storemerge3.reload, i32* %9, align 4
%17 = sext i32 %.reload to i64
%18 = mul nsw i64 %17, 24
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %12, align 8
%20 = load i32, i32* %10, align 8
%21 = icmp eq i32 %20, 0
store i64 %19, i64* %.reg2mem22
store i64 0, i64* %.reg2mem24
store i32 0, i32* %storemerge110.reg2mem
store i64 %rcx.0.reload, i64* %rcx.19.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.lcssa.reg2mem
store i64 %4, i64* %rdx.0.lcssa.reg2mem
br i1 %21, label LBL_6, label LBL_2
LBL_2:
%rcx.19.reload = load i64, i64* %rcx.19.reg2mem
%storemerge110.reload = load i32, i32* %storemerge110.reg2mem
%.reload25 = load i64, i64* %.reg2mem24
%.reload23 = load i64, i64* %.reg2mem22
%22 = add i64 %.reload25, %.reload23
store i64 %22, i64* %sv_0, align 8
%23 = zext i32 %storemerge110.reload to i64
%24 = call i64 @FUNC(i64 %6, i64 %23)
%25 = load i64, i64* %sv_0, align 8
%26 = inttoptr i64 %25 to i64*
store i64 %4, i64* %26, align 8
%27 = load i64, i64* %sv_0, align 8
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i32*
store i32 -1, i32* %29, align 4
%30 = load i64, i64* %sv_0, align 8
%31 = add i64 %30, 12
%32 = inttoptr i64 %31 to i8*
store i8 1, i8* %32, align 1
%33 = load i64, i64* %sv_0, align 8
%34 = add i64 %33, 16
%35 = call i64 @FUNC(i64 %34, i64 0)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_4, label LBL_3
LBL_3:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %4, i64 %rcx.19.reload, i64 %2, i64 %1)
br label LBL_4
LBL_4:
%39 = load i64, i64* %sv_0, align 8
%40 = add i64 %39, 16
%41 = call i64 @FUNC(i64 %40)
%42 = and i64 %41, 4294967295
%43 = load i64, i64* %sv_0, align 8
%44 = call i64 @FUNC(i64 %42, i64 4199031, i64 0, i64 %43)
%45 = load i64, i64* %sv_0, align 8
%46 = call i64 @FUNC(i64 %4, i64 %45, i64* nonnull %sv_0, i64 0)
%47 = add i32 %storemerge110.reload, 1
%48 = load i32, i32* %10, align 8
%49 = zext i32 %48 to i64
%50 = sext i32 %47 to i64
%51 = icmp slt i64 %50, %49
store i64 0, i64* %rcx.1.lcssa.reg2mem
store i64 %13, i64* %rdx.0.lcssa.reg2mem
br i1 %51, label LBL_4.LBL_2_crit_edge, label LBL_6
LBL_5:
%.pre = load i64, i64* %12, align 8
store i64 %.pre, i64* %.reg2mem22
store i64 %50, i64* %.reg2mem24
store i32 %47, i32* %storemerge110.reg2mem
store i64 0, i64* %rcx.19.reg2mem
br label LBL_2
LBL_6:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%rcx.1.lcssa.reload = load i64, i64* %rcx.1.lcssa.reg2mem
store i32 1, i32* %15, align 4
%52 = call i64 @FUNC(i64 %4, i64 0)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
br i1 %54, label LBL_19, label LBL_7
LBL_7:
%55 = icmp slt i32 %53, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_9, label LBL_8
LBL_8:
%57 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %rdx.0.lcssa.reload, i64 %rcx.1.lcssa.reload, i64 %2, i64 %1)
%.pre19 = load i32, i32* %10, align 8
store i32 %.pre19, i32* %.reg2mem26
store i64 %rdx.0.lcssa.reload, i64* %rdx.1.reg2mem
store i64 0, i64* %rsi.0.reg2mem
br label LBL_12
LBL_9:
%58 = load i32, i32* %10, align 8
%59 = icmp eq i32 %58, %53
br i1 %59, label LBL_10, label LBL_11
LBL_10:
%60 = load i64, i64* %12, align 8
store i64 %60, i64* %.reg2mem28
store i32 %53, i32* %.reg2mem30
br label LBL_13
LBL_11:
%61 = and i64 %52, 4294967295
%62 = zext i32 %58 to i64
%63 = call i64 @FUNC(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_2, i64 0, i64 0), i64 %62, i64 %61, i64 %rcx.1.lcssa.reload, i64 %2, i64 %1)
store i32 %58, i32* %.reg2mem26
store i64 %61, i64* %rdx.1.reg2mem
store i64 %62, i64* %rsi.0.reg2mem
br label LBL_12
LBL_12:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%.reload27 = load i32, i32* %.reg2mem26
%64 = icmp eq i32 %.reload27, 0
%65 = load i64, i64* %12, align 8
store i64 %65, i64* %.reg2mem28
store i32 %.reload27, i32* %.reg2mem30
store i32 0, i32* %.reg2mem36
store i64 %rcx.1.lcssa.reload, i64* %rcx.2.lcssa.reg2mem
store i64 %rdx.1.reload, i64* %rdx.2.lcssa.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.lcssa.reg2mem
store i64 %65, i64* %.lcssa.reg2mem
br i1 %64, label LBL_17, label LBL_13
LBL_13:
%.reload31 = load i32, i32* %.reg2mem30
%.reload29 = load i64, i64* %.reg2mem28
%66 = zext i32 %.reload31 to i64
store i64 %.reload29, i64* %.reg2mem32
store i64 0, i64* %.reg2mem34
store i32 0, i32* %storemerge12.reg2mem
br label LBL_14
LBL_14:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload35 = load i64, i64* %.reg2mem34
%.reload33 = load i64, i64* %.reg2mem32
%67 = add i64 %.reload35, %.reload33
%68 = add i64 %67, 8
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label LBL_16, label LBL_15
LBL_15:
%72 = call i64 @FUNC(i64 %67)
br label LBL_16
LBL_16:
%73 = add i64 %67, 16
%74 = call i64 @FUNC(i64 %73)
%75 = and i64 %74, 4294967295
%76 = call i64 @FUNC(i64 %75, i64 0, i64 0, i64 0)
%77 = call i64 @FUNC(i64 %73)
%78 = add i32 %storemerge12.reload, 1
%79 = sext i32 %78 to i64
%80 = icmp slt i64 %79, %66
%81 = load i64, i64* %12, align 8
store i64 %81, i64* %.reg2mem32
store i64 %79, i64* %.reg2mem34
store i32 %78, i32* %storemerge12.reg2mem
store i32 %.reload31, i32* %.reg2mem36
store i64 0, i64* %rcx.2.lcssa.reg2mem
store i64 0, i64* %rdx.2.lcssa.reg2mem
store i64 0, i64* %rsi.1.lcssa.reg2mem
store i64 %81, i64* %.lcssa.reg2mem
br i1 %80, label LBL_14, label LBL_17
LBL_17:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%rcx.2.lcssa.reload = load i64, i64* %rcx.2.lcssa.reg2mem
%.reload37 = load i32, i32* %.reg2mem36
%82 = call i64 @FUNC(i64 %.lcssa.reload)
%83 = icmp slt i32 %53, 1
%84 = icmp eq i32 %.reload37, %53
%or.cond = or i1 %83, %84
store i32 %.reload37, i32* %.reg2mem
store i32 %53, i32* %storemerge3.reg2mem
store i64 %rcx.2.lcssa.reload, i64* %rcx.0.reg2mem
br i1 %or.cond, label LBL_18, label LBL_1
LBL_18:
%rsi.1.lcssa.reload = load i64, i64* %rsi.1.lcssa.reg2mem
%rdx.2.lcssa.reload = load i64, i64* %rdx.2.lcssa.reg2mem
store i32 0, i32* %9, align 4
%85 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i64 %rsi.1.lcssa.reload, i64 %rdx.2.lcssa.reload, i64 %rcx.2.lcssa.reload, i64 %2, i64 %1)
store i32 0, i32* %15, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%86 = load i32, i32* %10, align 8
%87 = add i64 %4, 32
%88 = inttoptr i64 %87 to i64*
%89 = load i64, i64* %88, align 8
%90 = zext i32 %86 to i64
%91 = call i64 @FUNC(i64 %89, i64 %90)
store i64 %91, 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 i32 %.reload37, { 1, 0 }
uselistorder i32 %58, { 0, 2, 1 }
uselistorder i32 %53, { 1, 2, 4, 0, 3, 5, 6 }
uselistorder i64 %rcx.1.lcssa.reload, { 0, 2, 1 }
uselistorder i64* %12, { 3, 2, 0, 1, 4 }
uselistorder i32* %10, { 0, 3, 1, 4, 2 }
uselistorder i32* %9, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
uselistorder i64 %4, { 2, 0, 3, 5, 4, 6, 1, 7, 8, 9, 10 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem22, { 2, 0, 1 }
uselistorder i64* %.reg2mem24, { 2, 0, 1 }
uselistorder i32* %storemerge110.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.19.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem26, { 0, 2, 1 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem32, { 1, 0, 2 }
uselistorder i64* %.reg2mem34, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @qemu_set_fd_handler, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1, 3 }
uselistorder i64 (i64)* @event_notifier_get_fd, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 3, 2, 0, 1 }
uselistorder i32 0, { 5, 6, 7, 1, 0, 3, 9, 10, 8, 2, 4 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | X509_aux_print_11877 | X509_aux_print | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge6.reg2mem = alloca i32
%.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i8
%sv_0.37.reg2mem = alloca i8
%storemerge48.reg2mem = alloca i32
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8
%sv_0.19.reg2mem = alloca i8
%storemerge510.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %arg2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_1, label LBL_23
LBL_1:
%sext = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = call i64 @FUNC(i64 %arg2)
%9 = call i64 @FUNC(i64 %arg2)
%10 = icmp eq i64 %8, 0
br i1 %10, label LBL_8, label LBL_2
LBL_2:
%11 = add nsw i64 %7, 2
%12 = trunc i64 %7 to i32
%13 = and i64 %11, 4294967295
%14 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i32 %12, i64* nonnull @gv_1, i64 %13, i64* nonnull @gv_1)
%15 = call i64 @FUNC(i64 %8)
%16 = icmp sgt i64 %15, 0
br i1 %16, label LBL_3, label LBL_7
LBL_3:
%17 = bitcast i64* %sv_2 to i8*
store i32 0, i32* %storemerge510.reg2mem
store i8 1, i8* %sv_0.19.reg2mem
br label LBL_4
LBL_4:
%sv_0.19.reload = load i8, i8* %sv_0.19.reg2mem
%storemerge510.reload = load i32, i32* %storemerge510.reg2mem
%18 = icmp eq i8 %sv_0.19.reload, 0
%19 = icmp eq i1 %18, false
store i8 0, i8* %sv_0.0.reg2mem
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0))
store i8 %sv_0.19.reload, i8* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
%21 = zext i32 %storemerge510.reload to i64
%22 = call i64 @FUNC(i64 %8, i64 %21)
%23 = call i64 @FUNC(i64* nonnull %sv_2, i64 80, i64 %22, i64 0)
%24 = call i64 @FUNC(i64 %arg1, i8* nonnull %17)
%25 = add i32 %storemerge510.reload, 1
%26 = call i64 @FUNC(i64 %8)
%27 = sext i32 %25 to i64
%28 = icmp sgt i64 %26, %27
store i32 %25, i32* %storemerge510.reg2mem
store i8 %sv_0.0.reload, i8* %sv_0.19.reg2mem
br i1 %28, label LBL_4, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0))
store i64 %13, i64* %r8.0.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %r9.0.reg2mem
br label LBL_9
LBL_8:
%30 = trunc i64 %7 to i32
%31 = inttoptr i64 %1 to i64*
%32 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i32 %30, i64* nonnull @gv_1, i64 %2, i64* %31)
br label LBL_9
LBL_9:
%33 = icmp eq i64 %9, 0
br i1 %33, label LBL_16, label LBL_10
LBL_10:
%34 = add nsw i64 %7, 2
%35 = trunc i64 %7 to i32
%36 = and i64 %34, 4294967295
%37 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i32 %35, i64* nonnull @gv_1, i64 %36, i64* nonnull @gv_1)
%38 = call i64 @FUNC(i64 %9)
%39 = icmp sgt i64 %38, 0
br i1 %39, label LBL_11, label LBL_15
LBL_11:
%40 = bitcast i64* %sv_2 to i8*
store i32 0, i32* %storemerge48.reg2mem
store i8 1, i8* %sv_0.37.reg2mem
br label LBL_12
LBL_12:
%sv_0.37.reload = load i8, i8* %sv_0.37.reg2mem
%storemerge48.reload = load i32, i32* %storemerge48.reg2mem
%41 = icmp eq i8 %sv_0.37.reload, 0
%42 = icmp eq i1 %41, false
store i8 0, i8* %sv_0.2.reg2mem
br i1 %42, label LBL_14, label LBL_13
LBL_13:
%43 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0))
store i8 %sv_0.37.reload, i8* %sv_0.2.reg2mem
br label LBL_14
LBL_14:
%sv_0.2.reload = load i8, i8* %sv_0.2.reg2mem
%44 = zext i32 %storemerge48.reload to i64
%45 = call i64 @FUNC(i64 %9, i64 %44)
%46 = call i64 @FUNC(i64* nonnull %sv_2, i64 80, i64 %45, i64 0)
%47 = call i64 @FUNC(i64 %arg1, i8* nonnull %40)
%48 = add i32 %storemerge48.reload, 1
%49 = call i64 @FUNC(i64 %9)
%50 = sext i32 %48 to i64
%51 = icmp sgt i64 %49, %50
store i32 %48, i32* %storemerge48.reg2mem
store i8 %sv_0.2.reload, i8* %sv_0.37.reg2mem
br i1 %51, label LBL_12, label LBL_15
LBL_15:
%52 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0))
store i64 %36, i64* %r8.1.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %r9.1.reg2mem
br label LBL_17
LBL_16:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%53 = trunc i64 %7 to i32
%54 = inttoptr i64 %r9.0.reload to i64*
%55 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i32 %53, i64* nonnull @gv_1, i64 %r8.0.reload, i64* %54)
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_17
LBL_17:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%56 = call i64 @FUNC(i64 %arg2, i64 0)
%57 = icmp eq i64 %56, 0
store i64 %r8.1.reload, i64* %r8.2.reg2mem
br i1 %57, label LBL_19, label LBL_18
LBL_18:
%58 = trunc i64 %7 to i32
%59 = inttoptr i64 %r9.1.reload to i64*
%60 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_7, i64 0, i64 0), i32 %58, i64* nonnull @gv_1, i64 %56, i64* %59)
store i64 %56, i64* %r8.2.reg2mem
br label LBL_19
LBL_19:
%61 = bitcast i32* %sv_1 to i64*
%62 = call i64 @FUNC(i64 %arg2, i64* nonnull %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label LBL_23, label LBL_20
LBL_20:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%64 = trunc i64 %7 to i32
%65 = inttoptr i64 %r9.1.reload to i64*
%66 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i32 %64, i64* nonnull @gv_1, i64 %r8.2.reload, i64* %65)
%67 = load i32, i32* %sv_1, align 4
%68 = icmp eq i32 %67, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge6.reg2mem
br i1 %68, label LBL_22, label LBL_21
LBL_21:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload = load i64, i64* %.reg2mem
%69 = add i64 %.reload, %62
%70 = inttoptr i64 %69 to i8*
%71 = load i8, i8* %70, align 1
%72 = zext i8 %71 to i64
%73 = icmp eq i32 %storemerge6.reload, 0
%. = select i1 %73, i32 ptrtoint (i64* @gv_1 to i32), i32 ptrtoint (i64* @gv_9 to i32)
%74 = inttoptr i64 %72 to i64*
%75 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0), i32 %., i64* %74, i64 %r8.2.reload, i64* %65)
%76 = add i32 %storemerge6.reload, 1
%77 = load i32, i32* %sv_1, align 4
%78 = zext i32 %77 to i64
%79 = sext i32 %76 to i64
%80 = icmp slt i64 %79, %78
store i64 %79, i64* %.reg2mem
store i32 %76, i32* %storemerge6.reg2mem
br i1 %80, label LBL_21, label LBL_22
LBL_22:
%81 = call i64 @FUNC(i64 %arg1, i64* bitcast ([2 x i8]* @gv_3 to i64*), i64 1)
br label LBL_23
LBL_23:
ret i64 1
uselistorder i64 %r8.2.reload, { 1, 0 }
uselistorder i64 %9, { 2, 1, 0, 3 }
uselistorder i64 %8, { 2, 1, 0, 3 }
uselistorder i64 %7, { 5, 4, 6, 2, 3, 7, 0, 1 }
uselistorder i64* %sv_2, { 1, 0, 3, 2 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %storemerge510.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.19.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge48.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.37.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder [2 x i8]* @gv_3, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64)* @OBJ_obj2txt, { 1, 0 }
uselistorder i64 (i64, i64)* @sk_ASN1_OBJECT_value, { 1, 0 }
uselistorder i64 (i64, i8*)* @BIO_puts, { 3, 5, 4, 0, 2, 1 }
uselistorder i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), { 1, 0 }
uselistorder i8 0, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @sk_ASN1_OBJECT_num, { 3, 1, 2, 0 }
uselistorder i64 (i64, i8*, i32, i64*, i64, i64*)* @BIO_printf, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* @gv_1, { 0, 3, 4, 2, 5, 6, 1, 9, 7, 8 }
uselistorder i32 1, { 20, 21, 22, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 0, 1, 3, 2, 4 }
uselistorder i64 %arg1, { 9, 10, 11, 8, 12, 4, 6, 5, 7, 13, 0, 2, 1, 3 }
uselistorder label LBL_23, { 1, 0, 2 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | CotpConnection_readToTpktBuffer_18950 | CotpConnection_readToTpktBuffer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem7 = alloca i64
%sv_0.1.reg2mem = alloca i32
%.reg2mem5 = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem3 = alloca i32
%.reg2mem1 = alloca i8
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i64 %0, 12
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp sgt i32 %3, 4
br i1 %7, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_1, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%8 = icmp sgt i32 %6, 3
br i1 %8, label LBL_2.LBL_13_crit_edge, label LBL_4
LBL_3:
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem3
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_4:
%9 = sub i32 4, %6
%10 = zext i32 %9 to i64
%11 = sext i32 %6 to i64
%12 = add i64 %11, %0
%13 = call i64 @FUNC(i64 %0, i64 %12, i64 %10)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
br i1 %15, label LBL_16, label LBL_5
LBL_5:
%16 = trunc i64 %0 to i8
%17 = icmp eq i32 %14, 0
store i64 %0, i64* %.reg2mem
store i8 %16, i8* %.reg2mem1
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = and i64 %13, 4294967295
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_3, i64 0, i64 0), i64 %18)
store i64 ptrtoint ([33 x i8]* @gv_3 to i64), i64* %.reg2mem
store i8 ptrtoint ([33 x i8]* @gv_3 to i8), i8* %.reg2mem1
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%20 = add i32 %6, %14
%21 = icmp eq i32 %20, 4
%22 = icmp eq i1 %21, false
store i64 %.reload, i64* %.reg2mem5
store i32 %20, i32* %sv_0.1.reg2mem
br i1 %22, label LBL_18, label LBL_8
LBL_8:
%.reload2 = load i8, i8* %.reg2mem1
%23 = icmp eq i8 %.reload2, 3
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_12, label LBL_9
LBL_9:
%25 = add i64 %0, 1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_12, label LBL_10
LBL_10:
%30 = add i64 %0, 2
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = zext i8 %32 to i32
%34 = mul i32 %33, 256
%35 = add i64 %0, 3
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = zext i8 %37 to i32
%39 = or i32 %34, %38
store i32 %39, i32* %2, align 4
%40 = zext i32 %39 to i64
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0), i64 %40)
%42 = load i32, i32* %2, align 4
%43 = zext i32 %42 to i64
%44 = sext i32 %3 to i64
%45 = icmp slt i64 %44, %43
store i32 %42, i32* %.reg2mem3
store i32 %20, i32* %sv_0.0.reg2mem
br i1 %45, label LBL_11, label LBL_13
LBL_11:
%46 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0))
br label LBL_17
LBL_12:
%47 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_6, i64 0, i64 0))
br label LBL_17
LBL_13:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload4 = load i32, i32* %.reg2mem3
%48 = sub i32 %.reload4, %sv_0.0.reload
%49 = zext i32 %48 to i64
%50 = sext i32 %sv_0.0.reload to i64
%51 = add i64 %50, %0
%52 = call i64 @FUNC(i64 %0, i64 %51, i64 %49)
%53 = trunc i64 %52 to i32
%54 = icmp slt i32 %53, 0
br i1 %54, label LBL_16, label LBL_14
LBL_14:
%55 = add i32 %sv_0.0.reload, %53
%56 = load i32, i32* %2, align 4
%57 = zext i32 %56 to i64
%58 = sext i32 %55 to i64
%59 = icmp slt i64 %58, %57
store i64 %0, i64* %.reg2mem5
store i32 %55, i32* %sv_0.1.reg2mem
br i1 %59, label LBL_18, label LBL_15
LBL_15:
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_7, i64 0, i64 0), i64 %57)
store i32 %55, i32* inttoptr (i64 add (i64 ptrtoint ([36 x i8]* @gv_7 to i64), i64 12) to i32*), align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_16:
%61 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_8, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_17:
%62 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_9, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_18:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%.reload6 = load i64, i64* %.reg2mem5
%63 = icmp eq i32 %sv_0.1.reload, 0
store i64 %.reload6, i64* %.reg2mem7
br i1 %63, label LBL_20, label LBL_19
LBL_19:
%64 = load i32, i32* %2, align 4
%65 = zext i32 %64 to i64
%66 = zext i32 %sv_0.1.reload to i64
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_10, i64 0, i64 0), i64 %66, i64 %65)
store i64 ptrtoint ([31 x i8]* @gv_10 to i64), i64* %.reg2mem7
br label LBL_20
LBL_20:
%.reload8 = load i64, i64* %.reg2mem7
%68 = add i64 %.reload8, 12
%69 = inttoptr i64 %68 to i32*
store i32 %sv_0.1.reload, i32* %69, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.1.reload, { 2, 0, 1 }
uselistorder i32 %55, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i32 %6, { 1, 3, 4, 0, 2 }
uselistorder i32* %2, { 3, 4, 1, 2, 0, 5 }
uselistorder i64 %0, { 0, 9, 2, 6, 7, 5, 1, 4, 8, 3, 10, 11 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem1, { 0, 2, 1 }
uselistorder i64* %.reg2mem5, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem7, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 4, 2 }
uselistorder [31 x i8]* @gv_10, { 1, 0 }
uselistorder [36 x i8]* @gv_7, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 0, 3, 2, 1 }
uselistorder [33 x i8]* @gv_3, { 0, 2, 1 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i64 (i64, i64, i64)* @readFromSocket, { 1, 0 }
uselistorder i64 12, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | parse_keyframes_index_34 | parse_keyframes_index | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%storemerge39.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%sv_1.11387.reg2mem = alloca i32
%sv_2.11288.reg2mem = alloca i32
%sv_3.01189.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
store i64 0, i64* %sv_6, align 8
store i64 0, i64* %sv_5, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0)
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = inttoptr i64 %5 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i8*
%10 = call i32 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_26
LBL_2:
%13 = call i64 @FUNC(i64 %3)
%sext110 = mul i64 %13, 4294967296
%14 = ashr exact i64 %sext110, 32
%15 = add i64 %arg4, -2
%16 = icmp slt i64 %14, %15
store i32 -38, i32* %sv_0.1.reg2mem
br i1 %16, label LBL_3, label LBL_23
LBL_3:
%17 = ptrtoint i64* %arg3 to i64
%18 = ptrtoint i64* %arg1 to i64
%19 = ptrtoint i64* %sv_4 to i64
%20 = bitcast i64* %sv_4 to i8*
%21 = add i64 %arg4, -1
%22 = call i64 @FUNC(i64 %3, i64* nonnull %sv_4, i64 256)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp slt i32 %23, 0
%26 = icmp eq i1 %25, false
%27 = icmp eq i1 %24, false
%28 = icmp eq i1 %26, %27
store i32 0, i32* %sv_3.01189.reg2mem
store i32 0, i32* %sv_2.11288.reg2mem
store i32 0, i32* %sv_1.11387.reg2mem
store i32 -38, i32* %sv_0.1.reg2mem
br i1 %28, label LBL_4, label LBL_23
LBL_4:
%sv_1.11387.reload = load i32, i32* %sv_1.11387.reg2mem
%sv_2.11288.reload = load i32, i32* %sv_2.11288.reg2mem
%sv_3.01189.reload = load i32, i32* %sv_3.01189.reg2mem
%29 = call i64 @FUNC(i64 %3)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 8
%32 = icmp eq i1 %31, false
store i32 %sv_3.01189.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.11288.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.11387.reload, i32* %sv_1.2.reg2mem
store i32 -38, i32* %sv_0.0.reg2mem
br i1 %32, label LBL_18, label LBL_5
LBL_5:
%33 = call i64 @FUNC(i64 %3)
%34 = trunc i64 %33 to i32
%35 = call i32 @strcmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i8* nonnull %20)
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_8, label LBL_6
LBL_6:
%38 = load i64, i64* %sv_6, align 8
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_8, label LBL_7
LBL_7:
%41 = mul i64 %33, 8
%42 = and i64 %41, 34359738360
%43 = call i64 @FUNC(i64 %42)
store i64 %43, i64* %sv_6, align 8
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
store i64 %43, i64* %storemerge4.reg2mem
store i32 %34, i32* %sv_2.0.reg2mem
store i32 %sv_1.11387.reload, i32* %sv_1.0.reg2mem
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %45, label LBL_11, label LBL_23
LBL_8:
%46 = call i32 @strcmp(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i8* nonnull %20)
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
store i32 %34, i32* %sv_3.1.reg2mem
store i32 %sv_2.11288.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.11387.reload, i32* %sv_1.2.reg2mem
store i32 -38, i32* %sv_0.0.reg2mem
br i1 %48, label LBL_18, label LBL_9
LBL_9:
%49 = load i64, i64* %sv_5, align 8
%50 = icmp eq i64 %49, 0
%51 = icmp eq i1 %50, false
store i32 %34, i32* %sv_3.1.reg2mem
store i32 %sv_2.11288.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.11387.reload, i32* %sv_1.2.reg2mem
store i32 -38, i32* %sv_0.0.reg2mem
br i1 %51, label LBL_18, label LBL_10
LBL_10:
%52 = mul i64 %33, 8
%53 = and i64 %52, 34359738360
%54 = call i64 @FUNC(i64 %53)
store i64 %54, i64* %sv_5, align 8
%55 = icmp eq i64 %54, 0
%56 = icmp eq i1 %55, false
store i64 %54, i64* %storemerge4.reg2mem
store i32 %sv_2.11288.reload, i32* %sv_2.0.reg2mem
store i32 %34, i32* %sv_1.0.reg2mem
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %56, label LBL_11, label LBL_23
LBL_11:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%57 = icmp ne i32 %34, 0
%58 = icmp eq i1 %57, false
store i32 0, i32* %storemerge39.reg2mem
br i1 %58, label LBL_15, label LBL_14
LBL_12:
%59 = call i64 @FUNC(i64 %3)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i32 -38, i32* %sv_0.1.reg2mem
br i1 %62, label LBL_23, label LBL_13
LBL_13:
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%63 = call i64 @FUNC(i64 %3)
%64 = call i128 @FUNC(i64 %63)
%65 = call i64 @FUNC(i128 %64)
%66 = zext i32 %storemerge39.reload to i64
%67 = mul i64 %66, 8
%68 = add i64 %67, %storemerge4.reload
%69 = call i128 @FUNC(i64 %65)
%70 = call i64 @FUNC(i128 %69)
%71 = inttoptr i64 %68 to i64*
store i64 %70, i64* %71, align 8
%72 = add i32 %storemerge39.reload, 1
%73 = icmp ult i32 %72, %34
%74 = icmp eq i1 %73, false
store i32 %72, i32* %storemerge39.reg2mem
br i1 %74, label LBL_15, label LBL_14
LBL_14:
%75 = call i64 @FUNC(i64 %3)
%sext2 = mul i64 %75, 4294967296
%76 = ashr exact i64 %sext2, 32
%77 = icmp slt i64 %76, %21
br i1 %77, label LBL_12, label LBL_15
LBL_15:
%78 = load i64, i64* %sv_6, align 8
%79 = icmp eq i64 %78, 0
%80 = load i64, i64* %sv_5, align 8
%81 = icmp eq i64 %80, 0
%or.cond = or i1 %79, %81
store i32 %34, i32* %sv_3.1.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_16, label LBL_18
LBL_16:
%82 = call i64 @FUNC(i64 %3)
%sext1 = mul i64 %82, 4294967296
%83 = ashr exact i64 %sext1, 32
%84 = icmp slt i64 %83, %15
store i32 %34, i32* %sv_3.1.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem
store i32 -38, i32* %sv_0.0.reg2mem
br i1 %84, label LBL_17, label LBL_18
LBL_17:
%85 = call i64 @FUNC(i64 %3, i64* nonnull %sv_4, i64 256)
%86 = trunc i64 %85 to i32
%87 = icmp eq i32 %86, 0
%88 = icmp slt i32 %86, 0
%89 = icmp eq i1 %88, false
%90 = icmp eq i1 %87, false
%91 = icmp eq i1 %89, %90
store i32 %34, i32* %sv_3.01189.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.11288.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.11387.reg2mem
store i32 %34, i32* %sv_3.1.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem
store i32 -38, i32* %sv_0.0.reg2mem
br i1 %91, label LBL_4, label LBL_18
LBL_18:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%92 = icmp eq i32 %sv_2.2.reload, %sv_1.2.reload
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_22, label LBL_19
LBL_19:
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%94 = icmp eq i32 %sv_3.1.reload, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %94, label LBL_23, label LBL_20
LBL_20:
%wide.trip.count = zext i32 %sv_3.1.reload to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_21
LBL_21:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%95 = load i64, i64* %sv_6, align 8
%96 = mul i64 %indvars.iv.reload, 8
%97 = add i64 %95, %96
%98 = inttoptr i64 %97 to i64*
%99 = load i64, i64* %98, align 8
%100 = mul i64 %99, 1000
%101 = load i64, i64* %sv_5, align 8
%102 = add i64 %101, %96
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = sext i64 %100 to i128
%106 = call i64 @FUNC(i64 %17, i64 %104, i128 %105, i64 0, i64 0, i64 1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %exitcond, label LBL_23, label LBL_21
LBL_22:
%107 = call i64 @FUNC(i64 %18, i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64 %19, i64 %2, i64 %1)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_23
LBL_23:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%108 = call i64 @FUNC(i64* nonnull %sv_6)
%109 = call i64 @FUNC(i64* nonnull %sv_5)
%110 = icmp slt i32 %sv_0.1.reload, 0
%111 = icmp eq i1 %110, false
br i1 %111, label LBL_25, label LBL_24
LBL_24:
%sext = mul i64 %4, 4294967296
%112 = ashr exact i64 %sext, 32
%113 = call i64 @FUNC(i64 %3, i64 %112, i64 0)
%114 = trunc i64 %113 to i32
%115 = icmp slt i32 %114, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %115, label LBL_25, label LBL_26
LBL_25:
%116 = zext i32 %sv_0.1.reload to i64
store i64 %116, i64* %rax.0.reg2mem
br label LBL_26
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %96, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i32 %86, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 1, 3, 2, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 3, 2, 0 }
uselistorder i32 %34, { 1, 7, 2, 0, 9, 8, 5, 3, 4, 6 }
uselistorder i32 %sv_2.11288.reload, { 3, 1, 2, 0 }
uselistorder i32 %sv_1.11387.reload, { 1, 2, 3, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64* %sv_5, { 1, 2, 0, 3, 4, 5 }
uselistorder i64* %sv_4, { 1, 0, 2, 3 }
uselistorder i64 %3, { 6, 8, 9, 4, 2, 3, 5, 7, 0, 1, 10, 11 }
uselistorder i32* %sv_3.01189.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.11288.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.11387.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge39.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 3, 4, 1, 5, 6, 2 }
uselistorder i32* %sv_2.2.reg2mem, { 0, 3, 4, 1, 5, 6, 2 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 3, 4, 1, 5, 6, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 4, 1, 5, 6, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 8, 5, 7, 4, 2, 3, 1, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64*)* @av_freep, { 1, 0 }
uselistorder i64 1, { 4, 3, 5, 0, 1, 2 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder i64 (i64)* @avio_r8, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @amf_get_string, { 1, 0 }
uselistorder i64 256, { 1, 0 }
uselistorder i32 -38, { 4, 5, 1, 6, 7, 3, 0, 2 }
uselistorder i64 32, { 3, 2, 1, 0 }
uselistorder i64 4294967296, { 3, 0, 1, 2 }
uselistorder i1 false, { 4, 5, 15, 3, 7, 6, 2, 8, 9, 10, 11, 12, 13, 14, 0, 1, 16 }
uselistorder i32 0, { 9, 8, 13, 14, 0, 10, 1, 7, 11, 12, 2, 3, 4, 5, 6, 15 }
uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_tell, { 2, 3, 0, 1 }
uselistorder label LBL_26, { 2, 0, 1 }
uselistorder label LBL_23, { 7, 4, 6, 3, 1, 2, 0, 5 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_18, { 2, 3, 0, 4, 5, 1 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | aux_bus_is_bridge_1516 | aux_bus_is_bridge | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg2, %arg1
%2 = zext i1 %1 to i64
%3 = and i64 %0, -256
%4 = or i64 %3, %2
ret i64 %4
} | 0 |
BinRealVul | sr_read_sector_8545 | sr_read_sector | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sext4 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext4, 32
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_0.LBL_4_crit_edge, label LBL_2
LBL_1:
%.pre = ptrtoint i32* %arg1 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_2:
%6 = ptrtoint i64* %arg4 to i64
%7 = trunc i64 %arg2 to i32
%8 = ptrtoint i32* %arg1 to i64
%9 = and i64 %3, 4294967295
%10 = call i64 @FUNC(i64 %8, i64 %6, i32 %7, i64 0, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 1
store i64 %10, i64* %rax.0.in.reg2mem
br i1 %12, label LBL_3, label LBL_7
LBL_3:
store i32 0, i32* %arg1, align 4
%13 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %8, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %9, i64 %1)
store i64 %8, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%14 = add i64 %.pre-phi.reload, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = trunc i64 %3 to i32
%20 = icmp eq i32 %18, %19
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%21 = and i64 %3, 4294967295
%22 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %21)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
store i64 %22, i64* %rax.0.in.reg2mem
br i1 %24, label LBL_6, label LBL_7
LBL_6:
%25 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 40)
store i64 40, i64* %sv_0, align 8
%26 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_0)
store i64 %26, i64* %rax.0.in.reg2mem
br label LBL_7
LBL_7:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32* %arg1, { 1, 2, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
reposvul_c_test | ReadProfileMSBLong_264 | ReadProfileMSBLong | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ugt i64* %arg2, inttoptr (i64 3 to i64*)
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 1, i64 %1)
%3 = add i64 %1, -4
store i64 %3, i64* %arg2, align 8
store i64 5, i64* %arg1, align 8
%4 = and i64 %2, 4294967295
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | _handle_old_batch_job_launch_9926 | _handle_old_batch_job_launch | define i64 @FUNC(i64* %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
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_0, i64 0, i64 0), i64 %4)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0))
%8 = call i32 @time(i32* null)
%9 = sext i32 %8 to i64
store i64 %9, i64* @gv_2, align 8
%10 = call i64 @FUNC(i64 %6, i64 0)
%11 = add i64 %6, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
store i64 0, i64* %12, align 8
store i64 %6, 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, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | render_overlap_7746 | render_overlap | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = add i64 %1, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %1, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %1, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %0, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i64 %0, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %0, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %1, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %0, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %28, %31
store i64 %28, i64* %rax.0.reg2mem
br i1 %32, label LBL_13, label LBL_1
LBL_1:
%33 = add i64 %1, 32
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %0, 32
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = zext i32 %38 to i64
%40 = icmp eq i32 %35, %38
%41 = icmp eq i1 %40, false
store i64 %39, i64* %rax.0.reg2mem
br i1 %41, label LBL_13, label LBL_2
LBL_2:
%42 = trunc i64 %1 to i32
%43 = trunc i64 %0 to i32
%44 = sub i32 %43, %42
%45 = xor i64 %0, %1
%46 = trunc i64 %45 to i32
%47 = xor i32 %44, %43
%48 = and i32 %47, %46
%49 = icmp slt i32 %48, 0
%50 = icmp slt i32 %44, 0
%51 = icmp eq i1 %50, %49
%52 = select i1 %51, i32 %43, i32 %42
%53 = add i32 %19, %43
%54 = add i32 %7, %42
%55 = sub i32 %53, %54
%56 = xor i32 %53, %54
%57 = xor i32 %55, %53
%58 = and i32 %57, %56
%59 = icmp slt i32 %58, 0
%60 = icmp eq i32 %55, 0
%61 = icmp slt i32 %55, 0
%62 = icmp ne i1 %61, %59
%63 = or i1 %60, %62
%64 = select i1 %63, i32 %53, i32 %54
%65 = zext i32 %64 to i64
%66 = icmp sgt i32 %64, %52
store i64 %65, i64* %rax.0.reg2mem
br i1 %66, label LBL_3, label LBL_13
LBL_3:
%67 = sub i32 %16, %4
%68 = xor i32 %16, %4
%69 = xor i32 %67, %16
%70 = and i32 %69, %68
%71 = icmp slt i32 %70, 0
%72 = icmp slt i32 %67, 0
%73 = icmp eq i1 %72, %71
%74 = select i1 %73, i32 %16, i32 %4
%75 = add i32 %25, %16
%76 = add i32 %13, %4
%77 = sub i32 %75, %76
%78 = xor i32 %75, %76
%79 = xor i32 %77, %75
%80 = and i32 %79, %78
%81 = icmp slt i32 %80, 0
%82 = icmp eq i32 %77, 0
%83 = icmp slt i32 %77, 0
%84 = icmp ne i1 %83, %81
%85 = or i1 %82, %84
%86 = select i1 %85, i32 %75, i32 %76
%87 = zext i32 %86 to i64
%88 = icmp sgt i32 %86, %74
store i64 %87, i64* %rax.0.reg2mem
br i1 %88, label LBL_4, label LBL_13
LBL_4:
%89 = ptrtoint i64* %sv_0 to i64
%90 = call i64 @FUNC(i64* nonnull %sv_0)
%91 = icmp eq i64 %90, 0
br i1 %91, label LBL_6, label LBL_5
LBL_5:
%92 = inttoptr i64 %90 to i64*
%93 = load i64, i64* %92, align 8
%94 = add i64 %89, 24
%95 = inttoptr i64 %94 to i64*
store i64 %93, i64* %95, align 8
%96 = add i64 %90, 8
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
store i64 %98, i64* %30, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_13
LBL_6:
%99 = sub i32 %86, %74
%100 = add i64 %89, 24
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = load i64, i64* %30, align 8
%104 = mul i32 %13, %10
%105 = call i64* @malloc(i32 %104)
%106 = ptrtoint i64* %105 to i64
store i64 %106, i64* %101, align 8
%107 = mul i32 %25, %22
%108 = sext i32 %107 to i64
%109 = call i64* @malloc(i32 %107)
%110 = ptrtoint i64* %109 to i64
store i64 %110, i64* %30, align 8
%111 = add nsw i64 %108, 24
%112 = inttoptr i64 %111 to i64*
%113 = load i64, i64* %112, align 8
%114 = inttoptr i64 %113 to i64*
%115 = inttoptr i64 %102 to i64*
%116 = call i64* @memcpy(i64* %114, i64* %115, i32 %104)
%117 = add i64 %102, 24
%118 = inttoptr i64 %117 to i64*
%119 = load i64, i64* %118, align 8
%120 = inttoptr i64 %119 to i64*
%121 = inttoptr i64 %103 to i64*
%122 = call i64* @memcpy(i64* %120, i64* %121, i32 %107)
%123 = icmp sgt i32 %99, 0
br i1 %123, label LBL_7, label LBL_12
LBL_7:
%124 = sub i32 %52, %42
%125 = sub i32 %74, %4
%126 = sub i32 %64, %52
%127 = sub i32 %52, %43
%128 = sub i32 %74, %16
%129 = icmp sgt i32 %126, 0
%130 = add i64 %119, 24
%131 = inttoptr i64 %130 to i64*
%132 = add i64 %103, 24
%133 = inttoptr i64 %132 to i64*
%wide.trip.count = zext i32 %126 to i64
store i32 0, i32* %storemerge6.reg2mem
br label LBL_10
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%134 = trunc i64 %indvars.iv.reload to i32
%135 = add i32 %156, %134
%136 = add i32 %159, %134
%137 = sext i32 %136 to i64
%138 = add i64 %103, %137
%139 = inttoptr i64 %138 to i8*
%140 = load i8, i8* %139, align 1
%141 = sext i32 %135 to i64
%142 = add i64 %102, %141
%143 = inttoptr i64 %142 to i8*
%144 = load i8, i8* %143, align 1
%145 = icmp ult i8 %140, %144
%146 = icmp eq i1 %145, false
%.v = select i1 %146, i8 %140, i8 %144
%147 = load i64, i64* %131, align 8
%148 = add i64 %147, %141
%149 = inttoptr i64 %148 to i8*
store i8 0, i8* %149, align 1
%150 = load i64, i64* %133, align 8
%151 = add i64 %150, %137
%152 = inttoptr i64 %151 to i8*
store i8 %.v, i8* %152, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_9, label LBL_8
LBL_9:
%153 = add nuw nsw i32 %storemerge6.reload, 1
%exitcond8 = icmp eq i32 %153, %99
store i32 %153, i32* %storemerge6.reg2mem
br i1 %exitcond8, label LBL_12, label LBL_10
LBL_10:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
br i1 %129, label LBL_8.lr.ph, label LBL_9
LBL_11:
%154 = add i32 %125, %storemerge6.reload
%155 = mul i32 %154, %10
%156 = add i32 %124, %155
%157 = add i32 %128, %storemerge6.reload
%158 = mul i32 %157, %22
%159 = add i32 %127, %158
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_12:
%160 = call i64* @calloc(i32 1, i32 48)
%161 = ptrtoint i64* %160 to i64
%162 = call i64* @memcpy(i64* %160, i64* nonnull %sv_0, i32 48)
%163 = call i64* @calloc(i32 1, i32 16)
%164 = ptrtoint i64* %163 to i64
%165 = load i64, i64* inttoptr (i64 25 to i64*), align 8
store i64 %165, i64* %163, align 8
%166 = load i64, i64* inttoptr (i64 40 to i64*), align 8
%167 = add i64 %164, 8
%168 = inttoptr i64 %167 to i64*
store i64 %166, i64* %168, align 8
%169 = call i64 @FUNC(i64 %161, i64 %164)
store i64 %169, 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 %141, { 1, 0 }
uselistorder i64 %137, { 1, 0 }
uselistorder i32 %86, { 0, 2, 1 }
uselistorder i32 %77, { 1, 2, 0 }
uselistorder i32 %76, { 1, 0, 2 }
uselistorder i32 %75, { 2, 0, 1, 3 }
uselistorder i32 %67, { 1, 0 }
uselistorder i32 %55, { 1, 2, 0 }
uselistorder i32 %54, { 1, 0, 2 }
uselistorder i32 %53, { 2, 0, 1, 3 }
uselistorder i32 %52, { 0, 2, 1, 3 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %43, { 0, 1, 3, 2, 4 }
uselistorder i64* %30, { 1, 2, 0, 3 }
uselistorder i32 %16, { 0, 1, 5, 2, 3, 4 }
uselistorder i32 %4, { 0, 1, 4, 2, 3 }
uselistorder i64 %1, { 0, 2, 1, 3, 4, 5, 6, 7 }
uselistorder i64 %0, { 0, 1, 3, 2, 4, 5, 6, 7, 8 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1, 5, 6 }
uselistorder label LBL_13, { 4, 5, 1, 0, 2, 3 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | extract_html_9100 | extract_html | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, %arg2
%2 = add i64 %0, 3
%3 = icmp ugt i64 %1, %2
store i64 %2, i64* %.reg2mem
store i64 %0, i64* %storemerge13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%4 = inttoptr i64 %storemerge13.reload to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp eq i8 %5, 13
%7 = icmp eq i1 %6, false
%.pre = add i64 %storemerge13.reload, 1
br i1 %7, label LBL_6, label LBL_2
LBL_2:
%8 = inttoptr i64 %.pre to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 10
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = add i64 %storemerge13.reload, 2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 13
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%17 = inttoptr i64 %.reload to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, 10
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%21 = add i64 %storemerge13.reload, 4
store i64 %21, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%22 = add i64 %storemerge13.reload, 4
%23 = icmp ugt i64 %1, %22
store i64 %22, i64* %.reg2mem
store i64 %.pre, i64* %storemerge13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_1, label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge13.reload, { 2, 4, 0, 3, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder label LBL_7, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 2, 3, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | jswrap_serial_unsetup_6986 | jswrap_serial_unsetup | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%1 = load i32, i32* %0
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_0 = alloca i32, align 4
%4 = call i64 @FUNC(i64 %arg1)
%5 = and i64 %4, 4294967295
%6 = xor i64 %5, 1
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_15, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %arg1)
%11 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 0)
%12 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 0)
%13 = icmp eq i64 %11, 0
br i1 %13, label LBL_1.LBL_13_crit_edge, label LBL_3
LBL_2:
%.pre = and i64 %10, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_3:
%14 = bitcast i32* %sv_0 to i64*
%15 = call i64 @FUNC(i64* nonnull %14, i64 %12, i64 %11)
%16 = load i32, i32* %sv_0, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = zext i32 %16 to i64
%19 = call i64 @FUNC(i64 %18, i64 0)
br label LBL_5
LBL_5:
%20 = icmp eq i32 %3, -1
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = zext i32 %3 to i64
%22 = call i64 @FUNC(i64 %21, i64 0)
br label LBL_7
LBL_7:
%23 = icmp eq i32 %2, -1
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = zext i32 %2 to i64
%25 = call i64 @FUNC(i64 %24, i64 0)
br label LBL_9
LBL_9:
%26 = icmp eq i32 %1, -1
br i1 %26, label LBL_11, label LBL_10
LBL_10:
%27 = zext i32 %1 to i64
%28 = call i64 @FUNC(i64 %27, i64 0)
br label LBL_11
LBL_11:
%29 = and i64 %10, 4294967295
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i8
%32 = icmp eq i8 %31, 1
store i64 %29, i64* %.pre-phi.reg2mem
br i1 %32, label LBL_13, label LBL_12
LBL_12:
%33 = call i64 @FUNC(i64 %arg1, i64* nonnull %14)
store i64 %29, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_13:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%34 = call i64 @FUNC(i64 %11, i64 %12)
%35 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%36 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0))
%37 = call i64 @FUNC(i64 %.pre-phi.reload)
%38 = trunc i64 %37 to i8
%39 = icmp eq i8 %38, 0
store i64 %37, i64* %rax.0.reg2mem
br i1 %39, label LBL_15, label LBL_14
LBL_14:
%40 = call i64 @FUNC(i64 %.pre-phi.reload)
%41 = call i64 @FUNC(i64 %.pre-phi.reload, i64 0, i64 4294967295)
store i64 %41, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 1, 0, 2 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @jsvObjectRemoveChild, { 1, 0 }
uselistorder i64 (i64)* @DEVICE_IS_SERIAL, { 1, 0 }
uselistorder i64 (i64, i64)* @jshPinSetState, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @jsvObjectGetChild, { 1, 0 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder i64 4294967295, { 4, 1, 0, 2, 3 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder i64 %arg1, { 2, 1, 0, 5, 4, 3, 6 }
uselistorder label LBL_15, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
} | 0 |
BinRealVul | av_image_get_linesize_15531 | av_image_get_linesize | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge11.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = and i64 %arg1, 4294967295
%2 = mul nuw nsw i64 %1, 24
%3 = add i64 %2, ptrtoint (i32** @gv_0 to i64)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 8
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %2, add (i64 ptrtoint (i32** @gv_0 to i64), i64 4)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %10, 1
%12 = trunc i64 %0 to i32
%13 = mul i32 %11, %12
%14 = add i32 %13, 7
%15 = ashr i32 %14, 3
%16 = zext i32 %15 to i64
store i64 %16, i64* %storemerge11.reg2mem
br label LBL_5
LBL_2:
%17 = ptrtoint i64* %sv_2 to i64
%sext4 = mul i64 %arg3, 4294967296
%18 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1, i64 %3)
%19 = ashr exact i64 %sext4, 30
%20 = add i64 %19, %17
%21 = add i64 %20, -48
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp ne i32 %23, 1
%25 = icmp eq i32 %23, 2
%26 = icmp eq i1 %25, false
%or.cond = icmp eq i1 %24, %26
store i32 0, i32* %storemerge12.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%27 = add i64 %2, add (i64 ptrtoint (i32** @gv_0 to i64), i64 20)
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%phitmp = urem i32 %29, 32
store i32 %phitmp, i32* %storemerge12.reg2mem
br label LBL_4
LBL_4:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%30 = add i64 %20, -32
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = shl i32 1, %storemerge12.reload
%storemerge = zext i32 %33 to i64
%34 = add nsw i64 %0, 4294967295
%35 = add nsw i64 %34, %storemerge
%36 = icmp eq i32 %storemerge12.reload, 0
%37 = trunc i64 %35 to i32
%38 = ashr i32 %37, %storemerge12.reload
%39 = zext i32 %38 to i64
%spec.select = select i1 %36, i64 %35, i64 %39
%sext9 = mul i64 %spec.select, 4294967296
%40 = ashr exact i64 %sext9, 32
%41 = sext i32 %32 to i64
%42 = mul nsw i64 %40, %41
%43 = and i64 %42, 4294967295
store i64 %43, i64* %storemerge11.reg2mem
br label LBL_5
LBL_5:
%storemerge11.reload = load i64, i64* %storemerge11.reg2mem
ret i64 %storemerge11.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i32* %storemerge12.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge11.reg2mem, { 0, 2, 1 }
uselistorder i64 4, { 2, 1, 0, 3 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 1, { 4, 3, 8, 7, 6, 5, 1, 0, 9, 10, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | get_uint_16767 | get_uint | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%.pre = ptrtoint i32* %arg1 to i64
%.pre4 = add i64 %.pre, 4
store i64 %arg2, i64* %sv_0.0.in.in.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %.pre4, i64 32)
store i64 %4, i64* %sv_0.0.in.in.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%5 = and i64 %sv_0.0.in.in.reload, 4294967295
%6 = call i64 @FUNC(i64 %.pre4, i64 %5)
ret i64 %6
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @get_ur_golomb_shorten, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_calculate_timeout_5446 | qemu_calculate_timeout | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 1000, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_6
LBL_1:
%3 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_5
LBL_2:
%6 = call i64 @FUNC()
%7 = icmp slt i64 %6, 1
br i1 %7, label LBL_4, label LBL_3
LBL_3:
br label LBL_5
LBL_4:
%8 = call i64 @FUNC()
%9 = icmp slt i64 %8, 10000000
%spec.select = select i1 %9, i64 %8, i64 10000000
%10 = call i64 @FUNC(i64 %spec.select)
%11 = load i64, i64* @gv_1, align 8
%12 = add i64 %11, %10
store i64 %12, i64* @gv_1, align 8
br label LBL_5
LBL_5:
store i64 5000, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | load_tc_14645 | load_tc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv8.reg2mem = alloca i64
%indvars.iv11.reg2mem = alloca i64
%indvars.iv14.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv14.reg2mem
br label LBL_1
LBL_1:
%indvars.iv14.reload = load i64, i64* %indvars.iv14.reg2mem
%2 = mul i64 %indvars.iv14.reload, 4
%3 = add i64 %2, %0
%4 = call i64 @FUNC(i64 %1, i64 %3)
%indvars.iv.next15 = add nuw nsw i64 %indvars.iv14.reload, 1
%exitcond16 = icmp eq i64 %indvars.iv.next15, 32
store i64 %indvars.iv.next15, i64* %indvars.iv14.reg2mem
br i1 %exitcond16, label LBL_2, label LBL_1
LBL_2:
%5 = add i64 %0, 128
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = add i64 %0, 132
store i64 0, i64* %indvars.iv11.reg2mem
br label LBL_3
LBL_3:
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%8 = mul i64 %indvars.iv11.reload, 4
%9 = add i64 %7, %8
%10 = call i64 @FUNC(i64 %1, i64 %9)
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%exitcond13 = icmp eq i64 %indvars.iv.next12, 2
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
br i1 %exitcond13, label LBL_4, label LBL_3
LBL_4:
%11 = add i64 %0, 140
store i64 0, i64* %indvars.iv8.reg2mem
br label LBL_5
LBL_5:
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
%12 = mul i64 %indvars.iv8.reload, 4
%13 = add i64 %11, %12
%14 = call i64 @FUNC(i64 %1, i64 %13)
%indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1
%exitcond10 = icmp eq i64 %indvars.iv.next9, 2
store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem
br i1 %exitcond10, label LBL_6, label LBL_5
LBL_6:
%15 = add i64 %0, 148
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_7
LBL_7:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = mul i64 %indvars.iv.reload, 4
%17 = add i64 %15, %16
%18 = call i64 @FUNC(i64 %1, i64 %17)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 2
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_8, label LBL_7
LBL_8:
%19 = add i64 %0, 156
%20 = call i64 @FUNC(i64 %1, i64 %19)
%21 = add i64 %0, 160
%22 = call i64 @FUNC(i64 %1, i64 %21)
%23 = add i64 %0, 164
%24 = call i64 @FUNC(i64 %1, i64 %23)
%25 = add i64 %0, 168
%26 = call i64 @FUNC(i64 %1, i64 %25)
%27 = add i64 %0, 172
%28 = call i64 @FUNC(i64 %1, i64 %27)
%29 = add i64 %0, 176
%30 = call i64 @FUNC(i64 %1, i64 %29)
%31 = add i64 %0, 180
%32 = call i64 @FUNC(i64 %1, i64 %31)
%33 = add i64 %0, 184
%34 = call i64 @FUNC(i64 %1, i64 %33)
ret i64 %34
uselistorder i64 %1, { 1, 0, 4, 3, 2, 7, 6, 5, 8, 9, 10, 11, 12 }
uselistorder i64 %0, { 5, 4, 8, 7, 6, 11, 10, 9, 3, 2, 1, 12, 0 }
uselistorder i64* %indvars.iv14.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv11.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv8.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @qemu_get_sbe32s, { 2, 1, 0 }
uselistorder i64 2, { 2, 1, 0 }
uselistorder i64 1, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_betls, { 8, 7, 6, 5, 4, 9, 3, 2, 0, 1 }
} | 1 |
BinRealVul | mrb_mod_include_p_10546 | mrb_mod_include_p | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.in3.reg2mem = alloca i64
%sv_1 = alloca i32, align 4
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %0)
%2 = bitcast i32* %sv_1 to i64*
%3 = call i64 @FUNC(i64 %arg1, i64* nonnull @gv_0, i64* nonnull %2)
%4 = load i32, i32* %sv_1, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %arg1, i64 %5, i64 0)
%7 = icmp eq i64 %1, 0
%8 = icmp eq i1 %7, false
store i64 %1, i64* %sv_0.0.in3.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_1:
%sv_0.0.in3.reload = load i64, i64* %sv_0.0.in3.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in3.reload to i32*
%9 = load i32, i32* %sv_0.0, align 4
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = add i64 %sv_0.0.in3.reload, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = load i32, i32* %sv_1, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = icmp eq i64 %14, %17
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = call i64 @FUNC()
store i64 %20, i64* %storemerge.reg2mem
br label LBL_6
LBL_4:
%21 = add i64 %sv_0.0.in3.reload, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %sv_0.0.in3.reg2mem
br i1 %25, label LBL_1, label LBL_5
LBL_5:
%26 = call i64 @FUNC()
store i64 %26, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in3.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i64 (i64)* @mrb_class_ptr, { 1, 0 }
uselistorder i32 1, { 4, 5, 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | decode_wdlt_17630 | decode_wdlt | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge27.reg2mem = alloca i32
%.in43.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge13.lcssa.reg2mem = alloca i32
%storemerge13.in.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_2.0.lcssa.reg2mem = alloca i64
%sv_2.021.reg2mem = alloca i64
%sv_1.022.reg2mem = alloca i32
%storemerge1323.reg2mem = alloca i32
%sv_2.128.reg2mem = alloca i64
%sv_1.129.reg2mem = alloca i32
%.in.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sext2 = mul i64 %arg4, 4294967296
%1 = ashr exact i64 %sext2, 32
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = trunc i64 %1 to i32
%5 = icmp sgt i32 %3, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %5, label LBL_22, label LBL_1
LBL_1:
%6 = icmp eq i32 %3, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_22
LBL_2:
%8 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%9 = ashr exact i64 %sext, 32
%sext4 = mul i64 %1, %sext
%10 = ashr exact i64 %sext4, 32
%11 = add i64 %10, %8
%12 = trunc i64 %9 to i32
%13 = mul i32 %12, -1
store i32 %3, i32* %.in.reg2mem
store i32 0, i32* %sv_1.129.reg2mem
store i64 %8, i64* %sv_2.128.reg2mem
br label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = icmp sgt i32 %15, 1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_22
LBL_4:
%sv_2.128.reload = load i64, i64* %sv_2.128.reg2mem
%sv_1.129.reload = load i32, i32* %sv_1.129.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%17 = add i32 %.in.reload, -1
%18 = call i64 @FUNC(i64 %0)
%storemerge1320 = trunc i64 %18 to i32
%19 = and i32 %storemerge1320, 49152
%20 = icmp eq i32 %19, 49152
store i32 %storemerge1320, i32* %storemerge1323.reg2mem
store i32 %sv_1.129.reload, i32* %sv_1.022.reg2mem
store i64 %sv_2.128.reload, i64* %sv_2.021.reg2mem
store i64 %sv_2.128.reload, i64* %sv_2.0.lcssa.reg2mem
store i32 %sv_1.129.reload, i32* %sv_1.0.lcssa.reg2mem
store i64 %18, i64* %storemerge13.in.lcssa.reg2mem
store i32 %storemerge1320, i32* %storemerge13.lcssa.reg2mem
br i1 %20, label LBL_5, label LBL_8
LBL_5:
%sv_2.021.reload = load i64, i64* %sv_2.021.reg2mem
%storemerge1323.reload = load i32, i32* %storemerge1323.reg2mem
%sext10 = mul i32 %storemerge1323.reload, 65536
%21 = ashr exact i32 %sext10, 16
%22 = mul i32 %13, %21
%23 = sub i64 %11, %sv_2.021.reload
%24 = zext i32 %22 to i64
%25 = icmp sgt i64 %23, %24
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %25, label LBL_6, label LBL_22
LBL_6:
%sv_1.022.reload = load i32, i32* %sv_1.022.reg2mem
%26 = add i32 %sv_1.022.reload, %17
%27 = sub i32 %26, %21
%28 = icmp ugt i32 %27, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %28, label LBL_22, label LBL_7
LBL_7:
%29 = add i64 %sv_2.021.reload, %24
%30 = sub i32 %sv_1.022.reload, %21
%31 = call i64 @FUNC(i64 %0)
%storemerge13 = trunc i64 %31 to i32
%32 = and i32 %storemerge13, 49152
%33 = icmp eq i32 %32, 49152
store i32 %storemerge13, i32* %storemerge1323.reg2mem
store i32 %30, i32* %sv_1.022.reg2mem
store i64 %29, i64* %sv_2.021.reg2mem
store i64 %29, i64* %sv_2.0.lcssa.reg2mem
store i32 %30, i32* %sv_1.0.lcssa.reg2mem
store i64 %31, i64* %storemerge13.in.lcssa.reg2mem
store i32 %storemerge13, i32* %storemerge13.lcssa.reg2mem
br i1 %33, label LBL_5, label LBL_8
LBL_8:
%storemerge13.lcssa.reload = load i32, i32* %storemerge13.lcssa.reg2mem
%storemerge13.in.lcssa.reload = load i64, i64* %storemerge13.in.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_2.0.lcssa.reload = load i64, i64* %sv_2.0.lcssa.reg2mem
%34 = trunc i64 %storemerge13.in.lcssa.reload to i16
%35 = icmp sgt i16 %34, -1
%.pre35 = add i64 %sv_2.0.lcssa.reload, %9
store i32 %storemerge13.lcssa.reload, i32* %sv_0.0.reg2mem
br i1 %35, label LBL_10, label LBL_9
LBL_9:
%36 = add i64 %.pre35, -1
%37 = trunc i64 %storemerge13.in.lcssa.reload to i8
%38 = inttoptr i64 %36 to i8*
store i8 %37, i8* %38, align 1
%39 = call i64 @FUNC(i64 %0)
%40 = trunc i64 %39 to i32
store i32 %40, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i64 %sv_2.0.lcssa.reload, i64* %sv_3, align 8
%41 = icmp eq i32 %sv_0.0.reload, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_11, label LBL_21
LBL_11:
%43 = call i64 @FUNC(i64 %0)
%sext741 = mul i64 %43, 4294967296
%44 = ashr exact i64 %sext741, 32
%45 = icmp sgt i64 %9, %44
store i32 %sv_0.0.reload, i32* %.in43.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %45, label LBL_12, label LBL_22
LBL_12:
%.in43.reload = load i32, i32* %.in43.reg2mem
%46 = call i64 @FUNC(i64 %0)
%47 = load i64, i64* %sv_3, align 8
%sext8 = mul i64 %46, 4294967296
%48 = ashr exact i64 %sext8, 32
%49 = add i64 %48, %47
store i64 %49, i64* %sv_3, align 8
%50 = call i64 @FUNC(i64 %0)
%51 = trunc i64 %50 to i32
%sext9 = mul i32 %51, 16777216
%52 = icmp slt i32 %sext9, 0
br i1 %52, label LBL_18, label LBL_13
LBL_13:
%53 = load i64, i64* %sv_3, align 8
%54 = sub i64 %.pre35, %53
%55 = mul i32 %51, 2
%56 = and i32 %55, 510
%57 = zext i32 %56 to i64
%58 = icmp slt i64 %54, %57
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %58, label LBL_22, label LBL_14
LBL_14:
%59 = call i64 @FUNC(i64 %0, i64 %53, i64 %57)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %56, %60
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %61, label LBL_15, label LBL_22
LBL_15:
%62 = load i64, i64* %sv_3, align 8
%63 = add i64 %62, %57
store i64 %63, i64* %sv_3, align 8
br label LBL_16
LBL_16:
%64 = add i32 %.in43.reload, -1
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_16.dec_label_pc_401457_crit_edge, label LBL_21
LBL_17:
%.pre = load i64, i64* %sv_3, align 8
%67 = sub i64 %.pre35, %.pre
%68 = call i64 @FUNC(i64 %0)
%sext7 = mul i64 %68, 4294967296
%69 = ashr exact i64 %sext7, 32
%70 = icmp sgt i64 %67, %69
store i32 %64, i32* %.in43.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %70, label LBL_12, label LBL_22
LBL_18:
%71 = ashr exact i32 %sext9, 24
%72 = sub nsw i32 0, %71
%73 = load i64, i64* %sv_3, align 8
%74 = sub i64 %.pre35, %73
%75 = mul i32 %72, 2
%76 = sext i32 %75 to i64
%77 = icmp slt i64 %74, %76
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %77, label LBL_22, label LBL_19
LBL_19:
%78 = call i64 @FUNC(i64 %0)
%79 = and i64 %78, 4294967295
store i32 0, i32* %storemerge27.reg2mem
br label LBL_20
LBL_20:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%80 = call i64 @FUNC(i64* nonnull %sv_3, i64 %79)
%81 = add nuw nsw i32 %storemerge27.reload, 1
%82 = icmp slt i32 %81, %72
store i32 %81, i32* %storemerge27.reg2mem
br i1 %82, label LBL_20, label LBL_16
LBL_21:
%83 = add i32 %sv_1.0.lcssa.reload, 1
%84 = icmp eq i32 %17, 0
%85 = icmp eq i1 %84, false
store i32 %17, i32* %.in.reg2mem
store i32 %83, i32* %sv_1.129.reg2mem
store i64 %.pre35, i64* %sv_2.128.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %85, label LBL_3, label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %72, { 1, 0 }
uselistorder i32 %56, { 1, 0 }
uselistorder i64 %.pre35, { 0, 2, 3, 1, 4 }
uselistorder i32 %21, { 2, 0, 1 }
uselistorder i64 %sv_2.021.reload, { 1, 0 }
uselistorder i32 %17, { 0, 2, 1 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_3, { 1, 2, 0, 3, 4, 5, 6, 7, 8 }
uselistorder i64 %0, { 3, 6, 2, 4, 5, 0, 1, 7, 8, 9, 10 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.129.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.128.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1323.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.022.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.021.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.in43.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 9, 6, 8, 7, 5, 4, 3, 1, 10, 11 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_peek_byte, { 1, 0 }
uselistorder i32 49152, { 2, 3, 0, 1 }
uselistorder i1 false, { 3, 2, 1, 0 }
uselistorder i32 0, { 8, 0, 6, 7, 5, 4, 1, 3, 2 }
uselistorder i64 (i64)* @bytestream2_get_le16, { 4, 2, 3, 1, 0 }
uselistorder i64 32, { 2, 1, 0, 3, 5, 4, 6 }
uselistorder i64 4294967296, { 0, 1, 2, 4, 3, 5 }
uselistorder label LBL_22, { 1, 8, 5, 7, 6, 4, 3, 2, 0, 9, 10 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | parse_key_14056 | parse_key | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp slt i32 %7, 1
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = zext i8 %13 to i64
%15 = mul i64 %14, 65536
%16 = add i64 %11, 1
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i64
%20 = mul i64 %19, 256
%21 = or i64 %20, %15
%22 = add i64 %11, 2
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = zext i8 %24 to i64
%26 = or i64 %21, %25
%27 = add i64 %2, 16
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = sub i32 24, %29
%31 = urem i32 %30, 32
%32 = icmp eq i32 %31, 0
%33 = trunc i64 %26 to i32
%34 = lshr i32 %33, %31
%35 = zext i32 %34 to i64
%rdx.0 = select i1 %32, i64 %26, i64 %35
store i64 %rdx.0, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = and i64 %1, 4294967295
%37 = call i64 @FUNC(i64 %2, i64 %36)
ret i64 %sv_0.0.reload
uselistorder i32 %31, { 1, 0 }
uselistorder i64 %2, { 3, 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | problem_data_save_12719 | problem_data_save | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = load [23 x i8]*, [23 x i8]** @gv_0, align 8
%3 = ptrtoint [23 x i8]* %2 to i64
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = icmp eq i64 %4, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = inttoptr i64 %4 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %4)
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %sv_0.0.reload)
ret i64 %sv_0.0.reload
uselistorder i64 %4, { 1, 0, 2 }
} | 1 |
BinRealVul | qvirtio_pci_device_disable_16088 | qvirtio_pci_device_disable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %0, i64 %3)
store i64 0, i64* %2, align 8
ret i64 %0
uselistorder i64 %0, { 0, 2, 1 }
} | 1 |
BinRealVul | pl031_class_init_15827 | pl031_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 1, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0 }
} | 1 |
BinRealVul | clear_eir_18312 | clear_eir | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 6
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = urem i8 %3, 2
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = call i64 @FUNC(i64 %0, i64 4660, i64 0, i64* nonnull %sv_0)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.