dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | trgt_dump_10945 | trgt_dump | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
store i32 %3, i32* %arg1, align 4
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
store i32 1953654644, i32* %arg1, align 4
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %arg2 to %_IO_FILE*
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %8)
%11 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %arg2)
ret i64 0
uselistorder i64 %arg2, { 1, 0, 2 }
} | 0 |
BinRealVul | finish_13283 | finish | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
store i32 -559038737, i32* %sv_0, align 4
store i64 0, i64* %sv_1, align 8
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = call i64 @FUNC(i64 %1, i32* nonnull %sv_0, i64 4, i64* nonnull %sv_1)
%3 = icmp eq i64 %2, 4
store i64 4294967264, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = load i32*, i32** @gv_1, align 8
%5 = ptrtoint i32* %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = load i32, i32* %4, align 4
%8 = and i64 %6, 4294967295
%9 = zext i32 %7 to i64
%10 = call i64 @FUNC(i64 %9, i64 %8)
store i32* null, i32** @gv_1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | php_snmp_object_free_storage_6501 | php_snmp_object_free_storage | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %arg1, 16
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %arg1)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %arg1, { 2, 1, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | acl_to_ac_5328 | acl_to_ac | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.1.ph8.reg2mem = alloca i32
%sv_1.0.ph9.reg2mem = alloca i32*
%.reg2mem25 = alloca i32
%.pre-phi.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem23 = alloca i32
%sv_0.16.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdx = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i32* %arg1 to i64
%2 = add i64 %0, 1
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = bitcast i64* %arg3 to i8*
store i8 0, i8* %4, align 1
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i64 %1, i64 %5)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %7, label LBL_15, label LBL_1
LBL_1:
%8 = inttoptr i64 %6 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i32 %9, i32* %.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%.pr = load i32, i32* %8, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
store i64 2, i64* %rax.1.reg2mem
switch i32 %.reload, label LBL_4 [
i32 1, label LBL_5
i32 2, label LBL_15
]
LBL_4:
%12 = bitcast i64* %rdx to i8*
store i32 %.reload, i32* %.reg2mem25
store i32* %8, i32** %sv_1.0.ph9.reg2mem
store i32 0, i32* %sv_0.1.ph8.reg2mem
br label LBL_6.lr.ph
LBL_5:
store i8 -64, i8* %4, align 1
store i64 %0, i64* %rax.1.reg2mem
br label LBL_15
LBL_6:
store i32 %.reload26, i32* %.reg2mem23
store i32 %sv_0.1.ph8.reload, i32* %sv_0.0.reg2mem
br i1 %44, label LBL_9, label LBL_7
LBL_7:
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%13 = add i32 %sv_0.16.reload, 1
%14 = icmp eq i32 %13, 0
%15 = icmp eq i32 %sv_0.16.reload, 0
%16 = or i1 %15, %14
store i32 %13, i32* %sv_0.16.reg2mem
br i1 %16, label LBL_8, label LBL_6
LBL_8:
%17 = load i8, i8* %3, align 1
%18 = udiv i8 %17, 16
store i8 %18, i8* %3, align 1
%19 = ptrtoint i32* %sv_1.0.ph9.reload to i64
%20 = add i64 %19, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%.tr = trunc i32 %22 to i8
%23 = mul i8 %.tr, 16
%24 = or i8 %23, %18
store i8 %24, i8* %3, align 1
%25 = load i8, i8* %12, align 8
%26 = add i8 %25, 64
store i8 %26, i8* %4, align 1
%.pre19 = load i32, i32* %sv_1.0.ph9.reload, align 4
store i32 %.pre19, i32* %.reg2mem23
store i32 %13, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload24 = load i32, i32* %.reg2mem23
%27 = icmp eq i32 %.reload24, 4
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_9.LBL_12_crit_edge, label LBL_11
LBL_10:
%.pre20 = ptrtoint i32* %sv_1.0.ph9.reload to i64
store i64 %.pre20, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_11:
%29 = load i8, i8* %12, align 8
%30 = ptrtoint i32* %sv_1.0.ph9.reload to i64
%31 = add i64 %30, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = trunc i32 %33 to i8
%35 = urem i8 %34, 32
%36 = or i8 %35, %29
store i8 %36, i8* %4, align 1
store i64 %30, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_12:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%37 = add i64 %.pre-phi.reload, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 %39, i64* %rax.1.reg2mem
br i1 %41, label LBL_12.LBL_6.lr.ph_crit_edge, label LBL_15
LBL_13:
%42 = inttoptr i64 %39 to i32*
%.pre = load i32, i32* %42, align 4
store i32 %.pre, i32* %.reg2mem25
store i32* %42, i32** %sv_1.0.ph9.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.ph8.reg2mem
br label LBL_6.lr.ph
LBL_14:
%sv_0.1.ph8.reload = load i32, i32* %sv_0.1.ph8.reg2mem
%sv_1.0.ph9.reload = load i32*, i32** %sv_1.0.ph9.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%43 = icmp eq i32 %.reload26, 3
%44 = icmp eq i1 %43, false
store i32 %sv_0.1.ph8.reload, i32* %sv_0.16.reg2mem
br label LBL_6
LBL_15:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32* %sv_1.0.ph9.reload, { 0, 2, 3, 1 }
uselistorder i64 %39, { 2, 0, 1 }
uselistorder i8 %18, { 1, 0 }
uselistorder i32 %sv_0.16.reload, { 1, 0 }
uselistorder i8* %4, { 2, 1, 0, 3 }
uselistorder i8* %3, { 0, 2, 1, 3 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 1, 0 }
uselistorder i32* %.reg2mem23, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder label LBL_15, { 0, 3, 1, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | check_arg_pair_ok_9625 | check_arg_pair_ok | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_6, label LBL_2
LBL_2:
%16 = add i64 %7, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %2, i64 %19)
%21 = trunc i64 %20 to i8
%22 = icmp eq i8 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_3
LBL_3:
%24 = add i64 %7, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = load i32, i32* %17, align 4
%28 = zext i32 %26 to i64
%29 = zext i32 %27 to i64
%30 = call i64 @FUNC(i64 %29, i64 %28)
%31 = trunc i64 %30 to i8
%32 = icmp eq i8 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_4
LBL_4:
%34 = add i64 %7, 12
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = load i32, i32* %25, align 4
%38 = zext i32 %36 to i64
%39 = zext i32 %37 to i64
%40 = call i64 @FUNC(i64 %39, i64 %38)
%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:
%44 = load i32, i32* %9, align 4
%45 = load i32, i32* %35, align 4
%46 = zext i32 %44 to i64
%47 = zext i32 %45 to i64
%48 = call i64 @FUNC(i64 %47, i64 %46)
%49 = trunc i64 %48 to i8
%50 = icmp eq i8 %49, 0
%spec.select = zext i1 %50 to i64
ret i64 %spec.select
LBL_6:
ret i64 0
uselistorder i64 %2, { 1, 0 }
uselistorder i64 (i64, i64)* @check_args_pair_invalid, { 3, 2, 1, 0 }
uselistorder label LBL_6, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | temporal_filter_predictors_mb_c_18717 | temporal_filter_predictors_mb_c | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i32 %arg5, i32 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64* %arg10, i64* %arg11, i64 %arg12, i64 %arg13) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg11 to i64
%3 = ptrtoint i64* %arg10 to i64
%4 = ptrtoint i64* %arg4 to i64
%5 = ptrtoint i64* %arg3 to i64
%6 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sext9 = mul i64 %arg8, 4294967296
%7 = ashr exact i64 %sext9, 32
store i64 %7, i64* %sv_0, align 8
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = icmp eq i32 %arg6, 8
%11 = icmp eq i1 %10, false
%12 = add i32 %arg5, 1
%13 = ashr i32 %12, 1
%storemerge = select i1 %11, i32 %arg5, i32 %13
%14 = bitcast i64* %sv_0 to i32*
%15 = call i64 @FUNC(i64 %6, i32 %arg5, i64 %3, i64 16, i32* nonnull %14, i64 %2)
%16 = add i64 %3, 256
%17 = zext i32 %arg6 to i64
%18 = call i64 @FUNC(i64 %5, i32 %storemerge, i64 %16, i64 %17, i32* nonnull %14, i64 %2)
%19 = add i64 %3, 512
%20 = call i64 @FUNC(i64 %4, i32 %storemerge, i64 %19, i64 %17, i32* nonnull %14, i64 %2)
ret i64 %20
uselistorder i32 %storemerge, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 (i64, i32, i64, i64, i32*, i64)* @vp9_build_inter_predictor, { 2, 1, 0 }
uselistorder i32 %arg5, { 2, 1, 0 }
} | 1 |
BinRealVul | exif_iif_add_tag_12314 | exif_iif_add_tag | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i32 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i32* %arg1 to i64
%2 = trunc i64 %arg2 to i32
%3 = trunc i64 %arg5 to i32
%4 = and i64 %arg6, 4294967295
%5 = call i64 @FUNC(i64 %1, i32 %2, i64 %0, i32 %arg4, i32 %3, i64 %4)
ret i64 %5
} | 1 |
BinRealVul | SFS_ObjectMemberAccess_5969 | SFS_ObjectMemberAccess | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 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 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %6, i64 4202512)
%9 = call i64 @FUNC(i64 %6)
store i64 %9, 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 %6, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | __refill_cfs_bandwidth_runtime_12742 | __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
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %10, %4
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = add i64 %0, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %16, 1
store i64 %17, i64* %15, align 8
br label LBL_2
LBL_2:
ret i64 %0
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xhci_running_15293 | xhci_running | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 1, i64* %storemerge.reg2mem
br i1 %10, label LBL_2, label LBL_3
LBL_2:
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | set_6217 | set | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = load i32, i32* @gv_0, align 4
%2 = icmp ugt i32 %1, %0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%4 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%5 = load i64, i64* @gv_4, align 8
%6 = udiv i64 %arg1, 8
%7 = urem i64 %6, 536870912
%8 = add i64 %5, %7
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = urem i32 %0, 8
%12 = shl i32 1, %11
%13 = trunc i32 %12 to i8
%14 = or i8 %10, %13
store i8 %14, i8* %9, align 1
ret i64 %8
} | 0 |
BinRealVul | parse_uint64_15623 | parse_uint64 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i64 @strtoull(i8* %3, i8** nonnull %sv_0, i32 0)
%5 = inttoptr i64 %2 to i64*
store i64 %4, i64* %5, align 8
%6 = load i8*, i8** %sv_0, align 8
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = ptrtoint i8* %6 to i64
%11 = icmp eq i64 %10, %arg3
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i64 0, i64 4294967274
ret i64 %spec.select
LBL_2:
ret i64 4294967274
} | 1 |
BinRealVul | blur_2734 | blur | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge13.lcssa.reg2mem = alloca i64
%indvars.iv29.reg2mem = alloca i64
%indvars.iv.next30.pre-phi.reg2mem = alloca i64
%storemerge15.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i32
%sv_1.3.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv33.reg2mem = alloca i64
%.reg2mem38 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext, 32
%sext6 = mul i64 %arg4, 4294967296
%5 = ashr exact i64 %sext6, 32
%6 = trunc i64 %4 to i32
%7 = and i64 %5, 4294967295
%8 = trunc i64 %5 to i32
%9 = add i64 %3, 8
%10 = add i64 %3, 24
%11 = bitcast i64* %rdi to i32*
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 4
%14 = inttoptr i64 %13 to i32*
%15 = bitcast i64* %rsi to i32*
%16 = add i64 %3, 4
%17 = inttoptr i64 %16 to i32*
%18 = trunc i64 %1 to i32
%19 = trunc i64 %2 to i32
store i32 %19, i32* %.reg2mem
store i32 %18, i32* %.reg2mem38
store i64 0, i64* %indvars.iv33.reg2mem
br label LBL_1
LBL_1:
%indvars.iv33.reload = load i64, i64* %indvars.iv33.reg2mem
%20 = icmp eq i64 %indvars.iv33.reload, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %21, false
%23 = zext i1 %21 to i32
%24 = mul i64 %indvars.iv33.reload, 4
%25 = add i64 %9, %24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = mul i64 %indvars.iv33.reload, 8
%29 = add i64 %10, %28
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = select i1 %20, i64 4294967296, i64 4294967297
%33 = load i32, i32* %14, align 4
%34 = zext i32 %33 to i64
%35 = add nuw nsw i64 %32, %34
%36 = and i64 %35, 4294967295
%37 = trunc i64 %35 to i32
%38 = ashr i32 %37, %23
%39 = zext i32 %38 to i64
%rdx.1 = select i1 %22, i64 %36, i64 %39
%40 = trunc i64 %rdx.1 to i32
%41 = load i32, i32* %17, align 4
%42 = icmp sgt i32 %40, 0
store i64 0, i64* %storemerge13.lcssa.reg2mem
br i1 %42, label LBL_2, label LBL_18
LBL_2:
%.reload39 = load i32, i32* %.reg2mem38
%.reload = load i32, i32* %.reg2mem
%43 = ashr i32 %6, %23
%44 = zext i32 %43 to i64
%storemerge = select i1 %22, i64 %4, i64 %44
%sext7 = mul i64 %storemerge, 4294967296
%45 = ashr exact i64 %sext7, 32
%46 = ashr i32 %8, %23
%47 = zext i32 %46 to i64
%storemerge8 = select i1 %22, i64 %7, i64 %47
%sext9 = mul i64 %storemerge8, 4294967296
%48 = ashr exact i64 %sext9, 32
%49 = trunc i64 %storemerge8 to i32
%50 = mul i32 %27, %49
%51 = sext i32 %50 to i64
%52 = add i64 %45, %31
%53 = add i64 %52, %51
%54 = zext i32 %.reload39 to i64
%55 = add nuw nsw i64 %32, %54
%56 = and i64 %55, 4294967295
%57 = trunc i64 %55 to i32
%58 = ashr i32 %57, %23
%59 = zext i32 %58 to i64
%rdx.0 = select i1 %22, i64 %56, i64 %59
%60 = trunc i64 %rdx.0 to i32
%61 = zext i32 %.reload to i64
%62 = add nuw nsw i64 %32, %61
%63 = zext i32 %41 to i64
%64 = add nuw nsw i64 %32, %63
%65 = trunc i64 %64 to i32
%66 = ashr i32 %65, %23
%67 = zext i32 %66 to i64
%rdx.3 = select i1 %22, i64 %64, i64 %67
%68 = trunc i64 %62 to i32
%69 = ashr i32 %68, %23
%70 = zext i32 %69 to i64
%rdx.2 = select i1 %22, i64 %62, i64 %70
%71 = icmp sgt i32 %60, 0
%72 = trunc i64 %45 to i32
%73 = icmp eq i32 %72, 0
%74 = trunc i64 %48 to i32
%75 = icmp eq i32 %74, 0
%76 = add nsw i64 %45, %rdx.0
%77 = and i64 %76, 4294967295
%sext23 = mul i64 %rdx.2, 4294967296
%78 = ashr exact i64 %sext23, 32
%79 = icmp sgt i64 %78, %77
%80 = add nsw i64 %rdx.1, %48
%81 = and i64 %80, 4294967295
%sext24 = mul i64 %rdx.3, 4294967296
%82 = ashr exact i64 %sext24, 32
%83 = icmp sgt i64 %82, %81
%84 = mul i32 %27, %40
store i64 0, i64* %indvars.iv29.reg2mem
br label LBL_15
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %73, label LBL_5, label LBL_4
LBL_4:
%85 = trunc i64 %indvars.iv.reload to i32
%86 = add i32 %85, 1
%87 = udiv i32 65536, %86
%88 = load i8, i8* %143, align 1
%89 = zext i8 %88 to i32
%90 = mul nuw nsw i32 %87, %89
store i32 %87, i32* %sv_1.0.reg2mem
store i32 %90, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %75, label LBL_7, label LBL_6
LBL_6:
%91 = udiv i32 65536, %150
%92 = trunc i64 %indvars.iv.reload to i32
%93 = sub i32 %92, %27
%94 = sext i32 %93 to i64
%95 = add i64 %53, %94
%96 = inttoptr i64 %95 to i8*
%97 = load i8, i8* %96, align 1
%98 = zext i8 %97 to i32
%99 = mul nuw nsw i32 %91, %98
%100 = add nsw i32 %99, %sv_0.0.reload
%101 = add nuw nsw i32 %91, %sv_1.0.reload
store i32 %101, i32* %sv_1.1.reg2mem
store i32 %100, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %79, label LBL_8, label LBL_9
LBL_8:
%102 = trunc i64 %indvars.iv.reload to i32
%103 = sub i32 %60, %102
%104 = udiv i32 65536, %103
%105 = load i8, i8* %148, align 1
%106 = zext i8 %105 to i32
%107 = mul nuw nsw i32 %104, %106
%108 = add nsw i32 %107, %sv_0.1.reload
%109 = add nsw i32 %104, %sv_1.1.reload
store i32 %109, i32* %sv_1.2.reg2mem
store i32 %108, i32* %sv_0.2.reg2mem
br label LBL_9
LBL_9:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
store i32 %sv_1.2.reload, i32* %sv_1.3.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.3.reg2mem
br i1 %83, label LBL_10, label LBL_11
LBL_10:
%110 = udiv i32 65536, %149
%111 = trunc i64 %indvars.iv.reload to i32
%112 = add i32 %84, %111
%113 = sext i32 %112 to i64
%114 = add i64 %53, %113
%115 = inttoptr i64 %114 to i8*
%116 = load i8, i8* %115, align 1
%117 = zext i8 %116 to i32
%118 = mul nuw nsw i32 %110, %117
%119 = add i32 %118, %sv_0.2.reload
%120 = add nsw i32 %110, %sv_1.2.reload
store i32 %120, i32* %sv_1.3.reg2mem
store i32 %119, i32* %sv_0.3.reg2mem
br label LBL_11
LBL_11:
%sv_1.3.reload = load i32, i32* %sv_1.3.reg2mem
%121 = icmp eq i32 %sv_1.3.reload, 0
store i64 0, i64* %storemerge15.reg2mem
br i1 %121, label LBL_13, label LBL_12
LBL_12:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%122 = ashr i32 %sv_1.3.reload, 1
%123 = add i32 %sv_0.3.reload, %122
%124 = ashr i32 %123, 31
%125 = zext i32 %123 to i64
%126 = zext i32 %124 to i64
%127 = mul i64 %126, 4294967296
%128 = or i64 %127, %125
%129 = zext i32 %sv_1.3.reload to i64
%130 = sdiv i64 %128, %129
%131 = and i64 %130, 4294967295
store i64 %131, i64* %storemerge15.reg2mem
br label LBL_13
LBL_13:
%storemerge15.reload = load i64, i64* %storemerge15.reg2mem
%132 = trunc i64 %indvars.iv.reload to i32
%133 = add i32 %139, %132
%134 = sext i32 %133 to i64
%135 = add i64 %53, %134
%136 = trunc i64 %storemerge15.reload to i8
%137 = inttoptr i64 %135 to i8*
store i8 %136, i8* %137, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %rdx.0
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %144, i64* %indvars.iv.next30.pre-phi.reg2mem
br i1 %exitcond, label LBL_14, label LBL_3
LBL_14:
%indvars.iv.next30.pre-phi.reload = load i64, i64* %indvars.iv.next30.pre-phi.reg2mem
%exitcond32 = icmp eq i64 %indvars.iv.next30.pre-phi.reload, %rdx.1
store i64 %indvars.iv.next30.pre-phi.reload, i64* %indvars.iv29.reg2mem
store i64 %rdx.1, i64* %storemerge13.lcssa.reg2mem
br i1 %exitcond32, label LBL_18, label LBL_15
LBL_15:
%indvars.iv29.reload = load i64, i64* %indvars.iv29.reg2mem
br i1 %71, label LBL_3.lr.ph, label LBL_15.LBL_14_crit_edge
LBL_16:
%.pre37 = add nuw nsw i64 %indvars.iv29.reload, 1
store i64 %.pre37, i64* %indvars.iv.next30.pre-phi.reg2mem
br label LBL_14
LBL_17:
%138 = trunc i64 %indvars.iv29.reload to i32
%139 = mul i32 %27, %138
%140 = add i32 %139, -1
%141 = sext i32 %140 to i64
%142 = add i64 %53, %141
%143 = inttoptr i64 %142 to i8*
%144 = add nuw nsw i64 %indvars.iv29.reload, 1
%145 = add i32 %139, %60
%146 = sext i32 %145 to i64
%147 = add i64 %53, %146
%148 = inttoptr i64 %147 to i8*
%149 = sub i32 %40, %138
%150 = trunc i64 %144 to i32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_18:
%indvars.iv.next34 = add nuw nsw i64 %indvars.iv33.reload, 1
%exitcond35 = icmp eq i64 %indvars.iv.next34, 3
br i1 %exitcond35, label LBL_20, label LBL_18.LBL_1_crit_edge
LBL_19:
%.pre = load i32, i32* %11, align 8
%.pre36 = load i32, i32* %15, align 8
store i32 %.pre36, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem38
store i64 %indvars.iv.next34, i64* %indvars.iv33.reg2mem
br label LBL_1
LBL_20:
%storemerge13.lcssa.reload = load i64, i64* %storemerge13.lcssa.reg2mem
ret i64 %storemerge13.lcssa.reload
uselistorder i64 %144, { 1, 0 }
uselistorder i32 %139, { 1, 2, 0 }
uselistorder i32 %138, { 1, 0 }
uselistorder i64 %indvars.iv29.reload, { 1, 0, 2 }
uselistorder i32 %sv_1.3.reload, { 1, 0, 2 }
uselistorder i32 %110, { 1, 0 }
uselistorder i32 %sv_1.2.reload, { 1, 0 }
uselistorder i32 %sv_0.2.reload, { 1, 0 }
uselistorder i32 %104, { 1, 0 }
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %91, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 1, 2, 4, 3, 5 }
uselistorder i32 %60, { 0, 2, 1 }
uselistorder i64 %rdx.0, { 1, 0, 2 }
uselistorder i64 %53, { 3, 4, 1, 0, 2 }
uselistorder i64 %storemerge8, { 1, 0 }
uselistorder i64 %45, { 0, 2, 1 }
uselistorder i32 %40, { 2, 0, 1 }
uselistorder i64 %rdx.1, { 0, 2, 1, 3 }
uselistorder i64 %32, { 0, 2, 3, 1 }
uselistorder i32 %27, { 0, 3, 1, 2 }
uselistorder i32 %23, { 1, 0, 3, 4, 5, 2 }
uselistorder i1 %22, { 1, 0, 3, 4, 5, 2 }
uselistorder i1 %21, { 1, 0 }
uselistorder i64 %indvars.iv33.reload, { 0, 3, 2, 1 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem38, { 1, 0, 2 }
uselistorder i64* %indvars.iv33.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.3.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge15.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.next30.pre-phi.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1, 4, 3, 5 }
uselistorder i64 4294967296, { 0, 1, 2, 3, 4, 7, 5, 6 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qvirtio_pci_config_readl_17110 | qvirtio_pci_config_readl | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %1, i64* %sv_0.0.in.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %sv_0.0.in.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%7 = and i64 %sv_0.0.in.reload, 4294967295
ret i64 %7
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | igb_reset_q_vector_18331 | igb_reset_q_vector | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 29
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %6 to i32*
%12 = load i32, i32* %11, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = add i64 %14, %10
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
br label LBL_2
LBL_2:
%17 = add i64 %4, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = add i64 %0, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %19 to i32*
%25 = load i32, i32* %24, align 4
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = add i64 %27, %23
%29 = inttoptr i64 %28 to i64*
store i64 0, i64* %29, align 8
br label LBL_4
LBL_4:
%30 = add i64 %4, 16
%31 = call i64 @FUNC(i64 %30)
ret i64 %31
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64 8, { 0, 2, 3, 1, 4 }
} | 1 |
BinRealVul | fli_read_brun_11871 | fli_read_brun | define i64 @FUNC(i64 %arg1, i16* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i16
%sv_0.011.reg2mem = alloca i16
%storemerge1012.reg2mem = alloca i32
%sv_0.213.reg2mem = alloca i16
%storemerge814.reg2mem = alloca i32
%storemerge15.reg2mem = alloca i32
%.reg2mem = alloca i16
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i16* %arg2 to i64
%3 = add i64 %2, 2
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = icmp eq i16 %5, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %6, label LBL_12, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i16
%8 = bitcast i64* %rsi to i16*
store i16 %7, i16* %.reg2mem
store i32 0, i32* %storemerge15.reg2mem
br label LBL_2
LBL_2:
%storemerge15.reload = load i32, i32* %storemerge15.reg2mem
%.reload = load i16, i16* %.reg2mem
%9 = call i64 @FUNC(i64 %arg1)
%10 = trunc i64 %9 to i32
%11 = urem i32 %10, 256
%12 = urem i32 %storemerge15.reload, 65536
%13 = zext i16 %.reload to i32
%14 = mul nuw i32 %12, %13
%15 = sext i32 %14 to i64
%16 = add i64 %15, %arg3
%17 = icmp eq i32 %11, 0
%18 = icmp eq i1 %17, false
store i32 %11, i32* %storemerge814.reg2mem
store i16 0, i16* %sv_0.213.reg2mem
br i1 %18, label LBL_3, label LBL_9
LBL_3:
%sv_0.213.reload = load i16, i16* %sv_0.213.reg2mem
%storemerge814.reload = load i32, i32* %storemerge814.reg2mem
%19 = call i64 @FUNC(i64 %arg1)
%20 = trunc i64 %19 to i8
%21 = icmp sgt i8 %20, -1
br i1 %21, label LBL_7, label LBL_4
LBL_4:
%22 = trunc i64 %19 to i16
%sext6 = mul i16 %22, 256
%23 = icmp eq i16 %sext6, 0
%24 = icmp eq i1 %23, false
store i16 %sv_0.213.reload, i16* %sv_0.1.reg2mem
br i1 %24, label LBL_5, label LBL_8
LBL_5:
%25 = ashr exact i16 %sext6, 8
%26 = sub nsw i16 0, %25
%27 = sext i16 %26 to i32
store i32 %27, i32* %storemerge1012.reg2mem
store i16 %sv_0.213.reload, i16* %sv_0.011.reg2mem
br label LBL_6
LBL_6:
%sv_0.011.reload = load i16, i16* %sv_0.011.reg2mem
%storemerge1012.reload = load i32, i32* %storemerge1012.reg2mem
%28 = add i16 %sv_0.011.reload, 1
%29 = zext i16 %sv_0.011.reload to i64
%30 = add i64 %16, %29
%31 = call i64 @FUNC(i64 %arg1)
%32 = trunc i64 %31 to i8
%33 = inttoptr i64 %30 to i8*
store i8 %32, i8* %33, align 1
%34 = mul i32 %storemerge1012.reload, 65536
%sext9 = add i32 %34, -65536
%35 = ashr exact i32 %sext9, 16
%36 = trunc i32 %35 to i16
%37 = icmp eq i16 %36, 0
%38 = icmp eq i1 %37, false
store i32 %35, i32* %storemerge1012.reg2mem
store i16 %28, i16* %sv_0.011.reg2mem
store i16 %28, i16* %sv_0.1.reg2mem
br i1 %38, label LBL_6, label LBL_8
LBL_7:
%39 = trunc i64 %19 to i32
%40 = urem i32 %39, 256
%41 = call i64 @FUNC(i64 %arg1)
%42 = trunc i64 %41 to i32
%43 = zext i16 %sv_0.213.reload to i64
%44 = add i64 %16, %43
%45 = urem i32 %42, 256
%46 = inttoptr i64 %44 to i64*
%47 = call i64* @memset(i64* %46, i32 %45, i32 %40)
%48 = trunc i32 %40 to i16
%49 = add i16 %sv_0.213.reload, %48
store i16 %49, i16* %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%sv_0.1.reload = load i16, i16* %sv_0.1.reg2mem
%50 = mul i32 %storemerge814.reload, 65536
%sext7 = add i32 %50, -65536
%51 = ashr exact i32 %sext7, 16
%52 = trunc i32 %51 to i16
%53 = icmp eq i16 %52, 0
%54 = icmp eq i1 %53, false
store i32 %51, i32* %storemerge814.reg2mem
store i16 %sv_0.1.reload, i16* %sv_0.213.reg2mem
br i1 %54, label LBL_3, label LBL_9
LBL_9:
%55 = mul i32 %storemerge15.reload, 65536
%sext = add i32 %55, 65536
%56 = ashr exact i32 %sext, 16
%57 = load i16, i16* %4, align 2
%58 = trunc i32 %56 to i16
%59 = icmp ugt i16 %57, %58
br i1 %59, label LBL_9.LBL_2_crit_edge, label LBL_11
LBL_10:
%.pre = load i16, i16* %8, align 8
store i16 %.pre, i16* %.reg2mem
store i32 %56, i32* %storemerge15.reg2mem
br label LBL_2
LBL_11:
%phitmp = zext i16 %57 to i64
store i64 %phitmp, i64* %.lcssa.reg2mem
br label LBL_12
LBL_12:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i16 %sv_0.011.reload, { 1, 0 }
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i16 %sv_0.213.reload, { 3, 2, 1, 0 }
uselistorder i32 %storemerge15.reload, { 1, 0 }
uselistorder i16* %4, { 1, 0 }
uselistorder i16* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge15.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge814.reg2mem, { 2, 0, 1 }
uselistorder i16* %sv_0.213.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1012.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_0.1.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 16, { 2, 1, 0 }
uselistorder i32 -65536, { 1, 0 }
uselistorder i32 65536, { 4, 0, 1, 2, 3 }
uselistorder i64 (i64)* @fli_read_char, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i16 0, { 5, 4, 3, 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | xfrm_user_rcv_msg_6113 | xfrm_user_rcv_msg | 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
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp slt i32 %4, 11
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_9
LBL_1:
%6 = call i64 @FUNC(i64 %2, i64 1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_9
LBL_2:
%10 = add i32 %4, -1
%11 = sext i32 %10 to i64
%12 = mul nsw i64 %11, 24
%13 = icmp ne i32 %10, 1
%14 = icmp eq i32 %10, 2
%15 = icmp eq i1 %14, false
%or.cond = icmp eq i1 %13, %15
%.pre = ptrtoint i32* %arg2 to i64
br i1 %or.cond, label LBL_6, label LBL_3
LBL_3:
%16 = add i64 %.pre, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = urem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_6, label LBL_4
LBL_4:
%21 = add i64 %12, add (i64 ptrtoint (i64* @gv_0 to i64), i64 8)
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %25, label LBL_5, label LBL_9
LBL_5:
store i64 %23, i64* %sv_1, align 8
%26 = inttoptr i64 %3 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 %2, i64 %.pre, i64* nonnull %sv_1)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%29 = load i64, i64* @gv_1, align 8
%30 = mul i64 %11, 4
%31 = add i64 %30, ptrtoint (i32** @gv_2 to i64)
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = call i64 @FUNC(i64 %.pre, i32 %33, i64* nonnull %sv_0, i64 5, i64 %29)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%38 = and i64 %34, 4294967295
store i64 %38, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%39 = add i64 %12, ptrtoint (i64* @gv_0 to i64)
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
%. = select i1 %43, i64 %2, i64 4294967274
store i64 %., i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.pre, { 0, 2, 1 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 5, 2, 3, 4 }
uselistorder i64 ptrtoint (i64* @gv_0 to i64), { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 4 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967274, { 2, 0, 1 }
uselistorder label LBL_9, { 0, 4, 5, 1, 2, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | gen_op_fpexception_im_2403 | gen_op_fpexception_im | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%2 = zext i32 %1 to i64
%3 = call i64 @FUNC(i64 %2, i64 %2, i64 65535)
%4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5, i64 %5, i32 %0)
%7 = call i64 @FUNC(i64 1)
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 4198730, i64 %8)
%10 = call i64 @FUNC(i64 %8)
ret i64 %10
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
} | 0 |
BinRealVul | mo_links_3776 | mo_links | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%r8.24.reg2mem = alloca i64
%r9.25.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i8*
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 %0, i64* %sv_3, align 8
%2 = icmp slt i32 %arg3, 3
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i8*
%7 = call i32 @strlen(i8* %6)
%8 = icmp ult i32 %7, 65
br i1 %8, label LBL_2, label LBL_14
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = load i64, i64* %sv_3, align 8
%11 = zext i32 %arg3 to i64
%12 = call i64 @FUNC(i64 %9, i64 %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 1, i64 %11, i64 %10)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 1
br i1 %14, label LBL_3, label LBL_14
LBL_3:
%15 = load i64, i64* %sv_3, align 8
%16 = add i64 %15, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = inttoptr i64 %18 to i8*
store i8* %19, i8** %sv_0.0.reg2mem
store i64 %11, i64* %r8.0.reg2mem
store i64 %10, i64* %r9.0.reg2mem
br label LBL_6
LBL_4:
%20 = icmp eq i32 %arg3, 2
%21 = icmp eq i1 %20, false
store i8* bitcast (i8** @gv_1 to i8*), i8** %sv_0.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %0, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%26 = load i8, i8* %sv_0.0.reload, align 1
%27 = icmp eq i8 %26, 0
store i8* %sv_0.0.reload, i8** %sv_0.1.reg2mem
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = ptrtoint i8* %sv_0.0.reload to i64
%29 = call i64 @FUNC(i64* nonnull %sv_2, i64 %28, i64 128)
%30 = call i64 @FUNC(i64 %29)
%31 = inttoptr i64 %30 to i8*
store i8* %31, i8** %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%32 = ptrtoint i64* %sv_3 to i64
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
store i64 %1, i64* %sv_1, align 8
%33 = load i32, i32* @gv_2, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34, i64* nonnull %sv_1)
%36 = ptrtoint i8* %sv_0.1.reload to i64
%37 = add i64 %32, -16
%38 = inttoptr i64 %37 to i64*
store i64 ptrtoint (i64* @gv_3 to i64), i64* %storemerge26.reg2mem
store i64 %r9.0.reload, i64* %r9.25.reg2mem
store i64 %r8.0.reload, i64* %r8.24.reg2mem
br label LBL_9
LBL_9:
%storemerge26.reload = load i64, i64* %storemerge26.reg2mem
%39 = inttoptr i64 %storemerge26.reload to i64*
%40 = load i64, i64* %39, align 8
%41 = load i8, i8* %sv_0.1.reload, align 1
%42 = icmp eq i8 %41, 0
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%r8.24.reload = load i64, i64* %r8.24.reg2mem
%r9.25.reload = load i64, i64* %r9.25.reg2mem
%43 = call i64 @FUNC(i64 %36, i64 %40)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
store i64 %r8.24.reload, i64* %r8.1.reg2mem
store i64 %r9.25.reload, i64* %r9.1.reg2mem
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%46 = icmp eq i64 %40, -76
%47 = add i64 %40, 76
%storemerge3 = select i1 %46, i64 ptrtoint ([19 x i8]* @gv_4 to i64), i64 %47
%48 = add i64 %40, 72
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i64 %40, 64
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 200)
store i64 %storemerge3, i64* %38, align 8
%55 = zext i32 %50 to i64
%56 = call i64 @FUNC(i64 %1, i64 200, i64 %54, i64 %40, i64 %53, i64 %55)
store i64 %53, i64* %r8.1.reg2mem
store i64 %55, i64* %r9.1.reg2mem
br label LBL_12
LBL_12:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%57 = add i64 %storemerge26.reload, 8
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = icmp eq i64 %59, 0
%61 = icmp eq i1 %60, false
store i64 %59, i64* %storemerge26.reg2mem
store i64 %r9.1.reload, i64* %r9.25.reg2mem
store i64 %r8.1.reload, i64* %r8.24.reg2mem
br i1 %61, label LBL_9, label LBL_13
LBL_13:
%62 = call i64 @FUNC(i64 %36)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
%storemerge = select i1 %65, i64 ptrtoint (i64* @gv_5 to i64), i64 %36
%66 = call i64 @FUNC(i64 201)
%67 = call i64 @FUNC(i64 %1, i64 201, i64 %66, i64 %storemerge, i64 %r8.1.reload, i64 %r9.1.reload)
br label LBL_14
LBL_14:
ret i64 0
uselistorder i64 %40, { 2, 1, 0, 4, 3, 5 }
uselistorder i64 %36, { 1, 0, 2 }
uselistorder i8* %sv_0.1.reload, { 1, 0 }
uselistorder i8* %sv_0.0.reload, { 1, 0, 2 }
uselistorder i64* %sv_3, { 3, 0, 1, 2 }
uselistorder i64 %1, { 1, 2, 3, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge26.reg2mem, { 1, 0, 2 }
uselistorder i64* %r9.25.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.24.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.1.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @sendto_one_numeric, { 1, 0 }
uselistorder i64 (i64)* @form_str, { 1, 0 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i8 0, { 1, 2, 3, 4, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 %arg3, { 1, 0, 2 }
uselistorder label LBL_14, { 2, 0, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | kbd_put_keycode_2319 | kbd_put_keycode | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC()
%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_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
store i64 %5, i64* %rax.1.reg2mem
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%8 = icmp eq i64 %0, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %8, label LBL_5, label LBL_3
LBL_3:
%9 = inttoptr i64 %0 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
store i64 %14, i64* %rax.1.reg2mem
br label LBL_5
LBL_5:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | i8042_stop_12440 | i8042_stop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
store i8 0, i8* %1, align 1
%2 = call i64 @FUNC(i64 1)
%3 = call i64 @FUNC(i64 2)
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0 }
uselistorder i64 (i64)* @synchronize_irq, { 1, 0 }
} | 1 |
BinRealVul | tcmu_get_path_8433 | tcmu_get_path | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i8*
%3 = call i8* @strchr(i8* %2, i32 47)
%4 = icmp eq i8* %3, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = ptrtoint i8* %3 to i64
%8 = add i64 %7, 1
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %3, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | parse_report_12681 | parse_report | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i32
%r8.1.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rdx.0.be.reg2mem = alloca i64
%rcx.0.be.reg2mem = alloca i64
%rdx.156.reg2mem = alloca i64
%rcx.147.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%r8.0.ph.reg2mem = alloca i64
%rdi.0.ph.reg2mem = alloca i64
%rdx.0.ph.reg2mem = alloca i64
%rcx.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32*, align 8
store i32* null, i32** %sv_3, align 8
store i64 0, i64* %sv_2, align 8
store i32 0, i32* %sv_1, align 4
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = bitcast i32** %sv_3 to i64*
%7 = ptrtoint i64* %sv_2 to i64
%8 = ptrtoint i32* %sv_1 to i64
%9 = add i64 %3, 16
%10 = inttoptr i64 %9 to i64*
%11 = add i64 %3, 24
%12 = inttoptr i64 %11 to i64*
store i64 %3, i64* %rdi.0.ph.reg2mem
br label LBL_1
LBL_1:
%r8.0.ph.reload = load i64, i64* %r8.0.ph.reg2mem
%rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem
%rdx.0.ph.reload = load i64, i64* %rdx.0.ph.reg2mem
%rcx.0.ph.reload = load i64, i64* %rcx.0.ph.reg2mem
store i64 %rcx.0.ph.reload, i64* %rcx.0.reg2mem
store i64 %rdx.0.ph.reload, i64* %rdx.0.reg2mem
store i64 %rdi.0.ph.reload, i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%13 = load i64, i64* %5, align 8
%14 = icmp eq i64 %13, 0
store i64 %rcx.0.reload, i64* %rcx.147.reg2mem
store i64 %rdx.0.reload, i64* %rdx.156.reg2mem
br i1 %14, label LBL_5, label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%15 = call i64 @FUNC(i64* nonnull %6, i64 %rdi.0.reload, i64* nonnull %sv_2, i64 %13)
%16 = trunc i64 %15 to i32
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i32 %16, -1
%or.cond = or i1 %19, %18
store i32 -1, i32* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_4, label LBL_22
LBL_4:
%20 = icmp eq i1 %19, false
store i64 %13, i64* %rcx.147.reg2mem
store i64 %7, i64* %rdx.156.reg2mem
br i1 %20, label LBL_9, label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %3)
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
store i32 %22, i32* %sv_0.1.reg2mem
br i1 %24, label LBL_6, label LBL_22
LBL_6:
%rdx.156.reload = load i64, i64* %rdx.156.reg2mem
%rcx.147.reload = load i64, i64* %rcx.147.reg2mem
%25 = icmp eq i32 %22, 0
%26 = icmp eq i1 %25, false
store i64 %rcx.147.reload, i64* %rcx.0.be.reg2mem
store i64 %rdx.156.reload, i64* %rdx.0.be.reg2mem
br i1 %26, label LBL_2.backedge, label LBL_8
LBL_7:
%rdx.0.be.reload = load i64, i64* %rdx.0.be.reg2mem
%rcx.0.be.reload = load i64, i64* %rcx.0.be.reg2mem
store i64 %rcx.0.be.reload, i64* %rcx.0.reg2mem
store i64 %rdx.0.be.reload, i64* %rdx.0.reg2mem
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_2
LBL_8:
%27 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %rdx.156.reload, i64 %rcx.147.reload, i64 %r8.0.ph.reload, i64 %1)
store i32 -2, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_9:
%28 = load i64, i64* %sv_2, align 8
%29 = call i64 @FUNC(i64 %3, i64 %28)
%30 = load i32*, i32** %sv_3, align 8
%31 = icmp eq i32* %30, null
store i64 %13, i64* %rcx.0.be.reg2mem
store i64 %28, i64* %rdx.0.be.reg2mem
br i1 %31, label LBL_2.backedge, label LBL_10
LBL_10:
%32 = load i32, i32* %30, align 4
%33 = icmp eq i32 %32, 3
br i1 %33, label LBL_15, label LBL_11
LBL_11:
%34 = icmp sgt i32 %32, 3
br i1 %34, label LBL_17, label LBL_12
LBL_12:
switch i32 %32, label LBL_17 [
i32 1, label LBL_13
i32 2, label LBL_14
]
LBL_13:
%35 = ptrtoint i32* %30 to i64
%36 = call i64 @FUNC(i64 %2, i64 %35, i32* nonnull %sv_1)
%37 = trunc i64 %36 to i32
store i32 %37, i32* %sv_0.0.reg2mem
store i64 %35, i64* %rcx.2.reg2mem
store i64 %8, i64* %rdx.2.reg2mem
store i64 %r8.0.ph.reload, i64* %r8.1.reg2mem
br label LBL_18
LBL_14:
%38 = bitcast i32* %30 to i64*
%39 = load i64, i64* %38, align 8
%40 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %39, i64 %13, i64 %r8.0.ph.reload, i64 %1)
store i32 -1, i32* %sv_0.0.reg2mem
store i64 %13, i64* %rcx.2.reg2mem
store i64 %39, i64* %rdx.2.reg2mem
store i64 %r8.0.ph.reload, i64* %r8.1.reg2mem
br label LBL_18
LBL_15:
%41 = load i64, i64* %10, align 8
%42 = icmp eq i64 %41, 0
store i32 0, i32* %sv_0.0.reg2mem
store i64 %13, i64* %rcx.2.reg2mem
store i64 %28, i64* %rdx.2.reg2mem
store i64 %r8.0.ph.reload, i64* %r8.1.reg2mem
br i1 %42, label LBL_18, label LBL_16
LBL_16:
%43 = ptrtoint i32* %30 to i64
%44 = load i64, i64* %12, align 8
%45 = add i64 %43, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = bitcast i32* %30 to i64*
%49 = load i64, i64* %48, align 8
%50 = trunc i64 %49 to i32
store i32 %50, i32* %sv_0.0.reg2mem
store i64 %47, i64* %rcx.2.reg2mem
store i64 %44, i64* %rdx.2.reg2mem
store i64 %41, i64* %r8.1.reg2mem
br label LBL_18
LBL_17:
%51 = ptrtoint i32* %30 to i64
%52 = call i64 @FUNC(i64 %2, i64 %51)
%53 = trunc i64 %52 to i32
store i32 %53, i32* %sv_0.0.reg2mem
store i64 %13, i64* %rcx.2.reg2mem
store i64 %51, i64* %rdx.2.reg2mem
store i64 %r8.0.ph.reload, i64* %r8.1.reg2mem
br label LBL_18
LBL_18:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%54 = load i32*, i32** %sv_3, align 8
%55 = ptrtoint i32* %54 to i64
%56 = call i64 @FUNC(i64 %55)
%57 = icmp eq i32 %sv_0.0.reload, -4
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_21, label LBL_19
LBL_19:
%59 = load i32, i32* %sv_1, align 4
%60 = icmp slt i32 %59, 1
store i32 0, i32* %sv_0.1.reg2mem
br i1 %60, label LBL_22, label LBL_20
LBL_20:
%61 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0), i64 %rdx.2.reload, i64 %rcx.2.reload, i64 %r8.1.reload, i64 %1)
store i32 -3, i32* %sv_0.1.reg2mem
br label LBL_22
LBL_21:
%62 = icmp slt i32 %sv_0.0.reload, 0
store i64 %rcx.2.reload, i64* %rcx.0.ph.reg2mem
store i64 %rdx.2.reload, i64* %rdx.0.ph.reg2mem
store i64 %55, i64* %rdi.0.ph.reg2mem
store i64 %r8.1.reload, i64* %r8.0.ph.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %62, label LBL_22, label LBL_1
LBL_22:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%63 = call i64 @FUNC(i32* nonnull %sv_1)
%64 = zext i32 %sv_0.1.reload to i64
ret i64 %64
uselistorder i64 %rcx.2.reload, { 1, 0 }
uselistorder i64 %rdx.2.reload, { 1, 0 }
uselistorder i64 %r8.1.reload, { 1, 0 }
uselistorder i32* %30, { 0, 4, 3, 1, 2, 5, 6 }
uselistorder i64 %rcx.147.reload, { 1, 0 }
uselistorder i64 %rdx.156.reload, { 1, 0 }
uselistorder i32 %22, { 1, 0, 2 }
uselistorder i1 %19, { 1, 0 }
uselistorder i32 %16, { 1, 0 }
uselistorder i64 %13, { 1, 2, 0, 5, 3, 4, 6, 7 }
uselistorder i64 %r8.0.ph.reload, { 2, 3, 0, 4, 1, 5 }
uselistorder i32** %sv_3, { 2, 1, 3, 0 }
uselistorder i64* %sv_2, { 1, 0, 2, 3 }
uselistorder i32* %sv_1, { 0, 2, 1, 3, 4 }
uselistorder i64 %3, { 5, 0, 2, 1, 4, 3, 6 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rcx.0.ph.reg2mem, { 1, 0 }
uselistorder i64* %rdx.0.ph.reg2mem, { 1, 0 }
uselistorder i64* %rdi.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i64* %r8.0.ph.reg2mem, { 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdx.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.147.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.156.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.be.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdx.0.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %rcx.2.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %rdx.2.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %r8.1.reg2mem, { 0, 3, 4, 5, 1, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 5, 6, 4, 3, 2 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @giterr_set, { 2, 1, 0 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i32 0, { 3, 0, 1, 4, 5, 6, 2 }
uselistorder label LBL_22, { 0, 4, 3, 5, 1, 2 }
uselistorder label LBL_18, { 2, 1, 0, 3, 4 }
uselistorder label LBL_2.backedge, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | spapr_phb_vfio_class_init_2154 | spapr_phb_vfio_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
store i64 %1, i64* %arg1, align 8
ret i64 %0
} | 0 |
BinRealVul | fgets_trim_sanitize_9951 | fgets_trim_sanitize | define i64 @FUNC(i64 %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = inttoptr i64 %arg1 to %_IO_FILE*
%2 = call i8* @fgets(i8* bitcast (i8** @gv_0 to i8*), i32 1024, %_IO_FILE* %1)
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
unreachable
LBL_2:
%6 = call i64 @FUNC()
%7 = call i8* @strchrnul(i8* bitcast (i8** @gv_0 to i8*), i32 10)
%8 = load i8, i8* %7, align 1
%9 = call i64 @FUNC(i64* bitcast (i8** @gv_0 to i64*))
%10 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64* bitcast (i8** @gv_0 to i64*))
%11 = icmp eq i8* %arg2, null
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = load i32, i32* @gv_3, align 4
%13 = urem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = load %_IO_FILE*, %_IO_FILE** @gv_4, align 8
%16 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* nonnull %arg2)
br label LBL_5
LBL_5:
%17 = zext i8 %8 to i64
ret i64 %17
uselistorder i1 false, { 1, 2, 0 }
uselistorder i8* %arg2, { 1, 0 }
} | 0 |
BinRealVul | alloc_mem_18128 | alloc_mem | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg3)
store i64 %0, i64* %arg1, align 8
%1 = icmp eq i64 %arg3, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%4 = call i64 @FUNC(i64 %arg3)
store i64 %4, i64* %arg2, align 8
%5 = icmp eq i64* %arg2, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_4:
%8 = ptrtoint i64* %arg2 to i64
ret i64 %8
uselistorder i64 (i8*)* @die, { 1, 0 }
uselistorder i64 (i64)* @zalloc, { 1, 0 }
uselistorder i64* %arg2, { 2, 0, 1 }
} | 1 |
BinRealVul | cdrom_change_cb_17299 | cdrom_change_cb | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = urem i64 %arg2, 2
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5, i64* nonnull %sv_0)
%7 = load i64, i64* %sv_0, align 8
store i64 %7, i64* %arg1, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 6, i32* %9, align 4
%10 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
store i32 40, i32* %11, align 4
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
%14 = add i64 %2, 20
%15 = inttoptr i64 %14 to i8*
store i8 1, i8* %15, align 1
%16 = add i64 %2, 32
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 %19, 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* %sv_0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vfio_put_device_15735 | vfio_put_device | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3)
store i64 0, i64* %2, align 8
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
ret i64 %6
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
} | 1 |
BinRealVul | compactxref_6366 | compactxref | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_0.12.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = and i64 %1, 4294967295
%sext = mul i64 %4, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = icmp sgt i64 %6, %5
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = add i64 %4, 4294967295
%9 = and i64 %8, 4294967295
%10 = ptrtoint i32* %arg3 to i64
%11 = call i64 @FUNC(i64 %3, i64 %10, i64 %9)
br label LBL_2
LBL_2:
%12 = trunc i64 %4 to i32
%13 = icmp sgt i32 %12, 1
store i64 1, i64* %storemerge.lcssa.reg2mem
br i1 %13, label LBL_3, label LBL_10
LBL_3:
%14 = ptrtoint i32* %arg3 to i64
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %14, 16
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %14, 24
%20 = inttoptr i64 %19 to i64*
%wide.trip.count = and i64 %4, 4294967295
store i64 1, i64* %indvars.iv.reg2mem
store i32 1, i32* %sv_0.12.reg2mem
br label LBL_4
LBL_4:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = load i64, i64* %16, align 8
%22 = load i64, i64* %18, 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 = sext i32 %26 to i64
%28 = mul i64 %27, 4
%29 = add i64 %28, %21
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_5
LBL_5:
store i32 0, i32* %25, align 4
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%34 = zext i32 %26 to i64
%35 = icmp eq i64 %indvars.iv.reload, %34
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_8, label LBL_7
LBL_7:
%37 = load i64, i64* %20, align 8
%38 = add i64 %37, %23
%39 = sext i32 %sv_0.12.reload to i64
%40 = mul i64 %39, 4
%41 = add i64 %37, %40
%42 = inttoptr i64 %38 to i32*
%43 = load i32, i32* %42, align 4
%44 = inttoptr i64 %41 to i32*
store i32 %43, i32* %44, align 4
%45 = add i32 %sv_0.12.reload, 1
%46 = load i64, i64* %18, align 8
%47 = add i64 %46, %23
%48 = inttoptr i64 %47 to i32*
store i32 %sv_0.12.reload, i32* %48, align 4
store i32 %45, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%49 = add i64 %28, %22
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
store i32 %51, i32* %25, align 4
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.12.reg2mem
store i64 %wide.trip.count, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_10, label LBL_4
LBL_10:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %23, { 2, 1, 0 }
uselistorder i32 %sv_0.12.reload, { 1, 3, 2, 4, 0 }
uselistorder i64 %4, { 1, 3, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 4294967295, { 0, 2, 3, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | watch_queue_clear_12512 | watch_queue_clear | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = add i64 %arg1, 4
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %arg1 to i8*
store i8 1, i8* %3, align 1
%4 = add i64 %arg1, 8
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 1
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_9
LBL_1:
%9 = inttoptr i64 %4 to i64*
br label LBL_2
LBL_2:
%10 = load i64, i64* %9, align 8
%11 = add i64 %10, -8
%12 = call i64 @FUNC(i64 %10)
%13 = call i64 @FUNC(i64 %1)
%14 = inttoptr i64 %11 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_8, label LBL_3
LBL_3:
%17 = add i64 %15, 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %10, 16
%20 = call i64 @FUNC(i64 %19)
%21 = urem i64 %20, 256
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_4, label LBL_5
LBL_4:
%24 = call i64 @FUNC(i64 %17)
br label LBL_8
LBL_5:
%25 = call i64 @FUNC(i64 %19)
%26 = load i64, i64* %14, align 8
%27 = call i64 @FUNC(i64 %26, i64 0)
%28 = inttoptr i64 %15 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %17)
%31 = icmp eq i64 %29, 0
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i64 @FUNC()
%33 = call i64 @FUNC()
br label LBL_7
LBL_7:
%34 = call i64 @FUNC(i64 %11)
br label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %11)
%36 = call i64 @FUNC(i64 %1)
%37 = call i64 @FUNC(i64 %4)
%38 = trunc i64 %37 to i8
%39 = icmp eq i8 %38, 1
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_2, label LBL_9
LBL_9:
%41 = call i64 @FUNC(i64 %1)
%42 = call i64 @FUNC()
ret i64 %42
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 (i64)* @put_watch, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock, { 1, 0 }
uselistorder i64 (i64)* @hlist_del_init_rcu, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 (i64)* @hlist_empty, { 1, 0 }
uselistorder i8 1, { 1, 0, 2 }
uselistorder i64 (i64)* @spin_lock_bh, { 1, 0 }
uselistorder i64 ()* @rcu_read_lock, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | park_frame_worker_threads_17219 | park_frame_worker_threads | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp sgt i32 %0, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_8
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%wide.trip.count = and i64 %arg2, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul nuw nsw i64 %indvars.iv.reload, 96
%4 = add i64 %3, %2
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 1
br i1 %7, label LBL_7, label LBL_3
LBL_3:
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i64*
%10 = call i32 @pthread_mutex_lock(i64* %9)
%11 = load i32, i32* %5, align 4
%12 = icmp eq i32 %11, 1
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_6
LBL_4:
%14 = add i64 %4, 48
%15 = inttoptr i64 %14 to i64*
br label LBL_5
LBL_5:
%16 = call i32 @pthread_cond_wait(i64* %15, i64* %9)
%17 = load i32, i32* %5, align 4
%18 = icmp eq i32 %17, 1
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_6
LBL_6:
%20 = call i32 @pthread_mutex_unlock(i64* %9)
br label LBL_7
LBL_7:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_8, label LBL_2
LBL_8:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i32* %5, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xics_common_class_init_804 | xics_common_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198669, i64* %arg1, align 8
ret i64 %0
} | 0 |
BinRealVul | tpm_passthrough_cancel_cmd_16350 | tpm_passthrough_cancel_cmd | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_6, label LBL_1
LBL_1:
%12 = inttoptr i64 %7 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label LBL_5, label LBL_2
LBL_2:
%15 = call i32 @write(i32 %13, i64* nonnull @gv_0, i32 1)
%16 = icmp eq i32 %15, 1
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i32* @__errno_location()
%18 = load i32, i32* %17, align 4
%19 = call i8* @strerror(i32 %18)
%20 = ptrtoint i8* %19 to i64
%21 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %20, i64 1, i64 %5, i64 %2, i64 %1)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%22 = add i64 %7, 5
%23 = inttoptr i64 %22 to i8*
store i8 1, i8* %23, align 1
store i64 %7, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %24, 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 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
} | 1 |
BinRealVul | rgb24tobgr32_15741 | rgb24tobgr32 | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i32* %arg1 to i64
store i32 0, i32* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i32, i32* %.reg2mem
%3 = add i32 %.reload, 2
%4 = zext i32 %3 to i64
%5 = add i64 %4, %2
%6 = mul i32 %storemerge2.reload, 4
%7 = zext i32 %6 to i64
%8 = add i64 %7, %1
%9 = inttoptr i64 %5 to i8*
%10 = load i8, i8* %9, align 1
%11 = inttoptr i64 %8 to i8*
store i8 %10, i8* %11, align 1
%12 = add i32 %.reload, 1
%13 = zext i32 %12 to i64
%14 = add i64 %13, %2
%15 = or i32 %6, 1
%16 = zext i32 %15 to i64
%17 = add i64 %16, %1
%18 = inttoptr i64 %14 to i8*
%19 = load i8, i8* %18, align 1
%20 = inttoptr i64 %17 to i8*
store i8 %19, i8* %20, align 1
%21 = zext i32 %.reload to i64
%22 = add i64 %21, %2
%23 = or i32 %6, 2
%24 = zext i32 %23 to i64
%25 = add i64 %24, %1
%26 = inttoptr i64 %22 to i8*
%27 = load i8, i8* %26, align 1
%28 = inttoptr i64 %25 to i8*
store i8 %27, i8* %28, align 1
%29 = or i32 %6, 3
%30 = zext i32 %29 to i64
%31 = add i64 %30, %1
%32 = inttoptr i64 %31 to i8*
store i8 0, i8* %32, align 1
%33 = add i32 %storemerge2.reload, 1
%34 = mul i32 %33, 3
%35 = icmp ult i32 %34, %arg3
store i32 %34, i32* %.reg2mem
store i32 %33, i32* %storemerge2.reg2mem
br i1 %35, label LBL_2, label LBL_3
LBL_3:
%phitmp = zext i32 %34 to i64
store i64 %phitmp, i64* %.lcssa.reg2mem
br label LBL_4
LBL_4:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %34, { 1, 0, 2 }
uselistorder i32 %6, { 3, 2, 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | shm_destroy_12148 | shm_destroy | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %0, 4095
%3 = udiv i64 %2, 4096
%4 = sub i64 %1, %3
store i64 %4, i64* %arg1, align 8
%5 = call i64 @FUNC(i64 %1, i64 %0)
%6 = call i64 @FUNC(i64 %0)
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%17 = load i64, i64* %8, align 8
%18 = call i64 @FUNC(i64 %17, i64 0, i32 %16)
br label LBL_4
LBL_2:
%19 = icmp eq i32 %16, 0
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = load i64, i64* %8, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = zext i32 %16 to i64
%25 = call i64 @FUNC(i64 %23, i64 %24)
br label LBL_4
LBL_4:
%26 = load i64, i64* %8, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %0, i64 4198760)
ret i64 %28
uselistorder i32 %16, { 0, 2, 1 }
uselistorder i64* %8, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | hog_accept_19027 | hog_accept | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = inttoptr i64 %1 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %1, i64 %3)
%10 = load i64, i64* %5, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %.reg2mem
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %12, label LBL_2, label LBL_3
LBL_2:
%.reload = load i64, i64* %.reg2mem
%13 = call i64 @FUNC(i64 %.reload, i64 %4)
%14 = call i64 @FUNC(i64 %0, i64 0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | populate_filter_6072 | populate_filter | define i64 @FUNC(i64 %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i64
%rdx.0.lcssa.reg2mem = alloca i64
%storemerge27.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC()
%5 = icmp eq i64 %arg3, 0
store i64 0, i64* %rdx.0.lcssa.reg2mem
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = trunc i64 %4 to i32
%7 = ptrtoint i32* %arg2 to i64
store i64 0, i64* %storemerge27.reg2mem
br label LBL_2
LBL_2:
%storemerge27.reload = load i64, i64* %storemerge27.reg2mem
%8 = mul i64 %storemerge27.reload, 4
%9 = add i64 %8, %7
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, %6
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_6
LBL_3:
%14 = add nuw i64 %storemerge27.reload, 1
%15 = icmp ult i64 %14, %arg3
store i64 %14, i64* %storemerge27.reg2mem
store i64 %8, i64* %rdx.0.lcssa.reg2mem
br i1 %15, label LBL_2, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %arg1, i64 0)
%17 = trunc i64 %16 to i32
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%20 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %rdx.0.lcssa.reload, i64 %3, i64 %2, i64 %1)
%21 = and i64 %16, 4294967295
store i64 %21, i64* %rax.0.reg2mem
br label LBL_17
LBL_6:
br i1 %5, label LBL_11, label LBL_7
LBL_7:
%22 = ptrtoint i32* %arg2 to i64
store i64 0, i64* %storemerge6.reg2mem
br label LBL_8
LBL_8:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%23 = mul i64 %storemerge6.reload, 4
%24 = add i64 %23, %22
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %arg1, i64 %27)
%29 = trunc i64 %28 to i32
%30 = icmp slt i32 %29, 0
%31 = icmp eq i1 %30, false
%32 = icmp eq i32 %29, -17
%or.cond = or i1 %32, %31
br i1 %or.cond, label LBL_10, label LBL_9
LBL_9:
%33 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %27, i64 %27, i64 %3, i64 %2, i64 %1)
%34 = and i64 %28, 4294967295
store i64 %34, i64* %rax.0.reg2mem
br label LBL_17
LBL_10:
%35 = add nuw i64 %storemerge6.reload, 1
%36 = icmp ult i64 %35, %arg3
store i64 %35, i64* %storemerge6.reg2mem
br i1 %36, label LBL_8, label LBL_11
LBL_11:
%37 = call i64 @FUNC(i64 %arg1, i64 1, i64 0)
%38 = trunc i64 %37 to i32
%39 = icmp slt i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_13, label LBL_12
LBL_12:
%41 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i64 1, i64 0, i64 %3, i64 %2, i64 %1)
%42 = and i64 %37, 4294967295
store i64 %42, i64* %rax.0.reg2mem
br label LBL_17
LBL_13:
%43 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, -1
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_15, label LBL_14
LBL_14:
%47 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_4, i64 0, i64 0), i64 1, i64 0, i64 %3, i64 %2, i64 %1)
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%48 = and i64 %43, 4294967295
%49 = call i64 @FUNC(i64 %arg1, i64 1, i64 %48, i64 1, i64 1, i64 -1)
%50 = call i64 @FUNC(i64 %arg1, i64 1, i64 %48, i64 1, i64 1, i64 -1)
%51 = trunc i64 %50 to i32
%52 = icmp slt i32 %51, 0
%53 = icmp eq i1 %52, false
store i64 0, i64* %rax.0.reg2mem
br i1 %53, label LBL_17, label LBL_16
LBL_16:
%54 = call i64 @FUNC(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_5, i64 0, i64 0), i64 1, i64 %48, i64 1, i64 1, i64 -1)
%55 = and i64 %50, 4294967295
store i64 %55, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %48, { 2, 1, 0 }
uselistorder i64 %27, { 1, 0, 2 }
uselistorder i64 %3, { 1, 2, 0, 3 }
uselistorder i64 %2, { 1, 2, 0, 3 }
uselistorder i64 %1, { 1, 2, 0, 3 }
uselistorder i64* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 6, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @seccomp_rule_add, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @showerr, { 4, 3, 1, 2, 0 }
uselistorder i1 false, { 0, 1, 3, 2, 5, 4 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder i64 %arg1, { 2, 1, 3, 4, 0 }
uselistorder label LBL_17, { 1, 0, 2, 4, 3, 5 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | xfs_acl_from_disk_11833 | xfs_acl_from_disk | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 1025
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_11
LBL_1:
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_11
LBL_2:
%8 = icmp sgt i32 %2, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_11
LBL_3:
%9 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%10 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%11 = mul nuw nsw i64 %indvars.iv.reload, 12
%12 = add i64 %11, %5
%13 = add i64 %12, 4
%14 = add i64 %11, %9
%15 = add i64 %14, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = inttoptr i64 %13 to i32*
store i32 %17, i32* %18, align 4
%19 = add i64 %14, 12
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = add i64 %12, 12
%23 = inttoptr i64 %22 to i16*
store i16 %21, i16* %23, align 2
%24 = load i32, i32* %18, align 4
%25 = icmp ult i32 %24, 3
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%26 = icmp eq i32 %24, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_10
LBL_6:
%28 = add i32 %24, -3
%29 = icmp ult i32 %28, 4
br i1 %29, label LBL_8, label LBL_10
LBL_7:
%30 = add i64 %14, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i64 %12, 8
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
br label LBL_9
LBL_8:
%35 = add i64 %12, 8
%36 = inttoptr i64 %35 to i32*
store i32 -1, i32* %36, align 4
br label LBL_9
LBL_9:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%37 = icmp slt i64 %indvars.iv.next, %10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %5, i64* %rax.0.reg2mem
br i1 %37, label LBL_4, label LBL_11
LBL_10:
%38 = call i64 @FUNC(i64 %5)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %24, { 1, 0, 2 }
uselistorder i64 %12, { 1, 0, 2, 3 }
uselistorder i64 %5, { 3, 0, 2, 1, 4 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i64 12, { 1, 2, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_11, { 4, 0, 1, 2, 3 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | rdpei_recv_pdu_5622 | rdpei_recv_pdu | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg2 to i64
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%8 = call i64 @FUNC(i64 %5)
%9 = trunc i64 %8 to i32
%10 = icmp ult i32 %9, 6
store i64 1, i64* %rax.0.reg2mem
br i1 %10, label LBL_12, label LBL_1
LBL_1:
%11 = ptrtoint i64* %arg1 to i64
%12 = urem i32 %7, 65536
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %5, i64 %13)
%15 = zext i32 %6 to i64
%16 = call i64 @FUNC(i64 %5, i64 %15)
%17 = icmp eq i32 %12, 3
br i1 %17, label LBL_10, label LBL_2
LBL_2:
%18 = icmp ugt i32 %12, 3
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_12, label LBL_3
LBL_3:
%trunc = trunc i32 %7 to i16
store i64 0, i64* %rax.0.reg2mem
switch i16 %trunc, label LBL_12 [
i16 1, label LBL_4
i16 2, label LBL_8
]
LBL_4:
%19 = call i64 @FUNC(i64 %11, i64 %5)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = and i64 %19, 4294967295
%23 = call i64 @FUNC(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), i64 %22, i64 %4, i64 %3, i64 %2)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%24 = call i64 @FUNC(i64 %11)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_12, label LBL_7
LBL_7:
%27 = and i64 %24, 4294967295
%28 = call i64 @FUNC(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_2, i64 0, i64 0), i64 %27, i64 %4, i64 %3, i64 %2)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%29 = call i64 @FUNC(i64 %11, i64 %5)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %31, label LBL_12, label LBL_9
LBL_9:
%32 = and i64 %29, 4294967295
%33 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0), i64 %32, i64 %4, i64 %3, i64 %2)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%34 = call i64 @FUNC(i64 %11, i64 %5)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_12, label LBL_11
LBL_11:
%37 = and i64 %34, 4294967295
%38 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_4, i64 0, i64 0), i64 %37, i64 %4, i64 %3, i64 %2)
store i64 %37, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i64 %11, { 3, 0, 1, 2 }
uselistorder i64 %5, { 2, 0, 1, 4, 3, 5 }
uselistorder i64 %4, { 3, 2, 1, 0 }
uselistorder i64 %3, { 3, 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 4, 7, 3, 9, 2, 8, 5, 1, 6 }
uselistorder i32* %1, { 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @WLog_ERR, { 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), { 0, 3, 1, 2 }
uselistorder i64 4294967295, { 0, 3, 1, 2, 4 }
uselistorder label LBL_12, { 6, 3, 7, 2, 8, 1, 9, 4, 0, 5 }
} | 0 |
BinRealVul | evsignal_init_18731 | evsignal_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 1, i64 1, i64 0, i64 %2)
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %2, 20
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %2, 24
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memset(i64* %18, i32 0, i32 128)
%20 = add i64 %2, 168
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = mul i64 %indvars.iv.reload, 8
%22 = add i64 %20, %21
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%24 = bitcast i64* %rdi to i32*
%25 = load i32, i32* %24, align 8
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %2, 152
%29 = load i32, i32* %7, align 4
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %28, i64 %30, i64 3, i64 4198726, i64 %28)
%32 = inttoptr i64 %28 to i64*
store i64 %2, i64* %32, align 8
%33 = add i64 %2, 160
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = or i32 %35, 4
store i32 %36, i32* %34, align 4
ret i64 0
uselistorder i64 %28, { 0, 2, 1 }
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5, 6, 7, 8, 9 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64)* @FD_CLOSEONEXEC, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
} | 1 |
BinRealVul | acpi_memory_get_device_resources_17644 | acpi_memory_get_device_resources | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_5
LBL_1:
%6 = call i64 @FUNC(i64 %1, i64 0, i64 4198840, i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = inttoptr i64 %1 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, %1
%12 = icmp eq i1 %11, false
store i64 %10, i64* %storemerge12.reg2mem
br i1 %12, label LBL_3, label LBL_4
LBL_3:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%storemerge.in = inttoptr i64 %storemerge12.reload to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%13 = call i64 @FUNC(i64 %storemerge12.reload)
%14 = icmp eq i64 %storemerge, %1
%15 = icmp eq i1 %14, false
store i64 %storemerge, i64* %storemerge12.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 1, 0, 3, 4, 5 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | pass0_5145 | pass0 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg4 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
store i64 %0, i64* %sv_2, align 8
store i32 0, i32* %sv_1, align 4
store i64 0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i32* nonnull %sv_1, i64 0, i64 %0, 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 = ptrtoint i64* %arg1 to i64
%5 = ptrtoint i64* %sv_2 to i64
%6 = call i64 @FUNC(i64 %4, i64 %arg2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
%10 = add i64 %5, -16
%11 = inttoptr i64 %10 to i64*
%12 = ptrtoint i64* %sv_0 to i64
br i1 %9, label LBL_3, label LBL_4
LBL_2:
%13 = call i64 @FUNC(i32* nonnull %sv_1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_3:
%14 = load i32, i32* %sv_1, align 4
%15 = add i32 %14, 1
store i32 %15, i32* %sv_1, align 4
store i64 %12, i64* %11, align 8
%16 = call i64 @FUNC(i32* nonnull %sv_1, i64 %4, i32 %15, i64 1, i64 0, i64 1)
%17 = call i64 @FUNC(i64 %4, i64 %arg2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_3, label LBL_4
LBL_4:
br label LBL_5
LBL_5:
%21 = load i32, i32* %sv_1, align 4
store i64 %12, i64* %11, align 8
%22 = call i64 @FUNC(i32* nonnull %sv_1, i64 0, i32 %21, i64 1, i64 0, i64 1)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_5, label LBL_6
LBL_6:
%26 = load i32, i32* %sv_1, align 4
%27 = zext i32 %26 to i64
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0), i64 %27)
%29 = call i64 @FUNC(i32* nonnull %sv_1)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i32* nonnull %sv_1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0))
unreachable
LBL_8:
%33 = load i64, i64* %sv_0, align 8
ret i64 %33
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i32* %sv_1, { 0, 1, 6, 2, 7, 3, 8, 9, 4, 5, 10 }
uselistorder i64 (i32*, i8*)* @die_codec, { 1, 0 }
uselistorder i64 (i64, i64)* @vpx_img_read, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 0, 5, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | migrate_page_copy_13458 | migrate_page_copy | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg2)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %arg2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %arg1, i64 %arg2)
br label LBL_4
LBL_3:
%8 = call i64 @FUNC(i64 %arg1, i64 %arg2)
br label LBL_4
LBL_4:
%9 = call i64 @FUNC(i64 %arg2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %arg1)
br label LBL_6
LBL_6:
%13 = call i64 @FUNC(i64 %arg2)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_8, label LBL_7
LBL_7:
%16 = call i64 @FUNC(i64 %arg1)
br label LBL_8
LBL_8:
%17 = call i64 @FUNC(i64 %arg2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_10, label LBL_9
LBL_9:
%20 = call i64 @FUNC(i64 %arg1)
br label LBL_10
LBL_10:
%21 = call i64 @FUNC(i64 %arg2)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_12, label LBL_11
LBL_11:
%24 = call i64 @FUNC(i64 %arg2)
%25 = and i64 %24, 4294967295
%26 = call i64 @FUNC(i64 %25, i64 %arg2)
%27 = call i64 @FUNC(i64 %arg1)
br label LBL_14
LBL_12:
%28 = call i64 @FUNC(i64 %arg2)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_14, label LBL_13
LBL_13:
%31 = call i64 @FUNC(i64 %arg1)
br label LBL_14
LBL_14:
%32 = call i64 @FUNC(i64 %arg2)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_16, label LBL_15
LBL_15:
%35 = call i64 @FUNC(i64 %arg1)
br label LBL_16
LBL_16:
%36 = call i64 @FUNC(i64 %arg2)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_18, label LBL_17
LBL_17:
%39 = call i64 @FUNC(i64 %arg1)
br label LBL_18
LBL_18:
%40 = call i64 @FUNC(i64 %arg2)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label LBL_20, label LBL_19
LBL_19:
%43 = call i64 @FUNC(i64 %arg1)
br label LBL_20
LBL_20:
%44 = call i64 @FUNC(i64 %arg2)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_22, label LBL_21
LBL_21:
%47 = call i64 @FUNC(i64 %arg1)
br label LBL_22
LBL_22:
%48 = call i64 @FUNC(i64 %arg2)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label LBL_24, label LBL_23
LBL_23:
%51 = call i64 @FUNC(i64 %arg1)
br label LBL_24
LBL_24:
%52 = call i64 @FUNC(i64 %arg2, i64 4294967295)
%53 = and i64 %52, 4294967295
%54 = call i64 @FUNC(i64 %arg1, i64 %53)
%55 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%56 = call i64 @FUNC(i64 %arg2)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_26, label LBL_25
LBL_25:
%59 = call i64 @FUNC(i64 %arg2)
br label LBL_26
LBL_26:
%60 = call i64 @FUNC(i64 %arg2)
%61 = call i64 @FUNC(i64 %arg2, i64 0)
%62 = call i64 @FUNC(i64 %arg1)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
store i64 %62, i64* %rax.0.reg2mem
br i1 %64, label LBL_28, label LBL_27
LBL_27:
%65 = call i64 @FUNC(i64 %arg1)
store i64 %65, i64* %rax.0.reg2mem
br label LBL_28
LBL_28:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 (i64, i64)* @page_cpupid_xchg_last, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder i32 1, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 4, 5, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 2, 15, 16, 17, 18, 19, 0, 20, 1, 21 }
uselistorder i64 %arg1, { 11, 12, 14, 13, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 15 }
} | 0 |
BinRealVul | IRQ_setbit_3159 | IRQ_setbit | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = add i32 %3, 1
store i32 %4, i32* %arg1, align 4
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = and i64 %arg2, 4294967295
%9 = call i64 @FUNC(i64 %7, i64 %8)
ret i64 %9
uselistorder i64 8, { 1, 0 }
} | 0 |
BinRealVul | do_sigreturn_16693 | do_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%4 = add i64 %1, 104
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 0, i64 %3, i64 %6, i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_6, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %2, i64 %3)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_2
LBL_2:
%14 = ptrtoint i64* %sv_2 to i64
%15 = add i64 %14, -288
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = mul i64 %indvars.iv.reload, 4
%17 = add i64 %16, %3
%18 = mul i64 %indvars.iv.reload, 8
%19 = add i64 %15, %18
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21, i64 %17)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_6, label LBL_4
LBL_4:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%26 = icmp ult i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %26, label LBL_3, label LBL_5
LBL_5:
%27 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%28 = call i64 @FUNC(i64 2, i64* nonnull %sv_0, i64 0)
%29 = call i64 @FUNC(i64 %3, i64 %1)
%30 = call i64 @FUNC(i64 %3, i64 %6, i64 0)
%31 = add i64 %1, 80
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
store i64 %33, i64* %storemerge1.reg2mem
br label LBL_7
LBL_6:
%34 = call i64 @FUNC(i64 %3, i64 %6, i64 0)
%35 = call i64 @FUNC(i64 11)
store i64 %35, i64* %storemerge1.reg2mem
br label LBL_7
LBL_7:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64 %3, { 0, 1, 2, 5, 3, 4 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 }
uselistorder i64 (i64, i64)* @__get_user, { 1, 0 }
uselistorder i64 1, { 2, 0, 3, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | jsi_ValueToOInt32_5923 | jsi_ValueToOInt32 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0, i64 1, i64* nonnull %sv_0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1)
%6 = load i64, i64* %sv_0, align 8
%7 = call i128 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1)
%9 = load i64, i64* %sv_0, align 8
%10 = call i128 @FUNC(i64 %9)
%11 = call i32 @FUNC(i128 %10)
%12 = sext i32 %11 to i64
store i64 %12, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | color_distance_14738 | color_distance | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.07.reg2mem = alloca i32
%storemerge68.reg2mem = alloca i32
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%sext3 = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext3, 32
%2 = trunc i64 %0 to i32
%3 = trunc i64 %1 to i32
store i32 0, i32* %storemerge68.reg2mem
store i32 0, i32* %sv_0.07.reg2mem
br label LBL_1
LBL_1:
%sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem
%storemerge68.reload = load i32, i32* %storemerge68.reg2mem
%4 = icmp eq i32 %storemerge68.reload, 0
%5 = lshr i32 %2, %storemerge68.reload
%6 = zext i32 %5 to i64
%rdx.0 = select i1 %4, i64 %0, i64 %6
%7 = urem i64 %rdx.0, 256
%8 = lshr i32 %3, %storemerge68.reload
%9 = zext i32 %8 to i64
%storemerge = select i1 %4, i64 %1, i64 %9
%10 = urem i64 %storemerge, 256
%11 = sub nsw i64 %7, %10
%12 = mul nsw i64 %11, %11
%13 = trunc i64 %12 to i32
%14 = add i32 %sv_0.07.reload, %13
%15 = add nuw nsw i32 %storemerge68.reload, 8
%16 = icmp ult i32 %15, 32
store i32 %15, i32* %storemerge68.reg2mem
store i32 %14, i32* %sv_0.07.reg2mem
br i1 %16, label LBL_1, label LBL_2
LBL_2:
%17 = zext i32 %14 to i64
ret i64 %17
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %11, { 1, 0 }
uselistorder i32* %storemerge68.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.07.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | lha_read_file_header_1_11534 | lha_read_file_header_1 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0, i64 16, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%5 = ptrtoint i64* %arg2 to i64
%6 = inttoptr i64 %1 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i32
%9 = add nuw nsw i32 %8, 2
%10 = bitcast i64* %arg2 to i32*
store i32 %9, i32* %10, align 4
%11 = add i64 %1, 1
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = add i64 %1, 2
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = add i64 %5, 4
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %1, 6
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = add i64 %5, 8
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %1, 10
%25 = call i64 @FUNC(i64 %24)
%26 = trunc i64 %25 to i32
%27 = add i64 %5, 12
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = add i64 %1, 14
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i32
%33 = bitcast i64* %rsi to i32*
%34 = load i32, i32* %33, align 8
%35 = add i32 %34, -16
%36 = sub i32 %35, %32
%37 = icmp ugt i8 %31, -26
%38 = icmp slt i32 %36, 0
%or.cond = or i1 %37, %38
br i1 %or.cond, label LBL_11, label LBL_3
LBL_3:
%39 = sext i32 %34 to i64
%40 = call i64 @FUNC(i64 %0, i64 %39, i64 0)
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_4, label LBL_5
LBL_4:
%43 = icmp eq i8 %31, 0
%.pre = add i64 %40, 15
store i32 0, i32* %storemerge5.reg2mem
br i1 %43, label LBL_8, label LBL_6
LBL_5:
%44 = call i64 @FUNC(i64 %0)
store i64 %44, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%45 = sext i32 %storemerge5.reload to i64
%46 = add i64 %.pre, %45
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = icmp eq i8 %48, -1
br i1 %49, label LBL_11, label LBL_7
LBL_7:
%50 = add nuw i32 %storemerge5.reload, 1
%51 = icmp ult i32 %50, %32
store i32 %50, i32* %storemerge5.reg2mem
br i1 %51, label LBL_6, label LBL_8
LBL_8:
%52 = add i64 %5, 24
%53 = zext i8 %31 to i64
%54 = call i64 @FUNC(i64 %52, i64 %.pre, i64 %53)
%55 = add i64 %.pre, %53
%56 = call i64 @FUNC(i64 %55)
%57 = trunc i64 %56 to i32
%58 = add i64 %5, 16
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
%60 = add i64 %5, 20
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = or i32 %62, 1
store i32 %63, i32* %61, align 4
%64 = load i32, i32* %33, align 8
%65 = add i32 %64, -2
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 0, i64 %40, i64 2, i64 %66)
%68 = sext i32 %65 to i64
%69 = call i64 @FUNC(i64 %0, i64 %68)
%70 = load i32, i32* %18, align 4
%71 = add i32 %70, 2
%72 = sext i32 %71 to i64
%73 = bitcast i32* %sv_0 to i64*
%74 = call i64 @FUNC(i64 %0, i64 %5, i64 0, i64 2, i64 %72, i64* nonnull %73)
%75 = trunc i64 %74 to i32
%76 = icmp eq i32 %75, 0
%77 = icmp slt i32 %75, 0
%78 = icmp eq i1 %77, false
%79 = icmp eq i1 %76, false
%80 = icmp eq i1 %78, %79
%phitmp = and i64 %74, 4294967295
store i64 %phitmp, i64* %rax.0.reg2mem
br i1 %80, label LBL_9, label LBL_12
LBL_9:
%81 = trunc i64 %67 to i8
%spec.select = select i1 %77, i64 %phitmp, i64 0
%82 = load i32, i32* %18, align 4
%83 = load i32, i32* %sv_0, align 4
%84 = add i32 %82, 2
%85 = sub i32 %84, %83
store i32 %85, i32* %18, align 4
%86 = icmp eq i8 %13, %81
store i64 %spec.select, i64* %rax.0.reg2mem
br i1 %86, label LBL_12, label LBL_10
LBL_10:
%87 = call i64 @FUNC(i64 %0, i64 1001, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%88 = call i64 @FUNC(i64 %0, i64 1002, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %phitmp, { 1, 0 }
uselistorder i32 %75, { 1, 0 }
uselistorder i64 %.pre, { 1, 2, 0 }
uselistorder i64 %40, { 1, 0, 2 }
uselistorder i32 %32, { 1, 0 }
uselistorder i8 %31, { 1, 0, 2, 3 }
uselistorder i32* %18, { 1, 0, 2, 3 }
uselistorder i64 %0, { 6, 2, 3, 4, 1, 5, 0, 7 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 2, 1, 4, 3 }
uselistorder i64 (i64, i64, i8*)* @archive_set_error, { 1, 0 }
uselistorder i32 0, { 3, 4, 0, 2, 1 }
uselistorder i64 (i64)* @archive_le32dec, { 1, 0 }
uselistorder i64 1, { 1, 0, 2, 3 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i64 (i64)* @truncated_error, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64, i64)* @__archive_read_ahead, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder label LBL_12, { 2, 3, 1, 0, 4, 5 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | ndpi_search_oracle_18963 | ndpi_search_oracle | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0))
%3 = call i16 @ntohs(i16 ptrtoint ([15 x i8]* @gv_0 to i16))
%4 = load i16, i16* inttoptr (i64 add (i64 ptrtoint ([15 x i8]* @gv_0 to i64), i64 2) to i16*), align 2
%5 = call i16 @ntohs(i16 %4)
%6 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0))
%7 = icmp ne i16 %5, 1521
%8 = icmp eq i16 %3, 1521
%9 = icmp eq i1 %8, false
%or.cond = icmp eq i1 %9, %7
br i1 %or.cond, label LBL_0.LBL_12_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %0, 16
%.pre4 = inttoptr i64 %.pre to i32*
%.pre6 = load i32, i32* %.pre4, align 4
store i32 %.pre6, i32* %.reg2mem
br label LBL_12
LBL_2:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 7
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = add i64 %12, 1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, -1
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = add i64 %12, 2
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 0
br i1 %25, label LBL_10, label LBL_5
LBL_5:
%26 = add i64 %0, 16
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp ult i32 %28, 232
store i32 %28, i32* %.reg2mem
br i1 %29, label LBL_12, label LBL_6
LBL_6:
%30 = icmp ne i8 %14, 0
%31 = icmp eq i8 %14, 1
%32 = icmp eq i1 %31, false
%or.cond3 = icmp eq i1 %30, %32
br i1 %or.cond3, label LBL_11, label LBL_7
LBL_7:
%33 = add i64 %12, 1
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = icmp eq i8 %35, 0
br i1 %36, label LBL_11, label LBL_8
LBL_8:
%37 = add i64 %12, 2
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_11, label LBL_9
LBL_9:
%42 = add i64 %12, 3
%43 = inttoptr i64 %42 to i8*
%44 = load i8, i8* %43, align 1
%45 = icmp eq i8 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%47 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
%48 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %48, i64* %rax.0.reg2mem
br label LBL_18
LBL_11:
%49 = zext i32 %28 to i64
store i64 %49, i64* %rax.0.reg2mem
br label LBL_18
LBL_12:
%.reload = load i32, i32* %.reg2mem
%50 = zext i32 %.reload to i64
%51 = icmp eq i32 %.reload, 213
%52 = icmp eq i1 %51, false
store i64 %50, i64* %rax.0.reg2mem
br i1 %52, label LBL_18, label LBL_13
LBL_13:
%53 = add i64 %0, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = zext i8 %57 to i64
%59 = icmp eq i8 %57, 0
%60 = icmp eq i1 %59, false
store i64 %58, i64* %rax.0.reg2mem
br i1 %60, label LBL_18, label LBL_14
LBL_14:
%61 = add i64 %55, 1
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = zext i8 %63 to i64
%65 = icmp eq i8 %63, -43
%66 = icmp eq i1 %65, false
store i64 %64, i64* %rax.0.reg2mem
br i1 %66, label LBL_18, label LBL_15
LBL_15:
%67 = add i64 %55, 2
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = zext i8 %69 to i64
%71 = icmp eq i8 %69, 0
%72 = icmp eq i1 %71, false
store i64 %70, i64* %rax.0.reg2mem
br i1 %72, label LBL_18, label LBL_16
LBL_16:
%73 = add i64 %55, 3
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = zext i8 %75 to i64
%77 = icmp eq i8 %75, 0
%78 = icmp eq i1 %77, false
store i64 %76, i64* %rax.0.reg2mem
br i1 %78, label LBL_18, label LBL_17
LBL_17:
%79 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
%80 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %80, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %28, { 1, 0, 2 }
uselistorder i8 %14, { 1, 0, 2 }
uselistorder i64 %1, { 3, 2, 1, 0, 4, 5 }
uselistorder i64 %0, { 2, 3, 1, 4, 5, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 6, 7, 8, 1, 2 }
uselistorder i64 (i64, i64)* @ndpi_int_oracle_add_connection, { 1, 0 }
uselistorder i64 (i64, i8*)* @NDPI_LOG_INFO, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 5, 6, 7, 8, 0, 9, 10, 1 }
uselistorder i64 2, { 1, 2, 3, 0 }
uselistorder i16 (i16)* @ntohs, { 1, 0 }
uselistorder [15 x i8]* @gv_0, { 2, 0, 1 }
uselistorder label LBL_18, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | smb2cli_session_security_mode_11546 | smb2cli_session_security_mode | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%spec.select = select i1 %5, i64 1, i64 3
%storemerge.in = select i1 %3, i64 %spec.select, i64 0
ret i64 %storemerge.in
} | 1 |
BinRealVul | php_wddx_packet_start_8947 | php_wddx_packet_start | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq i64* %arg2, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%5 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%6 = trunc i64 %arg3 to i32
%7 = call i64 @FUNC(i64 %0, i64 %3, i32 %6)
%8 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0))
%9 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0))
br label LBL_3
LBL_2:
%10 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0))
br label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0))
ret i64 %11
uselistorder i64 %0, { 0, 1, 4, 3, 2, 5, 6, 7 }
uselistorder i64 (i64, i8*)* @php_wddx_add_chunk_static, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
} | 0 |
BinRealVul | kvmppc_uvmem_migrate_to_ram_12048 | kvmppc_uvmem_migrate_to_ram | define i64 @FUNC(i64* %arg1) 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 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %5 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 %13, 4096
%15 = call i64 @FUNC(i64 %8, i64 %13, i64 %14, i64 12, i64 %10, i64 %8)
%16 = trunc i64 %15 to i32
%17 = icmp ne i32 %16, 0
%. = zext i1 %17 to i64
ret i64 %.
uselistorder i64 %8, { 1, 0 }
} | 1 |
BinRealVul | cdg_decode_frame_7743 | cdg_decode_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.shrunk.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg4 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
store i64 %5, i64* %sv_1, align 8
%8 = add i64 %5, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp sgt i32 %10, 3
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %6, i64 16, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %3, i64 %2)
store i32 -22, i32* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_2:
%13 = icmp slt i32 %10, 2053
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %6, i64 16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %3, i64 %2)
store i32 -22, i32* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_4:
%15 = add i64 %6, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %6, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
store i32 %21, i32* %rax.0.shrunk.reg2mem
br i1 %23, label LBL_5, label LBL_14
LBL_5:
%24 = add i64 %6, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = trunc i64 %4 to i32
%30 = load i64, i64* %18, align 8
%31 = add i64 %30, 24
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = mul i32 %33, %29
%35 = inttoptr i64 %30 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i64*
%38 = call i64* @memset(i64* %37, i32 0, i32 %34)
%39 = load i64, i64* %18, align 8
%40 = add i64 %39, 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i64*
%44 = call i64* @memset(i64* %43, i32 0, i32 256)
br label LBL_7
LBL_7:
%45 = call i64 @FUNC(i64* nonnull %sv_1)
%46 = call i64 @FUNC(i64* nonnull %sv_1)
%47 = load i64, i64* %sv_1, align 8
%48 = add i64 %47, 2
store i64 %48, i64* %sv_1, align 8
%49 = add i32 %10, -4
%50 = zext i32 %49 to i64
%51 = bitcast i32* %sv_0 to i64*
%52 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %51, i64 %50)
%53 = and i64 %45, 240
%54 = icmp eq i64 %53, 128
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_13, label LBL_8
LBL_8:
%56 = trunc i64 %46 to i32
%57 = and i32 %56, 240
%58 = zext i32 %57 to i64
store i64 %58, i64* @0, align 8
%cond = icmp eq i32 %57, 0
br i1 %cond, label LBL_9, label LBL_12
LBL_9:
%59 = urem i32 %7, 16
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_12, label LBL_10
LBL_10:
%62 = load i64, i64* %18, align 8
%63 = add i64 %62, 24
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = mul i32 %65, 240
%67 = load i32, i32* %sv_0, align 4
%68 = urem i32 %67, 16
%69 = inttoptr i64 %62 to i64*
%70 = load i64, i64* %69, align 8
%71 = inttoptr i64 %70 to i64*
%72 = call i64* @memset(i64* %71, i32 %68, i32 %66)
%73 = icmp eq i32 %68, 0
%74 = icmp eq i1 %73, false
br i1 %74, label LBL_12, label LBL_11
LBL_11:
%75 = ptrtoint i64* %arg2 to i64
%76 = load i64, i64* %18, align 8
%77 = call i64 @FUNC(i64 %75, i64 %76)
%78 = trunc i64 %77 to i32
%79 = icmp slt i32 %78, 0
%80 = icmp eq i1 %79, false
store i32 %78, i32* %rax.0.shrunk.reg2mem
br i1 %80, label LBL_12, label LBL_14
LBL_12:
%81 = bitcast i64* %arg3 to i32*
store i32 1, i32* %81, align 4
store i32 %10, i32* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_13:
%82 = bitcast i64* %arg3 to i32*
store i32 0, i32* %82, align 4
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_14:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32 %68, { 1, 0 }
uselistorder i64* %18, { 2, 3, 0, 1, 4 }
uselistorder i64* %sv_1, { 0, 3, 4, 1, 2, 5 }
uselistorder i64 %6, { 2, 3, 4, 1, 0 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 4, 6, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 240, { 1, 0 }
uselistorder i64 (i64*)* @bytestream_get_byte, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5 }
uselistorder i32 0, { 0, 6, 7, 1, 5, 2, 3, 4, 8, 9 }
uselistorder i32 -22, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 0, { 4, 5, 6, 7, 0, 1, 2, 3, 8 }
uselistorder label LBL_14, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_12, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | ast_for_decorator_11004 | ast_for_decorator | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg2, inttoptr (i64 1 to i64*)
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_9
LBL_1:
%3 = ptrtoint i64* %arg2 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_9
LBL_2:
%10 = add i64 %3, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = add i64 %6, -8
%16 = add i64 %15, %14
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 3
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_9
LBL_3:
%20 = ptrtoint i64* %arg1 to i64
%21 = add i64 %6, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %20, i64 %23)
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_4, label LBL_9
LBL_4:
%27 = load i32, i32* %11, align 4
%28 = icmp eq i32 %27, 3
%29 = icmp eq i1 %28, false
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_5, label LBL_8
LBL_5:
%30 = icmp eq i32 %27, 5
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64 %3)
%33 = and i64 %1, 4294967295
%34 = and i64 %32, 4294967295
%35 = call i64 @FUNC(i64 %24, i64 0, i64 0, i64 %34, i64 %33, i64 %20)
%36 = icmp eq i64 %35, 0
%37 = icmp eq i1 %36, false
store i64 %35, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %37, label LBL_8, label LBL_9
LBL_7:
%38 = load i64, i64* %5, align 8
%39 = add i64 %38, 24
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %20, i64 %41, i64 %24)
%sext = mul i64 %42, 4294967296
%43 = ashr exact i64 %sext, 32
%44 = icmp eq i64 %sext, 0
%45 = icmp eq i1 %44, false
store i64 %43, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_8, label LBL_9
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %24, { 2, 1, 0, 3 }
uselistorder i64 %20, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 3, 4, 5, 6 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_9, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder label LBL_8, { 1, 2, 0 }
} | 1 |
BinRealVul | r600_cs_packet_next_reloc_nomm_18436 | r600_cs_packet_next_reloc_nomm | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%4 = load i32, i32* %1
%5 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %6, -1
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%10 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_1 to i64*), i32 1, i32 22, %_IO_FILE* %9)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
store i64 0, i64* %arg2, align 8
%11 = ptrtoint i32* %arg1 to i64
%12 = add i64 %11, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %11, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = bitcast i32* %sv_0 to i64*
%19 = call i64 @FUNC(i64 %11, i64* nonnull %18, i32 %17)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = and i64 %19, 4294967295
store i64 %22, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%23 = load i32, i32* %16, align 4
%24 = load i32, i32* %sv_0, align 4
%25 = add i32 %23, 2
%26 = add i32 %25, %24
store i32 %26, i32* %16, align 4
%27 = icmp eq i32 %5, 3
%28 = icmp eq i32 %4, 0
%or.cond = icmp eq i1 %28, %27
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%29 = zext i32 %3 to i64
%30 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%31 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %30, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_2, i64 0, i64 0), i64 %29)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%sext = mul i64 %2, 4294967296
%32 = ashr exact i64 %sext, 28
%33 = add i64 %14, %32
%34 = inttoptr i64 %33 to i32*
%35 = add i32 %3, 1
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %11, i64 %36)
%38 = trunc i64 %37 to i32
%39 = load i32, i32* %34, align 4
%40 = icmp ugt i32 %39, %38
br i1 %40, label LBL_8, label LBL_7
LBL_7:
%41 = zext i32 %39 to i64
%42 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%43 = and i64 %37, 4294967295
%44 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %42, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_3, i64 0, i64 0), i64 %43, i64 %41)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%45 = add i64 %11, 16
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
store i64 %47, i64* %arg2, align 8
%48 = add i64 %33, 8
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = mul i64 %37, 4
%52 = add i64 %51, 12
%53 = and i64 %52, 17179869180
%54 = add i64 %50, %53
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = zext i32 %56 to i64
%58 = mul i64 %57, 4294967296
%59 = inttoptr i64 %36 to i64*
store i64 %58, i64* %59, align 8
%60 = load i64, i64* %49, align 8
%61 = and i64 %51, 17179869180
%62 = add i64 %60, %61
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = or i32 %64, %35
%66 = zext i32 %65 to i64
store i64 %66, i64* %59, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %51, { 1, 0 }
uselistorder i32* %16, { 1, 0, 2 }
uselistorder i64 %11, { 0, 1, 3, 2, 4 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i32* %1, { 2, 1, 0 }
uselistorder i64 0, { 0, 3, 4, 5, 6, 8, 1, 2, 7 }
uselistorder i64 4294967274, { 2, 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 2, 1, 0 }
} | 1 |
BinRealVul | btif_config_flush_6174 | btif_config_flush | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0))
br label LBL_2
LBL_2:
%3 = load i64, i64* @gv_4, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %.reg2mem
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i32 17, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i64, i64* @gv_4, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%6 = call i64 @FUNC(i64 %.reload)
%7 = call i64 @FUNC()
ret i64 %7
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | bdrv_getlength_16501 | bdrv_getlength | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp slt i64 %1, 0
%3 = mul i64 %1, 512
%storemerge = select i1 %2, i64 %1, i64 %3
ret i64 %storemerge
uselistorder i64 %1, { 1, 0, 2 }
} | 1 |
BinRealVul | dv_extract_pack_8862 | dv_extract_pack | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 2
store i32 2, i32* %.pre-phi.reg2mem
store i64 453, i64* %sv_0.0.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = icmp ult i32 %0, 3
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_5
LBL_2:
store i32 0, i32* %.pre-phi.reg2mem
store i64 4323, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
switch i32 %0, label LBL_5 [
i32 0, label LBL_4
i32 1, label LBL_3
]
LBL_3:
store i32 1, i32* %.pre-phi.reg2mem
store i64 5603, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%3 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%4 = add i64 %sv_0.0.reload, %3
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = zext i8 %6 to i32
%8 = icmp eq i32 %.pre-phi.reload, %7
%9 = icmp eq i1 %8, false
%. = select i1 %9, i64 0, i64 %4
store i64 %., 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 i32* %.pre-phi.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | opt_vstats_825 | opt_vstats | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%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 = icmp eq %tm* %3, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i32* @__errno_location()
%7 = load i32, i32* %6, align 4
%8 = sub i32 0, %7
%9 = zext i32 %8 to i64
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%10 = getelementptr inbounds %tm, %tm* %3, i64 0, i32 0
%11 = load i32, i32* %10, align 4
%12 = ptrtoint %tm* %3 to i64
%13 = add i64 %12, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %12, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %11 to i64
%20 = zext i32 %15 to i64
%21 = zext i32 %18 to i64
%22 = bitcast i64* %sv_0 to i8*
%23 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %22, i32 40, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %21, i64 %20, i64 %19)
%24 = call i64 @FUNC(i64 0, i64 %arg2, i64* nonnull %sv_0)
store i64 %24, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder %tm* %3, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | read_ts_14999 | read_ts | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i32, align 4
%sv_6 = alloca i32, align 4
%sv_7 = alloca i32, align 4
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 (i8*, i8*, ...) @sscanf(i8* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i32* nonnull %sv_4, i32* nonnull %sv_5, i32* nonnull %sv_6, i32* nonnull %sv_7, i32* nonnull %sv_0, i32* nonnull %sv_1, i32* nonnull %sv_2, i32* nonnull %sv_3)
%2 = icmp eq i32 %1, 8
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i32, i32* %sv_0, align 4
%5 = mul i32 %4, 3600
%6 = load i32, i32* %sv_1, align 4
%7 = mul i32 %6, 60
%8 = add i32 %7, %5
%9 = load i32, i32* %sv_2, align 4
%10 = add i32 %8, %9
%11 = mul i32 %10, 100
%12 = load i32, i32* %sv_3, align 4
%13 = load i32, i32* %sv_4, align 4
%14 = mul i32 %13, 3600
%15 = load i32, i32* %sv_5, align 4
%16 = mul i32 %15, 60
%17 = add i32 %16, %14
%18 = load i32, i32* %sv_6, align 4
%19 = add i32 %17, %18
%20 = mul i32 %19, 100
%21 = load i32, i32* %sv_7, align 4
%22 = add i32 %20, %21
%23 = sext i32 %22 to i64
store i64 %23, i64* %arg2, align 8
%24 = sub i32 %12, ptrtoint ([24 x i8]* @gv_0 to i32)
%25 = add i32 %24, %11
%26 = bitcast i64* %arg3 to i32*
store i32 %25, i32* %26, 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* %sv_3, { 1, 0 }
uselistorder i32* %sv_2, { 1, 0 }
uselistorder i32* %sv_1, { 1, 0 }
uselistorder i32* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | crypto_blkcipher_show_8726 | crypto_blkcipher_show | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
%8 = and i64 %3, 4294967295
%9 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %8, i64 %5, i64 %2, i64 %1)
%10 = ptrtoint i32* %arg2 to i64
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 %5, i64 %2, i64 %1)
%16 = add i64 %10, 12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i64 %19, i64 %5, i64 %2, i64 %1)
%21 = add i64 %10, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i64 %24, i64 %5, i64 %2, i64 %1)
%26 = add i64 %10, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
%spec.select = select i1 %30, i64 %28, i64 ptrtoint ([10 x i8]* @gv_5 to i64)
%31 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_6, i64 0, i64 0), i64 %spec.select, i64 %6, i64 %2, i64 %1)
ret i64 %31
uselistorder i64 %5, { 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | verify_irqchip_in_kernel_14280 | verify_irqchip_in_kernel | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0))
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | process_frame_obj_12137 | process_frame_obj | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.pre-phi22.reg2mem = alloca i64*
%.pre-phi18.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 16
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %5)
%8 = trunc i64 %7 to i32
%sext8 = mul i32 %8, 65536
%9 = ashr exact i32 %sext8, 16
%10 = call i64 @FUNC(i64 %5)
%11 = trunc i64 %10 to i32
%sext6 = mul i32 %11, 65536
%12 = ashr exact i32 %sext6, 16
%13 = call i64 @FUNC(i64 %5)
%14 = trunc i64 %13 to i32
%sext9 = mul i32 %14, 65536
%15 = ashr exact i32 %sext9, 16
%16 = call i64 @FUNC(i64 %5)
%17 = trunc i64 %16 to i32
%sext7 = mul i32 %17, 65536
%18 = ashr exact i32 %sext7, 16
%19 = and i64 %3, 4294967295
%20 = urem i64 %13, 65536
%21 = urem i64 %7, 65536
%22 = add nuw nsw i64 %20, %21
%23 = icmp ugt i64 %22, %19
%.pre = add i64 %4, 4
%.pre11 = inttoptr i64 %.pre to i32*
br i1 %23, label LBL_0.LBL_4_crit_edge, label LBL_2
LBL_1:
%.pre13 = urem i32 %18, 65536
%.pre15 = urem i32 %12, 65536
%.pre17 = add nuw nsw i32 %.pre13, %.pre15
%.pre23 = load i32, i32* %.pre11, align 4
store i32 %.pre23, i32* %.reg2mem
store i32 %.pre17, i32* %.pre-phi18.reg2mem
br label LBL_4
LBL_2:
%24 = load i32, i32* %.pre11, align 4
%25 = urem i32 %12, 65536
%26 = urem i32 %18, 65536
%27 = add nuw nsw i32 %26, %25
%28 = icmp ult i32 %24, %27
store i32 %24, i32* %.reg2mem
store i32 %27, i32* %.pre-phi18.reg2mem
br i1 %28, label LBL_4, label LBL_2.LBL_7_crit_edge
LBL_3:
%29 = zext i32 %25 to i64
%.pre19 = add i64 %4, 8
%.pre21 = inttoptr i64 %.pre19 to i64*
store i64* %.pre21, i64** %.pre-phi22.reg2mem
store i64 %29, i64* %rcx.0.reg2mem
br label LBL_7
LBL_4:
%30 = trunc i64 %3 to i32
%.pre-phi18.reload = load i32, i32* %.pre-phi18.reg2mem
%.reload = load i32, i32* %.reg2mem
%31 = add i64 %4, 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = sub i32 %.reload, %.pre-phi18.reload
%35 = xor i32 %34, -2147483648
%36 = and i32 %35, %.reload
%37 = icmp slt i32 %36, 0
%38 = icmp slt i32 %34, 0
%39 = icmp eq i1 %38, %37
%40 = select i1 %39, i32 %.reload, i32 %.pre-phi18.reload
%41 = urem i32 %15, 65536
%42 = urem i32 %9, 65536
%43 = add nuw nsw i32 %41, %42
%44 = sub i32 %30, %43
%45 = xor i32 %44, -2147483648
%46 = and i32 %45, %30
%47 = icmp slt i32 %46, 0
%48 = icmp slt i32 %44, 0
%49 = icmp eq i1 %48, %47
%50 = select i1 %49, i32 %30, i32 %43
%51 = zext i32 %50 to i64
%52 = call i64 @FUNC(i64 %51, i32 %40, i64 0, i64 %33)
%53 = trunc i64 %52 to i32
%54 = icmp slt i32 %53, 0
%55 = icmp eq i1 %54, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %55, label LBL_5, label LBL_16
LBL_5:
%56 = load i32, i32* %.pre11, align 4
%57 = sub i32 %56, %.pre-phi18.reload
%58 = xor i32 %57, -2147483648
%59 = and i32 %58, %56
%60 = icmp slt i32 %59, 0
%61 = icmp slt i32 %57, 0
%62 = icmp eq i1 %61, %60
%63 = select i1 %62, i32 %56, i32 %.pre-phi18.reload
%64 = load i64, i64* %32, align 8
%65 = zext i32 %63 to i64
%66 = call i64 @FUNC(i64 %64, i64 %51, i64 %65)
%67 = load i32, i32* %.pre11, align 4
%68 = sub i32 %67, %.pre-phi18.reload
%69 = xor i32 %68, -2147483648
%70 = and i32 %69, %67
%71 = icmp slt i32 %70, 0
%72 = icmp slt i32 %68, 0
%73 = icmp eq i1 %72, %71
%74 = select i1 %73, i32 %67, i32 %.pre-phi18.reload
%75 = zext i32 %74 to i64
%76 = call i64 @FUNC(i64 %4, i64 %51, i64 %75)
%77 = call i64 @FUNC(i64 %4)
%78 = trunc i64 %77 to i32
%79 = icmp eq i32 %78, 0
store i64* %32, i64** %.pre-phi22.reg2mem
store i64 %51, i64* %rcx.0.reg2mem
br i1 %79, label LBL_7, label LBL_6
LBL_6:
%80 = load i64, i64* %32, align 8
%81 = call i64 @FUNC(i64 %80, i64 16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %51, i64 %2, i64 %1)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_16
LBL_7:
%82 = trunc i64 %6 to i32
%sext = mul i32 %82, 65536
%83 = ashr exact i32 %sext, 16
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%.pre-phi22.reload = load i64*, i64** %.pre-phi22.reg2mem
%84 = call i64 @FUNC(i64 %5, i64 4)
%85 = trunc i32 %83 to i16
%86 = load i64, i64* %.pre-phi22.reload, align 8
%87 = call i64 @FUNC(i64 %86, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i16 %85, i64 %rcx.0.reload, i64 %2, i64 %1)
%88 = urem i32 %83, 65536
%89 = icmp eq i32 %88, 47
br i1 %89, label LBL_14, label LBL_8
LBL_8:
%90 = icmp ugt i32 %88, 47
br i1 %90, label LBL_15, label LBL_9
LBL_9:
%91 = icmp eq i32 %88, 37
br i1 %91, label LBL_13, label LBL_10
LBL_10:
%92 = icmp ugt i32 %88, 37
br i1 %92, label LBL_15, label LBL_11
LBL_11:
%93 = icmp ne i32 %88, 1
%94 = icmp eq i32 %88, 3
%95 = icmp eq i1 %94, false
%or.cond = icmp eq i1 %93, %95
br i1 %or.cond, label LBL_15, label LBL_12
LBL_12:
%96 = trunc i32 %15 to i16
%97 = trunc i32 %9 to i16
%98 = trunc i32 %12 to i16
%99 = urem i32 %18, 65536
%100 = zext i32 %99 to i64
%101 = call i64 @FUNC(i64 %4, i16 %98, i16 %97, i16 %96, i64 %100)
store i64 %101, i64* %rax.0.reg2mem
br label LBL_16
LBL_13:
%102 = trunc i32 %15 to i16
%103 = trunc i32 %9 to i16
%104 = trunc i32 %12 to i16
%105 = urem i32 %18, 65536
%106 = zext i32 %105 to i64
%107 = call i64 @FUNC(i64 %4, i16 %104, i16 %103, i16 %102, i64 %106)
store i64 %107, i64* %rax.0.reg2mem
br label LBL_16
LBL_14:
%108 = trunc i32 %15 to i16
%109 = trunc i32 %9 to i16
%110 = trunc i32 %12 to i16
%111 = urem i32 %18, 65536
%112 = zext i32 %111 to i64
%113 = call i64 @FUNC(i64 %4, i16 %110, i16 %109, i16 %108, i64 %112)
store i64 %113, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%114 = load i64, i64* %.pre-phi22.reload, align 8
%115 = call i64 @FUNC(i64 %114, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i16 %85, i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 4294967294, 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 %88, { 5, 2, 4, 1, 3, 0 }
uselistorder i64 %rcx.0.reload, { 1, 0 }
uselistorder i32 %68, { 1, 0 }
uselistorder i32 %67, { 1, 0, 2 }
uselistorder i32 %57, { 1, 0 }
uselistorder i32 %56, { 1, 0, 2 }
uselistorder i64 %51, { 2, 0, 1, 3, 4 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i64* %32, { 1, 0, 2, 3 }
uselistorder i32 %.reload, { 1, 0, 2 }
uselistorder i32 %.pre-phi18.reload, { 1, 0, 3, 2, 4, 5 }
uselistorder i32 %30, { 1, 0, 2 }
uselistorder i32* %.pre11, { 1, 2, 3, 0 }
uselistorder i32 %15, { 3, 2, 1, 0 }
uselistorder i32 %12, { 4, 3, 2, 0, 1 }
uselistorder i32 %9, { 3, 2, 1, 0 }
uselistorder i64 %4, { 4, 3, 2, 6, 5, 7, 0, 1, 8 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 16, { 4, 2, 0, 3, 1 }
uselistorder i32 65536, { 5, 6, 7, 8, 4, 9, 10, 11, 12, 13, 14, 0, 1, 2, 3 }
uselistorder i64 (i64)* @bytestream2_get_le16u, { 4, 3, 2, 1, 0 }
uselistorder label LBL_16, { 1, 2, 3, 4, 5, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_index_table_segment_17277 | mxf_read_index_table_segment | 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 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %arg3, 4294951163
%6 = and i64 %5, 4294967295
store i64 %6, i64* @0, align 8
%trunc = trunc i64 %5 to i32
store i64 0, i64* %rax.0.reg2mem
switch i32 %trunc, label LBL_10 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_6
i32 6, label LBL_7
i32 7, label LBL_8
i32 8, label LBL_9
]
LBL_1:
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = and i64 %2, 4294967295
%11 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = add i64 %4, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = and i64 %12, 4294967295
%17 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %16, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_3:
%18 = call i64 @FUNC(i64 %3)
%19 = trunc i64 %18 to i32
%20 = add i64 %4, 8
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = and i64 %18, 4294967295
%23 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %22, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%24 = call i64 @FUNC(i64 %3)
%25 = trunc i64 %24 to i8
%26 = add i64 %4, 12
%27 = inttoptr i64 %26 to i8*
store i8 %25, i8* %27, align 1
%sext2 = mul i64 %24, 72057594037927936
%28 = ashr exact i64 %sext2, 56
%29 = and i64 %28, 4294967295
%30 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0), i64 %29, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%31 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_4, i64 0, i64 0), i64 %arg3, i64 %arg4, i64 %arg5, i64 %1)
%32 = call i64 @FUNC(i64 %3, i64 %4)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%33 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i64 %arg3, i64 %arg4, i64 %arg5, i64 %1)
%34 = call i64 @FUNC(i64 %3, i64 %4)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
%35 = call i64 @FUNC(i64 %3)
%36 = trunc i64 %35 to i32
%37 = add i64 %4, 16
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
%39 = call i64 @FUNC(i64 %3)
%40 = trunc i64 %39 to i32
%41 = add i64 %4, 20
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i32, i32* %38, align 4
%44 = and i64 %39, 4294967295
%45 = zext i32 %43 to i64
%46 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_6, i64 0, i64 0), i64 %45, i64 %44, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%47 = call i64 @FUNC(i64 %3)
%sext1 = mul i64 %47, 4294967296
%48 = ashr exact i64 %sext1, 32
%49 = add i64 %4, 24
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
%51 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_7, i64 0, i64 0), i64 %48, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%52 = call i64 @FUNC(i64 %3)
%sext = mul i64 %52, 4294967296
%53 = ashr exact i64 %sext, 32
%54 = add i64 %4, 32
%55 = inttoptr i64 %54 to i64*
store i64 %53, i64* %55, align 8
%56 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_8, i64 0, i64 0), i64 %53, i64 %arg4, i64 %arg5, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 8, 7, 5, 6, 4, 3, 2, 1, 0 }
uselistorder i64 %3, { 9, 8, 6, 7, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 6, 10, 9, 5, 4, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 32, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_rb64, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @av_dlog, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @avio_rb32, { 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 3, 4, 2, 1, 0, 5 }
uselistorder i64 %arg5, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg4, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_10, { 7, 6, 5, 8, 9, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | vu_queue_flush_17215 | vu_queue_flush | define i64 @FUNC(i8* %arg1, i16* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = urem i64 %1, 256
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%sext = mul i64 %arg3, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = trunc i64 %2 to i16
%10 = call i64 @FUNC()
%11 = trunc i64 %8 to i16
%12 = add i16 %9, %11
%13 = ptrtoint i16* %arg2 to i64
%14 = ptrtoint i8* %arg1 to i64
%15 = call i64 @FUNC(i64 %14, i64 %13, i16 %12)
%16 = add i64 %13, 2
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = sub i16 %18, %11
store i16 %19, i16* %17, align 2
%20 = add i64 %13, 4
%21 = inttoptr i64 %20 to i16*
%22 = load i16, i16* %21, align 2
%23 = sub i16 %12, %22
%24 = sext i16 %23 to i32
%25 = trunc i64 %8 to i32
%26 = urem i32 %25, 65536
%27 = sub nsw i32 %24, %26
%28 = xor i32 %27, -2147483648
%29 = and i32 %28, %24
%30 = icmp slt i32 %29, 0
%31 = icmp slt i32 %27, 0
%32 = icmp ne i1 %31, %30
%33 = zext i1 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
store i64 %34, i64* %rax.0.reg2mem
br i1 %36, label LBL_3, label LBL_2
LBL_2:
%37 = add i64 %13, 6
%38 = inttoptr i64 %37 to i8*
store i8 0, i8* %38, align 1
store i64 %13, 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 %27, { 1, 0 }
uselistorder i16 %11, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @unlikely, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | b43_rng_read_8740 | b43_rng_read | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %4, false
store i64 4294967277, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp slt i32 %7, 0
%10 = icmp eq i1 %9, false
%11 = icmp eq i1 %8, false
%12 = icmp eq i1 %10, %11
%13 = icmp eq i1 %12, false
store i64 4294967277, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %1, i64 4660)
%15 = trunc i64 %14 to i32
%16 = bitcast i64* %arg2 to i32*
store i32 %15, i32* %16, align 4
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = call i64 @FUNC(i64 %1)
ret i64 %sv_0.0.reload
uselistorder i32 %7, { 1, 0 }
uselistorder i1 false, { 0, 3, 2, 1, 4 }
} | 0 |
BinRealVul | get_write_chunk_size_12545 | get_write_chunk_size | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = mul i64 %2, 16
%4 = and i64 %3, 4294967280
%5 = or i64 %4, 4
ret i64 %5
} | 1 |
BinRealVul | xhci_reset_3078 | xhci_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i32
%.reg2mem7 = alloca i64
%storemerge25.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge36.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = call i64 @FUNC()
%4 = load i32, i32* %2, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%9 = add i64 %1, 4
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
store i32 1, i32* %2, align 4
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add i64 %1, 12
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %1, 16
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %1, 20
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %1, 24
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %1, 28
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%23 = add i64 %1, 32
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
store i32 0, i32* %storemerge36.reg2mem
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%storemerge36.reload = load i32, i32* %storemerge36.reg2mem
%27 = add i32 %storemerge36.reload, 1
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %1, i64 %28)
%30 = load i32, i32* %24, align 4
%31 = zext i32 %30 to i64
%32 = sext i32 %27 to i64
%33 = icmp slt i64 %32, %31
store i32 %27, i32* %storemerge36.reg2mem
br i1 %33, label LBL_3, label LBL_4
LBL_4:
%34 = add i64 %1, 36
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_7, label LBL_5
LBL_5:
%38 = add i64 %1, 824
%39 = inttoptr i64 %38 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge25.reg2mem
br label LBL_6
LBL_6:
%storemerge25.reload = load i32, i32* %storemerge25.reg2mem
%.reload = load i64, i64* %.reg2mem
%40 = load i64, i64* %39, align 8
%41 = add i64 %40, %.reload
%42 = call i64 @FUNC(i64 %41, i64 0)
%43 = add i32 %storemerge25.reload, 1
%44 = load i32, i32* %35, align 4
%45 = zext i32 %44 to i64
%46 = sext i32 %43 to i64
%47 = icmp slt i64 %46, %45
store i64 %46, i64* %.reg2mem
store i32 %43, i32* %storemerge25.reg2mem
br i1 %47, label LBL_6, label LBL_7
LBL_7:
%48 = add i64 %1, 40
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 0
store i64 0, i64* %.reg2mem7
store i32 0, i32* %storemerge4.reg2mem
br i1 %51, label LBL_9, label LBL_8
LBL_8:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload8 = load i64, i64* %.reg2mem7
%52 = mul nsw i64 %.reload8, 48
%53 = add i64 %52, %1
%54 = add i64 %53, 44
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = add i64 %53, 48
%57 = inttoptr i64 %56 to i32*
store i32 0, i32* %57, align 4
%58 = add i64 %53, 52
%59 = inttoptr i64 %58 to i32*
store i32 0, i32* %59, align 4
%60 = add i64 %53, 56
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = add i64 %53, 60
%63 = inttoptr i64 %62 to i32*
store i32 0, i32* %63, align 4
%64 = add i64 %53, 64
%65 = inttoptr i64 %64 to i32*
store i32 0, i32* %65, align 4
%66 = add i64 %53, 68
%67 = inttoptr i64 %66 to i32*
store i32 0, i32* %67, align 4
%68 = add i64 %53, 72
%69 = inttoptr i64 %68 to i32*
store i32 0, i32* %69, align 4
%70 = add i64 %53, 76
%71 = inttoptr i64 %70 to i32*
store i32 0, i32* %71, align 4
%72 = add i64 %53, 80
%73 = inttoptr i64 %72 to i32*
store i32 1, i32* %73, align 4
%74 = add i64 %53, 84
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
%76 = add i64 %53, 88
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = add i32 %storemerge4.reload, 1
%79 = load i32, i32* %49, align 4
%80 = zext i32 %79 to i64
%81 = sext i32 %78 to i64
%82 = icmp slt i64 %81, %80
store i64 %81, i64* %.reg2mem7
store i32 %78, i32* %storemerge4.reg2mem
br i1 %82, label LBL_8, label LBL_9
LBL_9:
%83 = call i64 @FUNC(i64 0)
%84 = add i64 %1, 816
%85 = inttoptr i64 %84 to i64*
store i64 %83, i64* %85, align 8
%86 = call i64 @FUNC(i64 %1)
ret i64 %86
uselistorder i64 %53, { 4, 5, 6, 7, 3, 2, 1, 0, 8, 9, 10, 11 }
uselistorder i32* %49, { 1, 0 }
uselistorder i32* %35, { 1, 0 }
uselistorder i32* %24, { 1, 0 }
uselistorder i64 %1, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
uselistorder i32* %storemerge36.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge25.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem7, { 2, 0, 1 }
uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64 48, { 1, 0 }
uselistorder i32 0, { 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0, 3, 1, 4, 2, 5, 17, 18, 19, 20, 21, 22, 23, 24 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | nft_match_set_mtchk_param_5332 | nft_match_set_mtchk_param | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64* %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg5 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg6, 72057594037927936
%3 = ashr exact i64 %sext, 56
%sext2 = mul i64 %arg7, 72057594037927936
%4 = ashr exact i64 %sext2, 56
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
store i64 %1, i64* %6, align 8
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
switch i32 %11, label LBL_3 [
i32 2, label LBL_1
i32 10, label LBL_2
]
LBL_1:
%12 = trunc i64 %3 to i8
%13 = bitcast i64* %arg5 to i8*
store i8 %12, i8* %13, align 1
%14 = trunc i64 %4 to i32
%15 = urem i32 %14, 256
%16 = add i64 %0, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
br label LBL_3
LBL_2:
%18 = trunc i64 %3 to i8
%19 = bitcast i64* %arg5 to i8*
store i8 %18, i8* %19, align 1
%20 = trunc i64 %4 to i32
%21 = urem i32 %20, 256
%22 = add i64 %0, 4
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
br label LBL_3
LBL_3:
%24 = ptrtoint i64* %arg3 to i64
%25 = add i64 %2, 16
%26 = inttoptr i64 %25 to i64*
store i64 %0, i64* %26, align 8
%27 = add i64 %2, 24
%28 = inttoptr i64 %27 to i64*
store i64 %24, i64* %28, align 8
%29 = add i64 %2, 32
%30 = inttoptr i64 %29 to i64*
store i64 %arg4, i64* %30, align 8
%31 = add i64 %1, 16
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = urem i32 %35, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_5, label LBL_4
LBL_4:
%38 = call i64 @FUNC(i64 %33)
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = urem i32 %42, 32
%44 = shl i32 1, %43
%45 = add i64 %2, 40
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
br label LBL_6
LBL_5:
%47 = add i64 %2, 40
%48 = inttoptr i64 %47 to i32*
store i32 0, i32* %48, align 4
br label LBL_6
LBL_6:
%49 = load i64, i64* %8, align 8
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = add i64 %2, 44
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
ret i64 %2
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %arg5, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | shut_19217 | shut | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i8*, align 8
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC()
%5 = icmp eq i64 %3, 0
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = inttoptr i64 %3 to i8*
%7 = call i32 @strcmp(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%10 = call i32 @fwrite(i64* bitcast ([39 x i8]* @gv_2 to i64*), i32 1, i32 38, %_IO_FILE* %9)
call void @exit(i32 1)
unreachable
LBL_3:
%sext = mul i64 %arg1, 4294967296
%11 = ashr exact i64 %sext, 32
%12 = inttoptr i64 %3 to i64*
call void @free(i64* %12)
%13 = call i32 @getuid()
%14 = icmp eq i32 %13, 0
%.pre = and i64 %11, 4294967295
br i1 %14, label LBL_7, label LBL_5
LBL_4:
%15 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0))
unreachable
LBL_5:
%16 = call i64 @FUNC(i64 %.pre)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %13, %17
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%20 = call i32 @fwrite(i64* bitcast ([80 x i8]* @gv_4 to i64*), i32 1, i32 79, %_IO_FILE* %19)
call void @exit(i32 1)
unreachable
LBL_7:
%21 = trunc i64 %11 to i32
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i32 %21)
%23 = call i32 @kill(i32 %21, i32 15)
%24 = call i32 (i8**, i8*, ...) @asprintf(i8** nonnull %sv_3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_6, i64 0, i64 0), i64 %.pre)
%25 = icmp eq i32 %24, -1
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0))
unreachable
LBL_9:
%28 = call i32 @usleep(i32 200000)
store i32 10, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_10:
%29 = call i32 @sleep(i32 1)
%30 = load i8*, i8** %sv_3, align 8
%31 = call %_IO_FILE* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_8, i64 0, i64 0))
%32 = icmp eq %_IO_FILE* %31, null
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_11, label LBL_13
LBL_11:
%34 = add nsw i32 %sv_0.0.reload, -1
%35 = call i32 @fread(i64* nonnull %sv_2, i32 1, i32 1, %_IO_FILE* %31)
%36 = call i32 @fclose(%_IO_FILE* %31)
%37 = icmp eq i32 %35, 0
%38 = icmp eq i1 %37, false
store i32 %34, i32* %sv_0.0.reg2mem
br i1 %38, label LBL_12, label LBL_13
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%39 = icmp eq i32 %sv_0.0.reload, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_10, label LBL_14
LBL_13:
%41 = load i8*, i8** %sv_3, align 8
%42 = bitcast i8* %41 to i64*
call void @free(i64* %42)
br label LBL_17
LBL_14:
%43 = load i8*, i8** %sv_3, align 8
%44 = bitcast i8* %43 to i64*
call void @free(i64* %44)
%45 = bitcast i32* %sv_1 to i64*
%46 = call i64 @FUNC(i64 %.pre, i64* nonnull %45)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_16, label LBL_15
LBL_15:
%50 = load i32, i32* %sv_1, align 4
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_9, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %sv_1, align 4
%53 = call i32 @kill(i32 %52, i32 9)
br label LBL_16
LBL_16:
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_9, i64 0, i64 0), i32 %21)
%55 = call i32 @kill(i32 %21, i32 9)
br label LBL_17
LBL_17:
%56 = call i64 @FUNC()
%57 = call i64 @FUNC(i64 %.pre)
ret i64 %57
uselistorder %_IO_FILE* %31, { 1, 0, 2 }
uselistorder i32 %21, { 1, 0, 2, 3 }
uselistorder i64 %.pre, { 1, 0, 2, 3 }
uselistorder i64 %11, { 1, 0 }
uselistorder i8** %sv_3, { 0, 2, 1, 3 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i1 false, { 2, 3, 0, 1, 4 }
uselistorder i32 (i32, i32)* @kill, { 2, 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 2, 1, 0 }
uselistorder i64 (i8*)* @errExit, { 1, 0 }
uselistorder void (i64*)* @free, { 0, 2, 1 }
uselistorder void (i32)* @exit, { 2, 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3, 4 }
uselistorder i64 ()* @EUID_ROOT, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | open_self_cmdline_16124 | open_self_cmdline | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i32
%sv_0.14.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i64
%sv_2.06.reg2mem = alloca i32
%sv_1.0.in.reg2mem = alloca i64*
%sv_3 = alloca i64, align 8
%0 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i32 0)
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %sv_3 to i64
%4 = trunc i64 %arg2 to i32
store i32 0, i32* %sv_0.0.ph.reg2mem
br label LBL_3.outer
LBL_2:
%5 = zext i32 %0 to i64
store i64 %5, i64* %rax.0.reg2mem
br label LBL_14
LBL_3:
%6 = call i32 @read(i32 %0, i64* nonnull %sv_3, i32 128)
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = call i32 @close(i32 %0)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%10 = icmp eq i32 %6, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_7, label LBL_6
LBL_6:
%12 = call i32 @close(i32 %0)
%13 = sext i32 %12 to i64
store i64 %13, i64* %rax.0.reg2mem
br label LBL_14
LBL_7:
store i64* %sv_3, i64** %sv_1.0.in.reg2mem
br i1 %25, label LBL_10, label LBL_8
LBL_8:
%14 = call i64* @memchr(i64* nonnull %sv_3, i32 0, i32 128)
%15 = icmp eq i64* %14, null
store i64* null, i64** %sv_1.0.in.reg2mem
br i1 %15, label LBL_10, label LBL_9
LBL_9:
%16 = ptrtoint i64* %14 to i64
%17 = add i64 %16, 1
%18 = sub i64 %3, %17
%19 = trunc i64 %18 to i32
%20 = add i32 %6, %19
store i32 %20, i32* %sv_2.06.reg2mem
store i64 %17, i64* %sv_1.05.reg2mem
store i32 1, i32* %sv_0.14.reg2mem
br label LBL_12
LBL_10:
br i1 %26, label LBL_3, label LBL_11
LBL_11:
%sv_1.0.in.reload = load i64*, i64** %sv_1.0.in.reg2mem
%sv_1.0 = ptrtoint i64* %sv_1.0.in.reload to i64
store i32 %6, i32* %sv_2.06.reg2mem
store i64 %sv_1.0, i64* %sv_1.05.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.14.reg2mem
br label LBL_12
LBL_12:
%sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%sv_2.06.reload = load i32, i32* %sv_2.06.reg2mem
%21 = inttoptr i64 %sv_1.05.reload to i64*
%22 = call i32 @write(i32 %4, i64* %21, i32 %sv_2.06.reload)
%23 = icmp eq i32 %sv_2.06.reload, %22
store i32 %sv_0.14.reload, i32* %sv_0.0.ph.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_3.outer, label LBL_14
LBL_13:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%24 = trunc i32 %sv_0.0.ph.reload to i8
%25 = icmp eq i8 %24, 1
%26 = icmp eq i8 %24, 0
br label LBL_3
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_3, { 2, 0, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i32 0, { 3, 1, 2, 0, 5, 4 }
uselistorder i32 1, { 2, 7, 6, 5, 4, 3, 1, 0 }
uselistorder label LBL_3.outer, { 1, 0 }
} | 1 |
BinRealVul | gf_isom_av1_config_get_7242 | gf_isom_av1_config_get | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i32, align 4
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %arg1, i64 %1, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = trunc i64 %0 to i32
%6 = bitcast i32* %sv_1 to i64*
%7 = call i64 @FUNC(i64 %arg1, i32 %5, i64 0, i64 1, i64* nonnull %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = load i32, i32* %sv_1, align 4
%12 = sext i32 %11 to i64
store i64 %12, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = and i64 %sv_0.0.reload, 4294967295
%14 = call i64 @FUNC(i64 %arg1, i64 %13)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_9, label LBL_4
LBL_4:
%16 = inttoptr i64 %14 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp ne i64 %17, 0
%19 = icmp eq i32 %arg3, 0
%20 = icmp eq i1 %19, false
%or.cond = icmp eq i1 %20, %18
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_9
LBL_5:
%21 = add i32 %arg3, -1
%22 = inttoptr i64 %17 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = zext i32 %21 to i64
%31 = call i64 @FUNC(i64 %29, i64 %30)
%32 = icmp eq i64 %31, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_9, label LBL_6
LBL_6:
%33 = inttoptr i64 %31 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %35, label LBL_9, label LBL_7
LBL_7:
%36 = inttoptr i64 %34 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_8, label LBL_9
LBL_8:
%40 = call i64 @FUNC(i64 %37)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 3, 2, 1, 5, 4 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_9, { 5, 2, 1, 0, 4, 3 }
} | 0 |
BinRealVul | rotate_backups_8688 | rotate_backups | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i32, i32* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = inttoptr i64 %arg1 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = load i32, i32* inttoptr (i64 4210780 to i32*), align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = bitcast i64* %sv_0 to %stat*
%8 = call i32 @stat(i8* %2, %stat* nonnull %7)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = and i32 %1, 61440
%12 = zext i32 %11 to i64
%13 = icmp eq i32 %11, 32768
%14 = icmp eq i1 %13, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_9, label LBL_2
LBL_2:
%15 = ptrtoint i64* %sv_1 to i64
%16 = trunc i64 %6 to i32
%17 = add i32 %3, 2
%18 = add i32 %17, %16
%19 = sext i32 %18 to i64
%20 = add nsw i64 %19, 23
%21 = udiv i64 %20, 16
%22 = mul i64 %21, 16
%23 = sub i64 %15, %22
%24 = sub i64 15, %22
%25 = add i64 %24, %23
%26 = and i64 %25, -16
%27 = inttoptr i64 %26 to i8*
%28 = load i32, i32* @gv_0, align 4
%29 = icmp sgt i32 %28, 1
br i1 %29, label LBL_3, label LBL_7
LBL_3:
%30 = add i64 %23, 15
%31 = and i64 %30, -16
%32 = inttoptr i64 %31 to i8*
%33 = zext i32 %28 to i64
store i64 %33, i64* %indvars.iv.reg2mem
store i32 %28, i32* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %27, i32 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* %2, i8* bitcast (i8** @gv_2 to i8*), i64 %indvars.iv.reload)
%35 = add nsw i32 %storemerge3.reload, -1
%36 = zext i32 %35 to i64
%37 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %32, i32 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* %2, i8* bitcast (i8** @gv_2 to i8*), i64 %36)
%38 = call i32 @rename(i8* %32, i8* %27)
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_6, label LBL_5
LBL_5:
%40 = call i32* @__errno_location()
%41 = load i32, i32* %40, align 4
%42 = call i8* @strerror(i32 %41)
%43 = ptrtoint i8* %42 to i64
%44 = call i32* @__errno_location()
%45 = load i32, i32* %44, align 4
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i64 %31, i64 %26, i64 %46, i64 %43)
br label LBL_6
LBL_6:
%48 = icmp sgt i32 %35, 1
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %35, i32* %storemerge3.reg2mem
br i1 %48, label LBL_4, label LBL_7
LBL_7:
%49 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %27, i32 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* %2, i8* bitcast (i8** @gv_2 to i8*), i64 1)
%50 = call i32 @rename(i8* %2, i8* %27)
%51 = icmp eq i32 %50, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %51, label LBL_9, label LBL_8
LBL_8:
%52 = call i32* @__errno_location()
%53 = load i32, i32* %52, align 4
%54 = call i8* @strerror(i32 %53)
%55 = ptrtoint i8* %54 to i64
%56 = call i32* @__errno_location()
%57 = load i32, i32* %56, align 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 %26, i64 %58, i64 %55)
store i64 %59, 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 i8* %32, { 1, 0 }
uselistorder i8* %27, { 1, 0, 2, 3 }
uselistorder i64 %26, { 1, 0, 2 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i32 %18, { 2, 0, 1, 3 }
uselistorder i8* %2, { 1, 0, 2, 3, 4, 5 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), { 1, 0 }
uselistorder i32* ()* @__errno_location, { 2, 3, 0, 1 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 0, 2, 1 }
uselistorder i8* bitcast (i8** @gv_2 to i8*), { 2, 0, 1 }
uselistorder i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), { 2, 0, 1 }
uselistorder i64 -16, { 1, 0 }
uselistorder i64 15, { 1, 0 }
uselistorder i32 0, { 2, 1, 3, 4, 0 }
uselistorder i32 1, { 9, 8, 11, 10, 5, 4, 3, 2, 13, 7, 6, 12, 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | normalize_bits_16926 | normalize_bits | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext2, 32
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, -1
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = and i64 %4, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%9 = icmp slt i32 %5, 0
%10 = icmp eq i1 %9, false
%11 = xor i64 %arg1, 4294967295
%sv_0.0 = select i1 %10, i64 %3, i64 %11
%12 = and i64 %sv_0.0, 4294967295
%13 = call i64 @FUNC(i64 %12)
%14 = sub i64 %4, %13
%15 = and i64 %14, 4294967295
store i64 %15, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i32 1, { 0, 3, 4, 2, 1 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | drm_gem_mmap_obj_4005 | drm_gem_mmap_obj | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %1, 0
%4 = icmp eq i1 %3, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = ptrtoint i64* %arg3 to i64
%6 = add i64 %5, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = or i32 %8, 15
store i32 %9, i32* %7, align 4
%10 = add i64 %5, 24
%11 = inttoptr i64 %10 to i64*
store i64 %1, i64* %11, align 8
%12 = add i64 %5, 32
%13 = inttoptr i64 %12 to i64*
store i64 %0, i64* %13, align 8
%14 = load i32, i32* %7, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = and i64 %16, 4294967295
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = add i64 %5, 40
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = call i64 @FUNC(i64 %0)
%23 = call i64 @FUNC(i64 %0, i64 %5)
store i64 0, 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* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | region16_simplify_bands_11955 | region16_simplify_bands | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%.reg2mem11 = alloca i32
%.pre-phi10.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%sv_2.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_15
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 28
%6 = add i64 %4, %5
%7 = bitcast i32* %sv_3 to i64*
%8 = call i64 @FUNC(i64 %4, i64 %6, i64* nonnull %7)
%9 = icmp eq i64 %8, %6
store i64 %8, i64* %.reg2mem
store i64 %6, i64* %sv_0.06.reg2mem
store i64 %4, i64* %sv_1.04.reg2mem
store i32 %2, i32* %sv_2.03.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_15, label LBL_2
LBL_2:
%sv_2.03.reload = load i32, i32* %sv_2.03.reg2mem
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = add i64 %sv_1.04.reload, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = inttoptr i64 %.reload to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %12, %14
%16 = icmp eq i1 %15, false
store i32 %sv_2.03.reload, i32* %sv_2.1.reg2mem
store i64 %.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.06.reload, i64* %sv_0.1.reg2mem
br i1 %16, label LBL_10, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %sv_1.04.reload, i64 %.reload, i64 %sv_0.06.reload)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i32 %sv_2.03.reload, i32* %sv_2.1.reg2mem
store i64 %.reload, i64* %sv_1.1.reg2mem
store i64 %sv_0.06.reload, i64* %sv_0.1.reg2mem
br i1 %19, label LBL_10, label LBL_4
LBL_4:
%20 = icmp ult i64 %sv_1.04.reload, %.reload
br i1 %20, label LBL_5, label LBL_7
LBL_5:
%21 = add i64 %.reload, 4
%22 = inttoptr i64 %21 to i32*
store i64 %sv_1.04.reload, i64* %storemerge2.reg2mem
br label LBL_6
LBL_6:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%23 = load i32, i32* %22, align 4
%24 = add i64 %storemerge2.reload, 4
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %storemerge2.reload, 16
%27 = icmp ult i64 %26, %.reload
store i64 %26, i64* %storemerge2.reg2mem
br i1 %27, label LBL_6, label LBL_7
LBL_7:
%28 = load i32, i32* %sv_3, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 16
%31 = add i64 %30, %.reload
%32 = sub i64 %sv_0.06.reload, %31
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
store i64 %30, i64* %.pre-phi10.reg2mem
store i32 %28, i32* %.reg2mem11
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = call i64 @FUNC(i64 %.reload, i64 %31, i32 %33)
%.pre = load i32, i32* %sv_3, align 4
%.pre8 = sext i32 %.pre to i64
%.pre9 = mul i64 %.pre8, 16
store i64 %.pre9, i64* %.pre-phi10.reg2mem
store i32 %.pre, i32* %.reg2mem11
br label LBL_9
LBL_9:
%.reload12 = load i32, i32* %.reg2mem11
%.pre-phi10.reload = load i64, i64* %.pre-phi10.reg2mem
%36 = sub i32 %sv_2.03.reload, %.reload12
%37 = sub i64 %sv_0.06.reload, %.pre-phi10.reload
store i32 %36, i32* %sv_2.1.reg2mem
store i64 %sv_1.04.reload, i64* %sv_1.1.reg2mem
store i64 %37, i64* %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%38 = call i64 @FUNC(i64 %sv_1.1.reload, i64 %sv_0.1.reload, i64* nonnull %7)
%39 = icmp eq i64 %38, %sv_0.1.reload
store i64 %38, i64* %.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.06.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.04.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.03.reg2mem
br i1 %39, label LBL_11, label LBL_2
LBL_11:
%40 = icmp eq i32 %sv_2.1.reload, %2
store i64 1, i64* %rax.0.reg2mem
br i1 %40, label LBL_15, label LBL_12
LBL_12:
%41 = mul i32 %sv_2.1.reload, 16
%42 = or i32 %41, 8
%43 = inttoptr i64 %sv_1.1.reload to i64*
%44 = call i64* @realloc(i64* %43, i32 %42)
%45 = ptrtoint i64* %44 to i64
store i64 %45, i64* %arg1, align 8
%46 = icmp eq i64 %sv_1.1.reload, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_14, label LBL_13
LBL_13:
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%48 = inttoptr i64 %sv_1.1.reload to i32*
store i32 %sv_2.1.reload, i32* %48, align 4
%49 = add i64 %sv_1.1.reload, 4
%50 = inttoptr i64 %49 to i32*
store i32 %42, i32* %50, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_2.1.reload, { 0, 2, 1, 3 }
uselistorder i64 %sv_1.1.reload, { 4, 3, 1, 2, 5, 0 }
uselistorder i64 %sv_0.1.reload, { 2, 1, 0 }
uselistorder i64 %.reload, { 3, 8, 4, 5, 2, 1, 6, 0, 7 }
uselistorder i64 %sv_0.06.reload, { 2, 3, 1, 4, 0 }
uselistorder i64 %sv_1.04.reload, { 0, 1, 2, 4, 3 }
uselistorder i32 %sv_2.03.reload, { 2, 1, 0 }
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i32 %2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi10.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem11, { 0, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 2, 1, 4 }
uselistorder i64 16, { 0, 1, 4, 2, 3, 5 }
uselistorder i64 (i64, i64, i64*)* @next_band, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 3, 4 }
uselistorder label LBL_15, { 2, 4, 1, 0, 3 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | asym_quant_1958 | asym_quant | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg1, 4294967295
%1 = trunc i64 %arg2 to i32
%2 = urem i32 %1, 32
%3 = icmp eq i32 %2, 0
%4 = trunc i64 %arg1 to i32
%5 = shl i32 %4, %2
%6 = zext i32 %5 to i64
%storemerge = select i1 %3, i64 %0, i64 %6
%7 = sub i32 24, %arg3
%8 = urem i32 %7, 32
%9 = icmp eq i32 %8, 0
%10 = trunc i64 %storemerge to i32
%11 = ashr i32 %10, %8
%12 = zext i32 %11 to i64
%rdx.0 = select i1 %9, i64 %storemerge, i64 %12
%13 = trunc i64 %rdx.0 to i32
%14 = add i32 %13, 1
%15 = ashr i32 %14, 1
%16 = add i32 %arg3, 31
%17 = urem i32 %16, 32
%18 = shl i32 1, %17
%19 = icmp slt i32 %15, %18
%20 = add i32 %18, -1
%spec.select = select i1 %19, i32 %15, i32 %20
%21 = sub i32 0, %18
%22 = zext i32 %21 to i64
%23 = sext i32 %spec.select to i64
%24 = icmp slt i64 %23, %22
br i1 %24, label LBL_1, label LBL_2
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%25 = zext i32 %spec.select to i64
ret i64 %25
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfs3svc_decode_writeargs_11397 | nfs3svc_decode_writeargs | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64*
%.lcssa1.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.12.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %arg2, i64 %0)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_10
LBL_1:
%9 = add i64 %0, 8
%10 = call i64 @FUNC(i64 %6, i64 %9)
%11 = add i64 %10, 4
%12 = inttoptr i64 %10 to i32*
%13 = load i32, i32* %12, align 4
%14 = call i32 @ntohl(i32 %13)
%15 = add i64 %0, 12
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = add i64 %10, 8
%18 = inttoptr i64 %11 to i32*
%19 = load i32, i32* %18, align 4
%20 = call i32 @ntohl(i32 %19)
%21 = add i64 %0, 16
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = inttoptr i64 %17 to i32*
%24 = load i32, i32* %23, align 4
%25 = call i32 @ntohl(i32 %24)
%26 = add i64 %0, 20
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = load i32, i32* %16, align 4
%29 = icmp eq i32 %28, %25
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_2, label LBL_10
LBL_2:
%30 = add i64 %10, 12
%31 = trunc i64 %30 to i32
%32 = sub i32 %31, %24
%33 = load i64, i64* %4, align 8
%34 = trunc i64 %33 to i32
%35 = add i64 %1, 16
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = trunc i64 %37 to i32
%39 = add i64 %5, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = trunc i64 %41 to i32
%43 = sub i32 %34, %32
%44 = add i32 %43, %38
%45 = add i32 %44, %42
%46 = add i32 %25, 3
%47 = and i32 %46, -4
%48 = icmp ult i32 %45, %47
%49 = icmp eq i1 %48, false
store i64 0, i64* %rax.0.reg2mem
br i1 %49, label LBL_3, label LBL_10
LBL_3:
%50 = trunc i64 %2 to i32
%51 = icmp ugt i32 %25, %50
%52 = icmp eq i1 %51, false
store i32 %25, i32* %sv_1.0.reg2mem
br i1 %52, label LBL_5, label LBL_4
LBL_4:
store i32 %50, i32* %16, align 4
store i32 %50, i32* %27, align 4
store i32 %50, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%53 = add i64 %1, 24
%54 = inttoptr i64 %53 to i64*
store i64 %30, i64* %54, align 8
%55 = load i64, i64* %4, align 8
%56 = zext i32 %32 to i64
%57 = sub i64 %55, %56
%58 = add i64 %1, 32
%59 = inttoptr i64 %58 to i64*
store i64 %57, i64* %59, align 8
%60 = zext i32 %sv_1.0.reload to i64
%61 = icmp ult i64 %57, %60
store i32 1, i32* %sv_0.0.lcssa.reg2mem
store i64 %60, i64* %.lcssa1.reg2mem
store i64* %59, i64** %.lcssa.reg2mem
br i1 %61, label LBL_6, label LBL_9
LBL_6:
%62 = add i64 %1, 280
%63 = inttoptr i64 %62 to i64*
store i64 %57, i64* %.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.12.reg2mem
br label LBL_7
LBL_7:
%sv_1.12.reload = load i32, i32* %sv_1.12.reg2mem
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%64 = trunc i64 %.reload to i32
%65 = sub i32 %sv_1.12.reload, %64
%66 = add i32 %sv_0.03.reload, 1
%67 = load i64, i64* %63, align 8
%68 = zext i32 %66 to i64
%69 = mul i64 %68, 8
%70 = add i64 %69, %67
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = call i64 @FUNC(i64 %72)
%74 = mul i64 %68, 16
%75 = add i64 %74, %35
%76 = add i64 %75, 8
%77 = inttoptr i64 %76 to i64*
store i64 %73, i64* %77, align 8
%78 = add i64 %75, 16
%79 = inttoptr i64 %78 to i64*
store i64 4096, i64* %79, align 8
%80 = zext i32 %65 to i64
%81 = add i64 %74, %58
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = icmp ult i64 %83, %80
store i64 %83, i64* %.reg2mem
store i32 %66, i32* %sv_0.03.reg2mem
store i32 %65, i32* %sv_1.12.reg2mem
br i1 %84, label LBL_7, label LBL_8
LBL_8:
%phitmp = add i32 %sv_0.03.reload, 2
store i32 %phitmp, i32* %sv_0.0.lcssa.reg2mem
store i64 %80, i64* %.lcssa1.reg2mem
store i64* %82, i64** %.lcssa.reg2mem
br label LBL_9
LBL_9:
%.lcssa.reload = load i64*, i64** %.lcssa.reg2mem
%.lcssa1.reload = load i64, i64* %.lcssa1.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
store i64 %.lcssa1.reload, i64* %.lcssa.reload, align 8
%85 = add i64 %0, 24
%86 = inttoptr i64 %85 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %86, align 4
store i64 1, 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 %74, { 1, 0 }
uselistorder i32 %sv_0.03.reload, { 1, 0 }
uselistorder i32 %50, { 0, 2, 3, 1 }
uselistorder i32 %32, { 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %25, { 0, 1, 3, 2, 4 }
uselistorder i64 %10, { 0, 1, 3, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.12.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.lcssa1.reg2mem, { 0, 2, 1 }
uselistorder i64** %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 16, { 1, 0, 2, 3 }
uselistorder i32 (i32)* @ntohl, { 3, 2, 1, 0 }
uselistorder label LBL_10, { 3, 0, 1, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | setup_format_params_13763 | setup_format_params | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem22 = alloca i32
%.reg2mem20 = alloca i64
%.reg2mem18 = alloca i1
%sv_0.0.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%storemerge17.reg2mem = alloca i32
%storemerge38.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%.reg2mem = alloca i32
%0 = trunc i64 %arg1 to i32
store i32* bitcast (i32** @gv_0 to i32*), i32** @gv_1, align 8
store i32 %0, i32* bitcast (i32** @gv_0 to i32*), align 8
store i32 31, i32* inttoptr (i64 add (i64 ptrtoint (i32** @gv_0 to i64), i64 4) to i32*), align 4
%1 = load i32*, i32** @gv_2, align 8
%2 = load i32, i32* %1, align 4
%3 = load i32*, i32** @gv_1, align 8
%4 = ptrtoint i32* %3 to i64
%5 = and i32 %2, 67
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = load i32*, i32** @gv_1, align 8
%9 = ptrtoint i32* %8 to i64
%10 = add i64 %9, 12
%11 = inttoptr i64 %10 to i32*
store i32 18, i32* %11, align 4
store i32 0, i32* bitcast (i64* @gv_3 to i32*), align 8
%12 = load i32, i32* @gv_4, align 4
%13 = load i32, i32* @gv_5, align 4
%14 = add i32 %13, %12
store i32 %14, i32* bitcast (i64* @gv_6 to i32*), align 8
%15 = load i32*, i32** @gv_2, align 8
%16 = ptrtoint i32* %15 to i64
%17 = add i64 %16, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
store i32 %19, i32* @gv_7, align 4
%20 = add i64 %16, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = mul i32 %22, 4
%24 = urem i32 %19, 32
%25 = ashr i32 %23, %24
store i32 %25, i32* @gv_8, align 4
%26 = add i64 %16, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
store i32 %28, i32* bitcast (i64* @gv_9 to i32*), align 8
store i32 246, i32* bitcast (i64* @gv_10 to i32*), align 8
%29 = load i32*, i32** @gv_1, align 8
%30 = ptrtoint i32* %29 to i64
%31 = add i64 %30, 16
%32 = inttoptr i64 %31 to i64*
store i64 ptrtoint (i64* @gv_11 to i64), i64* %32, align 8
%33 = load i32*, i32** @gv_1, align 8
%34 = ptrtoint i32* %33 to i64
%35 = mul i32 %25, 4
%36 = add i64 %34, 24
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = load i32, i32* @gv_8, align 4
%39 = icmp eq i32 %38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_15, label LBL_1
LBL_1:
%40 = zext i32 %38 to i64
%41 = load i32, i32* @gv_12, align 4
%42 = mul i32 %41, add (i32 add (i32 sub (i32 trunc (i64 lshr (i64 trunc (i128 mul (i128 sext (i32 ptrtoint (i128* @gv_13 to i32) to i128), i128 715827883) to i64), i64 32) to i32), i32 ashr (i32 ptrtoint (i128* @gv_13 to i32), i32 31)), i32 sub (i32 trunc (i64 lshr (i64 trunc (i128 mul (i128 sext (i32 ptrtoint (i128* @gv_13 to i32) to i128), i128 715827883) to i64), i64 32) to i32), i32 ashr (i32 ptrtoint (i128* @gv_13 to i32), i32 31))), i32 3)
%43 = load i32, i32* @gv_4, align 4
%44 = mul i32 %43, sub (i32 trunc (i64 lshr (i64 trunc (i128 mul (i128 sext (i32 ptrtoint (i128* @gv_13 to i32) to i128), i128 715827883) to i64), i64 32) to i32), i32 ashr (i32 ptrtoint (i128* @gv_13 to i32), i32 31))
%45 = add i32 %44, %42
%46 = ashr i32 %45, 31
%47 = zext i32 %45 to i64
%48 = zext i32 %46 to i64
%49 = mul i64 %48, 4294967296
%50 = or i64 %49, %47
%51 = srem i64 %50, %40
%52 = load i32*, i32** @gv_2, align 8
%53 = ptrtoint i32* %52 to i64
%54 = add i64 %53, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp sgt i32 %56, 33
store i32 %41, i32* %.reg2mem
store i64 0, i64* %.reg2mem16
store i32 0, i32* %storemerge38.reg2mem
br label LBL_2
LBL_2:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%.reload = load i32, i32* %.reg2mem
%58 = mul i64 %.reload17, 4
%59 = add i64 %58, ptrtoint (i64* @gv_11 to i64)
%60 = trunc i32 %.reload to i8
%61 = inttoptr i64 %59 to i8*
store i8 %60, i8* %61, align 4
%62 = load i32, i32* @gv_4, align 4
%63 = trunc i32 %62 to i8
%64 = add i64 %58, add (i64 ptrtoint (i64* @gv_11 to i64), i64 1)
%65 = inttoptr i64 %64 to i8*
store i8 %63, i8* %65, align 1
%66 = add i64 %58, add (i64 ptrtoint (i64* @gv_11 to i64), i64 2)
%67 = inttoptr i64 %66 to i8*
store i8 0, i8* %67, align 2
%68 = load i32, i32* @gv_7, align 4
%69 = trunc i32 %68 to i8
%70 = add i64 %58, add (i64 ptrtoint (i64* @gv_11 to i64), i64 3)
%71 = inttoptr i64 %70 to i8*
store i8 %69, i8* %71, align 1
%72 = add i32 %storemerge38.reload, 1
%73 = load i32, i32* @gv_8, align 4
%74 = zext i32 %73 to i64
%75 = sext i32 %72 to i64
%76 = icmp slt i64 %75, %74
br i1 %76, label LBL_2.LBL_2_crit_edge, label LBL_4
LBL_3:
%.pre = load i32, i32* @gv_12, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %75, i64* %.reg2mem16
store i32 %72, i32* %storemerge38.reg2mem
br label LBL_2
LBL_4:
%77 = icmp eq i32 %73, 0
store i1 true, i1* %.reg2mem18
br i1 %77, label LBL_12, label LBL_5
LBL_5:
%spec.select4 = select i1 %57, i32 1, i32 2
%78 = trunc i64 %51 to i32
store i32 1, i32* %storemerge17.reg2mem
store i32 %78, i32* %sv_0.16.reg2mem
br label LBL_6
LBL_6:
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%79 = sext i32 %sv_0.16.reload to i64
%80 = mul i64 %79, 4
%81 = trunc i32 %storemerge17.reload to i8
%82 = add i64 %80, add (i64 ptrtoint (i64* @gv_11 to i64), i64 2)
%83 = inttoptr i64 %82 to i8*
store i8 %81, i8* %83, align 2
%84 = add i32 %sv_0.16.reload, %spec.select4
%85 = load i32, i32* @gv_8, align 4
%86 = ashr i32 %84, 31
%87 = zext i32 %84 to i64
%88 = zext i32 %86 to i64
%89 = mul i64 %88, 4294967296
%90 = or i64 %89, %87
%91 = zext i32 %85 to i64
%92 = srem i64 %90, %91
%93 = trunc i64 %92 to i32
%sext = mul i64 %92, 4294967296
%94 = ashr exact i64 %sext, 30
%95 = add i64 %94, add (i64 ptrtoint (i64* @gv_11 to i64), i64 2)
%96 = inttoptr i64 %95 to i8*
%97 = load i8, i8* %96, align 2
%98 = icmp eq i8 %97, 0
store i32 %93, i32* %sv_0.0.reg2mem
br i1 %98, label LBL_10, label LBL_7
LBL_7:
%99 = add i32 %93, 1
%100 = sext i32 %99 to i64
%101 = icmp slt i64 %100, %91
store i32 %99, i32* %sv_0.0.reg2mem
br i1 %101, label LBL_10, label LBL_8
LBL_8:
%102 = sub i32 %99, %85
store i32 %102, i32* %storemerge2.reg2mem
br label LBL_9
LBL_9:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%103 = sext i32 %storemerge2.reload to i64
%104 = mul i64 %103, 4
%105 = add i64 %104, add (i64 ptrtoint (i64* @gv_11 to i64), i64 2)
%106 = inttoptr i64 %105 to i8*
%107 = load i8, i8* %106, align 2
%108 = icmp eq i8 %107, 0
%109 = icmp eq i1 %108, false
%110 = add i32 %storemerge2.reload, 1
store i32 %110, i32* %storemerge2.reg2mem
store i32 %storemerge2.reload, i32* %sv_0.0.reg2mem
br i1 %109, label LBL_9, label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%111 = add i32 %storemerge17.reload, 1
%112 = sext i32 %111 to i64
%113 = icmp sgt i64 %112, %91
store i32 %111, i32* %storemerge17.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem
br i1 %113, label LBL_11, label LBL_6
LBL_11:
%phitmp = icmp eq i32 %85, 0
store i1 %phitmp, i1* %.reg2mem18
br label LBL_12
LBL_12:
%.reload19 = load i1, i1* %.reg2mem18
%114 = load i32*, i32** @gv_2, align 8
%115 = ptrtoint i32* %114 to i64
%116 = add i64 %115, 20
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = urem i32 %118, 16
%120 = icmp eq i32 %119, 0
%or.cond = or i1 %.reload19, %120
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_15, label LBL_13
LBL_13:
%121 = load i8, i8* inttoptr (i64 add (i64 ptrtoint (i64* @gv_11 to i64), i64 2) to i8*), align 2
%122 = add i64 %115, 16
%123 = inttoptr i64 %122 to i32*
%124 = load i32, i32* %123, align 4
%125 = trunc i32 %124 to i8
%126 = add i8 %121, -1
%127 = add i8 %126, %125
store i8 %127, i8* inttoptr (i64 add (i64 ptrtoint (i64* @gv_11 to i64), i64 2) to i8*), align 2
%128 = load i32, i32* @gv_8, align 4
%129 = zext i32 %128 to i64
%130 = icmp ugt i32 %128, 1
store i64 1, i64* %.reg2mem20
store i32 1, i32* %.reg2mem22
store i64 %129, i64* %rax.0.reg2mem
br i1 %130, label LBL_14, label LBL_15
LBL_14:
%.reload23 = load i32, i32* %.reg2mem22
%.reload21 = load i64, i64* %.reg2mem20
%.pre10 = load i32*, i32** @gv_2, align 8
%131 = mul i64 %.reload21, 4
%132 = add i64 %131, add (i64 ptrtoint (i64* @gv_11 to i64), i64 2)
%133 = inttoptr i64 %132 to i8*
%134 = load i8, i8* %133, align 2
%135 = ptrtoint i32* %.pre10 to i64
%136 = add i64 %135, 16
%137 = inttoptr i64 %136 to i32*
%138 = load i32, i32* %137, align 4
%139 = trunc i32 %138 to i8
%140 = add i8 %134, -1
%141 = add i8 %140, %139
store i8 %141, i8* %133, align 2
%142 = add i32 %.reload23, 1
%143 = load i32, i32* @gv_8, align 4
%144 = zext i32 %143 to i64
%145 = sext i32 %142 to i64
%146 = icmp slt i64 %145, %144
store i64 %145, i64* %.reg2mem20
store i32 %142, i32* %.reg2mem22
store i64 %144, i64* %rax.0.reg2mem
br i1 %146, label LBL_14, label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge2.reload, { 0, 2, 1 }
uselistorder i32 %99, { 1, 0, 2 }
uselistorder i32 %93, { 1, 0 }
uselistorder i32 %sv_0.16.reload, { 1, 0 }
uselistorder i64 %58, { 3, 2, 1, 0 }
uselistorder i32 %38, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem16, { 1, 0, 2 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge17.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem20, { 2, 0, 1 }
uselistorder i32* %.reg2mem22, { 2, 0, 1 }
uselistorder i8 -1, { 1, 0 }
uselistorder i64 add (i64 ptrtoint (i64* @gv_11 to i64), i64 2), { 2, 0, 3, 4, 5, 1 }
uselistorder i64 ptrtoint (i64* @gv_11 to i64), { 0, 3, 1, 2, 4 }
uselistorder i64 16, { 1, 0, 2 }
uselistorder i32* @gv_8, { 5, 0, 4, 3, 2, 1 }
uselistorder i32* @gv_7, { 1, 0 }
uselistorder i64 4, { 0, 1, 2, 3, 5, 4 }
uselistorder i32 31, { 1, 2, 0, 3 }
uselistorder i32** @gv_1, { 4, 3, 2, 1, 0 }
uselistorder i32** @gv_0, { 1, 0 }
uselistorder label LBL_15, { 1, 0, 3, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | qemu_input_event_send_741 | qemu_input_event_send | 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 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_6, label LBL_2
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = trunc i64 %1 to i32
%11 = ptrtoint i32* %arg2 to i64
%12 = call i64 @FUNC(i64 %9, i64 %11)
%13 = load i32, i32* @gv_0, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i32 %10, 0
%16 = icmp eq i1 %15, false
%or.cond = or i1 %16, %14
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %11)
br label LBL_4
LBL_4:
%18 = urem i32 %10, 32
%19 = shl i32 1, %18
%storemerge = zext i32 %19 to i64
%20 = call i64 @FUNC(i64 %storemerge)
%21 = icmp eq i64 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %20, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i32 %24, 1
store i32 %25, i32* %23, align 4
store i64 %20, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | getid_13298 | getid | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%sext = mul i32 %0, 16777216
%1 = ashr exact i32 %sext, 24
%2 = call i8* @strchr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 %1)
%3 = icmp eq i8* %2, null
%4 = ptrtoint i8* %2 to i64
%5 = add i64 %4, add (i64 sub (i64 0, i64 ptrtoint ([9 x i8]* @gv_0 to i64)), i64 1)
%6 = and i64 %5, 4294967295
%storemerge = select i1 %3, i64 0, i64 %6
ret i64 %storemerge
uselistorder i8* %2, { 1, 0 }
} | 1 |
BinRealVul | expandRegular_12408 | expandRegular | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = call i32 @umask(i32 383)
%1 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%2 = call i32 @umask(i32 %0)
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = trunc i64 %arg5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = trunc i64 %arg4 to i32
%10 = call i64 @FUNC(i64 %arg1, i64 %1, i32 %9, i64 %arg3)
%phitmp = and i64 %10, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%11 = icmp eq i64 %1, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i32* @__errno_location()
%13 = load i32, i32* %12, align 4
%14 = call i64 @FUNC(i64 %1)
%15 = call i32* @__errno_location()
store i32 %13, i32* %15, align 4
br label LBL_5
LBL_5:
ret i64 %sv_0.0.reload
uselistorder i64 %1, { 1, 2, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 (i32)* @umask, { 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | ftpClientParsePwdReply_11232 | ftpClientParsePwdReply | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = bitcast i64* %arg1 to i8*
%1 = call i8* @strrchr(i8* %0, i32 34)
%2 = icmp eq i8* %1, null
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
store i8 0, i8* %1, align 1
%4 = call i8* @strchr(i8* %0, i32 34)
%5 = icmp eq i8* %4, null
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_3
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = ptrtoint i8* %4 to i64
%9 = add i64 %8, 1
%10 = call i64 @FUNC(i64 %9)
%11 = icmp ugt i64 %10, %arg3
%12 = select i1 %11, i64 %arg3, i64 %10
%13 = call i64 @FUNC(i64 %7, i64 %9, i64 %12)
%14 = add i64 %12, %7
%15 = inttoptr i64 %14 to i8*
store i8 0, i8* %15, align 1
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | parse_priority_group_4207 | parse_priority_group | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64*
%storemerge4.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %arg1, align 4
store i64 ptrtoint ([36 x i8]* @gv_0 to i64), i64* %arg2, align 8
store i64 -22, i64* %rax.0.reg2mem
br label LBL_15
LBL_2:
%4 = call i64 @FUNC()
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
store i64 ptrtoint ([33 x i8]* @gv_1 to i64), i64* %arg2, align 8
store i64 -12, i64* %rax.0.reg2mem
br label LBL_15
LBL_4:
%7 = ptrtoint i64* %arg2 to i64
%8 = inttoptr i64 %4 to i64*
store i64 %7, i64* %8, align 8
%9 = ptrtoint i32* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64 %4, i64 %7)
%11 = trunc i64 %10 to i32
%12 = and i64 %10, 4294967295
%13 = inttoptr i64 %12 to i64*
%14 = icmp eq i32 %11, 0
%15 = icmp eq i1 %14, false
store i64* %13, i64** %sv_0.0.reg2mem
br i1 %15, label LBL_14, label LBL_5
LBL_5:
%16 = add i64 %4, 8
%17 = call i64 @FUNC(i64 %9)
%18 = call i64 @FUNC(i64* nonnull @gv_2, i64 %17, i64 %16, i64 %7)
%19 = trunc i64 %18 to i32
%20 = and i64 %18, 4294967295
%21 = inttoptr i64 %20 to i64*
%22 = icmp eq i32 %19, 0
%23 = icmp eq i1 %22, false
store i64* %21, i64** %sv_0.0.reg2mem
br i1 %23, label LBL_14, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %9)
%25 = ptrtoint i32* %sv_2 to i64
%26 = call i64 @FUNC(i64* nonnull @gv_3, i64 %24, i64 %25, i64 %7)
%27 = trunc i64 %26 to i32
%28 = and i64 %26, 4294967295
%29 = inttoptr i64 %28 to i64*
%30 = icmp eq i32 %27, 0
%31 = icmp eq i1 %30, false
store i64* %29, i64** %sv_0.0.reg2mem
br i1 %31, label LBL_14, label LBL_7
LBL_7:
%32 = inttoptr i64 %16 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %34, label LBL_15, label LBL_8
LBL_8:
%35 = bitcast i64* %rdi to i32*
%36 = load i32, i32* %sv_2, align 4
%37 = add i32 %36, 1
%38 = add i64 %4, 24
%39 = add i64 %4, 16
%40 = zext i32 %37 to i64
store i32 0, i32* %storemerge4.reg2mem
br label LBL_9
LBL_9:
%41 = load i32, i32* %35, align 8
%42 = icmp ugt i32 %37, %41
br i1 %42, label LBL_10, label LBL_11
LBL_10:
store i64 ptrtoint ([27 x i8]* @gv_4 to i64), i64* %arg2, align 8
store i64* inttoptr (i32 -22 to i64*), i64** %sv_0.0.reg2mem
br label LBL_14
LBL_11:
store i32 %37, i32* %sv_1, align 4
%43 = call i64 @FUNC(i32* nonnull %sv_1, i64 %38, i64 %7)
%44 = icmp slt i64 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_13, label LBL_12
LBL_12:
%46 = and i64 %43, 4294967295
%47 = inttoptr i64 %46 to i64*
store i64* %47, i64** %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%48 = inttoptr i64 %43 to i64*
store i64 %4, i64* %48, align 8
%49 = add i64 %43, 16
%50 = call i64 @FUNC(i64 %49, i64 %39)
%51 = call i64 @FUNC(i64 %9, i64 %40)
%52 = add nuw i32 %storemerge4.reload, 1
%53 = load i32, i32* %32, align 4
%54 = icmp ult i32 %52, %53
store i32 %52, i32* %storemerge4.reg2mem
store i64 %4, i64* %rax.0.reg2mem
br i1 %54, label LBL_9, label LBL_15
LBL_14:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%55 = call i64 @FUNC(i64 %4, i64 %7)
%56 = ptrtoint i64* %sv_0.0.reload to i64
%sext = mul i64 %56, 4294967296
%57 = ashr exact i64 %sext, 32
store i64 %57, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %43, { 1, 2, 0, 3 }
uselistorder i32 %37, { 2, 1, 0 }
uselistorder i32* %32, { 1, 0 }
uselistorder i64 %7, { 3, 0, 1, 2, 4, 5 }
uselistorder i64 %4, { 6, 0, 3, 2, 4, 1, 5, 7, 8, 9 }
uselistorder i32* %sv_2, { 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i64 (i64, i64)* @consume, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64)* @read_param, { 1, 0 }
uselistorder i64 (i64)* @shift, { 1, 0 }
uselistorder i64 8, { 1, 2, 0, 3, 4 }
uselistorder i64* %arg2, { 0, 3, 1, 2 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_15, { 2, 0, 1, 3, 4 }
uselistorder label LBL_14, { 3, 4, 0, 1, 2 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | r_anal_bb_free_11628 | r_anal_bb_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_12, label LBL_1
LBL_1:
%1 = add i64 %arg1, 24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %arg1, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
call void @free(i64* %8)
%9 = add i64 %arg1, 40
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
store i64 0, i64* %10, align 8
%13 = add i64 %arg1, 48
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
call void @free(i64* %16)
%17 = add i64 %arg1, 56
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19)
store i64 0, i64* %18, align 8
store i64 0, i64* %6, align 8
store i64 0, i64* %2, align 8
%21 = add i64 %arg1, 64
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i64*
call void @free(i64* %24)
%25 = add i64 %arg1, 72
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
call void @free(i64* %28)
%29 = add i64 %arg1, 80
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i64*
call void @free(i64* %32)
%33 = icmp eq i64 %31, 0
br i1 %33, label LBL_7, label LBL_2
LBL_2:
%34 = add i64 %31, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, %arg1
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_4, label LBL_3
LBL_3:
store i64 0, i64* %35, align 8
br label LBL_4
LBL_4:
%39 = add i64 %31, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, %arg1
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_6, label LBL_5
LBL_5:
store i64 0, i64* %40, align 8
br label LBL_6
LBL_6:
%44 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %44, align 8
br label LBL_7
LBL_7:
%45 = add i64 %arg1, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = icmp eq i64 %47, 0
br i1 %48, label LBL_9, label LBL_8
LBL_8:
%49 = inttoptr i64 %47 to i64*
store i64 0, i64* %49, align 8
store i64 0, i64* %46, align 8
br label LBL_9
LBL_9:
%50 = add i64 %arg1, 16
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label LBL_11, label LBL_10
LBL_10:
%54 = inttoptr i64 %52 to i64*
store i64 0, i64* %54, align 8
store i64 0, i64* %51, align 8
br label LBL_11
LBL_11:
%55 = inttoptr i64 %arg1 to i64*
call void @free(i64* %55)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder void (i64*)* @free, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 4, 5, 2, 0, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
uselistorder label LBL_12, { 1, 0 }
} | 1 |
BinRealVul | select_bad_process_18845 | select_bad_process | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32*
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
store i64 0, i64* %arg1, align 8
%2 = call i64 @FUNC(i64* nonnull %sv_0)
%3 = icmp eq i64 %1, 0
%4 = icmp eq i1 %3, false
store i32* null, i32** %.reg2mem
br i1 %4, label LBL_1, label LBL_10
LBL_1:
%5 = inttoptr i64 %1 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %6, 1
store i32* null, i32** %.reg2mem
br i1 %7, label LBL_10, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %1, i64 1)
%9 = trunc i64 %8 to i32
%.pre = add i64 %1, 4
%.pre8 = inttoptr i64 %.pre to i32*
%.pre10 = load i32, i32* %.pre8, align 4
%10 = and i32 %.pre10, 2
%11 = or i32 %10, %9
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_8, label LBL_3
LBL_3:
%13 = and i32 %.pre10, 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i32* null, i32** %.reg2mem
br i1 %15, label LBL_10, label LBL_4
LBL_4:
%16 = and i32 %.pre10, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%18 = load i64, i64* @gv_0, align 8
%19 = icmp eq i64 %18, %1
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_6
LBL_6:
store i64 -1, i64* %arg1, align 8
store i32* %5, i32** %.reg2mem
br label LBL_10
LBL_7:
%21 = call i64 @FUNC(i64 -1)
store i64 %21, i64* %storemerge.reg2mem
br label LBL_11
LBL_8:
%22 = add i64 %1, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
store i32* null, i32** %.reg2mem
br i1 %25, label LBL_10, label LBL_9
LBL_9:
%26 = load i64, i64* %sv_0, align 8
%27 = call i64 @FUNC(i64 %1, i64 %26)
store i64 %27, i64* %arg1, align 8
store i32* %5, i32** %.reg2mem
br label LBL_10
LBL_10:
%.reload = load i32*, i32** %.reg2mem
%28 = ptrtoint i32* %.reload to i64
store i64 %28, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %1, { 4, 3, 2, 6, 5, 0, 1 }
uselistorder i32** %.reg2mem, { 0, 1, 4, 6, 3, 2, 5 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* null, { 2, 1, 0, 3 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 4, 5, 3, 2, 0 }
} | 1 |
BinRealVul | ff_jref_idct1_put_2868 | ff_jref_idct1_put | define i64 @FUNC(i64* %arg1, i64 %arg2, i16* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%sext = mul i32 %2, 65536
%3 = ashr exact i32 %sext, 16
%4 = add nsw i32 %3, 4
%5 = ashr i32 %4, 3
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i8
%9 = bitcast i64* %arg1 to i8*
store i8 %8, i8* %9, align 1
ret i64 %7
uselistorder i64 %7, { 1, 0 }
} | 0 |
BinRealVul | rice_count_exact_16370 | rice_count_exact | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp sgt i32 %0, 0
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i32 %arg3, 32
%4 = add i32 %arg3, 1
%wide.trip.count = and i64 %arg2, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = mul i64 %indvars.iv.reload, 4
%6 = add i64 %5, %2
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = mul i32 %8, 2
%10 = sub i32 0, %9
%11 = sub i32 %10, 1
%12 = ashr i32 %11, 31
%13 = xor i32 %12, %11
%14 = ashr i32 %13, %3
%15 = add i32 %4, %sv_0.02.reload
%16 = add i32 %15, %14
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %16, i32* %sv_0.02.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%phitmp = zext i32 %16 to i64
store i64 %phitmp, i64* %sv_0.0.lcssa.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 %arg3, { 1, 0 }
} | 1 |
BinRealVul | on_part_data_end_12515 | on_part_data_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %0, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %3 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i32 %7, 1
store i32 %8, i32* %6, align 4
ret i64 0
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64 (i64)* @ogs_assert, { 1, 0 }
} | 1 |
BinRealVul | CalcMinMax_9240 | CalcMinMax | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i64* %arg8, i64* %arg9) local_unnamed_addr {
LBL_0:
%sv_0.09.reg2mem = alloca i64
%storemerge510.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i64
%storemerge68.reg2mem = alloca i32
%storemerge11.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %arg4 to i32
%3 = icmp sgt i32 %2, 0
br i1 %3, label LBL_1, label LBL_19
LBL_1:
%4 = icmp eq i64 %arg5, 1
%5 = icmp eq i1 %4, false
%6 = inttoptr i64 %arg7 to i64*
%7 = trunc i64 %arg3 to i32
%8 = icmp sgt i32 %7, 0
%9 = icmp eq i64 %arg5, 2
%10 = icmp eq i1 %9, false
%11 = inttoptr i64 %arg7 to i32*
store i32 0, i32* %storemerge11.reg2mem
br label LBL_2
LBL_2:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
br i1 %5, label LBL_10, label LBL_3
LBL_3:
%12 = icmp eq i32 %storemerge11.reload, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = load i64, i64* %6, align 8
%15 = call i128 @FUNC(i64 %14)
%16 = call i64 @__asm_movsd.1(i128 %15)
store i64 %16, i64* %arg9, align 8
%17 = call i128 @FUNC(i64 %16)
%18 = call i64 @__asm_movsd.1(i128 %17)
store i64 %18, i64* %arg8, align 8
br label LBL_5
LBL_5:
store i32 0, i32* %storemerge68.reg2mem
store i64 %arg7, i64* %sv_1.07.reg2mem
br i1 %8, label LBL_6, label LBL_10
LBL_6:
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%storemerge68.reload = load i32, i32* %storemerge68.reg2mem
%19 = load i64, i64* %arg8, align 8
%20 = call i128 @FUNC(i64 %19)
%21 = inttoptr i64 %sv_1.07.reload to i64*
%22 = load i64, i64* %21, align 8
%23 = call i128 @FUNC(i64 %22)
call void @FUNC(i128 %20, i128 %23)
%24 = icmp ugt i32 %storemerge68.reload, %7
br i1 %24, label LBL_7, label LBL_8
LBL_7:
%25 = load i64, i64* %21, align 8
%26 = call i128 @FUNC(i64 %25)
%27 = call i64 @__asm_movsd.1(i128 %26)
store i64 %27, i64* %arg8, align 8
%28 = load i64, i64* %arg9, align 8
%29 = call i128 @FUNC(i64 %28)
%30 = load i64, i64* %21, align 8
%31 = call i128 @FUNC(i64 %30)
call void @FUNC(i128 %31, i128 %29)
%32 = load i64, i64* %21, align 8
%33 = call i128 @FUNC(i64 %32)
%34 = call i64 @__asm_movsd.1(i128 %33)
store i64 %34, i64* %arg9, align 8
br label LBL_9
LBL_8:
%35 = load i64, i64* %arg9, align 8
%36 = call i128 @FUNC(i64 %35)
%37 = load i64, i64* %21, align 8
%38 = call i128 @FUNC(i64 %37)
call void @FUNC(i128 %38, i128 %36)
br label LBL_9
LBL_9:
%39 = add i64 %sv_1.07.reload, 8
%40 = add nuw nsw i32 %storemerge68.reload, 1
%exitcond = icmp eq i32 %40, %7
store i32 %40, i32* %storemerge68.reg2mem
store i64 %39, i64* %sv_1.07.reg2mem
br i1 %exitcond, label LBL_10, label LBL_6
LBL_10:
br i1 %10, label LBL_18, label LBL_11
LBL_11:
%41 = icmp eq i32 %storemerge11.reload, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_13, label LBL_12
LBL_12:
%43 = load i32, i32* %11, align 4
%44 = call i128 @FUNC(i32 %43)
%45 = call i128 @FUNC(i128 %44)
%46 = call i64 @__asm_movsd.1(i128 %45)
store i64 %46, i64* %arg9, align 8
%47 = call i128 @FUNC(i64 %46)
%48 = call i64 @__asm_movsd.1(i128 %47)
store i64 %48, i64* %arg8, align 8
br label LBL_13
LBL_13:
store i32 0, i32* %storemerge510.reg2mem
store i64 %arg7, i64* %sv_0.09.reg2mem
br i1 %8, label LBL_14, label LBL_18
LBL_14:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%storemerge510.reload = load i32, i32* %storemerge510.reg2mem
%49 = load i64, i64* %arg8, align 8
%50 = call i128 @FUNC(i64 %49)
%51 = inttoptr i64 %sv_0.09.reload to i32*
%52 = load i32, i32* %51, align 4
%53 = call i128 @FUNC(i32 %52)
%54 = call i128 @FUNC(i128 %53)
call void @FUNC(i128 %50, i128 %54)
%55 = icmp ugt i32 %storemerge510.reload, %7
br i1 %55, label LBL_15, label LBL_16
LBL_15:
%56 = load i32, i32* %51, align 4
%57 = call i128 @FUNC(i32 %56)
%58 = call i128 @FUNC(i128 %57)
%59 = call i64 @__asm_movsd.1(i128 %58)
store i64 %59, i64* %arg8, align 8
%60 = load i64, i64* %arg9, align 8
%61 = call i128 @FUNC(i64 %60)
%62 = load i32, i32* %51, align 4
%63 = call i128 @FUNC(i32 %62)
%64 = call i128 @FUNC(i128 %63)
call void @FUNC(i128 %64, i128 %61)
%65 = load i32, i32* %51, align 4
%66 = call i128 @FUNC(i32 %65)
%67 = call i128 @FUNC(i128 %66)
%68 = call i64 @__asm_movsd.1(i128 %67)
store i64 %68, i64* %arg9, align 8
br label LBL_17
LBL_16:
%69 = load i64, i64* %arg9, align 8
%70 = call i128 @FUNC(i64 %69)
%71 = load i32, i32* %51, align 4
%72 = call i128 @FUNC(i32 %71)
%73 = call i128 @FUNC(i128 %72)
call void @FUNC(i128 %73, i128 %70)
br label LBL_17
LBL_17:
%74 = add i64 %sv_0.09.reload, 4
%75 = add nuw nsw i32 %storemerge510.reload, 1
%exitcond14 = icmp eq i32 %75, %7
store i32 %75, i32* %storemerge510.reg2mem
store i64 %74, i64* %sv_0.09.reg2mem
br i1 %exitcond14, label LBL_18, label LBL_14
LBL_18:
%76 = add nuw nsw i32 %storemerge11.reload, 1
%exitcond15 = icmp eq i32 %76, %2
store i32 %76, i32* %storemerge11.reg2mem
br i1 %exitcond15, label LBL_19, label LBL_2
LBL_19:
%77 = call i64 @FUNC(i64 %0, i64 %1, i64 0)
ret i64 %77
uselistorder i32 %storemerge510.reload, { 1, 0 }
uselistorder i32 %storemerge68.reload, { 1, 0 }
uselistorder i32 %storemerge11.reload, { 2, 1, 0 }
uselistorder i32 %7, { 1, 0, 2, 4, 3 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge68.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.07.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge510.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder void (i128, i128)* @__asm_comisd, { 0, 2, 3, 1, 4, 5 }
uselistorder i64 (i128)* @__asm_movsd.1, { 0, 1, 4, 5, 2, 3, 6, 7 }
uselistorder i128 (i64)* @__asm_movsd, { 0, 3, 4, 11, 1, 2, 5, 6, 7, 8, 9, 10, 12, 13 }
uselistorder i1 false, { 0, 2, 1, 3 }
uselistorder i32 0, { 0, 5, 1, 6, 2, 3, 4 }
uselistorder i64* %arg9, { 0, 4, 5, 6, 1, 2, 3, 7 }
uselistorder i64* %arg8, { 2, 3, 4, 0, 1, 5 }
uselistorder i64 %arg7, { 0, 1, 3, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | proc_flush_task_mnt_18284 | proc_flush_task_mnt | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%0 = and i64 %arg2, 4294967295
%1 = bitcast i64* %sv_1 to i8*
store i8* %1, i8** %sv_0, align 8
%2 = ptrtoint i64* %sv_1 to i64
%3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%4 = bitcast i8** %sv_0 to i64*
%5 = call i64 @FUNC(i64 %2, i64* nonnull %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %5)
%8 = call i64 @FUNC(i64 %5)
br label LBL_2
LBL_2:
%9 = and i64 %arg3, 4294967295
store i8* %1, i8** %sv_0, align 8
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %9)
%11 = call i64 @FUNC(i64 %2, i64* nonnull %4)
%12 = icmp eq i64 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_8, label LBL_3
LBL_3:
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0, align 8
%13 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%14 = call i64 @FUNC(i64 %11, i64* nonnull %4)
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_7, label LBL_4
LBL_4:
store i8* %1, i8** %sv_0, align 8
%16 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%17 = call i64 @FUNC(i64 %14, i64* nonnull %4)
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %17)
%20 = call i64 @FUNC(i64 %17)
br label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 %14)
br label LBL_7
LBL_7:
%22 = call i64 @FUNC(i64 %11)
store i64 %22, 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 %17, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i8** %sv_0, { 3, 2, 1, 4, 0 }
uselistorder i64 (i64)* @dput, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @d_invalidate, { 1, 0 }
uselistorder i64 (i64, i64*)* @d_hash_and_lookup, { 3, 2, 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | test_flush_nodev_3061 | test_flush_nodev | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 4202512)
%1 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_0)
store i64 %1, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 %1, i64 0, i64 0)
%3 = load i64, i64* %sv_0, align 8
%4 = call i64 @FUNC(i64 %3, i64 1, i64 2)
%5 = load i64, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC()
ret i64 %7
uselistorder i64* %sv_0, { 2, 3, 4, 0, 1 }
uselistorder i64 (i64, i64, i64)* @qpci_io_writeb, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | udp_chr_close_16977 | udp_chr_close | 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:
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4)
%6 = bitcast i64* %arg1 to i32*
store i32 0, i32* %6, align 4
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 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_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %10)
%13 = add i64 %7, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
br label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %7)
%19 = call i64 @FUNC(i64 %7, i64 0)
ret i64 %19
uselistorder i64 %7, { 0, 1, 3, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 1 |
BinRealVul | bindresvport_sa_5311 | bindresvport_sa | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.15.reg2mem = alloca i16
%storemerge6.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i16
%storemerge4.reg2mem = alloca i32
%sv_1.0.in.reg2mem = alloca i16
%sv_2.0.in.reg2mem = alloca i64*
%1 = load i64, i64* %0
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sext = mul i64 %arg1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = icmp eq i64* %arg2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 128)
store i32 128, i32* %sv_3, align 4
%6 = trunc i64 %2 to i32
%7 = bitcast i64* %sv_4 to %sockaddr*
%8 = call i32 @getsockname(i32 %6, %sockaddr* nonnull %7, i32* nonnull %sv_3)
%9 = icmp eq i32 %8, -1
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_16
LBL_2:
%11 = bitcast i64* %sv_4 to i16*
%12 = load i16, i16* %11, align 8
%13 = load i32, i32* %sv_3, align 4
%14 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 %13)
store i64* %sv_4, i64** %sv_2.0.in.reg2mem
store i16 %12, i16* %sv_1.0.in.reg2mem
br label LBL_4
LBL_3:
%15 = trunc i64 %1 to i16
store i64* %arg2, i64** %sv_2.0.in.reg2mem
store i16 %15, i16* %sv_1.0.in.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.in.reload = load i16, i16* %sv_1.0.in.reg2mem
%sv_2.0.in.reload = load i64*, i64** %sv_2.0.in.reg2mem
%16 = icmp eq i16 %sv_1.0.in.reload, 2
%17 = icmp eq i1 %16, false
store i32 16, i32* %storemerge4.reg2mem
br i1 %17, label LBL_5, label LBL_7
LBL_5:
%18 = icmp eq i16 %sv_1.0.in.reload, 10
%19 = icmp eq i1 %18, false
store i32 28, i32* %storemerge4.reg2mem
br i1 %19, label LBL_6, label LBL_7
LBL_6:
%20 = call i32* @__errno_location()
store i32 96, i32* %20, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_7:
%sv_2.0 = ptrtoint i64* %sv_2.0.in.reload to i64
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
store i32 %storemerge4.reload, i32* %sv_3, align 4
%storemerge3.in = add i64 %sv_2.0, 2
%storemerge3 = inttoptr i64 %storemerge3.in to i16*
%21 = bitcast i64* %sv_2.0.in.reload to i16*
store i16 %sv_1.0.in.reload, i16* %21, align 2
%22 = load i16, i16* %storemerge3, align 2
%23 = call i16 @ntohs(i16 %22)
%24 = icmp eq i16 %23, 0
%25 = icmp eq i1 %24, false
store i16 %23, i16* %sv_0.0.reg2mem
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = call i64 @FUNC(i64 1000)
%27 = trunc i64 %26 to i16
%28 = add i16 %27, 1024
store i16 %28, i16* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i16, i16* %sv_0.0.reg2mem
%29 = trunc i64 %2 to i32
%30 = bitcast i64* %sv_2.0.in.reload to %sockaddr*
store i32 0, i32* %storemerge6.reg2mem
store i16 %sv_0.0.reload, i16* %sv_0.15.reg2mem
br label LBL_10
LBL_10:
%sv_0.15.reload = load i16, i16* %sv_0.15.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%31 = call i16 @htons(i16 %sv_0.15.reload)
store i16 %31, i16* %storemerge3, align 2
%32 = load i32, i32* %sv_3, align 4
%33 = call i32 @bind(i32 %29, %sockaddr* %30, i32 %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_15, label LBL_11
LBL_11:
%35 = icmp slt i32 %33, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_14, label LBL_12
LBL_12:
%37 = call i32* @__errno_location()
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 98
br i1 %39, label LBL_14, label LBL_13
LBL_13:
%40 = call i32* @__errno_location()
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %41, 22
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_15, label LBL_14
LBL_14:
%44 = add i16 %sv_0.15.reload, 1
%45 = add nuw nsw i32 %storemerge6.reload, 1
%46 = icmp ult i32 %45, 1000
store i32 %45, i32* %storemerge6.reg2mem
store i16 %44, i16* %sv_0.15.reg2mem
br i1 %46, label LBL_10, label LBL_15
LBL_15:
%47 = zext i32 %33 to i64
store i64 %47, 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* %sv_2.0.in.reload, { 2, 1, 0 }
uselistorder i16 %sv_1.0.in.reload, { 1, 2, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %sv_4, { 0, 3, 1, 2, 4 }
uselistorder i32* %sv_3, { 2, 0, 3, 1, 4 }
uselistorder i64** %sv_2.0.in.reg2mem, { 0, 2, 1 }
uselistorder i16* %sv_1.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_0.15.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* ()* @__errno_location, { 2, 0, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 128, { 1, 0 }
uselistorder label LBL_16, { 1, 2, 0 }
uselistorder label LBL_15, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | bpf_any_get_19241 | bpf_any_get | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
switch i32 %1, label LBL_3 [
i32 0, label LBL_1
i32 1, label LBL_2
]
LBL_1:
%2 = call i64 @FUNC(i64 %0)
br label LBL_4
LBL_2:
%3 = call i64 @FUNC(i64 %0, i64 1)
br label LBL_4
LBL_3:
%4 = call i64 @FUNC(i64 1)
br label LBL_4
LBL_4:
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | sample_4801 | sample | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_1.12.reg2mem = alloca i64
%sv_2.03.reg2mem = alloca i64
%0 = ptrtoint i32* %arg3 to i64
%sv_3 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
store i32 %3, i32* %sv_3, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp slt i32 %3, 0
%6 = icmp eq i1 %5, false
%7 = icmp eq i1 %4, false
%8 = icmp eq i1 %6, %7
store i64 %1, i64* %sv_2.03.reg2mem
store i64 0, i64* %sv_1.12.reg2mem
store i64 0, i64* %sv_1.1.lcssa.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_1:
%sv_1.12.reload = load i64, i64* %sv_1.12.reg2mem
%sv_2.03.reload = load i64, i64* %sv_2.03.reg2mem
%9 = call i64 @FUNC(i64 %sv_2.03.reload)
%10 = trunc i64 %9 to i32
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
switch i32 %10, label LBL_4 [
i32 1, label LBL_2
i32 2, label LBL_3
]
LBL_2:
%11 = call i64 @FUNC()
%12 = trunc i64 %11 to i32
%13 = call i64 @FUNC(i64 %sv_2.03.reload)
%14 = trunc i64 %13 to i32
%15 = icmp ult i32 %12, %14
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_11
LBL_3:
store i64 %sv_2.03.reload, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%16 = call i64 @FUNC(i64 %sv_2.03.reload, i32* nonnull %sv_3)
%17 = load i32, i32* %sv_3, align 4
%18 = icmp eq i32 %17, 0
%19 = icmp slt i32 %17, 0
%20 = icmp eq i1 %19, false
%21 = icmp eq i1 %18, false
%22 = icmp eq i1 %20, %21
store i64 %16, i64* %sv_2.03.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.12.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.lcssa.reg2mem
br i1 %22, label LBL_1, label LBL_5
LBL_5:
%23 = ptrtoint i64* %arg2 to i64
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%24 = call i64 @FUNC(i64 %sv_1.1.lcssa.reload)
%25 = trunc i64 %24 to i32
store i32 %25, i32* %sv_3, align 4
%26 = call i64 @FUNC(i64 %sv_1.1.lcssa.reload)
%27 = load i32, i32* %sv_3, align 4
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %26)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 3
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_8, label LBL_7
LBL_7:
%35 = load i32, i32* %sv_3, align 4
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %26, i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_8, label LBL_9
LBL_8:
%42 = call i64 @FUNC(i64 %23, i64 0)
%43 = icmp eq i64 %42, 0
%44 = icmp eq i1 %43, false
store i64 %42, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_10, label LBL_11
LBL_9:
%45 = call i64 @FUNC(i64 %23)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%46 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%47 = load i32, i32* %sv_3, align 4
%48 = call i64 @FUNC(i64 %46, i64 %sv_0.0.reload, i64 %26, i32 %47)
store i64 %48, 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 %26, { 1, 0, 2 }
uselistorder i64 %sv_1.1.lcssa.reload, { 1, 0 }
uselistorder i64 %23, { 0, 2, 1 }
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %sv_2.03.reload, { 3, 0, 1, 2 }
uselistorder i64 %sv_1.12.reload, { 1, 0 }
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i32* %sv_3, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i64* %sv_2.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.12.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 7, 2, 8, 3, 9, 4, 10, 5, 0, 1, 11, 6 }
uselistorder i32 0, { 3, 4, 5, 6, 0, 1, 2, 7, 8 }
uselistorder i64 (i64)* @nla_len, { 1, 0 }
uselistorder i64 (i64)* @nla_data, { 2, 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | read_pri_8766 | read_pri | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%0 = call i32* @__errno_location()
store i32 0, i32* %0, align 4
store i64 %arg2, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%1 = inttoptr i64 %sv_0.0.reload to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 32
%4 = add i64 %sv_0.0.reload, 1
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_2:
%5 = call i16** @__ctype_b_loc()
%6 = load i16*, i16** %5, align 8
%7 = ptrtoint i16* %6 to i64
%8 = load i8, i8* %1, 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, 2048
%15 = icmp eq i16 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_12
LBL_3:
%17 = call i32 @strtoul(i8* nonnull %1, i8** nonnull %sv_1, i32 10)
%18 = load i8*, i8** %sv_1, align 8
%19 = ptrtoint i8* %18 to i64
%20 = icmp eq i64 %sv_0.0.reload, %19
%21 = icmp eq i1 %20, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_12
LBL_4:
%22 = call i32* @__errno_location()
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i32* @__errno_location()
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 34
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_6, label LBL_12
LBL_6:
%28 = icmp eq i64* %arg3, null
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = load i8*, i8** %sv_1, align 8
%31 = load i8, i8* %30, align 1
%32 = icmp eq i8 %31, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_8, label LBL_12
LBL_8:
%33 = icmp eq i64* %arg1, null
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %34, align 4
br label LBL_10
LBL_10:
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_12, label LBL_11
LBL_11:
%35 = load i8*, i8** %sv_1, align 8
%36 = ptrtoint i8* %35 to i64
store i64 %36, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %1, { 1, 0, 2 }
uselistorder i64 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i8** %sv_1, { 2, 1, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder label LBL_12, { 1, 0, 2, 3, 4, 5 }
} | 0 |
BinRealVul | netlink_kernel_create_17991 | netlink_kernel_create | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp sgt i32 %0, -1
%3 = trunc i64 %1 to i32
%4 = icmp slt i32 %3, 256
%or.cond = icmp eq i1 %2, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_12
LBL_1:
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 16, i64 2, i64 %5, i64* nonnull %sv_1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_12
LBL_2:
%9 = ptrtoint i64* %arg5 to i64
%10 = ptrtoint i64* %arg1 to i64
%11 = load i64, i64* %sv_1, align 8
%12 = call i64 @FUNC(i64 %10, i64 %11, i64 %9, i32 %3)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_11, label LBL_3
LBL_3:
%sext3 = mul i64 %arg3, 4294967296
%15 = ashr exact i64 %sext3, 32
%16 = trunc i64 %15 to i32
%17 = icmp ult i32 %16, 32
%spec.select = select i1 %17, i64 32, i64 %15
%18 = add nsw i64 %spec.select, 31
%19 = udiv i64 %18, 4
%20 = and i64 %19, 1073741816
%21 = call i64 @FUNC(i64 %20, i64 0)
%22 = icmp eq i64 %21, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_11, label LBL_4
LBL_4:
%23 = load i64, i64* %sv_1, align 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %25, 8
%27 = inttoptr i64 %26 to i64*
store i64 4198710, i64* %27, align 8
%28 = icmp eq i64 %arg4, 0
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %25)
%30 = add i64 %29, 8
%31 = inttoptr i64 %30 to i64*
store i64 %arg4, i64* %31, align 8
br label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64 %25, i64 %10, i64 0)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %21, i64* %sv_0.0.reg2mem
br i1 %35, label LBL_11, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i64 %25)
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = or i32 %38, 1
store i32 %39, i32* %37, align 4
%40 = call i64 @FUNC()
%41 = ashr exact i64 %sext, 30
%42 = add nsw i64 %41, %1
%43 = mul i64 %42, 8
%44 = add i64 %43, ptrtoint (i32** @gv_0 to i64)
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 8
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_9, label LBL_8
LBL_8:
%49 = ptrtoint i64* %arg6 to i64
%50 = add i64 %43, ptrtoint (i32** @gv_1 to i64)
%51 = trunc i64 %spec.select to i32
%52 = inttoptr i64 %50 to i32*
store i32 %51, i32* %52, align 8
%53 = add i64 %43, ptrtoint (i64* @gv_2 to i64)
%54 = inttoptr i64 %53 to i64*
store i64 %21, i64* %54, align 8
%55 = add i64 %43, ptrtoint (i64* @gv_3 to i64)
%56 = inttoptr i64 %55 to i64*
store i64 %9, i64* %56, align 8
%57 = add i64 %43, ptrtoint (i64* @gv_4 to i64)
%58 = inttoptr i64 %57 to i64*
store i64 %49, i64* %58, align 8
store i32 1, i32* %45, align 8
br label LBL_10
LBL_9:
%59 = call i64 @FUNC(i64 %21)
br label LBL_10
LBL_10:
%60 = call i64 @FUNC()
store i64 %25, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%61 = call i64 @FUNC(i64 %sv_0.0.reload)
%62 = load i64, i64* %sv_1, align 8
%63 = call i64 @FUNC(i64 %62)
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %43, { 4, 3, 2, 1, 0 }
uselistorder i64 %25, { 0, 2, 3, 1, 4 }
uselistorder i64 %21, { 2, 1, 0, 3 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %1, { 0, 2, 1 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 3, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 (i64)* @nlk_sk, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_12, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | r8152_get_tx_agg_5294 | r8152_get_tx_agg | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = add i64 %1, 16
%7 = call i64 @FUNC(i64 %6, i64 %2)
%8 = call i64 @FUNC(i64 %1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %1)
store i64 %1, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = call i64 @FUNC(i64 %6, i64 %2)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 0, 1, 3, 2, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @list_empty, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | gen_check_interrupts_2004 | gen_check_interrupts | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %3, 2
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
br label LBL_2
LBL_2:
%7 = load i64, i64* @gv_0, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %2)
%10 = urem i64 %9, 2
%11 = icmp eq i64 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC()
store i64 %12, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64 (i64)* @tb_cflags, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.