dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | gen_advance_ccount_15571 | gen_advance_ccount | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i32 0, i32* %arg1, align 4
ret i64 %0
} | 1 |
BinRealVul | action_show_18081 | action_show | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
%1 = call i64 @FUNC(i64 0, i64* nonnull %sv_1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_9
LBL_1:
%4 = call i64 @FUNC(i64 1, i64* nonnull %sv_1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %12, label LBL_9, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 2, i64* nonnull %sv_1)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %15, label LBL_9, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 3, i64* nonnull %sv_1)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %18, label LBL_5, label LBL_9
LBL_5:
%19 = call i64 @FUNC(i64 4, i64* nonnull %sv_1)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_8, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i64 5, i64* nonnull %sv_1)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8** %sv_0.0.reg2mem
br i1 %25, label LBL_7, label LBL_9
LBL_7:
%26 = call i64 @FUNC(i64 6, i64* nonnull %sv_1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%. = select i1 %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0)
store i8* %., i8** %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%29 = call i64 @FUNC(i64 7, i64* nonnull %sv_1)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%spec.select = select i1 %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0)
store i8* %spec.select, i8** %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%32 = bitcast i64* %arg2 to i8*
%33 = call i32 (i8*, i8*, ...) @sprintf(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_7, i64 0, i64 0), i8* %sv_0.0.reload)
%34 = sext i32 %33 to i64
ret i64 %34
uselistorder i8** %sv_0.0.reg2mem, { 0, 1, 2, 3, 4, 6, 7, 5 }
uselistorder i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), { 2, 0, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64*)* @test_bit, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 0, 1, 2, 3, 5, 6, 4 }
} | 1 |
BinRealVul | sja1105_static_config_upload_7784 | sja1105_static_config_upload | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rdx.4.reg2mem = alloca i64
%rdx.3.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%r8.1.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = load i32, i32* %1
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%sv_2 = alloca i32, align 4
%8 = call i64 @FUNC(i64 4, i64 0)
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %4, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %4)
%18 = and i64 %17, 4294967295
%19 = call i64 @FUNC(i64 %18, i64 1, i64 0)
%sext = mul i64 %19, 4294967296
%20 = icmp eq i64 %sext, 0
%21 = icmp eq i1 %20, false
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_1, label LBL_28
LBL_1:
%22 = ashr exact i64 %sext, 32
%23 = trunc i64 %17 to i32
%24 = call i64 @FUNC(i64 %4, i64 %22, i32 %23)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_3, label LBL_2
LBL_2:
%28 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %22, i64 %3, i64 %2)
store i64 2, i64* %rax.0.reg2mem
br label LBL_28
LBL_3:
%29 = call i64 @FUNC(i64 %4, i64 %8, i64 1)
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_5, label LBL_4
LBL_4:
%33 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0), i64 1, i64 %8, i64 %3, i64 %2)
store i64 3, i64* %rax.0.reg2mem
br label LBL_28
LBL_5:
%34 = inttoptr i64 %13 to i32*
%35 = call i64 @FUNC(i64 500, i64 1000)
%36 = icmp eq i32 %5, 0
%37 = ptrtoint i32* %sv_2 to i64
%38 = bitcast i32* %sv_2 to i64*
%39 = icmp eq i32 %7, 1
%40 = icmp eq i1 %39, false
%41 = icmp eq i32 %6, 1
%42 = icmp eq i1 %41, false
%43 = icmp eq i1 %36, false
store i32 3, i32* %sv_1.0.reg2mem
store i64 %8, i64* %rcx.0.reg2mem
store i64 1, i64* %rdx.0.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%44 = call i64 @FUNC(i64 %4)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_8, label LBL_7
LBL_7:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%48 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %2)
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
br label LBL_19
LBL_8:
%49 = call i64 @FUNC(i64 1000, i64 5000)
%50 = load i32, i32* %34, align 4
%51 = call i64 @FUNC(i64 %4, i64 1, i32 %50, i64 %22, i64 %18)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_10, label LBL_9
LBL_9:
%55 = zext i32 %50 to i64
%56 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %55, i64 %22, i64 %18, i64 %2)
store i64 %22, i64* %rcx.1.reg2mem
store i64 %55, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br label LBL_19
LBL_10:
%57 = call i64 @FUNC(i64 %4, i64* nonnull %38)
%58 = trunc i64 %57 to i32
%59 = icmp slt i32 %58, 0
store i64 %22, i64* %rcx.1.reg2mem
store i64 %37, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br i1 %59, label LBL_19, label LBL_11
LBL_11:
%60 = load i32, i32* %sv_2, align 4
%61 = icmp eq i32 %60, 1
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_13, label LBL_12
LBL_12:
%63 = load i64, i64* %10, align 8
%64 = add i64 %63, 8
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_4, i64 0, i64 0), i64 %4, i64 %66, i64 %18, i64 %2)
store i64 %66, i64* %rcx.1.reg2mem
store i64 %4, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br label LBL_19
LBL_13:
br i1 %40, label LBL_15, label LBL_14
LBL_14:
%68 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_5, i64 0, i64 0), i64 %37, i64 %22, i64 %18, i64 %2)
store i64 %22, i64* %rcx.1.reg2mem
store i64 %37, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br label LBL_19
LBL_15:
br i1 %42, label LBL_17, label LBL_16
LBL_16:
%69 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_6, i64 0, i64 0), i64 %37, i64 %22, i64 %18, i64 %2)
store i64 %22, i64* %rcx.1.reg2mem
store i64 %37, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br label LBL_19
LBL_17:
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i64 %22, i64* %rcx.2.reg2mem
store i64 %37, i64* %rdx.2.reg2mem
store i64 %18, i64* %r8.2.reg2mem
br i1 %43, label LBL_20, label LBL_18
LBL_18:
%70 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_7, i64 0, i64 0), i64 %37, i64 %22, i64 %18, i64 %2)
store i64 %22, i64* %rcx.1.reg2mem
store i64 %37, i64* %rdx.1.reg2mem
store i64 %18, i64* %r8.1.reg2mem
br label LBL_19
LBL_19:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%71 = add nsw i32 %sv_1.0.reload, -1
%72 = icmp eq i32 %71, 0
%73 = icmp eq i1 %72, false
store i32 %71, i32* %sv_1.0.reg2mem
store i64 %rcx.1.reload, i64* %rcx.0.reg2mem
store i64 %rdx.1.reload, i64* %rdx.0.reg2mem
store i64 %r8.1.reload, i64* %r8.0.reg2mem
store i32 %71, i32* %sv_1.1.reg2mem
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
store i64 %r8.1.reload, i64* %r8.2.reg2mem
br i1 %73, label LBL_6, label LBL_20
LBL_20:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%74 = icmp eq i32 %sv_1.1.reload, 0
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_22, label LBL_21
LBL_21:
%76 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_8, i64 0, i64 0), i64 %rdx.2.reload, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %2)
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_27
LBL_22:
%77 = icmp eq i32 %sv_1.1.reload, 3
store i64 %rdx.2.reload, i64* %rdx.3.reg2mem
br i1 %77, label LBL_24, label LBL_23
LBL_23:
%78 = sub i32 3, %sv_1.1.reload
%79 = zext i32 %78 to i64
%80 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_9, i64 0, i64 0), i64 %79, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %2)
store i64 %79, i64* %rdx.3.reg2mem
br label LBL_24
LBL_24:
%rdx.3.reload = load i64, i64* %rdx.3.reg2mem
%81 = call i64 @FUNC(i64 %4)
%82 = trunc i64 %81 to i32
%83 = icmp slt i32 %82, 0
%84 = icmp eq i1 %83, false
%.pre = and i64 %81, 4294967295
store i64 %rdx.3.reload, i64* %rdx.4.reg2mem
br i1 %84, label LBL_26, label LBL_25
LBL_25:
%85 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_10, i64 0, i64 0), i64 %.pre, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %2)
store i64 %.pre, i64* %rdx.4.reg2mem
br label LBL_26
LBL_26:
%rdx.4.reload = load i64, i64* %rdx.4.reg2mem
%86 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_11, i64 0, i64 0), i64 %rdx.4.reload, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %2)
store i64 %.pre, i64* %sv_0.0.reg2mem
br label LBL_27
LBL_27:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%87 = call i64 @FUNC(i64 %22)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_28
LBL_28:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %50, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %37, { 3, 7, 0, 2, 6, 1, 5, 4 }
uselistorder i64 %22, { 11, 4, 10, 0, 3, 9, 2, 8, 5, 1, 7, 12, 6, 13 }
uselistorder i64 %18, { 5, 12, 0, 4, 11, 3, 10, 2, 9, 6, 1, 8, 13, 7, 14 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %16, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32* %sv_2, { 1, 2, 0 }
uselistorder i64 %4, { 2, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64 %2, { 11, 9, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdx.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.0.reg2mem, { 1, 0 }
uselistorder i64* %rcx.1.reg2mem, { 0, 6, 5, 4, 3, 7, 2, 1 }
uselistorder i64* %rdx.1.reg2mem, { 0, 6, 5, 4, 3, 7, 2, 1 }
uselistorder i64* %r8.1.reg2mem, { 0, 6, 5, 4, 3, 7, 2, 1 }
uselistorder i64* %rdx.4.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %1, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_info, { 1, 0 }
uselistorder i32 3, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @usleep_range, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_err, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 0, 1, 2, 4, 5, 6, 3, 7, 8 }
uselistorder i1 false, { 0, 1, 2, 6, 7, 8, 3, 4, 5, 9, 10, 11 }
uselistorder i64 1, { 5, 1, 3, 6, 0, 7, 2, 4 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder label LBL_28, { 1, 2, 3, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_19, { 1, 2, 3, 4, 0, 5, 6 }
} | 1 |
BinRealVul | rfbSendServerCutText_11867 | rfbSendServerCutText | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = and i64 %arg3, 4294967295
%5 = inttoptr i64 %arg2 to i32*
store i64 %1, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
store i32 0, i32* %sv_0, align 4
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %.reload, i32* nonnull %sv_0, i64 8)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
%12 = call i64 @FUNC(i64 %.reload)
br label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %0)
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
store i64 %13, i64* %.reg2mem
br i1 %15, label LBL_2, label LBL_7
LBL_5:
%16 = call i64 @FUNC(i64 %.reload, i32* %5, i64 %4)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_6
LBL_6:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
%21 = call i64 @FUNC(i64 %.reload)
br label LBL_4
LBL_7:
%22 = call i64 @FUNC(i64 %0)
ret i64 %22
uselistorder i64 %.reload, { 1, 2, 0, 3 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @rfbCloseClient, { 1, 0 }
uselistorder i64 (i8*)* @rfbLogPerror, { 1, 0 }
uselistorder i64 (i64, i32*, i64)* @WriteExact, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i1 false, { 1, 3, 2, 0 }
uselistorder i64 (i64)* @rfbClientIteratorNext, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | pgd_alloc_12244 | pgd_alloc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %0)
ret i64 %6
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 1, 0 }
} | 1 |
BinRealVul | auth_master_run_cmd_18550 | auth_master_run_cmd | 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
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, -1
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %5)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_9
LBL_2:
%13 = load i64, i64* @gv_0, align 8
%14 = call i64 @FUNC(i64 %5)
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %5, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 1, i64 0, i64 %4, i64 %2, i64 %1)
%25 = load i64, i64* %16, align 8
%26 = call i64 @FUNC(i64 %25, i64 %24)
store i32 1, i32* %20, align 4
br label LBL_4
LBL_4:
%27 = load i64, i64* %16, align 8
%28 = call i64 @FUNC(i64 %27, i64 %arg2)
%29 = load i64, i64* %16, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = load i64, i64* %16, align 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = call i32* @__errno_location()
%36 = load i32, i32* %32, align 4
store i32 %36, i32* %35, align 4
%37 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0))
br label LBL_7
LBL_6:
%38 = add i64 %5, 24
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %40)
br label LBL_7
LBL_7:
%42 = call i64 @FUNC(i64 %5, i64 %13)
%43 = add i64 %5, 8
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = icmp eq i32 %45, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %46, label LBL_9, label LBL_8
LBL_8:
store i32 0, i32* %44, align 4
%47 = call i64 @FUNC(i64 %5)
store i64 4294967295, 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* %16, { 1, 3, 2, 0, 4 }
uselistorder i64 %5, { 1, 3, 2, 4, 7, 6, 5, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @o_stream_send_str, { 1, 0 }
uselistorder i64 0, { 0, 2, 3, 8, 4, 5, 6, 7, 1, 9, 10 }
uselistorder label LBL_9, { 2, 0, 1 }
} | 1 |
BinRealVul | r128_engine_reset_11496 | r128_engine_reset | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i32 @putchar(i32 10)
%2 = call i64 @FUNC(i64 %0)
ret i64 %2
} | 1 |
BinRealVul | ict_int_1519 | ict_int | define i64 @FUNC(i32* %arg1, i32* %arg2, i32* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i32*
%sv_1.06.reg2mem = alloca i32*
%sv_2.07.reg2mem = alloca i32*
%storemerge8.reg2mem = alloca i32
%0 = icmp sgt i32 %arg4, 0
store i32 0, i32* %storemerge8.reg2mem
store i32* %arg3, i32** %sv_2.07.reg2mem
store i32* %arg2, i32** %sv_1.06.reg2mem
store i32* %arg1, i32** %sv_0.05.reg2mem
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_3
LBL_1:
%sv_0.05.reload = load i32*, i32** %sv_0.05.reg2mem
%sv_1.06.reload = load i32*, i32** %sv_1.06.reg2mem
%sv_2.07.reload = load i32*, i32** %sv_2.07.reg2mem
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%1 = load i32, i32* %sv_0.05.reload, align 4
%2 = load i32, i32* %sv_2.07.reload, align 4
%3 = add i32 %2, %1
%4 = mul i32 %2, 26345
%5 = add i32 %4, 32768
%6 = ashr i32 %5, 16
%7 = add i32 %3, %6
%8 = load i32, i32* @gv_0, align 4
%9 = load i32, i32* %sv_1.06.reload, align 4
%10 = mul i32 %9, %8
%11 = add i32 %10, 32768
%12 = ashr i32 %11, 16
%13 = sub i32 %1, %12
%14 = load i32, i32* inttoptr (i64 4210736 to i32*), align 16
%15 = mul i32 %14, %2
%16 = add i32 %15, 32768
%17 = ashr i32 %16, 16
%18 = sub i32 %13, %17
%19 = mul i32 %9, 2
%20 = add i32 %19, %1
%21 = mul i32 %9, -14942
%22 = add i32 %21, 32768
%23 = ashr i32 %22, 16
%24 = add i32 %20, %23
%25 = ptrtoint i32* %sv_0.05.reload to i64
%26 = add i64 %25, 4
%27 = inttoptr i64 %26 to i32*
store i32 %7, i32* %sv_0.05.reload, align 4
%28 = ptrtoint i32* %sv_1.06.reload to i64
%29 = add i64 %28, 4
%30 = inttoptr i64 %29 to i32*
store i32 %18, i32* %sv_1.06.reload, align 4
%31 = ptrtoint i32* %sv_2.07.reload to i64
%32 = add i64 %31, 4
%33 = inttoptr i64 %32 to i32*
store i32 %24, i32* %sv_2.07.reload, align 4
%34 = add nuw nsw i32 %storemerge8.reload, 1
%exitcond = icmp eq i32 %34, %arg4
store i32 %34, i32* %storemerge8.reg2mem
store i32* %33, i32** %sv_2.07.reg2mem
store i32* %30, i32** %sv_1.06.reg2mem
store i32* %27, i32** %sv_0.05.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%phitmp = zext i32 %arg4 to i64
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_3
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i32 %9, { 2, 0, 1 }
uselistorder i32 %2, { 0, 2, 1 }
uselistorder i32 %1, { 1, 0, 2 }
uselistorder i32* %sv_2.07.reload, { 1, 0, 2 }
uselistorder i32* %sv_1.06.reload, { 1, 0, 2 }
uselistorder i32* %sv_0.05.reload, { 1, 2, 0 }
uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_2.07.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_1.06.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 %arg4, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | qemu_put_qemu_file_15627 | qemu_put_qemu_file | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp slt i32 %3, 1
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %0, i32 %3)
store i32 0, i32* %2, align 4
%phitmp = zext i32 %3 to i64
store i64 %phitmp, 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 i32 %3, { 1, 0, 2 }
} | 1 |
BinRealVul | get_uint32_equal_283 | get_uint32_equal | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = bitcast i32* %sv_0 to i64*
%4 = call i64 @FUNC(i64 %2, i64* nonnull %3)
%5 = trunc i64 %1 to i32
%6 = load i32, i32* %sv_0, align 4
%7 = icmp eq i32 %6, %5
%8 = icmp eq i1 %7, false
%. = select i1 %8, i64 4294967274, i64 0
ret i64 %.
} | 0 |
BinRealVul | v9fs_list_xattr_13850 | v9fs_list_xattr | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_1.16.reg2mem = alloca i64
%sv_0.17.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%rdi.010.reg2mem = alloca i64
%sv_3.011.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %1, i64 %2)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %2)
%6 = icmp eq i32 %4, -1
%7 = icmp eq i1 %6, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_15
LBL_1:
%8 = call i64 @FUNC(i64 %0)
%9 = and i64 %3, 4294967295
%10 = call i64 @FUNC(i64 %9, i64 %8, i64 %arg3, i64 0)
%11 = icmp eq i64 %10, 0
%12 = icmp slt i64 %10, 0
%13 = icmp eq i1 %12, false
%14 = icmp eq i1 %11, false
%15 = icmp eq i1 %13, %14
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %8)
%17 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_15
LBL_3:
%18 = call i64 @FUNC(i64 %10)
%19 = call i64 @FUNC(i64 %9, i64 %8, i64 %18, i64 %10)
%20 = call i64 @FUNC(i64 %8)
%21 = call i64 @FUNC(i64 %9)
%22 = icmp slt i64 %19, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_4, label LBL_6
LBL_4:
%24 = icmp sgt i64 %19, 0
store i64 %arg3, i64* %sv_1.1.lcssa.reg2mem
store i64 0, i64* %sv_0.1.lcssa.reg2mem
br i1 %24, label LBL_5, label LBL_13
LBL_5:
%25 = icmp slt i64* %arg1, null
store i64 %18, i64* %sv_3.011.in.reg2mem
store i64 %9, i64* %rdi.010.reg2mem
store i64 0, i64* %sv_2.08.reg2mem
store i64 0, i64* %sv_0.17.reg2mem
store i64 %arg3, i64* %sv_1.16.reg2mem
br label LBL_7
LBL_6:
%26 = call i64 @FUNC(i64 %18)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_15
LBL_7:
%sv_1.16.reload = load i64, i64* %sv_1.16.reg2mem
%sv_0.17.reload = load i64, i64* %sv_0.17.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%rdi.010.reload = load i64, i64* %rdi.010.reg2mem
%sv_3.011.in.reload = load i64, i64* %sv_3.011.in.reg2mem
%27 = call i64 @FUNC(i64 %rdi.010.reload, i64 %sv_3.011.in.reload)
%28 = icmp eq i64 %27, 0
store i64 %sv_1.16.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.17.reload, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_12, label LBL_8
LBL_8:
%29 = icmp eq i64 %sv_1.16.reload, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_10, label LBL_9
LBL_9:
%31 = add i64 %sv_0.17.reload, %1
store i64 %sv_1.16.reload, i64* %sv_1.0.reg2mem
store i64 %31, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_10:
store i64 %1, i64* %sv_0.2.reg2mem
br i1 %25, label LBL_14, label LBL_11
LBL_11:
%32 = add i64 %sv_1.16.reload, %1
store i64 %32, i64* %sv_1.0.reg2mem
store i64 %1, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_3.011 = inttoptr i64 %sv_3.011.in.reload to i8*
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%33 = call i32 @strlen(i8* %sv_3.011)
%34 = sext i32 %33 to i64
%35 = add nsw i64 %34, 1
%36 = add i64 %35, %sv_2.08.reload
%37 = add i64 %35, %sv_3.011.in.reload
%38 = icmp sgt i64 %19, %36
store i64 %37, i64* %sv_3.011.in.reg2mem
store i64 %sv_3.011.in.reload, i64* %rdi.010.reg2mem
store i64 %36, i64* %sv_2.08.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.17.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.16.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.lcssa.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %38, label LBL_7, label LBL_13
LBL_13:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%39 = icmp eq i64 %sv_1.1.lcssa.reload, 0
%40 = sub i64 %sv_1.1.lcssa.reload, %arg3
%spec.select = select i1 %39, i64 %sv_0.1.lcssa.reload, i64 %40
store i64 %spec.select, i64* %sv_0.2.reg2mem
br label LBL_14
LBL_14:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%41 = call i64 @FUNC(i64 %18)
store i64 %sv_0.2.reload, 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 %sv_1.1.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_3.011.in.reload, { 0, 3, 1, 2 }
uselistorder i64 %sv_0.17.reload, { 1, 0 }
uselistorder i64 %sv_1.16.reload, { 3, 0, 2, 1 }
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i64 %18, { 1, 2, 0, 3 }
uselistorder i64 %10, { 2, 1, 0, 4, 3 }
uselistorder i64 %9, { 0, 2, 3, 1, 4 }
uselistorder i64 %8, { 2, 1, 0, 3 }
uselistorder i64 %1, { 1, 2, 0, 3, 4 }
uselistorder i64* %sv_3.011.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.16.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @close_preserve_errno, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @flistxattrat_nofollow, { 1, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 4 }
uselistorder i64 (i64)* @g_free, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg3, { 2, 1, 0, 3 }
uselistorder label LBL_15, { 1, 2, 3, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | gxf_read_index_15353 | gxf_read_index | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %arg2 to i32
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %3, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %7)
%14 = call i64 @FUNC(i64 %7)
%15 = add i32 %4, -8
%16 = urem i64 %2, 2
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_2, label LBL_1
LBL_1:
%18 = zext i32 %15 to i64
%19 = call i64 @FUNC(i64 %7, i64 %18)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%20 = trunc i64 %14 to i32
%21 = icmp ult i32 %20, 1001
store i32 %20, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = and i64 %14, 4294967295
%23 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %22, i64 %22, i64 %1)
store i32 1000, i32* %sv_0.0.reg2mem
store i64 %22, i64* %rcx.0.reg2mem
store i64 %22, i64* %r8.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%24 = mul i32 %sv_0.0.reload, 4
%25 = icmp ult i32 %15, %24
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%26 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1)
%27 = zext i32 %15 to i64
%28 = call i64 @FUNC(i64 %7, i64 %27)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%29 = call i64 @FUNC(i64 %12, i64 0, i64 0, i64 0, i64 0, i64 0)
%30 = icmp eq i32 %sv_0.0.reload, 0
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%wide.trip.count = zext i32 %sv_0.0.reload to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%31 = mul i64 %indvars.iv.reload, %13
%32 = add i64 %31, 1
%33 = call i64 @FUNC(i64 %7)
%34 = mul i64 %33, 1024
%35 = and i64 %34, 4398046510080
%36 = and i64 %32, 4294967295
%37 = call i64 @FUNC(i64 %12, i64 %35, i64 %36, i64 0, i64 0, i64 0)
%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
br i1 %exitcond, label LBL_9, label LBL_8
LBL_9:
%38 = sub i32 %15, %24
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %7, i64 %39)
store i64 %40, 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 i32 %sv_0.0.reload, { 1, 0, 2 }
uselistorder i32 %15, { 2, 1, 0, 3 }
uselistorder i64 %7, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @av_add_index_entry, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64, i64)* @avio_skip, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | add_item_to_array_9603 | add_item_to_array | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp ne i64 %arg2, 0
%1 = icmp eq i64 %arg1, 0
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_1, label LBL_5
LBL_1:
%3 = add i64 %arg1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
store i64 %arg2, i64* %4, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = inttoptr i64 %sv_0.0.reload to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %arg2)
store i64 1, 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, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | spapr_tce_table_class_init_2782 | spapr_tce_table_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198662, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198669, i64* %4, align 8
%5 = call i64 @FUNC(i64* nonnull @gv_1)
%6 = call i64 @FUNC(i64 1, i64 4198690)
%7 = call i64 @FUNC(i64 2, i64 4198697)
ret i64 %7
uselistorder i64 (i64, i64)* @spapr_register_hypercall, { 1, 0 }
} | 0 |
BinRealVul | notify_guest_bh_13963 | notify_guest_bh | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = ptrtoint i64* %sv_0 to i64
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
%6 = add nuw nsw i64 %5, 63
%7 = udiv i64 %6, 64
%.tr = trunc i64 %7 to i32
%8 = mul i32 %.tr, 8
%.lhs.trunc = add nuw nsw i32 %8, 15
%9 = udiv i32 %.lhs.trunc, 16
%10 = mul i32 %9, 16
%11 = zext i32 %10 to i64
%12 = sub i64 %3, %11
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %12 to i64*
%17 = inttoptr i64 %15 to i64*
%18 = call i64* @memcpy(i64* %16, i64* %17, i32 %8)
%19 = load i64, i64* %14, align 8
%20 = inttoptr i64 %19 to i64*
%21 = call i64* @memset(i64* %20, i32 0, i32 %8)
%22 = icmp eq i32 %4, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %22, label LBL_7, label LBL_1
LBL_1:
%23 = add i64 %2, 16
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%25 = mul i64 %.reload, 8
%26 = add i64 %25, %12
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %28, i64* %storemerge12.reg2mem
br i1 %30, label LBL_3, label LBL_6
LBL_3:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%31 = call i64 @FUNC(i64 %storemerge12.reload)
%32 = trunc i64 %31 to i32
%33 = add i32 %storemerge3.reload, %32
%34 = load i64, i64* %24, align 8
%35 = zext i32 %33 to i64
%36 = call i64 @FUNC(i64 %34, i64 %35)
%37 = load i64, i64* %24, align 8
%38 = call i64 @FUNC(i64 %37, i64 %36)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_5, label LBL_4
LBL_4:
%41 = call i64 @FUNC(i64 %36)
%42 = call i64 @FUNC(i64 %41)
br label LBL_5
LBL_5:
%43 = add i64 %storemerge12.reload, -1
%44 = and i64 %43, %storemerge12.reload
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 %44, i64* %storemerge12.reg2mem
br i1 %46, label LBL_3, label LBL_6
LBL_6:
%47 = add i32 %storemerge3.reload, 64
%48 = icmp ult i32 %47, %4
%49 = zext i32 %47 to i64
store i64 %49, i64* %.reg2mem
store i32 %47, i32* %storemerge3.reg2mem
store i64 %49, i64* %.lcssa.reg2mem
br i1 %48, label LBL_2, label LBL_7
LBL_7:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %47, { 0, 2, 1 }
uselistorder i64 %storemerge12.reload, { 2, 0, 1 }
uselistorder i32 %8, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 4, 0, 1, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ext4_get_inode_flags_8661 | ext4_get_inode_flags | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = and i32 %6, -32
%8 = urem i32 %3, 8
%9 = or i32 %8, %7
%10 = and i32 %3, 8
%11 = or i32 %9, %10
%12 = and i32 %3, 16
%13 = icmp eq i32 %12, 0
%14 = or i32 %12, %11
%rax.0 = select i1 %13, i64 0, i64 %2
store i32 %14, i32* %5, align 4
ret i64 %rax.0
uselistorder i32 %3, { 2, 1, 0 }
uselistorder i32 8, { 1, 0 }
} | 0 |
BinRealVul | cifs_writepage_locked_9763 | cifs_writepage_locked | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC()
%4 = trunc i64 %1 to i32
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%9 = trunc i64 %2 to i32
%10 = or i32 %4, 4
store i32 %10, i32* %arg1, align 4
%11 = ptrtoint i32* %arg1 to i64
%12 = icmp eq i32 %9, 1
%13 = icmp eq i1 %12, false
br label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %11, i64 0, i64 4096)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, -11
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_5, label LBL_4
LBL_4:
br i1 %13, label LBL_8, label LBL_3
LBL_5:
%18 = icmp eq i32 %15, 0
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = or i32 %4, 2
store i32 %19, i32* %arg1, align 4
br label LBL_8
LBL_7:
%20 = or i32 %4, 1
store i32 %20, i32* %arg1, align 4
br label LBL_8
LBL_8:
%21 = and i32 %4, -5
store i32 %21, i32* %arg1, align 4
%22 = and i64 %3, 4294967295
%23 = call i64 @FUNC(i64 %22)
%24 = and i64 %14, 4294967295
ret i64 %24
uselistorder i32 %4, { 1, 3, 2, 4, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* %arg1, { 2, 1, 0, 3, 4 }
uselistorder label LBL_8, { 1, 2, 0 }
} | 0 |
BinRealVul | wdm_find_device_9340 | wdm_find_device | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge4.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%storemerge.in1 = load i64, i64* @gv_1, align 8
%2 = icmp eq i64 %storemerge.in1, ptrtoint (i64* @gv_1 to i64)
%3 = icmp eq i1 %2, false
store i64 %storemerge.in1, i64* %storemerge4.in.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%storemerge4.in.reload = load i64, i64* %storemerge4.in.reg2mem
%storemerge4 = add i64 %storemerge4.in.reload, -8
%4 = inttoptr i64 %storemerge4 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, %0
store i64 %storemerge4, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = inttoptr i64 %storemerge4.in.reload to i64*
%storemerge.in = load i64, i64* %7, align 8
%8 = icmp eq i64 %storemerge.in, ptrtoint (i64* @gv_1 to i64)
%9 = icmp eq i1 %8, false
store i64 %storemerge.in, i64* %storemerge4.in.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_1, label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %sv_0.0.reload
uselistorder i64 %storemerge4.in.reload, { 1, 0 }
uselistorder i64* %storemerge4.in.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 ptrtoint (i64* @gv_1 to i64), { 1, 0 }
uselistorder i64* @gv_1, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | qdev_prop_check_globals_14180 | qdev_prop_check_globals | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%rcx.14.reg2mem = alloca i64
%sv_0.15.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
store i32* bitcast (i32** @gv_0 to i32*), i32** %storemerge6.reg2mem
store i32 0, i32* %sv_0.15.reg2mem
br label LBL_1
LBL_1:
%rcx.14.reload = load i64, i64* %rcx.14.reg2mem
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%storemerge6.reload = load i32*, i32** %storemerge6.reg2mem
%3 = load i32, i32* %storemerge6.reload, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%.pre = ptrtoint i32* %storemerge6.reload to i64
store i64 %rcx.14.reload, i64* %rcx.0.reg2mem
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_8, label LBL_2
LBL_2:
%6 = add i64 %.pre, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
store i64 %rcx.14.reload, i64* %rcx.0.reg2mem
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_8, label LBL_3
LBL_3:
%10 = add i64 %.pre, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %.pre, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = load i64, i64* %11, align 8
%21 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_2, i64 0, i64 0), i64 %20, i64 %19, i64 %rcx.14.reload, i64 %2, i64 %1)
store i64 %rcx.14.reload, i64* %rcx.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%22 = inttoptr i64 %14 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %rcx.14.reload, i64* %rcx.0.reg2mem
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_8, label LBL_6
LBL_6:
%26 = load i32, i32* %storemerge6.reload, align 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 %rcx.14.reload, i64* %rcx.0.reg2mem
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%29 = add i64 %.pre, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %.pre, 16
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = load i64, i64* %11, align 8
%36 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i64 %35, i64 %34, i64 %31, i64 %2, i64 %1)
store i64 %31, i64* %rcx.0.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%37 = add i64 %.pre, 32
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = inttoptr i64 %39 to i32*
%41 = icmp eq i64 %39, 0
%42 = icmp eq i1 %41, false
store i32* %40, i32** %storemerge6.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.15.reg2mem
store i64 %rcx.0.reload, i64* %rcx.14.reg2mem
br i1 %42, label LBL_1, label LBL_9
LBL_9:
%43 = zext i32 %sv_0.0.reload to i64
ret i64 %43
uselistorder i64* %11, { 1, 0, 2 }
uselistorder i64 %.pre, { 0, 3, 4, 5, 2, 1 }
uselistorder i32* %storemerge6.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.15.reload, { 2, 1, 3, 0 }
uselistorder i64 %rcx.14.reload, { 3, 2, 1, 5, 4, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32** %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.15.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.14.reg2mem, { 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 5, 4, 3, 2, 6, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 5, 4, 3, 2, 6, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 }
uselistorder i64 0, { 1, 2, 3, 4, 5, 9, 6, 7, 0, 8 }
uselistorder i1 false, { 4, 0, 1, 2, 3 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i32 1, { 4, 3, 9, 8, 7, 6, 5, 2, 10, 1, 0 }
uselistorder label LBL_8, { 2, 3, 4, 5, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | get_group_10522 | get_group | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = and i64 %arg1, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %arg1, i64* %sv_0.0.in.in.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %6)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %sv_0.0.in.in.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = mul i64 %sv_0.0.in.in.reload, 4294967296
%sv_0.0 = ashr exact i64 %sv_0.0.in, 32
%11 = icmp eq i64* %arg3, null
br i1 %11, label LBL_2.LBL_5_crit_edge, label LBL_4
LBL_3:
%.pre = and i64 %sv_0.0, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%12 = ptrtoint i64* %arg3 to i64
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = and i64 %sv_0.0, 4294967295
%17 = call i64 @FUNC(i64 %15, i64 %16)
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
store i64 %19, i64* %arg3, align 8
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22, i64 %16)
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
store i64 %25, i64* %arg3, align 8
%26 = add i64 %12, 8
%27 = call i64 @FUNC(i64 %26, i64 1)
store i64 %16, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
ret i64 %.pre-phi.reload
uselistorder i64 %sv_0.0, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @per_cpu_ptr, { 2, 1, 0 }
uselistorder i64* %arg3, { 0, 1, 3, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | vhost_dev_stop_4662 | vhost_dev_stop | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = ptrtoint i32* %arg1 to i64
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = and i64 %1, 4294967295
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%9 = load i64, i64* %7, align 8
%10 = call i64 @FUNC(i64 %5, i64 %2, i64 %9, i32 %storemerge2.reload)
%11 = add i32 %storemerge2.reload, 1
%12 = sext i32 %11 to i64
%13 = icmp sgt i64 %8, %12
store i32 %11, i32* %storemerge2.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_3:
%14 = add i64 %5, 16
%15 = call i64 @FUNC(i64 %14, i64 0, i64 -1)
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%23 = and i64 %18, 4294967295
%24 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %22, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i64 %23)
%25 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%26 = call i32 @fflush(%_IO_FILE* %25)
call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_3, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0))
br label LBL_5
LBL_5:
%27 = add i64 %5, 20
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
%29 = add i64 %5, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31)
store i64 0, i64* %30, align 8
%33 = add i64 %5, 32
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %34, align 8
ret i64 %5
uselistorder i32 %storemerge2.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mpegts_read_close_17387 | mpegts_read_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = mul i64 %indvars.iv.reload, 8
%3 = add i64 %2, %0
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0, i64 %5)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
ret i64 0
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | test_server_free_14550 | test_server_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.01.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = add i64 %arg1, 32
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
store i64 %2, i64* %rdi.01.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%rdi.01.reload = load i64, i64* %rdi.01.reg2mem
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = mul i64 %.reload, 4
%9 = add i64 %rdi.01.reload, %8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i32 @close(i32 %11)
%14 = add i32 %storemerge2.reload, 1
%15 = load i32, i32* %5, align 4
%16 = zext i32 %15 to i64
%17 = sext i32 %14 to i64
%18 = icmp slt i64 %17, %16
store i64 %17, i64* %.reg2mem
store i32 %14, i32* %storemerge2.reg2mem
store i64 %12, i64* %rdi.01.reg2mem
br i1 %18, label LBL_1, label LBL_2
LBL_2:
%19 = add i64 %arg1, 12
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = call i32 @close(i32 %21)
br label LBL_4
LBL_4:
%24 = add i64 %arg1, 16
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i8*
%28 = call i32 @unlink(i8* %27)
%29 = load i64, i64* %25, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %arg1, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33)
%35 = call i64 @FUNC(i64 %arg1)
ret i64 %35
uselistorder i32* %5, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.01.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2, 4, 3, 5 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | flv_set_video_codec_472 | flv_set_video_codec | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.06.reg2mem = alloca i64
%rdi.0.ph.reg2mem = alloca i64
%.pre-phi5.ph.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
%sext = mul i64 %arg3, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = and i64 %5, 4294967295
store i64 %6, i64* @0, align 8
%trunc = trunc i64 %5 to i32
switch i32 %trunc, label LBL_15 [
i32 1, label LBL_1
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_4
i32 5, label LBL_5
i32 6, label LBL_14
]
LBL_1:
%7 = bitcast i64* %arg2 to i32*
store i32 256, i32* %7, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_2:
%8 = bitcast i64* %arg2 to i32*
store i32 257, i32* %8, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_3:
%9 = bitcast i64* %arg2 to i32*
store i32 258, i32* %9, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_4:
%10 = bitcast i64* %arg2 to i32*
store i32 259, i32* %10, align 4
br label LBL_6
LBL_5:
%11 = bitcast i64* %arg2 to i32*
store i32 260, i32* %11, align 4
br label LBL_6
LBL_6:
%12 = trunc i64 %arg4 to i32
%13 = icmp eq i32 %12, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_16, label LBL_7
LBL_7:
%14 = add i64 %3, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label LBL_7.LBL_11_crit_edge, label LBL_9
LBL_8:
%.pre = add i64 %3, 16
%.pre4 = inttoptr i64 %.pre to i64*
store i64* %.pre4, i64** %.pre-phi5.ph.reg2mem
store i64 %4, i64* %rdi.0.ph.reg2mem
br label LBL_11
LBL_9:
%18 = call i64 @FUNC(i64 1)
%19 = add i64 %3, 16
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = icmp eq i64 %18, 0
store i64 1, i64* %rdi.06.reg2mem
br i1 %21, label LBL_13, label LBL_10
LBL_10:
store i32 1, i32* %15, align 4
store i64* %20, i64** %.pre-phi5.ph.reg2mem
store i64 1, i64* %rdi.0.ph.reg2mem
br label LBL_11
LBL_11:
%rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem
%.pre-phi5.ph.reload = load i64*, i64** %.pre-phi5.ph.reg2mem
%.pr = load i64, i64* %.pre-phi5.ph.reload, align 8
%22 = icmp eq i64 %.pr, 0
store i64 %rdi.0.ph.reload, i64* %rdi.06.reg2mem
br i1 %22, label LBL_13, label LBL_12
LBL_12:
%23 = call i64 @FUNC(i64 %rdi.0.ph.reload)
%24 = trunc i64 %23 to i8
%25 = inttoptr i64 %.pr to i8*
store i8 %24, i8* %25, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_16
LBL_13:
%rdi.06.reload = load i64, i64* %rdi.06.reg2mem
%26 = call i64 @FUNC(i64 %rdi.06.reload, i64 1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_16
LBL_14:
%27 = bitcast i64* %arg2 to i32*
store i32 261, i32* %27, align 4
store i64 3, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%28 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %2, i64 %1)
%29 = add i64 %3, 4
%30 = inttoptr i64 %29 to i32*
store i32 %trunc, i32* %30, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.pr, { 1, 0 }
uselistorder i64 %rdi.0.ph.reload, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 3, 1, 0, 2 }
uselistorder i64** %.pre-phi5.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.06.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64* %arg2, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder label LBL_16, { 0, 7, 6, 5, 4, 3, 2, 1 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | network_to_result_1239 | network_to_result | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = call i32 @ntohl(i32 %3)
%5 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %5, align 4
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
store i64 %9, i64* %7, align 8
ret i64 %9
uselistorder i64 %9, { 1, 0 }
uselistorder i64 (i64)* @ntohll, { 1, 0 }
uselistorder i32 (i32)* @ntohl, { 2, 1, 0 }
} | 0 |
BinRealVul | bdrv_qed_open_56 | bdrv_qed_open | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = add i64 %1, 200
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
store i64 %1, i64* %6, align 8
%7 = add i64 %5, 88
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %7, i64 0, i64* nonnull %sv_2, i64 0)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = and i64 %9, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_23
LBL_2:
%14 = add i64 %5, 32
%15 = call i64 @FUNC(i64* nonnull %sv_2, i64 %14)
%16 = inttoptr i64 %14 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 5326148
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %18, label LBL_3, label LBL_23
LBL_3:
%19 = add i64 %5, 40
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %26, label LBL_4, label LBL_23
LBL_4:
%27 = call i64 @FUNC(i64 %22)
store i64 %27, i64* %sv_2, align 8
%28 = icmp slt i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 %27, i64* %rax.0.reg2mem
br i1 %29, label LBL_5, label LBL_23
LBL_5:
%30 = call i64 @FUNC(i64 %5, i64 %27)
%sext = mul i64 %30, 4294967296
%31 = ashr exact i64 %sext, 32
%32 = add i64 %5, 8
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = add i64 %5, 44
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %37)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %41, label LBL_6, label LBL_23
LBL_6:
%42 = load i32, i32* %35, align 4
%43 = load i32, i32* %20, align 4
%44 = add i64 %5, 48
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = zext i32 %43 to i64
%48 = zext i32 %46 to i64
%49 = call i64 @FUNC(i64 %48, i64 %47, i32 %42)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %52, label LBL_7, label LBL_23
LBL_7:
%53 = add i64 %5, 52
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = zext i32 %55 to i64
%57 = call i64 @FUNC(i64 %5, i64 %56)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
%60 = icmp eq i1 %59, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %60, label LBL_8, label LBL_23
LBL_8:
%61 = load i32, i32* %20, align 4
%62 = load i32, i32* %35, align 4
%63 = mul i32 %62, %61
%64 = udiv i32 %63, 8
%65 = add i64 %5, 16
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = load i32, i32* %20, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = trunc i64 %69 to i32
%71 = add i32 %70, -1
%72 = add i64 %5, 20
%73 = inttoptr i64 %72 to i32*
store i32 %71, i32* %73, align 4
%74 = load i32, i32* %66, align 4
%75 = add i32 %74, -1
%76 = add i64 %5, 24
%77 = inttoptr i64 %76 to i32*
store i32 %75, i32* %77, align 4
%78 = load i32, i32* %73, align 4
%79 = load i32, i32* %66, align 4
%80 = zext i32 %79 to i64
%81 = call i64 @FUNC(i64 %80)
%82 = trunc i64 %81 to i32
%83 = add i32 %78, -1
%84 = add i32 %83, %82
%85 = add i64 %5, 28
%86 = inttoptr i64 %85 to i32*
store i32 %84, i32* %86, align 4
%87 = add i64 %5, 36
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = urem i32 %89, 2
%91 = icmp eq i32 %90, 0
br i1 %91, label LBL_14, label LBL_9
LBL_9:
%92 = add i64 %5, 56
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = zext i32 %94 to i64
%96 = add i64 %5, 60
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = zext i32 %98 to i64
%100 = add nuw nsw i64 %99, %95
%101 = load i32, i32* %20, align 4
%102 = add i64 %5, 64
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = mul i32 %104, %101
%106 = zext i32 %105 to i64
%107 = icmp ugt i64 %100, %106
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %107, label LBL_23, label LBL_10
LBL_10:
%108 = add i64 %1, 72
%109 = call i64 @FUNC(i64 %80, i32 %94, i32 %98, i64 %108, i64 64)
%110 = trunc i64 %109 to i32
%111 = icmp slt i32 %110, 0
%112 = icmp eq i1 %111, false
br i1 %112, label LBL_12, label LBL_11
LBL_11:
%113 = and i64 %109, 4294967295
store i64 %113, i64* %rax.0.reg2mem
br label LBL_23
LBL_12:
%114 = load i32, i32* %88, align 4
%115 = and i32 %114, 2
%116 = icmp eq i32 %115, 0
br i1 %116, label LBL_14, label LBL_13
LBL_13:
%117 = add i64 %1, 136
%118 = call i64 @FUNC(i64 %117, i64 64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
br label LBL_14
LBL_14:
%119 = call i64 @FUNC(i64 %5)
%120 = add i64 %5, 72
%121 = inttoptr i64 %120 to i64*
store i64 %119, i64* %121, align 8
%122 = add i64 %5, 80
%123 = call i64 @FUNC(i64 %122)
%124 = call i64 @FUNC(i64 %5)
%125 = trunc i64 %124 to i32
%126 = icmp eq i32 %125, 0
%127 = icmp eq i1 %126, false
store i32 %125, i32* %sv_0.0.reg2mem
br i1 %127, label LBL_20, label LBL_15
LBL_15:
%128 = load i32, i32* %88, align 4
%129 = and i32 %128, 4
%130 = icmp eq i32 %129, 0
store i32 %125, i32* %sv_0.0.reg2mem
br i1 %130, label LBL_20, label LBL_16
LBL_16:
%131 = call i64 @FUNC(i64 %5)
%132 = trunc i64 %131 to i32
%133 = icmp eq i32 %132, 0
%134 = icmp eq i1 %133, false
store i32 %125, i32* %sv_0.0.reg2mem
br i1 %134, label LBL_20, label LBL_17
LBL_17:
store i32 0, i32* %sv_1, align 4
%135 = bitcast i32* %sv_1 to i64*
%136 = call i64 @FUNC(i64 %5, i64* nonnull %135, i64 1)
%137 = trunc i64 %136 to i32
%138 = icmp eq i32 %137, 0
%139 = icmp eq i1 %138, false
store i32 %137, i32* %sv_0.0.reg2mem
br i1 %139, label LBL_20, label LBL_18
LBL_18:
%140 = load i32, i32* %sv_1, align 4
%141 = or i32 %140, %2
%142 = icmp eq i32 %141, 0
store i32 %137, i32* %sv_0.0.reg2mem
br i1 %142, label LBL_19, label LBL_20
LBL_19:
%143 = load i64, i64* %6, align 8
%144 = call i64 @FUNC(i64 %143)
%145 = load i32, i32* %88, align 4
%146 = and i32 %145, -5
store i32 %146, i32* %88, align 4
%147 = call i64 @FUNC(i64 %5)
store i32 %137, i32* %sv_0.0.reg2mem
br label LBL_20
LBL_20:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%148 = icmp eq i32 %sv_0.0.reload, 0
br i1 %148, label LBL_22, label LBL_21
LBL_21:
%149 = call i64 @FUNC(i64 %122)
%150 = load i64, i64* %121, align 8
%151 = call i64 @FUNC(i64 %150)
br label LBL_22
LBL_22:
%152 = zext i32 %sv_0.0.reload to i64
store i64 %152, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32* %88, { 2, 1, 3, 0, 4 }
uselistorder i64 %27, { 1, 0, 2, 3 }
uselistorder i64 %5, { 0, 1, 2, 3, 4, 5, 6, 10, 8, 9, 7, 11, 12, 13, 14, 16, 15, 17, 18, 19, 20, 21, 22, 23, 24 }
uselistorder i64* %sv_2, { 2, 0, 1 }
uselistorder i32* %sv_1, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 9, 1, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64 1, { 4, 0, 1, 2, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64)* @ffs, { 1, 0 }
uselistorder i32 0, { 3, 0, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2, 16 }
uselistorder label LBL_23, { 7, 8, 0, 1, 2, 3, 4, 5, 6, 9 }
uselistorder label LBL_20, { 4, 0, 5, 2, 1, 3 }
} | 1 |
BinRealVul | predict_field_decoding_flag_9439 | predict_field_decoding_flag | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = mul i32 %9, %6
%11 = add i32 %10, %3
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = sext i32 %11 to i64
%16 = mul i64 %15, 4
%17 = add nsw i64 %16, -4
%18 = add i64 %17, %14
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %2, 12
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %20, %23
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_2, label LBL_1
LBL_1:
%26 = add i64 %2, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %28, %17
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
store i32 %31, i32* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_2:
%32 = sub i32 %11, %9
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 4
%35 = add i64 %34, %14
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %37, %23
%39 = icmp eq i1 %38, false
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %39, label LBL_4, label LBL_3
LBL_3:
%40 = add i64 %2, 24
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = add i64 %42, %34
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
store i32 %45, i32* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%46 = urem i32 %rax.0.shrunk.reload, 2
%47 = add i64 %2, 36
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
%49 = add i64 %2, 32
%50 = inttoptr i64 %49 to i32*
store i32 %46, i32* %50, align 4
ret i64 %2
uselistorder i32 %46, { 1, 0 }
uselistorder i64 %34, { 1, 0 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 4, 3, 5, 6, 7, 8 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | parse_identifier_12674 | parse_identifier | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = trunc i64 %1 to i8
%7 = bitcast i64* %arg2 to i8*
store i8 %6, i8* %7, align 1
store i64 %arg1, i64* %sv_1.0.in.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_2:
%8 = add i32 %sv_0.0.reload, 1
%9 = sext i32 %sv_0.0.reload to i64
%10 = add i64 %9, %5
%11 = inttoptr i64 %sv_1.0 to i8*
%12 = load i8, i8* %11, align 1
%13 = inttoptr i64 %10 to i8*
store i8 %12, i8* %13, align 1
store i64 %sv_1.0, i64* %sv_1.0.in.reg2mem
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem
%sv_1.0 = add i64 %sv_1.0.in.reload, 1
%14 = call i64 @FUNC(i64 %sv_1.0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_2, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %sv_1.0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_2, label LBL_5
LBL_5:
%22 = sext i32 %sv_0.0.reload to i64
%23 = add i64 %22, %5
%24 = inttoptr i64 %23 to i8*
store i8 0, i8* %24, align 1
%25 = inttoptr i64 %arg1 to i64*
store i64 %sv_1.0, i64* %25, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_1.0, { 1, 4, 2, 3, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 (i64)* @is_alpha_underscore, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | eval_string_17614 | eval_string | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem3 = alloca i64
%.reg2mem = alloca i32
%0 = load i32, i32* @gv_0, align 4
%1 = icmp slt i32 %0, 1
store i32 %0, i32* %.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, -1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC()
%7 = load i64, i64* @gv_1, align 8
%8 = load i32, i32* @gv_0, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 8
%11 = add i64 %10, %7
%12 = ptrtoint i8* %arg1 to i64
%13 = call i64 @FUNC(i64 %11, i64 %12)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_9
LBL_3:
%14 = call i64 @FUNC()
%.pre = load i32, i32* @gv_0, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i32, i32* %.reg2mem
%15 = sext i32 %.reload to i64
%16 = load i64, i64* @gv_2, align 8
%17 = add i64 %16, -1
%18 = icmp eq i64 %17, %15
%19 = icmp eq i1 %18, false
%.pre2 = load i64, i64* @gv_1, align 8
store i64 %.pre2, i64* %.reg2mem3
br i1 %19, label LBL_8, label LBL_5
LBL_5:
%20 = inttoptr i64 %.pre2 to i64*
%.tr = trunc i64 %16 to i32
%21 = mul i32 %.tr, 16
%22 = call i64* @realloc(i64* %20, i32 %21)
%23 = icmp eq i64* %22, null
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0))
unreachable
LBL_7:
%26 = ptrtoint i64* %22 to i64
%27 = mul i64 %16, 2
store i64 %27, i64* @gv_2, align 8
store i64 %26, i64* @gv_1, align 8
store i64 %26, i64* %.reg2mem3
br label LBL_8
LBL_8:
%.reload4 = load i64, i64* %.reg2mem3
store i32 ptrtoint (i32* @gv_4 to i32), i32* @gv_0, align 4
%28 = add i64 %.reload4, shl (i64 sext (i32 ptrtoint (i32* @gv_4 to i32) to i64), i64 3)
%29 = ptrtoint i8* %arg1 to i64
%30 = call i64 @FUNC(i64 %28, i64 %29)
store i64 %30, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %22, { 1, 0 }
uselistorder i64 %.pre2, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem3, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @src_setstring, { 1, 0 }
uselistorder i32 1, { 5, 2, 1, 0, 4, 3 }
uselistorder i8* %arg1, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | impeg2d_dec_slice_12220 | impeg2d_dec_slice | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge4.in.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 3)
%4 = call i64 @FUNC(i64 %2, i64 8)
%5 = trunc i64 %4 to i32
%6 = icmp ult i32 %5, 2801
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %2, i64 3)
%8 = trunc i64 %7 to i32
%9 = mul i32 %8, 128
%10 = add i32 %9, %5
store i32 %10, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%11 = trunc i64 %1 to i32
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%12 = icmp ule i32 %sv_0.0.reload, %11
%13 = icmp eq i32 %sv_0.0.reload, 0
%14 = icmp eq i1 %13, false
%or.cond = icmp eq i1 %12, %14
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_15
LBL_3:
%15 = add i32 %sv_0.0.reload, -1
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %15, %18
br i1 %19, label LBL_5, label LBL_4
LBL_4:
store i32 %15, i32* %17, align 4
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
br label LBL_5
LBL_5:
%22 = add i64 %2, 12
%23 = inttoptr i64 %22 to i32*
store i32 1, i32* %23, align 4
%24 = call i64 @FUNC(i64 %2, i64 5)
%25 = add i64 %2, 20
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = mul i64 %24, 4
%30 = and i64 %29, 262140
%31 = add i64 %30, ptrtoint (i32** @gv_0 to i64)
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
store i32 %33, i32* %storemerge4.in.reg2mem
br label LBL_8
LBL_7:
%34 = trunc i64 %24 to i32
%35 = mul i32 %34, 2
%36 = and i32 %35, 131070
store i32 %36, i32* %storemerge4.in.reg2mem
br label LBL_8
LBL_8:
%storemerge4.in.reload = load i32, i32* %storemerge4.in.reg2mem
%37 = add i64 %2, 16
%38 = inttoptr i64 %37 to i32*
store i32 %storemerge4.in.reload, i32* %38, align 4
%39 = call i64 @FUNC(i64 %2, i64 1)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 1
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_11, label LBL_9
LBL_9:
%43 = call i64 @FUNC(i64 %2, i64 9)
%44 = call i64 @FUNC(i64 %2, i64 1)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 1
br i1 %46, label LBL_10, label LBL_11
LBL_10:
%47 = call i64 @FUNC(i64 %2, i64 9)
%48 = call i64 @FUNC(i64 %2, i64 1)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 1
br i1 %50, label LBL_10, label LBL_11
LBL_11:
%51 = call i64 @FUNC(i64 %2)
%52 = add i64 %2, 24
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = urem i32 %54, 32
%56 = shl i32 128, %55
%57 = add i64 %2, 28
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = load i32, i32* %53, align 4
%60 = urem i32 %59, 32
%61 = shl i32 128, %60
%62 = add i64 %2, 32
%63 = inttoptr i64 %62 to i32*
store i32 %61, i32* %63, align 4
%64 = load i32, i32* %53, align 4
%65 = urem i32 %64, 32
%66 = shl i32 128, %65
%67 = add i64 %2, 36
%68 = inttoptr i64 %67 to i32*
store i32 %66, i32* %68, align 4
%69 = trunc i64 %2 to i32
%70 = icmp eq i32 %69, 0
br i1 %70, label LBL_13, label LBL_12
LBL_12:
%71 = and i64 %2, 4294967295
store i64 %71, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%72 = bitcast i64* %rdi to i32*
%73 = load i32, i32* %17, align 4
%74 = load i32, i32* %72, align 8
%75 = icmp ult i32 %73, %74
%76 = icmp eq i1 %75, false
store i64 0, i64* %rax.0.reg2mem
br i1 %76, label LBL_15, label LBL_14
LBL_14:
%77 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %24, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 0, 2, 1 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64 %2, { 6, 8, 7, 9, 10, 11, 12, 13, 4, 3, 0, 5, 14, 15, 16, 17, 18, 2, 19, 1, 20, 21 }
uselistorder i32* %storemerge4.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_nxt, { 2, 0, 1 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i32 128, { 1, 2, 3, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_get, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64, i64)* @impeg2d_bit_stream_flush, { 2, 1, 0 }
uselistorder label LBL_15, { 1, 0, 3, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | core_rtas_register_types_2153 | core_rtas_register_types | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 4198662)
%1 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 4198669)
%2 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 4198676)
%3 = call i64 @FUNC(i64 4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0), i64 4198683)
%4 = call i64 @FUNC(i64 5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_4, i64 0, i64 0), i64 4198690)
%5 = call i64 @FUNC(i64 6, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_5, i64 0, i64 0), i64 4198697)
%6 = call i64 @FUNC(i64 7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i64 4198704)
%7 = call i64 @FUNC(i64 8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i64 4198711)
%8 = call i64 @FUNC(i64 9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_8, i64 0, i64 0), i64 4198718)
%9 = call i64 @FUNC(i64 10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_9, i64 0, i64 0), i64 4198725)
%10 = call i64 @FUNC(i64 11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_10, i64 0, i64 0), i64 4198732)
ret i64 %10
uselistorder i64 (i64, i8*, i64)* @spapr_rtas_register, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | jsvGetStringChars_12367 | jsvGetStringChars | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = 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
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg3 to i64
store i64 %arg4, i64* %sv_1, align 8
%6 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0, i64 %arg2)
%7 = call i64 @FUNC(i64* nonnull %sv_1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %5, i64* %sv_0.02.reg2mem
store i64 %5, i64* %sv_0.0.lcssa.reg2mem
br i1 %10, label LBL_3, label LBL_6
LBL_3:
%11 = load i64, i64* %sv_1, align 8
%12 = add i64 %11, -1
store i64 %12, i64* %sv_1, align 8
%13 = icmp eq i64 %11, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 %arg4, i64* %storemerge.reg2mem
br label LBL_7
LBL_5:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%16 = add i64 %sv_0.02.reload, 1
%17 = call i64 @FUNC(i64* nonnull %sv_1)
%18 = trunc i64 %17 to i8
%19 = inttoptr i64 %sv_0.02.reload to i8*
store i8 %18, i8* %19, align 1
%20 = call i64 @FUNC(i64* nonnull %sv_1)
%21 = call i64 @FUNC(i64* nonnull %sv_1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 %16, i64* %sv_0.02.reg2mem
store i64 %16, i64* %sv_0.0.lcssa.reg2mem
br i1 %24, label LBL_3, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%25 = call i64 @FUNC(i64* nonnull %sv_1)
%26 = inttoptr i64 %sv_0.0.lcssa.reload to i8*
store i8 0, i8* %26, align 1
%27 = load i64, i64* %sv_1, align 8
%28 = sub i64 %arg4, %27
store i64 %28, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %11, { 1, 0 }
uselistorder i64* %sv_1, { 7, 1, 2, 3, 4, 5, 8, 9, 0, 6, 10 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64*)* @jsvStringIteratorHasChar, { 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 %arg4, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | crypto_ahash_show_8677 | crypto_ahash_show | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
%8 = urem i64 %3, 2
%9 = icmp eq i64 %8, 0
%. = select i1 %9, i64 ptrtoint ([3 x i8]* @gv_1 to i64), i64 ptrtoint ([4 x i8]* @gv_2 to i64)
%10 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i64 %., i64 %5, i64 %2, i64 %1)
%11 = ptrtoint i32* %arg2 to i64
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i64 %15, i64 %5, i64 %2, i64 %1)
%17 = call i64 @FUNC(i64 %11)
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_5, i64 0, i64 0), i64 %20, i64 %5, i64 %2, i64 %1)
ret i64 %21
uselistorder i64 %6, { 2, 1, 0, 3 }
uselistorder i64 %5, { 3, 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | nfs41_call_sync_prepare_9871 | nfs41_call_sync_prepare | 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
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %3, i64 %2, i64 %1)
%7 = add i64 %4, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64 %12, i64 %9, i64 %5)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 %13, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = call i64 @FUNC(i64 %5)
store i64 %17, 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 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mov_write_avid_tag_15648 | mov_write_avid_tag | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 24)
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%5 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 8) to i32*), align 4
%6 = icmp ne i32 %5, 0
%7 = icmp eq i32 %5, 1
%8 = icmp eq i1 %7, false
%or.cond = icmp eq i1 %6, %8
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0, i64 1)
br label LBL_3
LBL_2:
%10 = call i64 @FUNC(i64 %0, i64 2)
br label LBL_3
LBL_3:
%11 = ptrtoint i64* %arg2 to i64
%12 = call i64 @FUNC(i64 %0, i64 0)
%13 = call i64 @FUNC(i64 %0, i64 24)
%14 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%15 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%16 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%17 = call i64 @FUNC(i64 %0, i64 1)
%18 = call i64 @FUNC(i64 %0, i64 0)
%19 = call i64 @FUNC(i64 %0, i64 120)
%20 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%21 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0))
%22 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%23 = add i64 %11, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %25, 40
%27 = call i64 @FUNC(i64 %26)
%28 = and i64 %27, 4294967295
%29 = call i64 @FUNC(i64 %0, i64 %28)
%30 = call i64 @FUNC(i64 %0, i64 zext (i32 ptrtoint ([5 x i8]* @gv_1 to i32) to i64))
%31 = load i64, i64* %24, align 8
%32 = add i64 %31, 5
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = and i8 %34, 2
%36 = icmp eq i8 %35, 0
%37 = load i32, i32* inttoptr (i64 add (i64 zext (i32 ptrtoint ([5 x i8]* @gv_1 to i32) to i64), i64 4) to i32*), align 4
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%38 = icmp slt i32 %37, 0
%39 = zext i1 %38 to i32
%40 = add i32 %37, %39
%41 = ashr i32 %40, 1
%42 = zext i32 %41 to i64
%43 = call i64 @FUNC(i64 %0, i64 %42)
%44 = call i64 @FUNC(i64 %0, i64 2)
%45 = call i64 @FUNC(i64 %0, i64 0)
%46 = call i64 @FUNC(i64 %0, i64 4)
br label LBL_8
LBL_5:
%47 = zext i32 %37 to i64
%48 = call i64 @FUNC(i64 %0, i64 %47)
%49 = call i64 @FUNC(i64 %0, i64 1)
%50 = call i64 @FUNC(i64 %0, i64 0)
%51 = load i32, i32* inttoptr (i64 4 to i32*), align 4
%52 = icmp eq i32 %51, 1080
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_7, label LBL_6
LBL_6:
%54 = call i64 @FUNC(i64 %0, i64 5)
br label LBL_8
LBL_7:
%55 = call i64 @FUNC(i64 %0, i64 6)
br label LBL_8
LBL_8:
store i32 0, i32* %storemerge1.reg2mem
br label LBL_9
LBL_9:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%56 = call i64 @FUNC(i64 %0, i64 0)
%57 = add nuw nsw i32 %storemerge1.reload, 1
%exitcond = icmp eq i32 %57, 10
store i32 %57, i32* %storemerge1.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%58 = call i64 @FUNC(i64 %0, i64 0)
ret i64 0
uselistorder i32 %37, { 2, 0, 1 }
uselistorder i64 %0, { 6, 5, 7, 8, 9, 10, 11, 1, 2, 3, 4, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 0, 25, 26, 27, 28, 29 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder [5 x i8]* @gv_1, { 0, 2, 1 }
uselistorder i64 (i64, i8*)* @ffio_wfourcc, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @avio_wb32, { 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | musb_rx_req_18608 | musb_rx_req | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = ashr exact i64 %sext, 28
%3 = add nsw i64 %2, %1
%4 = mul i64 %3, 4
%5 = add i64 %4, %0
%6 = add i64 %5, 12
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_7, label LBL_1
LBL_1:
%11 = add i64 %5, 28
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label LBL_7, label LBL_2
LBL_2:
%15 = add i64 %5, 36
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %5, 40
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, %17
%22 = add i64 %5, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp ult i32 %21, %24
br i1 %25, label LBL_3, label LBL_7
LBL_3:
%26 = zext i32 %20 to i64
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i32 %17, i64 %26)
%28 = load i32, i32* %16, align 4
%29 = load i32, i32* %19, align 4
%30 = add i32 %29, %28
store i32 %30, i32* %16, align 4
%31 = add i64 %5, 48
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %5, 56
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %5, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = load i32, i32* %16, align 4
%40 = sub i32 %38, %39
%41 = sub i32 %35, %40
%42 = xor i32 %40, %35
%43 = xor i32 %41, %35
%44 = and i32 %43, %42
%45 = icmp slt i32 %44, 0
%46 = icmp eq i32 %41, 0
%47 = icmp slt i32 %41, 0
%48 = icmp ne i1 %47, %45
%49 = or i1 %46, %48
%50 = select i1 %49, i32 %35, i32 %40
store i32 %50, i32* %19, align 4
%51 = add i64 %5, 64
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = and i32 %53, -2
store i32 %54, i32* %52, align 4
%55 = trunc i64 %1 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_4, label LBL_5
LBL_4:
%58 = and i32 %53, -112
%59 = or i32 %58, 96
store i32 %59, i32* %52, align 4
br label LBL_6
LBL_5:
%60 = add i64 %5, 60
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = and i32 %62, -2
store i32 %63, i32* %61, align 4
%64 = load i32, i32* %52, align 4
%65 = and i32 %64, -15
store i32 %65, i32* %52, align 4
%66 = load i32, i32* %61, align 4
%67 = and i32 %66, -31
store i32 %67, i32* %61, align 4
%68 = load i32, i32* %52, align 4
%69 = or i32 %68, 96
store i32 %69, i32* %52, align 4
%70 = load i32, i32* %61, align 4
%71 = or i32 %70, 128
store i32 %71, i32* %61, align 4
br label LBL_6
LBL_6:
%72 = and i64 %1, 4294967295
%73 = call i64 @FUNC(i64 %0, i64 %72, i64 1)
store i64 %73, i64* %storemerge.reg2mem
br label LBL_13
LBL_7:
%74 = add i64 %5, 56
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = and i32 %76, 960
%78 = icmp eq i32 %77, 0
%79 = icmp eq i1 %78, false
%80 = urem i32 %76, 1024
%spec.select = select i1 %79, i32 64, i32 %80
%81 = trunc i64 %1 to i32
%82 = icmp eq i32 %81, 0
%83 = icmp eq i1 %82, false
store i32 %spec.select, i32* %sv_0.0.reg2mem
br i1 %83, label LBL_12, label LBL_8
LBL_8:
%84 = add i64 %5, 8
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = icmp eq i32 %86, 2
%88 = icmp eq i1 %87, false
%89 = add i64 %0, 8
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
br i1 %88, label LBL_10, label LBL_9
LBL_9:
%92 = add i32 %91, -8
%93 = sub i32 7, %91
%94 = and i32 %93, %91
%95 = icmp slt i32 %94, 0
%96 = icmp eq i32 %92, 0
%97 = icmp slt i32 %92, 0
%98 = icmp eq i1 %97, %95
%99 = icmp eq i1 %96, false
%100 = icmp eq i1 %98, %99
%101 = select i1 %100, i32 8, i32 %91
store i32 %101, i32* %storemerge3.reg2mem
br label LBL_11
LBL_10:
%102 = add i32 %91, -64
%103 = sub i32 63, %91
%104 = and i32 %103, %91
%105 = icmp slt i32 %104, 0
%106 = icmp eq i32 %102, 0
%107 = icmp slt i32 %102, 0
%108 = icmp eq i1 %107, %105
%109 = icmp eq i1 %106, false
%110 = icmp eq i1 %108, %109
%111 = select i1 %110, i32 64, i32 %91
store i32 %111, i32* %storemerge3.reg2mem
br label LBL_11
LBL_11:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%112 = sub i32 %91, %storemerge3.reload
store i32 %112, i32* %90, align 4
store i32 %storemerge3.reload, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%113 = zext i32 %sv_0.0.reload to i64
%114 = call i64 @FUNC(i64 %0, i64 %5, i32 %81, i64 1, i64 %113, i64 4198740)
store i64 %114, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %102, { 1, 0 }
uselistorder i32 %92, { 1, 0 }
uselistorder i32 %91, { 2, 7, 0, 6, 8, 4, 1, 5, 3 }
uselistorder i32* %61, { 1, 0, 3, 2, 4, 5 }
uselistorder i32* %52, { 2, 1, 4, 3, 0, 5, 6 }
uselistorder i32 %41, { 1, 2, 0 }
uselistorder i32 %40, { 1, 0, 2 }
uselistorder i32 %35, { 2, 0, 1, 3 }
uselistorder i32 %20, { 1, 0 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32* %16, { 0, 2, 1, 3 }
uselistorder i64 %5, { 6, 5, 7, 0, 1, 3, 2, 4, 8, 10, 9, 11, 12 }
uselistorder i64 %1, { 2, 0, 1, 3 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 64, { 1, 0 }
uselistorder i32 96, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 28, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | vnet_select_queue_18306 | vnet_select_queue | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %2, i64 %0)
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = zext i16 %5 to i64
ret i64 %6
} | 1 |
BinRealVul | __send_empty_flush_8837 | __send_empty_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6, i64 0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %.reg2mem
store i32 0, i32* %sv_0.02.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = inttoptr i64 %.reload to i32*
%11 = add i32 %sv_0.02.reload, 1
%12 = load i32, i32* %10, align 4
%13 = call i64 @FUNC(i64 %0, i64 %.reload, i32 %12, i64 0)
%14 = load i64, i64* %5, align 8
%15 = zext i32 %11 to i64
%16 = call i64 @FUNC(i64 %14, i64 %15)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %.reg2mem
store i32 %11, i32* %sv_0.02.reg2mem
br i1 %18, label LBL_1, label LBL_2
LBL_2:
ret i64 0
uselistorder i64* %5, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64, i64)* @dm_table_get_target, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | multiwrite_req_compare_2619 | multiwrite_req_compare | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = trunc i64 %2 to i32
%5 = icmp ugt i32 %3, %4
%6 = icmp ult i32 %3, %4
%. = select i1 %6, i64 4294967295, i64 0
%rax.0 = select i1 %5, i64 1, i64 %.
ret i64 %rax.0
uselistorder i32 %4, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | ssl23_get_client_method_12620 | ssl23_get_client_method | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 768
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
store i64 %3, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%4 = icmp eq i32 %0, 257
%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_8
LBL_4:
%7 = icmp eq i32 %0, 258
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%9 = call i64 @FUNC()
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%10 = icmp eq i32 %0, 259
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_8, label LBL_7
LBL_7:
%12 = call i64 @FUNC()
store i64 %12, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder label LBL_8, { 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | read_line_1335 | read_line | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to %_IO_FILE*
%1 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64* %arg2, i64* nonnull %sv_0)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pid_file_read_17559 | pid_file_read | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%5 = inttoptr i64 %arg1 to i8*
%6 = call i32 (i8*, i32, ...) @open(i8* %5, i32 0)
store i32 %6, i32* %sv_2, align 4
%7 = icmp eq i32 %6, -1
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 2
%12 = icmp eq i1 %11, false
store i64 0, i64* %storemerge.reg2mem
br i1 %12, label LBL_2, label LBL_13
LBL_2:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %3, i64 %4, i64 %2, i64 %1)
unreachable
LBL_3:
%14 = ptrtoint i64* %sv_1 to i64
%15 = call i32 @read(i32 %6, i64* nonnull %sv_1, i32 32)
%16 = icmp eq i32 %15, 0
%17 = icmp slt i32 %15, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
br i1 %20, label LBL_7, label LBL_4
LBL_4:
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %arg1, i64 32, i64 %14, i64 %2, i64 %1)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_6:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 32, i64 %14, i64 %2, i64 %1)
unreachable
LBL_7:
%23 = ptrtoint i64* %arg2 to i64
%24 = ptrtoint i64* %sv_3 to i64
%25 = sext i32 %15 to i64
%26 = add i64 %24, -65
%27 = add i64 %26, %25
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 10
%31 = sext i1 %30 to i64
%spec.select = add i64 %25, %14
%32 = add i64 %spec.select, %31
%33 = inttoptr i64 %32 to i8*
store i8 0, i8* %33, align 1
%34 = call i64 @FUNC(i64* nonnull %sv_1, i64 %23)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %37, label LBL_8, label LBL_12
LBL_8:
%38 = bitcast i64* %rsi to i32*
%39 = load i32, i32* %38, align 8
%40 = call i32 @getpid()
%41 = icmp eq i32 %39, %40
br i1 %41, label LBL_11, label LBL_9
LBL_9:
%42 = call i32 @kill(i32 %39, i32 0)
%43 = icmp slt i32 %42, 0
%44 = icmp eq i1 %43, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_12, label LBL_10
LBL_10:
%45 = call i32* @__errno_location()
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 3
store i64 1, i64* %sv_0.0.reg2mem
br i1 %47, label LBL_11, label LBL_12
LBL_11:
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%48 = call i64 @FUNC(i32* nonnull %sv_2)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_13
LBL_13:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %15, { 2, 0, 1 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1, 4, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @i_fatal, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | dilate_init_1258 | dilate_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 3400349866943281203, i64* %sv_1, align 8
store i64 %arg2, i64* %sv_0, align 8
%4 = icmp eq i64 %arg2, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull @gv_0)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%7 = icmp eq i64 %storemerge.reload, 0
%8 = icmp eq i1 %7, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_11
LBL_4:
%9 = ptrtoint i64* %arg1 to i64
%10 = add i64 %9, 8
%11 = call i64 @FUNC(i64 %10, i64 %storemerge.reload, i64 %9)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = and i64 %11, 4294967295
store i64 %15, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%16 = call i64 @FUNC(i64 %storemerge.reload)
%17 = load i64, i64* %sv_0, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = inttoptr i64 %17 to i8*
%20 = call i32 (i8*, i8*, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64* %arg1)
%21 = icmp eq i32 %20, 1
br i1 %21, label LBL_9, label LBL_8
LBL_8:
%22 = bitcast i64* %arg1 to i32*
store i32 1, i32* %22, align 4
br label LBL_9
LBL_9:
%23 = trunc i64 %3 to i32
%24 = and i64 %3, 4294967295
%25 = call i64 @FUNC(i64 %9, i64 16, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %24, i64 %2, i64 %1)
%26 = icmp eq i32 %23, 0
%27 = icmp slt i32 %23, 0
%28 = icmp eq i1 %27, false
%29 = icmp eq i1 %26, false
%30 = icmp eq i1 %28, %29
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_11, label LBL_10
LBL_10:
%31 = call i64 @FUNC(i64 %9, i64 32, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0), i64 %24, i64 %2, i64 %1)
store i64 4294967274, 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 %24, { 1, 0 }
uselistorder i32 %23, { 1, 0 }
uselistorder i64 %storemerge.reload, { 2, 1, 0 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | snd_hda_input_mux_info_4098 | snd_hda_input_mux_info | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = bitcast i64* %arg2 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 1, i32* %3, align 4
%4 = bitcast i64* %rdi to i32*
%5 = load i32, i32* %4, align 8
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = load i32, i32* %4, align 8
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_1, label LBL_2
LBL_1:
%11 = add i64 %0, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp ult i32 %13, %8
%15 = add i32 %8, -1
%spec.select = select i1 %14, i32 %13, i32 %15
%16 = ptrtoint i32* %arg1 to i64
%17 = add i64 %16, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = zext i32 %spec.select to i64
%21 = mul i64 %20, 32
%22 = add i64 %21, %19
%23 = add i64 %0, 16
%24 = inttoptr i64 %23 to i8*
%25 = inttoptr i64 %22 to i8*
%26 = call i8* @strcpy(i8* %24, i8* %25)
br label LBL_2
LBL_2:
ret i64 0
uselistorder i32 %8, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | CLI_Init_17611 | CLI_Init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i8*
%sv_1.1.reg2mem = alloca i32
%sv_2.0.ph.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i8*
%sv_1.0.ph.reg2mem = alloca i32
%r9.0.ph.ph.reg2mem = alloca i64
%r8.0.ph.ph.reg2mem = alloca i64
%sv_2.0.ph.ph.reg2mem = alloca i32
%sv_0.0.ph.ph.reg2mem = alloca i8*
%sv_1.0.ph.ph.reg2mem = alloca i32
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%0 = ptrtoint i64* %sv_4 to i64
%1 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 16)
%2 = call i64 @FUNC(i64 0, i64 0, i64 0, i64 1)
store i64 %2, i64* %sv_4, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = call i64* @malloc(i32 4096)
%5 = ptrtoint i64* %4 to i64
%6 = bitcast i64* %4 to i8*
%7 = call i64 @FUNC(i64 %5)
%8 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%9 = bitcast i32* %sv_3 to %pollfd*
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
store i32 4096, i32* %sv_1.0.ph.ph.reg2mem
store i8* %6, i8** %sv_0.0.ph.ph.reg2mem
store i32 0, i32* %sv_2.0.ph.ph.reg2mem
br label LBL_1
LBL_1:
%r9.0.ph.ph.reload = load i64, i64* %r9.0.ph.ph.reg2mem
%r8.0.ph.ph.reload = load i64, i64* %r8.0.ph.ph.reg2mem
%sv_2.0.ph.ph.reload = load i32, i32* %sv_2.0.ph.ph.reg2mem
%sv_0.0.ph.ph.reload = load i8*, i8** %sv_0.0.ph.ph.reg2mem
%sv_1.0.ph.ph.reload = load i32, i32* %sv_1.0.ph.ph.reg2mem
store i32 %sv_1.0.ph.ph.reload, i32* %sv_1.0.ph.reg2mem
store i8* %sv_0.0.ph.ph.reload, i8** %sv_0.0.ph.reg2mem
store i32 %sv_2.0.ph.ph.reload, i32* %sv_2.0.ph.reg2mem
br label LBL_2
LBL_2:
%sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem
%sv_0.0.ph.reload = load i8*, i8** %sv_0.0.ph.reg2mem
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
br label LBL_3
LBL_3:
%12 = load i32, i32* @gv_1, align 4
store i32 %12, i32* %sv_3, align 4
%13 = call i32 @poll(%pollfd* nonnull %9, i32 1, i32 5000)
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_3, label LBL_4
LBL_4:
%15 = add i32 %sv_2.0.ph.reload, 2
%16 = icmp ugt i32 %sv_1.0.ph.reload, %15
store i32 %sv_1.0.ph.reload, i32* %sv_1.1.reg2mem
store i8* %sv_0.0.ph.reload, i8** %sv_0.1.reg2mem
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = mul i32 %sv_1.0.ph.reload, 2
%18 = bitcast i8* %sv_0.0.ph.reload to i64*
%19 = call i64* @realloc(i64* %18, i32 %17)
%20 = ptrtoint i64* %19 to i64
%21 = bitcast i64* %19 to i8*
%22 = call i64 @FUNC(i64 %20)
store i32 %17, i32* %sv_1.1.reg2mem
store i8* %21, i8** %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%23 = sub i32 %sv_1.1.reload, %sv_2.0.ph.reload
%24 = zext i32 %sv_2.0.ph.reload to i64
%25 = ptrtoint i8* %sv_0.1.reload to i64
%26 = add i64 %25, %24
%27 = load i32, i32* @gv_1, align 4
%28 = inttoptr i64 %26 to i64*
%29 = call i32 @read(i32 %27, i64* %28, i32 %23)
%30 = icmp eq i32 %29, 0
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
br i1 %34, label LBL_8, label LBL_7
LBL_7:
%35 = call i32* @__errno_location()
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = zext i32 %29 to i64
%39 = call i64 @FUNC(i64 1, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %38, i64 %37, i64 %r9.0.ph.ph.reload)
%40 = bitcast i8* %sv_0.1.reload to i64*
call void @free(i64* %40)
br label LBL_16
LBL_8:
%41 = add i32 %29, %sv_2.0.ph.reload
%42 = call i8* @strchr(i8* %sv_0.1.reload, i32 10)
%43 = icmp eq i8* %42, null
store i32 %sv_1.1.reload, i32* %sv_1.0.ph.reg2mem
store i8* %sv_0.1.reload, i8** %sv_0.0.ph.reg2mem
store i32 %41, i32* %sv_2.0.ph.reg2mem
br i1 %43, label LBL_2, label LBL_9
LBL_9:
store i8 0, i8* %42, align 1
%44 = call i64 @FUNC(i64 2, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i64 %25, i64 %r8.0.ph.ph.reload, i64 %r9.0.ph.ph.reload)
%45 = load i64, i64* %sv_4, align 8
%46 = call i64 @FUNC(i64 %45)
%47 = load i64, i64* @gv_4, align 8
%48 = call i64 @FUNC(i64 %0, i64 %47, i64 %25)
%49 = load i64, i64* %sv_4, align 8
%50 = call i64 @FUNC(i64 %49)
%51 = load i32, i32* @gv_5, align 4
%52 = zext i32 %51 to i64
%53 = call i64 @FUNC(i64 %52, i64 %0)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
br i1 %55, label LBL_11, label LBL_10
LBL_10:
%56 = call i32* @__errno_location()
%57 = load i32, i32* %56, align 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 1, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_6, i64 0, i64 0), i64 %58, i64 %r8.0.ph.ph.reload, i64 %r9.0.ph.ph.reload)
%60 = bitcast i8* %sv_0.1.reload to i64*
call void @free(i64* %60)
br label LBL_16
LBL_11:
%61 = ptrtoint i8* %42 to i64
%62 = load i64, i64* %sv_4, align 8
%63 = call i64 @FUNC(i64 %62)
%64 = load i32, i32* %11, align 8
%65 = zext i32 %64 to i64
%66 = and i64 %53, 4294967295
%67 = call i64 @FUNC(i64 2, i64 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_7, i64 0, i64 0), i64 %66, i64 %65, i64 %63)
%68 = add i64 %61, 1
%69 = sub i64 %68, %25
%70 = trunc i64 %69 to i32
%71 = icmp ult i32 %41, %70
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_13, label LBL_12
LBL_12:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_9, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_10, i64 0, i64 0))
br label LBL_13
LBL_13:
%73 = icmp ugt i32 %41, %70
%74 = sub i32 %41, %70
br i1 %73, label LBL_14, label LBL_15
LBL_14:
%75 = bitcast i8* %sv_0.1.reload to i64*
%76 = inttoptr i64 %68 to i64*
%77 = call i64* @memcpy(i64* %75, i64* %76, i32 %74)
br label LBL_15
LBL_15:
store i32 %sv_1.1.reload, i32* %sv_1.0.ph.ph.reg2mem
store i8* %sv_0.1.reload, i8** %sv_0.0.ph.ph.reg2mem
store i32 %74, i32* %sv_2.0.ph.ph.reg2mem
store i64 %65, i64* %r8.0.ph.ph.reg2mem
store i64 %63, i64* %r9.0.ph.ph.reg2mem
br label LBL_1
LBL_16:
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i32 %70, { 1, 0, 2 }
uselistorder i8* %42, { 1, 0, 2 }
uselistorder i32 %41, { 2, 1, 3, 0 }
uselistorder i32 %29, { 1, 0, 3, 2 }
uselistorder i32 %sv_1.1.reload, { 1, 2, 0 }
uselistorder i8* %sv_0.1.reload, { 5, 3, 4, 6, 1, 2, 0 }
uselistorder i32 %sv_1.0.ph.reload, { 2, 0, 1 }
uselistorder i8* %sv_0.0.ph.reload, { 1, 0 }
uselistorder i32 %sv_2.0.ph.reload, { 3, 1, 0, 2 }
uselistorder i64 %r8.0.ph.ph.reload, { 1, 0 }
uselistorder i64 %r9.0.ph.ph.reload, { 2, 0, 1 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i32* %sv_3, { 1, 0 }
uselistorder i32* %sv_1.0.ph.ph.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.0.ph.ph.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.ph.ph.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.0.ph.ph.reg2mem, { 1, 0 }
uselistorder i64* %r9.0.ph.ph.reg2mem, { 1, 0 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @VSL, { 3, 2, 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i64 (i64)* @XXXAN, { 2, 1, 0 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | m68k_cpu_class_init_15112 | m68k_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = add i64 %0, 80
%18 = inttoptr i64 %17 to i64*
store i64 4198739, i64* %18, align 8
%19 = add i64 %0, 88
%20 = inttoptr i64 %19 to i64*
store i64 4198746, i64* %20, align 8
%21 = add i64 %0, 96
%22 = inttoptr i64 %21 to i64*
store i64 4198753, i64* %22, align 8
store i64 4210717, i64* %2, align 8
%23 = add i64 %0, 104
%24 = inttoptr i64 %23 to i32*
store i32 18, i32* %24, align 4
%25 = add i64 %0, 112
%26 = inttoptr i64 %25 to i64*
store i64 ptrtoint ([12 x i8]* @gv_0 to i64), i64* %26, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
} | 1 |
BinRealVul | add_to_group_18355 | add_to_group | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%.pre = add i64 %0, 8
%.pre4 = inttoptr i64 %.pre to i32*
store i64 %0, i64* %rdi.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = load i32, i32* %.pre4, align 4
%3 = sext i32 %2 to i64
%4 = mul nsw i64 %3, 24
%5 = add i64 %0, -24
%6 = add i64 %5, %4
%7 = icmp eq i64 %6, 0
store i64 %0, i64* %rdi.0.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = inttoptr i64 %6 to i8*
%9 = bitcast i64* %arg2 to i8*
%10 = call i32 @strncmp(i8* %8, i8* %9, i32 2)
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 %6, i64* %rdi.0.reg2mem
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = add i64 %6, 20
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %21, 1
store i32 %22, i32* %20, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%23 = load i32, i32* %.pre4, align 4
%24 = add i32 %23, 1
store i32 %24, i32* %.pre4, align 4
%25 = mul i32 %24, 24
%26 = inttoptr i64 %rdi.0.reload to i64*
%27 = call i64* @realloc(i64* %26, i32 %25)
%28 = ptrtoint i64* %27 to i64
store i64 %28, i64* %arg1, align 8
%29 = icmp eq i64 %rdi.0.reload, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_7, label LBL_6
LBL_6:
call void @exit(i32 1)
unreachable
LBL_7:
%31 = ptrtoint i64* %arg2 to i64
%32 = load i32, i32* %.pre4, align 4
%33 = sext i32 %32 to i64
%34 = mul nsw i64 %33, 24
%35 = add i64 %rdi.0.reload, -24
%36 = add i64 %35, %34
%37 = inttoptr i64 %36 to i8*
%38 = bitcast i64* %arg2 to i8*
%39 = call i8* @strncpy(i8* %37, i8* %38, i32 2)
%40 = add i64 %31, 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = add i64 %36, 8
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = trunc i64 %arg3 to i32
%46 = add i64 %36, 16
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
%48 = add i64 %36, 20
%49 = inttoptr i64 %48 to i32*
store i32 1, i32* %49, align 4
store i64 %36, 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 %rdi.0.reload, { 2, 0, 1 }
uselistorder i64 %6, { 0, 2, 1, 5, 4, 3 }
uselistorder i64 %0, { 1, 3, 0, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 1, 2, 3, 0 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | dgap_tty_open_7581 | dgap_tty_open | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = load i64, i64* %0
%6 = load i64, i64* %0
%7 = call i64 @FUNC(i64 %4)
%8 = trunc i64 %7 to i32
%9 = ashr i32 %8, 8
%10 = call i64 @FUNC(i64 %4)
%11 = icmp ult i32 %9, 256
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br i1 %11, label LBL_1, label LBL_24
LBL_1:
%12 = zext i32 %9 to i64
%13 = mul i64 %12, 8
%14 = add i64 %13, ptrtoint (i64* @gv_0 to i64)
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br i1 %18, label LBL_2, label LBL_24
LBL_2:
%19 = inttoptr i64 %16 to i32*
%20 = load i32, i32* %19, align 4
%21 = urem i32 %20, 2
%22 = add i64 %16, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = zext i32 %21 to i64
%26 = call i64 @FUNC(i64 %24, i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
store i64 %26, i64* %rax.0.shrunk.reg2mem
br i1 %28, label LBL_3, label LBL_24
LBL_3:
%29 = add i64 %16, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31, i64 %6)
%33 = load i32, i32* %19, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label LBL_5, label LBL_4
LBL_4:
%35 = load i64, i64* %30, align 8
%36 = call i64 @FUNC(i64 %35, i64 %6)
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_5:
%37 = call i64 @FUNC(i64 %4)
%38 = urem i64 %37, 256
%39 = add i64 %16, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = zext i32 %41 to i64
%43 = icmp ugt i64 %38, %42
br i1 %43, label LBL_6, label LBL_7
LBL_6:
%44 = load i64, i64* %30, align 8
%45 = call i64 @FUNC(i64 %44, i64 %6)
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_7:
%46 = add i64 %16, 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = mul i64 %10, 8
%50 = and i64 %49, 2040
%51 = add i64 %48, %50
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = icmp eq i64 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_9, label LBL_8
LBL_8:
%56 = load i64, i64* %30, align 8
%57 = call i64 @FUNC(i64 %56, i64 %6)
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_9:
%58 = add i64 %53, 48
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = call i64 @FUNC(i64 %60, i64 %5)
%62 = add i64 %16, 40
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = icmp eq i32 %9, %64
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_11, label LBL_10
LBL_10:
%67 = load i64, i64* %47, align 8
%68 = add i64 %67, %50
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = inttoptr i64 %70 to i32*
store i32 1, i32* %71, align 4
store i64 %70, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_11:
%72 = add i64 %16, 44
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %9, %74
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_13, label LBL_12
LBL_12:
%77 = load i64, i64* %47, align 8
%78 = add i64 %77, %50
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = add i64 %80, 24
%82 = inttoptr i64 %81 to i32*
store i32 2, i32* %82, align 4
store i64 %81, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%83 = load i64, i64* %59, align 8
%84 = call i64 @FUNC(i64 %83, i64 %5)
%85 = load i64, i64* %30, align 8
%86 = call i64 @FUNC(i64 %85, i64 %6)
%87 = call i64 @FUNC(i64 130, i64 %6, i64 %6, i64 %3, i64 %2, i64 %1)
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 %sv_0.0.reload, i64* %arg1, align 8
%88 = call i64 @FUNC(i64 %4)
%89 = call i64 @FUNC(i64 %4)
%90 = add i64 %16, 32
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = call i64 @FUNC(i64 %92, i64 %5, i64 %sv_0.0.reload, i64 %3, i64 %2, i64 %1)
%94 = add i64 %53, 104
%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
br i1 %98, label LBL_16, label LBL_15
LBL_15:
%99 = load i64, i64* %59, align 8
%100 = call i64 @FUNC(i64 %99, i64 %5)
%101 = load i64, i64* %30, align 8
%102 = call i64 @FUNC(i64 %101, i64 %6)
%103 = call i64 @FUNC(i64 137, i64 %6, i64 %6, i64 %3, i64 %2, i64 %1)
store i64 4294967290, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_16:
%104 = add i64 %53, 40
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = sext i32 %106 to i64
%108 = call i64 @FUNC(i64 %107, i64 %5, i64 %sv_0.0.reload, i64 %3, i64 %2, i64 %1)
%109 = add i64 %sv_0.0.reload, 16
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = urem i32 %111, 2
%113 = icmp eq i32 %112, 0
%114 = icmp eq i1 %113, false
br i1 %114, label LBL_18, label LBL_17
LBL_17:
%115 = add i64 %sv_0.0.reload, 8
%116 = inttoptr i64 %115 to i64*
store i64 %4, i64* %116, align 8
br label LBL_18
LBL_18:
%117 = add i64 %53, 16
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = load i32, i32* %105, align 4
%121 = or i32 %120, %119
%122 = urem i32 %121, 2
%123 = icmp eq i32 %122, 0
%124 = icmp eq i1 %123, false
br i1 %124, label LBL_20, label LBL_19
LBL_19:
%125 = zext i32 %119 to i64
%126 = call i64 @FUNC(i64 ptrtoint ([44 x i8]* @gv_1 to i64), i64 %5, i64 %125, i64 %3, i64 %2, i64 %1)
%127 = add i64 %53, 60
%128 = inttoptr i64 %127 to i32*
store i32 0, i32* %128, align 4
%129 = add i64 %53, 64
%130 = inttoptr i64 %129 to i32*
store i32 0, i32* %130, align 4
%131 = call i64 @FUNC(i64 %96)
%132 = add i64 %96, 4
%133 = urem i64 %131, 65536
%134 = call i64 @FUNC(i64 %133, i64 %132)
%135 = add i64 %53, 56
%136 = inttoptr i64 %135 to i32*
store i32 0, i32* %136, align 4
%137 = add i64 %53, 68
%138 = inttoptr i64 %137 to i32*
store i32 0, i32* %138, align 4
%139 = add i64 %53, 72
%140 = inttoptr i64 %139 to i32*
store i32 0, i32* %140, align 4
%141 = add i64 %4, 8
%142 = inttoptr i64 %141 to i32*
%143 = load i32, i32* %142, align 4
%144 = add i64 %53, 76
%145 = inttoptr i64 %144 to i32*
store i32 %143, i32* %145, align 4
%146 = add i64 %4, 12
%147 = inttoptr i64 %146 to i32*
%148 = load i32, i32* %147, align 4
%149 = add i64 %53, 80
%150 = inttoptr i64 %149 to i32*
store i32 %148, i32* %150, align 4
%151 = add i64 %4, 16
%152 = inttoptr i64 %151 to i32*
%153 = load i32, i32* %152, align 4
%154 = add i64 %53, 84
%155 = inttoptr i64 %154 to i32*
store i32 %153, i32* %155, align 4
%156 = add i64 %4, 20
%157 = inttoptr i64 %156 to i32*
%158 = load i32, i32* %157, align 4
%159 = add i64 %53, 88
%160 = inttoptr i64 %159 to i32*
store i32 %158, i32* %160, align 4
%161 = add i64 %4, 24
%162 = inttoptr i64 %161 to i8*
%163 = load i8, i8* %162, align 1
%164 = add i64 %53, 92
%165 = inttoptr i64 %164 to i8*
store i8 %163, i8* %165, align 1
%166 = add i64 %4, 25
%167 = inttoptr i64 %166 to i8*
%168 = load i8, i8* %167, align 1
%169 = add i64 %53, 93
%170 = inttoptr i64 %169 to i8*
store i8 %168, i8* %170, align 1
br label LBL_20
LBL_20:
%171 = ptrtoint i64* %arg2 to i64
%172 = call i64 @FUNC(i64 %53)
%173 = call i64 @FUNC(i64 %4)
%174 = load i64, i64* %59, align 8
%175 = call i64 @FUNC(i64 %174, i64 %5)
%176 = load i64, i64* %30, align 8
%177 = call i64 @FUNC(i64 %176, i64 %6)
%178 = call i64 @FUNC(i64 %4, i64 %171, i64 %53)
%179 = add i64 %sv_0.0.reload, 8
%180 = inttoptr i64 %179 to i64*
%181 = load i64, i64* %180, align 8
%182 = icmp eq i64 %181, 0
%183 = icmp eq i1 %182, false
store i64 4294967277, i64* %rax.0.shrunk.reg2mem
br i1 %183, label LBL_21, label LBL_24
LBL_21:
%184 = trunc i64 %178 to i32
%185 = icmp eq i32 %184, 0
br i1 %185, label LBL_23, label LBL_22
LBL_22:
%sext = mul i64 %178, 4294967296
%186 = ashr exact i64 %sext, 32
%187 = call i64 @FUNC(i64 %186, i64 %171, i64 %53, i64 %171, i64 %2, i64 %1)
br label LBL_23
LBL_23:
%188 = load i64, i64* %59, align 8
%189 = call i64 @FUNC(i64 %188, i64 %6)
%190 = add i64 %53, 96
%191 = inttoptr i64 %190 to i32*
%192 = load i32, i32* %191, align 4
%193 = add i32 %192, 1
store i32 %193, i32* %191, align 4
%194 = add i64 %sv_0.0.reload, 20
%195 = inttoptr i64 %194 to i32*
%196 = load i32, i32* %195, align 4
%197 = add i32 %196, 1
store i32 %197, i32* %195, align 4
%198 = load i32, i32* %110, align 4
%199 = or i32 %198, 1
store i32 %199, i32* %110, align 4
%200 = load i64, i64* %59, align 8
%201 = call i64 @FUNC(i64 %200, i64 %6)
%202 = call i64 @FUNC(i64 ptrtoint ([24 x i8]* @gv_2 to i64), i64 %6, i64 %6, i64 %171, i64 %2, i64 %1)
store i64 %178, i64* %rax.0.shrunk.reg2mem
br label LBL_24
LBL_24:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %171, { 2, 0, 1, 3 }
uselistorder i32 %119, { 1, 0 }
uselistorder i32* %110, { 1, 0, 2 }
uselistorder i64 %96, { 1, 0, 2 }
uselistorder i64 %sv_0.0.reload, { 6, 5, 3, 4, 2, 1, 0 }
uselistorder i64* %59, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 %53, { 12, 11, 13, 14, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 18, 19 }
uselistorder i64* %47, { 1, 0, 2 }
uselistorder i64* %30, { 3, 2, 4, 1, 5, 0, 6 }
uselistorder i32 %9, { 1, 0, 2, 3 }
uselistorder i64 %6, { 2, 1, 0, 3, 4, 7, 6, 5, 10, 9, 8, 11, 12, 13, 14 }
uselistorder i64 %5, { 0, 6, 5, 1, 4, 2, 3 }
uselistorder i64 %4, { 7, 8, 1, 2, 3, 4, 5, 6, 0, 10, 9, 11, 12, 13 }
uselistorder i64 %3, { 3, 2, 4, 1, 0 }
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 8, 1, 7, 9, 6, 10, 5, 2, 3, 4 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @DPR_OPEN, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @DGAP_UNLOCK, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @DGAP_LOCK, { 2, 1, 0 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder i64 8, { 2, 3, 4, 0, 5, 1 }
uselistorder i64 4294967290, { 4, 5, 3, 6, 2, 0, 1 }
uselistorder i64 (i64)* @tty_devnum, { 4, 3, 2, 1, 0 }
uselistorder label LBL_24, { 4, 0, 5, 6, 7, 8, 9, 1, 2, 3 }
} | 1 |
BinRealVul | parse_uint8_3018 | parse_uint8 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i32 @strtoul(i8* %3, i8** nonnull %sv_0, i32 0)
%5 = trunc i32 %4 to i8
%6 = inttoptr i64 %2 to i8*
store i8 %5, i8* %6, align 1
%7 = load i8*, i8** %sv_0, align 8
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = ptrtoint i8* %7 to i64
%12 = icmp eq i64 %11, %arg3
%13 = icmp eq i1 %12, false
%spec.select = select i1 %13, i64 0, i64 4294967274
ret i64 %spec.select
LBL_2:
ret i64 4294967274
} | 0 |
BinRealVul | amdgpu_gem_va_update_vm_18064 | amdgpu_gem_va_update_vm | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.1.reg2mem
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %0, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i32 %6, i32* %sv_0.0.reg2mem
store i64 %5, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = trunc i64 %arg5 to i32
%10 = icmp ne i32 %9, 1
%11 = icmp eq i32 %9, 2
%12 = icmp eq i1 %11, false
%or.cond = icmp eq i1 %10, %12
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%13 = ptrtoint i64* %arg3 to i64
%14 = call i64 @FUNC(i64 %4, i64 %13, i64 0)
br label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %4, i64 %0)
%16 = trunc i64 %15 to i32
store i32 %16, i32* %sv_0.0.reg2mem
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%17 = add i32 %sv_0.0.reload, 1
%18 = icmp ult i32 %17, 2
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = zext i32 %sv_0.0.reload to i64
%20 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %19)
store i64 %20, i64* %rax.1.reg2mem
br label LBL_7
LBL_7:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | tpm_tis_get_tpm_version_755 | tpm_tis_get_tpm_version | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = load i64, i64* %2, align 8
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | avisynth_read_packet_audio_2452 | avisynth_read_packet_audio | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = trunc i64 %2 to i32
%7 = icmp ult i32 %5, %6
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_12
LBL_1:
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %2, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
store i64 %2, i64* %rdi.0.reg2mem
store i32 %6, i32* %.reg2mem
store i32 1000, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_5, label LBL_2
LBL_2:
%17 = load i32, i32* %12, align 4
%18 = add i64 %2, 20
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp ult i32 %17, %20
%22 = sext i32 %13 to i64
br i1 %21, label LBL_3, label LBL_4
LBL_3:
%23 = zext i32 %17 to i64
%24 = call i64 @FUNC(i64 %23, i64 %22, i32 %10)
%25 = load i32, i32* %4, align 4
%26 = trunc i64 %24 to i32
%27 = sub i32 %26, %25
store i64 %23, i64* %rdi.0.reg2mem
store i32 %17, i32* %.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%28 = call i64 @FUNC(i64 1, i64 %22, i32 %10)
%29 = trunc i64 %28 to i32
store i64 1, i64* %rdi.0.reg2mem
store i32 1, i32* %.reg2mem
store i32 %29, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%30 = ptrtoint i64* %arg2 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%31 = icmp eq i32 %sv_0.0.reload, 0
%32 = icmp slt i32 %sv_0.0.reload, 0
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %31, false
%35 = icmp eq i1 %33, %34
br i1 %35, label LBL_7, label LBL_6
LBL_6:
%36 = bitcast i64* %arg2 to i32*
store i32 0, i32* %36, align 4
%37 = add i64 %30, 8
%38 = inttoptr i64 %37 to i64*
store i64 0, i64* %38, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%.reload = load i32, i32* %.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%39 = load i32, i32* %4, align 4
%40 = add i32 %39, %sv_0.0.reload
%41 = icmp ugt i32 %40, %.reload
%42 = sub i32 %.reload, %39
%spec.select = select i1 %41, i32 %42, i32 %sv_0.0.reload
%43 = add i32 %spec.select, %39
store i32 %43, i32* %4, align 4
%44 = trunc i64 %arg3 to i32
%45 = icmp eq i32 %44, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_8, label LBL_12
LBL_8:
%46 = sext i32 %43 to i64
%47 = add i64 %30, 16
%48 = inttoptr i64 %47 to i64*
store i64 %46, i64* %48, align 8
%49 = load i32, i32* %4, align 4
%50 = sext i32 %49 to i64
%51 = add i64 %30, 24
%52 = inttoptr i64 %51 to i64*
store i64 %50, i64* %52, align 8
%53 = add i64 %30, 32
%54 = inttoptr i64 %53 to i32*
store i32 %spec.select, i32* %54, align 4
%55 = call i64 @FUNC(i64 %rdi.0.reload)
%56 = trunc i64 %55 to i32
%57 = mul i32 %spec.select, %56
%58 = add i64 %rdi.0.reload, 16
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = mul i32 %57, %60
%62 = bitcast i64* %arg2 to i32*
store i32 %61, i32* %62, align 4
%63 = bitcast i64* %rsi to i32*
%64 = load i32, i32* %63, align 8
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %66, label LBL_9, label LBL_12
LBL_9:
%67 = sext i32 %64 to i64
%68 = call i64 @FUNC(i64 %67)
%69 = add i64 %30, 8
%70 = inttoptr i64 %69 to i64*
store i64 %68, i64* %70, align 8
%71 = icmp eq i64 %68, 0
%72 = icmp eq i1 %71, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %72, label LBL_10, label LBL_12
LBL_10:
%73 = add i64 %2, 16
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
%76 = icmp eq i64 %75, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %76, label LBL_12, label LBL_11
LBL_11:
%77 = load i64, i64* @gv_0, align 8
%78 = inttoptr i64 %77 to i64*
%79 = load i64, i64* %78, align 8
%80 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 %75, i64 %79, i64 %1)
%81 = add i64 %2, 24
%82 = inttoptr i64 %81 to i32*
store i32 1, i32* %82, align 4
%83 = call i64 @FUNC(i64 %69)
store i64 4294967294, 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 %spec.select, { 0, 2, 1 }
uselistorder i32 %39, { 0, 2, 1 }
uselistorder i32 %sv_0.0.reload, { 2, 3, 0, 1 }
uselistorder i64 %30, { 1, 2, 3, 4, 0 }
uselistorder i32* %4, { 1, 2, 3, 0, 4 }
uselistorder i64 %2, { 6, 7, 8, 1, 0, 4, 3, 2, 5, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 3, 4, 6, 5 }
uselistorder i64 4294967294, { 2, 0, 1 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 (i64, i64, i32)* @av_rescale_q, { 1, 0 }
uselistorder label LBL_12, { 5, 0, 1, 2, 3, 6, 4 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | final_ems_8503 | final_ems | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = and i32 %5, 2
%10 = icmp eq i32 %9, 0
%or.cond = or i1 %10, %8
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %0, i64 1, i64 2, i64 3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%12 = add i64 %0, 32
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_6, label LBL_3
LBL_3:
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %20, label LBL_6, label LBL_4
LBL_4:
%21 = add i64 %0, 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 = and i32 %25, 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %7, %27
store i64 1, i64* %rax.0.reg2mem
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %0, i64 1, i64 2, i64 3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4 }
uselistorder i64 (i64, i64, i64, i64)* @SSLfatal, { 1, 0 }
uselistorder i64 1, { 3, 2, 1, 0, 4 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_6, { 3, 2, 1, 0, 4 }
} | 0 |
BinRealVul | i915_read_blc_pwm_ctl_18015 | i915_read_blc_pwm_ctl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = bitcast i64* %arg1 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp slt i32 %9, 4
store i64 0, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = add i64 %0, 4
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%phitmp = and i64 %0, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %0, { 0, 3, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 0, { 1, 0, 2 }
} | 1 |
BinRealVul | kvm_pin_pages_11693 | kvm_pin_pages | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.02.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = udiv i64 %arg3, 4096
%6 = add i64 %5, %arg2
%sv_0.01 = add i64 %arg2, 1
%7 = icmp ult i64 %sv_0.01, %6
store i64 %sv_0.01, i64* %sv_0.02.reg2mem
br i1 %7, label LBL_2, label LBL_3
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%8 = call i64 @FUNC(i64 %0, i64 %sv_0.02.reload)
%sv_0.0 = add i64 %sv_0.02.reload, 1
%exitcond = icmp eq i64 %sv_0.0, %6
store i64 %sv_0.0, i64* %sv_0.02.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
ret i64 %1
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @gfn_to_pfn_memslot, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | aoedev_freedev_3711 | aoedev_freedev | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %arg1)
br label LBL_2
LBL_2:
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %arg1, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %10)
br label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %arg1)
ret i64 %13
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1, 5, 4, 3, 6 }
} | 0 |
BinRealVul | kobject_get_path_18889 | kobject_get_path | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%sext = mul i64 %1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = and i64 %arg2, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = trunc i64 %1 to i32
%8 = inttoptr i64 %4 to i64*
%9 = call i64* @memset(i64* %8, i32 0, i32 %7)
%10 = call i64 @FUNC(i64 %0, i64 %4, i32 %7)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %7, { 1, 0 }
uselistorder i64 %4, { 0, 2, 1, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | update_dimensions_3187 | update_dimensions | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi9.reg2mem = alloca i32*
%rdi.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi11.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext2, 32
%4 = trunc i64 %0 to i32
%5 = icmp eq i32 %4, %1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = trunc i64 %2 to i32
%8 = sdiv i32 %7, 1073741824
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %8, %11
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = trunc i64 %3 to i32
%15 = sdiv i32 %14, 1073741824
%16 = add i64 %0, 12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %15, %18
store i32 %14, i32* %.pre-phi11.reg2mem
br i1 %19, label LBL_5, label LBL_3
LBL_3:
%20 = add i64 %0, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_3.LBL_5_crit_edge
LBL_4:
%.pre10 = trunc i64 %3 to i32
store i32 %.pre10, i32* %.pre-phi11.reg2mem
br label LBL_5
LBL_5:
%.pre-phi11.reload = load i32, i32* %.pre-phi11.reg2mem
%25 = add i64 %0, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, %.pre-phi11.reload
store i32 %11, i32* %.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
store i32* %10, i32** %.pre-phi9.reg2mem
br i1 %28, label LBL_8, label LBL_6
LBL_6:
%29 = and i64 %3, 4294967295
%30 = and i64 %2, 4294967295
%31 = call i64 @FUNC(i64 %30, i64 %29, i64 0, i64 %0)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %33, label LBL_7, label LBL_13
LBL_7:
%34 = call i64 @FUNC(i64 %30, i64 1, i64 0, i64 1)
%35 = call i64 @FUNC(i64 %30, i64 %30, i64 %29)
%.pre = add nuw nsw i64 %30, 8
%.pre4 = inttoptr i64 %.pre to i32*
%.pre6 = add i64 %0, 8
%.pre8 = inttoptr i64 %.pre6 to i32*
%.pre12 = load i32, i32* %.pre4, align 4
store i32 %.pre12, i32* %.reg2mem
store i64 %30, i64* %rdi.0.reg2mem
store i32* %.pre8, i32** %.pre-phi9.reg2mem
br label LBL_8
LBL_8:
%.pre-phi9.reload = load i32*, i32** %.pre-phi9.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%36 = sdiv i32 %.reload, 1073741824
store i32 %36, i32* %.pre-phi9.reload, align 4
%37 = add i64 %rdi.0.reload, 12
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = sdiv i32 %39, 1073741824
%41 = add i64 %0, 12
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i32, i32* %.pre-phi9.reload, align 4
%44 = mul i32 %40, 2
%45 = add i32 %43, 1
%46 = add i32 %45, %44
%47 = sext i32 %46 to i64
%48 = call i64 @FUNC(i64 %47)
%49 = add i64 %0, 16
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
%51 = load i32, i32* %.pre-phi9.reload, align 4
%52 = sext i32 %51 to i64
%53 = call i64 @FUNC(i64 %52)
%54 = add i64 %0, 32
%55 = inttoptr i64 %54 to i64*
store i64 %53, i64* %55, align 8
%56 = load i32, i32* %.pre-phi9.reload, align 4
%57 = mul i32 %56, 4
%58 = sext i32 %57 to i64
%59 = call i64 @FUNC(i64 %58)
%60 = add i64 %0, 40
%61 = inttoptr i64 %60 to i64*
store i64 %59, i64* %61, align 8
%62 = load i32, i32* %.pre-phi9.reload, align 4
%63 = sext i32 %62 to i64
%64 = call i64 @FUNC(i64 %63)
%65 = add i64 %0, 48
%66 = inttoptr i64 %65 to i64*
store i64 %64, i64* %66, align 8
%67 = load i32, i32* %.pre-phi9.reload, align 4
%68 = add i32 %67, 1
%69 = sext i32 %68 to i64
%70 = call i64 @FUNC(i64 %69)
%71 = add i64 %0, 56
%72 = inttoptr i64 %71 to i64*
store i64 %70, i64* %72, align 8
%73 = load i64, i64* %50, align 8
%74 = icmp eq i64 %73, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %74, label LBL_13, label LBL_9
LBL_9:
%75 = load i64, i64* %55, align 8
%76 = icmp eq i64 %75, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %76, label LBL_13, label LBL_10
LBL_10:
%77 = load i64, i64* %61, align 8
%78 = icmp eq i64 %77, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %78, label LBL_13, label LBL_11
LBL_11:
%79 = load i64, i64* %66, align 8
%80 = icmp ne i64 %79, 0
%81 = icmp eq i64 %70, 0
%82 = icmp eq i1 %81, false
%or.cond = icmp eq i1 %82, %80
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_12, label LBL_13
LBL_12:
%83 = add i64 %73, 1
%84 = add i64 %0, 24
%85 = inttoptr i64 %84 to i64*
store i64 %83, i64* %85, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %30, { 0, 1, 4, 3, 2, 5 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 8, 9, 10, 11, 12, 13, 14, 1, 2, 0, 3, 5, 7, 6, 4 }
uselistorder i32* %.pre-phi11.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi9.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 3, 2, 1, 5 }
uselistorder i64 4294967284, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_mallocz, { 4, 3, 2, 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder label LBL_13, { 5, 0, 3, 2, 1, 4 }
} | 0 |
BinRealVul | add_init_drive_14257 | add_init_drive | 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 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %1, i64 %7)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | _php_stream_memory_create_12444 | _php_stream_memory_create | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC(i64 32)
%2 = inttoptr i64 %1 to i64*
store i64 0, i64* %2, align 8
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
store i64 0, i64* %4, align 8
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %1, 24
%8 = inttoptr i64 %7 to i32*
store i32 -1, i32* %8, align 4
%9 = add i64 %1, 28
%10 = inttoptr i64 %9 to i32*
store i32 %0, i32* %10, align 4
%11 = urem i64 %arg1, 2
%12 = icmp eq i64 %11, 0
%. = select i1 %12, i64 zext (i32 ptrtoint ([4 x i8]* @gv_0 to i32) to i64), i64 zext (i32 ptrtoint ([3 x i8]* @gv_1 to i32) to i64)
%13 = call i64 @FUNC(i64* nonnull @gv_2, i64 %1, i64 0, i64 %.)
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = or i32 %15, 1
store i32 %16, i32* %14, align 4
ret i64 %13
} | 1 |
BinRealVul | local_mknod_15848 | local_mknod | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i64 %arg2)
%9 = inttoptr i64 %8 to i8*
%10 = call i32 @mknod(i8* %9, i32 33188, i32 0)
%11 = icmp eq i32 %10, -1
%12 = icmp eq i1 %11, false
store i32 %10, i32* %rax.0.in.reg2mem
br i1 %12, label LBL_2, label LBL_7
LBL_2:
%13 = call i64 @FUNC(i64 %7, i64 %arg2)
%14 = call i64 @FUNC(i64 %13, i64 %3)
store i32 %10, i32* %rax.0.in.reg2mem
br label LBL_7
LBL_3:
%15 = icmp eq i32 %4, 2
%16 = icmp eq i1 %15, false
store i32 -1, i32* %rax.0.in.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = trunc i64 %2 to i32
%18 = add i64 %3, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = ptrtoint i32* %arg1 to i64
%22 = call i64 @FUNC(i64 %21, i64 %arg2)
%23 = inttoptr i64 %22 to i8*
%24 = trunc i64 %20 to i32
%25 = call i32 @mknod(i8* %23, i32 %17, i32 %24)
%26 = icmp eq i32 %25, -1
%27 = icmp eq i1 %26, false
store i32 %25, i32* %rax.0.in.reg2mem
br i1 %27, label LBL_5, label LBL_7
LBL_5:
%28 = call i64 @FUNC(i64 %21, i64 %arg2, i64 %3)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, -1
%31 = icmp eq i1 %30, false
store i32 %29, i32* %rax.0.in.reg2mem
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i32* @__errno_location()
%storemerge = load i32, i32* %32, align 4
%33 = call i64 @FUNC(i64 %21, i64 %arg2)
%34 = inttoptr i64 %33 to i8*
%35 = call i32 @remove(i8* %34)
%36 = call i32* @__errno_location()
store i32 %storemerge, i32* %36, align 4
store i32 %29, i32* %rax.0.in.reg2mem
br label LBL_7
LBL_7:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = zext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i32 %29, { 1, 0, 2 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64 %3, { 1, 2, 0 }
uselistorder i32* %rax.0.in.reg2mem, { 0, 6, 2, 4, 3, 1, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 -1, { 1, 2, 0, 3 }
uselistorder i32 (i8*, i32, i32)* @mknod, { 1, 0 }
uselistorder i64 (i64, i64)* @rpath, { 3, 2, 1, 0 }
uselistorder i64 %arg2, { 2, 3, 4, 0, 1 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_7, { 5, 2, 3, 1, 0, 4 }
} | 1 |
BinRealVul | mp_get_count_13580 | mp_get_count | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = add i64 %1, 44
%3 = call i64 @FUNC(i64 %2)
%4 = call i64* @memcpy(i64* nonnull %sv_0, i64* %arg1, i32 44)
%5 = call i64 @FUNC(i64 %2)
%6 = load i64, i64* %sv_0, align 8
%sext = mul i64 %6, 4294967296
%7 = ashr exact i64 %sext, 32
store i64 %7, i64* %sv_1, align 8
%8 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64 44)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%. = select i1 %10, i64 0, i64 4294967282
ret i64 %.
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
} | 0 |
BinRealVul | net_connect_16846 | net_connect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%5 = add i64 %4, 16
%6 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, -1
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_9
LBL_1:
%10 = add i64 %4, 20
%11 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, -1
%14 = icmp eq i1 %13, false
store i64 1, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_9
LBL_2:
%15 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %4)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, -1
%18 = icmp eq i1 %17, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_3, label LBL_9
LBL_3:
%19 = ptrtoint i32* %sv_0 to i64
%20 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0), i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, -1
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_4
LBL_4:
store i32 0, i32* %sv_0, align 4
br label LBL_6
LBL_5:
%.pre = load i32, i32* %sv_0, align 4
%phitmp = icmp eq i32 %.pre, 0
%phitmp3 = icmp eq i1 %phitmp, false
br i1 %phitmp3, label LBL_7, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_4, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%25 = inttoptr i64 %5 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %4, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i64 %4, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33, i32 %29, i32 %26, i64 3)
%35 = add i64 %4, 24
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
%37 = inttoptr i64 %10 to i32*
%38 = load i32, i32* %37, align 4
%39 = load i32, i32* %28, align 4
%40 = load i32, i32* %31, align 4
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 %41, i32 %39, i32 %38, i64 3)
%43 = add i64 %4, 32
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = load i64, i64* %36, align 8
%46 = icmp ne i64 %45, 0
%47 = icmp eq i64 %42, 0
%48 = icmp eq i1 %47, false
%or.cond = icmp eq i1 %48, %46
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_9
LBL_8:
%49 = add i64 %4, 40
%50 = call i64 @FUNC(i64 %49, i64 %45, i64 4096)
%51 = load i64, i64* %44, align 8
%52 = add i64 %4, 48
%53 = call i64 @FUNC(i64 %52, i64 %51, i64 4096)
%54 = call i64 @FUNC(i64 %4)
%55 = bitcast i64* %rdi to i32*
%56 = load i32, i32* %55, align 8
%57 = load i32, i32* %37, align 4
%58 = load i32, i32* %25, align 4
%59 = zext i32 %56 to i64
%60 = zext i32 %57 to i64
%61 = zext i32 %58 to i64
%62 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_5, i64 0, i64 0), i64 %61, i64 %60, i64 %59)
%63 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_0, { 0, 2, 1 }
uselistorder i64 %4, { 1, 0, 2, 3, 4, 5, 8, 9, 6, 7, 10, 11, 12, 14, 13, 15, 16 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 2, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @BACK_RING_INIT, { 1, 0 }
uselistorder i64 (i64, i32, i32, i64)* @xc_gnttab_map_grant_ref, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @xen_be_printf, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64, i8*, i64)* @xenstore_read_fe_int, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 4, 0, 5, 1, 2, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | llcp_sock_getname_4988 | llcp_sock_getname | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64 %3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = inttoptr i64 %3 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 1, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_4
LBL_2:
%9 = add i64 %3, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %3, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %3, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %11 to i64
%19 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %2, i32 %17, i32 %14, i64 %18, i64 %1)
%20 = load i64, i64* %5, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 1, i64* %rax.0.reg2mem
br i1 %22, label LBL_3, label LBL_4
LBL_3:
%23 = ptrtoint i64* %arg2 to i64
%24 = bitcast i64* %arg2 to i32*
store i32 4660, i32* %24, align 4
%25 = bitcast i64* %arg3 to i32*
store i32 276, i32* %25, align 4
%26 = load i64, i64* %5, align 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
store i32 %28, i32* %24, align 4
%29 = load i32, i32* %16, align 4
%30 = add i64 %23, 4
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = load i32, i32* %13, align 4
%33 = add i64 %23, 8
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = load i32, i32* %10, align 4
%36 = add i64 %23, 12
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = add i64 %3, 20
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i64 %23, 16
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = add i64 %3, 24
%44 = add i64 %23, 20
%45 = inttoptr i64 %44 to i64*
%46 = inttoptr i64 %43 to i64*
%47 = call i64* @memcpy(i64* %45, i64* %46, i32 %40)
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 %3, { 0, 1, 5, 3, 4, 2, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 0, 2, 1 }
} | 0 |
BinRealVul | decode_phys_chunk_14090 | decode_phys_chunk | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = urem i64 %3, 2
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%9 = ptrtoint i32* %arg2 to i64
%10 = add i64 %9, 8
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = bitcast i64* %arg1 to i32*
store i32 %12, i32* %13, align 4
%14 = call i64 @FUNC(i64 %10)
%15 = trunc i64 %14 to i32
%16 = add i64 %5, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = bitcast i64* %rdi to i32*
%19 = load i32, i32* %18, align 8
%20 = icmp sgt i32 %19, -1
%21 = icmp slt i32 %15, 0
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %20, %22
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %13, align 4
store i32 1, i32* %17, align 4
br label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %10, i64 1)
%24 = call i64 @FUNC(i64 %10, i64 4)
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 %10, { 1, 0, 2, 3 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @bytestream2_skip, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64)* @bytestream2_get_be32, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | gen_stswx_14993 | gen_stswx | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0)
%4 = add i64 %1, 4294967292
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %2, i64 %5)
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = and i64 %7, 4294967295
%10 = call i64 @FUNC(i64 %2, i64 %9)
%11 = call i64 @FUNC()
%12 = trunc i64 %11 to i32
%13 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%14 = zext i32 %13 to i64
%15 = and i64 %11, 4294967295
%16 = call i64 @FUNC(i64 %15, i64 %14)
%17 = call i64 @FUNC(i64 %15, i64 %15, i64 127)
%18 = add i64 %2, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = and i64 %22, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %27, i32 %8, i32 %12, i32 %25)
%29 = call i64 @FUNC(i64 %9)
%30 = call i64 @FUNC(i64 %15)
%31 = and i64 %24, 4294967295
%32 = call i64 @FUNC(i64 %31)
ret i64 %32
uselistorder i64 %15, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @tcg_temp_free_i32, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 0, 5 }
} | 1 |
BinRealVul | v9fs_mknod_14374 | v9fs_mknod | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.1.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%5 = load i32, i32* %1
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%8 = load i32, i32* %1
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sv_5 = alloca i32, align 4
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = bitcast i32* %sv_3 to i64*
%13 = bitcast i32* %sv_5 to i64*
%14 = call i64 @FUNC(i64 %3, i64 7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %12, i64* nonnull %sv_4, i64* nonnull %13)
%15 = load i32, i32* %sv_3, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %3, i64 %16)
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i32 -2, i32* %sv_0.1.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_1:
%20 = inttoptr i64 %17 to i32*
%21 = call i64 @gnu_dev_makedev(i32 %6, i32 %7)
%22 = load i32, i32* %20, align 4
%23 = zext i32 %8 to i64
%24 = call i64 @FUNC(i64 %3, i64 %17, i64* nonnull %sv_4, i32 %22, i64 %23, i64 %21)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
store i32 %25, i32* %sv_0.0.reg2mem
br i1 %26, label LBL_3, label LBL_2
LBL_2:
%27 = bitcast i32* %sv_1 to i64*
%28 = call i64 @FUNC(i64* nonnull %sv_2, i64* nonnull %27)
%29 = call i64 @FUNC(i64 %3, i64 7, i64 4202519, i64* nonnull %27)
%30 = trunc i64 %29 to i32
%31 = add i32 %30, 7
store i32 %31, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%32 = call i64 @FUNC(i64 %3, i64 %17)
%.pre = load i32, i32* %sv_1, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%33 = zext i32 %.reload to i64
%34 = add i64 %3, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %5 to i64
%38 = and i64 %2, 4294967295
%39 = call i64 @FUNC(i64 %38, i32 %36, i64 %33, i32 %4, i64 %37)
%40 = call i64 @FUNC(i64 %11, i64 %3, i32 %sv_0.1.reload)
%41 = call i64 @FUNC(i64* nonnull %sv_4)
ret i64 %41
uselistorder i64 %3, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | dd_delete_item_7117 | dd_delete_item | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %4, i64 %5, i64 %2, i64 %1)
unreachable
LBL_2:
%10 = call i64 @FUNC(i64 %arg2)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %5, i64 %2, i64 %1)
unreachable
LBL_4:
%15 = ptrtoint i64* %arg1 to i64
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %arg2)
%20 = inttoptr i64 %19 to i8*
%21 = call i32 @unlink(i8* %20)
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
store i32 %21, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_8, label LBL_5
LBL_5:
%24 = call i32* @__errno_location()
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 2
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = call i32* @__errno_location()
store i32 0, i32* %28, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%29 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %19)
store i32 %21, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%30 = inttoptr i64 %19 to i64*
call void @free(i64* %30)
%31 = zext i32 %sv_0.0.reload to i64
ret i64 %31
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_msg_and_die, { 1, 0 }
uselistorder i64 %arg2, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | throttle_compute_wait_15007 | throttle_compute_wait | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.0.reg2mem = alloca i64
%xmm1.1.reg2mem = alloca i128
%sv_0.0.reg2mem = alloca i64
%xmm1.0.reg2mem = alloca i128
%1 = load i128, i128* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = ptrtoint i64* %sv_1 to i64
%4 = add i64 %3, -40
%5 = icmp eq i64 %4, 0
%6 = trunc i64 %4 to i8
%7 = call i8 @llvm.ctpop.i8(i8 %6), !range !8
%8 = urem i8 %7, 2
%9 = icmp eq i8 %8, 0
%10 = call i128 @__asm_movsd.1(i64 %2)
%11 = call i128 @FUNC(i128 %1, i128 %1)
call void @FUNC(i128 %10, i128 %11)
store i128 %11, i128* %xmm1.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%12 = call i128 @FUNC(i128 %11, i128 %11)
call void @FUNC(i128 %10, i128 %12)
%13 = icmp eq i1 %5, false
store i128 %12, i128* %xmm1.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_9
LBL_2:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i128 @__asm_movsd.1(i64 %16)
%18 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
call void @FUNC(i128 %17, i128 %18)
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%19 = call i128 @FUNC(i128 %18, i128 %18)
call void @FUNC(i128 %17, i128 %19)
%20 = icmp eq i1 %5, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i128 @__asm_movsd.1(i64 %2)
%22 = call i128 @__asm_movsd.1(i64 4621819117588971520)
%23 = call i128 @__asm_divsd.2(i128 %21, i128 %22)
%24 = call i64 @FUNC(i128 %23)
%25 = call i128 @FUNC(i128 %23, i128 %23)
%26 = call i64 @FUNC(i128 %25)
store i64 %24, i64* %sv_0.0.reg2mem
store i128 %22, i128* %xmm1.1.reg2mem
br label LBL_6
LBL_5:
%27 = load i64, i64* %15, align 8
%28 = call i128 @__asm_movsd.1(i64 %27)
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i128 @__asm_movsd.1(i64 %31)
%33 = call i128 @FUNC(i128 %32, i128 %28)
%34 = call i64 @FUNC(i128 %33)
%35 = load i64, i64* %15, align 8
%36 = call i128 @__asm_movsd.1(i64 %35)
%37 = call i128 @__asm_movsd.1(i64 4621819117588971520)
%38 = call i128 @__asm_divsd.2(i128 %36, i128 %37)
%39 = call i64 @FUNC(i128 %38)
store i64 %34, i64* %sv_0.0.reg2mem
store i128 %37, i128* %xmm1.1.reg2mem
br label LBL_6
LBL_6:
%40 = icmp ult i64* %sv_1, inttoptr (i64 40 to i64*)
%xmm1.1.reload = load i128, i128* %xmm1.1.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%41 = add i64 %2, 16
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i128 @__asm_movsd.1(i64 %43)
%45 = call i128 @FUNC(i128 %44, i64 %sv_0.0.reload)
%46 = call i64 @FUNC(i128 %45)
%47 = call i128 @__asm_movsd.1(i64 %46)
%48 = call i128 @FUNC(i128 %xmm1.1.reload, i128 %xmm1.1.reload)
call void @FUNC(i128 %47, i128 %48)
%49 = or i1 %40, %5
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = call i128 @__asm_movsd.1(i64 %46)
%51 = call i128 @FUNC(i128 %50)
%52 = call i128 @FUNC(i64 %2)
%53 = call i64 @FUNC()
store i64 %53, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%54 = add i64 %2, 24
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = call i128 @__asm_movsd.1(i64 %56)
%58 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %57, i128 %58)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i128 %23, { 2, 1, 0 }
uselistorder i128 %18, { 1, 0, 2 }
uselistorder i128 %11, { 2, 1, 0, 3 }
uselistorder i1 %5, { 2, 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder label LBL_9, { 0, 2, 1 }
} | 1 |
BinRealVul | qmp_guest_fstrim_2869 | qmp_guest_fstrim | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%5 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
%6 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%7 = load i64, i64* %sv_1, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %3, i64 %7)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_10
LBL_2:
%10 = inttoptr i64 %4 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = load i64, i64* %10, align 8
%17 = call i32* @__errno_location()
%18 = load i32, i32* %17, align 4
%19 = call i64 @FUNC(i64 %3, i32 %18, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %16, i64 %2, i64 %1)
br label LBL_9
LBL_4:
%20 = call i32 (i32, i32, ...) @ioctl(i32 %13, i32 1)
%21 = icmp eq i32 %20, -1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_8, label LBL_5
LBL_5:
%23 = call i32* @__errno_location()
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 25
br i1 %25, label LBL_8, label LBL_6
LBL_6:
%26 = call i32* @__errno_location()
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 95
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%29 = load i64, i64* %10, align 8
%30 = call i32* @__errno_location()
%31 = load i32, i32* %30, align 4
%32 = call i64 @FUNC(i64 %3, i32 %31, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %29, i64 %2, i64 %1)
%33 = call i32 @close(i32 %13)
br label LBL_9
LBL_8:
%34 = call i32 @close(i32 %13)
br label LBL_9
LBL_9:
%35 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %35, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %13, { 1, 0, 2, 3 }
uselistorder i64* %10, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 (i64, i32, i8*, i64, i64, i64)* @error_setg_errno, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | do_open_permission_4456 | do_open_permission | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%.pre = ptrtoint i32* %arg3 to i64
%.pre3 = add i64 %.pre, 4
%.pre5 = inttoptr i64 %.pre3 to i32*
%.pre7 = load i32, i32* %.pre5, align 4
%.pre8 = and i32 %.pre7, 2
%4 = icmp eq i32 %.pre8, 0
%5 = icmp eq i1 %4, false
%or.cond = or i1 %3, %5
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = ptrtoint i64* %arg2 to i64
%8 = urem i32 %.pre7, 2
%9 = or i32 %8, %arg4
%10 = icmp eq i32 %.pre8, 0
%11 = or i32 %9, 6
%sv_0.1 = select i1 %10, i32 %9, i32 %11
%12 = add i64 %.pre, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = udiv i32 %14, 2
%16 = and i32 %15, 2
%17 = or i32 %sv_0.1, %16
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %6, i64 %7, i64 32768, i64 %18)
%20 = and i64 %19, 4294967295
store i64 %20, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %9, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 3, 0, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | sysbus_fdc_class_init_15364 | sysbus_fdc_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
store i64 %1, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 0, i64 %2)
ret i64 %3
} | 1 |
BinRealVul | ip_vs_copy_stats_9012 | ip_vs_copy_stats | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %0, 80
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 40
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = sub i64 %0, %6
store i64 %7, i64* %arg1, align 8
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = sub i64 %10, %13
%15 = add i64 %1, 8
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %0, 56
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = sub i64 %19, %22
%24 = add i64 %1, 16
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
%26 = add i64 %0, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %0, 64
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = sub i64 %28, %31
%33 = add i64 %1, 24
%34 = inttoptr i64 %33 to i64*
store i64 %32, i64* %34, align 8
%35 = add i64 %0, 32
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %0, 72
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = sub i64 %37, %40
%42 = add i64 %1, 32
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
%44 = call i64 @FUNC(i64 %1, i64 %0)
%45 = call i64 @FUNC(i64 %2)
ret i64 %45
uselistorder i64 %0, { 8, 7, 6, 5, 4, 3, 2, 1, 0, 11, 9, 10 }
} | 0 |
BinRealVul | bsg_complete_7948 | bsg_complete | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 12
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = add i64 %2, 8
%7 = trunc i64 %1 to i32
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%8 = call i64 @FUNC(i64 %3)
%9 = load i32, i32* %5, align 4
%10 = icmp eq i32 %9, %7
%11 = icmp eq i1 %10, false
%spec.select = select i1 %11, i32 %sv_0.0.reload, i32 1
%12 = call i64 @FUNC(i64 0, i64 %6)
%13 = call i64 @FUNC(i64 %3)
%14 = trunc i32 %spec.select to i8
%15 = icmp eq i8 %14, 1
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = urem i64 %12, 256
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %18, false
store i32 %spec.select, i32* %sv_0.0.reg2mem
br i1 %19, label LBL_1, label LBL_3
LBL_3:
%20 = urem i32 %spec.select, 256
%21 = zext i32 %20 to i64
ret i64 %21
uselistorder i32 %spec.select, { 1, 0, 2 }
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | slip_close_7351 | slip_close | 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 = icmp eq i64* %arg1, null
store i64 %2, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
%6 = icmp eq i32 %4, 305419896
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, %2
%12 = icmp eq i1 %11, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %2, 16
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC(i64 %13, i64 0)
store i64 0, i64* %9, align 8
%16 = call i64 @FUNC(i64 %13)
%17 = call i64 @FUNC()
%18 = add i64 %2, 24
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %2, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
store i64 %23, 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 %2, { 3, 2, 4, 1, 5, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_4, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | dma_memory_set_1546 | dma_memory_set | define i64 @FUNC(i64* %arg1, i64 %arg2, i8 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 %arg2, i8 %arg3, i64 %arg4)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = zext i8 %arg3 to i64
%7 = call i64 @FUNC(i64 %arg2, i64 %6, i64 %arg4)
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 }
} | 0 |
BinRealVul | create_default_qtables_3227 | create_default_qtables | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i8
%1 = urem i64 %arg2, 256
%2 = call i64 @FUNC(i64 %1, i64 1, i64 99)
%3 = trunc i64 %2 to i32
%4 = icmp ult i8 %0, 50
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = udiv i32 5000, %3
store i32 %5, i32* %storemerge2.reg2mem
br label LBL_3
LBL_2:
%6 = mul i32 %3, 131072
%sext = sub i32 13107200, %6
%7 = ashr exact i32 %sext, 16
store i32 %7, i32* %storemerge2.reg2mem
br label LBL_3
LBL_3:
%8 = ptrtoint i64* %arg1 to i64
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%9 = urem i32 %storemerge2.reload, 65536
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = add i64 %indvars.iv.reload, ptrtoint (i8** @gv_0 to i64)
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = zext i8 %12 to i32
%14 = mul nuw nsw i32 %9, %13
%15 = add nuw nsw i32 %14, 50
%16 = zext i32 %15 to i64
%17 = mul nuw nsw i64 %16, 1374389535
%18 = udiv i64 %17, 137438953472
%19 = call i64 @FUNC(i64 %18, i64 1, i64 255)
%20 = add i64 %indvars.iv.reload, %8
%21 = trunc i64 %19 to i8
%22 = inttoptr i64 %20 to i8*
store i8 %21, i8* %22, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 128
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
ret i64 %20
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @av_clip, { 1, 0 }
} | 0 |
BinRealVul | kvmppc_is_mem_backend_page_size_ok_2423 | kvmppc_is_mem_backend_page_size_ok | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1, i64 0)
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %1)
store i64 %3, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_2:
%5 = call i32 @getpagesize()
%6 = sext i32 %5 to i64
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%7 = load i64, i64* @gv_1, align 8
%8 = sub i64 %sv_0.0.reload, %7
%9 = xor i64 %7, %sv_0.0.reload
%10 = xor i64 %8, %sv_0.0.reload
%11 = and i64 %10, %9
%12 = icmp slt i64 %11, 0
%13 = icmp slt i64 %8, 0
%14 = icmp eq i1 %13, %12
%15 = zext i1 %14 to i64
%16 = and i64 %7, -256
%17 = or i64 %16, %15
ret i64 %17
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %7, { 2, 0, 1 }
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | mxf_read_source_clip_1650 | mxf_read_source_clip | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i32 %arg3, 4609
br i1 %2, label LBL_6, label LBL_1
LBL_1:
%3 = icmp sgt i32 %arg3, 4609
br i1 %3, label LBL_9, label LBL_2
LBL_2:
%4 = icmp eq i32 %arg3, 4354
br i1 %4, label LBL_8, label LBL_3
LBL_3:
%5 = icmp sgt i32 %arg3, 4354
br i1 %5, label LBL_9, label LBL_4
LBL_4:
switch i32 %arg3, label LBL_9 [
i32 514, label LBL_5
i32 4353, label LBL_7
]
LBL_5:
%6 = call i64 @FUNC(i64 %0)
store i64 %6, i64* %arg1, align 8
br label LBL_9
LBL_6:
%7 = call i64 @FUNC(i64 %0)
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
br label LBL_9
LBL_7:
%10 = call i64 @FUNC(i64 %0, i64 16)
%11 = add i64 %1, 16
%12 = call i64 @FUNC(i64 %0, i64 %11, i64 16)
br label LBL_9
LBL_8:
%13 = call i64 @FUNC(i64 %0)
%14 = trunc i64 %13 to i32
%15 = add i64 %1, 32
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
br label LBL_9
LBL_9:
ret i64 0
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 3, 1, 0, 4, 2 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i64 (i64)* @get_be64, { 1, 0 }
uselistorder i32 4354, { 1, 0 }
uselistorder i32 4609, { 1, 0 }
uselistorder i32 %arg3, { 0, 3, 2, 1, 4 }
uselistorder label LBL_9, { 1, 2, 3, 4, 0, 5, 6 }
} | 0 |
BinRealVul | get_target_18091 | get_target | define i64 @FUNC(i8* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i8* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 3, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = load i64, i64* @gv_0, align 8
%7 = icmp eq i64 %6, 3
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 3)
store i64 %9, i64* %arg3, align 8
%10 = icmp eq i64* %arg3, null
%11 = icmp eq i1 %10, false
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
store i64 4294967294, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = and i64 %sv_0.0.reload, 4294967295
ret i64 %13
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64 3, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | sclp_service_call_1647 | sclp_service_call | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = call i64 @FUNC(i64 %arg2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 2, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_7
LBL_2:
%7 = icmp ult i64 %arg2, 8192
store i64 3, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_7, label LBL_3
LBL_3:
%8 = ptrtoint i64* %arg1 to i64
%9 = and i64 %arg2, -8192
%10 = add i64 %8, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp ne i64 %9, %12
%14 = and i64 %arg2, -2147483641
%15 = icmp eq i64 %14, 0
%or.cond = icmp eq i1 %15, %13
store i64 3, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_4, label LBL_7
LBL_4:
%16 = bitcast i32* %sv_1 to i64*
%17 = call i64 @FUNC(i64 %arg2, i64* nonnull %16, i64 2)
%18 = load i32, i32* %sv_1, align 4
%19 = urem i32 %18, 65536
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i16
%23 = icmp ult i16 %22, 2
store i64 3, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_7, label LBL_5
LBL_5:
%24 = load i32, i32* %sv_1, align 4
%25 = urem i32 %24, 65536
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i16
%29 = icmp ult i16 %28, 257
store i64 3, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_6, label LBL_7
LBL_6:
%30 = zext i32 %arg3 to i64
%31 = call i64 @FUNC(i64* nonnull %16, i64 %30)
%32 = load i32, i32* %sv_1, align 4
%33 = urem i32 %32, 65536
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = urem i64 %35, 65536
%37 = call i64 @FUNC(i64 %arg2, i64* nonnull %16, i64 %36)
%38 = call i64 @FUNC(i64 %arg2)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i32* %sv_1, { 2, 1, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 7, 2, 1, 4, 3, 5, 6 }
uselistorder i64 (i64)* @be16_to_cpu, { 2, 1, 0 }
uselistorder i64 3, { 1, 0, 3, 2 }
uselistorder i64 2, { 2, 0, 1 }
uselistorder i64 %arg2, { 2, 1, 5, 0, 4, 3, 6 }
uselistorder label LBL_7, { 6, 1, 0, 3, 2, 4, 5 }
} | 0 |
BinRealVul | load_module_16144 | load_module | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i8*
%1 = call i64* @dlopen(i8* %0, i32 2)
%2 = icmp eq i64* %1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i8* @dlerror()
%5 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i8* %0, i8* %4)
br label LBL_2
LBL_2:
%7 = call i64* @dlsym(i64* %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
%8 = icmp eq i64* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%11 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %10, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i8* %0)
%12 = call i32 @dlclose(i64* %1)
br label LBL_4
LBL_4:
%13 = ptrtoint i64* %7 to i64
ret i64 %13
uselistorder i64* %7, { 1, 0 }
uselistorder i8* %0, { 1, 0, 2 }
} | 1 |
BinRealVul | jas_stream_write_11469 | jas_stream_write | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge2.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i64
%storemerge24.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = icmp sgt i32 %1, 0
store i32 0, i32* %storemerge24.reg2mem
store i64 %arg2, i64* %sv_0.03.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%3 = inttoptr i64 %sv_0.03.reload to i8*
%4 = load i8, i8* %3, align 1
%5 = sext i8 %4 to i64
%6 = and i64 %5, 4294967295
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, -1
%10 = icmp eq i1 %9, false
store i32 %storemerge24.reload, i32* %storemerge2.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = add i64 %sv_0.03.reload, 1
%12 = add nuw nsw i32 %storemerge24.reload, 1
%13 = icmp slt i32 %12, %1
store i32 %12, i32* %storemerge24.reg2mem
store i64 %11, i64* %sv_0.03.reg2mem
store i32 %12, i32* %storemerge2.lcssa.reg2mem
br i1 %13, label LBL_1, label LBL_3
LBL_3:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%storemerge = zext i32 %storemerge2.lcssa.reload to i64
ret i64 %storemerge
uselistorder i32 %storemerge24.reload, { 1, 0 }
uselistorder i32 %1, { 1, 0 }
uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | flow_keys_hash_start_13187 | flow_keys_hash_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 0)
ret i64 %0
} | 1 |
BinRealVul | base64_decode_xmlrpc_18997 | base64_decode_xmlrpc | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i8
%rax.1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.218.reg2mem = alloca i32
%sv_1.319.reg2mem = alloca i32
%sv_2.220.reg2mem = alloca i64
%storemerge21.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge123.reg2mem = alloca i32
%indvars.iv36.reg2mem = alloca i64
%storemerge224.reg2mem = alloca i32
%indvars.iv38.reg2mem = alloca i64
%storemerge325.reg2mem = alloca i32
%indvars.iv41.reg2mem = alloca i64
%indvars.iv44.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i8, i8* %0
%3 = load i8, i8* %0
%sv_4 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %1)
store i64 0, i64* %indvars.iv44.reg2mem
br label LBL_1
LBL_1:
%indvars.iv44.reload = load i64, i64* %indvars.iv44.reg2mem
%5 = add i64 %indvars.iv44.reload, ptrtoint (i8** @gv_0 to i64)
%6 = inttoptr i64 %5 to i8*
store i8 -128, i8* %6, align 1
%indvars.iv.next45 = add nuw nsw i64 %indvars.iv44.reload, 1
%exitcond46 = icmp eq i64 %indvars.iv.next45, 255
store i64 %indvars.iv.next45, i64* %indvars.iv44.reg2mem
store i64 65, i64* %indvars.iv41.reg2mem
store i32 65, i32* %storemerge325.reg2mem
br i1 %exitcond46, label LBL_2, label LBL_1
LBL_2:
%storemerge325.reload = load i32, i32* %storemerge325.reg2mem
%indvars.iv41.reload = load i64, i64* %indvars.iv41.reg2mem
%7 = trunc i32 %storemerge325.reload to i8
%8 = add i8 %7, -65
%9 = add i64 %indvars.iv41.reload, ptrtoint (i8** @gv_0 to i64)
%10 = inttoptr i64 %9 to i8*
store i8 %8, i8* %10, align 1
%indvars.iv.next42 = add nuw nsw i64 %indvars.iv41.reload, 1
%11 = add nuw nsw i32 %storemerge325.reload, 1
%exitcond43 = icmp eq i64 %indvars.iv.next42, 91
store i64 %indvars.iv.next42, i64* %indvars.iv41.reg2mem
store i32 %11, i32* %storemerge325.reg2mem
br i1 %exitcond43, label LBL_3, label LBL_2
LBL_3:
%12 = ptrtoint i64* %sv_4 to i64
store i64 97, i64* %indvars.iv38.reg2mem
store i32 97, i32* %storemerge224.reg2mem
br label LBL_4
LBL_4:
%storemerge224.reload = load i32, i32* %storemerge224.reg2mem
%indvars.iv38.reload = load i64, i64* %indvars.iv38.reg2mem
%13 = trunc i32 %storemerge224.reload to i8
%14 = add i8 %13, -71
%15 = add i64 %indvars.iv38.reload, ptrtoint (i8** @gv_0 to i64)
%16 = inttoptr i64 %15 to i8*
store i8 %14, i8* %16, align 1
%indvars.iv.next39 = add nuw nsw i64 %indvars.iv38.reload, 1
%17 = add nuw nsw i32 %storemerge224.reload, 1
%exitcond40 = icmp eq i64 %indvars.iv.next39, 123
store i64 %indvars.iv.next39, i64* %indvars.iv38.reg2mem
store i32 %17, i32* %storemerge224.reg2mem
store i64 48, i64* %indvars.iv36.reg2mem
store i32 48, i32* %storemerge123.reg2mem
br i1 %exitcond40, label LBL_5, label LBL_4
LBL_5:
%storemerge123.reload = load i32, i32* %storemerge123.reg2mem
%indvars.iv36.reload = load i64, i64* %indvars.iv36.reg2mem
%18 = trunc i32 %storemerge123.reload to i8
%19 = add i8 %18, 4
%20 = add i64 %indvars.iv36.reload, ptrtoint (i8** @gv_0 to i64)
%21 = inttoptr i64 %20 to i8*
store i8 %19, i8* %21, align 1
%indvars.iv.next37 = add nuw nsw i64 %indvars.iv36.reload, 1
%22 = add nuw nsw i32 %storemerge123.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next37, 58
store i64 %indvars.iv.next37, i64* %indvars.iv36.reg2mem
store i32 %22, i32* %storemerge123.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
store i8 62, i8* bitcast (i64* @gv_1 to i8*), align 8
store i8 63, i8* bitcast (i64* @gv_2 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_3 to i8*), align 8
%23 = icmp eq i8 %3, 61
%24 = icmp eq i8 %2, 61
%25 = icmp eq i1 %24, false
%. = select i1 %25, i32 3, i32 2
%26 = add i64 %12, -31
%spec.select47 = select i1 %23, i32 1, i32 %.
%27 = zext i32 %spec.select47 to i64
%28 = icmp eq i32 %spec.select47, 3
store i32 0, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i64 %arg2, i64* %sv_2.0.reg2mem
br label LBL_7
LBL_7:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i32 0, i32* %storemerge21.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.220.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.319.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.218.reg2mem
br label LBL_8.preheader
LBL_8:
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%29 = add i64 %sv_2.1.reload, 1
%30 = inttoptr i64 %sv_2.1.reload to i8*
%31 = load i8, i8* %30, align 1
%32 = add i32 %sv_0.1.reload, 1
%33 = icmp sgt i32 %32, %arg3
%spec.select = select i1 %33, i32 1, i32 %sv_1.1.reload
%34 = call i16** @__ctype_b_loc()
%35 = load i16*, i16** %34, align 8
%36 = ptrtoint i16* %35 to i64
%37 = sext i8 %31 to i64
%38 = mul i64 %37, 2
%39 = add i64 %38, %36
%40 = inttoptr i64 %39 to i16*
%41 = load i16, i16* %40, align 2
%42 = and i16 %41, 8192
%43 = icmp eq i16 %42, 0
%44 = icmp ne i8 %31, 10
%or.cond.not = icmp eq i1 %44, %43
%45 = icmp eq i8 %31, 13
%46 = icmp eq i1 %45, false
%or.cond7 = icmp eq i1 %46, %or.cond.not
store i32 %32, i32* %sv_0.1.reg2mem
store i32 %spec.select, i32* %sv_1.1.reg2mem
store i64 %29, i64* %sv_2.1.reg2mem
br i1 %or.cond7, label LBL_9, label LBL_8
LBL_9:
%47 = icmp eq i32 %spec.select, 0
%48 = icmp eq i1 %47, false
store i64 0, i64* %rax.1.reg2mem
br i1 %48, label LBL_18, label LBL_10
LBL_10:
%49 = add i64 %37, ptrtoint (i8** @gv_0 to i64)
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = icmp slt i8 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_12, label LBL_11
LBL_11:
%54 = add i32 %storemerge21.reload, -1
store i32 %54, i32* %sv_3.0.reg2mem
br label LBL_13
LBL_12:
%55 = sext i32 %storemerge21.reload to i64
%56 = add i64 %55, %12
%57 = add i64 %56, -24
%58 = inttoptr i64 %57 to i8*
store i8 %31, i8* %58, align 1
%59 = load i8, i8* %50, align 1
%60 = add i64 %56, -28
%61 = inttoptr i64 %60 to i8*
store i8 %59, i8* %61, align 1
store i32 %storemerge21.reload, i32* %sv_3.0.reg2mem
br label LBL_13
LBL_13:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%62 = add i32 %sv_3.0.reload, 1
%63 = icmp slt i32 %62, 4
store i32 %62, i32* %storemerge21.reg2mem
store i64 %29, i64* %sv_2.220.reg2mem
store i32 %spec.select, i32* %sv_1.319.reg2mem
store i32 %32, i32* %sv_0.218.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %63, label LBL_8.preheader, label LBL_15
LBL_14:
%sv_0.218.reload = load i32, i32* %sv_0.218.reg2mem
%sv_1.319.reload = load i32, i32* %sv_1.319.reg2mem
%sv_2.220.reload = load i64, i64* %sv_2.220.reg2mem
%storemerge21.reload = load i32, i32* %storemerge21.reg2mem
store i32 %sv_0.218.reload, i32* %sv_0.1.reg2mem
store i32 %sv_1.319.reload, i32* %sv_1.1.reg2mem
store i64 %sv_2.220.reload, i64* %sv_2.1.reg2mem
br label LBL_8
LBL_15:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%64 = add nuw nsw i64 %26, %indvars.iv.reload
%65 = inttoptr i64 %64 to i8*
%66 = load i8, i8* %65, align 1
%67 = zext i8 %66 to i64
%68 = call i64 @FUNC(i64 %1, i64 %67)
%69 = icmp ult i64 %indvars.iv.next, %27
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %69, label LBL_15, label LBL_16
LBL_16:
store i32 %32, i32* %sv_0.0.reg2mem
store i32 %spec.select, i32* %sv_1.0.reg2mem
store i64 %29, i64* %sv_2.0.reg2mem
br i1 %28, label LBL_7, label LBL_17
LBL_17:
%70 = and i64 %indvars.iv.next, 4294967295
store i64 %70, i64* %rax.1.reg2mem
br label LBL_18
LBL_18:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %indvars.iv.next, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i32 %spec.select, { 2, 0, 3, 1 }
uselistorder i32 %32, { 2, 0, 1, 3 }
uselistorder i64 %29, { 2, 0, 1 }
uselistorder i64 %sv_2.1.reload, { 1, 0 }
uselistorder i64* %indvars.iv44.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv41.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge325.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv38.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge224.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv36.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge123.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.1.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_2.1.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 1 }
uselistorder i8* %0, { 1, 0 }
uselistorder i32 0, { 3, 0, 1, 2 }
uselistorder i32 3, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 4, 3, 2, 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_8.preheader, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | folder_uncompressed_size_7969 | folder_uncompressed_size | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.in.reg2mem = alloca i32
%.in17.reg2mem = alloca i32
%storemerge35.reg2mem = alloca i32
%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 = trunc i64 %0 to i32
%5 = add i32 %4, -1
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_8
LBL_1:
%8 = trunc i64 %3 to i32
%9 = icmp eq i32 %8, 0
%10 = add i64 %0, 16
%11 = inttoptr i64 %10 to i64*
store i32 %5, i32* %.in.reg2mem
br label LBL_3.preheader
LBL_2:
%storemerge35.reload = load i32, i32* %storemerge35.reg2mem
%12 = zext i32 %storemerge35.reload to i64
%13 = mul i64 %12, 8
%14 = add i64 %13, %31
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, %32
br i1 %17, label LBL_5, label LBL_3
LBL_3:
%18 = add i32 %storemerge35.reload, 1
%19 = icmp ult i32 %18, %8
store i32 %18, i32* %storemerge35.reg2mem
store i32 %.in.reload, i32* %.in17.reg2mem
br i1 %19, label LBL_2, label LBL_4
LBL_4:
%.in17.reload = load i32, i32* %.in17.reg2mem
%20 = zext i32 %.in17.reload to i64
%21 = add i64 %0, 24
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%sext = mul i64 %20, 4294967296
%24 = ashr exact i64 %sext, 29
%25 = add i64 %23, %24
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
store i64 %27, i64* %storemerge.reg2mem
br label LBL_8
LBL_5:
%28 = add i32 %.in.reload, -1
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
store i32 %28, i32* %.in.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %30, label LBL_3.preheader, label LBL_8
LBL_6:
store i32 %5, i32* %.in17.reg2mem
br i1 %9, label LBL_4, label LBL_2.lr.ph
LBL_7:
%.in.reload = load i32, i32* %.in.reg2mem
%31 = load i64, i64* %11, align 8
%32 = sext i32 %.in.reload to i64
store i32 0, i32* %storemerge35.reg2mem
br label LBL_2
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.in.reload, { 1, 2, 0 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i32* %storemerge35.reg2mem, { 2, 1, 0 }
uselistorder i32* %.in17.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 0, 3, 1, 2 }
uselistorder i32 -1, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 1 }
uselistorder label LBL_3.preheader, { 1, 0 }
} | 0 |
BinRealVul | v9mode_to_mode_9650 | v9mode_to_mode | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.4.reg2mem = alloca i32
%0 = trunc i64 %arg1 to i32
%1 = urem i32 %0, 512
%2 = udiv i64 %arg1, 2
%3 = trunc i64 %2 to i32
%4 = and i32 %3, 16384
%5 = or i32 %4, %1
%6 = and i64 %arg1, 16384
%7 = icmp eq i64 %6, 0
%8 = or i32 %5, 40960
%sv_0.1 = select i1 %7, i32 %5, i32 %8
%9 = and i64 %arg1, 8192
%10 = icmp eq i64 %9, 0
%11 = or i32 %sv_0.1, 49152
%spec.select2 = select i1 %10, i32 %sv_0.1, i32 %11
%12 = and i32 %0, 4096
%13 = or i32 %spec.select2, %12
%14 = and i64 %arg1, 24576
%15 = icmp eq i64 %14, 0
store i32 %13, i32* %sv_0.4.reg2mem
br i1 %15, label LBL_5, label LBL_1
LBL_1:
%16 = icmp eq i64* %arg2, null
br i1 %16, label LBL_4, label LBL_2
LBL_2:
%17 = ptrtoint i64* %arg2 to i64
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 99
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = or i32 %13, 8192
store i32 %25, i32* %sv_0.4.reg2mem
br label LBL_5
LBL_4:
%26 = or i32 %13, 24576
store i32 %26, i32* %sv_0.4.reg2mem
br label LBL_5
LBL_5:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%27 = icmp ult i32 %sv_0.4.reload, 512
%28 = icmp eq i1 %27, false
%29 = or i32 %sv_0.4.reload, 32768
%spec.select3 = select i1 %28, i32 %sv_0.4.reload, i32 %29
%30 = and i32 %0, 3584
%31 = or i32 %spec.select3, %30
%32 = zext i32 %31 to i64
ret i64 %32
uselistorder i32 %sv_0.4.reload, { 2, 0, 1 }
uselistorder i32 %13, { 2, 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i32 %0, { 1, 2, 0 }
uselistorder i32* %sv_0.4.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 512, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | rt2x00lib_probe_dev_18090 | rt2x00lib_probe_dev | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 20
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 16
%4 = call i64 @FUNC(i64 0, i64 %3)
call void @llvm.trap()
unreachable
} | 1 |
BinRealVul | gf_isom_get_original_format_type_5861 | gf_isom_get_original_format_type | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = zext i32 %arg2 to i64
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = inttoptr i64 %1 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5, i32 %arg3, i64* nonnull %sv_0, i64 0)
%7 = load i64, i64* %sv_0, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_5
LBL_2:
%10 = inttoptr i64 %7 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = icmp eq i64* %arg4, null
%14 = icmp eq i64 %12, 0
%or.cond = or i1 %13, %14
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_3
LBL_3:
%15 = inttoptr i64 %12 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = inttoptr i64 %16 to i32*
%19 = load i32, i32* %18, align 4
%20 = bitcast i64* %arg4 to i32*
store i32 %19, i32* %20, 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* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 5 }
uselistorder label LBL_5, { 2, 1, 0, 3, 4 }
} | 0 |
BinRealVul | ds2760_battery_remove_18117 | ds2760_battery_remove | 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 %1, 8
%3 = inttoptr i64 %1 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 %2)
%6 = load i64, i64* %3, align 8
%7 = call i64 @FUNC(i64 %6, i64 %2)
%8 = load i64, i64* %3, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %1)
ret i64 0
uselistorder i64 (i64, i64)* @cancel_rearming_delayed_workqueue, { 1, 0 }
} | 1 |
BinRealVul | visit_type_bool_16741 | visit_type_bool | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg4 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = and i64 %1, 4294967295
%3 = xor i64 %2, 1
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %4, 0
%6 = ptrtoint i64* %arg1 to i64
%spec.select = select i1 %5, i64 %3, i64 %6
ret i64 %spec.select
} | 1 |
BinRealVul | jas_stream_read_11468 | jas_stream_read | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge2.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i64
%storemerge24.reg2mem = alloca i32
%0 = trunc i64 %arg3 to i32
%1 = icmp sgt i32 %0, 0
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = ptrtoint i64* %arg2 to i64
store i32 0, i32* %storemerge24.reg2mem
store i64 %3, i64* %sv_0.03.reg2mem
br label LBL_2
LBL_2:
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, -1
%7 = icmp eq i1 %6, false
store i32 %storemerge24.reload, i32* %storemerge2.lcssa.reg2mem
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%8 = add i64 %sv_0.03.reload, 1
%9 = trunc i64 %4 to i8
%10 = inttoptr i64 %sv_0.03.reload to i8*
store i8 %9, i8* %10, align 1
%11 = add nuw nsw i32 %storemerge24.reload, 1
%12 = icmp slt i32 %11, %0
store i32 %11, i32* %storemerge24.reg2mem
store i64 %8, i64* %sv_0.03.reg2mem
store i32 %11, i32* %storemerge2.lcssa.reg2mem
br i1 %12, label LBL_2, label LBL_4
LBL_4:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%storemerge = zext i32 %storemerge2.lcssa.reload to i64
ret i64 %storemerge
uselistorder i32 %storemerge24.reload, { 1, 0 }
uselistorder i32 %0, { 1, 0 }
uselistorder i32* %storemerge24.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | pxa2xx_pcmcia_class_init_14055 | pxa2xx_pcmcia_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
ret i64 %0
} | 1 |
BinRealVul | pci_vpb_class_init_2344 | pci_vpb_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%5 = load i64, i64* @gv_1, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = add i64 %0, 32
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | rpza_decode_frame_18750 | rpza_decode_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i64*
store i64 %3, i64* %9, align 8
%10 = add i64 %4, 16
%11 = inttoptr i64 %10 to i32*
store i32 %7, i32* %11, align 4
%12 = bitcast i64* %arg1 to i32*
store i32 1, i32* %12, align 4
%13 = add i64 %4, 4
%14 = inttoptr i64 %13 to i32*
store i32 7, i32* %14, align 4
%15 = trunc i64 %4 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_2, label LBL_1
LBL_1:
%18 = load i64, i64* %9, align 8
%19 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %2, i64 %1)
%20 = and i64 %4, 4294967295
store i64 %20, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%21 = call i64 @FUNC(i64 %4)
%22 = bitcast i64* %arg3 to i32*
store i32 1, i32* %22, align 4
store i64 %4, i64* %arg2, align 8
%23 = zext i32 %7 to i64
store i64 %23, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 3, 2, 0, 1, 4, 5, 6, 7 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
} | 1 |
BinRealVul | stsh_Write_8160 | stsh_Write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %storemerge.reg2mem
br label LBL_4
LBL_2:
%6 = call i64 @FUNC(i64 %1)
%7 = and i64 %6, 4294967295
%8 = call i64 @FUNC(i64 %0, i64 %7)
store i32 0, i32* %sv_0, align 4
%9 = call i64 @FUNC(i64 %0, i32* nonnull %sv_0)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %11, label LBL_3, label LBL_4
LBL_3:
%.reload = load i64, i64* %.reg2mem
%12 = inttoptr i64 %.reload to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %0, i64 %14)
%16 = add i64 %.reload, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %0, i64 %19)
%21 = call i64 @FUNC(i64 %0, i32* nonnull %sv_0)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 %21, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_3, label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64 0, { 0, 7, 1, 5, 2, 3, 4, 6 }
uselistorder i64 (i64, i32*)* @gf_list_enum, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_write_u32, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | tpm_display_backend_drivers_2520 | tpm_display_backend_drivers | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = call i32 @fwrite(i64* bitcast ([40 x i8]* @gv_1 to i64*), i32 1, i32 39, %_IO_FILE* %0)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = mul i64 %indvars.iv.reload, 8
%3 = add i64 %2, ptrtoint (i64* @gv_2 to i64)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = inttoptr i64 %5 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %2, ptrtoint ([5 x i8*]* @gv_3 to i64)
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%13 = inttoptr i64 %11 to i8*
%14 = inttoptr i64 %8 to i8*
%15 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i8* %13, i8* %14)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%16 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%17 = call i32 @fputc(i32 10, %_IO_FILE* %16)
%18 = sext i32 %17 to i64
ret i64 %18
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder %_IO_FILE** @gv_0, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | sbr_hf_calc_npatches_3032 | sbr_hf_calc_npatches | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%.reg2mem18 = alloca i32
%storemerge1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.0.ph.reg2mem = alloca i32
%.pre-phi9.reg2mem = alloca i64*
%.pre-phi13.reg2mem = alloca i32*
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = ptrtoint i64* %arg2 to i64
store i64 %3, i64* %rsi, align 8
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 52
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = ashr i32 %12, 1
%14 = add nsw i32 %13, 2048000
%15 = zext i32 %12 to i64
%16 = ashr i32 %14, 31
%17 = zext i32 %14 to i64
%18 = zext i32 %16 to i64
%19 = mul i64 %18, 4294967296
%20 = or i64 %19, %17
%21 = sdiv i64 %20, %15
%22 = add i64 %3, 48
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
%24 = load i64, i64* %5, align 8
%25 = add i64 %24, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %3, 56
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i32 %33, %27
%35 = zext i32 %34 to i64
%sext = mul i64 %21, 4294967296
%36 = ashr exact i64 %sext, 32
%37 = icmp slt i64 %36, %35
br i1 %37, label LBL_1, label LBL_3
LBL_1:
%38 = add i64 %3, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%41 = sext i32 %storemerge2.reload to i64
%42 = mul i64 %41, 4
%43 = add i64 %42, %40
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = zext i32 %45 to i64
%47 = icmp sgt i64 %36, %46
%48 = add i32 %storemerge2.reload, 1
store i32 %48, i32* %storemerge2.reg2mem
br i1 %47, label LBL_2, label LBL_4
LBL_3:
%49 = add i64 %3, 24
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%.pre = add i64 %3, 16
%.pre8 = inttoptr i64 %.pre to i64*
store i32* %50, i32** %.pre-phi13.reg2mem
store i64* %.pre8, i64** %.pre-phi9.reg2mem
store i32 %51, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_4:
%.pre10 = add i64 %3, 24
%.pre12 = inttoptr i64 %.pre10 to i32*
store i32* %.pre12, i32** %.pre-phi13.reg2mem
store i64* %39, i64** %.pre-phi9.reg2mem
store i32 %storemerge2.reload, i32* %sv_0.0.ph.reg2mem
br label LBL_5
LBL_5:
%52 = bitcast i64* %rsi to i32*
%53 = trunc i64 %3 to i32
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%.pre-phi9.reload = load i64*, i64** %.pre-phi9.reg2mem
%.pre-phi13.reload = load i32*, i32** %.pre-phi13.reg2mem
%54 = add i64 %3, 32
%55 = inttoptr i64 %54 to i64*
%56 = add i64 %3, 40
%57 = inttoptr i64 %56 to i64*
store i32 0, i32* %.reg2mem
store i32 %53, i32* %sv_2.0.reg2mem
store i32 %9, i32* %sv_1.0.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_3.0.reg2mem
br label LBL_6
LBL_6:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%58 = load i32, i32* %52, align 8
%59 = add i32 %58, %sv_2.0.reload
store i32 0, i32* %sv_4.0.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i32 %sv_0.0.reload, i32* %storemerge1.reg2mem
br label LBL_8
LBL_7:
%60 = load i64, i64* %.pre-phi9.reload, align 8
%61 = sext i32 %storemerge1.reload to i64
%62 = mul i64 %61, 4
%63 = add i64 %60, %62
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = add i32 %65, %58
%67 = urem i32 %66, 2
%68 = add i32 %storemerge1.reload, -1
store i32 %67, i32* %sv_4.0.reg2mem
store i32 %65, i32* %sv_3.1.reg2mem
store i32 %68, i32* %storemerge1.reg2mem
br label LBL_8
LBL_8:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%69 = icmp eq i32 %storemerge1.reload, %sv_0.0.reload
br i1 %69, label LBL_7, label LBL_9
LBL_9:
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%70 = sub i32 0, %sv_4.0.reload
%71 = sub i32 %70, 1
%72 = add i32 %59, %71
%73 = zext i32 %72 to i64
%74 = sext i32 %sv_3.1.reload to i64
%75 = icmp sgt i64 %74, %73
br i1 %75, label LBL_7, label LBL_10
LBL_10:
%76 = icmp slt i32 %.reload, 6
br i1 %76, label LBL_12, label LBL_11
LBL_11:
%77 = zext i32 %.reload to i64
%78 = call i64 @FUNC(i64 %15, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %77, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_20
LBL_12:
%79 = sub i32 %sv_3.1.reload, %sv_1.0.reload
%80 = load i64, i64* %55, align 8
%81 = sext i32 %.reload to i64
%82 = mul i64 %81, 4
%83 = add i64 %80, %82
%84 = icmp sgt i32 %79, 0
%85 = select i1 %84, i32 %79, i32 0
%86 = inttoptr i64 %83 to i32*
store i32 %85, i32* %86, align 4
%87 = load i32, i32* %52, align 8
%88 = sub i32 %87, %sv_4.0.reload
%89 = load i64, i64* %55, align 8
%90 = load i32, i32* %23, align 4
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 4
%93 = add i64 %92, %89
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = load i64, i64* %57, align 8
store i64 %96, i64* %rsi, align 8
%97 = load i32, i32* %23, align 4
%98 = sext i32 %97 to i64
%99 = mul i64 %98, 4
%100 = add i64 %99, %96
%101 = sub i32 %88, %95
%102 = inttoptr i64 %100 to i32*
store i32 %101, i32* %102, align 4
%103 = load i64, i64* %55, align 8
%104 = load i32, i32* %23, align 4
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 4
%107 = add i64 %106, %103
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = icmp slt i32 %109, 1
br i1 %110, label LBL_14, label LBL_13
LBL_13:
%111 = add i32 %104, 1
store i32 %111, i32* %23, align 4
store i32 %111, i32* %.reg2mem18
store i32 %sv_3.1.reload, i32* %sv_2.1.reg2mem
store i32 %sv_3.1.reload, i32* %sv_1.1.reg2mem
br label LBL_15
LBL_14:
%112 = load i64, i64* %5, align 8
%113 = add i64 %112, 4
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
store i32 %104, i32* %.reg2mem18
store i32 %115, i32* %sv_2.1.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br label LBL_15
LBL_15:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%.reload19 = load i32, i32* %.reg2mem18
%116 = load i64, i64* %.pre-phi9.reload, align 8
%117 = sext i32 %sv_0.0.reload to i64
%118 = mul i64 %117, 4
%119 = add i64 %116, %118
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = sub i32 %121, %sv_3.1.reload
%123 = icmp sgt i32 %122, 2
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %123, label LBL_17, label LBL_16
LBL_16:
%124 = load i32, i32* %.pre-phi13.reload, align 4
store i32 %124, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_17:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%125 = load i64, i64* %5, align 8
%126 = add i64 %125, 4
%127 = inttoptr i64 %126 to i32*
%128 = load i32, i32* %127, align 4
%129 = load i64, i64* %29, align 8
%130 = add i64 %129, 4
%131 = inttoptr i64 %130 to i32*
%132 = load i32, i32* %131, align 4
%133 = add i32 %132, %128
%134 = icmp eq i32 %sv_3.1.reload, %133
%135 = icmp eq i1 %134, false
store i32 %.reload19, i32* %.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
br i1 %135, label LBL_6, label LBL_18
LBL_18:
%136 = load i64, i64* %55, align 8
%137 = sext i32 %.reload19 to i64
%138 = mul i64 %137, 4
%139 = add nsw i64 %138, -4
%140 = add i64 %139, %136
%141 = inttoptr i64 %140 to i32*
%142 = load i32, i32* %141, align 4
%143 = icmp sgt i32 %142, 2
%144 = icmp slt i32 %.reload19, 2
%or.cond = or i1 %144, %143
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_20, label LBL_19
LBL_19:
%145 = add i32 %.reload19, -1
store i32 %145, i32* %23, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_20
LBL_20:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload19, { 1, 0, 2, 3 }
uselistorder i32 %sv_3.1.reload, { 6, 5, 4, 0, 1, 3, 2 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.0.reload, { 0, 3, 2, 1 }
uselistorder i32 %storemerge2.reload, { 0, 2, 1 }
uselistorder i32* %23, { 1, 0, 2, 4, 3, 5 }
uselistorder i64 %3, { 3, 4, 2, 0, 1, 7, 5, 6, 8, 9, 10, 11 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i32** %.pre-phi13.reg2mem, { 0, 2, 1 }
uselistorder i64** %.pre-phi9.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem18, { 0, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i32 2, { 1, 2, 3, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4, { 0, 8, 9, 1, 10, 2, 3, 4, 5, 6, 7, 11, 12, 13 }
uselistorder label LBL_20, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | send_error_to_client__8291 | send_error_to_client_ | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_3
LBL_1:
%8 = zext i32 %5 to i64
%9 = trunc i64 %arg2 to i32
%10 = icmp eq i32 %9, 1
%11 = icmp eq i1 %10, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %3, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i32 %14, 1
store i32 %15, i32* %13, align 4
store i64 %3, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | addr2str_1696 | addr2str | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 4096
%1 = call i64 @FUNC(i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @gv_0, i64 0, i64 0), i64 3, i64 %0)
ret i64 %1
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.