dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | dlm_add_cb_18335 | dlm_add_cb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext4, 32
%sext5 = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext5, 32
%sext6 = mul i64 %arg5, 4294967296
%4 = ashr exact i64 %sext6, 32
%5 = call i64 @FUNC(i64 4210740)
store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8
%6 = call i64 @FUNC(i64* nonnull @gv_2)
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = trunc i64 %3 to i32
%13 = trunc i64 %2 to i32
%14 = trunc i64 %1 to i32
%15 = and i64 %4, 4294967295
%16 = call i64 @FUNC(i64 %0, i32 %14, i32 %13, i32 %12, i64 %15, i64 sext (i32 ptrtoint (i32* @gv_0 to i32) to i64))
store i64 %16, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%17 = add i64 %0, 28
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %0, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = trunc i64 %3 to i32
%23 = trunc i64 %2 to i32
%24 = trunc i64 %1 to i32
%25 = and i64 %4, 4294967295
%26 = call i64 @FUNC(i64 %0, i32 %24, i32 %23, i32 %22, i64 %25, i64 sext (i32 ptrtoint (i32* @gv_0 to i32) to i64))
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i64 %21, 0
%30 = icmp eq i1 %29, false
%or.cond = or i1 %30, %28
br i1 %or.cond, label LBL_6, label LBL_3
LBL_3:
%31 = add i64 %0, 24
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 1, i64 %0)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_5, label LBL_4
LBL_4:
%36 = add i64 %0, 4
%37 = call i64 @FUNC(i64 %36)
%38 = add i64 %0, 12
%39 = add i64 %0, 36
%40 = call i64 @FUNC(i64 %39, i64 %38)
%41 = call i64 @FUNC(i64 %36)
br label LBL_6
LBL_5:
%42 = add i64 %0, 32
%43 = load i32, i32* %8, align 4
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64 %44, i64 %42)
br label LBL_6
LBL_6:
%46 = call i64 @FUNC(i64 %17)
store i64 %46, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 4, 1, 3, 2, 5, 6, 7, 9, 8, 0, 10 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64)* @mutex_lock, { 1, 0 }
uselistorder i64 sext (i32 ptrtoint (i32* @gv_0 to i32) to i64), { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 32, { 4, 0, 1, 2, 3 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | nvme_rdma_route_resolved_17413 | nvme_rdma_route_resolved | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = sext i32 %5 to i64
store i64 %6, i64* %sv_0, align 8
%7 = call i64 @FUNC(i64 1)
%8 = call i64 @FUNC(i64 %0)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = load i32, i32* %12, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %0, 32
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21, i64* nonnull %sv_0)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %24, label LBL_2, label LBL_1
LBL_1:
%25 = call i64 @FUNC(i64 %21, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i32 %23)
%26 = call i64 @FUNC(i64 %0)
%27 = and i64 %22, 4294967295
store i64 %27, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @cpu_to_le16, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | njs_array_convert_to_slow_array_5575 | njs_array_convert_to_slow_array | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.1.lcssa.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i64*
%rdi.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_9
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = call i64 @FUNC(i64* nonnull %sv_1, i64 %8)
%10 = bitcast i64* %arg2 to i32*
store i32 0, i32* %10, align 4
%11 = add i64 %8, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_1.LBL_8_crit_edge, label LBL_3
LBL_2:
%15 = ptrtoint i64* %sv_1 to i64
%.pre = add i64 %8, 8
%.pre3 = inttoptr i64 %.pre to i64*
store i64* %.pre3, i64** %.pre-phi4.reg2mem
store i64 %15, i64* %rdi.1.lcssa.reg2mem
br label LBL_8
LBL_3:
%16 = ptrtoint i64* %arg1 to i64
%17 = add i64 %8, 8
%18 = inttoptr i64 %17 to i64*
%19 = zext i32 %13 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%20 = load i64, i64* %18, align 8
%21 = mul i64 %indvars.iv.reload, 8
%22 = add i64 %20, %21
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 %22, i64* %rdi.0.reg2mem
br i1 %25, label LBL_7, label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64* nonnull %sv_0, i64 %indvars.iv.reload)
%27 = call i64 @FUNC(i64 %16, i64* nonnull %sv_1, i64* nonnull %sv_0, i64 0)
%28 = icmp eq i64 %27, 0
%29 = zext i1 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %32, label LBL_6, label LBL_9
LBL_6:
%33 = load i64, i64* %18, align 8
%34 = add i64 %33, %21
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %27 to i64*
store i64 %36, i64* %37, align 8
store i64 %29, i64* %rdi.0.reg2mem
br label LBL_7
LBL_7:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%38 = icmp ult i64 %indvars.iv.next, %19
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64* %18, i64** %.pre-phi4.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem
br i1 %38, label LBL_4, label LBL_8
LBL_8:
%rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem
%.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem
%39 = add i64 %8, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %rdi.1.lcssa.reload, i64 %41)
store i64 0, i64* %.pre-phi4.reload, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %21, { 1, 0 }
uselistorder i64 %8, { 2, 1, 0, 3, 4 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder i64 (i64)* @njs_slow_path, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5 }
uselistorder label LBL_9, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | kvm_init_16674 | kvm_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.2.ph.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp slt i32 %0, 2
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_23
LBL_1:
%2 = call i64 @FUNC(i64 72)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_23
LBL_2:
%5 = and i64 %arg1, 4294967295
%6 = inttoptr i64 %2 to i32*
%7 = add i64 %2, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%8 = mul i64 %indvars.iv.reload, 4
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i32*
%11 = trunc i64 %indvars.iv.reload to i32
store i32 %11, i32* %10, 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_4, label LBL_3
LBL_4:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
store i32 -1, i32* %13, align 4
%14 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 2)
store i32 %14, i32* %6, align 4
%15 = icmp eq i32 %14, -1
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %17, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i64 %2)
%19 = call i32* @__errno_location()
%20 = load i32, i32* %19, align 4
%21 = sub i32 0, %20
store i32 %21, i32* %sv_0.2.ph.reg2mem
br label LBL_17
LBL_6:
%22 = call i64 @FUNC(i64 %2, i64 0, i64 0)
%23 = trunc i64 %22 to i32
%24 = icmp sgt i32 %23, 11
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%26 = call i32 @fwrite(i64* bitcast ([21 x i8]* @gv_3 to i64*), i32 1, i32 20, %_IO_FILE* %25)
store i32 -22, i32* %sv_0.2.ph.reg2mem
br label LBL_17
LBL_8:
%27 = icmp eq i32 %23, 12
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%29 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_4 to i64*), i32 1, i32 26, %_IO_FILE* %28)
store i32 -22, i32* %sv_0.2.ph.reg2mem
br label LBL_17
LBL_10:
%30 = call i64 @FUNC(i64 %2, i64 1, i64 0)
%31 = trunc i64 %30 to i32
store i32 %31, i32* %13, align 4
%32 = icmp slt i32 %31, 0
store i32 %31, i32* %.reg2mem
store i32 12, i32* %sv_0.2.reg2mem
br i1 %32, label LBL_18, label LBL_11
LBL_11:
%33 = call i64 @FUNC(i64 %2, i64 2, i64 3)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp slt i32 %34, 0
%37 = icmp eq i1 %36, false
%38 = icmp eq i1 %35, false
%39 = icmp eq i1 %37, %38
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%spec.select = select i1 %38, i32 %34, i32 -22
%40 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%41 = call i32 @fwrite(i64* bitcast ([42 x i8]* @gv_5 to i64*), i32 1, i32 41, %_IO_FILE* %40)
store i32 %spec.select, i32* %sv_0.2.ph.reg2mem
br label LBL_17
LBL_13:
%42 = call i64 @FUNC(i64 %2, i64 2, i64 4)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp slt i32 %43, 0
%46 = icmp eq i1 %45, false
%47 = icmp eq i1 %44, false
%48 = icmp eq i1 %46, %47
br i1 %48, label LBL_15, label LBL_14
LBL_14:
%spec.select3 = select i1 %47, i32 %43, i32 -22
%49 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%50 = call i32 @fwrite(i64* bitcast ([85 x i8]* @gv_6 to i64*), i32 1, i32 84, %_IO_FILE* %49)
store i32 %spec.select3, i32* %sv_0.2.ph.reg2mem
br label LBL_17
LBL_15:
%51 = call i64 @FUNC(i64 %2, i64 %5)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
store i32 %52, i32* %sv_0.2.ph.reg2mem
br i1 %53, label LBL_17, label LBL_16
LBL_16:
store i64 %2, i64* @gv_7, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_17:
%sv_0.2.ph.reload = load i32, i32* %sv_0.2.ph.reg2mem
%.pr = load i32, i32* %13, align 4
store i32 %.pr, i32* %.reg2mem
store i32 %sv_0.2.ph.reload, i32* %sv_0.2.reg2mem
br label LBL_18
LBL_18:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%.reload = load i32, i32* %.reg2mem
%54 = icmp eq i32 %.reload, -1
br i1 %54, label LBL_20, label LBL_19
LBL_19:
%55 = call i32 @close(i32 %.reload)
br label LBL_20
LBL_20:
%56 = load i32, i32* %6, align 4
%57 = icmp eq i32 %56, -1
br i1 %57, label LBL_22, label LBL_21
LBL_21:
%58 = call i32 @close(i32 %56)
br label LBL_22
LBL_22:
%59 = call i64 @FUNC(i64 %2)
%60 = zext i32 %sv_0.2.reload to i64
store i64 %60, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %43, { 0, 2, 1 }
uselistorder i32 %34, { 0, 2, 1 }
uselistorder i64 %2, { 6, 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i32 -22, { 2, 3, 0, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @kvm_ioctl, { 3, 2, 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_23, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | replace_9136 | replace | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.1.be.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i64
%sv_1.06.reg2mem = alloca i64
%sv_0.17.reg2mem = alloca i32
%.reg2mem14 = alloca i8*
%storemerge.lcssa.reg2mem = alloca i32
%sv_2.1.off0.lcssa.reg2mem = alloca i32
%sv_2.1.off08.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%.reg2mem12 = alloca i64
%.reg2mem = alloca i8*
%0 = bitcast i64* %arg3 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = inttoptr i64 %arg2 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = inttoptr i64 %arg1 to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp eq i8 %5, 0
%7 = icmp eq i1 %6, false
store i32 0, i32* %sv_2.1.off0.lcssa.reg2mem
store i32 1, i32* %storemerge.lcssa.reg2mem
br i1 %7, label LBL_1, label LBL_4
LBL_1:
%8 = add i32 %3, -1
store i8* %4, i8** %.reg2mem
store i64 %arg1, i64* %.reg2mem12
store i32 0, i32* %storemerge9.reg2mem
store i32 0, i32* %sv_2.1.off08.reg2mem
br label LBL_2
LBL_2:
%sv_2.1.off08.reload = load i32, i32* %sv_2.1.off08.reg2mem
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%.reload13 = load i64, i64* %.reg2mem12
%.reload = load i8*, i8** %.reg2mem
%9 = call i8* @strstr(i8* %.reload, i8* %2)
%10 = ptrtoint i8* %9 to i64
%11 = icmp eq i64 %.reload13, %10
%12 = icmp eq i1 %11, false
%not. = icmp ne i1 %12, true
%13 = zext i1 %not. to i32
%sv_2.0.off0 = add i32 %sv_2.1.off08.reload, %13
%14 = select i1 %12, i32 0, i32 %8
%sv_0.0 = add i32 %14, %storemerge9.reload
%15 = add i32 %sv_0.0, 1
%16 = sext i32 %15 to i64
%17 = add i64 %16, %arg1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
store i8* %18, i8** %.reg2mem
store i64 %17, i64* %.reg2mem12
store i32 %15, i32* %storemerge9.reg2mem
store i32 %sv_2.0.off0, i32* %sv_2.1.off08.reg2mem
br i1 %21, label LBL_2, label LBL_3
LBL_3:
%phitmp = add i32 %sv_0.0, 2
store i32 %sv_2.0.off0, i32* %sv_2.1.off0.lcssa.reg2mem
store i32 %phitmp, i32* %storemerge.lcssa.reg2mem
br label LBL_4
LBL_4:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%sv_2.1.off0.lcssa.reload = load i32, i32* %sv_2.1.off0.lcssa.reg2mem
%22 = sub i32 %1, %3
%23 = mul i32 %sv_2.1.off0.lcssa.reload, %22
%24 = add i32 %storemerge.lcssa.reload, %23
%25 = call i64* @malloc(i32 %24)
%26 = ptrtoint i64* %25 to i64
%27 = icmp eq i64* %25, null
br i1 %27, label LBL_12, label LBL_5
LBL_5:
%28 = load i8, i8* %4, align 1
%29 = icmp eq i8 %28, 0
%30 = icmp eq i1 %29, false
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %30, label LBL_6, label LBL_11
LBL_6:
%31 = sext i32 %3 to i64
store i8* %4, i8** %.reg2mem14
store i32 0, i32* %sv_0.17.reg2mem
store i64 %arg1, i64* %sv_1.06.reg2mem
br label LBL_7
LBL_7:
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%sv_0.17.reload = load i32, i32* %sv_0.17.reg2mem
%.reload15 = load i8*, i8** %.reg2mem14
%32 = call i8* @strstr(i8* %.reload15, i8* %2)
%33 = ptrtoint i8* %32 to i64
%34 = icmp eq i64 %sv_1.06.reload, %33
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%36 = sext i32 %sv_0.17.reload to i64
%37 = add i64 %36, %26
%38 = inttoptr i64 %37 to i8*
%39 = call i8* @strcpy(i8* %38, i8* %0)
%40 = add i32 %sv_0.17.reload, %1
%41 = add i64 %sv_1.06.reload, %31
store i64 %41, i64* %sv_1.0.be.reg2mem
store i32 %40, i32* %sv_0.1.be.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.be.reload = load i32, i32* %sv_0.1.be.reg2mem
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%42 = inttoptr i64 %sv_1.0.be.reload to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 0
%45 = icmp eq i1 %44, false
store i8* %42, i8** %.reg2mem14
store i32 %sv_0.1.be.reload, i32* %sv_0.17.reg2mem
store i64 %sv_1.0.be.reload, i64* %sv_1.06.reg2mem
store i32 %sv_0.1.be.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %45, label LBL_7, label LBL_11
LBL_10:
%46 = add i64 %sv_1.06.reload, 1
%47 = add i32 %sv_0.17.reload, 1
%48 = sext i32 %sv_0.17.reload to i64
%49 = add i64 %48, %26
%50 = load i8, i8* %.reload15, align 1
%51 = inttoptr i64 %49 to i8*
store i8 %50, i8* %51, align 1
store i64 %46, i64* %sv_1.0.be.reg2mem
store i32 %47, i32* %sv_0.1.be.reg2mem
br label LBL_9
LBL_11:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%52 = sext i32 %sv_0.1.lcssa.reload to i64
%53 = add i64 %52, %26
%54 = inttoptr i64 %53 to i8*
store i8 0, i8* %54, align 1
br label LBL_12
LBL_12:
ret i64 %26
uselistorder i64 %sv_1.0.be.reload, { 1, 0 }
uselistorder i32 %sv_0.17.reload, { 2, 1, 3, 0 }
uselistorder i64 %sv_1.06.reload, { 0, 2, 1 }
uselistorder i64 %26, { 3, 0, 1, 2 }
uselistorder i1 %12, { 1, 0 }
uselistorder i8* %4, { 0, 2, 1, 3 }
uselistorder i32 %3, { 1, 2, 0 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem12, { 1, 0, 2 }
uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.1.off08.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.1.off0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem14, { 1, 0, 2 }
uselistorder i32* %sv_0.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.be.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 1, 0, 5, 3, 4, 2 }
uselistorder i1 false, { 3, 2, 1, 5, 4, 0 }
uselistorder i8 0, { 2, 3, 1, 4, 0 }
uselistorder i32 1, { 13, 14, 6, 12, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1, 3 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | inode_need_compress_10148 | inode_need_compress | 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, i64 4)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = urem i32 %6, 2
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_5
LBL_2:
%9 = call i64 @FUNC(i64 %0, i64 8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = load i32, i32* %5, align 4
%14 = and i32 %13, 2
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %0, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp ne i32 %19, 0
%spec.select = zext i1 %20 to i64
ret i64 %spec.select
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @btrfs_test_opt, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | trace_init_file_18673 | trace_init_file | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %arg1, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = call i32 @fwrite(i64* bitcast ([79 x i8]* @gv_1 to i64*), i32 1, i32 78, %_IO_FILE* %3)
call void @exit(i32 1)
unreachable
LBL_2:
ret i64 %0
uselistorder i32 1, { 2, 3, 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | opl3_panning_6023 | opl3_panning | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp slt i32 %0, 0
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%2 = load i32*, i32** @gv_0, align 8
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = ashr exact i64 %sext, 32
%6 = icmp slt i64 %5, %4
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_3
LBL_2:
%sext3 = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext3, 32
%8 = ptrtoint i32* %2 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = ashr exact i64 %sext, 30
%13 = add i64 %11, %12
%14 = and i64 %7, 4294967295
%15 = trunc i64 %7 to i32
%16 = inttoptr i64 %13 to i32*
store i32 %15, i32* %16, align 4
store i64 %14, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | build_alias_11713 | build_alias | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
%2 = call i8* @strrchr(i8* %1, i32 47)
%3 = icmp eq i8* %2, null
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
store i8 0, i8* %2, align 1
%4 = call i64 @FUNC(i64 %0, i64 493, i64 1)
store i8 47, i8* %2, align 1
%5 = ptrtoint i8* %2 to i64
%6 = add i64 %5, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %0, i64 %arg2)
call void @free(i64* %arg1)
store i64 %11, 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 i8* %2, { 2, 1, 0, 3 }
uselistorder i64 %0, { 2, 0, 3, 1 }
uselistorder i8 47, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | gdImageFillToBorder_11619 | gdImageFillToBorder | define i64 @FUNC(i64 %arg1, i32 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.318.reg2mem = alloca i32
%storemerge19.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.121.reg2mem = alloca i32
%storemerge822.reg2mem = alloca i32
%storemerge11.lcssa.reg2mem = alloca i32
%storemerge92649.reg2mem = alloca i32
%storemerge102951.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = trunc i64 %arg4 to i32
%1 = icmp slt i32 %0, 0
br i1 %1, label LBL_32, label LBL_1
LBL_1:
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
store i32 0, i32* %3, align 4
%5 = bitcast i64* %rdi to i32*
%6 = load i32, i32* %5, align 8
%7 = zext i32 %6 to i64
%8 = sext i32 %arg2 to i64
%9 = icmp slt i64 %8, %7
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i32 %6, -1
store i32 %10, i32* %sv_2.0.reg2mem
br label LBL_4
LBL_3:
%11 = icmp slt i32 %arg2, 0
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i32 %arg2, i32 0
store i32 %spec.select, i32* %sv_2.0.reg2mem
br label LBL_4
LBL_4:
%sext = mul i64 %arg3, 4294967296
%13 = ashr exact i64 %sext, 32
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%14 = add i64 %arg1, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = icmp slt i64 %13, %17
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i32 %16, -1
%20 = sext i32 %19 to i64
store i64 %20, i64* %sv_1.0.reg2mem
br label LBL_7
LBL_6:
%21 = trunc i64 %13 to i32
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
%spec.select12 = select i1 %23, i64 %13, i64 0
store i64 %spec.select12, i64* %sv_1.0.reg2mem
br label LBL_7
LBL_7:
%24 = icmp slt i32 %sv_2.0.reload, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_8, label LBL_14
LBL_8:
%sext4 = mul i64 %arg4, 4294967296
%26 = ashr exact i64 %sext4, 32
%sext5 = mul i64 %arg5, 4294967296
%27 = ashr exact i64 %sext5, 32
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%28 = trunc i64 %sv_1.0.reload to i32
%29 = trunc i64 %26 to i32
%30 = trunc i64 %27 to i32
%31 = zext i32 %sv_2.0.reload to i64
%32 = call i64 @FUNC(i64 %arg1, i64 %31, i32 %28)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %29, %33
store i32 %sv_2.0.reload, i32* %storemerge102951.reg2mem
br i1 %34, label LBL_14, label LBL_10
LBL_9:
%35 = zext i32 %40 to i64
%36 = call i64 @FUNC(i64 %arg1, i64 %35, i32 %28)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %29, %37
store i32 %40, i32* %storemerge102951.reg2mem
br i1 %38, label LBL_11, label LBL_10
LBL_10:
%storemerge102951.reload = load i32, i32* %storemerge102951.reg2mem
%39 = call i64 @FUNC(i64 %arg1, i32 %storemerge102951.reload, i32 %28, i32 %30)
%40 = add i32 %storemerge102951.reload, -1
%41 = icmp slt i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_9, label LBL_11
LBL_11:
%43 = icmp eq i32 %storemerge102951.reload, -1
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_14
LBL_12:
%storemerge924 = add i32 %sv_2.0.reload, 1
%45 = sext i32 %storemerge924 to i64
%46 = icmp slt i64 %45, %7
store i32 %sv_2.0.reload, i32* %storemerge11.lcssa.reg2mem
br i1 %46, label LBL_13, label LBL_17
LBL_13:
%47 = zext i32 %storemerge924 to i64
%48 = call i64 @FUNC(i64 %arg1, i64 %47, i32 %28)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %29, %49
store i32 %storemerge924, i32* %storemerge92649.reg2mem
store i32 %sv_2.0.reload, i32* %storemerge11.lcssa.reg2mem
br i1 %50, label LBL_17, label LBL_16
LBL_14:
store i32 %4, i32* %3, align 4
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_32
LBL_15:
%51 = zext i32 %storemerge9 to i64
%52 = call i64 @FUNC(i64 %arg1, i64 %51, i32 %28)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %29, %53
store i32 %storemerge9, i32* %storemerge92649.reg2mem
store i32 %storemerge92649.reload, i32* %storemerge11.lcssa.reg2mem
br i1 %54, label LBL_17, label LBL_16
LBL_16:
%storemerge92649.reload = load i32, i32* %storemerge92649.reg2mem
%55 = call i64 @FUNC(i64 %arg1, i32 %storemerge92649.reload, i32 %28, i32 %30)
%storemerge9 = add i32 %storemerge92649.reload, 1
%56 = sext i32 %storemerge9 to i64
%57 = icmp slt i64 %56, %7
store i32 %storemerge92649.reload, i32* %storemerge11.lcssa.reg2mem
br i1 %57, label LBL_15, label LBL_17
LBL_17:
%storemerge11.lcssa.reload = load i32, i32* %storemerge11.lcssa.reg2mem
%58 = icmp slt i32 %28, 1
%59 = icmp sgt i32 %storemerge102951.reload, %storemerge11.lcssa.reload
%or.cond38 = or i1 %58, %59
br i1 %or.cond38, label LBL_24, label LBL_18
LBL_18:
%60 = add i32 %28, -1
%61 = add nsw i64 %sv_1.0.reload, 4294967295
%62 = and i64 %27, 4294967295
%63 = and i64 %26, 4294967295
%64 = and i64 %61, 4294967295
store i32 %storemerge102951.reload, i32* %storemerge822.reg2mem
store i32 1, i32* %sv_0.121.reg2mem
br label LBL_19
LBL_19:
%sv_0.121.reload = load i32, i32* %sv_0.121.reg2mem
%storemerge822.reload = load i32, i32* %storemerge822.reg2mem
%65 = zext i32 %storemerge822.reload to i64
%66 = call i64 @FUNC(i64 %arg1, i64 %65, i32 %60)
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %sv_0.121.reload, 0
%69 = icmp eq i32 %67, %29
%70 = icmp eq i32 %67, %30
%not.or.cond40 = or i1 %69, %70
br i1 %68, label LBL_22, label LBL_20
LBL_20:
store i32 %sv_0.121.reload, i32* %sv_0.0.reg2mem
br i1 %not.or.cond40, label LBL_23, label LBL_21
LBL_21:
%71 = call i64 @FUNC(i64 %arg1, i32 %storemerge822.reload, i64 %64, i64 %63, i64 %62)
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_23
LBL_22:
%spec.select45 = zext i1 %not.or.cond40 to i32
store i32 %spec.select45, i32* %sv_0.0.reg2mem
br label LBL_23
LBL_23:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%72 = add i32 %storemerge822.reload, 1
%73 = icmp sgt i32 %72, %storemerge11.lcssa.reload
store i32 %72, i32* %storemerge822.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.121.reg2mem
br i1 %73, label LBL_24, label LBL_19
LBL_24:
%74 = load i32, i32* %15, align 4
%75 = add i32 %74, -1
%76 = zext i32 %75 to i64
%77 = icmp sge i64 %sv_1.0.reload, %76
%or.cond41 = or i1 %59, %77
br i1 %or.cond41, label LBL_31, label LBL_25
LBL_25:
%78 = add i32 %28, 1
%79 = add nsw i64 %sv_1.0.reload, 1
%80 = and i64 %27, 4294967295
%81 = and i64 %26, 4294967295
%82 = and i64 %79, 4294967295
store i32 %storemerge102951.reload, i32* %storemerge19.reg2mem
store i32 1, i32* %sv_0.318.reg2mem
br label LBL_26
LBL_26:
%sv_0.318.reload = load i32, i32* %sv_0.318.reg2mem
%storemerge19.reload = load i32, i32* %storemerge19.reg2mem
%83 = zext i32 %storemerge19.reload to i64
%84 = call i64 @FUNC(i64 %arg1, i64 %83, i32 %78)
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %sv_0.318.reload, 0
%87 = icmp eq i32 %85, %29
%88 = icmp eq i32 %85, %30
%not.or.cond44 = or i1 %87, %88
br i1 %86, label LBL_29, label LBL_27
LBL_27:
store i32 %sv_0.318.reload, i32* %sv_0.2.reg2mem
br i1 %not.or.cond44, label LBL_30, label LBL_28
LBL_28:
%89 = call i64 @FUNC(i64 %arg1, i32 %storemerge19.reload, i64 %82, i64 %81, i64 %80)
store i32 0, i32* %sv_0.2.reg2mem
br label LBL_30
LBL_29:
%spec.select46 = zext i1 %not.or.cond44 to i32
store i32 %spec.select46, i32* %sv_0.2.reg2mem
br label LBL_30
LBL_30:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%90 = add i32 %storemerge19.reload, 1
%91 = icmp sgt i32 %90, %storemerge11.lcssa.reload
store i32 %90, i32* %storemerge19.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.318.reg2mem
br i1 %91, label LBL_31, label LBL_26
LBL_31:
store i32 %4, i32* %3, align 4
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_32
LBL_32:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %not.or.cond44, { 1, 0 }
uselistorder i32 %storemerge19.reload, { 2, 0, 1 }
uselistorder i1 %not.or.cond40, { 1, 0 }
uselistorder i32 %storemerge822.reload, { 2, 0, 1 }
uselistorder i32 %storemerge11.lcssa.reload, { 1, 0, 2 }
uselistorder i32 %storemerge9, { 2, 1, 0 }
uselistorder i32 %storemerge92649.reload, { 0, 2, 3, 1 }
uselistorder i32 %40, { 2, 1, 0 }
uselistorder i32 %storemerge102951.reload, { 0, 1, 4, 5, 2, 3 }
uselistorder i32 %30, { 1, 0, 2, 3 }
uselistorder i32 %29, { 3, 2, 4, 1, 5, 0 }
uselistorder i32 %28, { 3, 4, 2, 6, 5, 1, 7, 8, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 3, 2, 0 }
uselistorder i64 %27, { 2, 1, 0 }
uselistorder i64 %26, { 1, 0, 2 }
uselistorder i32 %sv_2.0.reload, { 0, 1, 3, 2, 5, 4 }
uselistorder i64 %13, { 1, 2, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i32* %3, { 1, 0, 2, 3 }
uselistorder i32* %storemerge102951.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge92649.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge822.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.121.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge19.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.318.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 4, 5, 6, 0, 2, 3, 1 }
uselistorder i64 (i64, i32, i32, i32)* @gdImageSetPixel, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @gdImageGetPixel, { 5, 4, 3, 1, 2, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i32 -1, { 2, 1, 3, 0, 4, 5 }
uselistorder i32 0, { 0, 4, 1, 5, 6, 2, 7, 3, 8, 9, 10 }
uselistorder i32 %arg2, { 0, 2, 1 }
uselistorder i64 %arg1, { 1, 8, 9, 6, 7, 5, 10, 0, 3, 4, 11, 2, 12, 13 }
uselistorder label LBL_32, { 1, 2, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 2, 1, 0, 3 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 2, 0, 1 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | wddx_stack_destroy_11844 | wddx_stack_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.2.lcssa.reg2mem = alloca i64
%.reg2mem15 = alloca i64
%.reg2mem = alloca i64
%rdi.25.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_8, 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* %storemerge6.reg2mem
store i64 %1, i64* %rdi.25.reg2mem
store i64 %1, i64* %rdi.2.lcssa.reg2mem
br i1 %5, label LBL_7, label LBL_2
LBL_2:
%rdi.25.reload = load i64, i64* %rdi.25.reg2mem
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%sext = mul i64 %storemerge6.reload, 4294967296
%6 = ashr exact i64 %sext, 29
%7 = add i64 %6, %rdi.25.reload
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
store i64 %9, i64* %.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %9)
%.pre = add i64 %9, %6
%.pre7 = inttoptr i64 %.pre to i64*
%.pre13 = load i64, i64* %.pre7, align 8
store i64 %.pre13, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%14 = add i64 %.reload, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
store i64 %.reload, i64* %.reg2mem15
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %16)
%.pre9 = add i64 %16, %6
%.pre11 = inttoptr i64 %.pre9 to i64*
%.pre14 = load i64, i64* %.pre11, align 8
store i64 %.pre14, i64* %.reg2mem15
br label LBL_6
LBL_6:
%.reload16 = load i64, i64* %.reg2mem15
%19 = call i64 @FUNC(i64 %.reload16)
%20 = add nuw nsw i64 %storemerge6.reload, 1
%21 = and i64 %20, 4294967295
%22 = load i32, i32* %3, align 4
%23 = zext i32 %22 to i64
%24 = icmp ult i64 %21, %23
store i64 %21, i64* %storemerge6.reg2mem
store i64 %.reload16, i64* %rdi.25.reg2mem
store i64 %.reload16, i64* %rdi.2.lcssa.reg2mem
br i1 %24, label LBL_2, label LBL_7
LBL_7:
%rdi.2.lcssa.reload = load i64, i64* %rdi.2.lcssa.reg2mem
%25 = call i64 @FUNC(i64 %rdi.2.lcssa.reload)
br label LBL_8
LBL_8:
ret i64 0
uselistorder i64 %.reload16, { 0, 2, 1 }
uselistorder i64 %9, { 1, 2, 0, 3 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i32* %3, { 1, 0 }
uselistorder i64* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.25.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem15, { 0, 2, 1 }
uselistorder i64 (i64)* @efree, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | Con_DrawConsole_8838 | Con_DrawConsole | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.0.reg2mem = alloca i64
%pf.0.in.in.reg2mem = alloca i8
%1 = load i128, i128* %0
%2 = call i64 @FUNC()
%3 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%4 = icmp eq i32 %3, 0
%5 = trunc i32 %3 to i8
%6 = call i8 @llvm.ctpop.i8(i8 %5), !range !9
%7 = icmp eq i1 %4, false
store i8 %6, i8* %pf.0.in.in.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = call i64 @FUNC()
%9 = trunc i64 %8 to i32
%10 = urem i32 %9, 4
%11 = icmp eq i32 %10, 0
%12 = trunc i32 %10 to i8
%13 = call i8 @llvm.ctpop.i8(i8 %12), !range !13
%14 = icmp eq i1 %11, false
store i8 %13, i8* %pf.0.in.in.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i128 @FUNC(i32 1065353216)
%16 = call i64 @FUNC(i128 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%pf.0.in.in.reload = load i8, i8* %pf.0.in.in.reg2mem
%pf.0.in = urem i8 %pf.0.in.in.reload, 2
%pf.0 = icmp eq i8 %pf.0.in, 0
%17 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%18 = call i128 @__asm_movss.1(i32 %17)
%19 = call i128 @FUNC(i128 %1, i128 %1)
call void @FUNC(i128 %18, i128 %19)
br i1 %pf.0, label LBL_5, label LBL_4
LBL_4:
%20 = call i128 @FUNC(i128 %19, i128 %19)
call void @FUNC(i128 %18, i128 %20)
br label LBL_5
LBL_5:
%21 = load i32, i32* @gv_1, align 4
%22 = call i128 @FUNC(i32 %21)
%23 = call i64 @FUNC(i128 %22)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i128 %19, { 1, 0, 2 }
uselistorder i32 %10, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i128)* @Con_DrawSolidConsole, { 1, 0 }
uselistorder i32 1, { 5, 4, 0, 3, 2, 1 }
} | 0 |
BinRealVul | restore_fp_5889 | restore_fp | 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, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i32*, i32** @gv_0, align 8
%5 = ptrtoint i32* %4 to i64
%6 = add i64 %5, 4
%7 = call i64 @FUNC(i64 %6)
%8 = load i32*, i32** @gv_0, align 8
%9 = load i32, i32* %8, align 4
%10 = add i32 %9, 1
store i32 %10, i32* %8, align 4
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 }
} | 0 |
BinRealVul | jsvAsName_8298 | jsvAsName | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_6
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_5, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %arg1, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %arg1, i64 0)
store i64 %10, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%12 = call i64 @FUNC(i64 %arg1, i64 0)
%13 = call i64 @FUNC(i64 %12, i64 0)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @jsvMakeIntoVariableName, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 5, 1, 6, 0 }
uselistorder i64 %arg1, { 2, 1, 0, 3, 4, 5 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 0 |
BinRealVul | do_divwuo_5056 | do_divwuo | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8
%7 = load i32, i32* @gv_1, align 4
%8 = load i32, i32* @gv_2, align 4
%9 = udiv i32 %7, %8
%10 = zext i32 %9 to i64
store i64 %10, i64* %rax.0.reg2mem
store i32 %9, i32* %storemerge.reg2mem
br label LBL_3
LBL_2:
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 1, i32* inttoptr (i64 4210740 to i32*), align 4
store i64 %4, i64* %rax.0.reg2mem
store i32 0, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i32 %storemerge.reload, i32* @gv_1, align 4
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | throttle_fix_bucket_14759 | throttle_fix_bucket | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i1
%xmm1.0.reg2mem = alloca i128
%2 = load i128, i128* %0
%3 = load i1, i1* %1
%4 = load i1, i1* %1
%5 = ptrtoint i64* %arg1 to i64
%6 = call i128 @FUNC(i128 %2, i128 %2)
%7 = call i64 @FUNC(i128 %6)
%8 = add i64 %5, 24
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = call i128 @__asm_movsd.1(i64 %7)
%11 = call i64 @FUNC(i128 %10)
%12 = add i64 %5, 16
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = call i128 @__asm_movsd.1(i64 %5)
%15 = call i128 @__asm_movsd.1(i64 4621819117588971520)
%16 = call i128 @FUNC(i128 %14, i128 %15)
%17 = call i64 @FUNC(i128 %16)
%18 = call i128 @__asm_movsd.1(i64 %5)
%19 = call i128 @FUNC(i128 %15, i128 %15)
call void @FUNC(i128 %18, i128 %19)
store i128 %19, i128* %xmm1.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%20 = call i128 @FUNC(i128 %19, i128 %19)
call void @FUNC(i128 %18, i128 %20)
store i128 %20, i128* %xmm1.0.reg2mem
br i1 %3, label LBL_5, label LBL_2
LBL_2:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%21 = add i64 %5, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i128 @__asm_movsd.1(i64 %23)
%25 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
call void @FUNC(i128 %24, i128 %25)
br i1 %4, label LBL_5, label LBL_3
LBL_3:
%26 = call i128 @FUNC(i128 %25, i128 %25)
call void @FUNC(i128 %24, i128 %26)
br i1 %3, label LBL_4, label LBL_5
LBL_4:
%27 = call i128 @__asm_movsd.1(i64 %17)
%28 = call i64 @FUNC(i128 %27)
store i64 %28, i64* %22, align 8
br label LBL_5
LBL_5:
ret i64 %5
uselistorder i128 %25, { 1, 0, 2 }
uselistorder i128 %19, { 2, 1, 0, 3 }
uselistorder i128 %15, { 2, 1, 0 }
uselistorder i64 %5, { 0, 1, 5, 4, 2, 3 }
uselistorder i1 %4, { 1, 0 }
uselistorder i1 %3, { 1, 0 }
uselistorder i1* %1, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | opj_j2k_check_poc_val_7565 | opj_j2k_check_poc_val | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem101 = alloca i64
%sv_0.223.reg2mem = alloca i32
%sv_1.424.reg2mem = alloca i32
%storemerge25.reg2mem = alloca i32
%sv_1.3.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.118.reg2mem = alloca i32
%sv_1.319.reg2mem = alloca i32
%storemerge420.reg2mem = alloca i32
%sv_1.2.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.014.reg2mem = alloca i32
%sv_1.215.reg2mem = alloca i32
%storemerge516.reg2mem = alloca i32
%.reg2mem99 = alloca i32
%.reg2mem97 = alloca i32
%.reg2mem95 = alloca i32
%.reg2mem93 = alloca i32
%.reg2mem91 = alloca i32
%.reg2mem89 = alloca i32
%sv_2.027.reg2mem = alloca i32
%storemerge928.reg2mem = alloca i32
%sv_3.029.reg2mem = alloca i32
%storemerge830.reg2mem = alloca i32
%.reg2mem87 = alloca i32
%.reg2mem85 = alloca i32
%sv_1.131.reg2mem = alloca i32
%storemerge732.reg2mem = alloca i32
%.reg2mem83 = alloca i32
%.reg2mem81 = alloca i32
%.reg2mem79 = alloca i32
%.reg2mem77 = alloca i32
%storemerge635.reg2mem = alloca i32
%sv_4.036.in.reg2mem = alloca i64
%.reg2mem75 = alloca i32
%.reg2mem73 = alloca i32
%sv_5.039.reg2mem = alloca i32
%storemerge1241.reg2mem = alloca i32
%.reg2mem71 = alloca i32
%.reg2mem69 = alloca i32
%.reg2mem67 = alloca i32
%.reg2mem65 = alloca i32
%sv_6.037.reg2mem = alloca i32
%storemerge1338.reg2mem = alloca i32
%sv_1.042.reg2mem = alloca i32
%storemerge1143.reg2mem = alloca i32
%.reg2mem63 = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg6 to i64
%3 = mul i32 %arg4, %arg3
%4 = trunc i64 %arg5 to i32
%5 = mul i32 %3, %4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 4)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_36
LBL_2:
%11 = mul i32 %3, 4
%12 = mul i32 %11, %4
%13 = inttoptr i64 %7 to i64*
%14 = call i64* @memset(i64* %13, i32 0, i32 %12)
%15 = icmp eq i32 %arg2, 0
%16 = icmp eq i1 %15, false
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_36
LBL_3:
%17 = ptrtoint i64* %arg1 to i64
%18 = trunc i64 %1 to i32
%19 = add i64 %17, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp ugt i32 %21, %18
br i1 %22, label LBL_4, label LBL_12
LBL_4:
%23 = mul i32 %18, %arg4
%24 = add i64 %17, 8
%25 = inttoptr i64 %24 to i32*
%26 = add i64 %17, 12
%27 = inttoptr i64 %26 to i32*
%28 = add i64 %17, 16
%29 = inttoptr i64 %28 to i32*
%.pre = load i32, i32* %27, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem63
store i32 %18, i32* %storemerge1143.reg2mem
store i32 %23, i32* %sv_1.042.reg2mem
br label LBL_5
LBL_5:
%sv_1.042.reload = load i32, i32* %sv_1.042.reg2mem
%storemerge1143.reload = load i32, i32* %storemerge1143.reg2mem
%.reload64 = load i32, i32* %.reg2mem63
%.reload = load i32, i32* %.reg2mem
%30 = load i32, i32* %25, align 4
%31 = icmp ult i32 %30, %.reload64
store i32 %.reload, i32* %.reg2mem73
store i32 %.reload64, i32* %.reg2mem75
br i1 %31, label LBL_6, label LBL_11
LBL_6:
%32 = add i32 %30, %sv_1.042.reload
%.pre48 = load i32, i32* %29, align 4
store i32 %.reload, i32* %.reg2mem69
store i32 %.pre48, i32* %.reg2mem71
store i32 %30, i32* %storemerge1241.reg2mem
store i32 %32, i32* %sv_5.039.reg2mem
br label LBL_10
LBL_7:
%sv_6.037.reload = load i32, i32* %sv_6.037.reg2mem
%storemerge1338.reload = load i32, i32* %storemerge1338.reg2mem
%33 = zext i32 %sv_6.037.reload to i64
%34 = mul i64 %33, 4
%35 = add i64 %34, %7
%36 = inttoptr i64 %35 to i32*
store i32 1, i32* %36, align 4
%37 = add i32 %sv_6.037.reload, %3
%38 = add nuw i32 %storemerge1338.reload, 1
%39 = load i32, i32* %29, align 4
%40 = icmp ult i32 %38, %39
store i32 %38, i32* %storemerge1338.reg2mem
store i32 %37, i32* %sv_6.037.reg2mem
br i1 %40, label LBL_7, label LBL_8
LBL_8:
%.pre49 = load i32, i32* %27, align 4
store i32 %.pre49, i32* %.reg2mem65
store i32 %39, i32* %.reg2mem67
br label LBL_9
LBL_9:
%.reload68 = load i32, i32* %.reg2mem67
%.reload66 = load i32, i32* %.reg2mem65
%41 = add i32 %sv_5.039.reload, 1
%42 = add nuw i32 %storemerge1241.reload, 1
%43 = icmp ult i32 %42, %.reload66
store i32 %.reload66, i32* %.reg2mem69
store i32 %.reload68, i32* %.reg2mem71
store i32 %42, i32* %storemerge1241.reg2mem
store i32 %41, i32* %sv_5.039.reg2mem
store i32 %.reload66, i32* %.reg2mem73
store i32 %.reload66, i32* %.reg2mem75
br i1 %43, label LBL_10, label LBL_11
LBL_10:
%sv_5.039.reload = load i32, i32* %sv_5.039.reg2mem
%storemerge1241.reload = load i32, i32* %storemerge1241.reg2mem
%.reload72 = load i32, i32* %.reg2mem71
%.reload70 = load i32, i32* %.reg2mem69
%44 = icmp eq i32 %.reload72, 0
store i32 0, i32* %storemerge1338.reg2mem
store i32 %sv_5.039.reload, i32* %sv_6.037.reg2mem
store i32 %.reload70, i32* %.reg2mem65
store i32 0, i32* %.reg2mem67
br i1 %44, label LBL_9, label LBL_7
LBL_11:
%.reload76 = load i32, i32* %.reg2mem75
%.reload74 = load i32, i32* %.reg2mem73
%45 = add i32 %sv_1.042.reload, %arg4
%46 = add nuw i32 %storemerge1143.reload, 1
%47 = load i32, i32* %20, align 4
%48 = icmp ult i32 %46, %47
store i32 %.reload74, i32* %.reg2mem
store i32 %.reload76, i32* %.reg2mem63
store i32 %46, i32* %storemerge1143.reg2mem
store i32 %45, i32* %sv_1.042.reg2mem
br i1 %48, label LBL_5, label LBL_12
LBL_12:
%49 = icmp ugt i32 %arg2, 1
store i64 %17, i64* %sv_4.036.in.reg2mem
store i32 1, i32* %storemerge635.reg2mem
br i1 %49, label LBL_13, label LBL_25
LBL_13:
%storemerge635.reload = load i32, i32* %storemerge635.reg2mem
%sv_4.036.in.reload = load i64, i64* %sv_4.036.in.reg2mem
%sv_4.036 = add i64 %sv_4.036.in.reload, 20
%50 = inttoptr i64 %sv_4.036 to i32*
%51 = load i32, i32* %50, align 4
%52 = add i64 %sv_4.036.in.reload, 24
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = icmp ult i32 %51, %54
br i1 %55, label LBL_14, label LBL_24
LBL_14:
%56 = add i64 %sv_4.036.in.reload, 16
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = add i64 %sv_4.036.in.reload, 36
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = icmp ult i32 %58, %61
%63 = icmp eq i1 %62, false
%64 = select i1 %63, i32 0, i32 %58
%65 = mul i32 %51, %arg4
%66 = add i64 %sv_4.036.in.reload, 28
%67 = inttoptr i64 %66 to i32*
%68 = add i64 %sv_4.036.in.reload, 32
%69 = inttoptr i64 %68 to i32*
%70 = mul i32 %64, %3
%.pre50 = load i32, i32* %69, align 4
store i32 %54, i32* %.reg2mem77
store i32 %.pre50, i32* %.reg2mem79
store i32 %61, i32* %.reg2mem81
store i32 %.pre50, i32* %.reg2mem83
store i32 %51, i32* %storemerge732.reg2mem
store i32 %65, i32* %sv_1.131.reg2mem
br label LBL_15
LBL_15:
%sv_1.131.reload = load i32, i32* %sv_1.131.reg2mem
%storemerge732.reload = load i32, i32* %storemerge732.reg2mem
%.reload84 = load i32, i32* %.reg2mem83
%.reload82 = load i32, i32* %.reg2mem81
%.reload80 = load i32, i32* %.reg2mem79
%.reload78 = load i32, i32* %.reg2mem77
%71 = load i32, i32* %67, align 4
%72 = icmp ult i32 %71, %.reload84
store i32 %.reload78, i32* %.reg2mem93
store i32 %.reload80, i32* %.reg2mem95
store i32 %.reload82, i32* %.reg2mem97
store i32 %.reload84, i32* %.reg2mem99
br i1 %72, label LBL_16, label LBL_23
LBL_16:
%73 = add i32 %71, %sv_1.131.reload
store i32 %.reload80, i32* %.reg2mem85
store i32 %.reload82, i32* %.reg2mem87
store i32 %71, i32* %storemerge830.reg2mem
store i32 %73, i32* %sv_3.029.reg2mem
br label LBL_17
LBL_17:
%sv_3.029.reload = load i32, i32* %sv_3.029.reg2mem
%storemerge830.reload = load i32, i32* %storemerge830.reg2mem
%.reload88 = load i32, i32* %.reg2mem87
%.reload86 = load i32, i32* %.reg2mem85
%74 = icmp ult i32 %64, %.reload88
store i32 %.reload86, i32* %.reg2mem89
store i32 %.reload88, i32* %.reg2mem91
br i1 %74, label LBL_18, label LBL_21
LBL_18:
%75 = add i32 %sv_3.029.reload, %70
store i32 %64, i32* %storemerge928.reg2mem
store i32 %75, i32* %sv_2.027.reg2mem
br label LBL_19
LBL_19:
%sv_2.027.reload = load i32, i32* %sv_2.027.reg2mem
%storemerge928.reload = load i32, i32* %storemerge928.reg2mem
%76 = zext i32 %sv_2.027.reload to i64
%77 = mul i64 %76, 4
%78 = add i64 %77, %7
%79 = inttoptr i64 %78 to i32*
store i32 1, i32* %79, align 4
%80 = add i32 %sv_2.027.reload, %3
%81 = add nuw i32 %storemerge928.reload, 1
%82 = load i32, i32* %60, align 4
%83 = icmp ult i32 %81, %82
store i32 %81, i32* %storemerge928.reg2mem
store i32 %80, i32* %sv_2.027.reg2mem
br i1 %83, label LBL_19, label LBL_20
LBL_20:
%.pre51 = load i32, i32* %69, align 4
store i32 %.pre51, i32* %.reg2mem89
store i32 %82, i32* %.reg2mem91
br label LBL_21
LBL_21:
%.reload92 = load i32, i32* %.reg2mem91
%.reload90 = load i32, i32* %.reg2mem89
%84 = add i32 %sv_3.029.reload, 1
%85 = add nuw i32 %storemerge830.reload, 1
%86 = icmp ult i32 %85, %.reload90
store i32 %.reload90, i32* %.reg2mem85
store i32 %.reload92, i32* %.reg2mem87
store i32 %85, i32* %storemerge830.reg2mem
store i32 %84, i32* %sv_3.029.reg2mem
br i1 %86, label LBL_17, label LBL_22
LBL_22:
%.pre52 = load i32, i32* %53, align 4
store i32 %.pre52, i32* %.reg2mem93
store i32 %.reload90, i32* %.reg2mem95
store i32 %.reload92, i32* %.reg2mem97
store i32 %.reload90, i32* %.reg2mem99
br label LBL_23
LBL_23:
%.reload100 = load i32, i32* %.reg2mem99
%.reload98 = load i32, i32* %.reg2mem97
%.reload96 = load i32, i32* %.reg2mem95
%.reload94 = load i32, i32* %.reg2mem93
%87 = add i32 %sv_1.131.reload, %arg4
%88 = add nuw i32 %storemerge732.reload, 1
%89 = icmp ult i32 %88, %.reload94
store i32 %.reload94, i32* %.reg2mem77
store i32 %.reload96, i32* %.reg2mem79
store i32 %.reload98, i32* %.reg2mem81
store i32 %.reload100, i32* %.reg2mem83
store i32 %88, i32* %storemerge732.reg2mem
store i32 %87, i32* %sv_1.131.reg2mem
br i1 %89, label LBL_15, label LBL_24
LBL_24:
%90 = add nuw i32 %storemerge635.reload, 1
%exitcond47 = icmp eq i32 %90, %arg2
store i64 %sv_4.036, i64* %sv_4.036.in.reg2mem
store i32 %90, i32* %storemerge635.reg2mem
br i1 %exitcond47, label LBL_25, label LBL_13
LBL_25:
%91 = icmp eq i32 %4, 0
store i64 1, i64* %.reg2mem101
br i1 %91, label LBL_35, label LBL_26
LBL_26:
%92 = icmp eq i32 %arg3, 0
%93 = icmp eq i32 %arg4, 0
store i32 0, i32* %storemerge25.reg2mem
store i32 0, i32* %sv_1.424.reg2mem
store i32 0, i32* %sv_0.223.reg2mem
br label LBL_32
LBL_27:
%sv_0.014.reload = load i32, i32* %sv_0.014.reg2mem
%sv_1.215.reload = load i32, i32* %sv_1.215.reg2mem
%storemerge516.reload = load i32, i32* %storemerge516.reg2mem
%94 = zext i32 %sv_1.215.reload to i64
%95 = mul i64 %94, 4
%96 = add i64 %95, %7
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = icmp eq i32 %98, 1
%100 = icmp eq i1 %99, false
%101 = zext i1 %100 to i32
%102 = or i32 %sv_0.014.reload, %101
%103 = add i32 %sv_1.215.reload, 1
%104 = add nuw i32 %storemerge516.reload, 1
%exitcond = icmp eq i32 %104, %arg4
store i32 %104, i32* %storemerge516.reg2mem
store i32 %103, i32* %sv_1.215.reg2mem
store i32 %102, i32* %sv_0.014.reg2mem
br i1 %exitcond, label LBL_28, label LBL_27
LBL_28:
%105 = add i32 %sv_1.319.reload, %arg4
store i32 %102, i32* %sv_0.0.lcssa.reg2mem
store i32 %105, i32* %sv_1.2.lcssa.reg2mem
br label LBL_29
LBL_29:
%sv_1.2.lcssa.reload = load i32, i32* %sv_1.2.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%106 = add nuw i32 %storemerge420.reload, 1
%exitcond45 = icmp eq i32 %106, %arg3
store i32 %106, i32* %storemerge420.reg2mem
store i32 %sv_1.2.lcssa.reload, i32* %sv_1.319.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.118.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.2.lcssa.reload, i32* %sv_1.3.lcssa.reg2mem
br i1 %exitcond45, label LBL_31, label LBL_30
LBL_30:
%sv_0.118.reload = load i32, i32* %sv_0.118.reg2mem
%sv_1.319.reload = load i32, i32* %sv_1.319.reg2mem
%storemerge420.reload = load i32, i32* %storemerge420.reg2mem
store i32 0, i32* %storemerge516.reg2mem
store i32 %sv_1.319.reload, i32* %sv_1.215.reg2mem
store i32 %sv_0.118.reload, i32* %sv_0.014.reg2mem
store i32 %sv_0.118.reload, i32* %sv_0.0.lcssa.reg2mem
store i32 %sv_1.319.reload, i32* %sv_1.2.lcssa.reg2mem
br i1 %93, label LBL_29, label LBL_27
LBL_31:
%sv_1.3.lcssa.reload = load i32, i32* %sv_1.3.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%107 = add nuw i32 %storemerge25.reload, 1
%exitcond46 = icmp eq i32 %107, %4
store i32 %107, i32* %storemerge25.reg2mem
store i32 %sv_1.3.lcssa.reload, i32* %sv_1.424.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.223.reg2mem
br i1 %exitcond46, label LBL_33, label LBL_32
LBL_32:
%sv_0.223.reload = load i32, i32* %sv_0.223.reg2mem
%sv_1.424.reload = load i32, i32* %sv_1.424.reg2mem
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
store i32 0, i32* %storemerge420.reg2mem
store i32 %sv_1.424.reload, i32* %sv_1.319.reg2mem
store i32 %sv_0.223.reload, i32* %sv_0.118.reg2mem
store i32 %sv_0.223.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.424.reload, i32* %sv_1.3.lcssa.reg2mem
br i1 %92, label LBL_31, label LBL_30
LBL_33:
%108 = icmp eq i32 %sv_0.1.lcssa.reload, 0
store i64 1, i64* %.reg2mem101
br i1 %108, label LBL_35, label LBL_34
LBL_34:
%109 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %.reg2mem101
br label LBL_35
LBL_35:
%.reload102 = load i64, i64* %.reg2mem101
%110 = call i64 @FUNC(i64 %7)
store i64 %.reload102, i64* %rax.0.reg2mem
br label LBL_36
LBL_36:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_1.424.reload, { 1, 0 }
uselistorder i32 %sv_0.223.reload, { 1, 0 }
uselistorder i32 %sv_0.1.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_1.319.reload, { 2, 1, 0 }
uselistorder i32 %sv_0.118.reload, { 1, 0 }
uselistorder i32 %.reload94, { 1, 0 }
uselistorder i32 %.reload90, { 0, 1, 3, 2 }
uselistorder i32 %sv_2.027.reload, { 1, 0 }
uselistorder i32 %.reload80, { 1, 0 }
uselistorder i32 %.reload82, { 1, 0 }
uselistorder i32 %sv_1.131.reload, { 1, 0 }
uselistorder i32 %64, { 0, 2, 1 }
uselistorder i64 %sv_4.036.in.reload, { 5, 4, 2, 1, 3, 0 }
uselistorder i32 %sv_5.039.reload, { 1, 0 }
uselistorder i32 %sv_6.037.reload, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %sv_1.042.reload, { 1, 0 }
uselistorder i32* %29, { 1, 0 }
uselistorder i32* %20, { 1, 0 }
uselistorder i64 %17, { 0, 1, 2, 4, 3 }
uselistorder i64 %7, { 3, 0, 1, 2, 4, 5 }
uselistorder i32 %4, { 3, 2, 1, 0 }
uselistorder i32 %3, { 2, 3, 4, 0, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem63, { 1, 0, 2 }
uselistorder i32* %storemerge1143.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.042.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1338.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_6.037.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem65, { 2, 0, 1 }
uselistorder i32* %.reg2mem67, { 2, 0, 1 }
uselistorder i64* %sv_4.036.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge635.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem77, { 1, 0, 2 }
uselistorder i32* %.reg2mem79, { 1, 0, 2 }
uselistorder i32* %.reg2mem81, { 1, 0, 2 }
uselistorder i32* %.reg2mem83, { 1, 0, 2 }
uselistorder i32* %storemerge732.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.131.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem85, { 1, 0, 2 }
uselistorder i32* %.reg2mem87, { 1, 0, 2 }
uselistorder i32* %storemerge830.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.029.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge928.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.027.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem89, { 0, 2, 1 }
uselistorder i32* %.reg2mem91, { 0, 2, 1 }
uselistorder i32* %.reg2mem93, { 0, 2, 1 }
uselistorder i32* %.reg2mem95, { 0, 2, 1 }
uselistorder i32* %.reg2mem97, { 0, 2, 1 }
uselistorder i32* %.reg2mem99, { 0, 2, 1 }
uselistorder i32* %storemerge516.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.215.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_0.014.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.2.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge420.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.319.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.118.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.3.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem101, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 13, 3, 4, 0, 1, 2, 8, 9, 10, 11, 5, 6, 7, 14, 12 }
uselistorder i64 (i64, i64, i8*)* @opj_event_msg, { 1, 0 }
uselistorder i64 4, { 0, 1, 2, 4, 3 }
uselistorder i32 %arg4, { 0, 6, 7, 1, 2, 3, 4, 5 }
uselistorder i32 %arg3, { 1, 2, 0 }
uselistorder label LBL_36, { 1, 0, 2 }
uselistorder label LBL_35, { 1, 2, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | net_vhost_check_net_400 | net_vhost_check_net | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
store i64 7939124216839956854, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%3 = icmp ne i64 %1, 0
%4 = icmp eq i64 %2, 0
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %3, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_4
LBL_1:
%6 = inttoptr i64 %2 to i8*
%7 = inttoptr i64 %arg1 to i8*
%8 = call i32 @strcmp(i8* %6, i8* %7)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = inttoptr i64 %1 to i8*
%12 = bitcast i64* %sv_0 to i8*
%13 = call i32 @strncmp(i8* %11, i8* nonnull %12, i32 11)
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = ptrtoint i64* %arg3 to i64
%16 = call i64 @FUNC(i64 %15, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, 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 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i64, i8*)* @qemu_opt_get, { 1, 0 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | apic_timer_update_17855 | apic_timer_update | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge2.off0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = and i32 %3, 65536
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = sub i64 %arg2, %0
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = urem i32 %10, 64
%12 = zext i32 %11 to i64
%rdx.0 = ashr i64 %7, %12
%13 = and i32 %3, 131072
%14 = icmp eq i32 %13, 0
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%18 = add i64 %17, 1
%19 = udiv i64 %rdx.0, %18
%20 = add i64 %19, 1
%21 = mul i64 %20, %18
store i64 %18, i64* %rdi.0.reg2mem
store i64 %21, i64* %storemerge2.off0.reg2mem
br label LBL_5
LBL_3:
%22 = icmp ugt i64 %17, %rdx.0
br i1 %22, label LBL_4, label LBL_6
LBL_4:
%23 = add i64 %17, 1
store i64 %0, i64* %rdi.0.reg2mem
store i64 %23, i64* %storemerge2.off0.reg2mem
br label LBL_5
LBL_5:
%storemerge2.off0.reload = load i64, i64* %storemerge2.off0.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%storemerge = shl i64 %storemerge2.off0.reload, %12
%24 = add i64 %storemerge, %rdi.0.reload
%25 = add i64 %0, 32
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 %24)
%29 = add i64 %0, 40
%30 = inttoptr i64 %29 to i64*
store i64 %24, i64* %30, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%31 = add i64 %0, 32
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33)
store i64 %34, 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 %17, { 1, 2, 0 }
uselistorder i64 %rdx.0, { 1, 0 }
uselistorder i64 %0, { 7, 0, 3, 2, 1, 4, 5, 6, 8 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge2.off0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | dup_task_struct_4385 | dup_task_struct | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC()
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = call i64 @FUNC(i64 %2)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%9 = call i64 @FUNC(i64 %2, i64 %0)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_4
LBL_4:
%13 = inttoptr i64 %2 to i64*
store i64 %5, i64* %13, align 8
%14 = add i64 %2, 36
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %2, i64 %0)
%20 = call i64 @FUNC(i64 %2)
%21 = call i64 @FUNC(i64 %2)
%22 = inttoptr i64 %21 to i64*
store i64 3735928559, i64* %22, align 8
%23 = call i64 @FUNC()
%24 = trunc i64 %23 to i32
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = add i64 %2, 8
%28 = call i64 @FUNC(i64 %27, i64 2)
%29 = add i64 %2, 12
%30 = call i64 @FUNC(i64 %29, i64 0)
%31 = add i64 %2, 16
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %2, 24
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %34, align 8
%35 = call i64 @FUNC(i64 %5, i64 1)
store i64 %2, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%36 = call i64 @FUNC(i64 %5)
%37 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 2, 0, 1, 3 }
uselistorder i64 %2, { 12, 0, 2, 5, 4, 3, 6, 9, 8, 7, 10, 11, 13, 1, 14, 15 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | stb_leakcheck_free_4124 | stb_leakcheck_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi1.reg2mem = alloca i64*
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_9, label LBL_1
LBL_1:
%1 = add i64 %arg1, -24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = sub i64 0, %3
%5 = sub i64 %4, 1
store i64 %5, i64* %2, align 8
%6 = add i64 %arg1, -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
br i1 %10, label LBL_5, label LBL_2
LBL_2:
%11 = load i64, i64* @gv_0, align 8
%12 = icmp eq i64 %1, %11
br i1 %12, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_2, i64 0, i64 0), i32 18, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0))
br label LBL_4
LBL_4:
%13 = add i64 %arg1, -8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
store i64 %15, i64* @gv_0, align 8
store i64* %14, i64** %.pre-phi1.reg2mem
br label LBL_6
LBL_5:
%16 = add i64 %arg1, -8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %8, 16
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
store i64* %17, i64** %.pre-phi1.reg2mem
br label LBL_6
LBL_6:
%.pre-phi1.reload = load i64*, i64** %.pre-phi1.reg2mem
%21 = load i64, i64* %.pre-phi1.reload, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = load i64, i64* %7, align 8
%24 = add i64 %21, 8
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
br label LBL_8
LBL_8:
%26 = inttoptr i64 %arg1 to i64*
call void @free(i64* %26)
store i64 ptrtoint (i32* @0 to i64), 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** %.pre-phi1.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 2, 0, 1, 4, 3, 5 }
} | 0 |
reposvul_c_test | ossl_a2ucompare_303 | ossl_a2ucompare | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 256, i64* %sv_1, align 8
%0 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0, i64* nonnull %sv_1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = bitcast i64* %sv_0 to i8*
%8 = inttoptr i64 %arg2 to i8*
%9 = call i32 @strcmp(i8* nonnull %7, i8* %8)
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
%12 = zext i1 %11 to i64
store i64 %12, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i32 1, { 3, 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vhost_zerocopy_callback_9674 | vhost_zerocopy_callback | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %1 to i32*
%4 = load i32, i32* %3, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 4
%7 = add i64 %6, %1
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = call i64 @FUNC(i64 %1, i64 4198721)
ret i64 %9
uselistorder i64 %1, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | timer_int_route_422 | timer_int_route | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
ret i64 0
} | 0 |
BinRealVul | ntlm_read_message_fields_buffer_13433 | ntlm_read_message_fields_buffer | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %3, %0
%7 = call i64 @FUNC(i64 %5)
%8 = icmp ugt i64 %6, %7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = load i64, i64* %2, align 8
%10 = trunc i64 %9 to i32
%11 = call i64* @malloc(i32 %10)
%12 = ptrtoint i64* %11 to i64
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = icmp eq i64* %11, null
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_4
LBL_3:
%17 = call i64 @FUNC(i64 %5, i64 %0)
%18 = load i64, i64* %2, align 8
%19 = load i64, i64* %14, align 8
%20 = call i64 @FUNC(i64 %5, i64 %19, i64 %18)
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | ccw_machine_class_init_3204 | ccw_machine_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 1
%2 = inttoptr i64 %1 to i8*
store i8 1, i8* %2, align 1
%3 = add i64 %0, 2
%4 = inttoptr i64 %3 to i8*
store i8 1, i8* %4, align 1
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 4198676, i64* %8, align 8
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i32*
store i32 1, i32* %10, align 4
%11 = add i64 %0, 28
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
%13 = add i64 %0, 32
%14 = inttoptr i64 %13 to i32*
store i32 1, i32* %14, align 4
%15 = add i64 %0, 36
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
%17 = add i64 %0, 40
%18 = inttoptr i64 %17 to i32*
store i32 1, i32* %18, align 4
%19 = add i64 %0, 44
%20 = inttoptr i64 %19 to i32*
store i32 1, i32* %20, align 4
%21 = add i64 %0, 48
%22 = inttoptr i64 %21 to i32*
store i32 1, i32* %22, align 4
%23 = add i64 %0, 52
%24 = inttoptr i64 %23 to i32*
store i32 64, i32* %24, align 4
%25 = add i64 %0, 56
%26 = inttoptr i64 %25 to i8*
store i8 1, i8* %26, align 1
%27 = add i64 %0, 64
%28 = inttoptr i64 %27 to i64*
store i64 4198683, i64* %28, align 8
%29 = add i64 %0, 72
%30 = inttoptr i64 %29 to i64*
store i64 4198694, i64* %30, align 8
%31 = add i64 %0, 80
%32 = inttoptr i64 %31 to i64*
store i64 4198705, i64* %32, align 8
%33 = add i64 %0, 88
%34 = inttoptr i64 %33 to i64*
store i64 ptrtoint ([5 x i8]* @gv_0 to i64), i64* %34, align 8
store i64 4198723, i64* %6, align 8
store i64 4198730, i64* %arg1, align 8
ret i64 %0
} | 0 |
BinRealVul | audit_free_context_9655 | audit_free_context | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1, i64 0, i64 0)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1)
%4 = call i64 @FUNC(i64 %arg1)
%5 = add i64 %arg1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %arg1)
%10 = call i64 @FUNC(i64 %arg1)
ret i64 %10
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
} | 0 |
BinRealVul | idxd_wq_disable_cleanup_7101 | idxd_wq_disable_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = trunc i64 %4 to i32
%7 = call i64* @memset(i64* %5, i32 0, i32 %6)
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = add i64 %0, 32
%13 = inttoptr i64 %12 to i64*
store i64 0, i64* %13, align 8
%14 = add i64 %0, 40
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 44
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 48
%19 = call i64 @FUNC(i64 0, i64 %18)
%20 = add i64 %0, 56
%21 = inttoptr i64 %20 to i64*
%22 = call i64* @memset(i64* %21, i32 0, i32 64)
%23 = ptrtoint i64* %22 to i64
ret i64 %23
uselistorder i64 %4, { 1, 0 }
uselistorder i32 0, { 0, 2, 3, 4, 1 }
} | 0 |
BinRealVul | vp9_alloc_context_buffers_13371 | vp9_alloc_context_buffers | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %arg3, 4294967295
%4 = and i64 %arg2, 4294967295
%5 = call i64 @FUNC(i64 %2, i64 %4, i64 %3)
%6 = add i64 %2, 4
%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 = add i64 %2, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = mul i64 %1, 4294967296
%sext = mul i64 %15, %10
%16 = ashr exact i64 %sext, 32
%17 = icmp sgt i64 %16, %14
br i1 %17, label LBL_1, label LBL_2
LBL_1:
%18 = trunc i64 %2 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_9, label LBL_2
LBL_2:
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = load i32, i32* %7, align 4
%25 = add i64 %2, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = mul i32 %27, %24
%29 = icmp ult i32 %23, %28
store i32 %27, i32* %.reg2mem
br i1 %29, label LBL_3, label LBL_5
LBL_3:
%30 = call i64 @FUNC(i64 %2)
%31 = load i32, i32* %7, align 4
%32 = load i32, i32* %26, align 4
%33 = mul i32 %32, %31
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %2, i64 %34)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_9, label LBL_3.LBL_5_crit_edge
LBL_4:
%.pre = load i32, i32* %26, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%39 = add i64 %2, 20
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = icmp ult i32 %41, %.reload
store i64 0, i64* %storemerge.reg2mem
br i1 %42, label LBL_6, label LBL_10
LBL_6:
%43 = add i64 %2, 40
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %45)
%47 = load i32, i32* %26, align 4
%48 = zext i32 %47 to i64
%49 = call i64 @FUNC(i64 %48)
%sext2 = mul i64 %49, 25769803776
%50 = ashr exact i64 %sext2, 32
%51 = call i64 @FUNC(i64 %50, i64 1)
store i64 %51, i64* %44, align 8
%52 = icmp eq i64 %51, 0
br i1 %52, label LBL_9, label LBL_7
LBL_7:
%53 = add i64 %2, 48
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %55)
%57 = load i32, i32* %26, align 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 %58)
%sext3 = mul i64 %59, 4294967296
%60 = ashr exact i64 %sext3, 32
%61 = call i64 @FUNC(i64 %60, i64 1)
store i64 %61, i64* %54, align 8
%62 = icmp eq i64 %61, 0
br i1 %62, label LBL_9, label LBL_8
LBL_8:
%63 = load i32, i32* %26, align 4
store i32 %63, i32* %40, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_9:
%64 = call i64 @FUNC(i64 %2, i64 0, i64 0)
%65 = call i64 @FUNC(i64 %2)
store i64 1, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %26, { 1, 2, 3, 0, 4, 5 }
uselistorder i32* %7, { 1, 0, 2 }
uselistorder i64 %2, { 8, 7, 0, 2, 1, 3, 6, 5, 4, 9, 10, 11, 12 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @vpx_calloc, { 1, 0 }
uselistorder i64 (i64)* @mi_cols_aligned_to_sb, { 1, 0 }
uselistorder i64 (i64)* @vpx_free, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64)* @vp9_set_mb_mi, { 1, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kvm_init_vcpu_1564 | kvm_init_vcpu | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* @gv_0, align 8
%3 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0))
%4 = trunc i64 %1 to i32
%5 = call i64 @FUNC(i64 %2, i64 0, i32 %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = add i64 %10, 4
%12 = inttoptr i64 %11 to i32*
store i32 %6, i32* %12, align 4
%13 = add i64 %10, 16
%14 = inttoptr i64 %13 to i64*
store i64 %2, i64* %14, align 8
%15 = call i64 @FUNC(i64 %2, i64 1, i64 0)
%16 = icmp slt i64 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0))
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_4:
%19 = trunc i64 %15 to i32
%20 = load i32, i32* %12, align 4
%21 = call i64* @mmap(i64* null, i32 %19, i32 3, i32 1, i32 %20, i32 0)
%22 = ptrtoint i64* %21 to i64
%23 = add i64 %10, 8
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = icmp eq i64* %21, inttoptr (i64 -1 to i64*)
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = call i32* @__errno_location()
%28 = load i32, i32* %27, align 4
%29 = sub i32 0, %28
%30 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0))
store i32 %29, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_6:
%31 = add i64 %2, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_9, label LBL_7
LBL_7:
%35 = inttoptr i64 %2 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_9, label LBL_8
LBL_8:
%39 = mul i32 %33, 4096
%40 = sext i32 %39 to i64
%41 = add i64 %40, %22
store i64 %41, i64* %35, align 8
br label LBL_9
LBL_9:
%42 = call i64 @FUNC(i64 %10)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i32 %43, i32* %sv_0.0.reg2mem
br i1 %45, label LBL_11, label LBL_10
LBL_10:
%46 = call i64 @FUNC(i64 4198857, i64 %10)
%47 = call i64 @FUNC(i64 %10)
store i32 %43, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%48 = zext i32 %sv_0.0.reload to i64
ret i64 %48
uselistorder i64 %10, { 1, 0, 2, 3, 4, 5 }
uselistorder i32 %6, { 1, 2, 0, 3 }
uselistorder i64 %2, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i32 (i8*)* @puts, { 3, 2, 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | ProcShmCreateSegment_11555 | ProcShmCreateSegment | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
store i32 0, i32* %sv_0, align 4
%3 = trunc i64 %1 to i32
%switch = icmp ult i32 %3, 2
br i1 %switch, label LBL_2, label LBL_1
LBL_1:
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
store i32 %3, i32* %5, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_12
LBL_3:
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = call i32 @ftruncate(i32 %7, i32 %12)
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i32 @close(i32 %7)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%17 = call i64* @malloc(i32 48)
%18 = icmp eq i64* %17, null
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = call i32 @close(i32 %7)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%21 = ptrtoint i64* %17 to i64
%22 = bitcast i64* %17 to i32*
store i32 1, i32* %22, align 4
%23 = icmp eq i32 %3, 0
%. = select i1 %23, i32 3, i32 1
%24 = load i32, i32* %11, align 4
%25 = call i64* @mmap(i64* null, i32 %24, i32 %., i32 1, i32 %7, i32 0)
%26 = ptrtoint i64* %25 to i64
%27 = add i64 %21, 8
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = icmp eq i64* %25, inttoptr (i64 -1 to i64*)
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9, label LBL_8
LBL_8:
%31 = call i32 @close(i32 %7)
call void @free(i64* nonnull %17)
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_12
LBL_9:
%32 = bitcast i64* %rdi to i32*
%33 = add i64 %21, 16
%34 = inttoptr i64 %33 to i32*
store i32 1, i32* %34, align 4
%35 = load i32, i32* %32, align 8
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i32
%38 = add i64 %21, 20
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = load i32, i32* %11, align 4
%41 = add i64 %21, 24
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i64, i64* %28, align 8
%44 = call i64 @FUNC(i64 %43, i32 %40, i64 4198895, i64 %21)
%45 = add i64 %21, 32
%46 = inttoptr i64 %45 to i64*
store i64 %44, i64* %46, align 8
%47 = icmp eq i64 %44, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_11, label LBL_10
LBL_10:
%49 = call i32 @close(i32 %7)
%50 = load i32, i32* %42, align 4
%51 = load i64, i64* %28, align 8
%52 = inttoptr i64 %51 to i64*
%53 = call i32 @munmap(i64* %52, i32 %50)
call void @free(i64* nonnull %17)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%54 = load i64, i64* @gv_0, align 8
%55 = add i64 %21, 40
%56 = inttoptr i64 %55 to i64*
store i64 %54, i64* %56, align 8
store i64 %21, i64* @gv_0, align 8
%57 = bitcast i32* %sv_0 to i64*
%58 = call i32 @write(i32 1, i64* nonnull %57, i32 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %17, { 0, 1, 2, 4, 3 }
uselistorder i32 %7, { 3, 2, 4, 1, 0, 5, 6 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 4, 3, 1, 2 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64* null, { 1, 0 }
uselistorder i32 (i32)* @close, { 3, 2, 1, 0 }
uselistorder i64 4294967294, { 3, 2, 1, 0 }
uselistorder label LBL_12, { 1, 2, 3, 4, 5, 0, 6 }
} | 1 |
BinRealVul | vidioc_fill_name_5797 | vidioc_fill_name | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%sext2 = mul i64 %arg3, 4294967296
%0 = ashr exact i64 %sext2, 29
%1 = add i64 %0, ptrtoint (i64* @gv_0 to i64)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%5 = trunc i64 %arg2 to i32
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%6 = bitcast i64* %arg1 to i8*
%7 = inttoptr i64 %3 to i8*
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %6, i32 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8* %7)
store i32 %8, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%9 = trunc i64 %arg3 to i32
%10 = bitcast i64* %arg1 to i8*
%11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %10, i32 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0), i32 %9)
store i32 %11, 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 i32 %5, { 1, 0 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
} | 0 |
BinRealVul | vnc_display_close_14343 | vnc_display_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = bitcast i64* %arg1 to i8*
store i8 0, i8* %2, align 1
%3 = add i64 %1, 1
%4 = inttoptr i64 %3 to i8*
store i8 0, i8* %4, align 1
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
store i64 0, i64* %6, align 8
br label LBL_3
LBL_3:
%9 = add i64 %1, 56
%10 = inttoptr i64 %9 to i8*
store i8 0, i8* %10, align 1
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_5, label LBL_4
LBL_4:
store i64 0, i64* %12, align 8
br label LBL_5
LBL_5:
%15 = add i64 %1, 32
%16 = inttoptr i64 %15 to i32*
store i32 -1, i32* %16, align 4
%17 = add i64 %1, 36
%18 = inttoptr i64 %17 to i32*
store i32 -1, i32* %18, align 4
%19 = add i64 %1, 48
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
call void @free(i64* %22)
store i64 0, i64* %20, align 8
store i64 %1, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | cpu_set_log_5098 | cpu_set_log | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
store i32 %0, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = icmp eq %_IO_FILE* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%5 = and i64 %arg1, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%6 = load i32, i32* @gv_2, align 4
%7 = icmp eq i32 %6, 0
%. = select i1 %7, i8* bitcast (i8** @gv_3 to i8*), i8* inttoptr (i64 4202524 to i8*)
%8 = load [12 x i8]*, [12 x i8]** @gv_4, align 8
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%10 = call %_IO_FILE* @fopen(i8* %9, i8* %.)
store %_IO_FILE* %10, %_IO_FILE** @gv_1, align 8
%11 = icmp eq %_IO_FILE* %10, null
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = load [12 x i8]*, [12 x i8]** @gv_4, align 8
%14 = getelementptr inbounds [12 x i8], [12 x i8]* %13, i64 0, i64 0
call void @perror(i8* %14)
call void @_exit(i32 1)
unreachable
LBL_5:
%15 = call i32 @setvbuf(%_IO_FILE* %10, i8* bitcast (i8** @gv_5 to i8*), i32 1, i32 4096)
%16 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%17 = call i32 @setvbuf(%_IO_FILE* %16, i8* null, i32 2, i32 0)
%18 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%19 = call i32 @setvbuf(%_IO_FILE* %18, i8* null, i32 1, i32 0)
store i32 1, i32* @gv_2, align 4
%.pre = load i32, i32* @gv_0, align 4
%20 = zext i32 %.pre to i64
%21 = icmp eq i32 %.pre, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_6
LBL_6:
%23 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%24 = ptrtoint %_IO_FILE* %23 to i64
%25 = icmp eq %_IO_FILE* %23, null
store i64 %24, i64* %rax.0.reg2mem
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i32 @fclose(%_IO_FILE* nonnull %23)
%27 = sext i32 %26 to i64
store %_IO_FILE* null, %_IO_FILE** @gv_1, align 8
store i64 %27, 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, 2, 3, 4, 1 }
uselistorder i32 (%_IO_FILE*, i8*, i32, i32)* @setvbuf, { 2, 1, 0 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder %_IO_FILE* null, { 3, 0, 1, 2, 4 }
uselistorder %_IO_FILE** @gv_1, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 4, 0, 1, 5, 6, 2, 3 }
uselistorder i32 1, { 4, 1, 2, 3, 0 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | t1_scan_param_9665 | t1_scan_param | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = load i8*, i8** @gv_1, align 8
%3 = load i8, i8* %2, align 1
%4 = zext i8 %3 to i64
%5 = icmp eq i8 %3, 47
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_6, label LBL_2
LBL_2:
%7 = load [7 x i8]*, [7 x i8]** @gv_2, align 8
%8 = ptrtoint [7 x i8]* %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = load i8*, i8** @gv_1, align 8
%13 = ptrtoint i8* %12 to i64
%14 = load [7 x i8]*, [7 x i8]** @gv_2, align 8
%15 = getelementptr inbounds [7 x i8], [7 x i8]* %14, i64 0, i64 0
%16 = call i32 @strlen(i8* %15)
%17 = sext i32 %16 to i64
%18 = add i64 %17, %13
%19 = call i64 @FUNC(i64 %18, i64 0)
%20 = trunc i64 %19 to i32
store i32 %20, i32* @gv_3, align 4
%21 = and i64 %19, 4294967295
%22 = icmp slt i32 %20, 0
%23 = icmp eq i1 %22, false
store i64 %21, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_4, i64 0, i64 0))
store i64 %24, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%25 = call i64 @FUNC()
store i64 %25, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4, 5 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder label LBL_6, { 4, 1, 0, 3, 2 }
} | 0 |
BinRealVul | compute_read_bwidth_2707 | compute_read_bwidth | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i3
%rax.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i3
%.pre-phi4.reg2mem = alloca i3
%rax.0.reg2mem = alloca i64
%fpu_stat_TOP.1.reg2mem = alloca i3
%.pre3.pre-phi.reg2mem = alloca i3
%1 = load i3, i3* %0
%2 = load x86_fp80, x86_fp80* @gv_0, align 16
%3 = add i3 %1, -1
call void @__frontend_reg_store.fpr(i3 %3, x86_fp80 %2)
%4 = add i3 %1, -2
call void @__frontend_reg_store.fpr(i3 %4, x86_fp80 0xK00000000000000000000)
%5 = call x86_fp80 @__frontend_reg_load.fpr(i3 %4)
%6 = call x86_fp80 @__frontend_reg_load.fpr(i3 %3)
%7 = fcmp uno x86_fp80 %5, %6
br i1 %7, label LBL_0.LBL_4_crit_edge, label LBL_2
LBL_1:
%.pre = add i3 %1, -2
store i3 %.pre, i3* %.pre3.pre-phi.reg2mem
store i3 %3, i3* %fpu_stat_TOP.1.reg2mem
br label LBL_4
LBL_2:
call void @__frontend_reg_store.fpr(i3 %4, x86_fp80 0xK00000000000000000000)
%8 = call x86_fp80 @__frontend_reg_load.fpr(i3 %4)
%9 = call x86_fp80 @__frontend_reg_load.fpr(i3 %3)
%10 = fcmp ueq x86_fp80 %8, %9
%11 = call x86_fp80 @__frontend_reg_load.fpr(i3 %3)
call void @__frontend_reg_store.fpr(i3 %3, x86_fp80 %11)
store i3 %4, i3* %.pre-phi4.reg2mem
store i3 %3, i3* %.pre-phi.reg2mem
br i1 %10, label LBL_3, label LBL_5
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_2, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0))
store i3 %3, i3* %.pre3.pre-phi.reg2mem
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%fpu_stat_TOP.1.reload = load i3, i3* %fpu_stat_TOP.1.reg2mem
%.pre3.pre-phi.reload = load i3, i3* %.pre3.pre-phi.reg2mem
%12 = call x86_fp80 @__frontend_reg_load.fpr(i3 %fpu_stat_TOP.1.reload)
call void @__frontend_reg_store.fpr(i3 %fpu_stat_TOP.1.reload, x86_fp80 %12)
store i3 %.pre3.pre-phi.reload, i3* %.pre-phi4.reg2mem
store i3 %fpu_stat_TOP.1.reload, i3* %.pre-phi.reg2mem
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br label LBL_5
LBL_5:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
%.pre-phi.reload = load i3, i3* %.pre-phi.reg2mem
%.pre-phi4.reload = load i3, i3* %.pre-phi4.reg2mem
%13 = load x86_fp80, x86_fp80* @gv_4, align 16
call void @__frontend_reg_store.fpr(i3 %.pre-phi.reload, x86_fp80 %13)
%14 = load x86_fp80, x86_fp80* @gv_0, align 16
call void @__frontend_reg_store.fpr(i3 %.pre-phi4.reload, x86_fp80 %14)
%15 = call x86_fp80 @__frontend_reg_load.fpr(i3 %.pre-phi4.reload)
%16 = call x86_fp80 @__frontend_reg_load.fpr(i3 %.pre-phi.reload)
%17 = fdiv x86_fp80 %16, %15
call void @__frontend_reg_store.fpr(i3 %.pre-phi.reload, x86_fp80 %17)
call void @__frontend_reg_store.fpr(i3 %.pre-phi4.reload, x86_fp80 0xK400B8000000000000000)
%18 = call x86_fp80 @__frontend_reg_load.fpr(i3 %.pre-phi4.reload)
%19 = call x86_fp80 @__frontend_reg_load.fpr(i3 %.pre-phi.reload)
%20 = fmul x86_fp80 %18, %19
call void @__frontend_reg_store.fpr(i3 %.pre-phi.reload, x86_fp80 %20)
ret i64 %rax.1.reload
uselistorder i3 %.pre-phi4.reload, { 0, 1, 3, 2 }
uselistorder i3 %.pre-phi.reload, { 1, 0, 3, 2, 4 }
uselistorder i3 %4, { 0, 1, 2, 4, 3 }
uselistorder i3 %3, { 2, 0, 3, 4, 5, 1, 6, 7 }
uselistorder i3 %1, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | tls1_set_server_sigalgs_17916 | tls1_set_server_sigalgs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%storemerge23.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 160
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 %0, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3)
%6 = add i64 %3, 160
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
store i64 0, i64* %storemerge23.reg2mem
br label LBL_3
LBL_3:
%storemerge23.reload = load i64, i64* %storemerge23.reg2mem
%8 = mul i64 %storemerge23.reload, 16
%9 = add i64 %8, %rdi.0.reload
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add nuw nsw i64 %storemerge23.reload, 1
%exitcond = icmp eq i64 %13, 10
store i64 %13, i64* %storemerge23.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%14 = add i64 %rdi.0.reload, 168
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_9, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i64 1, i64 2)
store i32 4, i32* %storemerge.reg2mem
br label LBL_10
LBL_7:
%23 = load i64, i64* %2, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 1, i64* %storemerge1.reg2mem
br i1 %25, label LBL_11, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64 1, i64 3)
store i32 5, i32* %storemerge.reg2mem
br label LBL_10
LBL_9:
%27 = call i64 @FUNC(i64 %rdi.0.reload)
store i64 1, i64* %storemerge1.reg2mem
br label LBL_11
LBL_10:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%28 = call i64 @FUNC(i64 %0, i64 6, i32 %storemerge.reload)
store i64 0, i64* %storemerge1.reg2mem
br label LBL_11
LBL_11:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %3, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @SSLerr, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 1 |
BinRealVul | mbfl_encoding_detector_judge2_6223 | mbfl_encoding_detector_judge2 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.4.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.33.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_0.16.reg2mem = alloca i64
%storemerge17.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %sv_0.4.reg2mem
br i1 %0, label LBL_12, 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
%storemerge15 = add i32 %4, -1
%5 = icmp slt i32 %storemerge15, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %sv_0.4.reg2mem
br i1 %6, label LBL_2, label LBL_12
LBL_2:
%7 = add i64 %1, 12
%8 = inttoptr i64 %7 to i32*
store i32 %storemerge15, i32* %storemerge17.reg2mem
store i64 0, i64* %sv_0.16.reg2mem
br label LBL_3
LBL_3:
%sv_0.16.reload = load i64, i64* %sv_0.16.reg2mem
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%9 = sext i32 %storemerge17.reload to i64
%10 = mul i64 %9, 8
%11 = add i64 %10, %1
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %sv_0.16.reload, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = load i32, i32* %8, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = add i64 %13, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 %sv_0.16.reload, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = add i64 %13, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
store i64 %27, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%storemerge1 = add i32 %storemerge17.reload, -1
%28 = icmp slt i32 %storemerge1, 0
%29 = icmp eq i1 %28, false
store i32 %storemerge1, i32* %storemerge17.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.16.reg2mem
br i1 %29, label LBL_3, label LBL_8
LBL_8:
%30 = icmp eq i64 %sv_0.0.reload, 0
%31 = icmp eq i1 %30, false
store i32 %storemerge15, i32* %storemerge4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.33.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.4.reg2mem
br i1 %31, label LBL_12, label LBL_9
LBL_9:
%sv_0.33.reload = load i64, i64* %sv_0.33.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%32 = sext i32 %storemerge4.reload to i64
%33 = mul i64 %32, 8
%34 = add i64 %33, %1
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
store i64 %sv_0.33.reload, i64* %sv_0.2.reg2mem
br i1 %40, label LBL_11, label LBL_10
LBL_10:
%41 = add i64 %36, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
store i64 %43, i64* %sv_0.2.reg2mem
br label LBL_11
LBL_11:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%storemerge = add i32 %storemerge4.reload, -1
%44 = icmp slt i32 %storemerge, 0
%45 = icmp eq i1 %44, false
store i32 %storemerge, i32* %storemerge4.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.33.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.4.reg2mem
br i1 %45, label LBL_9, label LBL_12
LBL_12:
%sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem
ret i64 %sv_0.4.reload
uselistorder i32 %storemerge4.reload, { 1, 0 }
uselistorder i32 %storemerge17.reload, { 1, 0 }
uselistorder i32* %storemerge17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.16.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.33.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.4.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i1 false, { 2, 1, 5, 6, 3, 4, 0 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i64 8, { 2, 0, 3, 1, 4 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | get_channel_layout_single_831 | get_channel_layout_single | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv15.reg2mem = alloca i64
%sv_0 = alloca i8*, align 8
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %0 to i32
%2 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %indvars.iv15.reg2mem
br label LBL_1
LBL_1:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%3 = mul i64 %indvars.iv15.reload, 16
%4 = add i64 %3, ptrtoint ([7 x i8]** @gv_0 to i64)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i8*
%8 = call i32 @strlen(i8* %7)
%9 = sext i32 %8 to i64
%10 = icmp eq i64 %0, %9
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = load i64, i64* %5, align 8
%13 = inttoptr i64 %12 to i64*
%14 = call i32 @memcmp(i64* %13, i64* %2, i32 %1)
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = add i64 %3, ptrtoint (i64* @gv_1 to i64)
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
store i64 %19, i64* %rax.0.reg2mem
br label LBL_17
LBL_4:
%20 = icmp eq i64 %indvars.iv15.reload, 1
store i64 1, i64* %indvars.iv15.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %20, label LBL_5, label LBL_1
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = mul i64 %indvars.iv.reload, 16
%22 = add i64 %21, ptrtoint ([5 x i8]** @gv_2 to i64)
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_9, label LBL_6
LBL_6:
%26 = inttoptr i64 %24 to i8*
%27 = call i32 @strlen(i8* %26)
%28 = sext i32 %27 to i64
%29 = icmp eq i64 %0, %28
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%31 = load i64, i64* %23, align 8
%32 = inttoptr i64 %31 to i64*
%33 = call i32 @memcmp(i64* %32, i64* %2, i32 %1)
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%36 = shl i64 1, %indvars.iv.reload
store i64 %36, i64* %rax.0.reg2mem
br label LBL_17
LBL_9:
%37 = icmp eq i64 %indvars.iv.reload, 1
store i64 1, i64* %indvars.iv.reg2mem
br i1 %37, label LBL_10, label LBL_5
LBL_10:
%38 = call i32* @__errno_location()
store i32 0, i32* %38, align 4
%39 = inttoptr i64 %arg1 to i8*
%40 = call i32 @strtol(i8* %39, i8** nonnull %sv_0, i32 10)
%41 = call i32* @__errno_location()
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_14, label LBL_11
LBL_11:
%45 = load i8*, i8** %sv_0, align 8
%46 = ptrtoint i8* %45 to i64
%47 = sub i64 1, %arg1
%48 = add i64 %47, %46
%49 = icmp eq i64 %48, %0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_14, label LBL_12
LBL_12:
%51 = load i8, i8* %45, align 1
%52 = icmp eq i8 %51, 99
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_14, label LBL_13
LBL_13:
%54 = zext i32 %40 to i64
%55 = call i64 @FUNC(i64 %54)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%56 = call i32* @__errno_location()
store i32 0, i32* %56, align 4
%57 = call i64 @strtoll(i8* %39, i8** nonnull %sv_0, i32 0)
%58 = call i32* @__errno_location()
%59 = load i32, i32* %58, align 4
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_17, label LBL_15
LBL_15:
%62 = load i8*, i8** %sv_0, align 8
%63 = ptrtoint i8* %62 to i64
%64 = sub i64 %63, %arg1
%65 = icmp eq i64 %64, %0
%66 = icmp eq i1 %65, false
store i64 0, i64* %rax.0.reg2mem
br i1 %66, label LBL_17, label LBL_16
LBL_16:
%67 = icmp sgt i64 %57, 0
%68 = select i1 %67, i64 %57, i64 0
store i64 %68, 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 %57, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i8** %sv_0, { 1, 3, 0, 2 }
uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3, 5, 6 }
uselistorder i32* ()* @__errno_location, { 2, 0, 1, 3 }
uselistorder i64 1, { 2, 0, 3, 5, 1, 4 }
uselistorder i32 0, { 1, 0, 2, 4, 5, 3, 6 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i1 false, { 0, 1, 4, 5, 6, 2, 3, 7, 8 }
uselistorder i32 1, { 4, 2, 1, 0, 3 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_17, { 2, 1, 0, 4, 3, 5 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | monitor_protocol_event_handler_14721 | monitor_protocol_event_handler | 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 = call i64 @FUNC(i64 0)
%4 = call i64 @FUNC(i64* nonnull @gv_0)
%5 = add i64 %2, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %11, i64 %10, i64 %7, i64 %3)
%13 = load i64, i64* %9, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = call i64 @FUNC(i64 %11, i64 %13)
%16 = load i64, i64* %9, align 8
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %9, align 8
br label LBL_2
LBL_2:
store i64 %3, i64* %6, align 8
%18 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %18
uselistorder i64 %11, { 1, 0 }
uselistorder i64* %9, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | check_1596 | check | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = load i32, i32* %0
%sv_1 = alloca i32, align 4
%5 = call i64 @FUNC(i64 %1, i64 %arg2, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%9 = bitcast i32* %sv_1 to i64*
%10 = call i64 @FUNC(i64 %1, i64* nonnull %9, i64 4)
%11 = trunc i64 %10 to i32
%12 = icmp sgt i32 %11, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_7
LBL_2:
%13 = load i32, i32* %sv_1, align 4
%14 = mul i32 %13, 16777216
%15 = mul i32 %4, 65536
%16 = and i32 %15, 16711680
%17 = mul i32 %3, 256
%18 = and i32 %17, 65280
%19 = urem i32 %2, 256
%20 = or i32 %18, %19
%21 = or i32 %20, %16
%22 = or i32 %21, %14
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %27, label LBL_3, label LBL_7
LBL_3:
%28 = bitcast i32* %sv_0 to i64*
%29 = call i64 @FUNC(i64* nonnull %28, i64 %23)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 1
%32 = icmp eq i1 %31, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %32, label LBL_4, label LBL_7
LBL_4:
%33 = icmp eq i64* %arg3, null
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = bitcast i64* %arg3 to i32*
store i32 %22, i32* %34, align 4
br label LBL_6
LBL_6:
%35 = load i32, i32* %sv_0, align 4
%36 = zext i32 %35 to i64
store i64 %36, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i32* %0, { 2, 1, 0 }
uselistorder i32 256, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_7, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | decode_residuals_943 | decode_residuals | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.120.reg2mem = alloca i64
%sv_1.121.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i64
%sv_1.019.reg2mem = alloca i64
%sv_0.323.reg2mem = alloca i64
%sv_1.224.reg2mem = alloca i64
%storemerge825.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = add i64 %arg1, 24
%5 = call i64 @FUNC(i64 %4, i64 2)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %arg1, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %5, 4294967295
%12 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%sext5 = mul i64 %arg3, 4294967296
%13 = ashr exact i64 %sext5, 32
%14 = trunc i64 %3 to i32
%15 = call i64 @FUNC(i64 %4, i64 4)
%16 = trunc i64 %15 to i32
%17 = urem i32 %16, 32
%18 = ashr i32 %14, %17
%19 = trunc i64 %13 to i32
%20 = icmp slt i32 %18, %19
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%sext = mul i64 %arg2, 4294967296
%21 = and i64 %15, 4294967295
%22 = shl i32 1, %17
%rdx.0 = zext i32 %22 to i64
%23 = add i64 %arg1, 16
%24 = inttoptr i64 %23 to i64*
%25 = add i64 %arg1, 8
%26 = inttoptr i64 %25 to i64*
%27 = ashr exact i64 %sext, 29
store i32 0, i32* %storemerge825.reg2mem
store i64 %13, i64* %sv_1.224.reg2mem
store i64 %13, i64* %sv_0.323.reg2mem
br label LBL_5
LBL_4:
%28 = zext i32 %18 to i64
%29 = add i64 %arg1, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = and i64 %13, 4294967295
%33 = call i64 @FUNC(i64 %31, i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %32, i64 %28, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_5:
%sv_0.323.reload = load i64, i64* %sv_0.323.reg2mem
%sv_1.224.reload = load i64, i64* %sv_1.224.reg2mem
%storemerge825.reload = load i32, i32* %storemerge825.reg2mem
%34 = call i64 @FUNC(i64 %4, i64 4)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 15
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_6, label LBL_8
LBL_6:
%38 = trunc i64 %sv_1.224.reload to i32
%39 = icmp sgt i32 %18, %38
store i64 %sv_0.323.reload, i64* %sv_0.2.reg2mem
br i1 %39, label LBL_7, label LBL_12
LBL_7:
%40 = and i64 %34, 4294967295
store i64 %sv_1.224.reload, i64* %sv_1.121.reg2mem
store i64 %sv_0.323.reload, i64* %sv_0.120.reg2mem
br label LBL_11
LBL_8:
%41 = load i64, i64* %24, align 8
%42 = call i64 @FUNC(i64 %41, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i64 %21, i64 %2, i64 %1)
%43 = call i64 @FUNC(i64 %4, i64 5)
%44 = trunc i64 %sv_1.224.reload to i32
%45 = icmp sgt i32 %18, %44
store i64 %sv_0.323.reload, i64* %sv_0.2.reg2mem
br i1 %45, label LBL_9, label LBL_12
LBL_9:
%46 = and i64 %43, 4294967295
store i64 %sv_1.224.reload, i64* %sv_1.019.reg2mem
store i64 %sv_0.323.reload, i64* %sv_0.018.reg2mem
br label LBL_10
LBL_10:
%sv_0.018.reload = load i64, i64* %sv_0.018.reg2mem
%sv_1.019.reload = load i64, i64* %sv_1.019.reg2mem
%47 = load i64, i64* %26, align 8
%48 = add i64 %47, %27
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%sext10 = mul i64 %sv_0.018.reload, 4294967296
%51 = ashr exact i64 %sext10, 30
%52 = add i64 %50, %51
%53 = call i64 @FUNC(i64 %4, i64 %46)
%54 = trunc i64 %53 to i32
%55 = inttoptr i64 %52 to i32*
store i32 %54, i32* %55, align 4
%56 = mul i64 %sv_1.019.reload, 4294967296
%sext11 = add i64 %56, 4294967296
%57 = ashr exact i64 %sext11, 32
%sext12 = add i64 %sext10, 4294967296
%58 = ashr exact i64 %sext12, 32
%59 = trunc i64 %57 to i32
%60 = icmp sgt i32 %18, %59
store i64 %57, i64* %sv_1.019.reg2mem
store i64 %58, i64* %sv_0.018.reg2mem
store i64 %58, i64* %sv_0.2.reg2mem
br i1 %60, label LBL_10, label LBL_12
LBL_11:
%sv_0.120.reload = load i64, i64* %sv_0.120.reg2mem
%sv_1.121.reload = load i64, i64* %sv_1.121.reg2mem
%61 = load i64, i64* %26, align 8
%62 = add i64 %61, %27
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%sext14 = mul i64 %sv_0.120.reload, 4294967296
%65 = ashr exact i64 %sext14, 30
%66 = add i64 %64, %65
%67 = call i64 @FUNC(i64 %4, i64 %40, i64 2147483647, i64 0)
%68 = trunc i64 %67 to i32
%69 = inttoptr i64 %66 to i32*
store i32 %68, i32* %69, align 4
%70 = mul i64 %sv_1.121.reload, 4294967296
%sext15 = add i64 %70, 4294967296
%71 = ashr exact i64 %sext15, 32
%sext16 = add i64 %sext14, 4294967296
%72 = ashr exact i64 %sext16, 32
%73 = trunc i64 %71 to i32
%74 = icmp sgt i32 %18, %73
store i64 %71, i64* %sv_1.121.reg2mem
store i64 %72, i64* %sv_0.120.reg2mem
store i64 %72, i64* %sv_0.2.reg2mem
br i1 %74, label LBL_11, label LBL_12
LBL_12:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%75 = add i32 %storemerge825.reload, 1
%76 = sext i32 %75 to i64
%77 = icmp sgt i64 %rdx.0, %76
store i32 %75, i32* %storemerge825.reg2mem
store i64 0, i64* %sv_1.224.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.323.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %77, label LBL_5, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sext14, { 1, 0 }
uselistorder i64 %sext10, { 1, 0 }
uselistorder i64 %sv_1.224.reload, { 1, 3, 0, 2 }
uselistorder i64 %sv_0.323.reload, { 3, 0, 2, 1 }
uselistorder i32 %18, { 3, 4, 1, 0, 2, 5 }
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %13, { 3, 0, 1, 2 }
uselistorder i64 %4, { 2, 0, 1, 3, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %storemerge825.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.224.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.323.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.019.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.018.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.121.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.120.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967296, { 6, 7, 0, 1, 8, 9, 2, 3, 5, 4 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 0, 1, 3, 4 }
uselistorder label LBL_12, { 1, 0, 2, 3 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | virtio_blk_handle_read_11864 | virtio_blk_handle_read | 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 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = and i64 %6, %1
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0, i64 4294967291)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = udiv i64 %12, 512
%14 = add i64 %0, 16
%15 = add i64 %4, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %1, i64 %14, i64 %13, i64 4198743, i64 %0, i64 %1)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %18, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %0, i64 4294967291)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 %0, { 0, 4, 2, 1, 3, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64)* @virtio_blk_rw_complete, { 1, 0 }
} | 1 |
BinRealVul | key_notify_policy_flush_11722 | key_notify_policy_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = call i64 @FUNC(i64 32, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %0, i64 16)
%5 = inttoptr i64 %4 to i8*
store i8 0, i8* %5, align 1
%6 = bitcast i64* %rdi to i32*
%7 = load i32, i32* %6, align 8
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %4, 12
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %4, 2
%16 = inttoptr i64 %15 to i8*
store i8 2, i8* %16, align 1
%17 = add i64 %4, 1
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %18, align 1
%19 = add i64 %4, 4
%20 = inttoptr i64 %19 to i32*
store i32 2, i32* %20, align 4
%21 = add i64 %3, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 0, i64 %23)
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 | isIpAddress_10198 | isIpAddress | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64* @malloc(i32 16)
%2 = ptrtoint i64* %1 to i64
%3 = bitcast i64* %1 to i8*
%4 = call i64 @FUNC(i64 %2, i64 %0, i64 16)
%5 = call i32 @strspn(i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%6 = call i32 @strlen(i8* %3)
%7 = icmp eq i32 %5, %6
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%9 = call i8* @strtok(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%10 = icmp eq i8* %9, null
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%13 = call i32 @atoi(i8* %9)
%14 = icmp ult i32 %13, 256
store i32 2, i32* %storemerge7.reg2mem
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %2)
%16 = ptrtoint i8* %9 to i64
%17 = call i64 @FUNC(i64 %16)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%18 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%19 = icmp eq i8* %18, null
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_8, label LBL_7
LBL_7:
%21 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%22 = call i32 @atoi(i8* %18)
%23 = icmp ult i32 %22, 256
br i1 %23, label LBL_10, label LBL_9
LBL_9:
%24 = ptrtoint i8* %18 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%27 = add nuw nsw i32 %storemerge7.reload, 1
%28 = icmp ult i32 %27, 4
store i32 %27, i32* %storemerge7.reg2mem
br i1 %28, label LBL_6, label LBL_11
LBL_11:
%29 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 3, 5, 4, 2, 1, 0, 6 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 6, 5, 3, 2, 1 }
uselistorder i32 (i8*)* @atoi, { 1, 0 }
uselistorder i8* null, { 0, 2, 1 }
uselistorder i8* (i8*, i8*)* @strtok, { 1, 0 }
uselistorder i64 1, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @xfree, { 4, 7, 6, 5, 3, 2, 1, 0 }
uselistorder label LBL_12, { 2, 0, 1, 3, 4, 5 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | btrfs_xattr_acl_set_13818 | btrfs_xattr_acl_set | 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
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = icmp eq i64 %arg3, 0
store i64 0, i64* %sv_0.0.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg3, i64 %arg4)
%7 = icmp ult i64 %6, -1000
store i64 %6, i64* %sv_0.0.reg2mem
store i64 %arg3, i64* %rdi.0.reg2mem
store i64 %6, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = trunc i64 %arg6 to i32
%9 = call i64 @FUNC(i64 0, i64 %rdi.0.reload, i64 %sv_0.0.reload, i32 %8)
%10 = call i64 @FUNC(i64 %sv_0.0.reload)
%11 = and i64 %9, 4294967295
store i64 %11, 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, 3, 1, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg3, { 0, 2, 1 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 0 |
BinRealVul | rose_parse_ccitt_11763 | rose_parse_ccitt | 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 i64
%sv_2.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%.reg2mem13 = alloca i8
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%2 = ptrtoint i64* %sv_4 to i64
%sext = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = add i64 %2, -13
%5 = add i64 %0, 40
%6 = add i64 %0, 20
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %0, 51
%.phi.trans.insert = bitcast i64* %arg1 to i8*
%.pre = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre, i8* %.reg2mem
store i64 %1, i64* %sv_2.0.reg2mem
store i64 %3, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%.reload = load i8, i8* %.reg2mem
%9 = icmp ugt i8 %.reload, -65
br i1 %9, label LBL_8, label LBL_2
LBL_2:
%10 = and i8 %.reload, -64
%11 = icmp eq i8 %10, -128
br i1 %11, label LBL_7, label LBL_3
LBL_3:
%12 = icmp ugt i8 %10, -128
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %12, label LBL_14, label LBL_4
LBL_4:
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
switch i8 %10, label LBL_14 [
i8 0, label LBL_5
i8 64, label LBL_6
]
LBL_5:
%13 = add i64 %sv_2.0.reload, 2
%14 = mul i32 %sv_0.0.reload, 16777216
%sext6 = add i32 %14, 33554432
%15 = ashr exact i32 %sext6, 24
%16 = mul i64 %sv_1.0.reload, 4294967296
%sext7 = add i64 %16, -8589934592
%17 = ashr exact i64 %sext7, 32
store i64 %13, i64* %sv_2.1.reg2mem
store i64 %17, i64* %sv_1.1.reg2mem
store i32 %15, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_6:
%18 = add i64 %sv_2.0.reload, 3
%19 = mul i32 %sv_0.0.reload, 16777216
%sext4 = add i32 %19, 50331648
%20 = ashr exact i32 %sext4, 24
%21 = mul i64 %sv_1.0.reload, 4294967296
%sext5 = add i64 %21, -12884901888
%22 = ashr exact i64 %sext5, 32
store i64 %18, i64* %sv_2.1.reg2mem
store i64 %22, i64* %sv_1.1.reg2mem
store i32 %20, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_7:
%23 = add i64 %sv_2.0.reload, 4
%24 = mul i32 %sv_0.0.reload, 16777216
%sext8 = add i32 %24, 67108864
%25 = ashr exact i32 %sext8, 24
%26 = mul i64 %sv_1.0.reload, 4294967296
%sext9 = add i64 %26, -17179869184
%27 = ashr exact i64 %sext9, 32
store i64 %23, i64* %sv_2.1.reg2mem
store i64 %27, i64* %sv_1.1.reg2mem
store i32 %25, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_8:
%28 = add i64 %sv_2.0.reload, 1
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i8 %.reload, -64
%33 = icmp eq i1 %32, false
store i8 %.reload, i8* %.reg2mem13
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = inttoptr i64 %sv_2.0.reload to i8*
%35 = add i64 %sv_2.0.reload, 7
%36 = inttoptr i64 %35 to i64*
%37 = call i64* @memcpy(i64* %arg2, i64* %36, i32 20)
%38 = urem i32 %31, 256
%39 = add nsw i32 %38, -10
%40 = add i64 %sv_2.0.reload, 12
%41 = inttoptr i64 %40 to i64*
%42 = call i64* @memcpy(i64* nonnull %sv_3, i64* %41, i32 %39)
%43 = sext i32 %39 to i64
%44 = add i64 %4, %43
%45 = inttoptr i64 %44 to i8*
store i8 0, i8* %45, align 1
%46 = call i64 @FUNC(i64 %5, i64* nonnull %sv_3)
%.pre11 = load i8, i8* %34, align 1
store i8 %.pre11, i8* %.reg2mem13
br label LBL_10
LBL_10:
%.reload14 = load i8, i8* %.reg2mem13
%47 = icmp eq i8 %.reload14, -63
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_10.LBL_13_crit_edge, label LBL_12
LBL_11:
%.pre12 = urem i32 %31, 256
store i32 %.pre12, i32* %.pre-phi.reg2mem
br label LBL_13
LBL_12:
%49 = add i64 %sv_2.0.reload, 7
%50 = inttoptr i64 %49 to i64*
%51 = call i64* @memcpy(i64* %7, i64* %50, i32 20)
%52 = urem i32 %31, 256
%53 = add nsw i32 %52, -10
%54 = add i64 %sv_2.0.reload, 12
%55 = inttoptr i64 %54 to i64*
%56 = call i64* @memcpy(i64* nonnull %sv_3, i64* %55, i32 %53)
%57 = sext i32 %53 to i64
%58 = add i64 %4, %57
%59 = inttoptr i64 %58 to i8*
store i8 0, i8* %59, align 1
%60 = call i64 @FUNC(i64 %8, i64* nonnull %sv_3)
store i32 %52, i32* %.pre-phi.reg2mem
br label LBL_13
LBL_13:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%narrow = add nuw nsw i32 %.pre-phi.reload, 2
%61 = zext i32 %narrow to i64
%62 = add i64 %sv_2.0.reload, %61
%63 = add i32 %sv_0.0.reload, %31
%64 = mul i32 %63, 16777216
%sext10 = add i32 %64, 33554432
%65 = ashr exact i32 %sext10, 24
%66 = trunc i64 %sv_1.0.reload to i32
%67 = sub i32 %66, %narrow
%68 = sext i32 %67 to i64
store i64 %62, i64* %sv_2.1.reg2mem
store i64 %68, i64* %sv_1.1.reg2mem
store i32 %65, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%69 = inttoptr i64 %sv_2.1.reload to i8*
%70 = load i8, i8* %69, align 1
%71 = icmp eq i8 %70, 0
br i1 %71, label LBL_16, label LBL_15
LBL_15:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%72 = trunc i64 %sv_1.1.reload to i32
%73 = icmp eq i32 %72, 0
%74 = icmp slt i32 %72, 0
%75 = icmp eq i1 %74, false
%76 = icmp eq i1 %73, false
%77 = icmp eq i1 %75, %76
store i8 %70, i8* %.reg2mem
store i64 %sv_2.1.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
br i1 %77, label LBL_1, label LBL_16
LBL_16:
%78 = urem i32 %sv_0.1.reload, 256
%79 = zext i32 %78 to i64
ret i64 %79
uselistorder i32 %72, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %sv_2.1.reload, { 1, 0 }
uselistorder i32 %31, { 3, 0, 1, 2 }
uselistorder i8 %.reload, { 0, 1, 3, 2 }
uselistorder i64 %sv_2.0.reload, { 11, 5, 4, 7, 6, 2, 3, 8, 10, 9, 0, 1 }
uselistorder i64 %sv_1.0.reload, { 2, 5, 4, 3, 0, 1 }
uselistorder i32 %sv_0.0.reload, { 2, 5, 4, 3, 0, 1 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem13, { 0, 2, 1 }
uselistorder i64* %sv_2.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i64 (i64, i64*)* @asc2ax, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 3, 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 24, { 0, 1, 3, 2 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 32, { 0, 2, 1, 3 }
uselistorder label LBL_14, { 1, 2, 3, 4, 0, 5 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | enqueue_packet_2876 | enqueue_packet | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i64
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %0, 2
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i16
store i64 %1, i64* %storemerge6.reg2mem
br label LBL_2
LBL_1:
%5 = add i64 %11, 8
%6 = inttoptr i64 %5 to i16*
%7 = load i16, i16* %6, align 2
%8 = sub i16 %4, %7
%9 = icmp slt i16 %8, 0
store i64 %11, i64* %storemerge6.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%10 = inttoptr i64 %storemerge6.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_1, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 32)
%sext5 = mul i64 %14, 4294967296
%15 = icmp eq i64 %sext5, 0
%16 = icmp eq i1 %15, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %16, label LBL_4, label LBL_5
LBL_4:
%17 = ashr exact i64 %sext5, 32
%18 = call i64 @FUNC()
%19 = add nsw i64 %17, 24
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = add nsw i64 %17, 8
%22 = inttoptr i64 %21 to i16*
store i16 %4, i16* %22, align 2
%23 = trunc i64 %arg3 to i32
%24 = add nsw i64 %17, 12
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add nsw i64 %17, 16
%27 = inttoptr i64 %26 to i64*
store i64 %0, i64* %27, align 8
%28 = load i64, i64* %10, align 8
%29 = inttoptr i64 %17 to i64*
store i64 %28, i64* %29, align 8
store i64 %17, i64* %10, align 8
%30 = add i64 %1, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i32 %32, 1
store i32 %33, i32* %31, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %11, { 2, 1, 0 }
uselistorder i16 %4, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | gen_neon_unzip_1655 | gen_neon_unzip | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi7.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = icmp eq i32 %0, 0
%.pre = trunc i64 %arg3 to i32
%2 = icmp eq i32 %.pre, 2
%3 = icmp eq i1 %2, %1
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_14, label LBL_1
LBL_1:
%4 = and i64 %arg2, 4294967295
%5 = and i64 %arg1, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %4)
br i1 %1, label LBL_9, label LBL_2
LBL_2:
br i1 %2, label LBL_7, label LBL_3
LBL_3:
%8 = icmp sgt i32 %.pre, 2
br i1 %8, label LBL_8, label LBL_4
LBL_4:
switch i32 %.pre, label LBL_8 [
i32 0, label LBL_5
i32 1, label LBL_6
]
LBL_5:
%9 = and i64 %7, 4294967295
%10 = and i64 %6, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %9)
store i64 %9, i64* %.pre-phi7.reg2mem
store i64 %10, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_6:
%12 = and i64 %7, 4294967295
%13 = and i64 %6, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 %12)
store i64 %12, i64* %.pre-phi7.reg2mem
store i64 %13, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_7:
%15 = and i64 %7, 4294967295
%16 = and i64 %6, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %15)
store i64 %15, i64* %.pre-phi7.reg2mem
store i64 %16, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_8:
call void @abort()
unreachable
LBL_9:
switch i32 %.pre, label LBL_12 [
i32 0, label LBL_10
i32 1, label LBL_11
]
LBL_10:
%18 = and i64 %7, 4294967295
%19 = and i64 %6, 4294967295
%20 = call i64 @FUNC(i64 %19, i64 %18)
store i64 %18, i64* %.pre-phi7.reg2mem
store i64 %19, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_11:
%21 = and i64 %7, 4294967295
%22 = and i64 %6, 4294967295
%23 = call i64 @FUNC(i64 %22, i64 %21)
store i64 %21, i64* %.pre-phi7.reg2mem
store i64 %22, i64* %.pre-phi.reg2mem
br label LBL_13
LBL_12:
call void @abort()
unreachable
LBL_13:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi7.reload = load i64, i64* %.pre-phi7.reg2mem
%24 = call i64 @FUNC(i64 %.pre-phi.reload)
%25 = call i64 @FUNC(i64 %.pre-phi7.reload)
store i64 0, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 1, 0, 2, 4, 3 }
uselistorder i64 %6, { 1, 0, 2, 4, 3 }
uselistorder i1 %2, { 1, 0 }
uselistorder i1 %1, { 1, 0 }
uselistorder i64* %.pre-phi7.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @tcg_temp_free_i32, { 1, 0 }
uselistorder void ()* @abort, { 1, 0 }
uselistorder i64 (i64)* @tcg_const_i32, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 1, { 9, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_14, { 1, 0 }
} | 0 |
BinRealVul | moxie_cpu_class_init_15325 | moxie_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198718, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = inttoptr i64 %1 to i8*
store i8 1, i8* %17, align 1
ret i64 %0
} | 1 |
BinRealVul | kvm_mmu_remove_some_alloc_mmu_pages_4333 | kvm_mmu_remove_some_alloc_mmu_pages | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %0, i64 %8, i64 %5)
store i64 %9, 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 %0, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | slab_rebalance_finish_18916 | slab_rebalance_finish | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = call i32 @pthread_mutex_lock(i64* nonnull @gv_0)
%1 = load i32, i32* @gv_1, align 4
%2 = sext i32 %1 to i64
%3 = mul i64 %2, 16
%4 = add i64 %3, ptrtoint (i32** @gv_2 to i64)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* @gv_3, align 4
%7 = load i32, i32* %5, align 8
%8 = icmp eq i32 %7, 0
store i32 -1, i32* %.lcssa.reg2mem
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = add i64 %3, add (i64 ptrtoint (i32** @gv_2 to i64), i64 8)
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%11 = load i64, i64* %10, align 8
%12 = mul i64 %.reload, 8
%13 = add i64 %11, %12
%14 = add i64 %13, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %13 to i64*
store i64 %16, i64* %17, align 8
%18 = add i32 %storemerge3.reload, 1
%19 = load i32, i32* %5, align 8
%20 = zext i32 %19 to i64
%21 = sext i32 %18 to i64
%22 = icmp slt i64 %21, %20
store i64 %21, i64* %.reg2mem
store i32 %18, i32* %storemerge3.reg2mem
br i1 %22, label LBL_2, label LBL_3
LBL_3:
%phitmp = add i32 %19, -1
store i32 %phitmp, i32* %.lcssa.reg2mem
br label LBL_4
LBL_4:
%23 = sext i32 %6 to i64
%24 = mul i64 %23, 16
%25 = add i64 %24, ptrtoint (i32** @gv_2 to i64)
%26 = inttoptr i64 %25 to i32*
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
store i32 %.lcssa.reload, i32* %5, align 8
%27 = load i32, i32* @gv_4, align 4
%28 = load i64, i64* @gv_5, align 8
%29 = inttoptr i64 %28 to i64*
%30 = call i64* @memset(i64* %29, i32 0, i32 %27)
%31 = add i64 %24, add (i64 ptrtoint (i32** @gv_2 to i64), i64 8)
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = load i32, i32* %26, align 8
%35 = add i32 %34, 1
store i32 %35, i32* %26, align 8
%36 = sext i32 %34 to i64
%37 = mul i64 %36, 8
%38 = add i64 %37, %33
%39 = load i64, i64* @gv_5, align 8
%40 = inttoptr i64 %38 to i64*
store i64 %39, i64* %40, align 8
%41 = load i32, i32* @gv_3, align 4
%42 = icmp slt i32 %41, 11
br i1 %42, label LBL_6, label LBL_5
LBL_5:
%43 = load i64, i64* @gv_5, align 8
%44 = zext i32 %41 to i64
%45 = call i64 @FUNC(i64 %43, i64 %44)
br label LBL_6
LBL_6:
store i32 0, i32* bitcast (i64* @gv_6 to i32*), align 8
store i32 0, i32* @gv_1, align 4
store i32 0, i32* @gv_3, align 4
store i64 0, i64* @gv_5, align 8
store i64 0, i64* @gv_7, align 8
store i64 0, i64* @gv_8, align 8
store i32 0, i32* bitcast (i64* @gv_9 to i32*), align 8
%46 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
%47 = call i32 @pthread_mutex_lock(i64* nonnull @gv_10)
store i8 0, i8* bitcast (i64* @gv_11 to i8*), align 8
store i32 ptrtoint (i32* @gv_12 to i32), i32* bitcast (i64* @gv_13 to i32*), align 8
%48 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_10)
%49 = load i32, i32* @gv_14, align 4
%50 = zext i32 %49 to i64
%51 = icmp slt i32 %49, 2
store i64 %50, i64* %rax.0.reg2mem
br i1 %51, label LBL_8, label LBL_7
LBL_7:
%52 = load %_IO_FILE*, %_IO_FILE** @gv_15, align 8
%53 = call i32 @fwrite(i64* bitcast ([22 x i8]* @gv_16 to i64*), i32 1, i32 21, %_IO_FILE* %52)
%54 = sext i32 %53 to i64
store i64 %54, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %26, { 1, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i32* %5, { 2, 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3 }
uselistorder i64 add (i64 ptrtoint (i32** @gv_2 to i64), i64 8), { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_2 to i64), { 2, 0, 1 }
uselistorder i32 (i64*)* @pthread_mutex_lock, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | bsdauth_respond_4107 | bsdauth_respond | define i64 @FUNC(i32* %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 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0))
br label LBL_3
LBL_3:
%12 = trunc i64 %arg2 to i32
%13 = icmp eq i32 %12, 1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
%14 = ptrtoint i64* %arg3 to i64
%15 = load i64, i64* %7, align 8
%16 = call i64 @FUNC(i64 %15, i64 %14, i64 0)
%17 = trunc i64 %16 to i32
store i64 0, i64* %7, align 8
%18 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 0, i32 %17)
%19 = icmp eq i32 %17, 0
%20 = icmp eq i1 %19, false
%. = select i1 %20, i64 0, i64 4294967295
store i64 %., 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 %17, { 1, 0 }
} | 0 |
BinRealVul | gain_scale_1181 | gain_scale | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i64
%indvars.iv9.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
store i64 0, i64* %indvars.iv9.reg2mem
store i64 0, i64* %sv_0.06.reg2mem
br label LBL_1
LBL_1:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%indvars.iv9.reload = load i64, i64* %indvars.iv9.reg2mem
%3 = mul i64 %indvars.iv9.reload, 2
%4 = add i64 %3, %2
%5 = inttoptr i64 %4 to i16*
%6 = load i16, i16* %5, align 2
%7 = ashr i16 %6, 2
%8 = sext i16 %7 to i64
%sext = mul i64 %sv_0.06.reload, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = mul i64 %8, 2
%11 = mul nsw i64 %10, %8
%12 = add nsw i64 %11, %9
%13 = call i64 @FUNC(i64 %12)
%indvars.iv.next10 = add nuw nsw i64 %indvars.iv9.reload, 1
%exitcond11 = icmp eq i64 %indvars.iv.next10, 160
store i64 %indvars.iv.next10, i64* %indvars.iv9.reg2mem
store i64 %13, i64* %sv_0.06.reg2mem
br i1 %exitcond11, label LBL_2, label LBL_1
LBL_2:
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %arg3, 0
%16 = icmp eq i32 %14, 0
%or.cond = or i1 %15, %16
store i32 4104, i32* %storemerge3.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%17 = zext i32 %arg3 to i64
%18 = call i64 @FUNC(i64 %17, i64 31)
%19 = trunc i64 %18 to i32
%20 = and i64 %13, 4294967295
%21 = call i64 @FUNC(i64 %20, i64 31)
%22 = trunc i64 %21 to i32
%23 = urem i32 %19, 32
%24 = shl i32 %arg3, %23
%25 = urem i32 %22, 32
%26 = shl i32 %14, %25
%27 = add i32 %19, 5
%28 = sub i32 %27, %22
%29 = icmp sgt i32 %28, 0
%30 = select i1 %29, i32 %28, i32 0
%31 = ashr i32 %24, 2
%32 = ashr i32 %26, 16
%33 = ashr i32 %24, 31
%34 = zext i32 %31 to i64
%35 = zext i32 %33 to i64
%36 = mul i64 %35, 4294967296
%37 = or i64 %36, %34
%38 = zext i32 %32 to i64
%39 = sdiv i64 %37, %38
%40 = mul i64 %39, 65536
%41 = and i64 %40, 4294901760
%42 = urem i32 %30, 32
%43 = icmp eq i32 %42, 0
%44 = trunc i64 %40 to i32
%45 = ashr i32 %44, %42
%46 = zext i32 %45 to i64
%storemerge = select i1 %43, i64 %41, i64 %46
%47 = call i64 @FUNC(i64 %storemerge)
%48 = trunc i64 %47 to i32
%phitmp = add i32 %48, 8
store i32 %phitmp, i32* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%49 = trunc i64 %1 to i32
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%50 = bitcast i64* %rdi to i32*
store i32 %49, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%51 = mul i32 %.reload, 15
%52 = add i32 %51, %storemerge3.reload
%53 = ashr i32 %52, 4
store i32 %53, i32* %arg1, align 4
%54 = mul i64 %indvars.iv.reload, 2
%55 = add i64 %54, %2
%56 = inttoptr i64 %55 to i16*
%57 = load i16, i16* %56, align 2
%58 = ashr i32 %.reload, 4
%59 = add i32 %58, %.reload
%60 = sext i16 %57 to i32
%61 = mul i32 %59, %60
%62 = add i32 %61, 1024
%63 = ashr i32 %62, 11
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %64)
%66 = trunc i64 %65 to i16
store i16 %66, i16* %56, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 160
br i1 %exitcond, label LBL_7, label LBL_5.LBL_5_crit_edge
LBL_6:
%.pre = load i32, i32* %50, align 8
store i32 %.pre, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_7:
ret i64 %65
uselistorder i32 %.reload, { 2, 0, 1 }
uselistorder i32 %42, { 1, 0 }
uselistorder i64 %40, { 1, 0 }
uselistorder i32 %22, { 1, 0 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %13, { 1, 2, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %indvars.iv9.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 2, { 1, 2, 0, 3 }
uselistorder i64 (i64, i64)* @normalize_bits, { 1, 0 }
uselistorder i64 160, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 %arg3, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | parse_cookie_2238 | parse_cookie | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%0 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_3)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_21
LBL_1:
%3 = load i64, i64* %sv_3, align 8
%4 = call i64 @FUNC(i64 %3, i64* nonnull @gv_0, i64 0, i64 1)
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_4:
%12 = load i64, i64* %sv_3, align 8
%13 = call i64 @FUNC(i64 %12, i64* bitcast ([8 x i8]* @gv_1 to i64*), i64 0, i64 0)
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_18, label LBL_5
LBL_5:
%15 = add i64 %13, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_18, label LBL_6
LBL_6:
store i64 0, i64* %sv_2, align 8
%19 = load i64, i64* %16, align 8
%20 = call i64 @FUNC(i64 %19, i64* nonnull %sv_2)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_18, label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64* nonnull %sv_2)
%25 = call i64 @FUNC()
%26 = lshr i64 %25, 63
%27 = icmp slt i64 %24, %26
br i1 %27, label LBL_8, label LBL_9
LBL_8:
%28 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_9:
%29 = ashr i64 %25, 63
%30 = inttoptr i64 %4 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i64*
%33 = call i64 @FUNC(i64 %29, i64* %32, i64 0, i64 0)
%34 = icmp eq i64 %33, 0
br i1 %34, label LBL_18, label LBL_10
LBL_10:
%35 = add i64 %33, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
br i1 %38, label LBL_18, label LBL_11
LBL_11:
store i64 0, i64* %sv_1, align 8
%39 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_1)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_17, label LBL_12
LBL_12:
%43 = load i64, i64* %sv_1, align 8
%44 = call i64 @FUNC(i64 %43, i64* bitcast ([8 x i8]* @gv_1 to i64*), i64 0, i64 0)
%45 = icmp eq i64 %44, 0
br i1 %45, label LBL_17, label LBL_13
LBL_13:
%46 = add i64 %44, 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = icmp eq i64 %48, 0
br i1 %49, label LBL_17, label LBL_14
LBL_14:
store i64 0, i64* %sv_0, align 8
%50 = load i64, i64* %16, align 8
%51 = call i64 @FUNC(i64 %50, i64* nonnull %sv_0)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_17, label LBL_15
LBL_15:
%55 = call i64 @FUNC(i64* nonnull %sv_2)
%56 = call i64 @FUNC(i64* nonnull %sv_0)
%57 = icmp slt i64 %55, %56
br i1 %57, label LBL_16, label LBL_17
LBL_16:
%58 = call i64 @FUNC(i64* nonnull %sv_3)
%59 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_17:
%60 = call i64 @FUNC(i64* nonnull %sv_1)
br label LBL_18
LBL_18:
%61 = call i64 @FUNC(i64* nonnull %sv_3)
%62 = inttoptr i64 %arg2 to i8*
%63 = call i8* @strchr(i8* %62, i32 61)
%64 = icmp eq i8* %63, null
%65 = icmp eq i1 %64, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %65, label LBL_19, label LBL_21
LBL_19:
%66 = ptrtoint i8* %63 to i64
%67 = sub i64 %66, %arg2
%68 = call i64 @FUNC(i64 %arg2, i64 %67)
%69 = icmp eq i64 %68, 0
%70 = icmp eq i1 %69, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %70, label LBL_20, label LBL_21
LBL_20:
%71 = ptrtoint i64* %arg3 to i64
%72 = call i64 @FUNC(i64 %71, i64 %68, i64 %66, i64 2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %63, { 1, 0 }
uselistorder i64 %25, { 1, 0 }
uselistorder i64* %sv_3, { 0, 1, 2, 5, 3, 6, 4, 7 }
uselistorder i64* %sv_1, { 0, 1, 3, 2, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 4, 5, 7, 3 }
uselistorder i64 63, { 1, 0 }
uselistorder i64 (i64*)* @av_timegm, { 2, 1, 0 }
uselistorder i64 (i64, i64*)* @parse_set_cookie_expiry_time, { 1, 0 }
uselistorder i64 (i64*)* @av_dict_free, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64*, i64, i64)* @av_dict_get, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64*)* @parse_set_cookie, { 1, 0 }
uselistorder i64 %arg2, { 2, 1, 3, 0, 4 }
uselistorder label LBL_21, { 3, 0, 1, 4, 5, 6, 2 }
} | 0 |
BinRealVul | qemu_file_skip_1076 | qemu_file_skip | 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 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = trunc i64 %1 to i32
%5 = add i32 %4, %3
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = icmp ugt i32 %5, %8
store i64 %9, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
store i32 %5, i32* %arg1, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | uwsgi_routing_func_rewrite_18121 | uwsgi_routing_func_rewrite | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i16
%sv_2.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%2 = add i64 %0, %1
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, %1
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %6 to i16*
%14 = load i16, i16* %13, align 2
%15 = zext i16 %14 to i64
%16 = inttoptr i64 %2 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %1, i64 %0, i64 %17, i64 %15, i64 %12, i64 %9)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_1, label LBL_12
LBL_1:
%21 = add i64 %18, 8
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = sext i16 %23 to i32
store i32 %24, i32* %sv_3, align 4
%25 = load i16, i16* %22, align 2
%26 = inttoptr i64 %18 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
%29 = zext i16 %25 to i32
%30 = call i64* @memchr(i64* %28, i32 63, i32 %29)
%31 = icmp eq i64* %30, null
br i1 %31, label LBL_4, label LBL_2
LBL_2:
%32 = ptrtoint i64* %30 to i64
%33 = load i64, i64* %26, align 8
%34 = sub i64 %32, %33
%35 = trunc i64 %34 to i32
%sext = mul i32 %35, 65536
%36 = ashr exact i32 %sext, 16
store i32 %36, i32* %sv_3, align 4
%37 = add i64 %32, 1
%38 = load i16, i16* %22, align 2
%39 = trunc i32 %36 to i16
%40 = sub i16 0, %39
%41 = sub i16 %40, 1
%42 = add i16 %38, %41
%43 = add i64 %1, 8
%44 = inttoptr i64 %43 to i16*
%45 = load i16, i16* %44, align 2
%46 = icmp eq i16 %45, 0
store i32 %36, i32* %.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i16 %42, i16* %sv_1.0.reg2mem
store i64 %37, i64* %sv_0.0.reg2mem
br i1 %46, label LBL_5, label LBL_3
LBL_3:
%47 = zext i16 %45 to i64
%48 = call i64 @FUNC(i64 %37, i16 %42, i64* nonnull @gv_0, i64 1, i64 %27, i64 %47)
%49 = inttoptr i64 %48 to i8*
%50 = call i32 @strlen(i8* %49)
%51 = trunc i32 %50 to i16
%.pre = load i32, i32* %sv_3, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %48, i64* %sv_2.0.reg2mem
store i16 %51, i16* %sv_1.0.reg2mem
store i64 %48, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%52 = add i64 %1, 8
%53 = inttoptr i64 %52 to i16*
%54 = load i16, i16* %53, align 2
%55 = icmp eq i16 %54, 0
%spec.select2 = select i1 %55, i64 ptrtoint (i64* @gv_1 to i64), i64 %27
store i32 %24, i32* %.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i16 %54, i16* %sv_1.0.reg2mem
store i64 %spec.select2, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%56 = urem i32 %.reload, 65536
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %57)
%59 = load i64, i64* %26, align 8
%60 = bitcast i32* %sv_3 to i16*
%61 = call i64 @FUNC(i64 %59, i16* nonnull %60, i64 %58)
%62 = load i32, i32* %sv_3, align 4
%63 = urem i32 %62, 65536
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 9, i64 %58, i64 %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label LBL_10, label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i16, i16* %sv_1.0.reg2mem
%67 = add i64 %1, 16
%68 = inttoptr i64 %67 to i64*
store i64 %65, i64* %68, align 8
%69 = load i32, i32* %sv_3, align 4
%70 = trunc i32 %69 to i16
%71 = add i64 %1, 24
%72 = inttoptr i64 %71 to i16*
store i16 %70, i16* %72, align 2
%73 = zext i16 %sv_1.0.reload to i64
%74 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i64 12, i64 %sv_0.0.reload, i64 %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label LBL_10, label LBL_7
LBL_7:
store i64 %74, i64* %arg1, align 8
%76 = add i64 %1, 8
%77 = inttoptr i64 %76 to i16*
store i16 %sv_1.0.reload, i16* %77, align 2
%78 = call i64 @FUNC(i64 %18)
%79 = icmp eq i64 %sv_2.0.reload, 0
br i1 %79, label LBL_9, label LBL_8
LBL_8:
%80 = inttoptr i64 %sv_2.0.reload to i64*
call void @free(i64* %80)
br label LBL_9
LBL_9:
%81 = add i64 %0, 32
%82 = inttoptr i64 %81 to i32*
%83 = load i32, i32* %82, align 4
%84 = icmp ne i32 %83, 0
%. = zext i1 %84 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%85 = call i64 @FUNC(i64 %18)
%86 = icmp eq i64 %sv_2.0.reload, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %86, label LBL_12, label LBL_11
LBL_11:
%87 = inttoptr i64 %sv_2.0.reload to i64*
call void @free(i64* %87)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i16 %sv_1.0.reload, { 1, 0 }
uselistorder i16 %42, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i64 %32, { 1, 0 }
uselistorder i64* %30, { 1, 0 }
uselistorder i64* %26, { 1, 0, 2 }
uselistorder i64 %18, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_3, { 4, 3, 5, 0, 2, 1 }
uselistorder i64 %1, { 3, 4, 5, 6, 7, 8, 2, 9, 0, 1 }
uselistorder i64 %0, { 1, 4, 3, 2, 5, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64)* @uwsgi_buffer_destroy, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64)* @uwsgi_req_append, { 1, 0 }
uselistorder i16 0, { 1, 2, 0 }
uselistorder i32 65536, { 1, 2, 0 }
uselistorder i64 0, { 10, 11, 12, 5, 6, 13, 7, 8, 0, 1, 14, 2, 3, 4, 9 }
uselistorder label LBL_12, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | backend_version_9746 | backend_version | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = bitcast i64* %arg1 to i8*
%2 = inttoptr i64 %0 to i8*
%3 = call i8* @strstr(i8* %1, i8* %2)
%4 = icmp eq i8* %3, null
store i64 10, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0))
%6 = icmp eq i8* %5, null
store i64 13, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_15
LBL_2:
%7 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0))
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
store i64 13, i64* %rax.0.reg2mem
br i1 %9, label LBL_15, label LBL_3
LBL_3:
%10 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0))
%11 = icmp eq i8* %10, null
%12 = icmp eq i1 %11, false
store i64 13, i64* %rax.0.reg2mem
br i1 %12, label LBL_15, label LBL_4
LBL_4:
%13 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0))
%14 = icmp eq i8* %13, null
store i64 13, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_15
LBL_5:
%15 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%16 = icmp eq i8* %15, null
%17 = icmp eq i1 %16, false
store i64 12, i64* %rax.0.reg2mem
br i1 %17, label LBL_15, label LBL_6
LBL_6:
%18 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0))
%19 = icmp eq i8* %18, null
store i64 12, i64* %rax.0.reg2mem
br i1 %19, label LBL_7, label LBL_15
LBL_7:
%20 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_6, i64 0, i64 0))
%21 = icmp eq i8* %20, null
%22 = icmp eq i1 %21, false
store i64 6, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_15
LBL_8:
%23 = ptrtoint i8* %20 to i64
%24 = add i64 %23, 1
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 32
store i64 10, i64* %rax.0.reg2mem
br i1 %27, label LBL_9, label LBL_15
LBL_9:
%28 = load i8, i8* %20, align 1
%29 = icmp sgt i8 %28, 57
br i1 %29, label LBL_14, label LBL_10
LBL_10:
%30 = icmp sgt i8 %28, 54
store i64 9, i64* %rax.0.reg2mem
br i1 %30, label LBL_15, label LBL_11
LBL_11:
%31 = icmp sgt i8 %28, 51
br i1 %31, label LBL_13, label LBL_12
LBL_12:
%32 = icmp sgt i8 %28, 47
store i64 7, i64* %rax.0.reg2mem
br i1 %32, label LBL_15, label LBL_14
LBL_13:
%33 = sext i8 %28 to i32
%.off = add nsw i32 %33, -52
%switch = icmp ult i32 %.off, 3
store i64 8, i64* %rax.0.reg2mem
br i1 %switch, label LBL_15, label LBL_14
LBL_14:
store i64 6, 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 %28, { 3, 0, 1, 2, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 13, 2, 3, 1, 4, 5, 7, 6, 10, 9, 8, 11, 12 }
uselistorder i64 6, { 1, 0 }
uselistorder i64 12, { 1, 0 }
uselistorder i64 13, { 2, 1, 0, 3 }
uselistorder i8* (i8*, i8*)* @strstr, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_15, { 12, 1, 2, 0, 3, 4, 6, 5, 9, 8, 7, 10, 11 }
} | 0 |
BinRealVul | SSL_set_ssl_method_9998 | SSL_set_ssl_method | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i64*
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = bitcast i64* %arg1 to i32*
%3 = icmp eq i32* %2, %arg2
store i64* inttoptr (i32 1 to i64*), i64** %sv_0.1.reg2mem
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
store i32 -1, i32* %sv_1.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %4, 24
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %7, %11
%13 = zext i1 %12 to i32
store i32 %13, i32* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%14 = trunc i64 %4 to i32
%15 = trunc i64 %1 to i32
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%16 = icmp eq i32 %14, %15
%17 = icmp eq i1 %16, false
%18 = ptrtoint i32* %arg2 to i64
store i64 %18, i64* %arg1, align 8
%19 = and i64 %4, 4294967295
%20 = inttoptr i64 %19 to i64*
%sv_0.0 = select i1 %17, i64* %20, i64* inttoptr (i32 1 to i64*)
%21 = icmp eq i32 %sv_1.0.reload, 1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = add i64 %18, 24
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
store i64 %25, i64* %6, align 8
store i64* %sv_0.0, i64** %sv_0.1.reg2mem
br label LBL_7
LBL_5:
%26 = icmp eq i32 %sv_1.0.reload, 0
%27 = icmp eq i1 %26, false
store i64* %sv_0.0, i64** %sv_0.1.reg2mem
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = add i64 %18, 32
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
store i64 %30, i64* %6, align 8
store i64* %sv_0.0, i64** %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i64*, i64** %sv_0.1.reg2mem
%31 = ptrtoint i64* %sv_0.1.reload to i64
%32 = and i64 %31, 4294967295
ret i64 %32
uselistorder i64* %sv_0.0, { 1, 2, 0 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64* %6, { 1, 0, 2 }
uselistorder i64 %4, { 2, 0, 1, 3 }
uselistorder i64** %sv_0.1.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* inttoptr (i32 1 to i64*), { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 0 |
BinRealVul | setup_connection_internals_8728 | setup_connection_internals | define i64 @FUNC(i64* %arg1) 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 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = trunc i64 %0 to i32
%10 = icmp eq i32 %9, 0
%or.cond = or i1 %10, %8
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%11 = and i64 %0, 4294967295
store i64 %11, i64* %storemerge.reg2mem
br label LBL_4
LBL_2:
%12 = add i64 %0, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %storemerge.reg2mem
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%sv_0.0 = inttoptr i64 %4 to i32*
%17 = load i32, i32* %sv_0.0, align 4
store i32 %17, i32* %13, align 4
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 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | qdisc_warn_nonwc_10519 | qdisc_warn_nonwc | define i64 @FUNC(i8* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %3 to i32
%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.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = ptrtoint i32* %arg2 to i64
%10 = add i64 %9, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = udiv i32 %12, 65536
%14 = zext i32 %13 to i64
%15 = add i64 %9, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = ptrtoint i8* %arg1 to i64
%21 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i64 %20, i64 %19, i64 %14, i64 %2, i64 %1)
%22 = or i32 %4, 1
store i32 %22, i32* %arg2, align 4
store i64 %9, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
} | 0 |
BinRealVul | pcie_host_mmcfg_init_1789 | pcie_host_mmcfg_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = add i64 %arg2, 4294967295
%3 = and i64 %2, %arg2
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = trunc i64 %arg2 to i32
%7 = icmp ult i32 %6, 4096
br i1 %7, label LBL_3, label LBL_4
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 23, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_4:
%8 = icmp ult i32 %6, 1048577
br i1 %8, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%9 = ptrtoint i64* %arg1 to i64
%10 = bitcast i64* %arg1 to i32*
store i32 %6, i32* %10, align 4
%11 = add i64 %9, 4
%12 = and i64 %1, 4294967295
%13 = call i64 @FUNC(i64 %11, i64 %12)
ret i64 %13
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 0 |
BinRealVul | show_format_2493 | show_format | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %0, 48
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 -1, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%6 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%7 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 %0)
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 %11)
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i64 %17)
%19 = load i64, i64* %14, align 8
%20 = add i64 %19, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i64 %22)
br label LBL_5
LBL_4:
%25 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0))
br label LBL_5
LBL_5:
%26 = add i64 %0, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_6, i64 0, i64 0), i64 %28, i64* nonnull @gv_7)
%30 = add i64 %0, 32
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_8, i64 0, i64 0), i64 %32, i64* nonnull @gv_7)
%34 = icmp slt i64 %storemerge.reload, 0
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = load i64, i64* bitcast ([2 x i8*]* @gv_9 to i64*), align 8
%36 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_10, i64 0, i64 0), i64 %storemerge.reload, i64 %35)
br label LBL_8
LBL_7:
%37 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0))
br label LBL_8
LBL_8:
%38 = add i64 %0, 40
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp slt i64 %40, 1
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = load [4 x i8]*, [4 x i8]** @gv_12, align 8
%43 = ptrtoint [4 x i8]* %42 to i64
%44 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_13, i64 0, i64 0), i64 %40, i64 %43)
br label LBL_11
LBL_10:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0))
br label LBL_11
LBL_11:
%46 = add i64 %0, 56
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %48)
%50 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%51 = load %_IO_FILE*, %_IO_FILE** @gv_14, align 8
%52 = call i32 @fflush(%_IO_FILE* %51)
%53 = sext i32 %52 to i64
ret i64 %53
uselistorder i64 %0, { 0, 1, 3, 2, 5, 4, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i8*, i64, i64)* @print_val, { 1, 0 }
uselistorder i64 (i8*, i64, i64*)* @print_time, { 1, 0 }
uselistorder i64 (i8*, i8*)* @print_str_opt, { 2, 1, 0 }
uselistorder i64 (i8*, i64)* @print_str, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | register_subpage_16183 | register_subpage | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%.reg2mem2 = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%1 = urem i64 %0, 4096
%2 = call i64 @FUNC(i64 0)
store i64 %1, i64* %sv_1, align 8
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
%10 = icmp eq i64 %5, ptrtoint (i64* @gv_0 to i64)
%or.cond = or i1 %10, %9
store i64 %7, i64* %.reg2mem
store i64 %5, i64* %.reg2mem2
store i64 0, i64* %rdi.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_2, i64 0, i64 0), i32 68, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i64, i64* %4, align 8
%.phi.trans.insert = inttoptr i64 %.pre to i64*
%.pre1 = load i64, i64* %.phi.trans.insert, align 8
store i64 %.pre1, i64* %.reg2mem
store i64 %.pre, i64* %.reg2mem2
store i64 ptrtoint ([60 x i8]* @gv_1 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%11 = icmp eq i64 %.reload, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %1)
%14 = call i64 @FUNC(i64* nonnull %sv_1)
%15 = call i64 @FUNC(i64 0, i64 1, i64 %14)
store i64 %13, i64* %sv_0.0.reg2mem
store i64 0, i64* %rdi.1.reg2mem
br label LBL_5
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload3 = load i64, i64* %.reg2mem2
%16 = add i64 %.reload3, -8
store i64 %16, i64* %sv_0.0.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br label LBL_5
LBL_5:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = and i64 %rdi.1.reload, -4096
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %17, %20
%22 = call i64 @FUNC(i64* %arg1)
%23 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %17, i64 %21, i64 %22)
ret i64 %23
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @phys_section_add, { 1, 0 }
uselistorder [60 x i8]* @gv_1, { 1, 0 }
} | 1 |
BinRealVul | avcodec_align_dimensions_3171 | avcodec_align_dimensions | define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
store i64 %5, i64* @0, align 8
store i32 1, i32* %sv_1.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 32, i32* %sv_1.2.reg2mem
store i32 32, i32* %sv_1.2.reg2mem
store i32 8, i32* %sv_0.2.reg2mem
store i32 8, i32* %sv_0.2.reg2mem
switch i32 %4, label LBL_7 [
i32 0, label LBL_2
i32 1, label LBL_2
i32 2, label LBL_2
i32 3, label LBL_2
i32 4, label LBL_2
i32 5, label LBL_2
i32 6, label LBL_2
i32 7, label LBL_2
i32 8, label LBL_2
i32 9, label LBL_2
i32 10, label LBL_2
i32 11, label LBL_2
i32 12, label LBL_8
i32 13, label LBL_8
i32 14, label LBL_3
i32 15, label LBL_0.LBL_4_crit_edge
i32 16, label LBL_5
i32 17, label LBL_5
i32 18, label LBL_5
i32 19, label LBL_6
]
LBL_1:
%.pre = ptrtoint i32* %arg1 to i64
%.pre11 = add i64 %.pre, 4
%.pre13 = inttoptr i64 %.pre11 to i32*
%.pre15 = load i32, i32* %.pre13, align 4
store i32 %.pre15, i32* %.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br label LBL_4
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
%spec.store.select = select i1 %11, i32 16, i32 32
store i32 16, i32* %sv_1.2.reg2mem
store i32 %spec.store.select, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_3:
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 1
%17 = icmp eq i1 %16, false
%spec.select = select i1 %17, i32 1, i32 64
store i32 %15, i32* %.reg2mem
store i32 %spec.select, i32* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%18 = icmp eq i32 %.reload, 2
%19 = icmp eq i1 %18, false
%spec.select4 = select i1 %19, i32 %sv_1.0.reload, i32 4
store i32 %spec.select4, i32* %sv_1.1.reg2mem
br label LBL_5
LBL_5:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%20 = ptrtoint i32* %arg1 to i64
%21 = add i64 %20, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 3
%25 = icmp eq i1 %24, false
%spec.select6 = select i1 %25, i32 %sv_1.1.reload, i32 4
store i32 %spec.select6, i32* %sv_1.2.reg2mem
store i32 %spec.select6, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_6:
%26 = ptrtoint i32* %arg1 to i64
%27 = add i64 %26, 4
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp ne i32 %29, 4
%31 = icmp eq i32 %29, 5
%32 = icmp eq i1 %31, false
%or.cond = icmp eq i1 %30, %32
%spec.select9 = select i1 %or.cond, i32 1, i32 4
store i32 %spec.select9, i32* %sv_1.2.reg2mem
store i32 %spec.select9, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_7:
store i32 1, i32* %sv_1.2.reg2mem
store i32 1, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_8:
%33 = trunc i64 %2 to i32
%34 = trunc i64 %3 to i32
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%35 = add i32 %33, -1
%36 = add i32 %35, %sv_1.2.reload
%37 = sub i32 0, %sv_1.2.reload
%38 = and i32 %36, %37
store i32 %38, i32* %arg2, align 4
%39 = add i32 %34, -1
%40 = add i32 %39, %sv_0.2.reload
%41 = sub i32 0, %sv_0.2.reload
%42 = and i32 %40, %41
%43 = bitcast i64* %arg3 to i32*
store i32 %42, i32* %43, align 4
%44 = ptrtoint i32* %arg1 to i64
%45 = add i64 %44, 4
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = zext i32 %47 to i64
%49 = icmp eq i32 %47, 6
%50 = icmp eq i1 %49, false
store i64 %48, i64* %rax.0.reg2mem
br i1 %50, label LBL_10, label LBL_9
LBL_9:
%51 = ptrtoint i64* %arg3 to i64
%52 = add i32 %34, 2
store i32 %52, i32* %43, align 4
store i64 %51, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 6, 1, 2, 5, 3, 4 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 6, 1, 2, 5, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i1 false, { 5, 0, 1, 2, 3, 4 }
uselistorder i64 4, { 5, 1, 2, 3, 4, 0 }
uselistorder i32 4, { 0, 3, 1, 2, 4 }
uselistorder i32 2, { 1, 0, 2 }
uselistorder i32 8, { 2, 0, 1 }
uselistorder i32 32, { 2, 0, 1 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i32* %arg1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_8, { 5, 0, 1, 4, 3, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | sgi_timer_get_6038 | sgi_timer_get | 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 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
store i64 0, i64* %arg2, align 8
%8 = add i64 %2, 24
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
store i64 %2, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = load i128, i128* @gv_0, align 8
%17 = trunc i128 %16 to i64
%18 = mul i64 %15, %17
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %arg2, align 8
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i64*
store i64 %15, i64* %21, align 8
%22 = add i64 %12, 16
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC()
%26 = sub i64 %24, %25
%27 = load i128, i128* @gv_0, align 8
%28 = trunc i128 %27 to i64
%29 = mul i64 %26, %28
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %2, 16
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = add i64 %2, 24
%34 = inttoptr i64 %33 to i64*
store i64 %26, i64* %34, align 8
store i64 %30, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %2, { 3, 4, 6, 0, 1, 2, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @ns_to_timespec, { 1, 0 }
uselistorder i128* @gv_0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0, 2 }
} | 0 |
BinRealVul | rm_read_multi_11168 | rm_read_multi | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi14.reg2mem = alloca i64*
%storemerge5.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%rdx = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i32*, align 8
%sv_1 = alloca i32*, align 8
store i32* %arg3, i32** %sv_1, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
store i32 0, i32* %storemerge3.reg2mem
br label LBL_1
LBL_1:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%3 = icmp slt i32 %storemerge3.reload, %2
%4 = call i64 @FUNC(i64 %0)
%5 = add nuw i32 %storemerge3.reload, 1
store i32 %5, i32* %storemerge3.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = trunc i64 %4 to i32
%8 = icmp eq i32 %7, 1
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i32 %7)
%10 = icmp sgt i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_12
LBL_4:
%11 = ptrtoint i64* %arg4 to i64
%12 = bitcast i64* %rdx to i32*
%13 = bitcast i32** %sv_0 to i64*
store i32 0, i32* %storemerge5.reg2mem
br label LBL_5
LBL_5:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%14 = icmp eq i32 %storemerge5.reload, 0
br i1 %14, label LBL_8, label LBL_6
LBL_6:
%15 = call i64 @FUNC(i64 %6, i64 0)
%16 = inttoptr i64 %15 to i32*
store i32* %16, i32** %sv_0, align 8
%17 = icmp eq i64 %15, 0
%18 = icmp eq i1 %17, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %18, label LBL_7, label LBL_12
LBL_7:
%19 = load i32, i32* %12, align 8
%20 = mul i32 %storemerge5.reload, 65536
%21 = add i32 %19, %20
store i32 %21, i32* %16, align 4
%22 = load i32*, i32** %sv_1, align 8
%23 = ptrtoint i32* %22 to i64
%24 = add i64 %23, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = load i32*, i32** %sv_0, align 8
%28 = ptrtoint i32* %27 to i64
%29 = add i64 %28, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %26 to i32*
%33 = load i32, i32* %32, align 4
%34 = inttoptr i64 %31 to i32*
store i32 %33, i32* %34, align 4
%35 = load i32*, i32** %sv_1, align 8
%36 = ptrtoint i32* %35 to i64
%37 = add i64 %36, 16
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = load i32*, i32** %sv_0, align 8
%41 = ptrtoint i32* %40 to i64
%42 = add i64 %41, 16
%43 = inttoptr i64 %42 to i32*
store i32 %39, i32* %43, align 4
%44 = load i32*, i32** %sv_1, align 8
%45 = ptrtoint i32* %44 to i64
%46 = add i64 %45, 20
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = load i32*, i32** %sv_0, align 8
%50 = ptrtoint i32* %49 to i64
%51 = add i64 %50, 20
%52 = inttoptr i64 %51 to i32*
store i32 %48, i32* %52, align 4
%53 = load i32*, i32** %sv_0, align 8
%54 = ptrtoint i32* %53 to i64
%55 = add i64 %54, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = add i64 %57, 4
%59 = inttoptr i64 %58 to i32*
store i32 1, i32* %59, align 4
%60 = call i64 @FUNC()
%61 = load i32*, i32** %sv_0, align 8
%62 = ptrtoint i32* %61 to i64
%63 = add i64 %62, 24
%64 = inttoptr i64 %63 to i64*
store i64 %60, i64* %64, align 8
%65 = load i32*, i32** %sv_0, align 8
%66 = ptrtoint i32* %65 to i64
%67 = add i64 %66, 24
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = icmp eq i64 %69, 0
%71 = icmp eq i1 %70, false
store i64* %68, i64** %.pre-phi14.reg2mem
store i64 %66, i64* %.pre-phi.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %71, label LBL_9, label LBL_12
LBL_8:
%72 = load i32*, i32** %sv_1, align 8
%73 = ptrtoint i32* %72 to i64
store i64 %73, i64* %13, align 8
%.pre11 = add i64 %73, 24
%.pre13 = inttoptr i64 %.pre11 to i64*
store i64* %.pre13, i64** %.pre-phi14.reg2mem
store i64 %73, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi14.reload = load i64*, i64** %.pre-phi14.reg2mem
%74 = call i64 @FUNC(i64 %0)
%75 = load i64, i64* %.pre-phi14.reload, align 8
%76 = and i64 %74, 4294967295
%77 = call i64 @FUNC(i64 %6, i64 %0, i64 %.pre-phi.reload, i64 %75, i64 %76, i64 %11)
%78 = trunc i64 %77 to i32
%79 = icmp slt i32 %78, 0
%80 = icmp eq i1 %79, false
br i1 %80, label LBL_11, label LBL_10
LBL_10:
%81 = and i64 %77, 4294967295
store i64 %81, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%82 = add nuw nsw i32 %storemerge5.reload, 1
%83 = icmp slt i32 %82, %7
store i32 %82, i32* %storemerge5.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %83, label LBL_5, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %73, { 0, 2, 1 }
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %storemerge5.reload, { 0, 2, 1 }
uselistorder i32 %7, { 1, 0, 2, 3 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i32** %sv_1, { 0, 4, 3, 2, 1 }
uselistorder i32** %sv_0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi14.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 2, 1, 4 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 (i64)* @avio_rb16, { 1, 0 }
uselistorder label LBL_12, { 2, 4, 1, 0, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
reposvul_c_test | IsWPG_52 | IsWPG | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = bitcast i32* %arg1 to i64*
%2 = call i32 @memcmp(i64* %1, i64* nonnull @gv_0, i32 4)
%3 = icmp eq i32 %2, 0
%. = zext i1 %3 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | chnl_box_size_12831 | chnl_box_size | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = add i32 %2, 1
store i32 %3, i32* %arg1, align 4
%4 = urem i32 %2, 2
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_6, label LBL_1
LBL_1:
store i32 %3, i32* %arg1, align 4
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_6, label LBL_3
LBL_3:
%16 = add i64 %6, 12
%17 = add i32 %2, 3
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
store i32 %3, i32* %arg1, align 4
%18 = mul i64 %indvars.iv.reload, 4
%19 = add i64 %16, %18
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 126
%23 = icmp eq i1 %22, false
%spec.store.select = select i1 %23, i32 %3, i32 %17
store i32 %spec.store.select, i32* %arg1, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%24 = load i32, i32* %13, align 4
%25 = zext i32 %24 to i64
%26 = icmp ult i64 %indvars.iv.next, %25
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %26, label LBL_4, label LBL_6
LBL_5:
%27 = add i32 %2, 8
store i32 %27, i32* %arg1, align 4
br label LBL_6
LBL_6:
%28 = and i32 %2, 2
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_8, label LBL_7
LBL_7:
store i32 %3, i32* %arg1, align 4
br label LBL_8
LBL_8:
ret i64 0
uselistorder i32* %13, { 1, 0 }
uselistorder i32 %3, { 2, 0, 1, 3, 4 }
uselistorder i32 %2, { 1, 2, 3, 0, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* %arg1, { 5, 2, 0, 1, 3, 4, 6 }
uselistorder label LBL_6, { 2, 0, 1, 3 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | urn_dump_10015 | urn_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%2 = icmp eq i64* %arg1, null
%.pre1 = inttoptr i64 %arg2 to %_IO_FILE*
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %.pre1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %arg1)
br label LBL_2
LBL_2:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = inttoptr i64 %6 to i8*
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %.pre1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i8* %8)
br label LBL_4
LBL_4:
%10 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %.pre1)
%11 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %arg2)
ret i64 0
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 3, 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ResetLZWInfo_8001 | ResetLZWInfo | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i32 %3, 1
%5 = sext i32 %4 to i64
store i64 %5, i64* %arg1, align 8
%6 = urem i64 %0, 64
%7 = shl i64 1, %6
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %12, 3
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = add i64 %0, 36
%17 = inttoptr i64 %16 to i32*
store i32 1, i32* %17, align 4
ret i64 %0
uselistorder i64 %0, { 4, 5, 3, 2, 1, 0, 6 }
} | 0 |
BinRealVul | kvm_arch_release_virq_post_411 | kvm_arch_release_virq_post | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i32*
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %0 to i32
store i32* bitcast (i32** @gv_0 to i32*), i32** %storemerge4.reg2mem
br label LBL_4
LBL_1:
%2 = add i64 %20, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
store i64 %4, i64* %19, align 8
br label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %17)
br label LBL_6
LBL_3:
%6 = ptrtoint i32* %storemerge4.reload to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = icmp eq i64 %9, 0
store i32* %10, i32** %storemerge4.reg2mem
br i1 %11, label LBL_6, label LBL_4
LBL_4:
%storemerge4.reload = load i32*, i32** %storemerge4.reg2mem
%12 = load i32, i32* %storemerge4.reload, align 4
%13 = icmp eq i32 %12, %1
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_5
LBL_5:
%15 = and i64 %0, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = ptrtoint i32* %storemerge4.reload to i64
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_2, label LBL_1
LBL_6:
ret i64 0
uselistorder i64 %20, { 1, 0 }
uselistorder i64* %19, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i32* %storemerge4.reload, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | get_seg_limit_5873 | get_seg_limit | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = trunc i64 %2 to i16
%4 = icmp slt i16 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_6
LBL_1:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 -1, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_6
LBL_3:
%13 = icmp eq i16 %3, 0
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_6
LBL_4:
%15 = trunc i64 %2 to i32
%16 = mul i32 %15, 65536
%17 = ashr exact i32 %16, 16
%18 = zext i32 %17 to i64
%19 = bitcast i32* %sv_0 to i64*
%20 = call i64 @FUNC(i64* nonnull %19, i64 %18)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_5, label LBL_6
LBL_5:
%24 = call i64 @FUNC(i64* nonnull %19)
%25 = load i32, i32* %sv_0, align 4
%26 = icmp eq i32 %25, 0
%27 = mul i64 %24, 4096
%28 = or i64 %27, 4095
%sv_1.0 = select i1 %26, i64 %24, i64 %28
store i64 %sv_1.0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %24, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64 -1, { 1, 0 }
uselistorder label LBL_6, { 0, 1, 2, 4, 3, 5 }
} | 0 |
BinRealVul | free_slab_10052 | free_slab | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 4198688)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | get_write_list_size_6491 | get_write_list_size | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem9 = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = zext i32 %arg3 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = add i32 %arg3, 4
%4 = trunc i64 %arg2 to i32
%5 = icmp ugt i32 %3, %4
store i32 %3, i32* %.reg2mem
store i64 %2, i64* %.reg2mem9
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_2
LBL_1:
%6 = add i32 %.reload, %14
%7 = zext i32 %6 to i64
%8 = call i64 @FUNC(i64 %0, i64 %7)
%9 = add i32 %6, 4
%10 = icmp ugt i32 %9, %4
store i32 %9, i32* %.reg2mem
store i64 %8, i64* %.reg2mem9
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_5, label LBL_2
LBL_2:
%.reload10 = load i64, i64* %.reg2mem9
%.reload = load i32, i32* %.reg2mem
%11 = icmp eq i64 %.reload10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = zext i32 %.reload to i64
%13 = call i64 @FUNC(i64 %0, i64 %12)
%14 = trunc i64 %13 to i32
%15 = sub i32 %4, %.reload
%16 = icmp ult i32 %15, %14
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_1
LBL_4:
%17 = sub i32 %.reload, %arg3
%18 = zext i32 %17 to i64
store i64 %18, 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 %14, { 1, 0 }
uselistorder i32 %.reload, { 3, 0, 1, 2 }
uselistorder i32 %4, { 1, 2, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem9, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64, i64)* @tvb_get_ntohl, { 1, 0 }
uselistorder i32 %arg3, { 2, 0, 1 }
uselistorder label LBL_5, { 3, 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | finish_object_6182 | finish_object | define i64 @FUNC(i32* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %6)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %11)
unreachable
LBL_3:
%13 = ptrtoint i64* %arg3 to i64
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_7, label LBL_4
LBL_4:
%16 = ptrtoint i32* %arg1 to i64
%17 = add i64 %16, 24
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = icmp eq i32 %19, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = icmp eq i32 %2, 2
store i64 2, i64* %rax.0.reg2mem
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = add i64 %16, 4
%25 = call i64 @FUNC(i64 %24)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | ast_read_packet_15079 | ast_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_1, label LBL_6
LBL_1:
%7 = call i64 @FUNC(i64 %3)
%8 = call i64 @FUNC(i64 %3)
%9 = call i64 @FUNC(i64 %3)
%10 = trunc i64 %9 to i32
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = udiv i32 2147483647, %19
%21 = icmp ult i32 %20, %10
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br i1 %21, label LBL_6, label LBL_2
LBL_2:
%22 = call i64 @FUNC(i64 %3, i64 24)
%23 = trunc i64 %22 to i32
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %rax.0.shrunk.reg2mem
br i1 %25, label LBL_3, label LBL_6
LBL_3:
%26 = trunc i64 %8 to i32
%27 = mul i32 %19, %10
%28 = icmp eq i32 %26, 1112294219
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_5, label LBL_4
LBL_4:
%30 = ptrtoint i64* %arg2 to i64
%31 = call i64 @FUNC(i64 %3, i64 %30, i32 %27)
%32 = bitcast i64* %arg2 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %30, 8
%34 = inttoptr i64 %33 to i64*
store i64 %7, i64* %34, align 8
store i64 %31, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_5:
%35 = and i64 %8, 4294967295
%36 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %35, i64 %2, i64 %1)
%37 = zext i32 %27 to i64
%38 = call i64 @FUNC(i64 %3, i64 %37)
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %27, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0, 3, 4, 7, 6, 5, 8 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 0, { 8, 6, 7, 0, 1, 2, 3, 4, 5, 9 }
uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | bm_clear_6732 | bm_clear | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge3.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = icmp eq i32* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp eq i32 %7, 0
br i1 %9, label LBL_7, label LBL_3
LBL_3:
%10 = and i64 %1, 4294967295
store i32 0, i32* %storemerge3.reg2mem
br label LBL_4.preheader
LBL_4:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%11 = sext i32 %storemerge2.reload to i64
%12 = icmp sgt i64 %10, %11
%13 = add i32 %storemerge2.reload, 1
store i32 %13, i32* %storemerge2.reg2mem
br i1 %12, label LBL_4, label LBL_5
LBL_5:
%14 = add i32 %storemerge3.reload, 1
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %15, %8
store i32 %14, i32* %storemerge3.reg2mem
br i1 %16, label LBL_4.preheader, label LBL_7
LBL_6:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_4
LBL_7:
ret i64 %8
uselistorder i32 %storemerge2.reload, { 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_4.preheader, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | prep_compound_gigantic_page_4118 | prep_compound_gigantic_page | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.01.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = urem i32 %1, 32
%3 = shl i32 1, %2
%4 = call i64 @FUNC(i64 %0, i64 %arg2)
%5 = call i64 @FUNC(i64 %0)
%6 = icmp sgt i32 %3, 1
store i64 1, i64* %sv_0.0.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = add i64 %0, 8
store i32 1, i32* %sv_0.02.reg2mem
store i64 %7, i64* %sv_1.01.reg2mem
br label LBL_2
LBL_2:
%sv_1.01.reload = load i64, i64* %sv_1.01.reg2mem
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%8 = call i64 @FUNC(i64 %sv_1.01.reload)
%9 = call i64 @FUNC(i64 %sv_1.01.reload, i64 0)
%10 = inttoptr i64 %sv_1.01.reload to i64*
store i64 %0, i64* %10, align 8
%11 = add nuw nsw i32 %sv_0.02.reload, 1
%12 = call i64 @FUNC(i64 %sv_1.01.reload, i64 %0, i32 %11)
%exitcond = icmp eq i32 %11, %3
store i32 %11, i32* %sv_0.02.reg2mem
store i64 %12, i64* %sv_1.01.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%phitmp = zext i32 %3 to i64
store i64 %phitmp, i64* %sv_0.0.lcssa.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i64 %sv_1.01.reload, { 0, 3, 2, 1 }
uselistorder i64 %0, { 0, 1, 2, 4, 3 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | jbd2_journal_extend_10243 | jbd2_journal_extend | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967291, i64* %sv_0.2.reg2mem
br i1 %9, label LBL_10, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = trunc i64 %1 to i32
%12 = add i64 %5, 4
%13 = call i64 @FUNC(i64 %12)
%14 = icmp eq i32 %11, 1
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = and i64 %10, 4294967295
%16 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %15)
store i64 1, i64* %sv_0.1.reg2mem
br label LBL_9
LBL_3:
%17 = inttoptr i64 %5 to i32*
%18 = add i64 %2, 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %2, 4
%21 = call i64 @FUNC(i64 %20)
%22 = add i64 %21, %10
%23 = load i32, i32* %17, align 4
%24 = zext i32 %23 to i64
%sext3 = mul i64 %22, 4294967296
%25 = ashr exact i64 %sext3, 32
%26 = icmp sgt i64 %25, %24
br i1 %26, label LBL_4, label LBL_5
LBL_4:
%27 = and i64 %10, 4294967295
%28 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %27)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%29 = call i64 @FUNC(i64 %5)
%30 = icmp slt i64 %29, %25
br i1 %30, label LBL_6, label LBL_7
LBL_6:
%31 = and i64 %10, 4294967295
%32 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_2, i64 0, i64 0), i64 %2, i64 %31)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%33 = trunc i64 %10 to i32
%34 = inttoptr i64 %18 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i32 %35, %33
store i32 %36, i32* %34, align 4
%37 = and i64 %10, 4294967295
%38 = call i64 @FUNC(i64 %37, i64 %20)
%39 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %2, i64 %37)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%40 = call i64 @FUNC(i64 %18)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%41 = call i64 @FUNC(i64 %12)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_10
LBL_10:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%42 = and i64 %sv_0.2.reload, 4294967295
ret i64 %42
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64 %10, { 2, 5, 3, 4, 0, 1 }
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64 %2, { 1, 2, 3, 5, 4, 0, 6, 7 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64, i8*, i64, i64)* @jbd_debug, { 3, 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | add_range_7501 | add_range | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rsi.6.reg2mem = alloca i64
%.pre-phi21.reg2mem = alloca i32*
%.reg2mem29 = alloca i32
%sv_0.0.in.reg2mem = alloca i64
%.reg2mem27 = alloca i32
%.pre-phi.reg2mem = alloca i64
%.pre-phi19.reg2mem = alloca i64
%rsi.5.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i32
%rsi.4.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_2.4.reg2mem = alloca i32
%sv_3.4.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_3.2.reg2mem = alloca i32
%sv_4.2.reg2mem = alloca i32
%rsi.3.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.1.reg2mem = alloca i32
%rsi.2.reg2mem = alloca i64
%.reg2mem25 = alloca i32
%rsi.1.reg2mem = alloca i64
%.reg2mem = alloca i32
%rsi.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_5 = alloca i64, align 8
%0 = trunc i64 %arg3 to i32
%1 = trunc i64 %arg4 to i32
%sext9 = mul i64 %arg6, 4294967296
%2 = ashr exact i64 %sext9, 32
store i64 %2, i64* %sv_5, align 8
%3 = icmp ugt i32 %0, %1
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = add i64 %arg2, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %6)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_46
LBL_2:
%sext = mul i64 %arg7, 4294967296
%8 = ashr exact i64 %sext, 32
%sext6 = mul i64 %arg3, 4294967296
%9 = ashr exact i64 %sext6, 32
%sext7 = mul i64 %arg4, 4294967296
%10 = ashr exact i64 %sext7, 32
%sext8 = mul i64 %arg5, 4294967296
%11 = ashr exact i64 %sext8, 32
%12 = add i64 %arg2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
store i32 -1, i32* %sv_1.2.reg2mem
store i64 %arg2, i64* %rsi.5.reg2mem
br i1 %15, label LBL_35, label LBL_3
LBL_3:
%16 = add i64 %arg2, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = trunc i64 %2 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = ptrtoint i64* %sv_5 to i64
%22 = trunc i64 %9 to i32
%23 = trunc i64 %10 to i32
%24 = add i32 %23, 1
%25 = add i32 %22, -1
%26 = add nsw i64 %10, 1
%27 = and i64 %8, 4294967295
%28 = add i64 %21, -16
%29 = inttoptr i64 %28 to i64*
%30 = and i64 %26, 4294967295
store i32 %18, i32* %sv_4.0.reg2mem
store i32 -1, i32* %sv_3.0.reg2mem
store i32 -1, i32* %sv_2.0.reg2mem
store i64 %arg2, i64* %rsi.0.reg2mem
br label LBL_6
LBL_5:
%31 = trunc i64 %10 to i32
store i32 %18, i32* %sv_4.2.reg2mem
store i32 -1, i32* %sv_3.2.reg2mem
store i32 -1, i32* %sv_2.2.reg2mem
br label LBL_19
LBL_6:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%32 = sext i32 %sv_4.0.reload to i64
%33 = mul nsw i64 %32, 28
%34 = add i64 %33, %arg2
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp ult i32 %36, %22
%38 = icmp ugt i32 %36, %23
%or.cond22 = or i1 %37, %38
br i1 %or.cond22, label LBL_9, label LBL_7
LBL_7:
%39 = add i64 %34, 8
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = sub i32 %24, %36
%43 = add i32 %42, %41
store i32 %43, i32* %40, align 4
store i32 %24, i32* %35, align 4
%44 = add i64 %34, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp ugt i32 %24, %46
store i32 %24, i32* %.reg2mem25
store i64 %rsi.0.reload, i64* %rsi.2.reg2mem
br i1 %47, label LBL_8, label LBL_15
LBL_8:
%48 = zext i32 %sv_4.0.reload to i64
%49 = call i64 @FUNC(i64 %arg2, i64 %48)
%50 = trunc i64 %49 to i32
store i32 %50, i32* %sv_4.1.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i32 -1, i32* %sv_1.0.reg2mem
store i64 %48, i64* %rsi.3.reg2mem
br label LBL_18
LBL_9:
%51 = add i64 %34, 4
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp ult i32 %53, %22
%55 = icmp ugt i32 %53, %23
%or.cond = or i1 %54, %55
store i32 %36, i32* %.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br i1 %or.cond, label LBL_12, label LBL_10
LBL_10:
store i32 %25, i32* %52, align 4
%56 = load i32, i32* %35, align 4
%57 = icmp ugt i32 %56, %25
store i32 %56, i32* %.reg2mem25
store i64 %rsi.0.reload, i64* %rsi.2.reg2mem
br i1 %57, label LBL_11, label LBL_15
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i32 77, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i32, i32* %35, align 4
store i32 %.pre, i32* %.reg2mem
store i64 ptrtoint ([43 x i8]* @gv_2 to i64), i64* %rsi.1.reg2mem
br label LBL_12
LBL_12:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%58 = icmp ult i32 %.reload, %22
store i32 %.reload, i32* %.reg2mem25
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %58, label LBL_13, label LBL_15
LBL_13:
%59 = load i32, i32* %52, align 4
%60 = icmp ugt i32 %59, %23
%61 = icmp eq i1 %60, false
store i32 %.reload, i32* %.reg2mem25
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %61, label LBL_15, label LBL_14
LBL_14:
store i32 %25, i32* %52, align 4
%62 = add i64 %34, 8
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = load i32, i32* %35, align 4
%66 = add i32 %64, %24
%67 = sub i32 %66, %65
%68 = zext i32 %67 to i64
store i64 %27, i64* %29, align 8
%69 = zext i32 %59 to i64
%70 = sext i32 %59 to i64
%71 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %30, i64 %69, i64 %68, i64 0, i64 %70)
%.pre14 = load i32, i32* %35, align 4
store i32 %.pre14, i32* %.reg2mem25
store i64 %arg2, i64* %rsi.2.reg2mem
br label LBL_15
LBL_15:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%72 = icmp ugt i32 %.reload26, %23
%73 = icmp eq i1 %72, false
br i1 %73, label LBL_17, label LBL_16
LBL_16:
%74 = add i64 %34, 16
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
store i32 %76, i32* %sv_4.1.reg2mem
store i32 %sv_4.0.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i32 %sv_4.0.reload, i32* %sv_1.0.reg2mem
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
br label LBL_18
LBL_17:
%77 = add i64 %34, 20
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
store i32 %79, i32* %sv_4.1.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i32 %sv_4.0.reload, i32* %sv_2.1.reg2mem
store i32 %sv_4.0.reload, i32* %sv_1.0.reg2mem
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
br label LBL_18
LBL_18:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem
%80 = icmp eq i32 %sv_4.1.reload, -1
%81 = icmp eq i1 %80, false
store i32 %sv_4.1.reload, i32* %sv_4.0.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem
store i64 %rsi.3.reload, i64* %rsi.0.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.4.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.4.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i64 %rsi.3.reload, i64* %rsi.4.reg2mem
br i1 %81, label LBL_6, label LBL_20
LBL_19:
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%sv_3.2.reload = load i32, i32* %sv_3.2.reg2mem
%sv_4.2.reload = load i32, i32* %sv_4.2.reg2mem
%82 = sext i32 %sv_4.2.reload to i64
%83 = mul nsw i64 %82, 28
%84 = add i64 %83, %arg2
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = icmp ugt i32 %86, %31
%88 = icmp eq i1 %87, false
%sv_4.3.in.in.v = select i1 %88, i64 20, i64 16
%sv_4.3.in.in = add i64 %sv_4.3.in.in.v, %84
%sv_3.3 = select i1 %88, i32 %sv_3.2.reload, i32 %sv_4.2.reload
%sv_2.3 = select i1 %88, i32 %sv_4.2.reload, i32 %sv_2.2.reload
%sv_4.3.in = inttoptr i64 %sv_4.3.in.in to i32*
%sv_4.3 = load i32, i32* %sv_4.3.in, align 4
%89 = icmp eq i32 %sv_4.3, -1
%90 = icmp eq i1 %89, false
store i32 %sv_4.3, i32* %sv_4.2.reg2mem
store i32 %sv_3.3, i32* %sv_3.2.reg2mem
store i32 %sv_2.3, i32* %sv_2.2.reg2mem
store i32 %sv_3.3, i32* %sv_3.4.reg2mem
store i32 %sv_2.3, i32* %sv_2.4.reg2mem
store i32 %sv_4.2.reload, i32* %sv_1.1.reg2mem
store i64 %arg2, i64* %rsi.4.reg2mem
br i1 %90, label LBL_19, label LBL_20
LBL_20:
%rsi.4.reload = load i64, i64* %rsi.4.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%91 = trunc i64 %8 to i32
%92 = icmp eq i32 %91, 0
%93 = icmp eq i1 %92, false
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.reg2mem
br i1 %93, label LBL_35, label LBL_21
LBL_21:
%sv_2.4.reload = load i32, i32* %sv_2.4.reg2mem
%sv_3.4.reload = load i32, i32* %sv_3.4.reg2mem
%94 = icmp eq i32 %sv_2.4.reload, -1
br i1 %94, label LBL_30, label LBL_22
LBL_22:
%95 = zext i32 %sv_2.4.reload to i64
%96 = mul nuw nsw i64 %95, 28
%97 = add i64 %96, %arg2
%98 = add i64 %97, 24
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = icmp eq i32 %100, 0
%102 = icmp eq i1 %101, false
br i1 %102, label LBL_30, label LBL_23
LBL_23:
%103 = add i64 %97, 4
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = trunc i64 %9 to i32
%107 = add i32 %106, -1
%108 = icmp eq i32 %105, %107
%109 = icmp eq i1 %108, false
br i1 %109, label LBL_30, label LBL_24
LBL_24:
%110 = add i64 %97, 8
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
%113 = inttoptr i64 %97 to i32*
%114 = load i32, i32* %113, align 4
%115 = sub i32 %112, %114
%116 = trunc i64 %11 to i32
%117 = sub i32 %116, %106
%118 = icmp eq i32 %115, %117
%119 = icmp eq i1 %118, false
br i1 %119, label LBL_30, label LBL_25
LBL_25:
%120 = trunc i64 %10 to i32
store i32 %120, i32* %104, align 4
%121 = icmp eq i32 %sv_3.4.reload, -1
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %rsi.4.reload, i64* %rsi.6.reg2mem
br i1 %121, label LBL_45, label LBL_26
LBL_26:
%122 = zext i32 %sv_3.4.reload to i64
%123 = mul nuw nsw i64 %122, 28
%124 = add i64 %123, %arg2
%125 = add i64 %124, 24
%126 = inttoptr i64 %125 to i32*
%127 = load i32, i32* %126, align 4
%128 = icmp eq i32 %127, 0
%129 = icmp eq i1 %128, false
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %rsi.4.reload, i64* %rsi.6.reg2mem
br i1 %129, label LBL_45, label LBL_27
LBL_27:
%130 = inttoptr i64 %124 to i32*
%131 = load i32, i32* %130, align 4
%132 = add i32 %120, 1
%133 = icmp eq i32 %131, %132
%134 = icmp eq i1 %133, false
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %rsi.4.reload, i64* %rsi.6.reg2mem
br i1 %134, label LBL_45, label LBL_28
LBL_28:
%135 = add i64 %124, 8
%136 = inttoptr i64 %135 to i32*
%137 = load i32, i32* %136, align 4
%138 = sub i32 %137, %131
%139 = icmp eq i32 %138, %117
%140 = icmp eq i1 %139, false
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %rsi.4.reload, i64* %rsi.6.reg2mem
br i1 %140, label LBL_45, label LBL_29
LBL_29:
%141 = add i64 %124, 4
%142 = inttoptr i64 %141 to i32*
%143 = load i32, i32* %142, align 4
store i32 %143, i32* %104, align 4
%144 = call i64 @FUNC(i64 %arg2, i64 %122)
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %122, i64* %rsi.6.reg2mem
br label LBL_45
LBL_30:
%145 = icmp eq i32 %sv_3.4.reload, -1
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.reg2mem
br i1 %145, label LBL_35, label LBL_31
LBL_31:
%146 = zext i32 %sv_3.4.reload to i64
%147 = mul nuw nsw i64 %146, 28
%148 = add i64 %147, %arg2
%149 = add i64 %148, 24
%150 = inttoptr i64 %149 to i32*
%151 = load i32, i32* %150, align 4
%152 = icmp eq i32 %151, 0
%153 = icmp eq i1 %152, false
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.reg2mem
br i1 %153, label LBL_35, label LBL_32
LBL_32:
%154 = inttoptr i64 %148 to i32*
%155 = load i32, i32* %154, align 4
%156 = trunc i64 %10 to i32
%157 = add i32 %156, 1
%158 = icmp eq i32 %155, %157
%159 = icmp eq i1 %158, false
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.reg2mem
br i1 %159, label LBL_35, label LBL_33
LBL_33:
%160 = add i64 %148, 8
%161 = inttoptr i64 %160 to i32*
%162 = load i32, i32* %161, align 4
%163 = sub i32 %162, %155
%164 = trunc i64 %11 to i32
%165 = trunc i64 %9 to i32
%166 = sub i32 %164, %165
%167 = icmp eq i32 %163, %166
%168 = icmp eq i1 %167, false
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i64 %rsi.4.reload, i64* %rsi.5.reg2mem
br i1 %168, label LBL_35, label LBL_34
LBL_34:
store i32 %165, i32* %154, align 4
store i32 %164, i32* %161, align 4
store i32* %17, i32** %.pre-phi21.reg2mem
store i64 %rsi.4.reload, i64* %rsi.6.reg2mem
br label LBL_45
LBL_35:
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%169 = load i32, i32* %13, align 4
%170 = add i64 %arg2, 12
%171 = inttoptr i64 %170 to i32*
%172 = load i32, i32* %171, align 4
%173 = icmp eq i32 %169, %172
%174 = icmp eq i1 %173, false
store i64 %170, i64* %.pre-phi19.reg2mem
store i64 %12, i64* %.pre-phi.reg2mem
store i32 %169, i32* %.reg2mem27
store i64 %arg2, i64* %sv_0.0.in.reg2mem
br i1 %174, label LBL_37, label LBL_36
LBL_36:
%rsi.5.reload = load i64, i64* %rsi.5.reg2mem
%175 = icmp eq i32 %172, 0
%176 = mul i32 %172, 2
%spec.select = select i1 %175, i32 256, i32 %176
%177 = call i64 @FUNC(i64 %arg1, i64 %rsi.5.reload, i32 %spec.select, i64 28)
%178 = inttoptr i64 %arg2 to i64*
store i64 %177, i64* %178, align 8
store i32 %spec.select, i32* %171, align 4
%.pre15 = load i32, i32* %13, align 4
%.pre17 = add i64 %rsi.5.reload, 8
%.pre18 = add i64 %rsi.5.reload, 12
store i64 %.pre18, i64* %.pre-phi19.reg2mem
store i64 %.pre17, i64* %.pre-phi.reg2mem
store i32 %.pre15, i32* %.reg2mem27
store i64 %rsi.5.reload, i64* %sv_0.0.in.reg2mem
br label LBL_37
LBL_37:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%.reload28 = load i32, i32* %.reg2mem27
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi19.reload = load i64, i64* %.pre-phi19.reg2mem
%179 = zext i32 %.reload28 to i64
%180 = mul nuw nsw i64 %179, 28
%181 = add i64 %180, %sv_0.0.in.reload
%182 = trunc i64 %9 to i32
%183 = inttoptr i64 %181 to i32*
store i32 %182, i32* %183, align 4
%184 = load i32, i32* %13, align 4
%185 = zext i32 %184 to i64
%186 = mul nuw nsw i64 %185, 28
%187 = trunc i64 %10 to i32
%188 = add i64 %sv_0.0.in.reload, 4
%189 = add i64 %188, %186
%190 = inttoptr i64 %189 to i32*
store i32 %187, i32* %190, align 4
%191 = load i32, i32* %13, align 4
%192 = zext i32 %191 to i64
%193 = mul nuw nsw i64 %192, 28
%194 = trunc i64 %11 to i32
%195 = add i64 %193, %.pre-phi.reload
%196 = inttoptr i64 %195 to i32*
store i32 %194, i32* %196, align 4
%197 = load i32, i32* %13, align 4
%198 = zext i32 %197 to i64
%199 = mul nuw nsw i64 %198, 28
%200 = add i64 %199, %.pre-phi19.reload
%201 = inttoptr i64 %200 to i32*
store i32 %sv_1.2.reload, i32* %201, align 4
%202 = load i32, i32* %13, align 4
%203 = zext i32 %202 to i64
%204 = mul nuw nsw i64 %203, 28
%205 = add i64 %sv_0.0.in.reload, 16
%206 = add i64 %205, %204
%207 = inttoptr i64 %206 to i32*
store i32 -1, i32* %207, align 4
%208 = load i32, i32* %13, align 4
%209 = zext i32 %208 to i64
%210 = mul nuw nsw i64 %209, 28
%211 = add i64 %sv_0.0.in.reload, 20
%212 = add i64 %211, %210
%213 = inttoptr i64 %212 to i32*
store i32 -1, i32* %213, align 4
%214 = load i32, i32* %13, align 4
%215 = zext i32 %214 to i64
%216 = mul nuw nsw i64 %215, 28
%217 = trunc i64 %8 to i32
%218 = add i64 %sv_0.0.in.reload, 24
%219 = add i64 %218, %216
%220 = inttoptr i64 %219 to i32*
store i32 %217, i32* %220, align 4
%221 = load i32, i32* %13, align 4
%222 = add i32 %221, 1
store i32 %222, i32* %13, align 4
%223 = icmp eq i32 %sv_1.2.reload, -1
%224 = icmp eq i1 %223, false
br i1 %224, label LBL_39, label LBL_38
LBL_38:
%225 = add i64 %arg2, 16
%226 = inttoptr i64 %225 to i32*
store i32 0, i32* %226, align 4
br label LBL_44
LBL_39:
%227 = sext i32 %sv_1.2.reload to i64
%228 = mul nsw i64 %227, 28
%229 = add i64 %sv_0.0.in.reload, %228
%230 = inttoptr i64 %229 to i32*
%231 = load i32, i32* %230, align 4
%232 = icmp ugt i32 %231, %187
%233 = icmp eq i1 %232, false
br i1 %233, label LBL_41, label LBL_40
LBL_40:
%234 = add i64 %229, 16
%235 = inttoptr i64 %234 to i32*
store i32 %221, i32* %235, align 4
br label LBL_44
LBL_41:
%236 = add i64 %229, 4
%237 = inttoptr i64 %236 to i32*
%238 = load i32, i32* %237, align 4
%239 = icmp ult i32 %238, %182
store i32 %222, i32* %.reg2mem29
br i1 %239, label LBL_43, label LBL_42
LBL_42:
call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), i32 129, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%.pre16 = load i32, i32* %13, align 4
store i32 %.pre16, i32* %.reg2mem29
br label LBL_43
LBL_43:
%.reload30 = load i32, i32* %.reg2mem29
%240 = add i32 %.reload30, -1
%241 = add i64 %229, 20
%242 = inttoptr i64 %241 to i32*
store i32 %240, i32* %242, align 4
br label LBL_44
LBL_44:
%243 = load i32, i32* %13, align 4
%244 = add i32 %243, -1
%245 = zext i32 %244 to i64
%246 = call i64 @FUNC(i64 %sv_0.0.in.reload, i64 %245)
%247 = load i32, i32* %13, align 4
%248 = add i32 %247, -1
%249 = add i64 %arg2, 16
%250 = inttoptr i64 %249 to i32*
store i32 %248, i32* %250, align 4
store i32* %250, i32** %.pre-phi21.reg2mem
store i64 %245, i64* %rsi.6.reg2mem
br label LBL_45
LBL_45:
%rsi.6.reload = load i64, i64* %rsi.6.reg2mem
%.pre-phi21.reload = load i32*, i32** %.pre-phi21.reg2mem
%251 = load i32, i32* %.pre-phi21.reload, align 4
%252 = zext i32 %251 to i64
%253 = call i64 @FUNC(i64 %rsi.6.reload, i64 %252, i64 0)
%254 = load i32, i32* %.pre-phi21.reload, align 4
%255 = zext i32 %254 to i64
%256 = call i64 @FUNC(i64 %255, i64 %255, i64 0, i64* nonnull @gv_5)
store i64 %256, i64* %storemerge.reg2mem
br label LBL_46
LBL_46:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %255, { 1, 0 }
uselistorder i64 %229, { 0, 2, 1, 3 }
uselistorder i64 %sv_0.0.in.reload, { 0, 6, 4, 3, 2, 1, 5 }
uselistorder i64 %rsi.5.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_1.2.reload, { 1, 2, 0 }
uselistorder i64 %rsi.4.reload, { 0, 5, 6, 7, 8, 1, 2, 3, 4, 9 }
uselistorder i1 %88, { 1, 2, 0 }
uselistorder i32 %sv_4.2.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_4.1.reload, { 1, 0 }
uselistorder i64 %rsi.2.reload, { 1, 0 }
uselistorder i32 %.reload, { 1, 0, 2 }
uselistorder i64 %rsi.1.reload, { 1, 0 }
uselistorder i32* %52, { 1, 0, 2, 3 }
uselistorder i32* %35, { 0, 4, 1, 3, 2, 5 }
uselistorder i64 %34, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i32 %sv_4.0.reload, { 1, 2, 0, 3, 5, 4 }
uselistorder i32 %sv_3.0.reload, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 1, 0 }
uselistorder i64 %rsi.0.reload, { 1, 2, 0 }
uselistorder i32 %24, { 2, 0, 4, 3, 1 }
uselistorder i32 %23, { 1, 3, 2, 0, 4 }
uselistorder i32 %22, { 0, 1, 3, 2 }
uselistorder i32* %13, { 2, 3, 0, 5, 4, 6, 7, 8, 9, 10, 11, 1, 12, 13 }
uselistorder i64 %11, { 2, 1, 0 }
uselistorder i64 %10, { 5, 3, 2, 4, 1, 0 }
uselistorder i64 %9, { 3, 2, 1, 0 }
uselistorder i64 %8, { 2, 1, 0 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i32* %sv_4.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem25, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %rsi.2.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i32* %sv_4.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rsi.3.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_4.2.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.2.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.2.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.4.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.4.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.4.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 2, 3, 4, 5, 6, 1 }
uselistorder i64* %rsi.5.reg2mem, { 0, 2, 3, 4, 5, 6, 1 }
uselistorder i64* %.pre-phi19.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem27, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi21.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7 }
uselistorder i64* %rsi.6.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0), { 1, 0 }
uselistorder [43 x i8]* @gv_2, { 1, 0 }
uselistorder i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_2, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i64, i64)* @delete_node, { 1, 0 }
uselistorder i64 4, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 28, { 1, 2, 3, 4, 5, 6, 7, 8, 13, 9, 10, 11, 0, 12 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 16, { 2, 3, 4, 0, 1, 5, 6 }
uselistorder i32 -1, { 9, 10, 8, 11, 17, 18, 12, 13, 14, 15, 6, 16, 3, 1, 2, 4, 5, 7, 0 }
uselistorder i64 32, { 1, 2, 3, 4, 0 }
uselistorder i64 4294967296, { 1, 2, 3, 4, 0 }
uselistorder i64 %arg2, { 15, 14, 13, 0, 16, 5, 12, 6, 7, 2, 8, 3, 11, 10, 9, 4, 18, 1, 17, 19 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_45, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder label LBL_43, { 1, 0 }
uselistorder label LBL_35, { 1, 2, 3, 4, 5, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_15, { 3, 4, 0, 1, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | ecc_reset_2521 | ecc_reset | 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 = or i32 %3, 4
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
store i32 32, i32* %7, align 4
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i32*
store i32 130023424, i32* %13, align 4
%14 = add i64 %2, 20
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %2, 28
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %2, 32
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
ret i64 %2
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
} | 0 |
BinRealVul | ne2000_dma_update_8829 | ne2000_dma_update | 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 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = trunc i64 %1 to i32
%5 = add i32 %4, %3
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, %4
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
store i32 %14, i32* %6, align 4
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%15 = add i64 %2, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = ashr exact i64 %sext, 32
%20 = icmp slt i64 %19, %18
br i1 %20, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %16, align 4
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = or i32 %23, 1
store i32 %24, i32* %22, align 4
%25 = call i64 @FUNC(i64 %2)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%26 = sub i32 %17, %3
store i32 %26, i32* %16, align 4
store i64 %2, 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 %4, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 0, 2, 3, 4, 1, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | opt_default_3663 | opt_default | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%3 = call i64 @FUNC()
store i64 %3, i64* %sv_7, align 8
%4 = call i64 @FUNC()
store i64 %4, i64* %sv_6, align 8
%5 = inttoptr i64 %arg1 to i8*
%6 = call i8* @strchr(i8* %5, i32 58)
%7 = ptrtoint i8* %6 to i64
%8 = icmp eq i8* %6, null
%9 = icmp eq i1 %8, false
store i64 %7, i64* %sv_2.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i32 @strlen(i8* %5)
%11 = sext i32 %10 to i64
%12 = add i64 %11, %arg1
store i64 %12, i64* %sv_2.0.reg2mem
br label LBL_2
LBL_2:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%13 = sub i64 %sv_2.0.reload, %arg1
%14 = add i64 %13, 1
%15 = icmp ult i64 %14, 128
%16 = select i1 %15, i64 %14, i64 128
%17 = call i64 @FUNC(i64* nonnull %sv_5, i64 %arg1, i64 %16)
%18 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %sv_5, i64 0, i64 0, i64 3)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %18, i64* %sv_1.0.reg2mem
br i1 %20, label LBL_6, label LBL_3
LBL_3:
%21 = trunc i64 %2 to i8
switch i8 %21, label LBL_4 [
i8 118, label LBL_5
i8 97, label LBL_5
]
LBL_4:
%22 = icmp eq i8 %21, 115
%23 = icmp eq i1 %22, false
store i64 %18, i64* %sv_1.1.reg2mem
br i1 %23, label LBL_7, label LBL_5
LBL_5:
%24 = add i64 %arg1, 1
%25 = inttoptr i64 %24 to i64*
%26 = call i64 @FUNC(i64* nonnull %sv_7, i64* %25, i64 0, i64 0, i64 2)
%27 = icmp eq i64 %26, 0
store i64 %26, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_1.1.reg2mem
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%28 = call i64 @FUNC(i64 %sv_1.0.reload)
%29 = and i64 %28, 4294967295
%30 = call i64 @FUNC(i64* nonnull @gv_0, i64 %arg1, i64 %arg2, i64 %29)
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br label LBL_7
LBL_7:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%31 = inttoptr i64 %arg1 to i64*
%32 = call i64 @FUNC(i64* nonnull %sv_6, i64* %31, i64 0, i64 0, i64 3)
%33 = icmp eq i64 %32, 0
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = call i64 @FUNC(i64 %32)
%35 = and i64 %34, 4294967295
%36 = call i64 @FUNC(i64* nonnull @gv_1, i64 %arg1, i64 %arg2, i64 %35)
br label LBL_9
LBL_9:
%37 = call i64 @FUNC()
store i64 %37, i64* %sv_4, align 8
%38 = call i64 @FUNC(i64* nonnull %sv_4, i64* %31, i64 0, i64 0, i64 3)
%39 = icmp eq i64 %38, 0
br i1 %39, label LBL_12, label LBL_10
LBL_10:
%40 = load i64, i64* @gv_2, align 8
%41 = call i64 @FUNC(i64 %40, i64 %arg1, i64 %arg2, i64 0)
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 3, i64 %1)
%46 = and i64 %41, 4294967295
store i64 %46, i64* %rax.0.reg2mem
br label LBL_18
LBL_12:
%47 = call i64 @FUNC()
store i64 %47, i64* %sv_3, align 8
%48 = or i64 %32, %sv_1.1.reload
%49 = or i64 %48, %38
%50 = icmp eq i64 %49, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %50, label LBL_13, label LBL_16
LBL_13:
%51 = call i64 @FUNC(i64* nonnull %sv_3, i64* %31, i64 0, i64 0, i64 3)
%52 = icmp eq i64 %51, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %52, label LBL_16, label LBL_14
LBL_14:
%53 = load i64, i64* @gv_4, align 8
%54 = call i64 @FUNC(i64 %53, i64 %arg1, i64 %arg2, i64 0)
%55 = trunc i64 %54 to i32
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
store i64 %51, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_16, label LBL_15
LBL_15:
%58 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 3, i64 %1)
%59 = and i64 %54, 4294967295
store i64 %59, i64* %rax.0.reg2mem
br label LBL_18
LBL_16:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%60 = or i64 %sv_0.0.reload, %49
%61 = icmp eq i64 %60, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_17, label LBL_18
LBL_17:
%62 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0), i64 %arg1, i64 3, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @av_opt_set, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64)* @av_dict_set, { 1, 0 }
uselistorder i64 (i64)* @FLAGS, { 1, 0 }
uselistorder i64 (i64*, i64*, i64, i64, i64)* @av_opt_find, { 4, 3, 2, 1, 0 }
uselistorder i64 3, { 0, 2, 3, 1, 4, 5, 6 }
uselistorder i32 1, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 14, 1, 0 }
uselistorder i64 %arg2, { 2, 1, 0, 3 }
uselistorder i64 %arg1, { 7, 5, 6, 3, 4, 2, 8, 9, 1, 11, 10, 0, 12 }
uselistorder label LBL_18, { 1, 0, 2, 3 }
uselistorder label LBL_16, { 1, 2, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | _php_mb_regex_get_option_string_12569 | _php_mb_regex_get_option_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.14.reg2mem = alloca i64
%sv_1.6.reg2mem = alloca i64
%sv_2.14.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i64
%sv_2.13.reg2mem = alloca i64
%sv_3.0.ph.reg2mem = alloca i8
%sv_0.12.reg2mem = alloca i64
%sv_1.5.reg2mem = alloca i64
%sv_2.12.reg2mem = alloca i64
%sv_0.11.reg2mem = alloca i64
%sv_2.11.reg2mem = alloca i64
%sv_0.10.reg2mem = alloca i64
%sv_1.4.reg2mem = alloca i64
%sv_2.10.reg2mem = alloca i64
%sv_0.9.reg2mem = alloca i64
%sv_2.9.reg2mem = alloca i64
%sv_0.8.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_2.8.reg2mem = alloca i64
%sv_0.7.reg2mem = alloca i64
%sv_2.7.reg2mem = alloca i64
%sv_0.6.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_2.6.reg2mem = alloca i64
%sv_0.5.reg2mem = alloca i64
%sv_2.5.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i64
%sv_2.4.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_2.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = urem i32 %arg3, 2
%2 = icmp eq i32 %1, 0
store i64 %arg2, i64* %sv_2.1.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i64 %0, i64* %sv_0.1.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = icmp eq i64 %arg2, 0
store i64 0, i64* %sv_2.1.reg2mem
store i64 1, i64* %sv_1.0.reg2mem
store i64 %0, i64* %sv_0.1.reg2mem
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = add i64 %arg2, -1
%5 = add i64 %0, 1
%6 = bitcast i64* %arg1 to i8*
store i8 105, i8* %6, align 1
store i64 %4, i64* %sv_2.1.reg2mem
store i64 1, i64* %sv_1.0.reg2mem
store i64 %5, i64* %sv_0.1.reg2mem
br label LBL_3
LBL_3:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%7 = and i32 %arg3, 2
%8 = icmp eq i32 %7, 0
store i64 %sv_2.1.reload, i64* %sv_2.3.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.3.reg2mem
br i1 %8, label LBL_7, label LBL_4
LBL_4:
%9 = icmp eq i64 %sv_2.1.reload, 0
store i64 0, i64* %sv_2.2.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br i1 %9, label LBL_6, label LBL_5
LBL_5:
%10 = add i64 %sv_2.1.reload, -1
%11 = add i64 %sv_0.1.reload, 1
%12 = inttoptr i64 %sv_0.1.reload to i8*
store i8 120, i8* %12, align 1
store i64 %10, i64* %sv_2.2.reg2mem
store i64 %11, i64* %sv_0.2.reg2mem
br label LBL_6
LBL_6:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%13 = add nuw nsw i64 %sv_1.0.reload, 1
store i64 %sv_2.2.reload, i64* %sv_2.3.reg2mem
store i64 %13, i64* %sv_1.1.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br label LBL_7
LBL_7:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.3.reload = load i64, i64* %sv_2.3.reg2mem
%14 = and i32 %arg3, 12
%15 = icmp eq i32 %14, 12
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_11, label LBL_8
LBL_8:
%17 = icmp eq i64 %sv_2.3.reload, 0
store i64 0, i64* %sv_2.4.reg2mem
store i64 %sv_0.3.reload, i64* %sv_0.4.reg2mem
br i1 %17, label LBL_10, label LBL_9
LBL_9:
%18 = add i64 %sv_2.3.reload, -1
%19 = add i64 %sv_0.3.reload, 1
%20 = inttoptr i64 %sv_0.3.reload to i8*
store i8 112, i8* %20, align 1
store i64 %18, i64* %sv_2.4.reg2mem
store i64 %19, i64* %sv_0.4.reg2mem
br label LBL_10
LBL_10:
%sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem
%sv_2.4.reload = load i64, i64* %sv_2.4.reg2mem
%21 = add nsw i64 %sv_1.1.reload, 1
store i64 %sv_2.4.reload, i64* %sv_2.8.reg2mem
store i64 %21, i64* %sv_1.3.reg2mem
store i64 %sv_0.4.reload, i64* %sv_0.8.reg2mem
br label LBL_19
LBL_11:
%22 = and i32 %arg3, 4
%23 = icmp eq i32 %22, 0
store i64 %sv_2.3.reload, i64* %sv_2.6.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
store i64 %sv_0.3.reload, i64* %sv_0.6.reg2mem
br i1 %23, label LBL_15, label LBL_12
LBL_12:
%24 = icmp eq i64 %sv_2.3.reload, 0
store i64 0, i64* %sv_2.5.reg2mem
store i64 %sv_0.3.reload, i64* %sv_0.5.reg2mem
br i1 %24, label LBL_14, label LBL_13
LBL_13:
%25 = add i64 %sv_2.3.reload, -1
%26 = add i64 %sv_0.3.reload, 1
%27 = inttoptr i64 %sv_0.3.reload to i8*
store i8 109, i8* %27, align 1
store i64 %25, i64* %sv_2.5.reg2mem
store i64 %26, i64* %sv_0.5.reg2mem
br label LBL_14
LBL_14:
%sv_0.5.reload = load i64, i64* %sv_0.5.reg2mem
%sv_2.5.reload = load i64, i64* %sv_2.5.reg2mem
%28 = add nsw i64 %sv_1.1.reload, 1
store i64 %sv_2.5.reload, i64* %sv_2.6.reg2mem
store i64 %28, i64* %sv_1.2.reg2mem
store i64 %sv_0.5.reload, i64* %sv_0.6.reg2mem
br label LBL_15
LBL_15:
%sv_0.6.reload = load i64, i64* %sv_0.6.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_2.6.reload = load i64, i64* %sv_2.6.reg2mem
%29 = and i32 %arg3, 8
%30 = icmp eq i32 %29, 0
store i64 %sv_2.6.reload, i64* %sv_2.8.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.3.reg2mem
store i64 %sv_0.6.reload, i64* %sv_0.8.reg2mem
br i1 %30, label LBL_19, label LBL_16
LBL_16:
%31 = icmp eq i64 %sv_2.6.reload, 0
store i64 0, i64* %sv_2.7.reg2mem
store i64 %sv_0.6.reload, i64* %sv_0.7.reg2mem
br i1 %31, label LBL_18, label LBL_17
LBL_17:
%32 = add i64 %sv_2.6.reload, -1
%33 = add i64 %sv_0.6.reload, 1
%34 = inttoptr i64 %sv_0.6.reload to i8*
store i8 115, i8* %34, align 1
store i64 %32, i64* %sv_2.7.reg2mem
store i64 %33, i64* %sv_0.7.reg2mem
br label LBL_18
LBL_18:
%sv_0.7.reload = load i64, i64* %sv_0.7.reg2mem
%sv_2.7.reload = load i64, i64* %sv_2.7.reg2mem
%35 = add nsw i64 %sv_1.2.reload, 1
store i64 %sv_2.7.reload, i64* %sv_2.8.reg2mem
store i64 %35, i64* %sv_1.3.reg2mem
store i64 %sv_0.7.reload, i64* %sv_0.8.reg2mem
br label LBL_19
LBL_19:
%sv_0.8.reload = load i64, i64* %sv_0.8.reg2mem
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%sv_2.8.reload = load i64, i64* %sv_2.8.reg2mem
%36 = and i32 %arg3, 16
%37 = icmp eq i32 %36, 0
store i64 %sv_2.8.reload, i64* %sv_2.10.reg2mem
store i64 %sv_1.3.reload, i64* %sv_1.4.reg2mem
store i64 %sv_0.8.reload, i64* %sv_0.10.reg2mem
br i1 %37, label LBL_23, label LBL_20
LBL_20:
%38 = icmp eq i64 %sv_2.8.reload, 0
store i64 0, i64* %sv_2.9.reg2mem
store i64 %sv_0.8.reload, i64* %sv_0.9.reg2mem
br i1 %38, label LBL_22, label LBL_21
LBL_21:
%39 = add i64 %sv_2.8.reload, -1
%40 = add i64 %sv_0.8.reload, 1
%41 = inttoptr i64 %sv_0.8.reload to i8*
store i8 108, i8* %41, align 1
store i64 %39, i64* %sv_2.9.reg2mem
store i64 %40, i64* %sv_0.9.reg2mem
br label LBL_22
LBL_22:
%sv_0.9.reload = load i64, i64* %sv_0.9.reg2mem
%sv_2.9.reload = load i64, i64* %sv_2.9.reg2mem
%42 = add i64 %sv_1.3.reload, 1
store i64 %sv_2.9.reload, i64* %sv_2.10.reg2mem
store i64 %42, i64* %sv_1.4.reg2mem
store i64 %sv_0.9.reload, i64* %sv_0.10.reg2mem
br label LBL_23
LBL_23:
%sv_0.10.reload = load i64, i64* %sv_0.10.reg2mem
%sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem
%sv_2.10.reload = load i64, i64* %sv_2.10.reg2mem
%43 = and i32 %arg3, 32
%44 = icmp eq i32 %43, 0
store i64 %sv_2.10.reload, i64* %sv_2.12.reg2mem
store i64 %sv_1.4.reload, i64* %sv_1.5.reg2mem
store i64 %sv_0.10.reload, i64* %sv_0.12.reg2mem
br i1 %44, label LBL_27, label LBL_24
LBL_24:
%45 = icmp eq i64 %sv_2.10.reload, 0
store i64 0, i64* %sv_2.11.reg2mem
store i64 %sv_0.10.reload, i64* %sv_0.11.reg2mem
br i1 %45, label LBL_26, label LBL_25
LBL_25:
%46 = add i64 %sv_2.10.reload, -1
%47 = add i64 %sv_0.10.reload, 1
%48 = inttoptr i64 %sv_0.10.reload to i8*
store i8 110, i8* %48, align 1
store i64 %46, i64* %sv_2.11.reg2mem
store i64 %47, i64* %sv_0.11.reg2mem
br label LBL_26
LBL_26:
%sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem
%sv_2.11.reload = load i64, i64* %sv_2.11.reg2mem
%49 = add i64 %sv_1.4.reload, 1
store i64 %sv_2.11.reload, i64* %sv_2.12.reg2mem
store i64 %49, i64* %sv_1.5.reg2mem
store i64 %sv_0.11.reload, i64* %sv_0.12.reg2mem
br label LBL_27
LBL_27:
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%sv_1.5.reload = load i64, i64* %sv_1.5.reg2mem
%sv_2.12.reload = load i64, i64* %sv_2.12.reg2mem
%50 = icmp eq i32* %arg4, null
%51 = icmp eq i1 %50, false
store i8 106, i8* %sv_3.0.ph.reg2mem
br i1 %51, label LBL_28, label LBL_35
LBL_28:
%52 = icmp eq i32* %arg4, inttoptr (i64 1 to i32*)
%53 = icmp eq i1 %52, false
store i8 117, i8* %sv_3.0.ph.reg2mem
br i1 %53, label LBL_29, label LBL_35
LBL_29:
%54 = icmp eq i32* %arg4, inttoptr (i64 2 to i32*)
%55 = icmp eq i1 %54, false
store i8 103, i8* %sv_3.0.ph.reg2mem
br i1 %55, label LBL_30, label LBL_35
LBL_30:
%56 = icmp eq i32* %arg4, inttoptr (i64 3 to i32*)
%57 = icmp eq i1 %56, false
store i8 99, i8* %sv_3.0.ph.reg2mem
br i1 %57, label LBL_31, label LBL_35
LBL_31:
%58 = icmp eq i32* %arg4, inttoptr (i64 4 to i32*)
%59 = icmp eq i1 %58, false
store i8 114, i8* %sv_3.0.ph.reg2mem
br i1 %59, label LBL_32, label LBL_35
LBL_32:
%60 = icmp eq i32* %arg4, inttoptr (i64 5 to i32*)
%61 = icmp eq i1 %60, false
store i8 122, i8* %sv_3.0.ph.reg2mem
br i1 %61, label LBL_33, label LBL_35
LBL_33:
%62 = icmp eq i32* %arg4, inttoptr (i64 6 to i32*)
%63 = icmp eq i1 %62, false
store i8 98, i8* %sv_3.0.ph.reg2mem
br i1 %63, label LBL_34, label LBL_35
LBL_34:
%64 = icmp eq i32* %arg4, inttoptr (i64 7 to i32*)
%65 = icmp eq i1 %64, false
store i8 100, i8* %sv_3.0.ph.reg2mem
store i64 %sv_2.12.reload, i64* %sv_2.14.reg2mem
store i64 %sv_1.5.reload, i64* %sv_1.6.reg2mem
store i64 %sv_0.12.reload, i64* %sv_0.14.reg2mem
br i1 %65, label LBL_38, label LBL_35
LBL_35:
%66 = icmp eq i64 %sv_2.12.reload, 0
store i64 0, i64* %sv_2.13.reg2mem
store i64 %sv_0.12.reload, i64* %sv_0.13.reg2mem
br i1 %66, label LBL_37, label LBL_36
LBL_36:
%sv_3.0.ph.reload = load i8, i8* %sv_3.0.ph.reg2mem
%67 = add i64 %sv_2.12.reload, -1
%68 = add i64 %sv_0.12.reload, 1
%69 = inttoptr i64 %sv_0.12.reload to i8*
store i8 %sv_3.0.ph.reload, i8* %69, align 1
store i64 %67, i64* %sv_2.13.reg2mem
store i64 %68, i64* %sv_0.13.reg2mem
br label LBL_37
LBL_37:
%sv_0.13.reload = load i64, i64* %sv_0.13.reg2mem
%sv_2.13.reload = load i64, i64* %sv_2.13.reg2mem
%70 = add i64 %sv_1.5.reload, 1
store i64 %sv_2.13.reload, i64* %sv_2.14.reg2mem
store i64 %70, i64* %sv_1.6.reg2mem
store i64 %sv_0.13.reload, i64* %sv_0.14.reg2mem
br label LBL_38
LBL_38:
%sv_1.6.reload = load i64, i64* %sv_1.6.reg2mem
%sv_2.14.reload = load i64, i64* %sv_2.14.reg2mem
%71 = icmp eq i64 %sv_2.14.reload, 0
br i1 %71, label LBL_40, label LBL_39
LBL_39:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%72 = inttoptr i64 %sv_0.14.reload to i8*
store i8 0, i8* %72, align 1
br label LBL_40
LBL_40:
%73 = add i64 %sv_1.6.reload, 1
%74 = icmp ugt i64 %73, %arg2
%75 = icmp eq i1 %74, false
%storemerge = select i1 %75, i64 0, i64 %73
ret i64 %storemerge
uselistorder i64 %73, { 1, 0 }
uselistorder i64 %sv_2.12.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.5.reload, { 1, 0 }
uselistorder i64 %sv_0.12.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_2.10.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.4.reload, { 1, 0 }
uselistorder i64 %sv_0.10.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_2.8.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.3.reload, { 1, 0 }
uselistorder i64 %sv_0.8.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_2.6.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.2.reload, { 1, 0 }
uselistorder i64 %sv_0.6.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_2.3.reload, { 1, 2, 0, 3, 4 }
uselistorder i64 %sv_1.1.reload, { 1, 0, 2 }
uselistorder i64 %sv_0.3.reload, { 4, 3, 1, 0, 6, 5, 2 }
uselistorder i64 %sv_2.1.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %sv_0.1.reload, { 3, 2, 1, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i64* %sv_2.8.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_1.3.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.8.reg2mem, { 0, 2, 3, 1 }
uselistorder i8* %sv_3.0.ph.reg2mem, { 0, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %sv_2.14.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.6.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.14.reg2mem, { 0, 2, 1 }
uselistorder i64 -1, { 2, 3, 4, 0, 1, 5, 6, 7 }
uselistorder i64 1, { 3, 4, 5, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0, 18, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* %arg4, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 %arg3, { 1, 2, 3, 5, 4, 6, 0 }
uselistorder i64 %arg2, { 1, 3, 2, 0 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_35, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | rv34_idct_add_c_16236 | rv34_idct_add_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%2 = ptrtoint i64* %sv_2 to i64
%sext = mul i64 %arg2, 4294967296
%3 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0)
%4 = call i64* @memset(i64* %arg3, i32 0, i32 64)
%5 = add i64 %2, -96
%6 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
store i64 %1, i64* %sv_0.03.reg2mem
br label LBL_1
LBL_1:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 4
%8 = add i64 %7, %5
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %8, 32
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i32 %13, %10
%15 = mul i32 %14, 13
%16 = add i32 %15, 512
%17 = sub i32 %10, %13
%18 = mul i32 %17, 13
%19 = add i32 %18, 512
%20 = add i64 %8, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = mul i32 %22, 7
%24 = add i64 %8, 48
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = mul i32 %26, -17
%28 = add i32 %27, %23
%29 = mul i32 %22, 17
%30 = mul i32 %26, 7
%31 = add i32 %30, %29
%32 = inttoptr i64 %sv_0.03.reload to i8*
%33 = load i8, i8* %32, align 1
%34 = add i32 %31, %16
%35 = ashr i32 %34, 10
%36 = zext i8 %33 to i32
%37 = add nsw i32 %35, %36
%38 = sext i32 %37 to i64
%39 = add i64 %38, ptrtoint (i64* @gv_0 to i64)
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
store i8 %41, i8* %32, align 1
%42 = add i64 %sv_0.03.reload, 1
%43 = inttoptr i64 %42 to i8*
%44 = load i8, i8* %43, align 1
%45 = add i32 %28, %19
%46 = ashr i32 %45, 10
%47 = zext i8 %44 to i32
%48 = add nsw i32 %46, %47
%49 = sext i32 %48 to i64
%50 = add i64 %49, ptrtoint (i64* @gv_0 to i64)
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
store i8 %52, i8* %43, align 1
%53 = add i64 %sv_0.03.reload, 2
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = sub i32 %19, %28
%57 = ashr i32 %56, 10
%58 = zext i8 %55 to i32
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = add i64 %60, ptrtoint (i64* @gv_0 to i64)
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
store i8 %63, i8* %54, align 1
%64 = add i64 %sv_0.03.reload, 3
%65 = inttoptr i64 %64 to i8*
%66 = load i8, i8* %65, align 1
%67 = sub i32 %16, %31
%68 = ashr i32 %67, 10
%69 = zext i8 %66 to i32
%70 = add nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = add i64 %71, ptrtoint (i64* @gv_0 to i64)
%73 = inttoptr i64 %72 to i8*
%74 = load i8, i8* %73, align 1
store i8 %74, i8* %65, align 1
%75 = add i64 %sv_0.03.reload, %6
%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
store i64 %75, i64* %sv_0.03.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %6
uselistorder i32 %31, { 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %13, { 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i64 %sv_0.03.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 0, 2, 1 }
} | 1 |
BinRealVul | pci_edu_realize_209 | pci_edu_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 1)
%3 = call i64 @FUNC(i64 %1, i64 0, i64 1, i64 1, i64 0, i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %1, i64 0, i64 4198831, i64 %1)
%8 = add i64 %1, 24
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %1, 32
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %1, 8
%13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 4198838, i64 %1, i64 0)
%14 = call i64 @FUNC(i64 %1)
%15 = add i64 %1, 16
%16 = call i64 @FUNC(i64 %15, i64 %14, i64* nonnull @gv_1, i64 %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 1048576)
%17 = call i64 @FUNC(i64 %1, i64 0, i64 0, i64 %15)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 4, 3, 2, 1, 9, 8, 7, 6, 5, 10, 11 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | bm_text_width_6739 | bm_text_width | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.2.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.04.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i32
%sv_0.26.reg2mem = alloca i32
%.reg2mem9 = alloca i8*
%.reg2mem = alloca i8
%rdi.08.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([2 x i8]* @gv_0 to i64), i64* %rdi.08.reg2mem
br label LBL_3
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
store i64 %2, i64* %rdi.08.reg2mem
br label LBL_3
LBL_3:
%rdi.08.reload = load i64, i64* %rdi.08.reg2mem
%3 = inttoptr i64 %arg2 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
store i8 %4, i8* %.reg2mem
store i8* %3, i8** %.reg2mem9
store i32 0, i32* %sv_0.26.reg2mem
store i32 0, i32* %sv_1.15.reg2mem
store i64 %arg2, i64* %sv_2.04.reg2mem
store i32 0, i32* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %sv_0.2.lcssa.reg2mem
br i1 %6, label LBL_4, label LBL_10
LBL_4:
%sv_2.04.reload = load i64, i64* %sv_2.04.reg2mem
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem
%.reload = load i8, i8* %.reg2mem
%7 = icmp eq i8 %.reload, 10
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%9 = icmp sgt i32 %sv_1.15.reload, %sv_0.26.reload
%spec.select = select i1 %9, i32 %sv_1.15.reload, i32 %sv_0.26.reload
store i32 0, i32* %sv_1.0.reg2mem
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_9
LBL_6:
%10 = icmp eq i8 %.reload, 9
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_8, label LBL_7
LBL_7:
%12 = add i32 %sv_1.15.reload, 4
store i32 %12, i32* %sv_1.0.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br label LBL_9
LBL_8:
%.reload10 = load i8*, i8** %.reg2mem9
%13 = call i16** @__ctype_b_loc()
%14 = load i16*, i16** %13, align 8
%15 = ptrtoint i16* %14 to i64
%16 = load i8, i8* %.reload10, align 1
%17 = sext i8 %16 to i64
%18 = mul i64 %17, 2
%19 = add i64 %18, %15
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = and i16 %21, 16384
%23 = icmp ne i16 %22, 0
%24 = zext i1 %23 to i32
%spec.select2 = add i32 %sv_1.15.reload, %24
store i32 %spec.select2, i32* %sv_1.0.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%25 = add i64 %sv_2.04.reload, 1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
store i8 %27, i8* %.reg2mem
store i8* %26, i8** %.reg2mem9
store i32 %sv_0.1.reload, i32* %sv_0.26.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem
store i64 %25, i64* %sv_2.04.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.lcssa.reg2mem
br i1 %29, label LBL_4, label LBL_10
LBL_10:
%sv_0.2.lcssa.reload = load i32, i32* %sv_0.2.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%30 = icmp sgt i32 %sv_1.1.lcssa.reload, %sv_0.2.lcssa.reload
%spec.select3 = select i1 %30, i32 %sv_1.1.lcssa.reload, i32 %sv_0.2.lcssa.reload
%31 = trunc i64 %rdi.08.reload to i32
%32 = mul i32 %spec.select3, %31
%33 = zext i32 %32 to i64
ret i64 %33
uselistorder i32 %sv_1.15.reload, { 3, 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem9, { 2, 0, 1 }
uselistorder i32* %sv_0.26.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 0, { 2, 0, 1, 3, 4 }
uselistorder i8 0, { 1, 0 }
uselistorder [2 x i8]* @gv_0, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0, 4 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | ghash_update_17401 | ghash_update | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.24.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i32
%sv_2.0.in6.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i64
%sv_1.09.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%sv_0.1.ph.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i64
%sv_3.013.reg2mem = alloca i32
%sv_4.0.in14.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
store i64 %0, i64* %sv_0.1.ph.reg2mem
store i32 %arg3, i32* %sv_1.0.ph.reg2mem
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%8 = zext i32 %6 to i64
%9 = zext i32 %arg3 to i64
%10 = call i64 @FUNC(i64 %9, i64 %8)
%11 = trunc i64 %10 to i32
%12 = load i32, i32* %5, align 4
%13 = sub i32 %12, %11
store i32 %13, i32* %5, align 4
%14 = icmp eq i32 %11, 0
%15 = icmp eq i1 %14, false
store i32 %13, i32* %.reg2mem
store i64 %0, i64* %sv_0.0.lcssa.reg2mem
br i1 %15, label LBL_2, label LBL_5
LBL_2:
%16 = sub i32 16, %12
%17 = zext i32 %16 to i64
%18 = add i64 %2, %17
store i64 %18, i64* %sv_4.0.in14.reg2mem
store i32 %11, i32* %sv_3.013.reg2mem
store i64 %0, i64* %sv_0.012.reg2mem
br label LBL_3
LBL_3:
%sv_0.012.reload = load i64, i64* %sv_0.012.reg2mem
%sv_3.013.reload = load i32, i32* %sv_3.013.reg2mem
%sv_4.0.in14.reload = load i64, i64* %sv_4.0.in14.reg2mem
%sv_4.015 = inttoptr i64 %sv_4.0.in14.reload to i8*
%19 = add i32 %sv_3.013.reload, -1
%20 = add i64 %sv_0.012.reload, 1
%21 = inttoptr i64 %sv_0.012.reload to i8*
%22 = load i8, i8* %21, align 1
%23 = add i64 %sv_4.0.in14.reload, 1
%24 = load i8, i8* %sv_4.015, align 1
%25 = xor i8 %24, %22
store i8 %25, i8* %sv_4.015, align 1
%26 = icmp eq i32 %19, 0
%27 = icmp eq i1 %26, false
store i64 %23, i64* %sv_4.0.in14.reg2mem
store i32 %19, i32* %sv_3.013.reg2mem
store i64 %20, i64* %sv_0.012.reg2mem
br i1 %27, label LBL_3, label LBL_4
LBL_4:
%.pre = load i32, i32* %5, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %20, i64* %sv_0.0.lcssa.reg2mem
br label LBL_5
LBL_5:
%28 = sub i32 %arg3, %11
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%.reload = load i32, i32* %.reg2mem
%29 = icmp eq i32 %.reload, 0
%30 = icmp eq i1 %29, false
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.1.ph.reg2mem
store i32 %28, i32* %sv_1.0.ph.reg2mem
br i1 %30, label LBL_7, label LBL_6
LBL_6:
%31 = inttoptr i64 %3 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %2, i64 %32)
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.1.ph.reg2mem
store i32 %28, i32* %sv_1.0.ph.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%sv_0.1.ph.reload = load i64, i64* %sv_0.1.ph.reg2mem
%34 = icmp ult i32 %sv_1.0.ph.reload, 16
store i64 %sv_0.1.ph.reload, i64* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.0.lcssa.reg2mem
br i1 %34, label LBL_11, label LBL_8
LBL_8:
%35 = inttoptr i64 %3 to i64*
store i32 %sv_1.0.ph.reload, i32* %sv_1.09.reg2mem
store i64 %sv_0.1.ph.reload, i64* %sv_0.18.reg2mem
br label LBL_9
LBL_9:
%sv_0.18.reload = load i64, i64* %sv_0.18.reg2mem
%sv_1.09.reload = load i32, i32* %sv_1.09.reg2mem
%36 = call i64 @FUNC(i64 %2, i64 %sv_0.18.reload, i64 16)
%37 = load i64, i64* %35, align 8
%38 = call i64 @FUNC(i64 %2, i64 %37)
%39 = add i64 %sv_0.18.reload, 16
%40 = add i32 %sv_1.09.reload, -16
%41 = icmp ult i32 %40, 16
store i32 %40, i32* %sv_1.09.reg2mem
store i64 %39, i64* %sv_0.18.reg2mem
br i1 %41, label LBL_10, label LBL_9
LBL_10:
%42 = urem i32 %sv_1.0.ph.reload, 16
store i64 %39, i64* %sv_0.1.lcssa.reg2mem
store i32 %42, i32* %sv_1.0.lcssa.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%43 = icmp eq i32 %sv_1.0.lcssa.reload, 0
br i1 %43, label LBL_14, label LBL_12
LBL_12:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%44 = sub i32 16, %sv_1.0.lcssa.reload
store i32 %44, i32* %5, align 4
store i64 %2, i64* %sv_2.0.in6.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.15.reg2mem
store i64 %sv_0.1.lcssa.reload, i64* %sv_0.24.reg2mem
br label LBL_13
LBL_13:
%sv_0.24.reload = load i64, i64* %sv_0.24.reg2mem
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%sv_2.0.in6.reload = load i64, i64* %sv_2.0.in6.reg2mem
%sv_2.07 = inttoptr i64 %sv_2.0.in6.reload to i8*
%45 = add i32 %sv_1.15.reload, -1
%46 = add i64 %sv_0.24.reload, 1
%47 = inttoptr i64 %sv_0.24.reload to i8*
%48 = load i8, i8* %47, align 1
%49 = add i64 %sv_2.0.in6.reload, 1
%50 = load i8, i8* %sv_2.07, align 1
%51 = xor i8 %50, %48
store i8 %51, i8* %sv_2.07, align 1
%52 = icmp eq i32 %45, 0
%53 = icmp eq i1 %52, false
store i64 %49, i64* %sv_2.0.in6.reg2mem
store i32 %45, i32* %sv_1.15.reg2mem
store i64 %46, i64* %sv_0.24.reg2mem
br i1 %53, label LBL_13, label LBL_14
LBL_14:
ret i64 0
uselistorder i32 %sv_1.0.lcssa.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.1.ph.reload, { 1, 0 }
uselistorder i32 %sv_1.0.ph.reload, { 3, 1, 0, 2 }
uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %11, { 2, 0, 1, 3 }
uselistorder i32* %5, { 3, 0, 1, 2, 4 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 0, 2, 3, 4, 1, 5 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %sv_4.0.in14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.013.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.012.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.ph.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.09.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.18.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.0.in6.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.15.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.24.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @gf128mul_4k_lle, { 1, 0 }
uselistorder i64 1, { 1, 2, 3, 4, 0 }
uselistorder i32 16, { 3, 0, 2, 1, 4 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i32 %arg3, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rfbProcessClientMessage_5699 | rfbProcessClientMessage | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
store i64 %3, i64* @0, align 8
switch i32 %2, label LBL_7 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_6
]
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_0, i64 0, i64 0))
%13 = ptrtoint i32* %arg1 to i64
%14 = call i64 @FUNC(i64 %13)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%15 = ptrtoint i32* %arg1 to i64
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%17 = ptrtoint i32* %arg1 to i64
%18 = call i64 @FUNC(i64 %17)
store i64 %18, 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 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i32* %arg1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_8, { 6, 0, 1, 2, 3, 4, 5 }
} | 0 |
BinRealVul | jas_realloc_11155 | jas_realloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i32 %0, i64 %arg2)
%2 = inttoptr i64 %arg1 to i64*
%3 = trunc i64 %arg2 to i32
%4 = call i64* @realloc(i64* %2, i32 %3)
%5 = ptrtoint i64* %4 to i64
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64* %2, i64 %arg2, i64* %4)
ret i64 %5
} | 1 |
BinRealVul | xps_parse_path_figure_9619 | xps_parse_path_figure | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.3.reg2mem = alloca i64
%storemerge4.lcssa.reg2mem = alloca i64
%storemerge48.reg2mem = alloca i64
%rax.2.reg2mem = alloca i64
%rax.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rax.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%1 = load i128, i128* %0
%2 = ptrtoint i64* %arg3 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%3 = call i128 @FUNC(i128 %1, i128 %1)
%4 = call i64 @FUNC(i128 %3)
%5 = trunc i64 %4 to i32
store i32 %5, i32* %sv_4, align 4
%6 = call i128 @FUNC(i128 %3, i128 %3)
%7 = call i64 @FUNC(i128 %6)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %sv_3, align 4
store i32 0, i32* %sv_2, align 4
%9 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%10 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0))
%11 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%12 = icmp eq i64 %9, 0
store i32 0, i32* %sv_1.0.reg2mem
store i64 %11, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = inttoptr i64 %9 to i8*
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i64
%17 = zext i1 %15 to i32
store i32 %17, i32* %sv_1.0.reg2mem
store i64 %16, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%18 = icmp eq i64 %11, 0
store i32 1, i32* %sv_0.0.reg2mem
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = inttoptr i64 %11 to i8*
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i64
%23 = zext i1 %21 to i32
store i32 %23, i32* %sv_0.0.reg2mem
store i64 %22, i64* %rax.1.reg2mem
br label LBL_4
LBL_4:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%24 = icmp eq i64 %10, 0
store i64 %rax.1.reload, i64* %rax.2.reg2mem
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %10, i32* nonnull %sv_4, i32* nonnull %sv_3)
store i64 %25, i64* %rax.2.reg2mem
br label LBL_6
LBL_6:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
%26 = trunc i64 %arg4 to i32
%27 = or i32 %sv_0.0.reload, %26
%28 = icmp eq i32 %27, 0
store i64 %rax.2.reload, i64* %rax.3.reg2mem
br i1 %28, label LBL_21, label LBL_7
LBL_7:
%29 = ptrtoint i64* %arg2 to i64
%30 = ptrtoint i64* %arg1 to i64
%31 = load i32, i32* %sv_3, align 4
%32 = call i128 @__asm_movss.1(i32 %31)
%33 = load i32, i32* %sv_4, align 4
%34 = call i128 @FUNC(i128 %32)
%35 = call i128 @FUNC(i32 %33)
%36 = call i64 @FUNC(i64 %30, i64 %29)
%37 = call i64 @FUNC(i64 %2)
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 %37, i64* %storemerge48.reg2mem
store i64 %37, i64* %storemerge4.lcssa.reg2mem
br i1 %39, label LBL_8, label LBL_17
LBL_8:
%storemerge48.reload = load i64, i64* %storemerge48.reg2mem
%40 = call i64 @FUNC(i64 %storemerge48.reload)
%41 = inttoptr i64 %40 to i8*
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_10, label LBL_9
LBL_9:
%45 = call i64 @FUNC(i64 %30, i64 %29, i64 %storemerge48.reload, i32 %26, i32* nonnull %sv_2)
br label LBL_10
LBL_10:
%46 = call i64 @FUNC(i64 %storemerge48.reload)
%47 = inttoptr i64 %46 to i8*
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0))
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_12, label LBL_11
LBL_11:
%51 = call i64 @FUNC(i64 %30, i64 %29, i64 %storemerge48.reload, i32 %26, i32* nonnull %sv_2)
br label LBL_12
LBL_12:
%52 = call i64 @FUNC(i64 %storemerge48.reload)
%53 = inttoptr i64 %52 to i8*
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_6, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_14, label LBL_13
LBL_13:
%57 = call i64 @FUNC(i64 %30, i64 %29, i64 %storemerge48.reload, i32 %26, i32* nonnull %sv_2)
br label LBL_14
LBL_14:
%58 = call i64 @FUNC(i64 %storemerge48.reload)
%59 = inttoptr i64 %58 to i8*
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_7, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_16, label LBL_15
LBL_15:
%63 = call i64 @FUNC(i64 %30, i64 %29, i64 %storemerge48.reload, i32 %26, i32* nonnull %sv_2)
br label LBL_16
LBL_16:
%64 = call i64 @FUNC(i64 %storemerge48.reload)
%65 = icmp eq i64 %64, 0
%66 = icmp eq i1 %65, false
store i64 %64, i64* %storemerge48.reg2mem
store i64 %64, i64* %storemerge4.lcssa.reg2mem
br i1 %66, label LBL_8, label LBL_17
LBL_17:
%storemerge4.lcssa.reload = load i64, i64* %storemerge4.lcssa.reg2mem
%67 = icmp eq i32 %sv_1.0.reload, 0
store i64 %storemerge4.lcssa.reload, i64* %rax.3.reg2mem
br i1 %67, label LBL_21, label LBL_18
LBL_18:
%68 = icmp eq i32 %26, 0
%69 = load i32, i32* %sv_2, align 4
%70 = icmp eq i32 %69, 0
%or.cond7 = or i1 %68, %70
br i1 %or.cond7, label LBL_20, label LBL_19
LBL_19:
%71 = load i32, i32* %sv_3, align 4
%72 = call i128 @__asm_movss.1(i32 %71)
%73 = load i32, i32* %sv_4, align 4
%74 = call i128 @FUNC(i128 %72)
%75 = call i128 @FUNC(i32 %73)
%76 = call i64 @FUNC(i64 %30, i64 %29)
store i64 %76, i64* %rax.3.reg2mem
br label LBL_21
LBL_20:
%77 = call i64 @FUNC(i64 %30, i64 %29)
store i64 %77, i64* %rax.3.reg2mem
br label LBL_21
LBL_21:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i64 %storemerge48.reload, { 8, 7, 5, 6, 3, 4, 1, 0, 2 }
uselistorder i64 %30, { 1, 0, 5, 4, 3, 2, 6 }
uselistorder i64 %29, { 1, 0, 5, 4, 3, 2, 6 }
uselistorder i32 %26, { 1, 5, 4, 3, 2, 0 }
uselistorder i64 %11, { 2, 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i128 %3, { 2, 1, 0 }
uselistorder i32* %sv_4, { 1, 2, 0, 3 }
uselistorder i32* %sv_3, { 1, 2, 0, 3 }
uselistorder i64* %storemerge48.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.3.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @fz_xml_tag, { 3, 2, 1, 0 }
uselistorder i1 false, { 5, 1, 2, 3, 4, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*)* @fz_xml_att, { 2, 1, 0 }
uselistorder i32 0, { 2, 8, 9, 4, 5, 6, 7, 1, 10, 11, 0, 3 }
uselistorder label LBL_21, { 1, 2, 3, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | CBB_cleanup_17993 | CBB_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = trunc i64 %0 to i32
%3 = icmp eq i32 %2, 0
store i64 %0, i64* %.reg2mem
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9, i64 %6)
store i64 %9, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%11 = inttoptr i64 %.reload to i64*
call void @free(i64* %11)
br label LBL_4
LBL_4:
store i64 0, i64* %arg1, align 8
ret i64 %0
uselistorder i64 %0, { 4, 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | print_media_desc_19175 | print_media_desc | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.4.lcssa.reg2mem = alloca i64
%sv_0.411.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.3.lcssa.reg2mem = alloca i64
%sv_0.313.reg2mem = alloca i64
%indvars.iv25.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8*
%.lcssa10.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%.reg2mem40 = alloca i64
%.reg2mem = alloca i8*
%indvars.iv27.reg2mem = alloca i64
%sv_0.0.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 = add i64 %0, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %3, 36
%8 = add i64 %7, %6
%9 = icmp ugt i64 %8, %arg3
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_18
LBL_1:
%11 = ptrtoint i64* %arg2 to i64
%12 = add i64 %11, 1
%13 = bitcast i64* %arg2 to i8*
store i8 109, i8* %13, align 1
%14 = add i64 %11, 2
%15 = inttoptr i64 %12 to i8*
store i8 61, i8* %15, align 1
%16 = load i64, i64* %2, align 8
%17 = call i64 @FUNC(i64 %14, i64 %0, i64 %16)
%18 = load i64, i64* %2, align 8
%19 = add i64 %18, %14
%20 = add i64 %19, 1
%21 = inttoptr i64 %19 to i8*
store i8 32, i8* %21, align 1
%22 = add i64 %0, 32
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25, i64 %20)
%sext = mul i64 %26, 4294967296
%27 = ashr exact i64 %sext, 32
%28 = add i64 %27, %20
%29 = add i64 %0, 36
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp ult i32 %31, 2
store i64 %28, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_3, label LBL_2
LBL_2:
%33 = add i64 %28, 1
%34 = inttoptr i64 %28 to i8*
store i8 47, i8* %34, align 1
%35 = load i32, i32* %30, align 4
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36, i64 %33)
%sext1 = mul i64 %37, 4294967296
%38 = ashr exact i64 %sext1, 32
%39 = add i64 %38, %33
store i64 %39, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%40 = add i64 %sv_0.0.reload, 1
%41 = inttoptr i64 %sv_0.0.reload to i8*
store i8 32, i8* %41, align 1
%42 = load i64, i64* %5, align 8
%43 = add i64 %0, 16
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %40, i64 %45, i64 %42)
%47 = load i64, i64* %5, align 8
%48 = add i64 %47, %40
%49 = add i64 %0, 48
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = icmp eq i32 %51, 0
%53 = add i64 %48, 1
%54 = inttoptr i64 %48 to i8*
store i64 %48, i64* %sv_0.1.lcssa.reg2mem
store i64 %53, i64* %.lcssa10.reg2mem
store i8* %54, i8** %.lcssa.reg2mem
br i1 %52, label LBL_6, label LBL_4
LBL_4:
%55 = add i64 %0, 40
%56 = inttoptr i64 %55 to i64*
store i64 0, i64* %indvars.iv27.reg2mem
store i8* %54, i8** %.reg2mem
store i64 %53, i64* %.reg2mem40
br label LBL_5
LBL_5:
%.reload41 = load i64, i64* %.reg2mem40
%.reload = load i8*, i8** %.reg2mem
%indvars.iv27.reload = load i64, i64* %indvars.iv27.reg2mem
store i8 32, i8* %.reload, align 1
%57 = load i64, i64* %56, align 8
%58 = mul i64 %indvars.iv27.reload, 16
%59 = add i64 %57, %58
%60 = add i64 %59, 8
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = inttoptr i64 %59 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %.reload41, i64 %64, i64 %62)
%66 = load i64, i64* %56, align 8
%67 = or i64 %58, 8
%68 = add i64 %66, %67
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = add i64 %70, %.reload41
%indvars.iv.next28 = add nuw nsw i64 %indvars.iv27.reload, 1
%72 = load i32, i32* %50, align 4
%73 = zext i32 %72 to i64
%74 = icmp ult i64 %indvars.iv.next28, %73
%75 = add i64 %71, 1
%76 = inttoptr i64 %71 to i8*
store i64 %indvars.iv.next28, i64* %indvars.iv27.reg2mem
store i8* %76, i8** %.reg2mem
store i64 %75, i64* %.reg2mem40
store i64 %71, i64* %sv_0.1.lcssa.reg2mem
store i64 %75, i64* %.lcssa10.reg2mem
store i8* %76, i8** %.lcssa.reg2mem
br i1 %74, label LBL_5, label LBL_6
LBL_6:
%77 = add i64 %11, %arg3
%.lcssa.reload = load i8*, i8** %.lcssa.reg2mem
%.lcssa10.reload = load i64, i64* %.lcssa10.reg2mem
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
store i8 13, i8* %.lcssa.reload, align 1
%78 = add i64 %sv_0.1.lcssa.reload, 2
%79 = inttoptr i64 %.lcssa10.reload to i8*
store i8 10, i8* %79, align 1
%80 = add i64 %0, 56
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = icmp eq i64 %82, 0
store i64 %78, i64* %sv_0.2.reg2mem
br i1 %83, label LBL_9, label LBL_7
LBL_7:
%84 = sub i64 %77, %78
%85 = and i64 %84, 4294967295
%86 = call i64 @FUNC(i64 %82, i64 %78, i64 %85)
%87 = trunc i64 %86 to i32
%88 = icmp slt i32 %87, 0
%89 = icmp eq i1 %88, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %89, label LBL_8, label LBL_18
LBL_8:
%sext4 = mul i64 %86, 4294967296
%90 = ashr exact i64 %sext4, 32
%91 = add i64 %90, %78
store i64 %91, i64* %sv_0.2.reg2mem
br label LBL_9
LBL_9:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%92 = add i64 %0, 64
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = icmp eq i32 %94, 0
store i64 %sv_0.2.reload, i64* %sv_0.3.lcssa.reg2mem
br i1 %95, label LBL_13, label LBL_10
LBL_10:
%96 = add i64 %0, 72
%97 = inttoptr i64 %96 to i64*
store i64 0, i64* %indvars.iv25.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.313.reg2mem
br label LBL_11
LBL_11:
%sv_0.313.reload = load i64, i64* %sv_0.313.reg2mem
%indvars.iv25.reload = load i64, i64* %indvars.iv25.reg2mem
%98 = sub i64 %77, %sv_0.313.reload
%99 = load i64, i64* %97, align 8
%100 = mul i64 %indvars.iv25.reload, 8
%101 = add i64 %99, %100
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = call i64 @FUNC(i64 %103, i64 %sv_0.313.reload, i64 %98)
%105 = trunc i64 %104 to i32
%106 = icmp slt i32 %105, 0
%107 = icmp eq i1 %106, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %107, label LBL_12, label LBL_18
LBL_12:
%sext6 = mul i64 %104, 4294967296
%108 = ashr exact i64 %sext6, 32
%109 = add i64 %108, %sv_0.313.reload
%indvars.iv.next26 = add nuw nsw i64 %indvars.iv25.reload, 1
%110 = load i32, i32* %93, align 4
%111 = zext i32 %110 to i64
%112 = icmp ult i64 %indvars.iv.next26, %111
store i64 %indvars.iv.next26, i64* %indvars.iv25.reg2mem
store i64 %109, i64* %sv_0.313.reg2mem
store i64 %109, i64* %sv_0.3.lcssa.reg2mem
br i1 %112, label LBL_11, label LBL_13
LBL_13:
%sv_0.3.lcssa.reload = load i64, i64* %sv_0.3.lcssa.reg2mem
%113 = add i64 %0, 80
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = icmp eq i32 %115, 0
store i64 %sv_0.3.lcssa.reload, i64* %sv_0.4.lcssa.reg2mem
br i1 %116, label LBL_17, label LBL_14
LBL_14:
%117 = add i64 %0, 88
%118 = inttoptr i64 %117 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %sv_0.3.lcssa.reload, i64* %sv_0.411.reg2mem
br label LBL_15
LBL_15:
%sv_0.411.reload = load i64, i64* %sv_0.411.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%119 = sub i64 %77, %sv_0.411.reload
%120 = load i64, i64* %118, align 8
%121 = mul i64 %indvars.iv.reload, 8
%122 = add i64 %120, %121
%123 = inttoptr i64 %122 to i64*
%124 = load i64, i64* %123, align 8
%125 = call i64 @FUNC(i64 %124, i64 %sv_0.411.reload, i64 %119)
%126 = trunc i64 %125 to i32
%127 = icmp slt i32 %126, 0
%128 = icmp eq i1 %127, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %128, label LBL_16, label LBL_18
LBL_16:
%sext5 = mul i64 %125, 4294967296
%129 = ashr exact i64 %sext5, 32
%130 = add i64 %129, %sv_0.411.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%131 = load i32, i32* %114, align 4
%132 = zext i32 %131 to i64
%133 = icmp ult i64 %indvars.iv.next, %132
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %130, i64* %sv_0.411.reg2mem
store i64 %130, i64* %sv_0.4.lcssa.reg2mem
br i1 %133, label LBL_15, label LBL_17
LBL_17:
%sv_0.4.lcssa.reload = load i64, i64* %sv_0.4.lcssa.reg2mem
%134 = sub i64 %sv_0.4.lcssa.reload, %11
store i64 %134, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.411.reload, { 2, 1, 0 }
uselistorder i32* %114, { 1, 0 }
uselistorder i64 %sv_0.3.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_0.313.reload, { 2, 1, 0 }
uselistorder i32* %93, { 1, 0 }
uselistorder i64 %sv_0.2.reload, { 1, 0 }
uselistorder i64 %78, { 1, 3, 2, 0 }
uselistorder i64 %77, { 1, 2, 0 }
uselistorder i64 %71, { 0, 2, 1 }
uselistorder i64 %.reload41, { 1, 0 }
uselistorder i8* %54, { 1, 0 }
uselistorder i64 %53, { 1, 0 }
uselistorder i32* %50, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %28, { 1, 2, 0 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %11, { 0, 3, 2, 1 }
uselistorder i64* %2, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64* %indvars.iv27.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem40, { 1, 0, 2 }
uselistorder i64* %indvars.iv25.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.313.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.411.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 3, 4 }
uselistorder i32 0, { 3, 0, 4, 1, 5, 2 }
uselistorder i64 (i64, i64)* @pj_utoa, { 1, 0 }
uselistorder i64 32, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64, i64, i64)* @pj_memcpy, { 2, 1, 0 }
uselistorder i64 1, { 2, 1, 4, 0, 3, 5, 6, 7, 8 }
uselistorder i64 36, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_18, { 4, 1, 0, 2, 3 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | decode_block_14038 | decode_block | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %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 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %3, i64 %2)
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %3, i64 %2)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 4294967295, i64* %storemerge1.reg2mem
br i1 %13, label LBL_3, label LBL_8
LBL_3:
%14 = add i64 %2, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 0, i64* %storemerge1.reg2mem
br i1 %19, label LBL_8, label LBL_4
LBL_4:
%20 = trunc i64 %1 to i32
%21 = icmp eq i32 %20, 0
store i64 0, i64* %storemerge1.reg2mem
br i1 %21, label LBL_8, label LBL_5
LBL_5:
%22 = bitcast i64* %rsi to i32*
%23 = add i64 %2, 8
%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 = load i64, i64* %24, align 8
%26 = mul i64 %indvars.iv.reload, 4
%27 = add i64 %25, %26
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
store i64 %30, i64* %rsi, align 8
%31 = load i64, i64* %15, align 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = load i64, i64* %24, align 8
%35 = urem i32 %33, 32
%36 = icmp eq i32 %35, 0
store i32 %29, i32* %.reg2mem
br i1 %36, label LBL_7, label %37
LBL_7:
%40 = add i64 %34, %26
%.reload = load i32, i32* %.reg2mem
%41 = inttoptr i64 %40 to i32*
store i32 %.reload, i32* %41, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%42 = load i32, i32* %22, align 8
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %indvars.iv.next, %43
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br i1 %44, label LBL_6, label LBL_8
LBL_8:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i32 %35, { 1, 0 }
uselistorder i32 %29, { 1, 0, 2 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64* %rsi, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 0, { 0, 3, 1, 2, 4, 5 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | ProcXF86DGAGetVideoLL_13809 | ProcXF86DGAGetVideoLL | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i32, align 4
%sv_6 = alloca i32, align 4
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%7 = icmp ult i32 %5, %6
store i64 1, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_5
LBL_1:
store i32 1, i32* %sv_6, align 4
%8 = load i32, i32* %4, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 1001, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_5
LBL_2:
%14 = load i32, i32* %4, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 1001, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_5
LBL_3:
%20 = load i32, i32* %4, align 4
%21 = zext i32 %20 to i64
%22 = bitcast i32* %sv_5 to i64*
%23 = call i64 @FUNC(i64 %21, i64* nonnull %22, i32 %17)
%24 = load i32, i32* %4, align 4
%25 = zext i32 %24 to i64
%26 = bitcast i32* %sv_1 to i64*
%27 = call i64 @FUNC(i64 %25, i64* nonnull %sv_0, i64* nonnull %26, i64* nonnull %sv_2, i64* nonnull %sv_3, i64* nonnull %sv_4)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i64 2, i64* %rax.0.reg2mem
br i1 %30, label LBL_4, label LBL_5
LBL_4:
%31 = load i32, i32* %sv_1, align 4
%32 = load i32, i32* %sv_5, align 4
%33 = add i32 %32, %31
store i32 %33, i32* %sv_1, align 4
%34 = call i64 @FUNC(i64 %0, i64 28, i32* nonnull %sv_6)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %4, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder label LBL_5, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | _one_step_complete_msg_17977 | _one_step_complete_msg | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%4 = and i64 %arg3, 4294967295
store i32 -1, i32* %sv_1, align 4
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %4, i64 %3, i64 %2, i64 %1)
%7 = call i64 @FUNC(i64 0)
%8 = load i8, i8* bitcast (i32* @gv_1 to i8*), align 4
%9 = icmp eq i8 %8, 1
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg1 to i64
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = load i64, i64* @gv_2, align 8
%15 = call i64 @FUNC(i64 %14, i64 %13)
%16 = load i64, i64* @gv_2, align 8
%17 = call i64 @FUNC(i64 %16, i64 2, i64 %7)
store i8 1, i8* bitcast (i32* @gv_1 to i8*), align 4
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%18 = ashr exact i64 %sext, 32
%19 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 1, i64* %sv_0, align 8
%20 = load i32, i32* @gv_3, align 4
%21 = icmp eq i32 %20, -1
%22 = icmp eq i1 %21, false
%23 = load i32, i32* @gv_4, align 4
br i1 %22, label LBL_5, label LBL_3
LBL_3:
%24 = trunc i64 %18 to i32
%25 = zext i32 %23 to i64
%26 = call i64 @FUNC(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_5, i64 0, i64 0), i64 %25, i32 %24, i64 %4, i64 %2, i64 %1)
%27 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_12, label LBL_4
LBL_4:
%31 = ptrtoint i32* %sv_1 to i64
%32 = load i32, i32* @gv_4, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_6, i64 0, i64 0), i64 %33, i64 %31, i64 %4, i64 %2, i64 %1)
br label LBL_12
LBL_5:
%35 = and i64 %18, 4294967295
%36 = zext i32 %23 to i64
%37 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_7, i64 0, i64 0), i64 %36, i32 %20, i64 %35, i64 %4, i64 %1)
store i32 0, i32* %storemerge4.reg2mem
br label LBL_6
LBL_6:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%38 = icmp eq i32 %storemerge4.reload, 0
br i1 %38, label LBL_8, label LBL_7
LBL_7:
%39 = call i32 @sleep(i32 1)
br label LBL_8
LBL_8:
%40 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1, i64 0)
%41 = trunc i64 %40 to i32
%42 = load i32, i32* %sv_1, align 4
%43 = or i32 %42, %41
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_12, label LBL_9
LBL_9:
%45 = add nuw nsw i32 %storemerge4.reload, 1
%46 = icmp ult i32 %45, 5
store i32 %45, i32* %storemerge4.reg2mem
br i1 %46, label LBL_6, label LBL_10
LBL_10:
%47 = load i32, i32* @gv_4, align 4
%48 = trunc i64 %18 to i32
%49 = zext i32 %47 to i64
%50 = call i64 @FUNC(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_8, i64 0, i64 0), i64 %49, i32 %48, i64 %4, i64 %4, i64 %1)
%51 = call i64 @FUNC(i64* nonnull %sv_0, i32* nonnull %sv_1)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_12, label LBL_11
LBL_11:
%55 = ptrtoint i32* %sv_1 to i64
%56 = load i32, i32* @gv_4, align 4
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_9, i64 0, i64 0), i64 %57, i64 %55, i64 %4, i64 %4, i64 %1)
br label LBL_12
LBL_12:
%59 = call i64 @FUNC(i64 %7)
ret i64 %59
uselistorder i32 %23, { 1, 0 }
uselistorder i64 %18, { 1, 2, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %4, { 6, 3, 5, 2, 4, 1, 0, 7 }
uselistorder i32* %sv_1, { 4, 1, 0, 2, 5, 3, 6 }
uselistorder i64* %sv_0, { 0, 1, 2, 4, 3 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 5, 3, 2, 4, 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error, { 1, 0 }
uselistorder i64 (i64*, i32*)* @slurm_send_recv_controller_rc_msg, { 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @debug3, { 2, 1, 0 }
uselistorder i32* @gv_4, { 3, 2, 0, 1 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 0, { 6, 1, 5, 0, 7, 2, 3, 4 }
uselistorder i8* bitcast (i32* @gv_1 to i8*), { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder label LBL_12, { 4, 1, 0, 3, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
reposvul_c_test | bmpr_convert_row_32_16_209 | bmpr_convert_row_32_16 | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = trunc i64 %1 to i32
%7 = and i64 %1, 4294967295
%8 = icmp eq i32 %6, 0
store i64 %7, i64* %.lcssa.reg2mem
br i1 %8, label LBL_11, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg2 to i64
%10 = icmp eq i32 %5, 0
%11 = select i1 %10, i32 3, i32 4
%12 = bitcast i64* %rdi to i32*
%13 = add i64 %2, 4
%14 = inttoptr i64 %13 to i32*
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %2, 24
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %2, 32
%20 = inttoptr i64 %19 to i64*
%21 = zext i32 %11 to i64
store i32 0, i32* %storemerge7.reg2mem
br label LBL_2
LBL_2:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%22 = load i32, i32* %14, align 4
%23 = icmp eq i32 %22, 32
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = mul i32 %storemerge7.reload, 4
%26 = sext i32 %25 to i64
%27 = add i64 %26, %9
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = or i32 %25, 1
%31 = sext i32 %30 to i64
%32 = add i64 %31, %9
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = zext i8 %34 to i32
%36 = mul i32 %35, 256
%37 = zext i8 %29 to i32
%38 = or i32 %36, %37
%39 = or i32 %25, 2
%40 = sext i32 %39 to i64
%41 = add i64 %40, %9
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = zext i8 %43 to i32
%45 = mul i32 %44, 65536
%46 = or i32 %38, %45
%47 = or i32 %25, 3
%48 = sext i32 %47 to i64
%49 = add i64 %48, %9
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = zext i8 %51 to i32
%53 = mul i32 %52, 16777216
%54 = or i32 %46, %53
store i32 %54, i32* %storemerge3.reg2mem
br label LBL_5
LBL_4:
%55 = mul i32 %storemerge7.reload, 2
%56 = sext i32 %55 to i64
%57 = add i64 %56, %9
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = or i32 %55, 1
%61 = sext i32 %60 to i64
%62 = add i64 %61, %9
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = zext i8 %64 to i32
%66 = mul i32 %65, 256
%67 = zext i8 %59 to i32
%68 = or i32 %66, %67
store i32 %68, i32* %storemerge3.reg2mem
br label LBL_5
LBL_5:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%69 = mul i32 %storemerge7.reload, %11
%70 = mul i32 %69, 2
%71 = sext i32 %70 to i64
%72 = sext i32 %69 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%73 = load i64, i64* %16, align 8
%74 = mul i64 %indvars.iv.reload, 4
%75 = add i64 %73, %74
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = and i32 %77, %storemerge3.reload
%79 = load i64, i64* %18, align 8
%80 = add i64 %79, %74
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = icmp slt i32 %82, 1
%84 = urem i32 %82, 32
%85 = select i1 %83, i32 0, i32 %84
%sv_0.0 = lshr i32 %78, %85
%86 = load i64, i64* %20, align 8
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = icmp eq i32 %88, 16
%90 = icmp eq i1 %89, false
br i1 %90, label LBL_8, label LBL_7
LBL_7:
%91 = udiv i32 %sv_0.0, 256
%92 = add i64 %86, 16
%93 = inttoptr i64 %92 to i64*
%94 = load i64, i64* %93, align 8
%95 = add i64 %86, 8
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = mul i64 %97, %arg3
%99 = mul i64 %indvars.iv.reload, 2
%100 = add nsw i64 %99, %71
%101 = add i64 %94, %100
%102 = add i64 %101, %98
%103 = trunc i32 %91 to i8
%104 = inttoptr i64 %102 to i8*
store i8 %103, i8* %104, align 1
%105 = load i64, i64* %20, align 8
%106 = add i64 %105, 16
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = add i64 %105, 8
%110 = inttoptr i64 %109 to i64*
%111 = load i64, i64* %110, align 8
%112 = mul i64 %111, %arg3
%113 = or i64 %100, 1
%114 = add i64 %108, %113
%115 = add i64 %114, %112
%116 = trunc i32 %sv_0.0 to i8
%117 = inttoptr i64 %115 to i8*
store i8 %116, i8* %117, align 1
br label LBL_9
LBL_8:
%118 = add i64 %86, 16
%119 = inttoptr i64 %118 to i64*
%120 = load i64, i64* %119, align 8
%121 = add i64 %86, 8
%122 = inttoptr i64 %121 to i64*
%123 = load i64, i64* %122, align 8
%124 = mul i64 %123, %arg3
%125 = add nsw i64 %indvars.iv.reload, %72
%126 = add i64 %125, %120
%127 = add i64 %126, %124
%128 = trunc i32 %sv_0.0 to i8
%129 = inttoptr i64 %127 to i8*
store i8 %128, i8* %129, align 1
br label LBL_9
LBL_9:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%130 = icmp ult i64 %indvars.iv.next, %21
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %130, label LBL_6, label LBL_10
LBL_10:
%131 = add i32 %storemerge7.reload, 1
%132 = load i32, i32* %12, align 8
%133 = zext i32 %132 to i64
%134 = sext i32 %131 to i64
%135 = icmp slt i64 %134, %133
store i32 %131, i32* %storemerge7.reg2mem
store i64 %133, i64* %.lcssa.reg2mem
br i1 %135, label LBL_2, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %100, { 1, 0 }
uselistorder i64 %86, { 2, 3, 0, 1, 4 }
uselistorder i32 %sv_0.0, { 2, 1, 0 }
uselistorder i64 %74, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 1, 3, 2 }
uselistorder i32 %69, { 1, 0 }
uselistorder i32 %55, { 1, 0 }
uselistorder i32 %25, { 3, 2, 1, 0 }
uselistorder i32 %storemerge7.reload, { 0, 1, 3, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 256, { 2, 0, 1 }
uselistorder i32 3, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pc_i440fx_2_4_machine_options_15438 | pc_i440fx_2_4_machine_options | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = bitcast i64* %arg1 to i8*
store i8 1, i8* %4, align 1
%5 = add i64 %0, 1
%6 = inttoptr i64 %5 to i8*
store i8 0, i8* %6, align 1
ret i64 %0
uselistorder i64 %0, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | pc_q35_init_1_4_14206 | pc_q35_init_1_4 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i8 1, i8* inttoptr (i64 4210717 to i8*), align 1
store i8 0, i8* inttoptr (i64 4210718 to i8*), align 2
%1 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 1, i64 0, i64 2)
%2 = call i64 @FUNC(i64 %0)
ret i64 %2
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.