dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | dns_question_matches_cname_4310 | dns_question_matches_cname | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 21, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = trunc i64 %1 to i32
%5 = icmp eq i64* %arg1, null
%6 = icmp eq i32 %4, 0
%or.cond = or i1 %5, %6
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_7, label LBL_3
LBL_3:
%7 = ptrtoint i64* %arg2 to i64
%8 = ptrtoint i64* %arg1 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = load i64, i64* %10, align 8
%13 = mul i64 %indvars.iv.reload, 8
%14 = add i64 %12, %13
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %7)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = and i64 %17, 4294967295
store i64 %20, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%21 = icmp ult i64 %indvars.iv.next, %11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_7, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | lnet_ni_query_locked_18147 | lnet_ni_query_locked | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%7 = icmp eq i64* %arg2, null
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_4:
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = load i64, i64* %12, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = call i64 @FUNC()
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
ret i64 0
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
} | 1 |
BinRealVul | x86_cpu_common_class_init_15347 | x86_cpu_common_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 %0, i64* %2, align 8
store i64 4198669, i64* %arg1, align 8
%3 = inttoptr i64 %1 to i32*
store i32 3, i32* %3, align 4
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198676, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 4198683, i64* %7, align 8
%8 = add i64 %0, 32
%9 = inttoptr i64 %8 to i64*
store i64 4198690, i64* %9, align 8
%10 = add i64 %0, 40
%11 = inttoptr i64 %10 to i64*
store i64 4198697, i64* %11, align 8
%12 = add i64 %0, 48
%13 = inttoptr i64 %12 to i64*
store i64 4198704, i64* %13, align 8
%14 = add i64 %0, 56
%15 = inttoptr i64 %14 to i64*
store i64 4198711, i64* %15, align 8
%16 = add i64 %0, 64
%17 = inttoptr i64 %16 to i64*
store i64 4198718, i64* %17, align 8
%18 = add i64 %0, 72
%19 = inttoptr i64 %18 to i64*
store i64 4198725, i64* %19, align 8
%20 = add i64 %0, 80
%21 = inttoptr i64 %20 to i64*
store i64 4198732, i64* %21, align 8
%22 = add i64 %0, 88
%23 = inttoptr i64 %22 to i64*
store i64 4198739, i64* %23, align 8
%24 = add i64 %0, 96
%25 = inttoptr i64 %24 to i64*
store i64 4198746, i64* %25, align 8
%26 = add i64 %0, 104
%27 = inttoptr i64 %26 to i64*
store i64 4198753, i64* %27, align 8
%28 = add i64 %0, 144
%29 = inttoptr i64 %28 to i64*
store i64 4198767, i64* %29, align 8
%30 = add i64 %0, 152
%31 = inttoptr i64 %30 to i64*
store i64 4198774, i64* %31, align 8
%32 = add i64 %0, 160
%33 = inttoptr i64 %32 to i64*
store i64 4198781, i64* %33, align 8
%34 = add i64 %0, 168
%35 = inttoptr i64 %34 to i64*
store i64 4198788, i64* %35, align 8
%36 = add i64 %0, 176
%37 = inttoptr i64 %36 to i64*
store i64 4198795, i64* %37, align 8
%38 = add i64 %0, 184
%39 = inttoptr i64 %38 to i64*
store i64 4198802, i64* %39, align 8
%40 = add i64 %0, 192
%41 = inttoptr i64 %40 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %41, align 8
%42 = add i64 %0, 112
%43 = inttoptr i64 %42 to i32*
store i32 57, i32* %43, align 4
%44 = add i64 %0, 120
%45 = inttoptr i64 %44 to i64*
store i64 4198809, i64* %45, align 8
%46 = add i64 %0, 128
%47 = inttoptr i64 %46 to i64*
store i64 4198816, i64* %47, align 8
%48 = add i64 %0, 136
%49 = inttoptr i64 %48 to i64*
store i64 4198823, i64* %49, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }
} | 1 |
BinRealVul | conv_jistoeuc_5642 | conv_jistoeuc | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.09.reg2mem = alloca i64
%sv_0.010.reg2mem = alloca i64
%sv_2.012.reg2mem = alloca i32
%.reg2mem18 = alloca i8*
%.reg2mem = alloca i8
%sv_2.0.be.reg2mem = alloca i32
%sv_0.0.be.reg2mem = alloca i64
%sv_1.0.be.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = inttoptr i64 %arg3 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
store i64 %0, i64* %sv_0.0.lcssa.reg2mem
br i1 %3, label LBL_26, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%sext2 = add i64 %sext, -12884901888
%4 = ashr exact i64 %sext2, 32
store i8 %2, i8* %.reg2mem
store i8* %1, i8** %.reg2mem18
store i32 0, i32* %sv_2.012.reg2mem
store i64 %0, i64* %sv_0.010.reg2mem
store i64 %arg3, i64* %sv_1.09.reg2mem
br label LBL_25
LBL_2:
%sv_1.09.reload = load i64, i64* %sv_1.09.reg2mem
%.reload = load i8, i8* %.reg2mem
%5 = icmp eq i8 %.reload, 27
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_13, label LBL_3
LBL_3:
%7 = add i64 %sv_1.09.reload, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 36
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_9, label LBL_4
LBL_4:
%12 = add i64 %sv_1.09.reload, 2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp ne i8 %14, 64
%16 = icmp eq i8 %14, 66
%17 = icmp eq i1 %16, false
%or.cond = icmp eq i1 %15, %17
br i1 %or.cond, label LBL_7, label LBL_5
LBL_5:
%18 = add i64 %sv_1.09.reload, 3
store i64 %18, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 1, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_6:
%sv_2.0.be.reload = load i32, i32* %sv_2.0.be.reg2mem
%sv_0.0.be.reload = load i64, i64* %sv_0.0.be.reg2mem
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%19 = inttoptr i64 %sv_1.0.be.reload to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 0
store i8 %20, i8* %.reg2mem
store i8* %19, i8** %.reg2mem18
store i32 %sv_2.0.be.reload, i32* %sv_2.012.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.010.reg2mem
store i64 %sv_1.0.be.reload, i64* %sv_1.09.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %21, label LBL_26, label LBL_25
LBL_7:
%22 = icmp eq i8 %14, 40
%23 = icmp eq i1 %22, false
store i64 %7, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 0, i32* %sv_2.0.be.reg2mem
br i1 %23, label LBL_6, label LBL_8
LBL_8:
%24 = add i64 %sv_1.09.reload, 3
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 68
%28 = icmp eq i1 %27, false
%29 = add i64 %sv_1.09.reload, 4
%spec.select16 = select i1 %28, i64 %7, i64 %29
%spec.select17 = select i1 %28, i32 0, i32 3
store i64 %spec.select16, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 %spec.select17, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_9:
%30 = icmp eq i8 %9, 40
%31 = icmp eq i1 %30, false
store i64 %7, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 0, i32* %sv_2.0.be.reg2mem
br i1 %31, label LBL_6, label LBL_10
LBL_10:
%32 = add i64 %sv_1.09.reload, 2
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = icmp ne i8 %34, 66
%36 = icmp eq i8 %34, 74
%37 = icmp eq i1 %36, false
%or.cond5 = icmp eq i1 %35, %37
br i1 %or.cond5, label LBL_12, label LBL_11
LBL_11:
%38 = add i64 %sv_1.09.reload, 3
store i64 %38, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 0, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_12:
%39 = icmp eq i8 %34, 73
%40 = icmp eq i1 %39, false
%41 = add i64 %sv_1.09.reload, 3
%spec.select = select i1 %40, i64 %7, i64 %41
%spec.select6 = select i1 %40, i32 0, i32 2
store i64 %spec.select, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 %spec.select6, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_13:
%42 = icmp eq i8 %.reload, 14
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_15, label LBL_14
LBL_14:
%44 = add i64 %sv_1.09.reload, 1
store i64 %44, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 2, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_15:
%45 = icmp eq i8 %.reload, 15
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_17, label LBL_16
LBL_16:
%47 = add i64 %sv_1.09.reload, 1
store i64 %47, i64* %sv_1.0.be.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.0.be.reg2mem
store i32 0, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_17:
%sv_2.012.reload = load i32, i32* %sv_2.012.reg2mem
%.reload19 = load i8*, i8** %.reg2mem18
switch i32 %sv_2.012.reload, label LBL_24 [
i32 3, label LBL_22
i32 2, label LBL_21
i32 0, label LBL_18
i32 1, label LBL_19
]
LBL_18:
%48 = add i64 %sv_1.09.reload, 1
%49 = add i64 %sv_0.010.reload, 1
%50 = inttoptr i64 %sv_0.010.reload to i8*
store i8 %.reload, i8* %50, align 1
store i64 %48, i64* %sv_1.0.be.reg2mem
store i64 %49, i64* %sv_0.0.be.reg2mem
store i32 0, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_19:
%51 = add i64 %sv_1.09.reload, 1
%52 = or i8 %.reload, -128
%53 = add i64 %sv_0.010.reload, 1
%54 = inttoptr i64 %sv_0.010.reload to i8*
store i8 %52, i8* %54, align 1
%55 = inttoptr i64 %51 to i8*
%56 = load i8, i8* %55, align 1
%57 = icmp eq i8 %56, 0
%58 = icmp eq i1 %57, false
store i64 %51, i64* %sv_1.0.be.reg2mem
store i64 %53, i64* %sv_0.0.be.reg2mem
store i32 1, i32* %sv_2.0.be.reg2mem
br i1 %58, label LBL_20, label LBL_6
LBL_20:
%59 = add i64 %sv_1.09.reload, 2
%60 = or i8 %56, -128
%61 = add i64 %sv_0.010.reload, 2
%62 = inttoptr i64 %53 to i8*
store i8 %60, i8* %62, align 1
store i64 %59, i64* %sv_1.0.be.reg2mem
store i64 %61, i64* %sv_0.0.be.reg2mem
store i32 1, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_21:
%63 = add i64 %sv_0.010.reload, 1
%64 = inttoptr i64 %sv_0.010.reload to i8*
store i8 -114, i8* %64, align 1
%65 = add i64 %sv_1.09.reload, 1
%66 = load i8, i8* %.reload19, align 1
%67 = or i8 %66, -128
%68 = add i64 %sv_0.010.reload, 2
%69 = inttoptr i64 %63 to i8*
store i8 %67, i8* %69, align 1
store i64 %65, i64* %sv_1.0.be.reg2mem
store i64 %68, i64* %sv_0.0.be.reg2mem
store i32 2, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_22:
%70 = add i64 %sv_0.010.reload, 1
%71 = inttoptr i64 %sv_0.010.reload to i8*
store i8 -113, i8* %71, align 1
%72 = add i64 %sv_1.09.reload, 1
%73 = load i8, i8* %.reload19, align 1
%74 = or i8 %73, -128
%75 = add i64 %sv_0.010.reload, 2
%76 = inttoptr i64 %70 to i8*
store i8 %74, i8* %76, align 1
%77 = inttoptr i64 %72 to i8*
%78 = load i8, i8* %77, align 1
%79 = icmp eq i8 %78, 0
%80 = icmp eq i1 %79, false
store i64 %72, i64* %sv_1.0.be.reg2mem
store i64 %75, i64* %sv_0.0.be.reg2mem
store i32 3, i32* %sv_2.0.be.reg2mem
br i1 %80, label LBL_23, label LBL_6
LBL_23:
%81 = add i64 %sv_1.09.reload, 2
%82 = or i8 %78, -128
%83 = add i64 %sv_0.010.reload, 3
%84 = inttoptr i64 %75 to i8*
store i8 %82, i8* %84, align 1
store i64 %81, i64* %sv_1.0.be.reg2mem
store i64 %83, i64* %sv_0.0.be.reg2mem
store i32 3, i32* %sv_2.0.be.reg2mem
br label LBL_6
LBL_24:
unreachable
LBL_25:
%sv_0.010.reload = load i64, i64* %sv_0.010.reg2mem
%85 = sub i64 %sv_0.010.reload, %0
%86 = icmp slt i64 %85, %4
store i64 %sv_0.010.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %86, label LBL_2, label LBL_26
LBL_26:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%87 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
store i8 0, i8* %87, align 1
ret i64 0
uselistorder i64 %sv_0.010.reload, { 0, 7, 17, 20, 21, 18, 16, 19, 15, 14, 6, 5, 4, 3, 2, 12, 13, 11, 9, 10, 8, 1 }
uselistorder i64 %75, { 1, 0 }
uselistorder i64 %53, { 1, 0 }
uselistorder i8* %.reload19, { 1, 0 }
uselistorder i8 %34, { 1, 0, 2 }
uselistorder i8 %14, { 1, 0, 2 }
uselistorder i64 %7, { 3, 1, 2, 0, 4 }
uselistorder i64 %sv_1.09.reload, { 0, 12, 11, 1, 15, 14, 10, 9, 2, 3, 4, 5, 6, 7, 8, 13 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %sv_1.0.be.reg2mem, { 14, 13, 12, 10, 9, 11, 8, 7, 3, 6, 4, 1, 2, 0, 5 }
uselistorder i64* %sv_0.0.be.reg2mem, { 14, 13, 12, 10, 9, 11, 8, 7, 3, 6, 4, 1, 2, 0, 5 }
uselistorder i32* %sv_2.0.be.reg2mem, { 14, 13, 12, 10, 9, 11, 8, 7, 3, 6, 4, 1, 2, 0, 5 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.09.reg2mem, { 1, 0, 2 }
uselistorder i32 2, { 1, 3, 0, 2 }
uselistorder i32 3, { 1, 0, 3, 2 }
uselistorder i8 66, { 1, 0 }
uselistorder i64 2, { 0, 5, 6, 1, 2, 3, 4 }
uselistorder i1 false, { 2, 3, 4, 5, 6, 0, 7, 8, 9, 1, 10, 11 }
uselistorder i32 0, { 5, 8, 4, 7, 3, 2, 6, 1, 0 }
uselistorder i8 0, { 3, 1, 2, 4, 0 }
uselistorder label LBL_26, { 1, 0, 2 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_6, { 9, 11, 8, 7, 10, 6, 5, 4, 13, 3, 12, 0, 1, 2 }
} | 0 |
BinRealVul | dd_exist_13164 | dd_exist | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %1 to i64*
call void @free(i64* %3)
%4 = and i64 %2, 4294967295
ret i64 %4
} | 1 |
BinRealVul | vtenc_close_14815 | vtenc_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = call i32 @pthread_cond_destroy(i64* %5)
%7 = add i64 %2, 56
%8 = inttoptr i64 %7 to i64*
%9 = call i32 @pthread_mutex_destroy(i64* %8)
%10 = call i64 @FUNC(i64 %7)
store i64 0, i64* %arg1, align 8
br label LBL_2
LBL_2:
ret i64 0
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | snd_usb_copy_string_desc_17541 | snd_usb_copy_string_desc | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg2 to i32
%3 = add i64 %arg4, 4294967295
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %1, i32 %2, i64 %0, i64 %4)
%sext = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i8*
store i8 0, i8* %8, align 1
%9 = and i64 %5, 4294967295
ret i64 %9
uselistorder i64 %5, { 1, 0 }
} | 1 |
BinRealVul | st_set_trace_file_enabled_14782 | st_set_trace_file_enabled | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%2 = icmp eq %_IO_FILE* %1, null
%3 = icmp eq i1 %2, false
%4 = zext i1 %3 to i64
%5 = urem i32 %0, 256
%6 = zext i1 %3 to i32
%7 = icmp eq i32 %5, %6
store i64 %4, i64* %rax.0.reg2mem
br i1 %7, label LBL_7, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 1)
store i8 0, i8* bitcast (i64* @gv_1 to i8*), align 8
%9 = call i64 @FUNC(i64 1)
%10 = trunc i64 %arg1 to i8
%11 = icmp eq i8 %10, 0
br i1 %11, label LBL_6, label LBL_2
LBL_2:
%12 = load [10 x i8]*, [10 x i8]** @gv_2, align 8
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%14 = call %_IO_FILE* @fopen(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0))
store %_IO_FILE* %14, %_IO_FILE** @gv_0, align 8
%15 = ptrtoint %_IO_FILE* %14 to i64
%16 = icmp eq %_IO_FILE* %14, null
store i64 %15, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = call i32 @fwrite(i64* nonnull @gv_4, i32 24, i32 1, %_IO_FILE* nonnull %14)
%18 = icmp eq i32 %17, 1
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%20 = call i32 @fclose(%_IO_FILE* %19)
%21 = sext i32 %20 to i64
store %_IO_FILE* null, %_IO_FILE** @gv_0, align 8
store i64 %21, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
store i8 1, i8* bitcast (i64* @gv_1 to i8*), align 8
%22 = call i64 @FUNC(i64 0)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%23 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%24 = call i32 @fclose(%_IO_FILE* %23)
%25 = sext i32 %24 to i64
store %_IO_FILE* null, %_IO_FILE** @gv_0, align 8
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 i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3, 5 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64)* @flush_trace_file, { 2, 1, 0 }
uselistorder %_IO_FILE* null, { 2, 3, 0, 1, 4, 5 }
uselistorder %_IO_FILE** @gv_0, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 2, 3, 0, 1 }
uselistorder label LBL_7, { 2, 3, 4, 0, 1 }
} | 1 |
BinRealVul | smp_process_keypress_notification_11839 | smp_process_keypress_notification | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
store i8 -1, i8* %sv_0, align 1
%3 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0))
%4 = trunc i64 %1 to i8
%5 = bitcast i64* %arg1 to i8*
store i8 %4, i8* %5, align 1
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %2, i64 2, i8* nonnull %sv_0)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%10 = icmp eq i8* %arg2, null
%11 = add i64 %2, 1
%12 = inttoptr i64 %11 to i8*
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%.cast = ptrtoint i8* %arg2 to i64
%13 = load i8, i8* %12, align 1
%14 = zext i8 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 %.cast)
br label LBL_5
LBL_4:
store i8 0, i8* %12, align 1
br label LBL_5
LBL_5:
%16 = add i64 %2, 2
%17 = inttoptr i64 %16 to i8*
store i8 1, i8* %17, align 1
store i64 %2, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %12, { 1, 0 }
uselistorder i64 %2, { 0, 2, 3, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i8* %arg2, { 1, 0 }
} | 1 |
BinRealVul | parse_uint16_3071 | parse_uint16 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i32 @strtoul(i8* %3, i8** nonnull %sv_0, i32 0)
%5 = trunc i32 %4 to i16
%6 = inttoptr i64 %2 to i16*
store i16 %5, i16* %6, align 2
%7 = load i8*, i8** %sv_0, align 8
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = ptrtoint i8* %7 to i64
%12 = icmp eq i64 %11, %arg3
%13 = icmp eq i1 %12, false
%spec.select = select i1 %13, i64 0, i64 4294967274
ret i64 %spec.select
LBL_2:
ret i64 4294967274
} | 0 |
BinRealVul | conflict_name_cmp_8056 | conflict_name_cmp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond3 = or i1 %0, %2
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond3, label LBL_1, label LBL_7
LBL_1:
%3 = icmp eq i1 %0, false
%or.cond = or i1 %3, %1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_7
LBL_2:
br i1 %0, label LBL_4, label LBL_3
LBL_3:
%4 = bitcast i64* %arg1 to i8*
%5 = bitcast i64* %arg2 to i8*
%6 = call i32 @strcmp(i8* %4, i8* %5)
%7 = sext i32 %6 to i64
store i64 %7, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%8 = ptrtoint i64* %arg1 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_7, label LBL_5
LBL_5:
%13 = ptrtoint i64* %arg2 to i64
%14 = add i64 %13, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_7
LBL_6:
%19 = inttoptr i64 %11 to i8*
%20 = inttoptr i64 %16 to i8*
%21 = call i32 @strcmp(i8* %19, i8* %20)
%22 = sext i32 %21 to i64
store i64 %22, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 6, 2, 1, 5, 3, 4 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64* %arg2, { 2, 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_7, { 4, 1, 0, 5, 2, 3 }
} | 0 |
BinRealVul | load_apply_palette_13940 | load_apply_palette | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
store i64 0, i64* %sv_3, align 8
%4 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64* nonnull %sv_2)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %4, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%9 = load i64, i64* %sv_1, align 8
%10 = icmp eq i64 %9, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_8, label LBL_3
LBL_3:
%11 = load i64, i64* %sv_2, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_8
LBL_4:
%14 = inttoptr i64 %3 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %9, i64* %.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %3, i64 %11)
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%19 = call i64 @FUNC(i64 %0, i64 %.reload, i64* nonnull %sv_3)
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %20, 0
store i64 %19, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = load i64, i64* %sv_3, align 8
%23 = add i64 %0, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 %22)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%29 = call i64 @FUNC(i64* nonnull %sv_1)
%30 = call i64 @FUNC(i64* nonnull %sv_2)
%31 = and i64 %sv_0.0.reload, 4294967295
store i64 %31, 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* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_2, { 0, 2, 1 }
uselistorder i64* %sv_1, { 1, 0, 3, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64*)* @av_frame_free, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 0, 1, 2 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
BinRealVul | curl_easy_escape_13523 | curl_easy_escape | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.08.reg2mem = alloca i64
%sv_3.29.reg2mem = alloca i64
%sv_2.110.reg2mem = alloca i64
%sv_1.111.reg2mem = alloca i64
%sv_0.212.reg2mem = alloca i64
%.in.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_5 = alloca i32, align 4
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
store i64 %2, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%3 = inttoptr i64 %arg2 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = sext i32 %4 to i64
store i64 %5, i64* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = add nsw i64 %storemerge.in.reload, 1
%6 = trunc i64 %storemerge to i32
%7 = call i64* @malloc(i32 %6)
%8 = icmp eq i64* %7, null
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_17
LBL_4:
%10 = ptrtoint i64* %7 to i64
%11 = icmp eq i64 %storemerge.in.reload, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %sv_1.1.lcssa.reg2mem
store i64 %10, i64* %sv_0.2.lcssa.reg2mem
br i1 %12, label LBL_5, label LBL_16
LBL_5:
%13 = bitcast i32* %sv_5 to i8*
store i64 %storemerge.in.reload, i64* %.in.reg2mem
store i64 %10, i64* %sv_0.212.reg2mem
store i64 0, i64* %sv_1.111.reg2mem
store i64 %storemerge, i64* %sv_2.110.reg2mem
store i64 %storemerge, i64* %sv_3.29.reg2mem
store i64 %arg2, i64* %sv_4.08.reg2mem
br label LBL_6
LBL_6:
%sv_4.08.reload = load i64, i64* %sv_4.08.reg2mem
%sv_3.29.reload = load i64, i64* %sv_3.29.reg2mem
%sv_2.110.reload = load i64, i64* %sv_2.110.reg2mem
%sv_1.111.reload = load i64, i64* %sv_1.111.reg2mem
%sv_0.212.reload = load i64, i64* %sv_0.212.reg2mem
%.in.reload = load i64, i64* %.in.reg2mem
%14 = inttoptr i64 %sv_4.08.reload to i8*
%15 = load i8, i8* %14, align 1
%16 = sext i8 %15 to i32
store i32 %16, i32* %sv_5, align 4
%17 = zext i8 %15 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_8, label LBL_7
LBL_7:
%21 = load i32, i32* %sv_5, align 4
%22 = add i64 %sv_1.111.reload, 1
%23 = add i64 %sv_1.111.reload, %sv_0.212.reload
%24 = trunc i32 %21 to i8
%25 = inttoptr i64 %23 to i8*
store i8 %24, i8* %25, align 1
store i64 %sv_3.29.reload, i64* %sv_3.1.reg2mem
store i64 %sv_2.110.reload, i64* %sv_2.0.reg2mem
store i64 %22, i64* %sv_1.0.reg2mem
store i64 %sv_0.212.reload, i64* %sv_0.1.reg2mem
br label LBL_15
LBL_8:
%26 = add i64 %sv_2.110.reload, 2
%27 = icmp ugt i64 %26, %sv_3.29.reload
store i64 %sv_3.29.reload, i64* %sv_3.0.reg2mem
store i64 %sv_0.212.reload, i64* %sv_0.0.reg2mem
br i1 %27, label LBL_9, label LBL_12
LBL_9:
%28 = mul i64 %sv_3.29.reload, 2
%29 = inttoptr i64 %sv_0.212.reload to i64*
%30 = trunc i64 %28 to i32
%31 = call i64* @realloc(i64* %29, i32 %30)
%32 = icmp eq i64* %31, null
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_11, label LBL_10
LBL_10:
call void @free(i64* %29)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_11:
%34 = ptrtoint i64* %31 to i64
store i64 %28, i64* %sv_3.0.reg2mem
store i64 %34, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%35 = call i64 @FUNC(i64 %arg1, i8* nonnull %13, i64 1)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_14, label LBL_13
LBL_13:
%38 = inttoptr i64 %sv_0.0.reload to i64*
call void @free(i64* %38)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%39 = load i32, i32* %sv_5, align 4
%40 = add i64 %sv_0.0.reload, %sv_1.111.reload
%41 = urem i32 %39, 256
%42 = inttoptr i64 %40 to i8*
%43 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %42, i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 %41)
%44 = add i64 %sv_1.111.reload, 3
store i64 %sv_3.0.reload, i64* %sv_3.1.reg2mem
store i64 %26, i64* %sv_2.0.reg2mem
store i64 %44, i64* %sv_1.0.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_15
LBL_15:
%45 = add i64 %.in.reload, -1
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem
%46 = add i64 %sv_4.08.reload, 1
%47 = icmp eq i64 %45, 0
%48 = icmp eq i1 %47, false
store i64 %45, i64* %.in.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.212.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.111.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.110.reg2mem
store i64 %sv_3.1.reload, i64* %sv_3.29.reg2mem
store i64 %46, i64* %sv_4.08.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.lcssa.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.lcssa.reg2mem
br i1 %48, label LBL_6, label LBL_16
LBL_16:
%sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%49 = add i64 %sv_0.2.lcssa.reload, %sv_1.1.lcssa.reload
%50 = inttoptr i64 %49 to i8*
store i8 0, i8* %50, align 1
store i64 %sv_0.2.lcssa.reload, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %31, { 1, 0 }
uselistorder i64 %sv_0.212.reload, { 2, 1, 0, 3 }
uselistorder i64 %sv_1.111.reload, { 1, 3, 2, 0 }
uselistorder i64 %sv_2.110.reload, { 1, 0 }
uselistorder i64 %sv_3.29.reload, { 3, 1, 2, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %storemerge.in.reload, { 0, 2, 1 }
uselistorder i32* %sv_5, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.212.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.111.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.110.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.29.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i1 false, { 2, 1, 0, 3 }
uselistorder i64 1, { 3, 2, 4, 1, 0 }
uselistorder i32 1, { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_17, { 3, 1, 2, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | mprGetJsonObj_17343 | mprGetJsonObj | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg2 to i8*
%2 = call i8* @strpbrk(i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%6 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 0, i64 0)
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 %9, i64* %rax.0.reg2mem
br i1 %10, label LBL_5, label LBL_6
LBL_5:
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 1 |
reposvul_c_test | drop_user_return_notifiers_221 | drop_user_return_notifiers | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = load i64, i64* @gv_0, align 8
%2 = and i64 %0, 4294967295
%3 = call i64 @FUNC(i64 %1, i64 %2)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %3, 4
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | page_zip_validate_4257 | page_zip_validate | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_1 = alloca i64, align 8
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i64 %1, i64* %sv_1, align 8
%7 = add i64 %1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i32 @memcmp(i64* %arg1, i64* %arg2, i32 8)
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_1
LBL_1:
%13 = ptrtoint i64* %arg2 to i64
%14 = add i64 %13, 128
%15 = inttoptr i64 %14 to i64*
%16 = call i32 @memcmp(i64* %8, i64* %15, i32 2)
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = add i64 %13, 144
%20 = add i64 %1, 34
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %19 to i64*
%23 = call i32 @memcmp(i64* %21, i64* %22, i32 4078)
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%26 = call i32 @fwrite(i64* bitcast ([43 x i8]* @gv_1 to i64*), i32 1, i32 42, %_IO_FILE* %25)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_4:
%27 = call i64 @FUNC(i64 %13)
%28 = and i64 %27, 4294967295
%29 = call i64 @FUNC(i64 %28)
%30 = load i32, i32* inttoptr (i64 4210796 to i32*), align 4
%31 = icmp eq i32 %30, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %31, label LBL_5, label LBL_18
LBL_5:
%32 = call i64 @FUNC(i64 8192)
%33 = call i64 @FUNC(i64 %32, i64 4096)
%34 = call i64 @FUNC(i64* nonnull %sv_1, i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_7, label LBL_6
LBL_6:
%38 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%39 = call i32 @fwrite(i64* bitcast ([43 x i8]* @gv_2 to i64*), i32 1, i32 42, %_IO_FILE* %38)
store i64 %34, i64* %sv_0.4.reg2mem
br label LBL_17
LBL_7:
%40 = trunc i64 %6 to i32
%41 = inttoptr i64 %4 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, %40
store i64 %34, i64* %sv_0.0.reg2mem
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%44 = and i64 %6, 4294967295
%45 = zext i32 %42 to i64
%46 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%47 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %46, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_3, i64 0, i64 0), i64 %45, i64 %44)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%48 = add i64 %1, 12
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, %3
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %51, label LBL_11, label LBL_10
LBL_10:
%52 = zext i32 %3 to i64
%53 = zext i32 %50 to i64
%54 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%55 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %54, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_4, i64 0, i64 0), i64 %53, i64 %52)
store i64 0, i64* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%56 = trunc i64 %9 to i32
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%57 = inttoptr i64 %7 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp eq i32 %58, %56
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br i1 %59, label LBL_13, label LBL_12
LBL_12:
%60 = and i64 %9, 4294967295
%61 = zext i32 %58 to i64
%62 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%63 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %62, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_5, i64 0, i64 0), i64 %61, i64 %60)
store i64 0, i64* %sv_0.2.reg2mem
br label LBL_13
LBL_13:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%64 = add i64 %1, 20
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = icmp eq i32 %66, %2
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br i1 %67, label LBL_15, label LBL_14
LBL_14:
%68 = zext i32 %2 to i64
%69 = zext i32 %66 to i64
%70 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%71 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %70, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_6, i64 0, i64 0), i64 %69, i64 %68)
store i64 0, i64* %sv_0.3.reg2mem
br label LBL_15
LBL_15:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%72 = add i64 %33, 160
%73 = add i64 %13, 160
%74 = inttoptr i64 %73 to i64*
%75 = inttoptr i64 %72 to i64*
%76 = call i32 @memcmp(i64* %74, i64* %75, i32 4052)
%77 = icmp eq i32 %76, 0
store i64 %sv_0.3.reload, i64* %sv_0.4.reg2mem
br i1 %77, label LBL_17, label LBL_16
LBL_16:
%78 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%79 = call i32 @fwrite(i64* bitcast ([39 x i8]* @gv_7 to i64*), i32 1, i32 38, %_IO_FILE* %78)
store i64 0, i64* %sv_0.4.reg2mem
br label LBL_17
LBL_17:
%sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem
%80 = call i64 @FUNC(i64 %32)
%81 = and i64 %sv_0.4.reload, 4294967295
store i64 %81, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %34, { 1, 0, 2 }
uselistorder i64 %1, { 1, 2, 0, 5, 3, 4 }
uselistorder i64* %sv_0.4.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %0, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 3, 2, 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 2, 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 2, 3, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_18, { 1, 0, 2 }
uselistorder label LBL_17, { 1, 0, 2 }
} | 0 |
BinRealVul | linenoiseHistoryLoad_12575 | linenoiseHistoryLoad | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_1 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to i8*
%1 = call %_IO_FILE* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq %_IO_FILE* %1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = bitcast i64* %sv_1 to i8*
%5 = call i8* @fgets(i8* nonnull %4, i32 1024, %_IO_FILE* %1)
%6 = icmp eq i8* %5, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_7
LBL_2:
%8 = call i8* @strchr(i8* nonnull %4, i32 13)
%9 = icmp eq i8* %8, null
%10 = icmp eq i1 %9, false
store i8* %8, i8** %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i8* @strchr(i8* nonnull %4, i32 10)
store i8* %11, i8** %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%12 = icmp eq i8* %sv_0.0.reload, null
br i1 %12, label LBL_6, label LBL_5
LBL_5:
store i8 0, i8* %sv_0.0.reload, align 1
br label LBL_6
LBL_6:
%13 = call i64 @FUNC(i64* nonnull %sv_1)
%14 = call i8* @fgets(i8* nonnull %4, i32 1024, %_IO_FILE* %1)
%15 = icmp eq i8* %14, null
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_7
LBL_7:
%17 = call i32 @fclose(%_IO_FILE* %1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %4, { 3, 1, 2, 0 }
uselistorder %_IO_FILE* %1, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i8* null, { 3, 1, 2, 0 }
uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0 }
uselistorder i32 1024, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | db__message_reconnect_reset_incoming_13321 | db__message_reconnect_reset_incoming | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem6 = alloca i32*
%.reg2mem4 = alloca i64
%.pre-phi.reg2mem = alloca i32*
%.reg2mem = alloca i32*
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32*, align 8
%1 = bitcast i64* %arg1 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 36
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %0, 32
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %0, 40
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_6, label LBL_1
LBL_1:
%25 = inttoptr i64 %23 to i32*
store i32* %25, i32** %.reg2mem
br label LBL_5
LBL_2:
%26 = call i64 @FUNC(i64 %0)
%.pr = load i32, i32* %.reload, align 4
%27 = icmp eq i32 %.pr, 2
br i1 %27, label LBL_4, label LBL_3
LBL_3:
%28 = call i64 @FUNC(i64 %0, i64 %30)
br label LBL_4
LBL_4:
%29 = icmp eq i64 %33, 0
store i32* %34, i32** %.reg2mem
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%.reload = load i32*, i32** %.reg2mem
%30 = ptrtoint i32* %.reload to i64
%31 = add i64 %30, 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i32*
store i32* %34, i32** %sv_0, align 8
%35 = call i64 @FUNC(i64 %0, i64 %30)
%36 = load i32, i32* %.reload, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label LBL_3, label LBL_2
LBL_6:
%38 = add i64 %0, 48
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %40, 0
br i1 %41, label LBL_17, label LBL_7
LBL_7:
%42 = inttoptr i64 %40 to i32*
store i32* %42, i32** %.reg2mem6
br label LBL_15
LBL_8:
%43 = icmp sgt i32 %64, 2
br i1 %43, label LBL_13, label LBL_9
LBL_9:
switch i32 %64, label LBL_13 [
i32 0, label LBL_10
i32 1, label LBL_11
]
LBL_10:
%44 = add i64 %54, 4
%45 = inttoptr i64 %44 to i32*
store i32 1, i32* %45, align 4
br label LBL_13
LBL_11:
%46 = add i64 %54, 4
%47 = inttoptr i64 %46 to i32*
store i32 2, i32* %47, align 4
br label LBL_13
LBL_12:
%48 = add i64 %54, 4
%49 = inttoptr i64 %48 to i32*
store i32 3, i32* %49, align 4
br label LBL_13
LBL_13:
%50 = call i64 @FUNC(i64 %0, i64 %0)
%51 = load i32*, i32** %sv_0, align 8
%52 = ptrtoint i32* %51 to i64
store i32* %51, i32** %.pre-phi.reg2mem
store i64 %52, i64* %.reg2mem4
br label LBL_14
LBL_14:
%.reload5 = load i64, i64* %.reg2mem4
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%53 = icmp eq i64 %.reload5, 0
store i32* %.pre-phi.reload, i32** %.reg2mem6
br i1 %53, label LBL_17, label LBL_15
LBL_15:
%.reload7 = load i32*, i32** %.reg2mem6
%54 = ptrtoint i32* %.reload7 to i64
%55 = add i64 %54, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = inttoptr i64 %57 to i32*
store i32* %58, i32** %sv_0, align 8
%59 = call i64 @FUNC(i64 %0, i64 %54)
%60 = load i32, i32* %.reload7, align 4
%61 = call i64 @FUNC(i64 %0, i64 0, i32 %60)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
store i32* %58, i32** %.pre-phi.reg2mem
store i64 %57, i64* %.reg2mem4
br i1 %63, label LBL_14, label LBL_16
LBL_16:
%64 = load i32, i32* %.reload7, align 4
%65 = icmp eq i32 %64, 2
br i1 %65, label LBL_12, label LBL_8
LBL_17:
ret i64 0
uselistorder i32 %64, { 2, 1, 0 }
uselistorder i64 %54, { 3, 4, 1, 0, 2 }
uselistorder i64 %40, { 1, 0 }
uselistorder i32* %34, { 1, 0 }
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %30, { 1, 2, 0 }
uselistorder i32* %.reload, { 1, 2, 0 }
uselistorder i64 %23, { 1, 0 }
uselistorder i32** %sv_0, { 2, 0, 1 }
uselistorder i64 %0, { 6, 5, 3, 4, 7, 2, 1, 0, 8, 10, 9, 11, 12, 13, 14, 15, 16, 17 }
uselistorder i32** %.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem4, { 1, 0, 2 }
uselistorder i32 2, { 0, 3, 2, 1 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 3, 0, 4 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | qemu_fdopen_17273 | qemu_fdopen | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg2, 0
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i8
%4 = icmp ne i8 %3, 114
%5 = icmp eq i8 %3, 119
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
br i1 %or.cond, label LBL_4, label LBL_2
LBL_2:
%7 = add i64 %arg2, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 98
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %arg2, 2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%17 = call i32 @fwrite(i64* bitcast ([45 x i8]* @gv_1 to i64*), i32 1, i32 44, %_IO_FILE* %16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_5:
%18 = bitcast i64* %rsi to i8*
%19 = call i64 @FUNC(i64 16)
%20 = trunc i64 %arg1 to i32
%21 = inttoptr i64 %19 to i32*
store i32 %20, i32* %21, align 4
%22 = load i8, i8* %18, align 8
%23 = icmp eq i8 %22, 114
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = call i64 @FUNC(i64 %19, i64* nonnull @gv_2)
%26 = add i64 %19, 8
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
store i64 %25, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%28 = call i64 @FUNC(i64 %19, i64* nonnull @gv_3)
%29 = add i64 %19, 8
%30 = inttoptr i64 %29 to i64*
store i64 %28, i64* %30, align 8
store i64 %28, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %19, { 1, 0, 2, 3, 4 }
uselistorder i8 %3, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 2, 4, 1, 0, 3 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | stbi__jpeg_decode_block_13001 | stbi__jpeg_decode_block | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64 %arg6, i64* %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp sgt i32 %3, 15
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2)
br label LBL_2
LBL_2:
%6 = ptrtoint i64* %arg3 to i64
%7 = call i64 @FUNC(i64 %2, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
store i64 %11, i64* %rax.0.reg2mem
br label LBL_18
LBL_4:
%12 = call i64* @memset(i64* %arg2, i32 0, i32 128)
%13 = icmp eq i32 %8, 0
store i32 0, i32* %storemerge.reg2mem
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = and i64 %7, 4294967295
%15 = call i64 @FUNC(i64 %2, i64 %14)
%phitmp = trunc i64 %15 to i32
store i32 %phitmp, i32* %storemerge.reg2mem
br label LBL_6
LBL_6:
%16 = ptrtoint i64* %arg7 to i64
%17 = ptrtoint i64* %arg5 to i64
%18 = ptrtoint i64* %arg4 to i64
%19 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg6, 4294967296
%20 = bitcast i64* %rdi to i32*
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%21 = ashr exact i64 %sext, 30
%22 = add i64 %2, 8
%23 = add i64 %22, %21
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i32 %25, %storemerge.reload
store i32 %26, i32* %24, align 4
%27 = bitcast i64* %arg7 to i16*
%28 = load i16, i16* %27, align 2
%29 = trunc i32 %26 to i16
%30 = mul i16 %28, %29
%31 = bitcast i64* %arg2 to i16*
store i16 %30, i16* %31, align 2
%32 = add i64 %2, 4
%33 = inttoptr i64 %32 to i32*
%34 = bitcast i64* %arg1 to i32*
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%35 = load i32, i32* %20, align 8
%36 = icmp sgt i32 %35, 15
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%37 = call i64 @FUNC(i64 %2)
br label LBL_9
LBL_9:
%38 = load i32, i32* %33, align 4
%39 = udiv i32 %38, 8388608
%40 = mul i32 %39, 2
%41 = zext i32 %40 to i64
%42 = add i64 %41, %17
%43 = inttoptr i64 %42 to i16*
%44 = load i16, i16* %43, align 2
%45 = icmp eq i16 %44, 0
br i1 %45, label LBL_11, label LBL_10
LBL_10:
%46 = sext i16 %44 to i32
%47 = udiv i32 %46, 16
%48 = urem i32 %47, 16
%49 = add i32 %48, %sv_0.0.reload
%50 = urem i32 %46, 16
%51 = shl i32 %38, %50
store i32 %51, i32* %33, align 4
%52 = load i32, i32* %20, align 8
%53 = sub i32 %52, %50
store i32 %53, i32* %34, align 4
%54 = add i32 %49, 1
%55 = sext i32 %49 to i64
%56 = mul i64 %55, 4
%57 = add i64 %56, ptrtoint (i32** @gv_2 to i64)
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = zext i32 %59 to i64
%61 = mul i64 %60, 2
%62 = add i64 %61, %16
%63 = inttoptr i64 %62 to i16*
%64 = load i16, i16* %63, align 2
%65 = add i64 %61, %19
%66 = ashr i16 %44, 8
%67 = mul i16 %64, %66
%68 = inttoptr i64 %65 to i16*
store i16 %67, i16* %68, align 2
store i32 %54, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_11:
%69 = call i64 @FUNC(i64 %2, i64 %18)
%70 = trunc i64 %69 to i32
%71 = icmp slt i32 %70, 0
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_13, label LBL_12
LBL_12:
%73 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
store i64 %73, i64* %rax.0.reg2mem
br label LBL_18
LBL_13:
%74 = urem i32 %70, 16
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_16, label LBL_14
LBL_14:
%77 = icmp eq i32 %70, 240
%78 = icmp eq i1 %77, false
store i64 1, i64* %rax.0.reg2mem
br i1 %78, label LBL_18, label LBL_15
LBL_15:
%79 = add i32 %sv_0.0.reload, 16
store i32 %79, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_16:
%80 = ashr i32 %70, 4
%81 = add i32 %80, %sv_0.0.reload
%82 = add i32 %81, 1
%83 = sext i32 %81 to i64
%84 = mul i64 %83, 4
%85 = add i64 %84, ptrtoint (i32** @gv_2 to i64)
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = zext i32 %74 to i64
%89 = call i64 @FUNC(i64 %2, i64 %88)
%90 = zext i32 %87 to i64
%91 = mul i64 %90, 2
%92 = add i64 %91, %16
%93 = inttoptr i64 %92 to i16*
%94 = load i16, i16* %93, align 2
%95 = add i64 %91, %19
%96 = trunc i64 %89 to i16
%97 = mul i16 %94, %96
%98 = inttoptr i64 %95 to i16*
store i16 %97, i16* %98, align 2
store i32 %82, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_17:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%99 = icmp slt i32 %sv_0.1.reload, 64
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %99, label LBL_7, label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %91, { 1, 0 }
uselistorder i32 %74, { 1, 0 }
uselistorder i32 %70, { 2, 1, 0, 3 }
uselistorder i64 %61, { 1, 0 }
uselistorder i32 %50, { 1, 0 }
uselistorder i32 %49, { 1, 0 }
uselistorder i32 %46, { 1, 0 }
uselistorder i16 %44, { 0, 2, 1 }
uselistorder i32 %38, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64 %2, { 3, 4, 2, 5, 6, 1, 7, 0 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i32 16, { 4, 0, 2, 3, 1 }
uselistorder i64 (i64, i64)* @stbi__extend_receive, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i8*, i8*)* @stbi__err, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 4, 1, 5 }
uselistorder i64 (i64, i64)* @stbi__jpeg_huff_decode, { 1, 0 }
uselistorder i64 (i64)* @stbi__grow_buffer_unsafe, { 1, 0 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | virtio_gpu_ui_info_16390 | virtio_gpu_ui_info | define i64 @FUNC(i32* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i32
%4 = trunc i64 %1 to i32
%5 = icmp ult i32 %4, %3
store i64 4294967295, i64* %storemerge4.reg2mem
br i1 %5, label LBL_6, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = trunc i64 %2 to i32
%8 = ptrtoint i32* %arg1 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = mul i64 %arg2, 16
%13 = and i64 %12, 68719476720
%14 = add i64 %11, %13
%15 = inttoptr i64 %14 to i32*
store i32 %7, i32* %15, align 4
%16 = load i64, i64* %10, align 8
%17 = ptrtoint i32* %arg3 to i64
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = or i64 %13, 4
%22 = add i64 %16, %21
%23 = inttoptr i64 %22 to i32*
store i32 %20, i32* %23, align 4
%24 = load i64, i64* %10, align 8
%25 = add i64 %17, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = or i64 %13, 8
%29 = add i64 %24, %28
%30 = inttoptr i64 %29 to i32*
store i32 %27, i32* %30, align 4
%31 = load i64, i64* %10, align 8
%32 = add i64 %17, 12
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = or i64 %13, 12
%36 = add i64 %31, %35
%37 = inttoptr i64 %36 to i32*
store i32 %34, i32* %37, align 4
%38 = load i32, i32* %26, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_4, label LBL_2
LBL_2:
%40 = load i32, i32* %33, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_4, label LBL_3
LBL_3:
%42 = add i64 %8, 16
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = trunc i64 %6 to i32
%46 = urem i32 %45, 32
%47 = shl i32 1, %46
%48 = or i32 %44, %47
store i32 %48, i32* %43, align 4
br label LBL_5
LBL_4:
%49 = add i64 %8, 16
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = trunc i64 %6 to i32
%53 = urem i32 %52, 32
%54 = icmp eq i32 %53, 0
%55 = shl i32 -1, %53
%phitmp = add i32 %55, -1
%storemerge5 = select i1 %54, i32 -2, i32 %phitmp
%56 = and i32 %51, %storemerge5
store i32 %56, i32* %50, align 4
br label LBL_5
LBL_5:
%57 = call i64 @FUNC(i64 %8, i64 1)
store i64 0, i64* %storemerge4.reg2mem
br label LBL_6
LBL_6:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
ret i64 %storemerge4.reload
uselistorder i64 %13, { 1, 2, 3, 0 }
uselistorder i64 %8, { 1, 2, 0, 3 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | check_entry_size_and_hooks_11738 | check_entry_size_and_hooks | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg6 to i64
%3 = ptrtoint i64* %arg5 to i64
%4 = ptrtoint i64* %arg4 to i64
%5 = ptrtoint i64* %arg3 to i64
%6 = ptrtoint i32* %arg1 to i64
%7 = urem i64 %6, 8
%8 = icmp eq i64 %7, 0
%9 = add i64 %6, 32
%10 = icmp ult i64 %9, %4
%or.cond = icmp eq i1 %8, %10
store i64 %5, i64* %rdx.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%11 = and i64 %1, 4294967295
%12 = add i64 %11, %6
%13 = icmp ugt i64 %12, %4
%14 = icmp eq i1 %13, false
store i64 %11, i64* %rdx.0.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%15 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %rdx.0.reload, i64 %4, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_3:
%16 = trunc i64 %1 to i32
%17 = icmp ult i32 %16, 32
br i1 %17, label LBL_4, label LBL_5
LBL_4:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %6, i64 %11, i64 %4, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_5:
%19 = add i64 %6, 4
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_18
LBL_6:
%24 = inttoptr i64 %19 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %6, i64 %26, i32 %16)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_7, label LBL_8
LBL_7:
%30 = ptrtoint i64* %arg2 to i64
%31 = sub i64 %6, %5
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_9
LBL_8:
%32 = and i64 %27, 4294967295
store i64 %32, i64* %rax.0.reg2mem
br label LBL_18
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%33 = trunc i64 %indvars.iv.reload to i32
%34 = shl i32 1, %33
%storemerge = zext i32 %34 to i64
%35 = and i64 %storemerge, %arg7
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_16, label LBL_10
LBL_10:
%37 = mul i64 %indvars.iv.reload, 4
%38 = add i64 %37, %3
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
%42 = icmp eq i64 %31, %41
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = add i64 %37, %30
%45 = inttoptr i64 %44 to i32*
store i32 %40, i32* %45, align 4
br label LBL_12
LBL_12:
%46 = add i64 %37, %2
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = zext i32 %48 to i64
%50 = icmp eq i64 %31, %49
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_16, label LBL_13
LBL_13:
%52 = call i64 @FUNC(i64 %6)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_15, label LBL_14
LBL_14:
%56 = call i64 @FUNC(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @gv_2, i64 0, i64 0), i64 %26, i64 %49, i64 %37, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%57 = load i32, i32* %47, align 4
%58 = add i64 %37, %30
%59 = add i64 %58, 20
%60 = inttoptr i64 %59 to i32*
store i32 %57, i32* %60, align 4
br label LBL_16
LBL_16:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%61 = icmp ult i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %61, label LBL_9, label LBL_17
LBL_17:
%62 = add i64 %6, 8
%63 = inttoptr i64 %62 to i64*
store i64 0, i64* %63, align 8
%64 = add i64 %6, 16
%65 = inttoptr i64 %64 to i64*
store i64 0, i64* %65, align 8
%66 = add i64 %6, 24
%67 = inttoptr i64 %66 to i32*
store i32 0, i32* %67, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %37, { 3, 4, 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %11, { 2, 0, 1 }
uselistorder i64 %6, { 3, 4, 5, 6, 7, 8, 10, 9, 11, 1, 2, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 2, 3, 1, 0 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 4294967274, { 1, 0, 2, 3 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @duprintf, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 3, 0, 4, 5 }
uselistorder label LBL_16, { 1, 2, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | receive_filter_1060 | receive_filter | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%.reg2mem = alloca i8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_13
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = trunc i64 %2 to i8
%8 = add i64 %5, 12
%9 = inttoptr i64 %8 to i64*
%10 = call i32 @memcmp(i64* %9, i64* nonnull @gv_0, i32 2)
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i8 %7, i8* %.reg2mem
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = add i64 %5, 14
%14 = call i64 @FUNC(i64 %13)
%15 = udiv i64 %14, 8
%narrow = and i64 %15, 508
%16 = add i64 %6, 1564
%17 = add i64 %16, %narrow
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = trunc i64 %14 to i32
%21 = urem i32 %20, 32
%22 = shl i32 1, %21
%23 = and i32 %22, %19
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
%26 = trunc i32 %22 to i8
store i8 %26, i8* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_3, label LBL_13
LBL_3:
%.reload = load i8, i8* %.reg2mem
%27 = urem i8 %.reload, 2
%28 = icmp eq i8 %27, 0
br i1 %28, label LBL_7, label LBL_4
LBL_4:
%29 = call i32 @memcmp(i64* %arg2, i64* inttoptr (i64 4202541 to i64*), i32 6)
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 1, i64* %rax.0.reg2mem
br i1 %31, label LBL_5, label LBL_13
LBL_5:
%32 = add i64 %6, 4
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 1, i64* %rax.0.reg2mem
br i1 %36, label LBL_13, label LBL_6
LBL_6:
%37 = add i64 %6, 8
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %39, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %40, label LBL_9, label LBL_13
LBL_7:
%41 = add i64 %6, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %44, label LBL_8, label LBL_13
LBL_8:
%45 = add i64 %6, 1556
%46 = inttoptr i64 %45 to i64*
%47 = call i32 @memcmp(i64* %arg2, i64* %46, i32 6)
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 1, i64* %rax.0.reg2mem
br i1 %49, label LBL_9, label LBL_13
LBL_9:
%50 = add i64 %6, 16
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = icmp eq i32 %52, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %53, label LBL_13, label LBL_10
LBL_10:
%54 = add i64 %6, 20
store i32 0, i32* %storemerge13.reg2mem
br label LBL_11
LBL_11:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%55 = mul i32 %storemerge13.reload, 6
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, 6
%58 = add i64 %54, %57
%59 = inttoptr i64 %58 to i64*
%60 = call i32 @memcmp(i64* %arg2, i64* %59, i32 6)
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 1, i64* %rax.0.reg2mem
br i1 %62, label LBL_12, label LBL_13
LBL_12:
%63 = add i32 %storemerge13.reload, 1
%64 = load i32, i32* %51, align 4
%65 = zext i32 %64 to i64
%66 = sext i32 %63 to i64
%67 = icmp slt i64 %66, %65
store i32 %63, i32* %storemerge13.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %67, label LBL_11, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %51, { 1, 0 }
uselistorder i32 %22, { 1, 0 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %6, { 0, 4, 6, 5, 3, 2, 1 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 7, 6, 8, 9, 10 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 6, { 2, 0, 1, 3 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 3, 2, 1, 0 }
uselistorder i64 1, { 0, 1, 2, 4, 3, 5, 6 }
uselistorder i64* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_13, { 1, 0, 2, 3, 4, 6, 5, 7, 8, 9 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | r_read_le32_6811 | r_read_le32 | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i32* %arg1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 3
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i64
%9 = mul i64 %8, 16777216
%10 = add i64 %4, 2
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = zext i8 %12 to i64
%14 = mul i64 %13, 65536
%15 = add i64 %4, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i64
%19 = mul i64 %18, 256
%20 = urem i64 %1, 256
%21 = or i64 %9, %20
%22 = or i64 %21, %14
%23 = or i64 %22, %19
store i64 %23, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 256, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | acl_to_ac_18837 | acl_to_ac | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.1.ph8.reg2mem = alloca i32
%sv_1.0.ph9.reg2mem = alloca i32*
%.reg2mem25 = alloca i32
%.pre-phi.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem23 = alloca i32
%sv_0.16.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdx = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %0, 1
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = bitcast i64* %arg3 to i8*
store i8 0, i8* %4, align 1
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i32 %8, i32* %.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%.pr = load i32, i32* %7, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
store i64 2, i64* %rax.1.reg2mem
switch i32 %.reload, label LBL_3 [
i32 1, label LBL_5
i32 2, label LBL_15
]
LBL_3:
%11 = zext i32 %.reload to i64
%12 = icmp eq i64 %6, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %rax.1.reg2mem
br i1 %13, label LBL_4, label LBL_15
LBL_4:
%14 = bitcast i64* %rdx to i8*
store i32 %.reload, i32* %.reg2mem25
store i32* %7, i32** %sv_1.0.ph9.reg2mem
store i32 0, i32* %sv_0.1.ph8.reg2mem
br label LBL_6.lr.ph
LBL_5:
store i8 -64, i8* %4, align 1
store i64 %0, i64* %rax.1.reg2mem
br label LBL_15
LBL_6:
store i32 %.reload26, i32* %.reg2mem23
store i32 %sv_0.1.ph8.reload, i32* %sv_0.0.reg2mem
br i1 %46, label LBL_9, label LBL_7
LBL_7:
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%15 = add i32 %sv_0.16.reload, 1
%16 = icmp eq i32 %15, 0
%17 = icmp eq i32 %sv_0.16.reload, 0
%18 = or i1 %17, %16
store i32 %15, i32* %sv_0.16.reg2mem
br i1 %18, label LBL_8, label LBL_6
LBL_8:
%19 = load i8, i8* %3, align 1
%20 = udiv i8 %19, 16
store i8 %20, i8* %3, align 1
%21 = ptrtoint i32* %sv_1.0.ph9.reload to i64
%22 = add i64 %21, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%.tr = trunc i32 %24 to i8
%25 = mul i8 %.tr, 16
%26 = or i8 %25, %20
store i8 %26, i8* %3, align 1
%27 = load i8, i8* %14, align 8
%28 = add i8 %27, 64
store i8 %28, i8* %4, align 1
%.pre19 = load i32, i32* %sv_1.0.ph9.reload, align 4
store i32 %.pre19, i32* %.reg2mem23
store i32 %15, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload24 = load i32, i32* %.reg2mem23
%29 = icmp eq i32 %.reload24, 4
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9.LBL_12_crit_edge, label LBL_11
LBL_10:
%.pre20 = ptrtoint i32* %sv_1.0.ph9.reload to i64
store i64 %.pre20, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_11:
%31 = load i8, i8* %14, align 8
%32 = ptrtoint i32* %sv_1.0.ph9.reload to i64
%33 = add i64 %32, 4
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = trunc i32 %35 to i8
%37 = urem i8 %36, 32
%38 = or i8 %37, %31
store i8 %38, i8* %4, align 1
store i64 %32, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_12:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%39 = add i64 %.pre-phi.reload, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 %41, i64* %rax.1.reg2mem
br i1 %43, label LBL_12.LBL_6.lr.ph_crit_edge, label LBL_15
LBL_13:
%44 = inttoptr i64 %41 to i32*
%.pre = load i32, i32* %44, align 4
store i32 %.pre, i32* %.reg2mem25
store i32* %44, i32** %sv_1.0.ph9.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.ph8.reg2mem
br label LBL_6.lr.ph
LBL_14:
%sv_0.1.ph8.reload = load i32, i32* %sv_0.1.ph8.reg2mem
%sv_1.0.ph9.reload = load i32*, i32** %sv_1.0.ph9.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%45 = icmp eq i32 %.reload26, 3
%46 = icmp eq i1 %45, false
store i32 %sv_0.1.ph8.reload, i32* %sv_0.16.reg2mem
br label LBL_6
LBL_15:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32* %sv_1.0.ph9.reload, { 0, 2, 3, 1 }
uselistorder i64 %41, { 2, 0, 1 }
uselistorder i8 %20, { 1, 0 }
uselistorder i32 %sv_0.16.reload, { 1, 0 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i8* %4, { 2, 1, 0, 3 }
uselistorder i8* %3, { 0, 2, 1, 3 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 1, 0 }
uselistorder i32* %.reg2mem23, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i1 false, { 2, 3, 1, 0, 4 }
uselistorder i32 0, { 2, 1, 0, 3 }
uselistorder label LBL_15, { 0, 3, 1, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | sd_1d97_float_17012 | sd_1d97_float | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%xmm1.37.reg2mem = alloca i128
%storemerge8.reg2mem = alloca i32
%xmm1.2.lcssa.reg2mem = alloca i128
%xmm1.29.reg2mem = alloca i128
%storemerge410.reg2mem = alloca i32
%xmm1.1.lcssa.reg2mem = alloca i128
%storemerge511.reg2mem = alloca i32
%xmm1.0.lcssa.reg2mem = alloca i128
%storemerge613.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext2, 32
%5 = add i64 %arg2, 1
%6 = and i64 %5, 4294967295
%7 = icmp sgt i64 %4, %6
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = trunc i64 %3 to i32
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %2, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = call i128 @FUNC(i32 %13)
%15 = call i64 @__asm_movss.1(i128 %14)
%16 = trunc i64 %15 to i32
store i32 %16, i32* %12, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_16
LBL_3:
%17 = trunc i64 %1 to i32
%18 = call i128 @FUNC(i32 %17)
%19 = call i64 @__asm_movss.1(i128 %18)
%20 = trunc i64 %19 to i32
%21 = bitcast i64* %arg1 to i32*
store i32 %20, i32* %21, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_16
LBL_4:
%22 = and i64 %4, 4294967295
%23 = and i64 %3, 4294967295
%24 = call i64 @FUNC(i64 %2, i64 %23, i64 %22)
%25 = trunc i64 %3 to i32
%26 = add i32 %25, 1
%sext3 = add i64 %sext2, 4294967296
%27 = udiv i64 %sext3, 4294967296
%28 = icmp slt i32 %26, 0
%29 = zext i1 %28 to i32
%30 = add i32 %26, %29
%31 = ashr i32 %30, 1
%32 = add nsw i32 %31, -2
%33 = trunc i64 %27 to i32
%34 = icmp slt i64 %sext3, 0
%35 = zext i1 %34 to i32
%36 = add i32 %35, %33
%37 = ashr i32 %36, 1
%38 = zext i32 %37 to i64
%39 = sext i32 %32 to i64
%40 = icmp sgt i64 %39, %38
br i1 %40, label LBL_7, label LBL_5
LBL_5:
%41 = add i64 %2, 8
store i32 %32, i32* %storemerge613.reg2mem
br label LBL_6
LBL_6:
%storemerge613.reload = load i32, i32* %storemerge613.reg2mem
%42 = mul i32 %storemerge613.reload, 2
%43 = or i32 %42, 1
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 4
%46 = add i64 %45, %2
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = call i128 @FUNC(i32 %48)
%50 = call i128 @FUNC(i128 %49)
%51 = sext i32 %42 to i64
%52 = mul i64 %51, 4
%53 = add i64 %52, %2
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = call i128 @FUNC(i32 %55)
%57 = add i64 %41, %52
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = call i128 @FUNC(i32 %59)
%61 = call i128 @FUNC(i128 %60, i128 %56)
%62 = call i128 @FUNC(i128 %56, i128 %56)
%63 = call i128 @FUNC(i128 %61)
%64 = call i128 @FUNC(i64 4609822131664006586)
%65 = call i128 @FUNC(i128 %64, i128 %63)
%66 = call i128 @FUNC(i128 %50, i128 %65)
%67 = call i128 @FUNC(i128 %66)
%68 = call i64 @__asm_movss.1(i128 %67)
%69 = trunc i64 %68 to i32
store i32 %69, i32* %47, align 4
%70 = add i32 %storemerge613.reload, 1
%71 = sext i32 %70 to i64
%72 = icmp sgt i64 %71, %38
store i32 %70, i32* %storemerge613.reg2mem
store i128 %65, i128* %xmm1.0.lcssa.reg2mem
br i1 %72, label LBL_7, label LBL_6
LBL_7:
%xmm1.0.lcssa.reload = load i128, i128* %xmm1.0.lcssa.reg2mem
%73 = add nsw i32 %31, -1
%74 = sext i32 %73 to i64
%75 = icmp sgt i64 %74, %38
store i128 %xmm1.0.lcssa.reload, i128* %xmm1.1.lcssa.reg2mem
br i1 %75, label LBL_10, label LBL_8
LBL_8:
%76 = add i64 %2, -4
store i32 %73, i32* %storemerge511.reg2mem
br label LBL_9
LBL_9:
%storemerge511.reload = load i32, i32* %storemerge511.reg2mem
%77 = mul i32 %storemerge511.reload, 2
%78 = sext i32 %77 to i64
%79 = mul i64 %78, 4
%80 = add i64 %79, %2
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = call i128 @FUNC(i32 %82)
%84 = call i128 @FUNC(i128 %83)
%85 = add i64 %76, %79
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = call i128 @FUNC(i32 %87)
%89 = or i32 %77, 1
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = add i64 %91, %2
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = call i128 @FUNC(i32 %94)
%96 = call i128 @FUNC(i128 %95, i128 %88)
%97 = call i128 @FUNC(i128 %88, i128 %88)
%98 = call i128 @FUNC(i128 %96)
%99 = call i128 @FUNC(i64 4587796043700053276)
%100 = call i128 @FUNC(i128 %99, i128 %98)
%101 = call i128 @FUNC(i128 %84, i128 %100)
%102 = call i128 @FUNC(i128 %101)
%103 = call i64 @__asm_movss.1(i128 %102)
%104 = trunc i64 %103 to i32
store i32 %104, i32* %81, align 4
%105 = add i32 %storemerge511.reload, 1
%106 = sext i32 %105 to i64
%107 = icmp sgt i64 %106, %38
store i32 %105, i32* %storemerge511.reg2mem
store i128 %100, i128* %xmm1.1.lcssa.reg2mem
br i1 %107, label LBL_10, label LBL_9
LBL_10:
%xmm1.1.lcssa.reload = load i128, i128* %xmm1.1.lcssa.reg2mem
%108 = icmp slt i64 %74, %38
store i128 %xmm1.1.lcssa.reload, i128* %xmm1.2.lcssa.reg2mem
br i1 %108, label LBL_11, label LBL_13
LBL_11:
%109 = add i64 %2, 8
store i32 %73, i32* %storemerge410.reg2mem
store i128 %xmm1.1.lcssa.reload, i128* %xmm1.29.reg2mem
br label LBL_12
LBL_12:
%xmm1.29.reload = load i128, i128* %xmm1.29.reg2mem
%storemerge410.reload = load i32, i32* %storemerge410.reg2mem
%110 = mul i32 %storemerge410.reload, 2
%111 = or i32 %110, 1
%112 = sext i32 %111 to i64
%113 = mul i64 %112, 4
%114 = add i64 %113, %2
%115 = inttoptr i64 %114 to i32*
%116 = load i32, i32* %115, align 4
%117 = call i128 @FUNC(i32 %116)
%118 = call i128 @FUNC(i128 %xmm1.29.reload, i128 %xmm1.29.reload)
%119 = call i128 @FUNC(i128 %117)
%120 = sext i32 %110 to i64
%121 = mul i64 %120, 4
%122 = add i64 %121, %2
%123 = inttoptr i64 %122 to i32*
%124 = load i32, i32* %123, align 4
%125 = call i128 @FUNC(i32 %124)
%126 = add i64 %109, %121
%127 = inttoptr i64 %126 to i32*
%128 = load i32, i32* %127, align 4
%129 = call i128 @FUNC(i32 %128)
%130 = call i128 @FUNC(i128 %129, i128 %125)
%131 = call i128 @FUNC(i128 %125, i128 %125)
%132 = call i128 @FUNC(i128 %130)
%133 = call i128 @FUNC(i64 4606127774846479040)
%134 = call i128 @FUNC(i128 %133, i128 %132)
%135 = call i128 @FUNC(i128 %134, i128 %119)
%136 = call i128 @FUNC(i128 %135)
%137 = call i64 @__asm_movss.1(i128 %136)
%138 = trunc i64 %137 to i32
store i32 %138, i32* %115, align 4
%139 = add i32 %storemerge410.reload, 1
%140 = sext i32 %139 to i64
%141 = icmp slt i64 %140, %38
store i32 %139, i32* %storemerge410.reg2mem
store i128 %119, i128* %xmm1.29.reg2mem
store i128 %119, i128* %xmm1.2.lcssa.reg2mem
br i1 %141, label LBL_12, label LBL_13
LBL_13:
%142 = sext i32 %31 to i64
%143 = icmp slt i64 %142, %38
store i64 %38, i64* %rax.0.reg2mem
br i1 %143, label LBL_14, label LBL_16
LBL_14:
%xmm1.2.lcssa.reload = load i128, i128* %xmm1.2.lcssa.reg2mem
%144 = add i64 %2, -4
store i32 %31, i32* %storemerge8.reg2mem
store i128 %xmm1.2.lcssa.reload, i128* %xmm1.37.reg2mem
br label LBL_15
LBL_15:
%xmm1.37.reload = load i128, i128* %xmm1.37.reg2mem
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%145 = mul i32 %storemerge8.reload, 2
%146 = sext i32 %145 to i64
%147 = mul i64 %146, 4
%148 = add i64 %147, %2
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = call i128 @FUNC(i32 %150)
%152 = call i128 @FUNC(i128 %xmm1.37.reload, i128 %xmm1.37.reload)
%153 = call i128 @FUNC(i128 %151)
%154 = add i64 %144, %147
%155 = inttoptr i64 %154 to i32*
%156 = load i32, i32* %155, align 4
%157 = call i128 @FUNC(i32 %156)
%158 = or i32 %145, 1
%159 = sext i32 %158 to i64
%160 = mul i64 %159, 4
%161 = add i64 %160, %2
%162 = inttoptr i64 %161 to i32*
%163 = load i32, i32* %162, align 4
%164 = call i128 @FUNC(i32 %163)
%165 = call i128 @FUNC(i128 %164, i128 %157)
%166 = call i128 @FUNC(i128 %157, i128 %157)
%167 = call i128 @FUNC(i128 %165)
%168 = call i128 @FUNC(i64 4601661113743252237)
%169 = call i128 @FUNC(i128 %168, i128 %167)
%170 = call i128 @FUNC(i128 %169, i128 %153)
%171 = call i128 @FUNC(i128 %170)
%172 = call i64 @__asm_movss.1(i128 %171)
%173 = trunc i64 %172 to i32
store i32 %173, i32* %149, align 4
%174 = add i32 %storemerge8.reload, 1
%175 = sext i32 %174 to i64
%176 = icmp slt i64 %175, %38
store i32 %174, i32* %storemerge8.reg2mem
store i128 %153, i128* %xmm1.37.reg2mem
store i64 %38, i64* %rax.0.reg2mem
br i1 %176, label LBL_15, label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i128 %157, { 2, 1, 0 }
uselistorder i32 %145, { 1, 0 }
uselistorder i128 %xmm1.37.reload, { 1, 0 }
uselistorder i128 %125, { 2, 1, 0 }
uselistorder i32 %110, { 1, 0 }
uselistorder i128 %xmm1.29.reload, { 1, 0 }
uselistorder i128 %xmm1.1.lcssa.reload, { 1, 0 }
uselistorder i128 %88, { 2, 1, 0 }
uselistorder i32 %77, { 1, 0 }
uselistorder i128 %56, { 2, 1, 0 }
uselistorder i32 %42, { 1, 0 }
uselistorder i64 %38, { 0, 2, 1, 5, 3, 6, 4, 7, 9, 8 }
uselistorder i64 %sext3, { 1, 0 }
uselistorder i64 %sext2, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %2, { 2, 3, 11, 4, 5, 10, 6, 7, 12, 8, 9, 13, 15, 1, 0, 14 }
uselistorder i32* %storemerge613.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge511.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge410.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm1.29.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm1.37.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | region16_simplify_bands_5902 | region16_simplify_bands | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%.reg2mem12 = alloca i32
%.pre-phi11.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_2.04.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_17
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 28
%6 = add i64 %4, %5
%7 = bitcast i32* %sv_3 to i64*
%8 = call i64 @FUNC(i64 %4, i64 %6, i64* nonnull %7)
%9 = icmp eq i64 %8, %6
store i64 %8, i64* %.reg2mem
store i64 %6, i64* %sv_0.07.reg2mem
store i64 %4, i64* %sv_1.05.reg2mem
store i32 %2, i32* %sv_2.04.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_17, label LBL_2
LBL_2:
%sv_2.04.reload = load i32, i32* %sv_2.04.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = add i64 %sv_1.05.reload, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = inttoptr i64 %.reload to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %12, %14
%16 = icmp eq i1 %15, false
store i32 %sv_2.04.reload, i32* %sv_2.1.reg2mem
store i64 %.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.07.reload, i64* %sv_0.1.reg2mem
br i1 %16, label LBL_10, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %sv_1.05.reload, i64 %.reload, i64 %sv_0.07.reload)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i32 %sv_2.04.reload, i32* %sv_2.1.reg2mem
store i64 %.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.07.reload, i64* %sv_0.1.reg2mem
br i1 %19, label LBL_10, label LBL_4
LBL_4:
%20 = icmp ult i64 %sv_1.05.reload, %.reload
br i1 %20, label LBL_5, label LBL_7
LBL_5:
%21 = add i64 %.reload, 4
%22 = inttoptr i64 %21 to i32*
store i64 %sv_1.05.reload, i64* %storemerge3.reg2mem
br label LBL_6
LBL_6:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%23 = load i32, i32* %22, align 4
%24 = add i64 %storemerge3.reload, 4
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %storemerge3.reload, 16
%27 = icmp ult i64 %26, %.reload
store i64 %26, i64* %storemerge3.reg2mem
br i1 %27, label LBL_6, label LBL_7
LBL_7:
%28 = load i32, i32* %sv_3, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 16
%31 = add i64 %30, %.reload
%32 = sub i64 %sv_0.07.reload, %31
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
store i64 %30, i64* %.pre-phi11.reg2mem
store i32 %28, i32* %.reg2mem12
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%sext2 = mul i64 %32, 4294967296
%35 = ashr exact i64 %sext2, 32
%36 = call i64 @FUNC(i64 %.reload, i64 %31, i64 %35)
%.pre = load i32, i32* %sv_3, align 4
%.pre9 = sext i32 %.pre to i64
%.pre10 = mul i64 %.pre9, 16
store i64 %.pre10, i64* %.pre-phi11.reg2mem
store i32 %.pre, i32* %.reg2mem12
br label LBL_9
LBL_9:
%.reload13 = load i32, i32* %.reg2mem12
%.pre-phi11.reload = load i64, i64* %.pre-phi11.reg2mem
%37 = sub i32 %sv_2.04.reload, %.reload13
%38 = sub i64 %sv_0.07.reload, %.pre-phi11.reload
store i32 %37, i32* %sv_2.1.reg2mem
store i64 %sv_1.05.reload, i64* %sv_1.1.reg2mem
store i64 %38, i64* %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%39 = call i64 @FUNC(i64 %sv_1.1.reload, i64 %sv_0.1.reload, i64* nonnull %7)
%40 = icmp eq i64 %39, %sv_0.1.reload
store i64 %39, i64* %.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.07.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.05.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.04.reg2mem
br i1 %40, label LBL_11, label LBL_2
LBL_11:
%41 = icmp eq i32 %sv_2.1.reload, %2
store i64 1, i64* %rax.0.reg2mem
br i1 %41, label LBL_17, label LBL_12
LBL_12:
%42 = sext i32 %sv_2.1.reload to i64
%43 = mul i64 %42, 16
%44 = add nsw i64 %43, 16
%45 = inttoptr i64 %sv_1.1.reload to i64*
%46 = trunc i64 %44 to i32
%47 = call i64* @realloc(i64* %45, i32 %46)
%48 = icmp eq i64* %47, null
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_14, label LBL_13
LBL_13:
call void @free(i64* %45)
br label LBL_14
LBL_14:
%50 = ptrtoint i64* %47 to i64
store i64 %50, i64* %arg1, align 8
%51 = icmp eq i64 %sv_1.1.reload, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_16, label LBL_15
LBL_15:
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
store i64 %42, i64* %45, align 8
%53 = add i64 %sv_1.1.reload, 8
%54 = inttoptr i64 %53 to i64*
store i64 %44, i64* %54, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %47, { 1, 0 }
uselistorder i64* %45, { 1, 0, 2 }
uselistorder i64 %42, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 3, 2, 1, 4, 0 }
uselistorder i64 %sv_0.1.reload, { 2, 1, 0 }
uselistorder i64 %.reload, { 3, 8, 4, 5, 2, 1, 6, 0, 7 }
uselistorder i64 %sv_0.07.reload, { 2, 3, 1, 4, 0 }
uselistorder i64 %sv_1.05.reload, { 0, 1, 2, 4, 3 }
uselistorder i32 %sv_2.04.reload, { 2, 1, 0 }
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i32 %2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.05.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi11.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem12, { 0, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 2, 1, 4 }
uselistorder i64 (i64, i64, i64*)* @next_band, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 3, 4 }
uselistorder label LBL_17, { 2, 4, 1, 0, 3 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cipso_v4_doi_putdef_12879 | cipso_v4_doi_putdef | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64* nonnull @gv_0)
%5 = add i64 %arg1, 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64* nonnull @gv_0)
%8 = call i64 @FUNC()
%9 = add i64 %arg1, 24
%10 = call i64 @FUNC(i64 %9, i64 4198765)
store i64 %10, 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 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | _gdContributionsAlloc_6626 | _gdContributionsAlloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem23 = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge58.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %0, i64 8)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_12
LBL_1:
%4 = call i64 @FUNC(i64 16)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_12
LBL_2:
%sext = mul i64 %arg1, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = inttoptr i64 %4 to i32*
%9 = trunc i64 %arg2 to i32
store i32 %9, i32* %8, align 4
%10 = trunc i64 %7 to i32
%11 = add i64 %4, 4
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = and i64 %7, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 8)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%18 = mul i64 %arg1, 8
%19 = and i64 %18, 34359738360
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %4, 8
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = icmp eq i64 %20, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_5, label LBL_6
LBL_5:
%25 = mul i64 %arg2, 8
%26 = and i64 %25, 34359738360
%27 = icmp eq i32 %10, 0
store i64 %20, i64* %.reg2mem
store i32 0, i32* %storemerge58.reg2mem
store i64 %4, i64* %rax.0.reg2mem
br i1 %27, label LBL_12, label LBL_7
LBL_6:
%28 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%storemerge58.reload = load i32, i32* %storemerge58.reg2mem
%.reload = load i64, i64* %.reg2mem
%29 = zext i32 %storemerge58.reload to i64
%30 = mul i64 %29, 8
%31 = add i64 %30, %.reload
%32 = call i64 @FUNC(i64 %26)
%33 = inttoptr i64 %31 to i64*
store i64 %32, i64* %33, align 8
%34 = load i64, i64* %22, align 8
%35 = add i64 %34, %30
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_11, label LBL_8
LBL_8:
%40 = icmp eq i32 %storemerge58.reload, 0
store i64 0, i64* %indvars.iv.reg2mem
store i64 %34, i64* %.reg2mem23
store i64 %34, i64* %.lcssa.reg2mem
br i1 %40, label LBL_10, label LBL_9
LBL_9:
%.reload24 = load i64, i64* %.reg2mem23
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%41 = mul i64 %indvars.iv.reload, 8
%42 = add i64 %41, %.reload24
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = call i64 @FUNC(i64 %44)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%46 = load i64, i64* %22, align 8
%exitcond = icmp eq i64 %indvars.iv.next, %29
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %46, i64* %.reg2mem23
store i64 %46, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%47 = call i64 @FUNC(i64 %.lcssa.reload)
%48 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%49 = add i32 %storemerge58.reload, 1
%50 = icmp ult i32 %49, %10
store i64 %34, i64* %.reg2mem
store i32 %49, i32* %storemerge58.reg2mem
store i64 %4, i64* %rax.0.reg2mem
br i1 %50, label LBL_7, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %34, { 2, 0, 1, 3 }
uselistorder i64 %30, { 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i32 %storemerge58.reload, { 0, 2, 1 }
uselistorder i32 %10, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 3, 1, 4, 5, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge58.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem23, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 7, 6, 2, 5, 3, 4 }
uselistorder i64 34359738360, { 1, 0 }
uselistorder i64 (i64)* @gdMalloc, { 2, 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64, i64)* @overflow2, { 1, 0 }
uselistorder label LBL_12, { 0, 4, 5, 1, 6, 2, 3 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | set_table_matrix0_9710 | set_table_matrix0 | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.in.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%xmm7.016.reg2mem = alloca i128
%storemerge617.reg2mem = alloca i32
%.reg2mem98 = alloca i64
%sv_1.3.off0.reg2mem = alloca i64
%storemerge7.lcssa.reg2mem = alloca i32
%xmm0.7.lcssa.reg2mem = alloca i128
%sv_2.2.lcssa.reg2mem = alloca i64
%sv_1.2.in.lcssa.reg2mem = alloca i64
%xmm0.6.reg2mem = alloca i128
%sv_2.1.reg2mem = alloca i64
%sv_1.2.in18.reg2mem = alloca i64
%sv_2.219.reg2mem = alloca i64
%indvars.iv63.reg2mem = alloca i64
%xmm0.5.lcssa.reg2mem = alloca i128
%xmm2.0.lcssa.reg2mem = alloca i128
%xmm1.2.lcssa.reg2mem = alloca i128
%xmm0.4.lcssa.reg2mem = alloca i128
%xmm0.3.reg2mem = alloca i128
%xmm1.231.reg2mem = alloca i128
%xmm2.032.reg2mem = alloca i128
%indvars.iv71.reg2mem = alloca i64
%sv_2.025.reg2mem = alloca i64
%xmm1.126.reg2mem = alloca i128
%indvars.iv67.reg2mem = alloca i64
%xmm0.537.reg2mem = alloca i128
%xmm1.338.reg2mem = alloca i128
%xmm2.139.reg2mem = alloca i128
%storemerge840.reg2mem = alloca i32
%.reg2mem = alloca i64
%indvars.iv75.reg2mem = alloca i64
%xmm0.1.reg2mem = alloca i128
%sv_1.1.off0.reg2mem = alloca i64
%storemerge11.lcssa.reg2mem = alloca i32
%xmm1.0.lcssa.reg2mem = alloca i128
%xmm0.0.lcssa.reg2mem = alloca i128
%sv_1.0.in.lcssa.reg2mem = alloca i64
%sv_1.0.in44.reg2mem = alloca i64
%xmm6.045.reg2mem = alloca i128
%indvars.iv79.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%5 = ptrtoint i64* %sv_3 to i64
%6 = trunc i64 %2 to i32
%7 = add i32 %6, 1
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = add nsw i64 %9, 15
%11 = udiv i64 %10, 16
%12 = mul i64 %11, 16
%13 = sub i64 %5, %12
%14 = call i128 @FUNC(i128 %3, i128 %3)
%15 = call i64 @FUNC(i128 %14)
%16 = icmp sgt i32 %7, 0
store i64 %15, i64* %sv_1.0.in.lcssa.reg2mem
store i128 %14, i128* %xmm0.0.lcssa.reg2mem
store i32 0, i32* %storemerge11.lcssa.reg2mem
br i1 %16, label LBL_1, label LBL_3
LBL_1:
%17 = add i64 %4, 8
%18 = inttoptr i64 %17 to i64*
%wide.trip.count81 = zext i32 %7 to i64
store i64 0, i64* %indvars.iv79.reg2mem
store i64 %15, i64* %sv_1.0.in44.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.in44.reload = load i64, i64* %sv_1.0.in44.reg2mem
%xmm6.045.reload = load i128, i128* %xmm6.045.reg2mem
%indvars.iv79.reload = load i64, i64* %indvars.iv79.reg2mem
%19 = load i64, i64* %18, align 8
%20 = mul i64 %indvars.iv79.reload, 4
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = call i128 @FUNC(i128 %xmm6.045.reload, i128 %xmm6.045.reload)
%25 = call i128 @FUNC(i32 %23)
%26 = call i64 @FUNC(i128 %25)
%27 = call i128 @__asm_movq.2(i64 %26)
%28 = call i128 @FUNC()
%29 = call i64 @FUNC(i128 %28)
%30 = mul i64 %indvars.iv79.reload, 8
%31 = add i64 %30, %13
%32 = inttoptr i64 %31 to i64*
store i64 %29, i64* %32, align 8
%33 = call i128 @__asm_movsd.1(i64 %29)
%34 = call i128 @__asm_movsd.1(i64 %sv_1.0.in44.reload)
%35 = call i128 @FUNC(i128 %33, i128 %34)
%36 = call i64 @FUNC(i128 %35)
%indvars.iv.next80 = add nuw nsw i64 %indvars.iv79.reload, 1
%exitcond82 = icmp eq i64 %indvars.iv.next80, %wide.trip.count81
store i64 %indvars.iv.next80, i64* %indvars.iv79.reg2mem
store i128 %25, i128* %xmm6.045.reg2mem
store i64 %36, i64* %sv_1.0.in44.reg2mem
store i64 %36, i64* %sv_1.0.in.lcssa.reg2mem
store i128 %35, i128* %xmm0.0.lcssa.reg2mem
store i128 %34, i128* %xmm1.0.lcssa.reg2mem
store i32 %7, i32* %storemerge11.lcssa.reg2mem
br i1 %exitcond82, label LBL_3, label LBL_2
LBL_3:
%storemerge11.lcssa.reload = load i32, i32* %storemerge11.lcssa.reg2mem
%xmm1.0.lcssa.reload = load i128, i128* %xmm1.0.lcssa.reg2mem
%xmm0.0.lcssa.reload = load i128, i128* %xmm0.0.lcssa.reg2mem
%sv_1.0.in.lcssa.reload = load i64, i64* %sv_1.0.in.lcssa.reg2mem
%sv_1.0 = sext i64 %sv_1.0.in.lcssa.reload to i128
%37 = icmp ult i32 %storemerge11.lcssa.reload, %7
%38 = call i128 @FUNC(i128 %xmm0.0.lcssa.reload, i128 %xmm0.0.lcssa.reload)
call void @FUNC(i128 %38, i128 %sv_1.0)
store i64 %sv_1.0.in.lcssa.reload, i64* %sv_1.1.off0.reg2mem
store i128 %38, i128* %xmm0.1.reg2mem
br i1 %37, label LBL_5, label LBL_4
LBL_4:
%39 = call i128 @__asm_movsd.1(i64 4607182418800017408)
%40 = call i64 @FUNC(i128 %39)
store i64 %40, i64* %sv_1.1.off0.reg2mem
store i128 %39, i128* %xmm0.1.reg2mem
br label LBL_5
LBL_5:
%sext = mul i64 %arg2, 4294967296
%41 = ashr exact i64 %sext, 32
%42 = add i64 %4, 24
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_9, label LBL_6
LBL_6:
store i32 0, i32* %rax.0.in.reg2mem
br i1 %16, label LBL_7, label LBL_34
LBL_7:
%sv_1.1.off0.reload = load i64, i64* %sv_1.1.off0.reg2mem
%47 = trunc i64 %41 to i32
%wide.trip.count77 = zext i32 %7 to i64
store i64 0, i64* %indvars.iv75.reg2mem
br label LBL_8
LBL_8:
%indvars.iv75.reload = load i64, i64* %indvars.iv75.reg2mem
%48 = mul i64 %indvars.iv75.reload, 8
%49 = add i64 %48, %13
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i128 @__asm_movsd.1(i64 %51)
%53 = call i128 @FUNC(i128 %52, i64 %sv_1.1.off0.reload)
%54 = call i64 @FUNC(i128 %53)
%55 = call i128 @FUNC(i128 %53, i128 %53)
%56 = call i128 @FUNC(i32 %47)
%57 = call i128 @FUNC(i128 %56, i64 %54)
%58 = call i32 @FUNC(i128 %57)
%59 = zext i32 %58 to i64
%60 = call i128 @FUNC(i64 %59)
%61 = call i64 @FUNC(i128 %60)
%62 = call i128 @__asm_movsd.1(i64 %61)
%63 = call i128 @FUNC(i128 %62)
%64 = call i128 @__asm_movq.2(i64 %54)
%65 = call i64 @FUNC(i64 %4, i64 %indvars.iv75.reload, i64 1)
%indvars.iv.next76 = add nuw nsw i64 %indvars.iv75.reload, 1
%exitcond78 = icmp eq i64 %indvars.iv.next76, %wide.trip.count77
store i64 %indvars.iv.next76, i64* %indvars.iv75.reg2mem
store i32 %7, i32* %rax.0.in.reg2mem
br i1 %exitcond78, label LBL_34, label LBL_8
LBL_9:
%66 = add nsw i64 %8, 15
%67 = udiv i64 %66, 16
%68 = mul i64 %67, 16
%69 = sub i64 %13, %68
%xmm0.1.reload = load i128, i128* %xmm0.1.reg2mem
%70 = inttoptr i64 %69 to i64*
%71 = call i64* @memset(i64* %70, i32 0, i32 %7)
%72 = load i32, i32* %43, align 4
%73 = icmp eq i32 %72, 0
store i128 %xmm0.1.reload, i128* %xmm0.5.lcssa.reg2mem
br i1 %73, label LBL_18, label LBL_10
LBL_10:
%74 = add i64 %4, 32
%75 = inttoptr i64 %74 to i64*
%76 = add i64 %4, 40
%77 = inttoptr i64 %76 to i64*
%78 = add i64 %4, 48
%79 = inttoptr i64 %78 to i64*
%80 = add i64 %4, 56
%81 = inttoptr i64 %80 to i64*
%82 = add i64 %4, 16
%83 = inttoptr i64 %82 to i32*
%84 = add i64 %4, 8
%85 = inttoptr i64 %84 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge840.reg2mem
store i128 %xmm1.0.lcssa.reload, i128* %xmm1.338.reg2mem
store i128 %xmm0.1.reload, i128* %xmm0.537.reg2mem
br label LBL_11
LBL_11:
%xmm0.537.reload = load i128, i128* %xmm0.537.reg2mem
%xmm1.338.reload = load i128, i128* %xmm1.338.reg2mem
%xmm2.139.reload = load i128, i128* %xmm2.139.reg2mem
%storemerge840.reload = load i32, i32* %storemerge840.reg2mem
%.reload = load i64, i64* %.reg2mem
%86 = load i64, i64* %75, align 8
%87 = mul i64 %.reload, 4
%88 = add i64 %86, %87
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
%91 = load i64, i64* %77, align 8
%92 = sext i32 %90 to i64
%93 = mul i64 %92, 4
%94 = add i64 %93, %91
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = load i64, i64* %79, align 8
%98 = add i64 %97, %93
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = add i32 %100, %96
%102 = load i64, i64* %81, align 8
%103 = add i64 %102, %93
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = load i32, i32* %83, align 4
%107 = call i128 @FUNC(i128 %xmm0.537.reload, i128 %xmm0.537.reload)
%108 = call i64 @FUNC(i128 %107)
%109 = icmp slt i32 %96, %101
store i128 %107, i128* %xmm0.4.lcssa.reg2mem
store i128 %xmm1.338.reload, i128* %xmm1.2.lcssa.reg2mem
store i128 %xmm2.139.reload, i128* %xmm2.0.lcssa.reg2mem
br i1 %109, label LBL_12, label LBL_17
LBL_12:
%110 = add i32 %100, -1
%111 = mul i32 %106, %110
%112 = sub i32 %105, %111
%113 = sext i32 %96 to i64
%wide.trip.count69 = sext i32 %101 to i64
store i64 %113, i64* %indvars.iv67.reg2mem
store i128 %xmm1.338.reload, i128* %xmm1.126.reg2mem
store i64 %108, i64* %sv_2.025.reg2mem
br label LBL_13
LBL_13:
%sv_2.025.reload = load i64, i64* %sv_2.025.reg2mem
%xmm1.126.reload = load i128, i128* %xmm1.126.reg2mem
%indvars.iv67.reload = load i64, i64* %indvars.iv67.reg2mem
%114 = load i64, i64* %85, align 8
%115 = mul i64 %indvars.iv67.reload, 4
%116 = add i64 %114, %115
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = call i128 @FUNC(i128 %xmm1.126.reload, i128 %xmm1.126.reload)
%120 = call i128 @FUNC(i32 %118)
%121 = call i128 @__asm_movsd.1(i64 4591870180066957722)
%122 = call i128 @FUNC(i128 %121, i128 %120)
%123 = call i128 @__asm_movsd.1(i64 %sv_2.025.reload)
%124 = call i128 @FUNC(i128 %122, i128 %123)
%125 = call i64 @FUNC(i128 %124)
%126 = add i64 %indvars.iv67.reload, %69
%127 = inttoptr i64 %126 to i8*
%128 = load i8, i8* %127, align 1
%129 = add i8 %128, 1
store i8 %129, i8* %127, align 1
%indvars.iv.next68 = add nsw i64 %indvars.iv67.reload, 1
%exitcond70 = icmp eq i64 %indvars.iv.next68, %wide.trip.count69
store i64 %indvars.iv.next68, i64* %indvars.iv67.reg2mem
store i128 %123, i128* %xmm1.126.reg2mem
store i64 %125, i64* %sv_2.025.reg2mem
store i64 %113, i64* %indvars.iv71.reg2mem
store i128 %xmm2.139.reload, i128* %xmm2.032.reg2mem
store i128 %123, i128* %xmm1.231.reg2mem
br i1 %exitcond70, label LBL_14, label LBL_13
LBL_14:
%xmm1.231.reload = load i128, i128* %xmm1.231.reg2mem
%xmm2.032.reload = load i128, i128* %xmm2.032.reg2mem
%indvars.iv71.reload = load i64, i64* %indvars.iv71.reg2mem
%130 = call i128 @FUNC(i128 %xmm1.231.reload, i128 %xmm1.231.reload)
%131 = call i128 @FUNC(i32 %112)
%132 = load i64, i64* %85, align 8
%133 = mul i64 %indvars.iv71.reload, 4
%134 = add i64 %132, %133
%135 = icmp ult i64 %134, %133
%136 = icmp eq i64 %134, 0
%137 = inttoptr i64 %134 to i32*
%138 = load i32, i32* %137, align 4
%139 = call i128 @FUNC(i128 %xmm2.032.reload, i128 %xmm2.032.reload)
%140 = call i128 @FUNC(i32 %138)
%141 = call i128 @__asm_movsd.1(i64 4591870180066957722)
%142 = call i128 @FUNC(i128 %141, i128 %140)
%143 = call i128 @__asm_mulsd.3(i128 %142, i128 %131)
%144 = call i128 @FUNC(i128 %143, i64 %125)
%145 = call i64 @FUNC(i128 %144)
%146 = call i128 @__asm_movq.2(i64 %145)
%147 = call i128 @FUNC()
%148 = call i64 @FUNC(i128 %147)
%149 = mul i64 %indvars.iv71.reload, 8
%150 = add i64 %149, %13
%151 = inttoptr i64 %150 to i64*
%152 = load i64, i64* %151, align 8
%153 = call i128 @__asm_movsd.1(i64 %152)
%154 = call i128 @__asm_movsd.1(i64 %148)
call void @FUNC(i128 %154, i128 %153)
%155 = or i1 %135, %136
store i128 %154, i128* %xmm0.3.reg2mem
br i1 %155, label LBL_16, label LBL_15
LBL_15:
%156 = call i128 @__asm_movsd.1(i64 %148)
%157 = call i64 @FUNC(i128 %156)
store i64 %157, i64* %151, align 8
store i128 %156, i128* %xmm0.3.reg2mem
br label LBL_16
LBL_16:
%xmm0.3.reload = load i128, i128* %xmm0.3.reg2mem
%indvars.iv.next72 = add nsw i64 %indvars.iv71.reload, 1
%exitcond74 = icmp eq i64 %indvars.iv.next72, %wide.trip.count69
store i64 %indvars.iv.next72, i64* %indvars.iv71.reg2mem
store i128 %140, i128* %xmm2.032.reg2mem
store i128 %153, i128* %xmm1.231.reg2mem
store i128 %xmm0.3.reload, i128* %xmm0.4.lcssa.reg2mem
store i128 %153, i128* %xmm1.2.lcssa.reg2mem
store i128 %140, i128* %xmm2.0.lcssa.reg2mem
br i1 %exitcond74, label LBL_17, label LBL_14
LBL_17:
%xmm2.0.lcssa.reload = load i128, i128* %xmm2.0.lcssa.reg2mem
%xmm1.2.lcssa.reload = load i128, i128* %xmm1.2.lcssa.reg2mem
%xmm0.4.lcssa.reload = load i128, i128* %xmm0.4.lcssa.reg2mem
%158 = add i32 %storemerge840.reload, 1
%159 = load i32, i32* %43, align 4
%160 = zext i32 %159 to i64
%161 = sext i32 %158 to i64
%162 = icmp slt i64 %161, %160
store i64 %161, i64* %.reg2mem
store i32 %158, i32* %storemerge840.reg2mem
store i128 %xmm2.0.lcssa.reload, i128* %xmm2.139.reg2mem
store i128 %xmm1.2.lcssa.reload, i128* %xmm1.338.reg2mem
store i128 %xmm0.4.lcssa.reload, i128* %xmm0.537.reg2mem
store i128 %xmm0.4.lcssa.reload, i128* %xmm0.5.lcssa.reg2mem
br i1 %162, label LBL_11, label LBL_18
LBL_18:
%xmm0.5.lcssa.reload = load i128, i128* %xmm0.5.lcssa.reg2mem
%163 = call i128 @FUNC(i128 %xmm0.5.lcssa.reload, i128 %xmm0.5.lcssa.reload)
%164 = call i64 @FUNC(i128 %163)
%165 = call i128 @FUNC(i128 %163, i128 %163)
%166 = call i64 @FUNC(i128 %165)
store i64 %164, i64* %sv_1.2.in.lcssa.reg2mem
store i64 %166, i64* %sv_2.2.lcssa.reg2mem
store i128 %165, i128* %xmm0.7.lcssa.reg2mem
store i32 0, i32* %storemerge7.lcssa.reg2mem
br i1 %16, label LBL_19, label LBL_23
LBL_19:
%wide.trip.count65 = zext i32 %7 to i64
store i64 0, i64* %indvars.iv63.reg2mem
store i64 %166, i64* %sv_2.219.reg2mem
store i64 %164, i64* %sv_1.2.in18.reg2mem
br label LBL_20
LBL_20:
%sv_1.2.in18.reload = load i64, i64* %sv_1.2.in18.reg2mem
%sv_2.219.reload = load i64, i64* %sv_2.219.reg2mem
%indvars.iv63.reload = load i64, i64* %indvars.iv63.reg2mem
%167 = mul i64 %indvars.iv63.reload, 8
%168 = add i64 %167, %13
%169 = inttoptr i64 %168 to i64*
%170 = load i64, i64* %169, align 8
%171 = call i128 @__asm_movsd.1(i64 %170)
%172 = call i128 @__asm_movsd.1(i64 %sv_1.2.in18.reload)
%173 = call i128 @FUNC(i128 %171, i128 %172)
%174 = call i64 @FUNC(i128 %173)
%175 = add i64 %indvars.iv63.reload, %69
%176 = inttoptr i64 %175 to i8*
%177 = load i8, i8* %176, align 1
%178 = icmp eq i8 %177, 0
%179 = icmp eq i1 %178, false
store i64 %sv_2.219.reload, i64* %sv_2.1.reg2mem
store i128 %173, i128* %xmm0.6.reg2mem
br i1 %179, label LBL_22, label LBL_21
LBL_21:
%180 = load i64, i64* %169, align 8
%181 = call i128 @__asm_movsd.1(i64 %180)
%182 = call i128 @__asm_movsd.1(i64 %sv_2.219.reload)
%183 = call i128 @FUNC(i128 %181, i128 %182)
%184 = call i64 @FUNC(i128 %183)
store i64 %184, i64* %sv_2.1.reg2mem
store i128 %183, i128* %xmm0.6.reg2mem
br label LBL_22
LBL_22:
%xmm0.6.reload = load i128, i128* %xmm0.6.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%indvars.iv.next64 = add nuw nsw i64 %indvars.iv63.reload, 1
%exitcond66 = icmp eq i64 %indvars.iv.next64, %wide.trip.count65
store i64 %indvars.iv.next64, i64* %indvars.iv63.reg2mem
store i64 %sv_2.1.reload, i64* %sv_2.219.reg2mem
store i64 %174, i64* %sv_1.2.in18.reg2mem
store i64 %174, i64* %sv_1.2.in.lcssa.reg2mem
store i64 %sv_2.1.reload, i64* %sv_2.2.lcssa.reg2mem
store i128 %xmm0.6.reload, i128* %xmm0.7.lcssa.reg2mem
store i32 %7, i32* %storemerge7.lcssa.reg2mem
br i1 %exitcond66, label LBL_23, label LBL_20
LBL_23:
%storemerge7.lcssa.reload = load i32, i32* %storemerge7.lcssa.reg2mem
%xmm0.7.lcssa.reload = load i128, i128* %xmm0.7.lcssa.reg2mem
%sv_2.2.lcssa.reload = load i64, i64* %sv_2.2.lcssa.reg2mem
%sv_1.2.in.lcssa.reload = load i64, i64* %sv_1.2.in.lcssa.reg2mem
%sv_1.2 = sext i64 %sv_1.2.in.lcssa.reload to i128
%185 = icmp ult i32 %storemerge7.lcssa.reload, %7
%186 = call i128 @FUNC(i128 %xmm0.7.lcssa.reload, i128 %xmm0.7.lcssa.reload)
call void @FUNC(i128 %186, i128 %sv_1.2)
store i64 %sv_1.2.in.lcssa.reload, i64* %sv_1.3.off0.reg2mem
br i1 %185, label LBL_25, label LBL_24
LBL_24:
%187 = call i128 @__asm_movsd.1(i64 4607182418800017408)
%188 = call i64 @FUNC(i128 %187)
store i64 %188, i64* %sv_1.3.off0.reg2mem
br label LBL_25
LBL_25:
%sv_1.3.off0.reload = load i64, i64* %sv_1.3.off0.reg2mem
%189 = load i32, i32* %43, align 4
%190 = icmp eq i32 %189, 0
br i1 %190, label LBL_28, label LBL_26
LBL_26:
%191 = add i64 %4, 32
%192 = inttoptr i64 %191 to i64*
%193 = add i64 %4, 40
%194 = inttoptr i64 %193 to i64*
%195 = add i64 %4, 56
%196 = inttoptr i64 %195 to i64*
%197 = add i64 %4, 48
%198 = inttoptr i64 %197 to i64*
%199 = add i64 %4, 16
%200 = inttoptr i64 %199 to i32*
%201 = trunc i64 %41 to i32
store i64 0, i64* %.reg2mem98
store i32 0, i32* %storemerge617.reg2mem
br label LBL_27
LBL_27:
%xmm7.016.reload = load i128, i128* %xmm7.016.reg2mem
%storemerge617.reload = load i32, i32* %storemerge617.reg2mem
%.reload99 = load i64, i64* %.reg2mem98
%202 = load i64, i64* %192, align 8
%203 = mul i64 %.reload99, 4
%204 = add i64 %202, %203
%205 = inttoptr i64 %204 to i32*
%206 = load i32, i32* %205, align 4
%207 = load i64, i64* %194, align 8
%208 = sext i32 %206 to i64
%209 = mul i64 %208, 4
%210 = add i64 %209, %207
%211 = inttoptr i64 %210 to i32*
%212 = load i32, i32* %211, align 4
%213 = load i64, i64* %196, align 8
%214 = add i64 %213, %209
%215 = inttoptr i64 %214 to i32*
%216 = load i32, i32* %215, align 4
%217 = load i64, i64* %198, align 8
%218 = add i64 %217, %209
%219 = inttoptr i64 %218 to i32*
%220 = load i32, i32* %219, align 4
%221 = add i32 %220, -1
%222 = load i32, i32* %200, align 4
%223 = mul i32 %221, %222
%224 = sub i32 %216, %223
%225 = call i128 @FUNC(i128 %xmm7.016.reload, i128 %xmm7.016.reload)
%226 = call i128 @FUNC(i32 %224)
%227 = call i64 @FUNC(i128 %226)
%228 = call i128 @__asm_movq.2(i64 %227)
%229 = call i128 @FUNC()
%230 = call i64 @FUNC(i128 %229)
%231 = call i128 @__asm_movsd.1(i64 %sv_2.2.lcssa.reload)
%232 = call i128 @FUNC(i128 %231)
%233 = call i128 @__asm_addsd.4(i128 %232, i64 %230)
%234 = call i128 @__asm_movsd.1(i64 %230)
%235 = call i128 @__asm_divsd.5(i128 %234, i128 %233)
%236 = call i64 @FUNC(i128 %235)
%237 = call i128 @FUNC(i128 %235, i128 %235)
%238 = call i128 @FUNC(i32 %201)
%239 = call i128 @FUNC(i128 %238, i64 %236)
%240 = call i32 @FUNC(i128 %239)
%241 = zext i32 %240 to i64
%242 = call i128 @FUNC(i64 %241)
%243 = call i64 @FUNC(i128 %242)
%244 = load i64, i64* %198, align 8
%245 = add i64 %244, %209
%246 = inttoptr i64 %245 to i32*
%247 = load i32, i32* %246, align 4
%248 = zext i32 %247 to i64
%249 = call i128 @__asm_movsd.1(i64 %243)
%250 = zext i32 %212 to i64
%251 = call i128 @FUNC(i128 %249)
%252 = call i128 @__asm_movq.2(i64 %236)
%253 = call i64 @FUNC(i64 %4, i64 %250, i64 %248, i64 %69)
%254 = add i32 %storemerge617.reload, 1
%255 = load i32, i32* %43, align 4
%256 = zext i32 %255 to i64
%257 = sext i32 %254 to i64
%258 = icmp slt i64 %257, %256
store i64 %257, i64* %.reg2mem98
store i32 %254, i32* %storemerge617.reg2mem
store i128 %226, i128* %xmm7.016.reg2mem
br i1 %258, label LBL_27, label LBL_28
LBL_28:
store i32 0, i32* %rax.0.in.reg2mem
br i1 %16, label LBL_29, label LBL_34
LBL_29:
%259 = trunc i64 %41 to i32
%260 = and i64 %41, 4294967295
%wide.trip.count = zext i32 %7 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_30
LBL_30:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%261 = add i64 %indvars.iv.reload, %69
%262 = inttoptr i64 %261 to i8*
%263 = load i8, i8* %262, align 1
%264 = icmp eq i8 %263, 0
%265 = icmp eq i1 %264, false
%266 = mul i64 %indvars.iv.reload, 8
%267 = add i64 %266, %13
%268 = inttoptr i64 %267 to i64*
%269 = load i64, i64* %268, align 8
%270 = call i128 @__asm_movsd.1(i64 %269)
%271 = call i64 @FUNC(i128 %270)
br i1 %265, label LBL_32, label LBL_31
LBL_31:
%272 = call i128 @__asm_movsd.1(i64 4607182418800017408)
%273 = call i128 @FUNC(i128 %272)
%274 = call i128 @__asm_movq.2(i64 %sv_2.2.lcssa.reload)
%275 = call i64 @FUNC()
%276 = call i128 @FUNC(i128 %274)
%277 = call i128 @__asm_movsd.1(i64 %271)
%278 = call i128 @__asm_divsd.5(i128 %277, i128 %276)
%279 = call i64 @FUNC(i128 %278)
%280 = call i128 @FUNC(i128 %278, i128 %278)
%281 = call i128 @FUNC(i32 %259)
%282 = call i128 @FUNC(i128 %281, i64 %279)
%283 = call i32 @FUNC(i128 %282)
%284 = zext i32 %283 to i64
%285 = call i128 @FUNC(i64 %284)
%286 = call i64 @FUNC(i128 %285)
store i64 %279, i64* %sv_0.0.reg2mem
store i64 %286, i64* %storemerge5.reg2mem
br label LBL_33
LBL_32:
%287 = call i128 @__asm_movsd.1(i64 %sv_1.3.off0.reload)
%288 = call i128 @FUNC(i128 %287)
%289 = call i128 @FUNC(i128 %288, i64 %sv_2.2.lcssa.reload)
%290 = call i64 @FUNC(i128 %289)
%291 = call i128 @__asm_movsd.1(i64 4607182418800017408)
%292 = call i128 @FUNC(i128 %291)
%293 = call i128 @__asm_movq.2(i64 %290)
%294 = call i64 @FUNC()
%295 = call i128 @FUNC(i128 %293)
%296 = call i128 @__asm_movsd.1(i64 %271)
%297 = call i128 @__asm_divsd.5(i128 %296, i128 %295)
%298 = call i64 @FUNC(i128 %297)
%299 = call i128 @FUNC(i64 %260)
%300 = call i64 @FUNC(i128 %299)
store i64 %298, i64* %sv_0.0.reg2mem
store i64 %300, i64* %storemerge5.reg2mem
br label LBL_33
LBL_33:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%301 = call i128 @__asm_movsd.1(i64 %storemerge5.reload)
%302 = call i128 @FUNC(i128 %301)
%303 = call i128 @__asm_movq.2(i64 %sv_0.0.reload)
%304 = call i64 @FUNC(i64 %4, i64 %indvars.iv.reload, i64 %69)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %7, i32* %rax.0.in.reg2mem
br i1 %exitcond, label LBL_34, label LBL_30
LBL_34:
%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 i128 %278, { 2, 1, 0 }
uselistorder i64 %271, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 1, 3, 2 }
uselistorder i128 %235, { 2, 1, 0 }
uselistorder i64 %230, { 1, 0 }
uselistorder i64 %209, { 3, 2, 1, 0 }
uselistorder i128 %xmm7.016.reload, { 1, 0 }
uselistorder i64 %sv_2.2.lcssa.reload, { 1, 0, 2 }
uselistorder i128 %xmm0.7.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_2.219.reload, { 1, 0 }
uselistorder i64 %166, { 1, 0 }
uselistorder i64 %164, { 1, 0 }
uselistorder i128 %163, { 2, 1, 0 }
uselistorder i128 %xmm0.5.lcssa.reload, { 1, 0 }
uselistorder i64 %indvars.iv71.reload, { 0, 2, 1 }
uselistorder i128 %xmm2.032.reload, { 1, 0 }
uselistorder i128 %xmm1.231.reload, { 1, 0 }
uselistorder i64 %125, { 1, 0 }
uselistorder i128 %xmm1.126.reload, { 1, 0 }
uselistorder i32 %100, { 1, 0 }
uselistorder i32 %96, { 1, 2, 0 }
uselistorder i64 %93, { 2, 1, 0 }
uselistorder i128 %xmm2.139.reload, { 1, 0 }
uselistorder i128 %xmm1.338.reload, { 1, 0 }
uselistorder i128 %xmm0.537.reload, { 1, 0 }
uselistorder i128 %xmm0.1.reload, { 1, 0 }
uselistorder i64 %69, { 3, 0, 4, 1, 2, 5 }
uselistorder i128 %53, { 2, 1, 0 }
uselistorder i32* %43, { 2, 1, 3, 0, 4 }
uselistorder i64 %41, { 2, 1, 3, 0 }
uselistorder i128 %xmm0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %indvars.iv79.reload, { 0, 2, 1 }
uselistorder i128 %xmm6.045.reload, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %13, { 0, 1, 2, 5, 3, 4 }
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %7, { 1, 7, 9, 2, 6, 10, 0, 5, 11, 3, 4, 8, 12 }
uselistorder i64 %4, { 9, 10, 11, 4, 5, 6, 7, 12, 13, 0, 1, 2, 3, 8, 15, 14 }
uselistorder i64* %indvars.iv79.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm6.045.reg2mem, { 1, 0 }
uselistorder i64* %sv_1.0.in44.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv75.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge840.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm2.139.reg2mem, { 1, 0 }
uselistorder i128* %xmm1.338.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.537.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv67.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm1.126.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.025.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv71.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm2.032.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm1.231.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv63.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.219.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.2.in18.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem98, { 1, 0, 2 }
uselistorder i32* %storemerge617.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm7.016.reg2mem, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.in.reg2mem, { 0, 2, 4, 1, 3 }
uselistorder i64 ()* @max, { 1, 0 }
uselistorder i64 4591870180066957722, { 1, 0, 2 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 56, { 1, 0 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 40, { 1, 0 }
uselistorder i128 (i64)* @sigma_td_nw, { 3, 2, 1, 0 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder i64 1, { 5, 4, 2, 3, 1, 6, 0 }
uselistorder i128 (i64)* @__asm_movsd.1, { 0, 1, 2, 3, 5, 6, 4, 7, 8, 9, 14, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 25, 23, 24, 26, 27, 28, 29 }
uselistorder i128 ()* @weight, { 2, 1, 0 }
uselistorder i64 (i128)* @__asm_movsd, { 0, 2, 1, 3, 6, 4, 5, 10, 11, 7, 8, 9, 12, 14, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }
uselistorder i128 (i128, i128)* @__asm_pxor, { 0, 1, 2, 3, 8, 9, 4, 5, 6, 7, 10, 12, 11, 13, 14 }
uselistorder i64 16, { 4, 5, 0, 2, 1, 3 }
uselistorder i64 15, { 1, 0 }
uselistorder i64 8, { 0, 1, 2, 6, 3, 4, 7, 5 }
uselistorder label LBL_34, { 1, 3, 0, 2 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | i2c_ASN1_INTEGER_13826 | i2c_ASN1_INTEGER | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%rsi.0.reg2mem = alloca i64
%sv_0.1.in14.in.reg2mem = alloca i64
%sv_1.215.in.reg2mem = alloca i64
%storemerge16.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i8
%storemerge3.lcssa.reg2mem = alloca i32
%sv_0.0.in.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_1.119.reg2mem = alloca i64
%sv_0.0.in20.reg2mem = alloca i64
%storemerge321.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%.reg2mem42 = alloca i32
%storemerge4.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i8
%sv_4.1.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i8
%sv_4.0.reg2mem = alloca i32
%storemerge525.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i32* %arg1, null
%3 = icmp eq i1 %2, false
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_21
LBL_1:
%4 = trunc i64 %1 to i32
%5 = and i32 %4, 32
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i32 0, i32* %sv_4.1.reg2mem
store i8 0, i8* %sv_3.1.reg2mem
store i32 %5, i32* %sv_2.1.reg2mem
store i32 1, i32* %storemerge4.reg2mem
br i1 %11, label LBL_2, label LBL_9
LBL_2:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i32 %9, 1
%18 = icmp eq i8 %16, 0
%19 = icmp eq i1 %17, %18
%sv_2.0 = select i1 %19, i32 0, i32 %5
%20 = icmp eq i32 %sv_2.0, 0
%21 = icmp slt i8 %16, 0
%or.cond.not = icmp eq i1 %21, %20
%.mux = zext i1 %or.cond.not to i32
store i32 %.mux, i32* %sv_4.0.reg2mem
store i8 0, i8* %sv_3.0.reg2mem
br i1 %20, label LBL_8, label LBL_3
LBL_3:
%22 = icmp ult i8 %16, -127
store i32 1, i32* %sv_4.0.reg2mem
store i8 -1, i8* %sv_3.0.reg2mem
br i1 %22, label LBL_4, label LBL_8
LBL_4:
%23 = icmp eq i8 %16, -128
%24 = icmp ugt i32 %9, 1
%or.cond = icmp eq i1 %24, %23
store i32 0, i32* %sv_4.0.reg2mem
store i8 0, i8* %sv_3.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_8
LBL_5:
%25 = zext i32 %9 to i64
store i64 1, i64* %.reg2mem
store i32 1, i32* %storemerge525.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%26 = add i64 %.reload, %14
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = icmp eq i8 %28, 0
store i32 1, i32* %sv_4.0.reg2mem
store i8 -1, i8* %sv_3.0.reg2mem
br i1 %29, label LBL_7, label LBL_8
LBL_7:
%storemerge525.reload = load i32, i32* %storemerge525.reg2mem
%30 = add i32 %storemerge525.reload, 1
%31 = sext i32 %30 to i64
%32 = icmp slt i64 %31, %25
store i64 %31, i64* %.reg2mem
store i32 %30, i32* %storemerge525.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i8 0, i8* %sv_3.0.reg2mem
br i1 %32, label LBL_6, label LBL_8
LBL_8:
%sv_3.0.reload = load i8, i8* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%33 = add i32 %sv_4.0.reload, %9
store i32 %sv_4.0.reload, i32* %sv_4.1.reg2mem
store i8 %sv_3.0.reload, i8* %sv_3.1.reg2mem
store i32 %sv_2.0, i32* %sv_2.1.reg2mem
store i32 %33, i32* %storemerge4.reg2mem
br label LBL_9
LBL_9:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%34 = icmp eq i64* %arg2, null
%35 = icmp eq i1 %34, false
store i32 %storemerge4.reload, i32* %rax.0.shrunk.reg2mem
br i1 %35, label LBL_10, label LBL_21
LBL_10:
%36 = ptrtoint i64* %arg2 to i64
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem
%37 = icmp eq i32 %sv_4.1.reload, 0
store i32 %9, i32* %.reg2mem42
store i64 %36, i64* %sv_1.0.reg2mem
br i1 %37, label LBL_12, label LBL_11
LBL_11:
%sv_3.1.reload = load i8, i8* %sv_3.1.reg2mem
%38 = add i64 %36, 1
%39 = bitcast i64* %arg2 to i8*
store i8 %sv_3.1.reload, i8* %39, align 1
%.pre = load i32, i32* %8, align 4
store i32 %.pre, i32* %.reg2mem42
store i64 %38, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_12:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.reload43 = load i32, i32* %.reg2mem42
%40 = icmp eq i32 %.reload43, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_14, label LBL_13
LBL_13:
%42 = inttoptr i64 %sv_1.0.reload to i8*
store i8 0, i8* %42, align 1
store i64 %36, i64* %rsi.0.reg2mem
br label LBL_20
LBL_14:
%43 = icmp eq i32 %sv_2.1.reload, 0
%44 = icmp eq i1 %43, false
%45 = add i64 %6, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
br i1 %44, label LBL_16, label LBL_15
LBL_15:
%48 = inttoptr i64 %sv_1.0.reload to i64*
%49 = inttoptr i64 %47 to i64*
%50 = call i64* @memcpy(i64* %48, i64* %49, i32 %.reload43)
store i64 %47, i64* %rsi.0.reg2mem
br label LBL_20
LBL_16:
%51 = sext i32 %.reload43 to i64
%52 = add nsw i64 %51, -1
%53 = add i64 %47, %52
%54 = add i64 %52, %sv_1.0.reload
%sv_0.017 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %sv_0.017, align 1
%56 = icmp eq i8 %55, 0
%57 = icmp sgt i32 %.reload43, 1
%or.cond818 = icmp eq i1 %57, %56
store i32 %.reload43, i32* %storemerge321.reg2mem
store i64 %53, i64* %sv_0.0.in20.reg2mem
store i64 %54, i64* %sv_1.119.reg2mem
store i64 %54, i64* %sv_1.1.lcssa.reg2mem
store i64 %53, i64* %sv_0.0.in.lcssa.reg2mem
store i32 %.reload43, i32* %storemerge3.lcssa.reg2mem
store i8 %55, i8* %.lcssa.reg2mem
br i1 %or.cond818, label LBL_17, label LBL_18
LBL_17:
%sv_1.119.reload = load i64, i64* %sv_1.119.reg2mem
%sv_0.0.in20.reload = load i64, i64* %sv_0.0.in20.reg2mem
%storemerge321.reload = load i32, i32* %storemerge321.reg2mem
%58 = add i64 %sv_1.119.reload, -1
%59 = inttoptr i64 %sv_1.119.reload to i8*
store i8 0, i8* %59, align 1
%60 = add i64 %sv_0.0.in20.reload, -1
%61 = add i32 %storemerge321.reload, -1
%sv_0.0 = inttoptr i64 %60 to i8*
%62 = load i8, i8* %sv_0.0, align 1
%63 = icmp eq i8 %62, 0
%64 = icmp sgt i32 %61, 1
%or.cond8 = icmp eq i1 %64, %63
store i32 %61, i32* %storemerge321.reg2mem
store i64 %60, i64* %sv_0.0.in20.reg2mem
store i64 %58, i64* %sv_1.119.reg2mem
store i64 %58, i64* %sv_1.1.lcssa.reg2mem
store i64 %60, i64* %sv_0.0.in.lcssa.reg2mem
store i32 %61, i32* %storemerge3.lcssa.reg2mem
store i8 %62, i8* %.lcssa.reg2mem
br i1 %or.cond8, label LBL_17, label LBL_18
LBL_18:
%.lcssa.reload = load i8, i8* %.lcssa.reg2mem
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%sv_0.0.in.lcssa.reload = load i64, i64* %sv_0.0.in.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%65 = sub i8 0, %.lcssa.reload
%66 = inttoptr i64 %sv_1.1.lcssa.reload to i8*
store i8 %65, i8* %66, align 1
%storemerge13 = add i32 %storemerge3.lcssa.reload, -1
%67 = icmp eq i32 %storemerge13, 0
%68 = icmp slt i32 %storemerge13, 0
%69 = icmp eq i1 %68, false
%70 = icmp eq i1 %67, false
%71 = icmp eq i1 %69, %70
store i32 %storemerge13, i32* %storemerge16.reg2mem
store i64 %sv_1.1.lcssa.reload, i64* %sv_1.215.in.reg2mem
store i64 %sv_0.0.in.lcssa.reload, i64* %sv_0.1.in14.in.reg2mem
store i64 %36, i64* %rsi.0.reg2mem
br i1 %71, label LBL_19, label LBL_20
LBL_19:
%sv_0.1.in14.in.reload = load i64, i64* %sv_0.1.in14.in.reg2mem
%sv_1.215.in.reload = load i64, i64* %sv_1.215.in.reg2mem
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%sv_0.1.in14 = add i64 %sv_0.1.in14.in.reload, -1
%sv_1.215 = add i64 %sv_1.215.in.reload, -1
%sv_0.1 = inttoptr i64 %sv_0.1.in14 to i8*
%72 = load i8, i8* %sv_0.1, align 1
%73 = sub i8 0, %72
%74 = sub i8 %73, 1
%75 = inttoptr i64 %sv_1.215 to i8*
store i8 %74, i8* %75, align 1
%storemerge = add i32 %storemerge16.reload, -1
%76 = icmp eq i32 %storemerge, 0
%77 = icmp slt i32 %storemerge, 0
%78 = icmp eq i1 %77, false
%79 = icmp eq i1 %76, false
%80 = icmp eq i1 %78, %79
store i32 %storemerge, i32* %storemerge16.reg2mem
store i64 %sv_1.215, i64* %sv_1.215.in.reg2mem
store i64 %sv_0.1.in14, i64* %sv_0.1.in14.in.reg2mem
store i64 %36, i64* %rsi.0.reg2mem
br i1 %80, label LBL_19, label LBL_20
LBL_20:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%81 = sext i32 %storemerge4.reload to i64
%82 = add i64 %rsi.0.reload, %81
store i64 %82, i64* %arg2, align 8
store i32 %storemerge4.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_21:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32 %storemerge, { 0, 2, 1 }
uselistorder i64 %47, { 1, 0, 2 }
uselistorder i32 %.reload43, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 %sv_1.0.reload, { 2, 0, 1 }
uselistorder i64 %36, { 0, 1, 2, 4, 3 }
uselistorder i32 %storemerge4.reload, { 1, 2, 0 }
uselistorder i1 %20, { 1, 0 }
uselistorder i8 %16, { 2, 3, 0, 1 }
uselistorder i32 %9, { 0, 1, 3, 2, 4, 5 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge525.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 1, 2, 5, 3, 4 }
uselistorder i8* %sv_3.0.reg2mem, { 0, 1, 2, 5, 3, 4 }
uselistorder i32* %sv_4.1.reg2mem, { 0, 2, 1 }
uselistorder i8* %sv_3.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge321.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in20.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.119.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.215.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.in14.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i64 -1, { 1, 0, 2, 4, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i8 0, { 4, 8, 10, 9, 5, 11, 1, 12, 3, 2, 6, 7, 0 }
uselistorder i1 false, { 3, 2, 0, 1, 4, 5, 6, 7, 8 }
uselistorder i64* %arg2, { 0, 1, 3, 2 }
uselistorder label LBL_21, { 2, 0, 1 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | webm_dash_manifest_write_trailer_17166 | webm_dash_manifest_write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = add i64 %2, 8
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%6 = inttoptr i64 %5 to i64*
%7 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %6, align 8
%9 = mul i64 %.reload, 8
%10 = add i64 %8, %9
%11 = call i64 @FUNC(i64 %10)
%12 = add i32 %storemerge1.reload, 1
%13 = sext i32 %12 to i64
%14 = icmp sgt i64 %7, %13
store i64 %13, i64* %.reg2mem
store i32 %12, i32* %storemerge1.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %5)
ret i64 0
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | virtio_net_handle_ctrl_654 | virtio_net_handle_ctrl | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%2 = alloca i8
%.lcssa.reg2mem = alloca i64
%3 = ptrtoint i64* %arg2 to i64
%4 = load i8, i8* %2
%sv_0 = alloca i8, align 1
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%5 = load i64, i64* %0
%6 = load i32, i32* %1
%sv_3 = alloca i64, align 8
%7 = load i32, i32* %1
%sv_4 = alloca i32, align 4
store i32 0, i32* %sv_4, align 4
%8 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %.lcssa.reg2mem
br i1 %11, label LBL_1, label LBL_22
LBL_1:
%12 = ptrtoint i64* %arg1 to i64
%13 = zext i32 %7 to i64
%14 = zext i32 %6 to i64
%15 = mul i64 %14, 16
%16 = bitcast i8* %sv_0 to i64*
%17 = zext i8 %4 to i64
br label LBL_2
LBL_2:
%18 = load i64, i64* %sv_3, align 8
%19 = call i64 @FUNC(i64 %18, i64 %13)
%20 = icmp ult i64 %19, 4
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %5, i64 %14)
%22 = icmp ult i64 %21, 2
br i1 %22, label LBL_4, label LBL_5
LBL_4:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_5:
%24 = call i64 @FUNC(i64 %5, i64 %15)
store i64 %24, i64* %sv_1, align 8
%25 = load i32, i32* %sv_2, align 4
%26 = call i64 @FUNC(i64 %24, i32 %25, i64 0, i64* nonnull %16, i64 2)
%27 = call i64 @FUNC(i64* nonnull %sv_1, i32* nonnull %sv_2, i64 2)
%28 = icmp eq i64 %26, 2
br i1 %28, label LBL_7, label LBL_6
LBL_6:
store i32 0, i32* %sv_4, align 4
br label LBL_19
LBL_7:
%29 = load i8, i8* %sv_0, align 1
%30 = icmp eq i8 %29, 1
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_9, label LBL_8
LBL_8:
%32 = load i32, i32* %sv_2, align 4
%33 = load i64, i64* %sv_1, align 8
%34 = call i64 @FUNC(i64 %12, i64 %17, i64 %33, i32 %32)
%35 = trunc i64 %34 to i32
store i32 %35, i32* %sv_4, align 4
br label LBL_19
LBL_9:
%36 = icmp eq i8 %29, 2
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_11, label LBL_10
LBL_10:
%38 = load i32, i32* %sv_2, align 4
%39 = load i64, i64* %sv_1, align 8
%40 = call i64 @FUNC(i64 %12, i64 %17, i64 %39, i32 %38)
%41 = trunc i64 %40 to i32
store i32 %41, i32* %sv_4, align 4
br label LBL_19
LBL_11:
%42 = icmp eq i8 %29, 3
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_13, label LBL_12
LBL_12:
%44 = load i32, i32* %sv_2, align 4
%45 = load i64, i64* %sv_1, align 8
%46 = call i64 @FUNC(i64 %12, i64 %17, i64 %45, i32 %44)
%47 = trunc i64 %46 to i32
store i32 %47, i32* %sv_4, align 4
br label LBL_19
LBL_13:
%48 = icmp eq i8 %29, 4
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_15, label LBL_14
LBL_14:
%50 = load i32, i32* %sv_2, align 4
%51 = load i64, i64* %sv_1, align 8
%52 = call i64 @FUNC(i64 %12, i64 %17, i64 %51, i32 %50)
%53 = trunc i64 %52 to i32
store i32 %53, i32* %sv_4, align 4
br label LBL_19
LBL_15:
%54 = icmp eq i8 %29, 5
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_17, label LBL_16
LBL_16:
%56 = load i32, i32* %sv_2, align 4
%57 = load i64, i64* %sv_1, align 8
%58 = call i64 @FUNC(i64 %12, i64 %17, i64 %57, i32 %56)
%59 = trunc i64 %58 to i32
store i32 %59, i32* %sv_4, align 4
br label LBL_19
LBL_17:
%60 = icmp eq i8 %29, 6
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_19, label LBL_18
LBL_18:
%62 = load i32, i32* %sv_2, align 4
%63 = load i64, i64* %sv_1, align 8
%64 = call i64 @FUNC(i64 %12, i64 %17, i64 %63, i32 %62)
%65 = trunc i64 %64 to i32
store i32 %65, i32* %sv_4, align 4
br label LBL_19
LBL_19:
%66 = load i64, i64* %sv_3, align 8
%67 = call i64 @FUNC(i64 %66, i32 %7, i64 0, i32* nonnull %sv_4, i64 4)
%68 = icmp eq i64 %67, 4
br i1 %68, label LBL_21, label LBL_20
LBL_20:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_2, i64 0, i64 0), i32 148, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_3, i64 0, i64 0))
br label LBL_21
LBL_21:
%69 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3, i64 4)
%70 = call i64 @FUNC(i64 %12, i64 %3)
%71 = call i64 @FUNC(i64 %24)
%72 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3)
%73 = trunc i64 %72 to i32
%74 = icmp eq i32 %73, 0
%75 = icmp eq i1 %74, false
store i64 %72, i64* %.lcssa.reg2mem
br i1 %75, label LBL_2, label LBL_22
LBL_22:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %12, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_3, { 1, 2, 3, 4, 0 }
uselistorder i32* %sv_2, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder i64 %3, { 3, 2, 1, 0 }
uselistorder i32* %1, { 1, 0 }
uselistorder i64 2, { 0, 2, 3, 1 }
uselistorder i64 4, { 2, 0, 3, 1 }
uselistorder i64 (i64, i64)* @iov_size, { 1, 0 }
uselistorder i1 false, { 7, 1, 2, 3, 4, 5, 6, 0 }
uselistorder i64 (i64, i64*)* @virtqueue_pop, { 1, 0 }
uselistorder i32 0, { 3, 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | alloc_wbufs_17992 | alloc_wbufs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem13 = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = mul nsw i64 %3, 24
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = icmp eq i64 %5, 0
%9 = icmp eq i1 %8, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_6
LBL_1:
%10 = bitcast i64* %rdi to i32*
%11 = load i32, i32* %10, align 8
%12 = icmp eq i32 %11, 0
store i64 %5, i64* %.reg2mem
store i64 0, i64* %.reg2mem13
store i32 0, i32* %storemerge3.reg2mem
store i64 %5, i64* %.lcssa.reg2mem
br i1 %12, label LBL_5, label LBL_2
LBL_2:
%.reload14 = load i64, i64* %.reg2mem13
%.reload = load i64, i64* %.reg2mem
%13 = mul nsw i64 %.reload14, 24
%14 = add i64 %.reload, 20
%15 = add i64 %14, %13
%16 = call i64 @FUNC(i64 %15)
%17 = load i64, i64* %7, align 8
%18 = add i64 %17, %13
%19 = call i64 @FUNC(i64 %2, i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = and i64 %19, 4294967295
store i64 %22, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%23 = load i64, i64* %7, align 8
%24 = add nsw i64 %13, 8
%25 = add i64 %24, %23
%26 = inttoptr i64 %25 to i64*
store i64 4198726, i64* %26, align 8
%27 = load i64, i64* %7, align 8
%28 = or i64 %13, 4
%29 = add i64 %27, %28
%30 = inttoptr i64 %29 to i32*
store i32 %storemerge3.reload, i32* %30, align 4
%31 = load i64, i64* %7, align 8
%32 = add nsw i64 %13, 16
%33 = add i64 %32, %31
%34 = inttoptr i64 %33 to i32*
store i32 1, i32* %34, align 4
%35 = add i32 %storemerge3.reload, 1
%36 = load i32, i32* %10, align 8
%37 = zext i32 %36 to i64
%38 = sext i32 %35 to i64
%39 = icmp slt i64 %38, %37
%40 = load i64, i64* %7, align 8
store i64 %40, i64* %.reg2mem
store i64 %38, i64* %.reg2mem13
store i32 %35, i32* %storemerge3.reg2mem
store i64 %40, i64* %.lcssa.reg2mem
br i1 %39, label LBL_2, label LBL_5
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%41 = inttoptr i64 %.lcssa.reload to i32*
store i32 1, i32* %41, align 4
%42 = load i64, i64* %7, align 8
%43 = add i64 %42, 16
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %13, { 3, 1, 4, 0, 2 }
uselistorder i32* %10, { 1, 0 }
uselistorder i64* %7, { 0, 5, 1, 2, 3, 4, 6 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem13, { 2, 0, 1 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 0, { 3, 2, 0, 1 }
uselistorder label LBL_6, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
reposvul_c_test | meta_set_141 | meta_set | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i8* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%0 = icmp ult i64 %arg5, %arg4
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_14
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %arg2 to i32
%6 = call i64 @FUNC(i64 %2, i32 %5, i64 %4, i64 %arg4)
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %storemerge5.reg2mem
br label LBL_4
LBL_3:
%10 = call i64* @calloc(i32 1, i32 24)
%11 = ptrtoint i64* %10 to i64
store i64 %11, i64* %storemerge5.reg2mem
br label LBL_4
LBL_4:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%12 = icmp eq i64 %storemerge5.reload, 0
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_14
LBL_5:
%14 = inttoptr i64 %storemerge5.reload to i32*
store i32 %5, i32* %14, align 4
%15 = trunc i64 %arg3 to i32
%16 = add i64 %storemerge5.reload, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = add i64 %storemerge5.reload, 8
%19 = inttoptr i64 %18 to i64*
store i64 %4, i64* %19, align 8
%20 = add i64 %storemerge5.reload, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %22 to i64*
call void @free(i64* %23)
%24 = icmp eq i8* %arg6, null
br i1 %24, label LBL_6, label LBL_7
LBL_6:
store i64 0, i64* %21, align 8
br label LBL_10
LBL_7:
%25 = call i8* @strdup(i8* nonnull %arg6)
%26 = ptrtoint i8* %25 to i64
store i64 %26, i64* %21, align 8
%27 = icmp eq i8* %25, null
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_8
LBL_8:
%29 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_14, label LBL_9
LBL_9:
%30 = inttoptr i64 %storemerge5.reload to i64*
call void @free(i64* %30)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%31 = icmp eq i1 %7, false
br i1 %31, label LBL_12, label LBL_11
LBL_11:
%32 = call i64 @FUNC(i64 %2, i64 %arg4, i64 %arg5, i64 %storemerge5.reload)
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%33 = add i64 %6, 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, %arg5
store i64 1, i64* %rax.0.reg2mem
br i1 %36, label LBL_14, label LBL_13
LBL_13:
%37 = call i64 @FUNC(i64 %2, i64 %6, i64 %arg4, i64 %arg5)
store i64 1, 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* %21, { 1, 0, 2 }
uselistorder i64 %storemerge5.reload, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder i1 %7, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4, 6, 7 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i8* %arg6, { 1, 0 }
uselistorder i64 %arg5, { 2, 0, 1, 3 }
uselistorder i64 %arg4, { 1, 0, 2, 3 }
uselistorder label LBL_14, { 2, 1, 0, 4, 3, 5, 6 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | _zip_file_exists_9359 | _zip_file_exists | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64* nonnull %2)
%4 = call i64 @FUNC(i64 %arg1, i64* nonnull %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg1)
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %7)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 2
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_5
LBL_3:
%16 = call i64 @FUNC(i64 %arg2, i64 %7)
store i64 1, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%17 = load i32, i32* %sv_0, align 4
%18 = urem i32 %17, 2
%19 = icmp eq i32 %18, 0
%20 = icmp eq i64 %1, 0
%21 = icmp eq i1 %20, false
%or.cond = or i1 %21, %19
%spec.select = select i1 %or.cond, i64 3, i64 2
ret i64 %spec.select
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 1, { 3, 4, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | blkcg_init_queue_5520 | blkcg_init_queue | 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 4210741, i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = call i64 @FUNC(i64 0)
%5 = urem i64 %4, 256
%6 = icmp eq i64 %5, 0
%7 = call i64 @FUNC()
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64* nonnull @gv_0, i64 %0, i64 %1)
%13 = load i64, i64* %9, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC()
%16 = icmp eq i1 %6, false
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = call i64 @FUNC()
br label LBL_3
LBL_3:
%18 = icmp ult i64 %12, -1000
store i64 %12, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_7
LBL_4:
store i64 %12, i64* %arg1, align 8
%19 = add i64 %0, 8
%20 = inttoptr i64 %19 to i64*
store i64 %12, i64* %20, align 8
%21 = call i64 @FUNC(i64 %0)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = load i64, i64* %9, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = call i64 @FUNC(i64 %0)
%27 = load i64, i64* %9, align 8
%28 = call i64 @FUNC(i64 %27)
br label LBL_6
LBL_6:
%29 = and i64 %21, 4294967295
store i64 %29, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 1, 3, 0, 2 }
uselistorder i64* %9, { 1, 0, 2, 3 }
uselistorder i64 %0, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64 (i64)* @spin_unlock_irq, { 1, 0 }
uselistorder i64 (i64)* @spin_lock_irq, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | do_tb_flush_2331 | do_tb_flush | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg2 to i32
%1 = call i64 @FUNC()
%2 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = icmp eq i32 %2, %0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = load i64, i64* @gv_1, align 8
%6 = load i64, i64* @gv_2, align 8
%7 = sub i64 %5, %6
%8 = load i64, i64* @gv_3, align 8
%9 = icmp ugt i64 %7, %8
br i1 %9, label LBL_2, label LBL_3
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_4, i64 0, i64 0))
unreachable
LBL_3:
store i32 0, i32* bitcast (i64* @gv_5 to i32*), align 8
%12 = call i64 @FUNC(i64* nonnull @gv_6, i64 1024)
%13 = call i64 @FUNC()
%14 = load i64, i64* @gv_2, align 8
store i64 %14, i64* @gv_1, align 8
%15 = call i64 @FUNC(i64* nonnull @gv_0, i64 zext (i32 ptrtoint (i32* @gv_7 to i32) to i64))
br label LBL_4
LBL_4:
%16 = call i64 @FUNC()
ret i64 %16
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | load_elf_16016 | load_elf | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64 %arg7, i64 %arg8, i64 %arg9) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%1 = alloca i8
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%2 = load i8, i8* %1
%3 = load i32, i32* %0
%4 = load i8, i8* %1
%5 = load i8, i8* %1
%6 = load i8, i8* %1
%sv_0 = alloca i64, align 8
%7 = call i32 (i8*, i32, ...) @open(i8* %arg1, i32 0)
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* %arg1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%10 = call i32 @read(i32 %7, i64* nonnull %sv_0, i32 16)
%11 = icmp eq i32 %10, 16
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_9, label LBL_3
LBL_3:
%13 = load i64, i64* %sv_0, align 8
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 127
%16 = icmp eq i8 %6, 69
%17 = icmp eq i1 %16, %15
%18 = icmp eq i8 %5, 76
%19 = icmp eq i8 %4, 70
%20 = icmp eq i1 %19, %18
%21 = icmp eq i1 %20, %17
br i1 %21, label LBL_4, label LBL_9
LBL_4:
%22 = urem i32 %3, 256
%23 = trunc i64 %arg7 to i32
%24 = icmp eq i32 %23, 0
%. = select i1 %24, i32 1, i32 2
%25 = icmp eq i32 %., %22
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %25, label LBL_5, label LBL_10
LBL_5:
%26 = ptrtoint i64* %arg4 to i64
%27 = icmp eq i32 %22, 1
%28 = icmp eq i1 %27, false
%29 = zext i1 %28 to i32
%30 = call i32 @lseek(i32 %7, i32 0, i32 0)
%31 = icmp eq i8 %2, 2
%32 = icmp eq i1 %31, false
%33 = ptrtoint i8* %arg1 to i64
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%34 = call i64 @FUNC(i64 %33, i32 %7, i64 %arg2, i64 %arg3, i32 %29, i64 %26)
store i64 %34, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_7:
%35 = call i64 @FUNC(i64 %33, i32 %7, i64 %arg2, i64 %arg3, i32 %29, i64 %26)
store i64 %35, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_8:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%36 = call i32 @close(i32 %7)
%37 = and i64 %storemerge.in.reload, 4294967295
store i64 %37, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%38 = call i32 @close(i32 %7)
store i64 4294967295, 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 %33, { 1, 0 }
uselistorder i32 %7, { 4, 0, 1, 2, 3, 5, 6 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i8* %1, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 2, 3, 0, 1 }
uselistorder i32 0, { 0, 1, 3, 4, 2 }
uselistorder i8* %arg1, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | mp4info_13307 | mp4info | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = load i128, i128* %0
%2 = load i128, i128* %0
%3 = load i128, i128* %0
%4 = load i32, i32* @gv_0, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%8 = inttoptr i64 %6 to i8*
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %7, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i8* %8)
%10 = load i32, i32* @gv_3, align 4
%11 = zext i32 %10 to i64
%12 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%13 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i64 %11)
%14 = load i32, i32* @gv_5, align 4
%15 = zext i32 %14 to i64
%16 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %16, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 %15)
%18 = load i32, i32* @gv_7, align 4
%19 = zext i32 %18 to i64
%20 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%21 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %20, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 %19)
%22 = load i32, i32* @gv_9, align 4
%23 = zext i32 %22 to i64
%24 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%25 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_10, i64 0, i64 0), i64 %23)
%26 = load i32, i32* @gv_11, align 4
%27 = zext i32 %26 to i64
%28 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_12, i64 0, i64 0), i64 %27)
%30 = load i32, i32* @gv_13, align 4
%31 = zext i32 %30 to i64
%32 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_14, i64 0, i64 0), i64 %31)
%34 = load i32, i32* @gv_15, align 4
%35 = zext i32 %34 to i64
%36 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%37 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %36, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_16, i64 0, i64 0), i64 %35)
%38 = load i32, i32* @gv_17, align 4
%39 = zext i32 %38 to i64
%40 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%41 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %40, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_18, i64 0, i64 0), i64 %39)
%42 = load i32, i32* @gv_19, align 4
%43 = zext i32 %42 to i64
%44 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_20, i64 0, i64 0), i64 %43)
%46 = load i32, i32* @gv_5, align 4
%47 = call i128 @FUNC(i128 %3, i128 %3)
%48 = call i128 @FUNC(i32 %46)
%49 = load i32, i32* @gv_3, align 4
%50 = call i128 @FUNC(i128 %2, i128 %2)
%51 = call i128 @FUNC(i32 %49)
%52 = call i128 @FUNC(i128 %48, i128 %51)
%53 = call i128 @FUNC(i128 %1, i128 %1)
%54 = call i128 @FUNC(i128 %52)
%55 = call i64 @FUNC(i128 %54)
%56 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%57 = call i128 @__asm_movq.1(i64 %55)
%58 = trunc i128 %57 to i64
%59 = bitcast i64 %58 to double
%60 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %56, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_21, i64 0, i64 0), double %59)
%61 = load i32, i32* @gv_22, align 4
%62 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%63 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %62, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_23, i64 0, i64 0), i32 %61)
%64 = sext i32 %63 to i64
ret i64 %64
uselistorder i128* %0, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 10, 11, 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder %_IO_FILE** @gv_1, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | Np_toExponential_8113 | Np_toExponential | 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
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0, i64 1)
%3 = inttoptr i64 %1 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%7 = trunc i64 %2 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %7)
unreachable
LBL_4:
%11 = icmp slt i32 %7, 21
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %7)
unreachable
LBL_6:
%13 = add i32 %7, -20
%14 = trunc i32 %13 to i8
%15 = call i8 @llvm.ctpop.i8(i8 %14), !range !41
%16 = urem i8 %15, 2
%17 = icmp eq i8 %16, 0
%18 = add i64 %1, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i128 @FUNC(i64 %20)
%22 = call i64 @__asm_movsd.1(i128 %21)
%23 = call i128 @FUNC(i64 %22)
call void @FUNC(i128 %23, i64 %22)
br i1 %17, label LBL_8, label LBL_7
LBL_7:
%24 = icmp ult i32 %7, 20
%25 = icmp eq i32 %13, 0
%26 = call i128 @FUNC(i64 %22)
%27 = call i128 @FUNC(i64 9223372036854775807)
%28 = call i128 @FUNC(i128 %26, i128 %27)
call void @FUNC(i128 %28, i64 9218868437227405311)
%29 = or i1 %24, %25
br i1 %29, label LBL_9, label LBL_8
LBL_8:
%30 = call i128 @FUNC(i64 %22)
%31 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%32 = inttoptr i64 %31 to i64*
%33 = call i64 @FUNC(i64 %0, i64* %32)
store i64 %33, i64* %storemerge.reg2mem
br label LBL_10
LBL_9:
%34 = load i64, i64* %19, align 8
%35 = and i64 %2, 4294967295
%36 = call i128 @FUNC(i64 %34)
%37 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 %35)
store i64 %37, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %22, { 1, 0, 3, 2 }
uselistorder i32 %7, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %0, { 3, 5, 4, 2, 1, 0, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @js_pushstring, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64, i8*, i32)* @js_rangeerror, { 1, 0 }
} | 0 |
reposvul_c_test | get_pid_environ_val_243 | get_pid_environ_val | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = and i64 %arg1, 4294967295
%1 = bitcast i64* %sv_2 to i8*
%2 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%3 = call %_IO_FILE* @fopen(i8* nonnull %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%4 = icmp eq %_IO_FILE* %3, null
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_12
LBL_1:
%6 = ptrtoint i64* %sv_3 to i64
%7 = add i64 %6, -528
%8 = inttoptr i64 %arg2 to i8*
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%9 = call i32 @fgetc(%_IO_FILE* %3)
%10 = sext i32 %sv_1.0.reload to i64
%11 = trunc i32 %9 to i8
%12 = add i64 %7, %10
%13 = inttoptr i64 %12 to i8*
store i8 %11, i8* %13, align 1
%14 = icmp eq i32 %sv_0.0.reload, 1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_3
LBL_3:
%16 = icmp ne i8 %11, 0
%17 = icmp eq i8 %11, -1
%18 = icmp eq i1 %17, false
%or.cond = icmp eq i1 %16, %18
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
store i8 0, i8* %13, align 1
%19 = call i32 @strlen(i8* nonnull %1)
%20 = add i32 %19, 10
%21 = call i64* @malloc(i32 %20)
%22 = ptrtoint i64* %21 to i64
%23 = bitcast i64* %21 to i8*
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_2)
%25 = call i32 @fclose(%_IO_FILE* %3)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%26 = icmp eq i8 %11, 61
br i1 %26, label LBL_9, label LBL_6
LBL_6:
%27 = icmp sgt i8 %11, 61
br i1 %27, label LBL_10, label LBL_7
LBL_7:
store i32 0, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
switch i8 %11, label LBL_10 [
i8 -1, label LBL_8
i8 0, label LBL_11
]
LBL_8:
%28 = call i32 @fclose(%_IO_FILE* %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_9:
store i8 0, i8* %13, align 1
%29 = call i32 @strcmp(i8* nonnull %1, i8* %8)
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
%spec.select = select i1 %31, i32 %sv_0.0.reload, i32 1
store i32 0, i32* %sv_1.1.reg2mem
store i32 %spec.select, i32* %sv_0.2.reg2mem
br label LBL_11
LBL_10:
%32 = add i32 %sv_1.0.reload, 1
store i32 %32, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_11
LBL_11:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %13, { 1, 0, 2 }
uselistorder i8 %11, { 0, 1, 2, 4, 3, 5 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 3, 0, 2 }
uselistorder %_IO_FILE* %3, { 1, 0, 2, 3 }
uselistorder i8* %1, { 1, 0, 2, 3 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 4, 1 }
uselistorder i32 0, { 1, 4, 0, 2, 3 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | virtio_blk_save_device_15495 | virtio_blk_save_device | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
store i64 %3, i64* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = call i64 @FUNC(i64 %0, i64 1)
%5 = inttoptr i64 %storemerge1.reload to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %0, i64 %6, i64 0)
%8 = add i64 %storemerge1.reload, 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
store i64 %10, i64* %storemerge1.reg2mem
br i1 %12, label LBL_2, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %13
uselistorder i64 %storemerge1.reload, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | getRate_6556 | getRate | define i128 @FUNC(i64 %arg1, i8 %arg2, i16 %arg3, i8 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%storemerge3.in.reg2mem = alloca i64
%xmm0.1.reg2mem = alloca i128
%storemerge2.in.reg2mem = alloca i64
%xmm0.0.reg2mem = alloca i128
%sv_1 = alloca i64, align 8
%0 = ptrtoint i64* %sv_1 to i64
%1 = trunc i64 %arg1 to i8
%2 = call i128 @FUNC(i32 1065353216)
%3 = call i64 @__asm_movss.1(i128 %2)
%4 = call i128 @FUNC(i32 1073741824)
%5 = call i64 @__asm_movss.1(i128 %4)
%6 = call i128 @FUNC(i32 1085276160)
%7 = call i64 @__asm_movss.1(i128 %6)
%8 = call i128 @FUNC(i32 1093664768)
%9 = call i64 @__asm_movss.1(i128 %8)
%10 = call i128 @FUNC(i32 1086324736)
%11 = call i64 @__asm_movss.1(i128 %10)
%12 = call i128 @FUNC(i32 1091567616)
%13 = call i64 @__asm_movss.1(i128 %12)
%14 = call i128 @FUNC(i32 1094713344)
%15 = call i64 @__asm_movss.1(i128 %14)
%16 = call i128 @FUNC(i32 1099956224)
%17 = call i64 @__asm_movss.1(i128 %16)
%18 = call i128 @FUNC(i32 1103101952)
%19 = call i64 @__asm_movss.1(i128 %18)
%20 = call i128 @FUNC(i32 1108344832)
%21 = call i64 @__asm_movss.1(i128 %20)
%22 = call i128 @FUNC(i32 1111490560)
%23 = call i64 @__asm_movss.1(i128 %22)
%24 = call i128 @FUNC(i32 1113063424)
%25 = call i64 @__asm_movss.1(i128 %24)
%26 = call i128 @FUNC(i128 %24, i128 %24)
%27 = call i64 @__asm_movss.1(i128 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i8 %1, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_3, label LBL_1
LBL_1:
%31 = icmp ult i8 %arg2, 12
store i32 %28, i32* %sv_0.0.reg2mem
br i1 %31, label LBL_2, label LBL_19
LBL_2:
%32 = zext i8 %arg2 to i64
%33 = mul i64 %32, 4
%34 = add nsw i64 %33, -64
%35 = add i64 %34, %0
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = call i128 @FUNC(i32 %37)
%39 = call i64 @__asm_movss.1(i128 %38)
%40 = trunc i64 %39 to i32
store i32 %40, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_3:
%41 = icmp ne i8 %1, 1
%42 = icmp eq i8 %1, 2
%43 = icmp eq i1 %42, false
%or.cond = icmp eq i1 %41, %43
%44 = urem i16 %arg3, 2
%45 = icmp eq i16 %44, 0
br i1 %or.cond, label LBL_8, label LBL_4
LBL_4:
br i1 %45, label LBL_6, label LBL_5
LBL_5:
%46 = call i128 @FUNC(i32 1080452710)
%47 = call i64 @__asm_movss.1(i128 %46)
store i128 %46, i128* %xmm0.0.reg2mem
store i64 %47, i64* %storemerge2.in.reg2mem
br label LBL_7
LBL_6:
%48 = call i128 @FUNC(i32 1082130432)
%49 = call i64 @__asm_movss.1(i128 %48)
store i128 %48, i128* %xmm0.0.reg2mem
store i64 %49, i64* %storemerge2.in.reg2mem
br label LBL_7
LBL_7:
%storemerge2.in.reload = load i64, i64* %storemerge2.in.reg2mem
%xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem
%storemerge2 = trunc i64 %storemerge2.in.reload to i32
%50 = and i16 %arg3, 2
%51 = icmp eq i16 %50, 0
%52 = and i8 %arg2, -8
%53 = zext i8 %52 to i64
%54 = zext i8 %arg2 to i64
%55 = sub nsw i64 %54, %53
%56 = mul i64 %55, 4
%storemerge.in.in.v.v = select i1 %51, i64 -96, i64 -128
%storemerge.in.in.v = add nsw i64 %56, %storemerge.in.in.v.v
%storemerge.in.in = add i64 %storemerge.in.in.v, %0
%storemerge.in = inttoptr i64 %storemerge.in.in to i32*
%storemerge = load i32, i32* %storemerge.in, align 4
%57 = udiv i8 %arg2, 8
%narrow = add nuw nsw i8 %57, 1
%58 = zext i8 %narrow to i32
%59 = mul i32 %storemerge, %58
%60 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload)
%61 = call i128 @FUNC(i32 %59)
%62 = call i128 @FUNC(i128 %61, i32 %storemerge2)
%63 = call i64 @__asm_movss.1(i128 %62)
%64 = trunc i64 %63 to i32
store i32 %64, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_8:
br i1 %45, label LBL_10, label LBL_9
LBL_9:
%65 = call i128 @FUNC(i32 1080452710)
%66 = call i64 @__asm_movss.1(i128 %65)
store i128 %65, i128* %xmm0.1.reg2mem
store i64 %66, i64* %storemerge3.in.reg2mem
br label LBL_11
LBL_10:
%67 = call i128 @FUNC(i32 1082130432)
%68 = call i64 @__asm_movss.1(i128 %67)
store i128 %67, i128* %xmm0.1.reg2mem
store i64 %68, i64* %storemerge3.in.reg2mem
br label LBL_11
LBL_11:
%storemerge3.in.reload = load i64, i64* %storemerge3.in.reg2mem
%xmm0.1.reload = load i128, i128* %xmm0.1.reg2mem
%storemerge3 = trunc i64 %storemerge3.in.reload to i32
%69 = icmp ult i8 %arg2, 9
%spec.select = select i1 %69, i8 %arg2, i8 9
%70 = and i16 %arg3, 2
%71 = icmp eq i16 %70, 0
br i1 %71, label LBL_13, label LBL_12
LBL_12:
%72 = mul i8 %spec.select, 4
%73 = zext i8 %72 to i64
%74 = add nsw i64 %73, -224
%75 = add i64 %74, %0
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = zext i8 %arg4 to i32
%79 = mul i32 %77, %78
%80 = call i128 @FUNC(i128 %xmm0.1.reload, i128 %xmm0.1.reload)
%81 = call i128 @FUNC(i32 %79)
%82 = call i128 @FUNC(i128 %81, i32 %storemerge3)
%83 = call i64 @__asm_movss.1(i128 %82)
%84 = trunc i64 %83 to i32
store i32 %84, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_13:
%85 = and i16 %arg3, 4
%86 = icmp eq i16 %85, 0
br i1 %86, label LBL_15, label LBL_14
LBL_14:
%87 = mul i8 %spec.select, 4
%88 = zext i8 %87 to i64
%89 = add nsw i64 %88, -272
%90 = add i64 %89, %0
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = zext i8 %arg4 to i32
%94 = mul i32 %92, %93
%95 = call i128 @FUNC(i128 %xmm0.1.reload, i128 %xmm0.1.reload)
%96 = call i128 @FUNC(i32 %94)
%97 = call i128 @FUNC(i128 %96, i32 %storemerge3)
%98 = call i64 @__asm_movss.1(i128 %97)
%99 = trunc i64 %98 to i32
store i32 %99, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_15:
%100 = icmp ugt i8 %arg2, 8
%101 = icmp eq i8 %arg4, 3
%102 = icmp eq i1 %100, %101
br i1 %102, label LBL_16, label LBL_17
LBL_16:
%103 = load i32, i32* inttoptr (i64 4202584 to i32*), align 8
%104 = call i128 @FUNC(i32 %103)
%105 = call i128 @FUNC(i128 %104, i32 %storemerge3)
%106 = call i64 @__asm_movss.1(i128 %105)
%107 = trunc i64 %106 to i32
store i32 %107, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_17:
store i32 %28, i32* %sv_0.0.reg2mem
br i1 %69, label LBL_18, label LBL_19
LBL_18:
%108 = mul i8 %spec.select, 4
%109 = zext i8 %108 to i64
%110 = add nsw i64 %109, -176
%111 = add i64 %110, %0
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = zext i8 %arg4 to i32
%115 = mul i32 %113, %114
%116 = call i128 @FUNC(i128 %xmm0.1.reload, i128 %xmm0.1.reload)
%117 = call i128 @FUNC(i32 %115)
%118 = call i128 @FUNC(i128 %117, i32 %storemerge3)
%119 = call i64 @__asm_movss.1(i128 %118)
%120 = trunc i64 %119 to i32
store i32 %120, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%121 = call i128 @FUNC(i32 %sv_0.0.reload)
ret i128 %121
uselistorder i32 %storemerge3, { 3, 2, 1, 0 }
uselistorder i1 %45, { 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i128 %24, { 2, 1, 0 }
uselistorder i8 %1, { 1, 0, 2 }
uselistorder i128* %xmm0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge2.in.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge3.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 7, 6, 5, 4, 3, 8, 2, 1 }
uselistorder i8 8, { 1, 0 }
uselistorder i16 0, { 0, 1, 3, 2 }
uselistorder i16 2, { 1, 2, 0 }
uselistorder i8 %arg4, { 3, 0, 2, 1 }
uselistorder i16 %arg3, { 2, 1, 3, 0 }
uselistorder i8 %arg2, { 1, 2, 3, 0, 7, 6, 5, 4 }
uselistorder label LBL_19, { 2, 0, 3, 4, 5, 6, 7, 1 }
} | 0 |
BinRealVul | tg3_calc_crc_errors_10740 | tg3_calc_crc_errors | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = urem i64 %1, 2
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_7, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 22272
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %2)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 22273
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%16 = bitcast i32* %sv_0 to i64*
%17 = call i64 @FUNC(i64 %2, i64 1, i64* nonnull %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = load i32, i32* %sv_0, align 4
%22 = or i32 %21, 1
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %2, i64 1, i64 %23)
%25 = call i64 @FUNC(i64 %2, i64 2, i64* nonnull %16)
%.pre = load i32, i32* %sv_0, align 4
%phitmp = zext i32 %.pre to i64
store i64 %phitmp, i64* %.reg2mem
br label LBL_6
LBL_5:
store i32 0, i32* %sv_0, align 4
store i64 0, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%26 = add i64 %2, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %28, %.reload
store i64 %29, i64* %27, align 8
store i64 %29, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%30 = call i64 @FUNC(i64 %5)
store i64 %30, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 2, 0, 1, 3 }
uselistorder i64 %2, { 3, 2, 1, 4, 0, 5, 6 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64*)* @tg3_readphy, { 1, 0 }
uselistorder i64 (i64)* @tg3_asic_rev, { 1, 0 }
uselistorder i64 2, { 1, 0 }
} | 0 |
BinRealVul | common_end_1531 | common_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %6, align 8
%9 = mul i64 %.reload, 8
%10 = add i64 %8, %9
%11 = call i64 @FUNC(i64 %10)
%12 = add i32 %storemerge1.reload, 1
%13 = sext i32 %12 to i64
%14 = icmp sgt i64 %7, %13
store i64 %13, i64* %.reg2mem
store i32 %12, i32* %storemerge1.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | strings_5962 | strings | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%5 = inttoptr i64 %2 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
store i64 %7, 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, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | ipmi_si_mem_setup_11709 | ipmi_si_mem_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_17
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
store i64 4198694, i64* %4, align 8
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 8
br i1 %8, label LBL_9, label LBL_2
LBL_2:
%9 = icmp sgt i32 %7, 8
br i1 %9, label LBL_10, label LBL_3
LBL_3:
%10 = icmp eq i32 %7, 4
br i1 %10, label LBL_8, label LBL_4
LBL_4:
%11 = icmp sgt i32 %7, 4
br i1 %11, label LBL_10, label LBL_5
LBL_5:
switch i32 %7, label LBL_10 [
i32 1, label LBL_6
i32 2, label LBL_7
]
LBL_6:
%12 = add i64 %2, 32
%13 = inttoptr i64 %12 to i64*
store i64 4198705, i64* %13, align 8
%14 = add i64 %2, 40
%15 = inttoptr i64 %14 to i64*
store i64 4198716, i64* %15, align 8
br label LBL_11
LBL_7:
%16 = add i64 %2, 32
%17 = inttoptr i64 %16 to i64*
store i64 4198732, i64* %17, align 8
%18 = add i64 %2, 40
%19 = inttoptr i64 %18 to i64*
store i64 4198743, i64* %19, align 8
br label LBL_11
LBL_8:
%20 = add i64 %2, 32
%21 = inttoptr i64 %20 to i64*
store i64 4198760, i64* %21, align 8
%22 = add i64 %2, 40
%23 = inttoptr i64 %22 to i64*
store i64 4198771, i64* %23, align 8
br label LBL_11
LBL_9:
%24 = add i64 %2, 32
%25 = inttoptr i64 %24 to i64*
store i64 4198785, i64* %25, align 8
%26 = add i64 %2, 40
%27 = inttoptr i64 %26 to i64*
store i64 4198796, i64* %27, align 8
br label LBL_11
LBL_10:
%28 = add i64 %2, 56
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i32 %7)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_17
LBL_11:
%32 = add i64 %2, 12
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%.pre = add i64 %2, 16
%.pre9 = inttoptr i64 %.pre to i32*
store i32 0, i32* %storemerge5.reg2mem
store i32 0, i32* %.lcssa.reg2mem
br i1 %35, label LBL_15, label LBL_12
LBL_12:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%36 = load i32, i32* %6, align 4
%37 = sext i32 %36 to i64
%38 = load i32, i32* %.pre9, align 4
%39 = mul i32 %38, %storemerge5.reload
%40 = sext i32 %39 to i64
%41 = add i64 %40, %2
%42 = call i64 @FUNC(i64 %41, i64 %37, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_14, label LBL_13
LBL_13:
%45 = zext i32 %storemerge5.reload to i64
%46 = call i64 @FUNC(i64 %2, i64 %45)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%47 = add i32 %storemerge5.reload, 1
%48 = load i32, i32* %33, align 4
%49 = zext i32 %48 to i64
%50 = sext i32 %47 to i64
%51 = icmp slt i64 %50, %49
store i32 %47, i32* %storemerge5.reg2mem
store i32 %48, i32* %.lcssa.reg2mem
br i1 %51, label LBL_12, label LBL_15
LBL_15:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%52 = load i32, i32* %.pre9, align 4
%53 = mul i32 %52, %.lcssa.reload
%54 = load i32, i32* %6, align 4
%55 = sub i32 %54, %52
%56 = add i32 %55, %53
%57 = sext i32 %56 to i64
%58 = call i64 @FUNC(i64 %2, i64 %57)
%59 = add i64 %2, 48
%60 = inttoptr i64 %59 to i64*
store i64 %58, i64* %60, align 8
%61 = icmp eq i64 %58, 0
%62 = icmp eq i1 %61, false
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_17, label LBL_16
LBL_16:
%63 = load i32, i32* %33, align 4
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %2, i64 %64)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge5.reload, { 0, 2, 1 }
uselistorder i32* %33, { 0, 2, 1 }
uselistorder i64 %2, { 9, 10, 11, 12, 0, 1, 13, 8, 14, 15, 6, 7, 2, 3, 4, 5, 16, 17 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 5, 3, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_17, { 3, 0, 2, 4, 1 }
uselistorder label LBL_12, { 1, 0 }
} | 1 |
BinRealVul | check_exception_1015 | check_exception | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.012.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%sv_0.010.reg2mem = alloca i64
%.pre-phi18.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = load i64, i64* @gv_0, align 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = and i64 %3, 4294967295
%8 = zext i32 %6 to i64
%9 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %8, i64 %7, i64 %2, i64 %1)
%10 = load i64, i64* @gv_0, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 8
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_6, label LBL_1
LBL_1:
%15 = add i64 %10, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = urem i32 %17, 2
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = call i64 @FUNC(i64 4096, i64 0)
br label LBL_3
LBL_3:
%21 = load i32, i32* @gv_2, align 4
%22 = and i32 %21, 2
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%25 = call i32 @fwrite(i64* bitcast ([14 x i8]* @gv_4 to i64*), i32 1, i32 13, %_IO_FILE* %24)
br label LBL_5
LBL_5:
%26 = call i64 @FUNC()
store i64 0, i64* %storemerge.reg2mem
br label LBL_14
LBL_6:
%27 = trunc i64 %3 to i32
%28 = icmp eq i32 %27, 0
%.off15 = add i32 %27, -10
%29 = icmp ult i32 %.off15, 4
%narrow16 = or i1 %28, %29
%30 = icmp eq i32 %6, 0
%.off = add i32 %6, -10
%31 = icmp ult i32 %.off, 4
%narrow = or i1 %30, %31
%32 = icmp eq i1 %narrow16, false
%33 = icmp eq i1 %32, false
%or.cond6 = icmp eq i1 %33, %narrow
br i1 %or.cond6, label LBL_9, label LBL_7
LBL_7:
%34 = icmp eq i32 %12, 14
%35 = icmp eq i1 %34, false
store i64 %3, i64* %sv_0.0.reg2mem
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%.not = icmp ne i1 %33, true
%36 = icmp eq i32 %27, 14
%37 = icmp eq i1 %36, false
%or.cond14 = icmp eq i1 %37, %.not
store i32 %27, i32* %.pre-phi18.reg2mem
store i64 %3, i64* %sv_0.010.reg2mem
br i1 %or.cond14, label LBL_11, label LBL_9
LBL_9:
%38 = bitcast i64* %arg2 to i32*
store i32 0, i32* %38, align 4
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre = trunc i64 %sv_0.0.reload to i32
store i32 %.pre, i32* %.pre-phi18.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.010.reg2mem
store i32 %.pre, i32* %.pre-phi.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.011.reg2mem
br i1 %33, label LBL_12, label LBL_11
LBL_11:
%sv_0.010.reload = load i64, i64* %sv_0.010.reg2mem
%.pre-phi18.reload = load i32, i32* %.pre-phi18.reg2mem
%39 = icmp ne i32 %.pre-phi18.reload, 14
%40 = icmp eq i32 %.pre-phi18.reload, 8
%41 = icmp eq i1 %40, false
%or.cond8 = icmp eq i1 %39, %41
store i32 %.pre-phi18.reload, i32* %.pre-phi.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.011.reg2mem
store i64 %sv_0.010.reload, i64* %sv_0.012.reg2mem
br i1 %or.cond8, label LBL_13, label LBL_12
LBL_12:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%42 = load i64, i64* @gv_0, align 8
%43 = inttoptr i64 %42 to i32*
store i32 %.pre-phi.reload, i32* %43, align 4
store i64 %sv_0.011.reload, i64* %sv_0.012.reg2mem
br label LBL_13
LBL_13:
%sv_0.012.reload = load i64, i64* %sv_0.012.reg2mem
%44 = and i64 %sv_0.012.reload, 4294967295
store i64 %44, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i1 %33, { 2, 0, 1 }
uselistorder i32 %27, { 0, 2, 1, 3 }
uselistorder i32 %6, { 1, 2, 0 }
uselistorder i64 %3, { 0, 1, 3, 2 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.011.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 14, { 1, 0, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 -10, { 1, 0 }
uselistorder i1 false, { 2, 1, 4, 3, 0, 5 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | setenv_2588 | setenv | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
%1 = icmp eq i1 %0, false
%.pre = inttoptr i64 %arg1 to i8*
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i8* @getenv(i8* %.pre)
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i32 @strlen(i8* %.pre)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %arg2 to i8*
%8 = call i32 @strlen(i8* %7)
%9 = sext i32 %8 to i64
%10 = add nsw i64 %6, 2
%11 = add nsw i64 %10, %9
%12 = call i64 @FUNC(i64 %11)
%13 = inttoptr i64 %12 to i8*
%14 = trunc i64 %11 to i32
%15 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %13, i32 %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %.pre, i8* %7)
%16 = call i32 @putenv(i8* %13)
%17 = call i64 @FUNC(i64 %12)
%phitmp = zext i32 %16 to i64
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pmcraid_soft_reset_8189 | pmcraid_soft_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198694, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 %0, i64* %4, align 8
%5 = call i64 @FUNC(i64 1000)
%6 = load i64, i64* @gv_0, align 8
%7 = add i64 %6, %5
%8 = add i64 %0, 24
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = add i64 %0, 32
%11 = inttoptr i64 %10 to i64*
store i64 4198705, i64* %11, align 8
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = call i64 @FUNC(i64 %3)
br label LBL_2
LBL_2:
%17 = bitcast i64* %rdi to i32*
%18 = load i32, i32* %17, align 8
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = load i64, i64* %2, align 8
%21 = call i64 @FUNC(i64 4, i64 %20)
%22 = load i64, i64* %2, align 8
%23 = call i64 @FUNC(i64 %22)
br label LBL_4
LBL_4:
%24 = load i64, i64* %2, align 8
%25 = call i64 @FUNC(i64 3, i64 %24)
%26 = load i64, i64* %2, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = load i64, i64* %4, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = load i64, i64* %2, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = and i64 %29, 4294967295
%33 = and i64 %31, 4294967295
%34 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i64 %33, i64 %32)
ret i64 %34
uselistorder i64* %2, { 2, 3, 4, 1, 0, 5 }
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 (i64)* @ioread32, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @iowrite32, { 1, 0 }
} | 0 |
BinRealVul | pt_adjust_vcpu_19311 | pt_adjust_vcpu | 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 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%5 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = ptrtoint i64* %arg2 to i64
%12 = call i64 @FUNC(i64 %6)
%13 = add i64 %6, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %6, 24
%18 = call i64 @FUNC(i64 %17)
store i32 0, i32* %14, align 4
%19 = call i64 @FUNC(i64 %6)
%20 = call i64 @FUNC(i64 %11)
store i64 %11, i64* %8, align 8
store i32 1, i32* %14, align 4
%21 = add i64 %11, 8
%22 = call i64 @FUNC(i64 %17, i64 %21)
%23 = add i64 %11, 24
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %6, 40
%27 = zext i32 %25 to i64
%28 = call i64 @FUNC(i64 %26, i64 %27)
br label LBL_6
LBL_5:
store i32 0, i32* %14, align 4
%29 = call i64 @FUNC(i64 %6)
%30 = call i64 @FUNC(i64 %11)
store i64 %11, i64* %8, align 8
br label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %11)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %11, { 4, 0, 1, 3, 2, 6, 5 }
uselistorder i64 %6, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | do_sigreturn_545 | do_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%3 = add i64 %1, 504
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 0, i64 %2, i64 %5, i64 1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = ptrtoint i64* %sv_2 to i64
%10 = add i64 %9, -288
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%11 = mul i64 %indvars.iv.reload, 4
%12 = add i64 %11, %2
%13 = add i64 %10, %11
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16, i64 %12)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%18 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%19 = call i64 @FUNC(i64 2, i64* nonnull %sv_0, i64 0)
%20 = add i64 %2, 128
%21 = call i64 @FUNC(i64 %1, i64 %20)
%22 = add i64 %1, 264
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %1, 528
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = call i64 @FUNC(i64 %1)
store i64 0, i64* %23, align 8
store i64 1, i64* %storemerge1.reg2mem
br label LBL_5
LBL_4:
%28 = call i64 @FUNC(i64 11)
store i64 0, i64* %storemerge1.reg2mem
br label LBL_5
LBL_5:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i64 %1, { 0, 3, 2, 1, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 0, 2, 3, 1 }
} | 0 |
BinRealVul | host_pci_config_read_2719 | host_pci_config_read | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
store i32 %arg3, i32* %sv_2, align 4
%0 = bitcast i64* %sv_1 to i8*
%1 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %0, i32 4096, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0), i32 0, i32 0, i32 0, i64 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%2 = icmp slt i32 %1, 4096
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%or.cond = icmp eq i1 %2, %4
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_11
LBL_1:
%5 = call i32 (i8*, i32, ...) @open(i8* nonnull %0, i32 2)
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_11
LBL_2:
%sext = mul i64 %arg1, 4294967296
%8 = trunc i64 %arg1 to i32
%9 = call i32 @lseek(i32 %5, i32 %8, i32 0)
%10 = sext i32 %9 to i64
%11 = ashr exact i64 %sext, 32
%12 = icmp eq i64 %11, %10
br i1 %12, label LBL_3, label LBL_4
LBL_3:
%13 = trunc i64 %arg2 to i32
%14 = bitcast i32* %sv_2 to i64*
%15 = call i32 @read(i32 %5, i64* nonnull %14, i32 %13)
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
store i32 %15, i32* %.reg2mem
store i32 %15, i32* %.lcssa.reg2mem
br i1 %17, label LBL_8, label LBL_5
LBL_4:
%18 = call i32* @__errno_location()
%19 = load i32, i32* %18, align 4
%20 = sub i32 0, %19
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_5:
%21 = call i32* @__errno_location()
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 4
br i1 %23, label LBL_6, label LBL_7
LBL_6:
%24 = call i32 @read(i32 %5, i64* nonnull %14, i32 %13)
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i32 %24, i32* %.reg2mem
store i32 %24, i32* %.lcssa.reg2mem
br i1 %26, label LBL_8, label LBL_5
LBL_7:
%.reload = load i32, i32* %.reg2mem
%27 = call i32* @__errno_location()
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 11
store i32 %.reload, i32* %.lcssa.reg2mem
br i1 %29, label LBL_6, label LBL_8
LBL_8:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%30 = icmp eq i32 %.lcssa.reload, %13
store i32 0, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_10, label LBL_9
LBL_9:
%31 = call i32* @__errno_location()
%32 = load i32, i32* %31, align 4
%33 = sub i32 0, %32
store i32 %33, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%34 = call i32 @close(i32 %5)
%35 = zext i32 %sv_0.0.reload to i64
store i64 %35, 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* %14, { 1, 0 }
uselistorder i32 %13, { 0, 2, 1 }
uselistorder i32 %5, { 1, 2, 0, 3, 4 }
uselistorder i32 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* ()* @__errno_location, { 3, 2, 0, 1 }
uselistorder i32 (i32, i64*, i32)* @read, { 1, 0 }
uselistorder i1 false, { 2, 0, 3, 1 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | pvr2_hdw_state_log_state_5304 | pvr2_hdw_state_log_state | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.lcssa.reg2mem = alloca i64
%rdi.08.reg2mem = alloca i64
%storemerge29.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%storemerge3.lcssa.reg2mem = alloca i32
%.reg2mem30 = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %3, i32 0, i64* nonnull %sv_0, i64 256)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i32 %5, i32* %.reg2mem
store i32 0, i32* %storemerge12.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload = load i32, i32* %.reg2mem
%7 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %3, i32 %.reload, i64* nonnull %sv_0, i64 %2, i64 %1)
%8 = add i32 %storemerge12.reload, 1
%9 = call i64 @FUNC(i64 %3, i32 %8, i64* nonnull %sv_0, i64 256)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i32 %10, i32* %.reg2mem
store i32 %8, i32* %storemerge12.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_2:
%12 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 256)
%13 = trunc i64 %12 to i32
%14 = icmp ult i32 %13, 256
%spec.select = select i1 %14, i32 %13, i32 256
%15 = icmp eq i32 %spec.select, 0
store i64 0, i64* %storemerge2.lcssa.reg2mem
br i1 %15, label LBL_11, label LBL_3
LBL_3:
%16 = ptrtoint i64* %sv_1 to i64
%17 = add i64 %16, -272
%18 = ptrtoint i64* %sv_0 to i64
%19 = zext i32 %spec.select to i64
store i32 0, i32* %storemerge29.reg2mem
store i64 %3, i64* %rdi.08.reg2mem
br label LBL_9
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%20 = add nuw nsw i64 %indvars.iv.next, %37
%21 = icmp ult i64 %20, %19
%22 = trunc i64 %20 to i32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %22, i32* %.reg2mem30
br i1 %21, label LBL_5, label LBL_6
LBL_5:
%.reload31 = load i32, i32* %.reg2mem30
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%23 = zext i32 %.reload31 to i64
%24 = add i64 %17, %23
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 10
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_4, label LBL_5.LBL_8_crit_edge
LBL_6:
%29 = trunc i64 %indvars.iv.next to i32
store i32 %29, i32* %storemerge3.lcssa.reg2mem
store i32 %22, i32* %.lcssa.reg2mem
br label LBL_8
LBL_7:
%30 = trunc i64 %indvars.iv.reload to i32
store i32 %30, i32* %storemerge3.lcssa.reg2mem
store i32 %.reload31, i32* %.lcssa.reg2mem
br label LBL_8
LBL_8:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%31 = add i64 %37, %18
%32 = inttoptr i64 %31 to i64*
%33 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %rdi.08.reload, i32 %storemerge3.lcssa.reload, i64* %32, i64 %2, i64 %1)
%34 = add i32 %.lcssa.reload, 1
%35 = icmp ult i32 %34, %spec.select
store i32 %34, i32* %storemerge29.reg2mem
store i64 ptrtoint ([15 x i8]* @gv_0 to i64), i64* %rdi.08.reg2mem
br i1 %35, label LBL_9, label LBL_10
LBL_9:
%rdi.08.reload = load i64, i64* %rdi.08.reg2mem
%storemerge29.reload = load i32, i32* %storemerge29.reg2mem
%36 = icmp ugt i32 %spec.select, %storemerge29.reload
%37 = zext i32 %storemerge29.reload to i64
store i64 0, i64* %indvars.iv.reg2mem
store i32 %storemerge29.reload, i32* %.reg2mem30
store i32 0, i32* %storemerge3.lcssa.reg2mem
store i32 %storemerge29.reload, i32* %.lcssa.reg2mem
br i1 %36, label LBL_5, label LBL_8
LBL_10:
%phitmp = zext i32 %34 to i64
store i64 %phitmp, i64* %storemerge2.lcssa.reg2mem
br label LBL_11
LBL_11:
%storemerge2.lcssa.reload = load i64, i64* %storemerge2.lcssa.reg2mem
ret i64 %storemerge2.lcssa.reload
uselistorder i64 %37, { 1, 0 }
uselistorder i32 %storemerge29.reload, { 3, 2, 1, 0 }
uselistorder i32 %34, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %indvars.iv.next, { 1, 0, 2 }
uselistorder i32 %spec.select, { 2, 3, 0, 1 }
uselistorder i64* %sv_0, { 4, 1, 3, 2, 0 }
uselistorder i64 %3, { 0, 3, 4, 2, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem30, { 1, 0, 2 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 1, 0, 3, 2 }
uselistorder i32* %.lcssa.reg2mem, { 1, 0, 3, 2 }
uselistorder i64* %storemerge2.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i32, i64*, i64, i64)* @printk, { 1, 0 }
uselistorder [15 x i8]* @gv_0, { 1, 0 }
uselistorder i64 (i64, i32, i64*, i64)* @pvr2_hdw_report_unlocked, { 1, 0 }
uselistorder i64 256, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 3, 6, 2, 4, 5 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | spapr_cpu_core_realize_527 | spapr_cpu_core_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem25 = alloca i32
%.reg2mem23 = alloca i64
%storemerge.off09.reg2mem = alloca i32
%storemerge.off0.lcssa.reg2mem = alloca i32
%storemerge.off010.reg2mem = alloca i32
%storemerge.off0611.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %6)
store i64 0, i64* %sv_1, align 8
%sext = mul i64 %1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = mul i64 %7, %8
%10 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %arg1, align 8
%11 = trunc i64 %9 to i32
%12 = icmp eq i32 %11, 0
store i32 0, i32* %storemerge.off0.lcssa.reg2mem
br i1 %12, label LBL_4, label LBL_1
LBL_1:
%13 = bitcast i64* %sv_0 to i8*
store i64 %9, i64* %.reg2mem
store i64 0, i64* %storemerge.off0611.reg2mem
store i32 0, i32* %storemerge.off010.reg2mem
br label LBL_2
LBL_2:
%storemerge.off010.reload = load i32, i32* %storemerge.off010.reg2mem
%storemerge.off0611.reload = load i64, i64* %storemerge.off0611.reg2mem
%.reload = load i64, i64* %.reg2mem
%14 = mul i64 %storemerge.off0611.reload, %7
%15 = add i64 %14, %.reload
%16 = call i64 @FUNC(i64 %15, i64 %7, i64 %6)
%17 = and i64 %storemerge.off0611.reload, 4294967295
%18 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %13, i32 32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %17)
%19 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0, i64 %15, i64* nonnull %sv_1)
%20 = load i64, i64* %sv_1, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i32 %storemerge.off010.reload, i32* %storemerge.off09.reg2mem
br i1 %22, label LBL_5, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %15)
%24 = add i32 %storemerge.off010.reload, 1
%extract.t7 = sext i32 %24 to i64
%25 = and i64 %15, 4294967295
%26 = icmp sgt i64 %25, %extract.t7
store i64 %15, i64* %.reg2mem
store i64 %extract.t7, i64* %storemerge.off0611.reg2mem
store i32 %24, i32* %storemerge.off010.reg2mem
store i32 %24, i32* %storemerge.off0.lcssa.reg2mem
br i1 %26, label LBL_2, label LBL_4
LBL_4:
%storemerge.off0.lcssa.reload = load i32, i32* %storemerge.off0.lcssa.reg2mem
%27 = call i64 @FUNC(i64 %2, i64 4198859, i64* nonnull %sv_1)
%28 = load i64, i64* %sv_1, align 8
%29 = icmp eq i64 %28, 0
store i32 %storemerge.off0.lcssa.reload, i32* %storemerge.off09.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_8, label LBL_5
LBL_5:
%storemerge.off09.reload = load i32, i32* %storemerge.off09.reg2mem
%30 = add i32 %storemerge.off09.reload, -1
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 %2, i64* %.reg2mem23
store i32 %30, i32* %.reg2mem25
store i64 %2, i64* %.lcssa.reg2mem
br i1 %32, label LBL_6, label LBL_7
LBL_6:
%.reload26 = load i32, i32* %.reg2mem25
%.reload24 = load i64, i64* %.reg2mem23
%33 = sext i32 %.reload26 to i64
%34 = mul i64 %7, %33
%35 = add i64 %34, %.reload24
%36 = call i64 @FUNC(i64 %35)
%37 = add i32 %.reload26, -1
%38 = icmp slt i32 %37, 0
%39 = icmp eq i1 %38, false
store i64 %35, i64* %.reg2mem23
store i32 %37, i32* %.reg2mem25
store i64 %35, i64* %.lcssa.reg2mem
br i1 %39, label LBL_6, label LBL_7
LBL_7:
%40 = ptrtoint i64* %arg2 to i64
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%41 = call i64 @FUNC(i64 %.lcssa.reload)
%42 = load i64, i64* %sv_1, align 8
%43 = call i64 @FUNC(i64 %40, i64 %42)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload26, { 1, 0 }
uselistorder i32 %storemerge.off010.reload, { 1, 0 }
uselistorder i64 %7, { 0, 3, 1, 2 }
uselistorder i64* %sv_1, { 2, 3, 0, 4, 1, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.off0611.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.off010.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.off09.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem23, { 2, 0, 1 }
uselistorder i32* %.reg2mem25, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 4, 3, 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | adv7511_get_modes_18011 | adv7511_get_modes | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.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 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = call i64 @FUNC(i64 %2, i64 4198929, i64 %3)
store i64 %7, i64* %.reg2mem
br label LBL_3
LBL_2:
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = mul i32 %12, 2
%14 = add i32 %13, 4
%15 = call i64 @FUNC(i64 %3)
%16 = add i64 %3, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 0, i32 %14)
%20 = call i64 @FUNC(i64 %2, i64 4198929, i64 %3)
%21 = call i64 @FUNC(i64 %3)
store i64 %20, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%22 = call i64 @FUNC(i64 %2, i64 %.reload)
%23 = call i64 @FUNC(i64 %2, i64 %.reload)
%24 = call i64 @FUNC(i64 %.reload)
%25 = and i64 %24, 4294967295
%26 = add i64 %3, 24
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = call i64 @FUNC(i64 %3, i64 %2, i32 %28, i64 %25)
%30 = call i64 @FUNC(i64 %.reload)
%31 = add i64 %3, 32
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33, i64 %.reload)
%35 = and i64 %23, 4294967295
ret i64 %35
uselistorder i64 %.reload, { 3, 4, 0, 1, 2 }
uselistorder i64 %3, { 5, 7, 6, 4, 8, 2, 3, 1, 0 }
uselistorder i64 %2, { 1, 3, 2, 4, 0 }
uselistorder i64 (i64, i64, i64)* @drm_do_get_edid, { 1, 0 }
uselistorder i64 4198929, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | palette8tobgr24_14513 | palette8tobgr24 | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg1 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i64 %arg2, i64* %sv_0.01.reg2mem
br label LBL_2
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = add i64 %indvars.iv.reload, %2
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4, align 1
%6 = zext i8 %5 to i64
%7 = mul i64 %6, 4
%8 = add i64 %7, %1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = inttoptr i64 %sv_0.01.reload to i8*
store i8 %10, i8* %11, align 1
%12 = load i8, i8* %4, align 1
%13 = zext i8 %12 to i64
%14 = mul i64 %13, 4
%15 = or i64 %14, 1
%16 = add i64 %15, %1
%17 = add i64 %sv_0.01.reload, 1
%18 = inttoptr i64 %16 to i8*
%19 = load i8, i8* %18, align 1
%20 = inttoptr i64 %17 to i8*
store i8 %19, i8* %20, align 1
%21 = load i8, i8* %4, align 1
%22 = zext i8 %21 to i64
%23 = mul i64 %22, 4
%24 = or i64 %23, 2
%25 = add i64 %24, %1
%26 = add i64 %sv_0.01.reload, 2
%27 = inttoptr i64 %25 to i8*
%28 = load i8, i8* %27, align 1
%29 = inttoptr i64 %26 to i8*
store i8 %28, i8* %29, align 1
%30 = add i64 %sv_0.01.reload, 3
%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 %30, i64* %sv_0.01.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | op_div_18625 | op_div | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load i32, i32* @gv_0, align 4
%3 = load i32, i32* @gv_1, align 4
%4 = load i32*, i32** @gv_2, align 8
%5 = ashr i32 %2, 31
%6 = zext i32 %2 to i64
%7 = zext i32 %5 to i64
%8 = mul i64 %7, 4294967296
%9 = or i64 %8, %6
%10 = zext i32 %3 to i64
%11 = sdiv i64 %9, %10
%12 = trunc i64 %11 to i32
store i32 %12, i32* %4, align 4
%13 = load i32, i32* @gv_0, align 4
%14 = load i32, i32* @gv_1, align 4
%15 = load i32*, i32** @gv_2, align 8
%16 = ptrtoint i32* %15 to i64
%17 = ashr i32 %13, 31
%18 = zext i32 %13 to i64
%19 = zext i32 %17 to i64
%20 = mul i64 %19, 4294967296
%21 = or i64 %20, %18
%22 = zext i32 %14 to i64
%23 = srem i64 %21, %22
%24 = trunc i64 %23 to i32
%25 = add i64 %16, 4
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
br label LBL_2
LBL_2:
%27 = call i64 @FUNC()
ret i64 %27
} | 1 |
BinRealVul | mxf_read_utf16_string_2865 | mxf_read_utf16_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp slt i32 %0, 0
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %1, label LBL_8, label LBL_1
LBL_1:
%2 = trunc i64 %arg2 to i32
%3 = icmp slt i32 %2, 1073741824
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_2, label LBL_8
LBL_2:
%4 = trunc i64 %arg2 to i32
%5 = icmp slt i32 %4, 0
%6 = zext i1 %5 to i32
%7 = add i32 %6, %2
%8 = ashr i32 %7, 1
%9 = add i32 %2, 1
%10 = add i32 %9, %8
%11 = sext i32 %10 to i64
%12 = call i64 @FUNC(i64 %11)
store i64 %12, i64* %arg3, align 8
%13 = icmp eq i64* %arg3, null
%14 = icmp eq i1 %13, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %14, label LBL_3, label LBL_8
LBL_3:
%15 = ptrtoint i64* %arg3 to i64
%16 = ptrtoint i64* %arg1 to i64
%17 = trunc i64 %arg4 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %16, i32 %2, i64 %15, i64 %11)
store i64 %19, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_5:
%20 = call i64 @FUNC(i64 %16, i32 %2, i64 %15, i64 %11)
store i64 %20, i64* %storemerge.in.reg2mem
br label LBL_6
LBL_6:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%21 = icmp slt i32 %storemerge, 0
%22 = icmp eq i1 %21, false
store i64 %storemerge.in.reload, i64* %rax.0.shrunk.reg2mem
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = call i64 @FUNC(i64 %15)
store i64 %storemerge.in.reload, i64* %rax.0.shrunk.reg2mem
br label LBL_8
LBL_8:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %storemerge.in.reload, { 1, 0, 2 }
uselistorder i32 %2, { 2, 3, 1, 0, 4 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64* %arg3, { 2, 0, 1 }
uselistorder label LBL_8, { 4, 0, 1, 3, 2 }
} | 0 |
BinRealVul | decode_frame_5460 | decode_frame | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.17.reg2mem = alloca i32*
%sv_1.08.reg2mem = alloca i64
%sv_2.010.reg2mem = alloca i64
%sv_3.012.reg2mem = alloca i64
%sv_4.014.reg2mem = alloca i64
%storemerge16.reg2mem = alloca i32
%.reg2mem32 = alloca i32
%.reg2mem30 = alloca i32
%.reg2mem28 = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32*
%.reg2mem26 = alloca i32
%.reg2mem24 = alloca i32
%.reg2mem22 = alloca i32
%sv_0.05.reg2mem = alloca i32*
%storemerge46.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%rcx = alloca i64, align 8
%4 = ptrtoint i32* %arg4 to i64
store i64 %4, i64* %rcx, align 8
%5 = ptrtoint i32* %arg1 to i64
%6 = trunc i64 %3 to i32
%7 = add i64 %5, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = mul i32 %6, 3
%11 = mul i32 %10, %9
%12 = icmp slt i32 %11, 0
%13 = zext i1 %12 to i32
%14 = add i32 %11, %13
%15 = ashr i32 %14, 1
%16 = add nsw i32 %15, 15
%17 = trunc i64 %4 to i32
%18 = icmp ult i32 %16, %17
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_2:
%20 = ptrtoint i64* %arg2 to i64
%21 = add i64 %4, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %5, i64 %20, i64 0)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 %25, i32* %rax.0.shrunk.reg2mem
br i1 %27, label LBL_3, label LBL_12
LBL_3:
%28 = inttoptr i64 %23 to i32*
%29 = bitcast i64* %arg2 to i32*
store i32 1, i32* %29, align 4
%30 = add i64 %20, 4
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
%32 = load i32, i32* %28, align 4
%33 = icmp eq i32 %32, 16777218
br i1 %33, label LBL_5, label LBL_4
LBL_4:
%34 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i32 %32)
store i32 -2, i32* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_5:
%35 = load i32, i32* %8, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_11, label LBL_6
LBL_6:
%37 = bitcast i64* %rdi to i32*
%38 = add i64 %20, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %20, 32
%42 = inttoptr i64 %41 to i32*
%43 = add i64 %20, 24
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = add i64 %20, 16
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = load i32, i32* %42, align 4
%50 = sext i32 %49 to i64
%51 = add i64 %40, %50
%52 = add i64 %23, 16
%53 = inttoptr i64 %52 to i32*
%54 = add i64 %20, 36
%55 = inttoptr i64 %54 to i32*
%56 = add i64 %20, 40
%57 = inttoptr i64 %56 to i32*
%.pre = load i32, i32* %37, align 8
store i32 %35, i32* %.reg2mem28
store i32 %49, i32* %.reg2mem30
store i32 %.pre, i32* %.reg2mem32
store i32 0, i32* %storemerge16.reg2mem
store i64 %45, i64* %sv_4.014.reg2mem
store i64 %48, i64* %sv_3.012.reg2mem
store i64 %51, i64* %sv_2.010.reg2mem
store i64 %40, i64* %sv_1.08.reg2mem
store i32* %53, i32** %sv_0.17.reg2mem
br label LBL_10
LBL_7:
%sv_0.05.reload = load i32*, i32** %sv_0.05.reg2mem
%storemerge46.reload = load i32, i32* %storemerge46.reg2mem
%.reload = load i64, i64* %.reg2mem
%58 = add i64 %.reload, %sv_1.08.reload
%59 = bitcast i32* %sv_0.05.reload to i16*
%60 = load i16, i16* %59, align 2
%61 = inttoptr i64 %58 to i16*
store i16 %60, i16* %61, align 2
%62 = ptrtoint i32* %sv_0.05.reload to i64
%63 = add i64 %62, 2
%64 = add i64 %.reload, %sv_2.010.reload
%65 = inttoptr i64 %63 to i16*
%66 = load i16, i16* %65, align 2
%67 = inttoptr i64 %64 to i16*
store i16 %66, i16* %67, align 2
%68 = add i64 %62, 4
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = ashr exact i32 %storemerge46.reload, 1
%72 = sext i32 %71 to i64
%73 = add i64 %sv_3.012.reload, %72
%74 = xor i8 %70, -128
%75 = inttoptr i64 %73 to i8*
store i8 %74, i8* %75, align 1
%76 = add i64 %62, 5
%77 = inttoptr i64 %76 to i8*
%78 = load i8, i8* %77, align 1
%79 = add i64 %sv_4.014.reload, %72
%80 = xor i8 %78, -128
%81 = inttoptr i64 %79 to i8*
store i8 %80, i8* %81, align 1
%82 = add i64 %62, 6
%83 = inttoptr i64 %82 to i32*
%84 = add i32 %storemerge46.reload, 2
%85 = load i32, i32* %37, align 8
%86 = zext i32 %85 to i64
%87 = sext i32 %84 to i64
%88 = icmp slt i64 %87, %86
store i64 %87, i64* %.reg2mem
store i32 %84, i32* %storemerge46.reg2mem
store i32* %83, i32** %sv_0.05.reg2mem
br i1 %88, label LBL_7, label LBL_8
LBL_8:
%.pre17 = load i32, i32* %42, align 4
%.pre18 = load i32, i32* %8, align 4
store i32 %.pre18, i32* %.reg2mem22
store i32 %.pre17, i32* %.reg2mem24
store i32 %85, i32* %.reg2mem26
store i32* %83, i32** %sv_0.0.lcssa.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.lcssa.reload = load i32*, i32** %sv_0.0.lcssa.reg2mem
%.reload27 = load i32, i32* %.reg2mem26
%.reload25 = load i32, i32* %.reg2mem24
%.reload23 = load i32, i32* %.reg2mem22
%89 = mul i32 %.reload25, 2
%90 = sext i32 %89 to i64
%91 = add i64 %sv_1.08.reload, %90
%92 = add i64 %sv_2.010.reload, %90
%93 = load i32, i32* %55, align 4
%94 = sext i32 %93 to i64
%95 = add i64 %sv_3.012.reload, %94
%96 = load i32, i32* %57, align 4
%97 = sext i32 %96 to i64
%98 = add i64 %sv_4.014.reload, %97
%99 = add i32 %storemerge16.reload, 2
%100 = zext i32 %.reload23 to i64
%101 = sext i32 %99 to i64
%102 = icmp slt i64 %101, %100
store i32 %.reload23, i32* %.reg2mem28
store i32 %.reload25, i32* %.reg2mem30
store i32 %.reload27, i32* %.reg2mem32
store i32 %99, i32* %storemerge16.reg2mem
store i64 %98, i64* %sv_4.014.reg2mem
store i64 %95, i64* %sv_3.012.reg2mem
store i64 %92, i64* %sv_2.010.reg2mem
store i64 %91, i64* %sv_1.08.reg2mem
store i32* %sv_0.0.lcssa.reload, i32** %sv_0.17.reg2mem
br i1 %102, label LBL_10, label LBL_11
LBL_10:
%sv_0.17.reload = load i32*, i32** %sv_0.17.reg2mem
%sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem
%sv_2.010.reload = load i64, i64* %sv_2.010.reg2mem
%sv_3.012.reload = load i64, i64* %sv_3.012.reg2mem
%sv_4.014.reload = load i64, i64* %sv_4.014.reg2mem
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%.reload33 = load i32, i32* %.reg2mem32
%.reload31 = load i32, i32* %.reg2mem30
%.reload29 = load i32, i32* %.reg2mem28
%103 = icmp eq i32 %.reload33, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge46.reg2mem
store i32* %sv_0.17.reload, i32** %sv_0.05.reg2mem
store i32 %.reload29, i32* %.reg2mem22
store i32 %.reload31, i32* %.reg2mem24
store i32 0, i32* %.reg2mem26
store i32* %sv_0.17.reload, i32** %sv_0.0.lcssa.reg2mem
br i1 %103, label LBL_9, label LBL_7
LBL_11:
%104 = bitcast i64* %rcx to i32*
%105 = bitcast i64* %arg3 to i32*
store i32 1, i32* %105, align 4
%106 = load i32, i32* %104, align 8
store i32 %106, i32* %rax.0.shrunk.reg2mem
br label LBL_12
LBL_12:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32* %sv_0.17.reload, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i32* %37, { 1, 0 }
uselistorder i64 %4, { 2, 0, 1, 3 }
uselistorder i64* %.reg2mem, { 1, 2, 0 }
uselistorder i32* %storemerge46.reg2mem, { 1, 2, 0 }
uselistorder i32** %sv_0.05.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem22, { 1, 0, 2 }
uselistorder i32* %.reg2mem24, { 1, 0, 2 }
uselistorder i32* %.reg2mem26, { 1, 0, 2 }
uselistorder i32** %sv_0.0.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 0, { 0, 2, 3, 6, 7, 4, 5, 1, 8 }
uselistorder i32 0, { 1, 2, 4, 0, 5, 6, 3 }
uselistorder label LBL_12, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | srs_timestamp_check_19121 | srs_timestamp_check | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%storemerge25.reg2mem = alloca i64
%.reg2mem = alloca i8
%1 = load i64, i64* %0
%sv_1 = alloca i128, align 8
%2 = inttoptr i64 %arg2 to i8*
%3 = load i8, i8* %2, align 1
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
store i8 %3, i8* %.reg2mem
store i64 %arg2, i64* %storemerge25.reg2mem
store i64 0, i64* %sv_0.04.reg2mem
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%.reload = load i8, i8* %.reg2mem
%6 = sext i8 %.reload to i32
%7 = call i32 @toupper(i32 %6)
%8 = call i8* @strchr(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @rfc3548_Base_64_Encoding_with_URL_and_Filename_Safe_Alphabet_at_402010, i64 0, i64 0), i32 %7)
%9 = icmp eq i8* %8, null
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_6
LBL_2:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%storemerge25.reload = load i64, i64* %storemerge25.reg2mem
%11 = ptrtoint i8* %8 to i64
%12 = sub i64 %11, sext (i32 ptrtoint ([62 x i8]* @rfc3548_Base_64_Encoding_with_URL_and_Filename_Safe_Alphabet_at_402010 to i32) to i64)
%13 = mul i64 %sv_0.04.reload, 64
%sext = mul i64 %12, 4294967296
%14 = ashr exact i64 %sext, 32
%15 = or i64 %14, %13
%16 = add i64 %storemerge25.reload, 1
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, 0
%20 = icmp eq i1 %19, false
store i8 %18, i8* %.reg2mem
store i64 %16, i64* %storemerge25.reg2mem
store i64 %15, i64* %sv_0.04.reg2mem
store i64 %15, i64* %sv_0.0.lcssa.reg2mem
br i1 %20, label LBL_1, label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%21 = bitcast i128* %sv_1 to i32*
%22 = call i32 @time(i32* nonnull %21)
%23 = load i128, i128* %sv_1, align 8
%24 = trunc i128 %23 to i64
%25 = lshr i64 %24, 63
store i64 %25, i64* %storemerge.in.reg2mem
br label LBL_4
LBL_4:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%26 = icmp sgt i64 %sv_0.0.lcssa.reload, %storemerge.in.reload
%27 = add i64 %storemerge.in.reload, 3600
store i64 %27, i64* %storemerge.in.reg2mem
br i1 %26, label LBL_4, label LBL_5
LBL_5:
%storemerge = sext i64 %storemerge.in.reload to i128
store i128 %storemerge, i128* %sv_1, align 8
%sext6 = mul i64 %1, 4294967296
%28 = ashr exact i64 %sext6, 32
%29 = add i64 %sv_0.0.lcssa.reload, %28
%30 = icmp slt i64 %29, %storemerge.in.reload
%. = select i1 %30, i64 4294967294, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge.in.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i8* %8, { 1, 0 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge25.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | bonito_class_init_1896 | bonito_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
store i32 57171, i32* %2, align 4
%3 = add i64 %0, 12
%4 = inttoptr i64 %3 to i32*
store i32 213, i32* %4, align 4
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
%7 = add i64 %0, 20
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
store i64 ptrtoint ([12 x i8]* @gv_0 to i64), i64* %arg1, align 8
%9 = inttoptr i64 %1 to i8*
store i8 1, i8* %9, align 1
%10 = inttoptr i64 %5 to i64*
store i64 ptrtoint (i64* @gv_1 to i64), i64* %10, align 8
ret i64 %0
} | 0 |
BinRealVul | xdr_argsize_check_11449 | xdr_argsize_check | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ult i64* %arg2, %arg1
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, %1
%7 = icmp ult i64 %6, %2
store i64 1, i64* %storemerge.reg2mem
br i1 %7, label LBL_2, label LBL_3
LBL_2:
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | s390_memory_init_1541 | s390_memory_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64* @malloc(i32 0)
%2 = ptrtoint i64* %1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 4198774)
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %0, i64 0, i64 %2)
%6 = call i64 @FUNC()
ret i64 %6
uselistorder i64* (i32)* @malloc, { 1, 0 }
} | 0 |
BinRealVul | sowrite_17062 | sowrite | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi4.reg2mem = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %2, 40
%.pre3 = inttoptr i64 %.pre to i32*
%.pre5 = load i32, i32* %.pre3, align 4
store i32 %.pre5, i32* %.reg2mem
store i32* %.pre3, i32** %.pre-phi4.reg2mem
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %2)
%8 = add i64 %2, 40
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i32 %10, i32* %.reg2mem
store i32* %9, i32** %.pre-phi4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_16
LBL_3:
%13 = add i64 %2, 16
%.pre-phi4.reload = load i32*, i32** %.pre-phi4.reg2mem
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
store i64 %15, i64* %sv_1, align 8
%16 = load i64, i64* %14, align 8
%17 = add i64 %2, 24
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp ult i64 %16, %19
%21 = icmp eq i1 %20, false
store i32 1, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_4, label LBL_5
LBL_4:
%.reload = load i32, i32* %.reg2mem
%22 = add i64 %2, 32
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %2, 44
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = sext i32 %27 to i64
%29 = sub i64 %24, %16
%30 = add i64 %29, %28
%31 = trunc i64 %30 to i32
%32 = sext i32 %.reload to i64
%33 = icmp ugt i64 %30, %32
%spec.select = select i1 %33, i32 %.reload, i32 %31
%34 = icmp eq i32 %.reload, %spec.select
%spec.select2 = select i1 %34, i32 1, i32 2
store i32 %spec.select2, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%35 = trunc i64 %1 to i32
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%36 = bitcast i64* %sv_1 to %iovec*
%37 = call i32 @writev(i32 %35, %iovec* nonnull %36, i32 %sv_0.0.reload)
%38 = icmp slt i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_8, label LBL_6
LBL_6:
%40 = call i32* @__errno_location()
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %41, 11
store i64 0, i64* %rax.0.reg2mem
br i1 %42, label LBL_16, label LBL_7
LBL_7:
%43 = call i32* @__errno_location()
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 4
%46 = icmp eq i1 %45, false
store i64 0, i64* %rax.0.reg2mem
br i1 %46, label LBL_8, label LBL_16
LBL_8:
%47 = icmp eq i32 %37, 0
%48 = icmp eq i1 %47, false
%49 = icmp eq i1 %39, %48
br i1 %49, label LBL_10, label LBL_9
LBL_9:
%50 = call i64 @FUNC(i64 %2)
%51 = call i64 @FUNC(i64 %2)
%52 = call i64 @FUNC(i64 %51)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_10:
%53 = load i32, i32* %.pre-phi4.reload, align 4
%54 = sub i32 %53, %37
store i32 %54, i32* %.pre-phi4.reload, align 4
%55 = load i64, i64* %14, align 8
%56 = sext i32 %37 to i64
%57 = add i64 %55, %56
store i64 %57, i64* %14, align 8
%58 = add i64 %2, 32
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = add i64 %2, 44
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = sext i32 %63 to i64
%65 = add i64 %60, %64
%66 = icmp ult i64 %57, %65
br i1 %66, label LBL_12, label LBL_11
LBL_11:
%67 = sub i64 %57, %64
store i64 %67, i64* %14, align 8
br label LBL_12
LBL_12:
%68 = add i64 %2, 8
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = urem i32 %70, 2
%72 = icmp eq i32 %71, 0
br i1 %72, label LBL_15, label LBL_13
LBL_13:
%73 = load i32, i32* %.pre-phi4.reload, align 4
%74 = icmp eq i32 %73, 0
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_15, label LBL_14
LBL_14:
%76 = call i64 @FUNC(i64 %2)
br label LBL_15
LBL_15:
%77 = zext i32 %37 to i64
store i64 %77, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %64, { 1, 0 }
uselistorder i64 %57, { 1, 0, 2 }
uselistorder i32 %37, { 0, 1, 3, 2, 4 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %.reload, { 1, 0, 2 }
uselistorder i64* %14, { 0, 2, 1, 3, 4 }
uselistorder i32* %.pre-phi4.reload, { 0, 2, 1 }
uselistorder i64 %2, { 11, 10, 3, 4, 9, 8, 1, 2, 5, 13, 6, 7, 0, 12 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 2, 1, 3 }
uselistorder i64 (i64)* @sofcantsendmore, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 44, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 40, { 1, 0 }
uselistorder label LBL_16, { 3, 4, 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | set_link_completion_885 | set_link_completion | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = trunc i64 %arg2 to i32
%2 = call i32 @strlen(i8* %arg3)
%3 = sext i32 %2 to i64
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = icmp eq i32 %1, 2
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 0, i64* nonnull %sv_0, i64 0, i64 10)
%8 = trunc i64 %7 to i32
%9 = add i32 %8, -10
%10 = sub i32 9, %8
%11 = and i32 %10, %8
%12 = icmp slt i32 %11, 0
%13 = icmp eq i32 %9, 0
%14 = icmp slt i32 %9, 0
%15 = icmp eq i1 %14, %12
%16 = icmp eq i1 %13, false
%17 = icmp eq i1 %15, %16
%18 = and i64 %7, 4294967295
%19 = select i1 %17, i64 10, i64 %18
%20 = icmp eq i64 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_8, label LBL_2
LBL_2:
%21 = ptrtoint i64* %sv_1 to i64
%22 = add i64 %21, -112
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge4.reg2mem
br label LBL_3
LBL_3:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%23 = mul i64 %.reload, 8
%24 = add i64 %22, %23
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %28 to i8*
%30 = call i32 @strncmp(i8* %arg3, i8* %29, i32 %2)
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_5, label LBL_4
LBL_4:
%33 = call i64 @FUNC(i64 %0, i64 %28)
br label LBL_5
LBL_5:
%34 = add i32 %storemerge4.reload, 1
%35 = sext i32 %34 to i64
%36 = icmp sgt i64 %19, %35
store i64 %35, i64* %.reg2mem
store i32 %34, i32* %storemerge4.reg2mem
store i64 %19, i64* %rax.0.reg2mem
br i1 %36, label LBL_3, label LBL_8
LBL_6:
%37 = icmp eq i32 %1, 3
%38 = icmp eq i1 %37, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %38, label LBL_8, label LBL_7
LBL_7:
%39 = ptrtoint i8* %arg3 to i64
%40 = call i64 @FUNC(i64 %0, i64 %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%41 = call i64 @FUNC(i64 %0, i64 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
store i64 %41, 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 %19, { 0, 2, 1 }
uselistorder i32 %9, { 1, 0 }
uselistorder i32 %8, { 0, 2, 1 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64 (i64, i64, i8*)* @add_completion_option, { 1, 0 }
uselistorder i32 0, { 22, 0, 23, 24, 25, 1, 26, 27, 28, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }
uselistorder i32 9, { 1, 0 }
uselistorder i32 -10, { 1, 0 }
uselistorder i64 10, { 2, 3, 0, 1 }
uselistorder i8* %arg3, { 1, 0, 2 }
uselistorder label LBL_8, { 2, 3, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | valid_login_17781 | valid_login | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%.reg2mem = alloca i8*
%0 = bitcast i64* %arg1 to i8*
%1 = load i8, i8* %0, align 1
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
store i8* %0, i8** %.reg2mem
store i64 %4, i64* %storemerge14.reg2mem
br label LBL_2
LBL_2:
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%.reload = load i8*, i8** %.reg2mem
%5 = call i16** @__ctype_b_loc()
%6 = load i16*, i16** %5, align 8
%7 = ptrtoint i16* %6 to i64
%8 = load i8, i8* %.reload, align 1
%9 = sext i8 %8 to i64
%10 = mul i64 %9, 2
%11 = add i64 %10, %7
%12 = inttoptr i64 %11 to i16*
%13 = load i16, i16* %12, align 2
%14 = and i16 %13, 8
%15 = icmp eq i16 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_3, label %switch.early.test
LBL_3:
%17 = add i64 %storemerge14.reload, 1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
store i8* %18, i8** %.reg2mem
store i64 %17, i64* %storemerge14.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %21, label LBL_2, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | old_style_option_3994 | old_style_option | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.0.ph11.reg2mem = alloca i32
%sv_0.0.ph12.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1.04.lcssa.reg2mem = alloca i32
%sv_0.05.lcssa.reg2mem = alloca i64
%sv_0.0522.reg2mem = alloca i64
%sv_1.0423.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 1
store i64 1, i64* %indvars.iv.reg2mem
store i64 -1, i64* %sv_0.0.ph12.reg2mem
store i32 %2, i32* %sv_1.0.ph11.reg2mem
store i32 %2, i32* %sv_1.0.lcssa.reg2mem
store i64 -1, i64* %sv_0.0.lcssa.reg2mem
br i1 %3, label LBL_1.lr.ph, label LBL_9
LBL_1:
%4 = load i64, i64* %39, align 8
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp eq i8 %6, 45
%8 = icmp eq i1 %7, false
store i32 %27, i32* %sv_1.0423.reg2mem
store i64 %26, i64* %sv_0.0522.reg2mem
store i64 %26, i64* %sv_0.05.lcssa.reg2mem
store i32 %27, i32* %sv_1.04.lcssa.reg2mem
br i1 %8, label LBL_6, label LBL_2
LBL_2:
%sv_0.0522.reload = load i64, i64* %sv_0.0522.reg2mem
%sv_1.0423.reload = load i32, i32* %sv_1.0423.reg2mem
%9 = call i16** @__ctype_b_loc()
%10 = load i16*, i16** %9, align 8
%11 = ptrtoint i16* %10 to i64
%12 = load i64, i64* %39, align 8
%13 = add i64 %12, 1
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = sext i8 %15 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %11
%19 = inttoptr i64 %18 to i16*
%20 = load i16, i16* %19, align 2
%21 = and i16 %20, 2048
%22 = icmp eq i16 %21, 0
store i64 %sv_0.0522.reload, i64* %sv_0.05.lcssa.reg2mem
store i32 %sv_1.0423.reload, i32* %sv_1.04.lcssa.reg2mem
br i1 %22, label LBL_6, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @globalFUNCvarFUNC402018, i64 0, i64 0))
%24 = load i64, i64* %39, align 8
%25 = add i64 %24, 1
%26 = call i64 @FUNC(i64 %25, i64 %23)
%27 = add i32 %sv_1.0423.reload, -1
%28 = zext i32 %27 to i64
%29 = icmp eq i64 %indvars.iv.reload, %28
br i1 %29, label LBL_4, label LBL_5
LBL_4:
%30 = sext i32 %27 to i64
%31 = icmp slt i64 %indvars.iv.reload, %30
store i32 %27, i32* %sv_1.0.lcssa.reg2mem
store i64 %26, i64* %sv_0.0.lcssa.reg2mem
br i1 %31, label LBL_1, label LBL_9
LBL_5:
%32 = sub i32 %27, %47
%33 = mul i32 %32, 8
%34 = call i64* @memmove(i64* nonnull %39, i64* %46, i32 %33)
br label LBL_4
LBL_6:
%sv_1.04.lcssa.reload = load i32, i32* %sv_1.04.lcssa.reg2mem
%sv_0.05.lcssa.reload = load i64, i64* %sv_0.05.lcssa.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%35 = sext i32 %sv_1.04.lcssa.reload to i64
%36 = icmp slt i64 %indvars.iv.next, %35
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %sv_0.05.lcssa.reload, i64* %sv_0.0.ph12.reg2mem
store i32 %sv_1.04.lcssa.reload, i32* %sv_1.0.ph11.reg2mem
store i32 %sv_1.04.lcssa.reload, i32* %sv_1.0.lcssa.reg2mem
store i64 %sv_0.05.lcssa.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %36, label LBL_1.lr.ph, label LBL_9
LBL_7:
%sv_1.0.ph11.reload = load i32, i32* %sv_1.0.ph11.reg2mem
%sv_0.0.ph12.reload = load i64, i64* %sv_0.0.ph12.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%37 = mul i64 %indvars.iv.reload, 8
%38 = add i64 %37, %arg2
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = icmp eq i8 %42, 45
%44 = icmp eq i1 %43, false
store i64 %sv_0.0.ph12.reload, i64* %sv_0.05.lcssa.reg2mem
store i32 %sv_1.0.ph11.reload, i32* %sv_1.04.lcssa.reg2mem
br i1 %44, label LBL_6, label LBL_2.lr.ph
LBL_8:
%45 = add i64 %38, 8
%46 = inttoptr i64 %45 to i64*
%47 = trunc i64 %indvars.iv.reload to i32
store i32 %sv_1.0.ph11.reload, i32* %sv_1.0423.reg2mem
store i64 %sv_0.0.ph12.reload, i64* %sv_0.0522.reg2mem
br label LBL_2
LBL_9:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %arg1, align 4
ret i64 %sv_0.0.lcssa.reload
uselistorder i64* %39, { 0, 4, 3, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 4, 2, 3, 0 }
uselistorder i32 %27, { 5, 0, 3, 4, 2, 1 }
uselistorder i64 %26, { 0, 2, 1 }
uselistorder i32 %sv_1.0423.reload, { 1, 0 }
uselistorder i32* %sv_1.0423.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0522.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.05.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i32* %sv_1.04.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph12.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph11.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 1, { 1, 2, 3, 0 }
uselistorder label LBL_1.lr.ph, { 1, 0 }
uselistorder label LBL_6, { 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | ims_pcu_buttons_report_9668 | ims_pcu_buttons_report | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = add i64 %0, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 2
%4 = add i64 %2, %3
%5 = inttoptr i64 %4 to i16*
%6 = load i16, i16* %5, align 2
%7 = icmp eq i16 %6, -1
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = shl i64 1, %indvars.iv.reload
%9 = and i64 %1, %8
%10 = zext i16 %6 to i64
%11 = call i64 @FUNC(i64 %0, i64 %10, i64 %9)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%12 = call i64 @FUNC(i64 %0)
ret i64 %12
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | qemu_check_nic_model_16188 | qemu_check_nic_model | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 %arg2)
ret i64 %1
} | 1 |
BinRealVul | sysbus_has_irq_15761 | sysbus_has_irq | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %3, i64 %2, i64 %1)
%7 = call i64 @FUNC(i64 %4, i64 %6, i64 0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
%10 = zext i1 %9 to i64
%11 = and i64 %7, -256
%12 = or i64 %11, %10
ret i64 %12
uselistorder i64 %7, { 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
} | 1 |
BinRealVul | index_list_mailbox_open_4464 | index_list_mailbox_open | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%2 = icmp slt i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_8
LBL_1:
%4 = icmp eq i64* %arg1, null
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_8
LBL_2:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i8*
%10 = call i8* @strdup(i8* %9)
%11 = call i32 @strlen(i8* %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_7, label LBL_3
LBL_3:
%13 = ptrtoint i8* %10 to i64
%wide.trip.count = zext i32 %11 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = add i64 %indvars.iv.reload, %13
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i8 %16, 47
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
store i8 0, i8* %15, align 1
br label LBL_6
LBL_6:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %exitcond, label LBL_8, label LBL_4
LBL_7:
%19 = bitcast i8* %10 to i64*
%20 = call i32 @memcmp(i64* %19, i64* null, i32 %11)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %11, { 2, 0, 1 }
uselistorder i8* %10, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* null, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | iput_9011 | iput | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
br i1 %2, label LBL_6, label LBL_1
LBL_1:
%3 = urem i64 %1, 2
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %arg1, 12
%6 = add i64 %arg1, 8
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = add i64 %arg1, 4
%11 = inttoptr i64 %10 to i32*
%12 = and i64 %1, 2
%13 = icmp eq i64 %12, 0
br label LBL_3
LBL_3:
%14 = load i32, i32* %11, align 4
%15 = icmp eq i32 %14, 0
%or.cond = or i1 %13, %15
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %6)
%17 = call i64 @FUNC(i64 %5)
%18 = call i64 @FUNC(i64 %arg1)
%19 = call i64 @FUNC(i64 %arg1)
%20 = call i64 @FUNC(i64 %6, i64 %5)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_6, label LBL_3
LBL_5:
%23 = call i64 @FUNC(i64 %arg1)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @atomic_dec_and_lock, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 3, 1, 5, 4, 6 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | diag288_timer_expired_16603 | diag288_timer_expired | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0))
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
%3 = add i64 %2, 4294967295
%4 = and i64 %3, 4294967295
%5 = trunc i64 %3 to i32
%6 = icmp ult i32 %5, 3
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg1)
store i64 %7, 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 i32 1, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | nouveau_pm_profile_set_4112 | nouveau_pm_profile_set | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = ptrtoint i64* %sv_2 to i64
store i64 %0, i64* %sv_1, align 8
%1 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%2 = icmp eq i32 %1, 7777
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_9
LBL_1:
%3 = bitcast i64* %sv_2 to i8*
%4 = inttoptr i64 %arg2 to i8*
%5 = call i8* @strncpy(i8* nonnull %3, i8* %4, i32 16)
%6 = call i8* @strchr(i8* nonnull %3, i32 10)
%7 = icmp eq i8* %6, null
br i1 %7, label LBL_3, label LBL_2
LBL_2:
store i8 0, i8* %6, align 1
br label LBL_3
LBL_3:
%8 = ptrtoint i64* %arg1 to i64
%9 = bitcast i64* %sv_1 to i8**
%10 = call i8* @strsep(i8** nonnull %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i8* %10, null
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = ptrtoint i8* %10 to i64
%13 = call i64 @FUNC(i64 %8, i64 %12)
store i64 %13, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = call i8* @strsep(i8** nonnull %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%15 = icmp eq i8* %14, null
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br i1 %15, label LBL_7, label LBL_6
LBL_6:
%16 = ptrtoint i8* %14 to i64
%17 = call i64 @FUNC(i64 %8, i64 %16)
store i64 %17, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%18 = icmp ne i64 %sv_0.0.reload, 0
%19 = icmp eq i64 %storemerge.reload, 0
%20 = icmp eq i1 %19, false
%or.cond = icmp eq i1 %18, %20
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_9
LBL_8:
store i64 %sv_0.0.reload, i64* %arg1, align 8
%21 = add i64 %8, 8
%22 = inttoptr i64 %21 to i64*
store i64 %storemerge.reload, i64* %22, align 8
%23 = call i64 @FUNC(i64 %8)
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 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64 %8, { 2, 3, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @profile_find, { 1, 0 }
uselistorder i8* (i8**, i8*)* @strsep, { 1, 0 }
uselistorder label LBL_9, { 2, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | valid_request_17608 | valid_request | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.5.reg2mem = alloca i32
%sv_0.4.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg4 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%3 = trunc i64 %arg5 to i32
%4 = call i64 @FUNC(i64* nonnull %sv_4)
%5 = call i64 @FUNC(i64* nonnull %sv_4, i64 %2, i32 %3)
%6 = bitcast i32* %sv_3 to i64*
%7 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull %6)
%8 = load i32, i32* %sv_3, align 4
%9 = icmp ne i32 %8, 20
%spec.select = zext i1 %9 to i32
%10 = call i64 @FUNC(i64 %7)
%11 = call i64 @FUNC(i64* nonnull %sv_4)
%12 = trunc i64 %11 to i8
%13 = icmp eq i8 %12, 50
%14 = select i1 %9, i32 2, i32 1
%sv_0.1 = select i1 %13, i32 %spec.select, i32 %14
%15 = call i64 @FUNC(i64* nonnull %sv_4)
%16 = call i64 @FUNC(i64* nonnull %sv_4, i64* null)
%17 = inttoptr i64 %16 to i8*
%18 = call i32 @strcmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* %17)
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i32
%spec.select6 = add nuw nsw i32 %sv_0.1, %20
%21 = call i64 @FUNC(i64 %16)
%22 = call i64 @FUNC(i64* nonnull %sv_4, i64* null)
%23 = inttoptr i64 %22 to i8*
%24 = call i32 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i8* %23)
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i32
%sv_0.3 = add nuw nsw i32 %spec.select6, %26
%27 = call i64 @FUNC(i64 %22)
%28 = call i64 @FUNC(i64* nonnull %sv_4, i64* null)
%29 = bitcast i32* %sv_2 to i64*
%30 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull %29)
%31 = call i64 @FUNC(i64 %28)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_2, label LBL_1
LBL_1:
%35 = add nuw nsw i32 %sv_0.3, 1
store i32* null, i32** %sv_1.0.reg2mem
store i32 %35, i32* %sv_0.4.reg2mem
br label LBL_5
LBL_2:
%36 = load i32, i32* %sv_2, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %30, i64 %37)
%39 = inttoptr i64 %38 to i32*
%40 = icmp eq i64 %38, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_4, label LBL_3
LBL_3:
%42 = add nuw nsw i32 %sv_0.3, 1
store i32* %39, i32** %sv_1.0.reg2mem
store i32 %42, i32* %sv_0.4.reg2mem
br label LBL_5
LBL_4:
%43 = load i32, i32* %39, align 4
%44 = icmp ne i32 %43, %32
%45 = zext i1 %44 to i32
%spec.select7 = add nuw nsw i32 %sv_0.3, %45
store i32* %39, i32** %sv_1.0.reg2mem
store i32 %spec.select7, i32* %sv_0.4.reg2mem
br label LBL_5
LBL_5:
%46 = ptrtoint i64* %arg2 to i64
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%sv_1.0.reload = load i32*, i32** %sv_1.0.reg2mem
%47 = call i64 @FUNC(i64 %28)
%48 = call i64 @FUNC(i64 %30)
%49 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull %6)
%50 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i64 %46, i64 %49, i64 %2, i64 %arg5, i64 %1)
%51 = bitcast i64* %arg2 to i8*
%52 = call i32 @strlen(i8* %51)
%53 = sext i32 %52 to i64
%54 = load i32, i32* %sv_3, align 4
%55 = add i32 %54, -1
%56 = zext i32 %55 to i64
%57 = icmp eq i64 %53, %56
br i1 %57, label LBL_7, label LBL_6
LBL_6:
%58 = add nsw i32 %sv_0.4.reload, 1
store i32 %58, i32* %sv_0.5.reg2mem
store i64 %2, i64* %rcx.0.reg2mem
br label LBL_10
LBL_7:
%59 = add i64 %49, %53
%60 = inttoptr i64 %59 to i8*
%61 = load i8, i8* %60, align 1
%62 = icmp eq i8 %61, 46
br i1 %62, label LBL_9, label LBL_8
LBL_8:
%63 = add nsw i32 %sv_0.4.reload, 1
store i32 %63, i32* %sv_0.5.reg2mem
store i64 %2, i64* %rcx.0.reg2mem
br label LBL_10
LBL_9:
%64 = inttoptr i64 %49 to i8*
%65 = call i32 @strncasecmp(i8* %51, i8* %64, i32 %55)
%66 = icmp ne i32 %65, 0
%67 = zext i1 %66 to i32
%spec.select8 = add nsw i32 %sv_0.4.reload, %67
store i32 %spec.select8, i32* %sv_0.5.reg2mem
store i64 %49, i64* %rcx.0.reg2mem
br label LBL_10
LBL_10:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.5.reload = load i32, i32* %sv_0.5.reg2mem
%68 = call i64 @FUNC(i64 %49)
%69 = call i64 @FUNC(i64* nonnull %sv_4, i64* null)
%70 = inttoptr i64 %69 to i8*
%71 = bitcast i64* %sv_4 to i8*
%72 = call i32 @strcmp(i8* nonnull %71, i8* %70)
%73 = icmp ne i32 %72, 0
%74 = zext i1 %73 to i32
%spec.select9 = add i32 %sv_0.5.reload, %74
%75 = call i64 @FUNC(i64 %69)
%76 = call i64 @FUNC(i64* nonnull %sv_4)
%77 = trunc i64 %76 to i32
%78 = icmp ne i32 %77, 0
%79 = zext i1 %78 to i32
%sv_0.7 = add i32 %spec.select9, %79
%80 = zext i32 %sv_0.7 to i64
%81 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_3, i64 0, i64 0), i64 %80, i64 %69, i64 %rcx.0.reload, i64 %arg5, i64 %1)
%82 = icmp eq i32 %sv_0.7, 0
%83 = icmp eq i32* %sv_1.0.reload, null
%or.cond = or i1 %83, %82
%84 = ptrtoint i32* %sv_1.0.reload to i64
br i1 %or.cond, label LBL_12, label LBL_11
LBL_11:
%85 = call i64 @FUNC(i64 %84)
br label LBL_13
LBL_12:
store i64 %84, i64* %arg3, align 8
br label LBL_13
LBL_13:
%. = select i1 %82, i64 0, i64 4294967295
ret i64 %.
uselistorder i64 %84, { 1, 0 }
uselistorder i1 %82, { 1, 0 }
uselistorder i64 %69, { 1, 0, 2 }
uselistorder i64 %49, { 2, 0, 3, 1, 4 }
uselistorder i32 %sv_0.4.reload, { 2, 0, 1 }
uselistorder i32* %39, { 0, 2, 1 }
uselistorder i64 %38, { 1, 0 }
uselistorder i32 %sv_0.3, { 0, 2, 1 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32** %sv_1.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.4.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.5.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %rcx.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* null, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @xfree, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*, i64*)* @buffer_get_string, { 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | ReadDCMSignedShort_9448 | ReadDCMSignedShort | 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 = urem i64 %2, 65536
ret i64 %3
} | 0 |
BinRealVul | ndp_msg_check_valid_11835 | ndp_msg_check_valid | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp ult i64 %1, %6
%8 = icmp eq i1 %7, false
%. = zext i1 %8 to i64
ret i64 %.
} | 1 |
BinRealVul | beiscsi_create_wrb_rings_7531 | beiscsi_create_wrb_rings | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.16.reg2mem = alloca i32
%sv_1.17.reg2mem = alloca i64
%sv_0.18.reg2mem = alloca i64
%sv_3.09.reg2mem = alloca i32
%indvars.iv11.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_4 = alloca i32, align 4
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = and i64 %1, 4294967295
%7 = mul nuw nsw i64 %6, 24
%8 = call i64 @FUNC(i64 %7, i64 0)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = add i64 %2, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %13, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%15 = trunc i64 %1 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_13, label LBL_3
LBL_3:
%17 = ptrtoint i64* %arg3 to i64
%18 = ptrtoint i64* %arg2 to i64
%19 = bitcast i64* %rdi to i32*
%20 = add i64 %5, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %5 to i64*
%24 = load i64, i64* %23, align 8
store i64 0, i64* %indvars.iv11.reg2mem
store i32 0, i32* %sv_3.09.reg2mem
store i64 %22, i64* %sv_0.18.reg2mem
store i64 %24, i64* %sv_1.17.reg2mem
store i32 0, i32* %sv_2.16.reg2mem
br label LBL_4
LBL_4:
%sv_2.16.reload = load i32, i32* %sv_2.16.reg2mem
%sv_3.09.reload = load i32, i32* %sv_3.09.reg2mem
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%25 = icmp eq i32 %sv_3.09.reload, 0
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%sv_1.17.reload = load i64, i64* %sv_1.17.reg2mem
%sv_0.18.reload = load i64, i64* %sv_0.18.reg2mem
%26 = mul nuw nsw i64 %indvars.iv11.reload, 24
%27 = add i64 %26, %8
%28 = inttoptr i64 %27 to i64*
store i64 %sv_1.17.reload, i64* %28, align 8
%29 = add i64 %27, 8
%30 = inttoptr i64 %29 to i64*
store i64 %sv_0.18.reload, i64* %30, align 8
%31 = add i64 %27, 16
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i32 %sv_3.09.reload, -1
store i32 %sv_2.16.reload, i32* %sv_2.0.reg2mem
store i64 %sv_1.17.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.18.reload, i64* %sv_0.0.reg2mem
store i32 %33, i32* %storemerge4.reg2mem
br label LBL_7
LBL_6:
%34 = add i32 %sv_2.16.reload, 1
%35 = zext i32 %34 to i64
%36 = mul nuw nsw i64 %35, 24
%37 = add i64 %36, %5
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %37, 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = mul nuw nsw i64 %indvars.iv11.reload, 24
%44 = add i64 %43, %8
%45 = inttoptr i64 %44 to i64*
store i64 %39, i64* %45, align 8
%46 = add i64 %44, 8
%47 = inttoptr i64 %46 to i64*
store i64 %42, i64* %47, align 8
%48 = add i64 %44, 16
%49 = inttoptr i64 %48 to i32*
store i32 0, i32* %49, align 4
store i32 %34, i32* %sv_2.0.reg2mem
store i64 %39, i64* %sv_1.0.reg2mem
store i64 %42, i64* %sv_0.0.reg2mem
store i32 -1, i32* %storemerge4.reg2mem
br label LBL_7
LBL_7:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%50 = load i32, i32* %19, align 8
%51 = zext i32 %50 to i64
%52 = icmp ult i64 %indvars.iv.next12, %51
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i32 %storemerge4.reload, i32* %sv_3.09.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.18.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.17.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.16.reg2mem
br i1 %52, label LBL_4, label LBL_8
LBL_8:
%phitmp = icmp eq i32 %50, 0
br i1 %phitmp, label LBL_13, label LBL_9
LBL_9:
%53 = bitcast i32* %sv_4 to i64*
%54 = add i64 %2, 24
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%55 = mul nuw nsw i64 %indvars.iv.reload, 24
%56 = add i64 %55, %8
%57 = call i64 @FUNC(i64 %2, i64 %56, i64* nonnull %53)
%58 = mul i64 %indvars.iv.reload, 4
%59 = add i64 %58, %18
%60 = call i64 @FUNC(i64 %54, i64* nonnull %53, i64 %59)
%61 = trunc i64 %60 to i32
store i32 %61, i32* %sv_4, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label LBL_12, label LBL_11
LBL_11:
%63 = add i64 %2, 16
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %65, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
%67 = load i32, i32* %sv_4, align 4
%68 = zext i32 %67 to i64
store i64 %68, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%69 = mul i64 %indvars.iv.reload, 8
%70 = inttoptr i64 %59 to i32*
%71 = load i32, i32* %70, align 4
%72 = and i64 %69, 17179869176
%73 = add i64 %72, %17
%74 = inttoptr i64 %73 to i32*
store i32 %71, i32* %74, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%75 = load i32, i32* %19, align 8
%76 = zext i32 %75 to i64
%77 = icmp ult i64 %indvars.iv.next, %76
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %77, label LBL_10, label LBL_13
LBL_13:
%78 = call i64 @FUNC(i64 %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_2.16.reload, { 1, 0 }
uselistorder i64 %8, { 3, 0, 1, 2, 4 }
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i32* %sv_4, { 1, 0, 2 }
uselistorder i64 %2, { 1, 3, 2, 0, 4 }
uselistorder i64* %indvars.iv11.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.09.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.18.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.17.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.16.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 0, { 4, 2, 5, 6, 7, 0, 1, 3 }
uselistorder i64 (i8*, i64, i8*)* @shost_printk, { 1, 0 }
uselistorder i64 24, { 3, 5, 0, 1, 2, 4 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | virtio_delete_queues_4384 | virtio_delete_queues | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.in.reg2mem = alloca i32
%rdi.0.reg2mem = alloca i64
%.reg2mem7 = alloca i32
%rdi.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
store i32 %4, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
store i64 %0, i64* %rdi.11.reg2mem
store i32 0, i32* %.lcssa.in.reg2mem
br i1 %5, label LBL_5, label LBL_2
LBL_2:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%6 = mul i64 %indvars.iv.reload, 8
%7 = add i64 %6, %rdi.11.reload
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i32 %.reload, i32* %.reg2mem7
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i64 %7, %6
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%.pre = load i32, i32* %3, align 4
store i32 %.pre, i32* %.reg2mem7
store i64 %7, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload8 = load i32, i32* %.reg2mem7
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%13 = zext i32 %.reload8 to i64
%14 = icmp ult i64 %indvars.iv.next, %13
store i32 %.reload8, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rdi.0.reload, i64* %rdi.11.reg2mem
store i32 %.reload8, i32* %.lcssa.in.reg2mem
br i1 %14, label LBL_2, label LBL_5
LBL_5:
%.lcssa.in.reload = load i32, i32* %.lcssa.in.reg2mem
%.lcssa = zext i32 %.lcssa.in.reload to i64
store i64 %.lcssa, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload8, { 0, 2, 1 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.11.reg2mem, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kvm_arch_vcpu_init_13802 | kvm_arch_vcpu_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.5.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.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 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%3 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_1 to i64*), i32 1, i32 17, %_IO_FILE* %2)
call void @exit(i32 1)
unreachable
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 64
%6 = inttoptr i64 %5 to i64*
store i64 ptrtoint (i64* @gv_2 to i64), i64* %6, align 8
%7 = call i64 @FUNC(i64 %4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %4)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
br label LBL_6
LBL_5:
%15 = add i64 %4, 16
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
br label LBL_6
LBL_6:
%17 = call i64 @FUNC(i64 0)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 4294967284, i64* %sv_0.5.reg2mem
br i1 %19, label LBL_7, label LBL_20
LBL_7:
%20 = call i64 @FUNC(i64 %17)
%21 = add i64 %4, 8
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %4, i64 %24)
%26 = call i64 @FUNC(i64 %4)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
store i64 %26, i64* %sv_0.4.reg2mem
br i1 %28, label LBL_19, label LBL_8
LBL_8:
%29 = call i64 @FUNC(i64 %4)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_10, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %4)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %32, i64* %sv_0.0.reg2mem
store i64 %32, i64* %sv_0.3.reg2mem
br i1 %35, label LBL_11, label LBL_18
LBL_10:
%36 = call i64 @FUNC(i64* nonnull @gv_3)
store i64 %26, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%37 = call i64 @FUNC(i64 128, i64 0)
%38 = add i64 %4, 24
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = icmp eq i64 %37, 0
%41 = icmp eq i1 %40, false
store i64 4294967284, i64* %sv_0.2.reg2mem
br i1 %41, label LBL_12, label LBL_17
LBL_12:
%42 = add i64 %4, 32
%43 = inttoptr i64 %42 to i32*
store i32 4, i32* %43, align 4
%44 = add i64 %4, 40
%45 = call i64 @FUNC(i64 %44, i64 0)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %47, label LBL_16, label LBL_13
LBL_13:
%48 = call i64 @FUNC(i64 %4)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_15, label LBL_14
LBL_14:
%52 = add i64 %4, 48
%53 = inttoptr i64 %52 to i64*
store i64 0, i64* %53, align 8
%54 = add i64 %4, 56
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = call i64 @FUNC(i64 %4)
%57 = call i64 @FUNC(i64 %4)
store i64 0, i64* %storemerge.reg2mem
br label LBL_21
LBL_15:
%58 = inttoptr i64 %44 to i64*
%59 = load i64, i64* %58, align 8
%60 = call i64 @FUNC(i64 %59)
store i64 %48, i64* %sv_0.1.reg2mem
br label LBL_16
LBL_16:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%61 = load i64, i64* %39, align 8
%62 = call i64 @FUNC(i64 %61)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_17
LBL_17:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%63 = call i64 @FUNC(i64 %4)
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br label LBL_18
LBL_18:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
%64 = call i64 @FUNC(i64 %4)
store i64 %sv_0.3.reload, i64* %sv_0.4.reg2mem
br label LBL_19
LBL_19:
%sv_0.4.reload = load i64, i64* %sv_0.4.reg2mem
%65 = load i64, i64* %22, align 8
%66 = call i64 @FUNC(i64 %65)
store i64 %sv_0.4.reload, i64* %sv_0.5.reg2mem
br label LBL_20
LBL_20:
%sv_0.5.reload = load i64, i64* %sv_0.5.reg2mem
%67 = and i64 %sv_0.5.reload, 4294967295
store i64 %67, i64* %storemerge.reg2mem
br label LBL_21
LBL_21:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %26, { 1, 0, 2 }
uselistorder i64 %4, { 8, 9, 3, 4, 5, 6, 7, 10, 11, 12, 2, 13, 14, 15, 16, 0, 17, 1, 19, 18 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.5.reg2mem, { 0, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 (i64)* @irqchip_in_kernel, { 1, 0 }
uselistorder i64 0, { 0, 12, 6, 13, 7, 14, 8, 1, 2, 3, 4, 5, 9, 10, 11 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
} | 0 |
BinRealVul | dimC_Read_12747 | dimC_Read | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8, align 1
%sv_2 = alloca i64, align 8
%2 = ptrtoint i64* %sv_2 to i64
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i8
%5 = bitcast i64* %arg1 to i8*
store i8 %4, i8* %5, align 1
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i8
%8 = add i64 %1, 1
%9 = inttoptr i64 %8 to i8*
store i8 %7, i8* %9, align 1
%10 = call i64 @FUNC(i64 %0, i64 4)
%11 = trunc i64 %10 to i32
%12 = add i64 %1, 4
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = call i64 @FUNC(i64 %0, i64 1)
%15 = trunc i64 %14 to i32
%16 = add i64 %1, 8
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = call i64 @FUNC(i64 %0, i64 1)
%19 = trunc i64 %18 to i32
%20 = add i64 %1, 12
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = call i64 @FUNC(i64 %0, i64 2)
%23 = trunc i64 %22 to i32
%24 = add i64 %1, 16
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = call i64 @FUNC(i64 %1, i64 3)
store i8 0, i8* %sv_1, align 1
%27 = add i64 %2, -1040
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%28 = call i64 @FUNC(i64 %0)
%29 = zext i32 %sv_0.0.reload to i64
%30 = trunc i64 %28 to i8
%31 = add i64 %27, %29
%32 = inttoptr i64 %31 to i8*
store i8 %30, i8* %32, align 1
%33 = icmp eq i8 %30, 0
%34 = add i32 %sv_0.0.reload, 1
store i32 %34, i32* %sv_0.0.reg2mem
br i1 %33, label LBL_2, label LBL_1
LBL_2:
%35 = call i64 @FUNC(i64 %1, i64 %29)
%36 = call i64 @FUNC(i8* nonnull %sv_1)
%37 = add i64 %1, 24
%38 = inttoptr i64 %37 to i64*
store i64 %36, i64* %38, align 8
store i8 0, i8* %sv_1, align 1
store i32 0, i32* %sv_0.1.reg2mem
br label LBL_3
LBL_3:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%39 = call i64 @FUNC(i64 %0)
%40 = zext i32 %sv_0.1.reload to i64
%41 = trunc i64 %39 to i8
%42 = add i64 %27, %40
%43 = inttoptr i64 %42 to i8*
store i8 %41, i8* %43, align 1
%44 = icmp eq i8 %41, 0
%45 = add i32 %sv_0.1.reload, 1
store i32 %45, i32* %sv_0.1.reg2mem
br i1 %44, label LBL_4, label LBL_3
LBL_4:
%46 = call i64 @FUNC(i64 %1, i64 %40)
%47 = call i64 @FUNC(i8* nonnull %sv_1)
%48 = add i64 %1, 32
%49 = inttoptr i64 %48 to i64*
store i64 %47, i64* %49, align 8
ret i64 0
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i8* %sv_1, { 0, 2, 1, 3 }
uselistorder i64 %1, { 1, 0, 3, 2, 4, 5, 6, 7, 8, 9 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i8*)* @gf_strdup, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 1 }
uselistorder i64 (i64, i64)* @ISOM_DECREASE_SIZE, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 3, 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64)* @gf_bs_read_u8, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | xwma_read_header_120 | xwma_read_header | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge229.reg2mem = alloca i32
%rcx.3.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%.reg2mem = alloca i32
%storemerge31.reg2mem = alloca i32
%sv_1.033.reg2mem = alloca i32
%sv_0.034.reg2mem = alloca i64
%rcx.035.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 1179011410
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_33
LBL_1:
%10 = call i64 @FUNC(i64 %3)
%11 = call i64 @FUNC(i64 %3)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 1095587672
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_33
LBL_2:
%14 = call i64 @FUNC(i64 %3)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 544501094
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_33
LBL_3:
%17 = call i64 @FUNC(i64 %3)
%18 = call i64 @FUNC(i64 %3, i64 0)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_33
LBL_4:
%21 = inttoptr i64 %18 to i64*
%22 = load i64, i64* %21, align 8
%sext7 = mul i64 %17, 4294967296
%23 = ashr exact i64 %sext7, 32
%24 = call i64 @FUNC(i64 %3, i64 %22, i64 %23)
%25 = add i64 %18, 8
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = load i64, i64* %21, align 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 353
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = add i64 %27, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %29 to i64
%35 = zext i32 %33 to i64
%36 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %35, i64 %34, i64 %1)
%37 = call i64 @FUNC(i64 %3, i64 0)
store i64 %34, i64* %r8.0.reg2mem
br label LBL_10
LBL_6:
%38 = add i64 %27, 8
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = zext i32 %40 to i64
%43 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %42, i64 %2, i64 %1)
%44 = call i64 @FUNC(i64 %3, i64 0)
br label LBL_10
LBL_8:
store i32 6, i32* %39, align 4
%45 = load i64, i64* %21, align 8
%46 = call i64 @FUNC(i64 38)
%47 = add i64 %45, 16
%48 = inttoptr i64 %47 to i64*
store i64 %46, i64* %48, align 8
%49 = load i64, i64* %21, align 8
%50 = add i64 %49, 16
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = icmp eq i64 %52, 0
%54 = icmp eq i1 %53, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %54, label LBL_9, label LBL_33
LBL_9:
%55 = add i64 %52, 4
%56 = inttoptr i64 %55 to i8*
store i8 31, i8* %56, align 1
br label LBL_10
LBL_10:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%57 = load i64, i64* %21, align 8
%58 = add i64 %57, 24
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %18, i64 64, i64 1, i64 %61)
%63 = bitcast i64* %rdi to i32*
%64 = load i32, i32* %63, align 8
%65 = icmp eq i32 %64, 0
store i64 %61, i64* %rcx.035.reg2mem
store i64 0, i64* %sv_0.034.reg2mem
store i32 0, i32* %sv_1.033.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %65, label LBL_11, label LBL_33
LBL_11:
%sv_1.033.reload = load i32, i32* %sv_1.033.reg2mem
%sv_0.034.reload = load i64, i64* %sv_0.034.reg2mem
%66 = call i64 @FUNC(i64 %3)
%67 = trunc i64 %66 to i32
%68 = call i64 @FUNC(i64 %3)
%69 = trunc i64 %68 to i32
%70 = icmp eq i32 %67, 1635017060
br i1 %70, label LBL_23, label LBL_12
LBL_12:
%rcx.035.reload = load i64, i64* %rcx.035.reg2mem
%71 = icmp eq i32 %67, 1935962212
%72 = icmp eq i1 %71, false
store i32 0, i32* %.reg2mem
store i32 %sv_1.033.reload, i32* %sv_1.1.reg2mem
store i64 %sv_0.034.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.035.reload, i64* %rcx.3.reg2mem
br i1 %72, label LBL_22, label LBL_13
LBL_13:
%73 = icmp eq i64 %sv_0.034.reload, 0
br i1 %73, label LBL_15, label LBL_14
LBL_14:
%74 = call i64 @FUNC(i64 %3, i64 2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 %rcx.035.reload, i64 %r8.0.reload, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_15:
%75 = urem i32 %69, 4
%76 = icmp eq i32 %75, 0
%.pre63 = mul i64 %68, 4294967296
%.pre64 = ashr exact i64 %.pre63, 32
br i1 %76, label LBL_17, label LBL_16
LBL_16:
%77 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_3, i64 0, i64 0), i64 %.pre64, i64 %r8.0.reload, i64 %1)
br label LBL_17
LBL_17:
%78 = sdiv i64 %.pre64, 8
%79 = trunc i64 %78 to i32
%.off = add i32 %79, -1
%80 = icmp ult i32 %.off, 536870910
br i1 %80, label LBL_19, label LBL_18
LBL_18:
%81 = call i64 @FUNC(i64 %3, i64 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0), i64 %.pre64, i64 %r8.0.reload, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_19:
%82 = call i64 @FUNC(i64 0)
%83 = icmp eq i64 %82, 0
%84 = icmp eq i1 %83, false
store i32 0, i32* %storemerge31.reg2mem
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %84, label LBL_20, label LBL_33
LBL_20:
%storemerge31.reload = load i32, i32* %storemerge31.reg2mem
%85 = call i64 @FUNC(i64 %3)
%86 = sext i32 %storemerge31.reload to i64
%87 = mul i64 %86, 4
%88 = add i64 %87, %82
%89 = trunc i64 %85 to i32
%90 = inttoptr i64 %88 to i32*
store i32 %89, i32* %90, align 4
%91 = add nuw i32 %storemerge31.reload, 1
%exitcond59 = icmp eq i32 %91, %79
store i32 %91, i32* %storemerge31.reg2mem
br i1 %exitcond59, label LBL_21, label LBL_20
LBL_21:
%.pre.pre = load i32, i32* %63, align 8
store i32 %.pre.pre, i32* %.reg2mem
store i32 %79, i32* %sv_1.1.reg2mem
store i64 %82, i64* %sv_0.1.reg2mem
store i64 %87, i64* %rcx.3.reg2mem
br label LBL_22
LBL_22:
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%sext65 = mul i64 %68, 4294967296
%92 = ashr exact i64 %sext65, 32
%93 = call i64 @FUNC(i64 %3, i64 %92)
%94 = icmp eq i32 %.reload, 0
store i64 %rcx.3.reload, i64* %rcx.035.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.034.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.033.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %94, label LBL_11, label LBL_33
LBL_23:
%95 = icmp slt i32 %69, 0
%96 = icmp eq i1 %95, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %96, label LBL_24, label LBL_33
LBL_24:
%97 = icmp eq i32 %69, 0
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_26, label LBL_25
LBL_25:
%99 = inttoptr i64 %6 to i64*
store i64 9223372036854775807, i64* %99, align 8
br label LBL_27
LBL_26:
%100 = call i64 @FUNC(i64 %3)
%sext3 = mul i64 %100, 4294967296
%101 = ashr exact i64 %sext3, 32
%sext12 = mul i64 %68, 4294967296
%102 = ashr exact i64 %sext12, 32
%103 = add nsw i64 %101, %102
%104 = inttoptr i64 %6 to i64*
store i64 %103, i64* %104, align 8
br label LBL_27
LBL_27:
%105 = icmp eq i64 %sv_0.034.reload, 0
%106 = icmp eq i32 %sv_1.033.reload, 0
%or.cond6 = or i1 %105, %106
%107 = load i64, i64* %21, align 8
br i1 %or.cond6, label LBL_30, label LBL_28
LBL_28:
%108 = add i64 %107, 28
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = add i64 %107, 32
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = mul i32 %113, %110
%115 = ashr i32 %114, 3
%116 = add i32 %sv_1.033.reload, -1
%117 = zext i32 %116 to i64
%118 = mul i64 %117, 4
%119 = add i64 %118, %sv_0.034.reload
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = udiv i32 %121, %115
%123 = add i64 %18, 12
%124 = inttoptr i64 %123 to i32*
store i32 %122, i32* %124, align 4
%125 = call i64 @FUNC(i64 %3)
%sext = mul i64 %125, 4294967296
%126 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge229.reg2mem
br label LBL_29
LBL_29:
%storemerge229.reload = load i32, i32* %storemerge229.reg2mem
%127 = load i64, i64* %21, align 8
%128 = add i64 %127, 36
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = sext i32 %storemerge229.reload to i64
%132 = mul i64 %131, 4
%133 = add i64 %132, %sv_0.034.reload
%134 = inttoptr i64 %133 to i32*
%135 = load i32, i32* %134, align 4
%136 = udiv i32 %135, %115
%137 = zext i32 %136 to i64
%138 = add nuw i32 %storemerge229.reload, 1
%139 = mul i32 %130, %138
%140 = sext i32 %139 to i64
%141 = add nsw i64 %126, %140
%142 = call i64 @FUNC(i64 %18, i64 %141, i64 %137, i32 %130, i64 0, i64 1)
%exitcond = icmp eq i32 %138, %sv_1.033.reload
store i32 %138, i32* %storemerge229.reg2mem
br i1 %exitcond, label LBL_32, label LBL_29
LBL_30:
%143 = add i64 %107, 40
%144 = inttoptr i64 %143 to i64*
%145 = load i64, i64* %144, align 8
%146 = icmp eq i64 %145, 0
br i1 %146, label LBL_32, label LBL_31
LBL_31:
%sext11 = mul i64 %68, 4294967296
%147 = ashr exact i64 %sext11, 29
%148 = add i64 %107, 24
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = sext i32 %150 to i64
%152 = mul i64 %147, %151
%153 = udiv i64 %152, %145
%154 = trunc i64 %153 to i32
%155 = add i64 %18, 12
%156 = inttoptr i64 %155 to i32*
store i32 %154, i32* %156, align 4
br label LBL_32
LBL_32:
%157 = call i64 @FUNC(i64 %sv_0.034.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_33:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %138, { 0, 2, 1 }
uselistorder i32 %130, { 1, 0 }
uselistorder i64 %107, { 0, 3, 2, 1 }
uselistorder i64 %.pre64, { 1, 0, 2 }
uselistorder i64 %rcx.035.reload, { 1, 0 }
uselistorder i32 %69, { 1, 2, 0 }
uselistorder i64 %sv_0.034.reload, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 %sv_1.033.reload, { 1, 3, 2, 0 }
uselistorder i64 %18, { 2, 0, 1, 3, 4, 5, 6 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %3, { 9, 10, 8, 7, 6, 5, 4, 12, 11, 3, 2, 1, 0, 13, 14, 15, 16, 18, 17, 19, 20 }
uselistorder i64 %1, { 4, 3, 2, 1, 0 }
uselistorder i64* %rcx.035.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.034.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.033.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge31.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge229.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 12, 4, 1, 2, 11, 10, 3, 5, 6, 7, 8, 9 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @avio_tell, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64, i64)* @av_log_ask_for_sample, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 0, 5, 6, 7, 10, 2, 8, 1, 3, 4, 11, 12, 9 }
uselistorder i64 32, { 5, 6, 2, 4, 0, 1, 3 }
uselistorder i64 4294967295, { 2, 0, 7, 6, 1, 3, 4, 5 }
uselistorder i64 (i64)* @avio_rl32, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_33, { 9, 3, 0, 1, 10, 11, 2, 4, 5, 6, 7, 8 }
uselistorder label LBL_32, { 1, 2, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | set_baud_13067 | set_baud | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = or i64 %1, %arg2
%4 = trunc i64 %3 to i32
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
ret i64 %2
} | 1 |
BinRealVul | arm1026_initfn_3313 | arm1026_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %1, 32
%3 = inttoptr i64 %2 to i64*
store i64 ptrtoint ([12 x i8]* @gv_0 to i64), i64* %3, align 8
%4 = call i64 @FUNC(i64 %1, i64 1)
%5 = call i64 @FUNC(i64 %1, i64 2)
%6 = call i64 @FUNC(i64 %1, i64 3)
%7 = call i64 @FUNC(i64 %1, i64 4)
%8 = call i64 @FUNC(i64 %1, i64 5)
%9 = call i64 @FUNC(i64 %1, i64 6)
%10 = add i64 %1, 40
%11 = inttoptr i64 %10 to i32*
store i32 1090953826, i32* %11, align 4
%12 = add i64 %1, 44
%13 = inttoptr i64 %12 to i32*
store i32 1090588832, i32* %13, align 4
%14 = add i64 %1, 48
%15 = inttoptr i64 %14 to i32*
store i32 31269074, i32* %15, align 4
%16 = add i64 %1, 52
%17 = inttoptr i64 %16 to i32*
store i32 589944, i32* %17, align 4
%18 = add i64 %1, 56
%19 = inttoptr i64 %18 to i32*
store i32 1, i32* %19, align 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0, align 8
%20 = bitcast i8** %sv_0 to i64*
%21 = call i64 @FUNC(i64 %1, i64* nonnull %20)
ret i64 %21
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i64 (i64, i64)* @set_feature, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | dvb_ca_en50221_io_open_7150 | dvb_ca_en50221_io_open | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem4 = alloca i32
%storemerge1.reg2mem = alloca i32
%.reg2mem2 = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg2 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
%8 = add i64 %6, 16
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %3 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %8)
store i64 4294967277, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%13 = add i64 %6, 56
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %8)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%23 = ptrtoint i64* %arg1 to i64
%24 = call i64 @FUNC(i64 %23, i64 %6)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_5, label LBL_7
LBL_5:
%28 = add i64 %6, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_12, label LBL_6
LBL_6:
%32 = add i64 %6, 64
%33 = inttoptr i64 %32 to i64*
store i32 %30, i32* %.reg2mem
store i64 0, i64* %.reg2mem2
store i32 0, i32* %storemerge1.reg2mem
br label LBL_8
LBL_7:
%34 = load i64, i64* %14, align 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i64 @FUNC(i64 %36)
%38 = call i64 @FUNC(i64 %8)
%39 = and i64 %24, 4294967295
store i64 %39, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload3 = load i64, i64* %.reg2mem2
%.reload = load i32, i32* %.reg2mem
%40 = load i64, i64* %33, align 8
%41 = mul i64 %.reload3, 16
%42 = add i64 %40, %41
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 1
%46 = icmp eq i1 %45, false
store i32 %.reload, i32* %.reg2mem4
br i1 %46, label LBL_11, label LBL_9
LBL_9:
%47 = add i64 %42, 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = icmp eq i64 %49, 0
%51 = icmp eq i1 %50, false
store i32 %.reload, i32* %.reg2mem4
br i1 %51, label LBL_11, label LBL_10
LBL_10:
%52 = call i64 @FUNC(i64 %47)
%.pre = load i32, i32* %29, align 4
store i32 %.pre, i32* %.reg2mem4
br label LBL_11
LBL_11:
%.reload5 = load i32, i32* %.reg2mem4
%53 = add i32 %storemerge1.reload, 1
%54 = zext i32 %.reload5 to i64
%55 = sext i32 %53 to i64
%56 = icmp slt i64 %55, %54
store i32 %.reload5, i32* %.reg2mem
store i64 %55, i64* %.reg2mem2
store i32 %53, i32* %storemerge1.reg2mem
br i1 %56, label LBL_8, label LBL_12
LBL_12:
%57 = add i64 %6, 4
%58 = inttoptr i64 %57 to i32*
store i32 1, i32* %58, align 4
%59 = call i64 @FUNC(i64 %6)
%60 = call i64 @FUNC(i64 %6)
%61 = call i64 @FUNC(i64 %6)
%62 = call i64 @FUNC(i64 %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload5, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i64 %8, { 3, 2, 1, 0, 4 }
uselistorder i64 %6, { 2, 1, 0, 4, 5, 3, 6, 7, 8 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem2, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem4, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @mutex_unlock, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | epaf_read_header_1986 | epaf_read_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.in.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 4)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp ult i32 %6, 2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_15
LBL_2:
%8 = icmp eq i32 %6, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 %0)
store i64 %9, i64* %sv_1.0.in.reg2mem
store i64 %10, i64* %sv_0.0.in.reg2mem
store i64 %11, i64* %storemerge1.in.reg2mem
br label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64 %0)
%13 = call i64 @FUNC(i64 %0)
%14 = call i64 @FUNC(i64 %0)
store i64 %12, i64* %sv_1.0.in.reg2mem
store i64 %13, i64* %sv_0.0.in.reg2mem
store i64 %14, i64* %storemerge1.in.reg2mem
br label LBL_5
LBL_5:
%storemerge1.in.reload = load i64, i64* %storemerge1.in.reg2mem
%storemerge1 = trunc i64 %storemerge1.in.reload to i32
%storemerge1.off = add i32 %storemerge1, -1
%15 = icmp ugt i32 %storemerge1.off, 7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_15, label LBL_6
LBL_6:
%sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem
%sv_1.0 = trunc i64 %sv_1.0.in.reload to i32
%16 = icmp eq i32 %sv_1.0, 0
%17 = icmp slt i32 %sv_1.0, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_7, label LBL_15
LBL_7:
%21 = call i64 @FUNC(i64 %0, i64 0)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %23, label LBL_8, label LBL_15
LBL_8:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%24 = inttoptr i64 %21 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i32*
store i32 1, i32* %26, align 4
%27 = load i64, i64* %24, align 8
%28 = add i64 %27, 4
%29 = inttoptr i64 %28 to i32*
store i32 %storemerge1, i32* %29, align 4
%30 = load i64, i64* %24, align 8
%31 = add i64 %30, 8
%32 = inttoptr i64 %31 to i32*
store i32 %sv_1.0, i32* %32, align 4
%33 = icmp eq i32 %sv_0.0, 2
br i1 %33, label LBL_12, label LBL_9
LBL_9:
%34 = icmp sgt i32 %sv_0.0, 2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_15, label LBL_10
LBL_10:
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %sv_0.0, label LBL_15 [
i32 0, label LBL_11
i32 1, label LBL_13
]
LBL_11:
%. = select i1 %8, i32 3, i32 2
%35 = load i64, i64* %24, align 8
%36 = add i64 %35, 12
%37 = inttoptr i64 %36 to i32*
store i32 %., i32* %37, align 4
br label LBL_14
LBL_12:
%38 = load i64, i64* %24, align 8
%39 = add i64 %38, 12
%40 = inttoptr i64 %39 to i32*
store i32 4, i32* %40, align 4
br label LBL_14
LBL_13:
%41 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%42 = load i64, i64* %24, align 8
%43 = add i64 %42, 12
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 %46)
%48 = trunc i64 %47 to i32
%49 = add i64 %42, 16
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = load i64, i64* %24, align 8
%52 = add i64 %51, 16
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %51, 4
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = mul i32 %57, %54
%59 = sdiv i32 %58, 128
%60 = add i64 %51, 20
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = load i64, i64* %24, align 8
%63 = add i64 %62, 8
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %21, i64 64, i64 1, i64 %66)
%68 = call i64 @FUNC(i64 %21, i64 2024)
%69 = trunc i64 %68 to i32
%70 = icmp slt i32 %69, 0
%71 = icmp eq i1 %70, false
%.5 = select i1 %71, i64 0, i64 4294967295
store i64 %.5, 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 i64* %24, { 1, 2, 3, 4, 0, 5, 6, 7 }
uselistorder i32 %sv_1.0, { 2, 0, 1 }
uselistorder i32 %storemerge1, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %0, { 0, 1, 4, 3, 2, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %sv_1.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5, 7, 6, 8, 9 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @avio_rb32, { 2, 1, 0 }
uselistorder i32 2, { 1, 3, 2, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64)* @avio_rl32, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder label LBL_15, { 0, 2, 3, 1, 4, 6, 5, 7, 8 }
} | 0 |
BinRealVul | ff_clear_fixed_vector_3217 | ff_clear_fixed_vector | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa4.reg2mem = alloca i64
%xmm0.1.reg2mem = alloca i128
%.reg2mem19 = alloca i32
%.reg2mem17 = alloca i32
%xmm0.0.reg2mem = alloca i128
%sv_0.0.reg2mem = alloca i32
%xmm0.25.reg2mem = alloca i128
%storemerge6.reg2mem = alloca i32
%.reg2mem15 = alloca i64
%.reg2mem13 = alloca i32
%.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa4.reg2mem
br i1 %4, label LBL_7, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = bitcast i64* %rsi to i32*
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
%9 = add i64 %5, 16
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %5, 20
%12 = inttoptr i64 %11 to i32*
%13 = ptrtoint i32* %arg1 to i64
%14 = trunc i64 %arg3 to i32
%.pre = load i32, i32* %12, align 4
store i32 %2, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem13
store i64 0, i64* %.reg2mem15
store i32 0, i32* %storemerge6.reg2mem
br label LBL_2
LBL_2:
%xmm0.25.reload = load i128, i128* %xmm0.25.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload14 = load i32, i32* %.reg2mem13
%.reload = load i32, i32* %.reg2mem
%15 = icmp slt i32 %.reload14, 1
store i32 %.reload, i32* %.reg2mem17
store i32 %.reload14, i32* %.reg2mem19
store i128 %xmm0.25.reload, i128* %xmm0.1.reg2mem
br i1 %15, label LBL_6, label LBL_3
LBL_3:
%.reload16 = load i64, i64* %.reg2mem15
%16 = load i32, i32* %10, align 4
%17 = urem i32 %storemerge6.reload, 32
%18 = shl i32 1, %17
%19 = and i32 %16, %18
%20 = icmp eq i32 %19, 0
%21 = load i64, i64* %8, align 8
%22 = mul i64 %.reload16, 4
%23 = add i64 %21, %22
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i1 %20, false
%27 = icmp eq i1 %26, false
store i32 %25, i32* %sv_0.0.reg2mem
store i128 %xmm0.25.reload, i128* %xmm0.0.reg2mem
br label LBL_4
LBL_4:
%xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%28 = sext i32 %sv_0.0.reload to i64
%29 = mul i64 %28, 4
%30 = add i64 %29, %13
%31 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload)
%32 = call i64 @FUNC(i128 %31)
%33 = trunc i64 %32 to i32
%34 = inttoptr i64 %30 to i32*
store i32 %33, i32* %34, align 4
%35 = load i32, i32* %12, align 4
%36 = add i32 %35, %sv_0.0.reload
%37 = icmp slt i32 %36, %14
%or.cond = icmp eq i1 %27, %37
store i32 %36, i32* %sv_0.0.reg2mem
store i128 %31, i128* %xmm0.0.reg2mem
br i1 %or.cond, label LBL_4, label LBL_5
LBL_5:
%.pre8 = load i32, i32* %6, align 8
store i32 %.pre8, i32* %.reg2mem17
store i32 %35, i32* %.reg2mem19
store i128 %31, i128* %xmm0.1.reg2mem
br label LBL_6
LBL_6:
%xmm0.1.reload = load i128, i128* %xmm0.1.reg2mem
%.reload20 = load i32, i32* %.reg2mem19
%.reload18 = load i32, i32* %.reg2mem17
%38 = add i32 %storemerge6.reload, 1
%39 = zext i32 %.reload18 to i64
%40 = sext i32 %38 to i64
%41 = icmp slt i64 %40, %39
store i32 %.reload18, i32* %.reg2mem
store i32 %.reload20, i32* %.reg2mem13
store i64 %40, i64* %.reg2mem15
store i32 %38, i32* %storemerge6.reg2mem
store i128 %xmm0.1.reload, i128* %xmm0.25.reg2mem
store i64 %39, i64* %.lcssa4.reg2mem
br i1 %41, label LBL_2, label LBL_7
LBL_7:
%.lcssa4.reload = load i64, i64* %.lcssa4.reg2mem
ret i64 %.lcssa4.reload
uselistorder i32 %.reload18, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i128 %xmm0.25.reload, { 1, 0 }
uselistorder i32* %12, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem13, { 1, 0, 2 }
uselistorder i64* %.reg2mem15, { 1, 0, 2 }
uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.25.reg2mem, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm0.0.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | buffer_append_14534 | buffer_append | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = add i64 %2, %arg1
%4 = inttoptr i64 %3 to i64*
%5 = inttoptr i64 %arg2 to i64*
%6 = trunc i64 %arg3 to i32
%7 = call i64* @memcpy(i64* %4, i64* %5, i32 %6)
%8 = load i64, i64* %1, align 8
%9 = add i64 %8, %arg3
store i64 %9, i64* %1, align 8
ret i64 %arg1
uselistorder i64 %arg1, { 1, 0, 2 }
} | 1 |
BinRealVul | O_getOwnPropertyDescriptor_7146 | O_getOwnPropertyDescriptor | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre-phi2.reg2mem = alloca i32*
%.pre-phi5.reg2mem = alloca i64*
%0 = call i64 @FUNC(i64 %arg1, i64 1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%5 = call i64 @FUNC(i64 %arg1, i64 1)
%6 = call i64 @FUNC(i64 %arg1, i64 2)
%7 = call i64 @FUNC(i64 %arg1, i64 %5, i64 %6)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %arg1)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_14
LBL_4:
%11 = call i64 @FUNC(i64 %arg1)
%12 = inttoptr i64 %7 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_7, label LBL_5
LBL_5:
%16 = add i64 %7, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_8, label LBL_6
LBL_6:
%21 = add i64 %7, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %arg1, i64 %23)
%25 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 0)
%26 = add i64 %7, 24
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = urem i32 %28, 2
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i64
%32 = call i64 @FUNC(i64 %arg1, i64 %31)
%33 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 0)
store i32* %27, i32** %.pre-phi2.reg2mem
br label LBL_13
LBL_7:
%34 = call i64 @FUNC(i64 %arg1, i64 %13)
%.pre3 = add i64 %7, 8
%.pre4 = inttoptr i64 %.pre3 to i64*
store i64* %.pre4, i64** %.pre-phi5.reg2mem
br label LBL_9
LBL_8:
%35 = call i64 @FUNC(i64 %arg1)
store i64* %17, i64** %.pre-phi5.reg2mem
br label LBL_9
LBL_9:
%.pre-phi5.reload = load i64*, i64** %.pre-phi5.reg2mem
%36 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i64 0)
%37 = load i64, i64* %.pre-phi5.reload, align 8
%38 = icmp eq i64 %37, 0
br i1 %38, label LBL_11, label LBL_10
LBL_10:
%39 = call i64 @FUNC(i64 %arg1, i64 %37)
br label LBL_12
LBL_11:
%40 = call i64 @FUNC(i64 %arg1)
br label LBL_12
LBL_12:
%41 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 0)
%.pre = add i64 %7, 24
%.pre1 = inttoptr i64 %.pre to i32*
store i32* %.pre1, i32** %.pre-phi2.reg2mem
br label LBL_13
LBL_13:
%.pre-phi2.reload = load i32*, i32** %.pre-phi2.reg2mem
%42 = load i32, i32* %.pre-phi2.reload, align 4
%43 = and i32 %42, 2
%44 = icmp eq i32 %43, 0
%45 = zext i1 %44 to i64
%46 = call i64 @FUNC(i64 %arg1, i64 %45)
%47 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i64 0)
%48 = load i32, i32* %.pre-phi2.reload, align 4
%49 = and i32 %48, 4
%50 = icmp eq i32 %49, 0
%51 = zext i1 %50 to i64
%52 = call i64 @FUNC(i64 %arg1, i64 %51)
%53 = call i64 @FUNC(i64 %arg1, i64 4294967294, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_6, i64 0, i64 0), i64 0)
store i64 %53, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 1, 0, 2, 5, 4, 3, 6 }
uselistorder i64** %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi2.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @js_pushobject, { 1, 0 }
uselistorder i64 (i64, i64)* @js_pushboolean, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64)* @js_defproperty, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @js_pushundefined, { 2, 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder i64 %arg1, { 6, 7, 8, 9, 10, 11, 5, 12, 13, 4, 0, 1, 2, 3, 14, 15, 16, 17, 18, 19, 20 }
} | 0 |
reposvul_c_test | dhcps_send_ack_295 | dhcps_send_ack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = load i64, i64* @gv_0, align 8
%3 = add i64 %2, 4
%4 = call i64 @FUNC(i64 %3, i64 5)
%5 = call i64 @FUNC(i64 %4)
%6 = load i64, i64* @gv_1, align 8
%7 = load i64, i64* @gv_2, align 8
%8 = call i64 @FUNC(i64 %7, i64 %0, i64* nonnull @gv_3, i64 68, i64 %6)
ret i64 %8
} | 1 |
BinRealVul | tenc_dump_7306 | tenc_dump | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%5 = and i64 %1, 4294967295
%6 = inttoptr i64 %arg2 to %_IO_FILE*
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %5)
%8 = add i64 %arg1, 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 i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %12)
br label LBL_4
LBL_3:
%14 = add i64 %arg1, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0), i64 %17)
%19 = load i32, i32* %15, align 4
%20 = add i64 %arg1, 12
%21 = call i64 @FUNC(i64 %arg2, i64 %20, i32 %19)
%22 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_4 to i64*), i32 1, i32 8, %_IO_FILE* %6)
br label LBL_4
LBL_4:
%23 = add i64 %arg1, 28
%24 = call i64 @FUNC(i64 %arg2, i64 %23, i32 16)
%25 = add i64 %arg1, 44
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = add i64 %arg1, 52
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %31 to i64
%33 = add i64 %arg1, 48
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = zext i32 %35 to i64
%37 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_5, i64 0, i64 0), i64 %36, i64 %32)
br label LBL_6
LBL_6:
%38 = call i32 @fwrite(i64* bitcast ([4 x i8]* @gv_6 to i64*), i32 1, i32 3, %_IO_FILE* %6)
%39 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %arg2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder %_IO_FILE* %6, { 2, 1, 3, 4, 0, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @dump_data_hex, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 4, 2, 0, 6, 5, 3 }
uselistorder i64 %arg2, { 0, 1, 2, 4, 3 }
uselistorder i64 %arg1, { 2, 1, 0, 4, 3, 5, 7, 6, 8, 9 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | read32_19278 | read32 | define i64 @FUNC(i32* %arg1, i32 %arg2, i32 %arg3, i8 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = add i32 %arg3, 3
%1 = zext i32 %0 to i64
%2 = sext i32 %arg2 to i64
%3 = icmp sgt i64 %2, %1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = sext i32 %arg3 to i64
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %4, %5
%7 = inttoptr i64 %6 to i8*
%8 = icmp eq i8 %arg4, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %6, 3
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i64
%13 = mul i64 %12, 16777216
%14 = add i64 %6, 2
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i64
%18 = mul i64 %17, 65536
%19 = or i64 %18, %13
%20 = add i64 %6, 1
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i64
%24 = mul i64 %23, 256
%25 = or i64 %19, %24
%26 = load i8, i8* %7, align 1
%27 = zext i8 %26 to i64
%28 = or i64 %25, %27
store i64 %28, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%29 = load i8, i8* %7, align 1
%30 = zext i8 %29 to i64
%31 = mul i64 %30, 16777216
%32 = add i64 %6, 1
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = zext i8 %34 to i64
%36 = mul i64 %35, 65536
%37 = or i64 %36, %31
%38 = add i64 %6, 2
%39 = inttoptr i64 %38 to i8*
%40 = load i8, i8* %39, align 1
%41 = zext i8 %40 to i64
%42 = mul i64 %41, 256
%43 = or i64 %37, %42
%44 = add i64 %6, 3
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = zext i8 %46 to i64
%48 = or i64 %43, %47
store i64 %48, 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 i8* %7, { 1, 0 }
uselistorder i64 %6, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | bpf_obj_do_get_13550 | bpf_obj_do_get | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i64 1, i64* nonnull %sv_1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %3, 4294967295
%7 = call i64 @FUNC(i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%8 = load i64, i64* %sv_1, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %9, i64 2)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_7, label LBL_3
LBL_3:
%14 = ptrtoint i64* %arg2 to i64
%15 = call i64 @FUNC(i64 %9, i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 %15, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_7, label LBL_4
LBL_4:
%19 = inttoptr i64 %9 to i64*
%20 = load i64, i64* %19, align 8
%21 = and i64 %1, 4294967295
%22 = call i64 @FUNC(i64 %20, i64 %21)
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = call i64 @FUNC(i64* nonnull %sv_1)
br label LBL_6
LBL_6:
%28 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%29 = call i64 @FUNC(i64* nonnull %sv_1)
%30 = and i64 %sv_0.0.reload, 4294967295
%31 = call i64 @FUNC(i64 %30)
store i64 %31, 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* %sv_1, { 0, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64*)* @path_put, { 1, 0 }
uselistorder i64 (i64)* @ERR_PTR, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
} | 0 |
BinRealVul | rio_mport_initialize_18155 | rio_mport_initialize | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%3 = icmp slt i32 %2, 10
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0))
store i64 19, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 16
%7 = call i64 @FUNC(i64 %6, i64 1)
%8 = load i32, i32* @gv_1, align 4
store i32 ptrtoint (i64* @gv_2 to i32), i32* @gv_1, align 4
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = add i64 %5, 4
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %5, 8
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
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 i32* @gv_1, { 1, 0 }
} | 1 |
BinRealVul | cdg_load_palette_1132 | cdg_load_palette | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 0
%. = select i1 %3, i64 8, i64 0
%4 = add i64 %1, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%8 = mul i64 %indvars.iv.reload, 2
%9 = add i64 %8, %0
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i16
%13 = mul i16 %12, 64
%14 = or i64 %8, 1
%15 = add i64 %14, %0
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = and i8 %17, 48
%19 = zext i8 %18 to i16
%20 = or i16 %13, %19
%21 = udiv i16 %12, 4
%22 = urem i16 %21, 16
%23 = mul i16 %21, 16
%24 = udiv i16 %20, 16
%25 = urem i16 %24, 16
%26 = mul i16 %25, 16
%27 = or i16 %26, %25
%28 = urem i8 %17, 16
%29 = mul i8 %17, 16
%30 = or i8 %29, %28
%.masked = and i16 %23, 240
%31 = or i16 %.masked, %22
%32 = zext i16 %31 to i32
%33 = mul i32 %32, 65536
%34 = mul i16 %27, 256
%35 = zext i16 %34 to i32
%36 = zext i8 %30 to i32
%37 = add nuw nsw i64 %indvars.iv.reload, %.
%38 = mul i64 %37, 4
%39 = add nuw nsw i64 %38, %7
%40 = or i32 %33, %36
%41 = or i32 %40, %35
%42 = or i32 %41, -16777216
%43 = inttoptr i64 %39 to i32*
store i32 %42, i32* %43, align 4
%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_2, label LBL_1
LBL_2:
%44 = add i64 %1, 8
%45 = inttoptr i64 %44 to i32*
store i32 1, i32* %45, align 4
ret i64 %1
uselistorder i16 %25, { 1, 0 }
uselistorder i16 %12, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i16 16, { 0, 3, 2, 1, 4 }
uselistorder i64 8, { 2, 1, 0 }
} | 0 |
BinRealVul | SCCudaHlGetCudaModule_7563 | SCCudaHlGetCudaModule | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.012.reg2mem = alloca i32
%sv_1.011.reg2mem = alloca i32
%sv_0.013.reg2mem = alloca i32
%.pre-phi16.reg2mem = alloca i32*
%sv_1.15.reg2mem = alloca i32
%sv_0.26.reg2mem = alloca i32
%storemerge47.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = icmp eq i64* %arg1, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0))
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_22
LBL_2:
%8 = zext i32 %arg3 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = inttoptr i64 %9 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = sext i32 %arg3 to i64
%16 = call i64 @FUNC(i8* getelementptr inbounds ([379 x i8], [379 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %15, i64 %4, i64 %2, i64 %1)
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_22
LBL_5:
%17 = call i64 @FUNC(i64 24)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_7, label LBL_6
LBL_6:
call void @exit(i32 1)
unreachable
LBL_7:
%20 = inttoptr i64 %17 to i64*
%21 = call i64* @memset(i64* %20, i32 0, i32 24)
%22 = inttoptr i64 %arg2 to i8*
%23 = call i32 @strlen(i8* %22)
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, 15
%26 = call i64 @FUNC(i64 %25)
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_9, label LBL_8
LBL_8:
call void @exit(i32 1)
unreachable
LBL_9:
%29 = inttoptr i64 %26 to i64*
%30 = call i64* @memset(i64* %29, i32 0, i32 8)
%31 = call i64 @FUNC()
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
store i32 2147483647, i32* %sv_1.1.lcssa.reg2mem
store i32 2147483647, i32* %sv_0.2.lcssa.reg2mem
br i1 %34, label LBL_17, label LBL_10
LBL_10:
%35 = add i64 %31, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = zext i32 %33 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge47.reg2mem
store i32 2147483647, i32* %sv_0.26.reg2mem
store i32 2147483647, i32* %sv_1.15.reg2mem
br label LBL_11
LBL_11:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%storemerge47.reload = load i32, i32* %storemerge47.reg2mem
%.reload = load i64, i64* %.reg2mem
%39 = mul i64 %.reload, 8
%40 = add i64 %39, %37
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = zext i32 %44 to i64
%46 = sext i32 %sv_1.15.reload to i64
%47 = icmp sgt i64 %46, %45
br i1 %47, label LBL_12, label LBL_13
LBL_12:
%48 = add i64 %42, 4
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
store i32* %49, i32** %.pre-phi16.reg2mem
store i32 %50, i32* %sv_0.013.reg2mem
store i32 %44, i32* %sv_1.011.reg2mem
br label LBL_15
LBL_13:
%sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem
%51 = icmp eq i32 %sv_1.15.reload, %44
%52 = icmp eq i1 %51, false
store i32 %sv_1.15.reload, i32* %sv_1.012.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br i1 %52, label LBL_16, label LBL_13.LBL_15_crit_edge
LBL_14:
%.pre = add i64 %42, 4
%.pre15 = inttoptr i64 %.pre to i32*
store i32* %.pre15, i32** %.pre-phi16.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.013.reg2mem
store i32 %sv_1.15.reload, i32* %sv_1.011.reg2mem
br label LBL_15
LBL_15:
%sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem
%sv_0.013.reload = load i32, i32* %sv_0.013.reg2mem
%.pre-phi16.reload = load i32*, i32** %.pre-phi16.reg2mem
%53 = load i32, i32* %.pre-phi16.reload, align 4
%54 = zext i32 %53 to i64
%55 = sext i32 %sv_0.013.reload to i64
%56 = icmp sgt i64 %55, %54
%spec.select = select i1 %56, i32 %53, i32 %sv_0.013.reload
store i32 %sv_1.011.reload, i32* %sv_1.012.reg2mem
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_16
LBL_16:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.012.reload = load i32, i32* %sv_1.012.reg2mem
%57 = add i32 %storemerge47.reload, 1
%58 = sext i32 %57 to i64
%59 = icmp slt i64 %58, %38
store i64 %58, i64* %.reg2mem
store i32 %57, i32* %storemerge47.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.26.reg2mem
store i32 %sv_1.012.reload, i32* %sv_1.15.reg2mem
store i32 %sv_1.012.reload, i32* %sv_1.1.lcssa.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.lcssa.reg2mem
br i1 %59, label LBL_11, label LBL_17
LBL_17:
%60 = ptrtoint i64* %arg1 to i64
%61 = inttoptr i64 %26 to i8*
%sv_0.2.lcssa.reload = load i32, i32* %sv_0.2.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%62 = call i32 @strlen(i8* %22)
%63 = add i32 %62, 15
%64 = zext i32 %sv_0.2.lcssa.reload to i64
%65 = zext i32 %sv_1.1.lcssa.reload to i64
%66 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %61, i32 %63, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i8* %22, i32 %sv_1.1.lcssa.reload, i32 %sv_0.2.lcssa.reload)
%67 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i64 %26, i64 ptrtoint ([11 x i8]* @gv_2 to i64), i64 %arg2, i64 %65, i64 %64)
%68 = call i64 @FUNC(i64 %26)
%69 = call i64 @FUNC(i64 %60, i64 %68)
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, -1
%72 = call i64 @FUNC(i64 %26)
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %71, label LBL_22, label LBL_18
LBL_18:
%sext = mul i64 %3, 4294967296
%73 = ashr exact i64 %sext, 32
store i64 %73, i64* %20, align 8
%74 = call i64 @FUNC()
%75 = trunc i64 %74 to i32
%76 = add i64 %17, 8
%77 = inttoptr i64 %76 to i32*
store i32 %75, i32* %77, align 4
%78 = add i64 %9, 8
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = icmp eq i64 %80, 0
%82 = icmp eq i1 %81, false
store i64 %80, i64* %storemerge.reg2mem
br i1 %82, label LBL_20, label LBL_19
LBL_19:
store i64 %17, i64* %79, align 8
%83 = load i32, i32* %77, align 4
store i32 %83, i32* %rax.0.shrunk.reg2mem
br label LBL_22
LBL_20:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%84 = add i64 %storemerge.reload, 16
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = icmp eq i64 %86, 0
%88 = icmp eq i1 %87, false
store i64 %86, i64* %storemerge.reg2mem
br i1 %88, label LBL_20, label LBL_21
LBL_21:
store i64 %17, i64* %85, align 8
%89 = load i32, i32* %77, align 4
store i32 %89, i32* %rax.0.shrunk.reg2mem
br label LBL_22
LBL_22:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32* %77, { 1, 0, 2 }
uselistorder i32 %sv_1.1.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.2.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.013.reload, { 1, 0 }
uselistorder i32 %sv_0.26.reload, { 1, 0 }
uselistorder i32 %44, { 1, 0, 2 }
uselistorder i32 %sv_1.15.reload, { 1, 0, 3, 2 }
uselistorder i64 %26, { 0, 1, 2, 4, 3, 5 }
uselistorder i8* %22, { 1, 0, 2 }
uselistorder i64 %17, { 1, 0, 2, 3, 4 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.26.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.15.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi16.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.013.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.011.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 3, 1, 5, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder [11 x i8]* @gv_2, { 1, 0 }
uselistorder i64 8, { 2, 3, 0, 1 }
uselistorder i32 2147483647, { 2, 3, 0, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 (i64)* @SCMalloc, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @SCLogDebug, { 1, 0 }
uselistorder i32 -1, { 0, 3, 2, 1 }
uselistorder i1 false, { 2, 4, 3, 0, 1, 5, 6 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_22, { 1, 2, 0, 3, 4 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | bcm2048_rds_fifo_receive_4182 | bcm2048_rds_fifo_receive | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 56
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %0, 40
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %0, i64 0, i64 %7, i32 %4)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 2
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = add i64 %0, 64
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0))
%15 = call i64 @FUNC(i64 %0)
store i64 %15, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%16 = load i32, i32* %3, align 4
%17 = add i64 %0, 48
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = call i64 @FUNC(i64 %0)
%20 = call i64 @FUNC(i64 %0)
%21 = call i64 @FUNC(i64 %0)
%22 = call i64 @FUNC(i64 %0)
%23 = add i64 %0, 72
%24 = call i64 @FUNC(i64 %23)
store i64 %24, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 4, 3, 2, 1, 0, 5, 6, 7, 8, 9, 10, 11 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
} | 0 |
BinRealVul | max1363_single_channel_from_ring_4829 | max1363_single_channel_from_ring | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_1.13.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = and i64 %0, %arg1
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967280, i64* %sv_0.1.reg2mem
br i1 %8, label LBL_1, label LBL_9
LBL_1:
%sext = mul i64 %5, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = call i64 @FUNC(i64 %9, i64 0)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967284, i64* %sv_0.1.reg2mem
br i1 %12, label LBL_2, label LBL_9
LBL_2:
%13 = trunc i64 %5 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_8, label LBL_3
LBL_3:
%storemerge2 = ashr i64 %arg1, 1
%16 = icmp eq i64 %storemerge2, 0
%17 = icmp eq i1 %16, false
store i64 %storemerge2, i64* %storemerge4.reg2mem
store i32 0, i32* %sv_1.13.reg2mem
store i32 0, i32* %sv_1.1.lcssa.reg2mem
br i1 %17, label LBL_4, label LBL_5
LBL_4:
%sv_1.13.reload = load i32, i32* %sv_1.13.reg2mem
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%18 = and i64 %storemerge4.reload, %10
%19 = icmp ne i64 %18, 0
%20 = zext i1 %19 to i32
%spec.select = add i32 %sv_1.13.reload, %20
%storemerge = ashr i64 %storemerge4.reload, 1
%21 = icmp eq i64 %storemerge, 0
%22 = icmp eq i1 %21, false
store i64 %storemerge, i64* %storemerge4.reg2mem
store i32 %spec.select, i32* %sv_1.13.reg2mem
store i32 %spec.select, i32* %sv_1.1.lcssa.reg2mem
br i1 %22, label LBL_4, label LBL_5
LBL_5:
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%23 = add i64 %0, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 8
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = mul i32 %sv_1.1.lcssa.reload, 2
%30 = sext i32 %29 to i64
%31 = add i64 %10, %30
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = zext i8 %33 to i64
%35 = mul i64 %34, 256
%36 = and i64 %35, 3840
%37 = or i32 %29, 1
%38 = sext i32 %37 to i64
%39 = add i64 %10, %38
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = zext i8 %41 to i64
%43 = or i64 %36, %42
store i64 %43, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%44 = sext i32 %sv_1.1.lcssa.reload to i64
%45 = add i64 %10, %44
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%48 = zext i8 %47 to i64
store i64 %48, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%49 = call i64 @FUNC(i64 %10)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%50 = and i64 %sv_0.1.reload, 4294967295
ret i64 %50
uselistorder i32 %29, { 1, 0 }
uselistorder i64 %10, { 4, 0, 1, 2, 3, 5 }
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_9, { 2, 0, 1 }
uselistorder label LBL_8, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.