dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | vmxnet3_net_uninit_16916 | vmxnet3_net_uninit | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = load i64, i64* %3, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
ret i64 %15
} | 1 |
BinRealVul | vmxnet3_io_bar0_write_11475 | vmxnet3_io_bar0_write | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 %arg2, i64 0, i64 8, i64 4)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg2, i64 0, i64 4)
%8 = and i64 %3, 4294967295
%sext3 = mul i64 %7, 4294967296
%9 = ashr exact i64 %sext3, 32
%10 = icmp sgt i64 %9, %8
br i1 %10, label LBL_2, label LBL_3
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%11 = ptrtoint i32* %arg1 to i64
%12 = and i64 %7, 4294967295
%13 = call i64 @FUNC(i64 %11, i64 %12)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%14 = call i64 @FUNC(i64 %arg2, i64 4, i64 4, i64 4)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %arg2, i64 4, i64 4)
%18 = and i64 %17, 4294967295
%19 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 %18, i64 %arg3, i64 4, i64 %2, i64 %1)
%20 = ptrtoint i32* %arg1 to i64
%21 = call i64 @FUNC(i64 %20, i64 %18, i64 %arg3)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%22 = call i64 @FUNC(i64 %arg2, i64 8, i64 8, i64 4)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %rax.0.reg2mem
br i1 %25, label LBL_9, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64 %arg2, i64 12, i64 8, i64 4)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 %26, i64* %rax.0.reg2mem
br i1 %29, label LBL_9, label LBL_8
LBL_8:
%30 = trunc i64 %arg4 to i32
%31 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_4, i64 0, i64 0), i64 %arg2, i64 %arg3, i32 %30, i64 %2, i64 %1)
store i64 %31, 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 %7, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967295, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @VMW_MULTIREG_IDX_BY_ADDR, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @VMW_IS_MULTIREG_ADDR, { 3, 2, 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3 }
uselistorder i64 %arg3, { 2, 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_9, { 2, 1, 0, 3, 4 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | find_option_9550 | find_option | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem52 = alloca i64
%.pre33.reg2mem = alloca i64
%sv_0.024.reg2mem = alloca i64
%storemerge225.reg2mem = alloca i32
%.reg2mem50 = alloca i64
%.reg2mem = alloca i64
%.pre32.reg2mem = alloca i64
%storemerge323.reg2mem = alloca i64
%storemerge520.reg2mem = alloca i64
%storemerge422.reg2mem = alloca i64
%storemerge619.reg2mem = alloca i64
%storemerge718.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i32
%0 = ptrtoint i8* %arg1 to i64
store i32 0, i32* %storemerge26.reg2mem
br label LBL_1
LBL_1:
%storemerge26.reload = load i32, i32* %storemerge26.reg2mem
%1 = load i64, i64* @gv_0, align 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %1, i64* %storemerge718.reg2mem
br i1 %5, label LBL_2, label LBL_4
LBL_2:
%storemerge718.reload = load i64, i64* %storemerge718.reg2mem
%6 = call i64 @FUNC(i64 %0, i64 %storemerge718.reload, i32 %storemerge26.reload)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %storemerge718.reload, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_23
LBL_3:
%9 = add i64 %storemerge718.reload, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %9, i64* %storemerge718.reg2mem
br i1 %13, label LBL_2, label LBL_4
LBL_4:
%14 = load i64, i64* @gv_1, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %14, i64* %storemerge619.reg2mem
br i1 %18, label LBL_5, label LBL_7
LBL_5:
%storemerge619.reload = load i64, i64* %storemerge619.reg2mem
%19 = call i64 @FUNC(i64 %0, i64 %storemerge619.reload, i32 %storemerge26.reload)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i64 %storemerge619.reload, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_23
LBL_6:
%22 = add i64 %storemerge619.reload, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
store i64 %22, i64* %storemerge619.reg2mem
br i1 %26, label LBL_5, label LBL_7
LBL_7:
%storemerge421 = load i64, i64* @gv_2, align 8
%27 = icmp eq i64 %storemerge421, 0
%28 = icmp eq i1 %27, false
store i64 %storemerge421, i64* %storemerge422.reg2mem
br i1 %28, label LBL_8, label LBL_12
LBL_8:
%storemerge422.reload = load i64, i64* %storemerge422.reg2mem
%29 = inttoptr i64 %storemerge422.reload to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 %30, i64* %storemerge520.reg2mem
br i1 %34, label LBL_9, label LBL_11
LBL_9:
%storemerge520.reload = load i64, i64* %storemerge520.reg2mem
%35 = call i64 @FUNC(i64 %0, i64 %storemerge520.reload, i32 %storemerge26.reload)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
store i64 %storemerge520.reload, i64* %rax.0.reg2mem
br i1 %37, label LBL_10, label LBL_23
LBL_10:
%38 = add i64 %storemerge520.reload, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
store i64 %38, i64* %storemerge520.reg2mem
br i1 %42, label LBL_9, label LBL_11
LBL_11:
%43 = add i64 %storemerge422.reload, 8
%44 = inttoptr i64 %43 to i64*
%storemerge4 = load i64, i64* %44, align 8
%45 = icmp eq i64 %storemerge4, 0
%46 = icmp eq i1 %45, false
store i64 %storemerge4, i64* %storemerge422.reg2mem
br i1 %46, label LBL_8, label LBL_12
LBL_12:
%47 = load i64, i64* @gv_3, align 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = icmp eq i64 %51, 0
%53 = icmp eq i1 %52, false
store i64 %49, i64* %storemerge323.reg2mem
br i1 %53, label LBL_13, label LBL_15
LBL_13:
%storemerge323.reload = load i64, i64* %storemerge323.reg2mem
%54 = call i64 @FUNC(i64 %0, i64 %storemerge323.reload, i32 %storemerge26.reload)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
store i64 %storemerge323.reload, i64* %rax.0.reg2mem
br i1 %56, label LBL_14, label LBL_23
LBL_14:
%57 = add i64 %storemerge323.reload, 8
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = icmp eq i64 %59, 0
%61 = icmp eq i1 %60, false
store i64 %57, i64* %storemerge323.reg2mem
br i1 %61, label LBL_13, label LBL_15
LBL_15:
%62 = load i64, i64* @gv_4, align 8
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = icmp eq i64 %64, 0
%66 = icmp eq i1 %65, false
store i64 %62, i64* %.pre32.reg2mem
store i64 %62, i64* %.reg2mem
store i64 %64, i64* %.reg2mem50
store i32 0, i32* %storemerge225.reg2mem
br i1 %66, label LBL_16, label LBL_22
LBL_16:
%storemerge225.reload = load i32, i32* %storemerge225.reg2mem
%.reload51 = load i64, i64* %.reg2mem50
%.reload = load i64, i64* %.reg2mem
%.pre32.reload = load i64, i64* %.pre32.reg2mem
%67 = inttoptr i64 %.reload51 to i64*
%68 = load i64, i64* %67, align 8
%69 = icmp eq i64 %68, 0
store i64 %.pre32.reload, i64* %.pre33.reg2mem
store i64 %.reload, i64* %.reg2mem52
br i1 %69, label LBL_21, label LBL_17
LBL_17:
%70 = inttoptr i64 %68 to i64*
%71 = load i64, i64* %70, align 8
%72 = icmp eq i64 %71, 0
%73 = icmp eq i1 %72, false
store i64 %68, i64* %sv_0.024.reg2mem
store i64 %.pre32.reload, i64* %.pre33.reg2mem
store i64 %.pre32.reload, i64* %.reg2mem52
br i1 %73, label LBL_18, label LBL_21
LBL_18:
%sv_0.024.reload = load i64, i64* %sv_0.024.reg2mem
%74 = call i64 @FUNC(i64 %0, i64 %sv_0.024.reload, i32 %storemerge26.reload)
%75 = trunc i64 %74 to i32
%76 = icmp eq i32 %75, 0
store i64 %sv_0.024.reload, i64* %rax.0.reg2mem
br i1 %76, label LBL_19, label LBL_23
LBL_19:
%77 = add i64 %sv_0.024.reload, 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = icmp eq i64 %79, 0
%81 = icmp eq i1 %80, false
store i64 %77, i64* %sv_0.024.reg2mem
br i1 %81, label LBL_18, label LBL_20
LBL_20:
%.pre.pre = load i64, i64* @gv_4, align 8
store i64 %.pre.pre, i64* %.pre33.reg2mem
store i64 %.pre.pre, i64* %.reg2mem52
br label LBL_21
LBL_21:
%.reload53 = load i64, i64* %.reg2mem52
%.pre33.reload = load i64, i64* %.pre33.reg2mem
%82 = add i32 %storemerge225.reload, 1
%83 = sext i32 %82 to i64
%84 = mul i64 %83, 8
%85 = add i64 %.reload53, %84
%86 = inttoptr i64 %85 to i64*
%87 = load i64, i64* %86, align 8
%88 = icmp eq i64 %87, 0
%89 = icmp eq i1 %88, false
store i64 %.pre33.reload, i64* %.pre32.reg2mem
store i64 %.reload53, i64* %.reg2mem
store i64 %87, i64* %.reg2mem50
store i32 %82, i32* %storemerge225.reg2mem
br i1 %89, label LBL_16, label LBL_22
LBL_22:
%90 = add nuw nsw i32 %storemerge26.reload, 1
%91 = icmp ult i32 %90, 2
store i32 %90, i32* %storemerge26.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %91, label LBL_1, label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.reload53, { 1, 0 }
uselistorder i64 %sv_0.024.reload, { 1, 0, 2 }
uselistorder i64 %storemerge323.reload, { 1, 0, 2 }
uselistorder i64 %storemerge520.reload, { 1, 0, 2 }
uselistorder i64 %storemerge619.reload, { 1, 0, 2 }
uselistorder i64 %storemerge718.reload, { 1, 0, 2 }
uselistorder i32* %storemerge26.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge718.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge619.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge422.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge520.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge323.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre32.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem50, { 2, 0, 1 }
uselistorder i32* %storemerge225.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.024.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre33.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem52, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 4, 5, 3, 2 }
uselistorder i64 8, { 0, 1, 2, 4, 3, 5, 6 }
uselistorder i64 (i64, i64, i32)* @match_option, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 8, 7, 1, 0, 9, 2, 11, 10, 4, 3, 12, 5, 13, 6 }
uselistorder i32 0, { 2, 0, 3, 4, 5, 6, 1 }
uselistorder i32 1, { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_23, { 0, 5, 3, 4, 2, 1 }
uselistorder label LBL_21, { 1, 0, 2 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ept_save_pdptrs_8631 | ept_save_pdptrs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 4660)
store i64 %11, i64* %arg1, align 8
%12 = call i64 @FUNC(i64 22136)
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = call i64 @FUNC(i64 39612)
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = call i64 @FUNC(i64 57072)
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
br label LBL_4
LBL_4:
%21 = add i64 %0, 32
%22 = call i64 @FUNC(i64 0, i64 %21)
%23 = add i64 %0, 40
%24 = call i64 @FUNC(i64 0, i64 %23)
ret i64 %24
uselistorder i64 %0, { 6, 5, 0, 1, 2, 3, 4, 7 }
uselistorder i64 (i64, i64)* @__set_bit, { 1, 0 }
uselistorder i64 (i64)* @vmcs_read64, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | initCropMasks_12479 | initCropMasks | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%xmm0.12.reg2mem = alloca i128
%indvars.iv.reg2mem = alloca i64
%xmm0.04.reg2mem = alloca i128
%indvars.iv6.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 24
store i64 0, i64* %indvars.iv6.reg2mem
br label LBL_1
LBL_1:
%xmm0.04.reload = load i128, i128* %xmm0.04.reg2mem
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%11 = call i128 @FUNC(i128 %xmm0.04.reload, i128 %xmm0.04.reload)
%12 = call i64 @FUNC(i128 %11)
%13 = mul i64 %indvars.iv6.reload, 8
%14 = add i64 %10, %13
%15 = inttoptr i64 %14 to i64*
store i64 %12, i64* %15, align 8
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next7, 4
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
store i128 %11, i128* %xmm0.04.reg2mem
br i1 %exitcond8, label LBL_2, label LBL_1
LBL_2:
%16 = add i64 %0, 56
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 60
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %0, 64
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %0, 68
%23 = inttoptr i64 %22 to i16*
store i16 0, i16* %23, align 2
%24 = add i64 %0, 70
%25 = inttoptr i64 %24 to i16*
store i16 0, i16* %25, align 2
%26 = add i64 %0, 72
%27 = inttoptr i64 %26 to i16*
store i16 0, i16* %27, align 2
%28 = add i64 %0, 74
%29 = inttoptr i64 %28 to i16*
store i16 0, i16* %29, align 2
%30 = add i64 %0, 76
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
%32 = add i64 %0, 80
%33 = inttoptr i64 %32 to i32*
store i32 0, i32* %33, align 4
store i64 0, i64* %indvars.iv.reg2mem
store i128 %11, i128* %xmm0.12.reg2mem
br label LBL_3
LBL_3:
%xmm0.12.reload = load i128, i128* %xmm0.12.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = mul i64 %indvars.iv.reload, 32
%35 = add i64 %34, %0
%36 = add i64 %35, 88
%37 = call i128 @FUNC(i128 %xmm0.12.reload, i128 %xmm0.12.reload)
%38 = call i64 @FUNC(i128 %37)
%39 = inttoptr i64 %36 to i64*
store i64 %38, i64* %39, align 8
%40 = add i64 %35, 96
%41 = call i128 @FUNC(i128 %37, i128 %37)
%42 = call i64 @FUNC(i128 %41)
%43 = inttoptr i64 %40 to i64*
store i64 %42, i64* %43, align 8
%44 = add i64 %35, 104
%45 = call i128 @FUNC(i128 %41, i128 %41)
%46 = call i64 @FUNC(i128 %45)
%47 = inttoptr i64 %44 to i64*
store i64 %46, i64* %47, align 8
%48 = add i64 %35, 112
%49 = call i128 @FUNC(i128 %45, i128 %45)
%50 = call i64 @FUNC(i128 %49)
%51 = inttoptr i64 %48 to i64*
store i64 %50, i64* %51, align 8
%52 = mul nuw nsw i64 %indvars.iv.reload, 40
%53 = add i64 %52, %0
%54 = add i64 %53, 408
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = add i64 %53, 412
%57 = inttoptr i64 %56 to i32*
store i32 0, i32* %57, align 4
%58 = add i64 %53, 416
%59 = inttoptr i64 %58 to i32*
store i32 0, i32* %59, align 4
%60 = add i64 %53, 420
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = add i64 %53, 424
%63 = inttoptr i64 %62 to i32*
store i32 0, i32* %63, align 4
%64 = add i64 %53, 428
%65 = inttoptr i64 %64 to i32*
store i32 0, i32* %65, align 4
%66 = add i64 %53, 432
%67 = inttoptr i64 %66 to i64*
store i64 0, i64* %67, align 8
%68 = add i64 %53, 440
%69 = inttoptr i64 %68 to i64*
store i64 0, i64* %69, align 8
%70 = mul i64 %indvars.iv.reload, 8
%71 = add i64 %70, %0
%72 = add i64 %71, 808
%73 = inttoptr i64 %72 to i32*
store i32 0, i32* %73, align 4
%74 = add i64 %71, 812
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i128 %49, i128* %xmm0.12.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%76 = add i64 %0, 888
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = add i64 %0, 892
%79 = inttoptr i64 %78 to i32*
store i32 0, i32* %79, align 4
ret i64 %0
uselistorder i128 %45, { 2, 1, 0 }
uselistorder i128 %41, { 2, 1, 0 }
uselistorder i128 %37, { 2, 1, 0 }
uselistorder i64 %35, { 1, 0, 2, 3 }
uselistorder i64 %indvars.iv.reload, { 0, 3, 1, 2 }
uselistorder i128 %xmm0.12.reload, { 1, 0 }
uselistorder i128 %xmm0.04.reload, { 1, 0 }
uselistorder i64 %0, { 4, 5, 6, 0, 1, 2, 7, 8, 9, 10, 11, 12, 13, 14, 15, 3, 16, 17, 18, 19 }
uselistorder i64* %indvars.iv6.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.04.reg2mem, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.12.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 0, { 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
} | 1 |
BinRealVul | asn1_get_octet_der_11632 | asn1_get_octet_der | define i64 @FUNC(i32* %arg1, i32 %arg2, i64* %arg3, i64* %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = icmp eq i32 %arg2, 0
%3 = icmp slt i32 %arg2, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = trunc i64 %1 to i32
%8 = ptrtoint i32* %arg1 to i64
%9 = zext i32 %arg2 to i64
%10 = bitcast i32* %sv_0 to i64*
%11 = call i64 @FUNC(i64 %8, i64 %9, i64* nonnull %10)
%12 = trunc i64 %11 to i32
%13 = bitcast i64* %arg6 to i32*
store i32 %12, i32* %13, align 4
%14 = icmp slt i32 %7, 0
%15 = icmp eq i1 %14, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_4
LBL_2:
%sext = mul i64 %arg5, 4294967296
%16 = load i32, i32* %sv_0, align 4
%17 = add i32 %16, %7
%18 = bitcast i64* %arg3 to i32*
store i32 %17, i32* %18, align 4
%19 = and i64 %1, 4294967295
%20 = ashr exact i64 %sext, 32
%21 = icmp slt i64 %20, %19
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = sext i32 %16 to i64
%23 = add i64 %22, %8
%24 = inttoptr i64 %23 to i64*
%25 = call i64* @memcpy(i64* %arg4, i64* %24, i32 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 %arg2, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | configure_alarms_3296 | configure_alarms | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i32
%storemerge210.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i32
%storemerge3.lcssa.reg2mem = alloca i32
%storemerge35.reg2mem = alloca i32
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64 %arg1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC()
call void @exit(i32 0)
unreachable
LBL_2:
%5 = call i64 @FUNC(i64 %arg1)
%6 = inttoptr i64 %5 to i8*
%7 = call i8* @strtok(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %5)
br label LBL_18
LBL_4:
%11 = trunc i64 %0 to i32
%12 = add i32 %11, -1
%13 = icmp sgt i32 %12, 0
store i8* %7, i8** %storemerge210.reg2mem
store i32 0, i32* %sv_0.19.reg2mem
br label LBL_13
LBL_5:
%14 = inttoptr i64 %23 to i8*
%15 = call i32 @strcmp(i8* %14, i8* %storemerge210.reload)
%16 = icmp eq i32 %15, 0
store i32 %storemerge35.reload, i32* %storemerge3.lcssa.reg2mem
br i1 %16, label LBL_8, label LBL_6
LBL_6:
%17 = add nuw i32 %storemerge35.reload, 1
%18 = icmp slt i32 %17, %12
store i32 %17, i32* %storemerge35.reg2mem
store i32 %17, i32* %storemerge3.lcssa.reg2mem
br i1 %18, label LBL_7, label LBL_8
LBL_7:
%storemerge35.reload = load i32, i32* %storemerge35.reg2mem
%19 = sext i32 %storemerge35.reload to i64
%20 = mul i64 %19, 8
%21 = add i64 %20, ptrtoint (i64* @gv_0 to i64)
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i32 %storemerge35.reload, i32* %storemerge3.lcssa.reg2mem
br i1 %25, label LBL_5, label LBL_8
LBL_8:
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%26 = icmp eq i32 %storemerge3.lcssa.reload, %12
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0), i8* %storemerge210.reload)
store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_10:
%30 = icmp slt i32 %storemerge3.lcssa.reload, %sv_0.19.reload
store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_12, label LBL_11
LBL_11:
%31 = sext i32 %storemerge3.lcssa.reload to i64
%32 = mul i64 %31, 8
%33 = add i64 %32, ptrtoint (i64* @gv_0 to i64)
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = sext i32 %sv_0.19.reload to i64
%37 = mul i64 %36, 8
%38 = add i64 %37, ptrtoint (i64* @gv_0 to i64)
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
store i64 %40, i64* %34, align 8
store i64 %35, i64* %39, align 8
%41 = add i32 %sv_0.19.reload, 1
store i32 %41, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%42 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%43 = icmp eq i8* %42, null
%44 = icmp eq i1 %43, false
store i8* %42, i8** %storemerge210.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.19.reg2mem
br i1 %44, label LBL_13, label LBL_14
LBL_13:
%sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem
%storemerge210.reload = load i8*, i8** %storemerge210.reg2mem
store i32 0, i32* %storemerge35.reg2mem
store i32 0, i32* %storemerge3.lcssa.reg2mem
br i1 %13, label LBL_7, label LBL_8
LBL_14:
%45 = call i64 @FUNC(i64 %5)
%46 = icmp eq i32 %sv_0.0.reload, 0
br i1 %46, label LBL_18, label LBL_15
LBL_15:
%47 = icmp slt i32 %sv_0.0.reload, %12
store i32 %sv_0.0.reload, i32* %storemerge.lcssa.reg2mem
br i1 %47, label LBL_16, label LBL_19
LBL_16:
%48 = sext i32 %sv_0.0.reload to i64
%wide.trip.count = sext i32 %12 to i64
store i64 %48, i64* %indvars.iv.reg2mem
br label LBL_17
LBL_17:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%49 = mul i64 %indvars.iv.reload, 8
%50 = add i64 %49, ptrtoint (i64* @gv_0 to i64)
%51 = inttoptr i64 %50 to i64*
store i64 0, i64* %51, align 8
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %12, i32* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_19, label LBL_17
LBL_18:
%52 = call i64 @FUNC()
call void @exit(i32 1)
unreachable
LBL_19:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%53 = zext i32 %storemerge.lcssa.reload to i64
ret i64 %53
uselistorder i8* %storemerge210.reload, { 1, 0 }
uselistorder i32 %sv_0.19.reload, { 4, 1, 3, 2, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 3, 4, 1 }
uselistorder i32 %storemerge3.lcssa.reload, { 2, 1, 0 }
uselistorder i64 %23, { 1, 0 }
uselistorder i32 %storemerge35.reload, { 1, 3, 0, 2 }
uselistorder i32 %12, { 0, 1, 3, 4, 5, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i32* %storemerge35.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 4, 0, 2, 3, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 ptrtoint (i64* @gv_0 to i64), { 3, 0, 1, 2 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i8* null, { 1, 2, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 ()* @show_available_alarms, { 1, 0 }
uselistorder i32 0, { 6, 1, 2, 5, 0, 3, 4, 7, 8 }
uselistorder i64* @gv_0, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_8, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | gen_check_privilege_14587 | gen_check_privilege | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = add i64 %4, 4
%7 = inttoptr i64 %6 to i32*
store i32 1, i32* %7, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | vorbis_parse_setup_hdr_modes_15703 | vorbis_parse_setup_hdr_modes | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = call i64 @FUNC(i64 %3, i64 6)
%5 = trunc i64 %4 to i32
%6 = add i32 %5, 1
%7 = bitcast i64* %arg1 to i32*
store i32 %6, i32* %7, align 4
%8 = bitcast i64* %rdi to i32*
%sext3 = mul i64 %1, 4294967296
%9 = ashr exact i64 %sext3, 28
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = load i32, i32* %8, align 8
%14 = zext i32 %13 to i64
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %14)
%16 = icmp eq i32 %13, 0
store i32 0, i32* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i32, i32* %.reg2mem
%17 = load i64, i64* %12, align 8
%18 = mul i32 %storemerge2.reload, 16
%19 = and i32 %18, 4080
%20 = zext i32 %19 to i64
%21 = add i64 %17, %20
%22 = call i64 @FUNC(i64 %3)
%23 = trunc i64 %22 to i32
%24 = inttoptr i64 %21 to i32*
store i32 %23, i32* %24, align 4
%25 = call i64 @FUNC(i64 %3, i64 16)
%26 = trunc i64 %25 to i32
%27 = add i64 %21, 4
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = call i64 @FUNC(i64 %3, i64 16)
%30 = trunc i64 %29 to i32
%31 = add i64 %21, 8
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = call i64 @FUNC(i64 %3, i64 8)
%34 = trunc i64 %33 to i32
%35 = add i64 %21, 12
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = load i32, i32* %32, align 4
%38 = load i32, i32* %28, align 4
%39 = zext i32 %38 to i64
%40 = load i32, i32* %24, align 4
%41 = zext i32 %40 to i64
%42 = and i64 %33, 4294967295
%43 = zext i32 %37 to i64
%44 = zext i32 %.reload to i64
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @gv_1, i64 0, i64 0), i64 %44, i64 %41, i64 %39, i64 %43, i64 %42)
%46 = mul i32 %storemerge2.reload, 16777216
%sext = add i32 %46, 16777216
%47 = ashr exact i32 %sext, 24
%48 = urem i32 %47, 256
%49 = load i32, i32* %8, align 8
%50 = icmp ult i32 %48, %49
store i32 %48, i32* %.reg2mem
store i32 %47, i32* %storemerge2.reg2mem
br i1 %50, label LBL_1, label LBL_2
LBL_2:
ret i64 0
uselistorder i32 %storemerge2.reload, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i32 16777216, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | musb_rx_req_5031 | musb_rx_req | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = ashr exact i64 %sext, 28
%3 = add nsw i64 %2, %1
%4 = mul i64 %3, 4
%5 = add i64 %4, %0
%6 = add i64 %5, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_7, label LBL_1
LBL_1:
%11 = add i64 %5, 28
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label LBL_7, label LBL_2
LBL_2:
%15 = add i64 %5, 36
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %5, 40
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, %17
%22 = add i64 %5, 20
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp ult i32 %21, %24
br i1 %25, label LBL_3, label LBL_7
LBL_3:
%26 = zext i32 %20 to i64
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i32 %17, i64 %26)
%28 = load i32, i32* %16, align 4
%29 = load i32, i32* %19, align 4
%30 = add i32 %29, %28
store i32 %30, i32* %16, align 4
%31 = add i64 %5, 48
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %5, 56
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %5, 8
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = load i32, i32* %16, align 4
%40 = sub i32 %38, %39
%41 = sub i32 %35, %40
%42 = xor i32 %40, %35
%43 = xor i32 %41, %35
%44 = and i32 %43, %42
%45 = icmp slt i32 %44, 0
%46 = icmp eq i32 %41, 0
%47 = icmp slt i32 %41, 0
%48 = icmp ne i1 %47, %45
%49 = or i1 %46, %48
%50 = select i1 %49, i32 %35, i32 %40
store i32 %50, i32* %19, align 4
%51 = add i64 %5, 64
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = and i32 %53, -2
store i32 %54, i32* %52, align 4
%55 = trunc i64 %1 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_4, label LBL_5
LBL_4:
%58 = and i32 %53, -112
%59 = or i32 %58, 96
store i32 %59, i32* %52, align 4
br label LBL_6
LBL_5:
%60 = add i64 %5, 60
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = and i32 %62, -2
store i32 %63, i32* %61, align 4
%64 = load i32, i32* %52, align 4
%65 = and i32 %64, -15
store i32 %65, i32* %52, align 4
%66 = load i32, i32* %61, align 4
%67 = and i32 %66, -31
store i32 %67, i32* %61, align 4
%68 = load i32, i32* %52, align 4
%69 = or i32 %68, 96
store i32 %69, i32* %52, align 4
%70 = load i32, i32* %61, align 4
%71 = or i32 %70, 128
store i32 %71, i32* %61, align 4
br label LBL_6
LBL_6:
%72 = and i64 %1, 4294967295
%73 = call i64 @FUNC(i64 %0, i64 %72, i64 1)
store i64 %73, i64* %storemerge.reg2mem
br label LBL_13
LBL_7:
%74 = add i64 %5, 56
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = and i32 %76, 960
%78 = icmp eq i32 %77, 0
%79 = icmp eq i1 %78, false
%80 = urem i32 %76, 1024
%spec.select = select i1 %79, i32 64, i32 %80
%81 = trunc i64 %1 to i32
%82 = icmp eq i32 %81, 0
%83 = icmp eq i1 %82, false
store i32 %spec.select, i32* %sv_0.0.reg2mem
br i1 %83, label LBL_12, label LBL_8
LBL_8:
%84 = inttoptr i64 %5 to i32*
%85 = load i32, i32* %84, align 4
%86 = icmp eq i32 %85, 2
%87 = icmp eq i1 %86, false
%88 = add i64 %0, 8
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
br i1 %87, label LBL_10, label LBL_9
LBL_9:
%91 = add i32 %90, -8
%92 = sub i32 7, %90
%93 = and i32 %92, %90
%94 = icmp slt i32 %93, 0
%95 = icmp eq i32 %91, 0
%96 = icmp slt i32 %91, 0
%97 = icmp eq i1 %96, %94
%98 = icmp eq i1 %95, false
%99 = icmp eq i1 %97, %98
%100 = select i1 %99, i32 8, i32 %90
store i32 %100, i32* %storemerge4.reg2mem
br label LBL_11
LBL_10:
%101 = add i32 %90, -64
%102 = sub i32 63, %90
%103 = and i32 %102, %90
%104 = icmp slt i32 %103, 0
%105 = icmp eq i32 %101, 0
%106 = icmp slt i32 %101, 0
%107 = icmp eq i1 %106, %104
%108 = icmp eq i1 %105, false
%109 = icmp eq i1 %107, %108
%110 = select i1 %109, i32 64, i32 %90
store i32 %110, i32* %storemerge4.reg2mem
br label LBL_11
LBL_11:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%111 = sub i32 %90, %storemerge4.reload
store i32 %111, i32* %89, align 4
store i32 %storemerge4.reload, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%112 = zext i32 %sv_0.0.reload to i64
%113 = call i64 @FUNC(i64 %0, i64 %5, i32 %81, i64 1, i64 %112, i64 4198740)
store i64 %113, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %101, { 1, 0 }
uselistorder i32 %91, { 1, 0 }
uselistorder i32 %90, { 2, 7, 0, 6, 8, 4, 1, 5, 3 }
uselistorder i32* %61, { 1, 0, 3, 2, 4, 5 }
uselistorder i32* %52, { 2, 1, 4, 3, 0, 5, 6 }
uselistorder i32 %41, { 1, 2, 0 }
uselistorder i32 %40, { 1, 0, 2 }
uselistorder i32 %35, { 2, 0, 1, 3 }
uselistorder i32 %20, { 1, 0 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32* %16, { 0, 2, 1, 3 }
uselistorder i64 %5, { 5, 11, 6, 0, 1, 2, 3, 4, 7, 8, 9, 10, 12 }
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 64, { 1, 0 }
uselistorder i32 96, { 1, 0 }
uselistorder i64 28, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | ff_els_decode_unsigned_33 | ff_els_decode_unsigned | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%rsi.4.reg2mem = alloca i64
%.reg2mem46 = alloca i32
%rsi.3.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi32.reg2mem = alloca i32*
%sv_1.013.reg2mem = alloca i32
%sv_0.014.reg2mem = alloca i32
%sv_2.015.reg2mem = alloca i32
%sv_3.216.reg2mem = alloca i64
%rsi.517.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_23
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = bitcast i64* %rdi to i32*
%6 = add i64 %4, 16
%7 = ptrtoint i32* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%8 = mul i64 %indvars.iv.reload, 4
%9 = add i64 %6, %8
%10 = call i64 @FUNC(i64 %7, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%14 = icmp ult i64 %indvars.iv.next, 11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %14, label LBL_2, label LBL_5
LBL_4:
%15 = trunc i64 %indvars.iv.reload to i32
%16 = icmp slt i32 %15, 10
br i1 %16, label LBL_6, label LBL_5
LBL_5:
store i32 -1, i32* %arg1, align 4
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_23
LBL_6:
%17 = icmp eq i32 %15, 0
%18 = icmp eq i1 %17, false
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %18, label LBL_7, label LBL_23
LBL_7:
%19 = icmp eq i64 %9, 0
%20 = icmp eq i1 %19, false
store i64 %9, i64* %rsi.2.reg2mem
br i1 %20, label LBL_9, label LBL_8
LBL_8:
%21 = call i64 @FUNC(i64 0, i64 64)
store i64 %21, i64* %arg2, align 8
%22 = call i64* @memset(i64* inttoptr (i64 64 to i64*), i32 0, i32 64)
%23 = add i64 %4, 8
%24 = inttoptr i64 %23 to i32*
store i32 64, i32* %24, align 4
%25 = add i64 %4, 12
%26 = inttoptr i64 %25 to i32*
store i32 10, i32* %26, align 4
store i64 0, i64* %rsi.2.reg2mem
br label LBL_9
LBL_9:
%27 = icmp sgt i32 %15, 0
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %27, label LBL_10, label LBL_22
LBL_10:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%sext = mul i64 %indvars.iv.reload, 4294967296
%28 = ashr exact i64 %sext, 29
%29 = add i64 %4, 8
%30 = inttoptr i64 %29 to i32*
%31 = add i64 %4, 12
%32 = inttoptr i64 %31 to i32*
store i64 %rsi.2.reload, i64* %rsi.517.reg2mem
store i32 0, i32* %sv_2.015.reg2mem
store i32 0, i32* %sv_0.014.reg2mem
store i32 0, i32* %sv_1.013.reg2mem
br label LBL_11
LBL_11:
%sv_1.013.reload = load i32, i32* %sv_1.013.reg2mem
%sv_0.014.reload = load i32, i32* %sv_0.014.reg2mem
%rsi.517.reload = load i64, i64* %rsi.517.reg2mem
%33 = icmp eq i32 %sv_1.013.reload, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_13, label LBL_12
LBL_12:
%35 = add i64 %rsi.517.reload, %28
store i64 %35, i64* %storemerge4.reg2mem
br label LBL_20
LBL_13:
%sv_2.015.reload = load i32, i32* %sv_2.015.reg2mem
%sv_3.216.reload = load i64, i64* %sv_3.216.reg2mem
%36 = add i64 %sv_3.216.reload, 4
%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 i32 %38, i32* %.reg2mem46
store i64 %rsi.517.reload, i64* %rsi.4.reg2mem
br i1 %40, label LBL_19, label LBL_14
LBL_14:
%41 = load i32, i32* %30, align 4
%42 = sext i32 %41 to i64
%43 = load i32, i32* %32, align 4
%44 = add i32 %43, 2
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 8
%47 = icmp ult i64 %46, %42
store i32* %37, i32** %.pre-phi32.reg2mem
store i32 %43, i32* %.reg2mem
store i64 %rsi.517.reload, i64* %rsi.3.reg2mem
br i1 %47, label LBL_18, label LBL_15
LBL_15:
%48 = add i32 %41, 64
%49 = sext i32 %48 to i64
%50 = call i64 @FUNC(i64 %rsi.517.reload, i64 %49)
store i64 %50, i64* %arg2, align 8
%51 = icmp eq i32 %48, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_17, label LBL_16
LBL_16:
%53 = call i64 @FUNC(i64 %49)
store i32 -12, i32* %arg1, align 4
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_23
LBL_17:
%54 = sub i64 %sv_3.216.reload, %rsi.517.reload
%55 = and i64 %54, -8
%56 = load i32, i32* %30, align 4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %49
%59 = inttoptr i64 %58 to i64*
%60 = call i64* @memset(i64* %59, i32 0, i32 64)
%61 = load i32, i32* %30, align 4
%62 = add i32 %61, 64
store i32 %62, i32* %30, align 4
%.pre = load i32, i32* %32, align 4
%.pre29 = or i64 %55, 4
%.pre31 = inttoptr i64 %.pre29 to i32*
store i32* %.pre31, i32** %.pre-phi32.reg2mem
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %rsi.3.reg2mem
br label LBL_18
LBL_18:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%.reload = load i32, i32* %.reg2mem
%.pre-phi32.reload = load i32*, i32** %.pre-phi32.reg2mem
store i32 %.reload, i32* %.pre-phi32.reload, align 4
%63 = load i32, i32* %32, align 4
%64 = add i32 %63, 2
store i32 %64, i32* %32, align 4
%.pre27 = load i32, i32* %.pre-phi32.reload, align 4
store i32 %.pre27, i32* %.reg2mem46
store i64 %rsi.3.reload, i64* %rsi.4.reg2mem
br label LBL_19
LBL_19:
%rsi.4.reload = load i64, i64* %rsi.4.reg2mem
%.reload47 = load i32, i32* %.reg2mem46
%65 = add i32 %.reload47, %sv_2.015.reload
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 8
%68 = add i64 %67, %rsi.4.reload
store i64 %68, i64* %storemerge4.reg2mem
br label LBL_20
LBL_20:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%69 = call i64 @FUNC(i64 %7, i64 %storemerge4.reload)
%70 = trunc i64 %69 to i32
%71 = load i32, i32* %5, align 8
%72 = icmp eq i32 %71, 0
store i32 %70, i32* %rax.0.shrunk.reg2mem
br i1 %72, label LBL_21, label LBL_23
LBL_21:
%73 = mul i32 %sv_0.014.reload, 2
%74 = add i32 %73, %70
%75 = add nuw nsw i32 %sv_1.013.reload, 1
%76 = icmp ult i32 %75, %15
store i64 %storemerge4.reload, i64* %rsi.517.reg2mem
store i64 %storemerge4.reload, i64* %sv_3.216.reg2mem
store i32 %70, i32* %sv_2.015.reg2mem
store i32 %74, i32* %sv_0.014.reg2mem
store i32 %75, i32* %sv_1.013.reg2mem
store i32 %74, i32* %sv_0.0.lcssa.reg2mem
br i1 %76, label LBL_11, label LBL_22
LBL_22:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%77 = urem i32 %15, 32
%78 = icmp eq i32 %77, 0
%notmask = shl nsw i32 -1, %77
%79 = sub i32 0, %notmask
%phitmp2 = sub i32 %79, 1
%storemerge = select i1 %78, i32 0, i32 %phitmp2
%80 = add i32 %sv_0.0.lcssa.reload, %storemerge
store i32 %80, i32* %rax.0.shrunk.reg2mem
br label LBL_23
LBL_23:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32 %70, { 1, 2, 0 }
uselistorder i64 %storemerge4.reload, { 2, 1, 0 }
uselistorder i64 %49, { 1, 0, 2 }
uselistorder i64 %sv_3.216.reload, { 1, 0 }
uselistorder i64 %rsi.517.reload, { 3, 2, 1, 0, 4 }
uselistorder i32* %32, { 2, 1, 0, 3 }
uselistorder i32* %30, { 1, 0, 2, 3 }
uselistorder i32 %15, { 0, 2, 1, 4, 3 }
uselistorder i64 %indvars.iv.reload, { 3, 1, 0, 2 }
uselistorder i64 %4, { 4, 3, 1, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.517.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.216.reg2mem, { 1, 0 }
uselistorder i32* %sv_2.015.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.014.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.013.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 5, 1, 6, 2, 4, 3 }
uselistorder i32 2, { 0, 2, 3, 1 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i32 64, { 0, 1, 3, 4, 2 }
uselistorder i64 (i64, i64)* @av_realloc, { 1, 0 }
uselistorder i32 10, { 1, 0 }
uselistorder i64 (i64, i64)* @ff_els_decode_bit, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i32* %arg1, { 1, 0, 2 }
uselistorder label LBL_23, { 4, 0, 3, 1, 5, 2 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | append_quoted_11406 | append_quoted | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.228.reg2mem = alloca i64
%sv_1.229.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.111.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sext = mul i64 %arg4, 4294967296
%1 = and i64 %arg4, 4294967295
%2 = ashr exact i64 %sext, 32
%3 = bitcast i64* %sv_2 to i8*
%4 = ptrtoint i64* %sv_2 to i64
store i64 %arg2, i64* %sv_0.0.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
br label LBL_1
LBL_1:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%5 = add i64 %sv_1.0.reload, %2
%6 = icmp ult i64 %5, %arg3
store i64 %5, i64* %.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.111.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.229.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.228.reg2mem
br i1 %6, label LBL_2, label LBL_7
LBL_2:
%sv_0.111.reload = load i64, i64* %sv_0.111.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = add i64 %sv_0.111.reload, %2
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%.off9 = add i8 %9, -32
%10 = icmp ult i8 %.off9, 95
store i64 %7, i64* %sv_0.2.reg2mem
store i64 %.reload, i64* %sv_1.2.reg2mem
br i1 %10, label LBL_3, label LBL_5
LBL_3:
%11 = zext i8 %9 to i32
%12 = call i8* @strchr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i32 %11)
%13 = icmp eq i8* %12, null
%14 = icmp eq i1 %13, false
store i64 %7, i64* %sv_0.2.reg2mem
store i64 %.reload, i64* %sv_1.2.reg2mem
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = add i64 %.reload, 1
%16 = add i64 %7, 1
%17 = add i64 %15, %2
%18 = icmp ult i64 %17, %arg3
store i64 %17, i64* %.reg2mem
store i64 %16, i64* %sv_0.111.reg2mem
store i64 %16, i64* %sv_0.2.reg2mem
store i64 %15, i64* %sv_1.2.reg2mem
br i1 %18, label LBL_2, label LBL_5
LBL_5:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%19 = icmp eq i64 %sv_0.2.reload, %sv_0.0.reload
store i64 %sv_1.2.reload, i64* %sv_1.229.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.228.reg2mem
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = sub i64 %sv_0.2.reload, %sv_0.0.reload
%21 = call i64 @FUNC(i64 %0, i64 %sv_0.0.reload, i64 %20, i64 %1)
store i64 %sv_1.2.reload, i64* %sv_1.229.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.228.reg2mem
br label LBL_7
LBL_7:
%sv_1.229.reload = load i64, i64* %sv_1.229.reg2mem
%22 = add i64 %sv_1.229.reload, %2
%23 = icmp ult i64 %22, %arg3
br i1 %23, label LBL_8, label LBL_12
LBL_8:
%sv_0.228.reload = load i64, i64* %sv_0.228.reg2mem
%24 = add i64 %sv_0.228.reload, %2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%.off = add i8 %26, -32
%27 = icmp ult i8 %.off, 95
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = zext i8 %26 to i32
%29 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 %28)
%30 = call i64 @FUNC(i64 %0, i64 %4, i64 3)
br label LBL_11
LBL_10:
store i64 92, i64* %sv_2, align 8
%31 = call i64 @FUNC(i64 %0, i64 %4, i64 2)
br label LBL_11
LBL_11:
%32 = add i64 %22, 1
%33 = add i64 %24, 1
store i64 %33, i64* %sv_0.0.reg2mem
store i64 %32, i64* %sv_1.0.reg2mem
br label LBL_1
LBL_12:
ret i64 %22
uselistorder i64 %sv_0.2.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.2.reload, { 1, 0 }
uselistorder i8 %9, { 1, 0 }
uselistorder i64 %7, { 2, 0, 1, 3 }
uselistorder i64 %.reload, { 2, 0, 1 }
uselistorder i64 %sv_0.0.reload, { 4, 3, 1, 5, 0, 2 }
uselistorder i64* %sv_2, { 1, 2, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.111.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.229.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.228.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @put_stringbuf_mem, { 2, 1, 0 }
uselistorder i8 95, { 1, 0 }
uselistorder i8 -32, { 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | simple_empty_6585 | simple_empty | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = add i64 %arg1, 16
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
store i64 %arg1, i64* %storemerge1.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = add i64 %storemerge1.reload, 16
%5 = call i64 @FUNC(i64 %4, i64 1)
%6 = call i64 @FUNC(i64 %storemerge1.reload)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = call i64 @FUNC(i64 %4)
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%10 = add i64 %storemerge1.reload, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %storemerge1.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_1, label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%15 = call i64 @FUNC(i64 %0)
ret i64 %sv_0.0.reload
uselistorder i64 %storemerge1.reload, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | userns_install_13719 | userns_install | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC()
%2 = icmp eq i64 %1, %0
%3 = icmp eq i1 %2, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 2
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_6
LBL_2:
%10 = load i64, i64* @gv_0, align 8
%11 = add i64 %10, 8
%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, 1
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_6
LBL_3:
%17 = call i64 @FUNC(i64 %0, i64 0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_6
LBL_4:
%21 = call i64 @FUNC()
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %23, label LBL_5, label LBL_6
LBL_5:
%24 = inttoptr i64 %21 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = call i64 @FUNC(i64 %0)
%28 = call i64 @FUNC(i64 %21, i64 %27)
%29 = call i64 @FUNC(i64 %21)
store i64 %29, 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 %21, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder label LBL_6, { 5, 0, 1, 2, 3, 4 }
} | 0 |
BinRealVul | hmp_memchar_write_3247 | hmp_memchar_write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %sv_0, align 8
%4 = call i64 @FUNC(i64 %2, i64 %3, i64 0, i64 0, i64* nonnull %sv_0)
%5 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
ret i64 %5
uselistorder i64 (i64, i8*)* @qdict_get_str, { 1, 0 }
} | 0 |
BinRealVul | sig_message_public_5133 | sig_message_public | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i8* %arg4, i8* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg5 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i8* %arg3, null
%3 = icmp eq i1 %2, false
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %1, i64 %0)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = ptrtoint i8* %arg2 to i64
%9 = call i64 @FUNC(i64 %6, i64 %8, i64 %1)
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
} | 0 |
BinRealVul | Media_CheckDataEntry_5725 | Media_CheckDataEntry | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = icmp eq i64 %arg1, 0
%2 = trunc i64 %0 to i32
%3 = icmp eq i32 %2, 0
%or.cond = or i1 %1, %3
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %arg1)
%5 = trunc i64 %4 to i32
%6 = icmp ugt i32 %2, %5
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_11, label LBL_2
LBL_2:
%7 = add nsw i64 %0, 4294967295
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %arg1, i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 2, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_11
LBL_3:
%12 = inttoptr i64 %9 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 1
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_11
LBL_4:
%16 = add i64 %9, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%.off = add i32 %18, -5
%switch = icmp ult i32 %.off, 2
store i64 3, i64* %rax.0.reg2mem
br i1 %switch, label LBL_5, label LBL_11
LBL_5:
%19 = add i64 %arg1, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 4
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = add i64 %9, 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i64 0, i64 7, i64* nonnull %sv_0)
store i64 %33, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_7:
%34 = add i64 %25, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = add i64 %9, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = call i64 @FUNC(i64 %39, i64 %36, i64 7, i64* nonnull %sv_0)
store i64 %40, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_8:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%41 = icmp eq i32 %storemerge, 0
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = and i64 %storemerge.in.reload, 4294967295
store i64 %42, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%43 = load i64, i64* %sv_0, align 8
%44 = call i64 @FUNC(i64 %43)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge.in.reload, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %sv_0, { 2, 0, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 1, 2, 3, 5, 4 }
uselistorder i64 (i64, i64, i64, i64*)* @gf_isom_datamap_new, { 1, 0 }
uselistorder i64 8, { 1, 2, 3, 4, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 1, { 2, 3, 1, 0 }
uselistorder label LBL_11, { 5, 6, 0, 1, 2, 4, 3 }
} | 0 |
BinRealVul | print_maps_5221 | print_maps | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 1024)
%2 = bitcast i64* %arg1 to i8*
%3 = call %_IO_FILE* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%4 = icmp eq %_IO_FILE* %3, null
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* nonnull %3, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_1, i64* nonnull %sv_2, i64* nonnull %sv_3, i64* nonnull %sv_0)
%6 = icmp eq i32 %5, 4
br i1 %6, label LBL_2, label LBL_7
LBL_2:
%7 = ptrtoint i64* %sv_4 to i64
%8 = bitcast i64* %sv_2 to i8*
%9 = add i64 %0, 1284
%10 = add i64 %0, 1280
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %0, 1024
%13 = add i64 %7, -8
%14 = inttoptr i64 %13 to i64*
%15 = ptrtoint i64* %sv_0 to i64
%16 = add i64 %7, -16
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %7, -24
%19 = inttoptr i64 %18 to i64*
%20 = add i64 %7, -32
%21 = inttoptr i64 %20 to i64*
%22 = ptrtoint i64* %sv_2 to i64
%23 = inttoptr i64 %12 to i8*
%24 = inttoptr i64 %9 to i8*
br label LBL_3
LBL_3:
%25 = load i64, i64* %sv_3, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label LBL_4, label LBL_5
LBL_4:
%27 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* nonnull %3, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_1, i64* nonnull %sv_2, i64* nonnull %sv_3, i64* nonnull %sv_0)
%28 = icmp eq i32 %27, 4
br i1 %28, label LBL_3, label LBL_7
LBL_5:
%29 = call i32 @strcmp(i8* nonnull %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_6, label LBL_4
LBL_6:
%32 = load i64, i64* %sv_3, align 8
%33 = load i64, i64* %sv_1, align 8
%34 = load i32, i32* %11, align 4
store i64 %15, i64* %14, align 8
store i64 %32, i64* %17, align 8
store i64 %33, i64* %19, align 8
store i64 %22, i64* %21, align 8
%35 = zext i32 %34 to i64
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_4, i64 0, i64 0), i8* %23, i64 %35, i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0))
br label LBL_4
LBL_7:
%37 = call i32 @fclose(%_IO_FILE* nonnull %3)
br label LBL_8
LBL_8:
%38 = add i64 %0, 1544
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %40, %0
%42 = inttoptr i64 %41 to i8*
store i8 0, i8* %42, align 1
ret i64 %40
uselistorder i64 %40, { 1, 0 }
uselistorder %_IO_FILE* %3, { 1, 2, 0, 3 }
uselistorder i64* %sv_3, { 2, 1, 3, 0 }
uselistorder i64* %sv_2, { 1, 3, 2, 0 }
uselistorder i64* %sv_1, { 2, 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %0, { 0, 4, 3, 2, 1, 5 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fscanf, { 1, 0 }
uselistorder i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), { 1, 0 }
uselistorder i64 1024, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | virtio_scsi_load_15768 | virtio_scsi_load | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
ret i64 0
} | 1 |
BinRealVul | find_first_block_group_17472 | find_first_block_group | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.0.reg2mem = alloca i64
%.pre.reg2mem = alloca i32
%.reg2mem = alloca i32
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = load i64, i64* %0
%6 = load i32, i32* %1
%sv_1 = alloca i64, align 8
%7 = call i64 @FUNC(i64 0, i64 %4, i64 %2, i64 %3, i64 0, i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_9, label LBL_1
LBL_1:
%10 = trunc i64 %4 to i32
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
%13 = ptrtoint i64* %sv_1 to i64
%14 = icmp eq i32 %6, 1
%15 = icmp eq i1 %14, false
%16 = trunc i64 %3 to i32
%17 = trunc i64 %13 to i32
%18 = or i32 %17, 1
%19 = bitcast i64* %sv_1 to i32*
store i32 %10, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
%20 = load i64, i64* %12, align 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = sext i32 %.reload to i64
%25 = icmp sgt i64 %23, %24
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%26 = call i64 @FUNC(i64 %4, i64 %3)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
store i32 %16, i32* %.pre.reg2mem
store i64 %26, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_2.backedge, label LBL_9
LBL_4:
%29 = call i64 @FUNC(i64 %22, i64* nonnull %sv_1, i32 %.reload)
br i1 %15, label LBL_7, label LBL_5
LBL_5:
%30 = call i64 @FUNC(i64 %22)
%31 = load i64, i64* %sv_1, align 8
%32 = call i64 @FUNC(i64 %22, i64 %31, i64 %5)
%33 = call i64 @FUNC(i64 %22)
%34 = icmp eq i64 %32, 0
%35 = icmp eq i1 %34, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %35, label LBL_9, label LBL_6
LBL_6:
%36 = load i64, i64* %sv_1, align 8
%37 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0), i64 %36, i64 %5)
store i64 4294967294, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_7:
store i32 %18, i32* %19, align 8
store i32 %17, i32* %.pre.reg2mem
br label LBL_2.backedge
LBL_8:
%.pre.reload = load i32, i32* %.pre.reg2mem
store i32 %.pre.reload, i32* %.reg2mem
br label LBL_2
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%38 = and i64 %sv_0.0.reload, 4294967295
ret i64 %38
uselistorder i64 %22, { 0, 3, 2, 1, 4, 5 }
uselistorder i64* %sv_1, { 2, 3, 1, 0, 4 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder label LBL_9, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | clientsCronHandleTimeout_10590 | clientsCronHandleTimeout | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i32, i32* @gv_0, align 4
%3 = icmp eq i32 %2, 0
%4 = trunc i64 %1 to i32
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_7, label LBL_2
LBL_2:
%8 = and i32 %4, 2
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = and i32 %4, 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_7, label LBL_4
LBL_4:
%14 = and i32 %4, 8
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_7, label LBL_5
LBL_5:
%.neg = lshr i64 %arg2, 63
%17 = add i64 %arg1, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = sub i64 %.neg, %19
%21 = sext i32 %2 to i64
%22 = icmp sgt i64 %20, %21
br i1 %22, label LBL_6, label LBL_7
LBL_6:
%23 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0))
%24 = call i64 @FUNC(i64 %arg1)
store i64 1, i64* %storemerge.reg2mem
br label LBL_13
LBL_7:
%25 = and i32 %4, 4
%26 = icmp eq i32 %25, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %26, label LBL_13, label LBL_8
LBL_8:
%27 = add i64 %arg1, 16
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp ne i64 %29, 0
%31 = icmp slt i64 %29, %arg2
%or.cond = icmp eq i1 %30, %31
br i1 %or.cond, label LBL_9, label LBL_10
LBL_9:
%32 = call i64 @FUNC(i64 %arg1)
%33 = call i64 @FUNC(i64 %arg1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_13
LBL_10:
%34 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%35 = icmp eq i32 %34, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %35, label LBL_13, label LBL_11
LBL_11:
%36 = call i64 @FUNC(i64 %arg1)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %38, label LBL_13, label LBL_12
LBL_12:
%39 = call i64 @FUNC(i64 %arg1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %4, { 1, 4, 3, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 5, 4, 3, 2, 1, 6 }
uselistorder i64 (i64)* @unblockClient, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0, 5, 4 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 2, 3, 5, 6, 4, 0, 1 }
uselistorder label LBL_13, { 4, 3, 2, 1, 0, 5 }
uselistorder label LBL_7, { 1, 2, 3, 4, 5, 0 }
} | 0 |
BinRealVul | parse_audio_var_2102 | parse_audio_var | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = inttoptr i64 %arg3 to i8*
%2 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = zext i32 %arg4 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = trunc i64 %6 to i32
%8 = bitcast i64* %arg2 to i32*
store i32 %7, i32* %8, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%9 = ptrtoint i64* %arg2 to i64
%10 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %9, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = zext i32 %arg4 to i64
%17 = call i64 @FUNC(i64 %0, i64 %16)
%18 = trunc i64 %17 to i32
%19 = inttoptr i64 %15 to i32*
store i32 %18, i32* %19, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%20 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = add i64 %9, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = zext i32 %arg4 to i64
%27 = call i64 @FUNC(i64 %0, i64 %26)
%28 = trunc i64 %27 to i32
%29 = add i64 %25, 4
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_6:
%31 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_8, label LBL_7
LBL_7:
%34 = call i64 @FUNC(i64 %0, i64 %arg3, i32 %arg4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_8:
%35 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = zext i32 %arg4 to i64
%39 = call i64 @FUNC(i64 %0, i64 %38)
%40 = and i64 %39, 4294967295
%41 = call i64 @FUNC(i64 %0, i64 %9, i64 %40)
store i64 %41, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%42 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = add i64 %9, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = zext i32 %arg4 to i64
%49 = call i64 @FUNC(i64 %0, i64 %48)
%50 = trunc i64 %49 to i32
%51 = add i64 %47, 8
%52 = inttoptr i64 %51 to i32*
store i32 %50, i32* %52, align 4
%53 = load i64, i64* %46, align 8
%54 = add i64 %53, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %9, i64 33, i64 1, i64 %57)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%59 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_6, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %61, label LBL_14, label LBL_13
LBL_13:
%62 = zext i32 %arg4 to i64
%63 = call i64 @FUNC(i64 %0, i64 %62)
%64 = trunc i64 %63 to i32
%65 = add i64 %9, 8
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = mul i32 %64, 8
%69 = add i64 %67, 12
%70 = inttoptr i64 %69 to i32*
store i32 %68, i32* %70, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %9, { 5, 3, 4, 2, 1, 0 }
uselistorder i64 %0, { 7, 6, 4, 5, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 5, 8, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @var_read_int, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 3, 2, 1, 0, 6, 5, 4 }
uselistorder i32 %arg4, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_14, { 5, 6, 4, 7, 3, 2, 1, 0 }
} | 0 |
BinRealVul | write_output_11260 | write_output | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%2 = call i64 @FUNC(i64* nonnull %sv_1)
%3 = load i64, i64* %sv_1, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 1, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_6
LBL_1:
%6 = load i64, i64* @gv_0, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i8*
%10 = call i32 (i8*, i32, ...) @open(i8* %9, i32 578)
%11 = icmp eq i32 %10, -1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
call void @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_3:
%13 = load i64, i64* @gv_0, align 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%17 = inttoptr i64 %15 to i8*
%18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %16, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i8* %17)
%19 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%20 = call i32 @fflush(%_IO_FILE* %19)
%21 = call i16 @htons(i16 22136)
%22 = zext i16 %21 to i64
store i64 %22, i64* %sv_2, align 8
%23 = bitcast i64* %sv_0 to i8*
%24 = call i8* @strncpy(i8* nonnull %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i32 16)
%25 = load i64, i64* %sv_1, align 8
%26 = call i64 @FUNC(i64* nonnull %sv_2, i64 %25, i64 %2)
%27 = call i32 @write(i32 %10, i64* nonnull %sv_2, i32 40)
%28 = inttoptr i64 %26 to i64*
%29 = trunc i64 %1 to i32
%30 = add i32 %29, -40
%31 = call i32 @write(i32 %10, i64* %28, i32 %30)
store i32 0, i32* %storemerge23.reg2mem
br label LBL_4
LBL_4:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%32 = load i64, i64* %sv_1, align 8
%33 = call i64 @FUNC(i64 %32)
%34 = load i64, i64* %sv_1, align 8
%35 = inttoptr i64 %34 to i64*
%36 = call i32 @write(i32 %10, i64* %35, i32 0)
%37 = add i32 %storemerge23.reload, 1
%38 = sext i32 %37 to i64
%39 = icmp ult i64 %2, %38
store i32 %37, i32* %storemerge23.reg2mem
br i1 %39, label LBL_5, label LBL_4
LBL_5:
%40 = call i32 @close(i32 %10)
%41 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%42 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_5 to i64*), i32 1, i32 8, %_IO_FILE* %41)
%43 = zext i32 %storemerge23.reload to i64
%44 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %44, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_6, i64 0, i64 0), i64 %43)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %storemerge23.reload, { 1, 0 }
uselistorder i32 %10, { 1, 0, 3, 2, 4 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 0 }
uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 (i32, i64*, i32)* @write, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 3, 2, 1, 0 }
uselistorder i32 1, { 5, 4, 6, 9, 8, 7, 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | bn_sqr_comba4_12645 | bn_sqr_comba4 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 0, i64 0)
store i64 0, i64* %arg1, align 8
%3 = call i64 @FUNC(i64 %0, i64 1, i64 0, i64 0, i64 0, i64 0)
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
%6 = call i64 @FUNC(i64 %0, i64 1, i64 0, i64 0, i64 0)
%7 = call i64 @FUNC(i64 %0, i64 2, i64 0, i64 0, i64 0, i64 0)
%8 = add i64 %1, 16
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = call i64 @FUNC(i64 %0, i64 3, i64 0, i64 0, i64 0, i64 0)
%11 = call i64 @FUNC(i64 %0, i64 2, i64 1, i64 0, i64 0, i64 0)
%12 = add i64 %1, 24
%13 = inttoptr i64 %12 to i64*
store i64 0, i64* %13, align 8
%14 = call i64 @FUNC(i64 %0, i64 2, i64 0, i64 0, i64 0)
%15 = call i64 @FUNC(i64 %0, i64 3, i64 1, i64 0, i64 0, i64 0)
%16 = add i64 %1, 32
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = call i64 @FUNC(i64 %0, i64 3, i64 2, i64 0, i64 0, i64 0)
%19 = add i64 %1, 40
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %20, align 8
%21 = call i64 @FUNC(i64 %0, i64 3, i64 0, i64 0, i64 0)
%22 = add i64 %1, 48
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
%24 = add i64 %1, 56
%25 = inttoptr i64 %24 to i64*
store i64 0, i64* %25, align 8
ret i64 0
uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @sqr_add_c2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64)* @sqr_add_c, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | getSingletonPos_6511 | getSingletonPos | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %0, label LBL_8, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = icmp slt i32 %2, 1
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_8, label LBL_2
LBL_2:
%4 = sext i32 %2 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = add i64 %indvars.iv.reload, %arg1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = sext i8 %7 to i64
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_7, label LBL_4
LBL_4:
%13 = icmp eq i64 %indvars.iv.reload, 1
%14 = icmp eq i1 %13, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_5, label LBL_8
LBL_5:
%15 = add i64 %5, 2
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = sext i8 %17 to i64
%19 = and i64 %18, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = add nuw i64 %indvars.iv.reload, 1
%phitmp = and i64 %23, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%24 = icmp slt i64 %indvars.iv.next, %4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_3, label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 3, 1, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 (i64)* @isIDSeparator, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_8, { 0, 2, 1, 3, 4 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qapi_dealloc_end_struct_16796 | qapi_dealloc_end_struct | 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 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | gen_add_carry_698 | gen_add_carry | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg2, 4294967295
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %1, i64 %0, i32 %arg3)
%3 = call i64 @FUNC(i64 0)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %1, i64 %1, i32 %4)
%6 = and i64 %3, 4294967295
%7 = call i64 @FUNC(i64 %6)
ret i64 %7
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 (i64, i64, i32)* @tcg_gen_add_i32, { 1, 0 }
} | 0 |
BinRealVul | tg3_phy_set_extloopbk_9401 | tg3_phy_set_extloopbk | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%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 = urem i32 %7, 65536
%9 = icmp eq i32 %8, 21505
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %4, i64 1, i64 19490)
store i64 %11, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_3:
%12 = bitcast i32* %sv_0 to i64*
%13 = call i64 @FUNC(i64 %4, i64 1, i64* nonnull %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = and i64 %13, 4294967295
store i64 %16, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%17 = load i32, i32* %sv_0, align 4
%18 = or i32 %17, 2
store i32 %18, i32* %sv_0, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %4, i64 1, i64 %19)
store i64 %20, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_6:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%21 = and i64 %storemerge.in.reload, 4294967295
store i64 %21, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64, i64)* @tg3_phy_auxctl_write, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
} | 0 |
BinRealVul | bson_append_bcon_with_state_7472 | bson_append_bcon_with_state | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i32
%sv_5.13.reg2mem = alloca i32
%sv_4.14.reg2mem = alloca i32
%sv_3.15.reg2mem = alloca i64
%sv_2.17.reg2mem = alloca i64
%sv_1.19.reg2mem = alloca i32
%sv_0.111.reg2mem = alloca i32
%storemerge13.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %storemerge13.reg2mem
store i32 0, i32* %sv_0.111.reg2mem
store i32 0, i32* %sv_1.19.reg2mem
store i64 0, i64* %sv_2.17.reg2mem
store i64 0, i64* %sv_3.15.reg2mem
store i32 %arg3, i32* %sv_4.14.reg2mem
store i32 0, i32* %sv_5.13.reg2mem
br label LBL_1
LBL_1:
%sv_5.13.reload = load i32, i32* %sv_5.13.reg2mem
%sv_4.14.reload = load i32, i32* %sv_4.14.reg2mem
%sv_3.15.reload = load i64, i64* %sv_3.15.reg2mem
%sv_2.17.reload = load i64, i64* %sv_2.17.reg2mem
%sv_1.19.reload = load i32, i32* %sv_1.19.reg2mem
%sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%2 = inttoptr i64 %storemerge13.reload to i64*
%3 = load i64, i64* %2, align 8
%4 = zext i32 %sv_4.14.reload to i64
store i64 %4, i64* @0, align 8
switch i32 %sv_4.14.reload, label LBL_20 [
i32 0, label LBL_2
i32 1, label LBL_5
i32 2, label LBL_12
i32 3, label LBL_13
i32 4, label LBL_19
]
LBL_2:
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
switch i32 %6, label LBL_4 [
i32 5, label LBL_3
i32 6, label LBL_21
]
LBL_3:
%7 = call i64 @FUNC(i64 %1)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_4:
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 1, i32* %sv_4.0.reg2mem
store i64 %3, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_5:
%8 = call i64 @FUNC(i64 %3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 9
br i1 %10, label LBL_10, label LBL_6
LBL_6:
%11 = icmp sgt i32 %9, 9
br i1 %11, label LBL_11, label LBL_7
LBL_7:
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 1, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
switch i32 %9, label LBL_8 [
i32 8, label LBL_9
i32 6, label LBL_21
]
LBL_8:
%12 = icmp eq i32 %9, 7
%13 = icmp eq i1 %12, false
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 2, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %3, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_11, label LBL_21
LBL_9:
%14 = call i64 @FUNC(i64 %1, i64 %sv_3.15.reload)
%15 = call i64 @FUNC(i64 0)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_10:
%16 = call i64 @FUNC(i64 %1, i64 %sv_3.15.reload)
%17 = call i64 @FUNC(i64 0)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_11:
%18 = call i64 @FUNC(i64 %1, i64 %sv_3.15.reload, i64 %sv_2.17.reload, i64 %3)
%19 = trunc i64 %18 to i32
store i32 %19, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_12:
%20 = call i64 @FUNC(i64 %1, i64 %sv_3.15.reload, i64 %sv_2.17.reload, i64 %3)
%21 = trunc i64 %20 to i32
store i32 %21, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_13:
%22 = call i64 @FUNC(i64 %3)
%23 = add i64 %22, 4294967290
%24 = and i64 %23, 4294967295
store i64 %24, i64* @1, align 8
%trunc = trunc i64 %23 to i32
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 4, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %3, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
switch i32 %trunc, label LBL_18 [
i32 0, label LBL_17
i32 1, label LBL_21
i32 2, label LBL_14
i32 3, label LBL_15
i32 4, label LBL_16
]
LBL_14:
%25 = add i32 %sv_1.19.reload, 1
%26 = zext i32 %sv_1.19.reload to i64
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %1, i64 %27)
%29 = call i64 @FUNC(i64 3)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %27, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %25, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_15:
%30 = add i32 %sv_1.19.reload, 1
%31 = zext i32 %sv_1.19.reload to i64
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 %1, i64 %32)
%34 = call i64 @FUNC(i64 3)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %32, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %30, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_16:
%35 = call i64 @FUNC(i64 %1)
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_17:
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_18:
%36 = add i32 %sv_1.19.reload, 1
%37 = zext i32 %sv_1.19.reload to i64
%38 = call i64 @FUNC(i64 %37)
%39 = call i64 @FUNC(i64 %1, i64 %38, i64 %sv_2.17.reload, i64 %3)
%40 = trunc i64 %39 to i32
store i32 %40, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %38, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %36, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_19:
%41 = add i32 %sv_1.19.reload, 1
%42 = zext i32 %sv_1.19.reload to i64
%43 = call i64 @FUNC(i64 %42)
%44 = call i64 @FUNC(i64 %1, i64 %43, i64 %sv_2.17.reload, i64 %3)
%45 = trunc i64 %44 to i32
store i32 %45, i32* %sv_5.0.reg2mem
store i32 3, i32* %sv_4.0.reg2mem
store i64 %43, i64* %sv_3.0.reg2mem
store i64 0, i64* %sv_2.0.reg2mem
store i32 %41, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_20:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 174, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
store i32 %sv_5.13.reload, i32* %sv_5.0.reg2mem
store i32 %sv_4.14.reload, i32* %sv_4.0.reg2mem
store i64 %sv_3.15.reload, i64* %sv_3.0.reg2mem
store i64 %sv_2.17.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.19.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem
%46 = add i64 %storemerge13.reload, 8
%47 = or i32 %sv_0.0.reload, %sv_5.0.reload
%48 = icmp eq i32 %47, 0
store i64 %46, i64* %storemerge13.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.19.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.17.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.15.reg2mem
store i32 %sv_4.0.reload, i32* %sv_4.14.reg2mem
store i32 %sv_5.0.reload, i32* %sv_5.13.reg2mem
br i1 %48, label LBL_1, label LBL_22
LBL_22:
%49 = icmp eq i32 %sv_4.0.reload, %arg3
%50 = icmp eq i1 %49, false
%51 = zext i1 %50 to i64
ret i64 %51
uselistorder i32 %sv_5.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %9, { 1, 0, 2, 3 }
uselistorder i64 %3, { 9, 7, 0, 8, 6, 4, 1, 5, 2, 3 }
uselistorder i32 %sv_0.111.reload, { 13, 12, 11, 10, 9, 8, 0, 7, 5, 6, 4, 1, 2, 3 }
uselistorder i32 %sv_1.19.reload, { 12, 20, 19, 18, 17, 10, 11, 16, 15, 14, 13, 1, 9, 7, 8, 6, 2, 0, 4, 5, 3 }
uselistorder i64 %sv_2.17.reload, { 12, 16, 11, 15, 7, 10, 9, 8, 14, 5, 13, 6, 4, 0, 2, 3, 1 }
uselistorder i64 %sv_3.15.reload, { 11, 9, 10, 1, 8, 15, 6, 13, 7, 14, 5, 12, 2, 0, 4, 3 }
uselistorder i32 %sv_4.14.reload, { 0, 2, 1 }
uselistorder i32 %sv_5.13.reload, { 12, 8, 11, 10, 9, 1, 7, 6, 2, 0, 4, 5, 3 }
uselistorder i64 %1, { 9, 8, 7, 6, 5, 4, 2, 3, 1, 0 }
uselistorder i64* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.111.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.19.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.15.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_5.13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_5.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 17, 16, 15, 11, 14, 13, 12, 2, 10, 8, 9, 7, 3, 1, 5, 6, 4 }
uselistorder i64 (i64)* @ARRAY_KEY_STRING, { 3, 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @bson_bcon_key_value, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @ARRAY_PUSH_RESET_INDEX_STATE, { 1, 0 }
uselistorder i64 (i64, i64)* @bson_append_start_array, { 1, 0 }
uselistorder i64 (i64)* @DOC_PUSH_STATE, { 1, 0 }
uselistorder i64 (i64, i64)* @bson_append_start_object, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 9, { 1, 0 }
uselistorder i64 (i64)* @bcon_token, { 2, 1, 0 }
uselistorder i32 4, { 1, 0, 2 }
uselistorder i32 3, { 5, 4, 1, 3, 2, 6, 0, 7 }
uselistorder i32 2, { 1, 0, 2 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_21, { 16, 14, 4, 8, 7, 6, 5, 1, 15, 11, 10, 9, 2, 0, 13, 12, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | scsi_read_data_17248 | scsi_read_data | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, -1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %8)
store i32 0, i32* %2, align 4
%10 = load i64, i64* %7, align 8
%11 = call i64 @FUNC(i64 %0, i64 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%12 = zext i32 %3 to i64
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %12)
%14 = load i32, i32* %2, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %0, i64 0, i64 0)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
store i32 %14, i32* %.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_3, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0))
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i32, i32* %.reg2mem
%22 = icmp ult i32 %.reload, 8
%spec.select = select i1 %22, i32 %.reload, i32 8
%23 = mul i32 %spec.select, 512
%24 = zext i32 %23 to i64
%25 = add i64 %0, 24
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = add i64 %0, 32
%28 = call i64 @FUNC(i64 %27, i64 %25, i64 1)
%29 = add i64 %0, 20
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %spec.select to i64
%33 = call i64 @FUNC(i64 %27, i32 %31, i64 %27, i64 %32, i64 4198742, i64 %0)
store i64 %33, i64* %19, align 8
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
store i64 %33, i64* %rax.0.reg2mem
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i64 %0, i64 4294967291)
store i64 %36, 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 %spec.select, { 1, 0 }
uselistorder i32* %2, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 2, 4, 3, 5, 6, 7, 0, 8, 9 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
} | 1 |
BinRealVul | mutt_b64_decode_6707 | mutt_b64_decode | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%.phi.trans.insert = inttoptr i64 %arg2 to i8*
%.pre = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre, i8* %.reg2mem
store i64 %0, i64* %sv_1.0.reg2mem
store i64 %arg2, i64* %sv_2.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%.reload = load i8, i8* %.reg2mem
%1 = icmp slt i8 %.reload, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %1, label LBL_18, label LBL_2
LBL_2:
%2 = zext i8 %.reload to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_3, label LBL_18
LBL_3:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%7 = add i64 %sv_2.0.reload, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp slt i8 %9, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_18, label LBL_4
LBL_4:
%11 = zext i8 %9 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %15, label LBL_5, label LBL_18
LBL_5:
%16 = add i64 %sv_2.0.reload, 2
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp slt i8 %18, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %19, label LBL_18, label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%20 = sext i8 %18 to i32
%21 = icmp eq i8 %18, 61
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = urem i32 %20, 256
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, -1
%27 = icmp eq i1 %26, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %27, label LBL_8, label LBL_18
LBL_8:
%28 = add i64 %sv_2.0.reload, 3
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = icmp slt i8 %30, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %31, label LBL_18, label LBL_9
LBL_9:
%32 = sext i8 %30 to i32
%33 = icmp eq i8 %30, 61
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = urem i32 %32, 256
%35 = zext i32 %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, -1
%39 = icmp eq i1 %38, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %39, label LBL_11, label LBL_18
LBL_11:
%40 = sext i32 %sv_0.0.reload to i64
%41 = icmp eq i64 %40, %arg3
%42 = icmp eq i1 %41, false
store i32 %sv_0.0.reload, i32* %rax.0.shrunk.reg2mem
br i1 %42, label LBL_12, label LBL_18
LBL_12:
%43 = call i64 @FUNC(i64 %2)
%44 = trunc i64 %43 to i32
%45 = mul i32 %44, 4
%46 = call i64 @FUNC(i64 %11)
%47 = trunc i64 %46 to i32
%48 = udiv i32 %47, 16
%49 = add i64 %sv_1.0.reload, 1
%50 = or i32 %48, %45
%51 = trunc i32 %50 to i8
%52 = inttoptr i64 %sv_1.0.reload to i8*
store i8 %51, i8* %52, align 1
%53 = add i32 %sv_0.0.reload, 1
store i64 %49, i64* %sv_1.1.reg2mem
store i32 %53, i32* %sv_0.1.reg2mem
br i1 %21, label LBL_17, label LBL_13
LBL_13:
%54 = sext i32 %53 to i64
%55 = icmp eq i64 %54, %arg3
%56 = icmp eq i1 %55, false
store i32 %53, i32* %rax.0.shrunk.reg2mem
br i1 %56, label LBL_14, label LBL_18
LBL_14:
%57 = call i64 @FUNC(i64 %11)
%58 = trunc i64 %57 to i32
%59 = mul i32 %58, 16
%60 = urem i32 %20, 256
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %61)
%63 = trunc i64 %62 to i32
%64 = udiv i32 %63, 4
%65 = or i32 %64, %59
%66 = trunc i32 %65 to i8
%67 = inttoptr i64 %49 to i8*
store i8 %66, i8* %67, align 1
%68 = add i32 %sv_0.0.reload, 2
store i32 %68, i32* %rax.0.shrunk.reg2mem
br i1 %33, label LBL_18, label LBL_15
LBL_15:
%69 = sext i32 %68 to i64
%70 = icmp eq i64 %69, %arg3
%71 = icmp eq i1 %70, false
store i32 %68, i32* %rax.0.shrunk.reg2mem
br i1 %71, label LBL_16, label LBL_18
LBL_16:
%72 = add i64 %sv_1.0.reload, 2
%73 = call i64 @FUNC(i64 %61)
%74 = trunc i64 %73 to i8
%75 = mul i8 %74, 64
%76 = urem i32 %32, 256
%77 = zext i32 %76 to i64
%78 = call i64 @FUNC(i64 %77)
%79 = trunc i64 %78 to i8
%80 = add i64 %sv_1.0.reload, 3
%81 = or i8 %75, %79
%82 = inttoptr i64 %72 to i8*
store i8 %81, i8* %82, align 1
%83 = add i32 %sv_0.0.reload, 3
store i64 %80, i64* %sv_1.1.reg2mem
store i32 %83, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_17:
%84 = add i64 %sv_2.0.reload, 4
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%85 = inttoptr i64 %84 to i8*
%86 = load i8, i8* %85, align 1
%87 = icmp ne i8 %86, 0
%88 = icmp eq i1 %33, false
%or.cond = icmp eq i1 %88, %87
store i8 %86, i8* %.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.0.reg2mem
store i64 %84, i64* %sv_2.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
store i32 %sv_0.1.reload, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond, label LBL_1, label LBL_18
LBL_18:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32 %68, { 1, 2, 0 }
uselistorder i32 %53, { 0, 2, 1 }
uselistorder i64 %49, { 1, 0 }
uselistorder i1 %33, { 1, 0, 2 }
uselistorder i8 %30, { 0, 2, 1 }
uselistorder i64 %sv_1.0.reload, { 3, 2, 1, 0 }
uselistorder i32 %sv_0.0.reload, { 4, 3, 2, 0, 1 }
uselistorder i8 %18, { 0, 2, 1 }
uselistorder i64 %11, { 2, 1, 0 }
uselistorder i64 %sv_2.0.reload, { 3, 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 2, 3, 1, 4, 5, 7, 6, 9, 8, 11, 10, 13, 12 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64)* @base64val, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 -1, { 1, 8, 0, 3, 9, 2, 5, 10, 4, 7, 11, 6 }
uselistorder label LBL_18, { 1, 2, 0, 3, 4, 6, 5, 8, 7, 10, 9, 12, 11 }
} | 0 |
BinRealVul | test_smram_lock_749 | test_smram_lock | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %0, i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %5, i64 0, i64 0)
%11 = call i64 @FUNC(i64 %5, i64 0)
%12 = urem i64 %11, 256
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%17 = call i64 @FUNC(i64 %5, i64 0)
%18 = urem i64 %17, 256
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC(i64 %5, i64 1, i64 1)
%21 = call i64 @FUNC(i64 %5, i64 0)
%22 = urem i64 %21, 256
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%27 = call i64 @FUNC(i64 %5, i64 0)
%28 = urem i64 %27, 256
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
%35 = zext i1 %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
%38 = urem i64 %37, 256
%39 = icmp eq i64 %38, 0
%40 = zext i1 %39 to i64
%41 = call i64 @FUNC(i64 %40)
%42 = call i64 @FUNC(i64 %32)
%43 = call i64 @FUNC(i64 %5, i64 0, i64 0)
%44 = call i64 @FUNC(i64 %5, i64 0)
%45 = urem i64 %44, 256
%46 = icmp eq i64 %45, 0
%47 = zext i1 %46 to i64
%48 = call i64 @FUNC(i64 %47)
%49 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%50 = call i64 @FUNC(i64 %5, i64 0)
%51 = urem i64 %50, 256
%52 = call i64 @FUNC(i64 %51)
%53 = call i64 @FUNC(i64 %5)
%54 = call i64 @FUNC(i64 %0)
ret i64 %54
uselistorder i64 1, { 1, 2, 4, 3, 5, 0 }
uselistorder i64 (i64, i64)* @smram_test_bit, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @smram_set_bit, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @g_assert, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | r_egg_Cfile_parseCompiled_12967 | r_egg_Cfile_parseCompiled | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = ptrtoint i64* %sv_0 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %arg1)
%2 = call i64 @FUNC(i64 %1, i64 0)
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 0)
%4 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 0)
%5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i64 1)
%6 = add i64 %0, -80
store i64 0, i64* %storemerge23.reg2mem
br label LBL_1
LBL_1:
%storemerge23.reload = load i64, i64* %storemerge23.reg2mem
%7 = mul i64 %storemerge23.reload, 8
%8 = add i64 %6, %7
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %5, i64 %10)
%12 = add nuw nsw i64 %storemerge23.reload, 1
%exitcond = icmp eq i64 %12, 7
store i64 %12, i64* %storemerge23.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%13 = inttoptr i64 %5 to i8*
%14 = inttoptr i64 %1 to i64*
call void @free(i64* %14)
%15 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %arg1)
%16 = call i32 @strlen(i8* %13)
%17 = sext i32 %16 to i64
%18 = call i64 @FUNC(i64 %15, i64 %5, i64 %17, i64 1)
%19 = trunc i64 %18 to i8
%20 = icmp eq i8 %19, 1
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_7, i64 0, i64 0), i64 %arg1)
%22 = inttoptr i64 %5 to i64*
call void @free(i64* %22)
%23 = inttoptr i64 %15 to i64*
call void @free(i64* %23)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%24 = inttoptr i64 %5 to i64*
call void @free(i64* %24)
%25 = inttoptr i64 %15 to i64*
call void @free(i64* %25)
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %15, { 1, 0, 2 }
uselistorder i64 %5, { 1, 2, 3, 4, 0 }
uselistorder i64* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder void (i64*)* @free, { 4, 5, 3, 1, 0, 2 }
uselistorder i64 (i64, i8*, i8*, i64)* @r_str_replace, { 2, 1, 0 }
uselistorder i64 (i8*, i64)* @r_str_newf, { 1, 0 }
} | 1 |
BinRealVul | test_configured_paths_10282 | test_configured_paths | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = load [12 x i8]*, [12 x i8]** @gv_0, align 8
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%5 = call %_IO_FILE* @fopen(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0))
%6 = icmp eq %_IO_FILE* %5, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = load [12 x i8]*, [12 x i8]** @gv_0, align 8
%9 = ptrtoint [12 x i8]* %8 to i64
%10 = inttoptr i64 %2 to i64*
%11 = load i64, i64* %10, align 8
store i64 %11, i64* bitcast ([12 x i8]** @gv_0 to i64*), align 8
%12 = call i32* @__errno_location()
%13 = load i32, i32* %12, align 4
%14 = call i8* @strerror(i32 %13)
%15 = ptrtoint i8* %14 to i64
%16 = call i64 @FUNC(i64 1, i64 1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64 %15, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%17 = call i32 @fclose(%_IO_FILE* %5)
%18 = load [12 x i8]*, [12 x i8]** @gv_0, align 8
%19 = ptrtoint [12 x i8]* %18 to i64
%20 = inttoptr i64 %2 to i64*
store i64 %19, i64* %20, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 0, { 0, 3, 4, 5, 6, 1, 2, 7, 8, 9 }
uselistorder [12 x i8]** @gv_0, { 0, 3, 1, 2 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | keyring_revoke_8327 | keyring_revoke | 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 0)
%2 = icmp eq i64* %arg1, null
store i64 %1, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 0)
%4 = call i64 @FUNC(i64 %0, i64 4198676)
store i64 %4, 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 | nfs_zap_caches_locked_4420 | nfs_zap_caches_locked | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = call i64 @FUNC(i64 %2, i64 1)
store i32 1, i32* %arg1, align 4
%5 = load i32, i32* @gv_0, align 4
store i32 %5, i32* %arg1, align 4
%sext = mul i64 %1, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = inttoptr i64 %6 to i64*
%8 = call i64* @memset(i64* %7, i32 0, i32 4)
%9 = urem i32 %3, 8
%10 = icmp eq i32 %9, 0
%storemerge.v = select i1 %10, i32 29, i32 31
%storemerge = or i32 %storemerge.v, %3
store i32 %storemerge, i32* %arg1, align 4
ret i64 %2
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 0 |
BinRealVul | visit_end_struct_14069 | visit_end_struct | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
ret i64 %4
} | 1 |
BinRealVul | get_socket_name_11733 | get_socket_name | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%rdi.04.reg2mem = alloca i64
%rdi.05.reg2mem = alloca i64
%0 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = call i64 @FUNC()
store i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64* %rdi.05.reg2mem
br label %13
LBL_2:
%3 = inttoptr i64 %0 to i8*
%4 = call i8* @strrchr(i8* %3, i32 58)
%5 = ptrtoint i8* %4 to i64
%6 = sub i64 %5, %0
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = add i64 %5, 1
%9 = inttoptr i64 %8 to i8*
%10 = call i32 @atoi(i8* %9)
%11 = call i64 @FUNC()
%12 = icmp eq i64 %7, 0
store i64 %8, i64* %rdi.05.reg2mem
store i64 %8, i64* %rdi.04.reg2mem
store i64 %7, i64* %.reg2mem
br i1 %12, label %13, label %14
uselistorder i64* %rdi.04.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64 ()* @g_get_user_name, { 1, 0 }
uselistorder [8 x i8]* @gv_0, { 1, 0 }
uselistorder label %14, { 1, 0 }
uselistorder label %13, { 1, 0 }
} | 1 |
BinRealVul | ivi_decode_blocks_7549 | ivi_decode_blocks | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i32
%sv_0.18.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i64
%storemerge2.in.reg2mem = alloca i64
%sv_4.210.reg2mem = alloca i32
%sv_3.211.reg2mem = alloca i32
%sv_2.212.reg2mem = alloca i32
%sv_6.013.reg2mem = alloca i32
%sv_7.014.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%rcx = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_8 = alloca i32, align 4
%sv_9 = alloca i64, align 8
store i64 %3, i64* %sv_9, align 8
store i32 0, i32* %sv_8, align 4
%6 = add i64 %4, 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_28, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg2 to i64
%11 = ptrtoint i64* %sv_9 to i64
%12 = trunc i64 %1 to i32
%13 = add i64 %10, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, %12
%17 = select i1 %16, i32 1, i32 4
%18 = icmp eq i32 %12, 8
%19 = icmp eq i1 %18, false
%global_var_404040.val = load i64, i64* @gv_0, align 8
%global_var_404030.val = load i64, i64* @gv_1, align 8
%storemerge5 = select i1 %19, i64 %global_var_404040.val, i64 %global_var_404030.val
%global_var_404048.val = load i64, i64* @gv_2, align 8
%global_var_404038.val = load i64, i64* @gv_3, align 8
%storemerge3 = select i1 %19, i64 %global_var_404048.val, i64 %global_var_404038.val
%20 = trunc i64 %2 to i32
%21 = add i64 %10, 8
%22 = inttoptr i64 %21 to i32*
%23 = bitcast i64* %rcx to i32*
%24 = add i64 %10, 32
%25 = inttoptr i64 %24 to i32*
%26 = add i64 %10, 36
%27 = inttoptr i64 %26 to i32*
%28 = add i64 %10, 40
%29 = inttoptr i64 %28 to i32*
%30 = add i64 %11, -8
%31 = inttoptr i64 %30 to i64*
%32 = add i64 %11, -16
%33 = inttoptr i64 %32 to i64*
%34 = add i64 %11, -24
%35 = inttoptr i64 %34 to i64*
%36 = add i64 %11, -32
%37 = inttoptr i64 %36 to i64*
%38 = add i64 %11, -40
%39 = inttoptr i64 %38 to i64*
%40 = add i64 %10, 56
%41 = inttoptr i64 %40 to i64*
%42 = add i64 %10, 48
%43 = inttoptr i64 %42 to i64*
store i32 %20, i32* %.reg2mem
store i64 %4, i64* %sv_7.014.reg2mem
store i32 0, i32* %sv_6.013.reg2mem
store i32 0, i32* %sv_2.212.reg2mem
store i32 0, i32* %sv_3.211.reg2mem
store i32 0, i32* %sv_4.210.reg2mem
br label LBL_2
LBL_2:
%sv_4.210.reload = load i32, i32* %sv_4.210.reg2mem
%sv_3.211.reload = load i32, i32* %sv_3.211.reg2mem
%sv_2.212.reload = load i32, i32* %sv_2.212.reg2mem
%sv_6.013.reload = load i32, i32* %sv_6.013.reg2mem
%sv_7.014.reload = load i64, i64* %sv_7.014.reg2mem
%.reload = load i32, i32* %.reg2mem
%44 = add i64 %sv_7.014.reload, 8
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i64 %sv_7.014.reload, 12
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %sv_7.014.reload, 16
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = load i32, i32* %22, align 4
%54 = add i64 %sv_7.014.reload, 28
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i32 %56, %53
%58 = icmp eq i32 %.reload, 1
%59 = icmp eq i1 %58, false
%60 = zext i32 %57 to i64
br i1 %59, label LBL_4, label LBL_3
LBL_3:
%61 = call i64 @FUNC(i64 %60, i64 0, i64 31)
store i64 %61, i64* %storemerge2.in.reg2mem
br label LBL_5
LBL_4:
%62 = call i64 @FUNC(i64 %60, i64 0, i64 23)
store i64 %62, i64* %storemerge2.in.reg2mem
br label LBL_5
LBL_5:
%63 = icmp eq i32 %46, 0
%storemerge2.in.reload = load i64, i64* %storemerge2.in.reg2mem
%64 = icmp eq i1 %63, false
%storemerge1.in.in.v = select i1 %64, i64 24, i64 16
%storemerge1.in.in = add i64 %storemerge1.in.in.v, %10
%storemerge1.in = inttoptr i64 %storemerge1.in.in to i64*
%storemerge1 = load i64, i64* %storemerge1.in, align 8
%65 = icmp eq i64 %storemerge1, 0
store i64 %storemerge2.in.reload, i64* %sv_5.0.reg2mem
br i1 %65, label LBL_7, label LBL_6
LBL_6:
%66 = and i64 %storemerge2.in.reload, 4294967295
%67 = add i64 %storemerge1, %66
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = zext i8 %69 to i64
store i64 %70, i64* %sv_5.0.reg2mem
br label LBL_7
LBL_7:
%sv_5.0.reload = load i64, i64* %sv_5.0.reg2mem
%71 = icmp eq i1 %64, false
store i32 %sv_4.210.reload, i32* %sv_4.1.reg2mem
store i32 %sv_3.211.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.212.reload, i32* %sv_2.1.reg2mem
br i1 %71, label LBL_15, label LBL_8
LBL_8:
%72 = add i64 %sv_7.014.reload, 20
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = add i64 %sv_7.014.reload, 24
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = load i32, i32* %25, align 4
%79 = icmp eq i32 %78, 0
store i32 %sv_4.210.reload, i32* %sv_4.0.reg2mem
store i32 %74, i32* %sv_3.0.reg2mem
store i32 %77, i32* %sv_2.0.reg2mem
br i1 %79, label LBL_10, label LBL_9
LBL_9:
%80 = mul i32 %77, 2
%81 = and i32 %80, 2
%82 = urem i32 %74, 2
%83 = or i32 %81, %82
%84 = ashr i32 %74, 1
%85 = ashr i32 %77, 1
store i32 %83, i32* %sv_4.0.reg2mem
store i32 %84, i32* %sv_3.0.reg2mem
store i32 %85, i32* %sv_2.0.reg2mem
br label LBL_10
LBL_10:
%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
%86 = load i32, i32* %45, align 4
%87 = icmp eq i32 %86, 0
store i32 %sv_4.0.reload, 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
br i1 %87, label LBL_15, label LBL_11
LBL_11:
%88 = urem i32 %78, 32
%89 = ashr i32 %74, %88
%90 = inttoptr i64 %sv_7.014.reload to i32*
%91 = load i32, i32* %90, align 4
%92 = add i32 %91, %89
%93 = icmp slt i32 %92, 0
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %93, label LBL_29, label LBL_12
LBL_12:
%94 = and i32 %78, %74
%95 = load i32, i32* %14, align 4
%96 = add i32 %92, %94
%97 = add i32 %96, %95
%98 = load i32, i32* %27, align 4
%99 = icmp ugt i32 %97, %98
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %99, label LBL_29, label LBL_13
LBL_13:
%100 = ashr i32 %77, %88
%101 = add i64 %sv_7.014.reload, 4
%102 = inttoptr i64 %101 to i32*
%103 = load i32, i32* %102, align 4
%104 = add i32 %103, %100
%105 = icmp slt i32 %104, 0
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %105, label LBL_29, label LBL_14
LBL_14:
%106 = and i32 %78, %77
%107 = add i32 %95, %106
%108 = add i32 %107, %104
%109 = load i32, i32* %29, align 4
%110 = icmp ugt i32 %108, %109
store i32 %sv_4.0.reload, 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 i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %110, label LBL_29, label LBL_15
LBL_15:
%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
%111 = and i64 %sv_5.0.reload, 4294967295
%112 = zext i32 %sv_4.1.reload to i64
%113 = zext i1 %63 to i64
%114 = zext i32 %sv_3.1.reload to i64
store i32 0, i32* %storemerge9.reg2mem
store i32 %52, i32* %sv_0.18.reg2mem
store i32 %49, i32* %sv_1.07.reg2mem
br label LBL_16
LBL_16:
%sv_1.07.reload = load i32, i32* %sv_1.07.reg2mem
%sv_0.18.reload = load i32, i32* %sv_0.18.reg2mem
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%115 = urem i32 %storemerge9.reload, 2
%116 = icmp eq i32 %115, 0
br i1 %116, label LBL_18, label LBL_17
LBL_17:
%117 = add i32 %sv_0.18.reload, %12
store i32 %117, i32* %sv_0.0.reg2mem
br label LBL_20
LBL_18:
%118 = icmp eq i32 %storemerge9.reload, 2
%119 = icmp eq i1 %118, false
store i32 %sv_0.18.reload, i32* %sv_0.0.reg2mem
br i1 %119, label LBL_20, label LBL_19
LBL_19:
%120 = sub i32 %sv_0.18.reload, %12
%121 = load i32, i32* %27, align 4
%122 = mul i32 %121, %12
%123 = add i32 %120, %122
store i32 %123, i32* %sv_0.0.reg2mem
br label LBL_20
LBL_20:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%124 = urem i32 %sv_1.07.reload, 2
%125 = icmp eq i32 %124, 0
br i1 %125, label LBL_22, label LBL_21
LBL_21:
%126 = load i64, i64* %sv_9, align 8
store i64 %126, i64* %31, align 8
%127 = zext i32 %sv_0.0.reload to i64
store i64 %127, i64* %33, align 8
store i64 %111, i64* %35, align 8
store i64 %112, i64* %37, align 8
store i64 %113, i64* %39, align 8
%128 = call i64 @FUNC(i64 %5, i64 %10, i64 %storemerge5, i32 %sv_3.1.reload, i32 %sv_2.1.reload, i32* nonnull %sv_8)
%129 = trunc i64 %128 to i32
%130 = icmp slt i32 %129, 0
%131 = icmp eq i1 %130, false
store i64 %128, i64* %rax.0.shrunk.reg2mem
br i1 %131, label LBL_25, label LBL_29
LBL_22:
br i1 %64, label LBL_24, label LBL_23
LBL_23:
%132 = call i64 @FUNC(i64 %10, i32* nonnull %sv_8, i32 %sv_0.0.reload, i32 %12)
%133 = trunc i64 %132 to i32
%134 = icmp slt i32 %133, 0
%135 = icmp eq i1 %134, false
store i64 %132, i64* %rax.0.shrunk.reg2mem
br i1 %135, label LBL_25, label LBL_29
LBL_24:
%136 = load i32, i32* %27, align 4
%137 = zext i32 %136 to i64
%138 = load i64, i64* %41, align 8
%139 = load i64, i64* %43, align 8
store i64 %112, i64* %31, align 8
store i64 %137, i64* %33, align 8
%140 = call i64 @FUNC(i64 %storemerge3, i64 %139, i64 %138, i32 %sv_0.0.reload, i64 %114, i32 %sv_2.1.reload)
%141 = trunc i64 %140 to i32
%142 = icmp slt i32 %141, 0
%143 = icmp eq i1 %142, false
store i64 %140, i64* %rax.0.shrunk.reg2mem
br i1 %143, label LBL_25, label LBL_29
LBL_25:
%144 = udiv i32 %sv_1.07.reload, 2
%145 = add nuw nsw i32 %storemerge9.reload, 1
%146 = icmp ult i32 %145, %17
store i32 %145, i32* %storemerge9.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.18.reg2mem
store i32 %144, i32* %sv_1.07.reg2mem
br i1 %146, label LBL_16, label LBL_26
LBL_26:
%147 = add i32 %sv_6.013.reload, 1
%148 = load i32, i32* %7, align 4
%149 = zext i32 %148 to i64
%150 = sext i32 %147 to i64
%151 = icmp slt i64 %150, %149
br i1 %151, label LBL_26.LBL_2_crit_edge, label LBL_28
LBL_27:
%152 = add i64 %sv_7.014.reload, 32
%.pre = load i32, i32* %23, align 8
store i32 %.pre, i32* %.reg2mem
store i64 %152, i64* %sv_7.014.reg2mem
store i32 %147, i32* %sv_6.013.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.212.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.211.reg2mem
store i32 %sv_4.1.reload, i32* %sv_4.210.reg2mem
br label LBL_2
LBL_28:
%153 = call i64 @FUNC(i64 %5)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_29
LBL_29:
%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 %sv_0.0.reload, { 3, 0, 1, 2 }
uselistorder i32 %sv_0.18.reload, { 2, 0, 1 }
uselistorder i32 %sv_1.07.reload, { 1, 0 }
uselistorder i32 %sv_4.1.reload, { 1, 0 }
uselistorder i32 %sv_3.1.reload, { 2, 1, 0 }
uselistorder i32 %sv_2.1.reload, { 2, 0, 1 }
uselistorder i32 %88, { 1, 0 }
uselistorder i32 %78, { 2, 1, 0, 3 }
uselistorder i32 %77, { 2, 3, 4, 1, 0 }
uselistorder i32 %74, { 2, 3, 4, 1, 0 }
uselistorder i64 %storemerge2.in.reload, { 1, 0 }
uselistorder i64 %60, { 1, 0 }
uselistorder i64 %sv_7.014.reload, { 8, 1, 0, 3, 2, 4, 6, 5, 7 }
uselistorder i32 %sv_4.210.reload, { 1, 0 }
uselistorder i32 %12, { 5, 1, 0, 2, 4, 3 }
uselistorder i64 %11, { 4, 3, 2, 1, 0 }
uselistorder i64 %10, { 5, 4, 0, 7, 6, 2, 1, 3, 8, 9 }
uselistorder i32* %7, { 1, 0 }
uselistorder i64* %sv_9, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_7.014.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_6.013.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.212.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.211.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.210.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.18.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.07.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 8, 5, 6, 7, 4, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 2, { 1, 2, 5, 3, 4, 6, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_clip, { 1, 0 }
uselistorder i64 32, { 2, 3, 0, 1 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6, 7 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i32 0, { 7, 8, 9, 10, 11, 0, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6 }
uselistorder label LBL_29, { 7, 4, 5, 6, 3, 2, 1, 0 }
uselistorder label LBL_16, { 1, 0 }
} | 1 |
BinRealVul | pci_get_vdev_info_5226 | pci_get_vdev_info | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 29
%4 = add i64 %0, %3
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = inttoptr i64 %4 to i64*
%7 = load i64, i64* %6, align 8
store i64 %7, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%8 = and i64 %arg1, 4294967295
%9 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %8)
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* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | trace_event_iter_next_15175 | trace_event_iter_next | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %arg1 to i32*
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = trunc i64 %1 to i32
%sext = mul i64 %1, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = mul nsw i64 %7, 50
%9 = add i64 %8, ptrtoint (i8** @gv_0 to i64)
%10 = add i32 %6, 1
%11 = icmp slt i32 %6, 10
store i64 0, i64* %storemerge.reg2mem
br i1 %11, label LBL_1, label LBL_3
LBL_1:
store i32 %10, i32* %3, align 4
%12 = load i64, i64* %5, align 8
%13 = icmp eq i64 %12, 0
store i64 %9, i64* %storemerge.reg2mem
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %9)
%15 = load i64, i64* %5, align 8
%16 = call i64 @FUNC(i64 %15, i64 %14)
%17 = trunc i64 %16 to i32
%18 = icmp ne i32 %17, 0
%.not2 = icmp ne i1 %11, true
%brmerge = or i1 %18, %.not2
%.mux = select i1 %18, i64 %9, i64 0
store i64 %.mux, i64* %storemerge.reg2mem
br i1 %brmerge, label LBL_3, label LBL_1
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i1 %18, { 1, 0 }
uselistorder i64 %9, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
} | 1 |
BinRealVul | gen_ove_cy_237 | gen_ove_cy | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | pci_bios_init_device_4051 | pci_bios_init_device | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = trunc i64 %1 to i32
%3 = call i64 @FUNC(i64 %0, i64 2)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %0, i64 3)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %2, 65280
br i1 %7, label LBL_8, label LBL_1
LBL_1:
%8 = icmp sgt i32 %2, 65280
br i1 %8, label LBL_10, label LBL_2
LBL_2:
switch i32 %2, label LBL_10 [
i32 257, label LBL_3
i32 768, label LBL_6
]
LBL_3:
%9 = icmp eq i32 %4, 32902
%10 = icmp eq i32 %6, 28688
%11 = icmp eq i1 %9, %10
br i1 %11, label LBL_4, label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64 %0, i64 4, i64 1)
%13 = call i64 @FUNC(i64 %0, i64 64, i64 32768)
br label LBL_14
LBL_5:
%14 = call i64 @FUNC(i64 %0, i64 0, i64 496)
%15 = call i64 @FUNC(i64 %0, i64 1, i64 1012)
%16 = call i64 @FUNC(i64 %0, i64 2, i64 368)
%17 = call i64 @FUNC(i64 %0, i64 3, i64 884)
br label LBL_14
LBL_6:
%18 = icmp eq i32 %4, 4660
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_10, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %0, i64 0, i64 3758096384)
br label LBL_14
LBL_8:
%21 = icmp eq i32 %4, 4203
%22 = icmp eq i32 %6, 23
%23 = icmp eq i1 %21, %22
br i1 %23, label LBL_9, label LBL_14
LBL_9:
%24 = call i64 @FUNC(i64 %0, i64 0, i64 2155872256)
br label LBL_14
LBL_10:
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%25 = mul i64 %indvars.iv.reload, 8
%26 = add i64 %25, %0
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_13, label LBL_12
LBL_12:
%30 = add i64 %26, 4
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = urem i32 %32, 2
%34 = icmp eq i32 %33, 0
%. = select i1 %34, i32* bitcast (i64* @gv_0 to i32*), i32* bitcast (i32** @gv_1 to i32*)
%35 = load i32, i32* %., align 8
%36 = add i32 %28, -1
%37 = add i32 %36, %35
%38 = sub i32 0, %28
%39 = and i32 %37, %38
store i32 %39, i32* %., align 8
%40 = zext i32 %39 to i64
%41 = call i64 @FUNC(i64 %0, i64 %indvars.iv.reload, i64 %40)
%42 = load i32, i32* %., align 8
%43 = load i32, i32* %27, align 4
%44 = add i32 %43, %42
store i32 %44, i32* %., align 8
br label LBL_13
LBL_13:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_14, label LBL_11
LBL_14:
%45 = call i64 @FUNC(i64 %0, i64 15)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
store i64 %45, i64* %rax.0.reg2mem
br i1 %47, label LBL_16, label LBL_15
LBL_15:
%48 = add i64 %45, 4294967295
%49 = and i64 %48, 4294967295
%50 = call i64 @FUNC(i64 %0, i64 %49)
%sext = mul i64 %50, 4294967296
%51 = ashr exact i64 %sext, 30
%52 = add i64 %51, ptrtoint (i32** @gv_2 to i64)
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = call i64 @FUNC(i64 %0, i64 60, i32 %54)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %45, { 1, 0, 2 }
uselistorder i32* %., { 1, 0, 2, 3 }
uselistorder i32 %28, { 1, 0, 2 }
uselistorder i32 %4, { 2, 0, 1 }
uselistorder i64 %0, { 10, 11, 12, 8, 0, 9, 1, 7, 6, 5, 4, 3, 2, 13, 14, 15 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @pci_set_io_region_addr, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @pci_config_writew, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 65280, { 1, 0 }
uselistorder i64 (i64, i64)* @pci_config_readw, { 2, 1, 0 }
uselistorder label LBL_14, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_10, { 1, 0, 2 }
} | 0 |
BinRealVul | opt_loglevel_2733 | opt_loglevel | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv6.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%3 = ptrtoint i64* %sv_1 to i64
%4 = inttoptr i64 %arg3 to i8*
store i64 0, i64* %indvars.iv6.reg2mem
br label LBL_1
LBL_1:
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%5 = mul i64 %indvars.iv6.reload, 16
%6 = add i64 %5, %3
%7 = add i64 %6, -144
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i8*
%11 = call i32 @strcmp(i8* %10, i8* %4)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = add i64 %6, -136
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 8
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
br label LBL_9
LBL_3:
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%19 = icmp ult i64 %indvars.iv.next7, 8
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_4:
%20 = call i32 @strtol(i8* %4, i8** nonnull %sv_0, i32 10)
%21 = load i8*, i8** %sv_0, align 8
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 0
br i1 %23, label LBL_8, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 0, i64 2, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %2, i64 %1)
%25 = add i64 %3, -144
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%26 = mul i64 %indvars.iv.reload, 16
%27 = add i64 %25, %26
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 0, i64 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %29, i64 %2, i64 %1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%31 = call i64 @FUNC(i64 1)
unreachable
LBL_8:
%32 = zext i32 %20 to i64
%33 = call i64 @FUNC(i64 %32)
br label LBL_9
LBL_9:
ret i64 0
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv6.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64)* @av_log_set_level, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | consdiffmgr_find_consensus_4631 | consdiffmgr_find_consensus | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg3, 4294967295
%2 = and i64 %0, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %arg2 to i32
%5 = add i32 %4, -1
%6 = sub i32 0, %4
%7 = and i32 %4, %6
%8 = icmp slt i32 %7, 0
%9 = icmp eq i32 %5, 0
%10 = icmp slt i32 %5, 0
%11 = icmp ne i1 %10, %8
%12 = or i1 %9, %11
%13 = zext i1 %12 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC(i64 %1)
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_1, label LBL_3
LBL_1:
%sext3 = mul i64 %15, 4294967296
%19 = ashr exact i64 %sext3, 32
%20 = mul i64 %arg2, 2
%21 = and i64 %20, 8589934590
%22 = add nsw i64 %19, %21
%23 = mul i64 %22, 8
%24 = add i64 %23, ptrtoint (i64* @gv_0 to i64)
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_2, label LBL_3
LBL_2:
%29 = call i64 @FUNC(i64 %26)
store i64 %29, i64* %arg1, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i32 %4, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 1, 6, 7 }
uselistorder i64 (i64)* @tor_assert, { 1, 0 }
uselistorder i64 4294967295, { 2, 1, 0 }
} | 0 |
BinRealVul | if_spi_host_to_card_4986 | if_spi_host_to_card | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i64, i64* %0
%5 = urem i64 %arg2, 256
%6 = trunc i64 %arg4 to i16
%sext4 = mul i64 %arg4, 281474976710656
%7 = ashr exact i64 %sext4, 48
%8 = urem i64 %arg4, 65536
%9 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %8, i64 %2, i64 %1)
%10 = icmp eq i16 %6, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = add i64 %3, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = urem i64 %7, 65536
%16 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %15, i64 %2, i64 %1)
store i64 4294967274, i64* %sv_0.1.reg2mem
store i64 %15, i64* %rcx.0.reg2mem
br label LBL_8
LBL_2:
%17 = urem i64 %7, 65536
%18 = call i64 @FUNC(i64 %17, i64 4)
%19 = urem i64 %18, 65536
%20 = add nuw nsw i64 %19, 24
%21 = call i64 @FUNC(i64 %20, i64 0)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967284, i64* %sv_0.1.reg2mem
store i64 %8, i64* %rcx.0.reg2mem
br i1 %23, label LBL_3, label LBL_8
LBL_3:
%24 = trunc i64 %18 to i32
%sext5 = mul i32 %24, 65536
%25 = ashr exact i32 %sext5, 16
%26 = trunc i32 %25 to i16
%27 = add i64 %21, 16
%28 = inttoptr i64 %27 to i16*
store i16 %26, i16* %28, align 2
%29 = trunc i64 %7 to i32
%30 = add i64 %21, 18
%31 = inttoptr i64 %30 to i64*
%32 = urem i32 %29, 65536
%33 = call i64* @memcpy(i64* %31, i64* %arg3, i32 %32)
%34 = urem i32 %25, 65536
%35 = sub nsw i32 %34, %32
%36 = add i64 %30, %17
%37 = inttoptr i64 %36 to i64*
%38 = call i64* @memset(i64* %37, i32 0, i32 %35)
%trunc = trunc i64 %arg2 to i8
switch i8 %trunc, label LBL_6 [
i8 1, label LBL_4
i8 2, label LBL_5
]
LBL_4:
%39 = add i64 %3, 16
%40 = inttoptr i64 %39 to i32*
store i32 1, i32* %40, align 4
%41 = add i64 %3, 40
%42 = call i64 @FUNC(i64 %41, i64 %4)
%43 = call i64 @FUNC(i64 %21, i64 %3)
%44 = call i64 @FUNC(i64 %41, i64 %4)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_5:
%45 = add i64 %3, 16
%46 = inttoptr i64 %45 to i32*
store i32 2, i32* %46, align 4
%47 = add i64 %3, 40
%48 = call i64 @FUNC(i64 %47, i64 %4)
%49 = call i64 @FUNC(i64 %21, i64 %45)
%50 = call i64 @FUNC(i64 %47, i64 %4)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%51 = call i64 @FUNC(i64 %21)
%52 = add i64 %3, 8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = inttoptr i64 %5 to i8*
%56 = call i64 @FUNC(i64 %54, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i8* %55, i64 %36, i64 %2, i64 %1)
store i64 4294967274, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%57 = add i64 %3, 48
%58 = add i64 %3, 32
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = call i64 @FUNC(i64 %60, i64 %57)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
store i64 %36, i64* %rcx.0.reg2mem
br label LBL_8
LBL_8:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%62 = and i64 %sv_0.1.reload, 4294967295
%63 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i64 %62, i64 %rcx.0.reload, i64 %2, i64 %1)
ret i64 %62
uselistorder i64 %62, { 1, 0 }
uselistorder i32 %32, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %7, { 2, 0, 1 }
uselistorder i64 %3, { 5, 4, 1, 2, 3, 7, 6, 8, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rcx.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @spin_unlock_irqrestore, { 1, 0 }
uselistorder i64 (i64, i64)* @list_add_tail, { 1, 0 }
uselistorder i64 (i64, i64)* @spin_lock_irqsave, { 1, 0 }
uselistorder i32 65536, { 1, 2, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @netdev_err, { 1, 0 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 %arg4, { 1, 0, 2 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 0 |
BinRealVul | init_ctx_new_13588 | init_ctx_new | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64 1)
store i64 %0, i64* %sv_1, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 1, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %arg2, i64 3, i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = inttoptr i64 %0 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = load i64, i64* %sv_1, align 8
%15 = add i64 %14, 16
%16 = inttoptr i64 %14 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %15)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_3, label LBL_4
LBL_3:
%22 = load i64, i64* %sv_1, align 8
%23 = add i64 %22, 8
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %24, align 8
%25 = load i64, i64* %sv_1, align 8
store i64 %25, i64* %arg3, align 8
store i64 0, i64* %sv_1, align 8
%26 = bitcast i64* %arg4 to i32*
store i32 0, i32* %26, align 4
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%27 = call i64 @FUNC(i64* nonnull %sv_1)
%28 = and i64 %sv_0.0.reload, 4294967295
store i64 %28, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 0 |
BinRealVul | crush_remove_uniform_bucket_item_17735 | crush_remove_uniform_bucket_item | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%storemerge25.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%storemerge3.lcssa.reg2mem = alloca i32
%storemerge36.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i32 0, i32* %storemerge3.lcssa.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = trunc i64 %arg2 to i32
%6 = zext i32 %3 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge36.reg2mem
br label LBL_2
LBL_2:
%storemerge36.reload = load i32, i32* %storemerge36.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = mul i64 %.reload, 4
%8 = add i64 %7, %0
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, %5
store i32 %storemerge36.reload, i32* %storemerge3.lcssa.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i32 %storemerge36.reload, 1
%13 = sext i32 %12 to i64
%14 = icmp slt i64 %13, %6
store i64 %13, i64* %.reg2mem
store i32 %12, i32* %storemerge36.reg2mem
store i32 %12, i32* %storemerge3.lcssa.reg2mem
br i1 %14, label LBL_2, label LBL_4
LBL_4:
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%15 = icmp eq i32 %storemerge3.lcssa.reload, %3
%16 = icmp eq i1 %15, false
store i64 4294967294, i64* %storemerge.reg2mem
br i1 %16, label LBL_5, label LBL_8
LBL_5:
%17 = zext i32 %3 to i64
%18 = sext i32 %storemerge3.lcssa.reload to i64
%19 = icmp slt i64 %18, %17
store i64 %18, i64* %.reg2mem16
store i32 %storemerge3.lcssa.reload, i32* %storemerge25.reg2mem
store i32 %3, i32* %.lcssa.reg2mem
br i1 %19, label LBL_6, label LBL_7
LBL_6:
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%20 = mul i64 %.reload17, 4
%21 = add i64 %20, %0
%22 = add i64 %21, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = inttoptr i64 %21 to i32*
store i32 %24, i32* %25, align 4
%26 = add i32 %storemerge25.reload, 1
%27 = load i32, i32* %2, align 4
%28 = zext i32 %27 to i64
%29 = sext i32 %26 to i64
%30 = icmp slt i64 %29, %28
store i64 %29, i64* %.reg2mem16
store i32 %26, i32* %storemerge25.reg2mem
store i32 %27, i32* %.lcssa.reg2mem
br i1 %30, label LBL_6, label LBL_7
LBL_7:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%31 = add i32 %.lcssa.reload, -1
store i32 %31, i32* %2, align 4
%32 = add i64 %0, 20
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %0, 24
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = sub i32 %34, %37
store i32 %38, i32* %33, align 4
%39 = mul i32 %31, 4
%40 = call i64* @realloc(i64* %arg1, i32 %39)
%41 = ptrtoint i64* %40 to i64
store i64 %41, i64* %arg1, align 8
%42 = add i64 %0, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = inttoptr i64 %44 to i64*
%46 = call i64* @realloc(i64* %45, i32 %39)
%47 = ptrtoint i64* %46 to i64
store i64 %47, i64* %43, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %39, { 1, 0 }
uselistorder i32 %storemerge3.lcssa.reload, { 0, 2, 1 }
uselistorder i32 %storemerge36.reload, { 1, 0 }
uselistorder i32* %2, { 1, 0, 2 }
uselistorder i64 %0, { 2, 4, 3, 0, 1, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge36.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem16, { 2, 0, 1 }
uselistorder i32* %storemerge25.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i32)* @realloc, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | iothread_stop_15719 | iothread_stop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = zext i8 %4 to i64
%6 = icmp eq i8 %4, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
store i8 1, i8* %3, align 1
%8 = call i64 @FUNC(i64 %0)
%9 = add i64 %0, 16
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = inttoptr i64 %9 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
br label LBL_4
LBL_4:
%16 = add i64 %0, 24
%17 = call i64 @FUNC(i64 %16)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 2, 3, 4, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | updateDevice_5269 | updateDevice | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.pre-phi29.reg2mem = alloca i64*
%.pre-phi33.reg2mem = alloca i64*
%.pre-phi37.reg2mem = alloca i64*
%rdi.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%.pre-phi21.pre-phi.reg2mem = alloca i64*
%.pre-phi25.pre-phi.reg2mem = alloca i64*
%sv_2.010.reg2mem = alloca i64
%rdi.111.reg2mem = alloca i64
%storemerge112.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%storemerge19 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %storemerge19, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_0.LBL_13_crit_edge
LBL_1:
%.pre26 = add i64 %0, 16
%.pre28 = inttoptr i64 %.pre26 to i64*
%.pre30 = add i64 %0, 24
%.pre32 = inttoptr i64 %.pre30 to i64*
%.pre34 = add i64 %0, 8
%.pre36 = inttoptr i64 %.pre34 to i64*
store i64* %.pre36, i64** %.pre-phi37.reg2mem
store i64* %.pre32, i64** %.pre-phi33.reg2mem
store i64* %.pre28, i64** %.pre-phi29.reg2mem
br label LBL_13
LBL_2:
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 %storemerge19, i64* %storemerge112.reg2mem
store i64 %0, i64* %rdi.111.reg2mem
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_2.010.reg2mem
br label LBL_3
LBL_3:
%rdi.111.reload = load i64, i64* %rdi.111.reg2mem
%storemerge112.reload = load i64, i64* %storemerge112.reg2mem
%9 = add i64 %storemerge112.reload, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = load i64, i64* %4, align 8
%13 = icmp eq i64 %11, %12
%14 = icmp eq i1 %13, false
store i64 %rdi.111.reload, i64* %rdi.0.reg2mem
br i1 %14, label LBL_12, label LBL_4
LBL_4:
%15 = inttoptr i64 %storemerge112.reload to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i64*
%18 = inttoptr i64 %rdi.111.reload to i64*
%19 = trunc i64 %12 to i32
%20 = call i32 @memcmp(i64* %17, i64* %18, i32 %19)
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 %16, i64* %rdi.0.reg2mem
br i1 %22, label LBL_12, label LBL_5
LBL_5:
%23 = add i64 %storemerge112.reload, 24
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = load i64, i64* %6, align 8
%27 = icmp eq i64 %25, %26
%28 = icmp eq i1 %27, false
store i64 %16, i64* %rdi.0.reg2mem
br i1 %28, label LBL_12, label LBL_6
LBL_6:
%29 = load i64, i64* %8, align 8
%30 = add i64 %storemerge112.reload, 16
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = inttoptr i64 %32 to i64*
%34 = inttoptr i64 %29 to i64*
%35 = trunc i64 %26 to i32
%36 = call i32 @memcmp(i64* %33, i64* %34, i32 %35)
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 %32, i64* %rdi.0.reg2mem
br i1 %38, label LBL_12, label LBL_7
LBL_7:
%sv_2.010.reload = load i64, i64* %sv_2.010.reg2mem
%39 = load i64, i64* %8, align 8
%40 = load i64, i64* %6, align 8
%41 = inttoptr i64 %39 to i8*
call void (i32, i8*, ...) @syslog(i32 7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %40, i8* %41)
%42 = add i64 %storemerge112.reload, 56
%43 = inttoptr i64 %42 to i64*
store i64 %arg2, i64* %43, align 8
%44 = add i64 %0, 40
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = add i64 %storemerge112.reload, 40
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = icmp ugt i64 %46, %49
store i64* %24, i64** %.pre-phi25.pre-phi.reg2mem
store i64* %10, i64** %.pre-phi21.pre-phi.reg2mem
store i64 %46, i64* %.reg2mem
store i64 %storemerge112.reload, i64* %sv_1.0.reg2mem
br i1 %50, label LBL_8, label LBL_11
LBL_8:
%51 = load i64, i64* %4, align 8
%52 = load i64, i64* %6, align 8
%53 = add i64 %51, %46
%54 = add i64 %53, %52
%55 = trunc i64 %54 to i32
%56 = add i32 %55, 72
%57 = call i64* @realloc(i64* %15, i32 %56)
%58 = icmp eq i64* %57, null
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_10, label LBL_9
LBL_9:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0))
%60 = add i64 %storemerge112.reload, 64
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = inttoptr i64 %sv_2.010.reload to i64*
store i64 %62, i64* %63, align 8
call void @free(i64* %15)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_10:
%64 = ptrtoint i64* %57 to i64
%65 = inttoptr i64 %sv_2.010.reload to i64*
store i64 %64, i64* %65, align 8
%.pre = load i64, i64* %45, align 8
%.pre19 = add i64 %64, 8
%.pre22 = add i64 %64, 24
%.pre49 = inttoptr i64 %.pre19 to i64*
%.pre50 = inttoptr i64 %.pre22 to i64*
store i64* %.pre50, i64** %.pre-phi25.pre-phi.reg2mem
store i64* %.pre49, i64** %.pre-phi21.pre-phi.reg2mem
store i64 %.pre, i64* %.reg2mem
store i64 %64, i64* %sv_1.0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%.pre-phi21.pre-phi.reload = load i64*, i64** %.pre-phi21.pre-phi.reg2mem
%.pre-phi25.pre-phi.reload = load i64*, i64** %.pre-phi25.pre-phi.reg2mem
%66 = add i64 %0, 32
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = add i64 %sv_1.0.reload, 48
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = load i64, i64* %.pre-phi21.pre-phi.reload, align 8
%73 = load i64, i64* %.pre-phi25.pre-phi.reload, align 8
%74 = add i64 %72, %71
%75 = add i64 %74, %73
%76 = inttoptr i64 %75 to i64*
%77 = inttoptr i64 %68 to i64*
%78 = trunc i64 %.reload to i32
%79 = call i64* @memcpy(i64* %76, i64* %77, i32 %78)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_12:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%80 = add i64 %storemerge112.reload, 64
%81 = inttoptr i64 %80 to i64*
%storemerge1 = load i64, i64* %81, align 8
%82 = icmp eq i64 %storemerge1, 0
%83 = icmp eq i1 %82, false
store i64 %storemerge1, i64* %storemerge112.reg2mem
store i64 %rdi.0.reload, i64* %rdi.111.reg2mem
store i64 %80, i64* %sv_2.010.reg2mem
store i64* %4, i64** %.pre-phi37.reg2mem
store i64* %6, i64** %.pre-phi33.reg2mem
store i64* %8, i64** %.pre-phi29.reg2mem
br i1 %83, label LBL_3, label LBL_13
LBL_13:
%.pre-phi29.reload = load i64*, i64** %.pre-phi29.reg2mem
%.pre-phi33.reload = load i64*, i64** %.pre-phi33.reg2mem
%.pre-phi37.reload = load i64*, i64** %.pre-phi37.reg2mem
%84 = load i64, i64* %.pre-phi29.reload, align 8
%85 = load i64, i64* %.pre-phi33.reload, align 8
%86 = inttoptr i64 %84 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %85, i8* %86)
%87 = load i64, i64* %.pre-phi37.reload, align 8
%88 = load i64, i64* %.pre-phi33.reload, align 8
%89 = add i64 %88, %87
%90 = add i64 %0, 40
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = add i64 %89, %92
%94 = trunc i64 %93 to i32
%95 = add i32 %94, 72
%96 = call i64* @malloc(i32 %95)
%97 = icmp eq i64* %96, null
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_15, label LBL_14
LBL_14:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%99 = ptrtoint i64* %96 to i64
%100 = load i64, i64* @gv_0, align 8
%101 = add i64 %99, 64
%102 = inttoptr i64 %101 to i64*
store i64 %100, i64* %102, align 8
%103 = add i64 %99, 56
%104 = inttoptr i64 %103 to i64*
store i64 %arg2, i64* %104, align 8
%105 = add i64 %99, 48
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
store i64 0, i64* %indvars.iv.reg2mem
store i64 %107, i64* %sv_0.07.reg2mem
br label LBL_16
LBL_16:
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%108 = mul i64 %indvars.iv.reload, 16
%109 = add i64 %108, %99
%110 = inttoptr i64 %109 to i64*
store i64 %sv_0.07.reload, i64* %110, align 8
%111 = add i64 %108, %0
%112 = add i64 %111, 8
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = add i64 %109, 8
%116 = inttoptr i64 %115 to i64*
store i64 %114, i64* %116, align 8
%117 = load i64, i64* %113, align 8
%118 = inttoptr i64 %111 to i64*
%119 = load i64, i64* %118, align 8
%120 = inttoptr i64 %sv_0.07.reload to i64*
%121 = inttoptr i64 %119 to i64*
%122 = trunc i64 %117 to i32
%123 = call i64* @memcpy(i64* %120, i64* %121, i32 %122)
%124 = load i64, i64* %113, align 8
%125 = add i64 %124, %sv_0.07.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %125, i64* %sv_0.07.reg2mem
br i1 %exitcond, label LBL_17, label LBL_16
LBL_17:
store i64 %99, i64* @gv_0, align 8
%126 = call i64 @FUNC(i64 1, i64 %99, i64 0)
store i64 1, 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 %108, { 1, 0 }
uselistorder i64 %sv_0.07.reload, { 2, 0, 1 }
uselistorder i64 %99, { 1, 2, 0, 3, 4, 5 }
uselistorder i64* %96, { 1, 0 }
uselistorder i64* %57, { 1, 0 }
uselistorder i64 %46, { 1, 0, 2 }
uselistorder i64 %storemerge112.reload, { 5, 8, 0, 7, 6, 2, 1, 3, 4 }
uselistorder i64 %rdi.111.reload, { 1, 0 }
uselistorder i64* %6, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 5, 6, 7, 0, 9, 8, 10, 2, 3, 4 }
uselistorder i64* %storemerge112.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.111.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.07.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64* null, { 1, 0 }
uselistorder i32 72, { 1, 0 }
uselistorder i64 40, { 0, 2, 1 }
uselistorder void (i32, i8*, ...)* @syslog, { 3, 0, 2, 1 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 8, { 2, 3, 1, 5, 4, 0 }
uselistorder i64 24, { 1, 3, 2, 0 }
uselistorder i64 16, { 0, 2, 3, 1 }
uselistorder i1 false, { 6, 7, 1, 2, 3, 4, 5, 0 }
uselistorder i64* @gv_0, { 1, 2, 3, 0 }
uselistorder label LBL_18, { 0, 3, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | LookupModMask_13702 | LookupModMask | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64* %arg5) 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 i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = zext i32 %arg3 to i64
%7 = call i64 @FUNC(i64 %5, i64 %6)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_8
LBL_2:
%10 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%11 = trunc i64 %10 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = bitcast i64* %arg5 to i32*
store i32 -1, i32* %13, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%14 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 0
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = bitcast i64* %arg5 to i32*
store i32 0, i32* %17, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%18 = call i64 @FUNC(i64 %0, i64 %6, i32 %3)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, -1
%21 = icmp eq i1 %20, false
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_7, label LBL_8
LBL_7:
%22 = urem i32 %19, 32
%23 = shl i32 1, %22
%24 = bitcast i64* %arg5 to i32*
store i32 %23, i32* %24, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 4, 2, 3 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @istreq, { 1, 0 }
uselistorder label LBL_8, { 3, 0, 4, 5, 1, 2 }
} | 0 |
BinRealVul | load_elf_2305 | load_elf | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64 %arg7, i64 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%1 = alloca i8
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%2 = load i8, i8* %1
%3 = load i32, i32* %0
%4 = load i8, i8* %1
%5 = load i8, i8* %1
%6 = load i8, i8* %1
%sv_0 = alloca i64, align 8
%7 = inttoptr i64 %arg1 to i8*
%8 = call i32 (i8*, i32, ...) @open(i8* %7, i32 0)
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* %7)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%11 = call i32 @read(i32 %8, i64* nonnull %sv_0, i32 16)
%12 = icmp eq i32 %11, 16
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_9, label LBL_3
LBL_3:
%14 = load i64, i64* %sv_0, align 8
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 127
%17 = icmp eq i8 %6, 69
%18 = icmp eq i1 %17, %16
%19 = icmp eq i8 %5, 76
%20 = icmp eq i8 %4, 70
%21 = icmp eq i1 %20, %19
%22 = icmp eq i1 %21, %18
br i1 %22, label LBL_4, label LBL_9
LBL_4:
%23 = urem i32 %3, 256
%24 = trunc i64 %arg7 to i32
%25 = icmp eq i32 %24, 0
%. = select i1 %25, i32 1, i32 2
%26 = icmp eq i32 %., %23
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_9, label LBL_5
LBL_5:
%28 = ptrtoint i64* %arg4 to i64
%29 = icmp eq i32 %23, 1
%30 = icmp eq i1 %29, false
%31 = zext i1 %30 to i32
%32 = call i32 @lseek(i32 %8, i32 0, i32 0)
%33 = icmp eq i8 %2, 2
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = call i64 @FUNC(i64 %arg1, i32 %8, i64 %arg2, i64 %arg3, i32 %31, i64 %28)
store i64 %35, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_7:
%36 = call i64 @FUNC(i64 %arg1, i32 %8, i64 %arg2, i64 %arg3, i32 %31, i64 %28)
store i64 %36, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_8:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%37 = call i32 @close(i32 %8)
%38 = and i64 %storemerge.in.reload, 4294967295
store i64 %38, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%39 = call i32 @close(i32 %8)
store i64 4294967295, 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 %8, { 4, 0, 1, 2, 3, 5, 6 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i8* %1, { 3, 2, 1, 0 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder label LBL_9, { 1, 0, 2 }
} | 0 |
BinRealVul | qemu_balloon_1554 | qemu_balloon | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = load i64, i64* @gv_1, align 8
%4 = call i64 @FUNC(i64 %3, i64 %arg1)
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 i32 1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ff_rv34_decode_update_thread_context_14540 | ff_rv34_decode_update_thread_context | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%.pre-phi2.reg2mem = alloca i32*
%.pre-phi6.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp eq i64* %arg1, %arg2
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_9, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %9, label LBL_2, label LBL_9
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = trunc i64 %1 to i32
%12 = trunc i64 %2 to i32
%13 = icmp eq i32 %11, %12
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = add i64 %4, 4
%.pre1 = inttoptr i64 %.pre to i32*
%.pre3 = add i64 %10, 4
%.pre5 = inttoptr i64 %.pre3 to i32*
store i32* %.pre5, i32** %.pre-phi6.reg2mem
store i32* %.pre1, i32** %.pre-phi2.reg2mem
br label LBL_5
LBL_4:
%15 = add i64 %10, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %4, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %17, %20
store i32* %16, i32** %.pre-phi6.reg2mem
store i32* %19, i32** %.pre-phi2.reg2mem
br i1 %21, label LBL_7, label LBL_5
LBL_5:
%.pre-phi2.reload = load i32*, i32** %.pre-phi2.reg2mem
%.pre-phi6.reload = load i32*, i32** %.pre-phi6.reg2mem
%22 = call i64 @FUNC(i64 %10)
%23 = bitcast i64* %arg1 to i32*
store i32 %12, i32* %23, align 4
%24 = load i32, i32* %.pre-phi2.reload, align 4
store i32 %24, i32* %.pre-phi6.reload, align 4
%25 = call i64 @FUNC(i64 %10)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 %25, i64* %rax.0.shrunk.reg2mem
br i1 %28, label LBL_6, label LBL_9
LBL_6:
%29 = call i64 @FUNC(i64 %10)
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 %29, i64* %rax.0.shrunk.reg2mem
br i1 %32, label LBL_7, label LBL_9
LBL_7:
%33 = call i64 @FUNC(i64 %10, i64 %4)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i64 %33, i64* %rax.0.shrunk.reg2mem
br i1 %35, label LBL_8, label LBL_9
LBL_8:
%36 = add i64 %4, 24
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %10, 24
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%41 = add i64 %4, 28
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = add i64 %10, 28
%45 = inttoptr i64 %44 to i32*
store i32 %43, i32* %45, align 4
%46 = add i64 %4, 32
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i64 %10, 32
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = add i64 %10, 36
%52 = inttoptr i64 %51 to i64*
%53 = call i64* @memset(i64* %52, i32 0, i32 4)
%54 = add i64 %10, 8
%55 = inttoptr i64 %54 to i64*
store i64 0, i64* %55, align 8
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %10, { 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 0 }
uselistorder i64 %4, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 6, 1, 2, 3, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4, { 2, 3, 0, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_9, { 5, 0, 1, 2, 4, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | mk_vhost_fdt_open_11358 | mk_vhost_fdt_open | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%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 %0, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = inttoptr i64 %9 to i8*
%11 = call i32 (i8*, i32, ...) @open(i8* %10, i32 %8)
%12 = sext i32 %11 to i64
store i64 %12, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%sext = mul i64 %arg1, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = add i64 %0, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = and i64 %13, 4294967295
%18 = call i64 @FUNC(i64 %17, i64 %16)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = add i64 %0, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
%26 = call i32 (i8*, i32, ...) @open(i8* %25, i32 %23)
%27 = sext i32 %26 to i64
store i64 %27, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%sext5 = mul i64 %arg2, 4294967296
%28 = ashr exact i64 %sext5, 32
%29 = and i64 %28, 4294967295
%30 = call i64 @FUNC(i64 %29, i64 %18)
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = inttoptr i64 %30 to i32*
%33 = add i64 %30, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i32 %35, 1
store i32 %36, i32* %34, align 4
%37 = load i32, i32* %32, align 4
%38 = zext i32 %37 to i64
store i64 %38, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%39 = add i64 %0, 8
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = zext i32 %41 to i64
%43 = inttoptr i64 %42 to i8*
%44 = call i32 (i8*, i32, ...) @open(i8* %43, i32 %41)
%45 = icmp eq i32 %44, -1
%46 = icmp eq i1 %45, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %46, label LBL_7, label LBL_12
LBL_7:
%47 = inttoptr i64 %18 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
%50 = icmp slt i32 %48, 0
%51 = icmp eq i1 %50, false
%52 = icmp eq i1 %49, false
%53 = icmp eq i1 %51, %52
store i32 0, i32* %storemerge7.reg2mem
br i1 %53, label LBL_9, label LBL_8
LBL_8:
%54 = zext i32 %44 to i64
store i64 %54, i64* %rax.0.reg2mem
br label LBL_12
LBL_9:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%55 = sext i32 %storemerge7.reload to i64
%56 = mul nsw i64 %55, 12
%57 = add i64 %56, %18
%58 = add i64 %57, 4
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = icmp eq i32 %60, -1
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_11, label LBL_10
LBL_10:
store i32 %44, i32* %59, align 4
%63 = trunc i64 %28 to i32
%64 = add i64 %57, 8
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
%66 = add i64 %57, 12
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = add i32 %68, 1
store i32 %69, i32* %67, align 4
%70 = load i32, i32* %47, align 4
%71 = add i32 %70, -1
store i32 %71, i32* %47, align 4
%72 = trunc i64 %13 to i32
%73 = add i64 %0, 12
%74 = inttoptr i64 %73 to i32*
store i32 %72, i32* %74, align 4
%75 = add i64 %0, 16
%76 = inttoptr i64 %75 to i32*
store i32 %63, i32* %76, align 4
%77 = zext i32 %44 to i64
store i64 %77, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%78 = add nuw i32 %storemerge7.reload, 1
%79 = icmp ult i32 %78, 16
store i32 %78, i32* %storemerge7.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %79, label LBL_9, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %48, { 1, 0 }
uselistorder i32* %47, { 1, 0, 2 }
uselistorder i64 %18, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 2, 3, 0, 4, 5 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 7, 6, 2, 5, 4, 3 }
uselistorder i64 12, { 2, 0, 1 }
uselistorder i32 (i8*, i32, ...)* @open, { 2, 1, 0 }
uselistorder i1 false, { 2, 3, 1, 4, 0, 5 }
uselistorder label LBL_12, { 0, 2, 3, 1, 4, 5, 6 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | scsi_disk_emulate_read_toc_1714 | scsi_disk_emulate_read_toc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i128, align 8
%2 = add i64 %1, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %1, 1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = and i8 %7, 2
%9 = zext i8 %8 to i32
%10 = add i64 %1, 2
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = urem i8 %12, 16
%14 = add i64 %1, 6
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i32
%18 = add i64 %4, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = bitcast i128* %sv_1 to i64*
%22 = call i64 @FUNC(i64 %20, i64* nonnull %21)
%23 = udiv i32 %9, 2
%24 = zext i32 %23 to i64
%25 = zext i8 %13 to i64
%26 = zext i8 %16 to i64
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %26, i64 %25, i64 %24)
%28 = load i128, i128* %sv_1, align 8
%29 = inttoptr i64 %4 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, 511
%32 = icmp slt i32 %30, 0
%33 = select i1 %32, i32 %31, i32 %30
%34 = ashr i32 %33, 9
%35 = sext i32 %34 to i64
%.lhs.trunc = trunc i128 %28 to i64
%36 = udiv i64 %.lhs.trunc, %35
%37 = sext i64 %36 to i128
store i128 %37, i128* %sv_1, align 8
%38 = icmp eq i8 %13, 2
br i1 %38, label LBL_5, label LBL_1
LBL_1:
%39 = icmp ugt i8 %13, 2
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %39, label LBL_7, label LBL_2
LBL_2:
store i64 4294967295, i64* %storemerge.reg2mem
switch i8 %13, label LBL_7 [
i8 0, label LBL_3
i8 1, label LBL_4
]
LBL_3:
%40 = call i64 @FUNC(i64 %36, i64 %0, i32 %9, i32 %17)
store i64 %40, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_4:
%41 = call i64* @memset(i64* %arg2, i32 0, i32 12)
%42 = add i64 %0, 1
%43 = inttoptr i64 %42 to i8*
store i8 10, i8* %43, align 1
%44 = add i64 %0, 2
%45 = inttoptr i64 %44 to i8*
store i8 1, i8* %45, align 1
%46 = add i64 %0, 3
%47 = inttoptr i64 %46 to i8*
store i8 1, i8* %47, align 1
store i64 12, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_5:
%48 = call i64 @FUNC(i64 %36, i64 %0, i32 %9, i32 %17)
store i64 %48, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%49 = and i64 %sv_0.0.reload, 4294967295
store i64 %49, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %17, { 1, 0 }
uselistorder i8 %13, { 3, 2, 1, 0 }
uselistorder i32 %9, { 2, 1, 0 }
uselistorder i128* %sv_1, { 1, 0, 2 }
uselistorder i64 %0, { 4, 0, 1, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i8 1, { 1, 2, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | gen_ove_ov_2726 | gen_ove_ov | 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 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %arg2, 4294967295
%5 = load i64, i64* @gv_0, align 8
%6 = call i64 @FUNC(i64 %5, i64 %4)
store i64 %6, 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 | qemu_bh_schedule_idle_16002 | qemu_bh_schedule_idle | 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
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = call i64 @FUNC()
store i32 1, i32* %arg1, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ff_init_cabac_decoder_3173 | ff_init_cabac_decoder | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
store i64 %0, i64* %3, align 8
store i64 %0, i64* %arg1, align 8
%sext = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = add i64 %4, %0
%6 = add i64 %1, 16
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = load i64, i64* %3, align 8
%9 = add i64 %8, 1
store i64 %9, i64* %3, align 8
%10 = inttoptr i64 %8 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i32
%13 = mul i32 %12, 1024
%14 = add i64 %1, 24
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = load i64, i64* %3, align 8
%17 = add i64 %16, 1
store i64 %17, i64* %3, align 8
%18 = inttoptr i64 %16 to i8*
%19 = load i8, i8* %18, align 1
%20 = zext i8 %19 to i32
%21 = mul i32 %20, 4
%22 = or i32 %21, 2
%23 = load i32, i32* %15, align 4
%24 = add i32 %22, %23
store i32 %24, i32* %15, align 4
%25 = add i64 %1, 28
%26 = inttoptr i64 %25 to i32*
store i32 510, i32* %26, align 4
%27 = load i32, i32* %15, align 4
%28 = icmp ugt i32 %27, 261120
%. = select i1 %28, i64 4294967295, i64 0
ret i64 %.
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
} | 0 |
BinRealVul | ff_mpeg4_init_direct_mv_15248 | ff_mpeg4_init_direct_mv | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4202516 to i32*), align 4
%1 = icmp eq i32 %0, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 1024
%4 = inttoptr i64 %3 to i32*
%5 = add i64 %2, 1028
%6 = inttoptr i64 %5 to i32*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = add i32 %storemerge1.reload, -128
%8 = load i32, i32* %4, align 4
%9 = mul i32 %8, %7
%10 = load i32, i32* %6, align 4
%11 = ashr i32 %9, 31
%12 = zext i32 %9 to i64
%13 = zext i32 %11 to i64
%14 = mul i64 %13, 4294967296
%15 = or i64 %14, %12
%16 = zext i32 %10 to i64
%17 = sdiv i64 %15, %16
%18 = trunc i64 %17 to i16
%19 = mul i64 %.reload, 2
%20 = add i64 %19, %2
%21 = inttoptr i64 %20 to i16*
store i16 %18, i16* %21, align 2
%22 = load i32, i32* %4, align 4
%23 = load i32, i32* %6, align 4
%24 = sub i32 %22, %23
%25 = mul i32 %24, %7
%26 = ashr i32 %25, 31
%27 = zext i32 %25 to i64
%28 = zext i32 %26 to i64
%29 = mul i64 %28, 4294967296
%30 = or i64 %29, %27
%31 = zext i32 %23 to i64
%32 = sdiv i64 %30, %31
%33 = trunc i64 %32 to i16
%34 = add i64 %20, 512
%35 = inttoptr i64 %34 to i16*
store i16 %33, i16* %35, align 2
%36 = add i32 %storemerge1.reload, 1
%37 = load i32, i32* inttoptr (i64 4202516 to i32*), align 4
%38 = zext i32 %37 to i64
%39 = sext i32 %36 to i64
%40 = icmp slt i64 %39, %38
store i64 %39, i64* %.reg2mem
store i32 %36, i32* %storemerge1.reg2mem
store i64 %38, i64* %.lcssa.reg2mem
br i1 %40, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32* inttoptr (i64 4202516 to i32*), { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | core_dev_unexport_4328 | core_dev_unexport | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = add i64 %0, 16
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%8 = call i64 @FUNC(i64 %1)
store i64 %8, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%9 = ptrtoint i64* %arg1 to i64
%10 = add i64 %9, 12
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %9, i64 %0)
%13 = call i64 @FUNC(i64 %10)
%14 = call i64 @FUNC(i64 %9)
%15 = add i64 %9, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, -1
store i32 %18, i32* %16, align 4
%19 = call i64 @FUNC(i64 %9)
store i64 0, i64* %arg3, align 8
store i64 0, i64* %4, align 8
store i64 %0, 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 %9, { 0, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @spin_unlock, { 2, 1, 0 }
uselistorder i64 (i64)* @spin_lock, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | dynticks_start_timer_16948 | dynticks_start_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca 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
%0 = bitcast i64* %sv_2 to %_TYPEDEF_sigset_t*
%1 = call i32 @sigfillset(%_TYPEDEF_sigset_t* nonnull %0)
store i64 4198758, i64* %sv_3, align 8
%2 = bitcast i64* %sv_3 to %sigaction*
%3 = call i32 @sigaction(i32 14, %sigaction* nonnull %2, %sigaction* null)
store i32 0, i32* %sv_1, align 4
%4 = bitcast i32* %sv_1 to %sigevent*
%5 = bitcast i64* %sv_0 to i64**
%6 = call i32 @timer_create(i32 0, %sigevent* nonnull %4, i64** nonnull %5)
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
%8 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%9 = call i32 @fwrite(i64* bitcast ([24 x i8]* @gv_2 to i64*), i32 1, i32 23, %_IO_FILE* %8)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%10 = load i64, i64* %sv_0, align 8
store i64 %10, i64* %arg1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | replay_configure_3516 | replay_configure | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%5 = icmp eq i64* %arg1, null
br i1 %5, label LBL_9, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64* nonnull %sv_0)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_8, label LBL_2
LBL_2:
%11 = inttoptr i64 %9 to i8*
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 1, i64* %storemerge.reg2mem
br i1 %14, label LBL_3, label LBL_5
LBL_3:
%15 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 2, i64* %storemerge.reg2mem
br i1 %17, label LBL_4, label LBL_5
LBL_4:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %9, i64 %3, i64 %4, i64 %2, i64 %1)
call void @exit(i32 1)
unreachable
LBL_5:
%19 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0))
store i64 %19, i64* %sv_0, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_5, i64 0, i64 0), i64 ptrtoint ([7 x i8]* @gv_4 to i64), i64 %3, i64 %4, i64 %2, i64 %1)
call void @exit(i32 1)
unreachable
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%23 = call i64 @FUNC(i64 %19, i64 %storemerge.reload)
br label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %24, 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 %6, { 0, 2, 1 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder [7 x i8]* @gv_4, { 1, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 }
uselistorder i64 (i64, i8*)* @qemu_opt_get, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | cms_copy_content_6303 | cms_copy_content | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i1
%sv_1 = alloca i64, align 8
%0 = zext i32 %arg3 to i64
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_1, i64 4096)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i1 %8, i1* %.lcssa.reg2mem
store i32 %5, i32* %.reg2mem
br i1 %10, label LBL_7, label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 1, i64 2)
store i64 0, i64* %sv_0.02.reg2mem
br label LBL_13
LBL_3:
%.lcssa.reload = load i1, i1* %.lcssa.reg2mem
%12 = call i64 @FUNC(i64 %arg2)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 4
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %arg2)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%.not = icmp ne i1 %.lcssa.reload, true
%brmerge = or i1 %18, %.not
store i64 0, i64* %sv_0.0.reg2mem
br i1 %brmerge, label LBL_11, label LBL_8
LBL_5:
store i64 0, i64* %sv_0.0.reg2mem
br i1 %.lcssa.reload, label LBL_8, label LBL_11
LBL_6:
%19 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_1, i64 4096)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp slt i32 %20, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %21, false
%25 = icmp eq i1 %23, %24
store i1 %23, i1* %.lcssa.reg2mem
store i32 %20, i32* %.reg2mem
br i1 %25, label LBL_7, label LBL_3
LBL_7:
%.reload = load i32, i32* %.reg2mem
%26 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1, i32 %.reload)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %.reload, %27
%29 = icmp eq i1 %28, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_11, label LBL_6
LBL_8:
%30 = and i32 %arg3, 8
%31 = icmp eq i32 %30, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_11, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %1, i64 %arg1)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %35, label LBL_11, label LBL_10
LBL_10:
%36 = call i64 @FUNC(i64 1, i64 3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%37 = icmp eq i64 %1, %arg1
store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%38 = call i64 @FUNC(i64 %1)
store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem
br label LBL_13
LBL_13:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
ret i64 %sv_0.02.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %20, { 0, 2, 1 }
uselistorder i64 %1, { 2, 0, 1, 3, 4 }
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i1* %.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 3, 2, 1, 5, 4 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @CMSerr, { 1, 0 }
uselistorder i64 1, { 4, 1, 0, 5, 2, 3 }
uselistorder i64 (i64, i64*, i64)* @BIO_read, { 1, 0 }
uselistorder i64 4096, { 1, 0 }
uselistorder i1 false, { 3, 4, 6, 2, 5, 0, 1, 7 }
uselistorder i64 %arg2, { 3, 1, 2, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_11, { 5, 3, 2, 0, 4, 1 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | udp_chr_update_read_handler_17319 | udp_chr_update_read_handler | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.01.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = zext i32 %3 to i64
%6 = call i64 @FUNC(i64 %5)
store i32 0, i32* %2, align 4
store i64 %5, i64* %rdi.01.reg2mem
br label LBL_3
LBL_2:
%7 = icmp eq i64* %arg1, null
store i64 %0, i64* %rdi.01.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%8 = call i64 @FUNC(i64 %rdi.01.reload, i64 4198689, i64 4198700, i64 %0)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %2, align 4
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %2, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | _zend_hash_init_12597 | _zend_hash_init | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = trunc i64 %arg4 to i32
%3 = add i64 %0, 32
%4 = inttoptr i64 %3 to i32*
%5 = icmp eq i32 %2, 0
%. = select i1 %5, i32 6, i32 7
store i32 %., i32* %4, align 4
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = add i64 %0, 4
%10 = inttoptr i64 %9 to i32*
store i32 1, i32* %10, align 4
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add i64 %0, 12
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i32*
store i32 -1, i32* %16, align 4
%17 = add i64 %0, 20
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
store i64 %arg3, i64* %20, align 8
ret i64 %0
uselistorder i64 %0, { 5, 6, 4, 3, 2, 1, 0, 7 }
} | 1 |
BinRealVul | quorum_copy_qiov_16641 | quorum_copy_qiov | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%rdi.2.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rsi.31.reg2mem = alloca i64
%rdi.32.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %4, %7
store i64 %0, i64* %rsi.0.reg2mem
store i64 %1, i64* %rdi.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem
store i64 ptrtoint ([27 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%9 = add i64 %1, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %11, %14
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %15, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.1.reg2mem
store i64 ptrtoint ([27 x i8]* @gv_3 to i64), i64* %rdi.1.reg2mem
br label LBL_4
LBL_4:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%16 = load i32, i32* %6, align 4
%17 = icmp eq i32 %16, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
store i64 %rdi.1.reload, i64* %rdi.32.reg2mem
store i64 %rsi.1.reload, i64* %rsi.31.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %17, label LBL_8, label LBL_5
LBL_5:
%rsi.31.reload = load i64, i64* %rsi.31.reg2mem
%rdi.32.reload = load i64, i64* %rdi.32.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%18 = mul i64 %.reload, 16
%19 = or i64 %18, 8
%20 = add i64 %19, %rdi.32.reload
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %rsi.31.reload, %19
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %22, %25
store i64 %rsi.31.reload, i64* %rsi.2.reg2mem
store i64 %rdi.32.reload, i64* %rdi.2.reg2mem
br i1 %26, label LBL_7, label LBL_6
LBL_6:
call void @__assert_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.2.reg2mem
store i64 ptrtoint ([47 x i8]* @gv_4 to i64), i64* %rdi.2.reg2mem
br label LBL_7
LBL_7:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%27 = add i64 %rsi.2.reload, %18
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %27 to i64*
%32 = load i64, i64* %31, align 8
%33 = add i64 %rdi.2.reload, %18
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = inttoptr i64 %35 to i64*
%37 = inttoptr i64 %32 to i64*
%38 = trunc i64 %30 to i32
%39 = call i64* @memcpy(i64* %36, i64* %37, i32 %38)
%40 = add i32 %storemerge3.reload, 1
%41 = load i32, i32* %6, align 4
%42 = zext i32 %41 to i64
%43 = sext i32 %40 to i64
%44 = icmp slt i64 %43, %42
store i64 %43, i64* %.reg2mem
store i32 %40, i32* %storemerge3.reg2mem
store i64 %35, i64* %rdi.32.reg2mem
store i64 %32, i64* %rsi.31.reg2mem
store i64 %42, i64* %.lcssa.reg2mem
br i1 %44, label LBL_5, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %18, { 2, 1, 0 }
uselistorder i32* %6, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.32.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.31.reg2mem, { 2, 0, 1 }
uselistorder [47 x i8]* @gv_4, { 1, 0 }
uselistorder [27 x i8]* @gv_3, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
uselistorder [50 x i8]* @gv_1, { 1, 0 }
uselistorder [27 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ngx_gmtime_18960 | ngx_gmtime | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.off0.reg2mem = alloca i32
store i32 1, i32* %sv_0.0.off0.reg2mem
br i1 true, label LBL_6, label LBL_1
LBL_1:
br i1 false, label LBL_4, label LBL_2
LBL_2:
br i1 false, label LBL_5, label LBL_3
LBL_3:
br i1 false, label LBL_4, label LBL_5
LBL_4:
br label LBL_5
LBL_5:
store i32 0, i32* %sv_0.0.off0.reg2mem
br label LBL_6
LBL_6:
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp slt i64 %arg1, 0
%2 = icmp eq i1 %1, false
%spec.select = select i1 %2, i64 %arg1, i64 0
%3 = ashr i64 %spec.select, 63
%4 = and i64 %3, -86400
%5 = add i64 %4, %spec.select
%6 = and i64 %5, 4294967295
%narrow2 = mul nuw i64 %6, 2443359173
%7 = udiv i64 %narrow2, 8796093022208
%8 = trunc i64 %7 to i32
%9 = trunc i64 %5 to i32
%10 = mul i32 %8, -3600
%11 = add i32 %10, %9
%12 = udiv i32 %11, 60
%13 = mul i32 %12, -60
%14 = add i32 %13, %11
%sv_0.0.off0.reload = load i32, i32* %sv_0.0.off0.reg2mem
%15 = bitcast i64* %arg2 to i32*
store i32 %14, i32* %15, align 4
%16 = add i64 %0, 4
%17 = inttoptr i64 %16 to i32*
store i32 %12, i32* %17, align 4
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i32*
store i32 %8, i32* %19, align 4
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i32*
store i32 -9, i32* %21, align 4
%22 = add i64 %0, 20
%23 = inttoptr i64 %22 to i32*
store i32 %sv_0.0.off0.reload, i32* %23, align 4
ret i64 %0
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i1 false, { 3, 0, 1, 2 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | mxf_read_material_package_16200 | mxf_read_material_package | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i32 %arg3, 17411
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = trunc i64 %1 to i32
%6 = call i64 @FUNC(i64 %4)
%7 = trunc i64 %6 to i32
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = icmp ult i32 %5, 1073741823
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = mul i64 %1, 4
%12 = and i64 %11, 17179869180
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %10, 8
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = icmp eq i64 %13, 0
%17 = icmp eq i1 %16, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_4
LBL_3:
%18 = bitcast i64* %rdi to i32*
%19 = call i64 @FUNC(i64 %4, i64 4)
%20 = load i32, i32* %18, align 8
%21 = zext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = load i64, i64* %15, align 8
%24 = call i64 @FUNC(i64 %4, i64 %23, i64 %22)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | sctp_sf_violation_ctsn_4890 | sctp_sf_violation_ctsn | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg5 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 8461548343504758868, i64* %sv_0, align 8
%3 = sext i32 %arg3 to i64
%4 = call i64 @FUNC(i64 %2, i64 %1, i64 %arg4, i64 %0, i64* nonnull %sv_0, i64 58, i64 %3)
ret i64 %4
} | 0 |
BinRealVul | allocate_buffers_12083 | allocate_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi25.reg2mem = alloca i32*
%.lcssa.reg2mem = alloca i64
%.lcssa4.reg2mem = alloca i64*
%.lcssa5.reg2mem = alloca i64
%.lcssa6.reg2mem = alloca i32
%storemerge110.reg2mem = alloca i32
%.reg2mem43 = alloca i64
%.reg2mem41 = alloca i64
%rcx.014.reg2mem = alloca i64
%storemerge15.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_0.LBL_12_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %4, 12
%.pre24 = inttoptr i64 %.pre to i32*
store i32* %.pre24, i32** %.pre-phi25.reg2mem
br label LBL_12
LBL_2:
%7 = bitcast i64* %rdi to i32*
%8 = add i64 %4, 4
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %4, 12
%13 = inttoptr i64 %12 to i32*
%14 = add i64 %4, 16
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %4, 24
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge15.reg2mem
br label LBL_3
LBL_3:
%rcx.014.reload = load i64, i64* %rcx.014.reg2mem
%18 = load i32, i32* %9, align 4
%19 = icmp slt i32 %18, 1
%20 = icmp ult i32 %18, 1073741823
%or.cond = or i1 %19, %20
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%21 = add i64 %4, 40
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.014.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%25 = load i32, i32* %11, align 4
%26 = load i32, i32* %13, align 4
%27 = add i32 %26, %25
%28 = icmp ult i32 %27, 1073741823
%29 = icmp ugt i32 %27, %26
%or.cond3 = icmp eq i1 %28, %29
br i1 %or.cond3, label LBL_7, label LBL_6
LBL_6:
%30 = add i64 %4, 40
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i64 16, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.014.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_7:
%.reload = load i64, i64* %.reg2mem
%34 = sext i32 %18 to i64
%35 = mul i64 %34, 4
%storemerge2 = select i1 %19, i64 4, i64 %35
%36 = load i64, i64* %15, align 8
%37 = mul i64 %.reload, 8
%38 = add i64 %36, %37
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %40, i64 %storemerge2)
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %43, label LBL_8, label LBL_14
LBL_8:
%44 = load i64, i64* %15, align 8
%45 = add i64 %44, %37
%46 = inttoptr i64 %45 to i64*
store i64 %41, i64* %46, align 8
%47 = load i32, i32* %11, align 4
%48 = load i32, i32* %13, align 4
%49 = add i32 %48, %47
%50 = sext i32 %49 to i64
%51 = mul i64 %50, 4
%52 = load i64, i64* %17, align 8
%53 = add i64 %52, %37
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %55, i64 %51)
%57 = icmp eq i64 %56, 0
%58 = icmp eq i1 %57, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %58, label LBL_9, label LBL_14
LBL_9:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%59 = load i64, i64* %17, align 8
%60 = add i64 %59, %37
%61 = inttoptr i64 %60 to i64*
store i64 %56, i64* %61, align 8
%62 = load i32, i32* %13, align 4
%63 = icmp eq i32 %62, 0
%64 = load i64, i64* %17, align 8
%65 = add i64 %64, %37
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
store i64 %67, i64* %.reg2mem41
store i64 0, i64* %.reg2mem43
store i32 0, i32* %storemerge110.reg2mem
store i32 0, i32* %.lcssa6.reg2mem
store i64 %64, i64* %.lcssa5.reg2mem
store i64* %66, i64** %.lcssa4.reg2mem
store i64 %67, i64* %.lcssa.reg2mem
br i1 %63, label LBL_11, label LBL_10
LBL_10:
%storemerge110.reload = load i32, i32* %storemerge110.reg2mem
%.reload44 = load i64, i64* %.reg2mem43
%.reload42 = load i64, i64* %.reg2mem41
%68 = mul i64 %.reload44, 4
%69 = add i64 %68, %.reload42
%70 = inttoptr i64 %69 to i32*
store i32 0, i32* %70, align 4
%71 = add i32 %storemerge110.reload, 1
%72 = load i32, i32* %13, align 4
%73 = zext i32 %72 to i64
%74 = sext i32 %71 to i64
%75 = icmp slt i64 %74, %73
%76 = load i64, i64* %17, align 8
%77 = add i64 %76, %37
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
store i64 %79, i64* %.reg2mem41
store i64 %74, i64* %.reg2mem43
store i32 %71, i32* %storemerge110.reg2mem
store i32 %72, i32* %.lcssa6.reg2mem
store i64 %76, i64* %.lcssa5.reg2mem
store i64* %78, i64** %.lcssa4.reg2mem
store i64 %79, i64* %.lcssa.reg2mem
br i1 %75, label LBL_10, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%.lcssa4.reload = load i64*, i64** %.lcssa4.reg2mem
%.lcssa5.reload = load i64, i64* %.lcssa5.reg2mem
%.lcssa6.reload = load i32, i32* %.lcssa6.reg2mem
%80 = sext i32 %.lcssa6.reload to i64
%81 = mul i64 %80, 4
%82 = add i64 %.lcssa.reload, %81
store i64 %82, i64* %.lcssa4.reload, align 8
%83 = add i32 %storemerge15.reload, 1
%84 = load i32, i32* %7, align 8
%85 = zext i32 %84 to i64
%86 = sext i32 %83 to i64
%87 = icmp slt i64 %86, %85
store i64 %86, i64* %.reg2mem
store i32 %83, i32* %storemerge15.reg2mem
store i64 %.lcssa5.reload, i64* %rcx.014.reg2mem
store i32* %13, i32** %.pre-phi25.reg2mem
br i1 %87, label LBL_3, label LBL_12
LBL_12:
%.pre-phi25.reload = load i32*, i32** %.pre-phi25.reg2mem
%88 = load i32, i32* %.pre-phi25.reload, align 4
%89 = sext i32 %88 to i64
%90 = add i64 %4, 32
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = call i64 @FUNC(i64 %92, i64 %89)
%94 = icmp eq i64 %93, 0
%95 = icmp eq i1 %94, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %95, label LBL_13, label LBL_14
LBL_13:
store i64 %93, i64* %91, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %37, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 %26, { 1, 0 }
uselistorder i64 %rcx.014.reload, { 1, 0 }
uselistorder i64* %17, { 1, 0, 2, 3 }
uselistorder i32* %13, { 0, 2, 1, 3, 4 }
uselistorder i64 %4, { 7, 1, 8, 2, 3, 5, 4, 6, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.014.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem41, { 2, 0, 1 }
uselistorder i64* %.reg2mem43, { 2, 0, 1 }
uselistorder i32* %storemerge110.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2, 6, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967284, { 2, 0, 1 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @av_realloc, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 1073741823, { 1, 0 }
uselistorder i64 4, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 12, { 1, 0 }
uselistorder label LBL_14, { 3, 2, 0, 1, 4, 5 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | av1dmx_parse_av1_12914 | av1dmx_parse_av1 | 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 i32
%rsi = alloca i64, align 8
%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 i32*
store i32 1, i32* %7, align 4
br label LBL_2
LBL_2:
%8 = add i64 %2, 24
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %2, 32
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label LBL_13, label LBL_3
LBL_3:
%16 = icmp sgt i32 %14, 2
store i32 2, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_16, label LBL_4
LBL_4:
store i32 2, i32* %sv_0.0.reg2mem
switch i32 %14, label LBL_16 [
i32 0, label LBL_5
i32 1, label LBL_9
]
LBL_5:
%17 = add i64 %2, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
br i1 %20, label LBL_8, label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 %19)
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = add i64 %2, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %27, label LBL_8, label LBL_16
LBL_8:
%28 = add i64 %2, 8
%29 = load i64, i64* %9, align 8
%30 = call i64 @FUNC(i64 %29, i64 %28)
%31 = trunc i64 %30 to i32
store i32 %31, i32* %sv_0.0.reg2mem
br label LBL_16
LBL_9:
%32 = add i64 %2, 16
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_11, label LBL_10
LBL_10:
%36 = call i64 @FUNC(i64 %34)
%37 = icmp eq i64 %36, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %37, label LBL_11, label LBL_16
LBL_11:
%38 = add i64 %2, 8
%39 = load i64, i64* %9, align 8
%40 = call i64 @FUNC(i64 %39, i64 %38)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 1
%43 = icmp eq i1 %42, false
store i32 %41, i32* %sv_0.0.reg2mem
br i1 %43, label LBL_16, label LBL_12
LBL_12:
%44 = call i64 @FUNC(i64 %38, i64 0)
%45 = load i64, i64* %9, align 8
%46 = call i64 @FUNC(i64 %45, i64 %11)
store i32 %41, i32* %sv_0.0.reg2mem
br label LBL_16
LBL_13:
%47 = add i64 %2, 16
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label LBL_15, label LBL_14
LBL_14:
%51 = call i64 @FUNC(i64 %49)
%52 = icmp eq i64 %51, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %52, label LBL_15, label LBL_16
LBL_15:
%53 = add i64 %2, 8
%54 = load i64, i64* %9, align 8
%55 = call i64 @FUNC(i64 %54, i64 %53)
%56 = trunc i64 %55 to i32
store i32 %56, i32* %sv_0.0.reg2mem
br label LBL_16
LBL_16:
%57 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%58 = call i64 @FUNC(i64 %57, i64 %2)
%59 = add i64 %2, 36
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = icmp ne i32 %61, 0
%63 = icmp eq i32 %sv_0.0.reload, 1
%64 = icmp eq i32 %sv_0.0.reload, 0
%not.or.cond = icmp eq i1 %63, %62
%65 = or i1 %64, %not.or.cond
br i1 %65, label LBL_18, label LBL_17
LBL_17:
%66 = zext i32 %sv_0.0.reload to i64
store i64 %66, i64* %rax.0.reg2mem
br label LBL_24
LBL_18:
%67 = add i64 %2, 40
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_22, label LBL_19
LBL_19:
%72 = add i64 %2, 12
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label LBL_21, label LBL_20
LBL_20:
%76 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_0, i64 0, i64 0))
br label LBL_21
LBL_21:
%77 = add i64 %2, 8
%78 = call i64 @FUNC(i64 %77, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_24
LBL_22:
%79 = bitcast i64* %rsi to i32*
%80 = load i32, i32* %79, align 8
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i64 0, i64* %rax.0.reg2mem
br i1 %82, label LBL_23, label LBL_24
LBL_23:
%83 = call i64 @FUNC(i64 %57, i64 %2)
store i64 %83, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64* %9, { 3, 0, 1, 2, 4 }
uselistorder i64 %2, { 7, 5, 8, 6, 9, 10, 11, 12, 0, 1, 3, 2, 4, 13, 14, 15 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 9, 3, 6, 7, 4, 8, 5, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 (i64, i64)* @gf_av1_reset_state, { 1, 0 }
uselistorder i32 2, { 1, 0, 3, 2 }
uselistorder i64 (i64)* @gf_bs_get_position, { 3, 2, 1, 0 }
uselistorder i32 0, { 5, 6, 7, 3, 8, 0, 1, 2, 9, 4, 10 }
uselistorder label LBL_24, { 1, 0, 2, 3 }
uselistorder label LBL_16, { 7, 2, 6, 5, 3, 8, 4, 1, 0 }
} | 1 |
BinRealVul | container_setup_modules_13334 | container_setup_modules | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%1 = load i32, i32* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%2 = bitcast i64* %sv_5 to %utsname*
%3 = call i32 @uname(%utsname* nonnull %2)
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%6 = bitcast i64* %sv_3 to i8*
%7 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_4)
%8 = bitcast i64* %sv_2 to i8*
%9 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_3)
%10 = bitcast i64* %sv_1 to %stat*
%11 = call i32 @stat(i8* nonnull %8, %stat* nonnull %10)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_3
LBL_3:
%14 = and i32 %1, 61440
%15 = icmp eq i32 %14, 16384
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_10
LBL_4:
%16 = bitcast i64* %sv_0 to %dirent***
%17 = call i32 @scandir(i8* nonnull %8, %dirent*** nonnull %16, i32 (%dirent*)* null, i32 (%dirent**, %dirent**)* null)
%18 = icmp slt i32 %17, 3
br i1 %18, label LBL_8, label LBL_5
LBL_5:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%20 = zext i32 %17 to i64
%21 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %19, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_2, i64 %20)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%22 = call i32* @__errno_location()
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 2
%25 = icmp eq i1 %24, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %25, label LBL_10, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64* nonnull %sv_2, i64 493)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %29, label LBL_8, label LBL_10
LBL_8:
%30 = call i32 @mount(i8* nonnull %6, i8* nonnull %8, i8* null, i32 4096, i64* null)
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_10, label LBL_9
LBL_9:
call void @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0))
store i64 4294967295, 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 i8* %8, { 1, 0, 2, 3 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 3, 2, 6, 4, 5 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 }
uselistorder void (i8*)* @perror, { 1, 0 }
uselistorder i64 0, { 2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder label LBL_10, { 4, 0, 2, 1, 5, 3, 6 }
} | 1 |
BinRealVul | qht_entry_move_16095 | qht_entry_move | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%sext3 = mul i64 %arg4, 4294967296
%2 = icmp eq i64* %arg1, %arg3
%3 = icmp eq i1 %2, false
%4 = trunc i64 %arg2 to i32
%5 = trunc i64 %arg4 to i32
%6 = icmp ne i32 %4, %5
%narrow = or i1 %3, %6
%storemerge = zext i1 %narrow to i64
%7 = call i64 @FUNC(i64 %storemerge)
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = ashr exact i64 %sext, 29
%12 = add i64 %10, %11
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = and i64 %14, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = add i64 %0, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = ashr exact i64 %sext3, 29
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = and i64 %23, 4294967295
%25 = call i64 @FUNC(i64 %24)
%26 = ashr exact i64 %sext3, 30
%27 = add i64 %19, %26
%28 = ashr exact i64 %sext, 30
%29 = add nsw i64 %24, %28
%30 = inttoptr i64 %27 to i32*
%31 = load i32, i32* %30, align 4
%32 = inttoptr i64 %29 to i32*
store i32 %31, i32* %32, align 4
%33 = load i64, i64* %18, align 8
%34 = add i64 %33, %20
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = load i64, i64* %9, align 8
%38 = add i64 %37, %11
%39 = call i64 @FUNC(i64 %38, i64 %36)
%40 = add i64 %38, %26
%41 = inttoptr i64 %40 to i32*
store i32 0, i32* %41, align 4
%42 = load i64, i64* %18, align 8
%43 = add i64 %42, %20
%44 = call i64 @FUNC(i64 %43, i64 0)
ret i64 %44
uselistorder i64 %sext3, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 }
uselistorder i64 (i64)* @qht_debug_assert, { 2, 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | ext4_ext_put_gap_in_cache_11601 | ext4_ext_put_gap_in_cache | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.shrunk.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%sext = mul i64 %6, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add i64 %7, %4
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %7, i64 %3, i64 %2, i64 %1)
store i32 0, i32* %sv_1.0.reg2mem
store i32 -1, i32* %sv_0.0.shrunk.reg2mem
br label LBL_9
LBL_2:
%14 = inttoptr i64 %10 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp ugt i32 %18, %arg3
%20 = icmp eq i1 %19, false
%21 = load i32, i32* %14, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%25 = sub i32 %24, %arg3
%26 = call i64 @FUNC(i64 %10)
%27 = load i32, i32* %14, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = and i64 %29, 4294967295
%31 = and i64 %26, 4294967295
%32 = zext i32 %arg3 to i64
%33 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %32, i64 %30, i64 %31, i64 %2, i64 %1)
store i32 %arg3, i32* %sv_1.0.reg2mem
store i32 %25, i32* %sv_0.0.shrunk.reg2mem
store i64 %31, i64* %rcx.0.reg2mem
br label LBL_9
LBL_4:
%34 = call i64 @FUNC(i64 %10)
%35 = trunc i64 %34 to i32
%36 = add i32 %35, %24
%37 = icmp ugt i32 %36, %arg3
br i1 %37, label LBL_8, label LBL_5
LBL_5:
%38 = load i32, i32* %14, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %39)
%41 = trunc i64 %40 to i32
%42 = call i64 @FUNC(i64 %10)
%43 = trunc i64 %42 to i32
%44 = add i32 %43, %41
%45 = call i64 @FUNC(i64 %4)
%46 = trunc i64 %45 to i32
%47 = call i64 @FUNC(i64 %10)
%48 = load i32, i32* %14, align 4
%49 = zext i32 %48 to i64
%50 = call i64 @FUNC(i64 %49)
%51 = and i64 %50, 4294967295
%52 = zext i32 %arg3 to i64
%53 = and i64 %47, 4294967295
%54 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i64 %51, i64 %53, i64 %52, i64 %2, i64 %1)
%55 = icmp eq i32 %44, %46
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_7, label LBL_6
LBL_6:
%57 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0))
br label LBL_7
LBL_7:
%58 = sub i32 %46, %44
store i32 %44, i32* %sv_1.0.reg2mem
store i32 %58, i32* %sv_0.0.shrunk.reg2mem
store i64 %52, i64* %rcx.0.reg2mem
br label LBL_9
LBL_8:
%59 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0))
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.shrunk.reload = load i32, i32* %sv_0.0.shrunk.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.0 = zext i32 %sv_0.0.shrunk.reload to i64
%60 = zext i32 %sv_1.0.reload to i64
%61 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i64 %60, i64 %sv_0.0, i64 %rcx.0.reload, i64 %2, i64 %1)
%62 = call i64 @FUNC(i64 %5, i32 %sv_1.0.reload, i64 %sv_0.0, i64 0)
ret i64 %62
uselistorder i64 %sv_0.0, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i32* %14, { 1, 2, 0, 3, 4 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_0.0.shrunk.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 (i8*)* @puts, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 (i64)* @ext4_ext_get_actual_len, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @le32_to_cpu, { 4, 3, 1, 2, 0 }
uselistorder i32 0, { 0, 2, 1 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @ext_debug, { 3, 2, 1, 0 }
uselistorder i32 %arg3, { 5, 1, 0, 3, 4, 2 }
} | 1 |
BinRealVul | op_3866 | op | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i32 %arg5, i32 %arg6, i32* %arg7, i64 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64*
%sv_2.017.reg2mem = alloca i32
%sv_0.118.reg2mem = alloca i64
%0 = trunc i64 %arg8 to i32
%sext6 = mul i64 %arg8, 4294967296
%1 = ashr exact i64 %sext6, 32
%2 = load i32, i32* %arg7, align 4
%3 = sub i32 %0, %2
%4 = sext i32 %3 to i64
%5 = icmp eq i32 %arg6, 0
%6 = icmp slt i32 %arg6, 0
%7 = icmp eq i1 %6, false
%8 = icmp eq i1 %5, false
%9 = icmp eq i1 %7, %8
store i64 %4, i64* %sv_0.1.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_11
LBL_1:
%10 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg9, 4294967296
%11 = ashr exact i64 %sext, 32
%12 = icmp eq i64* %arg3, null
%13 = icmp slt i32 %arg5, 0
%14 = sub nsw i64 %11, %1
%15 = trunc i64 %11 to i32
%16 = icmp slt i32 %15, 1
%17 = icmp ult i64 %10, %arg2
%18 = icmp ugt i64 %10, %arg2
%19 = icmp eq i1 %18, false
store i64 %4, i64* %sv_0.118.reg2mem
store i32 %arg6, i32* %sv_2.017.reg2mem
br label LBL_2
LBL_2:
%sv_2.017.reload = load i32, i32* %sv_2.017.reg2mem
%sv_0.118.reload = load i64, i64* %sv_0.118.reg2mem
%20 = trunc i64 %sv_0.118.reload to i32
%21 = sub i32 %20, %sv_2.017.reload
%22 = xor i32 %sv_2.017.reload, %20
%23 = xor i32 %21, %20
%24 = and i32 %23, %22
%25 = icmp slt i32 %24, 0
%26 = icmp eq i32 %21, 0
%27 = icmp slt i32 %21, 0
%28 = icmp ne i1 %27, %25
%29 = or i1 %26, %28
%30 = select i1 %29, i32 %20, i32 %sv_2.017.reload
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%31 = and i64 %sv_0.118.reload, 4294967295
%32 = sub i64 %arg4, %31
%33 = icmp ult i64 %32, %arg4
store i64 %sv_0.118.reload, i64* %sv_0.2.reg2mem
br i1 %33, label LBL_4, label LBL_12
LBL_4:
%34 = sext i32 %30 to i64
%35 = sub i64 %32, %34
%36 = xor i64 %32, %34
%37 = xor i64 %35, %32
%38 = and i64 %37, %36
%39 = icmp slt i64 %38, 0
%40 = icmp eq i64 %35, 0
%41 = icmp slt i64 %35, 0
%42 = icmp ne i1 %41, %39
%43 = or i1 %40, %42
%44 = select i1 %43, i64 %32, i64 %34
%45 = and i64 %44, 4294967295
%46 = inttoptr i64 %45 to i64*
%sext8 = mul i64 %44, 4294967296
%47 = trunc i64 %44 to i32
%48 = call i64* @memcpy(i64* %arg1, i64* %46, i32 %47)
%49 = ashr exact i64 %sext8, 31
store i64 %49, i64* %arg3, align 8
store i64* %46, i64** %sv_1.0.reg2mem
br label LBL_7
LBL_5:
%50 = zext i32 %30 to i64
%51 = inttoptr i64 %50 to i64*
store i64* %51, i64** %sv_1.0.reg2mem
br i1 %13, label LBL_7, label LBL_6
LBL_6:
%52 = call i64* @memset(i64* %arg1, i32 %arg5, i32 %30)
store i64* %51, i64** %sv_1.0.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.reload = load i64*, i64** %sv_1.0.reg2mem
%53 = ptrtoint i64* %sv_1.0.reload to i64
%54 = trunc i64 %53 to i32
%55 = sub i32 %20, %54
%56 = sext i32 %55 to i64
%57 = icmp eq i32 %55, 0
%58 = icmp slt i32 %55, 0
%59 = icmp eq i1 %58, false
%60 = icmp eq i1 %57, false
%61 = icmp eq i1 %59, %60
%spec.select = select i1 %61, i64 %53, i64 %14
%spec.select15 = select i1 %61, i64 %56, i64 %1
%.pn.in = mul i64 %spec.select, 4294967296
%.pn = ashr exact i64 %.pn.in, 32
%storemerge14 = add i64 %.pn, %10
store i64 %storemerge14, i64* %arg1, align 8
br i1 %16, label LBL_9, label LBL_8
LBL_8:
store i64 %spec.select15, i64* %sv_0.2.reg2mem
br i1 %17, label LBL_10, label LBL_12
LBL_9:
store i64 %spec.select15, i64* %sv_0.2.reg2mem
br i1 %19, label LBL_12, label LBL_10
LBL_10:
%62 = sub i32 %sv_2.017.reload, %54
%63 = icmp eq i32 %62, 0
%64 = icmp slt i32 %62, 0
%65 = icmp eq i1 %64, false
%66 = icmp eq i1 %63, false
%67 = icmp eq i1 %65, %66
store i64 %spec.select15, i64* %sv_0.118.reg2mem
store i32 %62, i32* %sv_2.017.reg2mem
store i64 %spec.select15, i64* %sv_0.1.lcssa.reg2mem
br i1 %67, label LBL_2, label LBL_11
LBL_11:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%68 = trunc i64 %1 to i32
%69 = trunc i64 %sv_0.1.lcssa.reload to i32
%70 = sub i32 %68, %69
store i32 %70, i32* %storemerge13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br label LBL_13
LBL_12:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%71 = trunc i64 %1 to i32
%72 = trunc i64 %sv_0.2.reload to i32
%73 = sub i32 %71, %72
store i32 %73, i32* %storemerge13.reg2mem
store i64 1, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
store i32 %storemerge13.reload, i32* %arg7, align 4
ret i64 %storemerge.reload
uselistorder i64 %spec.select15, { 2, 3, 1, 0 }
uselistorder i32 %55, { 2, 1, 0 }
uselistorder i64 %44, { 1, 0, 2 }
uselistorder i64 %35, { 1, 2, 0 }
uselistorder i64 %34, { 2, 0, 1 }
uselistorder i64 %32, { 4, 1, 0, 3, 2 }
uselistorder i32 %30, { 1, 2, 0 }
uselistorder i32 %21, { 1, 2, 0 }
uselistorder i32 %20, { 2, 3, 0, 1, 4 }
uselistorder i32 %sv_2.017.reload, { 0, 2, 3, 1 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %1, { 3, 1, 0, 2 }
uselistorder i64* %sv_0.118.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.017.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_1.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 6, 3, 5, 2, 4, 0, 1 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i64 4294967296, { 0, 1, 3, 2 }
uselistorder i32 %arg5, { 1, 0 }
uselistorder label LBL_12, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cancel_att_send_op_13421 | cancel_att_send_op | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
store i64 0, i64* %1, align 8
%2 = add i64 %arg1, 16
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
%4 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %4, align 8
ret i64 %arg1
uselistorder i64 %arg1, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | flush_old_exec_13831 | flush_old_exec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%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* %sv_0.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %0, i64 %8)
%10 = call i64 @FUNC(i64 %5, i64 0)
%11 = call i64 @FUNC(i64 %5)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 %11, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
store i64 0, i64* %arg1, align 8
%15 = load i64, i64* @gv_0, align 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = and i32 %17, -4
store i32 %18, i32* %16, align 4
%19 = call i64 @FUNC()
%20 = load i64, i64* @gv_0, align 8
%21 = add i64 %20, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %5, 16
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = sub i32 0, %26
%28 = sub i32 %27, 1
%29 = and i32 %23, %28
store i32 %29, i32* %22, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%30 = and i64 %sv_0.0.reload, 4294967295
store i64 %30, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | tq_timer_cb_9478 | tq_timer_cb | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i32* %arg1 to i64
store i32 1, 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
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | visit_type_int8_14059 | visit_type_int8 | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg4 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = icmp eq i64* %arg4, null
store i64 %7, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%9 = trunc i64 %1 to i8
%10 = ptrtoint i8* %arg2 to i64
store i8 %9, i8* %arg2, align 1
store i64 %10, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i8* %arg2, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | av_packet_unpack_dictionary_1343 | av_packet_unpack_dictionary | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i64
%0 = icmp eq i64* %arg3, null
%1 = icmp eq i64* %arg1, null
%or.cond = or i1 %1, %0
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_9
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %2, %6
%8 = add i64 %7, -1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_9
LBL_3:
%12 = ptrtoint i64* %arg3 to i64
%13 = icmp ugt i64 %7, %6
store i64 %6, i64* %sv_0.05.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_9
LBL_4:
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%14 = inttoptr i64 %sv_0.05.reload to i8*
%15 = call i32 @strlen(i8* %14)
%16 = sext i32 %15 to i64
%17 = add i64 %sv_0.05.reload, 1
%18 = add i64 %17, %16
%19 = icmp ult i64 %18, %7
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_9, label LBL_5
LBL_5:
%21 = load i8, i8* %14, align 1
%22 = icmp eq i8 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_9
LBL_6:
%24 = call i64 @FUNC(i64 %12, i64 %sv_0.05.reload, i64 %18, i64 0)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = inttoptr i64 %18 to i8*
%28 = call i32 @strlen(i8* %27)
%29 = sext i32 %28 to i64
%30 = add i64 %18, 1
%31 = add i64 %30, %29
%32 = icmp ult i64 %31, %7
store i64 %31, i64* %sv_0.05.reg2mem
br i1 %32, label LBL_4, label LBL_8
LBL_8:
%phitmp = and i64 %24, 4294967295
store i64 %phitmp, 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 %18, { 0, 2, 1, 3 }
uselistorder i64 %sv_0.05.reload, { 1, 0, 2 }
uselistorder i64 %7, { 3, 2, 0, 1 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 5, 7, 6 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 3, 1, 0, 2, 4, 6, 5 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | OPENSSL_LH_flush_5713 | OPENSSL_LH_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi6.reg2mem = alloca i64*
%storemerge12.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_8, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_7, label LBL_2
LBL_2:
%6 = bitcast i64* %rdi to i32*
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%9 = load i64, i64* %8, align 8
%10 = mul i64 %indvars.iv.reload, 8
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 %13, i64* %storemerge12.reg2mem
store i64* %12, i64** %.pre-phi6.reg2mem
br i1 %15, label LBL_4, label LBL_6
LBL_4:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%16 = inttoptr i64 %storemerge12.reload to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %storemerge12.reload)
%19 = icmp eq i64 %17, 0
%20 = icmp eq i1 %19, false
store i64 %17, i64* %storemerge12.reg2mem
br i1 %20, label LBL_4, label LBL_5
LBL_5:
%.pre = load i64, i64* %8, align 8
%.pre4 = add i64 %.pre, %10
%.pre5 = inttoptr i64 %.pre4 to i64*
store i64* %.pre5, i64** %.pre-phi6.reg2mem
br label LBL_6
LBL_6:
%.pre-phi6.reload = load i64*, i64** %.pre-phi6.reg2mem
store i64 0, i64* %.pre-phi6.reload, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%21 = load i32, i32* %6, align 8
%22 = zext i32 %21 to i64
%23 = icmp ult i64 %indvars.iv.next, %22
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %23, label LBL_3, label LBL_7
LBL_7:
%24 = add i64 %3, 4
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
store i64 %3, 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 %storemerge12.reload, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64** %.pre-phi6.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ndp_msg_check_valid_5536 | ndp_msg_check_valid | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp ult i64 %1, %6
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_3
LBL_1:
%9 = call i64 @FUNC(i64 %3)
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %3)
store i64 %0, 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 %3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @ndp_msg_type_info, { 2, 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | SFScript_Parse_5966 | SFScript_Parse | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.4.ph.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i32
%storemerge210.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg4 to i64
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_17
LBL_1:
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 64)
store i64 %5, i64* %sv_1, align 8
%7 = call i64 @FUNC(i64 500)
%8 = inttoptr i64 %7 to i8*
store i8 0, i8* %8, align 1
%9 = call i64 @FUNC()
%10 = bitcast i64* %rdi to i32*
%11 = load i32, i32* %10, align 8
%12 = call i64 @FUNC(i64 %4, i64 1)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_5, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %4, i64 1)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i32 0, i32* %sv_0.2.reg2mem
br i1 %17, label LBL_3, label LBL_8
LBL_3:
%18 = call i64 @FUNC(i64* nonnull %sv_1)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i32 %19, i32* %sv_0.4.ph.reg2mem
br i1 %21, label LBL_12, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %4, i64 1)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
store i32 %19, i32* %sv_0.2.reg2mem
br i1 %24, label LBL_3, label LBL_8
LBL_5:
%25 = call i64 @FUNC(i64 %4, i64 4)
%26 = and i64 %25, 4294967295
%27 = call i64 @FUNC(i64 %4, i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
store i32 0, i32* %storemerge210.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br i1 %29, label LBL_8, label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64* nonnull %sv_1)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
store i32 %31, i32* %sv_0.4.ph.reg2mem
br i1 %33, label LBL_12, label LBL_7
LBL_7:
%storemerge210.reload = load i32, i32* %storemerge210.reg2mem
%34 = add nuw i32 %storemerge210.reload, 1
%35 = icmp ult i32 %34, %28
store i32 %34, i32* %storemerge210.reg2mem
store i32 %31, i32* %sv_0.2.reg2mem
br i1 %35, label LBL_6, label LBL_8
LBL_8:
%36 = icmp eq i32 %11, 0
%. = select i1 %36, i8* null, i8* bitcast (i8** @gv_0 to i8*)
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%37 = call i64 @FUNC(i64 %4, i64 1)
%38 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%39 = call i64 @FUNC(i64* nonnull %sv_1, i8* %.)
%40 = add i64 %5, 4
%41 = inttoptr i64 %40 to i32*
br label LBL_10
LBL_9:
%42 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%43 = call i64 @FUNC(i64* nonnull %sv_1)
%44 = call i64 @FUNC(i64* nonnull %sv_1, i64 0)
%45 = call i64 @FUNC(i64* nonnull %sv_1)
%46 = call i64 @FUNC(i64* nonnull %sv_1, i64 1)
%47 = call i64 @FUNC(i64* nonnull %sv_1)
%48 = load i32, i32* %41, align 4
%49 = icmp eq i32 %48, 0
store i32 %48, i32* %sv_0.4.ph.reg2mem
br i1 %49, label LBL_10, label LBL_12
LBL_10:
%50 = call i64 @FUNC(i64 %4, i64 1)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_9, label LBL_11
LBL_11:
%54 = call i64 @FUNC(i64* nonnull %sv_1)
%55 = call i64 @FUNC(i64 1)
%56 = call i64 @FUNC(i64 %7)
store i64 %56, i64* %arg2, align 8
store i32 %sv_0.2.reload, i32* %sv_0.4.ph.reg2mem
br label LBL_12
LBL_12:
%sv_0.4.ph.reload = load i32, i32* %sv_0.4.ph.reg2mem
%57 = call i64 @FUNC(i64 %9)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_13, label LBL_14
LBL_13:
%61 = call i64 @FUNC(i64 %9, i64 0)
%62 = call i64 @FUNC(i64 %61)
%63 = call i64 @FUNC(i64 %9, i64 0)
%64 = call i64 @FUNC(i64 %9)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_13, label LBL_14
LBL_14:
%68 = call i64 @FUNC(i64 %9)
%69 = icmp eq i64 %7, 0
br i1 %69, label LBL_16, label LBL_15
LBL_15:
%70 = call i64 @FUNC(i64 %7)
br label LBL_16
LBL_16:
%71 = zext i32 %sv_0.4.ph.reload to i64
store i64 %71, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %31, { 1, 0, 2 }
uselistorder i32 %28, { 1, 0 }
uselistorder i32 %19, { 1, 0, 2 }
uselistorder i64 %9, { 3, 4, 2, 1, 0 }
uselistorder i64 %7, { 2, 1, 0, 3 }
uselistorder i64 %4, { 2, 3, 5, 4, 1, 0, 6 }
uselistorder i64* %sv_1, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 11 }
uselistorder i32* %storemerge210.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i32* %sv_0.4.ph.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @gf_list_count, { 1, 0 }
uselistorder i64 (i64)* @gf_free, { 1, 2, 0 }
uselistorder i64 (i64*, i8*)* @SFS_AddString, { 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64*)* @ParseScriptField, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 6, 5, 4, 3, 2, 0, 1 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 3, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | jazz_led_init_3012 | jazz_led_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0, i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 1)
%2 = call i64 @FUNC(i64 %0, i64 %0)
%3 = call i64 @FUNC(i64 4198735, i64 4198742, i64 0, i64 4198749, i64 %0)
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
store i64 %3, i64* %5, align 8
ret i64 0
uselistorder i64 %0, { 5, 4, 3, 0, 1, 2 }
} | 0 |
BinRealVul | t_gen_mov_TN_preg_15667 | t_gen_mov_TN_preg | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp sgt i32 %0, -1
%3 = trunc i64 %1 to i32
%4 = icmp slt i32 %3, 16
%or.cond = icmp eq i1 %2, %4
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%5 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%6 = and i64 %1, 4294967295
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %6)
br label LBL_2
LBL_2:
%switch = icmp ugt i32 %3, 1
%8 = icmp eq i32 %3, 2
%9 = icmp eq i1 %8, false
%or.cond5 = icmp eq i1 %switch, %9
br i1 %or.cond5, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 0)
%11 = call i64 @FUNC(i64 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%12 = icmp eq i32 %3, 3
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64 32)
%15 = call i64 @FUNC(i64 %14)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%16 = ashr exact i64 %sext, 29
%17 = add i64 %16, ptrtoint (i64* @gv_2 to i64)
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
store i64 %20, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 1, 2, 0, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @tcg_gen_mov_tl, { 2, 1, 0 }
uselistorder i64 (i64)* @tcg_const_tl, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | init_vlc_rl_16198 | init_vlc_rl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem13 = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%.reg2mem11 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 56
%4 = bitcast i64* %rdi to i32*
%5 = add i64 %1, 1
%6 = and i64 %5, 4294967295
%7 = add i64 %2, 16
%8 = call i64 @FUNC(i64 %7, i64 9, i64 %6, i64 %3, i64 4, i64 2)
%9 = inttoptr i64 %7 to i32*
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %2, 24
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, 32
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %2, 40
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %2, 48
%19 = inttoptr i64 %18 to i32*
%.pre = load i32, i32* %9, align 4
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%20 = trunc i64 %indvars.iv.reload to i32
%21 = add i32 %20, -1
%22 = or i32 %21, 1
%23 = icmp eq i64 %indvars.iv.reload, 0
%24 = icmp eq i1 %23, false
%25 = mul i32 %20, 2
%spec.select = select i1 %24, i32 %25, i32 1
%spec.select2 = select i1 %24, i32 %22, i32 0
%26 = sext i32 %.reload to i64
%27 = mul nsw i64 %26, 12
%28 = load i64, i64* %11, align 8
%29 = mul i64 %indvars.iv.reload, 8
%30 = add i64 %28, %29
%31 = call i64 @FUNC(i64 %27)
%32 = inttoptr i64 %30 to i64*
store i64 %31, i64* %32, align 8
%33 = load i32, i32* %9, align 4
%34 = icmp eq i32 %33, 0
store i64 0, i64* %.reg2mem11
store i32 0, i32* %storemerge14.reg2mem
store i32 0, i32* %.reg2mem13
store i64 0, i64* %.lcssa.reg2mem
br i1 %34, label LBL_7, label LBL_2
LBL_2:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload12 = load i64, i64* %.reg2mem11
%35 = load i64, i64* %13, align 8
%36 = mul i64 %.reload12, 8
%37 = add i64 %35, %36
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %39, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i32 66, i32* %sv_1.0.reg2mem
store i32 255, i32* %sv_0.0.reg2mem
br i1 %46, label LBL_3, label LBL_6
LBL_3:
%47 = icmp slt i32 %44, 0
%48 = icmp eq i1 %47, false
store i32 0, i32* %sv_1.0.reg2mem
store i32 %41, i32* %sv_0.0.reg2mem
br i1 %48, label LBL_4, label LBL_6
LBL_4:
%49 = load i32, i32* %4, align 8
%50 = icmp eq i32 %41, %49
%51 = icmp eq i1 %50, false
store i32 66, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %51, label LBL_5, label LBL_6
LBL_5:
%52 = load i64, i64* %15, align 8
%53 = sext i32 %41 to i64
%54 = mul i64 %53, 4
%55 = add i64 %52, %54
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = load i64, i64* %17, align 8
%59 = add i64 %58, %54
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = mul i32 %61, %spec.select
%63 = add i32 %62, %spec.select2
%64 = load i32, i32* %19, align 4
%65 = zext i32 %64 to i64
%66 = icmp slt i64 %53, %65
%spec.select3.v = select i1 %66, i32 1, i32 193
%spec.select3 = add i32 %spec.select3.v, %57
store i32 %spec.select3, i32* %sv_1.0.reg2mem
store i32 %63, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%67 = load i64, i64* %11, align 8
%68 = add i64 %67, %29
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = mul nsw i64 %.reload12, 12
%72 = add i64 %70, %71
%73 = inttoptr i64 %72 to i32*
store i32 %44, i32* %73, align 4
%74 = load i64, i64* %11, align 8
%75 = add i64 %74, %29
%76 = inttoptr i64 %75 to i64*
%77 = load i64, i64* %76, align 8
%78 = add nsw i64 %71, 4
%79 = add i64 %78, %77
%80 = inttoptr i64 %79 to i32*
store i32 %sv_0.0.reload, i32* %80, align 4
%81 = load i64, i64* %11, align 8
%82 = add i64 %81, %29
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = add nsw i64 %71, 8
%86 = add i64 %85, %84
%87 = inttoptr i64 %86 to i32*
store i32 %sv_1.0.reload, i32* %87, align 4
%88 = add i32 %storemerge14.reload, 1
%89 = load i32, i32* %9, align 4
%90 = zext i32 %89 to i64
%91 = sext i32 %88 to i64
%92 = icmp slt i64 %91, %90
store i64 %91, i64* %.reg2mem11
store i32 %88, i32* %storemerge14.reg2mem
store i32 %89, i32* %.reg2mem13
store i64 %90, i64* %.lcssa.reg2mem
br i1 %92, label LBL_2, label LBL_7
LBL_7:
%.reload14 = load i32, i32* %.reg2mem13
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i32 %.reload14, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_8, label LBL_1
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %71, { 1, 2, 0 }
uselistorder i64 %54, { 1, 0 }
uselistorder i64 %53, { 1, 0 }
uselistorder i32 %41, { 2, 1, 0 }
uselistorder i64 %29, { 3, 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 3, 1, 2 }
uselistorder i32* %9, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem11, { 2, 0, 1 }
uselistorder i32* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 6, 7, 0, 3, 4, 5 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | scsi_req_parse_cdb_1910 | scsi_req_parse_cdb | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = bitcast i64* %arg2 to i32*
store i32 -1, i32* %1, align 4
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_9
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
store i32 %3, i32* %8, align 4
%9 = bitcast i64* %rdi to i32*
%10 = load i32, i32* %9, align 8
%11 = icmp eq i32 %10, 1
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = icmp eq i32 %10, 2
%13 = ptrtoint i32* %arg1 to i64
br i1 %12, label LBL_4, label LBL_5
LBL_3:
%14 = ptrtoint i32* %arg1 to i64
%15 = call i64 @FUNC(i64 %6, i64 %14, i64 %0)
store i64 %15, i64* %sv_0.0.in.reg2mem
br label LBL_6
LBL_4:
%16 = call i64 @FUNC(i64 %6, i64 %13, i64 %0)
store i64 %16, i64* %sv_0.0.in.reg2mem
br label LBL_6
LBL_5:
%17 = call i64 @FUNC(i64 %6, i64 %13, i64 %0)
store i64 %17, i64* %sv_0.0.in.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%18 = icmp eq i32 %sv_0.0, 0
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = and i64 %sv_0.0.in.reload, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%20 = load i32, i32* %8, align 4
%21 = add i64 %6, 8
%22 = inttoptr i64 %21 to i64*
%23 = call i64* @memcpy(i64* %22, i64* %arg3, i32 %20)
%24 = call i64 @FUNC(i64 %6)
%25 = call i64 @FUNC(i64 %6)
%26 = trunc i64 %25 to i32
store i32 %26, i32* %1, align 4
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 %sv_0.0.in.reload, { 1, 0 }
uselistorder i64 %6, { 3, 2, 4, 1, 0, 5, 6 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
} | 0 |
BinRealVul | may_open_19271 | may_open | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i32 -2, i32* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_25
LBL_1:
%4 = trunc i64 %1 to i32
%5 = and i32 %4, 61440
%6 = icmp eq i32 %5, 40960
%7 = icmp eq i1 %6, false
store i32 -40, i32* %rax.0.shrunk.reg2mem
br i1 %7, label LBL_2, label LBL_25
LBL_2:
%8 = icmp eq i32 %5, 16384
%9 = icmp eq i1 %8, false
%10 = urem i64 %arg3, 2
%11 = icmp eq i64 %10, 0
%or.cond = or i1 %11, %9
store i32 -21, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond, label LBL_3, label LBL_25
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%sext2 = mul i64 %arg3, 4294967296
%13 = ashr exact i64 %sext2, 32
%14 = icmp ne i32 %5, 4096
%15 = icmp eq i32 %5, 49152
%16 = icmp eq i1 %15, false
%or.cond7 = icmp eq i1 %14, %16
br i1 %or.cond7, label LBL_5, label LBL_4
LBL_4:
%17 = and i64 %13, -513
store i64 %17, i64* %sv_1.0.reg2mem
br label LBL_9
LBL_5:
%18 = icmp ne i32 %5, 24576
%19 = icmp eq i32 %5, 8192
%20 = icmp eq i1 %19, false
%or.cond9 = icmp eq i1 %18, %20
br i1 %or.cond9, label LBL_8, label LBL_6
LBL_6:
%21 = add i64 %12, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
store i32 -13, i32* %rax.0.shrunk.reg2mem
br i1 %27, label LBL_7, label LBL_25
LBL_7:
%28 = and i64 %13, -513
store i64 %28, i64* %sv_1.0.reg2mem
br label LBL_9
LBL_8:
%29 = call i64 @FUNC(i64 %12)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%or.cond11 = or i1 %11, %31
store i64 %13, i64* %sv_1.0.reg2mem
store i32 -30, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond11, label LBL_9, label LBL_25
LBL_9:
%32 = and i64 %arg2, 4294967295
%33 = call i64 @FUNC(i64 %12, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i32 %34, i32* %rax.0.shrunk.reg2mem
br i1 %35, label LBL_10, label LBL_25
LBL_10:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%36 = call i64 @FUNC(i64 %12)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_14, label LBL_11
LBL_11:
%39 = urem i64 %sv_1.0.reload, 2
%40 = icmp eq i64 %39, 0
br i1 %40, label LBL_13, label LBL_12
LBL_12:
%41 = and i64 %sv_1.0.reload, 1024
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %43, label LBL_13, label LBL_25
LBL_13:
%44 = and i64 %sv_1.0.reload, 512
%45 = icmp eq i64 %44, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %45, label LBL_14, label LBL_25
LBL_14:
%46 = and i64 %sv_1.0.reload, 2048
%47 = icmp eq i64 %46, 0
br i1 %47, label LBL_16, label LBL_15
LBL_15:
%48 = call i64 @FUNC(i64 %12)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %51, label LBL_16, label LBL_25
LBL_16:
%52 = and i64 %sv_1.0.reload, 4294967295
%53 = call i64 @FUNC(i64 %12, i64 %52)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
store i32 %54, i32* %rax.0.shrunk.reg2mem
br i1 %55, label LBL_17, label LBL_25
LBL_17:
%56 = and i64 %sv_1.0.reload, 512
%57 = icmp eq i64 %56, 0
br i1 %57, label LBL_22, label LBL_18
LBL_18:
%58 = call i64 @FUNC(i64 %12)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
store i32 %59, i32* %rax.0.shrunk.reg2mem
br i1 %60, label LBL_19, label LBL_25
LBL_19:
%61 = call i64 @FUNC(i64 %12)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
store i32 %62, i32* %sv_0.0.reg2mem
br i1 %64, label LBL_21, label LBL_20
LBL_20:
%65 = call i64 @FUNC(i64 %12)
%66 = call i64 @FUNC(i64 %12, i64 0, i64 7, i64 0)
%67 = trunc i64 %66 to i32
store i32 %67, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%68 = call i64 @FUNC(i64 %12)
%69 = icmp eq i32 %sv_0.0.reload, 0
store i32 %sv_0.0.reload, i32* %rax.0.shrunk.reg2mem
br i1 %69, label LBL_24, label LBL_25
LBL_22:
%70 = urem i64 %sv_1.0.reload, 2
%71 = icmp eq i64 %70, 0
br i1 %71, label LBL_24, label LBL_23
LBL_23:
%72 = call i64 @FUNC(i64 %12)
br label LBL_24
LBL_24:
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_25
LBL_25:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %sv_1.0.reload, { 6, 2, 1, 0, 4, 3, 5 }
uselistorder i64 %13, { 0, 2, 1 }
uselistorder i64 %12, { 8, 5, 3, 4, 6, 7, 9, 2, 10, 11, 0, 1 }
uselistorder i32 %5, { 3, 1, 2, 0, 4, 5 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64 (i64)* @DQUOT_INIT, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 0, 1, 5, 6, 7 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_25, { 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
} | 1 |
BinRealVul | tls1_check_ec_tmp_key_8455 | tls1_check_ec_tmp_key | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i1
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = add i64 %arg2, -49195
%5 = icmp ult i64 %4, 2
%6 = icmp eq i1 %5, false
store i1 false, i1* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_4, label LBL_2
LBL_2:
store i8 0, i8* %sv_0, align 1
%7 = call i64 @FUNC(i64 %0, i8* nonnull %sv_0, i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i1 %10, i1* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_3:
%11 = call i64 @FUNC(i64 %0, i64 0)
%12 = trunc i64 %11 to i32
%13 = icmp ne i32 %12, 0
store i1 %13, i1* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%rax.0.shrunk.reload = load i1, i1* %rax.0.shrunk.reg2mem
%rax.0 = zext i1 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i1 false, { 2, 0, 1 }
} | 0 |
BinRealVul | cli_hm_scan_5616 | cli_hm_scan | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i64
%sv_1.0.ph9.reg2mem = alloca i64
%sv_0.0.ph10.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_14, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_14, label LBL_2
LBL_2:
%4 = icmp eq i32 %2, -1
%5 = icmp eq i64* %arg4, null
%or.cond = or i1 %5, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_14, label LBL_3
LBL_3:
%6 = ptrtoint i64* %arg4 to i64
%7 = mul i64 %arg5, 8
%8 = and i64 %7, 34359738360
%9 = add i64 %8, %6
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_14
LBL_4:
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i64 %9, i64 %14)
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_14
LBL_5:
%18 = ptrtoint i64* %arg1 to i64
%19 = inttoptr i64 %15 to i64*
%20 = load i64, i64* %19, align 8
%21 = mul i64 %arg5, 4
%22 = and i64 %21, 17179869180
%23 = add i64 %22, ptrtoint (i32** @gv_0 to i64)
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = inttoptr i64 %20 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %27, -1
%29 = zext i32 %25 to i64
%30 = add i64 %20, 16
store i64 %28, i64* %sv_0.0.ph10.reg2mem
store i64 0, i64* %sv_1.0.ph9.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.ph9.reload = load i64, i64* %sv_1.0.ph9.reg2mem
%sv_0.0.ph10.reload = load i64, i64* %sv_0.0.ph10.reg2mem
store i64 %sv_0.0.ph10.reload, i64* %sv_0.08.reg2mem
br label LBL_7
LBL_7:
%sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem
%31 = add i64 %sv_0.08.reload, %sv_1.0.ph9.reload
%32 = udiv i64 %31, 2
%33 = mul i64 %32, %29
%34 = add i64 %30, %33
%35 = call i64 @FUNC(i64 %18, i64 %34, i32 %25)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_10, label LBL_8
LBL_8:
%39 = icmp ult i64 %31, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_14, label LBL_9
LBL_9:
%40 = add nsw i64 %32, -1
%41 = icmp ugt i64 %sv_1.0.ph9.reload, %40
store i64 %40, i64* %sv_0.08.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %41, label LBL_14, label LBL_7
LBL_10:
%42 = icmp slt i32 %36, 1
br i1 %42, label LBL_12, label LBL_11
LBL_11:
%43 = add nuw i64 %32, 1
%44 = icmp ult i64 %32, %sv_0.08.reload
store i64 %sv_0.08.reload, i64* %sv_0.0.ph10.reg2mem
store i64 %43, i64* %sv_1.0.ph9.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_6, label LBL_14
LBL_12:
%45 = icmp eq i64* %arg3, null
store i64 1, i64* %rax.0.reg2mem
br i1 %45, label LBL_14, label LBL_13
LBL_13:
%46 = add i64 %20, 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = mul i64 %32, 8
%50 = add i64 %48, %49
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
store i64 %52, i64* %arg3, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %32, { 0, 4, 3, 1, 2 }
uselistorder i64 %sv_0.08.reload, { 2, 1, 0 }
uselistorder i64 %20, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.ph10.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.ph9.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 3, 2, 6, 10, 9, 8, 7 }
uselistorder i64 1, { 1, 0, 3, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i64* %arg4, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_14, { 4, 3, 0, 2, 1, 5, 9, 8, 7, 6 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | name_len_4227 | name_len | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = icmp ult i64 %2, %arg3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = urem i64 %1, 256
%5 = icmp uge i64 %4, %arg3
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_8
LBL_2:
%7 = trunc i64 %1 to i8
%8 = icmp ugt i8 %7, -65
%9 = icmp eq i1 %8, false
store i32* %arg2, i32** %sv_0.0.reg2mem
store i64 2, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_8
LBL_3:
%10 = icmp ult i64 %26, %arg3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_8
LBL_4:
%11 = zext i8 %23 to i64
%12 = icmp uge i64 %11, %arg3
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_8
LBL_5:
%14 = add i64 %26, 1
%15 = add i64 %14, %11
%16 = inttoptr i64 %15 to i32*
%17 = inttoptr i64 %15 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i64
%20 = icmp uge i64 %19, %arg3
%21 = icmp eq i1 %20, false
store i32* %16, i32** %sv_0.0.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_8
LBL_6:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%22 = bitcast i32* %sv_0.0.reload to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp eq i8 %23, 0
%25 = icmp eq i1 %24, false
%26 = ptrtoint i32* %sv_0.0.reload to i64
br i1 %25, label LBL_3, label LBL_7
LBL_7:
%27 = sub i64 1, %2
%28 = add i64 %27, %26
%29 = and i64 %28, 4294967295
store i64 %29, 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 %26, { 0, 2, 1 }
uselistorder i8 %23, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i32** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 3, 4, 5, 6 }
uselistorder i1 false, { 2, 0, 1, 3, 4 }
uselistorder label LBL_8, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | tar_directory_for_file_11282 | tar_directory_for_file | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.14.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i64
%.reg2mem16 = alloca i8
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i64
%sv_1.011.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = icmp ne i32 %arg3, 0
%1 = inttoptr i64 %arg2 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i8 %2, i8* %.reg2mem
store i64 %arg2, i64* %sv_1.011.reg2mem
store i64 %arg1, i64* %sv_0.09.reg2mem
store i64 %arg1, i64* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%sv_1.011.reload = load i64, i64* %sv_1.011.reg2mem
%.reload = load i8, i8* %.reg2mem
store i8 %.reload, i8* %.reg2mem16
store i64 %sv_1.011.reload, i64* %sv_1.15.reg2mem
br label LBL_4
LBL_2:
%5 = icmp eq i64 %8, %sv_1.011.reload
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %0, %6
store i64 %sv_0.09.reload, i64* %sv_0.0.lcssa.reg2mem
store i64 %8, i64* %sv_1.14.reg2mem
br i1 %or.cond, label LBL_6, label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
LBL_4:
%sv_1.15.reload = load i64, i64* %sv_1.15.reg2mem
%.reload17 = load i8, i8* %.reg2mem16
%7 = icmp eq i8 %.reload17, 47
store i64 %sv_1.15.reload, i64* %sv_1.14.reg2mem
br i1 %7, label LBL_6, label LBL_5
LBL_5:
%8 = add i64 %sv_1.15.reload, 1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
%12 = icmp eq i1 %11, false
store i8 %10, i8* %.reg2mem16
store i64 %8, i64* %sv_1.15.reg2mem
br i1 %12, label LBL_4, label LBL_2
LBL_6:
%sv_1.14.reload = load i64, i64* %sv_1.14.reg2mem
%13 = sub i64 %sv_1.14.reload, %sv_1.011.reload
%14 = call i64 @FUNC(i64 %sv_1.011.reload, i64 %13)
store i64 %sv_1.14.reload, i64* %sv_1.2.reg2mem
br label LBL_7
LBL_7:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%15 = inttoptr i64 %sv_1.2.reload to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i8 %16, 47
%18 = add i64 %sv_1.2.reload, 1
store i64 %18, i64* %sv_1.2.reg2mem
br i1 %17, label LBL_7, label LBL_8
LBL_8:
%19 = inttoptr i64 %14 to i8*
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
store i64 %sv_0.09.reload, i64* %sv_0.1.reg2mem
br i1 %21, label LBL_12, label LBL_9
LBL_9:
%22 = call i64 @FUNC(i64 %sv_0.09.reload, i64 %14)
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_11, label LBL_10
LBL_10:
%24 = call i64 @FUNC(i64 %22)
store i64 %22, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_11:
%25 = call i64 @FUNC(i64 %sv_0.09.reload, i64 %14)
store i64 %25, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%26 = call i64 @FUNC(i64 %14)
%27 = load i8, i8* %15, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
store i8 %27, i8* %.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.011.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.09.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %29, label LBL_1, label LBL_3
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %sv_1.2.reload, { 2, 0, 1 }
uselistorder i64 %14, { 1, 0, 2, 3 }
uselistorder i64 %8, { 1, 3, 2, 0 }
uselistorder i64 %sv_1.15.reload, { 1, 0 }
uselistorder i64 %sv_1.011.reload, { 2, 3, 1, 0 }
uselistorder i64 %sv_0.09.reload, { 3, 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 2, 0, 1, 3 }
uselistorder i8* %.reg2mem16, { 2, 0, 1 }
uselistorder i64* %sv_1.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.2.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i8 47, { 1, 0 }
uselistorder i1 false, { 1, 3, 2, 0 }
uselistorder i8 0, { 1, 2, 0, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_track_523 | mxf_read_track | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 19201
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 19201
br i1 %4, label LBL_9, label LBL_2
LBL_2:
%5 = icmp eq i32 %2, 18436
br i1 %5, label LBL_6, label LBL_3
LBL_3:
%6 = icmp sgt i32 %2, 18436
br i1 %6, label LBL_9, label LBL_4
LBL_4:
switch i32 %2, label LBL_9 [
i32 18433, label LBL_5
i32 18435, label LBL_8
]
LBL_5:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
br label LBL_9
LBL_6:
%10 = add i64 %1, 4
%11 = call i64 @FUNC(i64 %0, i64 %10, i64 4)
br label LBL_9
LBL_7:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = add i64 %1, 20
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = call i64 @FUNC(i64 %0)
%17 = trunc i64 %16 to i32
%18 = add i64 %1, 24
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
br label LBL_9
LBL_8:
%20 = add i64 %1, 28
%21 = call i64 @FUNC(i64 %0, i64 %20, i64 16)
br label LBL_9
LBL_9:
ret i64 0
uselistorder i32 %2, { 3, 2, 1, 0, 4 }
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64 %0, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i64, i64)* @avio_read, { 1, 0 }
uselistorder i64 (i64)* @avio_rb32, { 2, 1, 0 }
uselistorder i32 18436, { 1, 0 }
uselistorder i32 19201, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 3, 4, 0, 5, 6 }
} | 0 |
BinRealVul | alloc_top_6332 | alloc_top | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = sub i64 %0, %arg1
store i64 %1, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %arg2)
%3 = load i64, i64* @gv_0, align 8
%4 = load i64, i64* @gv_1, align 8
%5 = icmp ult i64 %3, %4
%6 = icmp eq i1 %5, false
store i64 %3, i64* %.lcssa.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg1)
%8 = call i64 @FUNC()
%9 = load i64, i64* @gv_0, align 8
%10 = sub i64 %9, %arg1
store i64 %10, i64* @gv_0, align 8
%11 = call i64 @FUNC(i64 %arg2)
%12 = load i64, i64* @gv_0, align 8
%13 = load i64, i64* @gv_1, align 8
%14 = icmp ult i64 %12, %13
%15 = icmp eq i1 %14, false
store i64 %12, i64* %.lcssa.reg2mem
br i1 %15, label LBL_2, label LBL_1
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i1 false, { 1, 0 }
uselistorder i64* @gv_1, { 1, 0, 2 }
uselistorder i64 (i64)* @align_top, { 1, 0 }
uselistorder i64 1048576, { 1, 0 }
uselistorder i64* @gv_0, { 3, 4, 5, 0, 1, 2, 6, 7, 8, 9, 10 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | register_core_rtas_16653 | register_core_rtas | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 4198662)
%1 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 4198669)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 4198676)
ret i64 %2
uselistorder i64 (i8*, i64)* @spapr_rtas_register, { 2, 1, 0 }
} | 1 |
BinRealVul | rpcrdma_max_reply_header_size_5941 | rpcrdma_max_reply_header_size | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = mul i64 %arg1, 256
%1 = or i64 %0, 36
%2 = add nsw i64 %1, 4
%3 = and i64 %2, 4294967080
ret i64 %3
} | 0 |
BinRealVul | aead_sock_destruct_12772 | aead_sock_destruct | 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 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %1 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = inttoptr i64 %4 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i64 @FUNC(i64 %0, i32 %16, i64 0, i64 0)
%18 = call i64 @FUNC()
%19 = add i64 %4, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %0, i64 %21, i32 %14)
%23 = add i64 %4, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = call i64 @FUNC(i64 %0, i64 %4, i32 %25)
%27 = call i64 @FUNC(i64 %0)
ret i64 %27
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64)* @alg_sk, { 1, 0 }
} | 1 |
BinRealVul | cpu_loop_19 | cpu_loop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%1 = ptrtoint i64* %sv_1 to i64
%2 = bitcast i64* %arg1 to i32*
%3 = add i64 %0, 32
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = add i64 %0, 48
%8 = inttoptr i64 %7 to i64*
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
%11 = add i64 %0, 88
%12 = inttoptr i64 %11 to i64*
%13 = add i64 %0, 80
%14 = inttoptr i64 %13 to i64*
%15 = add i64 %0, 72
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %0, 64
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %0, 56
%20 = inttoptr i64 %19 to i64*
%21 = add i64 %1, -8
%22 = inttoptr i64 %21 to i64*
%23 = add i64 %1, -16
%24 = inttoptr i64 %23 to i64*
%25 = add i64 %1, -24
%26 = inttoptr i64 %25 to i64*
%27 = add i64 %1, -32
%28 = inttoptr i64 %27 to i64*
%29 = add i64 %0, 16
%30 = inttoptr i64 %29 to i64*
br label LBL_1
LBL_1:
%31 = call i64 @FUNC(i64 %0)
%32 = trunc i64 %31 to i32
store i32 0, i32* %2, align 4
%33 = and i64 %31, 4294967295
store i64 %33, i64* @0, align 8
switch i32 %32, label LBL_24 [
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_4
i32 5, label LBL_4
i32 6, label LBL_5
i32 7, label LBL_6
i32 8, label LBL_7
i32 9, label LBL_8
i32 10, label LBL_25
i32 11, label LBL_9
i32 12, label LBL_21
i32 13, label LBL_23
i32 14, label LBL_23
i32 15, label LBL_25
]
LBL_2:
%34 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%35 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_1 to i64*), i32 1, i32 22, %_IO_FILE* %34)
call void @exit(i32 1)
unreachable
LBL_3:
%36 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%37 = call i32 @fwrite(i64* bitcast ([31 x i8]* @gv_2 to i64*), i32 1, i32 30, %_IO_FILE* %36)
call void @exit(i32 1)
unreachable
LBL_4:
%38 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%39 = call i32 @fwrite(i64* bitcast ([26 x i8]* @gv_3 to i64*), i32 1, i32 25, %_IO_FILE* %38)
call void @exit(i32 1)
unreachable
LBL_5:
store i64 -1, i64* %6, align 8
store i32 11, i32* %sv_0, align 4
%40 = load i64, i64* %30, align 8
%41 = call i64 @FUNC(i64 %40)
%42 = load i32, i32* %sv_0, align 4
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %0, i64 %43, i32* nonnull %sv_0)
br label LBL_25
LBL_6:
store i64 -1, i64* %6, align 8
store i32 7, i32* %sv_0, align 4
%45 = call i64 @FUNC(i64 %0, i64 7, i32* nonnull %sv_0)
br label LBL_25
LBL_7:
store i64 -1, i64* %6, align 8
store i32 4, i32* %sv_0, align 4
%46 = call i64 @FUNC(i64 %0, i64 4, i32* nonnull %sv_0)
br label LBL_25
LBL_8:
store i64 -1, i64* %6, align 8
store i32 8, i32* %sv_0, align 4
%47 = call i64 @FUNC(i64 %0, i64 8, i32* nonnull %sv_0)
br label LBL_25
LBL_9:
store i64 -1, i64* %6, align 8
%48 = load i64, i64* %4, align 8
%49 = add i64 %48, -128
store i64 %49, i64* @1, align 8
switch i64 %48, label LBL_7 [
i64 128, label LBL_10
i64 129, label LBL_11
i64 131, label LBL_12
i64 134, label LBL_25
i64 158, label LBL_16
i64 159, label LBL_17
i64 170, label LBL_18
]
LBL_10:
store i32 5, i32* %sv_0, align 4
%50 = call i64 @FUNC(i64 %0, i64 5, i32* nonnull %sv_0)
br label LBL_25
LBL_11:
store i32 5, i32* %sv_0, align 4
%51 = call i64 @FUNC(i64 %0, i64 5, i32* nonnull %sv_0)
br label LBL_25
LBL_12:
%52 = load i64, i64* %10, align 8
%53 = trunc i64 %52 to i32
%54 = load i64, i64* %12, align 8
%55 = load i64, i64* %14, align 8
%56 = load i64, i64* %16, align 8
%57 = load i64, i64* %18, align 8
%58 = load i64, i64* %20, align 8
%59 = load i64, i64* %8, align 8
store i64 0, i64* %22, align 8
store i64 0, i64* %24, align 8
store i64 %54, i64* %26, align 8
store i64 %55, i64* %28, align 8
%60 = call i64 @FUNC(i64 %0, i32 %53, i64 %59, i64 %58, i64 %57, i64 %56)
%61 = add i32 %53, -15
%62 = icmp ult i32 %61, 2
br i1 %62, label LBL_25, label LBL_13
LBL_13:
%63 = load i64, i64* %10, align 8
%64 = icmp eq i64 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_15, label LBL_14
LBL_14:
store i64 %60, i64* %10, align 8
br label LBL_25
LBL_15:
%66 = sub i64 0, %60
%67 = icmp slt i64 %60, 0
%68 = select i1 %67, i64 %66, i64 %60
store i64 %68, i64* %10, align 8
%69 = lshr i64 %60, 63
store i64 %69, i64* %16, align 8
br label LBL_25
LBL_16:
call void @abort()
unreachable
LBL_17:
call void @abort()
unreachable
LBL_18:
store i32 8, i32* %sv_0, align 4
%70 = load i64, i64* %8, align 8
%71 = add i64 %70, -8
store i64 %71, i64* @2, align 8
%switch = icmp ult i64 %71, 7
store i64 8, i64* %.reg2mem
br i1 %switch, label LBL_20, label LBL_19
LBL_19:
store i32 5, i32* %sv_0, align 4
store i64 5, i64* %.reg2mem
br label LBL_20
LBL_20:
%.reload = load i64, i64* %.reg2mem
%72 = call i64 @FUNC(i64 %0, i64 %.reload, i32* nonnull %sv_0)
br label LBL_25
LBL_21:
%73 = call i64 @FUNC(i64 %0, i64 5)
%74 = trunc i64 %73 to i32
store i32 %74, i32* %sv_0, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label LBL_25, label LBL_22
LBL_22:
store i64 -1, i64* %6, align 8
%76 = and i64 %73, 4294967295
%77 = call i64 @FUNC(i64 %0, i64 %76, i32* nonnull %sv_0)
br label LBL_25
LBL_23:
%78 = add i64 %31, 4294967283
%79 = and i64 %78, 4294967295
%80 = load i64, i64* %4, align 8
%81 = call i64 @FUNC(i64 %0, i64 %80, i64 %79)
br label LBL_25
LBL_24:
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i32 %32)
%83 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%84 = ptrtoint %_IO_FILE* %83 to i64
%85 = call i64 @FUNC(i64 %0, i64 %84, i64 4198480, i64 0)
call void @exit(i32 1)
unreachable
LBL_25:
%86 = call i64 @FUNC(i64 %0)
br label LBL_1
uselistorder i64 %71, { 1, 0 }
uselistorder i64 %60, { 0, 4, 3, 2, 1 }
uselistorder i64* %10, { 1, 2, 0, 3 }
uselistorder i64* %8, { 1, 0 }
uselistorder i64* %6, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %4, { 1, 0 }
uselistorder i32* %sv_0, { 0, 8, 1, 9, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7, 16, 17 }
uselistorder i64 %0, { 19, 22, 21, 16, 18, 13, 10, 5, 4, 3, 15, 2, 0, 23, 1, 8, 9, 7, 6, 12, 11, 14, 17, 20 }
uselistorder void ()* @abort, { 1, 0 }
uselistorder i64 0, { 6, 4, 5, 3, 8, 9, 10, 11, 0, 1, 2, 7 }
uselistorder i64 5, { 3, 0, 2, 1 }
uselistorder i64 (i64, i64, i32*)* @queue_signal, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder void (i32)* @exit, { 0, 3, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 0, 2, 1 }
uselistorder %_IO_FILE** @gv_0, { 3, 2, 1, 0 }
uselistorder i32 11, { 1, 0 }
uselistorder i32 8, { 1, 2, 0 }
uselistorder i32 7, { 1, 0 }
uselistorder i32 5, { 1, 2, 3, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 -8, { 1, 0 }
uselistorder label LBL_25, { 11, 1, 0, 4, 5, 6, 2, 7, 8, 3, 12, 13, 14, 15, 10, 9 }
uselistorder label LBL_20, { 1, 0 }
} | 1 |
BinRealVul | credential_write_item_18962 | credential_write_item | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i8* %arg3, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to %_IO_FILE*
%2 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* %arg2, i8* nonnull %arg3)
%3 = sext i32 %2 to i64
store i64 %3, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder label LBL_2, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.