dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | buffer_needs_copy_14904 | buffer_needs_copy | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge37.reg2mem = alloca i32
%storemerge836.reg2mem = alloca i32
%.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%sv_0.138.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = ptrtoint i64* %sv_2 to i64
store i32 -1, i32* %sv_1, align 4
%4 = add i64 %1, 8
store i64 0, i64* %indvars.iv.reg2mem
store i32* %sv_1, i32** %sv_0.138.reg2mem
br label LBL_4
LBL_1:
%sv_0.138.reload = load i32*, i32** %sv_0.138.reg2mem
%5 = call i64 @FUNC(i64 %1, i64 %indvars.iv.reload)
%sext16 = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext16, 32
%7 = icmp eq i64 %6, %0
%8 = icmp eq i1 %7, false
store i32* %sv_0.138.reload, i32** %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = ptrtoint i32* %sv_0.138.reload to i64
%10 = add i64 %9, 4
%11 = inttoptr i64 %10 to i32*
%12 = trunc i64 %indvars.iv.reload to i32
store i32 %12, i32* %sv_0.138.reload, align 4
store i32* %11, i32** %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%13 = icmp ult i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32* %sv_0.0.reload, i32** %sv_0.138.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %14, %4
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%20 = add i64 %3, -96
%21 = bitcast i64* %rdi to i32*
%22 = add i64 %2, 4
%23 = inttoptr i64 %22 to i32*
%24 = add i64 %1, 4
%25 = inttoptr i64 %24 to i32*
%26 = add i64 %1, 40
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i32*
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i64*
%31 = add i64 %2, 12
%32 = inttoptr i64 %31 to i32*
%33 = add i64 %2, 16
%34 = inttoptr i64 %33 to i32*
%35 = add i64 %0, 8
%36 = inttoptr i64 %35 to i32*
%37 = inttoptr i64 %20 to i32*
%38 = load i32, i32* %21, align 8
%.op = urem i32 %38, 32
store i32 0, i32* %storemerge37.reg2mem
br label LBL_16
LBL_6:
%39 = icmp ne i32 %137, 1
%40 = icmp eq i32 %137, 2
%41 = icmp eq i1 %40, false
%or.cond = icmp eq i1 %39, %41
store i32 0, i32* %storemerge14.reg2mem
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%42 = load i32, i32* %23, align 4
store i32 %42, i32* %storemerge14.reg2mem
br label LBL_8
LBL_8:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%43 = sext i32 %137 to i64
%44 = mul i64 %43, 8
%45 = add i64 %44, %4
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = load i32, i32* %25, align 4
%49 = select i1 %or.cond, i32 0, i32 %.op
%50 = mul i64 %43, 4
%51 = add i64 %50, %26
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = load i32, i32* %28, align 4
%55 = ashr i32 %54, %49
%56 = load i64, i64* %30, align 8
%57 = add i64 %56, %50
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = mul i32 %59, %55
%61 = load i32, i32* %32, align 4
%62 = urem i32 %storemerge14.reload, 32
%63 = ashr i32 %61, %62
%64 = mul i32 %53, %63
%65 = add i32 %64, %60
%66 = sext i32 %65 to i64
%67 = load i32, i32* %34, align 4
%68 = zext i32 %53 to i64
%69 = ashr i32 %67, %49
%70 = mul i32 %59, %69
%71 = icmp ult i32 %53, %70
%72 = sub i64 %47, %68
%73 = icmp slt i64 %72, %66
%or.cond28 = or i1 %73, %71
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond28, label LBL_17, label LBL_9
LBL_9:
%74 = ashr i32 %48, %49
%75 = mul i32 %53, %74
%76 = sext i32 %75 to i64
%77 = add i64 %47, %76
%78 = add i32 %60, %54
%79 = sub i32 %67, %78
%80 = ashr i32 %79, %49
%81 = mul i32 %80, %59
%82 = add i32 %81, %64
%83 = sext i32 %82 to i64
%84 = load i32, i32* %36, align 4
%85 = sext i32 %84 to i64
%86 = sub i64 %68, %77
%87 = add i64 %86, %85
%88 = icmp slt i64 %87, %83
store i64 1, i64* %rax.0.reg2mem
br i1 %88, label LBL_17, label LBL_10
LBL_10:
%89 = load i32, i32* %37, align 8
%90 = icmp slt i32 %89, 0
%91 = icmp eq i1 %90, false
store i32 %89, i32* %.reg2mem
store i32 0, i32* %storemerge836.reg2mem
br i1 %91, label LBL_11, label LBL_15
LBL_11:
%storemerge836.reload = load i32, i32* %storemerge836.reg2mem
%92 = icmp eq i32 %storemerge37.reload, %storemerge836.reload
br i1 %92, label LBL_14, label LBL_12
LBL_12:
%.reload = load i32, i32* %.reg2mem
%93 = sext i32 %.reload to i64
%94 = mul i64 %93, 8
%95 = add i64 %94, %4
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = mul i64 %93, 4
%99 = add i64 %98, %26
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
%102 = icmp ne i32 %.reload, 1
%103 = icmp eq i32 %.reload, 2
%104 = icmp eq i1 %103, false
%or.cond26 = icmp eq i1 %102, %104
%105 = select i1 %or.cond26, i32 0, i32 %.op
%106 = ashr i32 %48, %105
%107 = mul i32 %106, %101
%108 = sext i32 %107 to i64
%.neg34 = sub i64 %47, %97
%109 = sub i64 %.neg34, %108
%110 = icmp slt i64 %109, 1
%. = select i1 %110, i32 -1, i32 1
%111 = sub i64 %109, %66
%112 = icmp slt i64 %111, 1
%storemerge11 = select i1 %112, i32 -1, i32 1
%113 = icmp eq i32 %., %storemerge11
%114 = icmp eq i1 %113, false
store i64 1, i64* %rax.0.reg2mem
br i1 %114, label LBL_17, label LBL_13
LBL_13:
%115 = sub i64 %77, %97
%116 = icmp slt i64 %115, 1
%.18 = select i1 %116, i32 -1, i32 1
%117 = add i64 %115, %83
%118 = icmp slt i64 %117, 1
%storemerge9 = select i1 %118, i32 -1, i32 1
%119 = icmp eq i32 %.18, %storemerge9
store i64 1, i64* %rax.0.reg2mem
br i1 %119, label LBL_14, label LBL_17
LBL_14:
%120 = add i32 %storemerge836.reload, 1
%121 = icmp ult i32 %120, 4
%122 = sext i32 %120 to i64
%123 = mul i64 %122, 4
%124 = add i64 %123, %20
%125 = inttoptr i64 %124 to i32*
%126 = load i32, i32* %125, align 4
%127 = icmp sgt i32 %126, -1
%128 = icmp eq i1 %127, %121
%129 = icmp eq i1 %128, false
%130 = icmp eq i1 %129, false
store i32 %126, i32* %.reg2mem
store i32 %120, i32* %storemerge836.reg2mem
br i1 %130, label LBL_11, label LBL_15
LBL_15:
%131 = add nuw i32 %storemerge37.reload, 1
%132 = icmp ult i32 %131, 4
store i32 %131, i32* %storemerge37.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %132, label LBL_16, label LBL_17
LBL_16:
%storemerge37.reload = load i32, i32* %storemerge37.reg2mem
%133 = sext i32 %storemerge37.reload to i64
%134 = mul i64 %133, 4
%135 = add i64 %134, %20
%136 = inttoptr i64 %135 to i32*
%137 = load i32, i32* %136, align 4
%138 = icmp slt i32 %137, 0
%139 = icmp eq i1 %138, false
store i64 0, i64* %rax.0.reg2mem
br i1 %139, label LBL_6, label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %137, { 3, 2, 1, 0 }
uselistorder i32 %storemerge37.reload, { 2, 1, 0 }
uselistorder i64 %97, { 1, 0 }
uselistorder i32 %.reload, { 1, 2, 0 }
uselistorder i64 %77, { 1, 0 }
uselistorder i64 %66, { 1, 0 }
uselistorder i32 %59, { 1, 0, 2 }
uselistorder i32 %53, { 3, 1, 0, 2 }
uselistorder i64 %50, { 1, 0 }
uselistorder i32 %49, { 2, 0, 3, 1 }
uselistorder i64 %47, { 1, 0, 2 }
uselistorder i1 %or.cond, { 1, 0 }
uselistorder i32 %.op, { 1, 0 }
uselistorder i64 %20, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 3, 2, 1, 0 }
uselistorder i32* %sv_0.138.reload, { 1, 0, 2 }
uselistorder i64 %1, { 0, 1, 3, 2 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32** %sv_0.138.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge836.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 6, 5, 3, 4 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 0, { 6, 4, 1, 3, 5, 2, 0 }
uselistorder i64 1, { 3, 5, 6, 2, 7, 8, 0, 1, 4 }
uselistorder i64 4, { 0, 1, 2, 3, 5, 6, 4, 7 }
uselistorder i1 false, { 6, 5, 0, 4, 2, 1, 3, 8, 7 }
uselistorder i64 8, { 0, 1, 3, 4, 2, 5, 6 }
uselistorder label LBL_17, { 0, 1, 5, 4, 2, 3 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | atrac1_decode_end_1130 | atrac1_decode_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6)
ret i64 0
uselistorder i64 (i64)* @ff_mdct_end, { 2, 1, 0 }
} | 0 |
BinRealVul | svg_post_process_href_6270 | svg_post_process_href | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %3, i64 %2)
%6 = urem i64 %4, 2
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_8, label LBL_1
LBL_1:
%8 = trunc i64 %1 to i32
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
store i64 %4, i64* %.reg2mem
br i1 %10, label LBL_5, label LBL_2
LBL_2:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 %4, i64* %.reg2mem
br i1 %15, label LBL_5, label LBL_3
LBL_3:
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i64 %4, i64* %.reg2mem
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = add i64 %4, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22, i64 %2)
store i64 %22, i64* %.reg2mem
br label LBL_5
LBL_5:
%24 = and i64 %1, 4294967295
%25 = icmp eq i32 %8, 2
%26 = icmp eq i1 %25, false
store i64 %24, i64* %rax.0.reg2mem
br i1 %26, label LBL_8, label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%27 = add i64 %.reload, 16
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %.reload, 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %2, i64 %32, i64 %29)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i64 %33, i64* %rax.0.reg2mem
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = and i64 %33, 4294967295
%37 = call i64 @FUNC(i64 %4, i64 %36, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
store i64 %37, 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 %33, { 1, 0, 2 }
uselistorder i64 %4, { 5, 4, 2, 1, 0, 3, 6 }
uselistorder i64 %2, { 3, 2, 1, 0, 4 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_8, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | gfs2_inplace_release_17718 | gfs2_inplace_release | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
store i64 %3, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | git_index_entry_srch_8866 | git_index_entry_srch | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp ult i64* %arg2, %arg1
%3 = select i1 %2, i64* %arg2, i64* %arg1
%4 = ptrtoint i64* %3 to i64
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = inttoptr i64 %7 to i64*
%13 = trunc i64 %4 to i32
%14 = call i32 @memcmp(i64* %11, i64* %12, i32 %13)
%15 = icmp eq i32 %14, 0
store i32 %14, i32* %rax.0.shrunk.reg2mem
br i1 %15, label LBL_1, label LBL_4
LBL_1:
%16 = icmp ugt i64* %arg2, %arg1
%17 = icmp eq i64* %arg2, %arg1
%.mux = select i1 %16, i32 -1, i32 1
store i32 %.mux, i32* %rax.0.shrunk.reg2mem
br i1 %17, label LBL_2, label LBL_4
LBL_2:
%18 = add i64 %1, 16
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, -1
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %0, 16
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = sub i32 %20, %24
store i32 %25, i32* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 -1, { 1, 0 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | hdmi_get_edid_3989 | hdmi_get_edid | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 57, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0, i64 ptrtoint ([9 x i8]* @gv_0 to i64))
%3 = icmp eq i64 %2, 0
store i64 19, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = mul i32 %14, 128
%16 = add i32 %15, 128
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17, i64 %5)
%19 = trunc i64 %18 to i32
%20 = inttoptr i64 %2 to i64*
%21 = call i64* @memcpy(i64* %arg3, i64* %20, i32 %19)
%22 = add i64 %2, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = inttoptr i64 %2 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = load i32, i32* %11, align 4
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_4, i64 0, i64 0), i8* %31, i64 %28, i64 %25)
%33 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 128, { 1, 0 }
uselistorder [9 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pipe_set_size_13741 | pipe_set_size | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp ugt i64 %0, %arg2
%2 = icmp eq i1 %1, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = call i64 @FUNC(i64 %arg2, i64 0, i64 0)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 -2, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %0, i64 %8, i64 %arg2)
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
store i64 %3, i64* %13, align 8
store i64 %arg2, i64* %7, align 8
%16 = mul i64 %arg2, 4096
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 %0, { 0, 3, 2, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | gf_isom_hint_rtp_read_6956 | gf_isom_hint_rtp_read | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32*, align 8
%6 = call i64 @FUNC(i64 %4)
%7 = trunc i64 %6 to i32
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = call i64 @FUNC(i64 %4, i64 2)
%10 = call i64 @FUNC(i64 %4, i64 1)
%11 = trunc i64 %10 to i32
%12 = add i64 %5, 4
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = call i64 @FUNC(i64 %4, i64 1)
%15 = trunc i64 %14 to i32
%16 = add i64 %5, 8
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = call i64 @FUNC(i64 %4, i64 4)
%19 = call i64 @FUNC(i64 %4, i64 1)
%20 = trunc i64 %19 to i32
%21 = add i64 %5, 12
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = call i64 @FUNC(i64 %4, i64 7)
%24 = trunc i64 %23 to i32
%25 = add i64 %5, 16
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = call i64 @FUNC(i64 %4)
%28 = trunc i64 %27 to i16
%29 = add i64 %5, 20
%30 = inttoptr i64 %29 to i16*
store i16 %28, i16* %30, align 2
%31 = call i64 @FUNC(i64 %4, i64 13)
%32 = call i64 @FUNC(i64 %4, i64 1)
%33 = trunc i64 %32 to i8
%34 = call i64 @FUNC(i64 %4, i64 1)
%35 = trunc i64 %34 to i32
%36 = add i64 %5, 24
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = call i64 @FUNC(i64 %4, i64 1)
%39 = trunc i64 %38 to i32
%40 = add i64 %5, 28
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = call i64 @FUNC(i64 %4)
%43 = icmp eq i8 %33, 0
br i1 %43, label LBL_8, label LBL_1
LBL_1:
%44 = call i64 @FUNC(i64 %4)
%45 = trunc i64 %44 to i32
%46 = bitcast i32** %sv_1 to i64*
%47 = add i64 %5, 40
%48 = inttoptr i64 %47 to i64*
store i32 4, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_2:
%49 = call i64 @FUNC(i64* nonnull %46, i64 %4)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
store i64 %49, i64* %rax.0.shrunk.reg2mem
br i1 %51, label LBL_3, label LBL_22
LBL_3:
%52 = load i32*, i32** %sv_1, align 8
%53 = icmp eq i32* %52, null
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_4, label LBL_6
LBL_4:
%55 = ptrtoint i32* %52 to i64
%56 = load i64, i64* %48, align 8
%57 = call i64 @FUNC(i64 %56, i64 %55)
%58 = load i32*, i32** %sv_1, align 8
%59 = load i32, i32* %58, align 4
%60 = add i32 %59, %sv_0.0.ph.reload
store i32 %60, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%61 = icmp ult i32 %sv_0.0.ph.reload, %45
br label LBL_6
LBL_6:
br i1 %61, label LBL_2, label LBL_7
LBL_7:
%62 = icmp eq i32 %sv_0.0.ph.reload, %45
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %62, label LBL_8, label LBL_22
LBL_8:
%63 = trunc i64 %42 to i16
%64 = icmp eq i16 %63, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %64, label LBL_22, label LBL_9
LBL_9:
%65 = add i64 %5, 48
%66 = inttoptr i64 %65 to i64*
store i32 0, i32* %storemerge13.reg2mem
br label LBL_10
LBL_10:
%67 = call i64 @FUNC(i64 %4)
%68 = urem i64 %67, 256
%69 = call i64 @FUNC(i64 %68)
%70 = icmp eq i64 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_12, label LBL_11
LBL_11:
%72 = add i64 %5, 36
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = zext i32 %74 to i64
%76 = call i64 @FUNC(i64 1, i64 2, i64 %75, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br label LBL_22
LBL_12:
%77 = call i64 @FUNC(i64 %69, i64 %4)
%78 = trunc i64 %77 to i32
%79 = icmp eq i32 %78, 0
store i64 %77, i64* %rax.0.shrunk.reg2mem
br i1 %79, label LBL_13, label LBL_22
LBL_13:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%80 = trunc i64 %67 to i32
%81 = urem i32 %80, 256
%82 = inttoptr i64 %69 to i32*
%83 = icmp eq i32 %81, 3
br i1 %83, label LBL_18, label LBL_14
LBL_14:
%84 = icmp ugt i32 %81, 3
br i1 %84, label LBL_20, label LBL_15
LBL_15:
%trunc = trunc i64 %67 to i8
switch i8 %trunc, label LBL_20 [
i8 1, label LBL_16
i8 2, label LBL_17
]
LBL_16:
%85 = load i32, i32* %82, align 4
%86 = icmp eq i32 %85, 0
br i1 %86, label LBL_20, label LBL_19
LBL_17:
%87 = load i32, i32* %82, align 4
%88 = icmp eq i32 %87, 0
br i1 %88, label LBL_20, label LBL_19
LBL_18:
%89 = load i32, i32* %82, align 4
%90 = icmp eq i32 %89, 0
br i1 %90, label LBL_20, label LBL_19
LBL_19:
%91 = load i64, i64* %66, align 8
%92 = call i64 @FUNC(i64 %91, i64 %69)
br label LBL_21
LBL_20:
%93 = call i64 @FUNC(i64 %69)
br label LBL_21
LBL_21:
%94 = mul i32 %storemerge13.reload, 65536
%sext = add i32 %94, 65536
%95 = ashr exact i32 %sext, 16
%96 = trunc i32 %95 to i16
%97 = icmp ugt i16 %63, %96
store i32 %95, i32* %storemerge13.reg2mem
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %97, label LBL_10, label LBL_22
LBL_22:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32* %82, { 2, 0, 1 }
uselistorder i32 %81, { 1, 0 }
uselistorder i64 %69, { 0, 1, 3, 2, 4 }
uselistorder i64 %67, { 1, 2, 0 }
uselistorder i16 %63, { 1, 0 }
uselistorder i32 %sv_0.0.ph.reload, { 2, 0, 1 }
uselistorder i32 %45, { 1, 0 }
uselistorder i32** %sv_1, { 1, 0, 2 }
uselistorder i64 %5, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i64 %4, { 2, 3, 0, 1, 4, 5, 8, 7, 6, 9, 10, 12, 11, 13, 14, 15, 16 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 2, 6, 4, 5, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 4294967295, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @gf_list_add, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 (i64)* @gf_bs_read_u16, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @gf_bs_read_u32, { 1, 0 }
uselistorder label LBL_22, { 2, 1, 5, 3, 4, 0 }
uselistorder label LBL_20, { 4, 0, 1, 2, 3 }
uselistorder label LBL_19, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | do_cp14_dbg_6244 | do_cp14_dbg | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %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 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = and i64 %arg2, 4294967295
%7 = call i64 @FUNC(i64 %0, i64 %6)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | vnc_client_error_1389 | vnc_client_error | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
ret i64 %2
} | 0 |
BinRealVul | rv40_decode_intra_types_3559 | rv40_decode_intra_types | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i8
%storemerge511.reg2mem = alloca i32
%sv_1.112.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%sv_3.016.reg2mem = alloca i64
%sv_4.018.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = bitcast i64* %rdi to i32*
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = trunc i64 %1 to i32
store i32 %8, i32* %.reg2mem
store i32 0, i32* %sv_4.018.reg2mem
store i64 %2, i64* %sv_3.016.reg2mem
br label LBL_1
LBL_1:
%sv_3.016.reload = load i64, i64* %sv_3.016.reg2mem
%sv_4.018.reload = load i32, i32* %sv_4.018.reg2mem
%.reload = load i32, i32* %.reg2mem
%9 = icmp eq i32 %sv_4.018.reload, 0
%10 = icmp eq i1 %9, false
%11 = icmp eq i32 %.reload, 0
%or.cond = or i1 %10, %11
store i32 0, i32* %storemerge14.reg2mem
store i64 %sv_3.016.reload, i64* %sv_1.112.reg2mem
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%12 = load i64, i64* @gv_0, align 8
%13 = call i64 @FUNC(i64 %3, i64 %12, i64 10, i64 1)
%14 = trunc i64 %13 to i32
%15 = udiv i32 %14, 4
%16 = trunc i32 %15 to i8
%17 = and i8 %16, 2
%18 = inttoptr i64 %sv_3.016.reload to i8*
store i8 %17, i8* %18, align 1
%19 = udiv i32 %14, 2
%20 = add i64 %sv_3.016.reload, 1
%21 = trunc i32 %19 to i8
%22 = and i8 %21, 2
%23 = inttoptr i64 %20 to i8*
store i8 %22, i8* %23, align 1
%24 = add i64 %sv_3.016.reload, 2
%25 = trunc i64 %13 to i8
%26 = and i8 %25, 2
%27 = inttoptr i64 %24 to i8*
store i8 %26, i8* %27, align 1
%28 = mul i8 %25, 2
%29 = add i64 %sv_3.016.reload, 3
%30 = and i8 %28, 2
%31 = inttoptr i64 %29 to i8*
store i8 %30, i8* %31, align 1
br label LBL_18
LBL_3:
%sv_1.112.reload = load i64, i64* %sv_1.112.reg2mem
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%32 = load i32, i32* %7, align 4
%33 = sub i32 0, %32
%34 = sext i32 %33 to i64
%35 = add i64 %sv_1.112.reload, 1
%36 = add i64 %35, %34
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = sext i8 %38 to i32
%40 = add i64 %sv_1.112.reload, %34
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = sext i8 %42 to i32
%44 = add i64 %sv_1.112.reload, -1
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = sext i8 %46 to i32
%48 = mul i32 %43, 16
%49 = add nsw i32 %48, %39
%50 = mul i32 %47, 256
%51 = add nsw i32 %49, %50
store i32 0, i32* %storemerge511.reg2mem
br label LBL_4
LBL_4:
%storemerge511.reload = load i32, i32* %storemerge511.reg2mem
%52 = sext i32 %storemerge511.reload to i64
%53 = mul i64 %52, 4
%54 = add i64 %53, ptrtoint (i32** @gv_1 to i64)
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp eq i32 %51, %56
br i1 %57, label LBL_6, label LBL_5
LBL_5:
%58 = add nuw i32 %storemerge511.reload, 1
%59 = icmp ult i32 %58, 16
store i32 %58, i32* %storemerge511.reg2mem
br i1 %59, label LBL_4, label LBL_8
LBL_6:
%60 = icmp sgt i32 %storemerge14.reload, 2
br i1 %60, label LBL_8, label LBL_7
LBL_7:
%61 = mul i64 %52, 8
%62 = add i64 %61, ptrtoint (i64* @gv_2 to i64)
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %3, i64 %64, i64 5, i64 2)
%sext = mul i64 %65, 4294967296
%66 = ashr exact i64 %sext, 32
%narrow = mul nsw i64 %66, 954437177
%67 = udiv i64 %narrow, 8589934592
%68 = trunc i64 %67 to i32
%69 = trunc i64 %65 to i32
%70 = ashr i32 %69, 31
%71 = sub i32 %68, %70
%72 = trunc i32 %71 to i8
%73 = inttoptr i64 %sv_1.112.reload to i8*
store i8 %72, i8* %73, align 1
%74 = udiv i64 %narrow, 4294967296
%75 = trunc i64 %74 to i32
%76 = ashr i32 %75, 1
%77 = sub nsw i32 %76, %70
%78 = mul i32 %77, -9
%79 = add i32 %78, %69
%80 = add i64 %sv_1.112.reload, 2
%81 = trunc i32 %79 to i8
%82 = inttoptr i64 %35 to i8*
store i8 %81, i8* %82, align 1
%83 = add i32 %storemerge14.reload, 1
store i64 %80, i64* %sv_1.0.reg2mem
store i32 %83, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_8:
%84 = icmp eq i8 %42, -1
%85 = icmp eq i8 %46, -1
%or.cond8 = or i1 %84, %85
br i1 %or.cond8, label LBL_10, label LBL_9
LBL_9:
%86 = mul nsw i32 %47, 10
%87 = add nsw i32 %86, %43
%88 = sext i32 %87 to i64
%89 = mul i64 %88, 8
%90 = add i64 %89, ptrtoint (i64* @gv_3 to i64)
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = call i64 @FUNC(i64 %3, i64 %92, i64 3, i64 1)
%94 = trunc i64 %93 to i8
store i8 %94, i8* %sv_2.0.reg2mem
br label LBL_16
LBL_10:
%95 = icmp eq i8 %46, 2
br i1 %95, label LBL_15, label LBL_11
LBL_11:
%96 = icmp sgt i8 %46, 2
store i8 0, i8* %sv_2.0.reg2mem
br i1 %96, label LBL_16, label LBL_12
LBL_12:
store i8 0, i8* %sv_2.0.reg2mem
switch i8 %46, label LBL_16 [
i8 -1, label LBL_13
i8 0, label LBL_15
]
LBL_13:
%97 = icmp sgt i8 %42, 1
store i8 0, i8* %sv_2.0.reg2mem
br i1 %97, label LBL_16, label LBL_14
LBL_14:
%98 = call i64 @FUNC(i64 %3)
%99 = trunc i64 %98 to i8
%100 = xor i8 %99, 1
store i8 %100, i8* %sv_2.0.reg2mem
br label LBL_16
LBL_15:
%101 = call i64 @FUNC(i64 %3)
%102 = trunc i64 %101 to i8
%103 = mul i8 %102, 2
%104 = xor i8 %103, 2
store i8 %104, i8* %sv_2.0.reg2mem
br label LBL_16
LBL_16:
%sv_2.0.reload = load i8, i8* %sv_2.0.reg2mem
%105 = inttoptr i64 %sv_1.112.reload to i8*
store i8 %sv_2.0.reload, i8* %105, align 1
store i64 %35, i64* %sv_1.0.reg2mem
store i32 %storemerge14.reload, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%106 = add i32 %sv_0.0.reload, 1
%107 = icmp slt i32 %106, 4
store i32 %106, i32* %storemerge14.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.112.reg2mem
br i1 %107, label LBL_3, label LBL_18
LBL_18:
%108 = add nuw nsw i32 %sv_4.018.reload, 1
%exitcond = icmp eq i32 %108, 4
br i1 %exitcond, label LBL_20, label LBL_18.LBL_1_crit_edge
LBL_19:
%109 = load i32, i32* %7, align 4
%110 = sext i32 %109 to i64
%111 = add i64 %sv_3.016.reload, %110
%.pre = load i32, i32* %4, align 8
store i32 %.pre, i32* %.reg2mem
store i32 %108, i32* %sv_4.018.reg2mem
store i64 %111, i64* %sv_3.016.reg2mem
br label LBL_1
LBL_20:
ret i64 0
uselistorder i64 %65, { 1, 0 }
uselistorder i32 %47, { 1, 0 }
uselistorder i32 %43, { 1, 0 }
uselistorder i64 %35, { 0, 2, 1 }
uselistorder i64 %sv_1.112.reload, { 4, 2, 1, 3, 5, 0 }
uselistorder i64 %sv_3.016.reload, { 5, 1, 2, 3, 4, 0 }
uselistorder i64 %3, { 4, 3, 2, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.018.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.016.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.112.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge511.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_2.0.reg2mem, { 0, 6, 3, 4, 1, 5, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @get_bits1, { 1, 0 }
uselistorder i8 0, { 1, 3, 0, 2 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i8 2, { 2, 0, 3, 4, 5, 1, 6, 7, 8 }
uselistorder i32 4, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64, i64)* @get_vlc2, { 2, 1, 0 }
uselistorder i64 1, { 0, 2, 3, 1 }
uselistorder i32 0, { 0, 4, 1, 3, 5, 2 }
uselistorder label LBL_16, { 3, 2, 1, 0, 4, 5 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | uncompress_image_8007 | uncompress_image | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %2, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_1:
%11 = ptrtoint i64* %arg1 to i64
%12 = trunc i64 %1 to i32
%13 = ptrtoint i64* %arg3 to i64
%14 = bitcast i64* %rsi to i32*
%15 = bitcast i64* %arg1 to i32*
store i32 %12, i32* %15, align 4
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %11, 4
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %11, 8
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
%26 = load i64, i64* %22, align 8
%27 = load i32, i32* %14, align 8
%28 = load i32, i32* %17, align 4
%29 = mul i32 %28, %27
%30 = zext i32 %29 to i64
%31 = add i64 %26, %30
%32 = add i64 %11, 24
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = add i64 %11, 20
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = call i64 @FUNC(i64 %11, i64 %13)
%38 = load i32, i32* %35, align 4
%39 = sub i32 %38, %36
%40 = add i64 %2, 20
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %11, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | spapr_reset_htab_2569 | spapr_reset_htab | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = icmp slt i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 4210764, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
br label LBL_8
LBL_2:
%8 = icmp slt i64 %4, 1
br i1 %8, label LBL_7, label LBL_3
LBL_3:
%sext = mul i64 %1, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = icmp eq i64 %4, %9
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 ptrtoint (i64* @gv_1 to i64), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label LBL_8, label LBL_6
LBL_6:
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i8*
store i8 1, i8* %17, align 1
br label LBL_8
LBL_7:
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i64*
%22 = call i64* @memset(i64* %21, i32 0, i32 1024)
br label LBL_8
LBL_8:
%23 = add i64 %2, 24
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_9
LBL_9:
%27 = bitcast i64* %rdi to i32*
%28 = load i32, i32* %27, align 8
%29 = call i64 @FUNC()
%30 = zext i32 %28 to i64
%31 = and i64 %29, 4294967295
%32 = call i64 @FUNC(i64 %31, i64 %30)
%33 = trunc i64 %32 to i32
%34 = add i64 %2, 28
%35 = inttoptr i64 %34 to i32*
store i32 %33, i32* %35, align 4
store i64 %32, 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 %2, { 2, 3, 4, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64, i8*)* @error_setg, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
} | 0 |
BinRealVul | ValidFileNameComponent_7626 | ValidFileNameComponent | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
switch i32 %2, label LBL_1 [
i32 0, label LBL_44
i32 67, label LBL_2
]
LBL_1:
%3 = icmp eq i32 %2, 99
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_7, label LBL_2
LBL_2:
%5 = add i64 %arg1, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
switch i32 %7, label LBL_3 [
i32 0, label LBL_7
i32 79, label LBL_4
]
LBL_3:
%8 = icmp eq i32 %7, 111
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_7, label LBL_4
LBL_4:
%10 = add i64 %arg1, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
switch i32 %12, label LBL_5 [
i32 0, label LBL_7
i32 78, label LBL_6
]
LBL_5:
%13 = icmp eq i32 %12, 110
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_7, label LBL_6
LBL_6:
%15 = add i64 %arg1, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_7, label LBL_48
LBL_7:
switch i32 %2, label LBL_8 [
i32 0, label LBL_44
i32 80, label LBL_9
]
LBL_8:
%20 = icmp eq i32 %2, 112
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_14, label LBL_9
LBL_9:
%22 = add i64 %arg1, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
switch i32 %24, label LBL_10 [
i32 0, label LBL_14
i32 82, label LBL_11
]
LBL_10:
%25 = icmp eq i32 %24, 114
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_14, label LBL_11
LBL_11:
%27 = add i64 %arg1, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
switch i32 %29, label LBL_12 [
i32 0, label LBL_14
i32 78, label LBL_13
]
LBL_12:
%30 = icmp eq i32 %29, 110
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_14, label LBL_13
LBL_13:
%32 = add i64 %arg1, 12
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_14, label LBL_48
LBL_14:
switch i32 %2, label LBL_15 [
i32 0, label LBL_44
i32 65, label LBL_16
]
LBL_15:
%37 = icmp eq i32 %2, 97
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_21, label LBL_16
LBL_16:
%39 = add i64 %arg1, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
switch i32 %41, label LBL_17 [
i32 0, label LBL_21
i32 85, label LBL_18
]
LBL_17:
%42 = icmp eq i32 %41, 117
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_21, label LBL_18
LBL_18:
%44 = add i64 %arg1, 8
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
switch i32 %46, label LBL_19 [
i32 0, label LBL_21
i32 88, label LBL_20
]
LBL_19:
%47 = icmp eq i32 %46, 120
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_21, label LBL_20
LBL_20:
%49 = add i64 %arg1, 12
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
store i64 0, i64* %rax.0.reg2mem
br i1 %53, label LBL_21, label LBL_48
LBL_21:
switch i32 %2, label LBL_22 [
i32 0, label LBL_44
i32 78, label LBL_23
]
LBL_22:
%54 = icmp eq i32 %2, 110
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_28, label LBL_23
LBL_23:
%56 = add i64 %arg1, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
switch i32 %58, label LBL_24 [
i32 0, label LBL_28
i32 85, label LBL_25
]
LBL_24:
%59 = icmp eq i32 %58, 117
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_28, label LBL_25
LBL_25:
%61 = add i64 %arg1, 8
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
switch i32 %63, label LBL_26 [
i32 0, label LBL_28
i32 76, label LBL_27
]
LBL_26:
%64 = icmp eq i32 %63, 108
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_28, label LBL_27
LBL_27:
%66 = add i64 %arg1, 12
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, 0
%70 = icmp eq i1 %69, false
store i64 0, i64* %rax.0.reg2mem
br i1 %70, label LBL_28, label LBL_48
LBL_28:
switch i32 %2, label LBL_29 [
i32 0, label LBL_44
i32 76, label LBL_30
]
LBL_29:
%71 = icmp eq i32 %2, 108
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_36, label LBL_30
LBL_30:
%73 = add i64 %arg1, 4
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
switch i32 %75, label LBL_31 [
i32 0, label LBL_36
i32 80, label LBL_32
]
LBL_31:
%76 = icmp eq i32 %75, 112
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_36, label LBL_32
LBL_32:
%78 = add i64 %arg1, 8
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
switch i32 %80, label LBL_33 [
i32 0, label LBL_36
i32 84, label LBL_34
]
LBL_33:
%81 = icmp eq i32 %80, 116
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_36, label LBL_34
LBL_34:
%83 = add i64 %arg1, 12
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%.off = add i32 %85, -48
%86 = icmp ugt i32 %.off, 9
br i1 %86, label LBL_36, label LBL_35
LBL_35:
%87 = add i64 %arg1, 16
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
store i64 0, i64* %rax.0.reg2mem
br i1 %91, label LBL_36, label LBL_48
LBL_36:
switch i32 %2, label LBL_37 [
i32 0, label LBL_44
i32 67, label LBL_38
]
LBL_37:
%92 = icmp eq i32 %2, 99
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_44, label LBL_38
LBL_38:
%94 = add i64 %arg1, 4
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
switch i32 %96, label LBL_39 [
i32 0, label LBL_44
i32 79, label LBL_40
]
LBL_39:
%97 = icmp eq i32 %96, 111
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_44, label LBL_40
LBL_40:
%99 = add i64 %arg1, 8
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
switch i32 %101, label LBL_41 [
i32 0, label LBL_44
i32 77, label LBL_42
]
LBL_41:
%102 = icmp eq i32 %101, 109
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_44, label LBL_42
LBL_42:
%104 = add i64 %arg1, 12
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%.off8 = add i32 %106, -48
%107 = icmp ugt i32 %.off8, 9
br i1 %107, label LBL_44, label LBL_43
LBL_43:
%108 = add i64 %arg1, 16
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = icmp eq i32 %110, 0
%112 = icmp eq i1 %111, false
store i64 0, i64* %rax.0.reg2mem
br i1 %112, label LBL_44, label LBL_48
LBL_44:
%113 = inttoptr i64 %arg1 to i32*
%114 = load i32, i32* %113, align 4
%115 = icmp eq i32 %114, 0
%116 = icmp eq i1 %115, false
store i32 %114, i32* %.reg2mem
store i64 %arg1, i64* %storemerge9.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %116, label LBL_45, label LBL_48
LBL_45:
%.reload = load i32, i32* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
switch i32 %.reload, label LBL_46 [
i32 60, label LBL_48
i32 62, label LBL_48
i32 58, label LBL_48
i32 34, label LBL_48
i32 47, label LBL_48
i32 92, label LBL_48
i32 124, label LBL_48
i32 63, label LBL_48
]
LBL_46:
%117 = icmp eq i32 %.reload, 42
%118 = icmp eq i1 %117, false
store i64 0, i64* %rax.0.reg2mem
br i1 %118, label LBL_47, label LBL_48
LBL_47:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%119 = add i64 %storemerge9.reload, 4
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = icmp eq i32 %121, 0
%123 = icmp eq i1 %122, false
store i32 %121, i32* %.reg2mem
store i64 %119, i64* %storemerge9.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %123, label LBL_45, label LBL_48
LBL_48:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %101, { 1, 0 }
uselistorder i32 %96, { 1, 0 }
uselistorder i32 %80, { 1, 0 }
uselistorder i32 %75, { 1, 0 }
uselistorder i32 %63, { 1, 0 }
uselistorder i32 %58, { 1, 0 }
uselistorder i32 %46, { 1, 0 }
uselistorder i32 %41, { 1, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %2, { 1, 0, 7, 6, 3, 2, 9, 8, 5, 4, 10, 11 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge9.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 9, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 1, 19, 18, 20, 21, 15, 14, 16, 17, 11, 12, 13, 8, 9, 10, 5, 6, 7, 2, 3, 4 }
uselistorder label LBL_48, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 10, 11, 12, 13, 14, 15, 16 }
uselistorder label LBL_45, { 1, 0 }
uselistorder label LBL_44, { 8, 9, 10, 5, 11, 6, 12, 7, 4, 0, 2, 1, 3 }
uselistorder label LBL_42, { 1, 0 }
uselistorder label LBL_40, { 1, 0 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_36, { 2, 3, 4, 0, 5, 1, 6 }
uselistorder label LBL_34, { 1, 0 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 2, 3, 0, 4, 1, 5 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_21, { 2, 3, 0, 4, 1, 5 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 2, 3, 0, 4, 1, 5 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 2, 3, 0, 4, 1, 5 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vba_read_project_strings_19062 | vba_read_project_strings | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i32
%sv_0.017.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64*
%sv_1.2.reg2mem = alloca i64
%sv_0.019.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_1.046.reg2mem = alloca i64
%sv_2.047.reg2mem = alloca i32
%sv_0.048.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_3 = alloca i32, align 4
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = trunc i64 %arg2 to i32
%5 = and i64 %3, 4294967295
%6 = bitcast i32* %sv_3 to i64*
%7 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i32 0, i32* %sv_0.018.reg2mem
br i1 %9, label LBL_26, label LBL_1
LBL_1:
%10 = trunc i64 %3 to i32
%11 = ptrtoint i32* %sv_3 to i64
store i32 0, i32* %sv_0.048.reg2mem
store i32 0, i32* %sv_2.047.reg2mem
store i64 0, i64* %sv_1.046.reg2mem
br label LBL_2
LBL_2:
%sv_1.046.reload = load i64, i64* %sv_1.046.reg2mem
%sv_0.048.reload = load i32, i32* %sv_0.048.reg2mem
%12 = load i32, i32* %sv_3, align 4
%13 = trunc i32 %12 to i16
%14 = icmp ult i16 %13, 6
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i32 @lseek(i32 %10, i32 -2, i32 1)
store i32 %sv_0.048.reload, i32* %sv_0.019.reg2mem
store i64 %sv_1.046.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_4:
%sv_2.047.reload = load i32, i32* %sv_2.047.reg2mem
%16 = trunc i32 %sv_2.047.reload to i16
%17 = icmp ult i16 %16, %13
%18 = icmp eq i1 %17, false
store i64 %sv_1.046.reload, i64* %sv_1.1.reg2mem
store i32 %sv_2.047.reload, i32* %sv_2.1.reg2mem
br i1 %18, label LBL_9, label LBL_5
LBL_5:
%19 = urem i32 %12, 65536
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %sv_1.046.reload, i64 %20)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_8, label LBL_6
LBL_6:
%24 = icmp eq i64 %sv_1.046.reload, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %24, label LBL_27, label LBL_7
LBL_7:
%25 = inttoptr i64 %sv_1.046.reload to i64*
call void @free(i64* %25)
store i64 0, i64* %storemerge.reg2mem
br label LBL_27
LBL_8:
%26 = load i32, i32* %sv_3, align 4
%sext7 = mul i32 %26, 65536
%27 = ashr exact i32 %sext7, 16
store i64 %21, i64* %sv_1.1.reg2mem
store i32 %27, i32* %sv_2.1.reg2mem
br label LBL_9
LBL_9:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%28 = call i32 @lseek(i32 %10, i32 0, i32 1)
%29 = load i32, i32* %sv_3, align 4
%30 = urem i32 %29, 65536
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %5, i64 %sv_1.1.reload, i64 %31)
%33 = load i32, i32* %sv_3, align 4
%34 = urem i32 %33, 65536
%35 = trunc i64 %32 to i32
%36 = icmp eq i32 %34, %35
%37 = zext i32 %34 to i64
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %sv_1.1.reload, i64 %37, i64 %sv_1.1.reload, i64 %2, i64 %1)
%39 = call i32 @lseek(i32 %10, i32 %28, i32 0)
store i32 %sv_0.048.reload, i32* %sv_0.019.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_11:
%40 = call i64 @FUNC(i64 %sv_1.1.reload, i64 %37, i32 %4)
%41 = icmp eq i64 %40, 0
%storemerge8 = select i1 %41, i64 ptrtoint ([7 x i8]* @gv_1 to i64), i64 %40
%42 = load i32, i32* %sv_3, align 4
%43 = urem i32 %42, 65536
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i64 %44, i64 %storemerge8, i64 %44, i64 %2, i64 %1)
br i1 %41, label LBL_22, label LBL_12
LBL_12:
%46 = inttoptr i64 %40 to i64*
%47 = call i32 @memcmp(i64* bitcast ([3 x i8]* @gv_3 to i64*), i64* %46, i32 2)
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_14, label LBL_13
LBL_13:
%50 = add i64 %40, 2
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = sext i8 %52 to i32
%54 = call i8* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i32 %53)
%55 = icmp eq i8* %54, null
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = load i32, i32* %sv_3, align 4
%58 = urem i32 %57, 65536
%59 = sub nuw nsw i32 -2, %58
%60 = call i32 @lseek(i32 %10, i32 %59, i32 1)
call void @free(i64* %46)
store i32 %sv_0.048.reload, i32* %sv_0.019.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_15:
call void @free(i64* %46)
%61 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_18, label LBL_16
LBL_16:
%65 = icmp eq i64 %sv_1.1.reload, 0
store i32 %sv_0.048.reload, i32* %sv_0.018.reg2mem
br i1 %65, label LBL_26, label LBL_17
LBL_17:
%66 = inttoptr i64 %sv_1.1.reload to i64*
call void @free(i64* %66)
store i64* %66, i64** %.pre-phi.reg2mem
store i32 %sv_0.048.reload, i32* %sv_0.017.reg2mem
br label LBL_25
LBL_18:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%67 = load i32, i32* %sv_3, align 4
%68 = trunc i32 %67 to i16
switch i16 %68, label LBL_19 [
i16 0, label LBL_21
i16 -1, label LBL_21
]
LBL_19:
%69 = call i32 @lseek(i32 %10, i32 -2, i32 1)
br label LBL_20
LBL_20:
%70 = add i32 %sv_0.048.reload, 1
%71 = call i64 @FUNC(i64 %5, i64* nonnull %6, i32 %4)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
store i32 %70, i32* %sv_0.048.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.047.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.046.reg2mem
store i32 %70, i32* %sv_0.019.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br i1 %73, label LBL_23, label LBL_2
LBL_21:
%74 = call i32 @lseek(i32 %10, i32 10, i32 1)
%75 = sext i32 %74 to i64
%76 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i64 %75, i64 1, i64 %11, i64 %2, i64 %1)
%77 = call i64 @FUNC(i64 %5)
br label LBL_20
LBL_22:
%78 = load i32, i32* %sv_3, align 4
%79 = urem i32 %78, 65536
%80 = sub nuw nsw i32 -2, %79
%81 = call i32 @lseek(i32 %10, i32 %80, i32 1)
store i32 %sv_0.048.reload, i32* %sv_0.019.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_23
LBL_23:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_0.019.reload = load i32, i32* %sv_0.019.reg2mem
%82 = icmp eq i64 %sv_1.2.reload, 0
%83 = icmp eq i1 %82, false
store i32 %sv_0.019.reload, i32* %sv_0.018.reg2mem
br i1 %83, label LBL_23.LBL_25_crit_edge, label LBL_26
LBL_24:
%.pre = inttoptr i64 %sv_1.2.reload to i64*
store i64* %.pre, i64** %.pre-phi.reg2mem
store i32 %sv_0.019.reload, i32* %sv_0.017.reg2mem
br label LBL_25
LBL_25:
%sv_0.017.reload = load i32, i32* %sv_0.017.reg2mem
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
call void @free(i64* %.pre-phi.reload)
store i32 %sv_0.017.reload, i32* %sv_0.018.reg2mem
br label LBL_26
LBL_26:
%sv_0.018.reload = load i32, i32* %sv_0.018.reg2mem
%84 = zext i32 %sv_0.018.reload to i64
store i64 %84, i64* %storemerge.reg2mem
br label LBL_27
LBL_27:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.019.reload, { 1, 0 }
uselistorder i64 %sv_1.2.reload, { 1, 0 }
uselistorder i64* %46, { 1, 0, 2 }
uselistorder i64 %44, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 1, 0, 10, 8, 9, 3, 5, 2, 7, 6, 4 }
uselistorder i32 %sv_0.048.reload, { 2, 6, 1, 0, 4, 3, 5 }
uselistorder i64 %sv_1.046.reload, { 3, 4, 2, 1, 0 }
uselistorder i32 %10, { 1, 4, 5, 2, 3, 6, 0 }
uselistorder i64* %6, { 2, 1, 0 }
uselistorder i64 %5, { 1, 4, 2, 3, 0 }
uselistorder i32 %4, { 3, 1, 2, 0 }
uselistorder i32* %sv_3, { 0, 8, 6, 5, 4, 3, 2, 1, 7, 9 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %sv_0.048.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.047.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.046.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.019.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.017.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.018.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @cli_dbgmsg, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 0 }
uselistorder i32 65536, { 1, 2, 3, 4, 5, 0, 6, 7, 8 }
uselistorder i32 (i32, i32, i32)* @lseek, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i32 0, { 8, 6, 7, 4, 5, 1, 2, 0, 3, 9 }
uselistorder i64 (i64, i64*, i32)* @read_uint16, { 1, 2, 0 }
uselistorder i32 1, { 17, 18, 26, 19, 20, 21, 22, 23, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 3, 27, 2, 24, 1, 0, 25, 16, 4 }
uselistorder label LBL_27, { 2, 1, 0 }
uselistorder label LBL_26, { 3, 2, 1, 0 }
uselistorder label LBL_23, { 1, 0, 2, 3, 4 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | unpack_timestamp_5784 | unpack_timestamp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %1, 65536
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 7
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i64
%9 = add i64 %2, 6
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i64
%13 = mul i64 %12, 256
%14 = add i64 %2, 5
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i64
%18 = mul i64 %17, 65536
%19 = add i64 %2, 4
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = mul i64 %22, 16777216
%24 = add i64 %2, 3
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i64
%28 = mul i64 %27, 4294967296
%29 = add i64 %2, 2
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i64
%33 = mul i64 %32, 1099511627776
%34 = mul i64 %4, 281474976710656
%35 = or i64 %34, %8
%36 = or i64 %35, %13
%37 = or i64 %36, %18
%38 = or i64 %37, %23
%39 = or i64 %38, %28
%40 = or i64 %39, %33
ret i64 %40
uselistorder i64 %2, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 256, { 0, 3, 2, 1 }
} | 0 |
BinRealVul | compute_read_bwidth_16412 | compute_read_bwidth | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i128
%0 = load i128, i128* @gv_0, align 8
%1 = trunc i128 %0 to i64
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i128 %0, i128* %.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_2, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i128, i128* @gv_0, align 8
store i128 %.pre, i128* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i128, i128* %.reg2mem
%4 = load i64, i64* @gv_4, align 8
%5 = mul i64 %4, 4096
%6 = zext i64 %5 to i128
%7 = and i128 %.reload, 18446744073709551615
%8 = udiv i128 %6, %7
%9 = trunc i128 %8 to i64
ret i64 %9
uselistorder i128* %.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | send_ext_key_event_ack_931 | send_ext_key_event_ack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = call i64 @FUNC(i64 %0, i64 0)
%4 = call i64 @FUNC(i64 %0, i64 1)
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %0)
%7 = and i64 %5, 4294967295
%8 = and i64 %6, 4294967295
%9 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 %8, i64 %7, i64 0)
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 %0)
ret i64 %11
uselistorder i64 %0, { 2, 1, 0, 5, 4, 3, 6, 7, 8 }
uselistorder i64 (i64, i64)* @vnc_write_u8, { 1, 0 }
} | 0 |
BinRealVul | vnc_client_write_buf_16621 | vnc_client_write_buf | define i64 @FUNC(i32* %arg1, i16* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = bitcast i16* %arg2 to i64*
%5 = trunc i64 %arg3 to i32
%6 = call i32 @send(i32 %3, i64* %4, i32 %5, i32 0)
%7 = sext i32 %6 to i64
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i16* %arg2, i64 %arg3, i32 %6)
%9 = call i64 @FUNC()
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %2, i64 %7, i64 %10)
ret i64 %11
} | 1 |
BinRealVul | conditional_6380 | conditional | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = call i64 @FUNC(i64 %arg1, i64 63)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %1, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64 %arg1, i64 0)
%7 = call i64 @FUNC(i64 %arg1, i64 58)
%8 = call i64 @FUNC(i64 %arg1, i64 %0)
%9 = call i64 @FUNC()
%10 = call i64 @FUNC(i64 0, i64 %1, i64 %6, i64 %8)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @assignment, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | rend_service_port_config_new_10657 | rend_service_port_config_new | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 261)
store i64 %2, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%3 = inttoptr i64 %arg1 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = sext i32 %4 to i64
%6 = add i32 %4, 1
%7 = add nsw i64 %5, 261
%8 = call i64 @FUNC(i64 %7)
%9 = inttoptr i64 %8 to i64*
%10 = inttoptr i64 %arg1 to i64*
%11 = call i64* @memcpy(i64* %9, i64* %10, i32 %6)
%12 = add i64 %8, 256
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
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 }
uselistorder i64 (i64)* @tor_malloc_zero, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | skcipher_setkey_6538 | skcipher_setkey | define i64 @FUNC(i64* %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0, i32 %arg3)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = and i64 %2, 4294967295
ret i64 %8
} | 0 |
BinRealVul | AVC_DuplicateConfig_7822 | AVC_DuplicateConfig | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv6.reg2mem = alloca i64
%indvars.iv10.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = trunc i64 %1 to i32
%4 = inttoptr i64 %2 to i32*
store i32 %3, i32* %4, align 4
%5 = add i64 %arg1, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = add i64 %arg1, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %arg1, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %2, 12
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %arg1, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %2, 16
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = add i64 %arg1, 20
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %2, 20
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = add i64 %arg1, 24
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i64 %2, 24
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %arg1, 28
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %2, 28
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %arg1, 32
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %2, 32
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %arg1, 40
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = call i64 @FUNC(i64 %47)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label LBL_3, label LBL_1
LBL_1:
%51 = add i64 %2, 40
%52 = inttoptr i64 %51 to i64*
%wide.trip.count12 = and i64 %48, 4294967295
store i64 0, i64* %indvars.iv10.reg2mem
br label LBL_2
LBL_2:
%indvars.iv10.reload = load i64, i64* %indvars.iv10.reg2mem
%53 = load i64, i64* %46, align 8
%54 = call i64 @FUNC(i64 %53, i64 %indvars.iv10.reload)
%55 = call i64 @FUNC(i64 16)
%56 = inttoptr i64 %54 to i32*
%57 = load i32, i32* %56, align 4
%58 = inttoptr i64 %55 to i32*
store i32 %57, i32* %58, align 4
%59 = add i64 %54, 4
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i64 %55, 4
%63 = inttoptr i64 %62 to i32*
store i32 %61, i32* %63, align 4
%64 = load i32, i32* %56, align 4
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i64 %65)
%67 = add i64 %55, 8
%68 = inttoptr i64 %67 to i64*
store i64 %66, i64* %68, align 8
%69 = load i32, i32* %56, align 4
%70 = add i64 %54, 8
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = inttoptr i64 %66 to i64*
%74 = inttoptr i64 %72 to i64*
%75 = call i64* @memcpy(i64* %73, i64* %74, i32 %69)
%76 = load i64, i64* %52, align 8
%77 = call i64 @FUNC(i64 %76, i64 %55)
%indvars.iv.next11 = add nuw nsw i64 %indvars.iv10.reload, 1
%exitcond13 = icmp eq i64 %indvars.iv.next11, %wide.trip.count12
store i64 %indvars.iv.next11, i64* %indvars.iv10.reg2mem
br i1 %exitcond13, label LBL_3, label LBL_2
LBL_3:
%78 = add i64 %arg1, 48
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = call i64 @FUNC(i64 %80)
%82 = trunc i64 %81 to i32
%83 = icmp eq i32 %82, 0
br i1 %83, label LBL_6, label LBL_4
LBL_4:
%84 = add i64 %2, 48
%85 = inttoptr i64 %84 to i64*
%wide.trip.count8 = and i64 %81, 4294967295
store i64 0, i64* %indvars.iv6.reg2mem
br label LBL_5
LBL_5:
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%86 = load i64, i64* %79, align 8
%87 = call i64 @FUNC(i64 %86, i64 %indvars.iv6.reload)
%88 = call i64 @FUNC(i64 16)
%89 = inttoptr i64 %87 to i32*
%90 = load i32, i32* %89, align 4
%91 = inttoptr i64 %88 to i32*
store i32 %90, i32* %91, align 4
%92 = add i64 %87, 4
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = add i64 %88, 4
%96 = inttoptr i64 %95 to i32*
store i32 %94, i32* %96, align 4
%97 = load i32, i32* %89, align 4
%98 = zext i32 %97 to i64
%99 = call i64 @FUNC(i64 %98)
%100 = add i64 %88, 8
%101 = inttoptr i64 %100 to i64*
store i64 %99, i64* %101, align 8
%102 = load i32, i32* %89, align 4
%103 = add i64 %87, 8
%104 = inttoptr i64 %103 to i64*
%105 = load i64, i64* %104, align 8
%106 = inttoptr i64 %99 to i64*
%107 = inttoptr i64 %105 to i64*
%108 = call i64* @memcpy(i64* %106, i64* %107, i32 %102)
%109 = load i64, i64* %85, align 8
%110 = call i64 @FUNC(i64 %109, i64 %88)
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond9 = icmp eq i64 %indvars.iv.next7, %wide.trip.count8
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
br i1 %exitcond9, label LBL_6, label LBL_5
LBL_6:
%111 = add i64 %arg1, 56
%112 = inttoptr i64 %111 to i64*
%113 = load i64, i64* %112, align 8
%114 = icmp eq i64 %113, 0
br i1 %114, label LBL_10, label LBL_7
LBL_7:
%115 = call i64 @FUNC()
%116 = add i64 %2, 56
%117 = inttoptr i64 %116 to i64*
store i64 %115, i64* %117, align 8
%118 = load i64, i64* %112, align 8
%119 = call i64 @FUNC(i64 %118)
%120 = trunc i64 %119 to i32
%121 = icmp eq i32 %120, 0
br i1 %121, label LBL_10, label LBL_8
LBL_8:
%wide.trip.count = and i64 %119, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_9
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%122 = load i64, i64* %112, align 8
%123 = call i64 @FUNC(i64 %122, i64 %indvars.iv.reload)
%124 = call i64 @FUNC(i64 16)
%125 = inttoptr i64 %123 to i32*
%126 = load i32, i32* %125, align 4
%127 = inttoptr i64 %124 to i32*
store i32 %126, i32* %127, align 4
%128 = add i64 %123, 4
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = add i64 %124, 4
%132 = inttoptr i64 %131 to i32*
store i32 %130, i32* %132, align 4
%133 = load i32, i32* %125, align 4
%134 = zext i32 %133 to i64
%135 = call i64 @FUNC(i64 %134)
%136 = add i64 %124, 8
%137 = inttoptr i64 %136 to i64*
store i64 %135, i64* %137, align 8
%138 = load i32, i32* %125, align 4
%139 = add i64 %123, 8
%140 = inttoptr i64 %139 to i64*
%141 = load i64, i64* %140, align 8
%142 = inttoptr i64 %135 to i64*
%143 = inttoptr i64 %141 to i64*
%144 = call i64* @memcpy(i64* %142, i64* %143, i32 %138)
%145 = load i64, i64* %117, align 8
%146 = call i64 @FUNC(i64 %145, i64 %124)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
ret i64 %2
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64* %indvars.iv10.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv6.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @gf_list_add, { 2, 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 0, 1 }
uselistorder i64 (i64)* @gf_malloc, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @gf_list_get, { 2, 1, 0 }
uselistorder i64 (i64)* @gf_list_count, { 2, 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | ieee80211_enable_ps_4781 | ieee80211_enable_ps | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 12
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = icmp eq i32 %5, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_8, label LBL_1
LBL_1:
%9 = add i64 %2, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = icmp eq i32 %11, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_8, label LBL_2
LBL_2:
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
%17 = trunc i64 %1 to i32
%18 = load i32, i32* %16, align 4
%19 = icmp slt i32 %18, 1
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = urem i32 %17, 2
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = zext i32 %18 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%26 = trunc i64 %24 to i32
%27 = add i32 %25, %26
%28 = add i64 %2, 20
%29 = zext i32 %27 to i64
%30 = call i64 @FUNC(i64 %28, i64 %29)
store i64 %30, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%31 = and i32 %17, 2
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%33 = ptrtoint i64* %arg2 to i64
%34 = call i64 @FUNC(i64 %2, i64 %33, i64 1)
br label LBL_7
LBL_7:
%35 = add i64 %2, 8
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = or i32 %37, 4
store i32 %38, i32* %36, align 4
%39 = call i64 @FUNC(i64 %2, i64 8)
store i64 %39, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %2, { 3, 0, 2, 1, 6, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_8, { 2, 3, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | get_cac_tdp_table_7639 | get_cac_tdp_table | define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 50, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = trunc i64 %1 to i16
%6 = trunc i64 %1 to i8
%7 = inttoptr i64 %2 to i64*
%8 = call i64* @memset(i64* %7, i32 0, i32 50)
%9 = call i64 @FUNC(i64 50, i64 0)
store i64 %9, i64* %arg1, align 8
%10 = call i64* @memset(i64* inttoptr (i64 50 to i64*), i32 0, i32 50)
%11 = icmp ult i8 %6, 3
%12 = ptrtoint i8* %arg3 to i64
%13 = inttoptr i64 %2 to i16*
store i16 %5, i16* %13, align 2
%14 = add i64 %12, 2
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = add i64 %2, 2
%18 = inttoptr i64 %17 to i16*
store i16 %16, i16* %18, align 2
%19 = add i64 %12, 4
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = add i64 %2, 4
%23 = inttoptr i64 %22 to i16*
store i16 %21, i16* %23, align 2
%24 = add i64 %12, 6
%25 = inttoptr i64 %24 to i16*
%26 = load i16, i16* %25, align 2
%27 = add i64 %2, 6
%28 = inttoptr i64 %27 to i16*
store i16 %26, i16* %28, align 2
%29 = add i64 %12, 8
%30 = inttoptr i64 %29 to i16*
%31 = load i16, i16* %30, align 2
%32 = add i64 %2, 8
%33 = inttoptr i64 %32 to i16*
store i16 %31, i16* %33, align 2
%34 = add i64 %12, 10
%35 = inttoptr i64 %34 to i16*
%36 = load i16, i16* %35, align 2
%37 = add i64 %2, 10
%38 = inttoptr i64 %37 to i16*
store i16 %36, i16* %38, align 2
%39 = add i64 %12, 12
%40 = inttoptr i64 %39 to i16*
%41 = load i16, i16* %40, align 2
%42 = add i64 %2, 12
%43 = inttoptr i64 %42 to i16*
store i16 %41, i16* %43, align 2
%44 = add i64 %12, 14
%45 = inttoptr i64 %44 to i16*
%46 = load i16, i16* %45, align 2
%47 = add i64 %2, 14
%48 = inttoptr i64 %47 to i16*
store i16 %46, i16* %48, align 2
%49 = add i64 %12, 16
%50 = inttoptr i64 %49 to i16*
%51 = load i16, i16* %50, align 2
%52 = add i64 %2, 16
%53 = inttoptr i64 %52 to i16*
store i16 %51, i16* %53, align 2
%54 = load i16, i16* %50, align 2
%55 = add i64 %2, 18
%56 = inttoptr i64 %55 to i16*
store i16 %54, i16* %56, align 2
%57 = add i64 %12, 18
%58 = inttoptr i64 %57 to i16*
%59 = load i16, i16* %58, align 2
%60 = add i64 %2, 20
%61 = inttoptr i64 %60 to i16*
store i16 %59, i16* %61, align 2
%62 = add i64 %12, 20
%63 = inttoptr i64 %62 to i16*
%64 = load i16, i16* %63, align 2
%65 = add i64 %2, 22
%66 = inttoptr i64 %65 to i16*
store i16 %64, i16* %66, align 2
%67 = add i64 %12, 22
%68 = inttoptr i64 %67 to i16*
%69 = load i16, i16* %68, align 2
%70 = add i64 %2, 24
%71 = inttoptr i64 %70 to i16*
store i16 %69, i16* %71, align 2
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%72 = add i64 %12, 24
%73 = inttoptr i64 %72 to i16*
%74 = load i16, i16* %73, align 2
%75 = add i64 %2, 26
%76 = inttoptr i64 %75 to i16*
store i16 %74, i16* %76, align 2
%77 = add i64 %12, 26
%78 = inttoptr i64 %77 to i16*
%79 = load i16, i16* %78, align 2
%80 = add i64 %2, 28
%81 = inttoptr i64 %80 to i16*
store i16 %79, i16* %81, align 2
%82 = add i64 %12, 28
%83 = inttoptr i64 %82 to i16*
%84 = load i16, i16* %83, align 2
%85 = add i64 %2, 30
%86 = inttoptr i64 %85 to i16*
store i16 %84, i16* %86, align 2
%87 = add i64 %12, 30
%88 = inttoptr i64 %87 to i16*
%89 = load i16, i16* %88, align 2
%90 = add i64 %2, 32
%91 = inttoptr i64 %90 to i16*
store i16 %89, i16* %91, align 2
%92 = add i64 %12, 32
%93 = inttoptr i64 %92 to i16*
%94 = load i16, i16* %93, align 2
%95 = add i64 %2, 34
%96 = inttoptr i64 %95 to i16*
store i16 %94, i16* %96, align 2
%97 = add i64 %12, 34
%98 = inttoptr i64 %97 to i16*
%99 = load i16, i16* %98, align 2
%100 = add i64 %2, 36
%101 = inttoptr i64 %100 to i16*
store i16 %99, i16* %101, align 2
%102 = add i64 %12, 36
%103 = inttoptr i64 %102 to i8*
%104 = load i8, i8* %103, align 1
%105 = add i64 %2, 38
%106 = inttoptr i64 %105 to i8*
store i8 %104, i8* %106, align 1
%107 = add i64 %12, 37
%108 = inttoptr i64 %107 to i8*
%109 = load i8, i8* %108, align 1
%110 = add i64 %2, 39
%111 = inttoptr i64 %110 to i8*
store i8 %109, i8* %111, align 1
%112 = add i64 %12, 38
%113 = inttoptr i64 %112 to i8*
%114 = load i8, i8* %113, align 1
%115 = add i64 %2, 40
%116 = inttoptr i64 %115 to i8*
store i8 %114, i8* %116, align 1
%117 = add i64 %12, 39
%118 = inttoptr i64 %117 to i8*
%119 = load i8, i8* %118, align 1
%120 = add i64 %2, 41
%121 = inttoptr i64 %120 to i8*
store i8 %119, i8* %121, align 1
%122 = add i64 %12, 40
%123 = inttoptr i64 %122 to i8*
%124 = load i8, i8* %123, align 1
%125 = add i64 %2, 42
%126 = inttoptr i64 %125 to i8*
store i8 %124, i8* %126, align 1
%127 = add i64 %12, 41
%128 = inttoptr i64 %127 to i8*
%129 = load i8, i8* %128, align 1
%130 = add i64 %2, 43
%131 = inttoptr i64 %130 to i8*
store i8 %129, i8* %131, align 1
%132 = add i64 %12, 42
%133 = inttoptr i64 %132 to i8*
%134 = load i8, i8* %133, align 1
%135 = add i64 %2, 44
%136 = inttoptr i64 %135 to i8*
store i8 %134, i8* %136, align 1
br label LBL_3
LBL_3:
store i64 %2, i64* %arg2, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13 }
uselistorder i64 %2, { 13, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | nfc_llcp_send_connect_11908 | nfc_llcp_send_connect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge6.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i16
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i16, align 2
%sv_3 = alloca i16, align 2
%sv_4 = alloca i8, align 1
%sv_5 = alloca i16, align 2
%sv_6 = alloca i16, align 2
%7 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
%8 = add i64 %6, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%.pre = add i64 %6, 16
%.pre7 = inttoptr i64 %.pre to i64*
store i16 0, i16* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = load i64, i64* %.pre7, align 8
%13 = bitcast i16* %sv_6 to i64*
%14 = call i64 @FUNC(i64 1, i64 %10, i64 %12, i64* nonnull %13)
%15 = load i16, i16* %sv_6, align 2
%16 = urem i16 %15, 256
store i16 %16, i16* %sv_1.0.reg2mem
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i16, i16* %sv_1.0.reg2mem
%17 = add i64 %6, 24
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = zext i16 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i16
%23 = icmp ult i16 %22, 256
%24 = bitcast i64* %rdi to i16*
%storemerge5.in.in = select i1 %23, i16* %18, i16* %24
%storemerge5.in = load i16, i16* %storemerge5.in.in, align 2
store i16 %storemerge5.in, i16* %sv_5, align 2
%25 = add i64 %6, 26
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
store i8 %27, i8* %sv_4, align 1
%28 = ptrtoint i16* %sv_5 to i64
%29 = bitcast i16* %sv_3 to i64*
%30 = call i64 @FUNC(i64 2, i64 %28, i64 0, i64* nonnull %29)
%31 = load i16, i16* %sv_3, align 2
%32 = urem i16 %31, 256
%33 = add nuw nsw i16 %32, %sv_1.0.reload
%34 = ptrtoint i16* %sv_2 to i64
%35 = ptrtoint i8* %sv_4 to i64
%36 = bitcast i16* %sv_2 to i64*
%37 = call i64 @FUNC(i64 3, i64 %35, i64 0, i64* nonnull %36)
%38 = load i16, i16* %sv_2, align 2
%39 = urem i16 %38, 256
%40 = add nuw nsw i16 %33, %39
%41 = load i64, i64* %.pre7, align 8
%42 = zext i16 %40 to i64
%43 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %42, i64 %41, i64 %34, i64 %2, i64 %1)
%44 = call i64 @FUNC(i64 %6, i64 0, i16 %40)
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_3, label LBL_4
LBL_3:
%47 = load i16, i16* %sv_6, align 2
%48 = urem i16 %47, 256
%49 = zext i16 %48 to i64
%50 = call i64 @FUNC(i64 %44, i64 %sv_0.0.reload, i64 %49)
%51 = load i16, i16* %sv_3, align 2
%52 = urem i16 %51, 256
%53 = zext i16 %52 to i64
%54 = call i64 @FUNC(i64 %44, i64 %30, i64 %53)
%55 = load i16, i16* %sv_2, align 2
%56 = urem i16 %55, 256
%57 = zext i16 %56 to i64
%58 = call i64 @FUNC(i64 %44, i64 %37, i64 %57)
%59 = call i64 @FUNC(i64 add (i64 ptrtoint ([17 x i8]* @gv_0 to i64), i64 8), i64 %44)
store i64 0, i64* %storemerge6.reg2mem
br label LBL_5
LBL_4:
%60 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 4294967284, i64 %42, i64 %34, i64 %2, i64 %1)
store i64 4294967284, i64* %storemerge6.reg2mem
br label LBL_5
LBL_5:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%61 = call i64 @FUNC(i64 %sv_0.0.reload)
%62 = call i64 @FUNC(i64 %30)
%63 = call i64 @FUNC(i64 %37)
ret i64 %storemerge6.reload
uselistorder i64 %44, { 1, 0, 3, 2, 4 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i16* %sv_6, { 1, 0, 2 }
uselistorder i16* %sv_3, { 1, 0, 2 }
uselistorder i16* %sv_2, { 2, 1, 3, 0 }
uselistorder i64 %6, { 1, 2, 3, 0, 4 }
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i16* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @llcp_add_tlv, { 2, 1, 0 }
uselistorder i16 256, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i64 (i64, i64, i64, i64*)* @nfc_llcp_build_tlv, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_debug, { 1, 0 }
uselistorder i64 0, { 4, 5, 0, 14, 10, 6, 7, 11, 12, 1, 15, 8, 9, 2, 3, 13 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | rom_load_all_15739 | rom_load_all | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%.pre-phi10.reg2mem = alloca i64*
%sv_0.1.reg2mem = alloca i64
%sv_0.34.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%storemerge3 = load i64, i64* @gv_0, align 8
%0 = icmp eq i64 %storemerge3, 0
%1 = icmp eq i1 %0, false
store i64 %storemerge3, i64* %storemerge5.reg2mem
store i64 0, i64* %sv_0.34.reg2mem
br i1 %1, label LBL_1, label LBL_10
LBL_1:
%sv_0.34.reload = load i64, i64* %sv_0.34.reg2mem
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%2 = add i64 %storemerge5.reload, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp ult i64 %sv_0.34.reload, %4
%6 = icmp eq i1 %5, false
%spec.select = select i1 %6, i64 %sv_0.34.reload, i64 %4
%7 = add i64 %storemerge5.reload, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_6, label LBL_2
LBL_2:
%11 = add i64 %storemerge5.reload, 40
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i64 %spec.select, i64* %sv_0.1.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = add i32 %13, -1
%16 = sext i32 %15 to i64
%17 = add i64 %spec.select, %16
%18 = sub i32 0, %13
%19 = sext i32 %18 to i64
%20 = and i64 %17, %19
store i64 %20, i64* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%21 = add i64 %storemerge5.reload, 24
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, %sv_0.1.reload
%25 = icmp ugt i64 %24, %9
store i64* %22, i64** %.pre-phi10.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br i1 %25, label LBL_5, label LBL_9
LBL_5:
%26 = inttoptr i64 %storemerge5.reload to i64*
%27 = load i64, i64* %26, align 8
%28 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%29 = inttoptr i64 %27 to i8*
%30 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_2, i64 0, i64 0), i8* %29, i64 %sv_0.1.reload)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%31 = icmp eq i64 %spec.select, %4
br i1 %31, label LBL_6.LBL_9_crit_edge, label LBL_8
LBL_7:
%.pre = add i64 %storemerge5.reload, 24
%.pre9 = inttoptr i64 %.pre to i64*
store i64* %.pre9, i64** %.pre-phi10.reg2mem
store i64 %4, i64* %sv_0.2.reg2mem
br label LBL_9
LBL_8:
%32 = inttoptr i64 %storemerge5.reload to i64*
%33 = load i64, i64* %32, align 8
%34 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%35 = inttoptr i64 %33 to i8*
%36 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %34, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_3, i64 0, i64 0), i8* %35)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%.pre-phi10.reload = load i64*, i64** %.pre-phi10.reg2mem
%37 = add i64 %storemerge5.reload, 32
%38 = inttoptr i64 %37 to i64*
store i64 %sv_0.2.reload, i64* %38, align 8
%39 = load i64, i64* %.pre-phi10.reload, align 8
%40 = add i64 %39, %sv_0.2.reload
%41 = call i64 @FUNC(i64 %sv_0.2.reload)
%42 = add i64 %storemerge5.reload, 48
%43 = inttoptr i64 %42 to i64*
%storemerge = load i64, i64* %43, align 8
%44 = icmp eq i64 %storemerge, 0
%45 = icmp eq i1 %44, false
store i64 %storemerge, i64* %storemerge5.reg2mem
store i64 %40, i64* %sv_0.34.reg2mem
br i1 %45, label LBL_1, label LBL_10
LBL_10:
%46 = call i64 @FUNC(i64 4198709, i64 0)
store i32 1, i32* bitcast (i64* @gv_4 to i32*), align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.2.reload, { 1, 2, 0 }
uselistorder i64 %sv_0.1.reload, { 2, 0, 1 }
uselistorder i64 %spec.select, { 2, 1, 0 }
uselistorder i64 %storemerge5.reload, { 5, 1, 8, 6, 7, 0, 3, 2, 4 }
uselistorder i64* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.34.reg2mem, { 2, 0, 1 }
uselistorder i64** %.pre-phi10.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 0, { 0, 8, 13, 4, 5, 6, 7, 12, 1, 3, 2, 9, 10, 11 }
uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | wv_get_value_float_142 | wv_get_value_float | define i64 @FUNC(i64* %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.3.reg2mem = alloca i32
%sv_2.4.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.3.reg2mem = alloca i32
%.reg2mem = alloca i32
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i128, i128* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = add i64 %5, 16
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %11, 128
%13 = and i64 %12, 4294967295
%14 = icmp ugt i64 %13, 32
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i128 @FUNC(i128 %4, i128 %4)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_29
LBL_3:
%16 = trunc i64 %2 to i32
%17 = icmp eq i32 %arg3, 0
br i1 %17, label LBL_20, label LBL_4
LBL_4:
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = urem i32 %20, 32
%22 = shl i32 %arg3, %21
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
%25 = sub i32 0, %22
%sv_2.1 = select i1 %24, i32 %22, i32 %25
%26 = icmp slt i32 %sv_2.1, 16777216
br i1 %26, label LBL_8, label LBL_5
LBL_5:
%27 = load i32, i32* %7, align 4
%28 = icmp eq i32 %27, 0
store i32 0, i32* %sv_2.3.reg2mem
store i32 255, i32* %sv_1.1.reg2mem
br i1 %28, label LBL_19, label LBL_6
LBL_6:
%29 = add i64 %5, 16
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i32 0, i32* %sv_2.3.reg2mem
store i32 255, i32* %sv_1.1.reg2mem
br i1 %32, label LBL_19, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %29, i64 23)
%34 = trunc i64 %33 to i32
store i32 %34, i32* %sv_2.3.reg2mem
store i32 255, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_8:
%35 = icmp eq i32 %16, 0
store i32 %sv_2.1, i32* %sv_2.3.reg2mem
store i32 0, i32* %sv_1.1.reg2mem
br i1 %35, label LBL_19, label LBL_9
LBL_9:
%36 = zext i32 %sv_2.1 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%39 = sub i32 23, %38
%40 = icmp slt i32 %39, %16
%41 = add i32 %16, -1
%spec.select3 = select i1 %40, i32 %16, i32 %41
%spec.select4 = select i1 %40, i32 %39, i32 %41
%42 = sub i32 %spec.select3, %spec.select4
%43 = icmp eq i32 %spec.select4, 0
store i32 %sv_2.1, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br i1 %43, label LBL_19, label LBL_10
LBL_10:
%44 = urem i32 %spec.select4, 32
%45 = shl i32 %sv_2.1, %44
%46 = add i64 %5, 12
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = urem i32 %48, 2
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_14, label LBL_11
LBL_11:
%52 = load i32, i32* %7, align 4
%53 = icmp eq i32 %52, 0
store i32 %45, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br i1 %53, label LBL_19, label LBL_12
LBL_12:
%54 = and i32 %48, 2
%55 = icmp eq i32 %54, 0
store i32 %48, i32* %.reg2mem
br i1 %55, label LBL_17, label LBL_13
LBL_13:
%56 = add i64 %5, 16
%57 = call i64 @FUNC(i64 %56)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
br i1 %59, label LBL_15, label LBL_14
LBL_14:
%60 = icmp eq i32 %44, 0
%notmask = shl nsw i32 -1, %44
%61 = sub i32 0, %notmask
%phitmp = sub i32 %61, 1
%storemerge2 = select i1 %60, i32 0, i32 %phitmp
%62 = or i32 %storemerge2, %45
store i32 %62, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_15:
%.pr = load i32, i32* %7, align 4
%63 = icmp eq i32 %.pr, 0
store i32 %45, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br i1 %63, label LBL_19, label LBL_15.LBL_17_crit_edge
LBL_16:
%.pre = load i32, i32* %47, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_17
LBL_17:
%.reload = load i32, i32* %.reg2mem
%64 = and i32 %.reload, 4
%65 = icmp eq i32 %64, 0
store i32 %45, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br i1 %65, label LBL_19, label LBL_18
LBL_18:
%66 = add i64 %5, 16
%67 = zext i32 %spec.select4 to i64
%68 = call i64 @FUNC(i64 %66, i64 %67)
%69 = trunc i64 %68 to i32
%70 = or i32 %45, %69
store i32 %70, i32* %sv_2.3.reg2mem
store i32 %42, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_19:
%71 = zext i1 %23 to i32
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.3.reload = load i32, i32* %sv_2.3.reg2mem
%72 = urem i32 %sv_2.3.reload, 8388608
store i32 %72, i32* %sv_2.4.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.3.reg2mem
store i32 %71, i32* %sv_0.0.reg2mem
br label LBL_28
LBL_20:
%73 = load i32, i32* %7, align 4
%74 = icmp eq i32 %73, 0
store i32 0, i32* %sv_2.4.reg2mem
store i32 0, i32* %sv_1.3.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %74, label LBL_28, label LBL_21
LBL_21:
%75 = add i64 %5, 12
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = and i32 %77, 8
%79 = icmp eq i32 %78, 0
store i32 0, i32* %sv_2.4.reg2mem
store i32 0, i32* %sv_1.3.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %79, label LBL_28, label LBL_22
LBL_22:
%80 = add i64 %5, 16
%81 = call i64 @FUNC(i64 %80)
%82 = trunc i64 %81 to i32
%83 = icmp eq i32 %82, 0
br i1 %83, label LBL_26, label LBL_23
LBL_23:
%84 = call i64 @FUNC(i64 %80, i64 23)
%85 = icmp slt i32 %16, 25
store i32 0, i32* %sv_1.2.reg2mem
br i1 %85, label LBL_25, label LBL_24
LBL_24:
%86 = call i64 @FUNC(i64 %80, i64 8)
%87 = trunc i64 %86 to i32
store i32 %87, i32* %sv_1.2.reg2mem
br label LBL_25
LBL_25:
%88 = trunc i64 %84 to i32
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%89 = call i64 @FUNC(i64 %80)
%90 = trunc i64 %89 to i32
store i32 %88, i32* %sv_2.4.reg2mem
store i32 %sv_1.2.reload, i32* %sv_1.3.reg2mem
store i32 %90, i32* %sv_0.0.reg2mem
br label LBL_28
LBL_26:
%91 = load i32, i32* %76, align 4
%92 = and i32 %91, 16
%93 = icmp eq i32 %92, 0
store i32 0, i32* %sv_2.4.reg2mem
store i32 0, i32* %sv_1.3.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %93, label LBL_28, label LBL_27
LBL_27:
%94 = call i64 @FUNC(i64 %80)
%95 = trunc i64 %94 to i32
store i32 0, i32* %sv_2.4.reg2mem
store i32 0, i32* %sv_1.3.reg2mem
store i32 %95, i32* %sv_0.0.reg2mem
br label LBL_28
LBL_28:
%96 = trunc i64 %3 to i32
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.3.reload = load i32, i32* %sv_1.3.reg2mem
%sv_2.4.reload = load i32, i32* %sv_2.4.reg2mem
%97 = mul i32 %96, 27
%98 = mul i32 %sv_2.4.reload, 9
%99 = mul i32 %sv_1.3.reload, 3
%100 = add i32 %98, %97
%101 = add i32 %100, %99
%102 = add i32 %101, %sv_0.0.reload
store i32 %102, i32* %arg2, align 4
%103 = shl i32 %sv_0.0.reload, 31
%104 = mul i32 %sv_1.3.reload, 8388608
%105 = or i32 %104, %sv_2.4.reload
%106 = or i32 %105, %103
%107 = zext i32 %106 to i64
%108 = call i128 @FUNC(i32 %106)
store i64 %107, i64* %rax.0.reg2mem
br label LBL_29
LBL_29:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_2.4.reload, { 1, 0 }
uselistorder i32 %sv_1.3.reload, { 1, 0 }
uselistorder i64 %80, { 3, 0, 2, 1, 4 }
uselistorder i32 %48, { 0, 2, 1 }
uselistorder i32 %45, { 3, 1, 2, 4, 0 }
uselistorder i32 %42, { 1, 2, 3, 4, 0, 5 }
uselistorder i32 %spec.select4, { 3, 0, 1, 2 }
uselistorder i32 %39, { 1, 0 }
uselistorder i32 %sv_2.1, { 4, 1, 2, 0, 3 }
uselistorder i1 %23, { 1, 0 }
uselistorder i32 %22, { 2, 1, 0 }
uselistorder i32 %16, { 1, 2, 3, 0, 4 }
uselistorder i32* %7, { 3, 0, 2, 1, 4 }
uselistorder i64 %5, { 7, 6, 2, 3, 4, 1, 5, 0, 8 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.3.reg2mem, { 0, 6, 7, 8, 9, 2, 10, 1, 5, 4, 3 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 6, 7, 8, 9, 2, 10, 1, 5, 4, 3 }
uselistorder i32* %sv_2.4.reg2mem, { 0, 3, 4, 2, 5, 6, 1 }
uselistorder i32* %sv_1.3.reg2mem, { 0, 3, 4, 2, 5, 6, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 4, 2, 5, 6, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %1, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @get_bits1, { 4, 3, 2, 1, 0 }
uselistorder i32 255, { 2, 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_19, { 5, 6, 7, 8, 1, 9, 0, 2, 3, 4 }
} | 1 |
BinRealVul | lldp_private_8023_print_4854 | lldp_private_8023_print | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp ult i32 %arg3, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_12, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = add i64 %1, 3
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = bitcast i32* %arg1 to i8*
%6 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i32 ptrtoint ([8 x i8]* @gv_1 to i32))
%7 = icmp eq i8 %4, 4
br i1 %7, label LBL_10, label LBL_2
LBL_2:
%8 = icmp ugt i8 %4, 4
store i64 1, i64* %rax.0.reg2mem
br i1 %8, label LBL_12, label LBL_3
LBL_3:
store i64 1, i64* %rax.0.reg2mem
switch i8 %4, label LBL_12 [
i8 3, label LBL_8
i8 1, label LBL_4
i8 2, label LBL_6
]
LBL_4:
%9 = icmp ult i32 %arg3, 9
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_12, label LBL_5
LBL_5:
%10 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i32 ptrtoint ([5 x i8]* @gv_3 to i32))
%11 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_4, i64 0, i64 0), i32 ptrtoint ([8 x i8]* @gv_1 to i32))
%12 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_5, i64 0, i64 0), i32 ptrtoint ([8 x i8]* @gv_1 to i32))
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%13 = icmp ult i32 %arg3, 7
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_12, label LBL_7
LBL_7:
%14 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%15 = icmp ult i32 %arg3, 9
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_12, label LBL_9
LBL_9:
%16 = call i32 (i8*, ...) @printf(i8* %5, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_7, i64 0, i64 0), i32 ptrtoint ([5 x i8]* @gv_3 to i32))
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%17 = icmp ult i32 %arg3, 6
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_12, label LBL_11
LBL_11:
%18 = call i32 (i8*, ...) @printf(i8* %5, i32 ptrtoint (i32* @gv_8 to i32))
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 i8* %5, { 5, 4, 0, 3, 2, 1, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 5, 8, 3, 9, 4, 10, 1, 2, 11 }
uselistorder [5 x i8]* @gv_3, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 5, 0, 4, 6, 3, 2, 1 }
uselistorder i32 %arg3, { 3, 2, 0, 1, 4 }
uselistorder label LBL_12, { 4, 6, 3, 7, 2, 8, 1, 9, 0, 5, 10 }
} | 0 |
BinRealVul | qvirtio_pci_config_readb_2089 | qvirtio_pci_config_readb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4, i64 %arg2)
ret i64 %5
} | 0 |
BinRealVul | msp430_op_7868 | msp430_op | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i16* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i8*
%1 = alloca i64
%2 = alloca i32
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%3 = ptrtoint i16* %arg4 to i64
%4 = ptrtoint i64* %arg2 to i64
%5 = load i64, i64* %1
%6 = load i32, i32* %2
%7 = load i32, i32* %2
%8 = load i8*, i8** %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%9 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 48)
%10 = bitcast i64* %arg2 to i32*
store i32 -1, i32* %10, align 4
%11 = add i64 %4, 4
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
%13 = add i64 %4, 8
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %4, 12
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = and i64 %arg5, 4294967295
%18 = call i64 @FUNC(i64 %3, i64 %17, i64* nonnull %sv_1)
%19 = trunc i64 %18 to i32
store i32 %19, i32* %10, align 4
%20 = bitcast i64* %rsi to i32*
%21 = load i32, i32* %20, align 8
%22 = urem i64 %arg6, 2
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_9, label LBL_1
LBL_1:
%24 = icmp eq i32 %21, 0
%25 = icmp slt i32 %21, 0
%26 = icmp eq i1 %25, false
%27 = icmp eq i1 %24, false
%28 = icmp eq i1 %26, %27
br i1 %28, label LBL_3, label LBL_2
LBL_2:
%29 = call i8* @strdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%30 = ptrtoint i8* %29 to i64
%31 = add i64 %4, 16
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
store i64 %30, i64* %.reg2mem
br label LBL_8
LBL_3:
%33 = icmp slt i32 %21, 1
br i1 %33, label LBL_3.LBL_8_crit_edge, label LBL_5
LBL_4:
%.pre = add i64 %4, 16
%.pre4 = inttoptr i64 %.pre to i64*
%.pre6 = load i64, i64* %.pre4, align 8
store i64 %.pre6, i64* %.reg2mem
br label LBL_8
LBL_5:
%34 = load i64, i64* %sv_0, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_7, label LBL_6
LBL_6:
%36 = ptrtoint i8* %8 to i64
%37 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %36, i64* nonnull %sv_0, i64 %17, i64 %arg5, i64 %arg6)
%38 = add i64 %4, 16
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
store i64 %37, i64* %.reg2mem
br label LBL_8
LBL_7:
%40 = call i8* @strdup(i8* %8)
%41 = ptrtoint i8* %40 to i64
%42 = add i64 %4, 16
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
store i64 %41, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%44 = call i64 @FUNC(i64 %.reload, i64 35, i64 0, i64 1)
%45 = call i64 @FUNC(i64 %.reload, i64 38, i64 0, i64 1)
%46 = call i64 @FUNC(i64 %.reload, i64 37, i64 0, i64 1)
br label LBL_9
LBL_9:
%47 = icmp slt i32 %21, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_10, label LBL_34
LBL_10:
%49 = add i64 %4, 24
%50 = inttoptr i64 %49 to i64*
store i64 %arg3, i64* %50, align 8
%51 = load i64, i64* %sv_1, align 8
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 3
br i1 %53, label LBL_32, label LBL_11
LBL_11:
%54 = icmp sgt i32 %52, 3
br i1 %54, label LBL_33, label LBL_12
LBL_12:
switch i32 %52, label LBL_33 [
i32 2, label LBL_31
i32 0, label LBL_13
i32 1, label LBL_22
]
LBL_13:
%55 = icmp eq i32 %7, 4
br i1 %55, label LBL_21, label LBL_14
LBL_14:
%56 = icmp sgt i32 %7, 4
br i1 %56, label LBL_34, label LBL_15
LBL_15:
%57 = icmp eq i32 %7, 3
br i1 %57, label LBL_20, label LBL_16
LBL_16:
%58 = icmp sgt i32 %7, 1
br i1 %58, label LBL_19, label LBL_17
LBL_17:
%59 = icmp slt i32 %7, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_18, label LBL_34
LBL_18:
store i32 1, i32* %14, align 4
br label LBL_34
LBL_19:
store i32 2, i32* %14, align 4
br label LBL_34
LBL_20:
store i32 3, i32* %14, align 4
%61 = load i32, i32* %20, align 8
%62 = sext i32 %61 to i64
%63 = add i64 %62, %arg3
%64 = add i64 %4, 40
%65 = inttoptr i64 %64 to i64*
store i64 %63, i64* %65, align 8
%66 = call i64 @FUNC(i64 %3, i64 2)
%sext = mul i64 %66, 4294967296
%67 = ashr exact i64 %sext, 32
%68 = add i64 %4, 32
%69 = inttoptr i64 %68 to i64*
store i64 %67, i64* %69, align 8
br label LBL_34
LBL_21:
store i32 4, i32* %14, align 4
br label LBL_34
LBL_22:
%70 = add i32 %7, -5
%71 = zext i32 %70 to i64
store i64 %71, i64* @0, align 8
switch i32 %7, label LBL_34 [
i32 5, label LBL_23
i32 6, label LBL_23
i32 7, label LBL_23
i32 8, label LBL_23
i32 9, label LBL_26
i32 10, label LBL_26
i32 11, label LBL_26
i32 12, label LBL_27
i32 13, label LBL_27
i32 14, label LBL_28
i32 15, label LBL_29
i32 16, label LBL_30
]
LBL_23:
store i32 5, i32* %14, align 4
%72 = load i8, i8* %8, align 1
%73 = icmp eq i8 %72, 98
%74 = icmp eq i1 %73, false
br i1 %74, label LBL_34, label LBL_24
LBL_24:
%75 = ptrtoint i8* %8 to i64
%76 = add i64 %75, 1
%77 = inttoptr i64 %76 to i8*
%78 = load i8, i8* %77, align 1
%79 = icmp eq i8 %78, 114
%80 = icmp eq i1 %79, false
br i1 %80, label LBL_34, label LBL_25
LBL_25:
store i32 14, i32* %14, align 4
br label LBL_34
LBL_26:
store i32 6, i32* %14, align 4
br label LBL_34
LBL_27:
store i32 7, i32* %14, align 4
br label LBL_34
LBL_28:
store i32 8, i32* %14, align 4
br label LBL_34
LBL_29:
store i32 9, i32* %14, align 4
br label LBL_34
LBL_30:
store i32 10, i32* %14, align 4
br label LBL_34
LBL_31:
%81 = icmp eq i32 %6, 17
%82 = icmp eq i1 %81, false
%. = select i1 %82, i32 12, i32 11
store i32 %., i32* %14, align 4
%83 = add i64 %5, %arg3
%84 = add i64 %4, 32
%85 = inttoptr i64 %84 to i64*
store i64 %83, i64* %85, align 8
%86 = add i64 %arg3, 2
%87 = add i64 %4, 40
%88 = inttoptr i64 %87 to i64*
store i64 %86, i64* %88, align 8
br label LBL_34
LBL_32:
store i32 13, i32* %14, align 4
br label LBL_34
LBL_33:
store i32 0, i32* %14, align 4
br label LBL_34
LBL_34:
%storemerge = zext i32 %21 to i64
ret i64 %storemerge
uselistorder i32 %21, { 0, 1, 2, 4, 3 }
uselistorder i32* %14, { 12, 13, 11, 0, 1, 2, 3, 4, 5, 6, 10, 9, 8, 7, 14 }
uselistorder i64* %sv_1, { 2, 0, 1 }
uselistorder i8* %8, { 2, 3, 1, 0 }
uselistorder i32 %7, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 %4, { 6, 7, 4, 5, 8, 3, 2, 0, 1, 9, 10, 11 }
uselistorder i64* %.reg2mem, { 0, 3, 2, 4, 1 }
uselistorder i32* %2, { 1, 0 }
uselistorder i32 14, { 1, 0 }
uselistorder i32 13, { 1, 0 }
uselistorder i32 10, { 1, 0 }
uselistorder i32 9, { 1, 0 }
uselistorder i32 8, { 2, 0, 1 }
uselistorder i32 7, { 1, 0 }
uselistorder i32 6, { 1, 0 }
uselistorder i32 5, { 1, 0 }
uselistorder i64 32, { 4, 5, 0, 1, 2, 3 }
uselistorder i32 4, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 3, { 3, 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @r_str_replace_ch, { 2, 1, 0 }
uselistorder i64 16, { 1, 2, 0, 3 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i1 false, { 4, 2, 3, 5, 6, 7, 0, 9, 1, 8 }
uselistorder i32 0, { 3, 4, 1, 5, 6, 7, 8, 9, 2, 10, 11, 0 }
uselistorder i64 %arg6, { 1, 0 }
uselistorder i64 %arg3, { 2, 0, 1, 3 }
uselistorder label LBL_34, { 2, 1, 0, 13, 12, 11, 10, 9, 14, 15, 16, 17, 6, 5, 4, 3, 7, 8, 18 }
uselistorder label LBL_8, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | hpet_reset_15838 | hpet_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul nuw nsw i64 %indvars.iv.reload, 48
%2 = add i64 %1, %0
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 24
%5 = inttoptr i64 %4 to i32*
%6 = trunc i64 %indvars.iv.reload to i32
store i32 %6, i32* %5, align 4
%7 = inttoptr i64 %2 to i64*
store i64 -1, i64* %7, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
store i64 17179869187, i64* %9, align 8
%10 = add i64 %2, 32
%11 = inttoptr i64 %10 to i64*
store i64 %0, i64* %11, align 8
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
store i64 0, i64* %13, align 8
%14 = add i64 %2, 40
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%16 = add i64 %0, 384
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = add i64 %0, 392
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %19, align 8
%20 = add i64 %0, 400
%21 = inttoptr i64 %20 to i64*
store i64 429496731756306945, i64* %21, align 8
%22 = add i64 %0, 408
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
%24 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%25 = zext i32 %24 to i64
%26 = icmp slt i32 %24, 1
store i64 %25, i64* %rax.0.reg2mem
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = call i64 @FUNC()
store i64 %27, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 3, 4, 5, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | mm_decode_intra_2195 | mm_decode_intra | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%.reg2mem23 = alloca i64
%sv_2.0.ph.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.in.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg5 to i32
%2 = ptrtoint i32* %arg4 to i64
%3 = trunc i64 %arg2 to i32
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
%10 = trunc i64 %arg3 to i32
%11 = icmp eq i32 %10, 0
store i64 %0, i64* %.reg2mem21
store i32 0, i32* %sv_1.0.ph.reg2mem
store i32 0, i32* %sv_2.0.ph.reg2mem
br label LBL_10
LBL_1:
%.reload24 = load i64, i64* %.reg2mem23
%12 = add i64 %.reload24, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = icmp slt i64 %51, %15
store i64 %15, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_13
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%17 = sext i32 %sv_1.0.reload to i64
%18 = add i64 %17, %2
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp slt i8 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = add i32 %sv_1.0.reload, 1
store i8 %20, i8* %sv_4.0.in.reg2mem
store i32 1, i32* %sv_3.0.reg2mem
store i32 %23, i32* %storemerge.reg2mem
br label LBL_5
LBL_4:
%24 = urem i8 %20, -128
%narrow = add nuw i8 %24, 2
%25 = zext i8 %narrow to i32
%26 = add i64 %18, 1
%27 = add i32 %sv_1.0.reload, 2
%sv_4.0.in.in.phi.trans.insert = inttoptr i64 %26 to i8*
%sv_4.0.in.pre = load i8, i8* %sv_4.0.in.in.phi.trans.insert, align 1
store i8 %sv_4.0.in.pre, i8* %sv_4.0.in.reg2mem
store i32 %25, i32* %sv_3.0.reg2mem
store i32 %27, i32* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_4.0.in.reload = load i8, i8* %sv_4.0.in.reg2mem
%spec.select = shl nuw nsw i32 %sv_3.0.reload, %5
%28 = icmp eq i8 %sv_4.0.in.reload, 0
store i64 %.reload24, i64* %.reg2mem
br i1 %28, label LBL_8, label LBL_6
LBL_6:
%sv_4.0 = zext i8 %sv_4.0.in.reload to i32
%29 = load i64, i64* %7, align 8
%30 = load i32, i32* %9, align 4
%31 = mul i32 %30, %sv_2.0.ph.reload
%32 = sext i32 %31 to i64
%33 = sext i32 %sv_0.0.reload to i64
%34 = add i64 %29, %33
%35 = add i64 %34, %32
%36 = inttoptr i64 %35 to i64*
%37 = call i64* @memset(i64* %36, i32 %sv_4.0, i32 %spec.select)
store i64 %35, i64* %.reg2mem
br i1 %11, label LBL_8, label LBL_7
LBL_7:
%38 = load i64, i64* %7, align 8
%39 = load i32, i32* %9, align 4
%40 = mul i32 %39, %52
%41 = sext i32 %40 to i64
%42 = add i64 %38, %33
%43 = add i64 %42, %41
%44 = inttoptr i64 %43 to i64*
%45 = call i64* @memset(i64* %44, i32 %sv_4.0, i32 %spec.select)
store i64 %43, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%46 = add i32 %spec.select, %sv_0.0.reload
%47 = and i64 %.reload, 4294967295
%48 = sext i32 %46 to i64
%49 = icmp sgt i64 %47, %48
store i64 %.reload, i64* %.reg2mem23
store i32 %storemerge.reload, i32* %sv_1.0.reg2mem
store i32 %46, i32* %sv_0.0.reg2mem
br i1 %49, label LBL_11, label LBL_9
LBL_9:
%50 = add i32 %52, %10
store i64 %.reload, i64* %.reg2mem21
store i32 %storemerge.reload, i32* %sv_1.0.ph.reg2mem
store i32 %50, i32* %sv_2.0.ph.reg2mem
br label LBL_10
LBL_10:
%sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%51 = sext i32 %sv_2.0.ph.reload to i64
%52 = add i32 %sv_2.0.ph.reload, 1
store i64 %.reload22, i64* %.reg2mem23
store i32 %sv_1.0.ph.reload, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%53 = icmp slt i32 %sv_1.0.reload, %1
br i1 %53, label LBL_1, label LBL_12
LBL_12:
%54 = zext i32 %sv_1.0.reload to i64
store i64 %54, 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 %sv_1.0.reload, { 4, 0, 1, 3, 2 }
uselistorder i32 %52, { 1, 0 }
uselistorder i64 %.reload, { 1, 0, 2 }
uselistorder i32 %sv_4.0, { 1, 0 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i8 %20, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %.reload24, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i8* %sv_4.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %.reg2mem21, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem23, { 1, 2, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | createArrayObject_6362 | createArrayObject | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_9
LBL_1:
%6 = icmp eq i64 %arg2, 0
br i1 %6, label LBL_5, label LBL_2
LBL_2:
%7 = icmp ult i64 %arg2, 2305843009213693952
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_9
LBL_3:
%8 = call i64 @FUNC(i64 %arg2, i64 8)
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = icmp eq i64 %8, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%14 = ptrtoint i64* %arg1 to i64
%15 = add i64 %3, 16
%16 = inttoptr i64 %15 to i64*
store i64 %arg2, i64* %16, align 8
%17 = add i64 %14, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %20, label LBL_9, label LBL_6
LBL_6:
%21 = inttoptr i64 %19 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%.off = add i32 %24, -1
%switch = icmp ult i32 %.off, 4
br i1 %switch, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 61, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_8
LBL_8:
%25 = add i64 %22, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %14, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = mul i64 %30, 8
%32 = add i64 %31, %27
%33 = inttoptr i64 %32 to i64*
store i64 %3, i64* %33, align 8
store i64 %3, 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 %3, { 1, 4, 0, 5, 2, 3, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i64 8, { 0, 2, 3, 4, 1, 5, 6 }
uselistorder i64 %arg2, { 0, 3, 2, 1 }
uselistorder label LBL_9, { 1, 0, 4, 2, 3 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | alloc_l3_table_12096 | alloc_l3_table | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.520.reg2mem = alloca i32
%.reg2mem = alloca i1
%.in.reg2mem = alloca i32
%sv_0.55152.reg2mem = alloca i32
%rcx.3165053.reg2mem = alloca i64
%r8.3174954.reg2mem = alloca i64
%sv_1.0274855.reg2mem = alloca i32
%sv_1.02748.reg2mem = alloca i32
%r8.31749.reg2mem = alloca i64
%rcx.31650.reg2mem = alloca i64
%sv_0.551.reg2mem = alloca i32
%sv_0.3.lcssa42.reg2mem = alloca i32
%sv_1.0.lcssa43.reg2mem = alloca i32
%rcx.2.lcssa44.reg2mem = alloca i64
%r8.2.lcssa45.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2.030.reg2mem = alloca i32
%rcx.235.reg2mem = alloca i64
%r8.236.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %3, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = call i64 @FUNC(i64 %6)
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = add i64 %11, 32
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memset(i64* %16, i32 0, i32 4064)
br label LBL_2
LBL_2:
%18 = trunc i64 %2 to i32
%19 = icmp ult i32 %18, 512
store i32 %18, i32* %sv_1.0.lcssa43.reg2mem
store i32 0, i32* %sv_0.3.lcssa42.reg2mem
br i1 %19, label LBL_3, label LBL_17
LBL_3:
%20 = and i64 %2, 4294967295
store i64 %20, i64* %indvars.iv.reg2mem
store i32 %9, i32* %sv_2.030.reg2mem
br label LBL_4
LBL_4:
%sv_2.030.reload = load i32, i32* %sv_2.030.reg2mem
%r8.236.reload = load i64, i64* %r8.236.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = call i64 @FUNC(i64 %4)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i64 %indvars.iv.reload, 3
%25 = icmp eq i1 %24, false
%or.cond8 = or i1 %25, %23
%26 = mul i64 %indvars.iv.reload, 8
%27 = add i64 %26, %11
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = trunc i64 %indvars.iv.reload to i32
br i1 %or.cond8, label LBL_8, label LBL_5
LBL_5:
%rcx.235.reload = load i64, i64* %rcx.235.reg2mem
%31 = call i64 @FUNC(i64 %29)
%32 = urem i64 %31, 2
%33 = icmp eq i64 %32, 0
store i32 %30, i32* %sv_1.0274855.reg2mem
store i64 %r8.236.reload, i64* %r8.3174954.reg2mem
store i64 %rcx.235.reload, i64* %rcx.3165053.reg2mem
store i32 -22, i32* %sv_0.55152.reg2mem
br i1 %33, label LBL_18, label LBL_6
LBL_6:
%34 = load i64, i64* %28, align 8
%35 = call i64 @FUNC(i64 %34)
%sext = mul i64 %35, 4294967296
%36 = ashr exact i64 %sext, 32
%37 = call i64 @FUNC(i64 %4)
%38 = and i64 %36, %37
%39 = icmp eq i64 %38, 0
store i32 %30, i32* %sv_1.0274855.reg2mem
store i64 %r8.236.reload, i64* %r8.3174954.reg2mem
store i64 %rcx.235.reload, i64* %rcx.3165053.reg2mem
store i32 -22, i32* %sv_0.55152.reg2mem
br i1 %39, label LBL_7, label LBL_18
LBL_7:
%40 = load i64, i64* %28, align 8
%41 = call i64 @FUNC(i64 %40)
%42 = zext i32 %sv_2.030.reload to i64
%43 = call i64 @FUNC(i64 %41, i64 3, i64 %4, i64 %42, i64 1)
%44 = trunc i64 %43 to i32
store i32 %44, i32* %sv_0.0.reg2mem
store i64 %42, i64* %rcx.0.reg2mem
store i64 1, i64* %r8.0.reg2mem
br label LBL_9
LBL_8:
%45 = zext i32 %sv_2.030.reload to i64
%46 = call i64 @FUNC(i64 %29, i64 %6, i64 %4, i32 %sv_2.030.reload)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp slt i32 %47, 0
%50 = icmp eq i1 %49, false
%51 = icmp eq i1 %48, false
%52 = icmp eq i1 %50, %51
store i32 %47, i32* %sv_0.0.reg2mem
store i64 %45, i64* %rcx.0.reg2mem
store i64 %r8.236.reload, i64* %r8.0.reg2mem
store i32 %47, i32* %sv_0.2.reg2mem
store i64 %45, i64* %rcx.1.reg2mem
store i64 %r8.236.reload, i64* %r8.1.reg2mem
br i1 %52, label LBL_15, label LBL_9
LBL_9:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%53 = icmp eq i32 %sv_0.0.reload, -512
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_11, label LBL_10
LBL_10:
store i32 %30, i32* %arg1, align 4
%55 = icmp eq i32 %sv_2.030.reload, 0
%56 = icmp eq i1 %55, false
%spec.select = select i1 %56, i32 %sv_2.030.reload, i32 1
store i32 %spec.select, i32* %8, align 4
br label LBL_13
LBL_11:
%57 = icmp eq i32 %sv_0.0.reload, -514
%58 = icmp eq i1 %57, false
%59 = icmp eq i64 %indvars.iv.reload, 0
%or.cond = or i1 %59, %58
br i1 %or.cond, label LBL_13, label LBL_12
LBL_12:
store i32 %30, i32* %arg1, align 4
store i32 0, i32* %8, align 4
store i1 false, i1* %.reg2mem
store i32 -512, i32* %sv_0.520.reg2mem
br label LBL_21
LBL_13:
%60 = icmp slt i32 %sv_0.0.reload, 0
store i32 %sv_0.0.reload, i32* %sv_0.551.reg2mem
store i64 %rcx.0.reload, i64* %rcx.31650.reg2mem
store i64 %r8.0.reload, i64* %r8.31749.reg2mem
store i32 %30, i32* %sv_1.02748.reg2mem
br i1 %60, label %switch.early.test, label LBL_14
LBL_14:
%61 = load i64, i64* %28, align 8
%62 = call i64 @FUNC(i64 %61, i64 %4)
store i64 %62, i64* %28, align 8
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
store i64 %26, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
br label LBL_15
LBL_15:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%63 = icmp ult i64 %indvars.iv.next, 512
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %r8.1.reload, i64* %r8.236.reg2mem
store i64 %rcx.1.reload, i64* %rcx.235.reg2mem
store i32 0, i32* %sv_2.030.reg2mem
br i1 %63, label LBL_4, label LBL_16
LBL_16:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%64 = trunc i64 %indvars.iv.next to i32
%65 = icmp slt i32 %sv_0.2.reload, 0
store i64 %r8.1.reload, i64* %r8.2.lcssa45.reg2mem
store i64 %rcx.1.reload, i64* %rcx.2.lcssa44.reg2mem
store i32 %64, i32* %sv_1.0.lcssa43.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.3.lcssa42.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.551.reg2mem
store i64 %rcx.1.reload, i64* %rcx.31650.reg2mem
store i64 %r8.1.reload, i64* %r8.31749.reg2mem
store i32 %64, i32* %sv_1.02748.reg2mem
br i1 %65, label %switch.early.test, label LBL_17
LBL_17:
%sv_0.3.lcssa42.reload = load i32, i32* %sv_0.3.lcssa42.reg2mem
%sv_1.0.lcssa43.reload = load i32, i32* %sv_1.0.lcssa43.reg2mem
%rcx.2.lcssa44.reload = load i64, i64* %rcx.2.lcssa44.reg2mem
%r8.2.lcssa45.reload = load i64, i64* %r8.2.lcssa45.reg2mem
%66 = call i64 @FUNC(i64 %4, i64 %11)
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
%69 = icmp eq i1 %68, false
%spec.select9 = select i1 %69, i32 %sv_0.3.lcssa42.reload, i32 -22
%70 = icmp slt i32 %spec.select9, 0
%71 = icmp eq i1 %70, false
store i32 %spec.select9, i32* %sv_0.551.reg2mem
store i64 %rcx.2.lcssa44.reload, i64* %rcx.31650.reg2mem
store i64 %r8.2.lcssa45.reload, i64* %r8.31749.reg2mem
store i32 %sv_1.0.lcssa43.reload, i32* %sv_1.02748.reg2mem
store i1 true, i1* %.reg2mem
store i32 %spec.select9, i32* %sv_0.520.reg2mem
br i1 %71, label LBL_21, label %switch.early.test
LBL_18:
%sv_0.55152.reload = load i32, i32* %sv_0.55152.reg2mem
%rcx.3165053.reload = load i64, i64* %rcx.3165053.reg2mem
%r8.3174954.reload = load i64, i64* %r8.3174954.reg2mem
%sv_1.0274855.reload = load i32, i32* %sv_1.0274855.reg2mem
%72 = zext i32 %sv_1.0274855.reload to i64
%73 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %72, i64 %rcx.3165053.reload, i64 %r8.3174954.reload, i64 %1)
%74 = icmp eq i32 %sv_1.0274855.reload, 0
store i1 false, i1* %.reg2mem
store i32 %sv_0.55152.reload, i32* %sv_0.520.reg2mem
br i1 %74, label LBL_21, label LBL_19
LBL_19:
store i32 %sv_1.0274855.reload, i32* %arg1, align 4
store i32 0, i32* %8, align 4
%75 = load i64, i64* @gv_1, align 8
%76 = inttoptr i64 %75 to i64*
store i64 %3, i64* %76, align 8
store i32 %sv_1.0274855.reload, i32* %.in.reg2mem
br label LBL_20
LBL_20:
%.in.reload = load i32, i32* %.in.reg2mem
%77 = add i32 %.in.reload, -1
%78 = zext i32 %77 to i64
%79 = mul i64 %78, 8
%80 = add i64 %79, %11
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = call i64 @FUNC(i64 %82, i64 %4)
store i64 %83, i64* %81, align 8
%84 = icmp eq i32 %77, 0
%85 = icmp eq i1 %84, false
store i32 %77, i32* %.in.reg2mem
store i1 false, i1* %.reg2mem
store i32 %sv_0.55152.reload, i32* %sv_0.520.reg2mem
br i1 %85, label LBL_20, label LBL_21
LBL_21:
%sv_0.520.reload = load i32, i32* %sv_0.520.reg2mem
%.reload = load i1, i1* %.reg2mem
%86 = call i64 @FUNC(i64 %11)
%87 = icmp eq i32 %sv_0.520.reload, 0
%88 = icmp eq i1 %87, false
%89 = icmp eq i1 %.reload, %88
%90 = zext i32 %sv_0.520.reload to i64
%91 = select i1 %89, i64 0, i64 %90
ret i64 %91
uselistorder i32 %77, { 0, 2, 1 }
uselistorder i32 %sv_1.0274855.reload, { 0, 2, 1, 3 }
uselistorder i32 %sv_0.551.reload, { 3, 0, 1, 2 }
uselistorder i64 %indvars.iv.next, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 0, 4, 3, 2 }
uselistorder i64 %r8.0.reload, { 1, 0 }
uselistorder i32 %47, { 0, 1, 3, 2 }
uselistorder i64 %rcx.235.reload, { 1, 0 }
uselistorder i32 %30, { 2, 3, 4, 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i64* %28, { 2, 3, 0, 1, 4 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 3, 4, 1 }
uselistorder i64 %r8.236.reload, { 2, 3, 1, 0 }
uselistorder i32 %sv_2.030.reload, { 3, 4, 2, 1, 0 }
uselistorder i64 %11, { 4, 0, 3, 1, 2 }
uselistorder i32* %8, { 0, 2, 1, 3 }
uselistorder i64 %4, { 4, 3, 2, 5, 0, 1, 6, 7 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.236.reg2mem, { 1, 0 }
uselistorder i64* %rcx.235.reg2mem, { 1, 0 }
uselistorder i32* %sv_2.030.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.lcssa43.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.3.lcssa42.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.551.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rcx.31650.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %r8.31749.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.02748.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.0274855.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %r8.3174954.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rcx.3165053.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.55152.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i1* %.reg2mem, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i32* %sv_0.520.reg2mem, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 -512, { 1, 0, 2 }
uselistorder i64 1, { 3, 0, 4, 1, 2 }
uselistorder i32 -22, { 2, 1, 0 }
uselistorder i64 (i64)* @l3e_get_flags, { 1, 0 }
uselistorder i1 false, { 7, 0, 8, 1, 2, 3, 9, 10, 4, 11, 12, 13, 14, 6, 5 }
uselistorder i64 3, { 1, 2, 0 }
uselistorder i64 (i64)* @is_pv_32bit_domain, { 1, 0 }
uselistorder i32* %arg1, { 2, 1, 0, 3 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 0 }
uselistorder label %switch.early.test, { 2, 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | bochs_bios_write_15930 | bochs_bios_write | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%sext2 = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext2, 32
%2 = icmp eq i32 %0, 35072
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = trunc i64 %3 to i32
%5 = icmp ugt i32 %4, 1282
br i1 %5, label LBL_10, label LBL_2
LBL_2:
%6 = icmp ult i32 %4, 1281
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_9, label LBL_3
LBL_3:
%8 = icmp eq i32 %4, 1280
%9 = icmp ult i32 %4, 1026
%or.cond5 = or i1 %9, %8
br i1 %or.cond5, label LBL_10, label LBL_4
LBL_4:
%10 = add nsw i64 %3, 4294966270
%11 = and i64 %10, 4294967295
store i64 %11, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%12 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%13 = sext i32 %12 to i64
%14 = add i64 %13, ptrtoint (i8** @gv_0 to i64)
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = trunc i64 %1 to i32
%18 = sext i8 %16 to i32
%19 = icmp eq i32 %17, %18
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_8, label LBL_6
LBL_6:
store i32 ptrtoint (i32* @gv_1 to i32), i32* @gv_2, align 4
store i64 zext (i32 ptrtoint (i32* @gv_1 to i32) to i64), i64* %rax.0.reg2mem
br i1 icmp ne (i32 sub (i32 ptrtoint (i32* @gv_1 to i32), i32 8), i32 0), label LBL_10, label LBL_7
LBL_7:
store i32 0, i32* @gv_2, align 4
%21 = call i64 @FUNC()
store i64 %21, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%22 = sext i8 %16 to i64
store i32 0, i32* @gv_2, align 4
store i64 %22, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%23 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%24 = and i64 %1, 4294967295
%25 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %23, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i64 %24)
call void @exit(i32 1)
unreachable
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %16, { 1, 0 }
uselistorder i32 %4, { 1, 2, 3, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder %_IO_FILE** @gv_3, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i32* @gv_2, { 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i32 1, { 1, 0, 2 }
uselistorder label LBL_10, { 5, 4, 3, 2, 0, 1 }
} | 1 |
BinRealVul | gen_dcbz_17229 | gen_dcbz | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = udiv i64 %1, 2097152
%3 = urem i64 %2, 2
%4 = ptrtoint i32* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 1)
%6 = call i64 @FUNC()
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = and i64 %6, 4294967295
%10 = call i64 @FUNC(i64 %4, i64 %9)
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 %9, i32 %8)
%13 = call i64 @FUNC(i64 %9)
%14 = and i64 %7, 4294967295
%15 = call i64 @FUNC(i64 %14)
ret i64 %15
} | 1 |
BinRealVul | setup_res_18449 | setup_res | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = bitcast i64* %arg2 to i32*
store i32 0, i32* %3, align 4
%4 = call i64 @FUNC(i64 %2, i64 1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 %2, i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = bitcast i32* %sv_0 to i64*
%13 = call i64 @FUNC(i64 %2, i64* nonnull %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %2, i64* nonnull %12)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = load i32, i32* %sv_0, align 4
store i32 %20, i32* %3, align 4
br label LBL_5
LBL_5:
%21 = and i64 %1, 6
%22 = icmp eq i64 %21, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %22, label LBL_7, label LBL_6
LBL_6:
store i32 0, i32* %3, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %3, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
} | 1 |
BinRealVul | crypto_report_cipher_11157 | crypto_report_cipher | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = bitcast i64* %sv_0 to i8*
%2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i64 1, i64 76, i64* nonnull %sv_0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
%. = select i1 %6, i64 4294967206, i64 0
ret i64 %.
} | 1 |
BinRealVul | imap_quote_string_12758 | imap_quote_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i8*
%sv_0.1.in.lcssa.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i64
%sv_0.1.in6.reg2mem = alloca i64
%sv_2.07.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i8*
%.reg2mem19 = alloca i8*
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 1
%2 = bitcast i64* %arg1 to i8*
store i8 34, i8* %2, align 1
%3 = add i64 %arg2, -2
%sv_0.13 = inttoptr i64 %1 to i8*
%4 = inttoptr i64 %arg3 to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp ne i8 %5, 0
%7 = icmp eq i64 %3, 0
%8 = icmp eq i1 %7, false
%or.cond4 = icmp eq i1 %8, %6
store i8 %5, i8* %.reg2mem
store i8* %4, i8** %.reg2mem19
store i8* %sv_0.13, i8** %sv_0.18.reg2mem
store i64 %arg3, i64* %sv_2.07.reg2mem
store i64 %1, i64* %sv_0.1.in6.reg2mem
store i64 %3, i64* %sv_1.15.reg2mem
store i64 %1, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.13, i8** %sv_0.1.lcssa.reg2mem
br i1 %or.cond4, label LBL_1, label LBL_6
LBL_1:
%sv_1.15.reload = load i64, i64* %sv_1.15.reg2mem
%sv_0.1.in6.reload = load i64, i64* %sv_0.1.in6.reg2mem
%sv_2.07.reload = load i64, i64* %sv_2.07.reg2mem
%sv_0.18.reload = load i8*, i8** %sv_0.18.reg2mem
%.reload20 = load i8*, i8** %.reg2mem19
%.reload = load i8, i8* %.reg2mem
%9 = sext i8 %.reload to i32
%10 = call i8* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i32 %9)
%11 = icmp eq i8* %10, null
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = add i64 %sv_1.15.reload, -2
%13 = icmp eq i64 %12, 0
store i64 %sv_0.1.in6.reload, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.18.reload, i8** %sv_0.1.lcssa.reg2mem
br i1 %13, label LBL_6, label LBL_3
LBL_3:
%14 = add i64 %sv_0.1.in6.reload, 1
store i8 92, i8* %sv_0.18.reload, align 1
%15 = add i64 %sv_0.1.in6.reload, 2
%16 = load i8, i8* %.reload20, align 1
%17 = inttoptr i64 %14 to i8*
store i8 %16, i8* %17, align 1
store i64 %12, i64* %sv_1.0.reg2mem
store i64 %15, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_4:
%18 = add i64 %sv_0.1.in6.reload, 1
%19 = load i8, i8* %.reload20, align 1
store i8 %19, i8* %sv_0.18.reload, align 1
%20 = add i64 %sv_1.15.reload, -1
store i64 %20, i64* %sv_1.0.reg2mem
store i64 %18, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%21 = add i64 %sv_2.07.reload, 1
%sv_0.1 = inttoptr i64 %sv_0.0.in.reload to i8*
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp ne i8 %23, 0
%25 = icmp eq i64 %sv_1.0.reload, 0
%26 = icmp eq i1 %25, false
%or.cond = icmp eq i1 %26, %24
store i8 %23, i8* %.reg2mem
store i8* %22, i8** %.reg2mem19
store i8* %sv_0.1, i8** %sv_0.18.reg2mem
store i64 %21, i64* %sv_2.07.reg2mem
store i64 %sv_0.0.in.reload, i64* %sv_0.1.in6.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.15.reg2mem
store i64 %sv_0.0.in.reload, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.1, i8** %sv_0.1.lcssa.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_6:
%sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem
%sv_0.1.in.lcssa.reload = load i64, i64* %sv_0.1.in.lcssa.reg2mem
%27 = add i64 %sv_0.1.in.lcssa.reload, 1
store i8 34, i8* %sv_0.1.lcssa.reload, align 1
%28 = inttoptr i64 %27 to i8*
store i8 0, i8* %28, align 1
ret i64 %27
uselistorder i64 %27, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 0, 2, 1 }
uselistorder i8* %.reload20, { 1, 0 }
uselistorder i8* %sv_0.18.reload, { 1, 2, 0 }
uselistorder i64 %sv_0.1.in6.reload, { 1, 3, 2, 0 }
uselistorder i64 %sv_1.15.reload, { 1, 0 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem19, { 2, 0, 1 }
uselistorder i8** %sv_0.18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.in6.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.in.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i8** %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | read_mv_component_15457 | read_mv_component | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.15.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i32
%indvars.iv10.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = urem i64 %1, 256
%5 = call i64 @FUNC(i64 %3, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%8 = add i64 %2, 9
store i64 0, i64* %indvars.iv10.reg2mem
store i32 0, i32* %sv_0.07.reg2mem
br label LBL_2
LBL_2:
%sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem
%indvars.iv10.reload = load i64, i64* %indvars.iv10.reg2mem
%9 = add i64 %8, %indvars.iv10.reload
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i64
%13 = call i64 @FUNC(i64 %3, i64 %12)
%14 = icmp eq i64 %indvars.iv10.reload, 0
%15 = trunc i64 %13 to i32
%16 = trunc i64 %indvars.iv10.reload to i32
%17 = shl i32 %15, %16
%18 = zext i32 %17 to i64
%rdx.0 = select i1 %14, i64 %13, i64 %18
%19 = trunc i64 %rdx.0 to i32
%20 = add i32 %sv_0.07.reload, %19
%indvars.iv.next11 = add nuw nsw i64 %indvars.iv10.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next11, 3
store i64 %indvars.iv.next11, i64* %indvars.iv10.reg2mem
store i32 %20, i32* %sv_0.07.reg2mem
store i64 9, i64* %indvars.iv.reg2mem
store i32 %20, i32* %sv_0.15.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = add i64 %8, %indvars.iv.reload
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = zext i8 %23 to i64
%25 = call i64 @FUNC(i64 %3, i64 %24)
%26 = trunc i64 %25 to i32
%27 = trunc i64 %indvars.iv.reload to i32
%28 = shl i32 %26, %27
%29 = add i32 %28, %sv_0.15.reload
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
%30 = icmp ugt i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %29, i32* %sv_0.15.reg2mem
br i1 %30, label LBL_3, label LBL_4
LBL_4:
%31 = and i32 %29, 65520
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_6, label LBL_5
LBL_5:
%33 = add i64 %2, 12
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = zext i8 %35 to i64
%37 = call i64 @FUNC(i64 %3, i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
store i32 %29, i32* %sv_0.2.reg2mem
br i1 %39, label LBL_8, label LBL_6
LBL_6:
%40 = add i32 %29, 8
store i32 %40, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_7:
%41 = add i64 %2, 2
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = zext i8 %43 to i64
%45 = call i64 @FUNC(i64 %3, i64 %44)
%46 = trunc i64 %45 to i32
%47 = mul i64 %45, 12884901888
%sext = add i64 %47, 4294967296
%48 = ashr exact i64 %sext, 32
%49 = add i64 %48, %41
%50 = mul i32 %46, 4
%51 = inttoptr i64 %49 to i8*
%52 = load i8, i8* %51, align 1
%53 = zext i8 %52 to i64
%54 = call i64 @FUNC(i64 %3, i64 %53)
%55 = mul i64 %54, 4294967296
%sext3 = add i64 %55, 4294967296
%56 = ashr exact i64 %sext3, 32
%57 = add i64 %56, %49
%58 = trunc i64 %54 to i32
%59 = mul i32 %58, 2
%60 = add i32 %59, %50
%61 = inttoptr i64 %57 to i8*
%62 = load i8, i8* %61, align 1
%63 = zext i8 %62 to i64
%64 = call i64 @FUNC(i64 %3, i64 %63)
%65 = trunc i64 %64 to i32
%66 = add i32 %60, %65
store i32 %66, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_8:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%67 = icmp eq i32 %sv_0.2.reload, 0
store i64 0, i64* %storemerge.in.reg2mem
br i1 %67, label LBL_10, label LBL_9
LBL_9:
%68 = add i64 %2, 1
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = zext i8 %70 to i64
%72 = call i64 @FUNC(i64 %3, i64 %71)
%73 = trunc i64 %72 to i32
%74 = icmp eq i32 %73, 0
%75 = sub i32 0, %sv_0.2.reload
%spec.select = select i1 %74, i32 %sv_0.2.reload, i32 %75
%phitmp = zext i32 %spec.select to i64
store i64 %phitmp, i64* %storemerge.in.reg2mem
br label LBL_10
LBL_10:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
ret i64 %storemerge.in.reload
uselistorder i32 %sv_0.2.reload, { 2, 1, 0 }
uselistorder i64 %54, { 1, 0 }
uselistorder i32 %29, { 2, 0, 3, 1 }
uselistorder i64 %3, { 3, 4, 5, 6, 0, 1, 2, 7 }
uselistorder i64 %2, { 2, 3, 1, 0 }
uselistorder i64* %indvars.iv10.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967296, { 1, 0, 2 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 1, { 3, 2, 0, 1 }
uselistorder i64 (i64, i64)* @vp56_rac_get_prob, { 6, 5, 4, 3, 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | decode_styl_15455 | decode_styl | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.in3.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %1 to i32
%7 = mul i32 %6, 256
%8 = and i32 %7, 65280
%9 = add i64 %5, 1
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i32
%13 = or i32 %8, %12
%14 = bitcast i64* %arg2 to i32*
store i32 %13, i32* %14, align 4
%15 = add i64 %4, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %4, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = trunc i64 %2 to i32
%22 = mul i32 %21, 12
%23 = or i32 %22, 2
%24 = add i32 %23, %17
%25 = add i32 %24, %20
%26 = trunc i64 %3 to i32
%27 = icmp ugt i32 %25, %26
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_1
LBL_1:
%28 = bitcast i64* %rsi to i32*
%29 = add i64 %4, 12
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = or i32 %31, 1
store i32 %32, i32* %30, align 4
%33 = load i32, i32* %28, align 8
%34 = icmp eq i32 %33, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_8, label LBL_2
LBL_2:
%35 = add i64 %5, 2
%36 = add i64 %4, 16
%37 = inttoptr i64 %36 to i64*
%38 = add i64 %4, 32
%39 = add i64 %4, 24
%40 = inttoptr i64 %39 to i64*
store i32 0, i32* %storemerge4.reg2mem
store i64 %35, i64* %sv_0.0.in3.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.in3.reload = load i64, i64* %sv_0.0.in3.reg2mem
%41 = call i64 @FUNC(i64 20)
store i64 %41, i64* %37, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_5, label LBL_4
LBL_4:
%44 = call i64 @FUNC(i64 %4)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%sv_0.05 = inttoptr i64 %sv_0.0.in3.reload to i8*
%45 = load i8, i8* %sv_0.05, align 1
%46 = zext i8 %45 to i32
%47 = mul i32 %46, 256
%48 = add i64 %sv_0.0.in3.reload, 1
%49 = inttoptr i64 %48 to i8*
%50 = load i8, i8* %49, align 1
%51 = zext i8 %50 to i32
%52 = or i32 %47, %51
%53 = inttoptr i64 %41 to i32*
store i32 %52, i32* %53, align 4
%54 = add i64 %sv_0.0.in3.reload, 2
%55 = inttoptr i64 %54 to i8*
%56 = load i8, i8* %55, align 1
%57 = zext i8 %56 to i32
%58 = mul i32 %57, 256
%59 = add i64 %sv_0.0.in3.reload, 3
%60 = inttoptr i64 %59 to i8*
%61 = load i8, i8* %60, align 1
%62 = load i64, i64* %37, align 8
%63 = zext i8 %61 to i32
%64 = or i32 %58, %63
%65 = add i64 %62, 4
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = add i64 %sv_0.0.in3.reload, 4
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = zext i8 %69 to i32
%71 = mul i32 %70, 256
%72 = add i64 %sv_0.0.in3.reload, 5
%73 = inttoptr i64 %72 to i8*
%74 = load i8, i8* %73, align 1
%75 = load i64, i64* %37, align 8
%76 = zext i8 %74 to i32
%77 = or i32 %71, %76
%78 = add i64 %75, 8
%79 = inttoptr i64 %78 to i32*
store i32 %77, i32* %79, align 4
%80 = add i64 %sv_0.0.in3.reload, 6
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = load i64, i64* %37, align 8
%84 = zext i8 %82 to i32
%85 = add i64 %83, 12
%86 = inttoptr i64 %85 to i32*
store i32 %84, i32* %86, align 4
%87 = add i64 %sv_0.0.in3.reload, 7
%88 = inttoptr i64 %87 to i8*
%89 = load i8, i8* %88, align 1
%90 = load i64, i64* %37, align 8
%91 = zext i8 %89 to i32
%92 = add i64 %90, 16
%93 = inttoptr i64 %92 to i32*
store i32 %91, i32* %93, align 4
%94 = load i64, i64* %37, align 8
%95 = call i64 @FUNC(i64 %39, i64 %38, i64 %94)
%96 = load i64, i64* %40, align 8
%97 = icmp eq i64 %96, 0
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_7, label LBL_6
LBL_6:
%99 = call i64 @FUNC(i64 %4)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%100 = add i64 %sv_0.0.in3.reload, 12
%101 = add i32 %storemerge4.reload, 1
%102 = load i32, i32* %28, align 8
%103 = zext i32 %102 to i64
%104 = sext i32 %101 to i64
%105 = icmp slt i64 %104, %103
store i32 %101, i32* %storemerge4.reg2mem
store i64 %100, i64* %sv_0.0.in3.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %105, label LBL_3, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %41, { 1, 0, 2 }
uselistorder i64 %sv_0.0.in3.reload, { 0, 6, 5, 4, 3, 2, 1, 7, 8 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32* %28, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 0, 3, 2, 1, 4, 5, 6, 7 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 4, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 (i64)* @mov_text_cleanup, { 1, 0 }
uselistorder label LBL_8, { 0, 3, 4, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | check_line_charstring_6299 | check_line_charstring | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8
%storemerge2.lcssa.reg2mem = alloca i8*
%storemerge23.reg2mem = alloca i8*
%0 = call i16** @__ctype_b_loc()
%1 = load i16*, i16** %0, align 8
%2 = ptrtoint i16* %1 to i64
%3 = load i8, i8* bitcast (i8** @gv_0 to i8*), align 8
%4 = zext i8 %3 to i64
%5 = mul i64 %4, 2
%6 = add i64 %5, %2
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %7, align 2
%9 = and i16 %8, 8192
%10 = icmp eq i16 %9, 0
%11 = icmp eq i1 %10, false
store i8* bitcast (i8** @gv_0 to i8*), i8** %storemerge23.reg2mem
store i8* bitcast (i8** @gv_0 to i8*), i8** %storemerge2.lcssa.reg2mem
store i8 %3, i8* %.lcssa.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_1:
%storemerge23.reload = load i8*, i8** %storemerge23.reg2mem
%12 = ptrtoint i8* %storemerge23.reload to i64
%13 = add i64 %12, 1
%14 = inttoptr i64 %13 to i8*
%15 = call i16** @__ctype_b_loc()
%16 = load i16*, i16** %15, align 8
%17 = ptrtoint i16* %16 to i64
%18 = load i8, i8* %14, align 1
%19 = zext i8 %18 to i64
%20 = mul i64 %19, 2
%21 = add i64 %20, %17
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = and i16 %23, 8192
%25 = icmp eq i16 %24, 0
%26 = icmp eq i1 %25, false
store i8* %14, i8** %storemerge23.reg2mem
store i8* %14, i8** %storemerge2.lcssa.reg2mem
store i8 %18, i8* %.lcssa.reg2mem
br i1 %26, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i8, i8* %.lcssa.reg2mem
%27 = icmp eq i8 %.lcssa.reload, 47
store i64 1, i64* %storemerge.reg2mem
br i1 %27, label LBL_7, label LBL_3
LBL_3:
%28 = icmp eq i8 %.lcssa.reload, 100
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_6, label LBL_4
LBL_4:
%storemerge2.lcssa.reload = load i8*, i8** %storemerge2.lcssa.reg2mem
%30 = ptrtoint i8* %storemerge2.lcssa.reload to i64
%31 = add i64 %30, 1
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %33, 117
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_6, label LBL_5
LBL_5:
%36 = add i64 %30, 2
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = icmp eq i8 %38, 112
%40 = icmp eq i1 %39, false
store i64 1, i64* %storemerge.reg2mem
br i1 %40, label LBL_6, label LBL_7
LBL_6:
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8 %.lcssa.reload, { 1, 0 }
uselistorder i8** %storemerge23.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 1, 3, 0, 2 }
uselistorder i1 false, { 1, 2, 3, 4, 0 }
uselistorder i16 0, { 1, 0 }
uselistorder i16 8192, { 1, 0 }
uselistorder i64 2, { 2, 0, 1 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_7, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | adjust_branches_19233 | adjust_branches | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.06.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp sgt i32 %3, 0
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_12
LBL_1:
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = trunc i64 %5 to i32
%7 = trunc i64 %arg3 to i32
store i32 0, i32* %sv_0.08.reg2mem
store i64 %0, i64* %sv_1.06.reg2mem
br label LBL_2
LBL_2:
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%sv_0.08.reload = load i32, i32* %sv_0.08.reg2mem
%8 = inttoptr i64 %sv_1.06.reload to i8*
%9 = load i8, i8* %8, align 1
%10 = urem i8 %9, 8
%11 = icmp eq i8 %10, 5
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_10, label LBL_3
LBL_3:
%13 = and i8 %9, -16
switch i8 %13, label LBL_4 [
i8 32, label LBL_10
i8 16, label LBL_10
]
LBL_4:
%14 = icmp slt i32 %sv_0.08.reload, %6
br i1 %14, label LBL_5, label LBL_7
LBL_5:
%15 = add i64 %sv_1.06.reload, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, %sv_0.08.reload
%19 = zext i32 %18 to i64
%20 = icmp sgt i64 %5, %19
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = add i32 %17, %7
store i32 %21, i32* %16, align 4
br label LBL_10
LBL_7:
%22 = icmp sgt i32 %sv_0.08.reload, %6
br i1 %22, label LBL_8, label LBL_10
LBL_8:
%23 = add i64 %sv_1.06.reload, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add nuw nsw i32 %sv_0.08.reload, 1
%27 = add i32 %26, %25
%28 = zext i32 %27 to i64
%29 = icmp sgt i64 %5, %28
br i1 %29, label LBL_9, label LBL_10
LBL_9:
%30 = sub i32 %25, %7
store i32 %30, i32* %24, align 4
br label LBL_10
LBL_10:
%31 = add nuw nsw i32 %sv_0.08.reload, 1
%32 = add i64 %sv_1.06.reload, 8
%exitcond = icmp eq i32 %31, %3
store i32 %31, i32* %sv_0.08.reg2mem
store i64 %32, i64* %sv_1.06.reg2mem
br i1 %exitcond, label LBL_11, label LBL_2
LBL_11:
%phitmp = zext i32 %3 to i64
store i64 %phitmp, i64* %sv_0.0.lcssa.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i32 %25, { 1, 0 }
uselistorder i8 %9, { 1, 0 }
uselistorder i32 %sv_0.08.reload, { 3, 1, 2, 4, 0 }
uselistorder i64 %sv_1.06.reload, { 3, 0, 2, 1 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i32* %sv_0.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder label LBL_10, { 5, 3, 4, 6, 0, 1, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | mount_entry_on_relative_rootfs_13490 | mount_entry_on_relative_rootfs | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = bitcast i64* %sv_0 to i8*
%5 = inttoptr i64 %arg2 to i8*
%6 = inttoptr i64 %3 to i8*
%7 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %4, i32 4096, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %5, i8* %6)
%8 = icmp ult i32 %7, 4096
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 %arg2)
store i64 %11, 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 | hashtable_do_rehash_12151 | hashtable_do_rehash | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%storemerge24.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 = add i64 %3, 1
store i64 %5, i64* %arg1, align 8
%6 = call i64 @FUNC(i64 %0)
%7 = mul i64 %6, 16
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %2, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %10, label LBL_1, label LBL_5
LBL_1:
%11 = call i64 @FUNC(i64 %0)
%12 = icmp eq i64 %11, 0
%.pre = add i64 %0, 16
store i64 0, i64* %storemerge24.reg2mem
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%storemerge24.reload = load i64, i64* %storemerge24.reg2mem
%13 = load i64, i64* %2, align 8
%14 = mul i64 %storemerge24.reload, 16
%15 = or i64 %14, 8
%16 = add i64 %15, %13
%17 = inttoptr i64 %16 to i64*
store i64 %.pre, i64* %17, align 8
%18 = load i64, i64* %2, align 8
%19 = add i64 %18, %14
%20 = inttoptr i64 %19 to i64*
store i64 %.pre, i64* %20, align 8
%21 = add nuw i64 %storemerge24.reload, 1
%22 = call i64 @FUNC(i64 %0)
%23 = icmp ult i64 %21, %22
store i64 %21, i64* %storemerge24.reg2mem
br i1 %23, label LBL_2, label LBL_3
LBL_3:
%24 = inttoptr i64 %.pre to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %.pre)
%27 = icmp eq i64 %25, %.pre
%28 = icmp eq i1 %27, false
store i64 %25, i64* %sv_0.03.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_4, label LBL_5
LBL_4:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%29 = inttoptr i64 %sv_0.03.reload to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %sv_0.03.reload)
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = sext i32 %33 to i64
%35 = urem i64 %34, %6
%36 = add i64 %31, 8
%37 = load i64, i64* %2, align 8
%38 = mul i64 %35, 16
%39 = add i64 %37, %38
%40 = call i64 @FUNC(i64 %0, i64 %39, i64 %36)
%41 = icmp eq i64 %30, %.pre
%42 = icmp eq i1 %41, false
store i64 %30, i64* %sv_0.03.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %42, label LBL_4, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %.pre, { 1, 0, 2, 3, 5, 4 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %0, { 2, 3, 0, 1, 4, 5 }
uselistorder i64* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 16, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @num_buckets, { 2, 0, 1 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | readlink_to_namei_4951 | readlink_to_namei | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = inttoptr i64 %arg2 to i8*
%1 = bitcast i64* %sv_1 to i8*
%2 = call i32 @readlink(i8* %0, i8* nonnull %1, i32 4096)
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%6 = inttoptr i64 %5 to i8*
call void (i32, i8*, ...) @err(i32 1, i8* %6)
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = load i64, i64* %sv_1, align 8
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 47
store i32 %2, i32* %sv_0.0.reg2mem
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = call i8* @strrchr(i8* %0, i32 47)
%12 = icmp eq i8* %11, null
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = ptrtoint i8* %11 to i64
%14 = sub i64 %13, %arg2
store i64 %14, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%15 = call i32 @strlen(i8* %0)
%16 = sext i32 %15 to i64
store i64 %16, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%17 = add i64 %7, 8
%18 = inttoptr i64 %17 to i64*
store i64 %storemerge.reload, i64* %18, align 8
%19 = trunc i64 %storemerge.reload to i32
%20 = add i32 %2, 1
%21 = add i32 %20, %19
store i32 %21, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%22 = sext i32 %sv_0.0.reload to i64
%23 = add nsw i64 %22, 1
%24 = trunc i64 %23 to i32
%25 = call i64* @malloc(i32 %24)
%26 = ptrtoint i64* %25 to i64
store i64 %26, i64* %arg1, align 8
%27 = icmp eq i64 %23, 0
%28 = icmp eq i1 %27, false
store i64 %23, i64* %rdi.0.reg2mem
br i1 %28, label LBL_9, label LBL_8
LBL_8:
%29 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @globalFUNCvarFUNC40202b, i64 0, i64 0))
%30 = inttoptr i64 %29 to i8*
call void (i32, i8*, ...) @err(i32 1, i8* %30)
store i64 1, i64* %rdi.0.reg2mem
br label LBL_9
LBL_9:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%31 = load i64, i64* %sv_1, align 8
%32 = trunc i64 %31 to i8
%33 = icmp eq i8 %32, 47
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = add i64 %7, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %rdi.0.reload to i64*
%38 = inttoptr i64 %arg2 to i64*
%39 = trunc i64 %36 to i32
%40 = call i64* @memcpy(i64* %37, i64* %38, i32 %39)
%41 = load i64, i64* %35, align 8
%42 = add i64 %41, %rdi.0.reload
%43 = inttoptr i64 %42 to i8*
store i8 47, i8* %43, align 1
%44 = load i64, i64* %35, align 8
%45 = add i64 %44, 1
store i64 %45, i64* %35, align 8
%46 = add i64 %45, %rdi.0.reload
%47 = inttoptr i64 %46 to i64*
%48 = trunc i64 %45 to i32
%49 = sub i32 %sv_0.0.reload, %48
%50 = call i64* @memcpy(i64* %47, i64* nonnull %sv_1, i32 %49)
store i64 %46, i64* %rdi.1.reg2mem
br label LBL_12
LBL_11:
%51 = inttoptr i64 %rdi.0.reload to i64*
%52 = call i64* @memcpy(i64* %51, i64* nonnull %sv_1, i32 %sv_0.0.reload)
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br label LBL_12
LBL_12:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%53 = add i64 %rdi.1.reload, %22
%54 = inttoptr i64 %53 to i8*
store i8 0, i8* %54, align 1
ret i64 %53
uselistorder i64 %53, { 1, 0 }
uselistorder i64 %45, { 1, 0, 2 }
uselistorder i64* %35, { 1, 0, 2, 3 }
uselistorder i64 %rdi.0.reload, { 0, 1, 4, 3, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64 %storemerge.reload, { 1, 0 }
uselistorder i8* %11, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i32 %2, { 1, 0, 2 }
uselistorder i64* %sv_1, { 0, 1, 3, 4, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i8 47, { 2, 0, 1 }
uselistorder void (i32, i8*, ...)* @err, { 1, 0 }
uselistorder i64 (i8*)* @_, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
} | 0 |
BinRealVul | panicked_mon_event_14826 | panicked_mon_event | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%2 = call i64 @FUNC(i64 1, i64 %1)
%3 = call i64 @FUNC(i64 %1)
ret i64 %3
} | 1 |
BinRealVul | vhost_user_start_14575 | vhost_user_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
store i32 1, i32* %sv_0, align 4
%4 = call i64 @FUNC(i32* nonnull %sv_0)
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i8
%9 = icmp eq i8 %8, 0
%. = select i1 %9, i64 4294967295, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 (i64)* @vhost_user_running, { 1, 0 }
} | 1 |
BinRealVul | parse_vlan_15015 | parse_vlan | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i32 (i8*, i8*, ...) @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%5 = icmp eq i32 %4, 1
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = load i64, i64* %sv_0, align 8
%7 = and i64 %6, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 1)
%9 = inttoptr i64 %2 to i64*
store i64 %8, i64* %9, align 8
%10 = icmp eq i64 %8, 0
%11 = icmp eq i1 %10, false
%. = select i1 %11, i64 0, i64 4294967294
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 0 }
} | 1 |
BinRealVul | exit_notify_7023 | exit_notify | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = trunc i64 %arg2 to i32
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %2)
%6 = call i64 @FUNC(i64* nonnull @gv_0)
%7 = icmp eq i32 %3, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i64 0)
br label LBL_2
LBL_2:
%12 = trunc i64 %1 to i32
%13 = icmp eq i32 %12, 17
br i1 %13, label LBL_7, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = add i64 %2, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, 28
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %20, %26
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = add i64 %2, 28
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %31, %20
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%33 = bitcast i64* %arg1 to i32*
store i32 17, i32* %33, align 4
br label LBL_7
LBL_7:
%34 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1, i32 %3)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
store i32 %35, i32* %sv_0.0.reg2mem
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%37 = and i64 %34, 4294967295
%38 = call i64 @FUNC(i64 %2, i64 %37)
%39 = trunc i64 %38 to i32
store i32 %39, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%40 = icmp eq i32 %sv_0.0.reload, 1
%41 = icmp eq i1 %40, false
%. = select i1 %41, i32 3, i32 2
%42 = add i64 %2, 32
%43 = inttoptr i64 %42 to i32*
store i32 %., i32* %43, align 4
%44 = call i64 @FUNC(i64 %2)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_13, label LBL_10
LBL_10:
%47 = add i64 %2, 40
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = icmp eq i64 %51, 0
br i1 %52, label LBL_13, label LBL_11
LBL_11:
%53 = add i64 %49, 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_13, label LBL_12
LBL_12:
%58 = call i64 @FUNC(i64 %51)
br label LBL_13
LBL_13:
%59 = call i64 @FUNC(i64* nonnull @gv_0)
%60 = load i64, i64* %sv_1, align 8
%61 = call i64 @FUNC(i64 %2, i32 %sv_0.0.reload, i64 %60, i32 %3)
store i64 %61, i64* %rax.0.reg2mem
br i1 %41, label LBL_15, label LBL_14
LBL_14:
%62 = call i64 @FUNC(i64 %2)
store i64 %62, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 %2, { 7, 8, 6, 9, 10, 5, 11, 3, 2, 1, 4, 0, 12, 13 }
uselistorder i32 17, { 1, 0 }
} | 0 |
BinRealVul | SRXAFSCB_CallBack_3950 | SRXAFSCB_CallBack | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 4202512)
%3 = call i64 @FUNC(i64 %arg1)
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %arg1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %9, i64 %10, i64 %6)
%12 = call i64 @FUNC(i64 %arg1)
%13 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %13
uselistorder i64 %arg1, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | ieee80211_radiotap_iterator_init_18892 | ieee80211_radiotap_iterator_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem7 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg3 to i32
%3 = icmp ugt i32 %2, 7
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 0
%or.cond = icmp eq i1 %3, %5
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%7 = add i64 %6, 2
%8 = call i64 @FUNC(i64 %7)
%9 = urem i64 %8, 65536
%10 = ashr exact i64 %sext, 32
%11 = icmp slt i64 %10, %9
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %11, label LBL_6, label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg4 to i64
%13 = ptrtoint i64* %arg1 to i64
store i64 %6, i64* %arg1, align 8
%14 = call i64 @FUNC(i64 %7)
%15 = trunc i64 %14 to i32
%16 = urem i32 %15, 65536
%17 = add i64 %13, 8
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %13, 12
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %6, 4
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
%24 = add i64 %13, 16
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %6, 8
%27 = add i64 %13, 24
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = add i64 %13, 32
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = add i64 %13, 40
%32 = inttoptr i64 %31 to i64*
store i64 %26, i64* %32, align 8
%33 = add i64 %13, 48
%34 = inttoptr i64 %33 to i64*
store i64 %12, i64* %34, align 8
%35 = add i64 %13, 64
%36 = inttoptr i64 %35 to i32*
store i32 ptrtoint (i32* @gv_0 to i32), i32* %36, align 4
%37 = add i64 %13, 68
%38 = inttoptr i64 %37 to i32*
store i32 1, i32* %38, align 4
%39 = load i32, i32* %25, align 4
%40 = urem i32 %39, 2
%41 = icmp eq i32 %40, 0
%.pre3 = load i64, i64* %28, align 8
store i64 %.pre3, i64* %.reg2mem
store i64 %.pre3, i64* %.reg2mem7
br i1 %41, label LBL_5, label LBL_4
LBL_3:
%42 = sub i64 4, %.reload
%43 = add i64 %42, %52
%44 = load i32, i32* %18, align 4
%45 = sext i32 %44 to i64
%46 = icmp ugt i64 %43, %45
store i64 %52, i64* %.reg2mem
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %46, label LBL_6, label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%47 = call i64 @FUNC(i64 %.reload)
%48 = urem i64 %47, 2
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
%51 = load i64, i64* %28, align 8
%52 = add i64 %51, 4
store i64 %52, i64* %28, align 8
store i64 %52, i64* %.reg2mem7
br i1 %50, label LBL_3, label LBL_5
LBL_5:
%.reload8 = load i64, i64* %.reg2mem7
%53 = add i64 %13, 56
%54 = inttoptr i64 %53 to i64*
store i64 %.reload8, i64* %54, 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 %52, { 0, 3, 2, 1 }
uselistorder i64* %28, { 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @get_unaligned_le32, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 65536, { 1, 0 }
uselistorder i64 (i64)* @get_unaligned_le16, { 1, 0 }
uselistorder label LBL_6, { 3, 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | avformat_alloc_context_14871 | avformat_alloc_context | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 8)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 0)
%5 = inttoptr i64 %0 to i64*
store i64 %4, i64* %5, align 8
%6 = icmp eq i64 %4, 0
%7 = icmp eq i1 %6, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 0, 4, 3, 1, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 1, { 1, 2, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | video_write_12661 | video_write | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%.reg2mem9 = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
store i64 %0, i64* %sv_2, align 8
%1 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967277, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_30
LBL_1:
%4 = call i64 @FUNC(i64* nonnull %sv_2)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
store i32 0, i32* %sv_1.04.reg2mem
store i32 0, i32* %sv_1.0.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %6, label LBL_2, label LBL_26
LBL_2:
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = or i32 %sv_1.04.reload, 1
store i32 %11, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%12 = call i64 @FUNC(i64* nonnull %sv_2)
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.06.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.04.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %14, label LBL_2, label LBL_26
LBL_5:
%15 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = or i32 %sv_0.06.reload, 1
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %19, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_7:
%20 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = or i32 %sv_1.04.reload, 2
store i32 %24, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_9:
%25 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0))
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = or i32 %sv_0.06.reload, 2
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %29, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_11:
%30 = load i32, i32* @gv_4, align 4
%31 = icmp eq i32 %30, 1
%32 = icmp eq i1 %31, false
store i32 %30, i32* %.reg2mem9
br i1 %32, label LBL_15, label LBL_12
LBL_12:
%33 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0))
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_12.LBL_15_crit_edge, label LBL_14
LBL_13:
%.pre = load i32, i32* @gv_4, align 4
store i32 %.pre, i32* %.reg2mem9
br label LBL_15
LBL_14:
%37 = or i32 %sv_1.04.reload, 4
store i32 %37, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_15:
%.reload10 = load i32, i32* %.reg2mem9
%38 = icmp eq i32 %.reload10, 1
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_18, label LBL_16
LBL_16:
%40 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0))
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_18, label LBL_17
LBL_17:
%44 = or i32 %sv_0.06.reload, 4
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %44, i32* %sv_0.0.be.reg2mem
br label LBL_4
LBL_18:
%45 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_7, i64 0, i64 0))
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_20, label LBL_19
LBL_19:
%49 = call i64 @FUNC(i64 1)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %49, i64* %rax.0.shrunk.reg2mem
br i1 %51, label LBL_4, label LBL_30
LBL_20:
%52 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_8, i64 0, i64 0))
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_22, label LBL_21
LBL_21:
%56 = call i64 @FUNC(i64 0)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %56, i64* %rax.0.shrunk.reg2mem
br i1 %58, label LBL_4, label LBL_30
LBL_22:
%59 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_9, i64 0, i64 0))
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_24, label LBL_23
LBL_23:
%63 = call i64 @FUNC()
%64 = trunc i64 %63 to i32
%65 = icmp eq i32 %64, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %63, i64* %rax.0.shrunk.reg2mem
br i1 %65, label LBL_4, label LBL_30
LBL_24:
%66 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_10, i64 0, i64 0))
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
%69 = icmp eq i1 %68, false
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %69, label LBL_30, label LBL_25
LBL_25:
%70 = call i64 @FUNC()
%71 = trunc i64 %70 to i32
%72 = icmp eq i32 %71, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %70, i64* %rax.0.shrunk.reg2mem
br i1 %72, label LBL_4, label LBL_30
LBL_26:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%73 = or i32 %sv_0.0.lcssa.reload, %sv_1.0.lcssa.reload
%74 = icmp eq i32 %73, 0
br i1 %74, label LBL_29, label LBL_27
LBL_27:
%75 = call i64 @FUNC()
%76 = trunc i64 %75 to i32
%77 = icmp slt i32 %76, 0
%78 = icmp eq i1 %77, false
store i64 %75, i64* %rax.0.shrunk.reg2mem
br i1 %78, label LBL_28, label LBL_30
LBL_28:
%79 = sub i32 0, %sv_0.0.lcssa.reload
%80 = sub i32 %79, 1
%81 = and i32 %76, %80
%82 = or i32 %81, %sv_1.0.lcssa.reload
%83 = zext i32 %82 to i64
%84 = call i64 @FUNC(i64 %83)
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %85, 0
store i64 %84, i64* %rax.0.shrunk.reg2mem
br i1 %86, label LBL_29, label LBL_30
LBL_29:
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_30
LBL_30:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %sv_1.0.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %.reload, { 9, 8, 7, 5, 6, 0, 1, 2, 3, 4 }
uselistorder i32 %sv_0.06.reload, { 6, 5, 4, 3, 9, 2, 8, 1, 7, 0 }
uselistorder i32 %sv_1.04.reload, { 6, 5, 4, 3, 2, 9, 1, 8, 0, 7 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.be.reg2mem, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 0, 1 }
uselistorder i32* %.reg2mem9, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 9, 6, 7, 2, 1, 3, 4, 5, 8 }
uselistorder i64 (i64)* @video_autosw_set, { 1, 0 }
uselistorder i64 (i64, i8*)* @strlencmp, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*)* @next_cmd, { 1, 0 }
uselistorder i1 false, { 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 12, 0, 15 }
uselistorder i32 0, { 6, 4, 21, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0, 1, 2, 3, 22 }
uselistorder label LBL_30, { 8, 5, 6, 1, 0, 2, 3, 4, 7 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_4, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | monitor_init_17122 | monitor_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 40)
%6 = call i64 @FUNC(i64 %5)
%7 = inttoptr i64 %5 to i64*
store i64 %4, i64* %7, align 8
%8 = trunc i64 %arg2 to i32
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = urem i64 %arg2, 2
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 4198923, i64 4198934, i64 %5, i64 4198941)
%14 = add i64 %5, 16
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %5, i64 0)
br label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %5)
%18 = trunc i64 %17 to i8
%19 = icmp eq i8 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %4, i64 4198859, i64 4198866, i64 4198873, i64 %5)
%21 = call i64 @FUNC(i64 %4, i64 1)
%22 = add i64 %5, 24
%23 = call i64 @FUNC(i64 %22, i64 4198894)
br label LBL_7
LBL_6:
%24 = call i64 @FUNC(i64 %4, i64 4198859, i64 4198880, i64 4198887, i64 %5)
br label LBL_7
LBL_7:
%25 = call i64 @FUNC(i64* nonnull @gv_1)
%26 = load i64, i64* @gv_2, align 8
%27 = add i64 %5, 32
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
store i64 %5, i64* @gv_2, align 8
%29 = call i64 @FUNC(i64* nonnull @gv_1)
%30 = load i64, i64* @gv_3, align 8
%31 = icmp ne i64 %30, 0
%32 = and i64 %arg2, 2
%33 = icmp eq i64 %32, 0
%or.cond = icmp eq i1 %33, %31
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
store i64 %5, i64* @gv_3, align 8
store i64 %5, 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 %5, { 0, 4, 5, 6, 7, 8, 9, 10, 1, 3, 2, 11, 12, 13 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64, i64)* @qemu_chr_add_handlers, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | cris_cpu_initfn_3459 | cris_cpu_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = inttoptr i64 %2 to i32*
%5 = inttoptr i64 %1 to i64*
store i64 %2, i64* %5, align 8
%6 = inttoptr i64 %3 to i32*
%7 = load i32, i32* %6, align 4
store i32 %7, i32* %4, align 4
%8 = call i64 @FUNC(i64 %2, i64 4198750, i64 2)
%9 = call i64 @FUNC()
%10 = trunc i64 %9 to i8
%11 = icmp eq i8 %10, 0
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_5, label LBL_1
LBL_1:
%12 = load i8, i8* inttoptr (i64 4210916 to i8*), align 4
%13 = icmp eq i8 %12, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_2:
store i8 1, i8* bitcast (i64* @gv_0 to i8*), align 8
%14 = load i32, i32* %4, align 4
%15 = icmp sgt i32 %14, 31
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC()
store i64 %16, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%17 = call i64 @FUNC()
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i8 1, { 1, 0 }
} | 0 |
BinRealVul | fix_bitshift_541 | fix_bitshift | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem6 = alloca i32
%.reg2mem = alloca i64
%.pre.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = ptrtoint i64* %arg2 to i64
%10 = bitcast i64* %rdi to i32*
%11 = bitcast i64* %arg2 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %2, 32
%14 = shl i32 %12, %13
store i32 %14, i32* %11, align 4
%15 = load i32, i32* %6, align 4
%16 = zext i32 %15 to i64
%17 = icmp ugt i32 %15, 1
store i32 %2, i32* %.pre.reg2mem
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem6
store i64 %16, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_5
LBL_3:
%.reload7 = load i32, i32* %.reg2mem6
%.reload = load i64, i64* %.reg2mem
%.pre.reload = load i32, i32* %.pre.reg2mem
%18 = mul i64 %.reload, 4
%19 = add i64 %18, %9
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = urem i32 %.pre.reload, 32
%23 = shl i32 %21, %22
store i32 %23, i32* %20, align 4
%24 = add i32 %.reload7, 1
%25 = load i32, i32* %6, align 4
%26 = zext i32 %25 to i64
%27 = sext i32 %24 to i64
%28 = icmp slt i64 %27, %26
store i64 %26, i64* %rax.0.reg2mem
br i1 %28, label LBL_3.LBL_3_crit_edge, label LBL_5
LBL_4:
%.pre.pre = load i32, i32* %10, align 8
store i32 %.pre.pre, i32* %.pre.reg2mem
store i64 %27, i64* %.reg2mem
store i32 %24, i32* %.reg2mem6
br label LBL_3
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %11, { 1, 0 }
uselistorder i32* %6, { 2, 0, 1 }
uselistorder i32* %.pre.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem6, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | kvm_ioctl_create_device_11730 | kvm_ioctl_create_device | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = trunc i64 %1 to i32
%7 = icmp ult i32 %6, 10
store i64 1, i64* %rax.0.shrunk.reg2mem
br i1 %7, label LBL_1, label LBL_9
LBL_1:
%sext = mul i64 %1, 4294967296
%8 = ashr exact i64 %sext, 29
%9 = add i64 %8, ptrtoint (i64* @gv_0 to i64)
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_2, label LBL_9
LBL_2:
%14 = urem i32 %5, 2
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %17, label LBL_3, label LBL_9
LBL_3:
%18 = call i64 @FUNC(i64 24, i64 0)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 2, i64* %rax.0.shrunk.reg2mem
br i1 %20, label LBL_4, label LBL_9
LBL_4:
%21 = ptrtoint i64* %arg1 to i64
%22 = inttoptr i64 %18 to i64*
store i64 %11, i64* %22, align 8
%23 = add i64 %18, 8
%24 = inttoptr i64 %23 to i64*
store i64 %21, i64* %24, align 8
%25 = call i64 @FUNC(i64 %21)
%26 = trunc i64 %18 to i32
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %21)
%30 = call i64 @FUNC(i64 %18)
store i64 %18, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_6:
%31 = add i64 %21, 8
%32 = add i64 %18, 16
%33 = call i64 @FUNC(i64 %32, i64 %31)
%34 = call i64 @FUNC(i64 %21)
%35 = add i64 %11, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64* nonnull @gv_1, i64 %18, i64 0)
%39 = trunc i64 %38 to i32
%40 = icmp slt i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = call i64 @FUNC(i64 %21)
%43 = call i64 @FUNC(i64 %32)
%44 = call i64 @FUNC(i64 %21)
store i64 %38, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_8:
%45 = call i64 @FUNC(i64 %21)
%46 = add i64 %2, 8
%47 = inttoptr i64 %46 to i32*
store i32 %39, i32* %47, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %21, { 0, 1, 2, 4, 3, 5, 6, 7 }
uselistorder i64 %18, { 2, 3, 0, 1, 4, 5, 6, 7 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 7, 6, 5, 1, 2, 3, 4 }
uselistorder i64 (i64)* @mutex_unlock, { 2, 1, 0 }
uselistorder i64 (i64)* @mutex_lock, { 1, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 5, 4 }
uselistorder label LBL_9, { 4, 5, 6, 0, 1, 2, 3 }
} | 1 |
BinRealVul | sgi_clock_set_12089 | sgi_clock_set | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC()
%2 = load i128, i128* @gv_0, align 8
%3 = trunc i128 %2 to i64
%4 = mul i64 %1, %3
%5 = call i64 @FUNC(i64 %4, i64 1000000000, i64* nonnull %sv_0)
%6 = sub i64 %0, %5
store i64 %6, i64* @gv_1, align 8
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = load i64, i64* %sv_0, align 8
%11 = icmp ult i64 %9, %10
%12 = sub i64 1000000000, %10
br i1 %11, label LBL_2, label LBL_1
LBL_1:
store i64 %12, i64* @gv_2, align 8
br label LBL_3
LBL_2:
%13 = add i64 %12, 1000000000
store i64 %13, i64* @gv_2, align 8
%14 = add i64 %6, -1
store i64 %14, i64* @gv_1, align 8
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %12, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 1000000000, { 2, 0, 1 }
} | 1 |
BinRealVul | perf_bp_event_11169 | perf_bp_event | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64* nonnull %sv_0, i64 %1)
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = icmp eq i32 %5, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = load i64, i64* %sv_0, align 8
%10 = call i64 @FUNC(i64 %1, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = load i64, i64* %sv_0, align 8
%15 = call i64 @FUNC(i64 %1, i64 1, i64 1, i64* nonnull %sv_0, i64 %14)
store i64 %15, 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* %sv_0, { 0, 2, 3, 1, 4 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | parse_icy_15898 | parse_icy | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = call i32 @strlen(i8* %arg3)
%1 = call i32 @strlen(i8* %arg2)
%2 = add i32 %0, 4
%3 = add i32 %2, %1
%4 = icmp eq i8* %arg2, null
store i32 %3, i32* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @strlen(i8* nonnull %arg2)
%6 = add i32 %5, %3
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%8 = sext i32 %sv_0.0.reload to i64
%9 = call i64 @FUNC(i64 %7, i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = and i64 %9, 4294967295
store i64 %13, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%14 = ptrtoint i8* %arg3 to i64
%15 = ptrtoint i8* %arg2 to i64
%16 = call i64 @FUNC(i64 %7, i64 %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %14)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %3, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 4, 3, 2, 1, 0 }
uselistorder i8* %arg2, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | deadline_exceeded_9840 | deadline_exceeded | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%3 = icmp eq i64* %arg1, null
%4 = icmp slt i64* %arg1, null
%5 = icmp eq i1 %4, false
%6 = icmp eq i1 %3, false
%7 = icmp eq i1 %5, %6
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_7
LBL_1:
%8 = call i32* @__errno_location()
store i32 0, i32* %8, align 4
%9 = bitcast i64* %sv_0 to %timespec*
%10 = call i32 @clock_gettime(i32 1, %timespec* nonnull %9)
%11 = icmp eq i32 %10, -1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i32* @__errno_location()
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%16 = load i64, i64* %sv_0, align 8
%17 = icmp sgt i64 %16, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = icmp eq i64 %16, 1
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = ptrtoint i64* %arg1 to i64
%21 = add i64 %20, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp sgt i64 %2, %23
store i64 1, i64* %rax.0.reg2mem
br i1 %24, label LBL_7, label LBL_6
LBL_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* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 3, 0, 2 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_7, { 0, 1, 2, 4, 3 }
} | 0 |
BinRealVul | incrementallyRehash_10780 | incrementallyRehash | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sext = mul i64 %arg1, 4294967296
%0 = load i64, i64* @gv_0, align 8
%1 = ashr exact i64 %sext, 28
%2 = add i64 %0, %1
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = load i64, i64* @gv_0, align 8
%9 = add i64 %8, %1
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%13 = add i64 %9, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = load i64, i64* @gv_0, align 8
%20 = or i64 %1, 8
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %1, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @dictRehashMilliseconds, { 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 (i64)* @dictIsRehashing, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | parse_file_9140 | parse_file | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_0, i64* nonnull %sv_1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32* @__errno_location()
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = call i8* @strerror(i32 %4)
%7 = ptrtoint i8* %6 to i64
%8 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %7)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = load i64, i64* %sv_1, align 8
%11 = load i64, i64* %sv_0, align 8
%12 = call i64 @FUNC(i64 %9, i64 %11, i64 %10, i64 %arg3)
%13 = load i64, i64* %sv_1, align 8
%14 = load i64, i64* %sv_0, align 8
%15 = call i64 @FUNC(i64 %14, i64 %13)
%16 = urem i64 %12, 256
store i64 %16, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg3, { 1, 0 }
} | 0 |
BinRealVul | get_pool_16672 | get_pool | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%1 = call i64 @FUNC(i64 %0, i64 %sv_0.0.reload, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_3
LBL_2:
%4 = icmp eq i64 %1, %sv_0.0.reload
%5 = icmp eq i1 %4, false
store i64 %1, i64* %sv_0.0.reg2mem
store i64 %1, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | mem_cgroup_count_precharge_pte_range_3810 | mem_cgroup_count_precharge_pte_range | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.01.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 %1)
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_1, label LBL_6
LBL_1:
%9 = call i64 @FUNC(i64 %0, i64 %1, i64 %arg2, i64* nonnull %sv_1)
%10 = icmp eq i64 %arg2, %arg3
%11 = icmp eq i1 %10, false
store i64 %arg2, i64* %sv_0.01.reg2mem
br i1 %11, label LBL_2, label LBL_5
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%12 = call i64 @FUNC(i64 %0, i64 %sv_0.01.reload, i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_4, label LBL_3
LBL_3:
store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8
br label LBL_4
LBL_4:
%15 = add i64 %sv_0.01.reload, 4096
%16 = icmp eq i64 %15, %arg3
%17 = icmp eq i1 %16, false
store i64 %15, i64* %sv_0.01.reg2mem
br i1 %17, label LBL_2, label LBL_5
LBL_5:
%18 = load i64, i64* %sv_1, align 8
%19 = call i64 @FUNC(i64 %9, i64 %18)
%20 = call i64 @FUNC()
br label LBL_6
LBL_6:
ret i64 0
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | l2cap_valid_mtu_9338 | l2cap_valid_mtu | define i64 @FUNC(i16* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i16
%3 = icmp eq i16 %2, 1
%4 = icmp eq i1 %3, false
%5 = trunc i64 %arg2 to i16
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%6 = icmp ult i16 %5, 23
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_2:
%7 = icmp ult i16 %5, 48
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i16 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | do_addo_17136 | do_addo | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %0, i32* @gv_1, align 4
%1 = load i32, i32* @gv_2, align 4
%2 = add i32 %1, %0
store i32 %2, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = xor i32 %1, %0
%4 = xor i32 %0, -2147483648
%.not = xor i32 %4, %2
%5 = or i32 %.not, %3
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
store i8 0, i8* inttoptr (i64 4210741 to i8*), align 1
br label LBL_3
LBL_2:
store i8 1, i8* inttoptr (i64 4210740 to i8*), align 4
store i8 1, i8* bitcast (i32* @gv_3 to i8*), align 4
br label LBL_3
LBL_3:
%8 = zext i1 %6 to i64
ret i64 %8
uselistorder i1 %6, { 1, 0 }
uselistorder i32 %0, { 2, 0, 1, 3 }
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | qemu_signal_init_2046 | qemu_signal_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = bitcast i64* %sv_0 to %_TYPEDEF_sigset_t*
%1 = call i32 @sigemptyset(%_TYPEDEF_sigset_t* nonnull %0)
%2 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %0, i32 12)
%3 = bitcast i64* %sv_0 to %_TYPEDEF___sigset_t*
%4 = call i32 @pthread_sigmask(i32 1, %_TYPEDEF___sigset_t* nonnull %3, %_TYPEDEF___sigset_t* null)
%5 = call i32 @sigemptyset(%_TYPEDEF_sigset_t* nonnull %0)
%6 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %0, i32 34)
%7 = call i32 @pthread_sigmask(i32 0, %_TYPEDEF___sigset_t* nonnull %3, %_TYPEDEF___sigset_t* null)
%8 = call i32 @sigemptyset(%_TYPEDEF_sigset_t* nonnull %0)
%9 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %0, i32 29)
%10 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %0, i32 14)
%11 = call i32 @sigaddset(%_TYPEDEF_sigset_t* nonnull %0, i32 7)
%12 = call i32 @pthread_sigmask(i32 0, %_TYPEDEF___sigset_t* nonnull %3, %_TYPEDEF___sigset_t* null)
%13 = call i64 @FUNC(i64* nonnull %sv_0)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, -1
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%18 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %17)
%19 = call i32* @__errno_location()
%20 = load i32, i32* %19, align 4
%21 = sub i32 0, %20
%22 = zext i32 %21 to i64
store i64 %22, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%23 = and i64 %13, 4294967295
%24 = call i64 @FUNC(i64 %23, i64 2048)
%sext = mul i64 %13, 4294967296
%25 = ashr exact i64 %sext, 32
%26 = call i64 @FUNC(i64 %23, i64 0, i64 4198812, i64 0, i64 %25)
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 %23, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 0, { 0, 2, 1, 3 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 (i32, %_TYPEDEF___sigset_t*, %_TYPEDEF___sigset_t*)* @pthread_sigmask, { 2, 1, 0 }
uselistorder i32 (%_TYPEDEF_sigset_t*, i32)* @sigaddset, { 4, 3, 2, 1, 0 }
uselistorder i32 (%_TYPEDEF_sigset_t*)* @sigemptyset, { 2, 1, 0 }
uselistorder i32 1, { 3, 4, 5, 2, 1, 0 }
} | 0 |
BinRealVul | hmp_info_block_jobs_3025 | hmp_info_block_jobs | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 %3, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%4 = call i64 @FUNC(i64* nonnull %sv_1)
%5 = load i64, i64* %sv_1, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 60, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([20 x i8]* @gv_2 to i64), i64* %rcx.0.reg2mem
store i64 60, i64* %rdx.0.reg2mem
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = icmp eq i64 %4, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%10 = ptrtoint i64* %sv_2 to i64
%11 = add i64 %10, -16
%12 = inttoptr i64 %11 to i64*
store i64 %4, i64* %sv_0.01.reg2mem
br label LBL_5
LBL_4:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%13 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_10
LBL_5:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%14 = inttoptr i64 %sv_0.01.reload to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i8*
%19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
%22 = load i64, i64* %14, align 8
%23 = add i64 %22, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %22, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %22, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %22, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%35 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_5, i64 0, i64 0), i64 %34, i64 %31, i64 %28, i64 %25)
br label LBL_8
LBL_7:
%36 = inttoptr i64 %22 to i64*
%37 = load i64, i64* %36, align 8
store i64 %25, i64* %12, align 8
%38 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @gv_6, i64 0, i64 0), i64 %37, i64 %34, i64 %31, i64 %28)
br label LBL_8
LBL_8:
%39 = add i64 %sv_0.01.reload, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 %41, i64* %sv_0.01.reg2mem
br i1 %43, label LBL_5, label LBL_9
LBL_9:
%44 = call i64 @FUNC(i64 %41)
store i64 %44, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %41, { 1, 0, 2 }
uselistorder i64 %34, { 1, 0 }
uselistorder i64 %31, { 1, 0 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %22, { 0, 2, 1, 3, 4 }
uselistorder i64 %7, { 2, 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @monitor_printf, { 2, 1, 0 }
uselistorder i1 false, { 2, 1, 3, 4, 0 }
uselistorder [20 x i8]* @gv_2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | usbhsg_ep_disable_3777 | usbhsg_ep_disable | 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 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %1)
%6 = call i64 @FUNC(i64 %2)
%7 = inttoptr i64 %1 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
store i64 0, i64* %7, align 8
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 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ide_wait_clear_17269 | ide_wait_clear | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%sv_1 = alloca i8, align 1
%0 = bitcast i8* %sv_1 to i64*
%1 = call i64 @FUNC(i64* nonnull %0, i64* nonnull %0)
%2 = call i32 @time(i32* nonnull %sv_0)
%3 = call i64 @FUNC(i64 %1, i64 1)
%4 = trunc i64 %3 to i8
store i8 %4, i8* %sv_1, align 1
%5 = and i64 %3, %arg1
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = urem i64 %3, 256
ret i64 %9
LBL_2:
%10 = load i32, i32* %sv_0, align 4
%11 = call i32 @time(i32* null)
%12 = call double @difftime(i32 %11, i32 %10)
%13 = fptrunc double %12 to float
%14 = bitcast float %13 to i32
%15 = sext i32 %14 to i128
%16 = call i64 @FUNC(i128 %15)
%17 = call i128 @__asm_movq.1(i64 %16)
%18 = load i128, i128* @gv_0, align 8
call void @FUNC(i128 %17, i128 %18)
%19 = call i64 @FUNC()
unreachable
uselistorder i8 0, { 1, 0 }
uselistorder i32 (i32*)* @time, { 1, 0 }
uselistorder i32 1, { 2, 3, 0, 1, 4 }
} | 1 |
BinRealVul | readMovie_6394 | 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 = ashr i32 %8, 6
%28 = add i32 %21, %sv_0.0.reload
%29 = call i64 @FUNC(i64 %arg1, i64 %22, i32 %27)
%30 = call i32 @ftell(%_IO_FILE* %6)
%31 = icmp eq i32 %30, %28
br i1 %31, label LBL_8.LBL_11_crit_edge, label LBL_10
LBL_9:
%.pre = zext i32 %27 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:
%32 = call i32 @ftell(%_IO_FILE* %6)
%33 = sext i32 %32 to i64
%34 = zext i32 %27 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = zext i32 %28 to i64
%37 = call i64 @FUNC(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @gv_2, i64 0, i64 0), i64 %34, i64 %35, i64 %33, i64 %36, i64 %1)
store i64 %34, i64* %.pre-phi.reg2mem
store i64 %33, i64* %rcx.1.reg2mem
store i64 %36, 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
%38 = icmp eq i64 %29, 0
br i1 %38, label LBL_13, label LBL_12
LBL_12:
%39 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %29, i64 %arg1)
%40 = inttoptr i64 %29 to i64*
call void @free(i64* %40)
store i64 %29, i64* %rcx.2.reg2mem
store i64 %29, i64* %rsi.1.reg2mem
br label LBL_14
LBL_13:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%41 = 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
%42 = icmp eq i32 %27, 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 %42, label LBL_18, label LBL_15
LBL_15:
%43 = load i64, i64* @gv_4, align 8
%44 = load i32, i32* @gv_1, align 4
%45 = sext i32 %44 to i64
%46 = icmp ugt i64 %43, %45
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 %46, label LBL_16, label LBL_18
LBL_16:
%47 = sext i32 %28 to i64
%48 = call i32 @fseek(%_IO_FILE* %6, i32 %28, i32 0)
%49 = call i32 @ftell(%_IO_FILE* %6)
store i32 %49, i32* @gv_1, align 4
store i64 %47, i64* %rcx.3.reg2mem
store i64 %47, 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
%50 = call i64 @FUNC(i64 2)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, 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 %53, label LBL_18, label LBL_2
LBL_18:
%54 = call i32 @putchar(i32 10)
%55 = load i64, i64* @gv_4, align 8
%56 = load i32, i32* @gv_1, align 4
%57 = sext i32 %56 to i64
%58 = icmp ugt i64 %55, %57
br i1 %58, 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
%59 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_5, i64 0, i64 0), i64 %rsi.3.reload, i64 %57, i64 %rcx.4.reload, i64 %r8.3.reload, i64 %1)
%60 = load i64, i64* @gv_4, align 8
%61 = load i32, i32* @gv_1, align 4
%62 = sext i32 %61 to i64
%63 = sub i64 %60, %62
%64 = call i64 @FUNC(i64 %arg1, i64 %63)
%65 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_6, i64 0, i64 0))
br label LBL_20
LBL_20:
%66 = call i64 @FUNC(i64* nonnull @gv_4)
ret i64 %66
uselistorder i64 %.pre-phi.reload, { 0, 2, 1 }
uselistorder i64 %r8.1.reload, { 2, 0, 1, 3 }
uselistorder i64 %29, { 0, 1, 3, 4, 2 }
uselistorder i32 %28, { 2, 1, 0, 3 }
uselistorder i32 %27, { 2, 1, 0, 3 }
uselistorder i64 %22, { 1, 0, 2, 3 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder i32 %8, { 1, 0 }
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, { 1, 2, 0 }
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, { 6, 1, 3, 4, 5, 0, 2 }
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 }
} | 0 |
BinRealVul | sample_to_timespec_11608 | sample_to_timespec | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %0, 8
%7 = call i64 @FUNC(i64 %arg2, i64 1000000000, i64 %6)
store i64 %7, i64* %arg3, align 8
store i64 %7, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 %arg2, i64 %0)
store i64 %8, 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 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | webSocketParseAuthenticateField_11682 | webSocketParseAuthenticateField | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_23
LBL_1:
%4 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = bitcast i64* %arg1 to i32*
store i32 1, i32* %8, align 4
br label LBL_5
LBL_3:
%9 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_23, label LBL_4
LBL_4:
%13 = bitcast i64* %arg1 to i32*
store i32 2, i32* %13, align 4
br label LBL_5
LBL_5:
%14 = ptrtoint i64* %arg1 to i64
%15 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_1)
%16 = add i64 %14, 4
%17 = add i64 %14, 68
%18 = add i64 %14, 133
%19 = add i64 %14, 200
%20 = inttoptr i64 %19 to i32*
store i64 %15, i64* %sv_0.0.ph.in.reg2mem
br label LBL_21
LBL_6:
%21 = call i8* @strchr(i8* %sv_0.0.ph, i32 61)
%22 = icmp eq i8* %21, null
br i1 %22, label LBL_22, label LBL_7
LBL_7:
store i8 0, i8* %21, align 1
%23 = call i64 @FUNC(i64 %sv_0.0.ph.in.reload)
%24 = ptrtoint i8* %21 to i64
%25 = add i64 %24, 1
%26 = call i64 @FUNC(i64 %25)
%27 = call i64 @FUNC(i64 %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label LBL_10, label LBL_8
LBL_8:
%29 = add i64 %26, -1
%30 = add i64 %29, %27
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = icmp eq i8 %32, 34
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_10, label LBL_9
LBL_9:
store i8 0, i8* %31, align 1
br label LBL_10
LBL_10:
%35 = inttoptr i64 %26 to i8*
%36 = load i8, i8* %35, align 1
%37 = icmp eq i8 %36, 34
%38 = zext i1 %37 to i64
%spec.select = add i64 %26, %38
%39 = call i64 @FUNC(i64 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_12, label LBL_11
LBL_11:
%43 = call i64 @FUNC(i64 %16, i64 %spec.select, i64 64)
br label LBL_20
LBL_12:
%44 = call i64 @FUNC(i64 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0))
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_14, label LBL_13
LBL_13:
%48 = call i64 @FUNC(i64 %17, i64 %spec.select, i64 65)
br label LBL_20
LBL_14:
%49 = call i64 @FUNC(i64 %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0))
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_16, label LBL_15
LBL_15:
%53 = call i64 @FUNC(i64 %18, i64 %spec.select, i64 65)
br label LBL_20
LBL_16:
%54 = call i64 @FUNC(i64 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_7, i64 0, i64 0))
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_20, label LBL_17
LBL_17:
%58 = call i64 @FUNC(i64 %spec.select, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_8, i64 0, i64 0))
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_19, label LBL_18
LBL_18:
store i32 1, i32* %20, align 4
br label LBL_20
LBL_19:
store i32 0, i32* %20, align 4
br label LBL_20
LBL_20:
%62 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_1)
store i64 %62, i64* %sv_0.0.ph.in.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.ph.in.reload = load i64, i64* %sv_0.0.ph.in.reg2mem
%sv_0.0.ph = inttoptr i64 %sv_0.0.ph.in.reload to i8*
%63 = icmp eq i64 %sv_0.0.ph.in.reload, 0
%64 = icmp eq i1 %63, false
br label LBL_22
LBL_22:
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_6, label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.ph.in.reload, { 1, 0, 2 }
uselistorder i64 %spec.select, { 3, 2, 1, 0 }
uselistorder i64 %26, { 0, 2, 1, 3 }
uselistorder i8* %21, { 1, 0, 2 }
uselistorder i32* %20, { 1, 0 }
uselistorder i64 %14, { 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.ph.in.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @strSafeCopy, { 2, 1, 0 }
uselistorder i64 -1, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @osStrlen, { 1, 0 }
uselistorder i64 (i64)* @strTrimWhitespace, { 1, 0 }
uselistorder i64 (i64, i8*)* @osStrcasecmp, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 6, 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12 }
uselistorder i64 (i64, i8*, i64*)* @osStrtok_r, { 2, 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
} | 1 |
BinRealVul | cmplog_exec_child_19247 | cmplog_exec_child | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i32 @setenv(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 1)
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @setenv(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 0)
br label LBL_5
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, ptrtoint ([2 x i8]* @gv_1 to i64)
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = inttoptr i64 %arg2 to i64*
store i64 %14, i64* %16, align 8
br label LBL_5
LBL_5:
%17 = inttoptr i64 %arg2 to i8*
%18 = insertvalue [1 x i8*] undef, i8* %17, 0
%19 = call i32 @execv(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), [1 x i8*] %18)
%20 = sext i32 %19 to i64
ret i64 %20
uselistorder i64 %14, { 1, 0 }
uselistorder [2 x i8]* @gv_1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | copyMultiCh24_12711 | copyMultiCh24 | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.14.reg2mem = alloca i64
%indvars.iv8.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = icmp eq i32 %arg4, 0
%wide.trip.count = zext i32 %arg4 to i64
%wide.trip.count10 = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv8.reg2mem
store i64 %arg1, i64* %sv_0.14.reg2mem
br label LBL_4
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = mul i64 %indvars.iv.reload, 8
%3 = add i64 %2, %arg2
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, %13
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = udiv i32 %8, 256
%10 = add i64 %sv_0.02.reload, 2
%11 = trunc i32 %9 to i16
%12 = inttoptr i64 %sv_0.02.reload to i16*
store i16 %11, i16* %12, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %10, i64* %sv_0.02.reg2mem
store i64 %10, i64* %sv_0.0.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1
%exitcond11 = icmp eq i64 %indvars.iv.next9, %wide.trip.count10
store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.14.reg2mem
store i64 %wide.trip.count10, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond11, label LBL_6, label LBL_4
LBL_4:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
store i64 %sv_0.14.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %1, label LBL_3, label LBL_2.lr.ph
LBL_5:
%13 = mul i64 %indvars.iv8.reload, 4
store i64 0, i64* %indvars.iv.reg2mem
store i64 %sv_0.14.reload, i64* %sv_0.02.reg2mem
br label LBL_2
LBL_6:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %indvars.iv8.reload, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 1, 0 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | draw_char_5187 | draw_char | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
%12 = add i32 %3, 8
%spec.select = select i1 %11, i32 %3, i32 %12
%13 = and i32 %9, 2
%14 = icmp eq i32 %13, 0
%15 = add i32 %6, 8
%sv_0.0 = select i1 %14, i32 %6, i32 %15
%16 = and i32 %9, 4
%17 = icmp eq i32 %16, 0
%spec.select2 = select i1 %17, i32 %spec.select, i32 %sv_0.0
%spec.select3 = select i1 %17, i32 %sv_0.0, i32 %spec.select
%18 = and i32 %9, 8
%19 = icmp eq i32 %18, 0
%sv_1.2 = select i1 %19, i32 %spec.select2, i32 %spec.select3
%20 = add i64 %2, 36
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %2, 32
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %2, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %28, 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = inttoptr i64 %28 to i64*
%33 = load i64, i64* %32, align 8
%34 = add i64 %2, 16
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = mul i32 %36, %31
%38 = sext i32 %37 to i64
%39 = add i64 %2, 12
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = sext i32 %41 to i64
%43 = add i64 %33, %38
%44 = add i64 %43, %42
%45 = trunc i64 %arg2 to i32
%46 = zext i32 %31 to i64
%47 = call i64 @FUNC(i64 %44, i64 %46, i32 %25, i32 %22, i32 %45, i32 %sv_1.2)
%48 = load i32, i32* %40, align 4
%49 = add i32 %48, 8
store i32 %49, i32* %40, align 4
%50 = load i32, i32* %8, align 4
%51 = zext i32 %50 to i64
%52 = icmp ult i32 %49, %50
store i64 %51, i64* %rax.0.reg2mem
br i1 %52, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %40, align 4
%53 = call i64 @FUNC(i64 %2)
store i64 %53, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %40, { 0, 2, 1, 3 }
uselistorder i32 %31, { 1, 0 }
uselistorder i32 %9, { 1, 2, 3, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 0, 5, 4, 3, 2, 1, 6, 7 }
uselistorder i32 2, { 1, 0 }
} | 0 |
BinRealVul | slurm_load_node_4294 | slurm_load_node | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32*
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i32*, i32** %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 2, i32* %sv_1, align 4
%4 = bitcast i32* %sv_0 to i64*
%5 = call i64 @FUNC(i32* nonnull %sv_1, i64* nonnull %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%9 = load i32, i32* %sv_0, align 4
switch i32 %9, label LBL_6 [
i32 3, label LBL_2
i32 4, label LBL_3
]
LBL_2:
%10 = ptrtoint i32* %3 to i64
store i64 %10, i64* %arg2, align 8
%11 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_3:
%12 = load i32, i32* %3, align 4
%13 = ptrtoint i32* %3 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = icmp eq i32 %12, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = zext i32 %12 to i64
%17 = call i64 @FUNC(i64 %16)
br label LBL_5
LBL_5:
store i64 0, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%18 = call i64 @FUNC(i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %3, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64)* @slurm_seterrno_ret, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | mm_decode_intra_6574 | mm_decode_intra | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = trunc i64 %arg2 to i32
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i32
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = trunc i64 %arg3 to i32
%8 = icmp eq i32 %7, 0
%9 = add i64 %0, 20
%10 = inttoptr i64 %9 to i32*
%11 = trunc i64 %1 to i32
store i32 0, i32* %sv_1.0.ph.reg2mem
br label LBL_11
LBL_1:
%12 = load i32, i32* %10, align 4
%13 = zext i32 %12 to i64
%14 = icmp slt i64 %62, %13
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_13
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%15 = call i64 @FUNC(i64 %1)
%16 = trunc i64 %15 to i32
%17 = trunc i64 %15 to i8
%18 = icmp sgt i8 %17, -1
store i32 %16, i32* %sv_3.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%19 = urem i32 %16, 128
%20 = add nuw nsw i32 %19, 2
%21 = call i64 @FUNC(i64 %1)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_3.0.reg2mem
store i32 %20, i32* %sv_2.0.reg2mem
br label LBL_4
LBL_4:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%spec.select = shl nsw i32 %sv_2.0.reload, %4
%23 = sub i32 %11, %sv_0.0.reload
%24 = zext i32 %23 to i64
%25 = sext i32 %spec.select to i64
%26 = icmp sgt i64 %25, %24
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %26, label LBL_13, label LBL_5
LBL_5:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%27 = icmp eq i32 %sv_3.0.reload, 0
store i64 %1, i64* %.reg2mem
br i1 %27, label LBL_9, label LBL_6
LBL_6:
%28 = load i64, i64* %6, align 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %28, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = mul i32 %33, %sv_1.0.ph.reload
%35 = sext i32 %34 to i64
%36 = sext i32 %sv_0.0.reload to i64
%37 = add i64 %30, %36
%38 = add i64 %37, %35
%39 = inttoptr i64 %38 to i64*
%40 = call i64* @memset(i64* %39, i32 %sv_3.0.reload, i32 %spec.select)
store i64 %38, i64* %.reg2mem
br i1 %8, label LBL_9, label LBL_7
LBL_7:
%41 = add i64 %38, 4
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp ult i32 %63, %43
store i64 %38, i64* %.reg2mem
br i1 %44, label LBL_8, label LBL_9
LBL_8:
%45 = load i64, i64* %6, align 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = add i64 %45, 8
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = mul i32 %50, %64
%52 = sext i32 %51 to i64
%53 = add i64 %47, %36
%54 = add i64 %53, %52
%55 = inttoptr i64 %54 to i64*
%56 = call i64* @memset(i64* %55, i32 %sv_3.0.reload, i32 %spec.select)
store i64 %54, i64* %.reg2mem
br label LBL_9
LBL_9:
%.reload = load i64, i64* %.reg2mem
%57 = add i32 %spec.select, %sv_0.0.reload
%58 = and i64 %.reload, 4294967295
%59 = sext i32 %57 to i64
%60 = icmp sgt i64 %58, %59
store i32 %57, i32* %sv_0.0.reg2mem
br i1 %60, label LBL_12, label LBL_10
LBL_10:
%61 = add i32 %64, %7
store i32 %61, i32* %sv_1.0.ph.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%62 = sext i32 %sv_1.0.ph.reload to i64
%63 = add i32 %sv_1.0.ph.reload, %7
%64 = add i32 %sv_1.0.ph.reload, 1
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%65 = call i64 @FUNC(i64 %1)
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
%68 = icmp slt i32 %66, 0
%69 = icmp eq i1 %68, false
%70 = icmp eq i1 %67, false
%71 = icmp eq i1 %69, %70
store i64 0, i64* %rax.0.reg2mem
br i1 %71, label LBL_1, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %66, { 1, 0 }
uselistorder i32 %64, { 1, 0 }
uselistorder i32 %sv_1.0.ph.reload, { 0, 2, 1, 3 }
uselistorder i64 %38, { 1, 2, 0, 3 }
uselistorder i32 %sv_3.0.reload, { 2, 0, 1 }
uselistorder i32 %spec.select, { 0, 1, 3, 2 }
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64 %1, { 4, 0, 2, 3, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 2, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder i32 0, { 5, 6, 0, 3, 1, 2, 4 }
uselistorder label LBL_9, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | nfc_llcp_sock_free_10563 | nfc_llcp_sock_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 8
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %1)
%5 = inttoptr i64 %1 to i64*
store i64 0, i64* %5, align 8
%6 = add i64 %arg1, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
ret i64 %9
uselistorder i64 (i64)* @skb_queue_purge, { 1, 0 }
} | 0 |
BinRealVul | read_len_table_16556 | read_len_table | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%.lcssa.in.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.01.reg2mem = alloca i32
%sv_1.02.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%sv_0.14.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i32 0, i32* %sv_0.14.reg2mem
br label LBL_1
LBL_1:
%sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem
%2 = call i64 @FUNC(i64 %0, i64 3)
%3 = trunc i64 %2 to i32
%4 = call i64 @FUNC(i64 %0, i64 5)
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i32 %3, i32* %sv_1.0.ph.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 8)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %sv_1.0.ph.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%9 = icmp eq i32 %sv_1.0.ph.reload, 0
%10 = icmp eq i1 %9, false
store i32 %sv_0.14.reload, i32* %sv_0.0.lcssa.reg2mem
store i32 %sv_1.0.ph.reload, i32* %.lcssa.in.reg2mem
br i1 %10, label LBL_4, label LBL_6
LBL_4:
%11 = trunc i64 %4 to i8
store i32 %sv_1.0.ph.reload, i32* %sv_1.02.reg2mem
store i32 %sv_0.14.reload, i32* %sv_0.01.reg2mem
br label LBL_5
LBL_5:
%sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%12 = add i32 %sv_1.02.reload, -1
%13 = add i32 %sv_0.01.reload, 1
%14 = sext i32 %sv_0.01.reload to i64
%15 = add i64 %14, %1
%16 = inttoptr i64 %15 to i8*
store i8 %11, i8* %16, align 1
%17 = icmp eq i32 %12, 0
%18 = icmp eq i1 %17, false
store i32 %12, i32* %sv_1.02.reg2mem
store i32 %13, i32* %sv_0.01.reg2mem
store i32 %13, i32* %sv_0.0.lcssa.reg2mem
store i32 %12, i32* %.lcssa.in.reg2mem
br i1 %18, label LBL_5, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%19 = icmp slt i32 %sv_0.0.lcssa.reload, 256
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.14.reg2mem
br i1 %19, label LBL_1, label LBL_7
LBL_7:
%.lcssa.in.reload = load i32, i32* %.lcssa.in.reg2mem
%.lcssa = zext i32 %.lcssa.in.reload to i64
ret i64 %.lcssa
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.01.reload, { 1, 0 }
uselistorder i32 %sv_1.0.ph.reload, { 1, 0, 2 }
uselistorder i32 %sv_0.14.reload, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i32* %sv_0.14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @get_bits, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 3, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | trusted_update_4086 | trusted_update | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_14
LBL_1:
%arg3.off = add i64 %arg3, -1
%7 = icmp ult i64 %arg3.off, 32767
%8 = icmp eq i64 %arg2, 0
%9 = icmp eq i1 %8, false
%or.cond = icmp eq i1 %9, %7
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_14
LBL_2:
%10 = add i64 %arg3, 1
%11 = call i64 @FUNC(i64 %10, i64 0)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_14
LBL_3:
%14 = call i64 @FUNC()
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967293, i64* %sv_0.1.reg2mem
br i1 %16, label LBL_4, label LBL_13
LBL_4:
%17 = ptrtoint i64* %arg1 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967293, i64* %sv_0.1.reg2mem
br i1 %20, label LBL_5, label LBL_13
LBL_5:
%21 = inttoptr i64 %11 to i64*
%22 = inttoptr i64 %arg2 to i64*
%23 = trunc i64 %arg3 to i32
%24 = call i64* @memcpy(i64* %21, i64* %22, i32 %23)
%25 = add i64 %11, %arg3
%26 = inttoptr i64 %25 to i8*
store i8 0, i8* %26, align 1
%27 = call i64 @FUNC(i64 %11, i64 %18, i64 %14)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64 %18)
store i64 4294967294, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_7:
%31 = bitcast i64* %rdi to i32*
%32 = inttoptr i64 %18 to i32*
%33 = load i32, i32* %31, align 8
store i32 %33, i32* %32, align 4
%34 = add i64 %17, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = add i64 %18, 8
%38 = inttoptr i64 %37 to i64*
store i64 %36, i64* %38, align 8
%39 = load i64, i64* %35, align 8
%40 = add i64 %17, 16
%41 = add i64 %18, 16
%42 = inttoptr i64 %41 to i64*
%43 = inttoptr i64 %40 to i64*
%44 = trunc i64 %39 to i32
%45 = call i64* @memcpy(i64* %42, i64* %43, i32 %44)
%46 = call i64 @FUNC(i64 %17)
%47 = call i64 @FUNC(i64 %18)
store i64 %18, i64* %rdi, align 8
%48 = call i64 @FUNC(i64 %18, i64 %14)
%49 = trunc i64 %48 to i32
%50 = icmp slt i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_9, label LBL_8
LBL_8:
%52 = and i64 %48, 4294967295
%53 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %52, i64 %14, i64 %41, i64 %2, i64 %1)
%54 = call i64 @FUNC(i64 %18)
store i64 %48, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_9:
%55 = inttoptr i64 %14 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp eq i32 %56, 0
store i64 %18, i64* %.reg2mem
store i64 %48, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_12, label LBL_10
LBL_10:
%58 = zext i32 %56 to i64
store i64 %58, i64* %rdi, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = trunc i64 %59 to i32
%61 = icmp slt i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 %58, i64* %.reg2mem
store i64 %59, i64* %sv_0.0.reg2mem
br i1 %62, label LBL_12, label LBL_11
LBL_11:
%63 = and i64 %59, 4294967295
%64 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %63, i64 %14, i64 %41, i64 %2, i64 %1)
%65 = call i64 @FUNC(i64 %18)
store i64 %59, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%66 = call i64 @FUNC(i64 %.reload, i64 %18)
%67 = add i64 %17, 272
%68 = call i64 @FUNC(i64 %67, i64 4198962)
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
%69 = call i64 @FUNC(i64 %11)
%70 = call i64 @FUNC(i64 %14)
%71 = and i64 %sv_0.1.reload, 4294967295
store i64 %71, 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 %59, { 0, 2, 1, 3 }
uselistorder i64 %48, { 1, 0, 2, 3 }
uselistorder i64 %41, { 1, 0, 2 }
uselistorder i64 %18, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 11, 9, 10, 12 }
uselistorder i64 %14, { 4, 1, 5, 0, 2, 3, 6 }
uselistorder i64 %11, { 1, 2, 0, 3, 4 }
uselistorder i64* %rdi, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 6, 5, 4, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_info, { 1, 0 }
uselistorder i64 (i64)* @dump_payload, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 4, 3, 2, 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 4294967293, { 1, 2, 0 }
uselistorder i64 (i64, i64)* @kmalloc, { 2, 1, 0 }
uselistorder i64 4294967294, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i64 %arg3, { 0, 2, 3, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_14, { 3, 0, 1, 2 }
uselistorder label LBL_13, { 2, 3, 4, 5, 0, 1 }
} | 0 |
BinRealVul | mcdc_735 | mcdc | define i64 @FUNC(i64* %arg1, i16* %arg2, i32 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.312.reg2mem = alloca i64
%sv_1.713.reg2mem = alloca i16*
%storemerge514.reg2mem = alloca i32
%sv_0.215.reg2mem = alloca i64
%sv_1.516.reg2mem = alloca i16*
%storemerge417.reg2mem = alloca i32
%sv_0.123.reg2mem = alloca i64
%sv_1.324.reg2mem = alloca i16*
%storemerge25.reg2mem = alloca i32
%sv_0.019.reg2mem = alloca i64
%sv_1.120.reg2mem = alloca i16*
%storemerge321.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg7 to i32
%2 = mul i32 %1, 65537
%3 = icmp eq i32 %arg3, 3
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_20
LBL_2:
%5 = zext i32 %arg6 to i64
%6 = icmp eq i32 %arg6, 0
%7 = sext i32 %arg5 to i64
%8 = mul i64 %7, 2
store i32 0, i32* %storemerge514.reg2mem
store i16* %arg2, i16** %sv_1.713.reg2mem
store i64 %0, i64* %sv_0.312.reg2mem
br label LBL_14
LBL_3:
%9 = icmp sgt i32 %arg3, 3
br i1 %9, label LBL_15, label LBL_4
LBL_4:
switch i32 %arg3, label LBL_15 [
i32 2, label LBL_9
i32 0, label LBL_7
i32 1, label LBL_5
]
LBL_5:
%10 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_6, label LBL_20
LBL_6:
%11 = zext i32 %arg6 to i64
%12 = icmp eq i32 %arg6, 0
%13 = sext i32 %arg5 to i64
%14 = mul i64 %13, 2
store i32 0, i32* %storemerge25.reg2mem
store i16* %arg2, i16** %sv_1.324.reg2mem
store i64 %0, i64* %sv_0.123.reg2mem
br label LBL_12
LBL_7:
%15 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_8, label LBL_20
LBL_8:
%16 = icmp eq i32 %arg6, 0
%17 = sext i32 %arg5 to i64
%18 = mul i64 %17, 2
store i32 0, i32* %storemerge321.reg2mem
store i16* %arg2, i16** %sv_1.120.reg2mem
store i64 %0, i64* %sv_0.019.reg2mem
br label LBL_11
LBL_9:
%19 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_10, label LBL_20
LBL_10:
%20 = zext i32 %arg6 to i64
%21 = icmp eq i32 %arg6, 0
%22 = sext i32 %arg5 to i64
%23 = mul i64 %22, 2
store i32 0, i32* %storemerge417.reg2mem
store i16* %arg2, i16** %sv_1.516.reg2mem
store i64 %0, i64* %sv_0.215.reg2mem
br label LBL_13
LBL_11:
%sv_0.019.reload = load i64, i64* %sv_0.019.reg2mem
%sv_1.120.reload = load i16*, i16** %sv_1.120.reg2mem
%storemerge321.reload = load i32, i32* %storemerge321.reg2mem
%24 = load i16, i16* %sv_1.120.reload, align 2
%25 = zext i16 %24 to i32
%26 = mul i32 %25, %arg6
%27 = add i32 %26, %2
%28 = trunc i32 %27 to i16
%29 = inttoptr i64 %sv_0.019.reload to i16*
store i16 %28, i16* %29, align 2
%30 = ptrtoint i16* %sv_1.120.reload to i64
%31 = add i64 %18, %30
%32 = inttoptr i64 %31 to i16*
%sv_1.0 = select i1 %16, i16* %sv_1.120.reload, i16* %32
%33 = add i64 %sv_0.019.reload, %18
%34 = add nuw nsw i32 %storemerge321.reload, 1
%exitcond36 = icmp eq i32 %34, %arg4
store i32 %34, i32* %storemerge321.reg2mem
store i16* %sv_1.0, i16** %sv_1.120.reg2mem
store i64 %33, i64* %sv_0.019.reg2mem
br i1 %exitcond36, label LBL_18, label LBL_11
LBL_12:
%sv_0.123.reload = load i64, i64* %sv_0.123.reg2mem
%sv_1.324.reload = load i16*, i16** %sv_1.324.reg2mem
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%35 = ptrtoint i16* %sv_1.324.reload to i64
%36 = call i64 @FUNC(i64 %sv_0.123.reload, i64 %35, i64 %11, i32 %2)
%37 = add i64 %14, %35
%38 = inttoptr i64 %37 to i16*
%sv_1.2 = select i1 %12, i16* %sv_1.324.reload, i16* %38
%39 = add i64 %sv_0.123.reload, %14
%40 = add nuw nsw i32 %storemerge25.reload, 1
%exitcond37 = icmp eq i32 %40, %arg4
store i32 %40, i32* %storemerge25.reg2mem
store i16* %sv_1.2, i16** %sv_1.324.reg2mem
store i64 %39, i64* %sv_0.123.reg2mem
br i1 %exitcond37, label LBL_19, label LBL_12
LBL_13:
%sv_0.215.reload = load i64, i64* %sv_0.215.reg2mem
%sv_1.516.reload = load i16*, i16** %sv_1.516.reg2mem
%storemerge417.reload = load i32, i32* %storemerge417.reg2mem
%41 = ptrtoint i16* %sv_1.516.reload to i64
%42 = call i64 @FUNC(i64 %sv_0.215.reload, i64 %41, i64 %20, i32 %2)
%43 = add i64 %41, 4
%44 = add i64 %sv_0.215.reload, 4
%45 = call i64 @FUNC(i64 %44, i64 %43, i64 %20, i32 %2)
%46 = add i64 %23, %41
%47 = inttoptr i64 %46 to i16*
%sv_1.4 = select i1 %21, i16* %sv_1.516.reload, i16* %47
%48 = add i64 %sv_0.215.reload, %23
%49 = add nuw nsw i32 %storemerge417.reload, 1
%exitcond35 = icmp eq i32 %49, %arg4
store i32 %49, i32* %storemerge417.reg2mem
store i16* %sv_1.4, i16** %sv_1.516.reg2mem
store i64 %48, i64* %sv_0.215.reg2mem
br i1 %exitcond35, label LBL_17, label LBL_13
LBL_14:
%sv_0.312.reload = load i64, i64* %sv_0.312.reg2mem
%sv_1.713.reload = load i16*, i16** %sv_1.713.reg2mem
%storemerge514.reload = load i32, i32* %storemerge514.reg2mem
%50 = ptrtoint i16* %sv_1.713.reload to i64
%51 = call i64 @FUNC(i64 %sv_0.312.reload, i64 %50, i64 %5, i32 %2)
%52 = add i64 %50, 4
%53 = add i64 %sv_0.312.reload, 4
%54 = call i64 @FUNC(i64 %53, i64 %52, i64 %5, i32 %2)
%55 = add i64 %50, 8
%56 = add i64 %sv_0.312.reload, 8
%57 = call i64 @FUNC(i64 %56, i64 %55, i64 %5, i32 %2)
%58 = add i64 %50, 12
%59 = add i64 %sv_0.312.reload, 12
%60 = call i64 @FUNC(i64 %59, i64 %58, i64 %5, i32 %2)
%61 = add i64 %8, %50
%62 = inttoptr i64 %61 to i16*
%sv_1.6 = select i1 %6, i16* %sv_1.713.reload, i16* %62
%63 = add i64 %sv_0.312.reload, %8
%64 = add nuw nsw i32 %storemerge514.reload, 1
%exitcond = icmp eq i32 %64, %arg4
store i32 %64, i32* %storemerge514.reg2mem
store i16* %sv_1.6, i16** %sv_1.713.reg2mem
store i64 %63, i64* %sv_0.312.reg2mem
br i1 %exitcond, label LBL_16, label LBL_14
LBL_15:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_20
LBL_16:
%65 = zext i32 %arg4 to i64
store i64 %65, i64* %rax.0.reg2mem
br label LBL_20
LBL_17:
%66 = zext i32 %arg4 to i64
store i64 %66, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%67 = zext i32 %arg4 to i64
store i64 %67, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%68 = zext i32 %arg4 to i64
store i64 %68, 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 i16* %sv_1.713.reload, { 1, 0 }
uselistorder i64 %sv_0.312.reload, { 4, 0, 1, 3, 2 }
uselistorder i16* %sv_1.516.reload, { 1, 0 }
uselistorder i64 %sv_0.215.reload, { 2, 1, 0 }
uselistorder i16* %sv_1.324.reload, { 1, 0 }
uselistorder i64 %sv_0.123.reload, { 1, 0 }
uselistorder i16* %sv_1.120.reload, { 2, 0, 1 }
uselistorder i64 %sv_0.019.reload, { 1, 0 }
uselistorder i32 %2, { 4, 3, 1, 2, 5, 6, 7, 0 }
uselistorder i64 %0, { 1, 3, 2, 0 }
uselistorder i32* %storemerge321.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.120.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.019.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge25.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.324.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.123.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge417.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.516.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.215.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge514.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.713.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.312.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 6, 8, 9, 5, 3, 1, 7 }
uselistorder i64 (i64, i64, i64, i32)* @LE_CENTRIC_MUL, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 10, 5, 3, 12, 6, 2, 11, 7, 8, 0, 9, 4 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 %arg6, { 0, 4, 5, 3, 1, 2, 6, 7 }
uselistorder i32 %arg5, { 2, 1, 0, 3 }
uselistorder i32 %arg4, { 1, 3, 5, 7, 6, 4, 0, 2, 9, 10, 11, 8 }
uselistorder i16* %arg2, { 1, 3, 2, 0 }
uselistorder label LBL_20, { 1, 3, 5, 7, 8, 4, 2, 0, 6 }
} | 0 |
BinRealVul | parse_hex64_1806 | parse_hex64 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i64 @strtoull(i8* %3, i8** nonnull %sv_0, i32 16)
%5 = inttoptr i64 %2 to i64*
store i64 %4, i64* %5, align 8
%6 = load i8*, i8** %sv_0, align 8
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = ptrtoint i8* %6 to i64
%11 = icmp eq i64 %10, %arg3
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i64 0, i64 4294967274
ret i64 %spec.select
LBL_2:
ret i64 4294967274
} | 0 |
BinRealVul | mux_chr_can_read_16777 | mux_chr_can_read | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = sub i32 %7, %10
%12 = icmp sgt i32 %11, 1023
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_1, label LBL_3
LBL_1:
%sext = mul i64 %1, 4294967296
%13 = ashr exact i64 %sext, 29
%14 = add i64 %5, %13
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = add i64 %14, 88
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
store i64 %21, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | write_version_17326 | write_version | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = inttoptr i64 %arg1 to %_IO_FILE*
%3 = call i32 @ftell(%_IO_FILE* %2)
%4 = inttoptr i64 %arg2 to i8*
%5 = call i8* @strstr(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%6 = icmp eq i8* %5, null
br i1 %6, label LBL_2, label LBL_1
LBL_1:
store i8 0, i8* %5, align 1
br label LBL_2
LBL_2:
%7 = call i32 @strlen(i8* %4)
%8 = inttoptr i64 %arg3 to i8*
%9 = call i32 @strlen(i8* %8)
%10 = add i32 %7, 16
%11 = add i32 %10, %9
%12 = call i64* @malloc(i32 %11)
%13 = call i32 @strlen(i8* %4)
%14 = call i32 @strlen(i8* %8)
%15 = add i32 %13, 16
%16 = add i32 %15, %14
%17 = and i64 %1, 4294967295
%18 = bitcast i64* %12 to i8*
%19 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %18, i32 %16, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i8* %8, i8* %4, i64 %17)
%20 = call %_IO_FILE* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0))
%21 = icmp eq %_IO_FILE* %20, null
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = ptrtoint i64* %12 to i64
%24 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i64 %23)
%25 = call i32 @fseek(%_IO_FILE* %2, i32 %3, i32 0)
call void @free(i64* %12)
store i64 ptrtoint (i32* @0 to i64), i64* %storemerge.reg2mem
br label LBL_7
LBL_4:
%26 = call i32 @fseek(%_IO_FILE* %2, i32 0, i32 0)
%27 = call i32 @fread(i64* nonnull %sv_0, i32 1, i32 1, %_IO_FILE* %2)
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_5, label LBL_6
LBL_5:
%30 = call i32 @fwrite(i64* nonnull %sv_0, i32 1, i32 1, %_IO_FILE* %20)
%31 = call i32 @fread(i64* nonnull %sv_0, i32 1, i32 1, %_IO_FILE* %2)
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_5, label LBL_6
LBL_6:
%34 = ptrtoint i32* %arg4 to i64
%35 = add i64 %34, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = trunc i64 %37 to i32
%39 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %20, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_4, i64 0, i64 0), i32 %38)
%40 = call i32 @fclose(%_IO_FILE* %20)
call void @free(i64* %12)
%41 = call i32 @fseek(%_IO_FILE* %2, i32 %3, i32 0)
%42 = sext i32 %41 to i64
store i64 %42, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder %_IO_FILE* %20, { 1, 0, 2, 3 }
uselistorder i64* %12, { 0, 1, 3, 2 }
uselistorder i8* %8, { 1, 0, 2 }
uselistorder i32 %3, { 1, 0 }
uselistorder %_IO_FILE* %2, { 2, 3, 0, 4, 1, 5 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fread, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i32, i32)* @fseek, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 0, 3, 4, 5 }
uselistorder i32 (i8*)* @strlen, { 2, 3, 0, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | aio_bh_poll_1129 | aio_bh_poll | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem17 = alloca i64
%.reg2mem15 = alloca i64*
%.reg2mem13 = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.22.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i32 %3, 1
store i32 %4, i32* %2, align 4
%5 = icmp eq i64* %arg1, null
%6 = icmp eq i1 %5, false
store i32 %4, i32* %.reg2mem
store i32 0, i32* %sv_0.2.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_9
LBL_1:
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 %0, i64* %storemerge3.reg2mem
store i32 0, i32* %sv_0.22.reg2mem
br label LBL_2
LBL_2:
%sv_0.22.reload = load i32, i32* %sv_0.22.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%9 = call i64 @FUNC()
%10 = inttoptr i64 %storemerge3.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %storemerge3.reload, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = add i64 %storemerge3.reload, 12
%18 = call i64 @FUNC(i64 %17, i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br i1 %20, label LBL_7, label LBL_4
LBL_4:
%21 = add i64 %storemerge3.reload, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i32 %sv_0.22.reload, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = load i64, i64* %8, align 8
%27 = icmp eq i64 %storemerge3.reload, %26
%spec.select = select i1 %27, i32 %sv_0.22.reload, i32 1
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i32 0, i32* %22, align 4
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%28 = icmp eq i64 %11, 0
%29 = icmp eq i1 %28, false
store i64 %11, i64* %storemerge3.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.22.reg2mem
br i1 %29, label LBL_2, label LBL_8
LBL_8:
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.lcssa.reg2mem
br label LBL_9
LBL_9:
%sv_0.2.lcssa.reload = load i32, i32* %sv_0.2.lcssa.reg2mem
%.reload = load i32, i32* %.reg2mem
%30 = add i32 %.reload, -1
store i32 %30, i32* %2, align 4
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_16, label LBL_10
LBL_10:
%33 = add i64 %0, 12
%34 = call i64 @FUNC(i64 %33)
%35 = load i64, i64* %arg1, align 8
%36 = icmp eq i64 %35, 0
%37 = icmp eq i1 %36, false
store i64 %35, i64* %.reg2mem13
store i64* %arg1, i64** %.reg2mem15
br i1 %37, label LBL_12, label LBL_15
LBL_11:
%38 = icmp eq i64 %45, 0
%39 = icmp eq i1 %38, false
store i64 %45, i64* %.reg2mem13
store i64* %44, i64** %.reg2mem15
br i1 %39, label LBL_12, label LBL_15
LBL_12:
%.reload16 = load i64*, i64** %.reg2mem15
%.reload14 = load i64, i64* %.reg2mem13
store i64 %.reload14, i64* %.reg2mem17
br label LBL_13
LBL_13:
%.reload18 = load i64, i64* %.reg2mem17
%40 = add i64 %.reload18, 8
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
%44 = inttoptr i64 %.reload18 to i64*
%45 = load i64, i64* %44, align 8
br i1 %43, label LBL_11, label LBL_14
LBL_14:
store i64 %45, i64* %.reload16, align 8
%46 = call i64 @FUNC(i64 %.reload18)
%47 = load i64, i64* %.reload16, align 8
%48 = icmp eq i64 %47, 0
%49 = icmp eq i1 %48, false
store i64 %47, i64* %.reg2mem17
br i1 %49, label LBL_13, label LBL_15
LBL_15:
%50 = call i64 @FUNC(i64 %33)
br label LBL_16
LBL_16:
%51 = zext i32 %sv_0.2.lcssa.reload to i64
ret i64 %51
uselistorder i64 %45, { 2, 1, 0 }
uselistorder i64* %44, { 1, 0 }
uselistorder i64 %.reload18, { 0, 2, 1 }
uselistorder i64* %.reload16, { 1, 0 }
uselistorder i64 %storemerge3.reload, { 1, 0, 2, 4, 3 }
uselistorder i32 %sv_0.22.reload, { 3, 2, 0, 1 }
uselistorder i32* %2, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.22.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem13, { 0, 2, 1 }
uselistorder i64** %.reg2mem15, { 0, 2, 1 }
uselistorder i64* %.reg2mem17, { 1, 0, 2 }
uselistorder i64 12, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 0, { 2, 7, 3, 4, 5, 6, 1, 0 }
uselistorder i1 false, { 3, 2, 1, 6, 7, 4, 5, 0 }
uselistorder i64* %arg1, { 0, 2, 1, 3 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ipu_plane_dpms_17652 | ipu_plane_dpms | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = and i64 %arg2, 4294967295
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %3)
%5 = icmp eq i32 %2, 1
%6 = zext i1 %5 to i8
%7 = trunc i64 %1 to i8
%8 = urem i64 %1, 256
%9 = icmp eq i8 %7, %6
store i64 %8, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg1 to i64
%11 = icmp eq i1 %5, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %10)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%13 = call i64 @FUNC(i64 %10)
%14 = add i64 %10, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %10, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %10, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %27)
store i64 %28, 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 %10, { 1, 0, 3, 2, 4 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0, 3, 2 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | unix_connect_opts_1068 | unix_connect_opts | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq i64 %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_1, align 8
%5 = call i32 @fwrite(i64* bitcast ([33 x i8]* @gv_2 to i64*), i32 1, i32 32, %_IO_FILE* %4)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%6 = call i64 @FUNC(i64 1, i64 1, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%10 = inttoptr i64 %1 to i8*
%11 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 110)
store i64 1, i64* %sv_1, align 8
%12 = bitcast i64* %sv_0 to i8*
%13 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %12, i32 108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* %10)
%14 = bitcast i64* %sv_1 to %sockaddr*
%15 = call i32 @connect(i32 %7, %sockaddr* nonnull %14, i32 110)
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i32* @__errno_location()
%19 = load i32, i32* %18, align 4
%20 = call i8* @strerror(i32 %19)
%21 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%22 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i8* %10, i8* %20)
%23 = call i32 @close(i32 %7)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%24 = load i32, i32* inttoptr (i64 4210812 to i32*), align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%27 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i8* %10)
br label LBL_8
LBL_8:
%28 = and i64 %6, 4294967295
store i64 %28, 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 i8* %10, { 1, 0, 2 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
} | 0 |
BinRealVul | xan_wc3_decode_frame_131 | xan_wc3_decode_frame | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.ph37.reg2mem = alloca i32
%sv_1.1.ph38.reg2mem = alloca i8
%sv_2.0.ph39.in.reg2mem = alloca i64
%sv_3.2.ph40.reg2mem = alloca i64
%sv_4.1.ph41.reg2mem = alloca i32*
%sv_5.1.ph42.reg2mem = alloca i8*
%sv_6.2.ph43.reg2mem = alloca i32
%sv_7.0.ph44.reg2mem = alloca i32
%sv_8.0.ph46.reg2mem = alloca i32
%sv_6.1.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i8*
%sv_3.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i8
%sv_4.0.reg2mem = alloca i32*
%sv_9.0.reg2mem = alloca i32
%sv_2.036.in95.reg2mem = alloca i64
%sv_1.13596.reg2mem = alloca i8
%sv_6.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 24
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %2, 32
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %2, 40
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp sgt i32 %17, 7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_1, label LBL_25
LBL_1:
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = add i64 %21, 6
%25 = inttoptr i64 %24 to i16*
%26 = load i16, i16* %25, align 2
%27 = zext i32 %17 to i64
%28 = zext i16 %23 to i64
%29 = icmp ult i64 %28, %27
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %29, label LBL_2, label LBL_25
LBL_2:
%30 = add i64 %21, 4
%31 = inttoptr i64 %30 to i16*
%32 = load i16, i16* %31, align 2
%33 = add i64 %21, 2
%34 = inttoptr i64 %33 to i16*
%35 = load i16, i16* %34, align 2
%36 = zext i16 %35 to i64
%37 = icmp ult i64 %36, %27
%38 = zext i16 %32 to i64
%39 = icmp ult i64 %38, %27
%or.cond = icmp eq i1 %39, %37
%40 = zext i16 %26 to i64
%41 = icmp ult i64 %40, %27
%or.cond9 = icmp eq i1 %41, %or.cond
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond9, label LBL_3, label LBL_25
LBL_3:
%42 = zext i16 %23 to i32
%43 = add i64 %21, %28
%44 = sub i32 %17, %42
%45 = zext i32 %44 to i64
%46 = call i64 @FUNC(i64 %8, i32 %11, i64 %43, i64 %45)
%47 = trunc i64 %46 to i32
%48 = icmp slt i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %49, label LBL_4, label LBL_25
LBL_4:
%50 = add i64 %21, %40
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = icmp eq i8 %52, 2
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_6, label LBL_5
LBL_5:
%55 = add i64 %2, 48
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %50, 1
%59 = load i64, i64* %13, align 8
%60 = call i64 @FUNC(i64 %59, i64 %58, i32 %57)
%61 = load i32, i32* %56, align 4
store i64 %14, i64* %sv_3.0.reg2mem
store i32 %61, i32* %sv_6.0.reg2mem
br label LBL_7
LBL_6:
%62 = zext i16 %26 to i32
%63 = load i32, i32* %16, align 4
%64 = sub i32 0, %62
%65 = sub i32 %64, 1
%66 = add i32 %63, %65
%67 = add i64 %50, 1
store i64 %67, i64* %sv_3.0.reg2mem
store i32 %66, i32* %sv_6.0.reg2mem
br label LBL_7
LBL_7:
%68 = trunc i64 %1 to i32
%69 = mul i32 %5, %68
%70 = icmp eq i32 %69, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %70, label LBL_25, label LBL_8
LBL_8:
%71 = sext i32 %11 to i64
%72 = add i64 %8, %71
%73 = add i64 %21, %36
%74 = inttoptr i64 %73 to i32*
%75 = add i64 %21, %38
%76 = inttoptr i64 %75 to i8*
%sv_6.0.reload = load i32, i32* %sv_6.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%77 = and i64 %1, 4294967295
store i32 0, i32* %sv_8.0.ph46.reg2mem
store i32 0, i32* %sv_7.0.ph44.reg2mem
store i32 %sv_6.0.reload, i32* %sv_6.2.ph43.reg2mem
store i8* %76, i8** %sv_5.1.ph42.reg2mem
store i32* %74, i32** %sv_4.1.ph41.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.2.ph40.reg2mem
store i64 %8, i64* %sv_2.0.ph39.in.reg2mem
store i8 0, i8* %sv_1.1.ph38.reg2mem
store i32 %69, i32* %sv_0.0.ph37.reg2mem
br label LBL_24
LBL_9:
%sv_2.036.in95.reload = load i64, i64* %sv_2.036.in95.reg2mem
%sv_1.13596.reload = load i8, i8* %sv_1.13596.reg2mem
%sv_2.036 = inttoptr i64 %sv_2.036.in95.reload to i8*
%78 = add nuw i64 %sv_2.036.in95.reload, 1
%79 = load i8, i8* %sv_2.036, align 1
%80 = zext i8 %79 to i64
store i64 %80, i64* @0, align 8
store i32 0, i32* %sv_9.0.reg2mem
store i32* %sv_4.1.ph41.reload, i32** %sv_4.0.reg2mem
switch i8 %79, label LBL_16 [
i8 0, label LBL_10
i8 1, label LBL_11
i8 2, label LBL_11
i8 3, label LBL_11
i8 4, label LBL_11
i8 5, label LBL_11
i8 6, label LBL_11
i8 7, label LBL_11
i8 8, label LBL_11
i8 9, label LBL_13
i8 10, label LBL_14
i8 11, label LBL_15
i8 12, label LBL_12
i8 13, label LBL_12
i8 14, label LBL_12
i8 15, label LBL_12
i8 16, label LBL_12
i8 17, label LBL_12
i8 18, label LBL_12
i8 19, label LBL_13
i8 20, label LBL_14
i8 21, label LBL_15
]
LBL_10:
%81 = xor i8 %sv_1.13596.reload, 1
%82 = icmp ugt i64 %72, %78
store i8 %81, i8* %sv_1.13596.reg2mem
store i64 %78, i64* %sv_2.036.in95.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %82, label LBL_9, label LBL_25
LBL_11:
%83 = zext i8 %79 to i32
store i32 %83, i32* %sv_9.0.reg2mem
store i32* %sv_4.1.ph41.reload, i32** %sv_4.0.reg2mem
br label LBL_16
LBL_12:
%84 = zext i8 %79 to i32
%85 = add nsw i32 %84, -10
store i32 %85, i32* %sv_9.0.reg2mem
store i32* %sv_4.1.ph41.reload, i32** %sv_4.0.reg2mem
br label LBL_16
LBL_13:
%86 = ptrtoint i32* %sv_4.1.ph41.reload to i64
%87 = add i64 %86, 1
%88 = inttoptr i64 %87 to i32*
%89 = bitcast i32* %sv_4.1.ph41.reload to i8*
%90 = load i8, i8* %89, align 1
%91 = zext i8 %90 to i32
store i32 %91, i32* %sv_9.0.reg2mem
store i32* %88, i32** %sv_4.0.reg2mem
br label LBL_16
LBL_14:
%92 = bitcast i32* %sv_4.1.ph41.reload to i16*
%93 = load i16, i16* %92, align 2
%94 = zext i16 %93 to i32
%95 = ptrtoint i32* %sv_4.1.ph41.reload to i64
%96 = add i64 %95, 2
%97 = inttoptr i64 %96 to i32*
store i32 %94, i32* %sv_9.0.reg2mem
store i32* %97, i32** %sv_4.0.reg2mem
br label LBL_16
LBL_15:
%98 = load i32, i32* %sv_4.1.ph41.reload, align 4
%99 = urem i32 %98, 16777216
%100 = ptrtoint i32* %sv_4.1.ph41.reload to i64
%101 = add i64 %100, 3
%102 = inttoptr i64 %101 to i32*
store i32 %99, i32* %sv_9.0.reg2mem
store i32* %102, i32** %sv_4.0.reg2mem
br label LBL_16
LBL_16:
%sv_9.0.reload = load i32, i32* %sv_9.0.reg2mem
%103 = icmp slt i32 %sv_0.0.ph37.reload, %sv_9.0.reload
store i64 0, i64* %rax.0.reg2mem
br i1 %103, label LBL_25, label LBL_17
LBL_17:
%sv_4.0.reload = load i32*, i32** %sv_4.0.reg2mem
%104 = icmp ult i8 %79, 12
br i1 %104, label LBL_18, label LBL_22
LBL_18:
%105 = xor i8 %sv_1.13596.reload, 1
%106 = icmp eq i8 %105, 0
br i1 %106, label LBL_20, label LBL_19
LBL_19:
%107 = call i64 @FUNC(i64 %2, i32 %sv_8.0.ph46.reload, i32 %sv_7.0.ph44.reload, i32 %sv_9.0.reload, i64 0, i64 0)
store i8 %105, i8* %sv_1.0.reg2mem
store i64 %sv_3.2.ph40.reload, i64* %sv_3.1.reg2mem
store i8* %sv_5.1.ph42.reload, i8** %sv_5.0.reg2mem
store i32 %sv_6.2.ph43.reload, i32* %sv_6.1.reg2mem
br label LBL_23
LBL_20:
%108 = icmp slt i32 %sv_6.2.ph43.reload, %sv_9.0.reload
store i64 0, i64* %rax.0.reg2mem
br i1 %108, label LBL_25, label LBL_21
LBL_21:
%109 = zext i32 %sv_9.0.reload to i64
%110 = call i64 @FUNC(i64 %2, i64 %sv_3.2.ph40.reload, i32 %sv_8.0.ph46.reload, i32 %sv_7.0.ph44.reload, i64 %109)
%111 = sext i32 %sv_9.0.reload to i64
%112 = add i64 %sv_3.2.ph40.reload, %111
%113 = sub i32 %sv_6.2.ph43.reload, %sv_9.0.reload
store i8 0, i8* %sv_1.0.reg2mem
store i64 %112, i64* %sv_3.1.reg2mem
store i8* %sv_5.1.ph42.reload, i8** %sv_5.0.reg2mem
store i32 %113, i32* %sv_6.1.reg2mem
br label LBL_23
LBL_22:
%114 = load i8, i8* %sv_5.1.ph42.reload, align 1
%115 = udiv i8 %114, 16
%116 = zext i8 %115 to i64
%117 = call i64 @FUNC(i64 %116, i64 4)
%118 = load i8, i8* %sv_5.1.ph42.reload, align 1
%119 = urem i8 %118, 16
%120 = zext i8 %119 to i64
%121 = call i64 @FUNC(i64 %120, i64 4)
%122 = ptrtoint i8* %sv_5.1.ph42.reload to i64
%123 = add i64 %122, 1
%124 = inttoptr i64 %123 to i8*
%125 = and i64 %121, 4294967295
%126 = and i64 %117, 4294967295
%127 = call i64 @FUNC(i64 %2, i32 %sv_8.0.ph46.reload, i32 %sv_7.0.ph44.reload, i32 %sv_9.0.reload, i64 %126, i64 %125)
store i8 0, i8* %sv_1.0.reg2mem
store i64 %sv_3.2.ph40.reload, i64* %sv_3.1.reg2mem
store i8* %124, i8** %sv_5.0.reg2mem
store i32 %sv_6.2.ph43.reload, i32* %sv_6.1.reg2mem
br label LBL_23
LBL_23:
%sv_6.1.reload = load i32, i32* %sv_6.1.reg2mem
%sv_5.0.reload = load i8*, i8** %sv_5.0.reg2mem
%sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem
%sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem
%128 = sub i32 %sv_0.0.ph37.reload, %sv_9.0.reload
%129 = add i32 %sv_9.0.reload, %sv_8.0.ph46.reload
%130 = ashr i32 %129, 31
%131 = zext i32 %129 to i64
%132 = zext i32 %130 to i64
%133 = mul i64 %132, 4294967296
%134 = or i64 %133, %131
%135 = sdiv i64 %134, %77
%136 = trunc i64 %135 to i32
%137 = add i32 %sv_7.0.ph44.reload, %136
%138 = srem i64 %134, %77
%139 = trunc i64 %138 to i32
%140 = icmp eq i32 %128, 0
store i32 %139, i32* %sv_8.0.ph46.reg2mem
store i32 %137, i32* %sv_7.0.ph44.reg2mem
store i32 %sv_6.1.reload, i32* %sv_6.2.ph43.reg2mem
store i8* %sv_5.0.reload, i8** %sv_5.1.ph42.reg2mem
store i32* %sv_4.0.reload, i32** %sv_4.1.ph41.reg2mem
store i64 %sv_3.1.reload, i64* %sv_3.2.ph40.reg2mem
store i64 %78, i64* %sv_2.0.ph39.in.reg2mem
store i8 %sv_1.0.reload, i8* %sv_1.1.ph38.reg2mem
store i32 %128, i32* %sv_0.0.ph37.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %140, label LBL_25, label LBL_24
LBL_24:
%sv_0.0.ph37.reload = load i32, i32* %sv_0.0.ph37.reg2mem
%sv_1.1.ph38.reload = load i8, i8* %sv_1.1.ph38.reg2mem
%sv_2.0.ph39.in.reload = load i64, i64* %sv_2.0.ph39.in.reg2mem
%sv_3.2.ph40.reload = load i64, i64* %sv_3.2.ph40.reg2mem
%sv_4.1.ph41.reload = load i32*, i32** %sv_4.1.ph41.reg2mem
%sv_5.1.ph42.reload = load i8*, i8** %sv_5.1.ph42.reg2mem
%sv_6.2.ph43.reload = load i32, i32* %sv_6.2.ph43.reg2mem
%sv_7.0.ph44.reload = load i32, i32* %sv_7.0.ph44.reg2mem
%sv_8.0.ph46.reload = load i32, i32* %sv_8.0.ph46.reg2mem
%141 = icmp ugt i64 %72, %sv_2.0.ph39.in.reload
store i8 %sv_1.1.ph38.reload, i8* %sv_1.13596.reg2mem
store i64 %sv_2.0.ph39.in.reload, i64* %sv_2.036.in95.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %141, label LBL_9, label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_8.0.ph46.reload, { 1, 0, 2, 3 }
uselistorder i32 %sv_7.0.ph44.reload, { 1, 0, 2, 3 }
uselistorder i32 %sv_6.2.ph43.reload, { 2, 0, 1, 3 }
uselistorder i8* %sv_5.1.ph42.reload, { 4, 3, 1, 0, 2 }
uselistorder i32* %sv_4.1.ph41.reload, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_3.2.ph40.reload, { 2, 0, 1, 3 }
uselistorder i64 %sv_2.0.ph39.in.reload, { 1, 0 }
uselistorder i32 %sv_0.0.ph37.reload, { 1, 0 }
uselistorder i32 %sv_9.0.reload, { 8, 4, 6, 2, 3, 0, 1, 5, 7 }
uselistorder i8 %79, { 0, 2, 1, 3, 4 }
uselistorder i8 %sv_1.13596.reload, { 1, 0 }
uselistorder i64 %77, { 1, 0 }
uselistorder i16 %26, { 1, 0 }
uselistorder i16 %23, { 1, 0 }
uselistorder i64 %21, { 1, 2, 0, 3, 4, 6, 5, 7 }
uselistorder i32 %11, { 1, 0 }
uselistorder i64 %2, { 0, 2, 1, 3, 5, 4, 6, 7, 8, 9 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_6.0.reg2mem, { 0, 2, 1 }
uselistorder i8* %sv_1.13596.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_2.036.in95.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_9.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i32** %sv_4.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i8* %sv_1.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %sv_3.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i8** %sv_5.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_6.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2, 5, 6, 7, 9, 8, 10 }
uselistorder i32 31, { 1, 0 }
uselistorder i64 (i64, i64)* @sign_extend, { 1, 0 }
uselistorder i64 (i64, i32, i32, i32, i64, i64)* @xan_wc3_copy_pixel_run, { 1, 0 }
uselistorder i8 16, { 1, 0, 2 }
uselistorder i8 12, { 1, 0 }
uselistorder i8 1, { 2, 1, 0 }
uselistorder i8 0, { 1, 2, 4, 3, 0 }
uselistorder i64 1, { 1, 0, 2, 3, 4 }
uselistorder i32 0, { 5, 2, 0, 1, 4, 3, 6, 7 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_25, { 3, 0, 2, 1, 4, 5, 6, 8, 7, 9 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_16, { 1, 2, 3, 4, 5, 0 }
} | 1 |
BinRealVul | vp3_init_thread_copy_5183 | vp3_init_thread_copy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 0, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 0, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
%17 = call i64 @FUNC(i64 %0)
ret i64 %17
} | 0 |
BinRealVul | rar_unpack_4924 | rar_unpack | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp eq i32 %arg2, 29
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = icmp sgt i32 %arg2, 29
br i1 %3, label LBL_8, label LBL_2
LBL_2:
%4 = icmp eq i32 %arg2, 26
br i1 %4, label LBL_6, label LBL_3
LBL_3:
%5 = icmp sgt i32 %arg2, 26
br i1 %5, label LBL_8, label LBL_4
LBL_4:
switch i32 %arg2, label LBL_8 [
i32 15, label LBL_5
i32 20, label LBL_6
]
LBL_5:
%6 = zext i32 %arg3 to i64
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6, i64 %0)
store i64 %8, i64* %sv_0.0.reg2mem
store i64 %6, i64* %rcx.0.reg2mem
br label LBL_11
LBL_6:
%9 = zext i32 %arg3 to i64
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %9, i64 %0)
store i64 %11, i64* %sv_0.0.reg2mem
store i64 %9, i64* %rcx.0.reg2mem
br label LBL_11
LBL_7:
%12 = zext i32 %arg3 to i64
%13 = and i64 %1, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 %12, i64 %0)
store i64 %14, i64* %sv_0.0.reg2mem
store i64 %12, i64* %rcx.0.reg2mem
br label LBL_11
LBL_8:
%15 = zext i32 %arg3 to i64
%16 = and i64 %1, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %15, i64 %0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 %17, i64* %sv_0.0.reg2mem
store i64 %15, i64* %rcx.0.reg2mem
br i1 %20, label LBL_11, label LBL_9
LBL_9:
%21 = add i64 %0, 16
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 %16, i64 %15, i64 %0)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %23, i64* %sv_0.0.reg2mem
store i64 %15, i64* %rcx.0.reg2mem
br i1 %26, label LBL_11, label LBL_10
LBL_10:
%27 = call i64 @FUNC(i64 %16, i64 %15, i64 %0)
store i64 %27, i64* %sv_0.0.reg2mem
store i64 %15, i64* %rcx.0.reg2mem
br label LBL_11
LBL_11:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.0.reload)
%29 = add i64 %0, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %31)
%33 = and i64 %sv_0.0.reload, 4294967295
ret i64 %33
uselistorder i64 %15, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 %1, { 2, 3, 1, 0 }
uselistorder i64 %0, { 5, 1, 3, 2, 4, 7, 0, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 5, 6, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 3, 4, 5, 6, 2, 1 }
uselistorder i64 (i8*, i64)* @rar_dbgmsg, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @rar_unpack29, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @rar_unpack20, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @rar_unpack15, { 1, 0 }
uselistorder i32 26, { 1, 0 }
uselistorder i32 29, { 1, 0 }
uselistorder i32 %arg3, { 2, 3, 1, 0 }
uselistorder i32 %arg2, { 0, 3, 2, 1, 4 }
uselistorder label LBL_11, { 2, 1, 0, 3, 4, 5 }
} | 0 |
BinRealVul | vtable_is_value_in_text_section_12534 | vtable_is_value_in_text_section | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = call i64 @FUNC(i64 %1, i64 %2)
%6 = icmp eq i64* %arg3, null
br i1 %6, label LBL_3, label LBL_2
LBL_2:
br label LBL_3
LBL_3:
%7 = urem i64 %5, 256
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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | uv__idna_toascii_19111 | uv__idna_toascii | define i64 @FUNC(i8* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem24 = alloca i64
%.reg2mem22 = alloca i8*
%.pre-phi.reg2mem = alloca i64*
%.reg2mem20 = alloca i8*
%.reg2mem18 = alloca i8*
%.reg2mem16 = alloca i8*
%.in.reg2mem = alloca i8*
%.reg2mem14 = alloca i8*
%.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
store i8* %arg1, i8** %sv_0, align 8
%2 = bitcast i8* %arg1 to i64*
%3 = icmp ult i64* %2, %arg2
store i64* %2, i64** %.pre-phi.reg2mem
store i8* %arg1, i8** %.reg2mem22
br i1 %3, label LBL_1, label LBL_11
LBL_1:
%4 = bitcast i8** %sv_0 to i64*
store i8* %arg1, i8** %.reg2mem
store i8* %arg1, i8** %.reg2mem14
store i8* %arg1, i8** %.in.reg2mem
br label LBL_2
LBL_2:
%.reload15 = load i8*, i8** %.reg2mem14
%5 = call i64 @FUNC(i64* nonnull %4, i64 %1)
%6 = trunc i64 %5 to i32
switch i32 %6, label LBL_2.LBL_9_crit_edge [
i32 65377, label LBL_4
i32 65294, label LBL_4
i32 12290, label LBL_4
i32 46, label LBL_4
]
LBL_3:
%.reload = load i8*, i8** %.reg2mem
%.pre = load i8*, i8** %sv_0, align 8
store i8* %.reload, i8** %.reg2mem16
store i8* %.pre, i8** %.reg2mem18
store i8* %.reload15, i8** %.reg2mem20
br label LBL_9
LBL_4:
%.in.reload = load i8*, i8** %.in.reg2mem
%7 = ptrtoint i8* %.in.reload to i64
%8 = ptrtoint i8* %.reload15 to i64
%9 = call i64 @FUNC(i64 %8, i64 %7, i64* nonnull %sv_1, i64 %arg4)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%sext9 = mul i64 %9, 4294967296
%13 = ashr exact i64 %sext9, 32
store i64 %13, i64* %rax.0.reg2mem
br label LBL_17
LBL_6:
%14 = load i64, i64* %sv_1, align 8
%15 = icmp ult i64 %14, %arg4
br i1 %15, label LBL_7, label LBL_8
LBL_7:
%16 = add i64 %14, 1
store i64 %16, i64* %sv_1, align 8
%17 = inttoptr i64 %14 to i8*
store i8 46, i8* %17, align 1
br label LBL_8
LBL_8:
%18 = load i8*, i8** %sv_0, align 8
store i8* %18, i8** %.reg2mem16
store i8* %18, i8** %.reg2mem18
store i8* %18, i8** %.reg2mem20
br label LBL_9
LBL_9:
%.reload21 = load i8*, i8** %.reg2mem20
%.reload19 = load i8*, i8** %.reg2mem18
%.reload17 = load i8*, i8** %.reg2mem16
%19 = bitcast i8* %.reload19 to i64*
%20 = icmp ult i64* %19, %arg2
store i8* %.reload17, i8** %.reg2mem
store i8* %.reload21, i8** %.reg2mem14
store i8* %.reload19, i8** %.in.reg2mem
br i1 %20, label LBL_2, label LBL_10
LBL_10:
%.pre11 = bitcast i8* %.reload17 to i64*
store i64* %.pre11, i64** %.pre-phi.reg2mem
store i8* %.reload17, i8** %.reg2mem22
br label LBL_11
LBL_11:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%21 = icmp ult i64* %.pre-phi.reload, %arg2
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_14, label LBL_12
LBL_12:
%.reload23 = load i8*, i8** %.reg2mem22
%23 = ptrtoint i8* %.reload23 to i64
%24 = call i64 @FUNC(i64 %23, i64 %1, i64* nonnull %sv_1, i64 %arg4)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_14, label LBL_13
LBL_13:
%sext = mul i64 %24, 4294967296
%28 = ashr exact i64 %sext, 32
store i64 %28, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%29 = load i64, i64* %sv_1, align 8
%30 = icmp ult i64 %29, %arg4
store i64 %29, i64* %.reg2mem24
br i1 %30, label LBL_15, label LBL_16
LBL_15:
%31 = add i64 %29, 1
store i64 %31, i64* %sv_1, align 8
%32 = inttoptr i64 %29 to i8*
store i8 0, i8* %32, align 1
%.pre10 = load i64, i64* %sv_1, align 8
store i64 %.pre10, i64* %.reg2mem24
br label LBL_16
LBL_16:
%.reload25 = load i64, i64* %.reg2mem24
%33 = sub i64 %.reload25, %0
store i64 %33, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 2, 3, 0, 1 }
uselistorder i8* %.reload19, { 1, 0 }
uselistorder i64 %14, { 1, 2, 0 }
uselistorder i8* %.reload15, { 1, 0 }
uselistorder i64* %sv_1, { 0, 3, 4, 1, 5, 6, 2, 7 }
uselistorder i64 %1, { 1, 0 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem14, { 1, 0, 2 }
uselistorder i8** %.in.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem16, { 0, 2, 1 }
uselistorder i8** %.reg2mem18, { 0, 2, 1 }
uselistorder i8** %.reg2mem20, { 0, 2, 1 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem22, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 32, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg4, { 1, 2, 0, 3 }
uselistorder i64* %arg2, { 1, 2, 0, 3 }
uselistorder i8* %arg1, { 1, 2, 3, 0, 4, 5 }
uselistorder label LBL_17, { 0, 2, 1 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xhci_detach_slot_8048 | xhci_detach_slot | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge1.lcssa.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_0.LBL_5_crit_edge, label LBL_2
LBL_1:
%.pre = and i64 %1, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
store i32 0, i32* %storemerge1.lcssa.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br label LBL_5
LBL_2:
%5 = add i64 %2, 8
%6 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge14.reg2mem
br label LBL_3
LBL_3:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = mul nsw i64 %.reload, 264
%8 = add i64 %5, %7
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, %arg2
store i64 %6, i64* %.pre-phi.reg2mem
store i32 %storemerge14.reload, i32* %storemerge1.lcssa.reg2mem
store i64 %.reload, i64* %.lcssa.reg2mem
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = add i32 %storemerge14.reload, 1
%13 = sext i32 %12 to i64
%14 = icmp sgt i64 %6, %13
store i64 %13, i64* %.reg2mem
store i32 %12, i32* %storemerge14.reg2mem
store i64 %6, i64* %.pre-phi.reg2mem
store i32 %12, i32* %storemerge1.lcssa.reg2mem
store i64 %13, i64* %.lcssa.reg2mem
br i1 %14, label LBL_3, label LBL_5
LBL_5:
%storemerge1.lcssa.reload = load i32, i32* %storemerge1.lcssa.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%15 = icmp eq i32 %storemerge1.lcssa.reload, %3
store i64 %.pre-phi.reload, i64* %rax.0.reg2mem
br i1 %15, label LBL_11, label LBL_6
LBL_6:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%16 = mul nsw i64 %.lcssa.reload, 33
%17 = add i64 %2, 16
%18 = add i32 %storemerge1.lcssa.reload, 1
%19 = zext i32 %18 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_7
LBL_7:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%20 = add nsw i64 %indvars.iv.reload, %16
%21 = mul i64 %20, 8
%22 = add i64 %17, %21
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
%.pre15 = add nuw nsw i64 %indvars.iv.reload, 1
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64 %2, i64 %19, i64 %.pre15, i64 0)
br label LBL_9
LBL_9:
%exitcond = icmp eq i64 %.pre15, 31
store i64 %.pre15, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_10, label LBL_7
LBL_10:
%27 = mul nsw i64 %.lcssa.reload, 264
%28 = add i64 %2, 8
%29 = add i64 %28, %27
%30 = inttoptr i64 %29 to i64*
store i64 0, i64* %30, align 8
store i64 %29, 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 %storemerge14.reload, { 1, 0 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 264, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | clear_sta_ps_flags_8650 | clear_sta_ps_flags | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp ne i32 %3, 0
%5 = icmp eq i32 %3, 1
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %storemerge.reg2mem
br label LBL_4
LBL_2:
%10 = call i64 @FUNC(i64 %2)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_6, label LBL_3
LBL_3:
%13 = add i64 %2, 16
store i64 %13, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %2, i64 0)
%15 = call i64 @FUNC(i64 %2, i64 1)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 %15, i64* %rax.0.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%18 = call i64 @FUNC(i64 %storemerge.reload)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0, 4, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 0 |
BinRealVul | shmem_symlink_13071 | shmem_symlink | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%rdi = alloca i64, align 8
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = inttoptr i64 %arg3 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = add i32 %1, 1
%3 = icmp slt i32 %2, 4097
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_12
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7, i64 41471, i64 0)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_2, label LBL_12
LBL_2:
%11 = call i64 @FUNC(i64 %8, i64 %4, i64 0, i64 0, i64 0)
%12 = trunc i64 %11 to i32
switch i32 %12, label LBL_3 [
i32 -3, label LBL_4
i32 0, label LBL_4
]
LBL_3:
%13 = call i64 @FUNC(i64 %8)
store i64 %11, i64* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_4:
%14 = call i64 @FUNC(i64 %8)
%15 = add i64 %8, 4
%16 = inttoptr i64 %15 to i32*
store i32 %1, i32* %16, align 4
%17 = sext i32 %2 to i64
%18 = sub i64 %8, %14
%19 = icmp slt i64 %18, %17
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = inttoptr i64 %14 to i64*
%21 = inttoptr i64 %arg3 to i64*
%22 = call i64* @memcpy(i64* %20, i64* %21, i32 %2)
%23 = add i64 %8, 32
%24 = inttoptr i64 %23 to i64*
store i64 4210757, i64* %24, align 8
br label LBL_9
LBL_6:
%25 = call i64 @FUNC(i64 %8, i64 0, i64* nonnull %sv_0, i64 1, i64 0)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 %8)
store i64 %25, i64* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_8:
%29 = load i64, i64* %sv_0, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %8, 32
%32 = inttoptr i64 %31 to i64*
store i64 4210758, i64* %32, align 8
%33 = load i64, i64* %sv_0, align 8
%34 = call i64 @FUNC(i64 %33, i64 0)
%35 = inttoptr i64 %34 to i64*
%36 = inttoptr i64 %arg3 to i64*
%37 = call i64* @memcpy(i64* %35, i64* %36, i32 %2)
%38 = call i64 @FUNC(i64 %34, i64 0)
%39 = load i64, i64* %sv_0, align 8
%40 = call i64 @FUNC(i64 %39)
%41 = load i64, i64* %sv_0, align 8
%42 = call i64 @FUNC(i64 %41)
br label LBL_9
LBL_9:
%43 = bitcast i64* %rdi to i32*
%44 = load i32, i32* %43, align 8
%45 = and i32 %44, 1024
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%47 = add i64 %4, 8
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %8, 8
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
br label LBL_11
LBL_11:
%52 = ptrtoint i64* %arg2 to i64
%53 = add i64 %4, 4
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i32 %55, 32
store i32 %56, i32* %54, align 4
%57 = add i64 %4, 28
%58 = inttoptr i64 %57 to i32*
store i32 0, i32* %58, align 4
%59 = add i64 %4, 24
%60 = inttoptr i64 %59 to i32*
store i32 0, i32* %60, align 4
%61 = call i64 @FUNC(i64 %52, i64 %8)
%62 = call i64 @FUNC(i64 %52)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_12:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %52, { 1, 0 }
uselistorder i64 %8, { 3, 2, 4, 1, 6, 0, 5, 8, 7, 9, 10, 11 }
uselistorder i64 %4, { 1, 2, 3, 0, 4, 5 }
uselistorder i32 %2, { 0, 2, 1, 3 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64)* @iput, { 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_12, { 2, 3, 4, 0, 1 }
} | 1 |
BinRealVul | create_bits_5370 | create_bits | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %0, i64 32)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = trunc i64 %arg2 to i32
%5 = mul i32 %4, 32
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 31)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_8
LBL_2:
%sext5 = mul i64 %arg3, 4294967296
%10 = ashr exact i64 %sext5, 32
%11 = ashr exact i32 %5, 3
%12 = zext i32 %11 to i64
%13 = and i64 %10, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 %12)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_8
LBL_3:
%17 = icmp eq i64* %arg4, null
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = bitcast i64* %arg4 to i32*
store i32 %11, i32* %18, align 4
br label LBL_5
LBL_5:
%19 = trunc i64 %10 to i32
%20 = mul i32 %11, %19
%21 = trunc i64 %arg5 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = call i64* @calloc(i32 %20, i32 1)
%24 = ptrtoint i64* %23 to i64
store i64 %24, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%25 = call i64* @malloc(i32 %20)
%26 = ptrtoint i64* %25 to i64
store i64 %26, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %11, { 0, 2, 1 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder label LBL_8, { 3, 4, 0, 1, 2 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.