dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | fq_init_13192 | fq_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64* @memset(i64* %arg1, i32 0, i32 48)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 %0, i64* %3, align 8
store i64 %0, i64* %arg1, align 8
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %arg2 to i32
%7 = icmp sgt i32 %6, 1
%8 = select i1 %7, i32 %6, i32 1
%9 = add i64 %0, 20
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = call i64 @FUNC()
%12 = trunc i64 %11 to i32
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %0, 28
%16 = inttoptr i64 %15 to i32*
store i32 300, i32* %16, align 4
%17 = add i64 %0, 32
%18 = inttoptr i64 %17 to i32*
store i32 8192, i32* %18, align 4
%19 = add i64 %0, 36
%20 = inttoptr i64 %19 to i32*
store i32 16777216, i32* %20, align 4
%21 = load i32, i32* %10, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22, i64 0, i64 0)
%24 = add i64 %0, 40
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
%26 = icmp eq i64 %23, 0
%27 = icmp eq i1 %26, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %27, label LBL_1, label LBL_4
LBL_1:
%28 = load i32, i32* %10, align 4
%29 = icmp eq i32 %28, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %29, label LBL_4, label LBL_2
LBL_2:
%30 = call i64 @FUNC(i64 %23)
%31 = load i32, i32* %10, align 4
%32 = icmp ugt i32 %31, 1
store i32 1, i32* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %32, label LBL_3, label LBL_4
LBL_3:
%.reload = load i32, i32* %.reg2mem
%.pre = load i64, i64* %25, align 8
%33 = call i64 @FUNC(i64 %.pre)
%34 = add i32 %.reload, 1
%35 = load i32, i32* %10, align 4
%36 = icmp ugt i32 %35, %34
store i32 %34, i32* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %36, label LBL_3, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %10, { 2, 0, 1, 3, 4 }
uselistorder i64 %0, { 1, 2, 3, 4, 5, 6, 7, 0, 9, 8 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @fq_flow_init, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | siff_read_packet_3456 | siff_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem10 = alloca i64
%.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_21, label LBL_1
LBL_1:
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp ult i32 %8, %11
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_25
LBL_2:
%13 = add i64 %3, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, -1
%17 = icmp eq i1 %16, false
store i32 %15, i32* %.reg2mem
br i1 %17, label LBL_8, label LBL_3
LBL_3:
%18 = inttoptr i64 %9 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = add i32 %21, -4
%23 = add i64 %3, 16
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = load i64, i64* %18, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = add i64 %3, 20
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = mul i32 %27, 4
%31 = and i32 %30, 4
%32 = add i64 %3, 24
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = icmp eq i32 %31, 0
br i1 %34, label LBL_5, label LBL_4
LBL_4:
%35 = add i64 %3, 36
%36 = load i64, i64* %18, align 8
%37 = call i64 @FUNC(i64 %36, i64 %35, i32 %31)
br label LBL_5
LBL_5:
%38 = load i32, i32* %29, align 4
%39 = and i32 %38, 2
%40 = icmp eq i32 %39, 0
store i32 0, i32* %storemerge.reg2mem
br i1 %40, label LBL_7, label LBL_6
LBL_6:
%41 = load i64, i64* %18, align 8
%42 = call i64 @FUNC(i64 %41)
%phitmp = trunc i64 %42 to i32
store i32 %phitmp, i32* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%43 = add i64 %3, 28
%44 = inttoptr i64 %43 to i32*
store i32 %storemerge.reload, i32* %44, align 4
%45 = load i32, i32* %29, align 4
%46 = and i32 %45, 2
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
%49 = zext i1 %48 to i32
store i32 %49, i32* %14, align 4
store i32 %49, i32* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i32, i32* %.reg2mem
%50 = icmp eq i32 %.reload, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_17, label LBL_9
LBL_9:
%52 = add i64 %3, 16
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %3, 28
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %3, 24
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = add i32 %54, -2
%62 = sub i32 %61, %57
%63 = sub i32 %62, %60
%64 = inttoptr i64 %9 to i64*
%65 = load i64, i64* %64, align 8
%66 = zext i32 %63 to i64
%67 = call i64 @FUNC(i64 %65, i64 %66)
%68 = trunc i64 %67 to i32
%69 = icmp slt i32 %68, 0
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %69, label LBL_25, label LBL_10
LBL_10:
%70 = load i32, i32* %53, align 4
%71 = load i32, i32* %56, align 4
%72 = icmp ult i32 %70, %71
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %72, label LBL_25, label LBL_11
LBL_11:
%73 = load i32, i32* %59, align 4
%74 = add i32 %68, 2
%75 = add i32 %74, %73
%76 = zext i32 %75 to i64
%77 = call i64 @FUNC(i64 %2, i64 %76)
%78 = trunc i64 %77 to i32
%79 = icmp slt i32 %78, 0
%80 = icmp eq i1 %79, false
store i64 12, i64* %rax.0.reg2mem
br i1 %80, label LBL_12, label LBL_25
LBL_12:
%81 = add i64 %3, 20
%82 = inttoptr i64 %81 to i32*
%83 = load i32, i32* %82, align 4
%84 = add i64 %2, 16
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = zext i32 %83 to i64
%88 = call i64 @FUNC(i64 %86, i64 %87)
%89 = load i32, i32* %59, align 4
%90 = icmp eq i32 %89, 0
store i64 2, i64* %.reg2mem10
br i1 %90, label LBL_14, label LBL_13
LBL_13:
%91 = add i64 %3, 36
%92 = load i64, i64* %85, align 8
%93 = add i64 %92, 2
%94 = inttoptr i64 %93 to i64*
%95 = inttoptr i64 %91 to i64*
%96 = call i64* @memcpy(i64* %94, i64* %95, i32 %89)
%.pre = load i32, i32* %59, align 4
%phitmp4 = sext i32 %.pre to i64
%phitmp9 = add nsw i64 %phitmp4, 2
store i64 %phitmp9, i64* %.reg2mem10
br label LBL_14
LBL_14:
%.reload11 = load i64, i64* %.reg2mem10
%97 = load i64, i64* %85, align 8
%98 = add i64 %.reload11, %97
%99 = load i64, i64* %64, align 8
%100 = call i64 @FUNC(i64 %99, i64 %98, i32 %68)
%101 = trunc i64 %100 to i32
%102 = icmp eq i32 %68, %101
br i1 %102, label LBL_16, label LBL_15
LBL_15:
%103 = call i64 @FUNC(i64 %2)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_25
LBL_16:
%104 = add i64 %2, 4
%105 = inttoptr i64 %104 to i32*
store i32 0, i32* %105, align 4
store i32 -1, i32* %14, align 4
br label LBL_19
LBL_17:
%106 = add i64 %3, 28
%107 = inttoptr i64 %106 to i32*
%108 = load i32, i32* %107, align 4
%109 = add i32 %108, -4
%110 = zext i32 %109 to i64
%111 = inttoptr i64 %9 to i64*
%112 = load i64, i64* %111, align 8
%113 = call i64 @FUNC(i64 %112, i64 %2, i64 %110)
%114 = trunc i64 %113 to i32
%115 = icmp slt i32 %114, 0
%116 = icmp eq i1 %115, false
store i64 5, i64* %rax.0.reg2mem
br i1 %116, label LBL_18, label LBL_25
LBL_18:
%117 = add i64 %2, 4
%118 = inttoptr i64 %117 to i32*
store i32 1, i32* %118, align 4
%119 = add i64 %2, 8
%120 = inttoptr i64 %119 to i32*
store i32 %114, i32* %120, align 4
store i32 0, i32* %14, align 4
%121 = load i32, i32* %7, align 4
%122 = icmp eq i32 %121, 0
br i1 %122, label LBL_19, label LBL_24
LBL_19:
%123 = add i64 %2, 12
%124 = inttoptr i64 %123 to i32*
%125 = load i32, i32* %124, align 4
%126 = or i32 %125, 1
store i32 %126, i32* %124, align 4
%.pre3 = load i32, i32* %14, align 4
%phitmp5 = icmp eq i32 %.pre3, -1
%phitmp6 = icmp eq i1 %phitmp5, false
br i1 %phitmp6, label LBL_24, label LBL_20
LBL_20:
%127 = load i32, i32* %7, align 4
%128 = add i32 %127, 1
store i32 %128, i32* %7, align 4
br label LBL_24
LBL_21:
%129 = add i64 %3, 32
%130 = inttoptr i64 %129 to i32*
%131 = load i32, i32* %130, align 4
%132 = zext i32 %131 to i64
%133 = add i64 %3, 8
%134 = inttoptr i64 %133 to i64*
%135 = load i64, i64* %134, align 8
%136 = call i64 @FUNC(i64 %135, i64 %2, i64 %132)
%137 = trunc i64 %136 to i32
%138 = icmp eq i32 %137, 0
%139 = icmp eq i1 %138, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %139, label LBL_22, label LBL_25
LBL_22:
%140 = icmp slt i32 %137, 0
%141 = icmp eq i1 %140, false
store i64 5, i64* %rax.0.reg2mem
br i1 %141, label LBL_23, label LBL_25
LBL_23:
%142 = add i64 %2, 8
%143 = inttoptr i64 %142 to i32*
store i32 %137, i32* %143, align 4
br label LBL_24
LBL_24:
%144 = bitcast i64* %rsi to i32*
%145 = load i32, i32* %144, align 8
%146 = zext i32 %145 to i64
store i64 %146, i64* %rax.0.reg2mem
br label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %85, { 1, 0, 2 }
uselistorder i32 %68, { 2, 1, 0, 3 }
uselistorder i32 %31, { 1, 0, 2 }
uselistorder i64* %18, { 1, 0, 2, 3 }
uselistorder i32* %14, { 1, 2, 0, 3, 4 }
uselistorder i64 %9, { 2, 1, 0, 3 }
uselistorder i32* %7, { 1, 0, 2, 3 }
uselistorder i64 %3, { 11, 13, 9, 5, 6, 10, 8, 7, 0, 1, 2, 3, 4, 12, 14, 15 }
uselistorder i64 %2, { 8, 9, 4, 5, 6, 7, 0, 1, 2, 3 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem10, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 9, 1, 2, 3, 8, 4, 6, 5, 7 }
uselistorder i64 (i64, i64, i64)* @av_get_packet, { 1, 0 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i64 4294967294, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32)* @avio_read, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6, 7, 8 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i64 12, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 1, 5, 6, 7, 8, 9, 10, 11, 0, 12, 13, 14 }
uselistorder label LBL_25, { 7, 0, 1, 2, 8, 3, 5, 4, 6 }
uselistorder label LBL_24, { 1, 2, 3, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | fifo_put_717 | fifo_put | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = add i64 %0, 24
%storemerge = select i1 %2, i64 %3, i64 %0
%4 = icmp eq i32 %1, 1
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %storemerge, 20
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp sgt i32 %7, 15
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = add i64 %storemerge, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i32 %11, 1
store i32 %12, i32* %10, align 4
%13 = sext i32 %11 to i64
%14 = trunc i64 %arg3 to i8
%15 = add i64 %storemerge, %13
%16 = inttoptr i64 %15 to i8*
store i8 %14, i8* %16, align 1
%17 = load i32, i32* %10, align 4
%18 = icmp eq i32 %17, 16
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %10, align 4
br label LBL_4
LBL_4:
%20 = add i64 %storemerge, 20
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp sgt i32 %22, 15
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = add i32 %22, 1
store i32 %24, i32* %21, align 4
br label LBL_8
LBL_6:
%25 = icmp eq i1 %2, false
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = add i64 %0, 48
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = or i32 %28, 1
store i32 %29, i32* %27, align 4
br label LBL_8
LBL_8:
ret i64 1
uselistorder i32* %10, { 1, 0, 2, 3 }
uselistorder i64 %storemerge, { 1, 0, 2, 3 }
uselistorder i64 %0, { 0, 2, 1 }
} | 0 |
BinRealVul | tcg_gen_ld8s_i64_986 | tcg_gen_ld8s_i64 | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3)
%1 = call i64 @FUNC(i64 %arg1, i64 %arg1, i64 31)
ret i64 %1
uselistorder i64 %arg1, { 1, 0, 2 }
} | 0 |
BinRealVul | set_expected_hash_12836 | set_expected_hash | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i8* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = call i64 @FUNC()
%4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %5)
%7 = and i64 %2, 4294967295
ret i64 %7
} | 1 |
BinRealVul | item_free_18403 | item_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i64*
call void @free(i64* %1)
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
call void @free(i64* %5)
%6 = add i64 %arg1, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
call void @free(i64* %9)
%10 = add i64 %arg1, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
call void @free(i64* %13)
call void @free(i64* %1)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ttusbdecfe_dvbs_diseqc_send_master_cmd_13733 | ttusbdecfe_dvbs_diseqc_send_master_cmd | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %2, 7
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i32* %arg2 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = call i64* @memcpy(i64* nonnull %sv_0, i64* %8, i32 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ff_mpegts_parse_close_17234 | ff_mpegts_parse_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
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, %arg1
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%5 = call i64 @FUNC(i64 %arg1)
ret i64 %5
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0 }
} | 1 |
BinRealVul | i915_gem_userptr_get_pages_7189 | i915_gem_userptr_get_pages | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.014.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i32
%sv_2.06.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_3.0.shrunk.reg2mem = alloca i1
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = icmp ult i64 %3, -1000
%. = select i1 %5, i64 4294967285, i64 %3
store i64 %., i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%6 = udiv i64 %0, 4096
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = load i64, i64* @gv_0, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %11, %14
%16 = icmp eq i1 %15, false
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_1.03.reg2mem
store i64 0, i64* %sv_0.02.reg2mem
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %6, i64 8, i64 0)
%18 = icmp eq i64 %17, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_1.03.reg2mem
store i64 0, i64* %sv_0.02.reg2mem
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %0)
%20 = urem i64 %19, 256
%21 = xor i64 %20, 1
%22 = add i64 %0, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24, i64 %6, i64 %21, i64 %17)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
%sext = mul i64 %25, 4294967296
%29 = ashr exact i64 %sext, 32
store i64 %29, i64* %.reg2mem
store i32 %26, i32* %sv_1.03.reg2mem
store i64 %17, i64* %sv_0.02.reg2mem
store i64 %29, i64* %sv_2.06.reg2mem
store i32 0, i32* %sv_1.15.reg2mem
store i64 %17, i64* %sv_0.014.reg2mem
br i1 %28, label LBL_5, label LBL_10
LBL_5:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%30 = icmp ugt i64 %6, %.reload
br i1 %30, label LBL_6, label LBL_7
LBL_6:
%31 = call i64 @FUNC(i64 %0)
%32 = icmp eq i64 %31, -11
store i1 %32, i1* %sv_3.0.shrunk.reg2mem
store i64 %31, i64* %sv_2.0.reg2mem
br label LBL_8
LBL_7:
%33 = call i64 @FUNC(i64 %0, i64 %sv_0.02.reload, i64 %6)
%34 = icmp ult i64 %33, -1000
store i1 %34, i1* %sv_3.0.shrunk.reg2mem
store i64 %33, i64* %sv_2.0.reg2mem
br label LBL_8
LBL_8:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.0.shrunk.reload = load i1, i1* %sv_3.0.shrunk.reg2mem
%35 = icmp eq i1 %sv_3.0.shrunk.reload, false
store i64 %sv_2.0.reload, i64* %sv_2.06.reg2mem
store i32 %sv_1.03.reload, i32* %sv_1.15.reg2mem
store i64 %sv_0.02.reload, i64* %sv_0.014.reg2mem
br i1 %35, label LBL_10, label LBL_9
LBL_9:
%36 = call i64 @FUNC(i64 %0, i64 1)
store i64 %sv_2.0.reload, i64* %sv_2.06.reg2mem
store i32 %sv_1.03.reload, i32* %sv_1.15.reg2mem
store i64 %sv_0.02.reload, i64* %sv_0.014.reg2mem
br label LBL_10
LBL_10:
%sv_0.014.reload = load i64, i64* %sv_0.014.reg2mem
%sv_2.06.reload = load i64, i64* %sv_2.06.reg2mem
%37 = icmp ult i64 %sv_2.06.reload, -1000
br i1 %37, label LBL_12, label LBL_11
LBL_11:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%38 = zext i32 %sv_1.15.reload to i64
%39 = call i64 @FUNC(i64 %sv_0.014.reload, i64 %38)
br label LBL_12
LBL_12:
%40 = call i64 @FUNC(i64 %sv_0.014.reload)
%.stack_var_-24.0 = select i1 %37, i64 0, i64 %sv_2.06.reload
store i64 %.stack_var_-24.0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_2.06.reload, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 1, 0 }
uselistorder i32 %sv_1.03.reload, { 1, 0 }
uselistorder i64 %sv_0.02.reload, { 1, 0, 2 }
uselistorder i64 %6, { 0, 1, 3, 2 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %0, { 4, 3, 5, 2, 1, 7, 0, 6 }
uselistorder i64* %.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %sv_2.06.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.15.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.014.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 0, { 0, 3, 1, 2 }
uselistorder i64 -1000, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 2, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | rds_ib_add_conn_18846 | rds_ib_add_conn | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64* nonnull @gv_1)
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = inttoptr i64 %arg2 to i64*
%5 = call i64 @FUNC(i64* %4)
%6 = and i64 %5, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %arg2)
%9 = call i64 @FUNC(i64 %arg1)
%10 = add i64 %arg1, 8
%11 = call i64 @FUNC(i64 %arg2, i64 %10)
%12 = call i64 @FUNC(i64 %arg1)
%13 = call i64 @FUNC(i64* nonnull @gv_0)
%14 = add i64 %arg2, 8
%15 = inttoptr i64 %14 to i64*
store i64 %arg1, i64* %15, align 8
%16 = add i64 %arg1, 16
%17 = call i64 @FUNC(i64 %16)
ret i64 %17
uselistorder i64 (i64)* @BUG_ON, { 1, 0 }
uselistorder i64 (i64*)* @list_empty, { 1, 0 }
} | 1 |
BinRealVul | __reg_combine_64_into_32_6825 | __reg_combine_64_into_32 | 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 = call i64 @FUNC(i64 %2)
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = trunc i64 %1 to i32
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = load i32, i32* %9, align 4
%19 = add i64 %2, 20
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
br label LBL_3
LBL_3:
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_6, label LBL_4
LBL_4:
%28 = add i64 %2, 12
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = load i32, i32* %22, align 4
%36 = add i64 %2, 24
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = load i32, i32* %29, align 4
%39 = add i64 %2, 28
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
br label LBL_6
LBL_6:
%41 = call i64 @FUNC(i64 %2)
%42 = call i64 @FUNC(i64 %2)
%43 = call i64 @FUNC(i64 %2)
ret i64 %43
uselistorder i64 %2, { 8, 7, 6, 3, 4, 5, 9, 0, 1, 2, 10 }
uselistorder i64 (i64)* @__reg64_bound_u32, { 1, 0 }
uselistorder i64 (i64)* @__reg64_bound_s32, { 1, 0 }
} | 0 |
BinRealVul | tcp_collapse_retrans_5868 | tcp_collapse_retrans | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %3)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 1
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
br label LBL_3
LBL_3:
%14 = icmp eq i32 %5, 0
br i1 %14, label LBL_7, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %0)
%16 = sext i32 %5 to i64
%17 = icmp slt i64 %15, %16
%18 = zext i32 %5 to i64
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %0, i64 %18)
%20 = call i64 @FUNC(i64 %3, i64 0, i64 %19, i64 %18)
br label LBL_7
LBL_6:
%21 = call i64 @FUNC(i64 %0, i64 %3, i64 1, i64 %18)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_7, label LBL_10
LBL_7:
%24 = call i64 @FUNC(i64 %1, i64 %3, i64 %0)
%25 = add i64 %3, 4
%26 = add i64 %0, 4
%27 = inttoptr i64 %25 to i32*
%28 = load i32, i32* %27, align 4
%29 = inttoptr i64 %26 to i32*
store i32 %28, i32* %29, align 4
%30 = add i64 %0, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i64 %3, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = or i32 %35, %32
store i32 %36, i32* %31, align 4
%37 = add i64 %0, 12
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = add i64 %3, 12
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = urem i32 %42, 2
%44 = or i32 %43, %39
store i32 %44, i32* %38, align 4
%45 = add i64 %3, 16
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %0, 16
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = call i64 @FUNC(i64 %2)
%51 = inttoptr i64 %2 to i64*
%52 = load i64, i64* %51, align 8
%53 = icmp eq i64 %3, %52
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_9, label LBL_8
LBL_8:
store i64 %0, i64* %51, align 8
br label LBL_9
LBL_9:
%55 = call i64 @FUNC(i64 %3)
%56 = and i64 %55, 4294967295
%57 = call i64 @FUNC(i64 %1, i64 %3, i64 %56)
%58 = call i64 @FUNC(i64 %0, i64 %3)
%59 = call i64 @FUNC(i64 %3, i64 %1)
store i64 1, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %18, { 2, 1, 0 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64 %3, { 3, 6, 5, 4, 7, 8, 9, 10, 12, 11, 2, 1, 0, 13 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i64 %0, { 4, 3, 5, 6, 7, 9, 8, 1, 0, 2, 10, 11 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @tcp_skb_pcount, { 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | __napi_alloc_skb_17470 | __napi_alloc_skb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%sext = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64* nonnull @gv_0)
%3 = add i32 %0, 18
%4 = icmp ult i32 %3, 4097
%5 = urem i64 %arg3, 4
%6 = icmp eq i64 %5, 0
%or.cond = icmp eq i1 %4, %6
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %1, 4294967295
%8 = zext i32 %3 to i64
%9 = call i64 @FUNC(i64 %8, i64 %7, i64 0, i64 0)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%10 = add i64 %arg2, 21
%11 = and i64 %10, 4294967292
%12 = call i64 @FUNC()
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = or i64 %1, 4
%sv_0.0 = select i1 %14, i64 %1, i64 %15
%16 = and i64 %sv_0.0, 4294967295
%17 = call i64 @FUNC(i64 %2, i64 %11, i64 %16)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_8
LBL_3:
%20 = call i64 @FUNC(i64 %17, i64 %11)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %17)
%24 = call i64 @FUNC(i64 %23)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%25 = inttoptr i64 %2 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = inttoptr i64 %20 to i32*
store i32 1, i32* %28, align 4
br label LBL_7
LBL_7:
%29 = add i64 %20, 4
%30 = inttoptr i64 %29 to i32*
store i32 1, i32* %30, align 4
%31 = call i64 @FUNC(i64 %20, i64 18)
%32 = add i64 %20, 8
%33 = inttoptr i64 %32 to i64*
store i64 %20, i64* %33, align 8
store i64 %20, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %20, { 0, 3, 1, 2, 4, 5, 6 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 4, { 2, 1, 0, 3 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | xenstore_scan_598 | xenstore_scan | define i64 @FUNC(i8* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = and i64 %arg2, 4294967295
%1 = bitcast i64* %sv_2 to i8*
%2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 256, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* %arg1, i64 %0, i64* %arg3)
%3 = bitcast i64* %sv_1 to i8*
%4 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %3, i32 256, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i8* %arg1, i64 %0)
%5 = load i64, i64* @gv_2, align 8
%6 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1, i64* nonnull %sv_2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%11 = load i64, i64* @gv_2, align 8
%12 = bitcast i32* %sv_0 to i64*
%13 = call i64 @FUNC(i64 %11, i64 0, i64* nonnull %sv_1, i64* nonnull %12)
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_9
LBL_3:
%16 = load i32, i32* %sv_0, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_8, label LBL_4
LBL_4:
%18 = ptrtoint i64* %arg3 to i64
%19 = trunc i64 %arg2 to i32
%20 = ptrtoint i8* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = mul i64 %indvars.iv.reload, 8
%22 = add i64 %21, %13
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = inttoptr i64 %24 to i8*
%26 = call i32 @atoi(i8* %25)
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %20, i32 %19, i64 %27, i64 %18)
%29 = icmp eq i64 %28, 0
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = call i64 @FUNC(i64 %28)
br label LBL_7
LBL_7:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%31 = load i32, i32* %sv_0, align 4
%32 = zext i32 %31 to i64
%33 = icmp ult i64 %indvars.iv.next, %32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %33, label LBL_5, label LBL_8
LBL_8:
%34 = inttoptr i64 %13 to i64*
call void @free(i64* %34)
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 %13, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 0, 2, 1 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i8* %arg1, { 0, 2, 1 }
uselistorder label LBL_9, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
reposvul_c_test | _exit_56 | _exit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = load i64, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
store i32 %0, i32* inttoptr (i64 1 to i32*), align 4
br label LBL_1
LBL_1:
br label LBL_1
} | 0 |
BinRealVul | wait_while_ack_17914 | wait_while_ack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem18 = alloca i32*
%.reg2mem = alloca i32*
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32*, align 8
store i32* null, i32** %sv_0, align 8
%1 = bitcast i32** %sv_0 to i64*
store i32* null, i32** %.reg2mem
br label LBL_1
LBL_1:
%.reload = load i32*, i32** %.reg2mem
%2 = ptrtoint i32* %.reload to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64* nonnull %1, i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = and i64 %4, 4294967295
store i64 %8, i64* %storemerge.reg2mem
br label LBL_7
LBL_3:
%9 = load i32*, i32** %sv_0, align 8
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i32* %9, i32** %.reg2mem18
br i1 %11, label LBL_6, label LBL_4
LBL_4:
%12 = icmp eq i32 %10, 1
%13 = icmp eq i1 %12, false
store i32* %9, i32** %.reg2mem
br i1 %13, label LBL_1, label LBL_5
LBL_5:
%14 = ptrtoint i32* %9 to i64
%15 = call i64 @FUNC(i64 %14)
%.pre = load i32*, i32** %sv_0, align 8
store i32* %.pre, i32** %.reg2mem18
br label LBL_6
LBL_6:
%.reload19 = load i32*, i32** %.reg2mem18
%16 = ptrtoint i32* %.reload19 to i64
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %9, { 2, 1, 0, 3 }
uselistorder i32** %sv_0, { 0, 2, 3, 1 }
uselistorder i32** %.reg2mem, { 2, 0, 1 }
uselistorder i32** %.reg2mem18, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @git__free, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | am_header_has_media_type_8755 | am_header_has_media_type | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 0, i64 1, i64 0, i64 %2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_2:
%4 = call i64 @FUNC(i64 %arg2, i64* nonnull @gv_1, i64 0)
%storemerge.in2 = inttoptr i64 %4 to i64*
%storemerge3 = load i64, i64* %storemerge.in2, align 8
%5 = icmp eq i64 %storemerge3, 0
%6 = icmp eq i1 %5, false
store i64 %storemerge3, i64* %storemerge5.reg2mem
store i64 %4, i64* %storemerge14.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_3, label LBL_7
LBL_3:
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%7 = call i64 @FUNC(i64 %storemerge5.reload)
%8 = call i64 @FUNC(i64 %7, i64* nonnull @gv_2, i64 0)
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_6, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %11, i64 %arg3)
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 0
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %8)
store i64 1, i64* %sv_1.0.reg2mem
store i64 %4, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%17 = call i64 @FUNC(i64 %8)
%18 = add i64 %storemerge14.reload, 8
%storemerge.in = inttoptr i64 %18 to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%19 = icmp eq i64 %storemerge, 0
%20 = icmp eq i1 %19, false
store i64 %storemerge, i64* %storemerge5.reg2mem
store i64 %18, i64* %storemerge14.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_3, label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%21 = call i64 @FUNC(i64 %sv_0.0.reload)
ret i64 %sv_1.0.reload
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1, 3, 4 }
uselistorder i64* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64 8, { 3, 0, 1, 2 }
uselistorder i64 (i64)* @g_strfreev, { 2, 1, 0 }
uselistorder i64 (i64)* @g_strstrip, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @g_strsplit, { 1, 0 }
uselistorder i1 false, { 3, 0, 4, 5, 6, 7, 8, 1, 9, 2 }
uselistorder label LBL_7, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | send_full_color_rect_4489 | send_full_color_rect | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge14.off0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext7 = mul i64 %arg5, 4294967296
%3 = ashr exact i64 %sext7, 32
%4 = and i64 %3, 4294967295
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 %2, i64 %5, i64 %4)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = trunc i64 %arg4 to i32
%10 = trunc i64 %arg3 to i32
%11 = trunc i64 %arg2 to i32
%12 = call i64 @FUNC(i64 %2, i32 %11, i32 %10, i32 %9, i64 %4, i64 0)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_6
LBL_2:
%sext6 = mul i64 %arg4, 4294967296
%13 = trunc i64 %1 to i32
%14 = call i64 @FUNC(i64 %2, i64 0)
%15 = icmp eq i32 %13, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = add i64 %2, 16
%sext10 = mul i64 %3, %sext6
%17 = ashr exact i64 %sext10, 32
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %2, i64 %20, i64 %17, i64 %16)
store i64 %17, i64* %.pre-phi.reg2mem
store i64 3, i64* %storemerge14.off0.reg2mem
br label LBL_5
LBL_4:
%22 = add i64 %2, 32
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%extract.t = sext i32 %24 to i64
%.pre = mul i64 %3, %sext6
%.pre15 = ashr exact i64 %.pre, 32
store i64 %.pre15, i64* %.pre-phi.reg2mem
store i64 %extract.t, i64* %storemerge14.off0.reg2mem
br label LBL_5
LBL_5:
%storemerge14.off0.reload = load i64, i64* %storemerge14.off0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%25 = add i64 %2, 24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 4
%30 = add i64 %29, ptrtoint (i64* @gv_0 to i64)
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = mul nsw i64 %storemerge14.off0.reload, %.pre-phi.reload
%34 = zext i32 %32 to i64
%35 = call i64 @FUNC(i64 %2, i32 0, i64 %33, i64 %34, i64 0)
%36 = lshr i64 %35, 63
%37 = xor i64 %36, 1
store i64 %37, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sext6, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 5, 6, 4, 7, 0, 8 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge14.off0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 0, 3, 1, 2 }
uselistorder i64 4294967296, { 1, 0 }
} | 0 |
BinRealVul | ff_prores_idct_16979 | ff_prores_idct | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv8.reg2mem = alloca i64
%indvars.iv11.reg2mem = alloca i64
%indvars.iv14.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv14.reg2mem
br label LBL_1
LBL_1:
%indvars.iv14.reload = load i64, i64* %indvars.iv14.reg2mem
%2 = mul i64 %indvars.iv14.reload, 2
%3 = add i64 %2, %1
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = add i64 %2, %0
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %7, align 2
%9 = mul i16 %8, %5
store i16 %9, i16* %4, align 2
%indvars.iv.next15 = add nuw nsw i64 %indvars.iv14.reload, 1
%exitcond16 = icmp eq i64 %indvars.iv.next15, 64
store i64 %indvars.iv.next15, i64* %indvars.iv14.reg2mem
store i64 0, i64* %indvars.iv11.reg2mem
br i1 %exitcond16, label LBL_2, label LBL_1
LBL_2:
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%10 = mul i64 %indvars.iv11.reload, 16
%11 = add i64 %10, %1
%12 = call i64 @FUNC(i64 %11)
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%exitcond13 = icmp eq i64 %indvars.iv.next12, 8
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i64 0, i64* %indvars.iv8.reg2mem
br i1 %exitcond13, label LBL_3, label LBL_2
LBL_3:
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
%13 = mul i64 %indvars.iv8.reload, 2
%14 = add i64 %13, %1
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = ashr i16 %16, 2
store i16 %17, i16* %15, align 2
%indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1
%exitcond10 = icmp eq i64 %indvars.iv.next9, 64
store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond10, label LBL_4, label LBL_3
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%18 = mul i64 %indvars.iv.reload, 2
%19 = add i64 %18, %1
%20 = call i64 @FUNC(i64 %19)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
ret i64 %20
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv14.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv11.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv8.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 1, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mpeg4_encode_gop_header_1926 | mpeg4_encode_gop_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 40
%2 = call i64 @FUNC(i64 %1, i64 16, i64 0)
%3 = call i64 @FUNC(i64 %1, i64 16, i64 438)
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %1, i64* %sv_0.0.in.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = sub i64 %1, %11
%13 = xor i64 %11, %1
%14 = xor i64 %12, %1
%15 = and i64 %14, %13
%16 = icmp slt i64 %15, 0
%17 = icmp eq i64 %12, 0
%18 = icmp slt i64 %12, 0
%19 = icmp ne i1 %18, %16
%20 = or i1 %17, %19
%21 = select i1 %20, i64 %1, i64 %11
store i64 %21, i64* %sv_0.0.in.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%22 = inttoptr i64 %1 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = sext i32 %25 to i128
%27 = sext i64 %sv_0.0.in.reload to i128
%28 = mul nsw i128 %26, %27
%29 = add i64 %23, 4
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = sext i32 %31 to i64
%33 = and i128 %28, 18446744073709551615
%34 = zext i64 %32 to i128
%35 = udiv i128 %33, %34
%36 = trunc i128 %35 to i32
%37 = ashr i32 %36, 5
%38 = ashr i32 %36, 31
%39 = sub nsw i32 %37, %38
%40 = mul i32 %39, -60
%41 = add i32 %40, %36
%42 = sext i32 %39 to i64
%43 = mul nsw i64 %42, -2004318071
%44 = udiv i64 %43, 4294967296
%45 = trunc i64 %44 to i32
%46 = add i32 %39, %45
%47 = ashr i32 %46, 5
%48 = ashr i32 %39, 31
%49 = sub nsw i32 %47, %48
%50 = mul i32 %49, -60
%51 = add i32 %50, %39
%52 = srem i32 %49, 24
%53 = zext i32 %52 to i64
%54 = call i64 @FUNC(i64 %1, i64 5, i64 %53)
%55 = zext i32 %51 to i64
%56 = call i64 @FUNC(i64 %1, i64 6, i64 %55)
%57 = call i64 @FUNC(i64 %1, i64 1, i64 1)
%58 = zext i32 %41 to i64
%59 = call i64 @FUNC(i64 %1, i64 6, i64 %58)
%60 = add i64 %0, 36
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = urem i32 %62, 2
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
%66 = zext i1 %65 to i64
%67 = call i64 @FUNC(i64 %1, i64 1, i64 %66)
%68 = call i64 @FUNC(i64 %1, i64 1, i64 0)
%69 = load i64, i64* %22, align 8
%70 = add i64 %69, 4
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = sext i32 %72 to i64
%74 = zext i64 %73 to i128
%75 = udiv i128 %33, %74
%76 = trunc i128 %75 to i32
%77 = add i64 %0, 32
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = call i64 @FUNC(i64 %1)
ret i64 %79
uselistorder i32 %39, { 1, 3, 0, 4, 2 }
uselistorder i32 %36, { 1, 2, 0 }
uselistorder i64 %12, { 1, 2, 0 }
uselistorder i64 %11, { 2, 0, 1 }
uselistorder i64 %1, { 3, 5, 4, 7, 6, 10, 9, 8, 12, 1, 2, 11, 0, 13, 14 }
uselistorder i64 1, { 0, 1, 3, 2 }
uselistorder i64 (i64, i64, i64)* @put_bits, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 16, { 2, 0, 1 }
} | 0 |
BinRealVul | zval_array_element_dump_9435 | zval_array_element_dump | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sext = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = icmp eq i64* %arg3, null
%5 = icmp eq i1 %4, false
%6 = add nsw i64 %3, 1
%7 = and i64 %6, 4294967295
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 32, i64 %arg2, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %arg3 to i64
%10 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 32, i64 %arg4, i64 %2, i64 %1)
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13, i64 %13)
%15 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64 %13, i64 %13, i64 %arg4, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%16 = ptrtoint i64* %arg1 to i64
%17 = add nsw i64 %3, 2
%18 = and i64 %17, 4294967295
%19 = call i64 @FUNC(i64 %16, i64 %18)
ret i64 %19
uselistorder i64 %13, { 3, 2, 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @php_printf, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 32, { 1, 2, 0, 3 }
uselistorder i64 %arg4, { 1, 2, 0 }
uselistorder i64* %arg3, { 1, 0 }
} | 0 |
BinRealVul | rng_backend_open_14232 | rng_backend_open | 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 %2, i64 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %0)
ret i64 %3
} | 1 |
BinRealVul | mxf_timestamp_to_str_14484 | mxf_timestamp_to_str | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = udiv i64 %arg1, 256
%1 = urem i64 %0, 256
store i64 %1, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 32)
store i64 %2, i64* %arg2, align 8
%3 = icmp eq i64* %arg2, null
%4 = icmp eq i1 %3, false
store i64 12, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = bitcast i64* %arg2 to i8*
%6 = bitcast i64* %sv_0 to %tm*
%7 = call i32 @strftime(i8* %5, i32 32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), %tm* nonnull %6)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 256, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ad7280_channel_init_7663 | ad7280_channel_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%sv_1.14.reg2mem = alloca i32
%sv_1.01.reg2mem = alloca i32
%sv_2.02.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %rdi to i32*
%4 = mul i64 %1, 51539607552
%sext = add i64 %4, 60129542144
%5 = ashr exact i64 %sext, 32
%6 = mul nsw i64 %5, 48
%7 = call i64 @FUNC(i64 %6, i64 0)
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = icmp eq i64 %7, 0
%11 = icmp eq i1 %10, false
store i32 0, i32* %sv_1.14.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %11, label LBL_6, label LBL_8
LBL_1:
%sv_1.01.reload = load i32, i32* %sv_1.01.reg2mem
%sv_2.02.reload = load i32, i32* %sv_2.02.reg2mem
%12 = icmp ugt i32 %sv_2.02.reload, 5
%13 = load i64, i64* %9, align 8
%14 = sext i32 %sv_1.01.reload to i64
%15 = mul nsw i64 %14, 48
%16 = add i64 %15, %13
%17 = inttoptr i64 %16 to i32*
br i1 %12, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %17, align 4
%18 = load i64, i64* %9, align 8
%19 = or i64 %15, 4
%20 = add i64 %18, %19
%21 = inttoptr i64 %20 to i32*
store i32 1, i32* %21, align 4
%22 = load i64, i64* %9, align 8
%23 = add i32 %sv_2.02.reload, %81
%24 = or i64 %15, 8
%25 = add i64 %22, %24
%26 = inttoptr i64 %25 to i32*
store i32 %23, i32* %26, align 4
%27 = load i64, i64* %9, align 8
%28 = add i64 %27, %15
%29 = add i64 %28, 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i32 %31, 1
%33 = add i64 %28, 12
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
br label LBL_4
LBL_3:
store i32 1, i32* %17, align 4
%35 = load i64, i64* %9, align 8
%36 = add i32 %sv_2.02.reload, %81
%37 = add i32 %36, -6
%38 = or i64 %15, 8
%39 = add i64 %35, %38
%40 = inttoptr i64 %39 to i32*
store i32 %37, i32* %40, align 4
br label LBL_4
LBL_4:
%41 = load i64, i64* %9, align 8
%42 = add nsw i64 %15, 16
%43 = add i64 %42, %41
%44 = inttoptr i64 %43 to i32*
store i32 1, i32* %44, align 4
%45 = load i64, i64* %9, align 8
%46 = add nsw i64 %15, 20
%47 = add i64 %46, %45
%48 = inttoptr i64 %47 to i32*
store i32 1, i32* %48, align 4
%49 = load i64, i64* %9, align 8
%50 = or i32 %sv_2.02.reload, %82
%51 = add nsw i64 %15, 24
%52 = add i64 %51, %49
%53 = inttoptr i64 %52 to i32*
store i32 %50, i32* %53, align 4
%54 = load i64, i64* %9, align 8
%55 = add nsw i64 %15, 28
%56 = add i64 %55, %54
%57 = inttoptr i64 %56 to i32*
store i32 %sv_1.01.reload, i32* %57, align 4
%58 = load i64, i64* %9, align 8
%59 = add nsw i64 %15, 32
%60 = add i64 %59, %58
%61 = inttoptr i64 %60 to i8*
store i8 117, i8* %61, align 1
%62 = load i64, i64* %9, align 8
%63 = add nsw i64 %15, 36
%64 = add i64 %63, %62
%65 = inttoptr i64 %64 to i32*
store i32 12, i32* %65, align 4
%66 = load i64, i64* %9, align 8
%67 = add nsw i64 %15, 40
%68 = add i64 %67, %66
%69 = inttoptr i64 %68 to i32*
store i32 32, i32* %69, align 4
%70 = load i64, i64* %9, align 8
%71 = add nsw i64 %15, 44
%72 = add i64 %71, %70
%73 = inttoptr i64 %72 to i32*
store i32 0, i32* %73, align 4
%74 = add nuw nsw i32 %sv_2.02.reload, 1
%75 = add i32 %sv_1.01.reload, 1
%exitcond = icmp eq i32 %74, 12
store i32 %74, i32* %sv_2.02.reg2mem
store i32 %75, i32* %sv_1.01.reg2mem
br i1 %exitcond, label LBL_5, label LBL_1
LBL_5:
%76 = add i32 %sv_0.03.reload, 1
%77 = load i32, i32* %3, align 8
%78 = zext i32 %77 to i64
%79 = sext i32 %76 to i64
%80 = icmp sgt i64 %79, %78
store i32 %75, i32* %sv_1.14.reg2mem
store i32 %76, i32* %sv_0.03.reg2mem
br i1 %80, label LBL_7, label LBL_6
LBL_6:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.14.reload = load i32, i32* %sv_1.14.reg2mem
%81 = mul i32 %sv_0.03.reload, 6
%82 = mul i32 %sv_0.03.reload, 256
store i32 0, i32* %sv_2.02.reg2mem
store i32 %sv_1.14.reload, i32* %sv_1.01.reg2mem
br label LBL_1
LBL_7:
%83 = load i64, i64* %9, align 8
%84 = sext i32 %75 to i64
%85 = mul nsw i64 %84, 48
%86 = add i64 %83, %85
%87 = inttoptr i64 %86 to i32*
store i32 0, i32* %87, align 4
%88 = load i64, i64* %9, align 8
%89 = or i64 %85, 4
%90 = add i64 %88, %89
%91 = inttoptr i64 %90 to i32*
store i32 1, i32* %91, align 4
%92 = load i64, i64* %9, align 8
%93 = or i64 %85, 8
%94 = add i64 %92, %93
%95 = inttoptr i64 %94 to i32*
store i32 0, i32* %95, align 4
%96 = load i64, i64* %9, align 8
%97 = mul i32 %76, 6
%98 = or i64 %85, 12
%99 = add i64 %96, %98
%100 = inttoptr i64 %99 to i32*
store i32 %97, i32* %100, align 4
%101 = load i64, i64* %9, align 8
%102 = add nsw i64 %85, 24
%103 = add i64 %102, %101
%104 = inttoptr i64 %103 to i32*
store i32 65535, i32* %104, align 4
%105 = load i64, i64* %9, align 8
%106 = add nsw i64 %85, 16
%107 = add i64 %106, %105
%108 = inttoptr i64 %107 to i32*
store i32 1, i32* %108, align 4
%109 = load i64, i64* %9, align 8
%110 = add nsw i64 %85, 20
%111 = add i64 %110, %109
%112 = inttoptr i64 %111 to i32*
store i32 1, i32* %112, align 4
%113 = load i64, i64* %9, align 8
%114 = add nsw i64 %85, 28
%115 = add i64 %114, %113
%116 = inttoptr i64 %115 to i32*
store i32 %75, i32* %116, align 4
%117 = load i64, i64* %9, align 8
%118 = add nsw i64 %85, 32
%119 = add i64 %118, %117
%120 = inttoptr i64 %119 to i8*
store i8 117, i8* %120, align 1
%121 = load i64, i64* %9, align 8
%122 = add nsw i64 %85, 36
%123 = add i64 %122, %121
%124 = inttoptr i64 %123 to i32*
store i32 32, i32* %124, align 4
%125 = load i64, i64* %9, align 8
%126 = add nsw i64 %85, 40
%127 = add i64 %126, %125
%128 = inttoptr i64 %127 to i32*
store i32 32, i32* %128, align 4
%129 = load i64, i64* %9, align 8
%130 = add nsw i64 %85, 44
%131 = add i64 %130, %129
%132 = inttoptr i64 %131 to i32*
store i32 0, i32* %132, align 4
%133 = add i32 %sv_1.01.reload, 2
%134 = load i64, i64* %9, align 8
%135 = sext i32 %133 to i64
%136 = mul nsw i64 %135, 48
%137 = add i64 %134, %136
%138 = inttoptr i64 %137 to i32*
store i32 2, i32* %138, align 4
%139 = load i64, i64* %9, align 8
%140 = or i64 %136, 8
%141 = add i64 %139, %140
%142 = inttoptr i64 %141 to i32*
store i32 -1, i32* %142, align 4
%143 = load i64, i64* %9, align 8
%144 = add nsw i64 %136, 28
%145 = add i64 %144, %143
%146 = inttoptr i64 %145 to i32*
store i32 %133, i32* %146, align 4
%147 = load i64, i64* %9, align 8
%148 = add nsw i64 %136, 32
%149 = add i64 %148, %147
%150 = inttoptr i64 %149 to i8*
store i8 115, i8* %150, align 1
%151 = load i64, i64* %9, align 8
%152 = add nsw i64 %136, 36
%153 = add i64 %152, %151
%154 = inttoptr i64 %153 to i32*
store i32 64, i32* %154, align 4
%155 = load i64, i64* %9, align 8
%156 = add nsw i64 %136, 40
%157 = add i64 %156, %155
%158 = inttoptr i64 %157 to i32*
store i32 64, i32* %158, align 4
%159 = load i64, i64* %9, align 8
%160 = add nsw i64 %136, 44
%161 = add i64 %160, %159
%162 = inttoptr i64 %161 to i32*
store i32 0, i32* %162, align 4
%163 = add i32 %sv_1.01.reload, 3
%164 = zext i32 %163 to i64
store i64 %164, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %136, { 3, 4, 5, 6, 2, 1, 0 }
uselistorder i64 %85, { 5, 6, 7, 8, 4, 9, 10, 11, 1, 2, 3, 0 }
uselistorder i32 %81, { 1, 0 }
uselistorder i32 %sv_0.03.reload, { 2, 1, 0 }
uselistorder i32 %76, { 1, 0, 2 }
uselistorder i32 %75, { 3, 2, 0, 1 }
uselistorder i32* %17, { 1, 0 }
uselistorder i64 %15, { 7, 8, 9, 10, 5, 6, 11, 12, 2, 0, 3, 4, 1 }
uselistorder i32 %sv_2.02.reload, { 0, 4, 3, 2, 1 }
uselistorder i32 %sv_1.01.reload, { 3, 4, 0, 1, 2 }
uselistorder i64* %9, { 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 12, 32 }
uselistorder i32* %sv_2.02.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.01.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.14.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 6, { 1, 0 }
uselistorder i32 32, { 1, 2, 0 }
uselistorder i8 117, { 1, 0 }
uselistorder i32 0, { 5, 6, 7, 8, 2, 3, 4, 0, 1 }
uselistorder i64 8, { 1, 2, 0, 4, 3, 5 }
uselistorder i64 48, { 1, 2, 0, 3 }
uselistorder i64 32, { 1, 2, 3, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | blend_frames16_c_16001 | blend_frames16_c | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64 %arg10, i64 %arg11, i64 %arg12) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.012.reg2mem = alloca i64
%sv_1.014.reg2mem = alloca i64
%sv_2.016.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = icmp sgt i32 %arg5, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_6
LBL_1:
%sext5 = mul i64 %arg12, 4294967296
%1 = ashr exact i64 %sext5, 32
%2 = icmp slt i32 %arg4, 0
%3 = zext i1 %2 to i32
%4 = add i32 %3, %arg4
%5 = trunc i64 %arg7 to i32
%6 = trunc i64 %arg8 to i32
%7 = ashr i32 %4, 1
%8 = icmp slt i32 %6, 0
%9 = zext i1 %8 to i32
%10 = add i32 %9, %6
%11 = ashr i32 %10, 1
%12 = icmp slt i32 %5, 0
%13 = zext i1 %12 to i32
%14 = add i32 %13, %5
%15 = ashr i32 %14, 1
%16 = icmp slt i32 %arg6, 0
%17 = zext i1 %16 to i32
%18 = add i32 %17, %arg6
%19 = ashr i32 %18, 1
%sext7 = mul i64 %arg9, 4294967296
%sext6 = mul i64 %arg10, 4294967296
%20 = ptrtoint i64* %arg1 to i64
%21 = ptrtoint i64* %arg2 to i64
%22 = ptrtoint i64* %arg3 to i64
%23 = icmp sgt i32 %4, 1
%24 = ashr exact i64 %sext7, 32
%25 = ashr exact i64 %sext6, 32
%26 = trunc i64 %arg11 to i32
%27 = urem i32 %26, 32
%28 = icmp eq i32 %27, 0
%29 = sext i32 %19 to i64
%30 = mul i64 %29, 2
%31 = sext i32 %15 to i64
%32 = mul i64 %31, 2
%33 = sext i32 %11 to i64
%34 = mul i64 %33, 2
%35 = sext i32 %7 to i64
store i32 0, i32* %storemerge18.reg2mem
store i64 %22, i64* %sv_2.016.reg2mem
store i64 %21, i64* %sv_1.014.reg2mem
store i64 %20, i64* %sv_0.012.reg2mem
br label LBL_4
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%36 = mul i64 %indvars.iv.reload, 2
%37 = add i64 %36, %sv_1.014.reload
%38 = inttoptr i64 %37 to i16*
%39 = load i16, i16* %38, align 2
%40 = zext i16 %39 to i64
%41 = mul nsw i64 %24, %40
%42 = add i64 %36, %sv_2.016.reload
%43 = inttoptr i64 %42 to i16*
%44 = load i16, i16* %43, align 2
%45 = zext i16 %44 to i64
%46 = mul nsw i64 %25, %45
%47 = add nsw i64 %41, %1
%48 = add nsw i64 %47, %46
%49 = trunc i64 %48 to i32
%50 = ashr i32 %49, %27
%51 = zext i32 %50 to i64
%rdx.0 = select i1 %28, i64 %48, i64 %51
%52 = add i64 %36, %sv_0.012.reload
%53 = trunc i64 %rdx.0 to i16
%54 = inttoptr i64 %52 to i16*
store i16 %53, i16* %54, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%55 = icmp slt i64 %indvars.iv.next, %35
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %55, label LBL_2, label LBL_3
LBL_3:
%56 = add i64 %sv_1.014.reload, %30
%57 = add i64 %sv_2.016.reload, %32
%58 = add i64 %sv_0.012.reload, %34
%59 = add nuw nsw i32 %storemerge18.reload, 1
%exitcond = icmp eq i32 %59, %arg5
store i32 %59, i32* %storemerge18.reg2mem
store i64 %57, i64* %sv_2.016.reg2mem
store i64 %56, i64* %sv_1.014.reg2mem
store i64 %58, i64* %sv_0.012.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_4:
%sv_0.012.reload = load i64, i64* %sv_0.012.reg2mem
%sv_1.014.reload = load i64, i64* %sv_1.014.reg2mem
%sv_2.016.reload = load i64, i64* %sv_2.016.reg2mem
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %23, label LBL_2, label LBL_3
LBL_5:
%phitmp = zext i32 %arg5 to i64
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_6
LBL_6:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %36, { 2, 1, 0 }
uselistorder i32 %27, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i32 %arg6, { 1, 0 }
uselistorder i32 %arg5, { 1, 0, 2 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | shall_we_drop_1179 | shall_we_drop | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = ashr exact i64 %sext, 30
%7 = add i64 %5, %6
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = mul i32 %9, 100
%11 = ashr i32 %10, 31
%12 = zext i32 %10 to i64
%13 = zext i32 %11 to i64
%14 = mul i64 %13, 4294967296
%15 = or i64 %14, %12
%16 = and i64 %1, 4294967295
%17 = sdiv i64 %15, %16
%18 = trunc i64 %17 to i32
%19 = add i64 %5, 40
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %21, 1
store i32 %22, i32* %20, align 4
%23 = zext i32 %22 to i64
%24 = mul i64 %23, 4294967296
%25 = or i64 %24, %23
%26 = srem i64 %25, 4
%27 = add i64 %26, ptrtoint ([5 x i8]* @gv_0 to i64)
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ult i32 %18, %30
store i64 0, i64* %storemerge.reg2mem
br i1 %31, label LBL_2, label LBL_1
LBL_1:
%32 = bitcast i64* %rdi to i32*
%33 = and i64 %arg2, 4294967295
%34 = load i32, i32* %32, align 8
%35 = zext i32 %34 to i64
%36 = and i64 %17, 4294967295
%37 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_1, i64 0, i64 0), i64 %33, i64 %36, i64 %35)
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | gemsafe_get_cert_len_7517 | gemsafe_get_cert_len | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i8
%rax.0.reg2mem = alloca i64
%.reg2mem119 = alloca i64
%sv_0.413.reg2mem = alloca i32
%.reg2mem117 = alloca i64
%.reg2mem115 = alloca i64
%r8.1.ph.lcssa.reg2mem = alloca i64
%rcx.3.ph.lcssa.reg2mem = alloca i64
%sv_0.3.ph.lcssa.reg2mem = alloca i32
%sv_0.3.ph26.reg2mem = alloca i32
%sv_1.1.ph27.reg2mem = alloca i32
%rcx.3.ph28.reg2mem = alloca i64
%r8.1.ph29.reg2mem = alloca i64
%.reg2mem113 = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i32
%sv_0.221.reg2mem = alloca i32
%.reg2mem111 = alloca i64
%sv_1.114.reg2mem = alloca i32
%.reg2mem109 = alloca i64
%rcx.2.lcssa.reg2mem = alloca i64
%storemerge33.reg2mem = alloca i64
%.reg2mem107 = alloca i64
%sv_0.135.reg2mem = alloca i32
%.reg2mem = alloca i64
%rcx.1.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%sv_0.036.reg2mem = alloca i32
%sv_1.038.reg2mem = alloca i32
%rcx.139.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%4 = load i8, i8* %1
%sv_3 = alloca i64, align 8
%sv_4 = alloca i8, align 1
%sv_5 = alloca i64, align 8
%5 = bitcast i8* %sv_4 to i64*
%6 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %5)
%7 = call i64 @FUNC(i64 %3, i64* nonnull %5, i64* nonnull %sv_3)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_31, label LBL_1
LBL_1:
%11 = load i64, i64* %sv_3, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_31
LBL_2:
%14 = call i64 @FUNC(i64 %3, i64 0, i64* nonnull %5, i64 256, i64 0)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_31
LBL_3:
%18 = load i8, i8* %sv_4, align 1
%19 = zext i8 %18 to i64
%20 = mul i64 %19, 256
%21 = zext i8 %4 to i64
%22 = or i64 %20, %21
%23 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 256, i64 0, i64 %2)
%.off = add nsw i64 %22, -1
%24 = icmp ult i64 %.off, 1024
br i1 %24, label LBL_4, label LBL_5
LBL_4:
%25 = ptrtoint i64* %sv_5 to i64
%26 = add i64 %25, -1072
%27 = add i64 %25, -1070
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 2
%30 = icmp eq i8 %29, 1
store i64 256, i64* %rcx.139.reg2mem
store i32 2, i32* %sv_1.038.reg2mem
store i32 0, i32* %sv_0.036.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
store i32 2, i32* %sv_1.0.lcssa.reg2mem
store i64 256, i64* %rcx.1.lcssa.reg2mem
br i1 %30, label LBL_6, label LBL_10
LBL_5:
%31 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %22, i64 256, i64 0, i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_31
LBL_6:
%sv_0.036.reload = load i32, i32* %sv_0.036.reg2mem
%sv_1.038.reload = load i32, i32* %sv_1.038.reg2mem
%32 = add i32 %sv_1.038.reload, 1
%33 = zext i32 %32 to i64
%34 = add i64 %26, %33
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = icmp eq i8 %36, -2
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_8, label LBL_7
LBL_7:
%39 = add i32 %sv_1.038.reload, 4
%40 = zext i32 %39 to i64
%41 = add i64 %26, %40
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = zext i32 %sv_0.036.reload to i64
%45 = mul i64 %44, 16
%46 = add i64 %45, ptrtoint (i8** @gv_3 to i64)
%47 = inttoptr i64 %46 to i8*
store i8 %43, i8* %47, align 8
%48 = add i32 %sv_0.036.reload, 1
%49 = zext i8 %43 to i64
%50 = zext i32 %48 to i64
%51 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_4, i64 0, i64 0), i64 %50, i64 %49, i64 0, i64 %2)
%52 = add i32 %sv_1.038.reload, 9
store i32 %48, i32* %.pre-phi.reg2mem
store i64 %49, i64* %rcx.0.reg2mem
store i32 %52, i32* %storemerge2.reg2mem
br label LBL_9
LBL_8:
%rcx.139.reload = load i64, i64* %rcx.139.reg2mem
%53 = zext i32 %sv_0.036.reload to i64
%54 = mul i64 %53, 16
%55 = add i64 %54, ptrtoint (i64* @gv_5 to i64)
%56 = inttoptr i64 %55 to i64*
store i64 0, i64* %56, align 8
%57 = mul nuw nsw i64 %53, 24
%58 = add i64 %57, ptrtoint (i64* @gv_6 to i64)
%59 = inttoptr i64 %58 to i64*
store i64 0, i64* %59, align 8
%60 = add i32 %sv_0.036.reload, 1
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_7, i64 0, i64 0), i64 %61, i64 %rcx.139.reload, i64 0, i64 %2)
%63 = add i32 %sv_1.038.reload, 8
store i32 %60, i32* %.pre-phi.reg2mem
store i64 %rcx.139.reload, i64* %rcx.0.reg2mem
store i32 %63, i32* %storemerge2.reg2mem
br label LBL_9
LBL_9:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%64 = zext i32 %storemerge2.reload to i64
%65 = add i64 %26, %64
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = icmp eq i8 %67, 1
store i64 %rcx.0.reload, i64* %rcx.139.reg2mem
store i32 %storemerge2.reload, i32* %sv_1.038.reg2mem
store i32 %.pre-phi.reload, i32* %sv_0.036.reg2mem
store i32 %.pre-phi.reload, i32* %sv_0.0.lcssa.reg2mem
store i32 %storemerge2.reload, i32* %sv_1.0.lcssa.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.lcssa.reg2mem
br i1 %68, label LBL_6, label LBL_10
LBL_10:
%rcx.1.lcssa.reload = load i64, i64* %rcx.1.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%69 = zext i32 %sv_0.0.lcssa.reload to i64
%70 = load i64, i64* @gv_8, align 8
%71 = icmp ugt i64 %70, %69
store i64 %69, i64* %.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.135.reg2mem
br i1 %71, label LBL_11, label LBL_12
LBL_11:
%sv_0.135.reload = load i32, i32* %sv_0.135.reg2mem
%.reload = load i64, i64* %.reg2mem
%72 = mul i64 %.reload, 16
%73 = add i64 %72, ptrtoint (i64* @gv_5 to i64)
%74 = inttoptr i64 %73 to i64*
store i64 0, i64* %74, align 8
%75 = mul nuw nsw i64 %.reload, 24
%76 = add i64 %75, ptrtoint (i64* @gv_6 to i64)
%77 = inttoptr i64 %76 to i64*
store i64 0, i64* %77, align 8
%78 = add i32 %sv_0.135.reload, 1
%79 = zext i32 %78 to i64
%80 = load i64, i64* @gv_8, align 8
%81 = icmp ugt i64 %80, %79
store i64 %79, i64* %.reg2mem
store i32 %78, i32* %sv_0.135.reg2mem
br i1 %81, label LBL_11, label LBL_12
LBL_12:
%82 = ptrtoint i64* %sv_2 to i64
%83 = ptrtoint i8* %sv_4 to i64
%84 = sub i64 %82, %83
%85 = icmp ugt i64 %22, %84
store i64 %84, i64* %.reg2mem107
store i64 %82, i64* %storemerge33.reg2mem
store i64 %rcx.1.lcssa.reload, i64* %rcx.2.lcssa.reg2mem
br i1 %85, label LBL_13, label LBL_16
LBL_13:
%storemerge33.reload = load i64, i64* %storemerge33.reg2mem
%.reload108 = load i64, i64* %.reg2mem107
%86 = sub i64 %83, %storemerge33.reload
%87 = add i64 %86, %22
%88 = icmp ult i64 %87, 256
%89 = select i1 %88, i64 %87, i64 256
%90 = inttoptr i64 %storemerge33.reload to i64*
%91 = call i64 @FUNC(i64 %3, i64 %.reload108, i64* %90, i64 %89, i64 0)
%92 = trunc i64 %91 to i32
%93 = icmp slt i32 %92, 0
%94 = icmp eq i1 %93, false
br i1 %94, label LBL_15, label LBL_14
LBL_14:
%95 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_9, i64 0, i64 0), i64 %storemerge33.reload, i64 %89, i64 0, i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_31
LBL_15:
%96 = add i64 %storemerge33.reload, 256
%97 = sub i64 %96, %83
%98 = icmp ugt i64 %22, %97
store i64 %97, i64* %.reg2mem107
store i64 %96, i64* %storemerge33.reg2mem
store i64 %89, i64* %rcx.2.lcssa.reg2mem
br i1 %98, label LBL_13, label LBL_16
LBL_16:
%rcx.2.lcssa.reload = load i64, i64* %rcx.2.lcssa.reg2mem
%99 = zext i32 %sv_1.0.lcssa.reload to i64
%100 = icmp ugt i64 %.off, %99
store i64 %99, i64* %.reg2mem113
store i64 0, i64* %r8.1.ph29.reg2mem
store i64 %rcx.2.lcssa.reload, i64* %rcx.3.ph28.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.ph27.reg2mem
store i32 0, i32* %sv_0.3.ph26.reg2mem
store i32 0, i32* %sv_0.3.ph.lcssa.reg2mem
store i64 %rcx.2.lcssa.reload, i64* %rcx.3.ph.lcssa.reg2mem
store i64 0, i64* %r8.1.ph.lcssa.reg2mem
br i1 %100, label LBL_17.lr.ph, label LBL_27
LBL_17:
%sv_1.114.reload = load i32, i32* %sv_1.114.reg2mem
%.reload110 = load i64, i64* %.reg2mem109
%101 = add i64 %.reload110, %26
%102 = inttoptr i64 %101 to i8*
%103 = load i8, i8* %102, align 1
%104 = icmp eq i8 %103, 48
%105 = icmp eq i1 %104, false
%.pre66 = add i32 %sv_1.114.reload, 1
%.pre68 = zext i32 %.pre66 to i64
br i1 %105, label LBL_26, label LBL_18
LBL_18:
%106 = add i64 %26, %.pre68
%107 = inttoptr i64 %106 to i8*
%108 = load i8, i8* %107, align 1
%109 = icmp eq i8 %108, -126
%110 = icmp eq i1 %109, false
br i1 %110, label LBL_26, label LBL_19
LBL_19:
%111 = zext i32 %sv_0.3.ph26.reload to i64
%112 = load i64, i64* @gv_8, align 8
%113 = icmp ugt i64 %112, %111
%114 = icmp eq i1 %113, false
store i64 %111, i64* %.reg2mem111
store i32 %sv_0.3.ph26.reload, i32* %sv_0.221.reg2mem
store i32 %sv_0.3.ph26.reload, i32* %sv_0.2.lcssa.reg2mem
store i64 %111, i64* %.lcssa.reg2mem
br i1 %114, label LBL_22, label LBL_21
LBL_20:
%115 = add i32 %sv_0.221.reload, 1
%116 = zext i32 %115 to i64
%117 = icmp ugt i64 %112, %116
%118 = icmp eq i1 %117, false
store i64 %116, i64* %.reg2mem111
store i32 %115, i32* %sv_0.221.reg2mem
store i32 %115, i32* %sv_0.2.lcssa.reg2mem
store i64 %116, i64* %.lcssa.reg2mem
br i1 %118, label LBL_22, label LBL_21
LBL_21:
%sv_0.221.reload = load i32, i32* %sv_0.221.reg2mem
%.reload112 = load i64, i64* %.reg2mem111
%119 = mul nuw nsw i64 %.reload112, 24
%120 = add i64 %119, ptrtoint (i64* @gv_6 to i64)
%121 = inttoptr i64 %120 to i64*
%122 = load i64, i64* %121, align 8
%123 = icmp eq i64 %122, 0
store i32 %sv_0.221.reload, i32* %sv_0.2.lcssa.reg2mem
store i64 %.reload112, i64* %.lcssa.reg2mem
br i1 %123, label LBL_20, label LBL_22
LBL_22:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%124 = icmp eq i64 %112, %.lcssa.reload
%125 = icmp eq i1 %124, false
br i1 %125, label LBL_24, label LBL_23
LBL_23:
%126 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_10, i64 0, i64 0), i64 %.reload110, i64 %rcx.3.ph28.reload, i64 %r8.1.ph29.reload, i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_31
LBL_24:
%sv_0.2.lcssa.reload = load i32, i32* %sv_0.2.lcssa.reg2mem
%127 = add i32 %sv_1.114.reload, 2
%128 = zext i32 %127 to i64
%129 = add i64 %26, %128
%130 = inttoptr i64 %129 to i8*
%131 = load i8, i8* %130, align 1
%132 = zext i8 %131 to i64
%133 = mul i64 %132, 256
%134 = add i32 %sv_1.114.reload, 3
%135 = zext i32 %134 to i64
%136 = add i64 %26, %135
%137 = inttoptr i64 %136 to i8*
%138 = load i8, i8* %137, align 1
%139 = zext i8 %138 to i64
%140 = or i64 %133, %139
%141 = add nuw nsw i64 %140, 4
%142 = add i32 %sv_0.2.lcssa.reload, 1
%143 = zext i32 %142 to i64
%144 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_11, i64 0, i64 0), i64 %143, i64 %.reload110, i64 %141, i64 %2)
%145 = mul nuw nsw i64 %.lcssa.reload, 24
%146 = add i64 %145, ptrtoint (i64* @gv_12 to i64)
%147 = inttoptr i64 %146 to i64*
store i64 %.reload110, i64* %147, align 8
%148 = add i64 %145, ptrtoint (i64* @gv_13 to i64)
%149 = inttoptr i64 %148 to i64*
store i64 %141, i64* %149, align 8
%150 = trunc i64 %141 to i32
%151 = add i32 %sv_1.114.reload, %150
%152 = zext i32 %151 to i64
%153 = icmp ugt i64 %.off, %152
store i64 %152, i64* %.reg2mem113
store i64 %141, i64* %r8.1.ph29.reg2mem
store i64 %.lcssa.reload, i64* %rcx.3.ph28.reg2mem
store i32 %151, i32* %sv_1.1.ph27.reg2mem
store i32 %142, i32* %sv_0.3.ph26.reg2mem
store i32 %142, i32* %sv_0.3.ph.lcssa.reg2mem
store i64 %.lcssa.reload, i64* %rcx.3.ph.lcssa.reg2mem
store i64 %141, i64* %r8.1.ph.lcssa.reg2mem
br i1 %153, label LBL_17.lr.ph, label LBL_27
LBL_25:
%sv_0.3.ph26.reload = load i32, i32* %sv_0.3.ph26.reg2mem
%sv_1.1.ph27.reload = load i32, i32* %sv_1.1.ph27.reg2mem
%rcx.3.ph28.reload = load i64, i64* %rcx.3.ph28.reg2mem
%r8.1.ph29.reload = load i64, i64* %r8.1.ph29.reg2mem
%.reload114 = load i64, i64* %.reg2mem113
store i64 %.reload114, i64* %.reg2mem109
store i32 %sv_1.1.ph27.reload, i32* %sv_1.114.reg2mem
br label LBL_17
LBL_26:
%154 = icmp ugt i64 %.off, %.pre68
store i64 %.pre68, i64* %.reg2mem109
store i32 %.pre66, i32* %sv_1.114.reg2mem
store i32 %sv_0.3.ph26.reload, i32* %sv_0.3.ph.lcssa.reg2mem
store i64 %rcx.3.ph28.reload, i64* %rcx.3.ph.lcssa.reg2mem
store i64 %r8.1.ph29.reload, i64* %r8.1.ph.lcssa.reg2mem
br i1 %154, label LBL_17, label LBL_27
LBL_27:
%r8.1.ph.lcssa.reload = load i64, i64* %r8.1.ph.lcssa.reg2mem
%rcx.3.ph.lcssa.reload = load i64, i64* %rcx.3.ph.lcssa.reg2mem
%sv_0.3.ph.lcssa.reload = load i32, i32* %sv_0.3.ph.lcssa.reg2mem
%155 = zext i32 %sv_0.3.ph.lcssa.reload to i64
%156 = load i64, i64* @gv_8, align 8
%157 = icmp ugt i64 %156, %155
store i64 %156, i64* %.reg2mem115
store i64 %155, i64* %.reg2mem117
store i32 %sv_0.3.ph.lcssa.reload, i32* %sv_0.413.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %157, label LBL_28, label LBL_31
LBL_28:
%sv_0.413.reload = load i32, i32* %sv_0.413.reg2mem
%.reload118 = load i64, i64* %.reg2mem117
%.reload116 = load i64, i64* %.reg2mem115
%158 = mul nuw nsw i64 %.reload118, 24
%159 = add i64 %158, ptrtoint (i64* @gv_6 to i64)
%160 = inttoptr i64 %159 to i64*
%161 = load i64, i64* %160, align 8
%162 = icmp eq i64 %161, 0
%.pre70 = add i32 %sv_0.413.reload, 1
%.pre72 = zext i32 %.pre70 to i64
store i64 %.reload116, i64* %.reg2mem119
br i1 %162, label LBL_30, label LBL_29
LBL_29:
%163 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_14, i64 0, i64 0), i64 %.pre72, i64 %rcx.3.ph.lcssa.reload, i64 %r8.1.ph.lcssa.reload, i64 %2)
%164 = mul i64 %.reload118, 16
%165 = add i64 %164, ptrtoint (i64* @gv_5 to i64)
%166 = inttoptr i64 %165 to i64*
store i64 0, i64* %166, align 8
store i64 0, i64* %160, align 8
%.pre = load i64, i64* @gv_8, align 8
store i64 %.pre, i64* %.reg2mem119
br label LBL_30
LBL_30:
%.reload120 = load i64, i64* %.reg2mem119
%167 = icmp ugt i64 %.reload120, %.pre72
store i64 %.reload120, i64* %.reg2mem115
store i64 %.pre72, i64* %.reg2mem117
store i32 %.pre70, i32* %sv_0.413.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %167, label LBL_28, label LBL_31
LBL_31:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.reload120, { 1, 0 }
uselistorder i64 %.reload118, { 1, 0 }
uselistorder i64 %.pre68, { 0, 2, 1 }
uselistorder i64 %.reload110, { 2, 1, 3, 0 }
uselistorder i32 %sv_1.114.reload, { 3, 1, 2, 0 }
uselistorder i64 %storemerge33.reload, { 0, 3, 1, 2 }
uselistorder i64 %83, { 2, 1, 0 }
uselistorder i32 %storemerge2.reload, { 0, 2, 1 }
uselistorder i64 %53, { 1, 0 }
uselistorder i32 %sv_1.038.reload, { 1, 0, 3, 2 }
uselistorder i32 %sv_0.036.reload, { 2, 3, 0, 1 }
uselistorder i64 %26, { 3, 4, 5, 6, 0, 1, 2 }
uselistorder i64 %.off, { 2, 1, 0, 3 }
uselistorder i64 %22, { 3, 0, 1, 4, 2, 5 }
uselistorder i8* %sv_4, { 1, 0, 2 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1, 6, 7, 3, 4, 5, 8, 9, 10 }
uselistorder i64 %2, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rcx.139.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.038.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.036.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.135.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem107, { 2, 0, 1 }
uselistorder i64* %storemerge33.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem109, { 1, 2, 0 }
uselistorder i32* %sv_1.114.reg2mem, { 1, 2, 0 }
uselistorder i64* %.reg2mem111, { 0, 2, 1 }
uselistorder i32* %sv_0.221.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem113, { 0, 2, 1 }
uselistorder i64* %r8.1.ph29.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.3.ph28.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.ph27.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.3.ph26.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.3.ph.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rcx.3.ph.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %r8.1.ph.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem115, { 2, 0, 1 }
uselistorder i64* %.reg2mem117, { 2, 0, 1 }
uselistorder i32* %sv_0.413.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem119, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 7, 8, 6, 3, 5, 4 }
uselistorder i64* @gv_8, { 0, 3, 2, 4, 1 }
uselistorder i64 24, { 4, 2, 3, 1, 0 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i8 1, { 1, 0, 2 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @sc_log, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*, i64, i64)* @sc_read_binary, { 1, 0 }
uselistorder i64 256, { 2, 9, 6, 7, 4, 0, 1, 5, 3, 8 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i32 0, { 0, 1, 5, 2, 3, 6, 7, 4 }
uselistorder label LBL_31, { 0, 1, 5, 6, 7, 2, 4, 3 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_27, { 1, 0, 2 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_17.lr.ph, { 1, 0 }
uselistorder label LBL_22, { 1, 0, 2 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | server_audit_deinit_12537 | server_audit_deinit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_6
LBL_1:
store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = call i64 @FUNC(i64* nonnull @gv_1)
%4 = call i64 @FUNC(i64* nonnull @gv_2)
%5 = load i32, i32* @gv_3, align 4
%6 = icmp eq i32 %5, 1
%7 = icmp eq i1 %6, false
%8 = load i64, i64* @gv_4, align 8
%9 = icmp eq i64 %8, 0
%or.cond = or i1 %7, %9
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %8)
br label LBL_5
LBL_3:
%11 = icmp eq i32 %5, 2
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
call void @closelog()
br label LBL_5
LBL_5:
%13 = load i64, i64* @gv_5, align 8
%14 = inttoptr i64 %13 to i64*
call void @free(i64* %14)
%15 = call i64 @FUNC(i64* nonnull @gv_6)
%16 = call i64 @FUNC(i64* nonnull @gv_7)
%17 = call i64 @FUNC(i64* nonnull @gv_8)
%18 = call i64 @FUNC()
%19 = load %_IO_FILE*, %_IO_FILE** @gv_9, align 8
%20 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_10 to i64*), i32 1, i32 8, %_IO_FILE* %19)
br label LBL_6
LBL_6:
ret i64 0
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder %_IO_FILE** @gv_9, { 1, 0 }
uselistorder i64 (i64*)* @flogger_mutex_destroy, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i32 1, { 1, 0, 2 }
uselistorder i64 (i64*)* @coll_free, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | get_none_object_6815 | get_none_object | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64* @calloc(i32 1, i32 16)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = ptrtoint i64* %0 to i64
%4 = bitcast i64* %0 to i32*
store i32 0, i32* %4, align 4
%5 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%6 = ptrtoint i8* %5 to i64
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = icmp eq i8* %5, null
%10 = icmp eq i1 %9, false
store i64 %3, i64* %storemerge.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
call void @free(i64* nonnull %0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %0, { 0, 1, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | init_usb_17517 | init_usb | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge36.reg2mem = alloca i32
%storemerge47.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = add i64 %0, 56
%4 = inttoptr i64 %3 to i32*
%5 = bitcast i64* %arg1 to i32*
store i32 1, i32* %5, align 4
%6 = add i64 %0, 4
%7 = inttoptr i64 %6 to i32*
store i32 0, 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 = add i64 %0, 24
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %0, 32
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %0, 40
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 64
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %0, 72
%21 = call i64 @FUNC(i64 %20)
%22 = add i64 %0, 80
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %0, 48
%25 = call i64 @FUNC(i64 %24)
%26 = add i64 %0, 88
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %0, 92
%29 = call i64 @FUNC(i64 %28)
%30 = add i64 %0, 96
%31 = call i64 @FUNC(i64 %30)
store i32 0, i32* %2, align 4
store i32 0, i32* %4, align 4
%32 = add i64 %0, 104
%33 = inttoptr i64 %32 to i64*
store i64 0, i64* %33, align 8
store i32 0, i32* %storemerge47.reg2mem
br label LBL_1
LBL_1:
%34 = call i64 @FUNC()
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %36, label LBL_2, label LBL_6
LBL_2:
%storemerge47.reload = load i32, i32* %storemerge47.reg2mem
%37 = call i64 @FUNC(i64 %34, i64 %16)
%38 = load i32, i32* %2, align 4
%39 = add i32 %38, 1
store i32 %39, i32* %2, align 4
%40 = add nuw nsw i32 %storemerge47.reload, 1
%41 = icmp ult i32 %40, 10
store i32 %40, i32* %storemerge47.reg2mem
store i32 0, i32* %storemerge36.reg2mem
br i1 %41, label LBL_1, label LBL_3
LBL_3:
%42 = call i64 @FUNC()
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %44, label LBL_4, label LBL_6
LBL_4:
%storemerge36.reload = load i32, i32* %storemerge36.reg2mem
%45 = call i64 @FUNC(i64 %42, i64 %20)
%46 = load i32, i32* %4, align 4
%47 = add i32 %46, 1
store i32 %47, i32* %4, align 4
%48 = add nuw nsw i32 %storemerge36.reload, 1
%49 = icmp ult i32 %48, 10
store i32 %48, i32* %storemerge36.reg2mem
br i1 %49, label LBL_3, label LBL_5
LBL_5:
%50 = add i64 %0, 112
%51 = call i64 @FUNC(i64 %50, i64 4198832)
%52 = add i64 %0, 116
%53 = call i64 @FUNC(i64 %52, i64 4198839)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17 }
uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge36.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @INIT_DELAYED_WORK, { 1, 0 }
uselistorder i64 (i64, i64)* @list_add, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 (i64)* @spin_lock_init, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_6, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | cdrom_change_cb_3592 | cdrom_change_cb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = urem i64 %arg2, 2
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5, i64* nonnull %sv_0)
%7 = load i64, i64* %sv_0, align 8
store i64 %7, i64* %arg1, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
%10 = add i64 %2, 12
%11 = inttoptr i64 %10 to i8*
store i8 1, i8* %11, align 1
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tcp_chr_connect_16569 | tcp_chr_connect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %0)
%7 = add i64 %3, 12
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %5, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %5, 16
%17 = inttoptr i64 %5 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %5, 8
%20 = zext i32 %15 to i64
%21 = zext i32 %18 to i64
%22 = call i64 @FUNC(i64 %19, i64 %21, i64 %16, i64 %20, i32 %12, i32 %9)
store i64 %22, i64* %arg1, align 8
%23 = add i64 %3, 16
%24 = inttoptr i64 %23 to i32*
store i32 1, i32* %24, align 4
%25 = load i64, i64* %4, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label LBL_2, label LBL_1
LBL_1:
%27 = call i64 @FUNC(i64 %25, i64 4198866, i64 4198873, i64 %0)
%28 = trunc i64 %27 to i32
%29 = add i64 %0, 8
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
br label LBL_2
LBL_2:
%31 = call i64 @FUNC(i64 %0)
ret i64 %31
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
} | 1 |
BinRealVul | timerfd_setup_cancel_12993 | timerfd_setup_cancel | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp ne i32 %3, 0
%5 = icmp eq i32 %3, 8
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
%7 = urem i64 %arg2, 4
%8 = icmp ne i64 %7, 3
%9 = or i1 %8, %or.cond
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%13 = icmp eq i8 %12, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_2:
store i8 1, i8* %11, align 1
%14 = call i64 @FUNC(i64* bitcast (i32** @gv_0 to i64*))
%15 = add i64 %2, 8
%16 = call i64 @FUNC(i64 %15, i64* nonnull @gv_1)
%17 = call i64 @FUNC(i64* bitcast (i32** @gv_0 to i64*))
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%18 = icmp eq i8 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %2)
store i64 %19, 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 %12, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i8 1, { 1, 0 }
uselistorder i64 4, { 1, 0 }
} | 1 |
BinRealVul | memory_region_destroy_14444 | memory_region_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 29, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
ret i64 %14
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
} | 1 |
BinRealVul | coroutine_enter_cb_15246 | coroutine_enter_cb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %1
} | 1 |
BinRealVul | Jsi_ValueArrayShift_12362 | Jsi_ValueArrayShift | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.06.in.reg2mem = alloca i64*
%indvars.iv.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.lcssa3.reg2mem = alloca i32
%.reg2mem20 = alloca i64
%indvars.iv11.reg2mem = alloca i64
%.reg2mem18 = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0))
store i64 %4, i64* %rax.0.reg2mem
br label LBL_16
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = ptrtoint i32* %arg2 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_9, label LBL_3
LBL_3:
%13 = add i64 %9, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_16, label LBL_4
LBL_4:
%17 = add i64 %9, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
store i64 %19, i64* %.reg2mem
store i32 %15, i32* %.reg2mem18
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %5, i64 %21)
%.pre = load i32, i32* %14, align 4
%.pre13 = load i64, i64* %18, align 8
store i64 %.pre13, i64* %.reg2mem
store i32 %.pre, i32* %.reg2mem18
br label LBL_6
LBL_6:
%.reload19 = load i32, i32* %.reg2mem18
%.reload = load i64, i64* %.reg2mem
%24 = icmp ugt i32 %.reload19, 1
store i64 1, i64* %indvars.iv11.reg2mem
store i64 %.reload, i64* %.reg2mem20
store i32 %.reload19, i32* %.lcssa3.reg2mem
store i64 %.reload, i64* %.lcssa.reg2mem
br i1 %24, label LBL_7, label LBL_8
LBL_7:
%.reload21 = load i64, i64* %.reg2mem20
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%25 = mul i64 %indvars.iv11.reload, 8
%26 = add i64 %.reload21, %25
%27 = add i64 %26, -8
%28 = inttoptr i64 %26 to i64*
%29 = load i64, i64* %28, align 8
%30 = inttoptr i64 %27 to i64*
store i64 %29, i64* %30, align 8
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%31 = load i32, i32* %14, align 4
%32 = zext i32 %31 to i64
%33 = icmp ult i64 %indvars.iv.next12, %32
%34 = load i64, i64* %18, align 8
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i64 %34, i64* %.reg2mem20
store i32 %31, i32* %.lcssa3.reg2mem
store i64 %34, i64* %.lcssa.reg2mem
br i1 %33, label LBL_7, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%.lcssa3.reload = load i32, i32* %.lcssa3.reg2mem
%35 = add i32 %.lcssa3.reload, -1
store i32 %35, i32* %14, align 4
%36 = sext i32 %.lcssa3.reload to i64
%37 = mul i64 %36, 8
%38 = add i64 %37, %.lcssa.reload
%39 = inttoptr i64 %38 to i64*
store i64 0, i64* %39, align 8
store i64 %38, i64* %rax.0.reg2mem
br label LBL_16
LBL_9:
%40 = call i64 @FUNC(i64 %5, i64 %9)
%41 = trunc i64 %40 to i32
%42 = icmp slt i32 %41, 1
store i64 %40, i64* %rax.0.reg2mem
br i1 %42, label LBL_16, label LBL_10
LBL_10:
%43 = call i64 @FUNC(i64 %5, i64 %6, i64 0)
store i64 %43, i64* %sv_2, align 8
%44 = icmp eq i64 %43, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_16, label LBL_11
LBL_11:
%45 = call i64 @FUNC(i64 %5, i64* nonnull %sv_2)
%46 = icmp sgt i32 %41, 1
br i1 %46, label LBL_12, label LBL_15
LBL_12:
%sext = mul i64 %40, 4294967296
%47 = ashr exact i64 %sext, 32
store i64 1, i64* %indvars.iv.reg2mem
store i64* %sv_2, i64** %sv_0.06.in.reg2mem
br label LBL_13
LBL_13:
%sv_0.06.in.reload = load i64*, i64** %sv_0.06.in.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%sv_0.06 = load i64, i64* %sv_0.06.in.reload, align 8
%48 = call i64 @FUNC(i64 %5, i64 %6, i64 %indvars.iv.reload)
store i64 %48, i64* %sv_1, align 8
%49 = icmp eq i64 %48, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %49, label LBL_16, label LBL_14
LBL_14:
%50 = call i64 @FUNC(i64 %5, i64 %sv_0.06, i64 %48)
%51 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%52 = icmp slt i64 %indvars.iv.next, %47
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64* %sv_1, i64** %sv_0.06.in.reg2mem
br i1 %52, label LBL_13, label LBL_15
LBL_15:
%53 = add i64 %40, 4294967295
%54 = and i64 %53, 4294967295
%55 = load i64, i64* %8, align 8
%56 = call i64 @FUNC(i64 %5, i64 %55, i64 %54)
store i64 %56, 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 %40, { 2, 1, 0, 3 }
uselistorder i32 %.lcssa3.reload, { 1, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64* %18, { 1, 0, 2 }
uselistorder i32* %14, { 2, 1, 0, 3 }
uselistorder i64 %5, { 1, 3, 2, 4, 5, 6, 7, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem18, { 0, 2, 1 }
uselistorder i64* %indvars.iv11.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem20, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_0.06.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 6, 7, 3, 4, 2 }
uselistorder i64 (i64, i64*)* @Jsi_ValueReset, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @Jsi_ValueArrayIndex, { 1, 0 }
uselistorder label LBL_16, { 4, 0, 1, 2, 5, 3, 6 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | pic_as_field_5178 | pic_as_field | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 1
%3 = icmp eq i1 %2, false
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.pre = mul i64 %indvars.iv.reload, 4
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %.pre, %0
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = load i64, i64* %5, align 8
%12 = add i64 %11, %.pre
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i32 %14, %10
store i32 %15, i32* %9, align 4
br label LBL_3
LBL_3:
store i32 %1, i32* %7, align 4
%16 = load i64, i64* %5, align 8
%17 = add i64 %16, %.pre
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = mul i32 %19, 2
store i32 %20, i32* %18, align 4
%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_4, label LBL_1
LBL_4:
%21 = select i1 %2, i64 20, i64 16
%22 = add i64 %21, %4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %0, 20
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
ret i64 %0
uselistorder i64 %.pre, { 2, 1, 0 }
uselistorder i64 %0, { 2, 1, 0, 4, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 20, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | decode_user_data_853 | decode_user_data | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%storemerge3.lcssa.reg2mem = alloca i32
%indvars.iv8.reg2mem = alloca i64
%storemerge379.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i8, align 1
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i32, align 4
%sv_6 = alloca i32, align 4
%sv_7 = alloca i64, align 8
%2 = ptrtoint i64* %sv_7 to i64
store i32 0, i32* %sv_6, align 4
store i32 0, i32* %sv_5, align 4
store i32 0, i32* %sv_4, align 4
store i32 0, i32* %sv_3, align 4
%3 = bitcast i64* %rsi to i32*
%4 = ptrtoint i32* %arg2 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %2, -272
%8 = trunc i64 %1 to i32
%9 = load i32, i32* %6, align 4
%10 = icmp ugt i32 %9, %8
store i32 0, i32* %storemerge379.reg2mem
store i64 0, i64* %indvars.iv8.reg2mem
store i32 0, i32* %storemerge3.lcssa.reg2mem
br i1 %10, label LBL_1, label LBL_5
LBL_1:
%storemerge379.reload = load i32, i32* %storemerge379.reg2mem
%11 = call i64 @FUNC(i64 %4, i64 23)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i32 %storemerge379.reload, i32* %storemerge3.lcssa.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_2:
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
%14 = call i64 @FUNC(i64 %4, i64 8)
%15 = trunc i64 %14 to i8
%16 = add i64 %indvars.iv8.reload, %7
%17 = inttoptr i64 %16 to i8*
store i8 %15, i8* %17, align 1
%18 = add nuw nsw i32 %storemerge379.reload, 1
%19 = icmp ugt i64 %indvars.iv8.reload, 253
store i32 %18, i32* %storemerge3.lcssa.reg2mem
br i1 %19, label LBL_5, label LBL_2.dec_label_pc_4011eb_crit_edge
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv8.reload, 1
%.pre = load i32, i32* %3, align 8
%20 = load i32, i32* %6, align 4
%21 = icmp ult i32 %.pre, %20
store i32 %18, i32* %storemerge379.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv8.reg2mem
br i1 %21, label LBL_1, label LBL_4
LBL_4:
%22 = trunc i64 %indvars.iv.next to i32
store i32 %22, i32* %storemerge3.lcssa.reg2mem
br label LBL_5
LBL_5:
%23 = ptrtoint i64* %arg1 to i64
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%24 = sext i32 %storemerge3.lcssa.reload to i64
%25 = add i64 %7, %24
%26 = inttoptr i64 %25 to i8*
store i8 0, i8* %26, align 1
%27 = bitcast i64* %sv_1 to i8*
%28 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i32* nonnull %sv_6, i32* nonnull %sv_5, i8* nonnull %sv_2)
%29 = icmp sgt i32 %28, 1
store i32 %28, i32* %sv_0.04.reg2mem
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i32* nonnull %sv_6, i32* nonnull %sv_5, i8* nonnull %sv_2)
%31 = icmp slt i32 %30, 2
store i32 %30, i32* %sv_0.04.reg2mem
br i1 %31, label LBL_11, label LBL_7
LBL_7:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%32 = load i32, i32* %sv_6, align 4
%33 = bitcast i64* %arg1 to i32*
store i32 %32, i32* %33, align 4
%34 = load i32, i32* %sv_5, align 4
%35 = add i64 %23, 4
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = icmp eq i32 %sv_0.04.reload, 3
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_9, label LBL_8
LBL_8:
%39 = load i8, i8* %sv_2, align 1
%40 = icmp eq i8 %39, 112
%41 = icmp eq i1 %40, false
store i32 1, i32* %storemerge.reg2mem
br i1 %41, label LBL_9, label LBL_10
LBL_9:
store i32 0, i32* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%42 = add i64 %23, 8
%43 = inttoptr i64 %42 to i32*
store i32 %storemerge.reload, i32* %43, align 4
br label LBL_11
LBL_11:
%44 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0), i32* nonnull %sv_5, i32* nonnull %sv_5, i8* nonnull %sv_2)
%45 = icmp eq i32 %44, 1
br i1 %45, label LBL_17, label LBL_12
LBL_12:
%46 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_3, i64 0, i64 0), i32* nonnull %sv_6, i32* nonnull %sv_4, i32* nonnull %sv_3, i32* nonnull %sv_5)
%47 = icmp eq i32 %46, 4
br i1 %47, label LBL_17, label LBL_13
LBL_13:
%48 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0), i32* nonnull %sv_6, i32* nonnull %sv_4, i32* nonnull %sv_3)
%49 = add i32 %48, 1
%50 = icmp slt i32 %49, 2
br i1 %50, label LBL_15, label LBL_14
LBL_14:
%51 = load i32, i32* %sv_6, align 4
%52 = mul i32 %51, 65536
%53 = load i32, i32* %sv_4, align 4
%54 = mul i32 %53, 256
%55 = add i32 %54, %52
%56 = load i32, i32* %sv_3, align 4
%57 = add i32 %55, %56
store i32 %57, i32* %sv_5, align 4
%58 = icmp eq i32 %49, 4
br i1 %58, label LBL_17, label LBL_15
LBL_15:
%59 = call i32 @strcmp(i8* nonnull %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_18, label LBL_16
LBL_16:
%62 = add i64 %23, 12
%63 = inttoptr i64 %62 to i32*
store i32 4600, i32* %63, align 4
br label LBL_18
LBL_17:
%64 = load i32, i32* %sv_5, align 4
%65 = add i64 %23, 12
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
br label LBL_18
LBL_18:
%67 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0), i32* nonnull %sv_5)
%68 = icmp eq i32 %67, 1
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_20, label LBL_19
LBL_19:
%70 = load i32, i32* %sv_5, align 4
%71 = add i64 %23, 16
%72 = inttoptr i64 %71 to i32*
store i32 %70, i32* %72, align 4
br label LBL_20
LBL_20:
ret i64 0
uselistorder i8* %27, { 4, 3, 2, 1, 5, 0, 6 }
uselistorder i64 %23, { 4, 3, 2, 0, 1 }
uselistorder i64 %indvars.iv.next, { 1, 0 }
uselistorder i32 %18, { 1, 0 }
uselistorder i64 %indvars.iv8.reload, { 2, 1, 0 }
uselistorder i32 %storemerge379.reload, { 1, 0 }
uselistorder i32* %6, { 1, 0 }
uselistorder i32* %sv_6, { 4, 0, 1, 5, 2, 3, 6 }
uselistorder i32* %sv_5, { 6, 1, 7, 8, 2, 0, 3, 9, 4, 5, 10 }
uselistorder i32* %sv_4, { 2, 0, 1, 3 }
uselistorder i32* %sv_3, { 2, 0, 1, 3 }
uselistorder i8* %sv_2, { 0, 1, 3, 2 }
uselistorder i32* %storemerge379.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv8.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32* %sv_0.04.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*, i8*, ...)* @sscanf, { 1, 4, 5, 2, 3, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 0 }
uselistorder label LBL_17, { 2, 0, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | copy_packet_data_16939 | copy_packet_data | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %arg1, align 8
%2 = add i64 %1, 24
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
%4 = add i64 %1, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_9
LBL_2:
store i64 %11, i64* %5, align 8
%14 = inttoptr i64 %11 to i64*
%15 = load i64, i64* %14, align 8
store i64 %15, i64* %arg1, align 8
br label LBL_5
LBL_3:
%16 = add i64 %1, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = call i64* @malloc(i32 %18)
%20 = ptrtoint i64* %19 to i64
store i64 %20, i64* %arg1, align 8
%21 = icmp eq i32 %18, 0
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = sext i32 %18 to i64
%23 = load i32, i32* %17, align 4
%24 = inttoptr i64 %22 to i64*
%25 = call i64* @memcpy(i64* %24, i64* %arg2, i32 %23)
br label LBL_5
LBL_5:
%26 = add i64 %1, 40
%27 = inttoptr i64 %26 to i64*
store i64 4198852, i64* %27, align 8
%28 = add i64 %1, 32
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
%32 = trunc i64 %arg3 to i32
%33 = icmp eq i32 %32, 0
%or.cond = or i1 %33, %31
store i32 %30, i32* %.reg2mem
br i1 %or.cond, label LBL_7, label LBL_6
LBL_6:
%34 = add i64 %0, 24
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
store i64 %36, i64* %3, align 8
%.pr = load i32, i32* %29, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%37 = icmp eq i32 %.reload, 0
%38 = icmp eq i1 %33, false
%or.cond3 = or i1 %38, %37
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_9, label LBL_8
LBL_8:
%39 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %39, 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 i1 %33, { 1, 0 }
uselistorder i32 %18, { 2, 0, 1 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 2, 0, 3, 1 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_9, { 2, 0, 1 }
} | 1 |
BinRealVul | bnx2x_free_mem_4115 | bnx2x_free_mem | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %arg1, i64 %2, i64 0)
%4 = add i64 %arg1, 32
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %arg1, 40
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, %6
%11 = add i64 %arg1, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %arg1, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %13, i64 %10)
%18 = add i64 %arg1, 56
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %arg1, 48
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %20, i64 0)
%25 = call i64 @FUNC(i64 %arg1)
%26 = icmp sgt i64 %25, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br i1 %26, label LBL_1, label LBL_2
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%27 = mul nsw i64 %.reload, 24
%28 = add i64 %27, %arg1
%29 = add i64 %28, 80
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %28, 72
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = add i64 %28, 64
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 %34, i64 %31)
%39 = add i32 %storemerge1.reload, 1
%40 = call i64 @FUNC(i64 %arg1)
%41 = sext i32 %39 to i64
%42 = icmp sgt i64 %40, %41
store i64 %41, i64* %.reg2mem
store i32 %39, i32* %storemerge1.reg2mem
br i1 %42, label LBL_1, label LBL_2
LBL_2:
%43 = call i64 @FUNC(i64 %arg1, i64 0)
%44 = add i64 %arg1, 304
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %48)
%50 = add i64 %arg1, 320
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = add i64 %arg1, 312
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %55, i64 %52, i64 4096)
%57 = add i64 %arg1, 336
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = add i64 %arg1, 328
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = call i64 @FUNC(i64 %62, i64 %59, i64 16384)
%64 = call i64 @FUNC(i64 %arg1)
ret i64 %64
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @L2_ILT_LINES, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @BNX2X_PCI_FREE, { 4, 3, 5, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 4, 3, 6, 5, 7, 8, 9, 0, 1, 10, 11, 12, 13, 14, 15, 16, 17 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | printTable_7590 | printTable | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i8* %arg5, i16* %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.014.reg2mem = alloca %_IO_FILE*
%.reg2mem = alloca i1
%sv_1.1.reg2mem = alloca i32
%sv_1.015.reg2mem = alloca i32
%storemerge816.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%sv_2.017.reg2mem = alloca i32
%storemerge918.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%4 = ptrtoint i16* %arg6 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %8, label LBL_32, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg3 to i64
%10 = ptrtoint i64* %arg2 to i64
%11 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%12 = ptrtoint %_IO_FILE* %11 to i64
%13 = icmp eq i64 %12, %arg7
%14 = icmp eq i1 %13, false
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %14, label LBL_14, label LBL_2
LBL_2:
%15 = add i64 %4, 40
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %18, label LBL_14, label LBL_3
LBL_3:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%20 = call i32 @fileno(%_IO_FILE* %19)
%21 = call i32 @isatty(i32 %20)
%22 = icmp eq i32 %21, 0
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %22, label LBL_14, label LBL_4
LBL_4:
%23 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%24 = call i32 @fileno(%_IO_FILE* %23)
%25 = call i32 @isatty(i32 %24)
%26 = icmp eq i32 %25, 0
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %26, label LBL_14, label LBL_5
LBL_5:
%27 = icmp eq i64* %arg2, null
store i32 0, i32* %sv_2.1.reg2mem
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = load i64, i64* %arg2, align 8
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %10, i64* %storemerge918.reg2mem
store i32 0, i32* %sv_2.017.reg2mem
store i32 0, i32* %sv_2.1.reg2mem
br i1 %30, label LBL_7, label LBL_8
LBL_7:
%sv_2.017.reload = load i32, i32* %sv_2.017.reg2mem
%storemerge918.reload = load i64, i64* %storemerge918.reg2mem
%31 = add i32 %sv_2.017.reload, 1
%32 = add i64 %storemerge918.reload, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 %32, i64* %storemerge918.reg2mem
store i32 %31, i32* %sv_2.017.reg2mem
store i32 %31, i32* %sv_2.1.reg2mem
br i1 %36, label LBL_7, label LBL_8
LBL_8:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%37 = icmp eq i64* %arg3, null
store i32 0, i32* %sv_1.1.reg2mem
br i1 %37, label LBL_11, label LBL_9
LBL_9:
%38 = load i64, i64* %arg3, align 8
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
store i64 %9, i64* %storemerge816.reg2mem
store i32 0, i32* %sv_1.015.reg2mem
store i32 0, i32* %sv_1.1.reg2mem
br i1 %40, label LBL_10, label LBL_11
LBL_10:
%sv_1.015.reload = load i32, i32* %sv_1.015.reg2mem
%storemerge816.reload = load i64, i64* %storemerge816.reg2mem
%41 = add i32 %sv_1.015.reload, 1
%42 = add i64 %storemerge816.reload, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 %42, i64* %storemerge816.reg2mem
store i32 %41, i32* %sv_1.015.reg2mem
store i32 %41, i32* %sv_1.1.reg2mem
br i1 %46, label LBL_10, label LBL_11
LBL_11:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%47 = udiv i32 %sv_1.1.reload, %sv_2.1.reload
%48 = add i64 %4, 8
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 0
%52 = add i32 %47, 1
%53 = add i32 %sv_2.1.reload, 1
%54 = mul i32 %47, %53
%storemerge7 = select i1 %51, i32 %52, i32 %54
%55 = add i64 %4, 12
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
%60 = add i32 %storemerge7, 5
%spec.select11 = select i1 %59, i32 %storemerge7, i32 %60
%61 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%62 = call i32 @fileno(%_IO_FILE* %61)
%63 = call i32 (i32, i32, ...) @ioctl(i32 %62, i32 21523)
%64 = icmp eq i32 %63, -1
%65 = urem i32 %3, 65536
%66 = icmp ugt i32 %spec.select11, %65
%or.cond13 = or i1 %64, %66
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %or.cond13, label LBL_12, label LBL_14
LBL_12:
%67 = call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%68 = icmp eq i8* %67, null
%69 = icmp eq i1 %68, false
%spec.select = select i1 %69, i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0)
%70 = call %_IO_FILE* @popen(i8* %spec.select, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0))
%71 = icmp eq %_IO_FILE* %70, null
store i1 true, i1* %.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.014.reg2mem
br i1 %71, label LBL_14, label LBL_13
LBL_13:
%72 = call i64 @FUNC(i64 13, i64 1)
store i1 false, i1* %.reg2mem
store %_IO_FILE* %70, %_IO_FILE** %sv_0.014.reg2mem
br label LBL_14
LBL_14:
%73 = trunc i64 %2 to i16
%74 = sext i16 %73 to i32
%75 = icmp eq i64* %arg4, null
%76 = icmp eq i1 %75, false
%spec.select10 = select i1 %76, i64* %arg4, i64* %sv_3
%sv_4.0 = ptrtoint i64* %spec.select10 to i64
%77 = icmp eq i32 %7, 3
%78 = icmp ult i16 %73, 3
%or.cond = or i1 %78, %77
%sv_5.0 = select i1 %or.cond, i32 %74, i32 2
%sv_0.014.reload = load %_IO_FILE*, %_IO_FILE** %sv_0.014.reg2mem
%.reload = load i1, i1* %.reg2mem
%79 = load i32, i32* %6, align 4
%80 = icmp eq i32 %79, 4
br i1 %80, label LBL_26, label LBL_15
LBL_15:
%81 = icmp sgt i32 %79, 4
br i1 %81, label LBL_29, label LBL_16
LBL_16:
switch i32 %79, label LBL_29 [
i32 3, label LBL_23
i32 1, label LBL_17
i32 2, label LBL_20
]
LBL_17:
%82 = add i64 %4, 8
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = icmp eq i32 %84, 0
%86 = add i64 %4, 24
%87 = inttoptr i64 %86 to i64*
%88 = load i64, i64* %87, align 8
%89 = add i64 %4, 16
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
br i1 %85, label LBL_19, label LBL_18
LBL_18:
%92 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %91, i64 %88)
store i64 %92, i64* %rax.0.reg2mem
br label LBL_30
LBL_19:
%93 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %91, i64 %88)
store i64 %93, i64* %rax.0.reg2mem
br label LBL_30
LBL_20:
%94 = add i64 %4, 8
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = icmp eq i32 %96, 0
br i1 %97, label LBL_22, label LBL_21
LBL_21:
%98 = add i64 %4, 12
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = urem i32 %sv_5.0, 65536
%102 = zext i32 %101 to i64
%103 = zext i32 %100 to i64
%104 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %103, i64 %102)
store i64 %104, i64* %rax.0.reg2mem
br label LBL_30
LBL_22:
%105 = urem i32 %sv_5.0, 65536
%106 = zext i32 %105 to i64
%107 = add i64 %4, 12
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = ptrtoint i8* %arg5 to i64
%111 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %110, i32 %109, i64 %106)
store i64 %111, i64* %rax.0.reg2mem
br label LBL_30
LBL_23:
%112 = add i64 %4, 8
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = icmp eq i32 %114, 0
%116 = urem i32 %sv_5.0, 65536
%117 = zext i32 %116 to i64
%118 = add i64 %4, 12
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = ptrtoint i8* %arg5 to i64
br i1 %115, label LBL_25, label LBL_24
LBL_24:
%122 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %121, i32 %120, i64 %117)
store i64 %122, i64* %rax.0.reg2mem
br label LBL_30
LBL_25:
%123 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %121, i32 %120, i64 %117)
store i64 %123, i64* %rax.0.reg2mem
br label LBL_30
LBL_26:
%124 = add i64 %4, 8
%125 = inttoptr i64 %124 to i32*
%126 = load i32, i32* %125, align 4
%127 = icmp eq i32 %126, 0
%128 = urem i32 %sv_5.0, 65536
%129 = zext i32 %128 to i64
%130 = add i64 %4, 12
%131 = inttoptr i64 %130 to i32*
%132 = load i32, i32* %131, align 4
%133 = ptrtoint i8* %arg5 to i64
br i1 %127, label LBL_28, label LBL_27
LBL_27:
%134 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %133, i32 %132, i64 %129)
store i64 %134, i64* %rax.0.reg2mem
br label LBL_30
LBL_28:
%135 = call i64 @FUNC(i64 %arg1, i64 %10, i64 %9, i64 %sv_4.0, i64 %133, i32 %132, i64 %129)
store i64 %135, i64* %rax.0.reg2mem
br label LBL_30
LBL_29:
%136 = load %_IO_FILE*, %_IO_FILE** @gv_5, align 8
%137 = call i32 @fwrite(i64* bitcast ([33 x i8]* @gv_6 to i64*), i32 1, i32 32, %_IO_FILE* %136)
%138 = sext i32 %137 to i64
store i64 %138, i64* %rax.0.reg2mem
br label LBL_30
LBL_30:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %.reload, label LBL_32, label LBL_31
LBL_31:
%139 = call i32 @pclose(%_IO_FILE* nonnull %sv_0.014.reload)
%140 = call i64 @FUNC(i64 13, i64 0)
store i64 %140, i64* %rax.1.reg2mem
br label LBL_32
LBL_32:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %133, { 1, 0 }
uselistorder i32 %132, { 1, 0 }
uselistorder i64 %129, { 1, 0 }
uselistorder i64 %121, { 1, 0 }
uselistorder i32 %120, { 1, 0 }
uselistorder i64 %117, { 1, 0 }
uselistorder i64 %91, { 1, 0 }
uselistorder i64 %88, { 1, 0 }
uselistorder i64 %sv_4.0, { 1, 0, 3, 2, 6, 7, 5, 4 }
uselistorder i16 %73, { 1, 0 }
uselistorder i32 %sv_2.1.reload, { 1, 0 }
uselistorder i64 %10, { 7, 8, 5, 6, 2, 1, 3, 4, 0 }
uselistorder i64 %9, { 7, 8, 5, 6, 2, 1, 3, 4, 0 }
uselistorder i64 %4, { 12, 11, 10, 9, 4, 5, 3, 8, 7, 6, 0, 1, 2, 13 }
uselistorder i64* %storemerge918.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.017.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge816.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.015.reg2mem, { 2, 0, 1 }
uselistorder i1* %.reg2mem, { 0, 6, 7, 1, 2, 3, 4, 5 }
uselistorder %_IO_FILE** %sv_0.014.reg2mem, { 0, 6, 7, 1, 2, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 9, 8, 6, 5, 2, 1, 4, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64, i64)* @pqsignal, { 1, 0 }
uselistorder i64 8, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64* null, { 2, 0, 1 }
uselistorder i32 (i32)* @isatty, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fileno, { 2, 1, 0 }
uselistorder i1 true, { 5, 0, 1, 2, 3, 4 }
uselistorder i1 false, { 8, 0, 3, 4, 5, 2, 6, 1, 7 }
uselistorder i32 0, { 6, 7, 8, 9, 10, 11, 0, 2, 1, 3, 5, 4, 12, 13, 14, 15 }
uselistorder i8* %arg5, { 2, 1, 0 }
uselistorder i64 %arg1, { 6, 7, 4, 5, 1, 0, 2, 3 }
uselistorder label LBL_32, { 1, 2, 0 }
uselistorder label LBL_14, { 6, 5, 0, 1, 2, 3, 4 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | uv__process_child_init_13699 | uv__process_child_init | define i64 @FUNC(i32* %arg1, i64 %arg2, i32* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%indvars.iv11.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @setsid()
br label LBL_2
LBL_2:
%6 = trunc i64 %arg2 to i32
%7 = icmp sgt i32 %6, 0
br i1 %7, label LBL_3, label LBL_20
LBL_3:
%8 = ptrtoint i32* %arg3 to i64
%sext = mul i64 %arg2, 4294967296
%9 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv11.reg2mem
br label LBL_4
LBL_4:
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%10 = mul i64 %indvars.iv11.reload, 8
%11 = add i64 %10, %8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %11, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
store i32 %13, i32* %sv_1.0.reg2mem
store i32 %16, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_8, label LBL_5
LBL_5:
%19 = icmp ugt i64 %indvars.iv11.reload, 2
br i1 %19, label LBL_15, label LBL_6
LBL_6:
%20 = icmp eq i64 %indvars.iv11.reload, 0
%21 = icmp eq i1 %20, false
%. = select i1 %21, i32 2, i32 0
%22 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i32 %.)
%23 = icmp eq i32 %22, -1
%24 = icmp eq i1 %23, false
store i32 %22, i32* %sv_1.0.reg2mem
store i32 %22, i32* %sv_0.0.reg2mem
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = call i32* @__errno_location()
%26 = load i32, i32* %25, align 4
%27 = sub i32 0, %26
%28 = zext i32 %27 to i64
%29 = zext i32 %arg4 to i64
%30 = call i64 @FUNC(i64 %29, i64 %28)
call void @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0))
call void @_exit(i32 127)
unreachable
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%31 = zext i32 %sv_0.0.reload to i64
%32 = icmp eq i64 %indvars.iv11.reload, %31
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = call i64 @FUNC(i64 %31, i64 0)
br label LBL_11
LBL_10:
%35 = trunc i64 %indvars.iv11.reload to i32
%36 = call i32 @dup2(i32 %sv_0.0.reload, i32 %35)
br label LBL_11
LBL_11:
%37 = icmp ugt i64 %indvars.iv11.reload, 2
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%38 = call i64 @FUNC(i64 %indvars.iv11.reload, i64 0)
br label LBL_13
LBL_13:
%39 = icmp eq i32 %sv_1.0.reload, -1
br i1 %39, label LBL_15, label LBL_14
LBL_14:
%40 = zext i32 %sv_1.0.reload to i64
%41 = call i64 @FUNC(i64 %40)
br label LBL_15
LBL_15:
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%42 = icmp slt i64 %indvars.iv.next12, %9
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
br i1 %42, label LBL_4, label LBL_16
LBL_16:
%43 = add i64 %8, 4
%wide.trip.count = and i64 %arg2, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_17
LBL_17:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%44 = mul i64 %indvars.iv.reload, 8
%45 = add i64 %43, %44
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp slt i32 %47, 0
%49 = zext i32 %47 to i64
%50 = icmp eq i64 %indvars.iv.reload, %49
%or.cond = or i1 %48, %50
br i1 %or.cond, label LBL_19, label LBL_18
LBL_18:
%51 = call i32 @close(i32 %47)
br label LBL_19
LBL_19:
%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_20, label LBL_17
LBL_20:
%52 = ptrtoint i32* %arg1 to i64
%53 = add i64 %52, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = icmp eq i64 %55, 0
br i1 %56, label LBL_23, label LBL_21
LBL_21:
%57 = inttoptr i64 %55 to i8*
%58 = call i32 @chdir(i8* %57)
%59 = icmp eq i32 %58, 0
br i1 %59, label LBL_23, label LBL_22
LBL_22:
%60 = call i32* @__errno_location()
%61 = load i32, i32* %60, align 4
%62 = sub i32 0, %61
%63 = zext i32 %62 to i64
%64 = zext i32 %arg4 to i64
%65 = call i64 @FUNC(i64 %64, i64 %63)
call void @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0))
call void @_exit(i32 127)
unreachable
LBL_23:
%66 = and i32 %2, 6
%67 = icmp eq i32 %66, 0
br i1 %67, label LBL_25, label LBL_24
LBL_24:
%68 = call i32* @__errno_location()
%69 = load i32, i32* %68, align 4
%70 = call i32 @setgroups(i32 0, i32* null)
%71 = call i32* @__errno_location()
store i32 %69, i32* %71, align 4
br label LBL_25
LBL_25:
%72 = and i32 %2, 4
%73 = icmp eq i32 %72, 0
br i1 %73, label LBL_28, label LBL_26
LBL_26:
%74 = add i64 %52, 20
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = call i32 @setgid(i32 %76)
%78 = icmp eq i32 %77, 0
br i1 %78, label LBL_28, label LBL_27
LBL_27:
%79 = call i32* @__errno_location()
%80 = load i32, i32* %79, align 4
%81 = sub i32 0, %80
%82 = zext i32 %81 to i64
%83 = zext i32 %arg4 to i64
%84 = call i64 @FUNC(i64 %83, i64 %82)
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0))
call void @_exit(i32 127)
unreachable
LBL_28:
%85 = and i32 %2, 2
%86 = icmp eq i32 %85, 0
br i1 %86, label LBL_31, label LBL_29
LBL_29:
%87 = add i64 %52, 16
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = call i32 @setuid(i32 %89)
%91 = icmp eq i32 %90, 0
br i1 %91, label LBL_31, label LBL_30
LBL_30:
%92 = call i32* @__errno_location()
%93 = load i32, i32* %92, align 4
%94 = sub i32 0, %93
%95 = zext i32 %94 to i64
%96 = zext i32 %arg4 to i64
%97 = call i64 @FUNC(i64 %96, i64 %95)
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0))
call void @_exit(i32 127)
unreachable
LBL_31:
%98 = add i64 %52, 40
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = icmp eq i64 %100, 0
br i1 %101, label LBL_33, label LBL_32
LBL_32:
store i64 %100, i64* @gv_5, align 8
br label LBL_33
LBL_33:
%102 = add i64 %52, 32
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = add i64 %52, 24
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = inttoptr i64 %107 to i8*
%109 = inttoptr i64 %104 to i8*
%110 = insertvalue [1 x i8*] undef, i8* %109, 0
%111 = call i32 @execvp(i8* %108, [1 x i8*] %110)
%112 = call i32* @__errno_location()
%113 = load i32, i32* %112, align 4
%114 = sub i32 0, %113
%115 = zext i32 %114 to i64
%116 = zext i32 %arg4 to i64
%117 = call i64 @FUNC(i64 %116, i64 %115)
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_6, i64 0, i64 0))
call void @_exit(i32 127)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %52, { 3, 2, 4, 1, 0, 5 }
uselistorder i32 %47, { 1, 0, 2 }
uselistorder i64 %indvars.iv11.reload, { 0, 5, 6, 4, 3, 2, 1, 7 }
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %2, { 1, 2, 3, 0 }
uselistorder i64* %indvars.iv11.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 4, { 2, 0, 1 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 127, { 1, 2, 3, 4, 0 }
uselistorder void (i8*)* @perror, { 1, 4, 0, 3, 2 }
uselistorder i64 (i64, i64)* @uv__write_int, { 4, 3, 2, 1, 0 }
uselistorder i32* ()* @__errno_location, { 6, 4, 0, 1, 2, 3, 5 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i64 0, { 7, 8, 19, 9, 10, 11, 12, 13, 14, 20, 0, 15, 16, 3, 4, 5, 6, 2, 1, 17, 18 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i32 %arg4, { 3, 2, 1, 0, 4 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_15, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | virtio_pci_stop_ioeventfd_2510 | virtio_pci_stop_ioeventfd | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7, i64 %indvars.iv.reload)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %4, i64 %indvars.iv.reload, i64 0)
%12 = call i64 @FUNC(i64 %4, i64 %indvars.iv.reload, i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_1, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_6, label LBL_2
LBL_6:
%16 = bitcast i64* %arg1 to i32*
store i32 0, i32* %16, align 4
store i64 %4, 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 %indvars.iv.reload, { 0, 2, 1, 3 }
uselistorder i64 %4, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1, 3 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | vp9_superframe_filter_20 | vp9_superframe_filter | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i64
%storemerge210.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_3)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %3, i64* %storemerge.in.reg2mem
br i1 %6, label LBL_1, label LBL_26
LBL_1:
%7 = load i64, i64* %sv_3, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %7, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = sext i32 %12 to i64
%14 = add i64 %9, -1
%15 = add i64 %14, %13
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i32
%19 = and i32 %18, 224
%20 = icmp eq i32 %19, 192
%21 = icmp eq i1 %20, false
store i32 0, i32* %sv_1.0.reg2mem
br i1 %21, label LBL_5, label LBL_2
LBL_2:
%22 = udiv i32 %18, 8
%23 = urem i32 %22, 4
%24 = add nuw nsw i32 %23, 1
%25 = urem i32 %18, 8
%26 = add nuw nsw i32 %25, 1
%narrow = mul nuw nsw i32 %24, %26
%27 = add nuw nsw i32 %narrow, 2
%28 = icmp ult i32 %12, %27
br i1 %28, label LBL_4, label LBL_3
LBL_3:
%29 = sub i32 %12, %27
%30 = sext i32 %29 to i64
%31 = add i64 %9, %30
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %17, %33
%35 = icmp eq i1 %34, false
store i32 1, i32* %sv_1.0.reg2mem
br i1 %35, label LBL_4, label LBL_5
LBL_4:
store i32 0, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%36 = ptrtoint i64* %arg2 to i64
%37 = bitcast i32* %sv_2 to i64*
%38 = call i64 @FUNC(i64* nonnull %37, i64 %9, i32 %12)
%39 = trunc i64 %38 to i32
%40 = icmp slt i32 %39, 0
store i64 %38, i64* %sv_0.07.reg2mem
br i1 %40, label LBL_24, label LBL_6
LBL_6:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%41 = call i64 @FUNC(i64* nonnull %37, i64 2)
%42 = call i64 @FUNC(i64* nonnull %37, i64 1)
%43 = trunc i64 %42 to i32
store i32 %43, i32* %sv_2, align 4
%44 = call i64 @FUNC(i64* nonnull %37, i64 1)
%45 = trunc i64 %44 to i32
%46 = mul i32 %45, 2
%47 = load i32, i32* %sv_2, align 4
%48 = or i32 %46, %47
store i32 %48, i32* %sv_2, align 4
%49 = icmp eq i32 %48, 3
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_8, label LBL_7
LBL_7:
%51 = call i64 @FUNC(i64* nonnull %37, i64 1)
%52 = load i32, i32* %sv_2, align 4
%53 = trunc i64 %51 to i32
%54 = add i32 %52, %53
store i32 %54, i32* %sv_2, align 4
br label LBL_8
LBL_8:
%55 = call i64 @FUNC(i64* nonnull %37, i64 1)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
store i32 0, i32* %storemerge3.reg2mem
br i1 %57, label LBL_9, label LBL_10
LBL_9:
%58 = call i64 @FUNC(i64* nonnull %37, i64 1)
%59 = call i64 @FUNC(i64* nonnull %37, i64 1)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = zext i1 %61 to i32
store i32 %62, i32* %storemerge3.reg2mem
br label LBL_10
LBL_10:
%63 = trunc i64 %1 to i32
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%64 = icmp eq i32 %sv_1.0.reload, 0
br i1 %64, label LBL_13, label LBL_11
LBL_11:
%65 = icmp slt i32 %63, 1
br i1 %65, label LBL_14, label LBL_12
LBL_12:
%66 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967258, i64* %sv_0.07.reg2mem
br label LBL_24
LBL_13:
%67 = icmp eq i32 %storemerge3.reload, 0
br i1 %67, label LBL_14, label LBL_16
LBL_14:
%68 = icmp eq i32 %63, 0
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_16, label LBL_15
LBL_15:
%70 = load i64, i64* %sv_3, align 8
%71 = call i64 @FUNC(i64 %36, i64 %70)
store i64 %38, i64* %sv_0.08.reg2mem
br label LBL_25
LBL_16:
%72 = icmp slt i32 %63, 15
br i1 %72, label LBL_18, label LBL_17
LBL_17:
%73 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %sv_0.07.reg2mem
br label LBL_24
LBL_18:
%74 = add i32 %63, 1
%75 = bitcast i64* %arg1 to i32*
store i32 %74, i32* %75, align 4
%76 = load i64, i64* %sv_3, align 8
%sext = mul i64 %1, 4294967296
%77 = ashr exact i64 %sext, 29
%78 = add i64 %2, 8
%79 = add i64 %77, %78
%80 = inttoptr i64 %79 to i64*
store i64 %76, i64* %80, align 8
store i64 0, i64* %sv_3, align 8
%81 = icmp eq i32 %storemerge3.reload, 0
store i64 4294967285, i64* %sv_0.07.reg2mem
br i1 %81, label LBL_19, label LBL_24
LBL_19:
%.pre-phi = bitcast i64* %rdi to i32*
%82 = load i32, i32* %.pre-phi, align 8
%83 = icmp eq i32 %82, 0
%84 = icmp slt i32 %82, 0
%85 = icmp eq i1 %84, false
%86 = icmp eq i1 %83, false
%87 = icmp eq i1 %85, %86
%88 = zext i1 %87 to i64
%89 = call i64 @FUNC(i64 %88)
%90 = zext i32 %82 to i64
%91 = call i64 @FUNC(i64 %78, i64 %90, i64 %36)
%92 = trunc i64 %91 to i32
%93 = icmp slt i32 %92, 0
store i64 %91, i64* %sv_0.07.reg2mem
br i1 %93, label LBL_24, label LBL_20
LBL_20:
%94 = add i32 %82, -1
%95 = sext i32 %94 to i64
%96 = mul i64 %95, 8
%97 = add i64 %96, %78
%98 = inttoptr i64 %97 to i64*
%99 = load i64, i64* %98, align 8
%100 = call i64 @FUNC(i64 %36, i64 %99)
%101 = trunc i64 %100 to i32
%102 = icmp slt i32 %101, 0
store i64 %100, i64* %sv_0.07.reg2mem
br i1 %102, label LBL_24, label LBL_21
LBL_21:
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge210.reg2mem
br i1 %83, label LBL_23, label LBL_22
LBL_22:
%storemerge210.reload = load i32, i32* %storemerge210.reg2mem
%.reload = load i64, i64* %.reg2mem
%103 = mul i64 %.reload, 8
%104 = add i64 %103, %78
%105 = inttoptr i64 %104 to i64*
%106 = call i64 @FUNC(i64* %105)
%107 = add i32 %storemerge210.reload, 1
%108 = sext i32 %107 to i64
%109 = icmp slt i64 %108, %90
store i64 %108, i64* %.reg2mem
store i32 %107, i32* %storemerge210.reg2mem
br i1 %109, label LBL_22, label LBL_23
LBL_23:
store i32 0, i32* %75, align 4
store i64 %100, i64* %sv_0.08.reg2mem
br label LBL_25
LBL_24:
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%110 = call i64 @FUNC(i64 %36)
store i64 %sv_0.07.reload, i64* %sv_0.08.reg2mem
br label LBL_25
LBL_25:
%sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem
%111 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 %sv_0.08.reload, i64* %storemerge.in.reg2mem
br label LBL_26
LBL_26:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i32 %82, { 0, 1, 3, 2 }
uselistorder i64 %78, { 0, 1, 3, 2 }
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i64* %37, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i64 %36, { 3, 1, 2, 0 }
uselistorder i32 %27, { 1, 0 }
uselistorder i32 %18, { 1, 0, 2 }
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64* %sv_3, { 0, 2, 3, 4, 5, 1 }
uselistorder i32* %sv_2, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %2, { 2, 1, 0, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge210.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.07.reg2mem, { 0, 3, 2, 6, 4, 5, 1 }
uselistorder i64* %sv_0.08.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @av_packet_free, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 1, 0 }
uselistorder i64 (i64*, i64)* @bitstream_read, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i32 0, { 4, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 14, 15, 2, 3, 16, 17, 18 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_25, { 2, 0, 1 }
uselistorder label LBL_24, { 3, 4, 0, 2, 1, 5 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | qvirtio_pci_device_find_14916 | qvirtio_pci_device_find | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = trunc i64 %arg2 to i16
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 %0, i16 %1, i64 4198801, i64* nonnull %sv_0)
%3 = load i64, i64* %sv_0, align 8
%4 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%5 = load i64, i64* %sv_0, align 8
ret i64 %5
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | nfc_dep_link_up_5945 | nfc_dep_link_up | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.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 i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%6 = add i64 %5, 16
%7 = call i64 @FUNC(i64 %6)
%8 = urem i64 %arg3, 256
%9 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %8, i64 %4, i64 %2, i64 %1)
%10 = add i64 %5, 8
%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 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 1, i64* %storemerge.reg2mem
br i1 %16, label LBL_1, label LBL_8
LBL_1:
%17 = trunc i64 %3 to i32
%18 = call i64 @FUNC(i64 %6)
%19 = icmp eq i32 %17, 0
store i64* inttoptr (i32 2 to i64*), i64** %sv_0.0.reg2mem
br i1 %19, label LBL_2, label LBL_7
LBL_2:
%20 = add i64 %5, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 1
%24 = icmp eq i1 %23, false
store i64* inttoptr (i32 3 to i64*), i64** %sv_0.0.reg2mem
br i1 %24, label LBL_3, label LBL_7
LBL_3:
%25 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1)
%26 = load i64, i64* %sv_1, align 8
%27 = icmp ult i64 %26, 256
store i64* inttoptr (i32 4 to i64*), i64** %sv_0.0.reg2mem
br i1 %27, label LBL_4, label LBL_7
LBL_4:
%28 = and i64 %arg2, 4294967295
%29 = call i64 @FUNC(i64 %5, i64 %28)
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64* inttoptr (i32 5 to i64*), i64** %sv_0.0.reg2mem
br i1 %31, label LBL_5, label LBL_7
LBL_5:
%32 = trunc i64 %5 to i32
%33 = and i64 %5, 4294967295
%34 = inttoptr i64 %33 to i64*
%35 = icmp eq i32 %32, 0
%36 = icmp eq i1 %35, false
store i64* %34, i64** %sv_0.0.reg2mem
br i1 %36, label LBL_7, label LBL_6
LBL_6:
%37 = add i64 %5, 24
%38 = inttoptr i64 %37 to i64*
store i64 %29, i64* %38, align 8
%39 = add i64 %5, 32
%40 = inttoptr i64 %39 to i32*
store i32 1, i32* %40, align 4
store i64* %34, i64** %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%41 = call i64 @FUNC(i64 %6)
%42 = ptrtoint i64* %sv_0.0.reload to i64
%43 = and i64 %42, 4294967295
store i64 %43, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 %5, { 0, 1, 3, 2, 4, 6, 5, 7, 8 }
uselistorder i64** %sv_0.0.reg2mem, { 0, 5, 6, 1, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 256, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 5, 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | qcow2_snapshot_load_tmp_11558 | qcow2_snapshot_load_tmp | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem7 = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%9 = ptrtoint i64* %arg4 to i64
%10 = ptrtoint i8* %arg3 to i64
%11 = ptrtoint i8* %arg2 to i64
%12 = call i64 @FUNC(i64 %2, i64 %11, i64 %10)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%17 = inttoptr i64 %5 to i32*
%18 = add i64 %5, 24
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%sext5 = mul i64 %12, 4294967296
%21 = ashr exact i64 %sext5, 32
%22 = add i64 %20, %21
%23 = load i32, i32* %17, align 4
%24 = mul i32 %23, 8
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25, i64 512)
%sext = mul i64 %26, 4294967296
%27 = ashr exact i64 %sext, 32
%28 = call i64 @FUNC(i64 %27)
%29 = add i64 %22, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %2, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i64 %31, i64 %28, i32 %24)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_6, label LBL_5
LBL_5:
%39 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0))
%40 = call i64 @FUNC(i64 %28)
%41 = and i64 %35, 4294967295
store i64 %41, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%42 = inttoptr i64 %22 to i32*
%43 = add i64 %5, 16
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %45)
%47 = load i32, i32* %42, align 4
store i32 %47, i32* %17, align 4
%48 = load i64, i64* %30, align 8
%49 = add i64 %5, 8
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
store i64 %28, i64* %44, align 8
%51 = load i32, i32* %17, align 4
%52 = icmp eq i32 %51, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %52, label LBL_9, label LBL_7
LBL_7:
%53 = call i64 @FUNC(i64 %28)
%54 = load i32, i32* %17, align 4
%55 = icmp ugt i32 %54, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem7
store i64 0, i64* %rax.0.reg2mem
br i1 %55, label LBL_8, label LBL_9
LBL_8:
%.reload8 = load i32, i32* %.reg2mem7
%.reload = load i64, i64* %.reg2mem
%.pre = load i64, i64* %44, align 8
%56 = mul i64 %.reload, 8
%57 = add i64 %56, %.pre
%58 = call i64 @FUNC(i64 %57)
%59 = add i32 %.reload8, 1
%60 = load i32, i32* %17, align 4
%61 = zext i32 %60 to i64
%62 = sext i32 %59 to i64
%63 = icmp slt i64 %62, %61
store i64 %62, i64* %.reg2mem
store i32 %59, i32* %.reg2mem7
store i64 0, i64* %rax.0.reg2mem
br i1 %63, label LBL_8, label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %28, { 0, 2, 1, 3 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32* %17, { 2, 0, 1, 3, 4 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem7, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 5, 4 }
uselistorder i64 (i64)* @be64_to_cpus, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64, i8*)* @error_setg, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2, 3, 4 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | rdma_start_incoming_migration_2499 | rdma_start_incoming_migration | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i8* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = inttoptr i64 %3 to i32*
%10 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0))
%11 = load i32, i32* %9, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %12, i64 5)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_4:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0))
%18 = add i64 %3, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23, i64 0, i64 4199009, i64 0, i64 %3)
store i64 %24, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%25 = load i64, i64* %sv_0, align 8
%26 = call i64 @FUNC(i64 %0, i64 %25)
%27 = call i64 @FUNC(i64 %3)
store i64 %27, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 2, 0, 1, 4, 3, 5 }
uselistorder i64* %sv_0, { 2, 0, 1, 3 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64 (i8*)* @DPRINTF, { 2, 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | jpegxl_anim_read_packet_7085 | jpegxl_anim_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%sext = mul i64 %4, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = icmp slt i64 %sext, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_11
LBL_1:
%8 = icmp eq i64 %sext, 0
%9 = icmp eq i1 %8, false
%spec.select = select i1 %9, i64 %5, i64 4096
%10 = icmp eq i64 %3, 0
store i64 %spec.select, i64* %sv_1.1.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp ugt i64 %13, %spec.select
%spec.select2 = select i1 %14, i64 %13, i64 %spec.select
store i64 %spec.select2, i64* %sv_1.1.reg2mem
br label LBL_3
LBL_3:
%15 = ptrtoint i64* %arg2 to i64
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%16 = and i64 %sv_1.1.reload, 4294967295
%17 = call i64 @FUNC(i64 %15, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = and i64 %17, 4294967295
store i64 %21, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%22 = icmp eq i64* %arg2, null
store i64 0, i64* %sv_0.0.reg2mem
store i64 %16, i64* %rsi.0.reg2mem
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = add i64 %15, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %16 to i64*
%27 = trunc i64 %25 to i32
%28 = call i64* @memcpy(i64* %26, i64* nonnull %arg2, i32 %27)
%29 = call i64 @FUNC(i64 %0)
store i64 %25, i64* %sv_0.0.reg2mem
store i64 %15, i64* %rsi.0.reg2mem
br label LBL_7
LBL_7:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%30 = sub i64 %sv_1.1.reload, %sv_0.0.reload
%31 = add i64 %rsi.0.reload, %sv_0.0.reload
%32 = call i64 @FUNC(i64 %3, i64 %31, i64 %30)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%36 = and i64 %32, 4294967295
store i64 %36, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%sext1 = mul i64 %32, 4294967296
%37 = ashr exact i64 %sext1, 32
%38 = icmp ugt i64 %30, %37
%39 = icmp eq i1 %38, false
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_11, label LBL_10
LBL_10:
%40 = add i64 %37, %sv_0.0.reload
%41 = add i64 %15, 8
%42 = inttoptr i64 %41 to i64*
store i64 %40, i64* %42, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder i64 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %15, { 1, 0, 2, 3 }
uselistorder i64 %spec.select, { 1, 2, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %sext, { 2, 1, 0 }
uselistorder i64 %3, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 4, 3 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 4096, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 3, 4, 2 }
} | 0 |
BinRealVul | pdin_dump_10685 | pdin_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%4 = inttoptr i64 %arg2 to %_IO_FILE*
%5 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_1 to i64*), i32 1, i32 2, %_IO_FILE* %4)
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = add i64 %2, 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_5, label LBL_2
LBL_2:
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = load i64, i64* %13, align 8
%17 = mul i64 %indvars.iv.reload, 4
%18 = add i64 %16, %17
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = load i64, i64* %15, align 8
%23 = add i64 %22, %17
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %4, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_2, i64 0, i64 0), i64 %26, i64 %21)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%28 = load i32, i32* %9, align 4
%29 = zext i32 %28 to i64
%30 = icmp ult i64 %indvars.iv.next, %29
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %30, label LBL_3, label LBL_5
LBL_4:
%31 = call i32 @fwrite(i64* bitcast ([43 x i8]* @gv_3 to i64*), i32 1, i32 42, %_IO_FILE* %4)
br label LBL_5
LBL_5:
%32 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %arg2)
ret i64 0
uselistorder i64 %17, { 1, 0 }
uselistorder i32* %9, { 1, 0 }
uselistorder %_IO_FILE* %4, { 1, 0, 2 }
uselistorder i64 %2, { 3, 2, 1, 0, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ReadAVSImage_7882 | ReadAVSImage | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%rbx.011.reg2mem = alloca i64
%r12.012.reg2mem = alloca i64
%storemerge213.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rsi.3.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 %0, i64* %rsi.0.reg2mem
store i64 %1, i64* %rdi.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 182, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem
store i64 ptrtoint ([39 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%4 = add i64 %1, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 305419896
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 183, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.1.reg2mem
store i64 ptrtoint ([45 x i8]* @gv_3 to i64), i64* %rdi.1.reg2mem
br label LBL_4
LBL_4:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%12 = call i64 @FUNC(i64 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i64 %rdi.1.reload)
store i64 ptrtoint ([7 x i8]* @gv_4 to i64), i64* %rsi.2.reg2mem
br label LBL_6
LBL_6:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%13 = icmp eq i64* %arg2, null
%14 = icmp eq i1 %13, false
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
br i1 %14, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 187, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.3.reg2mem
br label LBL_8
LBL_8:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%15 = icmp eq i64 %rsi.3.reload, 305419896
br i1 %15, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 188, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_10
LBL_10:
%16 = call i64 @FUNC(i64 %1, i64 %0)
%17 = call i64 @FUNC(i64 %1, i64 %16, i64 6, i64 %0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_12, label LBL_11
LBL_11:
%21 = call i64 @FUNC(i64 %16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_47
LBL_12:
%22 = call i64 @FUNC(i64 %16)
%23 = call i64 @FUNC(i64 %16)
%24 = call i64 @FUNC(i64 %16)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_14, label LBL_13
LBL_13:
%27 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_8, i64 0, i64 0))
br label LBL_14
LBL_14:
%28 = icmp ne i64 %22, 0
%29 = icmp eq i64 %23, 0
%30 = icmp eq i1 %29, false
%or.cond5 = icmp eq i1 %28, %30
br i1 %or.cond5, label LBL_16, label LBL_15
LBL_15:
%31 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_8, i64 0, i64 0))
br label LBL_16
LBL_16:
%32 = add i64 %1, 24
%33 = inttoptr i64 %32 to i32*
%34 = add i64 %1, 28
%35 = inttoptr i64 %34 to i32*
%36 = add i64 %1, 32
%37 = inttoptr i64 %36 to i32*
store i64 %16, i64* %sv_0.0.reg2mem
store i64 %22, i64* %sv_2.0.reg2mem
store i64 %23, i64* %sv_1.0.reg2mem
br label LBL_17
LBL_17:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%38 = inttoptr i64 %sv_0.0.reload to i64*
store i64 %sv_2.0.reload, i64* %38, align 8
%39 = add i64 %sv_0.0.reload, 8
%40 = inttoptr i64 %39 to i64*
store i64 %sv_1.0.reload, i64* %40, align 8
%41 = add i64 %sv_0.0.reload, 16
%42 = inttoptr i64 %41 to i32*
store i32 8, i32* %42, align 4
%43 = load i32, i32* %33, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_20, label LBL_18
LBL_18:
%45 = load i32, i32* %35, align 4
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_20, label LBL_19
LBL_19:
%47 = add i64 %sv_0.0.reload, 32
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = load i32, i32* %37, align 4
%51 = add i32 %45, -1
%52 = add i32 %51, %50
%53 = icmp ult i32 %49, %52
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br i1 %53, label LBL_20, label LBL_46
LBL_20:
%54 = load i64, i64* %40, align 8
%55 = load i64, i64* %38, align 8
%56 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %55, i64 %54, i64 %0)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_22, label LBL_21
LBL_21:
%60 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 %60, i64* %rax.0.reg2mem
br label LBL_47
LBL_22:
%61 = load i64, i64* %38, align 8
%62 = call i64 @FUNC(i64 %61, i64 4)
%63 = icmp eq i64 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_24, label LBL_23
LBL_23:
%65 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_9, i64 0, i64 0))
br label LBL_24
LBL_24:
%66 = call i64 @FUNC(i64 %62)
%67 = load i64, i64* %40, align 8
%68 = icmp sgt i64 %67, 0
br i1 %68, label LBL_25, label LBL_37
LBL_25:
%69 = load i64, i64* %38, align 8
%70 = mul i64 %69, 4
%71 = add i64 %sv_0.0.reload, 20
%72 = inttoptr i64 %71 to i32*
%73 = add i64 %sv_0.0.reload, 24
%74 = inttoptr i64 %73 to i64*
store i64 0, i64* %storemerge14.reg2mem
br label LBL_26
LBL_26:
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%75 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %70, i64 %66)
%76 = icmp eq i64 %75, %70
br i1 %76, label LBL_28, label LBL_27
LBL_27:
%77 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_10, i64 0, i64 0))
br label LBL_28
LBL_28:
%78 = load i64, i64* %38, align 8
%79 = call i64 @FUNC(i64 %sv_0.0.reload, i64 0, i64 %storemerge14.reload, i64 %78, i64 1, i64 %0)
%80 = icmp eq i64 %79, 0
br i1 %80, label LBL_37, label LBL_29
LBL_29:
%81 = load i64, i64* %38, align 8
%82 = icmp sgt i64 %81, 0
store i64 0, i64* %storemerge213.reg2mem
store i64 %79, i64* %r12.012.reg2mem
store i64 %66, i64* %rbx.011.reg2mem
br i1 %82, label LBL_30, label LBL_33
LBL_30:
%rbx.011.reload = load i64, i64* %rbx.011.reg2mem
%r12.012.reload = load i64, i64* %r12.012.reg2mem
%storemerge213.reload = load i64, i64* %storemerge213.reg2mem
%83 = add i64 %rbx.011.reload, 1
%84 = inttoptr i64 %rbx.011.reload to i8*
%85 = load i8, i8* %84, align 1
%86 = zext i8 %85 to i64
%87 = call i64 @FUNC(i64 %86)
%88 = and i64 %87, 4294967295
%89 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %88, i64 %r12.012.reload)
%90 = add i64 %rbx.011.reload, 2
%91 = inttoptr i64 %83 to i8*
%92 = load i8, i8* %91, align 1
%93 = zext i8 %92 to i64
%94 = call i64 @FUNC(i64 %93)
%95 = and i64 %94, 4294967295
%96 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %95, i64 %r12.012.reload)
%97 = add i64 %rbx.011.reload, 3
%98 = inttoptr i64 %90 to i8*
%99 = load i8, i8* %98, align 1
%100 = zext i8 %99 to i64
%101 = call i64 @FUNC(i64 %100)
%102 = and i64 %101, 4294967295
%103 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %102, i64 %r12.012.reload)
%104 = inttoptr i64 %97 to i8*
%105 = load i8, i8* %104, align 1
%106 = zext i8 %105 to i64
%107 = call i64 @FUNC(i64 %106)
%108 = and i64 %107, 4294967295
%109 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %108, i64 %r12.012.reload)
%110 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %r12.012.reload)
%111 = trunc i64 %110 to i32
%112 = icmp eq i32 %111, 0
br i1 %112, label LBL_32, label LBL_31
LBL_31:
store i32 1, i32* %72, align 4
br label LBL_32
LBL_32:
%113 = add i64 %rbx.011.reload, 4
%114 = call i64 @FUNC(i64 %sv_0.0.reload)
%sext = mul i64 %114, 4294967296
%115 = ashr exact i64 %sext, 30
%116 = add i64 %115, %r12.012.reload
%117 = add nuw nsw i64 %storemerge213.reload, 1
%118 = load i64, i64* %38, align 8
%119 = icmp slt i64 %117, %118
store i64 %117, i64* %storemerge213.reg2mem
store i64 %116, i64* %r12.012.reg2mem
store i64 %113, i64* %rbx.011.reg2mem
br i1 %119, label LBL_30, label LBL_33
LBL_33:
%120 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %0)
%121 = trunc i64 %120 to i32
%122 = icmp eq i32 %121, 0
br i1 %122, label LBL_37, label LBL_34
LBL_34:
%123 = load i64, i64* %74, align 8
%124 = icmp eq i64 %123, 0
%125 = icmp eq i1 %124, false
br i1 %125, label LBL_36, label LBL_35
LBL_35:
%126 = load i64, i64* %40, align 8
%127 = call i64 @FUNC(i64 %sv_0.0.reload, i64 3, i64 %storemerge14.reload, i64 %126)
%128 = trunc i64 %127 to i32
%129 = icmp eq i32 %128, 0
br i1 %129, label LBL_37, label LBL_36
LBL_36:
%130 = add nuw nsw i64 %storemerge14.reload, 1
%131 = load i64, i64* %40, align 8
%132 = icmp slt i64 %130, %131
store i64 %130, i64* %storemerge14.reg2mem
br i1 %132, label LBL_26, label LBL_37
LBL_37:
%133 = call i64 @FUNC(i64 %62)
%134 = call i64 @FUNC(i64 %sv_0.0.reload)
%135 = trunc i64 %134 to i32
%136 = icmp eq i32 %135, 0
br i1 %136, label LBL_39, label LBL_38
LBL_38:
%137 = add i64 %sv_0.0.reload, 40
%138 = inttoptr i64 %137 to i64*
%139 = load i64, i64* %138, align 8
%140 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_11, i64 0, i64 0), i64 %139)
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br label LBL_46
LBL_39:
%141 = load i32, i32* %35, align 4
%142 = icmp eq i32 %141, 0
br i1 %142, label LBL_41, label LBL_40
LBL_40:
%143 = add i64 %sv_0.0.reload, 32
%144 = inttoptr i64 %143 to i32*
%145 = load i32, i32* %144, align 4
%146 = load i32, i32* %37, align 4
%147 = add i32 %141, -1
%148 = add i32 %147, %146
%149 = icmp ult i32 %145, %148
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br i1 %149, label LBL_41, label LBL_46
LBL_41:
%150 = call i64 @FUNC(i64 %sv_0.0.reload)
%151 = call i64 @FUNC(i64 %sv_0.0.reload)
%152 = icmp eq i64 %150, 0
%153 = icmp eq i64 %151, 0
%or.cond = or i1 %152, %153
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_45, label LBL_42
LBL_42:
%154 = call i64 @FUNC(i64 %1, i64 %sv_0.0.reload, i64 %0)
%155 = call i64 @FUNC(i64 %sv_0.0.reload)
%156 = icmp eq i64 %155, 0
%157 = icmp eq i1 %156, false
br i1 %157, label LBL_44, label LBL_43
LBL_43:
%158 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_47
LBL_44:
%159 = call i64 @FUNC(i64 %sv_0.0.reload)
%160 = call i64 @FUNC(i64 %159)
%161 = call i64 @FUNC(i64 %159)
%162 = call i64 @FUNC(i64 %159, i64 4, i64 %161, i64 %160)
%163 = trunc i64 %162 to i32
%164 = icmp eq i32 %163, 0
store i64 %159, i64* %sv_0.1.reg2mem
store i64 %159, i64* %sv_0.2.reg2mem
br i1 %164, label LBL_46, label LBL_45
LBL_45:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%165 = icmp ne i64 %150, 0
%166 = icmp eq i1 %153, false
%or.cond7 = icmp eq i1 %165, %166
store i64 %sv_0.1.reload, i64* %sv_0.0.reg2mem
store i64 %150, i64* %sv_2.0.reg2mem
store i64 %151, i64* %sv_1.0.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br i1 %or.cond7, label LBL_17, label LBL_46
LBL_46:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%167 = call i64 @FUNC(i64 %sv_0.2.reload)
%168 = call i64 @FUNC(i64 %sv_0.2.reload)
store i64 %168, i64* %rax.0.reg2mem
br label LBL_47
LBL_47:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.2.reload, { 1, 0 }
uselistorder i64 %r12.012.reload, { 5, 1, 0, 2, 3, 4 }
uselistorder i64 %rbx.011.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %storemerge14.reload, { 2, 0, 1 }
uselistorder i64* %40, { 2, 1, 0, 3, 4 }
uselistorder i64* %38, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 %sv_0.0.reload, { 15, 30, 14, 13, 3, 12, 11, 1, 16, 2, 29, 10, 25, 17, 23, 22, 21, 20, 19, 18, 9, 8, 26, 24, 28, 7, 0, 27, 6, 5, 4 }
uselistorder i64 %1, { 1, 4, 3, 2, 6, 5, 7, 8, 0 }
uselistorder i64 %0, { 3, 2, 1, 4, 5, 7, 6, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge213.reg2mem, { 2, 0, 1 }
uselistorder i64* %r12.012.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @SetImageProgress, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64)* @ScaleCharToQuantum, { 3, 2, 1, 0 }
uselistorder i64 4, { 3, 2, 0, 4, 1 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i64 (i64, i8*)* @ThrowReaderException, { 3, 2, 1, 0 }
uselistorder i64 1, { 4, 11, 9, 10, 5, 6, 7, 8, 0, 1, 2, 3 }
uselistorder i64 (i64)* @EOFBlob, { 1, 0 }
uselistorder i64 (i64)* @ReadBlobMSBLong, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @DestroyImageList, { 2, 1, 0 }
uselistorder [7 x i8]* @gv_4, { 1, 0 }
uselistorder i32 0, { 0, 1, 2, 4, 5, 3, 6, 7, 8, 9, 10, 11 }
uselistorder [45 x i8]* @gv_3, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 3, 0, 1 }
uselistorder [46 x i8]* @gv_1, { 1, 0 }
uselistorder [39 x i8]* @gv_0, { 1, 0 }
uselistorder i1 false, { 0, 2, 3, 4, 5, 1, 6, 7, 8 }
uselistorder label LBL_46, { 0, 1, 2, 4, 3 }
uselistorder label LBL_37, { 0, 3, 2, 1, 4 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
} | 1 |
BinRealVul | rt2x00pci_write_tx_data_4429 | rt2x00pci_write_tx_data | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%rcx = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%sv_0 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2, i64 0)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_1:
%9 = inttoptr i64 %5 to i64*
%10 = load i64, i64* %9, align 8
%11 = bitcast i32* %sv_0 to i64*
%12 = call i64 @FUNC(i64 %10, i64 0, i64* nonnull %11)
%13 = load i32, i32* %sv_0, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 0)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load i32, i32* %sv_0, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20, i64 1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = and i64 %1, 4294967295
%25 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_1, i64 0, i64 0), i64 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%27 = ptrtoint i64* %arg3 to i64
%28 = ptrtoint i64* %arg1 to i64
%29 = ptrtoint i32* %sv_0 to i64
%30 = call i64 @FUNC(i64 %27)
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = add i64 %27, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %30, 8
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = load i64, i64* %9, align 8
%38 = add i64 %30, 16
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = bitcast i64* %rsi to i32*
%41 = load i32, i32* %40, align 8
%42 = add i64 %30, 24
%43 = inttoptr i64 %42 to i32*
store i32 %41, i32* %43, align 4
%44 = add i64 %30, 32
%45 = inttoptr i64 %44 to i64*
store i64 %3, i64* %45, align 8
%46 = add i64 %5, 1508
%47 = bitcast i64* %rcx to i32*
%48 = load i32, i32* %47, align 8
%49 = inttoptr i64 %46 to i32*
store i32 %48, i32* %49, align 4
%50 = load i32, i32* %33, align 4
%51 = sext i32 %50 to i64
%52 = add i64 %5, 8
%53 = inttoptr i64 %52 to i64*
%54 = inttoptr i64 %51 to i64*
%55 = call i64* @memcpy(i64* %53, i64* %54, i32 %50)
%56 = ptrtoint i32* %arg4 to i64
%57 = call i64 @FUNC(i64 %28, i64 %27, i64 %56)
%58 = call i64 @FUNC(i64 %2, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_0, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64)* @rt2x00_get_field32, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | r_bin_dyldcache_from_bytes_new_11030 | r_bin_dyldcache_from_bytes_new | define i64 @FUNC(i16* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64* @malloc(i32 16)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_8
LBL_1:
%3 = ptrtoint i64* %0 to i64
%4 = call i64* @memset(i64* %0, i32 0, i32 16)
%5 = icmp eq i16* %arg1, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %3)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%8 = call i64 @FUNC()
store i64 %8, i64* %0, align 8
%9 = ptrtoint i16* %arg1 to i64
%10 = call i64 @FUNC(i64 %8, i64 %9, i64 %arg2)
%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_4
LBL_4:
%14 = call i64 @FUNC(i64 %3)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%15 = call i64 @FUNC(i64 %3)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %3)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%20 = add i64 %3, 8
%21 = inttoptr i64 %20 to i64*
store i64 %arg2, i64* %21, align 8
store i64 %3, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 0, 2, 3, 4, 5, 1 }
uselistorder i64* %0, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 3, 4, 0 }
} | 1 |
BinRealVul | dfa_read_packet_16172 | dfa_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_1, label LBL_12
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 %3, i64 %7, i64 12)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 12
store i64 5, i64* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_2, label LBL_12
LBL_2:
%11 = add i64 %7, 8
%12 = inttoptr i64 %11 to i32*
%13 = add i64 %7, -8
%14 = add i64 %7, -12
store i32 1, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_3:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%15 = icmp eq i32 %sv_0.1.reload, 0
%16 = icmp eq i1 %15, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %3, i64 %7, i64 12)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
store i64 %17, i64* %rax.0.shrunk.reg2mem
br i1 %20, label LBL_5, label LBL_12
LBL_5:
%21 = load i32, i32* %12, align 4
%22 = sext i32 %21 to i64
%23 = add i64 %13, %22
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp ult i32 %25, 2147483644
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = and i64 %24, 4294967295
%28 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %27, i64 %2, i64 %1)
store i64 5, i64* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_7:
%29 = load i32, i32* %12, align 4
%30 = sext i32 %29 to i64
%31 = add i64 %14, %30
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 1162823250
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%36 = icmp eq i32 %25, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %36, label LBL_12, label LBL_9
LBL_9:
%37 = and i64 %24, 4294967295
%38 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i64 %37, i64 %2, i64 %1)
%39 = call i64 @FUNC(i64 %3, i64 %37)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%40 = and i64 %24, 4294967295
%41 = call i64 @FUNC(i64 %3, i64 %7, i64 %40)
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %42, 0
%44 = icmp eq i1 %43, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
store i64 %41, i64* %rax.0.shrunk.reg2mem
br i1 %44, label LBL_11, label LBL_12
LBL_11:
%45 = call i64 @FUNC(i64 %3)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %47, label LBL_3, label LBL_12
LBL_12:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %37, { 1, 0 }
uselistorder i64 %24, { 2, 0, 1, 3 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %7, { 3, 2, 0, 1, 4, 5 }
uselistorder i64 %3, { 5, 4, 2, 3, 1, 0, 6, 7 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 1, 2, 5, 4, 8, 3, 6, 7 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64)* @AV_RL32, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_append_packet, { 1, 0 }
uselistorder i64 5, { 1, 0 }
uselistorder i32 0, { 5, 1, 2, 3, 0, 4, 6 }
uselistorder i64 (i64)* @avio_feof, { 1, 0 }
uselistorder label LBL_12, { 0, 1, 4, 3, 7, 2, 5, 6 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | g2m_decode_end_17966 | g2m_decode_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 32
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 40
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %0, 48
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %0, 56
%15 = call i64 @FUNC(i64 %14)
ret i64 0
uselistorder i64 (i64)* @av_freep, { 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | print_progress_bar_8762 | print_progress_bar | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
store i64 %3, i64* @0, align 8
%4 = mul i64 %3, 8
%5 = add i64 %4, ptrtoint (i64* @gv_0 to i64)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
store i64 %7, i64* %rax.0.reg2mem
switch i32 %2, label LBL_7 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_6
i32 6, label LBL_6
]
LBL_1:
%8 = call i64 @FUNC(i64 1, i64* nonnull @gv_1)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%9 = call i64 @FUNC(i64 1, i64* nonnull @gv_2)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%10 = call i64 @FUNC(i64 1, i64* nonnull @gv_3)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%11 = call i64 @FUNC(i64 1, i64* nonnull @gv_4)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%12 = call i64 @FUNC(i64 1, i64* nonnull @gv_5)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%13 = call i64 @FUNC(i64 1, i64* nonnull @gv_6)
store i64 %13, 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 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1, 7 }
uselistorder i64 (i64, i64*)* @ef_debug, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | _cgsem_mswait_8366 | _cgsem_mswait | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%2 = ptrtoint i64* %sv_3 to i64
%3 = and i64 %arg2, 4294967295
%4 = bitcast i64* %rdi to i32*
%5 = ptrtoint i64* %sv_2 to i64
%6 = add i64 %2, -176
%7 = bitcast i64* %sv_2 to %_TYPEDEF_fd_set*
%8 = bitcast i64* %sv_1 to %timeval*
%9 = trunc i64 %1 to i32
store i32 %9, i32* %.reg2mem
br label LBL_1
LBL_1:
%.reload = load i32, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = mul i64 %indvars.iv.reload, 8
%11 = add i64 %10, %5
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%13 = add i32 %.reload, 63
%14 = icmp slt i32 %.reload, 0
%15 = select i1 %14, i32 %13, i32 %.reload
%16 = ashr i32 %15, 6
%17 = zext i32 %16 to i64
%18 = sext i32 %16 to i64
%19 = mul i64 %18, 8
%20 = add i64 %19, %6
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = urem i32 %.reload, 64
%24 = icmp eq i32 %23, 0
%25 = zext i32 %23 to i64
%26 = shl i64 1, %25
%storemerge = select i1 %24, i64 1, i64 %26
store i64 %storemerge, i64* %rdi, align 8
%27 = or i64 %22, %storemerge
%sext6 = mul i64 %17, 4294967296
%28 = ashr exact i64 %sext6, 29
%29 = add i64 %28, %6
%30 = inttoptr i64 %29 to i64*
store i64 %27, i64* %30, align 8
%31 = call i64 @FUNC(i64* nonnull %sv_1, i64 %3)
%32 = add i32 %.reload, 1
%33 = call i32 @select(i32 %32, %_TYPEDEF_fd_set* nonnull %7, %_TYPEDEF_fd_set* null, %_TYPEDEF_fd_set* null, %timeval* nonnull %8)
%34 = icmp slt i32 %33, 1
br i1 %34, label LBL_5, label LBL_4
LBL_4:
%35 = call i32 @read(i32 %.reload, i64* nonnull %sv_0, i32 1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%36 = icmp eq i32 %33, 0
%37 = icmp eq i1 %36, false
store i64 110, i64* %rax.0.reg2mem
br i1 %37, label LBL_6, label LBL_9
LBL_6:
%38 = call i64 @FUNC()
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_8, label LBL_6.LBL_1_crit_edge
LBL_7:
%.pre = load i32, i32* %4, align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_1
LBL_8:
%41 = call i32* @__errno_location()
%42 = load i32, i32* %41, align 4
%43 = trunc i64 %arg5 to i32
%44 = ptrtoint i8* %arg4 to i64
%45 = ptrtoint i8* %arg3 to i64
%46 = zext i32 %42 to i64
%47 = call i64 @FUNC(i64 1, i64 %45, i64 %44, i32 %43, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %46)
unreachable
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload, { 4, 0, 5, 3, 2, 1 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4294967296, { 0, 2, 1 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i64 1, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | ff_find_unused_picture_15316 | ff_find_unused_picture | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge17.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv15.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
store i64 0, i64* %indvars.iv15.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%3 = mul i64 %indvars.iv15.reload, 16
%4 = add i64 %3, %0
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = and i64 %indvars.iv15.reload, 4294967295
store i64 %14, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%indvars.iv.next16 = add nuw nsw i64 %indvars.iv15.reload, 1
%15 = icmp ult i64 %indvars.iv.next16, 10
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
br i1 %15, label LBL_1, label LBL_12
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = mul i64 %indvars.iv.reload, 16
%17 = add i64 %16, %0
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_6
LBL_6:
%22 = add i64 %17, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = and i64 %indvars.iv.reload, 4294967295
store i64 %26, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%27 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 0, i32* %storemerge17.reg2mem
br i1 %27, label LBL_5, label LBL_9
LBL_9:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%28 = sext i32 %storemerge17.reload to i64
%29 = mul i64 %28, 16
%30 = add i64 %29, %0
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_11, label LBL_10
LBL_10:
%35 = zext i32 %storemerge17.reload to i64
store i64 %35, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%36 = add nuw i32 %storemerge17.reload, 1
%37 = icmp ult i32 %36, 10
store i32 %36, i32* %storemerge17.reg2mem
br i1 %37, label LBL_9, label LBL_12
LBL_12:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_1, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), 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 %storemerge17.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv15.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge17.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 10, { 1, 0 }
uselistorder label LBL_13, { 1, 0, 2, 3 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | pmd_none_or_trans_huge_or_clear_bad_11024 | pmd_none_or_trans_huge_or_clear_bad | 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()
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = and i64 %5, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %0)
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, 2, 1, 4 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_4, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | isp1362_sw_reset_18803 | isp1362_sw_reset | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = ptrtoint i32* %arg1 to i64
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %1, i64 %2)
%4 = call i64 @FUNC(i64 %1, i64 1, i64 4660)
%5 = call i64 @FUNC(i64 %1, i64 2, i64 1)
store i32 20, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 1)
%7 = call i64 @FUNC(i64 %1, i64 2)
%8 = urem i64 %7, 2
%9 = icmp eq i64 %8, 0
store i32 %10, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%10 = add nsw i32 %sv_0.0.reload, -1
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_1, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0))
br label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %1, i64 %2)
ret i64 %14
uselistorder i32 %10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | add_query_tests_613 | add_query_tests | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.lcssa.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%rcx.12.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i64* %arg1, null
%5 = icmp eq i1 %4, false
store i64 %3, i64* %storemerge14.reg2mem
store i64 %3, i64* %storemerge1.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_8
LBL_1:
%rcx.12.reload = load i64, i64* %rcx.12.reg2mem
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%6 = inttoptr i64 %storemerge14.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
store i64 %rcx.12.reload, i64* %rcx.0.reg2mem
br i1 %11, label LBL_7, label LBL_2
LBL_2:
%12 = add i64 %7, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 %rcx.12.reload, i64* %rcx.0.reg2mem
br i1 %18, label LBL_7, label LBL_3
LBL_3:
%19 = add i64 %7, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %3, i64 %21)
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %rcx.12.reload, i64* %rcx.0.reg2mem
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%27 = add i64 %7, 24
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %3, i64 %29)
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 2
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = add i64 %30, 16
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
store i64 %rcx.12.reload, i64* %rcx.0.reg2mem
br i1 %38, label LBL_7, label LBL_6
LBL_6:
%39 = load i64, i64* %13, align 8
%40 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %29, i64 %rcx.12.reload, i64 %2, i64 %1)
%41 = load i64, i64* %13, align 8
%42 = call i64 @FUNC(i64 %40, i64 %41, i64 4198794)
%43 = call i64 @FUNC(i64 %40)
store i64 %41, i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%44 = add i64 %storemerge14.reload, 8
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = icmp eq i64 %46, 0
%48 = icmp eq i1 %47, false
store i64 %46, i64* %storemerge14.reg2mem
store i64 %rcx.0.reload, i64* %rcx.12.reg2mem
store i64 %46, i64* %storemerge1.lcssa.reg2mem
br i1 %48, label LBL_1, label LBL_8
LBL_8:
%storemerge1.lcssa.reload = load i64, i64* %storemerge1.lcssa.reg2mem
ret i64 %storemerge1.lcssa.reload
uselistorder i64 %rcx.12.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %3, { 2, 3, 0, 1 }
uselistorder i64* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.12.reg2mem, { 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @qmp_schema_lookup, { 1, 0 }
uselistorder i1 false, { 5, 1, 2, 3, 4, 0 }
uselistorder label LBL_7, { 4, 0, 1, 2, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | lance_init_15845 | lance_init | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 24)
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = and i64 %arg3, 4294967295
%3 = inttoptr i64 %0 to i32*
%4 = and i64 %arg4, 4294967295
%5 = trunc i64 %arg2 to i32
store i32 %5, i32* %3, align 4
%6 = call i64 @FUNC(i64 0, i64 4198941, i64 4198952, i64 %0)
%7 = trunc i64 %6 to i32
%8 = call i64 @FUNC(i64 %2, i64 4, i32 %7)
%9 = call i64 @FUNC(i64 0, i64 4198963, i64 4198974, i64 %0)
%10 = trunc i64 %9 to i32
%11 = call i64 @FUNC(i64 %4, i64 16, i32 %10)
%12 = add i64 %0, 4
%13 = inttoptr i64 %12 to i64*
%14 = bitcast i32* %arg1 to i64*
%15 = call i64* @memcpy(i64* %13, i64* %14, i32 6)
%16 = call i64 @FUNC(i64 %0)
%17 = ptrtoint i32* %arg1 to i64
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21, i64 4198920, i64 %0)
%23 = add i64 %0, 16
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = add i64 %0, 9
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = add i64 %0, 8
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = add i64 %0, 7
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = add i64 %0, 6
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = add i64 %0, 5
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = inttoptr i64 %12 to i8*
%41 = load i8, i8* %40, align 1
%42 = zext i8 %27 to i32
%43 = zext i8 %30 to i32
%44 = zext i8 %33 to i32
%45 = zext i8 %41 to i32
%46 = inttoptr i64 %22 to i8*
%47 = zext i8 %39 to i32
%48 = zext i8 %36 to i32
%49 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %46, i32 64, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i32 %45, i32 %47, i32 %48, i32 %44, i32 %43, i32 %42)
%50 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 1, i64 4198927, i64 4198934, i64 %0)
%51 = call i64 @FUNC(i64 4198815, i64 %0)
store i64 %51, 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 16, { 1, 0, 2 }
uselistorder i64 (i64, i64, i32)* @cpu_register_physical_memory, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @cpu_register_io_memory, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
reposvul_c_test | f2fs_dio_end_io_73 | f2fs_dio_end_io | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 24
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %arg1, i64 %5)
%7 = add i64 %arg1, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %arg1 to i64*
store i64 %9, i64* %10, align 8
%11 = add i64 %arg1, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
store i64 %13, i64* %8, align 8
%14 = call i64 @FUNC(i64 %arg1)
%15 = call i64 @FUNC(i64 %arg1)
ret i64 %15
} | 0 |
BinRealVul | md_rdev_clear_8901 | md_rdev_clear | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
store i32 0, i32* %4, align 4
store i64 0, i64* %arg1, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
br label LBL_2
LBL_2:
%9 = add i64 %0, 32
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %11)
store i64 0, i64* %10, align 8
br label LBL_4
LBL_4:
%14 = add i64 %0, 40
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %15, align 8
ret i64 %0
uselistorder i64 %0, { 5, 4, 6, 0, 1, 2, 3 }
uselistorder i64 (i64)* @put_page, { 1, 0 }
} | 0 |
BinRealVul | tipc_net_start_12647 | tipc_net_start | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%5 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%6 = icmp eq i32 %5, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = call i64 @FUNC()
%8 = call i64 @FUNC()
%9 = trunc i64 %arg1 to i32
store i32 %9, i32* @gv_1, align 4
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
%10 = call i64 @FUNC()
%11 = call i64 @FUNC()
%12 = call i64 @FUNC()
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_2
LBL_2:
%16 = call i64 @FUNC()
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 %16, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = call i64 @FUNC()
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC()
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%27 = and i64 %sv_0.0.reload, 4294967295
store i64 %27, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%28 = call i64 @FUNC(i64 4198938, i64 0)
%29 = call i64 @FUNC(i64 4198945, i64 0)
%30 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 %3, i64 %4, i64 %2, i64 %1)
%31 = load i32, i32* @gv_3, align 4
%32 = load i32, i32* @gv_1, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64* nonnull %sv_1, i64 %33)
%35 = zext i32 %31 to i64
%36 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_4, i64 0, i64 0), i64 %34, i64 %35, i64 %4, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @info, { 1, 0 }
uselistorder i64 (i64, i64)* @tipc_k_signal, { 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
} | 1 |
BinRealVul | ntlm_read_message_fields_6762 | ntlm_read_message_fields | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp ult i64 %3, 8
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = urem i64 %1, 65536
%7 = call i64 @FUNC(i64 %2, i64 %6)
%8 = add i64 %5, 2
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = zext i16 %10 to i64
%12 = call i64 @FUNC(i64 %2, i64 %11)
%13 = add i64 %5, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %2, i64 %16)
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i64 (i64, i64)* @Stream_Read_UINT16, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfs4_init_deviceid_node_18106 | nfs4_init_deviceid_node | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
store i64 %1, i64* %5, align 8
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
store i64 %0, i64* %7, align 8
%8 = add i64 %2, 24
%9 = call i64 @FUNC(i64 %8, i64 1)
ret i64 %9
} | 1 |
BinRealVul | btrfs_parse_early_options_4530 | btrfs_parse_early_options | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64* %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%rcx.0.be.reg2mem = alloca i64
%sv_0.0.be.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%rcx.06.reg2mem = alloca i64
%.reg2mem = alloca i8*
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = icmp eq i8* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_21
LBL_1:
%2 = ptrtoint i8* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0)
store i64 %3, i64* %sv_3, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_21
LBL_2:
%6 = bitcast i64* %sv_3 to i8**
%7 = call i8* @strsep(i8** nonnull %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
store i32 0, i32* %sv_0.1.reg2mem
br i1 %9, label LBL_3, label LBL_20
LBL_3:
%10 = ptrtoint i64* %arg7 to i64
%11 = trunc i64 %arg2 to i32
%12 = ptrtoint i64* %arg4 to i64
store i8* %7, i8** %.reg2mem
store i64 %12, i64* %rcx.06.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br label LBL_4
LBL_4:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%rcx.06.reload = load i64, i64* %rcx.06.reg2mem
%.reload = load i8*, i8** %.reg2mem
%13 = load i8, i8* %.reload, align 1
%14 = icmp eq i8 %13, 0
%15 = icmp eq i1 %14, false
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br i1 %15, label LBL_5, label LBL_9
LBL_5:
%16 = ptrtoint i8* %.reload to i64
%17 = call i64 @FUNC(i64 %16, i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @gv_1, i64 0, i64 0), i64* nonnull %sv_2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 3
br i1 %19, label LBL_18, label LBL_6
LBL_6:
%20 = icmp sgt i32 %18, 3
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br i1 %20, label LBL_9, label LBL_7
LBL_7:
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
switch i32 %18, label LBL_9 [
i32 2, label LBL_14
i32 0, label LBL_8
i32 1, label LBL_10
]
LBL_8:
%21 = call i64 @FUNC(i64 %rcx.06.reload)
%22 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %22, i64* %arg4, align 8
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br label LBL_9
LBL_9:
%rcx.0.be.reload = load i64, i64* %rcx.0.be.reg2mem
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%23 = call i8* @strsep(i8** nonnull %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%24 = icmp eq i8* %23, null
%25 = icmp eq i1 %24, false
store i8* %23, i8** %.reg2mem
store i64 %rcx.0.be.reload, i64* %rcx.06.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.04.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.1.reg2mem
br i1 %25, label LBL_4, label LBL_20
LBL_10:
store i32 0, i32* %sv_1, align 4
%26 = call i64 @FUNC(i64* nonnull %sv_2, i32* nonnull %sv_1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i32 %27, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br i1 %29, label LBL_9, label LBL_11
LBL_11:
%30 = load i32, i32* %sv_1, align 4
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_13, label LBL_12
LBL_12:
store i64 0, i64* %arg5, align 8
store i32 %27, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br label LBL_9
LBL_13:
%33 = sext i32 %30 to i64
store i64 %33, i64* %arg5, align 8
store i32 %27, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br label LBL_9
LBL_14:
store i32 0, i32* %sv_1, align 4
%34 = call i64 @FUNC(i64* nonnull %sv_2, i32* nonnull %sv_1)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i32 %35, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br i1 %37, label LBL_9, label LBL_15
LBL_15:
%38 = load i32, i32* %sv_1, align 4
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_17, label LBL_16
LBL_16:
store i64 0, i64* %arg6, align 8
store i32 %35, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br label LBL_9
LBL_17:
%41 = sext i32 %38 to i64
store i64 %41, i64* %arg6, align 8
store i32 %35, i32* %sv_0.0.be.reg2mem
store i64 %rcx.06.reload, i64* %rcx.0.be.reg2mem
br label LBL_9
LBL_18:
%42 = call i64 @FUNC(i64* nonnull %sv_2)
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %44, label LBL_19, label LBL_20
LBL_19:
%45 = call i64 @FUNC(i64 %42, i32 %11, i64 %arg3, i64 %10)
%46 = trunc i64 %45 to i32
%47 = call i64 @FUNC(i64 %42)
%48 = icmp eq i32 %46, 0
%49 = icmp eq i1 %48, false
store i32 %46, i32* %sv_0.0.be.reg2mem
store i64 %10, i64* %rcx.0.be.reg2mem
store i32 %46, i32* %sv_0.1.reg2mem
br i1 %49, label LBL_20, label LBL_9
LBL_20:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%50 = call i64 @FUNC(i64 %3)
%51 = zext i32 %sv_0.1.reload to i64
store i64 %51, 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 %42, { 1, 0, 2 }
uselistorder i32 %35, { 1, 0, 2, 3 }
uselistorder i32 %27, { 1, 0, 2, 3 }
uselistorder i64 %rcx.06.reload, { 8, 7, 9, 4, 3, 5, 6, 10, 1, 0, 2 }
uselistorder i32 %sv_0.04.reload, { 3, 1, 0, 2 }
uselistorder i8** %6, { 1, 0 }
uselistorder i32* %sv_1, { 2, 0, 3, 4, 1, 5 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.06.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 11, 9, 8, 10, 5, 4, 6, 0, 7, 2, 1, 3 }
uselistorder i64* %rcx.0.be.reg2mem, { 11, 9, 8, 10, 5, 4, 6, 0, 7, 2, 1, 3 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64*, i32*)* @match_int, { 1, 0 }
uselistorder i64 (i64*)* @match_strdup, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 0, { 13, 14, 15, 11, 16, 17, 12, 2, 1, 0, 3, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i8* (i8**, i8*)* @strsep, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 8, 7, 0, 9, 10 }
uselistorder label LBL_21, { 2, 0, 1 }
uselistorder label LBL_20, { 1, 0, 2, 3 }
uselistorder label LBL_9, { 10, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | scsi_cmd_xfer_mode_15386 | scsi_cmd_xfer_mode | 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_2, label LBL_1
LBL_1:
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
br label LBL_14
LBL_2:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp ugt i8 %10, -11
br i1 %11, label LBL_13, label LBL_3
LBL_3:
%12 = icmp ugt i8 %10, -17
br i1 %12, label LBL_12, label LBL_4
LBL_4:
%13 = icmp ugt i8 %10, -76
br i1 %13, label LBL_13, label LBL_5
LBL_5:
%14 = icmp ugt i8 %10, -119
br i1 %14, label LBL_8, label LBL_6
LBL_6:
%15 = icmp ugt i8 %10, 29
br i1 %15, label LBL_11, label LBL_7
LBL_7:
%16 = icmp ugt i8 %10, 3
br i1 %16, label LBL_10, label LBL_13
LBL_8:
%17 = add i8 %10, 54
%18 = urem i8 %17, 64
%19 = zext i8 %18 to i64
%20 = lshr i64 8044477939729, %19
%21 = urem i64 %20, 2
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_12, label LBL_13
LBL_9:
%26 = add i8 %10, 22
%27 = urem i8 %26, 64
%28 = zext i8 %27 to i64
%29 = lshr i64 4793887942410257, %28
%30 = urem i64 %29, 2
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_12, label LBL_13
LBL_10:
%35 = urem i8 %10, 64
%36 = icmp eq i8 %35, 0
br i1 %36, label LBL_13, label %37
LBL_11:
%.off = add i8 %10, -42
%40 = icmp ult i8 %.off, 53
br i1 %40, label LBL_9, label LBL_13
LBL_12:
%41 = add i64 %2, 4
%42 = inttoptr i64 %41 to i32*
store i32 1, i32* %42, align 4
br label LBL_14
LBL_13:
%43 = add i64 %2, 4
%44 = inttoptr i64 %43 to i32*
store i32 2, i32* %44, align 4
br label LBL_14
LBL_14:
ret i64 %2
uselistorder i8 %10, { 1, 0, 3, 2, 4, 5, 6, 7, 8, 9 }
uselistorder i64 %2, { 0, 2, 1, 3, 4 }
uselistorder i1 false, { 0, 1, 2, 5, 4, 6, 7, 3, 8, 9 }
uselistorder label LBL_13, { 1, 2, 0, 3, 4, 5, 6, 7 }
uselistorder label LBL_12, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | tcx_initfn_15980 | tcx_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 1024, i64 4198835)
%2 = call i64 @FUNC(i64 %0, i64 1)
%3 = call i64 @FUNC(i64 %0, i64 %0)
%4 = add i64 %0, 8
%5 = call i64 @FUNC(i64 %4, i64 %0, i64* nonnull @gv_1, i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 16)
%6 = call i64 @FUNC(i64 %0, i64 %4)
%7 = add i64 %0, 16
%8 = call i64 @FUNC(i64 %7, i64 %0, i64* nonnull @gv_3, i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0), i64 16)
%9 = call i64 @FUNC(i64 %0, i64 %7)
%10 = add i64 %0, 24
%11 = call i64 @FUNC(i64 %10, i64 %0, i64* nonnull @gv_5, i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i64 16)
%12 = call i64 @FUNC(i64 %0, i64 %10)
%13 = add i64 %0, 32
%14 = call i64 @FUNC(i64 %13, i64 %0, i64* nonnull @gv_7, i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_8, i64 0, i64 0), i64 16)
%15 = call i64 @FUNC(i64 %0, i64 %13)
%16 = add i64 %0, 40
%17 = call i64 @FUNC(i64 %16, i64 %0, i64* nonnull @gv_9, i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_10, i64 0, i64 0), i64 16)
%18 = call i64 @FUNC(i64 %0, i64 %16)
%19 = add i64 %0, 48
%20 = call i64 @FUNC(i64 %19, i64 %0, i64* nonnull @gv_11, i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_12, i64 0, i64 0), i64 16)
%21 = call i64 @FUNC(i64 %0, i64 %19)
%22 = add i64 %0, 56
%23 = call i64 @FUNC(i64 %22, i64 %0, i64* nonnull @gv_13, i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_14, i64 0, i64 0), i64 16)
%24 = call i64 @FUNC(i64 %0, i64 %22)
%25 = add i64 %0, 64
%26 = call i64 @FUNC(i64 %25, i64 %0, i64* nonnull @gv_9, i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_15, i64 0, i64 0), i64 16)
%27 = call i64 @FUNC(i64 %0, i64 %25)
%28 = add i64 %0, 72
%29 = call i64 @FUNC(i64 %28, i64 %0, i64* nonnull @gv_9, i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_16, i64 0, i64 0), i64 16)
%30 = call i64 @FUNC(i64 %0, i64 %28)
ret i64 %30
uselistorder i64 %0, { 0, 2, 1, 3, 4, 6, 5, 7, 8, 10, 9, 11, 12, 14, 13, 15, 16, 18, 17, 19, 20, 22, 21, 23, 24, 26, 25, 27, 28, 30, 29, 31, 32, 34, 33, 35, 37, 36, 38, 39 }
uselistorder i64 (i64, i64, i64*, i64, i8*, i64)* @memory_region_init_io, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 16, { 0, 1, 2, 3, 4, 5, 6, 7, 9, 8 }
uselistorder i64 (i64, i64)* @sysbus_init_mmio, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | init_once_13738 | init_once | 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)
%3 = add i64 %arg1, 20
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %arg1, 24
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %arg1, 28
%8 = call i64 @FUNC(i64 %7)
ret i64 %8
uselistorder i64 (i64)* @init_rwsem, { 2, 1, 0 }
uselistorder i64 %arg1, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | bm_dithrect_6726 | bm_dithrect | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%.reg2mem32 = alloca i32
%.reg2mem30 = alloca i32
%.reg2mem28 = alloca i32
%storemerge1214.reg2mem = alloca i32
%.reg2mem26 = alloca i64
%.reg2mem24 = alloca i32
%storemerge16.reg2mem = alloca i32
%.reg2mem22 = alloca i64
%.reg2mem20 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 21, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
%sext5 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext5, 32
%sext7 = mul i64 %arg5, 4294967296
%4 = ashr exact i64 %sext7, 32
%5 = trunc i64 %4 to i32
%6 = trunc i64 %3 to i32
%7 = icmp slt i32 %5, %6
%sv_0.0 = select i1 %7, i64 %4, i64 %3
%sv_1.0 = select i1 %7, i64 %3, i64 %4
%8 = add i64 %2, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i64 %sv_0.0 to i32
%12 = sub i32 %11, %10
%13 = xor i32 %10, %11
%14 = xor i32 %12, %11
%15 = and i32 %14, %13
%16 = icmp slt i32 %15, 0
%17 = icmp slt i32 %12, 0
%18 = icmp eq i1 %17, %16
%19 = select i1 %18, i32 %11, i32 %10
%20 = add i64 %2, 20
%21 = inttoptr i64 %20 to i32*
%22 = trunc i64 %sv_1.0 to i32
%23 = add i32 %22, 1
%24 = load i32, i32* %21, align 4
%25 = sub i32 %24, %23
%26 = xor i32 %24, %23
%27 = xor i32 %25, %24
%28 = and i32 %27, %26
%29 = icmp slt i32 %28, 0
%30 = icmp eq i32 %25, 0
%31 = icmp slt i32 %25, 0
%32 = icmp eq i1 %31, %29
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
%35 = select i1 %34, i32 %23, i32 %24
%36 = zext i32 %35 to i64
%37 = sext i32 %19 to i64
%38 = icmp slt i64 %37, %36
store i64 %36, i64* %.lcssa.reg2mem
br i1 %38, label LBL_3, label LBL_13
LBL_3:
%sext = mul i64 %arg2, 4294967296
%39 = ashr exact i64 %sext, 32
%sext6 = mul i64 %arg4, 4294967296
%40 = ashr exact i64 %sext6, 32
%41 = trunc i64 %40 to i32
%42 = trunc i64 %39 to i32
%43 = icmp slt i32 %41, %42
%sv_2.0 = select i1 %43, i64 %40, i64 %39
%sv_3.0 = select i1 %43, i64 %39, i64 %40
%44 = add i64 %2, 8
%45 = inttoptr i64 %44 to i32*
%46 = trunc i64 %sv_2.0 to i32
%47 = add i64 %2, 16
%48 = inttoptr i64 %47 to i32*
%49 = trunc i64 %sv_3.0 to i32
%50 = add i32 %49, 1
%51 = add i64 %2, 4
%52 = inttoptr i64 %51 to i32*
%53 = bitcast i64* %rdi to i32*
%54 = add i64 %2, 32
%55 = inttoptr i64 %54 to i64*
%56 = add i64 %2, 24
%57 = inttoptr i64 %56 to i32*
%.pre = load i32, i32* %48, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem20
store i64 %37, i64* %.reg2mem22
store i32 %19, i32* %storemerge16.reg2mem
br label LBL_4
LBL_4:
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%.reload23 = load i64, i64* %.reg2mem22
%.reload21 = load i32, i32* %.reg2mem20
%.reload = load i32, i32* %.reg2mem
%58 = load i32, i32* %45, align 4
%59 = sub i32 %46, %58
%60 = xor i32 %58, %46
%61 = xor i32 %59, %46
%62 = and i32 %61, %60
%63 = icmp slt i32 %62, 0
%64 = icmp slt i32 %59, 0
%65 = icmp eq i1 %64, %63
%66 = select i1 %65, i32 %46, i32 %58
%67 = icmp slt i32 %storemerge16.reload, 0
%68 = sub i32 %.reload21, %50
%69 = xor i32 %.reload21, %50
%70 = xor i32 %68, %.reload21
%71 = and i32 %70, %69
%72 = icmp slt i32 %71, 0
%73 = icmp eq i32 %68, 0
%74 = icmp slt i32 %68, 0
%75 = icmp eq i1 %74, %72
%76 = icmp eq i1 %73, false
%77 = icmp eq i1 %75, %76
%78 = select i1 %77, i32 %50, i32 %.reload21
%79 = zext i32 %78 to i64
%80 = sext i32 %66 to i64
%81 = icmp slt i64 %80, %79
store i32 %.reload, i32* %.reg2mem24
store i64 %80, i64* %.reg2mem26
store i32 %66, i32* %storemerge1214.reg2mem
store i32 %.reload, i32* %.reg2mem30
store i32 %.reload21, i32* %.reg2mem32
br i1 %81, label LBL_5, label LBL_12
LBL_5:
%storemerge1214.reload = load i32, i32* %storemerge1214.reg2mem
%.reload25 = load i32, i32* %.reg2mem24
%82 = add i32 %storemerge1214.reload, %storemerge16.reload
%83 = urem i32 %82, 2
%84 = icmp eq i32 %83, 0
%85 = icmp eq i1 %84, false
store i32 %.reload25, i32* %.reg2mem28
br i1 %85, label LBL_11, label LBL_6
LBL_6:
br i1 %67, label LBL_9, label LBL_7
LBL_7:
%86 = load i32, i32* %52, align 4
%87 = zext i32 %86 to i64
%88 = icmp sge i64 %.reload23, %87
%89 = icmp slt i32 %storemerge1214.reload, 0
%or.cond = or i1 %89, %88
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%.reload27 = load i64, i64* %.reg2mem26
%90 = load i32, i32* %53, align 8
%91 = zext i32 %90 to i64
%92 = icmp slt i64 %.reload27, %91
br i1 %92, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_10
LBL_10:
%93 = load i64, i64* %55, align 8
%94 = load i32, i32* %53, align 8
%95 = mul i32 %94, %storemerge16.reload
%96 = add i32 %95, %storemerge1214.reload
%97 = sext i32 %96 to i64
%98 = mul i64 %97, 4
%99 = add i64 %98, %93
%100 = load i32, i32* %57, align 4
%101 = inttoptr i64 %99 to i32*
store i32 %100, i32* %101, align 4
%.pre19 = load i32, i32* %48, align 4
store i32 %.pre19, i32* %.reg2mem28
br label LBL_11
LBL_11:
%.reload29 = load i32, i32* %.reg2mem28
%102 = add i32 %storemerge1214.reload, 1
%103 = sub i32 %.reload29, %50
%104 = xor i32 %.reload29, %50
%105 = xor i32 %103, %.reload29
%106 = and i32 %105, %104
%107 = icmp slt i32 %106, 0
%108 = icmp eq i32 %103, 0
%109 = icmp slt i32 %103, 0
%110 = icmp eq i1 %109, %107
%111 = icmp eq i1 %108, false
%112 = icmp eq i1 %110, %111
%113 = select i1 %112, i32 %50, i32 %.reload29
%114 = zext i32 %113 to i64
%115 = sext i32 %102 to i64
%116 = icmp slt i64 %115, %114
store i32 %.reload29, i32* %.reg2mem24
store i64 %115, i64* %.reg2mem26
store i32 %102, i32* %storemerge1214.reg2mem
store i32 %.reload29, i32* %.reg2mem30
store i32 %.reload29, i32* %.reg2mem32
br i1 %116, label LBL_5, label LBL_12
LBL_12:
%.reload33 = load i32, i32* %.reg2mem32
%.reload31 = load i32, i32* %.reg2mem30
%117 = add i32 %storemerge16.reload, 1
%118 = load i32, i32* %21, align 4
%119 = sub i32 %118, %23
%120 = xor i32 %118, %23
%121 = xor i32 %119, %118
%122 = and i32 %121, %120
%123 = icmp slt i32 %122, 0
%124 = icmp eq i32 %119, 0
%125 = icmp slt i32 %119, 0
%126 = icmp eq i1 %125, %123
%127 = icmp eq i1 %124, false
%128 = icmp eq i1 %126, %127
%129 = select i1 %128, i32 %23, i32 %118
%130 = zext i32 %129 to i64
%131 = sext i32 %117 to i64
%132 = icmp slt i64 %131, %130
store i32 %.reload31, i32* %.reg2mem
store i32 %.reload33, i32* %.reg2mem20
store i64 %131, i64* %.reg2mem22
store i32 %117, i32* %storemerge16.reg2mem
store i64 %130, i64* %.lcssa.reg2mem
br i1 %132, label LBL_4, label LBL_13
LBL_13:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %119, { 1, 2, 0 }
uselistorder i32 %118, { 2, 0, 1, 3 }
uselistorder i32 %103, { 1, 2, 0 }
uselistorder i32 %.reload29, { 0, 1, 6, 4, 2, 3, 5 }
uselistorder i32 %storemerge1214.reload, { 3, 0, 2, 1 }
uselistorder i32 %59, { 1, 0 }
uselistorder i32 %58, { 1, 0, 2 }
uselistorder i32 %storemerge16.reload, { 3, 0, 1, 2 }
uselistorder i32 %50, { 5, 3, 4, 0, 1, 2 }
uselistorder i32 %46, { 2, 0, 1, 3 }
uselistorder i64 %40, { 1, 0, 2 }
uselistorder i32 %23, { 5, 3, 4, 0, 1, 2 }
uselistorder i32* %21, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %11, { 2, 0, 1, 3 }
uselistorder i32 %10, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem20, { 1, 0, 2 }
uselistorder i64* %.reg2mem22, { 1, 0, 2 }
uselistorder i32* %storemerge16.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem24, { 2, 0, 1 }
uselistorder i64* %.reg2mem26, { 2, 0, 1 }
uselistorder i32* %storemerge1214.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 14, 15, 16, 9, 10, 11, 6, 8, 3, 4, 5, 7, 12, 13, 0, 1, 2, 17, 18 }
uselistorder i64 32, { 4, 1, 3, 0, 2 }
uselistorder i64 4294967296, { 1, 3, 0, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | php_array_element_dump_10576 | php_array_element_dump | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sext = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = icmp eq i64* %arg3, null
%5 = icmp eq i1 %4, false
%6 = add nsw i64 %3, 1
%7 = and i64 %6, 4294967295
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 32, i64 %arg2, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %arg3 to i64
%10 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 32, i64 %arg4, i64 %2, i64 %1)
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13, i64 %13)
%15 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64 %13, i64 %13, i64 %arg4, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%16 = add nsw i64 %3, 2
%17 = ptrtoint i32* %arg1 to i64
%18 = and i64 %16, 4294967295
%19 = call i64 @FUNC(i64 %17, i64 %18)
ret i64 %19
uselistorder i64 %13, { 3, 2, 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @php_printf, { 2, 1, 0 }
uselistorder i64 4294967295, { 2, 1, 3, 0, 4, 5 }
uselistorder i64 32, { 2, 3, 0, 1 }
uselistorder i64 %arg4, { 1, 2, 0 }
uselistorder i64* %arg3, { 1, 0 }
} | 0 |
reposvul_c_test | fcn_append_basic_block_95 | fcn_append_basic_block | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg3, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %4, i64 %1)
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i64*
store i64 %1, i64* %7, align 8
%8 = add i64 %1, 16
%9 = inttoptr i64 %8 to i64*
store i64 %1, i64* %9, align 8
store i64 %1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 0, 4, 1, 3, 5, 2, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tcp_start_incoming_migration_15152 | tcp_start_incoming_migration | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64* nonnull %sv_1, i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp slt i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = inttoptr i64 %arg1 to i8*
%6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %4, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_1, i64 0, i64 0), i8* %5)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%7 = call i32 @socket(i32 2, i32 1, i32 0)
%8 = icmp eq i32 %7, -1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC()
%11 = sub i64 0, %10
%12 = and i64 %11, 4294967295
store i64 %12, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
store i32 1, i32* %sv_0, align 4
%13 = bitcast i32* %sv_0 to i64*
%14 = call i32 @setsockopt(i32 %7, i32 1, i32 2, i64* nonnull %13, i32 4)
%15 = bitcast i64* %sv_1 to %sockaddr*
%16 = call i32 @bind(i32 %7, %sockaddr* nonnull %15, i32 16)
%17 = icmp eq i32 %16, -1
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%18 = call i32 @listen(i32 %7, i32 1)
%19 = icmp eq i32 %18, -1
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = sext i32 %7 to i64
%21 = zext i32 %7 to i64
%22 = call i64 @FUNC(i64 %21, i64 0, i64 4199047, i64 0, i64 %20)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%23 = call i32 @close(i32 %7)
%24 = call i64 @FUNC()
%25 = sub i64 0, %24
%26 = and i64 %25, 4294967295
store i64 %26, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %7, { 3, 1, 0, 2, 5, 4, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 4294967295, { 3, 4, 2, 0, 1 }
uselistorder i64 ()* @socket_error, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | net_slirp_hostfwd_remove_14154 | net_slirp_hostfwd_remove | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i8, align 1
%sv_3 = alloca i32, align 4
store i32 0, i32* %sv_3, align 4
store i8 0, i8* %sv_2, align 1
%5 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%6 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%7 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%8 = icmp eq i64 %6, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %4, i64 %5, i64 %6)
store i64 %9, i64* %sv_0.0.reg2mem
store i64 %7, i64* %rax.0.reg2mem
store i64 %5, i64* %rcx.0.reg2mem
br label LBL_3
LBL_2:
%10 = call i64 @FUNC(i64 %4, i64 0, i64 0)
store i64 %10, i64* %sv_0.0.reg2mem
store i64 %5, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = icmp eq i64 %sv_0.0.reload, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %11, label LBL_14, label LBL_4
LBL_4:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%12 = icmp eq i64 %rax.0.reload, 0
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %6, i64* %rdx.1.reg2mem
br i1 %12, label LBL_13, label LBL_5
LBL_5:
%storemerge6 = inttoptr i64 %rax.0.reload to i8*
%13 = load i8, i8* %storemerge6, align 1
%14 = icmp eq i8 %13, 0
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %6, i64* %rdx.1.reg2mem
br i1 %14, label LBL_13, label LBL_6
LBL_6:
%15 = bitcast i8** %sv_1 to i64*
store i64 %rax.0.reload, i64* %15, align 8
%16 = ptrtoint i8** %sv_1 to i64
%17 = bitcast i8* %sv_2 to i64*
%18 = call i64 @FUNC(i64* nonnull %17, i64 256, i64* nonnull %15, i64 58)
%19 = call i32 @strcmp(i8* nonnull %sv_2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
store i32 0, i32* %storemerge5.reg2mem
br i1 %20, label LBL_9, label LBL_7
LBL_7:
%21 = load i8, i8* %sv_2, align 1
%22 = icmp eq i8 %21, 0
%23 = icmp eq i1 %22, false
store i32 0, i32* %storemerge5.reg2mem
br i1 %23, label LBL_8, label LBL_9
LBL_8:
%24 = call i32 @strcmp(i8* nonnull %sv_2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i32 1, i32* %storemerge5.reg2mem
store i64 58, i64* %rcx.1.reg2mem
store i64 %16, i64* %rdx.1.reg2mem
br i1 %26, label LBL_13, label LBL_9
LBL_9:
%27 = call i64 @FUNC(i64* nonnull %17, i64 256, i64* nonnull %15, i64 58)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
store i64 58, i64* %rcx.1.reg2mem
store i64 %16, i64* %rdx.1.reg2mem
br i1 %29, label LBL_13, label LBL_10
LBL_10:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%30 = load i8, i8* %sv_2, align 1
%31 = icmp eq i8 %30, 0
br i1 %31, label LBL_12, label LBL_11
LBL_11:
%32 = ptrtoint i32* %sv_3 to i64
%33 = bitcast i32* %sv_3 to %in_addr*
%34 = call i32 @inet_aton(i8* nonnull %sv_2, %in_addr* nonnull %33)
%35 = icmp eq i32 %34, 0
store i64 58, i64* %rcx.1.reg2mem
store i64 %32, i64* %rdx.1.reg2mem
br i1 %35, label LBL_13, label LBL_12
LBL_12:
%36 = load i8*, i8** %sv_1, align 8
%37 = call i32 @atoi(i8* %36)
%38 = load i64, i64* @gv_5, align 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = load i32, i32* %sv_3, align 4
%42 = call i64 @FUNC(i64 %40, i32 %storemerge5.reload, i32 %41, i32 %37)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = select i1 %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_7, i64 0, i64 0)
%46 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_8, i64 0, i64 0), i64 %rax.0.reload, i8* %45, i64 %2, i64 %1)
store i64 %46, i64* %rax.1.reg2mem
br label LBL_14
LBL_13:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%47 = inttoptr i64 %rcx.1.reload to i8*
%48 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_9, i64 0, i64 0), i64 %rdx.1.reload, i8* %47, i64 %2, i64 %1)
store i64 %48, i64* %rax.1.reg2mem
br label LBL_14
LBL_14:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %rax.0.reload, { 3, 4, 2, 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i32* %sv_3, { 1, 0, 2, 3 }
uselistorder i8* %sv_2, { 6, 2, 5, 1, 4, 3, 0 }
uselistorder i8** %sv_1, { 2, 1, 0 }
uselistorder i64 %4, { 2, 1, 3, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge5.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %rcx.1.reg2mem, { 0, 2, 3, 1, 4, 5 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 3, 1, 4, 5 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i8*, i64, i64)* @monitor_printf, { 1, 0 }
uselistorder i64 (i64*, i64, i64*, i64)* @get_str_sep, { 1, 0 }
uselistorder i64 58, { 1, 2, 3, 0, 4 }
uselistorder i64 (i64, i64, i64)* @slirp_lookup, { 1, 0 }
uselistorder i64 (i64, i8*)* @qdict_get_try_str, { 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0, 4, 5 }
uselistorder i32 0, { 3, 4, 5, 6, 1, 0, 7, 2 }
uselistorder label LBL_14, { 1, 2, 0 }
uselistorder label LBL_13, { 0, 1, 2, 4, 3 }
uselistorder label LBL_9, { 0, 2, 1 }
} | 1 |
BinRealVul | __ptrace_unlink_7008 | __ptrace_unlink | 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 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = bitcast i64* %arg1 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %2, 24
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i64 %8)
%14 = call i64 @FUNC(i64 %2)
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = call i64 @FUNC(i64 %2)
br label LBL_2
LBL_2:
%21 = call i64 @FUNC(i64 %2)
ret i64 %21
uselistorder i64 %2, { 4, 0, 1, 3, 2, 5 }
} | 0 |
BinRealVul | get_scene_score_16458 | get_scene_score | define i128 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i128
%storemerge3.reg2mem = alloca i64
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%zf.0.reg2mem = alloca i1
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i64, i64* %1
%5 = load i64, i64* %1
%6 = load i64, i64* %1
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = ptrtoint i32* %arg3 to i64
%11 = ptrtoint i32* %arg2 to i64
%12 = ptrtoint i64* %arg1 to i64
%13 = call i128 @FUNC(i128 %9, i128 %9)
%14 = call i64 @FUNC(i128 %13)
%15 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %6, i64 %3, i64 %2)
%16 = add i64 %11, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %10, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %18, %21
%23 = icmp eq i1 %22, false
store i64 %14, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_8, label LBL_1
LBL_1:
%24 = trunc i64 %4 to i32
%25 = and i64 %5, 4294967295
%26 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %25, i64 %6, i64 %3, i64 %2)
%27 = icmp eq i32 %24, 8
%28 = icmp eq i1 %27, false
%29 = load i32, i32* %17, align 4
%30 = add i64 %10, 16
%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
br i1 %28, label LBL_3, label LBL_2
LBL_2:
%35 = add i64 %10, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %11, 16
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %11, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = zext i32 %29 to i64
%51 = zext i32 %34 to i64
%52 = call i64 @FUNC(i64 %12, i64 %49, i32 %44, i64 %39, i64 %51, i64 %50)
store i1 true, i1* %zf.0.reg2mem
store i64 %51, i64* %r8.0.reg2mem
store i64 %50, i64* %r9.0.reg2mem
store i64 %52, i64* %storemerge3.reg2mem
br label LBL_4
LBL_3:
%53 = ashr i32 %34, 1
%54 = zext i32 %53 to i64
%55 = add i64 %10, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = add i64 %11, 16
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = ashr i32 %64, 1
%66 = icmp eq i32 %65, 0
%67 = add i64 %11, 8
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = zext i32 %29 to i64
%73 = zext i32 %65 to i64
%74 = call i64 @FUNC(i64 %12, i64 %71, i64 %73, i64 %59, i64 %54, i64 %72)
store i1 %66, i1* %zf.0.reg2mem
store i64 %54, i64* %r8.0.reg2mem
store i64 %72, i64* %r9.0.reg2mem
store i64 %74, i64* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%zf.0.reload = load i1, i1* %zf.0.reg2mem
%75 = call i128 @FUNC(i128 %8, i128 %8)
%76 = call i128 @FUNC(i64 %storemerge3.reload)
%77 = call i128 @__asm_movsd.2(i64 4636737291354636288)
%78 = call i128 @FUNC(i128 %77, i128 %76)
%79 = load i32, i32* %17, align 4
%sext = mul i64 %5, 4294967296
%80 = ashr exact i64 %sext, 32
%81 = sext i32 %79 to i64
%82 = mul nsw i64 %80, %81
%83 = trunc i64 %82 to i32
%84 = add i64 %82, 2147483648
%85 = icmp ugt i64 %84, 4294967295
%86 = call i128 @FUNC(i128 %76, i128 %76)
%87 = call i128 @__asm_cvtsi2sd.3(i32 %83)
%88 = call i128 @FUNC(i128 %78, i128 %87)
%89 = urem i32 %24, 32
%90 = icmp eq i32 %89, 0
%91 = shl i32 1, %89
%92 = call i128 @FUNC(i128 %87, i128 %87)
%93 = call i128 @__asm_cvtsi2sd.3(i32 %91)
%94 = call i128 @FUNC(i128 %88, i128 %93)
%95 = call i64 @FUNC(i128 %94)
%96 = add i64 %12, 8
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = call i128 @__asm_movsd.2(i64 %98)
%100 = call i128 @__asm_movsd.2(i64 %95)
%101 = call i128 @FUNC(i128 %100, i128 %99)
%102 = call i128 @FUNC(i64 9223372036854775807)
%103 = call i128 @FUNC(i128 %101, i128 %102)
%104 = call i64 @FUNC(i128 %103)
%105 = call i128 @__asm_movsd.2(i64 %104)
%106 = sext i64 %95 to i128
call void @FUNC(i128 %105, i128 %106)
%zf.15 = or i1 %zf.0.reload, %85
%107 = icmp eq i1 %90, %zf.15
br i1 %107, label LBL_6, label LBL_5
LBL_5:
%108 = call i128 @__asm_movsd.2(i64 %95)
store i128 %108, i128* %storemerge.reg2mem
br label LBL_7
LBL_6:
%109 = call i128 @__asm_movsd.2(i64 %104)
store i128 %109, i128* %storemerge.reg2mem
br label LBL_7
LBL_7:
%110 = and i64 %4, 4294967295
%storemerge.reload = load i128, i128* %storemerge.reg2mem
%111 = call i128 @FUNC(i128 %7, i128 %7)
%112 = call i128 @FUNC(i128 %storemerge.reload)
%113 = call i32 @FUNC(i128 %112)
%114 = load i32, i32* inttoptr (i64 4202640 to i32*), align 16
%115 = call i128 @__asm_movss.1(i32 %114)
%116 = call i128 @FUNC(i128 %102, i128 %102)
%117 = call i128 @__asm_movd.4(i32 %113)
%118 = call i64 @FUNC()
%119 = call i128 @FUNC(i128 %117)
%120 = call i64 @FUNC(i128 %119)
%121 = call i128 @__asm_movsd.2(i64 %95)
%122 = call i64 @FUNC(i128 %121)
store i64 %122, i64* %97, align 8
store i64 %120, i64* %sv_0.0.reg2mem
store i64 %110, i64* %rcx.0.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_8
LBL_8:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%123 = call i128 @FUNC(i64 %sv_0.0.reload)
%124 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64 %sv_0.0.reload, i64 %rcx.0.reload, i64 %r8.1.reload, i64 %r9.1.reload)
%125 = call i128 @__asm_movsd.2(i64 %sv_0.0.reload)
ret i128 %125
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i128 %102, { 1, 0, 2 }
uselistorder i64 %95, { 1, 0, 3, 2 }
uselistorder i32 %89, { 1, 0 }
uselistorder i128 %87, { 1, 0, 2 }
uselistorder i128 %76, { 2, 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i64 %12, { 4, 1, 2, 0, 3, 5 }
uselistorder i64 %11, { 0, 1, 3, 2, 4 }
uselistorder i64 %10, { 0, 2, 1, 3, 4 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i1* %zf.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %1, { 4, 3, 2, 1, 0 }
uselistorder i128* %0, { 2, 1, 0 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @ff_dlog, { 2, 1, 0 }
} | 1 |
BinRealVul | print_quota_used_8008 | print_quota_used | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_0.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 40, i64 %1)
store i64 0, i64* %indvars.iv.reg2mem
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_0.11.reg2mem
br label LBL_1
LBL_1:
%sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 4
%4 = add i64 %3, %0
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp slt i32 %6, 0
store i64 %sv_0.11.reload, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %4, 40
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %3, ptrtoint (i32** @gv_1 to i64)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = ashr i32 %10, 31
%15 = zext i32 %10 to i64
%16 = zext i32 %14 to i64
%17 = mul i64 %16, 4294967296
%18 = or i64 %17, %15
%19 = zext i32 %13 to i64
%20 = sdiv i64 %18, %19
%21 = mul i64 %indvars.iv.reload, 8
%22 = add i64 %21, ptrtoint ([10 x i8*]* @gv_2 to i64)
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = zext i32 %6 to i64
%26 = and i64 %20, 4294967295
%27 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %sv_0.11.reload, i64 %24, i64 %26, i64 %25)
store i64 ptrtoint (i64* @gv_4 to i64), i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.11.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%28 = call i64 @FUNC(i64 41, i64 %1)
ret i64 %28
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.11.reload, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.11.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 20, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
uselistorder i64 (i64, i64)* @prot_putc, { 1, 0 }
} | 0 |
reposvul_c_test | ldbRedisProtocolToHuman_Bulk_193 | ldbRedisProtocolToHuman_Bulk | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%.pn.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 1
%2 = inttoptr i64 %1 to i8*
%3 = call i8* @strchr(i8* %2, i32 13)
%4 = ptrtoint i8* %3 to i64
%5 = sub i64 0, %0
%6 = sub i64 %5, 1
%7 = add i64 %4, %6
%8 = call i64 @FUNC(i64 %1, i64 %7, i64* nonnull %sv_0)
%9 = load i64, i64* %sv_0, align 8
%10 = icmp eq i64 %9, -1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 4)
store i64 %12, i64* %arg1, align 8
store i64 2, i64* %.pn.reg2mem
br label LBL_3
LBL_2:
%13 = add i64 %4, 2
%14 = call i64 @FUNC(i64 %1, i64 %13, i64 %9)
store i64 %14, i64* %arg1, align 8
%15 = load i64, i64* %sv_0, align 8
%16 = add i64 %15, 4
store i64 %16, i64* %.pn.reg2mem
br label LBL_3
LBL_3:
%.pn.reload = load i64, i64* %.pn.reg2mem
%storemerge = add i64 %.pn.reload, %4
ret i64 %storemerge
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i64 %1, { 1, 2, 0, 3 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %.pn.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 4, { 1, 0 }
} | 0 |
BinRealVul | create_tailoring_7692 | create_tailoring | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv21.reg2mem = alloca i64
%sv_0.1.lcssa30.reg2mem = alloca i32
%.reg2mem37 = alloca i32
%.reg2mem35 = alloca i64
%.reg2mem = alloca i8
%indvars.iv33.reg2mem = alloca i64
%indvars.iv24.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_0.118.reg2mem = alloca i32
%storemerge519.reg2mem = alloca i32
%rsi = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 1, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_35
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %arg1 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = sext i32 %4 to i64
%6 = add i64 %5, %2
%7 = call i64 @FUNC(i64* nonnull %sv_1, i64 256, i64 %2, i64 %6, i64* nonnull %sv_2, i64 128)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 1, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_35
LBL_2:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
store i64 ptrtoint (i64* @gv_0 to i64), i64* %12, align 8
br label LBL_4
LBL_4:
%16 = icmp eq i64 %arg2, 0
%17 = icmp eq i1 %16, false
store i64 1, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_35
LBL_5:
%18 = ptrtoint i64* %sv_3 to i64
%19 = inttoptr i64 %arg2 to i64*
store i64 0, i64* %19, align 8
%20 = add i64 %arg2, 2040
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %21, align 8
%22 = add i64 %arg2, 8
%23 = and i64 %22, -8
%24 = add i64 %arg2, 2048
%25 = sub i64 %24, %23
%26 = udiv i64 %25, 8
%27 = urem i64 %26, 536870912
%28 = inttoptr i64 %23 to i8*
call void @FUNC(i8* %28, i64 0, i64 %27)
%29 = call i64* @memcpy(i64* %19, i64* nonnull @gv_1, i32 256)
%30 = icmp sgt i32 %8, 0
store i32 0, i32* %sv_0.1.lcssa30.reg2mem
br i1 %30, label LBL_6, label LBL_22
LBL_6:
%31 = add i64 %18, -16
%32 = bitcast i64* %rsi to i8*
%33 = inttoptr i64 %arg2 to i8*
store i32 0, i32* %storemerge519.reg2mem
store i32 0, i32* %sv_0.118.reg2mem
br label LBL_7
LBL_7:
%storemerge519.reload = load i32, i32* %storemerge519.reg2mem
%34 = sext i32 %storemerge519.reload to i64
%35 = mul nsw i64 %34, 12
%36 = add i64 %35, %31
%37 = add i64 %36, -3196
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp ult i32 %39, 65536
store i64 1, i64* %rax.0.reg2mem
br i1 %40, label LBL_8, label LBL_35
LBL_8:
%sv_0.118.reload = load i32, i32* %sv_0.118.reg2mem
%41 = add i64 %36, -3199
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_11, label LBL_9
LBL_9:
%46 = udiv i32 %39, 256
%47 = urem i32 %46, 256
%48 = load i8, i8* %32, align 8
%49 = zext i32 %47 to i64
%50 = add i64 %49, ptrtoint (i64* @gv_1 to i64)
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = icmp ult i8 %48, %52
%54 = icmp eq i1 %53, false
store i32 %sv_0.118.reload, i32* %sv_0.0.reg2mem
br i1 %54, label LBL_12, label LBL_10
LBL_10:
store i8 %52, i8* %33, align 1
store i32 %sv_0.118.reload, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_11:
%55 = add i32 %sv_0.118.reload, 1
store i32 %55, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%56 = add nuw i32 %storemerge519.reload, 1
%57 = icmp slt i32 %56, %8
store i32 %56, i32* %storemerge519.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.118.reg2mem
br i1 %57, label LBL_7, label LBL_13
LBL_13:
%sext29 = mul i64 %7, 4294967296
%58 = ashr exact i64 %sext29, 32
store i64 0, i64* %indvars.iv24.reg2mem
br label LBL_14
LBL_14:
%indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem
%59 = mul nuw nsw i64 %indvars.iv24.reload, 12
%60 = add i64 %59, %31
%61 = add i64 %60, -3199
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = icmp eq i8 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_21, label LBL_15
LBL_15:
%66 = add i64 %60, -3196
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = load i64, i64* %19, align 8
%70 = icmp eq i64 %69, 0
%71 = icmp eq i1 %70, false
%.pre28 = load i8, i8* %32, align 8
store i8 %.pre28, i8* %.reg2mem
store i64 %69, i64* %.reg2mem35
store i32 %68, i32* %.reg2mem37
br i1 %71, label LBL_20, label LBL_16
LBL_16:
%72 = zext i8 %.pre28 to i32
%73 = mul i32 %72, 512
%74 = zext i32 %73 to i64
store i64 %74, i64* %19, align 8
%75 = icmp eq i8 %.pre28, 0
%76 = icmp eq i1 %75, false
store i64 1, i64* %rax.0.reg2mem
br i1 %76, label LBL_17, label LBL_35
LBL_17:
%77 = inttoptr i64 %74 to i64*
%78 = call i64* @memset(i64* %77, i32 0, i32 %73)
%.pre = load i8, i8* %32, align 8
%79 = zext i8 %.pre to i64
store i64 0, i64* %indvars.iv33.reg2mem
br label LBL_18
LBL_18:
%indvars.iv33.reload = load i64, i64* %indvars.iv33.reg2mem
%80 = load i64, i64* @gv_2, align 8
%81 = load i64, i64* %19, align 8
%82 = mul nuw nsw i64 %indvars.iv33.reload, %79
%83 = mul i64 %82, 2
%84 = add i64 %83, %81
%85 = inttoptr i64 %84 to i64*
%86 = inttoptr i64 %80 to i64*
%87 = call i64* @memcpy(i64* %85, i64* %86, i32 0)
%indvars.iv.next34 = add nuw nsw i64 %indvars.iv33.reload, 1
%exitcond23 = icmp eq i64 %indvars.iv.next34, 256
store i64 %indvars.iv.next34, i64* %indvars.iv33.reg2mem
br i1 %exitcond23, label LBL_19, label LBL_18
LBL_19:
%.pre26 = load i32, i32* %67, align 4
%.pre27 = load i64, i64* %19, align 8
store i8 %.pre, i8* %.reg2mem
store i64 %.pre27, i64* %.reg2mem35
store i32 %.pre26, i32* %.reg2mem37
br label LBL_20
LBL_20:
%88 = udiv i32 %68, 256
%89 = urem i32 %88, 256
%.reload38 = load i32, i32* %.reg2mem37
%.reload36 = load i64, i64* %.reg2mem35
%.reload = load i8, i8* %.reg2mem
%90 = add i64 %60, -3200
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 4
%93 = zext i32 %89 to i64
%94 = add i64 %93, ptrtoint (i64* @gv_1 to i64)
%95 = inttoptr i64 %94 to i8*
%96 = load i8, i8* %95, align 1
%97 = zext i8 %96 to i32
%98 = mul i32 %97, 2
%99 = mul i32 %89, 8
%100 = zext i32 %99 to i64
%101 = add i64 %100, ptrtoint (i64* @gv_2 to i64)
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = mul i32 %.reload38, 2
%105 = and i32 %104, 510
%106 = mul nuw nsw i32 %105, %97
%107 = zext i32 %106 to i64
%108 = add i64 %103, %107
%109 = zext i8 %.reload to i64
%110 = zext i8 %92 to i64
%111 = mul i64 %110, 2
%112 = mul nuw nsw i64 %111, %109
%113 = add i64 %112, %.reload36
%114 = inttoptr i64 %113 to i64*
%115 = inttoptr i64 %108 to i64*
%116 = call i64* @memcpy(i64* %114, i64* %115, i32 %98)
%117 = load i64, i64* %19, align 8
%118 = add i64 %117, %112
%119 = inttoptr i64 %118 to i16*
%120 = load i16, i16* %119, align 2
%121 = add i64 %60, -3192
%122 = inttoptr i64 %121 to i16*
%123 = load i16, i16* %122, align 4
%124 = add i16 %123, %120
store i16 %124, i16* %119, align 2
br label LBL_21
LBL_21:
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1
%125 = icmp slt i64 %indvars.iv.next25, %58
store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa30.reg2mem
br i1 %125, label LBL_14, label LBL_22
LBL_22:
%sv_0.1.lcssa30.reload = load i32, i32* %sv_0.1.lcssa30.reg2mem
store i64 0, i64* %indvars.iv21.reg2mem
br label LBL_23
LBL_23:
%indvars.iv21.reload = load i64, i64* %indvars.iv21.reg2mem
%126 = mul i64 %indvars.iv21.reload, 8
%127 = add i64 %126, %arg2
%128 = inttoptr i64 %127 to i64*
%129 = load i64, i64* %128, align 8
%130 = icmp eq i64 %129, 0
%131 = icmp eq i1 %130, false
br i1 %131, label LBL_25, label LBL_24
LBL_24:
%132 = add i64 %126, ptrtoint (i64* @gv_2 to i64)
%133 = inttoptr i64 %132 to i64*
%134 = load i64, i64* %133, align 8
store i64 %134, i64* %128, align 8
br label LBL_25
LBL_25:
%indvars.iv.next22 = add nuw nsw i64 %indvars.iv21.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next22, 256
store i64 %indvars.iv.next22, i64* %indvars.iv21.reg2mem
br i1 %exitcond, label LBL_26, label LBL_23
LBL_26:
%135 = add i64 %2, 16
%136 = inttoptr i64 %135 to i64*
store i64 %arg2, i64* %136, align 8
%137 = add i64 %2, 24
%138 = inttoptr i64 %137 to i64*
store i64 %arg2, i64* %138, align 8
%139 = add i64 %2, 32
%140 = inttoptr i64 %139 to i64*
store i64 0, i64* %140, align 8
%141 = icmp eq i32 %sv_0.1.lcssa30.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %141, label LBL_35, label LBL_27
LBL_27:
store i64 8448, i64* %140, align 8
%142 = call i64* @memset(i64* inttoptr (i64 8448 to i64*), i32 0, i32 8448)
%143 = load i64, i64* %140, align 8
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_28, label LBL_35
LBL_28:
%144 = add i64 %143, 4096
%145 = add i64 %18, -16
%sext = mul i64 %7, 4294967296
%146 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_29
LBL_29:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%147 = mul nuw nsw i64 %indvars.iv.reload, 12
%148 = add i64 %145, %147
%149 = add i64 %148, -3199
%150 = inttoptr i64 %149 to i8*
%151 = load i8, i8* %150, align 1
%152 = icmp eq i8 %151, 0
br i1 %152, label LBL_34, label LBL_30
LBL_30:
%153 = add i64 %148, -3196
%154 = inttoptr i64 %153 to i32*
%155 = load i32, i32* %154, align 4
%156 = udiv i32 %155, 256
%157 = urem i32 %156, 256
%158 = mul i32 %157, 8
%159 = zext i32 %158 to i64
%160 = add i64 %159, ptrtoint (i64* @gv_2 to i64)
%161 = inttoptr i64 %160 to i64*
%162 = load i64, i64* %161, align 8
%163 = zext i32 %157 to i64
%164 = add i64 %163, ptrtoint (i64* @gv_1 to i64)
%165 = inttoptr i64 %164 to i8*
%166 = load i8, i8* %165, align 1
%167 = zext i8 %166 to i32
%168 = mul i32 %155, 2
%169 = and i32 %168, 510
%170 = mul nuw nsw i32 %169, %167
%171 = zext i32 %170 to i64
%172 = add i64 %162, %171
%173 = add i64 %172, 2
%174 = inttoptr i64 %173 to i16*
%175 = load i16, i16* %174, align 2
%176 = icmp eq i16 %175, 0
%177 = icmp eq i1 %176, false
store i64 1, i64* %rax.0.reg2mem
br i1 %177, label LBL_35, label LBL_31
LBL_31:
%178 = add i64 %148, -3200
%179 = inttoptr i64 %178 to i8*
%180 = load i8, i8* %179, align 4
%181 = icmp ult i8 %180, 64
%182 = icmp slt i8 %180, 0
%or.cond = or i1 %181, %182
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_35, label LBL_32
LBL_32:
%183 = icmp ugt i8 %151, 63
%184 = icmp slt i8 %151, 0
%185 = icmp eq i1 %184, false
%or.cond7 = icmp eq i1 %183, %185
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond7, label LBL_33, label LBL_35
LBL_33:
%186 = inttoptr i64 %172 to i16*
%187 = zext i8 %180 to i64
%188 = mul i64 %187, 64
%189 = zext i8 %151 to i64
%190 = add nuw nsw i64 %188, %189
%191 = load i16, i16* %186, align 2
%192 = add i64 %148, -3192
%193 = inttoptr i64 %192 to i16*
%194 = load i16, i16* %193, align 4
%195 = load i64, i64* %140, align 8
%196 = mul i64 %190, 2
%197 = add nuw nsw i64 %196, 8589926272
%198 = and i64 %197, 8589934590
%199 = add i64 %195, %198
%200 = add i16 %194, %191
%201 = inttoptr i64 %199 to i16*
store i16 %200, i16* %201, align 2
%202 = load i8, i8* %179, align 4
%203 = zext i8 %202 to i64
%204 = add i64 %144, %203
%205 = inttoptr i64 %204 to i8*
store i8 1, i8* %205, align 1
%206 = load i8, i8* %150, align 1
%207 = zext i8 %206 to i64
%208 = add i64 %144, %207
%209 = inttoptr i64 %208 to i8*
store i8 1, i8* %209, align 1
br label LBL_34
LBL_34:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%210 = icmp slt i64 %indvars.iv.next, %146
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %210, label LBL_29, label LBL_35
LBL_35:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %180, { 1, 0, 2 }
uselistorder i32 %157, { 1, 0 }
uselistorder i8 %151, { 1, 2, 0, 3 }
uselistorder i64 %148, { 1, 0, 2, 3 }
uselistorder i32 %97, { 1, 0 }
uselistorder i32 %73, { 1, 0 }
uselistorder i8 %.pre28, { 2, 1, 0 }
uselistorder i32 %68, { 1, 0 }
uselistorder i64 %60, { 0, 1, 3, 2 }
uselistorder i32 %sv_0.118.reload, { 2, 0, 1 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64* %19, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder i64 %18, { 1, 0 }
uselistorder i32 %8, { 1, 0, 2 }
uselistorder i64 %2, { 1, 2, 3, 4, 5, 0 }
uselistorder i32* %storemerge519.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.118.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %indvars.iv24.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv33.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem35, { 0, 2, 1 }
uselistorder i32* %.reg2mem37, { 0, 2, 1 }
uselistorder i64* %indvars.iv21.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 3, 4, 5, 7, 8, 2, 1, 9, 10, 11 }
uselistorder i64 -3192, { 1, 0 }
uselistorder i32 510, { 1, 0 }
uselistorder i64 ptrtoint (i64* @gv_2 to i64), { 2, 1, 0 }
uselistorder i64 -3200, { 1, 0 }
uselistorder i64 2, { 0, 3, 1, 2 }
uselistorder i64* @gv_2, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder i64 ptrtoint (i64* @gv_1 to i64), { 2, 1, 0 }
uselistorder i8 0, { 0, 1, 4, 2, 5, 6, 3 }
uselistorder i64 -3199, { 2, 1, 0 }
uselistorder i64 -3196, { 2, 1, 0 }
uselistorder i64 12, { 2, 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i32 256, { 1, 0, 3, 2, 5, 4, 6 }
uselistorder i64* @gv_1, { 1, 0 }
uselistorder i64 %arg2, { 2, 3, 0, 4, 1, 8, 6, 7, 5 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_35, { 5, 2, 3, 4, 6, 7, 1, 0, 8, 9, 10 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | create_bits_11721 | create_bits | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %0, i64 32)
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = trunc i64 %arg2 to i32
%5 = mul i32 %4, 32
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 31)
%8 = trunc i64 %7 to i8
%9 = icmp eq i8 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_8
LBL_2:
%sext5 = mul i64 %arg3, 4294967296
%10 = ashr exact i32 %5, 3
%11 = sext i32 %10 to i64
%12 = ashr exact i64 %sext5, 32
%13 = call i64 @FUNC(i64 %12, i64 %11)
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_8
LBL_3:
%16 = icmp eq i64* %arg4, null
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = bitcast i64* %arg4 to i32*
store i32 %10, i32* %17, align 4
br label LBL_5
LBL_5:
%18 = trunc i64 %arg3 to i32
%19 = mul i32 %10, %18
%20 = trunc i64 %arg5 to i8
%21 = icmp eq i8 %20, 0
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64* @calloc(i32 %19, i32 1)
%23 = ptrtoint i64* %22 to i64
store i64 %23, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%24 = call i64* @malloc(i32 %19)
%25 = ptrtoint i64* %24 to i64
store i64 %25, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %10, { 0, 2, 1 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_8, { 3, 4, 0, 1, 2 }
} | 1 |
BinRealVul | a64_write_trailer_15188 | a64_write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %2, i64* %sv_0, align 8
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0)
br label LBL_2
LBL_2:
ret i64 0
} | 1 |
BinRealVul | ogg_write_page_4138 | ogg_write_page | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sext = mul i64 %1, 4294967296
%3 = ashr exact i64 %sext, 29
%4 = add i64 %3, %2
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64* nonnull %sv_1)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = and i64 %9, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%14 = ptrtoint i64* %arg2 to i64
%15 = inttoptr i64 %8 to i32*
%16 = load i64, i64* @gv_0, align 8
%17 = load i64, i64* %sv_1, align 8
%18 = call i64 @FUNC(i64 %17, i64 %16, i64 0)
%19 = load i64, i64* %sv_1, align 8
%20 = call i64 @FUNC(i64 %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%21 = load i64, i64* %sv_1, align 8
%22 = call i64 @FUNC(i64 %21, i64 0)
%23 = add i64 %14, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = or i32 %25, %arg3
%27 = load i64, i64* %sv_1, align 8
%28 = zext i32 %26 to i64
%29 = call i64 @FUNC(i64 %27, i64 %28)
%30 = add i64 %14, 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = load i64, i64* %sv_1, align 8
%34 = call i64 @FUNC(i64 %33, i64 %32)
%35 = load i32, i32* %15, align 4
%36 = load i64, i64* %sv_1, align 8
%37 = zext i32 %35 to i64
%38 = call i64 @FUNC(i64 %36, i64 %37)
%39 = add i64 %8, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i32 %41, 1
store i32 %42, i32* %40, align 4
%43 = load i64, i64* %sv_1, align 8
%44 = zext i32 %41 to i64
%45 = call i64 @FUNC(i64 %43, i64 %44)
%46 = load i64, i64* %sv_1, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = load i64, i64* %sv_1, align 8
%49 = call i64 @FUNC(i64 %48, i64 0)
%50 = add i64 %14, 16
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = load i64, i64* %sv_1, align 8
%54 = zext i32 %52 to i64
%55 = call i64 @FUNC(i64 %53, i64 %54)
%56 = load i32, i32* %51, align 4
%57 = add i64 %14, 24
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = load i64, i64* %sv_1, align 8
%61 = call i64 @FUNC(i64 %60, i64 %59, i32 %56)
%62 = add i64 %14, 40
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %14, 32
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = load i64, i64* %sv_1, align 8
%69 = call i64 @FUNC(i64 %68, i64 %67, i32 %64)
%70 = load i64, i64* %sv_1, align 8
%71 = call i64 @FUNC(i64 %2, i64 %70, i64 %47)
%72 = load i64, i64* %sv_1, align 8
%73 = call i64 @FUNC(i64 %72)
%74 = load i64, i64* %sv_1, align 8
%75 = call i64 @FUNC(i64 %74, i64* nonnull %sv_0)
%76 = trunc i64 %75 to i32
%77 = icmp slt i32 %76, 0
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_4, label LBL_3
LBL_3:
%79 = and i64 %75, 4294967295
store i64 %79, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%80 = load i64, i64* %sv_0, align 8
%81 = add i64 %2, 8
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = call i64 @FUNC(i64 %83, i64 %80, i32 %76)
%85 = load i64, i64* %82, align 8
%86 = call i64 @FUNC(i64 %85)
%87 = load i64, i64* %sv_0, align 8
%88 = call i64 @FUNC(i64 %87)
%89 = add i64 %8, 8
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = add i32 %91, -1
store i32 %92, i32* %90, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %14, { 1, 0, 2, 3, 4, 5 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @put_flush_packet, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @put_buffer, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @put_le32, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @put_byte, { 2, 1, 0 }
} | 0 |
BinRealVul | pnv_pci_ioda2_table_alloc_pages_17935 | pnv_pci_ioda2_table_alloc_pages | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sext6 = mul i64 %arg5, 4294967296
%0 = ashr exact i64 %sext6, 32
store i64 0, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%1 = and i64 %arg4, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %0 to i32
%.off = add i32 %3, -1
%4 = icmp ult i32 %.off, 8
store i64 -22, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = call i64 @FUNC()
%6 = icmp ult i64 %5, %arg4
store i64 -22, i64* %rax.0.reg2mem
br i1 %6, label LBL_7, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %arg4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 -22, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_7
LBL_3:
%11 = and i64 %arg1, 4294967295
%12 = trunc i64 %arg3 to i32
%13 = trunc i64 %2 to i32
%14 = sub i32 %13, %12
%15 = add i32 %14, 3
%16 = icmp ugt i32 %15, 12
%17 = select i1 %16, i32 %15, i32 12
%18 = urem i32 %17, 64
%19 = icmp eq i32 %18, 0
%20 = zext i32 %18 to i64
%21 = shl i64 1, %20
%storemerge = select i1 %19, i64 1, i64 %21
%22 = add i32 %14, %.off
%23 = udiv i32 %22, %3
%24 = add i32 %23, 3
%25 = zext i32 %24 to i64
%26 = icmp ugt i64 %25, 12
%27 = select i1 %26, i64 %25, i64 12
%28 = sext i32 %23 to i64
%29 = call i64 @FUNC(i64 %11, i64 %27, i32 %3, i64 %storemerge, i64* nonnull %sv_1, i64* nonnull %sv_0, i64 %28)
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %31, label LBL_4, label LBL_7
LBL_4:
%32 = trunc i64 %27 to i32
%33 = load i64, i64* %sv_1, align 8
%34 = icmp ugt i64 %storemerge, %33
br i1 %34, label LBL_5, label LBL_6
LBL_5:
%35 = add nsw i64 %0, 4294967295
%36 = and i64 %35, 4294967295
%37 = add i32 %32, 61
%38 = urem i32 %37, 64
%39 = icmp eq i32 %38, 0
%40 = zext i32 %38 to i64
%41 = shl i64 1, %40
%storemerge8 = select i1 %39, i64 1, i64 %41
%42 = call i64 @FUNC(i64 %29, i64 %storemerge8, i64 %36)
store i64 -12, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%43 = ptrtoint i64* %arg6 to i64
%44 = and i64 %arg3, 4294967295
%45 = ptrtoint i64* %sv_0 to i64
%46 = call i64 @FUNC(i64 %43, i64 %29, i64 %storemerge, i64 %arg2, i64 %44)
%47 = add i32 %32, 61
%48 = urem i32 %47, 64
%49 = icmp eq i32 %48, 0
%50 = zext i32 %48 to i64
%51 = shl i64 1, %50
%storemerge9 = select i1 %49, i64 1, i64 %51
store i64 %storemerge9, i64* %arg6, align 8
%52 = add i64 %43, 8
%53 = inttoptr i64 %52 to i32*
store i32 %.off, i32* %53, align 4
%54 = load i64, i64* %sv_0, align 8
%55 = add i64 %43, 16
%56 = inttoptr i64 %55 to i64*
store i64 %54, i64* %56, align 8
%57 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %storemerge, i64 %arg2, i64 %44, i64 %45)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 1, 0, 2 }
uselistorder i64 %25, { 1, 0 }
uselistorder i64 %storemerge, { 0, 2, 1, 3 }
uselistorder i32 %.off, { 1, 0, 2 }
uselistorder i32 %3, { 2, 0, 1 }
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 1, 2, 3, 4 }
uselistorder i32 61, { 1, 0 }
uselistorder i64 -12, { 1, 0 }
uselistorder i64 1, { 1, 5, 2, 6, 3, 7, 4, 0 }
uselistorder i64 (i64)* @ilog2, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 3, 1, 4, 5 }
uselistorder i64 %arg4, { 1, 2, 0, 3 }
uselistorder label LBL_7, { 4, 5, 0, 1, 2, 3 }
} | 1 |
BinRealVul | do_cp14_dbg_12282 | do_cp14_dbg | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = call i64 @FUNC(i64 %0)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | send_full_color_rect_11537 | send_full_color_rect | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%.pre-phi15.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext7 = mul i64 %arg5, 4294967296
%3 = ashr exact i64 %sext7, 32
%4 = and i64 %3, 4294967295
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 %2, i64 %5, i64 %4)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = trunc i64 %arg4 to i32
%10 = trunc i64 %arg3 to i32
%11 = trunc i64 %arg2 to i32
%12 = call i64 @FUNC(i64 %2, i32 %11, i32 %10, i32 %9, i64 %4, i64 0)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_6
LBL_2:
%sext6 = mul i64 %arg4, 4294967296
%13 = trunc i64 %1 to i32
%14 = call i64 @FUNC(i64 %2, i64 0)
%15 = icmp eq i32 %13, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = add i64 %2, 16
%17 = ashr exact i64 %sext6, 32
%18 = mul nsw i64 %3, %17
%19 = and i64 %18, 4294967295
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %2, i64 %22, i64 %19, i64 %16)
store i64 %18, i64* %.pre-phi15.reg2mem
store i32 3, i32* %storemerge13.reg2mem
br label LBL_5
LBL_4:
%24 = add i64 %2, 32
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%.pre = ashr exact i64 %sext6, 32
%.pre14 = mul nsw i64 %3, %.pre
store i64 %.pre14, i64* %.pre-phi15.reg2mem
store i32 %26, i32* %storemerge13.reg2mem
br label LBL_5
LBL_5:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%.pre-phi15.reload = load i64, i64* %.pre-phi15.reg2mem
%27 = add i64 %2, 24
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = add i64 %31, ptrtoint (i32** @gv_0 to i64)
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = trunc i64 %.pre-phi15.reload to i32
%36 = mul i32 %storemerge13.reload, %35
%37 = zext i32 %34 to i64
%38 = zext i32 %36 to i64
%39 = call i64 @FUNC(i64 %2, i32 0, i64 %38, i64 %37, i64 0)
%40 = lshr i64 %39, 63
%41 = xor i64 %40, 1
store i64 %41, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sext6, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 5, 6, 4, 7, 0, 8 }
uselistorder i64* %.pre-phi15.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge13.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 0, 4, 1, 2, 3 }
uselistorder i64 4294967296, { 1, 0, 2 }
} | 1 |
BinRealVul | abort_codec_experimental_3011 | abort_codec_experimental | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = icmp eq i32 %3, 0
%. = select i1 %4, i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64 ptrtoint ([8 x i8]* @gv_1 to i64)
%5 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %2, i64 %1)
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %9)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%12 = add i64 %storemerge.reload, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = urem i32 %14, 2
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = inttoptr i64 %storemerge.reload to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %., i64 %19, i64 %1)
br label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 1)
unreachable
uselistorder i64 %storemerge.reload, { 1, 0 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
} | 0 |
BinRealVul | client_func_7787 | client_func | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%indvars.iv54.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8** @gv_1, align 8
store i32 8080, i32* bitcast (i64* @gv_2 to i32*), align 8
%4 = trunc i64 %2 to i32
store i32 %4, i32* bitcast (i64* @gv_3 to i32*), align 8
%5 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 32)
store i64 1, i64* %sv_4, align 8
%6 = add i64 %3, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0))
br label LBL_2
LBL_2:
%11 = ptrtoint i64* %sv_5 to i64
br label LBL_3
LBL_3:
%12 = load i32, i32* @gv_5, align 4
%13 = call i32 @read(i32 %12, i64* nonnull %sv_3, i32 1)
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64* nonnull %sv_4)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_41
LBL_5:
%19 = add i64 %3, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_7
LBL_6:
%24 = inttoptr i64 %16 to i32*
%25 = bitcast i64* %sv_2 to %timeval*
%26 = ptrtoint i64* %sv_1 to i64
%27 = ptrtoint i64* %sv_0 to i64
%28 = add i64 %11, -384
%29 = add i64 %16, 4
%30 = inttoptr i64 %29 to i32*
%31 = add i64 %11, -256
%32 = ptrtoint i64* %sv_2 to i64
%33 = bitcast i64* %sv_1 to %_TYPEDEF_fd_set*
%34 = bitcast i64* %sv_0 to %_TYPEDEF_fd_set*
%35 = add i64 %16, 8
%36 = inttoptr i64 %35 to i32*
%37 = add i64 %16, 12
%38 = inttoptr i64 %37 to i32*
br label LBL_8
LBL_7:
%39 = call i64 @FUNC(i64 %16)
store i64 1, i64* %rax.0.reg2mem
br label LBL_41
LBL_8:
store i64 10, i64* %sv_2, align 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_9
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%40 = mul i64 %indvars.iv.reload, 8
%41 = add i64 %40, %26
%42 = inttoptr i64 %41 to i64*
store i64 0, i64* %42, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %indvars.iv54.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%indvars.iv54.reload = load i64, i64* %indvars.iv54.reg2mem
%43 = mul i64 %indvars.iv54.reload, 8
%44 = add i64 %43, %27
%45 = inttoptr i64 %44 to i64*
store i64 0, i64* %45, align 8
%indvars.iv.next55 = add nuw nsw i64 %indvars.iv54.reload, 1
%exitcond56 = icmp eq i64 %indvars.iv.next55, 16
store i64 %indvars.iv.next55, i64* %indvars.iv54.reg2mem
br i1 %exitcond56, label LBL_11, label LBL_10
LBL_11:
%46 = load i32, i32* @gv_5, align 4
%47 = load i32, i32* %24, align 4
%48 = add i32 %46, 63
%49 = icmp slt i32 %46, 0
%50 = select i1 %49, i32 %48, i32 %46
%51 = ashr i32 %50, 6
%52 = zext i32 %51 to i64
%53 = sext i32 %51 to i64
%54 = mul i64 %53, 8
%55 = add i64 %54, %28
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = urem i32 %46, 64
%59 = icmp eq i32 %58, 0
%60 = zext i32 %58 to i64
%61 = shl i64 1, %60
%storemerge = select i1 %59, i64 1, i64 %61
%62 = or i64 %storemerge, %57
%sext = mul i64 %52, 4294967296
%63 = ashr exact i64 %sext, 29
%64 = add i64 %63, %28
%65 = inttoptr i64 %64 to i64*
store i64 %62, i64* %65, align 8
%66 = load i32, i32* %30, align 4
%67 = urem i32 %66, 2
%68 = icmp eq i32 %67, 0
store i32 %66, i32* %.reg2mem
br i1 %68, label LBL_13, label LBL_12
LBL_12:
%69 = load i32, i32* %24, align 4
%70 = add i32 %69, 63
%71 = icmp slt i32 %69, 0
%72 = select i1 %71, i32 %70, i32 %69
%73 = ashr i32 %72, 6
%74 = zext i32 %73 to i64
%75 = sext i32 %73 to i64
%76 = mul i64 %75, 8
%77 = add i64 %76, %28
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = urem i32 %69, 64
%81 = icmp eq i32 %80, 0
%82 = zext i32 %80 to i64
%83 = shl i64 1, %82
%storemerge4 = select i1 %81, i64 1, i64 %83
%84 = or i64 %storemerge4, %79
%sext5 = mul i64 %74, 4294967296
%85 = ashr exact i64 %sext5, 29
%86 = add i64 %85, %28
%87 = inttoptr i64 %86 to i64*
store i64 %84, i64* %87, align 8
%.pre = load i32, i32* %30, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_13
LBL_13:
%.reload = load i32, i32* %.reg2mem
%88 = and i32 %.reload, 2
%89 = icmp eq i32 %88, 0
br i1 %89, label LBL_15, label LBL_14
LBL_14:
%90 = load i32, i32* %24, align 4
%91 = add i32 %90, 63
%92 = icmp slt i32 %90, 0
%93 = select i1 %92, i32 %91, i32 %90
%94 = ashr i32 %93, 6
%95 = zext i32 %94 to i64
%96 = sext i32 %94 to i64
%97 = mul i64 %96, 8
%98 = add i64 %97, %31
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = urem i32 %90, 64
%102 = icmp eq i32 %101, 0
%103 = zext i32 %101 to i64
%104 = shl i64 1, %103
%storemerge6 = select i1 %102, i64 1, i64 %104
%105 = or i64 %storemerge6, %100
%sext7 = mul i64 %95, 4294967296
%106 = ashr exact i64 %sext7, 29
%107 = add i64 %106, %31
%108 = inttoptr i64 %107 to i64*
store i64 %105, i64* %108, align 8
br label LBL_15
LBL_15:
%109 = zext i32 %47 to i64
%110 = sext i32 %46 to i64
%111 = icmp slt i64 %110, %109
%spec.select = select i1 %111, i32 %47, i32 %46
%112 = add i32 %spec.select, 1
%113 = call i32 @select(i32 %112, %_TYPEDEF_fd_set* nonnull %33, %_TYPEDEF_fd_set* nonnull %34, %_TYPEDEF_fd_set* null, %timeval* nonnull %25)
%114 = icmp eq i32 %113, 0
%115 = icmp eq i1 %114, false
br i1 %115, label LBL_17, label LBL_16
LBL_16:
%116 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_6, i64 0, i64 0), i64 %26, i64 %27, i64 0, i64 %32, i64 %1)
%117 = call i64 @FUNC(i64 %16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_41
LBL_17:
%118 = icmp eq i32 %113, -1
%119 = icmp eq i1 %118, false
br i1 %119, label LBL_20, label LBL_18
LBL_18:
%120 = call i32* @__errno_location()
%121 = load i32, i32* %120, align 4
%122 = icmp eq i32 %121, 4
br i1 %122, label LBL_8.backedge, label LBL_19
LBL_19:
%123 = call i32* @__errno_location()
%124 = load i32, i32* %123, align 4
%125 = call i8* @strerror(i32 %124)
%126 = ptrtoint i8* %125 to i64
%127 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_7, i64 0, i64 0), i64 %126, i64 %27, i64 0, i64 %32, i64 %1)
%128 = call i64 @FUNC(i64 %16)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_41
LBL_20:
%129 = load i32, i32* @gv_5, align 4
%130 = add i32 %129, 63
%131 = icmp slt i32 %129, 0
%132 = select i1 %131, i32 %130, i32 %129
%133 = ashr i32 %132, 6
%134 = sext i32 %133 to i64
%135 = mul i64 %134, 8
%136 = add i64 %135, %28
%137 = inttoptr i64 %136 to i64*
%138 = load i64, i64* %137, align 8
%139 = urem i32 %129, 64
%140 = icmp eq i32 %139, 0
%141 = zext i32 %139 to i64
%142 = shl i64 1, %141
%storemerge8 = select i1 %140, i64 1, i64 %142
%143 = and i64 %storemerge8, %138
%144 = icmp eq i64 %143, 0
br i1 %144, label LBL_25, label LBL_21
LBL_21:
%145 = call i32 @read(i32 %129, i64* nonnull %sv_3, i32 1)
%146 = icmp eq i32 %145, 1
br i1 %146, label LBL_23, label LBL_22
LBL_22:
%147 = ptrtoint i64* %sv_3 to i64
%148 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i64 %147, i64 1, i64 %147, i64 %32, i64 %1)
%149 = call i64 @FUNC(i64 %16)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_41
LBL_23:
%150 = load i32, i32* %36, align 4
%151 = icmp eq i32 %150, 0
%152 = icmp eq i1 %151, false
br i1 %152, label LBL_25, label LBL_24
LBL_24:
%153 = ptrtoint i64* %sv_3 to i64
%154 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_9, i64 0, i64 0), i64 %153, i64 1, i64 %153, i64 %32, i64 %1)
%155 = call i64 @FUNC(i64 %16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_41
LBL_25:
%156 = load i32, i32* %24, align 4
%157 = add i32 %156, 63
%158 = icmp slt i32 %156, 0
%159 = select i1 %158, i32 %157, i32 %156
%160 = ashr i32 %159, 6
%161 = sext i32 %160 to i64
%162 = mul i64 %161, 8
%163 = add i64 %162, %28
%164 = inttoptr i64 %163 to i64*
%165 = load i64, i64* %164, align 8
%166 = urem i32 %156, 64
%167 = icmp eq i32 %166, 0
%168 = zext i32 %166 to i64
%169 = shl i64 1, %168
%storemerge9 = select i1 %167, i64 1, i64 %169
%170 = and i64 %storemerge9, %165
%171 = icmp eq i64 %170, 0
%172 = icmp eq i1 %171, false
br i1 %172, label LBL_30, label LBL_26
LBL_26:
%173 = add i64 %162, %31
%174 = inttoptr i64 %173 to i64*
%175 = load i64, i64* %174, align 8
%176 = and i64 %175, %storemerge9
%177 = icmp eq i64 %176, 0
%178 = icmp eq i1 %177, false
br i1 %178, label LBL_30, label LBL_27
LBL_27:
%179 = load i32, i32* @gv_5, align 4
%180 = add i32 %179, 63
%181 = icmp slt i32 %179, 0
%182 = select i1 %181, i32 %180, i32 %179
%183 = ashr i32 %182, 6
%184 = sext i32 %183 to i64
%185 = mul i64 %184, 8
%186 = add i64 %185, %28
%187 = inttoptr i64 %186 to i64*
%188 = load i64, i64* %187, align 8
%189 = urem i32 %179, 64
%190 = icmp eq i32 %189, 0
%191 = zext i32 %189 to i64
%192 = shl i64 1, %191
%storemerge11 = select i1 %190, i64 1, i64 %192
%193 = and i64 %storemerge11, %188
%194 = icmp eq i64 %193, 0
br i1 %194, label LBL_8.backedge, label LBL_29
LBL_28:
br label LBL_8
LBL_29:
%195 = load i32, i32* %36, align 4
%196 = icmp eq i32 %195, 0
br i1 %196, label LBL_8.backedge, label LBL_30
LBL_30:
%197 = load i32, i32* @gv_5, align 4
%198 = add i32 %197, 63
%199 = icmp slt i32 %197, 0
%200 = select i1 %199, i32 %198, i32 %197
%201 = ashr i32 %200, 6
%202 = sext i32 %201 to i64
%203 = mul i64 %202, 8
%204 = add i64 %203, %28
%205 = inttoptr i64 %204 to i64*
%206 = load i64, i64* %205, align 8
%207 = urem i32 %197, 64
%208 = zext i32 %207 to i64
%209 = icmp eq i32 %207, 0
%210 = shl i64 1, %208
%spec.select14 = select i1 %209, i64 1, i64 %210
%211 = and i64 %spec.select14, %206
%212 = icmp eq i64 %211, 0
br i1 %212, label LBL_32, label LBL_31
LBL_31:
%213 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_10, i64 0, i64 0), i64 %spec.select14, i64 %206, i64 %208, i64 %32, i64 %1)
store i32 0, i32* %38, align 4
br label LBL_32
LBL_32:
%214 = call i64 @FUNC(i64 %16)
%215 = icmp eq i64 %214, 0
%216 = icmp eq i1 %215, false
br i1 %216, label LBL_34, label LBL_33
LBL_33:
%217 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_11, i64 0, i64 0), i64 %spec.select14, i64 %206, i64 %208, i64 %32, i64 %1)
%218 = call i64 @FUNC(i64 %16)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_41
LBL_34:
%219 = inttoptr i64 %214 to i32*
%220 = load i32, i32* %219, align 4
%221 = icmp eq i32 %220, 3
br i1 %221, label LBL_40, label LBL_35
LBL_35:
%222 = icmp sgt i32 %220, 3
br i1 %222, label LBL_39, label LBL_36
LBL_36:
switch i32 %220, label LBL_39 [
i32 1, label LBL_37
i32 2, label LBL_38
]
LBL_37:
%223 = call i64 @FUNC(i64 %214)
%224 = call i64 @FUNC(i64 %16)
store i64 1, i64* %rax.0.reg2mem
br label LBL_41
LBL_38:
%225 = call i64 @FUNC(i64 %214)
%226 = call i64 @FUNC(i64 %16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_41
LBL_39:
%227 = zext i32 %220 to i64
%228 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_12, i64 0, i64 0), i64 %227, i64 %206, i64 %208, i64 %32, i64 %1)
%229 = call i64 @FUNC(i64 %214)
%230 = call i64 @FUNC(i64 %16)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_41
LBL_40:
%231 = call i64 @FUNC(i64 %214)
br label LBL_8.backedge
LBL_41:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %214, { 3, 0, 2, 1, 4, 5 }
uselistorder i64 %spec.select14, { 0, 2, 1 }
uselistorder i32 %207, { 1, 0 }
uselistorder i64 %206, { 0, 1, 3, 2 }
uselistorder i64 %162, { 1, 0 }
uselistorder i32 %129, { 1, 0, 2, 3, 4 }
uselistorder i32 %46, { 4, 5, 0, 3, 2, 1 }
uselistorder i64 %32, { 0, 1, 6, 2, 3, 4, 5 }
uselistorder i64 %27, { 1, 2, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %16, { 2, 1, 0, 3, 4, 6, 8, 9, 10, 12, 5, 7, 11, 13, 14 }
uselistorder i64* %sv_4, { 0, 2, 1 }
uselistorder i64* %sv_3, { 1, 0, 2, 3 }
uselistorder i64* %sv_2, { 2, 0, 1 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv54.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 8, 9, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @gg_event_free, { 3, 2, 1, 0 }
uselistorder i32 3, { 1, 0, 2 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @debug, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i64 (i64)* @gg_free_session, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_41, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }
uselistorder label LBL_8.backedge, { 2, 1, 0, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | megasas_handle_abort_8142 | megasas_handle_abort | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%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
%10 = call i64 @FUNC(i64 %9)
%11 = load i64, i64* %6, align 8
%12 = add i64 %11, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = load i64, i64* %6, align 8
%18 = add i64 %17, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = and i64 %22, 4294967295
%24 = mul i64 %16, 4294967296
%25 = or i64 %23, %24
%26 = call i64 @FUNC(i64 %4, i64 %25)
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
%29 = trunc i64 %1 to i32
br i1 %28, label LBL_2, label LBL_1
LBL_1:
%30 = and i64 %2, 4294967295
%31 = call i64 @FUNC(i64 %30, i64 %10)
%32 = add i32 %29, 1
%33 = bitcast i64* %arg1 to i32*
store i32 %32, i32* %33, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%34 = inttoptr i64 %26 to i32*
%35 = call i64 @FUNC(i64 %4)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
%39 = and i64 %10, 4294967295
%spec.select = select i1 %38, i64 %10, i64 %39
%40 = add i64 %26, 16
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %spec.select, %42
%44 = load i32, i32* %34, align 4
%45 = zext i32 %44 to i64
%46 = and i64 %2, 4294967295
br i1 %43, label LBL_4, label LBL_3
LBL_3:
%47 = call i64 @FUNC(i64 %46, i64 %45, i64 %42)
%48 = add i32 %29, 1
%49 = bitcast i64* %arg1 to i32*
store i32 %48, i32* %49, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%50 = call i64 @FUNC(i64 %46, i64 %45)
%51 = call i64 @FUNC(i64 %26)
%52 = add i64 %4, 8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp ne i64 %54, 0
%56 = icmp eq i64 %54, %26
%or.cond = icmp eq i1 %55, %56
store i32 %29, i32* %.reg2mem
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
store i64 0, i64* %53, align 8
%.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i32, i32* %.reg2mem
%57 = add i32 %.reload, 1
%58 = bitcast i64* %arg1 to i32*
store i32 %57, i32* %58, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %45, { 1, 0 }
uselistorder i64 %10, { 0, 2, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | sel_remove_entries_4444 | sel_remove_entries | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = add i64 %arg1, 40
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %arg1, 32
%3 = inttoptr i64 %2 to i64*
store i64 %0, i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = add i64 %storemerge1.reload, 24
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = call i64 @FUNC(i64 %storemerge1.reload)
%7 = add i64 %storemerge1.reload, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %storemerge1.reload, -16
%12 = call i64 @FUNC(i64 %11)
%13 = call i64 @FUNC(i64 %0)
%14 = call i64 @FUNC(i64 %4)
%15 = call i64 @FUNC(i64 %11)
%16 = load i64, i64* %3, align 8
%17 = call i64 @FUNC(i64 %16, i64 %11)
%18 = call i64 @FUNC(i64 %11)
%19 = call i64 @FUNC(i64 %0)
store i64 %0, i64* %rdi.0.reg2mem
br label LBL_4
LBL_3:
%20 = call i64 @FUNC(i64 %4)
store i64 %4, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%21 = icmp eq i64 %rdi.0.reload, %arg1
%22 = icmp eq i1 %21, false
store i64 %rdi.0.reload, i64* %storemerge1.reg2mem
br i1 %22, label LBL_1, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %0)
ret i64 %23
uselistorder i64 %rdi.0.reload, { 1, 0 }
uselistorder i64 %11, { 0, 2, 1, 3 }
uselistorder i64 %4, { 0, 2, 1, 3 }
uselistorder i64 %storemerge1.reload, { 0, 3, 2, 1 }
uselistorder i64 %0, { 2, 0, 3, 4, 1, 5 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @spin_unlock, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @spin_lock, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | parse_inputs_17546 | parse_inputs | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 91
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_7
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %arg4)
%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_8
LBL_2:
%6 = ptrtoint i64* %arg3 to i64
%7 = call i64 @FUNC(i64 %3, i64 %6)
store i64 %7, i64* %sv_0, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %3)
br label LBL_6
LBL_4:
%10 = call i64 @FUNC(i64 24)
store i64 %10, i64* %sv_0, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_8
LBL_5:
%13 = inttoptr i64 %10 to i64*
store i64 %3, i64* %13, align 8
%14 = load i64, i64* %sv_0, align 8
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
br label LBL_6
LBL_6:
%17 = ptrtoint i64* %sv_1 to i64
%18 = bitcast i64* %sv_1 to i8*
%19 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %sv_0)
%20 = call i32 @strspn(i8* nonnull %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%21 = sext i32 %20 to i64
%22 = add i64 %21, %17
store i64 %22, i64* %arg1, align 8
store i64 1, i64* %storemerge.lcssa.reg2mem
br label LBL_7
LBL_7:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
%23 = call i64 @FUNC(i64* nonnull %sv_1, i64* %arg2)
%24 = load i64, i64* %sv_1, align 8
store i64 %24, i64* %arg2, align 8
store i64 %storemerge.lcssa.reload, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64* %sv_1, { 3, 0, 2, 1, 4, 5 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_8, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | qemu_co_rwlock_rdlock_1189 | 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 = call i64 @FUNC()
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = add i64 %2, 8
br label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %7)
br label LBL_2
LBL_3:
%9 = inttoptr i64 %3 to i32*
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i32 %12, 1
store i32 %13, i32* %11, align 4
%14 = load i32, i32* %9, align 4
%15 = add i32 %14, 1
store i32 %15, i32* %9, align 4
ret i64 %3
uselistorder i32* %9, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
} | 0 |
BinRealVul | pgx_getc_9553 | pgx_getc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.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, -1
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = icmp eq i32 %2, 35
store i64 %1, i64* %.lcssa.reg2mem
br i1 %5, label LBL_4, label LBL_5
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, -1
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_8
LBL_3:
%10 = icmp eq i32 %7, 35
store i64 %6, i64* %.lcssa.reg2mem
br i1 %10, label LBL_4, label LBL_5
LBL_4:
br label LBL_6
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%11 = and i64 %.lcssa.reload, 4294967295
store i64 %11, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_7, label LBL_8
LBL_7:
%16 = icmp ne i32 %13, 10
%17 = icmp eq i32 %13, 13
%18 = icmp eq i1 %17, false
%or.cond = icmp eq i1 %16, %18
br i1 %or.cond, label LBL_6, label LBL_2
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i32 35, { 1, 0 }
uselistorder i64 4294967295, { 1, 3, 0, 2 }
uselistorder i64 (i64)* @jas_stream_getc, { 2, 1, 0 }
uselistorder label LBL_8, { 1, 3, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | cancel_att_send_op_11017 | cancel_att_send_op | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 0, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 0, i64* %4, align 8
store i64 0, i64* %arg1, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | dns_packet_read_key_8645 | dns_packet_read_key | define i64 @FUNC(i32* %arg1, i64* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rbx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32*, align 8
%sv_4 = alloca i64, align 8
store i64 0, i64* %sv_4, align 8
%2 = icmp eq i32* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = icmp eq i64* %arg2, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 75, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%6 = ptrtoint i32* %arg1 to i64
%7 = bitcast i32** %sv_3 to i64*
store i64 %6, i64* %7, align 8
%8 = call i64 @FUNC(i64 %6, i64* nonnull %sv_4, i64 1, i64 0)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = and i64 %8, 4294967295
store i64 %12, i64* %rbx.0.reg2mem
br label LBL_19
LBL_6:
%13 = bitcast i32* %sv_2 to i64*
%14 = call i64 @FUNC(i64 %6, i64* nonnull %13, i64 0)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_8, label LBL_7
LBL_7:
%18 = and i64 %14, 4294967295
store i64 %18, i64* %rbx.0.reg2mem
br label LBL_19
LBL_8:
%19 = bitcast i32* %sv_1 to i64*
%20 = call i64 @FUNC(i64 %6, i64* nonnull %19, i64 0)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_10, label LBL_9
LBL_9:
%24 = and i64 %20, 4294967295
store i64 %24, i64* %rbx.0.reg2mem
br label LBL_19
LBL_10:
%25 = trunc i64 %1 to i32
%26 = icmp eq i32 %25, 1
%27 = icmp eq i1 %26, false
%.pre = load i32, i32* %sv_2, align 4
%28 = trunc i32 %.pre to i16
%29 = icmp eq i16 %28, -310
%or.cond = or i1 %27, %29
%.pre7 = load i32, i32* %sv_1, align 4
store i32 %.pre7, i32* %.reg2mem
store i8 0, i8* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_13, label LBL_11
LBL_11:
%30 = trunc i32 %.pre7 to i16
%31 = icmp slt i16 %30, 0
%32 = icmp eq i1 %31, false
store i32 %.pre7, i32* %.reg2mem
store i8 0, i8* %sv_0.0.reg2mem
br i1 %32, label LBL_13, label LBL_12
LBL_12:
%33 = urem i32 %.pre7, 32768
store i32 %33, i32* %sv_1, align 4
store i32 %33, i32* %.reg2mem
store i8 1, i8* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%.reload = load i32, i32* %.reg2mem
%34 = load i64, i64* %sv_4, align 8
%35 = urem i32 %.pre, 65536
%36 = zext i32 %35 to i64
%37 = urem i32 %.reload, 65536
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38, i64 %36, i64 %34)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 4294967284, i64* %rbx.0.reg2mem
br i1 %41, label LBL_14, label LBL_19
LBL_14:
store i64 0, i64* %sv_4, align 8
store i64 %39, i64* %arg2, align 8
%42 = icmp eq i8* %arg3, null
br i1 %42, label LBL_16, label LBL_15
LBL_15:
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
store i8 %sv_0.0.reload, i8* %arg3, align 1
br label LBL_16
LBL_16:
%43 = icmp eq i64* %arg4, null
br i1 %43, label LBL_18, label LBL_17
LBL_17:
store i64 0, i64* %arg4, align 8
br label LBL_18
LBL_18:
store i32* null, i32** %sv_3, align 8
store i64 0, i64* %rbx.0.reg2mem
br label LBL_19
LBL_19:
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
%44 = call i64 @FUNC(i64* nonnull %sv_4)
%45 = call i64 @FUNC(i64* nonnull %7)
ret i64 %rbx.0.reload
uselistorder i32 %.pre7, { 2, 1, 3, 0 }
uselistorder i64 %6, { 1, 0, 3, 2 }
uselistorder i64* %sv_4, { 0, 2, 3, 1, 4 }
uselistorder i32** %sv_3, { 1, 0 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 3, 1 }
uselistorder i8* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rbx.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder i64 (i64, i64*, i64)* @dns_packet_read_uint16, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i32* null, { 1, 0 }
uselistorder i8* %arg3, { 1, 0 }
uselistorder label LBL_19, { 1, 0, 2, 3, 4 }
uselistorder label LBL_13, { 1, 2, 0 }
} | 0 |
BinRealVul | spi_imx_setupxfer_18369 | spi_imx_setupxfer | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
ret i64 0
} | 1 |
BinRealVul | floppy_probe_device_16635 | floppy_probe_device | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i32, i32* %0
%sv_1 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%spec.select = select i1 %8, i32 0, i32 50
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%9 = call i64 @FUNC(i64 %arg1, i64 0)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %11, label LBL_7, label LBL_3
LBL_3:
%12 = bitcast i64* %sv_1 to %stat*
%13 = call i32 @fstat(i32 %10, %stat* nonnull %12)
%14 = icmp eq i32 %13, -1
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %14, label LBL_6, label LBL_4
LBL_4:
%15 = and i32 %1, 61440
%16 = icmp eq i32 %15, 24576
%17 = icmp eq i1 %16, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i32 (i32, i32, ...) @ioctl(i32 %10, i32 0)
%19 = icmp slt i32 %18, 0
%spec.select1 = select i1 %19, i32 %sv_0.0.reload, i32 100
store i32 %spec.select1, i32* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%20 = and i64 %9, 4294967295
%21 = call i64 @FUNC(i64 %20)
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_7
LBL_7:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%22 = zext i32 %sv_0.2.reload to i64
ret i64 %22
uselistorder i32 %sv_0.0.reload, { 3, 1, 2, 0 }
uselistorder i32 0, { 3, 2, 4, 1, 5, 0, 6, 7 }
uselistorder i64 (i64, i8*, i64)* @strstart, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 0, 2, 1 }
} | 1 |
BinRealVul | blkdebug_debug_resume_2738 | blkdebug_debug_resume | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%storemerge2.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%1 = icmp eq i64 %storemerge.reload, 0
store i64 4294967294, i64* %storemerge2.reg2mem
br i1 %1, label LBL_4, label LBL_2
LBL_2:
%2 = add i64 %storemerge.reload, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %storemerge.reload to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i8*
%8 = call i32 @strcmp(i8* %7, i8* %arg2)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %4, i64* %storemerge.reg2mem
br i1 %10, label LBL_1, label LBL_3
LBL_3:
%11 = add i64 %storemerge.reload, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13, i64 0)
store i64 0, i64* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i64 %storemerge.reload, { 3, 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | hmp_migrate_status_cb_3064 | hmp_migrate_status_cb | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%rdi.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 i64* %arg1 to i64
%6 = call i64 @FUNC(i64 0)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rdi.0.reg2mem
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = add i64 %6, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i8*
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
store i64 %12, i64* %rdi.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = load i64, i64* %11, align 8
%17 = inttoptr i64 %16 to i8*
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 %16, i64* %rdi.0.reg2mem
br i1 %20, label LBL_8, label LBL_3
LBL_3:
%21 = add i64 %6, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_7, label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%25 = add i64 %6, 24
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 0
store i32 100, i32* %storemerge.reg2mem
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = add i64 %27, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = mul i32 %33, 100
%35 = add i64 %27, 8
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
%39 = ashr i32 %34, 31
%40 = zext i32 %34 to i64
%41 = zext i32 %39 to i64
%42 = mul i64 %41, 4294967296
%43 = or i64 %42, %40
%44 = sdiv i64 %43, %38
%45 = trunc i64 %44 to i32
store i64 %38, i64* %rcx.0.reg2mem
store i32 %45, i32* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%46 = call i64 @FUNC(i64 %rdi.0.reload, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i32 %storemerge.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
%47 = call i64 @FUNC(i64 %rdi.0.reload)
br label LBL_7
LBL_7:
%48 = call i64 @FUNC(i64 0)
%49 = add i64 %48, 1000
%50 = add i64 %5, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = and i64 %49, 4294967295
%54 = call i64 @FUNC(i64 %52, i64 %53)
br label LBL_11
LBL_8:
%55 = add i64 %5, 16
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_10, label LBL_9
LBL_9:
%59 = trunc i64 %3 to i32
%60 = call i64 @FUNC(i64 %16, i8* inttoptr (i64 4202542 to i8*), i32 %59, i64 %4, i64 %2, i64 %1)
br label LBL_10
LBL_10:
%61 = call i64 @FUNC(i64 %16)
%62 = add i64 %5, 8
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %64)
%66 = call i64 @FUNC(i64 %5)
br label LBL_11
LBL_11:
%67 = call i64 @FUNC(i64 %6)
ret i64 %67
uselistorder i64 %16, { 2, 1, 0, 3 }
uselistorder i64 %6, { 0, 2, 1, 3, 4 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @monitor_printf, { 1, 0 }
uselistorder i32 100, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 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.