dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | libgsm_close_1939 | libgsm_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
store i64 0, i64* %3, align 8
ret i64 0
} | 0 |
BinRealVul | GENERAL_NAME_cmp_11875 | GENERAL_NAME_cmp | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp ne i32* %arg1, null
%4 = icmp ne i64* %arg2, null
%5 = trunc i64 %1 to i32
%or.cond.not = icmp eq i1 %3, %4
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %5, %6
%or.cond4 = icmp eq i1 %or.cond.not, %7
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %or.cond4, label LBL_1, label LBL_9
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = and i64 %1, 4294967295
store i64 %9, i64* @0, align 8
store i64 4294967295, i64* %sv_0.0.reg2mem
switch i32 %5, label LBL_8 [
i32 1, label LBL_2
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_4
i32 5, label LBL_4
i32 6, label LBL_4
i32 7, label LBL_5
i32 8, label LBL_6
i32 9, label LBL_7
]
LBL_2:
%10 = add i64 %8, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = ptrtoint i32* %arg1 to i64
%14 = add i64 %13, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %12)
store i64 %17, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_3:
%18 = add i64 %8, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = ptrtoint i32* %arg1 to i64
%22 = add i64 %21, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24, i64 %20)
store i64 %25, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_4:
%26 = add i64 %8, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = ptrtoint i32* %arg1 to i64
%30 = add i64 %29, 8
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i64 %28)
store i64 %33, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%34 = add i64 %8, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = ptrtoint i32* %arg1 to i64
%38 = add i64 %37, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %40, i64 %36)
store i64 %41, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_6:
%42 = add i64 %8, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = ptrtoint i32* %arg1 to i64
%46 = add i64 %45, 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %48, i64 %44)
store i64 %49, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%50 = add i64 %8, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = ptrtoint i32* %arg1 to i64
%54 = add i64 %53, 8
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = call i64 @FUNC(i64 %56, i64 %52)
store i64 %57, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%58 = and i64 %sv_0.0.reload, 4294967295
store i64 %58, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i32* %arg1, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | sh_intc_register_sources_18617 | sh_intc_register_sources | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32*
%sv_0.110.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%indvars.iv14.reg2mem = alloca i64
%.reg2mem = alloca i32
%indvars.iv17.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
%sext7 = mul i64 %arg5, 4294967296
%3 = ashr exact i64 %sext7, 32
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%6 = ptrtoint i32* %arg2 to i64
%7 = trunc i64 %3 to i32
%wide.trip.count19 = and i64 %2, 4294967295
store i64 0, i64* %indvars.iv17.reg2mem
br label LBL_2
LBL_2:
%indvars.iv17.reload = load i64, i64* %indvars.iv17.reg2mem
%8 = mul i64 %indvars.iv17.reload, 8
%9 = add i64 %8, %6
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = call i64 @FUNC(i64 %1, i32 %11, i64 %0, i32 %7)
%13 = load i32, i32* %10, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %1, i64 %14)
%16 = inttoptr i64 %15 to i32*
%17 = icmp eq i64 %15, 0
br i1 %17, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = load i32, i32* %16, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_5
LBL_4:
%18 = add i64 %9, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
store i32 %20, i32* %16, align 4
store i32 %20, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%21 = add i64 %15, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %15, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = load i32, i32* %10, align 4
%29 = zext i32 %23 to i64
%30 = zext i32 %28 to i64
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i64 %30, i32 %.reload, i64 %27, i64 %29)
%indvars.iv.next18 = add nuw nsw i64 %indvars.iv17.reload, 1
%exitcond20 = icmp eq i64 %indvars.iv.next18, %wide.trip.count19
store i64 %indvars.iv.next18, i64* %indvars.iv17.reg2mem
br i1 %exitcond20, label LBL_6, label LBL_2
LBL_6:
%32 = icmp eq i64* %arg4, null
store i64 %2, i64* %rax.0.in.reg2mem
br i1 %32, label LBL_14, label LBL_7
LBL_7:
%33 = trunc i64 %3 to i32
%34 = icmp eq i32 %33, 0
store i64 %3, i64* %rax.0.in.reg2mem
br i1 %34, label LBL_14, label LBL_8
LBL_8:
%wide.trip.count = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv14.reg2mem
br label LBL_9
LBL_9:
%indvars.iv14.reload = load i64, i64* %indvars.iv14.reg2mem
%35 = mul nuw nsw i64 %indvars.iv14.reload, 44
%36 = add i64 %35, %0
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %1, i64 %39)
%41 = inttoptr i64 %40 to i32*
%42 = add i64 %36, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %40, 12
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
store i64 1, i64* %indvars.iv.reg2mem
store i32* %41, i32** %sv_0.110.reg2mem
br label LBL_10
LBL_10:
%sv_0.110.reload = load i32*, i32** %sv_0.110.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%47 = mul i64 %indvars.iv.reload, 4
%48 = add i64 %47, %42
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 0
store i32* %sv_0.110.reload, i32** %sv_0.0.reg2mem
br i1 %51, label LBL_12, label LBL_11
LBL_11:
%52 = add i64 %47, %36
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = zext i32 %54 to i64
%56 = call i64 @FUNC(i64 %1, i64 %55)
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %49, align 4
%59 = add i64 %56, 12
%60 = inttoptr i64 %59 to i32*
store i32 %58, i32* %60, align 4
store i32* %57, i32** %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32* %sv_0.0.reload, i32** %sv_0.110.reg2mem
br i1 %exitcond, label LBL_13, label LBL_10
LBL_13:
%61 = ptrtoint i32* %sv_0.0.reload to i64
%62 = add i64 %61, 8
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %64 to i64
%66 = add i64 %61, 4
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = zext i32 %68 to i64
%70 = load i32, i32* %37, align 4
%71 = zext i32 %70 to i64
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %71, i64 %69, i64 %65)
%indvars.iv.next15 = add nuw nsw i64 %indvars.iv14.reload, 1
%exitcond16 = icmp eq i64 %indvars.iv.next15, %wide.trip.count
store i64 %indvars.iv.next15, i64* %indvars.iv14.reg2mem
store i64 %3, i64* %rax.0.in.reg2mem
br i1 %exitcond16, label LBL_14, label LBL_9
LBL_14:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %56, { 1, 0 }
uselistorder i64 %47, { 1, 0 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %36, { 0, 2, 1 }
uselistorder i32* %16, { 1, 0 }
uselistorder i64 %15, { 0, 1, 3, 2 }
uselistorder i64 %3, { 0, 2, 1, 3, 4 }
uselistorder i64 %1, { 0, 1, 3, 2 }
uselistorder i64* %indvars.iv17.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv14.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.110.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64, i64)* @sh_intc_source, { 2, 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | config_input_props_493 | config_input_props | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = icmp eq i32 %3, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967274, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 3, 0, 4, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | fxIDToString_13007 | fxIDToString | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = icmp slt i32 %3, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_13, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i32
%8 = trunc i64 %4 to i32
%9 = urem i32 %8, 32768
%10 = icmp ult i32 %9, %7
br i1 %10, label LBL_2, label LBL_12
LBL_2:
%11 = ptrtoint i32* %arg1 to i64
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp ult i32 %9, %14
br i1 %15, label LBL_3, label LBL_4
LBL_3:
%16 = mul i32 %9, 8
%sext3 = zext i32 %16 to i64
%17 = add i64 %11, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %19, %sext3
store i64 %20, i64* %storemerge.in.in.reg2mem
br label LBL_5
LBL_4:
%21 = add i64 %11, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = sub i32 %9, %14
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 8
%27 = add i64 %23, %26
store i64 %27, i64* %storemerge.in.in.reg2mem
br label LBL_5
LBL_5:
%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
%28 = icmp eq i64 %storemerge, 0
br i1 %28, label LBL_11, label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %storemerge)
%30 = trunc i64 %29 to i32
%31 = icmp ne i32 %30, 0
%32 = icmp eq i32 %30, 1
%33 = icmp eq i1 %32, false
%or.cond = icmp eq i1 %31, %33
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%34 = inttoptr i64 %storemerge to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %2, i64 %35)
store i64 %36, i64* %rax.0.reg2mem
br label LBL_14
LBL_8:
%37 = icmp ne i32 %30, 2
%38 = icmp eq i32 %30, 3
%39 = icmp eq i1 %38, false
%or.cond7 = icmp eq i1 %37, %39
%40 = bitcast i64* %arg3 to i8*
br i1 %or.cond7, label LBL_10, label LBL_9
LBL_9:
store i8 91, i8* %40, align 1
%41 = inttoptr i64 %storemerge to i64*
%42 = load i64, i64* %41, align 8
%43 = add i64 %2, 1
%44 = call i64 @FUNC(i64 %43, i64 %42)
%45 = call i64 @FUNC(i64 %2, i64* nonnull @gv_0)
store i64 %45, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
store i8 0, i8* %40, align 1
store i64 %2, i64* %rax.0.reg2mem
br label LBL_14
LBL_11:
%46 = bitcast i64* %arg3 to i8*
store i8 0, i8* %46, align 1
store i64 %2, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%47 = bitcast i64* %arg3 to i8*
store i8 63, i8* %47, align 1
%48 = add i64 %2, 1
%49 = inttoptr i64 %48 to i8*
store i8 0, i8* %49, align 1
store i64 %48, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%50 = ptrtoint i32* %arg1 to i64
%51 = add i64 %50, 24
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = trunc i64 %4 to i32
%55 = call i64 @FUNC(i64 %53, i32 %54, i64 %2, i64 %arg4)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %40, { 1, 0 }
uselistorder i32 %30, { 0, 2, 1, 3 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i32 %9, { 2, 0, 3, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 6, 2, 1, 0, 4, 3, 5 }
uselistorder i64* %storemerge.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 2, 3, 4 }
uselistorder i64 (i64, i64)* @c_strcpy, { 1, 0 }
uselistorder i64* %arg3, { 2, 0, 1, 3 }
uselistorder i32* %arg1, { 1, 0 }
} | 1 |
BinRealVul | window_14298 | window | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge2.reg2mem = alloca i64
%xmm0.4.lcssa.reg2mem = alloca i128
%.reg2mem92 = alloca i32
%sv_0.113.reg2mem = alloca i32
%xmm0.415.reg2mem = alloca i128
%indvars.iv.reg2mem = alloca i64
%xmm0.516.reg2mem = alloca i128
%storemerge317.reg2mem = alloca i32
%.reg2mem90 = alloca i32
%xmm0.3.lcssa.reg2mem = alloca i128
%storemerge419.reg2mem = alloca i32
%xmm0.2.reg2mem = alloca i128
%.reg2mem88 = alloca i32
%.reg2mem86 = alloca i32
%.reg2mem84 = alloca i32
%.reg2mem82 = alloca i32
%storemerge622.reg2mem = alloca i32
%xmm0.0.lcssa.reg2mem = alloca i128
%.reg2mem80 = alloca i32
%.reg2mem78 = alloca i32
%.reg2mem76 = alloca i32
%.reg2mem74 = alloca i32
%.reg2mem72 = alloca i32
%sv_0.023.reg2mem = alloca i32
%xmm0.025.reg2mem = alloca i128
%indvars.iv35.reg2mem = alloca i64
%xmm0.127.reg2mem = alloca i128
%storemerge528.reg2mem = alloca i32
%.reg2mem70 = alloca i32
%.reg2mem68 = alloca i32
%.reg2mem66 = alloca i32
%.reg2mem64 = alloca i32
%.reg2mem = alloca i32
%storemerge831.reg2mem = alloca i32
%storemerge732.reg2mem = alloca i32
%rdi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = urem i32 %14, 32
%16 = shl i32 1, %15
%17 = call i128 @FUNC(i128 %3, i128 %3)
%18 = call i128 @FUNC(i32 %16)
%19 = call i128 @__asm_movss.1(i32 1082130432)
%20 = call i128 @FUNC(i128 %18, i128 %19)
%21 = call i64 @FUNC(i128 %20)
%22 = add i64 %4, 56
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = or i32 %24, %arg3
%26 = icmp eq i32 %25, 0
store i64 0, i64* %storemerge2.reg2mem
br i1 %26, label LBL_28, label LBL_1
LBL_1:
%27 = add i32 %14, 31
%28 = urem i32 %27, 32
%29 = shl i32 1, %28
%30 = trunc i64 %2 to i32
%31 = icmp eq i32 %24, 0
%32 = icmp eq i32 %30, 0
br i1 %31, label LBL_4, label LBL_2
LBL_2:
br i1 %32, label LBL_8, label LBL_3
LBL_3:
%33 = mul i32 %29, 4
%34 = add i64 %4, 32
%35 = inttoptr i64 %34 to i64*
%36 = add i64 %4, 24
%37 = inttoptr i64 %36 to i64*
%38 = and i64 %2, 4294967295
store i32 0, i32* %storemerge732.reg2mem
br label LBL_6
LBL_4:
br i1 %32, label LBL_8, label LBL_5
LBL_5:
%39 = mul i32 %29, 4
%40 = add i64 %4, 24
%41 = inttoptr i64 %40 to i64*
%42 = and i64 %2, 4294967295
store i32 0, i32* %storemerge831.reg2mem
br label LBL_7
LBL_6:
%storemerge732.reload = load i32, i32* %storemerge732.reg2mem
%43 = load i64, i64* %35, align 8
%44 = shl i32 %storemerge732.reload, %28
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = add i64 %46, %43
%48 = load i64, i64* %37, align 8
%49 = mul i32 %44, 2
%50 = sext i32 %49 to i64
%51 = mul i64 %50, 4
%52 = add i64 %51, %48
%53 = inttoptr i64 %52 to i64*
%54 = inttoptr i64 %47 to i64*
%55 = call i64* @memcpy(i64* %53, i64* %54, i32 %33)
%56 = add i32 %storemerge732.reload, 1
%57 = sext i32 %56 to i64
%58 = icmp sgt i64 %38, %57
store i32 %56, i32* %storemerge732.reg2mem
br i1 %58, label LBL_6, label LBL_8
LBL_7:
%storemerge831.reload = load i32, i32* %storemerge831.reg2mem
%59 = load i64, i64* %41, align 8
%60 = shl i32 %storemerge831.reload, %28
%61 = mul i32 %60, 2
%62 = sext i32 %61 to i64
%63 = mul i64 %62, 4
%64 = add i64 %63, %59
%65 = inttoptr i64 %64 to i64*
%66 = call i64* @memset(i64* %65, i32 0, i32 %39)
%67 = add i32 %storemerge831.reload, 1
%68 = sext i32 %67 to i64
%69 = icmp sgt i64 %42, %68
store i32 %67, i32* %storemerge831.reg2mem
br i1 %69, label LBL_7, label LBL_8
LBL_8:
%70 = ptrtoint i64* %arg2 to i64
%71 = trunc i64 %21 to i32
%72 = icmp eq i32 %arg3, 0
%73 = bitcast i64* %rdi to i32*
br i1 %72, label LBL_11, label LBL_9
LBL_9:
br i1 %32, label LBL_26, label LBL_10
LBL_10:
%74 = add i64 %4, 24
%75 = inttoptr i64 %74 to i64*
%76 = sext i32 %29 to i64
%77 = icmp sgt i32 %arg3, 0
%wide.trip.count37 = zext i32 %arg3 to i64
store i32 %30, i32* %.reg2mem
store i32 %30, i32* %.reg2mem64
store i32 %30, i32* %.reg2mem66
store i32 %30, i32* %.reg2mem68
store i32 %30, i32* %.reg2mem70
store i32 0, i32* %storemerge528.reg2mem
store i128 %20, i128* %xmm0.127.reg2mem
br label LBL_13
LBL_11:
br i1 %32, label LBL_27, label LBL_12
LBL_12:
%78 = mul i32 %29, 4
%79 = add i64 %4, 24
%80 = inttoptr i64 %79 to i64*
%81 = sext i32 %29 to i64
%82 = and i64 %2, 4294967295
store i32 0, i32* %storemerge622.reg2mem
br label LBL_16
LBL_13:
%xmm0.127.reload = load i128, i128* %xmm0.127.reg2mem
%storemerge528.reload = load i32, i32* %storemerge528.reg2mem
%.reload71 = load i32, i32* %.reg2mem70
%.reload69 = load i32, i32* %.reg2mem68
%.reload67 = load i32, i32* %.reg2mem66
%.reload65 = load i32, i32* %.reg2mem64
%.reload = load i32, i32* %.reg2mem
%83 = load i64, i64* %75, align 8
%84 = shl i32 %storemerge528.reload, %28
%85 = mul i32 %84, 2
%86 = sext i32 %85 to i64
%87 = add nsw i64 %86, %76
store i64 0, i64* %indvars.iv35.reg2mem
store i128 %xmm0.127.reload, i128* %xmm0.025.reg2mem
store i32 %storemerge528.reload, i32* %sv_0.023.reg2mem
store i32 %.reload, i32* %.reg2mem72
store i32 %.reload65, i32* %.reg2mem74
store i32 %.reload67, i32* %.reg2mem76
store i32 %.reload69, i32* %.reg2mem78
store i32 %.reload71, i32* %.reg2mem80
store i128 %xmm0.127.reload, i128* %xmm0.0.lcssa.reg2mem
br i1 %77, label LBL_14, label LBL_15
LBL_14:
%sv_0.023.reload = load i32, i32* %sv_0.023.reg2mem
%xmm0.025.reload = load i128, i128* %xmm0.025.reg2mem
%indvars.iv35.reload = load i64, i64* %indvars.iv35.reg2mem
%88 = sext i32 %sv_0.023.reload to i64
%89 = mul i64 %88, 2
%90 = add i64 %89, %70
%91 = inttoptr i64 %90 to i16*
%92 = load i16, i16* %91, align 2
%93 = sext i16 %92 to i32
%94 = call i128 @FUNC(i128 %xmm0.025.reload, i128 %xmm0.025.reload)
%95 = call i128 @FUNC(i32 %93)
%96 = call i128 @FUNC(i64 4674736413210574848)
%97 = call i128 @FUNC(i128 %95)
%98 = call i128 @FUNC(i128 %97, i128 %96)
%99 = trunc i64 %indvars.iv35.reload to i32
%100 = sub i32 %29, %99
%101 = sext i32 %100 to i64
%102 = mul i64 %101, 4
%103 = add i64 %102, %9
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = call i128 @__asm_movss.1(i32 %105)
%107 = call i128 @FUNC(i128 %106)
%108 = call i128 @FUNC(i128 %107, i128 %98)
%109 = call i128 @FUNC(i128 %98, i128 %98)
%110 = call i128 @__asm_cvtss2sd.2(i32 %71)
%111 = call i128 @FUNC(i128 %108, i128 %110)
%reass.add = add nsw i64 %87, %indvars.iv35.reload
%reass.mul = mul i64 %reass.add, 4
%112 = add i64 %reass.mul, %83
%113 = call i128 @FUNC(i128 %111)
%114 = call i64 @FUNC(i128 %113)
%115 = trunc i64 %114 to i32
%116 = inttoptr i64 %112 to i32*
store i32 %115, i32* %116, align 4
%indvars.iv.next36 = add nuw nsw i64 %indvars.iv35.reload, 1
%117 = load i32, i32* %73, align 8
%118 = add i32 %117, %sv_0.023.reload
%exitcond38 = icmp eq i64 %indvars.iv.next36, %wide.trip.count37
store i64 %indvars.iv.next36, i64* %indvars.iv35.reg2mem
store i128 %113, i128* %xmm0.025.reg2mem
store i32 %118, i32* %sv_0.023.reg2mem
store i32 %117, i32* %.reg2mem72
store i32 %117, i32* %.reg2mem74
store i32 %117, i32* %.reg2mem76
store i32 %117, i32* %.reg2mem78
store i32 %117, i32* %.reg2mem80
store i128 %113, i128* %xmm0.0.lcssa.reg2mem
br i1 %exitcond38, label LBL_15, label LBL_14
LBL_15:
%xmm0.0.lcssa.reload = load i128, i128* %xmm0.0.lcssa.reg2mem
%.reload81 = load i32, i32* %.reg2mem80
%.reload79 = load i32, i32* %.reg2mem78
%.reload77 = load i32, i32* %.reg2mem76
%.reload75 = load i32, i32* %.reg2mem74
%.reload73 = load i32, i32* %.reg2mem72
%119 = add i32 %storemerge528.reload, 1
%120 = zext i32 %.reload81 to i64
%121 = sext i32 %119 to i64
%122 = icmp slt i64 %121, %120
store i32 %.reload73, i32* %.reg2mem
store i32 %.reload75, i32* %.reg2mem64
store i32 %.reload77, i32* %.reg2mem66
store i32 %.reload79, i32* %.reg2mem68
store i32 %.reload81, i32* %.reg2mem70
store i32 %119, i32* %storemerge528.reg2mem
store i128 %xmm0.0.lcssa.reload, i128* %xmm0.127.reg2mem
store i32 %.reload73, i32* %.reg2mem82
store i32 %.reload75, i32* %.reg2mem84
store i32 %.reload77, i32* %.reg2mem86
store i32 %.reload79, i32* %.reg2mem88
store i128 %xmm0.0.lcssa.reload, i128* %xmm0.2.reg2mem
br i1 %122, label LBL_13, label LBL_17
LBL_16:
%storemerge622.reload = load i32, i32* %storemerge622.reg2mem
%123 = load i64, i64* %80, align 8
%124 = shl i32 %storemerge622.reload, %28
%125 = mul i32 %124, 2
%126 = sext i32 %125 to i64
%127 = add nsw i64 %126, %81
%128 = mul i64 %127, 4
%129 = add i64 %128, %123
%130 = inttoptr i64 %129 to i64*
%131 = call i64* @memset(i64* %130, i32 0, i32 %78)
%132 = add i32 %storemerge622.reload, 1
%133 = sext i32 %132 to i64
%134 = icmp sgt i64 %82, %133
store i32 %132, i32* %storemerge622.reg2mem
store i32 %30, i32* %.reg2mem82
store i32 %30, i32* %.reg2mem84
store i32 %30, i32* %.reg2mem86
store i32 %30, i32* %.reg2mem88
store i128 %20, i128* %xmm0.2.reg2mem
br i1 %134, label LBL_16, label LBL_17
LBL_17:
%xmm0.2.reload = load i128, i128* %xmm0.2.reg2mem
%.reload89 = load i32, i32* %.reg2mem88
%.reload85 = load i32, i32* %.reg2mem84
%.reload83 = load i32, i32* %.reg2mem82
%135 = icmp eq i32 %.reload89, 0
store i128 %xmm0.2.reload, i128* %xmm0.3.lcssa.reg2mem
br i1 %135, label LBL_20, label LBL_18
LBL_18:
%.reload87 = load i32, i32* %.reg2mem86
%136 = add i64 %4, 60
%137 = inttoptr i64 %136 to i32*
%138 = add i64 %4, 24
%139 = inttoptr i64 %138 to i64*
%140 = add i64 %4, 40
%141 = inttoptr i64 %140 to i64*
%142 = add i64 %4, 48
%143 = inttoptr i64 %142 to i64*
%144 = zext i32 %.reload87 to i64
store i32 0, i32* %storemerge419.reg2mem
br label LBL_19
LBL_19:
%storemerge419.reload = load i32, i32* %storemerge419.reg2mem
%145 = load i32, i32* %137, align 4
%146 = load i64, i64* %139, align 8
%147 = shl i32 %storemerge419.reload, %28
%148 = mul i32 %147, 2
%149 = sext i32 %148 to i64
%150 = mul i64 %149, 4
%151 = add i64 %150, %146
%152 = load i64, i64* %141, align 8
%153 = sext i32 %147 to i64
%154 = mul i64 %153, 4
%155 = add i64 %152, %154
%156 = load i64, i64* %143, align 8
%157 = call i128 @FUNC(i32 %145)
%158 = call i64 @FUNC(i64 %156, i64 %155, i64 %151)
%159 = add i32 %storemerge419.reload, 1
%160 = sext i32 %159 to i64
%161 = icmp slt i64 %160, %144
store i32 %159, i32* %storemerge419.reg2mem
store i128 %157, i128* %xmm0.3.lcssa.reg2mem
br i1 %161, label LBL_19, label LBL_20
LBL_20:
br i1 %72, label LBL_27, label LBL_21
LBL_21:
%162 = icmp eq i32 %.reload85, 0
br i1 %162, label LBL_26, label LBL_22
LBL_22:
%xmm0.3.lcssa.reload = load i128, i128* %xmm0.3.lcssa.reg2mem
%163 = add i64 %4, 32
%164 = inttoptr i64 %163 to i64*
%165 = icmp sgt i32 %arg3, 0
%wide.trip.count = zext i32 %arg3 to i64
store i32 %.reload83, i32* %.reg2mem90
store i32 0, i32* %storemerge317.reg2mem
store i128 %xmm0.3.lcssa.reload, i128* %xmm0.516.reg2mem
br label LBL_23
LBL_23:
%xmm0.516.reload = load i128, i128* %xmm0.516.reg2mem
%storemerge317.reload = load i32, i32* %storemerge317.reg2mem
%.reload91 = load i32, i32* %.reg2mem90
%166 = load i64, i64* %164, align 8
%167 = shl i32 %storemerge317.reload, %28
%168 = sext i32 %167 to i64
%169 = mul i64 %168, 4
%170 = add i64 %169, %166
store i64 0, i64* %indvars.iv.reg2mem
store i128 %xmm0.516.reload, i128* %xmm0.415.reg2mem
store i32 %storemerge317.reload, i32* %sv_0.113.reg2mem
store i32 %.reload91, i32* %.reg2mem92
store i128 %xmm0.516.reload, i128* %xmm0.4.lcssa.reg2mem
br i1 %165, label LBL_24, label LBL_25
LBL_24:
%sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem
%xmm0.415.reload = load i128, i128* %xmm0.415.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%171 = sext i32 %sv_0.113.reload to i64
%172 = mul i64 %171, 2
%173 = add i64 %172, %70
%174 = inttoptr i64 %173 to i16*
%175 = load i16, i16* %174, align 2
%176 = sext i16 %175 to i32
%177 = call i128 @FUNC(i128 %xmm0.415.reload, i128 %xmm0.415.reload)
%178 = call i128 @FUNC(i32 %176)
%179 = call i128 @FUNC(i64 4674736413210574848)
%180 = call i128 @FUNC(i128 %178)
%181 = call i128 @FUNC(i128 %180, i128 %179)
%182 = mul i64 %indvars.iv.reload, 4
%183 = add i64 %182, %9
%184 = inttoptr i64 %183 to i32*
%185 = load i32, i32* %184, align 4
%186 = call i128 @__asm_movss.1(i32 %185)
%187 = call i128 @FUNC(i128 %186)
%188 = call i128 @FUNC(i128 %187, i128 %181)
%189 = call i128 @FUNC(i128 %181, i128 %181)
%190 = call i128 @__asm_cvtss2sd.2(i32 %71)
%191 = call i128 @FUNC(i128 %188, i128 %190)
%192 = add i64 %170, %182
%193 = call i128 @FUNC(i128 %191)
%194 = call i64 @FUNC(i128 %193)
%195 = trunc i64 %194 to i32
%196 = inttoptr i64 %192 to i32*
store i32 %195, i32* %196, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%197 = load i32, i32* %73, align 8
%198 = add i32 %197, %sv_0.113.reload
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i128 %193, i128* %xmm0.415.reg2mem
store i32 %198, i32* %sv_0.113.reg2mem
store i32 %197, i32* %.reg2mem92
store i128 %193, i128* %xmm0.4.lcssa.reg2mem
br i1 %exitcond, label LBL_25, label LBL_24
LBL_25:
%xmm0.4.lcssa.reload = load i128, i128* %xmm0.4.lcssa.reg2mem
%.reload93 = load i32, i32* %.reg2mem92
%199 = add i32 %storemerge317.reload, 1
%200 = zext i32 %.reload93 to i64
%201 = sext i32 %199 to i64
%202 = icmp slt i64 %201, %200
store i32 %.reload93, i32* %.reg2mem90
store i32 %199, i32* %storemerge317.reg2mem
store i128 %xmm0.4.lcssa.reload, i128* %xmm0.516.reg2mem
br i1 %202, label LBL_23, label LBL_26
LBL_26:
store i32 1, i32* %23, align 4
store i64 1, i64* %storemerge2.reg2mem
br label LBL_28
LBL_27:
store i32 0, i32* %23, align 4
store i64 1, i64* %storemerge2.reg2mem
br label LBL_28
LBL_28:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i32 %.reload93, { 1, 0 }
uselistorder i128 %181, { 2, 1, 0 }
uselistorder i128 %xmm0.415.reload, { 1, 0 }
uselistorder i32 %sv_0.113.reload, { 1, 0 }
uselistorder i32 %storemerge317.reload, { 2, 0, 1 }
uselistorder i32 %147, { 1, 0 }
uselistorder i32 %storemerge419.reload, { 1, 0 }
uselistorder i32 %storemerge622.reload, { 1, 0 }
uselistorder i32 %.reload81, { 1, 0 }
uselistorder i128 %98, { 2, 1, 0 }
uselistorder i128 %xmm0.025.reload, { 1, 0 }
uselistorder i32 %sv_0.023.reload, { 1, 0 }
uselistorder i32 %storemerge528.reload, { 2, 0, 1 }
uselistorder i32 %71, { 1, 0 }
uselistorder i32 %storemerge831.reload, { 1, 0 }
uselistorder i32 %storemerge732.reload, { 1, 0 }
uselistorder i1 %32, { 0, 1, 3, 2 }
uselistorder i32 %29, { 3, 5, 0, 4, 1, 2 }
uselistorder i32 %28, { 1, 2, 4, 3, 6, 5, 0 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32* %23, { 1, 0, 2 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %4, { 3, 7, 6, 5, 4, 8, 2, 9, 1, 0, 10, 11, 12 }
uselistorder i64 %2, { 2, 3, 1, 0 }
uselistorder i32* %storemerge732.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge831.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem64, { 1, 0, 2 }
uselistorder i32* %.reg2mem66, { 1, 0, 2 }
uselistorder i32* %.reg2mem68, { 1, 0, 2 }
uselistorder i32* %.reg2mem70, { 1, 0, 2 }
uselistorder i32* %storemerge528.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.127.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv35.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm0.025.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.023.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge622.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem82, { 0, 2, 1 }
uselistorder i32* %.reg2mem84, { 0, 2, 1 }
uselistorder i32* %.reg2mem86, { 0, 2, 1 }
uselistorder i32* %.reg2mem88, { 0, 2, 1 }
uselistorder i128* %xmm0.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge419.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem90, { 1, 0, 2 }
uselistorder i32* %storemerge317.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.516.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm0.415.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.113.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 1, 0, 3, 2 }
uselistorder i64 4674736413210574848, { 1, 0, 2 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i32 0, { 15, 0, 8, 9, 1, 10, 14, 2, 3, 7, 12, 13, 4, 5, 6, 16, 11 }
uselistorder i32 32, { 1, 0 }
uselistorder i32 %arg3, { 2, 4, 1, 3, 5, 0 }
uselistorder label LBL_28, { 2, 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_26, { 0, 2, 1 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 3, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | i2c_create_slave_3539 | i2c_create_slave | define i64 @FUNC(i32* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8 %arg3)
%3 = call i64 @FUNC(i64 %1)
ret i64 %1
} | 0 |
BinRealVul | seq_parse_frame_data_17169 | seq_parse_frame_data | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%indvars.iv.next.pre-phi.reg2mem = alloca i64
%indvars.iv10.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv12.reg2mem = alloca i64
%indvars.iv15.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = load i32, i32* %1
%sv_0 = alloca i64, align 8
%6 = ptrtoint i64* %sv_0 to i64
%7 = trunc i64 %2 to i32
%8 = add i32 %7, 1024
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = and i64 %2, 4294967295
%11 = call i64 @FUNC(i64 %3, i64 %10, i64 0)
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = add i64 %4, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = icmp eq i32 %13, 0
%17 = add i64 %4, 8
%18 = inttoptr i64 %17 to i32*
%. = select i1 %16, i32 0, i32 1024
store i32 %., i32* %18, align 4
%19 = call i64 @FUNC(i64 %3)
%20 = trunc i64 %19 to i32
%21 = add i64 %4, 12
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = icmp eq i32 %20, 0
%24 = add i64 %4, 16
%25 = inttoptr i64 %24 to i32*
%storemerge5 = select i1 %23, i32 0, i32 768
store i32 %storemerge5, i32* %25, align 4
%26 = add i64 %6, -48
store i64 0, i64* %indvars.iv15.reg2mem
br label LBL_1
LBL_1:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%27 = call i64 @FUNC(i64 %3)
%28 = trunc i64 %27 to i32
%29 = urem i32 %28, 256
%30 = mul i64 %indvars.iv15.reload, 4
%31 = add i64 %30, %26
%32 = inttoptr i64 %31 to i32*
store i32 %29, i32* %32, align 4
%indvars.iv.next16 = add nuw nsw i64 %indvars.iv15.reload, 1
%exitcond17 = icmp eq i64 %indvars.iv.next16, 4
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
br i1 %exitcond17, label LBL_2, label LBL_1
LBL_2:
%33 = add i64 %6, -32
store i64 0, i64* %indvars.iv12.reg2mem
br label LBL_3
LBL_3:
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%34 = call i64 @FUNC(i64 %3)
%35 = trunc i64 %34 to i32
%36 = mul i64 %indvars.iv12.reload, 4
%37 = add i64 %36, %33
%38 = inttoptr i64 %37 to i32*
store i32 %35, i32* %38, align 4
%indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1
%exitcond14 = icmp eq i64 %indvars.iv.next13, 4
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond14, label LBL_4, label LBL_3
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%39 = mul i64 %indvars.iv.reload, 4
%40 = add i64 %39, %33
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
store i64 %indvars.iv.reload, i64* %indvars.iv10.reg2mem
br i1 %43, label LBL_4.LBL_9_crit_edge, label LBL_6
LBL_5:
%.pre = add nuw nsw i64 %indvars.iv.reload, 1
store i64 %.pre, i64* %indvars.iv.next.pre-phi.reg2mem
br label LBL_9
LBL_6:
%indvars.iv10.reload = load i64, i64* %indvars.iv10.reg2mem
%indvars.iv.next11 = add nuw nsw i64 %indvars.iv10.reload, 1
%44 = icmp ugt i64 %indvars.iv10.reload, 2
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%45 = mul i64 %indvars.iv.next11, 4
%46 = add i64 %45, %33
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
store i64 %indvars.iv.next11, i64* %indvars.iv10.reg2mem
br i1 %49, label LBL_6, label LBL_8
LBL_8:
%sext = mul i64 %indvars.iv.next11, 4294967296
%50 = ashr exact i64 %sext, 30
%51 = add i64 %50, %33
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = sub i32 %53, %42
%55 = add nuw nsw i64 %indvars.iv.reload, 1
%56 = mul i64 %55, 4
%57 = add i64 %56, %26
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = zext i32 %54 to i64
%61 = call i64 @FUNC(i64 %4, i64 %3, i32 %59, i32 %42, i64 %60)
store i64 %55, i64* %indvars.iv.next.pre-phi.reg2mem
br label LBL_9
LBL_9:
%indvars.iv.next.pre-phi.reload = load i64, i64* %indvars.iv.next.pre-phi.reg2mem
%exitcond = icmp eq i64 %indvars.iv.next.pre-phi.reload, 3
store i64 %indvars.iv.next.pre-phi.reload, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_10, label LBL_4
LBL_10:
%62 = icmp eq i32 %5, 255
br i1 %62, label LBL_12, label LBL_11
LBL_11:
%63 = zext i32 %5 to i64
%64 = mul i64 %63, 16
%65 = add i64 %4, 32
%66 = add i64 %65, %64
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = add i64 %4, 20
%70 = inttoptr i64 %69 to i32*
store i32 %68, i32* %70, align 4
%71 = add i64 %66, 8
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = add i64 %4, 24
%75 = inttoptr i64 %74 to i64*
store i64 %73, i64* %75, align 8
store i32 0, i32* %67, align 4
br label LBL_13
LBL_12:
%76 = add i64 %4, 20
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = add i64 %4, 24
%79 = inttoptr i64 %78 to i64*
store i64 0, i64* %79, align 8
br label LBL_13
LBL_13:
ret i64 0
uselistorder i64 %indvars.iv.next.pre-phi.reload, { 1, 0 }
uselistorder i64 %indvars.iv.next11, { 1, 0, 2 }
uselistorder i64 %indvars.iv10.reload, { 1, 0 }
uselistorder i32 %42, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 1, 2, 0, 3 }
uselistorder i64 %4, { 3, 4, 1, 2, 0, 5, 6, 7, 8, 9 }
uselistorder i64 %3, { 0, 1, 2, 3, 5, 4 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv10.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 3, 4, 0, 2, 1 }
uselistorder i32 0, { 2, 5, 3, 4, 0, 6, 1, 7 }
uselistorder i64 4, { 0, 1, 2, 6, 3, 5, 4, 7 }
uselistorder i64 (i64)* @get_le16, { 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | imap_parse_url_path_10967 | imap_parse_url_path | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = add i64 %2, 8
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
%7 = select i1 %6, i64 %2, i64 ptrtoint ([6 x i8]* @gv_0 to i64)
%8 = call i64 @FUNC(i64 %2, i64 %7, i64 0, i64* nonnull %sv_0)
%9 = inttoptr i64 %3 to i64*
store i64 %8, i64* %9, align 8
%10 = icmp eq i64 %8, 0
%storemerge = zext i1 %10 to i64
ret i64 %storemerge
uselistorder i64 %2, { 1, 0, 2 }
} | 1 |
BinRealVul | print_int32_14633 | print_int32 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) 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)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = bitcast i64* %arg3 to i8*
%7 = trunc i64 %arg4 to i32
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %6, i32 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %5)
%9 = sext i32 %8 to i64
ret i64 %9
} | 1 |
BinRealVul | eval_refl_308 | eval_refl | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i32
%sv_1.210.reg2mem = alloca i32
%indvars.iv15.reg2mem = alloca i64
%indvars.iv17.reg2mem = alloca i64
%indvars.iv19.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%5 = ptrtoint i64* %sv_4 to i64
%6 = add i64 %5, -144
store i64 0, i64* %indvars.iv19.reg2mem
br label LBL_1
LBL_1:
%indvars.iv19.reload = load i64, i64* %indvars.iv19.reg2mem
%7 = mul i64 %indvars.iv19.reload, 2
%8 = add i64 %7, %4
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = sext i16 %10 to i32
%12 = mul i64 %indvars.iv19.reload, 4
%13 = add i64 %6, %12
%14 = inttoptr i64 %13 to i32*
store i32 %11, i32* %14, align 4
%indvars.iv.next20 = add nuw nsw i64 %indvars.iv19.reload, 1
%exitcond21 = icmp eq i64 %indvars.iv.next20, 10
store i64 %indvars.iv.next20, i64* %indvars.iv19.reg2mem
br i1 %exitcond21, label LBL_2, label LBL_1
LBL_2:
%15 = ptrtoint i64* %arg2 to i64
%16 = add i64 %15, 36
%17 = ptrtoint i64* %sv_2 to i64
%18 = add i64 %17, 36
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = inttoptr i64 %16 to i32*
store i32 %20, i32* %21, align 4
%22 = add i32 %20, 4096
%23 = icmp ult i32 %22, 8192
br i1 %23, label LBL_3, label LBL_4
LBL_3:
%24 = bitcast i64* %sv_3 to i32*
%25 = bitcast i64* %sv_2 to i32*
%26 = ptrtoint i64* %sv_3 to i64
store i64 8, i64* %indvars.iv17.reg2mem
store i64 9, i64* %indvars.iv15.reg2mem
store i32 %20, i32* %sv_1.210.reg2mem
store i32 0, i32* %sv_0.19.reg2mem
br label LBL_5
LBL_4:
%27 = ptrtoint i64* %arg3 to i64
%28 = call i64 @FUNC(i64 %27, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 1, i64* %storemerge.reg2mem
br label LBL_9
LBL_5:
%sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem
%sv_1.210.reload = load i32, i32* %sv_1.210.reg2mem
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%indvars.iv17.reload = load i64, i64* %indvars.iv17.reg2mem
%29 = icmp eq i32 %sv_1.210.reload, 4096
%30 = zext i1 %29 to i32
%spec.select = add i32 %sv_1.210.reload, %30
%31 = icmp eq i32 %spec.select, -4096
%32 = sext i1 %31 to i32
%sv_1.1 = add i32 %spec.select, %32
%33 = mul i32 %sv_1.1, %sv_1.1
%34 = udiv i32 %33, 4096
%35 = sub nsw i32 4096, %34
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i32
%spec.select6 = add nsw i32 %35, %37
%38 = mul i64 %indvars.iv17.reload, 4
%39 = add i64 %38, %15
%40 = add i64 %39, 4
%41 = inttoptr i64 %40 to i32*
%42 = udiv i32 16777216, %spec.select6
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%43 = mul i64 %indvars.iv.reload, 4
%44 = add i64 %43, %17
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = load i32, i32* %41, align 4
%48 = sub nsw i64 %indvars.iv17.reload, %indvars.iv.reload
%49 = mul i64 %48, 4
%50 = and i64 %49, 17179869180
%51 = add i64 %50, %17
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = mul i32 %53, %47
%55 = ashr i32 %54, 12
%56 = sub i32 %46, %55
%57 = mul i32 %56, %42
%58 = add i64 %43, %26
%59 = ashr i32 %57, 12
%60 = inttoptr i64 %58 to i32*
store i32 %59, i32* %60, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %indvars.iv15.reload
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%61 = add i64 %38, %26
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = inttoptr i64 %39 to i32*
store i32 %63, i32* %64, align 4
%65 = add i32 %63, 4096
%66 = icmp ult i32 %65, 8192
%spec.select7 = select i1 %66, i32 %sv_0.19.reload, i32 1
%67 = load i32, i32* %24, align 8
%68 = load i32, i32* %25, align 8
store i32 %68, i32* %24, align 8
store i32 %67, i32* %25, align 8
%indvars.iv.next18 = add nsw i64 %indvars.iv17.reload, -1
%69 = icmp eq i64 %indvars.iv17.reload, 0
%70 = icmp eq i1 %69, false
%indvars.iv.next16 = add nsw i64 %indvars.iv15.reload, -1
store i64 %indvars.iv.next18, i64* %indvars.iv17.reg2mem
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
store i32 %63, i32* %sv_1.210.reg2mem
store i32 %spec.select7, i32* %sv_0.19.reg2mem
br i1 %70, label LBL_5, label LBL_8
LBL_8:
%71 = zext i32 %spec.select7 to i64
store i64 %71, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %spec.select7, { 1, 0 }
uselistorder i64 %43, { 1, 0 }
uselistorder i64 %38, { 1, 0 }
uselistorder i32 %sv_1.1, { 1, 0 }
uselistorder i64 %indvars.iv17.reload, { 2, 0, 1, 3 }
uselistorder i32 %sv_1.210.reload, { 1, 0 }
uselistorder i32* %25, { 1, 0 }
uselistorder i32* %24, { 1, 0 }
uselistorder i64 %indvars.iv19.reload, { 0, 2, 1 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64* %indvars.iv19.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv17.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.210.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.19.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 4096, { 3, 2, 0, 1, 4 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 4, { 0, 1, 4, 2, 3 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | hashtable_clear_12152 | hashtable_clear | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = icmp eq i64 %2, 0
%.pre = add i64 %0, 16
store i64 0, i64* %storemerge1.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = mul i64 %storemerge1.reload, 16
%5 = add i64 %4, %0
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
store i64 %.pre, i64* %7, align 8
%8 = inttoptr i64 %5 to i64*
store i64 %.pre, i64* %8, align 8
%9 = add nuw i64 %storemerge1.reload, 1
%10 = call i64 @FUNC(i64 %0)
%11 = icmp ult i64 %9, %10
store i64 %9, i64* %storemerge1.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %.pre)
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
ret i64 %0
uselistorder i64 %.pre, { 0, 2, 1 }
uselistorder i64 %0, { 4, 3, 5, 0, 1, 2, 6 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | sctp_auto_asconf_init_13129 | sctp_auto_asconf_init | 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 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %1, 24
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %1, 8
%8 = add i64 %0, 16
%9 = call i64 @FUNC(i64 %8, i64 %7)
%10 = call i64 @FUNC(i64 %5)
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 1, 3 }
} | 1 |
BinRealVul | find_high_bit_12707 | find_high_bit | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge2.reg2mem = alloca i64
%storemerge35.reg2mem = alloca i32
%0 = trunc i64 %arg1 to i32
store i32 31, i32* %storemerge35.reg2mem
br label LBL_1
LBL_1:
%storemerge35.reload = load i32, i32* %storemerge35.reg2mem
%1 = urem i32 %storemerge35.reload, 32
%2 = shl i32 1, %1
%3 = and i32 %2, %0
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = zext i32 %storemerge35.reload to i64
store i64 %5, i64* %storemerge2.reg2mem
br label LBL_4
LBL_3:
%6 = add nsw i32 %storemerge35.reload, -1
%7 = icmp eq i32 %storemerge35.reload, 0
%8 = icmp eq i1 %7, false
store i32 %6, i32* %storemerge35.reg2mem
store i64 0, i64* %storemerge2.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i32 %storemerge35.reload, { 2, 0, 1, 3 }
uselistorder i32* %storemerge35.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | get_inbuf_12379 | get_inbuf | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = bitcast i32* %sv_0 to i64*
%6 = call i64 @FUNC(i64 %4, i64* nonnull %5)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = inttoptr i64 %6 to i32*
%9 = load i32, i32* %sv_0, align 4
store i32 %9, i32* %8, align 4
%10 = add i64 %6, 4
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = load i32, i32* %sv_0, align 4
%16 = add i32 %15, %14
store i32 %16, i32* %13, align 4
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | ff_er_add_slice_2030 | ff_er_add_slice | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi9.reg2mem = alloca i64*
%indvars.iv.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i32 %5, -1
%7 = zext i32 %6 to i64
%8 = mul i64 %1, %arg3
%9 = add i64 %8, %arg2
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 0, i64 %7)
%12 = trunc i64 %11 to i32
%13 = load i32, i32* %4, align 4
%14 = mul i64 %1, %arg5
%15 = add i64 %14, %arg4
%16 = and i64 %15, 4294967295
%17 = zext i32 %13 to i64
%18 = call i64 @FUNC(i64 %16, i64 0, i64 %17)
%19 = trunc i64 %18 to i32
%20 = add i64 %2, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%sext4 = mul i64 %11, 4294967296
%23 = ashr exact i64 %sext4, 30
%24 = add i64 %22, %23
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%sext5 = mul i64 %18, 4294967296
%27 = ashr exact i64 %sext5, 30
%28 = add i64 %27, %22
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp sgt i32 %12, %19
%32 = icmp slt i32 %30, %26
%or.cond = or i1 %31, %32
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%33 = add i64 %2, 32
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %35, i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %arg5, i64 %arg6)
store i64 %36, i64* %rax.0.reg2mem
br label LBL_24
LBL_2:
%37 = add i64 %2, 12
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %39, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %40, label LBL_24, label LBL_3
LBL_3:
%41 = urem i64 %arg6, 4
%42 = icmp eq i64 %41, 0
store i32 -65, i32* %sv_0.0.reg2mem
br i1 %42, label LBL_5, label LBL_4
LBL_4:
%43 = add i64 %2, 8
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = sub i32 0, %19
%47 = sub i32 %46, 1
%48 = add i32 %47, %12
%49 = add i32 %48, %45
store i32 %49, i32* %44, align 4
store i32 -68, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%50 = and i64 %arg6, 12
%51 = icmp eq i64 %50, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %51, label LBL_7, label LBL_6
LBL_6:
%52 = and i32 %sv_0.0.reload, -77
%53 = add i64 %2, 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = sub i32 0, %19
%57 = sub i32 %56, 1
%58 = add i32 %57, %12
%59 = add i32 %58, %55
store i32 %59, i32* %54, align 4
store i32 %52, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%60 = and i64 %arg6, 48
%61 = icmp eq i64 %60, 0
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %61, label LBL_9, label LBL_8
LBL_8:
%62 = and i32 %sv_0.1.reload, -49
%63 = add i64 %2, 8
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = sub i32 0, %19
%67 = sub i32 %66, 1
%68 = add i32 %67, %12
%69 = add i32 %68, %65
store i32 %69, i32* %64, align 4
store i32 %62, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_9:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%70 = and i64 %arg6, 21
%71 = icmp eq i64 %70, 0
br i1 %71, label LBL_11, label LBL_10
LBL_10:
%72 = add i64 %2, 8
%73 = inttoptr i64 %72 to i32*
store i32 2147483647, i32* %73, align 4
br label LBL_11
LBL_11:
%74 = icmp eq i32 %sv_0.2.reload, -128
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_12, label LBL_14
LBL_12:
%76 = icmp sgt i32 %30, %26
br i1 %76, label LBL_13, label LBL_16
LBL_13:
%77 = add i64 %2, 16
%78 = inttoptr i64 %77 to i64*
%79 = trunc i32 %sv_0.2.reload to i8
%80 = sext i32 %26 to i64
%wide.trip.count = sext i32 %30 to i64
store i64 %80, i64* %indvars.iv.reg2mem
br label LBL_15
LBL_14:
%81 = sub i32 %30, %26
%82 = add i64 %2, 16
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = sext i32 %26 to i64
%86 = add i64 %84, %85
%87 = inttoptr i64 %86 to i64*
%88 = call i64* @memset(i64* %87, i32 0, i32 %81)
br label LBL_16
LBL_15:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%89 = load i64, i64* %78, align 8
%90 = add i64 %89, %indvars.iv.reload
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 1
%93 = and i8 %92, %79
store i8 %93, i8* %91, align 1
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_16, label LBL_15
LBL_16:
%94 = load i32, i32* %4, align 4
%95 = icmp eq i32 %94, %19
%96 = icmp eq i1 %95, false
br i1 %96, label LBL_18, label LBL_17
LBL_17:
%97 = add i64 %2, 8
%98 = inttoptr i64 %97 to i32*
store i32 2147483647, i32* %98, align 4
%.pre = add i64 %2, 16
%.pre8 = inttoptr i64 %.pre to i64*
store i64* %.pre8, i64** %.pre-phi9.reg2mem
br label LBL_19
LBL_18:
%99 = add i64 %2, 16
%100 = inttoptr i64 %99 to i64*
%101 = load i64, i64* %100, align 8
%102 = sext i32 %30 to i64
%103 = add i64 %101, %102
%104 = inttoptr i64 %103 to i8*
%105 = load i8, i8* %104, align 1
%106 = trunc i32 %sv_0.2.reload to i8
%107 = and i8 %105, %106
store i8 %107, i8* %104, align 1
%108 = load i64, i64* %100, align 8
%109 = add i64 %108, %102
%110 = inttoptr i64 %109 to i8*
%111 = load i8, i8* %110, align 1
%112 = trunc i64 %arg6 to i8
%113 = or i8 %111, %112
store i8 %113, i8* %110, align 1
store i64* %100, i64** %.pre-phi9.reg2mem
br label LBL_19
LBL_19:
%.pre-phi9.reload = load i64*, i64** %.pre-phi9.reg2mem
%114 = load i64, i64* %.pre-phi9.reload, align 8
%115 = sext i32 %26 to i64
%116 = add i64 %114, %115
%117 = inttoptr i64 %116 to i8*
%118 = load i8, i8* %117, align 1
%119 = or i8 %118, 64
store i8 %119, i8* %117, align 1
%120 = icmp slt i32 %26, 1
store i64 %116, i64* %rax.0.reg2mem
br i1 %120, label LBL_24, label LBL_20
LBL_20:
%121 = add i64 %2, 32
%122 = inttoptr i64 %121 to i64*
%123 = load i64, i64* %122, align 8
%124 = inttoptr i64 %123 to i32*
%125 = load i32, i32* %124, align 4
%126 = zext i32 %125 to i64
%127 = icmp sgt i32 %125, 1
store i64 %126, i64* %rax.0.reg2mem
br i1 %127, label LBL_24, label LBL_21
LBL_21:
%128 = bitcast i64* %rdi to i32*
%129 = add i64 %123, 4
%130 = inttoptr i64 %129 to i32*
%131 = load i32, i32* %130, align 4
%132 = load i32, i32* %128, align 8
%133 = mul i32 %132, %131
%134 = zext i32 %133 to i64
%135 = ashr exact i64 %sext4, 32
%136 = icmp sgt i64 %135, %134
store i64 %134, i64* %rax.0.reg2mem
br i1 %136, label LBL_22, label LBL_24
LBL_22:
%137 = load i64, i64* %.pre-phi9.reload, align 8
%138 = load i64, i64* %21, align 8
%139 = add nsw i64 %23, -4
%140 = add i64 %139, %138
%141 = inttoptr i64 %140 to i32*
%142 = load i32, i32* %141, align 4
%143 = sext i32 %142 to i64
%144 = add i64 %137, %143
%145 = inttoptr i64 %144 to i8*
%146 = load i8, i8* %145, align 1
%147 = zext i8 %146 to i64
%148 = and i8 %146, -65
%149 = icmp eq i8 %148, 42
store i64 %147, i64* %rax.0.reg2mem
br i1 %149, label LBL_24, label LBL_23
LBL_23:
%150 = add i64 %2, 8
%151 = inttoptr i64 %150 to i32*
store i32 2147483647, i32* %151, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.2.reload, { 2, 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %30, { 4, 3, 0, 1, 2 }
uselistorder i32 %26, { 5, 6, 4, 3, 0, 1, 2 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %sext4, { 1, 0 }
uselistorder i32 %19, { 3, 0, 1, 2, 4 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %2, { 0, 7, 8, 10, 1, 9, 6, 11, 5, 4, 3, 2, 12, 13, 14, 15 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi9.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4, 5, 6, 7 }
uselistorder i64 32, { 0, 3, 4, 1, 2 }
uselistorder i64 (i64, i64, i64)* @clip, { 1, 0 }
uselistorder i64 %arg6, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 %arg5, { 1, 0 }
uselistorder label LBL_24, { 2, 3, 1, 4, 5, 0, 6 }
uselistorder label LBL_16, { 0, 2, 1 }
} | 0 |
BinRealVul | e820_add_entry_14846 | e820_add_entry | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%sext = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = load i32, i32* @gv_0, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i32 %0, 1
br i1 %5, label LBL_0.LBL_4_crit_edge, label LBL_2
LBL_1:
%.pre = and i64 %1, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_2:
%6 = trunc i64 %4 to i32
%7 = icmp slt i32 %6, 128
store i64 4294967280, i64* %storemerge.reg2mem
br i1 %7, label LBL_3, label LBL_5
LBL_3:
%8 = add i64 %4, 1
%sext2 = mul i64 %4, 4294967296
%9 = ashr exact i64 %sext2, 32
%10 = mul nsw i64 %9, 24
%11 = add i64 %10, ptrtoint (i64* @gv_1 to i64)
%12 = call i64 @FUNC(i64 %arg1)
%13 = inttoptr i64 %11 to i64*
store i64 %12, i64* %13, align 8
%14 = call i64 @FUNC(i64 %arg2)
%15 = add i64 %10, add (i64 ptrtoint (i64* @gv_1 to i64), i64 8)
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = and i64 %1, 4294967295
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = add i64 %10, add (i64 ptrtoint (i64* @gv_1 to i64), i64 16)
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 8
%22 = and i64 %8, 4294967295
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
store i32 %24, i32* @gv_0, align 4
store i64 %17, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%25 = load i64, i64* @gv_2, align 8
%26 = call i64 @FUNC(i64 %25, i64 shl (i64 add (i64 add (i64 sext (i32 ptrtoint (i32* @gv_3 to i32) to i64), i64 sext (i32 ptrtoint (i32* @gv_3 to i32) to i64)), i64 sext (i32 ptrtoint (i32* @gv_3 to i32) to i64)), i64 3))
store i64 %26, i64* @gv_2, align 8
%27 = load i32, i32* @gv_4, align 4
%28 = sext i32 %27 to i64
%29 = mul nsw i64 %28, 24
%30 = add i64 %29, %26
%31 = call i64 @FUNC(i64 %arg1)
%32 = inttoptr i64 %30 to i64*
store i64 %31, i64* %32, align 8
%33 = load i64, i64* @gv_2, align 8
%34 = load i32, i32* @gv_4, align 4
%35 = sext i32 %34 to i64
%36 = mul nsw i64 %35, 24
%37 = call i64 @FUNC(i64 %arg2)
%38 = add i64 %33, 8
%39 = add i64 %38, %36
%40 = inttoptr i64 %39 to i64*
store i64 %37, i64* %40, align 8
%41 = load i64, i64* @gv_2, align 8
%42 = load i32, i32* @gv_4, align 4
%43 = sext i32 %42 to i64
%44 = mul nsw i64 %43, 24
%45 = call i64 @FUNC(i64 %.pre-phi.reload)
%46 = trunc i64 %45 to i32
%47 = add i64 %41, 16
%48 = add i64 %47, %44
%49 = inttoptr i64 %48 to i32*
store i32 %46, i32* %49, align 4
store i32 ptrtoint (i32* @gv_3 to i32), i32* @gv_4, align 4
store i64 zext (i32 ptrtoint (i32* @gv_3 to i32) to i64), i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* @gv_4, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @cpu_to_le32, { 2, 1, 0 }
uselistorder i64 (i64)* @cpu_to_le64, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0, 3, 4 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | find_line_8925 | find_line | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i8* %arg5) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i64
%storemerge4.in.reg2mem = alloca i64
%storemerge5.in.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp ult i64 %0, %arg2
%2 = icmp eq i1 %1, false
store i64 %0, i64* %sv_0.18.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_20, label LBL_19
LBL_1:
%3 = inttoptr i64 %sv_0.18.reload to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 35
br i1 %5, label LBL_18, label LBL_2
LBL_2:
%6 = icmp ult i64 %sv_0.18.reload, %arg2
%7 = icmp eq i1 %6, false
store i64 %sv_0.18.reload, i64* %sv_0.06.reg2mem
store i64 %sv_0.18.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %7, label LBL_5, label LBL_4
LBL_3:
%8 = add i64 %sv_0.06.reload, 1
%9 = icmp ult i64 %8, %arg2
%10 = icmp eq i1 %9, false
store i64 %8, i64* %sv_0.06.reg2mem
store i64 %8, i64* %sv_0.0.lcssa.reg2mem
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%11 = call i16** @__ctype_b_loc()
%12 = load i16*, i16** %11, align 8
%13 = ptrtoint i16* %12 to i64
%14 = inttoptr i64 %sv_0.06.reload to i8*
%15 = load i8, i8* %14, align 1
%16 = sext i8 %15 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %13
%19 = inttoptr i64 %18 to i16*
%20 = load i16, i16* %19, align 2
%21 = urem i16 %20, 2
%22 = icmp eq i16 %21, 0
%23 = icmp eq i1 %22, false
store i64 %sv_0.06.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %23, label LBL_3, label LBL_5
LBL_5:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%24 = call i64 @FUNC(i64 %sv_0.0.lcssa.reload, i64 %arg2)
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_18, label LBL_6
LBL_6:
%26 = sub i64 %24, %sv_0.0.lcssa.reload
%27 = call i32 @strlen(i8* %arg3)
%28 = sext i32 %27 to i64
%29 = icmp eq i64 %26, %28
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_18, label LBL_7
LBL_7:
%31 = call i32 @strlen(i8* %arg3)
%32 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
%33 = call i32 @strncmp(i8* %32, i8* %arg3, i32 %31)
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %24, i64* %storemerge5.in.reg2mem
br i1 %35, label LBL_18, label LBL_8
LBL_8:
%storemerge5.in.reload = load i64, i64* %storemerge5.in.reg2mem
%storemerge5 = add i64 %storemerge5.in.reload, 1
%36 = icmp ult i64 %storemerge5, %arg2
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = call i16** @__ctype_b_loc()
%39 = load i16*, i16** %38, align 8
%40 = ptrtoint i16* %39 to i64
%41 = inttoptr i64 %storemerge5 to i8*
%42 = load i8, i8* %41, align 1
%43 = sext i8 %42 to i64
%44 = mul i64 %43, 2
%45 = add i64 %44, %40
%46 = inttoptr i64 %45 to i16*
%47 = load i16, i16* %46, align 2
%48 = urem i16 %47, 2
%49 = icmp eq i16 %48, 0
%50 = icmp eq i1 %49, false
store i64 %storemerge5, i64* %storemerge5.in.reg2mem
br i1 %50, label LBL_8, label LBL_10
LBL_10:
%51 = call i64 @FUNC(i64 %storemerge5, i64 %arg2)
%52 = icmp eq i64 %51, 0
br i1 %52, label LBL_18, label LBL_11
LBL_11:
%53 = sub i64 %51, %storemerge5
%54 = call i32 @strlen(i8* %arg4)
%55 = sext i32 %54 to i64
%56 = icmp eq i64 %53, %55
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_18, label LBL_12
LBL_12:
%58 = call i32 @strlen(i8* %arg4)
%59 = inttoptr i64 %storemerge5 to i8*
%60 = call i32 @strncmp(i8* %59, i8* %arg4, i32 %58)
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 %51, i64* %storemerge4.in.reg2mem
br i1 %62, label LBL_18, label LBL_13
LBL_13:
%storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem
%storemerge4 = add i64 %storemerge4.in.reload, 1
%63 = icmp ult i64 %storemerge4, %arg2
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_15, label LBL_14
LBL_14:
%65 = call i16** @__ctype_b_loc()
%66 = load i16*, i16** %65, align 8
%67 = ptrtoint i16* %66 to i64
%68 = inttoptr i64 %storemerge4 to i8*
%69 = load i8, i8* %68, align 1
%70 = sext i8 %69 to i64
%71 = mul i64 %70, 2
%72 = add i64 %71, %67
%73 = inttoptr i64 %72 to i16*
%74 = load i16, i16* %73, align 2
%75 = urem i16 %74, 2
%76 = icmp eq i16 %75, 0
%77 = icmp eq i1 %76, false
store i64 %storemerge4, i64* %storemerge4.in.reg2mem
br i1 %77, label LBL_13, label LBL_15
LBL_15:
%78 = call i64 @FUNC(i64 %storemerge4, i64 %arg2)
%79 = icmp eq i64 %78, 0
br i1 %79, label LBL_18, label LBL_16
LBL_16:
%80 = sub i64 %78, %storemerge4
%81 = call i32 @strlen(i8* %arg5)
%82 = sext i32 %81 to i64
%83 = icmp eq i64 %80, %82
%84 = icmp eq i1 %83, false
br i1 %84, label LBL_18, label LBL_17
LBL_17:
%85 = call i32 @strlen(i8* %arg5)
%86 = inttoptr i64 %storemerge4 to i8*
%87 = call i32 @strncmp(i8* %86, i8* %arg5, i32 %85)
%88 = icmp eq i32 %87, 0
%89 = icmp eq i1 %88, false
store i64 %sv_0.18.reload, i64* %storemerge.reg2mem
br i1 %89, label LBL_18, label LBL_20
LBL_18:
%90 = add i64 %93, 1
%91 = icmp ult i64 %90, %arg2
%92 = icmp eq i1 %91, false
store i64 %90, i64* %sv_0.18.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %92, label LBL_20, label LBL_19
LBL_19:
%sv_0.18.reload = load i64, i64* %sv_0.18.reg2mem
%93 = call i64 @FUNC(i64 %sv_0.18.reload, i64 %arg2)
%94 = icmp ult i64 %93, %arg2
store i64 0, i64* %storemerge.reg2mem
br i1 %94, label LBL_1, label LBL_20
LBL_20:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %93, { 1, 0 }
uselistorder i64 %sv_0.18.reload, { 3, 2, 1, 4, 5, 0 }
uselistorder i64 %storemerge4, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 %storemerge5, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %sv_0.06.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge5.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge4.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.18.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64, i64)* @get_eow, { 2, 1, 0 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 2, 3, 0 }
uselistorder i64 1, { 2, 1, 0, 3, 4, 5 }
uselistorder i1 false, { 17, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 0, 4, 18, 2, 19, 20, 3 }
uselistorder i8* %arg5, { 1, 0, 2 }
uselistorder i8* %arg4, { 1, 0, 2 }
uselistorder i8* %arg3, { 1, 0, 2 }
uselistorder i64 %arg2, { 9, 10, 8, 2, 3, 4, 5, 6, 7, 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 0, 5, 4, 3, 8, 7, 6, 9 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | imdct12_2800 | imdct12 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = 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 i128 @FUNC(i32 %4)
%6 = call i64 @__asm_movss.1(i128 %5)
%7 = trunc i64 %6 to i32
%8 = add i64 %2, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = call i128 @FUNC(i32 %10)
%12 = call i128 @FUNC(i32 %4)
%13 = call i128 @FUNC(i128 %12, i128 %11)
%14 = call i64 @__asm_movss.1(i128 %13)
%15 = trunc i64 %14 to i32
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = call i128 @FUNC(i32 %18)
%20 = load i32, i32* %9, align 4
%21 = call i128 @FUNC(i32 %20)
%22 = call i128 @FUNC(i128 %21, i128 %19)
%23 = call i64 @__asm_movss.1(i128 %22)
%24 = trunc i64 %23 to i32
%25 = add i64 %2, 36
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = call i128 @FUNC(i32 %27)
%29 = load i32, i32* %17, align 4
%30 = call i128 @FUNC(i32 %29)
%31 = call i128 @FUNC(i128 %30, i128 %28)
%32 = call i64 @__asm_movss.1(i128 %31)
%33 = trunc i64 %32 to i32
%34 = add i64 %2, 48
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = call i128 @FUNC(i32 %36)
%38 = load i32, i32* %26, align 4
%39 = call i128 @FUNC(i32 %38)
%40 = call i128 @FUNC(i128 %39, i128 %37)
%41 = call i64 @__asm_movss.1(i128 %40)
%42 = trunc i64 %41 to i32
%43 = add i64 %2, 60
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = call i128 @FUNC(i32 %45)
%47 = load i32, i32* %35, align 4
%48 = call i128 @FUNC(i32 %47)
%49 = call i128 @FUNC(i128 %48, i128 %46)
%50 = call i64 @__asm_movss.1(i128 %49)
%51 = trunc i64 %50 to i32
%52 = call i128 @FUNC(i32 %51)
%53 = call i128 @__asm_addss.2(i128 %52, i32 %33)
%54 = call i64 @__asm_movss.1(i128 %53)
%55 = trunc i64 %54 to i32
%56 = call i128 @FUNC(i32 %33)
%57 = call i128 @__asm_addss.2(i128 %56, i32 %15)
%58 = call i64 @__asm_movss.1(i128 %57)
%59 = trunc i64 %58 to i32
%60 = call i128 @FUNC(i32 %7)
%61 = call i128 @FUNC(i128 %60, i32 %42)
%62 = call i64 @__asm_movss.1(i128 %61)
%63 = trunc i64 %62 to i32
%64 = call i128 @FUNC(i32 %15)
%65 = call i128 @FUNC(i128 %64, i32 %55)
%66 = call i64 @__asm_movss.1(i128 %65)
%67 = trunc i64 %66 to i32
%68 = add i64 %3, 40
%69 = call i128 @FUNC(i32 %63)
%70 = call i128 @__asm_addss.2(i128 %69, i32 %67)
%71 = call i64 @__asm_movss.1(i128 %70)
%72 = trunc i64 %71 to i32
%73 = inttoptr i64 %68 to i32*
store i32 %72, i32* %73, align 4
%74 = add i64 %3, 28
%75 = call i128 @FUNC(i32 %72)
%76 = call i64 @__asm_movss.1(i128 %75)
%77 = trunc i64 %76 to i32
%78 = inttoptr i64 %74 to i32*
store i32 %77, i32* %78, align 4
%79 = add i64 %3, 16
%80 = call i128 @FUNC(i32 %63)
%81 = call i128 @FUNC(i128 %80, i32 %67)
%82 = call i64 @__asm_movss.1(i128 %81)
%83 = trunc i64 %82 to i32
%84 = inttoptr i64 %79 to i32*
store i32 %83, i32* %84, align 4
%85 = add i64 %3, 4
%86 = call i128 @FUNC(i32 %83)
%87 = call i64 @__asm_movss.1(i128 %86)
%88 = trunc i64 %87 to i32
%89 = inttoptr i64 %85 to i32*
store i32 %88, i32* %89, align 4
%90 = call i128 @FUNC(i32 %42)
%91 = load i32, i32* inttoptr (i64 4202532 to i32*), align 4
%92 = call i128 @FUNC(i32 %91)
%93 = call i128 @FUNC(i128 %90, i128 %92)
%94 = call i128 @FUNC(i32 %7)
%95 = call i128 @FUNC(i128 %93, i128 %94)
%96 = call i64 @__asm_movss.1(i128 %95)
%97 = trunc i64 %96 to i32
%98 = call i128 @FUNC(i32 %97)
%99 = call i128 @__asm_addss.2(i128 %98, i32 %24)
%100 = call i64 @__asm_movss.1(i128 %99)
%101 = trunc i64 %100 to i32
%102 = call i128 @FUNC(i32 %15)
%103 = call i128 @FUNC(i128 %102, i128 %102)
%104 = call i128 @FUNC(i32 %55)
%105 = call i128 @FUNC(i128 %103, i128 %104)
%106 = call i64 @__asm_movss.1(i128 %105)
%107 = trunc i64 %106 to i32
%108 = call i128 @FUNC(i32 %107)
%109 = call i128 @__asm_addss.2(i128 %108, i32 %59)
%110 = call i64 @__asm_movss.1(i128 %109)
%111 = trunc i64 %110 to i32
%112 = add i64 %3, 36
%113 = call i128 @FUNC(i32 %101)
%114 = call i128 @__asm_addss.2(i128 %113, i32 %111)
%115 = call i64 @__asm_movss.1(i128 %114)
%116 = trunc i64 %115 to i32
%117 = inttoptr i64 %112 to i32*
store i32 %116, i32* %117, align 4
%118 = add i64 %3, 32
%119 = call i128 @FUNC(i32 %116)
%120 = call i64 @__asm_movss.1(i128 %119)
%121 = trunc i64 %120 to i32
%122 = inttoptr i64 %118 to i32*
store i32 %121, i32* %122, align 4
%123 = add i64 %3, 12
%124 = call i128 @FUNC(i32 %101)
%125 = call i128 @FUNC(i128 %124, i32 %111)
%126 = call i64 @__asm_movss.1(i128 %125)
%127 = trunc i64 %126 to i32
%128 = inttoptr i64 %123 to i32*
store i32 %127, i32* %128, align 4
%129 = add i64 %3, 8
%130 = call i128 @FUNC(i32 %127)
%131 = call i64 @__asm_movss.1(i128 %130)
%132 = trunc i64 %131 to i32
%133 = inttoptr i64 %129 to i32*
store i32 %132, i32* %133, align 4
%134 = call i128 @FUNC(i32 %97)
%135 = call i128 @FUNC(i128 %134, i32 %24)
%136 = call i64 @__asm_movss.1(i128 %135)
%137 = trunc i64 %136 to i32
%138 = call i128 @FUNC(i32 %107)
%139 = call i128 @FUNC(i128 %138, i32 %59)
%140 = call i64 @__asm_movss.1(i128 %139)
%141 = trunc i64 %140 to i32
%142 = add i64 %3, 20
%143 = call i128 @FUNC(i32 %137)
%144 = call i128 @FUNC(i128 %143, i32 %141)
%145 = call i64 @__asm_movss.1(i128 %144)
%146 = trunc i64 %145 to i32
%147 = inttoptr i64 %142 to i32*
store i32 %146, i32* %147, align 4
%148 = call i128 @FUNC(i32 %146)
%149 = call i64 @__asm_movss.1(i128 %148)
%150 = trunc i64 %149 to i32
%151 = bitcast i64* %arg1 to i32*
store i32 %150, i32* %151, align 4
%152 = add i64 %3, 44
%153 = call i128 @FUNC(i32 %137)
%154 = call i128 @__asm_addss.2(i128 %153, i32 %141)
%155 = call i64 @__asm_movss.1(i128 %154)
%156 = trunc i64 %155 to i32
%157 = inttoptr i64 %152 to i32*
store i32 %156, i32* %157, align 4
%158 = add i64 %3, 24
%159 = call i128 @FUNC(i32 %156)
%160 = call i64 @__asm_movss.1(i128 %159)
%161 = trunc i64 %160 to i32
%162 = inttoptr i64 %158 to i32*
store i32 %161, i32* %162, align 4
ret i64 %152
uselistorder i64 %152, { 1, 0 }
uselistorder i32 %141, { 1, 0 }
uselistorder i32 %137, { 1, 0 }
uselistorder i32 %111, { 1, 0 }
uselistorder i32 %107, { 1, 0 }
uselistorder i128 %102, { 1, 0 }
uselistorder i32 %101, { 1, 0 }
uselistorder i32 %97, { 1, 0 }
uselistorder i32 %67, { 1, 0 }
uselistorder i32 %63, { 1, 0 }
uselistorder i32 %59, { 1, 0 }
uselistorder i32 %55, { 1, 0 }
uselistorder i32 %42, { 1, 0 }
uselistorder i32 %33, { 1, 0 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32 %15, { 2, 1, 0 }
uselistorder i32 %7, { 1, 0 }
} | 0 |
BinRealVul | bnx2i_send_iscsi_nopout_5353 | bnx2i_send_iscsi_nopout | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64* @memset(i64* %arg1, i32 0, i32 52)
%8 = inttoptr i64 %6 to i32*
%9 = load i32, i32* %8, align 4
%10 = bitcast i64* %arg1 to i32*
store i32 %9, i32* %10, align 4
%11 = add i64 %3, 4
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
%13 = add i64 %6, 4
%14 = add i64 %3, 8
%15 = inttoptr i64 %13 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %14 to i64*
store i64 %16, i64* %17, align 8
%18 = call i64 @FUNC(i64 0, i64 %16)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_2, label LBL_1
LBL_1:
%21 = inttoptr i64 %13 to i8*
%22 = load i8, i8* %21, align 1
%23 = add i64 %6, 5
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
store i8 %25, i8* %21, align 1
store i8 %22, i8* %24, align 1
br label LBL_2
LBL_2:
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = and i32 %28, 65531
%30 = or i32 %29, 4
%31 = add i64 %3, 16
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = add i64 %6, 12
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %3, 20
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = add i64 %3, 24
%39 = inttoptr i64 %38 to i32*
store i32 0, i32* %39, align 4
%40 = trunc i64 %arg5 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_4, label LBL_3
LBL_3:
store i32 2, i32* %39, align 4
br label LBL_6
LBL_4:
%43 = add i64 %6, 20
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_6, label LBL_5
LBL_5:
store i32 2, i32* %39, align 4
br label LBL_6
LBL_6:
%48 = add i64 %6, 16
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = call i64 @FUNC(i64 %51)
%53 = trunc i64 %52 to i32
%54 = add i64 %3, 28
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
%56 = trunc i64 %arg4 to i32
%57 = add i64 %3, 32
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = icmp eq i32 %56, 0
br i1 %59, label LBL_8, label LBL_7
LBL_7:
%60 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %16, i32 %56, i64 %arg4, i64 %arg5, i64 %1)
br label LBL_9
LBL_8:
%61 = load i64, i64* %17, align 8
%62 = add i64 %61, 4
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %3, 36
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = load i64, i64* %17, align 8
%68 = add i64 %67, 4
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = ashr i32 %70, 31
%72 = add i64 %3, 40
%73 = inttoptr i64 %72 to i32*
store i32 %71, i32* %73, align 4
%74 = add i64 %3, 44
%75 = inttoptr i64 %74 to i32*
store i32 1, i32* %75, align 4
br label LBL_9
LBL_9:
%76 = add i64 %3, 48
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = call i64 @FUNC(i64 %3, i64 1)
ret i64 0
uselistorder i32* %39, { 1, 0, 2 }
uselistorder i64 %6, { 1, 2, 3, 0, 4, 5 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder i64 %arg5, { 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
} | 0 |
BinRealVul | mipsdsp_add_i32_14712 | mipsdsp_add_i32 | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = trunc i64 %arg2 to i32
%sext3 = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext3, 32
%3 = add i32 %1, %0
%4 = icmp slt i32 %0, 1
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = trunc i64 %2 to i32
%6 = icmp sgt i32 %5, 0
%7 = icmp slt i32 %3, 0
%or.cond = icmp eq i1 %7, %6
br i1 %or.cond, label LBL_4, label LBL_5
LBL_2:
%8 = icmp ne i32 %0, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = trunc i64 %2 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
%13 = icmp slt i32 %3, 1
%or.cond6 = or i1 %13, %12
br i1 %or.cond6, label LBL_5, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg3 to i64
%15 = call i64 @FUNC(i64 1, i64 20, i64 %14)
br label LBL_5
LBL_5:
%16 = zext i32 %3 to i64
ret i64 %16
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32 %0, { 1, 2, 0 }
uselistorder i32 0, { 3, 0, 2, 1 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | vcc_recvmsg_13722 | vcc_recvmsg | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%sv_1 = alloca i32, align 4
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
store i32 -22, i32* %sv_1, align 4
%6 = bitcast i64* %arg3 to i32*
store i32 0, i32* %6, align 4
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 1
store i64 4294967189, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_14
LBL_1:
%9 = and i64 %arg5, 4294967292
%10 = icmp eq i64 %9, 0
store i64 4294967201, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_14
LBL_2:
%11 = call i64 @FUNC(i64 %2)
%12 = call i64 @FUNC(i64 0, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_14, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 1, i64 %11)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_14, label LBL_4
LBL_4:
%20 = call i64 @FUNC(i64 2, i64 %11)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_5, label LBL_14
LBL_5:
%sext = mul i64 %arg5, 4294967296
%24 = ashr exact i64 %sext, 32
%25 = urem i64 %24, 2
%26 = trunc i64 %24 to i32
%27 = call i64 @FUNC(i64 %5, i32 %26, i64 %25, i32* nonnull %sv_1)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = load i32, i32* %sv_1, align 4
%31 = zext i32 %30 to i64
store i64 %31, i64* %rax.0.reg2mem
br label LBL_14
LBL_7:
%32 = ptrtoint i64* %arg3 to i64
%33 = inttoptr i64 %27 to i32*
%34 = load i32, i32* %33, align 4
%35 = sext i32 %34 to i64
%36 = icmp ugt i64 %35, %arg4
%37 = icmp eq i1 %36, false
store i64 %35, i64* %sv_0.0.reg2mem
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%sext5 = mul i64 %arg4, 4294967296
%38 = ashr exact i64 %sext5, 32
%39 = add i64 %32, 16
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = or i32 %41, 4
store i32 %42, i32* %40, align 4
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%43 = add i64 %32, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = trunc i64 %sv_0.0.reload to i32
%47 = call i64 @FUNC(i64 %27, i64 0, i64 %45, i32 %46)
%48 = trunc i64 %47 to i32
store i32 %48, i32* %sv_1, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label LBL_11, label LBL_10
LBL_10:
%50 = and i64 %47, 4294967295
store i64 %50, i64* %rax.0.reg2mem
br label LBL_14
LBL_11:
%51 = call i64 @FUNC(i64 %32, i64 %5, i64 %27)
%52 = and i64 %arg5, 2
%53 = icmp eq i64 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_13, label LBL_12
LBL_12:
%55 = add i64 %27, 4
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = call i64 @FUNC(i64 %5)
%59 = zext i32 %57 to i64
%60 = and i64 %58, 4294967295
%61 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %60, i64 %59)
%62 = load i32, i32* %56, align 4
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %11, i64 %63)
br label LBL_13
LBL_13:
%65 = call i64 @FUNC(i64 %5, i64 %27)
%66 = and i64 %sv_0.0.reload, 4294967295
store i64 %66, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %32, { 1, 2, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i32* %sv_1, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 3, 2, 1, 4, 5 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @test_bit, { 2, 1, 0 }
uselistorder i64 %arg5, { 1, 0, 2 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_14, { 5, 6, 7, 2, 1, 0, 3, 4 }
} | 0 |
BinRealVul | add_push_report_sideband_pkt_11837 | add_push_report_sideband_pkt | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%sv_2.0.ph.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
%7 = icmp eq i1 %6, false
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
store i64 %1, i64* %sv_1.0.ph.reg2mem
store i64 %10, i64* %sv_2.0.ph.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %0, i64 %1, i64 %10)
%12 = load i64, i64* %3, align 8
store i64 %10, i64* %sv_1.0.ph.reg2mem
store i64 %12, i64* %sv_2.0.ph.reg2mem
br label LBL_2
LBL_2:
%13 = ptrtoint i64* %arg1 to i64
%sv_2.0.ph.reload = load i64, i64* %sv_2.0.ph.reg2mem
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%14 = icmp eq i64 %sv_2.0.ph.reload, 0
%15 = icmp eq i1 %14, false
store i64 %sv_2.0.ph.reload, i64* %sv_2.08.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.07.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_3, label LBL_10
LBL_3:
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%16 = call i64 @FUNC(i64* nonnull %sv_3, i64 %sv_1.07.reload, i64* nonnull %sv_4, i64 %sv_2.08.reload)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, -1
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_4
LBL_4:
%20 = icmp eq i1 %7, false
store i64 0, i64* %sv_0.04.reg2mem
br i1 %20, label LBL_11, label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %0, i64 %sv_1.07.reload, i64 %sv_2.08.reload)
store i64 0, i64* %sv_0.02.reg2mem
br label LBL_12
LBL_6:
%22 = icmp slt i32 %17, 0
store i64 %16, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_10, label LBL_7
LBL_7:
%23 = load i64, i64* %sv_4, align 8
%24 = load i64, i64* %sv_3, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = sub i64 %sv_1.07.reload, %23
%28 = add i64 %27, %sv_2.08.reload
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %28, i64* %sv_2.08.reg2mem
store i64 %23, i64* %sv_1.07.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_3, label LBL_10
LBL_9:
%31 = call i64 @FUNC(i64 %13, i64 %24)
%32 = trunc i64 %31 to i32
%33 = load i64, i64* %sv_3, align 8
%34 = call i64 @FUNC(i64 %33)
%35 = icmp slt i32 %32, 0
%36 = icmp eq i32 %32, -2
%37 = icmp eq i1 %36, false
%or.cond = icmp eq i1 %35, %37
store i64 %31, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_10, label LBL_8
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.04.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem
br i1 %7, label LBL_12, label LBL_11
LBL_11:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%38 = load i64, i64* %sv_4, align 8
%39 = call i64 @FUNC(i64 %0, i64 %38)
store i64 %sv_0.04.reload, i64* %sv_0.02.reg2mem
br label LBL_12
LBL_12:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%40 = and i64 %sv_0.02.reload, 4294967295
ret i64 %40
uselistorder i64 %sv_2.08.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.07.reload, { 0, 2, 1 }
uselistorder i64 %10, { 1, 2, 0 }
uselistorder i64* %sv_4, { 1, 2, 0 }
uselistorder i64* %sv_3, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %sv_2.08.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %sv_0.04.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64, i64)* @git_buf_put, { 1, 0 }
uselistorder i1 false, { 1, 6, 3, 4, 5, 0, 2, 7 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 2, 0, 3 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | test_rfc822_parse_quoted_string_18738 | test_rfc822_parse_quoted_string | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = ptrtoint i64* %sv_1 to i64
%1 = call i64 @FUNC(i64 64)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul nuw nsw i64 %indvars.iv.reload, 24
%4 = add i64 %3, %0
%5 = add i64 %4, -208
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i8*
%9 = call i32 @strlen(i8* %8)
%10 = sext i32 %9 to i64
%11 = load i64, i64* %6, align 8
%12 = call i64 @FUNC(i64* nonnull %sv_0, i64 %11, i64 %10, i64 0)
%13 = call i64 @FUNC(i64* nonnull %sv_0, i64 %1)
%14 = trunc i64 %13 to i32
%15 = add i64 %4, -192
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 8
%18 = icmp eq i32 %17, %14
%19 = zext i1 %18 to i64
%20 = call i64 @FUNC(i64 %19, i64 %indvars.iv.reload)
%21 = load i32, i32* %16, align 8
%22 = icmp slt i32 %21, 0
store i64 1, i64* %storemerge1.reg2mem
br i1 %22, label LBL_3, label LBL_2
LBL_2:
%23 = call i64 @FUNC(i64 %1)
%24 = add i64 %4, -200
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i8*
%28 = inttoptr i64 %23 to i8*
%29 = call i32 @strcmp(i8* %27, i8* %28)
%30 = icmp eq i32 %29, 0
%spec.select = zext i1 %30 to i64
store i64 %spec.select, i64* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%31 = call i64 @FUNC(i64 %storemerge1.reload, i64 %indvars.iv.reload)
%32 = call i64 @FUNC(i64 %1, i64 0)
%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_4, label LBL_1
LBL_4:
%33 = call i64 @FUNC()
ret i64 %33
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @test_assert_idx, { 1, 0 }
uselistorder i32 1, { 5, 4, 1, 0, 2, 3 }
} | 1 |
BinRealVul | fuse_make_bad_5820 | fuse_make_bad | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 1, i64 %1)
ret i64 %2
} | 0 |
BinRealVul | nfs4_locku_done_10321 | nfs4_locku_done | 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 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_7, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = and i64 %1, 4294967295
%11 = icmp sgt i32 %7, -5
store i64 %10, i64* %rax.0.reg2mem
br i1 %11, label LBL_7, label LBL_5
LBL_3:
%12 = icmp eq i32 %7, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = add i64 %2, 4
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %14)
%19 = add i64 %2, 24
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %2, 16
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24, i64 %21)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %3, i64 %28, i64 0)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, -11
%32 = icmp eq i1 %31, false
store i64 %29, i64* %rax.0.reg2mem
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%33 = call i64 @FUNC(i64 %3)
store i64 %33, 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 i32 %7, { 2, 1, 0 }
uselistorder i64 %2, { 4, 0, 3, 2, 1, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_7, { 2, 3, 4, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | rgb15tobgr32_13882 | rgb15tobgr32 | define i64 @FUNC(i16* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i16*
%.reg2mem = alloca i64
%0 = ptrtoint i16* %arg1 to i64
%1 = and i64 %arg3, 4294967294
%2 = add i64 %1, %0
%3 = icmp ugt i64 %2, %0
store i64 %0, i64* %.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
store i64 %0, i64* %.reg2mem
store i16* %arg1, i16** %sv_1.03.reg2mem
store i64 %4, i64* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i16*, i16** %sv_1.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%5 = add i64 %.reload, 2
%6 = inttoptr i64 %5 to i16*
%7 = load i16, i16* %sv_1.03.reload, align 2
%8 = udiv i16 %7, 128
%9 = add i64 %sv_0.02.reload, 1
%10 = trunc i16 %8 to i8
%11 = and i8 %10, -8
%12 = inttoptr i64 %sv_0.02.reload to i8*
store i8 %11, i8* %12, align 1
%13 = udiv i16 %7, 4
%14 = add i64 %sv_0.02.reload, 2
%15 = trunc i16 %13 to i8
%16 = and i8 %15, -8
%17 = inttoptr i64 %9 to i8*
store i8 %16, i8* %17, align 1
%18 = trunc i16 %7 to i8
%19 = mul i8 %18, 8
%20 = add i64 %sv_0.02.reload, 3
%21 = inttoptr i64 %14 to i8*
store i8 %19, i8* %21, align 1
%22 = add i64 %sv_0.02.reload, 4
%23 = inttoptr i64 %20 to i8*
store i8 0, i8* %23, align 1
%24 = icmp ugt i64 %2, %5
store i64 %5, i64* %.reg2mem
store i16* %6, i16** %sv_1.03.reg2mem
store i64 %22, i64* %sv_0.02.reg2mem
store i64 %5, i64* %.lcssa.reg2mem
br i1 %24, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i16 %7, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 1, 0, 3, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ff_set_fixed_vector_3589 | ff_set_fixed_vector | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem9 = alloca i32
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem7 = alloca i64
%.reg2mem = alloca i32
%rsi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = call i64 @FUNC(i128 %3)
%5 = trunc i64 %2 to i32
%6 = and i64 %2, 4294967295
%7 = icmp eq i32 %5, 0
store i64 %6, i64* %.lcssa.reg2mem
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %arg1 to i64
%10 = trunc i64 %4 to i32
%11 = bitcast i64* %rsi to i32*
%12 = add i64 %8, 8
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %8, 24
%15 = inttoptr i64 %14 to i32*
%16 = add i64 %8, 32
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %8, 16
%19 = inttoptr i64 %18 to i32*
%20 = add i64 %8, 20
%21 = inttoptr i64 %20 to i32*
%22 = trunc i64 %arg3 to i32
store i32 %5, i32* %.reg2mem
store i64 0, i64* %.reg2mem7
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload8 = load i64, i64* %.reg2mem7
%.reload = load i32, i32* %.reg2mem
%23 = load i64, i64* %13, align 8
%24 = mul i64 %.reload8, 4
%25 = add i64 %23, %24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = load i32, i32* %15, align 4
%29 = load i64, i64* %17, align 8
%30 = add i64 %29, %24
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = call i128 @__asm_movss.1(i32 %32)
%34 = call i128 @__asm_movss.1(i32 %10)
%35 = call i128 @FUNC(i128 %33, i128 %34)
%36 = call i64 @FUNC(i128 %35)
%37 = load i32, i32* %19, align 4
%38 = icmp slt i32 %37, 1
store i32 %.reload, i32* %.reg2mem9
br i1 %38, label LBL_6, label LBL_3
LBL_3:
%39 = urem i32 %storemerge3.reload, 32
%40 = shl i32 1, %39
%41 = and i32 %28, %40
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
%44 = icmp eq i1 %43, false
store i32 %27, i32* %sv_1.0.reg2mem
store i64 %36, i64* %sv_0.0.in.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%45 = sext i32 %sv_1.0.reload to i64
%46 = mul i64 %45, 4
%47 = add i64 %46, %9
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = call i128 @__asm_movss.1(i32 %49)
%51 = call i128 @FUNC(i128 %50, i32 %sv_0.0)
%52 = call i64 @FUNC(i128 %51)
%53 = trunc i64 %52 to i32
store i32 %53, i32* %48, align 4
%54 = load i32, i32* %21, align 4
%55 = call i128 @__asm_movss.1(i32 %54)
%56 = call i128 @__asm_movss.1(i32 %sv_0.0)
%57 = call i128 @FUNC(i128 %55, i128 %56)
%58 = call i64 @FUNC(i128 %57)
%59 = load i32, i32* %19, align 4
%60 = add i32 %59, %sv_1.0.reload
%61 = icmp slt i32 %60, %22
%or.cond = icmp eq i1 %44, %61
store i32 %60, i32* %sv_1.0.reg2mem
store i64 %58, i64* %sv_0.0.in.reg2mem
br i1 %or.cond, label LBL_4, label LBL_5
LBL_5:
%.pre = load i32, i32* %11, align 8
store i32 %.pre, i32* %.reg2mem9
br label LBL_6
LBL_6:
%.reload10 = load i32, i32* %.reg2mem9
%62 = add i32 %storemerge3.reload, 1
%63 = zext i32 %.reload10 to i64
%64 = sext i32 %62 to i64
%65 = icmp slt i64 %64, %63
store i32 %.reload10, i32* %.reg2mem
store i64 %64, i64* %.reg2mem7
store i32 %62, i32* %storemerge3.reg2mem
store i64 %63, i64* %.lcssa.reg2mem
br i1 %65, label LBL_2, label LBL_7
LBL_7:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %.reload10, { 1, 0 }
uselistorder i32 %sv_0.0, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem7, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem9, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | copy_cell_14586 | copy_cell | define i64 @FUNC(i32* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.lcssa.reg2mem = alloca i64
%rax.1.be.reg2mem = alloca i64
%sv_0.3.be.reg2mem = alloca i32
%sv_1.3.be.reg2mem = alloca i64
%sv_2.3.be.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64
%sv_2.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%sv_2.312.reg2mem = alloca i64
%sv_1.313.reg2mem = alloca i64
%sv_0.314.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg3 to i64
%5 = ptrtoint i32* %arg2 to i64
%6 = add i64 %4, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %4, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %4, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = icmp eq i32 %17, 0
%20 = icmp slt i32 %17, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %19, false
%23 = icmp eq i1 %21, %22
store i64 %18, i64* %rax.1.lcssa.reg2mem
br i1 %23, label LBL_1, label LBL_9
LBL_1:
%24 = trunc i64 %2 to i32
%25 = mul i32 %24, 4
%26 = mul i32 %25, %8
%27 = trunc i64 %3 to i32
%28 = mul i32 %27, 4
%29 = add i32 %26, %28
%30 = add i64 %4, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = mul i32 %32, 4
%34 = inttoptr i64 %14 to i32*
%35 = load i32, i32* %34, align 4
%36 = mul i32 %35, %24
%37 = add i32 %36, %29
%38 = add i64 %14, 4
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i32 %37, %40
%42 = sext i32 %41 to i64
%43 = mul i64 %1, 4294967296
%44 = ashr exact i64 %43, 29
%45 = xor i64 %44, 8
%46 = add i64 %11, %45
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = add i64 %48, %42
%50 = add i64 %11, %44
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = sext i32 %29 to i64
%54 = add i64 %52, %53
%55 = urem i32 %27, 4
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
%58 = and i32 %28, 4
%59 = zext i32 %58 to i64
%60 = icmp eq i32 %58, 0
%61 = icmp eq i1 %60, false
%62 = zext i32 %33 to i64
store i32 %17, i32* %sv_0.314.reg2mem
store i64 %49, i64* %sv_1.313.reg2mem
store i64 %54, i64* %sv_2.312.reg2mem
br label LBL_2
LBL_2:
%sv_2.312.reload = load i64, i64* %sv_2.312.reg2mem
%sv_1.313.reload = load i64, i64* %sv_1.313.reg2mem
%sv_0.314.reload = load i32, i32* %sv_0.314.reg2mem
%63 = icmp slt i32 %sv_0.314.reload, 4
%or.cond = or i1 %57, %63
store i64 %sv_2.312.reload, i64* %sv_2.1.reg2mem
store i64 %sv_1.313.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.314.reload, i32* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%64 = add i32 %sv_0.314.reload, -4
%65 = udiv i32 %64, 4
%66 = zext i32 %65 to i64
%67 = mul i64 %66, 16
%68 = add nuw nsw i64 %67, 16
%69 = add i64 %68, %sv_2.312.reload
%70 = add i64 %68, %sv_1.313.reload
%71 = urem i32 %64, 4
store i64 %69, i64* %sv_2.1.reg2mem
store i64 %70, i64* %sv_1.1.reg2mem
store i32 %71, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%72 = icmp slt i32 %sv_0.1.reload, 2
%or.cond6 = or i1 %61, %72
store i64 %sv_2.1.reload, i64* %sv_2.2.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
store i64 %59, i64* %rax.0.reg2mem
br i1 %or.cond6, label LBL_6, label LBL_5
LBL_5:
%73 = add i32 %sv_0.1.reload, -2
%74 = add i64 %sv_1.1.reload, 8
%75 = add i64 %sv_2.1.reload, 8
store i64 %75, i64* %sv_2.2.reg2mem
store i64 %74, i64* %sv_1.2.reg2mem
store i32 %73, i32* %sv_0.2.reg2mem
store i64 %sv_2.1.reload, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%76 = icmp slt i32 %sv_0.2.reload, 1
store i64 %sv_2.2.reload, i64* %sv_2.3.be.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.3.be.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.3.be.reg2mem
store i64 %rax.0.reload, i64* %rax.1.be.reg2mem
br i1 %76, label LBL_7, label LBL_8
LBL_7:
%rax.1.be.reload = load i64, i64* %rax.1.be.reg2mem
%sv_0.3.be.reload = load i32, i32* %sv_0.3.be.reg2mem
%sv_1.3.be.reload = load i64, i64* %sv_1.3.be.reg2mem
%sv_2.3.be.reload = load i64, i64* %sv_2.3.be.reg2mem
%77 = icmp eq i32 %sv_0.3.be.reload, 0
%78 = icmp slt i32 %sv_0.3.be.reload, 0
%79 = icmp eq i1 %78, false
%80 = icmp eq i1 %77, false
%81 = icmp eq i1 %79, %80
store i32 %sv_0.3.be.reload, i32* %sv_0.314.reg2mem
store i64 %sv_1.3.be.reload, i64* %sv_1.313.reg2mem
store i64 %sv_2.3.be.reload, i64* %sv_2.312.reg2mem
store i64 %rax.1.be.reload, i64* %rax.1.lcssa.reg2mem
br i1 %81, label LBL_2, label LBL_9
LBL_8:
%82 = call i64 @FUNC(i64 %sv_2.2.reload, i64 %sv_1.2.reload, i32 %24, i32 %24, i64 %62)
%83 = add i32 %sv_0.2.reload, -1
%84 = add i64 %sv_1.2.reload, 4
%85 = add i64 %sv_2.2.reload, 4
store i64 %85, i64* %sv_2.3.be.reg2mem
store i64 %84, i64* %sv_1.3.be.reg2mem
store i32 %83, i32* %sv_0.3.be.reg2mem
store i64 %82, i64* %rax.1.be.reg2mem
br label LBL_7
LBL_9:
%rax.1.lcssa.reload = load i64, i64* %rax.1.lcssa.reg2mem
ret i64 %rax.1.lcssa.reload
uselistorder i32 %sv_0.3.be.reload, { 2, 1, 0 }
uselistorder i64 %sv_2.2.reload, { 2, 1, 0 }
uselistorder i64 %sv_1.2.reload, { 2, 1, 0 }
uselistorder i32 %sv_0.2.reload, { 2, 0, 1 }
uselistorder i64 %sv_2.1.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.1.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 2, 0, 1 }
uselistorder i32 %64, { 1, 0 }
uselistorder i32 %sv_0.314.reload, { 2, 0, 1 }
uselistorder i64 %sv_1.313.reload, { 1, 0 }
uselistorder i64 %sv_2.312.reload, { 1, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i32 %27, { 1, 0 }
uselistorder i32 %24, { 2, 3, 1, 0 }
uselistorder i64 %4, { 1, 0, 2, 3 }
uselistorder i32* %sv_0.314.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.313.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.312.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.3.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.3.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.3.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 4, { 4, 3, 6, 7, 5, 0, 1, 2 }
uselistorder i1 false, { 5, 2, 3, 4, 0, 1 }
uselistorder i64 16, { 1, 0, 2 }
uselistorder i64 8, { 1, 2, 0, 3, 4 }
uselistorder i64 4, { 1, 2, 3, 4, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | inet_csk_clone_lock_11696 | inet_csk_clone_lock | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = zext i32 %arg3 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = inttoptr i64 %2 to i32*
%6 = call i64 @FUNC(i64 %2)
store i32 1, i32* %5, align 4
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = call i64 @FUNC(i64 %4)
%9 = call i64 @FUNC(i64 %2)
%10 = inttoptr i64 %8 to i16*
%11 = load i16, i16* %10, align 2
%12 = add i64 %9, 24
%13 = inttoptr i64 %12 to i16*
store i16 %11, i16* %13, align 2
%14 = call i64 @FUNC(i64 %4)
%15 = call i64 @FUNC(i64 %2)
%16 = add i64 %14, 2
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = add i64 %15, 26
%20 = inttoptr i64 %19 to i16*
store i16 %18, i16* %20, align 2
%21 = call i64 @FUNC(i64 %4)
%22 = add i64 %21, 2
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = call i64 @FUNC(i64 %2)
%26 = zext i16 %24 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i16
%29 = add i64 %25, 28
%30 = inttoptr i64 %29 to i16*
store i16 %28, i16* %30, align 2
%31 = add i64 %2, 8
%32 = inttoptr i64 %31 to i64*
store i64 4198881, i64* %32, align 8
%33 = call i64 @FUNC(i64 %2, i64 2)
%34 = call i64 @FUNC(i64 %4)
%35 = add i64 %34, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %2, 16
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = call i64 @FUNC(i64 %4)
%41 = add i64 %40, 16
%42 = call i64 @FUNC(i64 %41)
%43 = add i64 %2, 24
%44 = call i64 @FUNC(i64 %43, i64 %42)
%45 = add i64 %6, 8
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
%47 = add i64 %6, 12
%48 = inttoptr i64 %47 to i32*
store i32 0, i32* %48, align 4
%49 = add i64 %6, 16
%50 = inttoptr i64 %49 to i32*
store i32 0, i32* %50, align 4
%51 = add i64 %6, 20
%52 = inttoptr i64 %51 to i64*
%53 = call i64* @memset(i64* %52, i32 0, i32 4)
%54 = call i64 @FUNC(i64 %2, i64 %4)
br label LBL_2
LBL_2:
ret i64 %2
uselistorder i64 (i64)* @inet_sk, { 2, 1, 0 }
uselistorder i64 (i64)* @inet_rsk, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | write_lease_10574 | write_lease | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i8*
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%9 = call i32 @unlink(i8* %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
call void (i32, i8*, ...) @syslog(i32 7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64* %arg2, i8* %8)
%10 = load i64, i64* %6, align 8
%11 = inttoptr i64 %10 to i8*
%12 = call i32 (i8*, i32, ...) @open(i8* %11, i32 577)
%13 = icmp eq i32 %12, -1
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = add i64 %0, 312
%16 = icmp ult i64* %arg2, inttoptr (i64 -312 to i64*)
store i64 %0, i64* %sv_1.03.reg2mem
store i32 312, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_5, label LBL_10
LBL_4:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i8* %11, i64 %7)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%17 = inttoptr i64 %sv_1.03.reload to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, -1
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = sub i64 %sv_1.03.reload, %0
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_7:
%23 = add i64 %sv_1.03.reload, 1
%24 = icmp eq i8 %18, 0
store i64 %23, i64* %sv_1.0.be.reg2mem
br i1 %24, label LBL_8, label LBL_9
LBL_8:
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%25 = icmp ult i64 %sv_1.0.be.reload, %15
store i64 %sv_1.0.be.reload, i64* %sv_1.03.reg2mem
store i32 312, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_5, label LBL_10
LBL_9:
%26 = add i64 %sv_1.03.reload, 2
%27 = inttoptr i64 %23 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i64
%30 = add i64 %26, %29
store i64 %30, i64* %sv_1.0.be.reg2mem
br label LBL_8
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%31 = call i32 @write(i32 %12, i64* %arg2, i32 %sv_0.0.reload)
%32 = sext i32 %31 to i64
%33 = call i32 @close(i32 %12)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.0.be.reload, { 1, 0 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %sv_1.03.reload, { 0, 1, 3, 2 }
uselistorder i32 %12, { 1, 0, 2 }
uselistorder i8* %8, { 1, 0 }
uselistorder i64 %0, { 1, 0, 3, 2 }
uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.be.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder void (i32, i8*, ...)* @syslog, { 1, 0 }
uselistorder i64* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 0, 2, 1 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | read_tree_15644 | read_tree | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.3.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%storemerge58.reg2mem = alloca i32
%sv_0.09.reg2mem = alloca i64
%sv_1.010.reg2mem = alloca i64
%storemerge411.reg2mem = alloca i32
%storemerge612.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%rax.1.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.113.reg2mem = alloca i32
%storemerge114.reg2mem = alloca i32
%indvars.iv20.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi27.reg2mem = alloca i64
%storemerge216.reg2mem = alloca i32
%storemerge18.reg2mem = alloca i32
%indvars.iv23.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %3, i64 4)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg2 to i32*
store i32 %5, i32* %6, align 4
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = add i64 %2, 4
store i64 0, i64* %indvars.iv23.reg2mem
store i32 0, i32* %storemerge18.reg2mem
br label LBL_2
LBL_2:
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%11 = trunc i32 %storemerge18.reload to i8
%12 = add i64 %10, %indvars.iv23.reload
%13 = inttoptr i64 %12 to i8*
store i8 %11, i8* %13, align 1
%indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1
%14 = add nuw nsw i32 %storemerge18.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next24, 16
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
store i32 %14, i32* %storemerge18.reg2mem
store i64 15, i64* %rax.3.reg2mem
br i1 %exitcond25, label LBL_19, label LBL_2
LBL_3:
%15 = call i64 @FUNC(i64 %3)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_12, label LBL_4
LBL_4:
%18 = ptrtoint i64* %sv_5 to i64
%19 = call i64 @FUNC(i64 %3, i64 3)
%20 = trunc i64 %19 to i32
%21 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 16)
%22 = icmp slt i32 %20, 0
br i1 %22, label LBL_4.LBL_8_crit_edge, label LBL_6
LBL_5:
%.pre = add i64 %18, -64
%.pre26 = add i64 %2, 4
store i64 %.pre26, i64* %.pre-phi27.reg2mem
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_8
LBL_6:
%23 = add i64 %2, 4
%24 = add i64 %18, -64
store i32 0, i32* %storemerge216.reg2mem
br label LBL_7
LBL_7:
%storemerge216.reload = load i32, i32* %storemerge216.reg2mem
%25 = call i64 @FUNC(i64 %3, i64 4)
%26 = sext i32 %storemerge216.reload to i64
%27 = trunc i64 %25 to i8
%28 = add i64 %23, %26
%29 = inttoptr i64 %28 to i8*
store i8 %27, i8* %29, align 1
%30 = urem i64 %25, 256
%31 = add i64 %30, %24
%32 = inttoptr i64 %31 to i8*
store i8 1, i8* %32, align 1
%33 = add i32 %storemerge216.reload, 1
%34 = icmp sgt i32 %33, %20
store i32 %33, i32* %storemerge216.reg2mem
store i64 %23, i64* %.pre-phi27.reg2mem
store i64 %24, i64* %.pre-phi.reg2mem
br i1 %34, label LBL_8, label LBL_7
LBL_8:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi27.reload = load i64, i64* %.pre-phi27.reg2mem
store i64 0, i64* %indvars.iv20.reg2mem
store i32 0, i32* %storemerge114.reg2mem
store i32 %20, i32* %sv_2.113.reg2mem
br label LBL_9
LBL_9:
%sv_2.113.reload = load i32, i32* %sv_2.113.reg2mem
%storemerge114.reload = load i32, i32* %storemerge114.reg2mem
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%35 = add i64 %indvars.iv20.reload, %.pre-phi.reload
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = zext i8 %37 to i64
%39 = icmp eq i8 %37, 0
%40 = icmp eq i1 %39, false
store i32 %sv_2.113.reload, i32* %sv_2.0.reg2mem
store i64 %38, i64* %rax.1.reg2mem
br i1 %40, label LBL_11, label LBL_10
LBL_10:
%41 = add i32 %sv_2.113.reload, 1
%42 = sext i32 %41 to i64
%43 = trunc i32 %storemerge114.reload to i8
%44 = add i64 %.pre-phi27.reload, %42
%45 = inttoptr i64 %44 to i8*
store i8 %43, i8* %45, align 1
store i32 %41, i32* %sv_2.0.reg2mem
store i64 %42, i64* %rax.1.reg2mem
br label LBL_11
LBL_11:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%46 = add nuw nsw i32 %storemerge114.reload, 1
%exitcond22 = icmp eq i64 %indvars.iv.next21, 16
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
store i32 %46, i32* %storemerge114.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.113.reg2mem
store i64 %rax.1.reload, i64* %rax.3.reg2mem
br i1 %exitcond22, label LBL_19, label LBL_9
LBL_12:
%47 = ptrtoint i64* %sv_4 to i64
%48 = ptrtoint i64* %sv_3 to i64
%49 = call i64 @FUNC(i64 %3, i64 2)
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %storemerge612.reg2mem
br label LBL_13
LBL_13:
%storemerge612.reload = load i32, i32* %storemerge612.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%50 = add i64 %indvars.iv.reload, %47
%51 = trunc i32 %storemerge612.reload to i8
%52 = inttoptr i64 %50 to i8*
store i8 %51, i8* %52, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%53 = add nuw nsw i32 %storemerge612.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %53, i32* %storemerge612.reg2mem
br i1 %exitcond, label LBL_14, label LBL_13
LBL_14:
%54 = trunc i64 %49 to i32
%55 = icmp slt i32 %54, 0
store i32 0, i32* %storemerge411.reg2mem
store i64 %48, i64* %sv_1.010.reg2mem
store i64 %47, i64* %sv_0.09.reg2mem
store i64 %47, i64* %sv_0.0.lcssa.reg2mem
br i1 %55, label LBL_18, label LBL_15
LBL_15:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%sv_1.010.reload = load i64, i64* %sv_1.010.reg2mem
%storemerge411.reload = load i32, i32* %storemerge411.reg2mem
%56 = urem i32 %storemerge411.reload, 32
%57 = shl i32 1, %56
%58 = zext i32 %57 to i64
%59 = mul i32 %57, 2
store i32 0, i32* %storemerge58.reg2mem
br label LBL_16
LBL_16:
%storemerge58.reload = load i32, i32* %storemerge58.reg2mem
%60 = sext i32 %storemerge58.reload to i64
%61 = add i64 %sv_0.09.reload, %60
%62 = add i64 %sv_1.010.reload, %60
%63 = call i64 @FUNC(i64 %3, i64 %62, i64 %61, i64 %58)
%64 = add i32 %storemerge58.reload, %59
%65 = icmp slt i32 %64, 16
store i32 %64, i32* %storemerge58.reg2mem
br i1 %65, label LBL_16, label LBL_17
LBL_17:
%66 = add i32 %storemerge411.reload, 1
%67 = icmp sgt i32 %66, %54
store i32 %66, i32* %storemerge411.reg2mem
store i64 %sv_0.09.reload, i64* %sv_1.010.reg2mem
store i64 %sv_1.010.reload, i64* %sv_0.09.reg2mem
store i64 %sv_1.010.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %67, label LBL_18, label LBL_15
LBL_18:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%68 = add i64 %2, 4
%69 = add i64 %sv_0.0.lcssa.reload, 8
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = inttoptr i64 %sv_0.0.lcssa.reload to i64*
%73 = load i64, i64* %72, align 8
%74 = inttoptr i64 %68 to i64*
store i64 %73, i64* %74, align 8
%75 = add i64 %2, 12
%76 = inttoptr i64 %75 to i64*
store i64 %71, i64* %76, align 8
store i64 %73, i64* %rax.3.reg2mem
br label LBL_19
LBL_19:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i32 %storemerge58.reload, { 1, 0 }
uselistorder i64 %sv_0.09.reload, { 1, 0 }
uselistorder i32 %54, { 1, 0 }
uselistorder i32 %storemerge114.reload, { 1, 0 }
uselistorder i32 %sv_2.113.reload, { 1, 0 }
uselistorder i32 %20, { 0, 2, 1 }
uselistorder i64 %18, { 1, 0 }
uselistorder i64* %sv_4, { 1, 0 }
uselistorder i64 %3, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %2, { 4, 3, 2, 0, 1 }
uselistorder i64* %indvars.iv23.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge18.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge216.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv20.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge114.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.113.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge612.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge411.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.010.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge58.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.3.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 -64, { 1, 0 }
uselistorder i64 16, { 2, 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i32 0, { 0, 1, 6, 2, 3, 4, 7, 8, 9, 5, 10 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder i64 4, { 3, 1, 4, 0, 5, 2 }
uselistorder label LBL_19, { 2, 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | kvm_ioapic_update_eoi_10227 | kvm_ioapic_update_eoi | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = and i64 %arg3, 4294967295
%3 = add i64 %0, 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 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %0, i64 %7, i32 %1, i64 %2)
%10 = call i64 @FUNC(i64 %7)
ret i64 %10
} | 0 |
BinRealVul | object_common1_6221 | 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, 16
%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, 24
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = load i64, i64* @gv_0, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_3
LBL_3:
%18 = add i64 %0, 32
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %3, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%24 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i64 %11)
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, 1, 0, 2, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | ffurl_close_18362 | ffurl_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%.pre = add i64 %arg1, 8
%.pre2 = inttoptr i64 %.pre to i64*
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = load i64, i64* %.pre2, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = and i64 %arg1, 4294967295
%spec.select = select i1 %9, i64 0, i64 %10
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = call i64 @FUNC()
%12 = load i64, i64* %.pre2, align 8
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %arg1, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
br label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %arg1)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @av_free, { 1, 0 }
uselistorder i64 %arg1, { 2, 3, 1, 0, 4 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | qdev_print_devinfos_16074 | qdev_print_devinfos | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.26.reg2mem = alloca i32
%storemerge49.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 0, i64 0)
%4 = call i64 @FUNC(i64 %3, i64 4199178)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
%7 = trunc i64 %arg1 to i8
%8 = icmp eq i8 %7, 1
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_11
LBL_1:
%sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem
%storemerge49.reload = load i64, i64* %storemerge49.reg2mem
%9 = inttoptr i64 %storemerge49.reload to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
br i1 %37, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %indvars.iv.reload, i64 %13)
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 1
%17 = icmp eq i1 %16, false
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br i1 %17, label LBL_9, label LBL_4
LBL_3:
%18 = call i64 @FUNC(i64 %13, i64 8)
%19 = trunc i64 %18 to i8
%20 = icmp eq i8 %19, 1
%21 = icmp eq i1 %20, false
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br i1 %21, label LBL_9, label LBL_4
LBL_4:
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %10, 4
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 0
%26 = icmp eq i1 %25, false
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br i1 %26, label LBL_9, label LBL_6
LBL_6:
%27 = trunc i32 %sv_0.26.reload to i8
%28 = icmp eq i8 %27, 1
store i32 %sv_0.26.reload, i32* %sv_0.0.reg2mem
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%29 = load i64, i64* %40, align 8
%30 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %., i64 %29, i64* %42, i64 %2, i64 %1)
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%31 = call i64 @FUNC(i64 %10)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%32 = add i64 %storemerge49.reload, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 %34, i64* %storemerge49.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.26.reg2mem
br i1 %36, label LBL_1, label LBL_10
LBL_10:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 9
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_13, label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
br i1 %6, label LBL_1.lr.ph, label LBL_10
LBL_12:
%37 = icmp ugt i64 %indvars.iv.reload, 7
%38 = mul i64 %indvars.iv.reload, 8
%39 = add i64 %38, ptrtoint ([9 x i8*]* @gv_1 to i64)
%40 = inttoptr i64 %39 to i64*
%41 = icmp eq i64 %indvars.iv.reload, 0
%. = select i1 %41, i64 ptrtoint (i64* @gv_2 to i64), i64 ptrtoint (i64* @gv_3 to i64)
%42 = inttoptr i64 %. to i64*
store i64 %4, i64* %storemerge49.reg2mem
store i32 0, i32* %sv_0.26.reg2mem
br label LBL_1
LBL_13:
%43 = call i64 @FUNC(i64 %4)
ret i64 %43
uselistorder i64 %indvars.iv.reload, { 1, 4, 2, 3, 0 }
uselistorder i64 %13, { 1, 0 }
uselistorder i32 %sv_0.26.reload, { 3, 4, 1, 2, 0 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64* %storemerge49.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.26.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 4, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 0, { 0, 19, 20, 21, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 8, { 0, 2, 1, 3, 4 }
uselistorder i8 1, { 1, 0, 3, 2 }
uselistorder i1 false, { 5, 2, 3, 4, 0, 6, 7, 1 }
uselistorder i32 1, { 7, 10, 9, 8, 6, 5, 4, 3, 2, 13, 1, 0, 12, 11 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | dequantization_int_17385 | dequantization_int | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem30 = alloca i64
%.reg2mem28 = alloca i32
%.reg2mem26 = alloca i32
%.reg2mem24 = alloca i32
%.reg2mem22 = alloca i32
%.reg2mem20 = alloca i32
%.reg2mem18 = alloca i32
%.reg2mem16 = alloca i32
%.reg2mem14 = alloca i32
%storemerge12.reg2mem = alloca i32
%.reg2mem = alloca i64
%r9 = alloca i64, align 8
%rdx = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg4 to i64
%3 = ptrtoint i64* %arg3 to i64
%4 = add i64 %2, 12
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %12, %15
store i64 0, i64* %.lcssa.reg2mem
br i1 %16, label LBL_7, label LBL_1
LBL_1:
%17 = ptrtoint i64* %arg5 to i64
%18 = trunc i64 %arg1 to i32
%19 = sub i32 %6, %9
%20 = trunc i64 %arg2 to i32
%21 = mul i32 %19, %20
%22 = add i32 %21, %18
%23 = sext i32 %22 to i64
%24 = trunc i64 %1 to i32
%25 = add i64 %3, 4
%26 = inttoptr i64 %25 to i32*
%27 = bitcast i64* %rdx to i32*
%28 = bitcast i64* %r9 to i32*
%.pre = load i32, i32* %26, align 4
store i32 %15, i32* %.reg2mem22
store i32 %12, i32* %.reg2mem24
store i32 %24, i32* %.reg2mem26
store i32 %.pre, i32* %.reg2mem28
store i64 0, i64* %.reg2mem30
store i32 0, i32* %storemerge3.reg2mem
br label LBL_5
LBL_2:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload = load i64, i64* %.reg2mem
%29 = load i32, i32* %5, align 4
%30 = load i32, i32* %8, align 4
%31 = sub i32 %29, %30
%32 = mul i32 %31, %storemerge3.reload
%33 = add i32 %32, %storemerge12.reload
%34 = load i64, i64* %61, align 8
%35 = mul i64 %.reload, 4
%36 = add i64 %34, %35
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = load i32, i32* %28, align 8
%40 = mul i32 %39, %38
%41 = add i32 %40, 32768
%42 = sext i32 %33 to i64
%reass.add = add nsw i64 %42, %23
%reass.mul = mul i64 %reass.add, 4
%43 = add i64 %reass.mul, %2
%44 = ashr i32 %41, 16
%45 = inttoptr i64 %43 to i32*
store i32 %44, i32* %45, align 4
%46 = add i32 %storemerge12.reload, 1
%47 = load i32, i32* %26, align 4
%48 = load i32, i32* %27, align 8
%49 = sub i32 %47, %48
%50 = zext i32 %49 to i64
%51 = sext i32 %46 to i64
%52 = icmp slt i64 %51, %50
store i64 %51, i64* %.reg2mem
store i32 %46, i32* %storemerge12.reg2mem
br i1 %52, label LBL_2, label LBL_3
LBL_3:
%.pre6 = load i32, i32* %11, align 4
%.pre7 = load i32, i32* %14, align 4
store i32 %.pre7, i32* %.reg2mem14
store i32 %.pre6, i32* %.reg2mem16
store i32 %48, i32* %.reg2mem18
store i32 %47, i32* %.reg2mem20
br label LBL_4
LBL_4:
%.reload21 = load i32, i32* %.reg2mem20
%.reload19 = load i32, i32* %.reg2mem18
%.reload17 = load i32, i32* %.reg2mem16
%.reload15 = load i32, i32* %.reg2mem14
%53 = add i32 %storemerge3.reload, 1
%54 = sub i32 %.reload17, %.reload15
%55 = zext i32 %54 to i64
%56 = sext i32 %53 to i64
%57 = icmp slt i64 %56, %55
store i32 %.reload15, i32* %.reg2mem22
store i32 %.reload17, i32* %.reg2mem24
store i32 %.reload19, i32* %.reg2mem26
store i32 %.reload21, i32* %.reg2mem28
store i64 %56, i64* %.reg2mem30
store i32 %53, i32* %storemerge3.reg2mem
store i64 %55, i64* %.lcssa.reg2mem
br i1 %57, label LBL_5, label LBL_7
LBL_5:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload29 = load i32, i32* %.reg2mem28
%.reload27 = load i32, i32* %.reg2mem26
%.reload25 = load i32, i32* %.reg2mem24
%.reload23 = load i32, i32* %.reg2mem22
%58 = icmp eq i32 %.reload29, %.reload27
store i32 %.reload23, i32* %.reg2mem14
store i32 %.reload25, i32* %.reg2mem16
store i32 %.reload27, i32* %.reg2mem18
store i32 %.reload27, i32* %.reg2mem20
br i1 %58, label LBL_4, label LBL_2.lr.ph
LBL_6:
%.reload31 = load i64, i64* %.reg2mem30
%59 = mul i64 %.reload31, 8
%60 = add i64 %59, %17
%61 = inttoptr i64 %60 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge12.reg2mem
br label LBL_2
LBL_7:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %.reload27, { 2, 1, 0 }
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i32* %26, { 1, 0 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge12.reg2mem, { 2, 1, 0 }
uselistorder i32* %.reg2mem14, { 2, 0, 1 }
uselistorder i32* %.reg2mem16, { 2, 0, 1 }
uselistorder i32* %.reg2mem18, { 2, 0, 1 }
uselistorder i32* %.reg2mem20, { 2, 0, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | dyn_buf_write_18852 | dyn_buf_write | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi9.reg2mem = alloca i32*
%sv_0.0.in.in.lcssa.reg2mem = alloca i32
%sv_0.0.in.in6.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = add i64 %0, 12
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i32 %4, %1
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp sgt i32 %5, %8
store i32 %8, i32* %sv_0.0.in.in6.reg2mem
store i32 %8, i32* %sv_0.0.in.in.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%sv_0.0.in.in6.reload = load i32, i32* %sv_0.0.in.in6.reg2mem
%10 = icmp eq i32 %sv_0.0.in.in6.reload, 0
%11 = icmp eq i1 %10, false
store i32 %5, i32* %sv_0.0.in.in.lcssa.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%12 = mul i32 %sv_0.0.in.in6.reload, 3
%13 = icmp slt i32 %12, 0
%14 = zext i1 %13 to i32
%15 = add i32 %12, %14
%16 = ashr i32 %15, 1
%17 = icmp sgt i32 %5, %16
store i32 %16, i32* %sv_0.0.in.in6.reg2mem
store i32 %16, i32* %sv_0.0.in.in.lcssa.reg2mem
br i1 %17, label LBL_1, label LBL_3
LBL_3:
%sv_0.0.in.in.lcssa.reload = load i32, i32* %sv_0.0.in.in.lcssa.reg2mem
%18 = zext i32 %8 to i64
%19 = sext i32 %sv_0.0.in.in.lcssa.reload to i64
%20 = icmp sgt i64 %19, %18
br i1 %20, label LBL_5, label LBL_3.LBL_7_crit_edge
LBL_4:
%.pre7 = add i64 %0, 8
%.pre8 = inttoptr i64 %.pre7 to i32*
store i32* %.pre8, i32** %.pre-phi9.reg2mem
store i32 %4, i32* %.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
br label LBL_7
LBL_5:
%21 = call i64 @FUNC(i64 %19)
%22 = icmp eq i64 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_9, label LBL_6
LBL_6:
%23 = add i64 %0, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = inttoptr i64 %21 to i64*
%27 = inttoptr i64 %19 to i64*
%28 = call i64* @memcpy(i64* %26, i64* %27, i32 %25)
%29 = call i64 @FUNC(i64 %21)
store i64 %21, i64* %arg1, align 8
store i32 %sv_0.0.in.in.lcssa.reload, i32* %7, align 4
%.pre = load i32, i32* %3, align 4
store i32* %24, i32** %.pre-phi9.reg2mem
store i32 %.pre, i32* %.reg2mem
store i64 %21, i64* %rdi.0.reg2mem
br label LBL_7
LBL_7:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%.pre-phi9.reload = load i32*, i32** %.pre-phi9.reg2mem
%30 = sext i32 %.reload to i64
%31 = add i64 %rdi.0.reload, %30
%32 = inttoptr i64 %31 to i64*
%33 = bitcast i32* %arg2 to i64*
%34 = call i64* @memcpy(i64* %32, i64* %33, i32 %1)
store i32 %5, i32* %3, align 4
%35 = load i32, i32* %.pre-phi9.reload, align 4
%36 = zext i32 %35 to i64
%37 = icmp ugt i32 %5, %35
store i64 %36, i64* %rax.0.reg2mem
br i1 %37, label LBL_8, label LBL_9
LBL_8:
store i32 %5, i32* %.pre-phi9.reload, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %21, { 0, 1, 3, 2, 4 }
uselistorder i64 %19, { 2, 1, 0 }
uselistorder i32 %8, { 2, 0, 1, 3 }
uselistorder i32 %5, { 2, 3, 4, 5, 0, 1 }
uselistorder i32* %3, { 1, 0, 2 }
uselistorder i32 %1, { 1, 0 }
uselistorder i64 %0, { 0, 3, 1, 2, 4, 5 }
uselistorder i32* %sv_0.0.in.in6.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_9, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | ng_pkt_8183 | ng_pkt | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 24)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_11
LBL_1:
%3 = inttoptr i64 %0 to i64*
store i64 0, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i32*
store i32 1, i32* %5, align 4
%6 = icmp ult i64 %arg3, 3
br i1 %6, label LBL_10, label LBL_2
LBL_2:
%7 = add i64 %arg2, 3
%8 = inttoptr i64 %7 to i64*
%9 = trunc i64 %arg3 to i32
%10 = add i32 %9, -3
%11 = call i64* @memchr(i64* %8, i32 32, i32 %10)
%12 = icmp eq i64* %11, null
br i1 %12, label LBL_10, label LBL_3
LBL_3:
%13 = ptrtoint i64* %11 to i64
%14 = sub i64 %13, %7
%15 = icmp eq i64 %14, -1
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_11
LBL_4:
%17 = add i64 %14, 1
%18 = call i64 @FUNC(i64 %17)
store i64 %18, i64* %3, align 8
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_5, label LBL_11
LBL_5:
%21 = inttoptr i64 %18 to i64*
%22 = trunc i64 %14 to i32
%23 = call i64* @memcpy(i64* %21, i64* %8, i32 %22)
%24 = load i64, i64* %3, align 8
%25 = add i64 %24, %14
%26 = inttoptr i64 %25 to i8*
store i8 0, i8* %26, align 1
%27 = icmp eq i64 %14, 0
br i1 %27, label LBL_10, label LBL_6
LBL_6:
%28 = add i64 %13, 1
%29 = inttoptr i64 %28 to i64*
%30 = add i32 %22, -1
%31 = call i64* @memchr(i64* %29, i32 10, i32 %30)
%32 = icmp eq i64* %31, null
br i1 %32, label LBL_10, label LBL_7
LBL_7:
%33 = ptrtoint i64* %31 to i64
%34 = sub i64 %33, %28
%35 = icmp eq i64 %34, -1
%36 = icmp eq i1 %35, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %36, label LBL_8, label LBL_11
LBL_8:
%37 = add i64 %34, 1
%38 = call i64 @FUNC(i64 %37)
%39 = add i64 %0, 8
%40 = inttoptr i64 %39 to i64*
store i64 %38, i64* %40, align 8
%41 = icmp eq i64 %38, 0
%42 = icmp eq i1 %41, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %42, label LBL_9, label LBL_11
LBL_9:
%43 = inttoptr i64 %38 to i64*
%44 = trunc i64 %34 to i32
%45 = call i64* @memcpy(i64* %43, i64* %29, i32 %44)
%46 = load i64, i64* %40, align 8
%47 = add i64 %46, %34
%48 = inttoptr i64 %47 to i8*
store i8 0, i8* %48, align 1
store i64 %0, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%49 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
%50 = load i64, i64* %3, align 8
%51 = call i64 @FUNC(i64 %50)
%52 = call i64 @FUNC(i64 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %38, { 1, 0, 2 }
uselistorder i64 %34, { 0, 1, 3, 2 }
uselistorder i64* %31, { 1, 0 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64 %14, { 1, 0, 2, 4, 3 }
uselistorder i64* %11, { 1, 0 }
uselistorder i64* %3, { 2, 0, 1, 3 }
uselistorder i64 %0, { 2, 0, 1, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 1, 2, 3, 4, 5 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 1, { 2, 0, 3, 1 }
uselistorder i64* (i64*, i32, i32)* @memchr, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 4294967295, { 5, 0, 1, 2, 3, 4 }
uselistorder i64 (i64)* @git__malloc, { 2, 1, 0 }
uselistorder label LBL_11, { 5, 6, 0, 1, 2, 3, 4 }
} | 0 |
BinRealVul | wvlan_uil_block_8802 | wvlan_uil_block | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0))
%3 = load i64, i64* @gv_1, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %3, %0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = or i32 %12, 1
store i32 %13, i32* %11, align 4
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = call i64 @FUNC(i64 %0)
%19 = add i64 %1, 8
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_3:
%21 = load i64, i64* @gv_1, align 8
%22 = call i64 @FUNC(i64 %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%23 = add i64 %1, 8
%24 = inttoptr i64 %23 to i32*
store i32 -1, i32* %24, align 4
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%25 = load i64, i64* @gv_1, align 8
%26 = call i64 @FUNC(i64 %25, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0))
%27 = add i64 %1, 8
%28 = inttoptr i64 %27 to i32*
store i32 -2, i32* %28, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%29 = load i64, i64* @gv_1, align 8
%30 = call i64 @FUNC(i64 %29)
ret i64 %sv_0.0.reload
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i8*)* @DBG_ERROR, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | uv__pipe_close_4567 | uv__pipe_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = bitcast i64* %arg1 to i8*
%2 = call i32 @unlink(i8* %1)
call void @free(i64* nonnull %arg1)
store i64 0, i64* %arg1, align 8
br label LBL_2
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
ret i64 %4
uselistorder i64* %arg1, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | block_save_complete_2965 | block_save_complete | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%6 = load i32, i32* @gv_0, align 4
%7 = zext i32 %6 to i64
%8 = call i64 @FUNC(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i64 %7, i32 %5, i64 %3, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 %4)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = and i64 %9, 4294967295
store i64 %12, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%13 = call i64 @FUNC()
%14 = call i64 @FUNC()
%15 = load i32, i32* @gv_0, align 4
%16 = icmp eq i32 %15, 0
store i32 %5, i32* %rdx.0.reg2mem
br i1 %16, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_3, i64 0, i64 0), i32 62, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0))
store i64 ptrtoint ([20 x i8]* @gv_4 to i64), i64* %rcx.0.reg2mem
store i32 62, i32* %rdx.0.reg2mem
br label LBL_4
LBL_4:
%rdx.0.reload = load i32, i32* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%17 = call i64 @FUNC()
br label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %4, i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = and i64 %18, 4294967295
store i64 %22, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%23 = icmp eq i32 %19, 0
br i1 %23, label LBL_5, label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64 %4, i64 51201)
%25 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_5, i64 0, i64 0), i64 51201, i32 %rdx.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
%26 = call i64 @FUNC(i64 %4, i64 2)
%27 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_put_be64, { 1, 0 }
uselistorder i64 51201, { 1, 0 }
uselistorder [20 x i8]* @gv_4, { 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @DPRINTF, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i32* @gv_0, { 1, 0 }
} | 0 |
BinRealVul | find_signature_6557 | find_signature | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i32
%storemerge1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = sext i32 %arg3 to i64
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, -35
%6 = icmp eq i1 %5, false
%7 = icmp slt i32 %arg3, %arg2
%or.cond = icmp eq i1 %7, %6
store i32 %arg3, i32* %rax.0.in.reg2mem
br i1 %or.cond, label LBL_1, label LBL_11
LBL_1:
%8 = sext i32 %arg2 to i64
%9 = trunc i64 %arg5 to i8
store i32 %arg3, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%10 = sext i32 %storemerge1.reload to i64
%11 = add i64 %10, %0
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, -35
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_10, label LBL_3
LBL_3:
%16 = add i32 %storemerge1.reload, 15
%17 = zext i32 %16 to i64
%18 = icmp sgt i64 %8, %17
br i1 %18, label LBL_4, label LBL_7
LBL_4:
%19 = add i64 %11, 15
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = icmp eq i8 %21, -30
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_7, label LBL_5
LBL_5:
%24 = add i64 %11, 4
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, %9
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_6
LBL_6:
%29 = add i64 %11, 1
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, %arg4
%33 = icmp eq i1 %32, false
store i32 %storemerge1.reload, i32* %rax.0.in.reg2mem
br i1 %33, label LBL_10, label LBL_11
LBL_7:
%34 = add i32 %storemerge1.reload, 4
%35 = zext i32 %34 to i64
%36 = icmp sgt i64 %8, %35
br i1 %36, label LBL_8, label LBL_10
LBL_8:
%37 = add i64 %11, 4
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, %9
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = add i64 %11, 1
%43 = call i64 @FUNC(i64 %42)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, %arg4
%46 = icmp eq i1 %45, false
store i32 %storemerge1.reload, i32* %rax.0.in.reg2mem
br i1 %46, label LBL_10, label LBL_11
LBL_10:
%47 = add nsw i32 %storemerge1.reload, 1
%48 = icmp slt i32 %47, %arg2
store i32 %47, i32* %storemerge1.reg2mem
store i32 %arg3, i32* %rax.0.in.reg2mem
br i1 %48, label LBL_2, label LBL_11
LBL_11:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = zext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i32 %storemerge1.reload, { 5, 1, 2, 0, 3, 4 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32* %rax.0.in.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64 (i64)* @pletoh24, { 1, 0 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder i32 %arg3, { 0, 2, 1, 3, 4 }
uselistorder i32 %arg2, { 1, 2, 0 }
uselistorder label LBL_11, { 2, 1, 0, 3 }
uselistorder label LBL_10, { 0, 1, 4, 2, 3, 5 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | encode_subband_15968 | encode_subband | define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3, i64* %arg4, i64 %arg5, i64 %arg6, i32 %arg7, i32 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg3 to i64
%2 = ptrtoint i32* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = and i64 %arg6, 4294967295
%5 = and i64 %arg5, 4294967295
%6 = call i64 @FUNC(i64 %3, i64 %2, i64 %1, i64 %0, i64 %5, i64 %4)
ret i64 %6
} | 1 |
BinRealVul | p9dirent_read_17485 | p9dirent_read | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%1 = trunc i64 %arg4 to i32
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
store i64 %2, i64* %sv_1, align 8
%3 = add i64 %0, 32
%4 = add i64 %0, 24
%5 = bitcast i8** %sv_0 to i64*
%6 = bitcast i64* %sv_1 to i32*
%7 = call i64 @FUNC(i32* nonnull %6, i32 %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %4, i64 %3, i64* nonnull %5)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = and i64 %7, 4294967295
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %10)
%12 = call i64 @FUNC(i64 1, i32* nonnull %6)
br label LBL_3
LBL_2:
%13 = load i8*, i8** %sv_0, align 8
%14 = add i64 %0, 33
%15 = inttoptr i64 %14 to i8*
%16 = call i8* @strcpy(i8* %15, i8* %13)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i64 32, { 1, 0 }
} | 1 |
BinRealVul | get_wav_header_17604 | get_wav_header | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem5 = alloca i32
%.reg2mem3 = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = bitcast i64* %arg2 to i32*
store i32 1, i32* %5, align 4
%6 = add i64 %0, 4
%7 = inttoptr i64 %6 to i32*
store i32 %4, i32* %7, align 4
%8 = call i64 @FUNC(i64 %1)
%9 = trunc i64 %8 to i32
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = call i64 @FUNC(i64 %1)
%13 = trunc i64 %12 to i32
%14 = add i64 %0, 12
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = call i64 @FUNC(i64 %1)
%.tr = trunc i64 %16 to i32
%17 = mul i32 %.tr, 8
%18 = add i64 %0, 16
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = call i64 @FUNC(i64 %1)
%21 = trunc i64 %20 to i32
%22 = add i64 %0, 20
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = icmp eq i32 %2, 14
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_2, label LBL_1
LBL_1:
%26 = add i64 %0, 24
%27 = inttoptr i64 %26 to i32*
store i32 8, i32* %27, align 4
store i64 8, i64* %.reg2mem
br label LBL_3
LBL_2:
%28 = call i64 @FUNC(i64 %1)
%29 = trunc i64 %28 to i32
%30 = add i64 %0, 24
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%phitmp = and i64 %28, 4294967295
store i64 %phitmp, i64* %.reg2mem
br label LBL_3
LBL_3:
%sext = mul i64 %arg3, 4294967296
%32 = ashr exact i64 %sext, 32
%.reload = load i64, i64* %.reg2mem
%33 = and i64 %3, 4294967295
%34 = call i64 @FUNC(i64 %33, i64 %.reload)
%35 = trunc i64 %34 to i32
%36 = add i64 %0, 28
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = trunc i64 %32 to i32
%39 = icmp slt i32 %38, 17
store i64 %34, i64* %rax.0.reg2mem
br i1 %39, label LBL_11, label LBL_4
LBL_4:
%40 = call i64 @FUNC(i64 %1)
%41 = trunc i64 %40 to i32
%42 = add i64 %0, 32
%43 = inttoptr i64 %42 to i32*
store i32 %41, i32* %43, align 4
%44 = icmp slt i32 %41, 1
br i1 %44, label LBL_8, label LBL_5
LBL_5:
%45 = add nsw i64 %32, 4294967279
%46 = and i64 %45, 4294967295
%47 = and i64 %40, 4294967295
%48 = icmp ugt i64 %46, %47
store i32 %41, i32* %.reg2mem3
br i1 %48, label LBL_7, label LBL_6
LBL_6:
%49 = add i32 %38, -18
store i32 %49, i32* %43, align 4
store i32 %49, i32* %.reg2mem3
br label LBL_7
LBL_7:
%.reload4 = load i32, i32* %.reg2mem3
%50 = sext i32 %.reload4 to i64
%51 = call i64 @FUNC(i64 %50)
%52 = add i64 %0, 40
%53 = inttoptr i64 %52 to i64*
store i64 %51, i64* %53, align 8
%54 = load i32, i32* %43, align 4
%55 = call i64 @FUNC(i64 %1, i64 %51, i32 %54)
%.pre = load i32, i32* %43, align 4
store i32 %.pre, i32* %.reg2mem5
br label LBL_9
LBL_8:
store i32 0, i32* %43, align 4
store i32 0, i32* %.reg2mem5
br label LBL_9
LBL_9:
%.reload6 = load i32, i32* %.reg2mem5
%56 = sub i32 %38, %.reload6
%57 = zext i32 %56 to i64
%58 = icmp slt i32 %56, 19
store i64 %57, i64* %rax.0.reg2mem
br i1 %58, label LBL_11, label LBL_10
LBL_10:
%59 = add i32 %56, -18
%60 = zext i32 %59 to i64
%61 = call i64 @FUNC(i64 %1, i64 %60)
store i64 %61, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %43, { 2, 0, 1, 3, 4 }
uselistorder i32 %38, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64 %0, { 1, 2, 3, 4, 0, 5, 6, 7, 8, 9 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem3, { 0, 2, 1 }
uselistorder i32* %.reg2mem5, { 0, 2, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967295, { 1, 3, 2, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i64 (i64)* @get_le32, { 1, 0 }
uselistorder i64 (i64)* @get_le16, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | rgb16tobgr32_3580 | rgb16tobgr32 | define i64 @FUNC(i16* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i16*
%.reg2mem = alloca i64
%0 = ptrtoint i16* %arg1 to i64
%1 = lshr i64 %arg3, 63
%2 = add i64 %1, %arg3
%3 = and i64 %2, -2
%4 = add i64 %3, %0
%5 = icmp ugt i64 %4, %0
store i64 %0, i64* %.reg2mem
store i16* %arg1, i16** %sv_1.03.reg2mem
store i64 %arg2, i64* %sv_0.02.reg2mem
store i64 %0, i64* %.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i16*, i16** %sv_1.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = add i64 %.reload, 2
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %sv_1.03.reload, align 2
%9 = udiv i16 %8, 256
%10 = add i64 %sv_0.02.reload, 1
%11 = trunc i16 %9 to i8
%12 = and i8 %11, -8
%13 = inttoptr i64 %sv_0.02.reload to i8*
store i8 %12, i8* %13, align 1
%14 = udiv i16 %8, 8
%15 = add i64 %sv_0.02.reload, 2
%16 = trunc i16 %14 to i8
%17 = and i8 %16, -4
%18 = inttoptr i64 %10 to i8*
store i8 %17, i8* %18, align 1
%19 = trunc i16 %8 to i8
%20 = mul i8 %19, 8
%21 = add i64 %sv_0.02.reload, 3
%22 = inttoptr i64 %15 to i8*
store i8 %20, i8* %22, align 1
%23 = add i64 %sv_0.02.reload, 4
%24 = inttoptr i64 %21 to i8*
store i8 0, i8* %24, align 1
%25 = icmp ugt i64 %4, %6
store i64 %6, i64* %.reg2mem
store i16* %7, i16** %sv_1.03.reg2mem
store i64 %23, i64* %sv_0.02.reg2mem
store i64 %6, i64* %.lcssa.reg2mem
br i1 %25, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i16 %8, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i16** %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | envlist_create_260 | envlist_create | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 4)
%1 = add i64 %0, 4
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %0 to i32*
store i32 0, i32* %3, align 4
ret i64 %0
uselistorder i64 4, { 1, 0 }
} | 0 |
BinRealVul | extent_range_uptodate_4370 | extent_range_uptodate | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%rdi.02.reg2mem = alloca i64
%rdi.0.ph.reg2mem = alloca i64
%0 = sub i64 1, %arg2
%1 = add i64 %0, %arg3
%2 = call i64 @FUNC(i64 %arg2, i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %arg2, i64* %rdi.0.ph.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %arg2, i64 %arg3, i64 1, i64 1, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %5, i64* %rdi.0.ph.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_6
LBL_2:
%rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem
%9 = icmp ugt i64 %arg2, %arg3
store i64 %rdi.0.ph.reload, i64* %rdi.02.reg2mem
store i64 %arg2, i64* %sv_0.01.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%rdi.02.reload = load i64, i64* %rdi.02.reg2mem
%10 = udiv i64 %sv_0.01.reload, 4096
%11 = call i64 @FUNC(i64 %rdi.02.reload, i64 %10)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_6
LBL_4:
%14 = call i64 @FUNC(i64 %11)
%15 = trunc i64 %14 to i32
%16 = call i64 @FUNC(i64 %11)
%17 = icmp eq i32 %15, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_6
LBL_5:
%19 = add i64 %sv_0.01.reload, 4096
%20 = icmp ugt i64 %19, %arg3
store i64 %11, i64* %rdi.02.reg2mem
store i64 %19, i64* %sv_0.01.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %20, label LBL_6, label LBL_3
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %11, { 0, 2, 1, 3 }
uselistorder i64* %rdi.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 5 }
uselistorder i64 4096, { 1, 0 }
uselistorder i64 1, { 1, 0, 2, 3, 6, 5, 4 }
uselistorder i64 %arg3, { 3, 0, 2, 1 }
uselistorder i64 %arg2, { 0, 3, 4, 1, 5, 2 }
uselistorder label LBL_6, { 2, 1, 0, 3, 4 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kvm_emulate_cpuid_9304 | kvm_emulate_cpuid | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0, i64 2)
%3 = trunc i64 %2 to i32
%4 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%5 = call i64 @FUNC(i64 %0, i64 1, i64 0)
%6 = call i64 @FUNC(i64 %0, i64 2, i64 0)
%7 = call i64 @FUNC(i64 %0, i64 3, i64 0)
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %0, i64 %8, i32 %3)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = inttoptr i64 %9 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %0, i64 0, i64 %13)
%15 = add i64 %9, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %0, i64 1, i64 %18)
%20 = add i64 %9, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %0, i64 2, i64 %23)
%25 = add i64 %9, 12
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %0, i64 3, i64 %28)
br label LBL_2
LBL_2:
%30 = call i64 @FUNC(i64 %0, i64 3)
%31 = call i64 @FUNC(i64 %0, i64 2)
%32 = call i64 @FUNC(i64 %0, i64 1)
%33 = call i64 @FUNC(i64 %0, i64 0)
%34 = and i64 %33, 4294967295
%35 = and i64 %30, 4294967295
%36 = and i64 %31, 4294967295
%37 = and i64 %32, 4294967295
%38 = call i64 @FUNC(i64 %8, i64 %34, i64 %37, i64 %36, i64 %35)
ret i64 %38
uselistorder i64 %0, { 6, 7, 5, 4, 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i64 (i64, i64, i64)* @kvm_register_write, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @kvm_register_read, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | rsd_probe_15607 | rsd_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i32 @memcmp(i64* %arg1, i64* bitcast ([4 x i8]* @gv_0 to i64*), i32 3)
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 3
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%.off = add i8 %6, -50
%7 = icmp ult i8 %.off, 5
store i64 100, i64* %storemerge.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rtc_start_timer_15098 | rtc_start_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 0)
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%3 = call i32 (i32, i32, ...) @ioctl(i32 %0, i32 -2146930175)
%4 = call i32 (i32, i32, ...) @ioctl(i32 %0, i32 1074295298)
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%8 = call i32 @fwrite(i64* bitcast ([216 x i8]* @gv_3 to i64*), i32 1, i32 215, %_IO_FILE* %7)
br label LBL_5
LBL_4:
%9 = call i32 (i32, i32, ...) @ioctl(i32 %0, i32 536900099)
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i32 @close(i32 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%13 = zext i32 %0 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = sext i32 %0 to i64
store i64 %15, i64* %arg1, align 8
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 i32 %0, { 3, 2, 1, 4, 0, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 (i32, i32, ...)* @ioctl, { 2, 1, 0 }
} | 1 |
BinRealVul | qcow2_snapshot_delete_14327 | qcow2_snapshot_delete | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.shrunk.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = ptrtoint i8* %arg2 to i64
%4 = call i64 @FUNC(i64 %1, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br i1 %7, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %4, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = mul nsw i64 %8, 24
%10 = add i64 %9, %1
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %10, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %10, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %1, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = sub i32 0, %5
%23 = sub i32 %22, 1
%24 = add i32 %21, %23
%25 = mul i32 %24, 24
%26 = add i64 %10, 24
%27 = inttoptr i64 %26 to i64*
%28 = call i64* @memmove(i64* %11, i64* %27, i32 %25)
%29 = load i32, i32* %20, align 4
%30 = add i32 %29, -1
store i32 %30, i32* %20, align 4
%31 = call i64 @FUNC(i64 %1)
%32 = trunc i64 %31 to i32
%33 = icmp slt i32 %32, 0
%34 = icmp eq i1 %33, false
store i64 %31, i64* %rax.0.shrunk.reg2mem
br i1 %34, label LBL_2, label LBL_4
LBL_2:
%35 = call i64 @FUNC(i64 %12)
%36 = call i64 @FUNC(i64 %15)
%37 = and i64 %18, 4294967295
%38 = call i64 @FUNC(i64 %1, i64 %37, i32 %2, i64 4294967295)
%39 = trunc i64 %38 to i32
%40 = icmp slt i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 %38, i64* %rax.0.shrunk.reg2mem
br i1 %41, label LBL_3, label LBL_4
LBL_3:
%42 = mul i32 %2, 8
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %1, i64 %37, i64 %43)
%45 = add i64 %1, 16
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %1, 12
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = call i64 @FUNC(i64 %1, i64 %51, i32 %47, i64 0)
%53 = trunc i64 %52 to i32
%54 = icmp slt i32 %53, 0
%55 = icmp eq i1 %54, false
%. = select i1 %55, i64 0, i64 %52
store i64 %., i64* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32* %20, { 1, 0, 2 }
uselistorder i64 %10, { 0, 3, 2, 1 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 3, 2, 4, 5, 6, 7, 0, 8 }
uselistorder i64 (i64, i64, i32, i64)* @qcow2_update_snapshot_refcount, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | debug_log_18531 | debug_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:
store i32 16, i32* %sv_1, align 4
%21 = ptrtoint i8* %arg2 to i64
%22 = ptrtoint i64* %sv_0 to i64
%23 = call i64 @FUNC(i64* nonnull %sv_0, i64 256, i64 %21, i32* nonnull %sv_1)
%24 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%25 = zext i32 %24 to i64
%26 = mul nuw nsw i64 %25, 1374389535
%27 = udiv i64 %26, 137438953472
%28 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %27, i64* nonnull %sv_0, i64 %arg5, i64 %arg6)
ret i64 0
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
} | 1 |
BinRealVul | ftrace_shutdown_8087 | ftrace_shutdown | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.068.reg2mem = alloca i32*
%sv_1.067.reg2mem = alloca i32*
%sv_1.0.ph.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = load i8, i8* bitcast (i32* @gv_0 to i8*), align 4
%3 = zext i8 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %rax.1.reg2mem
br i1 %7, label LBL_11, label LBL_1
LBL_1:
%8 = load i32, i32* @gv_1, align 4
%9 = add i32 %8, -1
store i32 %9, i32* @gv_1, align 4
%10 = icmp slt i32 %9, 0
%11 = zext i1 %10 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = urem i64 %1, 2
%14 = icmp eq i64 %13, 0
store i32* %arg1, i32** %sv_1.0.ph.reg2mem
br i1 %14, label LBL_4, label LBL_2
LBL_2:
%15 = load i32, i32* @gv_2, align 4
%16 = add i32 %15, -1
store i32 %16, i32* @gv_2, align 4
%17 = icmp slt i32 %16, 0
%18 = zext i1 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = load i32, i32* @gv_2, align 4
%21 = icmp eq i32 %20, 0
store i32* bitcast (i32** @gv_3 to i32*), i32** %sv_1.0.ph.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = load i32, i32* @gv_1, align 4
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i64
%25 = call i64 @FUNC(i64 %24)
store i32* bitcast (i32** @gv_3 to i32*), i32** %sv_1.067.reg2mem
br label LBL_5
LBL_4:
%sv_1.0.ph.reload = load i32*, i32** %sv_1.0.ph.reg2mem
%26 = ptrtoint i32* %sv_1.0.ph.reload to i64
%27 = call i64 @FUNC(i64 %26, i64 1)
%28 = icmp eq i32* %sv_1.0.ph.reload, bitcast (i32** @gv_3 to i32*)
%29 = icmp eq i1 %28, false
store i32* %sv_1.0.ph.reload, i32** %sv_1.067.reg2mem
store i32* %sv_1.0.ph.reload, i32** %sv_1.068.reg2mem
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%sv_1.067.reload = load i32*, i32** %sv_1.067.reg2mem
%30 = load i32, i32* @gv_2, align 4
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i32* %sv_1.067.reload, i32** %sv_1.068.reg2mem
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%sv_1.068.reload = load i32*, i32** %sv_1.068.reg2mem
%33 = load i32, i32* %sv_1.068.reload, align 4
%34 = and i32 %33, -3
store i32 %34, i32* %sv_1.068.reload, align 4
br label LBL_7
LBL_7:
%sext = mul i64 %arg2, 4294967296
%sext3 = ashr exact i64 %sext, 32
%35 = or i64 %sext3, 4
%36 = load i64, i64* @gv_4, align 8
%37 = load i64, i64* @gv_5, align 8
%38 = icmp eq i64 %36, %37
store i64 %35, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_9, label LBL_8
LBL_8:
store i64 %37, i64* @gv_4, align 8
%39 = or i64 %sext3, 12
store i64 %39, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%40 = load i8, i8* inttoptr (i64 4210724 to i8*), align 4
%41 = xor i8 %40, 1
%42 = zext i8 %41 to i64
%43 = icmp eq i8 %41, 0
%44 = icmp eq i1 %43, false
store i64 %42, i64* %rax.1.reg2mem
br i1 %44, label LBL_11, label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%45 = and i64 %sv_0.0.reload, 4294967295
%46 = call i64 @FUNC(i64 %45)
store i64 %46, i64* %rax.1.reg2mem
br label LBL_11
LBL_11:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32* %sv_1.0.ph.reload, { 0, 1, 3, 2 }
uselistorder i32** %sv_1.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_1.068.reg2mem, { 0, 2, 1 }
uselistorder i32* bitcast (i32** @gv_3 to i32*), { 2, 0, 1 }
uselistorder i32* @gv_2, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @WARN_ON_ONCE, { 2, 1, 0 }
uselistorder i32* @gv_1, { 2, 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | vp8_decode_free_15725 | vp8_decode_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i64 1)
%2 = call i64 @FUNC(i64 %0, i64 1)
ret i64 0
uselistorder i64 %0, { 1, 0 }
} | 1 |
BinRealVul | scsi_free_request_11115 | scsi_free_request | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, -8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %2)
ret i64 %3
} | 1 |
BinRealVul | openpic_load_IRQ_queue_14881 | openpic_load_IRQ_queue | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = add i64 %0, 4
%4 = call i64 @FUNC(i64 %1, i64 %3)
%5 = add i64 %0, 8
%6 = call i64 @FUNC(i64 %1, i64 %5)
ret i64 %6
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_sbe32s, { 1, 0 }
} | 1 |
BinRealVul | make_filename_safe_5609 | make_filename_safe | 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 i8
%3 = icmp eq i8 %2, 0
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = inttoptr i64 %arg1 to i64*
%5 = call i32 @memcmp(i64* %4, i64* bitcast ([9 x i8]* @gv_0 to i64*), i32 9)
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_8, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %arg1, i64 0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_9
LBL_3:
%10 = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %7, i64 0, i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%17 = call i64 @FUNC(i64 %7)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %19, label LBL_9, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%21 = call i64 @FUNC(i64 %arg1)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 2, 0, 3, 1, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 3, 2 }
uselistorder i64 (i64)* @efree, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_9, { 2, 3, 0, 4, 1 }
} | 0 |
BinRealVul | pico_fragments_reassemble_12480 | pico_fragments_reassemble | define i64 @FUNC(i64* %arg1, i32 %arg2, i8 %arg3, i8 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i32
%storemerge47.in.in.in.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%8 = zext i8 %arg4 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i16
%11 = icmp eq i16 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_10
LBL_5:
%13 = trunc i64 %9 to i32
%14 = add i32 %13, %arg2
%15 = urem i32 %14, 65536
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = icmp eq i64 %17, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %18, label LBL_10, label LBL_6
LBL_6:
%19 = add i64 %17, 40
%20 = inttoptr i64 %17 to i64*
store i64 %19, i64* %20, align 8
%21 = add i64 %17, 8
%22 = inttoptr i64 %21 to i16*
store i16 %10, i16* %22, align 2
%23 = inttoptr i64 %4 to i64*
%24 = load i64, i64* %23, align 8
%25 = load i64, i64* %20, align 8
%26 = inttoptr i64 %25 to i64*
%27 = inttoptr i64 %24 to i64*
%28 = urem i32 %13, 65536
%29 = call i64* @memcpy(i64* %26, i64* %27, i32 %28)
%30 = load i64, i64* %20, align 8
%31 = load i16, i16* %22, align 2
%32 = zext i16 %31 to i64
%33 = add i64 %30, %32
%34 = add i64 %17, 16
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
%36 = trunc i32 %arg2 to i16
%37 = add i64 %17, 24
%38 = inttoptr i64 %37 to i16*
store i16 %36, i16* %38, align 2
%39 = add i64 %4, 32
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = add i64 %17, 32
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
%44 = icmp eq i64 %25, 0
store i64 %25, i64* %storemerge47.in.in.in.reg2mem
store i32 0, i32* %sv_0.05.reg2mem
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem
%storemerge47.in.in.in.reload = load i64, i64* %storemerge47.in.in.in.reg2mem
%storemerge47.in.in = add i64 %storemerge47.in.in.in.reload, 8
%storemerge47.in = inttoptr i64 %storemerge47.in.in to i64*
%storemerge47 = load i64, i64* %storemerge47.in, align 8
%45 = inttoptr i64 %storemerge47.in.in.in.reload to i64*
%46 = load i64, i64* %45, align 8
%47 = add i64 %46, 24
%48 = inttoptr i64 %47 to i16*
%49 = load i16, i16* %48, align 2
%50 = add i64 %46, 16
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = load i64, i64* %35, align 8
%54 = zext i32 %sv_0.05.reload to i64
%55 = add i64 %53, %54
%56 = inttoptr i64 %55 to i64*
%57 = inttoptr i64 %52 to i64*
%58 = zext i16 %49 to i32
%59 = call i64* @memcpy(i64* %56, i64* %57, i32 %58)
%60 = load i16, i16* %48, align 2
%61 = call i64 @FUNC(i64 %3, i64 %46)
%62 = call i64 @FUNC(i64 %46)
%63 = icmp eq i64 %storemerge47, 0
%64 = zext i16 %60 to i32
%65 = add i32 %sv_0.05.reload, %64
store i64 %storemerge47, i64* %storemerge47.in.in.in.reg2mem
store i32 %65, i32* %sv_0.05.reg2mem
br i1 %63, label LBL_8, label LBL_7
LBL_8:
%66 = zext i8 %arg3 to i64
%67 = call i64 @FUNC(i64 %17, i64 %66)
%68 = trunc i64 %67 to i32
%69 = icmp eq i32 %68, -1
%70 = icmp eq i1 %69, false
store i64 0, i64* %rax.0.reg2mem
br i1 %70, label LBL_10, label LBL_9
LBL_9:
%71 = call i64 @FUNC(i64 %17)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge47.in.in.in.reload, { 1, 0 }
uselistorder i32 %sv_0.05.reload, { 1, 0 }
uselistorder i64 %17, { 0, 1, 2, 3, 4, 5, 7, 6, 8 }
uselistorder i64* %storemerge47.in.in.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 6, 5 }
uselistorder i64 (i8*)* @frag_dbg, { 1, 0 }
uselistorder i32 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 2, 1, 0, 3, 4, 5 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | read_one_dev_7471 | read_one_dev | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.3.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%.reg2mem5 = alloca i64
%rdi.2.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%6 = call i64 @FUNC(i64 %4, i64 %3)
%7 = call i64 @FUNC(i64 %3)
%8 = call i64 @FUNC(i64 %4, i64* nonnull %sv_3, i64 %7, i64 16)
%9 = call i64 @FUNC(i64 %3)
%10 = call i64 @FUNC(i64 %4, i64* nonnull %sv_2, i64 %9, i64 16)
%11 = ptrtoint i64* %sv_2 to i64
%12 = call i32 @memcmp(i64* nonnull %sv_2, i64* %arg1, i32 16)
%13 = icmp eq i32 %12, 0
store i64 %5, i64* %sv_1.0.reg2mem
store i64 %11, i64* %rdi.0.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %5, i64* nonnull %sv_2)
%15 = icmp ult i64 %14, -1000
store i64 %14, i64* %sv_1.0.reg2mem
store i64 %5, i64* %rdi.0.reg2mem
store i64 %14, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_26
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%16 = call i64 @FUNC(i64 %rdi.0.reload, i64 %6, i64* nonnull %sv_3, i64* nonnull %sv_2)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_8, label LBL_3
LBL_3:
%19 = call i64 @FUNC(i64 %5, i64 1)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %sv_3, i64 1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_26
LBL_5:
%24 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %6, i64* nonnull %sv_3)
%25 = icmp ult i64 %24, -1000
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %24, i64 %2, i64 %1)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_26
LBL_7:
%27 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %sv_3, i64 0)
%.pre1 = inttoptr i64 %24 to i64*
%.pre4 = load i64, i64* %.pre1, align 8
store i64 %.pre4, i64* %.reg2mem5
store i64* %.pre1, i64** %.pre-phi.reg2mem
store i64 %24, i64* %sv_0.0.reg2mem
store i64 %5, i64* %rdi.3.reg2mem
br label LBL_19
LBL_8:
%28 = add i64 %16, 20
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i32 %30, i32* %.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %32, label LBL_12, label LBL_9
LBL_9:
%33 = call i64 @FUNC(i64 %5, i64 1)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%37 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %sv_3, i64 1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_26
LBL_11:
%38 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %sv_3, i64 0)
%.pre = load i32, i32* %29, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %5, i64* %rdi.1.reg2mem
br label LBL_12
LBL_12:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%39 = icmp eq i32 %.reload, 0
%40 = icmp eq i1 %39, false
store i64 %rdi.1.reload, i64* %rdi.2.reg2mem
br i1 %40, label LBL_15, label LBL_13
LBL_13:
%41 = add i64 %16, 24
%42 = call i64 @FUNC(i64 2, i64 %41)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i64 2, i64* %rdi.2.reg2mem
br i1 %45, label LBL_15, label LBL_14
LBL_14:
%46 = inttoptr i64 %16 to i64*
%47 = load i64, i64* %46, align 8
%48 = add i64 %47, 20
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i32 %50, 1
store i32 %51, i32* %49, align 4
%52 = call i64 @FUNC(i64 2, i64 %41)
store i64 2, i64* %rdi.2.reg2mem
br label LBL_15
LBL_15:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%53 = inttoptr i64 %16 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %sv_1.0.reload, %54
store i64 %sv_1.0.reload, i64* %.reg2mem5
store i64* %53, i64** %.pre-phi.reg2mem
store i64 %16, i64* %sv_0.0.reg2mem
store i64 %rdi.2.reload, i64* %rdi.3.reg2mem
br i1 %55, label LBL_19, label LBL_16
LBL_16:
%56 = add i64 %16, 24
%57 = call i64 @FUNC(i64 2, i64 %56)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_18, label LBL_17
LBL_17:
%61 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0))
br label LBL_18
LBL_18:
%62 = add i64 %sv_1.0.reload, 28
%63 = add i64 %16, 28
%64 = call i64 @FUNC(i64 %63, i64 %62)
%65 = load i64, i64* %53, align 8
%66 = add i64 %65, 16
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = add i32 %68, -1
store i32 %69, i32* %67, align 4
%70 = add i64 %sv_1.0.reload, 16
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i32 %72, 1
store i32 %73, i32* %71, align 4
%74 = load i64, i64* %53, align 8
%75 = add i64 %74, 20
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = add i32 %77, -1
store i32 %78, i32* %76, align 4
%79 = add i64 %sv_1.0.reload, 20
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i32 %81, 1
store i32 %82, i32* %80, align 4
store i64 %sv_1.0.reload, i64* %53, align 8
store i64 %sv_1.0.reload, i64* %.reg2mem5
store i64* %53, i64** %.pre-phi.reg2mem
store i64 %16, i64* %sv_0.0.reg2mem
store i64 %63, i64* %rdi.3.reg2mem
br label LBL_19
LBL_19:
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%.reload6 = load i64, i64* %.reg2mem5
%83 = icmp eq i64 %.reload6, %rdi.3.reload
%.pre2 = add i64 %sv_0.0.reload, 24
br i1 %83, label LBL_23, label LBL_20
LBL_20:
%84 = call i64 @FUNC(i64 3, i64 %.pre2)
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %85, 0
br i1 %86, label LBL_22, label LBL_21
LBL_21:
%87 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_22
LBL_22:
%88 = add i64 %sv_0.0.reload, 8
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
%91 = call i64 @FUNC(i64 %4, i64 %3)
%92 = trunc i64 %91 to i32
%93 = icmp eq i32 %90, %92
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %93, label LBL_23, label LBL_26
LBL_23:
%94 = call i64 @FUNC(i64 %4, i64 %3, i64 %sv_0.0.reload)
%95 = call i64 @FUNC(i64 4, i64 %.pre2)
%96 = call i64 @FUNC(i64 3, i64 %.pre2)
%97 = trunc i64 %96 to i32
%98 = icmp eq i32 %97, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %98, label LBL_26, label LBL_24
LBL_24:
%99 = call i64 @FUNC(i64 5, i64 %.pre2)
%100 = trunc i64 %99 to i32
%101 = icmp eq i32 %100, 0
%102 = icmp eq i1 %101, false
store i64 0, i64* %rax.0.reg2mem
br i1 %102, label LBL_26, label LBL_25
LBL_25:
%103 = load i64, i64* %.pre-phi.reload, align 8
%104 = add i64 %103, 24
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = add i64 %sv_0.0.reload, 12
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = add i32 %109, %106
store i32 %110, i32* %105, align 4
%111 = add i64 %5, 8
%112 = load i32, i32* %108, align 4
%113 = add i64 %sv_0.0.reload, 16
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = sub i32 %112, %115
%117 = zext i32 %116 to i64
%118 = call i64 @FUNC(i64 %117, i64 %111)
store i64 0, 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 %sv_0.0.reload, { 2, 1, 0, 3, 4 }
uselistorder i64* %53, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 %24, { 1, 2, 0, 3, 4 }
uselistorder i64 %16, { 1, 3, 5, 0, 4, 2, 6, 7, 8 }
uselistorder i64 %sv_1.0.reload, { 1, 6, 5, 4, 3, 0, 2, 7 }
uselistorder i64 %6, { 4, 5, 1, 0, 2, 3, 6 }
uselistorder i64* %sv_2, { 0, 1, 2, 4, 3 }
uselistorder i64 %5, { 12, 1, 9, 10, 11, 0, 7, 6, 5, 8, 2, 4, 3 }
uselistorder i64 %4, { 1, 0, 2, 3, 4 }
uselistorder i64 %3, { 1, 0, 2, 3, 4 }
uselistorder i64* %.reg2mem5, { 0, 3, 2, 1 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rdi.3.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 8, 7, 6, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 1, 0 }
uselistorder i64 (i64, i64)* @set_bit, { 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 4, 3, 2, 1, 0 }
uselistorder i64 2, { 2, 0, 3, 1, 4 }
uselistorder i64 24, { 1, 0, 2, 3 }
uselistorder i64 4294967294, { 1, 0 }
uselistorder i64 (i64, i64, i64*, i64)* @btrfs_report_missing_device, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @btrfs_test_opt, { 1, 0 }
uselistorder i64 (i64, i64*, i64, i64)* @read_extent_buffer, { 1, 0 }
uselistorder i64 16, { 2, 3, 4, 0, 1 }
uselistorder label LBL_26, { 2, 1, 0, 3, 5, 6, 7, 4 }
uselistorder label LBL_23, { 1, 0 }
} | 1 |
BinRealVul | vmx_complete_atomic_exit_12593 | vmx_complete_atomic_exit | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
%5 = icmp eq i32 %2, 2
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_7, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 28)
%8 = ptrtoint i32* %arg1 to i64
%9 = trunc i64 %7 to i32
%10 = add i64 %8, 4
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = and i64 %7, 4294967295
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC()
br label LBL_4
LBL_4:
%17 = urem i32 %9, 16
%18 = zext i32 %17 to i64
%19 = icmp eq i32 %17, 2
%20 = icmp eq i1 %19, false
store i64 %18, i64* %rax.0.reg2mem
br i1 %20, label LBL_7, label LBL_5
LBL_5:
%21 = urem i32 %9, 2
%22 = icmp eq i32 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = add i64 %8, 8
%24 = call i64 @FUNC(i64 %23)
call void @FUNC(i8 2)
%25 = call i64 @FUNC(i64 %23)
store i64 %25, 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 i32 %17, { 1, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | nfs_readdir_18058 | nfs_readdir | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC()
%2 = call i64 @FUNC(i64 0, i64 %0)
%3 = icmp slt i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
ret i64 %2
LBL_2:
%6 = ptrtoint i64* %sv_0 to i64
%7 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 40)
store i64 %0, i64* %sv_0, align 8
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %6, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
call void @llvm.trap()
unreachable
} | 1 |
BinRealVul | net_slirp_init_14789 | net_slirp_init | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i32 1, i32* @gv_0, align 4
%3 = load [10 x i8]*, [10 x i8]** @gv_1, align 8
%4 = ptrtoint [10 x i8]* %3 to i64
%5 = load [14 x i8]*, [14 x i8]** @gv_2, align 8
%6 = ptrtoint [14 x i8]* %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 %4)
br label LBL_2
LBL_2:
%8 = ptrtoint i64* %arg1 to i64
%9 = ptrtoint i8* %arg3 to i64
%10 = ptrtoint i8* %arg2 to i64
%11 = call i64 @FUNC(i64 %8, i64 %10, i64 %9, i64 4198761, i64 0, i64 0)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** @gv_3, align 8
store i8 0, i8* %12, align 1
ret i64 0
uselistorder i32 0, { 1, 0 }
uselistorder i32* @gv_0, { 1, 0 }
} | 1 |
BinRealVul | generate_subkeys_17549 | generate_subkeys | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 16)
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64 16, i64* nonnull %sv_1, i64* nonnull %sv_0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = add i64 %0, 4
%7 = call i64 @FUNC(i64 %6, i64* nonnull %sv_1)
%8 = add i64 %0, 20
%9 = inttoptr i64 %6 to i64*
%10 = call i64 @FUNC(i64 %8, i64* %9)
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 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @multiply_by_u, { 1, 0 }
} | 1 |
BinRealVul | acpi_pcihp_get_bsel_3284 | acpi_pcihp_get_bsel | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 0, i64* nonnull %sv_0)
%2 = load i64, i64* %sv_0, align 8
%3 = icmp eq i64 %2, 0
%4 = icmp ult i64 %1, 256
%5 = icmp eq i1 %4, %3
%.mux = select i1 %5, i64 %1, i64 4294967295
store i64 %.mux, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i1 %3, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | r_read_ble8_12864 | r_read_ble8 | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 256
ret i64 %2
} | 1 |
BinRealVul | lpfc_sli4_eq_release_3918 | lpfc_sli4_eq_release | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%rdi.05.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_9
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 12
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %5, %8
%10 = icmp eq i1 %9, false
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_4
LBL_2:
%11 = add i64 %2, 16
%12 = inttoptr i64 %11 to i32*
store i32 %8, i32* %.reg2mem
store i64 %2, i64* %rdi.05.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br label LBL_3
LBL_3:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%rdi.05.reload = load i64, i64* %rdi.05.reg2mem
%.reload = load i32, i32* %.reg2mem
%13 = zext i32 %.reload to i64
%14 = mul i64 %13, 4
%15 = add i64 %14, %rdi.05.reload
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 0, i64 %18, i64 0)
%20 = add i32 %sv_0.04.reload, 1
%21 = load i32, i32* %7, align 4
%22 = add i32 %21, 1
%23 = load i32, i32* %12, align 4
%24 = urem i32 %22, %23
store i32 %24, i32* %7, align 4
%25 = load i32, i32* %4, align 4
%26 = icmp eq i32 %25, %24
%27 = icmp eq i1 %26, false
store i32 %24, i32* %.reg2mem
store i64 0, i64* %rdi.05.reg2mem
store i32 %20, i32* %sv_0.04.reg2mem
store i32 %20, i32* %sv_0.0.lcssa.reg2mem
br i1 %27, label LBL_3, label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%28 = icmp eq i32 %sv_0.0.lcssa.reload, 0
%29 = icmp eq i1 %28, false
%sext.mask = urem i64 %arg2, 256
%30 = icmp eq i64 %sext.mask, 1
%or.cond = or i1 %30, %29
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_9
LBL_5:
store i32 0, i32* %sv_1, align 4
%31 = trunc i64 %arg2 to i8
%32 = icmp eq i8 %31, 0
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%33 = call i64 @FUNC(i64 1, i32* nonnull %sv_1, i64 1)
%34 = call i64 @FUNC(i64 2, i32* nonnull %sv_1, i64 1)
br label LBL_7
LBL_7:
%35 = zext i32 %sv_0.0.lcssa.reload to i64
%36 = call i64 @FUNC(i64 3, i32* nonnull %sv_1, i64 %35)
%37 = call i64 @FUNC(i64 4, i32* nonnull %sv_1, i64 0)
%38 = add i64 %2, 20
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 5, i32* nonnull %sv_1, i64 %41)
%43 = add i64 %2, 24
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = load i32, i32* %sv_1, align 4
%49 = zext i32 %47 to i64
%50 = zext i32 %48 to i64
%51 = call i64 @FUNC(i64 %50, i64 %49)
%52 = load i64, i64* %44, align 8
%53 = add i64 %52, 4
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 1
%57 = icmp eq i1 %56, false
%or.cond3 = or i1 %32, %57
store i64 %35, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_9, label LBL_8
LBL_8:
%58 = inttoptr i64 %52 to i32*
%59 = load i32, i32* %58, align 4
%60 = zext i32 %59 to i64
%61 = call i64 @FUNC(i64 %60)
store i64 %35, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %35, { 1, 0, 2 }
uselistorder i32* %7, { 2, 1, 0 }
uselistorder i32* %4, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0, 3, 5, 4 }
uselistorder i32* %sv_1, { 5, 0, 1, 2, 3, 4, 6 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.05.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i32*, i64)* @bf_set, { 4, 3, 2, 1, 0 }
uselistorder i64 4, { 2, 1, 0 }
uselistorder i32 0, { 2, 3, 1, 0 }
uselistorder i1 false, { 3, 1, 4, 0, 2 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ds1338_recv_17093 | ds1338_recv | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 256
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = zext i8 %3 to i64
%5 = add i64 %4, %0
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = add i8 %3, 1
store i8 %8, i8* %2, align 1
%9 = zext i8 %7 to i64
ret i64 %9
} | 1 |
BinRealVul | ff_mpeg4_pred_ac_5180 | ff_mpeg4_pred_ac | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv24.reg2mem = alloca i64
%.pre-phi44.reg2mem = alloca i64*
%indvars.iv30.reg2mem = alloca i64
%.reg2mem52 = alloca i8
%.reg2mem50 = alloca i32
%indvars.iv27.reg2mem = alloca i64
%indvars.iv36.reg2mem = alloca i64
%.reg2mem48 = alloca i8
%.reg2mem = alloca i32
%indvars.iv33.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 32
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %3, 40
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = sext i32 %arg3 to i64
%11 = mul i64 %10, 4
%12 = add i64 %9, %11
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = mul i32 %14, 16
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %6
%19 = add i64 %3, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_0.LBL_17_crit_edge, label LBL_2
LBL_1:
%.pre42 = add i64 %3, 56
%.pre43 = inttoptr i64 %.pre42 to i64*
store i64* %.pre43, i64** %.pre-phi44.reg2mem
br label LBL_17
LBL_2:
%23 = add i64 %3, 24
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = trunc i64 %1 to i32
%27 = icmp eq i32 %arg4, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_3
LBL_3:
%29 = add i64 %18, -32
%30 = icmp eq i32 %26, 0
br i1 %30, label LBL_6, label LBL_4
LBL_4:
%31 = add i64 %3, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i64 %3, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = mul i32 %36, %33
%38 = add i32 %26, -1
%39 = add i32 %38, %37
%40 = add i64 %3, 12
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = sext i32 %39 to i64
%44 = add i64 %25, %43
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %42, %47
%49 = icmp ne i32 %arg3, 1
%or.cond.not = icmp eq i1 %49, %48
%50 = icmp eq i32 %arg3, 3
%51 = icmp eq i1 %50, false
%or.cond11 = icmp eq i1 %51, %or.cond.not
br i1 %or.cond11, label LBL_5, label LBL_6
LBL_5:
%52 = add i64 %3, 56
%53 = inttoptr i64 %52 to i64*
store i32 %42, i32* %.reg2mem
store i8 %46, i8* %.reg2mem48
store i64 1, i64* %indvars.iv36.reg2mem
br label LBL_8
LBL_6:
%54 = add i64 %3, 56
%55 = inttoptr i64 %54 to i64*
store i64 1, i64* %indvars.iv33.reg2mem
br label LBL_7
LBL_7:
%indvars.iv33.reload = load i64, i64* %indvars.iv33.reg2mem
%56 = load i64, i64* %55, align 8
%57 = mul i64 %indvars.iv33.reload, 32
%58 = add i64 %56, %57
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = sext i32 %60 to i64
%62 = mul i64 %61, 2
%63 = add i64 %62, %2
%64 = inttoptr i64 %63 to i16*
%65 = load i16, i16* %64, align 2
%66 = mul i64 %indvars.iv33.reload, 2
%67 = add i64 %66, %29
%68 = inttoptr i64 %67 to i16*
%69 = load i16, i16* %68, align 2
%70 = add i16 %69, %65
store i16 %70, i16* %64, align 2
%indvars.iv.next34 = add nuw nsw i64 %indvars.iv33.reload, 1
%exitcond35 = icmp eq i64 %indvars.iv.next34, 8
store i64 %indvars.iv.next34, i64* %indvars.iv33.reg2mem
store i64* %55, i64** %.pre-phi44.reg2mem
br i1 %exitcond35, label LBL_17, label LBL_7
LBL_8:
%indvars.iv36.reload = load i64, i64* %indvars.iv36.reg2mem
%.reload49 = load i8, i8* %.reg2mem48
%.reload = load i32, i32* %.reg2mem
%71 = load i64, i64* %53, align 8
%72 = mul i64 %indvars.iv36.reload, 32
%73 = add i64 %71, %72
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
%76 = sext i32 %75 to i64
%77 = mul i64 %76, 2
%78 = add i64 %77, %2
%79 = inttoptr i64 %78 to i16*
%80 = load i16, i16* %79, align 2
%81 = mul i64 %indvars.iv36.reload, 2
%82 = add i64 %81, %29
%83 = inttoptr i64 %82 to i16*
%84 = load i16, i16* %83, align 2
%85 = sext i16 %84 to i32
%86 = sext i8 %.reload49 to i32
%87 = mul nsw i32 %85, %86
%88 = icmp slt i32 %.reload, 0
%89 = zext i1 %88 to i32
%90 = add i32 %.reload, %89
%91 = ashr i32 %90, 1
%92 = add nsw i32 %87, %91
%93 = ashr i32 %92, 31
%94 = zext i32 %92 to i64
%95 = zext i32 %93 to i64
%96 = mul i64 %95, 4294967296
%97 = or i64 %96, %94
%98 = zext i32 %.reload to i64
%99 = sdiv i64 %97, %98
%100 = trunc i64 %99 to i16
%101 = add i16 %80, %100
store i16 %101, i16* %79, align 2
%indvars.iv.next37 = add nuw nsw i64 %indvars.iv36.reload, 1
%exitcond38 = icmp eq i64 %indvars.iv.next37, 8
store i64* %53, i64** %.pre-phi44.reg2mem
br i1 %exitcond38, label LBL_17, label LBL_8.LBL_8_crit_edge
LBL_9:
%.pre = load i8, i8* %45, align 1
%.pre39 = load i32, i32* %41, align 4
store i32 %.pre39, i32* %.reg2mem
store i8 %.pre, i8* %.reg2mem48
store i64 %indvars.iv.next37, i64* %indvars.iv36.reg2mem
br label LBL_8
LBL_10:
%102 = add i64 %3, 4
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = add i64 %3, 48
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = add i64 %107, %11
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = mul i32 %110, 16
%112 = sext i32 %111 to i64
%113 = mul i64 %112, 2
%114 = sub i64 %18, %113
%115 = icmp eq i32 %104, 0
br i1 %115, label LBL_13, label LBL_11
LBL_11:
%116 = add i64 %3, 8
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = mul i32 %118, %104
%120 = sub i32 %26, %118
%121 = add i32 %120, %119
%122 = add i64 %3, 12
%123 = inttoptr i64 %122 to i32*
%124 = load i32, i32* %123, align 4
%125 = sext i32 %121 to i64
%126 = add i64 %25, %125
%127 = inttoptr i64 %126 to i8*
%128 = load i8, i8* %127, align 1
%129 = sext i8 %128 to i32
%130 = icmp ne i32 %124, %129
%131 = icmp ne i32 %arg3, 2
%or.cond9.not = icmp eq i1 %131, %130
%132 = icmp eq i32 %arg3, 3
%133 = icmp eq i1 %132, false
%or.cond13 = icmp eq i1 %133, %or.cond9.not
br i1 %or.cond13, label LBL_12, label LBL_13
LBL_12:
%134 = add i64 %3, 56
%135 = inttoptr i64 %134 to i64*
%136 = add i64 %114, 16
store i32 %124, i32* %.reg2mem50
store i8 %128, i8* %.reg2mem52
store i64 1, i64* %indvars.iv30.reg2mem
br label LBL_15
LBL_13:
%137 = add i64 %3, 56
%138 = inttoptr i64 %137 to i64*
%139 = add i64 %114, 16
store i64 1, i64* %indvars.iv27.reg2mem
br label LBL_14
LBL_14:
%indvars.iv27.reload = load i64, i64* %indvars.iv27.reg2mem
%140 = load i64, i64* %138, align 8
%141 = mul i64 %indvars.iv27.reload, 4
%142 = add i64 %140, %141
%143 = inttoptr i64 %142 to i32*
%144 = load i32, i32* %143, align 4
%145 = sext i32 %144 to i64
%146 = mul i64 %145, 2
%147 = add i64 %146, %2
%148 = inttoptr i64 %147 to i16*
%149 = load i16, i16* %148, align 2
%150 = mul i64 %indvars.iv27.reload, 2
%151 = add i64 %139, %150
%152 = inttoptr i64 %151 to i16*
%153 = load i16, i16* %152, align 2
%154 = add i16 %153, %149
store i16 %154, i16* %148, align 2
%indvars.iv.next28 = add nuw nsw i64 %indvars.iv27.reload, 1
%exitcond29 = icmp eq i64 %indvars.iv.next28, 8
store i64 %indvars.iv.next28, i64* %indvars.iv27.reg2mem
store i64* %138, i64** %.pre-phi44.reg2mem
br i1 %exitcond29, label LBL_17, label LBL_14
LBL_15:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%.reload53 = load i8, i8* %.reg2mem52
%.reload51 = load i32, i32* %.reg2mem50
%155 = load i64, i64* %135, align 8
%156 = mul i64 %indvars.iv30.reload, 4
%157 = add i64 %155, %156
%158 = inttoptr i64 %157 to i32*
%159 = load i32, i32* %158, align 4
%160 = sext i32 %159 to i64
%161 = mul i64 %160, 2
%162 = add i64 %161, %2
%163 = inttoptr i64 %162 to i16*
%164 = load i16, i16* %163, align 2
%165 = mul i64 %indvars.iv30.reload, 2
%166 = add i64 %136, %165
%167 = inttoptr i64 %166 to i16*
%168 = load i16, i16* %167, align 2
%169 = sext i16 %168 to i32
%170 = sext i8 %.reload53 to i32
%171 = mul nsw i32 %169, %170
%172 = icmp slt i32 %.reload51, 0
%173 = zext i1 %172 to i32
%174 = add i32 %.reload51, %173
%175 = ashr i32 %174, 1
%176 = add nsw i32 %171, %175
%177 = ashr i32 %176, 31
%178 = zext i32 %176 to i64
%179 = zext i32 %177 to i64
%180 = mul i64 %179, 4294967296
%181 = or i64 %180, %178
%182 = zext i32 %.reload51 to i64
%183 = sdiv i64 %181, %182
%184 = trunc i64 %183 to i16
%185 = add i16 %164, %184
store i16 %185, i16* %163, align 2
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond32 = icmp eq i64 %indvars.iv.next31, 8
store i64* %135, i64** %.pre-phi44.reg2mem
br i1 %exitcond32, label LBL_17, label LBL_15.LBL_15_crit_edge
LBL_16:
%.pre40 = load i8, i8* %127, align 1
%.pre41 = load i32, i32* %123, align 4
store i32 %.pre41, i32* %.reg2mem50
store i8 %.pre40, i8* %.reg2mem52
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
br label LBL_15
LBL_17:
%.pre-phi44.reload = load i64*, i64** %.pre-phi44.reg2mem
store i64 1, i64* %indvars.iv24.reg2mem
br label LBL_18
LBL_18:
%indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem
%186 = load i64, i64* %.pre-phi44.reload, align 8
%187 = mul i64 %indvars.iv24.reload, 32
%188 = add i64 %186, %187
%189 = inttoptr i64 %188 to i32*
%190 = load i32, i32* %189, align 4
%191 = sext i32 %190 to i64
%192 = mul i64 %191, 2
%193 = add i64 %192, %2
%194 = mul i64 %indvars.iv24.reload, 2
%195 = add i64 %194, %18
%196 = inttoptr i64 %193 to i16*
%197 = load i16, i16* %196, align 2
%198 = inttoptr i64 %195 to i16*
store i16 %197, i16* %198, align 2
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1
%exitcond26 = icmp eq i64 %indvars.iv.next25, 8
store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem
br i1 %exitcond26, label LBL_19, label LBL_18
LBL_19:
%199 = add i64 %18, 16
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_20
LBL_20:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%200 = load i64, i64* %.pre-phi44.reload, align 8
%201 = mul i64 %indvars.iv.reload, 4
%202 = add i64 %200, %201
%203 = inttoptr i64 %202 to i32*
%204 = load i32, i32* %203, align 4
%205 = sext i32 %204 to i64
%206 = mul i64 %205, 2
%207 = add i64 %206, %2
%208 = mul i64 %indvars.iv.reload, 2
%209 = add i64 %199, %208
%210 = inttoptr i64 %207 to i16*
%211 = load i16, i16* %210, align 2
%212 = inttoptr i64 %209 to i16*
store i16 %211, i16* %212, align 2
%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_21, label LBL_20
LBL_21:
%213 = zext i16 %211 to i64
ret i64 %213
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %indvars.iv24.reload, { 0, 2, 1 }
uselistorder i32 %.reload51, { 0, 2, 1 }
uselistorder i64 %indvars.iv30.reload, { 0, 2, 1 }
uselistorder i64 %indvars.iv27.reload, { 0, 2, 1 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i64 %indvars.iv36.reload, { 0, 2, 1 }
uselistorder i64 %indvars.iv33.reload, { 0, 2, 1 }
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %18, { 0, 1, 3, 2 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %3, { 8, 6, 7, 11, 9, 10, 3, 1, 2, 4, 5, 15, 0, 12, 13, 14 }
uselistorder i64 %2, { 0, 1, 3, 2, 5, 4 }
uselistorder i64* %indvars.iv33.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem48, { 1, 0, 2 }
uselistorder i64* %indvars.iv36.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv27.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem50, { 1, 0, 2 }
uselistorder i8* %.reg2mem52, { 1, 0, 2 }
uselistorder i64* %indvars.iv30.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi44.reg2mem, { 0, 3, 4, 1, 2, 5 }
uselistorder i64* %indvars.iv24.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 11, 0, 10, 1, 8, 9, 3, 2, 6, 7, 5, 4 }
uselistorder i64 8, { 5, 4, 2, 3, 6, 0, 1, 7 }
uselistorder i64 56, { 2, 1, 4, 3, 0 }
uselistorder i64 4, { 0, 1, 2, 4, 5, 3 }
uselistorder i32 %arg3, { 0, 3, 1, 2, 4 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_17, { 2, 3, 0, 1, 4 }
} | 0 |
BinRealVul | lj_err_run_19133 | lj_err_run | 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 = icmp eq i64 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = trunc i64 %1 to i32
%6 = call i64 @FUNC(i64 %2, i64 %3)
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %2)
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %6)
%13 = trunc i64 %12 to i32
%14 = icmp ne i32 %13, 0
%15 = icmp eq i32 %5, 1
%16 = icmp eq i1 %15, false
%or.cond = icmp eq i1 %16, %14
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %2, i64 3)
%18 = call i64 @FUNC(i64 %2, i64 %9, i64 %17)
%19 = call i64 @FUNC(i64 %2, i64 1)
br label LBL_3
LBL_3:
%20 = bitcast i64* %arg1 to i32*
store i32 1, i32* %20, align 4
%21 = call i64 @FUNC(i64 %2, i64 %9, i64 %9)
%22 = call i64 @FUNC(i64 %2, i64 %9, i64 %6)
store i64 %9, i64* %8, align 8
%23 = call i64 @FUNC(i64 %2, i64 %9, i64 2)
br label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %2, i64 2)
ret i64 %24
uselistorder i64 %9, { 0, 4, 3, 1, 2, 5 }
uselistorder i64 %2, { 9, 0, 2, 1, 5, 4, 3, 6, 8, 7, 10 }
uselistorder i64 (i64, i64, i64)* @copyTV, { 1, 0 }
uselistorder i64 (i64, i64)* @lj_err_throw, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | server_request_free_answers_4974 | server_request_free_answers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge12.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
store i32 0, i32* %storemerge3.reg2mem
br label LBL_1
LBL_1:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%1 = icmp eq i32 %storemerge3.reload, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_3
LBL_2:
%3 = icmp eq i32 %storemerge3.reload, 1
%4 = icmp eq i1 %3, false
%spec.select.v = select i1 %4, i64 16, i64 8
%spec.select = add i64 %spec.select.v, %0
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%5 = inttoptr i64 %sv_0.0.reload to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %storemerge12.reg2mem
br i1 %8, label LBL_4, label LBL_7
LBL_4:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%9 = add i64 %storemerge12.reload, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %storemerge12.reload to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
call void @free(i64* %14)
%15 = add i64 %storemerge12.reload, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = inttoptr i64 %17 to i64*
call void @free(i64* %19)
br label LBL_6
LBL_6:
call void @free(i64* %12)
%20 = icmp eq i64 %11, 0
%21 = icmp eq i1 %20, false
store i64 %11, i64* %storemerge12.reg2mem
br i1 %21, label LBL_4, label LBL_7
LBL_7:
store i64 0, i64* %5, align 8
%22 = add nuw nsw i32 %storemerge3.reload, 1
%exitcond = icmp eq i32 %22, 3
store i32 %22, i32* %storemerge3.reg2mem
br i1 %exitcond, label LBL_8, label LBL_1
LBL_8:
ret i64 %sv_0.0.reload
uselistorder i64 %storemerge12.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | fib6_age_13140 | fib6_age | 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 = load i64, i64* @gv_0, align 8
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i64* %arg1, null
%or.cond = or i1 %7, %6
br i1 %or.cond, label LBL_4, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %3, i64 %2)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %2)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%12 = trunc i64 %1 to i32
%13 = add i32 %12, 1
store i32 %13, i32* %arg2, align 4
br label LBL_4
LBL_4:
%14 = ptrtoint i32* %arg2 to i64
%15 = call i64 @FUNC(i64 %2, i64 %14, i64 %3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %arg2, { 1, 0 }
} | 1 |
BinRealVul | decode_getfh_9158 | decode_getfh | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64* @memset(i64* %arg2, i32 0, i32 36)
%2 = call i64 @FUNC(i64 %0, i64 1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%6 = bitcast i64* %arg2 to i32*
store i32 4, i32* %6, align 4
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* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | alloc_gigantic_page_10618 | alloc_gigantic_page | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge3.reg2mem = alloca i64
%storemerge46.reg2mem = alloca i64
%storemerge28.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = sub i64 %3, %4
%6 = icmp slt i64 %5, 145
store i64 0, i64* %storemerge3.reg2mem
br i1 %6, label LBL_1, label LBL_9
LBL_1:
%7 = trunc i64 %arg2 to i32
%8 = urem i32 %7, 32
%9 = shl i32 1, %8
%storemerge = sext i32 %9 to i64
%10 = add nsw i64 %storemerge, -1
%11 = sub nsw i64 0, %storemerge
store i64 %3, i64* %storemerge28.reg2mem
br label LBL_2
LBL_2:
%storemerge28.reload = load i64, i64* %storemerge28.reg2mem
%12 = add i64 %storemerge28.reload, 8
%13 = call i64 @FUNC(i64 %12, i64 %1)
%14 = inttoptr i64 %storemerge28.reload to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %10, %15
%17 = and i64 %16, %11
%18 = call i64 @FUNC(i64 %storemerge28.reload, i64 %17, i64 %storemerge)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %17, i64* %storemerge46.reg2mem
br i1 %21, label LBL_3, label LBL_8
LBL_3:
%storemerge46.reload = load i64, i64* %storemerge46.reg2mem
%22 = call i64 @FUNC(i64 %storemerge28.reload, i64 %storemerge46.reload, i64 %storemerge)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_7, label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %12, i64 %1)
%26 = call i64 @FUNC(i64 %storemerge46.reload, i64 %storemerge)
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %storemerge46.reload)
store i64 %29, i64* %storemerge3.reg2mem
br label LBL_9
LBL_6:
%30 = call i64 @FUNC(i64 %12, i64 %1)
br label LBL_7
LBL_7:
%31 = add i64 %storemerge46.reload, %storemerge
%32 = call i64 @FUNC(i64 %storemerge28.reload, i64 %31, i64 %storemerge)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %31, i64* %storemerge46.reg2mem
br i1 %35, label LBL_3, label LBL_8
LBL_8:
%36 = call i64 @FUNC(i64 %12, i64 %1)
%37 = add i64 %storemerge28.reload, 16
%38 = call i64 @FUNC(i64 %2)
%39 = sub i64 %37, %38
%40 = icmp slt i64 %39, 145
store i64 %37, i64* %storemerge28.reg2mem
store i64 0, i64* %storemerge3.reg2mem
br i1 %40, label LBL_2, label LBL_9
LBL_9:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
ret i64 %storemerge3.reload
uselistorder i64 %storemerge46.reload, { 2, 3, 0, 1 }
uselistorder i64 %storemerge28.reload, { 1, 3, 2, 0, 5, 4 }
uselistorder i64 %storemerge, { 4, 0, 6, 5, 1, 3, 2 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge28.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge46.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.reg2mem, { 0, 1, 3, 2 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @zone_spans_last_pfn, { 1, 0 }
uselistorder i64 (i64, i64)* @spin_lock_irqsave, { 1, 0 }
uselistorder i64 145, { 1, 0 }
uselistorder i64 (i64)* @NODE_DATA, { 2, 0, 1 }
uselistorder label LBL_9, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cpu_exec_2940 | cpu_exec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%1 = trunc i64 %0 to i32
%2 = call i64 @FUNC(i64 %0)
store i32 %1, i32* @gv_0, align 4
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_9
LBL_1:
%6 = call i64 @FUNC()
%sext = mul i64 %0, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = bitcast i32* %sv_2 to i64*
%9 = call i64 @FUNC(i64* nonnull %8, i64 %7)
%10 = insertvalue [8 x i32] undef, i32 %1, 0
%11 = insertvalue %__jmp_buf_tag undef, [8 x i32] %10, 0
%12 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %11, 0
%13 = call i32 @__sigsetjmp([1 x %__jmp_buf_tag] %12, i32 0)
%14 = icmp eq i32 %13, 0
store i64 %7, i64* %.pre-phi.reg2mem
br i1 %14, label LBL_4, label LBL_2
LBL_2:
%15 = load i32, i32* @gv_0, align 4
%16 = sext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = add nsw i64 %16, 200
%19 = inttoptr i64 %18 to i32*
store i32 1, i32* %19, align 4
%20 = call i64 @FUNC()
%21 = call i64 @FUNC()
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
store i64 %16, i64* %.pre-phi.reg2mem
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC()
store i64 %16, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%25 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %8)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_5, label LBL_8
LBL_5:
store i64 0, i64* %sv_1, align 8
store i32 0, i32* %sv_0, align 4
%28 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_1)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_6, label LBL_7
LBL_6:
%31 = load i32, i32* %sv_0, align 4
%32 = load i64, i64* %sv_1, align 8
%33 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %32, i32 %31)
%34 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %33, i64* nonnull %sv_1, i32* nonnull %sv_0, i64* nonnull %8)
%35 = call i64 @FUNC(i64* nonnull %8, i64 %.pre-phi.reload)
%36 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_1)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_6, label LBL_7
LBL_7:
%39 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %8)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_5, label LBL_8
LBL_8:
%42 = call i64 @FUNC()
%43 = load i32, i32* %sv_2, align 4
%44 = zext i32 %43 to i64
store i64 %44, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.pre-phi.reload, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %16, { 0, 1, 3, 2 }
uselistorder i64* %8, { 3, 1, 2, 0, 4 }
uselistorder i64* %sv_1, { 1, 2, 3, 0, 4 }
uselistorder i64 %0, { 0, 2, 3, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @cpu_handle_interrupt, { 1, 0 }
uselistorder i64 (i64, i64*)* @cpu_handle_exception, { 1, 0 }
uselistorder i32 0, { 6, 5, 1, 4, 0, 7, 8, 2, 9, 3 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i64 (i64)* @CPU_GET_CLASS, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | ui_browser__hists_seek_7611 | ui_browser__hists_seek | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_2.2.reg2mem = alloca i8
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i8
%rdi.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_30, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %arg3 to i32
%7 = icmp eq i32 %6, 2
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = icmp sgt i32 %6, 2
store i64 %5, i64* %rax.0.reg2mem
br i1 %8, label LBL_30, label LBL_3
LBL_3:
store i8 1, i8* %sv_2.1.reg2mem
store i64 %0, i64* %sv_1.1.reg2mem
store i64 %5, i64* %rax.0.reg2mem
switch i32 %6, label LBL_30 [
i32 0, label LBL_4
i32 1, label LBL_7
]
LBL_4:
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = zext i32 %11 to i64
%17 = call i64 @FUNC(i64 %15, i64 %16)
store i8 1, i8* %sv_2.0.reg2mem
store i64 %17, i64* %sv_1.0.reg2mem
store i64 %15, i64* %rdi.0.reg2mem
br label LBL_6
LBL_5:
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %0, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23)
%25 = zext i32 %20 to i64
%26 = call i64 @FUNC(i64 %24, i64 %25)
store i8 0, i8* %sv_2.0.reg2mem
store i64 %26, i64* %sv_1.0.reg2mem
store i64 %24, i64* %rdi.0.reg2mem
br label LBL_6
LBL_6:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i8, i8* %sv_2.0.reg2mem
%27 = add i64 %rdi.0.reload, 16
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
store i8 %sv_2.0.reload, i8* %sv_2.1.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br label LBL_7
LBL_7:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%29 = icmp slt i64 %arg2, 1
br i1 %29, label LBL_15, label LBL_8
LBL_8:
%30 = add i64 %0, 24
%31 = inttoptr i64 %30 to i32*
store i64 %arg2, i64* %sv_0.0.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br label LBL_9
LBL_9:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%32 = add i64 %sv_1.2.reload, 24
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = icmp eq i8 %34, 0
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %35, label LBL_13, label LBL_10
LBL_10:
%36 = add i64 %sv_1.2.reload, 20
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %sv_1.2.reload, 16
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = sub i32 %38, %41
%.mask = urem i32 %42, 65536
%43 = zext i32 %.mask to i64
%44 = icmp sgt i64 %sv_0.0.reload, %43
br i1 %44, label LBL_11, label LBL_12
LBL_11:
%45 = sub i64 %sv_0.0.reload, %43
store i32 0, i32* %40, align 4
store i64 %45, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_12:
%46 = trunc i64 %sv_0.0.reload to i32
%47 = add i32 %41, %46
store i32 %47, i32* %40, align 4
store i64 %sv_1.2.reload, i64* %arg1, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_30
LBL_13:
%48 = load i32, i32* %31, align 4
%49 = call i64 @FUNC(i64 %sv_1.2.reload)
%50 = zext i32 %48 to i64
%51 = call i64 @FUNC(i64 %49, i64 %50)
%52 = icmp eq i64 %51, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %52, label LBL_30, label LBL_14
LBL_14:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%53 = add i64 %sv_0.1.reload, -1
store i64 %51, i64* %arg1, align 8
%54 = icmp eq i64 %53, 0
%55 = icmp eq i1 %54, false
store i64 %53, i64* %sv_0.0.reg2mem
store i64 %51, i64* %sv_1.2.reg2mem
store i64 %0, i64* %rax.0.reg2mem
br i1 %55, label LBL_9, label LBL_30
LBL_15:
%56 = icmp ne i64 %arg2, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_29, label LBL_16
LBL_16:
%sv_2.1.reload = load i8, i8* %sv_2.1.reg2mem
%58 = add i64 %0, 24
%59 = inttoptr i64 %58 to i32*
store i64 %arg2, i64* %sv_0.2.reg2mem
store i8 %sv_2.1.reload, i8* %sv_2.2.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.3.reg2mem
br label LBL_17
LBL_17:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%60 = add i64 %sv_1.3.reload, 24
%61 = inttoptr i64 %60 to i8*
%62 = load i8, i8* %61, align 1
%63 = icmp eq i8 %62, 0
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br i1 %63, label LBL_25, label LBL_18
LBL_18:
%sv_2.2.reload = load i8, i8* %sv_2.2.reg2mem
%64 = icmp eq i8 %sv_2.2.reload, 0
%65 = sub i64 0, %sv_0.2.reload
br i1 %64, label LBL_22, label LBL_19
LBL_19:
%66 = add i64 %sv_1.3.reload, 16
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = sext i32 %68 to i64
%70 = icmp sgt i64 %65, %69
br i1 %70, label LBL_20, label LBL_21
LBL_20:
%71 = add i64 %sv_0.2.reload, %69
store i32 0, i32* %67, align 4
store i64 %71, i64* %sv_0.3.reg2mem
br label LBL_25
LBL_21:
%72 = trunc i64 %sv_0.2.reload to i32
%73 = add i32 %68, %72
store i32 %73, i32* %67, align 4
store i64 %sv_1.3.reload, i64* %arg1, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_30
LBL_22:
%74 = add i64 %sv_1.3.reload, 20
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = sext i32 %76 to i64
%78 = icmp sgt i64 %65, %77
br i1 %78, label LBL_23, label LBL_24
LBL_23:
%79 = add i64 %sv_0.2.reload, %77
%80 = add i64 %sv_1.3.reload, 16
%81 = inttoptr i64 %80 to i32*
store i32 0, i32* %81, align 4
store i64 %79, i64* %sv_0.3.reg2mem
br label LBL_25
LBL_24:
%82 = trunc i64 %sv_0.2.reload to i32
%83 = add i32 %76, %82
%84 = add i64 %sv_1.3.reload, 16
%85 = inttoptr i64 %84 to i32*
store i32 %83, i32* %85, align 4
store i64 %sv_1.3.reload, i64* %arg1, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_30
LBL_25:
%86 = load i32, i32* %59, align 4
%87 = call i64 @FUNC(i64 %sv_1.3.reload)
%88 = zext i32 %86 to i64
%89 = call i64 @FUNC(i64 %87, i64 %88)
%90 = icmp eq i64 %89, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %90, label LBL_30, label LBL_26
LBL_26:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%91 = add i64 %sv_0.3.reload, 1
store i64 %89, i64* %arg1, align 8
%92 = icmp eq i64 %91, 0
%93 = icmp eq i1 %92, false
store i64 %91, i64* %sv_0.2.reg2mem
store i8 0, i8* %sv_2.2.reg2mem
store i64 %89, i64* %sv_1.3.reg2mem
br i1 %93, label LBL_17, label LBL_27
LBL_27:
%94 = add i64 %89, 24
%95 = inttoptr i64 %94 to i8*
%96 = load i8, i8* %95, align 1
%97 = icmp eq i8 %96, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %97, label LBL_30, label LBL_28
LBL_28:
%98 = add i64 %89, 20
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = add i64 %89, 16
%102 = inttoptr i64 %101 to i32*
store i32 %100, i32* %102, align 4
store i64 %89, i64* %rax.0.reg2mem
br label LBL_30
LBL_29:
store i64 %sv_1.1.reload, i64* %arg1, align 8
%103 = add i64 %sv_1.1.reload, 16
%104 = inttoptr i64 %103 to i32*
store i32 0, i32* %104, align 4
store i64 %sv_1.1.reload, i64* %rax.0.reg2mem
br label LBL_30
LBL_30:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %89, { 0, 3, 2, 4, 1, 5, 6 }
uselistorder i64 %65, { 1, 0 }
uselistorder i64 %sv_0.2.reload, { 5, 3, 4, 2, 1, 0 }
uselistorder i64 %sv_1.3.reload, { 3, 7, 6, 4, 0, 5, 1, 2 }
uselistorder i64 %sv_0.0.reload, { 3, 1, 2, 0 }
uselistorder i64 %sv_1.2.reload, { 3, 4, 1, 0, 2 }
uselistorder i64 %sv_1.1.reload, { 0, 4, 3, 1, 2 }
uselistorder i64 %0, { 3, 2, 8, 0, 1, 7, 9, 10, 5, 6, 4, 11, 12 }
uselistorder i8* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i8* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.2.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 2, 0, 1 }
uselistorder i8* %sv_2.2.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.3.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 11, 9, 10, 3, 8, 7, 1, 2, 6, 4, 5, 12 }
uselistorder i64 1, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 4, 5, 1 }
uselistorder i64 (i64, i64)* @hists__filter_prev_entries, { 1, 0 }
uselistorder i64 (i64, i64)* @hists__filter_entries, { 1, 0 }
uselistorder i64 24, { 0, 2, 1, 4, 3, 5, 6 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i64 %arg2, { 0, 2, 1, 3 }
uselistorder i64* %arg1, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder label LBL_30, { 8, 5, 4, 2, 9, 10, 1, 0, 11, 3, 6, 7 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | qcow2_co_flush_16845 | qcow2_co_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %0, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = and i64 %5, 4294967295
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = and i64 %13, 4294967295
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%18 = load i64, i64* %3, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @qcow2_cache_flush, { 1, 0 }
} | 1 |
BinRealVul | put_residue_header_4842 | 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 = add i32 %21, -1
%23 = call i64 @FUNC(i64 %3, i64 6, i32 %22)
%24 = add i64 %2, 20
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = call i64 @FUNC(i64 %3, i64 8, i32 %26)
%28 = load i32, i32* %20, align 4
%29 = icmp eq i32 %28, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %29, label LBL_13, label LBL_1
LBL_1:
%30 = 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
%31 = add nuw nsw i64 %indvars.iv11.reload, %63
%32 = mul i64 %31, 4
%33 = add i64 %32, %30
%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 = zext i1 %37 to i32
%39 = trunc i64 %indvars.iv11.reload to i32
%40 = shl i32 %38, %39
%41 = or i32 %40, %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 %41, i32* %sv_0.06.reg2mem
br i1 %exitcond13, label LBL_3, label LBL_2
LBL_3:
%42 = urem i32 %41, 8
%43 = call i64 @FUNC(i64 %3, i64 3, i32 %42)
%44 = add i32 %41, -7
%45 = sub i32 6, %41
%46 = and i32 %45, %41
%47 = icmp slt i32 %46, 0
%48 = icmp eq i32 %44, 0
%49 = icmp slt i32 %44, 0
%50 = icmp eq i1 %49, %47
%51 = icmp eq i1 %48, false
%52 = icmp eq i1 %50, %51
%53 = zext i1 %52 to i32
%54 = call i64 @FUNC(i64 %3, i64 1, i32 %53)
%55 = icmp slt i32 %41, 8
br i1 %55, label LBL_5, label LBL_4
LBL_4:
%56 = udiv i32 %41, 8
%57 = call i64 @FUNC(i64 %3, i64 5, i32 %56)
br label LBL_5
LBL_5:
%58 = add i32 %storemerge28.reload, 1
%59 = load i32, i32* %20, align 4
%60 = zext i32 %59 to i64
%61 = sext i32 %58 to i64
%62 = icmp slt i64 %61, %60
store i64 %61, i64* %.reg2mem
store i32 %58, i32* %storemerge28.reg2mem
br i1 %62, label LBL_6, label LBL_7
LBL_6:
%storemerge28.reload = load i32, i32* %storemerge28.reg2mem
%.reload = load i64, i64* %.reg2mem
%63 = 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:
%64 = icmp eq i32 %59, 0
store i64 0, i64* %.reg2mem20
store i32 0, i32* %storemerge5.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %64, label LBL_13, label LBL_12
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%65 = add nuw nsw i64 %indvars.iv.reload, %77
%66 = mul i64 %65, 4
%67 = add i64 %66, %30
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label LBL_10, label LBL_9
LBL_9:
%71 = call i64 @FUNC(i64 %3, i64 8, i32 %69)
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:
%72 = add i32 %storemerge5.reload, 1
%73 = load i32, i32* %20, align 4
%74 = zext i32 %73 to i64
%75 = sext i32 %72 to i64
%76 = icmp slt i64 %75, %74
store i64 %75, i64* %.reg2mem20
store i32 %72, i32* %storemerge5.reg2mem
store i64 %74, i64* %.lcssa.reg2mem
br i1 %76, label LBL_12, label LBL_13
LBL_12:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload21 = load i64, i64* %.reg2mem20
%77 = 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 %44, { 1, 0 }
uselistorder i32 %41, { 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 }
} | 0 |
BinRealVul | leak_memalign_10117 | leak_memalign | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg1, 17
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i64 %arg2)
store i64 %1, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%2 = add i64 %arg1, -1
%3 = and i64 %2, %arg1
%4 = icmp eq i64 %3, 0
store i64 %arg1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_4, label LBL_3
LBL_3:
%5 = trunc i64 %arg1 to i32
%6 = call i32 @llvm.ctlz.i32(i32 %5, i1 true), !range !11
%7 = icmp eq i32 %5, 0
%.op = xor i32 %6, 31
%8 = select i1 %7, i32 0, i32 %.op
%9 = icmp eq i32 %8, 0
%10 = zext i32 %8 to i64
%11 = shl i64 1, %10
%storemerge = select i1 %9, i64 1, i64 %11
store i64 %storemerge, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%12 = add i64 %arg2, -16
%13 = add i64 %12, %sv_0.0.reload
%14 = icmp ult i64 %13, %arg2
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_8
LBL_5:
%16 = call i64 @FUNC(i64 %13)
%17 = icmp eq i64 %16, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_6
LBL_6:
%18 = urem i64 %16, %sv_0.0.reload
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %16, i64* %rax.0.reg2mem
br i1 %20, label LBL_7, label LBL_8
LBL_7:
%21 = sub i64 0, %16
%22 = urem i64 %21, %sv_0.0.reload
%23 = add i64 %22, %16
%24 = add i64 %23, -8
%25 = inttoptr i64 %24 to i64*
store i64 3735928559, i64* %25, align 8
%26 = add i64 %23, -16
%27 = inttoptr i64 %26 to i64*
store i64 %16, i64* %27, align 8
store i64 %23, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %16, { 3, 1, 4, 0, 2, 5 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3, 5 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 (i64)* @leak_malloc, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64 %arg1, { 3, 0, 1, 2, 4 }
uselistorder label LBL_8, { 3, 1, 0, 2, 4 }
} | 0 |
BinRealVul | nft_masq_ipv4_eval_4205 | nft_masq_ipv4_eval | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 4)
%7 = inttoptr i64 %5 to i32*
%8 = load i32, i32* %7, align 4
%9 = sext i32 %8 to i64
store i64 %9, i64* %sv_0, align 8
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %1 to i32
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i32 %13, i64* nonnull %sv_0, i64 %12)
%18 = trunc i64 %17 to i32
%19 = bitcast i64* %arg2 to i32*
store i32 %18, i32* %19, align 4
ret i64 %3
uselistorder i64* %sv_0, { 0, 2, 1 }
} | 0 |
BinRealVul | ExprResolveBoolean_11019 | ExprResolveBoolean | 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 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = trunc i64 %3 to i32
%7 = and i64 %3, 4294967295
store i64 %7, i64* @0, align 8
switch i32 %6, label LBL_19 [
i32 0, label LBL_1
i32 1, label LBL_4
i32 2, label LBL_14
i32 3, label LBL_15
i32 4, label LBL_15
i32 5, label LBL_18
i32 6, label LBL_18
i32 7, label LBL_18
i32 8, label LBL_18
i32 9, label LBL_18
i32 10, label LBL_18
i32 11, label LBL_18
]
LBL_1:
%8 = add i64 %arg2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_3:
%15 = add i64 %arg2, 8
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = inttoptr i64 %arg3 to i8*
store i8 %17, i8* %18, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_4:
%19 = add i64 %arg2, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %arg1, i64 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_13, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%29 = trunc i64 %28 to i8
%30 = icmp eq i8 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0))
%33 = trunc i64 %32 to i8
%34 = icmp eq i8 %33, 0
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = inttoptr i64 %arg3 to i8*
store i8 1, i8* %35, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_9:
%36 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%37 = trunc i64 %36 to i8
%38 = icmp eq i8 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_12, label LBL_10
LBL_10:
%40 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0))
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0))
%45 = trunc i64 %44 to i8
%46 = icmp eq i8 %45, 0
br i1 %46, label LBL_13, label LBL_12
LBL_12:
%47 = inttoptr i64 %arg3 to i8*
store i8 0, i8* %47, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%48 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_7, i64 0, i64 0), i64 %22, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_14:
%49 = add i64 %arg2, 16
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i64 @FUNC(i64 %arg1, i64 %51)
%53 = add i64 %arg2, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %arg1, i64 %55)
%57 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_8, i64 0, i64 0), i64 %56, i64 %52, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_15:
%58 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_17, label LBL_16
LBL_16:
%63 = trunc i64 %4 to i8
%64 = icmp eq i8 %63, 0
%65 = zext i1 %64 to i8
%66 = inttoptr i64 %arg3 to i8*
store i8 %65, i8* %66, align 1
br label LBL_17
LBL_17:
%67 = zext i1 %61 to i64
store i64 %67, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%68 = call i64 @FUNC(i64 %7)
%69 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_9, i64 0, i64 0), i64 %68, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%70 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_10, i64 0, i64 0), i32 %6, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %22, { 5, 0, 1, 2, 3, 4, 6, 7 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %5, { 0, 3, 2, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 0, 4, 3, 2, 1 }
uselistorder i64 %1, { 0, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 9, 8, 7, 5, 6, 4, 3 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*)* @istreq, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @xkb_atom_text, { 2, 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @log_err, { 3, 2, 1, 0 }
uselistorder i64 %arg3, { 3, 4, 1, 2, 0 }
uselistorder i64 %arg2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 8, 7, 6, 5, 4, 3, 1, 2, 0 }
} | 1 |
BinRealVul | MInsChar_10115 | MInsChar | define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi11.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg2 to i64
%4 = ptrtoint i32* %arg1 to i64
%5 = trunc i64 %arg3 to i32
%sext = mul i64 %arg3, 4294967296
%6 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg4, 4294967296
%7 = ashr exact i64 %sext4, 32
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %4, i64 %8, i64 %3)
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = ashr exact i64 %sext4, 31
%14 = add nsw i64 %13, %7
%15 = mul i64 %14, 8
%16 = add i64 %12, %15
%17 = trunc i64 %1 to i32
%18 = sub i32 0, %5
%19 = sub i32 %18, 1
%20 = add i32 %17, %19
%21 = call i64 @FUNC(i64 %4, i64 %16, i32 %5)
%22 = icmp slt i32 %20, 1
br i1 %22, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre = trunc i64 %6 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
br label LBL_3
LBL_2:
%23 = add i32 %17, -1
%24 = call i64 @FUNC(i64 %4, i64 %16, i32 %23)
%25 = add nsw i64 %6, 1
%26 = trunc i64 %6 to i32
%27 = zext i32 %20 to i64
%28 = and i64 %25, 4294967295
%29 = call i64 @FUNC(i64 %16, i32 %26, i64 %28, i64 %27)
store i32 %26, i32* %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%30 = trunc i64 %2 to i32
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%31 = call i64 @FUNC(i64 %3, i64 %16, i32 %.pre-phi.reload)
%32 = icmp eq i32 %30, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_11, label LBL_4
LBL_4:
%33 = add i32 %20, -1
%34 = icmp slt i32 %33, 1
br i1 %34, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre10 = add i32 %.pre-phi.reload, 1
store i32 %.pre10, i32* %.pre-phi11.reg2mem
br label LBL_7
LBL_6:
%35 = add i32 %17, -1
%36 = call i64 @FUNC(i64 %4, i64 %16, i32 %35)
%37 = add nsw i64 %6, 2
%38 = add i32 %.pre-phi.reload, 1
%39 = zext i32 %33 to i64
%40 = and i64 %37, 4294967295
%41 = call i64 @FUNC(i64 %16, i32 %38, i64 %40, i64 %39)
store i32 %38, i32* %.pre-phi11.reg2mem
br label LBL_7
LBL_7:
%.pre-phi11.reload = load i32, i32* %.pre-phi11.reg2mem
%42 = call i64 @FUNC(i64 %3, i64 %16, i32 %.pre-phi11.reload)
%43 = inttoptr i64 %16 to i64*
%44 = load i64, i64* %43, align 8
%45 = ashr exact i64 %sext, 30
%46 = add nsw i64 %45, 4
%47 = add i64 %44, %46
%48 = inttoptr i64 %47 to i32*
store i32 %30, i32* %48, align 4
%49 = add i64 %4, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label LBL_9, label LBL_8
LBL_8:
%53 = add i64 %16, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = add i64 %55, %46
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = or i32 %58, 128
store i32 %59, i32* %57, align 4
store i64 %56, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%60 = bitcast i64* %rsi to i32*
%61 = load i32, i32* %60, align 8
%62 = icmp eq i32 %61, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_11, label LBL_10
LBL_10:
%63 = add i64 %16, 8
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = add i64 %65, %46
%67 = inttoptr i64 %66 to i32*
store i32 %61, i32* %67, align 4
%68 = add i64 %16, 16
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = add i64 %70, %46
%72 = inttoptr i64 %71 to i32*
store i32 0, i32* %72, align 4
store i64 %71, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.pre-phi.reload, { 0, 2, 1 }
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i32 %17, { 1, 2, 0 }
uselistorder i64 %16, { 5, 6, 4, 8, 7, 2, 3, 9, 0, 1, 10 }
uselistorder i64 %sext4, { 1, 0 }
uselistorder i64 %6, { 3, 2, 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %4, { 2, 1, 0, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @copy_mchar2mline, { 1, 0 }
uselistorder i64 (i64, i32, i64, i64)* @copy_mline, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @MKillDwRight, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
reposvul_c_test | cac_get_init_and_get_count_19 | cac_get_init_and_get_count | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = bitcast i64* %arg3 to i32*
store i32 %2, i32* %3, align 4
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %arg2, align 8
ret i64 0
} | 0 |
BinRealVul | mqtt_config_init_12297 | mqtt_config_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = call i64 @FUNC(i64 16)
%5 = inttoptr i64 %4 to i64*
%6 = call i64* @memset(i64* %5, i32 0, i32 16)
%7 = icmp eq i64 %4, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %3)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %9)
store i64 %11, i64* %5, align 8
br label LBL_5
LBL_3:
%12 = call i64 @FUNC(i64 ptrtoint ([8 x i8]* @gv_1 to i64))
store i64 %12, i64* %5, align 8
br label LBL_5
LBL_4:
store i64 %4, i64* %5, align 8
br label LBL_5
LBL_5:
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = call i64 @FUNC(i64 ptrtoint ([5 x i8]* @gv_2 to i64))
%19 = add i64 %4, 8
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
store i64 %18, i64* %.reg2mem
br label LBL_8
LBL_7:
%21 = zext i32 %15 to i64
%22 = bitcast i64* %sv_0 to i8*
%23 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %22, i32 15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 %21)
%24 = ptrtoint i64* %sv_0 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = add i64 %4, 8
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
store i64 %25, i64* %.reg2mem
store i64 %21, i64* %rcx.0.reg2mem
br label LBL_8
LBL_8:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%28 = load i64, i64* %5, align 8
%29 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i64 %28, i64 %.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
ret i64 %4
uselistorder i64* %5, { 2, 3, 1, 0, 4 }
uselistorder i64 %4, { 1, 2, 0, 3, 4, 5 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @flb_strdup, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | bfa_cfg_get_meminfo_4259 | bfa_cfg_get_meminfo | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
store i32 0, i32* %sv_0, align 4
%2 = icmp ne i64* %arg1, null
%3 = icmp ne i64* %arg2, null
%not.or.cond = icmp eq i1 %2, %3
%storemerge1 = zext i1 %not.or.cond to i64
%4 = call i64 @FUNC(i64 %storemerge1)
%5 = call i64 @FUNC(i64 %0, i64 0, i64 16)
%6 = bitcast i64* %arg2 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
store i32 2, i32* %8, align 4
%9 = call i64 @FUNC(i64 %1, i32* nonnull %sv_1, i32* nonnull %sv_0)
store i32 0, i32* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%10 = sext i32 %storemerge.reload to i64
%11 = mul i64 %10, 8
%12 = add i64 %11, ptrtoint (i64* @gv_0 to i64)
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
%17 = add i32 %storemerge.reload, 1
store i32 %17, i32* %storemerge.reg2mem
br i1 %16, label LBL_1, label LBL_2
LBL_2:
%18 = call i64 @FUNC()
%19 = load i32, i32* %sv_0, align 4
%20 = trunc i64 %18 to i32
%21 = add i32 %19, %20
store i32 %21, i32* %sv_0, align 4
%22 = load i32, i32* %sv_1, align 4
%23 = add i64 %0, 4
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = load i32, i32* %sv_0, align 4
%26 = add i64 %0, 12
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
ret i64 %0
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 2, 3, 0, 4 }
uselistorder i32* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | migrate_vma_setup_5995 | migrate_vma_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = and i64 %0, -4096
store i64 %4, i64* %arg1, align 8
%5 = load i64, i64* %2, align 8
%6 = and i64 %5, -4096
store i64 %6, i64* %2, align 8
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %10, label LBL_15, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %9)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %14, label LBL_15, label LBL_2
LBL_2:
%15 = load i64, i64* %8, align 8
%16 = add i64 %15, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = urem i32 %18, 2
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %21, label LBL_15, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %15)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %24, label LBL_4, label LBL_15
LBL_4:
%25 = sub i64 %3, %0
%26 = udiv i64 %25, 4096
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp slt i32 %27, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %28, false
%32 = icmp eq i1 %30, %31
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %32, label LBL_5, label LBL_15
LBL_5:
%33 = load i64, i64* %8, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp ult i64 %15, %35
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %36, label LBL_15, label LBL_6
LBL_6:
%37 = add i64 %33, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp ult i64 %15, %39
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %40, label LBL_7, label LBL_15
LBL_7:
%41 = load i64, i64* %2, align 8
%42 = icmp ule i64 %41, %35
%43 = icmp ugt i64 %41, %39
%or.cond = or i1 %42, %43
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_15, label LBL_8
LBL_8:
%44 = add i64 %0, 24
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = icmp eq i64 %46, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %47, label LBL_15, label LBL_9
LBL_9:
%48 = add i64 %0, 32
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %52, label LBL_10, label LBL_15
LBL_10:
%53 = add i64 %0, 40
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = icmp eq i64 %55, 0
store i64 %46, i64* %.reg2mem
br i1 %56, label LBL_13, label LBL_11
LBL_11:
%57 = call i64 @FUNC(i64 %55)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
%60 = icmp eq i1 %59, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %60, label LBL_11.LBL_13_crit_edge, label LBL_15
LBL_12:
%.pre = load i64, i64* %45, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_13
LBL_13:
%.reload = load i64, i64* %.reg2mem
%61 = inttoptr i64 %.reload to i64*
%62 = call i64* @memset(i64* %61, i32 0, i32 %27)
%63 = add i64 %0, 48
%64 = inttoptr i64 %63 to i32*
store i32 0, i32* %64, align 4
%65 = add i64 %0, 52
%66 = inttoptr i64 %65 to i32*
store i32 0, i32* %66, align 4
%67 = call i64 @FUNC(i64 %0)
%68 = load i32, i32* %64, align 4
%69 = icmp eq i32 %68, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %69, label LBL_15, label LBL_14
LBL_14:
%70 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %27, { 0, 2, 1 }
uselistorder i64 %15, { 1, 0, 2, 3 }
uselistorder i64 %0, { 0, 1, 2, 3, 6, 5, 4, 9, 7, 8, 10 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 13, 12, 11, 10 }
uselistorder i1 false, { 1, 2, 3, 0, 4, 5 }
uselistorder i32 0, { 3, 4, 5, 2, 6, 0, 1, 7, 8, 9 }
uselistorder i64 4294967274, { 0, 2, 1, 3, 5, 4, 6, 10, 9, 8, 7 }
uselistorder label LBL_15, { 1, 0, 2, 4, 3, 5, 7, 6, 8, 12, 11, 10, 9 }
} | 0 |
BinRealVul | cluster_status_18815 | cluster_status | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([11 x i8]* @gv_0 to i64))
%3 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 ptrtoint ([6 x i8]* @gv_1 to i64))
%4 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([10 x i8]* @gv_2 to i64))
%5 = call i64 @FUNC(i64 ptrtoint ([7 x i8]* @gv_3 to i64), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0))
%6 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_5, i64 0, i64 0))
%7 = call i64 @FUNC(i64 ptrtoint ([17 x i8]* @gv_5 to i64), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 ptrtoint ([17 x i8]* @gv_5 to i64), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0))
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
br label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %1, i64 %0)
%13 = icmp eq i64 %5, 0
%.pre = add i64 %0, 16
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %5, i64 %.pre)
br label LBL_4
LBL_4:
%15 = inttoptr i64 %.pre to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_7, label LBL_5
LBL_5:
%19 = add i64 %0, 20
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_7, i64 0, i64 0))
br label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %2, i64 %0)
%25 = call i64 @FUNC(i64 %3, i64 %0)
%26 = call i64 @FUNC(i64 %4, i64 %0)
ret i64 1
uselistorder i64 %0, { 2, 4, 3, 5, 0, 6, 1, 7 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder [17 x i8]* @gv_5, { 1, 0 }
uselistorder i64 (i64, i8*)* @crm_element_value, { 1, 0 }
uselistorder [7 x i8]* @gv_3, { 1, 0 }
uselistorder [10 x i8]* @gv_2, { 1, 0 }
uselistorder [6 x i8]* @gv_1, { 1, 0 }
uselistorder i64 (i8*, i64)* @get_object_root, { 3, 2, 1, 0 }
uselistorder [11 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ssi_sd_load_12623 | ssi_sd_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv5.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 1
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_6
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg2 to i32*
store i32 %5, i32* %6, align 4
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %2, 8
store i64 0, i64* %indvars.iv5.reg2mem
br label LBL_2
LBL_2:
%indvars.iv5.reload = load i64, i64* %indvars.iv5.reg2mem
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = mul i64 %indvars.iv5.reload, 4
%15 = add i64 %11, %14
%16 = inttoptr i64 %15 to i32*
store i32 %13, i32* %16, align 4
%indvars.iv.next6 = add nuw nsw i64 %indvars.iv5.reload, 1
%exitcond7 = icmp eq i64 %indvars.iv.next6, 4
store i64 %indvars.iv.next6, i64* %indvars.iv5.reg2mem
br i1 %exitcond7, label LBL_3, label LBL_2
LBL_3:
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %2, 24
store i64 0, i64* %indvars.iv.reg2mem
store i64 %17, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%19 = trunc i64 %.reload to i32
%20 = mul i64 %indvars.iv.reload, 4
%21 = add i64 %18, %20
%22 = inttoptr i64 %21 to i32*
store i32 %19, i32* %22, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%23 = call i64 @FUNC(i64 %3)
%exitcond = icmp eq i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %23, i64* %.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
%24 = trunc i64 %23 to i32
%25 = add i64 %2, 44
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = call i64 @FUNC(i64 %3)
%28 = trunc i64 %27 to i32
%29 = add i64 %2, 48
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = call i64 @FUNC(i64 %3)
%32 = trunc i64 %31 to i32
%33 = add i64 %2, 52
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = call i64 @FUNC(i64 %3)
%36 = trunc i64 %35 to i32
store i32 %36, i32* %6, align 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 %23, { 1, 0 }
uselistorder i64 %3, { 1, 2, 3, 4, 0, 5, 6, 7 }
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %indvars.iv5.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @qemu_get_be32, { 6, 5, 4, 7, 0, 3, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | pmc_core_mtpmc_link_status_17750 | pmc_core_mtpmc_link_status | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%0 = call i64 @FUNC(i64 ptrtoint (i32* @gv_0 to i64), i64 0)
%1 = trunc i64 %0 to i32
store i32 %1, i32* %sv_0, align 4
%2 = call i64 @FUNC(i64 0, i32* nonnull %sv_0)
ret i64 %2
} | 1 |
BinRealVul | brcmf_p2p_detach_17540 | brcmf_p2p_detach | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i64*
%0 = icmp eq i64 %arg1, 0
store i64* null, i64** %.pre-phi.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1)
%4 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %4, align 8
store i64* %4, i64** %.pre-phi.reg2mem
br label LBL_2
LBL_2:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%5 = call i64* @memset(i64* %.pre-phi.reload, i32 0, i32 8)
%6 = ptrtoint i64* %5 to i64
ret i64 %6
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 2, 0, 1, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | hmp_chardev_add_1944 | hmp_chardev_add | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %2, i64 %1, i64 1)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %3, i64 0, i64* nonnull %sv_0)
%8 = call i64 @FUNC(i64 %3)
br label LBL_3
LBL_3:
%9 = ptrtoint i64* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64* nonnull %sv_0)
ret i64 %10
uselistorder i64 %3, { 1, 0, 2 }
} | 0 |
BinRealVul | are_comps_similar_8847 | are_comps_similar | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp ugt i32 %2, 1
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %7, 4
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %7, 8
%13 = inttoptr i64 %12 to i32*
%14 = add i64 %7, 12
%15 = inttoptr i64 %14 to i32*
%16 = and i64 %1, 4294967295
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%17 = mul i64 %indvars.iv.reload, 16
%18 = add i64 %17, %7
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %9, %20
%22 = icmp eq i1 %21, false
store i64 0, i64* %storemerge.reg2mem
br i1 %22, label LBL_8, label LBL_3
LBL_3:
%23 = load i32, i32* %11, align 4
%24 = add i64 %18, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %23, %26
%28 = icmp eq i1 %27, false
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_8, label LBL_4
LBL_4:
%29 = icmp ult i64 %indvars.iv.reload, 3
br i1 %29, label LBL_5, label LBL_7
LBL_5:
%30 = load i32, i32* %13, align 4
%31 = add i64 %18, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %30, %33
%35 = icmp eq i1 %34, false
store i64 0, i64* %storemerge.reg2mem
br i1 %35, label LBL_8, label LBL_6
LBL_6:
%36 = load i32, i32* %15, align 4
%37 = add i64 %18, 12
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %36, %39
store i64 0, i64* %storemerge.reg2mem
br i1 %40, label LBL_7, label LBL_8
LBL_7:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%41 = icmp ult i64 %indvars.iv.next, %16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %41, label LBL_2, label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 5, 4, 3, 2, 6 }
uselistorder i64 1, { 0, 3, 2, 1 }
uselistorder label LBL_8, { 4, 0, 1, 2, 3, 5 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | codingXOR_12453 | codingXOR | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv8.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = load i32, i32* @gv_0, align 4
%5 = icmp eq i32 %4, 0
%6 = trunc i64 %3 to i32
%7 = icmp sgt i32 %6, 0
br i1 %5, label LBL_3, label LBL_1
LBL_1:
store i64 0, i64* %rax.0.in.reg2mem
br i1 %7, label LBL_2, label LBL_7
LBL_2:
%wide.trip.count10 = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv8.reg2mem
br label LBL_5
LBL_3:
store i64 0, i64* %rax.0.in.reg2mem
br i1 %7, label LBL_4, label LBL_7
LBL_4:
%wide.trip.count = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_5:
%indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem
%8 = add i64 %indvars.iv8.reload, %1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = urem i8 %10, 16
%12 = add i64 %indvars.iv8.reload, %2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = xor i8 %14, %10
%16 = add i64 %indvars.iv8.reload, %0
%17 = zext i8 %15 to i64
%18 = zext i8 %11 to i64
%19 = mul i64 %18, 256
%20 = or i64 %19, %17
%21 = add i64 %20, ptrtoint (i8** @gv_1 to i64)
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = inttoptr i64 %16 to i8*
store i8 %23, i8* %24, align 1
%indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1
%exitcond11 = icmp eq i64 %indvars.iv.next9, %wide.trip.count10
store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem
store i64 %wide.trip.count10, i64* %rax.0.in.reg2mem
br i1 %exitcond11, label LBL_7, label LBL_5
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%25 = add i64 %indvars.iv.reload, %1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = urem i8 %27, 16
%29 = add i64 %indvars.iv.reload, %2
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i64
%33 = zext i8 %28 to i64
%34 = mul i64 %33, 256
%35 = or i64 %34, %32
%36 = add i64 %35, ptrtoint (i8** @gv_1 to i64)
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = add i64 %indvars.iv.reload, %0
%40 = xor i8 %38, %27
%41 = inttoptr i64 %39 to i8*
store i8 %40, i8* %41, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %3, i64* %rax.0.in.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i8 %27, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i8 %10, { 1, 0 }
uselistorder i64 %indvars.iv8.reload, { 0, 3, 2, 1 }
uselistorder i1 %7, { 1, 0 }
uselistorder i64* %indvars.iv8.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i32 0, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0, 3, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | __jbd2_journal_refile_buffer_8568 | __jbd2_journal_refile_buffer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rdi.01.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_1, i64 0, i64 0), i32 63, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([27 x i8]* @gv_0 to i64), i64* %rdi.01.reg2mem
br label LBL_3
LBL_2:
%6 = icmp eq i64 %1, 0
store i64 %1, i64* %rdi.01.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%7 = call i64 @FUNC(i64 %rdi.01.reload)
br label LBL_4
LBL_4:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%13 = call i64 @FUNC(i64 %0)
store i64 %13, i64* %rax.1.reg2mem
br label LBL_12
LBL_6:
%14 = call i64 @FUNC(i64 %1)
%15 = call i64 @FUNC(i64 %0)
%16 = load i64, i64* %9, align 8
store i64 %16, i64* %arg1, align 8
store i64 0, i64* %9, align 8
%17 = call i64 @FUNC(i64 %1)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %19, label LBL_7, label LBL_8
LBL_7:
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%. = select i1 %23, i32 2, i32 1
store i32 %., i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%24 = call i64 @FUNC(i64 %0, i64 %1, i32 %sv_0.0.reload)
%25 = inttoptr i64 %8 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 3
store i64 3, i64* %rax.0.reg2mem
br i1 %27, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_1, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%28 = trunc i64 %14 to i32
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%29 = icmp eq i32 %28, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %29, label LBL_12, label LBL_11
LBL_11:
%30 = call i64 @FUNC(i64 %1)
store i64 %30, i64* %rax.1.reg2mem
br label LBL_12
LBL_12:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %1, { 2, 3, 4, 5, 0, 1, 6 }
uselistorder i64 %0, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 1 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder [27 x i8]* @gv_0, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 4, 5, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | SSL_do_handshake_9745 | SSL_do_handshake | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64*
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 1, i64 2)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_6
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
store i64* inttoptr (i32 1 to i64*), i64** %sv_0.0.reg2mem
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = and i64 %3, 4294967295
%12 = inttoptr i64 %11 to i64*
store i64* %12, i64** %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%13 = ptrtoint i64* %sv_0.0.reload to i64
%14 = and i64 %13, 4294967295
store i64 %14, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | crypto_close_15932 | crypto_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%3 = add i64 %0, 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %0, 16
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %0, 24
%8 = call i64 @FUNC(i64 %7)
ret i64 0
uselistorder i64 %0, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_freep, { 2, 1, 0 }
} | 1 |
BinRealVul | cxusb_nano2_frontend_attach_7901 | cxusb_nano2_frontend_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
store i64 ptrtoint ([21 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%6 = call i64 @FUNC(i64 %rdi.0.reload, i64 0, i64 0, i64 0, i64 0, i64 0)
%7 = call i64 @FUNC(i64 %rdi.0.reload, i64 4, i64 0)
%8 = call i64 @FUNC(i64 %rdi.0.reload, i64 1, i64 1)
%9 = call i64 @FUNC(i64 %rdi.0.reload, i64 2, i64 1)
%10 = add i64 %rdi.0.reload, 8
%11 = call i64 @FUNC(i64 4198877, i64* nonnull @gv_1, i64 %10)
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = icmp eq i64 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i64 @FUNC(i64 4198900, i64* nonnull @gv_2, i64 4198885)
store i64 %15, i64* %13, align 8
%16 = icmp eq i64 %15, 0
%. = select i1 %16, i64 4294967291, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 (i64, i64*, i64)* @dvb_attach, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @cxusb_bluebird_gpio_pulse, { 1, 0 }
uselistorder [21 x i8]* @gv_0, { 1, 0 }
uselistorder i64 1, { 0, 2, 1, 3 }
} | 0 |
BinRealVul | opj_tcd_code_block_enc_allocate_data_11177 | opj_tcd_code_block_enc_allocate_data | 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 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = trunc i64 %1 to i32
%7 = sub i32 %5, %6
%8 = add i64 %2, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = sub i32 %10, %13
%15 = mul i32 %7, 4
%16 = mul i32 %15, %14
%17 = or i32 %16, 1
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp ugt i32 %17, %20
store i64 1, i64* %storemerge.reg2mem
br i1 %21, label LBL_1, label LBL_6
LBL_1:
%22 = add i64 %2, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_3, label LBL_2
LBL_2:
%26 = add i64 %24, -1
%27 = call i64 @FUNC(i64 %26)
br label LBL_3
LBL_3:
%28 = add nsw i32 %17, 1
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
store i64 %30, i64* %23, align 8
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_5, label LBL_4
LBL_4:
store i32 0, i32* %19, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
store i32 %17, i32* %19, align 4
%33 = load i64, i64* %23, align 8
%34 = inttoptr i64 %33 to i8*
store i8 0, i8* %34, align 1
%35 = load i64, i64* %23, align 8
%36 = add i64 %35, 1
store i64 %36, i64* %23, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %23, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder label LBL_6, { 0, 2, 1 }
} | 1 |
BinRealVul | update_write_order_info_13520 | update_write_order_info | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3, i64 %arg4)
%6 = urem i64 %1, 256
%7 = call i64 @FUNC(i64 %3, i64 %6)
%8 = urem i64 %1, 2
%9 = icmp eq i64 %8, 0
%.pre = add i64 %2, 1
%.pre1 = inttoptr i64 %.pre to i8*
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = load i8, i8* %.pre1, align 1
%11 = zext i8 %10 to i64
%12 = call i64 @FUNC(i64 %3, i64 %11)
br label LBL_2
LBL_2:
%13 = load i8, i8* %.pre1, align 1
%14 = zext i8 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 0)
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = call i64 @FUNC(i64 %3, i32 %18, i64 %6, i64 %15)
%20 = call i64 @FUNC(i64 %3, i64 %2)
%21 = call i64 @FUNC(i64 %3, i64 %4)
ret i64 0
uselistorder i64 %3, { 3, 2, 1, 0, 4, 5, 6 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @Stream_Write_UINT8, { 1, 0 }
uselistorder i64 (i64, i64)* @Stream_SetPosition, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.