dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | smb_idmap_batch_destroy_17615 | smb_idmap_batch_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem2 = alloca i32
%.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_9, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
store i64 0, i64* %arg1, align 8
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_9, label LBL_2
LBL_2:
%7 = add i64 %1, 24
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = add i64 %1, 16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_6, label LBL_4
LBL_4:
%16 = inttoptr i64 %5 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = load i32, i32* %13, align 4
%20 = icmp ugt i32 %19, 1
store i64 1, i64* %.reg2mem
store i32 1, i32* %.reg2mem2
br i1 %20, label LBL_5, label LBL_6
LBL_5:
%.reload3 = load i32, i32* %.reg2mem2
%.reload = load i64, i64* %.reg2mem
%.pre = load i64, i64* %4, align 8
%21 = mul i64 %.reload, 8
%22 = add i64 %21, %.pre
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = add i32 %.reload3, 1
%27 = load i32, i32* %13, align 4
%28 = zext i32 %27 to i64
%29 = sext i32 %26 to i64
%30 = icmp slt i64 %29, %28
store i64 %29, i64* %.reg2mem
store i32 %26, i32* %.reg2mem2
br i1 %30, label LBL_5, label LBL_6
LBL_6:
%31 = add i64 %1, 20
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_9, label LBL_7
LBL_7:
%35 = load i64, i64* %4, align 8
%36 = icmp eq i64 %35, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%37 = inttoptr i64 %35 to i64*
call void @free(i64* %37)
store i64 0, i64* %4, align 8
store i64 %1, 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* %13, { 2, 0, 1 }
uselistorder i64* %4, { 1, 2, 0, 3 }
uselistorder i64 %1, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem2, { 2, 0, 1 }
uselistorder i64 (i64)* @smb_sid_free, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_9, { 2, 3, 4, 0, 1 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | opt_vstats_14512 | opt_vstats | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = call i32 @time(i32* null)
%1 = sext i32 %0 to i64
store i64 %1, i64* %sv_1, align 8
%2 = bitcast i64* %sv_1 to i32*
%3 = call %tm* @localtime(i32* nonnull %2)
%4 = ptrtoint %tm* %3 to i64
%5 = getelementptr inbounds %tm, %tm* %3, i64 0, i32 0
%6 = load i32, i32* %5, align 4
%7 = add i64 %4, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %6 to i64
%14 = zext i32 %9 to i64
%15 = zext i32 %12 to i64
%16 = bitcast i64* %sv_0 to i8*
%17 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %16, i32 40, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %14, i64 %13)
%18 = call i64 @FUNC(i64 0, i64 %arg2, i64* nonnull %sv_0)
ret i64 %18
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | hbitmap_serialization_granularity_15059 | hbitmap_serialization_granularity | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp ult i8 %2, 58
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_1, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = urem i8 %2, 64
%5 = icmp eq i8 %4, 0
%6 = zext i8 %4 to i64
%7 = shl i64 64, %6
%storemerge = select i1 %5, i64 64, i64 %7
ret i64 %storemerge
} | 1 |
BinRealVul | smack_ptrace_access_check_17878 | smack_ptrace_access_check | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %2, i64* %storemerge.in.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %5)
%7 = load i64, i64* @gv_0, align 8
%8 = trunc i64 %arg2 to i32
%9 = call i64 @FUNC(i64 %7, i64 %6, i32 %8, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0))
store i64 %9, i64* %storemerge.in.reg2mem
br label LBL_2
LBL_2:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ga_get_fd_handle_5086 | ga_get_fd_handle | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%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 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = select i1 %8, i64 2, i64 1
store i64 %11, i64* %arg1, align 8
%12 = load i64, i64* %2, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = ptrtoint i64* %arg2 to i64
%18 = call i64 @FUNC(i64 %17, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
ret i64 %9
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @g_assert, { 1, 0 }
} | 0 |
reposvul_c_test | IMB_flipx_293 | IMB_flipx | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.lcssa.in.reg2mem = alloca i32
%storemerge8.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%storemerge215.reg2mem = alloca i32
%storemerge312.reg2mem = alloca i32
%sv_0.013.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_16, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = add i64 %3, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_8, label LBL_2
LBL_2:
%storemerge214 = add i32 %7, -1
%12 = icmp slt i32 %storemerge214, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_8
LBL_3:
%sv_0.011 = add i32 %4, -1
%14 = icmp slt i32 %sv_0.011, 0
store i32 %storemerge214, i32* %storemerge215.reg2mem
br label LBL_6
LBL_4:
%storemerge312.reload = load i32, i32* %storemerge312.reg2mem
%sv_0.013.reload = load i32, i32* %sv_0.013.reg2mem
%15 = load i64, i64* %9, align 8
%16 = add i32 %sv_0.013.reload, %35
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = add i64 %18, %15
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %storemerge312.reload, %35
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = add i64 %24, %15
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
store i32 %27, i32* %20, align 4
%28 = load i64, i64* %9, align 8
%29 = add i64 %28, %24
%30 = inttoptr i64 %29 to i32*
store i32 %21, i32* %30, align 4
%31 = add i32 %storemerge312.reload, 1
%sv_0.0 = add i32 %sv_0.013.reload, -1
%32 = icmp slt i32 %sv_0.0, %31
store i32 %sv_0.0, i32* %sv_0.013.reg2mem
store i32 %31, i32* %storemerge312.reg2mem
br i1 %32, label LBL_5, label LBL_4
LBL_5:
%storemerge2 = add i32 %storemerge215.reload, -1
%33 = icmp slt i32 %storemerge2, 0
%34 = icmp eq i1 %33, false
store i32 %storemerge2, i32* %storemerge215.reg2mem
br i1 %34, label LBL_6, label LBL_8
LBL_6:
%storemerge215.reload = load i32, i32* %storemerge215.reg2mem
br i1 %14, label LBL_5, label LBL_4.lr.ph
LBL_7:
%35 = mul i32 %storemerge215.reload, %4
store i32 %sv_0.011, i32* %sv_0.013.reg2mem
store i32 0, i32* %storemerge312.reg2mem
br label LBL_4
LBL_8:
%36 = add i64 %3, 16
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %39, label LBL_16, label LBL_9
LBL_9:
%40 = add i32 %7, -1
%41 = icmp slt i32 %40, 0
%42 = icmp eq i1 %41, false
store i32 %40, i32* %rax.0.lcssa.in.reg2mem
br i1 %42, label LBL_10, label LBL_15
LBL_10:
%sv_0.14 = add i32 %4, -1
%43 = icmp slt i32 %sv_0.14, 0
store i32 %40, i32* %storemerge8.reg2mem
br label LBL_13
LBL_11:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%44 = load i64, i64* %37, align 8
%45 = add i32 %sv_0.16.reload, %75
%46 = mul i32 %45, 4
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 4
%49 = add i64 %48, %44
%50 = add i64 %49, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = inttoptr i64 %49 to i64*
%54 = load i64, i64* %53, align 8
%55 = add i32 %storemerge15.reload, %75
%56 = mul i32 %55, 4
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 4
%59 = add i64 %58, %44
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = add i64 %59, 8
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
store i64 %61, i64* %53, align 8
store i64 %64, i64* %51, align 8
%65 = load i64, i64* %37, align 8
%66 = add i64 %65, %58
%67 = inttoptr i64 %66 to i64*
store i64 %54, i64* %67, align 8
%68 = add i64 %66, 8
%69 = inttoptr i64 %68 to i64*
store i64 %52, i64* %69, align 8
%70 = add i32 %storemerge15.reload, 1
%sv_0.1 = add i32 %sv_0.16.reload, -1
%71 = icmp slt i32 %sv_0.1, %70
store i32 %sv_0.1, i32* %sv_0.16.reg2mem
store i32 %70, i32* %storemerge15.reg2mem
store i32 %sv_0.1, i32* %sv_0.1.lcssa.reg2mem
br i1 %71, label LBL_12, label LBL_11
LBL_12:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%72 = add i32 %storemerge8.reload, -1
%73 = icmp slt i32 %72, 0
%74 = icmp eq i1 %73, false
store i32 %72, i32* %storemerge8.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %rax.0.lcssa.in.reg2mem
br i1 %74, label LBL_13, label LBL_15
LBL_13:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
store i32 %sv_0.14, i32* %sv_0.1.lcssa.reg2mem
br i1 %43, label LBL_12, label LBL_11.lr.ph
LBL_14:
%75 = mul i32 %storemerge8.reload, %4
store i32 %sv_0.14, i32* %sv_0.16.reg2mem
store i32 0, i32* %storemerge15.reg2mem
br label LBL_11
LBL_15:
%rax.0.lcssa.in.reload = load i32, i32* %rax.0.lcssa.in.reg2mem
%rax.0.lcssa = zext i32 %rax.0.lcssa.in.reload to i64
store i64 %rax.0.lcssa, i64* %rax.1.reg2mem
br label LBL_16
LBL_16:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %75, { 1, 0 }
uselistorder i32 %storemerge8.reload, { 1, 0 }
uselistorder i64 %66, { 1, 0 }
uselistorder i64 %59, { 1, 0 }
uselistorder i64 %58, { 1, 0 }
uselistorder i64 %49, { 1, 0 }
uselistorder i32 %sv_0.14, { 1, 0, 2 }
uselistorder i32 %40, { 1, 0, 2 }
uselistorder i32 %35, { 1, 0 }
uselistorder i32 %storemerge215.reload, { 1, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %4, { 0, 2, 1, 3 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i32* %sv_0.013.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge312.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge15.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 3, 0 }
uselistorder i32 -1, { 6, 4, 2, 7, 5, 3, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_16, { 0, 2, 1 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | __iov_iter_advance_iov_12253 | __iov_iter_advance_iov | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_2.03.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 1
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = add i64 %0, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%12 = icmp eq i64 %arg2, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %sv_0.05.reg2mem
store i64 %5, i64* %sv_1.04.reg2mem
store i64 %arg2, i64* %sv_2.03.reg2mem
store i64 %5, i64* %sv_1.0.lcssa.reg2mem
store i64 %11, i64* %sv_0.0.lcssa.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_2:
%14 = add i64 %11, %arg2
store i64 %14, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%sv_2.03.reload = load i64, i64* %sv_2.03.reg2mem
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%15 = add i64 %sv_1.04.reload, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = sub i64 %17, %sv_0.05.reload
%19 = call i64 @FUNC(i64 %sv_2.03.reload, i64 %18)
%sext = mul i64 %19, 4294967296
%20 = ashr exact i64 %sext, 32
%21 = sub i64 %sv_2.03.reload, %20
%22 = add i64 %20, %sv_0.05.reload
%23 = load i64, i64* %16, align 8
%24 = icmp eq i64 %22, %23
%25 = icmp eq i1 %24, false
%26 = add i64 %sv_1.04.reload, 16
%spec.select = select i1 %25, i64 %sv_1.04.reload, i64 %26
%spec.select2 = select i1 %25, i64 %22, i64 0
%27 = icmp eq i64 %21, 0
%28 = icmp eq i1 %27, false
store i64 %spec.select2, i64* %sv_0.05.reg2mem
store i64 %spec.select, i64* %sv_1.04.reg2mem
store i64 %21, i64* %sv_2.03.reg2mem
store i64 %spec.select, i64* %sv_1.0.lcssa.reg2mem
store i64 %spec.select2, i64* %sv_0.0.lcssa.reg2mem
br i1 %28, label LBL_3, label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
store i64 %sv_1.0.lcssa.reload, i64* %arg1, align 8
store i64 %sv_0.0.lcssa.reload, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
store i64 %storemerge.reload, i64* %10, align 8
ret i64 %0
uselistorder i64 %sv_0.05.reload, { 1, 0 }
uselistorder i64 %11, { 2, 0, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.03.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | jswrap_function_replaceWith_12925 | jswrap_function_replaceWith | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = ptrtoint i32* %arg2 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %4, 1
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_0, i64 0, i64 0))
store i64 %6, i64* %storemerge.reg2mem
br label LBL_21
LBL_2:
%7 = trunc i64 %1 to i32
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %2)
%11 = trunc i64 %9 to i8
%12 = trunc i64 %10 to i8
%13 = icmp eq i8 %11, %12
br i1 %13, label LBL_6, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = or i32 %7, 1
store i32 %17, i32* %arg1, align 4
br label LBL_6
LBL_5:
%18 = and i32 %7, -2
store i32 %18, i32* %arg1, align 4
br label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %8)
%20 = call i64 @FUNC(i64 %2)
%21 = trunc i64 %19 to i8
%22 = trunc i64 %20 to i8
%23 = icmp eq i8 %21, %22
br i1 %23, label LBL_10, label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %2)
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 0
%27 = and i32 %7, -256
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%28 = or i32 %27, 2
store i32 %28, i32* %arg1, align 4
br label LBL_10
LBL_9:
%29 = or i32 %27, 3
store i32 %29, i32* %arg1, align 4
br label LBL_10
LBL_10:
%30 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 0)
%31 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 0)
%32 = call i64 @FUNC(i64 %8)
%33 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2)
%34 = call i64 @FUNC(i64* nonnull %sv_0)
%35 = trunc i64 %34 to i8
%36 = icmp eq i8 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_11, label LBL_16
LBL_11:
%38 = call i64 @FUNC(i64* nonnull %sv_0)
%39 = call i64 @FUNC(i64* nonnull %sv_0)
%40 = call i64 @FUNC(i64 %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 1
br i1 %42, label LBL_15, label LBL_12
LBL_12:
%43 = call i64 @FUNC(i64 %38, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%44 = trunc i64 %43 to i8
%45 = icmp eq i8 %44, 1
br i1 %45, label LBL_15, label LBL_13
LBL_13:
%46 = call i64 @FUNC(i64 %38, i64 1)
store i64 %46, i64* %sv_0, align 8
%47 = icmp eq i64 %46, 0
br i1 %47, label LBL_15, label LBL_14
LBL_14:
%48 = call i64 @FUNC(i64 %8, i64 %46)
%49 = load i64, i64* %sv_0, align 8
%50 = call i64 @FUNC(i64 %49)
br label LBL_15
LBL_15:
%51 = call i64 @FUNC(i64 %38)
%52 = call i64 @FUNC(i64* nonnull %sv_0)
%53 = trunc i64 %52 to i8
%54 = icmp eq i8 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_11, label LBL_16
LBL_16:
%56 = call i64 @FUNC(i64* nonnull %sv_0)
%57 = icmp eq i64 %30, 0
br i1 %57, label LBL_18, label LBL_17
LBL_17:
%58 = call i64 @FUNC(i64 %8, i64 %30)
br label LBL_18
LBL_18:
%59 = call i64 @FUNC(i64 %30)
%60 = icmp eq i64 %31, 0
br i1 %60, label LBL_20, label LBL_19
LBL_19:
%61 = call i64 @FUNC(i64 %8, i64 %31)
br label LBL_20
LBL_20:
%62 = call i64 @FUNC(i64 %31)
store i64 %62, i64* %storemerge.reg2mem
br label LBL_21
LBL_21:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %38, { 2, 0, 1, 3 }
uselistorder i64 %31, { 0, 2, 1 }
uselistorder i64 %30, { 0, 2, 1 }
uselistorder i32 %27, { 1, 0 }
uselistorder i64 %8, { 1, 0, 2, 3, 5, 4, 6, 7 }
uselistorder i64 %2, { 2, 1, 3, 0, 4, 5 }
uselistorder i64* %sv_0, { 1, 2, 6, 7, 3, 4, 0, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @jsvUnLock, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @jsvAddName, { 2, 0, 1 }
uselistorder i64 (i64, i8*)* @jsvIsStringEqual, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64*)* @jsvObjectIteratorHasValue, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @jsvFindChildFromString, { 1, 0 }
uselistorder i64 (i64)* @jsvIsFunctionReturn, { 2, 1, 0 }
uselistorder i8 0, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @jsvIsNativeFunction, { 2, 1, 0 }
uselistorder i64 1, { 3, 4, 0, 1, 2 }
uselistorder i32* %arg1, { 3, 2, 1, 0, 4 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | process_video_header_vp6_1003 | process_video_header_vp6 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%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 = call i64 @FUNC(i64 %3, i64 8)
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
%7 = inttoptr i64 %1 to i32*
store i32 %6, i32* %7, align 4
%8 = call i64 @FUNC(i64 %3, i64 4)
%9 = call i64 @FUNC(i64 %3)
%10 = trunc i64 %9 to i32
%11 = bitcast i64* %arg1 to i32*
store i32 %10, i32* %11, align 4
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = add i64 %0, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = bitcast i64* %rdi to i32*
%17 = load i32, i32* %16, align 8
%18 = icmp slt i32 %17, 1
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = icmp eq i32 %13, 0
%20 = icmp slt i32 %13, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %19, false
%23 = icmp eq i1 %21, %22
br i1 %23, label LBL_3, label LBL_2
LBL_2:
%24 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%25 = add i64 %0, 12
%26 = inttoptr i64 %25 to i32*
store i32 1, i32* %26, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 }
} | 0 |
BinRealVul | spatial_compose53i_dy_2289 | spatial_compose53i_dy | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = trunc i64 %1 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 = add i32 %arg4, -1
%12 = add i32 %4, 1
%13 = zext i32 %11 to i64
%14 = zext i32 %12 to i64
%15 = call i64 @FUNC(i64 %14, i64 %13)
%sext = mul i64 %15, 4294967296
%16 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg5, 4294967296
%sext3 = mul i64 %16, %sext2
%17 = ashr exact i64 %sext3, 30
%18 = add i64 %17, %2
%19 = add i64 %1, 2
%20 = and i64 %19, 4294967295
%21 = call i64 @FUNC(i64 %20, i64 %13)
%sext4 = mul i64 %21, 4294967296
%22 = ashr exact i64 %sext4, 32
%sext6 = mul i64 %22, %sext2
%23 = ashr exact i64 %sext6, 30
%24 = add i64 %23, %2
%25 = icmp ult i32 %12, %arg4
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_2, label LBL_1
LBL_1:
%27 = call i64 @FUNC(i64 %10, i64 %18, i64 %24, i32 %arg3)
br label LBL_2
LBL_2:
%28 = icmp ult i32 %4, %arg4
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_4, label LBL_3
LBL_3:
%30 = call i64 @FUNC(i64 %7, i64 %10, i64 %18, i32 %arg3)
br label LBL_4
LBL_4:
%31 = add i32 %4, -1
%32 = icmp ult i32 %31, %arg4
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = zext i32 %arg3 to i64
%35 = call i64 @FUNC(i64 %7, i64 %34)
br label LBL_6
LBL_6:
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%36 = zext i32 %arg3 to i64
%37 = call i64 @FUNC(i64 %10, i64 %36)
br label LBL_8
LBL_8:
%38 = bitcast i64* %rdi to i32*
store i64 %18, i64* %6, align 8
store i64 %24, i64* %9, align 8
%39 = load i32, i32* %38, align 8
%40 = add i32 %39, 2
store i32 %40, i32* %arg1, align 4
ret i64 %3
uselistorder i64 %18, { 2, 1, 0 }
uselistorder i64 %sext2, { 1, 0 }
uselistorder i64 %10, { 2, 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i32 %4, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64)* @horizontal_compose53i, { 1, 0 }
uselistorder i64 (i64, i64)* @mirror, { 1, 0 }
uselistorder i32 %arg3, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | nvme_map_addr_19113 | nvme_map_addr | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.034.reg2mem = alloca i1
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg4, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_13
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %1 to i32
%7 = call i64 @FUNC(i64 %arg3, i64 %arg4)
%8 = call i64 @FUNC(i64 %5, i64 %arg3)
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = urem i32 %6, 2
%12 = icmp eq i32 %11, 0
store i1 false, i1* %sv_0.034.reg2mem
store i64 3, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_13
LBL_3:
%13 = call i64 @FUNC(i64 %5, i64 %arg3)
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 0
%16 = urem i32 %6, 2
%17 = icmp eq i32 %16, 0
br i1 %15, label LBL_9, label LBL_4
LBL_4:
store i1 true, i1* %sv_0.034.reg2mem
store i64 3, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_13
LBL_5:
%18 = add i64 %4, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp sgt i32 %20, 1023
br i1 %21, label LBL_12, label LBL_6
LBL_6:
%sv_0.034.reload = load i1, i1* %sv_0.034.reg2mem
br i1 %sv_0.034.reload, label LBL_8, label LBL_7
LBL_7:
%22 = call i64 @FUNC(i64 %5, i64 %18, i64 %arg3, i64 %arg4)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%23 = call i64 @FUNC(i64 %5, i64 %18, i64 %arg3, i64 %arg4)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%24 = icmp eq i1 %17, false
store i64 3, i64* %rax.0.reg2mem
br i1 %24, label LBL_10, label LBL_13
LBL_10:
%25 = add i64 %4, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp sgt i32 %27, 1023
br i1 %28, label LBL_12, label LBL_11
LBL_11:
%29 = call i64 @FUNC(i64 %25, i64 %arg3, i64 %arg4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%30 = call i64 @FUNC(i64 1001, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0))
store i64 3, 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 i1 %17, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 2, 6, 5, 3, 1, 4 }
uselistorder i64 3, { 3, 1, 2, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 %arg4, { 2, 0, 1, 3, 4 }
uselistorder i64 %arg3, { 2, 0, 1, 3, 5, 4 }
uselistorder label LBL_13, { 4, 5, 1, 6, 7, 2, 0, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | parse_content_type_18742 | parse_content_type | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64* nonnull %sv_0, i64 %0, i64 %3, i64 0)
%5 = call i64 @FUNC(i64* nonnull %sv_0)
%6 = call i64 @FUNC(i64 64)
%7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %6)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %8, i64 ptrtoint ([6 x i8]* @gv_0 to i64), i64 5)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i32 1, i32* %storemerge.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %6)
%13 = call i64 @FUNC(i64 %12, i64 ptrtoint ([9 x i8]* @gv_1 to i64), i64 8)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%spec.select = zext i1 %15 to i32
store i32 %spec.select, i32* %storemerge.reg2mem
br label LBL_2
LBL_2:
%16 = ptrtoint i64* %arg1 to i64
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%17 = bitcast i64* %arg1 to i32*
store i32 %storemerge.reload, i32* %17, align 4
ret i64 %16
uselistorder i64 %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @strncasecmp, { 2, 1, 0 }
uselistorder i64 (i64)* @str_c, { 1, 0 }
} | 1 |
BinRealVul | remove_unused_rules_10340 | remove_unused_rules | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i64
%sv_0.15.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_1, label LBL_9
LBL_1:
%2 = ptrtoint i64* %sv_7 to i64
%3 = add i64 %2, -8
%4 = inttoptr i64 %3 to i64*
%5 = ptrtoint i32* %sv_4 to i64
%6 = add i64 %2, -16
%7 = inttoptr i64 %6 to i64*
%8 = ptrtoint i32* %sv_3 to i64
%9 = add i64 %2, -24
%10 = inttoptr i64 %9 to i64*
%11 = ptrtoint i64* %sv_2 to i64
%12 = add i64 %2, -32
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, -40
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %2, -48
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %2, -56
%19 = inttoptr i64 %18 to i64*
store i32 0, i32* %sv_0.15.reg2mem
store i64 %arg1, i64* %sv_1.03.reg2mem
br label LBL_2
LBL_2:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%20 = add i64 %sv_1.03.reload, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = inttoptr i64 %sv_1.03.reload to i16*
%24 = load i16, i16* %23, align 2
%25 = zext i16 %24 to i64
store i64 %5, i64* %4, align 8
store i64 %8, i64* %7, align 8
store i64 %11, i64* %10, align 8
store i64 0, i64* %13, align 8
store i64 0, i64* %15, align 8
store i64 0, i64* %17, align 8
store i64 0, i64* %19, align 8
%26 = call i64 @FUNC(i64* nonnull %sv_5, i64 %25, i32 %22, i64 0, i64 0, i64* nonnull %sv_6)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %28, label LBL_6, label LBL_3
LBL_3:
%29 = add i64 %sv_1.03.reload, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = load i32, i32* %sv_3, align 4
%33 = sext i32 %32 to i64
%34 = icmp eq i64 %31, %33
%35 = icmp eq i1 %34, false
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %35, label LBL_6, label LBL_4
LBL_4:
%36 = add i64 %sv_1.03.reload, 16
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = load i32, i32* %sv_4, align 4
%40 = sext i32 %39 to i64
%41 = icmp eq i64 %38, %40
%42 = icmp eq i1 %41, false
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %42, label LBL_6, label LBL_5
LBL_5:
%43 = load i32, i32* %21, align 4
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64 %44)
%46 = load i16, i16* %23, align 2
%47 = inttoptr i64 %45 to i8*
call void (i32, i8*, ...) @syslog(i32 7, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_0, i64 0, i64 0), i16 %46, i8* %47, i32 %32, i32 %39)
%48 = load i32, i32* %21, align 4
%49 = load i16, i16* %23, align 2
%50 = zext i32 %48 to i64
%51 = zext i16 %49 to i64
%52 = call i64 @FUNC(i64 %51, i64 %50)
%53 = add i32 %sv_0.15.reload, 1
store i32 %53, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%54 = add i64 %sv_1.03.reload, 24
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = inttoptr i64 %sv_1.03.reload to i64*
call void @free(i64* %57)
%58 = icmp eq i64 %56, 0
%59 = icmp eq i1 %58, false
store i32 %sv_0.0.reload, i32* %sv_0.15.reg2mem
store i64 %56, i64* %sv_1.03.reg2mem
br i1 %59, label LBL_2, label LBL_7
LBL_7:
%60 = icmp slt i32 %sv_0.0.reload, 1
store i64 ptrtoint (i32* @0 to i64), i64* %rax.1.reg2mem
br i1 %60, label LBL_9, label LBL_8
LBL_8:
%61 = zext i32 %sv_0.0.reload to i64
call void (i32, i8*, ...) @syslog(i32 5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %61)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.1.reg2mem
br label LBL_9
LBL_9:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %sv_0.15.reload, { 3, 0, 1, 2 }
uselistorder i64 %sv_1.03.reload, { 2, 5, 1, 0, 3, 4 }
uselistorder i32* %sv_4, { 1, 0 }
uselistorder i32* %sv_3, { 1, 0 }
uselistorder i32* %sv_0.15.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i32 1, { 4, 11, 10, 9, 8, 5, 6, 7, 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | virtio_scsi_handle_event_16426 | virtio_scsi_handle_event | 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 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %2)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64 0)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
} | 1 |
BinRealVul | ep_eventpoll_poll_10359 | ep_eventpoll_poll | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %1, i64 %0)
%3 = load i64, i64* @gv_0, align 8
%4 = call i64 @FUNC(i64* nonnull @gv_1, i64 10, i64 4198728, i64 %1, i64 %1, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, -1
%7 = and i64 %4, 4294967295
%storemerge = select i1 %6, i64 0, i64 %7
ret i64 %storemerge
uselistorder i64 %1, { 1, 0, 3, 2 }
} | 0 |
BinRealVul | do_rt_sigreturn_3314 | do_rt_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = call i32 @fwrite(i64* bitcast ([34 x i8]* @gv_1 to i64*), i32 1, i32 33, %_IO_FILE* %0)
ret i64 -38
} | 0 |
BinRealVul | st_flush_trace_buffer_16622 | st_flush_trace_buffer | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i8, i8* bitcast (i64* @gv_0 to i8*), align 8
%1 = icmp eq i8 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
store i64 %2, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i32 0, i32* inttoptr (i64 4210724 to i32*), align 4
ret i64 %rax.0.reload
uselistorder i8 0, { 1, 0 }
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | mark_tree_contents_uninteresting_10317 | mark_tree_contents_uninteresting | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = load i32, i32* %0
%sv_1 = alloca i64, align 8
store i64 %1, i64* %sv_1, align 8
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_10, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %1)
%11 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %10)
unreachable
LBL_3:
%12 = add i64 %1, 32
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %1, 24
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64* nonnull %sv_1, i64 %17, i64 %14)
%19 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %sv_0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_4, label LBL_9
LBL_4:
%23 = zext i32 %2 to i64
br label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
switch i32 %25, label LBL_7 [
i32 1, label LBL_6
i32 2, label LBL_8
]
LBL_6:
%26 = call i64 @FUNC(i64* nonnull %sv_0)
%27 = call i64 @FUNC(i64 %26)
br label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %sv_0)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_5, label LBL_9
LBL_8:
%32 = call i64 @FUNC(i64* nonnull %sv_0)
%33 = call i64 @FUNC(i64 %32)
br label LBL_7
LBL_9:
%34 = call i64 @FUNC(i64 %1)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_1, { 1, 0, 2, 3 }
uselistorder i64* %sv_0, { 2, 1, 3, 0 }
uselistorder i64 %1, { 1, 3, 2, 0, 4, 5, 6 }
uselistorder i64 (i64*, i64*)* @tree_entry, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | valid_login_4110 | valid_login | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i8* %1, i8** %.reg2mem
store i64 %0, i64* %storemerge4.reg2mem
store i64 %0, i64* %storemerge.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%.reload = load i8*, i8** %.reg2mem
%5 = call i16** @__ctype_b_loc()
%6 = load i16*, i16** %5, align 8
%7 = ptrtoint i16* %6 to i64
%8 = load i8, i8* %.reload, align 1
%9 = sext i8 %8 to i64
%10 = mul i64 %9, 2
%11 = add i64 %10, %7
%12 = inttoptr i64 %11 to i16*
%13 = load i16, i16* %12, align 2
%14 = and i16 %13, 8
%15 = icmp eq i16 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label %switch.early.test
LBL_2:
%17 = add i64 %storemerge4.reload, 1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
store i8* %18, i8** %.reg2mem
store i64 %17, i64* %storemerge4.reg2mem
store i64 %17, i64* %storemerge.lcssa.reg2mem
br i1 %21, label LBL_1, label LBL_3
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
%22 = sub i64 %storemerge.lcssa.reload, %0
%23 = icmp slt i64 %22, 21
%. = zext i1 %23 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | devfreq_update_status_18357 | devfreq_update_status | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.pre-phi2.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %0, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_0.LBL_5_crit_edge
LBL_1:
%.pre = add i64 %0, 8
%.pre1 = inttoptr i64 %.pre to i64*
store i64* %.pre1, i64** %.pre-phi2.reg2mem
store i64 %2, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_2:
%sext = mul i64 %2, 4294967296
%6 = ashr exact i64 %sext, 29
%7 = add i64 %0, 16
%8 = add i64 %7, %6
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %10, %1
%15 = sub i64 %14, %13
store i64 %15, i64* %9, align 8
%16 = call i64 @FUNC(i64 %0, i64 %arg2)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
store i64* %12, i64** %.pre-phi2.reg2mem
store i64 %16, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_3, label LBL_5
LBL_3:
%20 = icmp eq i32 %17, %3
store i64* %12, i64** %.pre-phi2.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = add i64 %0, 104
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %0, 112
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = mul i32 %28, %3
%30 = add i32 %29, %17
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = add i64 %32, %23
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i32 %35, 1
store i32 %36, i32* %34, align 4
%37 = add i64 %0, 96
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = add i32 %39, 1
store i32 %40, i32* %38, align 4
store i64* %12, i64** %.pre-phi2.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi2.reload = load i64*, i64** %.pre-phi2.reg2mem
store i64 %1, i64* %.pre-phi2.reload, align 8
%41 = and i64 %sv_0.0.reload, 4294967295
ret i64 %41
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 2, 4, 3, 5, 6, 1, 0, 8, 7 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64, i64)* @devfreq_get_freq_level, { 1, 0 }
uselistorder label LBL_5, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | __refill_cfs_bandwidth_runtime_6691 | __refill_cfs_bandwidth_runtime | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, inttoptr (i64 -1 to i64*)
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
store i64 %3, i64* %6, align 8
br label LBL_2
LBL_2:
ret i64 %0
uselistorder i64 %3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | virtio_notify_vector_2406 | virtio_notify_vector | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = zext i1 %8 to i64
%10 = icmp eq i1 %8, false
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = inttoptr i64 %5 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = inttoptr i64 %4 to i64*
%16 = load i64, i64* %15, align 8
store i64 %16, 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 i1 false, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | dmed_dump_8265 | dmed_dump | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%1 = inttoptr i64 %arg2 to %_IO_FILE*
%2 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
%3 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %arg2)
ret i64 0
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 2, 1 }
} | 0 |
BinRealVul | parse_chr_3502 | parse_chr | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = call i64 @FUNC(i64 %arg3)
%4 = inttoptr i64 %2 to i64*
store i64 %3, i64* %4, align 8
%5 = icmp eq i64 %3, 0
%6 = icmp eq i1 %5, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = inttoptr i64 %3 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp slt i32 %8, 0
%11 = icmp eq i1 %10, false
%12 = icmp eq i1 %9, false
%13 = icmp eq i1 %11, %12
store i64 4294967279, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_2:
%14 = add i32 %8, -1
store i32 %14, i32* %7, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %8, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | colo_old_packet_check_15226 | colo_old_packet_check | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 4198662, i64 0)
ret i64 %1
} | 1 |
BinRealVul | gen_ori_261 | gen_ori | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 65536
%4 = udiv i32 %2, 256
%5 = udiv i32 %2, 65536
%6 = xor i32 %5, %4
%7 = urem i32 %6, 256
%8 = zext i32 %7 to i64
%9 = or i32 %7, %3
%10 = icmp eq i32 %9, 0
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = zext i32 %3 to i64
%12 = udiv i64 %1, 32
%13 = and i64 %12, 2040
%14 = add i64 %13, ptrtoint (i64* @gv_0 to i64)
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = udiv i64 %1, 8192
%18 = and i64 %17, 2040
%19 = add i64 %18, ptrtoint (i64* @gv_0 to i64)
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21, i64 %16, i64 %11)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %7, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32 256, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | iwbmp_read_info_header_6640 | iwbmp_read_info_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1, i64 4)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_18, label LBL_1
LBL_1:
%6 = trunc i64 %1 to i32
%7 = call i64 @FUNC(i64* nonnull %sv_1)
%8 = trunc i64 %7 to i32
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = icmp slt i32 %6, 12
br i1 %10, label LBL_18, label LBL_2
LBL_2:
%sext = mul i64 %1, 4294967296
%11 = ashr exact i64 %sext, 32
%12 = icmp ult i64 %11, 124
%spec.select = select i1 %12, i64 %11, i64 124
%13 = add nsw i64 %spec.select, -4
%14 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_18, label LBL_3
LBL_3:
%17 = icmp eq i32 %6, 12
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = add i64 %2, 4
%20 = inttoptr i64 %19 to i32*
store i32 2, i32* %20, align 4
%21 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_17, label LBL_18
LBL_5:
switch i32 %6, label LBL_6 [
i32 16, label LBL_7
i32 40, label LBL_7
]
LBL_6:
%25 = icmp eq i32 %6, 64
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = add i64 %2, 4
%28 = inttoptr i64 %27 to i32*
store i32 3, i32* %28, align 4
%29 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_17, label LBL_18
LBL_8:
switch i32 %6, label LBL_9 [
i32 108, label LBL_10
i32 52, label LBL_10
]
LBL_9:
%33 = icmp eq i32 %6, 56
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_12, label LBL_10
LBL_10:
%35 = add i64 %2, 4
%36 = inttoptr i64 %35 to i32*
store i32 4, i32* %36, align 4
%37 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_18, label LBL_11
LBL_11:
%40 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_17, label LBL_18
LBL_12:
%44 = icmp eq i32 %6, 124
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_16, label LBL_13
LBL_13:
%46 = add i64 %2, 4
%47 = inttoptr i64 %46 to i32*
store i32 5, i32* %47, align 4
%48 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label LBL_18, label LBL_14
LBL_14:
%51 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
br i1 %53, label LBL_18, label LBL_15
LBL_15:
%54 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_17, label LBL_18
LBL_16:
%58 = add i64 %2, 16
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = call i64 @FUNC(i64 %60, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0))
br label LBL_18
LBL_17:
%62 = add i64 %2, 12
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %2, 8
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %2, 16
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = zext i32 %67 to i64
%72 = call i64 @FUNC(i64 %70, i64 %71, i32 %64)
%73 = trunc i64 %72 to i32
%74 = icmp ne i32 %73, 0
%spec.select1 = zext i1 %74 to i64
ret i64 %spec.select1
LBL_18:
ret i64 0
uselistorder i64 %11, { 1, 0 }
uselistorder i32 %6, { 2, 3, 0, 4, 1, 5, 6 }
uselistorder i64 %2, { 12, 11, 10, 5, 2, 3, 4, 6, 7, 8, 9, 13, 14, 0, 1, 15, 16 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64*)* @decode_v4_header_fields, { 1, 0 }
uselistorder i64 (i64, i64*)* @decode_v3_header_fields, { 2, 1, 0 }
uselistorder i64 (i64, i64*, i64)* @iwbmp_read, { 1, 0 }
uselistorder i64 4, { 1, 2, 3, 4, 0 }
uselistorder label LBL_18, { 10, 6, 0, 1, 7, 2, 8, 9, 3, 4, 5 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | ohci_async_cancel_device_16841 | ohci_async_cancel_device | 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, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i64* %arg1, null
%or.cond = or i1 %5, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %0, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = icmp eq i64 %7, %6
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0)
store i32 0, i32* %2, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 0, 2, 1, 3 }
} | 1 |
BinRealVul | dtls1_new_10482 | dtls1_new | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_20
LBL_1:
%5 = call i64 @FUNC(i64 88)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_20
LBL_2:
%8 = inttoptr i64 %5 to i64*
%9 = call i64* @memset(i64* %8, i32 0, i32 88)
%10 = call i64 @FUNC()
store i64 %10, i64* %8, align 8
%11 = call i64 @FUNC()
%12 = add i64 %5, 8
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = call i64 @FUNC()
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = call i64 @FUNC()
%18 = add i64 %5, 24
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = call i64 @FUNC()
%21 = add i64 %5, 32
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = bitcast i64* %rdi to i32*
%24 = load i32, i32* %23, align 8
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%26 = add i64 %5, 40
%27 = inttoptr i64 %26 to i64*
store i64 32, i64* %27, align 8
br label LBL_4
LBL_4:
%28 = add i64 %5, 48
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = add i64 %5, 52
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
%32 = load i64, i64* %8, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label LBL_10, label LBL_5
LBL_5:
%34 = load i64, i64* %13, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_9, label LBL_6
LBL_6:
%36 = load i64, i64* %16, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label LBL_9, label LBL_7
LBL_7:
%38 = load i64, i64* %19, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label LBL_9, label LBL_8
LBL_8:
%40 = load i64, i64* %22, align 8
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_19, label LBL_9
LBL_9:
%43 = call i64 @FUNC(i64 %32)
br label LBL_10
LBL_10:
%44 = load i64, i64* %13, align 8
%45 = icmp eq i64 %44, 0
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%46 = call i64 @FUNC(i64 %44)
br label LBL_12
LBL_12:
%47 = load i64, i64* %16, align 8
%48 = icmp eq i64 %47, 0
br i1 %48, label LBL_14, label LBL_13
LBL_13:
%49 = call i64 @FUNC(i64 %47)
br label LBL_14
LBL_14:
%50 = load i64, i64* %19, align 8
%51 = icmp eq i64 %50, 0
br i1 %51, label LBL_16, label LBL_15
LBL_15:
%52 = call i64 @FUNC(i64 %50)
br label LBL_16
LBL_16:
%53 = load i64, i64* %22, align 8
%54 = icmp eq i64 %53, 0
br i1 %54, label LBL_18, label LBL_17
LBL_17:
%55 = call i64 @FUNC(i64 %53)
br label LBL_18
LBL_18:
%56 = call i64 @FUNC(i64 %5)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%57 = add i64 %0, 8
%58 = inttoptr i64 %57 to i64*
store i64 %5, i64* %58, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %22, { 1, 0, 2 }
uselistorder i64* %19, { 1, 0, 2 }
uselistorder i64* %16, { 1, 0, 2 }
uselistorder i64* %13, { 1, 0, 2 }
uselistorder i64 %5, { 2, 1, 3, 4, 0, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i64 (i64)* @pqueue_free, { 4, 3, 2, 1, 0 }
uselistorder i64 ()* @pqueue_new, { 4, 3, 2, 1, 0 }
uselistorder label LBL_20, { 2, 3, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | gdth_read_event_7035 | gdth_read_event | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = load i64, i64* %0
%7 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = call i64 @FUNC(i64 %8, i64 %arg2, i64 %4, i64 %3, i64 %2, i64 %1)
%10 = call i64 @FUNC(i64 %5, i64 %6)
%11 = icmp eq i32 %7, -1
%12 = icmp eq i1 %11, false
%13 = trunc i64 %8 to i32
%14 = load i32, i32* @gv_0, align 4
%storemerge4 = select i1 %12, i32 %13, i32 %14
%15 = bitcast i64* %arg3 to i32*
store i32 0, i32* %15, align 4
%16 = icmp ult i32 %storemerge4, 100
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = call i64 @FUNC(i64 %5, i64 %6)
store i32 %storemerge4, i32* %storemerge.in.reg2mem
br label LBL_7
LBL_2:
%18 = sext i32 %storemerge4 to i64
%19 = mul i64 %18, 4
%20 = add i64 %19, ptrtoint (i32** @gv_1 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
store i32 %storemerge4, i32* %sv_0.1.reg2mem
br i1 %23, label LBL_6, label LBL_3
LBL_3:
%24 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%25 = icmp eq i32 %storemerge4, %24
store i32 -1, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = add i32 %storemerge4, 1
%27 = icmp eq i32 %storemerge4, 99
%28 = icmp eq i1 %27, false
%spec.store.select = select i1 %28, i32 %26, i32 0
store i32 %spec.store.select, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i32 %22, i32* %15, align 4
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%29 = call i64 @FUNC(i64 %5, i64 %6)
store i32 %sv_0.1.reload, i32* %storemerge.in.reg2mem
br label LBL_7
LBL_7:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i32 %storemerge4, { 4, 5, 3, 1, 6, 0, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @spin_unlock_irqrestore, { 1, 0 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | palette8tobgr32_15197 | palette8tobgr32 | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg4 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i32* %arg1 to i64
%wide.trip.count = and i64 %arg3, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
store i64 %3, i64* %sv_0.03.reg2mem
br label LBL_2
LBL_2:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = add i64 %indvars.iv.reload, %4
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i64
%9 = mul i64 %8, 4
%10 = add i64 %9, %2
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = inttoptr i64 %sv_0.03.reload to i8*
store i8 %12, i8* %13, align 1
%14 = load i8, i8* %6, align 1
%15 = zext i8 %14 to i64
%16 = mul i64 %15, 4
%17 = or i64 %16, 1
%18 = add i64 %17, %2
%19 = add i64 %sv_0.03.reload, 1
%20 = inttoptr i64 %18 to i8*
%21 = load i8, i8* %20, align 1
%22 = inttoptr i64 %19 to i8*
store i8 %21, i8* %22, align 1
%23 = load i8, i8* %6, align 1
%24 = zext i8 %23 to i64
%25 = mul i64 %24, 4
%26 = or i64 %25, 2
%27 = add i64 %26, %2
%28 = add i64 %sv_0.03.reload, 2
%29 = inttoptr i64 %27 to i8*
%30 = load i8, i8* %29, align 1
%31 = inttoptr i64 %28 to i8*
store i8 %30, i8* %31, align 1
%32 = add i64 %sv_0.03.reload, 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %32, i64* %sv_0.03.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64 2, { 1, 0 }
} | 1 |
BinRealVul | qemu_get_virtqueue_element_17104 | qemu_get_virtqueue_element | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem25 = alloca i64
%.reg2mem23 = alloca i32
%storemerge16.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%.reg2mem19 = alloca i32
%.reg2mem17 = alloca i32
%storemerge27.reg2mem = alloca i32
%.reg2mem15 = alloca i64
%.reg2mem13 = alloca i32
%storemerge38.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0, i64 400)
%5 = icmp ult i32 %3, 9
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 61, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = icmp ult i32 %2, 9
br i1 %6, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 62, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%7 = ptrtoint i64* %sv_1 to i64
%8 = zext i32 %2 to i64
%9 = call i64 @FUNC(i64 %arg3, i64 %8, i32 %3)
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %9, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i32 0, i32* %.reg2mem13
br i1 %14, label LBL_7, label LBL_5
LBL_5:
%15 = add i64 %7, -416
%16 = add i64 %9, 16
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge38.reg2mem
br label LBL_6
LBL_6:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%.reload = load i64, i64* %.reg2mem
%17 = mul i64 %.reload, 8
%18 = add i64 %15, %17
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %16, %17
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = add i32 %storemerge38.reload, 1
%24 = load i32, i32* %12, align 4
%25 = zext i32 %24 to i64
%26 = sext i32 %23 to i64
%27 = icmp slt i64 %26, %25
store i64 %26, i64* %.reg2mem
store i32 %23, i32* %storemerge38.reg2mem
store i32 %24, i32* %.reg2mem13
br i1 %27, label LBL_6, label LBL_7
LBL_7:
%.reload14 = load i32, i32* %.reg2mem13
%28 = add i64 %9, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
store i32 0, i32* %.reg2mem17
store i32 %.reload14, i32* %.reg2mem19
br i1 %31, label LBL_11, label LBL_8
LBL_8:
%32 = add i64 %7, -352
%33 = add i64 %9, 80
store i64 0, i64* %.reg2mem15
store i32 0, i32* %storemerge27.reg2mem
br label LBL_9
LBL_9:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload16 = load i64, i64* %.reg2mem15
%34 = mul i64 %.reload16, 8
%35 = add i64 %32, %34
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %33, %34
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = add i32 %storemerge27.reload, 1
%41 = load i32, i32* %29, align 4
%42 = zext i32 %41 to i64
%43 = sext i32 %40 to i64
%44 = icmp slt i64 %43, %42
store i64 %43, i64* %.reg2mem15
store i32 %40, i32* %storemerge27.reg2mem
br i1 %44, label LBL_9, label LBL_10
LBL_10:
%.pre = load i32, i32* %12, align 4
store i32 %41, i32* %.reg2mem17
store i32 %.pre, i32* %.reg2mem19
br label LBL_11
LBL_11:
%.reload20 = load i32, i32* %.reg2mem19
%.reload18 = load i32, i32* %.reg2mem17
%45 = icmp eq i32 %.reload20, 0
store i32 %.reload18, i32* %.reg2mem23
br i1 %45, label LBL_15, label LBL_12
LBL_12:
%46 = add i64 %9, 144
%47 = add i64 %7, -272
store i64 0, i64* %.reg2mem21
store i32 0, i32* %storemerge16.reg2mem
br label LBL_13
LBL_13:
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%48 = mul i64 %.reload22, 16
%49 = add i64 %46, %48
%50 = inttoptr i64 %49 to i64*
store i64 0, i64* %50, align 8
%51 = add i64 %47, %48
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %49, 8
%55 = inttoptr i64 %54 to i64*
store i64 %53, i64* %55, align 8
%56 = add i32 %storemerge16.reload, 1
%57 = load i32, i32* %12, align 4
%58 = zext i32 %57 to i64
%59 = sext i32 %56 to i64
%60 = icmp slt i64 %59, %58
store i64 %59, i64* %.reg2mem21
store i32 %56, i32* %storemerge16.reg2mem
br i1 %60, label LBL_13, label LBL_14
LBL_14:
%.pre10 = load i32, i32* %29, align 4
store i32 %.pre10, i32* %.reg2mem23
br label LBL_15
LBL_15:
%.reload24 = load i32, i32* %.reg2mem23
%61 = icmp eq i32 %.reload24, 0
br i1 %61, label LBL_18, label LBL_16
LBL_16:
%62 = add i64 %9, 272
%63 = add i64 %7, -144
store i64 0, i64* %.reg2mem25
store i32 0, i32* %storemerge5.reg2mem
br label LBL_17
LBL_17:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload26 = load i64, i64* %.reg2mem25
%64 = mul i64 %.reload26, 16
%65 = add i64 %62, %64
%66 = inttoptr i64 %65 to i64*
store i64 0, i64* %66, align 8
%67 = add i64 %63, %64
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = add i64 %65, 8
%71 = inttoptr i64 %70 to i64*
store i64 %69, i64* %71, align 8
%72 = add i32 %storemerge5.reload, 1
%73 = load i32, i32* %29, align 4
%74 = zext i32 %73 to i64
%75 = sext i32 %72 to i64
%76 = icmp slt i64 %75, %74
store i64 %75, i64* %.reg2mem25
store i32 %72, i32* %storemerge5.reg2mem
br i1 %76, label LBL_17, label LBL_18
LBL_18:
%77 = ptrtoint i64* %arg1 to i64
%78 = call i64 @FUNC(i64 %77, i64 %9)
ret i64 %9
uselistorder i64 %34, { 1, 0 }
uselistorder i32* %29, { 1, 0, 3, 2 }
uselistorder i64 %17, { 1, 0 }
uselistorder i32* %12, { 1, 0, 3, 2 }
uselistorder i64 %9, { 5, 4, 3, 2, 1, 6, 0, 7, 8 }
uselistorder i64 %7, { 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem15, { 1, 0, 2 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %storemerge16.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem25, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i32* %0, { 1, 0 }
uselistorder i64 8, { 2, 3, 0, 4, 1 }
uselistorder i32 0, { 0, 6, 1, 7, 3, 2, 8, 5, 4, 9 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | url_is_local_not_ssh_19123 | url_is_local_not_ssh | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i8*
%1 = call i8* @strchr(i8* %0, i32 58)
%2 = call i8* @strchr(i8* %0, i32 47)
%3 = icmp eq i8* %1, null
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = icmp ne i8* %2, null
%5 = icmp ult i8* %2, %1
%or.cond = icmp eq i1 %4, %5
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = trunc i64 %6 to i32
%8 = icmp ne i32 %7, 0
%spec.select = zext i1 %8 to i64
ret i64 %spec.select
LBL_3:
ret i64 1
uselistorder i64 1, { 1, 0, 2 }
} | 1 |
BinRealVul | error_setg_win32_16696 | error_setg_win32 | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = icmp eq i64* %arg1, null
br i1 %21, label LBL_5, label LBL_3
LBL_3:
%22 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%23 = ashr exact i64 %sext, 32
store i32 24, i32* %sv_0, align 4
%24 = ptrtoint i8* %arg3 to i64
%25 = call i64 @FUNC(i64 %22, i64 1, i64 %24, i32* nonnull %sv_0)
%26 = trunc i64 %23 to i32
%27 = icmp eq i32 %26, 0
store i64 %25, i64* %rax.0.reg2mem
br i1 %27, label LBL_5, label LBL_4
LBL_4:
%28 = and i64 %23, 4294967295
%29 = call i64 @FUNC(i64 %28)
%30 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %22, i64 %29, i32 %26, i64 %arg5, i64 %arg6)
%31 = inttoptr i64 %28 to i64*
store i64 %30, i64* %31, align 8
%32 = call i64 @FUNC(i64 %29)
%33 = call i64 @FUNC(i64 %22)
store i64 %33, 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 %28, { 1, 0 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | oppop_9875 | oppop | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = trunc i64 %1 to i32
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
%6 = and i32 %3, 2
%7 = icmp eq i32 %6, 0
br i1 %5, label LBL_3, label LBL_1
LBL_1:
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %7, label LBL_2, label LBL_12
LBL_2:
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i32 %10 to i8
%12 = add i8 %11, 88
%13 = bitcast i64* %arg2 to i8*
store i8 %12, i8* %13, align 1
store i32 1, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_3:
store i32 0, i32* %sv_0.1.reg2mem
br i1 %7, label LBL_11, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg2 to i64
%15 = bitcast i64* %arg2 to i8*
store i8 -113, i8* %15, align 1
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %2, 12
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = mul i32 %21, %18
%23 = icmp eq i32 %22, 0
%.pre = add i64 %2, 16
%.pre2 = inttoptr i64 %.pre to i32*
%.pre4 = load i32, i32* %.pre2, align 4
%24 = icmp eq i32 %.pre4, 1
%25 = icmp eq i1 %24, false
%or.cond = icmp eq i1 %23, %25
br i1 %or.cond, label LBL_9, label LBL_5
LBL_5:
%.off = add i32 %22, 128
%26 = icmp ult i32 %.off, 256
%spec.store.select = select i1 %26, i32 64, i32 128
%27 = or i32 %.pre4, %spec.store.select
%28 = add i64 %14, 1
%29 = trunc i32 %27 to i8
%30 = inttoptr i64 %28 to i8*
store i8 %29, i8* %30, align 1
%31 = load i32, i32* %.pre2, align 4
%32 = icmp eq i32 %31, 2
%33 = icmp eq i1 %32, false
store i32 2, i32* %sv_0.0.reg2mem
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = add i64 %14, 2
%35 = inttoptr i64 %34 to i8*
store i8 36, i8* %35, align 1
store i32 3, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%36 = add nuw nsw i32 %sv_0.0.reload, 1
%37 = zext i32 %sv_0.0.reload to i64
%38 = add i64 %37, %14
%39 = trunc i32 %22 to i8
%40 = inttoptr i64 %38 to i8*
store i8 %39, i8* %40, align 1
store i32 %36, i32* %sv_0.1.reg2mem
br i1 %26, label LBL_11, label LBL_8
LBL_8:
%41 = udiv i32 %22, 256
%42 = add nuw nsw i32 %sv_0.0.reload, 2
%43 = zext i32 %36 to i64
%44 = add i64 %43, %14
%45 = trunc i32 %41 to i8
%46 = inttoptr i64 %44 to i8*
store i8 %45, i8* %46, align 1
%47 = udiv i32 %22, 65536
%48 = add nuw nsw i32 %sv_0.0.reload, 3
%49 = zext i32 %42 to i64
%50 = add i64 %49, %14
%51 = trunc i32 %47 to i8
%52 = inttoptr i64 %50 to i8*
store i8 %51, i8* %52, align 1
%53 = udiv i32 %22, 16777216
%54 = or i32 %sv_0.0.reload, 4
%55 = zext i32 %48 to i64
%56 = add i64 %55, %14
%57 = trunc i32 %53 to i8
%58 = inttoptr i64 %56 to i8*
store i8 %57, i8* %58, align 1
store i32 %54, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_9:
%59 = add i64 %14, 1
%60 = trunc i32 %.pre4 to i8
%61 = inttoptr i64 %59 to i8*
store i8 %60, i8* %61, align 1
%62 = load i32, i32* %.pre2, align 4
%63 = icmp eq i32 %62, 2
%64 = icmp eq i1 %63, false
store i32 2, i32* %sv_0.1.reg2mem
br i1 %64, label LBL_11, label LBL_10
LBL_10:
%65 = add i64 %14, 2
%66 = inttoptr i64 %65 to i8*
store i8 36, i8* %66, align 1
store i32 3, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%67 = zext i32 %sv_0.1.reload to i64
store i64 %67, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %36, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 4, 3, 2, 1, 0 }
uselistorder i32 %.pre4, { 2, 0, 1 }
uselistorder i32* %.pre2, { 2, 1, 0 }
uselistorder i32 %22, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 %14, { 4, 5, 0, 1, 2, 3, 6, 7 }
uselistorder i1 %7, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 4, 5, 6, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 3, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i32 2, { 0, 4, 3, 1, 5, 6, 2 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | ogs_tlv_parse_block_12039 | ogs_tlv_parse_block | define i64 @FUNC(i64 %arg1, i32* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%rcx.0.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_2 = alloca i32*, align 8
%3 = and i64 %arg1, 4294967295
%4 = ptrtoint i32* %arg2 to i64
%5 = bitcast i32** %sv_2 to i64*
store i64 %4, i64* %5, align 8
%6 = call i64 @FUNC()
%7 = and i64 %6, 4294967295
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %6, i64 %4, i8 %arg3)
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = sub i64 %9, %4
%13 = icmp slt i64 %12, %3
store i64 %6, i64* %sv_1.05.reg2mem
store i64 %9, i64* %sv_0.04.reg2mem
store i64 %4, i64* %rcx.0.lcssa.reg2mem
store i64 %12, i64* %.lcssa.reg2mem
br i1 %13, label LBL_1, label LBL_2
LBL_1:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%14 = call i64 @FUNC()
%15 = and i64 %14, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = inttoptr i64 %sv_1.05.reload to i64*
store i64 %14, i64* %17, align 8
%18 = call i64 @FUNC(i64 %14, i64 %sv_0.04.reload, i8 %arg3)
%19 = and i64 %18, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = load i32*, i32** %sv_2, align 8
%22 = ptrtoint i32* %21 to i64
%23 = sub i64 %18, %22
%24 = icmp slt i64 %23, %3
store i64 %14, i64* %sv_1.05.reg2mem
store i64 %18, i64* %sv_0.04.reg2mem
store i64 %sv_0.04.reload, i64* %rcx.0.lcssa.reg2mem
store i64 %23, i64* %.lcssa.reg2mem
br i1 %24, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%25 = icmp eq i64 %3, %.lcssa.reload
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%26 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %3, i8 %arg3, i64 %rcx.0.lcssa.reload, i64 %2, i64 %1)
unreachable
LBL_4:
ret i64 %6
uselistorder i64 %14, { 0, 2, 3, 1 }
uselistorder i64 %6, { 1, 0, 3, 2 }
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64 %3, { 1, 2, 3, 0 }
uselistorder i32** %sv_2, { 1, 0 }
uselistorder i64* %sv_1.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8)* @tlv_get_element, { 1, 0 }
uselistorder i64 (i64)* @ogs_assert, { 3, 2, 1, 0 }
uselistorder i64 ()* @ogs_tlv_get, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | vmxnet3_reset_15565 | vmxnet3_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = add i64 %0, 12
%8 = inttoptr i64 %7 to i8*
store i8 1, i8* %8, align 1
%9 = add i64 %0, 13
%10 = inttoptr i64 %9 to i8*
store i8 0, i8* %10, align 1
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6 }
} | 1 |
BinRealVul | ReadExecConfig_7828 | ReadExecConfig | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem36 = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem34 = alloca i32
%sv_0.111.reg2mem = alloca i32
%storemerge612.reg2mem = alloca i32
%.reg2mem32 = alloca i32
%.reg2mem30 = alloca i64
%storemerge713.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i8, align 1
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge713.reg2mem
br i1 icmp slt (i32* @gv_0, i32* null), label LBL_2, label LBL_1
LBL_1:
%storemerge713.reload = load i32, i32* %storemerge713.reg2mem
%.reload = load i64, i64* %.reg2mem
%0 = mul nsw i64 %.reload, 257
%1 = add i64 %0, ptrtoint (i8** @gv_1 to i64)
%2 = inttoptr i64 %1 to i64*
%3 = call i64* @memset(i64* %2, i32 0, i32 257)
%4 = add i64 %0, ptrtoint (i8** @gv_2 to i64)
%5 = inttoptr i64 %4 to i64*
%6 = call i64* @memset(i64* %5, i32 0, i32 257)
%7 = mul i64 %.reload, 4
%8 = add i64 %7, ptrtoint (i32** @gv_3 to i64)
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i32 %storemerge713.reload, 1
%11 = sext i32 %10 to i64
%12 = icmp sgt i64 %11, ptrtoint (i32* @gv_0 to i64)
store i64 %11, i64* %.reg2mem
store i32 %10, i32* %storemerge713.reg2mem
br i1 %12, label LBL_2, label LBL_1
LBL_2:
store i32 0, i32* @gv_4, align 4
%13 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_6, i64 0, i64 0))
%14 = icmp eq %_IO_FILE* %13, null
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_5
LBL_3:
%16 = call i8* @fgets(i8* nonnull %sv_2, i32 1024, %_IO_FILE* %13)
%17 = icmp eq i8* %16, null
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_32
LBL_4:
br label LBL_6
LBL_5:
%19 = call i32* @__errno_location()
%20 = load i32, i32* %19, align 4
%21 = call i8* @strerror(i32 %20)
%22 = call i32* @__errno_location()
%23 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%24 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %23, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_8, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_33
LBL_6:
%25 = load i8, i8* %sv_2, align 1
%26 = icmp eq i8 %25, 33
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_9, label LBL_7
LBL_7:
%28 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_9, i64 0, i64 0))
br label LBL_8
LBL_8:
%30 = call i8* @fgets(i8* nonnull %sv_2, i32 1024, %_IO_FILE* %13)
%31 = icmp eq i8* %30, null
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_6, label LBL_32
LBL_9:
%33 = call i8* @strstr(i8* nonnull %sv_2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_10, i64 0, i64 0))
store i8* %33, i8** %sv_1, align 8
%34 = icmp eq i8* %33, null
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_11, label LBL_10
LBL_10:
%36 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%37 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %36, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_9, i64 0, i64 0))
br label LBL_8
LBL_11:
store i8 0, i8* %33, align 1
%38 = ptrtoint i8* %33 to i64
%39 = add i64 %38, 3
%40 = load i32, i32* @gv_4, align 4
%41 = sext i32 %40 to i64
%42 = mul nsw i64 %41, 257
%43 = add i64 %42, ptrtoint (i8** @gv_1 to i64)
%44 = inttoptr i64 %43 to i8*
%45 = call i8* @strncpy(i8* %44, i8* nonnull %sv_2, i32 256)
%46 = load i32, i32* @gv_4, align 4
%47 = sext i32 %46 to i64
%48 = mul nsw i64 %47, 257
%49 = add i64 %48, ptrtoint (i8** @gv_11 to i64)
%50 = inttoptr i64 %49 to i8*
store i8 0, i8* %50, align 1
%51 = inttoptr i64 %39 to i8*
%52 = call i8* @strstr(i8* %51, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_10, i64 0, i64 0))
store i8* %52, i8** %sv_1, align 8
%53 = icmp eq i8* %52, null
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_13, label LBL_12
LBL_12:
%55 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%56 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %55, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_9, i64 0, i64 0))
br label LBL_8
LBL_13:
store i8 0, i8* %52, align 1
%57 = ptrtoint i8* %52 to i64
%58 = add i64 %57, 3
%59 = inttoptr i64 %58 to i8*
store i8* %59, i8** %sv_1, align 8
%60 = call i64 @FUNC(i64 %39)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
br i1 %62, label LBL_15, label LBL_14
LBL_14:
%63 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%64 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %63, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_12, i64 0, i64 0), i8* %51)
%65 = load i32, i32* @gv_4, align 4
%66 = sext i32 %65 to i64
%67 = mul nsw i64 %66, 257
%68 = add i64 %67, ptrtoint (i8** @gv_2 to i64)
%69 = inttoptr i64 %68 to i8*
store i8 0, i8* %69, align 1
br label LBL_20
LBL_15:
%70 = load i32, i32* @gv_4, align 4
%71 = sext i32 %70 to i64
%72 = mul nsw i64 %71, 257
%73 = add i64 %72, ptrtoint (i8** @gv_2 to i64)
%74 = inttoptr i64 %73 to i8*
%75 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %74, i32 256, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_13, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_14, i64 0, i64 0), i8* %51)
%76 = load i32, i32* @gv_4, align 4
%77 = sext i32 %76 to i64
%78 = mul nsw i64 %77, 257
%79 = add i64 %78, ptrtoint (i8** @gv_2 to i64)
%80 = inttoptr i64 %79 to i8*
%81 = call %_IO_FILE* @fopen(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_6, i64 0, i64 0))
%82 = icmp eq %_IO_FILE* %81, null
%83 = icmp eq i1 %82, false
br i1 %83, label LBL_19, label LBL_16
LBL_16:
%84 = load i32, i32* inttoptr (i64 4210828 to i32*), align 4
%85 = icmp eq i32 %84, 0
br i1 %85, label LBL_18, label LBL_17
LBL_17:
%86 = load i32, i32* @gv_4, align 4
%87 = sext i32 %86 to i64
%88 = mul nsw i64 %87, 257
%89 = add i64 %88, ptrtoint (i8** @gv_2 to i64)
%90 = inttoptr i64 %89 to i8*
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_15, i64 0, i64 0), i8* %90)
br label LBL_18
LBL_18:
%92 = load i32, i32* @gv_4, align 4
%93 = sext i32 %92 to i64
%94 = mul nsw i64 %93, 257
%95 = add i64 %94, ptrtoint (i8** @gv_2 to i64)
%96 = inttoptr i64 %95 to i8*
store i8 0, i8* %96, align 1
br label LBL_20
LBL_19:
%97 = call i32 @fclose(%_IO_FILE* %81)
br label LBL_20
LBL_20:
%98 = load i8*, i8** %sv_1, align 8
%99 = call i8* @strchr(i8* %98, i32 10)
store i8* %99, i8** %sv_1, align 8
%100 = icmp eq i8* %99, null
br i1 %100, label LBL_22, label LBL_21
LBL_21:
store i8 0, i8* %99, align 1
br label LBL_22
LBL_22:
%101 = load i32, i32* @gv_4, align 4
%102 = call i32 @atoi(i8* %98)
%103 = sext i32 %101 to i64
%104 = mul i64 %103, 4
%105 = add i64 %104, ptrtoint (i32** @gv_3 to i64)
%106 = inttoptr i64 %105 to i32*
store i32 %102, i32* %106, align 4
%107 = load i32, i32* @gv_4, align 4
%108 = icmp eq i32 %107, 0
store i64 0, i64* %.reg2mem30
store i32 %107, i32* %.reg2mem32
store i32 0, i32* %storemerge612.reg2mem
store i32 0, i32* %sv_0.111.reg2mem
br i1 %108, label LBL_31, label LBL_23
LBL_23:
%sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem
%storemerge612.reload = load i32, i32* %storemerge612.reg2mem
%.reload33 = load i32, i32* %.reg2mem32
%.reload31 = load i64, i64* %.reg2mem30
%109 = sext i32 %.reload33 to i64
%110 = mul nsw i64 %109, 257
%111 = add i64 %110, ptrtoint (i8** @gv_1 to i64)
%112 = mul nsw i64 %.reload31, 257
%113 = add i64 %112, ptrtoint (i8** @gv_1 to i64)
%114 = inttoptr i64 %113 to i8*
%115 = inttoptr i64 %111 to i8*
%116 = call i32 @strcmp(i8* %114, i8* %115)
%117 = icmp eq i32 %116, 0
%118 = icmp eq i1 %117, false
br i1 %118, label LBL_23.LBL_28_crit_edge, label LBL_25
LBL_24:
%.pre = load i32, i32* @gv_4, align 4
store i32 %.pre, i32* %.reg2mem34
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br label LBL_28
LBL_25:
%119 = add i64 %112, ptrtoint (i8** @gv_2 to i64)
%120 = inttoptr i64 %119 to i8*
%121 = load i8, i8* %120, align 1
%122 = icmp eq i8 %121, 0
%123 = icmp eq i1 %122, false
%124 = load i32, i32* @gv_4, align 4
%125 = sext i32 %124 to i64
%126 = mul nsw i64 %125, 257
%127 = add i64 %126, ptrtoint (i8** @gv_2 to i64)
%128 = inttoptr i64 %127 to i8*
br i1 %123, label LBL_27, label LBL_26
LBL_26:
%129 = call i8* @strncpy(i8* %120, i8* %128, i32 256)
%130 = add i64 %112, ptrtoint (i8** @gv_16 to i64)
%131 = inttoptr i64 %130 to i8*
store i8 0, i8* %131, align 1
%.pre19 = load i32, i32* @gv_4, align 4
store i32 %.pre19, i32* %.reg2mem36
br label LBL_30
LBL_27:
%132 = load i8, i8* %128, align 1
%133 = icmp eq i8 %132, 0
%134 = icmp eq i1 %133, false
%spec.select = select i1 %134, i32 %sv_0.111.reload, i32 1
store i32 %124, i32* %.reg2mem34
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_28
LBL_28:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload35 = load i32, i32* %.reg2mem34
%135 = add i32 %storemerge612.reload, 1
%136 = zext i32 %.reload35 to i64
%137 = sext i32 %135 to i64
%138 = icmp slt i64 %137, %136
store i64 %137, i64* %.reg2mem30
store i32 %.reload35, i32* %.reg2mem32
store i32 %135, i32* %storemerge612.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem
br i1 %138, label LBL_23, label LBL_29
LBL_29:
%139 = icmp eq i32 %sv_0.0.reload, 0
store i32 %.reload35, i32* %.reg2mem36
br i1 %139, label LBL_31, label LBL_30
LBL_30:
%.reload37 = load i32, i32* %.reg2mem36
%140 = sext i32 %.reload37 to i64
%141 = mul nsw i64 %140, 257
%142 = add i64 %141, ptrtoint (i8** @gv_2 to i64)
%143 = inttoptr i64 %142 to i8*
store i8 0, i8* %143, align 1
%144 = load i32, i32* @gv_4, align 4
%145 = sext i32 %144 to i64
%146 = mul nsw i64 %145, 257
%147 = add i64 %146, ptrtoint (i8** @gv_1 to i64)
%148 = inttoptr i64 %147 to i8*
store i8 0, i8* %148, align 1
%149 = load i32, i32* @gv_4, align 4
%150 = sext i32 %149 to i64
%151 = mul i64 %150, 4
%152 = add i64 %151, ptrtoint (i32** @gv_3 to i64)
%153 = inttoptr i64 %152 to i32*
store i32 0, i32* %153, align 4
br label LBL_8
LBL_31:
store i32 ptrtoint (i32* @gv_0 to i32), i32* @gv_4, align 4
br label LBL_8
LBL_32:
%154 = call i32 @fclose(%_IO_FILE* %13)
store i32 0, i32* bitcast (i64* @gv_17 to i32*), align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_33
LBL_33:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload35, { 0, 2, 1 }
uselistorder i8* %128, { 1, 0 }
uselistorder i32 %sv_0.111.reload, { 1, 0 }
uselistorder i8* %98, { 1, 0 }
uselistorder i8* %52, { 1, 0, 2, 3 }
uselistorder i8* %33, { 1, 0, 2, 3 }
uselistorder %_IO_FILE* %13, { 1, 2, 0, 3 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i8* %sv_2, { 0, 3, 4, 2, 1 }
uselistorder i8** %sv_1, { 4, 0, 3, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge713.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem30, { 2, 0, 1 }
uselistorder i32* %.reg2mem32, { 2, 0, 1 }
uselistorder i32* %storemerge612.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.111.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8* (i8*, i8*, i32)* @strncpy, { 1, 0 }
uselistorder i32 256, { 1, 0, 2 }
uselistorder i8 0, { 4, 5, 1, 2, 3, 6, 7, 8, 9, 10, 11, 0 }
uselistorder i8* (i8*, i8*)* @strstr, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 4, 3, 2, 1 }
uselistorder %_IO_FILE** @gv_7, { 4, 3, 2, 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i8* null, { 1, 2, 3, 4, 0 }
uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0 }
uselistorder i32 1024, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 8, 7, 0, 9 }
uselistorder i32* @gv_4, { 15, 14, 13, 0, 12, 1, 2, 11, 10, 9, 8, 7, 6, 5, 4, 3 }
uselistorder i64 ptrtoint (i32** @gv_3 to i64), { 1, 2, 0 }
uselistorder i64 ptrtoint (i8** @gv_2 to i64), { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 ptrtoint (i8** @gv_1 to i64), { 4, 3, 2, 1, 0 }
uselistorder i64 257, { 8, 9, 5, 6, 7, 1, 2, 3, 4, 10, 11, 12, 0 }
uselistorder i32* @gv_0, { 1, 2, 0 }
uselistorder i32 0, { 13, 9, 10, 8, 0, 1, 3, 11, 12, 15, 14, 4, 5, 2, 6, 7 }
uselistorder i32 1, { 13, 10, 14, 11, 12, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_8, { 4, 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | peer_free_18791 | peer_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 67, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
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 = call i64 @FUNC(i64 %arg1)
%9 = add i64 %arg1, 56
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = add i64 %arg1, 64
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = call i64 @FUNC(i64 %arg1)
%18 = add i64 %arg1, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 1, i64 %20)
br label LBL_4
LBL_4:
%23 = add i64 %arg1, 24
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = call i64 @FUNC(i64 2, i64 %25)
br label LBL_6
LBL_6:
%28 = add i64 %arg1, 32
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i64 %30)
br label LBL_8
LBL_8:
%33 = add i64 %arg1, 40
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_10, label LBL_9
LBL_9:
%37 = call i64 @FUNC(i64 3, i64 %35)
br label LBL_10
LBL_10:
%38 = add i64 %arg1, 48
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %40, 0
br i1 %41, label LBL_12, label LBL_11
LBL_11:
%42 = call i64 @FUNC(i64 %40)
br label LBL_12
LBL_12:
%43 = call i64 @FUNC(i64 %arg1)
%44 = inttoptr i64 %arg1 to i64*
%45 = call i64* @memset(i64* %44, i32 0, i32 72)
%46 = call i64 @FUNC(i64 4, i64 %arg1)
ret i64 %46
uselistorder i64 (i64, i64)* @XFREE, { 3, 2, 1, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0, 3, 4, 5, 6, 9, 8, 7, 12, 11, 10 }
} | 1 |
BinRealVul | GetCode__19000 | GetCode_ | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp eq i32 %arg4, 0
%2 = add i64 %0, 256
%3 = inttoptr i64 %2 to i32*
br i1 %1, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %3, align 4
%4 = add i64 %0, 260
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 264
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 268
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%10 = load i32, i32* %3, align 4
%11 = add i32 %10, %arg3
%12 = add i64 %0, 260
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp ult i32 %11, %14
store i32 %11, i32* %.pre-phi.reg2mem
store i32 %10, i32* %.reg2mem
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%16 = add i64 %0, 268
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_13
LBL_4:
%20 = ptrtoint i64* %arg1 to i64
%21 = add i64 %0, 264
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %23, -2
%25 = sext i32 %24 to i64
%26 = add i64 %25, %0
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = bitcast i64* %arg2 to i8*
store i8 %28, i8* %29, align 1
%30 = load i32, i32* %22, align 4
%31 = add i32 %30, -1
%32 = sext i32 %31 to i64
%33 = add i64 %32, %0
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = add i64 %0, 1
%37 = inttoptr i64 %36 to i8*
store i8 %35, i8* %37, align 1
%38 = add i64 %0, 2
%39 = ptrtoint i32* %arg5 to i64
%40 = call i64 @FUNC(i64 %20, i64 %38, i64 %39)
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_6, label LBL_5
LBL_5:
store i32 1, i32* %17, align 4
br label LBL_6
LBL_6:
%44 = sext i8 %41 to i32
%45 = urem i32 %44, 256
%narrow = add nuw nsw i32 %45, 2
store i32 %narrow, i32* %22, align 4
%46 = load i32, i32* %3, align 4
%47 = load i32, i32* %13, align 4
%48 = add i32 %46, 16
%49 = sub i32 %48, %47
store i32 %49, i32* %3, align 4
%50 = mul i32 %44, 8
%51 = and i32 %50, 2040
%52 = add nuw nsw i32 %51, 16
store i32 %52, i32* %13, align 4
%.pre = load i32, i32* %3, align 4
%.pre6 = add i32 %.pre, %arg3
store i32 %.pre6, i32* %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%53 = icmp slt i32 %.pre-phi.reload, 2049
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %53, label LBL_8, label LBL_12
LBL_8:
%.reload = load i32, i32* %.reg2mem
%54 = icmp sgt i32 %arg3, 0
store i32 0, i32* %storemerge5.reg2mem
store i32 %.reload, i32* %sv_1.04.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %54, label LBL_9, label LBL_12
LBL_9:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%55 = sdiv i32 %sv_1.04.reload, 128
%56 = sext i32 %55 to i64
%57 = add i64 %56, %0
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = zext i8 %59 to i64
%61 = urem i32 %sv_1.04.reload, 8
%62 = icmp eq i32 %61, 0
store i64 %60, i64* %rdx.0.reg2mem
br i1 %62, label LBL_10, label %63
LBL_10:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%67 = urem i64 %rdx.0.reload, 2
%68 = icmp eq i64 %67, 0
%69 = icmp eq i1 %68, false
%70 = zext i1 %69 to i32
%71 = urem i32 %storemerge5.reload, 32
%72 = shl i32 %70, %71
%73 = or i32 %72, %sv_0.03.reload
%74 = add i32 %sv_1.04.reload, 1
%75 = add nuw nsw i32 %storemerge5.reload, 1
%exitcond = icmp eq i32 %75, %arg3
store i32 %75, i32* %storemerge5.reg2mem
store i32 %74, i32* %sv_1.04.reg2mem
store i32 %73, i32* %sv_0.03.reg2mem
br i1 %exitcond, label LBL_11, label LBL_9
LBL_11:
%phitmp = zext i32 %73 to i64
store i64 %phitmp, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
store i32 %.pre-phi.reload, i32* %3, align 4
store i64 %sv_0.1.reload, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %73, { 1, 0 }
uselistorder i32 %61, { 1, 0 }
uselistorder i32 %sv_1.04.reload, { 0, 2, 1 }
uselistorder i32* %3, { 3, 0, 2, 1, 5, 4 }
uselistorder i64 %0, { 0, 6, 7, 1, 2, 11, 10, 9, 3, 4, 5, 8 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 %arg3, { 2, 3, 0, 1 }
uselistorder label LBL_13, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | can_open_cached_8641 | can_open_cached | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = and i32 %arg3, 640
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_12, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = urem i64 %arg2, 4
%5 = icmp eq i64 %4, 3
br i1 %5, label LBL_9, label LBL_2
LBL_2:
%6 = trunc i64 %4 to i32
store i64 0, i64* %sv_0.0.reg2mem
switch i32 %6, label LBL_12 [
i32 1, label LBL_3
i32 2, label LBL_6
]
LBL_3:
%7 = call i64 @FUNC(i64 0, i64 %3)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_5, label LBL_12
LBL_5:
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_6:
%14 = call i64 @FUNC(i64 1, i64 %3)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_8, label LBL_7
LBL_7:
%17 = add i64 %3, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_8, label LBL_12
LBL_8:
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_9:
%21 = call i64 @FUNC(i64 2, i64 %3)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_11, label LBL_10
LBL_10:
%24 = add i64 %3, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %27, 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
ret i64 %sv_0.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 4, 5, 0, 1, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 4, 3, 6, 5, 7, 8 }
uselistorder i64 1, { 0, 1, 3, 2 }
uselistorder i64 (i64, i64)* @test_bit, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 4, { 1, 0 }
} | 0 |
BinRealVul | CMS_RecipientInfo_encrypt_8122 | CMS_RecipientInfo_encrypt | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 4
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%5 = icmp sgt i32 %3, 4
br i1 %5, label LBL_7, label LBL_2
LBL_2:
switch i32 %3, label LBL_7 [
i32 3, label LBL_5
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%6 = ptrtoint i32* %arg2 to i64
%7 = call i64 @FUNC(i64 %2, i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%8 = ptrtoint i32* %arg2 to i64
%9 = call i64 @FUNC(i64 %2, i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%10 = ptrtoint i32* %arg2 to i64
%11 = call i64 @FUNC(i64 %2, i64 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%12 = ptrtoint i32* %arg2 to i64
%13 = call i64 @FUNC(i64 %2, i64 %12, i64 1)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%14 = call i64 @FUNC(i64 100, i64 101)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i64 1, { 4, 0, 1, 2, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i32* %arg2, { 3, 2, 0, 1 }
} | 0 |
BinRealVul | ensure_9765 | ensure | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 12
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = trunc i64 %arg2 to i32
%6 = add i32 %4, %5
%7 = sext i32 %6 to i64
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = icmp sgt i64 %7, %11
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = sext i32 %4 to i64
%14 = add i64 %13, %1
store i64 %14, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%15 = and i64 %7, 4294967295
%16 = call i64 @FUNC(i64 %15)
%sext2 = mul i64 %16, 4294967296
%17 = ashr exact i64 %sext2, 32
%18 = call i64 @FUNC(i64 %17)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %17)
store i32 0, i32* %9, align 4
store i64 0, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%22 = trunc i64 %16 to i32
%23 = load i32, i32* %9, align 4
%24 = inttoptr i64 %18 to i64*
%25 = inttoptr i64 %17 to i64*
%26 = call i64* @memcpy(i64* %24, i64* %25, i32 %23)
%27 = call i64 @FUNC(i64 %18)
store i32 %22, i32* %9, align 4
store i64 %18, i64* %arg1, align 8
%28 = load i32, i32* %3, align 4
%29 = sext i32 %28 to i64
%30 = add i64 %18, %29
store i64 %30, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %18, { 0, 2, 1, 3, 4 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %16, { 1, 0 }
uselistorder i32* %9, { 2, 1, 0, 3 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @cJSON_free, { 1, 0 }
uselistorder i64* %arg1, { 0, 1, 3, 2 }
uselistorder label LBL_6, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | spapr_machine_2_6_class_options_14182 | spapr_machine_2_6_class_options | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = bitcast i64* %arg1 to i32*
store i32 0, i32* %2, align 4
%3 = load i32, i32* inttoptr (i64 4202512 to i32*), align 16
%4 = call i128 @FUNC(i32 %3)
%5 = call i64 @FUNC(i64 %0)
ret i64 %5
} | 1 |
BinRealVul | cmd_sdbk_13301 | cmd_sdbk | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 32
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %arg2, 1
%7 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64 %6)
store i64 %7, i64* %storemerge1.reg2mem
br label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64 ptrtoint (i64* @gv_0 to i64))
store i64 %8, i64* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%9 = icmp eq i64 %storemerge1.reload, 0
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %storemerge1.reload)
%11 = inttoptr i64 %storemerge1.reload to i64*
call void @free(i64* %11)
store i64 ptrtoint (i32* @0 to i64), i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0))
store i64 %12, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge1.reload, { 1, 2, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @sdb_querys, { 1, 0 }
} | 1 |
BinRealVul | snd_timer_user_tinterrupt_11588 | snd_timer_user_tinterrupt | 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 = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 16)
%4 = add i64 %2, 48
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %1 to i32
%7 = urem i32 %6, 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %4)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_17
LBL_2:
%11 = add i64 %2, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = sext i32 %13 to i64
%15 = icmp eq i64 %14, %arg2
%16 = icmp eq i64 %arg3, 0
%or.cond = icmp eq i1 %16, %15
br i1 %or.cond, label LBL_6, label LBL_3
LBL_3:
%17 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64* nonnull %sv_2)
br label LBL_6
LBL_5:
%20 = call i64 @FUNC(i64* nonnull %sv_2)
br label LBL_6
LBL_6:
%21 = urem i32 %6, 2
%22 = icmp eq i32 %21, 0
store i32 %6, i32* %.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %22, label LBL_9, label LBL_7
LBL_7:
%23 = load i32, i32* %12, align 4
%24 = sext i32 %23 to i64
%25 = icmp eq i64 %24, %arg2
store i32 %6, i32* %.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = bitcast i64* %rdi to i32*
store i32 0, i32* %sv_1, align 4
%27 = call i64 @FUNC(i64 %2, i32* nonnull %sv_1)
%28 = trunc i64 %arg2 to i32
store i32 %28, i32* %12, align 4
%.pre = load i32, i32* %26, align 8
store i32 %.pre, i32* %.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%.reload = load i32, i32* %.reg2mem
%29 = and i32 %.reload, 2
%30 = icmp eq i32 %29, 0
%or.cond3 = or i1 %16, %30
br i1 %or.cond3, label LBL_15, label LBL_10
LBL_10:
%31 = add i64 %2, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp slt i32 %33, 1
br i1 %34, label LBL_13, label LBL_11
LBL_11:
%35 = add i64 %2, 12
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
%40 = add i64 %2, 16
%storemerge.in.in.in.in = select i1 %39, i64 %35, i64 %40
%storemerge.in.in.in = inttoptr i64 %storemerge.in.in.in.in to i32*
%storemerge.in.in = load i32, i32* %storemerge.in.in.in, align 4
%storemerge.in = add i32 %storemerge.in.in, -1
%storemerge = zext i32 %storemerge.in to i64
%41 = add i64 %2, 24
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%sext = mul i64 %storemerge, 4294967296
%44 = ashr exact i64 %sext, 27
%45 = add i64 %44, %43
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = icmp eq i32 %47, 1
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_13, label LBL_12
LBL_12:
%50 = load i64, i64* %sv_2, align 8
%51 = add i64 %45, 8
%52 = inttoptr i64 %51 to i64*
store i64 %50, i64* %52, align 8
%53 = add i64 %45, 16
%54 = inttoptr i64 %53 to i64*
%55 = add i64 %45, 24
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = add i64 %57, %arg3
store i64 %58, i64* %56, align 8
br label LBL_14
LBL_13:
store i32 1, i32* %sv_1, align 4
%59 = call i64 @FUNC(i64 %2, i32* nonnull %sv_1)
br label LBL_14
LBL_14:
%60 = call i64 @FUNC(i64 %4)
br label LBL_16
LBL_15:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%61 = call i64 @FUNC(i64 %4)
%62 = icmp eq i32 %sv_0.0.reload, 0
store i64 %61, i64* %rax.0.reg2mem
br i1 %62, label LBL_17, label LBL_16
LBL_16:
%63 = add i64 %2, 32
%64 = call i64 @FUNC(i64 %63, i64 29, i64 1)
%65 = add i64 %2, 40
%66 = call i64 @FUNC(i64 %65)
store i64 %66, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %16, { 1, 0 }
uselistorder i64 %4, { 2, 0, 1, 3 }
uselistorder i64* %sv_2, { 3, 0, 1, 2 }
uselistorder i32* %sv_1, { 0, 2, 1, 3 }
uselistorder i64 %2, { 7, 6, 2, 1, 5, 4, 3, 0, 8, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i32*)* @snd_timer_user_append_to_tqueue, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock, { 2, 0, 1 }
uselistorder i32 0, { 5, 6, 7, 4, 0, 1, 8, 9, 10, 2, 3 }
uselistorder i64 %arg2, { 2, 0, 1 }
uselistorder label LBL_17, { 1, 0, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | enable_kernel_fp_10395 | enable_kernel_fp | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = load i64, i64* @gv_1, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_5, label LBL_3
LBL_3:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
%10 = urem i64 %9, 2
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %4)
store i64 %12, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%13 = call i64 @FUNC(i64 0)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | is_mesh_5412 | is_mesh | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_7
LBL_1:
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 0, i64 %9, i64 %6)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_7
LBL_2:
%13 = add i64 %10, 1
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = icmp eq i64 %16, %arg3
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_7
LBL_3:
%18 = add i64 %10, 2
%19 = inttoptr i64 %18 to i64*
%20 = bitcast i32* %arg2 to i64*
%21 = trunc i64 %arg3 to i32
%22 = call i32 @memcmp(i64* %19, i64* %20, i32 %21)
%23 = icmp eq i32 %22, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_4, label LBL_7
LBL_4:
%24 = load i64, i64* %5, align 8
%25 = load i64, i64* %8, align 8
%26 = call i64 @FUNC(i64 1, i64 %25, i64 %24)
%27 = icmp eq i64 %26, 0
%28 = icmp eq i1 %27, false
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_5, label LBL_7
LBL_5:
%29 = add i64 %26, 1
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = icmp eq i8 %31, 10
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_6, label LBL_7
LBL_6:
%33 = add i64 %26, 2
%34 = inttoptr i64 %33 to i64*
%35 = call i32 @memcmp(i64* %34, i64* %arg4, i32 8)
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i64
%38 = and i32 %35, -256
%39 = sext i32 %38 to i64
%40 = or i64 %39, %37
store i64 %40, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 3, 4, 5, 6 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i64 1, { 3, 2, 4, 1, 0 }
uselistorder i64 (i64, i64, i64)* @find_ie, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_7, { 6, 0, 1, 2, 3, 4, 5 }
} | 0 |
BinRealVul | EC_GROUP_free_11507 | EC_GROUP_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %arg1, 16
%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 %5)
br label LBL_3
LBL_3:
%8 = add i64 %arg1, 24
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %arg1, 28
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %arg1, 32
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %14)
br label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %arg1)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 (i64)* @OPENSSL_free, { 1, 0 }
uselistorder i64 (i64)* @BN_free, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 3, 2, 1, 5, 4, 6 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | get_tuple_object_5930 | get_tuple_object | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
store i8 0, i8* %sv_0, align 1
%5 = call i64 @FUNC(i64 %4, i8* nonnull %sv_0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = ptrtoint i8* %sv_0 to i64
%10 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %9, i64 %3, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%11 = load i8, i8* %sv_0, align 1
%12 = icmp eq i8 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_5
LBL_3:
%13 = and i64 %5, 4294967295
%14 = call i64 @FUNC(i64 %4, i64 %13)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = inttoptr i64 %14 to i32*
store i32 1, i32* %16, align 4
store i64 %14, 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 i8* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i8 0, { 2, 1, 3, 4, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | ehci_queues_rip_device_1319 | ehci_queues_rip_device | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge12.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 %arg1, i64* %storemerge12.reg2mem
br i1 %0, label LBL_5, label LBL_3
LBL_1:
%1 = call i64 @FUNC(i64 %storemerge12.reload)
br label LBL_2
LBL_2:
%2 = icmp eq i64 %4, 0
store i64 %4, i64* %storemerge12.reg2mem
br i1 %2, label LBL_5, label LBL_3
LBL_3:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%3 = inttoptr i64 %storemerge12.reload to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %storemerge12.reload, 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_4
LBL_4:
%9 = inttoptr i64 %5 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, %arg2
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_2, label LBL_1
LBL_5:
ret i64 0
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %storemerge12.reload, { 2, 1, 0 }
uselistorder i64* %storemerge12.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0, 2 }
} | 0 |
BinRealVul | ath10k_wmi_tlv_op_gen_start_scan_7654 | ath10k_wmi_tlv_op_gen_start_scan | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem17 = alloca i64
%storemerge513.reg2mem = alloca i32
%.reg2mem15 = alloca i64
%storemerge614.reg2mem = alloca i32
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
%4 = mul i32 %3, 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = mul i32 %7, 36
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = mul i32 %11, 6
%13 = add i64 %2, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, 3
%17 = and i32 %16, -4
%18 = icmp eq i32 %3, 0
%19 = icmp eq i32 %7, 0
%20 = add i32 %8, 16
%storemerge9 = select i1 %19, i32 0, i32 %20
%21 = icmp eq i32 %11, 0
%22 = add i32 %12, 16
%spec.select11 = select i1 %21, i32 0, i32 %22
%23 = icmp eq i32 %15, 0
%24 = add i32 %17, 16
%storemerge7 = select i1 %23, i32 0, i32 %24
%.op = add i32 %4, 80
%25 = select i1 %18, i32 64, i32 %.op
%26 = add i32 %storemerge9, %25
%27 = add i32 %26, %spec.select11
%28 = add i32 %27, %storemerge7
%29 = call i64* @malloc(i32 %28)
%30 = icmp eq i64* %29, null
%31 = icmp eq i1 %30, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %31, label LBL_1, label LBL_11
LBL_1:
%32 = bitcast i64* %rsi to i32*
%33 = load i64, i64* %29, align 8
%34 = inttoptr i64 %33 to i16*
store i16 1, i16* %34, align 2
%35 = add i64 %33, 2
%36 = inttoptr i64 %35 to i16*
store i16 40, i16* %36, align 2
%37 = add i64 %33, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %2, 16
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %39, 4
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = load i32, i32* %32, align 8
%46 = add i64 %39, 8
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
%48 = load i32, i32* %6, align 4
%49 = add i64 %39, 12
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = load i32, i32* %10, align 4
%52 = add i64 %39, 16
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
%54 = load i32, i32* %14, align 4
%55 = add i64 %39, 20
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %39, 24
%58 = inttoptr i64 %57 to i32*
store i32 3, i32* %58, align 4
%59 = add i64 %2, 20
%60 = add i64 %39, 28
%61 = inttoptr i64 %60 to i64*
%62 = inttoptr i64 %59 to i64*
%63 = call i64* @memcpy(i64* %61, i64* %62, i32 6)
%64 = add i64 %2, 26
%65 = add i64 %39, 34
%66 = inttoptr i64 %65 to i64*
%67 = inttoptr i64 %64 to i64*
%68 = call i64* @memcpy(i64* %66, i64* %67, i32 6)
%69 = inttoptr i64 %39 to i32*
%70 = load i32, i32* %69, align 4
%71 = xor i32 %70, 6
store i32 %71, i32* %69, align 4
%72 = add i64 %33, 56
%73 = inttoptr i64 %72 to i16*
store i16 2, i16* %73, align 2
%74 = trunc i32 %4 to i16
%75 = add i64 %33, 58
%76 = inttoptr i64 %75 to i16*
store i16 %74, i16* %76, align 2
%77 = load i32, i32* %32, align 8
%78 = icmp eq i32 %77, 0
br i1 %78, label LBL_4, label LBL_2
LBL_2:
%79 = add i64 %33, 64
%80 = inttoptr i64 %79 to i64*
%81 = load i64, i64* %80, align 8
%82 = add i64 %2, 32
%83 = inttoptr i64 %82 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge614.reg2mem
br label LBL_3
LBL_3:
%storemerge614.reload = load i32, i32* %storemerge614.reg2mem
%.reload = load i64, i64* %.reg2mem
%84 = load i64, i64* %83, align 8
%85 = mul i64 %.reload, 4
%86 = add i64 %84, %85
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = add i64 %85, %81
%90 = inttoptr i64 %89 to i32*
store i32 %88, i32* %90, align 4
%91 = add i32 %storemerge614.reload, 1
%92 = load i32, i32* %32, align 8
%93 = zext i32 %92 to i64
%94 = sext i32 %91 to i64
%95 = icmp slt i64 %94, %93
store i64 %94, i64* %.reg2mem
store i32 %91, i32* %storemerge614.reg2mem
br i1 %95, label LBL_3, label LBL_4
LBL_4:
%96 = sext i32 %4 to i64
%97 = add nsw i64 %96, 72
%98 = add i64 %97, %33
%99 = inttoptr i64 %98 to i16*
store i16 3, i16* %99, align 2
%100 = trunc i32 %8 to i16
%101 = add i64 %98, 2
%102 = inttoptr i64 %101 to i16*
store i16 %100, i16* %102, align 2
%103 = load i32, i32* %6, align 4
%104 = icmp eq i32 %103, 0
br i1 %104, label LBL_7, label LBL_5
LBL_5:
%105 = add i64 %98, 8
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = add i64 %2, 40
%109 = inttoptr i64 %108 to i64*
store i64 0, i64* %.reg2mem15
store i32 0, i32* %storemerge513.reg2mem
br label LBL_6
LBL_6:
%storemerge513.reload = load i32, i32* %storemerge513.reg2mem
%.reload16 = load i64, i64* %.reg2mem15
%110 = load i64, i64* %109, align 8
%111 = mul nsw i64 %.reload16, 36
%112 = add i64 %110, %111
%113 = add i64 %111, %107
%114 = inttoptr i64 %112 to i32*
%115 = load i32, i32* %114, align 4
%116 = inttoptr i64 %113 to i32*
store i32 %115, i32* %116, align 4
%117 = load i64, i64* %109, align 8
%118 = add i64 %117, %111
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = add i64 %118, 4
%122 = add i64 %113, 4
%123 = inttoptr i64 %122 to i64*
%124 = inttoptr i64 %121 to i64*
%125 = call i64* @memcpy(i64* %123, i64* %124, i32 %120)
%126 = add i32 %storemerge513.reload, 1
%127 = load i32, i32* %6, align 4
%128 = zext i32 %127 to i64
%129 = sext i32 %126 to i64
%130 = icmp slt i64 %129, %128
store i64 %129, i64* %.reg2mem15
store i32 %126, i32* %storemerge513.reg2mem
br i1 %130, label LBL_6, label LBL_7
LBL_7:
%131 = sext i32 %8 to i64
%132 = add nsw i64 %131, 16
%133 = add i64 %132, %98
%134 = inttoptr i64 %133 to i16*
store i16 3, i16* %134, align 2
%135 = trunc i32 %12 to i16
%136 = add i64 %133, 2
%137 = inttoptr i64 %136 to i16*
store i16 %135, i16* %137, align 2
%138 = load i32, i32* %10, align 4
%139 = icmp eq i32 %138, 0
br i1 %139, label LBL_10, label LBL_8
LBL_8:
%140 = add i64 %133, 8
%141 = inttoptr i64 %140 to i64*
%142 = load i64, i64* %141, align 8
%143 = add i64 %2, 48
%144 = inttoptr i64 %143 to i64*
store i64 0, i64* %.reg2mem17
store i32 0, i32* %storemerge12.reg2mem
br label LBL_9
LBL_9:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload18 = load i64, i64* %.reg2mem17
%145 = load i64, i64* %144, align 8
%146 = mul nsw i64 %.reload18, 6
%147 = add i64 %145, %146
%148 = add i64 %146, %142
%149 = inttoptr i64 %148 to i64*
%150 = inttoptr i64 %147 to i64*
%151 = call i64* @memcpy(i64* %149, i64* %150, i32 6)
%152 = add i32 %storemerge12.reload, 1
%153 = load i32, i32* %10, align 4
%154 = zext i32 %153 to i64
%155 = sext i32 %152 to i64
%156 = icmp slt i64 %155, %154
store i64 %155, i64* %.reg2mem17
store i32 %152, i32* %storemerge12.reg2mem
br i1 %156, label LBL_9, label LBL_10
LBL_10:
%157 = ptrtoint i64* %29 to i64
%158 = sext i32 %12 to i64
%159 = add nsw i64 %158, 16
%160 = add i64 %159, %133
%161 = inttoptr i64 %160 to i16*
store i16 4, i16* %161, align 2
%162 = trunc i32 %17 to i16
%163 = add i64 %160, 2
%164 = inttoptr i64 %163 to i16*
store i16 %162, i16* %164, align 2
%165 = load i32, i32* %14, align 4
%166 = add i64 %2, 56
%167 = inttoptr i64 %166 to i64*
%168 = load i64, i64* %167, align 8
%169 = add i64 %160, 8
%170 = inttoptr i64 %169 to i64*
%171 = load i64, i64* %170, align 8
%172 = inttoptr i64 %171 to i64*
%173 = inttoptr i64 %168 to i64*
%174 = call i64* @memcpy(i64* %172, i64* %173, i32 %165)
%175 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0))
store i64 %157, 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 %85, { 1, 0 }
uselistorder i32* %32, { 1, 0, 2 }
uselistorder i64* %29, { 2, 0, 1 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i32* %10, { 1, 0, 2, 3 }
uselistorder i32 %8, { 1, 2, 0 }
uselistorder i32* %6, { 1, 0, 2, 3 }
uselistorder i32 %4, { 1, 0, 2 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 0, 1, 2, 3, 4, 5, 6, 7, 9, 8 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge614.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem15, { 1, 0, 2 }
uselistorder i32* %storemerge513.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem17, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 56, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 4, 3, 2, 1, 0 }
uselistorder i32 16, { 2, 0, 1 }
uselistorder i32 0, { 0, 3, 1, 4, 2, 5, 6, 9, 7, 10, 8, 11, 12 }
uselistorder i32 6, { 1, 4, 2, 3, 0 }
uselistorder i64 4, { 1, 2, 0, 3, 4 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | reallocate_lines_18317 | reallocate_lines | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = mul i64 %0, 3
%2 = udiv i64 %1, 2
%3 = load i64, i64* @gv_0, align 8
%4 = inttoptr i64 %3 to i64*
%.tr = trunc i64 %2 to i32
%5 = mul i32 %.tr, 8
%6 = add i32 %5, 16
%7 = call i64* @realloc(i64* %4, i32 %6)
%8 = icmp eq i64* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = load i32, i32* @gv_1, align 4
%11 = load i64, i64* @gv_2, align 8
%12 = inttoptr i64 %11 to i64*
%13 = call i32 @munmap(i64* %12, i32 %10)
store i64 0, i64* @gv_2, align 8
%14 = load i64, i64* @gv_0, align 8
%15 = inttoptr i64 %14 to i64*
call void @free(i64* %15)
store i64 0, i64* @gv_0, align 8
store i64 0, i64* %arg1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%16 = ptrtoint i64* %7 to i64
store i64 %2, i64* %arg1, align 8
store i64 %16, i64* @gv_0, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | page_set_flags_14025 | page_set_flags | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.lcssa.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 281474976710656
br i1 %0, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%1 = icmp ult i64 %arg1, %arg2
br i1 %1, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%2 = call i64 @FUNC()
%3 = and i64 %arg1, -4096
%4 = and i64 %arg2, -4096
%5 = sub i64 %4, %3
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %rax.0.lcssa.reg2mem
br i1 %7, label LBL_5, label LBL_10
LBL_5:
%8 = mul i32 %arg3, 2
%9 = and i32 %8, 2
%10 = or i32 %9, %arg3
%11 = urem i32 %arg3, 2
%12 = icmp eq i32 %11, 0
store i64 %5, i64* %sv_1.05.reg2mem
store i64 %3, i64* %sv_0.03.reg2mem
br label LBL_6
LBL_6:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%13 = udiv i64 %sv_0.03.reload, 4096
%14 = call i64 @FUNC(i64 %13, i64 1)
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = urem i32 %16, 2
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
%or.cond = or i1 %12, %19
br i1 %or.cond, label LBL_9, label LBL_7
LBL_7:
%20 = add i64 %14, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64 %sv_0.03.reload, i64 0)
br label LBL_9
LBL_9:
store i32 %10, i32* %15, align 4
%25 = add i64 %sv_1.05.reload, -4096
%26 = add i64 %sv_0.03.reload, 4096
%27 = icmp eq i64 %25, 0
%28 = icmp eq i1 %27, false
store i64 %25, i64* %sv_1.05.reg2mem
store i64 %26, i64* %sv_0.03.reg2mem
store i64 %14, i64* %rax.0.lcssa.reg2mem
br i1 %28, label LBL_6, label LBL_10
LBL_10:
%rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem
ret i64 %rax.0.lcssa.reload
uselistorder i64 %sv_0.03.reload, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 2, { 1, 2, 3, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 %arg3, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | git_remote_disconnect_18136 | git_remote_disconnect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([7 x i8]* @gv_0 to i64), i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
ret i64 %.reload
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder [7 x i8]* @gv_0, { 1, 0 }
} | 1 |
BinRealVul | mpeg4video_parse_init_16897 | mpeg4video_parse_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
store i64 %0, i64* %arg1, align 8
ret i64 4294967295
} | 1 |
BinRealVul | entropy_available_833 | entropy_available | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%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 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %6, 15
%8 = udiv i64 %7, 16
%9 = mul i64 %8, 16
%10 = sub i64 %3, %9
%11 = trunc i64 %1 to i32
%12 = inttoptr i64 %10 to i64*
%13 = trunc i64 %6 to i32
%14 = call i32 @read(i32 %11, i64* %12, i32 %13)
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = call i32* @__errno_location()
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = icmp eq i32 %18, 11
%21 = icmp eq i1 %20, false
store i64 %19, i64* %rax.0.reg2mem
br i1 %21, label LBL_2, label LBL_3
LBL_2:
%22 = bitcast i64* %rdi to i32*
%23 = icmp eq i32 %14, -1
%24 = icmp eq i1 %23, false
%25 = zext i1 %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %2, 16
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %28, align 8
%29 = load i32, i32* %22, align 8
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30, i64 0, i64 0, i64 0)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 16, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | hevc_init_3521 | hevc_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
store i64 %0, i64* %arg1, align 8
ret i64 4294967284
} | 0 |
BinRealVul | flask_security_make_bools_12160 | flask_security_make_bools | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64* nonnull %2, i64 0, i64* nonnull %sv_1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = load i32, i32* %sv_0, align 4
store i32 %7, i32* @gv_1, align 4
%8 = load i64, i64* %sv_1, align 8
store i64 %8, i64* @gv_0, align 8
br label LBL_2
LBL_2:
%9 = and i64 %3, 4294967295
ret i64 %9
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 1, { 7, 6, 8, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | _enable_carbons_handler_17891 | _enable_carbons_handler | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0))
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %4)
%11 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %arg3, i64 %3, i64 %2, i64 %1)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %10, i64 %arg3, i64 %3, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([6 x i8]* @gv_0 to i64), i64 %arg3, i64 %3, i64 %2, i64 %1)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %1, { 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @log_debug, { 1, 0 }
uselistorder [6 x i8]* @gv_0, { 1, 0 }
uselistorder i64 %arg3, { 2, 1, 0 }
} | 1 |
BinRealVul | r_read_at_le32_6809 | r_read_at_le32 | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i32* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, %arg2
%4 = call i64 @FUNC(i64 %3)
store i64 %4, 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 | initialise_banding_19081 | initialise_banding | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = trunc i64 %arg3 to i32
%2 = load i32, i32* @gv_0, align 4
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i32*
store i32 %2, i32* %4, align 4
%5 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%6 = add i64 %0, 20
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = icmp eq i32 %1, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_7, label LBL_1
LBL_1:
%10 = load i32, i32* %4, align 4
%11 = icmp eq i32 %10, 1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %4, align 4
store i32 0, i32* %7, align 4
br label LBL_7
LBL_3:
%13 = icmp eq i32 %10, 2
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_7, label LBL_4
LBL_4:
store i32 0, i32* %4, align 4
%15 = load i32, i32* %7, align 4
%16 = icmp eq i32 %15, 3
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
store i32 2, i32* %7, align 4
br label LBL_7
LBL_6:
store i32 0, i32* %7, align 4
br label LBL_7
LBL_7:
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label LBL_9, label LBL_8
LBL_8:
br label LBL_9
LBL_9:
%22 = ptrtoint i64* %arg1 to i64
%23 = add i64 %0, 32
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = load i32, i32* @gv_1, align 4
%26 = icmp ne i32 %25, 0
%27 = icmp eq i32 %25, 1
%28 = icmp eq i1 %27, false
%or.cond = icmp eq i1 %26, %28
br i1 %or.cond, label LBL_11, label LBL_10
LBL_10:
%29 = load i64, i64* @gv_2, align 8
%30 = call i64 @FUNC(i64 %22, i64 %29)
%31 = add i64 %0, 40
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = load i32, i32* @gv_1, align 4
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
%. = select i1 %35, i32 3, i32 1
%36 = add i64 %0, 48
%37 = inttoptr i64 %36 to i32*
store i32 %., i32* %37, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_17
LBL_11:
%38 = icmp eq i32 %25, 4
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%40 = load i64, i64* @gv_2, align 8
%41 = call i64 @FUNC(i64 %22, i64 %40)
%42 = add i64 %0, 40
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
%44 = add i64 %0, 48
%45 = inttoptr i64 %44 to i32*
store i32 4, i32* %45, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_17
LBL_13:
%46 = icmp eq i32 %25, 2
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_15, label LBL_14
LBL_14:
%48 = load i64, i64* @gv_2, align 8
%49 = call i64 @FUNC(i64 %22, i64 %48)
%50 = add i64 %0, 40
%51 = inttoptr i64 %50 to i64*
store i64 %49, i64* %51, align 8
%52 = add i64 %0, 48
%53 = inttoptr i64 %52 to i32*
store i32 1, i32* %53, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%54 = zext i32 %25 to i64
%55 = icmp eq i32 %25, 3
%56 = icmp eq i1 %55, false
store i64 %54, i64* %rax.0.reg2mem
br i1 %56, label LBL_17, label LBL_16
LBL_16:
%57 = load i64, i64* @gv_2, align 8
%58 = call i64 @FUNC(i64 %22, i64 %57)
%59 = add i64 %0, 40
%60 = inttoptr i64 %59 to i64*
store i64 %58, i64* %60, align 8
%61 = add i64 %0, 48
%62 = inttoptr i64 %61 to i32*
store i32 4, i32* %62, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %25, { 2, 1, 3, 4, 0, 5 }
uselistorder i64 %22, { 2, 1, 0, 3 }
uselistorder i32* %7, { 3, 2, 1, 0, 4 }
uselistorder i32* %4, { 2, 1, 0, 3 }
uselistorder i64 %0, { 2, 8, 9, 1, 6, 7, 0, 4, 5, 3, 10, 11, 12, 13, 14, 15 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5 }
uselistorder i32 4, { 1, 2, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 3, { 2, 0, 1 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6, 7, 8 }
} | 1 |
BinRealVul | parse_video_info_11803 | parse_video_info | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = bitcast i64* %arg2 to i32*
store i32 %3, i32* %4, align 4
%5 = call i64 @FUNC(i64 %1)
%6 = trunc i64 %5 to i32
%7 = add i64 %0, 4
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = call i64 @FUNC(i64 %1, i64 1)
%10 = call i64 @FUNC(i64 %1)
%11 = bitcast i32* %sv_0 to i64*
%12 = call i64 @FUNC(i64 %1, i64 %0, i64* nonnull %11)
%13 = trunc i64 %12 to i32
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = load i64, i64* @gv_0, align 8
%17 = and i64 %12, 4294967295
%18 = call i64 @FUNC(i64 %16, i64 %17)
%19 = trunc i64 %18 to i32
%20 = add i64 %0, 12
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = load i32, i32* %sv_0, align 4
%23 = trunc i64 %10 to i32
%24 = urem i32 %23, 65536
%25 = icmp ugt i32 %22, %24
%26 = icmp eq i1 %25, false
%27 = select i1 %26, i32 %24, i32 %22
store i32 %27, i32* %sv_0, align 4
%28 = icmp ult i32 %27, 55
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_4, label LBL_1
LBL_1:
%29 = add i32 %27, -54
%30 = add nuw nsw i64 %17, 16
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = add i32 %27, -22
%33 = sext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = add nuw nsw i64 %17, 24
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
%37 = icmp eq i64 %34, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %31, align 4
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%39 = load i32, i32* %31, align 4
%40 = sext i32 %39 to i64
%41 = add i64 %34, %40
%42 = inttoptr i64 %41 to i64*
%43 = call i64* @memset(i64* %42, i32 0, i32 32)
%44 = load i32, i32* inttoptr (i64 16 to i32*), align 16
%45 = load i64, i64* inttoptr (i64 24 to i64*), align 8
%46 = call i64 @FUNC(i64 %1, i64 %45, i32 %44)
%47 = trunc i64 %46 to i32
%48 = icmp slt i32 %47, 0
%49 = icmp eq i1 %48, false
%50 = and i64 %46, 4294967295
%spec.select = select i1 %49, i64 0, i64 %50
ret i64 %spec.select
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %31, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @avio_rl32, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | rc4030_unrealize_3462 | rc4030_unrealize | define i64 @FUNC(i64* %arg1, i64* %arg2) 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 %5)
ret i64 %6
} | 0 |
BinRealVul | nfc_llcp_send_rr_9211 | nfc_llcp_send_rr | 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 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %3)
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%10 = call i64 @FUNC(i64 %2, i64 1, i64 1)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_3
LBL_2:
%13 = call i64 @FUNC(i64 %10, i64 1)
%14 = inttoptr i64 %10 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %15, 2
%17 = trunc i64 %1 to i8
%18 = inttoptr i64 %16 to i8*
store i8 %17, i8* %18, align 1
%19 = call i64 @FUNC(i64 %7, i64 %10)
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 %10, { 0, 2, 1, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | avc_mp4_find_startcode_15862 | avc_mp4_find_startcode | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i64
%sv_2.03.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%0 = sub i64 %arg2, %arg1
%1 = sext i32 %arg3 to i64
%2 = icmp slt i64 %0, %1
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = icmp eq i32 %arg3, 0
%4 = icmp eq i1 %3, false
store i32 0, i32* %sv_0.04.reg2mem
store i32 %arg3, i32* %sv_2.03.reg2mem
store i64 %arg1, i64* %sv_1.02.reg2mem
store i64 %arg1, i64* %sv_1.0.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem
%sv_2.03.reload = load i32, i32* %sv_2.03.reg2mem
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%5 = add i32 %sv_2.03.reload, -1
%6 = mul i32 %sv_0.04.reload, 256
%7 = add i64 %sv_1.02.reload, 1
%8 = inttoptr i64 %sv_1.02.reload to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i32
%11 = or i32 %6, %10
%12 = icmp eq i32 %5, 0
%13 = icmp eq i1 %12, false
store i32 %11, i32* %sv_0.04.reg2mem
store i32 %5, i32* %sv_2.03.reg2mem
store i64 %7, i64* %sv_1.02.reg2mem
store i64 %7, i64* %sv_1.0.lcssa.reg2mem
store i32 %11, i32* %sv_0.0.lcssa.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%14 = sext i32 %sv_0.0.lcssa.reload to i64
%15 = add i64 %sv_1.0.lcssa.reload, %14
%16 = icmp ugt i64 %15, %arg2
%17 = icmp slt i32 %sv_0.0.lcssa.reload, 0
%or.cond = or i1 %17, %16
%spec.select = select i1 %or.cond, i64 0, i64 %15
ret i64 %spec.select
LBL_4:
ret i64 0
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.02.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 3, 4, 0, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | options_defaults_11247 | options_defaults | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64* @memset(i64* nonnull @gv_0, i32 0, i32 8)
store i64 0, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 1, i64 0, i64 0)
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 1, i64* nonnull %sv_0, i64 0, i64 0)
ret i64 %2
uselistorder i64* @gv_0, { 2, 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
} | 1 |
BinRealVul | iothread_instance_finalize_3479 | iothread_instance_finalize | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = add i64 %1, 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %1, 12
%6 = call i64 @FUNC(i64 %5)
%7 = inttoptr i64 %1 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %8)
store i64 %10, 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 label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | reftype_box_dump_6001 | reftype_box_dump | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.0.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_7
LBL_1:
%8 = ptrtoint i32* %arg1 to i64
%9 = add i64 %8, 4
%10 = inttoptr i64 %9 to i32*
%11 = icmp ne i32 %5, 1
%12 = icmp eq i32 %5, 2
%13 = icmp eq i1 %12, false
%or.cond = icmp eq i1 %11, %13
%spec.store.select = select i1 %or.cond, i32 %5, i32 1969974903
store i32 %spec.store.select, i32* %10, align 4
%14 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%15 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %2, i64 %1)
%16 = add i64 %8, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 %arg2, i64* %rdx.0.lcssa.reg2mem
br i1 %19, label LBL_4, label LBL_2
LBL_2:
%20 = add i64 %8, 16
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%22 = load i64, i64* %21, align 8
%23 = mul i64 %indvars.iv.reload, 4
%24 = add i64 %22, %23
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %27, i64 %4, i64 %2, i64 %1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%29 = load i32, i32* %17, align 4
%30 = zext i32 %29 to i64
%31 = icmp ult i64 %indvars.iv.next, %30
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %27, i64* %rdx.0.lcssa.reg2mem
br i1 %31, label LBL_3, label LBL_4
LBL_4:
%32 = add i64 %8, 24
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_6, label LBL_5
LBL_5:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%37 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.0.lcssa.reload, i64 %4, i64 %2, i64 %1)
br label LBL_6
LBL_6:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %arg2)
store i32 3, i32* %10, align 4
br label LBL_7
LBL_7:
ret i64 0
uselistorder i32* %17, { 1, 0 }
uselistorder i32* %10, { 1, 0 }
uselistorder i64 %8, { 0, 2, 3, 1, 4, 5 }
uselistorder i32 %5, { 3, 1, 2, 0 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @gf_fprintf, { 1, 2, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 %arg2, { 2, 1, 3, 0, 4, 6, 5 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | nfs4_proc_get_acl_7373 | nfs4_proc_get_acl | 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 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%sext = mul i64 %5, 4294967296
%9 = ashr exact i64 %sext, 32
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%10 = urem i64 %0, 2
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %0)
br label LBL_5
LBL_5:
%13 = ptrtoint i64* %arg2 to i64
%14 = call i64 @FUNC(i64 %0, i64 %13, i64 %arg3)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 2
br i1 %16, label LBL_7, label LBL_6
LBL_6:
%sext1 = mul i64 %14, 4294967296
%17 = ashr exact i64 %sext1, 32
store i64 %17, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%18 = call i64 @FUNC(i64 %0, i64 %13, i64 %arg3)
store i64 %18, 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 %0, { 2, 3, 1, 0, 5, 4, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | av_guess_frame_rate_17237 | av_guess_frame_rate | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%4 = load i32, i32* %0
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %1, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 1
%15 = icmp slt i32 %4, 1
%or.cond = or i1 %15, %14
%16 = trunc i64 %1 to i32
%17 = icmp slt i32 %16, 1
%or.cond8 = or i1 %17, %or.cond
%18 = icmp slt i32 %3, 1
%or.cond9 = or i1 %18, %or.cond8
store i64 %7, i64* %.reg2mem
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %or.cond9, label LBL_2, label LBL_1
LBL_1:
%19 = call i128 @FUNC(i64 %12)
%20 = call i128 @FUNC(i64 4634626229029306368)
call void @FUNC(i128 %20, i128 %19)
%21 = call i128 @FUNC(i64 %1)
%22 = call i64 @FUNC(i128 %21)
%23 = call i128 @__asm_movq.1(i64 %22)
%24 = load i128, i128* @gv_0, align 8
call void @FUNC(i128 %23, i128 %24)
%.pre = load i64, i64* %6, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %12, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%25 = trunc i64 %9 to i32
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%26 = add i64 %.reload, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp slt i32 %28, 2
%30 = icmp slt i32 %25, 1
%or.cond5 = or i1 %30, %29
%31 = icmp slt i32 %2, 1
%or.cond10 = or i1 %31, %or.cond5
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %or.cond10, label LBL_4, label LBL_3
LBL_3:
%sext = mul i64 %9, 4294967296
%32 = ashr exact i64 %sext, 32
%33 = call i128 @FUNC(i64 %32)
%34 = call i64 @__asm_movsd.2(i128 %33)
%35 = call i128 @FUNC(i64 %sv_0.0.reload)
%36 = call i128 @FUNC(i64 4604480259023595110)
%37 = call i128 @FUNC(i128 %35, i128 %36)
%38 = sext i64 %34 to i128
call void @FUNC(i128 %37, i128 %38)
%39 = call i64 @FUNC(i64 %12, i64 %sv_0.0.reload)
%40 = call i128 @FUNC(i64 %39)
%41 = call i128 @FUNC(i128 %40)
%42 = call i128 @FUNC(i64 4607182418800017408)
%43 = call i128 @FUNC(i128 %42, i128 %41)
%44 = call i128 @__asm_movq.1(i64 9223372036854775807)
%45 = call i128 @FUNC(i128 %43, i128 %44)
%46 = load i128, i128* @gv_1, align 8
call void @FUNC(i128 %45, i128 %46)
store i64 %32, i64* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
ret i64 %sv_0.1.reload
uselistorder i64 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %12, { 2, 0, 1, 3 }
uselistorder i64 %1, { 2, 0, 1, 3, 4 }
uselistorder i32* %0, { 2, 1, 0 }
uselistorder i128 (i64)* @av_q2d, { 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | mspack_fmap_free_12989 | mspack_fmap_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i64*
call void @free(i64* %0)
ret i64 ptrtoint (i32* @0 to i64)
} | 1 |
BinRealVul | sys_recvfrom_19009 | sys_recvfrom | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i32* %arg6) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = trunc i64 %arg1 to i32
%2 = trunc i64 %arg3 to i32
%3 = bitcast i64* %arg5 to %sockaddr*
%4 = call i32 @recvfrom(i32 %1, i64* %arg2, i32 %2, i32 %0, %sockaddr* %3, i32* %arg6)
%5 = sext i32 %4 to i64
%6 = icmp eq i32 %4, -1
%7 = icmp eq i1 %6, false
store i64 %5, i64* %.reg2mem
store i64 %5, i64* %.lcssa.reg2mem
br i1 %7, label LBL_5, label LBL_1
LBL_1:
%8 = call i32* @__errno_location()
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 4
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = call i32 @recvfrom(i32 %1, i64* %arg2, i32 %2, i32 %0, %sockaddr* %3, i32* %arg6)
%12 = sext i32 %11 to i64
%13 = icmp eq i32 %11, -1
%14 = icmp eq i1 %13, false
store i64 %12, i64* %.reg2mem
store i64 %12, i64* %.lcssa.reg2mem
br i1 %14, label LBL_5, label LBL_1
LBL_3:
%15 = call i32* @__errno_location()
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 11
br i1 %17, label LBL_2, label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%18 = call i32* @__errno_location()
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 11
store i64 %.reload, i64* %.lcssa.reg2mem
br i1 %20, label LBL_2, label LBL_5
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder %sockaddr* %3, { 1, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder i32 %1, { 1, 0 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* ()* @__errno_location, { 2, 0, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i32 (i32, i64*, i32, i32, %sockaddr*, i32*)* @recvfrom, { 1, 0 }
uselistorder i32* %arg6, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_2, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | qtrle_decode_1bpp_16102 | qtrle_decode_1bpp | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.in.be.reg2mem = alloca i32
%sv_0.2.be.reg2mem = alloca i32
%sv_1.1.be.reg2mem = alloca i64
%.reg2mem97 = alloca i32
%.reg2mem95 = alloca i64
%.reg2mem = alloca i32
%sv_0.016.reg2mem = alloca i32
%sv_2.017.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i64
%sv_1.126.reg2mem = alloca i64
%sv_4.127.reg2mem = alloca i64
%sv_3.128.reg2mem = alloca i64
%sv_0.229.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext5 = mul i64 %arg4, 4294967296
%1 = ashr exact i64 %sext5, 32
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = mul i32 %11, %6
%rax.025 = zext i32 %12 to i64
%13 = trunc i64 %1 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %rax.025, i64* %rax.1.reg2mem
br i1 %15, label LBL_1, label LBL_22
LBL_1:
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i64*
%sext4 = mul i64 %arg3, 4294967296
%18 = ashr exact i64 %sext4, 32
%sext = mul i64 %arg2, 4294967296
%19 = ashr exact i64 %sext, 32
%20 = sext i32 %12 to i64
store i32 0, i32* %sv_0.229.reg2mem
store i64 %1, i64* %sv_3.128.reg2mem
store i64 %18, i64* %sv_4.127.reg2mem
store i64 %19, i64* %sv_1.126.reg2mem
br label LBL_2
LBL_2:
%sv_1.126.reload = load i64, i64* %sv_1.126.reg2mem
%21 = add nsw i64 %sv_1.126.reload, 2
%22 = trunc i64 %21 to i32
%23 = icmp ult i32 %22, 9
br i1 %23, label LBL_3, label LBL_2.LBL_22_crit_edge
LBL_3:
%24 = load i64, i64* %17, align 8
%25 = add i64 %24, %sv_1.126.reload
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = mul i64 %sv_1.126.reload, 4294967296
%29 = add i64 %28, 4294967296
%30 = ashr exact i64 %29, 32
%31 = add i64 %24, %30
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %33, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %34, label LBL_22, label LBL_4
LBL_4:
%sv_4.127.reload = load i64, i64* %sv_4.127.reg2mem
%sv_3.128.reload = load i64, i64* %sv_3.128.reg2mem
%35 = zext i8 %27 to i32
%36 = icmp sgt i8 %27, -1
br i1 %36, label LBL_6, label LBL_5
LBL_5:
%37 = mul i64 %sv_3.128.reload, 4294967296
%sext9 = add i64 %37, -4294967296
%38 = ashr exact i64 %sext9, 32
%39 = trunc i64 %sv_4.127.reload to i32
%40 = add i32 %6, %39
%41 = sext i32 %40 to i64
%42 = mul i32 %35, 2
%43 = and i32 %42, 254
%44 = add i32 %43, %40
store i64 %41, i64* %sv_4.0.reg2mem
store i64 %38, i64* %sv_3.0.reg2mem
store i32 %44, i32* %storemerge.reg2mem
br label LBL_7
LBL_6:
%sv_0.229.reload = load i32, i32* %sv_0.229.reg2mem
%45 = mul i32 %35, 2
%46 = add i32 %45, %sv_0.229.reload
store i64 %sv_4.127.reload, i64* %sv_4.0.reg2mem
store i64 %sv_3.128.reload, i64* %sv_3.0.reg2mem
store i32 %46, i32* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%47 = icmp sgt i32 %storemerge.reload, %12
br i1 %47, label LBL_7.LBL_22_crit_edge, label LBL_8
LBL_8:
%sext7 = add i64 %28, 8589934592
%48 = ashr exact i64 %sext7, 32
%49 = sext i8 %33 to i32
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%sv_4.0.reload = load i64, i64* %sv_4.0.reg2mem
%50 = icmp slt i8 %33, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_12, label LBL_9
LBL_9:
%52 = add nsw i64 %48, 2
%53 = trunc i64 %52 to i32
%54 = icmp ult i32 %53, 9
br i1 %54, label LBL_10, label LBL_9.LBL_22_crit_edge
LBL_10:
%55 = sub nsw i32 0, %49
%56 = add i64 %24, %48
%57 = inttoptr i64 %56 to i8*
%58 = load i8, i8* %57, align 1
%59 = add i64 %28, 12884901888
%sext11 = add i64 %28, 17179869184
%60 = ashr exact i64 %sext11, 32
%61 = ashr exact i64 %59, 32
%62 = add i64 %24, %61
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = mul i32 %55, 2
%66 = add i32 %storemerge.reload, %65
%67 = zext i32 %66 to i64
%68 = icmp slt i64 %20, %67
store i32 %55, i32* %sv_2.017.reg2mem
store i32 %storemerge.reload, i32* %sv_0.016.reg2mem
store i64 %67, i64* %rax.1.reg2mem
br i1 %68, label LBL_22, label LBL_11
LBL_11:
%sv_0.016.reload = load i32, i32* %sv_0.016.reg2mem
%sv_2.017.reload = load i32, i32* %sv_2.017.reg2mem
%69 = add i32 %sv_2.017.reload, -1
%70 = add i32 %sv_0.016.reload, 1
%71 = sext i32 %sv_0.016.reload to i64
%72 = add i64 %71, %0
%73 = inttoptr i64 %72 to i8*
store i8 %58, i8* %73, align 1
%74 = add i32 %sv_0.016.reload, 2
%75 = sext i32 %70 to i64
%76 = add i64 %75, %0
%77 = inttoptr i64 %76 to i8*
store i8 %64, i8* %77, align 1
%78 = icmp eq i32 %69, 0
%79 = icmp eq i1 %78, false
store i32 %69, i32* %sv_2.017.reg2mem
store i32 %74, i32* %sv_0.016.reg2mem
store i64 %60, i64* %sv_1.1.be.reg2mem
store i32 %74, i32* %sv_0.2.be.reg2mem
store i32 %69, i32* %rax.0.in.be.reg2mem
br i1 %79, label LBL_11, label LBL_16
LBL_12:
%80 = mul i32 %49, 2
%81 = trunc i64 %48 to i32
%82 = add i32 %80, %81
%83 = icmp ult i32 %82, 9
br i1 %83, label LBL_13, label LBL_12.LBL_22_crit_edge
LBL_13:
%84 = add i32 %storemerge.reload, %80
%85 = zext i32 %84 to i64
%86 = icmp slt i64 %20, %85
store i64 %85, i64* %rax.1.reg2mem
br i1 %86, label LBL_22, label LBL_14
LBL_14:
%87 = add nsw i32 %80, -1
%sext1379 = add i64 %28, 12884901888
%88 = ashr exact i64 %sext1379, 32
%89 = add i64 %48, %24
%90 = add i32 %storemerge.reload, 1
%91 = sext i32 %storemerge.reload to i64
%92 = add i64 %91, %0
%93 = inttoptr i64 %89 to i8*
%94 = load i8, i8* %93, align 1
%95 = inttoptr i64 %92 to i8*
store i8 %94, i8* %95, align 1
store i32 %90, i32* %.reg2mem
store i64 %88, i64* %.reg2mem95
store i32 %87, i32* %.reg2mem97
br label LBL_15
LBL_15:
%.reload98 = load i32, i32* %.reg2mem97
%.reload96 = load i64, i64* %.reg2mem95
%.reload = load i32, i32* %.reg2mem
%.pre = load i64, i64* %17, align 8
%96 = add i32 %.reload98, -1
%97 = mul i64 %.reload96, 4294967296
%sext13 = add i64 %97, 4294967296
%98 = ashr exact i64 %sext13, 32
%99 = add i64 %.reload96, %.pre
%100 = add i32 %.reload, 1
%101 = sext i32 %.reload to i64
%102 = add i64 %101, %0
%103 = inttoptr i64 %99 to i8*
%104 = load i8, i8* %103, align 1
%105 = inttoptr i64 %102 to i8*
store i8 %104, i8* %105, align 1
%106 = icmp eq i32 %96, 0
%107 = icmp eq i1 %106, false
store i32 %100, i32* %.reg2mem
store i64 %98, i64* %.reg2mem95
store i32 %96, i32* %.reg2mem97
store i64 %98, i64* %sv_1.1.be.reg2mem
store i32 %100, i32* %sv_0.2.be.reg2mem
store i32 %96, i32* %rax.0.in.be.reg2mem
br i1 %107, label LBL_15, label LBL_16
LBL_16:
%sv_0.2.be.reload = load i32, i32* %sv_0.2.be.reg2mem
%sv_1.1.be.reload = load i64, i64* %sv_1.1.be.reg2mem
%108 = trunc i64 %sv_3.0.reload to i32
%109 = icmp eq i32 %108, 0
%110 = icmp eq i1 %109, false
store i32 %sv_0.2.be.reload, i32* %sv_0.229.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.128.reg2mem
store i64 %sv_4.0.reload, i64* %sv_4.127.reg2mem
store i64 %sv_1.1.be.reload, i64* %sv_1.126.reg2mem
br i1 %110, label LBL_2, label LBL_17
LBL_17:
%rax.0.in.be.reload = load i32, i32* %rax.0.in.be.reg2mem
%rax.0.le = zext i32 %rax.0.in.be.reload to i64
store i64 %rax.0.le, i64* %rax.1.reg2mem
br label LBL_22
LBL_18:
%111 = zext i32 %82 to i64
store i64 %111, i64* %rax.1.reg2mem
br label LBL_22
LBL_19:
%112 = and i64 %52, 4294967295
store i64 %112, i64* %rax.1.reg2mem
br label LBL_22
LBL_20:
%113 = and i64 %21, 4294967295
store i64 %113, i64* %rax.1.reg2mem
br label LBL_22
LBL_21:
%114 = zext i32 %storemerge.reload to i64
store i64 %114, i64* %rax.1.reg2mem
br label LBL_22
LBL_22:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %80, { 2, 1, 0 }
uselistorder i32 %sv_0.016.reload, { 2, 1, 0 }
uselistorder i64 %sv_3.0.reload, { 1, 0 }
uselistorder i64 %48, { 0, 3, 1, 2 }
uselistorder i32 %storemerge.reload, { 6, 5, 4, 3, 0, 2, 1 }
uselistorder i8 %33, { 0, 2, 1 }
uselistorder i64 %28, { 4, 3, 2, 1, 0 }
uselistorder i64 %sv_1.126.reload, { 2, 1, 0 }
uselistorder i32 %12, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i32* %sv_0.229.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.128.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.127.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.126.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.017.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.016.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem95, { 1, 0, 2 }
uselistorder i32* %.reg2mem97, { 1, 0, 2 }
uselistorder i64* %sv_1.1.be.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.be.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.in.be.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 9, 6, 7, 8, 5, 2, 3, 1, 4 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i32 2, { 0, 4, 1, 2, 3 }
uselistorder i1 false, { 4, 1, 2, 3, 0 }
uselistorder i64 32, { 1, 0, 2, 3, 6, 4, 5, 9, 8, 7 }
uselistorder i64 4294967296, { 7, 0, 1, 6, 2, 3, 4, 5 }
uselistorder label LBL_22, { 3, 4, 5, 6, 7, 1, 0, 2, 8 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_index_table_segment_16486 | mxf_read_index_table_segment | define i64 @FUNC(i32* %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = add i32 %arg3, -16133
%1 = zext i32 %0 to i64
store i64 %1, i64* @0, align 8
switch i32 %arg3, label LBL_7 [
i32 16133, label LBL_1
i32 16134, label LBL_2
i32 16135, label LBL_3
i32 16139, label LBL_4
i32 16140, label LBL_5
i32 16141, label LBL_6
]
LBL_1:
%2 = ptrtoint i32* %arg2 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = and i64 %3, 4294967295
%5 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %4)
br label LBL_7
LBL_2:
%6 = ptrtoint i32* %arg2 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = and i64 %7, 4294967295
%9 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %8)
br label LBL_7
LBL_3:
%10 = ptrtoint i32* %arg2 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = and i64 %11, 4294967295
%13 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %12)
br label LBL_7
LBL_4:
%14 = ptrtoint i32* %arg2 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %14)
%17 = and i64 %15, 4294967295
%18 = and i64 %16, 4294967295
%19 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i64 %18, i64 %17)
br label LBL_7
LBL_5:
%20 = ptrtoint i32* %arg2 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i64 %21)
br label LBL_7
LBL_6:
%23 = ptrtoint i32* %arg2 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = call i32 (i32, i8*, ...) @dprintf(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_5, i64 0, i64 0), i64 %24)
br label LBL_7
LBL_7:
ret i64 0
uselistorder i64 (i64)* @get_be64, { 1, 0 }
uselistorder i32 (i32, i8*, ...)* @dprintf, { 1, 3, 2, 0, 5, 4 }
uselistorder i32 0, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 3, 4, 2, 1, 0 }
uselistorder i64 (i64)* @get_be32, { 4, 3, 2, 1, 0 }
uselistorder i32* %arg2, { 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | kvm_arch_init_vcpu_3119 | kvm_arch_init_vcpu | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = call i64 @FUNC(i64 %4, i64 4198732, i64 %0)
store i64 %5, i64* @gv_1, align 8
br label LBL_2
LBL_2:
%storemerge = and i64 %1, 4294967295
ret i64 %storemerge
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | prefetch_table_5870 | prefetch_table | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 255
%1 = select i1 %0, i64 %arg2, i64 255
%2 = sub i64 0, %1
%3 = sub i64 %2, 1
%4 = add i64 %arg2, 256
%5 = add i64 %4, %3
%6 = and i64 %5, -256
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%7 = icmp ult i64 %sv_0.0.reload, %arg2
%8 = add i64 %sv_0.0.reload, 32
store i64 %8, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_2:
%9 = add i64 %arg1, -1
%10 = add i64 %9, %arg2
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = zext i8 %12 to i64
ret i64 %13
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64 %arg2, { 3, 4, 0, 1, 2 }
} | 0 |
BinRealVul | static_route_alloc_18582 | static_route_alloc | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 1, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | btrfs_label_store_5347 | btrfs_label_store | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = inttoptr i64 %1 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
store i64 2, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = inttoptr i64 %arg3 to i8*
%11 = call i32 @strcspn(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%12 = icmp ult i32 %11, 256
store i64 22, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_4
LBL_3:
%13 = add i64 %1, 16
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %1, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memset(i64* %18, i32 0, i32 256)
%20 = load i64, i64* %16, align 8
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %arg3 to i64*
%23 = call i64* @memcpy(i64* %21, i64* %22, i32 %11)
%24 = call i64 @FUNC(i64 %13)
%25 = call i64 @FUNC(i64 %1, i64 1)
%26 = add i64 %1, 20
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
store i64 %arg4, 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 %1, { 1, 0, 3, 2, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | hash_literally_17416 | hash_literally | define i64 @FUNC(i64* %arg1, i32 %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%0 = zext i32 %arg2 to i64
%1 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0, i64 4096)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = urem i32 %arg4, 2
%7 = icmp eq i32 %6, 0
%8 = load i64, i64* %sv_1, align 8
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %8, i64 0, i64 %arg3, i64 %5)
store i64 %9, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%10 = call i64 @FUNC(i64 %8, i64 0, i64 %arg3, i64 %5)
store i64 %10, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = call i64 @FUNC(i64* nonnull %sv_1)
%12 = and i64 %sv_0.0.reload, 4294967295
ret i64 %12
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %sv_1, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 0, { 2, 3, 5, 6, 0, 1, 4 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | virtio_scsi_device_unrealize_3087 | virtio_scsi_device_unrealize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 0, i64 4198696)
%3 = call i64 @FUNC(i64 %1, i64 %0)
ret i64 %3
} | 0 |
BinRealVul | __skb_get_nlattr_13790 | __skb_get_nlattr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) 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 = trunc i64 %3 to i32
%5 = icmp ne i32 %4, 0
%6 = trunc i64 %1 to i32
%7 = icmp ult i32 %6, 4
%or.cond = or i1 %7, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_4, label LBL_1
LBL_1:
%8 = and i64 %1, 4294967295
%9 = add nsw i64 %8, -4
%10 = icmp ult i64 %9, %arg2
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = sub i64 %1, %arg2
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %14, %arg2
%16 = and i64 %arg3, 4294967295
%17 = and i64 %11, 4294967295
%18 = call i64 @FUNC(i64 %15, i64 %17, i64 %16)
%19 = icmp eq i64 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = load i64, i64* %13, align 8
%21 = sub i64 %18, %20
store i64 %21, 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 %1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 1, 2, 0 }
} | 0 |
BinRealVul | ff_qsv_decode_reset_3076 | ff_qsv_decode_reset | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %4)
br label LBL_9
LBL_2:
%8 = add i64 %4, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_9, label LBL_3
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%13 = add i64 %4, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i32* nonnull %sv_1)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = and i64 %16, 4294967295
%21 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %20, i64 %2, i64 %1)
br label LBL_5
LBL_5:
%22 = load i64, i64* %14, align 8
%23 = call i64 @FUNC(i64 %22, i32* nonnull %sv_1)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = and i64 %23, 4294967295
%28 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %27, i64 %2, i64 %1)
br label LBL_7
LBL_7:
%storemerge.in.in = add i64 %4, 16
%storemerge.in = inttoptr i64 %storemerge.in.in to i64*
%storemerge1 = load i64, i64* %storemerge.in, align 8
store i64 %storemerge1, i64* %sv_0, align 8
%29 = icmp eq i64 %storemerge1, 0
%30 = icmp eq i1 %29, false
store i64 %storemerge1, i64* %storemerge2.reg2mem
br i1 %30, label LBL_8, label LBL_9
LBL_8:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%31 = inttoptr i64 %storemerge2.reload to i64*
%32 = load i64, i64* %31, align 8
store i64 %32, i64* %storemerge.in, align 8
%33 = load i64, i64* %sv_0, align 8
%34 = add i64 %33, 8
%35 = call i64 @FUNC(i64 %34)
%36 = call i64 @FUNC(i64* nonnull %sv_0)
%storemerge = load i64, i64* %storemerge.in, align 8
store i64 %storemerge, i64* %sv_0, align 8
%37 = icmp eq i64 %storemerge, 0
%38 = icmp eq i1 %37, false
store i64 %storemerge, i64* %storemerge2.reg2mem
br i1 %38, label LBL_8, label LBL_9
LBL_9:
%39 = add i64 %4, 24
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%43 = call i64 @FUNC(i64 %41)
br label LBL_11
LBL_11:
%44 = add i64 %4, 32
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = icmp eq i64 %46, 0
store i64 %46, i64* %.reg2mem
br i1 %47, label LBL_14, label LBL_13
LBL_12:
%48 = load i64, i64* %45, align 8
%49 = call i64 @FUNC(i64 %48, i64* nonnull %sv_0, i64 0, i64 0)
%50 = call i64 @FUNC(i64* nonnull %sv_0)
%51 = load i64, i64* %45, align 8
%52 = icmp eq i64 %51, 0
store i64 %51, i64* %.reg2mem
br i1 %52, label LBL_14, label LBL_13
LBL_13:
%.reload = load i64, i64* %.reg2mem
%53 = call i64 @FUNC(i64 %.reload)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_12, label LBL_14
LBL_14:
%57 = add i64 %4, 40
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = icmp eq i64 %59, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %60, label LBL_16, label LBL_15
LBL_15:
%61 = call i64 @FUNC(i64 %59)
store i64 %61, 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* %45, { 2, 1, 0 }
uselistorder i64* %storemerge.in, { 2, 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64* %sv_0, { 2, 3, 1, 4, 5, 0 }
uselistorder i64 %4, { 1, 2, 3, 0, 6, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @av_fifo_reset, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | rsc_parse_7606 | rsc_parse | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.ph5.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
store i64 %0, i64* %sv_7, align 8
%1 = trunc i64 %arg3 to i32
%2 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 64)
%3 = call i64 @FUNC(i64* nonnull %sv_7, i64 %0, i32 %1)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
br i1 %5, label LBL_21, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64* nonnull %sv_5, i64 %0, i32 %4)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_21, label LBL_2
LBL_2:
store i64 0, i64* %sv_6, align 8
%10 = call i64 @FUNC(i64* nonnull %sv_7)
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_21, label LBL_3
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%13 = call i64 @FUNC(i64 %12, i64* nonnull %sv_6)
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_21, label LBL_4
LBL_4:
%15 = bitcast i32* %sv_4 to i64*
%16 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, -22
store i64 4294967274, i64* %sv_0.0.ph5.reg2mem
br i1 %18, label LBL_216, label LBL_5
LBL_5:
%19 = icmp eq i32 %17, -2
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 1, i64* nonnull %sv_6)
br label LBL_20
LBL_7:
%22 = load i32, i32* %sv_4, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64* nonnull @gv_0, i64 %23)
%25 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %15)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 4294967274, i64* %sv_0.0.ph5.reg2mem
br i1 %28, label LBL_216, label LBL_8
LBL_8:
%29 = load i32, i32* %sv_4, align 4
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64* nonnull @gv_0, i64 %30)
%32 = bitcast i32* %sv_3 to i64*
%33 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967274, i64* %sv_0.0.ph5.reg2mem
br i1 %36, label LBL_216, label LBL_9
LBL_9:
%37 = load i32, i32* %sv_3, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38)
%40 = icmp eq i64 %39, 0
store i64 4294967284, i64* %sv_0.0.ph5.reg2mem
br i1 %40, label LBL_216, label LBL_10
LBL_10:
%41 = load i32, i32* %sv_3, align 4
%42 = icmp eq i32 %41, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge9.reg2mem
br i1 %42, label LBL_14, label LBL_11
LBL_11:
%43 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %15)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %46, label LBL_23, label LBL_12
LBL_12:
%47 = load i32, i32* %sv_4, align 4
%48 = zext i32 %47 to i64
%49 = call i64 @FUNC(i64* nonnull @gv_0, i64 %48)
%50 = and i64 %49, 4294967295
%51 = call i64 @FUNC(i64 %50)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %53, label LBL_23, label LBL_13
LBL_13:
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%.reload = load i64, i64* %.reg2mem
%54 = trunc i64 %49 to i32
%55 = mul i64 %.reload, 4
%56 = add i64 %55, %39
%57 = inttoptr i64 %56 to i32*
store i32 %54, i32* %57, align 4
%58 = add i32 %storemerge9.reload, 1
%59 = load i32, i32* %sv_3, align 4
%60 = zext i32 %59 to i64
%61 = sext i32 %58 to i64
%62 = icmp slt i64 %61, %60
store i64 %61, i64* %.reg2mem
store i32 %58, i32* %storemerge9.reg2mem
br i1 %62, label LBL_11, label LBL_14
LBL_14:
%63 = call i64 @FUNC(i64* nonnull %sv_7, i64 %0, i32 %1)
%64 = trunc i64 %63 to i32
%65 = icmp slt i32 %64, 0
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %65, label LBL_23, label LBL_15
LBL_15:
%66 = call i64 @FUNC(i64 %0)
%67 = icmp eq i64 %66, 0
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967201, i64* %sv_0.0.reg2mem
br i1 %67, label LBL_23, label LBL_16
LBL_16:
%68 = call i64 @FUNC(i64* nonnull %sv_7, i64 %0, i32 %1)
%69 = trunc i64 %68 to i32
%70 = icmp slt i32 %69, 0
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %70, label LBL_23, label LBL_17
LBL_17:
%71 = call i64 @FUNC(i64 %0, i32 %69, i64 %66, i64* nonnull %sv_2, i64 0, i64 0)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
%74 = icmp eq i1 %73, false
store i64 %13, i64* %sv_1.0.reg2mem
store i64 %71, i64* %sv_0.0.reg2mem
br i1 %74, label LBL_23, label LBL_18
LBL_18:
%75 = call i64 @FUNC(i64* nonnull %sv_7, i64 %0, i32 %1)
%76 = trunc i64 %75 to i32
%77 = icmp slt i32 %76, 1
br i1 %77, label LBL_20, label LBL_19
LBL_19:
%78 = call i64 @FUNC(i64 %0, i64 0)
%79 = icmp eq i64 %78, 0
%80 = icmp eq i1 %79, false
store i64 %13, i64* %sv_1.0.reg2mem
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %80, label LBL_20, label LBL_23
LBL_20:
%81 = call i64 @FUNC(i64 %12, i64* nonnull %sv_6, i64 %13)
store i64 %81, i64* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_23
LBL_21:
%82 = call i64 @FUNC(i64* nonnull %sv_6)
store i64 4294967284, i64* %sv_0.1.reg2mem
br label LBL_25
LBL_22:
%sv_0.0.ph5.reload = load i64, i64* %sv_0.0.ph5.reg2mem
%83 = call i64 @FUNC(i64* nonnull %sv_6)
store i64 %sv_0.0.ph5.reload, i64* %sv_0.08.reg2mem
store i64 %13, i64* %sv_1.07.reg2mem
br label LBL_24
LBL_23:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%84 = call i64 @FUNC(i64* nonnull %sv_6)
%85 = icmp eq i64 %sv_1.0.reload, 0
store i64 %sv_0.0.reload, i64* %sv_0.08.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.07.reg2mem
store i64 4294967284, i64* %sv_0.1.reg2mem
br i1 %85, label LBL_25, label LBL_24
LBL_24:
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem
%86 = call i64 @FUNC(i64 %sv_1.07.reload, i64 %12)
store i64 %sv_0.08.reload, i64* %sv_0.1.reg2mem
br label LBL_25
LBL_25:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%87 = and i64 %sv_0.1.reload, 4294967295
ret i64 %87
uselistorder i64 %49, { 1, 0 }
uselistorder i64 %13, { 0, 8, 3, 4, 5, 6, 7, 1, 2, 9 }
uselistorder i64 %12, { 2, 0, 1 }
uselistorder i32 %1, { 2, 1, 0, 3 }
uselistorder i64* %sv_6, { 2, 0, 1, 3, 4, 5, 7, 6 }
uselistorder i32* %sv_4, { 2, 1, 0, 3 }
uselistorder i32* %sv_3, { 2, 0, 1, 3 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge9.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.ph5.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 4, 3, 5, 6, 7, 8, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 5, 6, 7, 8, 1, 2 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64*)* @rsc_free, { 2, 0, 1 }
uselistorder i64 4294967284, { 1, 0, 2, 3 }
uselistorder i64 (i64*, i64)* @make_kgid, { 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 4294967274, { 2, 3, 0, 1, 6, 5, 4 }
uselistorder i64 (i64*, i64*)* @get_int, { 3, 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64 (i64*, i64, i32)* @qword_get, { 3, 2, 1, 0 }
uselistorder i32 0, { 5, 6, 7, 3, 4, 0, 1, 8, 9, 10, 11, 2 }
uselistorder label LBL_25, { 2, 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 7, 2, 3, 4, 5, 6, 0, 1 }
uselistorder label LBL_216, { 3, 2, 1, 0 }
uselistorder label LBL_21, { 3, 2, 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | tg3_phy_copper_begin_9658 | tg3_phy_copper_begin | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge38.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%3 = trunc i64 %1 to i32
%4 = icmp ne i32 %3, 1
%.pre = add i64 %2, 28
%.pre9 = inttoptr i64 %.pre to i32*
%.pre11 = load i32, i32* %.pre9, align 4
%5 = urem i32 %.pre11, 2
%6 = icmp eq i32 %5, 0
%or.cond = icmp eq i1 %4, %6
br i1 %or.cond, label LBL_5, label LBL_1
LBL_1:
%7 = urem i32 %.pre11, 2
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %2, i64 4)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%spec.select = select i1 %11, i32 3, i32 15
store i32 %spec.select, i32* %sv_0.1.reg2mem
store i32 48, i32* %storemerge.reg2mem
br label LBL_4
LBL_3:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = and i32 %.pre11, 2
%16 = icmp eq i32 %15, 0
%17 = and i32 %14, -49
%spec.select4 = select i1 %16, i32 %14, i32 %17
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
store i32 %spec.select4, i32* %sv_0.1.reg2mem
store i32 %20, i32* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%21 = zext i32 %sv_0.1.reload to i64
%22 = call i64 @FUNC(i64 %2, i64 %21, i32 %storemerge.reload)
%23 = call i64 @FUNC(i64 %2, i64 0, i64 12288)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_16
LBL_5:
%24 = add i64 %2, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %2, 20
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = add i64 %2, 16
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i64 %2, 24
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = call i64 @FUNC(i64 %2)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 1
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_7, label LBL_6
LBL_6:
%38 = call i64 @FUNC(i64 %2, i64 4, i64 63)
br label LBL_7
LBL_7:
%39 = load i32, i32* %25, align 4
%40 = load i32, i32* %30, align 4
%41 = bitcast i32* %sv_2 to i64*
%42 = call i64 @FUNC(i64 %2, i64 0, i64* nonnull %41)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i64 %42, i64* %rax.0.reg2mem
br i1 %45, label LBL_16, label LBL_8
LBL_8:
%switch.selectcmp = icmp eq i32 %39, 1000
%switch.select = select i1 %switch.selectcmp, i32 1024, i32 0
%switch.selectcmp6 = icmp eq i32 %39, 100
%switch.select7 = select i1 %switch.selectcmp6, i32 512, i32 %switch.select
%46 = icmp eq i32 %40, 1
%47 = icmp eq i1 %46, false
%48 = or i32 %switch.select7, 256
%spec.select5 = select i1 %47, i32 %switch.select7, i32 %48
%49 = load i32, i32* %sv_2, align 4
%50 = zext i32 %49 to i64
%51 = icmp eq i32 %spec.select5, %49
store i64 %50, i64* %rax.0.reg2mem
br i1 %51, label LBL_16, label LBL_9
LBL_9:
%52 = call i64 @FUNC(i64 %2, i64 0, i64 16384)
%53 = bitcast i32* %sv_1 to i64*
store i32 0, i32* %storemerge38.reg2mem
br label LBL_10
LBL_10:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%54 = call i64 @FUNC(i64 10)
%55 = call i64 @FUNC(i64 %2, i64 1, i64* nonnull %53)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_14, label LBL_11
LBL_11:
%59 = call i64 @FUNC(i64 %2, i64 1, i64* nonnull %53)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_14, label LBL_12
LBL_12:
%63 = load i32, i32* %sv_1, align 4
%64 = and i32 %63, 4
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_14, label LBL_13
LBL_13:
%67 = call i64 @FUNC(i64 40)
br label LBL_15
LBL_14:
%68 = add nuw nsw i32 %storemerge38.reload, 1
%69 = icmp ult i32 %68, 1500
store i32 %68, i32* %storemerge38.reg2mem
br i1 %69, label LBL_10, label LBL_15
LBL_15:
%70 = zext i32 %spec.select5 to i64
%71 = call i64 @FUNC(i64 %2, i64 0, i64 %70)
%72 = call i64 @FUNC(i64 40)
store i64 %72, 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 i32 %spec.select5, { 1, 0 }
uselistorder i32 %switch.select7, { 1, 0 }
uselistorder i32 %.pre11, { 2, 0, 1 }
uselistorder i64 %2, { 2, 3, 4, 5, 6, 1, 7, 9, 8, 16, 15, 12, 11, 13, 14, 10, 0 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @udelay, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64*)* @tg3_readphy, { 2, 1, 0 }
uselistorder i1 false, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 (i64, i64, i64)* @tg3_writephy, { 3, 2, 1, 0 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder i32 0, { 3, 4, 5, 0, 2, 6, 7, 8, 9, 1 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder label LBL_14, { 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | ide_drive_pio_post_load_14653 | ide_drive_pio_post_load | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %2, 11
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 29
%6 = add i64 %5, ptrtoint (i64* @gv_0 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %4, 8
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = add i64 %4, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %4, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %16, %13
%18 = add i64 %4, 40
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = add i64 %4, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %22, %17
%24 = add i64 %4, 48
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0, 4, 3, 2, 5 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | jsvGetString_6323 | jsvGetString | 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.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8*
%storemerge.lcssa.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i64
%.reg2mem27 = alloca i8
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%2 = icmp eq i64 %arg3, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 83, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = add i64 %arg3, -1
%9 = inttoptr i64 %6 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp ne i8 %10, 0
%12 = icmp ne i64 %8, 0
%or.cond6 = icmp eq i1 %12, %11
%13 = bitcast i64* %arg2 to i8*
store i8* %13, i8** %.reg2mem
store i8 %10, i8* %.reg2mem27
store i64 0, i64* %storemerge7.reg2mem
store i64 0, i64* %storemerge.lcssa.reg2mem
store i8* %13, i8** %.lcssa.reg2mem
br i1 %or.cond6, label LBL_4, label LBL_5
LBL_4:
%storemerge7.reload = load i64, i64* %storemerge7.reg2mem
%.reload28 = load i8, i8* %.reg2mem27
%.reload = load i8*, i8** %.reg2mem
store i8 %.reload28, i8* %.reload, align 1
%14 = add nuw i64 %storemerge7.reload, 1
%15 = add i64 %14, %6
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = icmp ne i8 %17, 0
%19 = icmp ult i64 %14, %8
%or.cond = icmp eq i1 %19, %18
%20 = add i64 %14, %4
%21 = inttoptr i64 %20 to i8*
store i8* %21, i8** %.reg2mem
store i8 %17, i8* %.reg2mem27
store i64 %14, i64* %storemerge7.reg2mem
store i64 %14, i64* %storemerge.lcssa.reg2mem
store i8* %21, i8** %.lcssa.reg2mem
br i1 %or.cond, label LBL_4, label LBL_5
LBL_5:
%.lcssa.reload = load i8*, i8** %.lcssa.reg2mem
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
store i8 0, i8* %.lcssa.reload, align 1
store i64 %storemerge.lcssa.reload, i64* %rax.0.reg2mem
br label LBL_21
LBL_6:
%22 = call i64 @FUNC(i64 %5)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = and i64 %1, 4294967295
%26 = call i64 @FUNC(i64 %25, i64 %4, i64 10)
%27 = bitcast i64* %arg2 to i8*
%28 = call i32 @strlen(i8* %27)
%29 = sext i32 %28 to i64
store i64 %29, i64* %rax.0.reg2mem
br label LBL_21
LBL_8:
%30 = call i64 @FUNC(i64 %5)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%33 = trunc i64 %1 to i32
%34 = call i128 @FUNC(i32 %33)
%35 = call i64 @FUNC(i64 %4, i64 %arg3)
%36 = bitcast i64* %arg2 to i8*
%37 = call i32 @strlen(i8* %36)
%38 = sext i32 %37 to i64
store i64 %38, i64* %rax.0.reg2mem
br label LBL_21
LBL_10:
%39 = call i64 @FUNC(i64 %5)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_18, label LBL_11
LBL_11:
%42 = call i64 @FUNC(i64 %5)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_13, label LBL_12
LBL_12:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 100, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_13
LBL_13:
%45 = call i64 @FUNC(i64* nonnull %sv_2, i64 %5, i64 0)
%46 = call i64 @FUNC(i64* nonnull %sv_2)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 %arg3, i64* %sv_0.04.reg2mem
store i64 %4, i64* %sv_1.03.reg2mem
store i64 %4, i64* %sv_1.0.lcssa.reg2mem
store i64 %arg3, i64* %sv_0.0.lcssa.reg2mem
br i1 %49, label LBL_14, label LBL_17
LBL_14:
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%50 = icmp ult i64 %sv_0.04.reload, 2
br i1 %50, label LBL_15, label LBL_16
LBL_15:
%51 = inttoptr i64 %sv_1.03.reload to i8*
store i8 0, i8* %51, align 1
%52 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_21
LBL_16:
%53 = add i64 %sv_0.04.reload, -1
%54 = add i64 %sv_1.03.reload, 1
%55 = call i64 @FUNC(i64* nonnull %sv_2)
%56 = trunc i64 %55 to i8
%57 = inttoptr i64 %sv_1.03.reload to i8*
store i8 %56, i8* %57, align 1
%58 = call i64 @FUNC(i64* nonnull %sv_2)
%59 = call i64 @FUNC(i64* nonnull %sv_2)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 %53, i64* %sv_0.04.reg2mem
store i64 %54, i64* %sv_1.03.reg2mem
store i64 %54, i64* %sv_1.0.lcssa.reg2mem
store i64 %53, i64* %sv_0.0.lcssa.reg2mem
br i1 %62, label LBL_14, label LBL_17
LBL_17:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%63 = call i64 @FUNC(i64* nonnull %sv_2)
%64 = inttoptr i64 %sv_1.0.lcssa.reload to i8*
store i8 0, i8* %64, align 1
%65 = sub i64 %arg3, %sv_0.0.lcssa.reload
store i64 %65, i64* %rax.0.reg2mem
br label LBL_21
LBL_18:
%66 = call i64 @FUNC(i64 %5)
%67 = icmp eq i64 %66, 0
br i1 %67, label LBL_20, label LBL_19
LBL_19:
%68 = call i64 @FUNC(i64 %66, i64 0, i64 %4, i64 %arg3)
store i64 %68, i64* %sv_2, align 8
%69 = call i64 @FUNC(i64 %66)
%70 = load i64, i64* %sv_2, align 8
store i64 %70, i64* %rax.0.reg2mem
br label LBL_21
LBL_20:
%71 = bitcast i64* %arg2 to i8*
store i8 0, i8* %71, align 1
%72 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %66, { 1, 0, 2 }
uselistorder i64 %sv_1.03.reload, { 1, 0, 2 }
uselistorder i64 %14, { 0, 1, 2, 4, 3 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 %4, { 5, 0, 1, 4, 3, 2 }
uselistorder i64* %sv_2, { 7, 8, 1, 2, 3, 4, 5, 0, 6 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem27, { 2, 0, 1 }
uselistorder i64* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 4, 5, 3, 2, 1 }
uselistorder i64 (i64*)* @jsvStringIteratorHasChar, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5 }
uselistorder i8 0, { 2, 4, 3, 5, 6, 0, 1 }
uselistorder i64 -1, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 %arg3, { 6, 5, 0, 1, 2, 4, 3, 7 }
uselistorder i64* %arg2, { 1, 2, 3, 0, 4 }
uselistorder label LBL_21, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | find_callno_locked_7002 | find_callno_locked | define i64 @FUNC(i64 %arg1, i16 %arg2, i64* %arg3, i32 %arg4, i64 %arg5, i64 %arg6, i32 %arg7, i32 %arg8, i32 %arg9, i16 %arg10, i16 %arg11, i64 %arg12) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = trunc i64 %arg5 to i32
%2 = urem i64 %arg1, 65536
%3 = call i64 @FUNC(i64 %2, i16 %arg2, i64 %0, i32 %arg4, i32 %1, i64 1)
ret i64 %3
} | 0 |
BinRealVul | socket_get_fd_3552 | socket_get_fd | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
ret i64 %2
} | 0 |
BinRealVul | __io_sqe_files_unregister_12918 | __io_sqe_files_unregister | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = add i64 %2, 4
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%6 = and i64 %1, 4294967295
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%7 = zext i32 %storemerge1.reload to i64
%8 = call i64 @FUNC(i64 %5, i64 %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %8)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %5, i64 %7)
%15 = call i64 @FUNC(i64 %8)
br label LBL_5
LBL_5:
%16 = add i32 %storemerge1.reload, 1
%17 = sext i32 %16 to i64
%18 = icmp sgt i64 %6, %17
store i32 %16, i32* %storemerge1.reg2mem
br i1 %18, label LBL_2, label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %5)
%20 = add i64 %2, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
store i64 0, i64* %21, align 8
%24 = bitcast i64* %arg1 to i32*
store i32 0, i32* %24, align 4
ret i64 %2
uselistorder i64 %2, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 3, 2, 0, 1 }
uselistorder label LBL_5, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mxg_update_cache_570 | mxg_update_cache | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i64 %0, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = sub i64 %4, %0
%6 = trunc i64 %5 to i32
%7 = add i32 %6, %1
%8 = icmp ugt i32 %7, %6
%9 = icmp eq i32 %1, 0
%10 = or i1 %9, %8
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_1, label LBL_6
LBL_1:
%sext = mul i64 %arg2, 4294967296
%11 = ashr exact i64 %sext, 32
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add nsw i64 %11, 32
%16 = add i64 %15, %5
%17 = and i64 %16, 4294967295
%18 = add i64 %0, 8
%19 = call i64 @FUNC(i64 %0, i64 %18, i64 %17)
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %21, label LBL_2, label LBL_6
LBL_2:
store i64 %19, i64* %arg1, align 8
%22 = and i64 %5, 4294967295
%23 = add i64 %22, %0
store i64 %23, i64* %3, align 8
%24 = load i64, i64* %13, align 8
%25 = icmp eq i64 %24, 0
store i64 %23, i64* %.reg2mem
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%26 = sub i64 %14, %0
%27 = and i64 %26, 4294967295
%28 = add i64 %27, %0
store i64 %28, i64* %13, align 8
%.pre = load i64, i64* %3, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%29 = add i64 %0, 32
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = trunc i64 %11 to i32
%33 = sub i32 %32, %31
%34 = zext i32 %33 to i64
%35 = zext i32 %31 to i64
%36 = add i64 %.reload, %35
%37 = inttoptr i64 %18 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38, i64 %36, i64 %34)
%40 = trunc i64 %39 to i32
%41 = icmp slt i32 %40, 0
%42 = icmp eq i1 %41, false
store i64 %39, i64* %rax.0.shrunk.reg2mem
br i1 %42, label LBL_5, label LBL_6
LBL_5:
%43 = load i32, i32* %30, align 4
%44 = add i32 %43, %40
store i32 %44, i32* %30, align 4
store i64 %39, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%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 %39, { 1, 0, 2 }
uselistorder i32* %30, { 1, 0, 2 }
uselistorder i64* %13, { 1, 0, 2 }
uselistorder i64 %11, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i32 %1, { 1, 0 }
uselistorder i64 %0, { 2, 0, 5, 1, 3, 4, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | stream_seek_2249 | stream_seek | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
store i64 %arg2, i64* %8, align 8
%9 = trunc i64 %arg3 to i32
%10 = icmp slt i32 %9, 0
%11 = zext i1 %10 to i32
%12 = add i64 %6, 16
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = bitcast i64* %arg1 to i32*
store i32 1, i32* %14, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
} | 0 |
BinRealVul | get_extra_meta_func_16661 | get_extra_meta_func | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%storemerge3.in.in.v = select i1 %1, i64 ptrtoint ([4 x i8]** @gv_0 to i64), i64 ptrtoint ([3 x i8*]* @gv_1 to i64)
%2 = inttoptr i64 %arg1 to i64*
%3 = select i1 %1, i32 3, i32 4
%storemerge3.in6 = inttoptr i64 %storemerge3.in.in.v to i64*
%storemerge37 = load i64, i64* %storemerge3.in6, align 8
%4 = inttoptr i64 %storemerge37 to i64*
%5 = call i32 @memcmp(i64* %2, i64* %4, i32 %3)
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i32 1, i32* %.reg2mem
store i64 ptrtoint ([4 x i8]** @gv_0 to i64), i64* %storemerge.reg2mem
br i1 %7, label LBL_2, label LBL_3
LBL_1:
%storemerge3.in.in = add i64 %14, %storemerge3.in.in.v
%storemerge3.in = inttoptr i64 %storemerge3.in.in to i64*
%storemerge3 = load i64, i64* %storemerge3.in, align 8
%8 = inttoptr i64 %storemerge3 to i64*
%9 = call i32 @memcmp(i64* %2, i64* %8, i32 %3)
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
%12 = add i32 %.reload, 1
store i32 %12, i32* %.reg2mem
store i64 %15, i64* %storemerge.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%.reload = load i32, i32* %.reg2mem
%13 = sext i32 %.reload to i64
%14 = mul i64 %13, 16
%15 = add i64 %14, ptrtoint ([4 x i8]** @gv_0 to i64)
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %storemerge.reg2mem
br i1 %19, label LBL_1, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64* %2, { 1, 0 }
uselistorder i64 %storemerge3.in.in.v, { 1, 0 }
uselistorder i1 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 ptrtoint ([4 x i8]** @gv_0 to i64), { 2, 0, 1 }
uselistorder i32 0, { 7, 0, 8, 1, 2, 3, 4, 5, 6 }
uselistorder i32 1, { 3, 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | iwgif_read_image_11792 | iwgif_read_image | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0, i64 %0, i64 9)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_17, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i32
%6 = add i64 %0, 256
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %0, 2
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = add i64 %0, 260
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = add i64 %0, 4
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
%16 = add i64 %0, 264
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = add i64 %0, 6
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = add i64 %0, 268
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = add i64 %0, 8
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = udiv i8 %25, 64
%27 = urem i8 %26, 2
%28 = zext i8 %27 to i32
%29 = add i64 %0, 272
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = load i8, i8* %24, align 1
%cond = icmp sgt i8 %31, -1
br i1 %cond, label LBL_3, label LBL_2
LBL_2:
%32 = urem i8 %31, 8
%narrow = add nuw nsw i8 %32, 1
%33 = zext i8 %narrow to i32
%34 = shl i32 1, %33
%35 = add i64 %0, 284
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = call i64 @FUNC(i64 %0, i64 %35)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %39, label LBL_17, label LBL_3
LBL_3:
%40 = add i64 %0, 276
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_5, label LBL_4
LBL_4:
%44 = add i64 %0, 280
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = sext i32 %46 to i64
%48 = add i64 %0, 288
%49 = add i64 %48, %47
%50 = inttoptr i64 %49 to i8*
store i8 0, i8* %50, align 1
br label LBL_5
LBL_5:
%51 = call i64 @FUNC(i64 %0, i64 %0, i64 1)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %53, label LBL_17, label LBL_6
LBL_6:
%54 = bitcast i64* %rdi to i8*
%55 = load i8, i8* %54, align 8
%.off = add i8 %55, -2
%56 = icmp ult i8 %.off, 10
br i1 %56, label LBL_8, label LBL_7
LBL_7:
%57 = add i64 %0, 560
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = call i64 @FUNC(i64 %59, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_8:
%61 = call i64 @FUNC(i64 %0)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %63, label LBL_17, label LBL_9
LBL_9:
%64 = load i32, i32* %17, align 4
%65 = load i32, i32* %22, align 4
%66 = sext i32 %64 to i64
%67 = sext i32 %65 to i64
%68 = mul nsw i64 %67, %66
%69 = add i64 %0, 544
%70 = inttoptr i64 %69 to i64*
store i64 %68, i64* %70, align 8
%71 = call i64 @FUNC(i64 %0)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %73, label LBL_17, label LBL_10
LBL_10:
%74 = zext i8 %55 to i64
%75 = bitcast i32* %sv_1 to i64*
%76 = call i64 @FUNC(i64* nonnull %75, i64 %74)
%77 = call i64 @FUNC(i64* nonnull %75)
%78 = add i64 %0, 552
%79 = inttoptr i64 %78 to i64*
br label LBL_11
LBL_11:
%80 = call i64 @FUNC(i64 %0, i64 %0, i64 1)
%81 = trunc i64 %80 to i32
%82 = icmp eq i32 %81, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %82, label LBL_17, label LBL_12
LBL_12:
%83 = load i8, i8* %54, align 8
%84 = icmp eq i8 %83, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %84, label LBL_17, label LBL_13
LBL_13:
%85 = zext i8 %83 to i64
%86 = call i64 @FUNC(i64 %0, i64 %0, i64 %85)
%87 = trunc i64 %86 to i32
%88 = icmp eq i32 %87, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %88, label LBL_17, label LBL_14
LBL_14:
%89 = call i64 @FUNC(i64 %0, i64* nonnull %75, i64 %0, i64 %85)
%90 = trunc i64 %89 to i32
%91 = icmp eq i32 %90, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %91, label LBL_17, label LBL_15
LBL_15:
%92 = load i32, i32* %sv_1, align 4
%93 = icmp eq i32 %92, 0
%94 = icmp eq i1 %93, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %94, label LBL_17, label LBL_16
LBL_16:
%95 = load i64, i64* %79, align 8
%96 = load i64, i64* %70, align 8
%97 = icmp ult i64 %95, %96
%98 = icmp eq i1 %97, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %98, label LBL_17, label LBL_11
LBL_17:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i8 %83, { 1, 0 }
uselistorder i64 %0, { 3, 4, 5, 6, 7, 8, 2, 9, 10, 11, 12, 13, 14, 16, 17, 15, 1, 0, 19, 18, 20, 21, 22, 23, 24, 25, 26, 27, 29, 28 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 4, 5, 1, 6, 9, 10, 8, 11, 7, 12 }
uselistorder i64 1, { 2, 1, 0, 8, 9, 3, 4, 5, 6, 10, 7 }
uselistorder i64 256, { 2, 1, 0 }
uselistorder i64 (i64)* @iw_get_ui16le, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @iwgif_read, { 3, 2, 1, 0 }
uselistorder label LBL_17, { 2, 1, 3, 4, 0, 5, 6, 7, 11, 8, 9, 10 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ff_vp56_init_range_decoder_2966 | ff_vp56_init_range_decoder | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = bitcast i64* %arg1 to i32*
store i32 255, i32* %3, align 4
%4 = add i64 %1, 4
%5 = inttoptr i64 %4 to i32*
store i32 -16, i32* %5, align 4
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i64*
store i64 %0, i64* %7, align 8
%sext = mul i64 %arg3, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = add i64 %8, %0
%10 = add i64 %1, 16
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = icmp eq i32 %2, 0
%13 = icmp slt i32 %2, 0
%14 = icmp eq i1 %13, false
%15 = icmp eq i1 %12, false
%16 = icmp eq i1 %14, %15
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %16, label LBL_1, label LBL_2
LBL_1:
%17 = call i64 @FUNC(i64 %6)
%18 = trunc i64 %17 to i32
%19 = add i64 %1, 24
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | migration_bitmap_sync_range_15831 | migration_bitmap_sync_range | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64 %0, i64 %arg1, i64 %arg2)
%2 = load i32, i32* @gv_1, align 4
%3 = sext i32 %2 to i64
%4 = add i64 %1, %3
%5 = trunc i64 %4 to i32
store i32 %5, i32* @gv_1, align 4
ret i64 %4
uselistorder i64 %4, { 1, 0 }
} | 1 |
BinRealVul | free_charger_irq_13324 | free_charger_irq | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1, i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 2, i64 %0)
%3 = call i64 @FUNC(i64 %0, i64 3, i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 4, i64 %0)
%5 = call i64 @FUNC(i64 %0, i64 5, i64 %0)
%6 = call i64 @FUNC(i64 %0, i64 6, i64 %0)
%7 = call i64 @FUNC(i64 %0, i64 7, i64 %0)
%8 = call i64 @FUNC(i64 %0, i64 8, i64 %0)
%9 = call i64 @FUNC(i64 %0, i64 9, i64 %0)
%10 = call i64 @FUNC(i64 %0, i64 10, i64 %0)
%11 = call i64 @FUNC(i64 %0, i64 11, i64 %0)
%12 = call i64 @FUNC(i64 %0, i64 12, i64 %0)
ret i64 %12
uselistorder i64 %0, { 2, 3, 0, 1, 14, 15, 12, 13, 10, 11, 8, 9, 6, 7, 4, 5, 16, 17, 18, 19, 20, 21, 23, 22 }
uselistorder i64 (i64, i64, i64)* @wm8350_free_irq, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | cnic_copy_ulp_stats_4950 | cnic_copy_ulp_stats | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sext = mul i64 %arg2, 4294967296
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = ashr exact i64 %sext, 29
%3 = add i64 %2, ptrtoint (i64* @gv_0 to i64)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = and i64 %1, 4294967295
%7 = call i64 @FUNC(i64 %5, i64 %6)
%8 = icmp eq i64 %7, 0
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = inttoptr i64 %7 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg1 to i64
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %15, %2
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%phitmp = and i64 %18, 4294967295
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%19 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967277, { 1, 0 }
uselistorder i64* @gv_0, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | aio_setup_single_vector_12254 | aio_setup_single_vector | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
store i64 %1, i64* %arg1, align 8
%2 = add i64 %0, 24
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
store i64 %4, i64* %arg1, align 8
%5 = add i64 %0, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %1 to i64*
store i64 %7, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i32*
store i32 1, i32* %10, align 4
%11 = add i64 %0, 44
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
ret i64 0
} | 1 |
BinRealVul | restore_altivec_11943 | restore_altivec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %5)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = bitcast i64* %rdi to i32*
%13 = add i64 %5, 8
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %5, 4
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
%17 = load i32, i32* %12, align 8
%18 = add i32 %17, 1
%19 = bitcast i64* %arg1 to i32*
store i32 %18, i32* %19, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.