dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | bethsoftvid_decode_frame_7715 | bethsoftvid_decode_frame | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.18.reg2mem = alloca i32
%sv_1.29.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
%8 = and i64 %3, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_27
LBL_2:
%9 = ptrtoint i64* %arg4 to i64
%10 = add i64 %3, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %2 to i32
%14 = add i64 %12, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp slt i32 %13, 1
br i1 %17, label LBL_6, label LBL_3
LBL_3:
%18 = add i64 %9, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 1
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_4
LBL_4:
%25 = add i64 %20, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %20, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %12, 16
%32 = call i64 @FUNC(i64 %31, i64 %30, i32 %27)
%33 = call i64 @FUNC(i64 %12)
%34 = trunc i64 %33 to i32
%35 = icmp slt i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_6, label LBL_5
LBL_5:
%37 = and i64 %33, 4294967295
store i64 %37, i64* %rax.0.reg2mem
br label LBL_27
LBL_6:
%38 = add i64 %9, 24
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i64 %9, 16
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = add i64 %12, 16
%45 = call i64 @FUNC(i64 %44, i64 %43, i32 %40)
%46 = inttoptr i64 %12 to i64*
%47 = load i64, i64* %46, align 8
%48 = load i32, i32* %15, align 4
%49 = add i64 %3, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = call i64 @FUNC(i64 %44)
%sext = mul i64 %52, 72057594037927936
%53 = ashr exact i64 %sext, 56
%54 = trunc i64 %53 to i32
store i64 %47, i64* %sv_1.0.reg2mem
switch i32 %54, label LBL_12 [
i32 0, label LBL_7
i32 1, label LBL_10
]
LBL_7:
%55 = bitcast i64* %arg3 to i32*
store i32 0, i32* %55, align 4
%56 = call i64 @FUNC(i64 %12)
%57 = trunc i64 %56 to i32
%58 = icmp slt i32 %57, 0
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_9, label LBL_8
LBL_8:
%60 = and i64 %56, 4294967295
%61 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
store i64 %60, i64* %rax.0.reg2mem
br label LBL_27
LBL_9:
%62 = call i64 @FUNC(i64 %44)
store i64 %62, i64* %rax.0.reg2mem
br label LBL_27
LBL_10:
%63 = call i64 @FUNC(i64 %44)
%64 = load i32, i32* %50, align 4
%65 = zext i32 %64 to i64
%sext2 = mul i64 %63, 4294967296
%66 = ashr exact i64 %sext2, 32
%67 = icmp slt i64 %66, %65
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %67, label LBL_11, label LBL_27
LBL_11:
%68 = trunc i64 %63 to i32
%69 = load i32, i32* %15, align 4
%70 = mul i32 %69, %68
%71 = sext i32 %70 to i64
%72 = add i64 %47, %71
store i64 %72, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_12:
%73 = call i64 @FUNC(i64 %44)
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_13, label LBL_26
LBL_13:
%77 = trunc i64 %1 to i32
%78 = sub i32 %16, %77
%79 = mul i32 %51, %48
%80 = sext i32 %79 to i64
%81 = add i64 %47, %80
%82 = trunc i64 %52 to i8
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%83 = icmp eq i8 %82, 2
%84 = icmp eq i1 %83, false
store i32 %74, i32* %.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.29.reg2mem
store i32 %77, i32* %sv_2.18.reg2mem
br label LBL_14
LBL_14:
%sv_2.18.reload = load i32, i32* %sv_2.18.reg2mem
%sv_1.29.reload = load i64, i64* %sv_1.29.reg2mem
%.reload = load i32, i32* %.reg2mem
%85 = urem i32 %.reload, 128
%86 = icmp sgt i32 %.reload, 127
store i32 %sv_2.18.reload, i32* %sv_2.0.reg2mem
store i64 %sv_1.29.reload, i64* %sv_1.1.reg2mem
store i32 %85, i32* %sv_0.0.reg2mem
br label LBL_20
LBL_15:
br i1 %86, label LBL_17, label LBL_16
LBL_16:
%87 = call i64 @FUNC(i64 %44, i64 %sv_1.1.reload, i32 %sv_2.0.reload)
br label LBL_19
LBL_17:
br i1 %84, label LBL_19, label LBL_18
LBL_18:
%88 = call i64 @FUNC(i64 %44)
%89 = trunc i64 %88 to i32
%90 = inttoptr i64 %sv_1.1.reload to i64*
%91 = call i64* @memset(i64* %90, i32 %89, i32 %sv_2.0.reload)
br label LBL_19
LBL_19:
%92 = sub i32 %sv_0.0.reload, %sv_2.0.reload
%93 = add i32 %78, %sv_2.0.reload
%94 = sext i32 %93 to i64
%95 = add i64 %sv_1.1.reload, %94
%96 = icmp eq i64 %95, %81
store i32 %77, i32* %sv_2.0.reg2mem
store i64 %95, i64* %sv_1.1.reg2mem
store i32 %92, i32* %sv_0.0.reg2mem
br i1 %96, label LBL_26, label LBL_20
LBL_20:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%97 = icmp sgt i32 %sv_0.0.reload, %sv_2.0.reload
br i1 %97, label LBL_15, label LBL_21
LBL_21:
br i1 %86, label LBL_23, label LBL_22
LBL_22:
%98 = call i64 @FUNC(i64 %44, i64 %sv_1.1.reload, i32 %sv_0.0.reload)
br label LBL_25
LBL_23:
br i1 %84, label LBL_25, label LBL_24
LBL_24:
%99 = call i64 @FUNC(i64 %44)
%100 = trunc i64 %99 to i32
%101 = inttoptr i64 %sv_1.1.reload to i64*
%102 = call i64* @memset(i64* %101, i32 %100, i32 %sv_0.0.reload)
br label LBL_25
LBL_25:
%103 = sub i32 %sv_2.0.reload, %sv_0.0.reload
%104 = sext i32 %sv_0.0.reload to i64
%105 = add i64 %sv_1.1.reload, %104
%106 = call i64 @FUNC(i64 %44)
%107 = trunc i64 %106 to i32
%108 = icmp eq i32 %107, 0
%109 = icmp eq i1 %108, false
store i32 %107, i32* %.reg2mem
store i64 %105, i64* %sv_1.29.reg2mem
store i32 %103, i32* %sv_2.18.reg2mem
br i1 %109, label LBL_14, label LBL_26
LBL_26:
%110 = bitcast i64* %arg3 to i32*
store i32 1, i32* %110, align 4
%111 = inttoptr i64 %14 to i64*
%112 = load i64, i64* %111, align 8
%113 = load i64, i64* %46, align 8
%114 = inttoptr i64 %arg2 to i64*
store i64 %113, i64* %114, align 8
%115 = add i64 %arg2, 8
%116 = inttoptr i64 %115 to i64*
store i64 %112, i64* %116, align 8
%117 = load i32, i32* %39, align 4
%118 = zext i32 %117 to i64
store i64 %118, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_2.0.reload, { 5, 2, 0, 1, 4, 3 }
uselistorder i64 %sv_1.1.reload, { 5, 3, 4, 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 4, 5, 3, 2, 0, 1 }
uselistorder i64 %63, { 1, 0 }
uselistorder i64 %52, { 1, 0 }
uselistorder i64 %47, { 2, 1, 0 }
uselistorder i64 %44, { 7, 4, 3, 6, 5, 0, 1, 2, 8, 9 }
uselistorder i64 %12, { 2, 4, 3, 1, 0, 5 }
uselistorder i64 %9, { 2, 1, 0 }
uselistorder i64 %3, { 2, 3, 5, 0, 1, 4 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.29.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.18.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 6, 5, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 2, 3, 0, 1 }
uselistorder i64 (i64)* @set_palette, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @bytestream2_init, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i32 0, { 2, 0, 3, 4, 1, 5, 6 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_27, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
} | 1 |
BinRealVul | flush_tlb_current_task_6195 | flush_tlb_current_task | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC()
%4 = call i64 @FUNC(i64 0)
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64 1, i64 2)
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i64 %2)
%9 = and i64 %7, 4294967295
%10 = and i64 %8, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %9)
%12 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%13 = zext i32 %12 to i64
%14 = icmp slt i64 %11, %13
br i1 %14, label LBL_1, label LBL_2
LBL_1:
%15 = call i64 @FUNC(i64 %2)
%16 = and i64 %15, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %2, i64 0, i64 2)
br label LBL_2
LBL_2:
%18 = call i64 @FUNC()
ret i64 %18
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 (i64)* @mm_cpumask, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ehci_process_itd_7744 | ehci_process_itd | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%.reg2mem = alloca i32
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%r8.26.reg2mem = alloca i64
%r9.27.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = ptrtoint i64* %sv_0 to i64
%5 = bitcast i64* %arg1 to i32*
store i32 1, i32* %5, align 4
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = and i64 %1, 4294967295
%10 = call i64 @FUNC(i64 %9, i64 2130706432)
%11 = call i64 @FUNC(i64 %9, i64 16252928)
%12 = trunc i64 %11 to i32
%13 = load i32, i32* %7, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 2047)
%16 = trunc i64 %15 to i32
%17 = add i64 %2, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20, i64 15)
%22 = trunc i64 %21 to i32
%23 = add i64 %2, 32
%24 = mul i32 %22, %16
%25 = add i64 %3, 16
%26 = inttoptr i64 %25 to i64*
%27 = add i64 %3, 8
%28 = inttoptr i64 %27 to i64*
%29 = add i64 %3, 32
%30 = icmp sgt i32 %8, -1
%31 = icmp eq i1 %30, false
%32 = and i64 %10, 4294967295
%33 = and i64 %11, 4294967295
%34 = zext i1 %31 to i64
%35 = add i64 %3, 24
%36 = add i64 %4, -8
%37 = inttoptr i64 %36 to i64*
%38 = zext i32 %arg3 to i64
%39 = inttoptr i64 %35 to i32*
%40 = add i64 %3, 28
%41 = inttoptr i64 %40 to i32*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%r8.26.reload = load i64, i64* %r8.26.reg2mem
%r9.27.reload = load i64, i64* %r9.27.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%42 = mul i64 %indvars.iv.reload, 4
%43 = add i64 %23, %42
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
store i64 %r8.26.reload, i64* %r8.1.reg2mem
store i64 %r9.27.reload, i64* %r9.1.reg2mem
br i1 %47, label LBL_26, label LBL_2
LBL_2:
%48 = zext i32 %45 to i64
%49 = call i64 @FUNC(i64 %48, i64 6)
%50 = trunc i64 %49 to i32
%51 = load i32, i32* %44, align 4
%52 = zext i32 %51 to i64
%53 = call i64 @FUNC(i64 %52, i64 65535)
%54 = trunc i64 %53 to i32
%55 = icmp ult i32 %24, %54
%spec.select = select i1 %55, i32 %24, i32 %54
%56 = icmp ult i32 %spec.select, 4097
%57 = icmp ult i32 %50, 7
%or.cond = icmp eq i1 %57, %56
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_27
LBL_3:
%58 = urem i32 %51, 4096
%59 = mul i64 %49, 4
%60 = and i64 %59, 17179869180
%61 = add i64 %60, %2
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = urem i32 %63, 2048
%65 = load i64, i64* %26, align 8
%66 = load i64, i64* %28, align 8
%67 = call i64 @FUNC(i64 %29, i64 %66, i64 2, i64 %65)
%68 = add i32 %spec.select, %58
%69 = icmp ult i32 %68, 4097
br i1 %69, label LBL_6, label LBL_4
LBL_4:
%70 = icmp eq i32 %50, 6
%71 = icmp eq i1 %70, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %71, label LBL_5, label LBL_27
LBL_5:
%72 = add i64 %59, 4
%73 = and i64 %72, 17179869180
%74 = add i64 %73, %2
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = urem i32 %76, 2048
%78 = add i32 %68, -4096
%79 = sub i32 %spec.select, %78
%80 = add nuw nsw i32 %64, %58
%81 = zext i32 %80 to i64
%82 = zext i32 %79 to i64
%83 = call i64 @FUNC(i64 %29, i64 %81, i64 %82)
%84 = zext i32 %78 to i64
%85 = zext i32 %77 to i64
%86 = call i64 @FUNC(i64 %29, i64 %85, i64 %84)
br label LBL_7
LBL_6:
%87 = add nuw nsw i32 %64, %58
%88 = zext i32 %87 to i64
%89 = zext i32 %spec.select to i64
%90 = call i64 @FUNC(i64 %29, i64 %88, i64 %89)
br label LBL_7
LBL_7:
%91 = call i64 @FUNC(i64 %3, i64 %32)
%92 = call i64 @FUNC(i64 %91, i64 %34, i32 %12)
%93 = icmp eq i64 %92, 0
br i1 %93, label LBL_10, label LBL_8
LBL_8:
%94 = inttoptr i64 %92 to i32*
%95 = load i32, i32* %94, align 4
%96 = icmp eq i32 %95, 1
%97 = icmp eq i1 %96, false
br i1 %97, label LBL_10, label LBL_9
LBL_9:
%98 = load i32, i32* %44, align 4
%99 = and i32 %98, 1073741824
%100 = icmp eq i32 %99, 0
%101 = icmp eq i1 %100, false
%102 = zext i1 %101 to i64
store i64 %102, i64* %37, align 8
%103 = call i64 @FUNC(i64 %35, i64 %34, i64 %92, i64 0, i64 %38, i64 0)
%104 = call i64 @FUNC(i64 %35, i64 %29)
%105 = call i64 @FUNC(i64 %91, i64 %35)
%106 = call i64 @FUNC(i64 %35, i64 %29)
store i64 %38, i64* %r8.0.reg2mem
store i64 0, i64* %r9.0.reg2mem
br label LBL_11
LBL_10:
%107 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %34, i64 %33, i64 %34, i64 %r8.26.reload, i64 %r9.27.reload)
store i32 4, i32* %39, align 4
store i32 0, i32* %41, align 4
store i64 %r8.26.reload, i64* %r8.0.reg2mem
store i64 %r9.27.reload, i64* %r9.0.reg2mem
br label LBL_11
LBL_11:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%108 = call i64 @FUNC(i64 %29)
%109 = load i32, i32* %39, align 4
%110 = icmp eq i32 %109, 4
br i1 %110, label LBL_19, label LBL_12
LBL_12:
%111 = icmp sgt i32 %109, 4
br i1 %111, label LBL_15, label LBL_13
LBL_13:
switch i32 %109, label LBL_14 [
i32 3, label LBL_18
i32 0, label LBL_20
]
LBL_14:
%112 = icmp sgt i32 %109, -1
%113 = add i32 %109, -1
%114 = icmp ult i32 %113, 2
%or.cond5 = icmp eq i1 %112, %114
br i1 %or.cond5, label LBL_16, label LBL_15
LBL_15:
%115 = zext i32 %109 to i64
%116 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%117 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %116, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i64 %115)
br label LBL_16
LBL_16:
br i1 %30, label LBL_20, label LBL_17
LBL_17:
%118 = load i32, i32* %44, align 4
%119 = or i32 %118, 536870912
store i32 %119, i32* %44, align 4
%120 = call i64 @FUNC(i64 %3, i64 1)
br label LBL_20
LBL_18:
%121 = load i32, i32* %44, align 4
%122 = or i32 %121, 268435456
store i32 %122, i32* %44, align 4
%123 = call i64 @FUNC(i64 %3, i64 1)
br label LBL_20
LBL_19:
store i32 0, i32* %41, align 4
br label LBL_20
LBL_20:
%124 = load i32, i32* %41, align 4
br i1 %31, label LBL_22, label LBL_21
LBL_21:
%125 = sub i32 %spec.select, %124
%126 = zext i32 %125 to i64
%127 = call i64 @FUNC(i64 %43, i64 %126, i64 65535)
br label LBL_23
LBL_22:
%128 = zext i32 %124 to i64
%129 = call i64 @FUNC(i64 %43, i64 %128, i64 65535)
br label LBL_23
LBL_23:
%130 = load i32, i32* %44, align 4
%131 = and i32 %130, 1073741824
%132 = icmp eq i32 %131, 0
store i32 %130, i32* %.reg2mem
br i1 %132, label LBL_25, label LBL_24
LBL_24:
%133 = call i64 @FUNC(i64 %3, i64 2)
%.pre = load i32, i32* %44, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_25
LBL_25:
%.reload = load i32, i32* %.reg2mem
%134 = urem i32 %.reload, -2147483648
store i32 %134, i32* %44, align 4
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_26
LBL_26:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%135 = icmp ult i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %r9.1.reload, i64* %r9.27.reg2mem
store i64 %r8.1.reload, i64* %r8.26.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %135, label LBL_1, label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %124, { 1, 0 }
uselistorder i32 %109, { 0, 3, 1, 2, 4, 5 }
uselistorder i32 %78, { 1, 0 }
uselistorder i32 %64, { 1, 0 }
uselistorder i64 %59, { 1, 0 }
uselistorder i32 %58, { 2, 1, 0 }
uselistorder i32 %spec.select, { 4, 3, 2, 0, 1 }
uselistorder i32* %44, { 6, 0, 7, 3, 2, 5, 4, 1, 8, 9 }
uselistorder i64 %43, { 1, 0, 2 }
uselistorder i64 %r9.27.reload, { 1, 2, 0 }
uselistorder i64 %r8.26.reload, { 1, 2, 0 }
uselistorder i64 %35, { 1, 2, 3, 4, 0 }
uselistorder i64 %34, { 2, 0, 1, 3 }
uselistorder i64 %29, { 4, 2, 3, 5, 0, 1, 6 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %3, { 3, 1, 2, 5, 4, 0, 8, 7, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %r9.27.reg2mem, { 1, 0 }
uselistorder i64* %r8.26.reg2mem, { 1, 0 }
uselistorder i64* %r8.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @set_field, { 1, 0 }
uselistorder i64 (i64, i64)* @ehci_raise_irq, { 2, 1, 0 }
uselistorder i32 4, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @qemu_sglist_add, { 2, 1, 0 }
uselistorder i64 0, { 0, 8, 9, 6, 7, 1, 11, 10, 13, 2, 3, 4, 5, 12 }
uselistorder i1 false, { 0, 1, 3, 4, 2 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64, i64)* @get_field, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 4, { 2, 0, 1, 3 }
uselistorder label LBL_20, { 3, 4, 2, 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | avi_load_index_649 | avi_load_index | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3, i64 %3, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_5, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = call i64 @FUNC(i64 %3)
%15 = icmp eq i32 %13, 829973609
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = and i64 %14, 4294967295
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_4, label LBL_5
LBL_4:
%21 = add i64 %14, 1
%22 = and i64 %21, 4294967294
%23 = call i64 @FUNC(i64 %3, i64 %22, i64 1)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_5, label LBL_1
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64 %3, i64 %4, i64 0)
ret i64 %sv_0.0.reload
uselistorder i64 %3, { 4, 0, 2, 1, 3, 6, 5, 7 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @get_le32, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @url_fseek, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | qemu_tcg_init_cpu_signals_944 | qemu_tcg_init_cpu_signals | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 152)
store i64 4198758, i64* %sv_1, align 8
%1 = bitcast i64* %sv_1 to %sigaction*
%2 = call i32 @sigaction(i32 34, %sigaction* nonnull %1, %sigaction* null)
%3 = bitcast i64* %sv_0 to %_TYPEDEF_sigset_t*
%4 = call i32 @sigemptyset(%_TYPEDEF_sigset_t* nonnull %3)
%5 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %3, i32 34)
%6 = bitcast i64* %sv_0 to %_TYPEDEF___sigset_t*
%7 = call i32 @pthread_sigmask(i32 1, %_TYPEDEF___sigset_t* nonnull %6, %_TYPEDEF___sigset_t* null)
%8 = sext i32 %7 to i64
ret i64 %8
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i32 1, { 0, 2, 1 }
} | 0 |
BinRealVul | balloon_parse_14258 | balloon_parse | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i32 6)
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_6, label LBL_2
LBL_2:
%7 = add i64 %arg1, 6
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 44
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %arg1, 7
%13 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%14 = call i64 @FUNC(i64 %13, i64 %12, i64 0)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 %14, i64* %sv_0.0.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_6
LBL_4:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%18 = call i64 @FUNC(i64 %17, i64 0, i64 0)
store i64 %18, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%19 = call i64 @FUNC(i64 %sv_0.0.reload, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i8*)* @qemu_find_opts, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_6, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | stream_seek_15957 | stream_seek | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
store i64 %arg2, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
store i32 1, i32* %3, align 4
%4 = icmp slt i32 %1, 0
%5 = zext i1 %4 to i32
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | qvirtio_pci_get_queue_size_16514 | qvirtio_pci_get_queue_size | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = add i64 %2, 16
%4 = call i64 @FUNC(i64 %arg1, i64 %3)
ret i64 %4
uselistorder i64 %arg1, { 1, 0 }
} | 1 |
BinRealVul | socket_accept_16316 | socket_accept | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 110, i32* %sv_1, align 4
%0 = trunc i64 %arg1 to i32
%1 = bitcast i64* %sv_0 to %sockaddr*
br label LBL_1
LBL_1:
%2 = call i32 @accept(i32 %0, %sockaddr* nonnull %1, i32* nonnull %sv_1)
%3 = icmp eq i32 %2, -1
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i32* @__errno_location()
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 4
br i1 %7, label LBL_1, label LBL_3
LBL_3:
%8 = zext i32 %2 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i32 @close(i32 %0)
ret i64 %8
} | 1 |
BinRealVul | xfrm6_tunnel_rcv_11210 | xfrm6_tunnel_rcv | 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, 12
%3 = call i64 @FUNC(i64 %2)
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %0, i64 %4)
ret i64 %5
} | 1 |
BinRealVul | Curl_close_10969 | Curl_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_1, label LBL_10
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1, i64 %arg1)
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %6)
br label LBL_3
LBL_3:
%9 = add i64 %arg1, 32
%10 = call i64 @FUNC(i64 %9, i64 0)
%11 = add i64 %arg1, 152
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add i64 %arg1, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %arg1, 24
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i64*
call void @free(i64* %20)
br label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %arg1)
%22 = call i64 @FUNC(i64 %arg1)
%23 = add i64 %arg1, 40
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %arg1, 48
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i64 %arg1)
%32 = add i64 %arg1, 128
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = inttoptr i64 %34 to i64*
call void @free(i64* %35)
store i64 0, i64* %33, align 8
%36 = add i64 %arg1, 96
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
%.pre = add i64 %arg1, 104
%.pre1 = inttoptr i64 %.pre to i64*
br i1 %39, label LBL_7, label LBL_6
LBL_6:
%40 = load i64, i64* %.pre1, align 8
%41 = call i64 @FUNC(i64 %40)
store i32 0, i32* %37, align 4
br label LBL_7
LBL_7:
store i64 0, i64* %.pre1, align 8
%42 = call i64 @FUNC(i64 %arg1)
%43 = add i64 %arg1, 56
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %45)
%47 = add i64 %arg1, 64
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %49)
%51 = add i64 %arg1, 72
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %53)
%55 = call i64 @FUNC(i64 %arg1, i64 1)
%56 = call i64 @FUNC(i64 %arg1)
%57 = add i64 %arg1, 112
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = call i64 @FUNC(i64 %59)
%61 = add i64 %arg1, 120
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = call i64 @FUNC(i64 %63)
%65 = add i64 %arg1, 80
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = call i64 @FUNC(i64 %67)
%69 = call i64 @FUNC(i64 %arg1)
%70 = call i64 @FUNC(i64 %arg1)
%71 = add i64 %arg1, 136
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = icmp eq i64 %73, 0
br i1 %74, label LBL_9, label LBL_8
LBL_8:
%75 = call i64 @FUNC(i64 %arg1, i64 1, i64 2)
%76 = load i64, i64* %72, align 8
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = add i32 %78, -1
store i32 %79, i32* %77, align 4
%80 = call i64 @FUNC(i64 %arg1, i64 1)
br label LBL_9
LBL_9:
%81 = add i64 %arg1, 144
%82 = call i64 @FUNC(i64 %81)
%83 = call i64 @FUNC(i64 %arg1)
%84 = inttoptr i64 %arg1 to i64*
call void @free(i64* %84)
br label LBL_10
LBL_10:
ret i64 0
uselistorder i64 (i64)* @Curl_safefree, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder void (i64*)* @free, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 4, 5, 6, 3, 8, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 0, 20, 21, 22, 23, 24, 25, 26, 28, 27, 29, 30, 31, 1, 2, 32, 33 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | gen_spr_970_lpar_14385 | gen_spr_970_lpar | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 2416, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64* nonnull @gv_1)
ret i64 %1
} | 1 |
BinRealVul | dec_sexth_16339 | dec_sexth | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%3 = and i64 %1, 4294967295
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %3)
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = urem i32 %13, 2
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%18 = call i32 @fwrite(i64* bitcast ([41 x i8]* @gv_2 to i64*), i32 1, i32 40, %_IO_FILE* %17)
call void @exit(i32 1)
unreachable
LBL_2:
%19 = ptrtoint i64* %sv_2 to i64
%20 = bitcast i64* %sv_1 to i8*
call void @FUNC(i8* nonnull %20, i64 0, i64 16)
%sext = mul i64 %1, 4294967296
%21 = ashr exact i64 %sext, 30
%22 = add nsw i64 %21, -256
%23 = add i64 %22, %19
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = bitcast i64* %sv_0 to i8*
call void @FUNC(i8* nonnull %27, i64 0, i64 16)
%28 = load i32, i32* %5, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 4
%31 = add i64 %19, -128
%32 = add i64 %31, %30
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = zext i32 %34 to i64
%36 = call i64 @FUNC(i64 %35, i64 %26)
ret i64 %36
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | test_init_167 | test_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%spec.select = select i1 %8, i64 ptrtoint (i8** @gv_0 to i64), i64 %7
%9 = trunc i64 %3 to i32
%10 = icmp eq i32 %9, 0
%. = select i1 %10, i64 ptrtoint ([32 x i8]* @gv_1 to i64), i64 ptrtoint (i8** @gv_0 to i64)
%11 = inttoptr i64 %. to i8*
%12 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %spec.select, i8* %11, i64 %2, i64 %1)
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0))
%15 = call i64 @FUNC(i64 %12)
%16 = call i64 @FUNC(i64 0)
%17 = call i64 @FUNC(i64 %16, i64 7936)
%18 = add i64 %4, 16
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = icmp eq i64 %17, 0
%21 = icmp eq i1 %20, false
%22 = zext i1 %21 to i64
%23 = call i64 @FUNC(i64 %22)
%24 = load i64, i64* %19, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = load i64, i64* %19, align 8
%27 = call i64 @FUNC(i64 %26, i64 64, i64 4097)
%28 = load i64, i64* %19, align 8
%29 = call i64 @FUNC(i64 %28, i64 80, i64 4294967168)
%30 = load i64, i64* %19, align 8
%31 = call i64 @FUNC(i64 %30, i64 96, i64 8193)
%32 = load i64, i64* %19, align 8
%33 = call i64 @FUNC(i64 %32, i64 4192)
%34 = add i64 %4, 24
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
ret i64 %33
uselistorder i64 %33, { 1, 0 }
uselistorder i64* %19, { 0, 2, 1, 4, 3, 5 }
uselistorder i64 %., { 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @qpci_config_writel, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 1, 0 }
} | 0 |
BinRealVul | sdhci_read_dataport_1484 | sdhci_read_dataport | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%.reg2mem19 = alloca i32
%sv_0.06.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = trunc i64 %arg2 to i32
%6 = icmp eq i32 %5, 0
store i32 0, i32* %sv_0.1.reg2mem
br i1 %6, label LBL_15, label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = bitcast i64* %rdi to i32*
%9 = add i64 %7, 16
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %7, 20
%12 = add i64 %7, 8
%13 = inttoptr i64 %12 to i32*
%.pre = load i32, i32* %10, align 4
store i32 %.pre, i32* %.reg2mem
store i32 0, i32* %storemerge27.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
br label LBL_4
LBL_3:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_16
LBL_4:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload = load i32, i32* %.reg2mem
%15 = zext i32 %.reload to i64
%16 = mul i64 %15, 4
%17 = add i64 %11, %16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = mul i32 %storemerge27.reload, 8
%21 = and i32 %20, 24
%22 = shl i32 %19, %21
%23 = or i32 %22, %sv_0.06.reload
%24 = add i32 %.reload, 1
store i32 %24, i32* %10, align 4
%25 = load i32, i32* %13, align 4
%26 = urem i32 %25, 4096
%27 = icmp ult i32 %24, %26
br i1 %27, label LBL_14, label LBL_5
LBL_5:
%28 = zext i32 %24 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = load i32, i32* %8, align 8
%31 = and i32 %30, -2
%32 = bitcast i64* %arg1 to i32*
store i32 %31, i32* %32, align 4
store i32 0, i32* %10, align 4
%33 = add i64 %7, 4
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = and i32 %35, 2
%37 = icmp eq i32 %36, 0
store i32 %35, i32* %.reg2mem19
br i1 %37, label LBL_7, label LBL_6
LBL_6:
%38 = add i64 %7, 12
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i32 %40, -1
store i32 %41, i32* %39, align 4
%.pre12 = load i32, i32* %34, align 4
store i32 %.pre12, i32* %.reg2mem19
br label LBL_7
LBL_7:
%.reload20 = load i32, i32* %.reg2mem19
%42 = and i32 %.reload20, 4
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_12, label LBL_8
LBL_8:
%44 = and i32 %.reload20, 2
%45 = icmp eq i32 %44, 0
br i1 %45, label LBL_10, label LBL_9
LBL_9:
%46 = add i64 %7, 12
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label LBL_12, label LBL_10
LBL_10:
%50 = add i64 %7, 1044
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_13, label LBL_11
LBL_11:
%55 = load i32, i32* %8, align 8
%56 = and i32 %55, 8
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_13, label LBL_12
LBL_12:
%59 = call i64 @FUNC(i64 %7)
store i32 %23, i32* %sv_0.1.reg2mem
br label LBL_15
LBL_13:
%60 = call i64 @FUNC(i64 %7)
store i32 %23, i32* %sv_0.1.reg2mem
br label LBL_15
LBL_14:
%61 = add nuw nsw i32 %storemerge27.reload, 1
%62 = icmp ult i32 %61, %5
store i32 %24, i32* %.reg2mem
store i32 %61, i32* %storemerge27.reg2mem
store i32 %23, i32* %sv_0.06.reg2mem
store i32 %23, i32* %sv_0.1.reg2mem
br i1 %62, label LBL_4, label LBL_15
LBL_15:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%63 = zext i32 %sv_0.1.reload to i64
store i64 %63, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %23, { 0, 3, 1, 2 }
uselistorder i32* %10, { 0, 2, 1 }
uselistorder i64 %7, { 1, 3, 2, 4, 6, 5, 7, 0, 8 }
uselistorder i32 %5, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem19, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 3, 4, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 8, { 1, 0 }
uselistorder i32 0, { 4, 5, 6, 7, 8, 9, 10, 1, 2, 0, 3 }
uselistorder label LBL_15, { 0, 2, 3, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | fm_mgr_config_mgr_connect_11196 | fm_mgr_config_mgr_connect | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%1 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = call i64* @memset(i64* nonnull %sv_3, i32 0, i32 256)
%4 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 256)
%5 = call i32 @getpid()
%6 = icmp eq i32 %1, 3
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = trunc i64 %2 to i32
%8 = icmp sgt i32 %7, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_10, label LBL_2
LBL_2:
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8** %sv_1.0.reg2mem
store i64 %0, i64* %sv_0.0.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %7, label LBL_10 [
i32 1, label LBL_5
i32 2, label LBL_3
]
LBL_3:
%9 = add i64 %0, 8
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8** %sv_1.0.reg2mem
store i64 %9, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%10 = add i64 %0, 16
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8** %sv_1.0.reg2mem
store i64 %10, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = bitcast i64* %sv_3 to i8*
%16 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %sv_1.0.reload, i64 %14)
%17 = load i32, i32* %12, align 4
%18 = zext i32 %17 to i64
%19 = bitcast i64* %sv_2 to i8*
%20 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %19, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %sv_1.0.reload, i64 %18, i32 %5)
%21 = inttoptr i64 %sv_0.0.reload to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i32 %22, i32* %.reg2mem
br i1 %24, label LBL_8, label LBL_6
LBL_6:
%25 = call i64 @FUNC(i64 %sv_0.0.reload, i64* nonnull %sv_3, i64* nonnull %sv_2, i64 32768)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_6.LBL_8_crit_edge, label LBL_10
LBL_7:
%.pre = load i32, i32* %21, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i32, i32* %.reg2mem
%28 = sext i32 %.reload to i64
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%33 = add i64 %0, 28
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = trunc i64 %2 to i32
%37 = or i32 %35, %36
store i32 %37, i32* %34, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %sv_1.0.reload, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 2, 3, 4, 1, 0 }
uselistorder i8** %sv_1.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 0, 1 }
uselistorder label LBL_10, { 4, 0, 1, 3, 2 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | fstrndup_13537 | fstrndup | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = trunc i64 %arg2 to i32
%3 = call i64* @malloc(i32 %2)
%4 = ptrtoint i64* %3 to i64
%5 = inttoptr i64 %arg1 to i64*
%6 = call i64* @memcpy(i64* %3, i64* %5, i32 %2)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vdi_check_255 | vdi_check | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem5 = alloca i32
%sv_0.12.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = trunc i64 %1 to i32
%5 = mul i64 %1, 4
%6 = and i64 %5, 17179869180
%7 = call i64 @FUNC(i64 %6)
%8 = mul i32 %4, 4
%9 = inttoptr i64 %7 to i64*
%10 = call i64* @memset(i64* %9, i32 255, i32 %8)
%11 = icmp eq i32 %4, 0
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %11, label LBL_9, label LBL_1
LBL_1:
%12 = bitcast i64* %rdi to i32*
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i64*
%15 = bitcast i64* %rsi to i32*
store i32 %4, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_2
LBL_2:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%16 = load i64, i64* %14, align 8
%17 = mul i64 %indvars.iv.reload, 4
%18 = add i64 %16, %17
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, -1
store i32 %.reload, i32* %.reg2mem5
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br i1 %24, label LBL_8, label LBL_3
LBL_3:
%25 = icmp ugt i32 %.reload, %23
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%27 = add i32 %sv_0.12.reload, 1
%28 = mul i64 %22, 4
%29 = and i64 %28, 17179869180
%30 = add i64 %29, %7
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, -1
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_6, label LBL_5
LBL_5:
store i32 %23, i32* %31, align 4
%.pre = load i32, i32* %12, align 8
store i32 %.pre, i32* %.reg2mem5
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_6:
%35 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%36 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %35, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i32 %32, i32 %23)
%37 = load i32, i32* %15, align 8
%38 = add i32 %37, 1
store i32 %38, i32* %arg2, align 4
store i32 %.reload, i32* %.reg2mem5
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%39 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%40 = trunc i64 %indvars.iv.reload to i32
%41 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %39, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_3, i64 0, i64 0), i32 %40, i32 %23)
%42 = load i32, i32* %15, align 8
%43 = add i32 %42, 1
store i32 %43, i32* %arg2, align 4
store i32 %.reload, i32* %.reg2mem5
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload6 = load i32, i32* %.reg2mem5
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%44 = zext i32 %.reload6 to i64
%45 = icmp ult i64 %indvars.iv.next, %44
store i32 %.reload6, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.12.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %45, label LBL_2, label LBL_9
LBL_9:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%46 = add i64 %2, 4
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %sv_0.1.lcssa.reload, %48
br i1 %49, label LBL_11, label LBL_10
LBL_10:
%50 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%51 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %50, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_4, i64 0, i64 0), i32 %sv_0.1.lcssa.reload, i32 %48)
%52 = bitcast i64* %rsi to i32*
%53 = load i32, i32* %52, align 8
%54 = add i32 %53, 1
store i32 %54, i32* %arg2, align 4
br label LBL_11
LBL_11:
%55 = call i64 @FUNC(i64 %7)
ret i64 0
uselistorder i32 %sv_0.1.lcssa.reload, { 1, 0 }
uselistorder i32 %.reload6, { 1, 0 }
uselistorder i32 %27, { 1, 0 }
uselistorder i32 %23, { 3, 2, 1, 0, 4 }
uselistorder i32 %.reload, { 1, 0, 3, 2 }
uselistorder i32 %sv_0.12.reload, { 0, 2, 1 }
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i32 %4, { 0, 2, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rsi, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem5, { 0, 3, 2, 1, 4 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 2, 1 }
uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 }
uselistorder i64 17179869180, { 1, 0 }
uselistorder i32* %arg2, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vpc_get_info_15580 | vpc_get_info | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 2
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = bitcast i64* %arg2 to i32*
store i32 %9, i32* %10, align 4
br label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg2 to i64
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i8*
store i8 1, i8* %13, align 1
ret i64 0
uselistorder i64* %arg2, { 1, 0 }
} | 1 |
BinRealVul | truespeech_apply_twopoint_filter_3189 | truespeech_apply_twopoint_filter | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.010.reg2mem = alloca i16*
%indvars.iv.reg2mem = alloca i64
%indvars.iv13.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 30
%2 = add i64 %0, 420
%3 = add i64 %2, %1
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 127
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = ptrtoint i64* %sv_3 to i64
%9 = add i64 %8, -464
store i64 0, i64* %indvars.iv13.reg2mem
br label LBL_3
LBL_2:
%10 = add i64 %0, 292
%11 = inttoptr i64 %10 to i64*
%12 = call i64* @memset(i64* %11, i32 0, i32 120)
%13 = ptrtoint i64* %12 to i64
store i64 %13, i64* %rax.1.reg2mem
br label LBL_6
LBL_3:
%indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem
%14 = mul i64 %indvars.iv13.reload, 2
%15 = add i64 %14, %0
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = add i64 %9, %14
%19 = inttoptr i64 %18 to i16*
store i16 %17, i16* %19, align 2
%indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 1
%exitcond15 = icmp eq i64 %indvars.iv.next14, 146
store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem
br i1 %exitcond15, label LBL_4, label LBL_3
LBL_4:
%20 = sdiv i32 %5, 25
%21 = trunc i64 %arg2 to i32
%22 = ashr i32 %21, 1
%narrow = add nsw i32 %22, 100
%23 = sext i32 %narrow to i64
%24 = mul i64 %23, 4
%25 = add i64 %0, 12
%26 = add i64 %25, %24
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add nsw i32 %20, 18
%30 = add i32 %29, %28
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31, i64 0, i64 145)
%sext7 = mul i64 %32, 4294967296
%33 = ashr exact i64 %sext7, 31
%34 = ptrtoint i64* %sv_2 to i64
%35 = add i64 %34, 290
%36 = sub i64 %35, %33
%37 = inttoptr i64 %36 to i16*
%38 = ptrtoint i64* %sv_1 to i64
%39 = mul i32 %20, -25
%40 = add i32 %39, %5
%41 = mul i32 %40, 2
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 2
%44 = add i64 %43, ptrtoint (i16** @gv_0 to i64)
%45 = inttoptr i64 %44 to i16*
%46 = add i64 %43, add (i64 ptrtoint (i16** @gv_0 to i64), i64 2)
%47 = inttoptr i64 %46 to i16*
%48 = add i64 %0, 292
store i64 0, i64* %indvars.iv.reg2mem
store i16* %37, i16** %sv_0.010.reg2mem
br label LBL_5
LBL_5:
%sv_0.010.reload = load i16*, i16** %sv_0.010.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%49 = load i16, i16* %sv_0.010.reload, align 2
%50 = load i16, i16* %45, align 4
%51 = sext i16 %49 to i32
%52 = sext i16 %50 to i32
%53 = mul nsw i32 %52, %51
%54 = ptrtoint i16* %sv_0.010.reload to i64
%55 = add i64 %54, 2
%56 = inttoptr i64 %55 to i16*
%57 = load i16, i16* %56, align 2
%58 = load i16, i16* %47, align 2
%59 = sext i16 %58 to i32
%60 = sext i16 %57 to i32
%61 = mul nsw i32 %59, %60
%62 = add i32 %53, 8192
%63 = add i32 %62, %61
%64 = udiv i32 %63, 16384
%65 = trunc i32 %64 to i16
%66 = mul i64 %indvars.iv.reload, 2
%67 = add i64 %48, %66
%68 = inttoptr i64 %67 to i16*
store i16 %65, i16* %68, align 2
%69 = add i64 %66, %38
%70 = inttoptr i64 %69 to i16*
store i16 %65, i16* %70, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 60
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i16* %56, i16** %sv_0.010.reg2mem
store i64 %69, i64* %rax.1.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %66, { 1, 0 }
uselistorder i16* %sv_0.010.reload, { 1, 0 }
uselistorder i64 %43, { 1, 0 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 4, 0, 3, 2 }
uselistorder i64* %indvars.iv13.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_0.010.reg2mem, { 1, 0, 2 }
uselistorder i64 %arg2, { 1, 0 }
} | 0 |
BinRealVul | replay_bh_schedule_event_2479 | replay_bh_schedule_event | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64 1, i64 %0, i64 0, i64 %5)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%7 = call i64 @FUNC(i64 %0)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | get_node_path_locked_13367 | get_node_path_locked | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.in.in.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = add i64 %arg1, 16
store i64 %2, i64* %sv_2.0.reg2mem
store i64 %4, i64* %sv_1.0.in.in.reg2mem
br label LBL_5
LBL_2:
%5 = add i64 %arg1, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = add i64 %arg1, 40
store i64 %7, i64* %sv_2.0.reg2mem
store i64 %9, i64* %sv_1.0.in.in.reg2mem
br label LBL_5
LBL_4:
%10 = add i64 %arg1, 32
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %arg1, 40
store i64 %12, i64* %sv_2.0.reg2mem
store i64 %13, i64* %sv_1.0.in.in.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.in.in.reload = load i64, i64* %sv_1.0.in.in.reg2mem
%sv_1.0.in = inttoptr i64 %sv_1.0.in.in.reload to i64*
%sv_1.0 = load i64, i64* %sv_1.0.in, align 8
%14 = add i64 %sv_1.0, 1
%15 = icmp ugt i64 %14, %arg3
%16 = icmp eq i1 %15, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %16, label LBL_6, label LBL_10
LBL_6:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%17 = icmp eq i64 %arg1, 0
%18 = icmp eq i1 %3, false
%or.cond = or i1 %17, %18
store i64 0, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_7
LBL_7:
%19 = sub i64 0, %sv_1.0
%20 = sub i64 %19, 1
%21 = add i64 %20, %arg3
%22 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %21)
%23 = icmp slt i64 %22, 0
%24 = icmp eq i1 %23, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %24, label LBL_8, label LBL_10
LBL_8:
%25 = add i64 %22, 1
%26 = add i64 %22, %arg2
%27 = inttoptr i64 %26 to i8*
store i8 47, i8* %27, align 1
store i64 %25, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = add i64 %sv_0.0.reload, %arg2
%29 = inttoptr i64 %28 to i64*
%30 = inttoptr i64 %sv_2.0.reload to i64*
%31 = trunc i64 %sv_1.0 to i32
%32 = add i32 %31, 1
%33 = call i64* @memcpy(i64* %29, i64* %30, i32 %32)
%34 = add i64 %sv_0.0.reload, %sv_1.0
store i64 %34, 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 i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %sv_1.0, { 1, 3, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.0.in.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0, 5, 6, 4, 2, 3, 7 }
uselistorder label LBL_10, { 2, 0, 1 }
} | 0 |
BinRealVul | hbitmap_reset_2410 | hbitmap_reset | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %arg2, -1
%2 = add i64 %1, %arg3
%3 = urem i64 %0, 64
%4 = lshr i64 %2, %3
%5 = urem i64 %4, 64
%6 = lshr i64 %arg2, %5
%7 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %arg3, i64 %6, i64 %4)
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp ult i64 %4, %10
br i1 %11, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%12 = lshr i64 %arg2, %3
%13 = call i64 @FUNC(i64 %0, i64 %12, i64 %4)
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = sub i64 %16, %13
store i64 %17, i64* %15, align 8
%18 = call i64 @FUNC(i64 %0, i64 9, i64 %12, i64 %4)
ret i64 %18
uselistorder i64 %4, { 1, 2, 3, 4, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 1, 3, 2, 4, 5, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | parse_tag_value_4109 | parse_tag_value | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge25.reg2mem = alloca i64
%.reg2mem = alloca i8
%sv_0 = alloca i64, align 8
%0 = bitcast i64* %arg2 to i8*
%1 = load i8, i8* %0, align 1
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
store i64 -1, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = inttoptr i64 %arg1 to i8*
store i8 %1, i8* %.reg2mem
store i64 %4, i64* %storemerge25.reg2mem
br label LBL_2
LBL_2:
%storemerge25.reload = load i64, i64* %storemerge25.reg2mem
%.reload = load i8, i8* %.reg2mem
%6 = sext i8 %.reload to i32
%7 = call i8* @strchr(i8* %5, i32 %6)
%8 = icmp eq i8* %7, null
br i1 %8, label LBL_6, label LBL_3
LBL_3:
%9 = ptrtoint i8* %7 to i64
%10 = bitcast i64* %sv_0 to i8**
%11 = call i32 @strtoul(i8* %5, i8** nonnull %10, i32 10)
%12 = load i64, i64* %sv_0, align 8
%13 = icmp eq i64 %12, %9
%14 = icmp eq i1 %13, false
store i64 -1, i64* %storemerge.reg2mem
br i1 %14, label LBL_7, label LBL_4
LBL_4:
%15 = sext i32 %11 to i128
%16 = add i64 %storemerge25.reload, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = and i128 %15, 18446744073709551615
%20 = zext i64 %18 to i128
%21 = mul nuw i128 %19, %20
%22 = icmp ugt i128 %21, 18446744073709551615
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %23, false
store i64 -1, i64* %storemerge.reg2mem
br i1 %24, label LBL_7, label LBL_5
LBL_5:
%25 = sext i32 %11 to i64
%26 = mul i64 %18, %25
store i64 %26, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%27 = add i64 %storemerge25.reload, 16
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 0
%31 = icmp eq i1 %30, false
store i8 %29, i8* %.reg2mem
store i64 %27, i64* %storemerge25.reg2mem
store i64 -1, i64* %storemerge.reg2mem
br i1 %31, label LBL_2, label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge25.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 5, 4, 3, 2 }
uselistorder i64 -1, { 0, 3, 2, 1 }
uselistorder i1 false, { 4, 1, 2, 3, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 0, 4, 3, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | do_rt_sigreturn_18585 | do_rt_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = call i32 @fwrite(i64* bitcast ([17 x i8]* @gv_1 to i64*), i32 1, i32 16, %_IO_FILE* %3)
%5 = add i64 %1, 120
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 0, i64 %2, i64 %7, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64* nonnull %sv_1, i64 %2)
%12 = call i64 @FUNC(i64 2, i64* nonnull %sv_1, i64 0)
%13 = add i64 %2, 128
%14 = call i64 @FUNC(i64 %1, i64 %13, i64* nonnull %sv_0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %1)
%19 = add i64 %7, 128
%20 = call i64 @FUNC(i64 %19, i64 0, i64 %18)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, -14
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %2, i64 %7, i64 0)
%24 = load i64, i64* %sv_0, align 8
store i64 %24, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%25 = call i64 @FUNC(i64 %2, i64 %7, i64 0)
%26 = call i64 @FUNC(i64 11)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 2, 0, 1, 3 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | dwc2_handle_common_intr_4745 | dwc2_handle_common_intr | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
store i32 0, i32* %sv_0.1.reg2mem
br label LBL_19
LBL_2:
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = and i32 %9, 2
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
br label LBL_4
LBL_4:
%13 = and i32 %9, 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %0)
br label LBL_6
LBL_6:
%16 = and i32 %9, 8
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_8, label LBL_7
LBL_7:
%18 = call i64 @FUNC(i64 %0)
br label LBL_8
LBL_8:
%19 = and i32 %9, 16
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_10, label LBL_9
LBL_9:
%21 = call i64 @FUNC(i64 %0)
br label LBL_10
LBL_10:
%22 = and i32 %9, 32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_12, label LBL_11
LBL_11:
%24 = call i64 @FUNC(i64 %0)
br label LBL_12
LBL_12:
%25 = and i32 %9, 64
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_14, label LBL_13
LBL_13:
%27 = call i64 @FUNC(i64 %0)
br label LBL_14
LBL_14:
%28 = trunc i64 %8 to i8
%29 = icmp sgt i8 %28, -1
br i1 %29, label LBL_16, label LBL_15
LBL_15:
%30 = call i64 @FUNC(i64 %0)
br label LBL_16
LBL_16:
%31 = and i64 %8, 4294967294
%32 = icmp ne i64 %31, 0
%spec.select = zext i1 %32 to i32
%33 = urem i32 %9, 2
%34 = icmp eq i32 %33, 0
store i32 %spec.select, i32* %sv_0.1.reg2mem
br i1 %34, label LBL_19, label LBL_17
LBL_17:
%35 = call i64 @FUNC(i64 %0)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
store i32 %spec.select, i32* %sv_0.1.reg2mem
br i1 %37, label LBL_19, label LBL_18
LBL_18:
%38 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0))
%39 = call i64 @FUNC(i64 %0)
store i32 1, i32* %sv_0.1.reg2mem
br label LBL_19
LBL_19:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%40 = call i64 @FUNC(i64 %1)
%41 = zext i32 %sv_0.1.reload to i64
ret i64 %41
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %0, { 8, 9, 10, 7, 6, 5, 4, 3, 2, 1, 11, 0, 13, 12 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9 }
uselistorder label LBL_19, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | syborg_virtio_readl_2587 | syborg_virtio_readl | define i64 @FUNC(i32* %arg1, i64 %arg2) 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 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %arg2, 4294967295
%11 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %4, i64 %5, i64 %2, i64 %1)
%12 = icmp ult i64 %arg2, 256
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = add i64 %arg2, -256
%14 = call i64 @FUNC(i64 %9, i64 %13)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%15 = udiv i64 %arg2, 4
store i64 %15, i64* @0, align 8
%16 = udiv i64 %arg2, 16
%17 = mul i64 %15, 4611686018427387904
%18 = or i64 %17, %16
store i32 1, i32* %sv_0.0.reg2mem
switch i64 %18, label LBL_12 [
i64 0, label LBL_13
i64 1, label LBL_3
i64 2, label LBL_4
i64 3, label LBL_5
i64 4, label LBL_6
i64 5, label LBL_7
i64 6, label LBL_8
i64 7, label LBL_9
i64 8, label LBL_10
i64 9, label LBL_11
]
LBL_3:
%19 = trunc i64 %3 to i32
store i32 %19, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_4:
%20 = or i64 %9, %6
%21 = trunc i64 %20 to i32
store i32 %21, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_5:
%22 = inttoptr i64 %9 to i32*
%23 = load i32, i32* %22, align 4
store i32 %23, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_6:
%24 = add i64 %9, 24
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %9, i64 %27)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_7:
%30 = add i64 %9, 24
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %9, i64 %33)
%35 = trunc i64 %34 to i32
store i32 %35, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_8:
%36 = add i64 %9, 24
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
store i32 %38, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_9:
%39 = add i64 %9, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
store i32 %41, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_10:
%42 = add i64 %6, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
store i32 %44, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%45 = add i64 %9, 32
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = trunc i64 %47 to i32
store i32 %48, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
%49 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%50 = zext i32 %sv_0.0.reload to i64
store i64 %50, 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, { 7, 6, 5, 3, 4, 1, 2, 9, 0, 8 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 4, { 2, 3, 1, 0 }
uselistorder i64 %arg2, { 0, 1, 3, 2, 4 }
uselistorder label LBL_13, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
} | 0 |
BinRealVul | sug_filltree_19194 | sug_filltree | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i32
%sv_0.0.ph11.reg2mem = alloca i32
%sv_1.0.ph12.reg2mem = alloca i32
%sv_2.010.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.08.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %arg1, align 8
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_17
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 1, i32* %5, align 4
%6 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%7 = icmp eq i32 %6, 0
store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %7, label LBL_2, label LBL_16
LBL_2:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %sv_5 to i64
%10 = add i64 %8, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %9, -2096
%14 = add i64 %9, -1072
%15 = add i64 %9, -2352
%16 = add i64 %9, -3632
%17 = add i64 %0, 12
%18 = inttoptr i64 %17 to i32*
%19 = add i64 %8, 16
%20 = inttoptr i64 %19 to i32*
%21 = add i64 %8, 1
store i32 0, i32* %sv_1.0.ph12.reg2mem
store i32 0, i32* %sv_0.0.ph11.reg2mem
br label LBL_3.lr.ph
LBL_3:
%sv_1.08.reload = load i32, i32* %sv_1.08.reg2mem
%22 = sext i32 %sv_1.08.reload to i64
%23 = mul i64 %22, 4
%24 = add i64 %23, %13
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = add i64 %23, %14
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = sext i32 %30 to i64
%32 = add i64 %31, %8
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = zext i8 %34 to i64
%36 = icmp ugt i64 %27, %35
br i1 %36, label LBL_4, label LBL_8
LBL_4:
%37 = mul i64 %31, 4
%38 = add i64 %37, %12
%39 = add i64 %23, %16
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = inttoptr i64 %38 to i32*
store i32 %41, i32* %42, align 4
%43 = icmp slt i32 %sv_1.08.reload, 1
%.pre = add i32 %sv_1.08.reload, -1
br i1 %43, label LBL_6, label LBL_5
LBL_5:
%44 = sext i32 %.pre to i64
%45 = mul i64 %44, 4
%46 = add i64 %45, %16
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = load i32, i32* %40, align 4
%50 = add i32 %49, %48
store i32 %50, i32* %47, align 4
br label LBL_6
LBL_6:
%51 = call i64 @FUNC()
store i32 %.pre, i32* %sv_1.0.be.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%52 = icmp sgt i32 %sv_1.0.be.reload, -1
%53 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%54 = icmp eq i32 %53, 0
%or.cond = icmp eq i1 %52, %54
store i32 %sv_1.0.be.reload, i32* %sv_1.08.reg2mem
store i32 %sv_0.0.ph11.reload, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %or.cond, label LBL_3, label LBL_16
LBL_8:
%55 = add i32 %30, %26
%56 = add i32 %26, 1
store i32 %56, i32* %25, align 4
%57 = sext i32 %55 to i64
%58 = add i64 %57, %8
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = icmp eq i8 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_13, label LBL_9
LBL_9:
%63 = add i64 %15, %22
%64 = inttoptr i64 %63 to i8*
store i8 0, i8* %64, align 1
%65 = call i64 @FUNC(i64 %8, i64* nonnull %sv_3, i64 1, i64* nonnull %sv_4)
%66 = udiv i32 %sv_0.0.ph11.reload, 65536
%67 = zext i32 %66 to i64
%68 = urem i32 %sv_0.0.ph11.reload, 65536
%69 = zext i32 %68 to i64
%70 = call i64 @FUNC(i64 %0, i64* nonnull %sv_4, i64 %67, i64 %67, i64 %69, i64 0)
%71 = trunc i64 %70 to i32
%72 = icmp eq i32 %71, -1
%73 = icmp eq i1 %72, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %73, label LBL_10, label LBL_17
LBL_10:
%74 = add i64 %23, %16
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = add i32 %76, 1
store i32 %77, i32* %75, align 4
store i32 0, i32* %18, align 4
%78 = add i32 %55, 1
%79 = load i32, i32* %20, align 4
%80 = icmp ult i32 %78, %79
store i32 %78, i32* %.reg2mem
store i32 %55, i32* %sv_2.010.reg2mem
br i1 %80, label LBL_12, label LBL_14
LBL_11:
%.reload = load i32, i32* %.reg2mem
%81 = load i32, i32* %25, align 4
%82 = add i32 %81, 1
store i32 %82, i32* %25, align 4
%83 = add i32 %.reload, 1
%84 = load i32, i32* %20, align 4
%85 = icmp ult i32 %83, %84
store i32 %83, i32* %.reg2mem
store i32 %.reload, i32* %sv_2.010.reg2mem
br i1 %85, label LBL_12, label LBL_14
LBL_12:
%sv_2.010.reload = load i32, i32* %sv_2.010.reg2mem
%86 = sext i32 %sv_2.010.reload to i64
%87 = add i64 %21, %86
%88 = inttoptr i64 %87 to i8*
%89 = load i8, i8* %88, align 1
%90 = icmp eq i8 %89, 0
br i1 %90, label LBL_11, label LBL_14
LBL_13:
%91 = add i32 %sv_1.08.reload, 1
%92 = add i64 %15, %22
%93 = inttoptr i64 %92 to i8*
store i8 %60, i8* %93, align 1
%94 = mul i64 %57, 4
%95 = add i64 %94, %12
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = sext i32 %91 to i64
%99 = mul i64 %98, 4
%100 = add i64 %99, %14
%101 = inttoptr i64 %100 to i32*
store i32 %97, i32* %101, align 4
%102 = add i64 %99, %13
%103 = inttoptr i64 %102 to i32*
store i32 1, i32* %103, align 4
%104 = add i64 %99, %16
%105 = inttoptr i64 %104 to i32*
store i32 0, i32* %105, align 4
store i32 %91, i32* %sv_1.0.be.reg2mem
br label LBL_7
LBL_14:
%106 = add i32 %sv_0.0.ph11.reload, 1
%107 = icmp sgt i32 %sv_1.08.reload, -1
%108 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%109 = icmp eq i32 %108, 0
%or.cond7 = icmp eq i1 %107, %109
store i32 %sv_1.08.reload, i32* %sv_1.0.ph12.reg2mem
store i32 %106, i32* %sv_0.0.ph11.reg2mem
store i32 %106, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %or.cond7, label LBL_3.lr.ph, label LBL_16
LBL_15:
%sv_0.0.ph11.reload = load i32, i32* %sv_0.0.ph11.reg2mem
%sv_1.0.ph12.reload = load i32, i32* %sv_1.0.ph12.reg2mem
store i32 %sv_1.0.ph12.reload, i32* %sv_1.08.reg2mem
br label LBL_3
LBL_16:
%sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem
%110 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%111 = zext i32 %sv_0.0.ph.lcssa.reload to i64
%112 = call i64 @FUNC(i64 %110, i64 %111)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.ph11.reload, { 0, 3, 2, 1 }
uselistorder i64 %99, { 2, 1, 0 }
uselistorder i32 %sv_1.0.be.reload, { 1, 0 }
uselistorder i32 %26, { 1, 0, 2 }
uselistorder i32* %25, { 1, 0, 2, 3 }
uselistorder i64 %23, { 3, 2, 1, 0 }
uselistorder i64 %22, { 2, 1, 0 }
uselistorder i32 %sv_1.08.reload, { 0, 5, 1, 4, 2, 3 }
uselistorder i32* %20, { 1, 0 }
uselistorder i64 %16, { 2, 3, 0, 1 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %9, { 0, 1, 3, 2 }
uselistorder i64 %8, { 4, 0, 1, 2, 3, 5 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %sv_1.08.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.010.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 65536, { 1, 0 }
uselistorder i8 0, { 2, 3, 0, 1 }
uselistorder i32 -1, { 1, 3, 2, 0 }
uselistorder i32 0, { 4, 6, 7, 5, 1, 2, 0, 3 }
uselistorder i64 0, { 0, 2, 3, 4, 1, 5, 6 }
uselistorder i32* bitcast (i64* @gv_0 to i32*), { 1, 2, 0 }
uselistorder label LBL_17, { 2, 0, 1 }
uselistorder label LBL_3.lr.ph, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
reposvul_c_test | init_string_based_protocols_229 | init_string_based_protocols | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem18 = alloca i64
%storemerge15.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%.lcssa3.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i32
%.reg2mem14 = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
%1 = load i64, i64* bitcast ([2 x i8*]* @gv_0 to i64*), align 8
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %.reg2mem
store i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64* %.reg2mem14
store i32 0, i32* %storemerge26.reg2mem
store i64 %0, i64* %.lcssa3.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%storemerge26.reload = load i32, i32* %storemerge26.reg2mem
%.reload15 = load i64, i64* %.reg2mem14
%.reload = load i64, i64* %.reg2mem
%4 = call i64 @FUNC(i64 %.reload, i64 %.reload15)
%5 = add i32 %storemerge26.reload, 1
%6 = sext i32 %5 to i64
%7 = mul i64 %6, 8
%8 = add i64 %7, ptrtoint ([2 x i8*]* @gv_0 to i64)
%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
%13 = load i64, i64* %sv_0, align 8
store i64 %13, i64* %.reg2mem
store i64 %8, i64* %.reg2mem14
store i32 %5, i32* %storemerge26.reg2mem
store i64 %13, i64* %.lcssa3.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_2:
%14 = ptrtoint i64* %sv_0 to i64
%.lcssa3.reload = load i64, i64* %.lcssa3.reg2mem
%15 = call i64 @FUNC(i64 %.lcssa3.reload)
%16 = load i64, i64* bitcast ([2 x i8*]* @gv_1 to i64*), align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_5
LBL_3:
%19 = add i64 %14, -8
%20 = inttoptr i64 %19 to i64*
store i64 %16, i64* %.reg2mem16
store i32 0, i32* %storemerge15.reg2mem
br label LBL_4
LBL_4:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%21 = load i64, i64* %sv_0, align 8
%22 = add i64 %21, 8
store i64 0, i64* %20, align 8
%23 = call i64 @FUNC(i64 %21, i64 %22, i64 %.reload17, i64 1, i64 1, i64 1)
%24 = add i32 %storemerge15.reload, 1
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 8
%27 = add i64 %26, ptrtoint ([2 x i8*]* @gv_1 to i64)
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 %29, i64* %.reg2mem16
store i32 %24, i32* %storemerge15.reg2mem
br i1 %31, label LBL_4, label LBL_5
LBL_5:
%32 = load i64, i64* bitcast ([2 x i8*]* @gv_2 to i64*), align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 %32, i64* %.lcssa.reg2mem
br i1 %34, label LBL_6, label LBL_8
LBL_6:
%35 = add i64 %14, -8
%36 = inttoptr i64 %35 to i64*
store i64 %32, i64* %.reg2mem18
store i32 0, i32* %storemerge4.reg2mem
br label LBL_7
LBL_7:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload19 = load i64, i64* %.reg2mem18
%37 = load i64, i64* %sv_0, align 8
%38 = add i64 %37, 16
store i64 0, i64* %36, align 8
%39 = call i64 @FUNC(i64 %37, i64 %38, i64 %.reload19, i64 1, i64 1, i64 1)
%40 = add i32 %storemerge4.reload, 1
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 8
%43 = add i64 %42, ptrtoint ([2 x i8*]* @gv_2 to i64)
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = icmp eq i64 %45, 0
%47 = icmp eq i1 %46, false
store i64 %45, i64* %.reg2mem18
store i32 %40, i32* %storemerge4.reg2mem
store i64 %45, i64* %.lcssa.reg2mem
br i1 %47, label LBL_7, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i64* %sv_0, { 0, 1, 4, 2, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem14, { 2, 0, 1 }
uselistorder i32* %storemerge26.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem16, { 1, 0, 2 }
uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem18, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder [2 x i8*]* @gv_2, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @ndpi_string_to_automa, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 5, 4, 3 }
uselistorder i64 -8, { 1, 0 }
uselistorder [2 x i8*]* @gv_1, { 1, 0 }
uselistorder i64 8, { 0, 1, 3, 2 }
uselistorder i64 ptrtoint ([2 x i8*]* @gv_0 to i64), { 1, 0 }
uselistorder i1 false, { 3, 2, 4, 1, 5, 0 }
uselistorder [2 x i8*]* @gv_0, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | init_image_15146 | init_image | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge416.reg2mem = alloca i32
%.reg2mem25 = alloca i32
%.reg2mem23 = alloca i64
%.reg2mem21 = alloca i64
%.pre-phi.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = mul i32 %6, 10
%8 = add i64 %3, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %10, %7
%12 = icmp eq i32 %11, 644
br i1 %12, label LBL_23, label LBL_1
LBL_1:
%13 = icmp sgt i32 %11, 644
br i1 %13, label LBL_24, label LBL_2
LBL_2:
%14 = icmp eq i32 %11, 483
br i1 %14, label LBL_22, label LBL_3
LBL_3:
%15 = icmp sgt i32 %11, 483
br i1 %15, label LBL_24, label LBL_4
LBL_4:
%16 = icmp eq i32 %11, 324
br i1 %16, label LBL_21, label LBL_5
LBL_5:
%17 = icmp sgt i32 %11, 324
br i1 %17, label LBL_24, label LBL_6
LBL_6:
%18 = icmp eq i32 %11, 243
br i1 %18, label LBL_18, label LBL_7
LBL_7:
%19 = icmp sgt i32 %11, 243
br i1 %19, label LBL_24, label LBL_8
LBL_8:
%20 = icmp eq i32 %11, 162
br i1 %20, label LBL_20, label LBL_9
LBL_9:
%21 = icmp sgt i32 %11, 162
br i1 %21, label LBL_24, label LBL_10
LBL_10:
%22 = icmp eq i32 %11, 161
br i1 %22, label LBL_19, label LBL_11
LBL_11:
%23 = icmp sgt i32 %11, 161
br i1 %23, label LBL_24, label LBL_12
LBL_12:
%24 = icmp eq i32 %11, 11
br i1 %24, label LBL_15, label LBL_13
LBL_13:
%.off = add i32 %11, -11
%25 = icmp ugt i32 %.off, 70
%26 = icmp slt i32 %11, 21
%or.cond14 = or i1 %26, %25
br i1 %or.cond14, label LBL_24, label LBL_14
LBL_14:
%27 = add i32 %11, 43
%28 = urem i32 %27, 64
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_17, label %30
LBL_15:
%33 = add i64 %3, 24
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_17, label LBL_16
LBL_16:
%38 = bitcast i64* %arg1 to i32*
store i32 0, i32* %38, align 4
br label LBL_25
LBL_17:
%39 = bitcast i64* %arg1 to i32*
store i32 1, i32* %39, align 4
br label LBL_25
LBL_18:
%40 = bitcast i64* %arg1 to i32*
store i32 2, i32* %40, align 4
br label LBL_25
LBL_19:
%41 = add i64 %3, 28
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 0
%. = select i1 %44, i32 4, i32 3
%45 = bitcast i64* %arg1 to i32*
store i32 %., i32* %45, align 4
br label LBL_25
LBL_20:
%46 = bitcast i64* %arg1 to i32*
store i32 5, i32* %46, align 4
br label LBL_25
LBL_21:
%47 = bitcast i64* %arg1 to i32*
store i32 6, i32* %47, align 4
br label LBL_25
LBL_22:
%48 = add i64 %3, 28
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 0
%.12 = select i1 %51, i32 8, i32 7
%52 = bitcast i64* %arg1 to i32*
store i32 %.12, i32* %52, align 4
br label LBL_25
LBL_23:
%53 = add i64 %3, 28
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
%.13 = select i1 %56, i32 10, i32 9
%57 = bitcast i64* %arg1 to i32*
store i32 %.13, i32* %57, align 4
br label LBL_25
LBL_24:
%58 = zext i32 %10 to i64
%59 = zext i32 %6 to i64
%60 = call i64 @FUNC(i64 %3, i64 11, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0), i64 %59, i64 %58, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_38
LBL_25:
%61 = add i64 %3, 16
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i64 %3, 4
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = icmp eq i32 %63, %66
%68 = icmp eq i1 %67, false
%.pre17 = add i64 %3, 20
%.pre19 = inttoptr i64 %.pre17 to i32*
br i1 %68, label LBL_25.LBL_28_crit_edge, label LBL_27
LBL_26:
%.pre = load i32, i32* %.pre19, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_28
LBL_27:
%69 = trunc i64 %3 to i32
%70 = load i32, i32* %.pre19, align 4
%71 = load i32, i32* %5, align 4
%72 = icmp eq i32 %70, %71
store i32 %70, i32* %.reg2mem
store i32 %69, i32* %.pre-phi.reg2mem
store i64 %3, i64* %.reg2mem21
br i1 %72, label LBL_31, label LBL_28
LBL_28:
%.reload = load i32, i32* %.reg2mem
%73 = zext i32 %63 to i64
%74 = call i64 @FUNC(i64 %73, i32 %.reload, i64 0, i64 %3)
%75 = trunc i64 %74 to i32
%76 = icmp slt i32 %75, 0
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_30, label LBL_29
LBL_29:
%78 = and i64 %74, 4294967295
store i64 %78, i64* %rax.0.reg2mem
br label LBL_38
LBL_30:
%79 = load i32, i32* %.pre19, align 4
%80 = load i32, i32* %62, align 4
%81 = zext i32 %80 to i64
%82 = call i64 @FUNC(i64 %73, i64 %81, i32 %79)
store i32 %63, i32* %.pre-phi.reg2mem
store i64 %73, i64* %.reg2mem21
br label LBL_31
LBL_31:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%83 = icmp slt i32 %.pre-phi.reload, 0
%84 = icmp eq i1 %83, false
br i1 %84, label LBL_33, label LBL_32
LBL_32:
%.reload22 = load i64, i64* %.reg2mem21
%85 = and i64 %.reload22, 4294967295
%86 = add i64 %3, 32
%87 = call i64 @FUNC(i64 %.reload22, i64 11, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %86, i64 %2, i64 %1)
store i64 %85, i64* %rax.0.reg2mem
br label LBL_38
LBL_33:
%88 = icmp eq i32 %.pre-phi.reload, 1
%89 = icmp eq i1 %88, false
store i64 0, i64* %rax.0.reg2mem
br i1 %89, label LBL_38, label LBL_34
LBL_34:
%90 = add i64 %3, 24
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = icmp eq i32 %92, 0
br i1 %93, label LBL_36, label LBL_35
LBL_35:
%94 = add i64 %3, 48
%95 = add i64 %3, 40
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = inttoptr i64 %97 to i64*
%99 = inttoptr i64 %94 to i64*
%100 = call i64* @memcpy(i64* %98, i64* %99, i32 1024)
store i64 0, i64* %rax.0.reg2mem
br label LBL_38
LBL_36:
%101 = add i64 %3, 40
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = load i32, i32* %5, align 4
%105 = urem i32 %104, 32
store i64 0, i64* %.reg2mem23
store i32 %105, i32* %.reg2mem25
store i32 0, i32* %storemerge416.reg2mem
br label LBL_37
LBL_37:
%storemerge416.reload = load i32, i32* %storemerge416.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%.reload24 = load i64, i64* %.reg2mem23
%106 = mul i32 %storemerge416.reload, 255
%107 = zext i32 %106 to i64
%108 = ashr i32 %106, 31
%109 = zext i32 %108 to i64
%110 = mul i64 %109, 4294967296
%111 = or i64 %110, %107
%notmask = shl nsw i32 -1, %.reload26
%112 = sub i32 0, %notmask
%113 = sub i32 %112, 1
%114 = zext i32 %113 to i64
%115 = sdiv i64 %111, %114
%116 = trunc i64 %115 to i32
%117 = mul i32 %116, 65793
%118 = or i32 %117, -16777216
%119 = mul i64 %.reload24, 4
%120 = add i64 %119, %103
%121 = inttoptr i64 %120 to i32*
store i32 %118, i32* %121, align 4
%122 = add i32 %storemerge416.reload, 1
%123 = load i32, i32* %5, align 4
%124 = urem i32 %123, 32
%125 = shl i32 1, %124
%storemerge2 = zext i32 %125 to i64
%126 = sext i32 %122 to i64
%127 = icmp sgt i64 %storemerge2, %126
store i64 %126, i64* %.reg2mem23
store i32 %124, i32* %.reg2mem25
store i32 %122, i32* %storemerge416.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %127, label LBL_37, label LBL_38
LBL_38:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.pre-phi.reload, { 1, 0 }
uselistorder i32* %.pre19, { 1, 2, 0 }
uselistorder i32 %11, { 2, 1, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
uselistorder i32* %5, { 2, 1, 0, 3 }
uselistorder i64 %3, { 12, 11, 10, 9, 13, 2, 0, 3, 4, 1, 14, 5, 15, 8, 7, 6, 16, 17 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem21, { 0, 2, 1 }
uselistorder i64* %.reg2mem23, { 1, 0, 2 }
uselistorder i32* %.reg2mem25, { 1, 0, 2 }
uselistorder i32* %storemerge416.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 6, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i1 false, { 3, 4, 5, 6, 7, 0, 1, 2 }
uselistorder i32 0, { 1, 0, 3, 4, 5, 6, 7, 8, 9, 10, 2 }
uselistorder i32 161, { 1, 0 }
uselistorder i32 162, { 1, 0 }
uselistorder i32 243, { 1, 0 }
uselistorder i32 324, { 1, 0 }
uselistorder i32 483, { 1, 0 }
uselistorder i32 644, { 1, 0 }
uselistorder i64* %arg1, { 0, 1, 2, 4, 5, 3, 7, 6, 8 }
uselistorder label LBL_38, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_17, { 1, 2, 0 }
} | 1 |
BinRealVul | add_string_7537 | add_string | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%.reg2mem40 = alloca i16
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i16
%sv_2.0.reg2mem = alloca i8
%.lcssa.reg2mem = alloca i32
%sv_1.012.reg2mem = alloca i16
%sv_0.013.reg2mem = alloca i32
%.reg2mem38 = alloca i64
%.reg2mem36 = alloca i32
%.reg2mem34 = alloca i16
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = inttoptr i64 %arg2 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_20
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = call i8* @strchr(i8* %3, i32 32)
%9 = icmp eq i8* %8, null
%10 = sext i32 %4 to i64
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%11 = add nsw i64 %10, 1
%12 = call i64 @FUNC(i64 %7, i64 %arg2, i64 %11)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_20
LBL_3:
%13 = add i64 %10, %arg2
%14 = add i64 %13, -1
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = add i64 %7, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = zext i8 %16 to i64
%21 = mul i64 %20, 2
%22 = add i64 %21, %19
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = icmp eq i16 %24, 0
store i8 %16, i8* %sv_2.0.reg2mem
store i16 0, i16* %sv_1.1.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br i1 %25, label LBL_11, label LBL_4
LBL_4:
%26 = zext i16 %24 to i64
%27 = mul nuw nsw i64 %26, 54
%28 = add i64 %27, %arg2
%29 = inttoptr i64 %28 to i16*
%30 = load i16, i16* %29, align 2
%31 = add i64 %28, 2
%32 = inttoptr i64 %31 to i16*
%33 = load i16, i16* %32, align 2
%34 = zext i16 %33 to i32
%35 = zext i16 %30 to i32
%36 = sub i32 %35, %4
%37 = add i32 %36, %34
%38 = icmp eq i32 %4, 1
store i32 %37, i32* %.lcssa.reg2mem
br i1 %38, label LBL_8, label LBL_5
LBL_5:
%39 = add i64 %7, 24
%40 = inttoptr i64 %39 to i64*
%41 = inttoptr i64 %arg2 to i64*
store i32 %37, i32* %.reg2mem
store i16 %33, i16* %.reg2mem34
store i32 1, i32* %.reg2mem36
store i64 %28, i64* %.reg2mem38
store i32 0, i32* %sv_0.013.reg2mem
store i16 %24, i16* %sv_1.012.reg2mem
br label LBL_6
LBL_6:
%sv_1.012.reload = load i16, i16* %sv_1.012.reg2mem
%sv_0.013.reload = load i32, i32* %sv_0.013.reg2mem
%.reload39 = load i64, i64* %.reg2mem38
%.reload37 = load i32, i32* %.reg2mem36
%.reload35 = load i16, i16* %.reg2mem34
%42 = zext i16 %.reload35 to i64
%43 = icmp ugt i64 %10, %42
br i1 %43, label LBL_9, label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%44 = load i64, i64* %40, align 8
%45 = zext i32 %.reload to i64
%46 = add i64 %44, %45
%47 = inttoptr i64 %46 to i64*
%48 = call i32 @memcmp(i64* %47, i64* %41, i32 %4)
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i32 %.reload, i32* %.lcssa.reg2mem
br i1 %50, label LBL_9, label LBL_8
LBL_8:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%51 = zext i32 %.lcssa.reload to i64
store i64 %51, i64* %rax.0.reg2mem
br label LBL_20
LBL_9:
%52 = sub nuw i32 -2, %sv_0.013.reload
%53 = sext i32 %52 to i64
%54 = add i64 %13, %53
%55 = inttoptr i64 %54 to i8*
%56 = load i8, i8* %55, align 1
%57 = zext i8 %56 to i64
%58 = call i64 @FUNC(i64 %.reload39, i64 %57)
%59 = trunc i64 %58 to i8
%60 = add i64 %.reload39, 36
%61 = inttoptr i64 %60 to i8*
%62 = load i8, i8* %61, align 1
%63 = icmp eq i8 %62, %59
store i8 %56, i8* %sv_2.0.reg2mem
store i16 %sv_1.012.reload, i16* %sv_1.1.reg2mem
store i32 %.reload37, i32* %sv_0.1.reg2mem
br i1 %63, label LBL_11, label LBL_10
LBL_10:
%64 = mul i64 %58, 2
%65 = and i64 %64, 510
%66 = add i64 %.reload39, 4
%67 = add i64 %66, %65
%68 = inttoptr i64 %67 to i16*
%69 = load i16, i16* %68, align 2
%70 = zext i16 %69 to i64
%71 = mul nuw nsw i64 %70, 54
%72 = add i64 %71, %.reload39
%73 = add i32 %.reload37, 1
%74 = inttoptr i64 %72 to i16*
%75 = load i16, i16* %74, align 2
%76 = add i64 %72, 2
%77 = inttoptr i64 %76 to i16*
%78 = load i16, i16* %77, align 2
%79 = zext i16 %78 to i32
%80 = zext i16 %75 to i32
%81 = sub i32 %80, %4
%82 = add i32 %81, %79
%83 = icmp eq i32 %4, %73
store i32 %82, i32* %.reg2mem
store i16 %78, i16* %.reg2mem34
store i32 %73, i32* %.reg2mem36
store i64 %72, i64* %.reg2mem38
store i32 %.reload37, i32* %sv_0.013.reg2mem
store i16 %69, i16* %sv_1.012.reg2mem
store i32 %82, i32* %.lcssa.reg2mem
br i1 %83, label LBL_8, label LBL_6
LBL_11:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i16, i16* %sv_1.1.reg2mem
%sv_2.0.reload = load i8, i8* %sv_2.0.reg2mem
%84 = add nsw i64 %10, 1
%85 = call i64 @FUNC(i64 %7, i64 %arg2, i64 %84)
%86 = add i64 %7, 16
%87 = inttoptr i64 %86 to i16*
%88 = load i16, i16* %87, align 2
%89 = add i64 %7, 18
%90 = inttoptr i64 %89 to i16*
%91 = load i16, i16* %90, align 2
%92 = icmp ult i16 %88, %91
store i16 %88, i16* %.reg2mem40
store i64 %7, i64* %rdi.1.reg2mem
br i1 %92, label LBL_14, label LBL_12
LBL_12:
%93 = icmp ugt i16 %91, 8
%narrow = select i1 %93, i16 %91, i16 8
%spec.select6 = zext i16 %narrow to i32
%94 = zext i16 %91 to i32
%95 = add nuw nsw i32 %spec.select6, %94
%96 = mul nuw nsw i32 %95, 54
%97 = call i64* @realloc(i64* %arg1, i32 %96)
%98 = icmp eq i64* %97, null
%99 = icmp eq i1 %98, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %99, label LBL_13, label LBL_20
LBL_13:
%100 = ptrtoint i64* %97 to i64
%101 = load i16, i16* %90, align 2
%102 = zext i16 %101 to i32
%103 = add nuw nsw i32 %102, %spec.select6
%104 = zext i32 %103 to i64
%105 = zext i16 %101 to i64
%106 = add i64 %7, 32
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = call i64 @FUNC(i64 %108, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %105, i64 %104, i64 %2, i64 %1)
store i64 %100, i64* %arg1, align 8
%110 = load i16, i16* %90, align 2
%111 = add i16 %110, %narrow
store i16 %111, i16* %90, align 2
%.pre = load i16, i16* %87, align 2
store i16 %.pre, i16* %.reg2mem40
store i64 %108, i64* %rdi.1.reg2mem
br label LBL_14
LBL_14:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%.reload41 = load i16, i16* %.reg2mem40
%112 = icmp eq i32 %sv_0.1.reload, 0
%113 = icmp eq i1 %112, false
br i1 %113, label LBL_16, label LBL_15
LBL_15:
%114 = load i64, i64* %18, align 8
%115 = zext i8 %sv_2.0.reload to i64
%116 = mul i64 %115, 2
%117 = add i64 %114, %116
%118 = inttoptr i64 %117 to i16*
store i16 %.reload41, i16* %118, align 2
br label LBL_19
LBL_16:
%119 = zext i16 %sv_1.1.reload to i64
%120 = mul nuw nsw i64 %119, 54
%121 = add i64 %rdi.1.reload, %120
%122 = add i64 %121, 36
%123 = inttoptr i64 %122 to i8*
%124 = load i8, i8* %123, align 1
%125 = icmp eq i8 %124, 16
%126 = icmp eq i1 %125, false
br i1 %126, label LBL_18, label LBL_17
LBL_17:
%127 = and i64 %85, 4294967295
store i64 %127, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%128 = sext i8 %124 to i32
%129 = mul i32 %128, 2
%130 = and i32 %129, 510
%131 = zext i32 %130 to i64
%132 = add i64 %121, 4
%133 = add i64 %132, %131
%134 = inttoptr i64 %133 to i16*
store i16 %.reload41, i16* %134, align 2
%135 = urem i32 %128, 256
%136 = zext i32 %135 to i64
%137 = add i64 %121, 37
%138 = add i64 %137, %136
%139 = inttoptr i64 %138 to i8*
store i8 %sv_2.0.reload, i8* %139, align 1
%140 = add i8 %124, 1
store i8 %140, i8* %123, align 1
br label LBL_19
LBL_19:
%141 = load i16, i16* %87, align 2
%142 = add i16 %141, 1
store i16 %142, i16* %87, align 2
%143 = zext i16 %.reload41 to i64
%144 = mul nuw nsw i64 %143, 54
%145 = add i64 %144, %rdi.1.reload
%146 = inttoptr i64 %145 to i64*
%147 = call i64* @memset(i64* %146, i32 0, i32 54)
%148 = trunc i64 %85 to i16
%149 = inttoptr i64 %145 to i16*
store i16 %148, i16* %149, align 2
%150 = trunc i32 %4 to i16
%151 = add i64 %145, 2
%152 = inttoptr i64 %151 to i16*
store i16 %150, i16* %152, align 2
%153 = and i64 %85, 4294967295
store i64 %153, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %128, { 1, 0 }
uselistorder i8 %124, { 0, 2, 1 }
uselistorder i64 %rdi.1.reload, { 1, 0 }
uselistorder i64* %97, { 1, 0 }
uselistorder i16* %90, { 1, 0, 2, 3 }
uselistorder i16* %87, { 2, 1, 0, 3 }
uselistorder i64 %85, { 1, 2, 0 }
uselistorder i32 %.reload37, { 1, 2, 0 }
uselistorder i64 %.reload39, { 3, 1, 0, 2 }
uselistorder i32 %37, { 1, 0 }
uselistorder i64 %10, { 2, 1, 0, 3 }
uselistorder i64 %7, { 3, 0, 4, 6, 5, 2, 7, 1 }
uselistorder i32 %4, { 5, 4, 0, 3, 2, 1, 6, 7 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i16* %.reg2mem34, { 1, 0, 2 }
uselistorder i32* %.reg2mem36, { 1, 0, 2 }
uselistorder i64* %.reg2mem38, { 1, 0, 2 }
uselistorder i32* %sv_0.013.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_1.012.reg2mem, { 1, 0, 2 }
uselistorder i32* %.lcssa.reg2mem, { 2, 0, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 1, 4, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 54, { 1, 0 }
uselistorder i64 54, { 2, 1, 3, 0 }
uselistorder i64 2, { 4, 0, 5, 1, 3, 2 }
uselistorder i64 (i64, i64, i64)* @add_new_string, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 1, 0, 2 }
uselistorder i64 %arg2, { 4, 3, 0, 1, 2, 5 }
uselistorder label LBL_20, { 2, 3, 0, 4, 5, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | batadv_iv_ogm_orig_get_4575 | batadv_iv_ogm_orig_get | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = ptrtoint i32* %arg2 to i64
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = icmp eq i64 %4, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_7
LBL_1:
%6 = call i64 @FUNC(i64 %2, i64 %3)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_7
LBL_2:
%9 = trunc i64 %1 to i32
%10 = add i64 %6, 16
%11 = call i64 @FUNC(i64 %10)
%12 = mul i32 %9, 32
%13 = sext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13, i64 0)
%15 = inttoptr i64 %6 to i64*
store i64 %14, i64* %15, align 8
%16 = icmp eq i64 %14, 0
br i1 %16, label LBL_6, label LBL_3
LBL_3:
%17 = bitcast i64* %rdi to i32*
%18 = load i32, i32* %17, align 8
%19 = sext i32 %18 to i64
%20 = call i64 @FUNC(i64 %19, i64 0)
%21 = add i64 %6, 8
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = icmp eq i64 %20, 0
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = add i64 %6, 24
%25 = add i64 %2, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 4198887, i64 4198898, i64 %6, i64 %24)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %31, label LBL_5, label LBL_7
LBL_5:
%32 = load i64, i64* %15, align 8
%33 = call i64 @FUNC(i64 %32)
br label LBL_6
LBL_6:
%34 = call i64 @FUNC(i64 %6)
%35 = call i64 @FUNC(i64 %6)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 5, 4, 0, 2, 1, 3, 6, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @batadv_orig_node_free_ref, { 1, 0 }
uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 }
uselistorder label LBL_7, { 3, 0, 1, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | lookup_bytestring_18457 | lookup_bytestring | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge4.in8.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64*
%storemerge4.lcssa.reg2mem = alloca i32*
%storemerge4.in.lcssa.reg2mem = alloca i64
%.reg2mem40 = alloca i64
%storemerge4.in10.reg2mem = alloca i64
%storemerge411.reg2mem = alloca i32*
%.reg2mem38 = alloca i64*
%.reg2mem = alloca i64
%r13.0.reg2mem = alloca i64
%r12.0.reg2mem = alloca i64
%rbx.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i32* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = icmp ult i32 %1, 6
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = mul i64 %0, 256
%5 = and i64 %4, 65280
%6 = add i64 %0, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = zext i8 %8 to i64
%10 = or i64 %5, %9
%11 = add i64 %0, 2
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = zext i8 %13 to i64
%15 = mul i64 %14, 256
%16 = add i64 %0, 3
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i64
%20 = or i64 %15, %19
%21 = add i64 %0, 4
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = zext i8 %23 to i64
%25 = mul i64 %24, 256
%26 = add i64 %0, 5
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i64
%30 = or i64 %25, %29
%.pre37 = trunc i64 %2 to i32
store i32 %.pre37, i32* %.pre-phi.reg2mem
store i64 %20, i64* %rbx.0.reg2mem
store i64 %10, i64* %r12.0.reg2mem
store i64 %30, i64* %r13.0.reg2mem
br label LBL_4
LBL_2:
%31 = trunc i64 %2 to i32
%32 = icmp ult i32 %31, 4
store i32 %31, i32* %.pre-phi.reg2mem
store i64 0, i64* %rbx.0.reg2mem
store i64 0, i64* %r12.0.reg2mem
store i64 0, i64* %r13.0.reg2mem
br i1 %32, label LBL_4, label LBL_3
LBL_3:
%33 = mul i64 %0, 256
%34 = and i64 %33, 65280
%35 = add i64 %0, 1
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = zext i8 %37 to i64
%39 = or i64 %34, %38
%40 = add i64 %0, 2
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = zext i8 %42 to i64
%44 = mul i64 %43, 256
%45 = add i64 %0, 3
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%48 = zext i8 %47 to i64
%49 = or i64 %44, %48
store i32 %31, i32* %.pre-phi.reg2mem
store i64 %49, i64* %rbx.0.reg2mem
store i64 %39, i64* %r12.0.reg2mem
store i64 0, i64* %r13.0.reg2mem
br label LBL_4
LBL_4:
%r13.0.reload = load i64, i64* %r13.0.reg2mem
%r12.0.reload = load i64, i64* %r12.0.reg2mem
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%50 = xor i64 %r13.0.reload, %rbx.0.reload
%51 = mul i64 %50, 32
%52 = and i64 %51, 8160
%53 = add i64 %52, ptrtoint (i32** @gv_0 to i64)
%storemerge49 = inttoptr i64 %53 to i32*
%54 = add i64 %52, add (i64 ptrtoint (i32** @gv_0 to i64), i64 24)
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = icmp eq i64 %56, 0
%58 = icmp eq i1 %57, false
%59 = trunc i64 %r13.0.reload to i32
%60 = trunc i64 %rbx.0.reload to i32
%61 = trunc i64 %r12.0.reload to i32
%62 = bitcast i32* %arg1 to i64*
store i64 %56, i64* %.reg2mem
store i64* %55, i64** %.reg2mem38
store i32* %storemerge49, i32** %storemerge411.reg2mem
store i64 %53, i64* %storemerge4.in10.reg2mem
store i64 %53, i64* %storemerge4.in.lcssa.reg2mem
store i32* %storemerge49, i32** %storemerge4.lcssa.reg2mem
store i64* %55, i64** %.lcssa.reg2mem
br i1 %58, label LBL_5, label LBL_11
LBL_5:
%storemerge411.reload = load i32*, i32** %storemerge411.reg2mem
%.reload = load i64, i64* %.reg2mem
%63 = load i32, i32* %storemerge411.reload, align 4
%64 = icmp eq i32 %63, %59
%65 = icmp eq i1 %64, false
store i64 %.reload, i64* %.reg2mem40
br i1 %65, label LBL_10, label LBL_6
LBL_6:
%storemerge4.in10.reload = load i64, i64* %storemerge4.in10.reg2mem
%66 = add i64 %storemerge4.in10.reload, 4
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, %60
%70 = icmp eq i1 %69, false
store i64 %.reload, i64* %.reg2mem40
br i1 %70, label LBL_10, label LBL_7
LBL_7:
%71 = add i64 %storemerge4.in10.reload, 8
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %73, %61
%75 = icmp eq i1 %74, false
store i64 %.reload, i64* %.reg2mem40
br i1 %75, label LBL_10, label LBL_8
LBL_8:
%76 = add i64 %storemerge4.in10.reload, 16
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
%79 = inttoptr i64 %78 to i64*
%80 = call i32 @memcmp(i64* %62, i64* %79, i32 %.pre-phi.reload)
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i64 %storemerge4.in10.reload, i64* %storemerge4.in8.reg2mem
br i1 %82, label LBL_8.LBL_10_crit_edge, label LBL_13
LBL_9:
%.reload39 = load i64*, i64** %.reg2mem38
%.pre = load i64, i64* %.reload39, align 8
store i64 %.pre, i64* %.reg2mem40
br label LBL_10
LBL_10:
%.reload41 = load i64, i64* %.reg2mem40
%storemerge4 = inttoptr i64 %.reload41 to i32*
%83 = add i64 %.reload41, 24
%84 = inttoptr i64 %83 to i64*
%85 = load i64, i64* %84, align 8
%86 = icmp eq i64 %85, 0
%87 = icmp eq i1 %86, false
store i64 %85, i64* %.reg2mem
store i64* %84, i64** %.reg2mem38
store i32* %storemerge4, i32** %storemerge411.reg2mem
store i64 %.reload41, i64* %storemerge4.in10.reg2mem
store i64 %.reload41, i64* %storemerge4.in.lcssa.reg2mem
store i32* %storemerge4, i32** %storemerge4.lcssa.reg2mem
store i64* %84, i64** %.lcssa.reg2mem
br i1 %87, label LBL_5, label LBL_11
LBL_11:
%.lcssa.reload = load i64*, i64** %.lcssa.reg2mem
%storemerge4.lcssa.reload = load i32*, i32** %storemerge4.lcssa.reg2mem
%storemerge4.in.lcssa.reload = load i64, i64* %storemerge4.in.lcssa.reg2mem
store i32 %59, i32* %storemerge4.lcssa.reload, align 4
%88 = add i64 %storemerge4.in.lcssa.reload, 4
%89 = inttoptr i64 %88 to i32*
store i32 %60, i32* %89, align 4
%90 = add i64 %storemerge4.in.lcssa.reload, 8
%91 = inttoptr i64 %90 to i32*
store i32 %61, i32* %91, align 4
%92 = add i32 %.pre-phi.reload, 1
%93 = call i64* @calloc(i32 1, i32 %92)
%94 = ptrtoint i64* %93 to i64
%95 = add i64 %storemerge4.in.lcssa.reload, 16
%96 = inttoptr i64 %95 to i64*
store i64 %94, i64* %96, align 8
%97 = call i64* @memcpy(i64* %93, i64* %62, i32 %.pre-phi.reload)
%98 = call i64* @calloc(i32 1, i32 32)
%99 = ptrtoint i64* %98 to i64
store i64 %99, i64* %.lcssa.reload, align 8
%100 = icmp eq i64* %98, null
%101 = icmp eq i1 %100, false
store i64 %storemerge4.in.lcssa.reload, i64* %storemerge4.in8.reg2mem
br i1 %101, label LBL_13, label LBL_12
LBL_12:
%102 = bitcast i64* %98 to i8*
call void (i32, i32, i8*, ...) @error(i32 ptrtoint (i32* @gv_1 to i32), i32 32, i8* %102)
store i64 %storemerge4.in.lcssa.reload, i64* %storemerge4.in8.reg2mem
br label LBL_13
LBL_13:
%storemerge4.in8.reload = load i64, i64* %storemerge4.in8.reg2mem
ret i64 %storemerge4.in8.reload
uselistorder i64* %98, { 1, 0, 2 }
uselistorder i64 %.reload41, { 0, 3, 2, 1 }
uselistorder i64 %.reload, { 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 9, 8, 7, 0, 2, 3, 4, 5, 6, 1 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rbx.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %r12.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %r13.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64** %.reg2mem38, { 2, 0, 1 }
uselistorder i32** %storemerge411.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge4.in10.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem40, { 0, 4, 3, 2, 1 }
uselistorder i64* %storemerge4.in8.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 5, 6, 1, 2, 3, 4, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder label LBL_13, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | pcrypt_free_17353 | pcrypt_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %arg1)
ret i64 %2
} | 1 |
BinRealVul | readuint_10748 | readuint | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to %_IO_FILE*
%1 = call i32 @fread(i64* nonnull %sv_3, i32 1, i32 1, %_IO_FILE* %0)
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = call i32 @fwrite(i64* bitcast ([71 x i8]* @gv_1 to i64*), i32 1, i32 70, %_IO_FILE* %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%6 = call i32 @fread(i64* nonnull %sv_2, i32 1, i32 1, %_IO_FILE* %0)
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%10 = call i32 @fwrite(i64* bitcast ([71 x i8]* @gv_1 to i64*), i32 1, i32 70, %_IO_FILE* %9)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%11 = call i32 @fread(i64* nonnull %sv_1, i32 1, i32 1, %_IO_FILE* %0)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%15 = call i32 @fwrite(i64* bitcast ([71 x i8]* @gv_1 to i64*), i32 1, i32 70, %_IO_FILE* %14)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%16 = call i32 @fread(i64* nonnull %sv_0, i32 1, i32 1, %_IO_FILE* %0)
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%20 = call i32 @fwrite(i64* bitcast ([71 x i8]* @gv_1 to i64*), i32 1, i32 70, %_IO_FILE* %19)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%21 = trunc i64 %arg2 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_10, label LBL_9
LBL_9:
%23 = load i64, i64* %sv_3, align 8
%24 = mul i64 %23, 16777216
%25 = load i64, i64* %sv_2, align 8
%26 = mul i64 %25, 65536
%27 = and i64 %26, 16711680
%28 = load i64, i64* %sv_1, align 8
%29 = mul i64 %28, 256
%30 = and i64 %29, 65280
%31 = load i64, i64* %sv_0, align 8
%32 = urem i64 %31, 256
%.masked4 = and i64 %24, 4278190080
%.masked3 = or i64 %27, %.masked4
%.masked = or i64 %.masked3, %30
%33 = or i64 %.masked, %32
store i64 %33, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%34 = load i64, i64* %sv_0, align 8
%35 = mul i64 %34, 16777216
%36 = load i64, i64* %sv_1, align 8
%37 = mul i64 %36, 65536
%38 = and i64 %37, 16711680
%39 = load i64, i64* %sv_2, align 8
%40 = mul i64 %39, 256
%41 = and i64 %40, 65280
%42 = load i64, i64* %sv_3, align 8
%43 = urem i64 %42, 256
%.masked6 = and i64 %35, 4278190080
%.masked5 = or i64 %38, %.masked6
%.masked2 = or i64 %.masked5, %41
%44 = or i64 %.masked2, %43
store i64 %44, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_3, { 1, 2, 0 }
uselistorder i64* %sv_2, { 1, 2, 0 }
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 256, { 2, 0, 3, 1 }
uselistorder i32 0, { 4, 0, 1, 2, 3 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fread, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | read_mem_16423 | read_mem | 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
%2 = load i64, i64* @gv_0, align 8
%3 = add i64 %1, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
store i64 %5, i64* @gv_0, align 8
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %8, %arg2
%10 = call i64 @FUNC(i64 %1, i64 %9, i64 %0, i64 %arg4)
store i64 %2, i64* @gv_0, align 8
ret i64 %2
uselistorder i64 %2, { 1, 0 }
} | 1 |
BinRealVul | read_partition_15483 | read_partition | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i8
%5 = bitcast i64* %arg2 to i8*
store i8 %4, i8* %5, align 1
%6 = add i64 %3, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = add i64 %2, 1
%10 = inttoptr i64 %9 to i8*
store i8 %8, i8* %10, align 1
%11 = add i64 %3, 3
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = add i64 %3, 2
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i16
%18 = mul i16 %17, 4
%19 = and i16 %18, 768
%20 = zext i8 %13 to i16
%21 = or i16 %19, %20
%22 = add i64 %2, 2
%23 = inttoptr i64 %22 to i16*
store i16 %21, i16* %23, align 2
%24 = load i8, i8* %15, align 1
%25 = urem i8 %24, 64
%26 = add i64 %2, 4
%27 = inttoptr i64 %26 to i8*
store i8 %25, i8* %27, align 1
%28 = add i64 %3, 4
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = add i64 %2, 5
%32 = inttoptr i64 %31 to i8*
store i8 %30, i8* %32, align 1
%33 = add i64 %3, 5
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = add i64 %2, 6
%37 = inttoptr i64 %36 to i8*
store i8 %35, i8* %37, align 1
%38 = add i64 %3, 7
%39 = inttoptr i64 %38 to i8*
%40 = load i8, i8* %39, align 1
%41 = add i64 %3, 6
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = zext i8 %43 to i16
%45 = mul i16 %44, 4
%46 = and i16 %45, 768
%47 = zext i8 %40 to i16
%48 = or i16 %46, %47
%49 = add i64 %2, 8
%50 = inttoptr i64 %49 to i16*
store i16 %48, i16* %50, align 2
%51 = load i8, i8* %42, align 1
%52 = urem i8 %51, 64
%53 = add i64 %2, 10
%54 = inttoptr i64 %53 to i8*
store i8 %52, i8* %54, align 1
%55 = add i64 %3, 8
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = add i64 %3, 9
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = zext i8 %60 to i32
%62 = mul i32 %61, 256
%63 = zext i8 %57 to i32
%64 = or i32 %62, %63
%65 = add i64 %3, 10
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = zext i8 %67 to i32
%69 = mul i32 %68, 65536
%70 = or i32 %64, %69
%71 = add i64 %3, 11
%72 = inttoptr i64 %71 to i8*
%73 = load i8, i8* %72, align 1
%74 = zext i8 %73 to i32
%75 = mul i32 %74, 16777216
%76 = or i32 %70, %75
%77 = add i64 %2, 12
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = add i64 %3, 12
%80 = inttoptr i64 %79 to i8*
%81 = load i8, i8* %80, align 1
%82 = add i64 %3, 13
%83 = inttoptr i64 %82 to i8*
%84 = load i8, i8* %83, align 1
%85 = zext i8 %84 to i32
%86 = mul i32 %85, 256
%87 = zext i8 %81 to i32
%88 = or i32 %86, %87
%89 = add i64 %3, 14
%90 = inttoptr i64 %89 to i8*
%91 = load i8, i8* %90, align 1
%92 = zext i8 %91 to i32
%93 = mul i32 %92, 65536
%94 = or i32 %88, %93
%95 = add i64 %3, 15
%96 = inttoptr i64 %95 to i8*
%97 = load i8, i8* %96, align 1
%98 = zext i8 %97 to i32
%99 = mul i32 %98, 16777216
%100 = or i32 %94, %99
%101 = add i64 %2, 16
%102 = inttoptr i64 %101 to i32*
store i32 %100, i32* %102, align 4
ret i64 %2
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
} | 1 |
BinRealVul | get_linux_shareopts_11649 | get_linux_shareopts | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg2, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg2 to i64
store i64 0, i64* %arg2, align 8
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0), i64 0)
%4 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0), i64 0)
%5 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i64 0)
%6 = ptrtoint i8* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 4198756, i64 %2)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @free(i64* inttoptr (i64 4198756 to i64*))
store i64 0, i64* %arg2, align 8
br label LBL_4
LBL_4:
%10 = and i64 %7, 4294967295
ret i64 %10
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @add_linux_shareopt, { 2, 1, 0 }
uselistorder i64* %arg2, { 0, 1, 3, 2 }
} | 1 |
BinRealVul | _cmsWriteWCharArray_10572 | _cmsWriteWCharArray | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32* %arg1, null
%1 = icmp eq i1 %0, false
%2 = zext i1 %1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64* %arg3, null
%5 = icmp eq i1 %4, false
%6 = trunc i64 %arg2 to i32
%7 = icmp eq i32 %6, 0
%narrow = or i1 %7, %5
%storemerge4 = zext i1 %narrow to i64
%8 = call i64 @FUNC(i64 %storemerge4)
store i64 1, i64* %storemerge.reg2mem
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg3 to i64
%10 = ptrtoint i32* %arg1 to i64
%11 = and i64 %arg2, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = mul i64 %indvars.iv.reload, 4
%13 = add i64 %12, %9
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = urem i32 %15, 65536
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %10, i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 0, i64* %storemerge.reg2mem
br i1 %21, label LBL_3, label LBL_4
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%22 = icmp ult i64 %indvars.iv.next, %11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %22, label LBL_2, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @_cmsAssert, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ff_gen_search_7496 | ff_gen_search | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64* %arg10, i64 %arg11) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.4.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i32
%sv_1.4.ph.reg2mem = alloca i64
%sv_2.1.ph.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%.reg2mem90 = alloca i64
%.reg2mem88 = alloca i64
%.reg2mem86 = alloca i64
%storemerge43.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%.reg2mem84 = alloca i64
%.reg2mem82 = alloca i64
%sv_3.0.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%1 = trunc i64 %arg2 to i32
%sext3 = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext3, 32
store i64 %arg4, i64* %sv_7, align 8
store i64 %arg5, i64* %sv_6, align 8
store i64 %arg6, i64* %sv_8, align 8
%3 = call i64 @FUNC(i64 %arg3)
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i32 %1, i64 %3, i64 %arg5, i64 %arg6)
%5 = icmp eq i64 %arg7, -1
%6 = icmp eq i1 %5, false
store i64 %arg7, i64* %sv_2.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
store i64 %0, i64* %sv_7, align 8
%7 = trunc i64 %2 to i32
%8 = call i64 @FUNC(i64 %0, i32 %7, i64* nonnull %sv_7, i64 9223372036854775807, i64 %arg11)
%9 = icmp eq i64 %8, -1
%10 = icmp eq i1 %9, false
store i64 %8, i64* %sv_2.0.reg2mem
store i64 -1, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_39
LBL_2:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%11 = icmp slt i64 %sv_2.0.reload, %arg3
br i1 %11, label LBL_4, label LBL_3
LBL_3:
store i64 %sv_2.0.reload, i64* %arg10, align 8
%12 = load i64, i64* %sv_7, align 8
store i64 %12, i64* %rax.0.reg2mem
br label LBL_39
LBL_4:
%13 = icmp eq i64 %arg8, -1
%14 = icmp eq i1 %13, false
store i64 %arg8, i64* %sv_1.2.reg2mem
br i1 %14, label LBL_13, label LBL_5
LBL_5:
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %18, -1
store i64 %19, i64* %sv_6, align 8
%20 = trunc i64 %2 to i32
store i64 %19, i64* %.reg2mem
store i32 1024, i32* %sv_3.0.reg2mem
br label LBL_6
LBL_6:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%21 = sext i32 %sv_3.0.reload to i64
%22 = sub i64 %.reload, %21
%23 = icmp sgt i64 %22, 0
%24 = select i1 %23, i64 %22, i64 0
store i64 %24, i64* %sv_6, align 8
%25 = add i64 %24, %21
%26 = call i64 @FUNC(i64 %0, i32 %20, i64* nonnull %sv_6, i64 %25, i64 %arg11)
%27 = icmp eq i64 %26, -1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_7, label LBL_9
LBL_7:
%29 = load i64, i64* %sv_6, align 8
%30 = add i64 %29, 1
store i64 %30, i64* %sv_5, align 8
%31 = call i64 @FUNC(i64 %0, i32 %20, i64* nonnull %sv_5, i64 9223372036854775807, i64 %arg11)
%32 = icmp eq i64 %31, -1
store i64 %26, i64* %sv_1.1.reg2mem
br i1 %32, label LBL_12, label LBL_8
LBL_8:
%33 = load i64, i64* %sv_5, align 8
store i64 %33, i64* %sv_6, align 8
%34 = icmp sgt i64 %18, %33
store i64 %33, i64* %.reg2mem82
store i64 %31, i64* %.reg2mem84
store i64 %31, i64* %sv_1.1.reg2mem
br i1 %34, label LBL_10, label LBL_12
LBL_9:
%35 = mul i32 %sv_3.0.reload, 2
%36 = load i64, i64* %sv_6, align 8
%37 = icmp eq i64 %36, 0
%38 = icmp slt i64 %36, 0
%39 = icmp eq i1 %38, false
%40 = icmp eq i1 %37, false
%41 = icmp eq i1 %39, %40
store i64 %36, i64* %.reg2mem
store i32 %35, i32* %sv_3.0.reg2mem
store i64 -1, i64* %rax.0.reg2mem
br i1 %41, label LBL_6, label LBL_39
LBL_10:
%.reload85 = load i64, i64* %.reg2mem84
%.reload83 = load i64, i64* %.reg2mem82
%42 = add i64 %.reload83, 1
store i64 %42, i64* %sv_5, align 8
%43 = call i64 @FUNC(i64 %0, i32 %20, i64* nonnull %sv_5, i64 9223372036854775807, i64 %arg11)
%44 = icmp eq i64 %43, -1
store i64 %.reload85, i64* %sv_1.1.reg2mem
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = load i64, i64* %sv_5, align 8
store i64 %45, i64* %sv_6, align 8
%46 = icmp sgt i64 %18, %45
store i64 %45, i64* %.reg2mem82
store i64 %43, i64* %.reg2mem84
store i64 %43, i64* %sv_1.1.reg2mem
br i1 %46, label LBL_10, label LBL_12
LBL_12:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%47 = load i64, i64* %sv_6, align 8
store i64 %47, i64* %sv_8, align 8
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_13
LBL_13:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%48 = icmp sgt i64 %sv_1.2.reload, %arg3
br i1 %48, label LBL_15, label LBL_14
LBL_14:
store i64 %sv_1.2.reload, i64* %arg10, align 8
%49 = load i64, i64* %sv_6, align 8
store i64 %49, i64* %rax.0.reg2mem
br label LBL_39
LBL_15:
%50 = icmp sgt i64 %sv_2.0.reload, %sv_1.2.reload
store i64 -1, i64* %rax.0.reg2mem
br i1 %50, label LBL_39, label LBL_16
LBL_16:
%51 = icmp eq i64 %sv_2.0.reload, %sv_1.2.reload
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_18, label LBL_17
LBL_17:
%53 = load i64, i64* %sv_7, align 8
store i64 %53, i64* %sv_8, align 8
br label LBL_18
LBL_18:
%54 = ptrtoint i64* %sv_8 to i64
%55 = trunc i64 %2 to i32
%56 = add i64 %54, -8
%57 = inttoptr i64 %56 to i64*
%58 = add i64 %54, -16
%59 = inttoptr i64 %58 to i64*
%60 = add i64 %54, -24
%61 = inttoptr i64 %60 to i64*
%62 = add i64 %54, -32
%63 = inttoptr i64 %62 to i64*
%64 = add i64 %54, -40
%65 = inttoptr i64 %64 to i64*
%66 = add i64 %54, -48
%67 = inttoptr i64 %66 to i64*
store i64 %sv_2.0.reload, i64* %sv_2.1.ph.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.4.ph.reg2mem
store i32 0, i32* %sv_0.0.ph.reg2mem
br label LBL_36
LBL_19:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%68 = call i64 @FUNC(i64 %sv_1.4.reload)
%69 = call i64 @FUNC(i64 %sv_2.1.ph.reload)
%70 = load i64, i64* %sv_6, align 8
%71 = load i64, i64* %sv_7, align 8
%72 = trunc i64 %71 to i32
%73 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 %72, i64 %70, i64 %69, i64 %68)
%74 = load i64, i64* %sv_6, align 8
%75 = load i64, i64* %sv_8, align 8
%76 = icmp sgt i64 %75, %74
br i1 %76, label LBL_20, label LBL_21
LBL_20:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_3, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_4, i64 0, i64 0))
br label LBL_21
LBL_21:
%77 = icmp eq i32 %sv_0.0.reload, 0
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_23, label LBL_22
LBL_22:
%79 = load i64, i64* %sv_6, align 8
%80 = load i64, i64* %sv_8, align 8
%81 = sub i64 %sv_1.4.reload, %sv_2.1.ph.reload
%82 = load i64, i64* %sv_7, align 8
%83 = sub i64 %79, %82
%84 = call i64 @FUNC(i64 %124, i64 %83, i64 %81)
%85 = load i64, i64* %sv_7, align 8
%86 = sub i64 %80, %79
%87 = add i64 %86, %84
%88 = add i64 %87, %85
store i64 %88, i64* %storemerge43.reg2mem
store i64 %85, i64* %.reg2mem86
br label LBL_26
LBL_23:
%89 = icmp eq i32 %sv_0.0.reload, 1
%90 = icmp eq i1 %89, false
%91 = load i64, i64* %sv_7, align 8
br i1 %90, label LBL_25, label LBL_24
LBL_24:
%92 = load i64, i64* %sv_8, align 8
%93 = add i64 %92, %91
%94 = ashr i64 %93, 1
store i64 %94, i64* %storemerge43.reg2mem
store i64 %91, i64* %.reg2mem86
br label LBL_26
LBL_25:
store i64 %91, i64* %sv_4, align 8
store i64 %91, i64* %.reg2mem88
br label LBL_27
LBL_26:
%.reload87 = load i64, i64* %.reg2mem86
%storemerge43.reload = load i64, i64* %storemerge43.reg2mem
store i64 %storemerge43.reload, i64* %sv_4, align 8
%95 = icmp sgt i64 %storemerge43.reload, %.reload87
store i64 %.reload87, i64* %.reg2mem88
br i1 %95, label LBL_28, label LBL_27
LBL_27:
%.reload89 = load i64, i64* %.reg2mem88
%96 = add i64 %.reload89, 1
store i64 %96, i64* %sv_4, align 8
store i64 %96, i64* %.reg2mem90
br label LBL_30
LBL_28:
%97 = load i64, i64* %sv_8, align 8
%98 = icmp slt i64 %97, %storemerge43.reload
store i64 %storemerge43.reload, i64* %.reg2mem90
br i1 %98, label LBL_29, label LBL_30
LBL_29:
store i64 %97, i64* %sv_4, align 8
store i64 %97, i64* %.reg2mem90
br label LBL_30
LBL_30:
%.reload91 = load i64, i64* %.reg2mem90
%99 = call i64 @FUNC(i64 %0, i32 %55, i64* nonnull %sv_4, i64 9223372036854775807, i64 %arg11)
%100 = load i64, i64* %sv_4, align 8
%101 = load i64, i64* %sv_6, align 8
%102 = icmp eq i64 %100, %101
%103 = icmp eq i1 %102, false
%104 = add i32 %sv_0.0.reload, 1
%storemerge5 = select i1 %103, i32 0, i32 %104
%105 = call i64 @FUNC(i64 %arg3)
%106 = call i64 @FUNC(i64 %sv_1.4.reload)
%107 = call i64 @FUNC(i64 %99)
%108 = call i64 @FUNC(i64 %sv_2.1.ph.reload)
%109 = load i64, i64* %sv_6, align 8
%110 = load i64, i64* %sv_4, align 8
%111 = load i64, i64* %sv_7, align 8
%112 = zext i32 %storemerge5 to i64
store i64 %112, i64* %57, align 8
store i64 %.reload91, i64* %59, align 8
%113 = load i64, i64* %sv_8, align 8
store i64 %113, i64* %61, align 8
store i64 %105, i64* %63, align 8
store i64 %106, i64* %65, align 8
store i64 %107, i64* %67, align 8
%114 = trunc i64 %111 to i32
%115 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_5, i64 0, i64 0), i32 %114, i64 %110, i64 %109, i64 %108)
%116 = icmp eq i64 %99, -1
%117 = icmp eq i1 %116, false
br i1 %117, label LBL_32, label LBL_31
LBL_31:
%118 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_6, i64 0, i64 0), i64 %110, i64 %109, i64 %108)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_39
LBL_32:
%119 = icmp slt i64 %99, %arg3
store i64 %sv_1.4.reload, i64* %sv_1.3.reg2mem
br i1 %119, label LBL_34, label LBL_33
LBL_33:
%120 = add i64 %.reload91, -1
store i64 %120, i64* %sv_8, align 8
%121 = load i64, i64* %sv_4, align 8
store i64 %121, i64* %sv_6, align 8
store i64 %99, i64* %sv_1.3.reg2mem
br label LBL_34
LBL_34:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%122 = icmp sgt i64 %99, %arg3
store i64 %sv_1.3.reload, i64* %sv_1.4.reg2mem
store i32 %storemerge5, i32* %sv_0.0.reg2mem
br i1 %122, label LBL_37, label LBL_35
LBL_35:
%123 = load i64, i64* %sv_4, align 8
store i64 %123, i64* %sv_7, align 8
store i64 %99, i64* %sv_2.1.ph.reg2mem
store i64 %sv_1.3.reload, i64* %sv_1.4.ph.reg2mem
store i32 %storemerge5, i32* %sv_0.0.ph.reg2mem
br label LBL_36
LBL_36:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%sv_1.4.ph.reload = load i64, i64* %sv_1.4.ph.reg2mem
%sv_2.1.ph.reload = load i64, i64* %sv_2.1.ph.reg2mem
%124 = sub i64 %arg3, %sv_2.1.ph.reload
store i64 %sv_1.4.ph.reload, i64* %sv_1.4.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.0.reg2mem
br label LBL_37
LBL_37:
%sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem
%125 = load i64, i64* %sv_7, align 8
%126 = load i64, i64* %sv_8, align 8
%127 = icmp sgt i64 %126, %125
br i1 %127, label LBL_19, label LBL_38
LBL_38:
%128 = urem i64 %arg9, 2
%129 = icmp eq i64 %128, 0
%sv_6.val = load i64, i64* %sv_6, align 8
%storemerge4 = select i1 %129, i64 %sv_6.val, i64 %125
store i64 %storemerge4, i64* %sv_4, align 8
%storemerge = select i1 %129, i64 %sv_1.4.reload, i64 %sv_2.1.ph.reload
store i64 %storemerge4, i64* %sv_7, align 8
%130 = call i64 @FUNC(i64 %0, i32 %55, i64* nonnull %sv_7, i64 9223372036854775807, i64 %arg11)
%131 = load i64, i64* %sv_7, align 8
%132 = add i64 %131, 1
store i64 %132, i64* %sv_7, align 8
%133 = call i64 @FUNC(i64 %0, i32 %55, i64* nonnull %sv_7, i64 9223372036854775807, i64 %arg11)
%134 = call i64 @FUNC(i64 %133)
%135 = call i64 @FUNC(i64 %arg3)
%136 = call i64 @FUNC(i64 %130)
%137 = load i64, i64* %sv_4, align 8
%138 = trunc i64 %137 to i32
%139 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_7, i64 0, i64 0), i32 %138, i64 %136, i64 %135, i64 %134)
store i64 %storemerge, i64* %arg10, align 8
%140 = load i64, i64* %sv_4, align 8
store i64 %140, i64* %rax.0.reg2mem
br label LBL_39
LBL_39:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.4.reload, { 3, 0, 2, 1, 4 }
uselistorder i64 %sv_2.1.ph.reload, { 4, 1, 3, 0, 2 }
uselistorder i64 %sv_1.3.reload, { 1, 0 }
uselistorder i32 %storemerge5, { 1, 0, 2 }
uselistorder i64 %99, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 %storemerge43.reload, { 0, 2, 3, 1 }
uselistorder i64 %91, { 0, 3, 1, 2 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i32 %55, { 1, 0, 2 }
uselistorder i64 %sv_1.2.reload, { 0, 2, 3, 1, 4 }
uselistorder i32 %sv_3.0.reload, { 1, 0 }
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64 %sv_2.0.reload, { 0, 3, 4, 1, 2 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64* %sv_8, { 0, 1, 2, 3, 4, 5, 6, 10, 7, 8, 9 }
uselistorder i64* %sv_7, { 0, 3, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 2, 15, 16 }
uselistorder i64* %sv_6, { 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 3, 14, 15, 16 }
uselistorder i64* %sv_5, { 4, 3, 5, 0, 1, 2 }
uselistorder i64* %sv_4, { 2, 3, 4, 5, 6, 7, 8, 1, 9, 10, 0, 11 }
uselistorder i64 %0, { 6, 7, 8, 9, 10, 11, 12, 3, 0, 4, 5, 1, 2, 13 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem82, { 2, 0, 1 }
uselistorder i64* %.reg2mem84, { 2, 0, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %.reg2mem90, { 0, 2, 3, 1 }
uselistorder i64* %sv_2.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.4.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 2, 5, 1, 4, 3 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 1, { 1, 2, 3, 4, 0 }
uselistorder i64 (i64, i32, i64*, i64, i64)* @ff_read_timestamp, { 6, 5, 4, 3, 0, 2, 1 }
uselistorder i64 9223372036854775807, { 1, 2, 3, 4, 0, 5 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 0, 7, 8, 9, 10 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @av_dlog, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_ts2str, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg11, { 6, 5, 4, 3, 0, 2, 1 }
uselistorder i64 %arg6, { 1, 0 }
uselistorder i64 %arg5, { 1, 0 }
uselistorder i64 %arg3, { 2, 3, 0, 1, 4, 5, 6, 7 }
uselistorder label LBL_39, { 3, 4, 1, 5, 0, 6, 2 }
uselistorder label LBL_30, { 1, 0, 2 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | bdrv_pdiscard_15478 | bdrv_pdiscard | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 0
LBL_2:
%5 = call i64 @FUNC(i64 4198735, i64* nonnull %sv_0)
%6 = call i64 @FUNC(i64 %5)
br label LBL_3
LBL_3:
br label LBL_3
} | 1 |
BinRealVul | perf_event__synthesize_threads_4570 | perf_event__synthesize_threads | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i8*, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sext = mul i64 %arg5, 4294967296
%1 = ashr exact i64 %sext, 32
store i64 %1, i64* %sv_6, align 8
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_16
LBL_1:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = trunc i64 %7 to i32
%9 = call i64* @malloc(i32 %8)
%10 = icmp eq i64* %9, null
store i64 4294967295, i64* %sv_0.3.reg2mem
br i1 %10, label LBL_15, label LBL_2
LBL_2:
%11 = load i64, i64* %6, align 8
%12 = trunc i64 %11 to i32
%13 = call i64* @malloc(i32 %12)
%14 = icmp eq i64* %13, null
store i64 4294967295, i64* %sv_0.2.reg2mem
br i1 %14, label LBL_14, label LBL_3
LBL_3:
%15 = load i64, i64* %6, align 8
%16 = trunc i64 %15 to i32
%17 = call i64* @malloc(i32 %16)
%18 = icmp eq i64* %17, null
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %18, label LBL_13, label LBL_4
LBL_4:
%19 = bitcast i64* %sv_5 to i8*
%20 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %19, i32 4096, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64* %arg3)
%21 = call %__dirstream* @opendir(i8* nonnull %19)
%22 = icmp eq %__dirstream* %21, null
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_12, label LBL_5
LBL_5:
%23 = bitcast i64* %sv_3 to %dirent*
%24 = bitcast i64* %sv_1 to %dirent**
%25 = call i32 @readdir_r(%__dirstream* nonnull %21, %dirent* nonnull %23, %dirent** nonnull %24)
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_11, label LBL_6
LBL_6:
%28 = ptrtoint i64* %arg1 to i64
%29 = ptrtoint i64* %sv_6 to i64
%30 = urem i64 %arg4, 256
%31 = ptrtoint i64* %9 to i64
%32 = ptrtoint i64* %13 to i64
%33 = ptrtoint i64* %17 to i64
%34 = bitcast i64* %sv_2 to i8*
%35 = add i64 %29, -8
%36 = inttoptr i64 %35 to i64*
%37 = add i64 %29, -16
%38 = inttoptr i64 %37 to i64*
%39 = add i64 %29, -24
%40 = inttoptr i64 %39 to i64*
%41 = add i64 %29, -32
%42 = inttoptr i64 %41 to i64*
br label LBL_10
LBL_7:
%43 = call i32 @strtol(i8* nonnull %34, i8** nonnull %sv_4, i32 10)
%44 = load i8*, i8** %sv_4, align 8
%45 = load i8, i8* %44, align 1
%46 = icmp eq i8 %45, 0
br i1 %46, label LBL_8, label LBL_9
LBL_8:
%47 = load i64, i64* %sv_6, align 8
%48 = and i64 %47, 4294967295
store i64 %48, i64* %36, align 8
store i64 %30, i64* %38, align 8
store i64 %0, i64* %40, align 8
store i64 %28, i64* %42, align 8
%49 = sext i32 %43 to i64
%50 = call i64 @FUNC(i64 %31, i64 %32, i64 %33, i32 %43, i64 1, i64 %arg2, i64 %49)
br label LBL_9
LBL_9:
%51 = call i32 @readdir_r(%__dirstream* nonnull %21, %dirent* nonnull %23, %dirent** nonnull %24)
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_11, label LBL_10
LBL_10:
%54 = load i64, i64* %sv_1, align 8
%55 = icmp eq i64 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_7, label LBL_11
LBL_11:
%57 = call i32 @closedir(%__dirstream* nonnull %21)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
call void @free(i64* nonnull %17)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_13:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
call void @free(i64* nonnull %13)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_14
LBL_14:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
call void @free(i64* nonnull %9)
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br label LBL_15
LBL_15:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%58 = and i64 %sv_0.3.reload, 4294967295
store i64 %58, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %43, { 1, 0 }
uselistorder %dirent** %24, { 1, 0 }
uselistorder %dirent* %23, { 1, 0 }
uselistorder %__dirstream* %21, { 1, 2, 0, 3 }
uselistorder i64* %17, { 0, 2, 1 }
uselistorder i64* %13, { 0, 2, 1 }
uselistorder i64* %9, { 0, 2, 1 }
uselistorder i64* %sv_6, { 0, 2, 1 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 (%__dirstream*, %dirent*, %dirent**)* @readdir_r, { 1, 0 }
uselistorder i64 4294967295, { 4, 5, 3, 2, 1, 0, 6 }
uselistorder i64* (i32)* @malloc, { 2, 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | wc_ecc_gen_k_13351 | wc_ecc_gen_k | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%2 = trunc i64 %arg2 to i32
%3 = add i32 %2, 8
%4 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1, i32 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i32 %3)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%10 = icmp eq i32 %sv_0.0.reload, 0
%11 = icmp eq i1 %10, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 1
%15 = icmp eq i1 %14, false
%spec.select = select i1 %15, i32 %sv_0.0.reload, i32 -2
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%16 = icmp eq i32 %sv_0.1.reload, 0
%17 = icmp eq i1 %16, false
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%18 = ptrtoint i64* %arg4 to i64
%19 = call i64 @FUNC(i64 %0, i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, -3
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i64 %0, i64 %18, i64 %0)
%23 = trunc i64 %22 to i32
store i32 %23, i32* %sv_0.2.reg2mem
br label LBL_7
LBL_7:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%24 = call i64 @FUNC(i64* nonnull %sv_1, i64 32)
%25 = zext i32 %sv_0.2.reload to i64
ret i64 %25
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64 %0, { 2, 3, 4, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | pop_sync_mailbox_13775 | pop_sync_mailbox | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%r8.12.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i32
%sv_1.010.reg2mem = alloca i32
%sv_2.111.reg2mem = alloca i32
%rcx.212.reg2mem = alloca i64
%r8.113.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.pre-phi33.reg2mem = alloca i32*
%1 = load i64, i64* %0
%rdi = alloca i64, align 8
%2 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%3 = add i64 %2, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = add i64 %2, 24
%10 = inttoptr i64 %9 to i64*
%11 = bitcast i64* %rdi to i32*
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i32*
%16 = bitcast i64* %sv_3 to i8*
%17 = ptrtoint i64* %sv_3 to i64
%18 = add i64 %5, 24
%19 = inttoptr i64 %18 to i64*
br label LBL_1
LBL_1:
%20 = call i64 @FUNC(i64 %2)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_2, label LBL_19
LBL_2:
%24 = load i32, i32* %8, align 4
%25 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%26 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%27 = zext i32 %24 to i64
%28 = zext i32 %25 to i64
%29 = call i64 @FUNC(i64* nonnull %sv_3, i64 %26, i64 1, i64 %28, i64 %27)
%30 = load i64, i64* %10, align 8
%31 = call i64 @FUNC(i64 %5, i64 %30)
%.pre = load i32, i32* %11, align 8
%32 = zext i32 %.pre to i64
store i64 %27, i64* %r8.113.reg2mem
store i64 %28, i64* %rcx.212.reg2mem
store i32 0, i32* %sv_2.111.reg2mem
store i32 0, i32* %sv_1.010.reg2mem
store i32 0, i32* %sv_0.19.reg2mem
br label LBL_13
LBL_3:
%sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem
%sv_2.111.reload = load i32, i32* %sv_2.111.reg2mem
%rcx.212.reload = load i64, i64* %rcx.212.reg2mem
%33 = load i64, i64* %13, align 8
%34 = mul i64 %113, 8
%35 = add i64 %33, %34
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %39, 0
store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem
store i32 %sv_2.111.reload, i32* %sv_2.0.reg2mem
store i64 %rcx.212.reload, i64* %rcx.0.reg2mem
br i1 %40, label LBL_9, label LBL_4
LBL_4:
%41 = add i64 %37, 4
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, -1
store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem
store i32 %sv_2.111.reload, i32* %sv_2.0.reg2mem
store i64 %rcx.212.reload, i64* %rcx.0.reg2mem
br i1 %44, label LBL_9, label LBL_5
LBL_5:
%45 = add i32 %sv_2.111.reload, 1
%46 = load i32, i32* %15, align 4
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
store i32* %42, i32** %.pre-phi33.reg2mem
br i1 %48, label LBL_7, label LBL_6
LBL_6:
%49 = zext i32 %45 to i64
%50 = call i64 @FUNC(i64* nonnull %sv_3, i64 %49, i64 4294967295)
%.pre18 = load i64, i64* %13, align 8
%.pre19 = add i64 %.pre18, %34
%.pre20 = inttoptr i64 %.pre19 to i64*
%.pre30 = load i64, i64* %.pre20, align 8
%.pre31 = add i64 %.pre30, 4
%.pre32 = inttoptr i64 %.pre31 to i32*
store i32* %.pre32, i32** %.pre-phi33.reg2mem
br label LBL_7
LBL_7:
%.pre-phi33.reload = load i32*, i32** %.pre-phi33.reg2mem
%51 = load i32, i32* %.pre-phi33.reload, align 4
%52 = zext i32 %51 to i64
%53 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %16, i32 1024, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %52)
%54 = call i64 @FUNC(i64 %5, i64* nonnull %sv_3, i64 1024)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
store i32 %55, i32* %sv_0.0.reg2mem
store i32 %45, i32* %sv_2.0.reg2mem
store i64 %17, i64* %rcx.0.reg2mem
br i1 %57, label LBL_9, label LBL_8
LBL_8:
%58 = load i64, i64* %13, align 8
%59 = add i64 %58, %34
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = add i64 %61, 16
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %64)
%66 = load i64, i64* %19, align 8
%67 = and i64 %65, 4294967295
%68 = call i64 @FUNC(i64 %66, i64 %67)
%69 = load i64, i64* %13, align 8
%70 = add i64 %69, %34
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = add i64 %72, 16
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
%76 = inttoptr i64 %75 to i8*
%77 = call i32 @strlen(i8* %76)
%78 = sext i32 %77 to i64
%79 = load i64, i64* %13, align 8
%80 = add i64 %79, %34
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = add i64 %82, 16
%84 = inttoptr i64 %83 to i64*
%85 = load i64, i64* %84, align 8
%86 = call i64 @FUNC(i64 %31, i64 %85, i64 %78)
store i32 %55, i32* %sv_0.0.reg2mem
store i32 %45, i32* %sv_2.0.reg2mem
store i64 %85, i64* %rcx.0.reg2mem
br label LBL_9
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%87 = load i64, i64* %13, align 8
%88 = add i64 %87, %34
%89 = inttoptr i64 %88 to i64*
%90 = load i64, i64* %89, align 8
%91 = add i64 %90, 8
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = icmp eq i32 %93, 0
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %87, i64* %rdx.0.reg2mem
store i64 %r8.113.reload, i64* %r8.0.reg2mem
br i1 %94, label LBL_11, label LBL_10
LBL_10:
%95 = add i64 %90, 16
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = inttoptr i64 %97 to i8*
%99 = call i32 @strlen(i8* %98)
%100 = sext i32 %99 to i64
%101 = load i64, i64* %13, align 8
%102 = add i64 %101, %34
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = add i64 %104, 16
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = call i64 @FUNC(i64 %31, i64 %107, i64 %100, i64 %90, i64 0)
store i64 %90, i64* %rcx.1.reg2mem
store i64 %100, i64* %rdx.0.reg2mem
store i64 0, i64* %r8.0.reg2mem
br label LBL_11
LBL_11:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%109 = add i32 %sv_1.010.reload, 1
%110 = icmp eq i32 %sv_0.0.reload, 0
%111 = icmp eq i1 %110, false
store i64 %r8.0.reload, i64* %r8.113.reg2mem
store i64 %rcx.1.reload, i64* %rcx.212.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.111.reg2mem
store i32 %109, i32* %sv_1.010.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.19.reg2mem
br i1 %111, label LBL_12, label LBL_13
LBL_12:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%112 = call i64 @FUNC(i64 %31)
store i64 %r8.0.reload, i64* %r8.12.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
store i64 %rcx.1.reload, i64* %rcx.3.reg2mem
store i64 %rdx.0.reload, i64* %rdx.2.reg2mem
br label LBL_15
LBL_13:
%sv_1.010.reload = load i32, i32* %sv_1.010.reg2mem
%r8.113.reload = load i64, i64* %r8.113.reg2mem
%113 = sext i32 %sv_1.010.reload to i64
%114 = icmp slt i64 %113, %32
br i1 %114, label LBL_3, label LBL_14
LBL_14:
%115 = call i64 @FUNC(i64 %31)
%116 = call i64 @FUNC(i64* nonnull %sv_3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 1024)
%117 = call i64 @FUNC(i64 %5, i64* nonnull %sv_3, i64 1024)
%118 = trunc i64 %117 to i32
store i64 %r8.113.reload, i64* %r8.12.reg2mem
store i32 %118, i32* %sv_0.2.reg2mem
store i64 %17, i64* %rcx.3.reg2mem
store i64 1024, i64* %rdx.2.reg2mem
br label LBL_15
LBL_15:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%119 = icmp eq i32 %sv_0.2.reload, 0
%120 = icmp eq i1 %119, false
br i1 %120, label LBL_17, label LBL_16
LBL_16:
%121 = add i64 %5, 4
%122 = inttoptr i64 %121 to i32*
store i32 1, i32* %122, align 4
%123 = call i64 @FUNC(i64 %5)
%124 = add i64 %5, 8
%125 = inttoptr i64 %124 to i32*
store i32 0, i32* %125, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_17:
%126 = icmp eq i32 %sv_0.2.reload, -2
%127 = icmp eq i1 %126, false
br i1 %127, label LBL_1, label LBL_18
LBL_18:
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%r8.12.reload = load i64, i64* %r8.12.reg2mem
%128 = add i64 %5, 16
%129 = inttoptr i64 %128 to i64*
%130 = load i64, i64* %129, align 8
%131 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64 %130, i64 %rdx.2.reload, i64 %rcx.3.reload, i64 %r8.12.reload, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %113, { 1, 0 }
uselistorder i32 %sv_1.010.reload, { 1, 0 }
uselistorder i64 %34, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %rcx.212.reload, { 1, 0 }
uselistorder i32 %sv_2.111.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.19.reload, { 1, 0 }
uselistorder i64 %31, { 3, 0, 2, 1 }
uselistorder i64* %13, { 4, 5, 1, 2, 3, 0, 6 }
uselistorder i64 %5, { 6, 4, 3, 5, 2, 1, 7, 0, 8 }
uselistorder i64* %sv_3, { 0, 1, 2, 4, 5, 6, 3 }
uselistorder i64 %2, { 4, 0, 1, 2, 3, 5 }
uselistorder i32** %.pre-phi33.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.212.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.111.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.19.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.12.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @mutt_hcache_close, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 0, { 8, 9, 0, 10, 11, 1, 14, 6, 7, 12, 13, 2, 3, 4, 5, 15, 16 }
uselistorder i64 4294967295, { 1, 2, 3, 0 }
uselistorder i1 false, { 0, 1, 4, 2, 3, 5 }
uselistorder i64 8, { 1, 2, 0, 3 }
uselistorder i64 4, { 1, 0, 2, 3 }
uselistorder i32 0, { 3, 4, 9, 5, 6, 7, 8, 0, 1, 2, 10, 11 }
uselistorder label LBL_19, { 1, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | simple_string_5068 | simple_string | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem8 = alloca i64
%.reg2mem6 = alloca i64*
%.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = ptrtoint i64* %sv_0 to i64
%1 = add i64 %0, -16
%2 = add i64 %0, -96
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
store i64* %3, i64** %.reg2mem6
store i64 %1, i64* %.reg2mem8
store i32 0, i32* %storemerge2.reg2mem
store i64 %4, i64* %.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload9 = load i64, i64* %.reg2mem8
%.reload7 = load i64*, i64** %.reg2mem6
%.reload = load i64, i64* %.reg2mem
%7 = call i64 @FUNC(i64 %.reload, i64 4198857)
%8 = call i64 @FUNC(i64 %7)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %.reload9, -72
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %8)
%15 = inttoptr i64 %14 to i8*
%16 = inttoptr i64 %13 to i8*
%17 = call i32 @strcmp(i8* %15, i8* %16)
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i64
%20 = call i64 @FUNC(i64 %19)
%21 = call i64 @FUNC(i64 %7)
%22 = load i64, i64* %.reload7, align 8
%23 = call i64 @FUNC(i64 %21)
%24 = inttoptr i64 %23 to i8*
%25 = inttoptr i64 %22 to i8*
%26 = call i32 @strcmp(i8* %24, i8* %25)
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = call i64 @FUNC(i64 %7)
%31 = call i64 @FUNC(i64 %21)
%32 = add i32 %storemerge2.reload, 1
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 16
%35 = add i64 %34, %1
%36 = add i64 %35, -80
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
store i64 %38, i64* %.reg2mem
store i64* %37, i64** %.reg2mem6
store i64 %35, i64* %.reg2mem8
store i32 %32, i32* %storemerge2.reg2mem
store i64 %38, i64* %.lcssa.reg2mem
br i1 %40, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64** %.reg2mem6, { 2, 0, 1 }
uselistorder i64* %.reg2mem8, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i64 (i64)* @qstring_get_str, { 1, 0 }
uselistorder i64 (i64)* @g_assert, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 1, { 9, 8, 6, 5, 4, 3, 2, 1, 0, 7 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | rtl8187_remove_interface_4540 | rtl8187_remove_interface | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | mxf_read_sequence_14313 | mxf_read_sequence | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 4097
br i1 %3, label LBL_6, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 4097
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_9, label LBL_2
LBL_2:
%5 = icmp eq i32 %2, 513
br i1 %5, label LBL_5, label LBL_3
LBL_3:
%6 = icmp eq i32 %2, 514
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_9, label LBL_4
LBL_4:
%8 = call i64 @FUNC(i64 %0)
store i64 %8, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%9 = add i64 %1, 8
%10 = call i64 @FUNC(i64 %0, i64 %9, i64 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i32
%13 = add i64 %1, 24
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = icmp ult i32 %12, 268435455
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_7, label LBL_9
LBL_7:
%16 = mul i64 %11, 16
%17 = and i64 %16, 68719476720
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %1, 32
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = icmp eq i64 %18, 0
%22 = icmp eq i1 %21, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_9
LBL_8:
%23 = call i64 @FUNC(i64 %0, i64 4)
%24 = load i32, i32* %14, align 4
%25 = mul i32 %24, 16
%26 = zext i32 %25 to i64
%27 = load i64, i64* %20, align 8
%28 = call i64 @FUNC(i64 %0, i64 %27, i64 %26)
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 i32 %2, { 2, 1, 0, 3 }
uselistorder i64 %0, { 2, 3, 4, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 7, 4, 3, 2, 1 }
uselistorder i64 (i64, i64, i64)* @avio_read, { 1, 0 }
uselistorder i32 4097, { 1, 0 }
uselistorder label LBL_9, { 4, 5, 6, 3, 2, 1, 0 }
} | 1 |
BinRealVul | ieee80211_tx_h_encrypt_10066 | ieee80211_tx_h_encrypt | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_11
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 4
br i1 %4, label LBL_9, label LBL_2
LBL_2:
%5 = icmp sgt i32 %3, 4
br i1 %5, label LBL_10, label LBL_3
LBL_3:
%6 = icmp eq i32 %3, 3
br i1 %6, label LBL_8, label LBL_4
LBL_4:
%7 = icmp sgt i32 %3, 1
br i1 %7, label LBL_7, label LBL_5
LBL_5:
%8 = icmp slt i32 %3, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_6, label LBL_10
LBL_6:
%10 = call i64 @FUNC(i64 %2)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%11 = call i64 @FUNC(i64 %2)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%12 = call i64 @FUNC(i64 %2)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%13 = call i64 @FUNC(i64 %2)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%14 = call i64 @FUNC(i64 %2)
store i64 %14, 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 i32 %3, { 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 4, 5, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 3, 4, 5, 0 }
} | 0 |
BinRealVul | ff_alloc_entries_16634 | ff_alloc_entries | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge56.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %4, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
store i32 %13, i32* %10, align 4
%14 = ashr exact i64 %sext, 32
%15 = call i64 @FUNC(i64 %14, i64 4)
%16 = add i64 %9, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = icmp eq i64 %15, 0
%19 = icmp eq i1 %18, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %19, label LBL_2, label LBL_4
LBL_2:
%20 = trunc i64 %arg2 to i32
%21 = add i64 %9, 16
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = load i32, i32* %10, align 4
%24 = sext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24, i64 40)
%26 = add i64 %9, 24
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
%28 = load i32, i32* %10, align 4
%29 = sext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29, i64 48)
%31 = add i64 %9, 32
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = load i32, i32* %10, align 4
%34 = icmp eq i32 %33, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge56.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %34, label LBL_4, label LBL_3
LBL_3:
%storemerge56.reload = load i32, i32* %storemerge56.reg2mem
%.reload = load i64, i64* %.reg2mem
%35 = load i64, i64* %27, align 8
%36 = mul nsw i64 %.reload, 40
%37 = add i64 %35, %36
%38 = inttoptr i64 %37 to i64*
%39 = call i32 @pthread_mutex_init(i64* %38, i64* null)
%40 = load i64, i64* %32, align 8
%41 = mul nsw i64 %.reload, 48
%42 = add i64 %40, %41
%43 = inttoptr i64 %42 to i64*
%44 = call i32 @pthread_cond_init(i64* %43, i64* null)
%45 = add i32 %storemerge56.reload, 1
%46 = load i32, i32* %10, align 4
%47 = zext i32 %46 to i64
%48 = sext i32 %45 to i64
%49 = icmp slt i64 %48, %47
store i64 %48, i64* %.reg2mem
store i32 %45, i32* %storemerge56.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %49, label LBL_3, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %10, { 1, 0, 2, 3, 4 }
uselistorder i64 %9, { 0, 1, 2, 4, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge56.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64 (i64, i64)* @av_malloc_array, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_4, { 0, 1, 3, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | aio_setup_single_vector_6207 | aio_setup_single_vector | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = and i64 %arg1, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 %1, i64 %0, i32 %4)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%sext = mul i64 %6, 4294967296
%10 = ashr exact i64 %sext, 32
store i64 %10, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = add i64 %0, 24
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %11 to i64*
store i64 %16, i64* %17, align 8
%18 = load i64, i64* %13, align 8
%sext1 = mul i64 %6, 4294967296
%19 = ashr exact i64 %sext1, 32
%20 = add i64 %18, 8
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
%22 = add i64 %0, 40
%23 = inttoptr i64 %22 to i32*
store i32 1, i32* %23, align 4
%24 = add i64 %0, 44
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 0, 1, 2, 4, 3, 5, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | afs_deliver_cb_tell_me_about_yourself_3948 | afs_deliver_cb_tell_me_about_yourself | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %2, 4294967295
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = bitcast i64* %arg1 to i32*
store i32 1, i32* %7, align 4
%8 = call i64 @FUNC(i64 %0)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | pv_map_ldt_shadow_page_11960 | pv_map_ldt_shadow_page | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = load i64, i64* @gv_0, align 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %6, %arg1
%8 = call i64 @FUNC()
%9 = urem i64 %8, 256
%10 = call i64 @FUNC(i64 %9)
%11 = urem i64 %10, 256
%12 = call i64 @FUNC(i64 %11)
%13 = udiv i32 %0, 8
%14 = add i64 %1, 16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp ule i32 %13, %16
%18 = zext i1 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC(i64 %3)
%sext3 = mul i64 %7, 4294967296
%21 = ashr exact i64 %sext3, 32
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 %22)
%24 = urem i64 %23, 2
%25 = icmp eq i64 %24, 0
%26 = zext i1 %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i8
%29 = icmp eq i8 %28, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_1, label LBL_5
LBL_1:
%30 = call i64 @FUNC(i64 %22)
%31 = call i64 @FUNC(i64 %3, i64 %30, i64 0, i64 0)
%32 = icmp eq i64 %31, 0
%33 = zext i1 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = trunc i64 %34 to i8
%36 = icmp eq i8 %35, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_2, label LBL_5
LBL_2:
%37 = call i64 @FUNC(i64 %31, i64 1)
%38 = urem i64 %37, 256
%39 = icmp eq i64 %38, 0
%40 = zext i1 %39 to i64
%41 = call i64 @FUNC(i64 %40)
%42 = trunc i64 %41 to i8
%43 = icmp eq i8 %42, 0
br i1 %43, label LBL_4, label LBL_3
LBL_3:
%44 = call i64 @FUNC(i64 %31)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%45 = call i64 @FUNC(i64 %1)
%46 = udiv i64 %arg1, 512
%47 = and i64 %46, 8388600
%48 = add i64 %45, %47
%49 = call i64 @FUNC(i64 %22, i64 2)
%50 = call i64 @FUNC(i64 %48, i64 %22)
store i64 1, 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 %22, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 1, { 0, 5, 1, 2, 3, 4 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 (i64)* @unlikely, { 3, 2, 1, 0 }
uselistorder label LBL_5, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | free_tree_18900 | free_tree | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
store i64 %3, i64* %.reg2mem
store i64 0, i64* %storemerge1.reg2mem
store i64 %3, i64* %.lcssa.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%4 = mul i64 %storemerge1.reload, 32
%5 = add i64 %4, %.reload
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
call void @free(i64* %8)
%9 = load i64, i64* %2, align 8
%10 = or i64 %4, 8
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = load i64, i64* %2, align 8
%16 = or i64 %4, 16
%17 = add i64 %15, %16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = load i64, i64* %2, align 8
%22 = or i64 %4, 24
%23 = add i64 %21, %22
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
call void @free(i64* %26)
%27 = add nuw i64 %storemerge1.reload, 1
%28 = icmp ult i64 %27, %25
%29 = load i64, i64* %2, align 8
store i64 %29, i64* %.reg2mem
store i64 %27, i64* %storemerge1.reg2mem
store i64 %29, i64* %.lcssa.reg2mem
br i1 %28, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%30 = inttoptr i64 %.lcssa.reload to i64*
call void @free(i64* %30)
%31 = inttoptr i64 %arg1 to i64*
call void @free(i64* %31)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %4, { 2, 1, 0, 3 }
uselistorder i64* %2, { 4, 1, 2, 3, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder void (i64*)* @free, { 5, 2, 3, 4, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | region_count_8238 | region_count | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.11.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = call i64 @FUNC(i64 %1)
store i64 %1, i64* %.reg2mem
store i64 %0, i64* %storemerge2.reg2mem
store i64 0, i64* %sv_0.11.reg2mem
br label LBL_1
LBL_1:
%sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%3 = add i64 %storemerge2.reload, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp sgt i64 %5, %arg2
store i64 %sv_0.11.reload, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_4
LBL_2:
%7 = inttoptr i64 %storemerge2.reload to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp slt i64 %8, %arg3
store i64 %sv_0.11.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %9, label LBL_3, label LBL_5
LBL_3:
%10 = call i64 @FUNC(i64 %8, i64 %arg2)
%11 = load i64, i64* %4, align 8
%12 = call i64 @FUNC(i64 %11, i64 %arg3)
%13 = sub i64 %sv_0.11.reload, %10
%14 = add i64 %13, %12
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%15 = inttoptr i64 %.reload to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %16, -16
%18 = icmp eq i64 %16, %0
%19 = icmp eq i1 %18, false
store i64 %16, i64* %.reg2mem
store i64 %17, i64* %storemerge2.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.11.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%20 = call i64 @FUNC(i64 %1)
ret i64 %sv_0.1.lcssa.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %sv_0.11.reload, { 2, 0, 1 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.11.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | eaptls_authenticate_4337 | eaptls_authenticate | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, 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 %0, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_1:
%9 = icmp eq i32 %6, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i32
%13 = icmp ne i32 %12, 2
%. = zext i1 %13 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%14 = and i64 %5, 4294967295
%15 = call i64 @FUNC(i64 %4, i64 %14)
store i64 %15, i64* %sv_0, align 8
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_5
LBL_4:
%18 = call i64 @FUNC(i64 %15, i64 %14, i64 %0)
%19 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 1, 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, 0, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_5, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | qdev_prop_register_global_2667 | qdev_prop_register_global | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %2, i64* @gv_0, align 8
ret i64 %2
uselistorder i64 %2, { 1, 0 }
} | 0 |
reposvul_c_test | dex_resolve_library_301 | dex_resolve_library | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp ne i64 %arg1, 0
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 76
%or.cond = icmp eq i1 %2, %4
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%5 = add i64 %arg1, 1
%6 = inttoptr i64 %5 to i8*
%7 = call i8* @strdup(i8* %6)
%8 = ptrtoint i8* %7 to i64
%9 = call i64 @FUNC(i64 %8, i64 47, i64 46, i64 1)
%10 = call i32 @strlen(i8* %7)
%11 = sext i32 %10 to i64
%12 = add i64 %8, -1
%13 = add i64 %12, %11
%14 = inttoptr i64 %13 to i8*
store i8 0, i8* %14, align 1
store i64 %8, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | set_quantization_table_6639 | set_quantization_table | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.3.reg2mem = alloca i64
%.reg2mem = alloca i16
%indvars.iv.reg2mem = alloca i64
%indvars.iv37.reg2mem = alloca i64
%indvars.iv34.reg2mem = alloca i64
%indvars.iv40.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 26
store i64 0, i64* %indvars.iv40.reg2mem
br label LBL_1
LBL_1:
%indvars.iv40.reload = load i64, i64* %indvars.iv40.reg2mem
%factor28 = mul i64 %indvars.iv40.reload, 2
%2 = add i64 %factor28, ptrtoint (i64* @gv_0 to i64)
%3 = inttoptr i64 %2 to i16*
%4 = load i16, i16* %3, align 2
%5 = zext i16 %4 to i64
%6 = mul i64 %5, 2
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = add nuw nsw i64 %indvars.iv40.reload, %1
%factor29 = mul i64 %10, 2
%11 = add i64 %factor29, ptrtoint (i64* @gv_1 to i64)
%12 = inttoptr i64 %11 to i16*
store i16 %9, i16* %12, align 2
%indvars.iv.next41 = add nuw nsw i64 %indvars.iv40.reload, 1
%exitcond42 = icmp eq i64 %indvars.iv.next41, 64
store i64 %indvars.iv.next41, i64* %indvars.iv40.reg2mem
br i1 %exitcond42, label LBL_2, label LBL_1
LBL_2:
%13 = and i64 %arg1, 4294967295
store i64 0, i64* %indvars.iv37.reg2mem
br label LBL_5
LBL_3:
%indvars.iv34.reload = load i64, i64* %indvars.iv34.reg2mem
%14 = add nuw nsw i64 %indvars.iv34.reload, %54
%factor23 = mul i64 %14, 2
%15 = add i64 %factor23, ptrtoint (i64* @gv_2 to i64)
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = add nuw nsw i64 %indvars.iv34.reload, %1
%factor24 = mul i64 %18, 2
%19 = add i64 %factor24, ptrtoint (i64* @gv_1 to i64)
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = call i64 @FUNC(i64 %13)
%23 = mul i64 %14, 4
%24 = add i64 %22, %23
%25 = zext i16 %17 to i32
%26 = zext i16 %21 to i32
%27 = mul nuw i32 %26, %25
%28 = inttoptr i64 %24 to i32*
store i32 %27, i32* %28, align 4
%29 = mul i64 %indvars.iv34.reload, 8
%factor25 = mul i64 %indvars.iv34.reload, 16
%30 = add i64 %factor25, ptrtoint (i64* @gv_3 to i64)
%31 = inttoptr i64 %30 to i16*
%32 = load i16, i16* %31, align 8
%33 = add nuw nsw i64 %55, %29
%factor26 = mul i64 %33, 2
%34 = add i64 %factor26, ptrtoint (i64* @gv_1 to i64)
%35 = inttoptr i64 %34 to i16*
%36 = load i16, i16* %35, align 2
%37 = call i64 @FUNC(i64 %13)
%38 = add i64 %37, %23
%39 = zext i16 %32 to i32
%40 = zext i16 %36 to i32
%41 = mul nuw i32 %40, %39
%42 = inttoptr i64 %38 to i32*
store i32 %41, i32* %42, align 4
%43 = load i16, i16* %31, align 8
%44 = add nuw nsw i64 %14, %1
%factor27 = mul i64 %44, 2
%45 = add i64 %factor27, ptrtoint (i64* @gv_1 to i64)
%46 = inttoptr i64 %45 to i16*
%47 = load i16, i16* %46, align 2
%48 = call i64 @FUNC(i64 %13)
%49 = add i64 %48, %23
%50 = zext i16 %43 to i32
%51 = zext i16 %47 to i32
%52 = mul nuw i32 %51, %50
%53 = inttoptr i64 %49 to i32*
store i32 %52, i32* %53, align 4
%indvars.iv.next35 = add nuw nsw i64 %indvars.iv34.reload, 1
%exitcond36 = icmp eq i64 %indvars.iv.next35, 8
store i64 %indvars.iv.next35, i64* %indvars.iv34.reg2mem
br i1 %exitcond36, label LBL_4, label LBL_3
LBL_4:
%indvars.iv.next38 = add nuw nsw i64 %indvars.iv37.reload, 1
%exitcond39 = icmp eq i64 %indvars.iv.next38, 8
store i64 %indvars.iv.next38, i64* %indvars.iv37.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond39, label LBL_6, label LBL_5
LBL_5:
%indvars.iv37.reload = load i64, i64* %indvars.iv37.reg2mem
%54 = mul i64 %indvars.iv37.reload, 8
%55 = add nuw nsw i64 %indvars.iv37.reload, %1
store i64 0, i64* %indvars.iv34.reg2mem
br label LBL_3
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%factor = mul i64 %indvars.iv.reload, 2
%56 = add i64 %factor, ptrtoint (i64* @gv_4 to i64)
%57 = inttoptr i64 %56 to i16*
%58 = load i16, i16* %57, align 2
%59 = add nuw nsw i64 %indvars.iv.reload, %1
%factor19 = mul i64 %59, 2
%60 = add i64 %factor19, ptrtoint (i64* @gv_1 to i64)
%61 = inttoptr i64 %60 to i16*
%62 = load i16, i16* %61, align 2
%63 = add i16 %58, -1
%64 = add i16 %63, %62
%65 = add i64 %factor19, ptrtoint (i64* @gv_5 to i64)
%66 = inttoptr i64 %65 to i16*
store i16 %64, i16* %66, align 2
%67 = load i16, i16* %61, align 2
%68 = icmp eq i16 %67, 0
store i16 %64, i16* %.reg2mem
br i1 %68, label LBL_8, label LBL_7
LBL_7:
%69 = udiv i16 %64, %67
store i16 %69, i16* %66, align 2
store i16 %69, i16* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i16, i16* %.reg2mem
%70 = zext i16 %.reload to i64
%71 = call i64 @FUNC(i64 %70)
%72 = trunc i64 %71 to i8
%73 = urem i64 %71, 256
%74 = trunc i64 %73 to i16
%75 = add i64 %factor19, ptrtoint (i64* @gv_6 to i64)
%76 = inttoptr i64 %75 to i16*
store i16 %74, i16* %76, align 2
%77 = icmp ult i8 %72, 11
store i64 %73, i64* %rax.3.reg2mem
br i1 %77, label LBL_10, label LBL_9
LBL_9:
%78 = trunc i64 %71 to i16
%79 = urem i16 %78, 256
%80 = add nsw i16 %79, -10
%81 = add i64 %factor19, ptrtoint (i64* @gv_7 to i64)
%82 = inttoptr i64 %81 to i16*
store i16 %80, i16* %82, align 2
store i64 %59, i64* %rax.3.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_6
LBL_11:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i64 %71, { 1, 0, 2 }
uselistorder i16 %64, { 1, 0, 2 }
uselistorder i64 %factor19, { 3, 2, 1, 0 }
uselistorder i64 %indvars.iv37.reload, { 1, 2, 0 }
uselistorder i64 %23, { 2, 1, 0 }
uselistorder i64 %14, { 2, 0, 1 }
uselistorder i64 %indvars.iv34.reload, { 0, 4, 3, 2, 1 }
uselistorder i64 %1, { 0, 2, 1, 3, 4 }
uselistorder i64* %indvars.iv40.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv34.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i16* %.reg2mem, { 0, 2, 1 }
uselistorder i16 0, { 1, 0 }
uselistorder i64 8, { 0, 2, 3, 1 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 1, { 3, 1, 2, 0 }
uselistorder i64 ptrtoint (i64* @gv_1 to i64), { 4, 1, 2, 3, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | gic_cpu_write_14560 | gic_cpu_write | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = trunc i64 %arg3 to i32
%sext5 = mul i64 %arg4, 4294967296
%6 = ashr exact i64 %sext5, 32
%7 = icmp eq i32 %5, 16
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%sext4 = mul i64 %arg3, 4294967296
%8 = ashr exact i64 %sext4, 32
%9 = trunc i64 %8 to i32
%10 = icmp sgt i32 %9, 16
br i1 %10, label LBL_8, label LBL_2
LBL_2:
%11 = icmp eq i32 %9, 8
br i1 %11, label LBL_9, label LBL_3
LBL_3:
%12 = icmp sgt i32 %9, 8
br i1 %12, label LBL_8, label LBL_4
LBL_4:
switch i32 %9, label LBL_8 [
i32 0, label LBL_5
i32 4, label LBL_6
]
LBL_5:
%13 = urem i64 %6, 2
%14 = trunc i64 %13 to i32
%15 = ashr exact i64 %sext, 30
%16 = add i64 %15, %3
%17 = inttoptr i64 %16 to i32*
store i32 %14, i32* %17, align 4
%18 = icmp eq i64* %arg1, null
%19 = and i64 %4, 4294967295
%20 = select i1 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)
%21 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %19, i8* %20, i64 %13, i64 %2, i64 %1)
br label LBL_9
LBL_6:
%22 = trunc i64 %6 to i32
%23 = urem i32 %22, 256
%24 = ashr exact i64 %sext, 30
%25 = add i64 %3, 16
%26 = add i64 %25, %24
%27 = inttoptr i64 %26 to i32*
store i32 %23, i32* %27, align 4
br label LBL_9
LBL_7:
%28 = urem i64 %6, 1024
%29 = and i64 %4, 4294967295
%30 = call i64 @FUNC(i64 %3, i64 %29, i64 %28)
store i64 %30, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%31 = and i64 %8, 4294967295
%32 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0), i64 %31, i64 %arg3, i64 %arg4, i64 %2, i64 %1)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%33 = call i64 @FUNC(i64 %3)
store i64 %33, 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 i64 %13, { 1, 0 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %sext, { 1, 2, 0 }
uselistorder i64 %3, { 2, 3, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i64 30, { 1, 0 }
uselistorder i32 8, { 1, 0, 2, 3 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder i64 4294967296, { 1, 0, 2 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 2, 0 }
} | 1 |
BinRealVul | update_curr_10046 | update_curr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64* %arg1, null
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = sub i64 %3, %5
%11 = call i64 @FUNC(i64 %0, i64 %0, i64 %10)
store i64 %3, i64* %arg1, align 8
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %0)
%16 = call i64 @FUNC(i64 %15, i64 %10)
store i64 %16, 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 }
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | save_pid_10343 | save_pid | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
br i1 %0, label LBL_5, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg2 to i8*
%2 = call %_IO_FILE* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%3 = icmp eq %_IO_FILE* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i8* %1)
%7 = sext i32 %6 to i64
store i64 %7, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%8 = trunc i64 %arg1 to i32
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i32 %8)
%10 = call i32 @fclose(%_IO_FILE* %2)
%11 = sext i32 %10 to i64
%12 = icmp eq i32 %10, -1
%13 = icmp eq i1 %12, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%15 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i8* %1)
%16 = sext i32 %15 to i64
store i64 %16, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder %_IO_FILE* %2, { 1, 0, 2 }
uselistorder i8* %1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | qlafx00_soc_cpu_reset_18485 | qlafx00_soc_cpu_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge7.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
store i32 10, i32* %storemerge7.reg2mem
br label LBL_1
LBL_1:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%2 = call i64 @FUNC(i64 1000)
%3 = call i64 @FUNC()
%4 = add nsw i32 %storemerge7.reload, -1
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i32 %4, i32* %storemerge7.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %7
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | bcm_rx_handler_12654 | bcm_rx_handler | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %2, 56
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %1 to i32
%6 = trunc i64 %3 to i32
%7 = and i64 %3, 4294967295
%8 = icmp eq i32 %5, %6
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_13, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg1 to i64
%11 = add i64 %10, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %10, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %2, 8
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i64*
store i64 %13, i64* %20, align 8
%21 = add i64 %10, 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 = add i64 %2, 24
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = add i64 %2, 28
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, 1
store i32 %31, i32* %29, align 4
%32 = add i64 %2, 32
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = urem i32 %34, 2
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_3, label LBL_2
LBL_2:
%37 = call i64 @FUNC(i64 %2)
store i64 %37, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%38 = and i32 %34, 2
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_5, label LBL_4
LBL_4:
%40 = add i64 %2, 40
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %2, i64 %42, i64 %10)
br label LBL_12
LBL_5:
%44 = add i64 %2, 36
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 1
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_7, label LBL_6
LBL_6:
%49 = call i64 @FUNC(i64 %2, i64 0, i64 %10)
br label LBL_12
LBL_7:
%50 = icmp slt i32 %46, 2
br i1 %50, label LBL_12, label LBL_8
LBL_8:
%51 = add i64 %2, 48
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = zext i32 %46 to i64
store i64 1, i64* %.reg2mem
store i32 1, i32* %storemerge2.reg2mem
br label LBL_9
LBL_9:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%57 = add i64 %.reload, %53
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = xor i64 %59, %3
%61 = and i64 %60, %55
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_11, label LBL_10
LBL_10:
%64 = zext i32 %storemerge2.reload to i64
%65 = call i64 @FUNC(i64 %2, i64 %64, i64 %10)
br label LBL_12
LBL_11:
%66 = add i32 %storemerge2.reload, 1
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %67, %56
store i64 %67, i64* %.reg2mem
store i32 %66, i32* %storemerge2.reg2mem
br i1 %68, label LBL_9, label LBL_12
LBL_12:
%69 = call i64 @FUNC(i64 %2)
store i64 %69, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %10, { 2, 1, 0, 3, 4, 5 }
uselistorder i64 %2, { 2, 1, 0, 8, 7, 6, 5, 4, 3, 9, 10, 11, 12, 13 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64, i64)* @bcm_rx_cmp_to_index, { 1, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_12, { 0, 2, 1, 3, 4 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | pdf14_open_11514 | pdf14_open | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = zext i32 %5 to i64
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 118, i64 %8, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %9)
store i32 0, i32* %sv_0, align 4
%12 = add i64 %2, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 1
%16 = icmp eq i1 %15, false
%17 = zext i1 %16 to i64
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = call i64 @FUNC(i32* nonnull %sv_0, i32 %20, i64 %17, i64 %2)
%22 = bitcast i32* %arg1 to i64*
store i64 %21, i64* %22, align 8
store i32 1, i32* %19, align 4
ret i64 0
} | 1 |
BinRealVul | visit_type_size_15560 | visit_type_size | define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = icmp eq i64* %arg4, null
store i64 %5, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_4
LBL_2:
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_4
LBL_3:
%11 = ptrtoint i64* %arg2 to i64
store i64 %11, i64* %arg2, align 8
store i64 %11, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1, 3 }
} | 1 |
BinRealVul | atalk_getname_11708 | atalk_getname | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2, i64 1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %2)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_6
LBL_2:
%11 = bitcast i64* %arg3 to i32*
store i32 8, i32* %11, align 4
%12 = trunc i64 %arg4 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = trunc i64 %1 to i32
%15 = icmp eq i32 %14, 1
store i64 %3, i64* %storemerge.in.in.reg2mem
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_6
LBL_4:
%16 = add i64 %3, 6
store i64 %16, i64* %storemerge.in.in.reg2mem
br label LBL_5
LBL_5:
%storemerge.in.in.reload = load i64, i64* %storemerge.in.in.reg2mem
%storemerge.in = inttoptr i64 %storemerge.in.in.reload to i16*
%storemerge = load i16, i16* %storemerge.in, align 2
%17 = sext i16 %storemerge to i64
store i64 %17, i64* %arg2, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %storemerge.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | nfs_file_release_4412 | nfs_file_release | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i32* %arg2 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
br label LBL_2
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64 0)
ret i64 %9
uselistorder i64 %9, { 1, 0 }
} | 0 |
BinRealVul | slirp_init_5102 | slirp_init | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i32 %arg4, i8* %arg5, i8* %arg6, i8* %arg7, i64 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC()
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %0, i32* bitcast (i64* @gv_1 to i32*), align 8
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
%5 = call i64 @FUNC()
store i32 %1, i32* bitcast (i64* @gv_2 to i32*), align 8
store i32 %arg3, i32* bitcast (i64* @gv_3 to i32*), align 8
store i32 %arg4, i32* bitcast (i64* @gv_4 to i32*), align 8
%6 = icmp eq i8* %arg5, null
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = load i64, i64* @gv_5, align 8
%8 = ptrtoint i8* %arg5 to i64
%9 = call i64 @FUNC(i64 %7, i64 8, i64 %8)
br label LBL_2
LBL_2:
%10 = load i64, i64* @gv_6, align 8
%11 = call i64 @FUNC(i64 %10)
store i64 0, i64* @gv_6, align 8
%12 = icmp eq i8* %arg6, null
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = ptrtoint i8* %arg6 to i64
%14 = call i64 @FUNC(i64 %13)
store i64 %14, i64* @gv_6, align 8
br label LBL_4
LBL_4:
%15 = load i64, i64* @gv_7, align 8
%16 = call i64 @FUNC(i64 %15)
store i64 0, i64* @gv_7, align 8
%17 = icmp eq i8* %arg7, null
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = ptrtoint i8* %arg7 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* @gv_7, align 8
br label LBL_6
LBL_6:
%20 = trunc i64 %arg8 to i32
store i32 %20, i32* bitcast (i64* @gv_8 to i32*), align 8
%21 = trunc i64 %arg9 to i32
store i32 %21, i32* bitcast (i64* @gv_9 to i32*), align 8
%22 = load i64, i64* @gv_10, align 8
%23 = load i64, i64* @gv_11, align 8
%24 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_12, i64 0, i64 0), i64 0, i64 1, i64 %23, i64 %22, i64 0)
ret i64 %24
uselistorder i64 (i64)* @qemu_strdup, { 1, 0 }
uselistorder i64 (i64)* @qemu_free, { 1, 0 }
uselistorder i32 1, { 6, 4, 5, 3, 2, 1, 0 }
uselistorder i8* %arg7, { 1, 0 }
uselistorder i8* %arg6, { 1, 0 }
} | 0 |
BinRealVul | vcpu_init_fpu_12231 | vcpu_init_fpu | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %storemerge.in.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = icmp eq i64* %arg1, null
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%5 = add i64 %0, 4
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = load i32, i32* @gv_0, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = load i32, i32* inttoptr (i64 4210752 to i32*), align 64
%12 = icmp eq i32 %11, 0
store i64 %1, i64* %storemerge.in.reg2mem
br i1 %12, label LBL_6, label LBL_4
LBL_4:
%13 = bitcast i64* %arg1 to i32*
store i32 1, i32* %13, align 4
store i64 %1, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_5:
%14 = call i64 @FUNC(i64 0, i64 16)
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = icmp eq i64 %14, 0
%18 = icmp eq i1 %17, false
%spec.select = select i1 %18, i64 %1, i64 4294967284
store i64 %spec.select, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_6:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %1, { 3, 1, 0, 2, 4 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder label LBL_6, { 0, 2, 1, 3 }
} | 1 |
BinRealVul | drbg_generate_long_18347 | drbg_generate_long | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg3 to i32
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%4 = sub i32 %3, %sv_0.0.reload
%5 = call i64 @FUNC(i64 %2)
%6 = zext i32 %4 to i64
%.rhs.trunc = trunc i64 %5 to i32
%7 = icmp ult i32 %4, %.rhs.trunc
store i64 %6, i64* %storemerge2.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %2)
store i64 %8, i64* %storemerge2.reg2mem
br label LBL_3
LBL_3:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%9 = trunc i64 %storemerge2.reload to i32
%10 = sext i32 %sv_0.0.reload to i64
%11 = add i64 %10, %1
%12 = call i64 @FUNC(i64 %2, i64 %11, i32 %9, i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp slt i32 %13, 0
%16 = icmp eq i1 %15, false
%17 = icmp eq i1 %14, false
%18 = icmp eq i1 %16, %17
store i32 %13, i32* %storemerge.in.reg2mem
br i1 %18, label LBL_4, label LBL_5
LBL_4:
%19 = add i32 %sv_0.0.reload, %13
%20 = icmp eq i1 %7, false
store i32 %19, i32* %sv_0.0.reg2mem
store i32 %19, i32* %storemerge.in.reg2mem
br i1 %20, label LBL_1, label LBL_5
LBL_5:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i32 %13, { 1, 0, 3, 2 }
uselistorder i1 %7, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64 (i64)* @drbg_max_request_bytes, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | __anon_vma_prepare_5985 | __anon_vma_prepare | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32*
%0 = call i64 @FUNC()
%1 = call i64 @FUNC(i64 0)
%2 = icmp eq i64 %1, 0
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %2, label LBL_11, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %4 to i32*
%6 = icmp eq i64 %4, 0
%7 = icmp eq i1 %6, false
store i32* %5, i32** %sv_2.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = call i64 @FUNC()
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_10, label LBL_3
LBL_3:
%12 = inttoptr i64 %8 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i32 %13, 1
store i32 %14, i32* %12, align 4
store i32* %12, i32** %sv_2.0.reg2mem
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_2.0.reload = load i32*, i32** %sv_2.0.reg2mem
%15 = ptrtoint i32* %sv_2.0.reload to i64
%16 = call i64 @FUNC(i64 %15)
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %3, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %1, i64* %sv_1.0.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %22, label LBL_6, label LBL_5
LBL_5:
store i64 %15, i64* %19, align 8
%23 = call i64 @FUNC(i64 %3, i64 %1, i64 %15)
%24 = add i64 %15, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i32 %26, 1
store i32 %27, i32* %25, align 4
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%28 = call i64 @FUNC(i64 %3)
%29 = call i64 @FUNC(i64 %15)
%30 = icmp eq i64 %sv_0.1.reload, 0
%31 = icmp eq i1 %30, false
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %sv_0.1.reload)
br label LBL_8
LBL_8:
%34 = icmp eq i64 %sv_1.0.reload, 0
%35 = icmp eq i1 %34, false
%36 = icmp eq i1 %35, false
store i64 0, i64* %storemerge.reg2mem
br i1 %36, label LBL_11, label LBL_9
LBL_9:
%37 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 0, i64* %storemerge.reg2mem
br label LBL_11
LBL_10:
%38 = call i64 @FUNC(i64 %1)
store i64 4294967284, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %15, { 3, 1, 0, 2, 4 }
uselistorder i32* %12, { 0, 2, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2, 3, 4 }
uselistorder i64 %1, { 1, 2, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i64 (i64)* @anon_vma_chain_free, { 1, 0 }
uselistorder i1 false, { 0, 4, 1, 5, 2, 6, 3, 7 }
uselistorder label LBL_11, { 0, 3, 2, 1 }
} | 0 |
BinRealVul | pcspk_class_initfn_2264 | pcspk_class_initfn | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = or i64 %3, 2
store i64 %4, i64* %2, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i8*
store i8 1, i8* %6, align 1
%7 = load i64, i64* @gv_0, align 8
%8 = add i64 %0, 24
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | static_route_alloc_5003 | static_route_alloc | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 1, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ib_prctl_set_5742 | ib_prctl_set | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 4294967294, i64* %rax.0.reg2mem
switch i64 %arg2, label LBL_1 [
i64 1, label LBL_2
i64 0, label LBL_12
]
LBL_1:
%1 = or i64 %arg2, 1
%2 = icmp eq i64 %1, 3
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %2, label LBL_7, label LBL_12
LBL_2:
%3 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_12
LBL_4:
%9 = icmp eq i32 %3, 1
%10 = load i32, i32* @gv_1, align 4
%11 = add i32 %10, -1
%12 = icmp ult i32 %11, 2
%13 = or i1 %9, %12
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_12, label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_6, label LBL_12
LBL_6:
%17 = call i64 @FUNC(i64 %0)
%18 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%19 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%.pre = load i32, i32* @gv_1, align 4
%20 = or i32 %.pre, %19
%21 = icmp eq i32 %20, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_12, label LBL_8
LBL_8:
%22 = icmp ne i32 %19, 1
%23 = icmp ne i32 %.pre, 1
%or.cond5.not = icmp eq i1 %22, %23
%24 = icmp eq i32 %.pre, 2
%25 = icmp eq i1 %24, false
%or.cond = icmp eq i1 %or.cond5.not, %25
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_12
LBL_9:
%26 = call i64 @FUNC(i64 %0)
%27 = icmp eq i64 %arg2, 3
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = call i64 @FUNC(i64 %0)
br label LBL_11
LBL_11:
%30 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.pre, { 1, 2, 0 }
uselistorder i32 %19, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 4, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 6, 1, 2, 8, 7, 9, 4, 5 }
uselistorder i64 (i64)* @task_update_spec_tif, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 0, { 0, 2, 3, 4, 1 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder label LBL_12, { 2, 5, 0, 1, 7, 6, 8, 3, 4 }
} | 0 |
BinRealVul | btf_dump__free_12053 | btf_dump__free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem5 = alloca i64*
%.pre2.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%.pre23.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 %2, i64* %rax.0.reg2mem
br i1 %5, label LBL_8, label LBL_1
LBL_1:
%6 = add i64 %arg1, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
call void @free(i64* %9)
%10 = add i64 %arg1, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
store i64* null, i64** %.reg2mem5
br i1 %13, label LBL_7, label LBL_2
LBL_2:
%14 = and i64 %1, 4294967295
store i64 %12, i64* %.pre23.reg2mem
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%.pre23.reload = load i64, i64* %.pre23.reg2mem
%15 = mul i64 %.reload, 8
%16 = add i64 %15, %.pre23.reload
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i64 %.pre23.reload, i64* %.pre2.reg2mem
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = inttoptr i64 %18 to i64*
call void @free(i64* %20)
%.pre2.pre = load i64, i64* %11, align 8
store i64 %.pre2.pre, i64* %.pre2.reg2mem
br label LBL_5
LBL_5:
%.pre2.reload = load i64, i64* %.pre2.reg2mem
%21 = add i32 %storemerge1.reload, 1
%22 = sext i32 %21 to i64
%23 = icmp slt i64 %14, %22
store i64 %.pre2.reload, i64* %.pre23.reg2mem
store i64 %22, i64* %.reg2mem
store i32 %21, i32* %storemerge1.reg2mem
br i1 %23, label LBL_6, label LBL_3
LBL_6:
%phitmp = inttoptr i64 %.pre2.reload to i64*
store i64* %phitmp, i64** %.reg2mem5
br label LBL_7
LBL_7:
%.reload6 = load i64*, i64** %.reg2mem5
call void @free(i64* %.reload6)
%24 = add i64 %arg1, 24
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i64*
call void @free(i64* %27)
%28 = add i64 %arg1, 32
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i64*
call void @free(i64* %31)
%32 = add i64 %arg1, 40
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i64 %arg1, 48
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = inttoptr i64 %arg1 to i64*
call void @free(i64* %40)
store i64 ptrtoint (i32* @0 to i64), 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* %.pre23.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre2.reg2mem, { 0, 2, 1 }
uselistorder i64** %.reg2mem5, { 0, 2, 1 }
uselistorder i64 (i64)* @hashmap__free, { 1, 0 }
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 5, 0 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 3, 2, 4, 6, 5, 7 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | gen_outs_2347 | gen_outs | 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 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %3, 2
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = load i32, i32* @gv_0, align 4
%11 = load i32, i32* @gv_1, align 4
%12 = trunc i64 %7 to i32
%13 = call i64 @FUNC(i64 %8, i32 %12, i32 %11, i32 %10)
%14 = load i32, i32* @gv_2, align 4
%15 = load i32, i32* @gv_3, align 4
%16 = zext i32 %14 to i64
%17 = zext i32 %15 to i64
%18 = call i64 @FUNC(i64 %17, i64 %16)
%19 = load i32, i32* @gv_3, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20, i64 %20, i64 65535)
%22 = load i32, i32* @gv_1, align 4
%23 = load i32, i32* @gv_4, align 4
%24 = zext i32 %22 to i64
%25 = zext i32 %23 to i64
%26 = call i64 @FUNC(i64 %25, i64 %24)
%27 = load i32, i32* @gv_4, align 4
%28 = load i32, i32* @gv_3, align 4
%29 = zext i32 %28 to i64
%30 = and i64 %7, 4294967295
%31 = call i64 @FUNC(i64 %30, i64 %29, i32 %27)
%32 = call i64 @FUNC(i64 %30)
%33 = add i64 %8, 4
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36, i64 3)
%38 = load i32, i32* @gv_3, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %8, i64 %39, i32 %12)
%41 = call i64 @FUNC(i64 %2)
%42 = urem i64 %41, 2
%43 = icmp eq i64 %42, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %43, label LBL_4, label LBL_3
LBL_3:
%44 = call i64 @FUNC()
store i64 %44, 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 %20, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* @gv_4, { 1, 0 }
uselistorder i64 (i64, i64)* @tcg_gen_trunc_tl_i32, { 1, 0 }
uselistorder i32* @gv_3, { 3, 2, 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i64 (i64)* @tb_cflags, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
} | 0 |
BinRealVul | ebml_read_ascii_18577 | ebml_read_ascii | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%5 = call i64 @FUNC(i64 %4, i64 %3, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = bitcast i32* %sv_1 to i64*
%9 = call i64 @FUNC(i64 %4, i64* nonnull %8)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 %9, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = and i64 %sv_0.0.reload, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_9
LBL_3:
%14 = load i32, i32* %sv_1, align 4
%15 = icmp slt i32 %14, 0
store i64 %4, i64* %rdi.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = add i32 %14, 1
%17 = sext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
store i64 %18, i64* %arg3, align 8
%19 = icmp eq i64* %arg3, null
%20 = icmp eq i1 %19, false
store i64 %17, i64* %rdi.0.reg2mem
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%21 = call i64 @FUNC(i64 %rdi.0.reload, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%22 = ptrtoint i64* %arg3 to i64
%23 = call i64 @FUNC(i64 %4, i64 %22, i32 %14)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %14, %24
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64 %4)
%27 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %26, i64 %26, i64 %1)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%28 = zext i32 %14 to i64
%29 = sext i32 %14 to i64
%30 = add nsw i64 %28, %29
%31 = inttoptr i64 %30 to i8*
store i8 0, i8* %31, align 1
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 %26, { 1, 0 }
uselistorder i32 %14, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 %4, { 2, 1, 3, 0, 4, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64* %arg3, { 2, 0, 1 }
} | 1 |
BinRealVul | RegisterNULLImage_10179 | RegisterNULLImage | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%1 = inttoptr i64 %0 to i64*
store i64 4198784, i64* %1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198791, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 20
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = call i8* @strdup(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
%9 = ptrtoint i8* %8 to i64
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%13 = ptrtoint i8* %12 to i64
%14 = add i64 %0, 32
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %0)
ret i64 0
uselistorder i8* (i8*)* @strdup, { 1, 0 }
} | 0 |
BinRealVul | ext3_group_add_7641 | ext3_group_add | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = srem i32 %2, 32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%7 = ptrtoint i32* %arg1 to i64
%8 = add i64 %7, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %sv_1.0.reg2mem
br i1 %12, label LBL_3, label LBL_5
LBL_3:
%13 = call i64* @malloc(i32 0)
%14 = ptrtoint i64* %13 to i64
%15 = icmp eq i64* %13, null
%16 = icmp eq i1 %15, false
store i64 %14, i64* %sv_1.0.reg2mem
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0))
call void @free(i64* %13)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%18 = call i64* @malloc(i32 4)
%19 = icmp eq i64* %18, null
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %sv_0.2.reg2mem
br i1 %20, label LBL_6, label LBL_10
LBL_6:
%21 = call i64 @FUNC(i64 %7)
%22 = add i64 %7, 24
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, %2
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_4, i64 0, i64 0))
br label LBL_9
LBL_8:
%27 = ptrtoint i64* %arg2 to i64
%28 = add i32 %2, 31
%29 = icmp slt i32 %2, 0
%30 = select i1 %29, i32 %28, i32 %2
%31 = ashr i32 %30, 5
%32 = add i64 %7, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = sext i32 %31 to i64
%36 = mul i64 %35, 8
%37 = add i64 %34, %36
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%phitmp = inttoptr i64 %39 to i64*
%40 = load i64, i64* %phitmp, align 8
%narrow = mul nsw i32 %3, 20
%41 = sext i32 %narrow to i64
%42 = add i64 %40, %41
%43 = add i64 %27, 4
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = inttoptr i64 %42 to i32*
store i32 %45, i32* %46, align 4
%47 = add i64 %27, 8
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %42, 4
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = add i64 %27, 12
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %42, 8
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %27, 16
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = add i64 %42, 12
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = call i64 @FUNC(i64 %7)
%63 = trunc i64 %62 to i32
%64 = add i64 %42, 16
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
%66 = bitcast i64* %rdi to i32*
%67 = load i32, i32* %66, align 8
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = trunc i64 %69 to i32
%71 = add i64 %27, 20
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = add i32 %73, %70
store i32 %74, i32* %arg1, align 4
%75 = add i64 %7, 4
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = zext i32 %77 to i64
%79 = call i64 @FUNC(i64 %78)
%80 = call i64 @FUNC(i64 %7)
%81 = add i64 %80, %79
%82 = trunc i64 %81 to i32
store i32 %82, i32* %76, align 4
%83 = call i64 @FUNC()
%84 = load i32, i32* %23, align 4
%85 = add i32 %84, 1
store i32 %85, i32* %23, align 4
%86 = inttoptr i64 %32 to i32*
%87 = load i32, i32* %86, align 4
%88 = zext i32 %87 to i64
%89 = call i64 @FUNC(i64 %88)
%90 = trunc i64 %89 to i32
%91 = add i64 %27, 24
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = add i32 %93, %90
store i32 %94, i32* %86, align 4
store i32 1, i32* %arg1, align 4
br label LBL_9
LBL_9:
%95 = call i64 @FUNC(i64 %7)
store i64 0, i64* %sv_0.2.reg2mem
br label LBL_10
LBL_10:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%96 = inttoptr i64 %sv_1.0.reload to i64*
call void @free(i64* %96)
store i64 %sv_0.2.reload, 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 i32* %23, { 1, 0, 2 }
uselistorder i64 %7, { 0, 1, 2, 3, 4, 6, 5, 7 }
uselistorder i32 %3, { 1, 0 }
uselistorder i32 %2, { 4, 3, 2, 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @le32_to_cpu, { 2, 1, 0 }
uselistorder i64 (i64)* @EXT3_INODES_PER_GROUP, { 1, 0 }
uselistorder i64 8, { 1, 2, 0, 3 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | find_compressor_15750 | find_compressor | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem6 = alloca i64
%.reg2mem4 = alloca i64
%.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 1280
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %3, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 720
store i32 1, i32* %storemerge2.reg2mem
br i1 %10, label LBL_7, label LBL_2
LBL_2:
%11 = icmp eq i32 %4, 1440
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %3, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 1080
store i32 1, i32* %storemerge2.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = icmp eq i32 %4, 1920
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %3, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 1080
%23 = icmp eq i1 %22, false
store i32 1, i32* %storemerge2.reg2mem
br i1 %23, label LBL_6, label LBL_7
LBL_6:
store i32 0, i32* %storemerge2.reg2mem
br label LBL_7
LBL_7:
%24 = ptrtoint i64* %arg1 to i64
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%25 = add i64 %3, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 1
%29 = icmp eq i1 %28, false
store i32 %27, i32* %.reg2mem
store i64 %3, i64* %.reg2mem4
br i1 %29, label LBL_11, label LBL_8
LBL_8:
%30 = add i64 %3, 16
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0)
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_8.LBL_11_crit_edge, label LBL_10
LBL_9:
%.pre = load i32, i32* inttoptr (i64 8 to i32*), align 8
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %.reg2mem4
br label LBL_11
LBL_10:
%37 = inttoptr i64 %35 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %24, i64 %38, i64 32)
store i64 %39, i64* %rax.0.reg2mem
br label LBL_18
LBL_11:
%.reload = load i32, i32* %.reg2mem
%40 = zext i32 %.reload to i64
%41 = icmp eq i32 %.reload, 2
%42 = icmp eq i1 %41, false
%43 = icmp eq i32 %storemerge2.reload, 0
%or.cond = or i1 %43, %42
store i64 %40, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_18, label LBL_12
LBL_12:
%sext = mul i64 %arg2, 4294967296
%44 = ashr exact i64 %sext, 32
%.reload5 = load i64, i64* %.reg2mem4
%45 = add i64 %.reload5, 12
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %3, 16
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 0, i64 %50)
%52 = call i128 @FUNC(i64 %51)
%53 = call i32 @FUNC(i128 %52)
%54 = and i64 %44, 4294967295
%55 = trunc i64 %44 to i32
%56 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 %55, i64 %2, i64 %1)
%57 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([6 x i8]* @gv_1 to i64), i64 16) to i32*), align 4
%58 = icmp eq i32 %57, 3
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_14, label LBL_13
LBL_13:
%60 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i32 %55, i64 %2, i64 %1)
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %.reg2mem6
br label LBL_17
LBL_14:
br i1 icmp ne (i32 ptrtoint ([6 x i8]* @gv_1 to i32), i32 1440), label LBL_16, label LBL_15
LBL_15:
%61 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i32 %55, i64 %2, i64 %1)
store i64 ptrtoint ([4 x i8]* @gv_3 to i64), i64* %.reg2mem6
br label LBL_17
LBL_16:
%62 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i32 %55, i64 %2, i64 %1)
store i64 ptrtoint ([4 x i8]* @gv_4 to i64), i64* %.reg2mem6
br label LBL_17
LBL_17:
%63 = icmp eq i32 %47, 0
%64 = icmp slt i32 %47, 0
%65 = icmp eq i1 %64, false
%66 = icmp eq i1 %63, false
%67 = icmp eq i1 %65, %66
%.reload7 = load i64, i64* %.reg2mem6
%68 = icmp eq i1 %67, false
%. = select i1 %68, i64 112, i64 105
%69 = add i64 %.reload7, 4
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i32 %71, i64 %., i64 %1)
%73 = select i1 %67, i32 2, i32 1
%74 = mul i32 %73, %53
%75 = call i64 @FUNC(i64 %24, i64 %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_6, i64 0, i64 0), i32 %74, i64 %., i64 %1)
store i64 %75, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %., { 1, 0 }
uselistorder i32 %55, { 2, 1, 0, 3 }
uselistorder i64 %54, { 1, 2, 4, 3, 0, 5 }
uselistorder i32 %47, { 1, 0 }
uselistorder i64 %44, { 1, 0 }
uselistorder i64 %24, { 2, 3, 4, 5, 1, 6, 0 }
uselistorder i64 %3, { 5, 7, 0, 6, 1, 2, 3, 4 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem4, { 0, 2, 1 }
uselistorder i64* %.reg2mem6, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder [4 x i8]* @gv_4, { 1, 0 }
uselistorder [4 x i8]* @gv_3, { 1, 0 }
uselistorder [7 x i8]* @gv_2, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i32, i64, i64)* @av_strlcatf, { 5, 4, 3, 2, 1, 0 }
uselistorder [6 x i8]* @gv_1, { 0, 2, 1 }
uselistorder i32 0, { 2, 3, 1, 0 }
uselistorder i1 false, { 0, 3, 1, 2, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_7, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | convert_to_decimal_11025 | convert_to_decimal | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%sv_0.4.reg2mem = alloca i8*
%sv_0.3.reg2mem = alloca i8*
%sv_0.2.lcssa.reg2mem = alloca i8*
%sv_0.110.reg2mem = alloca i8*
%storemerge12.reg2mem = alloca i64
%sv_1.0.lcssa.off0.reg2mem = alloca i8
%sv_1.07.off0.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%storemerge39.reg2mem = alloca i64
%sv_3.013.reg2mem = alloca i64
%sv_0.215.reg2mem = alloca i8*
%sv_0.0.lcssa.reg2mem = alloca i8*
%sv_4.017.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i8*
%storemerge5.reg2mem = alloca i128
%1 = load i128, i128* %0
%2 = icmp slt i64 %arg2, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i128 @FUNC(i128 %1, i128 %1)
%4 = call i128 @FUNC(i64 %arg2)
store i128 %4, i128* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%5 = udiv i64 %arg2, 2
%6 = urem i64 %arg2, 2
%7 = or i64 %5, %6
%8 = call i128 @FUNC(i128 %1, i128 %1)
%9 = call i128 @FUNC(i64 %7)
%10 = call i128 @FUNC(i128 %9, i128 %9)
store i128 %10, i128* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%storemerge5.reload = load i128, i128* %storemerge5.reg2mem
%11 = call i128 @FUNC(i32 1074332382)
%12 = call i128 @FUNC(i128 %storemerge5.reload, i128 %11)
%13 = load i32, i32* inttoptr (i64 4202516 to i32*), align 4
call void @FUNC(i128 %12, i32 %13)
%14 = call i128 @FUNC(i32 1593835520)
%15 = call i128 @FUNC(i128 %12, i128 %14)
%16 = call i64 @FUNC(i128 %15)
%17 = xor i64 %16, -9223372036854775808
%phitmp = mul i64 %17, 9
%phitmp6 = add i64 %phitmp, 9
%18 = call i64 @FUNC(i64 %phitmp6, i64 %arg3)
%19 = trunc i64 %18 to i32
%20 = call i64* @malloc(i32 %19)
%21 = icmp eq i64* %20, null
br i1 %21, label LBL_20, label LBL_4
LBL_4:
%22 = bitcast i64* %20 to i8*
%23 = icmp eq i64 %arg3, 0
%24 = icmp eq i1 %23, false
store i8* %22, i8** %sv_0.018.reg2mem
store i64 %arg3, i64* %sv_4.017.reg2mem
store i8* %22, i8** %sv_0.0.lcssa.reg2mem
br i1 %24, label LBL_5, label LBL_6
LBL_5:
%sv_4.017.reload = load i64, i64* %sv_4.017.reg2mem
%sv_0.018.reload = load i8*, i8** %sv_0.018.reg2mem
%25 = ptrtoint i8* %sv_0.018.reload to i64
%26 = add i64 %25, 1
%27 = inttoptr i64 %26 to i8*
store i8 48, i8* %sv_0.018.reload, align 1
%28 = add i64 %sv_4.017.reload, -1
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i8* %27, i8** %sv_0.018.reg2mem
store i64 %28, i64* %sv_4.017.reg2mem
store i8* %27, i8** %sv_0.0.lcssa.reg2mem
br i1 %30, label LBL_5, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem
%31 = icmp eq i64 %arg2, 0
%32 = icmp eq i1 %31, false
store i8* %sv_0.0.lcssa.reload, i8** %sv_0.215.reg2mem
store i64 %arg2, i64* %sv_3.013.reg2mem
store i8* %sv_0.0.lcssa.reload, i8** %sv_0.2.lcssa.reg2mem
br i1 %32, label LBL_7, label LBL_14
LBL_7:
%sv_3.013.reload = load i64, i64* %sv_3.013.reg2mem
%sv_0.215.reload = load i8*, i8** %sv_0.215.reg2mem
%33 = mul i64 %sv_3.013.reload, 8
%34 = icmp eq i64 %sv_3.013.reload, 0
%35 = icmp eq i1 %34, false
store i8 0, i8* %sv_1.0.lcssa.off0.reg2mem
br i1 %35, label LBL_8, label LBL_11
LBL_8:
%36 = add i64 %33, %arg1
store i64 %sv_3.013.reload, i64* %storemerge39.reg2mem
store i64 %36, i64* %sv_2.08.reg2mem
store i64 0, i64* %sv_1.07.off0.reg2mem
br label LBL_9
LBL_9:
%sv_1.07.off0.reload = load i64, i64* %sv_1.07.off0.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%storemerge39.reload = load i64, i64* %storemerge39.reg2mem
%37 = add i64 %sv_2.08.reload, -8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = or i64 %39, %sv_1.07.off0.reload
%41 = add i64 %storemerge39.reload, -1
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 %41, i64* %storemerge39.reg2mem
store i64 %37, i64* %sv_2.08.reg2mem
store i64 %40, i64* %sv_1.07.off0.reg2mem
br i1 %43, label LBL_9, label LBL_10
LBL_10:
%extract.t = trunc i64 %40 to i8
store i8 %extract.t, i8* %sv_1.0.lcssa.off0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.lcssa.off0.reload = load i8, i8* %sv_1.0.lcssa.off0.reg2mem
store i64 9, i64* %storemerge12.reg2mem
store i8* %sv_0.215.reload, i8** %sv_0.110.reg2mem
br label LBL_12
LBL_12:
%sv_0.110.reload = load i8*, i8** %sv_0.110.reg2mem
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%44 = add i8 %sv_1.0.lcssa.off0.reload, 48
%45 = ptrtoint i8* %sv_0.110.reload to i64
%46 = add i64 %45, 1
%47 = inttoptr i64 %46 to i8*
store i8 %44, i8* %sv_0.110.reload, align 1
%48 = add nsw i64 %storemerge12.reload, -1
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
store i64 %48, i64* %storemerge12.reg2mem
store i8* %47, i8** %sv_0.110.reg2mem
br i1 %50, label LBL_12, label LBL_13
LBL_13:
%51 = add i64 %33, %arg1
%52 = add i64 %51, -8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
%56 = sext i1 %55 to i64
%spec.select = add i64 %sv_3.013.reload, %56
%57 = icmp eq i64 %spec.select, 0
%58 = icmp eq i1 %57, false
store i8* %47, i8** %sv_0.215.reg2mem
store i64 %spec.select, i64* %sv_3.013.reg2mem
store i8* %47, i8** %sv_0.2.lcssa.reg2mem
br i1 %58, label LBL_7, label LBL_14
LBL_14:
%sv_0.2.lcssa.reload = load i8*, i8** %sv_0.2.lcssa.reg2mem
store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem
br label LBL_15
LBL_15:
%sv_0.3.reload = load i8*, i8** %sv_0.3.reg2mem
%59 = bitcast i8* %sv_0.3.reload to i64*
%60 = icmp ult i64* %20, %59
br i1 %60, label LBL_16, label LBL_17
LBL_16:
%61 = ptrtoint i8* %sv_0.3.reload to i64
%62 = add i64 %61, -1
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = icmp eq i8 %64, 48
store i8* %63, i8** %sv_0.3.reg2mem
br i1 %65, label LBL_15, label LBL_17
LBL_17:
%66 = icmp eq i64* %20, %59
%67 = icmp eq i1 %66, false
store i8* %sv_0.3.reload, i8** %sv_0.4.reg2mem
br i1 %67, label LBL_19, label LBL_18
LBL_18:
%68 = ptrtoint i8* %sv_0.3.reload to i64
%69 = add i64 %68, 1
%70 = inttoptr i64 %69 to i8*
store i8 48, i8* %sv_0.3.reload, align 1
store i8* %70, i8** %sv_0.4.reg2mem
br label LBL_19
LBL_19:
%sv_0.4.reload = load i8*, i8** %sv_0.4.reg2mem
store i8 0, i8* %sv_0.4.reload, align 1
br label LBL_20
LBL_20:
%71 = ptrtoint i64* %20 to i64
ret i64 %71
uselistorder i8* %sv_0.3.reload, { 3, 4, 0, 1, 2 }
uselistorder i8* %47, { 0, 2, 1 }
uselistorder i8* %sv_0.110.reload, { 1, 0 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %sv_3.013.reload, { 2, 0, 1, 3 }
uselistorder i8* %sv_0.018.reload, { 1, 0 }
uselistorder i64* %20, { 4, 0, 1, 2, 3 }
uselistorder i128 %9, { 1, 0 }
uselistorder i128* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.018.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.017.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.215.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.013.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge39.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.07.off0.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_1.0.lcssa.off0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.110.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.3.reg2mem, { 2, 0, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 -1, { 3, 2, 1, 0 }
uselistorder i8 48, { 2, 1, 0, 3 }
uselistorder i1 false, { 3, 6, 4, 5, 2, 1, 7, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 1, { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 0, 3, 2, 1, 4, 5 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | readMovie_12436 | readMovie | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%r8.3.reg2mem = alloca i64
%rsi.3.reg2mem = alloca i64
%rcx.4.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rcx.3.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rcx.02.reg2mem = alloca i64
%rsi.04.reg2mem = alloca i64
%r8.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 2)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_18, label LBL_1
LBL_1:
%6 = inttoptr i64 %arg1 to %_IO_FILE*
br label LBL_2
LBL_2:
%rcx.02.reload = load i64, i64* %rcx.02.reg2mem
%rsi.04.reload = load i64, i64* %rsi.04.reg2mem
%r8.06.reload = load i64, i64* %r8.06.reg2mem
%7 = call i64 @FUNC(i64 %arg1)
%8 = trunc i64 %7 to i32
%9 = urem i32 %8, 64
%10 = icmp eq i32 %9, 63
%11 = icmp eq i1 %10, false
store i32 %9, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_7, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %rcx.02.reload, i64* %rcx.4.reg2mem
store i64 %rsi.04.reload, i64* %rsi.3.reg2mem
store i64 %r8.06.reload, i64* %r8.3.reg2mem
br i1 %15, label LBL_18, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %arg1)
%17 = icmp ult i64 %16, 2147483648
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%sext = mul i64 %16, 4294967296
%18 = ashr exact i64 %sext, 32
%19 = call i64 @FUNC(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 2147483647, i64 %rcx.02.reload, i64 %r8.06.reload, i64 %1)
store i64 %rcx.02.reload, i64* %rcx.3.reg2mem
store i64 %18, i64* %rsi.2.reg2mem
store i64 %r8.06.reload, i64* %r8.2.reg2mem
br label LBL_17
LBL_6:
%20 = trunc i64 %16 to i32
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%21 = load i32, i32* @gv_1, align 4
%22 = zext i32 %sv_0.0.reload to i64
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %rcx.02.reload, i64* %rcx.4.reg2mem
store i64 %rsi.04.reload, i64* %rsi.3.reg2mem
store i64 %r8.06.reload, i64* %r8.3.reg2mem
br i1 %26, label LBL_18, label LBL_8
LBL_8:
%27 = udiv i32 %8, 64
%28 = urem i32 %27, 1024
%29 = add i32 %21, %sv_0.0.reload
%30 = call i64 @FUNC(i64 %arg1, i64 %22, i32 %28)
%31 = call i32 @ftell(%_IO_FILE* %6)
%32 = icmp eq i32 %31, %29
br i1 %32, label LBL_8.LBL_11_crit_edge, label LBL_10
LBL_9:
%.pre = zext i32 %28 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
store i64 %22, i64* %rcx.1.reg2mem
store i64 %r8.06.reload, i64* %r8.1.reg2mem
br label LBL_11
LBL_10:
%33 = call i32 @ftell(%_IO_FILE* %6)
%34 = sext i32 %33 to i64
%35 = zext i32 %28 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = zext i32 %29 to i64
%38 = call i64 @FUNC(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_2, i64 0, i64 0), i64 %35, i64 %36, i64 %34, i64 %37, i64 %1)
store i64 %35, i64* %.pre-phi.reg2mem
store i64 %34, i64* %rcx.1.reg2mem
store i64 %37, i64* %r8.1.reg2mem
br label LBL_11
LBL_11:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%39 = icmp eq i64 %30, 0
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%40 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %30, i64 %arg1)
%41 = inttoptr i64 %30 to i64*
call void @free(i64* %41)
store i64 %30, i64* %rcx.2.reg2mem
store i64 %30, i64* %rsi.1.reg2mem
br label LBL_14
LBL_13:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%42 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_3, i64 0, i64 0), i64 %.pre-phi.reload, i64 %22, i64 %rcx.1.reload, i64 %r8.1.reload, i64 %1)
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
store i64 %.pre-phi.reload, i64* %rsi.1.reg2mem
br label LBL_14
LBL_14:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%43 = icmp eq i32 %28, 0
store i64 %rcx.2.reload, i64* %rcx.4.reg2mem
store i64 %rsi.1.reload, i64* %rsi.3.reg2mem
store i64 %r8.1.reload, i64* %r8.3.reg2mem
br i1 %43, label LBL_18, label LBL_15
LBL_15:
%44 = load i64, i64* @gv_4, align 8
%45 = load i32, i32* @gv_1, align 4
%46 = sext i32 %45 to i64
%47 = icmp ugt i64 %44, %46
store i64 %rcx.2.reload, i64* %rcx.4.reg2mem
store i64 %rsi.1.reload, i64* %rsi.3.reg2mem
store i64 %r8.1.reload, i64* %r8.3.reg2mem
br i1 %47, label LBL_16, label LBL_18
LBL_16:
%48 = sext i32 %29 to i64
%49 = call i32 @fseek(%_IO_FILE* %6, i32 %29, i32 0)
%50 = call i32 @ftell(%_IO_FILE* %6)
store i32 %50, i32* @gv_1, align 4
store i64 %48, i64* %rcx.3.reg2mem
store i64 %48, i64* %rsi.2.reg2mem
store i64 %r8.1.reload, i64* %r8.2.reg2mem
br label LBL_17
LBL_17:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%51 = call i64 @FUNC(i64 2)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
store i64 %r8.2.reload, i64* %r8.06.reg2mem
store i64 %rsi.2.reload, i64* %rsi.04.reg2mem
store i64 %rcx.3.reload, i64* %rcx.02.reg2mem
store i64 %rcx.3.reload, i64* %rcx.4.reg2mem
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
store i64 %r8.2.reload, i64* %r8.3.reg2mem
br i1 %54, label LBL_18, label LBL_2
LBL_18:
%55 = call i32 @putchar(i32 10)
%56 = load i64, i64* @gv_4, align 8
%57 = load i32, i32* @gv_1, align 4
%58 = sext i32 %57 to i64
%59 = icmp ugt i64 %56, %58
br i1 %59, label LBL_19, label LBL_20
LBL_19:
%r8.3.reload = load i64, i64* %r8.3.reg2mem
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%rcx.4.reload = load i64, i64* %rcx.4.reg2mem
%60 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_5, i64 0, i64 0), i64 %rsi.3.reload, i64 %58, i64 %rcx.4.reload, i64 %r8.3.reload, i64 %1)
%61 = load i64, i64* @gv_4, align 8
%62 = load i32, i32* @gv_1, align 4
%63 = sext i32 %62 to i64
%64 = sub i64 %61, %63
%65 = call i64 @FUNC(i64 %arg1, i64 %64)
%66 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_6, i64 0, i64 0))
br label LBL_20
LBL_20:
%67 = call i64 @FUNC(i64* nonnull @gv_4)
ret i64 %67
uselistorder i64 %.pre-phi.reload, { 0, 2, 1 }
uselistorder i64 %r8.1.reload, { 2, 0, 1, 3 }
uselistorder i64 %30, { 0, 1, 3, 4, 2 }
uselistorder i32 %29, { 2, 1, 0, 3 }
uselistorder i32 %28, { 1, 2, 3, 0 }
uselistorder i64 %22, { 1, 0, 2, 3 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder i64 %r8.06.reload, { 3, 0, 2, 4, 1 }
uselistorder i64 %rcx.02.reload, { 0, 2, 3, 1 }
uselistorder %_IO_FILE* %6, { 2, 1, 0, 3 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %r8.06.reg2mem, { 1, 0 }
uselistorder i64* %rsi.04.reg2mem, { 1, 0 }
uselistorder i64* %rcx.02.reg2mem, { 1, 0 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.4.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %rsi.3.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %r8.3.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i32 (%_IO_FILE*)* @ftell, { 2, 0, 1 }
uselistorder i32* @gv_1, { 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @SWF_warn, { 3, 2, 1, 0 }
uselistorder i32 0, { 7, 1, 4, 5, 6, 0, 2, 3 }
uselistorder i64 (i64)* @filelen_check_fails, { 1, 3, 2, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg1, { 5, 1, 2, 0, 4, 3 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 0, 4, 3, 5 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | hrtimer_forward_5686 | hrtimer_forward | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %arg2, i64 %0)
%2 = icmp slt i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp sgt i64 %8, %arg3
%spec.select = select i1 %9, i64 %8, i64 %arg3
%10 = sub i64 %1, %spec.select
%11 = xor i64 %spec.select, %1
%12 = xor i64 %10, %1
%13 = and i64 %12, %11
%14 = icmp slt i64 %13, 0
%15 = icmp slt i64 %10, 0
%16 = icmp eq i1 %15, %14
%17 = zext i1 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i64 1, i64* %sv_0.0.reg2mem
store i64 %17, i64* %rdi.0.reg2mem
br i1 %20, label LBL_4, label LBL_2
LBL_2:
%21 = call i64 @FUNC(i64 %spec.select)
%22 = call i64 @FUNC(i64 %1, i64 %21)
%23 = mul i64 %22, %21
%24 = call i64 @FUNC(i64 %1, i64 %23)
store i64 %24, i64* %arg1, align 8
%25 = icmp sgt i64 %1, %arg2
store i64 %22, i64* %rax.0.reg2mem
br i1 %25, label LBL_6, label LBL_3
LBL_3:
%26 = add i64 %22, 1
store i64 %26, i64* %sv_0.0.reg2mem
store i64 %1, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%27 = call i64 @FUNC(i64 %rdi.0.reload, i64 %spec.select)
store i64 %27, i64* %arg1, align 8
%28 = icmp slt i64 %rdi.0.reload, 0
%29 = icmp eq i1 %28, false
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%30 = call i64 @FUNC(i64 9223372036854775807, i64 0, i64 %0)
store i64 %30, i64* %arg1, align 8
store i64 %sv_0.0.reload, 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 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %22, { 2, 0, 1 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %spec.select, { 2, 3, 0, 1 }
uselistorder i64 %1, { 0, 5, 4, 3, 1, 2, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | mips_cpu_get_phys_page_debug_16162 | mips_cpu_get_phys_page_debug | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0, i64* nonnull %sv_1, i64 %arg2, i64 0, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = load i64, i64* %sv_0, align 8
%storemerge = select i1 %4, i64 %5, i64 -1
ret i64 %storemerge
uselistorder i64* %sv_0, { 1, 0 }
} | 1 |
BinRealVul | decode_level1_header_9026 | decode_level1_header | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %0, i64 %arg2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %5, 4294967294
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %0, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%spec.select = zext i1 %14 to i64
ret i64 %spec.select
LBL_3:
ret i64 0
uselistorder i64 %0, { 0, 2, 1, 3 }
} | 0 |
BinRealVul | ip_encap_9339 | ip_encap | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC(i64 %0, i64 20)
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = urem i8 %4, 16
%6 = or i8 %5, 64
store i8 %6, i8* %3, align 1
%7 = add i64 %0, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = add i64 %2, 1
%11 = inttoptr i64 %10 to i8*
store i8 %9, i8* %11, align 1
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i8*
store i8 %14, i8* %16, align 1
%17 = add i64 %2, 6
%18 = inttoptr i64 %17 to i16*
store i16 0, i16* %18, align 2
%19 = trunc i64 %arg3 to i32
%20 = add i64 %2, 16
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = add i64 %2, 12
%23 = inttoptr i64 %22 to i32*
store i32 %1, i32* %23, align 4
%24 = add i64 %2, 9
%25 = inttoptr i64 %24 to i8*
store i8 4, i8* %25, align 1
%26 = load i8, i8* %3, align 1
%27 = and i8 %26, -16
%28 = or i8 %27, 5
store i8 %28, i8* %3, align 1
%29 = inttoptr i64 %12 to i32*
%30 = load i32, i32* %29, align 4
%31 = trunc i32 %30 to i16
%32 = call i16 @htons(i16 %31)
%33 = add i64 %2, 2
%34 = inttoptr i64 %33 to i16*
store i16 %32, i16* %34, align 2
%35 = add i64 %0, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %2, i64 %37, i64 0)
%39 = call i64 @FUNC(i64 %2)
%40 = add i64 %0, 16
%41 = inttoptr i64 %40 to i64*
store i64 %2, i64* %41, align 8
store i64 %2, i64* %arg1, align 8
%42 = call i64 @FUNC(i64 %0)
%43 = inttoptr i64 %42 to i64*
%44 = call i64* @memset(i64* %43, i32 0, i32 40)
%45 = call i64 @FUNC(i64 %0)
ret i64 %45
uselistorder i16 (i16)* @htons, { 1, 0 }
} | 0 |
BinRealVul | handle_modify_minstratum_10551 | handle_modify_minstratum | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i16
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i32 @ntohl(i32 %4)
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i16 @htons(i16 0)
%11 = bitcast i64* %arg2 to i16*
store i16 %10, i16* %11, align 2
store i16 %10, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_2:
%12 = call i16 @htons(i16 1)
%13 = bitcast i64* %arg2 to i16*
store i16 %12, i16* %13, align 2
store i16 %12, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_3:
%rax.0.in.reload = load i16, i16* %rax.0.in.reg2mem
%rax.0 = sext i16 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i16* %rax.0.in.reg2mem, { 0, 2, 1 }
uselistorder i16 (i16)* @htons, { 1, 0 }
} | 0 |
BinRealVul | kvmppc_get_hypercall_14839 | kvmppc_get_hypercall | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = trunc i64 %arg3 to i32
%6 = call i64* @memcpy(i64* %arg2, i64* nonnull %sv_0, i32 %5)
br label LBL_3
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 134217800)
%9 = trunc i64 %8 to i32
%10 = bitcast i64* %arg2 to i32*
store i32 %9, i32* %10, align 4
%11 = add i64 %7, 4
%12 = call i64 @FUNC(i64 945881087)
%13 = trunc i64 %12 to i32
%14 = inttoptr i64 %11 to i32*
store i32 %13, i32* %14, align 4
%15 = add i64 %7, 8
%16 = call i64 @FUNC(i64 1207959560)
%17 = trunc i64 %16 to i32
%18 = inttoptr i64 %15 to i32*
store i32 %17, i32* %18, align 4
%19 = call i64 @FUNC(i64 945881087)
%20 = add i64 %7, 12
%21 = and i64 %19, 4294967295
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
%24 = inttoptr i64 %20 to i32*
store i32 %23, i32* %24, align 4
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 (i64)* @cpu_to_be32, { 3, 2, 1, 0 }
uselistorder i64* %arg2, { 0, 2, 1 }
} | 1 |
BinRealVul | c4iw_create_cq_7750 | c4iw_create_cq | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64* %arg1, i64 %0)
%2 = call i64* @calloc(i32 1, i32 80)
%3 = icmp eq i64* %2, null
%4 = icmp eq i1 %3, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_11
LBL_1:
%5 = trunc i64 %arg2 to i32
%6 = add i32 %5, 17
%7 = add i32 %5, 32
%8 = icmp slt i32 %6, 0
%9 = select i1 %8, i32 %7, i32 %6
%10 = and i32 %9, -16
%11 = mul i32 %10, 2
%12 = icmp ult i32 %11, 63
%spec.select = select i1 %12, i32 64, i32 %11
%13 = sext i32 %spec.select to i64
%14 = icmp eq i64* %arg4, null
store i32 %spec.select, i32* %sv_1.0.reg2mem
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_4, label LBL_2
LBL_2:
%15 = add nsw i64 %13, 4095
%16 = and i64 %15, -4096
store i64 %16, i64* %storemerge4.reg2mem
br label LBL_3
LBL_3:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%storemerge3 = trunc i64 %storemerge4.reload to i32
%17 = icmp ult i32 %storemerge3, 1025
%18 = add i64 %storemerge4.reload, -4096
store i64 %18, i64* %storemerge4.reg2mem
store i32 %storemerge3, i32* %sv_1.0.reg2mem
store i64 %storemerge4.reload, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_4:
%19 = ptrtoint i64* %arg1 to i64
%20 = ptrtoint i64* %2 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%21 = bitcast i64* %2 to i32*
store i32 %sv_1.0.reload, i32* %21, align 4
%22 = add i64 %20, 8
%23 = inttoptr i64 %22 to i64*
store i64 %sv_0.0.reload, i64* %23, align 8
%24 = add i64 %20, 56
%25 = inttoptr i64 %24 to i64*
store i64 %19, i64* %25, align 8
%26 = load i32, i32* %21, align 4
%27 = add i32 %26, -1
store i32 %27, i32* %21, align 4
%28 = add i32 %10, -2
%29 = add i64 %20, 48
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = add i64 %20, 64
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %20, 68
%34 = inttoptr i64 %33 to i32*
store i32 0, i32* %34, align 4
%35 = add i64 %20, 72
%36 = inttoptr i64 %35 to i32*
store i32 1, i32* %36, align 4
%37 = add i64 %20, 76
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
br i1 %14, label LBL_8, label LBL_5
LBL_5:
%39 = call i64 @FUNC(i64 24, i64 0)
%40 = icmp eq i64 %39, 0
br i1 %40, label LBL_10, label LBL_6
LBL_6:
%41 = call i64 @FUNC(i64 24, i64 0)
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_9, label LBL_7
LBL_7:
%43 = ptrtoint i64* %arg4 to i64
%44 = add i64 %43, 4
%45 = call i64 @FUNC(i64 %44)
%46 = bitcast i64* %arg4 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i32 %47, 4096
%49 = add i32 %47, 8192
store i32 %49, i32* %46, align 4
%50 = call i64 @FUNC(i64 %44)
%51 = inttoptr i64 %39 to i32*
store i32 %47, i32* %51, align 4
%52 = add i64 %20, 24
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = add i64 %39, 8
%56 = inttoptr i64 %55 to i64*
store i64 %54, i64* %56, align 8
%57 = load i64, i64* %23, align 8
%58 = add i64 %39, 16
%59 = inttoptr i64 %58 to i64*
store i64 %57, i64* %59, align 8
%60 = inttoptr i64 %41 to i32*
store i32 %48, i32* %60, align 4
%61 = add i64 %20, 32
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = add i64 %41, 8
%65 = inttoptr i64 %64 to i64*
store i64 %63, i64* %65, align 8
%66 = add i64 %41, 16
%67 = inttoptr i64 %66 to i64*
store i64 4096, i64* %67, align 8
br label LBL_8
LBL_8:
%68 = add i64 %20, 40
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = load i64, i64* %23, align 8
%72 = load i32, i32* %21, align 4
%73 = add i64 %20, 16
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i32 %75, i64* nonnull %2, i32 %72, i64 %71, i64 %70)
store i64 %29, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%77 = inttoptr i64 %39 to i64*
call void @free(i64* %77)
br label LBL_10
LBL_10:
call void @free(i64* nonnull %2)
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 i32 %47, { 2, 0, 1 }
uselistorder i32* %46, { 1, 0 }
uselistorder i64 %39, { 3, 0, 1, 2, 4 }
uselistorder i64* %23, { 1, 0, 2 }
uselistorder i64 %20, { 3, 2, 0, 1, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %storemerge4.reload, { 0, 2, 1 }
uselistorder i1 %14, { 1, 0 }
uselistorder i64 %13, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64* %2, { 0, 1, 2, 4, 3 }
uselistorder i64* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i64)* @kmalloc, { 1, 0 }
uselistorder i64 24, { 2, 0, 1 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i64* %arg4, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | qemu_devtree_nop_node_461 | qemu_devtree_nop_node | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%1 = and i64 %0, 4294967295
%2 = call i64 @FUNC(i64 %arg1, i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = and i64 %2, 4294967295
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %6)
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = inttoptr i64 %arg2 to i8*
%10 = inttoptr i64 %7 to i8*
%11 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %8, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i8* %9, i8* %10)
call void @exit(i32 1)
unreachable
LBL_2:
ret i64 %6
} | 0 |
BinRealVul | fdctrl_handle_relative_seek_out_8035 | fdctrl_handle_relative_seek_out | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = call i64 @FUNC(i64 %0)
%8 = inttoptr i64 %7 to i32*
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = load i32, i32* %8, align 4
%13 = icmp ult i32 %12, %11
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
br i1 %13, label LBL_1, label LBL_2
LBL_1:
%17 = add i64 %7, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %16 to i64
%21 = call i64 @FUNC(i64 %7, i32 %19, i64 0, i64 %20, i64 1)
br label LBL_3
LBL_2:
%22 = sub i32 %12, %11
%23 = add i64 %7, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %16 to i64
%27 = zext i32 %22 to i64
%28 = call i64 @FUNC(i64 %7, i32 %25, i64 %27, i64 %26, i64 1)
br label LBL_3
LBL_3:
%29 = call i64 @FUNC(i64 %0)
%30 = add i64 %0, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = or i32 %32, 1
store i32 %33, i32* %31, align 4
%34 = call i64 @FUNC(i64 %0)
ret i64 %34
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i64 (i64, i32, i64, i64, i64)* @fd_seek, { 1, 0 }
} | 0 |
BinRealVul | fuse_dev_fasync_12238 | fuse_dev_fasync | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = and i64 %arg1, 4294967295
%5 = trunc i64 %arg3 to i32
%6 = call i64 @FUNC(i64 %4, i64 %0, i32 %5, i64 %1)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | defang_10263 | defang | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i8
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = bitcast i64* %arg1 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
store i64 %0, i64* %storemerge.lcssa.reg2mem
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg3, 4294967296
%sext2 = add i64 %sext, -21474836480
%5 = ashr exact i64 %sext2, 32
store i8 %2, i8* %.reg2mem
store i64 %0, i64* %storemerge4.reg2mem
store i64 %4, i64* %sv_0.03.reg2mem
br label LBL_7
LBL_2:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%.reload = load i8, i8* %.reg2mem
switch i8 %.reload, label LBL_5 [
i8 60, label LBL_3
i8 62, label LBL_4
]
LBL_3:
%6 = add i64 %storemerge4.reload, 1
%7 = inttoptr i64 %storemerge4.reload to i8*
store i8 38, i8* %7, align 1
%8 = add i64 %storemerge4.reload, 2
%9 = inttoptr i64 %6 to i8*
store i8 108, i8* %9, align 1
%10 = add i64 %storemerge4.reload, 3
%11 = inttoptr i64 %8 to i8*
store i8 116, i8* %11, align 1
%12 = inttoptr i64 %10 to i8*
store i8 59, i8* %12, align 1
store i64 %10, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_4:
%13 = add i64 %storemerge4.reload, 1
%14 = inttoptr i64 %storemerge4.reload to i8*
store i8 38, i8* %14, align 1
%15 = add i64 %storemerge4.reload, 2
%16 = inttoptr i64 %13 to i8*
store i8 103, i8* %16, align 1
%17 = add i64 %storemerge4.reload, 3
%18 = inttoptr i64 %15 to i8*
store i8 116, i8* %18, align 1
%19 = inttoptr i64 %17 to i8*
store i8 59, i8* %19, align 1
store i64 %17, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_5:
%20 = inttoptr i64 %storemerge4.reload to i8*
store i8 %.reload, i8* %20, align 1
store i64 %storemerge4.reload, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%21 = add i64 %sv_0.03.reload, 1
%22 = add i64 %sv_1.0.reload, 1
%23 = inttoptr i64 %21 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 0
store i8 %24, i8* %.reg2mem
store i64 %22, i64* %storemerge4.reg2mem
store i64 %21, i64* %sv_0.03.reg2mem
store i64 %22, i64* %storemerge.lcssa.reg2mem
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%26 = sub i64 %storemerge4.reload, %0
%27 = icmp slt i64 %26, %5
store i64 %storemerge4.reload, i64* %storemerge.lcssa.reg2mem
br i1 %27, label LBL_2, label LBL_8
LBL_8:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
%28 = inttoptr i64 %storemerge.lcssa.reload to i8*
store i8 0, i8* %28, align 1
ret i64 %storemerge.lcssa.reload
uselistorder i64 %storemerge4.reload, { 0, 10, 7, 6, 8, 9, 3, 2, 4, 5, 1, 11 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | gdCtxPrintf_11072 | gdCtxPrintf | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg1 to i64
store i32 16, i32* %sv_1, align 4
%22 = ptrtoint i32* %sv_1 to i64
%23 = bitcast i64* %sv_0 to i8*
%24 = call i32 @vsnprintf(i8* nonnull %23, i32 4095, i8* %arg2, i64 %22)
ret i64 %21
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | mwifiex_del_mgmt_ies_7647 | mwifiex_del_mgmt_ies | define i64 @FUNC(i16* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i16*
%sv_2.1.reg2mem = alloca i16*
%sv_3.1.reg2mem = alloca i16*
%sv_1.0.reg2mem = alloca i16*
%sv_2.0.reg2mem = alloca i16*
%sv_3.0.reg2mem = alloca i16*
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i16
%3 = icmp eq i16 %2, -1
br i1 %3, label LBL_0.LBL_5_crit_edge, label LBL_2
LBL_1:
%.pre = ptrtoint i16* %arg1 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_2:
%4 = call i64 @FUNC(i64 6, i64 0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_18
LBL_3:
%7 = inttoptr i64 %4 to i16*
%8 = urem i64 %1, 65536
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i16
store i16 %10, i16* %7, align 2
%11 = call i64 @FUNC(i64 1)
%12 = trunc i64 %11 to i16
%13 = add i64 %4, 2
%14 = inttoptr i64 %13 to i16*
store i16 %12, i16* %14, align 2
%15 = add i64 %4, 4
%16 = inttoptr i64 %15 to i16*
store i16 0, i16* %16, align 2
%17 = ptrtoint i16* %arg1 to i64
%18 = add i64 %17, 4
%19 = call i64 @FUNC(i64 %17, i64 %4, i64 %17, i64 0, i64 %18, i64 0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i16* null, i16** %sv_3.1.reg2mem
store i16* null, i16** %sv_2.1.reg2mem
store i16* null, i16** %sv_1.1.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_4, label LBL_17
LBL_4:
store i16 -1, i16* %arg1, align 2
store i64 %17, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%22 = add i64 %.pre-phi.reload, 2
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = icmp eq i16 %24, -1
store i16* null, i16** %sv_3.0.reg2mem
br i1 %25, label LBL_8, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 6, i64 0)
%27 = inttoptr i64 %26 to i16*
%28 = icmp eq i64 %26, 0
%29 = icmp eq i1 %28, false
store i16* %27, i16** %sv_3.1.reg2mem
store i16* null, i16** %sv_2.1.reg2mem
store i16* null, i16** %sv_1.1.reg2mem
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_7, label LBL_17
LBL_7:
%30 = load i16, i16* %23, align 2
%31 = zext i16 %30 to i64
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i16
store i16 %33, i16* %27, align 2
%34 = call i64 @FUNC(i64 1)
%35 = trunc i64 %34 to i16
%36 = add i64 %26, 2
%37 = inttoptr i64 %36 to i16*
store i16 %35, i16* %37, align 2
%38 = add i64 %26, 4
%39 = inttoptr i64 %38 to i16*
store i16 0, i16* %39, align 2
store i16* %27, i16** %sv_3.0.reg2mem
br label LBL_8
LBL_8:
%sv_3.0.reload = load i16*, i16** %sv_3.0.reg2mem
%40 = add i64 %.pre-phi.reload, 4
%41 = inttoptr i64 %40 to i16*
%42 = load i16, i16* %41, align 2
%43 = icmp eq i16 %42, -1
store i16* null, i16** %sv_2.0.reg2mem
br i1 %43, label LBL_11, label LBL_9
LBL_9:
%44 = call i64 @FUNC(i64 6, i64 0)
%45 = inttoptr i64 %44 to i16*
%46 = icmp eq i64 %44, 0
%47 = icmp eq i1 %46, false
store i16* %sv_3.0.reload, i16** %sv_3.1.reg2mem
store i16* %45, i16** %sv_2.1.reg2mem
store i16* null, i16** %sv_1.1.reg2mem
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %47, label LBL_10, label LBL_17
LBL_10:
%48 = load i16, i16* %41, align 2
%49 = zext i16 %48 to i64
%50 = call i64 @FUNC(i64 %49)
%51 = trunc i64 %50 to i16
store i16 %51, i16* %45, align 2
%52 = call i64 @FUNC(i64 1)
%53 = trunc i64 %52 to i16
%54 = add i64 %44, 2
%55 = inttoptr i64 %54 to i16*
store i16 %53, i16* %55, align 2
%56 = add i64 %44, 4
%57 = inttoptr i64 %56 to i16*
store i16 0, i16* %57, align 2
store i16* %45, i16** %sv_2.0.reg2mem
br label LBL_11
LBL_11:
%sv_2.0.reload = load i16*, i16** %sv_2.0.reg2mem
%58 = add i64 %.pre-phi.reload, 6
%59 = inttoptr i64 %58 to i16*
%60 = load i16, i16* %59, align 2
%61 = icmp eq i16 %60, -1
store i16* null, i16** %sv_1.0.reg2mem
br i1 %61, label LBL_14, label LBL_12
LBL_12:
%62 = call i64 @FUNC(i64 6, i64 0)
%63 = inttoptr i64 %62 to i16*
%64 = icmp eq i64 %62, 0
%65 = icmp eq i1 %64, false
store i16* %sv_3.0.reload, i16** %sv_3.1.reg2mem
store i16* %sv_2.0.reload, i16** %sv_2.1.reg2mem
store i16* %63, i16** %sv_1.1.reg2mem
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %65, label LBL_13, label LBL_17
LBL_13:
%66 = load i16, i16* %59, align 2
%67 = zext i16 %66 to i64
%68 = call i64 @FUNC(i64 %67)
%69 = trunc i64 %68 to i16
store i16 %69, i16* %63, align 2
%70 = call i64 @FUNC(i64 1)
%71 = trunc i64 %70 to i16
%72 = add i64 %62, 2
%73 = inttoptr i64 %72 to i16*
store i16 %71, i16* %73, align 2
%74 = add i64 %62, 4
%75 = inttoptr i64 %74 to i16*
store i16 0, i16* %75, align 2
store i16* %63, i16** %sv_1.0.reg2mem
br label LBL_14
LBL_14:
%sv_1.0.reload = load i16*, i16** %sv_1.0.reg2mem
%76 = icmp eq i16* %sv_3.0.reload, null
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_16, label LBL_15
LBL_15:
%78 = icmp eq i16* %sv_2.0.reload, null
%79 = icmp eq i16* %sv_1.0.reload, null
%or.cond = icmp eq i1 %78, %79
store i16* %sv_3.0.reload, i16** %sv_3.1.reg2mem
store i16* null, i16** %sv_2.1.reg2mem
store i16* null, i16** %sv_1.1.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_17, label LBL_16
LBL_16:
%80 = ptrtoint i16* %sv_1.0.reload to i64
%81 = ptrtoint i16* %sv_2.0.reload to i64
%82 = ptrtoint i16* %sv_3.0.reload to i64
%83 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %82, i64 %22, i64 %81, i64 %40, i64 %80)
%phitmp = and i64 %83, 4294967295
store i16* %sv_3.0.reload, i16** %sv_3.1.reg2mem
store i16* %sv_2.0.reload, i16** %sv_2.1.reg2mem
store i16* %sv_1.0.reload, i16** %sv_1.1.reg2mem
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i16*, i16** %sv_1.1.reg2mem
%sv_2.1.reload = load i16*, i16** %sv_2.1.reg2mem
%sv_3.1.reload = load i16*, i16** %sv_3.1.reg2mem
%84 = ptrtoint i16* %sv_3.1.reload to i64
%85 = call i64 @FUNC(i64 %84)
%86 = ptrtoint i16* %sv_2.1.reload to i64
%87 = call i64 @FUNC(i64 %86)
%88 = ptrtoint i16* %sv_1.1.reload to i64
%89 = call i64 @FUNC(i64 %88)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_18
LBL_18:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i16* %63, { 1, 2, 0 }
uselistorder i64 %62, { 0, 1, 3, 2 }
uselistorder i16* %sv_2.0.reload, { 1, 2, 3, 0 }
uselistorder i16* %45, { 1, 2, 0 }
uselistorder i64 %44, { 0, 1, 3, 2 }
uselistorder i16* %sv_3.0.reload, { 3, 5, 2, 4, 0, 1 }
uselistorder i16* %27, { 1, 2, 0 }
uselistorder i64 %26, { 0, 1, 3, 2 }
uselistorder i64 %17, { 0, 2, 1, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i16** %sv_3.1.reg2mem, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i16** %sv_2.1.reg2mem, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i16** %sv_1.1.reg2mem, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i16* null, { 3, 6, 11, 12, 13, 8, 0, 9, 1, 4, 10, 2, 5, 7 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @mwifiex_update_uap_custom_ie, { 1, 0 }
uselistorder i64 (i64)* @cpu_to_le16, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967284, { 1, 2, 3, 0 }
uselistorder i64 (i64, i64)* @kmalloc, { 3, 2, 1, 0 }
uselistorder i64 6, { 0, 4, 1, 2, 3 }
uselistorder i16 -1, { 0, 1, 2, 4, 3 }
uselistorder i16* %arg1, { 1, 2, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 5, 4, 0, 1, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | pdf_delete_9233 | pdf_delete | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%.pre = add i64 %arg1, 16
%.pre2 = inttoptr i64 %.pre to i64*
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
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
%5 = load i64, i64* %.pre2, align 8
%6 = mul nsw i64 %.reload, 24
%7 = add i64 %5, %6
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
call void @free(i64* %10)
%11 = load i64, i64* %.pre2, align 8
%12 = add nsw i64 %6, 8
%13 = add i64 %12, %11
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
call void @free(i64* %16)
%17 = load i64, i64* %.pre2, align 8
%18 = add nsw i64 %6, 16
%19 = add i64 %18, %17
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
call void @free(i64* %22)
%23 = add i32 %storemerge1.reload, 1
%24 = sext i32 %23 to i64
%25 = icmp sgt i64 %4, %24
store i64 %24, i64* %.reg2mem
store i32 %23, i32* %storemerge1.reg2mem
br i1 %25, label LBL_2, label LBL_3
LBL_3:
%26 = add i64 %arg1, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %28 to i64*
call void @free(i64* %29)
%30 = load i64, i64* %.pre2, align 8
%31 = inttoptr i64 %30 to i64*
call void @free(i64* %31)
%32 = inttoptr i64 %arg1 to i64*
call void @free(i64* %32)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %6, { 1, 2, 0 }
uselistorder i64* %.pre2, { 0, 3, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder void (i64*)* @free, { 2, 1, 0, 5, 4, 3 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ovl_parse_opt_6211 | ovl_parse_opt | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.0.ph.be.reg2mem = alloca i64
%rsi.0.ph.reg2mem = alloca i64
%rdx.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 %arg1, i64* %sv_1, align 8
%5 = ptrtoint i64* %sv_0 to i64
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %4, 16
%9 = inttoptr i64 %8 to i64*
%10 = add i64 %4, 24
%11 = inttoptr i64 %10 to i8*
store i64 %4, i64* %rsi.0.ph.reg2mem
br label LBL_1
LBL_1:
%rsi.0.ph.reload = load i64, i64* %rsi.0.ph.reg2mem
%rdx.0.ph.reload = load i64, i64* %rdx.0.ph.reg2mem
br label LBL_12
LBL_2:
%12 = inttoptr i64 %33 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_12
LBL_3:
%16 = call i64 @FUNC(i64 %33, i64* nonnull @gv_0, i64* nonnull %sv_0)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 4
br i1 %18, label LBL_9, label LBL_4
LBL_4:
%19 = icmp sgt i32 %17, 4
br i1 %19, label LBL_11, label LBL_5
LBL_5:
switch i32 %17, label LBL_11 [
i32 3, label LBL_8
i32 1, label LBL_6
i32 2, label LBL_7
]
LBL_6:
%20 = call i64 @FUNC(i64 ptrtoint (i64* @gv_0 to i64))
%21 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %21, i64* %arg2, align 8
store i64 %4, i64* %rdx.0.ph.be.reg2mem
br label LBL_1.backedge
LBL_7:
%22 = load i64, i64* %7, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %24, i64* %7, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
store i64 %4, i64* %rdx.0.ph.be.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %26, label LBL_1.backedge, label LBL_16
LBL_8:
%27 = load i64, i64* %9, align 8
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %29, i64* %9, align 8
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 %4, i64* %rdx.0.ph.be.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %31, label LBL_1.backedge, label LBL_16
LBL_9:
store i8 1, i8* %11, align 1
store i64 %5, i64* %rdx.0.ph.be.reg2mem
br label LBL_1.backedge
LBL_10:
%rdx.0.ph.be.reload = load i64, i64* %rdx.0.ph.be.reg2mem
store i64 %rdx.0.ph.be.reload, i64* %rdx.0.ph.reg2mem
store i64 ptrtoint (i64* @gv_0 to i64), i64* %rsi.0.ph.reg2mem
br label LBL_1
LBL_11:
%32 = call i64 @FUNC(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i64 %33, i64 %5, i64 %3, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%33 = call i64 @FUNC(i64* nonnull %sv_1)
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_2, label LBL_13
LBL_13:
%36 = icmp eq i64 %rsi.0.ph.reload, 0
%37 = icmp eq i1 %36, false
store i64 0, i64* %rax.0.reg2mem
br i1 %37, label LBL_16, label LBL_14
LBL_14:
%38 = load i64, i64* %9, align 8
%39 = icmp eq i64 %38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_16, label LBL_15
LBL_15:
%40 = call i64 @FUNC(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_2, i64 0, i64 0), i64 %38, i64 %rdx.0.ph.reload, i64 %3, i64 %2, i64 %1)
%41 = load i64, i64* %9, align 8
%42 = call i64 @FUNC(i64 %41)
store i64 0, i64* %9, align 8
store i64 0, 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 %33, { 3, 2, 1, 0 }
uselistorder i64* %9, { 1, 2, 0, 3, 4 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 0, 2, 1, 3, 6, 5, 4 }
uselistorder i64* %rdx.0.ph.reg2mem, { 1, 0 }
uselistorder i64* %rsi.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdx.0.ph.be.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 6, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*)* @match_strdup, { 2, 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0 }
uselistorder i1 false, { 3, 4, 0, 1, 2 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder label LBL_16, { 4, 3, 2, 5, 0, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_1.backedge, { 0, 1, 3, 2 }
} | 0 |
BinRealVul | test_i440fx_pam_2247 | test_i440fx_pam | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 8
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 8
%11 = add i64 %7, ptrtoint (i32** @gv_1 to i64)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 8
%14 = icmp eq i32 %10, %13
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = zext i32 %10 to i64
%16 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i64 %15, i32 %13)
%17 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 1)
%18 = load i32, i32* %12, align 8
%19 = load i32, i32* %9, align 8
%20 = zext i32 %18 to i64
%21 = zext i32 %19 to i64
%22 = call i64 @FUNC(i64 %21, i64 %20, i64 0)
%23 = and i64 %22, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 3)
%26 = load i32, i32* %12, align 8
%27 = load i32, i32* %9, align 8
%28 = zext i32 %26 to i64
%29 = zext i32 %27 to i64
%30 = call i64 @FUNC(i64 %29, i64 %28, i64 66)
%31 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 2)
%32 = load i32, i32* %12, align 8
%33 = load i32, i32* %9, align 8
%34 = zext i32 %32 to i64
%35 = zext i32 %33 to i64
%36 = call i64 @FUNC(i64 %35, i64 %34, i64 66)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i64
%40 = call i64 @FUNC(i64 %39)
%41 = load i32, i32* %12, align 8
%42 = load i32, i32* %9, align 8
%43 = zext i32 %41 to i64
%44 = zext i32 %42 to i64
%45 = call i64 @FUNC(i64 %44, i64 %43, i64 66)
%46 = and i64 %45, 4294967295
%47 = call i64 @FUNC(i64 %46)
%48 = load i32, i32* %12, align 8
%49 = load i32, i32* %9, align 8
%50 = zext i32 %48 to i64
%51 = zext i32 %49 to i64
%52 = call i64 @FUNC(i64 %51, i64 %50, i64 130)
%53 = load i32, i32* %12, align 8
%54 = load i32, i32* %9, align 8
%55 = zext i32 %53 to i64
%56 = zext i32 %54 to i64
%57 = call i64 @FUNC(i64 %56, i64 %55, i64 130)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
%60 = zext i1 %59 to i64
%61 = call i64 @FUNC(i64 %60)
%62 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 3)
%63 = load i32, i32* %12, align 8
%64 = load i32, i32* %9, align 8
%65 = zext i32 %63 to i64
%66 = zext i32 %64 to i64
%67 = call i64 @FUNC(i64 %66, i64 %65, i64 130)
%68 = and i64 %67, 4294967295
%69 = call i64 @FUNC(i64 %68)
%70 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 0)
%71 = load i32, i32* %12, align 8
%72 = load i32, i32* %9, align 8
%73 = zext i32 %71 to i64
%74 = zext i32 %72 to i64
%75 = call i64 @FUNC(i64 %74, i64 %73, i64 130)
%76 = trunc i64 %75 to i32
%77 = icmp eq i32 %76, 0
%78 = zext i1 %77 to i64
%79 = call i64 @FUNC(i64 %78)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 14
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%80 = call i64 @FUNC(i64 %2)
%81 = call i64 @FUNC(i64 %1)
%82 = call i64 @FUNC()
ret i64 %82
uselistorder i64 %7, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 1 }
uselistorder i64 (i64, i64, i64)* @write_area, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @verify_area, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @pam_set, { 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64)* @g_assert, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | put_psr_13993 | put_psr | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = urem i64 %arg1, 256
%2 = inttoptr i64 %0 to i64*
store i64 %1, i64* %2, align 8
%3 = udiv i64 %arg1, 256
%4 = trunc i64 %3 to i32
%5 = load i64, i64* @gv_0, align 8
%6 = urem i32 %4, 2
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = load i64, i64* @gv_0, align 8
%10 = urem i32 %4, 256
%11 = add i64 %9, 12
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = load i64, i64* @gv_0, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = udiv i64 %arg1, 65536
%16 = trunc i64 %15 to i32
%17 = load i64, i64* @gv_0, align 8
%18 = urem i32 %16, 2
%19 = add i64 %17, 16
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = udiv i64 %arg1, 131072
%22 = trunc i64 %21 to i32
%23 = load i64, i64* @gv_0, align 8
%24 = urem i32 %22, 2
%25 = add i64 %23, 20
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = udiv i64 %arg1, 262144
%28 = trunc i64 %27 to i32
%29 = load i64, i64* @gv_0, align 8
%30 = urem i32 %28, 2
%31 = add i64 %29, 24
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = and i64 %arg1, 16711680
%34 = call i64 @FUNC(i64 %33)
%35 = load i64, i64* @gv_0, align 8
%36 = add i64 %35, 28
%37 = inttoptr i64 %36 to i32*
store i32 1, i32* %37, align 4
ret i64 %35
uselistorder i64 %35, { 1, 0 }
uselistorder i64 %arg1, { 5, 0, 1, 2, 3, 4 }
} | 1 |
BinRealVul | ff_ape_parse_tag_15691 | ff_ape_parse_tag | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp sgt i32 %5, 31
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_12
LBL_1:
%7 = add i64 %4, 4294967264
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %3, i64 %8, i64 0)
%10 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 8)
%11 = bitcast i64* %sv_0 to i8*
%12 = call i32 @strncmp(i8* nonnull %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 8)
%13 = icmp eq i32 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_12
LBL_2:
%14 = call i64 @FUNC(i64 %3)
%15 = trunc i64 %14 to i32
%16 = icmp ult i32 %15, 2001
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 2000, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%18 = ptrtoint i64* %sv_0 to i64
%19 = call i64 @FUNC(i64 %3)
%20 = trunc i64 %19 to i32
%21 = add i32 %20, -32
%22 = icmp ult i32 %21, 16777217
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 %18, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%24 = call i64 @FUNC(i64 %3)
%25 = trunc i64 %24 to i32
%26 = icmp ult i32 %25, 65537
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = and i64 %24, 4294967295
%28 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %27, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%29 = call i64 @FUNC(i64 %3)
%30 = urem i64 %29, 2
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_10, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i64 %18, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%33 = sub i64 %4, %19
%34 = add i64 %33, 4294967264
%35 = and i64 %34, 4294967295
%36 = and i64 %33, 4294967295
%37 = call i64 @FUNC(i64 %3, i64 %36, i64 0)
%38 = icmp eq i32 %25, 0
store i32 0, i32* %storemerge1.reg2mem
store i64 %35, i64* %rax.0.reg2mem
br i1 %38, label LBL_12, label LBL_11
LBL_11:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%39 = call i64 @FUNC(i64 %3)
%40 = trunc i64 %39 to i32
%41 = icmp sgt i32 %40, -1
%42 = add nuw i32 %storemerge1.reload, 1
%43 = icmp ult i32 %42, %25
%or.cond = icmp eq i1 %43, %41
store i32 %42, i32* %storemerge1.reg2mem
store i64 %35, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %18, { 1, 0 }
uselistorder i64* %sv_0, { 2, 0, 1 }
uselistorder i64 %3, { 4, 5, 3, 6, 2, 7, 1, 8, 0, 9, 11, 10, 12 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 8, 7, 6, 5, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @avio_seek, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 3 }
uselistorder label LBL_12, { 0, 1, 4, 5, 6, 7, 2, 3 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.