dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | nbd_receive_request_702 | nbd_receive_request | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_4, i64 28)
%2 = icmp eq i64 %1, 28
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = call i32 @fwrite(i64* bitcast ([13 x i8]* @gv_1 to i64*), i32 1, i32 12, %_IO_FILE* %3)
%5 = call i32* @__errno_location()
store i32 22, i32* %5, align 4
store i64 -1, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%6 = ptrtoint i64* %arg2 to i64
%7 = call i64 @FUNC(i64* nonnull %sv_4)
%8 = trunc i64 %7 to i32
%9 = call i64 @FUNC(i64* nonnull %sv_3)
%10 = trunc i64 %9 to i32
%11 = bitcast i64* %arg2 to i32*
store i32 %10, i32* %11, align 4
%12 = call i64 @FUNC(i64* nonnull %sv_2)
%13 = add i64 %6, 8
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = call i64 @FUNC(i64* nonnull %sv_1)
%16 = add i64 %6, 16
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = call i64 @FUNC(i64* nonnull %sv_0)
%19 = trunc i64 %18 to i32
%20 = add i64 %6, 24
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = load i64, i64* %17, align 8
%23 = bitcast i64* %rsi to i32*
%24 = load i32, i32* %23, align 8
%25 = zext i32 %24 to i64
%26 = trunc i64 %22 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_2, i64 0, i64 0), i32 %8, i64 %25, i32 %26, i32 %19)
%28 = icmp eq i32 %8, 627086611
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_4, label LBL_3
LBL_3:
%29 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%30 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i32 %8)
%31 = call i32* @__errno_location()
store i32 22, i32* %31, align 4
store i64 -1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64*)* @be64_to_cpup, { 1, 0 }
uselistorder i64 (i64*)* @be32_to_cpup, { 2, 1, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | ahci_dma_prepare_buf_14756 | ahci_dma_prepare_buf | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, -16
%2 = add i64 %0, -12
%3 = call i64 @FUNC(i64 %1, i64 %2)
%4 = inttoptr i64 %2 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %0, -8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = inttoptr i64 %1 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 %5)
%12 = load i32, i32* %7, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = zext i1 %14 to i64
ret i64 %15
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | add_migration_state_change_notifier_16573 | add_migration_state_change_notifier | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0, i64 %arg1)
ret i64 %0
} | 1 |
BinRealVul | parse_metadata_1576 | parse_metadata | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem5 = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %1, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_21
LBL_2:
%6 = call i64 @FUNC(i64 %0, i64 1, i32 %2)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = and i64 %6, 4294967295
store i64 %10, i64* %rax.0.reg2mem
br label LBL_21
LBL_4:
%11 = add i64 %0, 136
%12 = call i64 @FUNC(i64 %11, i64 4)
%13 = call i64 @FUNC(i64 %11, i64 10)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = add i64 %0, 128
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_6:
%21 = and i64 %13, 4294967295
%22 = call i64 @FUNC(i64 %0, i64 %21, i32 %2)
%23 = trunc i64 %22 to i32
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = and i64 %22, 4294967295
store i64 %26, i64* %rax.0.reg2mem
br label LBL_21
LBL_8:
%27 = call i64 @FUNC(i64 %11, i64 14)
%28 = call i64 @FUNC(i64 %11, i64 6)
%29 = trunc i64 %28 to i32
%30 = add i64 %0, 104
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = icmp slt i32 %29, 64
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%33 = add i64 %0, 128
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %35, i64 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_10:
%sext = mul i64 %28, 4294967296
%37 = ashr exact i64 %sext, 30
%38 = add i64 %37, ptrtoint (i32** @gv_2 to i64)
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i64 %0, 96
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i32, i32* %31, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 4
%46 = add i64 %45, ptrtoint (i32** @gv_3 to i64)
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i64 %0, 100
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = call i64 @FUNC(i64 %11, i64 4)
%52 = trunc i64 %51 to i32
%53 = add i64 %0, 108
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = call i64 @FUNC(i64 %11, i64 4)
%56 = trunc i64 %55 to i32
%57 = add i64 %0, 112
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = load i32, i32* %54, align 4
%60 = sext i32 %59 to i64
%61 = mul i64 %60, 4
%62 = add i64 %61, ptrtoint (i32** @gv_4 to i64)
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label LBL_12, label LBL_11
LBL_11:
%sext2 = mul i64 %55, 4294967296
%66 = ashr exact i64 %sext2, 30
%67 = add i64 %66, ptrtoint (i32** @gv_4 to i64)
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_13, label LBL_12
LBL_12:
%72 = add i64 %0, 128
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = call i64 @FUNC(i64 %74, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_5, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_13:
%76 = call i64 @FUNC(i64 %11, i64 88)
%77 = load i32, i32* %42, align 4
%78 = icmp eq i32 %77, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge14.reg2mem
br i1 %78, label LBL_15, label LBL_14
LBL_14:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload = load i64, i64* %.reg2mem
%79 = mul i64 %.reload, 4
%80 = add i64 %79, %11
%81 = call i64 @FUNC(i64 %11, i64 10)
%82 = trunc i64 %81 to i32
%83 = inttoptr i64 %80 to i32*
store i32 %82, i32* %83, align 4
%84 = add i32 %storemerge14.reload, 1
%85 = load i32, i32* %42, align 4
%86 = zext i32 %85 to i64
%87 = sext i32 %84 to i64
%88 = icmp slt i64 %87, %86
store i64 %87, i64* %.reg2mem
store i32 %84, i32* %storemerge14.reg2mem
br i1 %88, label LBL_14, label LBL_15
LBL_15:
%89 = call i64 @FUNC(i64 %11, i64 8)
%90 = trunc i64 %89 to i32
%91 = add i64 %0, 116
%92 = inttoptr i64 %91 to i32*
store i32 %90, i32* %92, align 4
%93 = call i64 @FUNC(i64 %11, i64 8)
%94 = trunc i64 %93 to i32
%95 = add i64 %0, 120
%96 = inttoptr i64 %95 to i32*
store i32 %94, i32* %96, align 4
%97 = load i32, i32* %50, align 4
%98 = mul i32 %97, 10
%99 = zext i32 %98 to i64
%100 = call i64 @FUNC(i64 %11, i64 %99)
%101 = load i32, i32* %42, align 4
%102 = icmp eq i32 %101, 0
br i1 %102, label LBL_18, label LBL_16
LBL_16:
%103 = add i64 %0, 8
%104 = inttoptr i64 %103 to i64*
store i64 0, i64* %.reg2mem5
store i32 0, i32* %storemerge3.reg2mem
br label LBL_17
LBL_17:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload6 = load i64, i64* %.reg2mem5
%105 = load i64, i64* %104, align 8
%106 = mul i64 %.reload6, 4
%107 = add i64 %105, %106
%108 = call i64 @FUNC(i64 %11, i64 4)
%109 = trunc i64 %108 to i32
%110 = inttoptr i64 %107 to i32*
store i32 %109, i32* %110, align 4
%111 = call i64 @FUNC(i64 %11)
%112 = call i64 @FUNC(i64 %11, i64 10)
%113 = trunc i64 %112 to i32
%114 = add i64 %106, %0
%115 = add i64 %114, 16
%116 = inttoptr i64 %115 to i32*
store i32 %113, i32* %116, align 4
%117 = call i64 @FUNC(i64 %11, i64 10)
%118 = trunc i64 %117 to i32
%119 = add i64 %114, 56
%120 = inttoptr i64 %119 to i32*
store i32 %118, i32* %120, align 4
%121 = add i32 %storemerge3.reload, 1
%122 = load i32, i32* %42, align 4
%123 = zext i32 %122 to i64
%124 = sext i32 %121 to i64
%125 = icmp slt i64 %124, %123
store i64 %124, i64* %.reg2mem5
store i32 %121, i32* %storemerge3.reg2mem
br i1 %125, label LBL_17, label LBL_18
LBL_18:
%126 = call i64 @FUNC(i64 %11)
%127 = trunc i64 %126 to i32
%128 = icmp slt i32 %127, 0
%129 = icmp eq i1 %128, false
br i1 %129, label LBL_20, label LBL_19
LBL_19:
%130 = add i64 %0, 128
%131 = inttoptr i64 %130 to i64*
%132 = load i64, i64* %131, align 8
%133 = call i64 @FUNC(i64 %132, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_6, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_20:
%134 = add i64 %13, 1
%135 = and i64 %134, 4294967295
%136 = call i64 @FUNC(i64 %0, i64 %135)
store i64 %136, 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 %106, { 1, 0 }
uselistorder i32* %42, { 2, 1, 3, 0, 4 }
uselistorder i64 %11, { 5, 1, 2, 3, 4, 6, 7, 9, 8, 0, 10, 11, 12, 13, 14, 15, 16 }
uselistorder i64 %0, { 3, 2, 0, 4, 5, 6, 7, 8, 9, 10, 12, 11, 13, 14, 1, 15, 16, 17 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem5, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 8, 5, 4, 3, 2, 1 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @skip_bits_long, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 3, 2, 1, 0 }
uselistorder i64 0, { 14, 6, 7, 0, 1, 15, 8, 9, 16, 10, 11, 17, 12, 13, 2, 3, 4, 5, 18 }
uselistorder i64 (i64, i64)* @get_bits, { 9, 8, 7, 5, 4, 6, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @skip_bits, { 1, 0 }
uselistorder i64 4, { 4, 0, 1, 2, 5, 6, 3, 7 }
uselistorder i64 (i64, i64, i32)* @convert_input, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 0, { 4, 0, 2, 1, 3, 5, 6, 7, 8, 9, 10 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
} | 0 |
BinRealVul | audit_callback_10007 | audit_callback | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0))
br label LBL_3
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 12
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = bitcast i64* %arg3 to i8*
%12 = trunc i64 %arg4 to i32
%13 = inttoptr i64 %6 to i8*
%14 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %11, i32 %12, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %13, i64 %10, i64 %6)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | nfs41_check_expired_stateid_18006 | nfs41_check_expired_stateid | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %1 to i32
%8 = and i32 %7, %arg3
%9 = icmp eq i32 %8, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = ptrtoint i64* %arg2 to i64
%11 = call i64 @FUNC(i64 %6, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 %11, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %6, i64 %10)
%15 = sub i32 0, %arg3
%16 = sub i32 %15, 1
%17 = and i32 %7, %16
%18 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %18, align 4
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%19 = and i64 %sv_0.0.reload, 4294967295
ret i64 %19
} | 1 |
BinRealVul | fib6_clean_expires_7089 | fib6_clean_expires | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = and i32 %3, -2
store i32 %4, i32* %arg1, align 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
ret i64 %2
uselistorder i64 %2, { 1, 0 }
} | 0 |
BinRealVul | estimate_qp_3130 | estimate_qp | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = ptrtoint i32* %arg1 to i64
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%6 = add i64 %5, 40
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
store i32 %3, i32* %9, align 4
%10 = add i64 %5, 32
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i32*
store i32 %3, i32* %15, align 4
%16 = trunc i64 %2 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_5, label LBL_2
LBL_2:
store i32 0, i32* %arg1, align 4
br label LBL_5
LBL_3:
%19 = add i64 %5, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = add i64 %5, 40
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = and i64 %2, 4294967295
%28 = call i64 @FUNC(i64 %5, i64 %27)
%29 = trunc i64 %28 to i32
%30 = inttoptr i64 %26 to i32*
store i32 %29, i32* %30, align 4
%31 = add i64 %5, 32
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = inttoptr i64 %35 to i32*
store i32 %29, i32* %36, align 4
%37 = load i64, i64* %25, align 8
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp slt i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %41, label LBL_5, label LBL_14
LBL_5:
%42 = add i64 %5, 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label LBL_12, label LBL_6
LBL_6:
%46 = add i64 %5, 12
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 1
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = icmp sgt i32 %48, 0
%.off = add i32 %48, -2
%switch = icmp ult i32 %.off, 3
%or.cond = icmp eq i1 %50, %switch
br i1 %or.cond, label LBL_9, label LBL_10
LBL_8:
%51 = call i64 @FUNC(i64 %5)
br label LBL_11
LBL_9:
%52 = call i64 @FUNC(i64 %5)
br label LBL_11
LBL_10:
%53 = call i64 @FUNC(i64 %5)
br label LBL_11
LBL_11:
%54 = add i64 %5, 24
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = add i64 %5, 16
%60 = inttoptr i64 %59 to i32*
store i32 %58, i32* %60, align 4
br label LBL_13
LBL_12:
%61 = add i64 %5, 40
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = add i64 %5, 16
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
br label LBL_13
LBL_13:
%68 = call i64 @FUNC(i64 %5)
store i64 0, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %48, { 1, 0, 2 }
uselistorder i64 %5, { 6, 10, 9, 4, 3, 2, 1, 5, 8, 7, 11, 12, 13, 15, 0, 14 }
uselistorder i32 %3, { 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder label LBL_14, { 1, 0 }
} | 0 |
BinRealVul | tcg_target_init_13888 | tcg_target_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i32, i32* @gv_0, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3, i64 0, i64 4294967295)
%5 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 0, i64 8185)
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %8, i64 0)
%11 = call i64 @FUNC(i64 %8, i64 1)
%12 = call i64 @FUNC(i64 %8, i64 2)
%13 = load i64, i64* @gv_1, align 8
%14 = call i64 @FUNC(i64 %13)
ret i64 %14
uselistorder i64 %8, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @tcg_regset_set_reg, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @tcg_regset_set32, { 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | s390_virtio_hypercall_399 | s390_virtio_hypercall | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp sgt i32 %3, 255
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = sext i32 %3 to i64
%6 = mul i64 %5, 4
%7 = add i64 %6, ptrtoint (i32** @gv_0 to i64)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sext i32 %9 to i64
%11 = icmp eq i32 %9, 0
%spec.select = select i1 %11, i64 4294967274, i64 %10
ret i64 %spec.select
LBL_2:
ret i64 4294967274
} | 0 |
reposvul_c_test | wants_signal_34 | wants_signal | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = bitcast i64* %arg2 to %_TYPEDEF_sigset_t*
%2 = call i32 @sigismember(%_TYPEDEF_sigset_t* %1, i32 %0)
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 128
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_6
LBL_2:
%10 = icmp eq i32 %0, 9
%11 = icmp eq i1 %10, false
store i64 1, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_6
LBL_3:
%12 = call i64 @FUNC(i64 %4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_6
LBL_4:
%15 = call i64 @FUNC(i64 %4)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 1, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %4)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%spec.select = zext i1 %21 to i64
ret i64 %spec.select
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64* %arg2, { 1, 0 }
} | 0 |
BinRealVul | ipmi_spd_print_fru_18977 | ipmi_spd_print_fru | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%4 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 24)
store i64 10, i64* %sv_1, align 8
%5 = icmp eq i64* %arg1, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%8 = trunc i64 %3 to i8
%9 = icmp eq i8 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = urem i64 %3, 256
%11 = call i64 @FUNC(i64 %10, i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @gv_1, i64 0, i64 0))
%12 = inttoptr i64 %11 to i8*
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0), i8* %12)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%15 = add i64 %14, 2
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i32
%19 = mul i32 %18, 256
%20 = add i64 %14, 1
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i32
%24 = or i32 %19, %23
%25 = add i64 %14, 3
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = urem i8 %27, 2
%29 = icmp eq i8 %28, 0
%. = select i1 %29, i64 ptrtoint ([6 x i8]* @gv_3 to i64), i64 ptrtoint ([6 x i8]* @gv_4 to i64)
%30 = zext i32 %24 to i64
%31 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_5, i64 0, i64 0), i64 %30, i64 %., i64 %2, i64 %1)
%32 = icmp eq i32 %24, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_6, i64 0, i64 0), i64 %30, i64 %., i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_6:
%35 = call i64* @malloc(i32 %24)
%36 = icmp eq i64* %35, null
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_7, i64 0, i64 0), i64 %30)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%39 = ptrtoint i64* %35 to i64
%40 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 24)
store i64 10, i64* %sv_1, align 8
%41 = call i64* @memset(i64* %35, i32 0, i32 %24)
%42 = inttoptr i64 %15 to i64*
store i64 %39, i64* %.in.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%.in.reload = load i64, i64* %.in.reg2mem
%43 = trunc i64 %.in.reload to i8
%44 = icmp eq i8 %43, 0
br i1 %44, label LBL_11, label LBL_10
LBL_10:
%45 = urem i64 %.in.reload, 256
%46 = call i64 @FUNC(i64 %45, i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @gv_1, i64 0, i64 0))
%47 = inttoptr i64 %46 to i8*
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0), i8* %47)
call void @free(i64* %35)
%49 = icmp eq i8 %43, -61
%50 = icmp eq i1 %49, false
%.3 = select i1 %50, i64 4294967295, i64 1
store i64 %.3, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%51 = load i8, i8* %21, align 1
%52 = zext i8 %51 to i32
%53 = sext i32 %sv_0.0.reload to i64
%54 = add i64 %53, %39
%55 = inttoptr i64 %54 to i64*
%56 = call i64* @memcpy(i64* %55, i64* %42, i32 %52)
%57 = add i32 %sv_0.0.reload, %52
%58 = sext i32 %57 to i64
%59 = icmp slt i64 %58, %30
store i64 %54, i64* %.in.reg2mem
store i32 %57, i32* %sv_0.0.reg2mem
br i1 %59, label LBL_9, label LBL_12
LBL_12:
%60 = zext i32 %57 to i64
%61 = call i64 @FUNC(i64 %39, i64 %60)
call void @free(i64* %35)
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 i32 %57, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %.in.reload, { 1, 0 }
uselistorder i64 %39, { 2, 1, 0 }
uselistorder i64* %35, { 0, 1, 2, 4, 3 }
uselistorder i64 %30, { 2, 1, 0, 3 }
uselistorder i32 %24, { 0, 1, 3, 2 }
uselistorder i64 %14, { 0, 2, 1 }
uselistorder i64* %sv_1, { 2, 0, 3, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 4, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @lprintf, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8**)* @val2str, { 1, 0 }
uselistorder i8 0, { 1, 0, 2, 3 }
uselistorder i64 4294967295, { 5, 3, 2, 1, 0, 4 }
uselistorder i64* (i64*, i32, i32)* @memset, { 2, 1, 0 }
uselistorder i32 0, { 0, 2, 3, 13, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_13, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | padlock_sha256_final_nano_10613 | padlock_sha256_final_nano | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = mul i64 %4, 8
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %sv_0, align 8
%7 = load i64, i64* %3, align 8
%8 = trunc i64 %7 to i32
%9 = urem i32 %8, 64
%10 = icmp ult i32 %9, 56
%storemerge.in.v = select i1 %10, i32 56, i32 120
%storemerge.in = sub nsw i32 %storemerge.in.v, %9
%11 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @padding_used_in_hashing_algorithms__0x80_0_____0__at_402020, i64 0, i64 0), i32 %storemerge.in)
%12 = bitcast i64* %sv_0 to i8*
%13 = call i64 @FUNC(i64 %1, i8* nonnull %12, i32 8)
%14 = add i64 %2, 8
%15 = call i64 @FUNC(i64 %14, i64 %0, i64 8)
ret i64 0
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 (i64, i8*, i32)* @padlock_sha256_update_nano, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
} | 0 |
BinRealVul | gen_lookup_tb_646 | gen_lookup_tb | 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, 4294967294
%4 = load i32, i32* inttoptr (i64 4210844 to i32*), align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5, i64 %3)
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
ret i64 %2
uselistorder i64 %2, { 1, 0 }
} | 0 |
BinRealVul | seek_to_sector_3325 | seek_to_sector | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = zext i64 %arg2 to i128
%5 = zext i64 %3 to i128
%6 = udiv i128 %4, %5
%7 = trunc i128 %6 to i32
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp ult i32 %10, %7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = trunc i128 %6 to i64
%16 = mul i64 %15, 4
%17 = and i64 %16, 17179869180
%18 = add i64 %14, %17
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_2, label LBL_3
LBL_2:
%23 = urem i128 %4, %5
%24 = trunc i128 %23 to i32
%25 = add i32 %20, %24
%26 = zext i32 %25 to i64
%27 = mul i64 %26, 512
%28 = add i64 %2, 16
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = trunc i64 %27 to i32
%32 = call i32 @lseek(i32 %30, i32 %31, i32 0)
%33 = sext i32 %32 to i64
%34 = icmp eq i64 %27, %33
%. = select i1 %34, i64 0, i64 4294967295
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 i64 %27, { 1, 0 }
uselistorder i128 %6, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
} | 0 |
BinRealVul | render_line_2973 | render_line | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.in.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_1.118.reg2mem = alloca i64
%sv_0.119.reg2mem = alloca i32
%.in.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%sext6 = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext6, 32
%1 = trunc i64 %0 to i32
%2 = icmp slt i32 %1, 0
store i64 ptrtoint (i32** @gv_0 to i64), i64* %storemerge14.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = add i32 %1, -255
%4 = sub i32 254, %1
%5 = and i32 %4, %1
%6 = icmp slt i32 %5, 0
%7 = icmp eq i32 %3, 0
%8 = icmp slt i32 %3, 0
%9 = icmp eq i1 %8, %6
%10 = icmp eq i1 %7, false
%11 = icmp eq i1 %9, %10
%sext6.op = ashr exact i64 %sext6, 30
%sext6.op.op = add i64 %sext6.op, ptrtoint (i32** @gv_0 to i64)
%phitmp = select i1 %11, i64 add (i64 ptrtoint (i32** @gv_0 to i64), i64 1020), i64 %sext6.op.op
store i64 %phitmp, i64* %storemerge14.reg2mem
br label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg5 to i64
%13 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%14 = trunc i64 %arg2 to i32
%15 = trunc i64 %arg3 to i32
%sext7 = mul i64 %arg3, 4294967296
%16 = ashr exact i64 %sext7, 32
%17 = trunc i64 %arg4 to i32
%18 = sub i32 %17, %14
%19 = sub i32 %15, %13
%20 = sub i32 0, %18
%21 = icmp slt i32 %20, 0
%22 = icmp eq i1 %21, false
%23 = select i1 %22, i32 %20, i32 %18
%24 = icmp slt i32 %18, 0
%25 = icmp eq i1 %24, false
%26 = select i1 %25, i32 1, i32 -1
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%27 = ashr exact i64 %sext, 30
%28 = add i64 %27, %12
%29 = inttoptr i64 %storemerge14.reload to i32*
%30 = load i32, i32* %29, align 4
%31 = call i128 @FUNC(i32 %30)
%32 = call i64 @__asm_movss.1(i128 %31)
%33 = trunc i64 %32 to i32
%34 = inttoptr i64 %28 to i32*
store i32 %33, i32* %34, align 4
%35 = mul i32 %23, 2
%36 = zext i32 %35 to i64
%37 = sext i32 %19 to i64
%38 = icmp slt i64 %37, %36
br i1 %38, label LBL_4, label LBL_3
LBL_3:
%39 = and i64 %arg1, 4294967295
%40 = trunc i64 %16 to i32
%41 = zext i32 %19 to i64
%42 = zext i32 %23 to i64
%43 = call i64 @FUNC(i64 %39, i32 %1, i32 %40, i32 %26, i64 %42, i64 %41, i64 %12)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%44 = add i32 %13, 1
%45 = trunc i64 %16 to i32
%46 = icmp slt i32 %44, %45
store i32 %44, i32* %.lcssa.in.reg2mem
br i1 %46, label LBL_5, label LBL_11
LBL_5:
%47 = ashr i32 %18, 31
%48 = zext i32 %18 to i64
%49 = zext i32 %47 to i64
%50 = mul i64 %49, 4294967296
%51 = or i64 %50, %48
%52 = zext i32 %19 to i64
%53 = sdiv i64 %51, %52
%54 = trunc i64 %53 to i32
%55 = sub i32 0, %54
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
%58 = select i1 %57, i32 %55, i32 %54
%59 = mul i32 %58, %19
%60 = sub i32 %23, %59
%61 = sub i32 0, %19
%62 = sext i32 %44 to i64
store i64 %62, i64* %indvars.iv.reg2mem
store i32 %44, i32* %.in.reg2mem
store i32 %61, i32* %sv_0.119.reg2mem
store i64 %0, i64* %sv_1.118.reg2mem
br label LBL_6
LBL_6:
%sv_1.118.reload = load i64, i64* %sv_1.118.reg2mem
%sv_0.119.reload = load i32, i32* %sv_0.119.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%63 = add i64 %sv_1.118.reload, %53
%sext17 = mul i64 %63, 4294967296
%64 = ashr exact i64 %sext17, 32
%65 = add i32 %sv_0.119.reload, %60
%66 = icmp slt i32 %65, 0
store i64 %64, i64* %sv_1.0.reg2mem
store i32 %65, i32* %sv_0.0.reg2mem
br i1 %66, label LBL_8, label LBL_7
LBL_7:
%67 = sub i32 %65, %19
%68 = trunc i64 %64 to i32
%69 = add i32 %26, %68
%70 = sext i32 %69 to i64
store i64 %70, i64* %sv_1.0.reg2mem
store i32 %67, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%71 = trunc i64 %sv_1.0.reload to i32
%72 = icmp slt i32 %71, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %72, label LBL_10, label LBL_9
LBL_9:
%73 = add i32 %71, -255
%74 = sub i32 254, %71
%75 = and i32 %74, %71
%76 = icmp slt i32 %75, 0
%77 = icmp eq i32 %73, 0
%78 = icmp slt i32 %73, 0
%79 = icmp eq i1 %78, %76
%80 = icmp eq i1 %77, false
%81 = icmp eq i1 %79, %80
%82 = and i64 %sv_1.0.reload, 4294967295
%83 = select i1 %81, i64 255, i64 %82
store i64 %83, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%84 = mul i64 %indvars.iv.reload, 4
%85 = add i64 %84, %12
%sext13 = mul i64 %storemerge.reload, 4294967296
%86 = ashr exact i64 %sext13, 30
%87 = add i64 %86, ptrtoint (i32** @gv_0 to i64)
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = call i128 @FUNC(i32 %89)
%91 = call i64 @__asm_movss.1(i128 %90)
%92 = trunc i64 %91 to i32
%93 = inttoptr i64 %85 to i32*
store i32 %92, i32* %93, align 4
%94 = add i32 %.in.reload, 1
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i32 %94, %45
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %94, i32* %.in.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.119.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.118.reg2mem
store i32 %45, i32* %.lcssa.in.reg2mem
br i1 %exitcond, label LBL_11, label LBL_6
LBL_11:
%.lcssa.in.reload = load i32, i32* %.lcssa.in.reg2mem
%.lcssa = zext i32 %.lcssa.in.reload to i64
store i64 %.lcssa, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %73, { 1, 0 }
uselistorder i32 %71, { 0, 2, 1, 3 }
uselistorder i64 %sv_1.0.reload, { 2, 0, 1 }
uselistorder i32 %65, { 1, 0, 2 }
uselistorder i64 %64, { 1, 0 }
uselistorder i32 %44, { 1, 2, 0, 3 }
uselistorder i32 %23, { 1, 2, 0 }
uselistorder i32 %19, { 1, 2, 0, 4, 5, 3 }
uselistorder i32 %18, { 1, 0, 4, 2, 3 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %12, { 1, 2, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i32 %1, { 1, 0, 3, 2, 4 }
uselistorder i64 %sext6, { 1, 0 }
uselistorder i64* %storemerge14.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.119.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.118.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i1 false, { 0, 1, 3, 4, 2, 5 }
uselistorder i32 0, { 0, 1, 2, 3, 4, 7, 5, 6, 12, 13, 14, 8, 9, 10, 11, 15, 16, 17, 18 }
uselistorder i64 32, { 1, 2, 3, 4, 0 }
uselistorder i64 4294967296, { 0, 1, 2, 3, 5, 4, 8, 6, 7 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qpci_pc_config_writel_15821 | qpci_pc_config_writel | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = mul i64 %arg2, 256
%1 = urem i64 %arg3, 256
%2 = and i64 %0, 2147483392
%.masked = or i64 %1, %2
%3 = or i64 %.masked, 2147483648
%4 = call i64 @FUNC(i64 3320, i64 %3)
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 3324, i64 %5)
ret i64 %6
uselistorder i64 (i64, i64)* @outl, { 1, 0 }
uselistorder i64 256, { 1, 0 }
} | 1 |
BinRealVul | mpc8_probe_2665 | mpc8_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%.reg2mem21 = alloca i8*
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i8*
store i8* %2, i8** %sv_0, align 8
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp sgt i32 %5, 15
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_15
LBL_1:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 1297105739
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_15
LBL_2:
%10 = sext i32 %5 to i64
%11 = add i64 %1, %10
%12 = add i64 %11, 3
%13 = icmp ugt i64 %12, %1
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_15
LBL_3:
%14 = bitcast i8** %sv_0 to i64*
%15 = add i64 %11, 1
store i64 %1, i64* %.reg2mem
store i8* %2, i8** %.reg2mem21
br label LBL_4
LBL_4:
%.reload22 = load i8*, i8** %.reg2mem21
%16 = load i8, i8* %.reload22, align 1
%17 = icmp eq i8 %16, 83
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%19 = add i64 %.reload, 1
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = icmp eq i8 %21, 72
%23 = icmp eq i1 %22, false
store i32 1, i32* %storemerge.reg2mem
br i1 %23, label LBL_6, label LBL_7
LBL_6:
store i32 0, i32* %storemerge.reg2mem
br label LBL_7
LBL_7:
%.off4 = add i8 %16, -65
%24 = icmp ult i8 %.off4, 26
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_8, label LBL_15
LBL_8:
%25 = ptrtoint i8* %.reload22 to i64
%26 = add i64 %25, 1
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%.off5 = add i8 %28, -65
%29 = icmp ult i8 %.off5, 26
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_9, label LBL_15
LBL_9:
%30 = add i64 %25, 2
%31 = inttoptr i64 %30 to i8*
store i8* %31, i8** %sv_0, align 8
%32 = call i64 @FUNC(i64* nonnull %14)
%33 = icmp sgt i64 %32, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_10, label LBL_15
LBL_10:
%34 = load i8*, i8** %sv_0, align 8
%35 = ptrtoint i8* %34 to i64
%36 = sub i64 %15, %35
%37 = icmp sgt i64 %32, %36
store i64 49, i64* %rax.0.reg2mem
br i1 %37, label LBL_15, label LBL_11
LBL_11:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%38 = icmp eq i32 %storemerge.reload, 0
br i1 %38, label LBL_14, label LBL_12
LBL_12:
%.off = add i64 %32, -11
%39 = icmp ult i64 %.off, 18
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_13, label LBL_15
LBL_13:
%40 = call i64 @FUNC(i64 %35)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
%. = select i1 %43, i64 100, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%44 = add i64 %32, -2
%45 = add i64 %44, %35
%46 = inttoptr i64 %45 to i8*
store i8* %46, i8** %sv_0, align 8
%47 = icmp ugt i64 %12, %45
store i64 %45, i64* %.reg2mem
store i8* %46, i8** %.reg2mem21
store i64 0, i64* %rax.0.reg2mem
br i1 %47, label LBL_4, label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %35, { 2, 0, 1 }
uselistorder i64 %32, { 1, 0, 2, 3 }
uselistorder i8* %.reload22, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 0, 2, 1, 3 }
uselistorder i8** %sv_0, { 3, 2, 1, 4, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 7, 8, 4, 3, 1, 2, 6, 9, 10 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 1, { 1, 2, 3, 0, 4 }
uselistorder i64 (i64)* @AV_RL32, { 1, 0 }
uselistorder label LBL_15, { 4, 6, 7, 3, 2, 0, 1, 5, 8, 9 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | flush_fp_to_thread_9751 | flush_fp_to_thread | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = urem i64 %0, 2
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %0)
br label LBL_3
LBL_3:
%6 = call i64 @FUNC()
store i64 %6, 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, 1, 0 }
} | 0 |
BinRealVul | fsck_gitmodules_fn_11268 | fsck_gitmodules_fn | define i64 @FUNC(i8* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i8* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i8*, align 8
%3 = bitcast i32* %sv_1 to i64*
%4 = bitcast i8** %sv_2 to i64*
%5 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0, i64* nonnull %3, i64* nonnull %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
br i1 %7, label LBL_8, label LBL_1
LBL_1:
%8 = load i64, i64* %sv_0, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_8
LBL_2:
%11 = ptrtoint i64* %arg3 to i64
%12 = load i32, i32* %sv_1, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %8, i64 %13)
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = add i64 %11, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %11, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24, i64 %21, i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %14)
%26 = or i64 %25, %1
%27 = trunc i64 %26 to i32
%28 = bitcast i64* %arg3 to i32*
store i32 %27, i32* %28, align 4
br label LBL_4
LBL_4:
%29 = load i8*, i8** %sv_2, align 8
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i8* %arg2, null
%or.cond = or i1 %33, %32
br i1 %or.cond, label LBL_7, label LBL_5
LBL_5:
%34 = ptrtoint i8* %arg2 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_7, label LBL_6
LBL_6:
%38 = add i64 %11, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %11, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43, i64 %40, i64 2, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %34)
%45 = or i64 %44, %1
%46 = trunc i64 %45 to i32
%47 = bitcast i64* %arg3 to i32*
store i32 %46, i32* %47, align 4
br label LBL_7
LBL_7:
%48 = inttoptr i64 %14 to i64*
call void @free(i64* %48)
br label LBL_8
LBL_8:
ret i64 0
uselistorder i64 %14, { 1, 0, 2 }
uselistorder i64 %11, { 3, 2, 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64, i64, i8*, i64)* @report, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i8* %arg2, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
BinRealVul | qxl_cursor_1623 | qxl_cursor | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6)
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = inttoptr i64 %8 to i32*
store i32 %11, i32* %12, align 4
%13 = add i64 %2, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %8, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_3, label LBL_1
LBL_1:
%23 = bitcast i64* %rsi to i32*
%24 = load i32, i32* %23, align 8
%25 = load i32, i32* %4, align 4
%26 = mul i32 %24, 4
%27 = mul i32 %26, %25
%28 = add i64 %2, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %8, 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i64*
%35 = inttoptr i64 %30 to i64*
%36 = call i64* @memcpy(i64* %34, i64* %35, i32 %27)
%37 = bitcast i64* %rdi to i32*
%38 = load i32, i32* %37, align 8
%39 = icmp slt i32 %38, 3
store i64 %8, i64* %storemerge.reg2mem
br i1 %39, label LBL_4, label LBL_2
LBL_2:
%40 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
store i64 %8, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%41 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%42 = zext i32 %20 to i64
%43 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %41, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %42)
%44 = call i64 @FUNC(i64 %8)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 4, 1, 2, 0, 3, 5, 6 }
uselistorder i64 %2, { 3, 2, 1, 0, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | index_from_key_15395 | index_from_key | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i32
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = load i64, i64* bitcast ([3 x i8*]* @gv_0 to i64*), align 16
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
store i32 0, i32* %storemerge.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%4 = inttoptr i64 %.reload to i8*
%5 = call i32 @strcmp(i8* %0, i8* %4)
%6 = icmp eq i32 %5, 0
store i32 %storemerge1.reload, i32* %storemerge.lcssa.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = add i32 %storemerge1.reload, 1
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = add i64 %9, ptrtoint ([3 x i8*]* @gv_0 to i64)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %.reg2mem
store i32 %7, i32* %storemerge1.reg2mem
store i32 %7, i32* %storemerge.lcssa.reg2mem
br i1 %14, label LBL_1, label LBL_3
LBL_3:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%15 = zext i32 %storemerge.lcssa.reload to i64
ret i64 %15
uselistorder i32 %storemerge1.reload, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 8, 0, 1, 2, 3, 4, 5, 6, 7 }
uselistorder [3 x i8*]* @gv_0, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | calc_float_string_storage_17271 | calc_float_string_storage | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i128
%sv_0.0.in.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%1 = load i128, i128* %0
%2 = call i64 @FUNC(i128 %1)
%3 = call i128 @__asm_movsd.1(i64 %2)
%4 = call i32 @FUNC(i128 %3)
store i64 0, i64* %sv_1.0.reg2mem
store i32 %4, i32* %sv_0.0.in.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.in.reload = load i32, i32* %sv_0.0.in.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%5 = add i64 %sv_1.0.reload, 1
%6 = sdiv i32 %sv_0.0.in.reload, 10
%sv_0.0.in.off = add i32 %sv_0.0.in.reload, 9
%7 = icmp ult i32 %sv_0.0.in.off, 19
%8 = icmp eq i1 %7, false
store i64 %5, i64* %sv_1.0.reg2mem
store i32 %6, i32* %sv_0.0.in.reg2mem
br i1 %8, label LBL_1, label LBL_2
LBL_2:
%9 = add i64 %sv_1.0.reload, 9
ret i64 %9
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.in.reload, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.in.reg2mem, { 1, 0, 2 }
uselistorder i32 1, { 2, 1, 0 }
} | 1 |
BinRealVul | get_busid_idx_7298 | get_busid_idx | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul nuw nsw i64 %indvars.iv.reload, 36
%2 = add nuw nsw i64 %1, 4210816
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %1, ptrtoint (i8** @gv_0 to i64)
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 4
%7 = icmp eq i8 %6, 0
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = call i32 @strncmp(i8* %5, i8* %0, i32 32)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %2)
%phitmp = and i64 %indvars.iv.reload, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64 %2)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%13 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_1, label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @spin_unlock, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | target_munmap_1675 | target_munmap | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.33.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i32
%storemerge16.reg2mem = alloca i64
%sv_1.08.reg2mem = alloca i32
%storemerge29.reg2mem = alloca i64
%0 = urem i64 %arg1, 4096
%1 = icmp eq i64 %0, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_17
LBL_1:
%2 = add i64 %arg2, 4095
%3 = and i64 %2, -4096
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_17
LBL_2:
%6 = add i64 %3, %arg1
%7 = load i64, i64* @gv_0, align 8
%8 = and i64 %7, %arg1
%9 = add i64 %6, 4095
%10 = and i64 %9, -4096
%11 = icmp ult i64 %8, %arg1
store i64 %8, i64* %storemerge29.reg2mem
store i32 0, i32* %sv_1.08.reg2mem
store i64 %6, i64* %sv_3.1.reg2mem
store i64 %8, i64* %sv_2.0.reg2mem
br i1 %11, label LBL_3, label LBL_9
LBL_3:
%sv_1.08.reload = load i32, i32* %sv_1.08.reg2mem
%storemerge29.reload = load i64, i64* %storemerge29.reg2mem
%12 = call i64 @FUNC(i64 %storemerge29.reload)
%13 = trunc i64 %12 to i32
%14 = or i32 %sv_1.08.reload, %13
%15 = add i64 %storemerge29.reload, 4096
%16 = icmp ult i64 %15, %arg1
store i64 %15, i64* %storemerge29.reg2mem
store i32 %14, i32* %sv_1.08.reg2mem
br i1 %16, label LBL_3, label LBL_4
LBL_4:
%17 = load i64, i64* @gv_1, align 8
%18 = add i64 %17, %8
%19 = icmp eq i64 %10, %18
%20 = icmp eq i1 %19, false
store i64 %6, i64* %sv_3.0.reg2mem
store i32 %14, i32* %sv_1.2.reg2mem
br i1 %20, label LBL_7, label LBL_5
LBL_5:
%21 = icmp ult i64 %6, %10
store i64 %6, i64* %storemerge16.reg2mem
store i32 %14, i32* %sv_1.15.reg2mem
store i64 %10, i64* %sv_3.0.reg2mem
store i32 %14, i32* %sv_1.2.reg2mem
br i1 %21, label LBL_6, label LBL_7
LBL_6:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%storemerge16.reload = load i64, i64* %storemerge16.reg2mem
%22 = call i64 @FUNC(i64 %storemerge16.reload)
%23 = trunc i64 %22 to i32
%24 = or i32 %sv_1.15.reload, %23
%25 = add nuw i64 %storemerge16.reload, 4096
%26 = icmp ult i64 %25, %10
store i64 %25, i64* %storemerge16.reg2mem
store i32 %24, i32* %sv_1.15.reg2mem
store i64 %10, i64* %sv_3.0.reg2mem
store i32 %24, i32* %sv_1.2.reg2mem
br i1 %26, label LBL_6, label LBL_7
LBL_7:
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%27 = icmp eq i32 %sv_1.2.reload, 0
store i64 %sv_3.0.reload, i64* %sv_3.1.reg2mem
store i64 %8, i64* %sv_2.0.reg2mem
br i1 %27, label LBL_9, label LBL_8
LBL_8:
%28 = load i64, i64* @gv_1, align 8
%29 = add i64 %28, %8
store i64 %sv_3.0.reload, i64* %sv_3.1.reg2mem
store i64 %29, i64* %sv_2.0.reg2mem
br label LBL_9
LBL_9:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem
%30 = icmp ult i64 %sv_3.1.reload, %10
%31 = icmp eq i1 %30, false
store i64 %sv_3.1.reload, i64* %storemerge4.reg2mem
store i32 0, i32* %sv_1.33.reg2mem
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_13, label LBL_10
LBL_10:
%sv_1.33.reload = load i32, i32* %sv_1.33.reg2mem
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%32 = call i64 @FUNC(i64 %storemerge4.reload)
%33 = trunc i64 %32 to i32
%34 = or i32 %sv_1.33.reload, %33
%35 = add nuw i64 %storemerge4.reload, 4096
%36 = icmp ult i64 %35, %10
store i64 %35, i64* %storemerge4.reg2mem
store i32 %34, i32* %sv_1.33.reg2mem
br i1 %36, label LBL_10, label LBL_11
LBL_11:
%phitmp = icmp eq i32 %34, 0
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %phitmp, label LBL_13, label LBL_12
LBL_12:
%37 = load i64, i64* @gv_1, align 8
%38 = sub i64 %10, %37
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%39 = icmp ugt i64 %sv_0.0.reload, %sv_2.0.reload
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_16, label LBL_14
LBL_14:
%41 = sub i64 %sv_0.0.reload, %sv_2.0.reload
%42 = call i64 @FUNC(i64 %sv_2.0.reload)
%43 = inttoptr i64 %42 to i64*
%44 = trunc i64 %41 to i32
%45 = call i32 @munmap(i64* %43, i32 %44)
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_16, label LBL_15
LBL_15:
%47 = zext i32 %45 to i64
store i64 %47, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
%48 = call i64 @FUNC(i64 %arg1, i64 %6, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %storemerge4.reload, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 1, 0, 2 }
uselistorder i64 %storemerge16.reload, { 1, 0 }
uselistorder i32 %14, { 0, 2, 1, 3 }
uselistorder i64 %storemerge29.reload, { 1, 0 }
uselistorder i64 %10, { 7, 0, 6, 1, 8, 2, 5, 3, 4, 9 }
uselistorder i64 %8, { 3, 1, 4, 0, 2, 5 }
uselistorder i64 %6, { 4, 2, 3, 1, 0, 5 }
uselistorder i64* %storemerge29.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.08.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge16.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.33.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64)* @page_get_flags, { 2, 1, 0 }
uselistorder i32 0, { 3, 2, 0, 4, 1 }
uselistorder i64 -4096, { 1, 2, 0 }
uselistorder i64 4096, { 2, 3, 4, 0, 1 }
uselistorder i32 1, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 4, 5, 3, 1, 2, 0 }
uselistorder label LBL_17, { 2, 3, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qtest_quit_14934 | qtest_quit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, -1
store i64 %arg1, i64* %rdi.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32 @kill(i32 %1, i32 15)
%4 = and i64 %0, 4294967295
%5 = bitcast i64* %sv_0 to i32*
%6 = call i32 @waitpid(i32 %1, i32* nonnull %5, i32 0)
store i64 %4, i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%7 = inttoptr i64 %rdi.0.reload to i8*
%8 = call i32 @unlink(i8* %7)
%9 = add i64 %arg1, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i8*
%13 = call i32 @unlink(i8* %12)
%14 = add i64 %arg1, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i8*
%18 = call i32 @unlink(i8* %17)
%19 = call i64 @FUNC(i64 %16)
%20 = load i64, i64* %10, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = load i64, i64* %15, align 8
%23 = call i64 @FUNC(i64 %22)
ret i64 %23
uselistorder i32 %1, { 1, 0, 2 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder i32 (i8*)* @unlink, { 2, 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | nfc_genl_setup_device_added_9801 | nfc_genl_setup_device_added | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0, i64 1, i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = call i64 @FUNC(i64 %0, i64 2, i32 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_2
LBL_2:
%14 = add i64 %1, 12
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i64 @FUNC(i64 %0, i64 3, i32 %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:
%21 = add i64 %1, 16
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = zext i8 %23 to i64
%25 = call i64 @FUNC(i64 %0, i64 4, i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_5, label LBL_4
LBL_4:
%29 = add i64 %1, 17
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i64
%33 = call i64 @FUNC(i64 %0, i64 5, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%spec.select = select i1 %35, i64 0, i64 4294967295
ret i64 %spec.select
LBL_5:
ret i64 4294967295
uselistorder i64 4294967295, { 3, 4, 0, 1, 2 }
uselistorder i64 (i64, i64, i64)* @nla_put_u8, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @nla_put_u32, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder label LBL_5, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | falcon_spi_device_init_17417 | falcon_spi_device_init | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i32 %arg4, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 40, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967284, i64* %storemerge4.reg2mem
br i1 %3, label LBL_2, label LBL_5
LBL_2:
%4 = inttoptr i64 %1 to i32*
store i32 %arg3, i32* %4, align 4
%5 = urem i32 %arg4, 32
%6 = shl i32 1, %5
%7 = add i64 %1, 4
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = udiv i32 %arg4, 2
%10 = urem i32 %9, 256
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = load i32, i32* %8, align 4
%14 = icmp eq i32 %13, 512
%15 = icmp eq i32 %10, 1
%16 = icmp eq i1 %15, %14
%storemerge5 = zext i1 %16 to i32
%17 = add i64 %1, 12
%18 = inttoptr i64 %17 to i32*
store i32 %storemerge5, i32* %18, align 4
%19 = udiv i32 %arg4, 4
%20 = urem i32 %19, 256
%21 = add i64 %1, 16
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = udiv i32 %arg4, 8
%24 = urem i32 %23, 32
%25 = shl i32 1, %24
%26 = add i64 %1, 20
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = udiv i32 %arg4, 16
%29 = urem i32 %28, 32
%30 = shl i32 1, %29
%31 = add i64 %1, 24
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = ptrtoint i32* %arg1 to i64
%34 = add i64 %1, 32
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
store i64 %1, i64* %sv_0.0.reg2mem
store i64 0, i64* %rsi.0.reg2mem
br label LBL_4
LBL_3:
%36 = ptrtoint i64* %arg2 to i64
store i64 0, i64* %sv_0.0.reg2mem
store i64 %36, i64* %rsi.0.reg2mem
br label LBL_4
LBL_4:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%37 = call i64 @FUNC(i64 %rsi.0.reload)
store i64 %sv_0.0.reload, i64* %arg2, align 8
store i64 0, i64* %storemerge4.reg2mem
br label LBL_5
LBL_5:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
ret i64 %storemerge4.reload
uselistorder i32 %10, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | reset_terminal_18142 | reset_terminal | 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 i32
%2 = bitcast i64* %arg1 to i32*
store i32 0, i32* %2, align 4
%3 = add i64 %0, 80
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %0, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 12
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = call i64 @FUNC(i64 1, i64 %0)
%13 = trunc i64 %12 to i32
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %0, 20
%17 = inttoptr i64 %16 to i32*
store i32 1, i32* %17, align 4
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
store i32 2, i32* %19, align 4
%20 = add i64 %0, 28
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %0, 32
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
%24 = add i64 %0, 36
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
%26 = add i64 %0, 40
%27 = inttoptr i64 %26 to i32*
store i32 0, i32* %27, align 4
%28 = add i64 %0, 44
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = add i64 %0, 48
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
%32 = add i64 %0, 52
%33 = inttoptr i64 %32 to i32*
store i32 0, i32* %33, align 4
%34 = add i64 %0, 56
%35 = inttoptr i64 %34 to i32*
store i32 0, i32* %35, align 4
%36 = add i64 %0, 60
%37 = inttoptr i64 %36 to i32*
store i32 0, i32* %37, align 4
%38 = add i64 %0, 64
%39 = inttoptr i64 %38 to i32*
store i32 1, i32* %39, align 4
%40 = add i64 %0, 68
%41 = inttoptr i64 %40 to i32*
store i32 1, i32* %41, align 4
%42 = add i64 %0, 72
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
%44 = call i64 @FUNC(i64 %0, i64 0)
%45 = call i64 @FUNC(i64 %0, i64 1)
%46 = call i64 @FUNC(i64 %0, i64 2)
%47 = call i64 @FUNC(i64 %0, i64 3)
%48 = add i64 %0, 76
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = sext i32 %50 to i64
%52 = mul nsw i64 %51, 20
%53 = add i64 %52, ptrtoint (i32** @gv_0 to i64)
%54 = inttoptr i64 %53 to i32*
store i32 0, i32* %54, align 4
%55 = load i32, i32* %49, align 4
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, 20
%58 = add i64 %57, ptrtoint (i32** @gv_1 to i64)
%59 = inttoptr i64 %58 to i32*
store i32 0, i32* %59, align 4
%60 = load i32, i32* %49, align 4
%61 = sext i32 %60 to i64
%62 = mul nsw i64 %61, 20
%63 = add i64 %62, ptrtoint (i32** @gv_2 to i64)
%64 = inttoptr i64 %63 to i32*
store i32 1, i32* %64, align 4
%65 = load i32, i32* %49, align 4
%66 = sext i32 %65 to i64
%67 = mul nsw i64 %66, 20
%68 = add i64 %67, ptrtoint (i32** @gv_3 to i64)
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = add i64 %67, ptrtoint (i32** @gv_4 to i64)
%72 = inttoptr i64 %71 to i32*
store i32 %70, i32* %72, align 4
%73 = add i64 %0, 84
%74 = inttoptr i64 %73 to i32*
store i32 0, i32* %74, align 4
%75 = add i64 %0, 92
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = add i64 %0, 88
%79 = inttoptr i64 %78 to i32*
store i32 %77, i32* %79, align 4
%80 = call i64 @FUNC(i64 %0)
%81 = call i64 @FUNC(i64 %0)
%82 = add i64 %0, 96
%83 = inttoptr i64 %82 to i32*
store i32 16843008, i32* %83, align 4
%84 = add i64 %0, 112
%85 = inttoptr i64 %84 to i32*
store i32 16843009, i32* %85, align 4
%86 = add i64 %0, 108
%87 = inttoptr i64 %86 to i32*
store i32 16843009, i32* %87, align 4
%88 = add i64 %0, 104
%89 = inttoptr i64 %88 to i32*
store i32 16843009, i32* %89, align 4
%90 = add i64 %0, 100
%91 = inttoptr i64 %90 to i32*
store i32 16843009, i32* %91, align 4
%92 = add i64 %0, 116
%93 = inttoptr i64 %92 to i32*
store i32 1000, i32* %93, align 4
%94 = add i64 %0, 120
%95 = inttoptr i64 %94 to i32*
store i32 100, i32* %95, align 4
%96 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%97 = call i64 @FUNC(i64 %0)
%98 = icmp eq i32 %1, 0
store i64 %97, i64* %rax.0.reg2mem
br i1 %98, label LBL_2, label LBL_1
LBL_1:
%99 = call i64 @FUNC(i64 %0, i64 2)
store i64 %99, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 (i64, i64)* @clr_kbd, { 2, 1, 0 }
} | 1 |
reposvul_c_test | is_fuse_usermount_300 | is_fuse_usermount | 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 i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i8*, align 8
%1 = call i64 @FUNC(i64 %0)
store i8* null, i8** %sv_2, align 8
%2 = bitcast i64* %arg2 to i32*
store i32 0, i32* %2, align 4
%3 = icmp eq i64 %1, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_13
LBL_1:
%5 = inttoptr i64 %1 to i8*
%6 = call i32 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = call i32 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = call i32 @strncmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i32 5)
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i32 @strncmp(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i32 8)
%13 = icmp eq i32 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_13
LBL_5:
%14 = call i64 @FUNC(i64 %1)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_6, label LBL_13
LBL_6:
%17 = bitcast i32* %sv_1 to i64*
%18 = bitcast i8** %sv_2 to i64*
%19 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %18, i64* nonnull %17)
%20 = trunc i64 %19 to i32
%21 = icmp ne i32 %20, 0
%22 = load i32, i32* %sv_1, align 4
%23 = icmp eq i32 %22, 0
%or.cond = or i1 %21, %23
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_13, label LBL_7
LBL_7:
%24 = load i8*, i8** %sv_2, align 8
%25 = icmp eq i8* %24, null
%26 = icmp eq i1 %25, false
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_8, label LBL_13
LBL_8:
%27 = call i64 @FUNC(i64 %0)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_10, label LBL_9
LBL_9:
store i32 -1, i32* %2, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%30 = call i32 @getuid()
%31 = call i64 @FUNC(i64 %0, i64 %27)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_12, label LBL_11
LBL_11:
store i32 -1, i32* %2, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%35 = bitcast i64* %sv_0 to i8*
%36 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %35, i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i32 %30)
%37 = load i32, i32* %sv_1, align 4
%38 = load i8*, i8** %sv_2, align 8
%39 = call i32 @strncmp(i8* %38, i8* nonnull %35, i32 %37)
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i64
store i64 %41, 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* %2, { 1, 0, 2 }
uselistorder i8** %sv_2, { 2, 1, 3, 0 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 1, 2, 3, 4, 5 }
uselistorder i32 (i8*, i8*, i32)* @strncmp, { 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 4, 5, 6, 7, 8, 9, 1 }
uselistorder label LBL_13, { 5, 6, 7, 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | pcie_aer_inject_error_print_16604 | pcie_aer_inject_error_print | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%7 = trunc i64 %6 to i32
%8 = ashr i32 %7, 3
%9 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0))
%10 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0))
%11 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_6, i64 0, i64 0))
%12 = zext i32 %8 to i64
%13 = and i64 %9, 4294967295
%14 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_7, i64 0, i64 0), i64 %11, i64 %10, i64 %13, i64 %12)
ret i64 %14
uselistorder i64 (i64, i8*)* @qdict_get_str, { 1, 0 }
uselistorder i64 (i64, i8*)* @qdict_get_int, { 1, 0 }
} | 1 |
BinRealVul | packet_enable_delayed_compress_3981 | packet_enable_delayed_compress | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%0 = mul i64 %indvars.iv.reload, 8
%1 = add i64 %0, ptrtoint (i64* @gv_1 to i64)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_8, label LBL_2
LBL_2:
%5 = inttoptr i64 %3 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_8, label LBL_3
LBL_3:
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = icmp eq i32 %12, 2
%15 = icmp eq i1 %14, false
store i64 %13, i64* %rax.0.reg2mem
br i1 %15, label LBL_8, label LBL_4
LBL_4:
%16 = call i64 @FUNC()
%17 = icmp eq i64 %indvars.iv.reload, 1
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 6)
br label LBL_7
LBL_6:
%20 = call i64 @FUNC()
br label LBL_7
LBL_7:
store i32 1, i32* %5, align 4
store i64 %3, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_9, label LBL_1
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | security_get_permissions_9864 | security_get_permissions | define i64 @FUNC(i8* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%storemerge34.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i8* %arg1 to i64
%6 = call i64 @FUNC(i64* nonnull @gv_0)
%7 = load i64, i64* @gv_1, align 8
%8 = call i64 @FUNC(i64 %7, i64 %5)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %5, i64 %4, i64 %2, i64 %1)
store i64 4294967274, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_2:
%12 = inttoptr i64 %8 to i32*
%13 = load i32, i32* %12, align 4
%14 = bitcast i64* %arg3 to i32*
store i32 %13, i32* %14, align 4
%sext = mul i64 %3, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = call i64 @FUNC(i64 %15, i64 8, i64 0)
store i64 %16, i64* %arg2, align 8
%17 = add i64 %8, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
store i64 8, i64* %rsi.0.reg2mem
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = add i64 %19, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 4198946, i64 8)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 4198946, i64* %rsi.0.reg2mem
store i64 %24, i64* %sv_0.1.reg2mem
br i1 %27, label LBL_6, label LBL_4
LBL_4:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%28 = add i64 %8, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i64 4198946, i64 %rsi.0.reload)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
store i64 %31, i64* %sv_0.0.reg2mem
store i64 %31, i64* %sv_0.1.reg2mem
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%35 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %sv_0.0.reload, i64* %storemerge.in.reg2mem
br label LBL_10
LBL_6:
%36 = trunc i64 %3 to i32
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%37 = call i64 @FUNC(i64* nonnull @gv_0)
%38 = icmp eq i32 %36, 0
br i1 %38, label LBL_9, label LBL_7
LBL_7:
%39 = and i64 %3, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge34.reg2mem
br label LBL_8
LBL_8:
%storemerge34.reload = load i32, i32* %storemerge34.reg2mem
%.reload = load i64, i64* %.reg2mem
%40 = mul i64 %.reload, 8
%41 = add nsw i64 %40, 4198946
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43)
%45 = add i32 %storemerge34.reload, 1
%46 = sext i32 %45 to i64
%47 = icmp sgt i64 %39, %46
store i64 %46, i64* %.reg2mem
store i32 %45, i32* %storemerge34.reg2mem
br i1 %47, label LBL_8, label LBL_9
LBL_9:
%48 = call i64 @FUNC(i64 4198946)
store i64 %sv_0.1.reload, i64* %storemerge.in.reg2mem
br label LBL_10
LBL_10:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge34.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64*)* @read_unlock, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @hashtab_map, { 1, 0 }
uselistorder i64 4198946, { 1, 2, 3, 0, 4 }
uselistorder i64 8, { 1, 4, 2, 5, 0, 3 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | init_stream_16650 | init_stream | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%storemerge.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i128, i128* %0
%2 = load i128, i128* %0
%3 = call i64* @malloc(i32 16)
%4 = icmp eq i64* %3, null
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_6
LBL_1:
%6 = load i64, i64* %3, align 8
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = load i64, i64* %3, align 8
%9 = add i64 %8, 4
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
%11 = bitcast i64* %rdi to i32*
%12 = load i32, i32* %11, align 8
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = load i64, i64* %3, align 8
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to i32*
store i32 640, i32* %17, align 4
%18 = load i64, i64* %3, align 8
%19 = add i64 %18, 12
%20 = inttoptr i64 %19 to i32*
store i32 400, i32* %20, align 4
br label LBL_3
LBL_3:
%21 = ptrtoint i64* %3 to i64
%22 = add i64 %21, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = call i128 @FUNC(i128 %2, i128 %2)
%26 = call i128 @FUNC(i32 %24)
%27 = add i64 %21, 12
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = call i128 @FUNC(i128 %1, i128 %1)
%31 = call i128 @FUNC(i32 %29)
%32 = call i128 @FUNC(i128 %26)
%33 = call i128 @FUNC(i128 %32, i128 %31)
%34 = add i64 %arg1, 8
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = call i128 @FUNC(i128 %26, i128 %26)
%38 = call i128 @FUNC(i32 %36)
%39 = call i128 @FUNC(i128 %38, i128 %33)
%40 = call i128 @FUNC(i64 4607182418800017408)
call void @FUNC(i128 %39, i128 %40)
store i32 1, i32* %storemerge1.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%41 = load i32, i32* %23, align 4
%42 = call i128 @FUNC(i128 %39, i128 %39)
%43 = call i128 @FUNC(i32 %41)
%44 = load i32, i32* %28, align 4
%45 = call i128 @FUNC(i128 %31, i128 %31)
%46 = call i128 @FUNC(i32 %44)
%47 = call i128 @FUNC(i128 %43)
%48 = call i128 @FUNC(i128 %47, i128 %46)
%49 = load i32, i32* %35, align 4
%50 = call i128 @FUNC(i128 %43, i128 %43)
%51 = call i128 @FUNC(i32 %49)
%52 = call i128 @FUNC(i128 %51, i128 %48)
%53 = call i32 @FUNC(i128 %52)
store i32 %53, i32* %storemerge1.reg2mem
br label LBL_5
LBL_5:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
store i32 %storemerge1.reload, i32* %35, align 4
store i64 %21, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i128 %43, { 2, 1, 0 }
uselistorder i128 %39, { 1, 0, 2 }
uselistorder i32* %35, { 1, 0, 2 }
uselistorder i128 %31, { 1, 0, 2 }
uselistorder i128 %26, { 2, 1, 0 }
uselistorder i64* %3, { 5, 0, 1, 2, 3, 4 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i128* %0, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | qemu_peek_byte_15080 | qemu_peek_byte | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @abort()
unreachable
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp ult i32 %7, %10
store i32 %7, i32* %.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %4)
%13 = load i32, i32* %6, align 4
%14 = load i32, i32* %9, align 4
%15 = icmp ult i32 %13, %14
store i32 %13, i32* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %15, label LBL_4, label LBL_5
LBL_4:
%.reload = load i32, i32* %.reg2mem
%16 = add i64 %4, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = sext i32 %.reload to i64
%20 = add i64 %18, %19
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i64
store i64 %23, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | dnxhd_init_vlc_15261 | dnxhd_init_vlc | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %arg2 to i32
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%sext2 = mul i64 %10, 4294967296
%18 = ashr exact i64 %sext2, 32
%19 = mul nsw i64 %18, 56
%20 = add i64 %19, ptrtoint (i32** @gv_1 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 8
%23 = add i64 %7, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %22, %25
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = add i64 %7, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = zext i32 %25 to i64
%31 = zext i32 %22 to i64
%32 = call i64 @FUNC(i64 %29, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0), i64 %31, i64 %30, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%33 = add i64 %7, 16
%34 = inttoptr i64 %33 to i64*
store i64 %20, i64* %34, align 8
%35 = add i64 %7, 24
%36 = call i64 @FUNC(i64 %35)
%37 = add i64 %7, 32
%38 = call i64 @FUNC(i64 %37)
%39 = add i64 %7, 40
%40 = call i64 @FUNC(i64 %39)
%41 = load i64, i64* %34, align 8
%42 = add i64 %41, 16
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = add i64 %41, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = call i64 @FUNC(i64 %35, i64 8, i64 257, i64 %47, i64 1, i64 1, i64 %44, i64 2, i64 2, i64 0)
%49 = load i64, i64* %34, align 8
%50 = add i64 %49, 32
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = add i64 %49, 24
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = load i32, i32* %24, align 4
%57 = add i32 %56, 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 %37, i64 12, i64 %58, i64 %55, i64 1, i64 1, i64 %52, i64 1, i64 1, i64 0)
%60 = load i64, i64* %34, align 8
%61 = add i64 %60, 48
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = add i64 %60, 40
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = call i64 @FUNC(i64 %39, i64 8, i64 62, i64 %66, i64 1, i64 1, i64 %63, i64 2, i64 2, i64 0)
%68 = load i64, i64* @gv_3, align 8
%69 = add i64 %7, 56
%70 = add i64 %7, 48
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = call i64 @FUNC(i64 %72, i64 %69, i64 %68)
%74 = trunc i64 %8 to i32
%75 = bitcast i64* %arg1 to i32*
store i32 %74, i32* %75, align 4
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 %7, { 2, 1, 3, 4, 5, 7, 8, 6, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64, i64, i64, i64, i64)* @init_vlc, { 2, 1, 0 }
uselistorder i64 1, { 3, 2, 0, 1, 5, 4, 7, 6 }
uselistorder i64 (i64)* @ff_free_vlc, { 2, 1, 0 }
uselistorder i64 56, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 3, 2, 4 }
uselistorder i64 32, { 3, 4, 0, 1, 2 }
uselistorder label LBL_6, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | update_cr8_intercept_4353 | update_cr8_intercept | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
%4 = icmp eq i64* %arg1, null
%or.cond = or i1 %4, %3
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_4, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %5)
br label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %5)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 0, 3, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | do_pci_unregister_device_15603 | do_pci_unregister_device | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%sext = mul i64 %1, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add i64 %6, %7
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = call i64 @FUNC(i64 %arg1)
%11 = add i64 %arg1, 24
%12 = add i64 %arg1, 16
%13 = call i64 @FUNC(i64 %12, i64 %11)
%14 = add i64 %arg1, 32
%15 = call i64 @FUNC(i64 %14)
ret i64 %15
} | 1 |
BinRealVul | state_9241 | state | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = bitcast i64* %arg1 to i32*
store i32 %1, i32* %2, align 4
ret i64 %0
} | 0 |
BinRealVul | SFS_ObjectMemberAccess_12027 | SFS_ObjectMemberAccess | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %6, i64 4202512)
%9 = call i64 @FUNC(i64 %6)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | input_set_capability_7077 | input_set_capability | 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
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg3, 4294967296
%5 = ashr exact i64 %sext2, 32
%6 = icmp ult i32 %3, 16
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = mul i64 %arg2, 4
%8 = and i64 %7, 17179869180
%9 = add i64 %8, ptrtoint (i32** @gv_0 to i64)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp ne i32 %11, 0
%13 = trunc i64 %5 to i32
%14 = icmp ult i32 %11, %13
%or.cond = icmp eq i1 %12, %14
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
%15 = and i64 %4, 4294967295
%16 = and i64 %5, 4294967295
%17 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i64 %16, i64 %15, i64 %2, i64 %1)
%18 = call i64 @FUNC()
store i64 %18, i64* %rax.0.reg2mem
br label LBL_14
LBL_3:
%19 = ptrtoint i64* %arg1 to i64
%20 = and i64 %4, 4294967295
store i64 %20, i64* @0, align 8
%trunc = trunc i64 %4 to i32
switch i32 %trunc, label LBL_12 [
i32 0, label LBL_4
i32 1, label LBL_5
i32 2, label LBL_6
i32 3, label LBL_7
i32 4, label LBL_8
i32 5, label LBL_9
i32 6, label LBL_10
i32 7, label LBL_11
i32 8, label LBL_13
]
LBL_4:
%21 = and i64 %5, 4294967295
%22 = call i64 @FUNC(i64 %21, i64 %19)
br label LBL_13
LBL_5:
%23 = add i64 %19, 128
%24 = and i64 %5, 4294967295
%25 = call i64 @FUNC(i64 %24, i64 %23)
br label LBL_13
LBL_6:
%26 = call i64 @FUNC(i64 %19)
%27 = add i64 %19, 256
%28 = and i64 %5, 4294967295
%29 = call i64 @FUNC(i64 %28, i64 %27)
br label LBL_13
LBL_7:
%30 = add i64 %19, 384
%31 = and i64 %5, 4294967295
%32 = call i64 @FUNC(i64 %31, i64 %30)
br label LBL_13
LBL_8:
%33 = add i64 %19, 512
%34 = and i64 %5, 4294967295
%35 = call i64 @FUNC(i64 %34, i64 %33)
br label LBL_13
LBL_9:
%36 = add i64 %19, 640
%37 = and i64 %5, 4294967295
%38 = call i64 @FUNC(i64 %37, i64 %36)
br label LBL_13
LBL_10:
%39 = add i64 %19, 768
%40 = and i64 %5, 4294967295
%41 = call i64 @FUNC(i64 %40, i64 %39)
br label LBL_13
LBL_11:
%42 = add i64 %19, 896
%43 = and i64 %5, 4294967295
%44 = call i64 @FUNC(i64 %43, i64 %42)
br label LBL_13
LBL_12:
%45 = and i64 %5, 4294967295
%46 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i64 %20, i64 %45, i64 %2, i64 %1)
%47 = call i64 @FUNC()
store i64 %47, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%48 = add i64 %19, 1024
%49 = call i64 @FUNC(i64 %20, i64 %48)
store i64 %49, 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, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %5, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 10, 0 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @__set_bit, { 1, 8, 7, 6, 5, 4, 3, 2, 0 }
uselistorder i64 ()* @dump_stack, { 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @pr_err, { 1, 0 }
uselistorder i64 4294967295, { 0, 8, 7, 6, 5, 4, 3, 2, 1, 9, 10, 11 }
uselistorder label LBL_13, { 1, 2, 3, 4, 5, 6, 7, 8, 0 }
} | 0 |
BinRealVul | print_string_ptr_10203 | print_string_ptr | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i8*
%sv_0.0.in.lcssa.reg2mem = alloca i64
%sv_0.0.in.be.reg2mem = alloca i64
%sv_0.0.in15.reg2mem = alloca i64
%sv_0.017.reg2mem = alloca i8*
%.reg2mem62 = alloca i8*
%.reg2mem60 = alloca i8
%storemerge7.in.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i32
%storemerge55.reg2mem = alloca i8*
%sv_1.119.reg2mem = alloca i32
%.in.reg2mem = alloca i8
%.reg2mem58 = alloca i8*
%sv_1.0.reg2mem = alloca i32
%storemerge6.in.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sv_2.022.reg2mem = alloca i32
%.reg2mem56 = alloca i8
%.reg2mem = alloca i8*
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_3 = alloca i8*, align 8
%1 = icmp eq i8* %arg1, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_6, label LBL_1
LBL_1:
%3 = icmp eq i64* %arg2, null
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %0, i64 3)
store i64 %4, i64* %storemerge.in.reg2mem
br label LBL_4
LBL_3:
%5 = call i64 @FUNC(i64 3)
store i64 %5, i64* %storemerge.in.reg2mem
br label LBL_4
LBL_4:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%6 = icmp eq i64 %storemerge.in.reload, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_43
LBL_5:
%storemerge = inttoptr i64 %storemerge.in.reload to i16*
store i16 8738, i16* %storemerge, align 2
%8 = add i64 %storemerge.in.reload, 2
%9 = inttoptr i64 %8 to i8*
store i8 0, i8* %9, align 1
store i64 %storemerge.in.reload, i64* %rax.0.reg2mem
br label LBL_43
LBL_6:
%10 = ptrtoint i8* %arg1 to i64
%11 = bitcast i8** %sv_3 to i64*
store i64 %10, i64* %11, align 8
%12 = load i8, i8* %arg1, align 1
%13 = icmp eq i8 %12, 0
%14 = icmp eq i1 %13, false
store i8* %arg1, i8** %.reg2mem
store i8 %12, i8* %.reg2mem56
store i32 0, i32* %sv_2.022.reg2mem
store i64 %10, i64* %.pre-phi.reg2mem
br i1 %14, label LBL_7, label LBL_9
LBL_7:
%sv_2.022.reload = load i32, i32* %sv_2.022.reg2mem
%.reload57 = load i8, i8* %.reg2mem56
%.reload = load i8*, i8** %.reg2mem
%.off = add i8 %.reload57, -1
%15 = icmp ult i8 %.off, 31
%16 = icmp eq i8 %.reload57, 34
%or.cond13 = or i1 %16, %15
%17 = icmp eq i8 %.reload57, 92
%narrow = or i1 %17, %or.cond13
%storemerge8 = zext i1 %narrow to i32
%18 = or i32 %sv_2.022.reload, %storemerge8
%19 = ptrtoint i8* %.reload to i64
%20 = add i64 %19, 1
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 0
%24 = icmp eq i1 %23, false
store i8* %21, i8** %.reg2mem
store i8 %22, i8* %.reg2mem56
store i32 %18, i32* %sv_2.022.reg2mem
br i1 %24, label LBL_7, label LBL_8
LBL_8:
store i8* %21, i8** %sv_3, align 8
%phitmp = icmp eq i32 %18, 0
%phitmp30 = icmp eq i1 %phitmp, false
store i64 %20, i64* %.pre-phi.reg2mem
br i1 %phitmp30, label LBL_14, label LBL_9
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%25 = sub i64 %.pre-phi.reload, %10
%26 = trunc i64 %25 to i32
%27 = icmp eq i64* %arg2, null
%28 = add i32 %26, 3
br i1 %27, label LBL_11, label LBL_10
LBL_10:
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %0, i64 %29)
store i64 %30, i64* %storemerge6.in.reg2mem
br label LBL_12
LBL_11:
%31 = sext i32 %28 to i64
%32 = call i64 @FUNC(i64 %31)
store i64 %32, i64* %storemerge6.in.reg2mem
br label LBL_12
LBL_12:
%storemerge6.in.reload = load i64, i64* %storemerge6.in.reg2mem
%33 = icmp eq i64 %storemerge6.in.reload, 0
%34 = icmp eq i1 %33, false
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_13, label LBL_43
LBL_13:
%35 = add i64 %storemerge6.in.reload, 1
%36 = inttoptr i64 %storemerge6.in.reload to i8*
store i8 34, i8* %36, align 1
%37 = inttoptr i64 %35 to i8*
%38 = call i8* @strcpy(i8* %37, i8* %arg1)
%sext = mul i64 %25, 4294967296
%39 = ashr exact i64 %sext, 32
%40 = add i64 %35, %39
%41 = inttoptr i64 %40 to i8*
store i8 34, i8* %41, align 1
%42 = add i64 %40, 1
%43 = inttoptr i64 %42 to i8*
store i8 0, i8* %43, align 1
store i64 %storemerge6.in.reload, i64* %rax.0.reg2mem
br label LBL_43
LBL_14:
store i64 %10, i64* %11, align 8
store i8* %arg1, i8** %.reg2mem58
store i8 %12, i8* %.in.reg2mem
store i32 0, i32* %sv_1.119.reg2mem
br label LBL_19
LBL_15:
%.in.reload = load i8, i8* %.in.reg2mem
%44 = zext i8 %.in.reload to i32
%45 = call i8* @strchr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i32 %44)
%46 = icmp eq i8* %45, null
br i1 %46, label LBL_17, label LBL_16
LBL_16:
%47 = add i32 %sv_1.119.reload, 2
store i32 %47, i32* %sv_1.0.reg2mem
br label LBL_18
LBL_17:
%48 = icmp ult i8 %.in.reload, 32
%49 = add i32 %sv_1.119.reload, 6
%spec.select10 = select i1 %48, i32 %49, i32 %55
store i32 %spec.select10, i32* %sv_1.0.reg2mem
br label LBL_18
LBL_18:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%50 = ptrtoint i8* %.reload59 to i64
%51 = add i64 %50, 1
%52 = inttoptr i64 %51 to i8*
%53 = load i8, i8* %52, align 1
%54 = icmp eq i8 %53, 0
store i8* %52, i8** %.reg2mem58
store i8 %53, i8* %.in.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.119.reg2mem
br i1 %54, label LBL_21, label LBL_19
LBL_19:
%sv_1.119.reload = load i32, i32* %sv_1.119.reg2mem
%.reload59 = load i8*, i8** %.reg2mem58
%55 = add i32 %sv_1.119.reload, 1
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_15, label LBL_19.LBL_22_crit_edge
LBL_20:
store i8* %.reload59, i8** %storemerge55.reg2mem
store i32 %55, i32* %sv_1.2.reg2mem
br label LBL_22
LBL_21:
store i8* %52, i8** %storemerge55.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem
br label LBL_22
LBL_22:
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%storemerge55.reload = load i8*, i8** %storemerge55.reg2mem
store i8* %storemerge55.reload, i8** %sv_3, align 8
%58 = icmp eq i64* %arg2, null
%59 = add i32 %sv_1.2.reload, 3
br i1 %58, label LBL_24, label LBL_23
LBL_23:
%60 = zext i32 %59 to i64
%61 = call i64 @FUNC(i64 %0, i64 %60)
store i64 %61, i64* %storemerge7.in.reg2mem
br label LBL_25
LBL_24:
%62 = sext i32 %59 to i64
%63 = call i64 @FUNC(i64 %62)
store i64 %63, i64* %storemerge7.in.reg2mem
br label LBL_25
LBL_25:
%storemerge7.in.reload = load i64, i64* %storemerge7.in.reg2mem
%64 = icmp eq i64 %storemerge7.in.reload, 0
%65 = icmp eq i1 %64, false
store i64 0, i64* %rax.0.reg2mem
br i1 %65, label LBL_26, label LBL_43
LBL_26:
store i64 %10, i64* %11, align 8
%66 = add i64 %storemerge7.in.reload, 1
%67 = inttoptr i64 %storemerge7.in.reload to i8*
store i8 34, i8* %67, align 1
%sv_0.014 = inttoptr i64 %66 to i8*
%68 = load i8*, i8** %sv_3, align 8
%69 = load i8, i8* %68, align 1
%70 = icmp eq i8 %69, 0
%71 = icmp eq i1 %70, false
store i8 %69, i8* %.reg2mem60
store i8* %68, i8** %.reg2mem62
store i8* %sv_0.014, i8** %sv_0.017.reg2mem
store i64 %66, i64* %sv_0.0.in15.reg2mem
store i64 %66, i64* %sv_0.0.in.lcssa.reg2mem
store i8* %sv_0.014, i8** %sv_0.0.lcssa.reg2mem
br i1 %71, label LBL_27, label LBL_42
LBL_27:
%sv_0.0.in15.reload = load i64, i64* %sv_0.0.in15.reg2mem
%sv_0.017.reload = load i8*, i8** %sv_0.017.reg2mem
%.reload61 = load i8, i8* %.reg2mem60
%72 = icmp ult i8 %.reload61, 32
br i1 %72, label LBL_30, label %switch.early.test
LBL_28:
%.reload63 = load i8*, i8** %.reg2mem62
%73 = ptrtoint i8* %.reload63 to i64
%74 = add i64 %73, 1
%75 = inttoptr i64 %74 to i8*
store i8* %75, i8** %sv_3, align 8
%76 = add i64 %sv_0.0.in15.reload, 1
store i8 %.reload61, i8* %sv_0.017.reload, align 1
store i64 %76, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_29:
%sv_0.0.in.be.reload = load i64, i64* %sv_0.0.in.be.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in.be.reload to i8*
%77 = load i8*, i8** %sv_3, align 8
%78 = load i8, i8* %77, align 1
%79 = icmp eq i8 %78, 0
%80 = icmp eq i1 %79, false
store i8 %78, i8* %.reg2mem60
store i8* %77, i8** %.reg2mem62
store i8* %sv_0.0, i8** %sv_0.017.reg2mem
store i64 %sv_0.0.in.be.reload, i64* %sv_0.0.in15.reg2mem
store i64 %sv_0.0.in.be.reload, i64* %sv_0.0.in.lcssa.reg2mem
store i8* %sv_0.0, i8** %sv_0.0.lcssa.reg2mem
br i1 %80, label LBL_27, label LBL_42
LBL_30:
%81 = add i64 %sv_0.0.in15.reload, 1
%82 = inttoptr i64 %81 to i8*
store i8 92, i8* %sv_0.017.reload, align 1
%83 = load i8*, i8** %sv_3, align 8
%84 = ptrtoint i8* %83 to i64
%85 = add i64 %84, 1
%86 = inttoptr i64 %85 to i8*
store i8* %86, i8** %sv_3, align 8
%87 = load i8, i8* %83, align 1
%88 = icmp ugt i8 %87, 34
br i1 %88, label LBL_33, label LBL_31
LBL_31:
%89 = icmp ult i8 %87, 8
br i1 %89, label LBL_41, label LBL_32
LBL_32:
%90 = zext i8 %87 to i64
%91 = add nuw nsw i64 %90, 4294967288
%92 = and i64 %91, 4294967295
store i64 %92, i64* @0, align 8
%trunc = trunc i64 %91 to i32
switch i32 %trunc, label LBL_41 [
i32 0, label LBL_36
i32 1, label LBL_40
i32 2, label LBL_38
i32 4, label LBL_37
i32 5, label LBL_39
i32 26, label LBL_35
]
LBL_33:
%93 = icmp eq i8 %87, 92
%94 = icmp eq i1 %93, false
br i1 %94, label LBL_41, label LBL_34
LBL_34:
%95 = add i64 %sv_0.0.in15.reload, 2
store i8 92, i8* %82, align 1
store i64 %95, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_35:
%96 = add i64 %sv_0.0.in15.reload, 2
store i8 34, i8* %82, align 1
store i64 %96, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_36:
%97 = add i64 %sv_0.0.in15.reload, 2
store i8 98, i8* %82, align 1
store i64 %97, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_37:
%98 = add i64 %sv_0.0.in15.reload, 2
store i8 102, i8* %82, align 1
store i64 %98, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_38:
%99 = add i64 %sv_0.0.in15.reload, 2
store i8 110, i8* %82, align 1
store i64 %99, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_39:
%100 = add i64 %sv_0.0.in15.reload, 2
store i8 114, i8* %82, align 1
store i64 %100, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_40:
%101 = add i64 %sv_0.0.in15.reload, 2
store i8 116, i8* %82, align 1
store i64 %101, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_41:
%102 = zext i8 %87 to i32
%103 = call i32 (i8*, i8*, ...) @sprintf(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 %102)
%104 = add i64 %sv_0.0.in15.reload, 6
store i64 %104, i64* %sv_0.0.in.be.reg2mem
br label LBL_29
LBL_42:
%sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem
%sv_0.0.in.lcssa.reload = load i64, i64* %sv_0.0.in.lcssa.reg2mem
%105 = add i64 %sv_0.0.in.lcssa.reload, 1
store i8 34, i8* %sv_0.0.lcssa.reload, align 1
%106 = inttoptr i64 %105 to i8*
store i8 0, i8* %106, align 1
store i64 %storemerge7.in.reload, i64* %rax.0.reg2mem
br label LBL_43
LBL_43:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %87, { 1, 0, 4, 2, 3 }
uselistorder i8* %82, { 7, 1, 4, 2, 3, 0, 5, 6 }
uselistorder i64 %sv_0.0.in.be.reload, { 0, 2, 1 }
uselistorder i8 %.reload61, { 2, 0, 1 }
uselistorder i64 %sv_0.0.in15.reload, { 9, 2, 5, 3, 4, 1, 6, 0, 7, 8 }
uselistorder i64 %storemerge7.in.reload, { 0, 3, 2, 1 }
uselistorder i32 %59, { 1, 0 }
uselistorder i32 %55, { 0, 2, 1 }
uselistorder i32 %sv_1.119.reload, { 2, 1, 0 }
uselistorder i8 %.in.reload, { 1, 0 }
uselistorder i64 %storemerge6.in.reload, { 0, 3, 2, 1 }
uselistorder i32 %28, { 1, 0 }
uselistorder i8* %21, { 1, 0, 2 }
uselistorder i32 %18, { 1, 0 }
uselistorder i8 %.reload57, { 2, 1, 0 }
uselistorder i64 %10, { 2, 3, 1, 0, 4 }
uselistorder i64 %storemerge.in.reload, { 0, 3, 1, 2 }
uselistorder i8** %sv_3, { 6, 5, 7, 4, 2, 0, 1, 3 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem56, { 2, 0, 1 }
uselistorder i32* %sv_2.022.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge6.in.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem58, { 0, 2, 1 }
uselistorder i8* %.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.119.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge7.in.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem60, { 2, 0, 1 }
uselistorder i8** %.reg2mem62, { 2, 0, 1 }
uselistorder i8** %sv_0.017.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in.be.reg2mem, { 9, 3, 6, 4, 5, 2, 7, 8, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 2, 4, 3 }
uselistorder i8 32, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 1, { 5, 1, 2, 3, 4, 6, 7, 0, 8, 9 }
uselistorder i8 92, { 3, 1, 4, 0, 2 }
uselistorder i8 34, { 4, 3, 2, 1, 5, 6, 7, 0 }
uselistorder i32 0, { 3, 4, 0, 2, 1 }
uselistorder i8 0, { 2, 3, 1, 4, 5, 6, 0, 7 }
uselistorder i64 2, { 2, 5, 3, 4, 1, 6, 0, 7 }
uselistorder i64 (i64)* @cJSON_malloc, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @ensure, { 2, 1, 0 }
uselistorder i1 false, { 3, 4, 2, 5, 6, 7, 0, 8, 1, 9, 10, 11 }
uselistorder i8* %arg1, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_43, { 3, 0, 4, 1, 5, 2 }
uselistorder label LBL_29, { 2, 8, 7, 6, 5, 4, 3, 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | zmalloc_no_tcache_7221 | zmalloc_no_tcache | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 16
%2 = call i64 @FUNC(i64 %1, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1)
unreachable
LBL_2:
%6 = call i64 @FUNC(i64 %2)
%7 = call i64 @FUNC(i64 %6)
ret i64 %2
uselistorder i64 %2, { 1, 0, 2 }
} | 0 |
BinRealVul | qxl_dirty_surfaces_17252 | qxl_dirty_surfaces | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem8 = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem6 = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
%5 = icmp eq i32 %2, 2
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_13, label LBL_2
LBL_2:
%7 = ptrtoint i32* %arg1 to i64
%8 = add i64 %7, 24
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %7, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %7, 8
%15 = call i64 @FUNC(i64 %14, i64 %13, i32 %10)
%16 = add i64 %7, 56
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %7, 40
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_13, label LBL_3
LBL_3:
%22 = add i64 %7, 32
%23 = inttoptr i64 %22 to i64*
%24 = add i64 %7, 48
%25 = inttoptr i64 %24 to i64*
store i32 %20, i32* %.reg2mem
store i64 0, i64* %.reg2mem6
store i32 0, i32* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload7 = load i64, i64* %.reg2mem6
%.reload = load i32, i32* %.reg2mem
%26 = load i64, i64* %23, align 8
%27 = mul i64 %.reload7, 8
%28 = add i64 %26, %27
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
store i32 %.reload, i32* %.reg2mem8
br i1 %31, label LBL_12, label LBL_5
LBL_5:
%32 = call i64 @FUNC(i64 %7, i64 %30, i64 0)
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_7, label LBL_6
LBL_6:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_7
LBL_7:
%35 = inttoptr i64 %32 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 1
br i1 %37, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 85, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_9
LBL_9:
%38 = add i64 %32, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %7, i64 %40, i64 0)
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_11, label LBL_10
LBL_10:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_11
LBL_11:
%44 = sub i64 %41, %17
%45 = add i64 %32, 8
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %32, 12
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = sub i32 0, %50
%52 = icmp slt i32 %51, 0
%53 = icmp eq i1 %52, false
%54 = select i1 %53, i32 %51, i32 %50
%55 = mul i32 %54, %47
%56 = load i64, i64* %25, align 8
%57 = zext i32 %55 to i64
%58 = and i64 %44, 4294967295
%59 = call i64 @FUNC(i64 %56, i32 %storemerge3.reload, i64 %58, i64 %57)
%60 = call i64 @FUNC(i64 %16, i64 %44, i32 %55)
%.pre = load i32, i32* %19, align 4
store i32 %.pre, i32* %.reg2mem8
br label LBL_12
LBL_12:
%.reload9 = load i32, i32* %.reg2mem8
%61 = add i32 %storemerge3.reload, 1
%62 = zext i32 %.reload9 to i64
%63 = sext i32 %61 to i64
%64 = icmp slt i64 %63, %62
store i32 %.reload9, i32* %.reg2mem
store i64 %63, i64* %.reg2mem6
store i32 %61, i32* %storemerge3.reg2mem
store i64 %62, i64* %rax.0.reg2mem
br i1 %64, label LBL_4, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload9, { 1, 0 }
uselistorder i64 %44, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i64 %7, { 1, 3, 0, 2, 4, 5, 6, 7, 8 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem6, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @qxl_phys2virt, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i64 (i64, i64, i32)* @qxl_set_dirty, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | virtio_queue_host_notifier_read_1213 | virtio_queue_host_notifier_read | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | iucv_sock_close_9572 | iucv_sock_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 3
br i1 %6, label LBL_12, label LBL_1
LBL_1:
%7 = icmp sgt i32 %5, 3
br i1 %7, label LBL_13, label LBL_2
LBL_2:
switch i32 %5, label LBL_13 [
i32 2, label LBL_6
i32 0, label LBL_3
i32 1, label LBL_4
]
LBL_3:
%8 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_4:
%9 = inttoptr i64 %3 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 5
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_63, label LBL_5
LBL_5:
%13 = call i64 @FUNC(i64 %2, i64 6)
%14 = trunc i64 %13 to i32
%15 = bitcast i64* %arg1 to i32*
%phitmp = icmp eq i32 %14, 0
%phitmp2 = icmp eq i1 %phitmp, false
store i32 3, i32* %15, align 4
br i1 %phitmp2, label LBL_12, label LBL_8
LBL_6:
%16 = bitcast i64* %arg1 to i32*
store i32 3, i32* %16, align 4
br label LBL_8
LBL_7:
%17 = bitcast i64* %arg1 to i32*
store i32 3, i32* %17, align 4
br label LBL_8
LBL_8:
%18 = add i64 %3, 4
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_12, label LBL_9
LBL_9:
%23 = call i64 @FUNC(i64 %2, i64 1)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 1000, i64* %storemerge.reg2mem
br i1 %25, label LBL_11, label LBL_10
LBL_10:
%26 = add i64 %2, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
%spec.select = select i1 %29, i64 1000, i64 %28
store i64 %spec.select, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%30 = call i64 @FUNC(i64 %2, i64 4, i64 0)
%31 = and i64 %30, 4294967295
%32 = call i64 @FUNC(i64 %2, i64 %31, i64 %storemerge.reload)
br label LBL_12
LBL_12:
%33 = bitcast i64* %arg1 to i32*
store i32 4, i32* %33, align 4
%34 = add i64 %2, 4
%35 = inttoptr i64 %34 to i32*
store i32 104, i32* %35, align 4
%36 = add i64 %3, 4
%37 = call i64 @FUNC(i64 %36)
%38 = call i64 @FUNC(i64 %36)
br label LBL_13
LBL_13:
%39 = call i64 @FUNC(i64 %2, i64 1)
br label LBL_14
LBL_14:
%40 = add i64 %3, 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %42, 0
br i1 %43, label LBL_16, label LBL_15
LBL_15:
%44 = call i64 @FUNC(i64 %42)
store i64 0, i64* %41, align 8
%45 = add i64 %2, 16
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
br label LBL_16
LBL_16:
%47 = call i64 @FUNC(i64 %2, i64 2)
%48 = call i64 @FUNC(i64 %2)
ret i64 %48
uselistorder i32 %5, { 2, 1, 0 }
uselistorder i64 %3, { 2, 0, 1, 3 }
uselistorder i64 %2, { 8, 7, 6, 9, 10, 4, 3, 2, 5, 0, 1, 11, 12 }
uselistorder i64 (i64)* @skb_queue_purge, { 1, 0 }
uselistorder i64 1000, { 1, 0 }
uselistorder i64 4, { 1, 2, 0, 3 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 1, 0 }
uselistorder i32 3, { 0, 1, 4, 3, 2 }
uselistorder i64* %arg1, { 2, 0, 1, 3, 4 }
uselistorder label LBL_13, { 1, 0, 2 }
} | 0 |
BinRealVul | decode_flush_18751 | decode_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = ptrtoint i64* %arg1 to i64
%spec.select = select i1 %4, i64 %3, i64 %5
ret i64 %spec.select
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | gen_set_psr_im_17147 | gen_set_psr_im | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = zext i32 %arg4 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = zext i32 %arg2 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4, i32 %arg3)
ret i64 %5
} | 1 |
BinRealVul | qcow2_alloc_cluster_link_l2_15041 | qcow2_alloc_cluster_link_l2 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%.pre-phi10.reg2mem = alloca i64*
%sv_1.15.reg2mem = alloca i32
%storemerge36.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = call i64 @FUNC()
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 %6, i64 %7)
%9 = load i32, i32* %4, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp slt i32 %9, 0
%12 = icmp eq i1 %11, false
%13 = icmp eq i1 %10, false
%14 = icmp eq i1 %12, %13
store i32 %9, i32* %.reg2mem
br i1 %14, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 92, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i32, i32* %4, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_2
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%.reload = load i32, i32* %.reg2mem
%16 = sext i32 %.reload to i64
%17 = mul i64 %16, 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %2, 24
%20 = call i64 @FUNC(i64 %15, i64 %2, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_18, label LBL_3
LBL_3:
%23 = add i64 %2, 32
%24 = call i64 @FUNC(i64 %15, i64 %2, i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_18, label LBL_4
LBL_4:
%27 = trunc i64 %1 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %15)
br label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64 %15)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = add i64 %15, 16
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = add i64 %15, 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %15, i64 %38, i64 %35)
br label LBL_8
LBL_8:
%40 = add i64 %2, 16
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = bitcast i32* %sv_3 to i64*
%44 = call i64 @FUNC(i64 %15, i64 %42, i64* nonnull %sv_2, i64* nonnull %43)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
store i64 %44, i64* %sv_0.0.reg2mem
br i1 %46, label LBL_18, label LBL_9
LBL_9:
%47 = load i64, i64* %sv_2, align 8
%48 = add i64 %15, 8
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 %50, i64 %47)
%52 = load i32, i32* %4, align 4
%53 = icmp eq i32 %52, 0
store i32 0, i32* %sv_1.1.lcssa.reg2mem
br i1 %53, label LBL_14, label LBL_10
LBL_10:
%54 = add i64 %15, 24
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %storemerge36.reg2mem
store i32 0, i32* %sv_1.15.reg2mem
br label LBL_11
LBL_11:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%storemerge36.reload = load i32, i32* %storemerge36.reg2mem
%56 = load i64, i64* %sv_2, align 8
%57 = load i32, i32* %sv_3, align 4
%58 = add i32 %57, %storemerge36.reload
%59 = sext i32 %58 to i64
%60 = mul i64 %59, 8
%61 = add i64 %60, %56
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = icmp eq i64 %63, 0
store i64* %62, i64** %.pre-phi10.reg2mem
store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem
br i1 %64, label LBL_13, label LBL_12
LBL_12:
%65 = add i32 %sv_1.15.reload, 1
%66 = sext i32 %sv_1.15.reload to i64
%67 = mul i64 %66, 8
%68 = add i64 %67, %18
%69 = inttoptr i64 %68 to i64*
store i64 %63, i64* %69, align 8
%.pre7 = load i64, i64* %sv_2, align 8
%.pre8 = add i64 %.pre7, %60
%.pre9 = inttoptr i64 %.pre8 to i64*
store i64* %.pre9, i64** %.pre-phi10.reg2mem
store i32 %65, i32* %sv_1.0.reg2mem
br label LBL_13
LBL_13:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.pre-phi10.reload = load i64*, i64** %.pre-phi10.reg2mem
%70 = load i32, i32* %55, align 4
%71 = urem i32 %70, 32
%72 = shl i32 %storemerge36.reload, %71
%73 = sext i32 %72 to i64
%74 = add i64 %73, %2
%75 = or i64 %74, 1
%76 = call i64 @FUNC(i64 %75)
store i64 %76, i64* %.pre-phi10.reload, align 8
%77 = add i32 %storemerge36.reload, 1
%78 = load i32, i32* %4, align 4
%79 = zext i32 %78 to i64
%80 = sext i32 %77 to i64
%81 = icmp slt i64 %80, %79
store i32 %77, i32* %storemerge36.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem
br i1 %81, label LBL_11, label LBL_14
LBL_14:
%82 = load i64, i64* %49, align 8
%83 = call i64 @FUNC(i64 %15, i64 %82, i64* nonnull %sv_2)
%84 = trunc i64 %83 to i32
%85 = icmp slt i32 %84, 0
store i64 %83, i64* %sv_0.0.reg2mem
br i1 %85, label LBL_18, label LBL_15
LBL_15:
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%86 = icmp sgt i32 %sv_1.1.lcssa.reload, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %86, label LBL_16, label LBL_18
LBL_16:
%wide.trip.count = zext i32 %sv_1.1.lcssa.reload to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_17
LBL_17:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%87 = mul i64 %indvars.iv.reload, 8
%88 = add i64 %87, %18
%89 = inttoptr i64 %88 to i64*
%90 = load i64, i64* %89, align 8
%91 = call i64 @FUNC(i64 %90)
%92 = call i64 @FUNC(i64 %15, i64 %91, i64 1, i64 0)
%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 0, i64* %sv_0.0.reg2mem
br i1 %exitcond, label LBL_18, label LBL_17
LBL_18:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%93 = call i64 @FUNC(i64 %18)
%94 = and i64 %sv_0.0.reload, 4294967295
ret i64 %94
uselistorder i64 %60, { 1, 0 }
uselistorder i32 %sv_1.15.reload, { 2, 1, 0 }
uselistorder i64 %18, { 2, 0, 1 }
uselistorder i64 %15, { 4, 5, 6, 7, 8, 1, 3, 2, 9, 0, 10, 11 }
uselistorder i32 %9, { 0, 2, 1 }
uselistorder i32* %4, { 2, 1, 0, 3, 4 }
uselistorder i64* %sv_2, { 1, 0, 3, 4, 2 }
uselistorder i64 %2, { 0, 1, 3, 2, 5, 4, 6 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge36.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.15.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi10.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @perform_cow, { 1, 0 }
uselistorder i64 (i64)* @g_malloc, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 3, 5, 1, 2, 0, 4, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder i64 8, { 0, 1, 2, 4, 5, 3, 6 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | is_ntfs_dotgit_5606 | is_ntfs_dotgit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
store i64 0, i64* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%0 = add i64 %storemerge.reload, %arg1
%1 = inttoptr i64 %0 to i8*
%2 = load i8, i8* %1, align 1
switch i8 %2, label LBL_2 [
i8 0, label LBL_4
i8 92, label LBL_4
]
LBL_2:
%3 = sext i8 %2 to i64
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = load i8, i8* %1, align 1
%10 = icmp eq i8 %9, 58
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_9, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %arg1, i64 %storemerge.reload, i64 4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = inttoptr i64 %arg1 to i8*
%16 = call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i32 4)
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 1, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_10
LBL_6:
%19 = call i64 @FUNC(i64 %arg1, i64 %storemerge.reload, i64 5)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = inttoptr i64 %arg1 to i8*
%23 = call i32 @strncasecmp(i8* %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 5)
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 1, i64* %rax.0.reg2mem
br i1 %25, label LBL_8, label LBL_10
LBL_8:
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%26 = add i64 %storemerge.reload, 1
store i64 %26, i64* %storemerge.reg2mem
br label LBL_1
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %2, { 1, 0 }
uselistorder i64 %storemerge.reload, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 5, 0, 1, 2, 6, 3, 4 }
uselistorder i32 (i8*, i8*, i32)* @strncasecmp, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @only_spaces_and_periods, { 1, 0 }
uselistorder i32 1, { 1, 0, 3, 2 }
uselistorder i64 %arg1, { 2, 3, 1, 4, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_4, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | mpeg4_decode_profile_level_12753 | mpeg4_decode_profile_level | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i32* %arg2 to i64
%1 = call i64 @FUNC(i64 %0, i64 4)
%2 = trunc i64 %1 to i32
store i32 %2, i32* %arg2, align 4
store i64 %0, i64* %rdi, align 8
%3 = call i64 @FUNC(i64 %0, i64 4)
%4 = trunc i64 %3 to i32
%5 = add i64 %0, 4
%6 = inttoptr i64 %5 to i32*
store i32 %4, i32* %6, align 4
%7 = bitcast i64* %rdi to i32*
%8 = load i32, i32* %7, align 8
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_1
LBL_1:
%11 = load i64, i64* %rdi, align 8
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 8
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %13, align 4
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64* %rdi, { 2, 1, 0 }
uselistorder i32 0, { 2, 3, 1, 0, 4 }
uselistorder i64 (i64, i64)* @get_bits, { 1, 0 }
uselistorder i32* %arg2, { 1, 0 }
} | 1 |
BinRealVul | cdxl_read_packet_37 | cdxl_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.shrunk.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = trunc i64 %3 to i32
%9 = icmp eq i32 %8, 0
store i64 4294967295, i64* %rax.1.shrunk.reg2mem
br i1 %9, label LBL_1, label LBL_23
LBL_1:
%10 = call i64 @FUNC(i64 %4)
%11 = add i64 %7, 32
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %4, i64 %7, i32 32)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 32
store i64 %7, i64* %rcx.0.reg2mem
store i64 4294967295, i64* %rax.1.shrunk.reg2mem
br i1 %18, label LBL_3, label LBL_23
LBL_3:
%19 = inttoptr i64 %7 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 1
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%22 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.1.shrunk.reg2mem
br label LBL_23
LBL_5:
%23 = add i64 %7, 2
%24 = call i64 @FUNC(i64 %23)
%25 = add i64 %7, 14
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %7, 16
%28 = call i64 @FUNC(i64 %27)
%29 = add i64 %7, 20
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i16
%32 = add i64 %7, 22
%33 = call i64 @FUNC(i64 %32)
%34 = add i64 %7, 19
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = icmp ult i16 %31, 513
store i64 4294967294, i64* %rax.1.shrunk.reg2mem
br i1 %37, label LBL_6, label LBL_23
LBL_6:
%38 = trunc i64 %33 to i32
%sext = mul i32 %38, 65536
%39 = ashr exact i32 %sext, 16
%40 = urem i64 %26, 65536
%41 = add nuw nsw i64 %40, 15
%42 = and i64 %41, 131056
%43 = zext i8 %36 to i64
%44 = mul i64 %28, 4294967296
%45 = urem i64 %44, 281470681743361
%sext5 = mul i64 %45, %42
%46 = ashr exact i64 %sext5, 32
%47 = mul nsw i64 %46, %43
%48 = trunc i64 %47 to i32
%49 = ashr exact i32 %48, 3
%50 = and i32 %49, -2
%51 = trunc i64 %30 to i32
%52 = urem i32 %51, 65536
%53 = add nsw i32 %50, %52
%54 = and i64 %24, 4294967295
%55 = urem i32 %39, 65536
%56 = zext i32 %53 to i64
%narrow = add nuw nsw i32 %55, 32
%57 = zext i32 %narrow to i64
%58 = add nuw nsw i64 %56, %57
%59 = icmp ugt i64 %58, %54
%60 = icmp eq i1 %59, false
store i64 4294967294, i64* %rax.1.shrunk.reg2mem
br i1 %60, label LBL_7, label LBL_23
LBL_7:
%61 = ptrtoint i64* %arg2 to i64
%62 = trunc i64 %10 to i32
%63 = load i32, i32* %12, align 4
%64 = icmp eq i32 %63, 0
%65 = trunc i32 %39 to i16
%66 = icmp eq i16 %65, 0
%or.cond = or i1 %66, %64
br i1 %or.cond, label LBL_13, label LBL_8
LBL_8:
%67 = add i64 %7, 36
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, -1
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_11, label LBL_9
LBL_9:
%72 = call i64 @FUNC(i64 %4, i64 0)
%73 = icmp eq i64 %72, 0
%74 = icmp eq i1 %73, false
store i64 4294967284, i64* %rax.1.shrunk.reg2mem
br i1 %74, label LBL_10, label LBL_23
LBL_10:
%75 = inttoptr i64 %72 to i64*
%76 = load i64, i64* %75, align 8
%77 = inttoptr i64 %76 to i32*
store i32 1, i32* %77, align 4
%78 = load i64, i64* %75, align 8
%79 = add i64 %78, 4
%80 = inttoptr i64 %79 to i32*
store i32 0, i32* %80, align 4
%81 = load i64, i64* %75, align 8
%82 = add i64 %81, 8
%83 = inttoptr i64 %82 to i32*
store i32 1, i32* %83, align 4
%84 = add i64 %7, 1
%85 = inttoptr i64 %84 to i8*
%86 = load i8, i8* %85, align 1
%87 = and i8 %86, 16
%88 = icmp eq i8 %87, 0
%. = select i1 %88, i32 1, i32 2
%89 = load i64, i64* %75, align 8
%90 = add i64 %89, 12
%91 = inttoptr i64 %90 to i32*
store i32 %., i32* %91, align 4
%92 = load i64, i64* %75, align 8
%93 = add i64 %7, 44
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = add i64 %92, 16
%97 = inttoptr i64 %96 to i32*
store i32 %95, i32* %97, align 4
%98 = add i64 %72, 16
%99 = inttoptr i64 %98 to i64*
store i64 0, i64* %99, align 8
%100 = add i64 %72, 8
%101 = inttoptr i64 %100 to i32*
%102 = load i32, i32* %101, align 4
store i32 %102, i32* %68, align 4
%103 = load i32, i32* %94, align 4
%104 = zext i32 %103 to i64
%105 = call i64 @FUNC(i64 %72, i64 64, i64 1, i64 %104)
br label LBL_11
LBL_11:
%106 = call i64 @FUNC(i64 %4, i64 %61, i16 %65)
%107 = trunc i64 %106 to i32
%108 = icmp slt i32 %107, 0
%109 = icmp eq i1 %108, false
store i64 %106, i64* %rax.1.shrunk.reg2mem
br i1 %109, label LBL_12, label LBL_23
LBL_12:
%110 = load i32, i32* %68, align 4
%111 = add i64 %61, 8
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
%113 = add i64 %61, 12
%114 = inttoptr i64 %113 to i32*
store i32 %62, i32* %114, align 4
%115 = add i64 %61, 16
%116 = inttoptr i64 %115 to i32*
store i32 %55, i32* %116, align 4
store i32 0, i32* %12, align 4
store i64 %106, i64* %sv_0.011.reg2mem
br label LBL_22
LBL_13:
%117 = add i64 %7, 40
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = icmp eq i32 %119, -1
%121 = icmp eq i1 %120, false
br i1 %121, label LBL_18, label LBL_14
LBL_14:
%122 = call i64 @FUNC(i64 %4, i64 0)
%123 = icmp eq i64 %122, 0
%124 = icmp eq i1 %123, false
store i64 4294967284, i64* %rax.1.shrunk.reg2mem
br i1 %124, label LBL_15, label LBL_23
LBL_15:
%125 = trunc i64 %26 to i32
%126 = urem i32 %125, 65536
%127 = trunc i64 %28 to i32
%128 = urem i32 %127, 65536
%129 = inttoptr i64 %122 to i64*
%130 = load i64, i64* %129, align 8
%131 = inttoptr i64 %130 to i32*
store i32 2, i32* %131, align 4
%132 = load i64, i64* %129, align 8
%133 = add i64 %132, 4
%134 = inttoptr i64 %133 to i32*
store i32 0, i32* %134, align 4
%135 = load i64, i64* %129, align 8
%136 = add i64 %135, 8
%137 = inttoptr i64 %136 to i32*
store i32 2, i32* %137, align 4
%138 = load i64, i64* %129, align 8
%139 = add i64 %138, 20
%140 = inttoptr i64 %139 to i32*
store i32 %126, i32* %140, align 4
%141 = load i64, i64* %129, align 8
%142 = add i64 %141, 24
%143 = inttoptr i64 %142 to i32*
store i32 %128, i32* %143, align 4
%144 = add i64 %122, 16
%145 = inttoptr i64 %144 to i64*
store i64 0, i64* %145, align 8
%146 = add i64 %122, 8
%147 = inttoptr i64 %146 to i32*
%148 = load i32, i32* %147, align 4
store i32 %148, i32* %118, align 4
%149 = add i64 %7, 56
%150 = inttoptr i64 %149 to i32*
%151 = load i32, i32* %150, align 4
%152 = icmp eq i32 %151, 0
br i1 %152, label LBL_17, label LBL_16
LBL_16:
%153 = add i64 %7, 48
%154 = inttoptr i64 %153 to i32*
%155 = load i32, i32* %154, align 4
%156 = zext i32 %155 to i64
%157 = add i64 %7, 52
%158 = inttoptr i64 %157 to i32*
%159 = load i32, i32* %158, align 4
%160 = zext i32 %159 to i64
%161 = call i64 @FUNC(i64 %122, i64 64, i64 %160, i64 %156)
br label LBL_18
LBL_17:
%162 = add i64 %7, 44
%163 = inttoptr i64 %162 to i32*
%164 = load i32, i32* %163, align 4
%165 = zext i32 %164 to i64
%166 = call i64 @FUNC(i64 %122, i64 64, i64 1, i64 %165)
br label LBL_18
LBL_18:
%167 = add nsw i32 %53, 32
%168 = zext i32 %167 to i64
%169 = call i64 @FUNC(i64 %61, i64 %168)
%170 = trunc i64 %169 to i32
%171 = icmp slt i32 %170, 0
%172 = icmp eq i1 %171, false
store i64 4294967284, i64* %rax.1.shrunk.reg2mem
br i1 %172, label LBL_19, label LBL_23
LBL_19:
%173 = inttoptr i64 %168 to i64*
%174 = inttoptr i64 %7 to i64*
%175 = call i64* @memcpy(i64* %173, i64* %174, i32 32)
%176 = call i64 @FUNC(i64 %4, i64 %11, i32 %53)
%177 = trunc i64 %176 to i32
%178 = icmp slt i32 %177, 0
%179 = icmp eq i1 %178, false
br i1 %179, label LBL_21, label LBL_20
LBL_20:
%180 = call i64 @FUNC(i64 %61)
store i64 %176, i64* %rax.1.shrunk.reg2mem
br label LBL_23
LBL_21:
%181 = load i32, i32* %118, align 4
%182 = add i64 %61, 8
%183 = inttoptr i64 %182 to i32*
store i32 %181, i32* %183, align 4
%184 = add i64 %61, 20
%185 = inttoptr i64 %184 to i32*
%186 = load i32, i32* %185, align 4
%187 = or i32 %186, 1
store i32 %187, i32* %185, align 4
%188 = add i64 %61, 12
%189 = inttoptr i64 %188 to i32*
store i32 %62, i32* %189, align 4
%190 = add i64 %7, 56
%191 = inttoptr i64 %190 to i32*
%192 = load i32, i32* %191, align 4
%193 = icmp eq i32 %192, 0
%194 = icmp eq i1 %193, false
%spec.select = select i1 %66, i32 220, i32 %55
%spec.select9 = select i1 %194, i32 1, i32 %spec.select
%195 = add i64 %61, 16
%196 = inttoptr i64 %195 to i32*
store i32 %spec.select9, i32* %196, align 4
store i32 %55, i32* %12, align 4
%197 = icmp eq i32 %55, 0
%198 = icmp eq i1 %197, false
store i64 %176, i64* %sv_0.011.reg2mem
store i64 %176, i64* %rax.1.shrunk.reg2mem
br i1 %198, label LBL_23, label LBL_22
LBL_22:
%199 = trunc i64 %24 to i32
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%200 = add i32 %199, -32
%201 = sub i32 %200, %55
%202 = sub i32 %201, %53
%203 = zext i32 %202 to i64
%204 = call i64 @FUNC(i64 %4, i64 %203)
store i64 %sv_0.011.reload, i64* %rax.1.shrunk.reg2mem
br label LBL_23
LBL_23:
%rax.1.shrunk.reload = load i64, i64* %rax.1.shrunk.reg2mem
%rax.1 = and i64 %rax.1.shrunk.reload, 4294967295
ret i64 %rax.1
uselistorder i64 %176, { 0, 2, 1, 3 }
uselistorder i64 %122, { 1, 0, 2, 3, 4, 5 }
uselistorder i32* %118, { 1, 0, 2 }
uselistorder i64 %106, { 1, 0, 2 }
uselistorder i32* %68, { 1, 0, 2 }
uselistorder i1 %66, { 1, 0 }
uselistorder i32 %62, { 1, 0 }
uselistorder i64 %61, { 5, 6, 7, 8, 4, 9, 0, 1, 2, 3 }
uselistorder i32 %55, { 5, 3, 4, 0, 1, 2 }
uselistorder i32 %39, { 1, 0 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i32* %12, { 1, 0, 2, 3 }
uselistorder i64 %7, { 7, 8, 6, 5, 4, 3, 9, 1, 2, 10, 11, 12, 13, 14, 15, 17, 16, 0, 19, 18 }
uselistorder i64 %4, { 5, 6, 4, 3, 2, 1, 0, 7, 8 }
uselistorder i64* %rax.1.shrunk.reg2mem, { 0, 2, 1, 12, 3, 4, 5, 6, 7, 8, 11, 9, 10 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @avpriv_set_pts_info, { 2, 1, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i64 (i64, i64)* @avformat_new_stream, { 1, 0 }
uselistorder i64 65536, { 1, 0 }
uselistorder i32 65536, { 3, 4, 1, 2, 0 }
uselistorder i64 (i64)* @AV_RB16, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32)* @avio_read, { 2, 1, 0 }
uselistorder i32 32, { 2, 5, 0, 1, 3, 4 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0, 7, 8, 9, 10, 11 }
uselistorder label LBL_23, { 1, 0, 10, 2, 3, 4, 5, 6, 7, 11, 8, 9 }
uselistorder label LBL_22, { 1, 0 }
} | 1 |
BinRealVul | spapr_drc_reset_15334 | spapr_drc_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
store i64 0, i64* %arg1, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%10 = add i64 %0, 9
%11 = inttoptr i64 %10 to i8*
store i8 0, i8* %11, align 1
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i32*
br i1 %15, label LBL_6, label LBL_3
LBL_3:
store i32 0, i32* %17, align 4
%18 = call i64 @FUNC(i64 %0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = add i64 %0, 28
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
br label LBL_5
LBL_5:
%23 = add i64 %0, 32
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
br label LBL_9
LBL_6:
store i32 1, i32* %17, align 4
%25 = call i64 @FUNC(i64 %0)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = add i64 %0, 28
%29 = inttoptr i64 %28 to i32*
store i32 1, i32* %29, align 4
br label LBL_8
LBL_8:
%30 = add i64 %0, 32
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
br label LBL_9
LBL_9:
ret i64 %0
uselistorder i32* %17, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 0, 6, 5, 7, 3, 2, 4, 9, 8, 10, 1, 11, 12 }
uselistorder i64 (i64)* @spapr_drc_type, { 1, 0 }
} | 1 |
BinRealVul | smacker_read_packet_2 | smacker_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i1
%rax.0.reg2mem = alloca i64
%sv_0.011.in.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_2.012.reg2mem = alloca i8*
%sv_3.013.reg2mem = alloca i32
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i1, i1* %1
%4 = ptrtoint i64* %arg2 to i64
store i64 %4, i64* %rsi, align 8
%5 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i8, align 1
%sv_5 = alloca i8, align 1
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = trunc i64 %2 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_16, label LBL_1
LBL_1:
%12 = inttoptr i64 %8 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %8, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp ult i32 %13, %16
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_2, label LBL_16
LBL_2:
%18 = add i64 %8, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp slt i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_14, label LBL_3
LBL_3:
%23 = add i64 %8, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = sext i32 %13 to i64
%27 = mul i64 %26, 4
%28 = add i64 %25, %27
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i64 %8, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = add i64 %33, %27
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = urem i32 %36, 2
%38 = icmp eq i32 %37, 0
store i32 0, i32* %sv_1.0.reg2mem
br i1 %38, label LBL_6, label LBL_4
LBL_4:
%39 = ptrtoint i64* %sv_8 to i64
%40 = add i64 %8, 32
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i8*
%44 = ptrtoint i64* %sv_7 to i64
%45 = bitcast i64* %sv_7 to i8*
call void @FUNC(i8* nonnull %45, i8* %43, i64 96)
%46 = select i1 %3, i64 -768, i64 768
%47 = add i64 %46, %44
store i64 %47, i64* %rsi, align 8
%48 = bitcast i64* %sv_6 to i8*
%49 = add i64 %39, -1616
%50 = inttoptr i64 %49 to i8*
store i32 0, i32* %sv_3.013.reg2mem
store i8* %43, i8** %sv_2.012.reg2mem
br label LBL_5
LBL_5:
%sv_2.012.reload = load i8*, i8** %sv_2.012.reg2mem
%sv_3.013.reload = load i32, i32* %sv_3.013.reg2mem
call void @FUNC(i8* nonnull %48, i64 0, i64 32)
%51 = ptrtoint i8* %sv_2.012.reload to i64
%52 = add i64 %51, 1
%53 = load i8, i8* %50, align 8
store i8 %53, i8* %sv_2.012.reload, align 1
call void @FUNC(i8* nonnull %sv_5, i64 0, i64 32)
%54 = add i64 %51, 2
%55 = load i8, i8* %sv_5, align 1
%56 = inttoptr i64 %52 to i8*
store i8 %55, i8* %56, align 1
call void @FUNC(i8* nonnull %sv_4, i64 0, i64 32)
%57 = add i64 %51, 3
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %sv_4, align 1
%60 = inttoptr i64 %54 to i8*
store i8 %59, i8* %60, align 1
%61 = add nuw nsw i32 %sv_3.013.reload, 1
%exitcond = icmp eq i32 %61, 256
store i32 %61, i32* %sv_3.013.reg2mem
store i8* %58, i8** %sv_2.012.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%62 = and i32 %30, -4
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
store i32 -1, i32* %19, align 4
%63 = icmp ult i32 %30, -4
%64 = add i64 %8, 40
%65 = inttoptr i64 %64 to i64*
%66 = add i64 %8, 48
%67 = inttoptr i64 %66 to i64*
%68 = add i64 %8, 80
%69 = inttoptr i64 %68 to i64*
%70 = add i64 %8, 56
%71 = inttoptr i64 %70 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i32 %36, i32* %sv_0.011.in.reg2mem
br label LBL_7
LBL_7:
%sv_0.011.in.reload = load i32, i32* %sv_0.011.in.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%72 = and i32 %sv_0.011.in.reload, 2
%73 = icmp eq i32 %72, 0
br i1 %73, label LBL_11, label LBL_8
LBL_8:
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %63, label LBL_16, label LBL_9
LBL_9:
%74 = load i32, i32* %19, align 4
%75 = add i32 %74, 1
store i32 %75, i32* %19, align 4
%76 = load i64, i64* %65, align 8
%77 = sext i32 %75 to i64
%78 = mul i64 %77, 8
%79 = add i64 %78, %76
%80 = inttoptr i64 %79 to i64*
%81 = load i64, i64* %80, align 8
store i64 4294967292, i64* %rsi, align 8
%82 = call i64 @FUNC(i64 %81, i64 4294967292)
%83 = icmp eq i64 %82, 0
%84 = icmp eq i1 %83, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %84, label LBL_10, label LBL_16
LBL_10:
%85 = load i64, i64* %65, align 8
%86 = load i32, i32* %19, align 4
%87 = sext i32 %86 to i64
%88 = mul i64 %87, 8
%89 = add i64 %88, %85
%90 = inttoptr i64 %89 to i64*
store i64 %82, i64* %90, align 8
%91 = load i64, i64* %67, align 8
%92 = load i32, i32* %19, align 4
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 4
%95 = add i64 %94, %91
%96 = inttoptr i64 %95 to i32*
store i32 -4, i32* %96, align 4
%97 = load i64, i64* %69, align 8
%98 = mul i64 %indvars.iv.reload, 4
%99 = add i64 %97, %98
%100 = load i64, i64* %71, align 8
%101 = load i32, i32* %19, align 4
%102 = sext i32 %101 to i64
%103 = mul i64 %102, 4
%104 = add i64 %103, %100
%105 = inttoptr i64 %99 to i32*
%106 = load i32, i32* %105, align 4
%107 = inttoptr i64 %104 to i32*
store i32 %106, i32* %107, align 4
br label LBL_11
LBL_11:
%sv_0.011 = ashr i32 %sv_0.011.in.reload, 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%108 = icmp ult i64 %indvars.iv.next, 7
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.011, i32* %sv_0.011.in.reg2mem
br i1 %108, label LBL_7, label LBL_12
LBL_12:
%109 = icmp slt i32 %62, 0
%110 = icmp eq i1 %109, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %110, label LBL_13, label LBL_16
LBL_13:
%111 = load i64, i64* %24, align 8
%112 = load i32, i32* %12, align 4
%113 = sext i32 %112 to i64
%114 = mul i64 %113, 4
%115 = add i64 %114, %111
%116 = inttoptr i64 %115 to i32*
%117 = load i32, i32* %116, align 4
%118 = mul i32 %117, 2
%119 = and i32 %118, 2
%120 = or i32 %119, %sv_1.0.reload
%121 = load i64, i64* %rsi, align 8
%122 = trunc i32 %120 to i8
%123 = inttoptr i64 %121 to i8*
store i8 %122, i8* %123, align 1
%124 = add i64 %8, 32
%125 = inttoptr i64 %124 to i64*
%126 = load i64, i64* %125, align 8
%127 = load i64, i64* %rsi, align 8
%128 = add i64 %127, 1
%129 = inttoptr i64 %128 to i64*
%130 = inttoptr i64 %126 to i64*
%131 = call i64* @memcpy(i64* %129, i64* %130, i32 768)
%132 = add i64 %8, 72
%133 = inttoptr i64 %132 to i32*
%134 = load i32, i32* %133, align 4
%135 = add i64 %4, 12
%136 = inttoptr i64 %135 to i32*
store i32 %134, i32* %136, align 4
%137 = load i32, i32* %12, align 4
%138 = add i64 %4, 16
%139 = inttoptr i64 %138 to i32*
store i32 %137, i32* %139, align 4
%140 = add i32 %62, 769
%141 = add i64 %4, 8
%142 = inttoptr i64 %141 to i32*
store i32 %140, i32* %142, align 4
%143 = load i32, i32* %12, align 4
%144 = add i32 %143, 1
store i32 %144, i32* %12, align 4
%145 = add i64 %8, 12
%146 = inttoptr i64 %145 to i32*
store i32 0, i32* %146, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_14:
%147 = add i64 %8, 56
%148 = inttoptr i64 %147 to i64*
%149 = load i64, i64* %148, align 8
%150 = sext i32 %20 to i64
%151 = mul i64 %150, 4
%152 = add i64 %149, %151
%153 = inttoptr i64 %152 to i32*
%154 = load i32, i32* %153, align 4
%155 = icmp slt i32 %154, 0
%156 = icmp eq i1 %155, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %156, label LBL_15, label LBL_16
LBL_15:
%157 = add i64 %8, 48
%158 = inttoptr i64 %157 to i64*
%159 = load i64, i64* %158, align 8
%160 = add i64 %159, %151
%161 = inttoptr i64 %160 to i32*
%162 = load i32, i32* %161, align 4
%163 = add i64 %8, 40
%164 = inttoptr i64 %163 to i64*
%165 = load i64, i64* %164, align 8
%166 = mul i64 %150, 8
%167 = add i64 %165, %166
%168 = inttoptr i64 %167 to i64*
%169 = load i64, i64* %168, align 8
%170 = inttoptr i64 %169 to i64*
%171 = call i64* @memcpy(i64* %arg2, i64* %170, i32 %162)
%172 = load i64, i64* %158, align 8
%173 = load i32, i32* %19, align 4
%174 = sext i32 %173 to i64
%175 = mul i64 %174, 4
%176 = add i64 %175, %172
%177 = inttoptr i64 %176 to i32*
%178 = load i32, i32* %177, align 4
%179 = add i64 %4, 8
%180 = inttoptr i64 %179 to i32*
store i32 %178, i32* %180, align 4
%181 = load i64, i64* %148, align 8
%182 = load i32, i32* %19, align 4
%183 = sext i32 %182 to i64
%184 = mul i64 %183, 4
%185 = add i64 %184, %181
%186 = inttoptr i64 %185 to i32*
%187 = load i32, i32* %186, align 4
%188 = add i64 %4, 12
%189 = inttoptr i64 %188 to i32*
store i32 %187, i32* %189, align 4
%190 = add i64 %8, 64
%191 = inttoptr i64 %190 to i64*
%192 = load i64, i64* %191, align 8
%193 = load i32, i32* %19, align 4
%194 = sext i32 %193 to i64
%195 = mul i64 %194, 4
%196 = add i64 %195, %192
%197 = inttoptr i64 %196 to i32*
%198 = load i32, i32* %197, align 4
%199 = add i64 %4, 16
%200 = inttoptr i64 %199 to i32*
store i32 %198, i32* %200, align 4
%201 = load i64, i64* %191, align 8
%202 = load i32, i32* %19, align 4
%203 = sext i32 %202 to i64
%204 = mul i64 %203, 4
%205 = add i64 %204, %201
%206 = inttoptr i64 %205 to i32*
%207 = load i32, i32* %206, align 4
%208 = bitcast i64* %rsi to i32*
%209 = load i32, i32* %208, align 8
%210 = add i32 %209, %207
store i32 %210, i32* %206, align 4
%211 = load i32, i32* %19, align 4
%212 = add i32 %211, -1
store i32 %212, i32* %19, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %151, { 1, 0 }
uselistorder i64 %51, { 2, 1, 0 }
uselistorder i8* %sv_2.012.reload, { 1, 0 }
uselistorder i64 %27, { 1, 0 }
uselistorder i32* %19, { 7, 6, 8, 9, 10, 11, 0, 1, 2, 4, 3, 5, 12 }
uselistorder i32* %12, { 1, 0, 2, 3, 4 }
uselistorder i64 %8, { 0, 10, 11, 12, 5, 6, 7, 1, 2, 3, 4, 8, 9, 13, 14, 15, 16 }
uselistorder i64 %4, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder i64* %rsi, { 4, 3, 2, 1, 0, 5 }
uselistorder i32* %sv_3.013.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_2.012.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.011.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 3, 6, 1, 2, 8, 7 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 4294967292, { 1, 0 }
uselistorder i64 4294967294, { 1, 2, 0 }
uselistorder i32 -4, { 1, 0, 2 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 0, { 1, 0, 7, 2, 3, 4, 5, 6 }
uselistorder i64 32, { 3, 0, 1, 2, 4 }
uselistorder i32 2, { 2, 0, 3, 1 }
uselistorder i1 false, { 0, 2, 1, 3, 4 }
uselistorder i32 0, { 3, 4, 5, 2, 1, 0, 6, 7, 8 }
uselistorder i64 8, { 3, 0, 4, 1, 2, 5, 6 }
uselistorder label LBL_16, { 3, 4, 2, 5, 0, 1, 7, 6 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | wv_get_value_7547 | wv_get_value | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.210.reg2mem = alloca i32
%sv_2.211.reg2mem = alloca i32
%storemerge12.reg2mem = alloca i32
%sv_2.0.in.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_3.2.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = sext i32 %arg3 to i64
%7 = mul nsw i64 %6, 20
%8 = add i64 %7, %5
store i32 0, i32* %arg4, align 4
%9 = trunc i64 %3 to i32
%10 = icmp ult i32 %9, 2
br i1 %10, label LBL_1, label LBL_14
LBL_1:
%11 = add i64 %5, 20
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp ult i32 %13, 2
br i1 %14, label LBL_2, label LBL_14
LBL_2:
%15 = add i64 %5, 44
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_14, label LBL_3
LBL_3:
%20 = add i64 %5, 48
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_14, label LBL_4
LBL_4:
%25 = add i64 %5, 40
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_7, label LBL_5
LBL_5:
%29 = add i32 %27, -1
store i32 %29, i32* %26, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_14, label LBL_6
LBL_6:
%31 = add i64 %8, 12
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_46
LBL_7:
%33 = call i64 @FUNC(i64 %4)
%34 = trunc i64 %33 to i32
%35 = icmp slt i32 %34, 2
br i1 %35, label LBL_11, label LBL_8
LBL_8:
%36 = icmp sgt i32 %34, 31
br i1 %36, label LBL_43, label LBL_9
LBL_9:
%37 = call i64 @FUNC(i64 %4)
%38 = add i64 %33, 4294967295
%39 = and i64 %38, 4294967295
%40 = icmp slt i64 %37, %39
br i1 %40, label LBL_43, label LBL_10
LBL_10:
%41 = call i64 @FUNC(i64 %4, i64 %39)
%42 = add i32 %34, 31
%43 = urem i32 %42, 32
%44 = shl i32 1, %43
%45 = trunc i64 %41 to i32
%46 = or i32 %44, %45
store i32 %46, i32* %26, align 4
br label LBL_13
LBL_11:
%47 = call i64 @FUNC(i64 %4)
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %48, 0
br i1 %49, label LBL_43, label LBL_12
LBL_12:
store i32 %34, i32* %26, align 4
%50 = icmp eq i32 %34, 0
br i1 %50, label LBL_14, label LBL_13
LBL_13:
%51 = call i64* @memset(i64* %arg1, i32 0, i32 12)
%52 = inttoptr i64 %11 to i64*
%53 = call i64* @memset(i64* %52, i32 0, i32 12)
%54 = add i64 %8, 12
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_46
LBL_14:
%56 = add i64 %5, 44
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp eq i32 %58, 0
store i32 0, i32* %storemerge6.reg2mem
store i32 0, i32* %sv_3.2.reg2mem
br i1 %59, label LBL_15, label LBL_24
LBL_15:
%60 = call i64 @FUNC(i64 %4)
%61 = call i64 @FUNC(i64 %4)
%62 = trunc i64 %61 to i32
%63 = icmp slt i32 %62, 0
br i1 %63, label LBL_43, label LBL_16
LBL_16:
%64 = trunc i64 %60 to i32
%65 = icmp eq i32 %64, 16
%66 = icmp eq i1 %65, false
store i32 %64, i32* %sv_3.1.reg2mem
br i1 %66, label LBL_23, label LBL_17
LBL_17:
%67 = call i64 @FUNC(i64 %4)
%68 = trunc i64 %67 to i32
%69 = icmp sgt i32 %68, 1
br i1 %69, label LBL_20, label LBL_18
LBL_18:
%70 = call i64 @FUNC(i64 %4)
%71 = trunc i64 %70 to i32
%72 = icmp slt i32 %71, 0
br i1 %72, label LBL_43, label LBL_19
LBL_19:
%73 = add i32 %68, %64
store i32 %73, i32* %sv_3.1.reg2mem
br label LBL_23
LBL_20:
%74 = icmp sgt i32 %68, 31
br i1 %74, label LBL_43, label LBL_21
LBL_21:
%75 = call i64 @FUNC(i64 %4)
%76 = add i64 %67, 4294967295
%77 = and i64 %76, 4294967295
%78 = icmp slt i64 %75, %77
br i1 %78, label LBL_43, label LBL_22
LBL_22:
%79 = call i64 @FUNC(i64 %4, i64 %77)
%80 = add i32 %68, 31
%81 = urem i32 %80, 32
%82 = shl i32 1, %81
%83 = trunc i64 %79 to i32
%84 = or i32 %82, %83
%85 = add i32 %84, %64
store i32 %85, i32* %sv_3.1.reg2mem
br label LBL_23
LBL_23:
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%86 = add i64 %5, 48
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = icmp ne i32 %88, 0
%90 = urem i32 %sv_3.1.reload, 2
store i32 %90, i32* %87, align 4
%91 = ashr i32 %sv_3.1.reload, 1
%92 = zext i1 %89 to i32
%storemerge2 = add nsw i32 %91, %92
%93 = icmp eq i32 %90, 0
%94 = zext i1 %93 to i32
store i32 %94, i32* %storemerge6.reg2mem
store i32 %storemerge2, i32* %sv_3.2.reg2mem
br label LBL_24
LBL_24:
%sv_3.2.reload = load i32, i32* %sv_3.2.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
store i32 %storemerge6.reload, i32* %57, align 4
%95 = add i64 %5, 52
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = icmp eq i32 %97, 0
%99 = icmp eq i32 %arg3, 0
%100 = icmp eq i1 %99, false
%or.cond = or i1 %100, %98
br i1 %or.cond, label LBL_26, label LBL_25
LBL_25:
%101 = call i64 @FUNC(i64 %5)
%102 = trunc i64 %101 to i32
%103 = icmp slt i32 %102, 0
br i1 %103, label LBL_43, label LBL_26
LBL_26:
%104 = icmp eq i32 %sv_3.2.reload, 0
%105 = icmp eq i1 %104, false
br i1 %105, label LBL_28, label LBL_27
LBL_27:
%106 = call i64 @FUNC(i64 0)
%107 = call i64 @FUNC(i64 0)
store i32 0, i32* %sv_1.0.reg2mem
store i64 %106, i64* %sv_2.0.in.in.reg2mem
br label LBL_33
LBL_28:
%108 = icmp eq i32 %sv_3.2.reload, 1
%109 = icmp eq i1 %108, false
br i1 %109, label LBL_30, label LBL_29
LBL_29:
%110 = call i64 @FUNC(i64 0)
%111 = trunc i64 %110 to i32
%112 = call i64 @FUNC(i64 1)
%113 = call i64 @FUNC(i64 0)
%114 = call i64 @FUNC(i64 1)
store i32 %111, i32* %sv_1.0.reg2mem
store i64 %112, i64* %sv_2.0.in.in.reg2mem
br label LBL_33
LBL_30:
%115 = icmp eq i32 %sv_3.2.reload, 2
%116 = icmp eq i1 %115, false
%117 = call i64 @FUNC(i64 0)
%118 = trunc i64 %117 to i32
%119 = call i64 @FUNC(i64 1)
%120 = trunc i64 %119 to i32
%121 = add i32 %120, %118
%122 = call i64 @FUNC(i64 2)
br i1 %116, label LBL_32, label LBL_31
LBL_31:
%123 = call i64 @FUNC(i64 0)
%124 = call i64 @FUNC(i64 1)
%125 = call i64 @FUNC(i64 2)
store i32 %121, i32* %sv_1.0.reg2mem
store i64 %122, i64* %sv_2.0.in.in.reg2mem
br label LBL_33
LBL_32:
%126 = add i32 %sv_3.2.reload, -2
%127 = trunc i64 %122 to i32
%128 = mul i32 %126, %127
%129 = add i32 %128, %121
%130 = call i64 @FUNC(i64 2)
%131 = call i64 @FUNC(i64 0)
%132 = call i64 @FUNC(i64 1)
%133 = call i64 @FUNC(i64 2)
store i32 %129, i32* %sv_1.0.reg2mem
store i64 %130, i64* %sv_2.0.in.in.reg2mem
br label LBL_33
LBL_33:
%sv_2.0.in.in.reload = load i64, i64* %sv_2.0.in.in.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.in = trunc i64 %sv_2.0.in.in.reload to i32
%sv_2.0 = add i32 %sv_2.0.in, -1
%134 = add i64 %8, 16
%135 = inttoptr i64 %134 to i32*
%136 = load i32, i32* %135, align 4
%137 = icmp eq i32 %136, 0
%138 = icmp eq i1 %137, false
br i1 %138, label LBL_37, label LBL_34
LBL_34:
%139 = icmp ult i32 %sv_2.0, 33554432
br i1 %139, label LBL_36, label LBL_35
LBL_35:
%140 = add i64 %5, 64
%141 = inttoptr i64 %140 to i64*
%142 = load i64, i64* %141, align 8
%143 = zext i32 %sv_2.0 to i64
%144 = call i64 @FUNC(i64 %142, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %143, i64 %2, i64 %1)
br label LBL_43
LBL_36:
%145 = zext i32 %sv_2.0 to i64
%146 = call i64 @FUNC(i64 %4, i64 %145)
%147 = trunc i64 %146 to i32
%148 = add i32 %sv_1.0.reload, %147
%149 = call i64 @FUNC(i64 %4)
%150 = trunc i64 %149 to i32
%151 = icmp eq i32 %150, 0
%152 = icmp slt i32 %150, 0
%153 = icmp eq i1 %152, false
%154 = icmp eq i1 %151, false
%155 = icmp eq i1 %153, %154
store i32 %148, i32* %sv_0.0.reg2mem
br i1 %155, label LBL_40, label LBL_43
LBL_37:
%156 = mul i32 %sv_1.0.reload, 2
%storemerge.in8 = add i32 %156, %sv_2.0.in
%storemerge9 = udiv i32 %storemerge.in8, 2
%157 = zext i32 %136 to i64
%158 = sext i32 %sv_2.0 to i64
%159 = icmp sgt i64 %158, %157
store i32 %storemerge9, i32* %storemerge12.reg2mem
store i32 %sv_2.0, i32* %sv_2.211.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.210.reg2mem
store i32 %storemerge9, i32* %sv_0.0.reg2mem
br i1 %159, label LBL_38, label LBL_40
LBL_38:
%160 = call i64 @FUNC(i64 %4)
%161 = trunc i64 %160 to i32
%162 = icmp slt i32 %161, 1
br i1 %162, label LBL_43, label LBL_39
LBL_39:
%sv_1.210.reload = load i32, i32* %sv_1.210.reg2mem
%sv_2.211.reload = load i32, i32* %sv_2.211.reg2mem
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%163 = call i64 @FUNC(i64 %4)
%164 = trunc i64 %163 to i32
%165 = icmp eq i32 %164, 0
%166 = sub i32 0, %sv_1.210.reload
%167 = sub i32 %166, 1
%168 = add i32 %storemerge12.reload, %167
%169 = sub i32 %sv_2.211.reload, %storemerge12.reload
%170 = add i32 %169, %sv_1.210.reload
%sv_1.1 = select i1 %165, i32 %sv_1.210.reload, i32 %storemerge12.reload
%sv_2.1 = select i1 %165, i32 %168, i32 %170
%171 = mul i32 %sv_1.1, 2
%172 = add i32 %sv_2.1, 1
%storemerge.in = add i32 %172, %171
%storemerge = udiv i32 %storemerge.in, 2
%173 = load i32, i32* %135, align 4
%174 = zext i32 %173 to i64
%175 = sext i32 %sv_2.1 to i64
%176 = icmp sgt i64 %175, %174
store i32 %storemerge, i32* %storemerge12.reg2mem
store i32 %sv_2.1, i32* %sv_2.211.reg2mem
store i32 %sv_1.1, i32* %sv_1.210.reg2mem
store i32 %storemerge, i32* %sv_0.0.reg2mem
br i1 %176, label LBL_38, label LBL_40
LBL_40:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%177 = call i64 @FUNC(i64 %4)
%178 = add i64 %5, 56
%179 = inttoptr i64 %178 to i32*
%180 = load i32, i32* %179, align 4
%181 = icmp eq i32 %180, 0
br i1 %181, label LBL_42, label LBL_41
LBL_41:
%182 = zext i32 %sv_0.0.reload to i64
%183 = call i64 @FUNC(i64 %182)
%184 = add i64 %8, 12
%185 = inttoptr i64 %184 to i32*
%186 = trunc i64 %183 to i32
store i32 %186, i32* %185, align 4
br label LBL_42
LBL_42:
%187 = trunc i64 %177 to i32
%188 = icmp ne i32 %187, 0
%189 = sext i1 %188 to i32
%spec.select = xor i32 %sv_0.0.reload, %189
%phitmp = zext i32 %spec.select to i64
store i64 %phitmp, i64* %rax.0.shrunk.reg2mem
br label LBL_46
LBL_43:
%190 = call i64 @FUNC(i64 %4)
%191 = trunc i64 %190 to i32
%192 = icmp eq i32 %191, 0
%193 = icmp slt i32 %191, 0
%194 = icmp eq i1 %193, false
%195 = icmp eq i1 %192, false
%196 = icmp eq i1 %194, %195
br i1 %196, label LBL_45, label LBL_44
LBL_44:
%197 = add i64 %5, 64
%198 = inttoptr i64 %197 to i64*
%199 = load i64, i64* %198, align 8
%200 = and i64 %190, 4294967295
%201 = call i64 @FUNC(i64 %199, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %200, i64 %2, i64 %1)
br label LBL_45
LBL_45:
store i32 1, i32* %arg4, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_46
LBL_46:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
ret i64 %rax.0.shrunk.reload
uselistorder i32 %191, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %sv_2.1, { 0, 2, 1 }
uselistorder i32 %storemerge12.reload, { 0, 2, 1 }
uselistorder i32 %150, { 1, 0 }
uselistorder i32 %sv_2.0, { 0, 1, 3, 2, 4 }
uselistorder i32 %sv_1.0.reload, { 0, 2, 1 }
uselistorder i64 %122, { 1, 0 }
uselistorder i32 %121, { 1, 0 }
uselistorder i32 %sv_3.2.reload, { 3, 0, 1, 2 }
uselistorder i32 %90, { 1, 0 }
uselistorder i64 %77, { 1, 0 }
uselistorder i32 %68, { 1, 2, 0, 3 }
uselistorder i32 %64, { 1, 2, 0, 3 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32 %34, { 1, 0, 2, 3, 4 }
uselistorder i32* %26, { 1, 0, 2, 3 }
uselistorder i64 %8, { 2, 3, 1, 0 }
uselistorder i64 %5, { 6, 2, 1, 4, 3, 5, 7, 11, 10, 9, 8, 0 }
uselistorder i64 %4, { 13, 10, 11, 12, 8, 9, 5, 6, 4, 7, 15, 14, 2, 0, 1, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %sv_2.0.in.in.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.211.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.210.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @get_bits1, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 2, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @INC_MED, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 3, 2, 4, 5, 0 }
uselistorder i64 (i64)* @DEC_MED, { 2, 1, 0 }
uselistorder i64 (i64)* @GET_MED, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits_long, { 1, 0 }
uselistorder i64 (i64)* @get_bits_left, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 31, { 1, 2, 0, 3 }
uselistorder i64 (i64)* @get_unary_0_33, { 2, 1, 0 }
uselistorder i1 false, { 3, 1, 4, 2, 5, 6, 7, 8, 0, 9, 10, 11 }
uselistorder i32 2, { 2, 0, 3, 1, 6, 4, 5, 7, 8 }
uselistorder i64 20, { 1, 0 }
uselistorder label LBL_46, { 1, 0, 2, 3 }
uselistorder label LBL_43, { 0, 9, 10, 1, 3, 2, 4, 5, 6, 8, 7 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_14, { 2, 3, 4, 5, 0, 1 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
reposvul_c_test | prot_text_64 | prot_text | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8*
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 2
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = icmp ult i32 %0, 3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_3
LBL_2:
%switch.selectcmp = icmp eq i32 %0, 1
%switch.select = select i1 %switch.selectcmp, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0)
%switch.selectcmp3 = icmp eq i32 %0, 0
%switch.select4 = select i1 %switch.selectcmp3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i8* %switch.select
store i8* %switch.select4, i8** %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%3 = ptrtoint i8* %sv_0.0.reload to i64
ret i64 %3
uselistorder i32 %0, { 2, 1, 0, 3 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_3, { 0, 2, 1 }
} | 0 |
BinRealVul | clone_lease_3982 | clone_lease | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64* @calloc(i32 1, i32 4152)
%cond = icmp eq i64* %2, null
store i64 0, i64* %storemerge2.reg2mem
br i1 %cond, label LBL_11, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%magicptr = ptrtoint i64* %2 to i64
%4 = trunc i64 %1 to i32
%5 = bitcast i64* %2 to i32*
store i32 %4, i32* %5, align 4
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %magicptr, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %magicptr, 8
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %3, 12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %magicptr, 12
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %3, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %magicptr, 16
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %3, 20
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i64 %magicptr, 20
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = add i64 %3, 24
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i64 %magicptr, 24
%35 = inttoptr i64 %34 to i32*
store i32 %33, i32* %35, align 4
%36 = add i64 %3, 32
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label LBL_3, label LBL_2
LBL_2:
%40 = inttoptr i64 %38 to i8*
%41 = call i8* @strdup(i8* %40)
%42 = ptrtoint i8* %41 to i64
%43 = add i64 %magicptr, 32
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = icmp eq i8* %41, null
br i1 %45, label LBL_10, label LBL_3
LBL_3:
%46 = add i64 %3, 40
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = icmp eq i64 %48, 0
br i1 %49, label LBL_5, label LBL_4
LBL_4:
%50 = inttoptr i64 %48 to i8*
%51 = call i8* @strdup(i8* %50)
%52 = ptrtoint i8* %51 to i64
%53 = add i64 %magicptr, 40
%54 = inttoptr i64 %53 to i64*
store i64 %52, i64* %54, align 8
%55 = icmp eq i8* %51, null
br i1 %55, label LBL_10, label LBL_5
LBL_5:
%56 = add i64 %3, 48
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 0
br i1 %59, label LBL_7, label LBL_6
LBL_6:
%60 = inttoptr i64 %58 to i8*
%61 = call i8* @strdup(i8* %60)
%62 = ptrtoint i8* %61 to i64
%63 = add i64 %magicptr, 48
%64 = inttoptr i64 %63 to i64*
store i64 %62, i64* %64, align 8
%65 = icmp eq i8* %61, null
br i1 %65, label LBL_10, label LBL_7
LBL_7:
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%66 = mul i64 %indvars.iv.reload, 16
%67 = add nuw nsw i64 %66, 48
%68 = add i64 %67, %3
%69 = add i64 %68, 8
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = add i64 %67, %magicptr
%73 = add i64 %72, 8
%74 = inttoptr i64 %73 to i32*
store i32 %71, i32* %74, align 4
%75 = call i64* @calloc(i32 1, i32 %71)
%76 = ptrtoint i64* %75 to i64
%77 = add i64 %72, 16
%78 = inttoptr i64 %77 to i64*
store i64 %76, i64* %78, align 8
%79 = icmp eq i64* %75, null
br i1 %79, label LBL_10, label LBL_9
LBL_9:
%80 = load i32, i32* %74, align 4
%81 = add i64 %68, 16
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = inttoptr i64 %83 to i64*
%85 = call i64* @memcpy(i64* nonnull %75, i64* %84, i32 %80)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%86 = icmp ult i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %magicptr, i64* %storemerge2.reg2mem
br i1 %86, label LBL_8, label LBL_11
LBL_10:
store i32 0, i32* %20, align 4
%87 = call i64 @FUNC(i64 %magicptr)
store i64 0, i64* %storemerge2.reg2mem
br label LBL_11
LBL_11:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i64* %75, { 1, 0, 2 }
uselistorder i64 %magicptr, { 3, 0, 1, 5, 4, 2, 6, 7, 8, 9, 10, 11 }
uselistorder i64* %2, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* (i32, i32)* @calloc, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_10, { 0, 3, 2, 1 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | separationalternatespace_8775 | separationalternatespace | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i32, align 4
%1 = load i64, i64* @gv_0, align 8
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64 %1, i64 %0, i64 2, i64* nonnull %2)
%4 = trunc i64 %3 to i32
store i32 %4, i32* %sv_0, align 4
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %3, 4294967295
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 2, i64* nonnull %2)
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 }
} | 0 |
BinRealVul | smp_process_keypress_notification_5539 | smp_process_keypress_notification | define i64 @FUNC(i32* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i8, align 1
%sv_1 = alloca i8*, align 8
%.cast = ptrtoint i8* %arg2 to i64
%4 = bitcast i8** %sv_1 to i64*
store i64 %.cast, i64* %4, align 8
store i8 -1, i8* %sv_0, align 1
%5 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0))
%6 = call i64 @FUNC(i64 %3)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = trunc i64 %1 to i8
%10 = icmp ult i8 %9, 2
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 1397638484, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %3, i64 1, i8* nonnull %sv_0)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%13 = trunc i64 %2 to i8
%14 = add i64 %3, 1
%15 = inttoptr i64 %14 to i8*
store i8 %13, i8* %15, align 1
%16 = load i8*, i8** %sv_1, align 8
%17 = icmp eq i8* %16, null
%18 = add i64 %3, 2
%19 = inttoptr i64 %18 to i8*
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%20 = load i8, i8* %19, align 1
%21 = zext i8 %20 to i64
%22 = ptrtoint i8* %16 to i64
%23 = call i64 @FUNC(i64 %21, i64 %22)
br label LBL_7
LBL_6:
store i8 0, i8* %19, align 1
br label LBL_7
LBL_7:
%24 = add i64 %3, 3
%25 = inttoptr i64 %24 to i8*
store i8 2, i8* %25, align 1
store i64 %3, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %19, { 1, 0 }
uselistorder i8** %sv_1, { 1, 0 }
uselistorder i64 %3, { 0, 2, 3, 4, 1, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i8 2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | bd_errstats_setstr_17480 | bd_errstats_setstr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = icmp eq i64 %arg3, 0
store i64 %arg4, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_3, label LBL_2
LBL_2:
%3 = add i64 %arg3, 1
%4 = call i64 @FUNC(i64 %3, i64 0)
%5 = call i64 @FUNC(i64 %4, i64 %arg2, i64 %arg3)
store i64 %4, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 %sv_0.0.reload, i64* %arg1, align 8
br label LBL_4
LBL_4:
%6 = ptrtoint i64* %arg1 to i64
ret i64 %6
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | is_netmask_v6_4533 | is_netmask_v6 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 128, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_5
LBL_1:
%2 = bitcast i64* %arg1 to i8*
%3 = call i8* @strchr(i8* %2, i32 47)
%4 = icmp eq i8* %3, null
store i64 128, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%5 = ptrtoint i8* %3 to i64
%6 = add i64 %5, 1
%7 = inttoptr i64 %6 to i8*
store i8 0, i8* %3, align 1
%8 = call i8* @strchr(i8* %7, i32 46)
%9 = icmp eq i8* %8, null
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_5
LBL_3:
%10 = call i32 @atoi(i8* %7)
%11 = icmp ult i32 %10, 65
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_5
LBL_4:
%12 = urem i32 %10, 256
%phitmp = zext i32 %12 to i64
store i64 %phitmp, 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 i8* %3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5 }
uselistorder label LBL_5, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | fat_truncate_18097 | fat_truncate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp ult i64 %5, %2
store i64 %5, i64* %.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
store i64 %5, i64* %arg1, align 8
%.pre = load i64, i64* %4, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%7 = add i64 %1, 4294967295
%8 = and i64 %7, 4294967295
%9 = add i64 %.reload, %8
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %12, 64
%14 = zext i32 %13 to i64
%rdx.0 = lshr i64 %9, %14
%15 = call i64 @FUNC(i64 %2)
%16 = and i64 %rdx.0, 4294967295
%17 = call i64 @FUNC(i64 %2, i64 %16)
%18 = call i64 @FUNC(i64 %2)
%19 = call i64 @FUNC(i64 %2, i64 %2, i64 0)
ret i64 %19
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %2, { 1, 3, 4, 0, 2, 5, 6, 7 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | bdrv_qed_invalidate_cache_15372 | bdrv_qed_invalidate_cache | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i64 @FUNC(i64 %0, i64 0, i32 %4, i64 0)
ret i64 %5
} | 1 |
BinRealVul | set_reg_profile_6464 | set_reg_profile | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 ptrtoint ([384 x i8]* @gv_0 to i64))
ret i64 %1
} | 0 |
BinRealVul | m25p80_init_15277 | m25p80_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %1 to i64*
store i64 %4, i64* %5, align 8
%6 = inttoptr i64 %4 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %4, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = mul i32 %10, %7
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = add i64 %1, 12
%15 = inttoptr i64 %14 to i32*
store i32 -1, i32* %15, align 4
%16 = load i32, i32* %13, align 4
%17 = add i64 %1, 24
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = zext i32 %16 to i64
%21 = call i64 @FUNC(i64 %19, i64 %20)
%22 = add i64 %1, 16
%23 = inttoptr i64 %22 to i64*
store i64 %21, i64* %23, align 8
%24 = call i64 @FUNC(i64 0)
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_3, label LBL_1
LBL_1:
%26 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0))
%27 = call i64 @FUNC(i64 %24)
store i64 %27, i64* %18, align 8
%28 = call i64 @FUNC(i64 %27, i64 %1)
%29 = load i32, i32* %13, align 4
%30 = add i32 %29, 511
%31 = add i32 %29, 1022
%32 = icmp slt i32 %30, 0
%33 = select i1 %32, i32 %31, i32 %30
%34 = ashr i32 %33, 9
%35 = zext i32 %34 to i64
%36 = load i64, i64* %23, align 8
%37 = load i64, i64* %18, align 8
%38 = call i64 @FUNC(i64 %37, i64 0, i64 %36, i64 %35)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %40, label LBL_4, label LBL_2
LBL_2:
%41 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%42 = call i32 @fwrite(i64* bitcast ([33 x i8]* @gv_2 to i64*), i32 1, i32 32, %_IO_FILE* %41)
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%43 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0))
%44 = load i32, i32* %13, align 4
%45 = load i64, i64* %23, align 8
%46 = inttoptr i64 %45 to i64*
%47 = call i64* @memset(i64* %46, i32 255, i32 %44)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %23, { 1, 0, 2 }
uselistorder i32* %13, { 1, 0, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64, i8*)* @DB_PRINT_L, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | r_sys_mkdirp_13378 | r_sys_mkdirp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.in.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %3 to i8
%7 = icmp eq i8 %6, 47
%8 = zext i1 %7 to i64
%spec.select = add i64 %8, %5
%9 = inttoptr i64 %spec.select to i8*
%10 = call i8* @strstr(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i8* %10, null
%12 = ptrtoint i8* %10 to i64
%13 = add i64 %12, 3
%.pre = inttoptr i64 %13 to i8*
%.pre-phi = select i1 %11, i8* %9, i8* %.pre
%14 = call i8* @strchr(i8* %.pre-phi, i32 47)
%15 = icmp eq i8* %14, null
%16 = icmp eq i1 %15, false
store i8* %14, i8** %.in.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_1:
%.in.reload = load i8*, i8** %.in.reg2mem
store i8 0, i8* %.in.reload, align 1
%17 = call i64 @FUNC(i64 %5)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_4, label LBL_2
LBL_2:
%21 = call i64 @FUNC()
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %5, i64 %4, i64 %2, i64 %1)
store i8 47, i8* %.in.reload, align 1
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%25 = ptrtoint i8* %.in.reload to i64
store i8 47, i8* %.in.reload, align 1
%26 = add i64 %25, 1
%27 = inttoptr i64 %26 to i8*
%28 = call i8* @strchr(i8* %27, i32 47)
%29 = icmp eq i8* %28, null
%30 = icmp eq i1 %29, false
store i8* %28, i8** %.in.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %30, label LBL_1, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %.in.reload, { 1, 0, 3, 2 }
uselistorder i8* %10, { 1, 0 }
uselistorder i64 %5, { 2, 1, 3, 0 }
uselistorder i8** %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i32 47, { 1, 0 }
uselistorder i8* null, { 1, 0, 2 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | dec_sru_14865 | dec_sru | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
%7 = ptrtoint i32* %arg1 to i64
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %7, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %7, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %17, i32 %13, i32 %10, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%19 = add i64 %7, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %7, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %7, 12
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %28, i32 %24, i32 %21, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%30 = add i64 %7, 24
%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 = urem i32 %34, 2
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
%or.cond = or i1 %5, %37
br i1 %or.cond, label LBL_6, label LBL_4
LBL_4:
%38 = add i64 %7, 16
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp eq i32 %40, 1
br i1 %41, label LBL_6, label LBL_5
LBL_5:
%42 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0))
unreachable
LBL_6:
br i1 %6, label LBL_8, label LBL_7
LBL_7:
%43 = add i64 %7, 16
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %7, 4
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 4
%51 = add i64 %50, ptrtoint (i32** @gv_3 to i64)
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = add i64 %7, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 4
%59 = add i64 %58, ptrtoint (i32** @gv_3 to i64)
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = zext i32 %53 to i64
%63 = zext i32 %61 to i64
%64 = call i64 @FUNC(i64 %63, i64 %62, i32 %45)
store i64 %64, i64* %storemerge.reg2mem
br label LBL_9
LBL_8:
%65 = call i64 @FUNC()
%66 = trunc i64 %65 to i32
%67 = add i64 %7, 8
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = add i64 %71, ptrtoint (i32** @gv_3 to i64)
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = zext i32 %74 to i64
%76 = and i64 %65, 4294967295
%77 = call i64 @FUNC(i64 %76, i64 %75, i64 31)
%78 = add i64 %7, 4
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = sext i32 %80 to i64
%82 = mul i64 %81, 4
%83 = add i64 %82, ptrtoint (i32** @gv_3 to i64)
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = add i64 %7, 12
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = sext i32 %88 to i64
%90 = mul i64 %89, 4
%91 = add i64 %90, ptrtoint (i32** @gv_3 to i64)
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = zext i32 %85 to i64
%95 = zext i32 %93 to i64
%96 = call i64 @FUNC(i64 %95, i64 %94, i32 %66)
%97 = call i64 @FUNC(i64 %76)
store i64 %97, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 4, 3, 5, 2, 1, 0, 7, 6, 10, 11, 13, 8, 9, 12 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i32, i32, i64, i64)* @LOG_DIS, { 1, 0 }
uselistorder i64 4, { 0, 1, 5, 2, 3, 4, 6, 7, 8 }
} | 1 |
BinRealVul | strdecode_9500 | strdecode | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem6 = alloca i8*
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg2 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i64 %0, i64* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
store i8 %2, i8* %.reg2mem
store i8* %1, i8** %.reg2mem6
store i64 %5, i64* %storemerge4.reg2mem
store i64 %0, i64* %sv_0.01.reg2mem
br label LBL_2
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%.reload7 = load i8*, i8** %.reg2mem6
%.reload = load i8, i8* %.reg2mem
%6 = icmp eq i8 %.reload, 37
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = call i16** @__ctype_b_loc()
%9 = load i16*, i16** %8, align 8
%10 = ptrtoint i16* %9 to i64
%11 = add i64 %storemerge4.reload, 1
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = sext i8 %13 to i64
%15 = mul i64 %14, 2
%16 = add i64 %15, %10
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = and i16 %18, 4096
%20 = icmp eq i16 %19, 0
br i1 %20, label LBL_6, label LBL_4
LBL_4:
%21 = call i16** @__ctype_b_loc()
%22 = load i16*, i16** %21, align 8
%23 = ptrtoint i16* %22 to i64
%24 = add i64 %storemerge4.reload, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = sext i8 %26 to i64
%28 = mul i64 %27, 2
%29 = add i64 %28, %23
%30 = inttoptr i64 %29 to i16*
%31 = load i16, i16* %30, align 2
%32 = and i16 %31, 4096
%33 = icmp eq i16 %32, 0
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = load i8, i8* %12, align 1
%35 = sext i8 %34 to i64
%36 = and i64 %35, 4294967295
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i8
%39 = mul i8 %38, 16
%40 = load i8, i8* %25, align 1
%41 = sext i8 %40 to i64
%42 = and i64 %41, 4294967295
%43 = call i64 @FUNC(i64 %42)
%44 = trunc i64 %43 to i8
%45 = add i8 %39, %44
%46 = inttoptr i64 %sv_0.01.reload to i8*
store i8 %45, i8* %46, align 1
store i64 %24, i64* %sv_1.0.reg2mem
br label LBL_7
LBL_6:
%47 = load i8, i8* %.reload7, align 1
%48 = inttoptr i64 %sv_0.01.reload to i8*
store i8 %47, i8* %48, align 1
store i64 %storemerge4.reload, i64* %sv_1.0.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%49 = add i64 %sv_0.01.reload, 1
%50 = add i64 %sv_1.0.reload, 1
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = icmp eq i8 %52, 0
%54 = icmp eq i1 %53, false
store i8 %52, i8* %.reg2mem
store i8* %51, i8** %.reg2mem6
store i64 %50, i64* %storemerge4.reg2mem
store i64 %49, i64* %sv_0.01.reg2mem
store i64 %49, i64* %sv_0.0.lcssa.reg2mem
br i1 %54, label LBL_2, label LBL_8
LBL_8:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%55 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
store i8 0, i8* %55, align 1
ret i64 %sv_0.0.lcssa.reload
uselistorder i64 %sv_0.01.reload, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem6, { 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @hexit, { 1, 0 }
uselistorder i64 2, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | isis_clear_checksum_lifetime_10078 | isis_clear_checksum_lifetime | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
store i8 0, i8* %1, align 1
%2 = add i64 %0, 1
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = add i64 %0, 2
%5 = inttoptr i64 %4 to i8*
store i8 0, i8* %5, align 1
%6 = add i64 %0, 3
%7 = inttoptr i64 %6 to i8*
store i8 0, i8* %7, align 1
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | decode_bytes_2346 | decode_bytes | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 4
%4 = zext i32 %3 to i64
%5 = sub i64 %1, %4
%6 = mul i32 %3, 4
%7 = zext i32 %6 to i64
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %arg3, 3
%12 = add i32 %11, %3
%13 = sdiv i32 %12, 8
%14 = zext i32 %13 to i64
%.off = add i32 %12, 7
%15 = icmp ult i32 %.off, 15
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%16 = mul i64 %.reload, 4
%17 = add i64 %5, %16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %16, %0
%21 = xor i32 %19, %10
%22 = inttoptr i64 %20 to i32*
store i32 %21, i32* %22, align 4
%23 = add i32 %storemerge1.reload, 1
%24 = sext i32 %23 to i64
%25 = icmp slt i64 %24, %14
store i64 %24, i64* %.reg2mem
store i32 %23, i32* %storemerge1.reg2mem
br i1 %25, label LBL_1, label LBL_2
LBL_2:
ret i64 %4
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i32 %3, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | sev_vm_destroy_19147 | sev_vm_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %2, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC()
%7 = call i64 @FUNC(i64 %1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = inttoptr i64 %1 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, %1
%14 = icmp eq i1 %13, false
store i64 %12, i64* %storemerge12.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%storemerge.in = inttoptr i64 %storemerge12.reload to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%15 = call i64 @FUNC(i64 %0, i64 %storemerge12.reload)
%16 = icmp eq i64 %storemerge, %1
%17 = icmp eq i1 %16, false
store i64 %storemerge, i64* %storemerge12.reg2mem
br i1 %17, label LBL_3, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %0)
%19 = add i64 %1, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %0, i64 %22)
%24 = add i64 %1, 20
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %27)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 4, 3, 1, 0, 2, 5 }
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ipoctal_init_16630 | ipoctal_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = bitcast i64* %sv_0 to i8*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = mul nuw nsw i64 %indvars.iv.reload, 24
%6 = add i64 %5, %3
%7 = add i64 %6, 16
%8 = inttoptr i64 %7 to i64*
store i64 %3, i64* %8, align 8
%9 = inttoptr i64 %6 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_5, label LBL_2
LBL_2:
store i64 30506449997099113, i64* %sv_1, align 8
%12 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%13 = zext i32 %12 to i64
%14 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %4, i32 10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_1, i64 %13)
%15 = load i64, i64* %9, align 8
%16 = call i64 @FUNC(i64* nonnull %sv_0, i64 %15, i64 0)
%17 = add i64 %6, 8
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = icmp eq i64 %16, 0
br i1 %19, label LBL_4, label LBL_3
LBL_3:
store i32 ptrtoint (i32* @gv_2 to i32), i32* bitcast (i64* @gv_0 to i32*), align 8
%20 = load i64, i64* %18, align 8
%21 = call i64 @FUNC(i64 %20, i64 4198799, i64 4198806, i64 4198813, i64 %6)
%22 = load i64, i64* %9, align 8
%23 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %indvars.iv.reload, i64 %22, i64* nonnull %sv_0, i64 %6, i64 %1)
br label LBL_5
LBL_4:
%24 = load i64, i64* %9, align 8
%25 = inttoptr i64 %15 to i64*
%26 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64 %indvars.iv.reload, i64 %24, i64* %25, i64 %13, i64 %1)
br label LBL_5
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_6, label LBL_1
LBL_6:
ret i64 0
uselistorder i64* %9, { 1, 0, 2, 3 }
uselistorder i64 %6, { 1, 0, 2, 3, 4 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1, 3 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i8*, i64, i64, i64*, i64, i64)* @DPRINTF, { 1, 0 }
} | 1 |
BinRealVul | ida_free_7078 | ida_free | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%3 = trunc i64 %arg2 to i32
%4 = and i64 %arg2, 4294967295
store i64 %1, i64* %sv_0, align 8
%5 = icmp slt i32 %3, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_12, label LBL_1
LBL_1:
%6 = urem i32 %3, 32
%7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2)
%8 = call i64 @FUNC(i64* nonnull %sv_0)
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %8)
%sext4 = mul i64 %12, 4294967296
%13 = ashr exact i64 %sext4, 32
%14 = zext i32 %6 to i64
%15 = shl i64 1, %14
%16 = and i64 %13, %15
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_11, label LBL_3
LBL_3:
%18 = icmp eq i32 %6, 0
%19 = sub i64 0, %15
%20 = sub i64 %19, 1
%storemerge3 = select i1 %18, i64 -2, i64 %20
%21 = and i64 %13, %storemerge3
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_9, label LBL_4
LBL_4:
%sext6 = mul i64 %21, 4294967296
%23 = ashr exact i64 %sext6, 32
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC(i64* nonnull %sv_0, i64 %24)
br label LBL_10
LBL_5:
%26 = icmp eq i64 %8, 0
br i1 %26, label LBL_11, label LBL_6
LBL_6:
%27 = zext i32 %6 to i64
%28 = call i64 @FUNC(i64 %27, i64 %8)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_11, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64 %27, i64 %8)
%32 = call i64 @FUNC(i64* nonnull %sv_0, i64 1)
%33 = call i64 @FUNC(i64 %8, i64 32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%36 = call i64 @FUNC(i64 %8)
br label LBL_9
LBL_9:
%37 = call i64 @FUNC(i64* nonnull %sv_0, i64 0)
br label LBL_10
LBL_10:
%38 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%39 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2)
%40 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i64 %4)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %8, { 0, 2, 1, 5, 3, 4, 6 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64*, i64)* @xas_unlock_irqrestore, { 1, 0 }
uselistorder i64 (i64*, i64)* @xas_store, { 1, 0 }
uselistorder i64 1, { 3, 4, 0, 1, 2 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | read_header_tga_6335 | read_header_tga | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = load i32, i32* %0
%5 = load i32, i32* %0
%6 = load i32, i32* %0
%7 = load i32, i32* %0
%8 = load i32, i32* %0
%9 = load i32, i32* %0
%10 = load i32, i32* %0
%11 = load i32, i32* %0
%12 = load i32, i32* %0
%13 = load i32, i32* %0
%14 = load i32, i32* %0
%15 = load i32, i32* %0
%16 = load i32, i32* %0
%17 = load i32, i32* %0
%18 = load i32, i32* %0
%sv_0 = alloca i32, align 4
%19 = bitcast i32* %sv_0 to i64*
%20 = call i64 @FUNC(i64* nonnull %19, i64 18, i64 %1)
%21 = trunc i64 %20 to i32
%22 = icmp sgt i32 %21, 17
br i1 %22, label LBL_2, label LBL_1
LBL_1:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%24 = ptrtoint i64* %arg2 to i64
%25 = load i32, i32* %sv_0, align 4
%26 = urem i32 %25, 256
%27 = bitcast i64* %arg2 to i32*
store i32 %26, i32* %27, align 4
%28 = urem i32 %18, 256
%29 = add i64 %24, 4
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = urem i32 %17, 256
%32 = add i64 %24, 8
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = mul i32 %15, 256
%35 = and i32 %34, 65280
%36 = urem i32 %16, 256
%37 = or i32 %36, %35
%38 = add i64 %24, 12
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = mul i32 %13, 256
%41 = and i32 %40, 65280
%42 = urem i32 %14, 256
%43 = or i32 %42, %41
%44 = add i64 %24, 16
%45 = inttoptr i64 %44 to i32*
store i32 %43, i32* %45, align 4
%46 = urem i32 %12, 256
%47 = add i64 %24, 20
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
%49 = mul i32 %10, 256
%50 = and i32 %49, 65280
%51 = urem i32 %11, 256
%52 = or i32 %51, %50
%53 = add i64 %24, 24
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = mul i32 %8, 256
%56 = and i32 %55, 65280
%57 = urem i32 %9, 256
%58 = or i32 %57, %56
%59 = add i64 %24, 28
%60 = inttoptr i64 %59 to i32*
store i32 %58, i32* %60, align 4
%61 = mul i32 %6, 256
%62 = and i32 %61, 65280
%63 = urem i32 %7, 256
%64 = or i32 %63, %62
%65 = add i64 %24, 32
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = mul i32 %4, 256
%68 = and i32 %67, 65280
%69 = urem i32 %5, 256
%70 = or i32 %69, %68
%71 = add i64 %24, 36
%72 = inttoptr i64 %71 to i32*
store i32 %70, i32* %72, align 4
%73 = urem i32 %3, 256
%74 = add i64 %24, 40
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
%76 = urem i32 %2, 16
%77 = add i64 %24, 44
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = udiv i32 %2, 16
%80 = urem i32 %79, 2
%81 = add i64 %24, 48
%82 = inttoptr i64 %81 to i32*
store i32 %80, i32* %82, align 4
%83 = and i32 %2, 32
%84 = icmp eq i32 %83, 0
%85 = zext i1 %84 to i32
%86 = add i64 %24, 52
%87 = inttoptr i64 %86 to i32*
store i32 %85, i32* %87, align 4
%88 = load i32, i32* %75, align 4
%89 = zext i32 %88 to i64
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %89)
%91 = load i32, i32* %87, align 4
%92 = zext i32 %91 to i64
%93 = load i32, i32* %82, align 4
%94 = zext i32 %93 to i64
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %94, i64 %92)
%96 = load i32, i32* %78, align 4
%97 = zext i32 %96 to i64
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %97)
%99 = load i32, i32* %72, align 4
%100 = zext i32 %99 to i64
%101 = load i32, i32* %66, align 4
%102 = zext i32 %101 to i64
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i64 %102, i64 %100)
%104 = load i32, i32* %75, align 4
%105 = icmp eq i32 %104, 24
%.pre.pre = load i32, i32* %78, align 4
%106 = icmp eq i32 %.pre.pre, 0
%or.cond20 = icmp eq i1 %105, %106
br i1 %or.cond20, label LBL_5, label LBL_3
LBL_3:
%107 = icmp eq i32 %104, 32
%108 = icmp eq i32 %.pre.pre, 8
%or.cond = icmp eq i1 %107, %108
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%109 = zext i32 %.pre.pre to i64
%110 = zext i32 %104 to i64
%111 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_5, i64 0, i64 0), i64 %110, i64 %109)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%112 = add i64 %24, 56
%113 = inttoptr i64 %112 to i64*
store i64 0, i64* %113, align 8
%114 = bitcast i64* %rsi to i32*
%115 = load i32, i32* %114, align 8
%116 = icmp slt i32 %115, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %116, label LBL_9, label LBL_6
LBL_6:
%117 = sext i32 %115 to i64
%118 = call i64 @FUNC(i64 %117)
store i64 %118, i64* %113, align 8
%119 = icmp eq i64 %118, 0
%120 = icmp eq i1 %119, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %120, label LBL_7, label LBL_9
LBL_7:
%121 = load i32, i32* %114, align 8
%122 = zext i32 %121 to i64
%123 = inttoptr i64 %118 to i64*
%124 = call i64 @FUNC(i64* %123, i64 %122, i64 %1)
%125 = trunc i64 %124 to i32
%126 = icmp eq i32 %121, %125
store i64 1, i64* %rax.0.reg2mem
br i1 %126, label LBL_9, label LBL_8
LBL_8:
%127 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_6, i64 0, i64 0))
store i64 4294967295, 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 %118, { 1, 0, 2 }
uselistorder i32 %2, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 3, 1, 6, 4 }
uselistorder i32* %0, { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 (i8*, ...)* @printf, { 2, 3, 1, 0 }
uselistorder i32 256, { 6, 7, 0, 8, 1, 9, 2, 10, 3, 11, 12, 4, 13, 5, 14, 15, 16 }
uselistorder i64 4294967295, { 2, 0, 3, 1, 4 }
uselistorder i64 (i8*)* @gd_error, { 1, 0 }
uselistorder i64 (i64*, i64, i64)* @gdGetBuf, { 1, 0 }
uselistorder label LBL_9, { 3, 1, 2, 0, 4, 5 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | pci_edu_realize_13895 | pci_edu_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, -112
%3 = add i64 %1, -16
%4 = call i64 @FUNC(i64 %3, i64 0, i64 4198966, i64 %2)
%5 = add i64 %1, -104
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %1, -64
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 4198977, i64 %2, i64 1)
%10 = call i64 @FUNC(i64 %1, i64 1)
%11 = call i64 @FUNC(i64 %1, i64 0, i64 1, i64 1, i64 0, i64 %0)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = add i64 %1, -8
%16 = call i64 @FUNC(i64 %15, i64 %2, i64* nonnull @gv_1, i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 1048576)
%17 = call i64 @FUNC(i64 %1, i64 0, i64 0, i64 %15)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 1, 3, 4, 2 }
uselistorder i64 %1, { 1, 0, 6, 7, 2, 3, 4, 5 }
uselistorder i64 1, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_send_packet_1424 | qemu_send_packet | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%sext = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add nsw i64 %7, 24
%13 = call i64 @FUNC(i64 %12)
%14 = inttoptr i64 %1 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %13 to i64*
store i64 %15, i64* %16, align 8
%17 = add i64 %13, 8
%18 = inttoptr i64 %17 to i64*
store i64 %0, i64* %18, align 8
%19 = trunc i64 %7 to i32
%20 = add i64 %13, 16
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = add i64 %13, 20
%23 = inttoptr i64 %22 to i64*
%24 = bitcast i32* %arg2 to i64*
%25 = call i64* @memcpy(i64* %23, i64* %24, i32 %19)
store i64 %13, i64* %14, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
store i32 1, i32* %9, align 4
%26 = trunc i64 %7 to i32
%27 = ptrtoint i32* %arg2 to i64
%28 = call i64 @FUNC(i64 %0, i64 %27, i32 %26)
%29 = inttoptr i64 %1 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 %30, i64* %.reg2mem
br i1 %32, label LBL_4, label LBL_5
LBL_4:
%.reload = load i64, i64* %.reg2mem
%33 = inttoptr i64 %.reload to i64*
%34 = load i64, i64* %33, align 8
store i64 %34, i64* %29, align 8
%35 = add i64 %.reload, 16
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %.reload, 20
%39 = add i64 %.reload, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %41, i64 %38, i32 %37)
%43 = call i64 @FUNC(i64 %.reload)
%44 = load i64, i64* %29, align 8
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 %44, i64* %.reg2mem
br i1 %46, label LBL_4, label LBL_5
LBL_5:
store i32 0, i32* %9, align 4
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 %.reload, { 0, 3, 2, 1, 4 }
uselistorder i64* %29, { 2, 1, 0 }
uselistorder i64 %7, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 3, 0, 2, 4, 5 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64, i32)* @qemu_deliver_packet, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | cmv_decode_intra_964 | cmv_decode_intra | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = ptrtoint i64* %arg2 to i64
%9 = add i64 %0, 16
%10 = inttoptr i64 %9 to i32*
store i64 %0, i64* %.in.reg2mem
store i32 0, i32* %storemerge3.reg2mem
store i64 %7, i64* %sv_1.02.reg2mem
store i64 %8, i64* %sv_0.01.reg2mem
br label LBL_3
LBL_2:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%11 = trunc i64 %.in.reload to i32
%12 = inttoptr i64 %sv_1.02.reload to i64*
%13 = inttoptr i64 %sv_0.01.reload to i64*
%14 = call i64* @memcpy(i64* %12, i64* %13, i32 %11)
%15 = load i32, i32* %10, align 4
%16 = sext i32 %15 to i64
%17 = add i64 %sv_1.02.reload, %16
%sext = mul i64 %sv_1.02.reload, 4294967296
%18 = ashr exact i64 %sext, 32
%19 = add i64 %18, %sv_0.01.reload
%20 = add i32 %storemerge3.reload, 1
%21 = add i64 %sv_1.02.reload, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = sext i32 %20 to i64
%26 = icmp slt i64 %25, %24
store i64 %sv_1.02.reload, i64* %.in.reg2mem
store i32 %20, i32* %storemerge3.reg2mem
store i64 %17, i64* %sv_1.02.reg2mem
store i64 %19, i64* %sv_0.01.reg2mem
store i64 %24, i64* %rax.0.reg2mem
br i1 %26, label LBL_3, label LBL_4
LBL_3:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%.in.reload = load i64, i64* %.in.reg2mem
%27 = sub i64 %arg3, %sv_0.01.reload
%sext7 = mul i64 %.in.reload, 4294967296
%28 = ashr exact i64 %sext7, 32
%29 = icmp slt i64 %27, %28
store i64 %28, i64* %rax.0.reg2mem
br i1 %29, label LBL_4, label LBL_2
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.in.reload, { 1, 0 }
uselistorder i64 %sv_0.01.reload, { 1, 0, 2 }
uselistorder i64 %sv_1.02.reload, { 4, 1, 3, 2, 0 }
uselistorder i64 %0, { 0, 2, 3, 1 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | bm_fillroundrect_12787 | bm_fillroundrect | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem29 = alloca i32
%.reg2mem27 = alloca i32
%storemerge1016.reg2mem = alloca i32
%.reg2mem25 = alloca i64
%.reg2mem23 = alloca i32
%storemerge17.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%storemerge12.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %arg6 to i32
%3 = sub i32 0, %2
%4 = mul i32 %2, 2
%5 = sub i32 2, %4
%sext9 = mul i64 %arg6, 4294967296
%6 = ashr exact i64 %sext9, 32
%7 = trunc i64 %arg2 to i32
%8 = trunc i64 %6 to i32
%9 = add i32 %8, %7
%10 = trunc i64 %arg4 to i32
%11 = sub i32 %10, %8
store i32 %3, i32* %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 %5, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%12 = add i32 %9, %sv_2.0.reload
%13 = sub i32 %11, %sv_2.0.reload
store i32 %12, i32* %storemerge12.reg2mem
br label LBL_2
LBL_2:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%14 = icmp sgt i32 %storemerge12.reload, %13
%15 = add i32 %storemerge12.reload, 1
store i32 %15, i32* %storemerge12.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_3:
%16 = icmp sgt i32 %sv_0.0.reload, %sv_2.0.reload
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %16, label LBL_4, label LBL_5
LBL_4:
%17 = add i32 %sv_2.0.reload, 1
%18 = mul i32 %17, 2
%19 = or i32 %18, 1
%20 = add i32 %19, %sv_0.0.reload
store i32 %17, i32* %sv_2.1.reg2mem
store i32 %20, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%21 = icmp sgt i32 %sv_0.0.reload, %sv_1.0.reload
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = add i32 %sv_1.0.reload, 1
%23 = mul i32 %22, 2
%24 = or i32 %23, 1
%25 = add i32 %sv_0.1.reload, %24
store i32 %22, i32* %sv_1.1.reg2mem
store i32 %25, i32* %sv_0.2.reg2mem
br label LBL_7
LBL_7:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%26 = icmp slt i32 %sv_2.1.reload, 0
store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.0.reg2mem
br i1 %26, label LBL_1, label LBL_8
LBL_8:
%sext6 = mul i64 %arg3, 4294967296
%27 = ptrtoint i64* %arg1 to i64
%28 = ashr exact i64 %sext6, 32
%29 = add nsw i64 %6, %28
%30 = and i64 %29, 4294967295
%31 = add i64 %27, 12
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %33 to i64
%35 = icmp ult i64 %30, %34
%36 = add nsw i64 %29, 1
%storemerge11 = select i1 %35, i64 %34, i64 %36
%37 = add i64 %27, 20
%38 = inttoptr i64 %37 to i32*
%39 = sub i64 %arg5, %6
%40 = trunc i64 %39 to i32
%41 = load i32, i32* %38, align 4
%42 = sub i32 %41, %40
%43 = xor i32 %41, %40
%44 = xor i32 %42, %41
%45 = and i32 %44, %43
%46 = icmp slt i32 %45, 0
%47 = icmp eq i32 %42, 0
%48 = icmp slt i32 %42, 0
%49 = icmp ne i1 %48, %46
%50 = or i1 %47, %49
%51 = select i1 %50, i32 %41, i32 %40
%52 = zext i32 %51 to i64
%sext = mul i64 %storemerge11, 4294967296
%53 = ashr exact i64 %sext, 32
%54 = icmp slt i64 %53, %52
store i64 %52, i64* %.lcssa.reg2mem
br i1 %54, label LBL_9, label LBL_17
LBL_9:
%55 = add i64 %27, 8
%56 = inttoptr i64 %55 to i32*
%57 = add i64 %27, 16
%58 = inttoptr i64 %57 to i32*
%59 = add i64 %27, 4
%60 = inttoptr i64 %59 to i32*
%61 = trunc i64 %storemerge11 to i32
%62 = and i64 %1, 4294967295
store i32 %41, i32* %.reg2mem
store i64 %53, i64* %.reg2mem21
store i32 %61, i32* %storemerge17.reg2mem
br label LBL_10
LBL_10:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%.reload = load i32, i32* %.reg2mem
%63 = load i32, i32* %56, align 4
%64 = sub i32 %7, %63
%65 = xor i32 %63, %7
%66 = xor i32 %64, %7
%67 = and i32 %66, %65
%68 = icmp slt i32 %67, 0
%69 = icmp slt i32 %64, 0
%70 = icmp eq i1 %69, %68
%71 = select i1 %70, i32 %7, i32 %63
%72 = icmp slt i32 %storemerge17.reload, 0
%73 = load i32, i32* %58, align 4
%74 = add i32 %73, -1
%75 = sub i32 %74, %10
%76 = xor i32 %74, %10
%77 = xor i32 %75, %74
%78 = and i32 %77, %76
%79 = icmp slt i32 %78, 0
%80 = icmp eq i32 %75, 0
%81 = icmp slt i32 %75, 0
%82 = icmp ne i1 %81, %79
%83 = or i1 %80, %82
%84 = select i1 %83, i32 %74, i32 %10
%85 = zext i32 %84 to i64
%86 = sext i32 %71 to i64
%87 = icmp sgt i64 %86, %85
store i32 %73, i32* %.reg2mem23
store i64 %86, i64* %.reg2mem25
store i32 %71, i32* %storemerge1016.reg2mem
store i32 %.reload, i32* %.reg2mem29
br i1 %87, label LBL_16, label LBL_11
LBL_11:
%storemerge1016.reload = load i32, i32* %storemerge1016.reg2mem
%.reload26 = load i64, i64* %.reg2mem25
%88 = icmp slt i32 %storemerge1016.reload, 0
%89 = icmp sle i64 %62, %.reload26
%or.cond = or i1 %72, %89
%or.cond20 = or i1 %88, %or.cond
br i1 %or.cond20, label LBL_13, label LBL_12
LBL_12:
%.reload24 = load i32, i32* %.reg2mem23
%90 = load i32, i32* %60, align 4
%91 = zext i32 %90 to i64
%92 = icmp slt i64 %.reload22, %91
store i32 %.reload24, i32* %.reg2mem27
br i1 %92, label LBL_14, label LBL_13
LBL_13:
call void @__assert_fail(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i32, i32* %58, align 4
store i32 %.pre, i32* %.reg2mem27
br label LBL_14
LBL_14:
%.reload28 = load i32, i32* %.reg2mem27
%93 = add i32 %storemerge1016.reload, 1
%94 = add i32 %.reload28, -1
%95 = sub i32 %94, %10
%96 = xor i32 %94, %10
%97 = xor i32 %95, %94
%98 = and i32 %97, %96
%99 = icmp slt i32 %98, 0
%100 = icmp eq i32 %95, 0
%101 = icmp slt i32 %95, 0
%102 = icmp ne i1 %101, %99
%103 = or i1 %100, %102
%104 = select i1 %103, i32 %94, i32 %10
%105 = zext i32 %104 to i64
%106 = sext i32 %93 to i64
%107 = icmp sgt i64 %106, %105
store i32 %.reload28, i32* %.reg2mem23
store i64 %106, i64* %.reg2mem25
store i32 %93, i32* %storemerge1016.reg2mem
br i1 %107, label LBL_15, label LBL_11
LBL_15:
%.pre19 = load i32, i32* %38, align 4
store i32 %.pre19, i32* %.reg2mem29
br label LBL_16
LBL_16:
%.reload30 = load i32, i32* %.reg2mem29
%108 = add i32 %storemerge17.reload, 1
%109 = sub i32 %.reload30, %40
%110 = xor i32 %.reload30, %40
%111 = xor i32 %109, %.reload30
%112 = and i32 %111, %110
%113 = icmp slt i32 %112, 0
%114 = icmp eq i32 %109, 0
%115 = icmp slt i32 %109, 0
%116 = icmp ne i1 %115, %113
%117 = or i1 %114, %116
%118 = select i1 %117, i32 %.reload30, i32 %40
%119 = zext i32 %118 to i64
%120 = sext i32 %108 to i64
%121 = icmp slt i64 %120, %119
store i32 %.reload30, i32* %.reg2mem
store i64 %120, i64* %.reg2mem21
store i32 %108, i32* %storemerge17.reg2mem
store i64 %119, i64* %.lcssa.reg2mem
br i1 %121, label LBL_10, label LBL_17
LBL_17:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %109, { 1, 2, 0 }
uselistorder i32 %.reload30, { 4, 2, 0, 1, 3 }
uselistorder i32 %95, { 1, 2, 0 }
uselistorder i32 %94, { 2, 0, 1, 3 }
uselistorder i32 %.reload28, { 1, 0 }
uselistorder i32 %64, { 1, 0 }
uselistorder i32 %63, { 1, 0, 2 }
uselistorder i32 %storemerge17.reload, { 1, 0 }
uselistorder i32 %40, { 4, 3, 5, 0, 1, 2 }
uselistorder i64 %storemerge11, { 1, 0 }
uselistorder i64 %27, { 1, 0, 2, 3, 4 }
uselistorder i32 %sv_2.1.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %storemerge12.reload, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 1, 0, 2, 4, 3 }
uselistorder i32 %sv_1.0.reload, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 2, 3, 0, 1 }
uselistorder i32 %10, { 5, 4, 6, 1, 2, 3, 0 }
uselistorder i32 %7, { 3, 0, 1, 4, 2 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %storemerge17.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem23, { 2, 0, 1 }
uselistorder i64* %.reg2mem25, { 2, 0, 1 }
uselistorder i32* %storemerge1016.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem27, { 0, 2, 1 }
uselistorder i32* %.reg2mem29, { 0, 2, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder i32 0, { 14, 15, 16, 9, 10, 11, 8, 4, 5, 6, 7, 12, 13, 1, 2, 3, 17, 0, 18 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | numPartsWithin_11940 | numPartsWithin | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = trunc i64 %arg2 to i32
%2 = sub i32 %0, %1
%3 = add i32 %2, %arg3
%4 = ashr i32 %3, 31
%5 = zext i32 %3 to i64
%6 = zext i32 %4 to i64
%7 = mul i64 %6, 4294967296
%8 = or i64 %7, %5
%9 = zext i32 %arg3 to i64
%10 = sdiv i64 %8, %9
%11 = and i64 %10, 4294967295
ret i64 %11
uselistorder i32 %arg3, { 1, 0 }
} | 1 |
BinRealVul | jsi_wsHeader_9836 | jsi_wsHeader | define i64 @FUNC(i32* %arg1, i8* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.08.reg2mem = alloca i64
%storemerge10.reg2mem = alloca i32
%.reg2mem24 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i8* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = call i64 @FUNC(i64 %2)
%5 = add i64 %3, 16
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_7, label LBL_1
LBL_1:
%9 = trunc i64 %4 to i32
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i64*
%sext = mul i64 %4, 4294967296
%12 = ashr exact i64 %sext, 32
%.pre = load i64, i64* %11, align 8
%13 = and i64 %1, 4294967295
store i64 %.pre, i64* %.reg2mem
store i64 0, i64* %.reg2mem24
store i32 0, i32* %storemerge10.reg2mem
store i64 %6, i64* %sv_1.08.reg2mem
br label LBL_2
LBL_2:
%sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%.reload25 = load i64, i64* %.reg2mem24
%.reload = load i64, i64* %.reg2mem
%14 = mul i64 %.reload25, 4
%15 = add i64 %14, %.reload
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = call i64 @FUNC(i64 %sv_1.08.reload, i64 %2, i32 %9)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %sv_1.08.reload, %12
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 61
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_4, label LBL_5
LBL_4:
%27 = add i32 %17, 1
%28 = sext i32 %27 to i64
%29 = add i64 %sv_1.08.reload, %28
%30 = load i64, i64* %11, align 8
%31 = or i64 %14, 4
%32 = add i64 %30, %31
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i32 %34, 1
%36 = sext i32 %35 to i64
%37 = add i64 %29, %36
%38 = add i32 %storemerge10.reload, 2
%39 = sext i32 %38 to i64
%40 = icmp sgt i64 %13, %39
store i64 %30, i64* %.reg2mem
store i64 %39, i64* %.reg2mem24
store i32 %38, i32* %storemerge10.reg2mem
store i64 %37, i64* %sv_1.08.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %40, label LBL_2, label LBL_7
LBL_5:
%41 = add i32 %17, 1
%42 = sext i32 %41 to i64
%43 = add i64 %sv_1.08.reload, %42
%44 = icmp eq i32* %arg3, null
store i64 %43, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_7, label LBL_6
LBL_6:
%45 = load i64, i64* %11, align 8
%46 = or i64 %14, 4
%47 = add i64 %45, %46
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
store i32 %49, i32* %arg3, align 4
store i64 %43, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %14, { 2, 0, 1 }
uselistorder i64 %sv_1.08.reload, { 3, 2, 1, 0 }
uselistorder i64* %11, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem24, { 1, 0, 2 }
uselistorder i32* %storemerge10.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64 4, { 2, 1, 0 }
uselistorder i32* %arg3, { 1, 0 }
uselistorder label LBL_7, { 3, 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | usbvision_configure_video_10683 | usbvision_configure_video | 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 = icmp eq i64* %arg1, null
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = bitcast i64* %rdi to i32*
%5 = load i32, i32* @gv_0, align 4
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = load i32, i32* %4, align 8
%9 = sext i32 %8 to i64
%10 = mul nsw i64 %9, 20
%11 = add i64 %10, ptrtoint (i32** @gv_1 to i64)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = add i64 %10, ptrtoint (i32** @gv_2 to i64)
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %3, 8
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
br label LBL_4
LBL_3:
%20 = add i64 %3, 8
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
br label LBL_4
LBL_4:
%sext = mul i64 %1, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = mul nsw i64 %22, 20
%24 = add i64 %23, ptrtoint (i32** @gv_3 to i64)
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %3, 12
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = add i64 %23, ptrtoint (i32** @gv_4 to i64)
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i64 %3, 16
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = add i64 %3, 20
%35 = inttoptr i64 %34 to i32*
store i32 0, i32* %35, align 4
%36 = call i128 @FUNC(i64 4698763765934456832)
%37 = call i64 @__asm_movsd.1(i128 %36)
%38 = add i64 %3, 24
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = call i128 @FUNC(i64 4663758889118859264)
%41 = call i64 @__asm_movsd.1(i128 %40)
%42 = add i64 %3, 32
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
%44 = add i64 %23, ptrtoint (i32** @gv_5 to i64)
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp slt i32 %46, 1
br i1 %47, label LBL_6, label LBL_5
LBL_5:
%48 = call i64 @FUNC(i64 %3)
br label LBL_6
LBL_6:
%49 = call i64 @FUNC(i64 %3)
%50 = call i64 @FUNC(i64 %3)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 3, 2, 1, 4, 5, 6, 7, 8, 9, 0, 10 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 20, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | jas_iccgetuint_11213 | jas_iccgetuint | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%storemerge3.in7.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp slt i32 %0, 0
%3 = icmp eq i1 %2, false
%4 = icmp eq i1 %1, false
%5 = icmp eq i1 %3, %4
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
store i64 %sext, i64* %storemerge3.in7.reg2mem
store i64 0, i64* %sv_0.06.reg2mem
br label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, -1
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %10, label LBL_3, label LBL_5
LBL_3:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%storemerge3.in7.reload = load i64, i64* %storemerge3.in7.reg2mem
%11 = mul i64 %sv_0.06.reload, 256
%sext4 = mul i64 %7, 4294967296
%12 = ashr exact i64 %sext4, 32
%13 = or i64 %12, %11
%sext2 = add i64 %storemerge3.in7.reload, -4294967296
%14 = udiv i64 %sext2, 4294967296
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp slt i32 %15, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
store i64 %sext2, i64* %storemerge3.in7.reg2mem
store i64 %13, i64* %sv_0.06.reg2mem
store i64 %13, i64* %sv_0.0.lcssa.reg2mem
br i1 %20, label LBL_2, label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
store i64 %sv_0.0.lcssa.reload, i64* %arg3, 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 i32 %15, { 1, 0 }
uselistorder i64* %storemerge3.in7.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967296, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xhci_ring_chain_length_6533 | xhci_ring_chain_length | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i32
%sv_0.138.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%sv_1.014.lcssa.reg2mem = alloca i64
%sv_2.015.lcssa.reg2mem = alloca i32
%sv_3.016.lcssa.reg2mem = alloca i32
%.reg2mem71 = alloca i32
%sv_3.01653.reg2mem = alloca i32
%sv_2.01554.reg2mem = alloca i32
%sv_4.0.ph.lcssa.reg2mem = alloca i32
%sv_4.0.ph18.reg2mem = alloca i32
%sv_1.0.ph19.reg2mem = alloca i64
%sv_2.0.ph20.reg2mem = alloca i32
%sv_0.0.ph21.reg2mem = alloca i32
%sv_3.0.ph22.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_5 = alloca i32, align 4
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4, align 1
%6 = sext i8 %5 to i32
%7 = call i64 @FUNC(i64 %2, i64 %0, i64* nonnull %sv_7, i64 16)
%8 = call i64 @FUNC(i64* nonnull %sv_7)
%9 = call i64 @FUNC(i64* nonnull %sv_6)
%10 = bitcast i32* %sv_5 to i64*
%11 = call i64 @FUNC(i64* nonnull %10)
%12 = load i32, i32* %sv_5, align 4
%13 = urem i32 %12, 2
%14 = urem i32 %6, 256
%15 = icmp eq i32 %13, %14
store i32 %13, i32* %.reg2mem
store i32 0, i32* %sv_3.0.ph22.reg2mem
store i32 0, i32* %sv_0.0.ph21.reg2mem
store i32 %6, i32* %sv_2.0.ph20.reg2mem
store i64 %0, i64* %sv_1.0.ph19.reg2mem
store i32 0, i32* %sv_4.0.ph18.reg2mem
store i32 0, i32* %sv_4.0.ph.lcssa.reg2mem
br i1 %15, label LBL_1, label LBL_2
LBL_1:
%sv_4.0.ph18.reload = load i32, i32* %sv_4.0.ph18.reg2mem
%sv_1.0.ph19.reload = load i64, i64* %sv_1.0.ph19.reg2mem
%sv_2.0.ph20.reload = load i32, i32* %sv_2.0.ph20.reg2mem
%sv_0.0.ph21.reload = load i32, i32* %sv_0.0.ph21.reg2mem
%sv_3.0.ph22.reload = load i32, i32* %sv_3.0.ph22.reg2mem
%.reload = load i32, i32* %.reg2mem
%16 = load i64, i64* %sv_7, align 8
%17 = load i64, i64* %sv_6, align 8
%18 = call i64 @FUNC(i64 %16, i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 7
%21 = icmp eq i1 %20, false
store i32 %sv_2.0.ph20.reload, i32* %sv_2.01554.reg2mem
store i32 %sv_3.0.ph22.reload, i32* %sv_3.01653.reg2mem
store i32 %.reload, i32* %.reg2mem71
store i32 %sv_3.0.ph22.reload, i32* %sv_3.016.lcssa.reg2mem
store i32 %sv_2.0.ph20.reload, i32* %sv_2.015.lcssa.reg2mem
store i64 %sv_1.0.ph19.reload, i64* %sv_1.014.lcssa.reg2mem
store i32 %19, i32* %.lcssa.reg2mem
br i1 %21, label LBL_7, label LBL_4
LBL_2:
%sv_4.0.ph.lcssa.reload = load i32, i32* %sv_4.0.ph.lcssa.reg2mem
%22 = sub i32 0, %sv_4.0.ph.lcssa.reload
store i32 %22, i32* %rax.0.in.reg2mem
br label LBL_11
LBL_3:
%23 = load i64, i64* %sv_7, align 8
%24 = load i64, i64* %sv_6, align 8
%25 = call i64 @FUNC(i64 %23, i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 7
%28 = icmp eq i1 %27, false
store i32 %sv_2.1, i32* %sv_2.01554.reg2mem
store i32 %29, i32* %sv_3.01653.reg2mem
store i32 %44, i32* %.reg2mem71
store i32 %29, i32* %sv_3.016.lcssa.reg2mem
store i32 %sv_2.1, i32* %sv_2.015.lcssa.reg2mem
store i64 %33, i64* %sv_1.014.lcssa.reg2mem
store i32 %26, i32* %.lcssa.reg2mem
br i1 %28, label LBL_7, label LBL_4
LBL_4:
%sv_3.01653.reload = load i32, i32* %sv_3.01653.reg2mem
%29 = add i32 %sv_3.01653.reload, 1
%30 = icmp ult i32 %29, 257
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = sub i32 0, %sv_4.0.ph18.reload
store i32 %31, i32* %rax.0.in.reg2mem
br label LBL_11
LBL_6:
%.reload72 = load i32, i32* %.reg2mem71
%sv_2.01554.reload = load i32, i32* %sv_2.01554.reg2mem
%32 = load i64, i64* %sv_7, align 8
%33 = call i64 @FUNC(i64 %32)
%34 = load i32, i32* %sv_5, align 4
%35 = and i32 %34, 2
%36 = icmp eq i32 %35, 0
%37 = icmp eq i32 %.reload72, 0
%38 = zext i1 %37 to i32
%sv_2.1 = select i1 %36, i32 %sv_2.01554.reload, i32 %38
%39 = call i64 @FUNC(i64 %2, i64 %33, i64* nonnull %sv_7, i64 16)
%40 = call i64 @FUNC(i64* nonnull %sv_7)
%41 = call i64 @FUNC(i64* nonnull %sv_6)
%42 = call i64 @FUNC(i64* nonnull %10)
%43 = load i32, i32* %sv_5, align 4
%44 = urem i32 %43, 2
%45 = urem i32 %sv_2.1, 256
%46 = icmp eq i32 %44, %45
store i32 %sv_4.0.ph18.reload, i32* %sv_4.0.ph.lcssa.reg2mem
br i1 %46, label LBL_3, label LBL_2
LBL_7:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%sv_1.014.lcssa.reload = load i64, i64* %sv_1.014.lcssa.reg2mem
%sv_2.015.lcssa.reload = load i32, i32* %sv_2.015.lcssa.reg2mem
%sv_3.016.lcssa.reload = load i32, i32* %sv_3.016.lcssa.reg2mem
%47 = add i32 %sv_4.0.ph18.reload, 1
%48 = icmp eq i32 %.lcssa.reload, 5
%49 = icmp eq i1 %48, false
store i32 1, i32* %sv_0.138.reg2mem
br i1 %49, label LBL_8, label LBL_9
LBL_8:
%50 = icmp eq i32 %.lcssa.reload, 6
%51 = icmp eq i1 %50, false
%spec.select = select i1 %51, i32 %sv_0.0.ph21.reload, i32 0
%52 = trunc i32 %spec.select to i8
%53 = icmp eq i8 %52, 1
store i32 %spec.select, i32* %sv_0.138.reg2mem
br i1 %53, label LBL_9, label LBL_10
LBL_9:
%54 = add i64 %sv_1.014.lcssa.reload, 16
%sv_0.138.reload = load i32, i32* %sv_0.138.reg2mem
%55 = call i64 @FUNC(i64 %2, i64 %54, i64* nonnull %sv_7, i64 16)
%56 = call i64 @FUNC(i64* nonnull %sv_7)
%57 = call i64 @FUNC(i64* nonnull %sv_6)
%58 = call i64 @FUNC(i64* nonnull %10)
%59 = load i32, i32* %sv_5, align 4
%60 = urem i32 %59, 2
%61 = urem i32 %sv_2.015.lcssa.reload, 256
%62 = icmp eq i32 %60, %61
store i32 %60, i32* %.reg2mem
store i32 %sv_3.016.lcssa.reload, i32* %sv_3.0.ph22.reg2mem
store i32 %sv_0.138.reload, i32* %sv_0.0.ph21.reg2mem
store i32 %sv_2.015.lcssa.reload, i32* %sv_2.0.ph20.reg2mem
store i64 %54, i64* %sv_1.0.ph19.reg2mem
store i32 %47, i32* %sv_4.0.ph18.reg2mem
store i32 %47, i32* %sv_4.0.ph.lcssa.reg2mem
br i1 %62, label LBL_1, label LBL_2
LBL_10:
%63 = load i32, i32* %sv_5, align 4
%64 = and i32 %63, 4
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
store i32 %spec.select, i32* %sv_0.138.reg2mem
store i32 %47, i32* %rax.0.in.reg2mem
br i1 %66, label LBL_9, label LBL_11
LBL_11:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = zext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i32 %sv_2.015.lcssa.reload, { 1, 0 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %sv_2.1, { 2, 1, 0 }
uselistorder i64 %33, { 1, 0 }
uselistorder i32 %29, { 2, 1, 0 }
uselistorder i32 %sv_4.0.ph18.reload, { 1, 0, 2 }
uselistorder i64* %10, { 1, 2, 0 }
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i64* %sv_7, { 3, 4, 5, 6, 7, 8, 0, 1, 2 }
uselistorder i64* %sv_6, { 2, 3, 4, 0, 1 }
uselistorder i32* %sv_5, { 4, 1, 2, 3, 0, 5 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.0.ph22.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.ph21.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.0.ph20.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.ph19.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.0.ph18.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.0.ph.lcssa.reg2mem, { 1, 2, 0, 3 }
uselistorder i32* %sv_2.01554.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.01653.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem71, { 0, 2, 1 }
uselistorder i32* %sv_0.138.reg2mem, { 2, 0, 3, 1 }
uselistorder i32* %rax.0.in.reg2mem, { 0, 1, 3, 2 }
uselistorder i1 false, { 1, 2, 3, 4, 0 }
uselistorder i32 7, { 1, 0 }
uselistorder i64 (i64, i64)* @TRB_TYPE, { 1, 0 }
uselistorder i32 0, { 5, 4, 6, 7, 8, 9, 0, 1, 2, 3 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder i64 (i64*)* @le32_to_cpus, { 2, 3, 5, 4, 0, 1 }
uselistorder i64 (i64*)* @le64_to_cpus, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64*, i64)* @pci_dma_read, { 1, 2, 0 }
uselistorder i64 16, { 1, 3, 2, 0 }
uselistorder label LBL_9, { 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | shift_chunk_offsets_6976 | shift_chunk_offsets | define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%indvars.iv2439.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32*
%sv_1.0.reg2mem = alloca i32*
%indvars.iv.next32.reg2mem = alloca i64
%indvars.iv2233.reg2mem = alloca i64
%sv_1.21735.reg2mem = alloca i32*
%sv_0.120.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp ne i32* %arg1, null
%3 = icmp eq i64 %arg3, 0
%4 = icmp eq i1 %3, false
%or.cond = icmp eq i1 %2, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_28
LBL_1:
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_28, label LBL_2
LBL_2:
%7 = bitcast i64* %rdi to i32*
%8 = ptrtoint i32* %arg1 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = ptrtoint i32* %arg2 to i64
%12 = trunc i64 %arg5 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = trunc i64 %arg4 to i32
store i64 0, i64* %indvars.iv26.reg2mem
store i64 %arg3, i64* %sv_0.120.reg2mem
br label LBL_3
LBL_3:
%sv_0.120.reload = load i64, i64* %sv_0.120.reg2mem
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%16 = load i64, i64* %10, align 8
%17 = mul nuw nsw i64 %indvars.iv26.reload, 12
%18 = add i64 %16, %17
%19 = add i64 %18, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %11, i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 %sv_0.120.reload, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_27, label LBL_4
LBL_4:
%26 = inttoptr i64 %18 to i32*
%27 = inttoptr i64 %sv_0.120.reload to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
%31 = add i64 %18, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
%35 = add i32 %28, 1
%spec.select12 = select i1 %34, i32 %35, i32 %33
%36 = load i32, i32* %26, align 4
%37 = icmp ult i32 %36, %spec.select12
br i1 %30, label LBL_8, label LBL_5
LBL_5:
store i64 %sv_0.120.reload, i64* %sv_0.0.reg2mem
br i1 %37, label LBL_6, label LBL_27
LBL_6:
%38 = icmp ugt i32 %36, %28
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %38, label LBL_28, label LBL_7
LBL_7:
%39 = add i64 %sv_0.120.reload, 8
%40 = inttoptr i64 %39 to i64*
%41 = zext i32 %spec.select12 to i64
%42 = zext i32 %36 to i64
store i32* null, i32** %sv_1.21735.reg2mem
store i64 %42, i64* %indvars.iv2233.reg2mem
br label LBL_11
LBL_8:
store i64 %sv_0.120.reload, i64* %sv_0.0.reg2mem
br i1 %37, label LBL_9, label LBL_27
LBL_9:
%43 = icmp ugt i32 %36, %28
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %43, label LBL_28, label LBL_10
LBL_10:
%44 = add i64 %sv_0.120.reload, 8
%45 = inttoptr i64 %44 to i64*
%46 = zext i32 %spec.select12 to i64
%47 = zext i32 %36 to i64
store i64 %47, i64* %indvars.iv2439.reg2mem
br label LBL_25
LBL_11:
%indvars.iv2233.reload = load i64, i64* %indvars.iv2233.reg2mem
%sv_1.21735.reload = load i32*, i32** %sv_1.21735.reg2mem
%48 = icmp eq i32* %sv_1.21735.reload, null
%49 = icmp eq i1 %48, false
store i32* %sv_1.21735.reload, i32** %sv_1.0.reg2mem
br i1 %49, label LBL_19, label LBL_12
LBL_12:
br i1 %14, label LBL_14, label LBL_13
LBL_13:
%50 = load i64, i64* %40, align 8
%51 = mul i64 %indvars.iv2233.reload, 4
%52 = add nuw nsw i64 %51, 17179869180
%53 = and i64 %52, 17179869180
%54 = add i64 %50, %53
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = zext i32 %56 to i64
%58 = add i64 %57, %arg4
%59 = icmp ult i64 %58, 4294967296
br i1 %59, label LBL_20, label LBL_14
LBL_14:
%60 = call i64 @FUNC(i64 1)
%61 = icmp eq i64 %60, 0
%62 = icmp eq i1 %61, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %62, label LBL_15, label LBL_28
LBL_15:
%63 = inttoptr i64 %60 to i32*
%64 = load i32, i32* %27, align 4
store i32 %64, i32* %63, align 4
%65 = zext i32 %64 to i64
%66 = mul i64 %65, 8
%67 = call i64 @FUNC(i64 %66)
%68 = add i64 %60, 8
%69 = inttoptr i64 %68 to i64*
store i64 %67, i64* %69, align 8
%70 = icmp eq i64 %67, 0
%71 = icmp eq i1 %70, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %71, label LBL_16, label LBL_28
LBL_16:
%72 = load i32, i32* %63, align 4
%73 = icmp eq i32 %72, 0
store i32* %63, i32** %sv_1.0.reg2mem
br i1 %73, label LBL_19, label LBL_17
LBL_17:
%74 = load i64, i64* %40, align 8
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = zext i32 %76 to i64
%78 = inttoptr i64 %67 to i64*
store i64 %77, i64* %78, align 8
%79 = load i32, i32* %63, align 4
%80 = icmp ugt i32 %79, 1
store i64 1, i64* %indvars.iv.next32.reg2mem
store i32* %63, i32** %sv_1.0.reg2mem
br i1 %80, label LBL_18, label LBL_19
LBL_18:
%indvars.iv.next32.reload = load i64, i64* %indvars.iv.next32.reg2mem
%.pre28 = load i64, i64* %69, align 8
%81 = load i64, i64* %40, align 8
%82 = mul i64 %indvars.iv.next32.reload, 4
%83 = add i64 %81, %82
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = mul i64 %indvars.iv.next32.reload, 8
%87 = add i64 %86, %.pre28
%88 = zext i32 %85 to i64
%89 = inttoptr i64 %87 to i64*
store i64 %88, i64* %89, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.next32.reload, 1
%90 = load i32, i32* %63, align 4
%91 = zext i32 %90 to i64
%92 = icmp ult i64 %indvars.iv.next, %91
store i64 %indvars.iv.next, i64* %indvars.iv.next32.reg2mem
store i32* %63, i32** %sv_1.0.reg2mem
br i1 %92, label LBL_18, label LBL_19
LBL_19:
%sv_1.0.reload = load i32*, i32** %sv_1.0.reg2mem
%93 = ptrtoint i32* %sv_1.0.reload to i64
%94 = add i64 %93, 8
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = mul i64 %indvars.iv2233.reload, 8
%98 = add nuw nsw i64 %97, 34359738360
%99 = and i64 %98, 34359738360
%100 = add i64 %96, %99
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = add i64 %102, %arg4
store i64 %103, i64* %101, align 8
store i32* %sv_1.0.reload, i32** %sv_1.1.reg2mem
br label LBL_21
LBL_20:
%104 = add i32 %56, %15
store i32 %104, i32* %55, align 4
store i32* %sv_1.21735.reload, i32** %sv_1.1.reg2mem
br label LBL_21
LBL_21:
%sv_1.1.reload = load i32*, i32** %sv_1.1.reg2mem
%indvars.iv.next23 = add nuw nsw i64 %indvars.iv2233.reload, 1
%105 = icmp ult i64 %indvars.iv.next23, %41
br i1 %105, label LBL_21.dec_label_pc_401202_crit_edge, label LBL_23
LBL_22:
%.pre = load i32, i32* %27, align 4
%106 = zext i32 %.pre to i64
%107 = icmp ult i64 %indvars.iv2233.reload, %106
store i32* %sv_1.1.reload, i32** %sv_1.21735.reg2mem
store i64 %indvars.iv.next23, i64* %indvars.iv2233.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %107, label LBL_11, label LBL_28
LBL_23:
%108 = icmp eq i32* %sv_1.1.reload, null
store i64 %sv_0.120.reload, i64* %sv_0.0.reg2mem
br i1 %108, label LBL_27, label LBL_24
LBL_24:
%109 = ptrtoint i32* %sv_1.1.reload to i64
store i64 %109, i64* %arg6, align 8
store i64 %109, i64* %sv_0.0.reg2mem
br label LBL_27
LBL_25:
%indvars.iv2439.reload = load i64, i64* %indvars.iv2439.reg2mem
%110 = load i64, i64* %45, align 8
%111 = mul i64 %indvars.iv2439.reload, 8
%112 = add nuw nsw i64 %111, 34359738360
%113 = and i64 %112, 34359738360
%114 = add i64 %110, %113
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = add i64 %116, %arg4
store i64 %117, i64* %115, align 8
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv2439.reload, 1
%118 = icmp ult i64 %indvars.iv.next25, %46
store i64 %sv_0.120.reload, i64* %sv_0.0.reg2mem
br i1 %118, label LBL_25.dec_label_pc_4013e5_crit_edge, label LBL_27
LBL_26:
%.pre29 = load i32, i32* %27, align 4
%119 = zext i32 %.pre29 to i64
%120 = icmp ult i64 %indvars.iv2439.reload, %119
store i64 %indvars.iv.next25, i64* %indvars.iv2439.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %120, label LBL_25, label LBL_28
LBL_27:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%121 = load i32, i32* %7, align 8
%122 = zext i32 %121 to i64
%123 = icmp ult i64 %indvars.iv.next27, %122
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.120.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %123, label LBL_3, label LBL_28
LBL_28:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv2439.reload, { 1, 0, 2 }
uselistorder i64 %indvars.iv.next32.reload, { 0, 2, 1 }
uselistorder i32* %63, { 1, 5, 0, 3, 2, 4, 6 }
uselistorder i64 %indvars.iv2233.reload, { 1, 0, 3, 2 }
uselistorder i64* %40, { 1, 0, 2 }
uselistorder i1 %37, { 1, 0 }
uselistorder i32 %36, { 2, 0, 3, 1, 4 }
uselistorder i64 %sv_0.120.reload, { 0, 3, 6, 2, 5, 1, 7, 4 }
uselistorder i64* %indvars.iv26.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.120.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_1.21735.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv2233.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.next32.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_1.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %indvars.iv2439.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 4, 5, 3, 2, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 7, 4, 2, 3, 6, 5, 8, 9 }
uselistorder i64 34359738360, { 1, 0, 3, 2 }
uselistorder i64 17179869180, { 1, 0 }
uselistorder i1 false, { 1, 2, 4, 5, 3, 0 }
uselistorder i32* null, { 2, 1, 0, 3 }
uselistorder label LBL_28, { 0, 6, 2, 4, 3, 5, 1, 7, 8 }
uselistorder label LBL_27, { 0, 4, 5, 2, 1, 3 }
uselistorder label LBL_19, { 1, 0, 2, 3 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | uncurl_ws_accept_11642 | uncurl_ws_accept | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i8*, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
store i64 %4, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%5 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0))
%6 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
store i8* null, i8** %sv_1, align 8
%7 = bitcast i8** %sv_1 to i64*
%8 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label LBL_5
LBL_3:
%11 = trunc i64 %arg3 to i32
%12 = icmp sgt i32 %11, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_13
LBL_4:
%13 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%14 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_5:
%15 = and i64 %8, 4294967295
store i64 %15, i64* %rax.0.reg2mem
br label LBL_13
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = mul i64 %indvars.iv.reload, 8
%17 = add i64 %16, %13
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = load i8*, i8** %sv_1, align 8
%21 = inttoptr i64 %19 to i8*
%22 = call i8* @strstr(i8* %20, i8* %21)
%23 = icmp eq i8* %22, null
br i1 %23, label LBL_7, label LBL_8
LBL_7:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%24 = icmp slt i64 %indvars.iv.next, %14
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %24, label LBL_6, label LBL_13
LBL_8:
store i64 0, i64* %sv_0, align 8
%25 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_0)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = and i64 %25, 4294967295
store i64 %28, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%29 = load i64, i64* %sv_0, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = inttoptr i64 %30 to i8*
%32 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_5, i64 0, i64 0), i8* %31)
%33 = inttoptr i64 %30 to i64*
call void @free(i64* %33)
%34 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_7, i64 0, i64 0), i64 1)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_12, label LBL_11
LBL_11:
%37 = and i64 %34, 4294967295
store i64 %37, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%38 = bitcast i64* %arg1 to i32*
store i32 0, i32* %38, align 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 i8** %sv_1, { 1, 2, 0 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2, 5, 4, 3, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 1, 4, 2, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i8*, i64*)* @uncurl_get_header_str, { 1, 0 }
uselistorder i64 (i64, i8*, i8*)* @uncurl_set_header_str, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4, 5 }
uselistorder label LBL_13, { 2, 3, 4, 0, 5, 1, 6 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
reposvul_c_test | h2_stream_rst_170 | h2_stream_rst | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = bitcast i64* %arg1 to i32*
store i32 %1, i32* %2, align 4
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %5)
br label LBL_2
LBL_2:
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %10)
br label LBL_4
LBL_4:
%13 = and i64 %arg2, 4294967295
%14 = add i64 %0, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 1, i64 0, i64 %18, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %13)
%20 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %20
} | 0 |
BinRealVul | _unpack_job_info_msg_18512 | _unpack_job_info_msg | define i64 @FUNC(i64* %arg1, i64 %arg2, i16 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
%2 = zext i1 %1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 24)
store i64 %4, i64* %arg1, align 8
%5 = icmp eq i16 %arg3, 0
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_0, i64 0, i64 0), i64 0)
%7 = call i64 @FUNC(i64 ptrtoint ([57 x i8]* @gv_0 to i64))
store i64 0, i64* %arg1, align 8
store i64 4294967295, i64* %storemerge1.reg2mem
br label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 24, i64 %arg2)
%9 = call i64 @FUNC(i64 32, i64 %arg2)
%10 = call i64 @FUNC(i64 0)
store i64 %10, i64* inttoptr (i64 48 to i64*), align 16
store i64 0, i64* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder [57 x i8]* @gv_0, { 1, 0 }
uselistorder i64 (i64)* @xmalloc, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | qpci_pc_config_writel_2112 | qpci_pc_config_writel | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = mul i64 %arg2, 256
%1 = urem i64 %arg3, 256
%.masked = and i64 %0, 2147483392
%2 = or i64 %1, %.masked
%3 = or i64 %2, 2147483648
%4 = call i64 @FUNC(i64 3320, i64 %3)
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 3324, i64 %5)
ret i64 %6
uselistorder i64 (i64, i64)* @outl, { 1, 0 }
uselistorder i64 256, { 1, 0 }
} | 0 |
BinRealVul | qemu_co_rwlock_rdlock_14888 | qemu_co_rwlock_rdlock | 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 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = add i64 %2, 8
br label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %6)
br label LBL_2
LBL_3:
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %10, 1
store i32 %11, i32* %9, align 4
ret i64 %2
uselistorder i64 %2, { 1, 2, 0 }
} | 1 |
BinRealVul | join_session_keyring_5613 | join_session_keyring | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_12
LBL_1:
%3 = call i64 @FUNC()
%4 = icmp eq i64 %arg1, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0, i64 0)
%7 = icmp slt i64 %6, 0
store i64 %6, i64* %sv_0.2.reg2mem
br i1 %7, label LBL_11, label LBL_3
LBL_3:
%8 = inttoptr i64 %0 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %0)
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
%spec.select = select i1 %14, i64 %12, i64 %11
ret i64 %spec.select
LBL_4:
%15 = call i64 @FUNC(i64* nonnull @gv_0)
%16 = call i64 @FUNC(i64 %arg1, i64 0)
%17 = icmp eq i64 %16, -1
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %3, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %3, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %arg1, i64 %24, i64 %21, i64 %3, i64 0, i64 0, i64 %16)
%26 = icmp ult i64 %25, -1000
store i64 %25, i64* %sv_1.0.reg2mem
store i64 %25, i64* %sv_0.1.reg2mem
br i1 %26, label LBL_8, label LBL_10
LBL_6:
%27 = icmp ult i64 %16, -1000
store i64 %16, i64* %sv_0.1.reg2mem
br i1 %27, label LBL_7, label LBL_10
LBL_7:
%28 = inttoptr i64 %0 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %16, %29
%31 = icmp eq i1 %30, false
store i64 %16, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %31, label LBL_8, label LBL_10
LBL_8:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%32 = call i64 @FUNC(i64 %0, i64 %sv_1.0.reload)
%33 = icmp slt i64 %32, 0
store i64 %32, i64* %sv_0.1.reg2mem
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = call i64 @FUNC(i64 %0)
%35 = call i64 @FUNC(i64* nonnull @gv_0)
%36 = inttoptr i64 %sv_1.0.reload to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 %37, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%39 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_11
LBL_11:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%40 = call i64 @FUNC(i64 %0)
store i64 %sv_0.2.reload, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.0.reload, { 1, 2, 0 }
uselistorder i64 %16, { 1, 3, 0, 4, 2, 5 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %0, { 4, 3, 5, 6, 1, 0, 2, 7 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64*)* @mutex_unlock, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0, 2 }
uselistorder i64 (i64)* @commit_creds, { 1, 0 }
uselistorder i64 (i64, i64)* @install_session_keyring_to_cred, { 1, 0 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_12, { 2, 0, 1 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | usb_mtp_object_readdir_2681 | usb_mtp_object_readdir | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca %dirent*
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = urem i64 %1, 256
%4 = icmp eq i8 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%7 = bitcast i64* %arg2 to i8*
store i8 1, i8* %7, align 1
%8 = add i64 %6, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i8*
%12 = call %__dirstream* @opendir(i8* %11)
%13 = ptrtoint %__dirstream* %12 to i64
%14 = icmp eq %__dirstream* %12, null
store i64 %13, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_2
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = call %dirent* @readdir(%__dirstream* nonnull %12)
%17 = icmp eq %dirent* %16, null
%18 = icmp eq i1 %17, false
store %dirent* %16, %dirent** %.reg2mem
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%.reload = load %dirent*, %dirent** %.reg2mem
%19 = ptrtoint %dirent* %.reload to i64
%20 = add i64 %19, 19
%21 = call i64 @FUNC(i64 %15, i64 %6, i64 %20)
%22 = call %dirent* @readdir(%__dirstream* nonnull %12)
%23 = icmp eq %dirent* %22, null
%24 = icmp eq i1 %23, false
store %dirent* %22, %dirent** %.reg2mem
br i1 %24, label LBL_3, label LBL_4
LBL_4:
%25 = call i32 @closedir(%__dirstream* nonnull %12)
%26 = sext i32 %25 to i64
store i64 %26, 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 %__dirstream* %12, { 1, 2, 0, 3, 4 }
uselistorder i64 %1, { 1, 0 }
uselistorder %dirent** %.reg2mem, { 2, 0, 1 }
uselistorder %dirent* null, { 1, 0 }
uselistorder %dirent* (%__dirstream*)* @readdir, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | xhci_intr_raise_233 | xhci_intr_raise | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = call i64 @FUNC(i64 %0)
%2 = ashr exact i64 %sext, 29
%3 = add i64 %2, %0
%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 = or i32 %5, 1
store i32 %9, i32* %4, align 4
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = or i32 %12, 1
store i32 %13, i32* %11, align 4
%14 = add i64 %0, 80
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = or i32 %16, 1
store i32 %17, i32* %15, align 4
%18 = icmp eq i1 %8, false
%19 = icmp eq i1 %18, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %19, label LBL_9, label LBL_1
LBL_1:
%20 = load i32, i32* %11, align 4
%21 = and i32 %20, 2
%22 = icmp eq i32 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_9, label LBL_2
LBL_2:
%23 = add i64 %0, 84
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_9, label LBL_3
LBL_3:
%28 = ashr exact i64 %sext, 32
%29 = call i64 @FUNC(i64 %1)
%30 = trunc i64 %29 to i8
%31 = icmp eq i8 %30, 0
br i1 %31, label LBL_5, label LBL_4
LBL_4:
%32 = and i64 %28, 4294967295
%33 = call i64 @FUNC(i64 %32)
%34 = call i64 @FUNC(i64 %1, i64 %32)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%35 = call i64 @FUNC(i64 %1)
%36 = trunc i64 %35 to i8
%37 = icmp eq i8 %36, 0
br i1 %37, label LBL_7, label LBL_6
LBL_6:
%38 = and i64 %28, 4294967295
%39 = call i64 @FUNC(i64 %38)
%40 = call i64 @FUNC(i64 %1, i64 %38)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%41 = trunc i64 %28 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 %35, i64* %rax.0.reg2mem
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%44 = call i64 @FUNC(i64 1)
%45 = call i64 @FUNC(i64 %1)
store i64 %45, 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 %28, { 1, 2, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 2, 1, 3, 0, 4 }
uselistorder i64 %0, { 2, 0, 3, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6, 7 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder label LBL_9, { 3, 4, 5, 6, 0, 1, 2 }
} | 0 |
BinRealVul | free_pg_vec_10267 | free_pg_vec | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
br i1 %0, label LBL_7, label LBL_1
LBL_1:
%1 = and i64 %arg2, 4294967295
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = mul i64 %indvars.iv.reload, 8
%3 = add i64 %2, %arg1
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_6, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %5)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = load i64, i64* %4, align 8
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %10)
br label LBL_6
LBL_5:
%12 = call i64 @FUNC(i64 %10, i64 %1)
br label LBL_6
LBL_6:
%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_7, label LBL_2
LBL_7:
%13 = call i64 @FUNC(i64 %arg1)
ret i64 %13
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ff_h264_check_intra_pred_mode_9995 | ff_h264_check_intra_pred_mode | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = icmp ult i32 %3, 4
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 12
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %7 to i64
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %11, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%sext = mul i64 %arg2, 4294967296
%14 = ashr exact i64 %sext, 32
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = trunc i32 %17 to i16
%19 = icmp sgt i16 %18, -1
%20 = icmp eq i1 %19, false
store i64 %14, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_5, label LBL_3
LBL_3:
%21 = add i64 %14, ptrtoint (i8** @gv_1 to i64)
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = sext i8 %23 to i64
%25 = icmp slt i8 %23, 0
%26 = icmp eq i1 %25, false
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = add i64 %2, 12
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i64 %2, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %29 to i64
%34 = zext i32 %32 to i64
%35 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i64 %34, i64 %33, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = add i64 %2, 20
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = and i32 %38, 32896
%40 = icmp eq i32 %39, 32896
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %40, label LBL_10, label LBL_6
LBL_6:
%41 = add i64 %sv_0.0.reload, ptrtoint (i8** @gv_3 to i64)
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp slt i8 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_8, label LBL_7
LBL_7:
%46 = add i64 %2, 12
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i64 %2, 8
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %48 to i64
%53 = zext i32 %51 to i64
%54 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_4, i64 0, i64 0), i64 %53, i64 %52, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%55 = sext i8 %43 to i64
%56 = trunc i64 %arg3 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i32 %39, 0
%or.cond = or i1 %57, %58
store i64 %55, i64* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_10, label LBL_9
LBL_9:
%59 = trunc i32 %38 to i16
%60 = icmp sgt i16 %59, -1
%61 = icmp eq i1 %60, false
%. = select i1 %61, i64 3, i64 4
%62 = icmp eq i8 %43, 2
%63 = icmp eq i1 %62, false
%storemerge = select i1 %63, i64 0, i64 2
%64 = add nuw nsw i64 %storemerge, %.
store i64 %64, i64* %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%65 = and i64 %sv_0.1.reload, 4294967295
store i64 %65, 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 i8 %43, { 0, 2, 1 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %2, { 4, 6, 5, 7, 1, 3, 2, 8, 0, 9, 10 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i8 0, { 0, 1, 3, 2 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
} | 0 |
BinRealVul | spapr_alloc_htab_14749 | spapr_alloc_htab | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp slt i64 %1, 1
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = icmp eq i64 %1, %0
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64* nonnull @gv_0, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_1, i64 0, i64 0))
br label LBL_3
LBL_3:
store i64 %1, i64* %arg1, align 8
store i8 1, i8* bitcast (i64* @gv_2 to i8*), align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%5 = trunc i64 %0 to i32
%6 = urem i32 %5, 32
%7 = shl i32 1, %6
%rdx.0 = sext i32 %7 to i64
%8 = call i64 @FUNC(i64 %rdx.0, i64 %rdx.0)
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = urem i32 %7, 32
%12 = shl i32 1, %11
%13 = inttoptr i64 %8 to i64*
%14 = call i64* @memset(i64* %13, i32 0, i32 %12)
%15 = trunc i64 %8 to i32
%16 = urem i32 %15, 32
%17 = shl i32 1, %16
%18 = add i32 %17, 63
%19 = icmp eq i32 %16, 31
%20 = select i1 %19, i32 %18, i32 %17
%21 = ashr i32 %20, 6
%22 = zext i32 %21 to i64
store i32 0, i32* %storemerge4.reg2mem
br label LBL_5
LBL_5:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%23 = sext i32 %storemerge4.reload to i64
%24 = icmp slt i64 %23, %22
%25 = add i32 %storemerge4.reload, 1
store i32 %25, i32* %storemerge4.reg2mem
store i64 %22, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %16, { 1, 0 }
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %0, { 1, 2, 0, 3, 4 }
uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 }
} | 1 |
BinRealVul | gen_sync_15384 | gen_sync | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %1, 6291456
%4 = icmp eq i64 %3, 4194304
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = zext i32 %8 to i64
%10 = icmp eq i32 %8, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_2
LBL_2:
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = icmp eq i32 %14, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %2)
store i64 %18, 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 %8, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
} | 1 |
BinRealVul | imsg_get_18165 | imsg_get | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp ugt i64* %arg1, inttoptr (i64 7 to i64*)
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_11
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %arg2, align 8
%.off = add i32 %4, -8
%10 = icmp ult i32 %.off, 4089
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i32* @__errno_location()
store i32 34, i32* %11, align 4
store i64 -1, i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
%12 = and i64 %1, 4294967295
%13 = icmp ugt i64 %12, %3
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_11
LBL_4:
%15 = ptrtoint i64* %arg2 to i64
%16 = load i64, i64* %6, align 8
%17 = add i64 %16, 8
%18 = add i64 %3, 16
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = call i64* @malloc(i32 %.off)
%21 = ptrtoint i64* %20 to i64
%22 = add i64 %15, 8
%23 = inttoptr i64 %22 to i64*
store i64 %21, i64* %23, align 8
%24 = icmp eq i64* %20, null
%25 = icmp eq i1 %24, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %25, label LBL_5, label LBL_11
LBL_5:
%26 = add i64 %15, 4
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = urem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_7, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %3)
%32 = trunc i64 %31 to i32
%33 = add i64 %15, 16
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
br label LBL_8
LBL_7:
%35 = add i64 %15, 16
%36 = inttoptr i64 %35 to i32*
store i32 -1, i32* %36, align 4
br label LBL_8
LBL_8:
%37 = bitcast i64* %rsi to i32*
%38 = load i64, i64* %19, align 8
%39 = load i64, i64* %23, align 8
%40 = inttoptr i64 %39 to i64*
%41 = inttoptr i64 %38 to i64*
%42 = call i64* @memcpy(i64* %40, i64* %41, i32 %.off)
%43 = load i32, i32* %37, align 8
%44 = zext i32 %43 to i64
%45 = icmp ugt i64 %3, %44
store i64 0, i64* %storemerge.reg2mem
br i1 %45, label LBL_9, label LBL_10
LBL_9:
%46 = sub i64 %3, %44
%47 = load i64, i64* %6, align 8
%48 = add i64 %47, %44
%49 = inttoptr i64 %48 to i64*
%50 = trunc i64 %46 to i32
%51 = call i64* @memmove(i64* nonnull %6, i64* %49, i32 %50)
store i64 %46, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
store i64 %storemerge.reload, i64* %arg1, align 8
%52 = sext i32 %.off to i64
%53 = add nsw i64 %52, 8
store i64 %53, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %15, { 2, 0, 1, 3 }
uselistorder i64* %6, { 1, 0, 2, 3 }
uselistorder i64 %3, { 3, 2, 1, 4, 0, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 5, 3 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_11, { 3, 0, 1, 4, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | BN_dec2bn_19090 | BN_dec2bn | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i64
%sv_2.19.reg2mem = alloca i64
%sv_1.010.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i32
%.reg2mem = alloca i8
%storemerge3.off04.reg2mem = alloca i64
%storemerge3.off0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = icmp ne i64 %arg2, 0
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %2, %5
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond, label LBL_1, label LBL_11
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = icmp eq i8 %3, 45
%8 = zext i1 %7 to i64
%spec.select6 = add i64 %8, %arg2
store i32 0, i32* %storemerge3.off0.reg2mem
store i64 0, i64* %storemerge3.off04.reg2mem
br label LBL_2
LBL_2:
%storemerge3.off04.reload = load i64, i64* %storemerge3.off04.reg2mem
%storemerge3.off0.reload = load i32, i32* %storemerge3.off0.reg2mem
%9 = call i16** @__ctype_b_loc()
%10 = load i16*, i16** %9, align 8
%11 = ptrtoint i16* %10 to i64
%12 = add i64 %storemerge3.off04.reload, %spec.select6
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = zext i8 %14 to i64
%16 = mul i64 %15, 2
%17 = add i64 %16, %11
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = and i16 %19, 2048
%21 = icmp eq i16 %20, 0
%22 = icmp eq i1 %21, false
%23 = add i32 %storemerge3.off0.reload, 1
%extract.t5 = sext i32 %23 to i64
store i32 %23, i32* %storemerge3.off0.reg2mem
store i64 %extract.t5, i64* %storemerge3.off04.reg2mem
br i1 %22, label LBL_2, label LBL_3
LBL_3:
%spec.select7 = zext i1 %7 to i32
%24 = add i32 %storemerge3.off0.reload, %spec.select7
%25 = icmp eq i64* %arg1, null
%26 = icmp eq i1 %25, false
store i32 %24, i32* %rax.0.shrunk.reg2mem
br i1 %26, label LBL_4, label LBL_11
LBL_4:
%27 = call i64 @FUNC(i64 %6)
%28 = mul i64 %storemerge3.off04.reload, 4
%29 = and i64 %28, 4294967292
%30 = call i64 @FUNC(i64 %6, i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %32, label LBL_11, label LBL_5
LBL_5:
%33 = inttoptr i64 %spec.select6 to i8*
%34 = load i8, i8* %33, align 1
%35 = icmp eq i8 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_6, label LBL_10
LBL_6:
%37 = mul nsw i64 %storemerge3.off04.reload, 954437177
%38 = udiv i64 %37, 4294967296
%39 = trunc i64 %38 to i32
%40 = ashr i32 %39, 2
%41 = ashr i32 %storemerge3.off0.reload, 31
%42 = sub nsw i32 %40, %41
%43 = mul i32 %42, -18
%44 = add i32 %43, %storemerge3.off0.reload
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
%47 = sub i32 18, %44
%spec.select = select i1 %46, i32 %47, i32 0
store i8 %34, i8* %.reg2mem
store i32 %spec.select, i32* %sv_0.011.reg2mem
store i64 0, i64* %sv_1.010.reg2mem
store i64 %spec.select6, i64* %sv_2.19.reg2mem
br label LBL_7
LBL_7:
%sv_2.19.reload = load i64, i64* %sv_2.19.reg2mem
%sv_1.010.reload = load i64, i64* %sv_1.010.reg2mem
%sv_0.011.reload = load i32, i32* %sv_0.011.reg2mem
%.reload = load i8, i8* %.reg2mem
%48 = mul i64 %sv_1.010.reload, 10
%49 = sext i8 %.reload to i64
%50 = add nsw i64 %49, -48
%51 = add i64 %50, %48
%52 = add i32 %sv_0.011.reload, 1
%53 = icmp eq i32 %sv_0.011.reload, 17
%54 = icmp eq i1 %53, false
store i64 %51, i64* %sv_1.0.be.reg2mem
store i32 %52, i32* %sv_0.0.be.reg2mem
br i1 %54, label LBL_8, label LBL_9
LBL_8:
%55 = add i64 %sv_2.19.reload, 1
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = icmp eq i8 %57, 0
%59 = icmp eq i1 %58, false
store i8 %57, i8* %.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.011.reg2mem
store i64 %sv_1.0.be.reload, i64* %sv_1.010.reg2mem
store i64 %55, i64* %sv_2.19.reg2mem
br i1 %59, label LBL_7, label LBL_10
LBL_9:
%60 = call i64 @FUNC(i64 %6, i64 1000000000000000000)
%61 = call i64 @FUNC(i64 %6, i64 %51)
store i64 0, i64* %sv_1.0.be.reg2mem
store i32 0, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_10:
%62 = bitcast i64* %arg1 to i32*
store i32 %spec.select7, i32* %62, align 4
%63 = call i64 @FUNC(i64 %6)
store i64 %6, i64* %arg1, align 8
%64 = call i64 @FUNC(i64 %6)
store i32 %24, i32* %rax.0.shrunk.reg2mem
br label LBL_11
LBL_11:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %51, { 1, 0 }
uselistorder i32 %sv_0.011.reload, { 1, 0 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32 %spec.select7, { 1, 0 }
uselistorder i32 %storemerge3.off0.reload, { 3, 1, 2, 0 }
uselistorder i64 %storemerge3.off04.reload, { 1, 2, 0 }
uselistorder i64 %spec.select6, { 0, 2, 1 }
uselistorder i64 %6, { 5, 3, 4, 1, 2, 0, 6 }
uselistorder i8 %3, { 1, 0 }
uselistorder i32* %storemerge3.off0.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.off04.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.19.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder i32 0, { 2, 4, 5, 0, 6, 3, 1, 7, 8 }
uselistorder i1 false, { 3, 2, 4, 1, 5, 6, 0 }
uselistorder i8 0, { 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_11, { 3, 1, 2, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | mk_addrinfo_17673 | mk_addrinfo | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64* @calloc(i32 1, i32 48)
%3 = icmp eq i64* %2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_9
LBL_1:
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = ptrtoint i64* %2 to i64
%7 = trunc i64 %5 to i32
%8 = icmp eq i32 %7, 2
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = call i64* @calloc(i32 1, i32 16)
%11 = icmp eq i64* %10, null
br i1 %11, label LBL_8, label LBL_3
LBL_3:
%12 = trunc i64 %1 to i32
%13 = bitcast i64* %10 to i16*
%14 = ptrtoint i64* %10 to i64
%15 = add i64 %14, 4
%16 = inttoptr i64 %15 to i32*
store i32 %12, i32* %16, align 4
%17 = trunc i64 %5 to i16
store i16 %17, i16* %13, align 2
%18 = add i64 %6, 24
%19 = inttoptr i64 %18 to i64*
store i64 %14, i64* %19, align 8
%20 = add i64 %6, 16
%21 = inttoptr i64 %20 to i32*
store i32 16, i32* %21, align 4
br label LBL_7
LBL_4:
%22 = icmp eq i32 %7, 10
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_7, label LBL_5
LBL_5:
%24 = call i64* @calloc(i32 1, i32 28)
%25 = icmp eq i64* %24, null
br i1 %25, label LBL_8, label LBL_6
LBL_6:
%26 = bitcast i64* %24 to i16*
%27 = ptrtoint i64* %24 to i64
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i64*
%30 = call i64* @memcpy(i64* %29, i64* %arg1, i32 28)
%31 = trunc i64 %5 to i16
store i16 %31, i16* %26, align 2
%32 = add i64 %6, 24
%33 = inttoptr i64 %32 to i64*
store i64 %27, i64* %33, align 8
%34 = add i64 %6, 16
%35 = inttoptr i64 %34 to i32*
store i32 28, i32* %35, align 4
br label LBL_7
LBL_7:
%36 = add i64 %6, 12
%37 = inttoptr i64 %36 to i32*
store i32 6, i32* %37, align 4
%38 = add i64 %6, 8
%39 = inttoptr i64 %38 to i32*
store i32 1, i32* %39, align 4
%40 = add i64 %6, 4
%41 = inttoptr i64 %40 to i32*
store i32 %7, i32* %41, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
call void @free(i64* %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %24, { 0, 2, 1 }
uselistorder i64* %10, { 0, 2, 1 }
uselistorder i64 %6, { 0, 5, 6, 7, 3, 4, 1, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %2, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 28, { 2, 0, 1 }
uselistorder i32 16, { 1, 0 }
uselistorder i64* (i32, i32)* @calloc, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 2, 0 }
} | 1 |
BinRealVul | qmp_guest_get_memory_blocks_723 | qmp_guest_get_memory_blocks | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph3.reg2mem = alloca i64
%.in.reg2mem = alloca %dirent*
%.in4.reg2mem = alloca %dirent*
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%1 = call %__dirstream* @opendir(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq %__dirstream* %1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = call %dirent* @readdir(%__dirstream* %1)
%5 = icmp eq %dirent* %4, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_10
LBL_2:
%7 = ptrtoint i64* %sv_1 to i64
store %dirent* %4, %dirent** %.in.reg2mem
store i64 %7, i64* %sv_0.0.ph3.reg2mem
br label LBL_5.lr.ph
LBL_3:
%8 = call i32* @__errno_location()
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_14, label LBL_4
LBL_4:
%11 = call i32* @__errno_location()
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %0, i64 %13, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%.in4.reload = load %dirent*, %dirent** %.in4.reg2mem
%15 = ptrtoint %dirent* %.in4.reload to i64
%16 = add i64 %15, 19
%17 = inttoptr i64 %16 to i8*
%18 = call i32 @strncmp(i8* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i32 6)
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_7
LBL_6:
%21 = call %dirent* @readdir(%__dirstream* %1)
%22 = icmp eq %dirent* %21, null
%23 = icmp eq i1 %22, false
store %dirent* %21, %dirent** %.in4.reg2mem
br i1 %23, label LBL_5, label LBL_10
LBL_7:
%24 = add i64 %15, 18
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = and i8 %26, 4
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_6
LBL_8:
%30 = call i64 @FUNC(i64 16)
%31 = add i64 %15, 25
%32 = inttoptr i64 %31 to i8*
%33 = call i32 @strtoul(i8* %32, i8** null, i32 10)
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %30 to i64*
store i64 %34, i64* %35, align 8
%36 = add i64 %30, 8
%37 = inttoptr i64 %36 to i32*
store i32 1, i32* %37, align 4
%38 = call i64 @FUNC(i64 %30, i64 1, i64 0, i64* nonnull %sv_2)
%39 = call i64 @FUNC(i64 16)
%40 = inttoptr i64 %39 to i64*
store i64 %30, i64* %40, align 8
%41 = inttoptr i64 %sv_0.0.ph3.reload to i64*
store i64 %39, i64* %41, align 8
%42 = add i64 %39, 8
%43 = call %dirent* @readdir(%__dirstream* %1)
%44 = icmp eq %dirent* %43, null
%45 = icmp eq i1 %44, false
store %dirent* %43, %dirent** %.in.reg2mem
store i64 %42, i64* %sv_0.0.ph3.reg2mem
br i1 %45, label LBL_5.lr.ph, label LBL_10
LBL_9:
%sv_0.0.ph3.reload = load i64, i64* %sv_0.0.ph3.reg2mem
%.in.reload = load %dirent*, %dirent** %.in.reg2mem
store %dirent* %.in.reload, %dirent** %.in4.reg2mem
br label LBL_5
LBL_10:
%46 = call i32 @closedir(%__dirstream* %1)
%47 = load i64, i64* %sv_2, align 8
%48 = icmp eq i64 %47, 0
%49 = icmp eq i1 %48, false
%50 = load i64, i64* %sv_1, align 8
br i1 %49, label LBL_13, label LBL_11
LBL_11:
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
store i64 %50, i64* %rax.0.reg2mem
br i1 %52, label LBL_14, label LBL_12
LBL_12:
%53 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%54 = call i64 @FUNC(i64 %50)
%55 = load i64, i64* %sv_2, align 8
%56 = call i64 @FUNC(i64 %0, i64 %55)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %50, { 2, 0, 1 }
uselistorder %__dirstream* %1, { 2, 1, 3, 0, 4 }
uselistorder i64* %sv_2, { 1, 2, 0, 3 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder %dirent** %.in4.reg2mem, { 2, 1, 0 }
uselistorder %dirent** %.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph3.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 4, 3 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder %dirent* null, { 1, 2, 0 }
uselistorder %dirent* (%__dirstream*)* @readdir, { 1, 2, 0 }
uselistorder i1 false, { 5, 6, 1, 3, 7, 4, 0, 8, 9, 2 }
uselistorder label LBL_14, { 4, 1, 0, 3, 2 }
uselistorder label LBL_5.lr.ph, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.