dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | caca_write_trailer_16518 | caca_write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
ret i64 0
} | 1 |
BinRealVul | ext4_ext_show_leaf_7935 | ext4_ext_show_leaf | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.0.lcssa.reg2mem = alloca i64
%rsi.0.lcssa.reg2mem = alloca i64
%rdx.0.lcssa.reg2mem = alloca i64
%rcx.0.lcssa.reg2mem = alloca i64
%sv_0.0.in3.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i32
%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 = icmp eq i64* %arg2, null
store i64 %5, i64* %rax.0.reg2mem
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %5, 4294967296
%8 = ashr exact i64 %sext, 29
%9 = add i64 %8, %7
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i16*
%13 = call i64 @FUNC(i64 %11)
%14 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %8, i64 %3, i64 %2, i64 %1)
%15 = load i16, i16* %12, align 2
%16 = zext i16 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = urem i64 %17, 65536
%19 = icmp eq i64 %18, 0
store i32 0, i32* %sv_1.04.reg2mem
store i64 %13, i64* %sv_0.0.in3.reg2mem
store i64 %8, i64* %rdx.0.lcssa.reg2mem
store i64 %11, i64* %rsi.0.lcssa.reg2mem
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%sv_0.0.in3.reload = load i64, i64* %sv_0.0.in3.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in3.reload to i32*
%20 = call i64 @FUNC(i64 %sv_0.0.in3.reload)
%21 = call i64 @FUNC(i64 %sv_0.0.in3.reload)
%22 = call i64 @FUNC(i64 %sv_0.0.in3.reload)
%23 = load i32, i32* %sv_0.0, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = and i64 %21, 4294967295
%27 = and i64 %22, 4294967295
%28 = and i64 %25, 4294967295
%29 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %28, i64 %27, i64 %26, i64 %20, i64 %1)
%30 = add i32 %sv_1.04.reload, 1
%31 = add i64 %sv_0.0.in3.reload, 16
%32 = load i16, i16* %12, align 2
%33 = zext i16 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = urem i64 %34, 65536
%36 = sext i32 %30 to i64
%37 = icmp sgt i64 %35, %36
store i32 %30, i32* %sv_1.04.reg2mem
store i64 %31, i64* %sv_0.0.in3.reg2mem
store i64 %26, i64* %rcx.0.lcssa.reg2mem
store i64 %27, i64* %rdx.0.lcssa.reg2mem
store i64 %28, i64* %rsi.0.lcssa.reg2mem
store i64 %20, i64* %r8.0.lcssa.reg2mem
br i1 %37, label LBL_2, label LBL_3
LBL_3:
%r8.0.lcssa.reload = load i64, i64* %r8.0.lcssa.reg2mem
%rsi.0.lcssa.reload = load i64, i64* %rsi.0.lcssa.reg2mem
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%38 = call i64 @FUNC(i8* inttoptr (i64 4202567 to i8*), i64 %rsi.0.lcssa.reload, i64 %rdx.0.lcssa.reload, i64 %rcx.0.lcssa.reload, i64 %r8.0.lcssa.reload, i64 %1)
store i64 %38, 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 i16* %12, { 1, 0 }
uselistorder i64 %11, { 0, 2, 3, 1 }
uselistorder i64 %8, { 0, 2, 1 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in3.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @ext_debug, { 1, 2, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | __rta_fill_4587 | __rta_fill | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i32 %arg3, 4
%2 = add i32 %arg3, 7
%3 = and i32 %2, -4
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4)
%6 = trunc i32 %arg2 to i16
%7 = add i64 %5, 2
%8 = inttoptr i64 %7 to i16*
store i16 %6, i16* %8, align 2
%9 = trunc i32 %1 to i16
%10 = inttoptr i64 %5 to i16*
store i16 %9, i16* %10, align 2
%11 = add i64 %5, 4
%12 = inttoptr i64 %11 to i64*
%13 = bitcast i32* %arg4 to i64*
%14 = call i64* @memcpy(i64* %12, i64* %13, i32 %arg3)
%15 = sub i32 %3, %1
%16 = sext i32 %arg3 to i64
%17 = add i64 %11, %16
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memset(i64* %18, i32 0, i32 %15)
%20 = ptrtoint i64* %19 to i64
ret i64 %20
uselistorder i32 %1, { 1, 0 }
} | 0 |
BinRealVul | xudc_set_clear_feature_12502 | xudc_set_clear_feature | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 17
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
switch i8 %6, label LBL_10 [
i8 0, label LBL_1
i8 1, label LBL_7
]
LBL_1:
%7 = add i64 %0, 18
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = icmp eq i16 %9, 2
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = icmp eq i16 %9, 3
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_11
LBL_3:
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 3
%17 = icmp eq i1 %16, false
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
br i1 %17, label LBL_5, label LBL_4
LBL_4:
store i32 1, i32* %19, align 4
br label LBL_11
LBL_5:
store i32 0, i32* %19, align 4
br label LBL_11
LBL_6:
%20 = call i64 @FUNC(i64 %0)
br label LBL_11
LBL_7:
%21 = add i64 %0, 18
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = icmp eq i16 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_11, label LBL_8
LBL_8:
%26 = add i64 %0, 20
%27 = inttoptr i64 %26 to i16*
%28 = load i16, i16* %27, align 2
%29 = zext i16 %28 to i64
%30 = mul i64 %29, 8
%31 = and i64 %30, 120
%32 = udiv i16 %28, 128
%33 = add i64 %0, 4
%34 = add i64 %33, %31
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = urem i16 %32, 2
%38 = zext i16 %37 to i32
%39 = icmp eq i32 %36, %38
br i1 %39, label LBL_11, label LBL_9
LBL_9:
%40 = call i64 @FUNC(i64 %0)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%41 = call i64 @FUNC(i64 %0)
store i64 %41, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%42 = inttoptr i64 %3 to i32*
store i32 0, i32* %42, align 4
%43 = call i64 @FUNC(i64 %0, i64 %3)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
store i64 %43, i64* %rax.0.reg2mem
br i1 %45, label LBL_13, label LBL_12
LBL_12:
%46 = add i64 %0, 48
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = call i64 @FUNC(i64 %48, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%50 = call i64 @FUNC(i64 %0)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %19, { 1, 0 }
uselistorder i64 %0, { 7, 6, 8, 3, 1, 0, 4, 2, 5, 9, 12, 10, 11, 13 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64 (i64)* @xudc_ep0_stall, { 3, 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0, 2, 3 }
uselistorder label LBL_11, { 0, 1, 4, 3, 2, 5 }
} | 1 |
BinRealVul | dccp_sample_rtt_8564 | dccp_sample_rtt | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = mul i64 %3, -10
%5 = add i64 %4, %arg2
%6 = icmp slt i64 %5, 1
%7 = zext i1 %6 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = trunc i64 %5 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i32 %11)
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%13 = add i64 %5, -10000
%14 = sub i64 9999, %5
%15 = and i64 %14, %5
%16 = icmp slt i64 %15, 0
%17 = icmp eq i64 %13, 0
%18 = icmp slt i64 %13, 0
%19 = icmp eq i1 %18, %16
%20 = icmp eq i1 %17, false
%21 = icmp eq i1 %19, %20
%22 = zext i1 %21 to i64
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%26 = trunc i64 %5 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i32 %26)
store i64 10000, 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 %13, { 1, 0 }
uselistorder i64 %5, { 2, 0, 1, 4, 3, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @unlikely, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | usbredir_handle_iso_data_7610 | usbredir_handle_iso_data | define i64 @FUNC(i64* %arg1, i64* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
%sv_1 = alloca i8, align 1
%sv_2 = alloca i64, align 8
%6 = urem i8 %arg3, 16
%7 = zext i8 %6 to i64
%8 = mul i64 %7, 32
%9 = add i64 %8, %5
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 %12, i32* %.reg2mem
store i64 %4, i64* %rsi.0.reg2mem
br i1 %14, label LBL_3, label LBL_1
LBL_1:
%15 = add i64 %9, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i32 %12, i32* %.reg2mem
store i64 %4, i64* %rsi.0.reg2mem
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = trunc i64 %3 to i32
store i8 %arg3, i8* %sv_1, align 1
%21 = icmp eq i32 %20, 1
%22 = icmp eq i1 %21, false
%23 = add i64 %9, 28
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%. = select i1 %22, i32 1000, i32 8000
%storemerge.in = udiv i32 %., %25
%narrow8 = mul nuw nsw i32 %storemerge.in, 60
%26 = zext i32 %narrow8 to i64
%narrow = mul nuw nsw i64 %26, 274877907
%27 = udiv i64 %narrow, 274877906944
%28 = trunc i64 %27 to i32
%29 = add i64 %9, 20
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = add i64 %5, 520
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = ptrtoint i8* %sv_1 to i64
%35 = bitcast i8* %sv_1 to i64*
%36 = call i64 @FUNC(i64 %33, i64 0, i64* nonnull %35)
%37 = load i64, i64* %32, align 8
%38 = call i64 @FUNC(i64 %37)
%39 = zext i8 %arg3 to i64
%40 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %34, i64 0, i64 %2, i64 %1)
store i32 1, i32* %11, align 4
%41 = add i64 %9, 24
%42 = inttoptr i64 %41 to i32*
store i32 0, i32* %42, align 4
%.pr.pre = load i32, i32* %11, align 4
store i32 %.pr.pre, i32* %.reg2mem
store i64 0, i64* %rcx.0.reg2mem
store i64 %39, i64* %rsi.0.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%43 = icmp slt i8 %arg3, 0
%44 = icmp eq i1 %43, false
%45 = icmp eq i32 %.reload, 0
br i1 %44, label LBL_16, label LBL_4
LBL_4:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %45, label LBL_9, label LBL_5
LBL_5:
%46 = add i64 %9, 24
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %50, label LBL_9, label LBL_6
LBL_6:
%51 = add i64 %9, 16
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = add i64 %9, 20
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp ult i32 %53, %56
br i1 %57, label LBL_7, label LBL_8
LBL_7:
%58 = call i64 @FUNC(i64 %5, i64 0, i64 0)
store i64 %58, i64* %rax.0.reg2mem
br label LBL_19
LBL_8:
store i32 1, i32* %47, align 4
store i64 %5, i64* %rcx.1.reg2mem
br label LBL_9
LBL_9:
%59 = or i64 %8, 16
%60 = add i64 %5, 16
%61 = add i64 %60, %59
%62 = call i64 @FUNC(i64 %61)
%63 = icmp eq i64 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_11, label LBL_10
LBL_10:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%65 = zext i8 %arg3 to i64
%66 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0), i64 %65, i64 %59, i64 %rcx.1.reload, i64 %2, i64 %1)
%67 = add i64 %9, 24
%68 = inttoptr i64 %67 to i32*
store i32 0, i32* %68, align 4
%69 = add i64 %9, 12
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
store i32 0, i32* %70, align 4
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %5, i64 %72, i64 0)
store i64 %73, i64* %rax.0.reg2mem
br label LBL_19
LBL_11:
%74 = inttoptr i64 %62 to i32*
%75 = add i64 %62, 8
%76 = inttoptr i64 %75 to i64*
%77 = load i64, i64* %76, align 8
%78 = load i32, i32* %74, align 4
%79 = zext i32 %78 to i64
%80 = zext i8 %arg3 to i64
%81 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i64 %80, i64 %79, i64 %77, i64 %2, i64 %1)
%82 = load i32, i32* %74, align 4
%83 = icmp eq i32 %82, 0
br i1 %83, label LBL_13, label LBL_12
LBL_12:
%84 = call i64 @FUNC(i64 %5, i64 %62, i8 %arg3)
%85 = zext i32 %82 to i64
%86 = call i64 @FUNC(i64 %5, i64 %85, i64 0)
store i64 %86, i64* %rax.0.reg2mem
br label LBL_19
LBL_13:
%87 = load i64, i64* %76, align 8
%sext6 = mul i64 %87, 4294967296
%88 = ashr exact i64 %sext6, 32
%89 = icmp ugt i64 %88, %80
br i1 %89, label LBL_14, label LBL_15
LBL_14:
%90 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_3, i64 0, i64 0), i64 %80, i64 %88, i64 %77, i64 %2, i64 %1)
%91 = call i64 @FUNC(i64 %5, i64 %62, i8 %arg3)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_15:
%92 = add i64 %62, 16
%93 = inttoptr i64 %92 to i64*
%94 = load i64, i64* %93, align 8
%95 = call i64 @FUNC(i64 %4, i64 %94, i64 %88)
%96 = call i64 @FUNC(i64 %5, i64 %62, i8 %arg3)
%97 = and i64 %87, 4294967295
store i64 %97, i64* %rax.0.reg2mem
br label LBL_19
LBL_16:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br i1 %45, label LBL_18, label LBL_17
LBL_17:
%98 = ptrtoint i64* %sv_2 to i64
store i8 %arg3, i8* %sv_0, align 1
%99 = add i64 %rsi.0.reload, 15
%100 = udiv i64 %99, 16
%101 = mul i64 %100, 16
%102 = sub i64 %98, %101
%103 = call i64 @FUNC(i64 %4, i64 %102, i64 %rsi.0.reload)
%104 = add i64 %5, 520
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = call i64 @FUNC(i64 %106, i64 0, i8* nonnull %sv_0, i64 %102, i64 %102)
%108 = load i64, i64* %105, align 8
%109 = call i64 @FUNC(i64 %108)
store i64 0, i64* %rsi.1.reg2mem
store i64 %102, i64* %r8.0.reg2mem
br label LBL_18
LBL_18:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%110 = add i64 %9, 12
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
store i32 0, i32* %111, align 4
%113 = zext i32 %112 to i64
%114 = zext i8 %arg3 to i64
%115 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_4, i64 0, i64 0), i64 %114, i64 %113, i64 %rsi.1.reload, i64 %r8.0.reload, i64 %1)
%116 = call i64 @FUNC(i64 %5, i64 %113, i64 %114)
store i64 %116, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rsi.0.reload, { 1, 2, 0 }
uselistorder i64 %87, { 1, 0 }
uselistorder i64 %62, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64 %59, { 1, 0 }
uselistorder i1 %45, { 1, 0 }
uselistorder i64 %9, { 6, 4, 5, 9, 8, 7, 0, 1, 2, 3, 10 }
uselistorder i8* %sv_1, { 2, 1, 0 }
uselistorder i64 %5, { 11, 10, 8, 9, 6, 7, 5, 2, 0, 4, 3, 1 }
uselistorder i64 %4, { 3, 2, 0, 1 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64 %1, { 4, 0, 3, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 5, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @usb_packet_copy, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64, i8)* @bufp_free, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF2, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @usbredir_handle_status, { 3, 2, 1, 0 }
uselistorder i64 16, { 0, 2, 4, 1, 3, 5 }
uselistorder i64 (i64)* @usbredirparser_do_write, { 1, 0 }
uselistorder i32 0, { 0, 2, 3, 4, 5, 1, 6, 7, 8 }
uselistorder i64 32, { 1, 0 }
uselistorder i8 %arg3, { 8, 10, 5, 6, 4, 7, 3, 9, 1, 2, 0 }
} | 1 |
BinRealVul | print_net_client_1010 | print_net_client | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 8
%14 = add i64 %13, ptrtoint ([3 x i8*]* @gv_0 to i64)
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 %6, i64 %16, i64 %6, i64 %1)
ret i64 %17
} | 0 |
BinRealVul | qcow2_invalidate_cache_16334 | qcow2_invalidate_cache | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%3 = add i64 %arg1, 16
%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
store i64 0, i64* %sv_2, align 8
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = add i64 %5, 8
%13 = inttoptr i64 %12 to i64*
%14 = call i64* @memcpy(i64* nonnull %sv_1, i64* %13, i32 244)
%15 = add i64 %5, 252
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memcpy(i64* nonnull %sv_0, i64* %16, i32 244)
br label LBL_2
LBL_2:
%18 = ptrtoint i64* %arg2 to i64
%19 = call i64 @FUNC(i64 %arg1)
%20 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_2)
%21 = load i64, i64* %sv_2, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = call i64 @FUNC(i64 %18, i64 %21)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%24 = inttoptr i64 %5 to i64*
%25 = call i64* @memset(i64* %24, i32 0, i32 496)
%26 = add i64 %arg1, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = call i64 @FUNC(i64 %arg1, i64 %29, i32 %7, i64* nonnull %sv_2)
%31 = call i64 @FUNC(i64 %29)
%32 = load i64, i64* %sv_2, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = ptrtoint i64* %sv_2 to i64
%35 = call i64 @FUNC(i64 %32)
%36 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i64 %35, i64 %34, i64 %2, i64 %1)
%37 = load i64, i64* %sv_2, align 8
%38 = call i64 @FUNC(i64 %37)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%39 = trunc i64 %30 to i32
%40 = icmp slt i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = sub i64 0, %30
%43 = and i64 %42, 4294967295
%44 = call i64 @FUNC(i64 %18, i64 %43, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %43, i64 %2, i64 %1)
store i64 %44, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_10, label LBL_9
LBL_9:
store i32 %10, i32* %9, align 4
%45 = add i64 %5, 8
%46 = inttoptr i64 %45 to i64*
%47 = call i64* @memcpy(i64* %46, i64* nonnull %sv_1, i32 244)
%48 = add i64 %5, 252
%49 = inttoptr i64 %48 to i64*
%50 = call i64* @memcpy(i64* %49, i64* nonnull %sv_0, i32 244)
%51 = ptrtoint i64* %50 to i64
store i64 %51, 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 %18, { 2, 1, 0 }
uselistorder i64 %5, { 3, 2, 4, 0, 1, 5, 6 }
uselistorder i64* %sv_2, { 2, 4, 3, 0, 5, 1, 6 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 3, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 %arg1, { 0, 1, 3, 2, 4 }
} | 1 |
BinRealVul | sum_update_11753 | sum_update | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = icmp sgt i32 %0, 4
store i64 %1, i64* %rax.0.reg2mem
br i1 %2, label LBL_13, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = icmp eq i32 %0, 1
br i1 %4, label LBL_4, label LBL_2
LBL_2:
%5 = icmp slt i32 %0, 1
store i64 %1, i64* %rax.0.reg2mem
br i1 %5, label LBL_13, label LBL_3
LBL_3:
%6 = add i32 %0, -2
%7 = zext i32 %6 to i64
%8 = icmp ult i32 %6, 3
store i64 %7, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_13
LBL_4:
%9 = trunc i64 %3 to i32
%10 = call i64 @FUNC(i64* nonnull @gv_1, i64 %arg1, i32 %9)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_13
LBL_5:
%11 = load i32, i32* inttoptr (i64 4210852 to i32*), align 4
%12 = trunc i64 %3 to i32
%13 = add i32 %11, %12
%14 = icmp sgt i32 %13, 63
%.pr = load i32, i32* @gv_2, align 4
store i32 %.pr, i32* %.reg2mem
br i1 %14, label LBL_7, label LBL_6
LBL_6:
%15 = sext i32 %.pr to i64
%16 = add nsw i64 %15, 4210784
%17 = inttoptr i64 %16 to i64*
%18 = inttoptr i64 %arg1 to i64*
%19 = call i64* @memcpy(i64* %17, i64* %18, i32 %12)
%20 = load i32, i32* @gv_2, align 4
%21 = add i32 %20, %12
store i32 %21, i32* @gv_2, align 4
store i32 %21, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%22 = icmp eq i32 %.reload, 0
store i32 %12, i32* %.pre-phi.reg2mem
store i64 %arg1, i64* %sv_1.0.ph.reg2mem
store i64 %3, i64* %sv_0.0.ph.reg2mem
br i1 %22, label LBL_9, label LBL_8
LBL_8:
%23 = sub i32 64, %.reload
%24 = sext i32 %.reload to i64
%25 = add nsw i64 %24, 4210784
%26 = inttoptr i64 %25 to i64*
%27 = inttoptr i64 %arg1 to i64*
%28 = call i64* @memcpy(i64* %26, i64* %27, i32 %23)
%29 = call i64 @FUNC(i64* nonnull @gv_1, i64* nonnull @gv_1, i64 64)
%30 = sub i32 %12, %23
%31 = sext i32 %30 to i64
%32 = sext i32 %23 to i64
%33 = add i64 %32, %arg1
store i32 %30, i32* %.pre-phi.reg2mem
store i64 %33, i64* %sv_1.0.ph.reg2mem
store i64 %31, i64* %sv_0.0.ph.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%34 = icmp sgt i32 %.pre-phi.reload, 63
store i64 %sv_0.0.ph.reload, i64* %sv_0.04.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.03.reg2mem
store i64 %sv_1.0.ph.reload, i64* %sv_1.0.lcssa.reg2mem
store i64 %sv_0.0.ph.reload, i64* %sv_0.0.lcssa.reg2mem
store i32 %.pre-phi.reload, i32* %.lcssa.reg2mem
br i1 %34, label LBL_10, label LBL_11
LBL_10:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%35 = inttoptr i64 %sv_1.03.reload to i64*
%36 = call i64 @FUNC(i64* nonnull @gv_1, i64* %35, i64 64)
%37 = mul i64 %sv_0.04.reload, 4294967296
%sext2 = add i64 %37, -274877906944
%38 = ashr exact i64 %sext2, 32
%39 = add i64 %sv_1.03.reload, 64
%40 = trunc i64 %38 to i32
%41 = icmp sgt i32 %40, 63
store i64 %38, i64* %sv_0.04.reg2mem
store i64 %39, i64* %sv_1.03.reg2mem
store i64 %39, i64* %sv_1.0.lcssa.reg2mem
store i64 %38, i64* %sv_0.0.lcssa.reg2mem
store i32 %40, i32* %.lcssa.reg2mem
br i1 %41, label LBL_10, label LBL_11
LBL_11:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
store i32 %.lcssa.reload, i32* @gv_2, align 4
%42 = and i64 %sv_0.0.lcssa.reload, 4294967295
%43 = icmp eq i32 %.lcssa.reload, 0
store i64 %42, i64* %rax.0.reg2mem
br i1 %43, label LBL_13, label LBL_12
LBL_12:
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%44 = inttoptr i64 %sv_1.0.lcssa.reload to i64*
%45 = call i64* @memcpy(i64* nonnull @gv_1, i64* %44, i32 %.lcssa.reload)
%46 = ptrtoint i64* %45 to i64
store i64 %46, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload, { 1, 0, 2 }
uselistorder i32 %.pr, { 1, 0 }
uselistorder i32 %12, { 3, 0, 1, 4, 2 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32 %0, { 1, 2, 3, 0, 4 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 5, 1, 4, 6 }
uselistorder i64 (i64*, i64*, i64)* @mdfour_update, { 1, 0 }
uselistorder i64 64, { 2, 0, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i32* @gv_2, { 3, 2, 1, 0 }
uselistorder i32 63, { 1, 0, 2 }
uselistorder i64* @gv_1, { 2, 1, 3, 4, 0 }
uselistorder i64 %arg1, { 1, 3, 0, 2, 4 }
uselistorder label LBL_13, { 1, 0, 4, 3, 5, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | archive_read_support_format_all_18773 | archive_read_support_format_all | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1, i64 2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %0)
%7 = call i64 @FUNC(i64 %0)
%8 = call i64 @FUNC(i64 %0)
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 %0)
%12 = call i64 @FUNC(i64 %0)
%13 = call i64 @FUNC(i64 %0)
%14 = call i64 @FUNC(i64 %0)
ret i64 0
uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13 }
} | 1 |
BinRealVul | test_clone_15533 | test_clone | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i64* @malloc(i32 1048576)
%1 = ptrtoint i64* %0 to i64
%2 = add i64 %1, 1048576
%3 = inttoptr i64 %2 to i64*
%4 = call i32 (i32 (i64*)*, i64*, i32, i64*, ...) @clone(i32 (i64*)* inttoptr (i64 4198758 to i32 (i64*)*), i64* %3, i32 1809, i64* bitcast ([7 x i8]* @gv_0 to i64*))
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = call i64* @malloc(i32 1048576)
%9 = ptrtoint i64* %8 to i64
%10 = add i64 %9, 1048576
%11 = inttoptr i64 %10 to i64*
%12 = call i32 (i32 (i64*)*, i64*, i32, i64*, ...) @clone(i32 (i64*)* inttoptr (i64 4198783 to i32 (i64*)*), i64* %11, i32 1809, i64* bitcast ([7 x i8]* @gv_1 to i64*))
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = bitcast i64* %sv_1 to i32*
br label LBL_1
LBL_1:
%16 = call i32 @waitpid(i32 %7, i32* nonnull %15, i32 0)
%17 = icmp eq i32 %16, %7
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_1, label LBL_2
LBL_2:
%19 = trunc i64 %14 to i32
%20 = bitcast i64* %sv_0 to i32*
br label LBL_3
LBL_3:
%21 = call i32 @waitpid(i32 %19, i32* nonnull %20, i32 0)
%22 = icmp eq i32 %21, %19
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_3, label LBL_4
LBL_4:
%24 = load i32, i32* bitcast (i64* @gv_2 to i32*), align 8
%25 = icmp eq i32 %24, 5
%26 = load i32, i32* @gv_3, align 4
%27 = icmp eq i32 %26, 6
%or.cond = icmp eq i1 %25, %27
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%28 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
unreachable
LBL_6:
ret i64 6
uselistorder i32 (i32, i32*, i32)* @waitpid, { 1, 0 }
uselistorder i64 (i64)* @chk_error, { 1, 0 }
uselistorder i32 (i32 (i64*)*, i64*, i32, i64*, ...)* @clone, { 1, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i32 1, { 3, 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rawsock_create_11023 | rawsock_create | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%rdx = alloca i64, align 8
%2 = ptrtoint i32* %arg2 to i64
%3 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 %2)
%4 = trunc i64 %1 to i32
%.off = add i32 %4, -1
%switch = icmp ult i32 %.off, 2
store i64 1, i64* %rax.0.reg2mem
br i1 %switch, label LBL_1, label LBL_5
LBL_1:
%5 = and i64 %arg4, 4294967295
%6 = ptrtoint i64* %arg1 to i64
%7 = icmp eq i32 %4, 2
%8 = icmp eq i1 %7, false
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i64*
%. = select i1 %8, i64 ptrtoint (i64* @gv_1 to i64), i64 ptrtoint (i64* @gv_2 to i64)
store i64 %., i64* %10, align 8
%11 = bitcast i64* %rdx to i32*
%12 = load i32, i32* %11, align 8
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %6, i64 0, i64 0, i64 %13, i64 %5)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 2, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_5
LBL_2:
%17 = bitcast i64* %rsi to i32*
%18 = inttoptr i64 %14 to i32*
%19 = call i64 @FUNC(i64 %2, i64 %14)
%20 = ptrtoint i32* %arg3 to i64
%21 = add i64 %20, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
store i32 %23, i32* %18, align 4
%24 = add i64 %14, 8
%25 = inttoptr i64 %24 to i64*
store i64 4198805, i64* %25, align 8
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i32*
store i32 0, i32* %27, align 4
%28 = load i32, i32* %17, align 8
%29 = icmp eq i32 %28, 2
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%31 = call i64 @FUNC(i64* nonnull @gv_3, i64 %14)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%32 = call i64 @FUNC(i64 %14)
%33 = call i64 @FUNC(i64 %32, i64 4198860)
%34 = call i64 @FUNC(i64 %14)
%35 = add i64 %34, 4
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %36, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %14, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @nfc_rawsock, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 3, 0 }
} | 1 |
BinRealVul | proxy_init_3553 | proxy_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 80)
%4 = urem i64 %1, 2
%5 = icmp eq i64 %4, 0
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
store i32 %10, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_2:
%11 = inttoptr i64 %8 to i8*
%12 = call i32 @atoi(i8* %11)
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 %12, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%16 = call i32 @fwrite(i64* bitcast ([35 x i8]* @gv_1 to i64*), i32 1, i32 34, %_IO_FILE* %15)
%17 = call i64 @FUNC(i64 %3)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%18 = inttoptr i64 %3 to i32*
%19 = bitcast i64* %rdi to i32*
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%20 = load i64, i64* %7, align 8
%21 = call i64 @FUNC(i64 %20)
store i64 0, i64* %7, align 8
%22 = call i64 @FUNC(i64 1152)
%23 = add i64 %3, 8
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = add i64 %3, 16
%26 = inttoptr i64 %25 to i64*
store i64 1152, i64* %26, align 8
%27 = call i64 @FUNC(i64 1152)
%28 = add i64 %3, 24
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
%30 = add i64 %3, 32
%31 = inttoptr i64 %30 to i64*
store i64 1152, i64* %31, align 8
%32 = add i64 %2, 16
%33 = inttoptr i64 %32 to i64*
store i64 %3, i64* %33, align 8
store i32 %sv_0.0.reload, i32* %18, align 4
%34 = add i64 %3, 40
%35 = call i64 @FUNC(i64 %34)
%36 = load i32, i32* %19, align 8
%37 = or i32 %36, 2
%38 = bitcast i64* %arg1 to i32*
store i32 %37, i32* %38, align 4
%39 = add i64 %2, 24
%40 = inttoptr i64 %39 to i64*
store i64 4198890, i64* %40, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %7, { 1, 0, 2 }
uselistorder i64 %3, { 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 1152, { 2, 0, 3, 1 }
} | 0 |
reposvul_c_test | opj_j2k_get_default_thread_count_72 | opj_j2k_get_default_thread_count | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i8* @getenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0))
%1 = icmp eq i8* %0, null
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_5
LBL_2:
%6 = call i32 @strcmp(i8* nonnull %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC()
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%10 = call i32 @atoi(i8* nonnull %0)
%11 = sext i32 %10 to i64
store i64 %11, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder label LBL_5, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | snd_ctl_dev_free_9222 | snd_ctl_dev_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 %0)
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_1, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %1)
ret i64 0
uselistorder i64 %0, { 3, 1, 2, 0, 4 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64)* @list_empty, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | mk_utils_gmt2utime_4558 | mk_utils_gmt2utime | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 56)
%1 = bitcast i64* %arg1 to i8*
%2 = bitcast i64* %sv_0 to %tm*
%3 = call i8* @strptime(i8* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), %tm* nonnull %2)
%4 = ptrtoint i8* %3 to i64
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 -1, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = call i32 @mktime(%tm* nonnull %2)
%9 = sext i32 %8 to i64
store i64 %9, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | v9fs_attach_11459 | v9fs_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_1 = alloca 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
%4 = call i64 @FUNC(i64* nonnull %sv_6)
%5 = call i64 @FUNC(i64* nonnull %sv_5)
%6 = bitcast i32* %sv_2 to i64*
%7 = bitcast i32* %sv_3 to i64*
%8 = bitcast i32* %sv_4 to i64*
%9 = call i64 @FUNC(i64 %1, i64 7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %7, i64* nonnull %8, i64* nonnull %sv_6, i64* nonnull %sv_5, i64* nonnull %6)
%10 = icmp slt i64 %9, 0
store i64 %9, i64* %sv_0.1.reg2mem
br i1 %10, label LBL_11, label LBL_1
LBL_1:
%11 = load i64, i64* %sv_5, align 8
%12 = load i64, i64* %sv_6, align 8
%13 = load i32, i32* %sv_4, align 4
%14 = zext i32 %13 to i64
%15 = load i32, i32* %sv_3, align 4
%16 = zext i32 %15 to i64
%17 = add i64 %1, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %1, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23, i32 %19, i64 %16, i64 %14, i64 %12, i64 %11)
%25 = load i32, i32* %sv_3, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %1, i64 %26)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 -22, i64* %sv_0.1.reg2mem
br i1 %29, label LBL_2, label LBL_11
LBL_2:
%30 = inttoptr i64 %27 to i32*
%31 = load i32, i32* %sv_2, align 4
store i32 %31, i32* %30, align 4
%32 = add i64 %27, 8
%33 = call i64 @FUNC(i64 %1, i64 0, i64* nonnull @gv_1, i64 %32)
%34 = icmp slt i64 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_4, label LBL_3
LBL_3:
%36 = load i32, i32* %sv_3, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %1, i64 %37)
store i64 -22, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_4:
%39 = bitcast i32* %sv_1 to i64*
%40 = call i64 @FUNC(i64 %1, i64 %27, i64* nonnull %39)
%41 = icmp slt i64 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_6, label LBL_5
LBL_5:
%43 = load i32, i32* %sv_3, align 4
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64 %1, i64 %44)
store i64 -22, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_6:
%46 = call i64 @FUNC(i64 %1, i64 7, i64* nonnull @gv_2, i64* nonnull %39)
%47 = icmp slt i64 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_8, label LBL_7
LBL_7:
%49 = load i32, i32* %sv_3, align 4
%50 = zext i32 %49 to i64
%51 = call i64 @FUNC(i64 %1, i64 %50)
store i64 %46, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%52 = add i64 %46, 7
%53 = load i32, i32* %sv_1, align 4
%54 = zext i32 %53 to i64
%55 = load i32, i32* %18, align 4
%56 = load i32, i32* %21, align 4
%57 = zext i32 %3 to i64
%58 = zext i32 %56 to i64
%59 = call i64 @FUNC(i64 %58, i32 %55, i64 %54, i32 %2, i64 %57)
%60 = inttoptr i64 %20 to i64*
%61 = load i64, i64* %60, align 8
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
store i64 %52, i64* %sv_0.0.reg2mem
br i1 %63, label LBL_10, label LBL_9
LBL_9:
%64 = load i32, i32* %sv_3, align 4
%65 = bitcast i64* %arg1 to i32*
store i32 %64, i32* %65, align 4
%66 = add i64 %1, 24
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = add i64 %1, 16
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = icmp eq i64 %71, 0
%spec.select = select i1 %72, i64 ptrtoint ([5 x i8]* @gv_3 to i64), i64 %71
%73 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @gv_4, i64 0, i64 0), i64 %spec.select, i64 %68, i64 %57, i64 %11)
%74 = load i64, i64* %60, align 8
%75 = call i64 @FUNC(i64 %74)
store i64 %52, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%76 = call i64 @FUNC(i64 %1, i64 %27)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%77 = call i64 @FUNC(i64 %1, i64 %sv_0.1.reload)
%78 = call i64 @FUNC(i64* nonnull %sv_6)
%79 = call i64 @FUNC(i64* nonnull %sv_5)
ret i64 %79
uselistorder i64 %46, { 1, 0, 2 }
uselistorder i64 %27, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_6, { 0, 3, 1, 2 }
uselistorder i64* %sv_5, { 1, 3, 0, 2 }
uselistorder i32* %sv_3, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder i32* %sv_2, { 1, 0 }
uselistorder i64 %1, { 12, 5, 4, 3, 2, 6, 1, 7, 0, 8, 9, 11, 10, 13 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %0, { 1, 0 }
uselistorder i64 (i64*)* @v9fs_string_free, { 1, 0 }
uselistorder i64 (i64, i64)* @clunk_fid, { 2, 1, 0 }
uselistorder i64 -22, { 2, 1, 0 }
uselistorder i64 (i64*)* @v9fs_string_init, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | oneshotall_buffer_5800 | oneshotall_buffer | 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 = call i64 @FUNC(i64 %1, i64 %0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = call i64 @FUNC(i64 4198448)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = inttoptr i64 %2 to i64*
call void @free(i64* %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%9 = call i64 @FUNC(i64 %5, i64 %2)
store i64 %5, 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 label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | vnc_async_encoding_end_2234 | vnc_async_encoding_end | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = trunc i64 %1 to i32
store i32 %4, i32* %arg1, align 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %3, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %2, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %3, 12
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %2, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %3, 16
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = load i64, i64* @gv_0, align 8
%26 = add i64 %2, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %25 to i64*
store i64 %28, i64* %29, align 8
ret i64 %25
uselistorder i64 %25, { 1, 0 }
} | 0 |
BinRealVul | psf_fwrite_13697 | psf_fwrite | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i128
%sv_1.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp ne i64 %arg2, 0
%3 = icmp eq i64 %arg3, 0
%4 = icmp eq i1 %3, false
%or.cond = icmp eq i1 %2, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_15
LBL_1:
%5 = ptrtoint i64* %arg4 to i64
%6 = add i64 %5, 36
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%sext = mul i64 %arg1, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = udiv i64 %10, %arg2
store i64 %11, i64* %rax.0.reg2mem
br label LBL_15
LBL_3:
%12 = mul i64 %arg3, %arg2
%13 = icmp eq i64 %12, 0
%14 = icmp slt i64 %12, 0
%15 = icmp eq i1 %14, false
%16 = icmp eq i1 %13, false
%17 = icmp eq i1 %15, %16
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_15
LBL_4:
%18 = trunc i64 %1 to i32
%19 = add i64 %5, 32
%20 = inttoptr i64 %19 to i32*
store i64 %12, i64* %sv_1.0.ph.reg2mem
store i128 0, i128* %sv_0.0.ph.reg2mem
br label LBL_10
LBL_5:
%21 = load i32, i32* %20, align 4
%22 = call i32 @write(i32 %21, i64* %54, i32 %56)
%23 = icmp eq i32 %22, -1
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_8, label LBL_6
LBL_6:
%25 = call i32* @__errno_location()
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 4
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_7, label LBL_11
LBL_7:
%29 = call i32* @__errno_location()
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %5, i64 %31)
br label LBL_12
LBL_8:
%33 = icmp eq i32 %22, 0
br i1 %33, label LBL_12, label LBL_9
LBL_9:
%34 = sext i32 %22 to i64
%35 = add i64 %34, %52
%36 = sext i64 %35 to i128
%37 = sub i64 %sv_1.0.ph.reload, %34
store i64 %37, i64* %sv_1.0.ph.reg2mem
store i128 %36, i128* %sv_0.0.ph.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.ph.reload = load i128, i128* %sv_0.0.ph.reg2mem
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%38 = icmp eq i64 %sv_1.0.ph.reload, 0
%39 = icmp slt i64 %sv_1.0.ph.reload, 0
%40 = icmp eq i1 %39, false
%41 = icmp eq i1 %38, false
%42 = icmp eq i1 %40, %41
%43 = add i64 %sv_1.0.ph.reload, -4096
%44 = sub i64 4095, %sv_1.0.ph.reload
%45 = and i64 %44, %sv_1.0.ph.reload
%46 = icmp slt i64 %45, 0
%47 = icmp eq i64 %43, 0
%48 = icmp slt i64 %43, 0
%49 = icmp eq i1 %48, %46
%50 = icmp eq i1 %47, false
%51 = icmp eq i1 %49, %50
%52 = trunc i128 %sv_0.0.ph.reload to i64
%53 = add i64 %52, %arg1
%54 = inttoptr i64 %53 to i64*
%55 = trunc i64 %sv_1.0.ph.reload to i32
%56 = select i1 %51, i32 4096, i32 %55
br label LBL_11
LBL_11:
br i1 %42, label LBL_5, label LBL_12
LBL_12:
%57 = icmp eq i32 %18, 0
br i1 %57, label LBL_14, label LBL_13
LBL_13:
%58 = add i64 %5, 8
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = add i64 %60, %52
store i64 %61, i64* %59, align 8
br label LBL_14
LBL_14:
%62 = and i128 %sv_0.0.ph.reload, 18446744073709551615
%63 = zext i64 %arg2 to i128
%64 = udiv i128 %62, %63
%65 = trunc i128 %64 to i64
store i64 %65, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %52, { 0, 2, 1 }
uselistorder i64 %43, { 1, 0 }
uselistorder i64 %sv_1.0.ph.reload, { 4, 6, 3, 5, 2, 1, 0 }
uselistorder i128 %sv_0.0.ph.reload, { 1, 0 }
uselistorder i64 %34, { 1, 0 }
uselistorder i32 %22, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i1 false, { 5, 6, 1, 3, 4, 7, 2, 0 }
uselistorder i64 %arg2, { 2, 1, 0, 3 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_15, { 2, 0, 3, 1 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | isa_create_simple_3467 | isa_create_simple | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
ret i64 %0
} | 0 |
BinRealVul | net_host_device_remove_14619 | net_host_device_remove | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge6.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 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%storemerge.in4 = inttoptr i64 %6 to i64*
%storemerge5 = load i64, i64* %storemerge.in4, align 8
%9 = icmp eq i64 %storemerge5, 0
%10 = icmp eq i1 %9, false
store i64 %storemerge5, i64* %storemerge6.reg2mem
br i1 %10, label LBL_3, label LBL_5
LBL_2:
%11 = trunc i64 %arg2 to i32
%12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i32 %11, i64 %3, i64 %2, i64 %1)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%13 = inttoptr i64 %storemerge6.reload to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i8*
%16 = call i32 @strcmp(i8* %15, i8* %arg3)
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_6, label LBL_4
LBL_4:
%18 = add i64 %storemerge6.reload, 8
%storemerge.in = inttoptr i64 %18 to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%19 = icmp eq i64 %storemerge, 0
%20 = icmp eq i1 %19, false
store i64 %storemerge, i64* %storemerge6.reg2mem
br i1 %20, label LBL_3, label LBL_5
LBL_5:
%21 = ptrtoint i8* %arg3 to i64
%22 = trunc i64 %21 to i32
%23 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i32 %22, i64 %3, i64 %2, i64 %1)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%24 = call i64 @FUNC(i64 %storemerge6.reload)
store i64 %24, 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 %storemerge6.reload, { 2, 0, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @monitor_printf, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | vnc_flush_883 | vnc_flush | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, -1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %4)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | do_rt_sigreturn_16377 | do_rt_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = add i64 %1, 56
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, -4
%7 = call i64 @FUNC(i64 %1, i64 %6)
%8 = call i64 @FUNC(i64 0, i64 %2, i64 %6, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%12 = call i64 @FUNC(i64* nonnull %sv_0)
%13 = call i64 @FUNC(i64 %1, i64 %2)
%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_2
LBL_2:
%17 = call i64 @FUNC(i64 %1)
%18 = add i64 %5, 140
%19 = call i64 @FUNC(i64 %18, i64 0, i64 %17)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, -14
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %2, i64 %6, i64 0)
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%23 = call i64 @FUNC(i64 %2, i64 %6, i64 0)
%24 = call i64 @FUNC(i64 11)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %6, { 1, 0, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
} | 1 |
BinRealVul | continue_send_15270 | continue_send | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi3.reg2mem = alloca i32*
%.pre-phi5.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %rdi to i32*
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_7, label LBL_0.LBL_2_crit_edge
LBL_1:
%.pre1 = add i64 %2, 4
%.pre2 = inttoptr i64 %.pre1 to i32*
%.pre4 = add i64 %2, 32
store i64 %.pre4, i64* %.pre-phi5.reg2mem
store i32* %.pre2, i32** %.pre-phi3.reg2mem
store i32 %4, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
%.pre-phi3.reload = load i32*, i32** %.pre-phi3.reg2mem
%.pre-phi5.reload = load i64, i64* %.pre-phi5.reg2mem
%6 = load i32, i32* %.pre-phi3.reload, align 4
%7 = sub i32 %.reload, %6
%8 = sext i32 %6 to i64
%9 = add i64 %.pre-phi5.reload, %8
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64 %9, i32 %7)
%14 = trunc i64 %13 to i32
%15 = load i32, i32* %.pre-phi3.reload, align 4
%16 = add i32 %15, %14
store i32 %16, i32* %.pre-phi3.reload, align 4
%17 = load i32, i32* %3, align 8
%18 = icmp ult i32 %16, %17
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%19 = call i64 @FUNC(i64 0)
%20 = add i64 %19, 10000000
%21 = add i64 %2, 24
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %20)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_12
LBL_4:
%25 = bitcast i64* %arg1 to i32*
store i32 0, i32* %25, align 4
store i32 0, i32* %.pre-phi3.reload, align 4
%26 = add i64 %2, 8
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = icmp eq i8 %28, 1
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%30 = add i64 %2, 9
%31 = inttoptr i64 %30 to i8*
store i8 1, i8* %31, align 1
br label LBL_7
LBL_6:
store i8 0, i8* %27, align 1
br label LBL_7
LBL_7:
%32 = add i64 %2, 10
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = icmp eq i8 %34, 0
br i1 %35, label LBL_10, label LBL_8
LBL_8:
%36 = add i64 %2, 11
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = icmp eq i8 %38, 0
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = add i64 %2, 32
%41 = inttoptr i64 %40 to i8*
store i8 1, i8* %41, align 1
%42 = add i64 %2, 33
%43 = inttoptr i64 %42 to i8*
store i8 2, i8* %43, align 1
%44 = bitcast i64* %arg1 to i32*
store i32 2, i32* %44, align 4
%45 = add i64 %2, 4
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
store i8 0, i8* %37, align 1
%47 = add i64 %2, 8
%48 = inttoptr i64 %47 to i8*
store i8 1, i8* %48, align 1
%.pre = load i32, i32* %3, align 8
store i64 %40, i64* %.pre-phi5.reg2mem
store i32* %46, i32** %.pre-phi3.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_2
LBL_10:
%49 = add i64 %2, 9
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = icmp eq i8 %51, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %52, label LBL_12, label LBL_11
LBL_11:
%53 = call i64 @FUNC(i64 0)
%54 = add i64 %53, 4000000000
%55 = add i64 %2, 24
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %57, i64 %54)
store i64 %58, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %.pre-phi3.reload, { 0, 2, 1, 3 }
uselistorder i64 %2, { 9, 10, 6, 7, 8, 13, 12, 11, 3, 2, 4, 5, 0, 1 }
uselistorder i64* %.pre-phi5.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi3.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i8 1, { 1, 2, 3, 0 }
uselistorder i64 (i64, i64)* @timer_mod_ns, { 1, 0 }
uselistorder i64 (i64)* @qemu_clock_get_ns, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | flush_queued_data_3060 | flush_queued_data | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 18, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %arg2, 256
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %2, i64 %6, i64 %6, i64 %3)
ret i64 %7
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | send_control_msg_11121 | send_control_msg | 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
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%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 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%9 = load i64, i64* %sv_0, align 8
%10 = inttoptr i64 %9 to i64*
%11 = trunc i64 %arg3 to i32
%12 = call i64* @memcpy(i64* %10, i64* %arg2, i32 %11)
%13 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64 %arg3)
%14 = call i64 @FUNC(i64 %0)
%15 = call i64 @FUNC(i64 %14, i64 %0)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64 %0, { 2, 0, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 %arg3, { 0, 2, 1 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | gf_xml_sax_parse_intern_13317 | gf_xml_sax_parse_intern | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem37 = alloca i32
%sv_0.0.be.reg2mem = alloca i64
%.reg2mem35 = alloca i32
%sv_0.011.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %arg2, i64* %sv_0.0.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_19
LBL_1:
%10 = trunc i64 %1 to i32
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
%15 = bitcast i32* %sv_2 to i64*
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = bitcast i64* %rdi to i32*
%19 = bitcast i64* %arg1 to i32*
store i32 %10, i32* %.reg2mem
store i64 %arg2, i64* %sv_0.011.reg2mem
br label LBL_2
LBL_2:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%.reload = load i32, i32* %.reg2mem
%20 = inttoptr i64 %sv_0.011.reload to i8*
%21 = call i8* @strchr(i8* %20, i32 38)
%22 = load i32, i32* %12, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_11, label LBL_3
LBL_3:
%24 = call i8* @strchr(i8* %20, i32 59)
%25 = icmp eq i8* %24, null
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = call i64 @FUNC(i64 %2, i64 %sv_0.011.reload)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_20
LBL_5:
%28 = load i64, i64* %14, align 8
%29 = inttoptr i64 %28 to i8*
%30 = call i8* @strrchr(i8* %29, i32 38)
%31 = ptrtoint i8* %30 to i64
store i8 0, i8* %24, align 1
%32 = call i32 @strlen(i8* %30)
%33 = call i32 @strlen(i8* %20)
%34 = add i32 %32, 1
%35 = add i32 %34, %33
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = add i64 %31, 1
%39 = inttoptr i64 %37 to i8*
%40 = inttoptr i64 %38 to i8*
%41 = call i32 (i8*, i8*, ...) @sprintf(i8* %39, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %40, i8* %20)
%42 = call i64 @FUNC(i64 %2, i64 %37, i64* nonnull %15)
%43 = call i64 @FUNC(i64 %37)
%44 = icmp eq i64 %42, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_10, label LBL_6
LBL_6:
%46 = load i32, i32* %sv_2, align 4
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_9, label LBL_7
LBL_7:
%49 = call i64 @FUNC(i64 %2, i64 %sv_0.011.reload)
%50 = call i64 @FUNC(i64 %2, i64 1)
store i8 59, i8* %24, align 1
%51 = ptrtoint i8* %24 to i64
store i32 %.reload, i32* %.reg2mem35
store i64 %51, i64* %sv_0.0.be.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.be.reload = load i64, i64* %sv_0.0.be.reg2mem
%.reload36 = load i32, i32* %.reg2mem35
store i32 %.reload36, i32* %.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.011.reg2mem
br label LBL_2
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i32 81, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0))
br label LBL_10
LBL_10:
%52 = load i32, i32* %17, align 4
%53 = call i32 @strlen(i8* %30)
%54 = sub i32 %52, %53
store i32 %54, i32* %17, align 4
store i8 0, i8* %30, align 1
store i32 0, i32* %12, align 4
store i8 59, i8* %24, align 1
%55 = ptrtoint i8* %24 to i64
%56 = add i64 %55, 1
%.pre = load i32, i32* %18, align 8
store i32 %.pre, i32* %.reg2mem37
store i64 %42, i64* %sv_1.0.reg2mem
store i64 %56, i64* %storemerge.reg2mem
br label LBL_17
LBL_11:
%57 = icmp eq i8* %21, null
store i64 %sv_0.011.reload, i64* %sv_0.0.lcssa.reg2mem
br i1 %57, label LBL_19, label LBL_12
LBL_12:
%58 = ptrtoint i8* %21 to i64
%59 = add i64 %58, 1
%60 = call i64 @FUNC(i64 %2, i64 %59, i64* nonnull %15)
store i8 0, i8* %21, align 1
%61 = call i64 @FUNC(i64 %2, i64 %sv_0.011.reload)
%62 = call i64 @FUNC(i64 %2, i64 1)
store i8 38, i8* %21, align 1
%63 = icmp eq i64 %60, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_16, label LBL_13
LBL_13:
%65 = load i32, i32* %sv_2, align 4
%66 = icmp eq i32 %65, 0
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_15, label LBL_14
LBL_14:
%68 = call i64 @FUNC(i64 %2, i64 ptrtoint (i64* @gv_4 to i64))
store i32 %.reload, i32* %.reg2mem35
store i64 %59, i64* %sv_0.0.be.reg2mem
br label LBL_8
LBL_15:
store i32 1, i32* %12, align 4
%69 = call i64 @FUNC(i64 %2, i64 %58)
store i64 %69, i64* %rax.0.reg2mem
br label LBL_20
LBL_16:
%70 = add i64 %60, 8
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = zext i32 %72 to i64
%74 = add i64 %58, 2
%75 = add i64 %74, %73
store i32 %.reload, i32* %.reg2mem37
store i64 %60, i64* %sv_1.0.reg2mem
store i64 %75, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.reload38 = load i32, i32* %.reg2mem37
%76 = inttoptr i64 %sv_1.0.reload to i64*
%77 = load i64, i64* %76, align 8
%78 = call i64 @FUNC(i64 %2, i64 %77)
%79 = call i64 @FUNC(i64 %2, i64 1)
%80 = trunc i64 %79 to i32
store i32 %.reload38, i32* %19, align 4
%81 = icmp eq i32 %80, 0
store i32 %.reload38, i32* %.reg2mem35
store i64 %storemerge.reload, i64* %sv_0.0.be.reg2mem
br i1 %81, label LBL_8, label LBL_18
LBL_18:
%82 = and i64 %79, 4294967295
store i64 %82, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%83 = call i64 @FUNC(i64 %2, i64 %sv_0.0.lcssa.reload)
%84 = call i64 @FUNC(i64 %2, i64 0)
store i64 %84, 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 i32 %.reload38, { 1, 0 }
uselistorder i64 %58, { 1, 0, 2 }
uselistorder i8* %24, { 3, 2, 1, 0, 4, 5 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.011.reload, { 2, 0, 1, 4, 3 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i64 %2, { 12, 13, 8, 9, 7, 6, 10, 11, 15, 1, 2, 4, 0, 3, 5, 14, 16 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem35, { 3, 2, 0, 1 }
uselistorder i64* %sv_0.0.be.reg2mem, { 3, 2, 0, 1 }
uselistorder i32* %.reg2mem37, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @xml_sax_parse, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*)* @gf_xml_locate_entity, { 1, 0 }
uselistorder i64 1, { 0, 1, 3, 4, 2, 5 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @xml_sax_append_string, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
BinRealVul | process_cmd_polltarget_8517 | process_cmd_polltarget | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%1 = bitcast i32* %sv_1 to i64*
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0, i64* nonnull %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64* nonnull %sv_0, i64 %5)
%7 = load i32, i32* %sv_1, align 4
%8 = call i32 @htonl(i32 %7)
%9 = add i64 %5, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = call i16 @htons(i16 1)
%12 = add i64 %5, 8
%13 = inttoptr i64 %12 to i16*
store i16 %11, i16* %13, align 2
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i32)* @htonl, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tpm_driver_find_by_type_15949 | tpm_driver_find_by_type | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
%0 = trunc i64 %arg1 to i32
store i32 0, i32* %storemerge23.reg2mem
br label LBL_3
LBL_1:
%1 = inttoptr i64 %11 to i32*
%2 = load i32, i32* %1, align 4
%3 = icmp eq i32 %2, %0
%4 = icmp eq i1 %3, false
store i64 %11, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_4
LBL_2:
%5 = add nuw i32 %storemerge23.reload, 1
%6 = icmp ugt i32 %storemerge23.reload, 8
store i32 %5, i32* %storemerge23.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%7 = sext i32 %storemerge23.reload to i64
%8 = mul i64 %7, 8
%9 = add i64 %8, ptrtoint (i64* @gv_0 to i64)
%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 0, i64* %storemerge.reg2mem
br i1 %13, label LBL_1, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %11, { 2, 1, 0 }
uselistorder i32 %storemerge23.reload, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | send_reply_10458 | send_reply | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64 1100100111001001)
store i64 %0, i64* %sv_1, align 8
%1 = call i32 @htonl(i32 %arg3)
%2 = trunc i64 %arg4 to i32
%3 = call i32 @htonl(i32 %2)
%4 = ptrtoint i64* %sv_1 to i64
store i64 %4, i64* %sv_0, align 8
%5 = bitcast i64* %sv_0 to %iovec*
%6 = call i32 @writev(i32 %arg2, %iovec* nonnull %5, i32 5)
%7 = sext i32 %6 to i64
ret i64 %7
uselistorder i32 (i32)* @htonl, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | nsv_read_close_2275 | nsv_read_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 24
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %3, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %7)
br label LBL_4
LBL_4:
ret i64 0
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @av_free_packet, { 1, 0 }
uselistorder i64 (i64)* @av_freep, { 1, 0 }
} | 0 |
BinRealVul | ctxt_switch_from_12175 | ctxt_switch_from | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = add i64 %0, 32
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = add i64 %0, 40
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = call i64 @FUNC(i64 %0)
%13 = add i64 %0, 224
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 64
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %19, align 8
%20 = add i64 %0, 72
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %21, align 8
%22 = call i64 @FUNC()
%23 = add i64 %0, 80
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %24, align 8
%25 = add i64 %0, 88
%26 = inttoptr i64 %25 to i64*
store i64 0, i64* %26, align 8
%27 = add i64 %0, 96
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %28, align 8
%29 = add i64 %0, 104
%30 = inttoptr i64 %29 to i64*
store i64 0, i64* %30, align 8
%31 = load i32, i32* %14, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_2, label LBL_1
LBL_1:
%36 = add i64 %0, 112
%37 = inttoptr i64 %36 to i64*
store i64 0, i64* %37, align 8
br label LBL_2
LBL_2:
%38 = add i64 %0, 120
%39 = inttoptr i64 %38 to i64*
store i64 0, i64* %39, align 8
%40 = add i64 %0, 128
%41 = inttoptr i64 %40 to i64*
store i64 0, i64* %41, align 8
%42 = add i64 %0, 136
%43 = inttoptr i64 %42 to i64*
store i64 0, i64* %43, align 8
%44 = add i64 %0, 144
%45 = inttoptr i64 %44 to i64*
store i64 0, i64* %45, align 8
%46 = add i64 %0, 152
%47 = inttoptr i64 %46 to i64*
store i64 0, i64* %47, align 8
%48 = add i64 %0, 160
%49 = inttoptr i64 %48 to i64*
store i64 0, i64* %49, align 8
%50 = add i64 %0, 168
%51 = inttoptr i64 %50 to i64*
store i64 0, i64* %51, align 8
%52 = add i64 %0, 176
%53 = inttoptr i64 %52 to i64*
store i64 0, i64* %53, align 8
%54 = load i32, i32* %14, align 4
%55 = zext i32 %54 to i64
%56 = call i64 @FUNC(i64 %55)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_4, label LBL_3
LBL_3:
%59 = add i64 %0, 200
%60 = inttoptr i64 %59 to i64*
store i64 0, i64* %60, align 8
br label LBL_4
LBL_4:
%61 = add i64 %0, 208
%62 = inttoptr i64 %61 to i64*
store i64 0, i64* %62, align 8
%63 = add i64 %0, 216
%64 = inttoptr i64 %63 to i64*
store i64 0, i64* %64, align 8
%65 = call i64 @FUNC(i64 %0)
%66 = call i64 @FUNC(i64 %0)
%67 = call i64 @FUNC()
%68 = call i64 @FUNC(i64 %0)
ret i64 %68
uselistorder i64 %0, { 2, 3, 4, 5, 6, 1, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }
uselistorder i64 ()* @isb, { 1, 0 }
uselistorder i64 (i64)* @is_32bit_domain, { 2, 1, 0 }
} | 1 |
BinRealVul | TfLiteIntArrayCreate_12875 | TfLiteIntArrayCreate | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = call i64* @malloc(i32 %3)
%5 = ptrtoint i64* %4 to i64
%6 = bitcast i64* %4 to i32*
store i32 %0, i32* %6, align 4
ret i64 %5
} | 1 |
BinRealVul | rgb15tobgr16_14199 | rgb15tobgr16 | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp ult i32 %arg3, 2
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = udiv i32 %arg3, 2
%3 = ptrtoint i32* %arg1 to i64
%wide.trip.count = zext i32 %2 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = mul i64 %indvars.iv.reload, 2
%5 = add i64 %4, %3
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = and i8 %7, -32
%9 = add i64 %4, %1
%10 = inttoptr i64 %9 to i8*
store i8 %8, i8* %10, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
} | 1 |
BinRealVul | ff_img_read_packet_7442 | ff_img_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%.reg2mem20 = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge59.reg2mem = alloca i32
%indvars.iv11.reg2mem = alloca i64
%.pre-phi16.reg2mem = alloca i32*
%.reg2mem = alloca i32
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%rsi = alloca i64, align 8
%4 = ptrtoint i64* %arg1 to i64
%5 = load i64, i64* %0
%6 = load i32, i32* %1
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%7 = ptrtoint i64* %sv_6 to i64
%8 = bitcast i64* %sv_5 to i8*
store i64 0, i64* %sv_4, align 8
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i64*
%11 = trunc i64 %3 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_25, label LBL_1
LBL_1:
%14 = load i64, i64* %10, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %4, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
%.pre = inttoptr i64 %9 to i32*
br i1 %20, label LBL_1.LBL_5_crit_edge, label LBL_3
LBL_2:
%.pre13 = add i64 %4, 16
%.pre15 = inttoptr i64 %.pre13 to i32*
%.pre19 = load i32, i32* %.pre, align 4
store i32 %.pre19, i32* %.reg2mem
store i32* %.pre15, i32** %.pre-phi16.reg2mem
br label LBL_5
LBL_3:
%21 = load i32, i32* %.pre, align 4
%22 = add i64 %4, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp ugt i32 %21, %24
store i32 %21, i32* %.reg2mem
store i32* %23, i32** %.pre-phi16.reg2mem
br i1 %25, label LBL_4, label LBL_5
LBL_4:
%26 = add i64 %4, 12
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
store i32 %28, i32* %.pre, align 4
store i32 %28, i32* %.reg2mem
store i32* %23, i32** %.pre-phi16.reg2mem
br label LBL_5
LBL_5:
%.pre-phi16.reload = load i32*, i32** %.pre-phi16.reg2mem
%.reload = load i32, i32* %.reg2mem
%29 = load i32, i32* %.pre-phi16.reload, align 4
%30 = icmp ugt i32 %.reload, %29
store i64 1, i64* %rax.0.reg2mem
br i1 %30, label LBL_41, label LBL_6
LBL_6:
%31 = add i64 %4, 20
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_9, label LBL_7
LBL_7:
%36 = add i64 %4, 32
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64* nonnull %sv_5, i64 1024, i64 %38, i32 %.reload)
%40 = trunc i64 %39 to i32
%41 = icmp slt i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_9, label LBL_8
LBL_8:
%43 = load i32, i32* %.pre, align 4
%44 = icmp slt i32 %43, 2
store i64 3, i64* %rax.0.reg2mem
br i1 %44, label LBL_9, label LBL_41
LBL_9:
%45 = inttoptr i64 %16 to i32*
%46 = add i64 %4, 24
%47 = ptrtoint i64* %sv_4 to i64
%48 = ptrtoint i64* %sv_5 to i64
%49 = add i64 %7, -1136
%50 = add i64 %7, -1100
%51 = add i64 %4, 40
%52 = inttoptr i64 %51 to i32*
%53 = add i64 %48, -1
store i64 0, i64* %indvars.iv11.reg2mem
store i32 0, i32* %storemerge59.reg2mem
br label LBL_10
LBL_10:
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%54 = mul i64 %indvars.iv11.reload, 8
%55 = add i64 %54, %47
%56 = call i64 @FUNC(i64 %55, i64 %48, i64 1, i64 %46, i64 0)
%57 = trunc i64 %56 to i32
%58 = icmp slt i32 %57, 0
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_13, label LBL_11
LBL_11:
%60 = trunc i64 %indvars.iv11.reload to i32
%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
br i1 %65, label LBL_15, label LBL_12
LBL_12:
%66 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %48, i64 0, i64 %2)
store i64 3, i64* %rax.0.reg2mem
br label LBL_41
LBL_13:
%storemerge59.reload = load i32, i32* %storemerge59.reg2mem
%67 = add i64 %49, %54
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = call i64 @FUNC(i64 %69)
%71 = trunc i64 %70 to i32
%72 = mul i64 %indvars.iv11.reload, 4
%73 = add i64 %50, %72
%74 = inttoptr i64 %73 to i32*
store i32 %71, i32* %74, align 4
%75 = load i32, i32* %52, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label LBL_15, label LBL_14
LBL_14:
%77 = call i32 @strlen(i8* nonnull %8)
%78 = sext i32 %77 to i64
%79 = add i64 %53, %78
%80 = trunc i32 %storemerge59.reload to i8
%81 = add i8 %80, 85
%82 = inttoptr i64 %79 to i8*
store i8 %81, i8* %82, align 1
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%83 = add nuw nsw i32 %storemerge59.reload, 1
%84 = icmp ult i64 %indvars.iv.next12, 3
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i32 %83, i32* %storemerge59.reg2mem
br i1 %84, label LBL_10, label LBL_15
LBL_15:
%85 = load i32, i32* %45, align 4
%86 = icmp eq i32 %85, 0
%87 = icmp eq i1 %86, false
br i1 %87, label LBL_22, label LBL_16
LBL_16:
store i32 0, i32* %sv_3, align 4
%88 = load i64, i64* %sv_4, align 8
%89 = call i64 @FUNC(i64 %88, i64* nonnull %sv_2, i64 4096)
%90 = trunc i64 %89 to i32
%91 = icmp slt i32 %90, 0
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_18, label LBL_17
LBL_17:
%93 = and i64 %89, 4294967295
store i64 %93, i64* %rax.0.reg2mem
br label LBL_41
LBL_18:
%94 = sub i64 0, %89
%95 = load i64, i64* %sv_4, align 8
%96 = and i64 %94, 4294967295
%97 = call i64 @FUNC(i64 %95, i64 %96)
%98 = ptrtoint i64* %sv_2 to i64
store i64 %98, i64* %sv_1, align 8
%99 = call i64 @FUNC(i64* nonnull %sv_1, i64 1, i32* nonnull %sv_3)
%100 = icmp eq i64 %99, 0
br i1 %100, label LBL_22, label LBL_19
LBL_19:
%101 = inttoptr i64 %99 to i64*
%102 = load i64, i64* %101, align 8
%103 = icmp eq i64 %102, 4199204
%104 = icmp eq i1 %103, false
br i1 %104, label LBL_22, label LBL_20
LBL_20:
%105 = add i64 %99, 8
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = icmp eq i32 %107, 0
br i1 %108, label LBL_22, label LBL_21
LBL_21:
store i32 %107, i32* %45, align 4
br label LBL_22
LBL_22:
%109 = load i32, i32* %45, align 4
%110 = icmp eq i32 %109, 1
%111 = icmp eq i1 %110, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %111, label LBL_27, label LBL_23
LBL_23:
%112 = add i64 %16, 4
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = icmp eq i32 %114, 0
%116 = icmp eq i1 %115, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %116, label LBL_27, label LBL_24
LBL_24:
%117 = add i64 %16, 8
%118 = call i64 @FUNC(i64 %112, i64 %117, i64 0)
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_27
LBL_25:
%119 = add i64 %4, 16
%120 = inttoptr i64 %119 to i64*
%121 = load i64, i64* %120, align 8
store i64 %121, i64* %sv_4, align 8
%122 = call i64 @FUNC(i64 %121)
%123 = trunc i64 %122 to i32
%124 = icmp eq i32 %123, 0
store i64 3, i64* %rax.0.reg2mem
br i1 %124, label LBL_26, label LBL_41
LBL_26:
%125 = add i64 %4, 44
%126 = inttoptr i64 %125 to i32*
%127 = load i32, i32* %126, align 4
%128 = icmp slt i32 %127, 1
%. = select i1 %128, i32 4096, i32 %127
store i32 %., i32* %sv_0.0.reg2mem
br label LBL_27
LBL_27:
%129 = ptrtoint i64* %arg2 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%130 = add i32 %sv_0.0.reload, %6
%131 = zext i32 %130 to i64
%132 = call i64 @FUNC(i64 %129, i64 %131)
%133 = trunc i64 %132 to i32
%134 = icmp slt i32 %133, 0
%135 = icmp eq i1 %134, false
store i64 3, i64* %rax.0.reg2mem
br i1 %135, label LBL_28, label LBL_41
LBL_28:
%136 = bitcast i64* %rdi to i32*
%137 = add i64 %129, 4
%138 = inttoptr i64 %137 to i32*
store i32 0, i32* %138, align 4
%139 = add i64 %129, 8
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 4
%142 = or i32 %141, 1
store i32 %142, i32* %140, align 4
%143 = add i64 %4, 48
%144 = inttoptr i64 %143 to i32*
%145 = load i32, i32* %144, align 4
%146 = icmp eq i32 %145, 0
br i1 %146, label LBL_31, label LBL_29
LBL_29:
%147 = bitcast i64* %sv_2 to %stat*
%148 = call i32 @stat(i8* nonnull %8, %stat* nonnull %147)
%149 = icmp eq i32 %148, 0
store i64 3, i64* %rax.0.reg2mem
br i1 %149, label LBL_30, label LBL_41
LBL_30:
%150 = add i64 %129, 16
%151 = inttoptr i64 %150 to i64*
%152 = inttoptr i64 %9 to i32*
%153 = load i32, i32* %152, align 4
%154 = load i64, i64* %10, align 8
%155 = call i64 @FUNC(i64 %154, i32 %153, i64 %5, i64 0, i64 0, i64 0)
br label LBL_33
LBL_31:
%156 = load i32, i32* %136, align 8
%157 = icmp eq i32 %156, 0
%158 = icmp eq i1 %157, false
br i1 %158, label LBL_33, label LBL_32
LBL_32:
%159 = add i64 %4, 52
%160 = inttoptr i64 %159 to i32*
%161 = load i32, i32* %160, align 4
%162 = sext i32 %161 to i64
%163 = add i64 %129, 16
%164 = inttoptr i64 %163 to i64*
store i64 %162, i64* %164, align 8
br label LBL_33
LBL_33:
%165 = bitcast i64* %arg2 to i32*
store i32 0, i32* %165, align 4
%166 = add i64 %7, -1136
%167 = add i64 %7, -1100
%168 = add i64 %129, 24
%169 = inttoptr i64 %168 to i64*
%170 = bitcast i64* %rsi to i32*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_34
LBL_34:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%171 = mul i64 %indvars.iv.reload, 8
%172 = add i64 %166, %171
%173 = inttoptr i64 %172 to i64*
%174 = load i64, i64* %173, align 8
%175 = icmp eq i64 %174, 0
br i1 %175, label LBL_39, label LBL_35
LBL_35:
%176 = mul i64 %indvars.iv.reload, 4
%177 = add i64 %167, %176
%178 = inttoptr i64 %177 to i32*
%179 = load i32, i32* %178, align 4
%180 = zext i32 %179 to i64
%181 = load i64, i64* %169, align 8
%182 = load i32, i32* %170, align 8
%183 = sext i32 %182 to i64
%184 = add i64 %181, %183
%185 = inttoptr i64 %184 to i64*
%186 = call i64 @FUNC(i64 %174, i64* %185, i64 %180)
%187 = trunc i64 %186 to i32
%188 = add i64 %176, %7
%189 = add i64 %188, -1112
%190 = inttoptr i64 %189 to i32*
store i32 %187, i32* %190, align 4
%191 = load i32, i32* %136, align 8
%192 = icmp eq i32 %191, 0
%193 = icmp eq i1 %192, false
store i32 %187, i32* %.reg2mem20
br i1 %193, label LBL_37, label LBL_36
LBL_36:
%194 = load i64, i64* %173, align 8
%195 = call i64 @FUNC(i64 %194)
%.pr = load i32, i32* %190, align 4
store i32 %.pr, i32* %.reg2mem20
br label LBL_37
LBL_37:
%.reload21 = load i32, i32* %.reg2mem20
%196 = icmp slt i32 %.reload21, 1
br i1 %196, label LBL_39, label LBL_38
LBL_38:
%197 = load i32, i32* %170, align 8
%198 = add i32 %197, %.reload21
store i32 %198, i32* %165, align 4
br label LBL_39
LBL_39:
%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_40, label LBL_34
LBL_40:
%199 = call i64 @FUNC(i64 %129)
store i64 3, i64* %rax.0.reg2mem
br label LBL_41
LBL_41:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload21, { 1, 0 }
uselistorder i64 %176, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %129, { 2, 3, 1, 0, 4, 5, 6 }
uselistorder i64 %indvars.iv11.reload, { 0, 3, 1, 2 }
uselistorder i64 %48, { 0, 2, 1 }
uselistorder i32* %45, { 1, 0, 2 }
uselistorder i32* %.pre, { 1, 3, 2, 0 }
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i8* %8, { 1, 0 }
uselistorder i64 %7, { 0, 4, 3, 1, 2 }
uselistorder i64* %sv_5, { 0, 2, 1 }
uselistorder i64* %sv_2, { 0, 2, 1 }
uselistorder i64 %4, { 10, 9, 11, 12, 1, 2, 3, 5, 4, 8, 7, 0, 6, 13 }
uselistorder i64* %indvars.iv11.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge59.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem20, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 1, 2, 3, 7, 6, 4, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64*, i64)* @avio_read, { 1, 0 }
uselistorder i64 4096, { 1, 0 }
uselistorder i64 3, { 5, 8, 0, 1, 2, 7, 4, 3, 6 }
uselistorder i64 1, { 2, 3, 1, 4, 0 }
uselistorder i64 16, { 1, 2, 3, 4, 0 }
uselistorder i64 4, { 0, 2, 3, 1, 4 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 10, 11, 12, 13, 14 }
uselistorder i32 0, { 5, 6, 7, 8, 9, 10, 11, 12, 0, 1, 13, 2, 14, 15, 4, 16, 17, 18, 19, 20, 3, 21, 22, 23, 24 }
uselistorder i64 8, { 0, 2, 3, 4, 1, 5 }
uselistorder label LBL_41, { 5, 0, 1, 2, 6, 7, 3, 4 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | xfrm_compile_policy_4508 | xfrm_compile_policy | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%trunc = trunc i64 %arg1 to i16
switch i16 %trunc, label LBL_5 [
i16 2, label LBL_1
i16 10, label LBL_3
]
LBL_1:
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 1
br i1 %6, label LBL_6, label LBL_2
LBL_2:
%7 = bitcast i64* %arg5 to i32*
store i32 95, i32* %7, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
%8 = trunc i64 %4 to i32
%9 = icmp eq i32 %8, 2
br i1 %9, label LBL_6, label LBL_4
LBL_4:
%10 = bitcast i64* %arg5 to i32*
store i32 95, i32* %10, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%11 = bitcast i64* %arg5 to i32*
store i32 22, i32* %11, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%12 = bitcast i64* %arg5 to i32*
store i32 22, i32* %12, align 4
%13 = trunc i64 %arg4 to i32
%14 = icmp ult i32 %13, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_11, label LBL_7
LBL_7:
%15 = ptrtoint i64* %arg3 to i64
%16 = trunc i64 %2 to i32
%17 = call i64 @FUNC(i64 %15)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp slt i32 %16, 2
%or.cond = icmp eq i1 %20, %19
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_11
LBL_8:
%21 = call i64 @FUNC(i64 0)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_10, label LBL_9
LBL_9:
store i32 105, i32* %12, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%24 = add i64 %15, 4
%25 = call i64 @FUNC(i64 %21, i64 %15)
%26 = call i64 @FUNC(i64 %21, i64 %24, i32 %3)
store i32 %16, i32* %12, align 4
store i64 %21, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %21, { 0, 2, 1, 3 }
uselistorder i32 %16, { 1, 0 }
uselistorder i64 %15, { 0, 2, 1 }
uselistorder i32* %12, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 2, 1, 3, 4, 5 }
uselistorder i32 0, { 1, 0 }
uselistorder i64* %arg5, { 1, 3, 2, 0 }
uselistorder label LBL_11, { 2, 3, 1, 0, 4, 5, 6 }
} | 0 |
BinRealVul | save_page_header_15308 | save_page_header | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.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 = icmp eq i64 %4, %0
%6 = zext i1 %5 to i64
%spec.select = or i64 %6, %arg3
%7 = call i64 @FUNC(i64 %1, i64 %spec.select)
%8 = urem i64 %spec.select, 2
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 8, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = bitcast i64* %arg2 to i8*
%12 = call i32 @strlen(i8* %11)
%13 = sext i32 %12 to i64
%14 = urem i32 %12, 256
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %0, i64 %15)
%17 = call i64 @FUNC(i64 %0, i64 %0, i64 %13)
%18 = add nsw i64 %13, 9
store i64 %0, i64* %3, align 8
store i64 %18, 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 %0, { 0, 1, 3, 2, 4 }
} | 1 |
BinRealVul | memory_region_sync_dirty_bitmap_16257 | memory_region_sync_dirty_bitmap | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%0 = add i64 %storemerge1.reload, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 %2, i64* %storemerge1.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_2:
ret i64 %2
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | koneplus_get_startup_profile_18409 | koneplus_get_startup_profile | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 4, i64 32)
%1 = call i64 @FUNC(i64 %arg1, i64 1, i64 %0, i64 4)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i32 %2, i32* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = inttoptr i64 %0 to i32*
%6 = load i32, i32* %5, align 4
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%7 = call i64 @FUNC(i64 %0)
%8 = zext i32 %sv_0.0.reload to i64
ret i64 %8
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | uwsgi_expand_path_12443 | uwsgi_expand_path | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = ptrtoint i64* %sv_2 to i64
%1 = trunc i64 %arg2 to i32
%2 = inttoptr i64 %arg1 to i64*
%3 = call i64* @memcpy(i64* nonnull %sv_1, i64* %2, i32 %1)
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = add nsw i64 %4, -4112
%6 = add i64 %5, %0
%7 = inttoptr i64 %6 to i8*
store i8 0, i8* %7, align 1
%8 = icmp eq i64 %arg3, 0
%9 = icmp eq i1 %8, false
store i64 %arg3, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 4097)
store i64 %10, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = bitcast i64* %sv_1 to i8*
%12 = inttoptr i64 %sv_0.0.reload to i8*
%13 = call i8* @realpath(i8* nonnull %11, i8* %12)
%14 = icmp eq i8* %13, null
%15 = icmp eq i1 %14, false
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br i1 %15, label LBL_5, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 0, i64* %storemerge.reg2mem
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%17 = inttoptr i64 %sv_0.0.reload to i64*
call void @free(i64* %17)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | mem_write_12678 | mem_write | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem18 = alloca i64
%.reg2mem16 = alloca i64
%rdi.4.reg2mem = alloca i64
%.reg2mem14 = alloca i64
%.reg2mem12 = alloca i64
%rdi.3.reg2mem = alloca i64
%.reg2mem10 = alloca i64
%.reg2mem8 = alloca i64
%rdi.2.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i32* %arg2, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([4 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%sext = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext, 32
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([9 x i8]* @gv_3 to i64), i64* %rdi.1.reg2mem
br label LBL_4
LBL_4:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, %3
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp sgt i64 %10, %13
store i64 %9, i64* %.reg2mem
store i64 %rdi.1.reload, i64* %rdi.2.reg2mem
br i1 %14, label LBL_5, label LBL_11
LBL_5:
%15 = add i64 %0, 32
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
store i64 %13, i64* %sv_0.05.reg2mem
store i64 %9, i64* %.reg2mem
store i64 %rdi.1.reload, i64* %rdi.2.reg2mem
br i1 %18, label LBL_11, label LBL_6
LBL_6:
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%19 = mul i64 %sv_0.05.reload, 2
%20 = icmp slt i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_8
LBL_7:
%22 = icmp slt i64 %19, %10
store i64 %19, i64* %sv_0.05.reg2mem
br i1 %22, label LBL_6, label LBL_9
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_7
LBL_9:
%23 = call i64 @FUNC(i64 %0, i64 %19)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %25, label LBL_9.LBL_11_crit_edge, label LBL_22
LBL_10:
%.pre = load i64, i64* %8, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %0, i64* %rdi.2.reg2mem
br label LBL_11
LBL_11:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%.reload = load i64, i64* %.reg2mem
%26 = add i64 %0, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp sgt i64 %.reload, %28
store i64 %28, i64* %.reg2mem12
store i64 %.reload, i64* %.reg2mem14
store i64 %rdi.2.reload, i64* %rdi.4.reg2mem
br i1 %29, label LBL_12, label LBL_15
LBL_12:
%30 = load i64, i64* %12, align 8
%31 = sub i64 %30, %.reload
%32 = xor i64 %30, %.reload
%33 = xor i64 %31, %30
%34 = and i64 %33, %32
%35 = icmp slt i64 %34, 0
%36 = icmp eq i64 %31, 0
%37 = icmp slt i64 %31, 0
%38 = icmp ne i1 %37, %35
%39 = or i1 %36, %38
%40 = select i1 %39, i64 %30, i64 %.reload
%41 = trunc i64 %40 to i32
%42 = trunc i64 %28 to i32
%43 = sub i32 %41, %42
%44 = icmp slt i32 %43, 1
store i64 %28, i64* %.reg2mem8
store i64 %.reload, i64* %.reg2mem10
store i64 %rdi.2.reload, i64* %rdi.3.reg2mem
br i1 %44, label LBL_14, label LBL_13
LBL_13:
%45 = add i64 %28, %rdi.2.reload
%46 = inttoptr i64 %45 to i64*
%47 = call i64* @memset(i64* %46, i32 0, i32 %43)
%48 = load i64, i64* %27, align 8
%49 = sext i32 %43 to i64
%50 = add i64 %48, %49
store i64 %50, i64* %27, align 8
%.pre6 = load i64, i64* %8, align 8
store i64 %50, i64* %.reg2mem8
store i64 %.pre6, i64* %.reg2mem10
store i64 %45, i64* %rdi.3.reg2mem
br label LBL_14
LBL_14:
%rdi.3.reload = load i64, i64* %rdi.3.reg2mem
%.reload11 = load i64, i64* %.reg2mem10
%.reload9 = load i64, i64* %.reg2mem8
%51 = icmp eq i64 %.reload11, %.reload9
store i64 %.reload9, i64* %.reg2mem12
store i64 %.reload9, i64* %.reg2mem14
store i64 %rdi.3.reload, i64* %rdi.4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %51, label LBL_15, label LBL_22
LBL_15:
%.reload15 = load i64, i64* %.reg2mem14
%.reload13 = load i64, i64* %.reg2mem12
%52 = load i64, i64* %12, align 8
%53 = sub i64 %52, %.reload15
%54 = trunc i64 %53 to i32
%55 = sub i32 %4, %54
%56 = xor i64 %53, %3
%57 = trunc i64 %56 to i32
%58 = xor i32 %55, %4
%59 = and i32 %58, %57
%60 = icmp slt i32 %59, 0
%61 = icmp eq i32 %55, 0
%62 = icmp slt i32 %55, 0
%63 = icmp ne i1 %62, %60
%64 = or i1 %61, %63
%.v = select i1 %64, i64 %3, i64 %53
%65 = trunc i64 %.v to i32
%66 = icmp slt i32 %65, 1
store i64 %.reload13, i64* %.reg2mem16
store i64 %.reload15, i64* %.reg2mem18
br i1 %66, label LBL_17, label LBL_16
LBL_16:
%rdi.4.reload = load i64, i64* %rdi.4.reg2mem
%67 = add i64 %rdi.4.reload, %.reload15
%68 = inttoptr i64 %67 to i64*
%69 = bitcast i32* %arg2 to i64*
%70 = call i64* @memcpy(i64* %68, i64* %69, i32 %65)
%71 = load i64, i64* %8, align 8
%sext4 = mul i64 %.v, 4294967296
%72 = ashr exact i64 %sext4, 32
%73 = add i64 %71, %72
store i64 %73, i64* %8, align 8
%.pre7 = load i64, i64* %27, align 8
store i64 %.pre7, i64* %.reg2mem16
store i64 %73, i64* %.reg2mem18
br label LBL_17
LBL_17:
%.reload19 = load i64, i64* %.reg2mem18
%.reload17 = load i64, i64* %.reg2mem16
%74 = icmp sgt i64 %.reload19, %.reload17
br i1 %74, label LBL_18, label LBL_19
LBL_18:
store i64 %.reload19, i64* %27, align 8
br label LBL_19
LBL_19:
%75 = icmp eq i32 %65, %4
br i1 %75, label LBL_21, label LBL_20
LBL_20:
call void @__assert_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_21
LBL_21:
%76 = and i64 %.v, 4294967295
store i64 %76, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.v, { 1, 0, 2 }
uselistorder i32 %55, { 1, 2, 0 }
uselistorder i64 %53, { 1, 0, 2 }
uselistorder i64 %.reload15, { 2, 0, 1 }
uselistorder i64 %31, { 1, 2, 0 }
uselistorder i64 %30, { 3, 0, 1, 2 }
uselistorder i64 %28, { 2, 1, 3, 0, 4 }
uselistorder i64* %27, { 1, 0, 3, 2, 4 }
uselistorder i64 %.reload, { 1, 2, 5, 3, 0, 4 }
uselistorder i64 %rdi.2.reload, { 2, 1, 0 }
uselistorder i64 %19, { 3, 0, 2, 1 }
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64* %8, { 3, 2, 0, 1, 4 }
uselistorder i64 %rdi.1.reload, { 1, 0 }
uselistorder i32 %4, { 1, 0, 2, 3 }
uselistorder i64 %3, { 2, 0, 1, 3 }
uselistorder i64 %0, { 3, 0, 2, 5, 4, 6, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rdi.2.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %.reg2mem12, { 0, 2, 1 }
uselistorder i64* %.reg2mem14, { 0, 2, 1 }
uselistorder i64* %rdi.4.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem16, { 0, 2, 1 }
uselistorder i64* %.reg2mem18, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder [9 x i8]* @gv_3, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4, 5, 6 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), { 1, 0, 2, 3 }
uselistorder i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), { 1, 0, 2, 3 }
uselistorder [4 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_22, { 2, 0, 1 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_11, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | getrampagesize_14157 | getrampagesize | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 9223372036854775807, i64* %sv_0, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
store i64 %2, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 0)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = call i64 @FUNC()
store i64 %6, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%7 = call i64 @FUNC(i64 %3, i64 4198774, i64* nonnull %sv_0)
%8 = load i64, i64* %sv_0, align 8
%9 = icmp eq i64 %8, 9223372036854775807
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%11 = call i64 @FUNC()
store i64 %11, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%12 = load i32, i32* @gv_2, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %14, label LBL_11, label LBL_7
LBL_7:
%15 = call i64 @FUNC()
%16 = load i64, i64* %sv_0, align 8
%17 = icmp slt i64 %15, %16
store i64 %16, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_11
LBL_8:
%18 = load i8, i8* inttoptr (i64 4210780 to i8*), align 4
%19 = icmp eq i8 %18, 1
br i1 %19, label LBL_10, label LBL_9
LBL_9:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_3, i64 0, i64 0))
store i8 1, i8* bitcast (i64* @gv_4 to i8*), align 8
br label LBL_10
LBL_10:
%21 = call i64 @FUNC()
store i64 %21, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 2, 1, 5, 4, 3 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 ()* @getpagesize, { 3, 2, 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_11, { 2, 1, 0, 3, 4, 5 }
} | 1 |
BinRealVul | gen_extend_330 | gen_extend | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp sgt i32 %0, 4
br i1 %1, label LBL_10, label LBL_1
LBL_1:
%sext = mul i64 %arg1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = icmp sgt i32 %0, 2
br i1 %3, label LBL_1.LBL_11_crit_edge, label LBL_3
LBL_2:
%.pre = and i64 %2, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_11
LBL_3:
%sext6 = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext6, 32
switch i32 %0, label LBL_10 [
i32 1, label LBL_4
i32 2, label LBL_7
]
LBL_4:
%5 = call i64 @FUNC()
%6 = and i64 %5, 4294967295
%7 = trunc i64 %4 to i32
%8 = icmp eq i32 %7, 0
%9 = and i64 %2, 4294967295
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%10 = call i64 @FUNC(i64 %6, i64 %9)
store i64 %6, i64* %.pre-phi.reg2mem
br label LBL_11
LBL_6:
%11 = call i64 @FUNC(i64 %6, i64 %9)
store i64 %6, i64* %.pre-phi.reg2mem
br label LBL_11
LBL_7:
%12 = call i64 @FUNC()
%13 = and i64 %12, 4294967295
%14 = trunc i64 %4 to i32
%15 = icmp eq i32 %14, 0
%16 = and i64 %2, 4294967295
br i1 %15, label LBL_9, label LBL_8
LBL_8:
%17 = call i64 @FUNC(i64 %13, i64 %16)
store i64 %13, i64* %.pre-phi.reg2mem
br label LBL_11
LBL_9:
%18 = call i64 @FUNC(i64 %13, i64 %16)
store i64 %13, i64* %.pre-phi.reg2mem
br label LBL_11
LBL_10:
%19 = call i64 @FUNC()
unreachable
LBL_11:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
ret i64 %.pre-phi.reload
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %13, { 1, 3, 0, 2 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %6, { 1, 3, 0, 2 }
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i32 %0, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 4, 3, 2, 1, 5 }
uselistorder i64 ()* @tcg_temp_new, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 3, 4, 0 }
} | 0 |
BinRealVul | qemu_malloc_3607 | qemu_malloc | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
call void @abort()
unreachable
LBL_3:
%phitmp = trunc i64 %arg1 to i32
%storemerge = select i1 %0, i32 1, i32 %phitmp
%6 = call i64* @malloc(i32 %storemerge)
%7 = ptrtoint i64* %6 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %arg1, i64 %8)
ret i64 %8
} | 0 |
BinRealVul | snd_usb_pipe_sanity_check_19020 | snd_usb_pipe_sanity_check | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %2)
%6 = mul i64 %5, 4
%7 = and i64 %6, 17179869180
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, %4
%. = select i1 %11, i64 0, i64 4294967274
ret i64 %.
} | 1 |
BinRealVul | check_guest_output_14964 | check_guest_output | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.18.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.06.reg2mem = alloca i32
%sv_2 = alloca i8, align 1
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = and i64 %0, 4294967295
%2 = trunc i64 %0 to i32
%3 = bitcast i8* %sv_2 to i64*
store i32 0, i32* %storemerge9.reg2mem
store i32 0, i32* %sv_1.18.reg2mem
br label LBL_5
LBL_1:
%sv_1.06.reload = load i32, i32* %sv_1.06.reg2mem
%4 = sext i32 %sv_1.06.reload to i64
%5 = add nsw i64 %1, %4
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = load i8, i8* %sv_2, align 1
%9 = icmp eq i8 %7, %8
%10 = icmp eq i1 %9, false
store i32 0, i32* %sv_1.0.be.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i32 %sv_1.06.reload, 1
%12 = sext i32 %11 to i64
%13 = add nsw i64 %1, %12
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 0
%17 = icmp eq i1 %16, false
store i32 %11, i32* %sv_1.0.be.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_3, label LBL_6
LBL_3:
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%18 = call i32 @read(i32 %2, i64* nonnull %3, i32 1)
%19 = icmp eq i32 %18, 1
store i32 %sv_1.0.be.reload, i32* %sv_1.06.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %18, i32* %.lcssa.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_4:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%20 = icmp sgt i32 %.lcssa.reload, -1
%21 = zext i1 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 10000)
%24 = add nuw nsw i32 %storemerge9.reload, 1
%25 = icmp ult i32 %24, 6000
store i32 %24, i32* %storemerge9.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.18.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%sv_1.18.reload = load i32, i32* %sv_1.18.reg2mem
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%26 = call i32 @read(i32 %2, i64* nonnull %3, i32 1)
%27 = icmp eq i32 %26, 1
store i32 %sv_1.18.reload, i32* %sv_1.06.reg2mem
store i32 %sv_1.18.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %26, i32* %.lcssa.reg2mem
br i1 %27, label LBL_1, label LBL_4
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = call i64 @FUNC(i64 %sv_0.0.reload)
ret i64 %28
uselistorder i32 %sv_1.18.reload, { 1, 0 }
uselistorder i32 %sv_1.06.reload, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i8* %sv_2, { 1, 0 }
uselistorder i32* %sv_1.06.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.0.be.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 2, 0, 1, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | mov_read_close_2745 | mov_read_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem4 = alloca i64
%storemerge13.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%.pre = add i64 %2, 8
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = inttoptr i64 %.pre to i64*
%6 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge13.reg2mem
br label LBL_2
LBL_2:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = load i64, i64* %5, align 8
%8 = mul i64 %.reload, 8
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = add i32 %storemerge13.reload, 1
%14 = sext i32 %13 to i64
%15 = icmp sgt i64 %6, %14
store i64 %14, i64* %.reg2mem
store i32 %13, i32* %storemerge13.reg2mem
br i1 %15, label LBL_2, label LBL_3
LBL_3:
%16 = inttoptr i64 %.pre to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_4
LBL_4:
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %.reg2mem4
store i32 0, i32* %storemerge2.reg2mem
br label LBL_5
LBL_5:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload5 = load i64, i64* %.reg2mem4
%21 = load i64, i64* %20, align 8
%22 = mul i64 %.reload5, 8
%23 = add i64 %21, %22
%24 = call i64 @FUNC(i64 %23)
%25 = add i32 %storemerge2.reload, 1
%26 = load i32, i32* %16, align 4
%27 = zext i32 %26 to i64
%28 = sext i32 %25 to i64
%29 = icmp slt i64 %28, %27
store i64 %28, i64* %.reg2mem4
store i32 %25, i32* %storemerge2.reg2mem
br i1 %29, label LBL_5, label LBL_6
LBL_6:
ret i64 0
uselistorder i32* %16, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem4, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 0, 2, 1, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | eir_has_data_type_4209 | eir_has_data_type | define i64 @FUNC(i32* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32*
%sv_1.04.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = add i64 %arg2, -1
store i64 0, i64* %sv_1.04.reg2mem
store i32* %arg1, i32** %sv_0.03.reg2mem
br label LBL_2
LBL_2:
%sv_0.03.reload = load i32*, i32** %sv_0.03.reg2mem
%2 = bitcast i32* %sv_0.03.reload to i8*
%3 = load i8, i8* %2, align 1
%4 = icmp eq i8 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_6, label LBL_3
LBL_3:
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%5 = zext i8 %3 to i64
%6 = add nuw nsw i64 %5, 1
%7 = add i64 %6, %sv_1.04.reload
%8 = icmp ugt i64 %7, %arg2
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_6, label LBL_4
LBL_4:
%9 = ptrtoint i32* %sv_0.03.reload to i64
%10 = add i64 %9, 1
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, %arg3
%14 = icmp eq i1 %13, false
store i64 1, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_6
LBL_5:
%15 = add i64 %6, %9
%16 = inttoptr i64 %15 to i32*
%17 = icmp ult i64 %7, %1
store i64 %7, i64* %sv_1.04.reg2mem
store i32* %16, i32** %sv_0.03.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_2, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_1.04.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3, 5 }
uselistorder label LBL_6, { 3, 0, 1, 2, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | remap_cell_to_cache_dirty_18048 | remap_cell_to_cache_dirty | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = load i64, i64* %0
%sv_0 = alloca i8, align 1
%sv_1 = alloca i64, align 8
%4 = trunc i64 %arg4 to i32
%5 = trunc i64 %arg5 to i8
store i64 %2, i64* %sv_1, align 8
%6 = bitcast i8* %sv_0 to i64*
%7 = call i64 @FUNC(i64* nonnull %6)
%8 = call i64 @FUNC(i64* nonnull %6)
store i8 0, i8* %sv_0, align 1
%9 = call i64 @FUNC(i64 %2, i64 %3)
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64 4198853, i64* nonnull %sv_1, i64 %1)
%14 = add i64 %2, 4
%15 = call i64 @FUNC(i64 %14, i64* nonnull %6)
%16 = call i64 @FUNC(i64 %2, i64 %3)
%17 = call i64 @FUNC(i64 %2, i64 %3, i32 %4)
%18 = icmp eq i8 %5, 0
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = call i64 @FUNC(i64 %2, i64 %3)
br label LBL_3
LBL_2:
%20 = call i64 @FUNC(i64 %2, i64 %3)
br label LBL_3
LBL_3:
%sext4 = mul i64 %arg4, 4294967296
%21 = ashr exact i64 %sext4, 32
%22 = load i8, i8* %sv_0, align 1
%23 = icmp eq i8 %22, 0
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = and i64 %arg3, 4294967295
%25 = trunc i64 %21 to i32
%26 = call i64 @FUNC(i64 %2, i64 %24, i32 %25)
%27 = call i64 @FUNC(i64 %2, i64 %24)
%28 = and i64 %27, 4294967295
%29 = call i64 @FUNC(i64 %2, i64 %28)
br label LBL_5
LBL_5:
%30 = call i64 @FUNC(i64* nonnull %6)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 %30, i64* %.lcssa.reg2mem
br i1 %32, label LBL_6, label LBL_8
LBL_6:
%33 = trunc i64 %21 to i32
store i64 %30, i64* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%34 = call i64 @FUNC(i64 %2, i64 %.reload, i32 %33)
%35 = call i64 @FUNC(i64 %2, i64 %.reload)
%36 = call i64 @FUNC(i64* nonnull %6)
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
store i64 %36, i64* %.reg2mem
store i64 %36, i64* %.lcssa.reg2mem
br i1 %38, label LBL_7, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %30, { 1, 0, 2 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %6, { 1, 0, 2, 3, 4 }
uselistorder i8* %sv_0, { 1, 0, 2 }
uselistorder i64 %2, { 4, 3, 2, 1, 0, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64*)* @bio_list_pop, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64)* @issue, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @remap_to_cache, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64*)* @bio_list_init, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | dns_parse_callback_11436 | dns_parse_callback | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdx = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = trunc i64 %arg2 to i32
%sext3 = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext3, 32
%4 = icmp eq i32 %2, 28
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = icmp sgt i32 %2, 28
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_10, label LBL_2
LBL_2:
store i64 0, i64* %rax.0.reg2mem
switch i32 %2, label LBL_10 [
i32 1, label LBL_3
i32 5, label LBL_7
]
LBL_3:
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, 4
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_10
LBL_4:
%8 = add i64 %1, 240
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = sext i32 %10 to i64
%12 = mul nsw i64 %11, 24
%13 = add i64 %12, %1
%14 = inttoptr i64 %13 to i32*
store i32 2, i32* %14, align 4
%15 = load i32, i32* %9, align 4
%16 = sext i32 %15 to i64
%17 = mul nsw i64 %16, 24
%18 = add i64 %1, 4
%19 = add i64 %18, %17
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = load i32, i32* %9, align 4
%22 = add i32 %21, 1
store i32 %22, i32* %9, align 4
%23 = sext i32 %21 to i64
%24 = mul nsw i64 %23, 24
%25 = add i64 %1, 8
%26 = add i64 %25, %24
%27 = bitcast i64* %rdx to i32*
%28 = load i32, i32* %27, align 8
%29 = inttoptr i64 %26 to i32*
store i32 %28, i32* %29, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%30 = trunc i64 %3 to i32
%31 = icmp eq i32 %30, 16
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %31, label LBL_6, label LBL_10
LBL_6:
%32 = add i64 %1, 240
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = sext i32 %34 to i64
%36 = mul nsw i64 %35, 24
%37 = add i64 %36, %1
%38 = inttoptr i64 %37 to i32*
store i32 10, i32* %38, align 4
%39 = load i32, i32* %33, align 4
%40 = sext i32 %39 to i64
%41 = mul nsw i64 %40, 24
%42 = add i64 %1, 4
%43 = add i64 %42, %41
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
%45 = load i32, i32* %33, align 4
%46 = add i32 %45, 1
store i32 %46, i32* %33, align 4
%47 = sext i32 %45 to i64
%48 = mul nsw i64 %47, 24
%49 = add i64 %48, %1
%50 = add i64 %49, 8
%51 = add i64 %0, 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = inttoptr i64 %50 to i64*
store i64 %53, i64* %54, align 8
%55 = add i64 %49, 16
%56 = inttoptr i64 %55 to i64*
store i64 %53, i64* %56, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
%57 = ptrtoint i64* %arg5 to i64
%58 = add i64 %57, 512
%59 = call i64 @FUNC(i64 %57, i64 %58, i64 %0, i64* nonnull %sv_0, i64 256)
%60 = trunc i64 %59 to i32
%61 = icmp slt i32 %60, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_10, label LBL_8
LBL_8:
%62 = call i64 @FUNC(i64* nonnull %sv_0)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_10, label LBL_9
LBL_9:
%65 = add i64 %1, 244
%66 = inttoptr i64 %65 to i8*
%67 = bitcast i64* %sv_0 to i8*
%68 = call i8* @strcpy(i8* %66, i8* nonnull %67)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %57, { 1, 0 }
uselistorder i64 %53, { 1, 0 }
uselistorder i32* %33, { 1, 0, 2, 3 }
uselistorder i32* %9, { 1, 0, 2, 3 }
uselistorder i64 %3, { 1, 0 }
uselistorder i32 %2, { 1, 0, 2 }
uselistorder i64 %1, { 6, 0, 3, 1, 8, 4, 5, 2, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 6, 3, 8, 2, 9, 7, 1 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i32 28, { 1, 0 }
uselistorder label LBL_10, { 3, 4, 5, 2, 7, 1, 8, 6, 0 }
} | 1 |
BinRealVul | xen_sysdev_class_init_765 | xen_sysdev_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198669, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
store i32 1, i32* %2, align 4
%3 = add i64 %0, 12
%4 = inttoptr i64 %3 to i32*
store i32 1, i32* %4, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | cmsIT8SetPropertyDbl_9633 | cmsIT8SetPropertyDbl | define i64 @FUNC(i64 %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = load i128, i128* %0
%2 = ptrtoint i8* %arg2 to i64
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC(i128 %1)
%4 = call i128 @FUNC(i64 %3)
%5 = bitcast i64* %sv_0 to i8*
%6 = inttoptr i64 %arg1 to i8*
%7 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %5, i32 1023, i8* %6)
%8 = call i64 @FUNC(i64 %arg1)
%9 = call i64 @FUNC(i64 %arg1, i64 %8, i64 %2, i64 0, i64* nonnull %sv_0, i64 0)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
%12 = zext i1 %11 to i64
ret i64 %12
} | 0 |
BinRealVul | vips_malloc_13781 | vips_malloc | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg2)
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 4198742, i64 %0)
%4 = add i64 %2, %arg2
store i64 %4, i64* %arg1, align 8
br label LBL_2
LBL_2:
ret i64 %0
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 0 |
BinRealVul | mfhd_Write_8783 | mfhd_Write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %4)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = and i64 %6, 4294967295
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %4, i64 %10)
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* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | lka_expand_format_4759 | lka_expand_format | define i64 @FUNC(i8* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.in.reg2mem = alloca i64
%sv_2.0.in.reg2mem = alloca i64
%sv_2.110.reg2mem = alloca i8*
%sv_1.111.reg2mem = alloca i8*
%sv_3.014.reg2mem = alloca i64
%.reg2mem = alloca i8
%sv_3.0.ph.reg2mem = alloca i64
%sv_1.1.ph.reg2mem = alloca i8*
%sv_2.1.ph.reg2mem = alloca i8*
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%0 = icmp ult i64 %arg2, 1024
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%2 = ptrtoint i64* %arg4 to i64
%3 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 1024)
%4 = bitcast i64* %sv_6 to i8*
%5 = call i32 @strncmp(i8* %arg1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i32 2)
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i8* %arg1, i8** %sv_2.1.ph.reg2mem
store i8* %4, i8** %sv_1.1.ph.reg2mem
store i64 0, i64* %sv_3.0.ph.reg2mem
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %4, i32 1024, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64* %arg4)
%9 = icmp ult i32 %8, 1024
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_5:
%11 = sext i32 %8 to i64
%12 = ptrtoint i64* %sv_6 to i64
%13 = add i64 %11, %12
%14 = inttoptr i64 %13 to i8*
%15 = ptrtoint i8* %arg1 to i64
%16 = add i64 %15, 2
%17 = inttoptr i64 %16 to i8*
store i8* %17, i8** %sv_2.1.ph.reg2mem
store i8* %14, i8** %sv_1.1.ph.reg2mem
store i64 %11, i64* %sv_3.0.ph.reg2mem
br label LBL_6
LBL_6:
%sv_3.0.ph.reload = load i64, i64* %sv_3.0.ph.reg2mem
%sv_2.1.ph.reload = load i8*, i8** %sv_2.1.ph.reg2mem
%18 = load i8, i8* %sv_2.1.ph.reload, align 1
%19 = icmp ne i8 %18, 0
%20 = icmp ult i64 %sv_3.0.ph.reload, 1024
%or.cond9 = icmp eq i1 %20, %19
store i64 %sv_3.0.ph.reload, i64* %rax.0.reg2mem
br i1 %or.cond9, label LBL_7, label LBL_20
LBL_7:
%21 = ptrtoint i64* %arg3 to i64
%sv_1.1.ph.reload = load i8*, i8** %sv_1.1.ph.reg2mem
%22 = ptrtoint i64* %sv_6 to i64
%23 = bitcast i64* %sv_5 to i8*
%24 = add i64 %22, 1024
store i8 %18, i8* %.reg2mem
store i64 %sv_3.0.ph.reload, i64* %sv_3.014.reg2mem
store i8* %sv_1.1.ph.reload, i8** %sv_1.111.reg2mem
store i8* %sv_2.1.ph.reload, i8** %sv_2.110.reg2mem
br label LBL_8
LBL_8:
%sv_2.110.reload = load i8*, i8** %sv_2.110.reg2mem
%sv_1.111.reload = load i8*, i8** %sv_1.111.reg2mem
%sv_3.014.reload = load i64, i64* %sv_3.014.reg2mem
%.reload = load i8, i8* %.reg2mem
%25 = icmp eq i8 %.reload, 37
%26 = icmp eq i1 %25, false
%.pre = ptrtoint i8* %sv_2.110.reload to i64
%.pre20 = add i64 %.pre, 1
br i1 %26, label LBL_12, label LBL_9
LBL_9:
%27 = inttoptr i64 %.pre20 to i8*
%28 = load i8, i8* %27, align 1
%29 = icmp eq i8 %28, 37
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_11, label LBL_10
LBL_10:
%31 = ptrtoint i8* %sv_1.111.reload to i64
%32 = add i64 %31, 1
store i8 %.reload, i8* %sv_1.111.reload, align 1
%33 = add i64 %.pre, 2
store i64 %33, i64* %sv_2.0.in.reg2mem
store i64 %32, i64* %sv_1.0.in.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_11:
%34 = icmp eq i8 %28, 123
br i1 %34, label LBL_13, label LBL_12
LBL_12:
%35 = ptrtoint i8* %sv_1.111.reload to i64
%36 = add i64 %35, 1
store i8 %.reload, i8* %sv_1.111.reload, align 1
store i64 %.pre20, i64* %sv_2.0.in.reg2mem
store i64 %36, i64* %sv_1.0.in.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_13:
%37 = call i8* @strchr(i8* %27, i32 125)
%38 = icmp eq i8* %37, null
%39 = icmp eq i1 %38, false
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_14, label LBL_20
LBL_14:
%40 = ptrtoint i8* %37 to i64
%41 = sub i64 0, %.pre
%42 = sub i64 %41, 1
%43 = add i64 %40, %42
%44 = icmp ult i64 %43, 256
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_15, label LBL_20
LBL_15:
%45 = xor i64 %.pre, 4294967295
%46 = add i64 %45, %40
%47 = add i64 %.pre, 2
%48 = inttoptr i64 %47 to i64*
%49 = trunc i64 %46 to i32
%50 = call i64* @memcpy(i64* nonnull %sv_5, i64* %48, i32 %49)
%51 = call i8* @strchr(i8* nonnull %23, i32 125)
%52 = icmp eq i8* %51, null
%53 = icmp eq i1 %52, false
store i64 0, i64* %rax.0.reg2mem
br i1 %53, label LBL_16, label LBL_20
LBL_16:
%54 = call i8* @strchr(i8* nonnull %23, i32 125)
store i8 0, i8* %54, align 1
%55 = call i64 @FUNC(i64* nonnull %sv_4, i64 1024, i64* nonnull %sv_5, i64 %21, i64 %2)
%56 = icmp eq i64 %55, 0
%57 = icmp eq i1 %56, false
store i64 0, i64* %rax.0.reg2mem
br i1 %57, label LBL_17, label LBL_20
LBL_17:
%58 = ptrtoint i8* %sv_1.111.reload to i64
%59 = sub i64 %24, %58
%sext7 = mul i64 %55, 4294967296
%60 = ashr exact i64 %sext7, 32
%61 = icmp ugt i64 %59, %60
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_18, label LBL_20
LBL_18:
%62 = trunc i64 %55 to i32
%63 = bitcast i8* %sv_1.111.reload to i64*
%64 = call i64* @memcpy(i64* %63, i64* nonnull %sv_4, i32 %62)
%65 = add i64 %40, 1
%66 = add i64 %60, %58
store i64 %65, i64* %sv_2.0.in.reg2mem
store i64 %66, i64* %sv_1.0.in.reg2mem
store i64 %55, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%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_2.0.in.reload = load i64, i64* %sv_2.0.in.reg2mem
%sv_1.0 = inttoptr i64 %sv_1.0.in.reload to i8*
%sv_2.0 = inttoptr i64 %sv_2.0.in.reload to i8*
%sext = mul i64 %sv_0.0.reload, 4294967296
%67 = ashr exact i64 %sext, 32
%68 = add i64 %67, %sv_3.014.reload
%69 = load i8, i8* %sv_2.0, align 1
%70 = icmp ne i8 %69, 0
%71 = icmp ult i64 %68, 1024
%or.cond = icmp eq i1 %70, %71
store i8 %69, i8* %.reg2mem
store i64 %68, i64* %sv_3.014.reg2mem
store i8* %sv_1.0, i8** %sv_1.111.reg2mem
store i8* %sv_2.0, i8** %sv_2.110.reg2mem
store i64 %68, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %58, { 1, 0 }
uselistorder i64 %55, { 0, 2, 1, 3 }
uselistorder i64 %40, { 2, 0, 1 }
uselistorder i8* %37, { 1, 0 }
uselistorder i64 %.pre, { 1, 2, 0, 3, 4 }
uselistorder i8 %.reload, { 2, 0, 1 }
uselistorder i8* %sv_1.111.reload, { 3, 4, 2, 5, 1, 0 }
uselistorder i64 %sv_3.0.ph.reload, { 1, 0, 2 }
uselistorder i8* %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %sv_6, { 3, 0, 1, 2 }
uselistorder i64* %sv_5, { 0, 2, 1 }
uselistorder i8** %sv_2.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_1.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.014.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_1.111.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_2.110.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.in.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_1.0.in.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1, 7, 8 }
uselistorder i64 32, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 2, 1, 0 }
uselistorder i64 1, { 4, 2, 1, 5, 0, 6, 3 }
uselistorder i8 0, { 3, 2, 0, 1 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i8* %arg1, { 1, 0, 2 }
uselistorder label LBL_20, { 5, 4, 3, 2, 1, 0, 6, 7 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | mov_read_chpl_14814 | mov_read_chpl | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = add i64 %arg3, -5
%1 = icmp slt i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_7
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = call i64 @FUNC(i64 %3)
%7 = icmp eq i32 %5, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %3)
br label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %3)
%10 = trunc i64 %9 to i32
%11 = icmp sgt i32 %10, 0
%12 = icmp sgt i64 %0, 8
%or.cond2 = icmp eq i1 %12, %11
br i1 %or.cond2, label LBL_4, label LBL_7
LBL_4:
%13 = ptrtoint i64* %sv_2 to i64
%14 = add i64 %13, -304
store i32 0, i32* %storemerge4.reg2mem
store i64 %0, i64* %sv_0.03.reg2mem
br label LBL_5
LBL_5:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%15 = call i64 @FUNC(i64 %3)
%16 = call i64 @FUNC(i64 %3)
%17 = mul i64 %16, 4294967296
%sext = add i64 %17, 38654705664
%18 = ashr exact i64 %sext, 32
%19 = sub i64 %sv_0.03.reload, %18
%20 = icmp slt i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_7
LBL_6:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%22 = trunc i64 %16 to i32
%23 = call i64 @FUNC(i64 %3, i64* nonnull %sv_1, i32 %22)
%24 = ashr exact i64 %17, 32
%25 = add i64 %14, %24
%26 = inttoptr i64 %25 to i8*
store i8 0, i8* %26, align 1
%27 = call i64 @FUNC(i64 %3, i32 %storemerge4.reload, i64 42949672960000001, i64 %15, i64 0, i64* nonnull %sv_1)
%28 = add nuw nsw i32 %storemerge4.reload, 1
%29 = icmp slt i32 %28, %10
%30 = icmp sgt i64 %19, 8
%or.cond = icmp eq i1 %29, %30
store i32 %28, i32* %storemerge4.reg2mem
store i64 %19, i64* %sv_0.03.reg2mem
br i1 %or.cond, label LBL_5, label LBL_7
LBL_7:
ret i64 0
uselistorder i32 %storemerge4.reload, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i64 %3, { 2, 1, 4, 3, 5, 0, 7, 6 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64)* @avio_r8, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | truespeech_apply_twopoint_filter_16879 | truespeech_apply_twopoint_filter | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i16*
%indvars.iv.reg2mem = alloca i64
%indvars.iv12.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 30
%2 = add i64 %0, 420
%3 = add i64 %2, %1
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 127
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = ptrtoint i64* %sv_3 to i64
%9 = add i64 %8, -464
store i64 0, i64* %indvars.iv12.reg2mem
br label LBL_3
LBL_2:
%10 = add i64 %0, 292
%11 = inttoptr i64 %10 to i64*
%12 = call i64* @memset(i64* %11, i32 0, i32 120)
%13 = ptrtoint i64* %12 to i64
store i64 %13, i64* %rax.1.reg2mem
br label LBL_6
LBL_3:
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%14 = mul i64 %indvars.iv12.reload, 2
%15 = add i64 %14, %0
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = add i64 %9, %14
%19 = inttoptr i64 %18 to i16*
store i16 %17, i16* %19, align 2
%indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1
%exitcond14 = icmp eq i64 %indvars.iv.next13, 146
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
br i1 %exitcond14, label LBL_4, label LBL_3
LBL_4:
%20 = sdiv i32 %5, 25
%21 = trunc i64 %arg2 to i32
%22 = ashr i32 %21, 1
%narrow = add nsw i32 %22, 100
%23 = sext i32 %narrow to i64
%24 = mul i64 %23, 4
%25 = add i64 %0, 12
%26 = add i64 %25, %24
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add nsw i32 %20, 18
%30 = add i32 %29, %28
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 2
%33 = ptrtoint i64* %sv_2 to i64
%34 = add i64 %33, 290
%35 = sub i64 %34, %32
%36 = inttoptr i64 %35 to i16*
%37 = ptrtoint i64* %sv_1 to i64
%38 = mul i32 %20, -25
%39 = add i32 %38, %5
%40 = mul i32 %39, 2
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 2
%43 = add i64 %42, ptrtoint (i16** @gv_0 to i64)
%44 = inttoptr i64 %43 to i16*
%45 = add i64 %42, add (i64 ptrtoint (i16** @gv_0 to i64), i64 2)
%46 = inttoptr i64 %45 to i16*
%47 = add i64 %0, 292
store i64 0, i64* %indvars.iv.reg2mem
store i16* %36, i16** %sv_0.09.reg2mem
br label LBL_5
LBL_5:
%sv_0.09.reload = load i16*, i16** %sv_0.09.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%48 = load i16, i16* %sv_0.09.reload, align 2
%49 = load i16, i16* %44, align 4
%50 = sext i16 %48 to i32
%51 = sext i16 %49 to i32
%52 = mul nsw i32 %51, %50
%53 = ptrtoint i16* %sv_0.09.reload to i64
%54 = add i64 %53, 2
%55 = inttoptr i64 %54 to i16*
%56 = load i16, i16* %55, align 2
%57 = load i16, i16* %46, align 2
%58 = sext i16 %57 to i32
%59 = sext i16 %56 to i32
%60 = mul nsw i32 %58, %59
%61 = add i32 %52, 8192
%62 = add i32 %61, %60
%63 = udiv i32 %62, 16384
%64 = trunc i32 %63 to i16
%65 = mul i64 %indvars.iv.reload, 2
%66 = add i64 %47, %65
%67 = inttoptr i64 %66 to i16*
store i16 %64, i16* %67, align 2
%68 = add i64 %65, %37
%69 = inttoptr i64 %68 to i16*
store i16 %64, i16* %69, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 60
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i16* %55, i16** %sv_0.09.reg2mem
store i64 %68, i64* %rax.1.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %65, { 1, 0 }
uselistorder i16* %sv_0.09.reload, { 1, 0 }
uselistorder i64 %42, { 1, 0 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 4, 0, 3, 2 }
uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_0.09.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 2, { 0, 5, 4, 1, 2, 3 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | alac_decode_init_2418 | alac_decode_init | define i64 @FUNC(i32* %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 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
store i64 %4, i64* %8, align 8
%9 = load i32, i32* %arg1, align 4
%10 = add i64 %7, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = load i64, i64* %8, align 8
%13 = add i64 %12, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 32
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 32, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%18 = call i64 @FUNC(i64 %7)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, 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, 2, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | _prolog_error_13552 | _prolog_error | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.pre-phi3.reg2mem = alloca i8*
%.pre-phi.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%3 = icmp eq i64* %arg1, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_8, label LBL_3
LBL_2:
%9 = bitcast i64* %sv_2 to i8*
%10 = bitcast i64* %arg1 to i8*
%11 = call i8* @strncpy(i8* nonnull %9, i8* %10, i32 256)
store i8* %9, i8** %.pre-phi.reg2mem
br label LBL_4
LBL_3:
%12 = bitcast i64* %sv_2 to i8*
%13 = inttoptr i64 %7 to i8*
%14 = call i8* @strncpy(i8* nonnull %12, i8* %13, i32 256)
store i8* %12, i8** %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
%15 = call i8* @strchr(i8* nonnull %.pre-phi.reload, i32 37)
%16 = icmp eq i8* %15, null
store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem
br i1 %16, label LBL_9, label LBL_5
LBL_5:
%17 = ptrtoint i8* %15 to i64
%18 = add i64 %17, 1
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 106
%22 = icmp eq i1 %21, false
store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem
br i1 %22, label LBL_9, label LBL_6
LBL_6:
%23 = call i8* @strchr(i8* %19, i32 37)
%24 = icmp eq i8* %23, null
%25 = icmp eq i1 %24, false
store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem
br i1 %25, label LBL_9, label LBL_7
LBL_7:
store i8 117, i8* %19, align 1
%26 = bitcast i64* %sv_1 to i8*
%27 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %26, i32 256, i8* nonnull %.pre-phi.reload)
%28 = call i8* @strncpy(i8* nonnull %.pre-phi.reload, i8* nonnull %26, i32 256)
store i8* %.pre-phi.reload, i8** %.pre-phi3.reg2mem
br label LBL_9
LBL_8:
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = bitcast i64* %sv_2 to i8*
%33 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %32, i32 256, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i32 %31)
store i8* %32, i8** %.pre-phi3.reg2mem
br label LBL_9
LBL_9:
%.pre-phi3.reload = load i8*, i8** %.pre-phi3.reg2mem
%34 = load i8, i8* %.pre-phi3.reload, align 8
%35 = icmp eq i8 %34, 47
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%37 = bitcast i64* %sv_0 to i8*
%38 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %37, i32 4096, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_2)
br label LBL_14
LBL_11:
%39 = add i64 %2, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = bitcast i64* %sv_0 to i8*
br i1 %42, label LBL_13, label LBL_12
LBL_12:
%44 = inttoptr i64 %41 to i8*
%45 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %43, i32 4096, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i8* %44, i64* nonnull %sv_2)
br label LBL_14
LBL_13:
%46 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %43, i32 4096, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_2)
br label LBL_14
LBL_14:
%47 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, -1
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_16, label LBL_15
LBL_15:
%51 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_0)
store i64 %51, i64* %storemerge.reg2mem
br label LBL_19
LBL_16:
%52 = udiv i64 %arg2, 256
%53 = urem i64 %52, 256
%54 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %.pre-phi3.reload, i32 256, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_5, i64 0, i64 0), i64 %53)
%55 = call i32 @strlen(i8* nonnull %.pre-phi3.reload)
%56 = sext i32 %55 to i64
%57 = and i64 %47, 4294967295
%58 = call i64 @FUNC(i64 %57, i64* nonnull %sv_2, i64 %56)
%59 = add i64 %2, 32
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i64 %2, 28
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = call i32 @fchown(i32 %48, i32 %64, i32 %61)
%66 = icmp eq i32 %65, -1
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_18, label LBL_17
LBL_17:
%68 = load i32, i32* %60, align 4
%69 = load i32, i32* %63, align 4
%70 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %.pre-phi3.reload, i32 256, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_6, i64 0, i64 0), i32 %69, i32 %68, i64 %1)
br label LBL_18
LBL_18:
%71 = call i32 @close(i32 %48)
%72 = sext i32 %71 to i64
store i64 %72, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %43, { 1, 0 }
uselistorder i8* %15, { 1, 0 }
uselistorder i8* %.pre-phi.reload, { 0, 4, 5, 1, 2, 3, 6 }
uselistorder i64* %sv_2, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder i64 %2, { 3, 2, 4, 5, 1, 0 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 256, { 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 4, 5, 3, 6, 2, 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i8* (i8*, i8*, i32)* @strncpy, { 2, 1, 0 }
uselistorder i32 256, { 2, 3, 0, 4, 5, 1, 6 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_9, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | monitor_puts_14282 | monitor_puts | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 1024
%2 = inttoptr i64 %1 to i64*
store i8* %arg2, i8** %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%3 = load i64, i64* %2, align 8
%4 = icmp ult i64 %3, 1023
br i1 %4, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_3:
%5 = load i8, i8* %sv_0.0.reload, align 1
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_9, label LBL_4
LBL_4:
%7 = icmp eq i8 %5, 10
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%9 = load i64, i64* %2, align 8
%10 = add i64 %9, 1
store i64 %10, i64* %2, align 8
%11 = add i64 %9, %0
%12 = inttoptr i64 %11 to i8*
store i8 13, i8* %12, align 1
br label LBL_6
LBL_6:
%13 = load i64, i64* %2, align 8
%14 = add i64 %13, 1
store i64 %14, i64* %2, align 8
%15 = add i64 %13, %0
%16 = inttoptr i64 %15 to i8*
store i8 %5, i8* %16, align 1
%17 = load i64, i64* %2, align 8
%18 = icmp ult i64 %17, 1023
%or.cond = icmp eq i1 %8, %18
br i1 %or.cond, label LBL_1.backedge, label LBL_7
LBL_7:
%19 = call i64 @FUNC(i64 %0)
br label LBL_1.backedge
LBL_8:
%20 = ptrtoint i8* %sv_0.0.reload to i64
%21 = add i64 %20, 1
%22 = inttoptr i64 %21 to i8*
store i8* %22, i8** %sv_0.0.reg2mem
br label LBL_1
LBL_9:
ret i64 0
uselistorder i8* %sv_0.0.reload, { 1, 0 }
uselistorder i64* %2, { 2, 4, 3, 1, 0, 5 }
uselistorder i64 %0, { 2, 0, 1, 3 }
uselistorder i8** %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | attr_is_equal_ex_7217 | attr_is_equal_ex | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = icmp eq i64 %arg1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_6, label LBL_2
LBL_2:
%2 = inttoptr i64 %arg1 to i8*
%3 = inttoptr i64 %arg2 to i8*
%4 = call i32 @strcmp(i8* %2, i8* %3)
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_6, label LBL_3
LBL_3:
%7 = icmp eq i64 %arg3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %7, label LBL_6, label LBL_4
LBL_4:
%8 = call i64 @FUNC(i64 %arg1)
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_5
LBL_5:
%10 = inttoptr i64 %8 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i8*
%13 = inttoptr i64 %arg3 to i8*
%14 = call i32 @strcmp(i8* %12, i8* %13)
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i64
store i64 %16, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64 %arg1, { 2, 1, 0 }
uselistorder label LBL_6, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | add_probe_11445 | add_probe | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i8* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = load i32, i32* @gv_0, align 4
%3 = urem i32 %2, 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%.pre = add i64 %1, 16
%.pre2 = inttoptr i64 %.pre to i32*
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = load i32, i32* %.pre2, align 4
%7 = and i32 %6, 4
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %0)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 %0)
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i64*
store i64 %0, i64* %12, align 8
%13 = load i32, i32* %.pre2, align 4
%14 = or i32 %13, 8
store i32 %14, i32* %.pre2, align 4
%15 = call i64 @FUNC(i64* nonnull @gv_3, i64 %1)
store i32 ptrtoint (i32* @gv_4 to i32), i32* bitcast (i64* @gv_5 to i32*), align 8
%16 = inttoptr i64 %1 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i8*
%19 = call i32 @strncmp(i8* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i32 7)
%20 = sext 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_5, label LBL_4
LBL_4:
store i32 1, i32* bitcast (i64* @gv_7 to i32*), align 8
store i64 %20, 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 %1, { 2, 1, 3, 0 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i8*, i64)* @DBG, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rocker_msix_init_2577 | rocker_msix_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = trunc i64 %1 to i32
%5 = call i64 @FUNC(i64 %2, i32 %4, i64 %3, i64 0, i64 0, i64 %3)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 0)
%9 = and i64 %5, 4294967295
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %2, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = call i64 @FUNC(i64 %2, i64 %3, i64 %3)
%16 = and i64 %11, 4294967295
store i64 %16, 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 %3, { 0, 1, 3, 2 }
uselistorder i64 %2, { 0, 1, 3, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | git_pkt_parse_line_11280 | git_pkt_parse_line | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%arg4.off = add i64 %arg4, -1
%0 = icmp ult i64 %arg4.off, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %0, label LBL_34, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %arg2)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_6, label LBL_2
LBL_2:
%6 = icmp ult i64 %arg4, 4
br i1 %6, label LBL_5, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = call i64 @FUNC()
store i64 %arg2, i64* %arg3, align 8
%12 = call i64 @FUNC(i64 %1)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_34
LBL_5:
%13 = and i64 %2, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_34
LBL_6:
%14 = icmp eq i64 %arg4, 0
br i1 %14, label LBL_8, label LBL_7
LBL_7:
%sext = mul i64 %2, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = icmp ugt i64 %15, %arg4
%17 = icmp eq i1 %16, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_34
LBL_8:
%18 = add i64 %arg2, 4
%19 = icmp eq i32 %3, 4
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_10, label LBL_9
LBL_9:
store i64 0, i64* %arg1, align 8
store i64 %18, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_34
LBL_10:
%21 = icmp eq i32 %3, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_12, label LBL_11
LBL_11:
store i64 %18, i64* %arg3, align 8
%23 = call i64 @FUNC(i64 %1)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_34
LBL_12:
%24 = add i32 %3, -4
%25 = inttoptr i64 %18 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 68
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_14, label LBL_13
LBL_13:
%29 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %29, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_14:
%30 = icmp eq i8 %26, 80
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_16, label LBL_15
LBL_15:
%32 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %32, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_16:
%33 = icmp eq i8 %26, 69
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_18, label LBL_17
LBL_17:
%35 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %35, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_18:
%36 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, 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_20, label LBL_19
LBL_19:
%40 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %40, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_20:
%41 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_22, label LBL_21
LBL_21:
%45 = call i64 @FUNC(i64 %1)
store i64 %45, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_22:
%46 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_24, label LBL_23
LBL_23:
%50 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %50, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_24:
%51 = load i8, i8* %25, align 1
%52 = icmp eq i8 %51, 35
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_26, label LBL_25
LBL_25:
%54 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %54, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_26:
%55 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, 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_28, label LBL_27
LBL_27:
%59 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %59, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_28:
%60 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0))
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_30, label LBL_29
LBL_29:
%64 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %64, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_30:
%65 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0))
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
%68 = icmp eq i1 %67, false
br i1 %68, label LBL_32, label LBL_31
LBL_31:
%69 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %69, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_32:
%70 = call i64 @FUNC(i64 %1, i64 %18, i32 %24)
store i64 %70, i64* %sv_0.0.in.reg2mem
br label LBL_33
LBL_33:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%71 = sext i32 %24 to i64
%72 = add i64 %18, %71
store i64 %72, i64* %arg3, align 8
%73 = and i64 %sv_0.0.in.reload, 4294967295
store i64 %73, i64* %rax.0.reg2mem
br label LBL_34
LBL_34:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %24, { 5, 6, 7, 4, 3, 2, 1, 0, 10, 9, 8 }
uselistorder i64 %18, { 0, 6, 7, 8, 5, 9, 4, 10, 11, 3, 12, 13, 2, 15, 16, 17, 18, 14, 19, 1 }
uselistorder i32 %3, { 2, 1, 0, 3 }
uselistorder i64 %1, { 11, 12, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 1, 4, 3, 2 }
uselistorder i64 (i64, i8*)* @git__prefixcmp, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 %arg4, { 0, 2, 3, 1 }
uselistorder i64 %arg2, { 2, 0, 1, 3 }
uselistorder label LBL_34, { 2, 3, 4, 0, 5, 6, 1 }
} | 1 |
BinRealVul | aes_ctr_cleanup_5704 | aes_ctr_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 1)
call void @free(i64* nonnull %arg1)
store i64 0, i64* %arg1, align 8
store i64 %1, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %arg1, { 0, 1, 3, 2 }
} | 0 |
BinRealVul | openpic_load_14609 | openpic_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv7.reg2mem = alloca i64
%indvars.iv9.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 1
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_7
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = add i64 %2, 4
%6 = call i64 @FUNC(i64 %3, i64 %5)
%7 = add i64 %2, 8
%8 = call i64 @FUNC(i64 %3, i64 %7)
%9 = add i64 %2, 12
%10 = call i64 @FUNC(i64 %3, i64 %9)
%11 = add i64 %2, 16
%12 = call i64 @FUNC(i64 %3, i64 %11)
%13 = add i64 %2, 20
%14 = call i64 @FUNC(i64 %3, i64 %13)
%15 = inttoptr i64 %13 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
store i64 0, i64* %indvars.iv9.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%indvars.iv9.reload = load i64, i64* %indvars.iv9.reg2mem
%18 = mul i64 %indvars.iv9.reload, 16
%19 = add i64 %18, %11
%20 = add i64 %19, 8
%21 = call i64 @FUNC(i64 %3, i64 %20)
%22 = add i64 %19, 12
%23 = call i64 @FUNC(i64 %3, i64 %22)
%24 = add i64 %19, 16
%25 = call i64 @FUNC(i64 %3, i64 %24)
%26 = add i64 %19, 20
%27 = call i64 @FUNC(i64 %3, i64 %26, i64 4)
%indvars.iv.next10 = add nuw nsw i64 %indvars.iv9.reload, 1
%28 = load i32, i32* %15, align 4
%29 = zext i32 %28 to i64
%30 = icmp ult i64 %indvars.iv.next10, %29
store i64 %indvars.iv.next10, i64* %indvars.iv9.reg2mem
br i1 %30, label LBL_2, label LBL_3
LBL_3:
%31 = add i64 %2, 4112
store i64 0, i64* %indvars.iv7.reg2mem
br label LBL_4
LBL_4:
%indvars.iv7.reload = load i64, i64* %indvars.iv7.reg2mem
%32 = mul i64 %indvars.iv7.reload, 8
%33 = add i64 %31, %32
%34 = add i64 %33, 8
%35 = call i64 @FUNC(i64 %3, i64 %34)
%36 = add i64 %33, 12
%37 = call i64 @FUNC(i64 %3, i64 %36)
%indvars.iv.next8 = add nuw nsw i64 %indvars.iv7.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next8, 16
store i64 %indvars.iv.next8, i64* %indvars.iv7.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
%38 = add i64 %2, 9368
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp eq i32 %40, 0
store i64 0, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %41, label LBL_7, label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%42 = call i64 @FUNC(i64 %3)
%43 = trunc i64 %42 to i32
%44 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i32 %43)
%45 = call i64 @FUNC(i64 %3)
%46 = trunc i64 %45 to i32
%47 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload, i32 %46)
%48 = mul nuw nsw i64 %indvars.iv.reload, 20
%49 = add i64 %48, %2
%50 = add i64 %49, 4248
%51 = call i64 @FUNC(i64 %3, i64 %50)
%52 = add i64 %49, 4252
%53 = call i64 @FUNC(i64 %3, i64 %52)
%54 = add i64 %49, 4256
%55 = call i64 @FUNC(i64 %3, i64 %54)
%56 = add i64 %49, 4260
%57 = call i64 @FUNC(i64 %3, i64 %56)
%58 = add i64 %49, 4264
%59 = call i64 @FUNC(i64 %3, i64 %58)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%60 = load i32, i32* %39, align 4
%61 = zext i32 %60 to i64
%62 = icmp ult i64 %indvars.iv.next, %61
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %62, label LBL_6, label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1, 3 }
uselistorder i32* %39, { 1, 0 }
uselistorder i32* %15, { 1, 0 }
uselistorder i64 %2, { 0, 2, 3, 4, 1, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %indvars.iv9.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv7.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @qemu_get_be32, { 1, 0 }
uselistorder i64 (i64, i64)* @openpic_load_IRQ_queue, { 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_sbe32s, { 2, 1, 0 }
uselistorder i64 16, { 1, 2, 0, 3 }
uselistorder i64 8, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64)* @qemu_get_be32s, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | apply_mdct_15512 | apply_mdct | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = bitcast i64* %rdi to i32*
%7 = add i64 %5, 48
%8 = add i64 %5, 24
%9 = add i64 %5, 40
%10 = inttoptr i64 %9 to i64*
%11 = add i64 %5, 16
%12 = inttoptr i64 %11 to i64*
%13 = add i64 %5, 8
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_4
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = mul nuw nsw i64 %indvars.iv.reload, 24
%15 = add i64 %7, %14
%16 = load i64, i64* %38, align 8
%17 = mul i64 %indvars.iv.reload, 2048
%18 = add i64 %16, %17
%19 = load i64, i64* %10, align 8
%20 = load i64, i64* %12, align 8
%21 = call i64 @FUNC(i64 %13, i64 %20, i64 %18, i64 %19, i64 512)
%22 = call i64 @FUNC(i64 %5)
%23 = trunc i64 %22 to i32
%24 = add i64 %15, %39
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = load i64, i64* %12, align 8
%27 = add i64 %40, %15
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %9, i64 %29, i64 %26)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%31 = add i32 %storemerge3.reload, 1
%32 = load i32, i32* %6, align 8
%33 = zext i32 %32 to i64
%34 = sext i32 %31 to i64
%35 = icmp slt i64 %34, %33
store i64 %34, i64* %.reg2mem
store i32 %31, i32* %storemerge3.reg2mem
store i64 %33, i64* %.lcssa.reg2mem
br i1 %35, label LBL_4, label LBL_5
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%36 = mul i64 %.reload, 8
%37 = add i64 %8, %36
%38 = inttoptr i64 %37 to i64*
%39 = mul i64 %.reload, 4
%40 = add nsw i64 %36, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %36, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %5, { 4, 5, 2, 3, 0, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | matroska_merge_packets_15312 | matroska_merge_packets | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = add i64 %arg2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, %2
%7 = call i64 @FUNC(i64 %arg1, i64 %6)
%8 = inttoptr i64 %arg1 to i64*
store i64 %7, i64* %8, align 8
%9 = load i64, i64* %4, align 8
%10 = load i64, i64* %1, align 8
%11 = add i64 %10, %arg1
%12 = inttoptr i64 %11 to i64*
%13 = inttoptr i64 %6 to i64*
%14 = trunc i64 %9 to i32
%15 = call i64* @memcpy(i64* %12, i64* %13, i32 %14)
%16 = load i64, i64* %1, align 8
%17 = load i64, i64* %4, align 8
%18 = add i64 %17, %16
store i64 %18, i64* %1, align 8
%19 = call i64 @FUNC(i64 %arg2)
%20 = call i64 @FUNC(i64 %arg2)
ret i64 %20
uselistorder i64 %arg2, { 1, 0, 2 }
} | 1 |
BinRealVul | stbi__shiftsigned_6694 | stbi__shiftsigned | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp ult i32 %arg3, 9
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_1, label LBL_6
LBL_1:
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = trunc i64 %arg2 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = sub i32 0, %2
%6 = urem i32 %5, 32
%7 = icmp eq i32 %6, 0
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_4, label %8
LBL_3:
%12 = urem i32 %2, 32
%13 = icmp eq i32 %12, 0
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label %14
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%18 = trunc i64 %sv_0.0.reload to i32
%19 = icmp ugt i32 %18, 255
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_5, label LBL_6
LBL_5:
%20 = sub i32 8, %arg3
%21 = urem i32 %20, 32
%22 = icmp eq i32 %21, 0
%23 = ashr i32 %18, %21
%24 = zext i32 %23 to i64
%sv_0.1 = select i1 %22, i64 %sv_0.0.reload, i64 %24
%25 = sext i32 %arg3 to i64
%26 = mul i64 %25, 4
%27 = add i64 %26, ptrtoint (i32** @gv_0 to i64)
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = trunc i64 %sv_0.1 to i32
%31 = mul i32 %29, %30
%32 = add i64 %26, ptrtoint (i32** @gv_1 to i64)
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = urem i32 %34, 32
%36 = ashr i32 %31, %35
%rdx.0 = zext i32 %36 to i64
store i64 %rdx.0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 1, 0 }
uselistorder i32 %21, { 1, 0 }
uselistorder i32 %18, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %1, { 3, 1, 2, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
uselistorder i32 1, { 1, 0 }
uselistorder i32 %arg3, { 1, 2, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
} | 0 |
BinRealVul | get_node_path_locked_10957 | get_node_path_locked | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.in.in.reg2mem = alloca i64*
%sv_2.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%phitmp = inttoptr i64 %1 to i64*
store i64 %arg1, i64* %sv_2.0.reg2mem
store i64* %phitmp, i64** %sv_1.0.in.in.reg2mem
br label LBL_4
LBL_2:
%2 = load i64, i64* inttoptr (i64 16 to i64*), align 16
%3 = icmp eq i64 %2, 0
store i64 %2, i64* %sv_2.0.reg2mem
store i64* inttoptr (i64 24 to i64*), i64** %sv_1.0.in.in.reg2mem
br i1 %3, label LBL_3, label LBL_4
LBL_3:
%4 = load i64, i64* inttoptr (i64 32 to i64*), align 32
store i64 %4, i64* %sv_2.0.reg2mem
store i64* inttoptr (i64 24 to i64*), i64** %sv_1.0.in.in.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.in.in.reload = load i64*, i64** %sv_1.0.in.in.reg2mem
%sv_1.0 = load i64, i64* %sv_1.0.in.in.reload, align 8
%5 = add i64 %sv_1.0, 1
%6 = icmp ugt i64 %5, %arg3
%7 = icmp eq i1 %6, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_9
LBL_5:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%8 = add i64 %arg1, 40
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %0, false
%or.cond = or i1 %12, %11
store i64 0, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_6
LBL_6:
%13 = add i64 %arg3, -2
%14 = sub i64 %13, %sv_1.0
%15 = call i64 @FUNC(i64 %10, i64 %arg2, i64 %14)
%16 = icmp slt i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_9
LBL_7:
%18 = add i64 %15, 1
%19 = add i64 %15, %arg2
%20 = inttoptr i64 %19 to i8*
store i8 47, i8* %20, align 1
store i64 %18, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%21 = add i64 %sv_0.0.reload, %arg2
%22 = inttoptr i64 %21 to i64*
%23 = inttoptr i64 %sv_2.0.reload to i64*
%24 = trunc i64 %sv_1.0 to i32
%25 = add i32 %24, 1
%26 = call i64* @memcpy(i64* %22, i64* %23, i32 %25)
%27 = add i64 %sv_0.0.reload, %sv_1.0
store i64 %27, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %sv_1.0, { 1, 3, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64** %sv_1.0.in.in.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64* inttoptr (i64 24 to i64*), { 1, 0 }
uselistorder i64 %arg1, { 2, 0, 1, 3 }
uselistorder label LBL_9, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | match_13057 | match | 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* %arg1 to i64
%sext = mul i64 %arg2, 281474976710656
%2 = ashr exact i64 %sext, 48
%sext3 = mul i64 %arg3, 281474976710656
%3 = ashr exact i64 %sext3, 48
%4 = add i64 %0, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %1, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %6, %9
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_1
LBL_1:
%12 = add i64 %0, 2
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = add i64 %1, 2
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = icmp eq i16 %14, %17
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_2
LBL_2:
%20 = add i64 %0, 32
%21 = inttoptr i64 %20 to i16*
%22 = load i16, i16* %21, align 2
%23 = trunc i64 %2 to i16
%24 = icmp eq i16 %22, %23
store i64 1, i64* %rax.0.reg2mem
br i1 %24, label LBL_11, label LBL_3
LBL_3:
%25 = add i64 %0, 34
%26 = inttoptr i64 %25 to i16*
%27 = load i16, i16* %26, align 2
%28 = trunc i64 %3 to i16
%29 = icmp eq i16 %27, %28
%30 = icmp eq i16 %22, 0
%31 = icmp eq i1 %30, %29
store i64 1, i64* %rax.0.reg2mem
br i1 %31, label LBL_11, label LBL_4
LBL_4:
%32 = add i64 %0, 20
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, %9
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_10, label LBL_5
LBL_5:
%37 = add i64 %0, 18
%38 = inttoptr i64 %37 to i16*
%39 = load i16, i16* %38, align 2
%40 = add i64 %1, 2
%41 = inttoptr i64 %40 to i16*
%42 = load i16, i16* %41, align 2
%43 = icmp eq i16 %39, %42
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_10, label LBL_6
LBL_6:
%45 = add i64 %0, 40
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_10, label LBL_7
LBL_7:
%49 = add i64 %0, 34
%50 = inttoptr i64 %49 to i16*
%51 = load i16, i16* %50, align 2
%52 = trunc i64 %3 to i16
%53 = icmp eq i16 %51, %52
store i64 1, i64* %rax.0.reg2mem
br i1 %53, label LBL_11, label LBL_8
LBL_8:
%54 = icmp eq i32 %47, 1
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_10, label LBL_9
LBL_9:
%56 = add i64 %0, 36
%57 = inttoptr i64 %56 to i16*
%58 = load i16, i16* %57, align 2
%59 = trunc i64 %2 to i16
%60 = icmp eq i16 %58, %59
%61 = icmp eq i1 %60, false
store i64 1, i64* %rax.0.reg2mem
br i1 %61, label LBL_10, label LBL_11
LBL_10:
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 4, 3 }
uselistorder i64 1, { 1, 0, 3, 2 }
uselistorder label LBL_11, { 4, 2, 1, 0, 3 }
} | 1 |
BinRealVul | do_reupdate_3820 | do_reupdate | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i64
%.pre-phi5.reg2mem = alloca i64*
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = add i64 %arg2, 8
%1 = call i64 @FUNC(i64* nonnull %sv_1, i64 0, i64 1, i64 %arg3, i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull @gv_1)
%3 = load i32, i32* @gv_2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_14, label LBL_1
LBL_1:
%5 = trunc i64 %2 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br label LBL_3
LBL_2:
%8 = icmp eq i32 %48, 0
br i1 %8, label LBL_14, label LBL_3
LBL_3:
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%9 = load i64, i64* @gv_3, align 8
%10 = mul i64 %.reload, 8
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_13, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %13, i64* nonnull %sv_1, i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_13, label LBL_6
LBL_6:
br i1 %7, label LBL_6.LBL_12_crit_edge, label LBL_8
LBL_7:
%.pre = add i64 %13, 8
%.pre4 = inttoptr i64 %.pre to i64*
store i64* %.pre4, i64** %.pre-phi5.reg2mem
store i64 0, i64* %sv_0.02.reg2mem
br label LBL_12
LBL_8:
%21 = call i64 @FUNC(i64 %13)
%22 = add i64 %13, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = and i64 %21, 4294967295
%26 = call i64 @FUNC(i64 0, i64* nonnull @gv_1, i64 %24, i64 %25, i64 0)
%27 = icmp eq i64 %26, 0
store i64* %23, i64** %.pre-phi5.reg2mem
store i64 0, i64* %sv_0.02.reg2mem
br i1 %27, label LBL_12, label LBL_9
LBL_9:
%28 = inttoptr i64 %13 to i32*
%29 = load i32, i32* %28, align 4
%30 = inttoptr i64 %26 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %29, %31
%33 = icmp eq i1 %32, false
store i64* %23, i64** %.pre-phi5.reg2mem
store i64 %26, i64* %sv_0.02.reg2mem
br i1 %33, label LBL_12, label LBL_10
LBL_10:
%34 = add i64 %26, 16
%35 = add i64 %13, 16
%36 = call i64 @FUNC(i64 %35, i64 %34)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
store i64* %23, i64** %.pre-phi5.reg2mem
store i64 %26, i64* %sv_0.02.reg2mem
br i1 %39, label LBL_12, label LBL_11
LBL_11:
%40 = inttoptr i64 %26 to i64*
call void @free(i64* %40)
br label LBL_13
LBL_12:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%.pre-phi5.reload = load i64*, i64** %.pre-phi5.reg2mem
%41 = load i32, i32* @gv_2, align 4
%42 = load i64, i64* %.pre-phi5.reload, align 8
%43 = call i64 @FUNC(i64 %42)
store i64 %43, i64* %sv_1, align 8
%44 = call i64 @FUNC(i64 %43)
%45 = load i64, i64* %sv_1, align 8
%46 = inttoptr i64 %45 to i64*
call void @free(i64* %46)
%47 = inttoptr i64 %sv_0.02.reload to i64*
call void @free(i64* %47)
%48 = load i32, i32* @gv_2, align 4
%49 = icmp eq i32 %41, %48
br i1 %49, label LBL_13, label LBL_2
LBL_13:
%50 = add i32 %storemerge3.reload, 1
%51 = load i32, i32* @gv_2, align 4
%52 = zext i32 %51 to i64
%53 = sext i32 %50 to i64
%54 = icmp slt i64 %53, %52
store i64 %53, i64* %.reg2mem
store i32 %50, i32* %storemerge3.reg2mem
br i1 %54, label LBL_4, label LBL_14
LBL_14:
%55 = call i64 @FUNC(i64* nonnull %sv_1)
ret i64 0
uselistorder i32 %48, { 1, 0 }
uselistorder i64 %26, { 5, 1, 3, 0, 4, 2 }
uselistorder i64* %23, { 2, 1, 0, 3 }
uselistorder i64 %13, { 1, 5, 2, 3, 0, 4, 6 }
uselistorder i64* %sv_1, { 0, 3, 4, 1, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64** %.pre-phi5.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 8, { 2, 1, 0, 3, 4 }
uselistorder i32 1, { 9, 8, 6, 5, 4, 3, 7, 2, 1, 0 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_13, { 2, 3, 1, 0 }
uselistorder label LBL_12, { 1, 2, 3, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | scsi_read_data_14475 | scsi_read_data | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%6 = trunc i64 %arg2 to i32
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i32 %6)
%8 = call i64 @FUNC(i64 %2, i64 1, i64 2)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = call i64 @FUNC(i64 %2)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | rt2x00lib_probe_dev_4466 | rt2x00lib_probe_dev | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 40
%3 = call i64 @FUNC(i64 0, i64 %2)
%4 = add i64 %0, 48
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = load i64, i64* %5, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label LBL_2, label LBL_1
LBL_1:
%21 = load i64, i64* %5, align 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = or i32 %25, 30
store i32 %26, i32* %24, align 4
br label LBL_2
LBL_2:
%27 = add i64 %0, 64
%28 = call i64 @FUNC(i64 %27, i64 4198962)
%29 = trunc i64 %0 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%31 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
store i64 %0, i64* %sv_0.0.in.in.reg2mem
br label LBL_8
LBL_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 %32, i64* %sv_0.0.in.in.reg2mem
br i1 %35, label LBL_8, label LBL_5
LBL_5:
%36 = call i64 @FUNC(i64 %0)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_7, label LBL_6
LBL_6:
%39 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0))
store i64 %36, i64* %sv_0.0.in.in.reg2mem
br label LBL_8
LBL_7:
%40 = call i64 @FUNC(i64 %0)
%41 = call i64 @FUNC(i64 %0)
%42 = call i64 @FUNC(i64 %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_8:
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = and i64 %sv_0.0.in.in.reload, 4294967295
%43 = call i64 @FUNC(i64 %0)
store i64 %sv_0.0.in, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 6, 3, 2, 1, 4, 5, 7, 0, 8, 10, 9, 11, 12, 13, 14 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i8*)* @ERROR, { 1, 0 }
uselistorder i64 0, { 0, 3, 4, 5, 6, 9, 7, 1, 2, 8 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 0 |
BinRealVul | attach_slave_10309 | attach_slave | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32*, align 8
%3 = trunc i64 %1 to i32
%4 = bitcast i32** %sv_2 to i64*
%5 = call i64 @FUNC(i64* nonnull %4, i32 %3, i64 %2, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_13, label LBL_1
LBL_1:
%9 = load i32*, i32** %sv_2, align 8
%10 = ptrtoint i32* %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %14, align 4
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_3:
%15 = load i32*, i32** %sv_2, align 8
%16 = ptrtoint i32* %15 to i64
%17 = call i64 @FUNC(i64 %16, i64 0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %20, align 4
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_5:
%21 = ptrtoint i32* %arg2 to i64
%22 = add i64 %21, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = call i64 @FUNC(i64* nonnull %sv_1, i32 %24, i64 %2, i64 1)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 %25, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_13, label LBL_6
LBL_6:
%29 = load i64, i64* %sv_1, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_8, label LBL_7
LBL_7:
%34 = load i32, i32* %23, align 4
%35 = bitcast i64* %arg1 to i32*
store i32 %34, i32* %35, align 4
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_8:
%36 = load i64, i64* %sv_1, align 8
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = load i32*, i32** %sv_2, align 8
%41 = ptrtoint i32* %40 to i64
%42 = call i64 @FUNC(i64 %41)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_12, label LBL_10
LBL_10:
%46 = load i64, i64* %sv_1, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %49, label LBL_13, label LBL_11
LBL_11:
%50 = load i32*, i32** %sv_2, align 8
%51 = ptrtoint i32* %50 to i64
%52 = call i64 @FUNC(i64 %51)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %55, label LBL_12, label LBL_13
LBL_12:
%56 = ptrtoint i64* %arg3 to i64
%57 = load i32*, i32** %sv_2, align 8
%58 = ptrtoint i32* %57 to i64
%59 = call i64 @FUNC(i64 %58)
%60 = load i64, i64* %sv_1, align 8
%61 = load i32*, i32** %sv_2, align 8
%62 = ptrtoint i32* %61 to i64
%63 = call i64 @FUNC(i64 %2, i64 %62, i64 %60)
%64 = load i32*, i32** %sv_2, align 8
%65 = load i32, i32* %64, align 4
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 4
%68 = add i64 %67, %56
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = or i32 %70, 1
store i32 %71, i32* %69, align 4
store i64 %25, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%72 = and i64 %sv_0.0.reload, 4294967295
ret i64 %72
uselistorder i32** %sv_2, { 6, 5, 4, 3, 2, 1, 0, 7 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 2, 1, 5, 7, 4, 3, 8 }
uselistorder i64 (i64)* @IsKeyboardDevice, { 1, 0 }
uselistorder i64 (i64)* @IsPointerDevice, { 1, 0 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder i64 1, { 1, 0, 4, 6, 3, 2, 5 }
uselistorder i64 (i64)* @IsMaster, { 1, 0 }
uselistorder i64 (i64*, i32, i64, i64)* @dixLookupDevice, { 1, 0 }
uselistorder label LBL_13, { 4, 1, 0, 5, 2, 6, 7, 3 }
} | 0 |
BinRealVul | fst_init_dma_9685 | fst_init_dma | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 1
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %6, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %13, 16
%15 = call i64 @FUNC(i64 132161, i64 %14)
%16 = load i64, i64* %12, align 8
%17 = add i64 %16, 20
%18 = call i64 @FUNC(i64 132161, i64 %17)
%19 = load i64, i64* %12, align 8
%20 = add i64 %19, 24
%21 = call i64 @FUNC(i64 0, i64 %20)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %12, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64)* @outl, { 2, 1, 0 }
} | 0 |
BinRealVul | handle_path_7895 | handle_path | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
ret i64 %1
} | 0 |
BinRealVul | clear_iommu_pte_present_6768 | clear_iommu_pte_present | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %arg2, i64 1)
%3 = mul i64 %2, 8
%4 = add i64 %3, %1
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
%6 = call i64 @FUNC(i64 %1)
ret i64 %6
uselistorder i64 %1, { 1, 0 }
} | 0 |
BinRealVul | keyring_describe_6054 | keyring_describe | 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 = icmp eq i64* %arg1, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %1)
br label LBL_3
LBL_2:
%4 = call i64 @FUNC(i64 %0, i64 ptrtoint ([7 x i8]* @gv_0 to i64))
br label LBL_3
LBL_3:
%5 = call i64 @FUNC(i64 %1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_7, label LBL_4
LBL_4:
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %10)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%13 = call i64 @FUNC(i64 %0, i64 ptrtoint ([8 x i8]* @gv_2 to i64))
store i64 %13, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64 %0, { 1, 0, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @seq_puts, { 2, 1, 0 }
} | 0 |
BinRealVul | __fimc_md_create_flite_source_links_4503 | __fimc_md_create_flite_source_links | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.2.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.11.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.11.reg2mem
br label LBL_1
LBL_1:
%sv_0.11.reload = load i32, i32* %sv_0.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul i64 %indvars.iv.reload, 8
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
store i32 %sv_0.11.reload, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %4, i64 0, i64 %4, i64 0, i64 1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i32 %7, i32* %sv_0.0.reg2mem
store i32 %7, i32* %sv_0.2.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%10 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.11.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %10, label LBL_1, label LBL_4
LBL_4:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%11 = zext i32 %sv_0.2.reload to i64
ret i64 %11
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.11.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | freeClient_11961 | freeClient | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%.pre-phi2.reg2mem = alloca i64*
%rdi = alloca i64, align 8
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %2)
store i64 0, i64* %1, align 8
%4 = bitcast i64* %rdi to i32*
%5 = load i32, i32* %4, align 8
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %arg1)
br label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %arg1)
%10 = add i64 %arg1, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %arg1, i64 0)
%15 = call i64 @FUNC(i64 %arg1, i64 0)
%16 = add i64 %arg1, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %arg1, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %arg1, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = load i64, i64* @gv_0, align 8
%28 = zext i32 %26 to i64
%29 = call i64 @FUNC(i64 %27, i64 %28, i64 1)
%30 = load i32, i32* %25, align 4
%31 = load i64, i64* @gv_0, align 8
%32 = zext i32 %30 to i64
%33 = call i64 @FUNC(i64 %31, i64 %32, i64 2)
%34 = add i64 %arg1, 40
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i64 @FUNC(i64 %36)
%38 = call i64 @FUNC(i64 %arg1)
%39 = load i32, i32* %25, align 4
%40 = zext i32 %39 to i64
%41 = call i64 @FUNC(i64 %40)
%42 = load i64, i64* @gv_1, align 8
%43 = call i64 @FUNC(i64 %42, i64 %arg1)
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
%46 = zext i1 %45 to i64
%47 = call i64 @FUNC(i64 %46)
%48 = load i64, i64* @gv_1, align 8
%49 = call i64 @FUNC(i64 %48, i64 %43)
%50 = and i32 %5, 2
%51 = icmp eq i32 %50, 0
br i1 %51, label LBL_2.LBL_9_crit_edge, label LBL_4
LBL_3:
%.pre = add i64 %arg1, 48
%.pre1 = inttoptr i64 %.pre to i64*
store i64* %.pre1, i64** %.pre-phi2.reg2mem
br label LBL_9
LBL_4:
%52 = load i32, i32* @gv_2, align 4
%53 = zext i32 %52 to i64
%54 = call i64 @FUNC(i64 %53)
%55 = add i64 %arg1, 48
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %57)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_5, label LBL_6
LBL_5:
%62 = load i64, i64* %56, align 8
%63 = call i64 @FUNC(i64 %62)
%64 = trunc i64 %63 to i32
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_7, label LBL_8
LBL_6:
%67 = load i64, i64* @gv_3, align 8
%68 = call i64 @FUNC(i64 %67, i64 %arg1)
%69 = icmp eq i64 %68, 0
%70 = icmp eq i1 %69, false
%71 = zext i1 %70 to i64
%72 = call i64 @FUNC(i64 %71)
%73 = load i64, i64* @gv_3, align 8
%74 = call i64 @FUNC(i64 %73, i64 %68)
br label LBL_8
LBL_7:
%75 = load i64, i64* %56, align 8
%76 = call i64 @FUNC(i64 %75)
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
%79 = call i64 @FUNC(i64 %arg1, i64 %78)
%80 = load i64, i64* %56, align 8
%81 = call i64 @FUNC(i64 %80)
%82 = trunc i64 %81 to i32
%83 = icmp eq i32 %82, 0
%84 = icmp eq i1 %83, false
br i1 %84, label LBL_7, label LBL_8
LBL_8:
%85 = load i32, i32* @gv_4, align 4
%86 = add i32 %85, -1
store i32 %86, i32* @gv_4, align 4
store i64* %56, i64** %.pre-phi2.reg2mem
br label LBL_9
LBL_9:
%.pre-phi2.reload = load i64*, i64** %.pre-phi2.reg2mem
%87 = load i64, i64* %.pre-phi2.reload, align 8
%88 = call i64 @FUNC(i64 %87)
%89 = and i32 %5, 4
%90 = icmp eq i32 %89, 0
br i1 %90, label LBL_14, label LBL_10
LBL_10:
%91 = add i64 %arg1, 64
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = icmp eq i32 %93, 16
%95 = icmp eq i1 %94, false
br i1 %95, label LBL_13, label LBL_11
LBL_11:
%96 = add i64 %arg1, 68
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = icmp eq i32 %98, -1
br i1 %99, label LBL_13, label LBL_12
LBL_12:
%100 = zext i32 %98 to i64
%101 = call i64 @FUNC(i64 %100)
br label LBL_13
LBL_13:
%102 = and i32 %5, 64
%103 = icmp eq i32 %102, 0
%global_var_404070.val = load i64, i64* @gv_5, align 8
%global_var_404078.val = load i64, i64* @gv_6, align 8
%storemerge = select i1 %103, i64 %global_var_404070.val, i64 %global_var_404078.val
%104 = call i64 @FUNC(i64 %storemerge, i64 %arg1)
%105 = icmp eq i64 %104, 0
%106 = icmp eq i1 %105, false
%107 = zext i1 %106 to i64
%108 = call i64 @FUNC(i64 %107)
%109 = call i64 @FUNC(i64 %storemerge, i64 %104)
br label LBL_14
LBL_14:
%110 = and i32 %5, 8
%111 = icmp eq i32 %110, 0
br i1 %111, label LBL_17, label LBL_15
LBL_15:
store i64 0, i64* @gv_7, align 8
store i32 32, i32* bitcast (i64* @gv_8 to i32*), align 8
%112 = load i64, i64* @gv_5, align 8
%113 = call i64 @FUNC(i64 %112)
%114 = trunc i64 %113 to i32
%115 = icmp eq i32 %114, 0
%116 = icmp eq i1 %115, false
br i1 %116, label LBL_16, label LBL_17
LBL_16:
%117 = load i64, i64* @gv_5, align 8
%118 = call i64 @FUNC(i64 %117)
%119 = inttoptr i64 %118 to i64*
%120 = load i64, i64* %119, align 8
%121 = call i64 @FUNC(i64 %120)
%122 = load i64, i64* @gv_5, align 8
%123 = call i64 @FUNC(i64 %122)
%124 = trunc i64 %123 to i32
%125 = icmp eq i32 %124, 0
%126 = icmp eq i1 %125, false
br i1 %126, label LBL_16, label LBL_17
LBL_17:
%127 = add i64 %arg1, 56
%128 = inttoptr i64 %127 to i64*
%129 = load i64, i64* %128, align 8
%130 = call i64 @FUNC(i64 %129)
%131 = call i64 @FUNC(i64 %arg1)
%132 = call i64 @FUNC(i64 %arg1)
ret i64 %132
uselistorder i64* %56, { 0, 3, 2, 1, 4 }
uselistorder i32 %5, { 1, 2, 3, 4, 0 }
uselistorder i64 (i64)* @zfree, { 1, 0 }
uselistorder i64* @gv_5, { 2, 3, 0, 1 }
uselistorder i32* @gv_4, { 1, 0 }
uselistorder i64 (i64)* @listFirst, { 1, 0 }
uselistorder i64 (i64)* @listLength, { 4, 1, 3, 0, 2 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 (i64, i64)* @listDelNode, { 2, 1, 0 }
uselistorder i64 (i64)* @redisAssert, { 3, 2, 1, 0 }
uselistorder i1 false, { 2, 1, 3, 4, 5, 6, 0, 7, 8 }
uselistorder i64 (i64, i64)* @listSearchKey, { 2, 1, 0 }
uselistorder i64 (i64)* @close, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @aeDeleteFileEvent, { 1, 0 }
uselistorder i64 (i64)* @listRelease, { 3, 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 1, { 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 8, 9, 10, 5, 7, 6, 3, 2, 4, 0, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 1, 21 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | uv_rwlock_trywrlock_13197 | uv_rwlock_trywrlock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i32 @pthread_rwlock_trywrlock(i64* %arg1)
switch i32 %0, label LBL_1 [
i32 16, label LBL_2
i32 11, label LBL_2
i32 0, label LBL_2
]
LBL_1:
call void @abort()
unreachable
LBL_2:
%1 = icmp eq i32 %0, 0
%. = select i1 %1, i64 0, i64 4294967295
ret i64 %.
uselistorder i32 %0, { 1, 0 }
} | 1 |
BinRealVul | breakpoint_handler_2446 | breakpoint_handler | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge7.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = urem i64 %0, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_11, label LBL_2
LBL_2:
store i64 0, i64* %arg1, align 8
%4 = call i64 @FUNC(i64 %0, i64 0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %0, i64 1)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%8 = call i64 @FUNC(i64 %0, i64 0)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%9 = add i64 %0, 16
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_6, label LBL_11
LBL_6:
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
store i64 %9, i64* %storemerge7.in.reg2mem
br label LBL_7
LBL_7:
%storemerge7.in.reload = load i64, i64* %storemerge7.in.reg2mem
%15 = add i64 %storemerge7.in.reload, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, %14
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_10, label LBL_8
LBL_8:
%storemerge7 = inttoptr i64 %storemerge7.in.reload to i32*
%20 = load i32, i32* %storemerge7, align 4
%21 = urem i32 %20, 2
%22 = icmp eq i32 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_11, label LBL_9
LBL_9:
%23 = call i64 @FUNC(i64 %0, i64 1)
%24 = call i64 @FUNC(i64 %0, i64 1)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%25 = add i64 %storemerge7.in.reload, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 %27, i64* %storemerge7.in.reg2mem
store i64 %27, i64* %rax.0.reg2mem
br i1 %29, label LBL_7, label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge7.in.reload, { 1, 2, 0 }
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64 %0, { 5, 4, 6, 7, 1, 2, 3, 0 }
uselistorder i64* %storemerge7.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 7, 2, 4, 3, 5 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @raise_exception, { 1, 0 }
uselistorder i64 (i64, i64)* @check_hw_breakpoints, { 1, 0 }
uselistorder label LBL_11, { 0, 3, 2, 1, 4, 5, 6 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | do_busid_cmd_8587 | do_busid_cmd | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = urem i64 %arg3, 256
%4 = call i64 @FUNC(i64 %3)
%5 = urem i32 %2, 8
%6 = add i64 %1, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %1, 32
%12 = zext i32 %5 to i64
%13 = zext i32 %10 to i64
%14 = call i64 @FUNC(i64 %11, i64 0, i64 %13, i64 %12)
%15 = call i64 @FUNC(i64 %14, i64 0, i32 %5, i64 %0, i64 %1)
%16 = add i64 %1, 24
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = call i64 @FUNC(i64 %15)
%19 = trunc i64 %18 to i32
%20 = add i64 %1, 12
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = icmp eq i32 %19, 0
br i1 %22, label LBL_2, label LBL_1
LBL_1:
%23 = bitcast i64* %arg1 to i8*
%24 = add i64 %1, 4
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
%26 = add i64 %1, 8
%27 = inttoptr i64 %26 to i32*
store i32 0, i32* %27, align 4
%28 = icmp slt i32 %19, 1
%29 = bitcast i64* %rdi to i8*
%30 = load i8, i8* %29, align 8
%storemerge.v = select i1 %28, i8 4, i8 2
%storemerge = or i8 %30, %storemerge.v
store i8 %storemerge, i8* %23, align 1
%31 = load i64, i64* %17, align 8
%32 = call i64 @FUNC(i64 %31)
br label LBL_2
LBL_2:
%33 = add i64 %1, 1
%34 = inttoptr i64 %33 to i8*
store i8 24, i8* %34, align 1
%35 = add i64 %1, 2
%36 = inttoptr i64 %35 to i8*
store i8 32, i8* %36, align 1
%37 = call i64 @FUNC(i64 %1)
ret i64 %37
uselistorder i32 %19, { 0, 2, 1 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 2, 3, 4, 0, 1, 5, 6, 7, 8, 9 }
} | 0 |
BinRealVul | mlx5e_reporter_tx_timeout_13159 | mlx5e_reporter_tx_timeout | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32*, align 8
store i32* null, i32** %sv_2, align 8
%3 = add i64 %2, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
store i32* %arg1, i32** %sv_2, align 8
%6 = ptrtoint i32** %sv_2 to i64
store i64 %6, i64* %sv_1, align 8
%7 = load i64, i64* @gv_0, align 8
%8 = add i64 %2, 24
%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 = sub i64 %7, %12
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %2, 12
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %2, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %2, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = and i64 %1, 4294967295
%29 = bitcast i64* %sv_0 to i8*
%30 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %29, i32 256, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @gv_1, i64 0, i64 0), i64 %28, i32 %27, i32 %24, i32 %21, i32 %18, i32 %15)
%31 = inttoptr i64 %5 to i32*
%32 = load i32, i32* %31, align 4
%33 = call i64 @FUNC(i64 %5, i32 %32, i64* nonnull %sv_0, i64* nonnull %sv_1)
ret i64 0
uselistorder i32** %sv_2, { 2, 1, 0 }
} | 1 |
BinRealVul | llc_conn_handler_5914 | 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 i32*
%18 = load i32, i32* %17, align 4
%19 = call i64 @FUNC(i64 %9, i32 %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:
%22 = call i64 @FUNC(i64 %3)
%23 = call i64 @FUNC(i64 %9)
store i64 %9, i64* %arg2, align 8
%24 = add i64 %3, 16
%25 = inttoptr i64 %24 to i64*
store i64 4198992, i64* %25, align 8
store i64* %sv_3, i64** %rcx.0.in.reg2mem
store i64 %9, i64* %rdx.0.reg2mem
br label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64 %9)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
%30 = 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
%31 = 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)
%32 = call i64 @FUNC(i64 %3, i64 2)
%33 = add i64 %9, 4
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = call i64 @FUNC(i64 %9, i64 %3, i32 %35)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_10, label LBL_8
LBL_8:
%40 = call i64 @FUNC(i64 %9)
%41 = call i64 @FUNC(i64 %9)
store i64 %41, i64* %storemerge.reg2mem
br label LBL_11
LBL_9:
%42 = call i64 @FUNC(i64 %3)
store i64 %42, i64* %storemerge.reg2mem
br label LBL_11
LBL_10:
%43 = 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, { 5, 6, 3, 4, 7, 8, 0, 1, 2, 9, 10, 11, 12 }
uselistorder i64 %3, { 2, 8, 3, 4, 1, 5, 6, 0, 7, 9, 10, 11, 12 }
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 }
} | 0 |
BinRealVul | mono_valloc_aligned_17426 | mono_valloc_aligned | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = bitcast i64* %sv_0 to i64**
%1 = trunc i64 %arg2 to i32
%2 = trunc i64 %arg1 to i32
%3 = call i32 @posix_memalign(i64** nonnull %0, i32 %1, i32 %2)
%4 = icmp eq i32 %3, 0
%5 = load i64, i64* %sv_0, align 8
%storemerge = select i1 %4, i64 %5, i64 0
ret i64 %storemerge
uselistorder i64* %sv_0, { 1, 0, 2 }
} | 1 |
BinRealVul | generate_memory_topology_15592 | generate_memory_topology | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64* nonnull %sv_0)
%2 = call i64 @FUNC(i64 0, i64 -1)
%3 = call i64 @FUNC(i64* nonnull %sv_0, i64 %0, i64 0, i64 %2)
%4 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 %4
} | 1 |
BinRealVul | jspeFactorDelete_12495 | jspeFactorDelete | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%0 = call i64 @FUNC()
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_10, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %1)
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 1
store i64 0, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_10, label LBL_2
LBL_2:
%8 = load i64, i64* %sv_1, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %.reg2mem
br i1 %10, label LBL_6, label LBL_3
LBL_3:
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 %1)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
br i1 %14, label LBL_3.LBL_6_crit_edge, label LBL_5
LBL_4:
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_6
LBL_5:
%15 = load i64, i64* @gv_0, align 8
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %sv_1, align 8
store i64 %16, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%17 = call i64 @FUNC(i64 %.reload)
%18 = trunc i64 %17 to i8
%19 = icmp eq i8 %18, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_10, label LBL_7
LBL_7:
%20 = load i64, i64* %sv_1, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 0
%24 = load i64, i64* %sv_1, align 8
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %24)
%26 = load i64, i64* %sv_1, align 8
%27 = call i64 @FUNC(i64 %26, i64 %1)
%28 = load i64, i64* %sv_1, align 8
%29 = and i64 %25, 4294967295
%30 = call i64 @FUNC(i64 %28, i64 %29, i64 0)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_9:
%31 = call i64 @FUNC(i64 %24, i64 %1)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%32 = call i64 @FUNC(i64 %sv_0.0.reload)
%33 = load i64, i64* %sv_1, align 8
%34 = call i64 @FUNC(i64 %1, i64 %33)
ret i64 %32
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %1, { 4, 2, 1, 0, 3, 5 }
uselistorder i64* %sv_1, { 2, 4, 5, 3, 6, 7, 0, 8, 1, 9 }
uselistorder i64* %.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @jsvRemoveChild, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_10, { 1, 0, 2, 3, 4 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 1 |
BinRealVul | umd_cleanup_19127 | umd_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = inttoptr i64 %5 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %5, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
store i64 0, i64* %16, align 8
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @fput, { 1, 0 }
} | 1 |
BinRealVul | qed_aio_write_alloc_16539 | 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
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, %0
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = inttoptr i64 %1 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* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
store i64 %0, i64* %3, align 8
%7 = add i64 %0, 40
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
store i64 %1, i64* %rax.0.reg2mem
br label LBL_8
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
store i64 %1, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%16 = call i64 @FUNC(i64 %0, i64 %0)
%17 = add i64 %16, %arg2
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = add i64 %0, 8
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = call i64 @FUNC(i64 %0, i64 %18)
%22 = add i64 %0, 16
%23 = inttoptr i64 %22 to i64*
store i64 %21, i64* %23, align 8
%24 = add i64 %0, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %0, 24
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %0, 48
%31 = call i64 @FUNC(i64 %30, i64 %29, i64 %26, i64 %arg2)
%32 = call i64 @FUNC(i64 %0)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = inttoptr i64 %19 to i32*
%36 = load i32, i32* %35, align 4
%37 = or i32 %36, 1
store i32 %37, i32* %35, align 4
%38 = call i64 @FUNC(i64 %0, i64 4198927, i64 %0)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%39 = call i64 @FUNC(i64 %0, i64 0)
store i64 %39, 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 %1, { 1, 0, 2, 3 }
uselistorder i64 %0, { 10, 9, 4, 3, 13, 12, 11, 14, 2, 15, 0, 16, 1, 7, 8, 5, 6, 17, 18 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 2, 3, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | mjpeg_init_1984 | mjpeg_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64* @malloc(i32 8192)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = ptrtoint i64* %0 to i64
%5 = bitcast i64* %arg1 to i32*
store i32 -1023, i32* %5, align 4
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
store i32 1023, i32* %7, align 4
%8 = add i64 %4, 1024
%9 = call i64 @FUNC(i64 %4, i64 %8, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%10 = add i64 %4, 3072
%11 = add i64 %4, 2048
%12 = call i64 @FUNC(i64 %11, i64 %10, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%13 = add i64 %4, 5120
%14 = add i64 %4, 4096
%15 = call i64 @FUNC(i64 %14, i64 %13, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%16 = add i64 %4, 7168
%17 = add i64 %4, 6144
%18 = call i64 @FUNC(i64 %17, i64 %16, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%19 = add i64 %3, 8
%20 = inttoptr i64 %19 to i64*
store i64 %4, i64* %20, 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 %4, { 0, 3, 2, 1, 8, 7, 6, 5, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i8*)* @build_huffman_codes, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | __io_free_req_12528 | __io_free_req | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq 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 %arg1)
br label LBL_3
LBL_3:
%8 = add i64 %arg1, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = load i64, i64* @gv_0, align 8
%13 = call i64 @FUNC(i64 %12, i64 %arg1)
ret i64 %13
uselistorder i64 %arg1, { 2, 1, 0, 3, 4 }
} | 1 |
BinRealVul | crypto_ablkcipher_report_6078 | crypto_ablkcipher_report | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = bitcast i64* %sv_1 to i8*
%2 = call i8* @strncpy(i8* nonnull %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i32 32)
%3 = bitcast i64* %sv_0 to i8*
%4 = call i8* @strncpy(i8* nonnull %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i32 32)
%5 = call i64 @FUNC(i64 %0, i64 1, i64 80, i64* nonnull %sv_1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%storemerge = select i1 %8, i64 4294967295, i64 0
ret i64 %storemerge
uselistorder i8* (i8*, i8*, i32)* @strncpy, { 1, 0 }
} | 0 |
BinRealVul | allocate_buffers_16131 | allocate_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = bitcast i64* %rdi to i32*
%7 = add i64 %5, 4
%8 = inttoptr i64 %7 to i32*
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
%11 = add i64 %5, 16
%12 = inttoptr i64 %11 to i64*
%13 = add i64 %5, 24
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%15 = load i32, i32* %8, align 4
%16 = mul i32 %15, 4
%17 = sext i32 %16 to i64
%18 = load i64, i64* %10, align 8
%19 = mul i64 %.reload, 8
%20 = add i64 %18, %19
%21 = call i64 @FUNC(i64 %17)
%22 = inttoptr i64 %20 to i64*
store i64 %21, i64* %22, align 8
%23 = load i32, i32* %8, align 4
%24 = mul i32 %23, 4
%25 = sext i32 %24 to i64
%26 = load i64, i64* %12, align 8
%27 = add i64 %26, %19
%28 = call i64 @FUNC(i64 %25)
%29 = inttoptr i64 %27 to i64*
store i64 %28, i64* %29, align 8
%30 = load i32, i32* %8, align 4
%31 = mul i32 %30, 4
%32 = sext i32 %31 to i64
%33 = load i64, i64* %14, align 8
%34 = add i64 %33, %19
%35 = call i64 @FUNC(i64 %32)
%36 = inttoptr i64 %34 to i64*
store i64 %35, i64* %36, align 8
%37 = add i32 %storemerge1.reload, 1
%38 = load i32, i32* %6, align 8
%39 = zext i32 %38 to i64
%40 = sext i32 %37 to i64
%41 = icmp slt i64 %40, %39
store i64 %40, i64* %.reg2mem
store i32 %37, i32* %storemerge1.reg2mem
store i64 %39, i64* %.lcssa.reg2mem
br i1 %41, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %19, { 2, 1, 0 }
uselistorder i64 %5, { 0, 1, 3, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_malloc, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_cryptographic_context_672 | mxf_read_cryptographic_context | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = icmp eq i32 %0, 16
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = icmp eq i64 %arg5, 1311768467294899695
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %4, i64 %5, i64 16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | make_cma_dev_4454 | make_cma_dev | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %sv_1.04.reg2mem
store i64 4294967277, i64* %sv_0.02.reg2mem
br i1 %2, label LBL_5, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 256, i64 0)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967284, i64* %sv_0.0.ph.reg2mem
br i1 %5, label LBL_2, label LBL_4
LBL_2:
%6 = call i64 @FUNC(i64 %3, i64 %arg2, i64 256)
%7 = add i64 %3, 256
%8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64* nonnull @gv_2)
%9 = call i64 @FUNC(i64 %3, i64 %1)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 %9, i64* %sv_0.0.ph.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = inttoptr i64 %arg2 to i8*
%14 = call i64 @FUNC(i64 %7, i8* %13, i64* nonnull @gv_3)
%15 = call i64 @FUNC(i64 %7, i64 %7)
%16 = call i64 @FUNC(i64 %1)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_6
LBL_4:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%17 = call i64 @FUNC(i64 %1)
store i64 %3, i64* %sv_1.04.reg2mem
store i64 %sv_0.0.ph.reload, i64* %sv_0.02.reg2mem
br label LBL_5
LBL_5:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%18 = call i64 @FUNC(i64 %sv_1.04.reload)
%19 = and i64 %sv_0.02.reload, 4294967295
%20 = call i64 @FUNC(i64 %19)
store i64 %20, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 0, 2, 3, 1, 4 }
uselistorder i64 %3, { 0, 3, 2, 1, 4 }
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64* %sv_1.04.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @cma_deref_dev, { 1, 0 }
uselistorder i64 (i64, i8*, i64*)* @config_group_init_type_name, { 1, 0 }
uselistorder i64 256, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | transactRtspMessage_7052 | transactRtspMessage | define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967295
%1 = load i32, i32* @gv_0, align 4
%2 = icmp slt i32 %1, 5
%3 = ptrtoint i32* %arg2 to i64
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 %3)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%5 = call i64 @FUNC(i64 %0, i64 %3)
store i64 %5, 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 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | unit_file_search_7695 | unit_file_search | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rbx.5.reg2mem = alloca i64
%.in.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64*
%.lcssa41.reg2mem = alloca i64
%storemerge9.in26.reg2mem = alloca i64
%.reg2mem62 = alloca i64
%rdx.10.lcssa.reg2mem = alloca i64
%storemerge10.in27.reg2mem = alloca i64
%.reg2mem = alloca i64
%rsi.3.reg2mem = alloca i64
%rdx.3.ptr.reg2mem = alloca i64*
%rbx.0.ph.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
store i64 %0, i64* %rdx.0.reg2mem
store i64 %1, i64* %rsi.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 110, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 110, i64* %rdx.0.reg2mem
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem
br label LBL_2
LBL_2:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%4 = icmp eq i64* %arg3, null
%5 = icmp eq i1 %4, false
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 111, i64* %rdx.1.reg2mem
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.1.reg2mem
br label LBL_4
LBL_4:
%6 = add i64 %1, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rbx.5.reg2mem
br i1 %9, label LBL_5, label LBL_36
LBL_5:
%10 = ptrtoint i64* %arg1 to i64
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_7, label LBL_6
LBL_6:
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = zext i32 %arg4 to i64
%19 = call i64 @FUNC(i64 %10, i64 %1, i64 %13, i64 %17, i64 %18)
%20 = and i64 %19, 4294967295
store i64 %20, i64* %rbx.5.reg2mem
br label LBL_36
LBL_7:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%21 = icmp eq i64 %rsi.1.reload, 0
%22 = icmp eq i1 %21, false
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %22, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 116, i64* %rdx.2.reg2mem
store i64 ptrtoint ([50 x i8]* @gv_1 to i64), i64* %rsi.2.reg2mem
br label LBL_9
LBL_9:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rdx.2.ptr = inttoptr i64 %rdx.2.reload to i64*
%23 = call i64 @FUNC(i64 %rsi.2.reload, i64 0)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64* %rdx.2.ptr, i64** %rdx.3.ptr.reg2mem
store i64 0, i64* %rsi.3.reg2mem
br i1 %25, label LBL_16, label LBL_10
LBL_10:
%26 = ptrtoint i64* %sv_3 to i64
%27 = call i64 @FUNC(i64 0, i64* nonnull %sv_3)
%28 = trunc i64 %27 to i32
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
store i64* %sv_3, i64** %rdx.3.ptr.reg2mem
store i64 %26, i64* %rsi.3.reg2mem
br i1 %30, label LBL_16, label LBL_11
LBL_11:
%31 = and i64 %27, 4294967295
store i64 %31, i64* %rbx.5.reg2mem
br label LBL_36
LBL_12:
store i8* null, i8** %sv_0, align 8
%32 = load i64, i64* %rdx.3.ptr.reload, align 8
%33 = inttoptr i64 %rsi.3.reload to i64*
%34 = call i64 @FUNC(i64 %32, i64 ptrtoint (i8** @gv_5 to i64), i64* %33)
%35 = inttoptr i64 %34 to i8*
store i8* %35, i8** %sv_0, align 8
%36 = icmp eq i64 %34, 0
%37 = icmp eq i1 %36, false
store i64 4294967284, i64* %rbx.0.ph.reg2mem
br i1 %37, label LBL_13, label LBL_15
LBL_13:
%38 = add i64 %0, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = zext i32 %arg4 to i64
%42 = call i64 @FUNC(i64 %10, i64 %1, i64 %34, i64 %40, i64 %41)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %43, 0
br i1 %44, label LBL_14, label LBL_18
LBL_14:
%45 = and i64 %42, 4294967295
store i64 %45, i64* %rbx.0.ph.reg2mem
br label LBL_15
LBL_15:
%rbx.0.ph.reload = load i64, i64* %rbx.0.ph.reg2mem
%46 = bitcast i8** %sv_0 to i64*
%47 = call i64 @FUNC(i64* nonnull %46)
store i64 %rbx.0.ph.reload, i64* %rbx.5.reg2mem
br label LBL_36
LBL_16:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%rdx.3.ptr.reload = load i64*, i64** %rdx.3.ptr.reg2mem
%48 = load i64, i64* %rdx.3.ptr.reload, align 8
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_12, label LBL_17
LBL_17:
%51 = load i64, i64* %sv_3, align 8
%52 = icmp eq i64 %51, 0
%storemerge7 = select i1 %52, i64 ptrtoint (i8** @gv_6 to i64), i64 %51
%. = select i1 %52, i64 ptrtoint (i8** @gv_6 to i64), i64 ptrtoint ([5 x i8]* @gv_7 to i64)
%53 = inttoptr i64 %rsi.3.reload to i8*
%54 = inttoptr i64 %. to i8*
%55 = inttoptr i64 %storemerge7 to i8*
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_8, i64 0, i64 0), i8* %53, i8* %54, i8* %55)
store i64 4294967294, i64* %rbx.5.reg2mem
br label LBL_36
LBL_18:
%57 = load i8*, i8** %sv_0, align 8
%58 = ptrtoint i8* %57 to i64
store i64 %58, i64* %12, align 8
store i8* null, i8** %sv_0, align 8
%59 = bitcast i8** %sv_0 to i64*
%60 = call i64 @FUNC(i64* nonnull %59)
%61 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0))
%62 = bitcast i8* %57 to i64*
%63 = load i64, i64* %62, align 8
%64 = icmp eq i64 %63, 0
%65 = icmp eq i1 %64, false
store i64 %63, i64* %.reg2mem
store i64 %58, i64* %storemerge10.in27.reg2mem
store i64 %58, i64* %rdx.10.lcssa.reg2mem
br i1 %65, label LBL_19, label LBL_23
LBL_19:
%.reload = load i64, i64* %.reg2mem
%66 = call i64 @FUNC(i64 0, i64 %.reload, i64 %61)
%67 = icmp eq i64 %66, 0
%68 = icmp eq i1 %67, false
store i64 4294967284, i64* %rbx.5.reg2mem
br i1 %68, label LBL_20, label LBL_36
LBL_20:
%69 = call i64 @FUNC(i64* nonnull %sv_2, i64 %66)
%70 = trunc i64 %69 to i32
%71 = icmp slt i32 %70, 0
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_22, label LBL_21
LBL_21:
%73 = and i64 %69, 4294967295
store i64 %73, i64* %rbx.5.reg2mem
br label LBL_36
LBL_22:
%storemerge10.in27.reload = load i64, i64* %storemerge10.in27.reg2mem
%74 = add i64 %storemerge10.in27.reload, 8
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = icmp eq i64 %76, 0
%78 = icmp eq i1 %77, false
store i64 %76, i64* %.reg2mem
store i64 %74, i64* %storemerge10.in27.reg2mem
store i64 %66, i64* %rdx.10.lcssa.reg2mem
br i1 %78, label LBL_19, label LBL_23
LBL_23:
%79 = load i64, i64* %sv_3, align 8
%80 = icmp eq i64 %79, 0
br i1 %80, label LBL_29, label LBL_24
LBL_24:
%rdx.10.lcssa.reload = load i64, i64* %rdx.10.lcssa.reg2mem
%81 = call i64 @FUNC(i64 %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0))
%82 = inttoptr i64 %rdx.10.lcssa.reload to i64*
%83 = load i64, i64* %82, align 8
%84 = icmp eq i64 %83, 0
%85 = icmp eq i1 %84, false
store i64 %83, i64* %.reg2mem62
store i64 %rdx.10.lcssa.reload, i64* %storemerge9.in26.reg2mem
br i1 %85, label LBL_25, label LBL_29
LBL_25:
%.reload63 = load i64, i64* %.reg2mem62
%86 = call i64 @FUNC(i64 0, i64 %.reload63, i64 %81)
%87 = icmp eq i64 %86, 0
%88 = icmp eq i1 %87, false
store i64 4294967284, i64* %rbx.5.reg2mem
br i1 %88, label LBL_26, label LBL_36
LBL_26:
%89 = call i64 @FUNC(i64* nonnull %sv_2, i64 %86)
%90 = trunc i64 %89 to i32
%91 = icmp slt i32 %90, 0
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_28, label LBL_27
LBL_27:
%93 = and i64 %89, 4294967295
store i64 %93, i64* %rbx.5.reg2mem
br label LBL_36
LBL_28:
%storemerge9.in26.reload = load i64, i64* %storemerge9.in26.reg2mem
%94 = add i64 %storemerge9.in26.reload, 8
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = icmp eq i64 %96, 0
%98 = icmp eq i1 %97, false
store i64 %96, i64* %.reg2mem62
store i64 %94, i64* %storemerge9.in26.reg2mem
br i1 %98, label LBL_25, label LBL_29
LBL_29:
%99 = load i64, i64* %sv_2, align 8
%100 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_10, i64 0, i64 0), i64 0, i64 0, i64 %99)
%101 = trunc i64 %100 to i32
%102 = icmp slt i32 %101, 0
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_31, label LBL_30
LBL_30:
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_11, i64 0, i64 0), i64 ptrtoint ([6 x i8]* @gv_10 to i64))
%105 = zext i32 %104 to i64
store i64 %105, i64* %rbx.5.reg2mem
br label LBL_36
LBL_31:
%phitmp = and i64 %42, 4294967295
%106 = load i64, i64* %sv_1, align 8
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = icmp eq i64 %108, 0
%110 = icmp eq i1 %109, false
store i64 %phitmp, i64* %rbx.5.reg2mem
br i1 %110, label LBL_32, label LBL_36
LBL_32:
%111 = load i64, i64* %39, align 8
%112 = call i64 @FUNC(i64 %10, i64 %1, i64 %108, i64 %111, i64 %41)
%113 = trunc i64 %112 to i32
%114 = icmp slt i32 %113, 0
%115 = icmp eq i1 %114, false
store i64 %108, i64* %.lcssa41.reg2mem
store i64* %107, i64** %.lcssa.reg2mem
store i64 %106, i64* %.in.reg2mem
br i1 %115, label LBL_35, label LBL_34
LBL_33:
%116 = load i64, i64* %39, align 8
%117 = call i64 @FUNC(i64 %10, i64 %1, i64 %127, i64 %116, i64 %41)
%118 = trunc i64 %117 to i32
%119 = icmp slt i32 %118, 0
%120 = icmp eq i1 %119, false
store i64 %127, i64* %.lcssa41.reg2mem
store i64* %126, i64** %.lcssa.reg2mem
store i64 %125, i64* %.in.reg2mem
br i1 %120, label LBL_35, label LBL_34
LBL_34:
%.lcssa.reload = load i64*, i64** %.lcssa.reg2mem
%.lcssa41.reload = load i64, i64* %.lcssa41.reg2mem
%121 = load i64, i64* %.lcssa.reload, align 8
%122 = inttoptr i64 %121 to i8*
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_12, i64 0, i64 0), i8* %122, i64 %.lcssa41.reload)
%124 = zext i32 %123 to i64
store i64 %124, i64* %rbx.5.reg2mem
br label LBL_36
LBL_35:
%.in.reload = load i64, i64* %.in.reg2mem
%125 = add i64 %.in.reload, 8
%126 = inttoptr i64 %125 to i64*
%127 = load i64, i64* %126, align 8
%128 = icmp eq i64 %127, 0
%129 = icmp eq i1 %128, false
store i64 %phitmp, i64* %rbx.5.reg2mem
br i1 %129, label LBL_33, label LBL_36
LBL_36:
%rbx.5.reload = load i64, i64* %rbx.5.reg2mem
%130 = call i64 @FUNC(i64* nonnull %sv_1)
%131 = call i64 @FUNC(i64* nonnull %sv_2)
%132 = call i64 @FUNC(i64* nonnull %sv_3)
%133 = and i64 %rbx.5.reload, 4294967295
ret i64 %133
uselistorder i64 %127, { 2, 1, 0 }
uselistorder i64* %126, { 1, 0 }
uselistorder i64 %125, { 1, 0 }
uselistorder i1 %52, { 1, 0 }
uselistorder i64 %rsi.3.reload, { 1, 0 }
uselistorder i64 %41, { 1, 0, 2 }
uselistorder i64* %39, { 1, 0, 2 }
uselistorder i64 %10, { 2, 0, 3, 1 }
uselistorder i64* %sv_3, { 2, 4, 1, 0, 3, 5, 6 }
uselistorder i64* %sv_2, { 0, 3, 1, 2, 4 }
uselistorder i64* %sv_1, { 0, 2, 1, 3 }
uselistorder i8** %sv_0, { 5, 4, 3, 0, 2, 1 }
uselistorder i64 %1, { 3, 1, 2, 4, 7, 6, 5, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge10.in27.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem62, { 2, 0, 1 }
uselistorder i64* %storemerge9.in26.reg2mem, { 2, 0, 1 }
uselistorder i64* %.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rbx.5.reg2mem, { 0, 3, 12, 4, 11, 10, 2, 13, 1, 9, 5, 8, 7, 6 }
uselistorder [6 x i8]* @gv_10, { 1, 0 }
uselistorder i64 (i64*, i64)* @strv_consume, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @path_join, { 1, 0 }
uselistorder i64 (i64, i8*)* @strjoina, { 1, 0 }
uselistorder i8** @gv_6, { 1, 0 }
uselistorder i64 (i64*)* @free_cleanup, { 3, 2, 1, 0 }
uselistorder i64 4294967284, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64*)* @strjoin, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64)* @unit_file_load_or_readlink, { 3, 0, 2, 1 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
uselistorder [50 x i8]* @gv_1, { 1, 0 }
uselistorder i1 false, { 6, 5, 0, 4, 9, 10, 7, 8, 3, 13, 11, 12, 2, 15, 14, 16, 17, 18, 19, 20, 1 }
uselistorder i64* null, { 1, 2, 3, 4, 0 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder label LBL_36, { 2, 6, 3, 8, 7, 1, 9, 0, 10, 4, 11, 12, 5 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_25, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.