dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | free_geotags_16683 | free_geotags | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%.reg2mem5 = alloca i32
%rdi.11.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem3 = alloca i64
%.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 eq i32 %3, 0
store i32 %3, i32* %.reg2mem
store i64 0, i64* %.reg2mem3
store i32 0, i32* %storemerge2.reg2mem
store i64 %0, i64* %rdi.11.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload4 = load i64, i64* %.reg2mem3
%.reload = load i32, i32* %.reg2mem
%5 = mul i64 %.reload4, 8
%6 = add i64 %rdi.11.reload, %5
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i32 %.reload, i32* %.reg2mem5
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %6)
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem5
store i64 %6, i64* %rdi.0.reg2mem
br label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload6 = load i32, i32* %.reg2mem5
%11 = add i32 %storemerge2.reload, 1
%12 = zext i32 %.reload6 to i64
%13 = sext i32 %11 to i64
%14 = icmp slt i64 %13, %12
store i32 %.reload6, i32* %.reg2mem
store i64 %13, i64* %.reg2mem3
store i32 %11, i32* %storemerge2.reg2mem
store i64 %rdi.0.reload, i64* %rdi.11.reg2mem
br i1 %14, label LBL_1, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %0)
ret i64 %15
uselistorder i32 %.reload6, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem3, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.11.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | bdrv_dev_change_media_cb_10228 | bdrv_dev_change_media_cb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.1.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
%3 = urem i64 %2, 256
%4 = icmp eq i64 %3, 0
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i1 %4, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %0, i64 1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%10 = trunc i64 %arg2 to i8
%11 = icmp eq i8 %10, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %0, i64 0)
store i64 %12, i64* %rax.1.reg2mem
br label LBL_5
LBL_5:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %0, { 2, 1, 4, 3, 0 }
uselistorder i64 (i64, i64)* @bdrv_emit_qmp_eject_event, { 1, 0 }
} | 0 |
BinRealVul | cpu_show_spectre_v2_12962 | cpu_show_spectre_v2 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%5 = call i64 @FUNC(i64* nonnull %sv_0, i64 %3, i64 4095)
%6 = call i64 @FUNC(i64 1)
%7 = call i64 @FUNC(i64 2)
%8 = or i64 %7, %6
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 0
br i1 %10, label LBL_6, label LBL_1
LBL_1:
%11 = trunc i64 %7 to i8
%12 = trunc i64 %6 to i8
%13 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
%14 = icmp eq i8 %12, 0
br i1 %14, label LBL_2, label LBL_3
LBL_2:
%15 = icmp eq i8 %11, 0
br i1 %15, label LBL_12, label LBL_5
LBL_3:
%16 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
%17 = icmp eq i8 %11, 0
br i1 %17, label LBL_12, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
br label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
br label LBL_12
LBL_6:
%20 = load i32, i32* bitcast (i64* @gv_4 to i32*), align 8
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_9, label LBL_7
LBL_7:
%22 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_5, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
%23 = load i32, i32* bitcast (i64* @gv_4 to i32*), align 8
%24 = icmp eq i32 %23, 1
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_12, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_6, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
br label LBL_12
LBL_9:
%27 = load i8, i8* inttoptr (i64 4210740 to i8*), align 4
%28 = icmp eq i8 %27, 0
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_7, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
br label LBL_12
LBL_11:
%30 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_8, i64 0, i64 0), i64 4095, i64 %3, i64 %2, i64 %1)
br label LBL_12
LBL_12:
%31 = call i64 @FUNC(i64* nonnull %sv_0, i8* inttoptr (i64 4202724 to i8*), i64 4095, i64 %3, i64 %2, i64 %1)
ret i64 %4
uselistorder i8 %11, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %3, { 6, 7, 8, 4, 5, 2, 1, 0, 3, 9 }
uselistorder i64 %2, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*, i8*, i64, i64, i64, i64)* @seq_buf_printf, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 4, 2, 0, 5, 1, 6, 3 }
uselistorder i64 (i64)* @security_ftr_enabled, { 1, 0 }
uselistorder i64 4095, { 6, 7, 8, 4, 5, 2, 1, 0, 3, 9 }
uselistorder label LBL_12, { 2, 3, 4, 5, 6, 0, 1 }
} | 1 |
BinRealVul | audio_sample_entry_Read_18956 | audio_sample_entry_Read | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %3, 8
%5 = call i64 @FUNC(i64 %2, i64 %4)
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = bitcast i64* %arg1 to i32*
store i32 1, i32* %9, align 4
%10 = icmp eq i32 %7, 1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = add i64 %3, 32
%13 = call i64 @FUNC(i64 %2, i64 %12)
%14 = call i64 @FUNC(i64 %2)
%15 = call i64 @FUNC(i64 %2)
%16 = call i64 @FUNC(i64 %2)
%17 = call i64 @FUNC(i64 %2)
%18 = call i16** @__ctype_b_loc()
%19 = load i16*, i16** %18, align 8
%20 = ptrtoint i16* %19 to i64
%21 = mul i64 %14, 2
%22 = and i64 %21, 510
%23 = add i64 %22, %20
%24 = inttoptr i64 %23 to i16*
%25 = load i16, i16* %24, align 2
%26 = and i16 %25, 8
%27 = icmp ne i16 %26, 0
%spec.select = zext i1 %27 to i32
%28 = call i16** @__ctype_b_loc()
%29 = load i16*, i16** %28, align 8
%30 = ptrtoint i16* %29 to i64
%31 = mul i64 %15, 2
%32 = and i64 %31, 510
%33 = add i64 %32, %30
%34 = inttoptr i64 %33 to i16*
%35 = load i16, i16* %34, align 2
%36 = and i16 %35, 8
%37 = icmp eq i16 %36, 0
%38 = select i1 %27, i32 2, i32 1
%sv_1.1 = select i1 %37, i32 %spec.select, i32 %38
%39 = call i16** @__ctype_b_loc()
%40 = load i16*, i16** %39, align 8
%41 = ptrtoint i16* %40 to i64
%42 = mul i64 %16, 2
%43 = and i64 %42, 510
%44 = add i64 %43, %41
%45 = inttoptr i64 %44 to i16*
%46 = load i16, i16* %45, align 2
%47 = and i16 %46, 8
%48 = icmp ne i16 %47, 0
%49 = zext i1 %48 to i32
%spec.select1 = add nuw nsw i32 %sv_1.1, %49
%50 = call i16** @__ctype_b_loc()
%51 = load i16*, i16** %50, align 8
%52 = ptrtoint i16* %51 to i64
%53 = mul i64 %17, 2
%54 = and i64 %53, 510
%55 = add i64 %54, %52
%56 = inttoptr i64 %55 to i16*
%57 = load i16, i16* %56, align 2
%58 = and i16 %57, 8
%59 = icmp ne i16 %58, 0
%60 = zext i1 %59 to i32
%sv_1.3 = add nuw nsw i32 %spec.select1, %60
%61 = icmp ult i32 %sv_1.3, 3
br i1 %61, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %9, align 4
br label LBL_4
LBL_4:
%62 = ptrtoint i64* %arg1 to i64
%63 = call i64 @FUNC(i64 %2, i64 %3)
%64 = call i64 @FUNC(i64 %62, i64 %2)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_6, label LBL_5
LBL_5:
%67 = and i64 %64, 4294967295
store i64 %67, i64* %rax.0.reg2mem
br label LBL_22
LBL_6:
%68 = trunc i64 %1 to i32
%69 = call i64 @FUNC(i64 %2)
%70 = call i64 @FUNC(i64 %2)
%71 = trunc i64 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label LBL_8, label LBL_7
LBL_7:
%73 = or i32 %68, 65536
%74 = bitcast i64* %arg1 to i32*
store i32 %73, i32* %74, align 4
br label LBL_8
LBL_8:
%75 = call i64 @FUNC(i64 %62, i64 %2, i64 4199055)
%76 = trunc i64 %75 to i32
%77 = icmp eq i32 %76, 0
%78 = icmp eq i1 %77, false
store i64 0, i64* %rax.0.reg2mem
br i1 %78, label LBL_9, label LBL_22
LBL_9:
%79 = icmp ult i32 %68, 8
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %79, label LBL_22, label LBL_10
LBL_10:
%80 = call i64 @FUNC(i64 %2, i64 %69)
%81 = and i64 %1, 4294967295
%82 = call i64 @FUNC(i64 %81)
%83 = call i64 @FUNC(i64 %2, i64 %82, i32 %68)
%84 = add i32 %68, -8
%85 = icmp eq i32 %84, 0
store i64 %75, i64* %sv_0.0.reg2mem
br i1 %85, label LBL_21, label LBL_11
LBL_11:
%86 = zext i32 %84 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_12
LBL_12:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%87 = add nuw nsw i64 %indvars.iv.reload, 4
%88 = and i64 %87, 4294967295
%89 = add i64 %88, %82
%90 = inttoptr i64 %89 to i8*
%91 = load i8, i8* %90, align 1
%92 = zext i8 %91 to i32
%93 = mul i32 %92, 16777216
%94 = add nuw nsw i64 %indvars.iv.reload, 5
%95 = and i64 %94, 4294967295
%96 = add i64 %95, %82
%97 = inttoptr i64 %96 to i8*
%98 = load i8, i8* %97, align 1
%99 = zext i8 %98 to i32
%100 = mul i32 %99, 65536
%101 = or i32 %100, %93
%102 = add nuw nsw i64 %indvars.iv.reload, 6
%103 = and i64 %102, 4294967295
%104 = add i64 %103, %82
%105 = inttoptr i64 %104 to i8*
%106 = load i8, i8* %105, align 1
%107 = zext i8 %106 to i32
%108 = mul i32 %107, 256
%109 = or i32 %101, %108
%110 = add nuw nsw i64 %indvars.iv.reload, 7
%111 = and i64 %110, 4294967295
%112 = add i64 %111, %82
%113 = inttoptr i64 %112 to i8*
%114 = load i8, i8* %113, align 1
%115 = zext i8 %114 to i32
%116 = or i32 %109, %115
%117 = icmp eq i32 %116, 1702061171
%118 = icmp eq i1 %117, false
br i1 %118, label LBL_20, label LBL_13
LBL_13:
%119 = sub i64 %1, %indvars.iv.reload
%120 = and i64 %indvars.iv.reload, 4294967295
%121 = add i64 %120, %82
%122 = and i64 %119, 4294967295
%123 = call i64 @FUNC(i64 %121, i64 %122, i64 1)
%124 = add i64 %62, 8
%125 = inttoptr i64 %124 to i64*
%126 = load i64, i64* %125, align 8
%127 = icmp eq i64 %126, 0
br i1 %127, label LBL_15, label LBL_14
LBL_14:
%128 = call i64 @FUNC(i64 %126)
store i64 0, i64* %125, align 8
br label LBL_15
LBL_15:
%129 = call i64 @FUNC(i64 %124, i64 %123)
%130 = trunc i64 %129 to i32
%131 = icmp eq i32 %130, 0
%132 = icmp eq i1 %131, false
%133 = load i64, i64* %125, align 8
br i1 %132, label LBL_17, label LBL_16
LBL_16:
%134 = call i64 @FUNC(i64 %62, i64 %133)
br label LBL_19
LBL_17:
%135 = icmp eq i64 %133, 0
br i1 %135, label LBL_19, label LBL_18
LBL_18:
%136 = call i64 @FUNC(i64 %133)
store i64 0, i64* %125, align 8
br label LBL_19
LBL_19:
%137 = call i64 @FUNC(i64 %123)
store i64 %129, i64* %sv_0.0.reg2mem
br label LBL_21
LBL_20:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%138 = icmp ult i64 %indvars.iv.next, %86
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %75, i64* %sv_0.0.reg2mem
br i1 %138, label LBL_12, label LBL_21
LBL_21:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%139 = call i64 @FUNC(i64 %82)
%140 = and i64 %sv_0.0.reload, 4294967295
store i64 %140, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %133, { 0, 2, 1 }
uselistorder i64* %125, { 1, 0, 2, 3 }
uselistorder i64 %indvars.iv.reload, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i64 %82, { 5, 0, 1, 2, 3, 4, 6 }
uselistorder i32 %68, { 3, 2, 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %2, { 6, 5, 7, 9, 8, 11, 10, 3, 4, 2, 1, 0, 12, 13, 14 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @gf_isom_box_del, { 1, 0 }
uselistorder i64 0, { 10, 11, 12, 13, 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @gf_bs_read_u8, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 (i64, i64)* @gf_bs_seek, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @gf_bs_get_position, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_22, { 2, 0, 1, 3 }
uselistorder label LBL_21, { 0, 2, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | mov_write_stbl_tag_2953 | mov_write_stbl_tag | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1, i64 0)
%4 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%5 = call i64 @FUNC(i64 %1, i64 %0)
%6 = call i64 @FUNC(i64 %1, i64 %0)
%7 = trunc i64 %0 to i32
%8 = icmp eq i32 %7, 1
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i64 %0, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 544240754
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_2
LBL_2:
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_3
LBL_3:
%18 = add i64 %0, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp ult i32 %16, %20
br i1 %21, label LBL_4, label LBL_5
LBL_4:
%22 = call i64 @FUNC(i64 %1, i64 %0, i64 1)
br label LBL_5
LBL_5:
%23 = add i64 %0, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 1
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = add i64 %0, 20
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = urem i32 %30, 2
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %1, i64 %0, i64 2)
br label LBL_8
LBL_8:
%34 = icmp eq i1 %8, false
br i1 %34, label LBL_13, label LBL_9
LBL_9:
%35 = add i64 %0, 20
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = and i32 %37, 2
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_13, label LBL_10
LBL_10:
%40 = add i64 %0, 12
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_13, label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %1, i64 %0)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_13, label LBL_12
LBL_12:
%48 = and i64 %44, 4294967295
store i64 %48, i64* %storemerge.reg2mem
br label LBL_14
LBL_13:
%sext = mul i64 %2, 4294967296
%49 = ashr exact i64 %sext, 32
%50 = call i64 @FUNC(i64 %1, i64 %0)
%51 = call i64 @FUNC(i64 %1, i64 %0)
%52 = call i64 @FUNC(i64 %1, i64 %0)
%53 = call i64 @FUNC(i64 %1, i64 %49)
store i64 %53, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0, 7, 8, 9, 10, 11 }
uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 10, 9, 8, 13, 12, 11, 0, 1, 15, 14 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @mov_write_stss_tag, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | adb_mouse_reset_17050 | adb_mouse_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = bitcast i64* %arg1 to i32*
store i32 2, i32* %4, align 4
%5 = add i64 %0, 4
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %3, 4
%8 = inttoptr i64 %7 to i32*
store i32 0, i32* %8, align 4
%9 = inttoptr i64 %3 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %3, 16
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %3, 12
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %3, 8
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
ret i64 %3
uselistorder i64 %3, { 1, 0, 2, 3, 4, 5 }
} | 1 |
BinRealVul | virtio_rng_initfn_2111 | virtio_rng_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %0, i64 0, i64 0)
ret i64 %1
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | xfmkstemp_13595 | xfmkstemp | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg3 to i64
%1 = ptrtoint i8* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = call %_IO_FILE* @fdopen(i32 %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%8 = icmp eq %_IO_FILE* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i32 @close(i32 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%11 = ptrtoint %_IO_FILE* %7 to i64
store i64 %11, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder %_IO_FILE* %7, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | pxa2xx_ssp_load_2301 | pxa2xx_ssp_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge12.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = bitcast i64* %arg2 to i32*
store i32 %3, i32* %4, align 4
%5 = add i64 %0, 4
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = add i64 %0, 8
%8 = call i64 @FUNC(i64 %1, i64 %7)
%9 = add i64 %0, 12
%10 = call i64 @FUNC(i64 %1, i64 %9)
%11 = add i64 %0, 16
%12 = call i64 @FUNC(i64 %1, i64 %11)
%13 = add i64 %0, 20
%14 = call i64 @FUNC(i64 %1, i64 %13)
%15 = add i64 %0, 24
%16 = call i64 @FUNC(i64 %1, i64 %15)
%17 = add i64 %0, 28
%18 = call i64 @FUNC(i64 %1, i64 %17)
%19 = add i64 %0, 29
%20 = call i64 @FUNC(i64 %1, i64 %19)
%21 = add i64 %0, 30
%22 = call i64 @FUNC(i64 %1, i64 %21)
%23 = call i64 @FUNC(i64 %1)
%24 = trunc i64 %23 to i32
%25 = urem i32 %24, 256
%26 = add i64 %0, 288
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = add i64 %0, 292
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = load i32, i32* %27, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_3, label LBL_1
LBL_1:
%32 = add i64 %0, 31
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge12.reg2mem
br label LBL_2
LBL_2:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload = load i64, i64* %.reg2mem
%33 = call i64 @FUNC(i64 %1)
%34 = trunc i64 %33 to i8
%35 = add i64 %32, %.reload
%36 = inttoptr i64 %35 to i8*
store i8 %34, i8* %36, align 1
%37 = add i32 %storemerge12.reload, 1
%38 = load i32, i32* %27, align 4
%39 = zext i32 %38 to i64
%40 = sext i32 %37 to i64
%41 = icmp slt i64 %40, %39
store i64 %40, i64* %.reg2mem
store i32 %37, i32* %storemerge12.reg2mem
br i1 %41, label LBL_2, label LBL_3
LBL_3:
ret i64 0
uselistorder i32* %27, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @qemu_get_byte, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_8s, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_be32s, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @qemu_get_be32, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | attr_is_equal_ex_13269 | attr_is_equal_ex | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i8* %arg2, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 @strcmp(i8* %1, i8* nonnull %arg2)
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%5 = icmp eq i8* %arg3, null
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i8*
%11 = call i32 @strcmp(i8* %10, i8* nonnull %arg3)
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i64
store i64 %13, 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* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_5, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | compute_default_clut_2513 | compute_default_clut | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i1
%rax.0.lcssa.reg2mem = alloca i64
%storemerge19.reg2mem = alloca i32
%storemerge2.lcssa.reg2mem = alloca i32
%sv_0.225.reg2mem = alloca i32
%sv_1.226.reg2mem = alloca i32
%indvars.iv35.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%indvars.iv.next36.pre-phi.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%storemerge8.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%sv_0.120.reg2mem = alloca i32
%sv_1.121.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge231.reg2mem = alloca i32
%indvars.iv39.reg2mem = alloca i64
%.pre-phi53.reg2mem = alloca i64*
%.pre-phi55.reg2mem = alloca i64
%.pre-phi57.reg2mem = alloca i64
%wide.trip.count.pre-phi.reg2mem = alloca i64
%wide.trip.count37.pre-phi.reg2mem = alloca i64
%indvars.iv45.reg2mem = alloca i64
%indvars.iv.next46.pre-phi.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i32
%storemerge16.reg2mem = alloca i32
%indvars.iv41.reg2mem = alloca i64
%1 = load i1, i1* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%3 = ptrtoint i64* %sv_4 to i64
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = bitcast i64* %sv_3 to i8*
call void @FUNC(i8* nonnull %5, i64 0, i64 128)
%6 = select i1 %1, i64 -1024, i64 1024
%7 = icmp sgt i32 %arg3, 0
%8 = trunc i64 %4 to i32
br i1 %7, label LBL_2, label LBL_0.LBL_16_crit_edge
LBL_1:
%.pre50 = add i64 %2, 8
%.pre52 = inttoptr i64 %.pre50 to i64*
%.pre54 = sext i32 %arg3 to i64
%.pre56 = add i64 %3, -1616
%.pre66 = and i64 %4, 4294967295
%.pre67 = zext i32 %arg3 to i64
store i64 %.pre67, i64* %wide.trip.count37.pre-phi.reg2mem
store i64 %.pre66, i64* %wide.trip.count.pre-phi.reg2mem
store i64 %.pre56, i64* %.pre-phi57.reg2mem
store i64 %.pre54, i64* %.pre-phi55.reg2mem
store i64* %.pre52, i64** %.pre-phi53.reg2mem
br label LBL_16
LBL_2:
%9 = ptrtoint i64* %sv_3 to i64
%10 = add i64 %6, %9
%11 = icmp sgt i32 %8, 0
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = sext i32 %arg3 to i64
%15 = add i64 %3, -1616
%wide.trip.count43 = and i64 %4, 4294967295
%wide.trip.count47 = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv45.reg2mem
br label LBL_13
LBL_3:
%indvars.iv41.reload = load i64, i64* %indvars.iv41.reg2mem
%16 = load i64, i64* %13, align 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = mul i32 %18, %87
%20 = trunc i64 %indvars.iv41.reload to i32
%21 = add i32 %19, %20
%22 = sext i32 %21 to i64
%23 = add i64 %10, %22
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i64 %indvars.iv41.reload, 0
store i32 0, i32* %storemerge16.reg2mem
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = add i32 %21, -1
%28 = sext i32 %27 to i64
%29 = add i64 %10, %28
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i32
%33 = add nuw nsw i32 %32, 1
store i32 %33, i32* %storemerge16.reg2mem
br label LBL_5
LBL_5:
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%indvars.iv.next42 = add nuw nsw i64 %indvars.iv41.reload, 1
%34 = icmp sgt i64 %4, %indvars.iv.next42
store i32 0, i32* %storemerge15.reg2mem
br i1 %34, label LBL_6, label LBL_7
LBL_6:
%35 = trunc i64 %indvars.iv.next42 to i32
%36 = add i32 %19, %35
%37 = sext i32 %36 to i64
%38 = add i64 %10, %37
%39 = inttoptr i64 %38 to i8*
%40 = load i8, i8* %39, align 1
%41 = zext i8 %40 to i32
%42 = add nuw nsw i32 %41, 1
store i32 %42, i32* %storemerge15.reg2mem
br label LBL_7
LBL_7:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
store i32 0, i32* %storemerge14.reg2mem
br i1 %84, label LBL_9, label LBL_8
LBL_8:
%43 = mul i32 %18, %88
%44 = add i32 %43, %20
%45 = sext i32 %44 to i64
%46 = add i64 %10, %45
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = zext i8 %48 to i32
%50 = add nuw nsw i32 %49, 1
store i32 %50, i32* %storemerge14.reg2mem
br label LBL_9
LBL_9:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
store i32 0, i32* %storemerge13.reg2mem
br i1 %86, label LBL_10, label LBL_11
LBL_10:
%51 = mul i32 %18, %89
%52 = add i32 %51, %20
%53 = sext i32 %52 to i64
%54 = add i64 %10, %53
%55 = inttoptr i64 %54 to i8*
%56 = load i8, i8* %55, align 1
%57 = zext i8 %56 to i32
%58 = add nuw nsw i32 %57, 1
store i32 %58, i32* %storemerge13.reg2mem
br label LBL_11
LBL_11:
%59 = zext i8 %25 to i32
%60 = add nuw nsw i32 %59, 1
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%61 = zext i8 %25 to i64
%62 = mul i64 %61, 4
%63 = add i64 %62, %15
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = icmp eq i32 %60, %storemerge16.reload
%67 = icmp eq i1 %66, false
%68 = icmp eq i32 %60, %storemerge15.reload
%69 = icmp eq i1 %68, false
%70 = zext i1 %67 to i64
%71 = zext i1 %69 to i64
%72 = add nuw nsw i64 %71, %70
%73 = icmp eq i32 %60, %storemerge14.reload
%74 = icmp eq i1 %73, false
%75 = zext i1 %74 to i64
%76 = add nuw nsw i64 %72, %75
%77 = icmp eq i32 %60, %storemerge13.reload
%78 = icmp eq i1 %77, false
%79 = sext i1 %78 to i64
%80 = icmp eq i64 %76, %79
%81 = icmp eq i1 %80, false
%82 = zext i1 %81 to i32
%83 = add i32 %65, %82
store i32 %83, i32* %64, align 4
%exitcond44 = icmp eq i64 %indvars.iv.next42, %wide.trip.count43
store i64 %indvars.iv.next42, i64* %indvars.iv41.reg2mem
store i64 %85, i64* %indvars.iv.next46.pre-phi.reg2mem
br i1 %exitcond44, label LBL_12, label LBL_3
LBL_12:
%indvars.iv.next46.pre-phi.reload = load i64, i64* %indvars.iv.next46.pre-phi.reg2mem
%exitcond48 = icmp eq i64 %indvars.iv.next46.pre-phi.reload, %wide.trip.count47
store i64 %indvars.iv.next46.pre-phi.reload, i64* %indvars.iv45.reg2mem
store i64 %wide.trip.count47, i64* %wide.trip.count37.pre-phi.reg2mem
store i64 %wide.trip.count43, i64* %wide.trip.count.pre-phi.reg2mem
store i64 %15, i64* %.pre-phi57.reg2mem
store i64 %14, i64* %.pre-phi55.reg2mem
store i64* %13, i64** %.pre-phi53.reg2mem
br i1 %exitcond48, label LBL_16, label LBL_13
LBL_13:
%indvars.iv45.reload = load i64, i64* %indvars.iv45.reg2mem
br i1 %11, label LBL_3.lr.ph, label LBL_13.LBL_12_crit_edge
LBL_14:
%.pre = add nuw nsw i64 %indvars.iv45.reload, 1
store i64 %.pre, i64* %indvars.iv.next46.pre-phi.reg2mem
br label LBL_12
LBL_15:
%84 = icmp eq i64 %indvars.iv45.reload, 0
%85 = add nuw nsw i64 %indvars.iv45.reload, 1
%86 = icmp slt i64 %85, %14
%87 = trunc i64 %indvars.iv45.reload to i32
%88 = add i32 %87, -1
%89 = trunc i64 %85 to i32
store i64 0, i64* %indvars.iv41.reg2mem
br label LBL_3
LBL_16:
%.pre-phi53.reload = load i64*, i64** %.pre-phi53.reg2mem
%.pre-phi55.reload = load i64, i64* %.pre-phi55.reg2mem
%.pre-phi57.reload = load i64, i64* %.pre-phi57.reg2mem
%wide.trip.count.pre-phi.reload = load i64, i64* %wide.trip.count.pre-phi.reg2mem
%wide.trip.count37.pre-phi.reload = load i64, i64* %wide.trip.count37.pre-phi.reg2mem
%90 = ptrtoint i64* %sv_2 to i64
%91 = bitcast i64* %sv_2 to i8*
%92 = add i64 %6, %90
%93 = icmp sgt i32 %8, 0
%94 = add i64 %3, -336
%95 = add i64 %3, -592
%96 = add i64 %3, -2640
store i64 0, i64* %indvars.iv39.reg2mem
store i32 0, i32* %storemerge231.reg2mem
br label LBL_17
LBL_17:
%storemerge231.reload = load i32, i32* %storemerge231.reg2mem
%indvars.iv39.reload = load i64, i64* %indvars.iv39.reg2mem
call void @FUNC(i8* nonnull %91, i64 0, i64 128)
store i64 0, i64* %indvars.iv35.reg2mem
store i32 0, i32* %sv_1.226.reg2mem
store i32 0, i32* %sv_0.225.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %7, label LBL_30, label LBL_36
LBL_18:
%sv_0.120.reload = load i32, i32* %sv_0.120.reg2mem
%sv_1.121.reload = load i32, i32* %sv_1.121.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%97 = load i64, i64* %.pre-phi53.reload, align 8
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = mul i32 %99, %179
%101 = trunc i64 %indvars.iv.reload to i32
%102 = add i32 %100, %101
%103 = sext i32 %102 to i64
%104 = add i64 %92, %103
%105 = inttoptr i64 %104 to i8*
%106 = load i8, i8* %105, align 1
%107 = zext i8 %106 to i64
%108 = add i64 %94, %107
%109 = inttoptr i64 %108 to i8*
%110 = load i8, i8* %109, align 1
%111 = icmp eq i64 %indvars.iv.reload, 0
store i32 1, i32* %storemerge9.reg2mem
br i1 %111, label LBL_20, label LBL_19
LBL_19:
%112 = add i32 %102, -1
%113 = sext i32 %112 to i64
%114 = add i64 %92, %113
%115 = inttoptr i64 %114 to i8*
%116 = load i8, i8* %115, align 1
%117 = zext i8 %116 to i64
%118 = add i64 %94, %117
%119 = inttoptr i64 %118 to i8*
%120 = load i8, i8* %119, align 1
%121 = zext i8 %120 to i32
store i32 %121, i32* %storemerge9.reg2mem
br label LBL_20
LBL_20:
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%122 = icmp sgt i64 %4, %indvars.iv.next
store i32 1, i32* %storemerge8.reg2mem
br i1 %122, label LBL_21, label LBL_22
LBL_21:
%123 = trunc i64 %indvars.iv.next to i32
%124 = add i32 %100, %123
%125 = sext i32 %124 to i64
%126 = add i64 %92, %125
%127 = inttoptr i64 %126 to i8*
%128 = load i8, i8* %127, align 1
%129 = zext i8 %128 to i64
%130 = add i64 %94, %129
%131 = inttoptr i64 %130 to i8*
%132 = load i8, i8* %131, align 1
%133 = zext i8 %132 to i32
store i32 %133, i32* %storemerge8.reg2mem
br label LBL_22
LBL_22:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
store i32 1, i32* %storemerge7.reg2mem
br i1 %176, label LBL_24, label LBL_23
LBL_23:
%134 = mul i32 %99, %180
%135 = add i32 %134, %101
%136 = sext i32 %135 to i64
%137 = add i64 %92, %136
%138 = inttoptr i64 %137 to i8*
%139 = load i8, i8* %138, align 1
%140 = zext i8 %139 to i64
%141 = add i64 %94, %140
%142 = inttoptr i64 %141 to i8*
%143 = load i8, i8* %142, align 1
%144 = zext i8 %143 to i32
store i32 %144, i32* %storemerge7.reg2mem
br label LBL_24
LBL_24:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
store i32 1, i32* %storemerge6.reg2mem
br i1 %178, label LBL_25, label LBL_26
LBL_25:
%145 = mul i32 %99, %181
%146 = add i32 %145, %101
%147 = sext i32 %146 to i64
%148 = add i64 %92, %147
%149 = inttoptr i64 %148 to i8*
%150 = load i8, i8* %149, align 1
%151 = zext i8 %150 to i64
%152 = add i64 %94, %151
%153 = inttoptr i64 %152 to i8*
%154 = load i8, i8* %153, align 1
%155 = zext i8 %154 to i32
store i32 %155, i32* %storemerge6.reg2mem
br label LBL_26
LBL_26:
%156 = icmp eq i8 %110, 0
%157 = icmp eq i1 %156, false
store i32 %sv_0.120.reload, i32* %sv_0.0.reg2mem
store i32 %sv_1.121.reload, i32* %sv_1.0.reg2mem
br i1 %157, label LBL_28, label LBL_27
LBL_27:
%158 = zext i8 %106 to i32
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%159 = mul i64 %107, 4
%160 = add i64 %96, %159
%161 = inttoptr i64 %160 to i32*
%162 = load i32, i32* %161, align 4
%163 = add nuw nsw i32 %storemerge8.reload, %storemerge9.reload
%164 = add nuw nsw i32 %163, %storemerge7.reload
%165 = add nuw nsw i32 %164, %storemerge6.reload
%166 = add i32 %165, %162
store i32 %166, i32* %161, align 4
%167 = sext i32 %166 to i64
%168 = mul i64 %167, 1024
%169 = add i64 %159, %.pre-phi57.reload
%170 = inttoptr i64 %169 to i32*
%171 = load i32, i32* %170, align 4
%172 = sext i32 %171 to i64
%173 = udiv i64 %168, %172
%174 = trunc i64 %173 to i32
%175 = icmp slt i32 %sv_0.120.reload, %174
%spec.select = select i1 %175, i32 %174, i32 %sv_0.120.reload
%spec.select17 = select i1 %175, i32 %158, i32 %sv_1.121.reload
store i32 %spec.select, i32* %sv_0.0.reg2mem
store i32 %spec.select17, i32* %sv_1.0.reg2mem
br label LBL_28
LBL_28:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count.pre-phi.reload
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.121.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.120.reg2mem
store i64 %177, i64* %indvars.iv.next36.pre-phi.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem
br i1 %exitcond, label LBL_29, label LBL_18
LBL_29:
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%indvars.iv.next36.pre-phi.reload = load i64, i64* %indvars.iv.next36.pre-phi.reg2mem
%exitcond38 = icmp eq i64 %indvars.iv.next36.pre-phi.reload, %wide.trip.count37.pre-phi.reload
store i64 %indvars.iv.next36.pre-phi.reload, i64* %indvars.iv35.reg2mem
store i32 %sv_1.1.lcssa.reload, i32* %sv_1.226.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.225.reg2mem
br i1 %exitcond38, label LBL_33, label LBL_30
LBL_30:
%sv_0.225.reload = load i32, i32* %sv_0.225.reg2mem
%sv_1.226.reload = load i32, i32* %sv_1.226.reg2mem
%indvars.iv35.reload = load i64, i64* %indvars.iv35.reg2mem
br i1 %93, label LBL_18.lr.ph, label LBL_30.LBL_29_crit_edge
LBL_31:
%.pre58 = add nuw nsw i64 %indvars.iv35.reload, 1
store i64 %.pre58, i64* %indvars.iv.next36.pre-phi.reg2mem
store i32 %sv_0.225.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.226.reload, i32* %sv_1.1.lcssa.reg2mem
br label LBL_29
LBL_32:
%176 = icmp eq i64 %indvars.iv35.reload, 0
%177 = add nuw nsw i64 %indvars.iv35.reload, 1
%178 = icmp sgt i64 %.pre-phi55.reload, %177
%179 = trunc i64 %indvars.iv35.reload to i32
%180 = add i32 %179, -1
%181 = trunc i64 %177 to i32
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_1.226.reload, i32* %sv_1.121.reg2mem
store i32 %sv_0.225.reload, i32* %sv_0.120.reg2mem
br label LBL_18
LBL_33:
%182 = icmp eq i32 %sv_0.1.lcssa.reload, 0
br i1 %182, label LBL_35, label LBL_34
LBL_34:
%183 = sext i32 %sv_1.1.lcssa.reload to i64
%184 = add i64 %94, %183
%185 = inttoptr i64 %184 to i8*
store i8 1, i8* %185, align 1
%186 = trunc i32 %sv_1.1.lcssa.reload to i8
%187 = add i64 %indvars.iv39.reload, %95
%188 = inttoptr i64 %187 to i8*
store i8 %186, i8* %188, align 1
%indvars.iv.next40 = add nuw nsw i64 %indvars.iv39.reload, 1
%189 = add nuw nsw i32 %storemerge231.reload, 1
%190 = icmp ult i64 %indvars.iv.next40, 256
store i64 %indvars.iv.next40, i64* %indvars.iv39.reg2mem
store i32 %189, i32* %storemerge231.reg2mem
store i32 %189, i32* %storemerge2.lcssa.reg2mem
br i1 %190, label LBL_17, label LBL_36
LBL_35:
%191 = trunc i64 %indvars.iv39.reload to i32
store i32 %191, i32* %storemerge2.lcssa.reg2mem
br label LBL_36
LBL_36:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%192 = add i32 %storemerge2.lcssa.reload, -2
%193 = sub i32 1, %storemerge2.lcssa.reload
%194 = and i32 %193, %storemerge2.lcssa.reload
%195 = icmp slt i32 %194, 0
%196 = icmp slt i32 %192, 0
%197 = icmp eq i1 %196, %195
%.op = add i32 %storemerge2.lcssa.reload, -1
%198 = zext i32 %.op to i64
%199 = select i1 %197, i64 %198, i64 1
%200 = icmp slt i32 %.op, 0
%201 = icmp eq i1 %200, false
store i64 %199, i64* %rax.0.lcssa.reg2mem
br i1 %201, label LBL_37, label LBL_39
LBL_37:
%202 = add i64 %92, 8
%203 = inttoptr i64 %202 to i64*
store i32 %.op, i32* %storemerge19.reg2mem
br label LBL_38
LBL_38:
%storemerge19.reload = load i32, i32* %storemerge19.reg2mem
%204 = mul i32 %storemerge19.reload, 255
%205 = ashr i32 %204, 31
%206 = zext i32 %204 to i64
%207 = zext i32 %205 to i64
%208 = mul i64 %207, 4294967296
%209 = or i64 %208, %206
%210 = sdiv i64 %209, %199
%211 = trunc i64 %210 to i32
%212 = icmp slt i32 %211, 0
%213 = zext i1 %212 to i32
%214 = add i32 %213, %211
%215 = ashr i32 %214, 1
%216 = mul i32 %211, 256
%217 = udiv i32 %214, 2
%218 = mul i32 %217, 65536
%219 = mul i32 %211, 16777216
%220 = or i32 %219, %216
%221 = or i32 %220, %215
%222 = or i32 %221, %218
%223 = load i64, i64* %203, align 8
%224 = sext i32 %storemerge19.reload to i64
%225 = add i64 %95, %224
%226 = inttoptr i64 %225 to i8*
%227 = load i8, i8* %226, align 1
%228 = zext i8 %227 to i64
%229 = mul i64 %228, 4
%230 = add i64 %229, %223
%231 = inttoptr i64 %230 to i32*
store i32 %222, i32* %231, align 4
%storemerge = add i32 %storemerge19.reload, -1
%232 = icmp slt i32 %storemerge, 0
%233 = icmp eq i1 %232, false
store i32 %storemerge, i32* %storemerge19.reg2mem
store i64 %230, i64* %rax.0.lcssa.reg2mem
br i1 %233, label LBL_38, label LBL_39
LBL_39:
%rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem
ret i64 %rax.0.lcssa.reload
uselistorder i32 %211, { 0, 1, 3, 2 }
uselistorder i32 %storemerge19.reload, { 2, 0, 1 }
uselistorder i64 %199, { 1, 0 }
uselistorder i32 %storemerge2.lcssa.reload, { 1, 3, 2, 0 }
uselistorder i32 %179, { 1, 0 }
uselistorder i64 %177, { 1, 2, 0 }
uselistorder i32 %sv_0.1.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_1.1.lcssa.reload, { 2, 1, 0 }
uselistorder i32 %174, { 1, 0 }
uselistorder i64 %159, { 1, 0 }
uselistorder i8 %106, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %sv_1.121.reload, { 1, 0 }
uselistorder i32 %sv_0.120.reload, { 1, 2, 0 }
uselistorder i64 %indvars.iv39.reload, { 2, 0, 1 }
uselistorder i64 %94, { 5, 1, 2, 0, 3, 4 }
uselistorder i64 %92, { 5, 1, 2, 0, 3, 4 }
uselistorder i32 %87, { 1, 0 }
uselistorder i64 %85, { 2, 1, 0 }
uselistorder i32 %60, { 2, 3, 0, 1 }
uselistorder i64 %indvars.iv41.reload, { 0, 2, 1 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %10, { 1, 2, 0, 3, 4 }
uselistorder i64 %4, { 2, 3, 1, 0, 4 }
uselistorder i64 %3, { 0, 2, 3, 4, 1 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv41.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge16.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge15.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge14.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge13.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.next46.pre-phi.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv39.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge231.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.121.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.120.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge9.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge8.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge7.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.next36.pre-phi.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv35.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.226.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.225.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge2.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge19.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7 }
uselistorder i32 -1, { 4, 5, 1, 3, 0, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 -1616, { 1, 0 }
uselistorder i32 %arg3, { 2, 4, 0, 1, 3 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | pop_sync_mailbox_10675 | pop_sync_mailbox | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.12.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i32
%sv_2.14.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.pre-phi12.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
%9 = bitcast i64* %rdi to i32*
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %0, 20
%13 = inttoptr i64 %12 to i8*
%14 = bitcast i64* %sv_3 to i8*
%15 = add i64 %3, 24
%16 = inttoptr i64 %15 to i64*
br label LBL_1
LBL_1:
%17 = call i64 @FUNC(i64 %0)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_2, label LBL_19
LBL_2:
%21 = load i32, i32* %6, align 4
%22 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%23 = zext i32 %21 to i64
%24 = call i64 @FUNC(i64* nonnull %sv_3, i64 %22, i64 1, i64 4198944, i64 %23)
%25 = load i64, i64* %8, align 8
%26 = call i64 @FUNC(i64 %3, i64 %25)
%.pre = load i32, i32* %9, align 8
%27 = zext i32 %.pre to i64
store i32 0, i32* %sv_2.14.reg2mem
store i32 0, i32* %sv_1.03.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_13
LBL_3:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%sv_2.14.reload = load i32, i32* %sv_2.14.reg2mem
%28 = load i64, i64* %11, align 8
%29 = mul i64 %107, 8
%30 = add i64 %28, %29
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
store i32 %sv_2.14.reload, i32* %sv_2.0.reg2mem
br i1 %35, label LBL_9, label LBL_4
LBL_4:
%36 = add i64 %32, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, -1
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
store i32 %sv_2.14.reload, i32* %sv_2.0.reg2mem
br i1 %39, label LBL_9, label LBL_5
LBL_5:
%40 = add i32 %sv_2.14.reload, 1
%41 = load i8, i8* %13, align 1
%42 = icmp eq i8 %41, 1
store i32* %37, i32** %.pre-phi12.reg2mem
br i1 %42, label LBL_7, label LBL_6
LBL_6:
%43 = zext i32 %40 to i64
%44 = call i64 @FUNC(i64* nonnull %sv_3, i64 %43, i64 4294967295)
%.pre5 = load i64, i64* %11, align 8
%.pre6 = add i64 %.pre5, %29
%.pre7 = inttoptr i64 %.pre6 to i64*
%.pre9 = load i64, i64* %.pre7, align 8
%.pre10 = add i64 %.pre9, 4
%.pre11 = inttoptr i64 %.pre10 to i32*
store i32* %.pre11, i32** %.pre-phi12.reg2mem
br label LBL_7
LBL_7:
%.pre-phi12.reload = load i32*, i32** %.pre-phi12.reg2mem
%45 = load i32, i32* %.pre-phi12.reload, align 4
%46 = zext i32 %45 to i64
%47 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %14, i32 1024, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %46)
%48 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3, i64 1024)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
store i32 %49, i32* %sv_0.0.reg2mem
store i32 %40, i32* %sv_2.0.reg2mem
br i1 %51, label LBL_9, label LBL_8
LBL_8:
%52 = load i64, i64* %11, align 8
%53 = add i64 %52, %29
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = add i64 %55, 8
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = load i64, i64* %16, align 8
%61 = and i64 %59, 4294967295
%62 = call i64 @FUNC(i64 %60, i64 %61)
%63 = load i64, i64* %11, align 8
%64 = add i64 %63, %29
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = add i64 %66, 8
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = inttoptr i64 %69 to i8*
%71 = call i32 @strlen(i8* %70)
%72 = sext i32 %71 to i64
%73 = load i64, i64* %11, align 8
%74 = add i64 %73, %29
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = add i64 %76, 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = call i64 @FUNC(i64 %26, i64 %79, i64 %72)
store i32 %49, i32* %sv_0.0.reg2mem
store i32 %40, i32* %sv_2.0.reg2mem
br label LBL_9
LBL_9:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%81 = load i64, i64* %11, align 8
%82 = add i64 %81, %29
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = add i64 %84, 16
%86 = inttoptr i64 %85 to i8*
%87 = load i8, i8* %86, align 1
%88 = icmp eq i8 %87, 0
br i1 %88, label LBL_11, label LBL_10
LBL_10:
%89 = add i64 %84, 8
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
%92 = inttoptr i64 %91 to i8*
%93 = call i32 @strlen(i8* %92)
%94 = sext i32 %93 to i64
%95 = load i64, i64* %11, align 8
%96 = add i64 %95, %29
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = add i64 %98, 8
%100 = inttoptr i64 %99 to i64*
%101 = load i64, i64* %100, align 8
%102 = call i64 @FUNC(i64 %26, i64 %101, i64 %94, i64 %84, i64 0)
br label LBL_11
LBL_11:
%103 = add i32 %sv_1.03.reload, 1
%104 = icmp eq i32 %sv_0.0.reload, 0
%105 = icmp eq i1 %104, false
store i32 %sv_2.0.reload, i32* %sv_2.14.reg2mem
store i32 %103, i32* %sv_1.03.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.12.reg2mem
br i1 %105, label LBL_12, label LBL_13
LBL_12:
%106 = call i64 @FUNC(i64 %26)
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_15
LBL_13:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%107 = sext i32 %sv_1.03.reload to i64
%108 = icmp slt i64 %107, %27
br i1 %108, label LBL_3, label LBL_14
LBL_14:
%109 = call i64 @FUNC(i64 %26)
%110 = call i64 @FUNC(i64* nonnull %sv_3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 1024)
%111 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3, i64 1024)
%112 = trunc i64 %111 to i32
store i32 %112, i32* %sv_0.2.reg2mem
br label LBL_15
LBL_15:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%113 = icmp eq i32 %sv_0.2.reload, 0
%114 = icmp eq i1 %113, false
br i1 %114, label LBL_17, label LBL_16
LBL_16:
%115 = add i64 %3, 4
%116 = inttoptr i64 %115 to i8*
store i8 1, i8* %116, align 1
%117 = call i64 @FUNC(i64 %3)
%118 = add i64 %3, 8
%119 = inttoptr i64 %118 to i32*
store i32 0, i32* %119, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_17:
%120 = icmp eq i32 %sv_0.2.reload, -2
%121 = icmp eq i1 %120, false
br i1 %121, label LBL_1, label LBL_18
LBL_18:
%122 = add i64 %3, 16
%123 = inttoptr i64 %122 to i64*
%124 = load i64, i64* %123, align 8
%125 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64 %124)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %107, { 1, 0 }
uselistorder i32 %sv_1.03.reload, { 1, 0 }
uselistorder i64 %84, { 1, 0, 2 }
uselistorder i64 %29, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 %sv_2.14.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.12.reload, { 1, 0 }
uselistorder i64 %26, { 3, 0, 2, 1 }
uselistorder i64* %11, { 4, 5, 1, 2, 3, 0, 6 }
uselistorder i64 %3, { 6, 4, 3, 5, 2, 1, 7, 0, 8 }
uselistorder i64* %sv_3, { 0, 1, 2, 4, 5, 3 }
uselistorder i64 %0, { 4, 0, 1, 2, 3, 5 }
uselistorder i32** %.pre-phi12.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @mutt_hcache_close, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8 1, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i64 4294967295, { 1, 2, 3, 0 }
uselistorder i1 false, { 0, 1, 3, 2, 4 }
uselistorder i64 8, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder i32 0, { 3, 4, 7, 5, 6, 0, 1, 2, 8, 9 }
uselistorder label LBL_19, { 1, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | get_empty_filp_6285 | get_empty_filp | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = load i64, i64* @gv_0, align 8
%3 = icmp slt i64 %1, %2
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 1)
%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 = call i64 @FUNC(i64* nonnull @gv_1)
%9 = load i64, i64* @gv_0, align 8
%10 = icmp slt i64 %8, %9
br i1 %10, label LBL_3, label LBL_7
LBL_3:
%11 = load i64, i64* @gv_2, align 8
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 -2, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_9
LBL_4:
%15 = call i64 @FUNC(i64* nonnull @gv_1)
%16 = call i64 @FUNC(i64 %0)
%17 = add i64 %12, 8
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = call i64 @FUNC(i64 %12)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %12)
%sext = mul i64 %19, 4294967296
%23 = ashr exact i64 %sext, 32
store i64 %23, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%24 = add i64 %12, 16
%25 = call i64 @FUNC(i64 %24, i64 1)
%26 = call i64 @FUNC(i64 %12)
%27 = add i64 %12, 4
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i64 %12)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%30 = call i64 @FUNC()
%31 = load i64, i64* @gv_3, align 8
%32 = icmp sgt i64 %30, %31
store i64 -1, i64* %rax.0.reg2mem
br i1 %32, label LBL_8, label LBL_9
LBL_8:
%33 = call i64 @FUNC()
%34 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_4, i64 0, i64 0), i64 %33)
%35 = call i64 @FUNC()
store i64 %35, i64* @gv_3, align 8
store i64 -1, 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 %12, { 0, 4, 3, 2, 1, 5, 6, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 ()* @get_nr_files, { 2, 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 0, 1, 3, 4, 2 }
} | 0 |
BinRealVul | ff_clear_fixed_vector_16908 | ff_clear_fixed_vector | define i64 @FUNC(i64 %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa2.reg2mem = alloca i64
%xmm0.0.reg2mem = alloca i128
%sv_0.0.reg2mem = alloca i32
%xmm0.13.reg2mem = alloca i128
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa2.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = bitcast i64* %rsi to i32*
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
%9 = add i64 %5, 16
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %5, 20
%12 = inttoptr i64 %11 to i32*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge4.reg2mem
br label LBL_2
LBL_2:
%xmm0.13.reload = load i128, i128* %xmm0.13.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%13 = load i64, i64* %8, align 8
%14 = mul i64 %.reload, 4
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = load i32, i32* %10, align 4
%19 = urem i32 %storemerge4.reload, 32
%20 = shl i32 1, %19
%21 = and i32 %18, %20
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %23, false
store i32 %17, i32* %sv_0.0.reg2mem
store i128 %xmm0.13.reload, i128* %xmm0.0.reg2mem
br label LBL_3
LBL_3:
%xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = sext i32 %sv_0.0.reload to i64
%26 = mul i64 %25, 4
%27 = add i64 %26, %arg1
%28 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload)
%29 = call i64 @FUNC(i128 %28)
%30 = trunc i64 %29 to i32
%31 = inttoptr i64 %27 to i32*
store i32 %30, i32* %31, align 4
%32 = load i32, i32* %12, align 4
%33 = add i32 %32, %sv_0.0.reload
%34 = icmp slt i32 %33, %arg3
%or.cond = icmp eq i1 %24, %34
store i32 %33, i32* %sv_0.0.reg2mem
store i128 %28, i128* %xmm0.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_4
LBL_4:
%35 = add i32 %storemerge4.reload, 1
%36 = load i32, i32* %6, align 8
%37 = zext i32 %36 to i64
%38 = sext i32 %35 to i64
%39 = icmp slt i64 %38, %37
store i64 %38, i64* %.reg2mem
store i32 %35, i32* %storemerge4.reg2mem
store i128 %28, i128* %xmm0.13.reg2mem
store i64 %37, i64* %.lcssa2.reg2mem
br i1 %39, label LBL_2, label LBL_5
LBL_5:
%.lcssa2.reload = load i64, i64* %.lcssa2.reg2mem
ret i64 %.lcssa2.reload
uselistorder i128 %28, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.13.reg2mem, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.0.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | tls12_get_hash_8480 | tls12_get_hash | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i8
%1 = icmp eq i8 %0, 1
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_4
LBL_2:
%6 = urem i64 %arg1, 256
%7 = call i64 @FUNC(i64 %6)
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = inttoptr i64 %7 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i64 %10, i64 0
ret i64 %spec.select
LBL_4:
ret i64 0
} | 0 |
BinRealVul | f2fs_wait_discard_bios_11095 | f2fs_wait_discard_bios | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %3
} | 1 |
BinRealVul | trace_thread_create_1274 | trace_thread_create | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = bitcast i64* %sv_1 to %_TYPEDEF_sigset_t*
%1 = call i32 @sigfillset(%_TYPEDEF_sigset_t* nonnull %0)
%2 = bitcast i64* %sv_1 to %_TYPEDEF___sigset_t*
%3 = bitcast i64* %sv_0 to %_TYPEDEF___sigset_t*
%4 = call i32 @pthread_sigmask(i32 2, %_TYPEDEF___sigset_t* nonnull %2, %_TYPEDEF___sigset_t* nonnull %3)
%5 = call i64 @FUNC(i64 %arg1, i64 0, i64 0, i64 0)
%6 = call i32 @pthread_sigmask(i32 2, %_TYPEDEF___sigset_t* nonnull %3, %_TYPEDEF___sigset_t* null)
ret i64 %5
uselistorder i32 (i32, %_TYPEDEF___sigset_t*, %_TYPEDEF___sigset_t*)* @pthread_sigmask, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | __return_cfs_rq_runtime_6689 | __return_cfs_rq_runtime | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = icmp slt i64 %3, 1
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%6 = add i64 %4, 16
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, -1
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = inttoptr i64 %4 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %13, %3
store i64 %14, i64* %12, align 8
%15 = call i64 @FUNC()
%16 = icmp sgt i64 %14, %15
br i1 %16, label LBL_3, label LBL_5
LBL_3:
%17 = add i64 %4, 24
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %4)
br label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %6)
%24 = sub i64 %6, %3
store i64 %24, i64* %arg1, 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 %6, { 1, 0, 2 }
uselistorder i64 %4, { 0, 1, 2, 4, 3 }
uselistorder i64 %3, { 2, 1, 0, 3, 4 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | multiwrite_f_7396 | multiwrite_f | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%storemerge6.lcssa.reg2mem = alloca i32
%r8.0.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%storemerge7.lcssa.reg2mem = alloca i32
%indvars.iv84.reg2mem = alloca i64
%.reg2mem = alloca i32
%indvars.iv86120.reg2mem = alloca i64
%sv_2.142121.reg2mem = alloca i32
%sv_1.141122.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.151.reg2mem = alloca i32
%indvars.iv88.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.0.ph13.reg2mem = alloca i32
%sv_3.0.ph12.reg2mem = alloca i32
%sv_2.0.ph.reg2mem = alloca i32
%sv_3.0.ph.reg2mem = alloca i32
%sv_4.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i32, align 4
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
store i32 0, i32* %sv_7, align 4
%6 = trunc i64 %5 to i32
%7 = inttoptr i64 %arg3 to i8**
store i64 0, i64* %sv_4.0.ph.reg2mem
store i32 0, i32* %sv_3.0.ph.reg2mem
store i32 205, i32* %sv_2.0.ph.reg2mem
br label LBL_1
LBL_1:
%sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem
%sv_3.0.ph.reload = load i32, i32* %sv_3.0.ph.reg2mem
%sv_4.0.ph.reload = load i64, i64* %sv_4.0.ph.reg2mem
store i32 %sv_3.0.ph.reload, i32* %sv_3.0.ph12.reg2mem
store i32 %sv_2.0.ph.reload, i32* %sv_2.0.ph13.reg2mem
br label LBL_111
LBL_2:
%8 = icmp eq i32 %16, 113
store i32 1, i32* %sv_3.0.ph12.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.0.ph13.reg2mem
br i1 %8, label LBL_111, label LBL_4
LBL_3:
%sv_2.0.ph13.reload = load i32, i32* %sv_2.0.ph13.reg2mem
%sv_3.0.ph12.reload = load i32, i32* %sv_3.0.ph12.reg2mem
store i32 %sv_2.0.ph13.reload, i32* %sv_2.0.reg2mem
br label LBL_8
LBL_4:
%9 = icmp sgt i32 %16, 113
br i1 %9, label LBL_7, label LBL_5
LBL_5:
store i64 1, i64* %sv_4.0.ph.reg2mem
store i32 %sv_3.0.ph12.reload, i32* %sv_3.0.ph.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.0.ph.reg2mem
switch i32 %16, label LBL_7 [
i32 67, label LBL_1
i32 80, label LBL_6
]
LBL_6:
%10 = load i64, i64* @gv_0, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 %12, i32* %sv_2.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_8, label LBL_40
LBL_7:
%15 = call i64 @FUNC(i64 4210892)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_40
LBL_8:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%16 = call i32 @getopt(i32 %6, i8** %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%17 = icmp eq i32 %16, -1
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_2, label LBL_9
LBL_9:
%19 = add nsw i64 %5, 4294967295
%20 = and i64 %19, 4294967295
%21 = load i32, i32* @gv_2, align 4
%22 = zext i32 %21 to i64
%23 = icmp ugt i64 %20, %22
br i1 %23, label LBL_10, label LBL_12
LBL_10:
%24 = icmp slt i32 %21, %6
store i32 1, i32* %sv_0.1.lcssa.reg2mem
br i1 %24, label LBL_11, label LBL_14
LBL_11:
%25 = sext i32 %21 to i64
store i64 %25, i64* %indvars.iv88.reg2mem
store i32 1, i32* %sv_0.151.reg2mem
br label LBL_13
LBL_12:
%26 = call i64 @FUNC(i64 ptrtoint (i64* @gv_3 to i64))
store i64 %26, i64* %rax.0.reg2mem
br label LBL_40
LBL_13:
%sv_0.151.reload = load i32, i32* %sv_0.151.reg2mem
%indvars.iv88.reload = load i64, i64* %indvars.iv88.reg2mem
%27 = mul i64 %indvars.iv88.reload, 8
%28 = add i64 %27, %arg3
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i8*
%32 = call i32 @strcmp(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
%34 = zext i1 %33 to i32
%spec.select = add i32 %sv_0.151.reload, %34
%indvars.iv.next89 = add nsw i64 %indvars.iv88.reload, 1
%exitcond91 = icmp eq i64 %indvars.iv.next89, %5
store i64 %indvars.iv.next89, i64* %indvars.iv88.reg2mem
store i32 %spec.select, i32* %sv_0.151.reg2mem
store i32 %spec.select, i32* %sv_0.1.lcssa.reg2mem
br i1 %exitcond91, label LBL_14, label LBL_13
LBL_14:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%35 = sext i32 %sv_0.1.lcssa.reload to i64
%36 = mul i64 %35, 16
%37 = call i64 @FUNC(i64 %36)
%38 = mul i64 %35, 8
%39 = call i64 @FUNC(i64 %38)
%40 = mul i64 %35, 4
%41 = call i64 @FUNC(i64 %40)
%42 = icmp sgt i32 %sv_0.1.lcssa.reload, 0
store i32 0, i32* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %storemerge6.lcssa.reg2mem
br i1 %42, label LBL_15, label LBL_30
LBL_15:
%43 = icmp sgt i32 %6, ptrtoint (i32* @gv_5 to i32)
%.pre = load i32, i32* @gv_2, align 4
%44 = zext i32 %.pre to i64
%45 = icmp sgt i64 %5, %44
store i32 0, i32* %sv_1.141122.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.142121.reg2mem
store i64 0, i64* %indvars.iv86120.reg2mem
store i32 %.pre, i32* %.reg2mem
store i32 0, i32* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %storemerge6.lcssa.reg2mem
br i1 %45, label LBL_16, label LBL_30
LBL_16:
%.reload = load i32, i32* %.reg2mem
%46 = sext i32 %.reload to i64
%47 = mul i64 %46, 8
%48 = add i64 %47, %arg3
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 %50)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_18, label LBL_17
LBL_17:
%55 = load i32, i32* @gv_2, align 4
%56 = sext i32 %55 to i64
%57 = mul i64 %56, 8
%58 = add i64 %57, %arg3
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = inttoptr i64 %60 to i8*
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_6, i64 0, i64 0), i8* %61)
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_34
LBL_18:
store i32 ptrtoint (i32* @gv_5 to i32), i32* @gv_2, align 4
%63 = urem i32 %52, 512
%64 = icmp eq i32 %63, 0
br i1 %64, label LBL_20, label LBL_19
LBL_19:
%sext9 = mul i64 %51, 4294967296
%65 = ashr exact i64 %sext9, 32
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_7, i64 0, i64 0), i64 %65)
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_34
LBL_20:
%indvars.iv86120.reload = load i64, i64* %indvars.iv86120.reg2mem
%sv_2.142121.reload = load i32, i32* %sv_2.142121.reg2mem
%sv_1.141122.reload = load i32, i32* %sv_1.141122.reg2mem
store i64 sext (i32 ptrtoint (i32* @gv_5 to i32) to i64), i64* %indvars.iv84.reg2mem
store i32 ptrtoint (i32* @gv_5 to i32), i32* %storemerge7.lcssa.reg2mem
br i1 %43, label LBL_21, label LBL_25
LBL_21:
%indvars.iv84.reload = load i64, i64* %indvars.iv84.reg2mem
%67 = mul i64 %indvars.iv84.reload, 8
%68 = add i64 %67, %arg3
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = inttoptr i64 %70 to i8*
%72 = call i32 @strcmp(i8* %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0))
%73 = icmp eq i32 %72, 0
br i1 %73, label LBL_21.LBL_25_crit_edge, label LBL_22
LBL_22:
%indvars.iv.next85 = add nsw i64 %indvars.iv84.reload, 1
%74 = icmp slt i64 %indvars.iv.next85, %5
store i64 %indvars.iv.next85, i64* %indvars.iv84.reg2mem
br i1 %74, label LBL_21, label LBL_24
LBL_23:
%75 = trunc i64 %indvars.iv84.reload to i32
store i32 %75, i32* %storemerge7.lcssa.reg2mem
br label LBL_25
LBL_24:
%76 = trunc i64 %indvars.iv.next85 to i32
store i32 %76, i32* %storemerge7.lcssa.reg2mem
br label LBL_25
LBL_25:
%storemerge7.lcssa.reload = load i32, i32* %storemerge7.lcssa.reg2mem
%77 = load i32, i32* @gv_2, align 4
%78 = sub i32 %storemerge7.lcssa.reload, %77
%79 = sext i32 %77 to i64
%80 = mul i64 %79, 8
%81 = add i64 %80, %arg3
%82 = mul i64 %indvars.iv86120.reload, 4
%83 = add i64 %82, %41
%84 = mul i64 %indvars.iv86120.reload, 8
%85 = add i64 %84, %39
%86 = zext i32 %sv_2.142121.reload to i64
%87 = zext i32 %78 to i64
%88 = call i64 @FUNC(i64 %2, i64 %83, i64 %81, i64 %87, i64 %86)
%89 = inttoptr i64 %85 to i64*
store i64 %88, i64* %89, align 8
%90 = icmp eq i64 %88, 0
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.2.reg2mem
br i1 %90, label LBL_34, label LBL_26
LBL_26:
%91 = icmp eq i64 %indvars.iv86120.reload, 0
%92 = icmp eq i1 %91, false
%spec.select10 = select i1 %92, i32 %sv_1.141122.reload, i32 %52
%93 = mul i64 %indvars.iv86120.reload, 16
%94 = add i64 %93, %37
%95 = inttoptr i64 %94 to i64*
store i64 %83, i64* %95, align 8
%96 = ashr i32 %52, 9
%97 = add i64 %94, 8
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
%99 = load i64, i64* %95, align 8
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
%102 = ashr i32 %101, 9
%103 = add i64 %94, 12
%104 = inttoptr i64 %103 to i32*
store i32 %102, i32* %104, align 4
%105 = add i32 %storemerge7.lcssa.reload, 1
store i32 %105, i32* @gv_2, align 4
%indvars.iv.next87 = add nuw nsw i64 %indvars.iv86120.reload, 1
%106 = icmp slt i64 %indvars.iv.next87, %35
br i1 %106, label LBL_27, label LBL_28
LBL_27:
%107 = add i32 %sv_2.142121.reload, 1
%108 = zext i32 %105 to i64
%109 = icmp sgt i64 %5, %108
store i32 %spec.select10, i32* %sv_1.141122.reg2mem
store i32 %107, i32* %sv_2.142121.reg2mem
store i64 %indvars.iv.next87, i64* %indvars.iv86120.reg2mem
store i32 %105, i32* %.reg2mem
br i1 %109, label LBL_16, label LBL_27.LBL_27.LBL_30_crit_edge_crit_edge
LBL_28:
%110 = trunc i64 %indvars.iv.next87 to i32
store i32 %spec.select10, i32* %sv_1.1.lcssa.reg2mem
store i64 %86, i64* %r8.0.lcssa.reg2mem
store i32 %110, i32* %storemerge6.lcssa.reg2mem
br label LBL_30
LBL_29:
%phitmp = trunc i64 %indvars.iv.next87 to i32
store i32 %spec.select10, i32* %sv_1.1.lcssa.reg2mem
store i64 %86, i64* %r8.0.lcssa.reg2mem
store i32 %phitmp, i32* %storemerge6.lcssa.reg2mem
br label LBL_30
LBL_30:
%storemerge6.lcssa.reload = load i32, i32* %storemerge6.lcssa.reg2mem
%111 = bitcast i64* %sv_6 to %timeval*
%112 = call i32 @gettimeofday(%timeval* nonnull %111, %timezone* null)
%113 = call i64 @FUNC(i64 %2, i64 %37, i32 %storemerge6.lcssa.reload, i32* nonnull %sv_7)
%114 = trunc i64 %113 to i32
%115 = bitcast i64* %sv_5 to %timeval*
%116 = call i32 @gettimeofday(%timeval* nonnull %115, %timezone* null)
%117 = icmp slt i32 %114, 0
%118 = icmp eq i1 %117, false
br i1 %118, label LBL_32, label LBL_31
LBL_31:
%119 = sub i32 0, %114
%120 = call i8* @strerror(i32 %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_8, i64 0, i64 0), i8* %120)
store i32 %storemerge6.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_34
LBL_32:
%122 = icmp eq i32 %sv_3.0.ph12.reload, 0
%123 = icmp eq i1 %122, false
store i32 %storemerge6.lcssa.reload, i32* %sv_0.2.reg2mem
br i1 %123, label LBL_34, label LBL_33
LBL_33:
%r8.0.lcssa.reload = load i64, i64* %r8.0.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%124 = load i64, i64* %sv_6, align 8
%125 = load i64, i64* %sv_5, align 8
%126 = call i64 @FUNC(i64 %125, i64 %3, i64 %124, i64 %4, i64 %r8.0.lcssa.reload, i64 %1)
store i64 %126, i64* %sv_5, align 8
%127 = load i32, i32* %sv_7, align 4
%128 = and i64 %113, 4294967295
%129 = zext i32 %127 to i64
%130 = zext i32 %sv_1.1.lcssa.reload to i64
%131 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_9, i64 0, i64 0), i64* nonnull %sv_5, i64 %130, i64 %129, i64 %129, i64 %128, i64 %sv_4.0.ph.reload)
store i32 %storemerge6.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_34
LBL_34:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%132 = icmp sgt i32 %sv_0.2.reload, 0
br i1 %132, label LBL_35, label LBL_39
LBL_35:
%wide.trip.count = zext i32 %sv_0.2.reload to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_36
LBL_36:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%133 = mul i64 %indvars.iv.reload, 8
%134 = add i64 %133, %39
%135 = inttoptr i64 %134 to i64*
%136 = load i64, i64* %135, align 8
%137 = call i64 @FUNC(i64 %136)
%138 = mul i64 %indvars.iv.reload, 16
%139 = add i64 %138, %37
%140 = inttoptr i64 %139 to i64*
%141 = load i64, i64* %140, align 8
%142 = icmp eq i64 %141, 0
br i1 %142, label LBL_38, label LBL_37
LBL_37:
%143 = mul i64 %indvars.iv.reload, 4
%144 = add i64 %143, %41
%145 = call i64 @FUNC(i64 %144)
br label LBL_38
LBL_38:
%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_39, label LBL_36
LBL_39:
%146 = call i64 @FUNC(i64 %39)
%147 = call i64 @FUNC(i64 %37)
%148 = call i64 @FUNC(i64 %41)
store i64 0, i64* %rax.0.reg2mem
br label LBL_40
LBL_40:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_0.2.reload, { 1, 0 }
uselistorder i64 %129, { 1, 0 }
uselistorder i32 %storemerge6.lcssa.reload, { 1, 2, 0, 3 }
uselistorder i64 %indvars.iv.next87, { 1, 2, 0, 3 }
uselistorder i64 %indvars.iv.next85, { 1, 0, 2 }
uselistorder i64 %indvars.iv84.reload, { 1, 0, 2 }
uselistorder i32 %sv_2.142121.reload, { 1, 0 }
uselistorder i64 %indvars.iv86120.reload, { 1, 4, 0, 3, 2 }
uselistorder i32 %52, { 2, 1, 0, 3 }
uselistorder i64 %41, { 2, 0, 1 }
uselistorder i64 %39, { 2, 0, 1 }
uselistorder i64 %37, { 3, 0, 2, 1 }
uselistorder i64 %35, { 3, 0, 1, 2 }
uselistorder i32 %sv_0.1.lcssa.reload, { 0, 2, 1, 4, 3 }
uselistorder i32 %16, { 3, 2, 1, 0 }
uselistorder i32 %sv_2.0.reload, { 0, 2, 1 }
uselistorder i32 %6, { 1, 0, 2 }
uselistorder i64 %5, { 3, 2, 0, 1, 4, 5 }
uselistorder i32* %sv_7, { 1, 0, 2 }
uselistorder i64* %sv_6, { 1, 0 }
uselistorder i64* %sv_5, { 0, 2, 3, 1 }
uselistorder i64* %sv_4.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv88.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.151.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.141122.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.142121.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv86120.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv84.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge7.lcssa.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_1.1.lcssa.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i32* %storemerge6.lcssa.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 3, 4, 2, 1, 6, 5 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder i32 (%timeval*, %timezone*)* @gettimeofday, { 1, 0 }
uselistorder i32 9, { 1, 0 }
uselistorder i32 512, { 2, 0, 1 }
uselistorder i32 (i8*, ...)* @printf, { 1, 3, 2, 0 }
uselistorder i32 ptrtoint (i32* @gv_5 to i32), { 0, 1, 3, 2 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0), { 1, 0 }
uselistorder i64 8, { 0, 8, 1, 2, 3, 4, 5, 6, 7, 9 }
uselistorder i32* @gv_2, { 5, 4, 3, 2, 0, 1 }
uselistorder i1 false, { 0, 3, 1, 2, 5, 4 }
uselistorder i64 1, { 4, 2, 3, 1, 0 }
uselistorder i32 113, { 1, 0 }
uselistorder i64 0, { 1, 24, 2, 14, 15, 16, 17, 7, 25, 10, 11, 12, 13, 3, 5, 6, 18, 19, 0, 4, 26, 20, 21, 8, 9, 22, 23 }
uselistorder i32 0, { 6, 14, 16, 17, 15, 9, 8, 0, 2, 4, 1, 3, 7, 18, 19, 5, 13, 10, 11, 12 }
uselistorder label LBL_40, { 1, 3, 2, 0 }
uselistorder label LBL_36, { 1, 0 }
uselistorder label LBL_34, { 2, 1, 5, 0, 3, 4 }
uselistorder label LBL_30, { 1, 2, 0, 3 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | ehci_mem_readw_14212 | ehci_mem_readw | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = add i64 %arg2, 1
%6 = and i64 %5, 4294967295
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i64
%11 = mul i64 %10, 256
%12 = zext i8 %4 to i64
%13 = or i64 %11, %12
ret i64 %13
} | 1 |
BinRealVul | ohci_pci_class_init_14830 | ohci_pci_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
store i32 1452, i32* %2, align 4
%3 = add i64 %0, 12
%4 = inttoptr i64 %3 to i32*
store i32 4096, i32* %4, align 4
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i32*
store i32 3075, i32* %6, align 4
store i64 ptrtoint ([21 x i8]* @gv_0 to i64), i64* %arg1, align 8
%7 = load i64, i64* @gv_1, align 8
%8 = inttoptr i64 %1 to i64*
store i64 %7, i64* %8, align 8
ret i64 %0
} | 1 |
BinRealVul | omap_gp_timer_clk_setup_15148 | omap_gp_timer_clk_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 4198745, i64 %0, i64 1)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 4198745, i64 %4)
%6 = call i64 @FUNC(i64 4198745)
%7 = trunc i64 %6 to i32
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
ret i64 %6
uselistorder i64 %6, { 1, 0 }
} | 1 |
BinRealVul | shmem_acct_block_19256 | shmem_acct_block | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = urem i64 %arg1, 2
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 4096)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ReadDOTImage_7797 | ReadDOTImage | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = icmp eq i64* %arg1, null
%4 = icmp eq i1 %3, false
store i64 %2, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 145, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([39 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%5 = add i64 %2, 12
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 305419896
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %8, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 146, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([45 x i8]* @gv_3 to i64), i64* %rdi.1.reg2mem
br label LBL_4
LBL_4:
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%13 = call i64 @FUNC()
%14 = call i64 @FUNC(i64 0, i64 %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 %rdi.1.reload)
br label LBL_6
LBL_6:
%15 = icmp eq i32* %arg2, null
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 150, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_8
LBL_8:
%17 = trunc i64 %1 to i32
%18 = icmp eq i32 %17, 305419896
br i1 %18, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 151, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_10
LBL_10:
%19 = load i64, i64* @gv_7, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_12, label LBL_11
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 152, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_12
LBL_12:
%22 = call i64 @FUNC(i64 %2)
%23 = ptrtoint i32* %arg2 to i64
%24 = call i64 @FUNC(i64 %2, i64 %22, i64 0, i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_14, label LBL_13
LBL_13:
%28 = call i64 @FUNC(i64 %22)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_14:
%29 = call i64 @FUNC(i64 %2)
%30 = call i64 @FUNC(i64 %29, i64 0, i64 0)
%31 = add i64 %29, 16
%32 = call i64 @FUNC(i64 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 1024)
%33 = inttoptr i64 %29 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = load i64, i64* %33, align 8
%37 = call i64 @FUNC(i64* nonnull %sv_0, i64 1024, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_10, i64 0, i64 0), i64 %36, i64 %34)
%38 = call i64 @FUNC(i64 %22)
%39 = call i64 @FUNC(i64 %38)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_16, label LBL_15
LBL_15:
%42 = load i64, i64* %33, align 8
%43 = call i64 @FUNC(i64 %42)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_16:
%44 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_11, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
%47 = load i64, i64* @gv_7, align 8
br i1 %46, label LBL_18, label LBL_17
LBL_17:
%48 = call i64 @FUNC(i64 %47, i64 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_12, i64 0, i64 0))
br label LBL_19
LBL_18:
%49 = inttoptr i64 %44 to i8*
%50 = call i64 @FUNC(i64 %47, i64 %39, i8* %49)
br label LBL_19
LBL_19:
%51 = load i64, i64* %33, align 8
%52 = load i64, i64* @gv_7, align 8
%53 = call i64 @FUNC(i64 %52, i64 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_13, i64 0, i64 0), i64 %51)
%54 = load i64, i64* @gv_7, align 8
%55 = call i64 @FUNC(i64 %54, i64 %39)
%56 = call i64 @FUNC(i64 %39)
%57 = call i64 @FUNC(i64 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 1024)
%58 = call i64 @FUNC(i64 %29, i64 %23)
%59 = load i64, i64* %33, align 8
%60 = call i64 @FUNC(i64 %59)
%61 = call i64 @FUNC(i64 %29)
%62 = icmp eq i64 %58, 0
%63 = icmp eq i1 %62, false
store i64 0, i64* %rax.0.reg2mem
br i1 %63, label LBL_20, label LBL_21
LBL_20:
%64 = call i64 @FUNC(i64 %58)
store i64 %64, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %47, { 1, 0 }
uselistorder i64 %39, { 3, 2, 1, 4, 0, 5 }
uselistorder i64* %33, { 1, 2, 0, 3, 4 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64 %2, { 1, 2, 4, 3, 5, 6, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 (i64, i64, i8*)* @gvLayout, { 1, 0 }
uselistorder i64 (i64)* @RelinquishUniqueFileResource, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @CopyMagickString, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder [45 x i8]* @gv_3, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 4, 3, 2, 1, 0 }
uselistorder [39 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_21, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | __nfs4_file_get_access_4237 | __nfs4_file_get_access | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = urem i64 %arg2, 2
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = add i64 %0, 4
%5 = call i64 @FUNC(i64 %4)
br label LBL_2
LBL_2:
%6 = and i64 %arg2, 2
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = add i64 %0, 8
%9 = call i64 @FUNC(i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 (i64)* @atomic_inc, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 0 |
BinRealVul | sock_wfree_9861 | sock_wfree | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = call i64 @FUNC(i64 %arg1, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i32 %2, i32* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i32 %2, -1
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8, i64 %arg1)
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%10 = zext i32 %sv_0.0.reload to i64
%11 = call i64 @FUNC(i64 %10, i64 %arg1)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 %11, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %arg1)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i32 1, { 3, 4, 2, 5, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3, 4 }
} | 0 |
BinRealVul | tcp_prune_ofo_queue_6718 | tcp_prune_ofo_queue | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %3, 16
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_9
LBL_1:
%8 = inttoptr i64 %3 to i32*
%9 = trunc i64 %1 to i32
%10 = call i64 @FUNC(i64 %2)
%11 = call i64 @FUNC(i64 %10, i64 0)
%12 = ashr i32 %9, 3
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %2, 4
%17 = and i64 %1, 4294967295
store i32 %12, i32* %sv_0.0.reg2mem
store i64 %15, i64* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%18 = call i64 @FUNC(i64 %sv_1.0.reload)
%19 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %4)
%20 = call i64 @FUNC(i64 %sv_1.0.reload)
%21 = add i64 %20, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = call i64 @FUNC(i64 %sv_1.0.reload)
%25 = call i64 @FUNC(i64 %2, i64 %24)
%26 = icmp eq i64 %18, 0
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%27 = sub i32 %sv_0.0.reload, %23
%28 = icmp eq i32 %27, 0
%29 = icmp slt i32 %27, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %28, false
%32 = icmp eq i1 %30, %31
store i32 %27, i32* %sv_0.1.reg2mem
br i1 %32, label LBL_6, label LBL_4
LBL_4:
%33 = call i64 @FUNC(i64 %2)
%34 = call i64 @FUNC(i64 %16)
%35 = icmp sgt i64 %34, %17
store i32 %12, i32* %sv_0.1.reg2mem
br i1 %35, label LBL_6, label LBL_5
LBL_5:
%36 = call i64 @FUNC(i64 %2)
%37 = trunc i64 %36 to i8
%38 = icmp eq i8 %37, 1
%39 = icmp eq i1 %38, false
store i32 %12, i32* %sv_0.1.reg2mem
br i1 %39, label LBL_7, label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%40 = icmp eq i1 %26, false
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
store i64 %18, i64* %sv_1.0.reg2mem
br i1 %40, label LBL_2, label LBL_7
LBL_7:
%41 = call i64 @FUNC(i64 %18)
store i64 %41, i64* %14, align 8
%42 = load i32, i32* %8, align 4
%43 = icmp eq i32 %42, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%44 = call i64 @FUNC(i64 %3)
store i64 1, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %27, { 0, 2, 1 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64 %sv_1.0.reload, { 3, 2, 0, 1 }
uselistorder i32 %12, { 1, 0, 2 }
uselistorder i64 %2, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @rb_to_skb, { 2, 1, 0 }
uselistorder label LBL_9, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 0 |
BinRealVul | perf_get_misc_flags_10256 | perf_get_misc_flags | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 3840
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = load i64, i64* @gv_0, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = urem i64 %7, 2
%9 = icmp eq i64 %8, 0
%spec.select2 = select i1 %9, i64 2, i64 8
%10 = and i64 %spec.select2, %0
%11 = icmp eq i64 %10, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%spec.select = select i1 %9, i64 1, i64 4
%12 = and i64 %spec.select, %0
%13 = icmp eq i64 %12, 0
%14 = load i64, i64* @gv_1, align 8
%15 = icmp eq i64 %14, 16
%or.cond = or i1 %13, %15
%. = select i1 %or.cond, i64 3, i64 2
store i64 %., 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 i1 %9, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | esp_reg_write_7848 | esp_reg_write | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = mul i64 %arg2, 4
%3 = and i64 %2, 17179869180
%4 = add i64 %3, %0
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = and i64 %arg2, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %7, i64 %arg3)
%10 = and i64 %1, 4294967295
store i64 %10, i64* @0, align 8
%trunc = trunc i64 %1 to i32
switch i32 %trunc, label LBL_32 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_10
i32 9, label LBL_31
i32 10, label LBL_31
i32 11, label LBL_31
i32 12, label LBL_31
i32 13, label LBL_31
i32 14, label LBL_33
i32 15, label LBL_33
i32 16, label LBL_33
i32 17, label LBL_33
]
LBL_1:
%11 = add i64 %0, 3229
%12 = inttoptr i64 %11 to i8*
store i8 1, i8* %12, align 1
br label LBL_2
LBL_2:
%13 = add i64 %0, 92
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = and i32 %15, -2
store i32 %16, i32* %14, align 4
br label LBL_33
LBL_3:
%17 = add i64 %0, 3228
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
br i1 %20, label LBL_7, label LBL_4
LBL_4:
%21 = add i64 %0, 2192
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp ult i32 %23, 256
br i1 %24, label LBL_5, label LBL_6
LBL_5:
%25 = add i32 %23, 1
store i32 %25, i32* %22, align 4
%26 = urem i64 %arg3, 256
%27 = zext i32 %23 to i64
%28 = mul i64 %27, 8
%29 = add i64 %0, 144
%30 = add i64 %29, %28
%31 = inttoptr i64 %30 to i64*
store i64 %26, i64* %31, align 8
br label LBL_33
LBL_6:
%32 = call i64 @FUNC()
br label LBL_33
LBL_7:
%33 = add i64 %0, 3220
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 255
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%38 = call i64 @FUNC()
br label LBL_33
LBL_9:
%39 = add i32 %35, 1
store i32 %39, i32* %34, align 4
%40 = add i64 %0, 3224
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i32 %42, 1
store i32 %43, i32* %41, align 4
%44 = trunc i64 %arg3 to i32
%45 = zext i32 %42 to i64
%46 = urem i32 %44, 256
%47 = mul i64 %45, 4
%48 = add i64 %0, 2196
%49 = add i64 %48, %47
%50 = inttoptr i64 %49 to i32*
store i32 %46, i32* %50, align 4
br label LBL_33
LBL_10:
%51 = trunc i64 %arg3 to i32
%52 = add i64 %4, 72
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
%54 = urem i64 %arg3, 2
%55 = icmp eq i64 %54, 0
%56 = add i64 %0, 3232
%57 = inttoptr i64 %56 to i32*
br i1 %55, label LBL_12, label LBL_11
LBL_11:
store i32 1, i32* %57, align 4
%58 = add i64 %0, 4
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = add i64 %0, 76
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
%63 = add i64 %0, 8
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = add i64 %0, 80
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
%68 = bitcast i64* %rdi to i32*
%69 = load i32, i32* %68, align 8
%70 = add i64 %0, 72
%71 = inttoptr i64 %70 to i32*
store i32 %69, i32* %71, align 4
br label LBL_13
LBL_12:
store i32 0, i32* %57, align 4
br label LBL_13
LBL_13:
%72 = urem i64 %arg3, 16
store i64 %72, i64* @1, align 8
switch i64 %72, label LBL_30 [
i64 0, label LBL_14
i64 2, label LBL_15
i64 3, label LBL_16
i64 4, label LBL_17
i64 5, label LBL_19
i64 6, label LBL_20
i64 7, label LBL_21
i64 8, label LBL_22
i64 9, label LBL_23
i64 10, label LBL_24
i64 11, label LBL_25
i64 12, label LBL_26
i64 13, label LBL_27
i64 14, label LBL_28
i64 15, label LBL_29
]
LBL_14:
%73 = call i64 @FUNC(i64 %arg3)
br label LBL_33
LBL_15:
%74 = call i64 @FUNC(i64 %arg3)
%75 = add i64 %0, 96
%76 = inttoptr i64 %75 to i32*
store i32 4, i32* %76, align 4
%77 = add i64 %0, 100
%78 = inttoptr i64 %77 to i32*
store i32 0, i32* %78, align 4
%79 = add i64 %0, 104
%80 = inttoptr i64 %79 to i32*
store i32 0, i32* %80, align 4
br label LBL_33
LBL_16:
%81 = call i64 @FUNC(i64 %arg3)
%82 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_17:
%83 = call i64 @FUNC(i64 %arg3)
%84 = add i64 %0, 96
%85 = inttoptr i64 %84 to i32*
store i32 8, i32* %85, align 4
%86 = add i64 %0, 36
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = and i32 %88, 32
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
br i1 %91, label LBL_33, label LBL_18
LBL_18:
%92 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_19:
%93 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_20:
%94 = call i64 @FUNC(i64 %arg3)
%95 = call i64 @FUNC(i64 %0)
%96 = add i64 %0, 96
%97 = inttoptr i64 %96 to i32*
store i32 4, i32* %97, align 4
%98 = add i64 %0, 92
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = or i32 %100, 2
store i32 %101, i32* %99, align 4
br label LBL_33
LBL_21:
%102 = call i64 @FUNC(i64 %arg3)
%103 = add i64 %0, 96
%104 = inttoptr i64 %103 to i32*
store i32 16, i32* %104, align 4
%105 = add i64 %0, 100
%106 = inttoptr i64 %105 to i32*
store i32 0, i32* %106, align 4
%107 = add i64 %0, 104
%108 = inttoptr i64 %107 to i32*
store i32 0, i32* %108, align 4
%109 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_22:
%110 = call i64 @FUNC(i64 %arg3)
%111 = add i64 %0, 92
%112 = inttoptr i64 %111 to i32*
store i32 1, i32* %112, align 4
%113 = add i64 %0, 96
%114 = inttoptr i64 %113 to i32*
store i32 4, i32* %114, align 4
%115 = add i64 %0, 100
%116 = inttoptr i64 %115 to i32*
store i32 0, i32* %116, align 4
br label LBL_33
LBL_23:
%117 = call i64 @FUNC(i64 %arg3)
br label LBL_33
LBL_24:
%118 = call i64 @FUNC(i64 %arg3)
br label LBL_33
LBL_25:
%119 = call i64 @FUNC(i64 %arg3)
%120 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_26:
%121 = call i64 @FUNC(i64 %arg3)
%122 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_27:
%123 = call i64 @FUNC(i64 %arg3)
%124 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_28:
%125 = call i64 @FUNC(i64 %arg3)
%126 = add i64 %0, 96
%127 = inttoptr i64 %126 to i32*
store i32 0, i32* %127, align 4
br label LBL_33
LBL_29:
%128 = call i64 @FUNC(i64 %arg3)
%129 = add i64 %0, 96
%130 = inttoptr i64 %129 to i32*
store i32 0, i32* %130, align 4
%131 = call i64 @FUNC(i64 %0)
br label LBL_33
LBL_30:
%132 = call i64 @FUNC(i64 %arg3)
br label LBL_33
LBL_31:
%133 = trunc i64 %arg3 to i32
%134 = add i64 %4, 72
%135 = inttoptr i64 %134 to i32*
store i32 %133, i32* %135, align 4
br label LBL_33
LBL_32:
%136 = call i64 @FUNC(i64 %arg3, i64 %10)
store i64 %136, i64* %rax.0.reg2mem
br label LBL_34
LBL_33:
%137 = trunc i64 %arg3 to i32
store i32 %137, i32* %5, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_34
LBL_34:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %57, { 1, 0 }
uselistorder i32 %23, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 0, 37, 38, 36, 35, 34, 33, 30, 31, 32, 26, 27, 28, 29, 23, 24, 25, 22, 20, 19, 21, 18, 15, 16, 17, 10, 12, 11, 14, 13, 39, 2, 6, 9, 3, 8, 7, 5, 4, 1 }
uselistorder i64 (i64)* @esp_raise_irq, { 2, 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 72, { 1, 2, 0 }
uselistorder i64 ()* @trace_esp_error_fifo_overrun, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 4, { 1, 2, 3, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
uselistorder i64 %arg3, { 21, 22, 20, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 0, 1, 19, 3, 2, 23 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_33, { 21, 4, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 19, 20, 7, 6, 5, 22, 23, 24, 25, 26, 3, 2, 1, 0 }
} | 1 |
BinRealVul | curl_escape_5293 | curl_escape | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_1.2.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32
%sv_4.011.reg2mem = alloca i64
%sv_3.212.reg2mem = alloca i32
%sv_1.213.reg2mem = alloca i64
%sv_2.114.reg2mem = alloca i32
%sv_0.115.reg2mem = alloca i32
%.reg2mem = alloca i8
%0 = bitcast i64* %arg1 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = add i32 %1, 1
%3 = call i64* @malloc(i32 %2)
%4 = ptrtoint i64* %3 to i64
%5 = load i8, i8* %0, align 1
%6 = icmp eq i8 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %sv_1.2.lcssa.reg2mem
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %7, label LBL_1, label LBL_10
LBL_1:
%8 = ptrtoint i64* %arg1 to i64
store i8 %5, i8* %.reg2mem
store i32 0, i32* %sv_0.115.reg2mem
store i32 %2, i32* %sv_2.114.reg2mem
store i64 %4, i64* %sv_1.213.reg2mem
store i32 %2, i32* %sv_3.212.reg2mem
store i64 %8, i64* %sv_4.011.reg2mem
br label LBL_2
LBL_2:
%sv_4.011.reload = load i64, i64* %sv_4.011.reg2mem
%sv_3.212.reload = load i32, i32* %sv_3.212.reg2mem
%sv_1.213.reload = load i64, i64* %sv_1.213.reg2mem
%sv_2.114.reload = load i32, i32* %sv_2.114.reg2mem
%sv_0.115.reload = load i32, i32* %sv_0.115.reg2mem
%.reload = load i8, i8* %.reg2mem
%9 = icmp eq i8 %.reload, 32
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i32 %sv_0.115.reload, 1
%12 = sext i32 %sv_0.115.reload to i64
%13 = add i64 %sv_1.213.reload, %12
%14 = inttoptr i64 %13 to i8*
store i8 43, i8* %14, align 1
store i32 %sv_3.212.reload, i32* %sv_3.1.reg2mem
store i64 %sv_1.213.reload, i64* %sv_1.1.reg2mem
store i32 %sv_2.114.reload, i32* %sv_2.0.reg2mem
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_4:
%15 = and i8 %.reload, -33
%16 = add i8 %15, -65
%17 = icmp ult i8 %16, 26
%.off5 = add i8 %.reload, -48
%18 = icmp ult i8 %.off5, 10
%or.cond8 = or i1 %18, %17
br i1 %or.cond8, label LBL_8, label LBL_5
LBL_5:
%19 = add i32 %sv_2.114.reload, 2
%20 = icmp sgt i32 %19, %sv_3.212.reload
store i32 %sv_3.212.reload, i32* %sv_3.0.reg2mem
store i64 %sv_1.213.reload, i64* %sv_1.0.reg2mem
br i1 %20, label LBL_6, label LBL_7
LBL_6:
%21 = mul i32 %sv_3.212.reload, 2
%22 = inttoptr i64 %sv_1.213.reload to i64*
%23 = call i64* @realloc(i64* %22, i32 %21)
%24 = ptrtoint i64* %23 to i64
%25 = icmp eq i64* %23, null
%26 = icmp eq i1 %25, false
store i32 %21, i32* %sv_3.0.reg2mem
store i64 %24, i64* %sv_1.0.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %26, label LBL_7, label LBL_11
LBL_7:
%27 = zext i8 %.reload to i32
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%28 = sext i32 %sv_0.115.reload to i64
%29 = add i64 %sv_1.0.reload, %28
%30 = inttoptr i64 %29 to i8*
%31 = call i32 (i8*, i8*, ...) @sprintf(i8* %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 %27)
%32 = add i32 %sv_0.115.reload, 3
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %19, i32* %sv_2.0.reg2mem
store i32 %32, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%33 = add i32 %sv_0.115.reload, 1
%34 = sext i32 %sv_0.115.reload to i64
%35 = add i64 %sv_1.213.reload, %34
%36 = inttoptr i64 %35 to i8*
store i8 %.reload, i8* %36, align 1
store i32 %sv_3.212.reload, i32* %sv_3.1.reg2mem
store i64 %sv_1.213.reload, i64* %sv_1.1.reg2mem
store i32 %sv_2.114.reload, i32* %sv_2.0.reg2mem
store i32 %33, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%37 = add i64 %sv_4.011.reload, 1
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, 0
%41 = icmp eq i1 %40, false
store i8 %39, i8* %.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.115.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.114.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.213.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.212.reg2mem
store i64 %37, i64* %sv_4.011.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.lcssa.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %41, label LBL_2, label LBL_10
LBL_10:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%sv_1.2.lcssa.reload = load i64, i64* %sv_1.2.lcssa.reg2mem
%42 = sext i32 %sv_0.1.lcssa.reload to i64
%43 = add i64 %sv_1.2.lcssa.reload, %42
%44 = inttoptr i64 %43 to i8*
store i8 0, i8* %44, align 1
store i64 %sv_1.2.lcssa.reload, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8 %.reload, { 2, 1, 0, 4, 3 }
uselistorder i32 %sv_0.115.reload, { 3, 2, 4, 5, 1, 0 }
uselistorder i32 %sv_2.114.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.213.reload, { 1, 5, 3, 2, 0, 4 }
uselistorder i32 %sv_3.212.reload, { 1, 4, 2, 3, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.115.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.114.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.213.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.212.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | openpic_update_irq_2946 | openpic_update_irq | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.in.reg2mem = alloca i32
%.reg2mem16 = alloca i32
%storemerge39.reg2mem = alloca i32
%.reg2mem14 = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = ashr exact i64 %sext, 28
%3 = add i64 %2, %0
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %1, 4294967295
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %8)
%10 = sext i32 %9 to i64
store i64 %10, i64* %rax.0.reg2mem
br label LBL_23
LBL_2:
%11 = add i64 %3, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = urem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = and i64 %1, 4294967295
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %16)
%18 = sext i32 %17 to i64
store i64 %18, i64* %rax.0.reg2mem
br label LBL_23
LBL_4:
%19 = zext i32 %13 to i64
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = and i64 %1, 4294967295
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %24)
%26 = sext i32 %25 to i64
store i64 %26, i64* %rax.0.reg2mem
br label LBL_23
LBL_6:
%27 = load i32, i32* %12, align 4
%28 = and i32 %27, 2
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = and i64 %1, 4294967295
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %30)
%32 = sext i32 %31 to i64
store i64 %32, i64* %rax.0.reg2mem
br label LBL_23
LBL_8:
%33 = add i64 %3, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = and i64 %1, 4294967295
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %38)
%40 = sext i32 %39 to i64
store i64 %40, i64* %rax.0.reg2mem
br label LBL_23
LBL_10:
%41 = add i64 %3, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = urem i32 %43, 32
%45 = shl i32 1, %44
%46 = icmp eq i32 %45, %35
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_12, label LBL_11
LBL_11:
%48 = trunc i64 %1 to i32
%49 = zext i32 %43 to i64
%50 = call i64 @FUNC(i64 %0, i64 %49, i32 %48)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_23
LBL_12:
%51 = and i32 %27, 4
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
%54 = add i64 %0, 8
%55 = inttoptr i64 %54 to i32*
store i32 %43, i32* %storemerge4.in.reg2mem
br i1 %53, label LBL_21, label LBL_13
LBL_13:
%56 = load i32, i32* %55, align 4
%57 = icmp eq i32 %56, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %57, label LBL_23, label LBL_14
LBL_14:
%58 = trunc i64 %1 to i32
store i32 %56, i32* %.reg2mem
store i32 %35, i32* %.reg2mem14
store i32 0, i32* %storemerge39.reg2mem
br label LBL_15
LBL_15:
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%.reload15 = load i32, i32* %.reg2mem14
%.reload = load i32, i32* %.reg2mem
%59 = urem i32 %storemerge39.reload, 32
%60 = shl i32 1, %59
%61 = and i32 %60, %.reload15
%62 = icmp eq i32 %61, 0
store i32 %.reload, i32* %.reg2mem16
br i1 %62, label LBL_17, label LBL_16
LBL_16:
%63 = zext i32 %storemerge39.reload to i64
%64 = call i64 @FUNC(i64 %0, i64 %63, i32 %58)
%.pre12 = load i32, i32* %55, align 4
store i32 %.pre12, i32* %.reg2mem16
br label LBL_17
LBL_17:
%.reload17 = load i32, i32* %.reg2mem16
%65 = add i32 %storemerge39.reload, 1
%66 = zext i32 %.reload17 to i64
%67 = sext i32 %65 to i64
%68 = icmp slt i64 %67, %66
store i64 %66, i64* %rax.0.reg2mem
br i1 %68, label LBL_17.LBL_15_crit_edge, label LBL_23
LBL_18:
%.pre = load i32, i32* %34, align 4
store i32 %.reload17, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem14
store i32 %65, i32* %storemerge39.reg2mem
br label LBL_15
LBL_19:
%69 = load i32, i32* %55, align 4
%70 = icmp eq i32 %storemerge4, %69
%71 = icmp eq i1 %70, false
%spec.select5 = select i1 %71, i32 %storemerge4, i32 0
%72 = urem i32 %spec.select5, 32
%73 = shl i32 1, %72
%74 = and i32 %73, %35
%75 = icmp eq i32 %74, 0
store i32 %spec.select5, i32* %storemerge4.in.reg2mem
br i1 %75, label LBL_21, label LBL_20
LBL_20:
%76 = trunc i64 %1 to i32
%77 = zext i32 %spec.select5 to i64
%78 = call i64 @FUNC(i64 %0, i64 %77, i32 %76)
store i32 %spec.select5, i32* %42, align 4
store i64 %3, i64* %rax.0.reg2mem
br label LBL_23
LBL_21:
%storemerge4.in.reload = load i32, i32* %storemerge4.in.reg2mem
%storemerge4 = add i32 %storemerge4.in.reload, 1
%79 = icmp eq i32 %storemerge4, %43
%80 = icmp eq i1 %79, false
br i1 %80, label LBL_19, label LBL_22
LBL_22:
%81 = zext i32 %43 to i64
store i64 %81, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge4, { 1, 2, 0 }
uselistorder i32 %spec.select5, { 2, 3, 0, 1 }
uselistorder i32 %.reload17, { 1, 0 }
uselistorder i32 %storemerge39.reload, { 1, 0, 2 }
uselistorder i32* %55, { 2, 1, 0 }
uselistorder i32 %43, { 3, 2, 0, 4, 1 }
uselistorder i32 %35, { 1, 0, 2, 3 }
uselistorder i32 %13, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1, 3, 4 }
uselistorder i64 %1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 3, 2, 4, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem14, { 1, 0, 2 }
uselistorder i32* %storemerge39.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem16, { 0, 2, 1 }
uselistorder i32* %storemerge4.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 10, 1, 2, 9, 8, 7, 6, 5, 4 }
uselistorder i64 (i64, i64, i32)* @IRQ_local_pipe, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i32 0, { 3, 2, 4, 0, 1, 5, 6, 7, 8, 9, 10 }
uselistorder label LBL_23, { 2, 3, 0, 1, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_21, { 1, 0 }
} | 0 |
BinRealVul | cpu_mips_translate_address_14693 | cpu_mips_translate_address | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = zext i32 %arg3 to i64
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64* nonnull %sv_1, i64 %arg2, i64 %1, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 %arg2, i32 %arg3, i32 %3)
store i64 -1, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = load i64, i64* %sv_0, align 8
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | einj_error_inject_11329 | einj_error_inject | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = and i64 %arg2, 4294967288
%3 = icmp eq i64 %2, 0
%or.cond = or i1 %1, %3
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_9
LBL_1:
%4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%5 = load i32, i32* @gv_1, align 4
%6 = or i32 %5, %4
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_8, label LBL_2
LBL_2:
%8 = and i64 %arg1, 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = load i32, i32* @gv_2, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label LBL_5, label LBL_8
LBL_4:
%12 = and i64 %arg1, 16
%13 = and i64 %arg2, 2
%14 = or i64 %13, %12
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_8, label LBL_5
LBL_5:
%16 = icmp ugt i64 %arg4, -4097
%17 = icmp eq i1 %16, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %17, label LBL_9, label LBL_6
LBL_6:
%18 = and i64 %arg4, %arg3
%19 = sub i64 0, %arg4
%20 = call i64 @FUNC(i64 %18, i64 %19, i64 1, i64 0)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 1
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = call i64 @FUNC(i64 %18, i64 %19, i64 2, i64 1)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 1
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %25, label LBL_8, label LBL_9
LBL_8:
%26 = and i64 %arg1, 4294967295
%27 = call i64 @FUNC(i64 4210732)
%28 = call i64 @FUNC(i64 %26, i32 %0, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6)
%29 = call i64 @FUNC(i64* nonnull @gv_3)
%30 = and i64 %28, 4294967295
store i64 %30, 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* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @region_intersects, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 4294967274, { 1, 0, 2 }
uselistorder i32 0, { 0, 3, 1, 2 }
uselistorder i32 1, { 3, 4, 2, 1, 0 }
uselistorder i64 %arg4, { 3, 1, 0, 2 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_9, { 3, 1, 0, 2 }
uselistorder label LBL_8, { 2, 1, 0, 4, 3 }
} | 1 |
BinRealVul | port92_class_initfn_1369 | port92_class_initfn | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
store i8 1, i8* %1, align 1
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198662, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198669, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %7, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | _gdContributionsAlloc_5813 | _gdContributionsAlloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%storemerge58.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 16)
%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_13
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext4, 32
%5 = inttoptr i64 %0 to i32*
%6 = trunc i64 %4 to i32
store i32 %6, i32* %5, align 4
%7 = trunc i64 %3 to i32
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = and i64 %3, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 8)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%15 = mul i64 %arg1, 8
%16 = and i64 %15, 34359738360
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = icmp eq i64 %17, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_6
LBL_4:
%22 = icmp eq i32 %7, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %22, label LBL_13, label LBL_5
LBL_5:
%23 = and i64 %4, 4294967295
%24 = mul i64 %arg2, 8
%25 = and i64 %24, 34359738360
store i32 0, i32* %storemerge58.reg2mem
br label LBL_7
LBL_6:
%26 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%storemerge58.reload = load i32, i32* %storemerge58.reg2mem
%27 = call i64 @FUNC(i64 %23, i64 8)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_8, label LBL_9
LBL_8:
%30 = load i64, i64* %19, align 8
%31 = zext i32 %storemerge58.reload to i64
%32 = mul i64 %31, 8
%33 = add i64 %30, %32
%34 = call i64 @FUNC(i64 %25)
%35 = inttoptr i64 %33 to i64*
store i64 %34, i64* %35, align 8
%36 = load i64, i64* %19, align 8
%37 = add i64 %36, %32
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_12, label LBL_9
LBL_9:
%42 = add i32 %storemerge58.reload, -1
store i32 0, i32* %storemerge7.reg2mem
br label LBL_10
LBL_10:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%43 = load i64, i64* %19, align 8
%44 = zext i32 %storemerge7.reload to i64
%45 = mul i64 %44, 8
%46 = add i64 %45, %43
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %48)
%50 = add i32 %storemerge7.reload, 1
%51 = icmp ugt i32 %50, %42
store i32 %50, i32* %storemerge7.reg2mem
br i1 %51, label LBL_11, label LBL_10
LBL_11:
%52 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%53 = add i32 %storemerge58.reload, 1
%54 = icmp ult i32 %53, %7
store i32 %53, i32* %storemerge58.reg2mem
store i64 %0, i64* %rax.0.reg2mem
br i1 %54, label LBL_7, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %32, { 1, 0 }
uselistorder i32 %storemerge58.reload, { 0, 2, 1 }
uselistorder i64* %19, { 1, 0, 2, 3 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 3, 1, 4, 5, 6, 7, 8 }
uselistorder i32* %storemerge58.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 5, 2, 4, 3 }
uselistorder i32 0, { 0, 3, 1, 2, 4, 5 }
uselistorder i64 (i64, i64)* @overflow2, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 (i64)* @gdMalloc, { 2, 1, 0 }
uselistorder label LBL_13, { 0, 3, 4, 1, 5, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | tg_cfs_schedulable_down_10908 | tg_cfs_schedulable_down | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_0.LBL_4_crit_edge
LBL_1:
%.pre = inttoptr i64 %1 to i64*
store i64* %.pre, i64** %.pre-phi.reg2mem
store i64 9223372036854775807, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_2:
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4)
%6 = inttoptr i64 %1 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %5, 9223372036854775807
%9 = icmp eq i1 %8, false
store i64* %6, i64** %.pre-phi.reg2mem
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%10 = icmp ne i64 %7, 9223372036854775807
%11 = icmp sgt i64 %5, %7
%or.cond = icmp eq i1 %10, %11
store i64* %6, i64** %.pre-phi.reg2mem
store i64 %5, i64* %sv_0.0.reg2mem
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
store i64 %sv_0.0.reload, i64* %.pre-phi.reload, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 1, 2, 0 }
uselistorder i64* %6, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 9223372036854775807, { 2, 3, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | jas_matrix_bindsub_11679 | jas_matrix_bindsub | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i32
%.pre-phi10.reg2mem = alloca i32
%.reg2mem11 = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = add i64 %0, 24
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0)
br label LBL_3
LBL_3:
store i64 0, i64* %arg1, align 8
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
br label LBL_4
LBL_4:
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %13)
store i64 0, i64* %12, align 8
br label LBL_6
LBL_6:
%sext = mul i64 %arg3, 4294967296
%16 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg4, 4294967296
%17 = ashr exact i64 %sext4, 32
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = or i32 %20, 1
store i32 %21, i32* %19, align 4
%22 = sub i64 %arg5, %16
%23 = trunc i64 %22 to i32
%24 = add i32 %23, 1
%25 = add i64 %0, 28
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = sub i64 %arg6, %17
%28 = trunc i64 %27 to i32
%29 = add i32 %28, 1
%30 = add i64 %0, 32
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = load i32, i32* %26, align 4
%33 = add i64 %0, 36
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = zext i32 %32 to i64
%36 = call i64 @FUNC(i64 %35, i64 8)
store i64 %36, i64* %12, align 8
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_7, label LBL_10
LBL_7:
%39 = ptrtoint i64* %arg2 to i64
%40 = load i32, i32* %26, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_7.LBL_12_crit_edge, label LBL_9
LBL_8:
%.pre8 = trunc i64 %17 to i32
%.pre9 = trunc i64 %16 to i32
store i32 %.pre9, i32* %.pre-phi10.reg2mem
store i32 %.pre8, i32* %.pre-phi.reg2mem
br label LBL_12
LBL_9:
%42 = add i64 %39, 16
%43 = inttoptr i64 %42 to i64*
%44 = trunc i64 %16 to i32
%45 = trunc i64 %17 to i32
%46 = load i64, i64* %43, align 8
%47 = ashr exact i64 %sext, 30
%48 = add i64 %47, %46
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i32 %50, %45
%52 = inttoptr i64 %36 to i32*
store i32 %51, i32* %52, align 4
%53 = load i32, i32* %26, align 4
%54 = icmp ugt i32 %53, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem11
store i32 %44, i32* %.pre-phi10.reg2mem
store i32 %45, i32* %.pre-phi.reg2mem
br i1 %54, label LBL_11, label LBL_12
LBL_10:
call void @abort()
unreachable
LBL_11:
%.reload12 = load i32, i32* %.reg2mem11
%.reload = load i64, i64* %.reg2mem
%.pre = load i64, i64* %12, align 8
%55 = load i64, i64* %43, align 8
%56 = add i32 %.reload12, %44
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 4
%59 = add i64 %58, %55
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = mul i64 %.reload, 4
%63 = add i64 %62, %.pre
%64 = add i32 %61, %45
%65 = inttoptr i64 %63 to i32*
store i32 %64, i32* %65, align 4
%66 = add i32 %.reload12, 1
%67 = load i32, i32* %26, align 4
%68 = zext i32 %67 to i64
%69 = sext i32 %66 to i64
%70 = icmp slt i64 %69, %68
store i64 %69, i64* %.reg2mem
store i32 %66, i32* %.reg2mem11
store i32 %44, i32* %.pre-phi10.reg2mem
store i32 %45, i32* %.pre-phi.reg2mem
br i1 %70, label LBL_11, label LBL_12
LBL_12:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%.pre-phi10.reload = load i32, i32* %.pre-phi10.reg2mem
%71 = add i64 %39, 40
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = add i32 %73, %.pre-phi.reload
%75 = add i64 %0, 40
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
%77 = add i64 %39, 44
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = add i32 %79, %.pre-phi10.reload
%81 = add i64 %0, 44
%82 = inttoptr i64 %81 to i32*
store i32 %80, i32* %82, align 4
%83 = load i32, i32* %76, align 4
%84 = load i32, i32* %31, align 4
%85 = add i32 %84, %83
%86 = add i64 %0, 48
%87 = inttoptr i64 %86 to i32*
store i32 %85, i32* %87, align 4
%88 = load i32, i32* %82, align 4
%89 = load i32, i32* %26, align 4
%90 = add i32 %89, %88
%91 = add i64 %0, 52
%92 = inttoptr i64 %91 to i32*
store i32 %90, i32* %92, align 4
ret i64 %0
uselistorder i32 %.reload12, { 1, 0 }
uselistorder i32 %45, { 1, 3, 0, 2 }
uselistorder i32 %44, { 1, 2, 0 }
uselistorder i64* %43, { 1, 0 }
uselistorder i64 %39, { 0, 2, 1 }
uselistorder i32* %26, { 2, 3, 0, 1, 4, 5 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %12, { 0, 2, 1, 3 }
uselistorder i64 %0, { 4, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem11, { 2, 0, 1 }
uselistorder i32* %.pre-phi10.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | xhci_class_init_1045 | xhci_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
%1 = load i64, i64* @gv_1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 %1, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198662, i64* %5, align 8
store i64 4198669, i64* %arg1, align 8
%6 = inttoptr i64 %2 to i32*
store i32 4147, i32* %6, align 4
%7 = add i64 %0, 12
%8 = inttoptr i64 %7 to i32*
store i32 53, i32* %8, align 4
%9 = inttoptr i64 %4 to i32*
store i32 12, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 3, i32* %11, align 4
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i32*
store i32 1, i32* %15, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6 }
} | 0 |
BinRealVul | find_tag_14842 | find_tag | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = trunc i64 %arg2 to i32
br label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = call i64 @FUNC(i64 %0)
%8 = icmp eq i32 %6, %4
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = and i64 %7, 4294967295
%10 = call i64 @FUNC(i64 %0, i64 %9, i64 1)
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %13, label LBL_2, label LBL_5
LBL_4:
%14 = trunc i64 %7 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
%.op = and i64 %7, 4294967295
%17 = select i1 %16, i64 %.op, i64 2147483647
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 4, 1, 3, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @get_le32, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @url_feof, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_cryptographic_context_8760 | mxf_read_cryptographic_context | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = icmp eq i32 %0, 16
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = load i8, i8* inttoptr (i64 4210725 to i8*), align 1
%3 = trunc i64 %arg5 to i8
%4 = icmp eq i8 %2, %3
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC(i64 %6, i64 %7, i64 16)
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* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | lame_window_init_15781 | lame_window_init | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i64
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa.reg2mem
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = bitcast i64* %rsi to i32*
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %5, 12
%13 = inttoptr i64 %12 to i32*
store i64 %3, i64* %.reg2mem
store i64 0, i64* %storemerge5.reg2mem
br label LBL_2
LBL_2:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%14 = load i32, i32* %9, align 4
%15 = urem i32 %14, 2
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = load i32, i32* %11, align 4
%18 = sdiv i32 %17, 10
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 4
%21 = add i64 %20, ptrtoint (i32** @gv_0 to i64)
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = call i128 @FUNC(i32 %23)
%25 = call i64 @__asm_movss.1(i128 %24)
%26 = trunc i64 %25 to i32
store i32 %26, i32* %storemerge3.reg2mem
br label LBL_5
LBL_4:
%.reload = load i64, i64* %.reg2mem
%27 = load i32, i32* %13, align 4
%28 = ashr i32 %27, 31
%29 = zext i32 %27 to i64
%30 = zext i32 %28 to i64
%31 = mul i64 %30, 4294967296
%32 = or i64 %31, %29
%33 = sdiv i64 %32, %.reload
%sext = mul i64 %33, 4294967296
%34 = ashr exact i64 %sext, 32
%narrow = mul nsw i64 %34, 274877907
%35 = udiv i64 %narrow, 4294967296
%36 = trunc i64 %35 to i32
%37 = ashr i32 %36, 6
%38 = trunc i64 %33 to i32
%39 = ashr i32 %38, 31
%40 = sub nsw i32 %37, %39
%41 = zext i32 %40 to i64
%42 = call i128 @FUNC(i64 %41)
%43 = call i32 @FUNC(i128 %42)
store i32 %43, i32* %storemerge3.reg2mem
br label LBL_5
LBL_5:
%44 = add i64 %storemerge5.reload, %6
%45 = inttoptr i64 %44 to i32*
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
store i32 %storemerge3.reload, i32* %45, align 4
%46 = add i64 %44, 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%47 = call i128 @FUNC(i32 1092616192)
%48 = call i64 @__asm_movss.1(i128 %47)
%49 = mul i64 %indvars.iv.reload, 4
%50 = add i64 %46, %49
%51 = trunc i64 %48 to i32
%52 = inttoptr i64 %50 to i32*
store i32 %51, i32* %52, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%53 = load i32, i32* %7, align 8
%54 = zext i32 %53 to i64
%55 = icmp ugt i32 %53, 33
store i64 %54, i64* %.reg2mem
store i64 4356, i64* %storemerge5.reg2mem
store i64 %54, i64* %.lcssa.reg2mem
br i1 %55, label LBL_2, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4294967296, { 2, 0, 1 }
uselistorder i64 4, { 0, 2, 1, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | i915_gpu_is_active_4093 | i915_gpu_is_active | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 12
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = add i64 %0, 4
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %0, 8
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %15, label LBL_4, label LBL_5
LBL_4:
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @list_empty, { 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | ip6_ra_control_4449 | ip6_ra_control | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.lcssa6.reg2mem = alloca i64*
%.reg2mem39 = alloca i64
%.lcssa21.reg2mem = alloca i64*
%.lcssa23.reg2mem = alloca i64*
%.lcssa25.reg2mem = alloca i64
%storemerge319.reg2mem = alloca i64
%.reg2mem = alloca i1
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 3
%4 = icmp eq i1 %3, false
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_13, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 255
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_13
LBL_2:
%10 = trunc i64 %arg2 to i32
%11 = icmp slt i32 %10, 0
store i1 false, i1* %.reg2mem
store i64 0, i64* %storemerge319.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64* @malloc(i32 24)
%13 = ptrtoint i64* %12 to i64
%14 = icmp eq i64* %12, null
%15 = icmp eq i1 %14, false
store i1 true, i1* %.reg2mem
store i64 %13, i64* %storemerge319.reg2mem
store i64 12, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_13
LBL_4:
%storemerge319.reload = load i64, i64* %storemerge319.reg2mem
%.reload = load i1, i1* %.reg2mem
%16 = load i64, i64* @gv_0, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64* @gv_0, i64** %.lcssa6.reg2mem
store i64 %16, i64* %.lcssa.reg2mem
br i1 %18, label LBL_5, label LBL_11
LBL_5:
%19 = inttoptr i64 %16 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, %5
%22 = icmp eq i1 %21, false
store i64 %16, i64* %.lcssa25.reg2mem
store i64* @gv_0, i64** %.lcssa23.reg2mem
store i64* %19, i64** %.lcssa21.reg2mem
store i64 %16, i64* %.reg2mem39
br i1 %22, label LBL_10, label LBL_7
LBL_6:
%23 = inttoptr i64 %33 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, %5
%26 = icmp eq i1 %25, false
store i64 %33, i64* %.lcssa25.reg2mem
store i64* %32, i64** %.lcssa23.reg2mem
store i64* %23, i64** %.lcssa21.reg2mem
store i64 %33, i64* %.reg2mem39
br i1 %26, label LBL_10, label LBL_7
LBL_7:
br i1 %11, label LBL_9, label LBL_8
LBL_8:
%27 = inttoptr i64 %storemerge319.reload to i64*
call void @free(i64* %27)
store i64 98, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%.lcssa21.reload = load i64*, i64** %.lcssa21.reg2mem
%.lcssa23.reload = load i64*, i64** %.lcssa23.reg2mem
%.lcssa25.reload = load i64, i64* %.lcssa25.reg2mem
%28 = add i64 %.lcssa25.reload, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
store i64 %30, i64* %.lcssa23.reload, align 8
call void @free(i64* %.lcssa21.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%.reload40 = load i64, i64* %.reg2mem39
%31 = add i64 %.reload40, 16
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
store i64* %32, i64** %.lcssa6.reg2mem
store i64 %33, i64* %.lcssa.reg2mem
br i1 %35, label LBL_6, label LBL_11
LBL_11:
store i64 105, i64* %rax.0.reg2mem
br i1 %.reload, label LBL_12, label LBL_13
LBL_12:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%.lcssa6.reload = load i64*, i64** %.lcssa6.reg2mem
%36 = inttoptr i64 %storemerge319.reload to i64*
store i64 %5, i64* %36, align 8
%37 = add i64 %storemerge319.reload, 8
%38 = inttoptr i64 %37 to i32*
store i32 %10, i32* %38, align 4
%39 = add i64 %storemerge319.reload, 16
%40 = inttoptr i64 %39 to i64*
store i64 %.lcssa.reload, i64* %40, align 8
store i64 %storemerge319.reload, i64* %.lcssa6.reload, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %33, { 0, 4, 3, 2, 1 }
uselistorder i64* %32, { 0, 2, 1 }
uselistorder i64 %16, { 1, 2, 3, 0, 4 }
uselistorder i64 %storemerge319.reload, { 1, 2, 3, 4, 0 }
uselistorder i64 %5, { 1, 2, 0, 3 }
uselistorder i1* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge319.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem39, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 7, 6, 2, 4, 3 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0, 2 }
uselistorder i64 0, { 0, 7, 1, 3, 2, 4, 5, 6 }
uselistorder i1 false, { 5, 4, 1, 2, 3, 0, 6 }
uselistorder label LBL_13, { 4, 0, 5, 6, 1, 3, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | smb_send_rqst_11767 | smb_send_rqst | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.2.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%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_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i32, align 4
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = call i64 @FUNC(i64 %4)
store i32 1, i32* %sv_4, align 4
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %3, i64 %2, i64 %1)
%12 = inttoptr i64 %6 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 ptrtoint ([24 x i8]* @gv_0 to i64), i64 %13)
%15 = call i64 @FUNC(i64 %4, i64 6, i64 3, i32* nonnull %sv_4, i64 4)
%16 = call i64 @FUNC(i64 %5, i64 %4, i32 %8, i64* nonnull %sv_3)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
store i64 0, i64* %sv_1.1.reg2mem
store i32 %17, i32* %sv_0.1.reg2mem
br i1 %18, label LBL_5, label LBL_1
LBL_1:
%19 = load i64, i64* %sv_3, align 8
%20 = add i64 %4, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
store i64 %19, i64* %sv_1.1.reg2mem
store i32 %17, i32* %sv_0.1.reg2mem
br i1 %23, label LBL_5, label LBL_2
LBL_2:
%24 = ptrtoint i64* %sv_2 to i64
%25 = add i64 %4, 16
%26 = inttoptr i64 %25 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %19, i64* %sv_1.02.reg2mem
br label LBL_3
LBL_3:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%27 = call i64 @FUNC(i64 %4, i64 %indvars.iv.reload, i64* nonnull %sv_2)
%28 = call i64 @FUNC(i64 %5, i64 %24, i32 1, i64* nonnull %sv_3)
%29 = trunc i64 %28 to i32
%30 = load i64, i64* %26, align 8
%31 = mul i64 %indvars.iv.reload, 8
%32 = add i64 %30, %31
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = icmp slt i32 %29, 0
store i64 %sv_1.02.reload, i64* %sv_1.1.reg2mem
store i32 %29, i32* %sv_0.1.reg2mem
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%37 = load i64, i64* %sv_3, align 8
%38 = add i64 %37, %sv_1.02.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%39 = load i32, i32* %21, align 4
%40 = zext i32 %39 to i64
%41 = icmp ult i64 %indvars.iv.next, %40
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %38, i64* %sv_1.02.reg2mem
store i64 %38, i64* %sv_1.1.reg2mem
store i32 %29, i32* %sv_0.1.reg2mem
br i1 %41, label LBL_3, label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
store i32 0, i32* %sv_4, align 4
%42 = ptrtoint i32* %sv_4 to i64
%43 = call i64 @FUNC(i64 %4, i64 6, i64 3, i32* nonnull %sv_4, i64 4)
%44 = icmp eq i64 %sv_1.1.reload, 0
store i64 %42, i64* %rcx.0.reg2mem
br i1 %44, label LBL_8, label LBL_6
LBL_6:
%45 = add i64 %9, 4
%46 = and i64 %45, 4294967295
%47 = icmp eq i64 %sv_1.1.reload, %46
store i64 %42, i64* %rcx.0.reg2mem
br i1 %47, label LBL_8, label LBL_7
LBL_7:
%48 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i64 %46, i64 %sv_1.1.reload, i64 4, i64 %1)
%49 = add i64 %5, 8
%50 = inttoptr i64 %49 to i32*
store i32 1, i32* %50, align 4
store i64 %sv_1.1.reload, i64* %rcx.0.reg2mem
br label LBL_8
LBL_8:
%51 = icmp slt i32 %sv_0.1.reload, 0
%52 = icmp eq i1 %51, false
%53 = icmp eq i32 %sv_0.1.reload, -4
%or.cond = or i1 %53, %52
store i32 0, i32* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_10, label LBL_9
LBL_9:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%54 = zext i32 %sv_0.1.reload to i64
%55 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_2, i64 0, i64 0), i64 %54, i64 %rcx.0.reload, i64 4, i64 %1)
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_10
LBL_10:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%56 = zext i32 %sv_0.2.reload to i64
ret i64 %56
uselistorder i64 %46, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.02.reload, { 1, 0 }
uselistorder i32* %21, { 1, 0 }
uselistorder i64 %19, { 1, 0 }
uselistorder i32* %sv_4, { 0, 2, 3, 1, 4 }
uselistorder i64* %sv_3, { 2, 0, 3, 1 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 3, 2, 0, 1, 5, 6, 7, 4 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i64*)* @smb_send_kvec, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32*, i64)* @kernel_setsockopt, { 1, 0 }
uselistorder i64 4, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @cFYI, { 1, 0 }
uselistorder [24 x i8]* @gv_0, { 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 8, { 2, 0, 3, 4, 1, 5 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ffurl_register_protocol_16235 | ffurl_register_protocol | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp ult i32 %1, 8
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = call i64 @FUNC(i64 8)
%4 = inttoptr i64 %3 to i64*
%5 = call i64* @memcpy(i64* %4, i64* %arg1, i32 %1)
store i64 %3, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%6 = inttoptr i64 %storemerge.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_4:
store i64 %sv_0.0.reload, i64* %6, align 8
%10 = inttoptr i64 %sv_0.0.reload to i64*
store i64 0, i64* %10, align 8
ret i64 0
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | rt2x00pci_write_tx_data_18063 | rt2x00pci_write_tx_data | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%sv_0 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2, i64 0)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_1:
%9 = inttoptr i64 %5 to i64*
%10 = load i64, i64* %9, align 8
%11 = bitcast i32* %sv_0 to i64*
%12 = call i64 @FUNC(i64 %10, i64 0, i64* nonnull %11)
%13 = load i32, i32* %sv_0, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 1)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load i32, i32* %sv_0, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20, i64 2)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = and i64 %1, 4294967295
%25 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_1, i64 0, i64 0), i64 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%27 = ptrtoint i64* %arg4 to i64
%28 = ptrtoint i64* %arg3 to i64
%29 = ptrtoint i64* %arg1 to i64
%30 = ptrtoint i32* %sv_0 to i64
%31 = call i64 @FUNC(i64 %28)
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = add i64 %28, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %31, 8
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = load i64, i64* %9, align 8
%39 = add i64 %31, 16
%40 = inttoptr i64 %39 to i64*
store i64 %38, i64* %40, align 8
%41 = bitcast i64* %rsi to i32*
%42 = load i32, i32* %41, align 8
%43 = add i64 %31, 24
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %31, 32
%46 = inttoptr i64 %45 to i64*
store i64 %3, i64* %46, align 8
%47 = load i32, i32* %34, align 4
%48 = sext i32 %47 to i64
%49 = add i64 %5, 8
%50 = inttoptr i64 %49 to i64*
%51 = inttoptr i64 %48 to i64*
%52 = call i64* @memcpy(i64* %50, i64* %51, i32 %47)
%53 = call i64 @FUNC(i64 %29, i64 %28, i64 %27)
%54 = call i64 @FUNC(i64 %2, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_0, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64)* @rt2x00_get_field32, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
reposvul_c_test | cgroup1_check_for_release_210 | cgroup1_check_for_release | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = add i64 %0, 4
%17 = call i64 @FUNC(i64 %16)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | gnrv_box_dump_6002 | gnrv_box_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%.pre = bitcast i64* %arg1 to i32*
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = icmp ne i32 %2, 1
%5 = icmp eq i32 %2, 2
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
%spec.store.select = select i1 %or.cond, i32 %2, i32 2003725173
store i32 %spec.store.select, i32* %.pre, align 4
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%9 = call i16** @__ctype_b_loc()
%10 = add i64 %7, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %7, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %7, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %7, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %12 to i64
%23 = zext i32 %15 to i64
%24 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([211 x i8], [211 x i8]* @gv_1, i64 0, i64 0), i32 %21, i32 %18, i64 %23, i64 %22)
store i32 3, i32* %.pre, align 4
%25 = add i64 %7, 88
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %7, 80
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = zext i32 %27 to i64
%32 = call i64 @FUNC(i64 %30, i64 %31, i64 %arg2)
%33 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %arg2)
ret i64 0
uselistorder i64 %7, { 0, 2, 1, 5, 6, 4, 3, 7 }
uselistorder i32 %2, { 3, 0, 1, 2 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | put_chars_5545 | put_chars | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg3 to i32
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %1, i64 %arg2, i32 %0)
ret i64 %2
} | 0 |
BinRealVul | kill_TCP_secure_connection_13010 | kill_TCP_secure_connection | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %2, i64 4)
ret i64 %5
} | 1 |
BinRealVul | dwmac4_wrback_get_rx_timestamp_status_4438 | dwmac4_wrback_get_rx_timestamp_status | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %8, false
store i32 -22, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_5, label LBL_1
LBL_1:
%10 = urem i64 %1, 2
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
%13 = icmp eq i1 %12, false
store i32 0, i32* %sv_1.0.reg2mem
store i32 -22, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i32 %15, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%17 = add nuw nsw i32 %sv_1.0.reload, 1
%18 = icmp eq i32 %15, 1
%19 = icmp ult i32 %17, 10
%or.cond = icmp eq i1 %19, %18
store i32 %17, i32* %sv_1.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_4
LBL_4:
%20 = icmp eq i32 %17, 10
%21 = icmp eq i1 %20, false
%spec.select = select i1 %21, i32 %15, i32 -22
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%22 = icmp eq i32 %sv_0.0.reload, 0
%. = zext i1 %22 to i64
ret i64 %.
uselistorder i32 %17, { 1, 0, 2 }
uselistorder i32 %15, { 1, 2, 0, 3 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32 10, { 1, 0 }
uselistorder i32 -22, { 2, 0, 1 }
uselistorder i1 false, { 2, 0, 3, 1, 4 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder label LBL_5, { 1, 0, 3, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mirror_16832 | mirror | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp slt i32 %0, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = sub nsw i64 0, %1
store i64 %4, i64* %rax.0.in.reg2mem
br label LBL_4
LBL_2:
%5 = trunc i64 %1 to i32
%6 = trunc i64 %arg2 to i32
%7 = icmp sgt i32 %5, %6
store i64 %1, i64* %rax.0.in.reg2mem
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%sext3 = mul i64 %arg2, 4294967296
%8 = ashr exact i64 %sext3, 31
%9 = sub nsw i64 %8, %1
store i64 %9, i64* %rax.0.in.reg2mem
br label LBL_4
LBL_4:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %1, { 3, 0, 1, 2 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | rtsp_cmd_describe_1061 | rtsp_cmd_describe | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = load i32, i32* %1
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%5 = call i64 @FUNC(i64 0, i64 0, i64 0, i64 0, i64 0, i64 0, i64 0, i64* nonnull %sv_3, i64 1024, i64 %arg2)
%6 = bitcast i64* %sv_3 to i8*
%7 = load i8, i8* %6, align 8
%8 = icmp eq i8 %7, 47
%9 = icmp eq i1 %8, false
%10 = ptrtoint i64* %sv_3 to i64
%11 = or i64 %10, 1
%12 = inttoptr i64 %11 to i8*
%sv_4.0 = select i1 %9, i8* %6, i8* %12
%storemerge3 = load i64, i64* @gv_0, align 8
%13 = icmp eq i64 %storemerge3, 0
%14 = icmp eq i1 %13, false
%15 = trunc i64 %2 to i32
store i64 %storemerge3, i64* %storemerge4.reg2mem
br i1 %14, label LBL_1, label LBL_6
LBL_1:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%16 = add i64 %storemerge4.reload, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_2
LBL_2:
%21 = add i64 %storemerge4.reload, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_5, label LBL_3
LBL_3:
%25 = inttoptr i64 %23 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i8*
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_5, label LBL_4
LBL_4:
%31 = add i64 %storemerge4.reload, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i8*
%35 = call i32 @strcmp(i8* %sv_4.0, i8* %34)
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_7, label LBL_5
LBL_5:
%37 = inttoptr i64 %storemerge4.reload to i64*
%storemerge = load i64, i64* %37, align 8
%38 = icmp eq i64 %storemerge, 0
%39 = icmp eq i1 %38, false
store i64 %storemerge, i64* %storemerge4.reg2mem
br i1 %39, label LBL_1, label LBL_6
LBL_6:
%40 = call i64 @FUNC(i64 %3, i64 404)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
store i32 16, i32* %sv_2, align 4
%41 = bitcast i64* %sv_1 to %sockaddr*
%42 = call i32 @getsockname(i32 %15, %sockaddr* nonnull %41, i32* nonnull %sv_2)
%43 = call i64 @FUNC(i64 %storemerge4.reload, i64* nonnull %sv_0, i32 %4)
%44 = trunc i64 %43 to i32
%45 = icmp slt i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_9, label LBL_8
LBL_8:
%47 = call i64 @FUNC(i64 %3, i64 500)
store i64 %47, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%48 = ptrtoint i64* %sv_0 to i64
%49 = zext i32 %4 to i64
%50 = call i64 @FUNC(i64 %3, i64 200)
%51 = add i64 %3, 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %53, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64 %49, i64 %48, i64 0, i64 0)
%55 = load i64, i64* %52, align 8
%56 = and i64 %43, 4294967295
%57 = call i64 @FUNC(i64 %55, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i64 %56, i64 %48, i64 0, i64 0)
%58 = load i64, i64* %52, align 8
%59 = call i64 @FUNC(i64 %58, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 %56, i64 %48, i64 0, i64 0)
%60 = load i64, i64* %sv_0, align 8
%61 = load i64, i64* %52, align 8
%62 = call i64 @FUNC(i64 %61, i64 %60, i32 %44)
store i64 %62, 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 %storemerge4.reload, { 4, 3, 0, 1, 2 }
uselistorder i64* %sv_3, { 0, 2, 1 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %3, { 2, 1, 3, 0 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @url_fprintf, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @rtsp_reply_error, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i1 false, { 1, 4, 2, 3, 0, 5 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | next_pidmap_12666 | next_pidmap | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i32 %1, 1
%3 = add i32 %1, 32
%4 = icmp slt i32 %2, 0
%5 = select i1 %4, i32 %3, i32 %2
%6 = ashr i32 %5, 5
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 8
%9 = add i64 %8, %0
%10 = add i64 %0, 2048
%11 = icmp ult i64 %9, %10
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %11, label LBL_1, label LBL_6
LBL_1:
%12 = urem i32 %2, 32
store i64 %9, i64* %sv_1.03.reg2mem
store i32 %12, i32* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%13 = inttoptr i64 %sv_1.03.reload to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_3
LBL_3:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%21 = load i64, i64* %13, align 8
%22 = call i64 @FUNC(i64 %21, i64 32, i32 %sv_0.02.reload)
%23 = trunc i64 %22 to i32
%24 = icmp sgt i32 %23, 31
br i1 %24, label LBL_5, label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %0, i64 %sv_1.03.reload, i32 %23)
store i64 %25, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%26 = add i64 %sv_1.03.reload, 8
%27 = icmp ult i64 %26, %10
store i64 %26, i64* %sv_1.03.reg2mem
store i32 0, i32* %sv_0.02.reg2mem
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %27, label LBL_2, label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_1.03.reload, { 1, 2, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_6, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | RemoveICCProfileFromResourceBlock_12700 | RemoveICCProfileFromResourceBlock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rbx.04.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i16, align 2
%sv_3 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = icmp ult i64 %1, 16
store i64 %1, i64* %rax.1.reg2mem
br i1 %2, label LBL_8, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
%4 = add i64 %3, %1
%5 = add i64 %4, -16
%6 = bitcast i16* %sv_2 to i64*
%7 = bitcast i32* %sv_0 to i64*
store i64 %3, i64* %rbx.04.reg2mem
br label LBL_6
LBL_2:
%8 = call i64 @FUNC(i64 %rbx.04.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 4)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %rax.1.reg2mem
br i1 %11, label LBL_8, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 0, i64 %rbx.04.reload, i64* nonnull %sv_3)
%13 = call i64 @FUNC(i64 0, i64 %12, i64* nonnull %6)
%14 = call i64 @FUNC(i64 0, i64 %13, i64* nonnull %sv_1)
%15 = call i64 @FUNC(i64 0, i64 %14, i64* nonnull %7)
%16 = load i16, i16* %sv_2, align 2
%17 = icmp eq i16 %16, 1039
%18 = icmp eq i1 %17, false
%19 = load i32, i32* %sv_0, align 4
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%20 = add i32 %19, 12
%21 = zext i32 %20 to i64
%22 = sub i64 %4, %rbx.04.reload
%23 = sub i64 %22, %21
%24 = zext i32 %19 to i64
%25 = add i64 %rbx.04.reload, 12
%26 = add i64 %25, %24
%27 = call i64 @FUNC(i64 %rbx.04.reload, i64 %26, i64 %23)
%28 = load i32, i32* %sv_0, align 4
%29 = add i32 %28, 12
%30 = zext i32 %29 to i64
%31 = sub i64 %1, %30
%32 = call i64 @FUNC(i64 %0, i64 %31)
store i64 %32, i64* %rax.1.reg2mem
br label LBL_8
LBL_5:
%33 = zext i32 %19 to i64
%34 = add i64 %15, %33
%35 = urem i32 %19, 2
%36 = icmp ne i32 %35, 0
%37 = zext i1 %36 to i64
%spec.select = add i64 %34, %37
%38 = icmp ugt i64 %3, %spec.select
store i64 %spec.select, i64* %rbx.04.reg2mem
br i1 %38, label LBL_7, label LBL_6
LBL_6:
%rbx.04.reload = load i64, i64* %rbx.04.reg2mem
%39 = icmp ult i64 %rbx.04.reload, %5
store i64 %5, i64* %rax.1.reg2mem
br i1 %39, label LBL_2, label LBL_8
LBL_7:
%40 = zext i32 %35 to i64
store i64 %40, i64* %rax.1.reg2mem
br label LBL_8
LBL_8:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %rbx.04.reload, { 1, 2, 0, 5, 4, 3 }
uselistorder i32 %35, { 1, 0 }
uselistorder i32 %19, { 0, 3, 1, 2 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %1, { 2, 1, 0, 3 }
uselistorder i64* %rax.1.reg2mem, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 (i64, i64, i64*)* @PushShortPixel, { 1, 0 }
uselistorder i64 (i64, i64, i64*)* @PushLongPixel, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 4, 1, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | netdev_wait_allrefs_10362 | netdev_wait_allrefs | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.lcssa.reg2mem = alloca i64
%sv_0.1.ph4.reg2mem = alloca i64
%sv_1.0.ph5.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 %arg1)
%5 = load i64, i64* @gv_0, align 8
%6 = call i64 @FUNC(i64 %arg1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_10
LBL_1:
%10 = add i64 %arg1, 16
store i64 %5, i64* %sv_1.0.ph5.reg2mem
store i64 %5, i64* %sv_0.1.ph4.reg2mem
br label LBL_2.lr.ph
LBL_2:
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%11 = add i64 %sv_0.12.reload, 100
%12 = load i64, i64* @gv_0, align 8
%13 = call i64 @FUNC(i64 %12, i64 %11)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
store i64 %sv_0.12.reload, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_6, label LBL_3
LBL_3:
%16 = call i64 @FUNC()
%17 = call i64 @FUNC(i64 0, i64 %arg1)
%18 = call i64 @FUNC(i64 0, i64 %10)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i64 @FUNC()
br label LBL_5
LBL_5:
%22 = call i64 @FUNC()
%23 = load i64, i64* @gv_0, align 8
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = call i64 @FUNC(i64 250)
%25 = call i64 @FUNC(i64 %arg1)
%26 = load i64, i64* @gv_0, align 8
%27 = call i64 @FUNC(i64 %26, i64 %35)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = trunc i64 %25 to i32
br i1 %29, label LBL_9, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @gv_1, i64 0, i64 0), i64 %arg1, i32 %30, i64 %3, i64 %2, i64 %1)
%32 = load i64, i64* @gv_0, align 8
%33 = icmp eq i32 %30, 0
%34 = icmp eq i1 %33, false
store i64 %32, i64* %sv_1.0.ph5.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.ph4.reg2mem
store i64 %32, i64* %rax.0.lcssa.reg2mem
br i1 %34, label LBL_2.lr.ph, label LBL_10
LBL_8:
%sv_0.1.ph4.reload = load i64, i64* %sv_0.1.ph4.reg2mem
%sv_1.0.ph5.reload = load i64, i64* %sv_1.0.ph5.reg2mem
%35 = add i64 %sv_1.0.ph5.reload, 1000
store i64 %sv_0.1.ph4.reload, i64* %sv_0.12.reg2mem
br label LBL_2
LBL_9:
%36 = icmp eq i32 %30, 0
%37 = icmp eq i1 %36, false
store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem
store i64 %27, i64* %rax.0.lcssa.reg2mem
br i1 %37, label LBL_2, label LBL_10
LBL_10:
%rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem
ret i64 %rax.0.lcssa.reload
uselistorder i32 %30, { 2, 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %sv_0.12.reg2mem, { 1, 2, 0 }
uselistorder i64* %rax.0.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @time_after, { 1, 0 }
uselistorder i32 0, { 5, 1, 2, 3, 4, 0 }
uselistorder i64 (i64)* @netdev_refcnt_read, { 1, 0 }
uselistorder i64 %arg1, { 2, 3, 0, 1, 4, 5 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_2.lr.ph, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | bitand_6391 | bitand | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = call i64 @FUNC()
%3 = call i64 @FUNC(i64 %arg1, i64 38)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %1, i64* %sv_0.02.reg2mem
store i64 %1, i64* %sv_0.0.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i64 %arg1, i64 %0)
%9 = call i64 @FUNC(i64 1, i64 %sv_0.02.reload, i64 %8)
%10 = call i64 @FUNC(i64 %arg1, i64 38)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %9, i64* %sv_0.02.reg2mem
store i64 %9, i64* %sv_0.0.lcssa.reg2mem
br i1 %13, label LBL_1, label LBL_2
LBL_2:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%14 = call i64 @FUNC()
ret i64 %sv_0.0.lcssa.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64, i64)* @jsP_accept, { 1, 0 }
uselistorder i64 38, { 1, 0 }
uselistorder i64 (i64, i64)* @equality, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | connect_namedsocket_3169 | connect_namedsocket | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i32 @socket(i32 1, i32 1, i32 0)
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32* @__errno_location()
%4 = load i32, i32* %3, align 4
%5 = call i8* @strerror(i32 %4)
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i8* %5)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%8 = bitcast i64* %sv_0 to i8*
%9 = inttoptr i64 %arg1 to i8*
%10 = call i8* @strcpy(i8* nonnull %8, i8* %9)
store i64 1, i64* %sv_1, align 8
%11 = call i32 @strlen(i8* nonnull %8)
%12 = add i32 %11, 2
%13 = bitcast i64* %sv_1 to %sockaddr*
%14 = call i32 @connect(i32 %0, %sockaddr* nonnull %13, i32 %12)
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%18 = call i32 @fwrite(i64* bitcast ([14 x i8]* @gv_2 to i64*), i32 1, i32 13, %_IO_FILE* %17)
%19 = call i32 @close(i32 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%20 = call i32 @unlink(i8* %9)
%21 = zext i32 %0 to i64
store i64 %21, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %0, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
} | 0 |
BinRealVul | dlm_migrate_request_handler_3755 | dlm_migrate_request_handler | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_14
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %0, i64 %9)
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %14, label LBL_2, label LBL_13
LBL_2:
%15 = trunc i64 %10 to i32
%16 = call i64 @FUNC(i64 %0)
%17 = call i64 @FUNC(i64 %0, i64 %0, i32 %8, i32 %15)
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_3
LBL_3:
%19 = inttoptr i64 %17 to i32*
%20 = add i64 %17, 4
%21 = call i64 @FUNC(i64 %20)
%22 = load i32, i32* %19, align 4
%23 = urem i32 %22, 2
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_5, label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %20)
%26 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_1, i64 0, i64 0))
%27 = load i64, i64* @gv_0, align 8
%28 = call i64 @FUNC(i64 %27, i64 %12)
store i32 -22, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_5:
%29 = or i32 %22, 2
store i32 %29, i32* %19, align 4
%30 = call i64 @FUNC(i64 %20)
br label LBL_6
LBL_6:
%31 = add i64 %0, 4
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 %0, i64 %17, i64 %12, i64* nonnull %sv_1, i64 %0, i32 %8)
%34 = trunc i64 %33 to i32
%35 = icmp slt i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_8, label LBL_7
LBL_7:
%37 = load i64, i64* @gv_0, align 8
%38 = call i64 @FUNC(i64 %37, i64 %12)
br label LBL_8
LBL_8:
%39 = call i64 @FUNC(i64 %31)
store i32 %34, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%40 = call i64 @FUNC(i64 %0)
%41 = load i64, i64* %sv_1, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%43 = call i64 @FUNC(i64 %0, i64 %41)
%44 = load i64, i64* %sv_1, align 8
%45 = call i64 @FUNC(i64 %44)
br label LBL_11
LBL_11:
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %18, label LBL_13, label LBL_12
LBL_12:
%46 = call i64 @FUNC(i64 %17)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_13
LBL_13:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%47 = call i64 @FUNC(i64 %0)
%48 = zext i32 %sv_0.1.reload to i64
store i64 %48, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %22, { 1, 0 }
uselistorder i64 %20, { 1, 0, 2 }
uselistorder i64 %17, { 1, 0, 2, 3, 4 }
uselistorder i64 %12, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i64 %0, { 1, 0, 2, 4, 3, 5, 6, 8, 7, 9, 10 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @kmem_cache_free, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock, { 3, 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64)* @spin_lock, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 2, 1, 0 }
} | 0 |
BinRealVul | vbe_update_vgaregs_14277 | vbe_update_vgaregs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_1
LBL_1:
%6 = trunc i64 %1 to i32
%7 = and i32 %6, -14
%8 = or i32 %7, 5
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = add i64 %2, 1024
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = or i32 %12, 3
store i32 %13, i32* %11, align 4
%14 = add i64 %2, 3072
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = ashr i32 %16, 3
%18 = add i64 %2, 1028
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %2, 3076
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = ashr i32 %22, 3
%24 = add nsw i32 %23, -1
%25 = add i64 %2, 1032
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = add i64 %2, 3080
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i32 %29, -1
%31 = add i64 %2, 1036
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = add i64 %2, 1040
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = and i32 %35, -67
%37 = udiv i32 %30, 128
%38 = and i32 %37, 2
%39 = or i32 %36, %38
%40 = udiv i32 %30, 8
%41 = and i32 %40, 64
%42 = or i32 %39, %41
store i32 %42, i32* %34, align 4
%43 = add i64 %2, 1044
%44 = inttoptr i64 %43 to i32*
store i32 255, i32* %44, align 4
%45 = load i32, i32* %34, align 4
%46 = or i32 %45, 16
store i32 %46, i32* %34, align 4
%47 = add i64 %2, 1048
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = or i32 %49, 64
store i32 %50, i32* %48, align 4
%51 = add i64 %2, 3084
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp eq i32 %53, 4
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_3, label LBL_2
LBL_2:
%56 = add i64 %2, 2048
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = and i32 %58, -9
store i32 %59, i32* %57, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%60 = add i64 %2, 2052
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = or i32 %62, 4
store i32 %63, i32* %61, align 4
%64 = add i64 %2, 2056
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = or i32 %66, 2
store i32 %67, i32* %65, align 4
store i32 64, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%68 = add i64 %2, 4
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = and i32 %70, -97
%72 = or i32 %71, %sv_0.0.reload
store i32 %72, i32* %69, align 4
%73 = load i32, i32* %48, align 4
%74 = and i32 %73, -160
store i32 %74, i32* %48, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %48, { 1, 0, 2, 3 }
uselistorder i32* %34, { 1, 0, 2, 3 }
uselistorder i64 %2, { 0, 2, 3, 4, 1, 5, 6, 7, 8, 10, 9, 12, 11, 14, 13, 15, 16 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | signal_init_575 | signal_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = bitcast i64* %sv_0 to %_TYPEDEF_sigset_t*
%1 = call i32 @sigfillset(%_TYPEDEF_sigset_t* nonnull %0)
store i64 4198726, i64* %sv_1, align 8
%2 = bitcast i64* %sv_1 to %sigaction*
store i32 1, i32* %storemerge13.reg2mem
br label LBL_1
LBL_1:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%3 = call i32 @sigaction(i32 %storemerge13.reload, %sigaction* nonnull %2, %sigaction* null)
%4 = add nuw nsw i32 %storemerge13.reload, 1
%exitcond4 = icmp eq i32 %4, 32
store i32 %4, i32* %storemerge13.reg2mem
br i1 %exitcond4, label LBL_2, label LBL_1
LBL_2:
%5 = call i64* @memset(i64* nonnull @gv_0, i32 0, i32 4864)
store i64 ptrtoint (i64* @gv_1 to i64), i64* @gv_2, align 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%6 = mul i64 %indvars.iv.next, 8
%7 = add i64 %6, ptrtoint (i64* @gv_1 to i64)
%8 = mul i64 %indvars.iv.reload, 8
%9 = add i64 %8, ptrtoint (i64* @gv_1 to i64)
%10 = inttoptr i64 %9 to i64*
store i64 %7, i64* %10, align 8
%exitcond = icmp eq i64 %indvars.iv.next, 9
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
store i64 0, i64* @gv_3, align 8
ret i64 8
uselistorder i64 %indvars.iv.next, { 0, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i32 %storemerge13.reload, { 1, 0 }
uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i32 1, { 5, 1, 4, 3, 2, 0 }
} | 0 |
BinRealVul | ehci_mem_readb_14649 | ehci_mem_readb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = mul i64 %arg2, 4
%2 = and i64 %1, 17179869180
%3 = add i64 %2, %0
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
ret i64 %6
} | 1 |
BinRealVul | crypto_nivaead_show_8542 | crypto_nivaead_show | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
%9 = add i64 %6, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = urem i32 %11, 2
%13 = icmp eq i32 %12, 0
%. = select i1 %13, i64 ptrtoint ([3 x i8]* @gv_1 to i64), i64 ptrtoint ([4 x i8]* @gv_2 to i64)
%14 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i64 %., i64 %5, i64 %2, i64 %1)
%15 = add i64 %6, 20
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i64 %18, i64 %5, i64 %2, i64 %1)
%20 = and i64 %3, 4294967295
%21 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_5, i64 0, i64 0), i64 %20, i64 %5, i64 %2, i64 %1)
%22 = add i64 %6, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_6, i64 0, i64 0), i64 %25, i64 %5, i64 %2, i64 %1)
%27 = add i64 %6, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_7, i64 0, i64 0), i64 %29, i64 %5, i64 %2, i64 %1)
ret i64 %30
uselistorder i64 %7, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %6, { 1, 0, 3, 2 }
uselistorder i64 %5, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | send_acknowledge_13134 | send_acknowledge | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%2 = call i64 @FUNC(i64 %1, i64 4)
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = add i64 %2, 1
%5 = inttoptr i64 %4 to i8*
store i8 1, i8* %5, align 1
%6 = add i64 %2, 2
%7 = trunc i64 %arg2 to i8
%8 = mul i8 %7, 2
%9 = inttoptr i64 %6 to i8*
store i8 %8, i8* %9, align 1
%10 = add i64 %2, 3
%11 = inttoptr i64 %10 to i8*
store i8 0, i8* %11, align 1
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = inttoptr i64 %1 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 65535, i64 %16, i32 %14)
%18 = udiv i64 %17, 256
%19 = urem i64 %18, 256
%20 = call i64 @FUNC(i64 %1, i64 %19)
%21 = urem i64 %17, 256
%22 = call i64 @FUNC(i64 %1, i64 %21)
%23 = call i64 @FUNC(i64 %0, i64 %1, i64 0)
%24 = call i64 @FUNC(i64 %1)
%25 = and i64 %23, 4294967295
ret i64 %25
uselistorder i64 %17, { 1, 0 }
uselistorder i64 (i64, i64)* @skb_put_u8, { 1, 0 }
uselistorder i64 256, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | kvm_ioapic_init_9903 | kvm_ioapic_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 24, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %0)
%5 = add i64 %0, 20
%6 = call i64 @FUNC(i64 %5, i64 4198915)
store i64 %0, i64* %arg1, align 8
%7 = call i64 @FUNC(i64 %0)
%8 = add i64 %0, 4
%9 = call i64 @FUNC(i64 %8, i64* nonnull @gv_0)
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
store i64 %3, i64* %11, align 8
%12 = add i64 %3, 8
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i64 @FUNC(i64 %3, i64 0, i32 %16, i64 4096, i64 %8)
%18 = trunc i64 %17 to i32
%19 = call i64 @FUNC(i64 %12)
%20 = icmp slt i32 %18, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_3, label LBL_2
LBL_2:
store i64 0, i64* %arg1, align 8
%22 = call i64 @FUNC(i64 %0)
store i64 %17, i64* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_3:
%23 = call i64 @FUNC(i64 %3)
store i64 %17, i64* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%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 %17, { 1, 0, 2 }
uselistorder i64 %0, { 0, 1, 4, 3, 2, 7, 6, 5, 8 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | fifo_deinit_3561 | fifo_deinit | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 24
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = add i64 %0, 32
%13 = inttoptr i64 %12 to i64*
%14 = call i32 @pthread_mutex_destroy(i64* %13)
%15 = sext i32 %14 to i64
store i64 %15, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | countInkNamesString_6150 | countInkNamesString | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = and i64 %arg2, 4294967295
%2 = icmp eq i32 %0, 0
store i32 0, i32* %sv_0.1.reg2mem
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = add i64 %1, %arg3
store i32 0, i32* %sv_0.0.ph.reg2mem
store i64 %arg3, i64* %sv_1.0.ph.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%4 = icmp ult i64 %sv_1.0.reload, %3
%5 = icmp eq i1 %4, false
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br i1 %5, label LBL_7, label LBL_4
LBL_4:
%6 = inttoptr i64 %sv_1.0.reload to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
%10 = add i64 %sv_1.0.reload, 1
store i64 %10, i64* %sv_1.0.reg2mem
br i1 %9, label LBL_3, label LBL_5
LBL_5:
%11 = mul i32 %sv_0.0.ph.reload, 65536
%sext3 = add i32 %11, 65536
%12 = ashr exact i32 %sext3, 16
%13 = icmp ult i64 %10, %3
store i32 %12, i32* %sv_0.0.ph.reg2mem
store i64 %10, i64* %sv_1.0.ph.reg2mem
br i1 %13, label LBL_2, label LBL_6
LBL_6:
%14 = urem i32 %12, 65536
%15 = zext i32 %14 to i64
store i64 %15, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%16 = ptrtoint i64* %arg1 to i64
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%17 = urem i32 %sv_0.1.reload, 65536
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @gv_1, i64 0, i64 0), i64 %16, i64 %1, i64 %18)
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %16, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %10, { 1, 2, 0 }
uselistorder i32 %sv_0.0.ph.reload, { 1, 0 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | output_frame_14628 | output_frame | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge47.reg2mem = alloca i32
%storemerge69.reg2mem = alloca i32
%storemerge8.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = and i64 %arg2, 4294967295
%5 = call i64 @FUNC(i64 %2, i64 %4)
%6 = call i64 @FUNC(i64 %2, i64 1, i32 %3)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_13
LBL_1:
%9 = call i64 @FUNC(i64 %2, i64 1, i32 %3)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_13
LBL_2:
%12 = trunc i64 %1 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_10, label LBL_3
LBL_3:
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = inttoptr i64 %9 to i64*
%17 = add i64 %2, 40
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i32*
%21 = add i64 %2, 20
%22 = inttoptr i64 %21 to i32*
%23 = add i64 %2, 48
%24 = inttoptr i64 %23 to i64*
%25 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge8.reg2mem
br label LBL_4
LBL_4:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%.reload = load i64, i64* %.reg2mem
%26 = load i64, i64* %15, align 8
%27 = mul i64 %.reload, 4
%28 = add i64 %26, %27
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 1
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_9, label LBL_5
LBL_5:
%33 = load i64, i64* %16, align 8
%34 = load i64, i64* %18, align 8
%35 = mul i64 %.reload, 8
%36 = add i64 %34, %35
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38, i64 %33, i32 %3)
%40 = load i32, i32* %20, align 4
%41 = icmp eq i32 %40, 0
store i32 1, i32* %storemerge69.reg2mem
br i1 %41, label LBL_7, label LBL_6
LBL_6:
%42 = load i32, i32* %22, align 4
%43 = icmp sgt i32 %42, 0
store i32 %42, i32* %storemerge69.reg2mem
br i1 %43, label LBL_7, label LBL_9
LBL_7:
%storemerge69.reload = load i32, i32* %storemerge69.reg2mem
store i32 0, i32* %storemerge47.reg2mem
br label LBL_8
LBL_8:
%storemerge47.reload = load i32, i32* %storemerge47.reg2mem
%44 = load i64, i64* %24, align 8
%45 = add i64 %44, %27
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = call i128 @FUNC(i32 %47)
%49 = add nuw nsw i32 %storemerge47.reload, 1
%exitcond = icmp eq i32 %49, %storemerge69.reload
store i32 %49, i32* %storemerge47.reg2mem
br i1 %exitcond, label LBL_9, label LBL_8
LBL_9:
%50 = add i32 %storemerge8.reload, 1
%51 = sext i32 %50 to i64
%52 = icmp sgt i64 %25, %51
store i64 %51, i64* %.reg2mem
store i32 %50, i32* %storemerge8.reg2mem
br i1 %52, label LBL_4, label LBL_10
LBL_10:
%53 = call i64 @FUNC(i64 %9)
%54 = add i64 %2, 24
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i64 %6, 8
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = load i32, i32* %55, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label LBL_12, label LBL_11
LBL_11:
%61 = add i32 %59, %3
store i32 %61, i32* %55, align 4
br label LBL_12
LBL_12:
%62 = call i64 @FUNC(i64 %2, i64 %6)
store i64 %62, 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* %55, { 1, 0, 2 }
uselistorder i64 %27, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i32 %3, { 0, 2, 1, 3 }
uselistorder i64 %2, { 0, 1, 2, 4, 3, 6, 5, 7, 8, 9 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge69.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i64 (i64, i64, i32)* @ff_get_audio_buffer, { 1, 0 }
uselistorder label LBL_13, { 2, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ass_shaper_skip_characters_10068 | ass_shaper_skip_characters | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%.reg2mem14 = alloca i32
%storemerge8.reg2mem = alloca i32
%.reg2mem12 = alloca i64
%.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 eq i32 %3, 0
store i32 %3, i32* %.reg2mem
store i64 0, i64* %.reg2mem12
store i32 0, i32* %storemerge8.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%.reload13 = load i64, i64* %.reg2mem12
%5 = mul i64 %.reload13, 8
%6 = add i64 %5, %0
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = and i32 %8, -4
%10 = icmp eq i32 %9, 8288
br i1 %10, label LBL_3, label %switch.early.test
LBL_2:
%.reload = load i32, i32* %.reg2mem
%11 = icmp eq i32 %8, 847
%12 = icmp eq i1 %11, false
store i32 %.reload, i32* %.reg2mem14
br i1 %12, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %7, align 4
%13 = add i64 %6, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, 1
store i32 %16, i32* %14, align 4
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem14
br label LBL_4
LBL_4:
%.reload15 = load i32, i32* %.reg2mem14
%17 = add i32 %storemerge8.reload, 1
%18 = zext i32 %.reload15 to i64
%19 = sext i32 %17 to i64
%20 = icmp slt i64 %19, %18
store i32 %.reload15, i32* %.reg2mem
store i64 %19, i64* %.reg2mem12
store i32 %17, i32* %storemerge8.reg2mem
store i64 %18, i64* %.lcssa.reg2mem
br i1 %20, label LBL_1, label LBL_5
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %.reload15, { 1, 0 }
uselistorder i32 %8, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem12, { 2, 0, 1 }
uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem14, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_3, { 13, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | process_arithmetic_command_7986 | process_arithmetic_command | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 %arg3)
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp ult i64 %7, 251
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0))
store i64 %9, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%10 = add i64 %2, 32
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64* nonnull %sv_1)
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 1
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0))
store i64 %16, i64* %rax.0.reg2mem
br label LBL_14
LBL_6:
%17 = load i64, i64* %sv_1, align 8
%18 = trunc i64 %arg4 to i8
%19 = call i64 @FUNC(i64 %3, i64 %2, i64 %7, i8 %18, i64 %17, i64* nonnull %sv_0)
%20 = and i64 %19, 4294967295
store i64 %20, i64* @0, align 8
%21 = mul i64 %20, 8
%22 = add i64 %21, ptrtoint (i64* @gv_5 to i64)
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%trunc = trunc i64 %19 to i32
store i64 %24, i64* %rax.0.reg2mem
switch i32 %trunc, label LBL_14 [
i32 0, label LBL_7
i32 1, label LBL_8
i32 2, label LBL_9
i32 3, label LBL_10
]
LBL_7:
%25 = bitcast i64* %sv_0 to i8*
%26 = call i64 @FUNC(i64 %3, i8* nonnull %25)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_14
LBL_8:
%27 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_6, i64 0, i64 0))
store i64 %27, i64* %rax.0.reg2mem
br label LBL_14
LBL_9:
%28 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_7, i64 0, i64 0))
store i64 %28, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%29 = call i32 @pthread_mutex_lock(i64* %arg1)
%30 = icmp eq i8 %18, 0
br i1 %30, label LBL_12, label LBL_11
LBL_11:
%31 = add i64 %3, 40
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = add i64 %33, 1
store i64 %34, i64* %32, align 8
br label LBL_13
LBL_12:
%35 = add i64 %3, 48
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %37, 1
store i64 %38, i64* %36, align 8
br label LBL_13
LBL_13:
%39 = call i32 @pthread_mutex_unlock(i64* %arg1)
%40 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_8, i64 0, i64 0))
store i64 %40, 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 %19, { 1, 0 }
uselistorder i64 %3, { 5, 6, 7, 4, 3, 2, 8, 1, 0, 9 }
uselistorder i64 %2, { 0, 1, 3, 2 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 7, 2, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64, i8*)* @out_string, { 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 0, 1, 3, 2 }
} | 0 |
BinRealVul | nfs4_xdr_enc_setclientid_8984 | nfs4_xdr_enc_setclientid | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
store i32 1, i32* %sv_0, align 4
%3 = call i64 @FUNC(i64* nonnull %sv_1, i64 %2, i64 %1)
%4 = call i64 @FUNC(i64* nonnull %sv_1, i32* nonnull %sv_0)
%5 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0)
ret i64 %5
} | 0 |
BinRealVul | qcow2_close_14433 | qcow2_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.pre-phi4.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
%.pre = inttoptr i64 %2 to i64*
br i1 %7, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre1 = add i64 %0, 16
%.pre3 = inttoptr i64 %.pre1 to i64*
store i64* %.pre3, i64** %.pre-phi4.reg2mem
br label LBL_3
LBL_2:
%8 = load i64, i64* %.pre, align 8
%9 = call i64 @FUNC(i64 %0, i64 %8)
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12)
%14 = call i64 @FUNC(i64 %0)
store i64* %11, i64** %.pre-phi4.reg2mem
br label LBL_3
LBL_3:
%.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem
%15 = load i64, i64* %.pre, align 8
%16 = call i64 @FUNC(i64 %0, i64 %15)
%17 = load i64, i64* %.pre-phi4.reload, align 8
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = add i64 %0, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 %0)
%24 = add i64 %0, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %0, 40
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = call i64 @FUNC(i64 %0)
%33 = call i64 @FUNC(i64 %0)
ret i64 %33
uselistorder i64 %0, { 6, 5, 8, 7, 9, 10, 12, 11, 3, 2, 4, 1, 0, 13, 14 }
uselistorder i64 (i64, i64)* @qcow2_cache_destroy, { 1, 0 }
uselistorder i64 (i64, i64)* @qcow2_cache_flush, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | cpu_sparc_find_by_name_113 | cpu_sparc_find_by_name | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge8.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i8*
%sv_0.124.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i8*, align 8
%sv_3 = alloca i8*, align 8
%sv_4 = alloca i8*, align 8
%sv_5 = alloca i32, align 4
%sv_6 = alloca i32, align 4
%0 = inttoptr i64 %arg2 to i8*
%1 = call i8* @strdup(i8* %0)
%2 = call i8* @strtok(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
store i32 0, i32* %sv_6, align 4
store i32 0, i32* %sv_5, align 4
store i64 0, i64* %indvars.iv.reg2mem
store i64 0, i64* %sv_0.124.reg2mem
br label LBL_1
LBL_1:
%sv_0.124.reload = load i64, i64* %sv_0.124.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 32
%4 = add i64 %3, ptrtoint ([9 x i8]** @gv_1 to i64)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i8*
%8 = call i32 @strcasecmp(i8* %2, i8* %7)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
%spec.select = select i1 %10, i64 %sv_0.124.reload, i64 %4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 2
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %spec.select, i64* %sv_0.124.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%11 = icmp eq i64 %spec.select, 0
br i1 %11, label LBL_34, label LBL_3
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%13 = inttoptr i64 %spec.select to i64*
%14 = call i64* @memcpy(i64* %arg1, i64* %13, i32 32)
%15 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%16 = icmp eq i8* %15, null
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_33
LBL_4:
%18 = add i64 %12, 8
%19 = inttoptr i64 %18 to i64*
%20 = add i64 %12, 16
%21 = inttoptr i64 %20 to i32*
%22 = add i64 %12, 20
%23 = inttoptr i64 %22 to i32*
%24 = add i64 %12, 24
%25 = inttoptr i64 %24 to i32*
store i8* %15, i8** %storemerge23.reg2mem
br label LBL_5
LBL_5:
%storemerge23.reload = load i8*, i8** %storemerge23.reg2mem
%26 = load i8, i8* %storemerge23.reload, align 1
%27 = icmp eq i8 %26, 43
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = ptrtoint i8* %storemerge23.reload to i64
%30 = add i64 %29, 1
%31 = call i64 @FUNC(i64 %30, i32* nonnull %sv_6)
br label LBL_32
LBL_7:
%32 = icmp eq i8 %26, 45
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = ptrtoint i8* %storemerge23.reload to i64
%35 = add i64 %34, 1
%36 = call i64 @FUNC(i64 %35, i32* nonnull %sv_5)
br label LBL_32
LBL_9:
%37 = call i8* @strchr(i8* nonnull %storemerge23.reload, i32 61)
%38 = icmp eq i8* %37, null
br i1 %38, label LBL_31, label LBL_10
LBL_10:
store i8 0, i8* %37, align 1
%39 = ptrtoint i8* %37 to i64
%40 = add i64 %39, 1
%41 = inttoptr i64 %40 to i8*
%42 = call i32 @strcmp(i8* nonnull %storemerge23.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_15, label LBL_11
LBL_11:
%45 = call i64 @strtoll(i8* %41, i8** nonnull %sv_4, i32 0)
%46 = load i8, i8* %41, align 1
%47 = icmp eq i8 %46, 0
br i1 %47, label LBL_13, label LBL_12
LBL_12:
%48 = load i8*, i8** %sv_4, align 8
%49 = load i8, i8* %48, align 1
%50 = icmp eq i8 %49, 0
br i1 %50, label LBL_14, label LBL_13
LBL_13:
%51 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%52 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %51, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %41)
br label LBL_34
LBL_14:
store i64 %45, i64* %19, align 8
br label LBL_32
LBL_15:
%53 = call i32 @strcmp(i8* nonnull %storemerge23.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_20, label LBL_16
LBL_16:
%56 = call i32 @strtol(i8* %41, i8** nonnull %sv_3, i32 0)
%57 = load i8, i8* %41, align 1
%58 = icmp eq i8 %57, 0
br i1 %58, label LBL_18, label LBL_17
LBL_17:
%59 = load i8*, i8** %sv_3, align 8
%60 = load i8, i8* %59, align 1
%61 = icmp eq i8 %60, 0
br i1 %61, label LBL_19, label LBL_18
LBL_18:
%62 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%63 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %62, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %41)
br label LBL_34
LBL_19:
store i32 %56, i32* %21, align 4
br label LBL_32
LBL_20:
%64 = call i32 @strcmp(i8* nonnull %storemerge23.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_25, label LBL_21
LBL_21:
%67 = call i32 @strtol(i8* %41, i8** nonnull %sv_2, i32 0)
%68 = load i8, i8* %41, align 1
%69 = icmp eq i8 %68, 0
br i1 %69, label LBL_23, label LBL_22
LBL_22:
%70 = load i8*, i8** %sv_2, align 8
%71 = load i8, i8* %70, align 1
%72 = icmp eq i8 %71, 0
br i1 %72, label LBL_24, label LBL_23
LBL_23:
%73 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%74 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %73, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %41)
br label LBL_34
LBL_24:
store i32 %67, i32* %23, align 4
br label LBL_32
LBL_25:
%75 = call i32 @strcmp(i8* nonnull %storemerge23.reload, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0))
%76 = icmp eq i32 %75, 0
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_30, label LBL_26
LBL_26:
%78 = call i32 @strtol(i8* %41, i8** nonnull %sv_1, i32 0)
%79 = load i8, i8* %41, align 1
%80 = icmp eq i8 %79, 0
br i1 %80, label LBL_28, label LBL_27
LBL_27:
%81 = load i8*, i8** %sv_1, align 8
%82 = load i8, i8* %81, align 1
%83 = icmp eq i8 %82, 0
%84 = icmp ult i32 %78, 33
%or.cond = icmp eq i1 %84, %83
%85 = icmp eq i32 %78, 0
%86 = icmp eq i1 %85, false
%or.cond12 = icmp eq i1 %86, %or.cond
br i1 %or.cond12, label LBL_29, label LBL_28
LBL_28:
%87 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%88 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %87, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %41)
br label LBL_34
LBL_29:
store i32 %78, i32* %25, align 4
br label LBL_32
LBL_30:
%89 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%90 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %89, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_8, i64 0, i64 0), i8* nonnull %storemerge23.reload)
br label LBL_34
LBL_31:
%91 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%92 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %91, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_9, i64 0, i64 0), i8* nonnull %storemerge23.reload)
br label LBL_34
LBL_32:
%93 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%94 = icmp eq i8* %93, null
%95 = icmp eq i1 %94, false
store i8* %93, i8** %storemerge23.reg2mem
br i1 %95, label LBL_5, label LBL_33
LBL_33:
%96 = add i64 %12, 28
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = load i32, i32* %sv_6, align 4
%100 = or i32 %99, %98
store i32 %100, i32* %97, align 4
%101 = load i32, i32* %sv_5, align 4
%102 = sub i32 0, %101
%103 = sub i32 %102, 1
%104 = and i32 %100, %103
store i32 %104, i32* %97, align 4
%105 = bitcast i8* %1 to i64*
call void @free(i64* %105)
store i64 0, i64* %storemerge8.reg2mem
br label LBL_35
LBL_34:
%106 = bitcast i8* %1 to i64*
call void @free(i64* %106)
store i64 4294967295, i64* %storemerge8.reg2mem
br label LBL_35
LBL_35:
%storemerge8.reload = load i64, i64* %storemerge8.reg2mem
ret i64 %storemerge8.reload
uselistorder i32 %78, { 1, 0, 2 }
uselistorder i8* %41, { 0, 11, 10, 1, 9, 8, 2, 7, 6, 3, 5, 4 }
uselistorder i8* %37, { 1, 0, 2 }
uselistorder i8* %storemerge23.reload, { 9, 8, 0, 1, 2, 3, 4, 5, 6, 7 }
uselistorder i64 %12, { 0, 4, 3, 2, 1 }
uselistorder i64 %spec.select, { 2, 1, 0 }
uselistorder i32* %sv_6, { 1, 0, 2 }
uselistorder i32* %sv_5, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.124.reg2mem, { 1, 0, 2 }
uselistorder i8** %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge8.reg2mem, { 0, 2, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i32 (i8*, i8**, i32)* @strtol, { 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
uselistorder i64 (i64, i32*)* @add_flagname_to_bitmaps, { 1, 0 }
uselistorder i8* null, { 2, 3, 1, 0, 4 }
uselistorder i8* (i8*, i8*)* @strtok, { 1, 0, 2 }
uselistorder label LBL_34, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | enum_dir_11365 | enum_dir | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i32*, align 8
%sv_6 = alloca i64, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i32 %2, i32* %sv_1.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = load i64, i64* @gv_0, align 8
%6 = bitcast i32** %sv_5 to i64*
%7 = call i64 @FUNC(i64 %5, i64* nonnull %sv_4, i64* nonnull %6)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%9 = load i64, i64* @gv_0, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = icmp eq i32 %sv_1.0.reload, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = zext i32 %sv_1.0.reload to i64
%13 = call i64 @FUNC(i64 %12)
%14 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%15 = inttoptr i64 %13 to i8*
%16 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i8* %15)
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%sext = mul i64 %arg1, 4294967296
%17 = ashr exact i64 %sext, 32
%18 = load i32*, i32** %sv_5, align 8
%19 = ptrtoint i32* %18 to i64
%20 = load i64, i64* @gv_0, align 8
%21 = and i64 %17, 4294967295
%22 = call i64 @FUNC(i64 %20, i64 %19, i64* nonnull %sv_4, i64 %21)
%23 = load i32*, i32** %sv_5, align 8
%24 = load i32, i32* %23, align 4
%25 = ptrtoint i32* %23 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = icmp eq i32 %24, 1
%28 = icmp eq i1 %27, false
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_14, label LBL_5
LBL_5:
%29 = load i64, i64* @gv_0, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
store i32 %31, i32* %sv_1.1.reg2mem
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = load i64, i64* @gv_0, align 8
%35 = call i64 @FUNC(i64 %34, i64* nonnull %sv_3, i64 256)
%36 = trunc i64 %35 to i32
store i32 %36, i32* %sv_1.1.reg2mem
br label LBL_7
LBL_7:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%37 = load i64, i64* @gv_0, align 8
%38 = call i64 @FUNC(i64 %37)
%39 = icmp slt i32 %sv_1.1.reload, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_9, label LBL_8
LBL_8:
%41 = zext i32 %sv_1.1.reload to i64
%42 = call i64 @FUNC(i64 %41)
%43 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%44 = inttoptr i64 %42 to i8*
%45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %43, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i8* %44)
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_9:
%46 = icmp eq i32 %sv_1.1.reload, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_10, label LBL_12
LBL_10:
%48 = icmp slt i32 %sv_1.1.reload, 0
%49 = zext i1 %48 to i32
%50 = add i32 %sv_1.1.reload, %49
%51 = ashr i32 %50, 1
%52 = icmp eq i32 %51, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %52, label LBL_14, label LBL_11
LBL_11:
%53 = ptrtoint i64* %sv_6 to i64
%54 = zext i32 %51 to i64
%55 = bitcast i64* %sv_4 to i8*
%56 = bitcast i64* %sv_2 to i8*
%57 = ptrtoint i64* %sv_3 to i64
%58 = ptrtoint i64* %sv_2 to i64
%59 = add nsw i64 %17, 1
%60 = add i64 %53, -272
%61 = inttoptr i64 %60 to i8*
%62 = and i64 %59, 4294967295
store i32 0, i32* %storemerge4.reg2mem
br label LBL_13
LBL_12:
%63 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%64 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 260)
call void @FUNC(i8* nonnull %56, i8* nonnull %55, i64 32)
%65 = mul i32 %storemerge4.reload, 2
%66 = sext i32 %65 to i64
%67 = add i64 %66, %57
%68 = sext i32 %sv_0.03.reload to i64
%69 = add i64 %68, %58
%70 = inttoptr i64 %67 to i16*
%71 = load i16, i16* %70, align 2
%72 = inttoptr i64 %69 to i16*
store i16 %71, i16* %72, align 2
%73 = add i32 %sv_0.03.reload, 2
call void @FUNC(i8* %61, i8* nonnull %56, i64 32)
%74 = call i64 @FUNC(i64 %62)
%75 = add i32 %storemerge4.reload, 1
%76 = sext i32 %75 to i64
%77 = icmp slt i64 %76, %54
store i32 %75, i32* %storemerge4.reg2mem
store i32 %73, i32* %sv_0.03.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %77, label LBL_13, label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %51, { 1, 0 }
uselistorder i32 %sv_1.1.reload, { 4, 3, 0, 1, 2 }
uselistorder i32** %sv_5, { 1, 0, 2 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i64* %sv_2, { 1, 2, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.03.reg2mem, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 6, 3, 5 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 3 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 1, 0 }
uselistorder i64 (i64)* @sc_strerror, { 1, 0 }
uselistorder i64 (i64)* @sc_unlock, { 1, 0 }
uselistorder i32 0, { 3, 0, 2, 1, 4, 5, 6, 7, 8 }
uselistorder i64 (i64)* @sc_lock, { 1, 0 }
uselistorder label LBL_14, { 0, 3, 1, 4, 2, 5 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | fifo_realloc_14592 | fifo_realloc | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i64 %0, 24
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = sub i64 %4, %0
%6 = trunc i64 %5 to i32
%7 = and i64 %5, 4294967295
%8 = icmp slt i32 %6, %1
store i64 %7, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %arg2, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = call i64 @FUNC(i64 %0, i64 %9)
store i64 %10, i64* %arg1, align 8
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp ult i64 %16, %13
%18 = icmp eq i1 %17, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = sub i64 %4, %13
%sext5 = mul i64 %5, 4294967296
%20 = ashr exact i64 %sext5, 32
%21 = sub nsw i64 %9, %20
%22 = add i64 %13, %21
%23 = inttoptr i64 %22 to i64*
%24 = inttoptr i64 %13 to i64*
%25 = trunc i64 %19 to i32
%26 = call i64* @memmove(i64* %23, i64* %24, i32 %25)
%27 = load i64, i64* %12, align 8
%28 = sub i64 %sext, %sext5
%29 = ashr exact i64 %28, 32
%30 = add i64 %27, %29
store i64 %30, i64* %12, align 8
store i64 %22, i64* %rdi.0.reg2mem
br label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%31 = add i64 %rdi.0.reload, %9
store i64 %31, i64* %3, 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 %sext5, { 1, 0 }
uselistorder i64 %13, { 1, 0, 2, 3 }
uselistorder i64* %12, { 1, 0, 2 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | hmac_final_8224 | hmac_final | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %1)
%5 = call i64 @FUNC(i64 %1)
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = urem i32 %8, 2
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = call i64 @FUNC(i64 %5, i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_1
LBL_1:
%16 = call i64 @FUNC(i64 %5, i64 %4)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 %16, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = trunc i64 %2 to i32
%21 = call i64 @FUNC(i64 %5, i64 %0, i32 %20, i64 %0)
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
} | 0 |
BinRealVul | get_delayed_pic_15825 | get_delayed_pic | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%storemerge26.reg2mem = alloca i32
%.reg2mem13 = alloca i64
%.reg2mem11 = alloca i64*
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_1.17.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i32
%storemerge39.reg2mem = alloca i32
%.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 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %.reg2mem
store i32 1, i32* %storemerge39.reg2mem
store i32 0, i32* %sv_0.18.reg2mem
store i64 %0, i64* %sv_1.17.reg2mem
store i64 %0, i64* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%sv_1.17.reload = load i64, i64* %sv_1.17.reg2mem
%sv_0.18.reload = load i32, i32* %sv_0.18.reg2mem
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = inttoptr i64 %.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = inttoptr i64 %sv_1.17.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp ult i32 %9, %13
%spec.select = select i1 %14, i64 %.reload, i64 %sv_1.17.reload
%spec.select4 = select i1 %14, i32 %storemerge39.reload, i32 %sv_0.18.reload
%15 = add i32 %storemerge39.reload, 1
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = add i64 %17, %0
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %.reg2mem
store i32 %15, i32* %storemerge39.reg2mem
store i32 %spec.select4, i32* %sv_0.18.reg2mem
store i64 %spec.select, i64* %sv_1.17.reg2mem
store i64 %spec.select, i64* %sv_1.1.lcssa.reg2mem
store i32 %spec.select4, i32* %sv_0.1.lcssa.reg2mem
br i1 %22, label LBL_1, label LBL_2
LBL_2:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%23 = sext i32 %sv_0.1.lcssa.reload to i64
%24 = mul i64 %23, 8
%25 = add i64 %24, %0
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64* %26, i64** %.reg2mem11
store i64 %24, i64* %.reg2mem13
store i32 %sv_0.1.lcssa.reload, i32* %storemerge26.reg2mem
br i1 %29, label LBL_3, label LBL_4
LBL_3:
%storemerge26.reload = load i32, i32* %storemerge26.reg2mem
%.reload14 = load i64, i64* %.reg2mem13
%.reload12 = load i64*, i64** %.reg2mem11
%30 = add i64 %1, %.reload14
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
store i64 %32, i64* %.reload12, align 8
%33 = add i32 %storemerge26.reload, 1
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 8
%36 = add i64 %35, %0
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
store i64* %37, i64** %.reg2mem11
store i64 %35, i64* %.reg2mem13
store i32 %33, i32* %storemerge26.reg2mem
br i1 %40, label LBL_3, label LBL_4
LBL_4:
%41 = icmp eq i64 %sv_1.1.lcssa.reload, 0
br i1 %41, label LBL_6, label LBL_5
LBL_5:
%42 = ptrtoint i64* %arg2 to i64
%43 = add i64 %sv_1.1.lcssa.reload, 8
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = xor i32 %45, 1
store i32 %46, i32* %44, align 4
store i32 1, i32* %arg3, align 4
%47 = inttoptr i64 %sv_1.1.lcssa.reload to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %42, i64 %48)
%50 = trunc i64 %49 to i32
%51 = icmp slt i32 %50, 0
%52 = icmp eq i1 %51, false
%53 = and i64 %49, 4294967295
%spec.select5 = select i1 %52, i64 0, i64 %53
ret i64 %spec.select5
LBL_6:
ret i64 0
uselistorder i64 %sv_1.1.lcssa.reload, { 0, 2, 1 }
uselistorder i32 %storemerge39.reload, { 1, 0 }
uselistorder i64 %0, { 2, 3, 4, 0, 1, 5 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge39.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.17.reg2mem, { 2, 0, 1 }
uselistorder i64** %.reg2mem11, { 2, 0, 1 }
uselistorder i64* %.reg2mem13, { 2, 0, 1 }
uselistorder i32* %storemerge26.reg2mem, { 2, 0, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i1 false, { 3, 4, 1, 5, 0, 2 }
uselistorder i64 8, { 4, 0, 1, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | build_l4proto_sctp_11560 | build_l4proto_sctp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 1, i64 %0, i64 5, i64 0)
%3 = call i64 @FUNC(i64 %1, i64 2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %1, i64 2, i64 %0, i64 6)
%7 = call i64 @FUNC(i64 %1, i64 3, i64 %0, i64 7)
%8 = call i64 @FUNC(i64 %1, i64 4, i64 %0, i64 8)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 1, 0, 3, 4 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64 (i64, i64, i64, i64)* @ct_build_u32, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | gt64120_pci_mapping_16055 | gt64120_pci_mapping | 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 = trunc i64 %1 to i32
%4 = urem i32 %3, 128
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp ugt i32 %4, %7
store i64 %8, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_1
LBL_1:
%10 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = add i64 %2, 16
%15 = call i64 @FUNC()
%16 = call i64 @FUNC(i64 %15, i64 %14)
%17 = call i64 @FUNC(i64 %14)
br label LBL_3
LBL_3:
%18 = bitcast i64* %rdi to i32*
%19 = mul i32 %3, 2097152
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = load i32, i32* %6, align 4
%23 = load i32, i32* %18, align 8
%24 = urem i32 %23, 128
%25 = sub i32 %22, %24
%26 = mul i32 %25, 2097152
%27 = add i32 %26, 2097152
store i32 %27, i32* %11, align 4
%28 = load i32, i32* %21, align 4
store i32 %28, i32* bitcast (i64* @gv_0 to i32*), align 8
%29 = load i32, i32* %11, align 4
%30 = load i32, i32* %21, align 4
%31 = zext i32 %29 to i64
%32 = zext i32 %30 to i64
%33 = call i64 @FUNC(i64 %32, i64 %31)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i32 2097152, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | dccp_v4_request_recv_sock_11256 | dccp_v4_request_recv_sock | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = icmp eq i64 %arg4, 0
%5 = icmp eq i1 %4, false
store i64 %arg4, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1, i64 %arg3)
%7 = icmp eq i64 %6, 0
store i64 %6, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_9, label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = call i64 @FUNC(i64 %arg1, i64 %arg3, i64 %arg2)
%9 = icmp eq i64 %8, 0
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %9, label LBL_8, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %8, i64 %sv_0.0.reload)
%11 = call i64 @FUNC(i64 %8)
%12 = call i64 @FUNC(i64 %arg3)
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = inttoptr i64 %11 to i32*
store i32 %14, i32* %15, align 4
%16 = add i64 %12, 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 = load i32, i32* %17, align 4
%22 = add i64 %11, 8
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %12, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %11, 16
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
store i64 0, i64* %25, align 8
%29 = call i64 @FUNC(i64 %arg2)
%30 = trunc i64 %29 to i32
%31 = add i64 %11, 24
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = call i64 @FUNC(i64 %arg2)
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %11, 28
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = load i32, i32* @gv_0, align 4
%39 = add i64 %11, 32
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%41 = call i64 @FUNC(i64 %sv_0.0.reload)
%42 = and i64 %41, 4294967295
%43 = call i64 @FUNC(i64 %8, i64 %42)
%44 = call i64 @FUNC(i64 %arg1, i64 %8)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_6, label LBL_5
LBL_5:
%48 = call i64 @FUNC(i64 %8)
br label LBL_9
LBL_6:
%49 = call i64 @FUNC(i64 %8, i64 0)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_10
LBL_7:
%50 = call i64 @FUNC(i64 %arg1)
%51 = call i64 @FUNC(i64 %50, i64 1)
store i64 %arg4, i64* %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%52 = call i64 @FUNC(i64 %sv_0.1.reload)
br label LBL_9
LBL_9:
%53 = call i64 @FUNC(i64 %arg1)
%54 = call i64 @FUNC(i64 %53, i64 2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 0, 1, 2, 4, 3, 6, 5, 7 }
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @NET_INC_STATS_BH, { 1, 0 }
uselistorder i64 (i64)* @sock_net, { 1, 0 }
uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder i64 %arg1, { 3, 4, 1, 2, 0, 5 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | handle_hypercall_989 | handle_hypercall | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = and i64 %2, 4294967295
ret i64 %3
} | 0 |
BinRealVul | config_input_4347 | config_input | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i32* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %11, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i64 %5, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i64*
call void @free(i64* %20)
store i64 0, i64* %18, align 8
%21 = bitcast i64* %rdi to i32*
%22 = load i32, i32* %21, align 8
%23 = add i32 %22, 15
%24 = and i32 %23, -16
%25 = load i32, i32* %6, align 4
%26 = add i32 %25, 1
%27 = mul i32 %26, %24
%28 = add i32 %27, 64
%29 = call i64* @calloc(i32 1, i32 %28)
%30 = ptrtoint i64* %29 to i64
store i64 %30, i64* %18, align 8
%31 = icmp eq i64* %29, null
%32 = icmp eq i1 %31, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %32, label LBL_1, label LBL_4
LBL_1:
%33 = load i32, i32* %21, align 8
%34 = sub i32 0, %33
%35 = urem i32 %13, 32
%36 = ashr i32 %34, %35
%37 = sub i32 0, %36
%38 = add i64 %5, 16
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %0, 4
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = sub i32 0, %42
%44 = urem i32 %16, 32
%45 = ashr i32 %43, %44
%46 = sub i32 0, %45
%47 = add i64 %5, 20
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
%49 = load i32, i32* %6, align 4
%50 = ashr i32 %49, %35
%51 = ashr i32 %49, %44
%52 = add i32 %51, %50
%53 = icmp slt i32 %52, 0
%54 = zext i1 %53 to i32
%55 = add i32 %52, %54
%56 = ashr i32 %55, 1
%57 = add nsw i32 %56, 1
%58 = and i32 %57, -2
%59 = icmp slt i32 %58, 4
store i32 4, i32* %storemerge3.reg2mem
br i1 %59, label LBL_3, label LBL_2
LBL_2:
%60 = add i32 %58, -32
%61 = sub i32 31, %58
%62 = and i32 %61, %57
%63 = icmp slt i32 %62, 0
%64 = icmp eq i32 %60, 0
%65 = icmp slt i32 %60, 0
%66 = icmp eq i1 %65, %63
%67 = icmp eq i1 %64, false
%68 = icmp eq i1 %66, %67
%phitmp = select i1 %68, i32 32, i32 %58
store i32 %phitmp, i32* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%69 = add i64 %5, 24
%70 = inttoptr i64 %69 to i32*
store i32 %storemerge3.reload, i32* %70, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %60, { 1, 0 }
uselistorder i32 %58, { 2, 1, 0, 3 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %35, { 1, 0 }
uselistorder i64 %5, { 0, 1, 2, 4, 3 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 32, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | assert_avoptions_168 | assert_avoptions | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64* nonnull @gv_0, i64 0, i64 0)
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = inttoptr i64 %4 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 1)
unreachable
LBL_2:
ret i64 0
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | conf__attempt_resolve_9771 | conf__attempt_resolve | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca %addrinfo*, align 8
%sv_1 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 48)
store %addrinfo* null, %addrinfo** %sv_0, align 8
%1 = inttoptr i64 %arg1 to i8*
%2 = bitcast i64* %sv_1 to %addrinfo*
%3 = call i32 @getaddrinfo(i8* %1, i8* null, %addrinfo* nonnull %2, %addrinfo** nonnull %sv_0)
%4 = load %addrinfo*, %addrinfo** %sv_0, align 8
%5 = icmp eq %addrinfo* %4, null
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @freeaddrinfo(%addrinfo* nonnull %4)
br label LBL_2
LBL_2:
%6 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_8, label LBL_3
LBL_3:
%7 = icmp eq i32 %3, -11
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_7, label LBL_4
LBL_4:
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 2
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%13 = zext i32 %arg3 to i64
%14 = call i64 @FUNC(i64 0, i64 %13, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %arg2, i64 %arg1)
store i64 1, i64* %storemerge.reg2mem
br label LBL_8
LBL_6:
%15 = call i32* @__errno_location()
%16 = load i32, i32* %15, align 4
%17 = call i8* @strerror(i32 %16)
%18 = ptrtoint i8* %17 to i64
%19 = zext i32 %arg3 to i64
%20 = call i64 @FUNC(i64 0, i64 %19, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %arg4, i64 %arg2, i64 %18)
store i64 1, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%21 = call i8* @gai_strerror(i32 %3)
%22 = ptrtoint i8* %21 to i64
%23 = zext i32 %arg3 to i64
%24 = call i64 @FUNC(i64 0, i64 %23, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %arg4, i64 %arg2, i64 %22)
store i64 1, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %3, { 2, 1, 0 }
uselistorder %addrinfo** %sv_0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @log__printf, { 2, 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg4, { 2, 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0 }
uselistorder i64 %arg2, { 2, 1, 0 }
uselistorder label LBL_8, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | IsPICT_9986 | IsPICT | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 12
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = call i32 @memcmp(i64* %arg1, i64* bitcast ([5 x i8]* @gv_0 to i64*), i32 4)
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_4
LBL_2:
%4 = icmp ult i64 %arg2, 528
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_3
LBL_3:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 522
%7 = inttoptr i64 %6 to i64*
%8 = call i32 @memcmp(i64* %7, i64* nonnull @gv_1, i32 6)
%9 = icmp eq i32 %8, 0
%. = zext i1 %9 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | idct4row_2032 | idct4row | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = 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 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i32 %3, 1
%14 = add i32 %13, %9
%15 = sub i32 %3, %9
%16 = add i32 %15, 1
%17 = add i32 %12, %6
%18 = sub i32 %6, %12
%19 = add i32 %17, %14
%20 = ashr i32 %19, 1
%21 = bitcast i64* %arg1 to i32*
store i32 %20, i32* %21, align 4
%22 = add i32 %16, %18
%23 = ashr i32 %22, 1
store i32 %23, i32* %5, align 4
%24 = sub i32 %16, %18
%25 = ashr i32 %24, 1
store i32 %25, i32* %8, align 4
%26 = sub i32 %14, %17
%27 = ashr i32 %26, 1
store i32 %27, i32* %11, align 4
ret i64 %10
uselistorder i32 %18, { 1, 0 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32 %14, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %9, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
} | 0 |
BinRealVul | net_read_exact_10487 | net_read_exact | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.ph8.reg2mem = alloca i32
%sv_1.0.ph9.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = trunc i64 %arg3 to i32
%1 = icmp sgt i32 %0, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_8
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %arg1 to i32
store i64 %2, i64* %sv_1.0.ph9.reg2mem
store i32 0, i32* %sv_0.0.ph8.reg2mem
br label LBL_7
LBL_2:
%.reload = load i32, i32* %.reg2mem
%4 = icmp eq i32 %.reload, -1
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %5, label LBL_8, label LBL_3
LBL_3:
%6 = call i32* @__errno_location()
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 11
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 4
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %12, label LBL_8, label LBL_5
LBL_5:
%13 = call i32 @usleep(i32 100)
%14 = call i32 @recv(i32 %3, i64* %25, i32 %24, i32 0)
%15 = icmp eq i32 %14, 0
%16 = icmp slt i32 %14, 0
%17 = icmp eq i1 %16, false
%18 = icmp eq i1 %15, false
%19 = icmp eq i1 %17, %18
store i32 %14, i32* %.reg2mem
store i32 %14, i32* %.lcssa.reg2mem
br i1 %19, label LBL_6, label LBL_2
LBL_6:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%20 = sext i32 %.lcssa.reload to i64
%21 = add i64 %sv_1.0.ph9.reload, %20
%22 = add i32 %.lcssa.reload, %sv_0.0.ph8.reload
%23 = icmp slt i32 %22, %0
store i64 %21, i64* %sv_1.0.ph9.reg2mem
store i32 %22, i32* %sv_0.0.ph8.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_7, label LBL_8
LBL_7:
%sv_0.0.ph8.reload = load i32, i32* %sv_0.0.ph8.reg2mem
%sv_1.0.ph9.reload = load i64, i64* %sv_1.0.ph9.reg2mem
%24 = sub i32 %0, %sv_0.0.ph8.reload
%25 = inttoptr i64 %sv_1.0.ph9.reload to i64*
%26 = call i32 @recv(i32 %3, i64* %25, i32 %24, i32 0)
%27 = icmp eq i32 %26, 0
%28 = icmp slt i32 %26, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %27, false
%31 = icmp eq i1 %29, %30
store i32 %26, i32* %.reg2mem
store i32 %26, i32* %.lcssa.reg2mem
br i1 %31, label LBL_6, label LBL_2
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %0, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 1, 2, 0 }
uselistorder i32* %.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | mountpoint_last_5481 | mountpoint_last | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
store i32 %3, i32* %.reg2mem
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 4294967286, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_1.LBL_3_crit_edge, label LBL_17
LBL_2:
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%9 = and i32 %.reload, -3
store i32 %9, i32* %2, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = zext i1 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_4
LBL_4:
%19 = load i32, i32* %11, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %0, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 %21, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_17, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %0)
store i64 %25, i64* %sv_1.1.reg2mem
br label LBL_12
LBL_6:
%26 = call i64 @FUNC(i64 %15)
%27 = add i64 %0, 24
%28 = call i64 @FUNC(i64 %0, i64 %27)
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %28, i64* %sv_1.0.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
br i1 %30, label LBL_11, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64 %0, i64 %27)
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = call i64 @FUNC(i64 %0)
store i64 4294967284, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_9:
%35 = load i32, i32* %2, align 4
%36 = call i64 @FUNC(i64 %0, i64 %31, i32 %35)
%37 = call i64 @FUNC(i64 %36)
%38 = call i64 @FUNC(i64 %36)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
store i64 %36, i64* %sv_1.0.reg2mem
store i64 %36, i64* %rdi.0.reg2mem
br i1 %40, label LBL_11, label LBL_10
LBL_10:
%41 = call i64 @FUNC(i64 %36)
store i64 %37, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_11:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%42 = call i64 @FUNC(i64 %rdi.0.reload)
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br label LBL_12
LBL_12:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%43 = inttoptr i64 %sv_1.1.reload to i64*
%44 = load i64, i64* %43, align 8
%45 = icmp eq i64 %44, 0
br i1 %45, label LBL_14, label LBL_13
LBL_13:
%46 = call i64 @FUNC(i64 %sv_1.1.reload)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_15, label LBL_14
LBL_14:
%49 = call i64 @FUNC(i64 %sv_1.1.reload)
store i64 4294967283, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_15:
%50 = ptrtoint i64* %arg2 to i64
store i64 %sv_1.1.reload, i64* %arg2, align 8
%51 = add i64 %0, 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %50, 8
%55 = inttoptr i64 %54 to i64*
store i64 %53, i64* %55, align 8
%56 = load i32, i32* %2, align 4
%57 = and i32 %56, 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 %sv_1.1.reload, i64 %58)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %61, label LBL_16, label LBL_18
LBL_16:
%62 = load i64, i64* %55, align 8
%63 = call i64 @FUNC(i64 %62)
%64 = call i64 @FUNC(i64 %50)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%65 = call i64 @FUNC(i64 %0)
%66 = and i64 %sv_0.0.reload, 4294967295
store i64 %66, i64* %storemerge.reg2mem
br label LBL_18
LBL_18:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_1.1.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %36, { 2, 0, 1, 3, 4 }
uselistorder i32* %2, { 1, 2, 3, 0, 4 }
uselistorder i64 %0, { 8, 7, 5, 4, 6, 0, 9, 10, 2, 3, 11, 1, 12 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 2, 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 2, 3, 4, 5, 1, 0 }
} | 0 |
BinRealVul | avcodec_align_dimensions_4557 | avcodec_align_dimensions | define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%.reg2mem23 = alloca i32
%sv_1.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
store i64 %5, i64* @0, align 8
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_1.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
store i32 16, i32* %sv_0.2.reg2mem
switch i32 %4, label LBL_8 [
i32 0, label LBL_9
i32 1, label LBL_9
i32 2, label LBL_9
i32 3, label LBL_9
i32 4, label LBL_9
i32 5, label LBL_9
i32 6, label LBL_9
i32 7, label LBL_9
i32 8, label LBL_9
i32 9, label LBL_9
i32 10, label LBL_9
i32 11, label LBL_9
i32 12, label LBL_3
i32 13, label LBL_3
i32 14, label LBL_4
i32 15, label LBL_0.LBL_5_crit_edge
i32 16, label LBL_0.LBL_6_crit_edge
i32 17, label LBL_7
]
LBL_1:
%.pre = ptrtoint i32* %arg1 to i64
%.pre11 = add i64 %.pre, 4
%.pre13 = inttoptr i64 %.pre11 to i32*
%.pre21 = load i32, i32* %.pre13, align 4
store i32 %.pre21, i32* %.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_2:
%.pre15 = ptrtoint i32* %arg1 to i64
%.pre17 = add i64 %.pre15, 4
%.pre19 = inttoptr i64 %.pre17 to i32*
%.pre22 = load i32, i32* %.pre19, align 4
store i32 %.pre22, i32* %.reg2mem23
store i32 1, i32* %sv_1.1.reg2mem
br label LBL_6
LBL_3:
store i32 32, i32* %sv_1.2.reg2mem
store i32 8, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_4:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
%spec.select = select i1 %11, i32 1, i32 64
store i32 %9, i32* %.reg2mem
store i32 %spec.select, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%12 = icmp eq i32 %.reload, 1
%13 = icmp eq i1 %12, false
%spec.select4 = select i1 %13, i32 %sv_1.0.reload, i32 4
store i32 %.reload, i32* %.reg2mem23
store i32 %spec.select4, i32* %sv_1.1.reg2mem
br label LBL_6
LBL_6:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%.reload24 = load i32, i32* %.reg2mem23
%14 = icmp eq i32 %.reload24, 2
%15 = icmp eq i1 %14, false
%spec.select6 = select i1 %15, i32 %sv_1.1.reload, i32 4
store i32 %spec.select6, i32* %sv_1.2.reg2mem
store i32 %spec.select6, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_7:
%16 = ptrtoint i32* %arg1 to i64
%17 = add i64 %16, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp ne i32 %19, 3
%21 = icmp eq i32 %19, 4
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %20, %22
%spec.select9 = select i1 %or.cond, i32 1, i32 4
store i32 %spec.select9, i32* %sv_1.2.reg2mem
store i32 %spec.select9, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_8:
store i32 1, i32* %sv_1.2.reg2mem
store i32 1, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_9:
%23 = trunc i64 %2 to i32
%24 = trunc i64 %3 to i32
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%25 = add i32 %23, -1
%26 = add i32 %25, %sv_1.2.reload
%27 = sub i32 0, %sv_1.2.reload
%28 = and i32 %26, %27
store i32 %28, i32* %arg2, align 4
%29 = add i32 %24, -1
%30 = add i32 %29, %sv_0.2.reload
%31 = sub i32 0, %sv_0.2.reload
%32 = and i32 %30, %31
%33 = bitcast i64* %arg3 to i32*
store i32 %32, i32* %33, align 4
%34 = ptrtoint i32* %arg1 to i64
%35 = add i64 %34, 4
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
%39 = icmp eq i32 %37, 5
%40 = icmp eq i1 %39, false
store i64 %38, i64* %rax.0.reg2mem
br i1 %40, label LBL_11, label LBL_10
LBL_10:
%41 = ptrtoint i64* %arg3 to i64
%42 = add i32 %24, 2
store i32 %42, i32* %33, align 4
store i64 %41, 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 %24, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 16, 1, 2, 15, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 16, 1, 2, 15, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i1 false, { 4, 0, 1, 2, 3 }
uselistorder i64 4, { 4, 2, 3, 0, 1 }
uselistorder i32 2, { 1, 0, 2 }
uselistorder i32 16, { 24, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i32* %arg1, { 4, 3, 2, 0, 1 }
uselistorder label LBL_9, { 15, 0, 1, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | findoption_len_9017 | findoption_len | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%.reg2mem52 = alloca i8*
%storemerge415.reg2mem = alloca i32
%.reg2mem50 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%.reg2mem48 = alloca i8*
%sv_0.018.reg2mem = alloca i32
%.reg2mem46 = alloca i8*
%sv_0.0.ph.in.reg2mem = alloca i32*
%storemerge513.ph.reg2mem = alloca i1
%.reg2mem44 = alloca i64
%storemerge822.reg2mem = alloca i32
%.reg2mem42 = alloca i8*
%.in.reg2mem = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%sv_1 = alloca i8*, align 8
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_9, label LBL_1
LBL_1:
%3 = load i64, i64* inttoptr (i64 add (i64 ptrtoint ([6 x i8*]* @gv_1 to i64), i64 16) to i64*), align 16
%4 = inttoptr i64 %3 to i8*
store i8* %4, i8** %sv_1, align 8
%5 = icmp eq i64 %3, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_9
LBL_2:
%7 = load i64, i64* bitcast ([6 x i8*]* @gv_1 to i64*), align 16
store i64 %3, i64* %.reg2mem
store i64 %7, i64* %.in.reg2mem
store i8* %4, i8** %.reg2mem42
store i32 1, i32* %storemerge822.reg2mem
br label LBL_3
LBL_3:
%storemerge822.reload = load i32, i32* %storemerge822.reg2mem
%.reload43 = load i8*, i8** %.reg2mem42
%.in.reload = load i64, i64* %.in.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = inttoptr i64 %.in.reload to i8*
%9 = load i8, i8* %.reload43, align 1
%10 = load i8, i8* %8, align 1
%11 = icmp eq i8 %9, %10
store i64 %.reload, i64* %.reg2mem44
br i1 %11, label LBL_8, label LBL_4
LBL_4:
%12 = icmp eq i8 %9, 116
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_7, label LBL_5
LBL_5:
%14 = add i64 %.reload, 1
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i8 %16, 95
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_7, label LBL_6
LBL_6:
store i32 %storemerge822.reload, i32* @gv_2, align 4
store i64 %.reload, i64* %.reg2mem44
br label LBL_8
LBL_7:
%19 = sext i8 %9 to i64
%20 = mul i64 %19, 4
%21 = add i64 %20, add (i64 ptrtoint (i32** @gv_3 to i64), i64 -384)
%22 = inttoptr i64 %21 to i32*
store i32 %storemerge822.reload, i32* %22, align 4
%23 = load i8*, i8** %sv_1, align 8
%24 = ptrtoint i8* %23 to i64
store i64 %24, i64* %.reg2mem44
br label LBL_8
LBL_8:
%.reload45 = load i64, i64* %.reg2mem44
%25 = mul i32 %storemerge822.reload, 65536
%sext7 = add i32 %25, 65536
%26 = ashr exact i32 %sext7, 16
%27 = sext i32 %26 to i64
%28 = mul i64 %27, 16
%29 = add i64 %28, ptrtoint ([6 x i8*]* @gv_1 to i64)
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 16
%32 = inttoptr i64 %31 to i8*
store i8* %32, i8** %sv_1, align 8
%33 = icmp eq i64 %31, 0
%34 = icmp eq i1 %33, false
store i64 %31, i64* %.reg2mem
store i64 %.reload45, i64* %.in.reg2mem
store i8* %32, i8** %.reg2mem42
store i32 %26, i32* %storemerge822.reg2mem
br i1 %34, label LBL_3, label LBL_9
LBL_9:
%35 = icmp eq i64 %arg2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %35, label LBL_27, label LBL_10
LBL_10:
%36 = bitcast i64* %rdi to i8*
%37 = load i8, i8* %36, align 8
%.off = add i8 %37, -97
%38 = icmp ult i8 %.off, 26
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %38, label LBL_11, label LBL_27
LBL_11:
%39 = icmp ult i64 %arg2, 3
%40 = icmp eq i8 %37, 116
%41 = icmp eq i1 %40, false
%or.cond11 = or i1 %39, %41
br i1 %or.cond11, label LBL_13, label LBL_12
LBL_12:
%42 = add i64 %arg1, 1
%43 = inttoptr i64 %42 to i8*
%44 = load i8, i8* %43, align 1
%45 = icmp eq i8 %44, 95
%46 = icmp eq i1 %45, false
store i1 false, i1* %storemerge513.ph.reg2mem
store i32* @gv_2, i32** %sv_0.0.ph.in.reg2mem
br i1 %46, label LBL_13, label LBL_14
LBL_13:
%47 = zext i8 %37 to i64
%48 = mul i64 %47, 4
%49 = add i64 %48, add (i64 ptrtoint (i32** @gv_3 to i64), i64 -384)
%50 = inttoptr i64 %49 to i32*
store i1 true, i1* %storemerge513.ph.reg2mem
store i32* %50, i32** %sv_0.0.ph.in.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.ph.in.reload = load i32*, i32** %sv_0.0.ph.in.reg2mem
%storemerge513.ph.reload = load i1, i1* %storemerge513.ph.reg2mem
%sv_0.0.ph = load i32, i32* %sv_0.0.ph.in.reload, align 4
%51 = sext i32 %sv_0.0.ph to i64
%52 = mul i64 %51, 16
%53 = add i64 %52, ptrtoint ([6 x i8*]* @gv_1 to i64)
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 16
%56 = inttoptr i64 %55 to i8*
store i8* %56, i8** %sv_1, align 8
%57 = icmp eq i64 %55, 0
%58 = icmp eq i1 %57, false
store i8* %56, i8** %.reg2mem48
store i32 %sv_0.0.ph, i32* %sv_0.0.lcssa.reg2mem
br i1 %58, label LBL_15, label LBL_19
LBL_15:
%59 = inttoptr i64 %arg1 to i8*
%60 = trunc i64 %arg2 to i32
store i8* %56, i8** %.reg2mem46
store i32 %sv_0.0.ph, i32* %sv_0.018.reg2mem
br label LBL_16
LBL_16:
%sv_0.018.reload = load i32, i32* %sv_0.018.reg2mem
%.reload47 = load i8*, i8** %.reg2mem46
%61 = call i32 @strncmp(i8* %59, i8* %.reload47, i32 %60)
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_18, label LBL_17
LBL_17:
%64 = ptrtoint i8* %.reload47 to i64
%65 = add i64 %64, %arg2
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = icmp eq i8 %67, 0
store i8* %.reload47, i8** %.reg2mem48
store i32 %sv_0.018.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %68, label LBL_19, label LBL_18
LBL_18:
%69 = add i32 %sv_0.018.reload, 1
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 16
%72 = add i64 %71, ptrtoint ([6 x i8*]* @gv_1 to i64)
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 16
%75 = inttoptr i64 %74 to i8*
store i8* %75, i8** %sv_1, align 8
%76 = icmp eq i64 %74, 0
%77 = icmp eq i1 %76, false
store i8* %75, i8** %.reg2mem46
store i32 %69, i32* %sv_0.018.reg2mem
store i8* %75, i8** %.reg2mem48
store i32 %69, i32* %sv_0.0.lcssa.reg2mem
br i1 %77, label LBL_16, label LBL_19
LBL_19:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%.reload49 = load i8*, i8** %.reg2mem48
%78 = icmp eq i8* %.reload49, null
%79 = icmp eq i1 %storemerge513.ph.reload, %78
store i8* %.reload49, i8** %.reg2mem52
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.reg2mem
br i1 %79, label LBL_20, label LBL_26
LBL_20:
%80 = zext i8 %37 to i64
%81 = mul i64 %80, 4
%82 = add i64 %81, add (i64 ptrtoint (i32** @gv_3 to i64), i64 -384)
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 16
%87 = add i64 %86, ptrtoint ([6 x i8*]* @gv_1 to i64)
%88 = inttoptr i64 %87 to i64*
%89 = load i64, i64* %88, align 16
%90 = icmp eq i64 %89, 0
%91 = icmp eq i1 %90, false
store i8* null, i8** %.reg2mem52
store i32 %84, i32* %sv_0.1.reg2mem
br i1 %91, label LBL_21, label LBL_26
LBL_21:
%92 = inttoptr i64 %arg1 to i8*
%93 = trunc i64 %arg2 to i32
store i64 %86, i64* %.reg2mem50
store i32 %84, i32* %storemerge415.reg2mem
br label LBL_22
LBL_22:
%storemerge415.reload = load i32, i32* %storemerge415.reg2mem
%.reload51 = load i64, i64* %.reg2mem50
%94 = add i64 %.reload51, ptrtoint ([5 x i8*]* @gv_4 to i64)
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 16
%97 = inttoptr i64 %96 to i8*
store i8* %97, i8** %sv_1, align 8
%98 = icmp eq i64 %96, 0
br i1 %98, label LBL_25, label LBL_23
LBL_23:
%99 = call i32 @strncmp(i8* %92, i8* %97, i32 %93)
%100 = icmp eq i32 %99, 0
%101 = icmp eq i1 %100, false
br i1 %101, label LBL_25, label LBL_24
LBL_24:
%102 = add i64 %96, %arg2
%103 = inttoptr i64 %102 to i8*
%104 = load i8, i8* %103, align 1
%105 = icmp eq i8 %104, 0
store i8* %97, i8** %.reg2mem52
store i32 %storemerge415.reload, i32* %sv_0.1.reg2mem
br i1 %105, label LBL_26, label LBL_25
LBL_25:
store i8* null, i8** %sv_1, align 8
%106 = add i32 %storemerge415.reload, 1
%107 = sext i32 %106 to i64
%108 = mul i64 %107, 16
%109 = add i64 %108, ptrtoint ([6 x i8*]* @gv_1 to i64)
%110 = inttoptr i64 %109 to i64*
%111 = load i64, i64* %110, align 16
%112 = icmp eq i64 %111, 0
%113 = icmp eq i1 %112, false
store i64 %108, i64* %.reg2mem50
store i32 %106, i32* %storemerge415.reg2mem
store i8* null, i8** %.reg2mem52
store i32 %106, i32* %sv_0.1.reg2mem
br i1 %113, label LBL_22, label LBL_26
LBL_26:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%.reload53 = load i8*, i8** %.reg2mem52
%114 = icmp eq i8* %.reload53, null
%115 = icmp eq i1 %114, false
%116 = zext i32 %sv_0.1.reload to i64
%117 = select i1 %115, i64 %116, i64 4294967295
store i64 %117, i64* %storemerge.reg2mem
br label LBL_27
LBL_27:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %96, { 0, 2, 1 }
uselistorder i32 %storemerge415.reload, { 1, 0 }
uselistorder i32 %84, { 1, 0, 2 }
uselistorder i64 %74, { 1, 0 }
uselistorder i8* %.reload47, { 0, 2, 1 }
uselistorder i32 %sv_0.018.reload, { 1, 0 }
uselistorder i8* %56, { 1, 0, 2 }
uselistorder i32 %sv_0.0.ph, { 1, 0, 2 }
uselistorder i8 %37, { 0, 1, 3, 2 }
uselistorder i64 %31, { 0, 2, 1 }
uselistorder i64 %.reload, { 1, 2, 0 }
uselistorder i32 %storemerge822.reload, { 2, 0, 1 }
uselistorder i8** %sv_1, { 6, 5, 4, 2, 3, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.in.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem42, { 1, 0, 2 }
uselistorder i32* %storemerge822.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem44, { 0, 3, 2, 1 }
uselistorder i1* %storemerge513.ph.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.0.ph.in.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem46, { 1, 0, 2 }
uselistorder i32* %sv_0.018.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem50, { 1, 0, 2 }
uselistorder i32* %storemerge415.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i8* null, { 2, 0, 4, 1, 3 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 add (i64 ptrtoint (i32** @gv_3 to i64), i64 -384), { 2, 1, 0 }
uselistorder i8 95, { 1, 0 }
uselistorder [6 x i8*]* @gv_1, { 1, 0 }
uselistorder i64 ptrtoint ([6 x i8*]* @gv_1 to i64), { 3, 2, 4, 1, 5, 0 }
uselistorder i1 false, { 5, 7, 6, 3, 9, 8, 2, 0, 10, 4, 13, 11, 12, 1, 14 }
uselistorder i32 0, { 14, 15, 16, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder i32 1, { 19, 20, 12, 18, 17, 16, 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 0, 2, 1, 3, 5, 4 }
uselistorder i64 %arg1, { 1, 2, 0 }
uselistorder label LBL_27, { 2, 0, 1 }
uselistorder label LBL_26, { 1, 0, 2, 3 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_19, { 1, 0, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | gf_bt_report_12306 | gf_bt_report | define i64 @FUNC(i32* %arg1, i64 %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%11 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%12 = trunc i64 %3 to i8
%13 = icmp eq i8 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i128 %11)
%15 = call i64 @FUNC(i128 %10)
%16 = call i64 @FUNC(i128 %9)
%17 = call i64 @FUNC(i128 %8)
%18 = call i64 @FUNC(i128 %7)
%19 = call i64 @FUNC(i128 %6)
%20 = call i64 @FUNC(i128 %5)
%21 = call i64 @FUNC(i128 %4)
br label LBL_2
LBL_2:
%sext = mul i64 %arg2, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%. = select i1 %24, i64 2, i64 1
%25 = call i64 @FUNC(i64 1, i64 %.)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_4, label LBL_3
LBL_3:
store i32 24, i32* %sv_1, align 4
%28 = ptrtoint i32* %sv_1 to i64
%29 = ptrtoint i8* %arg3 to i64
%30 = bitcast i64* %sv_0 to i8*
%31 = call i32 @vsprintf(i8* nonnull %30, i8* %arg3, i64 %28)
%sext6 = mul i64 %2, 4294967296
%32 = ashr exact i64 %sext6, 32
%33 = call i64 @FUNC(i64 %., i64 1, i64 %32, i64 %29, i64 %arg5, i64 %arg6)
br label LBL_4
LBL_4:
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%34 = ptrtoint i32* %arg1 to i64
%35 = add i64 %34, 4
%36 = inttoptr i64 %35 to i32*
store i32 %23, i32* %36, align 4
br label LBL_6
LBL_6:
%37 = and i64 %22, 4294967295
ret i64 %37
uselistorder i64* %1, { 1, 0 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8* %arg3, { 1, 0 }
} | 1 |
BinRealVul | spr_write_decr_15721 | spr_write_decr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC()
%6 = ashr exact i64 %sext, 30
%7 = add i64 %6, ptrtoint (i32** @gv_0 to i64)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = load i32, i32* @gv_1, align 4
%11 = zext i32 %9 to i64
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %12, i64 %11)
%14 = call i64 @FUNC()
%15 = call i64 @FUNC(i64 %4)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%16 = ashr exact i64 %sext, 30
%17 = add i64 %16, ptrtoint (i32** @gv_0 to i64)
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = load i32, i32* @gv_1, align 4
%21 = zext i32 %19 to i64
%22 = zext i32 %20 to i64
%23 = call i64 @FUNC(i64 %22, i64 %21)
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 %sext, { 1, 0 }
} | 1 |
BinRealVul | sig_message_join_5132 | sig_message_join | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i8* %arg3, null
%3 = icmp eq i1 %2, false
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %1, i64 %0)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = ptrtoint i8* %arg3 to i64
%9 = call i64 @FUNC(i64 %6, i64 %8, i64 0)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | cherokee_config_node_add_4861 | cherokee_config_node_add | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%6 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %1, i64 %0)
br label LBL_4
LBL_4:
%10 = ptrtoint i64* %sv_4 to i64
store i64 %1, i64* %sv_3.0.reg2mem
store i64 %arg2, i64* %sv_2.0.reg2mem
br label LBL_5
LBL_5:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%11 = inttoptr i64 %sv_2.0.reload to i8*
%12 = call i8* @strchr(i8* %11, i32 33)
%13 = ptrtoint i8* %12 to i64
store i64 %13, i64* %sv_4, align 8
%14 = icmp eq i8* %12, null
br i1 %14, label LBL_7, label LBL_6
LBL_6:
%15 = sub i64 %13, %sv_2.0.reload
%16 = call i64 @FUNC(i64* nonnull %sv_4, i64 %sv_2.0.reload, i64 %15)
store i32 0, i32* %sv_1.1.reg2mem
br label LBL_8
LBL_7:
%17 = call i32 @strlen(i8* %11)
%18 = sext i32 %17 to i64
%19 = call i64 @FUNC(i64* nonnull %sv_4, i64 %sv_2.0.reload, i64 %18)
store i32 1, i32* %sv_1.1.reg2mem
br label LBL_8
LBL_8:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%20 = call i64 @FUNC(i64 %sv_3.0.reload, i64* nonnull %sv_4)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_10, label LBL_9
LBL_9:
%23 = call i64 @FUNC(i64 %sv_3.0.reload, i64* nonnull %sv_4)
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %sv_0.0.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %25, label LBL_10, label LBL_13
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = icmp eq i32 %sv_1.1.reload, 0
br i1 %26, label LBL_11, label LBL_12
LBL_11:
%27 = load i64, i64* %sv_4, align 8
%28 = add i64 %27, 1
%29 = call i64 @FUNC(i64 %10)
store i64 %sv_0.0.reload, i64* %sv_3.0.reg2mem
store i64 %28, i64* %sv_2.0.reg2mem
br label LBL_5
LBL_12:
%30 = call i64 @FUNC(i64 %sv_0.0.reload)
%31 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %0)
%32 = call i64 @FUNC(i64 %10)
%33 = call i64 @FUNC(i64* nonnull %sv_4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_3.0.reload, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 1, 2, 3, 0 }
uselistorder i64* %sv_4, { 0, 6, 1, 2, 3, 4, 7, 5 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %sv_3.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64*, i64, i64)* @cherokee_buffer_add, { 1, 0 }
uselistorder i64 (i64, i64)* @do_include, { 1, 0 }
uselistorder i64 (i64, i8*)* @equal_str, { 1, 0 }
uselistorder label LBL_13, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | sbr_hf_g_filt_c_17223 | sbr_hf_g_filt_c | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp sgt i32 %arg4, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_3
LBL_1:
%1 = ptrtoint i64* %arg3 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = mul i64 %arg5, 8
%5 = add i64 %4, %3
%wide.trip.count = zext i32 %arg4 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = mul i64 %indvars.iv.reload, 8
%7 = add i64 %6, %1
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sub i32 22, %9
%11 = urem i32 %10, 64
%12 = icmp eq i32 %11, 0
%13 = zext i32 %11 to i64
%14 = shl i64 1, %13
%storemerge1 = select i1 %12, i64 1, i64 %14
%15 = mul nuw nsw i64 %indvars.iv.reload, 320
%16 = add i64 %5, %15
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %7, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %21, 64
%23 = ashr i32 %22, 7
%24 = sext i32 %23 to i64
%25 = sext i32 %18 to i64
%26 = mul nsw i64 %24, %25
%27 = add i64 %26, %storemerge1
%28 = sub i32 23, %9
%29 = urem i32 %28, 64
%30 = zext i32 %29 to i64
%rdx.0 = ashr i64 %27, %30
%31 = add i64 %6, %2
%32 = trunc i64 %rdx.0 to i32
%33 = inttoptr i64 %31 to i32*
store i32 %32, i32* %33, align 4
%34 = add i64 %16, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = load i32, i32* %20, align 4
%38 = add i32 %37, 64
%39 = ashr i32 %38, 7
%40 = sext i32 %39 to i64
%41 = sext i32 %36 to i64
%42 = mul nsw i64 %40, %41
%43 = add i64 %42, %storemerge1
%44 = load i32, i32* %8, align 4
%45 = sub i32 23, %44
%46 = urem i32 %45, 64
%47 = zext i32 %46 to i64
%rdx.1 = ashr i64 %43, %47
%48 = trunc i64 %rdx.1 to i32
%49 = add i64 %31, 4
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%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 %wide.trip.count, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %6, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i32 64, { 0, 3, 1, 4, 2 }
} | 1 |
BinRealVul | mlx4_ib_alloc_ucontext_3977 | mlx4_ib_alloc_ucontext | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %1, 12
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 -11, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_6
LBL_1:
%7 = add i64 %1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
store i32 %11, i32* %sv_0, align 4
%12 = call i64 @FUNC(i64 24, i64 0)
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_6
LBL_2:
%15 = call i64 @FUNC(i64 %0)
%16 = add i64 %15, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %12)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %12)
%sext = mul i64 %19, 4294967296
%23 = ashr exact i64 %sext, 32
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%24 = ptrtoint i64* %arg2 to i64
%25 = add i64 %12, 8
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %12, 16
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i64 %24, i32* nonnull %sv_0, i64 12)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
store i64 %12, i64* %rax.0.reg2mem
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = call i64 @FUNC(i64 %0)
%33 = add i64 %32, 16
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %35, i64 %12)
%37 = call i64 @FUNC(i64 %12)
store i64 -14, 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 %12, { 1, 2, 0, 4, 3, 5, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 (i64)* @to_mdev, { 2, 1, 0 }
uselistorder label LBL_6, { 3, 0, 4, 1, 2 }
} | 0 |
BinRealVul | vnc_display_pw_expire_2471 | vnc_display_pw_expire | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = load i64, i64* @gv_0, align 8
%storemerge1 = select i1 %1, i64 %2, i64 %0
%3 = icmp eq i64 %storemerge1, 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 = inttoptr i64 %storemerge1 to i64*
store i64 %arg2, i64* %5, 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ehci_queues_rip_all_8266 | ehci_queues_rip_all | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge56.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = add i64 %arg1, 8
%storemerge4 = select i1 %1, i64 %2, i64 %arg1
%3 = inttoptr i64 %storemerge4 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = select i1 %1, i64 0, i64 ptrtoint ([34 x i8]* @gv_0 to i64)
store i64 %4, i64* %storemerge56.reg2mem
br label LBL_2
LBL_2:
%storemerge56.reload = load i64, i64* %storemerge56.reg2mem
%7 = inttoptr i64 %storemerge56.reload to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %storemerge56.reload, i64 %6)
%10 = icmp eq i64 %8, 0
store i64 %8, i64* %storemerge56.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_3:
ret i64 0
uselistorder i64* %storemerge56.reg2mem, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | hvm_free_ioreq_mfn_12822 | hvm_free_ioreq_mfn | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i8
%2 = icmp eq i8 %1, 0
%3 = add i64 %0, 16
%storemerge = select i1 %2, i64 %0, i64 %3
%4 = add i64 %storemerge, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = inttoptr i64 %storemerge to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
store i64 0, i64* %8, align 8
%11 = load i64, i64* %5, align 8
%12 = call i64 @FUNC(i64 %11)
store i64 0, i64* %5, align 8
store i64 %storemerge, 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* %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | rtc_periodic_timer_437 | rtc_periodic_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 256
%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)
%6 = add i64 %0, 11
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = and i8 %8, 64
%10 = icmp eq i8 %9, 0
store i8 %8, i8* %.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = add i64 %0, 12
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = or i8 %13, -64
store i8 %14, i8* %12, align 1
%15 = add i64 %0, 260
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%.pre = load i8, i8* %7, align 1
store i8 %.pre, i8* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i8, i8* %.reg2mem
%20 = and i8 %.reload, 16
%21 = icmp eq i8 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %0, 264
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 0, 1, 5, 4, 3 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.