dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | ogs_tlv_parse_block_desc_5983 | ogs_tlv_parse_block_desc | define i64 @FUNC(i64 %arg1, i64 %arg2, i8 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.lcssa2.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%sext = mul i64 %arg1, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %5, i64 %arg2, i8 %arg3, i64 %3)
%8 = call i64 @FUNC(i64 %7)
%9 = sub i64 %7, %arg2
%10 = and i64 %4, 4294967295
%11 = icmp slt i64 %9, %10
store i64 %5, i64* %sv_1.04.reg2mem
store i64 %7, i64* %sv_0.03.reg2mem
store i64 %7, i64* %sv_0.0.lcssa.reg2mem
store i64 %9, i64* %.lcssa2.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_1:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%12 = call i64 @FUNC()
%13 = call i64 @FUNC(i64 %12)
%14 = inttoptr i64 %sv_1.04.reload to i64*
store i64 %12, i64* %14, align 8
%15 = call i64 @FUNC(i64 %12, i64 %sv_0.03.reload, i8 %arg3, i64 %3)
%16 = call i64 @FUNC(i64 %15)
%17 = sub i64 %15, %arg2
%18 = icmp slt i64 %17, %10
store i64 %12, i64* %sv_1.04.reg2mem
store i64 %15, i64* %sv_0.03.reg2mem
store i64 %15, i64* %sv_0.0.lcssa.reg2mem
store i64 %17, i64* %.lcssa2.reg2mem
br i1 %18, label LBL_1, label LBL_2
LBL_2:
%.lcssa2.reload = load i64, i64* %.lcssa2.reg2mem
%19 = icmp eq i64 %10, %.lcssa2.reload
store i64 %5, i64* %storemerge.reg2mem
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%20 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %10, i8 %arg3, i64 %3, i64 %2, i64 %1)
%21 = and i64 %.lcssa2.reload, 4294967295
%22 = trunc i64 %arg2 to i8
%23 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %sv_0.0.lcssa.reload, i8 %22, i64 %21, i64 %2, i64 %1)
%24 = trunc i64 %4 to i32
%25 = call i64 @FUNC(i64 1, i64 %arg2, i32 %24)
%26 = call i64 @FUNC(i64 %5)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %10, { 0, 1, 3, 2 }
uselistorder i64 %5, { 2, 0, 1, 3, 4 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i8, i64, i64, i64)* @ogs_error, { 1, 0 }
uselistorder i64 (i64, i64, i8, i64)* @tlv_get_element_desc, { 1, 0 }
uselistorder i64 (i64)* @ogs_assert, { 3, 2, 1, 0 }
uselistorder i64 ()* @ogs_tlv_get, { 1, 0 }
uselistorder i64 %arg2, { 1, 2, 3, 0, 4 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | rm_read_metadata_868 | rm_read_metadata | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = icmp eq i32 %arg3, 0
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
br i1 %2, label LBL_3, label LBL_2
LBL_2:
%3 = call i64 @FUNC(i64 %0)
store i64 %3, i64* %storemerge1.reg2mem
br label LBL_4
LBL_3:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %storemerge1.reg2mem
br label LBL_4
LBL_4:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%5 = and i64 %storemerge1.reload, 4294967295
%6 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 1024, i64 %5)
%7 = mul i64 %indvars.iv.reload, 8
%8 = add i64 %7, ptrtoint ([3 x i8*]* @gv_0 to i64)
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %1, i64 %10, i64* nonnull %sv_0, i64 0)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_1
LBL_5:
ret i64 3
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 6, 0, 1, 2, 3, 4, 5 }
} | 0 |
BinRealVul | fmtutil_macbitmap_read_pixmap_only_fields_11089 | fmtutil_macbitmap_read_pixmap_only_fields | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = and i64 %arg4, 4294967295
%8 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %arg4, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 %6, i64 1)
%10 = call i64 @FUNC(i64 %5, i64 %arg4)
%11 = urem i64 %10, 65536
%12 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %11, i64 %arg4, i64 %2, i64 %1)
%13 = add i64 %arg4, 2
%14 = call i64 @FUNC(i64 %5, i64 %13)
%15 = trunc i64 %14 to i16
%16 = bitcast i64* %arg3 to i16*
store i16 %15, i16* %16, align 2
%17 = urem i64 %3, 65536
%18 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i64 %17, i64 %arg4, i64 %2, i64 %1)
%19 = add i64 %arg4, 4
%20 = call i64 @FUNC(i64 %5, i64 %19)
%21 = and i64 %20, 4294967295
%22 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0), i64 %21, i64 %arg4, i64 %2, i64 %1)
%23 = add i64 %arg4, 8
%24 = call i128 @FUNC(i64 %5, i64 %23)
%25 = call i64 @FUNC(i128 %24)
%26 = add i64 %4, 8
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
%28 = add i64 %arg4, 12
%29 = call i128 @FUNC(i64 %5, i64 %28)
%30 = call i64 @FUNC(i128 %29)
%31 = add i64 %4, 16
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = call i128 @FUNC(i64 %30)
%34 = load i64, i64* %27, align 8
%35 = call i128 @FUNC(i128 %33)
%36 = call i128 @__asm_movq.1(i64 %34)
%37 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i64 %34, i64 %arg4, i64 %2, i64 %1)
%38 = add i64 %arg4, 16
%39 = call i64 @FUNC(i64 %5, i64 %38)
%40 = trunc i64 %39 to i16
%41 = add i64 %4, 24
%42 = inttoptr i64 %41 to i16*
store i16 %40, i16* %42, align 2
%43 = add i64 %arg4, 18
%44 = call i64 @FUNC(i64 %5, i64 %43)
%45 = trunc i64 %44 to i16
%46 = add i64 %4, 26
%47 = inttoptr i64 %46 to i16*
store i16 %45, i16* %47, align 2
%48 = add i64 %arg4, 20
%49 = call i64 @FUNC(i64 %5, i64 %48)
%50 = trunc i64 %49 to i16
%51 = add i64 %4, 28
%52 = inttoptr i64 %51 to i16*
store i16 %50, i16* %52, align 2
%53 = add i64 %arg4, 22
%54 = call i64 @FUNC(i64 %5, i64 %53)
%55 = trunc i64 %54 to i16
%56 = add i64 %4, 30
%57 = inttoptr i64 %56 to i16*
store i16 %55, i16* %57, align 2
%58 = load i16, i16* %52, align 2
%59 = load i16, i16* %47, align 2
%60 = zext i16 %59 to i64
%61 = load i16, i16* %42, align 2
%62 = zext i16 %61 to i64
%63 = urem i64 %54, 65536
%64 = zext i16 %58 to i64
%65 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_5, i64 0, i64 0), i64 %62, i64 %60, i64 %64, i64 %63)
%66 = add i64 %4, 36
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = mul i32 %68, 8
%70 = zext i32 %69 to i64
%71 = load i16, i16* %47, align 2
%72 = zext i16 %71 to i32
%73 = udiv i32 %69, %72
%74 = add i64 %4, 44
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
%76 = add i64 %4, 40
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = icmp ult i32 %73, %78
%80 = icmp eq i1 %79, false
%spec.store.select = select i1 %80, i32 %73, i32 %78
store i32 %spec.store.select, i32* %75, align 4
%81 = add i64 %arg4, 24
%82 = call i64 @FUNC(i64 %5, i64 %81)
%83 = and i64 %82, 4294967295
%84 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_6, i64 0, i64 0), i64 %83, i64 %70, i64 %64, i64 %63)
%85 = add i64 %arg4, 28
%86 = call i64 @FUNC(i64 %5, i64 %85)
%87 = trunc i64 %86 to i32
%88 = add i64 %4, 32
%89 = inttoptr i64 %88 to i32*
store i32 %87, i32* %89, align 4
%90 = and i64 %86, 4294967295
%91 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_7, i64 0, i64 0), i64 %90, i64 %70, i64 %64, i64 %63)
%92 = add i64 %arg4, 32
%93 = call i64 @FUNC(i64 %5, i64 %92)
%94 = and i64 %93, 4294967295
%95 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_8, i64 0, i64 0), i64 %94, i64 %70, i64 %64, i64 %63)
%96 = call i64 @FUNC(i64 %6, i64 4294967295)
ret i64 %96
uselistorder i32 %69, { 1, 0 }
uselistorder i64 %34, { 1, 0 }
uselistorder i64 %6, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %2, { 4, 3, 2, 0, 1 }
uselistorder i64 %1, { 4, 3, 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i128 (i64, i64)* @pict_read_fixed, { 1, 0 }
uselistorder i64 (i64, i64)* @dbuf_getu32be, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @dbuf_getu16be, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @de_dbg_indent, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @de_dbg, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 5, 1, 0, 2, 3, 4 }
uselistorder i64 %arg4, { 0, 1, 2, 3, 4, 5, 6, 17, 7, 8, 15, 9, 16, 10, 14, 11, 13, 12 }
} | 1 |
BinRealVul | blk_init_allocated_queue_13759 | blk_init_allocated_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 %0)
%2 = add i64 %0, 16
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i64 @FUNC(i64 %0, i64 0, i32 %4)
%6 = add i64 %0, 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 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = trunc i64 %0 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = add i64 %0, 40
%18 = call i64 @FUNC(i64 %17, i64 %0, i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = add i64 %0, 48
%23 = call i64 @FUNC(i64 %22, i64 4198820)
%24 = add i64 %0, 20
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = or i32 %26, 1
store i32 %27, i32* %25, align 4
%28 = load i64, i64* @gv_0, align 8
%29 = call i64 @FUNC(i64 %0, i64 %28)
%30 = add i64 %0, 56
%31 = inttoptr i64 %30 to i32*
store i32 2147483647, i32* %31, align 4
%32 = call i64 @FUNC(i64 %0)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 0, i64* %rax.0.reg2mem
br i1 %35, label LBL_5, label LBL_6
LBL_5:
%36 = load i64, i64* %7, align 8
%37 = call i64 @FUNC(i64 %36)
store i64 0, i64* %7, align 8
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %7, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 1, 4, 3, 6, 5, 8, 7, 9, 10, 11, 12 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 0 |
BinRealVul | dlpar_parse_cc_property_19124 | dlpar_parse_cc_property | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64* @malloc(i32 24)
%3 = icmp eq i64* %2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = ptrtoint i64* %2 to i64
%7 = and i64 %1, 4294967295
%8 = add i64 %7, %5
%9 = inttoptr i64 %8 to i8*
%10 = call i8* @strdup(i8* %9)
%11 = ptrtoint i8* %10 to i64
store i64 %11, i64* %2, align 8
%12 = add i64 %5, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = add i64 %6, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = add i64 %21, %5
%23 = call i64* @malloc(i32 %14)
%24 = inttoptr i64 %22 to i64*
%25 = call i64* @memcpy(i64* %23, i64* %24, i32 %14)
%26 = ptrtoint i64* %25 to i64
%27 = add i64 %6, 16
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = icmp eq i64* %25, null
%30 = icmp eq i1 %29, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %30, label LBL_3, label LBL_2
LBL_2:
%31 = call i64 @FUNC(i64 %6)
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %14, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0, 2, 3 }
uselistorder i64 %5, { 0, 2, 3, 1 }
uselistorder i64* %2, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | do_huge_pmd_numa_page_17415 | do_huge_pmd_numa_page | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC()
%3 = urem i64 %2, 256
%4 = icmp eq i64 %3, 1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 %0)
br label LBL_14
LBL_2:
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %7)
%10 = trunc i64 %9 to i32
%11 = call i64 @FUNC(i64 0)
%12 = call i64 @FUNC()
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %10, %13
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 1)
br label LBL_4
LBL_4:
%17 = ptrtoint i64* %arg4 to i64
%18 = ptrtoint i64* %arg2 to i64
%19 = and i64 %arg3, -4096
%20 = call i64 @FUNC(i64 %7, i64 %18, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, -1
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %7)
br label LBL_11
LBL_6:
%25 = call i64 @FUNC(i64 %0)
%26 = call i64 @FUNC(i64 %7)
%27 = call i64 @FUNC(i64 %0)
%28 = call i64 @FUNC()
%29 = urem i64 %28, 256
%30 = icmp eq i64 %29, 1
br i1 %30, label LBL_8, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64 %7)
%32 = call i64 @FUNC(i64 %7)
br label LBL_12
LBL_8:
%33 = call i64 @FUNC(i64 %0)
%34 = and i64 %20, 4294967295
%35 = call i64 @FUNC(i64 %0, i64 %18, i64 %17, i64 %arg3, i64 %7, i64 %34)
%36 = trunc i64 %35 to i8
%37 = icmp eq i8 %36, 1
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_10, label LBL_9
LBL_9:
%39 = call i64 @FUNC(i64 %34, i64 512, i64 1)
br label LBL_14
LBL_10:
%40 = call i64 @FUNC(i64 %0)
%41 = call i64 @FUNC()
%42 = urem i64 %41, 256
%43 = icmp eq i64 %42, 1
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = call i64 @FUNC()
%46 = call i64 @FUNC(i64 %0, i64 %19, i64 %17)
%47 = call i64 @FUNC(i64 0)
%48 = call i64 @FUNC(i64 %18, i64 %arg3, i64 %17)
br label LBL_12
LBL_12:
%49 = call i64 @FUNC(i64 %0)
%50 = icmp eq i32 %10, -1
br i1 %50, label LBL_14, label LBL_13
LBL_13:
%51 = and i64 %9, 4294967295
%52 = call i64 @FUNC(i64 %51, i64 512, i64 0)
br label LBL_14
LBL_14:
ret i64 0
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %7, { 3, 2, 1, 4, 0, 5, 6, 7 }
uselistorder i64 %0, { 7, 1, 2, 3, 4, 6, 5, 0, 8 }
uselistorder i64 (i64, i64, i64)* @task_numa_fault, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @put_page, { 1, 0 }
uselistorder i64 (i64)* @count_vm_numa_event, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock, { 3, 2, 1, 0 }
uselistorder i64 1, { 1, 4, 2, 5, 3, 0 }
uselistorder i64 ()* @pmd_same, { 2, 1, 0 }
uselistorder i64 (i64)* @spin_lock, { 2, 1, 0 }
uselistorder label LBL_14, { 2, 1, 3, 0 }
uselistorder label LBL_12, { 1, 0, 2 }
} | 1 |
BinRealVul | youngcollection_17328 | youngcollection | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %arg2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %arg2, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %arg2, i64 %11, i64 %8)
%13 = add i64 %arg2, 32
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %arg2, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %arg2, i64 %18, i64 %15)
%20 = call i64 @FUNC(i64 %arg1)
%21 = load i64, i64* %10, align 8
%22 = add i64 %arg2, 48
%23 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %22, i64 %21)
%24 = load i64, i64* %7, align 8
%25 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %23, i64 %24)
%26 = add i64 %arg2, 40
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
store i64 %28, i64* %7, align 8
%29 = inttoptr i64 %23 to i64*
%30 = load i64, i64* %29, align 8
store i64 %30, i64* %27, align 8
%31 = inttoptr i64 %22 to i64*
%32 = load i64, i64* %31, align 8
store i64 %32, i64* %10, align 8
%33 = add i64 %arg2, 64
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %16, i64 %35)
%37 = load i64, i64* %14, align 8
%38 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %36, i64 %37)
%39 = add i64 %arg2, 56
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
store i64 %41, i64* %14, align 8
%42 = inttoptr i64 %36 to i64*
%43 = load i64, i64* %42, align 8
store i64 %43, i64* %40, align 8
%44 = load i64, i64* %17, align 8
store i64 %44, i64* %34, align 8
%45 = add i64 %arg2, 72
%46 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %45, i64 0)
%47 = call i64 @FUNC(i64 %arg1, i64 %arg2)
ret i64 %47
uselistorder i64* %7, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64, i64)* @sweepgen, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @markold, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 5, 6, 0 }
uselistorder i64 %arg2, { 14, 13, 12, 11, 10, 9, 8, 7, 6, 4, 5, 3, 1, 2, 0, 16, 15 }
} | 1 |
BinRealVul | mmap_find_vma_reserved_1976 | mmap_find_vma_reserved | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%.reg2mem7 = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = load i64, i64* @gv_0, align 8
%1 = icmp ult i64 %0, %arg2
store i64 -1, i64* %rax.0.reg2mem
br i1 %1, label LBL_10, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %arg2)
%3 = add i64 %2, %arg1
%4 = load i64, i64* @gv_0, align 8
%5 = icmp ugt i64 %3, %4
%spec.select = select i1 %5, i64 %4, i64 %3
%6 = load i32, i32* @gv_1, align 4
%7 = sext i32 %6 to i64
%8 = sub i64 %spec.select, %7
store i32 %6, i32* %.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
store i64 %spec.select, i64* %sv_1.1.reg2mem
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%9 = icmp ugt i64 %sv_0.0.reload, %sv_1.1.reload
br i1 %9, label LBL_3, label LBL_5
LBL_3:
%10 = icmp eq i32 %sv_2.0.reload, 0
store i64 -1, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_10
LBL_4:
%.reload = load i32, i32* %.reg2mem
%11 = load i64, i64* @gv_0, align 8
%12 = sext i32 %.reload to i64
%13 = sub i64 %11, %12
store i32 %.reload, i32* %.reg2mem7
store i32 1, i32* %sv_2.1.reg2mem
store i64 %11, i64* %sv_1.3.reg2mem
store i64 %13, i64* %sv_0.1.reg2mem
br label LBL_7
LBL_5:
%14 = call i64 @FUNC(i64 %sv_0.0.reload)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%spec.select1 = select i1 %16, i64 %sv_1.1.reload, i64 %sv_0.0.reload
%17 = icmp ne i64 %sv_0.0.reload, 0
%18 = add i64 %sv_0.0.reload, %2
%19 = icmp eq i64 %spec.select1, %18
%or.cond = icmp eq i1 %17, %19
br i1 %or.cond, label LBL_8, label LBL_6
LBL_6:
%20 = load i32, i32* @gv_1, align 4
%21 = sext i32 %20 to i64
%22 = sub i64 %sv_0.0.reload, %21
store i32 %20, i32* %.reg2mem7
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i64 %spec.select1, i64* %sv_1.3.reg2mem
store i64 %22, i64* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%.reload8 = load i32, i32* %.reg2mem7
store i32 %.reload8, i32* %.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem
store i64 %sv_1.3.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_8:
%23 = load i64, i64* @gv_2, align 8
%24 = icmp eq i64 %23, %arg1
%25 = icmp eq i1 %24, false
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br i1 %25, label LBL_10, label LBL_9
LBL_9:
store i64 %sv_0.0.reload, i64* @gv_2, align 8
store i64 %sv_0.0.reload, 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 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 8, 0, 5, 7, 4, 6, 2, 3 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.1.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i32* @gv_1, { 2, 1, 0 }
uselistorder i32 1, { 3, 9, 8, 7, 6, 5, 4, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_10, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | vfio_exitfn_2505 | vfio_exitfn | 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, i64 0)
%3 = call i64 @FUNC(i64 %0)
%4 = icmp eq i64* %arg1, null
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = call i64 @FUNC(i64 %0)
ret i64 %7
uselistorder i64 %0, { 2, 1, 0, 5, 4, 3 }
} | 0 |
BinRealVul | avfilter_merge_formats_16010 | avfilter_merge_formats | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.27.reg2mem = alloca i32
%rsi.28.reg2mem = alloca i64
%indvars.iv11.reg2mem = alloca i64
%.reg2mem27 = alloca i32
%.reg2mem25 = alloca i32
%.reg2mem23 = alloca i32
%rsi.1.lcssa.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%.reg2mem21 = alloca i32
%.reg2mem19 = alloca i32
%.reg2mem17 = alloca i32
%rsi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem15 = alloca i32
%sv_0.13.reg2mem = alloca i32
%rsi.14.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 24)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp ugt i32 %5, %8
%10 = select i1 %9, i32 %8, i32 %5
%11 = zext i32 %10 to i64
%12 = mul i64 %11, 4
%13 = call i64 @FUNC(i64 %12)
%14 = inttoptr i64 %2 to i64*
store i64 %13, i64* %14, align 8
%15 = load i32, i32* %7, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_1, label LBL_2
LBL_1:
%17 = add i64 %2, 8
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
br label LBL_11
LBL_2:
%.pre = load i32, i32* %4, align 4
store i32 %15, i32* %.reg2mem23
store i32 %.pre, i32* %.reg2mem25
store i32 %.pre, i32* %.reg2mem27
store i64 0, i64* %indvars.iv11.reg2mem
store i64 %0, i64* %rsi.28.reg2mem
store i32 0, i32* %sv_0.27.reg2mem
br label LBL_8
LBL_3:
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%rsi.14.reload = load i64, i64* %rsi.14.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%19 = load i32, i32* %39, align 4
%20 = mul i64 %indvars.iv.reload, 4
%21 = add i64 %20, %rsi.14.reload
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %19, %23
%25 = icmp eq i1 %24, false
store i32 %.reload, i32* %.reg2mem15
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
store i64 %rsi.14.reload, i64* %rsi.0.reg2mem
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = load i64, i64* %14, align 8
%27 = add i32 %sv_0.13.reload, 1
%28 = zext i32 %sv_0.13.reload to i64
%29 = mul i64 %28, 4
%30 = add i64 %26, %29
%31 = inttoptr i64 %30 to i32*
store i32 %19, i32* %31, align 4
%.pre13 = load i32, i32* %4, align 4
store i32 %.pre13, i32* %.reg2mem15
store i32 %27, i32* %sv_0.0.reg2mem
store i64 %26, i64* %rsi.0.reg2mem
br label LBL_5
LBL_5:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload16 = load i32, i32* %.reg2mem15
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%32 = zext i32 %.reload16 to i64
%33 = icmp ult i64 %indvars.iv.next, %32
store i32 %.reload16, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rsi.0.reload, i64* %rsi.14.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
br i1 %33, label LBL_3, label LBL_6
LBL_6:
%.pre14 = load i32, i32* %7, align 4
store i32 %.pre14, i32* %.reg2mem17
store i32 %.reload16, i32* %.reg2mem19
store i32 %.reload16, i32* %.reg2mem21
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.lcssa.reg2mem
br label LBL_7
LBL_7:
%rsi.1.lcssa.reload = load i64, i64* %rsi.1.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%.reload22 = load i32, i32* %.reg2mem21
%.reload20 = load i32, i32* %.reg2mem19
%.reload18 = load i32, i32* %.reg2mem17
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%34 = zext i32 %.reload18 to i64
%35 = icmp ult i64 %indvars.iv.next12, %34
store i32 %.reload18, i32* %.reg2mem23
store i32 %.reload20, i32* %.reg2mem25
store i32 %.reload22, i32* %.reg2mem27
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i64 %rsi.1.lcssa.reload, i64* %rsi.28.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.27.reg2mem
br i1 %35, label LBL_8, label LBL_10
LBL_8:
%sv_0.27.reload = load i32, i32* %sv_0.27.reg2mem
%rsi.28.reload = load i64, i64* %rsi.28.reg2mem
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%.reload28 = load i32, i32* %.reg2mem27
%.reload26 = load i32, i32* %.reg2mem25
%.reload24 = load i32, i32* %.reg2mem23
%36 = icmp eq i32 %.reload28, 0
store i32 %.reload24, i32* %.reg2mem17
store i32 %.reload26, i32* %.reg2mem19
store i32 0, i32* %.reg2mem21
store i32 %sv_0.27.reload, i32* %sv_0.1.lcssa.reg2mem
store i64 %rsi.28.reload, i64* %rsi.1.lcssa.reg2mem
br i1 %36, label LBL_7, label LBL_3.lr.ph
LBL_9:
%37 = mul i64 %indvars.iv11.reload, 4
%38 = add nuw nsw i64 %37, %12
%39 = inttoptr i64 %38 to i32*
store i32 %.reload26, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
store i64 %rsi.28.reload, i64* %rsi.14.reg2mem
store i32 %sv_0.27.reload, i32* %sv_0.13.reg2mem
br label LBL_3
LBL_10:
%40 = add i64 %2, 8
%41 = inttoptr i64 %40 to i32*
store i32 %sv_0.1.lcssa.reload, i32* %41, align 4
%42 = icmp eq i32 %sv_0.1.lcssa.reload, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = load i64, i64* %14, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_13
LBL_12:
%47 = add i64 %1, 12
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %0, 12
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i32 %52, %49
%54 = zext i32 %53 to i64
%55 = mul i64 %54, 8
%56 = call i64 @FUNC(i64 %55)
%57 = add i64 %2, 16
%58 = inttoptr i64 %57 to i64*
store i64 %56, i64* %58, align 8
%59 = call i64 @FUNC(i64 %2, i64 %1)
%60 = call i64 @FUNC(i64 %2, i64 %0)
store i64 %2, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %indvars.iv11.reload, { 1, 0 }
uselistorder i32 %sv_0.1.lcssa.reload, { 2, 1, 0 }
uselistorder i32 %.reload16, { 0, 1, 3, 2 }
uselistorder i32 %sv_0.13.reload, { 2, 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %2, { 0, 3, 2, 4, 5, 6, 1, 7 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %rsi.14.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.13.reg2mem, { 2, 1, 0 }
uselistorder i32* %.reg2mem17, { 1, 0, 2 }
uselistorder i32* %.reg2mem19, { 1, 0, 2 }
uselistorder i32* %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.1.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @merge_ref, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 6, 1, 3, 0, 2, 4, 5 }
uselistorder i64 (i64)* @av_malloc, { 2, 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3, 4 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | doubles2str_6087 | doubles2str | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i8*
%sv_0 = alloca i8*, align 8
%sext = mul i64 %arg2, 4294967296
%0 = icmp eq i8* %arg3, null
%1 = icmp eq i1 %0, false
%spec.select = select i1 %1, i8* %arg3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0)
%2 = call i32 @strlen(i8* %spec.select)
%3 = sext i32 %2 to i64
%4 = add nsw i64 %3, 15
%5 = ashr exact i64 %sext, 32
%6 = udiv i64 2147483646, %4
%7 = icmp ult i64 %5, %6
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_7
LBL_1:
%sext9 = mul i64 %4, 4294967296
%8 = ashr exact i64 %sext9, 32
%9 = mul nsw i64 %8, %5
%10 = add i64 %9, 1
%11 = call i64 @FUNC(i64 %10)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_7
LBL_2:
%14 = ptrtoint i64* %arg1 to i64
%15 = trunc i64 %4 to i32
%16 = inttoptr i64 %11 to i8*
%17 = bitcast i8** %sv_0 to i64*
store i64 %11, i64* %17, align 8
store i8 0, i8* %16, align 1
%18 = trunc i64 %arg2 to i32
%19 = icmp sgt i32 %18, 0
store i8* %16, i8** %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %19, label LBL_3, label LBL_6
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i8*, i8** %.reg2mem
%20 = mul i64 %indvars.iv.reload, 8
%21 = add i64 %20, %14
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i128 @FUNC(i64 %23)
%25 = trunc i128 %24 to i64
%26 = bitcast i64 %25 to double
%27 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %.reload, i32 %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), double %26, i8* %spec.select)
%28 = zext i32 %27 to i64
%29 = icmp ugt i64 %8, %28
br i1 %29, label LBL_5, label LBL_4
LBL_4:
%30 = load i8*, i8** %sv_0, align 8
%31 = ptrtoint i8* %30 to i64
%32 = call i64 @FUNC(i64 %31)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%33 = ptrtoint i8* %.reload to i64
%34 = add i64 %28, %33
%35 = inttoptr i64 %34 to i8*
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%36 = icmp slt i64 %indvars.iv.next, %5
store i8* %35, i8** %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %36, label LBL_3, label LBL_6
LBL_6:
%37 = load i8*, i8** %sv_0, align 8
%38 = call i32 @strlen(i8* %37)
%39 = sext i32 %38 to i64
%40 = call i32 @strlen(i8* %spec.select)
%41 = sext i32 %40 to i64
%42 = ptrtoint i8* %37 to i64
%43 = add i64 %39, %42
%44 = sub i64 %43, %41
%45 = inttoptr i64 %44 to i8*
store i8 0, i8* %45, align 1
%46 = load i8*, i8** %sv_0, align 8
%47 = ptrtoint i8* %46 to i64
store i64 %47, 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 i8* %.reload, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i8** %sv_0, { 3, 2, 1, 0 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_7, { 3, 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | drop_sync_3412 | drop_sync | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa7.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.01.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%0 = icmp ult i64 %arg2, 1025
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = icmp ult i64 %arg2, 65536
%2 = select i1 %1, i64 %arg2, i64 65536
%3 = call i64 @FUNC(i64 %2)
store i64 %3, i64* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%4 = ptrtoint i64* %sv_2 to i64
%5 = icmp eq i64 %arg2, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %storemerge5.reg2mem
store i64 0, i64* %sv_0.0.lcssa7.reg2mem
br i1 %6, label LBL_3, label LBL_10
LBL_3:
%7 = ptrtoint i64* %arg1 to i64
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
store i64 0, i64* %sv_0.02.reg2mem
store i64 %arg2, i64* %sv_1.01.reg2mem
br label LBL_4
LBL_4:
%sv_1.01.reload = load i64, i64* %sv_1.01.reg2mem
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%8 = icmp ult i64 %sv_1.01.reload, 65536
%9 = select i1 %8, i64 %sv_1.01.reload, i64 65536
%10 = call i64 @FUNC(i64 %7, i64 %storemerge5.reload, i64 %9)
%11 = icmp slt i64 %10, 1
store i64 %sv_0.02.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %11, label LBL_8, label LBL_5
LBL_5:
%12 = icmp ult i64 %sv_1.01.reload, %10
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_7, label LBL_6
LBL_6:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_7
LBL_7:
%14 = sub i64 %sv_1.01.reload, %10
%15 = add i64 %10, %sv_0.02.reload
%16 = icmp eq i64 %14, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %sv_0.02.reg2mem
store i64 %14, i64* %sv_1.01.reg2mem
store i64 %15, i64* %sv_0.0.lcssa.reg2mem
br i1 %17, label LBL_4, label LBL_8
LBL_8:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%18 = ptrtoint i64* %sv_2 to i64
%19 = icmp eq i64 %storemerge5.reload, %18
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.0.lcssa7.reg2mem
br i1 %19, label LBL_10, label LBL_9
LBL_9:
%20 = call i64 @FUNC(i64 %storemerge5.reload)
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.0.lcssa7.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.lcssa7.reload = load i64, i64* %sv_0.0.lcssa7.reg2mem
ret i64 %sv_0.0.lcssa7.reload
uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i64 %storemerge5.reload, { 1, 2, 0 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.lcssa7.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 65536, { 2, 3, 0, 1 }
uselistorder i64 %arg2, { 0, 1, 3, 2, 4 }
uselistorder label LBL_10, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | crypto_ccm_auth_17758 | crypto_ccm_auth | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %2)
%6 = inttoptr i64 %4 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %5 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %9, i64 %2, i32 %arg3)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_1
LBL_1:
%17 = trunc i64 %1 to i32
%18 = call i64 @FUNC(i64 %7, i64 %9, i64 %9)
%19 = icmp eq i32 %17, 0
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = bitcast i64* %rdi to i32*
%21 = and i64 %1, 4294967295
%22 = call i64 @FUNC(i64 %12, i64 %21)
%23 = trunc i64 %22 to i32
%24 = add i64 %5, 16
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = load i32, i32* %20, align 8
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %7, i64 %5, i64 %29, i32 %26)
br label LBL_3
LBL_3:
%31 = ptrtoint i64* %arg2 to i64
%32 = call i64 @FUNC(i64 %7, i64 %5, i64 %31, i32 %arg3)
br label LBL_4
LBL_4:
%33 = and i64 %13, 4294967295
ret i64 %33
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %5, { 2, 0, 1, 3, 4 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64, i64, i32)* @get_data_to_compute, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
reposvul_c_test | inject_emulated_exception_9 | inject_emulated_exception | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 14
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2, i64 %2)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i64 %2, i64 %14, i32 %13)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%16 = and i64 %1, 4294967295
%17 = call i64 @FUNC(i64 %2, i64 %16)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 2, 1, 3, 4, 5, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 0, 1, 3, 4, 2 }
} | 0 |
BinRealVul | qtrle_decode_16bpp_3608 | qtrle_decode_16bpp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rax.0.ph3.in.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%.reg2mem99 = alloca i64
%sv_0.17.reg2mem = alloca i32
%sv_1.18.reg2mem = alloca i32
%sv_2.19.reg2mem = alloca i32
%.reg2mem97 = alloca i64
%sv_1.05.reg2mem = alloca i32
%sv_2.06.reg2mem = alloca i32
%sv_1.2.be.reg2mem = alloca i32
%sv_0.2.be.reg2mem = alloca i32
%sv_0.212.reg2mem = alloca i32
%sv_1.213.reg2mem = alloca i32
%.reg2mem95 = alloca i64
%.reg2mem93 = alloca i32
%.in34.reg2mem = alloca i8
%.reg2mem91 = alloca i64
%storemerge1674.reg2mem = alloca i32
%sv_0.31575.reg2mem = alloca i32
%.in.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %2, 32
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = trunc i64 %1 to i32
%19 = and i64 %1, 4294967295
%20 = icmp slt i32 %18, 8
store i64 %19, i64* %rax.0.reg2mem
br i1 %20, label LBL_27, label LBL_1
LBL_1:
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, 5
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = and i8 %26, 8
%28 = icmp eq i8 %27, 0
store i32 6, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i32 %17, i32* %sv_3.0.reg2mem
br i1 %28, label LBL_4, label LBL_2
LBL_2:
%29 = icmp ugt i32 %18, 13
store i64 %19, i64* %rax.0.reg2mem
br i1 %29, label LBL_3, label LBL_27
LBL_3:
%30 = add i64 %23, 6
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = zext i8 %32 to i32
%34 = mul i32 %33, 256
%35 = add i64 %23, 7
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = zext i8 %37 to i32
%39 = or i32 %34, %38
%40 = add i64 %23, 10
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = zext i8 %42 to i32
%44 = mul i32 %43, 256
%45 = add i64 %23, 11
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%48 = zext i8 %47 to i32
%49 = or i32 %44, %48
store i32 14, i32* %sv_0.0.reg2mem
store i32 %39, i32* %sv_4.0.reg2mem
store i32 %49, i32* %sv_3.0.reg2mem
br label LBL_4
LBL_4:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%50 = icmp eq i32 %sv_3.0.reload, 0
%51 = icmp eq i1 %50, false
store i32 %sv_3.0.reload, i32* %rax.0.ph3.in.reg2mem
br i1 %51, label LBL_5, label LBL_26
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%52 = or i32 %sv_0.0.reload, 1
%53 = icmp ult i32 %52, %18
store i32 %18, i32* %rax.0.ph3.in.reg2mem
br i1 %53, label LBL_6, label LBL_26
LBL_6:
%54 = mul i32 %17, %7
%55 = bitcast i64* %rdi to i32*
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%56 = sext i32 %54 to i64
%57 = mul i32 %sv_4.0.reload, %7
store i32 %52, i32* %.reg2mem
store i32 %sv_3.0.reload, i32* %.in.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.31575.reg2mem
store i32 %57, i32* %storemerge1674.reg2mem
store i64 %23, i64* %.reg2mem91
br label LBL_7
LBL_7:
%.reload92 = load i64, i64* %.reg2mem91
%storemerge1674.reload = load i32, i32* %storemerge1674.reg2mem
%sv_0.31575.reload = load i32, i32* %sv_0.31575.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%.reload = load i32, i32* %.reg2mem
%58 = add i32 %sv_0.31575.reload, 2
%59 = sext i32 %.reload to i64
%60 = add i64 %.reload92, %59
%61 = inttoptr i64 %60 to i8*
%62 = load i8, i8* %61, align 1
%63 = icmp eq i8 %62, -1
%64 = icmp eq i1 %63, false
store i64 %.reload92, i64* %.reg2mem99
store i32 %58, i32* %.lcssa.reg2mem
br i1 %64, label LBL_8, label LBL_21
LBL_8:
%65 = add i32 %storemerge1674.reload, -2
%66 = sext i32 %sv_0.31575.reload to i64
%67 = add i64 %.reload92, %66
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = zext i8 %69 to i32
%71 = mul i32 %70, 2
%72 = add i32 %65, %71
store i8 %62, i8* %.in34.reg2mem
store i32 %58, i32* %.reg2mem93
store i64 %.reload92, i64* %.reg2mem95
store i32 %72, i32* %sv_1.213.reg2mem
store i32 %.reload, i32* %sv_0.212.reg2mem
br label LBL_9
LBL_9:
%sv_0.212.reload = load i32, i32* %sv_0.212.reg2mem
%sv_1.213.reload = load i32, i32* %sv_1.213.reg2mem
%.reload96 = load i64, i64* %.reg2mem95
%.reload94 = load i32, i32* %.reg2mem93
%.in34.reload = load i8, i8* %.in34.reg2mem
%73 = icmp eq i8 %.in34.reload, 0
%74 = icmp eq i1 %73, false
br i1 %74, label LBL_13, label LBL_10
LBL_10:
%75 = load i32, i32* %55, align 8
%76 = zext i32 %75 to i64
%77 = sext i32 %.reload94 to i64
%78 = icmp slt i64 %77, %76
store i64 %76, i64* %rax.0.reg2mem
br i1 %78, label LBL_11, label LBL_27
LBL_11:
%79 = add i32 %sv_0.212.reload, 2
%80 = add i64 %.reload96, %77
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = zext i8 %82 to i32
%84 = mul i32 %83, 2
%85 = add i32 %sv_1.213.reload, -2
%86 = add i32 %85, %84
%87 = icmp sgt i32 %86, %54
store i32 %79, i32* %sv_0.2.be.reg2mem
store i32 %86, i32* %sv_1.2.be.reg2mem
br i1 %87, label LBL_25, label LBL_12
LBL_12:
%sv_1.2.be.reload = load i32, i32* %sv_1.2.be.reg2mem
%sv_0.2.be.reload = load i32, i32* %sv_0.2.be.reg2mem
%88 = load i64, i64* %22, align 8
%89 = add i32 %sv_0.2.be.reload, 1
%90 = sext i32 %sv_0.2.be.reload to i64
%91 = add i64 %88, %90
%92 = inttoptr i64 %91 to i8*
%93 = load i8, i8* %92, align 1
%94 = icmp eq i8 %93, -1
%95 = icmp eq i1 %94, false
store i8 %93, i8* %.in34.reg2mem
store i32 %89, i32* %.reg2mem93
store i64 %88, i64* %.reg2mem95
store i32 %sv_1.2.be.reload, i32* %sv_1.213.reg2mem
store i32 %sv_0.2.be.reload, i32* %sv_0.212.reg2mem
store i64 %88, i64* %.reg2mem99
store i32 %89, i32* %.lcssa.reg2mem
br i1 %95, label LBL_9, label LBL_21
LBL_13:
%96 = sext i8 %.in34.reload to i32
%97 = icmp slt i8 %.in34.reload, 0
%98 = icmp eq i1 %97, false
br i1 %98, label LBL_17, label LBL_14
LBL_14:
%99 = add i32 %sv_0.212.reload, 2
%100 = load i32, i32* %55, align 8
%101 = icmp ult i32 %99, %100
br i1 %101, label LBL_15, label LBL_24
LBL_15:
%102 = sub nsw i32 0, %96
%103 = sext i32 %.reload94 to i64
%104 = add i64 %.reload96, %103
%105 = inttoptr i64 %104 to i8*
%106 = load i8, i8* %105, align 1
%107 = zext i8 %106 to i16
%108 = mul i16 %107, 256
%109 = add i64 %104, 1
%110 = inttoptr i64 %109 to i8*
%111 = load i8, i8* %110, align 1
%112 = zext i8 %111 to i16
%113 = or i16 %108, %112
%114 = add i32 %sv_0.212.reload, 3
%115 = mul i32 %102, 2
%116 = add i32 %sv_1.213.reload, %115
%117 = zext i32 %116 to i64
%118 = icmp slt i64 %56, %117
store i32 %102, i32* %sv_2.06.reg2mem
store i32 %sv_1.213.reload, i32* %sv_1.05.reg2mem
store i64 %117, i64* %rax.0.reg2mem
br i1 %118, label LBL_27, label LBL_16
LBL_16:
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%sv_2.06.reload = load i32, i32* %sv_2.06.reg2mem
%119 = add i32 %sv_2.06.reload, -1
%120 = sext i32 %sv_1.05.reload to i64
%121 = add i64 %12, %120
%122 = inttoptr i64 %121 to i16*
store i16 %113, i16* %122, align 2
%123 = add i32 %sv_1.05.reload, 2
%124 = icmp eq i32 %119, 0
%125 = icmp eq i1 %124, false
store i32 %114, i32* %sv_0.2.be.reg2mem
store i32 %123, i32* %sv_1.2.be.reg2mem
store i32 %119, i32* %sv_2.06.reg2mem
store i32 %123, i32* %sv_1.05.reg2mem
br i1 %125, label LBL_16, label LBL_12
LBL_17:
%126 = mul i32 %96, 2
%127 = add i32 %126, %.reload94
%128 = load i32, i32* %55, align 8
%129 = icmp ugt i32 %127, %128
br i1 %129, label LBL_23, label LBL_18
LBL_18:
%130 = add i32 %sv_1.213.reload, %126
%131 = zext i32 %130 to i64
%132 = icmp slt i64 %56, %131
store i64 %.reload96, i64* %.reg2mem97
store i32 %96, i32* %sv_2.19.reg2mem
store i32 %sv_1.213.reload, i32* %sv_1.18.reg2mem
store i32 %.reload94, i32* %sv_0.17.reg2mem
store i64 %131, i64* %rax.0.reg2mem
br i1 %132, label LBL_27, label LBL_19
LBL_19:
%sv_0.17.reload = load i32, i32* %sv_0.17.reg2mem
%sv_1.18.reload = load i32, i32* %sv_1.18.reg2mem
%sv_2.19.reload = load i32, i32* %sv_2.19.reg2mem
%.reload98 = load i64, i64* %.reg2mem97
%133 = add i32 %sv_2.19.reload, -1
%134 = sext i32 %sv_0.17.reload to i64
%135 = add i64 %.reload98, %134
%136 = inttoptr i64 %135 to i8*
%137 = load i8, i8* %136, align 1
%138 = zext i8 %137 to i16
%139 = mul i16 %138, 256
%140 = add i64 %135, 1
%141 = inttoptr i64 %140 to i8*
%142 = load i8, i8* %141, align 1
%143 = zext i8 %142 to i16
%144 = or i16 %139, %143
%145 = add i32 %sv_0.17.reload, 2
%146 = sext i32 %sv_1.18.reload to i64
%147 = add i64 %12, %146
%148 = inttoptr i64 %147 to i16*
store i16 %144, i16* %148, align 2
%149 = add i32 %sv_1.18.reload, 2
%150 = icmp eq i32 %133, 0
%151 = icmp eq i1 %150, false
store i32 %145, i32* %sv_0.2.be.reg2mem
store i32 %149, i32* %sv_1.2.be.reg2mem
br i1 %151, label LBL_19.LBL_19_crit_edge, label LBL_12
LBL_20:
%.pre64 = load i64, i64* %22, align 8
store i64 %.pre64, i64* %.reg2mem97
store i32 %133, i32* %sv_2.19.reg2mem
store i32 %149, i32* %sv_1.18.reg2mem
store i32 %145, i32* %sv_0.17.reg2mem
br label LBL_19
LBL_21:
%152 = add i32 %.in.reload, -1
%153 = icmp eq i32 %152, 0
%154 = icmp eq i1 %153, false
store i32 %152, i32* %rax.0.ph3.in.reg2mem
br i1 %154, label LBL_21.dec_label_pc_40129f_crit_edge, label LBL_26
LBL_22:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%.reload100 = load i64, i64* %.reg2mem99
%155 = add i32 %storemerge1674.reload, %7
%.pre = load i32, i32* %55, align 8
%156 = add i32 %.lcssa.reload, 1
%157 = icmp ult i32 %156, %.pre
store i32 %156, i32* %.reg2mem
store i32 %152, i32* %.in.reg2mem
store i32 %.lcssa.reload, i32* %sv_0.31575.reg2mem
store i32 %155, i32* %storemerge1674.reg2mem
store i64 %.reload100, i64* %.reg2mem91
store i32 %.pre, i32* %rax.0.ph3.in.reg2mem
br i1 %157, label LBL_7, label LBL_26
LBL_23:
%158 = zext i32 %128 to i64
store i64 %158, i64* %rax.0.reg2mem
br label LBL_27
LBL_24:
%159 = zext i32 %100 to i64
store i64 %159, i64* %rax.0.reg2mem
br label LBL_27
LBL_25:
%160 = zext i32 %86 to i64
store i64 %160, i64* %rax.0.reg2mem
br label LBL_27
LBL_26:
%rax.0.ph3.in.reload = load i32, i32* %rax.0.ph3.in.reg2mem
%rax.0.ph3 = zext i32 %rax.0.ph3.in.reload to i64
store i64 %rax.0.ph3, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.lcssa.reload, { 1, 0 }
uselistorder i32 %152, { 1, 0, 2 }
uselistorder i32 %sv_0.17.reload, { 1, 0 }
uselistorder i32 %126, { 1, 0 }
uselistorder i32 %sv_0.2.be.reload, { 2, 1, 0 }
uselistorder i32 %86, { 1, 0, 2 }
uselistorder i8 %.in34.reload, { 2, 0, 1 }
uselistorder i32 %.reload94, { 0, 3, 2, 1 }
uselistorder i64 %.reload96, { 0, 2, 1 }
uselistorder i32 %sv_1.213.reload, { 0, 4, 1, 3, 2 }
uselistorder i32 %58, { 1, 0 }
uselistorder i32 %sv_0.31575.reload, { 1, 0 }
uselistorder i64 %.reload92, { 1, 3, 0, 2 }
uselistorder i32* %55, { 0, 3, 2, 1 }
uselistorder i32 %sv_3.0.reload, { 1, 0, 2 }
uselistorder i64 %23, { 0, 2, 1, 4, 3, 5 }
uselistorder i32 %18, { 0, 1, 3, 2 }
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.31575.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1674.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem91, { 1, 0, 2 }
uselistorder i8* %.in34.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem93, { 1, 0, 2 }
uselistorder i64* %.reg2mem95, { 1, 0, 2 }
uselistorder i32* %sv_1.213.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.212.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.2.be.reg2mem, { 2, 1, 0, 3 }
uselistorder i32* %sv_1.2.be.reg2mem, { 2, 1, 0, 3 }
uselistorder i32* %sv_2.06.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem97, { 2, 0, 1 }
uselistorder i32* %sv_2.19.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.18.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.17.reg2mem, { 2, 0, 1 }
uselistorder i32* %rax.0.ph3.in.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 4, 5, 6, 2, 1, 3, 8, 9 }
uselistorder i8 -1, { 1, 0 }
uselistorder i32 2, { 7, 8, 0, 9, 1, 5, 2, 6, 3, 4 }
uselistorder i1 false, { 7, 2, 3, 4, 6, 5, 1, 0 }
uselistorder label LBL_27, { 6, 5, 4, 3, 1, 0, 2, 8, 7 }
uselistorder label LBL_26, { 1, 2, 0, 3 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | vnc_display_local_addr_14607 | vnc_display_local_addr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
%1 = load i32*, i32** @gv_0, align 8
%.ptr = bitcast i64* %arg1 to i32*
%storemerge.ptr = select i1 %0, i32* %1, i32* %.ptr
%2 = load i32, i32* %storemerge.ptr, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %3)
ret i64 %4
} | 1 |
BinRealVul | mxf_read_seek_16098 | mxf_read_seek | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%sext = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext, 29
%7 = add i64 %5, %6
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = trunc i64 %1 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_1:
%13 = inttoptr i64 %9 to i32*
%14 = icmp slt i64 %arg3, 0
%15 = icmp eq i1 %14, false
%spec.select = select i1 %15, i64 %arg3, i64 0
%16 = add i64 %9, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = load i32, i32* %13, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %spec.select, i64 %20, i32 %18)
%sext3 = mul i64 %1, 4294967296
%22 = ashr exact i64 %sext3, 32
%23 = mul i64 %21, %22
%24 = ashr i64 %23, 3
%25 = add i64 %2, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 %24, i64 0)
%29 = call i64 @FUNC(i64 %2, i64 %9, i64 %spec.select)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | wmv2_decode_init_2375 | wmv2_decode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = add i64 %0, 8
%7 = call i64 @FUNC(i64 %0, i64 %6)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | recode_subtitle_3656 | recode_subtitle | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_12
LBL_1:
%7 = ptrtoint i64* %arg3 to i64
%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 = inttoptr i64 %11 to i8*
%13 = call i64* @iconv_open(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %12)
%14 = icmp eq i64* %13, inttoptr (i64 -1 to i64*)
%15 = icmp eq i1 %14, false
%16 = zext i1 %15 to i64
%17 = call i64 @FUNC(i64 %16)
store i64 %7, i64* %sv_5, align 8
%18 = add i64 %7, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %20 to i64
store i64 %21, i64* %sv_4, align 8
%22 = icmp ult i32 %20, 536870879
br i1 %22, label LBL_3, label LBL_2
LBL_2:
%23 = call i64 @FUNC(i64 %8, i64 0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i32 -12, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_3:
%24 = mul i64 %21, 4
%25 = call i64 @FUNC(i64* nonnull %sv_3, i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %26, 0
store i32 %26, i32* %sv_0.0.reg2mem
br i1 %27, label LBL_9, label LBL_4
LBL_4:
%28 = ptrtoint i64* %arg2 to i64
%29 = add i64 %28, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %sv_3, align 8
store i64 %31, i64* %arg2, align 8
%32 = add i64 %28, 8
%33 = inttoptr i64 %32 to i32*
store i64 %24, i64* %sv_2, align 8
%34 = load i32, i32* %33, align 4
store i32 %34, i32* %sv_1, align 4
%35 = ptrtoint i64* %sv_4 to i64
%36 = bitcast i64* %sv_5 to i8**
%37 = bitcast i64* %sv_4 to i32*
%38 = bitcast i64* %sv_2 to i8**
%39 = call i32 @iconv(i64* %13, i8** nonnull %36, i32* nonnull %37, i8** nonnull %38, i32* nonnull %sv_1)
%40 = icmp eq i32 %39, -1
store i64 %35, i64* %rdx.0.reg2mem
br i1 %40, label LBL_7, label LBL_5
LBL_5:
%41 = call i32 @iconv(i64* %13, i8** null, i32* null, i8** nonnull %38, i32* nonnull %sv_1)
%42 = icmp eq i32 %41, -1
store i64 0, i64* %rdx.0.reg2mem
br i1 %42, label LBL_7, label LBL_6
LBL_6:
%43 = load i32, i32* %33, align 4
%44 = sext i32 %43 to i64
%45 = load i32, i32* %sv_1, align 4
%46 = icmp ugt i32 %43, %45
%47 = load i64, i64* %sv_4, align 8
%48 = icmp eq i64 %47, 0
%or.cond = icmp eq i1 %46, %48
store i64 %44, i64* %rdx.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%49 = load i64, i64* %10, align 8
%50 = call i64 @FUNC(i64 %8, i64 0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_2, i64 0, i64 0), i64 %rdx.0.reload, i64 %49, i64 %1)
%51 = call i64 @FUNC(i64* nonnull %sv_3)
%52 = call i32* @__errno_location()
%53 = load i32, i32* %52, align 4
%54 = sub i32 0, %53
store i32 %54, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%55 = sub i32 %43, %45
store i32 %55, i32* %33, align 4
%56 = load i32, i32* %sv_1, align 4
%57 = sext i32 %55 to i64
%58 = inttoptr i64 %57 to i64*
%59 = call i64* @memset(i64* %58, i32 0, i32 %56)
store i32 %26, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_11, label LBL_10
LBL_10:
%60 = call i32 @iconv_close(i64* %13)
br label LBL_11
LBL_11:
%61 = zext i32 %sv_0.0.reload to i64
store i64 %61, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %24, { 1, 0 }
uselistorder i64* %13, { 2, 0, 1, 3 }
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64* %sv_3, { 0, 2, 1 }
uselistorder i32* %sv_1, { 2, 1, 4, 3, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | cpu_exec_16639 | cpu_exec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%1 = trunc i64 %0 to i32
store i32 %1, i32* @gv_0, align 4
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_9
LBL_1:
%5 = call i64 @FUNC()
%sext = mul i64 %0, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = bitcast i32* %sv_2 to i64*
%8 = call i64 @FUNC(i64* nonnull %7, i64 %6)
%9 = insertvalue [8 x i32] undef, i32 %1, 0
%10 = insertvalue %__jmp_buf_tag undef, [8 x i32] %9, 0
%11 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %10, 0
%12 = call i32 @__sigsetjmp([1 x %__jmp_buf_tag] %11, i32 0)
%13 = icmp eq i32 %12, 0
store i64 %6, i64* %.pre-phi.reg2mem
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = load i32, i32* @gv_0, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, 200
%17 = inttoptr i64 %16 to i32*
store i32 1, i32* %17, align 4
%18 = call i64 @FUNC()
%19 = call i64 @FUNC()
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i64 %15, i64* %.pre-phi.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC()
store i64 %15, i64* %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%23 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %7)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_5, label LBL_8
LBL_5:
store i64 0, i64* %sv_1, align 8
store i32 0, i32* %sv_0, align 4
%26 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_6, label LBL_7
LBL_6:
%29 = load i32, i32* %sv_0, align 4
%30 = load i64, i64* %sv_1, align 8
%31 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %30, i32 %29)
%32 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %31, i64* nonnull %sv_1, i32* nonnull %sv_0, i64* nonnull %7)
%33 = call i64 @FUNC(i64* nonnull %7, i64 %.pre-phi.reload)
%34 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %sv_1)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_6, label LBL_7
LBL_7:
%37 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %7)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_5, label LBL_8
LBL_8:
%40 = call i64 @FUNC()
store i32 0, i32* @gv_0, align 4
%41 = load i32, i32* %sv_2, align 4
%42 = zext i32 %41 to i64
store i64 %42, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.pre-phi.reload, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %7, { 3, 1, 2, 0, 4 }
uselistorder i64* %sv_1, { 1, 2, 3, 0, 4 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @cpu_handle_interrupt, { 1, 0 }
uselistorder i64 (i64, i64*)* @cpu_handle_exception, { 1, 0 }
uselistorder i32 0, { 2, 7, 6, 1, 5, 0, 8, 9, 3, 10, 4 }
uselistorder i32* @gv_0, { 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 1 |
BinRealVul | rend_get_service_list_mutable_9827 | rend_get_service_list_mutable | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = load i64, i64* @gv_0, align 8
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = load i64, i64* @gv_0, align 8
%spec.select = select i1 %6, i64 %7, i64 0
ret i64 %spec.select
LBL_2:
ret i64 %arg1
} | 0 |
BinRealVul | GrowMLUpool_9930 | GrowMLUpool | 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, null
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
%7 = mul i32 %4, 2
%storemerge = select i1 %6, i32 %7, i32 256
%8 = icmp ult i32 %storemerge, %4
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = ptrtoint i64* %arg1 to i64
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %10, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %13, i32 %storemerge)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_4
LBL_3:
store i64 %17, i64* %12, align 8
%20 = bitcast i64* %arg1 to i32*
store i32 %storemerge, i32* %20, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 0 }
uselistorder i32 %4, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | agp_num_entries_10030 | agp_num_entries | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
store i64 %8, i64* @0, align 8
store i32 0, i32* %sv_0.0.reg2mem
switch i32 %7, label LBL_6 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
]
LBL_1:
%9 = call i64 @FUNC(i64 %2)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_2:
%12 = call i64 @FUNC(i64 %2)
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
store i32 %14, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_3:
%15 = call i64 @FUNC(i64 %2)
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
store i32 %17, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_4:
%18 = call i64 @FUNC(i64 %2)
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_5:
%21 = call i64 @FUNC(i64 %2)
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
store i32 %23, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%24 = load i32, i32* @gv_1, align 4
%25 = ashr i32 %24, 12
%26 = sub i32 %sv_0.0.reload, %25
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
%29 = zext i32 %26 to i64
%30 = select i1 %28, i64 %29, i64 0
ret i64 %30
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder label LBL_6, { 1, 2, 3, 4, 5, 0 }
} | 0 |
BinRealVul | copy_to_user_auth_13475 | copy_to_user_auth | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 96
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = sdiv i32 %4, 16384
%6 = add nsw i32 %5, 100
%7 = zext i32 %6 to i64
%8 = call i64 @FUNC(i64 %0, i64 1, i64 %7)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967206, i64* %storemerge.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_1:
%11 = call i64 @FUNC(i64 %8)
%12 = inttoptr i64 %11 to i8*
%13 = bitcast i64* %arg1 to i8*
%14 = call i8* @strncpy(i8* %12, i8* %13, i32 32)
%15 = load i32, i32* %3, align 4
%16 = sdiv i32 %15, 16384
%17 = add i64 %1, 32
%18 = add i64 %11, 32
%19 = inttoptr i64 %18 to i64*
%20 = inttoptr i64 %17 to i64*
%21 = call i64* @memcpy(i64* %19, i64* %20, i32 %16)
%22 = load i32, i32* %3, align 4
%23 = add i64 %11, 96
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ath10k_htt_tx_free_4819 | ath10k_htt_tx_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 40
%4 = call i64 @FUNC(i64 %3, i64 4198837, i64 %1)
%5 = call i64 @FUNC(i64 %3)
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %3, i32 0, i64 %8, i64 %12)
br label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %0)
%15 = call i64 @FUNC(i64 %0)
%16 = add i64 %0, 48
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = zext i1 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = call i64 @FUNC(i64 %16)
ret i64 %22
uselistorder i64 %0, { 3, 2, 1, 0, 4, 5, 6 }
uselistorder i32 0, { 1, 0, 2 }
} | 0 |
BinRealVul | test_co_queue_16146 | test_co_queue | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 4198741)
%1 = call i64 @FUNC(i64 4198748)
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %1, i64 0)
ret i64 %3
uselistorder i64 (i64, i64)* @qemu_coroutine_enter, { 1, 0 }
uselistorder i64 (i64)* @qemu_coroutine_create, { 1, 0 }
} | 1 |
BinRealVul | hstoreArrayToPairs_11853 | hstoreArrayToPairs | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.02.reg2mem = alloca i32
%sv_0.13.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sv_3 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %arg1, i64 0, i64 4294967295, i64 0, i64 105, i64* nonnull %sv_3)
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = bitcast i64* %arg2 to i32*
store i32 0, i32* %7, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%8 = sext i32 %3 to i64
%9 = mul nsw i64 %8, 40
%10 = call i64 @FUNC(i64 %9)
%11 = zext i32 %3 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_0.13.reg2mem
store i32 0, i32* %sv_1.02.reg2mem
br label LBL_3
LBL_3:
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%.reload = load i64, i64* %.reg2mem
%12 = add i64 %.reload, %2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 1
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = load i64, i64* %sv_3, align 8
%17 = mul i64 %.reload, 8
%18 = add i64 %16, %17
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = sext i32 %sv_0.13.reload to i64
%22 = mul nsw i64 %21, 40
%23 = add i64 %22, %10
%24 = call i64 @FUNC(i64 %20)
%25 = inttoptr i64 %23 to i64*
store i64 %24, i64* %25, align 8
%26 = load i64, i64* %sv_3, align 8
%27 = add i64 %26, %17
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = add i32 %31, -4
%33 = add i64 %23, 8
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %23, 16
%36 = inttoptr i64 %35 to i64*
store i64 0, i64* %36, align 8
%37 = add i64 %23, 24
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %23, 28
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = add i64 %23, 32
%42 = inttoptr i64 %41 to i32*
store i32 1, i32* %42, align 4
%43 = add i32 %sv_0.13.reload, 1
store i32 %43, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%44 = add i32 %sv_1.02.reload, 1
%45 = sext i32 %44 to i64
%46 = icmp slt i64 %45, %11
store i64 %45, i64* %.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
store i32 %44, i32* %sv_1.02.reg2mem
br i1 %46, label LBL_3, label LBL_6
LBL_6:
%47 = zext i32 %sv_0.0.reload to i64
%48 = call i64 @FUNC(i64 %10, i64 %47, i64* nonnull %sv_2)
%49 = trunc i64 %48 to i32
%50 = bitcast i64* %arg2 to i32*
store i32 %49, i32* %50, align 4
store i64 %10, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i32 %sv_0.13.reload, { 1, 2, 0 }
uselistorder i64 %10, { 0, 2, 1 }
uselistorder i64* %sv_3, { 1, 2, 0 }
uselistorder i32 %3, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i32 0, { 2, 3, 0, 1, 4, 5 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | vmdk_L2update_15972 | vmdk_L2update | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 16
%6 = mul i64 %0, 512
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 4
%12 = add i64 %11, %6
%13 = call i64 @FUNC(i64 %1, i64 %12, i64 %5, i64 4)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %15, label LBL_1, label LBL_4
LBL_1:
%16 = add i64 %4, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = inttoptr i64 %4 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %0, 12
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 8
%27 = add i64 %26, %21
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
store i64 %29, i64* %arg2, align 8
%30 = mul i64 %12, 512
%31 = load i32, i32* %8, align 4
%32 = sext i32 %31 to i64
%33 = mul i64 %32, 4
%34 = add i64 %33, %30
%35 = call i64 @FUNC(i64 %1, i64 %34, i64 %5, i64 4)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %37, label LBL_3, label LBL_4
LBL_3:
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64, i64, i64)* @bdrv_pwrite, { 1, 0 }
uselistorder i64 4, { 2, 0, 3, 1 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | path_15546 | path | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load [11 x i8]*, [11 x i8]** @gv_0, align 8
%3 = icmp ne [11 x i8]* %2, null
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 47
%or.cond = icmp eq i1 %5, %3
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i8* %arg1 to i64
ret i64 %6
LBL_2:
%7 = ptrtoint [11 x i8]* %2 to i64
%8 = ptrtoint i8* %arg1 to i64
%9 = call i64 @FUNC(i64 %7, i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
%spec.select = select i1 %11, i64 %9, i64 %8
ret i64 %spec.select
uselistorder i8* %arg1, { 1, 0 }
} | 1 |
BinRealVul | qed_aio_write_alloc_2835 | qed_aio_write_alloc | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %1)
%.pre = load i64, i64* %3, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%8 = icmp eq i64 %.reload, %0
store i64 %2, i64* %storemerge.reg2mem
br i1 %8, label LBL_5, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%9 = add i64 %storemerge.reload, 40
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %storemerge.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_4:
store i64 %0, i64* %10, align 8
%14 = add i64 %0, 40
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %15, align 8
%.pre3 = load i64, i64* %3, align 8
%16 = icmp eq i64 %.pre3, %0
%17 = icmp eq i1 %16, false
store i64 %.pre3, i64* %rax.0.reg2mem
br i1 %17, label LBL_9, label LBL_5
LBL_5:
%18 = inttoptr i64 %1 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = icmp eq i32 %19, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_9, label LBL_6
LBL_6:
%23 = add i64 %0, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %1, i64 %25)
%27 = add i64 %26, %arg2
%28 = call i64 @FUNC(i64 %1, i64 %27)
store i64 %28, i64* %arg1, align 8
%29 = call i64 @FUNC(i64 %1, i64 %1)
%30 = add i64 %0, 8
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = add i64 %0, 24
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = add i64 %0, 16
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %0, 48
%39 = call i64 @FUNC(i64 %38, i64 %37, i64 %34, i64 %arg2)
%40 = call i64 @FUNC(i64 %1)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label LBL_8, label LBL_7
LBL_7:
%43 = add i64 %1, 16
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = or i32 %45, 1
store i32 %46, i32* %44, align 4
%47 = call i64 @FUNC(i64 %1, i64 4198901, i64 %0)
store i64 %47, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%48 = call i64 @FUNC(i64 %0, i64 0)
store i64 %48, 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 %1, { 0, 1, 2, 4, 3, 5, 6, 8, 7, 9 }
uselistorder i64 %0, { 5, 4, 8, 7, 6, 9, 10, 0, 2, 3, 1, 11 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_9, { 2, 3, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | cpu_loongarch_hw_interrupts_pending_9398 | cpu_loongarch_hw_interrupts_pending | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = udiv i64 %3, 2
%5 = urem i64 %0, 2
%6 = and i64 %5, %4
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
%9 = zext i1 %8 to i64
ret i64 %9
uselistorder i64 2, { 1, 0 }
} | 0 |
BinRealVul | ext4_xattr_make_inode_space_11509 | ext4_xattr_make_inode_space | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i32* %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%sv_1.012.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%sv_3.2.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_3.16.reg2mem = alloca i64
%sv_5.17.reg2mem = alloca i64
%sv_4.18.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i64
%.reg2mem = alloca i16
%sext = mul i64 %arg4, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = icmp ugt i64 %0, %arg5
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_15
LBL_1:
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = bitcast i64* %arg3 to i16*
store i64 %arg5, i64* %sv_1.012.reg2mem
store i64 %arg6, i64* %sv_0.011.reg2mem
br label LBL_14
LBL_2:
%sv_3.16.reload = load i64, i64* %sv_3.16.reg2mem
%sv_5.17.reload = load i64, i64* %sv_5.17.reg2mem
%sv_4.18.reload = load i32, i32* %sv_4.18.reg2mem
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%.reload = load i16, i16* %.reg2mem
%6 = zext i16 %.reload to i32
%7 = add nuw nsw i32 %6, 12
%8 = add i64 %storemerge9.reload, 8
%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 %7, i32* %sv_2.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %storemerge9.reload, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add nuw nsw i32 %6, 24
%17 = add i32 %16, %15
store i32 %17, i32* %sv_2.0.reg2mem
br label LBL_4
LBL_4:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%18 = zext i32 %sv_2.0.reload to i64
%19 = icmp ult i64 %sv_0.011.reload, %18
%20 = icmp ult i32 %sv_2.0.reload, %sv_4.18.reload
%21 = icmp eq i1 %20, false
%or.cond = or i1 %19, %21
store i64 %sv_3.16.reload, i64* %sv_3.0.reg2mem
store i64 %sv_5.17.reload, i64* %sv_5.0.reg2mem
store i32 %sv_4.18.reload, i32* %sv_4.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %sv_1.012.reload, %18
%23 = icmp ult i64 %22, %0
%24 = icmp eq i1 %23, false
%storemerge.stack_var_-24.1 = select i1 %24, i64 %storemerge9.reload, i64 %sv_3.16.reload
%sv_5.1.storemerge = select i1 %24, i64 %sv_5.17.reload, i64 %storemerge9.reload
%sv_2.0.stack_var_-40.1 = select i1 %24, i32 %sv_2.0.reload, i32 %sv_4.18.reload
store i64 %storemerge.stack_var_-24.1, i64* %sv_3.0.reg2mem
store i64 %sv_5.1.storemerge, i64* %sv_5.0.reg2mem
store i32 %sv_2.0.stack_var_-40.1, i32* %sv_4.0.reg2mem
br label LBL_6
LBL_6:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%sv_5.0.reload = load i64, i64* %sv_5.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%25 = zext i16 %.reload to i64
%26 = add i64 %storemerge9.reload, 12
%27 = add i64 %26, %25
%28 = inttoptr i64 %27 to i16*
%29 = load i16, i16* %28, align 2
%30 = icmp eq i16 %29, 0
%31 = icmp eq i1 %30, false
store i16 %29, i16* %.reg2mem
store i64 %27, i64* %storemerge9.reg2mem
store i32 %sv_4.0.reload, i32* %sv_4.18.reg2mem
store i64 %sv_5.0.reload, i64* %sv_5.17.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.16.reg2mem
br i1 %31, label LBL_2, label LBL_7
LBL_7:
%32 = icmp eq i64 %sv_3.0.reload, 0
%33 = icmp eq i1 %32, false
store i64 %sv_3.0.reload, i64* %sv_3.2.reg2mem
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = icmp eq i64 %sv_5.0.reload, 0
%35 = icmp eq i1 %34, false
store i64 %sv_5.0.reload, i64* %sv_3.2.reg2mem
store i64 4294967268, i64* %rax.0.reg2mem
br i1 %35, label LBL_9, label LBL_15
LBL_9:
%sv_3.2.reload = load i64, i64* %sv_3.2.reg2mem
%36 = inttoptr i64 %sv_3.2.reload to i16*
%37 = load i16, i16* %36, align 2
%38 = zext i16 %37 to i32
%39 = add nuw nsw i32 %38, 12
%40 = add i64 %sv_3.2.reload, 8
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
store i32 %39, i32* %sv_2.1.reg2mem
br i1 %44, label LBL_11, label LBL_10
LBL_10:
%45 = add i64 %sv_3.2.reload, 4
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add nuw nsw i32 %38, 24
%49 = add i32 %48, %47
store i32 %49, i32* %sv_2.1.reg2mem
br label LBL_11
LBL_11:
%50 = call i64 @FUNC(i64 %4, i64 %3, i64 %2, i64 %sv_3.2.reload)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_13, label LBL_12
LBL_12:
%53 = and i64 %50, 4294967295
store i64 %53, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%54 = load i32, i32* %arg7, align 4
%55 = sub i32 %54, %39
store i32 %55, i32* %arg7, align 4
%56 = zext i32 %sv_2.1.reload to i64
%57 = add i64 %sv_1.012.reload, %56
%58 = sub i64 %sv_0.011.reload, %56
%59 = icmp ult i64 %57, %0
store i64 %57, i64* %sv_1.012.reg2mem
store i64 %58, i64* %sv_0.011.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %59, label LBL_14, label LBL_15
LBL_14:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%sv_1.012.reload = load i64, i64* %sv_1.012.reg2mem
%60 = load i16, i16* %5, align 2
%61 = icmp eq i16 %60, 0
%62 = icmp eq i1 %61, false
store i16 %60, i16* %.reg2mem
store i64 %2, i64* %storemerge9.reg2mem
store i32 -1, i32* %sv_4.18.reg2mem
store i64 0, i64* %sv_5.17.reg2mem
store i64 0, i64* %sv_3.16.reg2mem
store i64 4294967268, i64* %rax.0.reg2mem
br i1 %62, label LBL_2, label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.011.reload, { 1, 0 }
uselistorder i64 %56, { 1, 0 }
uselistorder i32 %39, { 1, 0 }
uselistorder i64 %sv_3.2.reload, { 3, 1, 2, 0 }
uselistorder i32 %sv_2.0.reload, { 2, 1, 0 }
uselistorder i16 %.reload, { 1, 0 }
uselistorder i32 %sv_4.18.reload, { 1, 0, 2 }
uselistorder i64 %sv_5.17.reload, { 1, 0 }
uselistorder i64 %sv_3.16.reload, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i16* %.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge9.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_4.18.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_5.17.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_3.16.reg2mem, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 5, 2, 4 }
uselistorder i32 24, { 1, 0 }
uselistorder i1 false, { 0, 2, 5, 6, 7, 3, 1, 4 }
uselistorder i32* %arg7, { 1, 0 }
uselistorder label LBL_15, { 0, 2, 4, 1, 3 }
uselistorder label LBL_14, { 1, 0 }
} | 1 |
BinRealVul | gf_sm_del_10710 | gf_sm_del | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.lcssa.reg2mem = alloca i64
%rdi.01.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %.reg2mem
store i64 %arg1, i64* %rdi.01.reg2mem
store i64 %arg1, i64* %rdi.0.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%.reload = load i64, i64* %.reg2mem
%4 = add i64 %.reload, 4294967295
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %rdi.01.reload, i64 %5)
%7 = call i64 @FUNC(i64 %rdi.01.reload, i64 %5)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %6)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 %9, i64* %.reg2mem
store i64 %6, i64* %rdi.01.reg2mem
store i64 %6, i64* %rdi.0.lcssa.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_2:
%rdi.0.lcssa.reload = load i64, i64* %rdi.0.lcssa.reg2mem
%13 = call i64 @FUNC(i64 %rdi.0.lcssa.reload)
%14 = add i64 %arg1, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %16)
br label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %arg1)
ret i64 %19
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %rdi.01.reload, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64)* @gf_list_count, { 1, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 4, 0, 1, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | rv34_idct_dc_add_c_434 | rv34_idct_dc_add_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = mul i32 %arg3, 169
%2 = add i32 %1, 512
%3 = ashr i32 %2, 10
%4 = sext i32 %3 to i64
%5 = add i64 %4, ptrtoint (i64* @gv_0 to i64)
store i32 0, i32* %storemerge4.reg2mem
store i64 %0, i64* %sv_0.03.reg2mem
br label LBL_3
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = add i64 %indvars.iv.reload, %sv_0.03.reload
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = zext i8 %8 to i64
%10 = add i64 %5, %9
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
store i8 %12, i8* %7, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%13 = add i64 %sv_0.03.reload, %arg2
%14 = add nuw nsw i32 %storemerge4.reload, 1
%exitcond5 = icmp eq i32 %14, 4
store i32 %14, i32* %storemerge4.reg2mem
store i64 %13, i64* %sv_0.03.reg2mem
br i1 %exitcond5, label LBL_4, label LBL_3
LBL_3:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_4:
ret i64 %arg2
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | mp_get_vlc_14745 | mp_get_vlc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = add i64 %2, 24
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %2, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %5, i64 %11, i32 %8, i64 1)
%phitmp = mul i64 %12, 4294967296
%phitmp1 = ashr exact i64 %phitmp, 30
store i64 %phitmp1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %15, %storemerge.reload
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
ret i64 %19
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ssl_parse_change_cipher_spec_10932 | ssl_parse_change_cipher_spec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %4, 4294967295
%8 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %7)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%9 = trunc i64 %1 to i32
%10 = icmp eq i32 %9, 20
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 1
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = add i64 %2, 8
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 1
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%22 = add i64 %2, 264
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i32 %24, 1
store i32 %25, i32* %23, align 4
%26 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0))
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 i64 %2, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i8*)* @SSL_DEBUG_MSG, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | qemu_opts_del_4026 | qemu_opts_del | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%cond = icmp eq i64 %arg1, 0
br i1 %cond, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %arg1)
br label LBL_1
LBL_2:
ret i64 %1
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | nbd_config_put_4966 | nbd_config_put | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem5 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem3 = alloca i64
%.reg2mem = alloca i64
%0 = add i64 %arg1, 40
%1 = add i64 %arg1, 32
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %2, i64* %rax.0.reg2mem
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1)
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %arg1, 48
%8 = call i64 @FUNC(i64 1, i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %arg1, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC(i64 %14, i64 4210752)
br label LBL_3
LBL_3:
%16 = add i64 %arg1, 8
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = call i64 @FUNC(i64 %arg1)
%19 = trunc i64 %arg1 to i32
%20 = icmp eq i32 %19, 0
store i64 %arg1, i64* %.reg2mem5
br i1 %20, label LBL_7, label LBL_4
LBL_4:
%21 = inttoptr i64 %0 to i64*
%22 = load i64, i64* %21, align 8
%23 = and i64 %arg1, 4294967295
store i64 %22, i64* %.reg2mem
store i64 0, i64* %.reg2mem3
store i32 0, i32* %storemerge1.reg2mem
br label LBL_5
LBL_5:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload4 = load i64, i64* %.reg2mem3
%.reload = load i64, i64* %.reg2mem
%24 = mul i64 %.reload4, 8
%25 = add i64 %24, %.reload
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = load i64, i64* %21, align 8
%32 = add i64 %31, %24
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i32 %storemerge1.reload, 1
%37 = sext i32 %36 to i64
%38 = icmp sgt i64 %23, %37
%39 = load i64, i64* %21, align 8
store i64 %39, i64* %.reg2mem
store i64 %37, i64* %.reg2mem3
store i32 %36, i32* %storemerge1.reg2mem
br i1 %38, label LBL_5, label LBL_6
LBL_6:
%40 = call i64 @FUNC(i64 %39)
store i64 %39, i64* %.reg2mem5
br label LBL_7
LBL_7:
%.reload6 = load i64, i64* %.reg2mem5
%41 = call i64 @FUNC(i64 %.reload6)
%42 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %42, align 8
%43 = add i64 %arg1, 16
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
%45 = add i64 %arg1, 24
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 1, i64 %49)
%51 = call i64 @FUNC(i64 %0)
%52 = call i64 @FUNC(i64 %arg1)
%53 = load i64, i64* @gv_0, align 8
%54 = call i64 @FUNC(i64 %53)
store i64 %54, 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 %39, { 0, 2, 1 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64* %21, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem3, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem5, { 0, 2, 1 }
uselistorder i64 (i64)* @kfree, { 2, 0, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder i64 %arg1, { 5, 6, 7, 8, 1, 0, 3, 9, 10, 4, 2, 12, 11, 13, 14 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | k_shift_7346 | k_shift | define i64 @FUNC(i8* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%storemerge8.in.reg2mem = alloca i32
%.reg2mem9 = alloca i32
%.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = icmp eq i32 %0, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_18, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 72057594037927936
%4 = ashr exact i64 %sext, 56
%5 = load i32, i32* @gv_1, align 4
%6 = trunc i64 %4 to i8
%7 = icmp eq i8 %6, 1
%8 = icmp eq i1 %7, false
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = icmp eq i8 %arg3, 0
%10 = icmp eq i1 %9, false
store i64 2, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = load i32*, i32** @gv_2, align 8
%12 = ptrtoint i32* %11 to i64
%13 = call i64 @FUNC(i64 %12, i64 3)
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = icmp eq i8 %arg3, 0
%15 = mul i64 %sv_0.0.reload, 4
%16 = and i64 %15, 1020
%17 = add i64 %16, ptrtoint (i32** @gv_3 to i64)
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
br i1 %14, label LBL_8, label LBL_5
LBL_5:
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_6, label LBL_7
LBL_6:
%21 = trunc i64 %sv_0.0.reload to i32
%22 = urem i32 %21, 32
%23 = shl i32 1, %22
store i32 %23, i32* %.reg2mem
store i32 %22, i32* %.reg2mem9
br label LBL_11
LBL_7:
%24 = add i32 %19, -1
store i32 %24, i32* %storemerge.reg2mem
br label LBL_9
LBL_8:
%25 = add i32 %19, 1
store i32 %25, i32* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
store i32 %storemerge.reload, i32* %18, align 4
%26 = icmp eq i32 %storemerge.reload, 0
%27 = trunc i64 %sv_0.0.reload to i32
%28 = urem i32 %27, 32
%29 = shl i32 1, %28
store i32 %29, i32* %.reg2mem
store i32 %28, i32* %.reg2mem9
br i1 %26, label LBL_11, label LBL_10
LBL_10:
%30 = load i32, i32* @gv_1, align 4
%31 = or i32 %30, %29
store i32 %31, i32* %storemerge8.in.reg2mem
br label LBL_12
LBL_11:
%.reload10 = load i32, i32* %.reg2mem9
%.reload = load i32, i32* %.reg2mem
%32 = icmp eq i32 %.reload10, 0
%33 = sub i32 0, %.reload
%34 = sub i32 %33, 1
%storemerge5 = select i1 %32, i32 -2, i32 %34
%35 = load i32, i32* @gv_1, align 4
%36 = and i32 %storemerge5, %35
store i32 %36, i32* %storemerge8.in.reg2mem
br label LBL_12
LBL_12:
%storemerge8.in.reload = load i32, i32* %storemerge8.in.reg2mem
%storemerge8 = zext i32 %storemerge8.in.reload to i64
store i32 %storemerge8.in.reload, i32* @gv_1, align 4
%37 = icmp eq i32 %5, %storemerge8.in.reload
%or.cond = or i1 %14, %37
store i64 %storemerge8, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_18, label LBL_13
LBL_13:
%38 = load i32, i32* @gv_4, align 4
%39 = icmp eq i32 %38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_18, label LBL_14
LBL_14:
%40 = load i32*, i32** @gv_2, align 8
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %41, 4
%43 = icmp eq i1 %42, false
%44 = load i32, i32* @gv_5, align 4
%45 = ptrtoint i8* %arg1 to i64
br i1 %43, label LBL_16, label LBL_15
LBL_15:
%46 = zext i32 %44 to i64
%47 = call i64 @FUNC(i64 %45, i64 %46)
store i64 %47, i64* %storemerge4.reg2mem
br label LBL_17
LBL_16:
%48 = urem i32 %44, 256
%49 = zext i32 %48 to i64
%50 = call i64 @FUNC(i64 %45, i64 %49)
store i64 %50, i64* %storemerge4.reg2mem
br label LBL_17
LBL_17:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
store i32 0, i32* @gv_4, align 4
store i64 %storemerge4.reload, 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 %45, { 1, 0 }
uselistorder i32 %storemerge8.in.reload, { 2, 1, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32 %19, { 2, 0, 1 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32* @gv_4, { 1, 0 }
uselistorder i32** @gv_2, { 1, 0 }
uselistorder i32* @gv_1, { 0, 3, 2, 1 }
uselistorder i32 0, { 5, 6, 0, 7, 8, 9, 10, 1, 2, 3, 4 }
uselistorder i8 %arg3, { 1, 0 }
uselistorder label LBL_18, { 1, 2, 3, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | bdrv_set_backing_hd_16495 | bdrv_set_backing_hd | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
br i1 %6, label LBL_6, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i64, i64* %3, align 8
store i64 %.pre, i64* %.reg2mem
store i64 ptrtoint ([20 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_6
LBL_3:
%7 = icmp eq i64* %arg2, null
br i1 %7, label LBL_4, label LBL_5
LBL_4:
call void @llvm.trap()
unreachable
LBL_5:
%8 = call i64 @FUNC(i64 %0)
%9 = add i64 %0, 8
%10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_3, i64 0, i64 0), i64 %8)
call void @llvm.trap()
unreachable
LBL_6:
%11 = ptrtoint i64* %arg2 to i64
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%12 = call i64 @FUNC(i64 %rdi.0.reload, i64 %.reload)
store i64 %11, i64* %arg1, align 8
%13 = icmp eq i64* %arg2, null
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_8, label LBL_7
LBL_7:
%15 = load i64, i64* %3, align 8
%16 = call i64 @FUNC(i64 %15)
store i64 0, i64* %3, align 8
br label LBL_11
LBL_8:
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = and i32 %19, -2
store i32 %20, i32* %18, align 4
%21 = add i64 %11, 544
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %0, 20
%25 = call i64 @FUNC(i64 %24, i64 256, i64 %23)
%26 = add i64 %11, 536
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
store i64 ptrtoint (i64* @gv_4 to i64), i64* %storemerge.reg2mem
br i1 %29, label LBL_10, label LBL_9
LBL_9:
%30 = inttoptr i64 %28 to i64*
%31 = load i64, i64* %30, align 8
store i64 %31, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%32 = add i64 %0, 276
%33 = call i64 @FUNC(i64 %32, i64 256, i64 %storemerge.reload)
%34 = load i64, i64* %3, align 8
%35 = call i64 @FUNC(i64 %32, i64 %34)
%36 = load i64, i64* %3, align 8
%37 = call i64 @FUNC(i64 %32, i64 1, i64 %36)
br label LBL_11
LBL_11:
%38 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %38
uselistorder i64* %3, { 1, 0, 3, 2, 4, 5 }
uselistorder i64 %0, { 4, 5, 6, 7, 3, 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @pstrcpy, { 1, 0 }
uselistorder void ()* @llvm.trap, { 1, 0 }
uselistorder [20 x i8]* @gv_0, { 1, 0 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | video_write_6610 | video_write | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%.reg2mem9 = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
store i64 %arg1, i64* %sv_2, align 8
%0 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 19, i64* %rax.0.shrunk.reg2mem
br i1 %2, label LBL_1, label LBL_31
LBL_1:
%3 = call i64 @FUNC(i64 0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 1, i64* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_2, label LBL_31
LBL_2:
%7 = call i64 @FUNC(i64* nonnull %sv_2)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
store i32 0, i32* %sv_1.04.reg2mem
store i32 0, i32* %sv_1.0.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %9, label LBL_3, label LBL_27
LBL_3:
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_4
LBL_4:
%14 = or i32 %sv_1.04.reload, 1
store i32 %14, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%15 = call i64 @FUNC(i64* nonnull %sv_2)
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.06.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.04.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %17, label LBL_3, label LBL_27
LBL_6:
%18 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = or i32 %sv_0.06.reload, 1
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %22, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_8:
%23 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_10, label LBL_9
LBL_9:
%27 = or i32 %sv_1.04.reload, 2
store i32 %27, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_10:
%28 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0))
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_12, label LBL_11
LBL_11:
%32 = or i32 %sv_0.06.reload, 2
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %32, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_12:
%33 = load i32, i32* @gv_4, align 4
%34 = icmp eq i32 %33, 1
%35 = icmp eq i1 %34, false
store i32 %33, i32* %.reg2mem9
br i1 %35, label LBL_16, label LBL_13
LBL_13:
%36 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0))
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_13.LBL_16_crit_edge, label LBL_15
LBL_14:
%.pre = load i32, i32* @gv_4, align 4
store i32 %.pre, i32* %.reg2mem9
br label LBL_16
LBL_15:
%40 = or i32 %sv_1.04.reload, 4
store i32 %40, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_16:
%.reload10 = load i32, i32* %.reg2mem9
%41 = icmp eq i32 %.reload10, 1
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_19, label LBL_17
LBL_17:
%43 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0))
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_19, label LBL_18
LBL_18:
%47 = or i32 %sv_0.06.reload, 4
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %47, i32* %sv_0.0.be.reg2mem
br label LBL_5
LBL_19:
%48 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_7, i64 0, i64 0))
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_21, label LBL_20
LBL_20:
%52 = call i64 @FUNC(i64 1)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %52, i64* %rax.0.shrunk.reg2mem
br i1 %54, label LBL_5, label LBL_31
LBL_21:
%55 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_8, i64 0, i64 0))
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_23, label LBL_22
LBL_22:
%59 = call i64 @FUNC(i64 0)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %59, i64* %rax.0.shrunk.reg2mem
br i1 %61, label LBL_5, label LBL_31
LBL_23:
%62 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_9, i64 0, i64 0))
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_25, label LBL_24
LBL_24:
%66 = call i64 @FUNC()
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %66, i64* %rax.0.shrunk.reg2mem
br i1 %68, label LBL_5, label LBL_31
LBL_25:
%69 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_10, i64 0, i64 0))
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, 0
%72 = icmp eq i1 %71, false
store i64 22, i64* %rax.0.shrunk.reg2mem
br i1 %72, label LBL_31, label LBL_26
LBL_26:
%73 = call i64 @FUNC()
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, 0
store i32 %sv_1.04.reload, i32* %sv_1.0.be.reg2mem
store i32 %sv_0.06.reload, i32* %sv_0.0.be.reg2mem
store i64 %73, i64* %rax.0.shrunk.reg2mem
br i1 %75, label LBL_5, label LBL_31
LBL_27:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%76 = or i32 %sv_0.0.lcssa.reload, %sv_1.0.lcssa.reload
%77 = icmp eq i32 %76, 0
br i1 %77, label LBL_30, label LBL_28
LBL_28:
%78 = call i64 @FUNC()
%79 = trunc i64 %78 to i32
%80 = icmp slt i32 %79, 0
%81 = icmp eq i1 %80, false
store i64 %78, i64* %rax.0.shrunk.reg2mem
br i1 %81, label LBL_29, label LBL_31
LBL_29:
%82 = sub i32 0, %sv_0.0.lcssa.reload
%83 = sub i32 %82, 1
%84 = and i32 %79, %83
%85 = or i32 %84, %sv_1.0.lcssa.reload
%86 = zext i32 %85 to i64
%87 = call i64 @FUNC(i64 %86)
%88 = trunc i64 %87 to i32
%89 = icmp eq i32 %88, 0
store i64 %87, i64* %rax.0.shrunk.reg2mem
br i1 %89, label LBL_30, label LBL_31
LBL_30:
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_31:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %sv_1.0.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %.reload, { 9, 8, 7, 5, 6, 0, 1, 2, 3, 4 }
uselistorder i32 %sv_0.06.reload, { 6, 5, 4, 3, 9, 2, 8, 1, 7, 0 }
uselistorder i32 %sv_1.04.reload, { 6, 5, 4, 3, 2, 9, 1, 8, 0, 7 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.be.reg2mem, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 0, 1 }
uselistorder i32* %.reg2mem9, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 10, 6, 7, 2, 1, 3, 4, 5, 8, 9 }
uselistorder i64 (i64)* @video_autosw_set, { 1, 0 }
uselistorder i64 (i64, i8*)* @strlencmp, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*)* @next_cmd, { 1, 0 }
uselistorder i1 false, { 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 12, 0, 15, 16 }
uselistorder i32 0, { 6, 4, 21, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0, 1, 2, 3, 22, 23 }
uselistorder i32 1, { 9, 10, 11, 14, 15, 13, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12 }
uselistorder label LBL_31, { 9, 5, 6, 1, 0, 2, 3, 4, 7, 8 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_5, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | getstr8_1410 | getstr8 | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64* nonnull %sv_0, i64 %arg2)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = load i64, i64* %sv_0, align 8
%7 = sub i64 %arg2, %6
%8 = icmp slt i64 %7, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%sext1 = add i64 %sext, 4294967296
%9 = ashr exact i64 %sext1, 32
%10 = call i64 @FUNC(i64 %9)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_4
LBL_3:
%13 = load i64, i64* %sv_0, align 8
%14 = inttoptr i64 %10 to i64*
%15 = inttoptr i64 %13 to i64*
%16 = call i64* @memcpy(i64* %14, i64* %15, i32 %2)
%17 = add i64 %10, %5
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %18, align 1
%19 = load i64, i64* %sv_0, align 8
%20 = add i64 %19, %5
store i64 %20, i64* %sv_0, align 8
store i64 %20, i64* %arg1, align 8
store i64 %10, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | read_header_tga_12378 | read_header_tga | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = load i32, i32* %0
%5 = load i32, i32* %0
%6 = load i32, i32* %0
%7 = load i32, i32* %0
%8 = load i32, i32* %0
%9 = load i32, i32* %0
%10 = load i32, i32* %0
%11 = load i32, i32* %0
%12 = load i32, i32* %0
%13 = load i32, i32* %0
%14 = load i32, i32* %0
%sv_0 = alloca i8, align 1
%15 = bitcast i8* %sv_0 to i64*
%16 = call i64 @FUNC(i64* nonnull %15, i64 18, i64 %1)
%17 = trunc i64 %16 to i32
%18 = icmp sgt i32 %17, 17
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%20 = ptrtoint i64* %arg2 to i64
%21 = load i8, i8* %sv_0, align 1
%22 = bitcast i64* %arg2 to i8*
store i8 %21, i8* %22, align 1
%23 = add i64 %20, 1
%24 = inttoptr i64 %23 to i8*
%25 = add i64 %20, 2
%26 = inttoptr i64 %25 to i8*
%27 = mul i32 %13, 256
%28 = urem i32 %14, 256
%29 = or i32 %28, %27
%30 = trunc i32 %29 to i16
%31 = add i64 %20, 4
%32 = inttoptr i64 %31 to i16*
store i16 %30, i16* %32, align 2
%33 = mul i32 %11, 256
%34 = urem i32 %12, 256
%35 = or i32 %34, %33
%36 = trunc i32 %35 to i16
%37 = add i64 %20, 6
%38 = inttoptr i64 %37 to i16*
store i16 %36, i16* %38, align 2
%39 = add i64 %20, 8
%40 = inttoptr i64 %39 to i8*
%41 = mul i32 %9, 256
%42 = urem i32 %10, 256
%43 = or i32 %42, %41
%44 = trunc i32 %43 to i16
%45 = add i64 %20, 10
%46 = inttoptr i64 %45 to i16*
store i16 %44, i16* %46, align 2
%47 = mul i32 %7, 256
%48 = urem i32 %8, 256
%49 = or i32 %48, %47
%50 = trunc i32 %49 to i16
%51 = add i64 %20, 12
%52 = inttoptr i64 %51 to i16*
store i16 %50, i16* %52, align 2
%53 = mul i32 %5, 256
%54 = urem i32 %6, 256
%55 = or i32 %54, %53
%56 = trunc i32 %55 to i16
%57 = add i64 %20, 14
%58 = inttoptr i64 %57 to i16*
store i16 %56, i16* %58, align 2
%59 = mul i32 %3, 256
%60 = urem i32 %4, 256
%61 = or i32 %60, %59
%62 = trunc i32 %61 to i16
%63 = add i64 %20, 16
%64 = inttoptr i64 %63 to i16*
store i16 %62, i16* %64, align 2
%65 = add i64 %20, 18
%66 = inttoptr i64 %65 to i8*
%67 = trunc i32 %2 to i8
%68 = urem i8 %67, 16
%69 = add i64 %20, 19
%70 = inttoptr i64 %69 to i8*
store i8 %68, i8* %70, align 1
%71 = udiv i32 %2, 16
%72 = urem i32 %71, 2
%73 = add i64 %20, 20
%74 = inttoptr i64 %73 to i32*
store i32 %72, i32* %74, align 4
%75 = and i32 %2, 32
%76 = icmp eq i32 %75, 0
%77 = zext i1 %76 to i32
%78 = add i64 %20, 24
%79 = inttoptr i64 %78 to i32*
store i32 %77, i32* %79, align 4
%80 = load i8, i8* %66, align 1
%81 = zext i8 %80 to i64
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %81)
%83 = load i32, i32* %79, align 4
%84 = zext i32 %83 to i64
%85 = load i32, i32* %74, align 4
%86 = zext i32 %85 to i64
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %86, i64 %84)
%88 = load i8, i8* %70, align 1
%89 = zext i8 %88 to i64
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %89)
%91 = load i16, i16* %64, align 2
%92 = zext i16 %91 to i64
%93 = load i16, i16* %58, align 2
%94 = zext i16 %93 to i64
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i64 %94, i64 %92)
%96 = load i8, i8* %66, align 1
%97 = icmp eq i8 %96, 24
%.pre.pre = load i8, i8* %70, align 1
%98 = icmp eq i8 %.pre.pre, 0
%or.cond16 = icmp eq i1 %97, %98
br i1 %or.cond16, label LBL_5, label LBL_3
LBL_3:
%99 = icmp eq i8 %96, 32
%100 = icmp eq i8 %.pre.pre, 8
%or.cond = icmp eq i1 %99, %100
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%101 = zext i8 %.pre.pre to i64
%102 = zext i8 %96 to i64
%103 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_5, i64 0, i64 0), i64 %102, i64 %101)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%104 = add i64 %20, 32
%105 = inttoptr i64 %104 to i64*
store i64 0, i64* %105, align 8
%106 = bitcast i64* %rsi to i8*
%107 = load i8, i8* %106, align 8
%108 = icmp eq i8 %107, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %108, label LBL_8, label LBL_6
LBL_6:
%109 = zext i8 %107 to i64
%110 = call i64 @FUNC(i64 %109)
store i64 %110, i64* %105, align 8
%111 = icmp eq i64 %110, 0
%112 = icmp eq i1 %111, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %112, label LBL_7, label LBL_8
LBL_7:
%113 = load i8, i8* %106, align 8
%114 = zext i8 %113 to i64
%115 = inttoptr i64 %110 to i64*
%116 = call i64 @FUNC(i64* %115, i64 %114, i64 %1)
store i64 1, 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 %110, { 1, 0, 2 }
uselistorder i32 %2, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 5, 4 }
uselistorder i32* %0, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 2, 0, 1 }
uselistorder i32 (i8*, ...)* @printf, { 0, 1, 3, 2 }
uselistorder i32 256, { 6, 0, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5 }
uselistorder i64 1, { 1, 0, 2, 3 }
uselistorder i64 0, { 15, 16, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder i64 (i64*, i64, i64)* @gdGetBuf, { 1, 0 }
uselistorder i64 18, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 0, 3, 4 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | is_adx_1781 | is_adx | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, -128
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = add i32 %6, -2147483644
%8 = sext i32 %7 to i64
%9 = icmp ugt i64 %8, %arg2
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i64 %4, -6
%11 = add i64 %10, %8
%12 = inttoptr i64 %11 to i64*
%13 = call i32 @memcmp(i64* %12, i64* bitcast ([7 x i8]* @gv_0 to i64*), i32 6)
%14 = icmp eq i32 %13, 0
%narrow = select i1 %14, i32 %7, i32 0
%spec.select = zext i32 %narrow to i64
ret i64 %spec.select
LBL_3:
ret i64 0
} | 0 |
BinRealVul | gf_isom_check_position_12478 | gf_isom_check_position | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i64* %arg2, null
%5 = icmp eq i32* %arg3, null
%or.cond4 = or i1 %4, %5
store i64 %3, i64* %rax.0.reg2mem
br i1 %or.cond4, label LBL_7, label LBL_2
LBL_2:
%6 = add i64 %3, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = urem i32 %8, 2
%10 = zext i32 %9 to i64
%11 = icmp eq i32 %9, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_7, label LBL_3
LBL_3:
%13 = ptrtoint i64* %arg2 to i64
%14 = call i64 @FUNC(i64 %3, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i64 %14, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = trunc i64 %1 to i32
%18 = icmp eq i32 %17, %15
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %3, i64 %13)
%20 = call i64 @FUNC(i64 %3, i64 %13, i32 %17)
br label LBL_6
LBL_6:
%21 = add i32 %17, 1
%22 = ptrtoint i32* %arg3 to i64
store i32 %21, i32* %arg3, align 4
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 %13, { 1, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %3, { 2, 1, 3, 4, 0 }
uselistorder i1 false, { 3, 4, 7, 5, 1, 6, 0, 9, 8, 2 }
uselistorder i32* %arg3, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_7, { 4, 0, 1, 3, 2 }
} | 1 |
BinRealVul | tcp_process_tlp_ack_10834 | tcp_process_tlp_ack | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_7, label LBL_1
LBL_1:
%10 = urem i64 %arg3, 2
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %3, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%12 = load i32, i32* %3, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %1, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %0)
%18 = call i64 @FUNC(i64 %0, i64 1)
%19 = call i64 @FUNC(i64 %0)
%20 = call i64 @FUNC(i64 %0)
%21 = call i64 @FUNC(i64 %0)
%22 = call i64 @FUNC(i64 %21, i64 0)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%23 = and i64 %arg3, 14
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %rax.0.reg2mem
br i1 %25, label LBL_7, label LBL_6
LBL_6:
store i32 0, i32* %3, align 4
store i64 %2, 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 %2, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 4, 3, 2, 1, 0, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 3, 4, 0 }
} | 0 |
BinRealVul | filter_level_for_mb_14775 | filter_level_for_mb | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%sext = mul i64 %2, 4294967296
%6 = ashr exact i64 %sext, 30
%7 = add i64 %3, 4
%8 = add i64 %7, %6
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %3, 20
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i32 %10, i32* %sv_1.0.reg2mem
br i1 %15, label LBL_4, label LBL_2
LBL_2:
%16 = add i64 %3, 60
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i32 %18, %10
store i32 %19, i32* %sv_1.0.reg2mem
br label LBL_4
LBL_3:
%20 = add i64 %3, 60
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
store i32 %22, i32* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%23 = ptrtoint i64* %arg2 to i64
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%24 = add i64 %3, 24
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = add i64 %23, 4
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = add i64 %3, 28
%34 = add i64 %33, %32
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = add i32 %36, %sv_1.0.reload
%38 = add i64 %23, 8
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 4
%43 = add i64 %3, 44
%44 = add i64 %43, %42
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i32 %37, %46
store i32 %47, i32* %sv_1.1.reg2mem
br label LBL_6
LBL_6:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%48 = zext i32 %sv_1.1.reload to i64
%49 = call i64 @FUNC(i64 %48, i64 6)
%50 = trunc i64 %49 to i32
%51 = add i64 %3, 64
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp eq i32 %53, 0
store i64 %49, i64* %sv_0.1.reg2mem
br i1 %54, label LBL_8, label LBL_7
LBL_7:
%55 = add i32 %53, 3
%56 = udiv i32 %55, 4
%57 = urem i32 %56, 32
%58 = ashr i32 %50, %57
%59 = sub i32 9, %53
%60 = zext i32 %59 to i64
%61 = zext i32 %58 to i64
%62 = call i64 @FUNC(i64 %61, i64 %60)
store i64 %62, i64* %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%63 = ptrtoint i64* %arg3 to i64
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%64 = and i64 %sv_0.1.reload, 4294967295
%65 = call i64 @FUNC(i64 %64, i64 1)
%66 = trunc i64 %65 to i32
%67 = bitcast i64* %arg3 to i32*
store i32 %50, i32* %67, align 4
%68 = add i64 %63, 4
%69 = inttoptr i64 %68 to i32*
store i32 %66, i32* %69, align 4
%70 = add i64 %23, 12
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = icmp eq i32 %72, 0
store i32 1, i32* %storemerge.reg2mem
br i1 %73, label LBL_11, label LBL_9
LBL_9:
%74 = add i64 %23, 8
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = icmp eq i32 %76, 0
store i32 1, i32* %storemerge.reg2mem
br i1 %77, label LBL_11, label LBL_10
LBL_10:
%78 = icmp eq i32 %76, 1
%spec.select = zext i1 %78 to i32
store i32 %spec.select, i32* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%79 = add i64 %63, 8
%80 = inttoptr i64 %79 to i32*
store i32 %storemerge.reload, i32* %80, align 4
ret i64 %63
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %23, { 3, 2, 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i64 %3, { 5, 0, 1, 6, 7, 3, 2, 4 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4, { 2, 0, 1, 3, 4 }
uselistorder label LBL_11, { 0, 2, 1 }
} | 1 |
BinRealVul | setSessionStats_12835 | setSessionStats | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* @gv_0, align 8
store i64 %0, i64* @gv_1, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | install_process_keyring_13606 | install_process_keyring | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0)
%8 = and i64 %3, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%9 = call i64 @FUNC(i64 %0)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
reposvul_c_test | init_h2_145 | init_h2 | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64 %0, i64 3)
store i64 %1, i64* @gv_2, align 8
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0))
store i64 3, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 0, { 1, 2, 0, 7, 3, 4, 5, 6 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | op_get_data_12466 | op_get_data | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
%7 = zext i1 %6 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %0, 16
%10 = and i64 %arg2, 4294967295
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = trunc i64 %9 to i32
%13 = sub i32 %12, %1
%14 = xor i64 %9, %arg2
%15 = trunc i64 %14 to i32
%16 = xor i32 %13, %12
%17 = and i32 %16, %15
%18 = icmp slt i32 %17, 0
%19 = icmp eq i32 %13, 0
%20 = icmp slt i32 %13, 0
%21 = icmp ne i1 %20, %18
%22 = or i1 %19, %21
%23 = zext i1 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = icmp eq i32 %12, 0
%26 = icmp slt i32 %12, 0
%27 = icmp eq i1 %26, false
%28 = icmp eq i1 %25, false
%29 = icmp eq i1 %27, %28
%30 = icmp eq i1 %29, false
%.pre = and i64 %9, 4294967295
br i1 %30, label LBL_2, label LBL_1
LBL_1:
%31 = call i64 @FUNC(i64 %9, i64 %.pre)
br label LBL_2
LBL_2:
ret i64 %.pre
uselistorder i32 %13, { 1, 2, 0 }
uselistorder i32 %12, { 3, 2, 0, 1 }
uselistorder i64 %9, { 2, 1, 0, 3, 4 }
uselistorder i32 %1, { 2, 1, 0 }
uselistorder i64 (i64)* @OP_ASSERT, { 1, 0 }
uselistorder i1 false, { 0, 3, 1, 4, 2, 5 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mod_sysfs_fini_4435 | mod_sysfs_fini | 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 = call i64 @FUNC(i64 %0)
ret i64 %3
} | 0 |
BinRealVul | columns_sort_list_4238 | columns_sort_list | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.14.reg2mem = alloca i64
%sv_2.05.reg2mem = alloca i64
%sv_1.17.reg2mem = alloca i64
%sv_0.28.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_10, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %arg1, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_10
LBL_2:
%5 = icmp sgt i32 %2, 0
store i64 0, i64* %sv_0.2.lcssa.reg2mem
br i1 %5, label LBL_3, label LBL_9
LBL_3:
%wide.trip.count = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
store i64 0, i64* %sv_0.28.reg2mem
br label LBL_4
LBL_4:
%sv_0.28.reload = load i64, i64* %sv_0.28.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = call i64 @FUNC(i64 %arg1, i64 %indvars.iv.reload)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 1, i64* %sv_1.17.reg2mem
store i64 %6, i64* %sv_2.05.reg2mem
store i64 %sv_0.28.reload, i64* %sv_0.14.reg2mem
store i64 %sv_0.28.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %8, label LBL_5, label LBL_8
LBL_5:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%sv_2.05.reload = load i64, i64* %sv_2.05.reg2mem
%sv_1.17.reload = load i64, i64* %sv_1.17.reg2mem
%9 = trunc i64 %sv_1.17.reload to i32
%10 = add i32 %9, -1
%11 = sext i32 %10 to i64
%12 = icmp eq i32 %10, 0
%13 = icmp eq i1 %12, false
store i64 %sv_0.14.reload, i64* %sv_0.0.reg2mem
store i64 %11, i64* %sv_1.0.reg2mem
br i1 %13, label LBL_7, label LBL_6
LBL_6:
%14 = inttoptr i64 %sv_2.05.reload to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %sv_0.14.reload, i64 %15)
store i64 %16, i64* %sv_0.0.reg2mem
store i64 %1, i64* %sv_1.0.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = add i64 %sv_2.05.reload, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
store i64 %sv_1.0.reload, i64* %sv_1.17.reg2mem
store i64 %19, i64* %sv_2.05.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.14.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %21, label LBL_5, label LBL_8
LBL_8:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%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 %sv_0.1.lcssa.reload, i64* %sv_0.28.reg2mem
store i64 %sv_0.1.lcssa.reload, i64* %sv_0.2.lcssa.reg2mem
br i1 %exitcond, label LBL_9, label LBL_4
LBL_9:
%sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem
%22 = call i64 @FUNC(i64 %sv_0.2.lcssa.reload)
%23 = call i64 @FUNC(i64 %arg1)
store i64 %sv_0.2.lcssa.reload, 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 %sv_2.05.reload, { 1, 0 }
uselistorder i64 %sv_0.14.reload, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.28.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.17.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.14.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @g_slist_length, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967296, { 0, 2, 1 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | mpc8_probe_16371 | mpc8_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%.reg2mem21 = alloca i8*
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i8*
store i8* %2, i8** %sv_0, align 8
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp sgt i32 %5, 15
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_15
LBL_1:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 1297105739
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_15
LBL_2:
%10 = sext i32 %5 to i64
%11 = add i64 %1, %10
%12 = add i64 %11, 3
%13 = icmp ugt i64 %12, %1
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_15
LBL_3:
%14 = bitcast i8** %sv_0 to i64*
store i64 %1, i64* %.reg2mem
store i8* %2, i8** %.reg2mem21
br label LBL_4
LBL_4:
%.reload22 = load i8*, i8** %.reg2mem21
%15 = load i8, i8* %.reload22, align 1
%16 = icmp eq i8 %15, 83
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%18 = add i64 %.reload, 1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 72
%22 = icmp eq i1 %21, false
store i32 1, i32* %storemerge.reg2mem
br i1 %22, label LBL_6, label LBL_7
LBL_6:
store i32 0, i32* %storemerge.reg2mem
br label LBL_7
LBL_7:
%.off4 = add i8 %15, -65
%23 = icmp ult i8 %.off4, 26
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_8, label LBL_15
LBL_8:
%24 = ptrtoint i8* %.reload22 to i64
%25 = add i64 %24, 1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%.off5 = add i8 %27, -65
%28 = icmp ult i8 %.off5, 26
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_9, label LBL_15
LBL_9:
%29 = add i64 %24, 2
%30 = inttoptr i64 %29 to i8*
store i8* %30, i8** %sv_0, align 8
%31 = call i64 @FUNC(i64* nonnull %14)
%32 = icmp sgt i64 %31, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_10, label LBL_15
LBL_10:
%33 = load i8*, i8** %sv_0, align 8
%34 = ptrtoint i8* %33 to i64
%35 = add i64 %31, -2
%36 = add i64 %35, %34
%37 = icmp ugt i64 %11, %36
store i64 49, i64* %rax.0.reg2mem
br i1 %37, label LBL_11, label LBL_15
LBL_11:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%38 = icmp eq i32 %storemerge.reload, 0
br i1 %38, label LBL_14, label LBL_12
LBL_12:
%.off = add i64 %31, -11
%39 = icmp ult i64 %.off, 18
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_13, label LBL_15
LBL_13:
%40 = call i64 @FUNC(i64 %34)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
%. = select i1 %43, i64 100, i64 0
store i64 %., i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%44 = inttoptr i64 %36 to i8*
store i8* %44, i8** %sv_0, align 8
%45 = icmp ugt i64 %12, %36
store i64 %36, i64* %.reg2mem
store i8* %44, i8** %.reg2mem21
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_4, label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %.reload22, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 0, 2, 1, 3 }
uselistorder i8** %sv_0, { 3, 2, 1, 4, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 7, 8, 4, 3, 1, 2, 6, 9, 10 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @AV_RL32, { 1, 0 }
uselistorder label LBL_15, { 4, 6, 7, 3, 2, 0, 1, 5, 8, 9 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | fec_enet_mii_probe_3844 | fec_enet_mii_probe | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.17.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %4, 8
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %4, 40
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_1, label LBL_2
LBL_1:
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %15, 32
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %15, 40
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i32 %6, i32* %sv_2.17.reg2mem
br label LBL_3
LBL_2:
%21 = add i64 %4, 48
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %3, i64 %11, i64 4199261, i64 0, i64 %24)
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
store i64 %25, i64* %sv_0.0.in.reg2mem
store i64 0, i64* %rcx.2.reg2mem
store i64 %24, i64* %r8.0.reg2mem
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %27, label LBL_11, label LBL_14
LBL_3:
%sv_2.17.reload = load i32, i32* %sv_2.17.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%28 = trunc i64 %indvars.iv.reload to i32
%29 = shl i32 1, %28
%30 = sext i32 %29 to i64
%31 = and i64 %18, %30
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
store i32 %sv_2.17.reload, i32* %sv_2.0.reg2mem
store i64 %18, i64* %rdx.0.reg2mem
br i1 %33, label LBL_8, label LBL_4
LBL_4:
%34 = load i64, i64* %20, align 8
%35 = mul i64 %indvars.iv.reload, 8
%36 = add i64 %34, %35
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
store i32 %sv_2.17.reload, i32* %sv_2.0.reg2mem
store i64 %34, i64* %rdx.0.reg2mem
br i1 %39, label LBL_8, label LBL_5
LBL_5:
%40 = add i64 %38, 24
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = icmp eq i64 %42, 0
store i32 %sv_2.17.reload, i32* %sv_2.0.reg2mem
store i64 %34, i64* %rdx.0.reg2mem
br i1 %43, label LBL_8, label LBL_6
LBL_6:
%44 = add i32 %sv_2.17.reload, -1
%45 = zext i32 %44 to i64
%46 = icmp eq i32 %sv_2.17.reload, 0
%47 = icmp eq i1 %46, false
store i32 %44, i32* %sv_2.0.reg2mem
store i64 %45, i64* %rdx.0.reg2mem
br i1 %47, label LBL_8, label LBL_7
LBL_7:
%48 = call i64 @FUNC(i64* nonnull %sv_4, i64 %15, i64 32)
%phitmp = and i64 %indvars.iv.reload, 4294967295
store i64 %phitmp, i64* %sv_1.0.reg2mem
br label LBL_10
LBL_8:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%49 = icmp ult i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.17.reg2mem
br i1 %49, label LBL_3, label LBL_9
LBL_9:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%50 = and i64 %indvars.iv.reload, 4294967295
%51 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %rdx.0.reload, i64 %50, i64 %2, i64 %1)
%52 = call i64 @FUNC(i64* nonnull %sv_4, i64 ptrtoint ([8 x i8]* @gv_1 to i64), i64 32)
store i64 0, i64* %sv_1.0.reg2mem
br label LBL_10
LBL_10:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%53 = bitcast i64* %sv_3 to i8*
%54 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %53, i32 35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_4, i64 %sv_1.0.reload)
%55 = add i64 %4, 48
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3, i64 4199261, i64 %58)
store i64 %59, i64* %sv_0.0.in.reg2mem
store i64 %58, i64* %rcx.2.reg2mem
store i64 %sv_1.0.reload, i64* %r8.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i32*
%60 = icmp ugt i32* %sv_0.0, inttoptr (i64 -1001 to i32*)
br i1 %60, label LBL_12, label LBL_13
LBL_12:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%61 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 4199261, i64 %rcx.2.reload, i64 %r8.0.reload, i64 %1)
store i64 %sv_0.0.in.reload, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%62 = add i64 %4, 24
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = urem i32 %64, 2
%66 = icmp eq i32 %65, 0
%67 = load i32, i32* %sv_0.0, align 4
%68 = urem i32 %67, 2
%69 = or i32 %68, 4
%70 = and i32 %67, 8
%storemerge3 = select i1 %66, i32 %70, i32 %69
store i32 %storemerge3, i32* %sv_0.0, align 4
%71 = add i64 %sv_0.0.in.reload, 4
%72 = inttoptr i64 %71 to i32*
store i32 %storemerge3, i32* %72, align 4
store i64 %sv_0.0.in.reload, i64* %8, align 8
%73 = add i64 %4, 28
%74 = inttoptr i64 %73 to i32*
store i32 0, i32* %74, align 4
%75 = add i64 %4, 32
%76 = inttoptr i64 %75 to i32*
store i32 0, i32* %76, align 4
%77 = load i64, i64* %8, align 8
%78 = add i64 %77, 8
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = add i64 %77, 32
%82 = call i64 @FUNC(i64 %81)
%83 = load i64, i64* %8, align 8
%84 = add i64 %83, 16
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = inttoptr i64 %86 to i64*
%88 = load i64, i64* %87, align 8
%89 = zext i32 %80 to i64
%90 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_4, i64 0, i64 0), i64 %88, i64 %82, i64 %89, i64 %1)
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 i32 %storemerge3, { 1, 0 }
uselistorder i32 %67, { 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 3, 2, 0, 1 }
uselistorder i64 %indvars.iv.reload, { 3, 0, 2, 4, 1 }
uselistorder i32 %sv_2.17.reload, { 4, 3, 0, 1, 2 }
uselistorder i64* %8, { 1, 0, 2, 3 }
uselistorder i64 %4, { 1, 2, 3, 4, 0, 5, 6, 7, 8 }
uselistorder i64 %3, { 1, 2, 4, 3, 0, 5 }
uselistorder i64 %1, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @netdev_info, { 1, 0 }
uselistorder label LBL_14, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | mptsas1068_class_init_8438 | mptsas1068_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %0, 20
%6 = inttoptr i64 %5 to i32*
store i32 4096, i32* %6, align 4
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = add i64 %0, 28
%10 = inttoptr i64 %9 to i32*
store i32 4096, i32* %10, align 4
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i32*
store i32 32768, i32* %12, align 4
%13 = add i64 %0, 36
%14 = inttoptr i64 %13 to i32*
store i32 65536, i32* %14, align 4
%15 = load i64, i64* @gv_0, align 8
store i64 %15, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%16 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_1 to i64), i64* %16, align 8
%17 = inttoptr i64 %7 to i64*
store i64 ptrtoint ([13 x i8]* @gv_2 to i64), i64* %17, align 8
ret i64 %0
} | 0 |
BinRealVul | visual_comma_12968 | visual_comma | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
store i64 0, i64* %storemerge2.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = add i64 %8, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
store i64 %14, i64* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%15 = add i64 %storemerge2.reload, %4
%16 = add i64 %4, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 1, i64 %15)
%20 = call i64 @FUNC(i64 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull @gv_1)
%21 = call i64 @FUNC(i64 %4)
%22 = icmp eq i64 %20, 0
%23 = icmp eq i1 %22, false
store i64 %19, i64* %sv_1.1.reg2mem
store i64 %20, i64* %sv_0.1.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %rdx.1.reg2mem
store i64 ptrtoint ([3 x i8]* @gv_0 to i64), i64* %rsi.1.reg2mem
br i1 %23, label LBL_10, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
store i64 %19, i64* %sv_1.0.reg2mem
store i64 %20, i64* %sv_0.0.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %rdx.0.reg2mem
store i64 ptrtoint ([3 x i8]* @gv_0 to i64), i64* %rsi.0.reg2mem
br i1 %25, label LBL_9, label LBL_4
LBL_4:
%26 = inttoptr i64 %24 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
store i64 %19, i64* %sv_1.0.reg2mem
store i64 %20, i64* %sv_0.0.reg2mem
store i64 ptrtoint (i64* @gv_1 to i64), i64* %rdx.0.reg2mem
store i64 ptrtoint ([3 x i8]* @gv_0 to i64), i64* %rsi.0.reg2mem
br i1 %28, label LBL_9, label LBL_5
LBL_5:
%29 = call i8* @strdup(i8* nonnull %26)
%30 = ptrtoint i8* %29 to i64
%31 = icmp eq i64 %19, 0
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = inttoptr i64 %19 to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i64 %24, i64 ptrtoint (i64* @gv_1 to i64), i64 %3, i64 %2, i64 %1)
%37 = load i64, i64* %17, align 8
%38 = call i64 @FUNC(i64 %37, i64 1, i64 %15, i64 %36)
store i64 %36, i64* %sv_1.0.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
store i64 %36, i64* %rcx.0.reg2mem
store i64 %15, i64* %rdx.0.reg2mem
store i64 1, i64* %rsi.0.reg2mem
br label LBL_9
LBL_8:
%39 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0), i64 %19, i64 %24, i64 %3, i64 %2, i64 %1)
%40 = load i64, i64* %17, align 8
%41 = call i64 @FUNC(i64 %40, i64 1, i64 %15, i64 %39)
%42 = inttoptr i64 %39 to i64*
call void @free(i64* %42)
store i64 %19, i64* %sv_1.0.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
store i64 %39, i64* %rcx.0.reg2mem
store i64 %15, i64* %rdx.0.reg2mem
store i64 1, i64* %rsi.0.reg2mem
br label LBL_9
LBL_9:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%43 = inttoptr i64 %24 to i64*
call void @free(i64* %43)
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br label LBL_10
LBL_10:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%44 = icmp eq i64 %sv_0.1.reload, 0
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i64 %21, i64 %sv_0.1.reload, i64 %rcx.1.reload, i64 %2, i64 %1)
%46 = call i64 @FUNC(i64 %45, i64 0)
%47 = call i64 @FUNC(i64 %4, i64 0, i64 %46)
%48 = call i64 @FUNC(i64 %45, i64 %47, i64 4294967295, i64 0)
%49 = inttoptr i64 %47 to i64*
call void @free(i64* %49)
%50 = inttoptr i64 %46 to i64*
call void @free(i64* %50)
%51 = inttoptr i64 %45 to i64*
call void @free(i64* %51)
br label LBL_13
LBL_12:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%52 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_6, i64 0, i64 0), i64 %rsi.1.reload, i64 %rdx.1.reload, i64 %rcx.1.reload, i64 %2, i64 %1)
br label LBL_13
LBL_13:
%53 = trunc i64 %5 to i8
%54 = inttoptr i64 %sv_1.1.reload to i64*
call void @free(i64* %54)
%55 = icmp eq i8 %53, 0
br i1 %55, label LBL_15, label LBL_14
LBL_14:
%56 = add i64 %4, 24
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0))
%60 = trunc i64 %59 to i8
%61 = icmp eq i8 %60, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %61, label LBL_15, label LBL_16
LBL_15:
store i64 0, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%62 = call i64 @FUNC(i64 %storemerge.reload)
ret i64 %62
uselistorder i64 %24, { 1, 0, 2, 3, 4 }
uselistorder i64 %20, { 1, 2, 0, 3 }
uselistorder i64 %19, { 1, 6, 5, 4, 2, 3, 0, 7 }
uselistorder i64 %15, { 0, 2, 1, 3, 4 }
uselistorder i64 %4, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @r_meta_set_string, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @r_str_newf, { 2, 1, 0 }
uselistorder i64 ptrtoint ([3 x i8]* @gv_0 to i64), { 1, 2, 0 }
uselistorder i64 ptrtoint (i64* @gv_1 to i64), { 3, 1, 2, 0 }
uselistorder i64* @gv_1, { 1, 0 }
uselistorder [3 x i8]* @gv_0, { 1, 0 }
uselistorder i64 1, { 0, 1, 3, 2, 4, 5 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ghash_final_6022 | ghash_final | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 1, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 %2, i64 %1)
%9 = add i64 %1, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %1 to i64*
%13 = load i64, i64* %12, align 8
store i64 %13, i64* %arg2, align 8
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i64*
store i64 %11, i64* %15, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | os_mem_prealloc_16942 | os_mem_prealloc | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge5.reg2mem = alloca i128
%0 = call i32 @getpagesize()
%1 = sext i32 %0 to i64
%2 = sext i32 %0 to i128
%3 = add i64 %arg3, -1
%4 = add i64 %3, %1
%5 = sub nsw i64 0, %1
%6 = and i64 %4, %5
%7 = udiv i64 %6, %1
%8 = icmp ult i64 %6, %1
store i128 0, i128* %storemerge5.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%storemerge5.reload = load i128, i128* %storemerge5.reg2mem
%9 = mul nsw i128 %storemerge5.reload, %2
%10 = trunc i128 %9 to i64
%11 = add i64 %10, %arg2
%12 = inttoptr i64 %11 to i64*
%13 = call i64* @memset(i64* %12, i32 0, i32 1)
%14 = trunc i128 %storemerge5.reload to i32
%15 = add i32 %14, 1
%16 = sext i32 %15 to i128
%17 = sext i32 %15 to i64
%18 = icmp ugt i64 %7, %17
store i128 %16, i128* %storemerge5.reg2mem
br i1 %18, label LBL_1, label LBL_2
LBL_2:
ret i64 %7
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %1, { 1, 0, 3, 2 }
uselistorder i128* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | virtio_net_set_config_size_13960 | virtio_net_set_config_size | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.12.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem4 = alloca i64
%.reg2mem = alloca i32
%0 = load i32, i32* bitcast (i32** @gv_0 to i32*), align 8
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = trunc i64 %arg2 to i32
store i32 %0, i32* %.reg2mem
store i64 0, i64* %.reg2mem4
store i32 0, i32* %storemerge3.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_2
LBL_2:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i32, i32* %.reg2mem
%4 = and i32 %.reload, %3
%5 = icmp eq i32 %4, 0
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%.reload5 = load i64, i64* %.reg2mem4
%6 = add i64 %.reload5, ptrtoint (i32** @gv_1 to i64)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 8
%9 = icmp ult i32 %8, %sv_0.12.reload
%10 = icmp eq i1 %9, false
%11 = select i1 %10, i32 %8, i32 %sv_0.12.reload
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%12 = add i32 %storemerge3.reload, 1
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = add i64 %14, ptrtoint (i32** @gv_0 to i64)
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 8
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i32 %17, i32* %.reg2mem
store i64 %14, i64* %.reg2mem4
store i32 %12, i32* %storemerge3.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.12.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %19, label LBL_2, label LBL_5
LBL_5:
%20 = ptrtoint i64* %arg1 to i64
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%21 = bitcast i64* %arg1 to i32*
store i32 %sv_0.1.lcssa.reload, i32* %21, align 4
ret i64 %20
uselistorder i32 %sv_0.12.reload, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem4, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 0, { 5, 4, 1, 2, 0, 3 }
uselistorder i32** @gv_0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | set_frame_data_7458 | set_frame_data | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa18.reg2mem = alloca i64
%.reg2mem71 = alloca i32
%storemerge428.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem69 = alloca i32
%.reg2mem67 = alloca i32
%.reg2mem65 = alloca i32
%sv_1.022.reg2mem = alloca i32
%storemerge823.reg2mem = alloca i32
%.reg2mem63 = alloca i64
%.reg2mem61 = alloca i32
%.reg2mem59 = alloca i32
%sv_2.139.reg2mem = alloca i32
%.pre-phi48.reg2mem = alloca i64
%.pre-phi50.reg2mem = alloca i64
%.pre-phi52.reg2mem = alloca i64
%sv_2.019.reg2mem = alloca i32
%storemerge1020.reg2mem = alloca i32
%.reg2mem57 = alloca i64
%storemerge625.reg2mem = alloca i32
%storemerge30.reg2mem = alloca i32
%.reg2mem55 = alloca i64
%.reg2mem53 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rdx = alloca i64, align 8
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = and i64 %1, 4294967295
%5 = icmp eq i32 %3, 0
store i64 %4, i64* %.lcssa18.reg2mem
br i1 %5, label LBL_24, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg3 to i64
%7 = bitcast i64* %rdi to i32*
%8 = trunc i64 %2 to i32
%9 = bitcast i64* %rdx to i32*
%10 = add i64 %6, 4
%11 = inttoptr i64 %10 to i32*
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 16
%14 = inttoptr i64 %13 to i64*
%15 = trunc i64 %arg2 to i32
%16 = sub i32 255, %15
%17 = add i64 %12, 24
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %12, 4
%20 = inttoptr i64 %19 to i32*
%21 = add i64 %12, 8
%22 = inttoptr i64 %21 to i32*
%23 = add i64 %6, 8
%24 = inttoptr i64 %23 to i64*
%25 = add i64 %6, 16
%26 = inttoptr i64 %25 to i64*
store i32 %3, i32* %.reg2mem
store i32 %8, i32* %.reg2mem53
store i64 0, i64* %.reg2mem55
store i32 0, i32* %storemerge30.reg2mem
br label LBL_2
LBL_2:
%storemerge30.reload = load i32, i32* %storemerge30.reg2mem
%.reload = load i32, i32* %.reg2mem
%27 = load i32, i32* %11, align 4
%28 = icmp sgt i32 %27, 0
store i32 %.reload, i32* %.reg2mem71
br i1 %28, label LBL_3, label LBL_22
LBL_3:
%.reload56 = load i64, i64* %.reg2mem55
%.reload54 = load i32, i32* %.reg2mem53
%29 = add i32 %storemerge30.reload, -1
%30 = icmp ult i32 %29, 2
%31 = icmp sgt i32 %.reload54, 0
%32 = icmp eq i1 %30, false
%33 = mul i64 %.reload56, 8
%34 = mul i64 %.reload56, 4
store i32 0, i32* %storemerge428.reg2mem
br label LBL_20
LBL_4:
%storemerge625.reload = load i32, i32* %storemerge625.reg2mem
%35 = load i64, i64* %14, align 8
%36 = load i32, i32* %9, align 8
%37 = mul i32 %36, %storemerge428.reload
%38 = add i32 %37, %storemerge625.reload
%39 = sext i32 %38 to i64
%40 = mul nsw i64 %39, 36
%41 = add i64 %40, %35
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 0
%.pre45 = add i64 %41, 4
br i1 %44, label LBL_9, label LBL_5
LBL_5:
%45 = zext i32 %43 to i64
store i64 0, i64* %.reg2mem57
store i32 0, i32* %storemerge1020.reg2mem
store i32 0, i32* %sv_2.019.reg2mem
br label LBL_6
LBL_6:
%sv_2.019.reload = load i32, i32* %sv_2.019.reg2mem
%storemerge1020.reload = load i32, i32* %storemerge1020.reg2mem
%.reload58 = load i64, i64* %.reg2mem57
%46 = mul i64 %.reload58, 4
%47 = add i64 %.pre45, %46
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i32 %49, %sv_2.019.reload
%51 = add i32 %storemerge1020.reload, 1
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %52, %45
store i64 %52, i64* %.reg2mem57
store i32 %51, i32* %storemerge1020.reg2mem
store i32 %50, i32* %sv_2.019.reg2mem
br i1 %53, label LBL_6, label LBL_7
LBL_7:
%54 = icmp eq i32 %50, 0
br i1 %54, label LBL_9, label LBL_7.LBL_10_crit_edge
LBL_8:
%.pre47 = add i64 %41, 12
%.pre49 = add i64 %41, 20
%.pre51 = add i64 %41, 24
store i64 %.pre51, i64* %.pre-phi52.reg2mem
store i64 %.pre49, i64* %.pre-phi50.reg2mem
store i64 %.pre47, i64* %.pre-phi48.reg2mem
store i32 %50, i32* %sv_2.139.reg2mem
store i32 %43, i32* %.reg2mem59
br label LBL_10
LBL_9:
%55 = inttoptr i64 %.pre45 to i32*
store i32 %16, i32* %55, align 4
%56 = add i64 %41, 12
%57 = inttoptr i64 %56 to i32*
store i32 1, i32* %57, align 4
%58 = add i64 %41, 20
%59 = inttoptr i64 %58 to i32*
store i32 0, i32* %59, align 4
%60 = add i64 %41, 24
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = add i64 %41, 8
%63 = inttoptr i64 %62 to i32*
store i32 %15, i32* %63, align 4
%64 = add i64 %41, 16
%65 = inttoptr i64 %64 to i32*
store i32 2, i32* %65, align 4
%66 = add i64 %41, 28
%67 = inttoptr i64 %66 to i32*
store i32 0, i32* %67, align 4
%68 = add i64 %41, 32
%69 = inttoptr i64 %68 to i32*
store i32 0, i32* %69, align 4
store i32 2, i32* %42, align 4
store i64 %60, i64* %.pre-phi52.reg2mem
store i64 %58, i64* %.pre-phi50.reg2mem
store i64 %56, i64* %.pre-phi48.reg2mem
store i32 255, i32* %sv_2.139.reg2mem
store i32 2, i32* %.reg2mem59
br label LBL_10
LBL_10:
%.reload60 = load i32, i32* %.reg2mem59
%sv_2.139.reload = load i32, i32* %sv_2.139.reg2mem
%.pre-phi48.reload = load i64, i64* %.pre-phi48.reg2mem
%.pre-phi50.reload = load i64, i64* %.pre-phi50.reg2mem
%.pre-phi52.reload = load i64, i64* %.pre-phi52.reg2mem
store i32 %.reload60, i32* %.reg2mem61
store i64 0, i64* %.reg2mem63
store i32 0, i32* %storemerge823.reg2mem
store i32 0, i32* %sv_1.022.reg2mem
br label LBL_11
LBL_11:
%sv_1.022.reload = load i32, i32* %sv_1.022.reg2mem
%storemerge823.reload = load i32, i32* %storemerge823.reg2mem
%.reload64 = load i64, i64* %.reg2mem63
%70 = load i64, i64* %18, align 8
%71 = mul i64 %.reload64, 4
%72 = add i64 %.pre-phi48.reload, %71
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
br i1 %32, label LBL_13, label LBL_12
LBL_12:
%75 = load i32, i32* %20, align 4
%76 = mul i64 %.reload64, 8
%77 = add i64 %76, %.pre-phi50.reload
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = zext i32 %79 to i64
store i64 %80, i64* %rdx, align 8
%81 = load i32, i32* %20, align 4
%82 = urem i32 %81, 32
%83 = icmp eq i32 %82, 0
store i32 %79, i32* %.reg2mem65
br i1 %83, label %87, label %84
LBL_13:
%.reload62 = load i32, i32* %.reg2mem61
%106 = mul i64 %.reload64, 8
%107 = add i64 %106, %.pre-phi50.reload
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = add i32 %109, %storemerge625.reload
%111 = add i64 %106, %.pre-phi52.reload
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = add i32 %113, %storemerge428.reload
store i32 %.reload62, i32* %.reg2mem69
store i32 %110, i32* %sv_0.0.reg2mem
store i32 %114, i32* %storemerge9.reg2mem
br label LBL_14
LBL_14:
%115 = sext i32 %74 to i64
%116 = mul i64 %115, 8
%117 = add i64 %116, %70
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload70 = load i32, i32* %.reg2mem69
%118 = add i64 %.pre45, %71
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = inttoptr i64 %117 to i64*
%122 = load i64, i64* %121, align 8
%123 = add i64 %122, 8
%124 = inttoptr i64 %123 to i64*
%125 = load i64, i64* %124, align 8
%126 = add i64 %125, %33
%127 = inttoptr i64 %126 to i64*
%128 = load i64, i64* %127, align 8
%129 = add i64 %122, 16
%130 = inttoptr i64 %129 to i64*
%131 = load i64, i64* %130, align 8
%132 = add i64 %131, %34
%133 = inttoptr i64 %132 to i32*
%134 = load i32, i32* %133, align 4
%135 = mul i32 %134, %storemerge9.reload
%136 = add i32 %135, %sv_0.0.reload
%137 = sext i32 %136 to i64
%138 = add i64 %128, %137
%139 = inttoptr i64 %138 to i8*
%140 = load i8, i8* %139, align 1
%141 = zext i8 %140 to i32
%142 = mul i32 %120, %141
%143 = add i32 %142, %sv_1.022.reload
%144 = add i32 %storemerge823.reload, 1
%145 = zext i32 %.reload70 to i64
%146 = sext i32 %144 to i64
%147 = icmp slt i64 %146, %145
store i32 %.reload70, i32* %.reg2mem61
store i64 %146, i64* %.reg2mem63
store i32 %144, i32* %storemerge823.reg2mem
store i32 %143, i32* %sv_1.022.reg2mem
br i1 %147, label LBL_11, label LBL_15
LBL_15:
%148 = icmp slt i32 %sv_2.139.reload, 0
%149 = zext i1 %148 to i32
%150 = add i32 %sv_2.139.reload, %149
%151 = ashr i32 %150, 1
%152 = add i32 %143, %151
%153 = ashr i32 %152, 31
%154 = zext i32 %152 to i64
%155 = zext i32 %153 to i64
%156 = mul i64 %155, 4294967296
%157 = or i64 %156, %154
%158 = zext i32 %sv_2.139.reload to i64
%159 = sdiv i64 %157, %158
%160 = load i64, i64* %24, align 8
%161 = add i64 %160, %33
%162 = inttoptr i64 %161 to i64*
%163 = load i64, i64* %162, align 8
br i1 %32, label LBL_17, label LBL_16
LBL_16:
%164 = load i32, i32* %20, align 4
%165 = urem i32 %164, 32
%166 = lshr i32 %storemerge625.reload, %165
%storemerge14 = zext i32 %166 to i64
store i64 %storemerge14, i64* %rdi, align 8
%167 = load i32, i32* %22, align 4
%168 = urem i32 %167, 32
%169 = lshr i32 %storemerge428.reload, %168
%storemerge15 = zext i32 %169 to i64
store i64 %storemerge15, i64* %rdx, align 8
%170 = load i64, i64* %26, align 8
%171 = add i64 %170, %34
%172 = inttoptr i64 %171 to i32*
%173 = load i32, i32* %172, align 4
%174 = mul i32 %173, %169
%175 = add i32 %174, %166
%176 = sext i32 %175 to i64
%177 = add i64 %163, %176
%178 = trunc i64 %159 to i8
%179 = inttoptr i64 %177 to i8*
store i8 %178, i8* %179, align 1
br label LBL_18
LBL_17:
%180 = load i64, i64* %26, align 8
%181 = add i64 %180, %34
%182 = inttoptr i64 %181 to i32*
%183 = load i32, i32* %182, align 4
%184 = mul i32 %183, %storemerge428.reload
%185 = add i32 %184, %storemerge625.reload
%186 = sext i32 %185 to i64
%187 = add i64 %163, %186
%188 = trunc i64 %159 to i8
%189 = inttoptr i64 %187 to i8*
store i8 %188, i8* %189, align 1
br label LBL_18
LBL_18:
%190 = add nuw nsw i32 %storemerge625.reload, 1
%exitcond = icmp eq i32 %190, %.reload54
store i32 %190, i32* %storemerge625.reg2mem
br i1 %exitcond, label LBL_19, label LBL_4
LBL_19:
%191 = add nuw nsw i32 %storemerge428.reload, 1
%exitcond35 = icmp eq i32 %191, %27
store i32 %191, i32* %storemerge428.reg2mem
br i1 %exitcond35, label LBL_21, label LBL_20
LBL_20:
%storemerge428.reload = load i32, i32* %storemerge428.reg2mem
store i32 0, i32* %storemerge625.reg2mem
br i1 %31, label LBL_4, label LBL_19
LBL_21:
%.pre37 = load i32, i32* %7, align 8
store i32 %.pre37, i32* %.reg2mem71
br label LBL_22
LBL_22:
%.reload72 = load i32, i32* %.reg2mem71
%192 = add i32 %storemerge30.reload, 1
%193 = zext i32 %.reload72 to i64
%194 = sext i32 %192 to i64
%195 = icmp slt i64 %194, %193
store i64 %193, i64* %.lcssa18.reg2mem
br i1 %195, label LBL_22.LBL_2_crit_edge, label LBL_24
LBL_23:
%.pre = load i32, i32* %9, align 8
store i32 %.reload72, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem53
store i64 %194, i64* %.reg2mem55
store i32 %192, i32* %storemerge30.reg2mem
br label LBL_2
LBL_24:
%.lcssa18.reload = load i64, i64* %.lcssa18.reg2mem
ret i64 %.lcssa18.reload
uselistorder i32 %.reload72, { 1, 0 }
uselistorder i32 %storemerge428.reload, { 3, 1, 4, 2, 5, 0 }
uselistorder i32 %143, { 1, 0 }
uselistorder i32 %.reload70, { 1, 0 }
uselistorder i64 %106, { 1, 0 }
uselistorder i32 %94, { 1, 0 }
uselistorder i32 %91, { 1, 0, 2 }
uselistorder i32 %82, { 1, 0 }
uselistorder i32 %79, { 1, 0, 2 }
uselistorder i64 %76, { 1, 0 }
uselistorder i64 %71, { 1, 0 }
uselistorder i64 %.reload64, { 2, 1, 0 }
uselistorder i32 %sv_2.139.reload, { 0, 2, 1 }
uselistorder i32 %50, { 0, 2, 1 }
uselistorder i64 %.pre45, { 1, 0, 2 }
uselistorder i32* %42, { 0, 2, 1 }
uselistorder i64 %41, { 4, 5, 6, 7, 8, 9, 10, 0, 1, 2, 3, 11 }
uselistorder i32 %storemerge625.reload, { 0, 5, 2, 4, 1, 3 }
uselistorder i64 %34, { 2, 1, 0 }
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %.reload56, { 1, 0 }
uselistorder i32 %storemerge30.reload, { 1, 0 }
uselistorder i64* %rdx, { 0, 4, 3, 2, 1, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem53, { 1, 0, 2 }
uselistorder i64* %.reg2mem55, { 1, 0, 2 }
uselistorder i32* %storemerge30.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge625.reg2mem, { 1, 2, 0 }
uselistorder i64* %.reg2mem57, { 1, 0, 2 }
uselistorder i32* %storemerge1020.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.019.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem61, { 1, 0, 2 }
uselistorder i64* %.reg2mem63, { 1, 0, 2 }
uselistorder i32* %storemerge823.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.022.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem69, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge9.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem71, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 32, { 0, 1, 3, 5, 2, 4 }
uselistorder i64 20, { 1, 0 }
uselistorder i64 12, { 1, 0 }
uselistorder i32 2, { 0, 2, 3, 1 }
uselistorder i64 24, { 2, 0, 1 }
uselistorder i64 16, { 0, 2, 1, 3 }
uselistorder i32 0, { 5, 7, 12, 13, 1, 2, 14, 15, 16, 17, 18, 3, 4, 8, 0, 9, 10, 6, 11 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label %99, { 1, 0 }
uselistorder label %87, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | tmp105_tx_17258 | tmp105_tx | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 72057594037927936
%1 = ashr exact i64 %sext, 56
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i32 %4, 1
store i32 %5, i32* %3, align 4
%6 = icmp eq i32 %4, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = trunc i64 %1 to i8
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i8*
store i8 %8, i8* %10, align 1
br label LBL_5
LBL_2:
%11 = icmp sgt i32 %5, 2
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = sext i32 %4 to i64
%13 = trunc i64 %1 to i8
%14 = add i64 %12, %0
%15 = inttoptr i64 %14 to i8*
store i8 %13, i8* %15, align 1
br label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %0)
br label LBL_5
LBL_5:
ret i64 0
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | mutt_seqset_iterator_next_17364 | mutt_seqset_iterator_next | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi8.reg2mem = alloca i32*
%.pre-phi12.reg2mem = alloca i32*
%.reg2mem18 = alloca i32
%.pre-phi16.reg2mem = alloca i32*
%.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i8*
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i32* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_21
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 36
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_6, label LBL_2
LBL_2:
%8 = add i64 %3, 32
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = add i64 %3, 24
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %3, 28
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%18 = add i32 %17, -1
%19 = icmp eq i32 %14, %18
store i32 %14, i32* %.reg2mem18
store i32* %9, i32** %.pre-phi12.reg2mem
store i32* %13, i32** %.pre-phi8.reg2mem
br i1 %19, label LBL_5, label LBL_20
LBL_4:
%20 = add i32 %17, 1
%21 = icmp eq i32 %14, %20
%22 = icmp eq i1 %21, false
store i32 %14, i32* %.reg2mem18
store i32* %9, i32** %.pre-phi12.reg2mem
store i32* %13, i32** %.pre-phi8.reg2mem
br i1 %22, label LBL_20, label LBL_5
LBL_5:
store i32 0, i32* %5, align 4
br label LBL_6
LBL_6:
%23 = add i64 %3, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
store i64 %25, i64* %arg1, align 8
%26 = add i64 %3, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, %3
%30 = icmp eq i1 %29, false
store i64 1, i64* %rax.0.reg2mem
br i1 %30, label LBL_7, label LBL_21
LBL_7:
%31 = trunc i64 %3 to i8
%32 = icmp eq i8 %31, 0
br i1 %32, label LBL_8, label LBL_9
LBL_8:
br label LBL_8
LBL_9:
%33 = bitcast i64* %arg1 to i8*
%34 = call i8* @strchr(i8* %33, i32 44)
%35 = ptrtoint i8* %34 to i64
store i64 %35, i64* %24, align 8
%36 = icmp eq i8* %34, null
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_11, label LBL_10
LBL_10:
%38 = load i64, i64* %27, align 8
store i64 %38, i64* %24, align 8
br label LBL_12
LBL_11:
store i8 0, i8* %34, align 1
br label LBL_12
LBL_12:
%39 = call i8* @strchr(i8* %33, i32 58)
%40 = icmp eq i8* %39, null
store i8* null, i8** %sv_0.0.reg2mem
br i1 %40, label LBL_14, label LBL_13
LBL_13:
%41 = ptrtoint i8* %39 to i64
%42 = add i64 %41, 1
%43 = inttoptr i64 %42 to i8*
store i8 0, i8* %39, align 1
store i8* %43, i8** %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%44 = add i64 %3, 24
%45 = call i64 @FUNC(i64 %3, i64 %44)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %47, label LBL_15, label LBL_21
LBL_15:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%48 = icmp eq i8* %sv_0.0.reload, null
br i1 %48, label LBL_18, label LBL_16
LBL_16:
%49 = add i64 %3, 28
%50 = ptrtoint i8* %sv_0.0.reload to i64
%51 = call i64 @FUNC(i64 %50, i64 %49)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %53, label LBL_16.LBL_19_crit_edge, label LBL_21
LBL_17:
%.pre13 = inttoptr i64 %49 to i32*
%.pre15 = inttoptr i64 %44 to i32*
%.pre = load i32, i32* %.pre13, align 4
store i32 %.pre, i32* %.reg2mem
store i32* %.pre15, i32** %.pre-phi16.reg2mem
br label LBL_19
LBL_18:
%54 = inttoptr i64 %44 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i64 %3, 28
%57 = inttoptr i64 %56 to i32*
store i32 %55, i32* %57, align 4
store i32 %55, i32* %.reg2mem
store i32* %54, i32** %.pre-phi16.reg2mem
br label LBL_19
LBL_19:
%.pre-phi16.reload = load i32*, i32** %.pre-phi16.reg2mem
%.reload = load i32, i32* %.reg2mem
%58 = load i32, i32* %.pre-phi16.reload, align 4
%59 = icmp ult i32 %.reload, %58
%60 = zext i1 %59 to i32
%61 = add i64 %3, 32
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
store i32 1, i32* %5, align 4
%.pre17 = load i32, i32* %.pre-phi16.reload, align 4
store i32 %.pre17, i32* %.reg2mem18
store i32* %62, i32** %.pre-phi12.reg2mem
store i32* %.pre-phi16.reload, i32** %.pre-phi8.reg2mem
br label LBL_20
LBL_20:
%.pre-phi8.reload = load i32*, i32** %.pre-phi8.reg2mem
%.pre-phi12.reload = load i32*, i32** %.pre-phi12.reg2mem
%.reload19 = load i32, i32* %.reg2mem18
store i32 %.reload19, i32* %arg2, align 4
%63 = load i32, i32* %.pre-phi12.reload, align 4
%64 = icmp eq i32 %63, 0
%65 = load i32, i32* %.pre-phi8.reload, align 4
%storemerge.v = select i1 %64, i32 1, i32 -1
%storemerge = add i32 %storemerge.v, %65
store i32 %storemerge, i32* %.pre-phi8.reload, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %.pre-phi8.reload, { 1, 0 }
uselistorder i32* %.pre-phi16.reload, { 0, 2, 1 }
uselistorder i64 %44, { 1, 0, 2 }
uselistorder i8* %39, { 1, 0, 2 }
uselistorder i8* %34, { 1, 0, 2 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32 %14, { 0, 3, 1, 2 }
uselistorder i32* %5, { 1, 0, 2 }
uselistorder i64 %3, { 5, 6, 7, 1, 8, 2, 0, 9, 10, 3, 4, 12, 11 }
uselistorder i32* %.reg2mem18, { 0, 3, 1, 2 }
uselistorder i32** %.pre-phi12.reg2mem, { 0, 3, 1, 2 }
uselistorder i32** %.pre-phi8.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i64, i64)* @mutt_str_atoui, { 1, 0 }
uselistorder i8* null, { 2, 0, 3, 1 }
uselistorder i8 0, { 1, 2, 0, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 -1, { 0, 2, 1 }
uselistorder i64 4294967295, { 0, 1, 2, 4, 3 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 1, 3, 2 }
uselistorder label LBL_21, { 4, 0, 1, 2, 3 }
uselistorder label LBL_20, { 2, 0, 1 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | smtp_command_parse_parameters_5845 | smtp_command_parse_parameters | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.014.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i32
%storemerge2.in.lcssa.reg2mem = alloca i64
%.reg2mem59 = alloca i64
%rdi.3.reg2mem = alloca i64
%.reg2mem57 = alloca i64
%rdi.2.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i32
%rcx.09.reg2mem = alloca i64
%.reg2mem55 = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_1.117.reg2mem = alloca i32
%rcx.118.reg2mem = alloca i64
%storemerge222.in.reg2mem = alloca i64
%.reg2mem53 = alloca i64
%.reg2mem51 = alloca i32
%.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
%storemerge3.in.in.v = select i1 %7, i64 32, i64 24
%storemerge3.in.in = add i64 %storemerge3.in.in.v, %3
%storemerge3.in = inttoptr i64 %storemerge3.in.in to i64*
%storemerge3 = load i64, i64* %storemerge3.in, align 8
%8 = add i64 %3, 40
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %10, %3
%12 = add i64 %3, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp ult i64 %11, %14
store i64 %3, i64* %rdi.0.reg2mem
store i64 %3, i64* %.reg2mem
store i32 %6, i32* %.reg2mem51
store i64 %14, i64* %.reg2mem53
store i64 %11, i64* %storemerge222.in.reg2mem
store i32 1, i32* %sv_1.117.reg2mem
store i64 %3, i64* %rdi.3.reg2mem
store i64 %3, i64* %.reg2mem59
store i64 %11, i64* %storemerge2.in.lcssa.reg2mem
store i32 1, i32* %sv_1.2.reg2mem
br i1 %15, label LBL_1, label LBL_11
LBL_1:
%storemerge222.in.reload = load i64, i64* %storemerge222.in.reg2mem
%.reload52 = load i32, i32* %.reg2mem51
%16 = icmp eq i32 %.reload52, 0
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%sv_1.117.reload = load i32, i32* %sv_1.117.reg2mem
%rcx.118.reload = load i64, i64* %rcx.118.reg2mem
%.reload = load i64, i64* %.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%storemerge222 = inttoptr i64 %storemerge222.in.reload to i8*
%17 = load i8, i8* %storemerge222, align 1
%18 = zext i8 %17 to i32
store i32 %18, i32* %sv_2, align 4
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
store i64 %.reload, i64* %.reg2mem55
store i64 %rcx.118.reload, i64* %rcx.09.reg2mem
store i32 %sv_1.117.reload, i32* %sv_1.07.reg2mem
br label LBL_4
LBL_3:
%.reload54 = load i64, i64* %.reg2mem53
%19 = sub i64 %storemerge222.in.reload, %.reload54
%20 = call i64 @FUNC(i64 %storemerge222.in.reload, i64 %19, i32* nonnull %sv_2)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %storemerge222.in.reload, i64* %rdi.1.reg2mem
store i64 %storemerge222.in.reload, i64* %.reg2mem55
store i64 %19, i64* %rcx.09.reg2mem
store i32 %21, i32* %sv_1.07.reg2mem
store i64 %storemerge222.in.reload, i64* %rdi.3.reg2mem
store i64 %storemerge222.in.reload, i64* %.reg2mem59
store i64 %storemerge222.in.reload, i64* %storemerge2.in.lcssa.reg2mem
store i32 0, i32* %sv_1.2.reg2mem
store i64 %19, i64* %rcx.2.reg2mem
br i1 %22, label LBL_11, label LBL_4
LBL_4:
%sv_1.07.reload = load i32, i32* %sv_1.07.reg2mem
%rcx.09.reload = load i64, i64* %rcx.09.reg2mem
%23 = icmp slt i32 %sv_1.07.reload, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.09.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_6:
%26 = load i32, i32* %5, align 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
%.pre45 = load i32, i32* %sv_2, align 4
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%.reload56 = load i64, i64* %.reg2mem55
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%29 = trunc i32 %.pre45 to i8
%30 = icmp sgt i8 %29, -1
%31 = icmp eq i1 %30, false
store i64 %rdi.1.reload, i64* %rdi.2.reg2mem
store i64 %.reload56, i64* %.reg2mem57
br i1 %31, label LBL_9, label LBL_8
LBL_8:
%32 = urem i32 %.pre45, 256
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
store i64 %33, i64* %rdi.2.reg2mem
store i64 %33, i64* %.reg2mem57
store i64 %33, i64* %rdi.3.reg2mem
store i64 %33, i64* %.reg2mem59
store i64 %storemerge222.in.reload, i64* %storemerge2.in.lcssa.reg2mem
store i32 %sv_1.07.reload, i32* %sv_1.2.reg2mem
store i64 %rcx.09.reload, i64* %rcx.2.reg2mem
br i1 %36, label LBL_11, label LBL_9
LBL_9:
%.reload58 = load i64, i64* %.reg2mem57
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%37 = sext i32 %sv_1.07.reload to i64
%38 = add i64 %storemerge222.in.reload, %37
%39 = load i64, i64* %13, align 8
%40 = icmp ult i64 %38, %39
store i64 %rdi.2.reload, i64* %rdi.3.reg2mem
store i64 %.reload58, i64* %.reg2mem59
store i64 %38, i64* %storemerge2.in.lcssa.reg2mem
store i32 %sv_1.07.reload, i32* %sv_1.2.reg2mem
store i64 %rcx.09.reload, i64* %rcx.2.reg2mem
br i1 %40, label LBL_9.LBL_1_crit_edge, label LBL_11
LBL_10:
%.pre = load i32, i32* %5, align 4
store i64 %rdi.2.reload, i64* %rdi.0.reg2mem
store i64 %.reload58, i64* %.reg2mem
store i32 %.pre, i32* %.reg2mem51
store i64 %39, i64* %.reg2mem53
store i64 %38, i64* %storemerge222.in.reg2mem
store i64 %rcx.09.reload, i64* %rcx.118.reg2mem
store i32 %sv_1.07.reload, i32* %sv_1.117.reg2mem
br label LBL_1
LBL_11:
%storemerge2.in.lcssa.reload = load i64, i64* %storemerge2.in.lcssa.reg2mem
%.reload60 = load i64, i64* %.reg2mem59
%41 = icmp eq i64 %storemerge3, 0
%.pre46 = sub i64 %storemerge2.in.lcssa.reload, %.reload60
%42 = icmp ult i64 %storemerge3, %.pre46
%43 = icmp eq i1 %42, false
%or.cond48 = or i1 %41, %43
br i1 %or.cond48, label LBL_13, label LBL_12
LBL_12:
%44 = load i32, i32* %5, align 4
%45 = icmp eq i32 %44, 0
%. = select i1 %45, i64 ptrtoint ([8 x i8]* @gv_1 to i64), i64 ptrtoint ([14 x i8]* @gv_2 to i64)
%46 = call i64 @FUNC(i64 %3, i64 2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %., i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
store i64 %.pre46, i64* %9, align 8
%47 = load i64, i64* %13, align 8
%48 = icmp ne i64 %47, %storemerge2.in.lcssa.reload
%49 = icmp eq i32 %sv_1.2.reload, 0
%50 = icmp eq i1 %49, false
%or.cond = icmp eq i1 %50, %48
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_14, label LBL_20
LBL_14:
%51 = icmp ult i64 %rdi.3.reload, %storemerge2.in.lcssa.reload
store i64 %storemerge2.in.lcssa.reload, i64* %sv_0.014.reg2mem
store i64 %storemerge2.in.lcssa.reload, i64* %sv_0.1.reg2mem
br i1 %51, label LBL_16, label LBL_17
LBL_15:
%52 = icmp ugt i64 %53, %rdi.3.reload
store i64 %53, i64* %sv_0.014.reg2mem
store i64 %53, i64* %sv_0.1.reg2mem
br i1 %52, label LBL_16, label LBL_17
LBL_16:
%sv_0.014.reload = load i64, i64* %sv_0.014.reg2mem
%53 = add i64 %sv_0.014.reload, -1
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
store i64 %sv_0.014.reload, i64* %sv_0.1.reg2mem
switch i8 %55, label LBL_17 [
i8 32, label LBL_15
i8 9, label LBL_15
]
LBL_17:
%56 = trunc i64 %rdi.3.reload to i8
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%57 = load i32, i32* %5, align 4
%58 = icmp ne i32 %57, 0
%59 = icmp ule i64 %sv_0.1.reload, %rdi.3.reload
%or.cond6.not = or i1 %59, %58
%60 = icmp eq i8 %56, 32
%61 = icmp eq i1 %60, false
%or.cond50 = or i1 %61, %or.cond6.not
br i1 %or.cond50, label LBL_19, label LBL_18
LBL_18:
%62 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_4, i64 0, i64 0), i64 %rcx.2.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%63 = call i64 @FUNC(i64 %rdi.3.reload, i64 %sv_0.1.reload)
%64 = add i64 %3, 48
%65 = inttoptr i64 %64 to i64*
store i64 %63, i64* %65, align 8
store i64 %storemerge2.in.lcssa.reload, i64* %arg1, align 8
store i64 0, i64* %9, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %53, { 3, 2, 1, 0 }
uselistorder i64 %rdi.3.reload, { 0, 2, 1, 3, 4 }
uselistorder i64 %storemerge2.in.lcssa.reload, { 4, 0, 1, 2, 3, 5 }
uselistorder i64 %38, { 1, 0, 2 }
uselistorder i64 %rdi.2.reload, { 1, 0 }
uselistorder i64 %.reload58, { 1, 0 }
uselistorder i64 %rcx.09.reload, { 3, 1, 0, 2 }
uselistorder i32 %sv_1.07.reload, { 4, 1, 3, 0, 2 }
uselistorder i64 %storemerge222.in.reload, { 9, 1, 0, 2, 3, 4, 5, 8, 7, 6 }
uselistorder i64* %13, { 0, 2, 1 }
uselistorder i32* %5, { 2, 1, 0, 3, 4 }
uselistorder i64 %3, { 8, 9, 7, 6, 0, 1, 2, 3, 10, 4, 11, 5, 12 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rdi.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem51, { 2, 0, 1 }
uselistorder i64* %.reg2mem53, { 2, 0, 1 }
uselistorder i64* %storemerge222.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.118.reg2mem, { 1, 0 }
uselistorder i32* %sv_1.117.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem55, { 0, 2, 1 }
uselistorder i64* %rcx.09.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.07.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem57, { 0, 2, 1 }
uselistorder i64* %rdi.3.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %.reg2mem59, { 0, 3, 2, 1, 4 }
uselistorder i64* %storemerge2.in.lcssa.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %rcx.2.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.014.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @smtp_command_parser_error, { 2, 1, 0 }
uselistorder i64 1, { 0, 2, 3, 1 }
uselistorder i1 false, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i32 0, { 2, 1, 3, 4, 5, 6, 0, 7, 8, 9 }
uselistorder label LBL_20, { 1, 2, 0, 3, 4 }
uselistorder label LBL_17, { 1, 0, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_11, { 0, 2, 1, 3 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | problem_data_save_6662 | problem_data_save | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = load i32, i32* @gv_0, align 4
%3 = icmp eq i32 %2, 0
%4 = load [14 x i8]*, [14 x i8]** @gv_1, align 8
%5 = ptrtoint [14 x i8]* %4 to i64
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 %5, i64 0)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 %5)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%8 = icmp eq i64 %storemerge.reload, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = inttoptr i64 %storemerge.reload to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %storemerge.reload)
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i64 %sv_0.0.reload)
ret i64 %sv_0.0.reload
uselistorder i64 %storemerge.reload, { 1, 2, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | socket_accept_12272 | socket_accept | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%0 = trunc i64 %arg1 to i32
%1 = trunc i64 %arg2 to i16
%2 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 16)
store i64 2, i64* %sv_1, align 8
%3 = call i32 @htonl(i32 0)
%4 = call i16 @htons(i16 %1)
store i32 16, i32* %sv_0, align 4
%5 = bitcast i64* %sv_1 to %sockaddr*
%6 = call i32 @accept(i32 %0, %sockaddr* nonnull %5, i32* nonnull %sv_0)
%7 = zext i32 %6 to i64
ret i64 %7
uselistorder i64* %sv_1, { 0, 2, 1 }
} | 1 |
BinRealVul | smtp_multi_statemach_10728 | smtp_multi_statemach | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %1, 2
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 1
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %2, i64 0, i64 %5)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 %9, i64* %storemerge.in.reg2mem
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = load i8, i8* %6, align 1
%14 = icmp eq i8 %13, 1
store i64 %9, i64* %storemerge.in.reg2mem
br i1 %14, label LBL_4, label LBL_5
LBL_4:
%15 = add i64 %2, 16
%16 = call i64 @FUNC(i64 %15, i64 0)
%17 = add i64 %2, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 1
%21 = zext i1 %20 to i8
%22 = bitcast i64* %arg2 to i8*
store i8 %21, i8* %22, align 1
store i64 %16, i64* %storemerge.in.reg2mem
br label LBL_5
LBL_5:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 0 |
BinRealVul | load_kernel_11 | load_kernel | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.0.in.reg2mem = alloca i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%0 = load i8*, i8** @gv_0, align 8
%1 = ptrtoint i8* %0 to i64
%2 = bitcast i32* %sv_2 to i64*
%3 = call i64 @FUNC(i64 %1, i64 4198911, i64 0, i64* nonnull %2, i64 0, i64* nonnull %sv_3)
%4 = icmp slt i64 %3, 0
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = load i8*, i8** @gv_0, align 8
%6 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i8* %5)
call void @exit(i32 1)
unreachable
LBL_2:
%8 = load i8*, i8** @gv_3, align 8
%9 = icmp eq i8* %8, null
store i32 0, i32* %sv_1.1.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %9, label LBL_9, label LBL_3
LBL_3:
%10 = ptrtoint i8* %8 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = icmp slt i64 %11, 1
store i64 %11, i64* %sv_1.0.in.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_7, label LBL_4
LBL_4:
%13 = load i64, i64* %sv_3, align 8
%14 = add i64 %13, 4095
%15 = and i64 %14, 4294963200
%sext = mul i64 %11, 4294967296
%16 = ashr exact i64 %sext, 32
%17 = add nsw i64 %15, %16
%18 = load i32, i32* @gv_4, align 4
%19 = sext i32 %18 to i64
%20 = icmp sgt i64 %17, %19
br i1 %20, label LBL_5, label LBL_6
LBL_5:
%21 = load i8*, i8** @gv_3, align 8
%22 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%23 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %22, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_5, i64 0, i64 0), i8* %21)
call void @exit(i32 1)
unreachable
LBL_6:
%24 = sub nsw i64 %19, %15
%25 = load i8*, i8** @gv_3, align 8
%26 = ptrtoint i8* %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 %15, i64 %24)
store i64 %27, i64* %sv_1.0.in.reg2mem
store i64 %15, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%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
%28 = icmp eq i32 %sv_1.0, -1
%29 = icmp eq i1 %28, false
store i32 %sv_1.0, i32* %sv_1.1.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %29, label LBL_9, label LBL_8
LBL_8:
%30 = load i8*, i8** @gv_3, align 8
%31 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%32 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %31, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_6, i64 0, i64 0), i8* %30)
call void @exit(i32 1)
unreachable
LBL_9:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%33 = call i64 @FUNC(i64 264)
%34 = load i32, i32* @gv_4, align 4
%35 = zext i32 %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = trunc i64 %36 to i32
%38 = inttoptr i64 %33 to i32*
store i32 %37, i32* %38, align 4
%39 = add i64 %33, 4
%40 = call i64 @FUNC(i64 305419896)
%41 = trunc i64 %40 to i32
%42 = inttoptr i64 %39 to i32*
store i32 %41, i32* %42, align 4
%43 = icmp slt i32 %sv_1.1.reload, 1
%44 = load i8*, i8** @gv_7, align 8
br i1 %43, label LBL_11, label LBL_10
LBL_10:
%45 = call i64 @FUNC(i64 0, i64 %sv_0.1.reload)
%46 = add i64 %33, 8
%47 = inttoptr i64 %46 to i8*
%48 = trunc i64 %45 to i32
%49 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %47, i32 256, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_8, i64 0, i64 0), i32 %48, i32 %sv_1.1.reload, i8* %44)
br label LBL_12
LBL_11:
%50 = add i64 %33, 8
%51 = inttoptr i64 %50 to i8*
%52 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %51, i32 256, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0), i8* %44)
br label LBL_12
LBL_12:
%53 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0), i64 %33, i64 264, i64 16776952)
%54 = load i32, i32* %sv_2, align 4
%55 = sext i32 %54 to i64
ret i64 %55
uselistorder i8* %44, { 1, 0 }
uselistorder i64 %33, { 1, 2, 0, 3, 4 }
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %15, { 0, 3, 2, 1 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i64 (i64)* @tswap32, { 1, 0 }
uselistorder i32* @gv_4, { 1, 0 }
uselistorder void (i32)* @exit, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 2, 0 }
uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 }
uselistorder i32 1, { 5, 7, 8, 6, 10, 9, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | parse_hex4_10916 | parse_hex4 | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%.off = add i8 %2, -48
%3 = icmp ugt i8 %.off, 9
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = sext i8 %2 to i32
%5 = add nsw i32 %4, -48
store i32 %5, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_2:
%.off21 = add i8 %2, -65
%6 = icmp ugt i8 %.off21, 5
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = sext i8 %2 to i32
%8 = add nsw i32 %7, -55
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_4:
%.off22 = add i8 %2, -97
%9 = icmp ugt i8 %.off22, 5
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_25, label LBL_5
LBL_5:
%10 = sext i8 %2 to i32
%11 = add nsw i32 %10, -87
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%12 = mul i32 %sv_0.0.reload, 16
%13 = add i64 %arg1, 1
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%.off12 = add i8 %15, -48
%16 = icmp ugt i8 %.off12, 9
br i1 %16, label LBL_8, label LBL_7
LBL_7:
%17 = sext i8 %15 to i32
%18 = add nsw i32 %12, -48
%19 = add nsw i32 %18, %17
store i32 %19, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_8:
%.off19 = add i8 %15, -65
%20 = icmp ugt i8 %.off19, 5
br i1 %20, label LBL_10, label LBL_9
LBL_9:
%21 = sext i8 %15 to i32
%22 = add nsw i32 %12, -55
%23 = add nsw i32 %22, %21
store i32 %23, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_10:
%.off20 = add i8 %15, -97
%24 = icmp ugt i8 %.off20, 5
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_25, label LBL_11
LBL_11:
%25 = sext i8 %15 to i32
%26 = add nsw i32 %12, -87
%27 = add nsw i32 %26, %25
store i32 %27, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%28 = mul i32 %sv_0.1.reload, 16
%29 = add i64 %arg1, 2
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%.off13 = add i8 %31, -48
%32 = icmp ugt i8 %.off13, 9
br i1 %32, label LBL_14, label LBL_13
LBL_13:
%33 = sext i8 %31 to i32
%34 = add i32 %28, -48
%35 = add i32 %34, %33
store i32 %35, i32* %sv_0.2.reg2mem
br label LBL_18
LBL_14:
%.off17 = add i8 %31, -65
%36 = icmp ugt i8 %.off17, 5
br i1 %36, label LBL_16, label LBL_15
LBL_15:
%37 = sext i8 %31 to i32
%38 = add i32 %28, -55
%39 = add i32 %38, %37
store i32 %39, i32* %sv_0.2.reg2mem
br label LBL_18
LBL_16:
%.off18 = add i8 %31, -97
%40 = icmp ugt i8 %.off18, 5
store i64 0, i64* %rax.0.reg2mem
br i1 %40, label LBL_25, label LBL_17
LBL_17:
%41 = sext i8 %31 to i32
%42 = add i32 %28, -87
%43 = add i32 %42, %41
store i32 %43, i32* %sv_0.2.reg2mem
br label LBL_18
LBL_18:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%44 = mul i32 %sv_0.2.reload, 16
%45 = add i64 %arg1, 3
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%.off14 = add i8 %47, -48
%48 = icmp ugt i8 %.off14, 9
br i1 %48, label LBL_20, label LBL_19
LBL_19:
%49 = sext i8 %47 to i32
%50 = add i32 %44, -48
%51 = add i32 %50, %49
store i32 %51, i32* %sv_0.3.reg2mem
br label LBL_24
LBL_20:
%.off15 = add i8 %47, -65
%52 = icmp ugt i8 %.off15, 5
br i1 %52, label LBL_22, label LBL_21
LBL_21:
%53 = sext i8 %47 to i32
%54 = add i32 %44, -55
%55 = add i32 %54, %53
store i32 %55, i32* %sv_0.3.reg2mem
br label LBL_24
LBL_22:
%.off16 = add i8 %47, -97
%56 = icmp ugt i8 %.off16, 5
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_25, label LBL_23
LBL_23:
%57 = sext i8 %47 to i32
%58 = add i32 %44, -87
%59 = add i32 %58, %57
store i32 %59, i32* %sv_0.3.reg2mem
br label LBL_24
LBL_24:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%60 = zext i32 %sv_0.3.reload to i64
store i64 %60, i64* %rax.0.reg2mem
br label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %47, { 3, 0, 4, 1, 5, 2 }
uselistorder i8 %31, { 3, 0, 4, 1, 5, 2 }
uselistorder i8 %15, { 3, 0, 4, 1, 5, 2 }
uselistorder i8 %2, { 2, 5, 1, 4, 0, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i8 -97, { 3, 2, 1, 0 }
uselistorder i8 5, { 6, 7, 4, 5, 2, 3, 0, 1 }
uselistorder i8 -65, { 3, 2, 1, 0 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_25, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | snd_info_free_entry_11932 | snd_info_free_entry | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_5, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = add i64 %arg1, 8
%5 = icmp eq i64 %4, 0
%.pre = add i64 %arg1, 24
%.pre3 = inttoptr i64 %.pre to i64*
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = load i64, i64* %.pre3, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %.reg2mem
store i64 %4, i64* %storemerge12.reg2mem
br i1 %8, label LBL_3, label LBL_4
LBL_3:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%.reload = load i64, i64* %.reg2mem
%9 = call i64 @FUNC(i64 %storemerge12.reload)
%10 = add i64 %.reload, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %.reg2mem
store i64 %.reload, i64* %storemerge12.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_4:
%15 = add i64 %arg1, 16
%16 = call i64 @FUNC(i64 %15)
%17 = load i64, i64* %.pre3, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %arg1)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 3, 0, 4, 1, 5 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | convert_to_decimal_13815 | convert_to_decimal | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%sv_0.4.reg2mem = alloca i8*
%sv_0.3.reg2mem = alloca i8*
%sv_0.2.lcssa.reg2mem = alloca i8*
%sv_0.110.reg2mem = alloca i8*
%storemerge12.reg2mem = alloca i64
%sv_1.0.lcssa.off0.reg2mem = alloca i8
%sv_1.07.off0.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%storemerge39.reg2mem = alloca i64
%sv_3.013.reg2mem = alloca i64
%sv_0.215.reg2mem = alloca i8*
%sv_0.0.lcssa.reg2mem = alloca i8*
%sv_4.017.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i8*
%storemerge5.reg2mem = alloca i128
%1 = load i128, i128* %0
%2 = icmp slt i64 %arg2, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i128 @FUNC(i128 %1, i128 %1)
%4 = call i128 @FUNC(i64 %arg2)
store i128 %4, i128* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%5 = udiv i64 %arg2, 2
%6 = urem i64 %arg2, 2
%7 = or i64 %5, %6
%8 = call i128 @FUNC(i128 %1, i128 %1)
%9 = call i128 @FUNC(i64 %7)
%10 = call i128 @FUNC(i128 %9, i128 %9)
store i128 %10, i128* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%storemerge5.reload = load i128, i128* %storemerge5.reg2mem
%11 = call i128 @FUNC(i32 1074332382)
%12 = call i128 @FUNC(i128 %storemerge5.reload, i128 %11)
%13 = load i32, i32* inttoptr (i64 4202516 to i32*), align 4
call void @FUNC(i128 %12, i32 %13)
%14 = call i128 @FUNC(i32 1593835520)
%15 = call i128 @FUNC(i128 %12, i128 %14)
%16 = call i64 @FUNC(i128 %15)
%17 = xor i64 %16, -9223372036854775808
%phitmp = mul i64 %17, 9
%phitmp6 = add i64 %phitmp, 9
%18 = call i64 @FUNC(i64 %arg3, i64 %phitmp6)
%19 = call i64 @FUNC(i64 %18, i64 1)
%20 = trunc i64 %19 to i32
%21 = call i64* @malloc(i32 %20)
%22 = icmp eq i64* %21, null
br i1 %22, label LBL_20, label LBL_4
LBL_4:
%23 = bitcast i64* %21 to i8*
%24 = icmp eq i64 %arg3, 0
%25 = icmp eq i1 %24, false
store i8* %23, i8** %sv_0.018.reg2mem
store i64 %arg3, i64* %sv_4.017.reg2mem
store i8* %23, i8** %sv_0.0.lcssa.reg2mem
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%sv_4.017.reload = load i64, i64* %sv_4.017.reg2mem
%sv_0.018.reload = load i8*, i8** %sv_0.018.reg2mem
%26 = ptrtoint i8* %sv_0.018.reload to i64
%27 = add i64 %26, 1
%28 = inttoptr i64 %27 to i8*
store i8 48, i8* %sv_0.018.reload, align 1
%29 = add i64 %sv_4.017.reload, -1
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i8* %28, i8** %sv_0.018.reg2mem
store i64 %29, i64* %sv_4.017.reg2mem
store i8* %28, i8** %sv_0.0.lcssa.reg2mem
br i1 %31, label LBL_5, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem
%32 = icmp eq i64 %arg2, 0
%33 = icmp eq i1 %32, false
store i8* %sv_0.0.lcssa.reload, i8** %sv_0.215.reg2mem
store i64 %arg2, i64* %sv_3.013.reg2mem
store i8* %sv_0.0.lcssa.reload, i8** %sv_0.2.lcssa.reg2mem
br i1 %33, label LBL_7, label LBL_14
LBL_7:
%sv_3.013.reload = load i64, i64* %sv_3.013.reg2mem
%sv_0.215.reload = load i8*, i8** %sv_0.215.reg2mem
%34 = mul i64 %sv_3.013.reload, 8
%35 = icmp eq i64 %sv_3.013.reload, 0
%36 = icmp eq i1 %35, false
store i8 0, i8* %sv_1.0.lcssa.off0.reg2mem
br i1 %36, label LBL_8, label LBL_11
LBL_8:
%37 = add i64 %34, %arg1
store i64 %sv_3.013.reload, i64* %storemerge39.reg2mem
store i64 %37, i64* %sv_2.08.reg2mem
store i64 0, i64* %sv_1.07.off0.reg2mem
br label LBL_9
LBL_9:
%sv_1.07.off0.reload = load i64, i64* %sv_1.07.off0.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%storemerge39.reload = load i64, i64* %storemerge39.reg2mem
%38 = add i64 %sv_2.08.reload, -8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = or i64 %40, %sv_1.07.off0.reload
%42 = add i64 %storemerge39.reload, -1
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
store i64 %42, i64* %storemerge39.reg2mem
store i64 %38, i64* %sv_2.08.reg2mem
store i64 %41, i64* %sv_1.07.off0.reg2mem
br i1 %44, label LBL_9, label LBL_10
LBL_10:
%extract.t = trunc i64 %41 to i8
store i8 %extract.t, i8* %sv_1.0.lcssa.off0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.lcssa.off0.reload = load i8, i8* %sv_1.0.lcssa.off0.reg2mem
store i64 9, i64* %storemerge12.reg2mem
store i8* %sv_0.215.reload, i8** %sv_0.110.reg2mem
br label LBL_12
LBL_12:
%sv_0.110.reload = load i8*, i8** %sv_0.110.reg2mem
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%45 = add i8 %sv_1.0.lcssa.off0.reload, 48
%46 = ptrtoint i8* %sv_0.110.reload to i64
%47 = add i64 %46, 1
%48 = inttoptr i64 %47 to i8*
store i8 %45, i8* %sv_0.110.reload, align 1
%49 = add nsw i64 %storemerge12.reload, -1
%50 = icmp eq i64 %49, 0
%51 = icmp eq i1 %50, false
store i64 %49, i64* %storemerge12.reg2mem
store i8* %48, i8** %sv_0.110.reg2mem
br i1 %51, label LBL_12, label LBL_13
LBL_13:
%52 = add i64 %34, %arg1
%53 = add i64 %52, -8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = icmp eq i64 %55, 0
%57 = sext i1 %56 to i64
%spec.select = add i64 %sv_3.013.reload, %57
%58 = icmp eq i64 %spec.select, 0
%59 = icmp eq i1 %58, false
store i8* %48, i8** %sv_0.215.reg2mem
store i64 %spec.select, i64* %sv_3.013.reg2mem
store i8* %48, i8** %sv_0.2.lcssa.reg2mem
br i1 %59, label LBL_7, label LBL_14
LBL_14:
%sv_0.2.lcssa.reload = load i8*, i8** %sv_0.2.lcssa.reg2mem
store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem
br label LBL_15
LBL_15:
%sv_0.3.reload = load i8*, i8** %sv_0.3.reg2mem
%60 = bitcast i8* %sv_0.3.reload to i64*
%61 = icmp ult i64* %21, %60
br i1 %61, label LBL_16, label LBL_17
LBL_16:
%62 = ptrtoint i8* %sv_0.3.reload to i64
%63 = add i64 %62, -1
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
%66 = icmp eq i8 %65, 48
store i8* %64, i8** %sv_0.3.reg2mem
br i1 %66, label LBL_15, label LBL_17
LBL_17:
%67 = icmp eq i64* %21, %60
%68 = icmp eq i1 %67, false
store i8* %sv_0.3.reload, i8** %sv_0.4.reg2mem
br i1 %68, label LBL_19, label LBL_18
LBL_18:
%69 = ptrtoint i8* %sv_0.3.reload to i64
%70 = add i64 %69, 1
%71 = inttoptr i64 %70 to i8*
store i8 48, i8* %sv_0.3.reload, align 1
store i8* %71, i8** %sv_0.4.reg2mem
br label LBL_19
LBL_19:
%sv_0.4.reload = load i8*, i8** %sv_0.4.reg2mem
store i8 0, i8* %sv_0.4.reload, align 1
br label LBL_20
LBL_20:
%72 = ptrtoint i64* %21 to i64
ret i64 %72
uselistorder i8* %sv_0.3.reload, { 3, 4, 0, 1, 2 }
uselistorder i8* %48, { 0, 2, 1 }
uselistorder i8* %sv_0.110.reload, { 1, 0 }
uselistorder i64 %41, { 1, 0 }
uselistorder i64 %34, { 1, 0 }
uselistorder i64 %sv_3.013.reload, { 2, 0, 1, 3 }
uselistorder i8* %sv_0.018.reload, { 1, 0 }
uselistorder i64* %21, { 4, 0, 1, 2, 3 }
uselistorder i128 %9, { 1, 0 }
uselistorder i128* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.018.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.017.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.215.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.013.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge39.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.07.off0.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_1.0.lcssa.off0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.110.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.3.reg2mem, { 2, 0, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 -1, { 3, 2, 1, 0 }
uselistorder i8 48, { 2, 1, 0, 3 }
uselistorder i1 false, { 3, 6, 4, 5, 2, 1, 7, 0 }
uselistorder i64 (i64, i64)* @xsum, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 1, { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 0, 3, 2, 1, 4, 5 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | acpi_pm1_evt_write_sts_16289 | acpi_pm1_evt_write_sts | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = urem i64 %1, 65536
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = urem i64 %arg2, 2
%6 = and i64 %5, %4
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2)
br label LBL_2
LBL_2:
%9 = add i64 %2, 2
%10 = inttoptr i64 %9 to i16*
%11 = load i16, i16* %10, align 2
%12 = trunc i64 %arg2 to i16
%13 = sub i16 0, %12
%14 = sub i16 %13, 1
%15 = and i16 %11, %14
store i16 %15, i16* %10, align 2
ret i64 %2
uselistorder i64 %2, { 2, 1, 0, 3 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | _archive_read_close_8549 | _archive_read_close | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 2, i64 7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0))
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = call i64 @FUNC(i64 %2)
store i32 1, i32* %arg1, align 4
%8 = call i64 @FUNC(i64 %2)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%phitmp = and i64 %8, 4294967295
%spec.select = select i1 %10, i64 %phitmp, i64 0
store i64 %spec.select, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ExprAppendMultiKeysymList_11809 | ExprAppendMultiKeysymList | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg2)
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = and i64 %0, 4294967295
%6 = call i64 @FUNC(i64 %4, i64 %5)
%7 = add i64 %arg1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = call i64 @FUNC(i64 %9, i64 %10)
%13 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 %arg1
uselistorder i64 %10, { 1, 0 }
uselistorder i64 (i64, i64)* @darray_append, { 1, 0 }
uselistorder i64 (i64)* @darray_size, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | kvm_create_dirty_bitmap_8034 | kvm_create_dirty_bitmap | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = mul i64 %1, 2
%3 = call i64 @FUNC(i64 %2)
store i64 %3, i64* %arg1, align 8
%4 = icmp eq i64 %2, 0
%5 = icmp eq i1 %4, false
%. = select i1 %5, i64 0, i64 4294967284
ret i64 %.
} | 0 |
BinRealVul | read_packet_16844 | read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %0 to i8
%4 = icmp eq i8 %3, 71
br label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 %1, i64 188, i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 188
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = icmp slt i32 %6, 0
%9 = icmp eq i1 %8, false
%10 = and i64 %5, 4294967295
%11 = select i1 %9, i64 4294967295, i64 %10
store i64 %11, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %2, i64 4294967108, i64 1)
%13 = call i64 @FUNC(i64 %2)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967285, i64* %rax.0.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 1 |
BinRealVul | __kvm_migrate_pit_timer_12627 | __kvm_migrate_pit_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i64* %arg1, null
%or.cond = or i1 %4, %3
store i64 %1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0, i64 0)
store i64 %8, 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 label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | bm_text_width_12791 | bm_text_width | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%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.0.reg2mem = alloca i32
%sv_2.04.reg2mem = alloca i64
%sv_1.15.reg2mem = alloca i32
%sv_0.26.reg2mem = alloca i32
%.reg2mem8 = alloca i8*
%.reg2mem = alloca i8
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_9, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg2 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i8 %2, i8* %.reg2mem
store i8* %1, i8** %.reg2mem8
store i32 0, i32* %sv_0.26.reg2mem
store i32 0, i32* %sv_1.15.reg2mem
store i64 %arg2, i64* %sv_2.04.reg2mem
store i32 0, i32* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %sv_0.2.lcssa.reg2mem
br i1 %4, label LBL_2, label LBL_8
LBL_2:
%sv_2.04.reload = load i64, i64* %sv_2.04.reg2mem
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem
%.reload = load i8, i8* %.reg2mem
%5 = icmp eq i8 %.reload, 10
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = icmp sgt i32 %sv_1.15.reload, %sv_0.26.reload
%spec.select = select i1 %7, i32 %sv_1.15.reload, i32 %sv_0.26.reload
store i32 0, i32* %sv_1.0.reg2mem
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_4:
%8 = icmp eq i8 %.reload, 9
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_6, label LBL_5
LBL_5:
%10 = add i32 %sv_1.15.reload, 4
store i32 %10, i32* %sv_1.0.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_6:
%.reload9 = load i8*, i8** %.reg2mem8
%11 = call i16** @__ctype_b_loc()
%12 = load i16*, i16** %11, align 8
%13 = ptrtoint i16* %12 to i64
%14 = load i8, i8* %.reload9, align 1
%15 = sext i8 %14 to i64
%16 = mul i64 %15, 2
%17 = add i64 %16, %13
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = and i16 %19, 16384
%21 = icmp ne i16 %20, 0
%22 = zext i1 %21 to i32
%spec.select2 = add i32 %sv_1.15.reload, %22
store i32 %spec.select2, i32* %sv_1.0.reg2mem
store i32 %sv_0.26.reload, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%23 = add i64 %sv_2.04.reload, 1
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 0
%27 = icmp eq i1 %26, false
store i8 %25, i8* %.reg2mem
store i8* %24, i8** %.reg2mem8
store i32 %sv_0.1.reload, i32* %sv_0.26.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem
store i64 %23, i64* %sv_2.04.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.lcssa.reg2mem
br i1 %27, label LBL_2, label LBL_8
LBL_8:
%28 = ptrtoint i64* %arg1 to i64
%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
%29 = icmp sgt i32 %sv_1.1.lcssa.reload, %sv_0.2.lcssa.reload
%spec.select3 = select i1 %29, i32 %sv_1.1.lcssa.reload, i32 %sv_0.2.lcssa.reload
%30 = trunc i64 %28 to i32
%31 = mul i32 %spec.select3, %30
%32 = zext i32 %31 to i64
store i64 %32, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_1.15.reload, { 3, 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem8, { 2, 0, 1 }
uselistorder i32* %sv_0.26.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1, 3, 4 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | warnf_19198 | warnf | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.0.ph9.reg2mem = alloca i8*
%sv_1.0.ph11.reg2mem = alloca i32
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%11 = load i128, i128* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%12 = trunc i64 %3 to i8
%13 = icmp eq i8 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i128 %11)
%15 = call i64 @FUNC(i128 %10)
%16 = call i64 @FUNC(i128 %9)
%17 = call i64 @FUNC(i128 %8)
%18 = call i64 @FUNC(i128 %7)
%19 = call i64 @FUNC(i128 %6)
%20 = call i64 @FUNC(i128 %5)
%21 = call i64 @FUNC(i128 %4)
br label LBL_2
LBL_2:
%22 = trunc i64 %2 to i32
%23 = urem i32 %22, 2
%24 = zext i32 %23 to i64
%25 = icmp eq i32 %23, 0
%26 = icmp eq i1 %25, false
store i64 %24, i64* %rax.1.reg2mem
br i1 %26, label LBL_13, label LBL_3
LBL_3:
store i32 16, i32* %sv_3, align 4
%27 = ptrtoint i32* %sv_3 to i64
%28 = bitcast i64* %sv_2 to i8*
%29 = call i32 @vsnprintf(i8* nonnull %28, i32 256, i8* %arg2, i64 %27)
%30 = ptrtoint i64* %sv_2 to i64
%31 = icmp eq i32 %29, 0
%32 = icmp slt i32 %29, 0
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %31, false
%35 = icmp eq i1 %33, %34
store i64 %30, i64* %rax.1.reg2mem
br i1 %35, label LBL_4, label LBL_13
LBL_4:
%36 = ptrtoint i64* %arg1 to i64
%37 = add i64 %36, 8
%38 = inttoptr i64 %37 to i64*
store i32 %29, i32* %sv_1.0.ph11.reg2mem
store i8* %28, i8** %sv_0.0.ph9.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.ph9.reload = load i8*, i8** %sv_0.0.ph9.reg2mem
%sv_1.0.ph11.reload = load i32, i32* %sv_1.0.ph11.reg2mem
%39 = load i64, i64* %38, align 8
%40 = inttoptr i64 %39 to %_IO_FILE*
%41 = call i32 @fwrite(i64* bitcast ([10 x i8]* @gv_0 to i64*), i32 1, i32 9, %_IO_FILE* %40)
%42 = icmp slt i32 %sv_1.0.ph11.reload, 81
br i1 %42, label LBL_12, label LBL_6
LBL_6:
%43 = ptrtoint i8* %sv_0.0.ph9.reload to i64
store i64 79, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_7:
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%44 = add i64 %indvars.iv.reload, %43
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
switch i8 %46, label LBL_9 [
i8 32, label LBL_10
i8 9, label LBL_10
]
LBL_9:
%47 = icmp eq i64 %indvars.iv.reload, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_7, label LBL_10
LBL_10:
%49 = trunc i64 %indvars.iv.reload to i32
%50 = load i64, i64* %38, align 8
%51 = add i32 %49, 1
%52 = bitcast i8* %sv_0.0.ph9.reload to i64*
%53 = inttoptr i64 %50 to %_IO_FILE*
%54 = call i32 @fwrite(i64* %52, i32 %51, i32 1, %_IO_FILE* %53)
%55 = load i64, i64* %38, align 8
%56 = inttoptr i64 %55 to %_IO_FILE*
%57 = call i32 @fputc(i32 10, %_IO_FILE* %56)
%58 = add i64 %44, 1
%59 = inttoptr i64 %58 to i8*
%60 = sub i32 %sv_1.0.ph11.reload, %49
%61 = icmp eq i32 %60, 0
%62 = icmp slt i32 %60, 0
%63 = icmp eq i1 %62, false
%64 = icmp eq i1 %61, false
%65 = icmp eq i1 %63, %64
store i32 %60, i32* %sv_1.0.ph11.reg2mem
store i8* %59, i8** %sv_0.0.ph9.reg2mem
br i1 %65, label LBL_5, label LBL_11
LBL_11:
%66 = and i64 %indvars.iv.reload, 4294967295
store i64 %66, i64* %rax.1.reg2mem
br label LBL_13
LBL_12:
%67 = load i64, i64* %38, align 8
%68 = inttoptr i64 %67 to %_IO_FILE*
%69 = call i32 @fputs(i8* %sv_0.0.ph9.reload, %_IO_FILE* %68)
%70 = sext i32 %69 to i64
store i64 %70, i64* %rax.1.reg2mem
br label LBL_13
LBL_13:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %60, { 0, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 4, 3, 1, 2, 0 }
uselistorder i8* %sv_0.0.ph9.reload, { 2, 1, 0 }
uselistorder i64* %38, { 2, 1, 0, 3 }
uselistorder i32 %23, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i32* %sv_1.0.ph11.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.0.ph9.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %1, { 1, 0 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 0, 1, 5 }
uselistorder i32 0, { 2, 3, 0, 1, 4 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | pfkey_register_5839 | pfkey_register | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp slt i32 %4, 256
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_8
LBL_1:
%6 = inttoptr i64 %3 to i32*
%7 = icmp eq i32 %4, 0
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = load i32, i32* %6, align 4
%9 = urem i32 %8, 32
%10 = ashr i32 %8, %9
%storemerge = zext i32 %10 to i64
store i64 %storemerge, i64* %rdx, align 8
%11 = urem i64 %storemerge, 2
%12 = icmp eq i64 %11, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_8
LBL_3:
%13 = load i32, i32* %6, align 4
%14 = zext i32 %13 to i64
store i64 %14, i64* %rdx, align 8
%15 = urem i32 %13, 32
%16 = shl i32 1, %15
%17 = or i32 %16, %13
store i32 %17, i32* %6, align 4
br label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64* nonnull @gv_0)
%19 = call i64 @FUNC()
%20 = ptrtoint i32* %arg3 to i64
%21 = call i64 @FUNC(i64 %20, i64 0)
%22 = call i64 @FUNC(i64* nonnull @gv_0)
%23 = icmp eq i64 %21, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_7, label LBL_5
LBL_5:
%25 = bitcast i64* %rdx to i32*
%26 = load i32, i32* %25, align 8
%27 = icmp eq i32 %26, 0
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = load i32, i32* %6, align 4
%29 = zext i32 %28 to i64
store i64 %29, i64* %rdx, align 8
%30 = urem i32 %28, 32
%31 = icmp eq i32 %30, 0
%32 = shl i32 -1, %30
%phitmp = add i32 %32, -1
%storemerge3 = select i1 %31, i32 -2, i32 %phitmp
%33 = and i32 %storemerge3, %28
store i32 %33, i32* %6, align 4
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%34 = call i64 @FUNC(i64 %2)
%35 = call i64 @FUNC(i64 %21, i64 0, i64 1, i64 %2, i64 %34)
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 %28, { 1, 0, 2 }
uselistorder i32 %13, { 1, 0, 2 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32* %6, { 2, 3, 0, 1, 4 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %rdx, { 2, 3, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 3, 4 }
uselistorder i64 4294967294, { 1, 0 }
uselistorder label LBL_8, { 4, 1, 0, 2, 3 }
} | 0 |
BinRealVul | arm_reset_cpu_15390 | arm_reset_cpu | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %3, i64 %4, i64 %2, i64 %1)
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_1:
%9 = call i64 @FUNC(i64 %6)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%14 = call i64 @FUNC(i64 %6)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 1, { 5, 4, 6, 3, 1, 7, 2, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | qemu_mutex_lock_iothread_3202 | qemu_mutex_lock_iothread | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load i64, i64* @gv_0, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64* nonnull @gv_1)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_6
LBL_3:
%7 = call i64 @FUNC(i64* nonnull @gv_2)
%8 = call i64 @FUNC(i64* nonnull @gv_1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = call i64 @FUNC(i64* nonnull @gv_1)
br label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64* nonnull @gv_2)
%15 = call i64 @FUNC(i64* nonnull @gv_3)
store i64 %15, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @qemu_mutex_lock, { 1, 0 }
uselistorder i32 1, { 5, 4, 3, 6, 2, 1, 0 }
} | 0 |
BinRealVul | WNewAutoFlow_10587 | WNewAutoFlow | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = trunc i64 %arg2 to i32
%6 = mul i32 %5, 6
%7 = or i32 %6, 1
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
br label LBL_3
LBL_2:
%9 = and i32 %2, -3
%arg2.tr = trunc i64 %arg2 to i32
%10 = mul i32 %arg2.tr, 2
%11 = or i32 %9, %10
%12 = bitcast i64* %arg1 to i32*
store i32 %11, i32* %12, align 4
br label LBL_3
LBL_3:
%13 = ptrtoint i64* %arg1 to i64
%14 = and i64 %1, 4
%15 = add i64 %13, 8
%16 = call i64 @FUNC(i64 %15, i64 %14)
ret i64 %16
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
} | 0 |
BinRealVul | update_exception_bitmap_13478 | update_exception_bitmap | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.4.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = urem i64 %1, 4
%3 = icmp eq i64 %2, 3
%4 = icmp eq i1 %3, false
%spec.select = select i1 %4, i32 16793798, i32 16793806
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%sv_0.1 = select i1 %10, i32 %spec.select, i32 -1
%11 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%12 = icmp eq i32 %11, 0
%13 = and i32 %sv_0.1, -16385
%spec.select2 = select i1 %12, i32 %sv_0.1, i32 %13
%14 = add i64 %5, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%18 = and i32 %spec.select2, -5
%sv_0.3 = select i1 %17, i32 %spec.select2, i32 %18
%19 = call i64 @FUNC(i64 %5)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
store i32 %sv_0.3, i32* %sv_0.4.reg2mem
br i1 %21, label LBL_2, label LBL_1
LBL_1:
%22 = call i64 @FUNC(i64 %5)
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = or i32 %24, %sv_0.3
store i32 %25, i32* %sv_0.4.reg2mem
br label LBL_2
LBL_2:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%26 = zext i32 %sv_0.4.reload to i64
%27 = call i64 @FUNC(i64 0, i64 %26)
ret i64 %27
uselistorder i32 %sv_0.3, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
} | 0 |
BinRealVul | NeXTDecode_11785 | NeXTDecode | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i16 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.lcssa.reg2mem = alloca i64
%sv_1.3.lcssa.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_2.113.reg2mem = alloca i64
%sv_2.0.in.reg2mem = alloca i8
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32
%sv_4.015.reg2mem = alloca i64
%sv_1.316.reg2mem = alloca i64
%sv_0.217.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i64
%sv_5.020.reg2mem = alloca i64
%sv_1.021.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = icmp eq i64 %arg3, 0
%5 = icmp eq i1 %4, false
store i64 %arg3, i64* %sv_1.021.reg2mem
store i64 %3, i64* %sv_5.020.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%sv_5.020.reload = load i64, i64* %sv_5.020.reg2mem
%sv_1.021.reload = load i64, i64* %sv_1.021.reg2mem
%6 = add i64 %sv_1.021.reload, -1
%7 = add i64 %sv_5.020.reload, 1
%8 = inttoptr i64 %sv_5.020.reload to i8*
store i8 -1, i8* %8, align 1
%9 = icmp eq i64 %6, 0
%10 = icmp eq i1 %9, false
store i64 %6, i64* %sv_1.021.reg2mem
store i64 %7, i64* %sv_5.020.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg1 to i64
%12 = add i64 %11, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = urem i64 %arg3, %14
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = sext i16 %arg4 to i64
%18 = add i64 %11, 32
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %17, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_24
LBL_4:
%22 = add i64 %11, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp ne i64 %24, 0
%or.cond414 = icmp eq i1 %5, %25
store i64 %24, i64* %sv_1.3.lcssa.reg2mem
store i64 %11, i64* %sv_0.2.lcssa.reg2mem
br i1 %or.cond414, label LBL_5, label LBL_22
LBL_5:
%26 = add i64 %11, 24
%27 = inttoptr i64 %26 to i32*
%28 = add i64 %11, 28
%29 = inttoptr i64 %28 to i32*
store i64 %3, i64* %storemerge18.reg2mem
store i64 %11, i64* %sv_0.217.reg2mem
store i64 %24, i64* %sv_1.316.reg2mem
store i64 %arg3, i64* %sv_4.015.reg2mem
br label LBL_6
LBL_6:
%sv_4.015.reload = load i64, i64* %sv_4.015.reg2mem
%sv_1.316.reload = load i64, i64* %sv_1.316.reg2mem
%sv_0.217.reload = load i64, i64* %sv_0.217.reg2mem
%storemerge18.reload = load i64, i64* %storemerge18.reg2mem
%30 = add i64 %sv_0.217.reload, 1
%31 = inttoptr i64 %sv_0.217.reload to i8*
%32 = load i8, i8* %31, align 1
%33 = add i64 %sv_1.316.reload, -1
switch i8 %32, label LBL_12 [
i8 0, label LBL_7
i8 1, label LBL_9
]
LBL_7:
%34 = icmp ult i64 %33, %14
br i1 %34, label LBL_23, label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %storemerge18.reload, i64 %30, i64 %14)
%36 = add i64 %30, %14
%37 = sub i64 %33, %14
store i64 %37, i64* %sv_1.2.reg2mem
store i64 %36, i64* %sv_0.1.reg2mem
br label LBL_21
LBL_9:
%38 = icmp ult i64 %33, 4
br i1 %38, label LBL_23, label LBL_10
LBL_10:
%39 = inttoptr i64 %30 to i8*
%40 = load i8, i8* %39, align 1
%41 = zext i8 %40 to i64
%42 = mul i64 %41, 256
%43 = add i64 %sv_0.217.reload, 2
%44 = inttoptr i64 %43 to i8*
%45 = load i8, i8* %44, align 1
%46 = zext i8 %45 to i64
%47 = or i64 %42, %46
%48 = add i64 %sv_0.217.reload, 3
%49 = inttoptr i64 %48 to i8*
%50 = load i8, i8* %49, align 1
%51 = zext i8 %50 to i64
%52 = mul i64 %51, 256
%53 = add i64 %sv_0.217.reload, 4
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = zext i8 %55 to i64
%57 = or i64 %52, %56
%58 = add nuw nsw i64 %57, 4
%59 = icmp ult i64 %33, %58
%60 = add nuw nsw i64 %57, %47
%61 = icmp ult i64 %14, %60
%or.cond = or i1 %59, %61
br i1 %or.cond, label LBL_23, label LBL_11
LBL_11:
%62 = add i64 %sv_0.217.reload, 5
%63 = add i64 %47, %storemerge18.reload
%64 = call i64 @FUNC(i64 %63, i64 %62, i64 %57)
%65 = add i64 %58, %30
%66 = add i64 %sv_1.316.reload, -5
%67 = sub i64 %66, %57
store i64 %67, i64* %sv_1.2.reg2mem
store i64 %65, i64* %sv_0.1.reg2mem
br label LBL_21
LBL_12:
%68 = load i32, i32* %27, align 4
%69 = call i64 @FUNC(i64 %11)
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, 0
store i32 %68, i32* %sv_3.0.reg2mem
br i1 %71, label LBL_14, label LBL_13
LBL_13:
%72 = load i32, i32* %29, align 4
store i32 %72, i32* %sv_3.0.reg2mem
br label LBL_14
LBL_14:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%73 = icmp eq i32 %sv_3.0.reload, 0
%74 = icmp ne i32 %sv_3.0.reload, 0
%75 = icmp eq i1 %74, false
store i64 %33, i64* %sv_1.1.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
store i8 %32, i8* %sv_2.0.in.reg2mem
br label LBL_15
LBL_15:
%sv_2.0.in.reload = load i8, i8* %sv_2.0.in.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%76 = urem i8 %sv_2.0.in.reload, 64
%77 = icmp eq i8 %76, 0
%or.cond212 = or i1 %73, %77
br i1 %or.cond212, label LBL_18, label LBL_16
LBL_16:
%78 = zext i8 %76 to i64
%79 = udiv i8 %sv_2.0.in.reload, 64
%80 = zext i8 %79 to i64
store i64 %78, i64* %sv_2.113.reg2mem
br label LBL_17
LBL_17:
%sv_2.113.reload = load i64, i64* %sv_2.113.reg2mem
%81 = add nsw i64 %sv_2.113.reload, -1
%82 = call i64 @FUNC(i64 %storemerge18.reload, i64 %80)
%83 = icmp eq i64 %81, 0
store i64 %81, i64* %sv_2.113.reg2mem
br i1 %83, label LBL_18, label LBL_17
LBL_18:
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %75, label LBL_21, label LBL_19
LBL_19:
%84 = icmp eq i64 %sv_1.1.reload, 0
br i1 %84, label LBL_23, label LBL_20
LBL_20:
%85 = add i64 %sv_0.0.reload, 1
%86 = inttoptr i64 %sv_0.0.reload to i8*
%87 = load i8, i8* %86, align 1
%88 = add i64 %sv_1.1.reload, -1
store i64 %88, i64* %sv_1.1.reg2mem
store i64 %85, i64* %sv_0.0.reg2mem
store i8 %87, i8* %sv_2.0.in.reg2mem
br label LBL_15
LBL_21:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%89 = sub i64 %sv_4.015.reload, %14
%90 = add i64 %storemerge18.reload, %14
%91 = icmp ne i64 %sv_1.2.reload, 0
%92 = icmp eq i64 %89, 0
%93 = icmp eq i1 %92, false
%or.cond4 = icmp eq i1 %93, %91
store i64 %90, i64* %storemerge18.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.217.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.316.reg2mem
store i64 %89, i64* %sv_4.015.reg2mem
store i64 %sv_1.2.reload, i64* %sv_1.3.lcssa.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.lcssa.reg2mem
br i1 %or.cond4, label LBL_6, label LBL_22
LBL_22:
%sv_0.2.lcssa.reload = load i64, i64* %sv_0.2.lcssa.reg2mem
%sv_1.3.lcssa.reload = load i64, i64* %sv_1.3.lcssa.reg2mem
store i64 %sv_0.2.lcssa.reload, i64* %arg1, align 8
store i64 %sv_1.3.lcssa.reload, i64* %23, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_24
LBL_23:
%94 = add i64 %11, 40
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = add i64 %11, 32
%98 = inttoptr i64 %97 to i64*
%99 = load i64, i64* %98, align 8
%100 = call i64 @FUNC(i64 %99, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i64 %96, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.2.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.1.reload, { 2, 1, 0 }
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i8 %sv_2.0.in.reload, { 1, 0 }
uselistorder i64 %57, { 0, 2, 1, 3 }
uselistorder i64 %33, { 0, 1, 3, 2, 4 }
uselistorder i64 %30, { 0, 2, 3, 1, 4 }
uselistorder i64 %storemerge18.reload, { 3, 0, 2, 1 }
uselistorder i64 %sv_1.316.reload, { 1, 0 }
uselistorder i64 %24, { 1, 0, 2 }
uselistorder i64 %14, { 0, 3, 2, 5, 1, 6, 4, 7 }
uselistorder i64 %11, { 7, 6, 5, 1, 3, 4, 0, 8, 2, 9 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_1.021.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_5.020.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge18.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.217.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.316.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.015.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.1.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_2.0.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.113.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @_TIFFmemcpy, { 1, 0 }
uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @TIFFErrorExt, { 1, 0 }
uselistorder i64 -1, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 %arg3, { 0, 3, 1, 2 }
uselistorder label LBL_23, { 3, 0, 1, 2 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | lstcon_rpc_pinger_start_18148 | lstcon_rpc_pinger_start | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%5 = call i64 @FUNC(i64* nonnull @gv_2)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_4:
%9 = call i64 @FUNC(i64 0, i64 1, i64* nonnull @gv_3)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_4, i64 0, i64 0))
%13 = and i64 %9, 4294967295
store i64 %13, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%14 = call i64 @FUNC()
%15 = trunc i64 %14 to i32
%16 = add i32 %15, 5
store i32 %16, i32* bitcast (i32** @gv_5 to i32*), align 8
%17 = call i64 @FUNC(i64 ptrtoint (i32** @gv_5 to i64))
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32** @gv_5, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 (i8*)* @CERROR, { 2, 1, 0 }
uselistorder i32 1, { 3, 4, 2, 1, 0, 5 }
} | 1 |
BinRealVul | adb_register_types_14605 | adb_register_types | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64* nonnull @gv_1)
%2 = call i64 @FUNC(i64* nonnull @gv_2)
%3 = call i64 @FUNC(i64* nonnull @gv_3)
ret i64 %3
uselistorder i64 (i64*)* @type_register_static, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | virtio_blk_handle_write_16446 | virtio_blk_handle_write | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %6, i64 %2)
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %2, 24
%12 = load i64, i64* %4, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14, i64 %11, i64 %10, i64 1)
%16 = load i64, i64* %9, align 8
%17 = udiv i64 %16, 512
%18 = call i64 @FUNC(i64 %2, i64 %7, i64 %17)
%19 = load i64, i64* %9, align 8
%20 = load i64, i64* %4, align 8
%21 = call i64 @FUNC(i64 %20, i64 %7, i64 %19)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_2, label LBL_1
LBL_1:
%25 = call i64 @FUNC(i64 %2, i64 4294967291)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%26 = trunc i64 %1 to i32
%27 = icmp eq i32 %26, 32
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = ptrtoint i32* %arg2 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%29 = load i64, i64* %4, align 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = ptrtoint i32* %arg2 to i64
%33 = call i64 @FUNC(i64 %31, i64 %32)
store i64 %32, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%34 = bitcast i64* %rsi to i32*
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%35 = add i64 %.pre-phi.reload, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%sext = mul i64 %1, 4294967296
%38 = ashr exact i64 %sext, 32
%39 = mul nsw i64 %38, 48
%40 = add i64 %37, %39
%41 = inttoptr i64 %40 to i64*
store i64 %7, i64* %41, align 8
%42 = load i64, i64* %9, align 8
%43 = udiv i64 %42, 512
%44 = add i64 %40, 8
%45 = inttoptr i64 %44 to i64*
store i64 %43, i64* %45, align 8
%46 = add i64 %40, 16
%47 = inttoptr i64 %46 to i64*
store i64 %8, i64* %47, align 8
%48 = add i64 %40, 24
%49 = inttoptr i64 %48 to i64*
store i64 4198795, i64* %49, align 8
%50 = add i64 %40, 32
%51 = inttoptr i64 %50 to i64*
store i64 %2, i64* %51, align 8
%52 = add i64 %40, 40
%53 = inttoptr i64 %52 to i32*
store i32 0, i32* %53, align 4
%54 = load i32, i32* %34, align 8
%55 = add i32 %54, 1
store i32 %55, i32* %arg2, align 4
store i64 %.pre-phi.reload, 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 %2, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32* %arg2, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | compare_sids_8102 | compare_sids | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%storemerge19.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp ne i64* %arg1, null
%4 = icmp eq i64* %arg2, null
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %3, %5
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_10
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %arg1 to i64
%8 = trunc i64 %1 to i8
%9 = trunc i64 %2 to i8
%10 = icmp eq i8 %8, %9
store i32 0, i32* %storemerge19.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = icmp ugt i8 %8, %9
%. = select i1 %11, i64 1, i64 4294967295
store i64 %., i64* %rax.0.reg2mem
br label LBL_10
LBL_3:
%storemerge19.reload = load i32, i32* %storemerge19.reg2mem
%12 = sext i32 %storemerge19.reload to i64
%13 = mul i64 %12, 4
%14 = add nsw i64 %13, 4
%15 = add i64 %14, %7
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %14, %6
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %17, %20
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = icmp ugt i32 %17, %20
%.3 = select i1 %22, i64 1, i64 4294967295
store i64 %.3, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%23 = add nuw i32 %storemerge19.reload, 1
%24 = icmp ult i32 %23, 6
store i32 %23, i32* %storemerge19.reg2mem
br i1 %24, label LBL_3, label LBL_6
LBL_6:
%25 = add i64 %7, 28
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %6, 28
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = sub i32 %30, %27
%32 = xor i32 %30, %27
%33 = xor i32 %31, %30
%34 = and i32 %33, %32
%35 = icmp slt i32 %34, 0
%36 = icmp eq i32 %31, 0
%37 = icmp slt i32 %31, 0
%38 = icmp ne i1 %37, %35
%39 = or i1 %36, %38
%40 = select i1 %39, i32 %30, i32 %27
%41 = icmp sgt i32 %40, 0
store i32 0, i32* %storemerge8.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %41, label LBL_7, label LBL_10
LBL_7:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%42 = sext i32 %storemerge8.reload to i64
%43 = mul i64 %42, 4
%44 = add nsw i64 %43, 32
%45 = add i64 %44, %7
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %44, %6
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %47, %50
br i1 %51, label LBL_9, label LBL_8
LBL_8:
%52 = zext i32 %47 to i64
%53 = call i64 @FUNC(i64 %52)
%54 = trunc i64 %53 to i32
%55 = load i32, i32* %49, align 4
%56 = zext i32 %55 to i64
%57 = call i64 @FUNC(i64 %56)
%58 = trunc i64 %57 to i32
%59 = icmp ugt i32 %54, %58
%.4 = select i1 %59, i64 1, i64 4294967295
store i64 %.4, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%60 = add nuw i32 %storemerge8.reload, 1
%61 = icmp slt i32 %60, %40
store i32 %60, i32* %storemerge8.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_7, label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %40, { 1, 0 }
uselistorder i32 %31, { 1, 2, 0 }
uselistorder i32 %30, { 2, 0, 1, 3 }
uselistorder i32 %27, { 1, 0, 2 }
uselistorder i8 %9, { 1, 0 }
uselistorder i8 %8, { 1, 0 }
uselistorder i64 %7, { 0, 2, 1 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i32* %storemerge19.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder i32 0, { 0, 2, 3, 4, 5, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | srt_get_duration_15176 | srt_get_duration | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%storemerge10.reg2mem = alloca i64*
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%sv_9 = alloca i64, align 8
%1 = ptrtoint i64* %sv_9 to i64
%2 = add i64 %1, -8
%3 = inttoptr i64 %2 to i64*
%4 = ptrtoint i32* %sv_4 to i64
%5 = add i64 %1, -16
%6 = inttoptr i64 %5 to i64*
%7 = ptrtoint i32* %sv_3 to i64
%8 = add i64 %1, -24
%9 = inttoptr i64 %8 to i64*
%10 = ptrtoint i32* %sv_2 to i64
%11 = add i64 %1, -32
%12 = inttoptr i64 %11 to i64*
%13 = ptrtoint i32* %sv_1 to i64
%14 = bitcast i64* %arg1 to i8*
%15 = add i64 %0, 1
store i64 0, i64* %.reg2mem
store i64* null, i64** %storemerge10.reg2mem
br label LBL_1
LBL_1:
%storemerge10.reload = load i64*, i64** %storemerge10.reg2mem
%.reload = load i64, i64* %.reg2mem
store i64 %4, i64* %3, align 8
store i64 %7, i64* %6, align 8
store i64 %10, i64* %9, align 8
store i64 %13, i64* %12, align 8
%16 = call i32 (i8*, i8*, ...) @sscanf(i8* %14, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_5, i64* nonnull %sv_6, i64* nonnull %sv_7, i64* nonnull %sv_8, i64* %storemerge10.reload)
%17 = icmp eq i32 %16, 8
%18 = icmp eq i1 %17, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load i64, i64* %sv_5, align 8
%20 = mul i64 %19, 60
%21 = load i64, i64* %sv_6, align 8
%22 = add i64 %20, %21
%sext6 = mul i64 %22, 4294967296
%23 = ashr exact i64 %sext6, 32
store i64 %23, i64* %sv_6, align 8
%24 = load i32, i32* %sv_1, align 4
%25 = mul i32 %24, 60
%26 = load i32, i32* %sv_2, align 4
%27 = add i32 %26, %25
store i32 %27, i32* %sv_2, align 4
%28 = mul nsw i64 %23, 60
%29 = load i64, i64* %sv_7, align 8
%30 = add i64 %29, %28
%sext7 = mul i64 %30, 4294967296
%31 = ashr exact i64 %sext7, 32
store i64 %31, i64* %sv_7, align 8
%32 = mul i32 %27, 60
%33 = load i32, i32* %sv_3, align 4
%34 = add i32 %33, %32
store i32 %34, i32* %sv_3, align 4
%35 = mul nsw i64 %31, 1000
%36 = load i64, i64* %sv_8, align 8
%37 = add i64 %36, %35
%sext8 = mul i64 %37, 4294967296
%38 = ashr exact i64 %sext8, 32
store i64 %38, i64* %sv_8, align 8
%39 = mul i32 %34, 1000
%40 = load i32, i32* %sv_4, align 4
%41 = add i32 %40, %39
store i32 %41, i32* %sv_4, align 4
%42 = trunc i64 %38 to i32
%43 = sub i32 %41, %42
store i32 %43, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%44 = call i32 @strcspn(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%45 = sext i32 %44 to i64
%46 = add i64 %15, %45
store i64 %46, i64* %arg1, align 8
%47 = add nuw nsw i64 %.reload, 1
%48 = and i64 %47, 4294967295
%49 = inttoptr i64 %48 to i64*
%50 = trunc i64 %47 to i32
%51 = icmp slt i32 %50, 2
%52 = icmp eq i32 %sv_0.0.reload, 0
%or.cond = icmp eq i1 %51, %52
store i64 %48, i64* %.reg2mem
store i64* %49, i64** %storemerge10.reg2mem
br i1 %or.cond, label LBL_1, label LBL_4
LBL_4:
%53 = zext i32 %sv_0.0.reload to i64
ret i64 %53
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %sv_8, { 1, 2, 0 }
uselistorder i64* %sv_7, { 1, 2, 0 }
uselistorder i64* %sv_6, { 1, 2, 0 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i32* %sv_4, { 2, 1, 0 }
uselistorder i32* %sv_3, { 2, 1, 0 }
uselistorder i32* %sv_2, { 2, 1, 0 }
uselistorder i32* %sv_1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64** %storemerge10.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | llc_conn_handler_11965 | llc_conn_handler | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.in.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%5 = call i64 @FUNC(i64 %3, i64* nonnull %sv_3)
%6 = call i64 @FUNC(i64 %3, i64* nonnull %sv_2)
%7 = call i64 @FUNC(i64 %3, i64* nonnull %sv_1)
%8 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0)
%9 = call i64 @FUNC(i64 %4, i64* nonnull %sv_3, i64* nonnull %sv_1)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_9, label LBL_1
LBL_1:
%11 = inttoptr i64 %9 to i32*
%12 = call i64 @FUNC(i64 %9)
%13 = load i32, i32* %11, align 4
%14 = icmp eq i32 %13, 1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_2
LBL_2:
%16 = add i64 %3, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %9, i64 %18, i64* nonnull %sv_3, i64* nonnull %sv_1)
%20 = icmp eq i64 %19, 0
br i1 %20, label LBL_10, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %3, i64 %19)
store i64* %sv_1, i64** %rcx.0.in.reg2mem
store i64 %19, i64* %rdx.0.reg2mem
br label LBL_5
LBL_4:
store i64 %9, i64* %arg2, align 8
store i64* %sv_3, i64** %rcx.0.in.reg2mem
store i64 %9, i64* %rdx.0.reg2mem
br label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %9)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 %9, i64 %3)
br label LBL_8
LBL_7:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.in.reload = load i64*, i64** %rcx.0.in.reg2mem
%rcx.0 = ptrtoint i64* %rcx.0.in.reload to i64
%27 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %rdx.0.reload, i64 %rcx.0, i64 %2, i64 %1)
%28 = call i64 @FUNC(i64 %3, i64 0)
%29 = add i64 %9, 4
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = call i64 @FUNC(i64 %9, i64 %3, i32 %31)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%36 = call i64 @FUNC(i64 %9)
%37 = call i64 @FUNC(i64 %9)
store i64 %37, i64* %storemerge.reg2mem
br label LBL_11
LBL_9:
%38 = call i64 @FUNC(i64 %3)
store i64 %38, i64* %storemerge.reg2mem
br label LBL_11
LBL_10:
%39 = call i64 @FUNC(i64 %3)
br label LBL_8
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %9, { 4, 5, 2, 3, 6, 7, 0, 1, 8, 9, 10, 11 }
uselistorder i64 %3, { 2, 6, 3, 4, 1, 0, 5, 7, 8, 9, 10 }
uselistorder i64** %rcx.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @kfree_skb, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 1 |
BinRealVul | __bio_map_kern_18163 | __bio_map_kern | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%sv_2.04.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i32
%0 = zext i32 %arg3 to i64
%1 = add i64 %arg2, 4095
%2 = add i64 %1, %0
%3 = udiv i64 %2, 4096
%4 = udiv i64 %arg2, 4096
%5 = trunc i64 %3 to i32
%6 = trunc i64 %4 to i32
%7 = sub i32 %5, %6
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %arg4, i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 4294967284)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_8
LBL_2:
%13 = call i64 @FUNC(i64 %arg2)
%14 = icmp sgt i32 %7, 0
br i1 %14, label LBL_3, label LBL_7
LBL_3:
%15 = ptrtoint i64* %arg1 to i64
%16 = trunc i64 %13 to i32
store i32 0, i32* %storemerge15.reg2mem
store i32 %16, i32* %sv_2.04.reg2mem
store i32 %arg3, i32* %sv_1.03.reg2mem
store i64 %arg2, i64* %sv_0.02.reg2mem
br label LBL_4
LBL_4:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%17 = icmp eq i32 %sv_1.03.reload, 0
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_2.04.reload = load i32, i32* %sv_2.04.reg2mem
%18 = sub i32 4096, %sv_2.04.reload
%19 = icmp ugt i32 %18, %sv_1.03.reload
%spec.select = select i1 %19, i32 %sv_1.03.reload, i32 %18
%20 = call i64 @FUNC(i64 %sv_0.02.reload)
%21 = zext i32 %sv_2.04.reload to i64
%22 = zext i32 %spec.select to i64
%23 = call i64 @FUNC(i64 %15, i64 %9, i64 %20, i64 %22, i64 %21)
%24 = trunc i64 %23 to i32
%25 = icmp ugt i32 %spec.select, %24
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%26 = add i64 %sv_0.02.reload, %22
%27 = sub i32 %sv_1.03.reload, %spec.select
%28 = add nuw nsw i32 %storemerge15.reload, 1
%29 = icmp slt i32 %28, %7
store i32 %28, i32* %storemerge15.reg2mem
store i32 0, i32* %sv_2.04.reg2mem
store i32 %27, i32* %sv_1.03.reg2mem
store i64 %26, i64* %sv_0.02.reg2mem
br i1 %29, label LBL_4, label LBL_7
LBL_7:
%30 = inttoptr i64 %9 to i64*
store i64 4198753, i64* %30, align 8
store i64 %9, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %spec.select, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i32 %sv_1.03.reload, { 1, 0, 3, 2 }
uselistorder i64 %9, { 0, 2, 1, 3 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.04.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 0, 3, 1, 2 }
uselistorder i64 %arg2, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 0, 2, 1, 3 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | pdf_add_bookmark_18047 | pdf_add_bookmark | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 4294967284, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
store i64 %4, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%5 = icmp eq i64 %arg2, 0
%6 = icmp eq i1 %5, false
store i64 %arg2, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = icmp eq i64 %sv_0.0.reload, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %0, i64 4294967274, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0))
store i64 %12, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%13 = inttoptr i64 %1 to i8*
%14 = call i8* @strncpy(i8* %13, i8* %arg3, i32 256)
%15 = add i64 %1, 256
%16 = inttoptr i64 %15 to i8*
store i8 0, i8* %16, align 1
%17 = inttoptr i64 %15 to i64*
store i64 %sv_0.0.reload, i64* %17, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @pdf_set_err, { 1, 0 }
} | 1 |
BinRealVul | zend_throw_or_error_11178 | zend_throw_or_error | define i64 @FUNC(i64 %arg1, i64* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
store i64 0, i64* %sv_1, align 8
store i32 24, i32* %sv_0, align 4
%21 = ptrtoint i8* %arg3 to i64
%22 = call i64 @FUNC(i64* nonnull %sv_1, i64 0, i64 %21, i32* nonnull %sv_0)
%23 = urem i64 %arg1, 2
%24 = icmp eq i64 %23, 0
%25 = load i64, i64* %sv_1, align 8
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%26 = ptrtoint i64* %arg2 to i64
%27 = call i64 @FUNC(i64 %26, i64 %25)
br label LBL_5
LBL_4:
%28 = ptrtoint i32* %sv_0 to i64
%29 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %25, i64 %28, i64 %arg5, i64 %arg6)
br label LBL_5
LBL_5:
%30 = load i64, i64* %sv_1, align 8
%31 = call i64 @FUNC(i64 %30)
ret i64 %31
uselistorder i64 %25, { 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | alloc_mnt_ns_12592 | alloc_mnt_ns | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 4294967295)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%5 = call i64 @FUNC(i64 72, i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %1)
%9 = call i64 @FUNC(i64 4294967294)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%10 = call i64 @FUNC(i64 %5)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%13 = call i64 @FUNC(i64 %5)
%14 = call i64 @FUNC(i64 %1)
%15 = and i64 %10, 4294967295
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%17 = inttoptr i64 %5 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %17, align 8
%18 = call i64 @FUNC(i64 1, i64* nonnull @gv_1)
%19 = add i64 %5, 8
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = add i64 %5, 16
%22 = call i64 @FUNC(i64 %21, i64 1)
%23 = add i64 %5, 24
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %24, align 8
%25 = add i64 %5, 32
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %5, 48
%28 = call i64 @FUNC(i64 %27)
%29 = add i64 %5, 52
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = call i64 @FUNC(i64 %0)
%32 = add i64 %5, 56
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = add i64 %5, 64
%35 = inttoptr i64 %34 to i64*
store i64 %1, i64* %35, align 8
store i64 %5, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 0, 1, 2, 5, 4, 3, 7, 6, 8, 9, 10, 11, 12 }
uselistorder i64 %1, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @dec_mnt_namespaces, { 1, 0 }
uselistorder i64 (i64)* @ERR_PTR, { 2, 1, 0 }
} | 1 |
BinRealVul | asfrtp_close_context_1257 | asfrtp_close_context | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
ret i64 %3
} | 0 |
BinRealVul | append_options_13005 | append_options | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rsi.2.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%.reg2mem2 = alloca i8*
%.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i16, align 2
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %sv_2, align 8
%2 = add i64 %0, 16
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
switch i32 %4, label LBL_3 [
i32 1, label LBL_1
i32 2, label LBL_2
]
LBL_1:
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8** %sv_1, align 8
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8** %.reg2mem
br label LBL_4
LBL_2:
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8** %sv_1, align 8
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8** %.reg2mem
br label LBL_4
LBL_3:
store i8* null, i8** %sv_1, align 8
store i8* null, i8** %.reg2mem
br label LBL_4
LBL_4:
%5 = ptrtoint i64* %arg1 to i64
%.reload = load i8*, i8** %.reg2mem
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 1, i64* nonnull %sv_2)
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = icmp eq i16 %9, 0
store i8* %.reload, i8** %.reg2mem2
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %rsi.0.reg2mem
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%11 = inttoptr i64 %7 to i64*
%12 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 2, i64* %11)
%.pre = load i8*, i8** %sv_1, align 8
store i8* %.pre, i8** %.reg2mem2
store i64 ptrtoint ([7 x i8]* @gv_3 to i64), i64* %rsi.0.reg2mem
br label LBL_6
LBL_6:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload3 = load i8*, i8** %.reg2mem2
%13 = icmp eq i8* %.reload3, null
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br i1 %13, label LBL_8, label LBL_7
LBL_7:
%14 = bitcast i8** %sv_1 to i64*
%15 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 3, i64* nonnull %14)
store i64 ptrtoint ([5 x i8]* @gv_4 to i64), i64* %rsi.1.reg2mem
br label LBL_8
LBL_8:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%16 = add i64 %0, 12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %19, label LBL_10, label LBL_9
LBL_9:
%20 = inttoptr i64 %16 to i64*
%21 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0), i64 4, i64* %20)
store i64 ptrtoint ([18 x i8]* @gv_5 to i64), i64* %rsi.2.reg2mem
br label LBL_10
LBL_10:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%22 = call i64 @FUNC(i64 %rsi.2.reload)
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i16
store i16 %24, i16* %sv_0, align 2
%25 = bitcast i16* %sv_0 to i64*
%26 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 2, i64* nonnull %25)
ret i64 %26
uselistorder i64 %5, { 3, 2, 1, 0, 4 }
uselistorder i8** %sv_1, { 4, 0, 3, 2, 1 }
uselistorder i8** %.reg2mem, { 0, 3, 2, 1 }
uselistorder [18 x i8]* @gv_5, { 1, 0 }
uselistorder [5 x i8]* @gv_4, { 1, 0 }
uselistorder [7 x i8]* @gv_3, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64*)* @dict_append_entry, { 4, 3, 2, 1, 0 }
uselistorder [7 x i8]* @gv_2, { 1, 0 }
uselistorder i8* null, { 1, 0, 2 }
} | 1 |
BinRealVul | ops_complete_reconstruct_3863 | ops_complete_reconstruct | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.in.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i32
%sv_2.08.reg2mem = alloca i32
%.in13.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %3 to i32
%7 = add i64 %5, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %5, 92
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = sext i32 %15 to i64
%17 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %16, i64 %4, i64 %2, i64 %1)
%18 = icmp eq i32 %6, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_1, label LBL_14
LBL_1:
%20 = add i64 %5, 16
store i32 %6, i32* %.in13.reg2mem
store i32 0, i32* %sv_2.08.reg2mem
store i32 0, i32* %sv_1.07.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
br label LBL_2
LBL_2:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%sv_1.07.reload = load i32, i32* %sv_1.07.reg2mem
%sv_2.08.reload = load i32, i32* %sv_2.08.reg2mem
%.in13.reload = load i32, i32* %.in13.reg2mem
%21 = add i32 %.in13.reload, -1
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = add i64 %20, %23
%25 = call i64 @FUNC(i64 0, i64 %24)
%26 = trunc i64 %25 to i32
%27 = or i32 %sv_0.06.reload, %26
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
%30 = zext i1 %29 to i32
%31 = call i64 @FUNC(i64 1, i64 %24)
%32 = trunc i64 %31 to i32
%33 = or i32 %sv_1.07.reload, %32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
%36 = zext i1 %35 to i32
%37 = call i64 @FUNC(i64 2, i64 %24)
%38 = trunc i64 %37 to i32
%39 = or i32 %sv_2.08.reload, %38
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
%42 = zext i1 %41 to i32
%43 = icmp eq i32 %21, 0
%44 = icmp eq i1 %43, false
store i32 %21, i32* %.in13.reg2mem
store i32 %42, i32* %sv_2.08.reg2mem
store i32 %36, i32* %sv_1.07.reg2mem
store i32 %30, i32* %sv_0.06.reg2mem
br i1 %44, label LBL_2, label LBL_3
LBL_3:
%45 = add i64 %5, 100
%46 = icmp eq i1 %29, false
%47 = icmp eq i1 %35, false
store i32 %6, i32* %.in.reg2mem
br label LBL_4
LBL_4:
%.in.reload = load i32, i32* %.in.reg2mem
%48 = add i32 %.in.reload, -1
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 8
%51 = add i64 %50, %5
%52 = add i64 %51, 12
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = icmp eq i32 %54, 0
%56 = icmp ne i32 %48, %9
%or.cond.not = icmp eq i1 %56, %55
%57 = icmp eq i32 %48, %12
%58 = icmp eq i1 %57, false
%or.cond5 = icmp eq i1 %58, %or.cond.not
br i1 %or.cond5, label LBL_12, label LBL_5
LBL_5:
br i1 %41, label LBL_9, label LBL_6
LBL_6:
%59 = add i64 %51, 16
%60 = call i64 @FUNC(i64 3, i64 %59)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_9, label LBL_7
LBL_7:
%64 = call i64 @FUNC(i64 4, i64 %59)
%65 = call i64 @FUNC(i64 6, i64 %45)
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
br i1 %67, label LBL_9, label LBL_8
LBL_8:
%68 = call i64 @FUNC(i64 5, i64 %59)
br label LBL_9
LBL_9:
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%69 = add i64 %51, 16
%70 = call i64 @FUNC(i64 0, i64 %69)
br label LBL_11
LBL_11:
br i1 %47, label LBL_12, label LBL_13
LBL_12:
%71 = icmp eq i32 %48, 0
%72 = icmp eq i1 %71, false
store i32 %48, i32* %.in.reg2mem
br i1 %72, label LBL_4, label LBL_14
LBL_13:
%73 = add i64 %51, 16
%74 = call i64 @FUNC(i64 1, i64 %73)
br label LBL_12
LBL_14:
%75 = add i64 %5, 96
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = icmp eq i32 %77, 0
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_16, label LBL_15
LBL_15:
store i32 1, i32* %76, align 4
br label LBL_21
LBL_16:
%80 = icmp eq i32 %77, 2
%81 = icmp eq i1 %80, false
br i1 %81, label LBL_18, label LBL_17
LBL_17:
store i32 3, i32* %76, align 4
br label LBL_21
LBL_18:
%82 = icmp eq i32 %77, 4
br i1 %82, label LBL_20, label LBL_19
LBL_19:
%83 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%84 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_3 to i64*), i32 1, i32 22, %_IO_FILE* %83)
br label LBL_20
LBL_20:
store i32 5, i32* %76, align 4
br label LBL_21
LBL_21:
%85 = add i64 %5, 100
%86 = call i64 @FUNC(i64 7, i64 %85)
%87 = call i64 @FUNC(i64 %5)
ret i64 %87
uselistorder i64 %59, { 1, 0, 2 }
uselistorder i32 %48, { 0, 4, 1, 2, 3 }
uselistorder i32 %21, { 0, 2, 1 }
uselistorder i64 %5, { 3, 2, 4, 0, 5, 1, 6, 7, 8 }
uselistorder i32* %.in13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.07.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 1, 0 }
uselistorder i64 (i64, i64)* @set_bit, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 4, 3, 2, 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 16, { 1, 2, 3, 0 }
uselistorder i1 false, { 4, 6, 7, 5, 3, 0, 1, 11, 8, 9, 10, 2, 12 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | snd_ali_pointer_4811 | snd_ali_pointer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %3)
%8 = inttoptr i64 %6 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%13 = trunc i64 %1 to i32
%14 = add i64 %6, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17, i64 0)
%19 = call i64 @FUNC(i64 0)
%20 = call i64 @FUNC(i64 %3)
%.lhs.trunc = trunc i64 %19 to i32
%21 = urem i32 %.lhs.trunc, %13
%.zext = zext i32 %21 to i64
store i64 %.zext, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @spin_unlock, { 1, 0 }
} | 0 |
BinRealVul | alloc_bottom_12374 | alloc_bottom | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = add i64 %0, %arg1
store i64 %1, i64* @gv_0, align 8
%2 = load i64, i64* @gv_1, align 8
%3 = icmp ugt i64 %1, %2
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC()
%5 = load i64, i64* @gv_0, align 8
%6 = add i64 %5, %arg1
store i64 %6, i64* @gv_0, align 8
store i64 %5, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%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 label LBL_2, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.