dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | lm4549_write_samples_17067 | lm4549_write_samples | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4096
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp ult i32 %3, 1024
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_2:
%6 = add i32 %3, 1
store i32 %6, i32* %2, align 4
%7 = trunc i64 %arg2 to i32
%8 = udiv i32 %7, 16
%9 = zext i32 %3 to i64
%10 = mul i64 %9, 4
%11 = add i64 %10, %0
%12 = inttoptr i64 %11 to i32*
store i32 %8, i32* %12, align 4
%13 = load i32, i32* %2, align 4
%14 = add i32 %13, 1
store i32 %14, i32* %2, align 4
%15 = udiv i32 %arg3, 16
%16 = zext i32 %13 to i64
%17 = mul i64 %16, 4
%18 = add i64 %17, %0
%19 = inttoptr i64 %18 to i32*
store i32 %15, i32* %19, align 4
%20 = load i32, i32* %2, align 4
%21 = icmp eq i32 %20, 1024
%22 = icmp eq i1 %21, false
store i64 1, i64* %storemerge.reg2mem
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %0)
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i32* %2, { 0, 2, 1, 3, 4 }
uselistorder i64 %0, { 2, 0, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | rtnetlink_fill_iwinfo_11535 | rtnetlink_fill_iwinfo | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rsi = alloca i64, align 8
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = bitcast i64* %rsi to i32*
%8 = load i32, i32* %7, align 8
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %0, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %4, 12
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %0, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %4, 16
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %4, 20
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%23 = load i64, i64* %3, align 8
%24 = sub i64 %23, %4
%25 = trunc i64 %24 to i32
%26 = inttoptr i64 %4 to i32*
store i32 %25, i32* %26, align 4
%27 = add i64 %1, 16
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
ret i64 %30
uselistorder i64 %4, { 1, 6, 5, 4, 3, 2, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
} | 1 |
BinRealVul | mp_grow_6067 | mp_grow | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 2, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp sgt i64 %4, %8
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = ashr exact i64 %sext, 30
%11 = sext i32 %7 to i64
%12 = mul i64 %11, 4
%13 = call i64 @FUNC(i64 %3, i64 %12, i64 %10)
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 1, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_3:
store i64 %13, i64* %arg1, align 8
%16 = load i32, i32* %6, align 4
%17 = trunc i64 %4 to i32
store i32 %17, i32* %6, align 4
%18 = sub i32 %17, %16
%19 = sext i32 %16 to i64
%20 = mul i64 %19, 4
%21 = add i64 %20, %3
%22 = zext i32 %18 to i64
%23 = call i64 @FUNC(i64 %21, i64 %22)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %6, { 1, 0, 2 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder label LBL_4, { 0, 2, 1, 3 }
} | 0 |
BinRealVul | init_directory_7414 | init_directory | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.pre-phi19.reg2mem = alloca i64
%storemerge68.reg2mem = alloca i32
%.reg2mem20 = alloca i32
%.reg2mem = alloca i32
%sv_0.211.reg2mem = alloca i32
%indvars.iv14.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 68
%4 = inttoptr i64 %3 to i64*
%5 = call i64* @memset(i64* %4, i32 0, i32 32768)
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i32*
store i32 252, i32* %7, align 4
%8 = add i64 %2, 20
%9 = inttoptr i64 %8 to i32*
store i32 16, i32* %9, align 4
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i32*
store i32 8192, i32* %11, align 4
%12 = call i64* @malloc(i32 8192)
%13 = ptrtoint i64* %12 to i64
%14 = add i64 %2, 48
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = add i64 %2, 56
%17 = call i64 @FUNC(i64 %16, i64 276)
%18 = add i64 %2, 60
%19 = call i64 @FUNC(i64 %18, i64 20)
%20 = add i64 %2, 64
%21 = call i64 @FUNC(i64 %20, i64 8)
%22 = call i64 @FUNC(i64 %18)
%23 = add i64 %22, 8
%24 = inttoptr i64 %23 to i8*
store i8 40, i8* %24, align 1
%25 = add i64 %22, 9
%26 = inttoptr i64 %25 to i8*
%27 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %26, i32 11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
%28 = call i64 @FUNC(i64 %2, i64 %arg2, i64 0)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
store i64 4294967295, i64* %rax.1.reg2mem
br i1 %30, label LBL_1, label LBL_26
LBL_1:
%31 = bitcast i64* %rdi to i32*
%32 = inttoptr i64 %18 to i32*
%33 = load i32, i32* %32, align 4
%34 = udiv i32 %33, 16
%35 = add i64 %2, 36
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = load i32, i32* %31, align 8
%38 = load i32, i32* %7, align 4
%39 = mul i32 %38, 2
%40 = add i32 %37, %34
%41 = add i32 %40, %39
%42 = add i64 %2, 32
%43 = inttoptr i64 %42 to i32*
store i32 %41, i32* %43, align 4
%44 = add i64 %2, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = sub i32 %46, %41
%48 = load i32, i32* %9, align 4
%49 = udiv i32 %47, %48
%50 = add i64 %2, 28
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = call i64 @FUNC(i64 %2)
%53 = load i32, i32* %36, align 4
%54 = load i32, i32* %9, align 4
%55 = urem i32 %53, %54
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_2, i64 0, i64 0), i32 136, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0))
br label LBL_3
LBL_3:
%57 = udiv i32 %53, %54
%58 = add i64 %2, 12
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label LBL_5, label LBL_4
LBL_4:
%62 = add i32 %60, -1
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %16, i64 %63)
%65 = add i64 %64, 4
%66 = inttoptr i64 %65 to i32*
store i32 %57, i32* %66, align 4
br label LBL_5
LBL_5:
%67 = inttoptr i64 %16 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp ugt i32 %68, 1
store i64 1, i64* %indvars.iv14.reg2mem
store i32 %57, i32* %sv_0.211.reg2mem
br i1 %69, label LBL_6, label LBL_23
LBL_6:
%sv_0.211.reload = load i32, i32* %sv_0.211.reg2mem
%indvars.iv14.reload = load i64, i64* %indvars.iv14.reg2mem
%70 = call i64 @FUNC(i64 %16, i64 %indvars.iv14.reload)
%71 = inttoptr i64 %70 to i32*
%72 = add i64 %70, 12
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = zext i32 %74 to i64
%76 = call i64 @FUNC(i64 %18, i64 %75)
%77 = add i64 %70, 8
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = icmp eq i32 %79, 1
%81 = icmp eq i1 %80, false
br i1 %81, label LBL_13, label LBL_7
LBL_7:
%82 = load i32, i32* %71, align 4
%83 = add i64 %70, 4
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = icmp ult i32 %82, %85
store i32 %85, i32* %.reg2mem
store i32 %82, i32* %.reg2mem20
br i1 %86, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_2, i64 0, i64 0), i32 148, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i32, i32* %71, align 4
%.pre16 = load i32, i32* %84, align 4
store i32 %.pre16, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem20
br label LBL_9
LBL_9:
%.reload21 = load i32, i32* %.reg2mem20
%.reload = load i32, i32* %.reg2mem
%87 = add i32 %.reload, -1
%88 = icmp ugt i32 %87, %.reload21
store i32 %.reload21, i32* %storemerge68.reg2mem
br i1 %88, label LBL_11, label LBL_9.LBL_12_crit_edge
LBL_10:
%.pre18 = zext i32 %.reload21 to i64
store i64 %.pre18, i64* %.pre-phi19.reg2mem
br label LBL_12
LBL_11:
%storemerge68.reload = load i32, i32* %storemerge68.reg2mem
%89 = add i32 %storemerge68.reload, 1
%90 = zext i32 %89 to i64
%91 = zext i32 %storemerge68.reload to i64
%92 = call i64 @FUNC(i64 %2, i64 %91, i64 %90)
%93 = load i32, i32* %84, align 4
%94 = add i32 %93, -1
%95 = icmp ugt i32 %94, %89
store i32 %89, i32* %storemerge68.reg2mem
store i64 %90, i64* %.pre-phi19.reg2mem
br i1 %95, label LBL_11, label LBL_12
LBL_12:
%.pre-phi19.reload = load i64, i64* %.pre-phi19.reg2mem
%96 = call i64 @FUNC(i64 %2, i64 %.pre-phi19.reload, i64 2147483647)
store i32 %sv_0.211.reload, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_13:
%97 = add i64 %70, 4
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = load i32, i32* %11, align 4
%101 = udiv i32 %99, %100
%102 = add i32 %101, %sv_0.211.reload
%103 = load i32, i32* %51, align 4
%104 = icmp ult i32 %102, %103
br i1 %104, label LBL_15, label LBL_14
LBL_14:
%105 = add i64 %2, 32836
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = zext i32 %107 to i64
%109 = load %_IO_FILE*, %_IO_FILE** @gv_5, align 8
%110 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %109, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_6, i64 0, i64 0), i64 %108)
store i64 4294967295, i64* %rax.1.reg2mem
br label LBL_26
LBL_15:
%111 = inttoptr i64 %76 to i32*
store i32 %sv_0.211.reload, i32* %71, align 4
store i32 0, i32* %78, align 4
%112 = add i64 %70, 272
%113 = inttoptr i64 %112 to i32*
store i32 0, i32* %113, align 4
%114 = load i32, i32* %98, align 4
%115 = zext i32 %114 to i64
%116 = call i64 @FUNC(i64 %115)
%117 = trunc i64 %116 to i32
store i32 %117, i32* %111, align 4
%118 = icmp eq i32 %117, 0
%119 = icmp eq i1 %118, false
br i1 %119, label LBL_17, label LBL_16
LBL_16:
%120 = add i64 %76, 4
%121 = inttoptr i64 %120 to i32*
store i32 0, i32* %121, align 4
store i32 %sv_0.211.reload, i32* %98, align 4
store i32 %sv_0.211.reload, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_17:
%122 = zext i32 %sv_0.211.reload to i64
%123 = call i64 @FUNC(i64 %122)
%124 = trunc i64 %123 to i32
%125 = add i64 %76, 4
%126 = inttoptr i64 %125 to i32*
store i32 %124, i32* %126, align 4
%127 = add i32 %102, 1
store i32 %127, i32* %98, align 4
%128 = icmp ult i32 %sv_0.211.reload, %102
store i64 %122, i64* %.pre-phi.reg2mem
store i32 %sv_0.211.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %128, label LBL_18, label LBL_21
LBL_18:
%129 = zext i32 %102 to i64
store i64 %122, i64* %indvars.iv.reg2mem
br label LBL_19
LBL_19:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%130 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i64 %indvars.iv.next)
%131 = icmp ult i64 %indvars.iv.next, %129
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %131, label LBL_19, label LBL_20
LBL_20:
%132 = trunc i64 %indvars.iv.next to i32
%.pre17 = and i64 %indvars.iv.next, 4294967295
store i64 %.pre17, i64* %.pre-phi.reg2mem
store i32 %132, i32* %sv_0.0.lcssa.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%133 = call i64 @FUNC(i64 %2, i64 %.pre-phi.reload, i64 2147483647)
%134 = add i32 %sv_0.0.lcssa.reload, 1
store i32 %134, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_22:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%indvars.iv.next15 = add nuw nsw i64 %indvars.iv14.reload, 1
%135 = load i32, i32* %67, align 4
%136 = zext i32 %135 to i64
%137 = icmp ult i64 %indvars.iv.next15, %136
store i64 %indvars.iv.next15, i64* %indvars.iv14.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.211.reg2mem
br i1 %137, label LBL_6, label LBL_23
LBL_23:
%138 = mul i64 %1, 512
%139 = add i64 %138, 4294966784
%140 = and i64 %139, 4294966784
%141 = or i64 %140, 64
%142 = add i64 %141, %2
%143 = add i64 %142, 4
%144 = inttoptr i64 %143 to i8*
%145 = add i64 %2, 40
%146 = inttoptr i64 %145 to i32*
store i32 0, i32* %146, align 4
store i8 -21, i8* %144, align 1
%147 = add i64 %142, 5
%148 = inttoptr i64 %147 to i8*
store i8 62, i8* %148, align 1
%149 = add i64 %142, 6
%150 = inttoptr i64 %149 to i8*
store i8 -112, i8* %150, align 1
%151 = add i64 %142, 7
%152 = inttoptr i64 %151 to i64*
%153 = call i64* @memcpy(i64* %152, i64* bitcast ([9 x i8]* @gv_7 to i64*), i32 8)
%154 = call i64 @FUNC(i64 512)
%155 = trunc i64 %154 to i16
%156 = add i64 %142, 16
%157 = inttoptr i64 %156 to i16*
store i16 %155, i16* %157, align 2
%158 = load i32, i32* %9, align 4
%159 = trunc i32 %158 to i8
%160 = add i64 %142, 18
%161 = inttoptr i64 %160 to i8*
store i8 %159, i8* %161, align 1
%162 = call i64 @FUNC(i64 1)
%163 = trunc i64 %162 to i16
%164 = add i64 %142, 20
%165 = inttoptr i64 %164 to i16*
store i16 %163, i16* %165, align 2
%166 = add i64 %142, 22
%167 = inttoptr i64 %166 to i8*
store i8 2, i8* %167, align 1
%168 = add i64 %2, 8
%169 = inttoptr i64 %168 to i32*
%170 = load i32, i32* %169, align 4
%171 = mul i32 %170, 16
%172 = zext i32 %171 to i64
%173 = call i64 @FUNC(i64 %172)
%174 = trunc i64 %173 to i16
%175 = add i64 %142, 24
%176 = inttoptr i64 %175 to i16*
store i16 %174, i16* %176, align 2
%177 = add i64 %142, 26
%178 = inttoptr i64 %177 to i8*
store i8 0, i8* %178, align 1
%179 = load i32, i32* %31, align 8
%180 = icmp eq i32 %179, 1
%181 = icmp eq i1 %180, false
%. = select i1 %181, i8 -8, i8 -16
%182 = add i64 %142, 27
%183 = inttoptr i64 %182 to i8*
store i8 %., i8* %183, align 1
%184 = load i32, i32* %7, align 4
%185 = zext i32 %184 to i64
%186 = call i64 @FUNC(i64 %185)
%187 = trunc i64 %186 to i16
%188 = add i64 %142, 28
%189 = inttoptr i64 %188 to i16*
store i16 %187, i16* %189, align 2
%190 = call i64 @FUNC(i64 63)
%191 = trunc i64 %190 to i16
%192 = add i64 %142, 30
%193 = inttoptr i64 %192 to i16*
store i16 %191, i16* %193, align 2
%194 = call i64 @FUNC(i64 16)
%195 = trunc i64 %194 to i16
%196 = add i64 %142, 32
%197 = inttoptr i64 %196 to i16*
store i16 %195, i16* %197, align 2
%198 = load i32, i32* %31, align 8
%199 = icmp eq i32 %198, 1
%200 = icmp eq i1 %199, false
%storemerge = select i1 %200, i64 63, i64 0
%201 = call i64 @FUNC(i64 %storemerge)
%202 = trunc i64 %201 to i32
%203 = add i64 %142, 36
%204 = inttoptr i64 %203 to i32*
store i32 %202, i32* %204, align 4
%205 = load i32, i32* %45, align 4
%206 = zext i32 %205 to i64
%207 = call i64 @FUNC(i64 %206)
%208 = trunc i64 %207 to i32
%209 = add i64 %142, 40
%210 = inttoptr i64 %209 to i32*
store i32 %208, i32* %210, align 4
%211 = add i64 %142, 44
%212 = inttoptr i64 %211 to i8*
store i8 -128, i8* %212, align 1
%213 = add i64 %142, 45
%214 = inttoptr i64 %213 to i8*
store i8 0, i8* %214, align 1
%215 = add i64 %142, 46
%216 = inttoptr i64 %215 to i8*
store i8 41, i8* %216, align 1
%217 = call i64 @FUNC(i64 4206762749)
%218 = trunc i64 %217 to i32
%219 = add i64 %142, 48
%220 = inttoptr i64 %219 to i32*
store i32 %218, i32* %220, align 4
%221 = add i64 %142, 52
%222 = inttoptr i64 %221 to i64*
%223 = call i64* @memcpy(i64* %222, i64* bitcast ([12 x i8]* @gv_8 to i64*), i32 11)
%224 = add i64 %2, 32836
%225 = inttoptr i64 %224 to i32*
%226 = load i32, i32* %225, align 4
%227 = icmp eq i32 %226, 12
store i64 ptrtoint ([9 x i8]* @gv_9 to i64), i64* %rax.0.reg2mem
br i1 %227, label LBL_25, label LBL_24
LBL_24:
%228 = icmp eq i32 %226, 16
%229 = icmp eq i1 %228, false
%.7 = select i1 %229, i64 ptrtoint ([9 x i8]* @gv_10 to i64), i64 ptrtoint ([9 x i8]* @gv_11 to i64)
store i64 %.7, i64* %rax.0.reg2mem
br label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%230 = add i64 %142, 64
%231 = inttoptr i64 %rax.0.reload to i64*
%232 = load i64, i64* %231, align 8
%233 = inttoptr i64 %230 to i64*
store i64 %232, i64* %233, align 8
%234 = add i64 %142, 72
%235 = inttoptr i64 %234 to i8*
store i8 85, i8* %235, align 1
%236 = add i64 %142, 73
%237 = inttoptr i64 %236 to i8*
store i8 -86, i8* %237, align 1
store i64 0, i64* %rax.1.reg2mem
br label LBL_26
LBL_26:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %indvars.iv.next, { 1, 2, 0, 3, 4 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i64 %122, { 1, 0, 2 }
uselistorder i32* %98, { 1, 0, 2, 3 }
uselistorder i32 %storemerge68.reload, { 1, 0 }
uselistorder i32 %.reload21, { 2, 0, 1 }
uselistorder i32* %84, { 1, 0, 2 }
uselistorder i32* %71, { 1, 0, 2 }
uselistorder i64 %70, { 0, 1, 2, 4, 5, 3 }
uselistorder i32 %sv_0.211.reload, { 2, 3, 5, 1, 4, 6, 7, 0 }
uselistorder i32* %67, { 1, 0 }
uselistorder i32 %54, { 1, 0 }
uselistorder i32 %53, { 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %16, { 2, 1, 0, 3 }
uselistorder i64 %2, { 1, 2, 8, 0, 5, 6, 7, 3, 4, 9, 10, 12, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }
uselistorder i64* %indvars.iv14.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.211.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem20, { 0, 2, 1 }
uselistorder i32* %storemerge68.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 512, { 1, 0 }
uselistorder i64 (i64)* @cpu_to_le16, { 6, 5, 4, 2, 1, 0, 3 }
uselistorder i64 (i64)* @cpu_to_le32, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @fat_set, { 2, 3, 0, 1 }
uselistorder i64 1, { 3, 1, 2, 0 }
uselistorder i64 (i64, i64)* @array_get, { 2, 1, 0 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64 4, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 4294967295, { 2, 1, 0, 3, 4 }
uselistorder i64 8, { 2, 1, 3, 0 }
uselistorder i64 64, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @array_init, { 2, 1, 0 }
uselistorder i64* (i32)* @malloc, { 2, 1, 0 }
uselistorder i32 16, { 2, 0, 1, 3 }
uselistorder i64 16, { 1, 0, 2 }
uselistorder label LBL_26, { 1, 2, 0 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | gf_odf_read_ipmp_tool_6347 | gf_odf_read_ipmp_tool | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_1 = alloca i32, align 4
%0 = icmp eq i64* %arg2, null
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_12
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 16)
%5 = call i64 @FUNC(i64 %3, i64 1)
%6 = trunc i64 %5 to i32
%7 = call i64 @FUNC(i64 %3, i64 1)
%8 = call i64 @FUNC(i64 %3, i64 6)
%9 = icmp eq i32 %6, 0
store i32 17, i32* %sv_0.1.reg2mem
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %3, i64 8)
%11 = trunc i64 %10 to i32
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = icmp eq i32 %11, 0
store i32 18, i32* %sv_0.1.reg2mem
br i1 %14, label LBL_6, label LBL_3
LBL_3:
%15 = add i64 %2, 20
store i64 0, i64* %indvars.iv.reg2mem
store i32 18, i32* %sv_0.03.reg2mem
br label LBL_4
LBL_4:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%16 = add i32 %sv_0.03.reload, 16
%17 = icmp ugt i32 %16, %arg3
%18 = icmp eq i1 %17, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_12
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%19 = mul i64 %indvars.iv.reload, 16
%20 = add i64 %15, %19
%21 = call i64 @FUNC(i64 %3, i64 %20, i64 16)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%22 = load i32, i32* %13, align 4
%23 = zext i32 %22 to i64
%24 = icmp ult i64 %indvars.iv.next, %23
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %16, i32* %sv_0.03.reg2mem
store i32 %16, i32* %sv_0.1.reg2mem
br i1 %24, label LBL_4, label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%25 = icmp ugt i32 %sv_0.1.reload, %arg3
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %25, label LBL_12, label LBL_7
LBL_7:
%26 = icmp ult i32 %sv_0.1.reload, %arg3
%27 = icmp eq i1 %26, false
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %27, label LBL_11, label LBL_8
LBL_8:
%28 = bitcast i32* %sv_1 to i64*
%29 = call i64 @FUNC(i64 %3, i64* nonnull %28)
%30 = load i32, i32* %sv_1, align 4
%31 = icmp ult i32 %30, 16777216
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %31, label LBL_9, label LBL_12
LBL_9:
%32 = trunc i64 %29 to i32
%33 = add i32 %sv_0.1.reload, %32
%34 = icmp eq i32 %30, 0
store i32 %33, i32* %sv_0.2.reg2mem
br i1 %34, label LBL_11, label LBL_10
LBL_10:
%35 = add i32 %30, 1
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = add i64 %2, 280
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = load i32, i32* %sv_1, align 4
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 %3, i64 %37, i64 %41)
%43 = load i64, i64* %39, align 8
%44 = load i32, i32* %sv_1, align 4
%45 = zext i32 %44 to i64
%46 = add i64 %43, %45
%47 = inttoptr i64 %46 to i8*
store i8 0, i8* %47, align 1
%48 = load i32, i32* %sv_1, align 4
%49 = add i32 %48, %33
store i32 %49, i32* %sv_0.2.reg2mem
br label LBL_11
LBL_11:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%50 = icmp eq i32 %sv_0.2.reload, %arg3
%. = select i1 %50, i64 0, i64 4294967293
store i64 %., i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %33, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 3, 0, 1, 2 }
uselistorder i64 %3, { 2, 3, 0, 1, 7, 6, 5, 4 }
uselistorder i64 %2, { 2, 0, 1, 3 }
uselistorder i32* %sv_1, { 3, 2, 1, 0, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1, 5 }
uselistorder i64 4294967294, { 1, 2, 0 }
uselistorder i32 18, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @gf_bs_read_data, { 2, 1, 0 }
uselistorder i64 16, { 1, 0, 3, 2 }
uselistorder i32 %arg3, { 1, 3, 2, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 3, 0, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | gf_memory_log_12312 | gf_memory_log | define i64 @FUNC(i64 %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = call i32 @strlen(i8* %arg2)
%22 = icmp ult i32 %21, 200
br i1 %22, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
store i32 16, i32* %sv_1, align 4
%23 = ptrtoint i32* %sv_1 to i64
%24 = bitcast i64* %sv_0 to i8*
%25 = call i32 @vsprintf(i8* nonnull %24, i8* %arg2, i64 %23)
%26 = trunc i64 %arg1 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i32 %26, i64 1, i64* nonnull %sv_0)
%28 = sext i32 %27 to i64
ret i64 %28
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | mxf_packet_timestamps_13880 | mxf_packet_timestamps | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp slt i32 %2, 1
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 16
%7 = add i64 %5, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i32 %9, 1
%11 = zext i32 %10 to i64
%12 = ptrtoint i64* %sv_1 to i64
%13 = call i64 @FUNC(i64 %5, i64 %6, i64 %11, i64 0, i64* nonnull %sv_1, i64 0)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
store i64 -1, i64* %sv_0.06.reg2mem
br i1 %15, label LBL_6, label LBL_2
LBL_2:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%16 = load i64, i64* %sv_1, align 8
%17 = icmp slt i64 %sv_0.06.reload, %16
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20, i64 0, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %12, i64 0)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%22 = icmp slt i64 %6, %16
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = load i32, i32* %8, align 4
%24 = add i32 %23, 1
store i32 %24, i32* %8, align 4
%25 = add i32 %23, 2
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %5, i64 %6, i64 %26, i64 0, i64* nonnull %sv_1, i64 0)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
store i64 %16, i64* %sv_0.06.reg2mem
br i1 %29, label LBL_6, label LBL_2
LBL_6:
%30 = inttoptr i64 %6 to i32*
%31 = load i32, i32* %8, align 4
%32 = load i32, i32* %30, align 4
%33 = zext i32 %32 to i64
%34 = icmp ult i32 %31, %32
store i64 %33, i64* %rax.0.reg2mem
br i1 %34, label LBL_7, label LBL_8
LBL_7:
%35 = ptrtoint i64* %arg2 to i64
%36 = sext i32 %31 to i64
%37 = add i64 %5, 24
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %39, %36
%41 = add i64 %35, 8
%42 = inttoptr i64 %41 to i64*
store i64 %40, i64* %42, align 8
%43 = add i64 %5, 32
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = load i32, i32* %8, align 4
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = add i64 %48, %45
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = add i64 %35, 16
%53 = inttoptr i64 %52 to i64*
store i64 %51, i64* %53, align 8
store i64 %35, 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* %8, { 0, 1, 4, 3, 2 }
uselistorder i64 %6, { 3, 2, 1, 0 }
uselistorder i64 %5, { 4, 5, 2, 1, 0, 3, 6 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64*, i64)* @mxf_edit_unit_absolute_offset, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 3, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | stonith_cleanup_5397 | stonith_cleanup | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
%5 = load i64, i64* @gv_1, align 8
%6 = inttoptr i64 %5 to i64*
call void @free(i64* %6)
%7 = load i64, i64* @gv_2, align 8
%8 = call i64 @FUNC(i64 %7)
ret i64 %8
} | 0 |
BinRealVul | avfilter_link_free_16839 | avfilter_link_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rdi.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = ptrtoint i64* %sv_0 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i64 %0, i64* %rdi.11.reg2mem
br label LBL_2
LBL_2:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 8
%4 = add i64 %3, %rdi.11.reload
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
store i64 %6, i64* %sv_0, align 8
%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 = call i64 @FUNC(i64 %11)
%13 = load i64, i64* %sv_0, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = load i64, i64* %sv_0, align 8
%16 = add i64 %15, 8
%17 = call i64 @FUNC(i64 %16)
%18 = load i64, i64* %sv_0, align 8
%19 = add i64 %18, 16
%20 = call i64 @FUNC(i64 %19)
%21 = call i64 @FUNC(i64 %2)
store i64 %2, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.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 %rdi.0.reload, i64* %rdi.11.reg2mem
br i1 %exitcond, label LBL_5, label LBL_2
LBL_5:
%22 = call i64 @FUNC(i64 %rdi.0.reload)
%23 = call i64 @FUNC(i64 %0)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.11.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_freep, { 6, 0, 5, 4, 3, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | helper_cvttq_c_16850 | helper_cvttq_c | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2, i64 0, i64 0)
ret i64 %1
} | 1 |
BinRealVul | t15_259 | t15 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = and i64 %arg3, 4294967295
%5 = add i64 %3, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i32 0, i32* %storemerge12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_6, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %3, i64 5)
%10 = trunc i64 %9 to i32
%11 = icmp ult i32 %10, 27
%12 = and i64 %9, 4294967295
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_3:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%14 = mul i64 %12, 4
%15 = add i64 %14, ptrtoint (i32** @gv_1 to i64)
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = urem i32 %17, 16
%19 = add nsw i32 %18, -1
%20 = mul i64 %9, 4
%21 = and i64 %20, 17179869180
%22 = add i64 %21, ptrtoint (i32** @gv_1 to i64)
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i32 %storemerge12.reload, 1
%26 = zext i32 %storemerge12.reload to i64
%27 = call i64 @FUNC(i64 %3, i64 %26, i64 %4, i32 %19)
%28 = load i32, i32* %6, align 4
%29 = icmp ult i32 %25, %28
%30 = icmp eq i1 %29, false
store i64 0, i64* %storemerge.reg2mem
br i1 %30, label LBL_6, label LBL_4
LBL_4:
%31 = udiv i32 %17, 16
%32 = urem i32 %31, 16
%33 = add nsw i32 %32, -1
%34 = add i32 %storemerge12.reload, 2
%35 = zext i32 %25 to i64
%36 = call i64 @FUNC(i64 %3, i64 %35, i64 %4, i32 %33)
%37 = load i32, i32* %6, align 4
%38 = icmp ult i32 %34, %37
%39 = icmp eq i1 %38, false
store i64 0, i64* %storemerge.reg2mem
br i1 %39, label LBL_6, label LBL_5
LBL_5:
%40 = udiv i32 %24, 256
%41 = urem i32 %40, 16
%42 = add nsw i32 %41, -1
%43 = zext i32 %34 to i64
%44 = call i64 @FUNC(i64 %3, i64 %43, i64 %4, i32 %42)
%45 = add i32 %storemerge12.reload, 3
%46 = load i32, i32* %6, align 4
%47 = icmp ult i32 %45, %46
store i32 %45, i32* %storemerge12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %47, label LBL_1, label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %storemerge12.reload, { 0, 1, 3, 2 }
uselistorder i32* %6, { 3, 1, 2, 0 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32)* @set_pos, { 2, 1, 0 }
uselistorder i32 16, { 2, 1, 0, 3 }
uselistorder i32 27, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder label LBL_6, { 2, 0, 1, 4, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | sctp_sm_pull_sack_9196 | sctp_sm_pull_sack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i16
%4 = call i16 @ntohs(i16 %3)
%5 = add i64 %2, 2
%6 = inttoptr i64 %5 to i16*
%7 = load i16, i16* %6, align 2
%8 = zext i16 %7 to i64
%9 = call i16 @ntohs(i16 %7)
%10 = zext i16 %9 to i32
%11 = zext i16 %4 to i32
%12 = add nuw nsw i32 %10, %11
%13 = mul i32 %12, 4
%14 = add nuw nsw i32 %13, 4
%15 = add nuw nsw i64 %8, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp ugt i32 %14, %17
store i64 0, i64* %storemerge.reg2mem
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = zext i32 %14 to i64
%20 = call i64 @FUNC(i64 %8, i64 %19)
store i64 %2, 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 i32 4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pc_fw_add_pflash_drv_16901 | pc_fw_add_pflash_drv | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i64 ptrtoint ([17 x i8]* @gv_1 to i64), i64* @gv_0, align 8
store i64 ptrtoint ([17 x i8]* @gv_1 to i64), i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%3 = call i64 @FUNC(i64 0, i64 %.reload)
%4 = call i64 @FUNC(i64 1, i64 4294967295, i64 %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
%5 = call i64 @FUNC(i64 %3)
%6 = icmp eq i64 %4, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %6, label LBL_5, label LBL_3
LBL_3:
%7 = call i64 @FUNC()
%8 = icmp eq i64 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = inttoptr i64 %7 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i64 %4, i64 %11)
store i64 %12, 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* %.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 1 |
BinRealVul | xlate_to_uni_7468 | xlate_to_uni | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64 %arg6, i64 %arg7, i64* %arg8) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem55 = alloca i32
%storemerge25.reg2mem = alloca i32
%sv_0.426.in.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%.reg2mem53 = alloca i32
%sv_0.227.reg2mem = alloca i64
%sv_1.228.reg2mem = alloca i32
%sv_2.229.reg2mem = alloca i64
%.reg2mem51 = alloca i32
%sv_0.132.reg2mem = alloca i64
%sv_1.133.reg2mem = alloca i32
%sv_2.134.reg2mem = alloca i64
%.reg2mem49 = alloca i32
%.reg2mem47 = alloca i32
%.pn8.reg2mem = alloca i64
%.pn.reg2mem = alloca i32
%.reg2mem45 = alloca i32
%.reg2mem = alloca i32
%.pn9.reg2mem = alloca i32
%sv_3.130.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%r8 = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %arg7 to i32
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = icmp eq i32 %2, 0
%7 = trunc i64 %1 to i32
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%8 = and i64 %5, 4294967295
%9 = call i64 @FUNC(i64 %4, i64 %8, i64 %3)
%10 = trunc i64 %9 to i32
%11 = bitcast i64* %arg5 to i32*
store i32 %10, i32* %11, align 4
%12 = icmp slt i32 %7, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = and i64 %1, 4294967295
store i64 %14, i64* %rax.0.reg2mem
br label LBL_33
LBL_3:
%15 = icmp slt i32 %7, 256
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_33
LBL_4:
%sext37 = mul i64 %1, 4294967296
%16 = ashr exact i64 %sext37, 30
%17 = add i64 %16, %3
store i32 %7, i32* %.reg2mem53
store i64 %17, i64* %sv_0.3.reg2mem
br label LBL_27
LBL_5:
%18 = icmp eq i64* %arg8, null
%19 = bitcast i64* %arg5 to i32*
store i32 0, i32* %19, align 4
%20 = trunc i64 %5 to i32
%21 = icmp sgt i32 %20, 0
br i1 %18, label LBL_8, label LBL_6
LBL_6:
store i32 %7, i32* %.reg2mem53
store i64 %3, i64* %sv_0.3.reg2mem
br i1 %21, label LBL_7, label LBL_27
LBL_7:
%22 = bitcast i64* %r8 to i32*
%23 = trunc i64 %arg6 to i32
%24 = icmp eq i32 %23, 0
%25 = add nsw i64 %5, 4294967292
%26 = and i64 %25, 4294967295
store i32 %7, i32* %.reg2mem47
store i32 %7, i32* %.reg2mem49
store i64 %4, i64* %sv_2.134.reg2mem
store i32 0, i32* %sv_1.133.reg2mem
store i64 %3, i64* %sv_0.132.reg2mem
br label LBL_24
LBL_8:
store i32 %7, i32* %.reg2mem53
store i64 %3, i64* %sv_0.3.reg2mem
br i1 %21, label LBL_9, label LBL_27
LBL_9:
%27 = bitcast i64* %r8 to i32*
store i32 %7, i32* %.reg2mem51
store i64 %4, i64* %sv_2.229.reg2mem
store i32 0, i32* %sv_1.228.reg2mem
store i64 %3, i64* %sv_0.227.reg2mem
br label LBL_26
LBL_10:
%sv_0.132.reload = load i64, i64* %sv_0.132.reg2mem
%sv_1.133.reload = load i32, i32* %sv_1.133.reg2mem
%sv_2.134.reload = load i64, i64* %sv_2.134.reg2mem
%.reload48 = load i32, i32* %.reg2mem47
br i1 %24, label LBL_21, label LBL_11
LBL_11:
%28 = inttoptr i64 %sv_2.134.reload to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 58
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_21, label LBL_12
LBL_12:
%32 = sext i32 %sv_1.133.reload to i64
%33 = icmp sgt i64 %26, %32
store i64 1, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_3.130.reg2mem
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %33, label LBL_13, label LBL_33
LBL_13:
%sv_3.130.reload = load i32, i32* %sv_3.130.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = add i64 %indvars.iv.reload, %sv_2.134.reload
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = sext i8 %36 to i32
%.off = add i8 %36, -48
%38 = icmp ult i8 %.off, 10
br i1 %38, label LBL_14, label LBL_15
LBL_14:
%39 = urem i32 %37, 256
%40 = add nsw i32 %39, -48
store i32 %40, i32* %.pn9.reg2mem
br label LBL_19
LBL_15:
%.off12 = add i8 %36, -97
%41 = icmp ult i8 %.off12, 6
br i1 %41, label LBL_16, label LBL_17
LBL_16:
%42 = urem i32 %37, 256
%43 = add nsw i32 %42, -87
store i32 %43, i32* %.pn9.reg2mem
br label LBL_19
LBL_17:
%.off13 = add i8 %36, -65
%44 = icmp ult i8 %.off13, 6
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %44, label LBL_18, label LBL_33
LBL_18:
%45 = urem i32 %37, 256
%46 = add nsw i32 %45, -55
store i32 %46, i32* %.pn9.reg2mem
br label LBL_19
LBL_19:
%47 = mul i32 %sv_3.130.reload, 16
%.pn9.reload = load i32, i32* %.pn9.reg2mem
%sv_3.0 = or i32 %.pn9.reload, %47
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%48 = icmp ult i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_3.0, i32* %sv_3.130.reg2mem
br i1 %48, label LBL_13, label LBL_20
LBL_20:
%49 = add i64 %sv_0.132.reload, 1
%50 = trunc i32 %sv_3.0 to i8
%51 = inttoptr i64 %sv_0.132.reload to i8*
store i8 %50, i8* %51, align 1
%52 = udiv i32 %sv_3.0, 256
%53 = trunc i32 %52 to i8
%54 = inttoptr i64 %49 to i8*
store i8 %53, i8* %54, align 1
%.pre = load i32, i32* %22, align 8
store i32 %.pre, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem45
store i32 5, i32* %.pn.reg2mem
store i64 5, i64* %.pn8.reg2mem
br label LBL_23
LBL_21:
%55 = trunc i64 %sv_2.134.reload to i32
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %57, label LBL_22, label LBL_33
LBL_22:
%sext7 = mul i64 %sv_2.134.reload, 4294967296
%58 = ashr exact i64 %sext7, 32
store i32 %.reload48, i32* %.reg2mem
store i32 %.reload50, i32* %.reg2mem45
store i32 %55, i32* %.pn.reg2mem
store i64 %58, i64* %.pn8.reg2mem
br label LBL_23
LBL_23:
%.pn8.reload = load i64, i64* %.pn8.reg2mem
%.pn.reload = load i32, i32* %.pn.reg2mem
%.reload46 = load i32, i32* %.reg2mem45
%.reload = load i32, i32* %.reg2mem
%sv_2.0 = add i64 %.pn8.reload, %sv_2.134.reload
%sv_1.0 = add i32 %.pn.reload, %sv_1.133.reload
%sv_0.0 = add i64 %sv_0.132.reload, 2
%59 = add i32 %.reload46, 1
store i32 %59, i32* %19, align 4
%60 = icmp slt i32 %sv_1.0, %20
store i32 %.reload, i32* %.reg2mem47
store i32 %.reload46, i32* %.reg2mem49
store i64 %sv_2.0, i64* %sv_2.134.reg2mem
store i32 %sv_1.0, i32* %sv_1.133.reg2mem
store i64 %sv_0.0, i64* %sv_0.132.reg2mem
store i32 %.reload, i32* %.reg2mem53
store i64 %sv_0.0, i64* %sv_0.3.reg2mem
br i1 %60, label LBL_24, label LBL_27
LBL_24:
%.reload50 = load i32, i32* %.reg2mem49
%61 = icmp slt i32 %.reload50, 256
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %61, label LBL_10, label LBL_33
LBL_25:
%sv_0.227.reload = load i64, i64* %sv_0.227.reg2mem
%sv_1.228.reload = load i32, i32* %sv_1.228.reg2mem
%sv_2.229.reload = load i64, i64* %sv_2.229.reg2mem
%62 = add i64 %sv_2.229.reload, 1
%63 = add i64 %sv_0.227.reload, 1
%64 = inttoptr i64 %sv_2.229.reload to i8*
%65 = load i8, i8* %64, align 1
%66 = inttoptr i64 %sv_0.227.reload to i8*
store i8 %65, i8* %66, align 1
%67 = add i64 %sv_0.227.reload, 2
%68 = inttoptr i64 %63 to i8*
store i8 0, i8* %68, align 1
%69 = add nuw nsw i32 %sv_1.228.reload, 1
%70 = load i32, i32* %27, align 8
%71 = add i32 %70, 1
store i32 %71, i32* %19, align 4
%72 = icmp slt i32 %69, %20
store i32 %70, i32* %.reg2mem51
store i64 %62, i64* %sv_2.229.reg2mem
store i32 %69, i32* %sv_1.228.reg2mem
store i64 %67, i64* %sv_0.227.reg2mem
store i32 %70, i32* %.reg2mem53
store i64 %67, i64* %sv_0.3.reg2mem
br i1 %72, label LBL_26, label LBL_27
LBL_26:
%.reload52 = load i32, i32* %.reg2mem51
%73 = icmp slt i32 %.reload52, 256
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %73, label LBL_25, label LBL_33
LBL_27:
%.reload54 = load i32, i32* %.reg2mem53
%74 = bitcast i64* %arg4 to i32*
store i32 %.reload54, i32* %74, align 4
%75 = srem i32 %.reload54, 13
%76 = icmp eq i32 %75, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %76, label LBL_33, label LBL_28
LBL_28:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%77 = bitcast i64* %r8 to i32*
%78 = add i64 %sv_0.3.reload, 1
%79 = inttoptr i64 %sv_0.3.reload to i8*
store i8 0, i8* %79, align 1
%80 = inttoptr i64 %78 to i8*
store i8 0, i8* %80, align 1
%81 = load i32, i32* %77, align 8
%82 = add i32 %81, 1
%83 = bitcast i64* %arg5 to i32*
store i32 %82, i32* %83, align 4
%84 = srem i32 %81, 13
%85 = icmp eq i32 %84, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %85, label LBL_33, label LBL_29
LBL_29:
%86 = sub i32 %81, %84
%.neg15 = sub i32 13, %81
%87 = add i32 %86, %.neg15
%88 = icmp sgt i32 %87, 0
store i64 %sv_0.3.reload, i64* %sv_0.426.in.reg2mem
store i32 0, i32* %storemerge25.reg2mem
store i32 %81, i32* %.reg2mem55
br i1 %88, label LBL_30, label LBL_32
LBL_30:
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%sv_0.426.in.reload = load i64, i64* %sv_0.426.in.reg2mem
%sv_0.426 = add i64 %sv_0.426.in.reload, 2
%89 = add i64 %sv_0.426.in.reload, 3
%90 = inttoptr i64 %sv_0.426 to i8*
store i8 -1, i8* %90, align 1
%91 = inttoptr i64 %89 to i8*
store i8 -1, i8* %91, align 1
%92 = add nuw nsw i32 %storemerge25.reload, 1
%exitcond = icmp eq i32 %92, %87
store i64 %sv_0.426, i64* %sv_0.426.in.reg2mem
store i32 %92, i32* %storemerge25.reg2mem
br i1 %exitcond, label LBL_31, label LBL_30
LBL_31:
%.pre36 = load i32, i32* %77, align 8
store i32 %.pre36, i32* %.reg2mem55
br label LBL_32
LBL_32:
%.reload56 = load i32, i32* %.reg2mem55
%93 = add i32 %.reload56, %87
store i32 %93, i32* %83, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_33:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.426.in.reload, { 1, 0 }
uselistorder i32 %84, { 1, 0 }
uselistorder i32 %81, { 0, 3, 1, 2, 4 }
uselistorder i64 %sv_0.3.reload, { 0, 2, 1 }
uselistorder i32 %.reload54, { 1, 0 }
uselistorder i64 %sv_0.227.reload, { 2, 0, 1 }
uselistorder i32 %sv_3.0, { 1, 2, 0 }
uselistorder i64 %sv_2.134.reload, { 3, 4, 1, 2, 0 }
uselistorder i32 %sv_1.133.reload, { 1, 0 }
uselistorder i1 %21, { 1, 0 }
uselistorder i32 %20, { 2, 0, 1 }
uselistorder i32* %19, { 1, 0, 2 }
uselistorder i32 %7, { 3, 1, 4, 5, 0, 2, 7, 6 }
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64 %3, { 2, 1, 3, 0, 4, 5 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %r8, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.130.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pn9.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem45, { 0, 2, 1 }
uselistorder i32* %.pn.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pn8.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem47, { 1, 0, 2 }
uselistorder i64* %sv_2.134.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.133.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.132.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.229.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.228.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.227.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem53, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %sv_0.3.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %sv_0.426.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge25.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem55, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 5, 1, 2, 4, 3, 9, 10 }
uselistorder i32 13, { 2, 0, 1 }
uselistorder i64 2, { 0, 2, 1 }
uselistorder i64 4294967294, { 0, 2, 1 }
uselistorder i32 256, { 4, 5, 0, 1, 2, 3, 6 }
uselistorder i64* %arg5, { 1, 0, 2 }
uselistorder label LBL_33, { 7, 6, 5, 4, 0, 1, 3, 2, 8, 9 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_27, { 1, 0, 3, 2, 4 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | _destroy_nodename_4870 | _destroy_nodename | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %arg1, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %arg1, 24
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = add i64 %arg1, 32
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = add i64 %arg1, 40
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %arg1, 48
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23)
%25 = add i64 %arg1, 56
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27)
%29 = add i64 %arg1, 64
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 %arg1)
ret i64 %33
uselistorder i64 (i64)* @xfree, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | put_residue_header_18447 | put_residue_header | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%.reg2mem20 = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge28.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i32
%indvars.iv11.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = call i64 @FUNC(i64 %3, i64 16, i32 %4)
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = call i64 @FUNC(i64 %3, i64 24, i32 %8)
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = call i64 @FUNC(i64 %3, i64 24, i32 %12)
%14 = add i64 %2, 12
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i32 %16, -1
%18 = call i64 @FUNC(i64 %3, i64 24, i32 %17)
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = call i64 @FUNC(i64 %3, i64 6, i32 %21)
%23 = add i64 %2, 20
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = call i64 @FUNC(i64 %3, i64 8, i32 %25)
%27 = load i32, i32* %20, align 4
%28 = icmp eq i32 %27, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %28, label LBL_13, label LBL_1
LBL_1:
%29 = add i64 %2, 24
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge28.reg2mem
br label LBL_6
LBL_2:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%30 = add nuw nsw i64 %indvars.iv11.reload, %62
%31 = mul i64 %30, 4
%32 = add i64 %31, %29
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
%37 = zext i1 %36 to i32
%38 = trunc i64 %indvars.iv11.reload to i32
%39 = shl i32 %37, %38
%40 = or i32 %39, %sv_0.06.reload
%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 i32 %40, i32* %sv_0.06.reg2mem
br i1 %exitcond13, label LBL_3, label LBL_2
LBL_3:
%41 = urem i32 %40, 8
%42 = call i64 @FUNC(i64 %3, i64 3, i32 %41)
%43 = add i32 %40, -7
%44 = sub i32 6, %40
%45 = and i32 %44, %40
%46 = icmp slt i32 %45, 0
%47 = icmp eq i32 %43, 0
%48 = icmp slt i32 %43, 0
%49 = icmp eq i1 %48, %46
%50 = icmp eq i1 %47, false
%51 = icmp eq i1 %49, %50
%52 = zext i1 %51 to i32
%53 = call i64 @FUNC(i64 %3, i64 1, i32 %52)
%54 = icmp slt i32 %40, 8
br i1 %54, label LBL_5, label LBL_4
LBL_4:
%55 = udiv i32 %40, 8
%56 = call i64 @FUNC(i64 %3, i64 5, i32 %55)
br label LBL_5
LBL_5:
%57 = add i32 %storemerge28.reload, 1
%58 = load i32, i32* %20, align 4
%59 = zext i32 %58 to i64
%60 = sext i32 %57 to i64
%61 = icmp slt i64 %60, %59
store i64 %60, i64* %.reg2mem
store i32 %57, i32* %storemerge28.reg2mem
br i1 %61, label LBL_6, label LBL_7
LBL_6:
%storemerge28.reload = load i32, i32* %storemerge28.reg2mem
%.reload = load i64, i64* %.reg2mem
%62 = mul i64 %.reload, 8
store i64 0, i64* %indvars.iv11.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
br label LBL_2
LBL_7:
%63 = icmp eq i32 %58, 0
store i64 0, i64* %.reg2mem20
store i32 0, i32* %storemerge5.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %63, label LBL_13, label LBL_12
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%64 = add nuw nsw i64 %indvars.iv.reload, %76
%65 = mul i64 %64, 4
%66 = add i64 %65, %29
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label LBL_10, label LBL_9
LBL_9:
%70 = call i64 @FUNC(i64 %3, i64 8, i32 %68)
br label LBL_10
LBL_10:
%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_11, label LBL_8
LBL_11:
%71 = add i32 %storemerge5.reload, 1
%72 = load i32, i32* %20, align 4
%73 = zext i32 %72 to i64
%74 = sext i32 %71 to i64
%75 = icmp slt i64 %74, %73
store i64 %74, i64* %.reg2mem20
store i32 %71, i32* %storemerge5.reg2mem
store i64 %73, i64* %.lcssa.reg2mem
br i1 %75, label LBL_12, label LBL_13
LBL_12:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload21 = load i64, i64* %.reg2mem20
%76 = mul i64 %.reload21, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_13:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %43, { 1, 0 }
uselistorder i32 %40, { 1, 4, 3, 6, 5, 2, 0 }
uselistorder i32* %20, { 1, 2, 0, 3 }
uselistorder i64 %2, { 0, 2, 1, 4, 3, 5 }
uselistorder i64* %indvars.iv11.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.06.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %.reg2mem20, { 0, 2, 1 }
uselistorder i32* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i64* %.lcssa.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 8, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 5, 0, 3, 2, 7, 8, 9, 6, 1, 4 }
uselistorder i64 8, { 0, 3, 4, 1, 2, 5, 6 }
uselistorder i64 (i64, i64, i32)* @put_bits, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | block_save_setup_2141 | block_save_setup | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%5 = load i32, i32* @gv_0, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i64 %6, i32 %4, i64 %3, i64 %2, i64 %1)
%8 = call i64 @FUNC()
%9 = call i64 @FUNC()
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC()
store i64 %9, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%13 = ptrtoint i64* %arg1 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC()
%16 = call i64 @FUNC(i64 %13)
%17 = call i64 @FUNC()
%18 = call i64 @FUNC(i64 %13, i64 1)
store i64 %16, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %13, { 2, 1, 0 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 ()* @qemu_mutex_unlock_iothread, { 1, 0 }
} | 0 |
BinRealVul | avpicture_get_size_15435 | avpicture_get_size | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = trunc i64 %arg3 to i32
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = and i64 %arg2, 4294967295
%4 = call i64 @FUNC(i64 %3, i32 %0, i64 0, i64 0)
%5 = trunc i64 %4 to i32
store i32 %5, i32* %sv_0, align 4
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %4, 4294967295
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = and i64 %arg3, 4294967295
%10 = trunc i64 %arg2 to i32
%11 = trunc i64 %arg1 to i32
%12 = call i64 @FUNC(i32* nonnull %sv_0, i64 0, i32 %11, i32 %10, i64 %9)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 2, 0, 1 }
} | 1 |
BinRealVul | devm_request_irq_4302 | devm_request_irq | define i64 @FUNC(i64* %arg1, i32 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 4198742, i64 16, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = zext i32 %arg2 to i64
%4 = call i64 @FUNC(i64 %3, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0)
%8 = and i64 %4, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%9 = ptrtoint i64* %arg1 to i64
%10 = inttoptr i64 %0 to i32*
store i32 %arg2, i32* %10, align 4
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
store i64 %arg6, i64* %12, align 8
%13 = call i64 @FUNC(i64 %9, i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | decode_subframe_lpc_16866 | decode_subframe_lpc | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem29 = alloca i64
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32*
%indvars.iv20.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = ptrtoint i64* %sv_1 to i64
%sext5 = mul i64 %arg4, 4294967296
%4 = ashr exact i64 %sext5, 30
%5 = add nsw i64 %4, 15
%6 = udiv i64 %5, 16
%7 = mul i64 %6, 16
%8 = sub i64 %3, %7
%9 = trunc i64 %arg4 to i32
%10 = icmp sgt i32 %9, 0
br i1 %10, label LBL_2, label LBL_0.LBL_5_crit_edge
LBL_1:
%11 = trunc i64 %1 to i32
%.pre24 = bitcast i64* %rdi to i32*
store i32* %.pre24, i32** %.pre-phi.reg2mem
store i32 %11, i32* %.reg2mem
br label LBL_5
LBL_2:
%12 = add i64 %2, 16
%wide.trip.count22 = and i64 %arg4, 4294967295
store i64 0, i64* %indvars.iv20.reg2mem
br label LBL_3
LBL_3:
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%13 = call i64 @FUNC(i64 %12, i64 10)
%14 = trunc i64 %13 to i32
%15 = mul i64 %indvars.iv20.reload, 4
%16 = add i64 %15, %8
%17 = inttoptr i64 %16 to i32*
store i32 %14, i32* %17, align 4
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%exitcond23 = icmp eq i64 %indvars.iv.next21, %wide.trip.count22
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
br i1 %exitcond23, label LBL_4, label LBL_3
LBL_4:
%.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32* %.phi.trans.insert, i32** %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%18 = icmp eq i32 %.reload, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %18, label LBL_11, label LBL_6
LBL_6:
%sext = mul i64 %arg2, 4294967296
%19 = and i64 %arg3, 4294967295
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%20 = add i64 %2, 4
%21 = inttoptr i64 %20 to i32*
%22 = add i64 %2, 8
%23 = inttoptr i64 %22 to i64*
%24 = ashr exact i64 %sext, 29
%25 = add i64 %2, 16
%wide.trip.count = and i64 %arg4, 4294967295
store i64 0, i64* %.reg2mem29
store i32 0, i32* %storemerge14.reg2mem
br label LBL_7
LBL_7:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload30 = load i64, i64* %.reg2mem29
%26 = load i32, i32* %21, align 4
store i32 %26, i32* %sv_0.0.lcssa.reg2mem
br i1 %10, label LBL_8, label LBL_10
LBL_8:
%27 = load i64, i64* %23, align 8
%28 = add i64 %27, %24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, -4
store i64 0, i64* %indvars.iv.reg2mem
store i32 %26, i32* %sv_0.012.reg2mem
br label LBL_9
LBL_9:
%sv_0.012.reload = load i32, i32* %sv_0.012.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%32 = mul i64 %indvars.iv.reload, 4
%33 = add i64 %32, %8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = trunc i64 %indvars.iv.reload to i32
%37 = sub i32 %storemerge14.reload, %36
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 4
%40 = add i64 %31, %39
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = mul i32 %42, %35
%44 = add i32 %43, %sv_0.012.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %44, i32* %sv_0.012.reg2mem
store i32 %44, i32* %sv_0.0.lcssa.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%45 = call i64 @FUNC(i64 %25, i64 %19)
%46 = trunc i64 %45 to i32
%47 = ashr i32 %sv_0.0.lcssa.reload, 10
%48 = load i64, i64* %23, align 8
%49 = add i64 %48, %24
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = mul i64 %.reload30, 4
%53 = add i64 %51, %52
%54 = add i32 %47, %46
%55 = inttoptr i64 %53 to i32*
store i32 %54, i32* %55, align 4
%56 = add i32 %storemerge14.reload, 1
%57 = load i32, i32* %.pre-phi.reload, align 8
%58 = zext i32 %57 to i64
%59 = sext i32 %56 to i64
%60 = icmp slt i64 %59, %58
store i64 %59, i64* %.reg2mem29
store i32 %56, i32* %storemerge14.reg2mem
store i64 %58, i64* %.lcssa.reg2mem
br i1 %60, label LBL_7, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %26, { 1, 0 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i64* %indvars.iv20.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem29, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.012.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @get_sr_golomb_shorten, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 16, { 2, 3, 0, 1 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64 %arg4, { 2, 1, 3, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | k_ascii_5624 | k_ascii | define i64 @FUNC(i8* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = sext i8 %arg3 to i64
%1 = and i64 %0, 4294967295
%2 = icmp eq i8 %arg3, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = load i8, i8* bitcast (i64* @gv_0 to i8*), align 8
%5 = icmp eq i8 %4, 1
br i1 %5, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* inttoptr (i64 4210732 to i32*), align 4
store i8 1, i8* bitcast (i64* @gv_0 to i8*), align 8
br label LBL_3
LBL_3:
%sext = mul i64 %arg2, 72057594037927936
%6 = ashr exact i64 %sext, 56
%7 = trunc i64 %6 to i8
%8 = icmp ult i8 %7, 10
%sext2 = add i64 %sext, -720575940379279360
%9 = udiv i64 %sext2, 72057594037927936
%sv_0.0 = select i1 %8, i64 %6, i64 %9
%storemerge = select i1 %8, i32 10, i32 16
%10 = load i32, i32* @gv_1, align 4
%11 = mul i32 %10, %storemerge
%12 = trunc i64 %sv_0.0 to i32
%13 = urem i32 %12, 256
%14 = add i32 %11, %13
%15 = zext i32 %14 to i64
store i32 %14, i32* @gv_1, align 4
store i64 %15, 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 %sext, { 1, 0 }
uselistorder i64 72057594037927936, { 1, 0 }
uselistorder i8 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | pm_update_sci_18597 | pm_update_sci | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %2, i64 %6)
%8 = trunc i64 %7 to i32
%9 = trunc i64 %1 to i32
%10 = urem i32 %9, 16
%11 = and i32 %10, %8
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i1 %13 to i64
%18 = zext i32 %16 to i64
%19 = call i64 @FUNC(i64 %18, i64 %17)
%20 = and i32 %9, 8
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_2, label LBL_1
LBL_1:
%22 = and i32 %8, 16
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 1, i64* %storemerge.reg2mem
br i1 %24, label LBL_2, label LBL_3
LBL_2:
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%25 = call i64 @FUNC(i64 %2, i64 %storemerge.reload)
ret i64 %25
uselistorder i32 %9, { 1, 0 }
uselistorder i32 %8, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 16, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | dex_class_name_byid_8273 | dex_class_name_byid | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i32* %arg1, null
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp ne i64 %7, 0
%9 = trunc i64 %3 to i32
%10 = icmp sgt i32 %9, -1
%or.cond.not = icmp eq i1 %10, %8
%11 = and i64 %1, 4294967295
%12 = icmp slt i64 %3, %11
%or.cond7 = icmp eq i1 %12, %or.cond.not
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond7, label LBL_2, label LBL_3
LBL_2:
%13 = ashr exact i64 %sext, 30
%14 = add i64 %7, %13
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %4, i64 %17)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | av_strerror_1138 | av_strerror | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = trunc i64 %1 to i32
store i32 0, i32* %storemerge4.reg2mem
br label LBL_1
LBL_1:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%3 = sext i32 %storemerge4.reload to i64
%4 = mul i64 %3, 16
%5 = add i64 %4, ptrtoint (i32** @gv_0 to i64)
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 8
%8 = icmp eq i32 %7, %2
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_3
LBL_2:
%10 = add nuw i32 %storemerge4.reload, 1
%11 = icmp ult i32 %10, 3
store i32 %10, i32* %storemerge4.reg2mem
br i1 %11, label LBL_1, label LBL_5
LBL_3:
%12 = icmp eq i64 %5, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = add i64 %4, add (i64 ptrtoint (i32** @gv_0 to i64), i64 8)
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %0, i64 %15, i64 %arg3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_5:
%17 = and i64 %1, 4294967295
%18 = bitcast i64* %arg2 to i8*
%19 = trunc i64 %arg3 to i32
%20 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %18, i32 %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %17)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | qtrle_decode_24bpp_1348 | qtrle_decode_24bpp | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.027.reg2mem = alloca i64
%sv_1.128.reg2mem = alloca i32
%sv_2.129.reg2mem = alloca i32
%.reg2mem143 = alloca i64
%sv_1.025.reg2mem = alloca i32
%sv_2.026.reg2mem = alloca i32
%sv_1.2.be.reg2mem = alloca i32
%sv_0.1.be.reg2mem = alloca i64
%sv_1.233.reg2mem = alloca i32
%.reg2mem141 = alloca i64
%.reg2mem139 = alloca i64
%.reg2mem = alloca i64
%.in.reg2mem = alloca i8
%sv_0.237.reg2mem = alloca i64
%sv_3.038.in.in.reg2mem = alloca i64
%sext639.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext5 = mul i64 %arg4, 4294967296
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%sv_4.035 = ashr exact i64 %sext5, 32
%13 = and i64 %sv_4.035, 4294967295
%14 = trunc i64 %sv_4.035 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 %13, i64* %rax.0.reg2mem
br i1 %16, label LBL_1, label LBL_26
LBL_1:
%17 = trunc i64 %1 to i32
%18 = mul i32 %12, %17
%sext = mul i64 %arg2, 4294967296
%19 = ashr exact i64 %sext, 32
%20 = add i64 %2, 24
%21 = inttoptr i64 %20 to i64*
%22 = sext i32 %18 to i64
store i64 %sext5, i64* %sext639.in.reg2mem
store i64 %arg3, i64* %sv_3.038.in.in.reg2mem
store i64 %19, i64* %sv_0.237.reg2mem
br label LBL_2
LBL_2:
%sv_0.237.reload = load i64, i64* %sv_0.237.reg2mem
%23 = add nsw i64 %sv_0.237.reload, 2
%24 = trunc i64 %23 to i32
%25 = icmp ult i32 %24, 9
br i1 %25, label LBL_3, label LBL_2.LBL_26.loopexit22_crit_edge
LBL_3:
%sv_3.038.in.in.reload = load i64, i64* %sv_3.038.in.in.reg2mem
%sv_3.038.in = mul i64 %sv_3.038.in.in.reload, 4294967296
%sv_3.038 = ashr exact i64 %sv_3.038.in, 32
%26 = load i64, i64* %21, align 8
%27 = add i64 %26, %sv_0.237.reload
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = zext i8 %29 to i32
%31 = mul nuw nsw i32 %30, 3
%32 = trunc i64 %sv_3.038 to i32
%33 = add i32 %32, -3
%34 = add i32 %33, %31
%35 = icmp sgt i32 %34, %18
br i1 %35, label LBL_3.LBL_26.loopexit22_crit_edge, label LBL_4
LBL_4:
%sext639.in.reload = load i64, i64* %sext639.in.reg2mem
%36 = mul i64 %sv_0.237.reload, 4294967296
%sext7 = add i64 %36, 4294967296
%37 = ashr exact i64 %sext7, 32
%sext932 = add i64 %36, 8589934592
%38 = ashr exact i64 %sext932, 32
%39 = add i64 %26, %37
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = icmp eq i8 %41, -1
%43 = icmp eq i1 %42, false
store i8 %41, i8* %.in.reg2mem
store i64 %38, i64* %.reg2mem
store i64 %sext7, i64* %.reg2mem139
store i64 %26, i64* %.reg2mem141
store i32 %34, i32* %sv_1.233.reg2mem
store i64 %38, i64* %.lcssa.reg2mem
br i1 %43, label LBL_5, label LBL_18
LBL_5:
%sv_1.233.reload = load i32, i32* %sv_1.233.reg2mem
%.reload142 = load i64, i64* %.reg2mem141
%.reload140 = load i64, i64* %.reg2mem139
%.reload = load i64, i64* %.reg2mem
%.in.reload = load i8, i8* %.in.reg2mem
%44 = icmp eq i8 %.in.reload, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_9, label LBL_6
LBL_6:
%46 = add nsw i64 %.reload, 1
%47 = trunc i64 %46 to i32
%48 = icmp ult i32 %47, 9
br i1 %48, label LBL_7, label LBL_19
LBL_7:
%sext11 = add i64 %.reload140, 8589934592
%49 = ashr exact i64 %sext11, 32
%50 = add i64 %.reload142, %.reload
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = zext i8 %52 to i32
%54 = mul nuw nsw i32 %53, 3
%55 = add i32 %sv_1.233.reload, -3
%56 = add i32 %55, %54
%57 = icmp sgt i32 %56, %18
store i64 %49, i64* %sv_0.1.be.reg2mem
store i32 %56, i32* %sv_1.2.be.reg2mem
br i1 %57, label LBL_22, label LBL_8
LBL_8:
%sv_1.2.be.reload = load i32, i32* %sv_1.2.be.reg2mem
%sv_0.1.be.reload = load i64, i64* %sv_0.1.be.reg2mem
%58 = load i64, i64* %21, align 8
%59 = mul i64 %sv_0.1.be.reload, 4294967296
%sext9 = add i64 %59, 4294967296
%60 = ashr exact i64 %sext9, 32
%61 = add i64 %58, %sv_0.1.be.reload
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = icmp eq i8 %63, -1
%65 = icmp eq i1 %64, false
store i8 %63, i8* %.in.reg2mem
store i64 %60, i64* %.reg2mem
store i64 %59, i64* %.reg2mem139
store i64 %58, i64* %.reg2mem141
store i32 %sv_1.2.be.reload, i32* %sv_1.233.reg2mem
store i64 %60, i64* %.lcssa.reg2mem
br i1 %65, label LBL_5, label LBL_18
LBL_9:
%66 = sext i8 %.in.reload to i32
%67 = icmp slt i8 %.in.reload, 0
%68 = icmp eq i1 %67, false
br i1 %68, label LBL_14, label LBL_10
LBL_10:
%69 = add nsw i64 %.reload, 3
%70 = trunc i64 %69 to i32
%71 = icmp ult i32 %70, 9
br i1 %71, label LBL_11, label LBL_20
LBL_11:
%72 = add i64 %.reload142, %.reload
%73 = inttoptr i64 %72 to i8*
%74 = load i8, i8* %73, align 1
%sext14 = add i64 %.reload140, 8589934592
%75 = ashr exact i64 %sext14, 32
%76 = add i64 %75, %.reload142
%77 = inttoptr i64 %76 to i8*
%78 = load i8, i8* %77, align 1
%79 = add i64 %.reload140, 12884901888
%80 = ashr exact i64 %79, 32
%81 = add i64 %80, %.reload142
%82 = inttoptr i64 %81 to i8*
%83 = load i8, i8* %82, align 1
%84 = mul nsw i32 %66, -3
%85 = add i32 %sv_1.233.reload, %84
%86 = zext i32 %85 to i64
%87 = icmp slt i64 %22, %86
store i64 %86, i64* %rax.0.reg2mem
br i1 %87, label LBL_26, label LBL_12
LBL_12:
%sext15 = add i64 %.reload140, 17179869184
%88 = ashr exact i64 %sext15, 32
%89 = sub nsw i32 0, %66
store i32 %89, i32* %sv_2.026.reg2mem
store i32 %sv_1.233.reload, i32* %sv_1.025.reg2mem
br label LBL_13
LBL_13:
%sv_1.025.reload = load i32, i32* %sv_1.025.reg2mem
%sv_2.026.reload = load i32, i32* %sv_2.026.reg2mem
%90 = add i32 %sv_2.026.reload, -1
%91 = add i32 %sv_1.025.reload, 1
%92 = sext i32 %sv_1.025.reload to i64
%93 = add i64 %7, %92
%94 = inttoptr i64 %93 to i8*
store i8 %74, i8* %94, align 1
%95 = add i32 %sv_1.025.reload, 2
%96 = sext i32 %91 to i64
%97 = add i64 %7, %96
%98 = inttoptr i64 %97 to i8*
store i8 %78, i8* %98, align 1
%99 = add i32 %sv_1.025.reload, 3
%100 = sext i32 %95 to i64
%101 = add i64 %7, %100
%102 = inttoptr i64 %101 to i8*
store i8 %83, i8* %102, align 1
%103 = icmp eq i32 %90, 0
%104 = icmp eq i1 %103, false
store i64 %88, i64* %sv_0.1.be.reg2mem
store i32 %99, i32* %sv_1.2.be.reg2mem
store i32 %90, i32* %sv_2.026.reg2mem
store i32 %99, i32* %sv_1.025.reg2mem
br i1 %104, label LBL_13, label LBL_8
LBL_14:
%105 = mul nsw i32 %66, 3
%106 = trunc i64 %.reload to i32
%107 = add i32 %105, %106
%108 = icmp ult i32 %107, 9
br i1 %108, label LBL_15, label LBL_21
LBL_15:
%109 = add i32 %sv_1.233.reload, %105
%110 = zext i32 %109 to i64
%111 = icmp slt i64 %22, %110
store i64 %.reload142, i64* %.reg2mem143
store i32 %66, i32* %sv_2.129.reg2mem
store i32 %sv_1.233.reload, i32* %sv_1.128.reg2mem
store i64 %.reload, i64* %sv_0.027.reg2mem
store i64 %110, i64* %rax.0.reg2mem
br i1 %111, label LBL_26, label LBL_16
LBL_16:
%sv_0.027.reload = load i64, i64* %sv_0.027.reg2mem
%sv_1.128.reload = load i32, i32* %sv_1.128.reg2mem
%sv_2.129.reload = load i32, i32* %sv_2.129.reg2mem
%.reload144 = load i64, i64* %.reg2mem143
%112 = add i32 %sv_2.129.reload, -1
%sext17 = mul i64 %sv_0.027.reload, 4294967296
%113 = add i64 %sv_0.027.reload, %.reload144
%114 = add i32 %sv_1.128.reload, 1
%115 = sext i32 %sv_1.128.reload to i64
%116 = add i64 %7, %115
%117 = inttoptr i64 %113 to i8*
%118 = load i8, i8* %117, align 1
%119 = inttoptr i64 %116 to i8*
store i8 %118, i8* %119, align 1
%120 = load i64, i64* %21, align 8
%sext18 = add i64 %sext17, 4294967296
%121 = ashr exact i64 %sext18, 32
%122 = add i64 %120, %121
%123 = add i32 %sv_1.128.reload, 2
%124 = sext i32 %114 to i64
%125 = add i64 %7, %124
%126 = inttoptr i64 %122 to i8*
%127 = load i8, i8* %126, align 1
%128 = inttoptr i64 %125 to i8*
store i8 %127, i8* %128, align 1
%129 = load i64, i64* %21, align 8
%130 = add i64 %sext17, 8589934592
%sext19 = add i64 %sext17, 12884901888
%131 = ashr exact i64 %sext19, 32
%132 = ashr exact i64 %130, 32
%133 = add i64 %129, %132
%134 = add i32 %sv_1.128.reload, 3
%135 = sext i32 %123 to i64
%136 = add i64 %7, %135
%137 = inttoptr i64 %133 to i8*
%138 = load i8, i8* %137, align 1
%139 = inttoptr i64 %136 to i8*
store i8 %138, i8* %139, align 1
%140 = icmp eq i32 %112, 0
%141 = icmp eq i1 %140, false
store i64 %131, i64* %sv_0.1.be.reg2mem
store i32 %134, i32* %sv_1.2.be.reg2mem
br i1 %141, label LBL_16.LBL_16_crit_edge, label LBL_8
LBL_17:
%.pre = load i64, i64* %21, align 8
store i64 %.pre, i64* %.reg2mem143
store i32 %112, i32* %sv_2.129.reg2mem
store i32 %134, i32* %sv_1.128.reg2mem
store i64 %131, i64* %sv_0.027.reg2mem
br label LBL_16
LBL_18:
%sext639 = add i64 %sext639.in.reload, -4294967296
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%142 = add i64 %sv_3.038, %1
%sv_4.0 = ashr exact i64 %sext639, 32
%143 = trunc i64 %sv_4.0 to i32
%144 = icmp eq i32 %143, 0
%145 = icmp eq i1 %144, false
store i64 %sext639, i64* %sext639.in.reg2mem
store i64 %142, i64* %sv_3.038.in.in.reg2mem
store i64 %.lcssa.reload, i64* %sv_0.237.reg2mem
br i1 %145, label LBL_2, label LBL_23
LBL_19:
%146 = and i64 %46, 4294967295
store i64 %146, i64* %rax.0.reg2mem
br label LBL_26
LBL_20:
%147 = and i64 %69, 4294967295
store i64 %147, i64* %rax.0.reg2mem
br label LBL_26
LBL_21:
%148 = zext i32 %107 to i64
store i64 %148, i64* %rax.0.reg2mem
br label LBL_26
LBL_22:
%149 = zext i32 %56 to i64
store i64 %149, i64* %rax.0.reg2mem
br label LBL_26
LBL_23:
%150 = and i64 %sv_4.0, 4294967295
store i64 %150, i64* %rax.0.reg2mem
br label LBL_26
LBL_24:
%151 = zext i32 %34 to i64
store i64 %151, i64* %rax.0.reg2mem
br label LBL_26
LBL_25:
%152 = and i64 %23, 4294967295
store i64 %152, i64* %rax.0.reg2mem
br label LBL_26
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sext17, { 1, 2, 0 }
uselistorder i32 %sv_1.128.reload, { 3, 2, 1, 0 }
uselistorder i32 %sv_1.025.reload, { 3, 2, 1, 0 }
uselistorder i32 %66, { 0, 2, 3, 1 }
uselistorder i32 %56, { 1, 0, 2 }
uselistorder i8 %.in.reload, { 2, 0, 1 }
uselistorder i64 %.reload, { 0, 3, 5, 2, 4, 1 }
uselistorder i64 %.reload142, { 0, 4, 3, 2, 1 }
uselistorder i32 %sv_1.233.reload, { 0, 4, 1, 3, 2 }
uselistorder i64 %36, { 1, 0 }
uselistorder i32 %34, { 1, 0, 2 }
uselistorder i64 %sv_0.237.reload, { 2, 1, 0 }
uselistorder i32 %18, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sext639.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.038.in.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.237.reg2mem, { 1, 0, 2 }
uselistorder i8* %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem139, { 2, 0, 1 }
uselistorder i64* %.reg2mem141, { 2, 0, 1 }
uselistorder i32* %sv_1.233.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.be.reg2mem, { 2, 1, 0, 3 }
uselistorder i32* %sv_1.2.be.reg2mem, { 2, 1, 0, 3 }
uselistorder i32* %sv_2.026.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.025.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem143, { 2, 0, 1 }
uselistorder i32* %sv_2.129.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.128.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.027.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 6, 7, 8, 9, 10, 2, 1, 3 }
uselistorder i8 -1, { 1, 0 }
uselistorder i64 8589934592, { 1, 2, 3, 0 }
uselistorder i32 3, { 2, 3, 4, 0, 1 }
uselistorder i1 false, { 7, 2, 3, 4, 6, 5, 1, 0 }
uselistorder i32 0, { 4, 1, 2, 3, 0 }
uselistorder i64 4294967295, { 0, 1, 3, 2, 4 }
uselistorder i64 32, { 3, 4, 5, 6, 8, 7, 9, 11, 10, 2, 12, 0, 13, 1 }
uselistorder i64 4294967296, { 6, 0, 7, 1, 8, 2, 3, 4, 5 }
uselistorder label LBL_26, { 5, 4, 3, 9, 8, 7, 6, 1, 0, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kvm_vm_ioctl_check_extension_7725 | kvm_vm_ioctl_check_extension | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
%5 = zext i1 %4 to i32
%6 = icmp eq i32* %arg1, null
store i32 %5, i32* %sv_1.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
store i64 %arg2, i64* @0, align 8
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
switch i64 %arg2, label LBL_37 [
i64 1, label LBL_38
i64 2, label LBL_38
i64 3, label LBL_38
i64 4, label LBL_38
i64 5, label LBL_38
i64 6, label LBL_38
i64 7, label LBL_38
i64 8, label LBL_38
i64 9, label LBL_38
i64 10, label LBL_38
i64 11, label LBL_38
i64 12, label LBL_38
i64 13, label LBL_38
i64 14, label LBL_38
i64 15, label LBL_3
i64 16, label LBL_3
i64 17, label LBL_3
i64 18, label LBL_3
i64 19, label LBL_38
i64 20, label LBL_38
i64 21, label LBL_38
i64 22, label LBL_38
i64 23, label LBL_38
i64 24, label LBL_38
i64 25, label LBL_38
i64 26, label LBL_38
i64 27, label LBL_4
i64 28, label LBL_5
i64 29, label LBL_11
i64 30, label LBL_14
i64 31, label LBL_15
i64 32, label LBL_16
i64 33, label LBL_19
i64 34, label LBL_23
i64 35, label LBL_24
i64 36, label LBL_25
i64 37, label LBL_28
i64 38, label LBL_29
i64 39, label LBL_38
i64 40, label LBL_38
i64 41, label LBL_30
i64 42, label LBL_33
i64 43, label LBL_34
]
LBL_3:
%10 = icmp eq i32 %sv_1.0.reload, 0
%11 = zext i1 %10 to i32
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_4:
store i32 %sv_1.0.reload, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_5:
br i1 %6, label LBL_8, label LBL_6
LBL_6:
%12 = trunc i64 %1 to i32
%13 = icmp slt i32 %12, 2
store i32 %12, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_7, label LBL_38
LBL_7:
%14 = ptrtoint i32* %arg1 to i64
%15 = add i64 %14, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
store i32 %17, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_8:
%18 = icmp eq i32 %sv_1.0.reload, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_38, label LBL_9
LBL_9:
%19 = call i64 @FUNC(i64 1)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_10, label LBL_38
LBL_10:
%22 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
store i32 %22, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_11:
%23 = icmp eq i32 %sv_1.0.reload, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_38, label LBL_12
LBL_12:
%24 = call i64 @FUNC(i64 1)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 15, i32* %sv_0.0.reg2mem
br i1 %27, label LBL_38, label LBL_13
LBL_13:
%28 = load i32, i32* @gv_0, align 4
%29 = mul i32 %28, 2
%30 = add i32 %29, -1
store i32 %30, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_14:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_15:
%31 = call i64 @FUNC()
%32 = trunc i64 %31 to i32
store i32 %32, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_16:
%33 = icmp eq i32 %sv_1.0.reload, 0
br i1 %33, label LBL_18, label LBL_17
LBL_17:
%34 = call i64 @FUNC()
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %36, label LBL_18, label LBL_38
LBL_18:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_19:
%37 = icmp eq i32 %sv_1.0.reload, 0
br i1 %37, label LBL_22, label LBL_20
LBL_20:
%38 = call i64 @FUNC()
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_22, label LBL_21
LBL_21:
%42 = call i64 @FUNC(i64 1)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %44, label LBL_22, label LBL_38
LBL_22:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_23:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_24:
store i32 %sv_1.0.reload, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_25:
%45 = icmp eq i32 %sv_1.0.reload, 0
br i1 %45, label LBL_27, label LBL_26
LBL_26:
%46 = call i64 @FUNC()
%47 = trunc i64 %46 to i32
store i32 %47, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_27:
%48 = call i64 @FUNC()
%49 = trunc i64 %48 to i32
store i32 %49, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_28:
store i32 256, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_29:
store i32 128, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_30:
%50 = icmp eq i32 %sv_1.0.reload, 0
br i1 %50, label LBL_32, label LBL_31
LBL_31:
%51 = call i64 @FUNC(i64 1)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
store i32 1, i32* %sv_0.0.reg2mem
br i1 %54, label LBL_32, label LBL_38
LBL_32:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_33:
store i32 %sv_1.0.reload, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_34:
%55 = call i64 @FUNC(i64 2)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label LBL_36, label LBL_35
LBL_35:
%58 = ptrtoint i32* %arg1 to i64
%59 = call i64 @FUNC(i64 %58)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %61, label LBL_36, label LBL_38
LBL_36:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_37:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_38
LBL_38:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%62 = zext i32 %sv_0.0.reload to i64
ret i64 %62
uselistorder i32 %sv_1.0.reload, { 2, 3, 4, 1, 5, 6, 7, 8, 0, 9 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 52, 2, 1, 51, 4, 3, 50, 49, 48, 47, 46, 45, 8, 7, 10, 9, 44, 43, 41, 11, 42, 39, 12, 40, 38, 13, 37, 36, 5, 6, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 }
uselistorder i64 ()* @radix_enabled, { 1, 0 }
uselistorder i64 (i64)* @cpu_has_feature, { 4, 3, 2, 1, 0 }
uselistorder i64 4, { 2, 3, 0, 1 }
uselistorder i64 (i64)* @is_kvmppc_hv_enabled, { 1, 0 }
uselistorder i32 0, { 7, 0, 8, 9, 1, 10, 11, 12, 6, 2, 13, 14, 15, 3, 16, 17, 5, 18, 19, 20, 4, 21, 22, 23 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i32* %arg1, { 2, 1, 0, 3 }
uselistorder label LBL_38, { 51, 0, 1, 40, 2, 3, 41, 42, 43, 44, 45, 46, 6, 7, 8, 9, 47, 48, 36, 10, 35, 39, 11, 38, 37, 12, 49, 50, 4, 5, 19, 18, 17, 16, 15, 14, 13, 20, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | razer_chroma_standard_matrix_set_custom_frame_12531 | razer_chroma_standard_matrix_set_custom_frame | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = urem i64 %arg4, 256
%2 = urem i64 %arg3, 256
%3 = sub nsw i64 1, %2
%4 = add nsw i64 %3, %1
%5 = trunc i64 %4 to i32
%6 = mul i32 %5, 3
%7 = call i64 @FUNC(i64* nonnull %sv_1, i64 3, i64 11, i64 70)
store i64 -1, i64* %sv_1, align 8
%8 = call i64* @memcpy(i64* nonnull %sv_0, i64* %arg5, i32 %6)
%9 = load i64, i64* %sv_1, align 8
store i64 %9, i64* %arg1, align 8
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %0, 24
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %0, 40
%19 = inttoptr i64 %18 to i64*
%20 = add i64 %0, 48
%21 = inttoptr i64 %20 to i64*
%22 = add i64 %0, 56
%23 = inttoptr i64 %22 to i64*
%24 = add i64 %0, 64
%25 = inttoptr i64 %24 to i64*
%26 = add i64 %0, 72
%27 = inttoptr i64 %26 to i64*
%28 = add i64 %0, 80
%29 = inttoptr i64 %28 to i64*
%30 = add i64 %0, 88
%31 = inttoptr i64 %30 to i64*
%32 = add i64 %0, 96
%33 = inttoptr i64 %32 to i64*
%34 = add i64 %0, 104
%35 = inttoptr i64 %34 to i64*
%36 = add i64 %0, 112
%37 = inttoptr i64 %36 to i64*
%38 = add i64 %0, 120
%39 = inttoptr i64 %38 to i64*
%40 = add i64 %0, 128
%41 = inttoptr i64 %40 to i64*
%42 = add i64 %0, 136
%43 = inttoptr i64 %42 to i64*
%44 = add i64 %0, 144
%45 = inttoptr i64 %44 to i64*
%46 = add i64 %0, 152
%47 = inttoptr i64 %46 to i64*
%48 = add i64 %0, 160
%49 = inttoptr i64 %48 to i64*
%50 = add i64 %0, 168
%51 = inttoptr i64 %50 to i64*
%52 = add i64 %0, 176
%53 = inttoptr i64 %52 to i64*
%54 = add i64 %0, 184
%55 = inttoptr i64 %54 to i64*
%56 = add i64 %0, 192
%57 = inttoptr i64 %56 to i64*
%58 = add i64 %0, 200
%59 = inttoptr i64 %58 to i64*
%60 = add i64 %0, 208
%61 = inttoptr i64 %60 to i64*
%62 = add i64 %0, 216
%63 = inttoptr i64 %62 to i64*
%64 = add i64 %0, 224
%65 = inttoptr i64 %64 to i64*
%66 = add i64 %0, 232
%67 = inttoptr i64 %66 to i64*
%68 = add i64 %0, 240
%69 = inttoptr i64 %68 to i64*
%70 = add i64 %0, 248
%71 = inttoptr i64 %70 to i64*
ret i64 %0
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i64 %0, { 0, 31, 30, 29, 12, 1, 24, 2, 21, 3, 18, 4, 14, 5, 6, 7, 8, 9, 10, 11, 28, 17, 27, 13, 26, 25, 23, 22, 20, 19, 16, 15 }
uselistorder i64 56, { 1, 2, 0 }
} | 1 |
BinRealVul | mprint_9762 | mprint | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 1
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i8* %arg3 to i64
%4 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %3)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%5 = icmp eq i32 %0, 2
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_5, label LBL_3
LBL_3:
%7 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%8 = zext i32 %7 to i64
%9 = icmp slt i32 %7, 2
store i64 %8, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_4
LBL_4:
%10 = ptrtoint i64* %arg1 to i64
%11 = bitcast i64* %sv_0 to i8*
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i8* %arg3)
%13 = call i64 @FUNC(i64 %10, i64* nonnull %sv_0)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%14 = ptrtoint i8* %arg3 to i64
%15 = call i64 @FUNC(i64 %14)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder i8* %arg3, { 2, 0, 1 }
} | 0 |
BinRealVul | n_start_visual_mode_5832 | n_start_visual_mode | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
store i32 %0, i32* bitcast (i64* @gv_0 to i32*), align 8
store i8 1, i8* bitcast (i64* @gv_1 to i8*), align 8
store i8 1, i8* bitcast (i64* @gv_2 to i8*), align 8
%1 = icmp eq i32 %0, 22
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = urem i64 %3, 2
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 9
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC()
%11 = load i64, i64* @gv_3, 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)
br label LBL_4
LBL_4:
%17 = load i64, i64* @gv_3, align 8
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
store i32 %20, i32* bitcast (i64* @gv_4 to i32*), align 8
%21 = call i64 @FUNC()
%22 = call i64 @FUNC()
%23 = load i32, i32* @gv_5, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_7, label LBL_5
LBL_5:
%25 = load i32, i32* @gv_6, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_6
LBL_6:
store i8 1, i8* inttoptr (i64 4210756 to i8*), align 4
br label LBL_7
LBL_7:
%28 = load i64, i64* @gv_3, align 8
%29 = add i64 %28, 12
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %31 to i64
%33 = icmp eq i32 %31, 0
%34 = icmp slt i32 %31, 0
%35 = icmp eq i1 %34, false
%36 = icmp eq i1 %33, false
%37 = icmp eq i1 %35, %36
store i64 %32, i64* %rax.0.reg2mem
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%38 = add i64 %28, 4
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i64 %28, 16
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i64, i64* @gv_3, align 8
%44 = add i64 %43, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i64 %43, 20
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
store i64 %43, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %31, { 1, 0, 2 }
uselistorder i64 %28, { 1, 0, 2 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | hmp_block_set_io_throttle_18604 | hmp_block_set_io_throttle | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%6 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0))
%7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0))
%8 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
%9 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0))
%10 = and i64 %5, 4294967295
%11 = and i64 %6, 4294967295
%12 = and i64 %7, 4294967295
%13 = and i64 %8, 4294967295
%14 = call i64 @FUNC(i64 %9, i64 %13, i64 %12, i64 %11, i64 %10, i32 %4)
%15 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
ret i64 %15
uselistorder i64 (i64, i8*)* @qdict_get_int, { 5, 4, 3, 2, 1, 0 }
} | 1 |
reposvul_c_test | functionfs_init_57 | functionfs_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i64
%0 = call i64 @FUNC([4 x i8]** nonnull @gv_0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
%.pre = and i64 %0, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_2:
%5 = and i64 %0, 4294967295
%6 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %5)
store i64 %5, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
ret i64 %.pre-phi.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10 }
} | 0 |
BinRealVul | slurm_get_job_steps_4292 | slurm_get_job_steps | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i32*
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i32*, i32** %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 2, i32* %sv_1, align 4
%4 = bitcast i32* %sv_0 to i64*
%5 = call i64 @FUNC(i32* nonnull %sv_1, i64* nonnull %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%9 = load i32, i32* %sv_0, align 4
switch i32 %9, label LBL_6 [
i32 3, label LBL_2
i32 4, label LBL_3
]
LBL_2:
%10 = ptrtoint i32* %3 to i64
store i64 %10, i64* %arg4, align 8
%11 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_3:
%12 = load i32, i32* %3, align 4
%13 = ptrtoint i32* %3 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = icmp eq i32 %12, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = zext i32 %12 to i64
%17 = call i64 @FUNC(i64 %16)
br label LBL_5
LBL_5:
store i64 0, i64* %arg4, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%18 = call i64 @FUNC(i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %3, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64)* @slurm_seterrno_ret, { 1, 0 }
uselistorder i64* %arg4, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | internal_add_error_6660 | internal_add_error | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 16)
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %4, -1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg2)
%8 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %arg2, i64 %7, i64 %1)
%9 = call i64 @FUNC(i64 %arg2)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%10 = trunc i64 %2 to i8
%11 = icmp eq i8 %10, -1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %2, 1
%14 = inttoptr i64 %13 to i8*
store i8 %4, i8* %14, align 1
%15 = bitcast i64* %arg1 to i8*
store i8 %4, i8* %15, align 1
%.pre = urem i64 %3, 256
%.pre1 = add i64 %2, 8
%.pre3 = inttoptr i64 %.pre1 to i64*
store i64* %.pre3, i64** %.pre-phi4.reg2mem
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %2, 1
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = add i64 %18, %22
%24 = urem i64 %3, 256
%25 = inttoptr i64 %23 to i64*
store i64 %24, i64* %25, align 8
store i8 %4, i8* %20, align 1
store i64* %17, i64** %.pre-phi4.reg2mem
store i64 %24, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem
%26 = load i64, i64* %.pre-phi4.reload, align 8
%27 = add i64 %26, %.pre-phi.reload
%28 = inttoptr i64 %27 to i64*
store i64 %arg2, i64* %28, align 8
%29 = add i64 %27, 8
%30 = inttoptr i64 %29 to i64*
store i64 -1, i64* %30, align 8
store i64 %arg2, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %27, { 1, 0 }
uselistorder i8 %4, { 2, 0, 1, 3 }
uselistorder i64 %2, { 2, 1, 0, 3, 4, 5 }
uselistorder i64** %.pre-phi4.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 %arg2, { 0, 5, 4, 3, 2, 1 }
} | 0 |
BinRealVul | writelogentry_12406 | writelogentry | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%1 = load i32, i32* %0
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = load i32, i32* %0
%sv_0 = alloca i64, align 8
%5 = load i32, i32* %0
%sv_1 = alloca i8, align 1
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%6 = call i32 @time(i32* null)
%7 = sext i32 %6 to i64
store i64 %7, i64* %sv_3, align 8
%8 = bitcast i64* %sv_3 to i32*
%9 = bitcast i32* %sv_2 to %tm*
%10 = call %tm* @localtime_r(i32* nonnull %8, %tm* nonnull %9)
store i8 0, i8* %sv_1, align 1
%11 = icmp sgt i32 %5, 9
br i1 %11, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre4 = ptrtoint i8* %sv_1 to i64
store i64 %.pre4, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_2:
%12 = call i32 @strlen(i8* nonnull %sv_1)
%13 = sext i32 %12 to i64
%14 = ptrtoint i8* %sv_1 to i64
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i16*
store i16 48, i16* %16, align 2
store i64 %14, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%17 = sext i32 %5 to i64
%18 = call i64 @FUNC(i64 %17, i64* nonnull %sv_0)
%19 = bitcast i64* %sv_0 to i8*
%20 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%21 = call i32 @strlen(i8* nonnull %sv_1)
%22 = sext i32 %21 to i64
%23 = add i64 %.pre-phi.reload, %22
%24 = inttoptr i64 %23 to i16*
store i16 45, i16* %24, align 2
%25 = icmp sgt i32 %4, 8
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = call i32 @strlen(i8* nonnull %sv_1)
%27 = sext i32 %26 to i64
%28 = add i64 %.pre-phi.reload, %27
%29 = inttoptr i64 %28 to i16*
store i16 48, i16* %29, align 2
br label LBL_5
LBL_5:
%30 = add i32 %4, 1
%31 = sext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31, i64* nonnull %sv_0)
%33 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%34 = call i32 @strlen(i8* nonnull %sv_1)
%35 = sext i32 %34 to i64
%36 = add i64 %.pre-phi.reload, %35
%37 = inttoptr i64 %36 to i16*
store i16 45, i16* %37, align 2
%38 = add i32 %3, 1900
%39 = sext i32 %38 to i64
%40 = call i64 @FUNC(i64 %39, i64* nonnull %sv_0)
%41 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%42 = call i32 @strlen(i8* nonnull %sv_1)
%43 = sext i32 %42 to i64
%44 = add i64 %.pre-phi.reload, %43
%45 = inttoptr i64 %44 to i16*
store i16 32, i16* %45, align 2
%46 = icmp sgt i32 %2, 9
br i1 %46, label LBL_7, label LBL_6
LBL_6:
%47 = call i32 @strlen(i8* nonnull %sv_1)
%48 = sext i32 %47 to i64
%49 = add i64 %.pre-phi.reload, %48
%50 = inttoptr i64 %49 to i16*
store i16 48, i16* %50, align 2
br label LBL_7
LBL_7:
%51 = sext i32 %2 to i64
%52 = call i64 @FUNC(i64 %51, i64* nonnull %sv_0)
%53 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%54 = call i32 @strlen(i8* nonnull %sv_1)
%55 = sext i32 %54 to i64
%56 = add i64 %.pre-phi.reload, %55
%57 = inttoptr i64 %56 to i16*
store i16 58, i16* %57, align 2
%58 = icmp sgt i32 %1, 9
br i1 %58, label LBL_9, label LBL_8
LBL_8:
%59 = call i32 @strlen(i8* nonnull %sv_1)
%60 = sext i32 %59 to i64
%61 = add i64 %.pre-phi.reload, %60
%62 = inttoptr i64 %61 to i16*
store i16 48, i16* %62, align 2
br label LBL_9
LBL_9:
%63 = sext i32 %1 to i64
%64 = call i64 @FUNC(i64 %63, i64* nonnull %sv_0)
%65 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%66 = call i32 @strlen(i8* nonnull %sv_1)
%67 = sext i32 %66 to i64
%68 = add i64 %.pre-phi.reload, %67
%69 = inttoptr i64 %68 to i16*
store i16 58, i16* %69, align 2
%70 = load i32, i32* %sv_2, align 4
%71 = icmp sgt i32 %70, 9
store i32 %70, i32* %.reg2mem
br i1 %71, label LBL_11, label LBL_10
LBL_10:
%72 = call i32 @strlen(i8* nonnull %sv_1)
%73 = sext i32 %72 to i64
%74 = add i64 %.pre-phi.reload, %73
%75 = inttoptr i64 %74 to i16*
store i16 48, i16* %75, align 2
%.pre = load i32, i32* %sv_2, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_11
LBL_11:
%.reload = load i32, i32* %.reg2mem
%76 = sext i32 %.reload to i64
%77 = call i64 @FUNC(i64 %76, i64* nonnull %sv_0)
%78 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
%79 = icmp eq i64* %arg1, null
br i1 %79, label LBL_13, label LBL_12
LBL_12:
%80 = call i32 @strlen(i8* nonnull %sv_1)
%81 = sext i32 %80 to i64
%82 = add i64 %.pre-phi.reload, %81
%83 = inttoptr i64 %82 to i32*
store i32 1764578080, i32* %83, align 4
%84 = add i64 %82, 4
%85 = inttoptr i64 %84 to i16*
store i16 15716, i16* %85, align 2
%86 = add i64 %82, 6
%87 = inttoptr i64 %86 to i8*
store i8 0, i8* %87, align 1
%88 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_0)
%89 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %19)
br label LBL_13
LBL_13:
%90 = call i32 @strlen(i8* nonnull %sv_1)
%91 = sext i32 %90 to i64
%92 = add i64 %.pre-phi.reload, %91
%93 = inttoptr i64 %92 to i16*
store i16 8250, i16* %93, align 2
%94 = add i64 %92, 2
%95 = inttoptr i64 %94 to i8*
store i8 0, i8* %95, align 1
%96 = icmp eq i8* %arg2, null
br i1 %96, label LBL_15, label LBL_14
LBL_14:
%97 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %arg2)
br label LBL_15
LBL_15:
%98 = icmp eq i8* %arg3, null
br i1 %98, label LBL_17, label LBL_16
LBL_16:
%99 = call i8* @strcat(i8* nonnull %sv_1, i8* nonnull %arg3)
br label LBL_17
LBL_17:
%100 = call i32 @strlen(i8* nonnull %sv_1)
%101 = sext i32 %100 to i64
%102 = add i64 %.pre-phi.reload, %101
%103 = inttoptr i64 %102 to i16*
store i16 2573, i16* %103, align 2
%104 = add i64 %102, 2
%105 = inttoptr i64 %104 to i8*
store i8 0, i8* %105, align 1
%106 = call i64 @FUNC(i8* nonnull %sv_1)
ret i64 %106
uselistorder i64 %102, { 1, 0 }
uselistorder i64 %92, { 1, 0 }
uselistorder i64 %82, { 2, 1, 0 }
uselistorder i64 %.pre-phi.reload, { 12, 11, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i8* %sv_1, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 23, 0, 25 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %0, { 4, 3, 2, 1, 0 }
uselistorder i8* (i8*, i8*)* @strcat, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64*)* @ultostr, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i8* %arg3, { 1, 0 }
uselistorder i8* %arg2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | v9fs_walk_marshal_10288 | v9fs_walk_marshal | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = urem i64 %arg2, 65536
%5 = call i64 @FUNC(i64 %3, i64 7, i64* nonnull @gv_0, i64 %4, i64 %2, i64 %1)
%6 = icmp slt i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_4
LBL_1:
%8 = ptrtoint i64* %arg3 to i64
%9 = add i64 %5, 7
%10 = icmp eq i64 %4, 0
store i32 0, i32* %storemerge3.reg2mem
store i64 %9, i64* %sv_0.02.reg2mem
store i64 %9, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%11 = call i64 @FUNC(i64 %3, i64 %sv_0.02.reload, i64* nonnull @gv_1, i64 %8, i64 %2, i64 %1)
%12 = icmp slt i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_3:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%14 = add i64 %11, %sv_0.02.reload
%15 = add i32 %storemerge3.reload, 1
%16 = sext i32 %15 to i64
%17 = icmp sgt i64 %4, %16
store i32 %15, i32* %storemerge3.reg2mem
store i64 %14, i64* %sv_0.02.reg2mem
store i64 %14, i64* %rax.0.reg2mem
br i1 %17, label LBL_2, label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64*, i64, i64, i64)* @pdu_marshal, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tm2_build_huff_table_7415 | tm2_build_huff_table | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%4 = call i64 @FUNC(i64 %3, i64 5)
%5 = trunc i64 %4 to i32
store i32 %5, i32* %sv_1, align 4
%6 = call i64 @FUNC(i64 %3, i64 5)
%7 = trunc i64 %6 to i32
%8 = call i64 @FUNC(i64 %3, i64 5)
%9 = call i64 @FUNC(i64 %3, i64 17)
%.off = add i32 %5, -1
%10 = icmp ult i32 %.off, 32
%11 = icmp ult i32 %7, 33
%12 = icmp eq i1 %10, %11
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = and i64 %6, 4294967295
%17 = and i64 %4, 4294967295
%18 = call i64 @FUNC(i64 %15, i64 0, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_0, i64 0, i64 0), i64 %17, i64 %16, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%19 = trunc i64 %9 to i32
%.off9 = add i32 %19, -1
%20 = icmp ult i32 %.off9, 65536
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = add i64 %3, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = and i64 %9, 4294967295
%25 = call i64 @FUNC(i64 %23, i64 0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%26 = add i32 %19, 1
%27 = ashr i32 %26, 1
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 4
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i64 %29)
%32 = call i64 @FUNC(i64 %29)
%33 = call i64 @FUNC(i64 %3, i64 0, i64 0, i32* nonnull %sv_1)
%34 = icmp eq i32 %27, 0
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = add i64 %3, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = zext i32 %27 to i64
%39 = call i64 @FUNC(i64 %37, i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 %38, i64 %1)
store i64 4294967295, i64* %sv_0.2.reg2mem
br label LBL_12
LBL_6:
%40 = trunc i64 %33 to i32
%41 = icmp eq i32 %40, -1
store i64 4294967295, i64* %sv_0.2.reg2mem
br i1 %41, label LBL_12, label LBL_7
LBL_7:
%42 = ptrtoint i64* %arg2 to i64
%43 = icmp eq i32 %7, 0
%44 = icmp eq i1 %43, false
%spec.select = select i1 %44, i32 %7, i32 1
%45 = add i64 %42, 16
%46 = zext i32 %spec.select to i64
%47 = call i64 @FUNC(i64 %45, i64 %46, i32 0, i64 %32, i64 4, i64 4)
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_9, label LBL_8
LBL_8:
%51 = add i64 %3, 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %53, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %32, i64 4, i64 4)
store i64 4294967295, i64* %sv_0.2.reg2mem
br label LBL_12
LBL_9:
%55 = bitcast i64* %arg2 to i32*
store i32 %spec.select, i32* %55, align 4
%56 = add i64 %42, 4
%57 = inttoptr i64 %56 to i32*
store i32 0, i32* %57, align 4
%58 = call i64 @FUNC(i64 %29)
%59 = add i64 %42, 8
%60 = inttoptr i64 %59 to i64*
store i64 %58, i64* %60, align 8
%61 = load i32, i32* %57, align 4
%62 = icmp eq i32 %61, 0
store i64 0, i64* %sv_0.2.reg2mem
br i1 %62, label LBL_12, label LBL_10
LBL_10:
%63 = inttoptr i64 %30 to i32*
%64 = load i32, i32* %63, align 4
%65 = inttoptr i64 %58 to i32*
store i32 %64, i32* %65, align 4
%66 = load i32, i32* %57, align 4
%67 = icmp ugt i32 %66, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem11
store i64 0, i64* %sv_0.2.reg2mem
br i1 %67, label LBL_11, label LBL_12
LBL_11:
%.reload12 = load i32, i32* %.reg2mem11
%.reload = load i64, i64* %.reg2mem
%.pre = load i64, i64* %60, align 8
%68 = mul i64 %.reload, 4
%69 = add i64 %68, %30
%70 = add i64 %68, %.pre
%71 = inttoptr i64 %69 to i32*
%72 = load i32, i32* %71, align 4
%73 = inttoptr i64 %70 to i32*
store i32 %72, i32* %73, align 4
%74 = add i32 %.reload12, 1
%75 = load i32, i32* %57, align 4
%76 = zext i32 %75 to i64
%77 = sext i32 %74 to i64
%78 = icmp slt i64 %77, %76
store i64 %77, i64* %.reg2mem
store i32 %74, i32* %.reg2mem11
store i64 0, i64* %sv_0.2.reg2mem
br i1 %78, label LBL_11, label LBL_12
LBL_12:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%79 = call i64 @FUNC(i64 %30)
%80 = call i64 @FUNC(i64 %31)
%81 = call i64 @FUNC(i64 %32)
store i64 %sv_0.2.reload, 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 %68, { 1, 0 }
uselistorder i32* %57, { 2, 0, 1, 3 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i64 %32, { 2, 0, 1 }
uselistorder i64 %30, { 2, 1, 0 }
uselistorder i64 %29, { 3, 2, 1, 0 }
uselistorder i32 %27, { 1, 0, 2 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32 %7, { 0, 2, 1 }
uselistorder i64 %3, { 3, 2, 4, 1, 0, 5, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem11, { 2, 0, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1, 3, 4, 6, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @av_free, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 4, 0, 5, 3 }
uselistorder i64 (i64)* @av_mallocz, { 2, 1, 0 }
uselistorder i64 4, { 0, 6, 2, 3, 5, 4, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @get_bits, { 2, 1, 0 }
uselistorder label LBL_12, { 1, 0, 2, 3, 5, 4 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | balloon_stats_poll_cb_14468 | balloon_stats_poll_cb | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %0, i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %0, i64 %15, i64 %12)
%17 = call i64 @FUNC(i64 %0, i64 %0)
%18 = load i64, i64* %14, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 0, i64* %14, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %14, { 1, 0, 2 }
uselistorder i64 %0, { 0, 3, 1, 2, 5, 4, 6, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | openfile_1146 | openfile | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32*, i32** @gv_0, align 8
%1 = icmp eq i32* %0, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = call i32 @fwrite(i64* bitcast ([37 x i8]* @gv_2 to i64*), i32 1, i32 36, %_IO_FILE* %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0))
%5 = inttoptr i64 %4 to i32*
store i32* %5, i32** @gv_0, align 8
%6 = icmp eq i64 %4, 0
%7 = icmp eq i1 %6, false
store i64 1, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_7
LBL_3:
%8 = trunc i64 %arg3 to i32
%9 = icmp eq i32 %8, 0
%not. = icmp ne i1 %9, true
%10 = zext i1 %not. to i64
%sv_0.0 = or i64 %10, %arg2
%11 = trunc i64 %sv_0.0 to i32
%12 = call i64 @FUNC(i64 %4, i64 %arg1, i32 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = load [8 x i8]*, [8 x i8]** @gv_4, align 8
%17 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 0
%19 = inttoptr i64 %arg1 to i8*
%20 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %17, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0), i8* %18, i8* %19)
store i32* null, i32** @gv_0, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_7, label LBL_6
LBL_6:
%21 = load i32*, i32** @gv_0, align 8
store i32 1, i32* %21, 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 i1 %9, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i32* null, { 1, 0, 2 }
uselistorder i32** @gv_0, { 3, 2, 1, 0 }
uselistorder label LBL_7, { 1, 0, 3, 2, 4 }
} | 0 |
BinRealVul | snd_fm801_free_4875 | snd_fm801_free | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%.pre = ptrtoint i32* %arg1 to i64
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %.pre, i64 0)
%5 = trunc i64 %4 to i16
%6 = or i16 %5, 195
%7 = call i64 @FUNC(i64 %.pre, i64 0, i16 %6)
%8 = add i64 %.pre, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %10, i64 %11, i64 %.pre)
br label LBL_2
LBL_2:
%13 = add i64 %.pre, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = urem i32 %15, 2
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = add i64 %.pre, 20
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %.pre, 24
%22 = call i64 @FUNC(i64 %21)
br label LBL_4
LBL_4:
ret i64 0
uselistorder i64 %.pre, { 0, 1, 2, 5, 6, 4, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | alloc_block_15527 | alloc_block | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
store i64 %arg2, i64* %sv_1, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %3, 20
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp slt i64 %arg2, 0
%8 = icmp slt i64 %0, %arg2
%or.cond = or i1 %7, %8
store i64 -1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_1
LBL_1:
%9 = mul i64 %arg2, 512
%10 = add i64 %3, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = sext i32 %12 to i64
%14 = udiv i64 %9, %13
%15 = inttoptr i64 %3 to i64*
%16 = load i64, i64* %15, align 8
%17 = mul i64 %14, 4
%18 = and i64 %17, 17179869180
%19 = add i64 %18, %16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, -1
store i64 -1, i64* %rax.0.reg2mem
br i1 %22, label LBL_2, label LBL_6
LBL_2:
%23 = ptrtoint i64* %sv_1 to i64
%24 = sext i32 %6 to i64
%25 = add nsw i64 %24, 15
%26 = udiv i64 %25, 16
%27 = mul i64 %26, 16
%28 = sub i64 %23, %27
%29 = add i64 %3, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %31, 511
%33 = icmp slt i64 %31, 0
%34 = select i1 %33, i64 %32, i64 %31
%35 = udiv i64 %34, 512
%36 = trunc i64 %35 to i32
store i32 %36, i32* %20, align 4
%37 = load i32, i32* %5, align 4
%38 = inttoptr i64 %28 to i64*
%39 = call i64* @memset(i64* %38, i32 255, i32 %37)
%40 = load i32, i32* %5, align 4
%41 = sext i32 %40 to i64
%42 = load i64, i64* %30, align 8
%43 = add i64 %0, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %45, i64 %42, i64 %28, i64 %41)
%47 = load i64, i64* %30, align 8
%48 = load i32, i32* %11, align 4
%49 = load i32, i32* %5, align 4
%50 = add i32 %49, %48
%51 = sext i32 %50 to i64
%52 = add i64 %47, %51
store i64 %52, i64* %30, align 8
%53 = call i64 @FUNC(i64 %0)
%54 = trunc i64 %53 to i32
%55 = icmp slt i32 %54, 0
br i1 %55, label LBL_5, label LBL_3
LBL_3:
%56 = add i64 %3, 24
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = and i64 %17, 4294967292
%60 = add i64 %58, %59
%61 = load i64, i64* %15, align 8
%62 = add i64 %61, %18
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i64 %65)
%67 = trunc i64 %66 to i32
store i32 %67, i32* %sv_0, align 4
%68 = load i64, i64* %44, align 8
%69 = ptrtoint i32* %sv_0 to i64
%70 = call i64 @FUNC(i64 %68, i64 %60, i64 %69, i64 4)
%71 = trunc i64 %70 to i32
%72 = icmp slt i32 %71, 0
br i1 %72, label LBL_5, label LBL_4
LBL_4:
%73 = load i64, i64* %sv_1, align 8
%74 = call i64 @FUNC(i64 %0, i64 %73, i64 0)
store i64 %74, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%75 = load i64, i64* %30, align 8
%76 = load i32, i32* %11, align 4
%77 = load i32, i32* %5, align 4
%78 = add i32 %77, %76
%79 = sext i32 %78 to i64
%80 = sub i64 %75, %79
store i64 %80, i64* %30, align 8
store i64 -1, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %31, { 2, 1, 0 }
uselistorder i64* %30, { 1, 0, 3, 2, 4, 5 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1, 3, 4 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 3, 0, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64, i64, i64, i64)* @bdrv_pwrite, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_6, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | ns_to_timespec_12086 | ns_to_timespec | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = call i64 @FUNC(i64 %arg1, i64 1000000000, i64* nonnull %sv_0)
store i64 %2, i64* %sv_1, align 8
%3 = lshr i64 %arg1, 63
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %2, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = load i64, i64* %sv_0, align 8
%8 = call i64 @FUNC(i64* nonnull %sv_1, i64 %2, i64 %7)
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1000000000, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | avr_probe_1697 | avr_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 843204948
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = add i64 %0, 12
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%.off = add i16 %5, -1
%6 = icmp ult i16 %.off, 256
store i64 50, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_3
LBL_2:
%7 = add i64 %0, 14
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = icmp ult i16 %9, 257
%. = select i1 %10, i64 100, i64 50
store i64 %., i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 50, { 1, 0 }
} | 0 |
BinRealVul | TIFFInitJBIG_6452 | TIFFInitJBIG | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 27, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %1 to i32
%6 = and i32 %5, -3
%7 = bitcast i64* %arg1 to i32*
store i32 %6, i32* %7, align 4
%8 = and i32 %5, 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = bitcast i64* %rdi to i32*
%11 = add i64 %4, 8
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
%15 = load i32, i32* %10, align 8
%16 = or i32 %15, 8
store i32 %16, i32* %7, align 4
br label LBL_4
LBL_4:
%17 = add i64 %4, 24
%18 = inttoptr i64 %17 to i64*
store i64 4198710, i64* %18, align 8
%19 = add i64 %4, 32
%20 = inttoptr i64 %19 to i64*
store i64 4198717, i64* %20, align 8
%21 = add i64 %4, 40
%22 = inttoptr i64 %21 to i64*
store i64 4198724, i64* %22, align 8
%23 = add i64 %4, 48
%24 = inttoptr i64 %23 to i64*
store i64 4198731, i64* %24, align 8
ret i64 1
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %4, { 2, 3, 4, 5, 0, 1 }
} | 0 |
BinRealVul | uhci_async_cancel_all_15869 | uhci_async_cancel_all | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge3.lcssa.reg2mem = alloca i64
%storemerge357.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 %arg1, i64* %storemerge3.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
store i64 %arg1, i64* %storemerge357.reg2mem
br label LBL_2
LBL_2:
%storemerge357.reload = load i64, i64* %storemerge357.reg2mem
%3 = inttoptr i64 %storemerge357.reload to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %storemerge357.reload)
%6 = icmp eq i64 %4, 0
store i64 %4, i64* %storemerge357.reg2mem
store i64 0, i64* %storemerge3.lcssa.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_3:
%storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem
ret i64 %storemerge3.lcssa.reload
uselistorder i64 %storemerge357.reload, { 1, 0 }
uselistorder i64* %storemerge357.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @uhci_queue_free, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | kvm_update_guest_debug_14425 | kvm_update_guest_debug | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%sv_0 = alloca i64, align 8
%5 = trunc i64 %2 to i32
%6 = icmp eq i32 %5, 0
%spec.store.select = select i1 %6, i64 0, i64 3
store i64 %spec.store.select, i64* %sv_0, align 8
%7 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0)
%8 = load i64, i64* %sv_0, align 8
%9 = or i64 %8, %arg2
store i64 %9, i64* %sv_0, align 8
%10 = call i64 @FUNC(i64 %3, i64 4198752, i64* nonnull %sv_0)
%11 = zext i32 %4 to i64
ret i64 %11
uselistorder i64* %sv_0, { 0, 2, 3, 1, 4 }
uselistorder i64 %3, { 1, 0 }
} | 1 |
BinRealVul | http_reset_txn_9613 | http_reset_txn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
store i64 %0, i64* %4, align 8
%5 = add i64 %0, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
store i64 %0, i64* %rdi, align 8
%12 = call i64 @FUNC(i64 %0)
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
%15 = add i64 %0, 48
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 ptrtoint (i64* @gv_1 to i32), i32* bitcast (i64* @gv_0 to i32*), align 8
%18 = add i64 %0, 52
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %0, 40
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %21, align 8
%22 = add i64 %0, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = or i32 %26, 1
store i32 %27, i32* %25, align 4
%28 = add i64 %0, 32
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %34, align 4
br label LBL_2
LBL_2:
%39 = load i64, i64* %23, align 8
%40 = bitcast i64* %rdi to i32*
%41 = load i32, i32* %40, align 8
%42 = add i64 %39, 4
%43 = inttoptr i64 %42 to i32*
store i32 %41, i32* %43, align 4
%44 = load i64, i64* %23, align 8
%45 = add i64 %44, 8
%46 = inttoptr i64 %45 to i32*
store i32 -1, i32* %46, align 4
%47 = load i64, i64* %29, align 8
%48 = inttoptr i64 %47 to i32*
store i32 -1, i32* %48, align 4
%49 = load i64, i64* %29, align 8
%50 = load i32, i32* %40, align 8
%51 = add i64 %49, 4
%52 = inttoptr i64 %51 to i32*
store i32 %50, i32* %52, align 4
%53 = load i64, i64* %23, align 8
%54 = add i64 %53, 12
%55 = inttoptr i64 %54 to i32*
store i32 -1, i32* %55, align 4
%56 = load i64, i64* %23, align 8
%57 = add i64 %56, 16
%58 = inttoptr i64 %57 to i32*
store i32 -1, i32* %58, align 4
%59 = load i64, i64* %23, align 8
%60 = add i64 %59, 20
%61 = inttoptr i64 %60 to i32*
store i32 -1, i32* %61, align 4
%62 = load i64, i64* %29, align 8
%63 = add i64 %62, 8
%64 = inttoptr i64 %63 to i32*
store i32 -1, i32* %64, align 4
%65 = load i64, i64* %29, align 8
%66 = add i64 %65, 12
%67 = inttoptr i64 %66 to i32*
store i32 -1, i32* %67, align 4
%68 = load i64, i64* %29, align 8
%69 = add i64 %68, 16
%70 = inttoptr i64 %69 to i32*
store i32 -1, i32* %70, align 4
ret i64 %68
uselistorder i64 %68, { 1, 0 }
uselistorder i64 %0, { 0, 1, 2, 3, 4, 5, 7, 6, 8, 9, 13, 12, 10, 11, 14 }
uselistorder i64* %rdi, { 1, 0 }
} | 0 |
BinRealVul | netdev_txq_to_tc_9705 | netdev_txq_to_tc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.in4.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = trunc i64 %arg2 to i32
store i32 0, i32* %sv_1.05.reg2mem
store i64 %6, i64* %sv_0.0.in4.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in4.reload = load i64, i64* %sv_0.0.in4.reg2mem
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in4.reload to i32*
%8 = load i32, i32* %sv_0.0, align 4
%9 = sub i32 %7, %8
%10 = add i64 %sv_0.0.in4.reload, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp ult i32 %9, %12
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = zext i32 %sv_1.05.reload to i64
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%16 = add nuw nsw i32 %sv_1.05.reload, 1
%17 = add i64 %sv_0.0.in4.reload, 8
%18 = icmp ult i32 %16, 8
store i32 %16, i32* %sv_1.05.reg2mem
store i64 %17, i64* %sv_0.0.in4.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_2, label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | acpi_gpe_init_668 | acpi_gpe_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i8
%2 = bitcast i64* %arg1 to i8*
store i8 %1, i8* %2, align 1
%3 = urem i64 %arg2, 256
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = call i64 @FUNC(i64 %3)
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
ret i64 %7
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
} | 0 |
BinRealVul | event_nick_18567 | event_nick | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i8* %arg3 to i64
%5 = ptrtoint i8* %arg2 to i64
%sv_0 = alloca i64, align 8
%6 = icmp eq i8* %arg2, null
%7 = icmp eq i1 %6, false
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %5, i64 1, i64* nonnull %sv_0)
%11 = load i64, i64* %sv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 %4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_1, label LBL_2
LBL_1:
%16 = ptrtoint i64* %arg1 to i64
%17 = call i64 @FUNC(i64 %16, i64 %4)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 %17, i64* %.reg2mem
br i1 %19, label LBL_3, label LBL_6
LBL_2:
%20 = call i64 @FUNC(i64 %10)
store i64 %20, i64* %storemerge.reg2mem
br label LBL_7
LBL_3:
%.reload = load i64, i64* %.reg2mem
%21 = inttoptr i64 %.reload to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = load i64, i64* %sv_0, align 8
%25 = call i64 @FUNC(i64 %24)
store i64 %25, i64* %21, align 8
%26 = add i64 %.reload, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64* nonnull @gv_0, i64 %28, i64 0, i64 %3, i64 %2, i64 %1)
%30 = call i64 @FUNC(i64 %16, i64 %29)
%31 = call i64 @FUNC(i64 %29)
%32 = load i64, i64* %27, align 8
%33 = call i64 @FUNC(i64 %32)
store i64 0, i64* %27, align 8
%34 = load i64, i64* %sv_0, align 8
%35 = call i64 @FUNC(i64 %34)
store i64 %35, i64* %27, align 8
%36 = icmp eq i64 %30, 0
br i1 %36, label LBL_4, label LBL_5
LBL_4:
%37 = call i64 @FUNC(i64 %16, i64 %4)
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 %37, i64* %.reg2mem
br i1 %39, label LBL_3, label LBL_6
LBL_5:
%40 = call i64 @FUNC(i64* nonnull @gv_0, i64 %35, i64 0, i64 %3, i64 %2, i64 %1)
%41 = call i64 @FUNC(i64 %30, i64 %40)
%42 = call i64 @FUNC(i64 %40)
br label LBL_4
LBL_6:
%43 = call i64 @FUNC(i64 %10)
store i64 %43, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %27, { 0, 2, 1, 3 }
uselistorder i64 %16, { 2, 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 3, 0 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*, i64, i64, i64, i64, i64)* @g_strconcat, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 5, 4, 3, 2, 0 }
uselistorder i64 (i64, i64)* @dcc_chat_find_nick, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | g2m_init_buffers_11126 | g2m_init_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
%7 = trunc i64 %1 to i32
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp ult i32 %10, %7
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %2, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp ult i32 %14, %17
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%19 = mul i32 %7, 3
%20 = add i32 %19, 15
%21 = and i32 %20, -16
%22 = add i64 %2, 40
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %2, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i32 %26, 15
%28 = and i32 %27, -16
%29 = load i64, i64* %4, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = load i32, i32* %23, align 4
%32 = mul i32 %31, %28
%33 = sext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
store i64 %34, i64* %4, align 8
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %36, label LBL_4, label LBL_12
LBL_4:
%37 = add i64 %2, 48
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
%.pre2 = add i64 %2, 56
%.pre4 = inttoptr i64 %.pre2 to i64*
br i1 %40, label LBL_8, label LBL_5
LBL_5:
%41 = load i64, i64* %.pre4, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_8, label LBL_6
LBL_6:
%43 = add i64 %2, 24
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %2, 16
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp ult i32 %45, %48
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = add i64 %2, 28
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %2, 20
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp ult i32 %52, %55
br i1 %56, label LBL_8, label LBL_11
LBL_8:
%57 = add i64 %2, 16
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = mul i32 %59, 3
%61 = add i32 %60, 15
%62 = and i32 %61, -16
%63 = add i64 %2, 80
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = add i64 %2, 20
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i32 %67, 15
%69 = and i32 %68, -16
%70 = load i64, i64* %38, align 8
%71 = call i64 @FUNC(i64 %70)
%72 = load i64, i64* %.pre4, align 8
%73 = call i64 @FUNC(i64 %72)
%74 = add i64 %2, 64
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = call i64 @FUNC(i64 %76)
%78 = add i64 %2, 72
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = call i64 @FUNC(i64 %80)
%82 = load i32, i32* %64, align 4
%83 = mul i32 %82, %69
%84 = sext i32 %83 to i64
%85 = call i64 @FUNC(i64 %84)
store i64 %85, i64* %38, align 8
%86 = load i32, i32* %64, align 4
%87 = mul i32 %86, %69
%88 = sext i32 %87 to i64
%89 = call i64 @FUNC(i64 %88)
store i64 %89, i64* %.pre4, align 8
%90 = load i32, i32* %58, align 4
%91 = add i32 %90, 1
%92 = mul i32 %91, %69
%93 = add i32 %92, 32
%94 = sext i32 %93 to i64
%95 = call i64 @FUNC(i64 %94)
store i64 %95, i64* %75, align 8
%96 = load i32, i32* %58, align 4
%97 = mul i32 %96, %69
%98 = sext i32 %97 to i64
%99 = call i64 @FUNC(i64 %98)
store i64 %99, i64* %79, align 8
%100 = load i64, i64* %38, align 8
%101 = icmp eq i64 %100, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %101, label LBL_12, label LBL_9
LBL_9:
%102 = load i64, i64* %.pre4, align 8
%103 = icmp eq i64 %102, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %103, label LBL_12, label LBL_10
LBL_10:
%104 = load i64, i64* %75, align 8
%105 = icmp ne i64 %104, 0
%106 = icmp eq i64 %99, 0
%107 = icmp eq i1 %106, false
%or.cond = icmp eq i1 %107, %105
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_12
LBL_11:
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 2, 3, 5, 4, 9, 10, 7, 8, 0, 6, 11, 12, 14, 13, 15, 16 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4 }
uselistorder i64 4294967284, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @av_mallocz, { 4, 3, 2, 1, 0 }
uselistorder label LBL_12, { 4, 0, 2, 1, 3 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | dup_task_struct_18510 | dup_task_struct | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC()
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%5 = call i64 @FUNC(i64 %2)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%9 = call i64 @FUNC(i64 %2, i64 %0)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_4
LBL_4:
%13 = inttoptr i64 %2 to i64*
store i64 %5, i64* %13, align 8
%14 = add i64 %2, 40
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %2, i64 %0)
%20 = call i64 @FUNC(i64 %2)
%21 = call i64 @FUNC(i64 %2)
%22 = inttoptr i64 %21 to i64*
store i64 3735928559, i64* %22, align 8
%23 = call i64 @FUNC()
%sext = mul i64 %23, 4294967296
%24 = ashr exact i64 %sext, 32
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = add i64 %2, 8
%28 = call i64 @FUNC(i64 %27, i64 2)
%29 = add i64 %2, 12
%30 = call i64 @FUNC(i64 %29, i64 0)
%31 = add i64 %2, 16
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %2, 24
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %34, align 8
%35 = call i64 @FUNC(i64 %5, i64 1)
store i64 %2, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%36 = call i64 @FUNC(i64 %5)
%37 = call i64 @FUNC(i64 %2)
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 %5, { 2, 0, 1, 3 }
uselistorder i64 %2, { 12, 0, 2, 5, 4, 3, 6, 9, 8, 7, 10, 11, 13, 1, 14, 15 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | oggvorbis_encode_close_14685 | oggvorbis_encode_close | 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 = call i64 @FUNC(i64 %3, i64 0)
%5 = add i64 %3, 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %3)
%8 = add i64 %3, 16
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %0)
%11 = add i64 %0, 8
%12 = call i64 @FUNC(i64 %11)
ret i64 0
uselistorder i64 (i64)* @av_freep, { 1, 0 }
} | 1 |
BinRealVul | parse_str_7413 | parse_str | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.1.in.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %0, i64* %sv_0.0.reg2mem
store i64 %3, i64* %rax.1.reg2mem
br i1 %5, label LBL_17, label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%6 = call i32* @__errno_location()
store i32 0, i32* %6, align 4
%7 = inttoptr i64 %sv_0.0.reload to i8*
%8 = call i64 @strtoll(i8* %7, i8** nonnull %sv_1, i32 0)
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_16, label LBL_2
LBL_2:
%13 = load i8*, i8** %sv_1, align 8
%14 = ptrtoint i8* %13 to i64
%15 = icmp ult i64 %sv_0.0.reload, %14
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_16, label LBL_3
LBL_3:
%17 = load i8, i8* %13, align 1
%18 = icmp eq i8 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = call i64 @FUNC(i64 16)
%21 = inttoptr i64 %20 to i64*
store i64 %8, i64* %21, align 8
%22 = add i64 %8, 1
%23 = add i64 %20, 8
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = load i64, i64* %2, align 8
%26 = call i64 @FUNC(i64 %25, i64 %20, i64 4198842)
store i64 %26, i64* %2, align 8
store i64 %26, i64* %rax.1.reg2mem
br label LBL_17
LBL_5:
%27 = icmp eq i8 %17, 45
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_13, label LBL_6
LBL_6:
%29 = add i64 %14, 1
%30 = call i32* @__errno_location()
store i32 0, i32* %30, align 4
%31 = inttoptr i64 %29 to i8*
%32 = call i64 @strtoll(i8* %31, i8** nonnull %sv_1, i32 0)
%33 = call i32* @__errno_location()
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_16, label LBL_7
LBL_7:
%37 = load i8*, i8** %sv_1, align 8
%38 = ptrtoint i8* %37 to i64
%39 = icmp ult i64 %29, %38
%40 = icmp eq i1 %39, false
%41 = icmp sgt i64 %8, %32
%or.cond = or i1 %41, %40
br i1 %or.cond, label LBL_16, label LBL_8
LBL_8:
%42 = icmp slt i64 %8, 9223372036854710272
%43 = add i64 %8, 65535
%44 = icmp sgt i64 %32, %43
%or.cond3 = icmp eq i1 %42, %44
br i1 %or.cond3, label LBL_16, label LBL_9
LBL_9:
%45 = load i8, i8* %37, align 1
%46 = icmp eq i8 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_11, label LBL_10
LBL_10:
%48 = call i64 @FUNC(i64 16)
%49 = inttoptr i64 %48 to i64*
store i64 %8, i64* %49, align 8
%50 = add i64 %32, 1
%51 = add i64 %48, 8
%52 = inttoptr i64 %51 to i64*
store i64 %50, i64* %52, align 8
%53 = load i64, i64* %2, align 8
%54 = call i64 @FUNC(i64 %53, i64 %48, i64 4198842)
store i64 %54, i64* %2, align 8
store i64 %54, i64* %rax.1.reg2mem
br label LBL_17
LBL_11:
%55 = icmp eq i8 %45, 44
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_16, label LBL_12
LBL_12:
%57 = call i64 @FUNC(i64 16)
%58 = inttoptr i64 %57 to i64*
store i64 %8, i64* %58, align 8
%59 = add i64 %32, 1
%60 = add i64 %57, 8
%61 = inttoptr i64 %60 to i64*
store i64 %59, i64* %61, align 8
%62 = load i64, i64* %2, align 8
%63 = call i64 @FUNC(i64 %62, i64 %57, i64 4198842)
store i64 %63, i64* %storemerge.reg2mem
store i64 %38, i64* %sv_0.1.in.reg2mem
br label LBL_15
LBL_13:
%64 = icmp eq i8 %17, 44
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_16, label LBL_14
LBL_14:
%66 = call i64 @FUNC(i64 16)
%67 = inttoptr i64 %66 to i64*
store i64 %8, i64* %67, align 8
%68 = add i64 %8, 1
%69 = add i64 %66, 8
%70 = inttoptr i64 %69 to i64*
store i64 %68, i64* %70, align 8
%71 = load i64, i64* %2, align 8
%72 = call i64 @FUNC(i64 %71, i64 %66, i64 4198842)
store i64 %72, i64* %storemerge.reg2mem
store i64 %14, i64* %sv_0.1.in.reg2mem
br label LBL_15
LBL_15:
%sv_0.1.in.reload = load i64, i64* %sv_0.1.in.reg2mem
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_0.1 = add i64 %sv_0.1.in.reload, 1
store i64 %storemerge.reload, i64* %2, align 8
%73 = icmp eq i64 %sv_0.1, 0
%74 = icmp eq i1 %73, false
store i64 %sv_0.1, i64* %sv_0.0.reg2mem
store i64 %storemerge.reload, i64* %rax.1.reg2mem
br i1 %74, label LBL_1, label LBL_17
LBL_16:
%75 = load i64, i64* %2, align 8
%76 = call i64 @FUNC(i64 %75, i64 4198861, i64 0)
%77 = load i64, i64* %2, align 8
%78 = call i64 @FUNC(i64 %77)
store i64 0, i64* %2, align 8
store i64 %0, i64* %rax.1.reg2mem
br label LBL_17
LBL_17:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %32, { 3, 0, 1, 2 }
uselistorder i64 %8, { 7, 8, 6, 0, 4, 3, 5, 1, 2 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %2, { 7, 9, 8, 0, 6, 5, 4, 3, 2, 1, 10 }
uselistorder i8** %sv_1, { 1, 3, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 4, 1, 2, 3, 5 }
uselistorder i64 (i64, i64, i64)* @g_list_insert_sorted_merged, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i8**, i32)* @strtoll, { 1, 0 }
uselistorder i32 0, { 3, 0, 4, 5, 1, 6, 2 }
uselistorder i32* ()* @__errno_location, { 3, 0, 1, 2 }
uselistorder label LBL_17, { 4, 0, 2, 1, 3 }
uselistorder label LBL_16, { 1, 2, 0, 4, 3, 6, 5 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | ip6_dst_mtu_forward_10557 | ip6_dst_mtu_forward | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i32 %5, i32* %storemerge.in.reg2mem
br i1 %6, label LBL_2, label LBL_5
LBL_2:
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i64 %0)
%9 = icmp eq i64 %8, 0
store i32 1280, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = inttoptr i64 %8 to i32*
%11 = load i32, i32* %10, align 4
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%12 = call i64 @FUNC()
store i32 %sv_0.0.reload, i32* %storemerge.in.reg2mem
br label LBL_5
LBL_5:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | slab_node_4308 | slab_node | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32*, align 8
%2 = icmp ne i64* %arg1, null
%3 = urem i64 %1, 2
%4 = icmp eq i64 %3, 0
%or.cond = icmp eq i1 %2, %4
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
store i64 %5, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 4
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = icmp sgt i32 %9, 4
br i1 %11, label LBL_10, label LBL_4
LBL_4:
switch i32 %9, label LBL_10 [
i32 2, label LBL_5
i32 3, label LBL_6
]
LBL_5:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
store i64 %15, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%16 = call i64 @FUNC(i64 %6)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%17 = call i64 @FUNC(i64 0)
%18 = trunc i64 %17 to i32
%19 = call i64 @FUNC()
%20 = and i64 %19, 4294967295
%21 = call i64 @FUNC(i64 %20)
%22 = add i64 %6, 8
%23 = bitcast i32** %sv_0 to i64*
%24 = call i64 @FUNC(i64 %21, i32 %18, i64 %22, i64* nonnull %23)
%25 = load i32*, i32** %sv_0, align 8
%26 = icmp eq i32* %25, null
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = load i32, i32* %25, align 4
%28 = zext i32 %27 to i64
store i64 %28, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%29 = call i64 @FUNC()
store i64 %29, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%30 = call i64 @FUNC()
unreachable
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 2, 0, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2, 5 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 ()* @numa_node_id, { 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | sws_getColorspaceDetails_13961 | sws_getColorspaceDetails | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64* %arg7, i64* %arg8) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 36
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = load i32, i32* %2, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_2:
store i64 %10, i64* %arg2, align 8
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
store i64 %16, i64* %arg4, align 8
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = bitcast i64* %arg3 to i32*
store i32 %19, i32* %20, align 4
%21 = add i64 %0, 20
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = bitcast i64* %arg5 to i32*
store i32 %23, i32* %24, align 4
%25 = add i64 %0, 24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = bitcast i64* %arg6 to i32*
store i32 %27, i32* %28, align 4
%29 = add i64 %0, 28
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = bitcast i64* %arg7 to i32*
store i32 %31, i32* %32, align 4
%33 = add i64 %0, 32
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = bitcast i64* %arg8 to i32*
store i32 %35, i32* %36, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | arm_reset_cpu_1672 | arm_reset_cpu | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([14 x i8]* @gv_2 to i64), i64* %rcx.0.reg2mem
store i64 54, i64* %rdx.0.reg2mem
br label LBL_2
LBL_2:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%7 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %arg1)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_6
LBL_3:
%11 = call i64 @FUNC(i64 %8)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_5, i64 0, i64 0), i64 %arg1, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%17 = call i64 @FUNC(i64 %8, i64 4198931, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder [14 x i8]* @gv_2, { 1, 0 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 1, 2, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 0 |
BinRealVul | aio_dispatch_3352 | aio_dispatch | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.2.lcssa.reg2mem = alloca i8
%sv_0.1.reg2mem = alloca i8
%sv_0.0.reg2mem = alloca i8
%sv_0.25.reg2mem = alloca i8
%sv_1.06.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i8 0, i8* %sv_0.2.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_11
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = add i64 %2, 16
store i64 %2, i64* %sv_1.06.reg2mem
store i8 0, i8* %sv_0.25.reg2mem
br label LBL_2
LBL_2:
%sv_0.25.reload = load i8, i8* %sv_0.25.reg2mem
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%6 = load i32, i32* %4, align 4
%7 = add i32 %6, 1
store i32 %7, i32* %4, align 4
%8 = inttoptr i64 %sv_1.06.reload to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %sv_1.06.reload, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = and i32 %12, %9
store i32 0, i32* %8, align 4
%14 = add i64 %sv_1.06.reload, 32
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i8 %16, 1
%18 = and i32 %13, 13
%19 = icmp eq i32 %18, 0
%or.cond = or i1 %17, %19
store i8 %sv_0.25.reload, i8* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_3
LBL_3:
%20 = add i64 %sv_1.06.reload, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
store i8 %sv_0.25.reload, i8* %sv_0.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = add i64 %sv_1.06.reload, 24
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = icmp eq i64 %26, %5
%spec.select = select i1 %27, i8 %sv_0.25.reload, i8 1
store i8 %spec.select, i8* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
%28 = and i32 %13, 10
%29 = icmp eq i32 %28, 0
%or.cond3 = or i1 %29, %17
store i8 %sv_0.0.reload, i8* %sv_0.1.reg2mem
br i1 %or.cond3, label LBL_7, label LBL_6
LBL_6:
%30 = add i64 %sv_1.06.reload, 16
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp eq i64 %32, 0
%spec.select4 = select i1 %33, i8 %sv_0.0.reload, i8 1
store i8 %spec.select4, i8* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i8, i8* %sv_0.1.reg2mem
%34 = add i64 %sv_1.06.reload, 40
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = load i32, i32* %4, align 4
%38 = add i32 %37, -1
store i32 %38, i32* %4, align 4
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_8, label LBL_9
LBL_8:
%41 = icmp eq i64 %36, 0
%42 = icmp eq i1 %41, false
store i64 %36, i64* %sv_1.06.reg2mem
store i8 %sv_0.1.reload, i8* %sv_0.25.reg2mem
store i8 %sv_0.1.reload, i8* %sv_0.2.lcssa.reg2mem
br i1 %42, label LBL_2, label LBL_11
LBL_9:
%43 = load i8, i8* %15, align 1
%44 = icmp eq i8 %43, 0
br i1 %44, label LBL_8, label LBL_10
LBL_10:
%45 = call i64 @FUNC(i64 %sv_1.06.reload)
br label LBL_8
LBL_11:
%sv_0.2.lcssa.reload = load i8, i8* %sv_0.2.lcssa.reg2mem
%46 = zext i8 %sv_0.2.lcssa.reload to i64
ret i64 %46
uselistorder i8 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %sv_1.06.reload, { 0, 1, 2, 5, 4, 3, 7, 6 }
uselistorder i8 %sv_0.25.reload, { 2, 0, 1 }
uselistorder i32* %4, { 1, 0, 2, 3 }
uselistorder i64* %sv_1.06.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.25.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1, 3 }
uselistorder i8 0, { 2, 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | stbi__jpeg_decode_block_prog_dc_6942 | stbi__jpeg_decode_block_prog_dc | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%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(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
store i64 %5, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp sgt i32 %9, 15
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %6)
br label LBL_4
LBL_4:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_10, label LBL_5
LBL_5:
%17 = ptrtoint i64* %arg3 to i64
%18 = call i64* @memset(i64* %arg2, i32 0, i32 128)
%19 = call i64 @FUNC(i64 %6, i64 %17)
%20 = trunc i64 %19 to i32
%21 = icmp ult i32 %20, 16
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
store i64 %22, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%23 = icmp eq i32 %20, 0
store i32 0, i32* %storemerge2.reg2mem
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = and i64 %19, 4294967295
%25 = call i64 @FUNC(i64 %6, i64 %24)
%phitmp = trunc i64 %25 to i32
store i32 %phitmp, i32* %storemerge2.reg2mem
br label LBL_9
LBL_9:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%26 = sext i32 %arg4 to i64
%27 = mul i64 %26, 4
%28 = add i64 %6, 16
%29 = add i64 %28, %27
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i32 %31, %storemerge2.reload
store i32 %32, i32* %30, align 4
%33 = add i64 %6, 12
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = urem i32 %35, 32
%37 = shl i32 %32, %36
%38 = trunc i32 %37 to i16
%39 = bitcast i64* %arg2 to i16*
store i16 %38, i16* %39, align 2
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%40 = call i64 @FUNC(i64 %6)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %42, label LBL_12, label LBL_11
LBL_11:
%43 = trunc i64 %2 to i16
%44 = add i64 %6, 12
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = urem i32 %46, 32
%48 = shl i32 1, %47
%49 = trunc i32 %48 to i16
%50 = add i16 %49, %43
%51 = bitcast i64* %arg2 to i16*
store i16 %50, i16* %51, align 2
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %20, { 1, 0 }
uselistorder i64 %6, { 4, 6, 2, 0, 1, 3, 5, 7, 8 }
uselistorder i32* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i8*, i8*)* @stbi__err, { 1, 0 }
uselistorder label LBL_12, { 2, 1, 0, 3, 4 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | pipe_fcntl_12247 | pipe_fcntl | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 -9, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = call i64 @FUNC(i64 %1)
%5 = trunc i64 %arg2 to i32
store i64 -22, i64* %sv_0.0.reg2mem
switch i32 %5, label LBL_7 [
i32 1, label LBL_2
i32 2, label LBL_6
]
LBL_2:
%6 = call i64 @FUNC(i64 %arg3)
%7 = trunc i64 %6 to i32
%8 = icmp ult i32 %7, 4096
store i64 -22, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_7, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 1)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%14 = icmp ult i32 %13, %7
store i64 -1, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_7, label LBL_5
LBL_5:
%15 = udiv i32 %7, 4096
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %1, i64 %16)
store i64 %17, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%18 = inttoptr i64 %1 to i32*
%19 = load i32, i32* %18, align 4
%20 = mul i32 %19, 4096
%21 = zext i32 %20 to i64
store i64 %21, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%22 = call i64 @FUNC(i64 %1)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %7, { 1, 2, 0 }
uselistorder i64 %1, { 1, 3, 0, 2, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 2, 5, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 4096, { 0, 2, 1 }
uselistorder i64 -22, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 3, 4, 1, 2, 0 }
} | 1 |
BinRealVul | ff_mpeg4_encode_picture_header_2253 | ff_mpeg4_encode_picture_header | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
%.pre = ptrtoint i32* %arg1 to i64
%.pre7 = add i64 %.pre, 64
%.pre9 = inttoptr i64 %.pre7 to i64*
br i1 %6, label LBL_8, label LBL_1
LBL_1:
%7 = load i64, i64* %.pre9, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_2
LBL_2:
%13 = add i64 %.pre, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp sgt i32 %15, 1
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %.pre)
%.pr = load i32, i32* %14, align 4
%18 = icmp slt i32 %.pr, 2
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = trunc i64 %arg2 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %.pre, i64 0, i64 0)
br label LBL_6
LBL_6:
%23 = add i64 %.pre, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %.pre)
br label LBL_8
LBL_8:
%30 = bitcast i64* %rdi to i32*
%31 = add i64 %.pre, 12
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp ne i32 %33, 0
%35 = icmp ne i32 %4, 3
%not.or.cond = icmp eq i1 %35, %34
%storemerge4 = zext i1 %not.or.cond to i32
%36 = add i64 %.pre, 16
%37 = inttoptr i64 %36 to i32*
store i32 %storemerge4, i32* %37, align 4
%38 = add i64 %.pre, 72
%39 = call i64 @FUNC(i64 %38, i64 16, i64 0)
%40 = call i64 @FUNC(i64 %38, i64 16, i64 438)
%41 = load i32, i32* %30, align 8
%42 = add i32 %41, -1
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %38, i64 2, i64 %43)
%45 = load i64, i64* %.pre9, align 8
%46 = add i64 %45, 4
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i64 %.pre, 24
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %48 to i64
%53 = zext i32 %51 to i64
%54 = call i64 @FUNC(i64 %53, i64 %52)
%55 = load i64, i64* %.pre9, align 8
%56 = add i64 %55, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = load i32, i32* %50, align 4
%60 = zext i32 %58 to i64
%61 = zext i32 %59 to i64
%62 = call i64 @FUNC(i64 %61, i64 %60)
%63 = add i64 %.pre, 28
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = sext i32 %65 to i64
%67 = sub i64 %54, %66
%68 = icmp ult i64 %67, 3601
br i1 %68, label LBL_9, label LBL_10
LBL_9:
%69 = icmp eq i64 %67, 0
%70 = icmp eq i1 %69, false
store i64 %67, i64* %sv_0.06.reg2mem
br i1 %70, label LBL_11, label LBL_12
LBL_10:
%71 = load i64, i64* %.pre9, align 8
%72 = call i64 @FUNC(i64 %71, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %67, i64 %2, i64 %1)
store i64 4294967274, i64* %storemerge.reg2mem
br label LBL_19
LBL_11:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%73 = add i64 %sv_0.06.reload, -1
%74 = call i64 @FUNC(i64 %38, i64 1, i64 1)
%75 = icmp eq i64 %73, 0
%76 = icmp eq i1 %75, false
store i64 %73, i64* %sv_0.06.reg2mem
br i1 %76, label LBL_11, label LBL_12
LBL_12:
%77 = call i64 @FUNC(i64 %38, i64 1, i64 0)
%78 = call i64 @FUNC(i64 %38, i64 1, i64 1)
%79 = add i64 %.pre, 20
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = and i64 %62, 4294967295
%83 = zext i32 %81 to i64
%84 = call i64 @FUNC(i64 %38, i64 %83, i64 %82)
%85 = call i64 @FUNC(i64 %38, i64 1, i64 1)
%86 = call i64 @FUNC(i64 %38, i64 1, i64 1)
%87 = icmp eq i32 %41, 2
%88 = icmp eq i1 %87, false
br i1 %88, label LBL_14, label LBL_13
LBL_13:
%89 = add i64 %.pre, 32
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = zext i32 %91 to i64
%93 = call i64 @FUNC(i64 %38, i64 1, i64 %92)
br label LBL_14
LBL_14:
%94 = call i64 @FUNC(i64 %38, i64 3, i64 0)
%95 = add i64 %.pre, 52
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = icmp eq i32 %97, 0
%99 = icmp eq i1 %98, false
br i1 %99, label LBL_16, label LBL_15
LBL_15:
%100 = add i64 %.pre, 56
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = zext i32 %106 to i64
%108 = call i64 @FUNC(i64 %38, i64 1, i64 %107)
%109 = add i64 %.pre, 36
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = zext i32 %111 to i64
%113 = call i64 @FUNC(i64 %38, i64 1, i64 %112)
br label LBL_16
LBL_16:
%114 = add i64 %.pre, 40
%115 = inttoptr i64 %114 to i32*
%116 = load i32, i32* %115, align 4
%117 = zext i32 %116 to i64
%118 = call i64 @FUNC(i64 %38, i64 5, i64 %117)
%119 = icmp eq i32 %41, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %119, label LBL_19, label LBL_17
LBL_17:
%120 = add i64 %.pre, 44
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = zext i32 %122 to i64
%124 = call i64 @FUNC(i64 %38, i64 3, i64 %123)
%125 = icmp eq i32 %41, 3
%126 = icmp eq i1 %125, false
store i64 0, i64* %storemerge.reg2mem
br i1 %126, label LBL_19, label LBL_18
LBL_18:
%127 = add i64 %.pre, 48
%128 = inttoptr i64 %127 to i32*
%129 = load i32, i32* %128, align 4
%130 = zext i32 %129 to i64
%131 = call i64 @FUNC(i64 %38, i64 3, i64 %130)
store i64 0, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %67, { 2, 0, 1, 3 }
uselistorder i64 %38, { 4, 3, 5, 1, 2, 6, 0, 7, 8, 9, 10, 12, 11, 13, 14, 15 }
uselistorder i64 %.pre, { 3, 2, 4, 1, 6, 5, 0, 7, 8, 9, 10, 11, 12, 15, 16, 17, 14, 13, 18 }
uselistorder i64* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i64 1, { 0, 1, 2, 4, 3, 6, 5, 8, 7, 9, 11, 10 }
uselistorder i64 (i64, i64, i64)* @put_bits, { 15, 14, 13, 12, 11, 10, 8, 7, 6, 5, 4, 3, 9, 2, 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 2, { 2, 0, 3, 1 }
uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6, 7, 8 }
uselistorder label LBL_19, { 2, 1, 0, 3 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | vga_reset_14518 | vga_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 0, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 0, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i32*
store i32 0, i32* %8, align 4
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %0, 60
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memset(i64* %16, i32 0, i32 256)
%18 = add i64 %0, 316
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %0, 320
%21 = inttoptr i64 %20 to i64*
%22 = call i64* @memset(i64* %21, i32 0, i32 256)
%23 = add i64 %0, 576
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = add i64 %0, 580
%26 = inttoptr i64 %25 to i64*
%27 = call i64* @memset(i64* %26, i32 0, i32 256)
%28 = add i64 %0, 836
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = add i64 %0, 840
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
%32 = add i64 %0, 844
%33 = inttoptr i64 %32 to i64*
%34 = call i64* @memset(i64* %33, i32 0, i32 256)
%35 = add i64 %0, 1100
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %36, align 4
%37 = add i64 %0, 1104
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %0, 1108
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = add i64 %0, 1112
%42 = inttoptr i64 %41 to i32*
store i32 0, i32* %42, align 4
%43 = add i64 %0, 1116
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
%45 = add i64 %0, 1120
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
%47 = add i64 %0, 1124
%48 = inttoptr i64 %47 to i32*
store i32 0, i32* %48, align 4
%49 = add i64 %0, 1128
%50 = inttoptr i64 %49 to i32*
store i32 0, i32* %50, align 4
%51 = add i64 %0, 1132
%52 = inttoptr i64 %51 to i64*
%53 = call i64* @memset(i64* %52, i32 0, i32 256)
%54 = add i64 %0, 1388
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = add i64 %0, 1392
%57 = inttoptr i64 %56 to i64*
%58 = call i64* @memset(i64* %57, i32 0, i32 256)
%59 = add i64 %0, 1648
%60 = inttoptr i64 %59 to i64*
store i64 0, i64* %60, align 8
%61 = add i64 %0, 1656
%62 = inttoptr i64 %61 to i32*
store i32 0, i32* %62, align 4
%63 = add i64 %0, 1660
%64 = inttoptr i64 %63 to i64*
%65 = call i64* @memset(i64* %64, i32 0, i32 256)
%66 = inttoptr i64 %63 to i8*
store i8 0, i8* %66, align 1
%67 = add i64 %0, 1920
%68 = inttoptr i64 %67 to i64*
store i64 0, i64* %68, align 8
%69 = add i64 %0, 1928
%70 = inttoptr i64 %69 to i64*
store i64 0, i64* %70, align 8
%71 = add i64 %0, 1944
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = udiv i64 %73, 65536
%75 = add nsw i64 %74, -1
%76 = add i64 %0, 1936
%77 = inttoptr i64 %76 to i64*
store i64 %75, i64* %77, align 8
%78 = add i64 %0, 1952
%79 = inttoptr i64 %78 to i64*
%80 = call i64* @memset(i64* %79, i32 0, i32 2048)
%81 = add i64 %0, 4000
%82 = inttoptr i64 %81 to i32*
store i32 -1, i32* %82, align 4
%83 = add i64 %0, 4004
%84 = inttoptr i64 %83 to i32*
store i32 0, i32* %84, align 4
%85 = add i64 %0, 4008
%86 = inttoptr i64 %85 to i32*
store i32 0, i32* %86, align 4
%87 = add i64 %0, 4016
%88 = inttoptr i64 %87 to i64*
store i64 0, i64* %88, align 8
%89 = add i64 %0, 4024
%90 = inttoptr i64 %89 to i64*
store i64 0, i64* %90, align 8
%91 = add i64 %0, 4032
%92 = inttoptr i64 %91 to i64*
store i64 0, i64* %92, align 8
%93 = add i64 %0, 4040
%94 = inttoptr i64 %93 to i32*
store i32 0, i32* %94, align 4
%95 = add i64 %0, 4044
%96 = inttoptr i64 %95 to i32*
store i32 0, i32* %96, align 4
%97 = add i64 %0, 4048
%98 = inttoptr i64 %97 to i32*
store i32 0, i32* %98, align 4
%99 = add i64 %0, 4052
%100 = inttoptr i64 %99 to i32*
store i32 0, i32* %100, align 4
%101 = add i64 %0, 4056
%102 = inttoptr i64 %101 to i32*
store i32 0, i32* %102, align 4
%103 = add i64 %0, 4060
%104 = inttoptr i64 %103 to i32*
store i32 0, i32* %104, align 4
%105 = add i64 %0, 4064
%106 = inttoptr i64 %105 to i32*
store i32 0, i32* %106, align 4
%107 = add i64 %0, 4068
%108 = inttoptr i64 %107 to i32*
store i32 0, i32* %108, align 4
%109 = add i64 %0, 4072
%110 = inttoptr i64 %109 to i32*
store i32 0, i32* %110, align 4
%111 = add i64 %0, 4076
%112 = inttoptr i64 %111 to i32*
store i32 0, i32* %112, align 4
%113 = add i64 %0, 4080
%114 = inttoptr i64 %113 to i64*
%115 = call i64* @memset(i64* %114, i32 0, i32 256)
%116 = add i64 %0, 4336
%117 = inttoptr i64 %116 to i64*
%118 = call i64* @memset(i64* %117, i32 0, i32 256)
%119 = add i64 %0, 4592
%120 = inttoptr i64 %119 to i64*
%121 = call i64* @memset(i64* %120, i32 0, i32 256)
%122 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%123 = zext i32 %122 to i64
%cond = icmp eq i32 %122, 1
store i64 %123, i64* %rax.0.reg2mem
br i1 %cond, label LBL_1, label LBL_2
LBL_1:
%124 = add i64 %0, 4848
%125 = inttoptr i64 %124 to i64*
%126 = call i64* @memset(i64* %125, i32 0, i32 4)
%127 = ptrtoint i64* %126 to i64
store i64 %127, 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* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i32 0, { 0, 1, 2, 3, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 4, 5, 24, 6, 25, 7, 26, 27, 28, 29, 30, 31, 32, 33, 8, 34, 35, 9, 36, 10, 37, 11, 38, 39 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qdev_init_chardev_5136 | qdev_init_chardev | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* @gv_0, align 4
store i32 ptrtoint (i64* @gv_1 to i32), i32* @gv_0, align 4
%1 = sext i32 %0 to i64
%2 = mul i64 %1, 8
%3 = add i64 %2, ptrtoint (i64* @gv_2 to i64)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
ret i64 %5
uselistorder i32* @gv_0, { 1, 0 }
} | 0 |
BinRealVul | expat_start_cb_9155 | expat_start_cb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
store i64 %1, i64* %sv_1, align 8
%2 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i32 %3, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = load i64, i64* %sv_1, align 8
%7 = call i64 @FUNC(i64 %6, i64 %arg2, i64* nonnull %sv_1)
%8 = trunc i64 %7 to i32
store i32 %8, 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* nonnull %sv_1)
%10 = add i64 %1, 8
%11 = inttoptr i64 %10 to i32*
store i32 %sv_0.0.reload, i32* %11, align 4
ret i64 %1
uselistorder i64* %sv_1, { 0, 1, 3, 2, 4 }
} | 0 |
BinRealVul | object_common1_19237 | object_common1 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 2
%3 = call i64 @FUNC(i64 %2, i64 %1)
%4 = add i64 %1, 4
store i64 %4, i64* %arg1, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = add i64 %0, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 4198834
br i1 %12, label LBL_4, label LBL_2
LBL_2:
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = add i64 %0, 32
%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_5, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%23 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %4)
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, { 3, 2, 1, 0, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | cms_copy_content_12336 | cms_copy_content | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i1
%sv_1.0.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %3)
store i64 %4, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_2:
%5 = urem i32 %arg3, 2
%6 = icmp eq i32 %5, 0
store i64 %arg1, i64* %sv_1.0.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC()
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %9, i64 0)
store i64 %9, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%11 = icmp eq i64 %sv_1.0.reload, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_6
LBL_5:
%13 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_2, i64 4096)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp slt i32 %14, 0
%17 = icmp eq i1 %16, false
%18 = icmp eq i1 %15, false
%19 = icmp eq i1 %17, %18
store i1 %17, i1* %.lcssa.reg2mem
store i32 %14, i32* %.reg2mem
br i1 %19, label LBL_11, label LBL_7
LBL_6:
%20 = call i64 @FUNC(i64 3, i64 4)
store i64 0, i64* %sv_0.02.reg2mem
br label LBL_17
LBL_7:
%.lcssa.reload = load i1, i1* %.lcssa.reg2mem
%21 = call i64 @FUNC(i64 %arg2)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 2
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_9, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %arg2)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
%.not = icmp ne i1 %.lcssa.reload, true
%brmerge = or i1 %27, %.not
store i64 0, i64* %sv_0.0.reg2mem
br i1 %brmerge, label LBL_15, label LBL_12
LBL_9:
store i64 0, i64* %sv_0.0.reg2mem
br i1 %.lcssa.reload, label LBL_12, label LBL_15
LBL_10:
%28 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_2, i64 4096)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
store i1 %32, i1* %.lcssa.reg2mem
store i32 %29, i32* %.reg2mem
br i1 %34, label LBL_11, label LBL_7
LBL_11:
%.reload = load i32, i32* %.reg2mem
%35 = call i64 @FUNC(i64 %sv_1.0.reload, i64* nonnull %sv_2, i32 %.reload)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %.reload, %36
%38 = icmp eq i1 %37, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_15, label LBL_10
LBL_12:
%39 = urem i32 %arg3, 2
%40 = icmp eq i32 %39, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %40, label LBL_15, label LBL_13
LBL_13:
%41 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %arg1)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_15, label LBL_14
LBL_14:
%45 = call i64 @FUNC(i64 3, i64 5)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_15
LBL_15:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%46 = icmp eq i64 %sv_1.0.reload, %arg1
store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem
br i1 %46, label LBL_17, label LBL_16
LBL_16:
%47 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem
br label LBL_17
LBL_17:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
ret i64 %sv_0.02.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %29, { 0, 2, 1 }
uselistorder i64 %sv_1.0.reload, { 2, 4, 3, 1, 0 }
uselistorder i64* %sv_2, { 1, 2, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1* %.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 3, 2, 1, 5, 4 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64, i64)* @CMSerr, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @BIO_read, { 1, 0 }
uselistorder i64 4096, { 1, 0 }
uselistorder i32 0, { 2, 3, 5, 6, 4, 0, 1, 7 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i1 false, { 3, 4, 6, 2, 5, 0, 1, 7, 8 }
uselistorder i64 0, { 4, 1, 3, 2, 0, 10, 8, 11, 5, 6, 7, 9 }
uselistorder i64 %arg2, { 3, 1, 2, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_17, { 1, 2, 0 }
uselistorder label LBL_15, { 5, 3, 2, 0, 4, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | vring_avail_idx_2717 | vring_avail_idx | 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 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6, i64 %3, i64 0)
%8 = trunc i64 %7 to i16
%9 = bitcast i64* %arg1 to i16*
store i16 %8, i16* %9, align 2
%10 = urem i64 %1, 65536
ret i64 %10
} | 0 |
BinRealVul | ast_read_packet_1378 | ast_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = 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_7
LBL_1:
%7 = call i64 @FUNC(i64 %3)
%8 = call i64 @FUNC(i64 %3)
%9 = call i64 @FUNC(i64 %3)
%10 = add i64 %3, 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 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br i1 %19, label LBL_7, label LBL_2
LBL_2:
%20 = trunc i64 %9 to i32
%21 = udiv i32 2147483647, %18
%22 = icmp ult i32 %21, %20
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br i1 %22, label LBL_7, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %3, i64 24)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %23, i64* %rax.0.shrunk.reg2mem
br i1 %26, label LBL_4, label LBL_7
LBL_4:
%27 = trunc i64 %8 to i32
%28 = mul i32 %18, %20
%29 = icmp eq i32 %27, 1112294219
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = ptrtoint i64* %arg2 to i64
%32 = call i64 @FUNC(i64 %3, i64 %31, i32 %28)
%33 = bitcast i64* %arg2 to i32*
store i32 0, i32* %33, align 4
%34 = add i64 %31, 8
%35 = inttoptr i64 %34 to i64*
store i64 %7, i64* %35, align 8
store i64 %32, i64* %rax.0.shrunk.reg2mem
br label LBL_7
LBL_6:
%36 = and i64 %8, 4294967295
%37 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %36, i64 %2, i64 %1)
%38 = zext i32 %28 to i64
%39 = call i64 @FUNC(i64 %3, i64 %38)
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br label LBL_7
LBL_7:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %28, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0, 3, 4, 7, 6, 5, 8 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 5, 4, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 0, { 8, 6, 7, 0, 1, 2, 3, 4, 5, 9 }
uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 }
uselistorder i64 4294967294, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0, 2, 4, 3, 5 }
} | 0 |
BinRealVul | rocker_test_dma_ctrl_14236 | rocker_test_dma_ctrl | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%storemerge34.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i32* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = and i64 %3, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_12
LBL_2:
%sext = mul i64 %arg2, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = trunc i64 %3 to i32
%15 = trunc i64 %13 to i32
%16 = icmp eq i32 %15, 2
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = icmp ult i32 %15, 3
br i1 %17, label LBL_4, label LBL_9
LBL_4:
switch i32 %15, label LBL_9 [
i32 0, label LBL_5
i32 1, label LBL_6
]
LBL_5:
%18 = inttoptr i64 %9 to i64*
%19 = call i64* @memset(i64* %18, i32 0, i32 %14)
store i32 %14, i32* %.reg2mem
br label LBL_10
LBL_6:
%20 = inttoptr i64 %9 to i64*
%21 = call i64* @memset(i64* %20, i32 150, i32 %14)
store i32 %14, i32* %.reg2mem
br label LBL_10
LBL_7:
%22 = bitcast i64* %rdi to i32*
%23 = add i64 %6, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = call i64 @FUNC(i64 %7, i32 %25, i64 %9, i32 %14)
%27 = icmp eq i32 %14, 0
store i32 0, i32* %storemerge34.reg2mem
store i32 0, i32* %.reg2mem
br i1 %27, label LBL_10, label LBL_8
LBL_8:
%storemerge34.reload = load i32, i32* %storemerge34.reg2mem
%28 = sext i32 %storemerge34.reload to i64
%29 = add i64 %9, %28
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = sub i8 0, %31
%33 = sub i8 %32, 1
store i8 %33, i8* %30, align 1
%34 = add i32 %storemerge34.reload, 1
%35 = load i32, i32* %22, align 8
%36 = icmp ugt i32 %35, %34
store i32 %34, i32* %storemerge34.reg2mem
store i32 %35, i32* %.reg2mem
br i1 %36, label LBL_8, label LBL_10
LBL_9:
%37 = and i64 %13, 4294967295
%38 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %37, i64 %4, i64 %5, i64 %2, i64 %1)
br label LBL_11
LBL_10:
%.reload = load i32, i32* %.reg2mem
%39 = add i64 %6, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = call i64 @FUNC(i64 %7, i32 %41, i64 %9, i32 %.reload)
%43 = call i64 @FUNC(i64 %6, i64 0)
br label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %9)
store i64 %44, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %14, { 2, 3, 1, 5, 0, 4 }
uselistorder i64 %9, { 1, 2, 0, 5, 3, 4, 6 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge34.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i32 0, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | SFS_ArrayDeref_12025 | SFS_ArrayDeref | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %6, i64 4202515)
%9 = call i64 @FUNC(i64 %6)
%10 = call i64 @FUNC(i64 %6, i64 4202517)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 3, 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64)* @SFS_AddString, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | idr_remove_all_5655 | idr_remove_all | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.218.reg2mem = alloca i64
%sv_1.219.reg2mem = alloca i32
%sv_2.220.reg2mem = alloca i64
%sv_3.021.reg2mem = alloca i32
%sv_2.1.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.112.reg2mem = alloca i64
%sv_1.113.reg2mem = alloca i32
%sv_2.114.reg2mem = alloca i64
%sv_2.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%sv_0.07.reg2mem = alloca i64
%sv_1.08.reg2mem = alloca i32
%sv_2.09.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%3 = ptrtoint i64* %sv_4 to i64
%4 = trunc i64 %1 to i32
%5 = mul i32 %4, 8
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8, i64 0)
%10 = and i32 %5, 24
%11 = shl i32 1, %10
store i32 0, i32* %sv_3.021.reg2mem
store i64 %8, i64* %sv_2.220.reg2mem
store i32 %5, i32* %sv_1.219.reg2mem
store i64 %3, i64* %sv_0.218.reg2mem
br label LBL_7
LBL_1:
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%sv_1.08.reload = load i32, i32* %sv_1.08.reg2mem
%sv_2.09.reload = load i64, i64* %sv_2.09.reg2mem
%12 = add i32 %sv_1.08.reload, -8
%13 = add i64 %sv_0.07.reload, 8
%14 = inttoptr i64 %sv_0.07.reload to i64*
store i64 %sv_2.09.reload, i64* %14, align 8
%15 = urem i32 %12, 32
%16 = ashr i32 %sv_3.021.reload, %15
%17 = mul i32 %16, 8
%18 = and i32 %17, 2040
%19 = zext i32 %18 to i64
%20 = add i64 %sv_2.09.reload, %19
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp sgt i32 %12, 8
%24 = icmp eq i64 %22, 0
%25 = icmp eq i1 %24, false
%or.cond = icmp eq i1 %23, %25
store i64 %22, i64* %sv_2.09.reg2mem
store i32 %12, i32* %sv_1.08.reg2mem
store i64 %13, i64* %sv_0.07.reg2mem
store i32 %15, i32* %.pre-phi.reg2mem
store i64 %13, i64* %sv_0.0.lcssa.reg2mem
store i32 %12, i32* %sv_1.0.lcssa.reg2mem
store i64 %22, i64* %sv_2.0.lcssa.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_2:
%sv_2.0.lcssa.reload = load i64, i64* %sv_2.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%26 = shl i32 1, %.pre-phi.reload
%27 = add i32 %26, %sv_3.021.reload
%28 = xor i32 %27, %sv_3.021.reload
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = sext i32 %sv_1.0.lcssa.reload to i64
%32 = icmp sgt i64 %30, %31
store i64 %sv_2.0.lcssa.reload, i64* %sv_2.114.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.113.reg2mem
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.112.reg2mem
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.1.lcssa.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.lcssa.reg2mem
store i64 %sv_2.0.lcssa.reload, i64* %sv_2.1.lcssa.reg2mem
br i1 %32, label LBL_3, label LBL_6
LBL_3:
%sv_0.112.reload = load i64, i64* %sv_0.112.reg2mem
%sv_1.113.reload = load i32, i32* %sv_1.113.reg2mem
%sv_2.114.reload = load i64, i64* %sv_2.114.reg2mem
%33 = icmp eq i64 %sv_2.114.reload, 0
br i1 %33, label LBL_5, label LBL_4
LBL_4:
%34 = call i64 @FUNC(i64 %sv_2.114.reload)
br label LBL_5
LBL_5:
%35 = add i32 %sv_1.113.reload, 8
%36 = add i64 %sv_0.112.reload, -8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %29)
%40 = sext i32 %35 to i64
%41 = icmp sgt i64 %39, %40
store i64 %38, i64* %sv_2.114.reg2mem
store i32 %35, i32* %sv_1.113.reg2mem
store i64 %36, i64* %sv_0.112.reg2mem
store i64 %36, i64* %sv_0.1.lcssa.reg2mem
store i32 %35, i32* %sv_1.1.lcssa.reg2mem
store i64 %38, i64* %sv_2.1.lcssa.reg2mem
br i1 %41, label LBL_3, label LBL_6
LBL_6:
%sv_2.1.lcssa.reload = load i64, i64* %sv_2.1.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%42 = icmp slt i32 %27, %11
store i32 %27, i32* %sv_3.021.reg2mem
store i64 %sv_2.1.lcssa.reload, i64* %sv_2.220.reg2mem
store i32 %sv_1.1.lcssa.reload, i32* %sv_1.219.reg2mem
store i64 %sv_0.1.lcssa.reload, i64* %sv_0.218.reg2mem
br i1 %42, label LBL_7, label LBL_9
LBL_7:
%sv_0.218.reload = load i64, i64* %sv_0.218.reg2mem
%sv_1.219.reload = load i32, i32* %sv_1.219.reg2mem
%sv_2.220.reload = load i64, i64* %sv_2.220.reg2mem
%sv_3.021.reload = load i32, i32* %sv_3.021.reg2mem
%43 = icmp sgt i32 %sv_1.219.reload, 8
%44 = icmp eq i64 %sv_2.220.reload, 0
%45 = icmp eq i1 %44, false
%or.cond6 = icmp eq i1 %43, %45
store i64 %sv_2.220.reload, i64* %sv_2.09.reg2mem
store i32 %sv_1.219.reload, i32* %sv_1.08.reg2mem
store i64 %sv_0.218.reload, i64* %sv_0.07.reg2mem
br i1 %or.cond6, label LBL_1, label LBL_7.LBL_2_crit_edge
LBL_8:
%.pre = urem i32 %sv_1.219.reload, 32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i64 %sv_0.218.reload, i64* %sv_0.0.lcssa.reg2mem
store i32 %sv_1.219.reload, i32* %sv_1.0.lcssa.reg2mem
store i64 %sv_2.220.reload, i64* %sv_2.0.lcssa.reg2mem
br label LBL_2
LBL_9:
%46 = bitcast i64* %arg1 to i32*
store i32 0, i32* %46, align 4
ret i64 %2
uselistorder i64 %sv_2.220.reload, { 2, 1, 0 }
uselistorder i32 %sv_1.219.reload, { 3, 1, 2, 0 }
uselistorder i64 %sv_0.218.reload, { 1, 0 }
uselistorder i64 %sv_2.114.reload, { 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i32 %27, { 0, 2, 1 }
uselistorder i32 %12, { 0, 1, 3, 2 }
uselistorder i64 %sv_2.09.reload, { 1, 0 }
uselistorder i64* %sv_2.09.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.08.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_0.07.reg2mem, { 1, 2, 0 }
uselistorder i32* %.pre-phi.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.114.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.113.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.112.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @fls, { 1, 0 }
uselistorder i1 false, { 0, 2, 3, 1 }
uselistorder i32 0, { 3, 0, 4, 1, 2 }
uselistorder i32 8, { 2, 4, 3, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | __nlmsg_put_11550 | __nlmsg_put | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i32 %arg8) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = trunc i64 %arg3 to i32
%3 = trunc i64 %arg5 to i32
%4 = add i32 %3, 16
%5 = add i64 %arg5, 19
%6 = and i64 %5, 4294967292
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = trunc i64 %arg4 to i16
%9 = add i64 %7, 4
%10 = inttoptr i64 %9 to i16*
store i16 %8, i16* %10, align 2
%11 = inttoptr i64 %7 to i32*
store i32 %4, i32* %11, align 4
%12 = trunc i64 %arg6 to i16
%13 = add i64 %7, 6
%14 = inttoptr i64 %13 to i16*
store i16 %12, i16* %14, align 2
%15 = add i64 %7, 12
%16 = inttoptr i64 %15 to i32*
store i32 %1, i32* %16, align 4
%17 = add i64 %7, 8
%18 = inttoptr i64 %17 to i32*
store i32 %2, i32* %18, align 4
ret i64 %7
} | 1 |
BinRealVul | php_auto_globals_create_cookie_10623 | php_auto_globals_create_cookie | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = load i8*, i8** @gv_0, align 8
%1 = icmp eq i8* %0, null
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = call i8* @strchr(i8* nonnull %0, i32 67)
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = load i8*, i8** @gv_0, align 8
%6 = call i8* @strchr(i8* %5, i32 99)
ret i64 0
LBL_3:
ret i64 0
} | 0 |
BinRealVul | test_get_word_8237 | test_get_word | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
store i32 0, i32* %sv_0.2.reg2mem
br i1 %0, label LBL_8, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp ult i64 %2, %5
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %6, label LBL_2, label LBL_9
LBL_2:
%7 = add i64 %2, %1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i32
%11 = mul i32 %10, 16777216
%sext5 = add i64 %sext, 4294967296
%12 = ashr exact i64 %sext5, 32
%13 = icmp ult i64 %12, %5
%14 = icmp eq i1 %13, false
store i32 %11, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = add i64 %7, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i32
%19 = mul i32 %18, 65536
%20 = or i32 %19, %11
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sext7 = add i64 %sext, 8589934592
%21 = ashr exact i64 %sext7, 32
%22 = icmp ult i64 %21, %5
%23 = icmp eq i1 %22, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = add i64 %7, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i32
%28 = mul i32 %27, 256
%29 = or i32 %28, %sv_0.0.reload
store i32 %29, i32* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sext9 = add i64 %sext, 12884901888
%30 = ashr exact i64 %sext9, 32
%31 = icmp ult i64 %30, %5
%32 = icmp eq i1 %31, false
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = add i64 %7, 3
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = zext i8 %35 to i32
%37 = or i32 %sv_0.1.reload, %36
store i32 %37, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_8:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%38 = bitcast i64* %arg3 to i32*
store i32 %sv_0.2.reload, i32* %38, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i64 %sext, { 3, 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | pdf_new_11930 | pdf_new | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64* @calloc(i32 1, i32 8)
%1 = icmp eq i8* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i8* @strrchr(i8* nonnull %arg1, i32 47)
%3 = icmp eq i8* %2, null
%4 = ptrtoint i8* %2 to i64
%5 = add i64 %4, 1
%6 = inttoptr i64 %5 to i8*
%7 = select i1 %3, i8* %arg1, i8* %6
%8 = call i32 @strlen(i8* %7)
%9 = add i32 %8, 1
%10 = call i64* @malloc(i32 %9)
%11 = ptrtoint i64* %10 to i64
store i64 %11, i64* %0, align 8
%12 = bitcast i64* %10 to i8*
%13 = call i8* @strcpy(i8* %12, i8* %7)
br label LBL_3
LBL_2:
%14 = call i64* @malloc(i32 8)
%15 = ptrtoint i64* %14 to i64
store i64 %15, i64* %0, align 8
store i64 31093567915781717, i64* %14, align 8
br label LBL_3
LBL_3:
%16 = ptrtoint i64* %0 to i64
ret i64 %16
uselistorder i64* %0, { 2, 0, 1 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
} | 1 |
BinRealVul | virtio_scsi_init_16611 | virtio_scsi_init | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%sext = mul i64 %1, 4294967296
%4 = ashr exact i64 %sext, 29
%5 = add nsw i64 %4, 80
%6 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 2, i64 4, i64 %5)
%7 = add i64 %6, 32
%8 = inttoptr i64 %7 to i64*
store i64 %3, i64* %8, align 8
%9 = add i64 %6, 40
%10 = inttoptr i64 %9 to i64*
store i64 %2, i64* %10, align 8
%11 = inttoptr i64 %6 to i64*
store i64 4198747, i64* %11, align 8
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
store i64 4198754, i64* %13, align 8
%14 = add i64 %6, 16
%15 = inttoptr i64 %14 to i64*
store i64 4198761, i64* %15, align 8
%16 = add i64 %6, 24
%17 = inttoptr i64 %16 to i64*
store i64 4198768, i64* %17, align 8
%18 = call i64 @FUNC(i64 %6, i64 128, i64 4198868)
%19 = add i64 %6, 64
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = call i64 @FUNC(i64 %6, i64 128, i64 0)
%22 = add i64 %6, 72
%23 = inttoptr i64 %22 to i64*
store i64 %21, i64* %23, align 8
%24 = load i64, i64* %10, align 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_3, label LBL_1
LBL_1:
%28 = add i64 %6, 48
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%29 = call i64 @FUNC(i64 %6, i64 128, i64 4198875)
%30 = mul i64 %.reload, 8
%31 = add i64 %28, %30
%32 = inttoptr i64 %31 to i64*
store i64 %29, i64* %32, align 8
%33 = add i32 %storemerge2.reload, 1
%34 = load i64, i64* %10, align 8
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = sext i32 %33 to i64
%39 = icmp slt i64 %38, %37
store i64 %38, i64* %.reg2mem
store i32 %33, i32* %storemerge2.reg2mem
br i1 %39, label LBL_2, label LBL_3
LBL_3:
%40 = add i64 %6, 56
%41 = call i64 @FUNC(i64 %40, i64 %3, i64* nonnull @gv_1)
%42 = bitcast i64* %rdi to i32*
%43 = load i32, i32* %42, align 8
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_5, label LBL_4
LBL_4:
%46 = call i64 @FUNC(i64 %40)
br label LBL_5
LBL_5:
%47 = load i32, i32* @gv_2, align 4
store i32 ptrtoint (i64* @gv_3 to i32), i32* @gv_2, align 4
%48 = zext i32 %47 to i64
%49 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %48, i64 1, i64 4198882, i64 4198889)
ret i64 %6
uselistorder i64* %10, { 1, 0, 2 }
uselistorder i64 %6, { 1, 2, 3, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | av_mallocz_static_1676 | av_mallocz_static | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0)
ret i64 %1
} | 0 |
BinRealVul | cris_cpu_class_init_16128 | cris_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = add i64 %0, 88
%18 = inttoptr i64 %17 to i64*
store i64 4198746, i64* %18, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%19 = add i64 %0, 72
%20 = inttoptr i64 %19 to i32*
store i32 49, i32* %20, align 4
%21 = add i64 %0, 76
%22 = inttoptr i64 %21 to i8*
store i8 1, i8* %22, align 1
%23 = add i64 %0, 80
%24 = inttoptr i64 %23 to i64*
store i64 4198732, i64* %24, align 8
%25 = inttoptr i64 %3 to i8*
store i8 1, i8* %25, align 1
ret i64 %0
} | 1 |
BinRealVul | jas_iccputsint_11215 | jas_iccputsint | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = icmp slt i64 %arg3, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @abort()
unreachable
LBL_2:
%2 = and i64 %arg2, 4294967295
%3 = ptrtoint i32* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 %arg3)
ret i64 %4
} | 1 |
BinRealVul | scm_send_17360 | scm_send | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg3 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_1:
%11 = ptrtoint i32* %arg2 to i64
%12 = call i64 @FUNC(i64 %3, i64 %11, i64 %2)
store i64 %12, 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 i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_spice_destroy_host_primary_1587 | qemu_spice_destroy_host_primary | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
ret i64 1
uselistorder i64* %0, { 2, 1, 0 }
} | 0 |
BinRealVul | thread_pool_co_cb_579 | thread_pool_co_cb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = bitcast i64* %arg1 to i32*
store i32 %1, i32* %2, align 4
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
ret i64 %6
} | 0 |
reposvul_c_test | gf_hevc_get_profile_name_5 | gf_hevc_get_profile_name | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = urem i64 %arg1, 256
%1 = icmp eq i64 %0, 3
store i64 ptrtoint ([19 x i8]* @gv_0 to i64), i64* %rax.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = trunc i64 %0 to i32
%3 = icmp ugt i32 %2, 3
br i1 %3, label LBL_4, label LBL_2
LBL_2:
%trunc = trunc i64 %arg1 to i8
store i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64* %rax.0.reg2mem
switch i8 %trunc, label LBL_4 [
i8 1, label LBL_5
i8 2, label LBL_3
]
LBL_3:
store i64 ptrtoint ([8 x i8]* @gv_2 to i64), i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
store i64 ptrtoint ([8 x i8]* @gv_3 to i64), i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_5, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | qemu_peek_byte_17185 | qemu_peek_byte | 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 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = trunc i64 %arg2 to i32
%7 = icmp slt i32 %6, 1024
br i1 %7, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 27, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%8 = add i64 %1, %arg2
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%sext = mul i64 %8, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = icmp slt i64 %13, %12
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %2)
%16 = load i32, i32* %10, align 4
%17 = zext i32 %16 to i64
%18 = icmp slt i64 %13, %17
store i64 0, i64* %storemerge.reg2mem
br i1 %18, label LBL_6, label LBL_7
LBL_6:
%19 = add i64 %2, 8
%20 = add i64 %19, %13
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i64
store i64 %23, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %13, { 2, 1, 0 }
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | __release_sock_6620 | __release_sock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = icmp eq i64* %arg1, null
%4 = icmp eq i1 %3, false
br label LBL_1
LBL_1:
store i64 0, i64* %2, align 8
store i64 0, i64* %arg1, align 8
%5 = call i64 @FUNC(i64 %0)
store i64 %0, i64* %sv_0.1.reg2mem
br label LBL_2
LBL_2:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%6 = inttoptr i64 %sv_0.1.reload to i64*
%7 = load i64, i64* %6, align 8
store i64 0, i64* %6, align 8
%8 = call i64 @FUNC(i64 %0, i64 %sv_0.1.reload)
%9 = call i64 @FUNC()
%10 = icmp eq i64 %7, 0
%11 = icmp eq i1 %10, false
store i64 %7, i64* %sv_0.1.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
br i1 %4, label LBL_1, label LBL_4
LBL_4:
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
ret i64 %0
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %0, { 1, 2, 3, 4, 0, 5, 6 }
uselistorder i64* %sv_0.1.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2 }
} | 0 |
BinRealVul | __dev_close_many_9297 | __dev_close_many | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
ret i64 %0
} | 0 |
BinRealVul | nfs4_open_recoverdata_alloc_11225 | nfs4_open_recoverdata_alloc | define i64 @FUNC(i64* %arg1, i32* %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 %1 to i32
%4 = call i64 @FUNC(i64 %2, i32 %3, i64 0, i64 0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 4294967284)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%8 = ptrtoint i32* %arg2 to i64
%9 = inttoptr i64 %4 to i64*
store i64 %8, i64* %9, align 8
%10 = add i64 %8, 4
%11 = call i64 @FUNC(i64 %10)
store i64 %4, 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 | nfs_permission_18057 | nfs_permission | define i64 @FUNC(i32* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.in.reg2mem
br i1 %4, label LBL_17, label LBL_1
LBL_1:
%5 = trunc i64 %2 to i32
%6 = icmp eq i32* %arg3, null
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = urem i32 %5, 2
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_9, label LBL_3
LBL_3:
%10 = trunc i64 %1 to i32
%11 = and i32 %10, 61440
%12 = icmp eq i32 %11, 40960
store i64 0, i64* %storemerge.in.reg2mem
br i1 %12, label LBL_17, label LBL_4
LBL_4:
%13 = icmp ugt i32 %11, 40960
br i1 %13, label LBL_9, label LBL_5
LBL_5:
%14 = icmp eq i32 %11, 16384
br i1 %14, label LBL_8, label LBL_6
LBL_6:
%15 = icmp eq i32 %11, 32768
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_9, label LBL_7
LBL_7:
%17 = ptrtoint i32* %arg1 to i64
%18 = call i64 @FUNC(i64 %17, i64 1)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%or.cond = or i1 %6, %20
%21 = and i32 %5, 2
%22 = icmp eq i32 %21, 0
%or.cond8 = or i1 %22, %or.cond
store i64 0, i64* %storemerge.in.reg2mem
br i1 %or.cond8, label LBL_9, label LBL_17
LBL_8:
%23 = and i64 %arg2, 6
%24 = icmp eq i64 %23, 2
store i64 0, i64* %storemerge.in.reg2mem
br i1 %24, label LBL_17, label LBL_9
LBL_9:
%sext = mul i64 %arg2, 4294967296
%25 = ashr exact i64 %sext, 32
%26 = call i64 @FUNC()
%27 = ptrtoint i32* %arg1 to i64
%28 = call i64 @FUNC(i64 %27)
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_14, label LBL_10
LBL_10:
%32 = call i64 @FUNC(i64 %27)
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = zext i32 %34 to i64
%36 = call i64 @FUNC(i64 %35, i64 0)
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_12, label LBL_11
LBL_11:
%41 = trunc i64 %25 to i32
%42 = call i64 @FUNC(i64 %27, i64 %36, i32 %41)
%43 = call i64 @FUNC(i64 %36)
store i64 %42, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
%44 = call i64 @FUNC(i64 %36)
store i64 %44, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%45 = call i64 @FUNC()
store i64 %sv_0.0.reload, i64* %storemerge.in.reg2mem
br label LBL_17
LBL_14:
%46 = call i64 @FUNC(i64 %27)
%47 = call i64 @FUNC(i64 %46, i64 %27)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 %47, i64* %sv_0.2.reg2mem
br i1 %50, label LBL_16, label LBL_15
LBL_15:
%51 = and i64 %25, 4294967295
%52 = call i64 @FUNC(i64 %27, i64 %51, i64 0)
store i64 %52, i64* %sv_0.2.reg2mem
br label LBL_16
LBL_16:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%53 = call i64 @FUNC()
store i64 %sv_0.2.reload, i64* %storemerge.in.reg2mem
br label LBL_17
LBL_17:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %36, { 2, 1, 0, 3 }
uselistorder i64 %27, { 1, 4, 2, 0, 3, 5 }
uselistorder i64 %25, { 1, 0 }
uselistorder i32 %11, { 1, 2, 0, 3 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 6, 3, 2, 1, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 ()* @unlock_kernel, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 4, 5, 6, 1 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_17, { 5, 1, 4, 0, 3, 2 }
uselistorder label LBL_9, { 0, 1, 3, 4, 2 }
} | 1 |
BinRealVul | do_move_file_8955 | do_move_file | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0, align 8
%1 = bitcast i8** %sv_0 to i64*
%2 = call i64 @FUNC(i64 %0, i64 %0, i64* nonnull %1, i64 2, i64 32)
%3 = load i32, i32* @gv_1, align 4
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = and i64 %6, 4294967295
%8 = load i64, i64* @gv_2, align 8
%9 = load i64, i64* @gv_3, align 8
%10 = call i64 @FUNC(i64 %9, i64 %8, i64 %7)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%14 = load i32, i32* @gv_4, align 4
%15 = zext i1 %13 to i64
%16 = call i64 @FUNC(i64 %0, i64 %15, i32 %14)
%17 = call i64 @FUNC(i64* nonnull @gv_3)
%18 = call i64 @FUNC(i64* nonnull @gv_2)
ret i64 %18
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64 (i64*)* @dynstr_free, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 1 }
uselistorder i64 32, { 1, 0 }
} | 0 |
BinRealVul | BN_bn2dec_10011 | BN_bn2dec | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.06.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i64
%sv_2.07.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_3.2.lcssa.reg2mem = alloca i8*
%sv_3.213.reg2mem = alloca i8*
%sv_3.314.reg2mem = alloca i8*
%sv_4.115.reg2mem = alloca i64
%sv_3.1.lcssa.reg2mem = alloca i8*
%sv_3.116.reg2mem = alloca i8*
%sv_4.0.lcssa.reg2mem = alloca i64
%sv_4.018.reg2mem = alloca i64
%sv_3.0.ph.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %arg1)
%4 = call i64 @FUNC(i64 8)
%5 = call i64 @FUNC(i64 0)
%6 = icmp ne i64 %5, 0
%7 = icmp eq i64 %4, 0
%8 = icmp eq i1 %7, false
%or.cond4 = icmp eq i1 %6, %8
br i1 %or.cond4, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 1, i64 2)
store i64 0, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
br label LBL_17
LBL_2:
%10 = call i64 @FUNC(i64 %arg1)
%11 = icmp eq i64 %10, 0
store i32 0, i32* %sv_2.07.reg2mem
store i64 0, i64* %sv_1.05.reg2mem
br i1 %11, label LBL_18, label LBL_3
LBL_3:
%12 = inttoptr i64 %5 to i8*
%13 = call i64 @FUNC(i64 %10)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = add i64 %5, 1
store i8 48, i8* %12, align 1
%17 = inttoptr i64 %16 to i8*
store i8 0, i8* %17, align 1
store i32 1, i32* %sv_2.07.reg2mem
store i64 %10, i64* %sv_1.05.reg2mem
br label LBL_18
LBL_5:
%18 = call i64 @FUNC(i64 %10)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i8* %12, i8** %sv_3.0.ph.reg2mem
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = add i64 %5, 1
%22 = inttoptr i64 %21 to i8*
store i8 45, i8* %12, align 1
store i8* %22, i8** %sv_3.0.ph.reg2mem
br label LBL_7
LBL_7:
%sv_3.0.ph.reload = load i8*, i8** %sv_3.0.ph.reg2mem
%23 = call i64 @FUNC(i64 %10)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 %4, i64* %sv_4.018.reg2mem
store i64 %4, i64* %sv_4.0.lcssa.reg2mem
br i1 %25, label LBL_8, label LBL_11
LBL_8:
%sv_4.018.reload = load i64, i64* %sv_4.018.reg2mem
%26 = sub i64 %sv_4.018.reload, %4
%27 = icmp slt i64 %26, 8
store i64 %10, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
br i1 %27, label LBL_9, label LBL_17
LBL_9:
%28 = call i64 @FUNC(i64 %10, i64 10)
%29 = inttoptr i64 %sv_4.018.reload to i64*
store i64 %28, i64* %29, align 8
%30 = icmp eq i64 %28, -1
store i64 %10, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
br i1 %30, label LBL_17, label LBL_10
LBL_10:
%31 = add i64 %sv_4.018.reload, 8
%32 = call i64 @FUNC(i64 %10)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
store i64 %31, i64* %sv_4.018.reg2mem
store i64 %31, i64* %sv_4.0.lcssa.reg2mem
br i1 %34, label LBL_8, label LBL_11
LBL_11:
%sv_4.0.lcssa.reload = load i64, i64* %sv_4.0.lcssa.reg2mem
%35 = add i64 %sv_4.0.lcssa.reload, -8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = ptrtoint i8* %sv_3.0.ph.reload to i64
%39 = sub i64 %5, %38
%40 = call i64 @FUNC(i64 %38, i64 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %37, i64 %2, i64 %1)
%41 = load i8, i8* %sv_3.0.ph.reload, align 1
%42 = icmp eq i8 %41, 0
%43 = icmp eq i1 %42, false
store i8* %sv_3.0.ph.reload, i8** %sv_3.116.reg2mem
store i8* %sv_3.0.ph.reload, i8** %sv_3.1.lcssa.reg2mem
br i1 %43, label LBL_12, label LBL_13
LBL_12:
%sv_3.116.reload = load i8*, i8** %sv_3.116.reg2mem
%44 = ptrtoint i8* %sv_3.116.reload to i64
%45 = add i64 %44, 1
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%48 = icmp eq i8 %47, 0
%49 = icmp eq i1 %48, false
store i8* %46, i8** %sv_3.116.reg2mem
store i8* %46, i8** %sv_3.1.lcssa.reg2mem
br i1 %49, label LBL_12, label LBL_13
LBL_13:
%sv_3.1.lcssa.reload = load i8*, i8** %sv_3.1.lcssa.reg2mem
%50 = icmp eq i64 %35, %4
%51 = icmp eq i1 %50, false
store i64 %35, i64* %sv_4.115.reg2mem
store i8* %sv_3.1.lcssa.reload, i8** %sv_3.314.reg2mem
store i64 %10, i64* %sv_1.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
br i1 %51, label LBL_14, label LBL_17
LBL_14:
%sv_3.314.reload = load i8*, i8** %sv_3.314.reg2mem
%sv_4.115.reload = load i64, i64* %sv_4.115.reg2mem
%52 = add i64 %sv_4.115.reload, -8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = ptrtoint i8* %sv_3.314.reload to i64
%56 = sub i64 %5, %55
%57 = call i64 @FUNC(i64 %55, i64 %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %54, i64 %2, i64 %1)
%58 = load i8, i8* %sv_3.314.reload, align 1
%59 = icmp eq i8 %58, 0
%60 = icmp eq i1 %59, false
store i8* %sv_3.314.reload, i8** %sv_3.213.reg2mem
store i8* %sv_3.314.reload, i8** %sv_3.2.lcssa.reg2mem
br i1 %60, label LBL_15, label LBL_16
LBL_15:
%sv_3.213.reload = load i8*, i8** %sv_3.213.reg2mem
%61 = ptrtoint i8* %sv_3.213.reload to i64
%62 = add i64 %61, 1
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = icmp eq i8 %64, 0
%66 = icmp eq i1 %65, false
store i8* %63, i8** %sv_3.213.reg2mem
store i8* %63, i8** %sv_3.2.lcssa.reg2mem
br i1 %66, label LBL_15, label LBL_16
LBL_16:
%sv_3.2.lcssa.reload = load i8*, i8** %sv_3.2.lcssa.reg2mem
%67 = icmp eq i64 %52, %4
%68 = icmp eq i1 %67, false
store i64 %52, i64* %sv_4.115.reg2mem
store i8* %sv_3.2.lcssa.reload, i8** %sv_3.314.reg2mem
store i64 %10, i64* %sv_1.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
br i1 %68, label LBL_14, label LBL_17
LBL_17:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.07.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.05.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.08.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.06.reg2mem
br i1 %7, label LBL_19, label LBL_18
LBL_18:
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%sv_2.07.reload = load i32, i32* %sv_2.07.reg2mem
%69 = call i64 @FUNC(i64 %4)
store i32 %sv_2.07.reload, i32* %sv_2.08.reg2mem
store i64 %sv_1.05.reload, i64* %sv_1.06.reg2mem
br label LBL_19
LBL_19:
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%sv_2.08.reload = load i32, i32* %sv_2.08.reg2mem
%70 = icmp eq i64 %sv_1.06.reload, 0
br i1 %70, label LBL_21, label LBL_20
LBL_20:
%71 = call i64 @FUNC(i64 %sv_1.06.reload)
br label LBL_21
LBL_21:
%72 = icmp eq i32 %sv_2.08.reload, 0
%73 = icmp eq i1 %72, false
%74 = icmp eq i64 %5, 0
%or.cond = or i1 %74, %73
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_23, label LBL_22
LBL_22:
%75 = call i64 @FUNC(i64 %5)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_23
LBL_23:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %55, { 1, 0 }
uselistorder i64 %38, { 1, 0 }
uselistorder i8* %sv_3.0.ph.reload, { 0, 1, 3, 2 }
uselistorder i8* %12, { 2, 0, 1 }
uselistorder i64 %10, { 3, 4, 7, 1, 6, 2, 5, 8, 0, 9, 10 }
uselistorder i64 %5, { 7, 0, 6, 2, 1, 3, 4, 5, 8 }
uselistorder i64 %4, { 6, 4, 2, 5, 0, 1, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i8** %sv_3.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_4.018.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_3.116.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.115.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_3.314.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_3.213.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 4, 1, 2, 5 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 3, 4, 1, 2, 5 }
uselistorder i32* %sv_2.07.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.05.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_2.08.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.06.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @BIO_snprintf, { 1, 0 }
uselistorder i8 0, { 2, 1, 3, 0, 4, 5 }
uselistorder i64 (i64)* @BN_is_zero, { 2, 0, 1 }
uselistorder i32 0, { 5, 6, 1, 2, 4, 7, 8, 0, 3 }
uselistorder i64 1, { 1, 2, 3, 4, 0 }
uselistorder i1 false, { 4, 6, 5, 2, 1, 7, 0, 3 }
uselistorder i64 (i64)* @OPENSSL_malloc, { 1, 0 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i32 1, { 11, 12, 9, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 10, 8, 7, 6, 5, 4, 24, 3, 0, 2, 1 }
uselistorder label LBL_18, { 2, 1, 0 }
uselistorder label LBL_17, { 2, 3, 0, 1, 4 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | vmxnet3_set_events_15264 | vmxnet3_set_events | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i32 %2)
%4 = or i64 %1, %arg2
%5 = trunc i64 %4 to i32
store i32 %5, i32* bitcast ([22 x i8]* @gv_0 to i32*), align 16
ret i64 ptrtoint ([22 x i8]* @gv_0 to i64)
uselistorder [22 x i8]* @gv_0, { 2, 0, 1 }
} | 1 |
BinRealVul | mwifiex_set_wmm_params_13764 | mwifiex_set_wmm_params | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 20722, i64 2, i64 %4, i64 %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = add i64 %5, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i64
%11 = icmp ult i8 %9, 6
store i64 %10, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_5
LBL_2:
%12 = add i64 %5, 2
%13 = inttoptr i64 %12 to i64*
%14 = zext i8 %9 to i32
%15 = call i64* @memcpy(i64* %arg2, i64* %13, i32 %14)
%16 = bitcast i64* %arg1 to i32*
store i32 1, i32* %16, align 4
br label LBL_4
LBL_3:
%17 = call i64* @memset(i64* %arg2, i32 0, i32 5)
%18 = bitcast i64* %arg2 to i32*
store i32 49434624, i32* %18, align 4
%19 = add i64 %1, 3
%20 = inttoptr i64 %19 to i8*
store i8 0, i8* %20, align 1
%21 = add i64 %1, 4
%22 = inttoptr i64 %21 to i8*
store i8 1, i8* %22, align 1
%23 = bitcast i64* %arg1 to i32*
store i32 0, i32* %23, align 4
br label LBL_4
LBL_4:
%24 = add i64 %1, 5
%25 = inttoptr i64 %24 to i8*
store i8 0, i8* %25, align 1
store i64 %1, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | lmf_header_load_12490 | lmf_header_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp ult i32 %5, 48
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC(i64 %3, i64 0, i64 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp ult i32 %9, 48
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg3 to i64
%12 = call i64 @FUNC(i64 32)
%13 = and i64 %2, 4294967295
%14 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %13, i64 %7, i64 ptrtoint ([19 x i8]* @gv_0 to i64), i64 1, i64 %1)
%15 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 0)
%16 = add i64 %7, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 %14, i64 0, i64 1, i64 %1)
%21 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %20, i64 0)
%22 = add i64 %7, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %25, i64 %20, i64 0, i64 1, i64 %1)
%27 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0), i64 %26, i64 0)
%28 = add i64 %7, 12
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %31, i64 %26, i64 0, i64 1, i64 %1)
%33 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0), i64 %32, i64 0)
%34 = add i64 %7, 16
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %37, i64 %32, i64 0, i64 1, i64 %1)
%39 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_7, i64 0, i64 0), i64 %38, i64 0)
%40 = add i64 %7, 20
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %43, i64 %38, i64 0, i64 1, i64 %1)
%45 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_8, i64 0, i64 0), i64 %44, i64 0)
%46 = add i64 %7, 24
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = zext i32 %48 to i64
%50 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %49, i64 %44, i64 0, i64 1, i64 %1)
%51 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_9, i64 0, i64 0), i64 %50, i64 0)
%52 = add i64 %7, 28
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = zext i32 %54 to i64
%56 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %55, i64 %50, i64 0, i64 1, i64 %1)
%57 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_10, i64 0, i64 0), i64 %56, i64 0)
%58 = add i64 %7, 32
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %61, i64 %56, i64 0, i64 1, i64 %1)
%63 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_11, i64 0, i64 0), i64 %62, i64 0)
%64 = add i64 %7, 36
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = zext i32 %66 to i64
%68 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %67, i64 %62, i64 0, i64 1, i64 %1)
%69 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_12, i64 0, i64 0), i64 %68, i64 0)
%70 = add i64 %7, 40
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = zext i32 %72 to i64
%74 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %73, i64 %68, i64 0, i64 1, i64 %1)
%75 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_13, i64 0, i64 0), i64 %74, i64 0)
%76 = add i64 %7, 44
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = zext i32 %78 to i64
%80 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 %79, i64 %74, i64 0, i64 1, i64 %1)
%81 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_14, i64 0, i64 0), i64 %80, i64 0)
store i64 1, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %74, { 1, 0 }
uselistorder i64 %68, { 1, 0 }
uselistorder i64 %62, { 1, 0 }
uselistorder i64 %56, { 1, 0 }
uselistorder i64 %50, { 1, 0 }
uselistorder i64 %44, { 1, 0 }
uselistorder i64 %38, { 1, 0 }
uselistorder i64 %32, { 1, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %1, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64)* @sdb_set, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @r_strf, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder [19 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | accountable_mapping_10470 | accountable_mapping | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%5 = urem i64 %arg2, 8
%6 = icmp eq i64 %5, 4
%7 = zext i1 %6 to i64
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | submit_work_async_17761 | submit_work_async | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64* @malloc(i32 16)
%1 = icmp eq i64* %0, null
%2 = zext i1 %1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%7 = ptrtoint i64* %0 to i64
%8 = ptrtoint i64* %arg1 to i64
store i64 %8, i64* %0, align 8
%9 = call i64 @FUNC()
%10 = add i64 %7, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = bitcast i64* %sv_0 to i32*
%13 = call i32 @pthread_create(i32* nonnull %12, i64* null, i64* (i64*)* inttoptr (i64 4198816 to i64* (i64*)*), i64* %0)
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %0, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i8*)* @applog, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @unlikely, { 1, 0 }
uselistorder i64* null, { 1, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | qdev_init_chardev_18713 | qdev_init_chardev | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.in.in.reg2mem = alloca i64
%0 = bitcast i64* %arg1 to i8*
%1 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 6)
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i32, i32* @gv_1, align 4
store i32 ptrtoint (i64* @gv_2 to i32), i32* @gv_1, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = add i64 %6, ptrtoint (i64* @gv_3 to i64)
store i64 %7, i64* %storemerge.in.in.reg2mem
br label LBL_3
LBL_2:
%8 = load i32, i32* inttoptr (i64 4210964 to i32*), align 4
%9 = add i32 %8, 1
store i32 %9, i32* bitcast (i64* @gv_4 to i32*), align 8
%10 = sext i32 %8 to i64
%11 = mul i64 %10, 8
%12 = add nsw i64 %11, 4210880
store i64 %12, i64* %storemerge.in.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.in.reload = load i64, i64* %storemerge.in.in.reg2mem
%storemerge.in = inttoptr i64 %storemerge.in.in.reload to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
ret i64 %storemerge
uselistorder i64* %storemerge.in.in.reg2mem, { 0, 2, 1 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | path_openat_11251 | path_openat | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3, i32* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
store i32 0, i32* %sv_2, align 4
%2 = call i64 @FUNC()
%3 = inttoptr i64 %2 to i32*
%4 = icmp ult i64 %2, -1000
store i32* %3, i32** %storemerge.in.reg2mem
br i1 %4, label LBL_1, label LBL_21
LBL_1:
%5 = ptrtoint i64* %arg3 to i64
%6 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg1, 4294967296
%7 = ashr exact i64 %sext, 32
%sext5 = mul i64 %arg5, 4294967296
%8 = ashr exact i64 %sext5, 32
%9 = trunc i64 %1 to i32
store i32 %9, i32* %3, align 4
%10 = and i32 %9, 262144
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = ptrtoint i32* %arg4 to i64
%15 = trunc i64 %8 to i32
%16 = and i64 %7, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %6, i64 %5, i32 %15, i64 %14, i64 %2)
%18 = trunc i64 %17 to i32
store i32 %18, i32* %sv_1, align 4
br label LBL_11
LBL_3:
%19 = trunc i64 %8 to i32
%20 = and i64 %7, 4294967295
%21 = call i64 @FUNC(i64 %20, i64 %6, i32 %19, i64 %5)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_1, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %24, false
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_11, label LBL_4
LBL_4:
%27 = ptrtoint i32* %arg4 to i64
%28 = call i64 @FUNC(i64 %5, i32* nonnull %sv_1, i64 %2, i64 %27, i32* nonnull %sv_2, i64 %6)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %sv_1, align 4
%30 = icmp eq i32 %29, 0
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
%35 = icmp eq i1 %34, false
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_5, label LBL_11
LBL_5:
%37 = add i64 %5, 8
%38 = inttoptr i64 %37 to i32*
br label LBL_6
LBL_6:
%39 = load i32, i32* %38, align 4
%40 = urem i32 %39, 2
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_8, label LBL_7
LBL_7:
%43 = call i64 @FUNC(i32* nonnull %sv_1, i64 %5)
%44 = call i64 @FUNC(i64 %5)
store i32 1, i32* %sv_1, align 4
br label LBL_11
LBL_8:
%45 = call i64 @FUNC(i32* nonnull %sv_2, i64 %5)
%46 = trunc i64 %45 to i32
store i32 %46, i32* %sv_1, align 4
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
%49 = icmp eq i1 %48, false
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_11, label LBL_9
LBL_9:
%51 = load i32, i32* %38, align 4
%52 = and i32 %51, -31
%53 = or i32 %52, 2
store i32 %53, i32* %38, align 4
%54 = call i64 @FUNC(i32* nonnull %sv_2, i64 %5, i64* nonnull %sv_0)
%55 = trunc i64 %54 to i32
store i32 %55, i32* %sv_1, align 4
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
%58 = icmp eq i1 %57, false
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_11, label LBL_10
LBL_10:
%60 = call i64 @FUNC(i64 %5, i32* nonnull %sv_1, i64 %2, i64 %27, i32* nonnull %sv_2, i64 %6)
%61 = trunc i64 %60 to i32
store i32 %61, i32* %sv_1, align 4
%62 = load i64, i64* %sv_0, align 8
%63 = call i64 @FUNC(i64 %5, i32* nonnull %sv_2, i64 %62)
%64 = load i32, i32* %sv_1, align 4
%65 = icmp eq i32 %64, 0
%66 = icmp slt i32 %64, 0
%67 = icmp eq i1 %66, false
%68 = icmp eq i1 %65, false
%69 = icmp eq i1 %67, %68
%70 = icmp eq i1 %69, false
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_6, label LBL_11
LBL_11:
%72 = call i64 @FUNC(i64 %5)
%73 = load i32, i32* %sv_2, align 4
%74 = urem i32 %73, 2
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_15, label LBL_12
LBL_12:
%77 = load i32, i32* %sv_1, align 4
%78 = icmp eq i32 %77, 0
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_14, label LBL_13
LBL_13:
call void @abort()
unreachable
LBL_14:
%80 = call i64 @FUNC(i64 %2)
br label LBL_15
LBL_15:
%81 = load i32, i32* %sv_1, align 4
%82 = icmp eq i32 %81, 0
%83 = icmp eq i1 %82, false
%84 = icmp eq i1 %83, false
store i32* %3, i32** %storemerge.in.reg2mem
br i1 %84, label LBL_21, label LBL_16
LBL_16:
%85 = icmp eq i32 %81, 2
%86 = icmp eq i1 %85, false
store i32 %81, i32* %.reg2mem
br i1 %86, label LBL_20, label LBL_17
LBL_17:
%87 = and i64 %arg5, 32
%88 = icmp eq i64 %87, 0
br i1 %88, label LBL_19, label LBL_18
LBL_18:
store i32 3, i32* %sv_1, align 4
store i32 3, i32* %.reg2mem
br label LBL_20
LBL_19:
store i32 4, i32* %sv_1, align 4
store i32 4, i32* %.reg2mem
br label LBL_20
LBL_20:
%.reload = load i32, i32* %.reg2mem
%89 = sext i32 %.reload to i64
%90 = inttoptr i64 %89 to i32*
store i32* %90, i32** %storemerge.in.reg2mem
br label LBL_21
LBL_21:
%storemerge.in.reload = load i32*, i32** %storemerge.in.reg2mem
%storemerge = ptrtoint i32* %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i32 %29, { 1, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %6, { 1, 2, 3, 0 }
uselistorder i64 %5, { 9, 2, 1, 3, 7, 6, 5, 4, 8, 10, 0 }
uselistorder i32* %3, { 0, 2, 1 }
uselistorder i64 %2, { 2, 0, 1, 3, 4, 5 }
uselistorder i32* %sv_2, { 5, 0, 1, 2, 3, 4, 6 }
uselistorder i32* %sv_1, { 3, 4, 5, 6, 7, 8, 0, 9, 10, 11, 1, 12, 2, 13, 14 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 4, { 0, 2, 1 }
uselistorder i32 2, { 3, 0, 2, 1 }
uselistorder i64 (i64, i32*, i64, i64, i32*, i64)* @do_last, { 1, 0 }
uselistorder i1 false, { 11, 9, 12, 13, 14, 20, 6, 21, 7, 15, 4, 16, 17, 5, 18, 19, 0, 1, 2, 3, 22, 8, 23, 10, 24 }
uselistorder i64 %arg5, { 1, 0 }
uselistorder i32* %arg4, { 1, 0 }
uselistorder label LBL_21, { 1, 0, 2 }
uselistorder label LBL_11, { 0, 2, 1, 5, 3, 4, 6 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | get_buffer_3514 | get_buffer | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0, i64 %arg3)
ret i64 0
} | 0 |
BinRealVul | stcoin_13306 | stcoin | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_3.13.reg2mem = alloca i32
%sv_2.14.reg2mem = alloca i32
%sv_1.25.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%0 = trunc i64 %arg1 to i32
%1 = icmp sgt i32 %0, 7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_12
LBL_1:
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp ne i32 %4, 0
%6 = icmp eq i32 %4, -1
%7 = icmp eq i1 %6, false
%or.cond = icmp eq i1 %5, %7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_12
LBL_2:
%sext = mul i64 %arg1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = trunc i64 %8 to i32
%10 = add i32 %9, -8
%11 = udiv i32 %10, 4
%12 = icmp ult i32 %11, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_12, label LBL_3
LBL_3:
%13 = load i32, i32* @gv_0, align 4
%14 = icmp eq i32 %13, 0
store i32 0, i32* %storemerge7.reg2mem
store i32 0, i32* %sv_0.16.reg2mem
store i32 0, i32* %sv_1.25.reg2mem
store i32 0, i32* %sv_2.14.reg2mem
store i32 0, i32* %sv_3.13.reg2mem
br i1 %14, label LBL_11, label LBL_4
LBL_4:
%sv_3.13.reload = load i32, i32* %sv_3.13.reg2mem
%sv_2.14.reload = load i32, i32* %sv_2.14.reg2mem
%sv_1.25.reload = load i32, i32* %sv_1.25.reg2mem
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%15 = icmp eq i32 %sv_2.14.reload, 0
%16 = icmp eq i1 %15, false
store i32 %sv_3.13.reload, i32* %sv_3.0.reg2mem
store i32 %sv_2.14.reload, i32* %sv_2.0.reg2mem
store i32 %sv_1.25.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_9, label LBL_5
LBL_5:
%17 = add i32 %sv_3.13.reload, 1
%18 = icmp ugt i32 %17, %4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_12, label LBL_6
LBL_6:
%19 = load i32, i32* @gv_1, align 4
%20 = icmp ult i32 %sv_1.25.reload, %19
%21 = icmp eq i1 %20, false
%.pre = load i64, i64* @gv_2, align 8
store i32 %sv_1.25.reload, i32* %sv_1.0.reg2mem
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = add i32 %sv_1.25.reload, 1
%23 = zext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = add i64 %.pre, %24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %17, %27
%29 = icmp eq i1 %28, false
%spec.select = select i1 %29, i32 %sv_1.25.reload, i32 %22
store i32 %spec.select, i32* %sv_1.0.reg2mem
br label LBL_8
LBL_8:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%30 = zext i32 %sv_1.0.reload to i64
%31 = mul i64 %30, 8
%32 = add i64 %.pre, 4
%33 = add i64 %32, %31
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = call i64 @FUNC()
%37 = trunc i64 %36 to i32
store i32 %17, i32* %sv_3.0.reg2mem
store i32 %35, i32* %sv_2.0.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %37, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%38 = load i64, i64* @gv_3, align 8
%39 = zext i32 %storemerge7.reload to i64
%40 = mul i64 %39, 8
%41 = or i64 %40, 4
%42 = add i64 %38, %41
%43 = inttoptr i64 %42 to i32*
store i32 %sv_0.0.reload, i32* %43, align 4
%44 = load i64, i64* @gv_3, align 8
%45 = add i64 %44, %40
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i32 %47, %sv_0.0.reload
%49 = icmp ult i32 %48, %sv_0.0.reload
%50 = icmp eq i1 %49, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %50, label LBL_10, label LBL_12
LBL_10:
%51 = add i32 %sv_2.0.reload, -1
%52 = add i32 %storemerge7.reload, 1
%53 = load i32, i32* @gv_0, align 4
%54 = icmp ult i32 %52, %53
store i32 %52, i32* %storemerge7.reg2mem
store i32 %48, i32* %sv_0.16.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.25.reg2mem
store i32 %51, i32* %sv_2.14.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.13.reg2mem
br i1 %54, label LBL_4, label LBL_11
LBL_11:
%55 = call i64 @FUNC(i64* nonnull @gv_2)
%56 = and i64 %8, 4294967295
store i64 %56, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64 %.pre, { 1, 0 }
uselistorder i32 %sv_1.25.reload, { 2, 4, 1, 3, 0 }
uselistorder i32 %sv_3.13.reload, { 1, 0 }
uselistorder i32 %4, { 2, 1, 0, 3 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.25.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.14.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.13.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 }
uselistorder i64* @gv_2, { 1, 0 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i32 0, { 8, 0, 1, 2, 3, 4, 5, 9, 6, 7 }
uselistorder i64 ()* @u32in, { 2, 1, 0 }
uselistorder i32 1, { 11, 12, 13, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_12, { 5, 0, 1, 2, 3, 4 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | swf_svg_print_6266 | swf_svg_print | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg1 to i64
store i32 16, i32* %sv_1, align 4
%22 = ptrtoint i32* %sv_1 to i64
%23 = bitcast i64* %sv_0 to i8*
%24 = call i32 @vsnprintf(i8* nonnull %23, i32 2000, i8* %arg2, i64 %22)
%25 = ptrtoint i64* %sv_0 to i64
%26 = call i32 @strlen(i8* nonnull %23)
%27 = add i64 %21, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i32 %29, %26
%31 = add i32 %30, 1
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %25, i64 %32)
store i64 %33, i64* %arg1, align 8
%34 = add i64 %21, 16
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 0
%38 = load i32, i32* %28, align 4
br i1 %37, label LBL_4, label LBL_3
LBL_3:
%39 = add i64 %21, 12
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i32 %38, 1
%43 = sub i32 %42, %41
%44 = zext i32 %41 to i64
%45 = add i64 %44, %25
%46 = zext i32 %26 to i64
%47 = add i64 %45, %46
%48 = inttoptr i64 %47 to i64*
%49 = inttoptr i64 %45 to i64*
%50 = call i64* @memmove(i64* %48, i64* %49, i32 %43)
%51 = load i32, i32* %40, align 4
%52 = zext i32 %51 to i64
%53 = add i64 %47, %52
%54 = inttoptr i64 %53 to i64*
%55 = call i64* @memcpy(i64* %54, i64* nonnull %sv_0, i32 %26)
%56 = load i32, i32* %40, align 4
%57 = add i32 %56, %26
store i32 %57, i32* %40, align 4
br label LBL_5
LBL_4:
%58 = zext i32 %38 to i64
%59 = add i64 %58, %25
%60 = inttoptr i64 %59 to i8*
%61 = call i8* @strcpy(i8* %60, i8* nonnull %23)
br label LBL_5
LBL_5:
store i32 %30, i32* %28, align 4
ret i64 %21
uselistorder i64 %45, { 1, 0 }
uselistorder i32 %41, { 1, 0 }
uselistorder i32* %40, { 1, 0, 2, 3 }
uselistorder i32 %38, { 1, 0 }
uselistorder i32 %26, { 0, 2, 3, 1 }
uselistorder i64 %21, { 0, 2, 1, 3 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.