dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | decode_pic_hdr_6033 | decode_pic_hdr | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem3 = alloca i32
%storemerge.reg2mem = alloca i32
%storemerge1.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 = load i64, i64* %0
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 28
%8 = call i64 @FUNC(i64 %7, i64 5)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 31
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_17
LBL_2:
%12 = trunc i64 %3 to i32
%13 = bitcast i64* %rdi to i32*
%14 = add i64 %6, 4
%15 = inttoptr i64 %14 to i32*
store i32 %12, i32* %15, align 4
%16 = call i64 @FUNC(i64 %7, i64 3)
%17 = trunc i64 %16 to i32
%18 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %18, align 4
%19 = load i32, i32* %13, align 8
%20 = icmp slt i32 %19, 5
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = zext i32 %19 to i64
%22 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %21, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_17
LBL_4:
%23 = call i64 @FUNC(i64 %7, i64 8)
%24 = trunc i64 %23 to i32
%25 = add i64 %6, 8
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = load i32, i32* %13, align 8
%28 = icmp eq i32 %27, 1
%29 = icmp eq i1 %28, false
store i32 %27, i32* %.reg2mem
br i1 %29, label LBL_7, label LBL_5
LBL_5:
%30 = add i64 %6, 24
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
%32 = call i64 @FUNC(i64 %6, i64 %5)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_6, label LBL_17
LBL_6:
store i32 0, i32* %31, align 4
%.pr = load i32, i32* %13, align 8
store i32 %.pr, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%35 = icmp eq i32 %.reload, 2
br i1 %35, label LBL_16, label LBL_8
LBL_8:
%36 = call i64 @FUNC(i64 %7, i64 8)
%37 = trunc i64 %36 to i32
%38 = add i64 %6, 12
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = urem i32 %37, 2
%41 = icmp eq i32 %40, 0
store i32 0, i32* %storemerge1.reg2mem
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = call i64 @FUNC(i64 %7, i64 24)
%phitmp = trunc i64 %42 to i32
store i32 %phitmp, i32* %storemerge1.reg2mem
br label LBL_10
LBL_10:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%43 = add i64 %6, 16
%44 = inttoptr i64 %43 to i32*
store i32 %storemerge1.reload, i32* %44, align 4
%45 = load i32, i32* %39, align 4
%46 = and i32 %45, 16
%47 = icmp eq i32 %46, 0
store i32 0, i32* %storemerge.reg2mem
br i1 %47, label LBL_12, label LBL_11
LBL_11:
%48 = call i64 @FUNC(i64 %7, i64 16)
%phitmp2 = trunc i64 %48 to i32
store i32 %phitmp2, i32* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%49 = add i64 %6, 20
%50 = inttoptr i64 %49 to i32*
store i32 %storemerge.reload, i32* %50, align 4
%51 = load i32, i32* %39, align 4
%52 = and i32 %51, 32
%53 = icmp eq i32 %52, 0
store i32 %51, i32* %.reg2mem3
br i1 %53, label LBL_14, label LBL_13
LBL_13:
%54 = call i64 @FUNC(i64 %7)
%.pre = load i32, i32* %39, align 4
store i32 %.pre, i32* %.reg2mem3
br label LBL_14
LBL_14:
%.reload4 = load i32, i32* %.reg2mem3
%55 = add i64 %6, 32
%56 = and i32 %.reload4, 64
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %7, i64 %57, i64 0, i64 %55, i64 %5)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %60, label LBL_15, label LBL_17
LBL_15:
%61 = call i64 @FUNC(i64 %7, i64 3)
br label LBL_16
LBL_16:
%62 = call i64 @FUNC(i64 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 6, 2, 3, 1, 0, 5, 4, 7, 8, 9 }
uselistorder i64 %6, { 2, 3, 4, 5, 0, 1, 6, 7, 8 }
uselistorder i64 %5, { 3, 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem3, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder i64 4294967295, { 0, 1, 3, 2 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 4, 3, 2, 1, 0 }
uselistorder label LBL_17, { 2, 0, 1, 3, 4 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | cliprdr_free_format_list_7334 | cliprdr_free_format_list | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%rdi.01.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_4, 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 = icmp eq i32 %4, 0
store i64 0, i64* %indvars.iv.reg2mem
store i64 %1, i64* %rdi.01.reg2mem
store i64* %arg1, i64** %.pre-phi.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = mul i64 %indvars.iv.reload, 8
%7 = add i64 %6, %rdi.01.reload
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
call void @free(i64* %10)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%11 = load i32, i32* %3, align 4
%12 = zext i32 %11 to i64
%13 = icmp ult i64 %indvars.iv.next, %12
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %9, i64* %rdi.01.reg2mem
store i64* %10, i64** %.pre-phi.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_3:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
call void @free(i64* %.pre-phi.reload)
store i64 0, i64* %arg1, align 8
store i32 0, i32* %3, align 4
store i64 %1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %3, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 3, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nlmsg_append_9282 | nlmsg_append | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg4 to i32
%2 = call i64 @FUNC(i64 %0, i64 %arg3, i32 %1)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 1, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = and i64 %arg4, 4294967295
%6 = inttoptr i64 %2 to i64*
%7 = trunc i64 %arg3 to i32
%8 = call i64* @memcpy(i64* %6, i64* %arg2, i32 %7)
%9 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %arg3, i64 %5)
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 | __dwc3_gadget_kick_transfer_13605 | __dwc3_gadget_kick_transfer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_14
LBL_1:
%7 = trunc i64 %1 to i32
%8 = call i64 @FUNC(i64 %2)
%9 = add i64 %2, 8
%10 = call i64 @FUNC(i64 %9)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = or i32 %7, 2
%14 = bitcast i64* %arg1 to i32*
store i32 %13, i32* %14, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_3:
%15 = urem i32 %7, 2
%16 = icmp eq i32 %15, 0
%17 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 16)
%18 = icmp eq i1 %16, false
br i1 %18, label LBL_6, label LBL_4
LBL_4:
%19 = add i64 %10, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
store i64 %22, i64* %sv_1, align 8
%23 = load i64, i64* %20, align 8
%24 = call i64 @FUNC(i64 %23)
%25 = add i64 %2, 20
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
store i32 3, i32* %sv_0.0.reg2mem
br i1 %31, label LBL_7, label LBL_5
LBL_5:
%32 = add i64 %2, 24
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = or i32 %34, 3
store i32 %35, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%36 = add i64 %2, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = or i32 %38, 4
store i32 %39, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%40 = zext i32 %sv_0.0.reload to i64
%41 = call i64 @FUNC(i64 %2, i64 %40, i64* nonnull %sv_1)
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_11, label LBL_8
LBL_8:
%45 = inttoptr i64 %10 to i64*
%46 = load i64, i64* %45, align 8
%47 = icmp eq i64 %46, 0
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = inttoptr i64 %46 to i64*
%49 = call i64* @memset(i64* %48, i32 0, i32 4)
br label LBL_10
LBL_10:
%50 = add i64 %2, 16
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i32 %52, -1
store i32 %53, i32* %51, align 4
%54 = call i64 @FUNC(i64 %2, i64 %10, i32 %42)
%55 = and i64 %41, 4294967295
store i64 %55, i64* %rax.0.reg2mem
br label LBL_14
LBL_11:
%56 = or i32 %7, 1
%57 = bitcast i64* %arg1 to i32*
store i32 %56, i32* %57, align 4
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_14, label LBL_12
LBL_12:
%58 = call i64 @FUNC(i64 %2)
%59 = trunc i64 %58 to i32
%60 = add i64 %2, 4
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = icmp eq i32 %59, 0
%63 = icmp eq i1 %62, false
store i64 0, i64* %rax.0.reg2mem
br i1 %63, label LBL_14, label LBL_13
LBL_13:
%64 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 2, 0, 3 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64 %2, { 5, 4, 2, 3, 6, 7, 0, 1, 9, 8, 10 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 6, 5, 4 }
uselistorder i32 3, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i32 0, { 2, 0, 3, 4, 1, 5, 6 }
uselistorder label LBL_14, { 2, 1, 0, 4, 5, 3 }
} | 0 |
BinRealVul | desc_get_buf_1401 | desc_get_buf | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i8
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = icmp eq i8 %3, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = and i64 %1, 4294967295
%13 = call i64 @FUNC(i64 %12)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%14 = add i64 %2, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
store i64 %18, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%19 = add i64 %2, 32
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp ugt i64 %storemerge.reload, %21
%23 = add i64 %2, 24
%24 = inttoptr i64 %23 to i64*
br i1 %22, label LBL_4, label LBL_5
LBL_4:
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25, i64 %storemerge.reload)
store i64 %26, i64* %24, align 8
store i64 %storemerge.reload, i64* %20, align 8
br label LBL_5
LBL_5:
%27 = load i64, i64* %24, align 8
%28 = add i64 %2, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = call i64 @FUNC(i64 %10, i64 %31, i64 %27, i64 %storemerge.reload)
%33 = load i64, i64* %24, align 8
ret i64 %33
uselistorder i64 %storemerge.reload, { 3, 2, 1, 0 }
uselistorder i64 %2, { 0, 2, 1, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | proc_pid_follow_link_12184 | proc_pid_follow_link | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64* inttoptr (i32 -13 to i64*), i64** %sv_0.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %1, 4294967295
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
store i64* %7, i64** %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%10 = ptrtoint i64* %sv_0.0.reload to i64
%11 = and i64 %10, 4294967295
%12 = call i64 @FUNC(i64 %11)
ret i64 %12
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vc1_inv_trans_4x4_dc_c_3303 | vc1_inv_trans_4x4_dc_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.04.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = trunc i64 %1 to i32
%4 = mul i32 %3, 17
%5 = add i32 %4, 4
%6 = ashr i32 %5, 3
%7 = mul i32 %6, 17
%8 = add i32 %7, 64
%9 = ashr i32 %8, 7
%10 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge5.reg2mem
store i64 %2, i64* %sv_0.04.reg2mem
br label LBL_1
LBL_1:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%11 = inttoptr i64 %sv_0.04.reload to i8*
%12 = load i8, i8* %11, align 1
%13 = zext i8 %12 to i32
%14 = add nsw i32 %9, %13
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i8
store i8 %17, i8* %11, align 1
%18 = add i64 %sv_0.04.reload, 1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = zext i8 %20 to i32
%22 = add nsw i32 %9, %21
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i8
store i8 %25, i8* %19, align 1
%26 = add i64 %sv_0.04.reload, 2
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i32
%30 = add nsw i32 %9, %29
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i8
store i8 %33, i8* %27, align 1
%34 = add i64 %sv_0.04.reload, 3
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = zext i8 %36 to i32
%38 = add nsw i32 %9, %37
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %39)
%41 = trunc i64 %40 to i8
store i8 %41, i8* %35, align 1
%42 = add i64 %sv_0.04.reload, %10
%43 = add nuw nsw i32 %storemerge5.reload, 1
%exitcond = icmp eq i32 %43, 4
store i32 %43, i32* %storemerge5.reg2mem
store i64 %42, i64* %sv_0.04.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %10
uselistorder i64 %sv_0.04.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %10, { 1, 0 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_clip_uint8, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | convert_temporary_dialog_3734 | convert_temporary_dialog | define i64 @FUNC(i64* %arg1) 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 i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %0, i64 %3, i64 256)
%5 = load i64, i64* @gv_0, align 8
%6 = mul i64 %4, 4
%7 = and i64 %6, 17179869180
%8 = add i64 %7, %5
%9 = call i64 @FUNC(i64 %8)
%10 = and i64 %4, 4294967295
%11 = call i64 @FUNC(i64 %0, i64 %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i64 %11, i64 %10)
%14 = call i64 @FUNC(i64 %0, i64 %10)
%15 = load i64, i64* @gv_0, align 8
%16 = add i64 %15, %7
%17 = call i64 @FUNC(i64 %16)
store i64 1, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%18 = load i64, i64* @gv_0, align 8
%19 = add i64 %18, %7
%20 = call i64 @FUNC(i64 %19)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @lock_release, { 1, 0 }
} | 0 |
BinRealVul | snd_hda_input_mux_info_17776 | snd_hda_input_mux_info | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = bitcast i64* %arg2 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 1, i32* %3, align 4
%4 = bitcast i64* %rdi to i32*
%5 = load i32, i32* %4, align 8
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %0, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = load i32, i32* %4, align 8
%12 = icmp ult i32 %10, %11
%13 = add i32 %11, -1
%spec.select = select i1 %12, i32 %10, i32 %13
%14 = ptrtoint i32* %arg1 to i64
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = zext i32 %spec.select to i64
%19 = mul i64 %18, 32
%20 = add i64 %19, %17
%21 = add i64 %0, 16
%22 = inttoptr i64 %21 to i8*
%23 = inttoptr i64 %20 to i8*
%24 = call i8* @strcpy(i8* %22, i8* %23)
ret i64 0
} | 1 |
BinRealVul | vba_read_project_strings_5664 | vba_read_project_strings | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.015.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64
%sv_0.016.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_1.043.reg2mem = alloca i64
%sv_2.044.reg2mem = alloca i32
%sv_0.045.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_3 = alloca i32, align 4
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = trunc i64 %arg2 to i32
%5 = and i64 %3, 4294967295
%6 = bitcast i32* %sv_3 to i64*
%7 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i32 0, i32* %sv_0.015.reg2mem
br i1 %9, label LBL_25, label LBL_1
LBL_1:
%10 = trunc i64 %3 to i32
%11 = ptrtoint i32* %sv_3 to i64
store i32 0, i32* %sv_0.045.reg2mem
store i32 0, i32* %sv_2.044.reg2mem
store i64 0, i64* %sv_1.043.reg2mem
br label LBL_2
LBL_2:
%sv_1.043.reload = load i64, i64* %sv_1.043.reg2mem
%sv_0.045.reload = load i32, i32* %sv_0.045.reg2mem
%12 = load i32, i32* %sv_3, align 4
%13 = trunc i32 %12 to i16
%14 = icmp ult i16 %13, 6
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i32 @lseek(i32 %10, i32 -2, i32 1)
store i32 %sv_0.045.reload, i32* %sv_0.016.reg2mem
store i64 %sv_1.043.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_4:
%sv_2.044.reload = load i32, i32* %sv_2.044.reg2mem
%16 = trunc i32 %sv_2.044.reload to i16
%17 = icmp ult i16 %16, %13
%18 = icmp eq i1 %17, false
store i64 %sv_1.043.reload, i64* %sv_1.1.reg2mem
store i32 %sv_2.044.reload, i32* %sv_2.1.reg2mem
br i1 %18, label LBL_9, label LBL_5
LBL_5:
%19 = urem i32 %12, 65536
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %sv_1.043.reload, i64 %20)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_8, label LBL_6
LBL_6:
%24 = icmp eq i64 %sv_1.043.reload, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %24, label LBL_26, label LBL_7
LBL_7:
%25 = inttoptr i64 %sv_1.043.reload to i64*
call void @free(i64* %25)
store i64 0, i64* %storemerge.reg2mem
br label LBL_26
LBL_8:
%26 = load i32, i32* %sv_3, align 4
%sext7 = mul i32 %26, 65536
%27 = ashr exact i32 %sext7, 16
store i64 %21, i64* %sv_1.1.reg2mem
store i32 %27, i32* %sv_2.1.reg2mem
br label LBL_9
LBL_9:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%28 = call i32 @lseek(i32 %10, i32 0, i32 1)
%29 = load i32, i32* %sv_3, align 4
%30 = urem i32 %29, 65536
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %5, i64 %sv_1.1.reload, i64 %31)
%33 = load i32, i32* %sv_3, align 4
%34 = urem i32 %33, 65536
%35 = trunc i64 %32 to i32
%36 = icmp eq i32 %34, %35
%37 = zext i32 %34 to i64
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %sv_1.1.reload, i64 %37, i64 %sv_1.1.reload, i64 %2, i64 %1)
%39 = call i32 @lseek(i32 %10, i32 %28, i32 0)
store i32 %sv_0.045.reload, i32* %sv_0.016.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_11:
%40 = call i64 @FUNC(i64 %sv_1.1.reload, i64 %37, i32 %4)
%41 = icmp eq i64 %40, 0
%storemerge8 = select i1 %41, i64 ptrtoint ([7 x i8]* @gv_1 to i64), i64 %40
%42 = load i32, i32* %sv_3, align 4
%43 = urem i32 %42, 65536
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i64 %44, i64 %storemerge8, i64 %44, i64 %2, i64 %1)
br i1 %41, label LBL_22, label LBL_12
LBL_12:
%46 = inttoptr i64 %40 to i64*
%47 = call i32 @memcmp(i64* bitcast ([3 x i8]* @gv_3 to i64*), i64* %46, i32 2)
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_14, label LBL_13
LBL_13:
%50 = add i64 %40, 2
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = sext i8 %52 to i32
%54 = call i8* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i32 %53)
%55 = icmp eq i8* %54, null
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = load i32, i32* %sv_3, align 4
%58 = urem i32 %57, 65536
%59 = sub nuw nsw i32 -2, %58
%60 = call i32 @lseek(i32 %10, i32 %59, i32 1)
call void @free(i64* %46)
store i32 %sv_0.045.reload, i32* %sv_0.016.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_15:
call void @free(i64* %46)
%61 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_18, label LBL_16
LBL_16:
%65 = icmp eq i64 %sv_1.1.reload, 0
store i32 %sv_0.045.reload, i32* %sv_0.015.reg2mem
br i1 %65, label LBL_25, label LBL_17
LBL_17:
%66 = inttoptr i64 %sv_1.1.reload to i64*
call void @free(i64* %66)
store i32 %sv_0.045.reload, i32* %sv_0.015.reg2mem
br label LBL_25
LBL_18:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%67 = load i32, i32* %sv_3, align 4
%68 = trunc i32 %67 to i16
switch i16 %68, label LBL_19 [
i16 0, label LBL_21
i16 -1, label LBL_21
]
LBL_19:
%69 = call i32 @lseek(i32 %10, i32 -2, i32 1)
br label LBL_20
LBL_20:
%70 = add i32 %sv_0.045.reload, 1
%71 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
store i32 %70, i32* %sv_0.045.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.044.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.043.reg2mem
store i32 %70, i32* %sv_0.016.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br i1 %73, label LBL_23, label LBL_2
LBL_21:
%74 = call i32 @lseek(i32 %10, i32 10, i32 1)
%75 = sext i32 %74 to i64
%76 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i64 %75, i64 1, i64 %11, i64 %2, i64 %1)
%77 = call i64 @FUNC(i64 %5)
br label LBL_20
LBL_22:
%78 = load i32, i32* %sv_3, align 4
%79 = urem i32 %78, 65536
%80 = sub nuw nsw i32 -2, %79
%81 = call i32 @lseek(i32 %10, i32 %80, i32 1)
store i32 %sv_0.045.reload, i32* %sv_0.016.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_23:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_0.016.reload = load i32, i32* %sv_0.016.reg2mem
%82 = icmp eq i64 %sv_1.2.reload, 0
%83 = icmp eq i1 %82, false
store i32 %sv_0.016.reload, i32* %sv_0.015.reg2mem
br i1 %83, label LBL_24, label LBL_25
LBL_24:
%84 = inttoptr i64 %sv_1.2.reload to i64*
call void @free(i64* %84)
store i32 %sv_0.016.reload, i32* %sv_0.015.reg2mem
br label LBL_25
LBL_25:
%sv_0.015.reload = load i32, i32* %sv_0.015.reg2mem
%85 = zext i32 %sv_0.015.reload to i64
store i64 %85, i64* %storemerge.reg2mem
br label LBL_26
LBL_26:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_1.2.reload, { 1, 0 }
uselistorder i64* %46, { 1, 0, 2 }
uselistorder i64 %44, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 1, 0, 10, 8, 9, 3, 5, 2, 7, 6, 4 }
uselistorder i32 %sv_0.045.reload, { 2, 6, 1, 0, 4, 3, 5 }
uselistorder i64 %sv_1.043.reload, { 3, 4, 2, 1, 0 }
uselistorder i32 %10, { 1, 4, 5, 2, 3, 6, 0 }
uselistorder i64* %6, { 2, 1, 0 }
uselistorder i64 %5, { 1, 4, 2, 3, 0 }
uselistorder i32 %4, { 3, 1, 2, 0 }
uselistorder i32* %sv_3, { 0, 8, 6, 5, 4, 3, 2, 1, 7, 9 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %sv_0.045.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.044.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.043.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.016.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i32* %sv_0.015.reg2mem, { 0, 2, 3, 5, 4, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @cli_dbgmsg, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 0 }
uselistorder i32 65536, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i32 (i32, i32, i32)* @lseek, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i32 0, { 8, 6, 7, 4, 5, 1, 2, 0, 3 }
uselistorder i64 (i64, i64*, i32)* @read_uint16, { 1, 2, 0 }
uselistorder i32 1, { 13, 14, 20, 15, 16, 17, 18, 19, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_26, { 2, 1, 0 }
uselistorder label LBL_25, { 4, 3, 1, 2, 0 }
uselistorder label LBL_23, { 1, 0, 2, 3, 4 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | del_timer_12862 | del_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%7 = call i64 @FUNC(i64 %0, i64 %6, i64 1)
%8 = load i64, i64* %sv_1, align 8
%9 = call i64 @FUNC(i64 %6, i64 %8)
%phitmp = and i64 %7, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64 1, { 2, 0, 1 }
} | 1 |
BinRealVul | helper_ldmxcsr_216 | helper_ldmxcsr | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
ret i64 %2
} | 0 |
BinRealVul | virtio_scsi_handle_cmd_req_prepare_2017 | virtio_scsi_handle_cmd_req_prepare | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i32 %7, 4
%9 = zext i32 %8 to i64
%10 = add i64 %1, 4
%11 = and i64 %10, 4294967295
%12 = call i64 @FUNC(i64 %3, i64 %11, i64 %9)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_1
LBL_1:
%16 = icmp eq i32 %13, -95
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_3:
%19 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%20 = and i64 %2, 4294967295
%21 = call i64 @FUNC(i64 %4, i64 %20)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = add i64 %3, 12
%25 = inttoptr i64 %24 to i32*
store i32 1, i32* %25, align 4
%26 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_6:
%27 = add i64 %4, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%31 = inttoptr i64 %21 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32)
%34 = add i64 %4, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %33, %36
br i1 %37, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @gv_1, i64 0, i64 0), i32 109, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0))
br label LBL_9
LBL_9:
%38 = add i64 %3, 8
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = call i64 @FUNC(i64 %20)
%42 = and i64 %41, 4294967295
%43 = add i64 %3, 4
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = zext i32 %40 to i64
%47 = call i64 @FUNC(i64 %21, i32 %45, i64 %42, i64 %46, i64 %3)
%48 = add i64 %3, 16
%49 = inttoptr i64 %48 to i64*
store i64 %47, i64* %49, align 8
%50 = inttoptr i64 %47 to i32*
%51 = load i32, i32* %50, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_13, label LBL_10
LBL_10:
%53 = add i64 %3, 24
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %51, %55
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_12, label LBL_11
LBL_11:
%58 = add i64 %47, 4
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = add i64 %3, 28
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = icmp ugt i32 %60, %63
br i1 %64, label LBL_12, label LBL_13
LBL_12:
%65 = add i64 %3, 12
%66 = inttoptr i64 %65 to i32*
store i32 2, i32* %66, align 4
%67 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%68 = call i64 @FUNC(i64 %47)
%69 = inttoptr i64 %21 to i64*
%70 = load i64, i64* %69, align 8
%71 = call i64 @FUNC(i64 %70)
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %47, { 0, 2, 1, 3 }
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %3, { 3, 4, 6, 5, 7, 9, 8, 10, 1, 2, 0, 11 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @virtio_scsi_complete_cmd_req, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1, 3 }
uselistorder i64 4, { 1, 2, 0, 3 }
uselistorder label LBL_14, { 2, 3, 4, 1, 0 }
} | 0 |
BinRealVul | get_busid_idx_13350 | get_busid_idx | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul i64 %indvars.iv.reload, 32
%2 = add i64 %1, ptrtoint (i8** @gv_0 to i64)
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 8
%5 = icmp eq i8 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i32 @strncmp(i8* %3, i8* %0, i32 32)
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 %indvars.iv.reload, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_4
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%9 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_1, label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = and i64 %sv_0.0.reload, 4294967295
ret i64 %10
uselistorder i64 %indvars.iv.reload, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | __net_get_random_once_11050 | __net_get_random_once | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 4210749, i64 %2)
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64* nonnull @gv_0, i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = and i64 %arg2, 4294967295
%8 = ptrtoint i64* %arg1 to i64
%9 = call i64 @FUNC(i64 %8, i64 %7)
store i8 1, i8* %arg3, align 1
%10 = call i64 @FUNC(i64* nonnull @gv_0, i64 %2)
%11 = ptrtoint i8* %arg4 to i64
%12 = call i64 @FUNC(i64 %11)
store i64 1, 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* %0, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64*, i64)* @spin_unlock_irqrestore, { 1, 0 }
} | 1 |
BinRealVul | alloc_frame_buffer_15796 | alloc_frame_buffer | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem9 = alloca i32
%.reg2mem = alloca i32
%storemerge.in.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = icmp eq i64* %arg1, null
store i64 %4, i64* %rdi.1.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%6 = icmp eq i64* %arg2, null
store i64 %3, i64* %rsi.0.reg2mem
store i64 %4, i64* %rdi.0.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 67, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([19 x i8]* @gv_2 to i64), i64* %rcx.0.reg2mem
store i64 ptrtoint ([52 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem
store i64 ptrtoint ([32 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%7 = add i64 %rdi.0.reload, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %10, label LBL_6, label LBL_4
LBL_4:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%11 = sext i32 %9 to i64
%12 = call i64 @FUNC(i64 %11)
store i64 %12, i64* %arg2, align 8
%13 = icmp eq i64 %rsi.0.reload, 0
%14 = icmp eq i1 %13, false
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %11, i64* %rdi.1.reg2mem
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %11, i64 0, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_3, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_6:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%16 = add i64 %4, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%.off = add i32 %18, -1
%switch = icmp ult i32 %.off, 3
br i1 %switch, label LBL_8, label LBL_7
LBL_7:
%19 = call i64 @FUNC(i64 %rdi.1.reload, i64 %3)
store i64 %19, i64* %storemerge.in.reg2mem
br label LBL_9
LBL_8:
%20 = call i64 @FUNC(i64 %rdi.1.reload, i64 %3)
store i64 %20, i64* %storemerge.in.reg2mem
br label LBL_9
LBL_9:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%21 = icmp slt i32 %storemerge, 0
%.pre = add i64 %3, 8
%.pre1 = inttoptr i64 %.pre to i32*
%.pre8 = load i32, i32* %.pre1, align 4
store i32 %.pre8, i32* %.reg2mem
br i1 %21, label LBL_12, label LBL_10
LBL_10:
%22 = icmp eq i32 %.pre8, 0
store i32 0, i32* %.reg2mem
br i1 %22, label LBL_12, label LBL_11
LBL_11:
%23 = add i64 %3, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
store i32 %.pre8, i32* %.reg2mem
br i1 %27, label LBL_13, label LBL_12
LBL_12:
%.reload = load i32, i32* %.reg2mem
%28 = add i64 %3, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = zext i32 %.reload to i64
%32 = and i64 %storemerge.in.reload, 4294967295
%33 = call i64 @FUNC(i64 %rdi.1.reload, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_4, i64 0, i64 0), i64 %32, i64 %31, i64 %30)
%34 = call i64 @FUNC(i64 %3)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%35 = add i64 %4, 12
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_13.LBL_18_crit_edge, label LBL_15
LBL_14:
%.pre3 = add i64 %3, 44
%.pre5 = inttoptr i64 %.pre3 to i32*
%.pre7 = load i32, i32* %.pre5, align 4
store i32 %.pre7, i32* %.reg2mem9
br label LBL_18
LBL_15:
%39 = add i64 %3, 40
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %37, %41
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_17, label LBL_16
LBL_16:
%44 = add i64 %4, 16
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i64 %3, 44
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = icmp eq i32 %46, %49
store i32 %46, i32* %.reg2mem9
br i1 %50, label LBL_18, label LBL_17
LBL_17:
%51 = call i64 @FUNC(i64 %rdi.1.reload, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_5, i64 0, i64 0), i64 %rcx.1.reload, i64 %2, i64 %1)
%52 = call i64 @FUNC(i64 %4, i64 %3)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%.reload10 = load i32, i32* %.reg2mem9
%53 = add i64 %3, 48
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %.reload10, %55
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_20, label LBL_19
LBL_19:
%57 = call i64 @FUNC(i64 %rdi.1.reload, i64 0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_6, i64 0, i64 0), i64 %rcx.1.reload, i64 %2, i64 %1)
%58 = call i64 @FUNC(i64 %4, i64 %3)
store i64 4294967295, 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 %.pre8, { 1, 2, 0 }
uselistorder i64 %storemerge.in.reload, { 1, 0 }
uselistorder i64 %rdi.1.reload, { 2, 3, 1, 0, 4 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %rcx.0.reload, { 2, 0, 1 }
uselistorder i64 %4, { 3, 2, 5, 4, 6, 1, 0 }
uselistorder i64 %3, { 5, 6, 4, 9, 8, 1, 10, 11, 7, 2, 12, 3, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 5, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @free_frame_buffer, { 1, 0 }
uselistorder i64 44, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder [19 x i8]* @gv_2, { 1, 0 }
uselistorder [52 x i8]* @gv_1, { 1, 0 }
uselistorder i64 0, { 17, 3, 4, 0, 18, 5, 6, 19, 7, 8, 22, 20, 9, 10, 23, 11, 12, 13, 14, 15, 16, 1, 2, 24, 21 }
uselistorder [32 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_20, { 1, 0, 2, 3, 4 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
} | 1 |
BinRealVul | x25_state1_machine_11542 | x25_state1_machine | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = trunc i64 %arg3 to i32
switch i32 %2, label LBL_9 [
i32 1, label LBL_1
i32 2, label LBL_8
]
LBL_1:
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %1)
%5 = inttoptr i64 %3 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %3, 12
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %3, 16
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %3, 20
%15 = inttoptr i64 %14 to i32*
store i32 3, i32* %15, align 4
%16 = bitcast i64* %arg1 to i32*
store i32 1, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0, i64 5)
%18 = bitcast i32* %sv_0 to i64*
%19 = call i64 @FUNC(i64 %0, i64* nonnull %18, i64* nonnull %18)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %sv_0, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label LBL_3, label LBL_2
LBL_2:
%22 = and i64 %19, 4294967295
%23 = call i64 @FUNC(i64 %0, i64 %22)
br label LBL_3
LBL_3:
%24 = add i64 %3, 292
%25 = add i64 %3, 288
%26 = add i64 %3, 284
%27 = call i64 @FUNC(i64 %0, i64 %26, i64 %25, i64 %24)
%28 = trunc i64 %27 to i32
store i32 %28, i32* %sv_0, align 4
%29 = icmp slt i32 %28, 1
br i1 %29, label LBL_5, label LBL_4
LBL_4:
%30 = and i64 %27, 4294967295
%31 = call i64 @FUNC(i64 %0, i64 %30)
br label LBL_5
LBL_5:
%32 = bitcast i64* %rsi to i32*
%33 = load i32, i32* %32, align 8
%34 = icmp slt i32 %33, 1
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = add i64 %3, 24
%36 = call i64 @FUNC(i64 %0, i64 %35, i32 %33)
%37 = add i64 %3, 280
%38 = inttoptr i64 %37 to i32*
store i32 %33, i32* %38, align 4
br label LBL_7
LBL_7:
%39 = call i64 @FUNC(i64 %1, i64 0)
br label LBL_9
LBL_8:
%40 = call i64 @FUNC(i64 %1, i64 3)
%41 = add i64 %0, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = add i64 %43, 4
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = zext i8 %46 to i64
%48 = add i64 %43, 3
%49 = inttoptr i64 %48 to i8*
%50 = load i8, i8* %49, align 1
%51 = zext i8 %50 to i64
%52 = call i64 @FUNC(i64 %1, i64 111, i64 %51, i64 %47)
br label LBL_9
LBL_9:
ret i64 0
uselistorder i32 %33, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 4, 3, 2, 5, 6, 7, 8, 9, 10 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %1, { 0, 1, 2, 4, 3 }
uselistorder i64 %0, { 0, 3, 2, 4, 1, 6, 5 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64)* @skb_pull, { 2, 1, 0 }
uselistorder label LBL_9, { 2, 1, 0 }
} | 1 |
BinRealVul | virtio_reset_15341 | virtio_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC()
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
br label LBL_3
LBL_2:
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
br label LBL_3
LBL_3:
%10 = add i64 %0, 4
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %0, 12
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 20
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = call i64 @FUNC(i64 %0, i64 0)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = mul nuw nsw i64 %indvars.iv.reload, 44
%22 = add i64 %21, %0
%23 = add i64 %22, 24
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = add i64 %22, 28
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = add i64 %22, 32
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
%29 = add i64 %22, 44
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = add i64 %22, 48
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %22, 52
%34 = inttoptr i64 %33 to i32*
store i32 0, i32* %34, align 4
%35 = call i64 @FUNC(i64 %0, i64 %indvars.iv.reload, i64 0)
%36 = add i64 %22, 56
%37 = inttoptr i64 %36 to i32*
store i32 0, i32* %37, align 4
%38 = add i64 %22, 60
%39 = inttoptr i64 %38 to i8*
store i8 0, i8* %39, align 1
%40 = add i64 %22, 61
%41 = inttoptr i64 %40 to i8*
store i8 1, i8* %41, align 1
%42 = add i64 %22, 40
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %22, 36
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = add i64 %22, 64
%48 = inttoptr i64 %47 to i32*
store i32 0, i32* %48, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
ret i64 %47
uselistorder i64 %22, { 0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 44, { 1, 0 }
} | 1 |
BinRealVul | ff_vc2enc_free_transforms_783 | ff_vc2enc_free_transforms | 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 = sub i64 %0, %3
%5 = call i64 @FUNC(i64 %4)
store i64 0, i64* %arg1, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | usage_502 | usage | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = call i32 @fwrite(i64* bitcast ([68 x i8]* @gv_1 to i64*), i32 1, i32 67, %_IO_FILE* %0)
%2 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%3 = call i32 @fwrite(i64* bitcast ([115 x i8]* @gv_2 to i64*), i32 1, i32 114, %_IO_FILE* %2)
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = call i32 @fwrite(i64* bitcast ([32 x i8]* @gv_3 to i64*), i32 1, i32 31, %_IO_FILE* %4)
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 @fwrite(i64* bitcast ([38 x i8]* @gv_4 to i64*), i32 1, i32 37, %_IO_FILE* %6)
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = call i32 @fwrite(i64* bitcast ([51 x i8]* @gv_5 to i64*), i32 1, i32 50, %_IO_FILE* %8)
%10 = and i64 %arg1, 4294967295
ret i64 %10
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 4, 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | cirrus_update_bank_ptr_9391 | cirrus_update_bank_ptr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%.reg2mem12 = alloca i64
%.reg2mem10 = alloca i32*
%sv_0.06.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i32
%.reg2mem8 = alloca i64
%.reg2mem = alloca i32*
%storemerge3.in.in.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = add i64 %0, 11
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = urem i8 %4, 2
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add nsw i64 %1, 9
%8 = and i64 %7, 4294967295
%9 = add i64 %8, %0
store i64 %9, i64* %storemerge3.in.in.in.reg2mem
br label LBL_3
LBL_2:
%10 = add i64 %0, 9
store i64 %10, i64* %storemerge3.in.in.in.reg2mem
br label LBL_3
LBL_3:
%storemerge3.in.in.in.reload = load i64, i64* %storemerge3.in.in.in.reg2mem
%storemerge3.in.in = inttoptr i64 %storemerge3.in.in.in.reload to i8*
%storemerge3.in = load i8, i8* %storemerge3.in.in, align 1
%storemerge3 = zext i8 %storemerge3.in to i32
%11 = and i8 %4, 32
%12 = icmp eq i8 %11, 0
%storemerge2.v = select i1 %12, i32 12, i32 14
%storemerge2 = shl nuw nsw i32 %storemerge3, %storemerge2.v
%13 = add i64 %0, 256
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ugt i32 %15, %storemerge2
%17 = sub i32 %15, %storemerge2
%spec.select = select i1 %16, i32 %17, i32 0
%18 = icmp eq i1 %6, false
%19 = trunc i64 %1 to i32
%20 = icmp eq i32 %19, 0
%or.cond = or i1 %20, %18
br i1 %or.cond, label LBL_7, label LBL_4
LBL_4:
%21 = icmp ult i32 %spec.select, 32769
br i1 %21, label LBL_5, label LBL_55
LBL_5:
%22 = mul i64 %arg2, 4
%23 = and i64 %22, 17179869180
%24 = add i64 %23, %0
%25 = add i64 %24, 260
%26 = inttoptr i64 %25 to i32*
store i32* %26, i32** %.reg2mem10
store i64 %24, i64* %.reg2mem12
br label LBL_9
LBL_6:
%27 = add nuw nsw i32 %storemerge2, 32768
%28 = add i32 %spec.select, -32768
%29 = mul i64 %arg2, 4
%30 = and i64 %29, 17179869180
%31 = add i64 %30, %0
%32 = add i64 %31, 260
%33 = inttoptr i64 %32 to i32*
store i32* %33, i32** %.reg2mem
store i64 %31, i64* %.reg2mem8
store i32 %28, i32* %sv_1.07.reg2mem
store i32 %27, i32* %sv_0.06.reg2mem
br label LBL_8
LBL_7:
%34 = icmp eq i32 %spec.select, 0
%35 = mul i64 %arg2, 4
%36 = and i64 %35, 17179869180
%37 = add i64 %36, %0
%38 = add i64 %37, 260
%39 = inttoptr i64 %38 to i32*
store i32* %39, i32** %.reg2mem
store i64 %37, i64* %.reg2mem8
store i32 %17, i32* %sv_1.07.reg2mem
store i32 %storemerge2, i32* %sv_0.06.reg2mem
store i32* %39, i32** %.reg2mem10
store i64 %37, i64* %.reg2mem12
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%sv_1.07.reload = load i32, i32* %sv_1.07.reg2mem
%.reload9 = load i64, i64* %.reg2mem8
%.reload = load i32*, i32** %.reg2mem
store i32 %sv_0.06.reload, i32* %.reload, align 4
%40 = add i64 %.reload9, 268
%41 = inttoptr i64 %40 to i32*
store i32 %sv_1.07.reload, i32* %41, align 4
br label LBL_10
LBL_9:
%.reload13 = load i64, i64* %.reg2mem12
%.reload11 = load i32*, i32** %.reg2mem10
store i32 0, i32* %.reload11, align 4
%42 = add i64 %.reload13, 268
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
br label LBL_10
LBL_10:
ret i64 %0
uselistorder i32 %spec.select, { 0, 2, 1 }
uselistorder i32 %15, { 1, 0 }
uselistorder i32 %storemerge2, { 0, 3, 2, 1 }
uselistorder i8 %4, { 1, 0 }
uselistorder i64 %0, { 4, 0, 2, 1, 5, 6, 3, 7 }
uselistorder i64* %storemerge3.in.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64 260, { 2, 0, 1 }
uselistorder i64 17179869180, { 2, 0, 1 }
uselistorder i32 0, { 2, 3, 4, 0, 1 }
uselistorder i64 9, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | dev_new_17809 | dev_new | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = call i64* @malloc(i32 600)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%3 = urem i64 %arg2, 2
%4 = icmp eq i64 %3, 0
%. = select i1 %4, i64 ptrtoint (i64* @gv_1 to i64), i64 ptrtoint (i32** @gv_2 to i64)
%5 = inttoptr i64 %. to i32*
%6 = load i32, i32* %5, align 8
%7 = icmp eq i32 %6, 10
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_3
LBL_3:
%9 = load i32, i32* @gv_3, align 4
%10 = icmp slt i32 %9, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_8, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_5:
%12 = bitcast i64* %0 to i32*
%13 = add i32 %6, 1
store i32 %13, i32* %5, align 8
%14 = add i32 %6, 10
%spec.select = select i1 %4, i32 %6, i32 %14
store i32 %spec.select, i32* %12, align 4
%15 = ptrtoint i64* %0 to i64
%16 = add i64 %15, 576
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = ptrtoint i8* %arg1 to i64
%19 = add i64 %15, 8
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = trunc i64 %arg2 to i32
%22 = add i64 %15, 16
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %15, 584
%25 = call i64 @FUNC(i64 %24, i64 16, i64 0, i64 0)
%26 = add i64 %15, 592
%27 = call i64 @FUNC(i64 %26, i64 16, i64 0, i64 0)
%28 = trunc i64 %arg3 to i32
%29 = add i64 %15, 20
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = trunc i64 %arg4 to i32
%32 = add i64 %15, 24
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = trunc i64 %arg5 to i32
%35 = add i64 %15, 28
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = trunc i64 %arg6 to i32
%38 = add i64 %15, 32
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %15, 36
%41 = inttoptr i64 %40 to i32*
store i32 0, i32* %41, align 4
%42 = add i64 %15, 40
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
%44 = add i64 %15, 44
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%46 = mul i64 %indvars.iv.reload, 64
%47 = add i64 %46, %15
%48 = add i64 %47, 48
%49 = inttoptr i64 %48 to i32*
%50 = trunc i64 %indvars.iv.reload to i32
store i32 %50, i32* %49, align 4
%51 = add i64 %47, 56
%52 = inttoptr i64 %51 to i64*
store i64 0, i64* %52, align 8
%53 = add i64 %47, 64
%54 = inttoptr i64 %53 to i32*
store i32 127, i32* %54, align 4
%55 = add i64 %47, 68
%56 = inttoptr i64 %55 to i32*
store i32 0, i32* %56, align 4
%57 = load i32, i32* %45, align 4
%58 = add i32 %57, 1
store i32 %58, i32* %45, align 4
%59 = add i64 %47, 72
%60 = inttoptr i64 %59 to i32*
store i32 %57, i32* %60, align 4
%61 = add i64 %47, 76
%62 = inttoptr i64 %61 to i8*
store i8 0, i8* %62, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%63 = add i64 %15, 560
%64 = inttoptr i64 %63 to i32*
store i32 0, i32* %64, align 4
%65 = add i64 %15, 564
%66 = inttoptr i64 %65 to i32*
store i32 1, i32* %66, align 4
%67 = load i64, i64* @gv_5, align 8
%68 = add i64 %15, 568
%69 = inttoptr i64 %68 to i64*
store i64 %67, i64* %69, align 8
store i64 %15, i64* @gv_5, align 8
store i64 %15, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %47, { 3, 2, 1, 0, 4, 5 }
uselistorder i32* %45, { 1, 0, 2 }
uselistorder i64 %15, { 0, 2, 3, 4, 5, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }
uselistorder i64* %0, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @aparams_init, { 1, 0 }
uselistorder i32 0, { 2, 1, 3, 4, 5, 0 }
uselistorder i32 1, { 7, 3, 4, 5, 6, 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
BinRealVul | tg3_bmcr_reset_8187 | tg3_bmcr_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem12 = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
store i32 32768, i32* %sv_0, align 4
%1 = call i64 @FUNC(i64 %0, i64 0, i32 32768)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i32 4999, i32* %.reg2mem
store i64 4294967280, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 0, i32* nonnull %sv_0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 4294967280, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_6
LBL_2:
%.reload = load i32, i32* %.reg2mem
%7 = load i32, i32* %sv_0, align 4
%8 = trunc i32 %7 to i16
%9 = icmp sgt i16 %8, -1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 40)
store i32 %.reload, i32* %.reg2mem12
br label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64 10)
%13 = add i32 %.reload, -1
%14 = icmp eq i32 %.reload, 0
%15 = icmp eq i1 %14, false
store i32 %13, i32* %.reg2mem
store i32 %13, i32* %.reg2mem12
br i1 %15, label LBL_1, label LBL_5
LBL_5:
%.reload13 = load i32, i32* %.reg2mem12
%16 = icmp slt i32 %.reload13, 0
%17 = icmp eq i1 %16, false
%. = select i1 %17, i64 0, i64 4294967280
store i64 %., i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload, { 2, 1, 0 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @udelay, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64 4294967280, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 0, 3, 4 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | xen_host_pci_config_open_210 | xen_host_pci_config_open | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0, i64 4096)
%4 = bitcast i64* %sv_0 to i8*
%5 = call i32 (i8*, i32, ...) @open(i8* nonnull %4, i32 2)
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
%7 = trunc i64 %1 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i32* @__errno_location()
%11 = load i32, i32* %10, align 4
%12 = sub i32 0, %11
%13 = zext i32 %12 to i64
store i64 %13, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | decode_wdlt_18370 | decode_wdlt | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
%.in36.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge12.lcssa.reg2mem = alloca i32
%storemerge12.in.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.019.reg2mem = alloca i64
%storemerge1220.reg2mem = alloca i32
%sv_1.124.reg2mem = alloca i64
%.in.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = 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_21, 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_21
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 i64 %8, i64* %sv_1.124.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_21
LBL_4:
%sv_1.124.reload = load i64, i64* %sv_1.124.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%17 = call i64 @FUNC(i64 %0)
%storemerge1218 = trunc i64 %17 to i32
%18 = and i32 %storemerge1218, 49152
%19 = icmp eq i32 %18, 49152
store i32 %storemerge1218, i32* %storemerge1220.reg2mem
store i64 %sv_1.124.reload, i64* %sv_1.019.reg2mem
store i64 %sv_1.124.reload, i64* %sv_1.0.lcssa.reg2mem
store i64 %17, i64* %storemerge12.in.lcssa.reg2mem
store i32 %storemerge1218, i32* %storemerge12.lcssa.reg2mem
br i1 %19, label LBL_5, label LBL_7
LBL_5:
%sv_1.019.reload = load i64, i64* %sv_1.019.reg2mem
%storemerge1220.reload = load i32, i32* %storemerge1220.reg2mem
%sext10 = mul i32 %storemerge1220.reload, 65536
%20 = ashr exact i32 %sext10, 16
%21 = mul i32 %13, %20
%22 = sub i64 %11, %sv_1.019.reload
%23 = zext i32 %21 to i64
%24 = icmp sgt i64 %22, %23
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %24, label LBL_6, label LBL_21
LBL_6:
%25 = add i64 %sv_1.019.reload, %23
%26 = call i64 @FUNC(i64 %0)
%storemerge12 = trunc i64 %26 to i32
%27 = and i32 %storemerge12, 49152
%28 = icmp eq i32 %27, 49152
store i32 %storemerge12, i32* %storemerge1220.reg2mem
store i64 %25, i64* %sv_1.019.reg2mem
store i64 %25, i64* %sv_1.0.lcssa.reg2mem
store i64 %26, i64* %storemerge12.in.lcssa.reg2mem
store i32 %storemerge12, i32* %storemerge12.lcssa.reg2mem
br i1 %28, label LBL_5, label LBL_7
LBL_7:
%storemerge12.lcssa.reload = load i32, i32* %storemerge12.lcssa.reg2mem
%storemerge12.in.lcssa.reload = load i64, i64* %storemerge12.in.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%29 = trunc i64 %storemerge12.in.lcssa.reload to i16
%30 = icmp sgt i16 %29, -1
%.pre29 = add i64 %sv_1.0.lcssa.reload, %9
store i32 %storemerge12.lcssa.reload, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_9, label LBL_8
LBL_8:
%31 = add i64 %.pre29, -1
%32 = trunc i64 %storemerge12.in.lcssa.reload to i8
%33 = inttoptr i64 %31 to i8*
store i8 %32, i8* %33, align 1
%34 = call i64 @FUNC(i64 %0)
%35 = trunc i64 %34 to i32
store i32 %35, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i64 %sv_1.0.lcssa.reload, i64* %sv_2, align 8
%36 = icmp eq i32 %sv_0.0.reload, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_20
LBL_10:
%38 = call i64 @FUNC(i64 %0)
%sext734 = mul i64 %38, 4294967296
%39 = ashr exact i64 %sext734, 32
%40 = icmp sgt i64 %9, %39
store i32 %sv_0.0.reload, i32* %.in36.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %40, label LBL_11, label LBL_21
LBL_11:
%.in36.reload = load i32, i32* %.in36.reg2mem
%41 = call i64 @FUNC(i64 %0)
%42 = load i64, i64* %sv_2, align 8
%sext8 = mul i64 %41, 4294967296
%43 = ashr exact i64 %sext8, 32
%44 = add i64 %43, %42
store i64 %44, i64* %sv_2, align 8
%45 = call i64 @FUNC(i64 %0)
%46 = trunc i64 %45 to i32
%sext9 = mul i32 %46, 16777216
%47 = icmp slt i32 %sext9, 0
br i1 %47, label LBL_17, label LBL_12
LBL_12:
%48 = load i64, i64* %sv_2, align 8
%49 = sub i64 %.pre29, %48
%50 = mul i32 %46, 2
%51 = and i32 %50, 510
%52 = zext i32 %51 to i64
%53 = icmp slt i64 %49, %52
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %53, label LBL_21, label LBL_13
LBL_13:
%54 = call i64 @FUNC(i64 %0, i64 %48, i64 %52)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %51, %55
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %56, label LBL_14, label LBL_21
LBL_14:
%57 = load i64, i64* %sv_2, align 8
%58 = add i64 %57, %52
store i64 %58, i64* %sv_2, align 8
br label LBL_15
LBL_15:
%59 = add i32 %.in36.reload, -1
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_15.dec_label_pc_401428_crit_edge, label LBL_20
LBL_16:
%.pre = load i64, i64* %sv_2, align 8
%62 = sub i64 %.pre29, %.pre
%63 = call i64 @FUNC(i64 %0)
%sext7 = mul i64 %63, 4294967296
%64 = ashr exact i64 %sext7, 32
%65 = icmp sgt i64 %62, %64
store i32 %59, i32* %.in36.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %65, label LBL_11, label LBL_21
LBL_17:
%66 = ashr exact i32 %sext9, 24
%67 = sub nsw i32 0, %66
%68 = load i64, i64* %sv_2, align 8
%69 = sub i64 %.pre29, %68
%70 = mul i32 %67, 2
%71 = sext i32 %70 to i64
%72 = icmp slt i64 %69, %71
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %72, label LBL_21, label LBL_18
LBL_18:
%73 = call i64 @FUNC(i64 %0)
%74 = urem i64 %73, 65536
store i32 0, i32* %storemerge23.reg2mem
br label LBL_19
LBL_19:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%75 = call i64 @FUNC(i64* nonnull %sv_2, i64 %74)
%76 = add nuw nsw i32 %storemerge23.reload, 1
%77 = icmp slt i32 %76, %67
store i32 %76, i32* %storemerge23.reg2mem
br i1 %77, label LBL_19, label LBL_15
LBL_20:
%78 = add i32 %.in.reload, -1
%79 = icmp eq i32 %78, 0
%80 = icmp eq i1 %79, false
store i32 %78, i32* %.in.reg2mem
store i64 %.pre29, i64* %sv_1.124.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %80, label LBL_3, label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %67, { 1, 0 }
uselistorder i32 %51, { 1, 0 }
uselistorder i64 %.pre29, { 0, 2, 3, 1, 4 }
uselistorder i64 %sv_1.019.reload, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_2, { 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 i64* %sv_1.124.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1220.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.019.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.in36.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 8, 5, 7, 6, 4, 3, 1, 9, 10 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_peek_byte, { 1, 0 }
uselistorder i32 49152, { 2, 3, 0, 1 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i1 false, { 3, 2, 1, 0 }
uselistorder i32 0, { 7, 0, 5, 6, 4, 3, 2, 1 }
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_21, { 1, 7, 4, 6, 5, 3, 2, 0, 8, 9 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
reposvul_c_test | nw_cache_free_148 | nw_cache_free | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.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 ult i32 %3, %6
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i32 %3, 1
store i32 %9, i32* %2, align 4
%10 = zext i32 %3 to i64
%11 = mul i64 %10, 8
%12 = add i64 %11, %0
%13 = inttoptr i64 %12 to i64*
store i64 %arg2, i64* %13, align 8
store i64 %arg2, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%14 = icmp ult i32 %6, 1024
br i1 %14, label LBL_3, label LBL_6
LBL_3:
%15 = mul i32 %6, 16
%16 = call i64* @realloc(i64* %arg1, i32 %15)
%17 = icmp eq i64* %16, null
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = ptrtoint i64* %16 to i64
%19 = mul i32 %6, 2
store i32 %19, i32* %5, align 4
store i64 %18, i64* %arg1, align 8
%20 = load i32, i32* %2, align 4
%21 = add i32 %20, 1
store i32 %21, i32* %2, align 4
%22 = zext i32 %20 to i64
%23 = mul i64 %22, 8
%24 = add i64 %23, %0
%25 = inttoptr i64 %24 to i64*
store i64 %arg2, i64* %25, align 8
store i64 %arg2, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%26 = inttoptr i64 %arg2 to i64*
call void @free(i64* %26)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%27 = inttoptr i64 %arg2 to i64*
call void @free(i64* %27)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %16, { 1, 0 }
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i32* %2, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64 %arg2, { 5, 4, 1, 3, 0, 2 }
} | 0 |
BinRealVul | drive_process_irp_write_19018 | drive_process_irp_write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%4 = icmp eq i64* %arg1, null
%5 = icmp eq i64* %arg2, null
%or.cond3 = or i1 %4, %5
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_11, label LBL_1
LBL_1:
%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 = icmp eq i64 %9, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %10, label LBL_11, label LBL_2
LBL_2:
%11 = add i64 %6, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 1, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_11
LBL_3:
%16 = call i64 @FUNC(i64 %6)
%17 = trunc i64 %16 to i32
%18 = icmp ult i32 %17, 32
store i64 2, i64* %rax.0.reg2mem
br i1 %18, label LBL_11, label LBL_4
LBL_4:
%19 = ptrtoint i64* %arg1 to i64
%20 = zext i32 %3 to i64
%21 = call i64 @FUNC(i64 %6, i64 %20)
%22 = call i64 @FUNC(i64 %20, i64 %2)
%23 = call i64 @FUNC(i64 %2, i64 20)
%24 = add i64 %6, 24
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %19, i64 %27)
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = add i64 %6, 28
%32 = inttoptr i64 %31 to i32*
store i32 3, i32* %32, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_6:
%33 = call i64 @FUNC(i64 %28, i64 %2)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_8, label LBL_7
LBL_7:
%37 = call i64 @FUNC()
%38 = and i64 %37, 4294967295
%39 = call i64 @FUNC(i64 %38)
%40 = trunc i64 %39 to i32
%41 = add i64 %6, 28
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%43 = call i64 @FUNC(i64 %2)
%44 = call i64 @FUNC(i64 %28, i64 %43, i32 %3)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = call i64 @FUNC()
%49 = and i64 %48, 4294967295
%50 = call i64 @FUNC(i64 %49)
%51 = trunc i64 %50 to i32
%52 = add i64 %6, 28
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%54 = load i64, i64* %8, align 8
%55 = zext i32 %sv_0.0.reload to i64
%56 = call i64 @FUNC(i64 %54, i64 %55)
%57 = load i64, i64* %8, align 8
%58 = call i64 @FUNC(i64 %57, i64 0)
store i64 %6, 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 %6, { 0, 3, 2, 1, 4, 5, 6, 7, 8 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 3, 0, 1, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder i64 (i64)* @drive_map_windows_err, { 1, 0 }
uselistorder i64 ()* @GetLastError, { 1, 0 }
uselistorder i32 0, { 2, 3, 1, 4, 0 }
uselistorder i64 1, { 2, 1, 0, 3, 4 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 4, 0, 3, 2, 1 }
} | 1 |
BinRealVul | udev_monitor_send_device_13075 | udev_monitor_send_device | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge2.in.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0)
%4 = icmp sgt i64 %3, 31
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %3 to i32
%7 = trunc i64 %1 to i32
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = icmp eq i16 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %5, 128
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = load i64, i64* %sv_0, align 8
%16 = inttoptr i64 %15 to i64*
%17 = inttoptr i64 %8 to %sockaddr*
%18 = call i32 @sendto(i32 %7, i64* %16, i32 %6, i32 0, %sockaddr* %17, i32 %14)
store i32 %18, i32* %storemerge2.in.reg2mem
br label LBL_4
LBL_3:
%19 = add i64 %5, 116
%20 = load i64, i64* %sv_0, align 8
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %19 to %sockaddr*
%23 = call i32 @sendto(i32 %7, i64* %21, i32 %6, i32 0, %sockaddr* %22, i32 12)
store i32 %23, i32* %storemerge2.in.reg2mem
br label LBL_4
LBL_4:
%storemerge2.in.reload = load i32, i32* %storemerge2.in.reg2mem
%storemerge2 = sext i32 %storemerge2.in.reload to i64
%24 = add i64 %5, 136
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %storemerge2, i64 %5)
store i64 %storemerge2, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %5, { 1, 0, 4, 3, 2 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i32* %storemerge2.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i32, i64*, i32, i32, %sockaddr*, i32)* @sendto, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | av_aes_init_7441 | av_aes_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge516.reg2mem = alloca i32
%.reg2mem47 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv34.reg2mem = alloca i64
%indvars.iv31.reg2mem = alloca i64
%indvars.iv37.reg2mem = alloca i64
%indvars.iv28.reg2mem = alloca i64
%sv_0.023.reg2mem = alloca i32
%sv_1.024.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%storemerge1025.reg2mem = alloca i32
%indvars.iv39.reg2mem = alloca i64
%sv_2.126.reg2mem = alloca i32
%storemerge1227.reg2mem = alloca i32
%indvars.iv42.reg2mem = alloca i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i32, align 4
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%sv_9 = alloca i32, align 4
%sv_10 = alloca i64, align 8
%0 = ptrtoint i64* %sv_10 to i64
%1 = load i8, i8* @gv_0, align 1
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = add i64 %0, -832
%5 = add i64 %0, -320
store i64 0, i64* %indvars.iv42.reg2mem
store i32 0, i32* %storemerge1227.reg2mem
store i32 1, i32* %sv_2.126.reg2mem
br label LBL_2
LBL_2:
%sv_2.126.reload = load i32, i32* %sv_2.126.reg2mem
%storemerge1227.reload = load i32, i32* %storemerge1227.reg2mem
%indvars.iv42.reload = load i64, i64* %indvars.iv42.reg2mem
%6 = trunc i32 %sv_2.126.reload to i8
%7 = add i64 %indvars.iv42.reload, %4
%8 = add i64 %7, 255
%9 = inttoptr i64 %8 to i8*
store i8 %6, i8* %9, align 1
%10 = inttoptr i64 %7 to i8*
store i8 %6, i8* %10, align 1
%11 = sext i32 %sv_2.126.reload to i64
%12 = trunc i32 %storemerge1227.reload to i8
%13 = add i64 %5, %11
%14 = inttoptr i64 %13 to i8*
store i8 %12, i8* %14, align 1
%15 = mul i32 %sv_2.126.reload, 2
%16 = xor i32 %15, %sv_2.126.reload
%17 = icmp slt i32 %16, 256
%18 = xor i32 %16, 283
%spec.select = select i1 %17, i32 %16, i32 %18
%indvars.iv.next43 = add nuw nsw i64 %indvars.iv42.reload, 1
%19 = add nuw nsw i32 %storemerge1227.reload, 1
%exitcond44 = icmp eq i64 %indvars.iv.next43, 255
store i64 %indvars.iv.next43, i64* %indvars.iv42.reg2mem
store i32 %19, i32* %storemerge1227.reg2mem
store i32 %spec.select, i32* %sv_2.126.reg2mem
store i64 0, i64* %indvars.iv39.reg2mem
store i32 0, i32* %storemerge1025.reg2mem
br i1 %exitcond44, label LBL_3, label LBL_2
LBL_3:
%storemerge1025.reload = load i32, i32* %storemerge1025.reg2mem
%indvars.iv39.reload = load i64, i64* %indvars.iv39.reg2mem
%20 = icmp eq i64 %indvars.iv39.reload, 0
store i32 0, i32* %storemerge11.reg2mem
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = add i64 %indvars.iv39.reload, %5
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = sub i8 0, %23
%25 = sub i8 %24, 1
%26 = zext i8 %25 to i64
%27 = add i64 %4, %26
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = zext i8 %29 to i32
store i32 %30, i32* %storemerge11.reg2mem
br label LBL_5
LBL_5:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%31 = mul i32 %storemerge11.reload, 2
%32 = mul i32 %storemerge11.reload, 4
%33 = xor i32 %32, %31
%34 = mul i32 %storemerge11.reload, 8
%35 = xor i32 %33, %34
%36 = mul i32 %storemerge11.reload, 16
%37 = xor i32 %35, %36
%38 = xor i32 %37, %storemerge11.reload
%39 = udiv i32 %37, 256
%40 = xor i32 %38, %39
%41 = urem i32 %40, 256
%42 = xor i32 %41, 99
%43 = zext i32 %42 to i64
%44 = trunc i32 %storemerge1025.reload to i8
%45 = add i64 %43, ptrtoint (i8** @gv_1 to i64)
%46 = inttoptr i64 %45 to i8*
store i8 %44, i8* %46, align 1
%47 = trunc i32 %42 to i8
%48 = add i64 %indvars.iv39.reload, ptrtoint (i8** @gv_2 to i64)
%49 = inttoptr i64 %48 to i8*
store i8 %47, i8* %49, align 1
%indvars.iv.next40 = add nuw nsw i64 %indvars.iv39.reload, 1
%50 = add nuw nsw i32 %storemerge1025.reload, 1
%exitcond41 = icmp eq i64 %indvars.iv.next40, 256
store i64 %indvars.iv.next40, i64* %indvars.iv39.reg2mem
store i32 %50, i32* %storemerge1025.reg2mem
br i1 %exitcond41, label LBL_6, label LBL_3
LBL_6:
store i32 14, i32* %sv_9, align 4
%51 = call i64 @FUNC(i64* nonnull @gv_3, i32* nonnull %sv_9, i64* nonnull %sv_7, i64* nonnull %sv_8, i64* bitcast (i8** @gv_1 to i64*))
store i32 2, i32* %sv_6, align 4
%52 = call i64 @FUNC(i64* nonnull @gv_4, i32* nonnull %sv_6, i64* nonnull %sv_7, i64* nonnull %sv_8, i64* bitcast (i8** @gv_2 to i64*))
br label LBL_7
LBL_7:
%53 = trunc i64 %arg3 to i32
store i64 4294967295, i64* %storemerge.reg2mem
switch i32 %53, label LBL_25 [
i32 128, label LBL_8
i32 192, label LBL_8
i32 256, label LBL_8
]
LBL_8:
%54 = ptrtoint i64* %arg1 to i64
%55 = ashr i32 %53, 5
%56 = add nsw i32 %55, 6
%57 = bitcast i64* %arg1 to i32*
store i32 %56, i32* %57, align 4
%58 = mul i32 %55, 4
%59 = call i64* @memcpy(i64* nonnull %sv_5, i64* %arg2, i32 %58)
%60 = mul i32 %56, 16
%61 = add i32 %60, 16
%62 = icmp eq i32 %61, 0
br i1 %62, label LBL_19, label LBL_9
LBL_9:
%63 = zext i32 %61 to i64
%64 = add i64 %54, 4
%65 = add i64 %0, -64
%66 = add nsw i32 %55, -1
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = add i64 %68, %0
%70 = icmp eq i32 %55, 8
%71 = udiv i64 %arg3, 64
%72 = urem i64 %71, 67108864
%73 = sext i32 %55 to i64
%74 = add i64 %0, -68
%75 = mul i64 %72, 4
%76 = add i64 %65, %75
%77 = add i64 %76, -4
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_1.024.reg2mem
store i32 0, i32* %sv_0.023.reg2mem
br label LBL_10
LBL_10:
%sv_0.023.reload = load i32, i32* %sv_0.023.reg2mem
%sv_1.024.reload = load i32, i32* %sv_1.024.reg2mem
%.reload = load i64, i64* %.reg2mem
%78 = add i64 %64, %.reload
%79 = inttoptr i64 %78 to i64*
%80 = call i64* @memcpy(i64* %79, i64* nonnull %sv_5, i32 %58)
store i64 0, i64* %indvars.iv28.reg2mem
br label LBL_11
LBL_11:
%indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem
%81 = add nuw nsw i64 %indvars.iv28.reload, %65
%82 = inttoptr i64 %81 to i8*
%83 = load i8, i8* %82, align 1
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1
%84 = urem i64 %indvars.iv.next29, 4
%85 = or i64 %84, %69
%86 = add i64 %85, -64
%87 = inttoptr i64 %86 to i8*
%88 = load i8, i8* %87, align 1
%89 = zext i8 %88 to i64
%90 = add i64 %89, ptrtoint (i8** @gv_2 to i64)
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 1
%93 = xor i8 %92, %83
store i8 %93, i8* %82, align 1
%exitcond30 = icmp eq i64 %indvars.iv.next29, 4
store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem
br i1 %exitcond30, label LBL_12, label LBL_11
LBL_12:
%94 = add i32 %sv_1.024.reload, %58
%95 = sext i32 %sv_0.023.reload to i64
%96 = add i64 %95, ptrtoint (i8** @gv_5 to i64)
%97 = inttoptr i64 %96 to i8*
%98 = load i8, i8* %97, align 1
%99 = load i64, i64* %sv_5, align 8
%100 = trunc i64 %99 to i8
%101 = xor i8 %98, %100
%102 = sext i8 %101 to i64
store i64 %102, i64* %sv_5, align 8
store i64 1, i64* %indvars.iv37.reg2mem
br label LBL_13
LBL_13:
%indvars.iv37.reload = load i64, i64* %indvars.iv37.reg2mem
%103 = icmp eq i64 %indvars.iv37.reload, %72
%or.cond = icmp eq i1 %70, %103
store i64 0, i64* %indvars.iv34.reg2mem
br i1 %or.cond, label LBL_16, label LBL_14
LBL_14:
%104 = mul i64 %indvars.iv37.reload, 4
%105 = add i64 %104, %65
%106 = add i64 %74, %104
store i64 0, i64* %indvars.iv31.reg2mem
br label LBL_15
LBL_15:
%indvars.iv31.reload = load i64, i64* %indvars.iv31.reg2mem
%107 = add i64 %105, %indvars.iv31.reload
%108 = inttoptr i64 %107 to i8*
%109 = load i8, i8* %108, align 1
%110 = add i64 %106, %indvars.iv31.reload
%111 = inttoptr i64 %110 to i8*
%112 = load i8, i8* %111, align 1
%113 = xor i8 %112, %109
store i8 %113, i8* %108, align 1
%indvars.iv.next32 = add nuw nsw i64 %indvars.iv31.reload, 1
%exitcond33 = icmp eq i64 %indvars.iv.next32, 4
store i64 %indvars.iv.next32, i64* %indvars.iv31.reg2mem
br i1 %exitcond33, label LBL_17, label LBL_15
LBL_16:
%indvars.iv34.reload = load i64, i64* %indvars.iv34.reg2mem
%114 = add nuw nsw i64 %76, %indvars.iv34.reload
%115 = inttoptr i64 %114 to i8*
%116 = load i8, i8* %115, align 1
%117 = add nuw nsw i64 %77, %indvars.iv34.reload
%118 = inttoptr i64 %117 to i8*
%119 = load i8, i8* %118, align 1
%120 = zext i8 %119 to i64
%121 = add i64 %120, ptrtoint (i8** @gv_2 to i64)
%122 = inttoptr i64 %121 to i8*
%123 = load i8, i8* %122, align 1
%124 = xor i8 %123, %116
store i8 %124, i8* %115, align 1
%indvars.iv.next35 = add nuw nsw i64 %indvars.iv34.reload, 1
%exitcond36 = icmp eq i64 %indvars.iv.next35, 4
store i64 %indvars.iv.next35, i64* %indvars.iv34.reg2mem
br i1 %exitcond36, label LBL_17, label LBL_16
LBL_17:
%indvars.iv.next38 = add nuw nsw i64 %indvars.iv37.reload, 1
%125 = icmp slt i64 %indvars.iv.next38, %73
store i64 %indvars.iv.next38, i64* %indvars.iv37.reg2mem
br i1 %125, label LBL_13, label LBL_18
LBL_18:
%126 = add i32 %sv_0.023.reload, 1
%127 = sext i32 %94 to i64
%128 = icmp slt i64 %127, %63
store i64 %127, i64* %.reg2mem
store i32 %94, i32* %sv_1.024.reg2mem
store i32 %126, i32* %sv_0.023.reg2mem
br i1 %128, label LBL_10, label LBL_19
LBL_19:
%129 = trunc i64 %arg4 to i32
%130 = icmp eq i32 %129, 0
br i1 %130, label LBL_22, label LBL_20
LBL_20:
%131 = icmp sgt i32 %56, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %131, label LBL_21, label LBL_25
LBL_21:
%wide.trip.count = zext i32 %56 to i64
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_23
LBL_22:
%132 = add nsw i32 %55, 7
%133 = ashr i32 %132, 1
%134 = zext i32 %133 to i64
%135 = icmp eq i32 %133, 0
store i64 0, i64* %.reg2mem47
store i32 0, i32* %storemerge516.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %135, label LBL_25, label LBL_24
LBL_23:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%136 = call i64 @FUNC(i64* nonnull %sv_3, i64 0, i64* bitcast (i8** @gv_2 to i64*))
%137 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull @gv_3, i64 1, i64 3)
%138 = mul i64 %indvars.iv.reload, 16
%139 = add i64 %138, %54
%140 = load i64, i64* %sv_4, align 8
%141 = add i64 %139, 4
%142 = inttoptr i64 %141 to i64*
store i64 %140, i64* %142, align 8
%143 = add i64 %139, 12
%144 = inttoptr i64 %143 to i64*
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %exitcond, label LBL_25, label LBL_23
LBL_24:
%storemerge516.reload = load i32, i32* %storemerge516.reg2mem
%.reload48 = load i64, i64* %.reg2mem47
%145 = mul i64 %.reload48, 16
%146 = add i64 %145, %54
%147 = add i64 %146, 12
%148 = inttoptr i64 %147 to i64*
%149 = load i64, i64* %148, align 8
%150 = add i64 %146, 4
%151 = inttoptr i64 %150 to i64*
%152 = load i64, i64* %151, align 8
%153 = sub i32 %56, %storemerge516.reload
%154 = sext i32 %153 to i64
%155 = mul i64 %154, 16
%156 = add i64 %155, %54
%157 = add i64 %156, 12
%158 = inttoptr i64 %157 to i64*
%159 = load i64, i64* %158, align 8
%160 = add i64 %156, 4
%161 = inttoptr i64 %160 to i64*
%162 = load i64, i64* %161, align 8
store i64 %162, i64* %151, align 8
store i64 %159, i64* %148, align 8
store i64 %152, i64* %161, align 8
store i64 %149, i64* %158, align 8
%163 = add i32 %storemerge516.reload, 1
%164 = sext i32 %163 to i64
%165 = icmp slt i64 %164, %134
store i64 %164, i64* %.reg2mem47
store i32 %163, i32* %storemerge516.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %165, label LBL_24, label LBL_25
LBL_25:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %156, { 1, 0 }
uselistorder i64 %146, { 1, 0 }
uselistorder i64 %139, { 1, 0 }
uselistorder i64 %104, { 1, 0 }
uselistorder i64 %indvars.iv37.reload, { 0, 2, 1 }
uselistorder i64 %indvars.iv.next29, { 0, 2, 1 }
uselistorder i64 %76, { 1, 0 }
uselistorder i64 %72, { 1, 0 }
uselistorder i64 %65, { 1, 2, 0 }
uselistorder i32 %61, { 1, 0 }
uselistorder i32 %58, { 2, 1, 0 }
uselistorder i32 %56, { 3, 1, 2, 0, 4 }
uselistorder i32 %55, { 2, 1, 3, 4, 0, 5 }
uselistorder i32 %53, { 1, 0 }
uselistorder i32 %storemerge11.reload, { 0, 4, 3, 2, 1 }
uselistorder i64 %indvars.iv39.reload, { 0, 1, 3, 2 }
uselistorder i32 %sv_2.126.reload, { 2, 3, 0, 1 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %0, { 0, 1, 4, 2, 3 }
uselistorder i64* %sv_5, { 2, 3, 0, 1 }
uselistorder i64* %sv_4, { 1, 0 }
uselistorder i64* %indvars.iv42.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1227.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.126.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv39.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1025.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge11.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.024.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.023.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv28.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv37.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv31.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv34.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem47, { 2, 0, 1 }
uselistorder i32* %storemerge516.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64 4, { 7, 8, 9, 4, 5, 0, 6, 3, 1, 2, 10 }
uselistorder i64 (i64*, i32*, i64*, i64*, i64*)* @init_multbl2, { 1, 0 }
uselistorder i64 ptrtoint (i8** @gv_2 to i64), { 2, 1, 0 }
uselistorder i32 16, { 2, 0, 1 }
uselistorder i32 8, { 1, 0 }
uselistorder i64 1, { 8, 9, 0, 4, 5, 6, 1, 7, 3, 2 }
uselistorder i32 256, { 2, 1, 0, 3 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i64 255, { 1, 0 }
uselistorder i8 0, { 0, 3, 1, 2 }
uselistorder label LBL_25, { 1, 0, 3, 2, 4 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | mjpeg_decode_init_16065 | mjpeg_decode_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32*, align 8
%4 = add i64 %3, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
store i64 %3, i64* %7, align 8
%8 = bitcast i32** %sv_1 to i64*
%9 = call i64* @memset(i64* nonnull %8, i32 0, i32 24)
store i32* %arg1, i32** %sv_1, align 8
%10 = call i64 @FUNC(i64* nonnull %sv_0, i64 %3)
%11 = call i64 @FUNC(i64* nonnull %8)
%12 = add i64 %6, 80
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %sv_0, align 8
%15 = add i64 %6, 88
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = add i64 %6, 72
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %6, 16
%20 = inttoptr i64 %19 to i32*
store i32 102400, i32* %20, align 4
%21 = call i64 @FUNC(i64 102400)
%22 = add i64 %6, 8
%23 = inttoptr i64 %22 to i64*
store i64 %21, i64* %23, align 8
%24 = icmp eq i64 %21, 0
%25 = icmp eq i1 %24, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %25, label LBL_1, label LBL_3
LBL_1:
%26 = add i64 %6, 20
%27 = inttoptr i64 %26 to i32*
store i32 -1, i32* %27, align 4
%28 = add i64 %6, 24
%29 = inttoptr i64 %28 to i32*
store i32 1, i32* %29, align 4
%30 = bitcast i64* %rdi to i32*
%31 = load i32, i32* %30, align 8
%32 = add i64 %6, 28
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = add i64 %6, 32
%35 = call i64 @FUNC(i64 %34, i64* nonnull @gv_0, i64* nonnull @gv_1, i64 12)
%36 = add i64 %6, 40
%37 = call i64 @FUNC(i64 %36, i64* nonnull @gv_2, i64* nonnull @gv_3, i64 12)
%38 = add i64 %6, 48
%39 = call i64 @FUNC(i64 %38, i64* nonnull @gv_4, i64* nonnull @gv_5, i64 251)
%40 = add i64 %6, 56
%41 = call i64 @FUNC(i64 %40, i64* nonnull @gv_6, i64* nonnull @gv_7, i64 251)
%42 = add i64 %3, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = urem i32 %44, 2
%46 = icmp eq i32 %45, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %46, label LBL_3, label LBL_2
LBL_2:
%47 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_8, i64 0, i64 0), i64 251, i64 %2, i64 %1)
%48 = add i64 %3, 16
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = mul i32 %50, 8
%52 = zext i32 %51 to i64
%53 = add i64 %3, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = add i64 %6, 64
%57 = call i64 @FUNC(i64 %56, i64 %55, i64 %52)
%58 = call i64 @FUNC(i64 %6)
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 %6, { 1, 0, 2, 5, 4, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %3, { 0, 3, 2, 1, 4, 5, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64*, i64*, i64)* @build_vlc, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | impeg2d_flush_ext_and_user_data_12223 | impeg2d_flush_ext_and_user_data | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 4)
store i64 %1, i64* %storemerge1.reg2mem
br label LBL_4
LBL_1:
%2 = call i64 @FUNC(i64 %0, i64 4)
%3 = call i64 @FUNC(i64 %0, i64 3)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 8)
%8 = call i64 @FUNC(i64 %0, i64 3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0, i64 4)
store i64 %12, i64* %storemerge1.reg2mem
br label LBL_4
LBL_4:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%storemerge = trunc i64 %storemerge1.reload to i32
switch i32 %storemerge, label LBL_5 [
i32 181, label LBL_1
i32 178, label LBL_1
]
LBL_5:
ret i64 %storemerge1.reload
uselistorder i64 %storemerge1.reload, { 1, 0 }
uselistorder i64 %0, { 2, 3, 1, 0, 4, 5 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_flush, { 1, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_nxt, { 3, 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_vmstop_requested_14524 | qemu_vmstop_requested | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%1 = icmp sgt i32 %0, 9
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = bitcast i64* %arg1 to i32*
store i32 %0, i32* %2, align 4
store i32 10, i32* bitcast (i64* @gv_0 to i32*), align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | asfrtp_close_context_14961 | asfrtp_close_context | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 8
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %arg1)
ret i64 %3
} | 1 |
BinRealVul | kvm_vcpu_ioctl_enable_cap_4090 | kvm_vcpu_ioctl_enable_cap | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 1
%9 = icmp eq i1 %8, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i64 @FUNC(i64 %10)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 4294967274, { 1, 0, 2 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | hid_free_buffers_9329 | hid_free_buffers | 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 = add i64 %0, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %1, i64 %0, i64 %7, i64 %4)
%9 = add i64 %0, 32
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %1, i64 %0, i64 %14, i64 %11)
%16 = add i64 %0, 40
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %0, 56
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %0, 48
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %1, i64 %0, i64 %25, i64 %22)
ret i64 %26
uselistorder i64 (i64, i64, i64, i64)* @usb_free_coherent, { 2, 1, 0 }
} | 0 |
BinRealVul | escape_xml_13654 | escape_xml | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem18 = alloca i8*
%sv_0.0.reg2mem = alloca i64
%.reg2mem16 = alloca i8*
%.reg2mem14 = alloca i8
%.reg2mem12 = alloca i8*
%sv_1.02.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i64
%.reg2mem10 = alloca i8*
%.reg2mem8 = alloca i8
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_2 = alloca i8*, align 8
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i64 ptrtoint (i64* @gv_0 to i64), i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = load i8*, i8** @gv_1, align 8
%6 = ptrtoint i8* %5 to i64
%7 = bitcast i8** %sv_2 to i64*
store i64 %6, i64* %7, align 8
%8 = inttoptr i64 %arg1 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 0
%11 = icmp eq i1 %10, false
store i8* %5, i8** %.reg2mem
store i8 %9, i8* %.reg2mem8
store i8* %8, i8** %.reg2mem10
store i64 0, i64* %sv_0.13.reg2mem
store i64 %arg1, i64* %sv_1.02.reg2mem
store i8* %5, i8** %.reg2mem18
br i1 %11, label LBL_2, label LBL_14
LBL_2:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%sv_0.13.reload = load i64, i64* %sv_0.13.reg2mem
%.reload9 = load i8, i8* %.reg2mem8
%.reload = load i8*, i8** %.reg2mem
%12 = add i64 %sv_0.13.reload, 8
%13 = load i32, i32* @gv_2, align 4
%14 = sext i32 %13 to i64
%15 = icmp ugt i64 %12, %14
store i8* %.reload, i8** %.reg2mem12
store i8 %.reload9, i8* %.reg2mem14
br i1 %15, label LBL_3, label LBL_6
LBL_3:
%16 = add i32 %13, 128
store i32 %16, i32* @gv_2, align 4
%17 = load i8*, i8** @gv_1, align 8
%18 = bitcast i8* %17 to i64*
%19 = call i64* @realloc(i64* %18, i32 %16)
%20 = icmp eq i64* %19, null
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = load i8*, i8** @gv_1, align 8
%23 = bitcast i8* %22 to i64*
call void @free(i64* %23)
store i8* null, i8** @gv_1, align 8
store i32 0, i32* @gv_2, align 4
store i64 ptrtoint ([22 x i8]* @gv_3 to i64), i64* %rax.0.reg2mem
br label LBL_15
LBL_5:
%.reload11 = load i8*, i8** %.reg2mem10
%24 = ptrtoint i64* %19 to i64
%25 = add i64 %sv_0.13.reload, %24
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %sv_2, align 8
%27 = bitcast i64* %19 to i8*
store i8* %27, i8** @gv_1, align 8
%.pre = load i8, i8* %.reload11, align 1
store i8* %26, i8** %.reg2mem12
store i8 %.pre, i8* %.reg2mem14
br label LBL_6
LBL_6:
%.reload15 = load i8, i8* %.reg2mem14
%.reload13 = load i8*, i8** %.reg2mem12
%28 = icmp eq i8 %.reload15, 62
br i1 %28, label LBL_11, label LBL_7
LBL_7:
%29 = icmp sgt i8 %.reload15, 62
br i1 %29, label LBL_12, label LBL_8
LBL_8:
switch i8 %.reload15, label LBL_12 [
i8 38, label LBL_9
i8 60, label LBL_10
]
LBL_9:
%30 = ptrtoint i8* %.reload13 to i64
%31 = bitcast i8* %.reload13 to i32*
store i32 1886216486, i32* %31, align 4
%32 = add i64 %30, 4
%33 = inttoptr i64 %32 to i16*
store i16 59, i16* %33, align 2
%34 = load i8*, i8** %sv_2, align 8
%35 = call i32 @strlen(i8* %34)
%36 = sext i32 %35 to i64
%37 = add i64 %sv_0.13.reload, -1
%38 = add i64 %37, %36
%39 = load i8*, i8** @gv_1, align 8
%40 = ptrtoint i8* %39 to i64
%41 = add i64 %38, %40
%42 = inttoptr i64 %41 to i8*
store i8* %42, i8** %sv_2, align 8
store i8* %42, i8** %.reg2mem16
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_10:
%43 = ptrtoint i8* %.reload13 to i64
%44 = bitcast i8* %.reload13 to i32*
store i32 997485606, i32* %44, align 4
%45 = add i64 %43, 4
%46 = inttoptr i64 %45 to i8*
store i8 0, i8* %46, align 1
%47 = load i8*, i8** %sv_2, align 8
%48 = call i32 @strlen(i8* %47)
%49 = sext i32 %48 to i64
%50 = add i64 %sv_0.13.reload, -1
%51 = add i64 %50, %49
%52 = load i8*, i8** @gv_1, align 8
%53 = ptrtoint i8* %52 to i64
%54 = add i64 %51, %53
%55 = inttoptr i64 %54 to i8*
store i8* %55, i8** %sv_2, align 8
store i8* %55, i8** %.reg2mem16
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%56 = ptrtoint i8* %.reload13 to i64
%57 = bitcast i8* %.reload13 to i32*
store i32 997484326, i32* %57, align 4
%58 = add i64 %56, 4
%59 = inttoptr i64 %58 to i8*
store i8 0, i8* %59, align 1
%60 = load i8*, i8** %sv_2, align 8
%61 = call i32 @strlen(i8* %60)
%62 = sext i32 %61 to i64
%63 = add i64 %sv_0.13.reload, -1
%64 = add i64 %63, %62
%65 = load i8*, i8** @gv_1, align 8
%66 = ptrtoint i8* %65 to i64
%67 = add i64 %64, %66
%68 = inttoptr i64 %67 to i8*
store i8* %68, i8** %sv_2, align 8
store i8* %68, i8** %.reg2mem16
store i64 %64, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
store i8 %.reload15, i8* %.reload13, align 1
%.pre6 = load i8*, i8** %sv_2, align 8
store i8* %.pre6, i8** %.reg2mem16
store i64 %sv_0.13.reload, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload17 = load i8*, i8** %.reg2mem16
%69 = add i64 %sv_0.0.reload, 1
%70 = ptrtoint i8* %.reload17 to i64
%71 = add i64 %70, 1
%72 = inttoptr i64 %71 to i8*
store i8* %72, i8** %sv_2, align 8
%73 = add i64 %sv_1.02.reload, 1
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = icmp eq i8 %75, 0
%77 = icmp eq i1 %76, false
store i8* %72, i8** %.reg2mem
store i8 %75, i8* %.reg2mem8
store i8* %74, i8** %.reg2mem10
store i64 %69, i64* %sv_0.13.reg2mem
store i64 %73, i64* %sv_1.02.reg2mem
store i8* %72, i8** %.reg2mem18
br i1 %77, label LBL_2, label LBL_14
LBL_14:
%.reload19 = load i8*, i8** %.reg2mem18
store i8 0, i8* %.reload19, align 1
%78 = load i8*, i8** @gv_1, align 8
%79 = ptrtoint i8* %78 to i64
store i64 %79, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %.reload13, { 2, 0, 1, 6, 5, 4, 3 }
uselistorder i8 %.reload15, { 3, 0, 1, 2 }
uselistorder i64* %19, { 0, 2, 1 }
uselistorder i64 %sv_0.13.reload, { 0, 2, 4, 3, 5, 1 }
uselistorder i8** %sv_2, { 9, 0, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem8, { 2, 0, 1 }
uselistorder i8** %.reg2mem10, { 2, 0, 1 }
uselistorder i64* %sv_0.13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.02.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem16, { 0, 3, 4, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 -1, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 2, 0 }
uselistorder i32* @gv_2, { 2, 1, 0 }
uselistorder i8** @gv_1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3 }
uselistorder i8 0, { 3, 4, 1, 2, 0, 5 }
uselistorder i32 1, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_15, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vsp1_dlm_irq_frame_end_18372 | vsp1_dlm_irq_frame_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 36
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
store i64 0, i64* %4, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_6, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %0, i64 0)
%12 = urem i64 %11, 2
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_6, label LBL_2
LBL_2:
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_4, label LBL_3
LBL_3:
store i64 %17, i64* %4, align 8
store i64 0, i64* %16, align 8
br label LBL_4
LBL_4:
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = add i64 %21, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %0, i64 0, i64 %25)
%27 = add i64 %21, 16
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = mul i32 %29, 8
%31 = or i32 %30, 1
%32 = sext i32 %31 to i64
%33 = call i64 @FUNC(i64 %0, i64 0, i64 %32)
store i64 %21, i64* %16, align 8
store i64 0, i64* %20, align 8
br label LBL_6
LBL_6:
%34 = call i64 @FUNC(i64 %1)
ret i64 %34
uselistorder i64 %21, { 2, 1, 0, 3 }
uselistorder i64* %16, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @vsp1_write, { 1, 0 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | security_get_bools_12162 | security_get_bools | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.2.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem10 = alloca i64
%rsi.3.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rsi.25.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i32
%.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg2, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i64 0, i64* %arg2, align 8
br label LBL_2
LBL_2:
%3 = trunc i64 %1 to i32
store i64 0, i64* %arg3, align 8
%4 = load i32, i32* @gv_0, align 4
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
%6 = icmp eq i32 %3, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_10
LBL_3:
%8 = ptrtoint i64* %arg2 to i64
store i64 %8, i64* %rsi.0.reg2mem
br i1 %2, label LBL_5, label LBL_4
LBL_4:
%9 = mul i32 %3, 8
%10 = call i64* @malloc(i32 %9)
%11 = ptrtoint i64* %10 to i64
store i64 %11, i64* %arg2, align 8
%12 = call i64* @memset(i64* nonnull %arg2, i32 0, i32 %9)
store i64 0, i64* %rsi.0.reg2mem
br label LBL_5
LBL_5:
%13 = ptrtoint i64* %arg3 to i64
%14 = bitcast i64* %rdi to i32*
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%15 = mul i32 %3, 4
%16 = call i64* @malloc(i32 %15)
%17 = ptrtoint i64* %16 to i64
store i64 %17, i64* %arg3, align 8
%18 = icmp eq i64* %16, null
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge6.reg2mem
store i64 %rsi.0.reload, i64* %rsi.25.reg2mem
store i64 %17, i64* %rdx.0.reg2mem
store i64 %rsi.0.reload, i64* %rsi.3.reg2mem
br i1 %18, label LBL_11, label LBL_6
LBL_6:
%rsi.25.reload = load i64, i64* %rsi.25.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload = load i64, i64* %.reg2mem
%19 = load i64, i64* @gv_1, align 8
%20 = mul i64 %.reload, 8
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = mul i64 %.reload, 4
%25 = add i64 %24, %13
%26 = inttoptr i64 %23 to i32*
%27 = load i32, i32* %26, align 4
%28 = inttoptr i64 %25 to i32*
store i32 %27, i32* %28, align 4
store i64 %rsi.25.reload, i64* %rsi.1.reg2mem
br i1 %2, label LBL_9, label LBL_7
LBL_7:
%29 = load i64, i64* @gv_2, align 8
%30 = add i64 %29, %20
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = inttoptr i64 %32 to i8*
%34 = call i32 @strlen(i8* %33)
%35 = sext i32 %34 to i64
%36 = add nsw i64 %35, 1
%37 = add i64 %rsi.25.reload, %20
%38 = trunc i64 %36 to i32
%39 = call i64* @malloc(i32 %38)
%40 = ptrtoint i64* %39 to i64
%41 = inttoptr i64 %37 to i64*
store i64 %40, i64* %41, align 8
%42 = icmp eq i64* %39, null
store i64 %rsi.25.reload, i64* %rdx.0.reg2mem
store i64 %rsi.25.reload, i64* %rsi.3.reg2mem
br i1 %42, label LBL_11, label LBL_8
LBL_8:
%43 = load i64, i64* @gv_2, align 8
%44 = add i64 %43, %20
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = call i64 @FUNC(i64 %40, i64 %46, i64 %36)
%48 = add i64 %46, %20
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = add i64 %50, %35
%52 = inttoptr i64 %51 to i8*
store i8 0, i8* %52, align 1
store i64 %46, i64* %rsi.1.reg2mem
br label LBL_9
LBL_9:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%53 = add i32 %storemerge6.reload, 1
%54 = load i32, i32* %14, align 8
%55 = zext i32 %54 to i64
%56 = sext i32 %53 to i64
%57 = icmp slt i64 %56, %55
store i64 %56, i64* %.reg2mem
store i32 %53, i32* %storemerge6.reg2mem
store i64 %rsi.1.reload, i64* %rsi.25.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_6, label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
LBL_11:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%58 = icmp eq i64 %rsi.3.reload, 0
%or.cond = or i1 %2, %58
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
br i1 %or.cond, label LBL_15, label LBL_12
LBL_12:
%59 = load i32, i32* %14, align 8
%60 = icmp eq i32 %59, 0
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
br i1 %60, label LBL_15, label LBL_13
LBL_13:
%61 = zext i32 %59 to i64
store i64 0, i64* %.reg2mem10
store i32 0, i32* %storemerge14.reg2mem
br label LBL_14
LBL_14:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload11 = load i64, i64* %.reg2mem10
%62 = mul i64 %.reload11, 8
%63 = add i64 %62, %rsi.3.reload
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = inttoptr i64 %65 to i64*
call void @free(i64* %66)
%67 = add i32 %storemerge14.reload, 1
%68 = sext i32 %67 to i64
%69 = icmp slt i64 %68, %61
store i64 %68, i64* %.reg2mem10
store i32 %67, i32* %storemerge14.reg2mem
store i64 %rsi.3.reload, i64* %rdx.2.reg2mem
br i1 %69, label LBL_14, label LBL_15
LBL_15:
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%70 = inttoptr i64 %rdx.2.reload to i64*
call void @free(i64* %70)
store i64 4294967284, i64* %sv_0.0.reg2mem
br label LBL_10
uselistorder i64 %rsi.3.reload, { 0, 2, 1 }
uselistorder i64 %20, { 4, 3, 2, 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %rsi.25.reload, { 0, 1, 3, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i1 %2, { 1, 0, 2, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.25.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 3, 0, 1, 2 }
uselistorder i64* %.reg2mem10, { 2, 0, 1 }
uselistorder i32* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64* %arg3, { 0, 2, 1 }
uselistorder i64* %arg2, { 0, 1, 4, 2, 3 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | ogs_tlv_parse_block_5982 | ogs_tlv_parse_block | define i64 @FUNC(i64 %arg1, i32* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.lcssa4.reg2mem = alloca i64
%rcx.0.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i32*
%sv_0.05.reg2mem = alloca i64
%sv_1.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_2 = alloca i32*, align 8
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = ptrtoint i32* %arg2 to i64
%5 = bitcast i32** %sv_2 to i64*
store i64 %4, i64* %5, align 8
%6 = call i64 @FUNC()
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %6, i64 %4, i8 %arg3)
%9 = call i64 @FUNC(i64 %8)
%10 = sub i64 %8, %4
%11 = and i64 %3, 4294967295
%12 = icmp slt i64 %10, %11
store i64 %6, i64* %sv_1.06.reg2mem
store i64 %8, i64* %sv_0.05.reg2mem
store i32* %arg2, i32** %.reg2mem
store i64 %8, i64* %sv_0.0.lcssa.reg2mem
store i64 %4, i64* %rcx.0.lcssa.reg2mem
store i64 %10, i64* %.lcssa4.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_1:
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%13 = call i64 @FUNC()
%14 = call i64 @FUNC(i64 %13)
%15 = inttoptr i64 %sv_1.06.reload to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %13, i64 %sv_0.05.reload, i8 %arg3)
%17 = call i64 @FUNC(i64 %16)
%18 = load i32*, i32** %sv_2, align 8
%19 = ptrtoint i32* %18 to i64
%20 = sub i64 %16, %19
%21 = icmp slt i64 %20, %11
store i64 %13, i64* %sv_1.06.reg2mem
store i64 %16, i64* %sv_0.05.reg2mem
store i32* %18, i32** %.reg2mem
store i64 %16, i64* %sv_0.0.lcssa.reg2mem
store i64 %sv_0.05.reload, i64* %rcx.0.lcssa.reg2mem
store i64 %20, i64* %.lcssa4.reg2mem
br i1 %21, label LBL_1, label LBL_2
LBL_2:
%.lcssa4.reload = load i64, i64* %.lcssa4.reg2mem
%22 = icmp eq i64 %11, %.lcssa4.reload
store i64 %6, i64* %storemerge.reg2mem
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%.reload = load i32*, i32** %.reg2mem
%23 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %11, i8 %arg3, i64 %rcx.0.lcssa.reload, i64 %2, i64 %1)
%24 = ptrtoint i32* %.reload to i64
%25 = sub i64 %sv_0.0.lcssa.reload, %24
%26 = and i64 %25, 4294967295
%27 = trunc i64 %24 to i8
%28 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %sv_0.0.lcssa.reload, i8 %27, i64 %26, i64 %2, i64 %1)
%29 = trunc i64 %3 to i32
%30 = call i64 @FUNC(i64 1, i64 %4, i32 %29)
%31 = call i64 @FUNC(i64 %6)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %11, { 0, 1, 3, 2 }
uselistorder i64 %6, { 2, 0, 1, 3, 4 }
uselistorder i64 %4, { 2, 0, 1, 4, 3 }
uselistorder i32** %sv_2, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_1.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 (i8*, i64, i8, i64, i64, i64)* @ogs_error, { 1, 0 }
uselistorder i64 (i64, i64, i8)* @tlv_get_element, { 1, 0 }
uselistorder i64 (i64)* @ogs_assert, { 3, 2, 1, 0 }
uselistorder i64 ()* @ogs_tlv_get, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | pci_init_multifunction_15204 | pci_init_multifunction | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i8
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg2 to i64
%6 = trunc i64 %3 to i8
%7 = urem i64 %3, 256
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %5, 1
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = urem i8 %11, 2
%13 = icmp eq i8 %12, 0
store i64 %7, i64* %.pre-phi.reg2mem
store i8 %6, i8* %.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = bitcast i64* %rsi to i8*
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = or i8 %17, -128
store i8 %18, i8* %16, align 1
%.pre = load i8, i8* %14, align 8
%.pre6 = zext i8 %.pre to i64
store i64 %.pre6, i64* %.pre-phi.reg2mem
store i8 %.pre, i8* %.reg2mem
br label LBL_2
LBL_2:
%19 = ptrtoint i64* %arg1 to i64
%20 = trunc i64 %8 to i32
%sext = mul i32 %20, 16777216
%21 = ashr exact i32 %sext, 24
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%22 = call i64 @FUNC(i64 %.pre-phi.reload)
%23 = trunc i64 %22 to i8
%24 = icmp eq i8 %23, 0
br i1 %24, label LBL_6, label LBL_3
LBL_3:
%25 = mul i64 %8, 64
%26 = and i64 %25, 16320
%27 = add i64 %26, %19
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_11, label LBL_4
LBL_4:
%31 = add i64 %29, 1
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = urem i8 %33, 2
%35 = icmp eq i8 %34, 0
%36 = icmp eq i1 %35, false
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_11, label LBL_5
LBL_5:
%.reload = load i8, i8* %.reg2mem
%37 = zext i8 %.reload to i64
%38 = call i64 @FUNC(i64 %37)
%39 = urem i64 %38, 256
%40 = urem i32 %21, 256
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_0, i64 0, i64 0), i64 %41, i64 %39, i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%43 = load i8, i8* %10, align 1
%44 = urem i8 %43, 2
%45 = icmp eq i8 %44, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_7, label LBL_11
LBL_7:
%46 = mul i32 %20, 8
%47 = and i32 %46, 2040
store i32 1, i32* %storemerge4.reg2mem
br label LBL_8
LBL_8:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%48 = urem i32 %storemerge4.reload, 256
%49 = or i32 %48, %47
%50 = mul i32 %49, 8
%51 = zext i32 %50 to i64
%52 = add i64 %51, %19
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_10, label LBL_9
LBL_9:
%56 = zext i32 %48 to i64
%57 = urem i32 %21, 256
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_1, i64 0, i64 0), i64 %58, i64 %58, i64 %56, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%60 = mul i32 %storemerge4.reload, 16777216
%sext3 = add i32 %60, 16777216
%61 = ashr exact i32 %sext3, 24
%62 = trunc i32 %61 to i8
%63 = icmp ult i8 %62, 8
store i32 %61, i32* %storemerge4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %63, label LBL_8, label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %58, { 1, 0 }
uselistorder i32 %48, { 1, 0 }
uselistorder i32 %storemerge4.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 2, 5, 4, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 }
uselistorder i64 (i64)* @PCI_FUNC, { 1, 0 }
uselistorder i32 16777216, { 2, 0, 1 }
uselistorder i8 0, { 0, 1, 4, 2, 5, 3 }
uselistorder label LBL_11, { 0, 4, 1, 5, 3, 2 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | mov_seek_stream_2776 | mov_seek_stream | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i32
%storemerge412.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %2, i64 %arg3, i32 %arg4)
%8 = trunc i64 %7 to i32
%9 = and i64 %7, 4294967295
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %arg3, i64 %9)
%12 = icmp slt i32 %8, 0
%13 = icmp eq i1 %12, false
store i32 %8, i32* %sv_1.0.reg2mem
br i1 %13, label LBL_3, label LBL_1
LBL_1:
%14 = add i64 %2, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
store i32 %8, i32* %sv_1.0.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp sgt i64 %22, %arg3
%spec.select = select i1 %23, i32 0, i32 %8
store i32 %spec.select, i32* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%24 = icmp slt i32 %sv_1.0.reload, 0
%25 = icmp eq i1 %24, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %25, label LBL_4, label LBL_14
LBL_4:
%26 = inttoptr i64 %6 to i32*
%27 = bitcast i64* %rsi to i32*
store i32 %sv_1.0.reload, i32* %26, align 4
%28 = load i32, i32* %27, align 8
%29 = zext i32 %sv_1.0.reload to i64
%30 = zext i32 %28 to i64
%31 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %30, i64 %29, i64 %9)
%32 = add i64 %6, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_10, label LBL_5
LBL_5:
%36 = add i64 %6, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_10, label LBL_6
LBL_6:
%40 = load i32, i32* %26, align 4
%41 = zext i32 %40 to i64
store i32 0, i32* %storemerge412.reg2mem
store i32 0, i32* %sv_0.011.reg2mem
br label LBL_7
LBL_7:
%sv_0.011.reload = load i32, i32* %sv_0.011.reg2mem
%storemerge412.reload = load i32, i32* %storemerge412.reg2mem
%42 = zext i32 %storemerge412.reload to i64
%43 = mul i64 %42, 4
%44 = add i64 %43, %34
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i32 %46, %sv_0.011.reload
%48 = sext i32 %47 to i64
%49 = icmp sgt i64 %48, %41
br i1 %49, label LBL_8, label LBL_9
LBL_8:
%50 = add i64 %6, 20
%51 = inttoptr i64 %50 to i32*
store i32 %storemerge412.reload, i32* %51, align 4
%52 = load i32, i32* %26, align 4
%53 = sub i32 %52, %sv_0.011.reload
%54 = add i64 %6, 24
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
br label LBL_10
LBL_9:
%56 = add i32 %storemerge412.reload, 1
%57 = icmp ult i32 %56, %38
store i32 %56, i32* %storemerge412.reg2mem
store i32 %47, i32* %sv_0.011.reg2mem
br i1 %57, label LBL_7, label LBL_10
LBL_10:
%58 = add i64 %6, 16
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = icmp eq i32 %60, 0
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.19.reg2mem
store i64 %29, i64* %storemerge.reg2mem
br i1 %61, label LBL_14, label LBL_11
LBL_11:
%sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%62 = call i64 @FUNC(i64 %6, i64 %indvars.iv.reload)
%63 = trunc i64 %62 to i32
%64 = add i32 %sv_0.19.reload, %63
%65 = load i32, i32* %26, align 4
%66 = zext i32 %65 to i64
%67 = sext i32 %64 to i64
%68 = icmp sgt i64 %67, %66
br i1 %68, label LBL_12, label LBL_13
LBL_12:
%69 = trunc i64 %indvars.iv.reload to i32
%70 = add i64 %6, 28
%71 = inttoptr i64 %70 to i32*
store i32 %69, i32* %71, align 4
%72 = load i32, i32* %26, align 4
%73 = sub i32 %72, %sv_0.19.reload
%74 = add i64 %6, 32
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
store i64 %29, i64* %storemerge.reg2mem
br label LBL_14
LBL_13:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%76 = load i32, i32* %59, align 4
%77 = zext i32 %76 to i64
%78 = icmp ult i64 %indvars.iv.next, %77
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %64, i32* %sv_0.19.reg2mem
store i64 %29, i64* %storemerge.reg2mem
br i1 %78, label LBL_11, label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.19.reload, { 1, 0 }
uselistorder i32* %59, { 1, 0 }
uselistorder i32 %storemerge412.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.011.reload, { 1, 0 }
uselistorder i64 %29, { 0, 2, 1, 3 }
uselistorder i32* %26, { 2, 3, 0, 1, 4 }
uselistorder i32 %sv_1.0.reload, { 1, 0, 2 }
uselistorder i32 %8, { 2, 0, 1, 3 }
uselistorder i64 %6, { 2, 3, 4, 5, 0, 1, 6, 7, 8 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i32* %storemerge412.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.19.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_14, { 0, 2, 1, 3 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 0, 2, 1, 3 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | decode_copy_3147 | decode_copy | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = mul i32 %arg4, %arg3
%3 = call i64 @FUNC(i64 %1, i64 %0, i32 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %2, %4
%. = select i1 %5, i64 0, i64 4294967295
ret i64 %.
uselistorder i64 4294967295, { 1, 0 }
} | 0 |
BinRealVul | netlink_kernel_create_18546 | netlink_kernel_create | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 0)
%3 = icmp sgt i32 %0, -1
%4 = trunc i64 %1 to i32
%5 = icmp slt i32 %4, 256
%or.cond = icmp eq i1 %3, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_11
LBL_1:
%6 = and i64 %1, 4294967295
%7 = call i64 @FUNC(i64 16, i64 2, i64 %6, i64* nonnull %sv_1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_11
LBL_2:
%10 = ptrtoint i64* %arg5 to i64
%11 = ptrtoint i64* %arg1 to i64
%12 = load i64, i64* %sv_1, align 8
%13 = call i64 @FUNC(i64 %11, i64 %12, i64 %10, i32 %4)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_10, label LBL_3
LBL_3:
%sext3 = mul i64 %arg3, 4294967296
%16 = ashr exact i64 %sext3, 32
%17 = trunc i64 %16 to i32
%18 = icmp ult i32 %17, 32
%spec.select = select i1 %18, i64 32, i64 %16
%19 = add nsw i64 %spec.select, 31
%20 = udiv i64 %19, 4
%21 = and i64 %20, 1073741816
%22 = call i64 @FUNC(i64 %21, i64 0)
%23 = icmp eq i64 %22, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_10, label LBL_4
LBL_4:
%24 = load i64, i64* %sv_1, align 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %26, 8
%28 = inttoptr i64 %27 to i64*
store i64 4198710, i64* %28, align 8
%29 = icmp eq i64 %arg4, 0
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%30 = call i64 @FUNC(i64 %26)
%31 = add i64 %30, 8
%32 = inttoptr i64 %31 to i64*
store i64 %arg4, i64* %32, align 8
br label LBL_6
LBL_6:
%33 = call i64 @FUNC(i64 %26, i64 %11, i64 0)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 %22, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_10, label LBL_7
LBL_7:
%37 = call i64 @FUNC(i64 %26)
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = or i32 %39, 1
store i32 %40, i32* %38, align 4
%41 = call i64 @FUNC()
%42 = ashr exact i64 %sext, 30
%43 = add nsw i64 %42, %1
%44 = mul i64 %43, 8
%45 = add i64 %44, ptrtoint (i32** @gv_0 to i64)
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 8
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_9, label LBL_8
LBL_8:
%50 = ptrtoint i64* %arg6 to i64
%51 = add i64 %44, ptrtoint (i32** @gv_1 to i64)
%52 = trunc i64 %spec.select to i32
%53 = inttoptr i64 %51 to i32*
store i32 %52, i32* %53, align 8
%54 = add i64 %44, ptrtoint (i64* @gv_2 to i64)
%55 = inttoptr i64 %54 to i64*
store i64 %22, i64* %55, align 8
%56 = add i64 %44, ptrtoint (i64* @gv_3 to i64)
%57 = inttoptr i64 %56 to i64*
store i64 %10, i64* %57, align 8
%58 = add i64 %44, ptrtoint (i64* @gv_4 to i64)
%59 = inttoptr i64 %58 to i64*
store i64 %50, i64* %59, align 8
store i32 1, i32* %46, align 8
br label LBL_9
LBL_9:
%60 = call i64 @FUNC()
store i64 %26, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%61 = call i64 @FUNC(i64 %sv_0.0.reload)
%62 = load i64, i64* %sv_1, align 8
%63 = call i64 @FUNC(i64 %62)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %44, { 4, 3, 2, 1, 0 }
uselistorder i64 %26, { 0, 2, 3, 1, 4 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 3, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64)* @nlk_sk, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_11, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | web_server_init_9642 | web_server_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.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 0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = call i64 @FUNC(i64* nonnull @gv_1)
%5 = call i64 @FUNC()
store i64 0, i64* @gv_2, align 8
store i64 0, i64* @gv_3, align 8
store i64 0, i64* @gv_4, align 8
store i64 0, i64* @gv_5, align 8
store i64 0, i64* @gv_6, align 8
store i64 0, i64* @gv_7, align 8
store i64 0, i64* @gv_8, align 8
%6 = call i64 @FUNC(i64* nonnull @gv_9, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, -1
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_2, label LBL_3
LBL_2:
store i32 1, i32* @gv_0, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | do_cmd_13659 | do_cmd | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = inttoptr i64 %arg2 to i8*
%1 = call i32 @system(i8* %0)
%2 = icmp eq i32 %1, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = urem i32 %1, 128
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
store i64 ptrtoint ([24 x i8]* @gv_0 to i64), i64* %arg1, align 8
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i8* %0)
br label LBL_4
LBL_3:
store i64 ptrtoint ([29 x i8]* @gv_2 to i64), i64* %arg1, align 8
br label LBL_4
LBL_4:
%7 = zext i32 %1 to i64
store i64 %7, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 0, { 1, 2, 0, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | decode_studio_vop_header_11262 | decode_studio_vop_header | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%.pre-phi2.reg2mem = alloca i32*
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 32
br i1 %3, label LBL_1, label LBL_13
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = bitcast i64* %arg1 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i64*
store i64 4198807, i64* %7, align 8
%8 = call i64 @FUNC(i64 %4, i64 %0)
%9 = call i64 @FUNC(i64 %0, i64 10)
%10 = call i64 @FUNC(i64 %0, i64 2)
%11 = call i64 @FUNC(i64 %0, i64 2)
%12 = trunc i64 %11 to i32
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = call i64 @FUNC(i64 %0)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %0)
%19 = call i64 @FUNC(i64 %0)
%20 = call i64 @FUNC(i64 %0)
%21 = trunc i64 %20 to i32
%22 = xor i32 %21, 1
%23 = add i64 %4, 20
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
br label LBL_3
LBL_3:
%25 = load i32, i32* %14, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_4
LBL_4:
%28 = call i64 @FUNC(i64 %0)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = call i64 @FUNC(i64 %4)
br label LBL_6
LBL_6:
%32 = add i64 %4, 88
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_6.LBL_9_crit_edge, label LBL_8
LBL_7:
%.pre = add i64 %4, 24
%.pre1 = inttoptr i64 %.pre to i32*
store i32* %.pre1, i32** %.pre-phi2.reg2mem
br label LBL_9
LBL_8:
%36 = call i64 @FUNC(i64 %0)
%37 = trunc i64 %36 to i32
%38 = add i64 %4, 24
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = call i64 @FUNC(i64 %0)
%41 = trunc i64 %40 to i32
%42 = add i64 %4, 28
%43 = inttoptr i64 %42 to i32*
store i32 %41, i32* %43, align 4
%44 = call i64 @FUNC(i64 %0, i64 2)
%45 = trunc i64 %44 to i32
%46 = add i64 %4, 32
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
%48 = call i64 @FUNC(i64 %0, i64 2)
%49 = trunc i64 %48 to i32
%50 = add i64 %4, 36
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = call i64 @FUNC(i64 %0)
%53 = trunc i64 %52 to i32
%54 = add i64 %4, 40
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
store i32* %39, i32** %.pre-phi2.reg2mem
br label LBL_9
LBL_9:
%.pre-phi2.reload = load i32*, i32** %.pre-phi2.reg2mem
%56 = load i32, i32* %.pre-phi2.reload, align 4
%57 = icmp eq i32 %56, 0
%58 = add i64 %4, 48
%59 = add i64 %4, 80
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = zext i32 %61 to i64
br i1 %57, label LBL_11, label LBL_10
LBL_10:
%63 = call i64 @FUNC(i64 %62, i64 %58, i64 0)
%64 = add i64 %4, 56
%65 = load i32, i32* %60, align 4
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %66, i64 %64, i64 0)
%68 = add i64 %4, 64
%69 = load i32, i32* %60, align 4
%70 = zext i32 %69 to i64
%71 = call i64 @FUNC(i64 %70, i64 %68, i64 0)
%72 = add i64 %4, 72
%73 = load i32, i32* %60, align 4
%74 = zext i32 %73 to i64
%75 = call i64 @FUNC(i64 %74, i64 %72, i64 0)
br label LBL_12
LBL_11:
%76 = call i64 @FUNC(i64 %62, i64 %58, i64 1)
%77 = add i64 %4, 56
%78 = load i32, i32* %60, align 4
%79 = zext i32 %78 to i64
%80 = call i64 @FUNC(i64 %79, i64 %77, i64 1)
%81 = add i64 %4, 64
%82 = load i32, i32* %60, align 4
%83 = zext i32 %82 to i64
%84 = call i64 @FUNC(i64 %83, i64 %81, i64 2)
%85 = add i64 %4, 72
%86 = load i32, i32* %60, align 4
%87 = zext i32 %86 to i64
%88 = call i64 @FUNC(i64 %87, i64 %85, i64 0)
br label LBL_12
LBL_12:
%89 = call i64 @FUNC(i64 %4)
%90 = call i64 @FUNC(i64 %0)
%91 = call i64 @FUNC(i64 %4, i64 %0, i64 4)
br label LBL_13
LBL_13:
ret i64 0
uselistorder i64 %62, { 1, 0 }
uselistorder i32* %60, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder i64 %58, { 1, 0 }
uselistorder i64 %4, { 11, 12, 13, 14, 15, 8, 9, 10, 16, 17, 3, 4, 5, 6, 7, 0, 18, 2, 1, 19, 20, 21 }
uselistorder i64 %0, { 10, 9, 4, 5, 6, 7, 8, 3, 2, 1, 0, 11, 15, 14, 13, 12, 16 }
uselistorder i64 (i64, i64, i64)* @ff_init_scantable, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i64 (i64)* @skip_bits1, { 1, 0 }
uselistorder i64 (i64)* @get_bits1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @skip_bits, { 2, 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | del_existing_snapshots_1492 | del_existing_snapshots | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%4 = ptrtoint i64* %sv_1 to i64
store i64 %4, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%5 = call i64 @FUNC(i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%.reload = load i64, i64* %.reg2mem
%8 = call i64 @FUNC(i64 %.reload)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %.reload)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %13, label LBL_1, label LBL_6
LBL_3:
%14 = load i64, i64* %sv_1, align 8
%15 = call i64 @FUNC(i64 %.reload, i64 %14, i64 %arg2)
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %16, 0
br i1 %17, label LBL_2, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %.reload, i64 %arg2, i64* nonnull %sv_0)
%19 = call i64 @FUNC(i64* nonnull %sv_0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_2, label LBL_5
LBL_5:
%22 = load i64, i64* %sv_0, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = call i64 @FUNC(i64 %.reload)
%25 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i64 %24, i64 %23, i64 %2, i64 %1)
%26 = load i64, i64* %sv_0, align 8
%27 = call i64 @FUNC(i64 %26)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.reload, { 4, 0, 1, 3, 2 }
uselistorder i64* %sv_0, { 2, 3, 0, 1, 4 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64)* @bdrv_next, { 1, 0 }
uselistorder i64 0, { 7, 8, 0, 11, 1, 5, 6, 10, 2, 3, 4, 9 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_2, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | additive_6388 | additive | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.be.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC()
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
%2 = call i64 @FUNC()
%3 = call i64 @FUNC(i64 %arg1, i64 43)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = call i64 @FUNC(i64 1, i64 %sv_0.0.reload, i64 %6)
store i64 %7, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_3:
%sv_0.0.be.reload = load i64, i64* %sv_0.0.be.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_4:
%8 = call i64 @FUNC(i64 %arg1, i64 45)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%11 = call i64 @FUNC(i64 %arg1)
%12 = call i64 @FUNC(i64 2, i64 %sv_0.0.reload, i64 %11)
store i64 %12, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_6:
%13 = call i64 @FUNC()
ret i64 %sv_0.0.reload
uselistorder i64 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.be.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @EXP2, { 1, 0 }
uselistorder i64 (i64, i64)* @jsP_accept, { 1, 0 }
uselistorder i64 (i64)* @multiplicative, { 2, 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_1.backedge, { 1, 0 }
} | 0 |
BinRealVul | donttouch_stat_8323 | donttouch_stat | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, -1
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_16, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, -1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_16, label LBL_2
LBL_2:
%11 = add i64 %5, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_16, label LBL_3
LBL_3:
%16 = add i64 %5, 12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, -1
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_16, label LBL_4
LBL_4:
%21 = add i64 %5, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, -1
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_16, label LBL_5
LBL_5:
%26 = add i64 %5, 20
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, -1
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_16, label LBL_6
LBL_6:
%31 = add i64 %5, 24
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, -1
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_16, label LBL_7
LBL_7:
%36 = add i64 %5, 28
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, -1
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_16, label LBL_8
LBL_8:
%41 = add i64 %5, 32
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, -1
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_16, label LBL_9
LBL_9:
%46 = add i64 %5, 40
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_16, label LBL_10
LBL_10:
%51 = add i64 %5, 48
%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
br i1 %55, label LBL_16, label LBL_11
LBL_11:
%56 = add i64 %5, 56
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_16, label LBL_12
LBL_12:
%61 = add i64 %5, 64
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = icmp eq i64 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_16, label LBL_13
LBL_13:
%66 = add i64 %5, 72
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, -1
%70 = icmp eq i1 %69, false
br i1 %70, label LBL_16, label LBL_14
LBL_14:
%71 = add i64 %5, 76
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %73, -1
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_16, label LBL_15
LBL_15:
%76 = add i64 %5, 80
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = icmp eq i32 %78, -1
%80 = icmp eq i1 %79, false
store i64 1, i64* %storemerge.reg2mem
br i1 %80, label LBL_16, label LBL_17
LBL_16:
store i64 0, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_17, { 1, 0 }
} | 0 |
BinRealVul | destroy_buffers_13910 | destroy_buffers | 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 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 32
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 56
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = add i64 %0, 48
%13 = inttoptr i64 %12 to i64*
store i64 0, i64* %13, align 8
%14 = add i64 %0, 40
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %15, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64 (i64)* @av_freep, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | get_write_list_size_12546 | get_write_list_size | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem14 = alloca i64
%.reg2mem12 = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext3 = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext3, 32
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %0, i64 %2)
%sext47 = add i64 %sext3, 17179869184
%4 = ashr exact i64 %sext47, 32
%5 = trunc i64 %4 to i32
%6 = trunc i64 %arg2 to i32
%7 = icmp ugt i32 %5, %6
store i32 %5, i32* %.reg2mem
store i64 %4, i64* %.reg2mem12
store i64 %3, i64* %.reg2mem14
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_1:
%8 = sext i32 %20 to i64
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %0, i64 %9)
%11 = mul i64 %8, 4294967296
%sext4 = add i64 %11, 17179869184
%12 = ashr exact i64 %sext4, 32
%13 = trunc i64 %12 to i32
%14 = icmp ugt i32 %13, %6
store i32 %13, i32* %.reg2mem
store i64 %12, i64* %.reg2mem12
store i64 %10, i64* %.reg2mem14
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_2
LBL_2:
%.reload15 = load i64, i64* %.reg2mem14
%.reload13 = load i64, i64* %.reg2mem12
%15 = trunc i64 %.reload15 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%17 = and i64 %.reload13, 4294967295
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = trunc i64 %18 to i32
%20 = add i32 %.reload, %19
%21 = icmp uge i32 %20, %.reload
%22 = icmp ugt i32 %20, %6
%23 = icmp eq i1 %22, false
%or.cond = icmp eq i1 %21, %23
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_5
LBL_4:
%24 = sub nsw i64 %.reload13, %1
%25 = and i64 %24, 4294967295
store i64 %25, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %20, { 0, 2, 1 }
uselistorder i64 %.reload13, { 1, 0 }
uselistorder i32 %6, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %sext3, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem12, { 0, 2, 1 }
uselistorder i64* %.reg2mem14, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 17179869184, { 1, 0 }
uselistorder i64 (i64, i64)* @tvb_get_ntohl, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder label LBL_5, { 3, 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | cache_expand_8271 | cache_expand | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i8*, align 8
%0 = icmp eq i64* %arg3, null
%1 = ptrtoint i8* %arg4 to i64
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg3 to i64
%3 = bitcast i8** %sv_1 to i64*
%4 = call i64 @FUNC(i64 %2, i64* nonnull %3)
store i64 %1, i64* %3, align 8
%5 = call i64 @FUNC(i64* nonnull %3, i64* nonnull %sv_0, i64 4096, i64 0)
br label LBL_3
LBL_2:
%6 = icmp eq i8* %arg4, null
%storemerge = select i1 %6, i64 ptrtoint (i64* @gv_0 to i64), i64 %1
%7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %storemerge, i64 4096)
br label LBL_3
LBL_3:
%8 = ptrtoint i64* %arg1 to i64
%9 = load [15 x i8]*, [15 x i8]** @gv_1, align 8
%10 = bitcast i64* %arg1 to i8*
%11 = trunc i64 %arg2 to i32
%12 = getelementptr inbounds [15 x i8], [15 x i8]* %9, i64 0, i64 0
%13 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %10, i32 %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i8* %12, i64* nonnull %sv_0)
%14 = call i32 @strlen(i8* %10)
%15 = sext i32 %14 to i64
%16 = add i64 %8, -1
%17 = add i64 %16, %15
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 47
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
store i8 0, i8* %18, align 1
br label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %8, i64 %arg2)
%23 = call i64 @FUNC(i64 %8, i64 %arg2, i64 %8)
ret i64 %23
uselistorder i8* %10, { 1, 0 }
uselistorder i64 %8, { 2, 3, 1, 0 }
uselistorder i8* %arg4, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
} | 0 |
BinRealVul | mmap_rnd_5831 | mmap_rnd | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = urem i64 %2, 2
%4 = icmp eq i64 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
%6 = mul i64 %5, 4096
%phitmp = and i64 %6, 61440
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
} | 0 |
BinRealVul | inject_undef32_exception_12281 | inject_undef32_exception | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = and i32 %3, 32
%5 = icmp eq i32 %4, 0
%. = select i1 %5, i32 4, i32 2
%6 = load i64, i64* @gv_0, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i64
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %2, i64 31)
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
store i32 %3, i32* %16, align 4
%17 = add i64 %2, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i32 %19, %.
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = call i64 @FUNC(i64 12)
%24 = trunc i64 %23 to i32
store i32 %24, i32* %18, align 4
ret i64 %23
uselistorder i64 %23, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | manager_environment_add_18170 | manager_environment_add | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_0.1.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([2 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%3 = ptrtoint i64* %arg2 to i64
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %sv_2.0.reg2mem
store i64 %rdi.0.reload, i64* %sv_0.0.in.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %rdi.0.reload, i64 1, i64 %3)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %sv_2.0.reg2mem
store i64 %8, i64* %sv_0.0.in.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_13
LBL_4:
%11 = ptrtoint i64* %arg3 to i64
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %sv_1.0.reg2mem
store i64 %sv_0.0.in.reload, i64* %sv_0.1.in.reg2mem
store i64 %11, i64* %rdi.1.reg2mem
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 2, i64 %sv_0.0.in.reload, i64 %11)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %sv_1.0.reg2mem
store i64 %16, i64* %sv_0.1.in.reg2mem
store i64 2, i64* %rdi.1.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_13
LBL_6:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%sv_0.1.in.reload = load i64, i64* %sv_0.1.in.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%19 = icmp eq i64 %rdi.1.reload, %sv_0.1.in.reload
br i1 %19, label LBL_8, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %rdi.1.reload)
br label LBL_8
LBL_8:
%21 = icmp eq i64 %sv_2.0.reload, %sv_0.1.in.reload
br i1 %21, label LBL_10, label LBL_9
LBL_9:
%22 = call i64 @FUNC(i64 %sv_2.0.reload)
br label LBL_10
LBL_10:
%23 = icmp eq i64 %sv_1.0.reload, %sv_0.1.in.reload
br i1 %23, label LBL_12, label LBL_11
LBL_11:
%24 = call i64 @FUNC(i64 %sv_1.0.reload)
br label LBL_12
LBL_12:
store i64 %sv_0.1.in.reload, i64* %arg1, align 8
%25 = call i64 @FUNC(i64 %0)
%26 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.1.in.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 1, 0 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %rdi.0.reload, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @strv_free, { 2, 1, 0 }
uselistorder i64 (i64)* @strv_isempty, { 1, 0 }
uselistorder [2 x i8]* @gv_0, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder label LBL_13, { 2, 0, 1 }
} | 1 |
BinRealVul | free_clt_6469 | free_clt | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 8
%4 = call i64 @FUNC(i64 %3)
ret i64 %4
uselistorder i64 %0, { 0, 2, 1 }
} | 0 |
BinRealVul | unpack_15589 | unpack | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.be.reg2mem = alloca i32
%sv_1.1.be.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_5.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_5.0.reg2mem = alloca i32
%sv_2.28.reg2mem = alloca i64
%sv_1.19.reg2mem = alloca i64
%sv_0.110.reg2mem = alloca i32
%sv_3.111.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = urem i64 %1, 2
%5 = icmp eq i64 %4, 0
%storemerge.v = select i1 %5, i64 2, i64 5
%storemerge = add i64 %storemerge.v, %3
%6 = add i64 %storemerge, 3
%7 = icmp ugt i64 %6, %2
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_18
LBL_1:
%9 = ptrtoint i64* %arg3 to i64
%10 = trunc i64 %arg5 to i32
%11 = mul i32 %10, %arg4
%12 = sext i32 %11 to i64
%13 = add i64 %12, %9
%14 = inttoptr i64 %storemerge to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i32
%17 = mul i32 %16, 65536
%18 = add i64 %storemerge, 1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = zext i8 %20 to i32
%22 = mul i32 %21, 256
%23 = or i32 %22, %17
%24 = add i64 %storemerge, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i32
%28 = or i32 %23, %27
%29 = icmp ne i32 %28, 0
%30 = icmp ult i64 %6, %2
%or.cond7 = icmp eq i1 %30, %29
store i32 %28, i32* %sv_0.110.reg2mem
store i64 %9, i64* %sv_1.19.reg2mem
store i64 %6, i64* %sv_2.28.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond7, label LBL_2, label LBL_18
LBL_2:
%sv_2.28.reload = load i64, i64* %sv_2.28.reg2mem
%sv_1.19.reload = load i64, i64* %sv_1.19.reg2mem
%sv_0.110.reload = load i32, i32* %sv_0.110.reg2mem
%31 = inttoptr i64 %sv_2.28.reload to i8*
%32 = load i8, i8* %31, align 1
%33 = urem i8 %32, 4
%34 = zext i8 %33 to i32
%35 = icmp slt i8 %32, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_10, label LBL_3
LBL_3:
%37 = and i8 %32, 64
%38 = icmp eq i8 %37, 0
br i1 %38, label LBL_9, label LBL_4
LBL_4:
%39 = and i8 %32, 32
%40 = icmp eq i8 %39, 0
br i1 %40, label LBL_8, label LBL_5
LBL_5:
%sv_3.111.reload = load i32, i32* %sv_3.111.reg2mem
%41 = icmp ult i8 %32, -4
store i32 %34, i32* %sv_5.0.reg2mem
br i1 %41, label LBL_6, label LBL_7
LBL_6:
%42 = mul i8 %32, 4
%narrow = and i8 %42, 124
%43 = add nuw i8 %narrow, 4
%44 = zext i8 %43 to i32
store i32 %44, i32* %sv_5.0.reg2mem
br label LBL_7
LBL_7:
%sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem
%45 = add i64 %sv_2.28.reload, 1
store i64 %45, i64* %sv_2.0.reg2mem
store i32 %sv_5.0.reload, i32* %sv_5.1.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i32 %sv_3.111.reload, i32* %sv_3.0.reg2mem
br label LBL_11
LBL_8:
%46 = zext i8 %32 to i32
%47 = mul i32 %46, 4096
%48 = and i32 %47, 65536
%49 = add i64 %sv_2.28.reload, 1
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = zext i8 %51 to i32
%53 = mul i32 %52, 256
%54 = add i64 %sv_2.28.reload, 2
%55 = inttoptr i64 %54 to i8*
%56 = load i8, i8* %55, align 1
%57 = zext i8 %56 to i32
%58 = or i32 %48, %57
%59 = or i32 %58, %53
%60 = add nuw nsw i32 %59, 1
%61 = mul i32 %46, 64
%62 = and i32 %61, 768
%63 = add i64 %sv_2.28.reload, 3
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
%66 = zext i8 %65 to i32
%67 = or i32 %62, %66
%68 = add nuw nsw i32 %67, 5
%69 = add i64 %sv_2.28.reload, 4
store i64 %69, i64* %sv_2.0.reg2mem
store i32 %34, i32* %sv_5.1.reg2mem
store i32 %68, i32* %sv_4.0.reg2mem
store i32 %60, i32* %sv_3.0.reg2mem
br label LBL_11
LBL_9:
%70 = add i64 %sv_2.28.reload, 1
%71 = inttoptr i64 %70 to i8*
%72 = load i8, i8* %71, align 1
%73 = udiv i8 %72, 64
%74 = zext i8 %73 to i32
%75 = zext i8 %72 to i32
%76 = mul i32 %75, 256
%77 = add i64 %sv_2.28.reload, 2
%78 = inttoptr i64 %77 to i8*
%79 = load i8, i8* %78, align 1
%80 = zext i8 %79 to i32
%.masked = and i32 %76, 16128
%81 = or i32 %.masked, %80
%82 = add nuw nsw i32 %81, 1
%83 = urem i8 %32, 64
%narrow5 = add nuw nsw i8 %83, 4
%84 = zext i8 %narrow5 to i32
%85 = add i64 %sv_2.28.reload, 3
store i64 %85, i64* %sv_2.0.reg2mem
store i32 %74, i32* %sv_5.1.reg2mem
store i32 %84, i32* %sv_4.0.reg2mem
store i32 %82, i32* %sv_3.0.reg2mem
br label LBL_11
LBL_10:
%86 = zext i8 %32 to i32
%87 = mul i32 %86, 8
%88 = and i32 %87, 768
%89 = add i64 %sv_2.28.reload, 1
%90 = inttoptr i64 %89 to i8*
%91 = load i8, i8* %90, align 1
%92 = zext i8 %91 to i32
%93 = or i32 %88, %92
%94 = add nuw nsw i32 %93, 1
%95 = udiv i8 %32, 4
%96 = urem i8 %95, 8
%narrow6 = add nuw nsw i8 %96, 3
%97 = zext i8 %narrow6 to i32
%98 = add i64 %sv_2.28.reload, 2
store i64 %98, i64* %sv_2.0.reg2mem
store i32 %34, i32* %sv_5.1.reg2mem
store i32 %97, i32* %sv_4.0.reg2mem
store i32 %94, i32* %sv_3.0.reg2mem
br label LBL_11
LBL_11:
%sv_5.1.reload = load i32, i32* %sv_5.1.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%99 = sext i32 %sv_5.1.reload to i64
%100 = sub i64 %2, %sv_2.0.reload
%101 = icmp slt i64 %100, %99
store i64 0, i64* %rax.0.reg2mem
br i1 %101, label LBL_18, label LBL_12
LBL_12:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%102 = icmp slt i32 %sv_5.1.reload, 1
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i64 %sv_1.19.reload, i64* %sv_1.0.reg2mem
store i32 %sv_0.110.reload, i32* %sv_0.0.reg2mem
br i1 %102, label LBL_14, label LBL_13
LBL_13:
%103 = sub i32 %sv_0.110.reload, %sv_5.1.reload
%104 = sub i64 %13, %sv_1.19.reload
%105 = sub i64 %104, %99
%106 = xor i64 %104, %99
%107 = xor i64 %105, %104
%108 = and i64 %107, %106
%109 = icmp slt i64 %108, 0
%110 = icmp eq i64 %105, 0
%111 = icmp slt i64 %105, 0
%112 = icmp ne i1 %111, %109
%113 = or i1 %110, %112
%114 = select i1 %113, i64 %104, i64 %99
%115 = trunc i64 %114 to i32
%116 = inttoptr i64 %sv_1.19.reload to i64*
%117 = inttoptr i64 %sv_2.0.reload to i64*
%118 = call i64* @memcpy(i64* %116, i64* %117, i32 %115)
%sext2 = mul i64 %114, 4294967296
%119 = ashr exact i64 %sext2, 32
%120 = add i64 %119, %sv_1.19.reload
%121 = add i64 %119, %sv_2.0.reload
store i64 %121, i64* %sv_2.1.reg2mem
store i64 %120, i64* %sv_1.0.reg2mem
store i32 %103, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%122 = icmp slt i32 %sv_4.0.reload, 1
store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.be.reg2mem
br i1 %122, label LBL_15, label LBL_16
LBL_15:
%sv_0.1.be.reload = load i32, i32* %sv_0.1.be.reg2mem
%sv_1.1.be.reload = load i64, i64* %sv_1.1.be.reg2mem
%123 = icmp sgt i32 %sv_0.1.be.reload, 0
%124 = icmp ult i64 %sv_2.1.reload, %2
%or.cond = icmp eq i1 %124, %123
store i32 %sv_3.0.reload, i32* %sv_3.111.reg2mem
store i32 %sv_0.1.be.reload, i32* %sv_0.110.reg2mem
store i64 %sv_1.1.be.reload, i64* %sv_1.19.reg2mem
store i64 %sv_2.1.reload, i64* %sv_2.28.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_18
LBL_16:
%125 = sub i64 %sv_1.0.reload, %9
%126 = sext i32 %sv_3.0.reload to i64
%127 = icmp slt i64 %125, %126
store i64 0, i64* %rax.0.reg2mem
br i1 %127, label LBL_18, label LBL_17
LBL_17:
%128 = sub i32 %sv_0.0.reload, %sv_4.0.reload
%129 = sub i64 %13, %sv_1.0.reload
%130 = sext i32 %sv_4.0.reload to i64
%131 = sub i64 %129, %130
%132 = xor i64 %129, %130
%133 = xor i64 %131, %129
%134 = and i64 %133, %132
%135 = icmp slt i64 %134, 0
%136 = icmp eq i64 %131, 0
%137 = icmp slt i64 %131, 0
%138 = icmp ne i1 %137, %135
%139 = or i1 %136, %138
%140 = select i1 %139, i64 %129, i64 %130
%141 = trunc i64 %140 to i32
%142 = zext i32 %sv_3.0.reload to i64
%143 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %142, i32 %141)
%sext4 = mul i64 %140, 4294967296
%144 = ashr exact i64 %sext4, 32
%145 = add i64 %144, %sv_1.0.reload
store i64 %145, i64* %sv_1.1.be.reg2mem
store i32 %128, i32* %sv_0.1.be.reg2mem
br label LBL_15
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %131, { 1, 2, 0 }
uselistorder i64 %130, { 2, 0, 1 }
uselistorder i64 %129, { 3, 0, 1, 2 }
uselistorder i32 %sv_0.1.be.reload, { 1, 0 }
uselistorder i64 %sv_2.1.reload, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 4, 2, 3, 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %105, { 1, 2, 0 }
uselistorder i64 %104, { 3, 1, 0, 2 }
uselistorder i32 %sv_4.0.reload, { 2, 0, 1 }
uselistorder i32 %sv_3.0.reload, { 1, 0, 2 }
uselistorder i64 %99, { 1, 0, 2, 3 }
uselistorder i64 %sv_2.0.reload, { 3, 2, 0, 1 }
uselistorder i8 %72, { 1, 0 }
uselistorder i32 %34, { 1, 0, 2 }
uselistorder i8 %32, { 1, 4, 2, 8, 0, 7, 6, 5, 9, 3 }
uselistorder i32 %sv_0.110.reload, { 1, 0 }
uselistorder i64 %sv_1.19.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_2.28.reload, { 5, 6, 3, 4, 7, 1, 2, 9, 8, 0, 10 }
uselistorder i64 %13, { 1, 0 }
uselistorder i64 %9, { 2, 0, 1 }
uselistorder i64 %storemerge, { 3, 1, 2, 0 }
uselistorder i64 %2, { 1, 3, 0, 2 }
uselistorder i32* %sv_3.111.reg2mem, { 1, 0 }
uselistorder i32* %sv_0.110.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.19.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.28.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_5.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_5.1.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %sv_1.1.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.be.reg2mem, { 1, 0, 2 }
uselistorder i8 64, { 1, 0, 2 }
uselistorder i8 4, { 1, 3, 4, 0, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 2, { 2, 3, 4, 5, 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | bracketed_paste_5824 | bracketed_paste | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdx = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%0 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%1 = load i32, i32* inttoptr (i64 4210772 to i32*), align 4
%2 = load i32, i32* @gv_1, align 4
%3 = icmp eq i64 %0, 0
store i32 %2, i32* %.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 1024
%spec.select = select i1 %6, i64 %0, i64 0
%.pre = load i32, i32* @gv_1, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %spec.select, i64* %sv_2.0.reg2mem
br label LBL_2
LBL_2:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%.reload = load i32, i32* %.reg2mem
store i32 ptrtoint (i32* @gv_2 to i32), i32* @gv_3, align 4
store i32 0, i32* bitcast (i64* @gv_4 to i32*), align 8
%7 = icmp eq i32 %.reload, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i64 1, i64 0, i64 0)
br label LBL_4
LBL_4:
%10 = ptrtoint i64* %arg3 to i64
%11 = ptrtoint i64* %sv_4 to i64
%12 = icmp eq i64 %sv_2.0.reload, 0
%13 = icmp eq i1 %12, false
%14 = add i64 %11, -1072
%15 = bitcast i32* %sv_3 to i64*
%16 = trunc i64 %arg2 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
%19 = trunc i64 %arg1 to i32
%20 = icmp eq i32 %19, 3
%21 = icmp sgt i32 %19, 3
%22 = icmp ne i32 %19, 1
%23 = icmp eq i64* %arg3, null
%or.cond13 = or i1 %22, %23
%24 = add i64 %10, 8
%25 = inttoptr i64 %24 to i64*
%26 = bitcast i64* %rdx to i32*
%27 = bitcast i64* %arg3 to i32*
%28 = ptrtoint i32* %sv_3 to i64
%29 = trunc i64 %28 to i32
store i32 -1, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
br i1 %13, label LBL_8, label LBL_7
LBL_7:
%30 = call i64 @FUNC()
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_36, label LBL_8
LBL_8:
br label LBL_9
LBL_9:
%33 = call i64 @FUNC()
%34 = trunc i64 %33 to i32
%35 = icmp ugt i32 %34, -4
br i1 %35, label LBL_9, label LBL_10
LBL_10:
%36 = icmp eq i32 %34, 0
br i1 %36, label LBL_36, label LBL_11
LBL_11:
%37 = load i32, i32* @gv_6, align 4
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_36, label LBL_12
LBL_12:
%40 = load i32, i32* @gv_7, align 4
%41 = icmp sgt i32 %40, 0
%42 = icmp eq i32 %34, 3
%or.cond9 = icmp eq i1 %42, %41
br i1 %or.cond9, label LBL_36, label LBL_13
LBL_13:
%43 = load i32, i32* @gv_8, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_15, label LBL_14
LBL_14:
%45 = add i32 %sv_1.0.reload, %34
store i32 %45, i32* %sv_1.1.reg2mem
br label LBL_16
LBL_15:
%46 = add i32 %sv_1.0.reload, 1
%47 = sext i32 %sv_1.0.reload to i64
%48 = trunc i64 %33 to i8
%49 = add i64 %14, %47
%50 = inttoptr i64 %49 to i8*
store i8 %48, i8* %50, align 1
store i32 %46, i32* %sv_1.1.reg2mem
br label LBL_16
LBL_16:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%51 = sext i32 %sv_1.1.reload to i64
%52 = add i64 %14, %51
%53 = inttoptr i64 %52 to i8*
store i8 0, i8* %53, align 1
br i1 %12, label LBL_19, label LBL_17
LBL_17:
%54 = call i64 @FUNC(i64* nonnull %15, i64 %sv_2.0.reload, i64 %51)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_19, label LBL_18
LBL_18:
%58 = add i64 %sv_2.0.reload, %51
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = icmp eq i8 %60, 0
%62 = icmp eq i1 %61, false
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
br i1 %62, label LBL_6, label LBL_36
LBL_19:
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %18, label LBL_35, label LBL_20
LBL_20:
br i1 %20, label LBL_32, label LBL_21
LBL_21:
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %21, label LBL_35, label LBL_22
LBL_22:
switch i32 %19, label LBL_23 [
i32 2, label LBL_27
i32 0, label LBL_24
]
LBL_23:
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %or.cond13, label LBL_35, label LBL_25
LBL_24:
%63 = zext i32 %sv_1.1.reload to i64
%64 = call i64 @FUNC(i64* nonnull %15, i64 %63, i64 1)
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_35
LBL_25:
%65 = add i32 %sv_1.1.reload, 1
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %10, i64 %66)
%68 = trunc i64 %67 to i32
%69 = icmp eq i32 %68, 0
%70 = icmp eq i1 %69, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %70, label LBL_35, label LBL_26
LBL_26:
%71 = load i64, i64* %25, align 8
%72 = load i32, i32* %26, align 8
%73 = sext i32 %72 to i64
%74 = add i64 %71, %73
%75 = call i64 @FUNC(i64 %74, i64* nonnull %15, i64 %51)
%76 = add i32 %72, %sv_1.1.reload
store i32 %76, i32* %27, align 4
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_35
LBL_27:
%77 = call i64 @FUNC()
%78 = trunc i64 %77 to i32
%79 = icmp eq i32 %78, 0
%80 = icmp eq i1 %79, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %80, label LBL_35, label LBL_28
LBL_28:
%81 = icmp eq i32 %sv_1.1.reload, 1
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_31, label LBL_29
LBL_29:
%83 = load i32, i32* %sv_3, align 4
%trunc = trunc i32 %83 to i8
switch i8 %trunc, label LBL_31 [
i8 13, label LBL_30
i8 10, label LBL_30
]
LBL_30:
%84 = urem i32 %83, 256
%85 = zext i32 %84 to i64
%86 = call i64 @FUNC(i64 %85)
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_35
LBL_31:
%87 = zext i32 %sv_1.1.reload to i64
%88 = call i64 @FUNC(i64* nonnull %15, i64 %87)
%89 = call i64 @FUNC(i64* nonnull %15, i64 %87)
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_35
LBL_32:
%90 = icmp eq i32 %sv_0.0.ph.reload, -1
%91 = icmp eq i1 %90, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %91, label LBL_35, label LBL_33
LBL_33:
%92 = load i32, i32* @gv_8, align 4
%93 = icmp eq i32 %92, 0
store i32 %29, i32* %sv_0.1.reg2mem
br i1 %93, label LBL_34, label LBL_35
LBL_34:
%94 = load i32, i32* %sv_3, align 4
%95 = urem i32 %94, 256
store i32 %95, i32* %sv_0.1.reg2mem
br label LBL_35
LBL_35:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_36:
%96 = load i32, i32* @gv_3, align 4
%97 = add i32 %96, -1
store i32 %97, i32* @gv_3, align 4
store i32 %1, i32* bitcast (i64* @gv_4 to i32*), align 8
%98 = icmp eq i32 %2, 0
%99 = icmp eq i1 %98, false
br i1 %99, label LBL_38, label LBL_37
LBL_37:
%100 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i64 0, i64 0, i64 0)
br label LBL_38
LBL_38:
%101 = zext i32 %sv_0.0.ph.reload to i64
ret i64 %101
uselistorder i64 %51, { 0, 1, 3, 2 }
uselistorder i32 %sv_1.1.reload, { 2, 1, 5, 4, 3, 6, 0 }
uselistorder i32 %34, { 2, 0, 1, 3 }
uselistorder i32 %sv_0.0.ph.reload, { 11, 8, 10, 5, 4, 6, 0, 1, 3, 2, 7, 9 }
uselistorder i64* %15, { 2, 1, 0, 3, 4 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 2, 1, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder i32* %sv_3, { 2, 1, 0, 3 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 10, 1, 11, 7, 6, 8, 2, 3, 5, 4, 9, 12 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32* @gv_8, { 1, 0 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i32 3, { 0, 2, 1 }
uselistorder i64 (i8*, i64, i64, i64)* @set_option_value, { 1, 0 }
uselistorder i32* @gv_3, { 2, 1, 0 }
uselistorder i32 0, { 9, 10, 11, 12, 1, 14, 15, 2, 16, 17, 18, 0, 13, 19, 20, 3, 4, 5, 6, 7, 8 }
uselistorder label LBL_36, { 1, 2, 3, 4, 0 }
uselistorder label LBL_35, { 3, 0, 2, 6, 5, 4, 8, 7, 9, 1, 10, 11 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | hmp_info_migrate_147 | hmp_info_migrate | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.1.reg2mem = alloca i64
%.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 0)
%7 = inttoptr i64 %6 to i32*
%8 = call i64 @FUNC(i64 0)
%9 = load i32, i32* %7, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i64 %8, 0
%or.cond = or i1 %11, %10
store i32 %9, i32* %.reg2mem
br i1 %or.cond, label LBL_4, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1)
store i64 %8, i64* %storemerge4.reg2mem
br label LBL_2
LBL_2:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%13 = inttoptr i64 %storemerge4.reload to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %14, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%. = select i1 %18, i64 ptrtoint ([4 x i8]* @gv_1 to i64), i64 ptrtoint ([3 x i8]* @gv_2 to i64)
%19 = inttoptr i64 %14 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = add i64 %22, ptrtoint ([3 x i8*]* @gv_3 to i64)
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64 %25, i64 %., i64 %2, i64 %1)
%27 = add i64 %storemerge4.reload, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 %29, i64* %storemerge4.reg2mem
br i1 %31, label LBL_2, label LBL_3
LBL_3:
%32 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0), i64 %25, i64 %., i64 %2, i64 %1)
%.pr = load i32, i32* %7, align 4
store i32 %.pr, i32* %.reg2mem
store i64 %., i64* %rcx.1.reg2mem
br label LBL_4
LBL_4:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%33 = icmp eq i32 %.reload, 0
br i1 %33, label LBL_11, label LBL_5
LBL_5:
%34 = add i64 %6, 104
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = add i64 %38, ptrtoint ([4 x i8*]* @gv_6 to i64)
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_7, i64 0, i64 0), i64 %41, i64 %rcx.1.reload, i64 %2, i64 %1)
%43 = add i64 %6, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_8, i64 0, i64 0), i64 %45, i64 %rcx.1.reload, i64 %2, i64 %1)
%47 = add i64 %6, 40
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label LBL_7, label LBL_6
LBL_6:
%51 = add i64 %6, 16
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_9, i64 0, i64 0), i64 %53, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_7
LBL_7:
%55 = add i64 %6, 44
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_9, label LBL_8
LBL_8:
%59 = add i64 %6, 24
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_10, i64 0, i64 0), i64 %61, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_9
LBL_9:
%63 = add i64 %6, 48
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_11, label LBL_10
LBL_10:
%67 = add i64 %6, 32
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_11, i64 0, i64 0), i64 %69, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_11
LBL_11:
%71 = add i64 %6, 88
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label LBL_14, label LBL_12
LBL_12:
%75 = add i64 %6, 56
%76 = inttoptr i64 %75 to i64*
%77 = load i64, i64* %76, align 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = udiv i64 %79, 1024
%81 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_12, i64 0, i64 0), i64 %80, i64 %rcx.1.reload, i64 %2, i64 %1)
%82 = load i64, i64* %76, align 8
%83 = add i64 %82, 8
%84 = inttoptr i64 %83 to i64*
%85 = load i64, i64* %84, align 8
%86 = call i128 @FUNC(i64 %85)
%87 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_13, i64 0, i64 0), i64 %85, i64 %rcx.1.reload, i64 %2, i64 %1)
%88 = load i64, i64* %76, align 8
%89 = add i64 %88, 16
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
%92 = udiv i64 %91, 1024
%93 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_14, i64 0, i64 0), i64 %92, i64 %rcx.1.reload, i64 %2, i64 %1)
%94 = load i64, i64* %76, align 8
%95 = add i64 %94, 24
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = udiv i64 %97, 1024
%99 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_15, i64 0, i64 0), i64 %98, i64 %rcx.1.reload, i64 %2, i64 %1)
%100 = load i64, i64* %76, align 8
%101 = add i64 %100, 32
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_16, i64 0, i64 0), i64 %103, i64 %rcx.1.reload, i64 %2, i64 %1)
%105 = load i64, i64* %76, align 8
%106 = add i64 %105, 40
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_17, i64 0, i64 0), i64 %108, i64 %rcx.1.reload, i64 %2, i64 %1)
%110 = load i64, i64* %76, align 8
%111 = add i64 %110, 48
%112 = inttoptr i64 %111 to i64*
%113 = load i64, i64* %112, align 8
%114 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_18, i64 0, i64 0), i64 %113, i64 %rcx.1.reload, i64 %2, i64 %1)
%115 = load i64, i64* %76, align 8
%116 = add i64 %115, 56
%117 = inttoptr i64 %116 to i64*
%118 = load i64, i64* %117, align 8
%119 = udiv i64 %118, 1024
%120 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_19, i64 0, i64 0), i64 %119, i64 %rcx.1.reload, i64 %2, i64 %1)
%121 = load i64, i64* %76, align 8
%122 = add i64 %121, 64
%123 = inttoptr i64 %122 to i64*
%124 = load i64, i64* %123, align 8
%125 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_20, i64 0, i64 0), i64 %124, i64 %rcx.1.reload, i64 %2, i64 %1)
%126 = load i64, i64* %76, align 8
%127 = add i64 %126, 72
%128 = inttoptr i64 %127 to i64*
%129 = load i64, i64* %128, align 8
%130 = icmp eq i64 %129, 0
br i1 %130, label LBL_14, label LBL_13
LBL_13:
%131 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_21, i64 0, i64 0), i64 %129, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_14
LBL_14:
%132 = add i64 %6, 92
%133 = inttoptr i64 %132 to i32*
%134 = load i32, i32* %133, align 4
%135 = icmp eq i32 %134, 0
br i1 %135, label LBL_16, label LBL_15
LBL_15:
%136 = add i64 %6, 64
%137 = inttoptr i64 %136 to i64*
%138 = load i64, i64* %137, align 8
%139 = inttoptr i64 %138 to i64*
%140 = load i64, i64* %139, align 8
%141 = udiv i64 %140, 1024
%142 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_22, i64 0, i64 0), i64 %141, i64 %rcx.1.reload, i64 %2, i64 %1)
%143 = load i64, i64* %137, align 8
%144 = add i64 %143, 8
%145 = inttoptr i64 %144 to i64*
%146 = load i64, i64* %145, align 8
%147 = udiv i64 %146, 1024
%148 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_23, i64 0, i64 0), i64 %147, i64 %rcx.1.reload, i64 %2, i64 %1)
%149 = load i64, i64* %137, align 8
%150 = add i64 %149, 16
%151 = inttoptr i64 %150 to i64*
%152 = load i64, i64* %151, align 8
%153 = udiv i64 %152, 1024
%154 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_24, i64 0, i64 0), i64 %153, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_16
LBL_16:
%155 = add i64 %6, 96
%156 = inttoptr i64 %155 to i32*
%157 = load i32, i32* %156, align 4
%158 = icmp eq i32 %157, 0
br i1 %158, label LBL_18, label LBL_17
LBL_17:
%159 = add i64 %6, 72
%160 = inttoptr i64 %159 to i64*
%161 = load i64, i64* %160, align 8
%162 = inttoptr i64 %161 to i64*
%163 = load i64, i64* %162, align 8
%164 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_25, i64 0, i64 0), i64 %163, i64 %rcx.1.reload, i64 %2, i64 %1)
%165 = load i64, i64* %160, align 8
%166 = add i64 %165, 8
%167 = inttoptr i64 %166 to i64*
%168 = load i64, i64* %167, align 8
%169 = udiv i64 %168, 1024
%170 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_26, i64 0, i64 0), i64 %169, i64 %rcx.1.reload, i64 %2, i64 %1)
%171 = load i64, i64* %160, align 8
%172 = add i64 %171, 16
%173 = inttoptr i64 %172 to i64*
%174 = load i64, i64* %173, align 8
%175 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_27, i64 0, i64 0), i64 %174, i64 %rcx.1.reload, i64 %2, i64 %1)
%176 = load i64, i64* %160, align 8
%177 = add i64 %176, 24
%178 = inttoptr i64 %177 to i64*
%179 = load i64, i64* %178, align 8
%180 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_28, i64 0, i64 0), i64 %179, i64 %rcx.1.reload, i64 %2, i64 %1)
%181 = load i64, i64* %160, align 8
%182 = add i64 %181, 32
%183 = inttoptr i64 %182 to i64*
%184 = load i64, i64* %183, align 8
%185 = call i128 @FUNC(i64 %184)
%186 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_29, i64 0, i64 0), i64 %184, i64 %rcx.1.reload, i64 %2, i64 %1)
%187 = load i64, i64* %160, align 8
%188 = add i64 %187, 40
%189 = inttoptr i64 %188 to i64*
%190 = load i64, i64* %189, align 8
%191 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_30, i64 0, i64 0), i64 %190, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_18
LBL_18:
%192 = add i64 %6, 100
%193 = inttoptr i64 %192 to i32*
%194 = load i32, i32* %193, align 4
%195 = icmp eq i32 %194, 0
br i1 %195, label LBL_20, label LBL_19
LBL_19:
%196 = add i64 %6, 80
%197 = inttoptr i64 %196 to i64*
%198 = load i64, i64* %197, align 8
%199 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_31, i64 0, i64 0), i64 %198, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_20
LBL_20:
%200 = call i64 @FUNC(i64 %6)
%201 = call i64 @FUNC(i64 %8)
ret i64 %201
uselistorder i64 %184, { 1, 0 }
uselistorder i64 %85, { 1, 0 }
uselistorder i64 %rcx.1.reload, { 0, 6, 5, 4, 3, 2, 1, 9, 8, 7, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 22, 23, 24, 21, 20 }
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %5, { 27, 21, 22, 23, 24, 25, 26, 18, 19, 20, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 5, 4, 3, 6, 7, 0, 1, 2 }
uselistorder i64 %2, { 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 8, { 2, 3, 4, 5, 0, 6, 1 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @monitor_printf, { 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 1, 2, 0 }
uselistorder i32 0, { 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | crypto_nivaead_report_6075 | crypto_nivaead_report | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = bitcast i64* %sv_1 to i8*
%2 = call i8* @strncpy(i8* nonnull %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i32 16)
%3 = bitcast i64* %sv_0 to i8*
%4 = bitcast i64* %arg2 to i8*
%5 = call i8* @strncpy(i8* nonnull %3, i8* %4, i32 16)
%6 = call i64 @FUNC(i64 %0, i64 1, i64 56, i64* nonnull %sv_1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
%. = select i1 %9, i64 4294967206, i64 0
ret i64 %.
uselistorder i8* (i8*, i8*, i32)* @strncpy, { 1, 0 }
} | 0 |
BinRealVul | decode_mb_16420 | decode_mb | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%1 = icmp eq i32 %arg3, 0
%.pre = add i64 %0, 32
store i32 0, i32* %sv_2.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %.pre)
%3 = trunc i64 %2 to i32
%4 = icmp sgt i32 %3, 1
store i32 0, i32* %sv_2.0.reg2mem
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%5 = icmp eq i32 %3, 0
store i32 63, i32* %storemerge2.reg2mem
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i64 %.pre, i64 6)
%phitmp = trunc i64 %6 to i32
store i32 %phitmp, i32* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%7 = call i64 @FUNC(i64 %.pre)
%8 = trunc i64 %7 to i32
%9 = call i64 @FUNC(i64 %.pre)
%10 = trunc i64 %9 to i32
store i32 %storemerge2.reload, i32* %sv_2.0.reg2mem
store i32 %8, i32* %sv_1.0.reg2mem
store i32 %10, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%11 = ptrtoint i64* %arg2 to i64
%12 = ptrtoint i64* %sv_3 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i64*
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %0, 4
%18 = inttoptr i64 %17 to i32*
%19 = bitcast i64* %rdi to i32*
%20 = add i64 %12, -8
%21 = inttoptr i64 %20 to i64*
%22 = zext i32 %sv_0.0.reload to i64
%23 = add i64 %12, -16
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%25 = trunc i64 %indvars.iv.reload to i32
%26 = shl i32 1, %25
%27 = and i32 %26, %sv_2.0.reload
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_9, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %.pre)
%30 = load i64, i64* %16, align 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label LBL_11, label LBL_8
LBL_8:
%34 = mul i64 %29, 2
%35 = load i32, i32* %18, align 4
%36 = load i32, i32* %19, align 8
%37 = and i64 %34, 4294967294
store i64 %37, i64* %21, align 8
store i64 %22, i64* %24, align 8
%38 = call i64 @FUNC(i64 %0, i64 %11, i32 %36, i32 %35, i32 %25, i32 %sv_1.0.reload)
br label LBL_11
LBL_9:
%39 = load i64, i64* %14, align 8
%40 = call i64 @FUNC(i64 %0, i64 %39)
%41 = trunc i64 %40 to i32
%42 = icmp slt i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 4294967295, i64* %storemerge1.reg2mem
br i1 %43, label LBL_10, label LBL_12
LBL_10:
%44 = load i32, i32* %18, align 4
%45 = load i32, i32* %19, align 8
%46 = load i64, i64* %14, align 8
%47 = zext i32 %44 to i64
%48 = call i64 @FUNC(i64 %0, i64 %11, i64 %46, i32 %45, i64 %47, i64 %indvars.iv.reload)
br label LBL_11
LBL_11:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%49 = icmp ult i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br i1 %49, label LBL_6, label LBL_12
LBL_12:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %.pre, { 0, 2, 3, 4, 1 }
uselistorder i64 %0, { 4, 6, 3, 2, 1, 5, 0 }
uselistorder i32* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @decode_motion, { 2, 1, 0 }
uselistorder i32 0, { 2, 3, 4, 1, 0, 5 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | pic_as_field_18752 | pic_as_field | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 1
%3 = icmp eq i1 %2, false
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.pre = mul i64 %indvars.iv.reload, 4
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %.pre, %0
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = load i64, i64* %5, align 8
%12 = add i64 %11, %.pre
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i32 %14, %10
store i32 %15, i32* %9, align 4
br label LBL_3
LBL_3:
store i32 %1, i32* %7, align 4
%16 = load i64, i64* %5, align 8
%17 = add i64 %16, %.pre
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = mul i32 %19, 2
store i32 %20, i32* %18, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%21 = select i1 %2, i64 20, i64 16
%22 = add i64 %0, 12
%23 = add i64 %22, %21
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %0, 24
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
ret i64 %0
uselistorder i64 %.pre, { 2, 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0, 5, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | pcm_read_header_940 | pcm_read_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i8*
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i8*, align 8
store i8* null, i8** %sv_3, align 8
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_18
LBL_1:
%4 = inttoptr i64 %1 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = load i64, i64* %4, align 8
%11 = inttoptr i64 %9 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %10, 4
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = load i64, i64* %4, align 8
%16 = bitcast i64* %rdi to i32*
%17 = load i32, i32* %16, align 8
%18 = add i64 %15, 8
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = load i64, i64* %4, align 8
%21 = add i64 %0, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %20, 12
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %0, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = bitcast i8** %sv_3 to i64*
%30 = call i64 @FUNC(i64 %28, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 0, i64* nonnull %29)
%31 = load i8*, i8** %sv_3, align 8
%32 = icmp eq i8* %31, null
br i1 %32, label LBL_17, label LBL_2
LBL_2:
%33 = load i64, i64* %8, align 8
%34 = add i64 %33, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label LBL_17, label LBL_3
LBL_3:
store i32 0, i32* %sv_2, align 4
store i32 0, i32* %sv_1, align 4
%38 = inttoptr i64 %36 to i8*
%39 = call i32 @strlen(i8* %38)
%40 = load i8*, i8** %sv_3, align 8
%41 = load i64, i64* %8, align 8
%42 = add i64 %41, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = inttoptr i64 %44 to i8*
%46 = call i32 @strncmp(i8* %45, i8* %40, i32 %39)
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_17, label LBL_4
LBL_4:
%49 = sext i32 %39 to i64
%50 = load i8*, i8** %sv_3, align 8
%51 = ptrtoint i8* %50 to i64
%52 = add i64 %51, %49
%53 = call i32 @strlen(i8* %50)
%54 = sext i32 %53 to i64
%55 = load i8*, i8** %sv_3, align 8
%56 = ptrtoint i8* %55 to i64
%57 = add i64 %56, %54
%58 = icmp ugt i64 %57, %52
store i32 0, i32* %.reg2mem
br i1 %58, label LBL_5, label LBL_13
LBL_5:
%59 = inttoptr i64 %52 to i8*
store i8* %59, i8** %sv_0.03.reg2mem
br label LBL_6
LBL_6:
%sv_0.03.reload = load i8*, i8** %sv_0.03.reg2mem
%60 = call i8* @strchr(i8* %sv_0.03.reload, i32 59)
%61 = icmp eq i8* %60, null
br i1 %61, label LBL_12, label LBL_7
LBL_7:
%62 = ptrtoint i8* %60 to i64
%63 = add i64 %62, 1
%64 = inttoptr i64 %63 to i8*
%65 = load i32, i32* %sv_2, align 4
%66 = icmp eq i32 %65, 0
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_9, label LBL_8
LBL_8:
%68 = call i32 (i8*, i8*, ...) @sscanf(i8* %64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i32* nonnull %sv_2)
br label LBL_9
LBL_9:
%69 = load i32, i32* %sv_1, align 4
%70 = icmp eq i32 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_10, label LBL_11
LBL_10:
%72 = load i8*, i8** %sv_3, align 8
%73 = ptrtoint i8* %72 to i64
%74 = add i64 %73, %54
%75 = icmp ugt i64 %74, %63
store i8* %64, i8** %sv_0.03.reg2mem
br i1 %75, label LBL_6, label LBL_12
LBL_11:
%76 = call i32 (i8*, i8*, ...) @sscanf(i8* %64, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i32* nonnull %sv_1)
br label LBL_10
LBL_12:
%.pre = load i32, i32* %sv_2, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_13
LBL_13:
%.reload = load i32, i32* %.reg2mem
%77 = icmp eq i32 %.reload, 0
%78 = icmp slt i32 %.reload, 0
%79 = icmp eq i1 %78, false
%80 = icmp eq i1 %77, false
%81 = icmp eq i1 %79, %80
br i1 %81, label LBL_15, label LBL_14
LBL_14:
%82 = load i8*, i8** %sv_3, align 8
%83 = ptrtoint i8* %82 to i64
%84 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_3, i64 0, i64 0), i64 %83)
%85 = call i64 @FUNC(i64* nonnull %29)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%86 = load i64, i64* %4, align 8
%87 = add i64 %86, 8
%88 = inttoptr i64 %87 to i32*
store i32 %.reload, i32* %88, align 4
%89 = load i32, i32* %sv_1, align 4
%90 = icmp slt i32 %89, 1
br i1 %90, label LBL_17, label LBL_16
LBL_16:
%91 = load i64, i64* %4, align 8
%92 = add i64 %91, 12
%93 = inttoptr i64 %92 to i32*
store i32 %89, i32* %93, align 4
br label LBL_17
LBL_17:
%94 = call i64 @FUNC(i64* nonnull %29)
%95 = load i64, i64* %4, align 8
%96 = add i64 %95, 4
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = zext i32 %98 to i64
%100 = call i64 @FUNC(i64 %99)
%101 = trunc i64 %100 to i32
%102 = add i64 %95, 16
%103 = inttoptr i64 %102 to i32*
store i32 %101, i32* %103, align 4
%104 = load i64, i64* %4, align 8
%105 = add i64 %104, 16
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = icmp eq i32 %107, 0
%109 = icmp slt i32 %107, 0
%110 = icmp eq i1 %109, false
%111 = icmp eq i1 %108, false
%112 = icmp eq i1 %110, %111
%113 = zext i1 %112 to i64
%114 = call i64 @FUNC(i64 %113)
%115 = load i64, i64* %4, align 8
%116 = add i64 %115, 16
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = add i64 %115, 12
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = mul i32 %121, %118
%123 = sdiv i32 %122, 128
%124 = add i64 %115, 20
%125 = inttoptr i64 %124 to i32*
store i32 %123, i32* %125, align 4
%126 = load i64, i64* %4, align 8
%127 = add i64 %126, 8
%128 = inttoptr i64 %127 to i32*
%129 = load i32, i32* %128, align 4
%130 = zext i32 %129 to i64
%131 = call i64 @FUNC(i64 %1, i64 64, i64 1, i64 %130)
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 %107, { 1, 0 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i8* %64, { 1, 0, 2 }
uselistorder i8* %60, { 1, 0 }
uselistorder i64 %52, { 1, 0 }
uselistorder i32 %39, { 1, 0 }
uselistorder i64* %29, { 1, 0, 2 }
uselistorder i64* %4, { 2, 3, 4, 5, 0, 1, 6, 7, 8, 9 }
uselistorder i8** %sv_3, { 6, 5, 0, 4, 3, 2, 7, 1 }
uselistorder i32* %sv_1, { 1, 0, 2, 3 }
uselistorder i8** %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64*)* @av_freep, { 1, 0 }
uselistorder i32 (i8*, i8*, ...)* @sscanf, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 8, 0, 9, 1, 2, 10 }
uselistorder i64 16, { 1, 2, 3, 4, 0 }
uselistorder i1 false, { 2, 0, 3, 1, 4, 5, 6, 7, 8 }
uselistorder label LBL_18, { 1, 2, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | ati_cursor_define_19048 | ati_cursor_define | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0.14.reg2mem = alloca i32
%indvars.iv6.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = icmp slt i32 %3, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_9, label LBL_1
LBL_1:
%6 = add i64 %0, 40
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = icmp eq i32 %8, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_9, label LBL_2
LBL_2:
%12 = ptrtoint i64* %sv_3 to i64
%13 = sext i32 %3 to i64
%14 = add i64 %0, 20
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = ashr i32 %16, 16
%narrow = sub nsw i32 0, %17
%.neg = sext i32 %narrow to i64
%18 = mul i32 %16, 16
%19 = and i32 %18, 1048560
%20 = zext i32 %19 to i64
%21 = add i64 %12, -1056
%22 = add i64 %13, %0
%23 = add i64 %22, %.neg
%24 = sub i64 %23, %20
store i64 0, i64* %indvars.iv6.reg2mem
store i32 0, i32* %sv_0.14.reg2mem
br label LBL_5
LBL_3:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%25 = add i64 %40, %indvars.iv.reload
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = sext i32 %sv_0.02.reload to i64
%29 = add i64 %21, %28
%30 = inttoptr i64 %29 to i8*
store i8 %27, i8* %30, align 1
%31 = add i64 %25, 8
%32 = add i32 %sv_0.02.reload, 512
%33 = inttoptr i64 %31 to i8*
%34 = load i8, i8* %33, align 1
%35 = sext i32 %32 to i64
%36 = add i64 %21, %35
%37 = inttoptr i64 %36 to i8*
store i8 %34, i8* %37, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%38 = add i32 %sv_0.02.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %38, i32* %sv_0.02.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next7, 64
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
store i32 %38, i32* %sv_0.14.reg2mem
br i1 %exitcond8, label LBL_6, label LBL_5
LBL_5:
%sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%39 = mul i64 %indvars.iv6.reload, 16
%40 = add i64 %24, %39
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_0.14.reload, i32* %sv_0.02.reg2mem
br label LBL_3
LBL_6:
%41 = add i64 %0, 32
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
store i64 %43, i64* %.reg2mem
br i1 %45, label LBL_8, label LBL_7
LBL_7:
%46 = call i64 @FUNC(i64 64, i64 64)
store i64 %46, i64* %42, align 8
store i64 %46, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%47 = add i64 %0, 24
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %0, 28
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = call i64 @FUNC(i64 %.reload, i32 %52, i32 %49, i64* nonnull %sv_1, i64 1, i64* nonnull %sv_2)
%54 = load i64, i64* %42, align 8
%55 = add i64 %0, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %57, i64 %54)
store i64 %58, 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* %42, { 1, 0, 2 }
uselistorder i64 %indvars.iv6.reload, { 1, 0 }
uselistorder i64 %0, { 1, 3, 2, 4, 0, 5, 6, 7 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.02.reg2mem, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i64 64, { 2, 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder label LBL_9, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ath9k_update_p2p_ps_4572 | ath9k_update_p2p_ps | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_1
LBL_1:
%9 = trunc i64 %2 to i32
%10 = and i64 %2, 4294967295
%11 = icmp eq i32 %9, 1
%12 = icmp eq i1 %11, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_2
LBL_2:
%13 = add i64 %3, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = ptrtoint i32* %arg1 to i64
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i64*
store i64 %6, i64* %19, align 8
%20 = add i64 %17, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = urem i32 %22, 2
%24 = zext i32 %23 to i64
%25 = icmp eq i32 %23, 0
%26 = icmp eq i1 %25, false
store i64 %24, i64* %rax.0.reg2mem
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = add i64 %17, 24
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = add i64 %3, 8
%33 = call i64 @FUNC(i64 %32, i64 %6, i32 %31)
%34 = call i64 @FUNC(i64 %17, i64 %6)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %23, { 1, 0 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder label LBL_5, { 4, 0, 2, 1, 3 }
} | 0 |
BinRealVul | clock_info_cmd_complete_4111 | clock_info_cmd_complete | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rdi.1.reg2mem = alloca i64
%.pre-phi5.reg2mem = alloca i32*
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = trunc i64 %arg2 to i8
%2 = add i64 %0, 24
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 16)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = sext i32 %10 to i64
store i64 %11, i64* %sv_0, align 8
%12 = icmp eq i8 %1, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_0.LBL_6_crit_edge, label LBL_2
LBL_1:
%14 = ptrtoint i64* %sv_0 to i64
%.pre = add i64 %0, 8
%.pre4 = inttoptr i64 %.pre to i32*
store i32* %.pre4, i32** %.pre-phi5.reg2mem
store i64 %14, i64* %rdi.1.reg2mem
br label LBL_6
LBL_2:
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = icmp eq i64 %19, 0
store i64 %18, i64* %rdi.0.reg2mem
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = inttoptr i64 %19 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC(i64 %19)
store i64 %19, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%26 = icmp eq i64 %4, 0
store i32* %16, i32** %.pre-phi5.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = inttoptr i64 %4 to i32*
%28 = load i32, i32* %27, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %4, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34)
store i32* %16, i32** %.pre-phi5.reg2mem
store i64 %34, i64* %rdi.1.reg2mem
br label LBL_6
LBL_6:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%.pre-phi5.reload = load i32*, i32** %.pre-phi5.reg2mem
%36 = add i64 %0, 12
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = load i32, i32* %.pre-phi5.reload, align 4
%40 = call i64 @FUNC(i64 %rdi.1.reload, i32 %39, i32 %38, i8 %1, i64* nonnull %sv_0, i64 16)
%41 = icmp eq i64 %4, 0
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = call i64 @FUNC(i64 %4)
%43 = call i64 @FUNC(i64 %4)
br label LBL_8
LBL_8:
%44 = and i64 %40, 4294967295
ret i64 %44
uselistorder i64 %4, { 0, 1, 2, 3, 5, 4 }
uselistorder i64* %sv_0, { 0, 3, 2, 1 }
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64)* @cpu_to_le32, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_6, { 2, 1, 0 }
} | 0 |
BinRealVul | qemu_fopen_socket_1064 | qemu_fopen_socket | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg2)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = call i64 @FUNC(i64 16)
%4 = inttoptr i64 %3 to i32*
%5 = trunc i64 %arg1 to i32
store i32 %5, i32* %4, align 4
%6 = bitcast i64* %rsi to i8*
%7 = load i8, i8* %6, align 8
%8 = icmp eq i8 %7, 119
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = and i64 %arg1, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %3, i64* nonnull @gv_0)
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
store i64 %12, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%15 = call i64 @FUNC(i64 %3, i64* nonnull @gv_1)
%16 = add i64 %3, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
store i64 %15, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 }
uselistorder i8 119, { 1, 0 }
uselistorder i32 1, { 5, 2, 1, 3, 0, 4 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | do_pages_stat_13064 | do_pages_stat | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%sv_1.01.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 256
%7 = icmp eq i1 %6, false
store i64 %0, i64* %sv_1.01.reg2mem
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%sv_1.01.reload = load i64, i64* %sv_1.01.reg2mem
%8 = inttoptr i64 %sv_1.01.reload to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %1, i64 %9)
%11 = icmp eq i64 %10, 0
store i32 -14, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = load i64, i64* %8, align 8
%13 = call i64 @FUNC(i64 %10, i64 %12, i64 0)
%14 = icmp eq i64 %13, 0
store i32 -2, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_5, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %13)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i32 -2, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %13)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%21 = add i64 %sv_1.01.reload, 12
%22 = inttoptr i64 %21 to i32*
store i32 %sv_0.0.reload, i32* %22, align 4
%23 = add i64 %sv_1.01.reload, 16
%24 = add i64 %sv_1.01.reload, 24
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 256
%28 = icmp eq i1 %27, false
store i64 %23, i64* %sv_1.01.reg2mem
br i1 %28, label LBL_1, label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %1)
ret i64 0
uselistorder i64 %sv_1.01.reload, { 3, 0, 1, 2 }
uselistorder i64* %sv_1.01.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 256, { 1, 0 }
uselistorder label LBL_5, { 3, 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | qpci_io_readw_15063 | qpci_io_readw | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.reg2mem = alloca i64
%1 = load i32, i32* %0
%2 = icmp ult i64 %arg2, 65535
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
store i64 %3, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%4 = urem i32 %1, 65536
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
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* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | txd_read_header_929 | txd_read_header | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = inttoptr i64 %1 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = load i64, i64* %4, align 8
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
%10 = load i64, i64* %4, align 8
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i32*
store i32 5, i32* %12, align 4
%13 = load i64, i64* %4, align 8
%14 = add i64 %13, 12
%15 = inttoptr i64 %14 to i32*
store i32 1, i32* %15, align 4
%16 = call i64 @FUNC(i64 %0)
%17 = trunc i64 %16 to i32
%18 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %18, 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 label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | redisContextConnectUnix_7121 | redisContextConnectUnix | define i64 @FUNC(i32* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i16, align 2
%sv_2 = alloca i64, align 8
store i64 -1, i64* %sv_2, align 8
%3 = call i64 @FUNC(i64 %2, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_17
LBL_1:
%7 = call i64 @FUNC(i64 %2, i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_17
LBL_2:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
store i32 2, i32* %11, align 4
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = ptrtoint i8* %arg2 to i64
%16 = icmp eq i64 %14, %15
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %15)
store i64 %17, i64* %13, align 8
br label LBL_4
LBL_4:
%18 = icmp eq i64* %arg3, null
%19 = add i64 %2, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
br i1 %18, label LBL_9, label LBL_5
LBL_5:
%22 = ptrtoint i64* %arg3 to i64
%23 = icmp eq i64 %21, %22
br i1 %23, label LBL_10, label LBL_6
LBL_6:
%24 = icmp eq i64 %21, 0
%25 = icmp eq i1 %24, false
store i64 %21, i64* %.reg2mem
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64 16)
store i64 %26, i64* %20, align 8
store i64 %26, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%27 = add i64 %22, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = inttoptr i64 %.reload to i64*
store i64 %29, i64* %30, align 8
%31 = add i64 %.reload, 8
%32 = inttoptr i64 %31 to i64*
store i64 %29, i64* %32, align 8
br label LBL_10
LBL_9:
%33 = inttoptr i64 %21 to i64*
call void @free(i64* %33)
store i64 0, i64* %20, align 8
br label LBL_10
LBL_10:
%34 = call i64 @FUNC(i64 %2, i64* nonnull %sv_2)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %36, label LBL_11, label LBL_17
LBL_11:
%37 = trunc i64 %1 to i32
%38 = urem i32 %37, 2
store i16 1, i16* %sv_1, align 2
%39 = bitcast i64* %sv_0 to i8*
%40 = call i8* @strncpy(i8* nonnull %39, i8* %arg2, i32 107)
%41 = add i64 %2, 4
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = bitcast i16* %sv_1 to %sockaddr*
%45 = call i32 @connect(i32 %43, %sockaddr* nonnull %44, i32 110)
%46 = icmp eq i32 %45, -1
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_14, label LBL_12
LBL_12:
%48 = call i32* @__errno_location()
%49 = load i32, i32* %48, align 4
%50 = icmp eq i32 %49, 115
%51 = icmp eq i32 %38, 0
%or.cond = icmp eq i1 %51, %50
br i1 %or.cond, label LBL_16, label LBL_13
LBL_13:
%52 = load i64, i64* %sv_2, align 8
%53 = call i64 @FUNC(i64 %2, i64 %52)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %55, label LBL_14, label LBL_17
LBL_14:
%56 = icmp eq i32 %38, 0
br i1 %56, label LBL_16, label LBL_15
LBL_15:
%57 = call i64 @FUNC(i64 %2, i64 1)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %59, label LBL_16, label LBL_17
LBL_16:
%60 = bitcast i64* %rdi to i32*
%61 = load i32, i32* %60, align 8
%62 = or i32 %61, 4
store i32 %62, i32* %arg1, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %21, { 3, 0, 2, 1 }
uselistorder i64* %20, { 1, 0, 2 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i64 (i64, i64)* @redisSetBlocking, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_17, { 5, 0, 1, 2, 3, 4 }
uselistorder label LBL_16, { 1, 2, 0 }
} | 0 |
BinRealVul | qedi_get_boot_tgt_info_3792 | qedi_get_boot_tgt_info | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = urem i64 %arg3, 256
%5 = urem i64 %1, 2
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%narrow = mul nuw nsw i64 %4, 276
%8 = add i64 %narrow, %3
%9 = add i64 %8, 4
%10 = bitcast i64* %arg2 to i8*
%11 = inttoptr i64 %9 to i8*
%12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %10, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* %11)
%13 = zext i1 %7 to i8
%14 = add i64 %2, 302
%15 = inttoptr i64 %14 to i8*
store i8 %13, i8* %15, align 1
%16 = icmp eq i1 %7, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = add i64 %8, 260
%18 = add i64 %2, 256
%19 = inttoptr i64 %18 to i8*
%20 = inttoptr i64 %17 to i64*
%21 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %19, i32 46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64* %20)
store i32 %21, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%22 = add i64 %8, 276
%23 = add i64 %2, 256
%24 = inttoptr i64 %23 to i8*
%25 = inttoptr i64 %22 to i64*
%26 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %24, i32 16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64* %25)
store i32 %26, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = sext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64 256, { 1, 2, 0 }
} | 0 |
BinRealVul | rj54n1_s_crop_3846 | rj54n1_s_crop | 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
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%4 = ptrtoint i32* %arg2 to i64
store i32 0, i32* %sv_4, align 4
%5 = trunc i64 %1 to i32
store i32 %5, i32* %sv_3, align 4
%6 = add i64 %4, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
store i32 %8, i32* %sv_2, align 4
%9 = call i64 @FUNC(i32* nonnull %sv_4, i32* nonnull %sv_3, i64 0, i64 8, i64 1024)
%10 = call i64 @FUNC(i32* nonnull %sv_4, i32* nonnull %sv_2, i64 0, i64 8, i64 768)
%11 = load i32, i32* %sv_3, align 4
%12 = mul i32 %11, 1024
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = udiv i32 %15, 2
%17 = add i32 %16, %12
%18 = udiv i32 %17, %15
store i32 %18, i32* %sv_1, align 4
%19 = load i32, i32* %sv_2, align 4
%20 = mul i32 %19, 1024
%21 = load i32, i32* %14, align 4
%22 = udiv i32 %21, 2
%23 = add i32 %22, %20
%24 = udiv i32 %23, %21
store i32 %24, i32* %sv_0, align 4
%25 = load i32, i32* %14, align 4
%26 = zext i32 %18 to i64
%27 = zext i32 %25 to i64
%28 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i32 %11, i32 %19, i64 %27, i64 %26)
%29 = call i64 @FUNC(i64 %2, i32* nonnull %sv_3, i32* nonnull %sv_2, i32* nonnull %sv_1, i32* nonnull %sv_0)
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_2, label LBL_1
LBL_1:
%33 = and i64 %29, 4294967295
store i64 %33, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%34 = inttoptr i64 %3 to i32*
%35 = load i32, i32* %sv_1, align 4
store i32 %35, i32* %34, align 4
%36 = load i32, i32* %sv_0, align 4
%37 = add i64 %3, 4
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
store i32 %30, i32* %14, align 4
%39 = load i32, i32* %sv_3, align 4
%40 = add i64 %3, 12
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = load i32, i32* %sv_2, align 4
%43 = add i64 %3, 16
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %21, { 1, 0 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %15, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i32* %sv_3, { 2, 0, 3, 1, 4 }
uselistorder i32* %sv_2, { 2, 0, 3, 1, 4 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i32*, i32*, i64, i64, i64)* @soc_camera_limit_side, { 1, 0 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | qvirtio_pci_virtqueue_kick_1366 | qvirtio_pci_virtqueue_kick | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = and i64 %2, 4294967295
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8, i32 %6, i64 0, i64 %7)
ret i64 %9
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | get_futex_key_refs_13253 | get_futex_key_refs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = urem i64 %4, 4
switch i64 %5, label LBL_4 [
i64 1, label LBL_2
i64 2, label LBL_3
]
LBL_2:
%6 = call i64 @FUNC(i64 %0)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%7 = call i64 @FUNC(i64 %0)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%8 = call i64 @FUNC()
store i64 %8, 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 %0, { 1, 2, 3, 0 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | spl_array_object_count_elements_helper_6560 | spl_array_object_count_elements_helper | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 0, i64 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %arg2, align 8
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_2:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
store i64 0, i64* %arg2, align 8
%8 = call i64 @FUNC(i64 %0)
%9 = load i32, i32* %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_3:
store i64 1, i64* %arg2, align 8
%11 = load i32, i32* %6, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %0)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_3, label LBL_5
LBL_5:
%16 = zext i32 %7 to i64
%17 = call i64 @FUNC(i64 %0, i64 %16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %6, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | journal_rate_limit_free_17924 | journal_rate_limit_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 %arg1, i64* %rdi.1.reg2mem
br i1 %1, label LBL_3, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([2 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%2 = call i64 @FUNC(i64 %rdi.0.reload)
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br label LBL_3
LBL_3:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%3 = icmp eq i64 %rdi.1.reload, 0
%4 = icmp eq i1 %3, false
store i64 %rdi.1.reload, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_4
LBL_4:
ret i64 %rdi.1.reload
uselistorder i64 %rdi.1.reload, { 0, 2, 1 }
uselistorder i64* %rdi.0.reg2mem, { 2, 0, 1 }
uselistorder [2 x i8]* @gv_0, { 1, 0 }
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | palette8tobgr15_1018 | palette8tobgr15 | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%0 = icmp sgt i64 %arg3, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_3
LBL_1:
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i32* %arg1 to i64
store i64 0, i64* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%3 = add i64 %storemerge2.reload, %2
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4, align 1
%6 = zext i8 %5 to i64
%7 = mul i64 %6, 2
%8 = add i64 %7, %1
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = mul i64 %storemerge2.reload, 2
%12 = add i64 %11, %arg2
%13 = zext i16 %10 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i16
%16 = inttoptr i64 %12 to i16*
store i16 %15, i16* %16, align 2
%17 = add nuw nsw i64 %storemerge2.reload, 1
%exitcond = icmp eq i64 %17, %arg3
store i64 %17, i64* %storemerge2.reg2mem
store i64 %arg3, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %storemerge2.reload, { 0, 2, 1 }
uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | qtest_qemu_pid_14912 | qtest_qemu_pid | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%0 = bitcast i64* %arg1 to i8*
%1 = call %_IO_FILE* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq %_IO_FILE* %1, null
store i32 -1, i32* %sv_0.1.reg2mem
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = bitcast i64* %sv_1 to i8*
%4 = call i8* @fgets(i8* nonnull %3, i32 1024, %_IO_FILE* nonnull %1)
%5 = icmp eq i8* %4, null
store i32 -1, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i32 @atoi(i8* nonnull %3)
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%7 = call i32 @fclose(%_IO_FILE* nonnull %1)
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
%8 = zext i32 %sv_0.1.reload to i64
ret i64 %8
uselistorder i32 -1, { 1, 0 }
} | 1 |
BinRealVul | test_nop_14170 | test_nop | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %3, i64 %4, i64 %2, i64 %1)
%6 = call i64 @FUNC(i64 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %6)
br label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %5)
ret i64 %9
uselistorder i64* %0, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | vnc_dpy_copy_2990 | 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:
%storemerge13.lcssa.reg2mem = alloca i64
%storemerge1314.reg2mem = alloca i64
%rdi.1.lcssa.reg2mem = alloca i64
%storemerge1216.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* %storemerge1216.reg2mem
store i64 %0, i64* %rdi.1.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%storemerge1216.reload = load i64, i64* %storemerge1216.reg2mem
%3 = inttoptr i64 %storemerge1216.reload to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %storemerge1216.reload, i64 1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %storemerge1216.reload, 8
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
%10 = call i64 @FUNC(i64 %storemerge1216.reload)
br label LBL_3
LBL_3:
%11 = icmp eq i64 %4, 0
%12 = icmp eq i1 %11, false
store i64 %4, i64* %storemerge1216.reg2mem
store i64 %storemerge1216.reload, i64* %rdi.1.lcssa.reg2mem
br i1 %12, label LBL_1, label LBL_4
LBL_4:
%rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem
%13 = icmp eq i64 %rdi.1.lcssa.reload, 0
%14 = icmp eq i1 %13, false
store i64 %rdi.1.lcssa.reload, i64* %storemerge13.lcssa.reg2mem
br i1 %14, label LBL_5, label LBL_10
LBL_5:
%sext = mul i64 %arg7, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = ptrtoint i64* %sv_0 to i64
%17 = trunc i64 %arg6 to i32
%18 = trunc i64 %arg5 to i32
%19 = trunc i64 %arg4 to i32
%20 = trunc i64 %arg3 to i32
%21 = trunc i64 %arg2 to i32
%22 = and i64 %15, 4294967295
%23 = add i64 %16, -8
%24 = inttoptr i64 %23 to i64*
%25 = trunc i64 %15 to i32
store i64 %rdi.1.lcssa.reload, i64* %storemerge1314.reg2mem
br label LBL_6
LBL_6:
%storemerge1314.reload = load i64, i64* %storemerge1314.reg2mem
%26 = call i64 @FUNC(i64 %storemerge1314.reload, i64 1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_8, label LBL_7
LBL_7:
store i64 %22, i64* %24, align 8
%29 = call i64 @FUNC(i64 %storemerge1314.reload, i32 %21, i32 %20, i32 %19, i32 %18, i32 %17)
br label LBL_9
LBL_8:
%30 = call i64 @FUNC(i64 %storemerge1314.reload, i32 %19, i32 %18, i32 %17, i32 %25)
br label LBL_9
LBL_9:
%31 = inttoptr i64 %storemerge1314.reload to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 %32, i64* %storemerge1314.reg2mem
store i64 %32, i64* %storemerge13.lcssa.reg2mem
br i1 %34, label LBL_6, label LBL_10
LBL_10:
%storemerge13.lcssa.reload = load i64, i64* %storemerge13.lcssa.reg2mem
ret i64 %storemerge13.lcssa.reload
uselistorder i64 %storemerge1314.reload, { 3, 1, 0, 2 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %18, { 1, 0 }
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %rdi.1.lcssa.reload, { 1, 0, 2 }
uselistorder i64 %storemerge1216.reload, { 0, 1, 2, 4, 3 }
uselistorder i64* %storemerge1216.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge1314.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @vnc_has_feature, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i1 false, { 2, 1, 3, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ip_tunnel_encap_del_ops_18248 | ip_tunnel_encap_del_ops | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = mul i64 %arg2, 8
%3 = and i64 %2, 34359738360
%4 = add i64 %1, %3
%5 = call i64 @FUNC(i64 %4, i64 %0, i64 0)
%sext = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = icmp eq i64 %6, %0
%8 = icmp eq i1 %7, false
%. = select i1 %8, i64 4294967295, i64 0
%9 = call i64 @FUNC()
ret i64 %.
} | 1 |
BinRealVul | compute_rematrixing_strategy_2919 | compute_rematrixing_strategy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i128
%storemerge6.reg2mem = alloca i128
%storemerge7.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_2.0.lcssa.reg2mem = alloca i32
%sv_3.0.lcssa.reg2mem = alloca i32
%sv_3.010.reg2mem = alloca i32
%sv_2.011.reg2mem = alloca i32
%sv_1.012.reg2mem = alloca i32
%sv_0.013.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_1.119.reg2mem = alloca i32
%sv_0.120.reg2mem = alloca i32
%storemerge421.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1.224.reg2mem = alloca i32
%sv_0.225.reg2mem = alloca i32
%sv_4.026.reg2mem = alloca i64
%indvars.iv37.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
store i32 4, i32* %2, align 4
%3 = bitcast i64* %rdi to i32*
%4 = load i32, i32* %3, align 8
%5 = urem i32 %4, 2
%6 = zext i32 %5 to i64
%7 = icmp eq i32 %5, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.1.reg2mem
br i1 %8, label LBL_17, label LBL_1
LBL_1:
%9 = add i64 %0, 12
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = sub i32 %11, %14
%16 = xor i32 %14, %11
%17 = xor i32 %15, %11
%18 = and i32 %17, %16
%19 = icmp slt i32 %18, 0
%20 = icmp eq i32 %15, 0
%21 = icmp slt i32 %15, 0
%22 = icmp ne i1 %21, %19
%23 = or i1 %20, %22
%24 = select i1 %23, i32 %11, i32 %14
%25 = add i64 %0, 16
store i64 0, i64* %indvars.iv37.reg2mem
br label LBL_2
LBL_2:
%sv_1.224.reload = load i32, i32* %sv_1.224.reg2mem
%sv_0.225.reload = load i32, i32* %sv_0.225.reg2mem
%sv_4.026.reload = load i64, i64* %sv_4.026.reg2mem
%indvars.iv37.reload = load i64, i64* %indvars.iv37.reg2mem
%26 = mul nuw nsw i64 %indvars.iv37.reload, 2068
%27 = add i64 %25, %26
%28 = icmp eq i64 %indvars.iv37.reload, 0
%29 = zext i1 %28 to i32
%30 = add i64 %27, 2064
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = load i32, i32* %2, align 4
%33 = icmp eq i32 %32, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge421.reg2mem
store i32 %sv_0.225.reload, i32* %sv_0.120.reg2mem
store i32 %sv_1.224.reload, i32* %sv_1.119.reg2mem
store i32 %sv_1.224.reload, i32* %sv_1.1.lcssa.reg2mem
store i32 %sv_0.225.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %33, label LBL_16, label LBL_3
LBL_3:
%sv_1.119.reload = load i32, i32* %sv_1.119.reg2mem
%sv_0.120.reload = load i32, i32* %sv_0.120.reg2mem
%storemerge421.reload = load i32, i32* %storemerge421.reg2mem
%.reload = load i64, i64* %.reg2mem
%34 = mul i64 %.reload, 4
%35 = add i64 %34, ptrtoint (i32** @gv_0 to i64)
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i32 %storemerge421.reload, 1
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 4
%41 = add i64 %40, ptrtoint (i32** @gv_0 to i64)
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = sub i32 %24, %43
%45 = xor i32 %43, %24
%46 = xor i32 %44, %24
%47 = and i32 %46, %45
%48 = icmp slt i32 %47, 0
%49 = icmp eq i32 %44, 0
%50 = icmp slt i32 %44, 0
%51 = icmp ne i1 %50, %48
%52 = or i1 %49, %51
%53 = select i1 %52, i32 %24, i32 %43
%54 = icmp slt i32 %37, %53
store i32 0, i32* %sv_3.0.lcssa.reg2mem
store i32 0, i32* %sv_2.0.lcssa.reg2mem
store i32 %sv_1.119.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_0.120.reload, i32* %sv_0.0.lcssa.reg2mem
store i32 %37, i32* %storemerge7.lcssa.reg2mem
br i1 %54, label LBL_4, label LBL_6
LBL_4:
%55 = sext i32 %37 to i64
%wide.trip.count = sext i32 %53 to i64
store i64 %55, i64* %indvars.iv.reg2mem
store i32 %sv_0.120.reload, i32* %sv_0.013.reg2mem
store i32 %sv_1.119.reload, i32* %sv_1.012.reg2mem
store i32 0, i32* %sv_2.011.reg2mem
store i32 0, i32* %sv_3.010.reg2mem
br label LBL_5
LBL_5:
%sv_3.010.reload = load i32, i32* %sv_3.010.reg2mem
%sv_2.011.reload = load i32, i32* %sv_2.011.reg2mem
%sv_1.012.reload = load i32, i32* %sv_1.012.reg2mem
%sv_0.013.reload = load i32, i32* %sv_0.013.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%56 = mul i64 %indvars.iv.reload, 4
%57 = add i64 %56, %27
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = call i128 @FUNC(i32 %59)
%61 = call i64 @__asm_movss.1(i128 %60)
%62 = trunc i64 %61 to i32
%63 = add i64 %57, 1024
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = call i128 @FUNC(i32 %65)
%67 = call i64 @__asm_movss.1(i128 %66)
%68 = trunc i64 %67 to i32
%69 = call i128 @FUNC(i32 %62)
%70 = call i128 @FUNC(i128 %69, i32 %68)
%71 = call i64 @__asm_movss.1(i128 %70)
%72 = trunc i64 %71 to i32
%73 = call i128 @FUNC(i32 %62)
%74 = call i128 @FUNC(i128 %73, i32 %68)
%75 = call i64 @__asm_movss.1(i128 %74)
%76 = trunc i64 %75 to i32
%77 = call i128 @FUNC(i32 %sv_3.010.reload)
%78 = call i128 @FUNC(i32 %62)
%79 = call i128 @FUNC(i128 %78, i128 %78)
%80 = call i128 @__asm_addss.2(i128 %79, i128 %77)
%81 = call i64 @__asm_movss.1(i128 %80)
%82 = trunc i64 %81 to i32
%83 = call i128 @FUNC(i32 %sv_1.012.reload)
%84 = call i128 @FUNC(i32 %68)
%85 = call i128 @FUNC(i128 %84, i128 %84)
%86 = call i128 @__asm_addss.2(i128 %85, i128 %83)
%87 = call i64 @__asm_movss.1(i128 %86)
%88 = trunc i64 %87 to i32
%89 = call i128 @FUNC(i32 %sv_2.011.reload)
%90 = call i128 @FUNC(i32 %72)
%91 = call i128 @FUNC(i128 %90, i128 %90)
%92 = call i128 @__asm_addss.2(i128 %91, i128 %89)
%93 = call i64 @__asm_movss.1(i128 %92)
%94 = trunc i64 %93 to i32
%95 = call i128 @FUNC(i32 %sv_0.013.reload)
%96 = call i128 @FUNC(i32 %76)
%97 = call i128 @FUNC(i128 %96, i128 %96)
%98 = call i128 @__asm_addss.2(i128 %97, i128 %95)
%99 = call i64 @__asm_movss.1(i128 %98)
%100 = trunc i64 %99 to i32
%indvars.iv.next = add 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 %100, i32* %sv_0.013.reg2mem
store i32 %88, i32* %sv_1.012.reg2mem
store i32 %94, i32* %sv_2.011.reg2mem
store i32 %82, i32* %sv_3.010.reg2mem
store i32 %82, i32* %sv_3.0.lcssa.reg2mem
store i32 %94, i32* %sv_2.0.lcssa.reg2mem
store i32 %88, i32* %sv_1.0.lcssa.reg2mem
store i32 %100, i32* %sv_0.0.lcssa.reg2mem
store i32 %53, i32* %storemerge7.lcssa.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%storemerge7.lcssa.reload = load i32, i32* %storemerge7.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_2.0.lcssa.reload = load i32, i32* %sv_2.0.lcssa.reg2mem
%sv_3.0.lcssa.reload = load i32, i32* %sv_3.0.lcssa.reg2mem
%101 = call i128 @FUNC(i32 %sv_2.0.lcssa.reload)
%102 = call i128 @FUNC(i32 %sv_0.0.lcssa.reload)
call void @FUNC(i128 %102, i128 %101)
%103 = icmp ugt i32 %storemerge7.lcssa.reload, %53
br i1 %103, label LBL_7, label LBL_8
LBL_7:
%104 = call i128 @FUNC(i32 %sv_2.0.lcssa.reload)
store i128 %104, i128* %storemerge6.reg2mem
br label LBL_9
LBL_8:
%105 = call i128 @FUNC(i32 %sv_0.0.lcssa.reload)
store i128 %105, i128* %storemerge6.reg2mem
br label LBL_9
LBL_9:
%storemerge6.reload = load i128, i128* %storemerge6.reg2mem
%106 = call i128 @FUNC(i32 %sv_3.0.lcssa.reload)
%107 = call i128 @FUNC(i32 %sv_1.0.lcssa.reload)
call void @FUNC(i128 %107, i128 %106)
br i1 %103, label LBL_10, label LBL_11
LBL_10:
%108 = call i128 @FUNC(i32 %sv_3.0.lcssa.reload)
store i128 %108, i128* %storemerge5.reg2mem
br label LBL_12
LBL_11:
%109 = call i128 @FUNC(i32 %sv_1.0.lcssa.reload)
store i128 %109, i128* %storemerge5.reg2mem
br label LBL_12
LBL_12:
%storemerge5.reload = load i128, i128* %storemerge5.reg2mem
call void @FUNC(i128 %storemerge5.reload, i128 %storemerge6.reload)
%110 = add nsw i64 %34, 2048
%111 = add i64 %110, %27
%112 = inttoptr i64 %111 to i32*
%. = zext i1 %103 to i32
store i32 %., i32* %112, align 4
br i1 %28, label LBL_15, label LBL_13
LBL_13:
%113 = add i64 %110, %sv_4.026.reload
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = icmp eq i32 %115, %.
br i1 %116, label LBL_15, label LBL_14
LBL_14:
store i32 1, i32* %31, align 4
br label LBL_15
LBL_15:
%117 = load i32, i32* %2, align 4
%118 = zext i32 %117 to i64
%119 = icmp slt i64 %39, %118
store i64 %39, i64* %.reg2mem
store i32 %38, i32* %storemerge421.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.120.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.119.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.lcssa.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %119, label LBL_3, label LBL_16
LBL_16:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%indvars.iv.next38 = add nuw nsw i64 %indvars.iv37.reload, 1
%exitcond39 = icmp eq i64 %indvars.iv.next38, 16
store i64 %indvars.iv.next38, i64* %indvars.iv37.reg2mem
store i64 %27, i64* %sv_4.026.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.225.reg2mem
store i32 %sv_1.1.lcssa.reload, i32* %sv_1.224.reg2mem
store i64 %27, i64* %rax.1.reg2mem
br i1 %exitcond39, label LBL_17, label LBL_2
LBL_17:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %sv_1.0.lcssa.reload, { 0, 3, 1, 2 }
uselistorder i32 %sv_0.0.lcssa.reload, { 0, 3, 1, 2 }
uselistorder i128 %96, { 1, 0 }
uselistorder i128 %90, { 1, 0 }
uselistorder i128 %84, { 1, 0 }
uselistorder i128 %78, { 1, 0 }
uselistorder i32 %68, { 2, 1, 0 }
uselistorder i32 %62, { 2, 1, 0 }
uselistorder i32 %53, { 3, 0, 1, 2 }
uselistorder i32 %44, { 1, 2, 0 }
uselistorder i32 %43, { 1, 0, 2 }
uselistorder i64 %39, { 0, 2, 1 }
uselistorder i32 %37, { 1, 0, 2 }
uselistorder i64 %34, { 1, 0 }
uselistorder i32 %sv_0.120.reload, { 1, 0 }
uselistorder i32 %sv_1.119.reload, { 1, 0 }
uselistorder i32 %24, { 3, 0, 1, 2 }
uselistorder i32 %15, { 1, 2, 0 }
uselistorder i32 %14, { 1, 0, 2 }
uselistorder i32 %11, { 2, 0, 1, 3 }
uselistorder i32 %5, { 1, 0 }
uselistorder i32* %2, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv37.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.026.reg2mem, { 1, 0 }
uselistorder i32* %sv_0.225.reg2mem, { 1, 0 }
uselistorder i32* %sv_1.224.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge421.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.120.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.119.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.013.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.012.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.010.reg2mem, { 1, 0, 2 }
uselistorder i128* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i128 (i32)* @__asm_movss, { 0, 1, 2, 3, 4, 17, 18, 19, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
uselistorder i32 0, { 2, 3, 0, 1, 6, 7, 8, 4, 5, 9, 10, 11, 12 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | get_kobj_path_length_18214 | get_kobj_path_length | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
store i32 1, i32* %sv_1.0.reg2mem
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
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%1 = call i64 @FUNC(i64 %sv_0.0.reload)
%2 = inttoptr i64 %1 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = add i32 %sv_1.0.reload, 1
%5 = add i32 %4, %3
%6 = inttoptr i64 %sv_0.0.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i32 %5, i32* %sv_1.0.reg2mem
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_2:
%10 = zext i32 %5 to i64
ret i64 %10
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | tpm_passthrough_unix_write_17149 | tpm_passthrough_unix_write | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.ph12.reg2mem = alloca i64
%sv_1.0.ph14.reg2mem = alloca i64
%sv_0.0.ph15.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%sext4 = mul i64 %arg3, 4294967296
%0 = ashr exact i64 %sext4, 32
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %sv_0.0.ph12.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = trunc i64 %arg1 to i32
store i64 %0, i64* %sv_0.0.ph15.reg2mem
store i64 %arg2, i64* %sv_1.0.ph14.reg2mem
br label LBL_7
LBL_2:
%5 = call i32* @__errno_location()
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 4
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%8 = call i32 @write(i32 %4, i64* %20, i32 %19)
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
store i32 %8, i32* %.lcssa.reg2mem
br i1 %10, label LBL_5, label LBL_2
LBL_4:
%11 = call i32* @__errno_location()
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 11
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %13, label LBL_3, label LBL_9
LBL_5:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%14 = icmp eq i32 %.lcssa.reload, 0
store i64 %sv_0.0.ph15.reload, i64* %sv_0.0.ph12.reg2mem
br i1 %14, label LBL_8, label LBL_6
LBL_6:
%15 = sext i32 %.lcssa.reload to i64
%16 = add i64 %sv_1.0.ph14.reload, %15
%17 = sub i32 %19, %.lcssa.reload
%18 = sext i32 %17 to i64
store i64 %18, i64* %sv_0.0.ph15.reg2mem
store i64 %16, i64* %sv_1.0.ph14.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.ph14.reload = load i64, i64* %sv_1.0.ph14.reg2mem
%sv_0.0.ph15.reload = load i64, i64* %sv_0.0.ph15.reg2mem
%19 = trunc i64 %sv_0.0.ph15.reload to i32
%20 = inttoptr i64 %sv_1.0.ph14.reload to i64*
%21 = call i32 @write(i32 %4, i64* %20, i32 %19)
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
store i32 %21, i32* %.lcssa.reg2mem
br i1 %23, label LBL_5, label LBL_2
LBL_8:
%sv_0.0.ph12.reload = load i64, i64* %sv_0.0.ph12.reg2mem
%24 = sub nsw i64 %0, %sv_0.0.ph12.reload
%25 = and i64 %24, 4294967295
store i64 %25, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %19, { 0, 2, 1 }
uselistorder i64 %sv_0.0.ph15.reload, { 1, 0 }
uselistorder i32 %.lcssa.reload, { 1, 0, 2 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i32* %.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | mutt_seqset_iterator_next_3649 | mutt_seqset_iterator_next | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi6.reg2mem = alloca i32*
%.pre-phi10.reg2mem = alloca i32*
%.reg2mem16 = alloca i32
%.pre-phi14.reg2mem = alloca i32*
%.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i8*
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i32* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_19
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 36
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_6, label LBL_2
LBL_2:
%8 = add i64 %3, 32
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = add i64 %3, 24
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %3, 28
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%18 = add i32 %17, -1
%19 = icmp eq i32 %14, %18
store i32 %14, i32* %.reg2mem16
store i32* %9, i32** %.pre-phi10.reg2mem
store i32* %13, i32** %.pre-phi6.reg2mem
br i1 %19, label LBL_5, label LBL_18
LBL_4:
%20 = add i32 %17, 1
%21 = icmp eq i32 %14, %20
%22 = icmp eq i1 %21, false
store i32 %14, i32* %.reg2mem16
store i32* %9, i32** %.pre-phi10.reg2mem
store i32* %13, i32** %.pre-phi6.reg2mem
br i1 %22, label LBL_18, label LBL_5
LBL_5:
store i32 0, i32* %5, align 4
br label LBL_6
LBL_6:
%23 = add i64 %3, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
store i64 %25, i64* %arg1, align 8
%26 = add i64 %3, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, %3
%30 = icmp eq i1 %29, false
store i64 1, i64* %rax.0.reg2mem
br i1 %30, label LBL_7, label LBL_19
LBL_7:
%31 = bitcast i64* %arg1 to i8*
%32 = call i8* @strchr(i8* %31, i32 44)
%33 = ptrtoint i8* %32 to i64
store i64 %33, i64* %24, align 8
%34 = icmp eq i8* %32, null
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%36 = load i64, i64* %27, align 8
store i64 %36, i64* %24, align 8
br label LBL_10
LBL_9:
%37 = add i64 %33, 1
store i64 %37, i64* %24, align 8
store i8 0, i8* %32, align 1
br label LBL_10
LBL_10:
%38 = call i8* @strchr(i8* %31, i32 58)
%39 = icmp eq i8* %38, null
store i8* null, i8** %sv_0.0.reg2mem
br i1 %39, label LBL_12, label LBL_11
LBL_11:
%40 = ptrtoint i8* %38 to i64
%41 = add i64 %40, 1
%42 = inttoptr i64 %41 to i8*
store i8 0, i8* %38, align 1
store i8* %42, i8** %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%43 = add i64 %3, 24
%44 = call i64 @FUNC(i64 %3, i64 %43)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %46, label LBL_13, label LBL_19
LBL_13:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%47 = icmp eq i8* %sv_0.0.reload, null
br i1 %47, label LBL_16, label LBL_14
LBL_14:
%48 = add i64 %3, 28
%49 = ptrtoint i8* %sv_0.0.reload to i64
%50 = call i64 @FUNC(i64 %49, i64 %48)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %52, label LBL_14.LBL_17_crit_edge, label LBL_19
LBL_15:
%.pre11 = inttoptr i64 %48 to i32*
%.pre13 = inttoptr i64 %43 to i32*
%.pre = load i32, i32* %.pre11, align 4
store i32 %.pre, i32* %.reg2mem
store i32* %.pre13, i32** %.pre-phi14.reg2mem
br label LBL_17
LBL_16:
%53 = inttoptr i64 %43 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %3, 28
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
store i32 %54, i32* %.reg2mem
store i32* %53, i32** %.pre-phi14.reg2mem
br label LBL_17
LBL_17:
%.pre-phi14.reload = load i32*, i32** %.pre-phi14.reg2mem
%.reload = load i32, i32* %.reg2mem
%57 = load i32, i32* %.pre-phi14.reload, align 4
%58 = icmp ult i32 %.reload, %57
%59 = zext i1 %58 to i32
%60 = add i64 %3, 32
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
store i32 1, i32* %5, align 4
%.pre15 = load i32, i32* %.pre-phi14.reload, align 4
store i32 %.pre15, i32* %.reg2mem16
store i32* %61, i32** %.pre-phi10.reg2mem
store i32* %.pre-phi14.reload, i32** %.pre-phi6.reg2mem
br label LBL_18
LBL_18:
%.pre-phi6.reload = load i32*, i32** %.pre-phi6.reg2mem
%.pre-phi10.reload = load i32*, i32** %.pre-phi10.reg2mem
%.reload17 = load i32, i32* %.reg2mem16
store i32 %.reload17, i32* %arg2, align 4
%62 = load i32, i32* %.pre-phi10.reload, align 4
%63 = icmp eq i32 %62, 0
%64 = load i32, i32* %.pre-phi6.reload, align 4
%storemerge.v = select i1 %63, i32 1, i32 -1
%storemerge = add i32 %storemerge.v, %64
store i32 %storemerge, i32* %.pre-phi6.reload, align 4
store i64 0, 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 i32* %.pre-phi6.reload, { 1, 0 }
uselistorder i32* %.pre-phi14.reload, { 0, 2, 1 }
uselistorder i64 %43, { 1, 0, 2 }
uselistorder i8* %38, { 1, 0, 2 }
uselistorder i8* %32, { 1, 0, 2 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32 %14, { 0, 3, 1, 2 }
uselistorder i32* %5, { 1, 0, 2 }
uselistorder i64 %3, { 3, 4, 5, 6, 7, 0, 8, 9, 1, 2, 11, 10 }
uselistorder i32* %.reg2mem16, { 0, 3, 1, 2 }
uselistorder i32** %.pre-phi10.reg2mem, { 0, 3, 1, 2 }
uselistorder i32** %.pre-phi6.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i64, i64)* @mutt_str_atoui, { 1, 0 }
uselistorder i8* null, { 2, 0, 3, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 1, 3, 2 }
uselistorder label LBL_19, { 4, 0, 1, 2, 3 }
uselistorder label LBL_18, { 2, 0, 1 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | TIFFReadEncodedStrip_13698 | TIFFReadEncodedStrip | 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 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_13
LBL_1:
%8 = trunc i64 %2 to i32
%9 = icmp ugt i32 %8, %arg2
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = and i64 %2, 4294967295
%11 = zext i32 %arg2 to i64
%12 = add i64 %3, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %11, i64 %10, i64 %1)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%16 = add i64 %3, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %3, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp ugt i32 %18, %21
%spec.select6 = select i1 %22, i32 %21, i32 %18
%23 = zext i32 %spec.select6 to i64
%24 = zext i32 %21 to i64
%25 = call i64 @FUNC(i64 %24, i64 %23)
%.rhs.trunc = trunc i64 %25 to i32
%26 = urem i32 %arg2, %.rhs.trunc
%27 = load i32, i32* %20, align 4
%28 = mul i32 %spec.select6, %26
%29 = sub i32 %27, %28
%30 = icmp ugt i32 %29, %spec.select6
%spec.select = select i1 %30, i32 %spec.select6, i32 %29
%31 = zext i32 %spec.select to i64
%32 = call i64 @FUNC(i64 %3, i64 %31)
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %34, label LBL_4, label LBL_13
LBL_4:
%35 = add i64 %3, 14
%36 = inttoptr i64 %35 to i16*
%37 = load i16, i16* %36, align 2
%38 = icmp eq i16 %37, 1
%39 = icmp eq i1 %38, false
%40 = icmp eq i64 %arg4, -1
%or.cond = or i1 %40, %39
%41 = icmp ugt i64 %32, %arg4
%or.cond3 = or i1 %41, %or.cond
br i1 %or.cond3, label LBL_11, label LBL_5
LBL_5:
%42 = call i64 @FUNC(i64 %3)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_11, label LBL_6
LBL_6:
%46 = add i64 %3, 24
%47 = inttoptr i64 %46 to i16*
%48 = load i16, i16* %47, align 2
%49 = and i16 %48, 2
%50 = icmp eq i16 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_11, label LBL_7
LBL_7:
%52 = call i64 @FUNC(i64 %3, i32 %arg2, i64 %arg3, i64 %32, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%sext1 = mul i64 %52, 4294967296
%53 = ashr exact i64 %sext1, 32
%54 = icmp eq i64 %32, %53
store i64 -1, i64* %rax.0.reg2mem
br i1 %54, label LBL_8, label LBL_13
LBL_8:
%55 = add i64 %3, 12
%56 = inttoptr i64 %55 to i16*
%57 = load i16, i16* %56, align 2
%58 = zext i16 %57 to i64
%59 = call i64 @FUNC(i64 %3, i64 %58)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 %32, i64* %rax.0.reg2mem
br i1 %62, label LBL_13, label LBL_9
LBL_9:
%63 = load i16, i16* %47, align 2
%64 = and i16 %63, 4
%65 = icmp eq i16 %64, 0
%66 = icmp eq i1 %65, false
store i64 %32, i64* %rax.0.reg2mem
br i1 %66, label LBL_13, label LBL_10
LBL_10:
%67 = call i64 @FUNC(i64 %arg3, i64 %32)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%68 = zext i32 %arg2 to i64
%69 = call i64 @FUNC(i64 %3, i64 %68)
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, 0
%72 = icmp eq i1 %71, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %72, label LBL_12, label LBL_13
LBL_12:
%73 = icmp eq i1 %41, false
%or.cond5 = or i1 %40, %73
%sv_0.0 = select i1 %or.cond5, i64 %32, i64 %arg4
%74 = icmp eq i64* %arg1, null
%75 = icmp eq i1 %74, false
%sv_0.0. = select i1 %75, i64 %sv_0.0, i64 -1
store i64 %sv_0.0., i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %41, { 1, 0 }
uselistorder i1 %40, { 1, 0 }
uselistorder i64 %32, { 3, 2, 5, 1, 0, 6, 7, 4, 8 }
uselistorder i32 %spec.select6, { 3, 1, 2, 0 }
uselistorder i64 %3, { 6, 1, 2, 4, 3, 5, 7, 8, 10, 9, 0, 11 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3, 6, 7, 9, 8 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 -1, { 5, 0, 1, 6, 2, 4, 3 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i32 %arg2, { 3, 2, 0, 4, 1 }
uselistorder label LBL_13, { 0, 1, 4, 3, 2, 5, 6, 8, 7 }
} | 0 |
BinRealVul | rc4030_realize_18663 | rc4030_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 0, i64 4198930, i64 %1)
%4 = trunc i64 %3 to i32
%5 = inttoptr i64 %1 to i32*
store i32 %4, i32* %5, align 4
%6 = add i64 %1, 8
%7 = call i64 @FUNC(i64 %6, i64 0, i64* nonnull @gv_0, i64 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 768)
%8 = add i64 %1, 16
%9 = call i64 @FUNC(i64 %8, i64 0, i64* nonnull @gv_2, i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i64 4096)
%10 = add i64 %1, 24
%11 = call i64 @FUNC(i64 %10, i64 %2, i64* nonnull @gv_4, i64 %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0), i64 64)
%12 = add i64 %1, 32
%13 = call i64 @FUNC(i64 %12, i64 %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_6, i64 0, i64 0), i64 0)
%14 = add i64 %1, 40
%15 = call i64 @FUNC(i64 %14, i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_7, i64 0, i64 0), i64 2147483647)
%16 = add i64 %1, 48
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%17 = call i64 @FUNC()
%18 = mul i64 %indvars.iv.reload, 8
%19 = add i64 %16, %18
%20 = call i64 @FUNC(i64 %19, i64 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_8, i64 0, i64 0), i64 %17, i64 0, i64 4096)
%21 = call i64 @FUNC(i64 %19, i64 0)
%22 = mul i64 %indvars.iv.reload, 4096
%23 = call i64 @FUNC(i64 %14, i64 %22, i64 %19)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%24 = add i64 %1, 176
%25 = call i64 @FUNC(i64 %24, i64 %14, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_9, i64 0, i64 0))
ret i64 %25
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64, i8*, i64)* @memory_region_init, { 1, 0 }
uselistorder i64 (i64, i64, i64*, i64, i8*, i64)* @memory_region_init_io, { 1, 0 }
} | 1 |
BinRealVul | ff_h263_pred_motion_5168 | ff_h263_pred_motion | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%.pre-phi14.reg2mem = alloca i16*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %2 to i32
%5 = sext i32 %arg3 to i64
%6 = mul i64 %5, 64
%7 = or i64 %6, 16
%8 = add i64 %7, %3
%9 = sext i32 %arg2 to i64
%10 = mul i64 %9, 4
%11 = add i64 %3, 144
%12 = add i64 %11, %10
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 4
%17 = add i64 %8, %16
%18 = add i64 %17, -4
%19 = inttoptr i64 %18 to i16*
%20 = add i64 %3, 160
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp sgt i32 %arg2, 2
%or.cond = or i1 %24, %23
br i1 %or.cond, label LBL_19, label LBL_1
LBL_1:
%25 = icmp eq i32 %arg2, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_10, label LBL_2
LBL_2:
%27 = add i64 %3, 4
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i64 %3, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %29, %32
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_4, label LBL_3
LBL_3:
%35 = trunc i64 %1 to i32
%36 = bitcast i64* %arg5 to i32*
store i32 0, i32* %36, align 4
%37 = bitcast i64* %arg4 to i32*
store i32 %35, i32* %37, align 4
br label LBL_20
LBL_4:
%38 = add i32 %29, 1
%39 = icmp eq i32 %38, %32
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_9, label LBL_5
LBL_5:
%41 = add i64 %3, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_9, label LBL_6
LBL_6:
%45 = add i64 %10, ptrtoint (i32** @gv_0 to i64)
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = sub i32 %47, %4
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 4
%51 = add i64 %50, %17
%52 = inttoptr i64 %51 to i16*
%53 = icmp eq i32 %29, 0
%54 = icmp eq i1 %53, false
%55 = load i16, i16* %52, align 2
br i1 %54, label LBL_8, label LBL_7
LBL_7:
%56 = sext i16 %55 to i32
%57 = bitcast i64* %arg4 to i32*
store i32 %56, i32* %57, align 4
%58 = add i64 %51, 2
%59 = inttoptr i64 %58 to i16*
%60 = load i16, i16* %59, align 2
%61 = sext i16 %60 to i32
%62 = bitcast i64* %arg5 to i32*
store i32 %61, i32* %62, align 4
br label LBL_20
LBL_8:
%63 = sext i16 %55 to i64
%64 = load i16, i16* %19, align 2
%65 = sext i16 %64 to i64
%66 = and i64 %65, 4294967295
%67 = call i64 @FUNC(i64 %66, i64 0, i64 %63)
%68 = trunc i64 %67 to i32
%sext = mul i32 %68, 65536
%69 = ashr exact i32 %sext, 16
%70 = bitcast i64* %arg4 to i32*
store i32 %69, i32* %70, align 4
%71 = add i64 %51, 2
%72 = inttoptr i64 %71 to i16*
%73 = load i16, i16* %72, align 2
%74 = sext i16 %73 to i64
%75 = add i64 %17, -2
%76 = inttoptr i64 %75 to i16*
%77 = load i16, i16* %76, align 2
%78 = sext i16 %77 to i64
%79 = and i64 %78, 4294967295
%80 = call i64 @FUNC(i64 %79, i64 0, i64 %74)
%81 = trunc i64 %80 to i32
%sext4 = mul i32 %81, 65536
%82 = ashr exact i32 %sext4, 16
%83 = bitcast i64* %arg5 to i32*
store i32 %82, i32* %83, align 4
br label LBL_20
LBL_9:
%84 = load i16, i16* %19, align 2
%85 = sext i16 %84 to i32
%86 = bitcast i64* %arg4 to i32*
store i32 %85, i32* %86, align 4
%87 = add i64 %17, -2
%88 = inttoptr i64 %87 to i16*
%89 = load i16, i16* %88, align 2
%90 = sext i16 %89 to i32
%91 = bitcast i64* %arg5 to i32*
store i32 %90, i32* %91, align 4
br label LBL_20
LBL_10:
%92 = icmp eq i32 %arg2, 1
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_15, label LBL_11
LBL_11:
%94 = add i64 %3, 4
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = add i32 %96, 1
%98 = add i64 %3, 8
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = icmp eq i32 %97, %100
%102 = icmp eq i1 %101, false
br i1 %102, label LBL_14, label LBL_12
LBL_12:
%103 = add i64 %3, 12
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = icmp eq i32 %105, 0
br i1 %106, label LBL_14, label LBL_13
LBL_13:
%107 = add i64 %10, ptrtoint (i32** @gv_0 to i64)
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = sub i32 %109, %4
%111 = sext i32 %110 to i64
%112 = mul i64 %111, 4
%113 = add i64 %112, %17
%114 = inttoptr i64 %113 to i16*
%115 = load i16, i16* %114, align 2
%116 = sext i16 %115 to i64
%117 = load i16, i16* %19, align 2
%118 = sext i16 %117 to i64
%119 = and i64 %118, 4294967295
%120 = call i64 @FUNC(i64 %119, i64 0, i64 %116)
%121 = trunc i64 %120 to i32
%sext5 = mul i32 %121, 65536
%122 = ashr exact i32 %sext5, 16
%123 = bitcast i64* %arg4 to i32*
store i32 %122, i32* %123, align 4
%124 = add i64 %113, 2
%125 = inttoptr i64 %124 to i16*
%126 = load i16, i16* %125, align 2
%127 = sext i16 %126 to i64
%128 = add i64 %17, -2
%129 = inttoptr i64 %128 to i16*
%130 = load i16, i16* %129, align 2
%131 = sext i16 %130 to i64
%132 = and i64 %131, 4294967295
%133 = call i64 @FUNC(i64 %132, i64 0, i64 %127)
%134 = trunc i64 %133 to i32
%sext6 = mul i32 %134, 65536
%135 = ashr exact i32 %sext6, 16
%136 = bitcast i64* %arg5 to i32*
store i32 %135, i32* %136, align 4
br label LBL_20
LBL_14:
%137 = load i16, i16* %19, align 2
%138 = sext i16 %137 to i32
%139 = bitcast i64* %arg4 to i32*
store i32 %138, i32* %139, align 4
%140 = add i64 %17, -2
%141 = inttoptr i64 %140 to i16*
%142 = load i16, i16* %141, align 2
%143 = sext i16 %142 to i32
%144 = bitcast i64* %arg5 to i32*
store i32 %143, i32* %144, align 4
br label LBL_20
LBL_15:
%145 = add i64 %10, ptrtoint (i32** @gv_0 to i64)
%146 = inttoptr i64 %145 to i32*
%147 = load i32, i32* %146, align 4
%148 = add i64 %3, 4
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = add i64 %3, 8
%152 = inttoptr i64 %151 to i32*
%153 = load i32, i32* %152, align 4
%154 = icmp eq i32 %150, %153
%155 = icmp eq i1 %154, false
br i1 %155, label LBL_15.LBL_18_crit_edge, label LBL_17
LBL_16:
%.pre = load i16, i16* %19, align 2
%.pre12 = add i64 %17, -2
%.pre13 = inttoptr i64 %.pre12 to i16*
%phitmp = sext i16 %.pre to i64
%phitmp16 = and i64 %phitmp, 4294967295
store i16* %.pre13, i16** %.pre-phi14.reg2mem
store i64 %phitmp16, i64* %.reg2mem
br label LBL_18
LBL_17:
%156 = add i64 %17, -2
%157 = inttoptr i64 %156 to i16*
store i16 0, i16* %157, align 2
store i16 0, i16* %19, align 2
store i16* %157, i16** %.pre-phi14.reg2mem
store i64 0, i64* %.reg2mem
br label LBL_18
LBL_18:
%158 = mul i64 %2, 4294967296
%sext15 = sub i64 0, %158
%159 = ashr exact i64 %sext15, 30
%160 = add i64 %17, %159
%161 = inttoptr i64 %160 to i16*
%162 = sub i32 %147, %4
%163 = sext i32 %162 to i64
%164 = mul i64 %163, 4
%165 = add i64 %164, %17
%166 = inttoptr i64 %165 to i16*
%.reload = load i64, i64* %.reg2mem
%.pre-phi14.reload = load i16*, i16** %.pre-phi14.reg2mem
%167 = load i16, i16* %166, align 2
%168 = sext i16 %167 to i64
%169 = load i16, i16* %161, align 2
%170 = sext i16 %169 to i64
%171 = and i64 %170, 4294967295
%172 = call i64 @FUNC(i64 %.reload, i64 %171, i64 %168)
%173 = trunc i64 %172 to i32
%sext7 = mul i32 %173, 65536
%174 = ashr exact i32 %sext7, 16
%175 = bitcast i64* %arg4 to i32*
store i32 %174, i32* %175, align 4
%176 = add i64 %165, 2
%177 = inttoptr i64 %176 to i16*
%178 = load i16, i16* %177, align 2
%179 = sext i16 %178 to i64
%180 = add i64 %160, 2
%181 = inttoptr i64 %180 to i16*
%182 = load i16, i16* %181, align 2
%183 = load i16, i16* %.pre-phi14.reload, align 2
%184 = sext i16 %183 to i64
%185 = sext i16 %182 to i64
%186 = and i64 %185, 4294967295
%187 = and i64 %184, 4294967295
%188 = call i64 @FUNC(i64 %187, i64 %186, i64 %179)
%189 = trunc i64 %188 to i32
%sext8 = mul i32 %189, 65536
%190 = ashr exact i32 %sext8, 16
%191 = bitcast i64* %arg5 to i32*
store i32 %190, i32* %191, align 4
br label LBL_20
LBL_19:
%192 = mul i64 %2, 4294967296
%sext17 = sub i64 0, %192
%193 = ashr exact i64 %sext17, 30
%194 = add i64 %17, %193
%195 = add i64 %10, ptrtoint (i32** @gv_0 to i64)
%196 = inttoptr i64 %195 to i32*
%197 = load i32, i32* %196, align 4
%198 = sub i32 %197, %4
%199 = sext i32 %198 to i64
%200 = mul i64 %199, 4
%201 = add i64 %200, %17
%202 = inttoptr i64 %201 to i16*
%203 = load i16, i16* %202, align 2
%204 = sext i16 %203 to i64
%205 = inttoptr i64 %194 to i16*
%206 = load i16, i16* %205, align 2
%207 = load i16, i16* %19, align 2
%208 = sext i16 %207 to i64
%209 = sext i16 %206 to i64
%210 = and i64 %209, 4294967295
%211 = and i64 %208, 4294967295
%212 = call i64 @FUNC(i64 %211, i64 %210, i64 %204)
%213 = trunc i64 %212 to i32
%sext9 = mul i32 %213, 65536
%214 = ashr exact i32 %sext9, 16
%215 = bitcast i64* %arg4 to i32*
store i32 %214, i32* %215, align 4
%216 = add i64 %201, 2
%217 = inttoptr i64 %216 to i16*
%218 = load i16, i16* %217, align 2
%219 = sext i16 %218 to i64
%220 = add i64 %194, 2
%221 = inttoptr i64 %220 to i16*
%222 = load i16, i16* %221, align 2
%223 = add i64 %17, -2
%224 = inttoptr i64 %223 to i16*
%225 = load i16, i16* %224, align 2
%226 = sext i16 %225 to i64
%227 = sext i16 %222 to i64
%228 = and i64 %227, 4294967295
%229 = and i64 %226, 4294967295
%230 = call i64 @FUNC(i64 %229, i64 %228, i64 %219)
%231 = trunc i64 %230 to i32
%sext10 = mul i32 %231, 65536
%232 = ashr exact i32 %sext10, 16
%233 = bitcast i64* %arg5 to i32*
store i32 %232, i32* %233, align 4
br label LBL_20
LBL_20:
ret i64 %17
uselistorder i16 %55, { 1, 0 }
uselistorder i16* %19, { 6, 4, 0, 3, 5, 2, 1 }
uselistorder i64 %17, { 13, 7, 0, 1, 2, 3, 8, 6, 9, 10, 4, 11, 12, 5, 14 }
uselistorder i64 %3, { 9, 8, 7, 6, 5, 4, 3, 2, 10, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 -2, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @mid_pred, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 %arg2, { 2, 1, 0, 3 }
uselistorder label LBL_20, { 3, 4, 5, 2, 6, 1, 0, 7 }
uselistorder label LBL_18, { 1, 0 }
} | 0 |
BinRealVul | rm_read_header_old_15000 | rm_read_header_old | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = icmp eq i64 %2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 %2, i64 1)
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 }
} | 1 |
BinRealVul | __check_mem_permission_10094 | __check_mem_permission | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 4294967274)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%5 = load i64, i64* @gv_0, align 8
%6 = icmp eq i64 %5, %0
%7 = icmp eq i1 %6, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_7
LBL_3:
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_6, label LBL_4
LBL_4:
%11 = call i64 @FUNC()
%12 = call i64 @FUNC(i64 %0)
%13 = load i64, i64* @gv_0, align 8
%14 = icmp eq i64 %12, %13
%15 = call i64 @FUNC()
%16 = icmp eq i1 %14, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %0, i64 0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %19, label LBL_6, label LBL_7
LBL_6:
%20 = call i64 @FUNC(i64 %1)
%21 = call i64 @FUNC(i64 4294967295)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64 %0, { 1, 2, 3, 0, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @ERR_PTR, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 1, 3 }
} | 0 |
BinRealVul | ff_snow_frame_start_7409 | ff_snow_frame_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rcx.319.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem23 = alloca i64
%rcx.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%.reg2mem = alloca i32
%rdi.09.reg2mem = alloca i64
%storemerge110.reg2mem = alloca i32
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%.pre14 = add i64 %0, 48
%.pre16 = inttoptr i64 %.pre14 to i64*
%.pre22 = load i64, i64* %.pre16, align 8
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %.pre22, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %0, 72
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = urem i32 %13, 32
%15 = add i64 %0, 68
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = urem i32 %17, 32
%19 = lshr i32 16, %14
%rdx.0 = zext i32 %19 to i64
%20 = lshr i32 16, %18
%rdx.1 = zext i32 %20 to i64
store i64 %rdx.1, i64* %r8.0.reg2mem
store i64 %rdx.0, i64* %r9.0.reg2mem
br label LBL_3
LBL_3:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%21 = call i64 @FUNC(i64 %.pre22)
%22 = add i64 %0, 56
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = sext i32 %24 to i64
%26 = mul nsw i64 %25, 40
%27 = add i64 %.pre22, -40
%28 = add i64 %27, %26
%29 = ptrtoint i64* %sv_0 to i64
%30 = call i64 @FUNC(i64* nonnull %sv_0, i64 %28)
%31 = load i32, i32* %23, align 4
%storemerge18 = add i32 %31, -1
%32 = icmp eq i32 %storemerge18, 0
%33 = icmp slt i32 %storemerge18, 0
%34 = icmp eq i1 %33, false
%35 = icmp eq i1 %32, false
%36 = icmp eq i1 %34, %35
store i32 %storemerge18, i32* %storemerge110.reg2mem
store i64 %29, i64* %rdi.09.reg2mem
store i32 %31, i32* %.reg2mem
br i1 %36, label LBL_4, label LBL_6
LBL_4:
%rdi.09.reload = load i64, i64* %rdi.09.reg2mem
%storemerge110.reload = load i32, i32* %storemerge110.reg2mem
%37 = sext i32 %storemerge110.reload to i64
%38 = mul nsw i64 %37, 40
%39 = add i64 %38, %rdi.09.reload
%40 = add i64 %39, -40
%41 = inttoptr i64 %39 to i64*
%42 = call i64 @FUNC(i64* %41, i64 %40)
%storemerge1 = add i32 %storemerge110.reload, -1
%43 = icmp eq i32 %storemerge1, 0
%44 = icmp slt i32 %storemerge1, 0
%45 = icmp eq i1 %44, false
%46 = icmp eq i1 %43, false
%47 = icmp eq i1 %45, %46
store i32 %storemerge1, i32* %storemerge110.reg2mem
store i64 %39, i64* %rdi.09.reg2mem
br i1 %47, label LBL_4, label LBL_5
LBL_5:
%.pre = load i32, i32* %23, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i32, i32* %.reg2mem
%48 = mul i32 %.reload, 128
%49 = add i32 %48, -128
%50 = add i64 %0, 80
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = add i64 %52, 8
%54 = inttoptr i64 %53 to i64*
%55 = inttoptr i64 %52 to i64*
%56 = call i64* @memmove(i64* %54, i64* %55, i32 %49)
%57 = load i64, i64* %2, align 8
%58 = icmp eq i64 %57, 0
store i64* %54, i64** %.pre-phi.reg2mem
store i64 %53, i64* %rcx.0.reg2mem
br i1 %58, label LBL_8, label LBL_7
LBL_7:
%59 = load i64, i64* %51, align 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = call i64 @FUNC(i64 %0, i64 %61, i64 %1)
store i64* %arg1, i64** %.pre-phi.reg2mem
store i64 %61, i64* %rcx.0.reg2mem
br label LBL_8
LBL_8:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%63 = call i64 @FUNC(i64* %.pre-phi.reload, i64 %1)
%64 = call i64 @FUNC(i64* nonnull %2, i64 %29)
%65 = add i64 %0, 64
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = icmp eq i32 %67, 0
br i1 %68, label LBL_9, label LBL_12
LBL_9:
%69 = load i32, i32* %23, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label LBL_11, label LBL_10
LBL_10:
%71 = zext i32 %69 to i64
store i64 0, i64* %.reg2mem23
store i32 0, i32* %storemerge3.reg2mem
br label LBL_17
LBL_11:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%72 = add i64 %0, 60
%73 = inttoptr i64 %72 to i32*
store i32 0, i32* %73, align 4
store i64 %rcx.0.reload, i64* %rcx.319.reg2mem
br label LBL_19
LBL_12:
%74 = add i64 %0, 60
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
br label LBL_20
LBL_13:
%76 = icmp eq i32 %storemerge3.reload, 0
br i1 %76, label LBL_16, label LBL_14
LBL_14:
%77 = add i64 %88, -4
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = icmp eq i32 %79, 0
%81 = icmp eq i1 %80, false
br i1 %81, label LBL_15, label LBL_16
LBL_15:
%82 = add i64 %0, 60
%83 = inttoptr i64 %82 to i32*
store i32 %storemerge3.reload, i32* %83, align 4
br label LBL_20
LBL_16:
%84 = add i32 %storemerge3.reload, 1
%85 = sext i32 %84 to i64
%86 = icmp slt i64 %85, %71
store i64 %85, i64* %.reg2mem23
store i32 %84, i32* %storemerge3.reg2mem
store i32 %84, i32* %storemerge.lcssa.reg2mem
br i1 %86, label LBL_17, label LBL_18
LBL_17:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload24 = load i64, i64* %.reg2mem23
%87 = mul nsw i64 %.reload24, 40
%88 = add i64 %87, %1
%89 = inttoptr i64 %88 to i64*
%90 = load i64, i64* %89, align 8
%91 = icmp eq i64 %90, 0
%92 = icmp eq i1 %91, false
store i32 %storemerge3.reload, i32* %storemerge.lcssa.reg2mem
br i1 %92, label LBL_13, label LBL_18
LBL_18:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%93 = add i64 %0, 60
%94 = inttoptr i64 %93 to i32*
store i32 %storemerge.lcssa.reload, i32* %94, align 4
%95 = icmp eq i32 %storemerge.lcssa.reload, 0
%96 = icmp eq i1 %95, false
store i64 %1, i64* %rcx.319.reg2mem
br i1 %96, label LBL_20, label LBL_19
LBL_19:
%rcx.319.reload = load i64, i64* %rcx.319.reg2mem
%97 = load i64, i64* %.pre16, align 8
%98 = call i64 @FUNC(i64 %97, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.319.reload, i64 %r8.0.reload, i64 %r9.0.reload)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_23
LBL_20:
%99 = load i64, i64* %.pre16, align 8
%100 = call i64 @FUNC(i64 %99, i64 %1, i64 1)
%101 = trunc i64 %100 to i32
%102 = icmp slt i32 %101, 0
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_22, label LBL_21
LBL_21:
%104 = and i64 %100, 4294967295
store i64 %104, i64* %rax.0.reg2mem
br label LBL_23
LBL_22:
%105 = load i32, i32* %66, align 4
%106 = add i64 %0, 44
%107 = inttoptr i64 %106 to i32*
store i32 %105, i32* %107, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %88, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 0, 1, 3, 2 }
uselistorder i64 %52, { 1, 0 }
uselistorder i32 %storemerge1, { 0, 2, 1 }
uselistorder i32 %storemerge110.reload, { 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i32* %23, { 1, 0, 2, 3 }
uselistorder i64* %.pre16, { 1, 2, 0 }
uselistorder i64 %1, { 2, 0, 1, 3, 4, 5 }
uselistorder i64 %0, { 6, 7, 2, 9, 0, 8, 5, 10, 11, 3, 4, 1, 12 }
uselistorder i32* %storemerge110.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.09.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem23, { 0, 2, 1 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 60, { 2, 1, 3, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64*, i64)* @av_frame_move_ref, { 3, 2, 1, 0 }
uselistorder i64 40, { 1, 0, 2 }
uselistorder i1 false, { 3, 4, 6, 5, 7, 2, 0, 1, 8 }
uselistorder i32 0, { 5, 6, 7, 8, 9, 1, 0, 2, 10, 11, 12, 3, 4, 13 }
uselistorder i64 0, { 0, 5, 3, 4, 7, 1, 8, 9, 2, 6 }
uselistorder label LBL_20, { 1, 0, 2 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | jpc_dec_process_eoc_8532 | jpc_dec_process_eoc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%storemerge2.in5.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = and i64 %1, 4294967295
store i64 %7, i64* %storemerge2.in5.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br label LBL_2
LBL_2:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%storemerge2.in5.reload = load i64, i64* %storemerge2.in5.reg2mem
%storemerge26 = inttoptr i64 %storemerge2.in5.reload to i32*
%9 = load i32, i32* %storemerge26, align 4
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
store i32 %9, i32* %.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %2, i64 %storemerge2.in5.reload)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %14, label LBL_4, label LBL_9
LBL_4:
%.pr = load i32, i32* %storemerge26, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%15 = icmp eq i32 %.reload, 2
br i1 %15, label LBL_7, label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %2, i64 %storemerge2.in5.reload)
br label LBL_7
LBL_7:
%17 = add i32 %sv_0.04.reload, 1
%18 = add i64 %storemerge2.in5.reload, 4
%19 = sext i32 %17 to i64
%20 = icmp sgt i64 %8, %19
store i64 %18, i64* %storemerge2.in5.reg2mem
store i32 %17, i32* %sv_0.04.reg2mem
br i1 %20, label LBL_2, label LBL_8
LBL_8:
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i32*
store i32 3, i32* %22, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge2.in5.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mxf_read_material_package_16975 | mxf_read_material_package | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 17411
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | WT_CheckSampleEnd_10955 | WT_CheckSampleEnd | define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi5.reg2mem = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = trunc i64 %2 to i32
%6 = mul i32 %5, 65536
%7 = add i32 %6, %4
%8 = add i64 %3, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = udiv i32 %7, 65536
%12 = add i32 %10, %11
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %12, %15
store i64 0, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_6, label LBL_1
LBL_1:
%17 = sub i32 %15, %10
%18 = mul i32 %17, 65536
%19 = sub i32 %18, %4
%20 = icmp eq i32 %5, 0
br i1 %20, label LBL_3, label LBL_2
LBL_2:
%21 = udiv i32 %19, %5
%22 = add i32 %21, 1
%23 = ptrtoint i32* %arg2 to i64
%24 = add i64 %23, 4
%25 = inttoptr i64 %24 to i32*
store i32 %22, i32* %25, align 4
store i32 %22, i32* %.reg2mem
store i32* %25, i32** %.pre-phi5.reg2mem
br label LBL_4
LBL_3:
%26 = ptrtoint i32* %arg2 to i64
%27 = add i64 %26, 4
%28 = inttoptr i64 %27 to i32*
store i32 %19, i32* %28, align 4
store i32 %19, i32* %.reg2mem
store i32* %28, i32** %.pre-phi5.reg2mem
br label LBL_4
LBL_4:
%.reload = load i32, i32* %.reg2mem
%29 = icmp slt i32 %.reload, 0
%30 = icmp eq i1 %29, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%.pre-phi5.reload = load i32*, i32** %.pre-phi5.reg2mem
%31 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
store i32 0, i32* %.pre-phi5.reload, align 4
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%32 = trunc i64 %arg3 to i8
%33 = icmp eq i8 %32, 0
br i1 %33, label LBL_8, label LBL_7
LBL_7:
store i32 %7, i32* %arg1, align 4
store i32 %12, i32* %9, align 4
br label LBL_8
LBL_8:
ret i64 %sv_0.0.reload
uselistorder i32 %19, { 0, 2, 1 }
uselistorder i32 %10, { 1, 0 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %5, { 1, 2, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 65536, { 0, 2, 1 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 1 |
BinRealVul | emulate_store_desc_ptr_11342 | emulate_store_desc_ptr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
%.pre = add i64 %2, 4
%.pre2 = inttoptr i64 %.pre to i32*
br i1 %5, label LBL_2, label LBL_1
LBL_1:
store i32 8, i32* %.pre2, align 4
br label LBL_4
LBL_2:
%.pre4 = load i32, i32* %.pre2, align 4
%phitmp = icmp eq i32 %.pre4, 2
%phitmp5 = icmp eq i1 %phitmp, false
br i1 %phitmp5, label LBL_4, label LBL_3
LBL_3:
store i32 4, i32* %.pre2, align 4
%6 = load i32, i32* %sv_0, align 4
%7 = urem i32 %6, 16777216
store i32 %7, i32* %sv_0, align 4
br label LBL_4
LBL_4:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = load i32, i32* %.pre2, align 4
%11 = add i32 %10, 2
%12 = zext i32 %11 to i64
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = bitcast i32* %sv_0 to i64*
%17 = call i64 @FUNC(i64 %2, i64 %15, i64* nonnull %16, i64 %12)
ret i64 %17
uselistorder i32* %.pre2, { 1, 2, 0, 3 }
uselistorder i32* %sv_0, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | security_context_to_sid_core_13730 | security_context_to_sid_core | define i64 @FUNC(i8* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_15
LBL_1:
%3 = load i32, i32* @gv_0, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 1, i64* %indvars.iv.reg2mem
br i1 %5, label LBL_6, label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = mul i64 %indvars.iv.reload, 8
%7 = add i64 %6, ptrtoint (i64* @gv_1 to i64)
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i8*
%11 = call i32 @strcmp(i8* %10, i8* %arg1)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = trunc i64 %indvars.iv.reload to i32
%15 = bitcast i64* %arg3 to i32*
store i32 %14, i32* %15, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%16 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %16, label LBL_2, label LBL_5
LBL_5:
%17 = bitcast i64* %arg3 to i32*
store i32 0, i32* %17, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_6:
%sext = mul i64 %arg2, 4294967296
%18 = ashr exact i64 %sext, 32
%19 = and i64 %arg5, 4294967295
%20 = bitcast i64* %arg3 to i32*
store i32 0, i32* %20, align 4
%21 = add nsw i64 %18, 1
%22 = and i64 %21, 4294967295
%23 = call i64 @FUNC(i64 %22, i64 %19)
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %25, label LBL_7, label LBL_15
LBL_7:
%26 = trunc i64 %18 to i32
%27 = inttoptr i64 %23 to i64*
%28 = bitcast i8* %arg1 to i64*
%29 = call i64* @memcpy(i64* %27, i64* %28, i32 %26)
%30 = and i64 %18, 4294967295
%31 = add i64 %23, %30
%32 = inttoptr i64 %31 to i8*
store i8 0, i8* %32, align 1
%33 = trunc i64 %arg6 to i32
%34 = icmp eq i32 %33, 0
store i64 0, i64* %sv_1.0.reg2mem
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %23, i64 %19)
%36 = icmp eq i64 %35, 0
store i64 %35, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_1.3.reg2mem
store i64 4294967284, i64* %sv_0.1.reg2mem
br i1 %36, label LBL_14, label LBL_9
LBL_9:
%37 = and i64 %arg4, 4294967295
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%38 = call i64 @FUNC(i64* nonnull @gv_2)
%39 = call i64 @FUNC(i64* nonnull @gv_3, i64* nonnull @gv_4, i64 %23, i64 %30, i64* nonnull %sv_2, i64 %37)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, -22
%42 = icmp eq i1 %41, false
%or.cond = or i1 %34, %42
br i1 %or.cond, label LBL_11, label LBL_10
LBL_10:
store i64 %sv_1.0.reload, i64* %sv_2, align 8
store i64 0, i64* %sv_1.1.reg2mem
br label LBL_12
LBL_11:
%43 = icmp eq i32 %40, 0
%44 = icmp eq i1 %43, false
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem
store i64 %39, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_13, label LBL_12
LBL_12:
%45 = ptrtoint i64* %arg3 to i64
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%46 = call i64 @FUNC(i64* nonnull @gv_4, i64* nonnull %sv_2, i64 %45)
%47 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
store i64 %46, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%48 = call i64 @FUNC(i64* nonnull @gv_2)
store i64 %sv_1.2.reload, i64* %sv_1.3.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%49 = call i64 @FUNC(i64 %23)
%50 = call i64 @FUNC(i64 %sv_1.3.reload)
%51 = and i64 %sv_0.1.reload, 4294967295
store i64 %51, 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 %30, { 1, 0 }
uselistorder i64 %23, { 2, 3, 1, 0, 4, 5 }
uselistorder i64* %sv_2, { 0, 1, 3, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 3, 4, 2 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 5, 4, 6, 7, 0 }
uselistorder i64* %arg3, { 3, 0, 2, 1 }
uselistorder i8* %arg1, { 1, 0 }
uselistorder label LBL_15, { 2, 0, 4, 3, 1 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | display_end_segment_18193 | display_end_segment | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = bitcast i64* %arg2 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 20000, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 16
%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
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 8)
store i64 %11, i64* %7, align 8
%12 = call i64 @FUNC(i64 56)
%13 = inttoptr i64 %11 to i64*
store i64 %12, i64* %13, align 8
%14 = add i64 %0, 12
%15 = inttoptr i64 %14 to i32*
store i32 1, i32* %15, align 4
%.pre = load i64, i64* %7, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_2
LBL_2:
%16 = ptrtoint i64* %arg1 to i64
%.reload = load i64, i64* %.reg2mem
%17 = inttoptr i64 %.reload to i64*
%18 = load i64, i64* %17, align 8
%19 = bitcast i64* %rdi to i32*
%20 = load i32, i32* %19, align 8
%21 = inttoptr i64 %18 to i32*
store i32 %20, i32* %21, align 4
%22 = load i64, i64* %7, align 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %16, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %24, 4
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = load i64, i64* %7, align 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = add i64 %16, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %32, 8
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = load i64, i64* %7, align 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %16, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = add i64 %40, 12
%45 = inttoptr i64 %44 to i32*
store i32 %43, i32* %45, align 4
%46 = load i64, i64* %7, align 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = add i64 %48, 16
%50 = inttoptr i64 %49 to i32*
store i32 1, i32* %50, align 4
%51 = load i64, i64* %7, align 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = load i32, i32* %34, align 4
%55 = add i64 %53, 24
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %16, 16
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = icmp eq i64 %59, 0
br i1 %60, label LBL_4, label LBL_3
LBL_3:
%61 = add i64 %16, 24
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = call i64 @FUNC(i64 %16, i64 %0, i64 %59, i32 %63)
%65 = trunc i64 %64 to i32
%66 = icmp slt i32 %65, 0
%67 = icmp eq i1 %66, false
store i64 0, i64* %storemerge.reg2mem
br i1 %67, label LBL_4, label LBL_5
LBL_4:
%68 = load i64, i64* %7, align 8
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = add i64 %70, 48
%72 = inttoptr i64 %71 to i32*
store i32 256, i32* %72, align 4
%73 = load i64, i64* %7, align 8
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
%76 = add i64 %75, 48
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 4
%81 = call i64 @FUNC(i64 %80)
%82 = add i64 %75, 40
%83 = inttoptr i64 %82 to i64*
store i64 %81, i64* %83, align 8
%84 = load i64, i64* %7, align 8
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = add i64 %86, 48
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = mul i32 %89, 4
%91 = add i64 %16, 32
%92 = inttoptr i64 %91 to i64*
%93 = load i64, i64* %92, align 8
%94 = add i64 %86, 40
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = inttoptr i64 %96 to i64*
%98 = inttoptr i64 %93 to i64*
%99 = call i64* @memcpy(i64* %97, i64* %98, i32 %90)
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %16, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder i64* %7, { 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 10 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder i64 0, { 0, 3, 4, 1, 2 }
uselistorder i64 8, { 1, 2, 0, 3 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | __netdev_alloc_skb_17471 | __netdev_alloc_skb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = add i32 %2, 16
%4 = call i64 @FUNC(i64 4096)
%5 = trunc i64 %4 to i32
%6 = icmp ule i32 %3, %5
%7 = urem i64 %arg3, 4
%8 = icmp eq i64 %7, 0
%or.cond = icmp eq i1 %8, %6
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%9 = zext i32 %3 to i64
%10 = call i64 @FUNC(i64 %9, i64 %arg3, i64 0, i64 0)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%11 = call i64 @FUNC(i64 0)
%12 = trunc i64 %11 to i32
%13 = add i32 %3, %12
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC()
%17 = trunc i64 %16 to i8
%18 = icmp eq i8 %17, 0
%19 = or i64 %arg3, 4
%spec.select = select i1 %18, i64 %arg3, i64 %19
%20 = call i64 @FUNC(i64 %1)
%21 = call i64 @FUNC(i64 4210741)
%22 = and i64 %15, 4294967295
%23 = call i64 @FUNC(i64 %21, i64 %22, i64 %spec.select)
%24 = inttoptr i64 %21 to i8*
%25 = load i8, i8* %24, align 1
%26 = call i64 @FUNC(i64 %1)
%27 = icmp eq i64 %23, 0
%28 = zext i1 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i8
%31 = icmp eq i8 %30, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %31, label LBL_3, label LBL_8
LBL_3:
%32 = call i64 @FUNC(i64 %23, i64 %22)
%33 = icmp eq i64 %32, 0
%34 = zext i1 %33 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = trunc i64 %35 to i8
%37 = icmp eq i8 %36, 0
br i1 %37, label LBL_5, label LBL_4
LBL_4:
%38 = call i64 @FUNC(i64 %23)
%39 = call i64 @FUNC(i64 %38)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%40 = icmp eq i8 %25, 0
br i1 %40, label LBL_7, label LBL_6
LBL_6:
%41 = inttoptr i64 %32 to i32*
store i32 1, i32* %41, align 4
br label LBL_7
LBL_7:
%42 = ptrtoint i64* %arg1 to i64
%43 = add i64 %32, 4
%44 = inttoptr i64 %43 to i32*
store i32 1, i32* %44, align 4
%45 = call i64 @FUNC(i64 %32, i64 16)
%46 = add i64 %32, 8
%47 = inttoptr i64 %46 to i64*
store i64 %42, i64* %47, align 8
store i64 %32, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64)* @unlikely, { 1, 0 }
uselistorder i64 (i64)* @SKB_DATA_ALIGN, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i32 16, { 2, 0, 1 }
uselistorder i64 %arg3, { 1, 2, 3, 0 }
uselistorder label LBL_8, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | cx24116_send_diseqc_msg_11695 | cx24116_send_diseqc_msg | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%rcx.0.lcssa.reg2mem = alloca i64
%.pre-phi10.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem26 = alloca i64
%.reg2mem24 = alloca i32
%rdx.0.lcssa.reg2mem = alloca i64
%.reg2mem22 = alloca i32
%.lcssa13.in.reg2mem = alloca i8
%.reg2mem20 = alloca i8*
%.reg2mem18 = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg2 to i64
%7 = load i32, i32* @gv_0, align 4
%8 = icmp eq i32 %7, 0
%9 = trunc i64 %3 to i32
store i32 %9, i32* %.reg2mem24
br i1 %8, label LBL_6, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
%11 = icmp eq i32 %9, 0
store i32 0, i32* %.reg2mem22
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = add i64 %6, 4
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = zext i8 %14 to i64
store i64 %15, i64* %rsi, align 8
%16 = inttoptr i64 %15 to i8*
%17 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i8* %16, i64 %6, i64 %5, i64 %2, i64 %1)
%18 = icmp ugt i8 %14, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem18
store i8* %16, i8** %.reg2mem20
store i8 %14, i8* %.lcssa13.in.reg2mem
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%.reload21 = load i8*, i8** %.reg2mem20
%.reload19 = load i32, i32* %.reg2mem18
%.reload = load i64, i64* %.reg2mem
%19 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i8* %.reload21, i64 %6, i64 %5, i64 %2, i64 %1)
%20 = add i64 %12, %.reload
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i64
store i64 %23, i64* %rsi, align 8
%24 = inttoptr i64 %23 to i8*
%25 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i8* %24, i64 %6, i64 %5, i64 %2, i64 %1)
%26 = add i32 %.reload19, 1
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %27, %23
store i64 %27, i64* %.reg2mem
store i32 %26, i32* %.reg2mem18
store i8* %24, i8** %.reg2mem20
store i8 %22, i8* %.lcssa13.in.reg2mem
br i1 %28, label LBL_3, label LBL_4
LBL_4:
%.lcssa13.in.reload = load i8, i8* %.lcssa13.in.reg2mem
%.lcssa13 = zext i8 %.lcssa13.in.reload to i32
store i32 %.lcssa13, i32* %.reg2mem22
store i64 %6, i64* %rdx.0.lcssa.reg2mem
br label LBL_5
LBL_5:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%.reload23 = load i32, i32* %.reg2mem22
%29 = load i32, i32* inttoptr (i64 4210744 to i32*), align 8
%30 = zext i32 %29 to i64
%31 = inttoptr i64 %30 to i8*
%32 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0), i8* %31, i64 %rdx.0.lcssa.reload, i64 %5, i64 %2, i64 %1)
store i32 %.reload23, i32* %.reg2mem24
br label LBL_6
LBL_6:
%.reload25 = load i32, i32* %.reg2mem24
%33 = icmp slt i32 %.reload25, 16
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %33, label LBL_7, label LBL_24
LBL_7:
%34 = ptrtoint i64* %arg1 to i64
%.pre-phi = bitcast i64* %rsi to i32*
%35 = icmp eq i32 %.reload25, 0
br i1 %35, label LBL_7.LBL_12_crit_edge, label LBL_9
LBL_8:
%.pre9 = add i64 %34, 4
store i64 %.pre9, i64* %.pre-phi10.reg2mem
store i32 0, i32* %.lcssa.reg2mem
br label LBL_12
LBL_9:
%36 = add i64 %6, 4
%37 = add i64 %34, 4
store i64 0, i64* %.reg2mem26
store i32 0, i32* %storemerge12.reg2mem
br label LBL_10
LBL_10:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload27 = load i64, i64* %.reg2mem26
%38 = add i32 %storemerge12.reload, 1
%39 = add i64 %36, %.reload27
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = sext i32 %38 to i64
%43 = add i64 %37, %42
%44 = inttoptr i64 %43 to i8*
store i8 %41, i8* %44, align 1
%45 = load i32, i32* %.pre-phi, align 8
%46 = zext i32 %45 to i64
%47 = icmp slt i64 %42, %46
store i64 %42, i64* %.reg2mem26
store i32 %38, i32* %storemerge12.reg2mem
br i1 %47, label LBL_10, label LBL_11
LBL_11:
%48 = zext i8 %41 to i64
store i64 %37, i64* %.pre-phi10.reg2mem
store i64 %48, i64* %rcx.0.lcssa.reg2mem
store i32 %45, i32* %.lcssa.reg2mem
br label LBL_12
LBL_12:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%.pre-phi10.reload = load i64, i64* %.pre-phi10.reg2mem
%49 = trunc i32 %.lcssa.reload to i8
%50 = inttoptr i64 %.pre-phi10.reload to i8*
store i8 %49, i8* %50, align 1
%51 = urem i32 %.lcssa.reload, 256
%52 = add nuw nsw i32 %51, 1
%53 = bitcast i64* %arg1 to i32*
store i32 %52, i32* %53, align 4
%54 = load i32, i32* @gv_6, align 4
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %56, label LBL_13, label LBL_24
LBL_13:
%57 = icmp eq i32 %54, 1
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_15, label LBL_14
LBL_14:
%59 = add i64 %34, 6
%60 = inttoptr i64 %59 to i8*
store i8 0, i8* %60, align 1
br label LBL_21
LBL_15:
%61 = icmp eq i32 %54, 2
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_21, label LBL_16
LBL_16:
%63 = load i32, i32* %.pre-phi, align 8
%64 = icmp slt i32 %63, 4
br i1 %64, label LBL_19, label LBL_17
LBL_17:
%65 = add i64 %6, 6
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = icmp eq i8 %67, 56
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_19, label LBL_18
LBL_18:
%70 = add i64 %6, 7
%71 = inttoptr i64 %70 to i8*
%72 = load i8, i8* %71, align 1
%73 = udiv i8 %72, 4
%74 = urem i8 %73, 2
%75 = add i64 %34, 6
%76 = inttoptr i64 %75 to i8*
store i8 %74, i8* %76, align 1
br label LBL_19
LBL_19:
%77 = load i32, i32* @gv_0, align 4
%78 = icmp eq i32 %77, 0
br i1 %78, label LBL_21, label LBL_20
LBL_20:
%79 = add i64 %34, 6
%80 = inttoptr i64 %79 to i8*
%81 = load i8, i8* %80, align 1
%82 = zext i8 %81 to i64
%83 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %82, i64 %rcx.0.lcssa.reload, i64 %2, i64 %1)
br label LBL_21
LBL_21:
%84 = call i64 @FUNC(i64 %34)
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %85, 0
store i64 %84, i64* %rax.0.shrunk.reg2mem
br i1 %86, label LBL_22, label LBL_24
LBL_22:
%87 = call i64 @FUNC(i64 100)
%88 = call i64 @FUNC(i64 %34, i64 %34)
%89 = trunc i64 %88 to i32
%90 = icmp eq i32 %89, 0
store i64 %88, i64* %rax.0.shrunk.reg2mem
br i1 %90, label LBL_23, label LBL_24
LBL_23:
%91 = load i8, i8* %50, align 1
%92 = zext i8 %91 to i64
%93 = mul i64 %92, 16
%94 = load i32, i32* @gv_6, align 4
%95 = icmp eq i32 %94, 1
%96 = icmp eq i1 %95, false
%. = select i1 %96, i64 60, i64 30
%97 = add nuw nsw i64 %., %93
%98 = call i64 @FUNC(i64 %97)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_24:
%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 i32 %.lcssa.reload, { 1, 0 }
uselistorder i64 %42, { 0, 2, 1 }
uselistorder i64 %34, { 5, 4, 6, 3, 2, 1, 7, 0 }
uselistorder i64 %23, { 0, 2, 1 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %6, { 6, 5, 7, 0, 3, 2, 1, 4 }
uselistorder i64 %5, { 3, 1, 2, 4, 0 }
uselistorder i64* %rsi, { 1, 2, 0 }
uselistorder i64 %2, { 4, 3, 1, 2, 5, 0 }
uselistorder i64 %1, { 4, 3, 1, 2, 5, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem18, { 2, 0, 1 }
uselistorder i8** %.reg2mem20, { 2, 0, 1 }
uselistorder i32* %.reg2mem24, { 0, 2, 1 }
uselistorder i64* %.reg2mem26, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @msleep, { 1, 0 }
uselistorder i32* @gv_6, { 1, 0 }
uselistorder i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @printk, { 2, 3, 4, 0, 1 }
uselistorder i32 0, { 5, 6, 7, 8, 1, 0, 3, 2, 4, 9, 10 }
uselistorder i32* @gv_0, { 2, 1, 0 }
uselistorder label LBL_24, { 4, 0, 1, 2, 3 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.